diff --git a/generation_config.yaml b/generation_config.yaml index 117425e1f589..9eda133b789b 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ -gapic_generator_version: 2.51.1 -googleapis_commitish: 00196e2a68b16a864c57db2e870822875a7f1198 -libraries_bom_version: 26.52.0 +gapic_generator_version: 2.52.0 +googleapis_commitish: 0ce8062889f30daa64eed6810e3c124ccd89608f +libraries_bom_version: 26.53.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 7e056e17d6e1..2c5de6048866 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.52.0 + 26.53.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.56.0 + 2.57.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-accessapproval:2.56.0' +implementation 'com.google.cloud:google-cloud-accessapproval:2.57.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-accessapproval" % "2.56.0" +libraryDependencies += "com.google.cloud" % "google-cloud-accessapproval" % "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-accessapproval.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.56.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/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-accesscontextmanager/README.md b/java-accesscontextmanager/README.md index 5e5b8d6cf7c1..678e400eb8ef 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.52.0 + 26.53.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.56.0 + 1.57.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-identity-accesscontextmanager:1.56.0' +implementation 'com.google.cloud:google-identity-accesscontextmanager:1.57.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-identity-accesscontextmanager" % "1.56.0" +libraryDependencies += "com.google.cloud" % "google-identity-accesscontextmanager" % "1.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-identity-accesscontextmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.56.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.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-admanager/README.md b/java-admanager/README.md index 74a46c233e98..48abda56a89e 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.52.0 + 26.53.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.14.0 + 0.15.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.api-ads:ad-manager:0.14.0' +implementation 'com.google.api-ads:ad-manager:0.15.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.api-ads" % "ad-manager" % "0.14.0" +libraryDependencies += "com.google.api-ads" % "ad-manager" % "0.15.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.14.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/ad-manager/0.15.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 6fc99ed9055f..30f830fe8c0e 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.52.0 + 26.53.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.44.0 + 0.45.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-advisorynotifications:0.44.0' +implementation 'com.google.cloud:google-cloud-advisorynotifications:0.45.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-advisorynotifications" % "0.44.0" +libraryDependencies += "com.google.cloud" % "google-cloud-advisorynotifications" % "0.45.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.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.45.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 9eedb40fef71..5f766793000f 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.52.0 + 26.53.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.56.0 + 3.57.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-aiplatform:3.56.0' +implementation 'com.google.cloud:google-cloud-aiplatform:3.57.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.56.0" +libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.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-aiplatform.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.56.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.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-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/GenAiCacheServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/GenAiCacheServiceClient.java new file mode 100644 index 000000000000..7f8e6ffb990a --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/GenAiCacheServiceClient.java @@ -0,0 +1,1503 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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.GenAiCacheServiceStub; +import com.google.cloud.aiplatform.v1.stub.GenAiCacheServiceStubSettings; +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.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for managing Vertex AI's CachedContent resource. + * + *

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 (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) {
+ *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ *   CachedContent cachedContent = CachedContent.newBuilder().build();
+ *   CachedContent response = genAiCacheServiceClient.createCachedContent(parent, cachedContent);
+ * }
+ * }
+ * + *

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

CreateCachedContent

Creates cached content, this call will initialize the cached content in the data storage, and users need to pay for the cache data storage.

+ *

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

+ *
    + *
  • createCachedContent(CreateCachedContentRequest request) + *

+ *

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

+ *
    + *
  • createCachedContent(LocationName parent, CachedContent cachedContent) + *

  • createCachedContent(String parent, CachedContent cachedContent) + *

+ *

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

+ *
    + *
  • createCachedContentCallable() + *

+ *

GetCachedContent

Gets cached content configurations

+ *

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

+ *
    + *
  • getCachedContent(GetCachedContentRequest request) + *

+ *

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

+ *
    + *
  • getCachedContent(CachedContentName name) + *

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

+ *
    + *
  • getCachedContentCallable() + *

+ *

UpdateCachedContent

Updates cached content configurations

+ *

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

+ *
    + *
  • updateCachedContent(UpdateCachedContentRequest request) + *

+ *

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

+ *
    + *
  • updateCachedContent(CachedContent cachedContent, 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.

+ *
    + *
  • updateCachedContentCallable() + *

+ *

DeleteCachedContent

Deletes cached content

+ *

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

+ *
    + *
  • deleteCachedContent(DeleteCachedContentRequest request) + *

+ *

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

+ *
    + *
  • deleteCachedContent(CachedContentName name) + *

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

+ *
    + *
  • deleteCachedContentCallable() + *

+ *

ListCachedContents

Lists cached contents in a project

+ *

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

+ *
    + *
  • listCachedContents(ListCachedContentsRequest request) + *

+ *

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

+ *
    + *
  • listCachedContents(LocationName parent) + *

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

+ *
    + *
  • listCachedContentsPagedCallable() + *

  • listCachedContentsCallable() + *

+ *

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 GenAiCacheServiceSettings 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
+ * GenAiCacheServiceSettings genAiCacheServiceSettings =
+ *     GenAiCacheServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * GenAiCacheServiceClient genAiCacheServiceClient =
+ *     GenAiCacheServiceClient.create(genAiCacheServiceSettings);
+ * }
+ * + *

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
+ * GenAiCacheServiceSettings genAiCacheServiceSettings =
+ *     GenAiCacheServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * GenAiCacheServiceClient genAiCacheServiceClient =
+ *     GenAiCacheServiceClient.create(genAiCacheServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class GenAiCacheServiceClient implements BackgroundResource { + private final GenAiCacheServiceSettings settings; + private final GenAiCacheServiceStub stub; + + /** Constructs an instance of GenAiCacheServiceClient with default settings. */ + public static final GenAiCacheServiceClient create() throws IOException { + return create(GenAiCacheServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of GenAiCacheServiceClient, 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 GenAiCacheServiceClient create(GenAiCacheServiceSettings settings) + throws IOException { + return new GenAiCacheServiceClient(settings); + } + + /** + * Constructs an instance of GenAiCacheServiceClient, using the given stub for making calls. This + * is for advanced usage - prefer using create(GenAiCacheServiceSettings). + */ + public static final GenAiCacheServiceClient create(GenAiCacheServiceStub stub) { + return new GenAiCacheServiceClient(stub); + } + + /** + * Constructs an instance of GenAiCacheServiceClient, 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 GenAiCacheServiceClient(GenAiCacheServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((GenAiCacheServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected GenAiCacheServiceClient(GenAiCacheServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final GenAiCacheServiceSettings getSettings() { + return settings; + } + + public GenAiCacheServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates cached content, this call will initialize the cached content in the data storage, and + * users need to pay for the cache data storage. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   CachedContent cachedContent = CachedContent.newBuilder().build();
+   *   CachedContent response = genAiCacheServiceClient.createCachedContent(parent, cachedContent);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where the cached content will be created + * @param cachedContent Required. The cached content to create + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CachedContent createCachedContent(LocationName parent, CachedContent cachedContent) { + CreateCachedContentRequest request = + CreateCachedContentRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setCachedContent(cachedContent) + .build(); + return createCachedContent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates cached content, this call will initialize the cached content in the data storage, and + * users need to pay for the cache data storage. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   CachedContent cachedContent = CachedContent.newBuilder().build();
+   *   CachedContent response = genAiCacheServiceClient.createCachedContent(parent, cachedContent);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where the cached content will be created + * @param cachedContent Required. The cached content to create + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CachedContent createCachedContent(String parent, CachedContent cachedContent) { + CreateCachedContentRequest request = + CreateCachedContentRequest.newBuilder() + .setParent(parent) + .setCachedContent(cachedContent) + .build(); + return createCachedContent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates cached content, this call will initialize the cached content in the data storage, and + * users need to pay for the cache data storage. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) {
+   *   CreateCachedContentRequest request =
+   *       CreateCachedContentRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setCachedContent(CachedContent.newBuilder().build())
+   *           .build();
+   *   CachedContent response = genAiCacheServiceClient.createCachedContent(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 CachedContent createCachedContent(CreateCachedContentRequest request) { + return createCachedContentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates cached content, this call will initialize the cached content in the data storage, and + * users need to pay for the cache data storage. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) {
+   *   CreateCachedContentRequest request =
+   *       CreateCachedContentRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setCachedContent(CachedContent.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       genAiCacheServiceClient.createCachedContentCallable().futureCall(request);
+   *   // Do something.
+   *   CachedContent response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createCachedContentCallable() { + return stub.createCachedContentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets cached content configurations + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) {
+   *   CachedContentName name = CachedContentName.of("[PROJECT]", "[LOCATION]", "[CACHED_CONTENT]");
+   *   CachedContent response = genAiCacheServiceClient.getCachedContent(name);
+   * }
+   * }
+ * + * @param name Required. The resource name referring to the cached content + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CachedContent getCachedContent(CachedContentName name) { + GetCachedContentRequest request = + GetCachedContentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getCachedContent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets cached content configurations + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) {
+   *   String name = CachedContentName.of("[PROJECT]", "[LOCATION]", "[CACHED_CONTENT]").toString();
+   *   CachedContent response = genAiCacheServiceClient.getCachedContent(name);
+   * }
+   * }
+ * + * @param name Required. The resource name referring to the cached content + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CachedContent getCachedContent(String name) { + GetCachedContentRequest request = GetCachedContentRequest.newBuilder().setName(name).build(); + return getCachedContent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets cached content configurations + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) {
+   *   GetCachedContentRequest request =
+   *       GetCachedContentRequest.newBuilder()
+   *           .setName(
+   *               CachedContentName.of("[PROJECT]", "[LOCATION]", "[CACHED_CONTENT]").toString())
+   *           .build();
+   *   CachedContent response = genAiCacheServiceClient.getCachedContent(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 CachedContent getCachedContent(GetCachedContentRequest request) { + return getCachedContentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets cached content configurations + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) {
+   *   GetCachedContentRequest request =
+   *       GetCachedContentRequest.newBuilder()
+   *           .setName(
+   *               CachedContentName.of("[PROJECT]", "[LOCATION]", "[CACHED_CONTENT]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       genAiCacheServiceClient.getCachedContentCallable().futureCall(request);
+   *   // Do something.
+   *   CachedContent response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getCachedContentCallable() { + return stub.getCachedContentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates cached content configurations + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) {
+   *   CachedContent cachedContent = CachedContent.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   CachedContent response =
+   *       genAiCacheServiceClient.updateCachedContent(cachedContent, updateMask);
+   * }
+   * }
+ * + * @param cachedContent Required. The cached content to update + * @param updateMask Required. The list of fields to update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CachedContent updateCachedContent( + CachedContent cachedContent, FieldMask updateMask) { + UpdateCachedContentRequest request = + UpdateCachedContentRequest.newBuilder() + .setCachedContent(cachedContent) + .setUpdateMask(updateMask) + .build(); + return updateCachedContent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates cached content configurations + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) {
+   *   UpdateCachedContentRequest request =
+   *       UpdateCachedContentRequest.newBuilder()
+   *           .setCachedContent(CachedContent.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   CachedContent response = genAiCacheServiceClient.updateCachedContent(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 CachedContent updateCachedContent(UpdateCachedContentRequest request) { + return updateCachedContentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates cached content configurations + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) {
+   *   UpdateCachedContentRequest request =
+   *       UpdateCachedContentRequest.newBuilder()
+   *           .setCachedContent(CachedContent.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       genAiCacheServiceClient.updateCachedContentCallable().futureCall(request);
+   *   // Do something.
+   *   CachedContent response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateCachedContentCallable() { + return stub.updateCachedContentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes cached content + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) {
+   *   CachedContentName name = CachedContentName.of("[PROJECT]", "[LOCATION]", "[CACHED_CONTENT]");
+   *   genAiCacheServiceClient.deleteCachedContent(name);
+   * }
+   * }
+ * + * @param name Required. The resource name referring to the cached content + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteCachedContent(CachedContentName name) { + DeleteCachedContentRequest request = + DeleteCachedContentRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteCachedContent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes cached content + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) {
+   *   String name = CachedContentName.of("[PROJECT]", "[LOCATION]", "[CACHED_CONTENT]").toString();
+   *   genAiCacheServiceClient.deleteCachedContent(name);
+   * }
+   * }
+ * + * @param name Required. The resource name referring to the cached content + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteCachedContent(String name) { + DeleteCachedContentRequest request = + DeleteCachedContentRequest.newBuilder().setName(name).build(); + deleteCachedContent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes cached content + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) {
+   *   DeleteCachedContentRequest request =
+   *       DeleteCachedContentRequest.newBuilder()
+   *           .setName(
+   *               CachedContentName.of("[PROJECT]", "[LOCATION]", "[CACHED_CONTENT]").toString())
+   *           .build();
+   *   genAiCacheServiceClient.deleteCachedContent(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 void deleteCachedContent(DeleteCachedContentRequest request) { + deleteCachedContentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes cached content + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) {
+   *   DeleteCachedContentRequest request =
+   *       DeleteCachedContentRequest.newBuilder()
+   *           .setName(
+   *               CachedContentName.of("[PROJECT]", "[LOCATION]", "[CACHED_CONTENT]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       genAiCacheServiceClient.deleteCachedContentCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteCachedContentCallable() { + return stub.deleteCachedContentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists cached contents in a 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 (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (CachedContent element :
+   *       genAiCacheServiceClient.listCachedContents(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of cached contents. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCachedContentsPagedResponse listCachedContents(LocationName parent) { + ListCachedContentsRequest request = + ListCachedContentsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listCachedContents(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists cached contents in a 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 (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (CachedContent element :
+   *       genAiCacheServiceClient.listCachedContents(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of cached contents. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCachedContentsPagedResponse listCachedContents(String parent) { + ListCachedContentsRequest request = + ListCachedContentsRequest.newBuilder().setParent(parent).build(); + return listCachedContents(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists cached contents in a 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 (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) {
+   *   ListCachedContentsRequest request =
+   *       ListCachedContentsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (CachedContent element :
+   *       genAiCacheServiceClient.listCachedContents(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 ListCachedContentsPagedResponse listCachedContents( + ListCachedContentsRequest request) { + return listCachedContentsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists cached contents in a 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 (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) {
+   *   ListCachedContentsRequest request =
+   *       ListCachedContentsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       genAiCacheServiceClient.listCachedContentsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (CachedContent element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listCachedContentsPagedCallable() { + return stub.listCachedContentsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists cached contents in a 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 (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) {
+   *   ListCachedContentsRequest request =
+   *       ListCachedContentsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListCachedContentsResponse response =
+   *         genAiCacheServiceClient.listCachedContentsCallable().call(request);
+   *     for (CachedContent element : response.getCachedContentsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listCachedContentsCallable() { + return stub.listCachedContentsCallable(); + } + + // 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 (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : genAiCacheServiceClient.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 (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       genAiCacheServiceClient.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 (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         genAiCacheServiceClient.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 (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = genAiCacheServiceClient.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 (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future =
+   *       genAiCacheServiceClient.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 (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EndpointName.ofProjectLocationEndpointName(
+   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = genAiCacheServiceClient.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 (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EndpointName.ofProjectLocationEndpointName(
+   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = genAiCacheServiceClient.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 (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EndpointName.ofProjectLocationEndpointName(
+   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = genAiCacheServiceClient.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 (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EndpointName.ofProjectLocationEndpointName(
+   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = genAiCacheServiceClient.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 (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EndpointName.ofProjectLocationEndpointName(
+   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = genAiCacheServiceClient.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 (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EndpointName.ofProjectLocationEndpointName(
+   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       genAiCacheServiceClient.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 ListCachedContentsPagedResponse + extends AbstractPagedListResponse< + ListCachedContentsRequest, + ListCachedContentsResponse, + CachedContent, + ListCachedContentsPage, + ListCachedContentsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListCachedContentsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListCachedContentsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListCachedContentsPagedResponse(ListCachedContentsPage page) { + super(page, ListCachedContentsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListCachedContentsPage + extends AbstractPage< + ListCachedContentsRequest, + ListCachedContentsResponse, + CachedContent, + ListCachedContentsPage> { + + private ListCachedContentsPage( + PageContext context, + ListCachedContentsResponse response) { + super(context, response); + } + + private static ListCachedContentsPage createEmptyPage() { + return new ListCachedContentsPage(null, null); + } + + @Override + protected ListCachedContentsPage createPage( + PageContext context, + ListCachedContentsResponse response) { + return new ListCachedContentsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListCachedContentsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListCachedContentsRequest, + ListCachedContentsResponse, + CachedContent, + ListCachedContentsPage, + ListCachedContentsFixedSizeCollection> { + + private ListCachedContentsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListCachedContentsFixedSizeCollection createEmptyCollection() { + return new ListCachedContentsFixedSizeCollection(null, 0); + } + + @Override + protected ListCachedContentsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListCachedContentsFixedSizeCollection(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/GenAiCacheServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/GenAiCacheServiceSettings.java new file mode 100644 index 000000000000..d533bf0d92e5 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/GenAiCacheServiceSettings.java @@ -0,0 +1,316 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1; + +import static com.google.cloud.aiplatform.v1.GenAiCacheServiceClient.ListCachedContentsPagedResponse; +import static com.google.cloud.aiplatform.v1.GenAiCacheServiceClient.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.GenAiCacheServiceStubSettings; +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.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 GenAiCacheServiceClient}. + * + *

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 createCachedContent: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * GenAiCacheServiceSettings.Builder genAiCacheServiceSettingsBuilder =
+ *     GenAiCacheServiceSettings.newBuilder();
+ * genAiCacheServiceSettingsBuilder
+ *     .createCachedContentSettings()
+ *     .setRetrySettings(
+ *         genAiCacheServiceSettingsBuilder
+ *             .createCachedContentSettings()
+ *             .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());
+ * GenAiCacheServiceSettings genAiCacheServiceSettings = genAiCacheServiceSettingsBuilder.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 GenAiCacheServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to createCachedContent. */ + public UnaryCallSettings + createCachedContentSettings() { + return ((GenAiCacheServiceStubSettings) getStubSettings()).createCachedContentSettings(); + } + + /** Returns the object with the settings used for calls to getCachedContent. */ + public UnaryCallSettings getCachedContentSettings() { + return ((GenAiCacheServiceStubSettings) getStubSettings()).getCachedContentSettings(); + } + + /** Returns the object with the settings used for calls to updateCachedContent. */ + public UnaryCallSettings + updateCachedContentSettings() { + return ((GenAiCacheServiceStubSettings) getStubSettings()).updateCachedContentSettings(); + } + + /** Returns the object with the settings used for calls to deleteCachedContent. */ + public UnaryCallSettings deleteCachedContentSettings() { + return ((GenAiCacheServiceStubSettings) getStubSettings()).deleteCachedContentSettings(); + } + + /** Returns the object with the settings used for calls to listCachedContents. */ + public PagedCallSettings< + ListCachedContentsRequest, ListCachedContentsResponse, ListCachedContentsPagedResponse> + listCachedContentsSettings() { + return ((GenAiCacheServiceStubSettings) getStubSettings()).listCachedContentsSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((GenAiCacheServiceStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((GenAiCacheServiceStubSettings) getStubSettings()).getLocationSettings(); + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((GenAiCacheServiceStubSettings) getStubSettings()).setIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((GenAiCacheServiceStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return ((GenAiCacheServiceStubSettings) getStubSettings()).testIamPermissionsSettings(); + } + + public static final GenAiCacheServiceSettings create(GenAiCacheServiceStubSettings stub) + throws IOException { + return new GenAiCacheServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return GenAiCacheServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return GenAiCacheServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return GenAiCacheServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GenAiCacheServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return GenAiCacheServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return GenAiCacheServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return GenAiCacheServiceStubSettings.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 GenAiCacheServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for GenAiCacheServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(GenAiCacheServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(GenAiCacheServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(GenAiCacheServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(GenAiCacheServiceStubSettings.newBuilder()); + } + + public GenAiCacheServiceStubSettings.Builder getStubSettingsBuilder() { + return ((GenAiCacheServiceStubSettings.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 createCachedContent. */ + public UnaryCallSettings.Builder + createCachedContentSettings() { + return getStubSettingsBuilder().createCachedContentSettings(); + } + + /** Returns the builder for the settings used for calls to getCachedContent. */ + public UnaryCallSettings.Builder + getCachedContentSettings() { + return getStubSettingsBuilder().getCachedContentSettings(); + } + + /** Returns the builder for the settings used for calls to updateCachedContent. */ + public UnaryCallSettings.Builder + updateCachedContentSettings() { + return getStubSettingsBuilder().updateCachedContentSettings(); + } + + /** Returns the builder for the settings used for calls to deleteCachedContent. */ + public UnaryCallSettings.Builder + deleteCachedContentSettings() { + return getStubSettingsBuilder().deleteCachedContentSettings(); + } + + /** Returns the builder for the settings used for calls to listCachedContents. */ + public PagedCallSettings.Builder< + ListCachedContentsRequest, ListCachedContentsResponse, ListCachedContentsPagedResponse> + listCachedContentsSettings() { + return getStubSettingsBuilder().listCachedContentsSettings(); + } + + /** 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 GenAiCacheServiceSettings build() throws IOException { + return new GenAiCacheServiceSettings(this); + } + } +} diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceClient.java index f56eed2f2be7..7ec00f58ba12 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceClient.java @@ -156,6 +156,26 @@ * * * + *

ListModelVersionCheckpoints + *

Lists checkpoints of the specified model version. + * + *

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

+ *
    + *
  • listModelVersionCheckpoints(ListModelVersionCheckpointsRequest request) + *

+ *

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

+ *
    + *
  • listModelVersionCheckpoints(ModelName name) + *

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

+ *
    + *
  • listModelVersionCheckpointsPagedCallable() + *

  • listModelVersionCheckpointsCallable() + *

+ * + * + * *

UpdateModel *

Updates a Model. * @@ -1234,6 +1254,186 @@ public final ListModelVersionsPagedResponse listModelVersions(ListModelVersionsR return stub.listModelVersionsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists checkpoints of the specified model version. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
+   *   for (ModelVersionCheckpoint element :
+   *       modelServiceClient.listModelVersionCheckpoints(name).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param name Required. The name of the model version to list checkpoints for. + * `projects/{project}/locations/{location}/models/{model}{@literal @}{version}` Example: + * `projects/{project}/locations/{location}/models/{model}{@literal @}2` or + * `projects/{project}/locations/{location}/models/{model}{@literal @}golden` If no version ID + * or alias is specified, the latest version will be used. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListModelVersionCheckpointsPagedResponse listModelVersionCheckpoints( + ModelName name) { + ListModelVersionCheckpointsRequest request = + ListModelVersionCheckpointsRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return listModelVersionCheckpoints(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists checkpoints of the specified model version. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   String name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString();
+   *   for (ModelVersionCheckpoint element :
+   *       modelServiceClient.listModelVersionCheckpoints(name).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param name Required. The name of the model version to list checkpoints for. + * `projects/{project}/locations/{location}/models/{model}{@literal @}{version}` Example: + * `projects/{project}/locations/{location}/models/{model}{@literal @}2` or + * `projects/{project}/locations/{location}/models/{model}{@literal @}golden` If no version ID + * or alias is specified, the latest version will be used. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListModelVersionCheckpointsPagedResponse listModelVersionCheckpoints(String name) { + ListModelVersionCheckpointsRequest request = + ListModelVersionCheckpointsRequest.newBuilder().setName(name).build(); + return listModelVersionCheckpoints(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists checkpoints of the specified model version. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   ListModelVersionCheckpointsRequest request =
+   *       ListModelVersionCheckpointsRequest.newBuilder()
+   *           .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (ModelVersionCheckpoint element :
+   *       modelServiceClient.listModelVersionCheckpoints(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 ListModelVersionCheckpointsPagedResponse listModelVersionCheckpoints( + ListModelVersionCheckpointsRequest request) { + return listModelVersionCheckpointsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists checkpoints of the specified model version. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   ListModelVersionCheckpointsRequest request =
+   *       ListModelVersionCheckpointsRequest.newBuilder()
+   *           .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       modelServiceClient.listModelVersionCheckpointsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (ModelVersionCheckpoint element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListModelVersionCheckpointsRequest, ListModelVersionCheckpointsPagedResponse> + listModelVersionCheckpointsPagedCallable() { + return stub.listModelVersionCheckpointsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists checkpoints of the specified model version. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   ListModelVersionCheckpointsRequest request =
+   *       ListModelVersionCheckpointsRequest.newBuilder()
+   *           .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListModelVersionCheckpointsResponse response =
+   *         modelServiceClient.listModelVersionCheckpointsCallable().call(request);
+   *     for (ModelVersionCheckpoint element : response.getCheckpointsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListModelVersionCheckpointsRequest, ListModelVersionCheckpointsResponse> + listModelVersionCheckpointsCallable() { + return stub.listModelVersionCheckpointsCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a Model. @@ -3951,6 +4151,103 @@ protected ListModelVersionsFixedSizeCollection createCollection( } } + public static class ListModelVersionCheckpointsPagedResponse + extends AbstractPagedListResponse< + ListModelVersionCheckpointsRequest, + ListModelVersionCheckpointsResponse, + ModelVersionCheckpoint, + ListModelVersionCheckpointsPage, + ListModelVersionCheckpointsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListModelVersionCheckpointsRequest, + ListModelVersionCheckpointsResponse, + ModelVersionCheckpoint> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListModelVersionCheckpointsPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListModelVersionCheckpointsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListModelVersionCheckpointsPagedResponse(ListModelVersionCheckpointsPage page) { + super(page, ListModelVersionCheckpointsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListModelVersionCheckpointsPage + extends AbstractPage< + ListModelVersionCheckpointsRequest, + ListModelVersionCheckpointsResponse, + ModelVersionCheckpoint, + ListModelVersionCheckpointsPage> { + + private ListModelVersionCheckpointsPage( + PageContext< + ListModelVersionCheckpointsRequest, + ListModelVersionCheckpointsResponse, + ModelVersionCheckpoint> + context, + ListModelVersionCheckpointsResponse response) { + super(context, response); + } + + private static ListModelVersionCheckpointsPage createEmptyPage() { + return new ListModelVersionCheckpointsPage(null, null); + } + + @Override + protected ListModelVersionCheckpointsPage createPage( + PageContext< + ListModelVersionCheckpointsRequest, + ListModelVersionCheckpointsResponse, + ModelVersionCheckpoint> + context, + ListModelVersionCheckpointsResponse response) { + return new ListModelVersionCheckpointsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListModelVersionCheckpointsRequest, + ListModelVersionCheckpointsResponse, + ModelVersionCheckpoint> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListModelVersionCheckpointsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListModelVersionCheckpointsRequest, + ListModelVersionCheckpointsResponse, + ModelVersionCheckpoint, + ListModelVersionCheckpointsPage, + ListModelVersionCheckpointsFixedSizeCollection> { + + private ListModelVersionCheckpointsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListModelVersionCheckpointsFixedSizeCollection createEmptyCollection() { + return new ListModelVersionCheckpointsFixedSizeCollection(null, 0); + } + + @Override + protected ListModelVersionCheckpointsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListModelVersionCheckpointsFixedSizeCollection(pages, collectionSize); + } + } + public static class ListModelEvaluationsPagedResponse extends AbstractPagedListResponse< ListModelEvaluationsRequest, diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceSettings.java index ab47b45af0ae..28f9387f97c7 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceSettings.java @@ -19,6 +19,7 @@ import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelEvaluationSlicesPagedResponse; import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelEvaluationsPagedResponse; +import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelVersionCheckpointsPagedResponse; import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelVersionsPagedResponse; import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelsPagedResponse; @@ -156,6 +157,15 @@ public UnaryCallSettings getModelSettings() { return ((ModelServiceStubSettings) getStubSettings()).listModelVersionsSettings(); } + /** Returns the object with the settings used for calls to listModelVersionCheckpoints. */ + public PagedCallSettings< + ListModelVersionCheckpointsRequest, + ListModelVersionCheckpointsResponse, + ListModelVersionCheckpointsPagedResponse> + listModelVersionCheckpointsSettings() { + return ((ModelServiceStubSettings) getStubSettings()).listModelVersionCheckpointsSettings(); + } + /** Returns the object with the settings used for calls to updateModel. */ public UnaryCallSettings updateModelSettings() { return ((ModelServiceStubSettings) getStubSettings()).updateModelSettings(); @@ -431,6 +441,15 @@ public UnaryCallSettings.Builder getModelSettings() { return getStubSettingsBuilder().listModelVersionsSettings(); } + /** Returns the builder for the settings used for calls to listModelVersionCheckpoints. */ + public PagedCallSettings.Builder< + ListModelVersionCheckpointsRequest, + ListModelVersionCheckpointsResponse, + ListModelVersionCheckpointsPagedResponse> + listModelVersionCheckpointsSettings() { + return getStubSettingsBuilder().listModelVersionCheckpointsSettings(); + } + /** Returns the builder for the settings used for calls to updateModel. */ public UnaryCallSettings.Builder updateModelSettings() { return getStubSettingsBuilder().updateModelSettings(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceClient.java index 0bbf7db81220..828e52ac5f8b 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceClient.java @@ -1398,6 +1398,8 @@ public final GenerateContentResponse generateContent(String model, List * .setModel("model104069929") * .addAllContents(new ArrayList()) * .setSystemInstruction(Content.newBuilder().build()) + * .setCachedContent( + * CachedContentName.of("[PROJECT]", "[LOCATION]", "[CACHED_CONTENT]").toString()) * .addAllTools(new ArrayList()) * .setToolConfig(ToolConfig.newBuilder().build()) * .putAllLabels(new HashMap()) @@ -1433,6 +1435,8 @@ public final GenerateContentResponse generateContent(GenerateContentRequest requ * .setModel("model104069929") * .addAllContents(new ArrayList()) * .setSystemInstruction(Content.newBuilder().build()) + * .setCachedContent( + * CachedContentName.of("[PROJECT]", "[LOCATION]", "[CACHED_CONTENT]").toString()) * .addAllTools(new ArrayList()) * .setToolConfig(ToolConfig.newBuilder().build()) * .putAllLabels(new HashMap()) @@ -1469,6 +1473,8 @@ public final GenerateContentResponse generateContent(GenerateContentRequest requ * .setModel("model104069929") * .addAllContents(new ArrayList()) * .setSystemInstruction(Content.newBuilder().build()) + * .setCachedContent( + * CachedContentName.of("[PROJECT]", "[LOCATION]", "[CACHED_CONTENT]").toString()) * .addAllTools(new ArrayList()) * .setToolConfig(ToolConfig.newBuilder().build()) * .putAllLabels(new HashMap()) diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceClient.java new file mode 100644 index 000000000000..86d2dd4fa791 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceClient.java @@ -0,0 +1,870 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1; + +import com.google.api.HttpBody; +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.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1.stub.ReasoningEngineExecutionServiceStub; +import com.google.cloud.aiplatform.v1.stub.ReasoningEngineExecutionServiceStubSettings; +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 executing queries on Reasoning Engine. + * + *

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 (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient =
+ *     ReasoningEngineExecutionServiceClient.create()) {
+ *   QueryReasoningEngineRequest request =
+ *       QueryReasoningEngineRequest.newBuilder()
+ *           .setName(
+ *               ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]")
+ *                   .toString())
+ *           .setInput(Struct.newBuilder().build())
+ *           .setClassMethod("classMethod-937857927")
+ *           .build();
+ *   QueryReasoningEngineResponse response =
+ *       reasoningEngineExecutionServiceClient.queryReasoningEngine(request);
+ * }
+ * }
+ * + *

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

QueryReasoningEngine

Queries using a reasoning engine.

+ *

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

+ *
    + *
  • queryReasoningEngine(QueryReasoningEngineRequest request) + *

+ *

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

+ *
    + *
  • queryReasoningEngineCallable() + *

+ *

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.

+ *

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 + * ReasoningEngineExecutionServiceSettings 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
+ * ReasoningEngineExecutionServiceSettings reasoningEngineExecutionServiceSettings =
+ *     ReasoningEngineExecutionServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient =
+ *     ReasoningEngineExecutionServiceClient.create(reasoningEngineExecutionServiceSettings);
+ * }
+ * + *

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
+ * ReasoningEngineExecutionServiceSettings reasoningEngineExecutionServiceSettings =
+ *     ReasoningEngineExecutionServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient =
+ *     ReasoningEngineExecutionServiceClient.create(reasoningEngineExecutionServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class ReasoningEngineExecutionServiceClient implements BackgroundResource { + private final ReasoningEngineExecutionServiceSettings settings; + private final ReasoningEngineExecutionServiceStub stub; + + /** Constructs an instance of ReasoningEngineExecutionServiceClient with default settings. */ + public static final ReasoningEngineExecutionServiceClient create() throws IOException { + return create(ReasoningEngineExecutionServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of ReasoningEngineExecutionServiceClient, 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 ReasoningEngineExecutionServiceClient create( + ReasoningEngineExecutionServiceSettings settings) throws IOException { + return new ReasoningEngineExecutionServiceClient(settings); + } + + /** + * Constructs an instance of ReasoningEngineExecutionServiceClient, using the given stub for + * making calls. This is for advanced usage - prefer using + * create(ReasoningEngineExecutionServiceSettings). + */ + public static final ReasoningEngineExecutionServiceClient create( + ReasoningEngineExecutionServiceStub stub) { + return new ReasoningEngineExecutionServiceClient(stub); + } + + /** + * Constructs an instance of ReasoningEngineExecutionServiceClient, 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 ReasoningEngineExecutionServiceClient(ReasoningEngineExecutionServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = + ((ReasoningEngineExecutionServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected ReasoningEngineExecutionServiceClient(ReasoningEngineExecutionServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final ReasoningEngineExecutionServiceSettings getSettings() { + return settings; + } + + public ReasoningEngineExecutionServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * 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()) {
+   *   QueryReasoningEngineRequest request =
+   *       QueryReasoningEngineRequest.newBuilder()
+   *           .setName(
+   *               ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]")
+   *                   .toString())
+   *           .setInput(Struct.newBuilder().build())
+   *           .setClassMethod("classMethod-937857927")
+   *           .build();
+   *   QueryReasoningEngineResponse response =
+   *       reasoningEngineExecutionServiceClient.queryReasoningEngine(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 QueryReasoningEngineResponse queryReasoningEngine( + QueryReasoningEngineRequest request) { + return queryReasoningEngineCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * 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()) {
+   *   QueryReasoningEngineRequest request =
+   *       QueryReasoningEngineRequest.newBuilder()
+   *           .setName(
+   *               ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]")
+   *                   .toString())
+   *           .setInput(Struct.newBuilder().build())
+   *           .setClassMethod("classMethod-937857927")
+   *           .build();
+   *   ApiFuture future =
+   *       reasoningEngineExecutionServiceClient.queryReasoningEngineCallable().futureCall(request);
+   *   // Do something.
+   *   QueryReasoningEngineResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + queryReasoningEngineCallable() { + 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. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying 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()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element :
+   *       reasoningEngineExecutionServiceClient.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 (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient =
+   *     ReasoningEngineExecutionServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       reasoningEngineExecutionServiceClient.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 (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient =
+   *     ReasoningEngineExecutionServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         reasoningEngineExecutionServiceClient.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 (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient =
+   *     ReasoningEngineExecutionServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = reasoningEngineExecutionServiceClient.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 (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient =
+   *     ReasoningEngineExecutionServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future =
+   *       reasoningEngineExecutionServiceClient.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 (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient =
+   *     ReasoningEngineExecutionServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EndpointName.ofProjectLocationEndpointName(
+   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = reasoningEngineExecutionServiceClient.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 (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient =
+   *     ReasoningEngineExecutionServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EndpointName.ofProjectLocationEndpointName(
+   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       reasoningEngineExecutionServiceClient.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 (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient =
+   *     ReasoningEngineExecutionServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EndpointName.ofProjectLocationEndpointName(
+   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = reasoningEngineExecutionServiceClient.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 (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient =
+   *     ReasoningEngineExecutionServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EndpointName.ofProjectLocationEndpointName(
+   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       reasoningEngineExecutionServiceClient.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 (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient =
+   *     ReasoningEngineExecutionServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EndpointName.ofProjectLocationEndpointName(
+   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response =
+   *       reasoningEngineExecutionServiceClient.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 (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient =
+   *     ReasoningEngineExecutionServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EndpointName.ofProjectLocationEndpointName(
+   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       reasoningEngineExecutionServiceClient.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/ReasoningEngineExecutionServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceSettings.java new file mode 100644 index 000000000000..c8282a72a08c --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceSettings.java @@ -0,0 +1,287 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1; + +import static com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceClient.ListLocationsPagedResponse; + +import com.google.api.HttpBody; +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.ServerStreamingCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.aiplatform.v1.stub.ReasoningEngineExecutionServiceStubSettings; +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 ReasoningEngineExecutionServiceClient}. + * + *

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 queryReasoningEngine: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ReasoningEngineExecutionServiceSettings.Builder reasoningEngineExecutionServiceSettingsBuilder =
+ *     ReasoningEngineExecutionServiceSettings.newBuilder();
+ * reasoningEngineExecutionServiceSettingsBuilder
+ *     .queryReasoningEngineSettings()
+ *     .setRetrySettings(
+ *         reasoningEngineExecutionServiceSettingsBuilder
+ *             .queryReasoningEngineSettings()
+ *             .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());
+ * ReasoningEngineExecutionServiceSettings reasoningEngineExecutionServiceSettings =
+ *     reasoningEngineExecutionServiceSettingsBuilder.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 ReasoningEngineExecutionServiceSettings + extends ClientSettings { + + /** Returns the object with the settings used for calls to queryReasoningEngine. */ + public UnaryCallSettings + queryReasoningEngineSettings() { + return ((ReasoningEngineExecutionServiceStubSettings) getStubSettings()) + .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() { + return ((ReasoningEngineExecutionServiceStubSettings) getStubSettings()) + .listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((ReasoningEngineExecutionServiceStubSettings) getStubSettings()).getLocationSettings(); + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((ReasoningEngineExecutionServiceStubSettings) getStubSettings()).setIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((ReasoningEngineExecutionServiceStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return ((ReasoningEngineExecutionServiceStubSettings) getStubSettings()) + .testIamPermissionsSettings(); + } + + public static final ReasoningEngineExecutionServiceSettings create( + ReasoningEngineExecutionServiceStubSettings stub) throws IOException { + return new ReasoningEngineExecutionServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return ReasoningEngineExecutionServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return ReasoningEngineExecutionServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return ReasoningEngineExecutionServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return ReasoningEngineExecutionServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return ReasoningEngineExecutionServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return ReasoningEngineExecutionServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ReasoningEngineExecutionServiceStubSettings.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 ReasoningEngineExecutionServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for ReasoningEngineExecutionServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(ReasoningEngineExecutionServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(ReasoningEngineExecutionServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(ReasoningEngineExecutionServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(ReasoningEngineExecutionServiceStubSettings.newBuilder()); + } + + public ReasoningEngineExecutionServiceStubSettings.Builder getStubSettingsBuilder() { + return ((ReasoningEngineExecutionServiceStubSettings.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 queryReasoningEngine. */ + public UnaryCallSettings.Builder + queryReasoningEngineSettings() { + 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> + 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 ReasoningEngineExecutionServiceSettings build() throws IOException { + return new ReasoningEngineExecutionServiceSettings(this); + } + } +} diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineServiceClient.java new file mode 100644 index 000000000000..43499a162177 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineServiceClient.java @@ -0,0 +1,1690 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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.ReasoningEngineServiceStub; +import com.google.cloud.aiplatform.v1.stub.ReasoningEngineServiceStubSettings; +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 com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: A service for managing Vertex AI's Reasoning Engines. + * + *

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 (ReasoningEngineServiceClient reasoningEngineServiceClient =
+ *     ReasoningEngineServiceClient.create()) {
+ *   ReasoningEngineName name =
+ *       ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]");
+ *   ReasoningEngine response = reasoningEngineServiceClient.getReasoningEngine(name);
+ * }
+ * }
+ * + *

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

CreateReasoningEngine

Creates a reasoning engine.

+ *

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

+ *
    + *
  • createReasoningEngineAsync(CreateReasoningEngineRequest request) + *

+ *

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

+ *
    + *
  • createReasoningEngineAsync(LocationName parent, ReasoningEngine reasoningEngine) + *

  • createReasoningEngineAsync(String parent, ReasoningEngine reasoningEngine) + *

+ *

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

+ *
    + *
  • createReasoningEngineOperationCallable() + *

  • createReasoningEngineCallable() + *

+ *

GetReasoningEngine

Gets a reasoning engine.

+ *

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

+ *
    + *
  • getReasoningEngine(GetReasoningEngineRequest request) + *

+ *

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

+ *
    + *
  • getReasoningEngine(ReasoningEngineName name) + *

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

+ *
    + *
  • getReasoningEngineCallable() + *

+ *

ListReasoningEngines

Lists reasoning engines in a location.

+ *

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

+ *
    + *
  • listReasoningEngines(ListReasoningEnginesRequest request) + *

+ *

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

+ *
    + *
  • listReasoningEngines(LocationName parent) + *

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

+ *
    + *
  • listReasoningEnginesPagedCallable() + *

  • listReasoningEnginesCallable() + *

+ *

UpdateReasoningEngine

Updates a reasoning engine.

+ *

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

+ *
    + *
  • updateReasoningEngineAsync(UpdateReasoningEngineRequest request) + *

+ *

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

+ *
    + *
  • updateReasoningEngineAsync(ReasoningEngine reasoningEngine, 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.

+ *
    + *
  • updateReasoningEngineOperationCallable() + *

  • updateReasoningEngineCallable() + *

+ *

DeleteReasoningEngine

Deletes a reasoning engine.

+ *

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

+ *
    + *
  • deleteReasoningEngineAsync(DeleteReasoningEngineRequest request) + *

+ *

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

+ *
    + *
  • deleteReasoningEngineAsync(ReasoningEngineName name) + *

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

+ *
    + *
  • deleteReasoningEngineOperationCallable() + *

  • deleteReasoningEngineCallable() + *

+ *

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 ReasoningEngineServiceSettings + * 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
+ * ReasoningEngineServiceSettings reasoningEngineServiceSettings =
+ *     ReasoningEngineServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * ReasoningEngineServiceClient reasoningEngineServiceClient =
+ *     ReasoningEngineServiceClient.create(reasoningEngineServiceSettings);
+ * }
+ * + *

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
+ * ReasoningEngineServiceSettings reasoningEngineServiceSettings =
+ *     ReasoningEngineServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * ReasoningEngineServiceClient reasoningEngineServiceClient =
+ *     ReasoningEngineServiceClient.create(reasoningEngineServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class ReasoningEngineServiceClient implements BackgroundResource { + private final ReasoningEngineServiceSettings settings; + private final ReasoningEngineServiceStub stub; + private final OperationsClient operationsClient; + + /** Constructs an instance of ReasoningEngineServiceClient with default settings. */ + public static final ReasoningEngineServiceClient create() throws IOException { + return create(ReasoningEngineServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of ReasoningEngineServiceClient, 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 ReasoningEngineServiceClient create(ReasoningEngineServiceSettings settings) + throws IOException { + return new ReasoningEngineServiceClient(settings); + } + + /** + * Constructs an instance of ReasoningEngineServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(ReasoningEngineServiceSettings). + */ + public static final ReasoningEngineServiceClient create(ReasoningEngineServiceStub stub) { + return new ReasoningEngineServiceClient(stub); + } + + /** + * Constructs an instance of ReasoningEngineServiceClient, 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 ReasoningEngineServiceClient(ReasoningEngineServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((ReasoningEngineServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + protected ReasoningEngineServiceClient(ReasoningEngineServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + public final ReasoningEngineServiceSettings getSettings() { + return settings; + } + + public ReasoningEngineServiceStub 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 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 (ReasoningEngineServiceClient reasoningEngineServiceClient =
+   *     ReasoningEngineServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   ReasoningEngine reasoningEngine = ReasoningEngine.newBuilder().build();
+   *   ReasoningEngine response =
+   *       reasoningEngineServiceClient.createReasoningEngineAsync(parent, reasoningEngine).get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Location to create the ReasoningEngine in. + * Format: `projects/{project}/locations/{location}` + * @param reasoningEngine Required. The ReasoningEngine to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createReasoningEngineAsync(LocationName parent, ReasoningEngine reasoningEngine) { + CreateReasoningEngineRequest request = + CreateReasoningEngineRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setReasoningEngine(reasoningEngine) + .build(); + return createReasoningEngineAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates 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 (ReasoningEngineServiceClient reasoningEngineServiceClient =
+   *     ReasoningEngineServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   ReasoningEngine reasoningEngine = ReasoningEngine.newBuilder().build();
+   *   ReasoningEngine response =
+   *       reasoningEngineServiceClient.createReasoningEngineAsync(parent, reasoningEngine).get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Location to create the ReasoningEngine in. + * Format: `projects/{project}/locations/{location}` + * @param reasoningEngine Required. The ReasoningEngine to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createReasoningEngineAsync(String parent, ReasoningEngine reasoningEngine) { + CreateReasoningEngineRequest request = + CreateReasoningEngineRequest.newBuilder() + .setParent(parent) + .setReasoningEngine(reasoningEngine) + .build(); + return createReasoningEngineAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates 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 (ReasoningEngineServiceClient reasoningEngineServiceClient =
+   *     ReasoningEngineServiceClient.create()) {
+   *   CreateReasoningEngineRequest request =
+   *       CreateReasoningEngineRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setReasoningEngine(ReasoningEngine.newBuilder().build())
+   *           .build();
+   *   ReasoningEngine response =
+   *       reasoningEngineServiceClient.createReasoningEngineAsync(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 + createReasoningEngineAsync(CreateReasoningEngineRequest request) { + return createReasoningEngineOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates 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 (ReasoningEngineServiceClient reasoningEngineServiceClient =
+   *     ReasoningEngineServiceClient.create()) {
+   *   CreateReasoningEngineRequest request =
+   *       CreateReasoningEngineRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setReasoningEngine(ReasoningEngine.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       reasoningEngineServiceClient.createReasoningEngineOperationCallable().futureCall(request);
+   *   // Do something.
+   *   ReasoningEngine response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + CreateReasoningEngineRequest, ReasoningEngine, CreateReasoningEngineOperationMetadata> + createReasoningEngineOperationCallable() { + return stub.createReasoningEngineOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates 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 (ReasoningEngineServiceClient reasoningEngineServiceClient =
+   *     ReasoningEngineServiceClient.create()) {
+   *   CreateReasoningEngineRequest request =
+   *       CreateReasoningEngineRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setReasoningEngine(ReasoningEngine.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       reasoningEngineServiceClient.createReasoningEngineCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createReasoningEngineCallable() { + return stub.createReasoningEngineCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets 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 (ReasoningEngineServiceClient reasoningEngineServiceClient =
+   *     ReasoningEngineServiceClient.create()) {
+   *   ReasoningEngineName name =
+   *       ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]");
+   *   ReasoningEngine response = reasoningEngineServiceClient.getReasoningEngine(name);
+   * }
+   * }
+ * + * @param name Required. The name of the ReasoningEngine resource. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ReasoningEngine getReasoningEngine(ReasoningEngineName name) { + GetReasoningEngineRequest request = + GetReasoningEngineRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getReasoningEngine(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets 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 (ReasoningEngineServiceClient reasoningEngineServiceClient =
+   *     ReasoningEngineServiceClient.create()) {
+   *   String name =
+   *       ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]").toString();
+   *   ReasoningEngine response = reasoningEngineServiceClient.getReasoningEngine(name);
+   * }
+   * }
+ * + * @param name Required. The name of the ReasoningEngine resource. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ReasoningEngine getReasoningEngine(String name) { + GetReasoningEngineRequest request = + GetReasoningEngineRequest.newBuilder().setName(name).build(); + return getReasoningEngine(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets 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 (ReasoningEngineServiceClient reasoningEngineServiceClient =
+   *     ReasoningEngineServiceClient.create()) {
+   *   GetReasoningEngineRequest request =
+   *       GetReasoningEngineRequest.newBuilder()
+   *           .setName(
+   *               ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]")
+   *                   .toString())
+   *           .build();
+   *   ReasoningEngine response = reasoningEngineServiceClient.getReasoningEngine(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 ReasoningEngine getReasoningEngine(GetReasoningEngineRequest request) { + return getReasoningEngineCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets 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 (ReasoningEngineServiceClient reasoningEngineServiceClient =
+   *     ReasoningEngineServiceClient.create()) {
+   *   GetReasoningEngineRequest request =
+   *       GetReasoningEngineRequest.newBuilder()
+   *           .setName(
+   *               ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       reasoningEngineServiceClient.getReasoningEngineCallable().futureCall(request);
+   *   // Do something.
+   *   ReasoningEngine response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getReasoningEngineCallable() { + return stub.getReasoningEngineCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists reasoning engines 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 (ReasoningEngineServiceClient reasoningEngineServiceClient =
+   *     ReasoningEngineServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (ReasoningEngine element :
+   *       reasoningEngineServiceClient.listReasoningEngines(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Location to list the ReasoningEngines from. + * Format: `projects/{project}/locations/{location}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListReasoningEnginesPagedResponse listReasoningEngines(LocationName parent) { + ListReasoningEnginesRequest request = + ListReasoningEnginesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listReasoningEngines(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists reasoning engines 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 (ReasoningEngineServiceClient reasoningEngineServiceClient =
+   *     ReasoningEngineServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (ReasoningEngine element :
+   *       reasoningEngineServiceClient.listReasoningEngines(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Location to list the ReasoningEngines from. + * Format: `projects/{project}/locations/{location}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListReasoningEnginesPagedResponse listReasoningEngines(String parent) { + ListReasoningEnginesRequest request = + ListReasoningEnginesRequest.newBuilder().setParent(parent).build(); + return listReasoningEngines(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists reasoning engines 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 (ReasoningEngineServiceClient reasoningEngineServiceClient =
+   *     ReasoningEngineServiceClient.create()) {
+   *   ListReasoningEnginesRequest request =
+   *       ListReasoningEnginesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (ReasoningEngine element :
+   *       reasoningEngineServiceClient.listReasoningEngines(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 ListReasoningEnginesPagedResponse listReasoningEngines( + ListReasoningEnginesRequest request) { + return listReasoningEnginesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists reasoning engines 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 (ReasoningEngineServiceClient reasoningEngineServiceClient =
+   *     ReasoningEngineServiceClient.create()) {
+   *   ListReasoningEnginesRequest request =
+   *       ListReasoningEnginesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       reasoningEngineServiceClient.listReasoningEnginesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (ReasoningEngine element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listReasoningEnginesPagedCallable() { + return stub.listReasoningEnginesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists reasoning engines 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 (ReasoningEngineServiceClient reasoningEngineServiceClient =
+   *     ReasoningEngineServiceClient.create()) {
+   *   ListReasoningEnginesRequest request =
+   *       ListReasoningEnginesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListReasoningEnginesResponse response =
+   *         reasoningEngineServiceClient.listReasoningEnginesCallable().call(request);
+   *     for (ReasoningEngine element : response.getReasoningEnginesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listReasoningEnginesCallable() { + return stub.listReasoningEnginesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates 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 (ReasoningEngineServiceClient reasoningEngineServiceClient =
+   *     ReasoningEngineServiceClient.create()) {
+   *   ReasoningEngine reasoningEngine = ReasoningEngine.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   ReasoningEngine response =
+   *       reasoningEngineServiceClient
+   *           .updateReasoningEngineAsync(reasoningEngine, updateMask)
+   *           .get();
+   * }
+   * }
+ * + * @param reasoningEngine Required. The ReasoningEngine which replaces the resource on the server. + * @param updateMask Optional. Mask specifying which fields to update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateReasoningEngineAsync(ReasoningEngine reasoningEngine, FieldMask updateMask) { + UpdateReasoningEngineRequest request = + UpdateReasoningEngineRequest.newBuilder() + .setReasoningEngine(reasoningEngine) + .setUpdateMask(updateMask) + .build(); + return updateReasoningEngineAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates 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 (ReasoningEngineServiceClient reasoningEngineServiceClient =
+   *     ReasoningEngineServiceClient.create()) {
+   *   UpdateReasoningEngineRequest request =
+   *       UpdateReasoningEngineRequest.newBuilder()
+   *           .setReasoningEngine(ReasoningEngine.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ReasoningEngine response =
+   *       reasoningEngineServiceClient.updateReasoningEngineAsync(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 + updateReasoningEngineAsync(UpdateReasoningEngineRequest request) { + return updateReasoningEngineOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates 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 (ReasoningEngineServiceClient reasoningEngineServiceClient =
+   *     ReasoningEngineServiceClient.create()) {
+   *   UpdateReasoningEngineRequest request =
+   *       UpdateReasoningEngineRequest.newBuilder()
+   *           .setReasoningEngine(ReasoningEngine.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       reasoningEngineServiceClient.updateReasoningEngineOperationCallable().futureCall(request);
+   *   // Do something.
+   *   ReasoningEngine response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + UpdateReasoningEngineRequest, ReasoningEngine, UpdateReasoningEngineOperationMetadata> + updateReasoningEngineOperationCallable() { + return stub.updateReasoningEngineOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates 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 (ReasoningEngineServiceClient reasoningEngineServiceClient =
+   *     ReasoningEngineServiceClient.create()) {
+   *   UpdateReasoningEngineRequest request =
+   *       UpdateReasoningEngineRequest.newBuilder()
+   *           .setReasoningEngine(ReasoningEngine.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       reasoningEngineServiceClient.updateReasoningEngineCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateReasoningEngineCallable() { + return stub.updateReasoningEngineCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes 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 (ReasoningEngineServiceClient reasoningEngineServiceClient =
+   *     ReasoningEngineServiceClient.create()) {
+   *   ReasoningEngineName name =
+   *       ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]");
+   *   reasoningEngineServiceClient.deleteReasoningEngineAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the ReasoningEngine resource to be deleted. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteReasoningEngineAsync( + ReasoningEngineName name) { + DeleteReasoningEngineRequest request = + DeleteReasoningEngineRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteReasoningEngineAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes 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 (ReasoningEngineServiceClient reasoningEngineServiceClient =
+   *     ReasoningEngineServiceClient.create()) {
+   *   String name =
+   *       ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]").toString();
+   *   reasoningEngineServiceClient.deleteReasoningEngineAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the ReasoningEngine resource to be deleted. Format: + * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteReasoningEngineAsync( + String name) { + DeleteReasoningEngineRequest request = + DeleteReasoningEngineRequest.newBuilder().setName(name).build(); + return deleteReasoningEngineAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes 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 (ReasoningEngineServiceClient reasoningEngineServiceClient =
+   *     ReasoningEngineServiceClient.create()) {
+   *   DeleteReasoningEngineRequest request =
+   *       DeleteReasoningEngineRequest.newBuilder()
+   *           .setName(
+   *               ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]")
+   *                   .toString())
+   *           .build();
+   *   reasoningEngineServiceClient.deleteReasoningEngineAsync(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 deleteReasoningEngineAsync( + DeleteReasoningEngineRequest request) { + return deleteReasoningEngineOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes 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 (ReasoningEngineServiceClient reasoningEngineServiceClient =
+   *     ReasoningEngineServiceClient.create()) {
+   *   DeleteReasoningEngineRequest request =
+   *       DeleteReasoningEngineRequest.newBuilder()
+   *           .setName(
+   *               ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]")
+   *                   .toString())
+   *           .build();
+   *   OperationFuture future =
+   *       reasoningEngineServiceClient.deleteReasoningEngineOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteReasoningEngineOperationCallable() { + return stub.deleteReasoningEngineOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes 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 (ReasoningEngineServiceClient reasoningEngineServiceClient =
+   *     ReasoningEngineServiceClient.create()) {
+   *   DeleteReasoningEngineRequest request =
+   *       DeleteReasoningEngineRequest.newBuilder()
+   *           .setName(
+   *               ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       reasoningEngineServiceClient.deleteReasoningEngineCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteReasoningEngineCallable() { + return stub.deleteReasoningEngineCallable(); + } + + // 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 (ReasoningEngineServiceClient reasoningEngineServiceClient =
+   *     ReasoningEngineServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : reasoningEngineServiceClient.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 (ReasoningEngineServiceClient reasoningEngineServiceClient =
+   *     ReasoningEngineServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       reasoningEngineServiceClient.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 (ReasoningEngineServiceClient reasoningEngineServiceClient =
+   *     ReasoningEngineServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         reasoningEngineServiceClient.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 (ReasoningEngineServiceClient reasoningEngineServiceClient =
+   *     ReasoningEngineServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = reasoningEngineServiceClient.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 (ReasoningEngineServiceClient reasoningEngineServiceClient =
+   *     ReasoningEngineServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future =
+   *       reasoningEngineServiceClient.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 (ReasoningEngineServiceClient reasoningEngineServiceClient =
+   *     ReasoningEngineServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EndpointName.ofProjectLocationEndpointName(
+   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = reasoningEngineServiceClient.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 (ReasoningEngineServiceClient reasoningEngineServiceClient =
+   *     ReasoningEngineServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EndpointName.ofProjectLocationEndpointName(
+   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       reasoningEngineServiceClient.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 (ReasoningEngineServiceClient reasoningEngineServiceClient =
+   *     ReasoningEngineServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EndpointName.ofProjectLocationEndpointName(
+   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = reasoningEngineServiceClient.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 (ReasoningEngineServiceClient reasoningEngineServiceClient =
+   *     ReasoningEngineServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               EndpointName.ofProjectLocationEndpointName(
+   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       reasoningEngineServiceClient.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 (ReasoningEngineServiceClient reasoningEngineServiceClient =
+   *     ReasoningEngineServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EndpointName.ofProjectLocationEndpointName(
+   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response =
+   *       reasoningEngineServiceClient.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 (ReasoningEngineServiceClient reasoningEngineServiceClient =
+   *     ReasoningEngineServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               EndpointName.ofProjectLocationEndpointName(
+   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       reasoningEngineServiceClient.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 ListReasoningEnginesPagedResponse + extends AbstractPagedListResponse< + ListReasoningEnginesRequest, + ListReasoningEnginesResponse, + ReasoningEngine, + ListReasoningEnginesPage, + ListReasoningEnginesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListReasoningEnginesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListReasoningEnginesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListReasoningEnginesPagedResponse(ListReasoningEnginesPage page) { + super(page, ListReasoningEnginesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListReasoningEnginesPage + extends AbstractPage< + ListReasoningEnginesRequest, + ListReasoningEnginesResponse, + ReasoningEngine, + ListReasoningEnginesPage> { + + private ListReasoningEnginesPage( + PageContext + context, + ListReasoningEnginesResponse response) { + super(context, response); + } + + private static ListReasoningEnginesPage createEmptyPage() { + return new ListReasoningEnginesPage(null, null); + } + + @Override + protected ListReasoningEnginesPage createPage( + PageContext + context, + ListReasoningEnginesResponse response) { + return new ListReasoningEnginesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListReasoningEnginesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListReasoningEnginesRequest, + ListReasoningEnginesResponse, + ReasoningEngine, + ListReasoningEnginesPage, + ListReasoningEnginesFixedSizeCollection> { + + private ListReasoningEnginesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListReasoningEnginesFixedSizeCollection createEmptyCollection() { + return new ListReasoningEnginesFixedSizeCollection(null, 0); + } + + @Override + protected ListReasoningEnginesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListReasoningEnginesFixedSizeCollection(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/ReasoningEngineServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineServiceSettings.java new file mode 100644 index 000000000000..3d875d3e8083 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineServiceSettings.java @@ -0,0 +1,396 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1; + +import static com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient.ListReasoningEnginesPagedResponse; + +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.ReasoningEngineServiceStubSettings; +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 ReasoningEngineServiceClient}. + * + *

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 getReasoningEngine: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ReasoningEngineServiceSettings.Builder reasoningEngineServiceSettingsBuilder =
+ *     ReasoningEngineServiceSettings.newBuilder();
+ * reasoningEngineServiceSettingsBuilder
+ *     .getReasoningEngineSettings()
+ *     .setRetrySettings(
+ *         reasoningEngineServiceSettingsBuilder
+ *             .getReasoningEngineSettings()
+ *             .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());
+ * ReasoningEngineServiceSettings reasoningEngineServiceSettings =
+ *     reasoningEngineServiceSettingsBuilder.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 createReasoningEngine: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ReasoningEngineServiceSettings.Builder reasoningEngineServiceSettingsBuilder =
+ *     ReasoningEngineServiceSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * reasoningEngineServiceSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class ReasoningEngineServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to createReasoningEngine. */ + public UnaryCallSettings + createReasoningEngineSettings() { + return ((ReasoningEngineServiceStubSettings) getStubSettings()).createReasoningEngineSettings(); + } + + /** Returns the object with the settings used for calls to createReasoningEngine. */ + public OperationCallSettings< + CreateReasoningEngineRequest, ReasoningEngine, CreateReasoningEngineOperationMetadata> + createReasoningEngineOperationSettings() { + return ((ReasoningEngineServiceStubSettings) getStubSettings()) + .createReasoningEngineOperationSettings(); + } + + /** Returns the object with the settings used for calls to getReasoningEngine. */ + public UnaryCallSettings + getReasoningEngineSettings() { + return ((ReasoningEngineServiceStubSettings) getStubSettings()).getReasoningEngineSettings(); + } + + /** Returns the object with the settings used for calls to listReasoningEngines. */ + public PagedCallSettings< + ListReasoningEnginesRequest, + ListReasoningEnginesResponse, + ListReasoningEnginesPagedResponse> + listReasoningEnginesSettings() { + return ((ReasoningEngineServiceStubSettings) getStubSettings()).listReasoningEnginesSettings(); + } + + /** Returns the object with the settings used for calls to updateReasoningEngine. */ + public UnaryCallSettings + updateReasoningEngineSettings() { + return ((ReasoningEngineServiceStubSettings) getStubSettings()).updateReasoningEngineSettings(); + } + + /** Returns the object with the settings used for calls to updateReasoningEngine. */ + public OperationCallSettings< + UpdateReasoningEngineRequest, ReasoningEngine, UpdateReasoningEngineOperationMetadata> + updateReasoningEngineOperationSettings() { + return ((ReasoningEngineServiceStubSettings) getStubSettings()) + .updateReasoningEngineOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteReasoningEngine. */ + public UnaryCallSettings + deleteReasoningEngineSettings() { + return ((ReasoningEngineServiceStubSettings) getStubSettings()).deleteReasoningEngineSettings(); + } + + /** Returns the object with the settings used for calls to deleteReasoningEngine. */ + public OperationCallSettings + deleteReasoningEngineOperationSettings() { + return ((ReasoningEngineServiceStubSettings) getStubSettings()) + .deleteReasoningEngineOperationSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((ReasoningEngineServiceStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((ReasoningEngineServiceStubSettings) getStubSettings()).getLocationSettings(); + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((ReasoningEngineServiceStubSettings) getStubSettings()).setIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((ReasoningEngineServiceStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return ((ReasoningEngineServiceStubSettings) getStubSettings()).testIamPermissionsSettings(); + } + + public static final ReasoningEngineServiceSettings create(ReasoningEngineServiceStubSettings stub) + throws IOException { + return new ReasoningEngineServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return ReasoningEngineServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return ReasoningEngineServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return ReasoningEngineServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return ReasoningEngineServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return ReasoningEngineServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return ReasoningEngineServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ReasoningEngineServiceStubSettings.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 ReasoningEngineServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for ReasoningEngineServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(ReasoningEngineServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(ReasoningEngineServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(ReasoningEngineServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(ReasoningEngineServiceStubSettings.newBuilder()); + } + + public ReasoningEngineServiceStubSettings.Builder getStubSettingsBuilder() { + return ((ReasoningEngineServiceStubSettings.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 createReasoningEngine. */ + public UnaryCallSettings.Builder + createReasoningEngineSettings() { + return getStubSettingsBuilder().createReasoningEngineSettings(); + } + + /** Returns the builder for the settings used for calls to createReasoningEngine. */ + public OperationCallSettings.Builder< + CreateReasoningEngineRequest, ReasoningEngine, CreateReasoningEngineOperationMetadata> + createReasoningEngineOperationSettings() { + return getStubSettingsBuilder().createReasoningEngineOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getReasoningEngine. */ + public UnaryCallSettings.Builder + getReasoningEngineSettings() { + return getStubSettingsBuilder().getReasoningEngineSettings(); + } + + /** Returns the builder for the settings used for calls to listReasoningEngines. */ + public PagedCallSettings.Builder< + ListReasoningEnginesRequest, + ListReasoningEnginesResponse, + ListReasoningEnginesPagedResponse> + listReasoningEnginesSettings() { + return getStubSettingsBuilder().listReasoningEnginesSettings(); + } + + /** Returns the builder for the settings used for calls to updateReasoningEngine. */ + public UnaryCallSettings.Builder + updateReasoningEngineSettings() { + return getStubSettingsBuilder().updateReasoningEngineSettings(); + } + + /** Returns the builder for the settings used for calls to updateReasoningEngine. */ + public OperationCallSettings.Builder< + UpdateReasoningEngineRequest, ReasoningEngine, UpdateReasoningEngineOperationMetadata> + updateReasoningEngineOperationSettings() { + return getStubSettingsBuilder().updateReasoningEngineOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteReasoningEngine. */ + public UnaryCallSettings.Builder + deleteReasoningEngineSettings() { + return getStubSettingsBuilder().deleteReasoningEngineSettings(); + } + + /** Returns the builder for the settings used for calls to deleteReasoningEngine. */ + public OperationCallSettings.Builder< + DeleteReasoningEngineRequest, Empty, DeleteOperationMetadata> + deleteReasoningEngineOperationSettings() { + return getStubSettingsBuilder().deleteReasoningEngineOperationSettings(); + } + + /** 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 ReasoningEngineServiceSettings build() throws IOException { + return new ReasoningEngineServiceSettings(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 d673caa075c2..bfd5e9fdad80 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 @@ -476,6 +476,45 @@ } } }, + "GenAiCacheService": { + "clients": { + "grpc": { + "libraryClient": "GenAiCacheServiceClient", + "rpcs": { + "CreateCachedContent": { + "methods": ["createCachedContent", "createCachedContent", "createCachedContent", "createCachedContentCallable"] + }, + "DeleteCachedContent": { + "methods": ["deleteCachedContent", "deleteCachedContent", "deleteCachedContent", "deleteCachedContentCallable"] + }, + "GetCachedContent": { + "methods": ["getCachedContent", "getCachedContent", "getCachedContent", "getCachedContentCallable"] + }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicyCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "ListCachedContents": { + "methods": ["listCachedContents", "listCachedContents", "listCachedContents", "listCachedContentsPagedCallable", "listCachedContentsCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicyCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissionsCallable"] + }, + "UpdateCachedContent": { + "methods": ["updateCachedContent", "updateCachedContent", "updateCachedContentCallable"] + } + } + } + } + }, "GenAiTuningService": { "clients": { "grpc": { @@ -1024,6 +1063,9 @@ "ListModelEvaluations": { "methods": ["listModelEvaluations", "listModelEvaluations", "listModelEvaluations", "listModelEvaluationsPagedCallable", "listModelEvaluationsCallable"] }, + "ListModelVersionCheckpoints": { + "methods": ["listModelVersionCheckpoints", "listModelVersionCheckpoints", "listModelVersionCheckpoints", "listModelVersionCheckpointsPagedCallable", "listModelVersionCheckpointsCallable"] + }, "ListModelVersions": { "methods": ["listModelVersions", "listModelVersions", "listModelVersions", "listModelVersionsPagedCallable", "listModelVersionsCallable"] }, @@ -1289,6 +1331,75 @@ } } }, + "ReasoningEngineExecutionService": { + "clients": { + "grpc": { + "libraryClient": "ReasoningEngineExecutionServiceClient", + "rpcs": { + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicyCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "QueryReasoningEngine": { + "methods": ["queryReasoningEngine", "queryReasoningEngineCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicyCallable"] + }, + "StreamQueryReasoningEngine": { + "methods": ["streamQueryReasoningEngineCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissionsCallable"] + } + } + } + } + }, + "ReasoningEngineService": { + "clients": { + "grpc": { + "libraryClient": "ReasoningEngineServiceClient", + "rpcs": { + "CreateReasoningEngine": { + "methods": ["createReasoningEngineAsync", "createReasoningEngineAsync", "createReasoningEngineAsync", "createReasoningEngineOperationCallable", "createReasoningEngineCallable"] + }, + "DeleteReasoningEngine": { + "methods": ["deleteReasoningEngineAsync", "deleteReasoningEngineAsync", "deleteReasoningEngineAsync", "deleteReasoningEngineOperationCallable", "deleteReasoningEngineCallable"] + }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicyCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "GetReasoningEngine": { + "methods": ["getReasoningEngine", "getReasoningEngine", "getReasoningEngine", "getReasoningEngineCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "ListReasoningEngines": { + "methods": ["listReasoningEngines", "listReasoningEngines", "listReasoningEngines", "listReasoningEnginesPagedCallable", "listReasoningEnginesCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicyCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissionsCallable"] + }, + "UpdateReasoningEngine": { + "methods": ["updateReasoningEngineAsync", "updateReasoningEngineAsync", "updateReasoningEngineOperationCallable", "updateReasoningEngineCallable"] + } + } + } + } + }, "ScheduleService": { "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 fbc7d354f6a6..94ce7ab13ebc 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 @@ -200,6 +200,25 @@ * } * } * + *

======================= GenAiCacheServiceClient ======================= + * + *

Service Description: Service for managing Vertex AI's CachedContent resource. + * + *

Sample for GenAiCacheServiceClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) {
+ *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ *   CachedContent cachedContent = CachedContent.newBuilder().build();
+ *   CachedContent response = genAiCacheServiceClient.createCachedContent(parent, cachedContent);
+ * }
+ * }
+ * *

======================= GenAiTuningServiceClient ======================= * *

Service Description: A service for creating and managing GenAI Tuning Jobs. @@ -476,6 +495,53 @@ * } * } * + *

======================= ReasoningEngineExecutionServiceClient ======================= + * + *

Service Description: A service for executing queries on Reasoning Engine. + * + *

Sample for ReasoningEngineExecutionServiceClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying 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()) {
+ *   QueryReasoningEngineRequest request =
+ *       QueryReasoningEngineRequest.newBuilder()
+ *           .setName(
+ *               ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]")
+ *                   .toString())
+ *           .setInput(Struct.newBuilder().build())
+ *           .setClassMethod("classMethod-937857927")
+ *           .build();
+ *   QueryReasoningEngineResponse response =
+ *       reasoningEngineExecutionServiceClient.queryReasoningEngine(request);
+ * }
+ * }
+ * + *

======================= ReasoningEngineServiceClient ======================= + * + *

Service Description: A service for managing Vertex AI's Reasoning Engines. + * + *

Sample for ReasoningEngineServiceClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ReasoningEngineServiceClient reasoningEngineServiceClient =
+ *     ReasoningEngineServiceClient.create()) {
+ *   ReasoningEngineName name =
+ *       ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]");
+ *   ReasoningEngine response = reasoningEngineServiceClient.getReasoningEngine(name);
+ * }
+ * }
+ * *

======================= ScheduleServiceClient ======================= * *

Service Description: A service for creating and managing Vertex AI's Schedule resources to diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GenAiCacheServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GenAiCacheServiceStub.java new file mode 100644 index 000000000000..7c38f9c06126 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GenAiCacheServiceStub.java @@ -0,0 +1,106 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.stub; + +import static com.google.cloud.aiplatform.v1.GenAiCacheServiceClient.ListCachedContentsPagedResponse; +import static com.google.cloud.aiplatform.v1.GenAiCacheServiceClient.ListLocationsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1.CachedContent; +import com.google.cloud.aiplatform.v1.CreateCachedContentRequest; +import com.google.cloud.aiplatform.v1.DeleteCachedContentRequest; +import com.google.cloud.aiplatform.v1.GetCachedContentRequest; +import com.google.cloud.aiplatform.v1.ListCachedContentsRequest; +import com.google.cloud.aiplatform.v1.ListCachedContentsResponse; +import com.google.cloud.aiplatform.v1.UpdateCachedContentRequest; +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.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the GenAiCacheService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class GenAiCacheServiceStub implements BackgroundResource { + + public UnaryCallable createCachedContentCallable() { + throw new UnsupportedOperationException("Not implemented: createCachedContentCallable()"); + } + + public UnaryCallable getCachedContentCallable() { + throw new UnsupportedOperationException("Not implemented: getCachedContentCallable()"); + } + + public UnaryCallable updateCachedContentCallable() { + throw new UnsupportedOperationException("Not implemented: updateCachedContentCallable()"); + } + + public UnaryCallable deleteCachedContentCallable() { + throw new UnsupportedOperationException("Not implemented: deleteCachedContentCallable()"); + } + + public UnaryCallable + listCachedContentsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listCachedContentsPagedCallable()"); + } + + public UnaryCallable + listCachedContentsCallable() { + throw new UnsupportedOperationException("Not implemented: listCachedContentsCallable()"); + } + + 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/GenAiCacheServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GenAiCacheServiceStubSettings.java new file mode 100644 index 000000000000..40d5487b205d --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GenAiCacheServiceStubSettings.java @@ -0,0 +1,651 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.stub; + +import static com.google.cloud.aiplatform.v1.GenAiCacheServiceClient.ListCachedContentsPagedResponse; +import static com.google.cloud.aiplatform.v1.GenAiCacheServiceClient.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.CachedContent; +import com.google.cloud.aiplatform.v1.CreateCachedContentRequest; +import com.google.cloud.aiplatform.v1.DeleteCachedContentRequest; +import com.google.cloud.aiplatform.v1.GetCachedContentRequest; +import com.google.cloud.aiplatform.v1.ListCachedContentsRequest; +import com.google.cloud.aiplatform.v1.ListCachedContentsResponse; +import com.google.cloud.aiplatform.v1.UpdateCachedContentRequest; +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.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 GenAiCacheServiceStub}. + * + *

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 createCachedContent: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * GenAiCacheServiceStubSettings.Builder genAiCacheServiceSettingsBuilder =
+ *     GenAiCacheServiceStubSettings.newBuilder();
+ * genAiCacheServiceSettingsBuilder
+ *     .createCachedContentSettings()
+ *     .setRetrySettings(
+ *         genAiCacheServiceSettingsBuilder
+ *             .createCachedContentSettings()
+ *             .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());
+ * GenAiCacheServiceStubSettings genAiCacheServiceSettings =
+ *     genAiCacheServiceSettingsBuilder.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 GenAiCacheServiceStubSettings 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 + createCachedContentSettings; + private final UnaryCallSettings getCachedContentSettings; + private final UnaryCallSettings + updateCachedContentSettings; + private final UnaryCallSettings deleteCachedContentSettings; + private final PagedCallSettings< + ListCachedContentsRequest, ListCachedContentsResponse, ListCachedContentsPagedResponse> + listCachedContentsSettings; + 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< + ListCachedContentsRequest, ListCachedContentsResponse, CachedContent> + LIST_CACHED_CONTENTS_PAGE_STR_DESC = + new PagedListDescriptor< + ListCachedContentsRequest, ListCachedContentsResponse, CachedContent>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListCachedContentsRequest injectToken( + ListCachedContentsRequest payload, String token) { + return ListCachedContentsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListCachedContentsRequest injectPageSize( + ListCachedContentsRequest payload, int pageSize) { + return ListCachedContentsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListCachedContentsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListCachedContentsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListCachedContentsResponse payload) { + return payload.getCachedContentsList(); + } + }; + + 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< + ListCachedContentsRequest, ListCachedContentsResponse, ListCachedContentsPagedResponse> + LIST_CACHED_CONTENTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListCachedContentsRequest, + ListCachedContentsResponse, + ListCachedContentsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListCachedContentsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_CACHED_CONTENTS_PAGE_STR_DESC, request, context); + return ListCachedContentsPagedResponse.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 createCachedContent. */ + public UnaryCallSettings + createCachedContentSettings() { + return createCachedContentSettings; + } + + /** Returns the object with the settings used for calls to getCachedContent. */ + public UnaryCallSettings getCachedContentSettings() { + return getCachedContentSettings; + } + + /** Returns the object with the settings used for calls to updateCachedContent. */ + public UnaryCallSettings + updateCachedContentSettings() { + return updateCachedContentSettings; + } + + /** Returns the object with the settings used for calls to deleteCachedContent. */ + public UnaryCallSettings deleteCachedContentSettings() { + return deleteCachedContentSettings; + } + + /** Returns the object with the settings used for calls to listCachedContents. */ + public PagedCallSettings< + ListCachedContentsRequest, ListCachedContentsResponse, ListCachedContentsPagedResponse> + listCachedContentsSettings() { + return listCachedContentsSettings; + } + + /** 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 GenAiCacheServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcGenAiCacheServiceStub.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(GenAiCacheServiceStubSettings.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 GenAiCacheServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createCachedContentSettings = settingsBuilder.createCachedContentSettings().build(); + getCachedContentSettings = settingsBuilder.getCachedContentSettings().build(); + updateCachedContentSettings = settingsBuilder.updateCachedContentSettings().build(); + deleteCachedContentSettings = settingsBuilder.deleteCachedContentSettings().build(); + listCachedContentsSettings = settingsBuilder.listCachedContentsSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); + } + + /** Builder for GenAiCacheServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + createCachedContentSettings; + private final UnaryCallSettings.Builder + getCachedContentSettings; + private final UnaryCallSettings.Builder + updateCachedContentSettings; + private final UnaryCallSettings.Builder + deleteCachedContentSettings; + private final PagedCallSettings.Builder< + ListCachedContentsRequest, ListCachedContentsResponse, ListCachedContentsPagedResponse> + listCachedContentsSettings; + 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); + + createCachedContentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getCachedContentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateCachedContentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteCachedContentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listCachedContentsSettings = PagedCallSettings.newBuilder(LIST_CACHED_CONTENTS_PAGE_STR_FACT); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createCachedContentSettings, + getCachedContentSettings, + updateCachedContentSettings, + deleteCachedContentSettings, + listCachedContentsSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + initDefaults(this); + } + + protected Builder(GenAiCacheServiceStubSettings settings) { + super(settings); + + createCachedContentSettings = settings.createCachedContentSettings.toBuilder(); + getCachedContentSettings = settings.getCachedContentSettings.toBuilder(); + updateCachedContentSettings = settings.updateCachedContentSettings.toBuilder(); + deleteCachedContentSettings = settings.deleteCachedContentSettings.toBuilder(); + listCachedContentsSettings = settings.listCachedContentsSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createCachedContentSettings, + getCachedContentSettings, + updateCachedContentSettings, + deleteCachedContentSettings, + listCachedContentsSettings, + 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 + .createCachedContentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getCachedContentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateCachedContentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteCachedContentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listCachedContentsSettings() + .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 createCachedContent. */ + public UnaryCallSettings.Builder + createCachedContentSettings() { + return createCachedContentSettings; + } + + /** Returns the builder for the settings used for calls to getCachedContent. */ + public UnaryCallSettings.Builder + getCachedContentSettings() { + return getCachedContentSettings; + } + + /** Returns the builder for the settings used for calls to updateCachedContent. */ + public UnaryCallSettings.Builder + updateCachedContentSettings() { + return updateCachedContentSettings; + } + + /** Returns the builder for the settings used for calls to deleteCachedContent. */ + public UnaryCallSettings.Builder + deleteCachedContentSettings() { + return deleteCachedContentSettings; + } + + /** Returns the builder for the settings used for calls to listCachedContents. */ + public PagedCallSettings.Builder< + ListCachedContentsRequest, ListCachedContentsResponse, ListCachedContentsPagedResponse> + listCachedContentsSettings() { + return listCachedContentsSettings; + } + + /** 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 GenAiCacheServiceStubSettings build() throws IOException { + return new GenAiCacheServiceStubSettings(this); + } + } +} diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcGenAiCacheServiceCallableFactory.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcGenAiCacheServiceCallableFactory.java new file mode 100644 index 000000000000..1870f8976c50 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcGenAiCacheServiceCallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 GenAiCacheService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcGenAiCacheServiceCallableFactory 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/GrpcGenAiCacheServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcGenAiCacheServiceStub.java new file mode 100644 index 000000000000..6b14c5d4fec1 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcGenAiCacheServiceStub.java @@ -0,0 +1,484 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.stub; + +import static com.google.cloud.aiplatform.v1.GenAiCacheServiceClient.ListCachedContentsPagedResponse; +import static com.google.cloud.aiplatform.v1.GenAiCacheServiceClient.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.CachedContent; +import com.google.cloud.aiplatform.v1.CreateCachedContentRequest; +import com.google.cloud.aiplatform.v1.DeleteCachedContentRequest; +import com.google.cloud.aiplatform.v1.GetCachedContentRequest; +import com.google.cloud.aiplatform.v1.ListCachedContentsRequest; +import com.google.cloud.aiplatform.v1.ListCachedContentsResponse; +import com.google.cloud.aiplatform.v1.UpdateCachedContentRequest; +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 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 GenAiCacheService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcGenAiCacheServiceStub extends GenAiCacheServiceStub { + private static final MethodDescriptor + createCachedContentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1.GenAiCacheService/CreateCachedContent") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateCachedContentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(CachedContent.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getCachedContentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1.GenAiCacheService/GetCachedContent") + .setRequestMarshaller( + ProtoUtils.marshaller(GetCachedContentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(CachedContent.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateCachedContentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1.GenAiCacheService/UpdateCachedContent") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateCachedContentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(CachedContent.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteCachedContentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1.GenAiCacheService/DeleteCachedContent") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteCachedContentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listCachedContentsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1.GenAiCacheService/ListCachedContents") + .setRequestMarshaller( + ProtoUtils.marshaller(ListCachedContentsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListCachedContentsResponse.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 + createCachedContentCallable; + private final UnaryCallable getCachedContentCallable; + private final UnaryCallable + updateCachedContentCallable; + private final UnaryCallable deleteCachedContentCallable; + private final UnaryCallable + listCachedContentsCallable; + private final UnaryCallable + listCachedContentsPagedCallable; + 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 GrpcGenAiCacheServiceStub create(GenAiCacheServiceStubSettings settings) + throws IOException { + return new GrpcGenAiCacheServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcGenAiCacheServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcGenAiCacheServiceStub( + GenAiCacheServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcGenAiCacheServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcGenAiCacheServiceStub( + GenAiCacheServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcGenAiCacheServiceStub, 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 GrpcGenAiCacheServiceStub( + GenAiCacheServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcGenAiCacheServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcGenAiCacheServiceStub, 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 GrpcGenAiCacheServiceStub( + GenAiCacheServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + createCachedContentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createCachedContentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getCachedContentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getCachedContentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateCachedContentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateCachedContentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "cached_content.name", + String.valueOf(request.getCachedContent().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteCachedContentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteCachedContentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listCachedContentsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listCachedContentsMethodDescriptor) + .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.createCachedContentCallable = + callableFactory.createUnaryCallable( + createCachedContentTransportSettings, + settings.createCachedContentSettings(), + clientContext); + this.getCachedContentCallable = + callableFactory.createUnaryCallable( + getCachedContentTransportSettings, settings.getCachedContentSettings(), clientContext); + this.updateCachedContentCallable = + callableFactory.createUnaryCallable( + updateCachedContentTransportSettings, + settings.updateCachedContentSettings(), + clientContext); + this.deleteCachedContentCallable = + callableFactory.createUnaryCallable( + deleteCachedContentTransportSettings, + settings.deleteCachedContentSettings(), + clientContext); + this.listCachedContentsCallable = + callableFactory.createUnaryCallable( + listCachedContentsTransportSettings, + settings.listCachedContentsSettings(), + clientContext); + this.listCachedContentsPagedCallable = + callableFactory.createPagedCallable( + listCachedContentsTransportSettings, + settings.listCachedContentsSettings(), + 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 createCachedContentCallable() { + return createCachedContentCallable; + } + + @Override + public UnaryCallable getCachedContentCallable() { + return getCachedContentCallable; + } + + @Override + public UnaryCallable updateCachedContentCallable() { + return updateCachedContentCallable; + } + + @Override + public UnaryCallable deleteCachedContentCallable() { + return deleteCachedContentCallable; + } + + @Override + public UnaryCallable + listCachedContentsCallable() { + return listCachedContentsCallable; + } + + @Override + public UnaryCallable + listCachedContentsPagedCallable() { + return listCachedContentsPagedCallable; + } + + @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/GrpcModelServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcModelServiceStub.java index 1d80d962b06c..6479196ed57b 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcModelServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcModelServiceStub.java @@ -19,6 +19,7 @@ import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelEvaluationSlicesPagedResponse; import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelEvaluationsPagedResponse; +import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelVersionCheckpointsPagedResponse; import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelVersionsPagedResponse; import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelsPagedResponse; @@ -51,6 +52,8 @@ import com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse; import com.google.cloud.aiplatform.v1.ListModelEvaluationsRequest; import com.google.cloud.aiplatform.v1.ListModelEvaluationsResponse; +import com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest; +import com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse; import com.google.cloud.aiplatform.v1.ListModelVersionsRequest; import com.google.cloud.aiplatform.v1.ListModelVersionsResponse; import com.google.cloud.aiplatform.v1.ListModelsRequest; @@ -128,6 +131,20 @@ public class GrpcModelServiceStub extends ModelServiceStub { ProtoUtils.marshaller(ListModelVersionsResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor< + ListModelVersionCheckpointsRequest, ListModelVersionCheckpointsResponse> + listModelVersionCheckpointsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1.ModelService/ListModelVersionCheckpoints") + .setRequestMarshaller( + ProtoUtils.marshaller(ListModelVersionCheckpointsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListModelVersionCheckpointsResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor updateModelMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -337,6 +354,12 @@ public class GrpcModelServiceStub extends ModelServiceStub { listModelVersionsCallable; private final UnaryCallable listModelVersionsPagedCallable; + private final UnaryCallable< + ListModelVersionCheckpointsRequest, ListModelVersionCheckpointsResponse> + listModelVersionCheckpointsCallable; + private final UnaryCallable< + ListModelVersionCheckpointsRequest, ListModelVersionCheckpointsPagedResponse> + listModelVersionCheckpointsPagedCallable; private final UnaryCallable updateModelCallable; private final UnaryCallable updateExplanationDatasetCallable; @@ -472,6 +495,19 @@ protected GrpcModelServiceStub( return builder.build(); }) .build(); + GrpcCallSettings + listModelVersionCheckpointsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listModelVersionCheckpointsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings updateModelTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateModelMethodDescriptor) @@ -707,6 +743,16 @@ protected GrpcModelServiceStub( listModelVersionsTransportSettings, settings.listModelVersionsSettings(), clientContext); + this.listModelVersionCheckpointsCallable = + callableFactory.createUnaryCallable( + listModelVersionCheckpointsTransportSettings, + settings.listModelVersionCheckpointsSettings(), + clientContext); + this.listModelVersionCheckpointsPagedCallable = + callableFactory.createPagedCallable( + listModelVersionCheckpointsTransportSettings, + settings.listModelVersionCheckpointsSettings(), + clientContext); this.updateModelCallable = callableFactory.createUnaryCallable( updateModelTransportSettings, settings.updateModelSettings(), clientContext); @@ -876,6 +922,18 @@ public UnaryCallable listModelsPaged return listModelVersionsPagedCallable; } + @Override + public UnaryCallable + listModelVersionCheckpointsCallable() { + return listModelVersionCheckpointsCallable; + } + + @Override + public UnaryCallable + listModelVersionCheckpointsPagedCallable() { + return listModelVersionCheckpointsPagedCallable; + } + @Override public UnaryCallable updateModelCallable() { return updateModelCallable; diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcReasoningEngineExecutionServiceCallableFactory.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcReasoningEngineExecutionServiceCallableFactory.java new file mode 100644 index 000000000000..d28a87b74165 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcReasoningEngineExecutionServiceCallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ReasoningEngineExecutionService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcReasoningEngineExecutionServiceCallableFactory 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/GrpcReasoningEngineExecutionServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcReasoningEngineExecutionServiceStub.java new file mode 100644 index 000000000000..3f20be30241e --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcReasoningEngineExecutionServiceStub.java @@ -0,0 +1,378 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.stub; + +import static com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceClient.ListLocationsPagedResponse; + +import com.google.api.HttpBody; +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.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest; +import com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse; +import com.google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest; +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 ReasoningEngineExecutionService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcReasoningEngineExecutionServiceStub extends ReasoningEngineExecutionServiceStub { + private static final MethodDescriptor + queryReasoningEngineMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1.ReasoningEngineExecutionService/QueryReasoningEngine") + .setRequestMarshaller( + ProtoUtils.marshaller(QueryReasoningEngineRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(QueryReasoningEngineResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + streamQueryReasoningEngineMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.SERVER_STREAMING) + .setFullMethodName( + "google.cloud.aiplatform.v1.ReasoningEngineExecutionService/StreamQueryReasoningEngine") + .setRequestMarshaller( + ProtoUtils.marshaller(StreamQueryReasoningEngineRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(HttpBody.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 + queryReasoningEngineCallable; + private final ServerStreamingCallable + streamQueryReasoningEngineCallable; + 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 GrpcReasoningEngineExecutionServiceStub create( + ReasoningEngineExecutionServiceStubSettings settings) throws IOException { + return new GrpcReasoningEngineExecutionServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcReasoningEngineExecutionServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcReasoningEngineExecutionServiceStub( + ReasoningEngineExecutionServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcReasoningEngineExecutionServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcReasoningEngineExecutionServiceStub( + ReasoningEngineExecutionServiceStubSettings.newBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of GrpcReasoningEngineExecutionServiceStub, 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 GrpcReasoningEngineExecutionServiceStub( + ReasoningEngineExecutionServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcReasoningEngineExecutionServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcReasoningEngineExecutionServiceStub, 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 GrpcReasoningEngineExecutionServiceStub( + ReasoningEngineExecutionServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + queryReasoningEngineTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(queryReasoningEngineMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + 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) + .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.queryReasoningEngineCallable = + callableFactory.createUnaryCallable( + queryReasoningEngineTransportSettings, + settings.queryReasoningEngineSettings(), + clientContext); + this.streamQueryReasoningEngineCallable = + callableFactory.createServerStreamingCallable( + streamQueryReasoningEngineTransportSettings, + settings.streamQueryReasoningEngineSettings(), + 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 + queryReasoningEngineCallable() { + return queryReasoningEngineCallable; + } + + @Override + public ServerStreamingCallable + streamQueryReasoningEngineCallable() { + return streamQueryReasoningEngineCallable; + } + + @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/GrpcReasoningEngineServiceCallableFactory.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcReasoningEngineServiceCallableFactory.java new file mode 100644 index 000000000000..c376148e0c97 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcReasoningEngineServiceCallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ReasoningEngineService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcReasoningEngineServiceCallableFactory 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/GrpcReasoningEngineServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcReasoningEngineServiceStub.java new file mode 100644 index 000000000000..c6bebc304889 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcReasoningEngineServiceStub.java @@ -0,0 +1,546 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.stub; + +import static com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient.ListReasoningEnginesPagedResponse; + +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.CreateReasoningEngineOperationMetadata; +import com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest; +import com.google.cloud.aiplatform.v1.DeleteOperationMetadata; +import com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest; +import com.google.cloud.aiplatform.v1.GetReasoningEngineRequest; +import com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest; +import com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse; +import com.google.cloud.aiplatform.v1.ReasoningEngine; +import com.google.cloud.aiplatform.v1.UpdateReasoningEngineOperationMetadata; +import com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest; +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 ReasoningEngineService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcReasoningEngineServiceStub extends ReasoningEngineServiceStub { + private static final MethodDescriptor + createReasoningEngineMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1.ReasoningEngineService/CreateReasoningEngine") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateReasoningEngineRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getReasoningEngineMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1.ReasoningEngineService/GetReasoningEngine") + .setRequestMarshaller( + ProtoUtils.marshaller(GetReasoningEngineRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ReasoningEngine.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listReasoningEnginesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1.ReasoningEngineService/ListReasoningEngines") + .setRequestMarshaller( + ProtoUtils.marshaller(ListReasoningEnginesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListReasoningEnginesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateReasoningEngineMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1.ReasoningEngineService/UpdateReasoningEngine") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateReasoningEngineRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteReasoningEngineMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1.ReasoningEngineService/DeleteReasoningEngine") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteReasoningEngineRequest.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 + createReasoningEngineCallable; + private final OperationCallable< + CreateReasoningEngineRequest, ReasoningEngine, CreateReasoningEngineOperationMetadata> + createReasoningEngineOperationCallable; + private final UnaryCallable + getReasoningEngineCallable; + private final UnaryCallable + listReasoningEnginesCallable; + private final UnaryCallable + listReasoningEnginesPagedCallable; + private final UnaryCallable + updateReasoningEngineCallable; + private final OperationCallable< + UpdateReasoningEngineRequest, ReasoningEngine, UpdateReasoningEngineOperationMetadata> + updateReasoningEngineOperationCallable; + private final UnaryCallable + deleteReasoningEngineCallable; + private final OperationCallable + deleteReasoningEngineOperationCallable; + 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 GrpcReasoningEngineServiceStub create( + ReasoningEngineServiceStubSettings settings) throws IOException { + return new GrpcReasoningEngineServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcReasoningEngineServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcReasoningEngineServiceStub( + ReasoningEngineServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcReasoningEngineServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcReasoningEngineServiceStub( + ReasoningEngineServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcReasoningEngineServiceStub, 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 GrpcReasoningEngineServiceStub( + ReasoningEngineServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcReasoningEngineServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcReasoningEngineServiceStub, 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 GrpcReasoningEngineServiceStub( + ReasoningEngineServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + createReasoningEngineTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createReasoningEngineMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getReasoningEngineTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getReasoningEngineMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listReasoningEnginesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listReasoningEnginesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateReasoningEngineTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateReasoningEngineMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "reasoning_engine.name", + String.valueOf(request.getReasoningEngine().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteReasoningEngineTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteReasoningEngineMethodDescriptor) + .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.createReasoningEngineCallable = + callableFactory.createUnaryCallable( + createReasoningEngineTransportSettings, + settings.createReasoningEngineSettings(), + clientContext); + this.createReasoningEngineOperationCallable = + callableFactory.createOperationCallable( + createReasoningEngineTransportSettings, + settings.createReasoningEngineOperationSettings(), + clientContext, + operationsStub); + this.getReasoningEngineCallable = + callableFactory.createUnaryCallable( + getReasoningEngineTransportSettings, + settings.getReasoningEngineSettings(), + clientContext); + this.listReasoningEnginesCallable = + callableFactory.createUnaryCallable( + listReasoningEnginesTransportSettings, + settings.listReasoningEnginesSettings(), + clientContext); + this.listReasoningEnginesPagedCallable = + callableFactory.createPagedCallable( + listReasoningEnginesTransportSettings, + settings.listReasoningEnginesSettings(), + clientContext); + this.updateReasoningEngineCallable = + callableFactory.createUnaryCallable( + updateReasoningEngineTransportSettings, + settings.updateReasoningEngineSettings(), + clientContext); + this.updateReasoningEngineOperationCallable = + callableFactory.createOperationCallable( + updateReasoningEngineTransportSettings, + settings.updateReasoningEngineOperationSettings(), + clientContext, + operationsStub); + this.deleteReasoningEngineCallable = + callableFactory.createUnaryCallable( + deleteReasoningEngineTransportSettings, + settings.deleteReasoningEngineSettings(), + clientContext); + this.deleteReasoningEngineOperationCallable = + callableFactory.createOperationCallable( + deleteReasoningEngineTransportSettings, + settings.deleteReasoningEngineOperationSettings(), + 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 createReasoningEngineCallable() { + return createReasoningEngineCallable; + } + + @Override + public OperationCallable< + CreateReasoningEngineRequest, ReasoningEngine, CreateReasoningEngineOperationMetadata> + createReasoningEngineOperationCallable() { + return createReasoningEngineOperationCallable; + } + + @Override + public UnaryCallable getReasoningEngineCallable() { + return getReasoningEngineCallable; + } + + @Override + public UnaryCallable + listReasoningEnginesCallable() { + return listReasoningEnginesCallable; + } + + @Override + public UnaryCallable + listReasoningEnginesPagedCallable() { + return listReasoningEnginesPagedCallable; + } + + @Override + public UnaryCallable updateReasoningEngineCallable() { + return updateReasoningEngineCallable; + } + + @Override + public OperationCallable< + UpdateReasoningEngineRequest, ReasoningEngine, UpdateReasoningEngineOperationMetadata> + updateReasoningEngineOperationCallable() { + return updateReasoningEngineOperationCallable; + } + + @Override + public UnaryCallable deleteReasoningEngineCallable() { + return deleteReasoningEngineCallable; + } + + @Override + public OperationCallable + deleteReasoningEngineOperationCallable() { + return deleteReasoningEngineOperationCallable; + } + + @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/ModelServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelServiceStub.java index 2373b18d8e11..c888155ba92f 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelServiceStub.java @@ -19,6 +19,7 @@ import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelEvaluationSlicesPagedResponse; import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelEvaluationsPagedResponse; +import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelVersionCheckpointsPagedResponse; import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelVersionsPagedResponse; import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelsPagedResponse; @@ -46,6 +47,8 @@ import com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse; import com.google.cloud.aiplatform.v1.ListModelEvaluationsRequest; import com.google.cloud.aiplatform.v1.ListModelEvaluationsResponse; +import com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest; +import com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse; import com.google.cloud.aiplatform.v1.ListModelVersionsRequest; import com.google.cloud.aiplatform.v1.ListModelVersionsResponse; import com.google.cloud.aiplatform.v1.ListModelsRequest; @@ -119,6 +122,18 @@ public UnaryCallable listModelsCallable() throw new UnsupportedOperationException("Not implemented: listModelVersionsCallable()"); } + public UnaryCallable + listModelVersionCheckpointsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listModelVersionCheckpointsPagedCallable()"); + } + + public UnaryCallable + listModelVersionCheckpointsCallable() { + throw new UnsupportedOperationException( + "Not implemented: listModelVersionCheckpointsCallable()"); + } + public UnaryCallable updateModelCallable() { throw new UnsupportedOperationException("Not implemented: updateModelCallable()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelServiceStubSettings.java index 9fad9c4b5db5..da8842a40a5e 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ModelServiceStubSettings.java @@ -19,6 +19,7 @@ import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelEvaluationSlicesPagedResponse; import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelEvaluationsPagedResponse; +import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelVersionCheckpointsPagedResponse; import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelVersionsPagedResponse; import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelsPagedResponse; @@ -69,6 +70,8 @@ import com.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse; import com.google.cloud.aiplatform.v1.ListModelEvaluationsRequest; import com.google.cloud.aiplatform.v1.ListModelEvaluationsResponse; +import com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest; +import com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse; import com.google.cloud.aiplatform.v1.ListModelVersionsRequest; import com.google.cloud.aiplatform.v1.ListModelVersionsResponse; import com.google.cloud.aiplatform.v1.ListModelsRequest; @@ -77,6 +80,7 @@ import com.google.cloud.aiplatform.v1.Model; import com.google.cloud.aiplatform.v1.ModelEvaluation; import com.google.cloud.aiplatform.v1.ModelEvaluationSlice; +import com.google.cloud.aiplatform.v1.ModelVersionCheckpoint; import com.google.cloud.aiplatform.v1.UpdateExplanationDatasetOperationMetadata; import com.google.cloud.aiplatform.v1.UpdateExplanationDatasetRequest; import com.google.cloud.aiplatform.v1.UpdateExplanationDatasetResponse; @@ -196,6 +200,11 @@ public class ModelServiceStubSettings extends StubSettings listModelVersionsSettings; + private final PagedCallSettings< + ListModelVersionCheckpointsRequest, + ListModelVersionCheckpointsResponse, + ListModelVersionCheckpointsPagedResponse> + listModelVersionCheckpointsSettings; private final UnaryCallSettings updateModelSettings; private final UnaryCallSettings updateExplanationDatasetSettings; @@ -321,6 +330,53 @@ public Iterable extractResources(ListModelVersionsResponse payload) { } }; + private static final PagedListDescriptor< + ListModelVersionCheckpointsRequest, + ListModelVersionCheckpointsResponse, + ModelVersionCheckpoint> + LIST_MODEL_VERSION_CHECKPOINTS_PAGE_STR_DESC = + new PagedListDescriptor< + ListModelVersionCheckpointsRequest, + ListModelVersionCheckpointsResponse, + ModelVersionCheckpoint>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListModelVersionCheckpointsRequest injectToken( + ListModelVersionCheckpointsRequest payload, String token) { + return ListModelVersionCheckpointsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListModelVersionCheckpointsRequest injectPageSize( + ListModelVersionCheckpointsRequest payload, int pageSize) { + return ListModelVersionCheckpointsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListModelVersionCheckpointsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListModelVersionCheckpointsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListModelVersionCheckpointsResponse payload) { + return payload.getCheckpointsList(); + } + }; + private static final PagedListDescriptor< ListModelEvaluationsRequest, ListModelEvaluationsResponse, ModelEvaluation> LIST_MODEL_EVALUATIONS_PAGE_STR_DESC = @@ -475,6 +531,35 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListModelVersionCheckpointsRequest, + ListModelVersionCheckpointsResponse, + ListModelVersionCheckpointsPagedResponse> + LIST_MODEL_VERSION_CHECKPOINTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListModelVersionCheckpointsRequest, + ListModelVersionCheckpointsResponse, + ListModelVersionCheckpointsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ListModelVersionCheckpointsRequest, ListModelVersionCheckpointsResponse> + callable, + ListModelVersionCheckpointsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListModelVersionCheckpointsRequest, + ListModelVersionCheckpointsResponse, + ModelVersionCheckpoint> + pageContext = + PageContext.create( + callable, LIST_MODEL_VERSION_CHECKPOINTS_PAGE_STR_DESC, request, context); + return ListModelVersionCheckpointsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListModelEvaluationsRequest, ListModelEvaluationsResponse, @@ -574,6 +659,15 @@ public UnaryCallSettings getModelSettings() { return listModelVersionsSettings; } + /** Returns the object with the settings used for calls to listModelVersionCheckpoints. */ + public PagedCallSettings< + ListModelVersionCheckpointsRequest, + ListModelVersionCheckpointsResponse, + ListModelVersionCheckpointsPagedResponse> + listModelVersionCheckpointsSettings() { + return listModelVersionCheckpointsSettings; + } + /** Returns the object with the settings used for calls to updateModel. */ public UnaryCallSettings updateModelSettings() { return updateModelSettings; @@ -807,6 +901,8 @@ protected ModelServiceStubSettings(Builder settingsBuilder) throws IOException { getModelSettings = settingsBuilder.getModelSettings().build(); listModelsSettings = settingsBuilder.listModelsSettings().build(); listModelVersionsSettings = settingsBuilder.listModelVersionsSettings().build(); + listModelVersionCheckpointsSettings = + settingsBuilder.listModelVersionCheckpointsSettings().build(); updateModelSettings = settingsBuilder.updateModelSettings().build(); updateExplanationDatasetSettings = settingsBuilder.updateExplanationDatasetSettings().build(); updateExplanationDatasetOperationSettings = @@ -851,6 +947,11 @@ public static class Builder extends StubSettings.Builder listModelVersionsSettings; + private final PagedCallSettings.Builder< + ListModelVersionCheckpointsRequest, + ListModelVersionCheckpointsResponse, + ListModelVersionCheckpointsPagedResponse> + listModelVersionCheckpointsSettings; private final UnaryCallSettings.Builder updateModelSettings; private final UnaryCallSettings.Builder updateExplanationDatasetSettings; @@ -939,6 +1040,8 @@ protected Builder(ClientContext clientContext) { getModelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listModelsSettings = PagedCallSettings.newBuilder(LIST_MODELS_PAGE_STR_FACT); listModelVersionsSettings = PagedCallSettings.newBuilder(LIST_MODEL_VERSIONS_PAGE_STR_FACT); + listModelVersionCheckpointsSettings = + PagedCallSettings.newBuilder(LIST_MODEL_VERSION_CHECKPOINTS_PAGE_STR_FACT); updateModelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateExplanationDatasetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateExplanationDatasetOperationSettings = OperationCallSettings.newBuilder(); @@ -972,6 +1075,7 @@ protected Builder(ClientContext clientContext) { getModelSettings, listModelsSettings, listModelVersionsSettings, + listModelVersionCheckpointsSettings, updateModelSettings, updateExplanationDatasetSettings, deleteModelSettings, @@ -1002,6 +1106,8 @@ protected Builder(ModelServiceStubSettings settings) { getModelSettings = settings.getModelSettings.toBuilder(); listModelsSettings = settings.listModelsSettings.toBuilder(); listModelVersionsSettings = settings.listModelVersionsSettings.toBuilder(); + listModelVersionCheckpointsSettings = + settings.listModelVersionCheckpointsSettings.toBuilder(); updateModelSettings = settings.updateModelSettings.toBuilder(); updateExplanationDatasetSettings = settings.updateExplanationDatasetSettings.toBuilder(); updateExplanationDatasetOperationSettings = @@ -1037,6 +1143,7 @@ protected Builder(ModelServiceStubSettings settings) { getModelSettings, listModelsSettings, listModelVersionsSettings, + listModelVersionCheckpointsSettings, updateModelSettings, updateExplanationDatasetSettings, deleteModelSettings, @@ -1091,6 +1198,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .listModelVersionCheckpointsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .updateModelSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -1379,6 +1491,15 @@ public UnaryCallSettings.Builder getModelSettings() { return listModelVersionsSettings; } + /** Returns the builder for the settings used for calls to listModelVersionCheckpoints. */ + public PagedCallSettings.Builder< + ListModelVersionCheckpointsRequest, + ListModelVersionCheckpointsResponse, + ListModelVersionCheckpointsPagedResponse> + listModelVersionCheckpointsSettings() { + return listModelVersionCheckpointsSettings; + } + /** Returns the builder for the settings used for calls to updateModel. */ public UnaryCallSettings.Builder updateModelSettings() { return updateModelSettings; diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ReasoningEngineExecutionServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ReasoningEngineExecutionServiceStub.java new file mode 100644 index 000000000000..6447b9885e19 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ReasoningEngineExecutionServiceStub.java @@ -0,0 +1,87 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.stub; + +import static com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceClient.ListLocationsPagedResponse; + +import com.google.api.HttpBody; +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.v1.QueryReasoningEngineRequest; +import com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse; +import com.google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest; +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 ReasoningEngineExecutionService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class ReasoningEngineExecutionServiceStub implements BackgroundResource { + + public UnaryCallable + queryReasoningEngineCallable() { + throw new UnsupportedOperationException("Not implemented: queryReasoningEngineCallable()"); + } + + public ServerStreamingCallable + streamQueryReasoningEngineCallable() { + throw new UnsupportedOperationException( + "Not implemented: streamQueryReasoningEngineCallable()"); + } + + 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/ReasoningEngineExecutionServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ReasoningEngineExecutionServiceStubSettings.java new file mode 100644 index 000000000000..49eeeb68fd89 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ReasoningEngineExecutionServiceStubSettings.java @@ -0,0 +1,515 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.stub; + +import static com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceClient.ListLocationsPagedResponse; + +import com.google.api.HttpBody; +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.ServerStreamingCallSettings; +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.QueryReasoningEngineRequest; +import com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse; +import com.google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest; +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 ReasoningEngineExecutionServiceStub}. + * + *

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 queryReasoningEngine: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ReasoningEngineExecutionServiceStubSettings.Builder
+ *     reasoningEngineExecutionServiceSettingsBuilder =
+ *         ReasoningEngineExecutionServiceStubSettings.newBuilder();
+ * reasoningEngineExecutionServiceSettingsBuilder
+ *     .queryReasoningEngineSettings()
+ *     .setRetrySettings(
+ *         reasoningEngineExecutionServiceSettingsBuilder
+ *             .queryReasoningEngineSettings()
+ *             .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());
+ * ReasoningEngineExecutionServiceStubSettings reasoningEngineExecutionServiceSettings =
+ *     reasoningEngineExecutionServiceSettingsBuilder.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 ReasoningEngineExecutionServiceStubSettings + 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 + queryReasoningEngineSettings; + private final ServerStreamingCallSettings + streamQueryReasoningEngineSettings; + 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 queryReasoningEngine. */ + public UnaryCallSettings + queryReasoningEngineSettings() { + 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() { + 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 ReasoningEngineExecutionServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcReasoningEngineExecutionServiceStub.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(ReasoningEngineExecutionServiceStubSettings.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 ReasoningEngineExecutionServiceStubSettings(Builder settingsBuilder) + throws IOException { + super(settingsBuilder); + + queryReasoningEngineSettings = settingsBuilder.queryReasoningEngineSettings().build(); + streamQueryReasoningEngineSettings = + settingsBuilder.streamQueryReasoningEngineSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); + } + + /** Builder for ReasoningEngineExecutionServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder< + QueryReasoningEngineRequest, QueryReasoningEngineResponse> + queryReasoningEngineSettings; + private final ServerStreamingCallSettings.Builder + streamQueryReasoningEngineSettings; + 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); + + queryReasoningEngineSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + streamQueryReasoningEngineSettings = ServerStreamingCallSettings.newBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + queryReasoningEngineSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + initDefaults(this); + } + + 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(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + queryReasoningEngineSettings, + 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 + .queryReasoningEngineSettings() + .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")) + .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 queryReasoningEngine. */ + public UnaryCallSettings.Builder + queryReasoningEngineSettings() { + 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> + 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 ReasoningEngineExecutionServiceStubSettings build() throws IOException { + return new ReasoningEngineExecutionServiceStubSettings(this); + } + } +} diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ReasoningEngineServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ReasoningEngineServiceStub.java new file mode 100644 index 000000000000..641a4f14dc02 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ReasoningEngineServiceStub.java @@ -0,0 +1,136 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.stub; + +import static com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient.ListReasoningEnginesPagedResponse; + +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.CreateReasoningEngineOperationMetadata; +import com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest; +import com.google.cloud.aiplatform.v1.DeleteOperationMetadata; +import com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest; +import com.google.cloud.aiplatform.v1.GetReasoningEngineRequest; +import com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest; +import com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse; +import com.google.cloud.aiplatform.v1.ReasoningEngine; +import com.google.cloud.aiplatform.v1.UpdateReasoningEngineOperationMetadata; +import com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest; +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 ReasoningEngineService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class ReasoningEngineServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + } + + public OperationCallable< + CreateReasoningEngineRequest, ReasoningEngine, CreateReasoningEngineOperationMetadata> + createReasoningEngineOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createReasoningEngineOperationCallable()"); + } + + public UnaryCallable createReasoningEngineCallable() { + throw new UnsupportedOperationException("Not implemented: createReasoningEngineCallable()"); + } + + public UnaryCallable getReasoningEngineCallable() { + throw new UnsupportedOperationException("Not implemented: getReasoningEngineCallable()"); + } + + public UnaryCallable + listReasoningEnginesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listReasoningEnginesPagedCallable()"); + } + + public UnaryCallable + listReasoningEnginesCallable() { + throw new UnsupportedOperationException("Not implemented: listReasoningEnginesCallable()"); + } + + public OperationCallable< + UpdateReasoningEngineRequest, ReasoningEngine, UpdateReasoningEngineOperationMetadata> + updateReasoningEngineOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateReasoningEngineOperationCallable()"); + } + + public UnaryCallable updateReasoningEngineCallable() { + throw new UnsupportedOperationException("Not implemented: updateReasoningEngineCallable()"); + } + + public OperationCallable + deleteReasoningEngineOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteReasoningEngineOperationCallable()"); + } + + public UnaryCallable deleteReasoningEngineCallable() { + throw new UnsupportedOperationException("Not implemented: deleteReasoningEngineCallable()"); + } + + 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/ReasoningEngineServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ReasoningEngineServiceStubSettings.java new file mode 100644 index 000000000000..9a587ce36398 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ReasoningEngineServiceStubSettings.java @@ -0,0 +1,852 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.stub; + +import static com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient.ListReasoningEnginesPagedResponse; + +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.CreateReasoningEngineOperationMetadata; +import com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest; +import com.google.cloud.aiplatform.v1.DeleteOperationMetadata; +import com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest; +import com.google.cloud.aiplatform.v1.GetReasoningEngineRequest; +import com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest; +import com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse; +import com.google.cloud.aiplatform.v1.ReasoningEngine; +import com.google.cloud.aiplatform.v1.UpdateReasoningEngineOperationMetadata; +import com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest; +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 ReasoningEngineServiceStub}. + * + *

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 getReasoningEngine: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ReasoningEngineServiceStubSettings.Builder reasoningEngineServiceSettingsBuilder =
+ *     ReasoningEngineServiceStubSettings.newBuilder();
+ * reasoningEngineServiceSettingsBuilder
+ *     .getReasoningEngineSettings()
+ *     .setRetrySettings(
+ *         reasoningEngineServiceSettingsBuilder
+ *             .getReasoningEngineSettings()
+ *             .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());
+ * ReasoningEngineServiceStubSettings reasoningEngineServiceSettings =
+ *     reasoningEngineServiceSettingsBuilder.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 createReasoningEngine: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ReasoningEngineServiceStubSettings.Builder reasoningEngineServiceSettingsBuilder =
+ *     ReasoningEngineServiceStubSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * reasoningEngineServiceSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class ReasoningEngineServiceStubSettings + 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 + createReasoningEngineSettings; + private final OperationCallSettings< + CreateReasoningEngineRequest, ReasoningEngine, CreateReasoningEngineOperationMetadata> + createReasoningEngineOperationSettings; + private final UnaryCallSettings + getReasoningEngineSettings; + private final PagedCallSettings< + ListReasoningEnginesRequest, + ListReasoningEnginesResponse, + ListReasoningEnginesPagedResponse> + listReasoningEnginesSettings; + private final UnaryCallSettings + updateReasoningEngineSettings; + private final OperationCallSettings< + UpdateReasoningEngineRequest, ReasoningEngine, UpdateReasoningEngineOperationMetadata> + updateReasoningEngineOperationSettings; + private final UnaryCallSettings + deleteReasoningEngineSettings; + private final OperationCallSettings + deleteReasoningEngineOperationSettings; + 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< + ListReasoningEnginesRequest, ListReasoningEnginesResponse, ReasoningEngine> + LIST_REASONING_ENGINES_PAGE_STR_DESC = + new PagedListDescriptor< + ListReasoningEnginesRequest, ListReasoningEnginesResponse, ReasoningEngine>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListReasoningEnginesRequest injectToken( + ListReasoningEnginesRequest payload, String token) { + return ListReasoningEnginesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListReasoningEnginesRequest injectPageSize( + ListReasoningEnginesRequest payload, int pageSize) { + return ListReasoningEnginesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListReasoningEnginesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListReasoningEnginesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListReasoningEnginesResponse payload) { + return payload.getReasoningEnginesList(); + } + }; + + 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< + ListReasoningEnginesRequest, + ListReasoningEnginesResponse, + ListReasoningEnginesPagedResponse> + LIST_REASONING_ENGINES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListReasoningEnginesRequest, + ListReasoningEnginesResponse, + ListReasoningEnginesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListReasoningEnginesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListReasoningEnginesRequest, ListReasoningEnginesResponse, ReasoningEngine> + pageContext = + PageContext.create( + callable, LIST_REASONING_ENGINES_PAGE_STR_DESC, request, context); + return ListReasoningEnginesPagedResponse.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 createReasoningEngine. */ + public UnaryCallSettings + createReasoningEngineSettings() { + return createReasoningEngineSettings; + } + + /** Returns the object with the settings used for calls to createReasoningEngine. */ + public OperationCallSettings< + CreateReasoningEngineRequest, ReasoningEngine, CreateReasoningEngineOperationMetadata> + createReasoningEngineOperationSettings() { + return createReasoningEngineOperationSettings; + } + + /** Returns the object with the settings used for calls to getReasoningEngine. */ + public UnaryCallSettings + getReasoningEngineSettings() { + return getReasoningEngineSettings; + } + + /** Returns the object with the settings used for calls to listReasoningEngines. */ + public PagedCallSettings< + ListReasoningEnginesRequest, + ListReasoningEnginesResponse, + ListReasoningEnginesPagedResponse> + listReasoningEnginesSettings() { + return listReasoningEnginesSettings; + } + + /** Returns the object with the settings used for calls to updateReasoningEngine. */ + public UnaryCallSettings + updateReasoningEngineSettings() { + return updateReasoningEngineSettings; + } + + /** Returns the object with the settings used for calls to updateReasoningEngine. */ + public OperationCallSettings< + UpdateReasoningEngineRequest, ReasoningEngine, UpdateReasoningEngineOperationMetadata> + updateReasoningEngineOperationSettings() { + return updateReasoningEngineOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteReasoningEngine. */ + public UnaryCallSettings + deleteReasoningEngineSettings() { + return deleteReasoningEngineSettings; + } + + /** Returns the object with the settings used for calls to deleteReasoningEngine. */ + public OperationCallSettings + deleteReasoningEngineOperationSettings() { + return deleteReasoningEngineOperationSettings; + } + + /** 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 ReasoningEngineServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcReasoningEngineServiceStub.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(ReasoningEngineServiceStubSettings.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 ReasoningEngineServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createReasoningEngineSettings = settingsBuilder.createReasoningEngineSettings().build(); + createReasoningEngineOperationSettings = + settingsBuilder.createReasoningEngineOperationSettings().build(); + getReasoningEngineSettings = settingsBuilder.getReasoningEngineSettings().build(); + listReasoningEnginesSettings = settingsBuilder.listReasoningEnginesSettings().build(); + updateReasoningEngineSettings = settingsBuilder.updateReasoningEngineSettings().build(); + updateReasoningEngineOperationSettings = + settingsBuilder.updateReasoningEngineOperationSettings().build(); + deleteReasoningEngineSettings = settingsBuilder.deleteReasoningEngineSettings().build(); + deleteReasoningEngineOperationSettings = + settingsBuilder.deleteReasoningEngineOperationSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); + } + + /** Builder for ReasoningEngineServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + createReasoningEngineSettings; + private final OperationCallSettings.Builder< + CreateReasoningEngineRequest, ReasoningEngine, CreateReasoningEngineOperationMetadata> + createReasoningEngineOperationSettings; + private final UnaryCallSettings.Builder + getReasoningEngineSettings; + private final PagedCallSettings.Builder< + ListReasoningEnginesRequest, + ListReasoningEnginesResponse, + ListReasoningEnginesPagedResponse> + listReasoningEnginesSettings; + private final UnaryCallSettings.Builder + updateReasoningEngineSettings; + private final OperationCallSettings.Builder< + UpdateReasoningEngineRequest, ReasoningEngine, UpdateReasoningEngineOperationMetadata> + updateReasoningEngineOperationSettings; + private final UnaryCallSettings.Builder + deleteReasoningEngineSettings; + private final OperationCallSettings.Builder< + DeleteReasoningEngineRequest, Empty, DeleteOperationMetadata> + deleteReasoningEngineOperationSettings; + 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); + + createReasoningEngineSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createReasoningEngineOperationSettings = OperationCallSettings.newBuilder(); + getReasoningEngineSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listReasoningEnginesSettings = + PagedCallSettings.newBuilder(LIST_REASONING_ENGINES_PAGE_STR_FACT); + updateReasoningEngineSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateReasoningEngineOperationSettings = OperationCallSettings.newBuilder(); + deleteReasoningEngineSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteReasoningEngineOperationSettings = 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( + createReasoningEngineSettings, + getReasoningEngineSettings, + listReasoningEnginesSettings, + updateReasoningEngineSettings, + deleteReasoningEngineSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + initDefaults(this); + } + + protected Builder(ReasoningEngineServiceStubSettings settings) { + super(settings); + + createReasoningEngineSettings = settings.createReasoningEngineSettings.toBuilder(); + createReasoningEngineOperationSettings = + settings.createReasoningEngineOperationSettings.toBuilder(); + getReasoningEngineSettings = settings.getReasoningEngineSettings.toBuilder(); + listReasoningEnginesSettings = settings.listReasoningEnginesSettings.toBuilder(); + updateReasoningEngineSettings = settings.updateReasoningEngineSettings.toBuilder(); + updateReasoningEngineOperationSettings = + settings.updateReasoningEngineOperationSettings.toBuilder(); + deleteReasoningEngineSettings = settings.deleteReasoningEngineSettings.toBuilder(); + deleteReasoningEngineOperationSettings = + settings.deleteReasoningEngineOperationSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createReasoningEngineSettings, + getReasoningEngineSettings, + listReasoningEnginesSettings, + updateReasoningEngineSettings, + deleteReasoningEngineSettings, + 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 + .createReasoningEngineSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getReasoningEngineSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listReasoningEnginesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateReasoningEngineSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteReasoningEngineSettings() + .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 + .createReasoningEngineOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(ReasoningEngine.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + CreateReasoningEngineOperationMetadata.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 + .updateReasoningEngineOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(ReasoningEngine.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + UpdateReasoningEngineOperationMetadata.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 + .deleteReasoningEngineOperationSettings() + .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 createReasoningEngine. */ + public UnaryCallSettings.Builder + createReasoningEngineSettings() { + return createReasoningEngineSettings; + } + + /** Returns the builder for the settings used for calls to createReasoningEngine. */ + public OperationCallSettings.Builder< + CreateReasoningEngineRequest, ReasoningEngine, CreateReasoningEngineOperationMetadata> + createReasoningEngineOperationSettings() { + return createReasoningEngineOperationSettings; + } + + /** Returns the builder for the settings used for calls to getReasoningEngine. */ + public UnaryCallSettings.Builder + getReasoningEngineSettings() { + return getReasoningEngineSettings; + } + + /** Returns the builder for the settings used for calls to listReasoningEngines. */ + public PagedCallSettings.Builder< + ListReasoningEnginesRequest, + ListReasoningEnginesResponse, + ListReasoningEnginesPagedResponse> + listReasoningEnginesSettings() { + return listReasoningEnginesSettings; + } + + /** Returns the builder for the settings used for calls to updateReasoningEngine. */ + public UnaryCallSettings.Builder + updateReasoningEngineSettings() { + return updateReasoningEngineSettings; + } + + /** Returns the builder for the settings used for calls to updateReasoningEngine. */ + public OperationCallSettings.Builder< + UpdateReasoningEngineRequest, ReasoningEngine, UpdateReasoningEngineOperationMetadata> + updateReasoningEngineOperationSettings() { + return updateReasoningEngineOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteReasoningEngine. */ + public UnaryCallSettings.Builder + deleteReasoningEngineSettings() { + return deleteReasoningEngineSettings; + } + + /** Returns the builder for the settings used for calls to deleteReasoningEngine. */ + public OperationCallSettings.Builder< + DeleteReasoningEngineRequest, Empty, DeleteOperationMetadata> + deleteReasoningEngineOperationSettings() { + return deleteReasoningEngineOperationSettings; + } + + /** 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 ReasoningEngineServiceStubSettings build() throws IOException { + return new ReasoningEngineServiceStubSettings(this); + } + } +} diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceClient.java index 9abd6ce80e4b..9142a4c524c6 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceClient.java @@ -59,6 +59,7 @@ * EvaluateInstancesRequest request = * EvaluateInstancesRequest.newBuilder() * .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setAutoraterConfig(AutoraterConfig.newBuilder().build()) * .build(); * EvaluateInstancesResponse response = evaluationServiceClient.evaluateInstances(request); * } @@ -272,6 +273,7 @@ public EvaluationServiceStub getStub() { * EvaluateInstancesRequest request = * EvaluateInstancesRequest.newBuilder() * .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setAutoraterConfig(AutoraterConfig.newBuilder().build()) * .build(); * EvaluateInstancesResponse response = evaluationServiceClient.evaluateInstances(request); * } @@ -300,6 +302,7 @@ public final EvaluateInstancesResponse evaluateInstances(EvaluateInstancesReques * EvaluateInstancesRequest request = * EvaluateInstancesRequest.newBuilder() * .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setAutoraterConfig(AutoraterConfig.newBuilder().build()) * .build(); * ApiFuture future = * evaluationServiceClient.evaluateInstancesCallable().futureCall(request); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureRegistryServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureRegistryServiceClient.java index 6123ee704d6d..7c313af91354 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureRegistryServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureRegistryServiceClient.java @@ -355,6 +355,25 @@ * * * + *

UpdateFeatureMonitor + *

Updates the parameters of a single FeatureMonitor. + * + *

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

+ *
    + *
  • updateFeatureMonitorAsync(UpdateFeatureMonitorRequest request) + *

+ *

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

+ *
    + *
  • updateFeatureMonitorAsync(FeatureMonitor featureMonitor, 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.

+ *
    + *
  • updateFeatureMonitorOperationCallable() + *

  • updateFeatureMonitorCallable() + *

+ * + * + * *

DeleteFeatureMonitor *

Deletes a single FeatureMonitor. * @@ -3020,6 +3039,144 @@ public final ListFeatureMonitorsPagedResponse listFeatureMonitors( return stub.listFeatureMonitorsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single FeatureMonitor. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+   *     FeatureRegistryServiceClient.create()) {
+   *   FeatureMonitor featureMonitor = FeatureMonitor.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   FeatureMonitor response =
+   *       featureRegistryServiceClient.updateFeatureMonitorAsync(featureMonitor, updateMask).get();
+   * }
+   * }
+ * + * @param featureMonitor Required. The FeatureMonitor's `name` field is used to identify the + * FeatureMonitor to be updated. Format: + * `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}` + * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the + * FeatureMonitor resource by the update. The fields specified in the update_mask are relative + * to the resource, not the full request. A field will be overwritten if it is in the mask. If + * the user does not provide a mask then only the non-empty fields present in the request will + * be overwritten. Set the update_mask to `*` to override all fields. + *

Updatable fields: + *

* `labels` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateFeatureMonitorAsync(FeatureMonitor featureMonitor, FieldMask updateMask) { + UpdateFeatureMonitorRequest request = + UpdateFeatureMonitorRequest.newBuilder() + .setFeatureMonitor(featureMonitor) + .setUpdateMask(updateMask) + .build(); + return updateFeatureMonitorAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single FeatureMonitor. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+   *     FeatureRegistryServiceClient.create()) {
+   *   UpdateFeatureMonitorRequest request =
+   *       UpdateFeatureMonitorRequest.newBuilder()
+   *           .setFeatureMonitor(FeatureMonitor.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   FeatureMonitor response =
+   *       featureRegistryServiceClient.updateFeatureMonitorAsync(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 + updateFeatureMonitorAsync(UpdateFeatureMonitorRequest request) { + return updateFeatureMonitorOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single FeatureMonitor. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+   *     FeatureRegistryServiceClient.create()) {
+   *   UpdateFeatureMonitorRequest request =
+   *       UpdateFeatureMonitorRequest.newBuilder()
+   *           .setFeatureMonitor(FeatureMonitor.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       featureRegistryServiceClient.updateFeatureMonitorOperationCallable().futureCall(request);
+   *   // Do something.
+   *   FeatureMonitor response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + UpdateFeatureMonitorRequest, FeatureMonitor, UpdateFeatureMonitorOperationMetadata> + updateFeatureMonitorOperationCallable() { + return stub.updateFeatureMonitorOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single FeatureMonitor. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (FeatureRegistryServiceClient featureRegistryServiceClient =
+   *     FeatureRegistryServiceClient.create()) {
+   *   UpdateFeatureMonitorRequest request =
+   *       UpdateFeatureMonitorRequest.newBuilder()
+   *           .setFeatureMonitor(FeatureMonitor.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       featureRegistryServiceClient.updateFeatureMonitorCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateFeatureMonitorCallable() { + return stub.updateFeatureMonitorCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a single FeatureMonitor. diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureRegistryServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureRegistryServiceSettings.java index 221ead2d5ac5..3737457c35f4 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureRegistryServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureRegistryServiceSettings.java @@ -268,6 +268,19 @@ public UnaryCallSettings getFeatureMon return ((FeatureRegistryServiceStubSettings) getStubSettings()).listFeatureMonitorsSettings(); } + /** Returns the object with the settings used for calls to updateFeatureMonitor. */ + public UnaryCallSettings updateFeatureMonitorSettings() { + return ((FeatureRegistryServiceStubSettings) getStubSettings()).updateFeatureMonitorSettings(); + } + + /** Returns the object with the settings used for calls to updateFeatureMonitor. */ + public OperationCallSettings< + UpdateFeatureMonitorRequest, FeatureMonitor, UpdateFeatureMonitorOperationMetadata> + updateFeatureMonitorOperationSettings() { + return ((FeatureRegistryServiceStubSettings) getStubSettings()) + .updateFeatureMonitorOperationSettings(); + } + /** Returns the object with the settings used for calls to deleteFeatureMonitor. */ public UnaryCallSettings deleteFeatureMonitorSettings() { return ((FeatureRegistryServiceStubSettings) getStubSettings()).deleteFeatureMonitorSettings(); @@ -568,6 +581,19 @@ public UnaryCallSettings.Builder deleteFeatureS return getStubSettingsBuilder().listFeatureMonitorsSettings(); } + /** Returns the builder for the settings used for calls to updateFeatureMonitor. */ + public UnaryCallSettings.Builder + updateFeatureMonitorSettings() { + return getStubSettingsBuilder().updateFeatureMonitorSettings(); + } + + /** Returns the builder for the settings used for calls to updateFeatureMonitor. */ + public OperationCallSettings.Builder< + UpdateFeatureMonitorRequest, FeatureMonitor, UpdateFeatureMonitorOperationMetadata> + updateFeatureMonitorOperationSettings() { + return getStubSettingsBuilder().updateFeatureMonitorOperationSettings(); + } + /** Returns the builder for the settings used for calls to deleteFeatureMonitor. */ public UnaryCallSettings.Builder deleteFeatureMonitorSettings() { diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceClient.java index dadafe381303..8ca5f1cbb26d 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceClient.java @@ -157,6 +157,26 @@ * * * + *

ListModelVersionCheckpoints + *

Lists checkpoints of the specified model version. + * + *

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

+ *
    + *
  • listModelVersionCheckpoints(ListModelVersionCheckpointsRequest request) + *

+ *

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

+ *
    + *
  • listModelVersionCheckpoints(ModelName name) + *

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

+ *
    + *
  • listModelVersionCheckpointsPagedCallable() + *

  • listModelVersionCheckpointsCallable() + *

+ * + * + * *

UpdateModel *

Updates a Model. * @@ -1233,6 +1253,186 @@ public final ListModelVersionsPagedResponse listModelVersions(ListModelVersionsR return stub.listModelVersionsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists checkpoints of the specified model version. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
+   *   for (ModelVersionCheckpoint element :
+   *       modelServiceClient.listModelVersionCheckpoints(name).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param name Required. The name of the model version to list checkpoints for. + * `projects/{project}/locations/{location}/models/{model}{@literal @}{version}` Example: + * `projects/{project}/locations/{location}/models/{model}{@literal @}2` or + * `projects/{project}/locations/{location}/models/{model}{@literal @}golden` If no version ID + * or alias is specified, the latest version will be used. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListModelVersionCheckpointsPagedResponse listModelVersionCheckpoints( + ModelName name) { + ListModelVersionCheckpointsRequest request = + ListModelVersionCheckpointsRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return listModelVersionCheckpoints(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists checkpoints of the specified model version. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   String name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString();
+   *   for (ModelVersionCheckpoint element :
+   *       modelServiceClient.listModelVersionCheckpoints(name).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param name Required. The name of the model version to list checkpoints for. + * `projects/{project}/locations/{location}/models/{model}{@literal @}{version}` Example: + * `projects/{project}/locations/{location}/models/{model}{@literal @}2` or + * `projects/{project}/locations/{location}/models/{model}{@literal @}golden` If no version ID + * or alias is specified, the latest version will be used. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListModelVersionCheckpointsPagedResponse listModelVersionCheckpoints(String name) { + ListModelVersionCheckpointsRequest request = + ListModelVersionCheckpointsRequest.newBuilder().setName(name).build(); + return listModelVersionCheckpoints(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists checkpoints of the specified model version. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   ListModelVersionCheckpointsRequest request =
+   *       ListModelVersionCheckpointsRequest.newBuilder()
+   *           .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (ModelVersionCheckpoint element :
+   *       modelServiceClient.listModelVersionCheckpoints(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 ListModelVersionCheckpointsPagedResponse listModelVersionCheckpoints( + ListModelVersionCheckpointsRequest request) { + return listModelVersionCheckpointsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists checkpoints of the specified model version. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   ListModelVersionCheckpointsRequest request =
+   *       ListModelVersionCheckpointsRequest.newBuilder()
+   *           .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       modelServiceClient.listModelVersionCheckpointsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (ModelVersionCheckpoint element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListModelVersionCheckpointsRequest, ListModelVersionCheckpointsPagedResponse> + listModelVersionCheckpointsPagedCallable() { + return stub.listModelVersionCheckpointsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists checkpoints of the specified model version. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
+   *   ListModelVersionCheckpointsRequest request =
+   *       ListModelVersionCheckpointsRequest.newBuilder()
+   *           .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListModelVersionCheckpointsResponse response =
+   *         modelServiceClient.listModelVersionCheckpointsCallable().call(request);
+   *     for (ModelVersionCheckpoint element : response.getCheckpointsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListModelVersionCheckpointsRequest, ListModelVersionCheckpointsResponse> + listModelVersionCheckpointsCallable() { + return stub.listModelVersionCheckpointsCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a Model. @@ -3950,6 +4150,103 @@ protected ListModelVersionsFixedSizeCollection createCollection( } } + public static class ListModelVersionCheckpointsPagedResponse + extends AbstractPagedListResponse< + ListModelVersionCheckpointsRequest, + ListModelVersionCheckpointsResponse, + ModelVersionCheckpoint, + ListModelVersionCheckpointsPage, + ListModelVersionCheckpointsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListModelVersionCheckpointsRequest, + ListModelVersionCheckpointsResponse, + ModelVersionCheckpoint> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListModelVersionCheckpointsPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListModelVersionCheckpointsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListModelVersionCheckpointsPagedResponse(ListModelVersionCheckpointsPage page) { + super(page, ListModelVersionCheckpointsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListModelVersionCheckpointsPage + extends AbstractPage< + ListModelVersionCheckpointsRequest, + ListModelVersionCheckpointsResponse, + ModelVersionCheckpoint, + ListModelVersionCheckpointsPage> { + + private ListModelVersionCheckpointsPage( + PageContext< + ListModelVersionCheckpointsRequest, + ListModelVersionCheckpointsResponse, + ModelVersionCheckpoint> + context, + ListModelVersionCheckpointsResponse response) { + super(context, response); + } + + private static ListModelVersionCheckpointsPage createEmptyPage() { + return new ListModelVersionCheckpointsPage(null, null); + } + + @Override + protected ListModelVersionCheckpointsPage createPage( + PageContext< + ListModelVersionCheckpointsRequest, + ListModelVersionCheckpointsResponse, + ModelVersionCheckpoint> + context, + ListModelVersionCheckpointsResponse response) { + return new ListModelVersionCheckpointsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListModelVersionCheckpointsRequest, + ListModelVersionCheckpointsResponse, + ModelVersionCheckpoint> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListModelVersionCheckpointsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListModelVersionCheckpointsRequest, + ListModelVersionCheckpointsResponse, + ModelVersionCheckpoint, + ListModelVersionCheckpointsPage, + ListModelVersionCheckpointsFixedSizeCollection> { + + private ListModelVersionCheckpointsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListModelVersionCheckpointsFixedSizeCollection createEmptyCollection() { + return new ListModelVersionCheckpointsFixedSizeCollection(null, 0); + } + + @Override + protected ListModelVersionCheckpointsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListModelVersionCheckpointsFixedSizeCollection(pages, collectionSize); + } + } + public static class ListModelEvaluationsPagedResponse extends AbstractPagedListResponse< ListModelEvaluationsRequest, diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceSettings.java index 2a0107e1a7c9..324e30c09b98 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceSettings.java @@ -19,6 +19,7 @@ import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelEvaluationSlicesPagedResponse; import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelEvaluationsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelVersionCheckpointsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelVersionsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelsPagedResponse; @@ -158,6 +159,15 @@ public UnaryCallSettings getModelSettings() { return ((ModelServiceStubSettings) getStubSettings()).listModelVersionsSettings(); } + /** Returns the object with the settings used for calls to listModelVersionCheckpoints. */ + public PagedCallSettings< + ListModelVersionCheckpointsRequest, + ListModelVersionCheckpointsResponse, + ListModelVersionCheckpointsPagedResponse> + listModelVersionCheckpointsSettings() { + return ((ModelServiceStubSettings) getStubSettings()).listModelVersionCheckpointsSettings(); + } + /** Returns the object with the settings used for calls to updateModel. */ public UnaryCallSettings updateModelSettings() { return ((ModelServiceStubSettings) getStubSettings()).updateModelSettings(); @@ -433,6 +443,15 @@ public UnaryCallSettings.Builder getModelSettings() { return getStubSettingsBuilder().listModelVersionsSettings(); } + /** Returns the builder for the settings used for calls to listModelVersionCheckpoints. */ + public PagedCallSettings.Builder< + ListModelVersionCheckpointsRequest, + ListModelVersionCheckpointsResponse, + ListModelVersionCheckpointsPagedResponse> + listModelVersionCheckpointsSettings() { + return getStubSettingsBuilder().listModelVersionCheckpointsSettings(); + } + /** Returns the builder for the settings used for calls to updateModel. */ public UnaryCallSettings.Builder updateModelSettings() { return getStubSettingsBuilder().updateModelSettings(); 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 5e4c14dc09b0..31e6ff45e383 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 @@ -444,6 +444,9 @@ }, "UpdateFeatureGroup": { "methods": ["updateFeatureGroupAsync", "updateFeatureGroupAsync", "updateFeatureGroupOperationCallable", "updateFeatureGroupCallable"] + }, + "UpdateFeatureMonitor": { + "methods": ["updateFeatureMonitorAsync", "updateFeatureMonitorAsync", "updateFeatureMonitorOperationCallable", "updateFeatureMonitorCallable"] } } } @@ -1216,6 +1219,9 @@ "ListModelEvaluations": { "methods": ["listModelEvaluations", "listModelEvaluations", "listModelEvaluations", "listModelEvaluationsPagedCallable", "listModelEvaluationsCallable"] }, + "ListModelVersionCheckpoints": { + "methods": ["listModelVersionCheckpoints", "listModelVersionCheckpoints", "listModelVersionCheckpoints", "listModelVersionCheckpointsPagedCallable", "listModelVersionCheckpointsCallable"] + }, "ListModelVersions": { "methods": ["listModelVersions", "listModelVersions", "listModelVersions", "listModelVersionsPagedCallable", "listModelVersionsCallable"] }, 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 e74345d4d63d..249f7f7264c6 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 @@ -93,6 +93,7 @@ * EvaluateInstancesRequest request = * EvaluateInstancesRequest.newBuilder() * .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setAutoraterConfig(AutoraterConfig.newBuilder().build()) * .build(); * EvaluateInstancesResponse response = evaluationServiceClient.evaluateInstances(request); * } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureRegistryServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureRegistryServiceStub.java index 92b29f9bb873..0e913815f440 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureRegistryServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureRegistryServiceStub.java @@ -58,6 +58,8 @@ import com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse; import com.google.cloud.aiplatform.v1beta1.UpdateFeatureGroupOperationMetadata; import com.google.cloud.aiplatform.v1beta1.UpdateFeatureGroupRequest; +import com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest; import com.google.cloud.aiplatform.v1beta1.UpdateFeatureOperationMetadata; import com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest; import com.google.cloud.location.GetLocationRequest; @@ -211,6 +213,17 @@ public UnaryCallable getFeatureMonitor throw new UnsupportedOperationException("Not implemented: listFeatureMonitorsCallable()"); } + public OperationCallable< + UpdateFeatureMonitorRequest, FeatureMonitor, UpdateFeatureMonitorOperationMetadata> + updateFeatureMonitorOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateFeatureMonitorOperationCallable()"); + } + + public UnaryCallable updateFeatureMonitorCallable() { + throw new UnsupportedOperationException("Not implemented: updateFeatureMonitorCallable()"); + } + public OperationCallable deleteFeatureMonitorOperationCallable() { throw new UnsupportedOperationException( diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureRegistryServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureRegistryServiceStubSettings.java index 16f10a6741e8..b2a023021b24 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureRegistryServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/FeatureRegistryServiceStubSettings.java @@ -81,6 +81,8 @@ import com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse; import com.google.cloud.aiplatform.v1beta1.UpdateFeatureGroupOperationMetadata; import com.google.cloud.aiplatform.v1beta1.UpdateFeatureGroupRequest; +import com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest; import com.google.cloud.aiplatform.v1beta1.UpdateFeatureOperationMetadata; import com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest; import com.google.cloud.location.GetLocationRequest; @@ -233,6 +235,11 @@ public class FeatureRegistryServiceStubSettings private final PagedCallSettings< ListFeatureMonitorsRequest, ListFeatureMonitorsResponse, ListFeatureMonitorsPagedResponse> listFeatureMonitorsSettings; + private final UnaryCallSettings + updateFeatureMonitorSettings; + private final OperationCallSettings< + UpdateFeatureMonitorRequest, FeatureMonitor, UpdateFeatureMonitorOperationMetadata> + updateFeatureMonitorOperationSettings; private final UnaryCallSettings deleteFeatureMonitorSettings; private final OperationCallSettings @@ -672,6 +679,18 @@ public UnaryCallSettings getFeatureMon return listFeatureMonitorsSettings; } + /** Returns the object with the settings used for calls to updateFeatureMonitor. */ + public UnaryCallSettings updateFeatureMonitorSettings() { + return updateFeatureMonitorSettings; + } + + /** Returns the object with the settings used for calls to updateFeatureMonitor. */ + public OperationCallSettings< + UpdateFeatureMonitorRequest, FeatureMonitor, UpdateFeatureMonitorOperationMetadata> + updateFeatureMonitorOperationSettings() { + return updateFeatureMonitorOperationSettings; + } + /** Returns the object with the settings used for calls to deleteFeatureMonitor. */ public UnaryCallSettings deleteFeatureMonitorSettings() { return deleteFeatureMonitorSettings; @@ -839,6 +858,9 @@ protected FeatureRegistryServiceStubSettings(Builder settingsBuilder) throws IOE settingsBuilder.createFeatureMonitorOperationSettings().build(); getFeatureMonitorSettings = settingsBuilder.getFeatureMonitorSettings().build(); listFeatureMonitorsSettings = settingsBuilder.listFeatureMonitorsSettings().build(); + updateFeatureMonitorSettings = settingsBuilder.updateFeatureMonitorSettings().build(); + updateFeatureMonitorOperationSettings = + settingsBuilder.updateFeatureMonitorOperationSettings().build(); deleteFeatureMonitorSettings = settingsBuilder.deleteFeatureMonitorSettings().build(); deleteFeatureMonitorOperationSettings = settingsBuilder.deleteFeatureMonitorOperationSettings().build(); @@ -911,6 +933,11 @@ public static class Builder ListFeatureMonitorsResponse, ListFeatureMonitorsPagedResponse> listFeatureMonitorsSettings; + private final UnaryCallSettings.Builder + updateFeatureMonitorSettings; + private final OperationCallSettings.Builder< + UpdateFeatureMonitorRequest, FeatureMonitor, UpdateFeatureMonitorOperationMetadata> + updateFeatureMonitorOperationSettings; private final UnaryCallSettings.Builder deleteFeatureMonitorSettings; private final OperationCallSettings.Builder< @@ -983,6 +1010,8 @@ protected Builder(ClientContext clientContext) { getFeatureMonitorSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listFeatureMonitorsSettings = PagedCallSettings.newBuilder(LIST_FEATURE_MONITORS_PAGE_STR_FACT); + updateFeatureMonitorSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateFeatureMonitorOperationSettings = OperationCallSettings.newBuilder(); deleteFeatureMonitorSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteFeatureMonitorOperationSettings = OperationCallSettings.newBuilder(); createFeatureMonitorJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1011,6 +1040,7 @@ protected Builder(ClientContext clientContext) { createFeatureMonitorSettings, getFeatureMonitorSettings, listFeatureMonitorsSettings, + updateFeatureMonitorSettings, deleteFeatureMonitorSettings, createFeatureMonitorJobSettings, getFeatureMonitorJobSettings, @@ -1053,6 +1083,9 @@ protected Builder(FeatureRegistryServiceStubSettings settings) { settings.createFeatureMonitorOperationSettings.toBuilder(); getFeatureMonitorSettings = settings.getFeatureMonitorSettings.toBuilder(); listFeatureMonitorsSettings = settings.listFeatureMonitorsSettings.toBuilder(); + updateFeatureMonitorSettings = settings.updateFeatureMonitorSettings.toBuilder(); + updateFeatureMonitorOperationSettings = + settings.updateFeatureMonitorOperationSettings.toBuilder(); deleteFeatureMonitorSettings = settings.deleteFeatureMonitorSettings.toBuilder(); deleteFeatureMonitorOperationSettings = settings.deleteFeatureMonitorOperationSettings.toBuilder(); @@ -1081,6 +1114,7 @@ protected Builder(FeatureRegistryServiceStubSettings settings) { createFeatureMonitorSettings, getFeatureMonitorSettings, listFeatureMonitorsSettings, + updateFeatureMonitorSettings, deleteFeatureMonitorSettings, createFeatureMonitorJobSettings, getFeatureMonitorJobSettings, @@ -1175,6 +1209,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .updateFeatureMonitorSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .deleteFeatureMonitorSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -1419,6 +1458,31 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(300000L)) .build())); + builder + .updateFeatureMonitorOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(FeatureMonitor.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + UpdateFeatureMonitorOperationMetadata.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 .deleteFeatureMonitorOperationSettings() .setInitialCallSettings( @@ -1602,6 +1666,19 @@ public UnaryCallSettings.Builder deleteFeatureS return listFeatureMonitorsSettings; } + /** Returns the builder for the settings used for calls to updateFeatureMonitor. */ + public UnaryCallSettings.Builder + updateFeatureMonitorSettings() { + return updateFeatureMonitorSettings; + } + + /** Returns the builder for the settings used for calls to updateFeatureMonitor. */ + public OperationCallSettings.Builder< + UpdateFeatureMonitorRequest, FeatureMonitor, UpdateFeatureMonitorOperationMetadata> + updateFeatureMonitorOperationSettings() { + return updateFeatureMonitorOperationSettings; + } + /** Returns the builder for the settings used for calls to deleteFeatureMonitor. */ public UnaryCallSettings.Builder deleteFeatureMonitorSettings() { diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeatureRegistryServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeatureRegistryServiceStub.java index dfc61bcde26a..9d536fa9679d 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeatureRegistryServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcFeatureRegistryServiceStub.java @@ -63,6 +63,8 @@ import com.google.cloud.aiplatform.v1beta1.ListFeaturesResponse; import com.google.cloud.aiplatform.v1beta1.UpdateFeatureGroupOperationMetadata; import com.google.cloud.aiplatform.v1beta1.UpdateFeatureGroupRequest; +import com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest; import com.google.cloud.aiplatform.v1beta1.UpdateFeatureOperationMetadata; import com.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest; import com.google.cloud.location.GetLocationRequest; @@ -245,6 +247,17 @@ public class GrpcFeatureRegistryServiceStub extends FeatureRegistryServiceStub { ProtoUtils.marshaller(ListFeatureMonitorsResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor + updateFeatureMonitorMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.FeatureRegistryService/UpdateFeatureMonitor") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateFeatureMonitorRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor deleteFeatureMonitorMethodDescriptor = MethodDescriptor.newBuilder() @@ -382,6 +395,10 @@ public class GrpcFeatureRegistryServiceStub extends FeatureRegistryServiceStub { listFeatureMonitorsCallable; private final UnaryCallable listFeatureMonitorsPagedCallable; + private final UnaryCallable updateFeatureMonitorCallable; + private final OperationCallable< + UpdateFeatureMonitorRequest, FeatureMonitor, UpdateFeatureMonitorOperationMetadata> + updateFeatureMonitorOperationCallable; private final UnaryCallable deleteFeatureMonitorCallable; private final OperationCallable deleteFeatureMonitorOperationCallable; @@ -589,6 +606,18 @@ protected GrpcFeatureRegistryServiceStub( return builder.build(); }) .build(); + GrpcCallSettings updateFeatureMonitorTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateFeatureMonitorMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "feature_monitor.name", + String.valueOf(request.getFeatureMonitor().getName())); + return builder.build(); + }) + .build(); GrpcCallSettings deleteFeatureMonitorTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteFeatureMonitorMethodDescriptor) @@ -804,6 +833,17 @@ protected GrpcFeatureRegistryServiceStub( listFeatureMonitorsTransportSettings, settings.listFeatureMonitorsSettings(), clientContext); + this.updateFeatureMonitorCallable = + callableFactory.createUnaryCallable( + updateFeatureMonitorTransportSettings, + settings.updateFeatureMonitorSettings(), + clientContext); + this.updateFeatureMonitorOperationCallable = + callableFactory.createOperationCallable( + updateFeatureMonitorTransportSettings, + settings.updateFeatureMonitorOperationSettings(), + clientContext, + operationsStub); this.deleteFeatureMonitorCallable = callableFactory.createUnaryCallable( deleteFeatureMonitorTransportSettings, @@ -1007,6 +1047,18 @@ public UnaryCallable getFeatureMonitor return listFeatureMonitorsPagedCallable; } + @Override + public UnaryCallable updateFeatureMonitorCallable() { + return updateFeatureMonitorCallable; + } + + @Override + public OperationCallable< + UpdateFeatureMonitorRequest, FeatureMonitor, UpdateFeatureMonitorOperationMetadata> + updateFeatureMonitorOperationCallable() { + return updateFeatureMonitorOperationCallable; + } + @Override public UnaryCallable deleteFeatureMonitorCallable() { return deleteFeatureMonitorCallable; diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcModelServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcModelServiceStub.java index 140eebd1d900..527af33e2c95 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcModelServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcModelServiceStub.java @@ -19,6 +19,7 @@ import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelEvaluationSlicesPagedResponse; import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelEvaluationsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelVersionCheckpointsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelVersionsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelsPagedResponse; @@ -52,6 +53,8 @@ import com.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse; import com.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest; import com.google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse; +import com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest; +import com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse; import com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest; import com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse; import com.google.cloud.aiplatform.v1beta1.ListModelsRequest; @@ -130,6 +133,20 @@ public class GrpcModelServiceStub extends ModelServiceStub { ProtoUtils.marshaller(ListModelVersionsResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor< + ListModelVersionCheckpointsRequest, ListModelVersionCheckpointsResponse> + listModelVersionCheckpointsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.ModelService/ListModelVersionCheckpoints") + .setRequestMarshaller( + ProtoUtils.marshaller(ListModelVersionCheckpointsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListModelVersionCheckpointsResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor updateModelMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -343,6 +360,12 @@ public class GrpcModelServiceStub extends ModelServiceStub { listModelVersionsCallable; private final UnaryCallable listModelVersionsPagedCallable; + private final UnaryCallable< + ListModelVersionCheckpointsRequest, ListModelVersionCheckpointsResponse> + listModelVersionCheckpointsCallable; + private final UnaryCallable< + ListModelVersionCheckpointsRequest, ListModelVersionCheckpointsPagedResponse> + listModelVersionCheckpointsPagedCallable; private final UnaryCallable updateModelCallable; private final UnaryCallable updateExplanationDatasetCallable; @@ -478,6 +501,19 @@ protected GrpcModelServiceStub( return builder.build(); }) .build(); + GrpcCallSettings + listModelVersionCheckpointsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listModelVersionCheckpointsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings updateModelTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateModelMethodDescriptor) @@ -713,6 +749,16 @@ protected GrpcModelServiceStub( listModelVersionsTransportSettings, settings.listModelVersionsSettings(), clientContext); + this.listModelVersionCheckpointsCallable = + callableFactory.createUnaryCallable( + listModelVersionCheckpointsTransportSettings, + settings.listModelVersionCheckpointsSettings(), + clientContext); + this.listModelVersionCheckpointsPagedCallable = + callableFactory.createPagedCallable( + listModelVersionCheckpointsTransportSettings, + settings.listModelVersionCheckpointsSettings(), + clientContext); this.updateModelCallable = callableFactory.createUnaryCallable( updateModelTransportSettings, settings.updateModelSettings(), clientContext); @@ -882,6 +928,18 @@ public UnaryCallable listModelsPaged return listModelVersionsPagedCallable; } + @Override + public UnaryCallable + listModelVersionCheckpointsCallable() { + return listModelVersionCheckpointsCallable; + } + + @Override + public UnaryCallable + listModelVersionCheckpointsPagedCallable() { + return listModelVersionCheckpointsPagedCallable; + } + @Override public UnaryCallable updateModelCallable() { return updateModelCallable; diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelServiceStub.java index 72f502f46a49..417e26bafa13 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelServiceStub.java @@ -19,6 +19,7 @@ import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelEvaluationSlicesPagedResponse; import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelEvaluationsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelVersionCheckpointsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelVersionsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelsPagedResponse; @@ -47,6 +48,8 @@ import com.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse; import com.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest; import com.google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse; +import com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest; +import com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse; import com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest; import com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse; import com.google.cloud.aiplatform.v1beta1.ListModelsRequest; @@ -121,6 +124,18 @@ public UnaryCallable listModelsCallable() throw new UnsupportedOperationException("Not implemented: listModelVersionsCallable()"); } + public UnaryCallable + listModelVersionCheckpointsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listModelVersionCheckpointsPagedCallable()"); + } + + public UnaryCallable + listModelVersionCheckpointsCallable() { + throw new UnsupportedOperationException( + "Not implemented: listModelVersionCheckpointsCallable()"); + } + public UnaryCallable updateModelCallable() { throw new UnsupportedOperationException("Not implemented: updateModelCallable()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelServiceStubSettings.java index a5897b1a6d24..19d13917c3f8 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelServiceStubSettings.java @@ -19,6 +19,7 @@ import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelEvaluationSlicesPagedResponse; import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelEvaluationsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelVersionCheckpointsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelVersionsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelsPagedResponse; @@ -70,6 +71,8 @@ import com.google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse; import com.google.cloud.aiplatform.v1beta1.ListModelEvaluationsRequest; import com.google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse; +import com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest; +import com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse; import com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest; import com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse; import com.google.cloud.aiplatform.v1beta1.ListModelsRequest; @@ -78,6 +81,7 @@ import com.google.cloud.aiplatform.v1beta1.Model; import com.google.cloud.aiplatform.v1beta1.ModelEvaluation; import com.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice; +import com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint; import com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetOperationMetadata; import com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetRequest; import com.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse; @@ -198,6 +202,11 @@ public class ModelServiceStubSettings extends StubSettings listModelVersionsSettings; + private final PagedCallSettings< + ListModelVersionCheckpointsRequest, + ListModelVersionCheckpointsResponse, + ListModelVersionCheckpointsPagedResponse> + listModelVersionCheckpointsSettings; private final UnaryCallSettings updateModelSettings; private final UnaryCallSettings updateExplanationDatasetSettings; @@ -323,6 +332,53 @@ public Iterable extractResources(ListModelVersionsResponse payload) { } }; + private static final PagedListDescriptor< + ListModelVersionCheckpointsRequest, + ListModelVersionCheckpointsResponse, + ModelVersionCheckpoint> + LIST_MODEL_VERSION_CHECKPOINTS_PAGE_STR_DESC = + new PagedListDescriptor< + ListModelVersionCheckpointsRequest, + ListModelVersionCheckpointsResponse, + ModelVersionCheckpoint>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListModelVersionCheckpointsRequest injectToken( + ListModelVersionCheckpointsRequest payload, String token) { + return ListModelVersionCheckpointsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListModelVersionCheckpointsRequest injectPageSize( + ListModelVersionCheckpointsRequest payload, int pageSize) { + return ListModelVersionCheckpointsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListModelVersionCheckpointsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListModelVersionCheckpointsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListModelVersionCheckpointsResponse payload) { + return payload.getCheckpointsList(); + } + }; + private static final PagedListDescriptor< ListModelEvaluationsRequest, ListModelEvaluationsResponse, ModelEvaluation> LIST_MODEL_EVALUATIONS_PAGE_STR_DESC = @@ -477,6 +533,35 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListModelVersionCheckpointsRequest, + ListModelVersionCheckpointsResponse, + ListModelVersionCheckpointsPagedResponse> + LIST_MODEL_VERSION_CHECKPOINTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListModelVersionCheckpointsRequest, + ListModelVersionCheckpointsResponse, + ListModelVersionCheckpointsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ListModelVersionCheckpointsRequest, ListModelVersionCheckpointsResponse> + callable, + ListModelVersionCheckpointsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListModelVersionCheckpointsRequest, + ListModelVersionCheckpointsResponse, + ModelVersionCheckpoint> + pageContext = + PageContext.create( + callable, LIST_MODEL_VERSION_CHECKPOINTS_PAGE_STR_DESC, request, context); + return ListModelVersionCheckpointsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListModelEvaluationsRequest, ListModelEvaluationsResponse, @@ -576,6 +661,15 @@ public UnaryCallSettings getModelSettings() { return listModelVersionsSettings; } + /** Returns the object with the settings used for calls to listModelVersionCheckpoints. */ + public PagedCallSettings< + ListModelVersionCheckpointsRequest, + ListModelVersionCheckpointsResponse, + ListModelVersionCheckpointsPagedResponse> + listModelVersionCheckpointsSettings() { + return listModelVersionCheckpointsSettings; + } + /** Returns the object with the settings used for calls to updateModel. */ public UnaryCallSettings updateModelSettings() { return updateModelSettings; @@ -809,6 +903,8 @@ protected ModelServiceStubSettings(Builder settingsBuilder) throws IOException { getModelSettings = settingsBuilder.getModelSettings().build(); listModelsSettings = settingsBuilder.listModelsSettings().build(); listModelVersionsSettings = settingsBuilder.listModelVersionsSettings().build(); + listModelVersionCheckpointsSettings = + settingsBuilder.listModelVersionCheckpointsSettings().build(); updateModelSettings = settingsBuilder.updateModelSettings().build(); updateExplanationDatasetSettings = settingsBuilder.updateExplanationDatasetSettings().build(); updateExplanationDatasetOperationSettings = @@ -853,6 +949,11 @@ public static class Builder extends StubSettings.Builder listModelVersionsSettings; + private final PagedCallSettings.Builder< + ListModelVersionCheckpointsRequest, + ListModelVersionCheckpointsResponse, + ListModelVersionCheckpointsPagedResponse> + listModelVersionCheckpointsSettings; private final UnaryCallSettings.Builder updateModelSettings; private final UnaryCallSettings.Builder updateExplanationDatasetSettings; @@ -951,6 +1052,8 @@ protected Builder(ClientContext clientContext) { getModelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listModelsSettings = PagedCallSettings.newBuilder(LIST_MODELS_PAGE_STR_FACT); listModelVersionsSettings = PagedCallSettings.newBuilder(LIST_MODEL_VERSIONS_PAGE_STR_FACT); + listModelVersionCheckpointsSettings = + PagedCallSettings.newBuilder(LIST_MODEL_VERSION_CHECKPOINTS_PAGE_STR_FACT); updateModelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateExplanationDatasetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateExplanationDatasetOperationSettings = OperationCallSettings.newBuilder(); @@ -984,6 +1087,7 @@ protected Builder(ClientContext clientContext) { getModelSettings, listModelsSettings, listModelVersionsSettings, + listModelVersionCheckpointsSettings, updateModelSettings, updateExplanationDatasetSettings, deleteModelSettings, @@ -1014,6 +1118,8 @@ protected Builder(ModelServiceStubSettings settings) { getModelSettings = settings.getModelSettings.toBuilder(); listModelsSettings = settings.listModelsSettings.toBuilder(); listModelVersionsSettings = settings.listModelVersionsSettings.toBuilder(); + listModelVersionCheckpointsSettings = + settings.listModelVersionCheckpointsSettings.toBuilder(); updateModelSettings = settings.updateModelSettings.toBuilder(); updateExplanationDatasetSettings = settings.updateExplanationDatasetSettings.toBuilder(); updateExplanationDatasetOperationSettings = @@ -1049,6 +1155,7 @@ protected Builder(ModelServiceStubSettings settings) { getModelSettings, listModelsSettings, listModelVersionsSettings, + listModelVersionCheckpointsSettings, updateModelSettings, updateExplanationDatasetSettings, deleteModelSettings, @@ -1103,6 +1210,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .listModelVersionCheckpointsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .updateModelSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_7_codes")) @@ -1391,6 +1503,15 @@ public UnaryCallSettings.Builder getModelSettings() { return listModelVersionsSettings; } + /** Returns the builder for the settings used for calls to listModelVersionCheckpoints. */ + public PagedCallSettings.Builder< + ListModelVersionCheckpointsRequest, + ListModelVersionCheckpointsResponse, + ListModelVersionCheckpointsPagedResponse> + listModelVersionCheckpointsSettings() { + return listModelVersionCheckpointsSettings; + } + /** Returns the builder for the settings used for calls to updateModel. */ public UnaryCallSettings.Builder updateModelSettings() { return updateModelSettings; 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 bb16982d264f..d42d23518047 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 @@ -1619,6 +1619,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.CachedContent", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.CachedContent$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.CachedContent$UsageMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.CachedContent$UsageMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest", "queryAllDeclaredConstructors": true, @@ -1916,6 +1952,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.CodeExecutionResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.CodeExecutionResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.CodeExecutionResult$Outcome", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.CoherenceInput", "queryAllDeclaredConstructors": true, @@ -2420,6 +2483,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.CreateCachedContentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.CreateCachedContentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.CreateContextRequest", "queryAllDeclaredConstructors": true, @@ -3194,6 +3275,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.CreateReasoningEngineOperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.CreateReasoningEngineOperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.CreateRegistryFeatureOperationMetadata", "queryAllDeclaredConstructors": true, @@ -3644,6 +3761,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.DeleteCachedContentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.DeleteCachedContentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.DeleteContextRequest", "queryAllDeclaredConstructors": true, @@ -4328,6 +4463,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.DeleteSavedQueryRequest", "queryAllDeclaredConstructors": true, @@ -5354,6 +5507,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.ExecutableCode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ExecutableCode$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ExecutableCode$Language", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.Execution", "queryAllDeclaredConstructors": true, @@ -6515,6 +6695,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.FeatureView$OptimizedConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.FeatureView$OptimizedConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.FeatureView$ServiceAgentType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.FeatureView$SyncConfig", "queryAllDeclaredConstructors": true, @@ -7559,6 +7766,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.GetCachedContentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.GetCachedContentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.GetContextRequest", "queryAllDeclaredConstructors": true, @@ -8171,6 +8396,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.GetReasoningEngineRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.GetReasoningEngineRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.GetScheduleRequest", "queryAllDeclaredConstructors": true, @@ -9278,6 +9521,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.ListCachedContentsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ListCachedContentsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ListCachedContentsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ListCachedContentsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.ListContextsRequest", "queryAllDeclaredConstructors": true, @@ -10142,6 +10421,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.ListModelVersionsRequest", "queryAllDeclaredConstructors": true, @@ -10574,6 +10889,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.ListSavedQueriesRequest", "queryAllDeclaredConstructors": true, @@ -11528,6 +11879,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.Modality", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ModalityTokenCount", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ModalityTokenCount$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.Model", "queryAllDeclaredConstructors": true, @@ -12176,6 +12554,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.ModelVersionCheckpoint", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ModelVersionCheckpoint$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata", "queryAllDeclaredConstructors": true, @@ -14354,6 +14750,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInput", "queryAllDeclaredConstructors": true, @@ -15326,6 +15758,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.ReasoningEngine", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ReasoningEngine$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ReasoningEngineSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ReasoningEngineSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ReasoningEngineSpec$PackageSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ReasoningEngineSpec$PackageSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.RebaseTunedModelOperationMetadata", "queryAllDeclaredConstructors": true, @@ -15677,6 +16163,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.RetrievalConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.RetrievalConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.RetrievalMetadata", "queryAllDeclaredConstructors": true, @@ -16622,6 +17126,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec$DraftModelSpeculation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec$DraftModelSpeculation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec$NgramSpeculation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec$NgramSpeculation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.StartNotebookRuntimeOperationMetadata", "queryAllDeclaredConstructors": true, @@ -16838,6 +17396,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.StreamRawPredictRequest", "queryAllDeclaredConstructors": true, @@ -18089,6 +18665,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.Tool$CodeExecution", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.Tool$CodeExecution$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.ToolCallValidInput", "queryAllDeclaredConstructors": true, @@ -18791,6 +19385,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.UpdateCachedContentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.UpdateCachedContentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.UpdateContextRequest", "queryAllDeclaredConstructors": true, @@ -19403,6 +20015,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.UpdateReasoningEngineOperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.UpdateReasoningEngineOperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.UpdateScheduleRequest", "queryAllDeclaredConstructors": true, @@ -22751,6 +23399,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.type.LatLng", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.LatLng$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.type.Money", "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 f18aef941cdd..da5963edc4ed 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 @@ -944,6 +944,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.AutoraterConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.AutoraterConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec", "queryAllDeclaredConstructors": true, @@ -2204,6 +2222,87 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.CometInput", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.CometInput$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.CometInstance", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.CometInstance$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.CometResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.CometResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.CometSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.CometSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.CometSpec$CometVersion", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.CompleteTrialRequest", "queryAllDeclaredConstructors": true, @@ -11537,6 +11636,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest", "queryAllDeclaredConstructors": true, @@ -12680,6 +12815,87 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.MetricxInput", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.MetricxInput$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.MetricxInstance", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.MetricxInstance$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.MetricxResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.MetricxResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.MetricxSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.MetricxSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.MetricxSpec$MetricxVersion", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.MigratableResource", "queryAllDeclaredConstructors": true, @@ -12914,6 +13130,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.Modality", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ModalityTokenCount", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ModalityTokenCount$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.Model", "queryAllDeclaredConstructors": true, @@ -14183,6 +14426,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata", "queryAllDeclaredConstructors": true, @@ -18296,6 +18557,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RetrievalConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RetrievalConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.RetrievalMetadata", "queryAllDeclaredConstructors": true, @@ -22670,6 +22949,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorOperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorOperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.UpdateFeatureOnlineStoreOperationMetadata", "queryAllDeclaredConstructors": true, @@ -27224,6 +27539,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.type.LatLng", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.LatLng$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.type.Money", "queryAllDeclaredConstructors": true, diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreAdminServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreAdminServiceClientTest.java index 9626e6abe805..e38ce0831c87 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreAdminServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreAdminServiceClientTest.java @@ -607,6 +607,8 @@ public void createFeatureViewTest() throws Exception { .putAllLabels(new HashMap()) .setSyncConfig(FeatureView.SyncConfig.newBuilder().build()) .setIndexConfig(FeatureView.IndexConfig.newBuilder().build()) + .setOptimizedConfig(FeatureView.OptimizedConfig.newBuilder().build()) + .setServiceAccountEmail("serviceAccountEmail1825953988") .setSatisfiesPzs(true) .setSatisfiesPzi(true) .build(); @@ -673,6 +675,8 @@ public void createFeatureViewTest2() throws Exception { .putAllLabels(new HashMap()) .setSyncConfig(FeatureView.SyncConfig.newBuilder().build()) .setIndexConfig(FeatureView.IndexConfig.newBuilder().build()) + .setOptimizedConfig(FeatureView.OptimizedConfig.newBuilder().build()) + .setServiceAccountEmail("serviceAccountEmail1825953988") .setSatisfiesPzs(true) .setSatisfiesPzi(true) .build(); @@ -737,6 +741,8 @@ public void getFeatureViewTest() throws Exception { .putAllLabels(new HashMap()) .setSyncConfig(FeatureView.SyncConfig.newBuilder().build()) .setIndexConfig(FeatureView.IndexConfig.newBuilder().build()) + .setOptimizedConfig(FeatureView.OptimizedConfig.newBuilder().build()) + .setServiceAccountEmail("serviceAccountEmail1825953988") .setSatisfiesPzs(true) .setSatisfiesPzi(true) .build(); @@ -788,6 +794,8 @@ public void getFeatureViewTest2() throws Exception { .putAllLabels(new HashMap()) .setSyncConfig(FeatureView.SyncConfig.newBuilder().build()) .setIndexConfig(FeatureView.IndexConfig.newBuilder().build()) + .setOptimizedConfig(FeatureView.OptimizedConfig.newBuilder().build()) + .setServiceAccountEmail("serviceAccountEmail1825953988") .setSatisfiesPzs(true) .setSatisfiesPzi(true) .build(); @@ -927,6 +935,8 @@ public void updateFeatureViewTest() throws Exception { .putAllLabels(new HashMap()) .setSyncConfig(FeatureView.SyncConfig.newBuilder().build()) .setIndexConfig(FeatureView.IndexConfig.newBuilder().build()) + .setOptimizedConfig(FeatureView.OptimizedConfig.newBuilder().build()) + .setServiceAccountEmail("serviceAccountEmail1825953988") .setSatisfiesPzs(true) .setSatisfiesPzi(true) .build(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/GenAiCacheServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/GenAiCacheServiceClientTest.java new file mode 100644 index 000000000000..1fe5455f5b28 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/GenAiCacheServiceClientTest.java @@ -0,0 +1,769 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1; + +import static com.google.cloud.aiplatform.v1.GenAiCacheServiceClient.ListCachedContentsPagedResponse; +import static com.google.cloud.aiplatform.v1.GenAiCacheServiceClient.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.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 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 GenAiCacheServiceClientTest { + private static MockGenAiCacheService mockGenAiCacheService; + private static MockIAMPolicy mockIAMPolicy; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private GenAiCacheServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockGenAiCacheService = new MockGenAiCacheService(); + mockLocations = new MockLocations(); + mockIAMPolicy = new MockIAMPolicy(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockGenAiCacheService, mockLocations, mockIAMPolicy)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + GenAiCacheServiceSettings settings = + GenAiCacheServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = GenAiCacheServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void createCachedContentTest() throws Exception { + CachedContent expectedResponse = + CachedContent.newBuilder() + .setName(CachedContentName.of("[PROJECT]", "[LOCATION]", "[CACHED_CONTENT]").toString()) + .setDisplayName("displayName1714148973") + .setModel("model104069929") + .setSystemInstruction(Content.newBuilder().build()) + .addAllContents(new ArrayList()) + .addAllTools(new ArrayList()) + .setToolConfig(ToolConfig.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setUsageMetadata(CachedContent.UsageMetadata.newBuilder().build()) + .build(); + mockGenAiCacheService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + CachedContent cachedContent = CachedContent.newBuilder().build(); + + CachedContent actualResponse = client.createCachedContent(parent, cachedContent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGenAiCacheService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateCachedContentRequest actualRequest = ((CreateCachedContentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(cachedContent, actualRequest.getCachedContent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createCachedContentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGenAiCacheService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + CachedContent cachedContent = CachedContent.newBuilder().build(); + client.createCachedContent(parent, cachedContent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCachedContentTest2() throws Exception { + CachedContent expectedResponse = + CachedContent.newBuilder() + .setName(CachedContentName.of("[PROJECT]", "[LOCATION]", "[CACHED_CONTENT]").toString()) + .setDisplayName("displayName1714148973") + .setModel("model104069929") + .setSystemInstruction(Content.newBuilder().build()) + .addAllContents(new ArrayList()) + .addAllTools(new ArrayList()) + .setToolConfig(ToolConfig.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setUsageMetadata(CachedContent.UsageMetadata.newBuilder().build()) + .build(); + mockGenAiCacheService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + CachedContent cachedContent = CachedContent.newBuilder().build(); + + CachedContent actualResponse = client.createCachedContent(parent, cachedContent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGenAiCacheService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateCachedContentRequest actualRequest = ((CreateCachedContentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(cachedContent, actualRequest.getCachedContent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createCachedContentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGenAiCacheService.addException(exception); + + try { + String parent = "parent-995424086"; + CachedContent cachedContent = CachedContent.newBuilder().build(); + client.createCachedContent(parent, cachedContent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCachedContentTest() throws Exception { + CachedContent expectedResponse = + CachedContent.newBuilder() + .setName(CachedContentName.of("[PROJECT]", "[LOCATION]", "[CACHED_CONTENT]").toString()) + .setDisplayName("displayName1714148973") + .setModel("model104069929") + .setSystemInstruction(Content.newBuilder().build()) + .addAllContents(new ArrayList()) + .addAllTools(new ArrayList()) + .setToolConfig(ToolConfig.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setUsageMetadata(CachedContent.UsageMetadata.newBuilder().build()) + .build(); + mockGenAiCacheService.addResponse(expectedResponse); + + CachedContentName name = CachedContentName.of("[PROJECT]", "[LOCATION]", "[CACHED_CONTENT]"); + + CachedContent actualResponse = client.getCachedContent(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGenAiCacheService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetCachedContentRequest actualRequest = ((GetCachedContentRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getCachedContentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGenAiCacheService.addException(exception); + + try { + CachedContentName name = CachedContentName.of("[PROJECT]", "[LOCATION]", "[CACHED_CONTENT]"); + client.getCachedContent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCachedContentTest2() throws Exception { + CachedContent expectedResponse = + CachedContent.newBuilder() + .setName(CachedContentName.of("[PROJECT]", "[LOCATION]", "[CACHED_CONTENT]").toString()) + .setDisplayName("displayName1714148973") + .setModel("model104069929") + .setSystemInstruction(Content.newBuilder().build()) + .addAllContents(new ArrayList()) + .addAllTools(new ArrayList()) + .setToolConfig(ToolConfig.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setUsageMetadata(CachedContent.UsageMetadata.newBuilder().build()) + .build(); + mockGenAiCacheService.addResponse(expectedResponse); + + String name = "name3373707"; + + CachedContent actualResponse = client.getCachedContent(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGenAiCacheService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetCachedContentRequest actualRequest = ((GetCachedContentRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getCachedContentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGenAiCacheService.addException(exception); + + try { + String name = "name3373707"; + client.getCachedContent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateCachedContentTest() throws Exception { + CachedContent expectedResponse = + CachedContent.newBuilder() + .setName(CachedContentName.of("[PROJECT]", "[LOCATION]", "[CACHED_CONTENT]").toString()) + .setDisplayName("displayName1714148973") + .setModel("model104069929") + .setSystemInstruction(Content.newBuilder().build()) + .addAllContents(new ArrayList()) + .addAllTools(new ArrayList()) + .setToolConfig(ToolConfig.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setUsageMetadata(CachedContent.UsageMetadata.newBuilder().build()) + .build(); + mockGenAiCacheService.addResponse(expectedResponse); + + CachedContent cachedContent = CachedContent.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + CachedContent actualResponse = client.updateCachedContent(cachedContent, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGenAiCacheService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateCachedContentRequest actualRequest = ((UpdateCachedContentRequest) actualRequests.get(0)); + + Assert.assertEquals(cachedContent, actualRequest.getCachedContent()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateCachedContentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGenAiCacheService.addException(exception); + + try { + CachedContent cachedContent = CachedContent.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateCachedContent(cachedContent, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteCachedContentTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockGenAiCacheService.addResponse(expectedResponse); + + CachedContentName name = CachedContentName.of("[PROJECT]", "[LOCATION]", "[CACHED_CONTENT]"); + + client.deleteCachedContent(name); + + List actualRequests = mockGenAiCacheService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteCachedContentRequest actualRequest = ((DeleteCachedContentRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteCachedContentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGenAiCacheService.addException(exception); + + try { + CachedContentName name = CachedContentName.of("[PROJECT]", "[LOCATION]", "[CACHED_CONTENT]"); + client.deleteCachedContent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteCachedContentTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockGenAiCacheService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteCachedContent(name); + + List actualRequests = mockGenAiCacheService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteCachedContentRequest actualRequest = ((DeleteCachedContentRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteCachedContentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGenAiCacheService.addException(exception); + + try { + String name = "name3373707"; + client.deleteCachedContent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCachedContentsTest() throws Exception { + CachedContent responsesElement = CachedContent.newBuilder().build(); + ListCachedContentsResponse expectedResponse = + ListCachedContentsResponse.newBuilder() + .setNextPageToken("") + .addAllCachedContents(Arrays.asList(responsesElement)) + .build(); + mockGenAiCacheService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListCachedContentsPagedResponse pagedListResponse = client.listCachedContents(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCachedContentsList().get(0), resources.get(0)); + + List actualRequests = mockGenAiCacheService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListCachedContentsRequest actualRequest = ((ListCachedContentsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listCachedContentsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGenAiCacheService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listCachedContents(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCachedContentsTest2() throws Exception { + CachedContent responsesElement = CachedContent.newBuilder().build(); + ListCachedContentsResponse expectedResponse = + ListCachedContentsResponse.newBuilder() + .setNextPageToken("") + .addAllCachedContents(Arrays.asList(responsesElement)) + .build(); + mockGenAiCacheService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListCachedContentsPagedResponse pagedListResponse = client.listCachedContents(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCachedContentsList().get(0), resources.get(0)); + + List actualRequests = mockGenAiCacheService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListCachedContentsRequest actualRequest = ((ListCachedContentsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listCachedContentsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGenAiCacheService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listCachedContents(parent); + 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/v1/LlmUtilityServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/LlmUtilityServiceClientTest.java index 2d17a51239f0..d43748a14d13 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/LlmUtilityServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/LlmUtilityServiceClientTest.java @@ -107,6 +107,7 @@ public void countTokensTest() throws Exception { CountTokensResponse.newBuilder() .setTotalTokens(730673909) .setTotalBillableCharacters(1242495501) + .addAllPromptTokensDetails(new ArrayList()) .build(); mockLlmUtilityService.addResponse(expectedResponse); @@ -151,6 +152,7 @@ public void countTokensTest2() throws Exception { CountTokensResponse.newBuilder() .setTotalTokens(730673909) .setTotalBillableCharacters(1242495501) + .addAllPromptTokensDetails(new ArrayList()) .build(); mockLlmUtilityService.addResponse(expectedResponse); diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockGenAiCacheService.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockGenAiCacheService.java new file mode 100644 index 000000000000..303595bc1cef --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockGenAiCacheService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 MockGenAiCacheService implements MockGrpcService { + private final MockGenAiCacheServiceImpl serviceImpl; + + public MockGenAiCacheService() { + serviceImpl = new MockGenAiCacheServiceImpl(); + } + + @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/MockGenAiCacheServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockGenAiCacheServiceImpl.java new file mode 100644 index 000000000000..581156dfba79 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockGenAiCacheServiceImpl.java @@ -0,0 +1,167 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.aiplatform.v1.GenAiCacheServiceGrpc.GenAiCacheServiceImplBase; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +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 MockGenAiCacheServiceImpl extends GenAiCacheServiceImplBase { + private List requests; + private Queue responses; + + public MockGenAiCacheServiceImpl() { + 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 createCachedContent( + CreateCachedContentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CachedContent) { + requests.add(request); + responseObserver.onNext(((CachedContent) 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 CreateCachedContent, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + CachedContent.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getCachedContent( + GetCachedContentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CachedContent) { + requests.add(request); + responseObserver.onNext(((CachedContent) 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 GetCachedContent, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + CachedContent.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateCachedContent( + UpdateCachedContentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CachedContent) { + requests.add(request); + responseObserver.onNext(((CachedContent) 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 UpdateCachedContent, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + CachedContent.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteCachedContent( + DeleteCachedContentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) 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 DeleteCachedContent, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listCachedContents( + ListCachedContentsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListCachedContentsResponse) { + requests.add(request); + responseObserver.onNext(((ListCachedContentsResponse) 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 ListCachedContents, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListCachedContentsResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockModelServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockModelServiceImpl.java index 7046bfe49f66..d93657531b98 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockModelServiceImpl.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockModelServiceImpl.java @@ -142,6 +142,28 @@ public void listModelVersions( } } + @Override + public void listModelVersionCheckpoints( + ListModelVersionCheckpointsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListModelVersionCheckpointsResponse) { + requests.add(request); + responseObserver.onNext(((ListModelVersionCheckpointsResponse) 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 ListModelVersionCheckpoints, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListModelVersionCheckpointsResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void updateModel(UpdateModelRequest request, StreamObserver responseObserver) { Object response = responses.poll(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockReasoningEngineExecutionService.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockReasoningEngineExecutionService.java new file mode 100644 index 000000000000..4f39e34a1064 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockReasoningEngineExecutionService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 MockReasoningEngineExecutionService implements MockGrpcService { + private final MockReasoningEngineExecutionServiceImpl serviceImpl; + + public MockReasoningEngineExecutionService() { + serviceImpl = new MockReasoningEngineExecutionServiceImpl(); + } + + @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/MockReasoningEngineExecutionServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockReasoningEngineExecutionServiceImpl.java new file mode 100644 index 000000000000..fd104ce2a26c --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockReasoningEngineExecutionServiceImpl.java @@ -0,0 +1,105 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1; + +import com.google.api.HttpBody; +import com.google.api.core.BetaApi; +import com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceGrpc.ReasoningEngineExecutionServiceImplBase; +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 MockReasoningEngineExecutionServiceImpl + extends ReasoningEngineExecutionServiceImplBase { + private List requests; + private Queue responses; + + public MockReasoningEngineExecutionServiceImpl() { + 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 queryReasoningEngine( + QueryReasoningEngineRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof QueryReasoningEngineResponse) { + requests.add(request); + responseObserver.onNext(((QueryReasoningEngineResponse) 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 QueryReasoningEngine, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + QueryReasoningEngineResponse.class.getName(), + 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/v1/MockReasoningEngineService.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockReasoningEngineService.java new file mode 100644 index 000000000000..8db88e8713fe --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockReasoningEngineService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 MockReasoningEngineService implements MockGrpcService { + private final MockReasoningEngineServiceImpl serviceImpl; + + public MockReasoningEngineService() { + serviceImpl = new MockReasoningEngineServiceImpl(); + } + + @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/MockReasoningEngineServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockReasoningEngineServiceImpl.java new file mode 100644 index 000000000000..784078536488 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockReasoningEngineServiceImpl.java @@ -0,0 +1,167 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.aiplatform.v1.ReasoningEngineServiceGrpc.ReasoningEngineServiceImplBase; +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 MockReasoningEngineServiceImpl extends ReasoningEngineServiceImplBase { + private List requests; + private Queue responses; + + public MockReasoningEngineServiceImpl() { + 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 createReasoningEngine( + CreateReasoningEngineRequest 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 CreateReasoningEngine, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getReasoningEngine( + GetReasoningEngineRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ReasoningEngine) { + requests.add(request); + responseObserver.onNext(((ReasoningEngine) 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 GetReasoningEngine, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ReasoningEngine.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listReasoningEngines( + ListReasoningEnginesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListReasoningEnginesResponse) { + requests.add(request); + responseObserver.onNext(((ListReasoningEnginesResponse) 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 ListReasoningEngines, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListReasoningEnginesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateReasoningEngine( + UpdateReasoningEngineRequest 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 UpdateReasoningEngine, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteReasoningEngine( + DeleteReasoningEngineRequest 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 DeleteReasoningEngine, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/ModelServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/ModelServiceClientTest.java index 99a094ac8950..9df6d8a35e73 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/ModelServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/ModelServiceClientTest.java @@ -19,6 +19,7 @@ import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelEvaluationSlicesPagedResponse; import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelEvaluationsPagedResponse; +import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelVersionCheckpointsPagedResponse; import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelVersionsPagedResponse; import static com.google.cloud.aiplatform.v1.ModelServiceClient.ListModelsPagedResponse; @@ -222,6 +223,7 @@ public void getModelTest() throws Exception { .setDisplayName("displayName1714148973") .setDescription("description-1724546052") .setVersionDescription("versionDescription-1736173564") + .setDefaultCheckpointId("defaultCheckpointId2036067748") .setPredictSchemata(PredictSchemata.newBuilder().build()) .setMetadataSchemaUri("metadataSchemaUri781971868") .setMetadata(Value.newBuilder().setBoolValue(true).build()) @@ -295,6 +297,7 @@ public void getModelTest2() throws Exception { .setDisplayName("displayName1714148973") .setDescription("description-1724546052") .setVersionDescription("versionDescription-1736173564") + .setDefaultCheckpointId("defaultCheckpointId2036067748") .setPredictSchemata(PredictSchemata.newBuilder().build()) .setMetadataSchemaUri("metadataSchemaUri781971868") .setMetadata(Value.newBuilder().setBoolValue(true).build()) @@ -532,6 +535,98 @@ public void listModelVersionsExceptionTest2() throws Exception { } } + @Test + public void listModelVersionCheckpointsTest() throws Exception { + ModelVersionCheckpoint responsesElement = ModelVersionCheckpoint.newBuilder().build(); + ListModelVersionCheckpointsResponse expectedResponse = + ListModelVersionCheckpointsResponse.newBuilder() + .setNextPageToken("") + .addAllCheckpoints(Arrays.asList(responsesElement)) + .build(); + mockModelService.addResponse(expectedResponse); + + ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]"); + + ListModelVersionCheckpointsPagedResponse pagedListResponse = + client.listModelVersionCheckpoints(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCheckpointsList().get(0), resources.get(0)); + + List actualRequests = mockModelService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListModelVersionCheckpointsRequest actualRequest = + ((ListModelVersionCheckpointsRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listModelVersionCheckpointsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockModelService.addException(exception); + + try { + ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]"); + client.listModelVersionCheckpoints(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listModelVersionCheckpointsTest2() throws Exception { + ModelVersionCheckpoint responsesElement = ModelVersionCheckpoint.newBuilder().build(); + ListModelVersionCheckpointsResponse expectedResponse = + ListModelVersionCheckpointsResponse.newBuilder() + .setNextPageToken("") + .addAllCheckpoints(Arrays.asList(responsesElement)) + .build(); + mockModelService.addResponse(expectedResponse); + + String name = "name3373707"; + + ListModelVersionCheckpointsPagedResponse pagedListResponse = + client.listModelVersionCheckpoints(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCheckpointsList().get(0), resources.get(0)); + + List actualRequests = mockModelService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListModelVersionCheckpointsRequest actualRequest = + ((ListModelVersionCheckpointsRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listModelVersionCheckpointsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockModelService.addException(exception); + + try { + String name = "name3373707"; + client.listModelVersionCheckpoints(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void updateModelTest() throws Exception { Model expectedResponse = @@ -544,6 +639,7 @@ public void updateModelTest() throws Exception { .setDisplayName("displayName1714148973") .setDescription("description-1724546052") .setVersionDescription("versionDescription-1736173564") + .setDefaultCheckpointId("defaultCheckpointId2036067748") .setPredictSchemata(PredictSchemata.newBuilder().build()) .setMetadataSchemaUri("metadataSchemaUri781971868") .setMetadata(Value.newBuilder().setBoolValue(true).build()) @@ -880,6 +976,7 @@ public void mergeVersionAliasesTest() throws Exception { .setDisplayName("displayName1714148973") .setDescription("description-1724546052") .setVersionDescription("versionDescription-1736173564") + .setDefaultCheckpointId("defaultCheckpointId2036067748") .setPredictSchemata(PredictSchemata.newBuilder().build()) .setMetadataSchemaUri("metadataSchemaUri781971868") .setMetadata(Value.newBuilder().setBoolValue(true).build()) @@ -956,6 +1053,7 @@ public void mergeVersionAliasesTest2() throws Exception { .setDisplayName("displayName1714148973") .setDescription("description-1724546052") .setVersionDescription("versionDescription-1736173564") + .setDefaultCheckpointId("defaultCheckpointId2036067748") .setPredictSchemata(PredictSchemata.newBuilder().build()) .setMetadataSchemaUri("metadataSchemaUri781971868") .setMetadata(Value.newBuilder().setBoolValue(true).build()) 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 0999a90620d9..42d1bcf3c243 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 @@ -657,7 +657,12 @@ public void assignNotebookRuntimeTest() throws Exception { .setExpirationTime(Timestamp.newBuilder().build()) .setVersion("version351608024") .setNotebookRuntimeType(NotebookRuntimeType.forNumber(0)) + .setMachineSpec(MachineSpec.newBuilder().build()) + .setDataPersistentDiskSpec(PersistentDiskSpec.newBuilder().build()) + .setNetworkSpec(NetworkSpec.newBuilder().build()) .setIdleShutdownConfig(NotebookIdleShutdownConfig.newBuilder().build()) + .setEucConfig(NotebookEucConfig.newBuilder().build()) + .setShieldedVmConfig(ShieldedVmConfig.newBuilder().build()) .addAllNetworkTags(new ArrayList()) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setSatisfiesPzs(true) @@ -742,7 +747,12 @@ public void assignNotebookRuntimeTest2() throws Exception { .setExpirationTime(Timestamp.newBuilder().build()) .setVersion("version351608024") .setNotebookRuntimeType(NotebookRuntimeType.forNumber(0)) + .setMachineSpec(MachineSpec.newBuilder().build()) + .setDataPersistentDiskSpec(PersistentDiskSpec.newBuilder().build()) + .setNetworkSpec(NetworkSpec.newBuilder().build()) .setIdleShutdownConfig(NotebookIdleShutdownConfig.newBuilder().build()) + .setEucConfig(NotebookEucConfig.newBuilder().build()) + .setShieldedVmConfig(ShieldedVmConfig.newBuilder().build()) .addAllNetworkTags(new ArrayList()) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setSatisfiesPzs(true) @@ -824,7 +834,12 @@ public void assignNotebookRuntimeTest3() throws Exception { .setExpirationTime(Timestamp.newBuilder().build()) .setVersion("version351608024") .setNotebookRuntimeType(NotebookRuntimeType.forNumber(0)) + .setMachineSpec(MachineSpec.newBuilder().build()) + .setDataPersistentDiskSpec(PersistentDiskSpec.newBuilder().build()) + .setNetworkSpec(NetworkSpec.newBuilder().build()) .setIdleShutdownConfig(NotebookIdleShutdownConfig.newBuilder().build()) + .setEucConfig(NotebookEucConfig.newBuilder().build()) + .setShieldedVmConfig(ShieldedVmConfig.newBuilder().build()) .addAllNetworkTags(new ArrayList()) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setSatisfiesPzs(true) @@ -909,7 +924,12 @@ public void assignNotebookRuntimeTest4() throws Exception { .setExpirationTime(Timestamp.newBuilder().build()) .setVersion("version351608024") .setNotebookRuntimeType(NotebookRuntimeType.forNumber(0)) + .setMachineSpec(MachineSpec.newBuilder().build()) + .setDataPersistentDiskSpec(PersistentDiskSpec.newBuilder().build()) + .setNetworkSpec(NetworkSpec.newBuilder().build()) .setIdleShutdownConfig(NotebookIdleShutdownConfig.newBuilder().build()) + .setEucConfig(NotebookEucConfig.newBuilder().build()) + .setShieldedVmConfig(ShieldedVmConfig.newBuilder().build()) .addAllNetworkTags(new ArrayList()) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setSatisfiesPzs(true) @@ -991,7 +1011,12 @@ public void getNotebookRuntimeTest() throws Exception { .setExpirationTime(Timestamp.newBuilder().build()) .setVersion("version351608024") .setNotebookRuntimeType(NotebookRuntimeType.forNumber(0)) + .setMachineSpec(MachineSpec.newBuilder().build()) + .setDataPersistentDiskSpec(PersistentDiskSpec.newBuilder().build()) + .setNetworkSpec(NetworkSpec.newBuilder().build()) .setIdleShutdownConfig(NotebookIdleShutdownConfig.newBuilder().build()) + .setEucConfig(NotebookEucConfig.newBuilder().build()) + .setShieldedVmConfig(ShieldedVmConfig.newBuilder().build()) .addAllNetworkTags(new ArrayList()) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setSatisfiesPzs(true) @@ -1050,7 +1075,12 @@ public void getNotebookRuntimeTest2() throws Exception { .setExpirationTime(Timestamp.newBuilder().build()) .setVersion("version351608024") .setNotebookRuntimeType(NotebookRuntimeType.forNumber(0)) + .setMachineSpec(MachineSpec.newBuilder().build()) + .setDataPersistentDiskSpec(PersistentDiskSpec.newBuilder().build()) + .setNetworkSpec(NetworkSpec.newBuilder().build()) .setIdleShutdownConfig(NotebookIdleShutdownConfig.newBuilder().build()) + .setEucConfig(NotebookEucConfig.newBuilder().build()) + .setShieldedVmConfig(ShieldedVmConfig.newBuilder().build()) .addAllNetworkTags(new ArrayList()) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setSatisfiesPzs(true) diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/PredictionServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/PredictionServiceClientTest.java index e408f0167957..ab4b6e162fe5 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/PredictionServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/PredictionServiceClientTest.java @@ -931,6 +931,8 @@ public void streamGenerateContentTest() throws Exception { .setModel("model104069929") .addAllContents(new ArrayList()) .setSystemInstruction(Content.newBuilder().build()) + .setCachedContent( + CachedContentName.of("[PROJECT]", "[LOCATION]", "[CACHED_CONTENT]").toString()) .addAllTools(new ArrayList()) .setToolConfig(ToolConfig.newBuilder().build()) .putAllLabels(new HashMap()) @@ -958,6 +960,8 @@ public void streamGenerateContentExceptionTest() throws Exception { .setModel("model104069929") .addAllContents(new ArrayList()) .setSystemInstruction(Content.newBuilder().build()) + .setCachedContent( + CachedContentName.of("[PROJECT]", "[LOCATION]", "[CACHED_CONTENT]").toString()) .addAllTools(new ArrayList()) .setToolConfig(ToolConfig.newBuilder().build()) .putAllLabels(new HashMap()) diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceClientTest.java new file mode 100644 index 000000000000..3a9eabdd2f1e --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceClientTest.java @@ -0,0 +1,484 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1; + +import static com.google.cloud.aiplatform.v1.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; +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 com.google.protobuf.Struct; +import com.google.protobuf.Value; +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 ReasoningEngineExecutionServiceClientTest { + private static MockIAMPolicy mockIAMPolicy; + private static MockLocations mockLocations; + private static MockReasoningEngineExecutionService mockReasoningEngineExecutionService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private ReasoningEngineExecutionServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockReasoningEngineExecutionService = new MockReasoningEngineExecutionService(); + mockLocations = new MockLocations(); + mockIAMPolicy = new MockIAMPolicy(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList( + mockReasoningEngineExecutionService, mockLocations, mockIAMPolicy)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + ReasoningEngineExecutionServiceSettings settings = + ReasoningEngineExecutionServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ReasoningEngineExecutionServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void queryReasoningEngineTest() throws Exception { + QueryReasoningEngineResponse expectedResponse = + QueryReasoningEngineResponse.newBuilder() + .setOutput(Value.newBuilder().setBoolValue(true).build()) + .build(); + mockReasoningEngineExecutionService.addResponse(expectedResponse); + + QueryReasoningEngineRequest request = + QueryReasoningEngineRequest.newBuilder() + .setName( + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]").toString()) + .setInput(Struct.newBuilder().build()) + .setClassMethod("classMethod-937857927") + .build(); + + QueryReasoningEngineResponse actualResponse = client.queryReasoningEngine(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockReasoningEngineExecutionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryReasoningEngineRequest actualRequest = + ((QueryReasoningEngineRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getInput(), actualRequest.getInput()); + Assert.assertEquals(request.getClassMethod(), actualRequest.getClassMethod()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryReasoningEngineExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockReasoningEngineExecutionService.addException(exception); + + try { + QueryReasoningEngineRequest request = + QueryReasoningEngineRequest.newBuilder() + .setName( + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]") + .toString()) + .setInput(Struct.newBuilder().build()) + .setClassMethod("classMethod-937857927") + .build(); + client.queryReasoningEngine(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected 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(); + 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/ReasoningEngineServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/ReasoningEngineServiceClientTest.java new file mode 100644 index 000000000000..ed1fb7d97670 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/ReasoningEngineServiceClientTest.java @@ -0,0 +1,817 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1; + +import static com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient.ListReasoningEnginesPagedResponse; + +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 ReasoningEngineServiceClientTest { + private static MockIAMPolicy mockIAMPolicy; + private static MockLocations mockLocations; + private static MockReasoningEngineService mockReasoningEngineService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private ReasoningEngineServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockReasoningEngineService = new MockReasoningEngineService(); + mockLocations = new MockLocations(); + mockIAMPolicy = new MockIAMPolicy(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList( + mockReasoningEngineService, mockLocations, mockIAMPolicy)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + ReasoningEngineServiceSettings settings = + ReasoningEngineServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ReasoningEngineServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void createReasoningEngineTest() throws Exception { + ReasoningEngine expectedResponse = + ReasoningEngine.newBuilder() + .setName( + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setSpec(ReasoningEngineSpec.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createReasoningEngineTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockReasoningEngineService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + ReasoningEngine reasoningEngine = ReasoningEngine.newBuilder().build(); + + ReasoningEngine actualResponse = + client.createReasoningEngineAsync(parent, reasoningEngine).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockReasoningEngineService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateReasoningEngineRequest actualRequest = + ((CreateReasoningEngineRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(reasoningEngine, actualRequest.getReasoningEngine()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createReasoningEngineExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockReasoningEngineService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + ReasoningEngine reasoningEngine = ReasoningEngine.newBuilder().build(); + client.createReasoningEngineAsync(parent, reasoningEngine).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 createReasoningEngineTest2() throws Exception { + ReasoningEngine expectedResponse = + ReasoningEngine.newBuilder() + .setName( + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setSpec(ReasoningEngineSpec.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createReasoningEngineTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockReasoningEngineService.addResponse(resultOperation); + + String parent = "parent-995424086"; + ReasoningEngine reasoningEngine = ReasoningEngine.newBuilder().build(); + + ReasoningEngine actualResponse = + client.createReasoningEngineAsync(parent, reasoningEngine).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockReasoningEngineService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateReasoningEngineRequest actualRequest = + ((CreateReasoningEngineRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(reasoningEngine, actualRequest.getReasoningEngine()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createReasoningEngineExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockReasoningEngineService.addException(exception); + + try { + String parent = "parent-995424086"; + ReasoningEngine reasoningEngine = ReasoningEngine.newBuilder().build(); + client.createReasoningEngineAsync(parent, reasoningEngine).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 getReasoningEngineTest() throws Exception { + ReasoningEngine expectedResponse = + ReasoningEngine.newBuilder() + .setName( + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setSpec(ReasoningEngineSpec.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockReasoningEngineService.addResponse(expectedResponse); + + ReasoningEngineName name = + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]"); + + ReasoningEngine actualResponse = client.getReasoningEngine(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockReasoningEngineService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetReasoningEngineRequest actualRequest = ((GetReasoningEngineRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getReasoningEngineExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockReasoningEngineService.addException(exception); + + try { + ReasoningEngineName name = + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]"); + client.getReasoningEngine(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getReasoningEngineTest2() throws Exception { + ReasoningEngine expectedResponse = + ReasoningEngine.newBuilder() + .setName( + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setSpec(ReasoningEngineSpec.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockReasoningEngineService.addResponse(expectedResponse); + + String name = "name3373707"; + + ReasoningEngine actualResponse = client.getReasoningEngine(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockReasoningEngineService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetReasoningEngineRequest actualRequest = ((GetReasoningEngineRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getReasoningEngineExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockReasoningEngineService.addException(exception); + + try { + String name = "name3373707"; + client.getReasoningEngine(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listReasoningEnginesTest() throws Exception { + ReasoningEngine responsesElement = ReasoningEngine.newBuilder().build(); + ListReasoningEnginesResponse expectedResponse = + ListReasoningEnginesResponse.newBuilder() + .setNextPageToken("") + .addAllReasoningEngines(Arrays.asList(responsesElement)) + .build(); + mockReasoningEngineService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListReasoningEnginesPagedResponse pagedListResponse = client.listReasoningEngines(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getReasoningEnginesList().get(0), resources.get(0)); + + List actualRequests = mockReasoningEngineService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListReasoningEnginesRequest actualRequest = + ((ListReasoningEnginesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listReasoningEnginesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockReasoningEngineService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listReasoningEngines(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listReasoningEnginesTest2() throws Exception { + ReasoningEngine responsesElement = ReasoningEngine.newBuilder().build(); + ListReasoningEnginesResponse expectedResponse = + ListReasoningEnginesResponse.newBuilder() + .setNextPageToken("") + .addAllReasoningEngines(Arrays.asList(responsesElement)) + .build(); + mockReasoningEngineService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListReasoningEnginesPagedResponse pagedListResponse = client.listReasoningEngines(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getReasoningEnginesList().get(0), resources.get(0)); + + List actualRequests = mockReasoningEngineService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListReasoningEnginesRequest actualRequest = + ((ListReasoningEnginesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listReasoningEnginesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockReasoningEngineService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listReasoningEngines(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateReasoningEngineTest() throws Exception { + ReasoningEngine expectedResponse = + ReasoningEngine.newBuilder() + .setName( + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setSpec(ReasoningEngineSpec.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateReasoningEngineTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockReasoningEngineService.addResponse(resultOperation); + + ReasoningEngine reasoningEngine = ReasoningEngine.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + ReasoningEngine actualResponse = + client.updateReasoningEngineAsync(reasoningEngine, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockReasoningEngineService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateReasoningEngineRequest actualRequest = + ((UpdateReasoningEngineRequest) actualRequests.get(0)); + + Assert.assertEquals(reasoningEngine, actualRequest.getReasoningEngine()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateReasoningEngineExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockReasoningEngineService.addException(exception); + + try { + ReasoningEngine reasoningEngine = ReasoningEngine.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateReasoningEngineAsync(reasoningEngine, 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 deleteReasoningEngineTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteReasoningEngineTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockReasoningEngineService.addResponse(resultOperation); + + ReasoningEngineName name = + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]"); + + client.deleteReasoningEngineAsync(name).get(); + + List actualRequests = mockReasoningEngineService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteReasoningEngineRequest actualRequest = + ((DeleteReasoningEngineRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteReasoningEngineExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockReasoningEngineService.addException(exception); + + try { + ReasoningEngineName name = + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]"); + client.deleteReasoningEngineAsync(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 deleteReasoningEngineTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteReasoningEngineTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockReasoningEngineService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteReasoningEngineAsync(name).get(); + + List actualRequests = mockReasoningEngineService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteReasoningEngineRequest actualRequest = + ((DeleteReasoningEngineRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteReasoningEngineExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockReasoningEngineService.addException(exception); + + try { + String name = "name3373707"; + client.deleteReasoningEngineAsync(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/v1beta1/EvaluationServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceClientTest.java index 508fd759f19a..0e5273266cab 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 @@ -108,6 +108,7 @@ public void evaluateInstancesTest() throws Exception { EvaluateInstancesRequest request = EvaluateInstancesRequest.newBuilder() .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAutoraterConfig(AutoraterConfig.newBuilder().build()) .build(); EvaluateInstancesResponse actualResponse = client.evaluateInstances(request); @@ -158,6 +159,8 @@ public void evaluateInstancesTest() throws Exception { request.getToolParameterKeyMatchInput(), actualRequest.getToolParameterKeyMatchInput()); Assert.assertEquals( request.getToolParameterKvMatchInput(), actualRequest.getToolParameterKvMatchInput()); + Assert.assertEquals(request.getCometInput(), actualRequest.getCometInput()); + Assert.assertEquals(request.getMetricxInput(), actualRequest.getMetricxInput()); Assert.assertEquals( request.getTrajectoryExactMatchInput(), actualRequest.getTrajectoryExactMatchInput()); Assert.assertEquals( @@ -171,6 +174,7 @@ public void evaluateInstancesTest() throws Exception { Assert.assertEquals( request.getTrajectorySingleToolUseInput(), actualRequest.getTrajectorySingleToolUseInput()); Assert.assertEquals(request.getLocation(), actualRequest.getLocation()); + Assert.assertEquals(request.getAutoraterConfig(), actualRequest.getAutoraterConfig()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -186,6 +190,7 @@ public void evaluateInstancesExceptionTest() throws Exception { EvaluateInstancesRequest request = EvaluateInstancesRequest.newBuilder() .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAutoraterConfig(AutoraterConfig.newBuilder().build()) .build(); client.evaluateInstances(request); Assert.fail("No exception raised"); 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 305b35dfc77f..2f5553d01851 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 @@ -1609,6 +1609,67 @@ public void listFeatureMonitorsExceptionTest2() throws Exception { } } + @Test + public void updateFeatureMonitorTest() throws Exception { + FeatureMonitor expectedResponse = + FeatureMonitor.newBuilder() + .setName( + FeatureMonitorName.of( + "[PROJECT]", "[LOCATION]", "[FEATURE_GROUP]", "[FEATURE_MONITOR]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setScheduleConfig(ScheduleConfig.newBuilder().build()) + .setFeatureSelectionConfig(FeatureSelectionConfig.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateFeatureMonitorTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockFeatureRegistryService.addResponse(resultOperation); + + FeatureMonitor featureMonitor = FeatureMonitor.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + FeatureMonitor actualResponse = + client.updateFeatureMonitorAsync(featureMonitor, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockFeatureRegistryService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateFeatureMonitorRequest actualRequest = + ((UpdateFeatureMonitorRequest) actualRequests.get(0)); + + Assert.assertEquals(featureMonitor, actualRequest.getFeatureMonitor()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateFeatureMonitorExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockFeatureRegistryService.addException(exception); + + try { + FeatureMonitor featureMonitor = FeatureMonitor.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateFeatureMonitorAsync(featureMonitor, 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 deleteFeatureMonitorTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockFeatureRegistryServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockFeatureRegistryServiceImpl.java index 2c45baec24f1..d429395ff703 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockFeatureRegistryServiceImpl.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockFeatureRegistryServiceImpl.java @@ -354,6 +354,27 @@ public void listFeatureMonitors( } } + @Override + public void updateFeatureMonitor( + UpdateFeatureMonitorRequest 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 UpdateFeatureMonitor, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void deleteFeatureMonitor( DeleteFeatureMonitorRequest request, StreamObserver responseObserver) { diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockModelServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockModelServiceImpl.java index 9dcae17a8c51..fd12e5bad4da 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockModelServiceImpl.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockModelServiceImpl.java @@ -142,6 +142,28 @@ public void listModelVersions( } } + @Override + public void listModelVersionCheckpoints( + ListModelVersionCheckpointsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListModelVersionCheckpointsResponse) { + requests.add(request); + responseObserver.onNext(((ListModelVersionCheckpointsResponse) 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 ListModelVersionCheckpoints, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListModelVersionCheckpointsResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void updateModel(UpdateModelRequest request, StreamObserver responseObserver) { Object response = responses.poll(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ModelServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ModelServiceClientTest.java index 10731432578b..84f2c9d79a84 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ModelServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ModelServiceClientTest.java @@ -19,6 +19,7 @@ import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelEvaluationSlicesPagedResponse; import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelEvaluationsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelVersionCheckpointsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelVersionsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.ModelServiceClient.ListModelsPagedResponse; @@ -222,6 +223,7 @@ public void getModelTest() throws Exception { .setDisplayName("displayName1714148973") .setDescription("description-1724546052") .setVersionDescription("versionDescription-1736173564") + .setDefaultCheckpointId("defaultCheckpointId2036067748") .setPredictSchemata(PredictSchemata.newBuilder().build()) .setMetadataSchemaUri("metadataSchemaUri781971868") .setMetadata(Value.newBuilder().setBoolValue(true).build()) @@ -292,6 +294,7 @@ public void getModelTest2() throws Exception { .setDisplayName("displayName1714148973") .setDescription("description-1724546052") .setVersionDescription("versionDescription-1736173564") + .setDefaultCheckpointId("defaultCheckpointId2036067748") .setPredictSchemata(PredictSchemata.newBuilder().build()) .setMetadataSchemaUri("metadataSchemaUri781971868") .setMetadata(Value.newBuilder().setBoolValue(true).build()) @@ -526,6 +529,98 @@ public void listModelVersionsExceptionTest2() throws Exception { } } + @Test + public void listModelVersionCheckpointsTest() throws Exception { + ModelVersionCheckpoint responsesElement = ModelVersionCheckpoint.newBuilder().build(); + ListModelVersionCheckpointsResponse expectedResponse = + ListModelVersionCheckpointsResponse.newBuilder() + .setNextPageToken("") + .addAllCheckpoints(Arrays.asList(responsesElement)) + .build(); + mockModelService.addResponse(expectedResponse); + + ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]"); + + ListModelVersionCheckpointsPagedResponse pagedListResponse = + client.listModelVersionCheckpoints(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCheckpointsList().get(0), resources.get(0)); + + List actualRequests = mockModelService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListModelVersionCheckpointsRequest actualRequest = + ((ListModelVersionCheckpointsRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listModelVersionCheckpointsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockModelService.addException(exception); + + try { + ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]"); + client.listModelVersionCheckpoints(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listModelVersionCheckpointsTest2() throws Exception { + ModelVersionCheckpoint responsesElement = ModelVersionCheckpoint.newBuilder().build(); + ListModelVersionCheckpointsResponse expectedResponse = + ListModelVersionCheckpointsResponse.newBuilder() + .setNextPageToken("") + .addAllCheckpoints(Arrays.asList(responsesElement)) + .build(); + mockModelService.addResponse(expectedResponse); + + String name = "name3373707"; + + ListModelVersionCheckpointsPagedResponse pagedListResponse = + client.listModelVersionCheckpoints(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCheckpointsList().get(0), resources.get(0)); + + List actualRequests = mockModelService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListModelVersionCheckpointsRequest actualRequest = + ((ListModelVersionCheckpointsRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listModelVersionCheckpointsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockModelService.addException(exception); + + try { + String name = "name3373707"; + client.listModelVersionCheckpoints(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void updateModelTest() throws Exception { Model expectedResponse = @@ -538,6 +633,7 @@ public void updateModelTest() throws Exception { .setDisplayName("displayName1714148973") .setDescription("description-1724546052") .setVersionDescription("versionDescription-1736173564") + .setDefaultCheckpointId("defaultCheckpointId2036067748") .setPredictSchemata(PredictSchemata.newBuilder().build()) .setMetadataSchemaUri("metadataSchemaUri781971868") .setMetadata(Value.newBuilder().setBoolValue(true).build()) @@ -871,6 +967,7 @@ public void mergeVersionAliasesTest() throws Exception { .setDisplayName("displayName1714148973") .setDescription("description-1724546052") .setVersionDescription("versionDescription-1736173564") + .setDefaultCheckpointId("defaultCheckpointId2036067748") .setPredictSchemata(PredictSchemata.newBuilder().build()) .setMetadataSchemaUri("metadataSchemaUri781971868") .setMetadata(Value.newBuilder().setBoolValue(true).build()) @@ -944,6 +1041,7 @@ public void mergeVersionAliasesTest2() throws Exception { .setDisplayName("displayName1714148973") .setDescription("description-1724546052") .setVersionDescription("versionDescription-1736173564") + .setDefaultCheckpointId("defaultCheckpointId2036067748") .setPredictSchemata(PredictSchemata.newBuilder().build()) .setMetadataSchemaUri("metadataSchemaUri781971868") .setMetadata(Value.newBuilder().setBoolValue(true).build()) 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 456a59987632..23f4e35e5447 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 @@ -657,7 +657,12 @@ public void assignNotebookRuntimeTest() throws Exception { .setExpirationTime(Timestamp.newBuilder().build()) .setVersion("version351608024") .setNotebookRuntimeType(NotebookRuntimeType.forNumber(0)) + .setMachineSpec(MachineSpec.newBuilder().build()) + .setDataPersistentDiskSpec(PersistentDiskSpec.newBuilder().build()) + .setNetworkSpec(NetworkSpec.newBuilder().build()) .setIdleShutdownConfig(NotebookIdleShutdownConfig.newBuilder().build()) + .setEucConfig(NotebookEucConfig.newBuilder().build()) + .setShieldedVmConfig(ShieldedVmConfig.newBuilder().build()) .addAllNetworkTags(new ArrayList()) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setSatisfiesPzs(true) @@ -742,7 +747,12 @@ public void assignNotebookRuntimeTest2() throws Exception { .setExpirationTime(Timestamp.newBuilder().build()) .setVersion("version351608024") .setNotebookRuntimeType(NotebookRuntimeType.forNumber(0)) + .setMachineSpec(MachineSpec.newBuilder().build()) + .setDataPersistentDiskSpec(PersistentDiskSpec.newBuilder().build()) + .setNetworkSpec(NetworkSpec.newBuilder().build()) .setIdleShutdownConfig(NotebookIdleShutdownConfig.newBuilder().build()) + .setEucConfig(NotebookEucConfig.newBuilder().build()) + .setShieldedVmConfig(ShieldedVmConfig.newBuilder().build()) .addAllNetworkTags(new ArrayList()) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setSatisfiesPzs(true) @@ -824,7 +834,12 @@ public void assignNotebookRuntimeTest3() throws Exception { .setExpirationTime(Timestamp.newBuilder().build()) .setVersion("version351608024") .setNotebookRuntimeType(NotebookRuntimeType.forNumber(0)) + .setMachineSpec(MachineSpec.newBuilder().build()) + .setDataPersistentDiskSpec(PersistentDiskSpec.newBuilder().build()) + .setNetworkSpec(NetworkSpec.newBuilder().build()) .setIdleShutdownConfig(NotebookIdleShutdownConfig.newBuilder().build()) + .setEucConfig(NotebookEucConfig.newBuilder().build()) + .setShieldedVmConfig(ShieldedVmConfig.newBuilder().build()) .addAllNetworkTags(new ArrayList()) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setSatisfiesPzs(true) @@ -909,7 +924,12 @@ public void assignNotebookRuntimeTest4() throws Exception { .setExpirationTime(Timestamp.newBuilder().build()) .setVersion("version351608024") .setNotebookRuntimeType(NotebookRuntimeType.forNumber(0)) + .setMachineSpec(MachineSpec.newBuilder().build()) + .setDataPersistentDiskSpec(PersistentDiskSpec.newBuilder().build()) + .setNetworkSpec(NetworkSpec.newBuilder().build()) .setIdleShutdownConfig(NotebookIdleShutdownConfig.newBuilder().build()) + .setEucConfig(NotebookEucConfig.newBuilder().build()) + .setShieldedVmConfig(ShieldedVmConfig.newBuilder().build()) .addAllNetworkTags(new ArrayList()) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setSatisfiesPzs(true) @@ -991,7 +1011,12 @@ public void getNotebookRuntimeTest() throws Exception { .setExpirationTime(Timestamp.newBuilder().build()) .setVersion("version351608024") .setNotebookRuntimeType(NotebookRuntimeType.forNumber(0)) + .setMachineSpec(MachineSpec.newBuilder().build()) + .setDataPersistentDiskSpec(PersistentDiskSpec.newBuilder().build()) + .setNetworkSpec(NetworkSpec.newBuilder().build()) .setIdleShutdownConfig(NotebookIdleShutdownConfig.newBuilder().build()) + .setEucConfig(NotebookEucConfig.newBuilder().build()) + .setShieldedVmConfig(ShieldedVmConfig.newBuilder().build()) .addAllNetworkTags(new ArrayList()) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setSatisfiesPzs(true) @@ -1050,7 +1075,12 @@ public void getNotebookRuntimeTest2() throws Exception { .setExpirationTime(Timestamp.newBuilder().build()) .setVersion("version351608024") .setNotebookRuntimeType(NotebookRuntimeType.forNumber(0)) + .setMachineSpec(MachineSpec.newBuilder().build()) + .setDataPersistentDiskSpec(PersistentDiskSpec.newBuilder().build()) + .setNetworkSpec(NetworkSpec.newBuilder().build()) .setIdleShutdownConfig(NotebookIdleShutdownConfig.newBuilder().build()) + .setEucConfig(NotebookEucConfig.newBuilder().build()) + .setShieldedVmConfig(ShieldedVmConfig.newBuilder().build()) .addAllNetworkTags(new ArrayList()) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setSatisfiesPzs(true) diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClientTest.java index 0ecbfe126a70..2bc6503daf21 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClientTest.java @@ -882,6 +882,7 @@ public void countTokensTest() throws Exception { CountTokensResponse.newBuilder() .setTotalTokens(730673909) .setTotalBillableCharacters(1242495501) + .addAllPromptTokensDetails(new ArrayList()) .build(); mockPredictionService.addResponse(expectedResponse); @@ -926,6 +927,7 @@ public void countTokensTest2() throws Exception { CountTokensResponse.newBuilder() .setTotalTokens(730673909) .setTotalBillableCharacters(1242495501) + .addAllPromptTokensDetails(new ArrayList()) .build(); mockPredictionService.addResponse(expectedResponse); diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenAiCacheServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenAiCacheServiceGrpc.java new file mode 100644 index 000000000000..b8b744523395 --- /dev/null +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenAiCacheServiceGrpc.java @@ -0,0 +1,868 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.aiplatform.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Service for managing Vertex AI's CachedContent resource.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/aiplatform/v1/gen_ai_cache_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class GenAiCacheServiceGrpc { + + private GenAiCacheServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.aiplatform.v1.GenAiCacheService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.CreateCachedContentRequest, + com.google.cloud.aiplatform.v1.CachedContent> + getCreateCachedContentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCachedContent", + requestType = com.google.cloud.aiplatform.v1.CreateCachedContentRequest.class, + responseType = com.google.cloud.aiplatform.v1.CachedContent.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.CreateCachedContentRequest, + com.google.cloud.aiplatform.v1.CachedContent> + getCreateCachedContentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.CreateCachedContentRequest, + com.google.cloud.aiplatform.v1.CachedContent> + getCreateCachedContentMethod; + if ((getCreateCachedContentMethod = GenAiCacheServiceGrpc.getCreateCachedContentMethod) + == null) { + synchronized (GenAiCacheServiceGrpc.class) { + if ((getCreateCachedContentMethod = GenAiCacheServiceGrpc.getCreateCachedContentMethod) + == null) { + GenAiCacheServiceGrpc.getCreateCachedContentMethod = + getCreateCachedContentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateCachedContent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.CreateCachedContentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.CachedContent.getDefaultInstance())) + .setSchemaDescriptor( + new GenAiCacheServiceMethodDescriptorSupplier("CreateCachedContent")) + .build(); + } + } + } + return getCreateCachedContentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.GetCachedContentRequest, + com.google.cloud.aiplatform.v1.CachedContent> + getGetCachedContentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCachedContent", + requestType = com.google.cloud.aiplatform.v1.GetCachedContentRequest.class, + responseType = com.google.cloud.aiplatform.v1.CachedContent.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.GetCachedContentRequest, + com.google.cloud.aiplatform.v1.CachedContent> + getGetCachedContentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.GetCachedContentRequest, + com.google.cloud.aiplatform.v1.CachedContent> + getGetCachedContentMethod; + if ((getGetCachedContentMethod = GenAiCacheServiceGrpc.getGetCachedContentMethod) == null) { + synchronized (GenAiCacheServiceGrpc.class) { + if ((getGetCachedContentMethod = GenAiCacheServiceGrpc.getGetCachedContentMethod) == null) { + GenAiCacheServiceGrpc.getGetCachedContentMethod = + getGetCachedContentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCachedContent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.GetCachedContentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.CachedContent.getDefaultInstance())) + .setSchemaDescriptor( + new GenAiCacheServiceMethodDescriptorSupplier("GetCachedContent")) + .build(); + } + } + } + return getGetCachedContentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.UpdateCachedContentRequest, + com.google.cloud.aiplatform.v1.CachedContent> + getUpdateCachedContentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCachedContent", + requestType = com.google.cloud.aiplatform.v1.UpdateCachedContentRequest.class, + responseType = com.google.cloud.aiplatform.v1.CachedContent.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.UpdateCachedContentRequest, + com.google.cloud.aiplatform.v1.CachedContent> + getUpdateCachedContentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.UpdateCachedContentRequest, + com.google.cloud.aiplatform.v1.CachedContent> + getUpdateCachedContentMethod; + if ((getUpdateCachedContentMethod = GenAiCacheServiceGrpc.getUpdateCachedContentMethod) + == null) { + synchronized (GenAiCacheServiceGrpc.class) { + if ((getUpdateCachedContentMethod = GenAiCacheServiceGrpc.getUpdateCachedContentMethod) + == null) { + GenAiCacheServiceGrpc.getUpdateCachedContentMethod = + getUpdateCachedContentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateCachedContent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.UpdateCachedContentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.CachedContent.getDefaultInstance())) + .setSchemaDescriptor( + new GenAiCacheServiceMethodDescriptorSupplier("UpdateCachedContent")) + .build(); + } + } + } + return getUpdateCachedContentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.DeleteCachedContentRequest, com.google.protobuf.Empty> + getDeleteCachedContentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteCachedContent", + requestType = com.google.cloud.aiplatform.v1.DeleteCachedContentRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.DeleteCachedContentRequest, com.google.protobuf.Empty> + getDeleteCachedContentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.DeleteCachedContentRequest, com.google.protobuf.Empty> + getDeleteCachedContentMethod; + if ((getDeleteCachedContentMethod = GenAiCacheServiceGrpc.getDeleteCachedContentMethod) + == null) { + synchronized (GenAiCacheServiceGrpc.class) { + if ((getDeleteCachedContentMethod = GenAiCacheServiceGrpc.getDeleteCachedContentMethod) + == null) { + GenAiCacheServiceGrpc.getDeleteCachedContentMethod = + getDeleteCachedContentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteCachedContent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.DeleteCachedContentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new GenAiCacheServiceMethodDescriptorSupplier("DeleteCachedContent")) + .build(); + } + } + } + return getDeleteCachedContentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.ListCachedContentsRequest, + com.google.cloud.aiplatform.v1.ListCachedContentsResponse> + getListCachedContentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCachedContents", + requestType = com.google.cloud.aiplatform.v1.ListCachedContentsRequest.class, + responseType = com.google.cloud.aiplatform.v1.ListCachedContentsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.ListCachedContentsRequest, + com.google.cloud.aiplatform.v1.ListCachedContentsResponse> + getListCachedContentsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.ListCachedContentsRequest, + com.google.cloud.aiplatform.v1.ListCachedContentsResponse> + getListCachedContentsMethod; + if ((getListCachedContentsMethod = GenAiCacheServiceGrpc.getListCachedContentsMethod) == null) { + synchronized (GenAiCacheServiceGrpc.class) { + if ((getListCachedContentsMethod = GenAiCacheServiceGrpc.getListCachedContentsMethod) + == null) { + GenAiCacheServiceGrpc.getListCachedContentsMethod = + getListCachedContentsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCachedContents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.ListCachedContentsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.ListCachedContentsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new GenAiCacheServiceMethodDescriptorSupplier("ListCachedContents")) + .build(); + } + } + } + return getListCachedContentsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static GenAiCacheServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GenAiCacheServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GenAiCacheServiceStub(channel, callOptions); + } + }; + return GenAiCacheServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static GenAiCacheServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GenAiCacheServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GenAiCacheServiceBlockingStub(channel, callOptions); + } + }; + return GenAiCacheServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static GenAiCacheServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GenAiCacheServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GenAiCacheServiceFutureStub(channel, callOptions); + } + }; + return GenAiCacheServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service for managing Vertex AI's CachedContent resource.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Creates cached content, this call will initialize the cached content in the
+     * data storage, and users need to pay for the cache data storage.
+     * 
+ */ + default void createCachedContent( + com.google.cloud.aiplatform.v1.CreateCachedContentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateCachedContentMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets cached content configurations
+     * 
+ */ + default void getCachedContent( + com.google.cloud.aiplatform.v1.GetCachedContentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetCachedContentMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates cached content configurations
+     * 
+ */ + default void updateCachedContent( + com.google.cloud.aiplatform.v1.UpdateCachedContentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateCachedContentMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes cached content
+     * 
+ */ + default void deleteCachedContent( + com.google.cloud.aiplatform.v1.DeleteCachedContentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteCachedContentMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists cached contents in a project
+     * 
+ */ + default void listCachedContents( + com.google.cloud.aiplatform.v1.ListCachedContentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCachedContentsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service GenAiCacheService. + * + *
+   * Service for managing Vertex AI's CachedContent resource.
+   * 
+ */ + public abstract static class GenAiCacheServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return GenAiCacheServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service GenAiCacheService. + * + *
+   * Service for managing Vertex AI's CachedContent resource.
+   * 
+ */ + public static final class GenAiCacheServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private GenAiCacheServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GenAiCacheServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GenAiCacheServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates cached content, this call will initialize the cached content in the
+     * data storage, and users need to pay for the cache data storage.
+     * 
+ */ + public void createCachedContent( + com.google.cloud.aiplatform.v1.CreateCachedContentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCachedContentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets cached content configurations
+     * 
+ */ + public void getCachedContent( + com.google.cloud.aiplatform.v1.GetCachedContentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCachedContentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates cached content configurations
+     * 
+ */ + public void updateCachedContent( + com.google.cloud.aiplatform.v1.UpdateCachedContentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCachedContentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes cached content
+     * 
+ */ + public void deleteCachedContent( + com.google.cloud.aiplatform.v1.DeleteCachedContentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteCachedContentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists cached contents in a project
+     * 
+ */ + public void listCachedContents( + com.google.cloud.aiplatform.v1.ListCachedContentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCachedContentsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service GenAiCacheService. + * + *
+   * Service for managing Vertex AI's CachedContent resource.
+   * 
+ */ + public static final class GenAiCacheServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private GenAiCacheServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GenAiCacheServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GenAiCacheServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates cached content, this call will initialize the cached content in the
+     * data storage, and users need to pay for the cache data storage.
+     * 
+ */ + public com.google.cloud.aiplatform.v1.CachedContent createCachedContent( + com.google.cloud.aiplatform.v1.CreateCachedContentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCachedContentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets cached content configurations
+     * 
+ */ + public com.google.cloud.aiplatform.v1.CachedContent getCachedContent( + com.google.cloud.aiplatform.v1.GetCachedContentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCachedContentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates cached content configurations
+     * 
+ */ + public com.google.cloud.aiplatform.v1.CachedContent updateCachedContent( + com.google.cloud.aiplatform.v1.UpdateCachedContentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCachedContentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes cached content
+     * 
+ */ + public com.google.protobuf.Empty deleteCachedContent( + com.google.cloud.aiplatform.v1.DeleteCachedContentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCachedContentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists cached contents in a project
+     * 
+ */ + public com.google.cloud.aiplatform.v1.ListCachedContentsResponse listCachedContents( + com.google.cloud.aiplatform.v1.ListCachedContentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCachedContentsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service GenAiCacheService. + * + *
+   * Service for managing Vertex AI's CachedContent resource.
+   * 
+ */ + public static final class GenAiCacheServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private GenAiCacheServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GenAiCacheServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GenAiCacheServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates cached content, this call will initialize the cached content in the
+     * data storage, and users need to pay for the cache data storage.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1.CachedContent> + createCachedContent(com.google.cloud.aiplatform.v1.CreateCachedContentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCachedContentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets cached content configurations
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1.CachedContent> + getCachedContent(com.google.cloud.aiplatform.v1.GetCachedContentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCachedContentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates cached content configurations
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1.CachedContent> + updateCachedContent(com.google.cloud.aiplatform.v1.UpdateCachedContentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCachedContentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes cached content
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteCachedContent(com.google.cloud.aiplatform.v1.DeleteCachedContentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteCachedContentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists cached contents in a project
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1.ListCachedContentsResponse> + listCachedContents(com.google.cloud.aiplatform.v1.ListCachedContentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCachedContentsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_CACHED_CONTENT = 0; + private static final int METHODID_GET_CACHED_CONTENT = 1; + private static final int METHODID_UPDATE_CACHED_CONTENT = 2; + private static final int METHODID_DELETE_CACHED_CONTENT = 3; + private static final int METHODID_LIST_CACHED_CONTENTS = 4; + + 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_CACHED_CONTENT: + serviceImpl.createCachedContent( + (com.google.cloud.aiplatform.v1.CreateCachedContentRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_CACHED_CONTENT: + serviceImpl.getCachedContent( + (com.google.cloud.aiplatform.v1.GetCachedContentRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_CACHED_CONTENT: + serviceImpl.updateCachedContent( + (com.google.cloud.aiplatform.v1.UpdateCachedContentRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_CACHED_CONTENT: + serviceImpl.deleteCachedContent( + (com.google.cloud.aiplatform.v1.DeleteCachedContentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CACHED_CONTENTS: + serviceImpl.listCachedContents( + (com.google.cloud.aiplatform.v1.ListCachedContentsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1.ListCachedContentsResponse>) + 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( + getCreateCachedContentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.CreateCachedContentRequest, + com.google.cloud.aiplatform.v1.CachedContent>( + service, METHODID_CREATE_CACHED_CONTENT))) + .addMethod( + getGetCachedContentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.GetCachedContentRequest, + com.google.cloud.aiplatform.v1.CachedContent>( + service, METHODID_GET_CACHED_CONTENT))) + .addMethod( + getUpdateCachedContentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.UpdateCachedContentRequest, + com.google.cloud.aiplatform.v1.CachedContent>( + service, METHODID_UPDATE_CACHED_CONTENT))) + .addMethod( + getDeleteCachedContentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.DeleteCachedContentRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_CACHED_CONTENT))) + .addMethod( + getListCachedContentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.ListCachedContentsRequest, + com.google.cloud.aiplatform.v1.ListCachedContentsResponse>( + service, METHODID_LIST_CACHED_CONTENTS))) + .build(); + } + + private abstract static class GenAiCacheServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + GenAiCacheServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.aiplatform.v1.GenAiCacheServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("GenAiCacheService"); + } + } + + private static final class GenAiCacheServiceFileDescriptorSupplier + extends GenAiCacheServiceBaseDescriptorSupplier { + GenAiCacheServiceFileDescriptorSupplier() {} + } + + private static final class GenAiCacheServiceMethodDescriptorSupplier + extends GenAiCacheServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + GenAiCacheServiceMethodDescriptorSupplier(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 (GenAiCacheServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new GenAiCacheServiceFileDescriptorSupplier()) + .addMethod(getCreateCachedContentMethod()) + .addMethod(getGetCachedContentMethod()) + .addMethod(getUpdateCachedContentMethod()) + .addMethod(getDeleteCachedContentMethod()) + .addMethod(getListCachedContentsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceGrpc.java index 0ac1ea4b1394..e8539515402f 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceGrpc.java @@ -211,6 +211,58 @@ private ModelServiceGrpc() {} return getListModelVersionsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest, + com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse> + getListModelVersionCheckpointsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListModelVersionCheckpoints", + requestType = com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest.class, + responseType = com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest, + com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse> + getListModelVersionCheckpointsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest, + com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse> + getListModelVersionCheckpointsMethod; + if ((getListModelVersionCheckpointsMethod = + ModelServiceGrpc.getListModelVersionCheckpointsMethod) + == null) { + synchronized (ModelServiceGrpc.class) { + if ((getListModelVersionCheckpointsMethod = + ModelServiceGrpc.getListModelVersionCheckpointsMethod) + == null) { + ModelServiceGrpc.getListModelVersionCheckpointsMethod = + getListModelVersionCheckpointsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListModelVersionCheckpoints")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ModelServiceMethodDescriptorSupplier("ListModelVersionCheckpoints")) + .build(); + } + } + } + return getListModelVersionCheckpointsMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.aiplatform.v1.UpdateModelRequest, com.google.cloud.aiplatform.v1.Model> getUpdateModelMethod; @@ -978,6 +1030,22 @@ default void listModelVersions( getListModelVersionsMethod(), responseObserver); } + /** + * + * + *
+     * Lists checkpoints of the specified model version.
+     * 
+ */ + default void listModelVersionCheckpoints( + com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListModelVersionCheckpointsMethod(), responseObserver); + } + /** * * @@ -1299,6 +1367,24 @@ public void listModelVersions( responseObserver); } + /** + * + * + *
+     * Lists checkpoints of the specified model version.
+     * 
+ */ + public void listModelVersionCheckpoints( + com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListModelVersionCheckpointsMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1622,6 +1708,20 @@ public com.google.cloud.aiplatform.v1.ListModelVersionsResponse listModelVersion getChannel(), getListModelVersionsMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Lists checkpoints of the specified model version.
+     * 
+ */ + public com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse + listModelVersionCheckpoints( + com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListModelVersionCheckpointsMethod(), getCallOptions(), request); + } + /** * * @@ -1900,6 +2000,21 @@ protected ModelServiceFutureStub build( getChannel().newCall(getListModelVersionsMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Lists checkpoints of the specified model version.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse> + listModelVersionCheckpoints( + com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListModelVersionCheckpointsMethod(), getCallOptions()), request); + } + /** * * @@ -2120,20 +2235,21 @@ protected ModelServiceFutureStub build( private static final int METHODID_GET_MODEL = 1; private static final int METHODID_LIST_MODELS = 2; private static final int METHODID_LIST_MODEL_VERSIONS = 3; - private static final int METHODID_UPDATE_MODEL = 4; - private static final int METHODID_UPDATE_EXPLANATION_DATASET = 5; - private static final int METHODID_DELETE_MODEL = 6; - private static final int METHODID_DELETE_MODEL_VERSION = 7; - private static final int METHODID_MERGE_VERSION_ALIASES = 8; - private static final int METHODID_EXPORT_MODEL = 9; - private static final int METHODID_COPY_MODEL = 10; - private static final int METHODID_IMPORT_MODEL_EVALUATION = 11; - private static final int METHODID_BATCH_IMPORT_MODEL_EVALUATION_SLICES = 12; - private static final int METHODID_BATCH_IMPORT_EVALUATED_ANNOTATIONS = 13; - private static final int METHODID_GET_MODEL_EVALUATION = 14; - private static final int METHODID_LIST_MODEL_EVALUATIONS = 15; - private static final int METHODID_GET_MODEL_EVALUATION_SLICE = 16; - private static final int METHODID_LIST_MODEL_EVALUATION_SLICES = 17; + private static final int METHODID_LIST_MODEL_VERSION_CHECKPOINTS = 4; + private static final int METHODID_UPDATE_MODEL = 5; + private static final int METHODID_UPDATE_EXPLANATION_DATASET = 6; + private static final int METHODID_DELETE_MODEL = 7; + private static final int METHODID_DELETE_MODEL_VERSION = 8; + private static final int METHODID_MERGE_VERSION_ALIASES = 9; + private static final int METHODID_EXPORT_MODEL = 10; + private static final int METHODID_COPY_MODEL = 11; + private static final int METHODID_IMPORT_MODEL_EVALUATION = 12; + private static final int METHODID_BATCH_IMPORT_MODEL_EVALUATION_SLICES = 13; + private static final int METHODID_BATCH_IMPORT_EVALUATED_ANNOTATIONS = 14; + private static final int METHODID_GET_MODEL_EVALUATION = 15; + private static final int METHODID_LIST_MODEL_EVALUATIONS = 16; + private static final int METHODID_GET_MODEL_EVALUATION_SLICE = 17; + private static final int METHODID_LIST_MODEL_EVALUATION_SLICES = 18; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -2175,6 +2291,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.aiplatform.v1.ListModelVersionsResponse>) responseObserver); break; + case METHODID_LIST_MODEL_VERSION_CHECKPOINTS: + serviceImpl.listModelVersionCheckpoints( + (com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse>) + responseObserver); + break; case METHODID_UPDATE_MODEL: serviceImpl.updateModel( (com.google.cloud.aiplatform.v1.UpdateModelRequest) request, @@ -2300,6 +2423,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.aiplatform.v1.ListModelVersionsRequest, com.google.cloud.aiplatform.v1.ListModelVersionsResponse>( service, METHODID_LIST_MODEL_VERSIONS))) + .addMethod( + getListModelVersionCheckpointsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest, + com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse>( + service, METHODID_LIST_MODEL_VERSION_CHECKPOINTS))) .addMethod( getUpdateModelMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -2447,6 +2577,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetModelMethod()) .addMethod(getListModelsMethod()) .addMethod(getListModelVersionsMethod()) + .addMethod(getListModelVersionCheckpointsMethod()) .addMethod(getUpdateModelMethod()) .addMethod(getUpdateExplanationDatasetMethod()) .addMethod(getDeleteModelMethod()) diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceGrpc.java new file mode 100644 index 000000000000..a9470ca7e0cb --- /dev/null +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceGrpc.java @@ -0,0 +1,500 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.aiplatform.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * A service for executing queries on Reasoning Engine.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/aiplatform/v1/reasoning_engine_execution_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ReasoningEngineExecutionServiceGrpc { + + private ReasoningEngineExecutionServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.aiplatform.v1.ReasoningEngineExecutionService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest, + com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse> + getQueryReasoningEngineMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "QueryReasoningEngine", + requestType = com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest.class, + responseType = com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest, + com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse> + getQueryReasoningEngineMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest, + com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse> + getQueryReasoningEngineMethod; + if ((getQueryReasoningEngineMethod = + ReasoningEngineExecutionServiceGrpc.getQueryReasoningEngineMethod) + == null) { + synchronized (ReasoningEngineExecutionServiceGrpc.class) { + if ((getQueryReasoningEngineMethod = + ReasoningEngineExecutionServiceGrpc.getQueryReasoningEngineMethod) + == null) { + ReasoningEngineExecutionServiceGrpc.getQueryReasoningEngineMethod = + getQueryReasoningEngineMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "QueryReasoningEngine")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ReasoningEngineExecutionServiceMethodDescriptorSupplier( + "QueryReasoningEngine")) + .build(); + } + } + } + return getQueryReasoningEngineMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest, com.google.api.HttpBody> + getStreamQueryReasoningEngineMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StreamQueryReasoningEngine", + requestType = com.google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest.class, + responseType = com.google.api.HttpBody.class, + methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest, com.google.api.HttpBody> + getStreamQueryReasoningEngineMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.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.v1.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 = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ReasoningEngineExecutionServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ReasoningEngineExecutionServiceStub(channel, callOptions); + } + }; + return ReasoningEngineExecutionServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ReasoningEngineExecutionServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ReasoningEngineExecutionServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ReasoningEngineExecutionServiceBlockingStub(channel, callOptions); + } + }; + return ReasoningEngineExecutionServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static ReasoningEngineExecutionServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ReasoningEngineExecutionServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ReasoningEngineExecutionServiceFutureStub(channel, callOptions); + } + }; + return ReasoningEngineExecutionServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * A service for executing queries on Reasoning Engine.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Queries using a reasoning engine.
+     * 
+ */ + default void queryReasoningEngine( + com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getQueryReasoningEngineMethod(), responseObserver); + } + + /** + * + * + *
+     * Streams queries using a reasoning engine.
+     * 
+ */ + default void streamQueryReasoningEngine( + com.google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStreamQueryReasoningEngineMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service ReasoningEngineExecutionService. + * + *
+   * A service for executing queries on Reasoning Engine.
+   * 
+ */ + public abstract static class ReasoningEngineExecutionServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return ReasoningEngineExecutionServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service + * ReasoningEngineExecutionService. + * + *
+   * A service for executing queries on Reasoning Engine.
+   * 
+ */ + public static final class ReasoningEngineExecutionServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private ReasoningEngineExecutionServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ReasoningEngineExecutionServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ReasoningEngineExecutionServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Queries using a reasoning engine.
+     * 
+ */ + public void queryReasoningEngine( + com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getQueryReasoningEngineMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Streams queries using a reasoning engine.
+     * 
+ */ + public void streamQueryReasoningEngine( + com.google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncServerStreamingCall( + getChannel().newCall(getStreamQueryReasoningEngineMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service ReasoningEngineExecutionService. + * + *
+   * A service for executing queries on Reasoning Engine.
+   * 
+ */ + public static final class ReasoningEngineExecutionServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ReasoningEngineExecutionServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ReasoningEngineExecutionServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ReasoningEngineExecutionServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Queries using a reasoning engine.
+     * 
+ */ + public com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse queryReasoningEngine( + com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest request) { + 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.v1.StreamQueryReasoningEngineRequest request) { + return io.grpc.stub.ClientCalls.blockingServerStreamingCall( + getChannel(), getStreamQueryReasoningEngineMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * ReasoningEngineExecutionService. + * + *
+   * A service for executing queries on Reasoning Engine.
+   * 
+ */ + public static final class ReasoningEngineExecutionServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ReasoningEngineExecutionServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ReasoningEngineExecutionServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ReasoningEngineExecutionServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Queries using a reasoning engine.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse> + queryReasoningEngine(com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getQueryReasoningEngineMethod(), getCallOptions()), request); + } + } + + 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, + 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_QUERY_REASONING_ENGINE: + serviceImpl.queryReasoningEngine( + (com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse>) + responseObserver); + break; + case METHODID_STREAM_QUERY_REASONING_ENGINE: + serviceImpl.streamQueryReasoningEngine( + (com.google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest) 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( + getQueryReasoningEngineMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest, + com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse>( + service, METHODID_QUERY_REASONING_ENGINE))) + .addMethod( + getStreamQueryReasoningEngineMethod(), + io.grpc.stub.ServerCalls.asyncServerStreamingCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest, + com.google.api.HttpBody>(service, METHODID_STREAM_QUERY_REASONING_ENGINE))) + .build(); + } + + private abstract static class ReasoningEngineExecutionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ReasoningEngineExecutionServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ReasoningEngineExecutionService"); + } + } + + private static final class ReasoningEngineExecutionServiceFileDescriptorSupplier + extends ReasoningEngineExecutionServiceBaseDescriptorSupplier { + ReasoningEngineExecutionServiceFileDescriptorSupplier() {} + } + + private static final class ReasoningEngineExecutionServiceMethodDescriptorSupplier + extends ReasoningEngineExecutionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + ReasoningEngineExecutionServiceMethodDescriptorSupplier(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 (ReasoningEngineExecutionServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor( + new ReasoningEngineExecutionServiceFileDescriptorSupplier()) + .addMethod(getQueryReasoningEngineMethod()) + .addMethod(getStreamQueryReasoningEngineMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineServiceGrpc.java new file mode 100644 index 000000000000..e4c4f1230c76 --- /dev/null +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineServiceGrpc.java @@ -0,0 +1,871 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.aiplatform.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * A service for managing Vertex AI's Reasoning Engines.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/aiplatform/v1/reasoning_engine_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ReasoningEngineServiceGrpc { + + private ReasoningEngineServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.aiplatform.v1.ReasoningEngineService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest, + com.google.longrunning.Operation> + getCreateReasoningEngineMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateReasoningEngine", + requestType = com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest, + com.google.longrunning.Operation> + getCreateReasoningEngineMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest, + com.google.longrunning.Operation> + getCreateReasoningEngineMethod; + if ((getCreateReasoningEngineMethod = ReasoningEngineServiceGrpc.getCreateReasoningEngineMethod) + == null) { + synchronized (ReasoningEngineServiceGrpc.class) { + if ((getCreateReasoningEngineMethod = + ReasoningEngineServiceGrpc.getCreateReasoningEngineMethod) + == null) { + ReasoningEngineServiceGrpc.getCreateReasoningEngineMethod = + getCreateReasoningEngineMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateReasoningEngine")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ReasoningEngineServiceMethodDescriptorSupplier( + "CreateReasoningEngine")) + .build(); + } + } + } + return getCreateReasoningEngineMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.GetReasoningEngineRequest, + com.google.cloud.aiplatform.v1.ReasoningEngine> + getGetReasoningEngineMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetReasoningEngine", + requestType = com.google.cloud.aiplatform.v1.GetReasoningEngineRequest.class, + responseType = com.google.cloud.aiplatform.v1.ReasoningEngine.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.GetReasoningEngineRequest, + com.google.cloud.aiplatform.v1.ReasoningEngine> + getGetReasoningEngineMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.GetReasoningEngineRequest, + com.google.cloud.aiplatform.v1.ReasoningEngine> + getGetReasoningEngineMethod; + if ((getGetReasoningEngineMethod = ReasoningEngineServiceGrpc.getGetReasoningEngineMethod) + == null) { + synchronized (ReasoningEngineServiceGrpc.class) { + if ((getGetReasoningEngineMethod = ReasoningEngineServiceGrpc.getGetReasoningEngineMethod) + == null) { + ReasoningEngineServiceGrpc.getGetReasoningEngineMethod = + getGetReasoningEngineMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetReasoningEngine")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.GetReasoningEngineRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.ReasoningEngine.getDefaultInstance())) + .setSchemaDescriptor( + new ReasoningEngineServiceMethodDescriptorSupplier("GetReasoningEngine")) + .build(); + } + } + } + return getGetReasoningEngineMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest, + com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse> + getListReasoningEnginesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListReasoningEngines", + requestType = com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest.class, + responseType = com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest, + com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse> + getListReasoningEnginesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest, + com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse> + getListReasoningEnginesMethod; + if ((getListReasoningEnginesMethod = ReasoningEngineServiceGrpc.getListReasoningEnginesMethod) + == null) { + synchronized (ReasoningEngineServiceGrpc.class) { + if ((getListReasoningEnginesMethod = + ReasoningEngineServiceGrpc.getListReasoningEnginesMethod) + == null) { + ReasoningEngineServiceGrpc.getListReasoningEnginesMethod = + getListReasoningEnginesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListReasoningEngines")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ReasoningEngineServiceMethodDescriptorSupplier( + "ListReasoningEngines")) + .build(); + } + } + } + return getListReasoningEnginesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest, + com.google.longrunning.Operation> + getUpdateReasoningEngineMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateReasoningEngine", + requestType = com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest, + com.google.longrunning.Operation> + getUpdateReasoningEngineMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest, + com.google.longrunning.Operation> + getUpdateReasoningEngineMethod; + if ((getUpdateReasoningEngineMethod = ReasoningEngineServiceGrpc.getUpdateReasoningEngineMethod) + == null) { + synchronized (ReasoningEngineServiceGrpc.class) { + if ((getUpdateReasoningEngineMethod = + ReasoningEngineServiceGrpc.getUpdateReasoningEngineMethod) + == null) { + ReasoningEngineServiceGrpc.getUpdateReasoningEngineMethod = + getUpdateReasoningEngineMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateReasoningEngine")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ReasoningEngineServiceMethodDescriptorSupplier( + "UpdateReasoningEngine")) + .build(); + } + } + } + return getUpdateReasoningEngineMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest, + com.google.longrunning.Operation> + getDeleteReasoningEngineMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteReasoningEngine", + requestType = com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest, + com.google.longrunning.Operation> + getDeleteReasoningEngineMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest, + com.google.longrunning.Operation> + getDeleteReasoningEngineMethod; + if ((getDeleteReasoningEngineMethod = ReasoningEngineServiceGrpc.getDeleteReasoningEngineMethod) + == null) { + synchronized (ReasoningEngineServiceGrpc.class) { + if ((getDeleteReasoningEngineMethod = + ReasoningEngineServiceGrpc.getDeleteReasoningEngineMethod) + == null) { + ReasoningEngineServiceGrpc.getDeleteReasoningEngineMethod = + getDeleteReasoningEngineMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteReasoningEngine")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ReasoningEngineServiceMethodDescriptorSupplier( + "DeleteReasoningEngine")) + .build(); + } + } + } + return getDeleteReasoningEngineMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static ReasoningEngineServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ReasoningEngineServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ReasoningEngineServiceStub(channel, callOptions); + } + }; + return ReasoningEngineServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ReasoningEngineServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ReasoningEngineServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ReasoningEngineServiceBlockingStub(channel, callOptions); + } + }; + return ReasoningEngineServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static ReasoningEngineServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ReasoningEngineServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ReasoningEngineServiceFutureStub(channel, callOptions); + } + }; + return ReasoningEngineServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * A service for managing Vertex AI's Reasoning Engines.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Creates a reasoning engine.
+     * 
+ */ + default void createReasoningEngine( + com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateReasoningEngineMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a reasoning engine.
+     * 
+ */ + default void getReasoningEngine( + com.google.cloud.aiplatform.v1.GetReasoningEngineRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetReasoningEngineMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists reasoning engines in a location.
+     * 
+ */ + default void listReasoningEngines( + com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListReasoningEnginesMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a reasoning engine.
+     * 
+ */ + default void updateReasoningEngine( + com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateReasoningEngineMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a reasoning engine.
+     * 
+ */ + default void deleteReasoningEngine( + com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteReasoningEngineMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service ReasoningEngineService. + * + *
+   * A service for managing Vertex AI's Reasoning Engines.
+   * 
+ */ + public abstract static class ReasoningEngineServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return ReasoningEngineServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service ReasoningEngineService. + * + *
+   * A service for managing Vertex AI's Reasoning Engines.
+   * 
+ */ + public static final class ReasoningEngineServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private ReasoningEngineServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ReasoningEngineServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ReasoningEngineServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a reasoning engine.
+     * 
+ */ + public void createReasoningEngine( + com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateReasoningEngineMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a reasoning engine.
+     * 
+ */ + public void getReasoningEngine( + com.google.cloud.aiplatform.v1.GetReasoningEngineRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetReasoningEngineMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists reasoning engines in a location.
+     * 
+ */ + public void listReasoningEngines( + com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListReasoningEnginesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a reasoning engine.
+     * 
+ */ + public void updateReasoningEngine( + com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateReasoningEngineMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a reasoning engine.
+     * 
+ */ + public void deleteReasoningEngine( + com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteReasoningEngineMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service ReasoningEngineService. + * + *
+   * A service for managing Vertex AI's Reasoning Engines.
+   * 
+ */ + public static final class ReasoningEngineServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ReasoningEngineServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ReasoningEngineServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ReasoningEngineServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a reasoning engine.
+     * 
+ */ + public com.google.longrunning.Operation createReasoningEngine( + com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateReasoningEngineMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a reasoning engine.
+     * 
+ */ + public com.google.cloud.aiplatform.v1.ReasoningEngine getReasoningEngine( + com.google.cloud.aiplatform.v1.GetReasoningEngineRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetReasoningEngineMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists reasoning engines in a location.
+     * 
+ */ + public com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse listReasoningEngines( + com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListReasoningEnginesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a reasoning engine.
+     * 
+ */ + public com.google.longrunning.Operation updateReasoningEngine( + com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateReasoningEngineMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a reasoning engine.
+     * 
+ */ + public com.google.longrunning.Operation deleteReasoningEngine( + com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteReasoningEngineMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * ReasoningEngineService. + * + *
+   * A service for managing Vertex AI's Reasoning Engines.
+   * 
+ */ + public static final class ReasoningEngineServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ReasoningEngineServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ReasoningEngineServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ReasoningEngineServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a reasoning engine.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createReasoningEngine(com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateReasoningEngineMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a reasoning engine.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1.ReasoningEngine> + getReasoningEngine(com.google.cloud.aiplatform.v1.GetReasoningEngineRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetReasoningEngineMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists reasoning engines in a location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse> + listReasoningEngines(com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListReasoningEnginesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a reasoning engine.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateReasoningEngine(com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateReasoningEngineMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a reasoning engine.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteReasoningEngine(com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteReasoningEngineMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_REASONING_ENGINE = 0; + private static final int METHODID_GET_REASONING_ENGINE = 1; + private static final int METHODID_LIST_REASONING_ENGINES = 2; + private static final int METHODID_UPDATE_REASONING_ENGINE = 3; + private static final int METHODID_DELETE_REASONING_ENGINE = 4; + + 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_REASONING_ENGINE: + serviceImpl.createReasoningEngine( + (com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_REASONING_ENGINE: + serviceImpl.getReasoningEngine( + (com.google.cloud.aiplatform.v1.GetReasoningEngineRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_REASONING_ENGINES: + serviceImpl.listReasoningEngines( + (com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse>) + responseObserver); + break; + case METHODID_UPDATE_REASONING_ENGINE: + serviceImpl.updateReasoningEngine( + (com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_REASONING_ENGINE: + serviceImpl.deleteReasoningEngine( + (com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest) 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( + getCreateReasoningEngineMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_REASONING_ENGINE))) + .addMethod( + getGetReasoningEngineMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.GetReasoningEngineRequest, + com.google.cloud.aiplatform.v1.ReasoningEngine>( + service, METHODID_GET_REASONING_ENGINE))) + .addMethod( + getListReasoningEnginesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest, + com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse>( + service, METHODID_LIST_REASONING_ENGINES))) + .addMethod( + getUpdateReasoningEngineMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_REASONING_ENGINE))) + .addMethod( + getDeleteReasoningEngineMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_REASONING_ENGINE))) + .build(); + } + + private abstract static class ReasoningEngineServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ReasoningEngineServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ReasoningEngineService"); + } + } + + private static final class ReasoningEngineServiceFileDescriptorSupplier + extends ReasoningEngineServiceBaseDescriptorSupplier { + ReasoningEngineServiceFileDescriptorSupplier() {} + } + + private static final class ReasoningEngineServiceMethodDescriptorSupplier + extends ReasoningEngineServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + ReasoningEngineServiceMethodDescriptorSupplier(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 (ReasoningEngineServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ReasoningEngineServiceFileDescriptorSupplier()) + .addMethod(getCreateReasoningEngineMethod()) + .addMethod(getGetReasoningEngineMethod()) + .addMethod(getListReasoningEnginesMethod()) + .addMethod(getUpdateReasoningEngineMethod()) + .addMethod(getDeleteReasoningEngineMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureRegistryServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureRegistryServiceGrpc.java index 82d6e950a610..206811dea56b 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureRegistryServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureRegistryServiceGrpc.java @@ -708,6 +708,57 @@ private FeatureRegistryServiceGrpc() {} return getListFeatureMonitorsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest, + com.google.longrunning.Operation> + getUpdateFeatureMonitorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateFeatureMonitor", + requestType = com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest, + com.google.longrunning.Operation> + getUpdateFeatureMonitorMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest, + com.google.longrunning.Operation> + getUpdateFeatureMonitorMethod; + if ((getUpdateFeatureMonitorMethod = FeatureRegistryServiceGrpc.getUpdateFeatureMonitorMethod) + == null) { + synchronized (FeatureRegistryServiceGrpc.class) { + if ((getUpdateFeatureMonitorMethod = + FeatureRegistryServiceGrpc.getUpdateFeatureMonitorMethod) + == null) { + FeatureRegistryServiceGrpc.getUpdateFeatureMonitorMethod = + getUpdateFeatureMonitorMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateFeatureMonitor")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new FeatureRegistryServiceMethodDescriptorSupplier( + "UpdateFeatureMonitor")) + .build(); + } + } + } + return getUpdateFeatureMonitorMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest, com.google.longrunning.Operation> @@ -1168,6 +1219,20 @@ default void listFeatureMonitors( getListFeatureMonitorsMethod(), responseObserver); } + /** + * + * + *
+     * Updates the parameters of a single FeatureMonitor.
+     * 
+ */ + default void updateFeatureMonitor( + com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateFeatureMonitorMethod(), responseObserver); + } + /** * * @@ -1493,6 +1558,22 @@ public void listFeatureMonitors( responseObserver); } + /** + * + * + *
+     * Updates the parameters of a single FeatureMonitor.
+     * 
+ */ + public void updateFeatureMonitor( + com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateFeatureMonitorMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1765,6 +1846,19 @@ public com.google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse listFeatu getChannel(), getListFeatureMonitorsMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Updates the parameters of a single FeatureMonitor.
+     * 
+ */ + public com.google.longrunning.Operation updateFeatureMonitor( + com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateFeatureMonitorMethod(), getCallOptions(), request); + } + /** * * @@ -2032,6 +2126,20 @@ protected FeatureRegistryServiceFutureStub build( getChannel().newCall(getListFeatureMonitorsMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Updates the parameters of a single FeatureMonitor.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateFeatureMonitor( + com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateFeatureMonitorMethod(), getCallOptions()), request); + } + /** * * @@ -2106,10 +2214,11 @@ protected FeatureRegistryServiceFutureStub build( private static final int METHODID_CREATE_FEATURE_MONITOR = 11; private static final int METHODID_GET_FEATURE_MONITOR = 12; private static final int METHODID_LIST_FEATURE_MONITORS = 13; - private static final int METHODID_DELETE_FEATURE_MONITOR = 14; - private static final int METHODID_CREATE_FEATURE_MONITOR_JOB = 15; - private static final int METHODID_GET_FEATURE_MONITOR_JOB = 16; - private static final int METHODID_LIST_FEATURE_MONITOR_JOBS = 17; + private static final int METHODID_UPDATE_FEATURE_MONITOR = 14; + private static final int METHODID_DELETE_FEATURE_MONITOR = 15; + private static final int METHODID_CREATE_FEATURE_MONITOR_JOB = 16; + private static final int METHODID_GET_FEATURE_MONITOR_JOB = 17; + private static final int METHODID_LIST_FEATURE_MONITOR_JOBS = 18; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -2207,6 +2316,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse>) responseObserver); break; + case METHODID_UPDATE_FEATURE_MONITOR: + serviceImpl.updateFeatureMonitor( + (com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_DELETE_FEATURE_MONITOR: serviceImpl.deleteFeatureMonitor( (com.google.cloud.aiplatform.v1beta1.DeleteFeatureMonitorRequest) request, @@ -2338,6 +2452,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.aiplatform.v1beta1.ListFeatureMonitorsRequest, com.google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse>( service, METHODID_LIST_FEATURE_MONITORS))) + .addMethod( + getUpdateFeatureMonitorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_FEATURE_MONITOR))) .addMethod( getDeleteFeatureMonitorMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -2430,6 +2550,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getCreateFeatureMonitorMethod()) .addMethod(getGetFeatureMonitorMethod()) .addMethod(getListFeatureMonitorsMethod()) + .addMethod(getUpdateFeatureMonitorMethod()) .addMethod(getDeleteFeatureMonitorMethod()) .addMethod(getCreateFeatureMonitorJobMethod()) .addMethod(getGetFeatureMonitorJobMethod()) diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceGrpc.java index 28f5d6551735..0265554cafb4 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceGrpc.java @@ -217,6 +217,58 @@ private ModelServiceGrpc() {} return getListModelVersionsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest, + com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse> + getListModelVersionCheckpointsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListModelVersionCheckpoints", + requestType = com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest, + com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse> + getListModelVersionCheckpointsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest, + com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse> + getListModelVersionCheckpointsMethod; + if ((getListModelVersionCheckpointsMethod = + ModelServiceGrpc.getListModelVersionCheckpointsMethod) + == null) { + synchronized (ModelServiceGrpc.class) { + if ((getListModelVersionCheckpointsMethod = + ModelServiceGrpc.getListModelVersionCheckpointsMethod) + == null) { + ModelServiceGrpc.getListModelVersionCheckpointsMethod = + getListModelVersionCheckpointsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListModelVersionCheckpoints")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1 + .ListModelVersionCheckpointsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new ModelServiceMethodDescriptorSupplier("ListModelVersionCheckpoints")) + .build(); + } + } + } + return getListModelVersionCheckpointsMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.aiplatform.v1beta1.UpdateModelRequest, com.google.cloud.aiplatform.v1beta1.Model> @@ -998,6 +1050,22 @@ default void listModelVersions( getListModelVersionsMethod(), responseObserver); } + /** + * + * + *
+     * Lists checkpoints of the specified model version.
+     * 
+ */ + default void listModelVersionCheckpoints( + com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListModelVersionCheckpointsMethod(), responseObserver); + } + /** * * @@ -1320,6 +1388,24 @@ public void listModelVersions( responseObserver); } + /** + * + * + *
+     * Lists checkpoints of the specified model version.
+     * 
+ */ + public void listModelVersionCheckpoints( + com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListModelVersionCheckpointsMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1644,6 +1730,20 @@ public com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse listModelVe getChannel(), getListModelVersionsMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Lists checkpoints of the specified model version.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse + listModelVersionCheckpoints( + com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListModelVersionCheckpointsMethod(), getCallOptions(), request); + } + /** * * @@ -1923,6 +2023,21 @@ protected ModelServiceFutureStub build( getChannel().newCall(getListModelVersionsMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Lists checkpoints of the specified model version.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse> + listModelVersionCheckpoints( + com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListModelVersionCheckpointsMethod(), getCallOptions()), request); + } + /** * * @@ -2148,20 +2263,21 @@ protected ModelServiceFutureStub build( private static final int METHODID_GET_MODEL = 1; private static final int METHODID_LIST_MODELS = 2; private static final int METHODID_LIST_MODEL_VERSIONS = 3; - private static final int METHODID_UPDATE_MODEL = 4; - private static final int METHODID_UPDATE_EXPLANATION_DATASET = 5; - private static final int METHODID_DELETE_MODEL = 6; - private static final int METHODID_DELETE_MODEL_VERSION = 7; - private static final int METHODID_MERGE_VERSION_ALIASES = 8; - private static final int METHODID_EXPORT_MODEL = 9; - private static final int METHODID_COPY_MODEL = 10; - private static final int METHODID_IMPORT_MODEL_EVALUATION = 11; - private static final int METHODID_BATCH_IMPORT_MODEL_EVALUATION_SLICES = 12; - private static final int METHODID_BATCH_IMPORT_EVALUATED_ANNOTATIONS = 13; - private static final int METHODID_GET_MODEL_EVALUATION = 14; - private static final int METHODID_LIST_MODEL_EVALUATIONS = 15; - private static final int METHODID_GET_MODEL_EVALUATION_SLICE = 16; - private static final int METHODID_LIST_MODEL_EVALUATION_SLICES = 17; + private static final int METHODID_LIST_MODEL_VERSION_CHECKPOINTS = 4; + private static final int METHODID_UPDATE_MODEL = 5; + private static final int METHODID_UPDATE_EXPLANATION_DATASET = 6; + private static final int METHODID_DELETE_MODEL = 7; + private static final int METHODID_DELETE_MODEL_VERSION = 8; + private static final int METHODID_MERGE_VERSION_ALIASES = 9; + private static final int METHODID_EXPORT_MODEL = 10; + private static final int METHODID_COPY_MODEL = 11; + private static final int METHODID_IMPORT_MODEL_EVALUATION = 12; + private static final int METHODID_BATCH_IMPORT_MODEL_EVALUATION_SLICES = 13; + private static final int METHODID_BATCH_IMPORT_EVALUATED_ANNOTATIONS = 14; + private static final int METHODID_GET_MODEL_EVALUATION = 15; + private static final int METHODID_LIST_MODEL_EVALUATIONS = 16; + private static final int METHODID_GET_MODEL_EVALUATION_SLICE = 17; + private static final int METHODID_LIST_MODEL_EVALUATION_SLICES = 18; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -2204,6 +2320,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse>) responseObserver); break; + case METHODID_LIST_MODEL_VERSION_CHECKPOINTS: + serviceImpl.listModelVersionCheckpoints( + (com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse>) + responseObserver); + break; case METHODID_UPDATE_MODEL: serviceImpl.updateModel( (com.google.cloud.aiplatform.v1beta1.UpdateModelRequest) request, @@ -2332,6 +2455,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.aiplatform.v1beta1.ListModelVersionsRequest, com.google.cloud.aiplatform.v1beta1.ListModelVersionsResponse>( service, METHODID_LIST_MODEL_VERSIONS))) + .addMethod( + getListModelVersionCheckpointsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest, + com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse>( + service, METHODID_LIST_MODEL_VERSION_CHECKPOINTS))) .addMethod( getUpdateModelMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -2480,6 +2610,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetModelMethod()) .addMethod(getListModelsMethod()) .addMethod(getListModelVersionsMethod()) + .addMethod(getListModelVersionCheckpointsMethod()) .addMethod(getUpdateModelMethod()) .addMethod(getUpdateExplanationDatasetMethod()) .addMethod(getDeleteModelMethod()) diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CachedContent.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CachedContent.java new file mode 100644 index 000000000000..d333e6319285 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CachedContent.java @@ -0,0 +1,5310 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/cached_content.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * A resource used in LLM queries for users to explicitly specify what to cache
+ * and how to cache.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.CachedContent} + */ +public final class CachedContent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.CachedContent) + CachedContentOrBuilder { + private static final long serialVersionUID = 0L; + // Use CachedContent.newBuilder() to construct. + private CachedContent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CachedContent() { + name_ = ""; + displayName_ = ""; + model_ = ""; + contents_ = java.util.Collections.emptyList(); + tools_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CachedContent(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.CachedContentProto + .internal_static_google_cloud_aiplatform_v1_CachedContent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.CachedContentProto + .internal_static_google_cloud_aiplatform_v1_CachedContent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.CachedContent.class, + com.google.cloud.aiplatform.v1.CachedContent.Builder.class); + } + + public interface UsageMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.CachedContent.UsageMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Total number of tokens that the cached content consumes.
+     * 
+ * + * int32 total_token_count = 1; + * + * @return The totalTokenCount. + */ + int getTotalTokenCount(); + + /** + * + * + *
+     * Number of text characters.
+     * 
+ * + * int32 text_count = 2; + * + * @return The textCount. + */ + int getTextCount(); + + /** + * + * + *
+     * Number of images.
+     * 
+ * + * int32 image_count = 3; + * + * @return The imageCount. + */ + int getImageCount(); + + /** + * + * + *
+     * Duration of video in seconds.
+     * 
+ * + * int32 video_duration_seconds = 4; + * + * @return The videoDurationSeconds. + */ + int getVideoDurationSeconds(); + + /** + * + * + *
+     * Duration of audio in seconds.
+     * 
+ * + * int32 audio_duration_seconds = 5; + * + * @return The audioDurationSeconds. + */ + int getAudioDurationSeconds(); + } + /** + * + * + *
+   * Metadata on the usage of the cached content.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.CachedContent.UsageMetadata} + */ + public static final class UsageMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.CachedContent.UsageMetadata) + UsageMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use UsageMetadata.newBuilder() to construct. + private UsageMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UsageMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UsageMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.CachedContentProto + .internal_static_google_cloud_aiplatform_v1_CachedContent_UsageMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.CachedContentProto + .internal_static_google_cloud_aiplatform_v1_CachedContent_UsageMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata.class, + com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata.Builder.class); + } + + public static final int TOTAL_TOKEN_COUNT_FIELD_NUMBER = 1; + private int totalTokenCount_ = 0; + /** + * + * + *
+     * Total number of tokens that the cached content consumes.
+     * 
+ * + * int32 total_token_count = 1; + * + * @return The totalTokenCount. + */ + @java.lang.Override + public int getTotalTokenCount() { + return totalTokenCount_; + } + + public static final int TEXT_COUNT_FIELD_NUMBER = 2; + private int textCount_ = 0; + /** + * + * + *
+     * Number of text characters.
+     * 
+ * + * int32 text_count = 2; + * + * @return The textCount. + */ + @java.lang.Override + public int getTextCount() { + return textCount_; + } + + public static final int IMAGE_COUNT_FIELD_NUMBER = 3; + private int imageCount_ = 0; + /** + * + * + *
+     * Number of images.
+     * 
+ * + * int32 image_count = 3; + * + * @return The imageCount. + */ + @java.lang.Override + public int getImageCount() { + return imageCount_; + } + + public static final int VIDEO_DURATION_SECONDS_FIELD_NUMBER = 4; + private int videoDurationSeconds_ = 0; + /** + * + * + *
+     * Duration of video in seconds.
+     * 
+ * + * int32 video_duration_seconds = 4; + * + * @return The videoDurationSeconds. + */ + @java.lang.Override + public int getVideoDurationSeconds() { + return videoDurationSeconds_; + } + + public static final int AUDIO_DURATION_SECONDS_FIELD_NUMBER = 5; + private int audioDurationSeconds_ = 0; + /** + * + * + *
+     * Duration of audio in seconds.
+     * 
+ * + * int32 audio_duration_seconds = 5; + * + * @return The audioDurationSeconds. + */ + @java.lang.Override + public int getAudioDurationSeconds() { + return audioDurationSeconds_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (totalTokenCount_ != 0) { + output.writeInt32(1, totalTokenCount_); + } + if (textCount_ != 0) { + output.writeInt32(2, textCount_); + } + if (imageCount_ != 0) { + output.writeInt32(3, imageCount_); + } + if (videoDurationSeconds_ != 0) { + output.writeInt32(4, videoDurationSeconds_); + } + if (audioDurationSeconds_ != 0) { + output.writeInt32(5, audioDurationSeconds_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (totalTokenCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, totalTokenCount_); + } + if (textCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, textCount_); + } + if (imageCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, imageCount_); + } + if (videoDurationSeconds_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, videoDurationSeconds_); + } + if (audioDurationSeconds_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, audioDurationSeconds_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata other = + (com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata) obj; + + if (getTotalTokenCount() != other.getTotalTokenCount()) return false; + if (getTextCount() != other.getTextCount()) return false; + if (getImageCount() != other.getImageCount()) return false; + if (getVideoDurationSeconds() != other.getVideoDurationSeconds()) return false; + if (getAudioDurationSeconds() != other.getAudioDurationSeconds()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TOTAL_TOKEN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getTotalTokenCount(); + hash = (37 * hash) + TEXT_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getTextCount(); + hash = (37 * hash) + IMAGE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getImageCount(); + hash = (37 * hash) + VIDEO_DURATION_SECONDS_FIELD_NUMBER; + hash = (53 * hash) + getVideoDurationSeconds(); + hash = (37 * hash) + AUDIO_DURATION_SECONDS_FIELD_NUMBER; + hash = (53 * hash) + getAudioDurationSeconds(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Metadata on the usage of the cached content.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.CachedContent.UsageMetadata} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.CachedContent.UsageMetadata) + com.google.cloud.aiplatform.v1.CachedContent.UsageMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.CachedContentProto + .internal_static_google_cloud_aiplatform_v1_CachedContent_UsageMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.CachedContentProto + .internal_static_google_cloud_aiplatform_v1_CachedContent_UsageMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata.class, + com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + totalTokenCount_ = 0; + textCount_ = 0; + imageCount_ = 0; + videoDurationSeconds_ = 0; + audioDurationSeconds_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.CachedContentProto + .internal_static_google_cloud_aiplatform_v1_CachedContent_UsageMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata build() { + com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata buildPartial() { + com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata result = + new com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.totalTokenCount_ = totalTokenCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.textCount_ = textCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.imageCount_ = imageCount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.videoDurationSeconds_ = videoDurationSeconds_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.audioDurationSeconds_ = audioDurationSeconds_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.CachedContent.UsageMetadata) { + return mergeFrom((com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata other) { + if (other + == com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata.getDefaultInstance()) + return this; + if (other.getTotalTokenCount() != 0) { + setTotalTokenCount(other.getTotalTokenCount()); + } + if (other.getTextCount() != 0) { + setTextCount(other.getTextCount()); + } + if (other.getImageCount() != 0) { + setImageCount(other.getImageCount()); + } + if (other.getVideoDurationSeconds() != 0) { + setVideoDurationSeconds(other.getVideoDurationSeconds()); + } + if (other.getAudioDurationSeconds() != 0) { + setAudioDurationSeconds(other.getAudioDurationSeconds()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + totalTokenCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + textCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + imageCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + videoDurationSeconds_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + audioDurationSeconds_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + 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 totalTokenCount_; + /** + * + * + *
+       * Total number of tokens that the cached content consumes.
+       * 
+ * + * int32 total_token_count = 1; + * + * @return The totalTokenCount. + */ + @java.lang.Override + public int getTotalTokenCount() { + return totalTokenCount_; + } + /** + * + * + *
+       * Total number of tokens that the cached content consumes.
+       * 
+ * + * int32 total_token_count = 1; + * + * @param value The totalTokenCount to set. + * @return This builder for chaining. + */ + public Builder setTotalTokenCount(int value) { + + totalTokenCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Total number of tokens that the cached content consumes.
+       * 
+ * + * int32 total_token_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearTotalTokenCount() { + bitField0_ = (bitField0_ & ~0x00000001); + totalTokenCount_ = 0; + onChanged(); + return this; + } + + private int textCount_; + /** + * + * + *
+       * Number of text characters.
+       * 
+ * + * int32 text_count = 2; + * + * @return The textCount. + */ + @java.lang.Override + public int getTextCount() { + return textCount_; + } + /** + * + * + *
+       * Number of text characters.
+       * 
+ * + * int32 text_count = 2; + * + * @param value The textCount to set. + * @return This builder for chaining. + */ + public Builder setTextCount(int value) { + + textCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Number of text characters.
+       * 
+ * + * int32 text_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearTextCount() { + bitField0_ = (bitField0_ & ~0x00000002); + textCount_ = 0; + onChanged(); + return this; + } + + private int imageCount_; + /** + * + * + *
+       * Number of images.
+       * 
+ * + * int32 image_count = 3; + * + * @return The imageCount. + */ + @java.lang.Override + public int getImageCount() { + return imageCount_; + } + /** + * + * + *
+       * Number of images.
+       * 
+ * + * int32 image_count = 3; + * + * @param value The imageCount to set. + * @return This builder for chaining. + */ + public Builder setImageCount(int value) { + + imageCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Number of images.
+       * 
+ * + * int32 image_count = 3; + * + * @return This builder for chaining. + */ + public Builder clearImageCount() { + bitField0_ = (bitField0_ & ~0x00000004); + imageCount_ = 0; + onChanged(); + return this; + } + + private int videoDurationSeconds_; + /** + * + * + *
+       * Duration of video in seconds.
+       * 
+ * + * int32 video_duration_seconds = 4; + * + * @return The videoDurationSeconds. + */ + @java.lang.Override + public int getVideoDurationSeconds() { + return videoDurationSeconds_; + } + /** + * + * + *
+       * Duration of video in seconds.
+       * 
+ * + * int32 video_duration_seconds = 4; + * + * @param value The videoDurationSeconds to set. + * @return This builder for chaining. + */ + public Builder setVideoDurationSeconds(int value) { + + videoDurationSeconds_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Duration of video in seconds.
+       * 
+ * + * int32 video_duration_seconds = 4; + * + * @return This builder for chaining. + */ + public Builder clearVideoDurationSeconds() { + bitField0_ = (bitField0_ & ~0x00000008); + videoDurationSeconds_ = 0; + onChanged(); + return this; + } + + private int audioDurationSeconds_; + /** + * + * + *
+       * Duration of audio in seconds.
+       * 
+ * + * int32 audio_duration_seconds = 5; + * + * @return The audioDurationSeconds. + */ + @java.lang.Override + public int getAudioDurationSeconds() { + return audioDurationSeconds_; + } + /** + * + * + *
+       * Duration of audio in seconds.
+       * 
+ * + * int32 audio_duration_seconds = 5; + * + * @param value The audioDurationSeconds to set. + * @return This builder for chaining. + */ + public Builder setAudioDurationSeconds(int value) { + + audioDurationSeconds_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+       * Duration of audio in seconds.
+       * 
+ * + * int32 audio_duration_seconds = 5; + * + * @return This builder for chaining. + */ + public Builder clearAudioDurationSeconds() { + bitField0_ = (bitField0_ & ~0x00000010); + audioDurationSeconds_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.CachedContent.UsageMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.CachedContent.UsageMetadata) + private static final com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata(); + } + + public static com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UsageMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.CachedContent.UsageMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int expirationCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object expiration_; + + public enum ExpirationCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + EXPIRE_TIME(9), + TTL(10), + EXPIRATION_NOT_SET(0); + private final int value; + + private ExpirationCase(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 ExpirationCase valueOf(int value) { + return forNumber(value); + } + + public static ExpirationCase forNumber(int value) { + switch (value) { + case 9: + return EXPIRE_TIME; + case 10: + return TTL; + case 0: + return EXPIRATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ExpirationCase getExpirationCase() { + return ExpirationCase.forNumber(expirationCase_); + } + + public static final int EXPIRE_TIME_FIELD_NUMBER = 9; + /** + * + * + *
+   * Timestamp of when this resource is considered expired.
+   * This is *always* provided on output, regardless of what was sent
+   * on input.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 9; + * + * @return Whether the expireTime field is set. + */ + @java.lang.Override + public boolean hasExpireTime() { + return expirationCase_ == 9; + } + /** + * + * + *
+   * Timestamp of when this resource is considered expired.
+   * This is *always* provided on output, regardless of what was sent
+   * on input.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 9; + * + * @return The expireTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getExpireTime() { + if (expirationCase_ == 9) { + return (com.google.protobuf.Timestamp) expiration_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + /** + * + * + *
+   * Timestamp of when this resource is considered expired.
+   * This is *always* provided on output, regardless of what was sent
+   * on input.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 9; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + if (expirationCase_ == 9) { + return (com.google.protobuf.Timestamp) expiration_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + + public static final int TTL_FIELD_NUMBER = 10; + /** + * + * + *
+   * Input only. The TTL for this resource. The expiration time is computed:
+   * now + TTL.
+   * 
+ * + * .google.protobuf.Duration ttl = 10 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return Whether the ttl field is set. + */ + @java.lang.Override + public boolean hasTtl() { + return expirationCase_ == 10; + } + /** + * + * + *
+   * Input only. The TTL for this resource. The expiration time is computed:
+   * now + TTL.
+   * 
+ * + * .google.protobuf.Duration ttl = 10 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The ttl. + */ + @java.lang.Override + public com.google.protobuf.Duration getTtl() { + if (expirationCase_ == 10) { + return (com.google.protobuf.Duration) expiration_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + /** + * + * + *
+   * Input only. The TTL for this resource. The expiration time is computed:
+   * now + TTL.
+   * 
+ * + * .google.protobuf.Duration ttl = 10 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { + if (expirationCase_ == 10) { + return (com.google.protobuf.Duration) expiration_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Immutable. Identifier. The server-generated resource name of the cached
+   * content Format:
+   * projects/{project}/locations/{location}/cachedContents/{cached_content}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Immutable. Identifier. The server-generated resource name of the cached
+   * content Format:
+   * projects/{project}/locations/{location}/cachedContents/{cached_content}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Optional. Immutable. The user-generated meaningful display name of the
+   * cached content.
+   * 
+ * + * + * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Immutable. The user-generated meaningful display name of the
+   * cached content.
+   * 
+ * + * + * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MODEL_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object model_ = ""; + /** + * + * + *
+   * Immutable. The name of the publisher model to use for cached content.
+   * Format:
+   * projects/{project}/locations/{location}/publishers/{publisher}/models/{model}
+   * 
+ * + * string model = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The model. + */ + @java.lang.Override + public java.lang.String getModel() { + java.lang.Object ref = model_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + model_ = s; + return s; + } + } + /** + * + * + *
+   * Immutable. The name of the publisher model to use for cached content.
+   * Format:
+   * projects/{project}/locations/{location}/publishers/{publisher}/models/{model}
+   * 
+ * + * string model = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for model. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelBytes() { + java.lang.Object ref = model_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + model_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SYSTEM_INSTRUCTION_FIELD_NUMBER = 3; + private com.google.cloud.aiplatform.v1.Content systemInstruction_; + /** + * + * + *
+   * Optional. Input only. Immutable. Developer set system instruction.
+   * Currently, text only
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return Whether the systemInstruction field is set. + */ + @java.lang.Override + public boolean hasSystemInstruction() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. Input only. Immutable. Developer set system instruction.
+   * Currently, text only
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The systemInstruction. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Content getSystemInstruction() { + return systemInstruction_ == null + ? com.google.cloud.aiplatform.v1.Content.getDefaultInstance() + : systemInstruction_; + } + /** + * + * + *
+   * Optional. Input only. Immutable. Developer set system instruction.
+   * Currently, text only
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ContentOrBuilder getSystemInstructionOrBuilder() { + return systemInstruction_ == null + ? com.google.cloud.aiplatform.v1.Content.getDefaultInstance() + : systemInstruction_; + } + + public static final int CONTENTS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List contents_; + /** + * + * + *
+   * Optional. Input only. Immutable. The content to cache
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getContentsList() { + return contents_; + } + /** + * + * + *
+   * Optional. Input only. Immutable. The content to cache
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getContentsOrBuilderList() { + return contents_; + } + /** + * + * + *
+   * Optional. Input only. Immutable. The content to cache
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + @java.lang.Override + public int getContentsCount() { + return contents_.size(); + } + /** + * + * + *
+   * Optional. Input only. Immutable. The content to cache
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Content getContents(int index) { + return contents_.get(index); + } + /** + * + * + *
+   * Optional. Input only. Immutable. The content to cache
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ContentOrBuilder getContentsOrBuilder(int index) { + return contents_.get(index); + } + + public static final int TOOLS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List tools_; + /** + * + * + *
+   * Optional. Input only. Immutable. A list of `Tools` the model may use to
+   * generate the next response
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getToolsList() { + return tools_; + } + /** + * + * + *
+   * Optional. Input only. Immutable. A list of `Tools` the model may use to
+   * generate the next response
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getToolsOrBuilderList() { + return tools_; + } + /** + * + * + *
+   * Optional. Input only. Immutable. A list of `Tools` the model may use to
+   * generate the next response
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + @java.lang.Override + public int getToolsCount() { + return tools_.size(); + } + /** + * + * + *
+   * Optional. Input only. Immutable. A list of `Tools` the model may use to
+   * generate the next response
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Tool getTools(int index) { + return tools_.get(index); + } + /** + * + * + *
+   * Optional. Input only. Immutable. A list of `Tools` the model may use to
+   * generate the next response
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ToolOrBuilder getToolsOrBuilder(int index) { + return tools_.get(index); + } + + public static final int TOOL_CONFIG_FIELD_NUMBER = 6; + private com.google.cloud.aiplatform.v1.ToolConfig toolConfig_; + /** + * + * + *
+   * Optional. Input only. Immutable. Tool config. This config is shared for all
+   * tools
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return Whether the toolConfig field is set. + */ + @java.lang.Override + public boolean hasToolConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Optional. Input only. Immutable. Tool config. This config is shared for all
+   * tools
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The toolConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ToolConfig getToolConfig() { + return toolConfig_ == null + ? com.google.cloud.aiplatform.v1.ToolConfig.getDefaultInstance() + : toolConfig_; + } + /** + * + * + *
+   * Optional. Input only. Immutable. Tool config. This config is shared for all
+   * tools
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ToolConfigOrBuilder getToolConfigOrBuilder() { + return toolConfig_ == null + ? com.google.cloud.aiplatform.v1.ToolConfig.getDefaultInstance() + : toolConfig_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Creatation time of the cache entry.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+   * Output only. Creatation time of the cache entry.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. Creatation time of the cache entry.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. When the cache entry was last updated in UTC time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+   * Output only. When the cache entry was last updated in UTC time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. When the cache entry was last updated in UTC time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int USAGE_METADATA_FIELD_NUMBER = 12; + private com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata usageMetadata_; + /** + * + * + *
+   * Output only. Metadata on the usage of the cached content.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the usageMetadata field is set. + */ + @java.lang.Override + public boolean hasUsageMetadata() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+   * Output only. Metadata on the usage of the cached content.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The usageMetadata. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata getUsageMetadata() { + return usageMetadata_ == null + ? com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata.getDefaultInstance() + : usageMetadata_; + } + /** + * + * + *
+   * Output only. Metadata on the usage of the cached content.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.CachedContent.UsageMetadataOrBuilder + getUsageMetadataOrBuilder() { + return usageMetadata_ == null + ? com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata.getDefaultInstance() + : usageMetadata_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, model_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getSystemInstruction()); + } + for (int i = 0; i < contents_.size(); i++) { + output.writeMessage(4, contents_.get(i)); + } + for (int i = 0; i < tools_.size(); i++) { + output.writeMessage(5, tools_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getToolConfig()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(7, getCreateTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(8, getUpdateTime()); + } + if (expirationCase_ == 9) { + output.writeMessage(9, (com.google.protobuf.Timestamp) expiration_); + } + if (expirationCase_ == 10) { + output.writeMessage(10, (com.google.protobuf.Duration) expiration_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, displayName_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(12, getUsageMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, model_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSystemInstruction()); + } + for (int i = 0; i < contents_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, contents_.get(i)); + } + for (int i = 0; i < tools_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, tools_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getToolConfig()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); + } + if (expirationCase_ == 9) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.protobuf.Timestamp) expiration_); + } + if (expirationCase_ == 10) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, (com.google.protobuf.Duration) expiration_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, displayName_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getUsageMetadata()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.CachedContent)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.CachedContent other = + (com.google.cloud.aiplatform.v1.CachedContent) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getModel().equals(other.getModel())) return false; + if (hasSystemInstruction() != other.hasSystemInstruction()) return false; + if (hasSystemInstruction()) { + if (!getSystemInstruction().equals(other.getSystemInstruction())) return false; + } + if (!getContentsList().equals(other.getContentsList())) return false; + if (!getToolsList().equals(other.getToolsList())) return false; + if (hasToolConfig() != other.hasToolConfig()) return false; + if (hasToolConfig()) { + if (!getToolConfig().equals(other.getToolConfig())) return false; + } + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (hasUsageMetadata() != other.hasUsageMetadata()) return false; + if (hasUsageMetadata()) { + if (!getUsageMetadata().equals(other.getUsageMetadata())) return false; + } + if (!getExpirationCase().equals(other.getExpirationCase())) return false; + switch (expirationCase_) { + case 9: + if (!getExpireTime().equals(other.getExpireTime())) return false; + break; + case 10: + if (!getTtl().equals(other.getTtl())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + MODEL_FIELD_NUMBER; + hash = (53 * hash) + getModel().hashCode(); + if (hasSystemInstruction()) { + hash = (37 * hash) + SYSTEM_INSTRUCTION_FIELD_NUMBER; + hash = (53 * hash) + getSystemInstruction().hashCode(); + } + if (getContentsCount() > 0) { + hash = (37 * hash) + CONTENTS_FIELD_NUMBER; + hash = (53 * hash) + getContentsList().hashCode(); + } + if (getToolsCount() > 0) { + hash = (37 * hash) + TOOLS_FIELD_NUMBER; + hash = (53 * hash) + getToolsList().hashCode(); + } + if (hasToolConfig()) { + hash = (37 * hash) + TOOL_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getToolConfig().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (hasUsageMetadata()) { + hash = (37 * hash) + USAGE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getUsageMetadata().hashCode(); + } + switch (expirationCase_) { + case 9: + hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getExpireTime().hashCode(); + break; + case 10: + hash = (37 * hash) + TTL_FIELD_NUMBER; + hash = (53 * hash) + getTtl().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.CachedContent parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CachedContent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.CachedContent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CachedContent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.CachedContent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CachedContent 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.CachedContent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.CachedContent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.CachedContent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.CachedContent parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.CachedContent 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.CachedContent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1.CachedContent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A resource used in LLM queries for users to explicitly specify what to cache
+   * and how to cache.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.CachedContent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.CachedContent) + com.google.cloud.aiplatform.v1.CachedContentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.CachedContentProto + .internal_static_google_cloud_aiplatform_v1_CachedContent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.CachedContentProto + .internal_static_google_cloud_aiplatform_v1_CachedContent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.CachedContent.class, + com.google.cloud.aiplatform.v1.CachedContent.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.CachedContent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSystemInstructionFieldBuilder(); + getContentsFieldBuilder(); + getToolsFieldBuilder(); + getToolConfigFieldBuilder(); + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + getUsageMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (expireTimeBuilder_ != null) { + expireTimeBuilder_.clear(); + } + if (ttlBuilder_ != null) { + ttlBuilder_.clear(); + } + name_ = ""; + displayName_ = ""; + model_ = ""; + systemInstruction_ = null; + if (systemInstructionBuilder_ != null) { + systemInstructionBuilder_.dispose(); + systemInstructionBuilder_ = null; + } + if (contentsBuilder_ == null) { + contents_ = java.util.Collections.emptyList(); + } else { + contents_ = null; + contentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + if (toolsBuilder_ == null) { + tools_ = java.util.Collections.emptyList(); + } else { + tools_ = null; + toolsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + toolConfig_ = null; + if (toolConfigBuilder_ != null) { + toolConfigBuilder_.dispose(); + toolConfigBuilder_ = null; + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + usageMetadata_ = null; + if (usageMetadataBuilder_ != null) { + usageMetadataBuilder_.dispose(); + usageMetadataBuilder_ = null; + } + expirationCase_ = 0; + expiration_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.CachedContentProto + .internal_static_google_cloud_aiplatform_v1_CachedContent_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CachedContent getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.CachedContent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CachedContent build() { + com.google.cloud.aiplatform.v1.CachedContent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CachedContent buildPartial() { + com.google.cloud.aiplatform.v1.CachedContent result = + new com.google.cloud.aiplatform.v1.CachedContent(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.CachedContent result) { + if (contentsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + contents_ = java.util.Collections.unmodifiableList(contents_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.contents_ = contents_; + } else { + result.contents_ = contentsBuilder_.build(); + } + if (toolsBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + tools_ = java.util.Collections.unmodifiableList(tools_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.tools_ = tools_; + } else { + result.tools_ = toolsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.CachedContent result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.model_ = model_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.systemInstruction_ = + systemInstructionBuilder_ == null + ? systemInstruction_ + : systemInstructionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.toolConfig_ = toolConfigBuilder_ == null ? toolConfig_ : toolConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.usageMetadata_ = + usageMetadataBuilder_ == null ? usageMetadata_ : usageMetadataBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.CachedContent result) { + result.expirationCase_ = expirationCase_; + result.expiration_ = this.expiration_; + if (expirationCase_ == 9 && expireTimeBuilder_ != null) { + result.expiration_ = expireTimeBuilder_.build(); + } + if (expirationCase_ == 10 && ttlBuilder_ != null) { + result.expiration_ = ttlBuilder_.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.CachedContent) { + return mergeFrom((com.google.cloud.aiplatform.v1.CachedContent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.CachedContent other) { + if (other == com.google.cloud.aiplatform.v1.CachedContent.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getModel().isEmpty()) { + model_ = other.model_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasSystemInstruction()) { + mergeSystemInstruction(other.getSystemInstruction()); + } + if (contentsBuilder_ == null) { + if (!other.contents_.isEmpty()) { + if (contents_.isEmpty()) { + contents_ = other.contents_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureContentsIsMutable(); + contents_.addAll(other.contents_); + } + onChanged(); + } + } else { + if (!other.contents_.isEmpty()) { + if (contentsBuilder_.isEmpty()) { + contentsBuilder_.dispose(); + contentsBuilder_ = null; + contents_ = other.contents_; + bitField0_ = (bitField0_ & ~0x00000040); + contentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getContentsFieldBuilder() + : null; + } else { + contentsBuilder_.addAllMessages(other.contents_); + } + } + } + if (toolsBuilder_ == null) { + if (!other.tools_.isEmpty()) { + if (tools_.isEmpty()) { + tools_ = other.tools_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureToolsIsMutable(); + tools_.addAll(other.tools_); + } + onChanged(); + } + } else { + if (!other.tools_.isEmpty()) { + if (toolsBuilder_.isEmpty()) { + toolsBuilder_.dispose(); + toolsBuilder_ = null; + tools_ = other.tools_; + bitField0_ = (bitField0_ & ~0x00000080); + toolsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getToolsFieldBuilder() + : null; + } else { + toolsBuilder_.addAllMessages(other.tools_); + } + } + } + if (other.hasToolConfig()) { + mergeToolConfig(other.getToolConfig()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasUsageMetadata()) { + mergeUsageMetadata(other.getUsageMetadata()); + } + switch (other.getExpirationCase()) { + case EXPIRE_TIME: + { + mergeExpireTime(other.getExpireTime()); + break; + } + case TTL: + { + mergeTtl(other.getTtl()); + break; + } + case EXPIRATION_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 18 + case 26: + { + input.readMessage( + getSystemInstructionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 26 + case 34: + { + 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 34 + case 42: + { + com.google.cloud.aiplatform.v1.Tool m = + input.readMessage( + com.google.cloud.aiplatform.v1.Tool.parser(), extensionRegistry); + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.add(m); + } else { + toolsBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: + { + input.readMessage(getToolConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 50 + case 58: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 58 + case 66: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 66 + case 74: + { + input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); + expirationCase_ = 9; + break; + } // case 74 + case 82: + { + input.readMessage(getTtlFieldBuilder().getBuilder(), extensionRegistry); + expirationCase_ = 10; + break; + } // case 82 + case 90: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 90 + case 98: + { + input.readMessage(getUsageMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 98 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int expirationCase_ = 0; + private java.lang.Object expiration_; + + public ExpirationCase getExpirationCase() { + return ExpirationCase.forNumber(expirationCase_); + } + + public Builder clearExpiration() { + expirationCase_ = 0; + expiration_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; + /** + * + * + *
+     * Timestamp of when this resource is considered expired.
+     * This is *always* provided on output, regardless of what was sent
+     * on input.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 9; + * + * @return Whether the expireTime field is set. + */ + @java.lang.Override + public boolean hasExpireTime() { + return expirationCase_ == 9; + } + /** + * + * + *
+     * Timestamp of when this resource is considered expired.
+     * This is *always* provided on output, regardless of what was sent
+     * on input.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 9; + * + * @return The expireTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getExpireTime() { + if (expireTimeBuilder_ == null) { + if (expirationCase_ == 9) { + return (com.google.protobuf.Timestamp) expiration_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } else { + if (expirationCase_ == 9) { + return expireTimeBuilder_.getMessage(); + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + } + /** + * + * + *
+     * Timestamp of when this resource is considered expired.
+     * This is *always* provided on output, regardless of what was sent
+     * on input.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 9; + */ + public Builder setExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expiration_ = value; + onChanged(); + } else { + expireTimeBuilder_.setMessage(value); + } + expirationCase_ = 9; + return this; + } + /** + * + * + *
+     * Timestamp of when this resource is considered expired.
+     * This is *always* provided on output, regardless of what was sent
+     * on input.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 9; + */ + public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (expireTimeBuilder_ == null) { + expiration_ = builderForValue.build(); + onChanged(); + } else { + expireTimeBuilder_.setMessage(builderForValue.build()); + } + expirationCase_ = 9; + return this; + } + /** + * + * + *
+     * Timestamp of when this resource is considered expired.
+     * This is *always* provided on output, regardless of what was sent
+     * on input.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 9; + */ + public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (expirationCase_ == 9 + && expiration_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + expiration_ = + com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) expiration_) + .mergeFrom(value) + .buildPartial(); + } else { + expiration_ = value; + } + onChanged(); + } else { + if (expirationCase_ == 9) { + expireTimeBuilder_.mergeFrom(value); + } else { + expireTimeBuilder_.setMessage(value); + } + } + expirationCase_ = 9; + return this; + } + /** + * + * + *
+     * Timestamp of when this resource is considered expired.
+     * This is *always* provided on output, regardless of what was sent
+     * on input.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 9; + */ + public Builder clearExpireTime() { + if (expireTimeBuilder_ == null) { + if (expirationCase_ == 9) { + expirationCase_ = 0; + expiration_ = null; + onChanged(); + } + } else { + if (expirationCase_ == 9) { + expirationCase_ = 0; + expiration_ = null; + } + expireTimeBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Timestamp of when this resource is considered expired.
+     * This is *always* provided on output, regardless of what was sent
+     * on input.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 9; + */ + public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { + return getExpireTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Timestamp of when this resource is considered expired.
+     * This is *always* provided on output, regardless of what was sent
+     * on input.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 9; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + if ((expirationCase_ == 9) && (expireTimeBuilder_ != null)) { + return expireTimeBuilder_.getMessageOrBuilder(); + } else { + if (expirationCase_ == 9) { + return (com.google.protobuf.Timestamp) expiration_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + } + /** + * + * + *
+     * Timestamp of when this resource is considered expired.
+     * This is *always* provided on output, regardless of what was sent
+     * on input.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getExpireTimeFieldBuilder() { + if (expireTimeBuilder_ == null) { + if (!(expirationCase_ == 9)) { + expiration_ = com.google.protobuf.Timestamp.getDefaultInstance(); + } + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + (com.google.protobuf.Timestamp) expiration_, getParentForChildren(), isClean()); + expiration_ = null; + } + expirationCase_ = 9; + onChanged(); + return expireTimeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + ttlBuilder_; + /** + * + * + *
+     * Input only. The TTL for this resource. The expiration time is computed:
+     * now + TTL.
+     * 
+ * + * .google.protobuf.Duration ttl = 10 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return Whether the ttl field is set. + */ + @java.lang.Override + public boolean hasTtl() { + return expirationCase_ == 10; + } + /** + * + * + *
+     * Input only. The TTL for this resource. The expiration time is computed:
+     * now + TTL.
+     * 
+ * + * .google.protobuf.Duration ttl = 10 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The ttl. + */ + @java.lang.Override + public com.google.protobuf.Duration getTtl() { + if (ttlBuilder_ == null) { + if (expirationCase_ == 10) { + return (com.google.protobuf.Duration) expiration_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } else { + if (expirationCase_ == 10) { + return ttlBuilder_.getMessage(); + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + } + /** + * + * + *
+     * Input only. The TTL for this resource. The expiration time is computed:
+     * now + TTL.
+     * 
+ * + * .google.protobuf.Duration ttl = 10 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + public Builder setTtl(com.google.protobuf.Duration value) { + if (ttlBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expiration_ = value; + onChanged(); + } else { + ttlBuilder_.setMessage(value); + } + expirationCase_ = 10; + return this; + } + /** + * + * + *
+     * Input only. The TTL for this resource. The expiration time is computed:
+     * now + TTL.
+     * 
+ * + * .google.protobuf.Duration ttl = 10 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) { + if (ttlBuilder_ == null) { + expiration_ = builderForValue.build(); + onChanged(); + } else { + ttlBuilder_.setMessage(builderForValue.build()); + } + expirationCase_ = 10; + return this; + } + /** + * + * + *
+     * Input only. The TTL for this resource. The expiration time is computed:
+     * now + TTL.
+     * 
+ * + * .google.protobuf.Duration ttl = 10 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + public Builder mergeTtl(com.google.protobuf.Duration value) { + if (ttlBuilder_ == null) { + if (expirationCase_ == 10 + && expiration_ != com.google.protobuf.Duration.getDefaultInstance()) { + expiration_ = + com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) expiration_) + .mergeFrom(value) + .buildPartial(); + } else { + expiration_ = value; + } + onChanged(); + } else { + if (expirationCase_ == 10) { + ttlBuilder_.mergeFrom(value); + } else { + ttlBuilder_.setMessage(value); + } + } + expirationCase_ = 10; + return this; + } + /** + * + * + *
+     * Input only. The TTL for this resource. The expiration time is computed:
+     * now + TTL.
+     * 
+ * + * .google.protobuf.Duration ttl = 10 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + public Builder clearTtl() { + if (ttlBuilder_ == null) { + if (expirationCase_ == 10) { + expirationCase_ = 0; + expiration_ = null; + onChanged(); + } + } else { + if (expirationCase_ == 10) { + expirationCase_ = 0; + expiration_ = null; + } + ttlBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Input only. The TTL for this resource. The expiration time is computed:
+     * now + TTL.
+     * 
+ * + * .google.protobuf.Duration ttl = 10 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + public com.google.protobuf.Duration.Builder getTtlBuilder() { + return getTtlFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Input only. The TTL for this resource. The expiration time is computed:
+     * now + TTL.
+     * 
+ * + * .google.protobuf.Duration ttl = 10 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { + if ((expirationCase_ == 10) && (ttlBuilder_ != null)) { + return ttlBuilder_.getMessageOrBuilder(); + } else { + if (expirationCase_ == 10) { + return (com.google.protobuf.Duration) expiration_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + } + /** + * + * + *
+     * Input only. The TTL for this resource. The expiration time is computed:
+     * now + TTL.
+     * 
+ * + * .google.protobuf.Duration ttl = 10 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getTtlFieldBuilder() { + if (ttlBuilder_ == null) { + if (!(expirationCase_ == 10)) { + expiration_ = com.google.protobuf.Duration.getDefaultInstance(); + } + ttlBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + (com.google.protobuf.Duration) expiration_, getParentForChildren(), isClean()); + expiration_ = null; + } + expirationCase_ = 10; + onChanged(); + return ttlBuilder_; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Immutable. Identifier. The server-generated resource name of the cached
+     * content Format:
+     * projects/{project}/locations/{location}/cachedContents/{cached_content}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Immutable. Identifier. The server-generated resource name of the cached
+     * content Format:
+     * projects/{project}/locations/{location}/cachedContents/{cached_content}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Immutable. Identifier. The server-generated resource name of the cached
+     * content Format:
+     * projects/{project}/locations/{location}/cachedContents/{cached_content}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Identifier. The server-generated resource name of the cached
+     * content Format:
+     * projects/{project}/locations/{location}/cachedContents/{cached_content}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Identifier. The server-generated resource name of the cached
+     * content Format:
+     * projects/{project}/locations/{location}/cachedContents/{cached_content}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Optional. Immutable. The user-generated meaningful display name of the
+     * cached content.
+     * 
+ * + * + * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Immutable. The user-generated meaningful display name of the
+     * cached content.
+     * 
+ * + * + * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Immutable. The user-generated meaningful display name of the
+     * cached content.
+     * 
+ * + * + * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Immutable. The user-generated meaningful display name of the
+     * cached content.
+     * 
+ * + * + * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Immutable. The user-generated meaningful display name of the
+     * cached content.
+     * 
+ * + * + * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object model_ = ""; + /** + * + * + *
+     * Immutable. The name of the publisher model to use for cached content.
+     * Format:
+     * projects/{project}/locations/{location}/publishers/{publisher}/models/{model}
+     * 
+ * + * string model = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The model. + */ + public java.lang.String getModel() { + java.lang.Object ref = model_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + model_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Immutable. The name of the publisher model to use for cached content.
+     * Format:
+     * projects/{project}/locations/{location}/publishers/{publisher}/models/{model}
+     * 
+ * + * string model = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for model. + */ + public com.google.protobuf.ByteString getModelBytes() { + java.lang.Object ref = model_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + model_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Immutable. The name of the publisher model to use for cached content.
+     * Format:
+     * projects/{project}/locations/{location}/publishers/{publisher}/models/{model}
+     * 
+ * + * string model = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The model to set. + * @return This builder for chaining. + */ + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + model_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The name of the publisher model to use for cached content.
+     * Format:
+     * projects/{project}/locations/{location}/publishers/{publisher}/models/{model}
+     * 
+ * + * string model = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearModel() { + model_ = getDefaultInstance().getModel(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The name of the publisher model to use for cached content.
+     * Format:
+     * projects/{project}/locations/{location}/publishers/{publisher}/models/{model}
+     * 
+ * + * string model = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for model to set. + * @return This builder for chaining. + */ + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1.Content systemInstruction_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.Content, + com.google.cloud.aiplatform.v1.Content.Builder, + com.google.cloud.aiplatform.v1.ContentOrBuilder> + systemInstructionBuilder_; + /** + * + * + *
+     * Optional. Input only. Immutable. Developer set system instruction.
+     * Currently, text only
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return Whether the systemInstruction field is set. + */ + public boolean hasSystemInstruction() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+     * Optional. Input only. Immutable. Developer set system instruction.
+     * Currently, text only
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The systemInstruction. + */ + public com.google.cloud.aiplatform.v1.Content getSystemInstruction() { + if (systemInstructionBuilder_ == null) { + return systemInstruction_ == null + ? com.google.cloud.aiplatform.v1.Content.getDefaultInstance() + : systemInstruction_; + } else { + return systemInstructionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Input only. Immutable. Developer set system instruction.
+     * Currently, text only
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder setSystemInstruction(com.google.cloud.aiplatform.v1.Content value) { + if (systemInstructionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + systemInstruction_ = value; + } else { + systemInstructionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Input only. Immutable. Developer set system instruction.
+     * Currently, text only
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder setSystemInstruction( + com.google.cloud.aiplatform.v1.Content.Builder builderForValue) { + if (systemInstructionBuilder_ == null) { + systemInstruction_ = builderForValue.build(); + } else { + systemInstructionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Input only. Immutable. Developer set system instruction.
+     * Currently, text only
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder mergeSystemInstruction(com.google.cloud.aiplatform.v1.Content value) { + if (systemInstructionBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && systemInstruction_ != null + && systemInstruction_ != com.google.cloud.aiplatform.v1.Content.getDefaultInstance()) { + getSystemInstructionBuilder().mergeFrom(value); + } else { + systemInstruction_ = value; + } + } else { + systemInstructionBuilder_.mergeFrom(value); + } + if (systemInstruction_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Input only. Immutable. Developer set system instruction.
+     * Currently, text only
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder clearSystemInstruction() { + bitField0_ = (bitField0_ & ~0x00000020); + systemInstruction_ = null; + if (systemInstructionBuilder_ != null) { + systemInstructionBuilder_.dispose(); + systemInstructionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Input only. Immutable. Developer set system instruction.
+     * Currently, text only
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.Content.Builder getSystemInstructionBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getSystemInstructionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Input only. Immutable. Developer set system instruction.
+     * Currently, text only
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ContentOrBuilder getSystemInstructionOrBuilder() { + if (systemInstructionBuilder_ != null) { + return systemInstructionBuilder_.getMessageOrBuilder(); + } else { + return systemInstruction_ == null + ? com.google.cloud.aiplatform.v1.Content.getDefaultInstance() + : systemInstruction_; + } + } + /** + * + * + *
+     * Optional. Input only. Immutable. Developer set system instruction.
+     * Currently, text only
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.Content, + com.google.cloud.aiplatform.v1.Content.Builder, + com.google.cloud.aiplatform.v1.ContentOrBuilder> + getSystemInstructionFieldBuilder() { + if (systemInstructionBuilder_ == null) { + systemInstructionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.Content, + com.google.cloud.aiplatform.v1.Content.Builder, + com.google.cloud.aiplatform.v1.ContentOrBuilder>( + getSystemInstruction(), getParentForChildren(), isClean()); + systemInstruction_ = null; + } + return systemInstructionBuilder_; + } + + private java.util.List contents_ = + java.util.Collections.emptyList(); + + private void ensureContentsIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + contents_ = new java.util.ArrayList(contents_); + bitField0_ |= 0x00000040; + } + } + + 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 only. Immutable. The content to cache
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public java.util.List getContentsList() { + if (contentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(contents_); + } else { + return contentsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional. Input only. Immutable. The content to cache
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public int getContentsCount() { + if (contentsBuilder_ == null) { + return contents_.size(); + } else { + return contentsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional. Input only. Immutable. The content to cache
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.Content getContents(int index) { + if (contentsBuilder_ == null) { + return contents_.get(index); + } else { + return contentsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional. Input only. Immutable. The content to cache
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder setContents(int index, com.google.cloud.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 only. Immutable. The content to cache
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder setContents( + int index, com.google.cloud.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 only. Immutable. The content to cache
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder addContents(com.google.cloud.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 only. Immutable. The content to cache
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder addContents(int index, com.google.cloud.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 only. Immutable. The content to cache
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder addContents(com.google.cloud.aiplatform.v1.Content.Builder builderForValue) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + contents_.add(builderForValue.build()); + onChanged(); + } else { + contentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Input only. Immutable. The content to cache
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder addContents( + int index, com.google.cloud.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 only. Immutable. The content to cache
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder addAllContents( + java.lang.Iterable values) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contents_); + onChanged(); + } else { + contentsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional. Input only. Immutable. The content to cache
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder clearContents() { + if (contentsBuilder_ == null) { + contents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + contentsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Input only. Immutable. The content to cache
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder removeContents(int index) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + contents_.remove(index); + onChanged(); + } else { + contentsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional. Input only. Immutable. The content to cache
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.Content.Builder getContentsBuilder(int index) { + return getContentsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional. Input only. Immutable. The content to cache
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ContentOrBuilder getContentsOrBuilder(int index) { + if (contentsBuilder_ == null) { + return contents_.get(index); + } else { + return contentsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional. Input only. Immutable. The content to cache
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public java.util.List + getContentsOrBuilderList() { + if (contentsBuilder_ != null) { + return contentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(contents_); + } + } + /** + * + * + *
+     * Optional. Input only. Immutable. The content to cache
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.Content.Builder addContentsBuilder() { + return getContentsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1.Content.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. Input only. Immutable. The content to cache
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.Content.Builder addContentsBuilder(int index) { + return getContentsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1.Content.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. Input only. Immutable. The content to cache
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + 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_ & 0x00000040) != 0), getParentForChildren(), isClean()); + contents_ = null; + } + return contentsBuilder_; + } + + private java.util.List tools_ = + java.util.Collections.emptyList(); + + private void ensureToolsIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + tools_ = new java.util.ArrayList(tools_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.Tool, + com.google.cloud.aiplatform.v1.Tool.Builder, + com.google.cloud.aiplatform.v1.ToolOrBuilder> + toolsBuilder_; + + /** + * + * + *
+     * Optional. Input only. Immutable. A list of `Tools` the model may use to
+     * generate the next response
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public java.util.List getToolsList() { + if (toolsBuilder_ == null) { + return java.util.Collections.unmodifiableList(tools_); + } else { + return toolsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional. Input only. Immutable. A list of `Tools` the model may use to
+     * generate the next response
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public int getToolsCount() { + if (toolsBuilder_ == null) { + return tools_.size(); + } else { + return toolsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional. Input only. Immutable. A list of `Tools` the model may use to
+     * generate the next response
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.Tool getTools(int index) { + if (toolsBuilder_ == null) { + return tools_.get(index); + } else { + return toolsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional. Input only. Immutable. A list of `Tools` the model may use to
+     * generate the next response
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder setTools(int index, com.google.cloud.aiplatform.v1.Tool value) { + if (toolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsIsMutable(); + tools_.set(index, value); + onChanged(); + } else { + toolsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. Input only. Immutable. A list of `Tools` the model may use to
+     * generate the next response
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder setTools( + int index, com.google.cloud.aiplatform.v1.Tool.Builder builderForValue) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.set(index, builderForValue.build()); + onChanged(); + } else { + toolsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Input only. Immutable. A list of `Tools` the model may use to
+     * generate the next response
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder addTools(com.google.cloud.aiplatform.v1.Tool value) { + if (toolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsIsMutable(); + tools_.add(value); + onChanged(); + } else { + toolsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional. Input only. Immutable. A list of `Tools` the model may use to
+     * generate the next response
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder addTools(int index, com.google.cloud.aiplatform.v1.Tool value) { + if (toolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsIsMutable(); + tools_.add(index, value); + onChanged(); + } else { + toolsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. Input only. Immutable. A list of `Tools` the model may use to
+     * generate the next response
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder addTools(com.google.cloud.aiplatform.v1.Tool.Builder builderForValue) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.add(builderForValue.build()); + onChanged(); + } else { + toolsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Input only. Immutable. A list of `Tools` the model may use to
+     * generate the next response
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder addTools( + int index, com.google.cloud.aiplatform.v1.Tool.Builder builderForValue) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.add(index, builderForValue.build()); + onChanged(); + } else { + toolsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Input only. Immutable. A list of `Tools` the model may use to
+     * generate the next response
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder addAllTools( + java.lang.Iterable values) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tools_); + onChanged(); + } else { + toolsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional. Input only. Immutable. A list of `Tools` the model may use to
+     * generate the next response
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder clearTools() { + if (toolsBuilder_ == null) { + tools_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + toolsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Input only. Immutable. A list of `Tools` the model may use to
+     * generate the next response
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder removeTools(int index) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.remove(index); + onChanged(); + } else { + toolsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional. Input only. Immutable. A list of `Tools` the model may use to
+     * generate the next response
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.Tool.Builder getToolsBuilder(int index) { + return getToolsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional. Input only. Immutable. A list of `Tools` the model may use to
+     * generate the next response
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ToolOrBuilder getToolsOrBuilder(int index) { + if (toolsBuilder_ == null) { + return tools_.get(index); + } else { + return toolsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional. Input only. Immutable. A list of `Tools` the model may use to
+     * generate the next response
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public java.util.List + getToolsOrBuilderList() { + if (toolsBuilder_ != null) { + return toolsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tools_); + } + } + /** + * + * + *
+     * Optional. Input only. Immutable. A list of `Tools` the model may use to
+     * generate the next response
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.Tool.Builder addToolsBuilder() { + return getToolsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1.Tool.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. Input only. Immutable. A list of `Tools` the model may use to
+     * generate the next response
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.Tool.Builder addToolsBuilder(int index) { + return getToolsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1.Tool.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. Input only. Immutable. A list of `Tools` the model may use to
+     * generate the next response
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public java.util.List getToolsBuilderList() { + return getToolsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.Tool, + com.google.cloud.aiplatform.v1.Tool.Builder, + com.google.cloud.aiplatform.v1.ToolOrBuilder> + getToolsFieldBuilder() { + if (toolsBuilder_ == null) { + toolsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.Tool, + com.google.cloud.aiplatform.v1.Tool.Builder, + com.google.cloud.aiplatform.v1.ToolOrBuilder>( + tools_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); + tools_ = null; + } + return toolsBuilder_; + } + + private com.google.cloud.aiplatform.v1.ToolConfig toolConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ToolConfig, + com.google.cloud.aiplatform.v1.ToolConfig.Builder, + com.google.cloud.aiplatform.v1.ToolConfigOrBuilder> + toolConfigBuilder_; + /** + * + * + *
+     * Optional. Input only. Immutable. Tool config. This config is shared for all
+     * tools
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return Whether the toolConfig field is set. + */ + public boolean hasToolConfig() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * + * + *
+     * Optional. Input only. Immutable. Tool config. This config is shared for all
+     * tools
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The toolConfig. + */ + public com.google.cloud.aiplatform.v1.ToolConfig getToolConfig() { + if (toolConfigBuilder_ == null) { + return toolConfig_ == null + ? com.google.cloud.aiplatform.v1.ToolConfig.getDefaultInstance() + : toolConfig_; + } else { + return toolConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Input only. Immutable. Tool config. This config is shared for all
+     * tools
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder setToolConfig(com.google.cloud.aiplatform.v1.ToolConfig value) { + if (toolConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolConfig_ = value; + } else { + toolConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Input only. Immutable. Tool config. This config is shared for all
+     * tools
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder setToolConfig( + com.google.cloud.aiplatform.v1.ToolConfig.Builder builderForValue) { + if (toolConfigBuilder_ == null) { + toolConfig_ = builderForValue.build(); + } else { + toolConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Input only. Immutable. Tool config. This config is shared for all
+     * tools
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder mergeToolConfig(com.google.cloud.aiplatform.v1.ToolConfig value) { + if (toolConfigBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && toolConfig_ != null + && toolConfig_ != com.google.cloud.aiplatform.v1.ToolConfig.getDefaultInstance()) { + getToolConfigBuilder().mergeFrom(value); + } else { + toolConfig_ = value; + } + } else { + toolConfigBuilder_.mergeFrom(value); + } + if (toolConfig_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Input only. Immutable. Tool config. This config is shared for all
+     * tools
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public Builder clearToolConfig() { + bitField0_ = (bitField0_ & ~0x00000100); + toolConfig_ = null; + if (toolConfigBuilder_ != null) { + toolConfigBuilder_.dispose(); + toolConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Input only. Immutable. Tool config. This config is shared for all
+     * tools
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ToolConfig.Builder getToolConfigBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getToolConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Input only. Immutable. Tool config. This config is shared for all
+     * tools
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ToolConfigOrBuilder getToolConfigOrBuilder() { + if (toolConfigBuilder_ != null) { + return toolConfigBuilder_.getMessageOrBuilder(); + } else { + return toolConfig_ == null + ? com.google.cloud.aiplatform.v1.ToolConfig.getDefaultInstance() + : toolConfig_; + } + } + /** + * + * + *
+     * Optional. Input only. Immutable. Tool config. This config is shared for all
+     * tools
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ToolConfig, + com.google.cloud.aiplatform.v1.ToolConfig.Builder, + com.google.cloud.aiplatform.v1.ToolConfigOrBuilder> + getToolConfigFieldBuilder() { + if (toolConfigBuilder_ == null) { + toolConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ToolConfig, + com.google.cloud.aiplatform.v1.ToolConfig.Builder, + com.google.cloud.aiplatform.v1.ToolConfigOrBuilder>( + getToolConfig(), getParentForChildren(), isClean()); + toolConfig_ = null; + } + return toolConfigBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. Creatation time of the cache entry.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * + * + *
+     * Output only. Creatation time of the cache entry.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Creatation time of the cache entry.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Creatation time of the cache entry.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Creatation time of the cache entry.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Creatation time of the cache entry.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000200); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Creatation time of the cache entry.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Creatation time of the cache entry.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. Creatation time of the cache entry.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Output only. When the cache entry was last updated in UTC time.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * + * + *
+     * Output only. When the cache entry was last updated in UTC time.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. When the cache entry was last updated in UTC time.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. When the cache entry was last updated in UTC time.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. When the cache entry was last updated in UTC time.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. When the cache entry was last updated in UTC time.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000400); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. When the cache entry was last updated in UTC time.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. When the cache entry was last updated in UTC time.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Output only. When the cache entry was last updated in UTC time.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata usageMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata, + com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata.Builder, + com.google.cloud.aiplatform.v1.CachedContent.UsageMetadataOrBuilder> + usageMetadataBuilder_; + /** + * + * + *
+     * Output only. Metadata on the usage of the cached content.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the usageMetadata field is set. + */ + public boolean hasUsageMetadata() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + * + * + *
+     * Output only. Metadata on the usage of the cached content.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The usageMetadata. + */ + public com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata getUsageMetadata() { + if (usageMetadataBuilder_ == null) { + return usageMetadata_ == null + ? com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata.getDefaultInstance() + : usageMetadata_; + } else { + return usageMetadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Metadata on the usage of the cached content.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUsageMetadata( + com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata value) { + if (usageMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + usageMetadata_ = value; + } else { + usageMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Metadata on the usage of the cached content.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUsageMetadata( + com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata.Builder builderForValue) { + if (usageMetadataBuilder_ == null) { + usageMetadata_ = builderForValue.build(); + } else { + usageMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Metadata on the usage of the cached content.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUsageMetadata( + com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata value) { + if (usageMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && usageMetadata_ != null + && usageMetadata_ + != com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata + .getDefaultInstance()) { + getUsageMetadataBuilder().mergeFrom(value); + } else { + usageMetadata_ = value; + } + } else { + usageMetadataBuilder_.mergeFrom(value); + } + if (usageMetadata_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Metadata on the usage of the cached content.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUsageMetadata() { + bitField0_ = (bitField0_ & ~0x00000800); + usageMetadata_ = null; + if (usageMetadataBuilder_ != null) { + usageMetadataBuilder_.dispose(); + usageMetadataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Metadata on the usage of the cached content.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata.Builder + getUsageMetadataBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return getUsageMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Metadata on the usage of the cached content.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.CachedContent.UsageMetadataOrBuilder + getUsageMetadataOrBuilder() { + if (usageMetadataBuilder_ != null) { + return usageMetadataBuilder_.getMessageOrBuilder(); + } else { + return usageMetadata_ == null + ? com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata.getDefaultInstance() + : usageMetadata_; + } + } + /** + * + * + *
+     * Output only. Metadata on the usage of the cached content.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata, + com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata.Builder, + com.google.cloud.aiplatform.v1.CachedContent.UsageMetadataOrBuilder> + getUsageMetadataFieldBuilder() { + if (usageMetadataBuilder_ == null) { + usageMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata, + com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata.Builder, + com.google.cloud.aiplatform.v1.CachedContent.UsageMetadataOrBuilder>( + getUsageMetadata(), getParentForChildren(), isClean()); + usageMetadata_ = null; + } + return usageMetadataBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.CachedContent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.CachedContent) + private static final com.google.cloud.aiplatform.v1.CachedContent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.CachedContent(); + } + + public static com.google.cloud.aiplatform.v1.CachedContent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CachedContent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.CachedContent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CachedContentName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CachedContentName.java new file mode 100644 index 000000000000..20d1682552f4 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CachedContentName.java @@ -0,0 +1,227 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 CachedContentName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_CACHED_CONTENT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/cachedContents/{cached_content}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String cachedContent; + + @Deprecated + protected CachedContentName() { + project = null; + location = null; + cachedContent = null; + } + + private CachedContentName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + cachedContent = Preconditions.checkNotNull(builder.getCachedContent()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCachedContent() { + return cachedContent; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static CachedContentName of(String project, String location, String cachedContent) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCachedContent(cachedContent) + .build(); + } + + public static String format(String project, String location, String cachedContent) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCachedContent(cachedContent) + .build() + .toString(); + } + + public static CachedContentName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_CACHED_CONTENT.validatedMatch( + formattedString, "CachedContentName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("cached_content")); + } + + 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 (CachedContentName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_CACHED_CONTENT.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 (cachedContent != null) { + fieldMapBuilder.put("cached_content", cachedContent); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_CACHED_CONTENT.instantiate( + "project", project, "location", location, "cached_content", cachedContent); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + CachedContentName that = ((CachedContentName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.cachedContent, that.cachedContent); + } + 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(cachedContent); + return h; + } + + /** Builder for projects/{project}/locations/{location}/cachedContents/{cached_content}. */ + public static class Builder { + private String project; + private String location; + private String cachedContent; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCachedContent() { + return cachedContent; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setCachedContent(String cachedContent) { + this.cachedContent = cachedContent; + return this; + } + + private Builder(CachedContentName cachedContentName) { + this.project = cachedContentName.project; + this.location = cachedContentName.location; + this.cachedContent = cachedContentName.cachedContent; + } + + public CachedContentName build() { + return new CachedContentName(this); + } + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CachedContentOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CachedContentOrBuilder.java new file mode 100644 index 000000000000..cd47d1f98fea --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CachedContentOrBuilder.java @@ -0,0 +1,533 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/cached_content.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface CachedContentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.CachedContent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Timestamp of when this resource is considered expired.
+   * This is *always* provided on output, regardless of what was sent
+   * on input.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 9; + * + * @return Whether the expireTime field is set. + */ + boolean hasExpireTime(); + /** + * + * + *
+   * Timestamp of when this resource is considered expired.
+   * This is *always* provided on output, regardless of what was sent
+   * on input.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 9; + * + * @return The expireTime. + */ + com.google.protobuf.Timestamp getExpireTime(); + /** + * + * + *
+   * Timestamp of when this resource is considered expired.
+   * This is *always* provided on output, regardless of what was sent
+   * on input.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 9; + */ + com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); + + /** + * + * + *
+   * Input only. The TTL for this resource. The expiration time is computed:
+   * now + TTL.
+   * 
+ * + * .google.protobuf.Duration ttl = 10 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return Whether the ttl field is set. + */ + boolean hasTtl(); + /** + * + * + *
+   * Input only. The TTL for this resource. The expiration time is computed:
+   * now + TTL.
+   * 
+ * + * .google.protobuf.Duration ttl = 10 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The ttl. + */ + com.google.protobuf.Duration getTtl(); + /** + * + * + *
+   * Input only. The TTL for this resource. The expiration time is computed:
+   * now + TTL.
+   * 
+ * + * .google.protobuf.Duration ttl = 10 [(.google.api.field_behavior) = INPUT_ONLY]; + */ + com.google.protobuf.DurationOrBuilder getTtlOrBuilder(); + + /** + * + * + *
+   * Immutable. Identifier. The server-generated resource name of the cached
+   * content Format:
+   * projects/{project}/locations/{location}/cachedContents/{cached_content}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Immutable. Identifier. The server-generated resource name of the cached
+   * content Format:
+   * projects/{project}/locations/{location}/cachedContents/{cached_content}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Immutable. The user-generated meaningful display name of the
+   * cached content.
+   * 
+ * + * + * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Optional. Immutable. The user-generated meaningful display name of the
+   * cached content.
+   * 
+ * + * + * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Immutable. The name of the publisher model to use for cached content.
+   * Format:
+   * projects/{project}/locations/{location}/publishers/{publisher}/models/{model}
+   * 
+ * + * string model = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The model. + */ + java.lang.String getModel(); + /** + * + * + *
+   * Immutable. The name of the publisher model to use for cached content.
+   * Format:
+   * projects/{project}/locations/{location}/publishers/{publisher}/models/{model}
+   * 
+ * + * string model = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for model. + */ + com.google.protobuf.ByteString getModelBytes(); + + /** + * + * + *
+   * Optional. Input only. Immutable. Developer set system instruction.
+   * Currently, text only
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return Whether the systemInstruction field is set. + */ + boolean hasSystemInstruction(); + /** + * + * + *
+   * Optional. Input only. Immutable. Developer set system instruction.
+   * Currently, text only
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The systemInstruction. + */ + com.google.cloud.aiplatform.v1.Content getSystemInstruction(); + /** + * + * + *
+   * Optional. Input only. Immutable. Developer set system instruction.
+   * Currently, text only
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.ContentOrBuilder getSystemInstructionOrBuilder(); + + /** + * + * + *
+   * Optional. Input only. Immutable. The content to cache
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + java.util.List getContentsList(); + /** + * + * + *
+   * Optional. Input only. Immutable. The content to cache
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.Content getContents(int index); + /** + * + * + *
+   * Optional. Input only. Immutable. The content to cache
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + int getContentsCount(); + /** + * + * + *
+   * Optional. Input only. Immutable. The content to cache
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + java.util.List + getContentsOrBuilderList(); + /** + * + * + *
+   * Optional. Input only. Immutable. The content to cache
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.ContentOrBuilder getContentsOrBuilder(int index); + + /** + * + * + *
+   * Optional. Input only. Immutable. A list of `Tools` the model may use to
+   * generate the next response
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + java.util.List getToolsList(); + /** + * + * + *
+   * Optional. Input only. Immutable. A list of `Tools` the model may use to
+   * generate the next response
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.Tool getTools(int index); + /** + * + * + *
+   * Optional. Input only. Immutable. A list of `Tools` the model may use to
+   * generate the next response
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + int getToolsCount(); + /** + * + * + *
+   * Optional. Input only. Immutable. A list of `Tools` the model may use to
+   * generate the next response
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + java.util.List getToolsOrBuilderList(); + /** + * + * + *
+   * Optional. Input only. Immutable. A list of `Tools` the model may use to
+   * generate the next response
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.ToolOrBuilder getToolsOrBuilder(int index); + + /** + * + * + *
+   * Optional. Input only. Immutable. Tool config. This config is shared for all
+   * tools
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return Whether the toolConfig field is set. + */ + boolean hasToolConfig(); + /** + * + * + *
+   * Optional. Input only. Immutable. Tool config. This config is shared for all
+   * tools
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The toolConfig. + */ + com.google.cloud.aiplatform.v1.ToolConfig getToolConfig(); + /** + * + * + *
+   * Optional. Input only. Immutable. Tool config. This config is shared for all
+   * tools
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.ToolConfigOrBuilder getToolConfigOrBuilder(); + + /** + * + * + *
+   * Output only. Creatation time of the cache entry.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Creatation time of the cache entry.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Creatation time of the cache entry.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. When the cache entry was last updated in UTC time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. When the cache entry was last updated in UTC time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. When the cache entry was last updated in UTC time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Metadata on the usage of the cached content.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the usageMetadata field is set. + */ + boolean hasUsageMetadata(); + /** + * + * + *
+   * Output only. Metadata on the usage of the cached content.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The usageMetadata. + */ + com.google.cloud.aiplatform.v1.CachedContent.UsageMetadata getUsageMetadata(); + /** + * + * + *
+   * Output only. Metadata on the usage of the cached content.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.CachedContent.UsageMetadataOrBuilder getUsageMetadataOrBuilder(); + + com.google.cloud.aiplatform.v1.CachedContent.ExpirationCase getExpirationCase(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CachedContentProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CachedContentProto.java new file mode 100644 index 000000000000..13eee897a359 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CachedContentProto.java @@ -0,0 +1,144 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/cached_content.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public final class CachedContentProto { + private CachedContentProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_CachedContent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_CachedContent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_CachedContent_UsageMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_CachedContent_UsageMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n/google/cloud/aiplatform/v1/cached_cont" + + "ent.proto\022\032google.cloud.aiplatform.v1\032\037g" + + "oogle/api/field_behavior.proto\032\031google/a" + + "pi/resource.proto\032(google/cloud/aiplatfo" + + "rm/v1/content.proto\032%google/cloud/aiplat" + + "form/v1/tool.proto\032\036google/protobuf/dura" + + "tion.proto\032\037google/protobuf/timestamp.pr" + + "oto\"\311\007\n\rCachedContent\0221\n\013expire_time\030\t \001" + + "(\0132\032.google.protobuf.TimestampH\000\022-\n\003ttl\030" + + "\n \001(\0132\031.google.protobuf.DurationB\003\340A\004H\000\022" + + "\024\n\004name\030\001 \001(\tB\006\340A\010\340A\005\022\034\n\014display_name\030\013 " + + "\001(\tB\006\340A\001\340A\005\022\022\n\005model\030\002 \001(\tB\003\340A\005\022J\n\022syste" + + "m_instruction\030\003 \001(\0132#.google.cloud.aipla" + + "tform.v1.ContentB\t\340A\001\340A\005\340A\004\022@\n\010contents\030" + + "\004 \003(\0132#.google.cloud.aiplatform.v1.Conte" + + "ntB\t\340A\001\340A\005\340A\004\022:\n\005tools\030\005 \003(\0132 .google.cl" + + "oud.aiplatform.v1.ToolB\t\340A\001\340A\005\340A\004\022F\n\013too" + + "l_config\030\006 \001(\0132&.google.cloud.aiplatform" + + ".v1.ToolConfigB\t\340A\001\340A\005\340A\004\0224\n\013create_time" + + "\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "4\n\013update_time\030\010 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\022T\n\016usage_metadata\030\014 \001(\01327." + + "google.cloud.aiplatform.v1.CachedContent" + + ".UsageMetadataB\003\340A\003\032\223\001\n\rUsageMetadata\022\031\n" + + "\021total_token_count\030\001 \001(\005\022\022\n\ntext_count\030\002" + + " \001(\005\022\023\n\013image_count\030\003 \001(\005\022\036\n\026video_durat" + + "ion_seconds\030\004 \001(\005\022\036\n\026audio_duration_seco" + + "nds\030\005 \001(\005:\225\001\352A\221\001\n\'aiplatform.googleapis." + + "com/CachedContent\022Gprojects/{project}/lo" + + "cations/{location}/cachedContents/{cache" + + "d_content}*\016cachedContents2\rcachedConten" + + "tB\014\n\nexpirationB\320\001\n\036com.google.cloud.aip" + + "latform.v1B\022CachedContentProtoP\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.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.aiplatform.v1.ContentProto.getDescriptor(), + com.google.cloud.aiplatform.v1.ToolProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1_CachedContent_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1_CachedContent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_CachedContent_descriptor, + new java.lang.String[] { + "ExpireTime", + "Ttl", + "Name", + "DisplayName", + "Model", + "SystemInstruction", + "Contents", + "Tools", + "ToolConfig", + "CreateTime", + "UpdateTime", + "UsageMetadata", + "Expiration", + }); + internal_static_google_cloud_aiplatform_v1_CachedContent_UsageMetadata_descriptor = + internal_static_google_cloud_aiplatform_v1_CachedContent_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_aiplatform_v1_CachedContent_UsageMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_CachedContent_UsageMetadata_descriptor, + new java.lang.String[] { + "TotalTokenCount", + "TextCount", + "ImageCount", + "VideoDurationSeconds", + "AudioDurationSeconds", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.aiplatform.v1.ContentProto.getDescriptor(); + com.google.cloud.aiplatform.v1.ToolProto.getDescriptor(); + com.google.protobuf.DurationProto.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/CodeExecutionResult.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CodeExecutionResult.java new file mode 100644 index 000000000000..c5c591406031 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CodeExecutionResult.java @@ -0,0 +1,991 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/tool.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Result of executing the [ExecutableCode].
+ *
+ * Always follows a `part` containing the [ExecutableCode].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.CodeExecutionResult} + */ +public final class CodeExecutionResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.CodeExecutionResult) + CodeExecutionResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use CodeExecutionResult.newBuilder() to construct. + private CodeExecutionResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CodeExecutionResult() { + outcome_ = 0; + output_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CodeExecutionResult(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_CodeExecutionResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_CodeExecutionResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.CodeExecutionResult.class, + com.google.cloud.aiplatform.v1.CodeExecutionResult.Builder.class); + } + + /** + * + * + *
+   * Enumeration of possible outcomes of the code execution.
+   * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1.CodeExecutionResult.Outcome} + */ + public enum Outcome implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified status. This value should not be used.
+     * 
+ * + * OUTCOME_UNSPECIFIED = 0; + */ + OUTCOME_UNSPECIFIED(0), + /** + * + * + *
+     * Code execution completed successfully.
+     * 
+ * + * OUTCOME_OK = 1; + */ + OUTCOME_OK(1), + /** + * + * + *
+     * Code execution finished but with a failure. `stderr` should contain the
+     * reason.
+     * 
+ * + * OUTCOME_FAILED = 2; + */ + OUTCOME_FAILED(2), + /** + * + * + *
+     * Code execution ran for too long, and was cancelled. There may or may not
+     * be a partial output present.
+     * 
+ * + * OUTCOME_DEADLINE_EXCEEDED = 3; + */ + OUTCOME_DEADLINE_EXCEEDED(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified status. This value should not be used.
+     * 
+ * + * OUTCOME_UNSPECIFIED = 0; + */ + public static final int OUTCOME_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Code execution completed successfully.
+     * 
+ * + * OUTCOME_OK = 1; + */ + public static final int OUTCOME_OK_VALUE = 1; + /** + * + * + *
+     * Code execution finished but with a failure. `stderr` should contain the
+     * reason.
+     * 
+ * + * OUTCOME_FAILED = 2; + */ + public static final int OUTCOME_FAILED_VALUE = 2; + /** + * + * + *
+     * Code execution ran for too long, and was cancelled. There may or may not
+     * be a partial output present.
+     * 
+ * + * OUTCOME_DEADLINE_EXCEEDED = 3; + */ + public static final int OUTCOME_DEADLINE_EXCEEDED_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Outcome valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Outcome forNumber(int value) { + switch (value) { + case 0: + return OUTCOME_UNSPECIFIED; + case 1: + return OUTCOME_OK; + case 2: + return OUTCOME_FAILED; + case 3: + return OUTCOME_DEADLINE_EXCEEDED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Outcome findValueByNumber(int number) { + return Outcome.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.CodeExecutionResult.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Outcome[] VALUES = values(); + + public static Outcome 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 Outcome(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1.CodeExecutionResult.Outcome) + } + + public static final int OUTCOME_FIELD_NUMBER = 1; + private int outcome_ = 0; + /** + * + * + *
+   * Required. Outcome of the code execution.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CodeExecutionResult.Outcome outcome = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for outcome. + */ + @java.lang.Override + public int getOutcomeValue() { + return outcome_; + } + /** + * + * + *
+   * Required. Outcome of the code execution.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CodeExecutionResult.Outcome outcome = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The outcome. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.CodeExecutionResult.Outcome getOutcome() { + com.google.cloud.aiplatform.v1.CodeExecutionResult.Outcome result = + com.google.cloud.aiplatform.v1.CodeExecutionResult.Outcome.forNumber(outcome_); + return result == null + ? com.google.cloud.aiplatform.v1.CodeExecutionResult.Outcome.UNRECOGNIZED + : result; + } + + public static final int OUTPUT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object output_ = ""; + /** + * + * + *
+   * Optional. Contains stdout when code execution is successful, stderr or
+   * other description otherwise.
+   * 
+ * + * string output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The output. + */ + @java.lang.Override + public java.lang.String getOutput() { + java.lang.Object ref = output_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + output_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Contains stdout when code execution is successful, stderr or
+   * other description otherwise.
+   * 
+ * + * string output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for output. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOutputBytes() { + java.lang.Object ref = output_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + output_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (outcome_ + != com.google.cloud.aiplatform.v1.CodeExecutionResult.Outcome.OUTCOME_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, outcome_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(output_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, output_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (outcome_ + != com.google.cloud.aiplatform.v1.CodeExecutionResult.Outcome.OUTCOME_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, outcome_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(output_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, output_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.CodeExecutionResult)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.CodeExecutionResult other = + (com.google.cloud.aiplatform.v1.CodeExecutionResult) obj; + + if (outcome_ != other.outcome_) return false; + if (!getOutput().equals(other.getOutput())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OUTCOME_FIELD_NUMBER; + hash = (53 * hash) + outcome_; + hash = (37 * hash) + OUTPUT_FIELD_NUMBER; + hash = (53 * hash) + getOutput().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.CodeExecutionResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CodeExecutionResult parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.CodeExecutionResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CodeExecutionResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.CodeExecutionResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CodeExecutionResult 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.CodeExecutionResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.CodeExecutionResult parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.CodeExecutionResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.CodeExecutionResult parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.CodeExecutionResult 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.CodeExecutionResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1.CodeExecutionResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Result of executing the [ExecutableCode].
+   *
+   * Always follows a `part` containing the [ExecutableCode].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.CodeExecutionResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.CodeExecutionResult) + com.google.cloud.aiplatform.v1.CodeExecutionResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_CodeExecutionResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_CodeExecutionResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.CodeExecutionResult.class, + com.google.cloud.aiplatform.v1.CodeExecutionResult.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.CodeExecutionResult.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + outcome_ = 0; + output_ = ""; + 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_CodeExecutionResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CodeExecutionResult getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.CodeExecutionResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CodeExecutionResult build() { + com.google.cloud.aiplatform.v1.CodeExecutionResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CodeExecutionResult buildPartial() { + com.google.cloud.aiplatform.v1.CodeExecutionResult result = + new com.google.cloud.aiplatform.v1.CodeExecutionResult(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.CodeExecutionResult result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.outcome_ = outcome_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.output_ = output_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.CodeExecutionResult) { + return mergeFrom((com.google.cloud.aiplatform.v1.CodeExecutionResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.CodeExecutionResult other) { + if (other == com.google.cloud.aiplatform.v1.CodeExecutionResult.getDefaultInstance()) + return this; + if (other.outcome_ != 0) { + setOutcomeValue(other.getOutcomeValue()); + } + if (!other.getOutput().isEmpty()) { + output_ = other.output_; + 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: + { + outcome_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + output_ = 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 outcome_ = 0; + /** + * + * + *
+     * Required. Outcome of the code execution.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CodeExecutionResult.Outcome outcome = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for outcome. + */ + @java.lang.Override + public int getOutcomeValue() { + return outcome_; + } + /** + * + * + *
+     * Required. Outcome of the code execution.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CodeExecutionResult.Outcome outcome = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for outcome to set. + * @return This builder for chaining. + */ + public Builder setOutcomeValue(int value) { + outcome_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Outcome of the code execution.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CodeExecutionResult.Outcome outcome = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The outcome. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.CodeExecutionResult.Outcome getOutcome() { + com.google.cloud.aiplatform.v1.CodeExecutionResult.Outcome result = + com.google.cloud.aiplatform.v1.CodeExecutionResult.Outcome.forNumber(outcome_); + return result == null + ? com.google.cloud.aiplatform.v1.CodeExecutionResult.Outcome.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. Outcome of the code execution.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CodeExecutionResult.Outcome outcome = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The outcome to set. + * @return This builder for chaining. + */ + public Builder setOutcome(com.google.cloud.aiplatform.v1.CodeExecutionResult.Outcome value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + outcome_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Outcome of the code execution.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CodeExecutionResult.Outcome outcome = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearOutcome() { + bitField0_ = (bitField0_ & ~0x00000001); + outcome_ = 0; + onChanged(); + return this; + } + + private java.lang.Object output_ = ""; + /** + * + * + *
+     * Optional. Contains stdout when code execution is successful, stderr or
+     * other description otherwise.
+     * 
+ * + * string output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The output. + */ + public java.lang.String getOutput() { + java.lang.Object ref = output_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + output_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Contains stdout when code execution is successful, stderr or
+     * other description otherwise.
+     * 
+ * + * string output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for output. + */ + public com.google.protobuf.ByteString getOutputBytes() { + java.lang.Object ref = output_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + output_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Contains stdout when code execution is successful, stderr or
+     * other description otherwise.
+     * 
+ * + * string output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The output to set. + * @return This builder for chaining. + */ + public Builder setOutput(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + output_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Contains stdout when code execution is successful, stderr or
+     * other description otherwise.
+     * 
+ * + * string output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOutput() { + output_ = getDefaultInstance().getOutput(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Contains stdout when code execution is successful, stderr or
+     * other description otherwise.
+     * 
+ * + * string output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for output to set. + * @return This builder for chaining. + */ + public Builder setOutputBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + output_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.CodeExecutionResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.CodeExecutionResult) + private static final com.google.cloud.aiplatform.v1.CodeExecutionResult DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.CodeExecutionResult(); + } + + public static com.google.cloud.aiplatform.v1.CodeExecutionResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CodeExecutionResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.CodeExecutionResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CodeExecutionResultOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CodeExecutionResultOrBuilder.java new file mode 100644 index 000000000000..6691d43de6d2 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CodeExecutionResultOrBuilder.java @@ -0,0 +1,82 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/tool.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface CodeExecutionResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.CodeExecutionResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Outcome of the code execution.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CodeExecutionResult.Outcome outcome = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for outcome. + */ + int getOutcomeValue(); + /** + * + * + *
+   * Required. Outcome of the code execution.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CodeExecutionResult.Outcome outcome = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The outcome. + */ + com.google.cloud.aiplatform.v1.CodeExecutionResult.Outcome getOutcome(); + + /** + * + * + *
+   * Optional. Contains stdout when code execution is successful, stderr or
+   * other description otherwise.
+   * 
+ * + * string output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The output. + */ + java.lang.String getOutput(); + /** + * + * + *
+   * Optional. Contains stdout when code execution is successful, stderr or
+   * other description otherwise.
+   * 
+ * + * string output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for output. + */ + com.google.protobuf.ByteString getOutputBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java index e405dd663ce2..e09683d04208 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java @@ -128,6 +128,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_RetrievalMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_RetrievalMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ModalityTokenCount_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ModalityTokenCount_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -145,159 +149,168 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "f/duration.proto\032\026google/type/date.proto" + "\"R\n\007Content\022\021\n\004role\030\001 \001(\tB\003\340A\001\0224\n\005parts\030" + "\002 \003(\0132 .google.cloud.aiplatform.v1.PartB" - + "\003\340A\002\"\217\003\n\004Part\022\023\n\004text\030\001 \001(\tB\003\340A\001H\000\022<\n\013in" + + "\003\340A\002\"\262\004\n\004Part\022\023\n\004text\030\001 \001(\tB\003\340A\001H\000\022<\n\013in" + "line_data\030\002 \001(\0132 .google.cloud.aiplatfor" + "m.v1.BlobB\003\340A\001H\000\022>\n\tfile_data\030\003 \001(\0132$.go" + "ogle.cloud.aiplatform.v1.FileDataB\003\340A\001H\000" + "\022F\n\rfunction_call\030\005 \001(\0132(.google.cloud.a" + "iplatform.v1.FunctionCallB\003\340A\001H\000\022N\n\021func" + "tion_response\030\006 \001(\0132,.google.cloud.aipla" - + "tform.v1.FunctionResponseB\003\340A\001H\000\022H\n\016vide" - + "o_metadata\030\004 \001(\0132).google.cloud.aiplatfo" - + "rm.v1.VideoMetadataB\003\340A\001H\001B\006\n\004dataB\n\n\010me" - + "tadata\"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_ty" - + "pe\030\001 \001(\tB\003\340A\002\022\025\n\010file_uri\030\002 \001(\tB\003\340A\002\"y\n\r" - + "VideoMetadata\0224\n\014start_offset\030\001 \001(\0132\031.go" - + "ogle.protobuf.DurationB\003\340A\001\0222\n\nend_offse" - + "t\030\002 \001(\0132\031.google.protobuf.DurationB\003\340A\001\"" - + "\301\n\n\020GenerationConfig\022\035\n\013temperature\030\001 \001(" - + "\002B\003\340A\001H\000\210\001\001\022\027\n\005top_p\030\002 \001(\002B\003\340A\001H\001\210\001\001\022\027\n\005" - + "top_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\340" - + "A\001\022#\n\021response_logprobs\030\022 \001(\010B\003\340A\001H\005\210\001\001\022" - + "\032\n\010logprobs\030\007 \001(\005B\003\340A\001H\006\210\001\001\022\"\n\020presence_" - + "penalty\030\010 \001(\002B\003\340A\001H\007\210\001\001\022#\n\021frequency_pen" - + "alty\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\022E\n" - + "\017response_schema\030\020 \001(\0132\".google.cloud.ai" - + "platform.v1.SchemaB\003\340A\001H\n\210\001\001\022\\\n\016routing_" - + "config\030\021 \001(\0132:.google.cloud.aiplatform.v" - + "1.GenerationConfig.RoutingConfigB\003\340A\001H\013\210" - + "\001\001\032\302\004\n\rRoutingConfig\022_\n\tauto_mode\030\001 \001(\0132" - + "J.google.cloud.aiplatform.v1.GenerationC" - + "onfig.RoutingConfig.AutoRoutingModeH\000\022c\n" - + "\013manual_mode\030\002 \001(\0132L.google.cloud.aiplat" - + "form.v1.GenerationConfig.RoutingConfig.M" - + "anualRoutingModeH\000\032\233\002\n\017AutoRoutingMode\022\210" - + "\001\n\030model_routing_preference\030\001 \001(\0162a.goog" - + "le.cloud.aiplatform.v1.GenerationConfig." - + "RoutingConfig.AutoRoutingMode.ModelRouti" - + "ngPreferenceH\000\210\001\001\"`\n\026ModelRoutingPrefere" - + "nce\022\013\n\007UNKNOWN\020\000\022\026\n\022PRIORITIZE_QUALITY\020\001" - + "\022\014\n\010BALANCED\020\002\022\023\n\017PRIORITIZE_COST\020\003B\033\n\031_" - + "model_routing_preference\032;\n\021ManualRoutin" - + "gMode\022\027\n\nmodel_name\030\001 \001(\tH\000\210\001\001B\r\n\013_model" - + "_nameB\020\n\016routing_configB\016\n\014_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_logpr" - + "obsB\013\n\t_logprobsB\023\n\021_presence_penaltyB\024\n" - + "\022_frequency_penaltyB\007\n\005_seedB\022\n\020_respons" - + "e_schemaB\021\n\017_routing_config\"\353\003\n\rSafetySe" - + "tting\022?\n\010category\030\001 \001(\0162(.google.cloud.a" - + "iplatform.v1.HarmCategoryB\003\340A\002\022T\n\tthresh" - + "old\030\002 \001(\0162<.google.cloud.aiplatform.v1.S" - + "afetySetting.HarmBlockThresholdB\003\340A\002\022N\n\006" - + "method\030\004 \001(\01629.google.cloud.aiplatform.v" - + "1.SafetySetting.HarmBlockMethodB\003\340A\001\"\235\001\n" - + "\022HarmBlockThreshold\022$\n HARM_BLOCK_THRESH" - + "OLD_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_" - + "ONLY_HIGH\020\003\022\016\n\nBLOCK_NONE\020\004\022\007\n\003OFF\020\005\"S\n\017" - + "HarmBlockMethod\022!\n\035HARM_BLOCK_METHOD_UNS" - + "PECIFIED\020\000\022\014\n\010SEVERITY\020\001\022\017\n\013PROBABILITY\020" - + "\002\"\277\004\n\014SafetyRating\022?\n\010category\030\001 \001(\0162(.g" - + "oogle.cloud.aiplatform.v1.HarmCategoryB\003" - + "\340A\003\022R\n\013probability\030\002 \001(\01628.google.cloud." - + "aiplatform.v1.SafetyRating.HarmProbabili" - + "tyB\003\340A\003\022\036\n\021probability_score\030\005 \001(\002B\003\340A\003\022" - + "L\n\010severity\030\006 \001(\01625.google.cloud.aiplatf" - + "orm.v1.SafetyRating.HarmSeverityB\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_PROB" - + "ABILITY_UNSPECIFIED\020\000\022\016\n\nNEGLIGIBLE\020\001\022\007\n" - + "\003LOW\020\002\022\n\n\006MEDIUM\020\003\022\010\n\004HIGH\020\004\"\224\001\n\014HarmSev" - + "erity\022\035\n\031HARM_SEVERITY_UNSPECIFIED\020\000\022\034\n\030" - + "HARM_SEVERITY_NEGLIGIBLE\020\001\022\025\n\021HARM_SEVER" - + "ITY_LOW\020\002\022\030\n\024HARM_SEVERITY_MEDIUM\020\003\022\026\n\022H" - + "ARM_SEVERITY_HIGH\020\004\"P\n\020CitationMetadata\022" - + "<\n\tcitations\030\001 \003(\0132$.google.cloud.aiplat" - + "form.v1.CitationB\003\340A\003\"\252\001\n\010Citation\022\030\n\013st" - + "art_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\340" - + "A\003\022\024\n\007license\030\005 \001(\tB\003\340A\003\0220\n\020publication_" - + "date\030\006 \001(\0132\021.google.type.DateB\003\340A\003\"\374\005\n\tC" - + "andidate\022\022\n\005index\030\001 \001(\005B\003\340A\003\0229\n\007content\030" - + "\002 \001(\0132#.google.cloud.aiplatform.v1.Conte" - + "ntB\003\340A\003\022\022\n\005score\030\010 \001(\001B\003\340A\003\022\031\n\014avg_logpr" - + "obs\030\t \001(\001B\003\340A\003\022H\n\017logprobs_result\030\n \001(\0132" - + "*.google.cloud.aiplatform.v1.LogprobsRes" - + "ultB\003\340A\003\022N\n\rfinish_reason\030\003 \001(\01622.google" - + ".cloud.aiplatform.v1.Candidate.FinishRea" - + "sonB\003\340A\003\022E\n\016safety_ratings\030\004 \003(\0132(.googl" - + "e.cloud.aiplatform.v1.SafetyRatingB\003\340A\003\022" - + " \n\016finish_message\030\005 \001(\tB\003\340A\003H\000\210\001\001\022L\n\021cit" - + "ation_metadata\030\006 \001(\0132,.google.cloud.aipl" - + "atform.v1.CitationMetadataB\003\340A\003\022N\n\022groun" - + "ding_metadata\030\007 \001(\0132-.google.cloud.aipla" - + "tform.v1.GroundingMetadataB\003\340A\003\"\274\001\n\014Fini" - + "shReason\022\035\n\031FINISH_REASON_UNSPECIFIED\020\000\022" - + "\010\n\004STOP\020\001\022\016\n\nMAX_TOKENS\020\002\022\n\n\006SAFETY\020\003\022\016\n" - + "\nRECITATION\020\004\022\t\n\005OTHER\020\005\022\r\n\tBLOCKLIST\020\006\022" - + "\026\n\022PROHIBITED_CONTENT\020\007\022\010\n\004SPII\020\010\022\033\n\027MAL" - + "FORMED_FUNCTION_CALL\020\tB\021\n\017_finish_messag" - + "e\"\217\003\n\016LogprobsResult\022P\n\016top_candidates\030\001" - + " \003(\01328.google.cloud.aiplatform.v1.Logpro" - + "bsResult.TopCandidates\022O\n\021chosen_candida" - + "tes\030\002 \003(\01324.google.cloud.aiplatform.v1.L" - + "ogprobsResult.Candidate\032\177\n\tCandidate\022\022\n\005" - + "token\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\032Y\n\rTopC" - + "andidates\022H\n\ncandidates\030\001 \003(\01324.google.c" - + "loud.aiplatform.v1.LogprobsResult.Candid" - + "ate\"g\n\007Segment\022\027\n\npart_index\030\001 \001(\005B\003\340A\003\022" - + "\030\n\013start_index\030\002 \001(\005B\003\340A\003\022\026\n\tend_index\030\003" - + " \001(\005B\003\340A\003\022\021\n\004text\030\004 \001(\tB\003\340A\003\"\336\002\n\016Groundi" - + "ngChunk\022=\n\003web\030\001 \001(\0132..google.cloud.aipl" - + "atform.v1.GroundingChunk.WebH\000\022X\n\021retrie" - + "ved_context\030\002 \001(\0132;.google.cloud.aiplatf" - + "orm.v1.GroundingChunk.RetrievedContextH\000" - + "\032=\n\003Web\022\020\n\003uri\030\001 \001(\tH\000\210\001\001\022\022\n\005title\030\002 \001(\t" - + "H\001\210\001\001B\006\n\004_uriB\010\n\006_title\032f\n\020RetrievedCont" - + "ext\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\nchunk_type\"\225\001\n\020GroundingSuppo" - + "rt\0229\n\007segment\030\001 \001(\0132#.google.cloud.aipla" - + "tform.v1.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_segment\"\243\003\n\021GroundingMetadata\022\037\n\022w" - + "eb_search_queries\030\001 \003(\tB\003\340A\001\022R\n\022search_e" - + "ntry_point\030\004 \001(\0132,.google.cloud.aiplatfo" - + "rm.v1.SearchEntryPointB\003\340A\001H\000\210\001\001\022D\n\020grou" - + "nding_chunks\030\005 \003(\0132*.google.cloud.aiplat" - + "form.v1.GroundingChunk\022M\n\022grounding_supp" - + "orts\030\006 \003(\0132,.google.cloud.aiplatform.v1." - + "GroundingSupportB\003\340A\001\022V\n\022retrieval_metad" - + "ata\030\007 \001(\0132-.google.cloud.aiplatform.v1.R" - + "etrievalMetadataB\006\340A\001\340A\003H\001\210\001\001B\025\n\023_search" - + "_entry_pointB\025\n\023_retrieval_metadata\"H\n\020S" - + "earchEntryPoint\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\021Retriev" - + "alMetadata\0222\n%google_search_dynamic_retr" - + "ieval_score\030\002 \001(\002B\003\340A\001*\327\001\n\014HarmCategory\022" - + "\035\n\031HARM_CATEGORY_UNSPECIFIED\020\000\022\035\n\031HARM_C" - + "ATEGORY_HATE_SPEECH\020\001\022#\n\037HARM_CATEGORY_D" - + "ANGEROUS_CONTENT\020\002\022\034\n\030HARM_CATEGORY_HARA" - + "SSMENT\020\003\022#\n\037HARM_CATEGORY_SEXUALLY_EXPLI" - + "CIT\020\004\022!\n\035HARM_CATEGORY_CIVIC_INTEGRITY\020\005" - + "B\312\001\n\036com.google.cloud.aiplatform.v1B\014Con" - + "tentProtoP\001Z>cloud.google.com/go/aiplatf" - + "orm/apiv1/aiplatformpb;aiplatformpb\252\002\032Go" - + "ogle.Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\" - + "AIPlatform\\V1\352\002\035Google::Cloud::AIPlatfor" - + "m::V1b\006proto3" + + "tform.v1.FunctionResponseB\003\340A\001H\000\022J\n\017exec" + + "utable_code\030\010 \001(\0132*.google.cloud.aiplatf" + + "orm.v1.ExecutableCodeB\003\340A\001H\000\022U\n\025code_exe" + + "cution_result\030\t \001(\0132/.google.cloud.aipla" + + "tform.v1.CodeExecutionResultB\003\340A\001H\000\022H\n\016v" + + "ideo_metadata\030\004 \001(\0132).google.cloud.aipla" + + "tform.v1.VideoMetadataB\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\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_of" + + "fset\030\002 \001(\0132\031.google.protobuf.DurationB\003\340" + + "A\001\"\301\n\n\020GenerationConfig\022\035\n\013temperature\030\001" + + " \001(\002B\003\340A\001H\000\210\001\001\022\027\n\005top_p\030\002 \001(\002B\003\340A\001H\001\210\001\001\022" + + "\027\n\005top_k\030\003 \001(\002B\003\340A\001H\002\210\001\001\022!\n\017candidate_co" + + "unt\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(\t" + + "B\003\340A\001\022#\n\021response_logprobs\030\022 \001(\010B\003\340A\001H\005\210" + + "\001\001\022\032\n\010logprobs\030\007 \001(\005B\003\340A\001H\006\210\001\001\022\"\n\020presen" + + "ce_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\340" + + "A\001H\t\210\001\001\022\037\n\022response_mime_type\030\r \001(\tB\003\340A\001" + + "\022E\n\017response_schema\030\020 \001(\0132\".google.cloud" + + ".aiplatform.v1.SchemaB\003\340A\001H\n\210\001\001\022\\\n\016routi" + + "ng_config\030\021 \001(\0132:.google.cloud.aiplatfor" + + "m.v1.GenerationConfig.RoutingConfigB\003\340A\001" + + "H\013\210\001\001\032\302\004\n\rRoutingConfig\022_\n\tauto_mode\030\001 \001" + + "(\0132J.google.cloud.aiplatform.v1.Generati" + + "onConfig.RoutingConfig.AutoRoutingModeH\000" + + "\022c\n\013manual_mode\030\002 \001(\0132L.google.cloud.aip" + + "latform.v1.GenerationConfig.RoutingConfi" + + "g.ManualRoutingModeH\000\032\233\002\n\017AutoRoutingMod" + + "e\022\210\001\n\030model_routing_preference\030\001 \001(\0162a.g" + + "oogle.cloud.aiplatform.v1.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_config\"\353\003\n\rSafet" + + "ySetting\022?\n\010category\030\001 \001(\0162(.google.clou" + + "d.aiplatform.v1.HarmCategoryB\003\340A\002\022T\n\tthr" + + "eshold\030\002 \001(\0162<.google.cloud.aiplatform.v" + + "1.SafetySetting.HarmBlockThresholdB\003\340A\002\022" + + "N\n\006method\030\004 \001(\01629.google.cloud.aiplatfor" + + "m.v1.SafetySetting.HarmBlockMethodB\003\340A\001\"" + + "\235\001\n\022HarmBlockThreshold\022$\n HARM_BLOCK_THR" + + "ESHOLD_UNSPECIFIED\020\000\022\027\n\023BLOCK_LOW_AND_AB" + + "OVE\020\001\022\032\n\026BLOCK_MEDIUM_AND_ABOVE\020\002\022\023\n\017BLO" + + "CK_ONLY_HIGH\020\003\022\016\n\nBLOCK_NONE\020\004\022\007\n\003OFF\020\005\"" + + "S\n\017HarmBlockMethod\022!\n\035HARM_BLOCK_METHOD_" + + "UNSPECIFIED\020\000\022\014\n\010SEVERITY\020\001\022\017\n\013PROBABILI" + + "TY\020\002\"\277\004\n\014SafetyRating\022?\n\010category\030\001 \001(\0162" + + "(.google.cloud.aiplatform.v1.HarmCategor" + + "yB\003\340A\003\022R\n\013probability\030\002 \001(\01628.google.clo" + + "ud.aiplatform.v1.SafetyRating.HarmProbab" + + "ilityB\003\340A\003\022\036\n\021probability_score\030\005 \001(\002B\003\340" + + "A\003\022L\n\010severity\030\006 \001(\01625.google.cloud.aipl" + + "atform.v1.SafetyRating.HarmSeverityB\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_P" + + "ROBABILITY_UNSPECIFIED\020\000\022\016\n\nNEGLIGIBLE\020\001" + + "\022\007\n\003LOW\020\002\022\n\n\006MEDIUM\020\003\022\010\n\004HIGH\020\004\"\224\001\n\014Harm" + + "Severity\022\035\n\031HARM_SEVERITY_UNSPECIFIED\020\000\022" + + "\034\n\030HARM_SEVERITY_NEGLIGIBLE\020\001\022\025\n\021HARM_SE" + + "VERITY_LOW\020\002\022\030\n\024HARM_SEVERITY_MEDIUM\020\003\022\026" + + "\n\022HARM_SEVERITY_HIGH\020\004\"P\n\020CitationMetada" + + "ta\022<\n\tcitations\030\001 \003(\0132$.google.cloud.aip" + + "latform.v1.CitationB\003\340A\003\"\252\001\n\010Citation\022\030\n" + + "\013start_index\030\001 \001(\005B\003\340A\003\022\026\n\tend_index\030\002 \001" + + "(\005B\003\340A\003\022\020\n\003uri\030\003 \001(\tB\003\340A\003\022\022\n\005title\030\004 \001(\t" + + "B\003\340A\003\022\024\n\007license\030\005 \001(\tB\003\340A\003\0220\n\020publicati" + + "on_date\030\006 \001(\0132\021.google.type.DateB\003\340A\003\"\374\005" + + "\n\tCandidate\022\022\n\005index\030\001 \001(\005B\003\340A\003\0229\n\007conte" + + "nt\030\002 \001(\0132#.google.cloud.aiplatform.v1.Co" + + "ntentB\003\340A\003\022\022\n\005score\030\010 \001(\001B\003\340A\003\022\031\n\014avg_lo" + + "gprobs\030\t \001(\001B\003\340A\003\022H\n\017logprobs_result\030\n \001" + + "(\0132*.google.cloud.aiplatform.v1.Logprobs" + + "ResultB\003\340A\003\022N\n\rfinish_reason\030\003 \001(\01622.goo" + + "gle.cloud.aiplatform.v1.Candidate.Finish" + + "ReasonB\003\340A\003\022E\n\016safety_ratings\030\004 \003(\0132(.go" + + "ogle.cloud.aiplatform.v1.SafetyRatingB\003\340" + + "A\003\022 \n\016finish_message\030\005 \001(\tB\003\340A\003H\000\210\001\001\022L\n\021" + + "citation_metadata\030\006 \001(\0132,.google.cloud.a" + + "iplatform.v1.CitationMetadataB\003\340A\003\022N\n\022gr" + + "ounding_metadata\030\007 \001(\0132-.google.cloud.ai" + + "platform.v1.GroundingMetadataB\003\340A\003\"\274\001\n\014F" + + "inishReason\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\027" + + "MALFORMED_FUNCTION_CALL\020\tB\021\n\017_finish_mes" + + "sage\"\217\003\n\016LogprobsResult\022P\n\016top_candidate" + + "s\030\001 \003(\01328.google.cloud.aiplatform.v1.Log" + + "probsResult.TopCandidates\022O\n\021chosen_cand" + + "idates\030\002 \003(\01324.google.cloud.aiplatform.v" + + "1.LogprobsResult.Candidate\032\177\n\tCandidate\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_tok" + + "enB\013\n\t_token_idB\022\n\020_log_probability\032Y\n\rT" + + "opCandidates\022H\n\ncandidates\030\001 \003(\01324.googl" + + "e.cloud.aiplatform.v1.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\"\336\002\n\016Grou" + + "ndingChunk\022=\n\003web\030\001 \001(\0132..google.cloud.a" + + "iplatform.v1.GroundingChunk.WebH\000\022X\n\021ret" + + "rieved_context\030\002 \001(\0132;.google.cloud.aipl" + + "atform.v1.GroundingChunk.RetrievedContex" + + "tH\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\020RetrievedC" + + "ontext\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_titl" + + "eB\007\n\005_textB\014\n\nchunk_type\"\225\001\n\020GroundingSu" + + "pport\0229\n\007segment\030\001 \001(\0132#.google.cloud.ai" + + "platform.v1.SegmentH\000\210\001\001\022\037\n\027grounding_ch" + + "unk_indices\030\002 \003(\005\022\031\n\021confidence_scores\030\003" + + " \003(\002B\n\n\010_segment\"\243\003\n\021GroundingMetadata\022\037" + + "\n\022web_search_queries\030\001 \003(\tB\003\340A\001\022R\n\022searc" + + "h_entry_point\030\004 \001(\0132,.google.cloud.aipla" + + "tform.v1.SearchEntryPointB\003\340A\001H\000\210\001\001\022D\n\020g" + + "rounding_chunks\030\005 \003(\0132*.google.cloud.aip" + + "latform.v1.GroundingChunk\022M\n\022grounding_s" + + "upports\030\006 \003(\0132,.google.cloud.aiplatform." + + "v1.GroundingSupportB\003\340A\001\022V\n\022retrieval_me" + + "tadata\030\007 \001(\0132-.google.cloud.aiplatform.v" + + "1.RetrievalMetadataB\006\340A\001\340A\003H\001\210\001\001B\025\n\023_sea" + + "rch_entry_pointB\025\n\023_retrieval_metadata\"H" + + "\n\020SearchEntryPoint\022\035\n\020rendered_content\030\001" + + " \001(\tB\003\340A\001\022\025\n\010sdk_blob\030\002 \001(\014B\003\340A\001\"G\n\021Retr" + + "ievalMetadata\0222\n%google_search_dynamic_r" + + "etrieval_score\030\002 \001(\002B\003\340A\001\"a\n\022ModalityTok" + + "enCount\0226\n\010modality\030\001 \001(\0162$.google.cloud" + + ".aiplatform.v1.Modality\022\023\n\013token_count\030\002" + + " \001(\005*\327\001\n\014HarmCategory\022\035\n\031HARM_CATEGORY_U" + + "NSPECIFIED\020\000\022\035\n\031HARM_CATEGORY_HATE_SPEEC" + + "H\020\001\022#\n\037HARM_CATEGORY_DANGEROUS_CONTENT\020\002" + + "\022\034\n\030HARM_CATEGORY_HARASSMENT\020\003\022#\n\037HARM_C" + + "ATEGORY_SEXUALLY_EXPLICIT\020\004\022!\n\035HARM_CATE" + + "GORY_CIVIC_INTEGRITY\020\005*]\n\010Modality\022\030\n\024MO" + + "DALITY_UNSPECIFIED\020\000\022\010\n\004TEXT\020\001\022\t\n\005IMAGE\020" + + "\002\022\t\n\005VIDEO\020\003\022\t\n\005AUDIO\020\004\022\014\n\010DOCUMENT\020\005B\312\001" + + "\n\036com.google.cloud.aiplatform.v1B\014Conten" + + "tProtoP\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( @@ -328,6 +341,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FileData", "FunctionCall", "FunctionResponse", + "ExecutableCode", + "CodeExecutionResult", "VideoMetadata", "Data", "Metadata", @@ -556,6 +571,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "GoogleSearchDynamicRetrievalScore", }); + internal_static_google_cloud_aiplatform_v1_ModalityTokenCount_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_aiplatform_v1_ModalityTokenCount_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_ModalityTokenCount_descriptor, + new java.lang.String[] { + "Modality", "TokenCount", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CountTokensResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CountTokensResponse.java index 85d1f7c5139c..f32c0a86f7af 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CountTokensResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CountTokensResponse.java @@ -38,7 +38,9 @@ private CountTokensResponse(com.google.protobuf.GeneratedMessageV3.Builder bu super(builder); } - private CountTokensResponse() {} + private CountTokensResponse() { + promptTokensDetails_ = java.util.Collections.emptyList(); + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -98,6 +100,89 @@ public int getTotalBillableCharacters() { return totalBillableCharacters_; } + public static final int PROMPT_TOKENS_DETAILS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List promptTokensDetails_; + /** + * + * + *
+   * Output only. List of modalities that were processed in the request input.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getPromptTokensDetailsList() { + return promptTokensDetails_; + } + /** + * + * + *
+   * Output only. List of modalities that were processed in the request input.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getPromptTokensDetailsOrBuilderList() { + return promptTokensDetails_; + } + /** + * + * + *
+   * Output only. List of modalities that were processed in the request input.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getPromptTokensDetailsCount() { + return promptTokensDetails_.size(); + } + /** + * + * + *
+   * Output only. List of modalities that were processed in the request input.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ModalityTokenCount getPromptTokensDetails(int index) { + return promptTokensDetails_.get(index); + } + /** + * + * + *
+   * Output only. List of modalities that were processed in the request input.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder getPromptTokensDetailsOrBuilder( + int index) { + return promptTokensDetails_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -118,6 +203,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (totalBillableCharacters_ != 0) { output.writeInt32(2, totalBillableCharacters_); } + for (int i = 0; i < promptTokensDetails_.size(); i++) { + output.writeMessage(3, promptTokensDetails_.get(i)); + } getUnknownFields().writeTo(output); } @@ -133,6 +221,10 @@ public int getSerializedSize() { if (totalBillableCharacters_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, totalBillableCharacters_); } + for (int i = 0; i < promptTokensDetails_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, promptTokensDetails_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -151,6 +243,7 @@ public boolean equals(final java.lang.Object obj) { if (getTotalTokens() != other.getTotalTokens()) return false; if (getTotalBillableCharacters() != other.getTotalBillableCharacters()) return false; + if (!getPromptTokensDetailsList().equals(other.getPromptTokensDetailsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -166,6 +259,10 @@ public int hashCode() { hash = (53 * hash) + getTotalTokens(); hash = (37 * hash) + TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER; hash = (53 * hash) + getTotalBillableCharacters(); + if (getPromptTokensDetailsCount() > 0) { + hash = (37 * hash) + PROMPT_TOKENS_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getPromptTokensDetailsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -307,6 +404,13 @@ public Builder clear() { bitField0_ = 0; totalTokens_ = 0; totalBillableCharacters_ = 0; + if (promptTokensDetailsBuilder_ == null) { + promptTokensDetails_ = java.util.Collections.emptyList(); + } else { + promptTokensDetails_ = null; + promptTokensDetailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -334,6 +438,7 @@ public com.google.cloud.aiplatform.v1.CountTokensResponse build() { public com.google.cloud.aiplatform.v1.CountTokensResponse buildPartial() { com.google.cloud.aiplatform.v1.CountTokensResponse result = new com.google.cloud.aiplatform.v1.CountTokensResponse(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -341,6 +446,19 @@ public com.google.cloud.aiplatform.v1.CountTokensResponse buildPartial() { return result; } + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.CountTokensResponse result) { + if (promptTokensDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + promptTokensDetails_ = java.util.Collections.unmodifiableList(promptTokensDetails_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.promptTokensDetails_ = promptTokensDetails_; + } else { + result.promptTokensDetails_ = promptTokensDetailsBuilder_.build(); + } + } + private void buildPartial0(com.google.cloud.aiplatform.v1.CountTokensResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -403,6 +521,33 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.CountTokensResponse othe if (other.getTotalBillableCharacters() != 0) { setTotalBillableCharacters(other.getTotalBillableCharacters()); } + if (promptTokensDetailsBuilder_ == null) { + if (!other.promptTokensDetails_.isEmpty()) { + if (promptTokensDetails_.isEmpty()) { + promptTokensDetails_ = other.promptTokensDetails_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.addAll(other.promptTokensDetails_); + } + onChanged(); + } + } else { + if (!other.promptTokensDetails_.isEmpty()) { + if (promptTokensDetailsBuilder_.isEmpty()) { + promptTokensDetailsBuilder_.dispose(); + promptTokensDetailsBuilder_ = null; + promptTokensDetails_ = other.promptTokensDetails_; + bitField0_ = (bitField0_ & ~0x00000004); + promptTokensDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPromptTokensDetailsFieldBuilder() + : null; + } else { + promptTokensDetailsBuilder_.addAllMessages(other.promptTokensDetails_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -441,6 +586,20 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 16 + case 26: + { + com.google.cloud.aiplatform.v1.ModalityTokenCount m = + input.readMessage( + com.google.cloud.aiplatform.v1.ModalityTokenCount.parser(), + extensionRegistry); + if (promptTokensDetailsBuilder_ == null) { + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.add(m); + } else { + promptTokensDetailsBuilder_.addMessage(m); + } + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -569,6 +728,405 @@ public Builder clearTotalBillableCharacters() { return this; } + private java.util.List promptTokensDetails_ = + java.util.Collections.emptyList(); + + private void ensurePromptTokensDetailsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + promptTokensDetails_ = + new java.util.ArrayList( + promptTokensDetails_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.ModalityTokenCount, + com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder> + promptTokensDetailsBuilder_; + + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getPromptTokensDetailsList() { + if (promptTokensDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(promptTokensDetails_); + } else { + return promptTokensDetailsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getPromptTokensDetailsCount() { + if (promptTokensDetailsBuilder_ == null) { + return promptTokensDetails_.size(); + } else { + return promptTokensDetailsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ModalityTokenCount getPromptTokensDetails(int index) { + if (promptTokensDetailsBuilder_ == null) { + return promptTokensDetails_.get(index); + } else { + return promptTokensDetailsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPromptTokensDetails( + int index, com.google.cloud.aiplatform.v1.ModalityTokenCount value) { + if (promptTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.set(index, value); + onChanged(); + } else { + promptTokensDetailsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPromptTokensDetails( + int index, com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder builderForValue) { + if (promptTokensDetailsBuilder_ == null) { + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + promptTokensDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPromptTokensDetails(com.google.cloud.aiplatform.v1.ModalityTokenCount value) { + if (promptTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.add(value); + onChanged(); + } else { + promptTokensDetailsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPromptTokensDetails( + int index, com.google.cloud.aiplatform.v1.ModalityTokenCount value) { + if (promptTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.add(index, value); + onChanged(); + } else { + promptTokensDetailsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPromptTokensDetails( + com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder builderForValue) { + if (promptTokensDetailsBuilder_ == null) { + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.add(builderForValue.build()); + onChanged(); + } else { + promptTokensDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPromptTokensDetails( + int index, com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder builderForValue) { + if (promptTokensDetailsBuilder_ == null) { + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + promptTokensDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllPromptTokensDetails( + java.lang.Iterable values) { + if (promptTokensDetailsBuilder_ == null) { + ensurePromptTokensDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, promptTokensDetails_); + onChanged(); + } else { + promptTokensDetailsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPromptTokensDetails() { + if (promptTokensDetailsBuilder_ == null) { + promptTokensDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + promptTokensDetailsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removePromptTokensDetails(int index) { + if (promptTokensDetailsBuilder_ == null) { + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.remove(index); + onChanged(); + } else { + promptTokensDetailsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder getPromptTokensDetailsBuilder( + int index) { + return getPromptTokensDetailsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder + getPromptTokensDetailsOrBuilder(int index) { + if (promptTokensDetailsBuilder_ == null) { + return promptTokensDetails_.get(index); + } else { + return promptTokensDetailsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getPromptTokensDetailsOrBuilderList() { + if (promptTokensDetailsBuilder_ != null) { + return promptTokensDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(promptTokensDetails_); + } + } + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder + addPromptTokensDetailsBuilder() { + return getPromptTokensDetailsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1.ModalityTokenCount.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder addPromptTokensDetailsBuilder( + int index) { + return getPromptTokensDetailsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1.ModalityTokenCount.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getPromptTokensDetailsBuilderList() { + return getPromptTokensDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.ModalityTokenCount, + com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder> + getPromptTokensDetailsFieldBuilder() { + if (promptTokensDetailsBuilder_ == null) { + promptTokensDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.ModalityTokenCount, + com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder>( + promptTokensDetails_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + promptTokensDetails_ = null; + } + return promptTokensDetailsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CountTokensResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CountTokensResponseOrBuilder.java index 2c5d8c32a8a7..02b20a368edb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CountTokensResponseOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CountTokensResponseOrBuilder.java @@ -50,4 +50,67 @@ public interface CountTokensResponseOrBuilder * @return The totalBillableCharacters. */ int getTotalBillableCharacters(); + + /** + * + * + *
+   * Output only. List of modalities that were processed in the request input.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getPromptTokensDetailsList(); + /** + * + * + *
+   * Output only. List of modalities that were processed in the request input.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.ModalityTokenCount getPromptTokensDetails(int index); + /** + * + * + *
+   * Output only. List of modalities that were processed in the request input.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getPromptTokensDetailsCount(); + /** + * + * + *
+   * Output only. List of modalities that were processed in the request input.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getPromptTokensDetailsOrBuilderList(); + /** + * + * + *
+   * Output only. List of modalities that were processed in the request input.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder getPromptTokensDetailsOrBuilder( + int index); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateCachedContentRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateCachedContentRequest.java new file mode 100644 index 000000000000..0341e71e4c8b --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateCachedContentRequest.java @@ -0,0 +1,948 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/gen_ai_cache_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for
+ * [GenAiCacheService.CreateCachedContent][google.cloud.aiplatform.v1.GenAiCacheService.CreateCachedContent].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.CreateCachedContentRequest} + */ +public final class CreateCachedContentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.CreateCachedContentRequest) + CreateCachedContentRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateCachedContentRequest.newBuilder() to construct. + private CreateCachedContentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateCachedContentRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateCachedContentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.GenAiCacheServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateCachedContentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.GenAiCacheServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateCachedContentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.CreateCachedContentRequest.class, + com.google.cloud.aiplatform.v1.CreateCachedContentRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The parent resource where the cached content will be created
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The parent resource where the cached content will be created
+   * 
+ * + * + * 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 CACHED_CONTENT_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1.CachedContent cachedContent_; + /** + * + * + *
+   * Required. The cached content to create
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent cached_content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the cachedContent field is set. + */ + @java.lang.Override + public boolean hasCachedContent() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. The cached content to create
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent cached_content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The cachedContent. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.CachedContent getCachedContent() { + return cachedContent_ == null + ? com.google.cloud.aiplatform.v1.CachedContent.getDefaultInstance() + : cachedContent_; + } + /** + * + * + *
+   * Required. The cached content to create
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent cached_content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.CachedContentOrBuilder getCachedContentOrBuilder() { + return cachedContent_ == null + ? com.google.cloud.aiplatform.v1.CachedContent.getDefaultInstance() + : cachedContent_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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, getCachedContent()); + } + 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, getCachedContent()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.CreateCachedContentRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.CreateCachedContentRequest other = + (com.google.cloud.aiplatform.v1.CreateCachedContentRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasCachedContent() != other.hasCachedContent()) return false; + if (hasCachedContent()) { + if (!getCachedContent().equals(other.getCachedContent())) return false; + } + if (!getUnknownFields().equals(other.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 (hasCachedContent()) { + hash = (37 * hash) + CACHED_CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getCachedContent().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.CreateCachedContentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CreateCachedContentRequest parseFrom( + 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.CreateCachedContentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CreateCachedContentRequest parseFrom( + com.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.CreateCachedContentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CreateCachedContentRequest 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.CreateCachedContentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.CreateCachedContentRequest parseFrom( + java.io.InputStream 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.CreateCachedContentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.CreateCachedContentRequest parseDelimitedFrom( + java.io.InputStream 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.CreateCachedContentRequest 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.CreateCachedContentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.CreateCachedContentRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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
+   * [GenAiCacheService.CreateCachedContent][google.cloud.aiplatform.v1.GenAiCacheService.CreateCachedContent].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.CreateCachedContentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.CreateCachedContentRequest) + com.google.cloud.aiplatform.v1.CreateCachedContentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.GenAiCacheServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateCachedContentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.GenAiCacheServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateCachedContentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.CreateCachedContentRequest.class, + com.google.cloud.aiplatform.v1.CreateCachedContentRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.CreateCachedContentRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCachedContentFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + cachedContent_ = null; + if (cachedContentBuilder_ != null) { + cachedContentBuilder_.dispose(); + cachedContentBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.GenAiCacheServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateCachedContentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CreateCachedContentRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.CreateCachedContentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CreateCachedContentRequest build() { + com.google.cloud.aiplatform.v1.CreateCachedContentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CreateCachedContentRequest buildPartial() { + com.google.cloud.aiplatform.v1.CreateCachedContentRequest result = + new com.google.cloud.aiplatform.v1.CreateCachedContentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.CreateCachedContentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.cachedContent_ = + cachedContentBuilder_ == null ? cachedContent_ : cachedContentBuilder_.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.CreateCachedContentRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.CreateCachedContentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.CreateCachedContentRequest other) { + if (other == com.google.cloud.aiplatform.v1.CreateCachedContentRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCachedContent()) { + mergeCachedContent(other.getCachedContent()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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(getCachedContentFieldBuilder().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 parent resource where the cached content will be created
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The parent resource where the cached content will be created
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The parent resource where the cached content will be created
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent resource where the cached content will be created
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent resource where the cached content will be created
+     * 
+ * + * + * 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.CachedContent cachedContent_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.CachedContent, + com.google.cloud.aiplatform.v1.CachedContent.Builder, + com.google.cloud.aiplatform.v1.CachedContentOrBuilder> + cachedContentBuilder_; + /** + * + * + *
+     * Required. The cached content to create
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent cached_content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the cachedContent field is set. + */ + public boolean hasCachedContent() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The cached content to create
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent cached_content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The cachedContent. + */ + public com.google.cloud.aiplatform.v1.CachedContent getCachedContent() { + if (cachedContentBuilder_ == null) { + return cachedContent_ == null + ? com.google.cloud.aiplatform.v1.CachedContent.getDefaultInstance() + : cachedContent_; + } else { + return cachedContentBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The cached content to create
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent cached_content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCachedContent(com.google.cloud.aiplatform.v1.CachedContent value) { + if (cachedContentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cachedContent_ = value; + } else { + cachedContentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The cached content to create
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent cached_content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCachedContent( + com.google.cloud.aiplatform.v1.CachedContent.Builder builderForValue) { + if (cachedContentBuilder_ == null) { + cachedContent_ = builderForValue.build(); + } else { + cachedContentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The cached content to create
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent cached_content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeCachedContent(com.google.cloud.aiplatform.v1.CachedContent value) { + if (cachedContentBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && cachedContent_ != null + && cachedContent_ + != com.google.cloud.aiplatform.v1.CachedContent.getDefaultInstance()) { + getCachedContentBuilder().mergeFrom(value); + } else { + cachedContent_ = value; + } + } else { + cachedContentBuilder_.mergeFrom(value); + } + if (cachedContent_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. The cached content to create
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent cached_content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCachedContent() { + bitField0_ = (bitField0_ & ~0x00000002); + cachedContent_ = null; + if (cachedContentBuilder_ != null) { + cachedContentBuilder_.dispose(); + cachedContentBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The cached content to create
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent cached_content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.CachedContent.Builder getCachedContentBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCachedContentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The cached content to create
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent cached_content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.CachedContentOrBuilder getCachedContentOrBuilder() { + if (cachedContentBuilder_ != null) { + return cachedContentBuilder_.getMessageOrBuilder(); + } else { + return cachedContent_ == null + ? com.google.cloud.aiplatform.v1.CachedContent.getDefaultInstance() + : cachedContent_; + } + } + /** + * + * + *
+     * Required. The cached content to create
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent cached_content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.CachedContent, + com.google.cloud.aiplatform.v1.CachedContent.Builder, + com.google.cloud.aiplatform.v1.CachedContentOrBuilder> + getCachedContentFieldBuilder() { + if (cachedContentBuilder_ == null) { + cachedContentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.CachedContent, + com.google.cloud.aiplatform.v1.CachedContent.Builder, + com.google.cloud.aiplatform.v1.CachedContentOrBuilder>( + getCachedContent(), getParentForChildren(), isClean()); + cachedContent_ = null; + } + return cachedContentBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @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.CreateCachedContentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.CreateCachedContentRequest) + private static final com.google.cloud.aiplatform.v1.CreateCachedContentRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.CreateCachedContentRequest(); + } + + public static com.google.cloud.aiplatform.v1.CreateCachedContentRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCachedContentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.CreateCachedContentRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateCachedContentRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateCachedContentRequestOrBuilder.java new file mode 100644 index 000000000000..8d1a76444b3d --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateCachedContentRequestOrBuilder.java @@ -0,0 +1,96 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/gen_ai_cache_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface CreateCachedContentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.CreateCachedContentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource where the cached content will be created
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent resource where the cached content will be created
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The cached content to create
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent cached_content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the cachedContent field is set. + */ + boolean hasCachedContent(); + /** + * + * + *
+   * Required. The cached content to create
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent cached_content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The cachedContent. + */ + com.google.cloud.aiplatform.v1.CachedContent getCachedContent(); + /** + * + * + *
+   * Required. The cached content to create
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent cached_content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1.CachedContentOrBuilder getCachedContentOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateReasoningEngineOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateReasoningEngineOperationMetadata.java new file mode 100644 index 000000000000..d99ae8ffd2e7 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateReasoningEngineOperationMetadata.java @@ -0,0 +1,747 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/reasoning_engine_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Details of
+ * [ReasoningEngineService.CreateReasoningEngine][google.cloud.aiplatform.v1.ReasoningEngineService.CreateReasoningEngine]
+ * operation.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.CreateReasoningEngineOperationMetadata} + */ +public final class CreateReasoningEngineOperationMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.CreateReasoningEngineOperationMetadata) + CreateReasoningEngineOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateReasoningEngineOperationMetadata.newBuilder() to construct. + private CreateReasoningEngineOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateReasoningEngineOperationMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateReasoningEngineOperationMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateReasoningEngineOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateReasoningEngineOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.CreateReasoningEngineOperationMetadata.class, + com.google.cloud.aiplatform.v1.CreateReasoningEngineOperationMetadata.Builder.class); + } + + private int bitField0_; + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + @java.lang.Override + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadata() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getGenericMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGenericMetadata()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.CreateReasoningEngineOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.CreateReasoningEngineOperationMetadata other = + (com.google.cloud.aiplatform.v1.CreateReasoningEngineOperationMetadata) 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.CreateReasoningEngineOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CreateReasoningEngineOperationMetadata parseFrom( + 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.CreateReasoningEngineOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CreateReasoningEngineOperationMetadata parseFrom( + com.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.CreateReasoningEngineOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CreateReasoningEngineOperationMetadata 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.CreateReasoningEngineOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.CreateReasoningEngineOperationMetadata parseFrom( + java.io.InputStream 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.CreateReasoningEngineOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.CreateReasoningEngineOperationMetadata + parseDelimitedFrom( + java.io.InputStream 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.CreateReasoningEngineOperationMetadata 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.CreateReasoningEngineOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.CreateReasoningEngineOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 of
+   * [ReasoningEngineService.CreateReasoningEngine][google.cloud.aiplatform.v1.ReasoningEngineService.CreateReasoningEngine]
+   * operation.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.CreateReasoningEngineOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.CreateReasoningEngineOperationMetadata) + com.google.cloud.aiplatform.v1.CreateReasoningEngineOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateReasoningEngineOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateReasoningEngineOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.CreateReasoningEngineOperationMetadata.class, + com.google.cloud.aiplatform.v1.CreateReasoningEngineOperationMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1.CreateReasoningEngineOperationMetadata.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.ReasoningEngineServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateReasoningEngineOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CreateReasoningEngineOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.CreateReasoningEngineOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CreateReasoningEngineOperationMetadata build() { + com.google.cloud.aiplatform.v1.CreateReasoningEngineOperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CreateReasoningEngineOperationMetadata buildPartial() { + com.google.cloud.aiplatform.v1.CreateReasoningEngineOperationMetadata result = + new com.google.cloud.aiplatform.v1.CreateReasoningEngineOperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.CreateReasoningEngineOperationMetadata 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.CreateReasoningEngineOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1.CreateReasoningEngineOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.CreateReasoningEngineOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1.CreateReasoningEngineOperationMetadata + .getDefaultInstance()) return this; + if (other.hasGenericMetadata()) { + mergeGenericMetadata(other.getGenericMetadata()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder> + genericMetadataBuilder_; + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadata() { + if (genericMetadataBuilder_ == null) { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } else { + return genericMetadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + genericMetadata_ = value; + } else { + genericMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = builderForValue.build(); + } else { + genericMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder mergeGenericMetadata( + com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); + } else { + genericMetadata_ = value; + } + } else { + genericMetadataBuilder_.mergeFrom(value); + } + if (genericMetadata_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder clearGenericMetadata() { + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); + genericMetadataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getGenericMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + if (genericMetadataBuilder_ != null) { + return genericMetadataBuilder_.getMessageOrBuilder(); + } else { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder> + getGenericMetadataFieldBuilder() { + if (genericMetadataBuilder_ == null) { + genericMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder>( + getGenericMetadata(), getParentForChildren(), isClean()); + genericMetadata_ = null; + } + return genericMetadataBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.CreateReasoningEngineOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.CreateReasoningEngineOperationMetadata) + private static final com.google.cloud.aiplatform.v1.CreateReasoningEngineOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.CreateReasoningEngineOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1.CreateReasoningEngineOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateReasoningEngineOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.CreateReasoningEngineOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateReasoningEngineOperationMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateReasoningEngineOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..e244877ba77b --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateReasoningEngineOperationMetadataOrBuilder.java @@ -0,0 +1,61 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/reasoning_engine_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface CreateReasoningEngineOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.CreateReasoningEngineOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadata(); + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateReasoningEngineRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateReasoningEngineRequest.java new file mode 100644 index 000000000000..f954b14cd2a4 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateReasoningEngineRequest.java @@ -0,0 +1,955 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/reasoning_engine_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for
+ * [ReasoningEngineService.CreateReasoningEngine][google.cloud.aiplatform.v1.ReasoningEngineService.CreateReasoningEngine].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.CreateReasoningEngineRequest} + */ +public final class CreateReasoningEngineRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.CreateReasoningEngineRequest) + CreateReasoningEngineRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateReasoningEngineRequest.newBuilder() to construct. + private CreateReasoningEngineRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateReasoningEngineRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateReasoningEngineRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateReasoningEngineRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateReasoningEngineRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest.class, + com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest.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 ReasoningEngine
+   * 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 ReasoningEngine
+   * 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 REASONING_ENGINE_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1.ReasoningEngine reasoningEngine_; + /** + * + * + *
+   * Required. The ReasoningEngine to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engine = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the reasoningEngine field is set. + */ + @java.lang.Override + public boolean hasReasoningEngine() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. The ReasoningEngine to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engine = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The reasoningEngine. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReasoningEngine getReasoningEngine() { + return reasoningEngine_ == null + ? com.google.cloud.aiplatform.v1.ReasoningEngine.getDefaultInstance() + : reasoningEngine_; + } + /** + * + * + *
+   * Required. The ReasoningEngine to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engine = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReasoningEngineOrBuilder getReasoningEngineOrBuilder() { + return reasoningEngine_ == null + ? com.google.cloud.aiplatform.v1.ReasoningEngine.getDefaultInstance() + : reasoningEngine_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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, getReasoningEngine()); + } + 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, getReasoningEngine()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.CreateReasoningEngineRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest other = + (com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasReasoningEngine() != other.hasReasoningEngine()) return false; + if (hasReasoningEngine()) { + if (!getReasoningEngine().equals(other.getReasoningEngine())) return false; + } + if (!getUnknownFields().equals(other.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 (hasReasoningEngine()) { + hash = (37 * hash) + REASONING_ENGINE_FIELD_NUMBER; + hash = (53 * hash) + getReasoningEngine().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest parseFrom( + 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.CreateReasoningEngineRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest parseFrom( + com.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.CreateReasoningEngineRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest 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.CreateReasoningEngineRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest parseFrom( + java.io.InputStream 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.CreateReasoningEngineRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest parseDelimitedFrom( + java.io.InputStream 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.CreateReasoningEngineRequest 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.CreateReasoningEngineRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.CreateReasoningEngineRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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
+   * [ReasoningEngineService.CreateReasoningEngine][google.cloud.aiplatform.v1.ReasoningEngineService.CreateReasoningEngine].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.CreateReasoningEngineRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.CreateReasoningEngineRequest) + com.google.cloud.aiplatform.v1.CreateReasoningEngineRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateReasoningEngineRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateReasoningEngineRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest.class, + com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getReasoningEngineFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + reasoningEngine_ = null; + if (reasoningEngineBuilder_ != null) { + reasoningEngineBuilder_.dispose(); + reasoningEngineBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ReasoningEngineServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateReasoningEngineRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest build() { + com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest buildPartial() { + com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest result = + new com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.reasoningEngine_ = + reasoningEngineBuilder_ == null ? reasoningEngine_ : reasoningEngineBuilder_.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.CreateReasoningEngineRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest other) { + if (other == com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasReasoningEngine()) { + mergeReasoningEngine(other.getReasoningEngine()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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(getReasoningEngineFieldBuilder().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 ReasoningEngine
+     * 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 ReasoningEngine
+     * 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 ReasoningEngine
+     * 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 ReasoningEngine
+     * 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 ReasoningEngine
+     * 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.ReasoningEngine reasoningEngine_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ReasoningEngine, + com.google.cloud.aiplatform.v1.ReasoningEngine.Builder, + com.google.cloud.aiplatform.v1.ReasoningEngineOrBuilder> + reasoningEngineBuilder_; + /** + * + * + *
+     * Required. The ReasoningEngine to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engine = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the reasoningEngine field is set. + */ + public boolean hasReasoningEngine() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The ReasoningEngine to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engine = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The reasoningEngine. + */ + public com.google.cloud.aiplatform.v1.ReasoningEngine getReasoningEngine() { + if (reasoningEngineBuilder_ == null) { + return reasoningEngine_ == null + ? com.google.cloud.aiplatform.v1.ReasoningEngine.getDefaultInstance() + : reasoningEngine_; + } else { + return reasoningEngineBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The ReasoningEngine to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engine = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setReasoningEngine(com.google.cloud.aiplatform.v1.ReasoningEngine value) { + if (reasoningEngineBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reasoningEngine_ = value; + } else { + reasoningEngineBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ReasoningEngine to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engine = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setReasoningEngine( + com.google.cloud.aiplatform.v1.ReasoningEngine.Builder builderForValue) { + if (reasoningEngineBuilder_ == null) { + reasoningEngine_ = builderForValue.build(); + } else { + reasoningEngineBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ReasoningEngine to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engine = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeReasoningEngine(com.google.cloud.aiplatform.v1.ReasoningEngine value) { + if (reasoningEngineBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && reasoningEngine_ != null + && reasoningEngine_ + != com.google.cloud.aiplatform.v1.ReasoningEngine.getDefaultInstance()) { + getReasoningEngineBuilder().mergeFrom(value); + } else { + reasoningEngine_ = value; + } + } else { + reasoningEngineBuilder_.mergeFrom(value); + } + if (reasoningEngine_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. The ReasoningEngine to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engine = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearReasoningEngine() { + bitField0_ = (bitField0_ & ~0x00000002); + reasoningEngine_ = null; + if (reasoningEngineBuilder_ != null) { + reasoningEngineBuilder_.dispose(); + reasoningEngineBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ReasoningEngine to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engine = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.ReasoningEngine.Builder getReasoningEngineBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getReasoningEngineFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The ReasoningEngine to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engine = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.ReasoningEngineOrBuilder getReasoningEngineOrBuilder() { + if (reasoningEngineBuilder_ != null) { + return reasoningEngineBuilder_.getMessageOrBuilder(); + } else { + return reasoningEngine_ == null + ? com.google.cloud.aiplatform.v1.ReasoningEngine.getDefaultInstance() + : reasoningEngine_; + } + } + /** + * + * + *
+     * Required. The ReasoningEngine to create.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engine = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ReasoningEngine, + com.google.cloud.aiplatform.v1.ReasoningEngine.Builder, + com.google.cloud.aiplatform.v1.ReasoningEngineOrBuilder> + getReasoningEngineFieldBuilder() { + if (reasoningEngineBuilder_ == null) { + reasoningEngineBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ReasoningEngine, + com.google.cloud.aiplatform.v1.ReasoningEngine.Builder, + com.google.cloud.aiplatform.v1.ReasoningEngineOrBuilder>( + getReasoningEngine(), getParentForChildren(), isClean()); + reasoningEngine_ = null; + } + return reasoningEngineBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @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.CreateReasoningEngineRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.CreateReasoningEngineRequest) + private static final com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest(); + } + + public static com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateReasoningEngineRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.CreateReasoningEngineRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateReasoningEngineRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateReasoningEngineRequestOrBuilder.java new file mode 100644 index 000000000000..2179ec17ac67 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateReasoningEngineRequestOrBuilder.java @@ -0,0 +1,98 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/reasoning_engine_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface CreateReasoningEngineRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.CreateReasoningEngineRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Location to create the ReasoningEngine
+   * 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 ReasoningEngine
+   * 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 ReasoningEngine to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engine = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the reasoningEngine field is set. + */ + boolean hasReasoningEngine(); + /** + * + * + *
+   * Required. The ReasoningEngine to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engine = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The reasoningEngine. + */ + com.google.cloud.aiplatform.v1.ReasoningEngine getReasoningEngine(); + /** + * + * + *
+   * Required. The ReasoningEngine to create.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engine = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1.ReasoningEngineOrBuilder getReasoningEngineOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteCachedContentRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteCachedContentRequest.java new file mode 100644 index 000000000000..e39e63f1c0ff --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteCachedContentRequest.java @@ -0,0 +1,642 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/gen_ai_cache_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for
+ * [GenAiCacheService.DeleteCachedContent][google.cloud.aiplatform.v1.GenAiCacheService.DeleteCachedContent].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.DeleteCachedContentRequest} + */ +public final class DeleteCachedContentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.DeleteCachedContentRequest) + DeleteCachedContentRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteCachedContentRequest.newBuilder() to construct. + private DeleteCachedContentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteCachedContentRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteCachedContentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.GenAiCacheServiceProto + .internal_static_google_cloud_aiplatform_v1_DeleteCachedContentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.GenAiCacheServiceProto + .internal_static_google_cloud_aiplatform_v1_DeleteCachedContentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.DeleteCachedContentRequest.class, + com.google.cloud.aiplatform.v1.DeleteCachedContentRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The resource name referring to the cached content
+   * 
+ * + * + * 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 referring to the cached content
+   * 
+ * + * + * 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.DeleteCachedContentRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.DeleteCachedContentRequest other = + (com.google.cloud.aiplatform.v1.DeleteCachedContentRequest) 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.DeleteCachedContentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.DeleteCachedContentRequest parseFrom( + 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.DeleteCachedContentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.DeleteCachedContentRequest parseFrom( + com.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.DeleteCachedContentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.DeleteCachedContentRequest 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.DeleteCachedContentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.DeleteCachedContentRequest parseFrom( + java.io.InputStream 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.DeleteCachedContentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.DeleteCachedContentRequest parseDelimitedFrom( + java.io.InputStream 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.DeleteCachedContentRequest 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.DeleteCachedContentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.DeleteCachedContentRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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
+   * [GenAiCacheService.DeleteCachedContent][google.cloud.aiplatform.v1.GenAiCacheService.DeleteCachedContent].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.DeleteCachedContentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.DeleteCachedContentRequest) + com.google.cloud.aiplatform.v1.DeleteCachedContentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.GenAiCacheServiceProto + .internal_static_google_cloud_aiplatform_v1_DeleteCachedContentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.GenAiCacheServiceProto + .internal_static_google_cloud_aiplatform_v1_DeleteCachedContentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.DeleteCachedContentRequest.class, + com.google.cloud.aiplatform.v1.DeleteCachedContentRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.DeleteCachedContentRequest.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.GenAiCacheServiceProto + .internal_static_google_cloud_aiplatform_v1_DeleteCachedContentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.DeleteCachedContentRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.DeleteCachedContentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.DeleteCachedContentRequest build() { + com.google.cloud.aiplatform.v1.DeleteCachedContentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.DeleteCachedContentRequest buildPartial() { + com.google.cloud.aiplatform.v1.DeleteCachedContentRequest result = + new com.google.cloud.aiplatform.v1.DeleteCachedContentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.DeleteCachedContentRequest 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.DeleteCachedContentRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.DeleteCachedContentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeleteCachedContentRequest other) { + if (other == com.google.cloud.aiplatform.v1.DeleteCachedContentRequest.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 referring to the cached content
+     * 
+ * + * + * 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 referring to the cached content
+     * 
+ * + * + * 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 referring to the cached content
+     * 
+ * + * + * 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 referring to the cached content
+     * 
+ * + * + * 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 referring to the cached content
+     * 
+ * + * + * 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.DeleteCachedContentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.DeleteCachedContentRequest) + private static final com.google.cloud.aiplatform.v1.DeleteCachedContentRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.DeleteCachedContentRequest(); + } + + public static com.google.cloud.aiplatform.v1.DeleteCachedContentRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteCachedContentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.DeleteCachedContentRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteCachedContentRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteCachedContentRequestOrBuilder.java new file mode 100644 index 000000000000..01e46eeaf563 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteCachedContentRequestOrBuilder.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/gen_ai_cache_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface DeleteCachedContentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.DeleteCachedContentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name referring to the cached content
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name referring to the cached content
+   * 
+ * + * + * 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/DeleteReasoningEngineRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteReasoningEngineRequest.java new file mode 100644 index 000000000000..576b8583c550 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteReasoningEngineRequest.java @@ -0,0 +1,656 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/reasoning_engine_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for
+ * [ReasoningEngineService.DeleteReasoningEngine][google.cloud.aiplatform.v1.ReasoningEngineService.DeleteReasoningEngine].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.DeleteReasoningEngineRequest} + */ +public final class DeleteReasoningEngineRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.DeleteReasoningEngineRequest) + DeleteReasoningEngineRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteReasoningEngineRequest.newBuilder() to construct. + private DeleteReasoningEngineRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteReasoningEngineRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteReasoningEngineRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineServiceProto + .internal_static_google_cloud_aiplatform_v1_DeleteReasoningEngineRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineServiceProto + .internal_static_google_cloud_aiplatform_v1_DeleteReasoningEngineRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest.class, + com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the ReasoningEngine resource to be deleted.
+   * 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 be deleted.
+   * 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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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.DeleteReasoningEngineRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest other = + (com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest) 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.DeleteReasoningEngineRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest parseFrom( + 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.DeleteReasoningEngineRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest parseFrom( + com.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.DeleteReasoningEngineRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest 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.DeleteReasoningEngineRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest parseFrom( + java.io.InputStream 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.DeleteReasoningEngineRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest parseDelimitedFrom( + java.io.InputStream 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.DeleteReasoningEngineRequest 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.DeleteReasoningEngineRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.DeleteReasoningEngineRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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
+   * [ReasoningEngineService.DeleteReasoningEngine][google.cloud.aiplatform.v1.ReasoningEngineService.DeleteReasoningEngine].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.DeleteReasoningEngineRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.DeleteReasoningEngineRequest) + com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineServiceProto + .internal_static_google_cloud_aiplatform_v1_DeleteReasoningEngineRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineServiceProto + .internal_static_google_cloud_aiplatform_v1_DeleteReasoningEngineRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest.class, + com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest.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.ReasoningEngineServiceProto + .internal_static_google_cloud_aiplatform_v1_DeleteReasoningEngineRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest build() { + com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest buildPartial() { + com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest result = + new com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest 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.DeleteReasoningEngineRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest other) { + if (other == com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest.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 ReasoningEngine resource to be deleted.
+     * 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 be deleted.
+     * 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 be deleted.
+     * 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 be deleted.
+     * 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 be deleted.
+     * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @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.DeleteReasoningEngineRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.DeleteReasoningEngineRequest) + private static final com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest(); + } + + public static com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteReasoningEngineRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.DeleteReasoningEngineRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteReasoningEngineRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteReasoningEngineRequestOrBuilder.java new file mode 100644 index 000000000000..a60cd989e280 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteReasoningEngineRequestOrBuilder.java @@ -0,0 +1,59 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/reasoning_engine_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface DeleteReasoningEngineRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.DeleteReasoningEngineRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the ReasoningEngine resource to be deleted.
+   * 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 be deleted.
+   * 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(); +} 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 15ddea8328e7..7f8323ecc4c3 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 @@ -2210,6 +2210,63 @@ public java.lang.String getSystemLabelsOrThrow(java.lang.String key) { return map.get(key); } + public static final int SPECULATIVE_DECODING_SPEC_FIELD_NUMBER = 30; + private com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec speculativeDecodingSpec_; + /** + * + * + *
+   * Optional. Spec for configuring speculative decoding.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec speculative_decoding_spec = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the speculativeDecodingSpec field is set. + */ + @java.lang.Override + public boolean hasSpeculativeDecodingSpec() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+   * Optional. Spec for configuring speculative decoding.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec speculative_decoding_spec = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The speculativeDecodingSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec getSpeculativeDecodingSpec() { + return speculativeDecodingSpec_ == null + ? com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.getDefaultInstance() + : speculativeDecodingSpec_; + } + /** + * + * + *
+   * Optional. Spec for configuring speculative decoding.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec speculative_decoding_spec = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SpeculativeDecodingSpecOrBuilder + getSpeculativeDecodingSpecOrBuilder() { + return speculativeDecodingSpec_ == null + ? com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.getDefaultInstance() + : speculativeDecodingSpec_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2276,6 +2333,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetSystemLabels(), SystemLabelsDefaultEntryHolder.defaultEntry, 28); + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(30, getSpeculativeDecodingSpec()); + } getUnknownFields().writeTo(output); } @@ -2348,6 +2408,11 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, systemLabels__); } + if (((bitField0_ & 0x00000020) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 30, getSpeculativeDecodingSpec()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2393,6 +2458,10 @@ public boolean equals(final java.lang.Object obj) { if (!getStatus().equals(other.getStatus())) return false; } if (!internalGetSystemLabels().equals(other.internalGetSystemLabels())) return false; + if (hasSpeculativeDecodingSpec() != other.hasSpeculativeDecodingSpec()) return false; + if (hasSpeculativeDecodingSpec()) { + if (!getSpeculativeDecodingSpec().equals(other.getSpeculativeDecodingSpec())) return false; + } if (!getPredictionResourcesCase().equals(other.getPredictionResourcesCase())) return false; switch (predictionResourcesCase_) { case 7: @@ -2458,6 +2527,10 @@ public int hashCode() { hash = (37 * hash) + SYSTEM_LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetSystemLabels().hashCode(); } + if (hasSpeculativeDecodingSpec()) { + hash = (37 * hash) + SPECULATIVE_DECODING_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpeculativeDecodingSpec().hashCode(); + } switch (predictionResourcesCase_) { case 7: hash = (37 * hash) + DEDICATED_RESOURCES_FIELD_NUMBER; @@ -2641,6 +2714,7 @@ private void maybeForceBuilderInitialization() { getPrivateEndpointsFieldBuilder(); getFasterDeploymentConfigFieldBuilder(); getStatusFieldBuilder(); + getSpeculativeDecodingSpecFieldBuilder(); } } @@ -2688,6 +2762,11 @@ public Builder clear() { statusBuilder_ = null; } internalGetMutableSystemLabels().clear(); + speculativeDecodingSpec_ = null; + if (speculativeDecodingSpecBuilder_ != null) { + speculativeDecodingSpecBuilder_.dispose(); + speculativeDecodingSpecBuilder_ = null; + } predictionResourcesCase_ = 0; predictionResources_ = null; return this; @@ -2781,6 +2860,13 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.DeployedModel result) result.systemLabels_ = internalGetSystemLabels(); result.systemLabels_.makeImmutable(); } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.speculativeDecodingSpec_ = + speculativeDecodingSpecBuilder_ == null + ? speculativeDecodingSpec_ + : speculativeDecodingSpecBuilder_.build(); + to_bitField0_ |= 0x00000020; + } result.bitField0_ |= to_bitField0_; } @@ -2891,6 +2977,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeployedModel other) { } internalGetMutableSystemLabels().mergeFrom(other.internalGetSystemLabels()); bitField0_ |= 0x00010000; + if (other.hasSpeculativeDecodingSpec()) { + mergeSpeculativeDecodingSpec(other.getSpeculativeDecodingSpec()); + } switch (other.getPredictionResourcesCase()) { case DEDICATED_RESOURCES: { @@ -3053,6 +3142,13 @@ public Builder mergeFrom( bitField0_ |= 0x00010000; break; } // case 226 + case 242: + { + input.readMessage( + getSpeculativeDecodingSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 242 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5867,6 +5963,215 @@ public Builder putAllSystemLabels(java.util.Map + speculativeDecodingSpecBuilder_; + /** + * + * + *
+     * Optional. Spec for configuring speculative decoding.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec speculative_decoding_spec = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the speculativeDecodingSpec field is set. + */ + public boolean hasSpeculativeDecodingSpec() { + return ((bitField0_ & 0x00020000) != 0); + } + /** + * + * + *
+     * Optional. Spec for configuring speculative decoding.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec speculative_decoding_spec = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The speculativeDecodingSpec. + */ + public com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec getSpeculativeDecodingSpec() { + if (speculativeDecodingSpecBuilder_ == null) { + return speculativeDecodingSpec_ == null + ? com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.getDefaultInstance() + : speculativeDecodingSpec_; + } else { + return speculativeDecodingSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Spec for configuring speculative decoding.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec speculative_decoding_spec = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSpeculativeDecodingSpec( + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec value) { + if (speculativeDecodingSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + speculativeDecodingSpec_ = value; + } else { + speculativeDecodingSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Spec for configuring speculative decoding.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec speculative_decoding_spec = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSpeculativeDecodingSpec( + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.Builder builderForValue) { + if (speculativeDecodingSpecBuilder_ == null) { + speculativeDecodingSpec_ = builderForValue.build(); + } else { + speculativeDecodingSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Spec for configuring speculative decoding.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec speculative_decoding_spec = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSpeculativeDecodingSpec( + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec value) { + if (speculativeDecodingSpecBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0) + && speculativeDecodingSpec_ != null + && speculativeDecodingSpec_ + != com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.getDefaultInstance()) { + getSpeculativeDecodingSpecBuilder().mergeFrom(value); + } else { + speculativeDecodingSpec_ = value; + } + } else { + speculativeDecodingSpecBuilder_.mergeFrom(value); + } + if (speculativeDecodingSpec_ != null) { + bitField0_ |= 0x00020000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Spec for configuring speculative decoding.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec speculative_decoding_spec = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSpeculativeDecodingSpec() { + bitField0_ = (bitField0_ & ~0x00020000); + speculativeDecodingSpec_ = null; + if (speculativeDecodingSpecBuilder_ != null) { + speculativeDecodingSpecBuilder_.dispose(); + speculativeDecodingSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Spec for configuring speculative decoding.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec speculative_decoding_spec = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.Builder + getSpeculativeDecodingSpecBuilder() { + bitField0_ |= 0x00020000; + onChanged(); + return getSpeculativeDecodingSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Spec for configuring speculative decoding.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec speculative_decoding_spec = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.SpeculativeDecodingSpecOrBuilder + getSpeculativeDecodingSpecOrBuilder() { + if (speculativeDecodingSpecBuilder_ != null) { + return speculativeDecodingSpecBuilder_.getMessageOrBuilder(); + } else { + return speculativeDecodingSpec_ == null + ? com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.getDefaultInstance() + : speculativeDecodingSpec_; + } + } + /** + * + * + *
+     * Optional. Spec for configuring speculative decoding.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec speculative_decoding_spec = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec, + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.Builder, + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpecOrBuilder> + getSpeculativeDecodingSpecFieldBuilder() { + if (speculativeDecodingSpecBuilder_ == null) { + speculativeDecodingSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec, + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.Builder, + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpecOrBuilder>( + getSpeculativeDecodingSpec(), getParentForChildren(), isClean()); + speculativeDecodingSpec_ = null; + } + return speculativeDecodingSpecBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModelOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModelOrBuilder.java index 5946d8e1d0e6..e41dac2b2f61 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 @@ -677,5 +677,47 @@ java.lang.String getSystemLabelsOrDefault( */ java.lang.String getSystemLabelsOrThrow(java.lang.String key); + /** + * + * + *
+   * Optional. Spec for configuring speculative decoding.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec speculative_decoding_spec = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the speculativeDecodingSpec field is set. + */ + boolean hasSpeculativeDecodingSpec(); + /** + * + * + *
+   * Optional. Spec for configuring speculative decoding.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec speculative_decoding_spec = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The speculativeDecodingSpec. + */ + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec getSpeculativeDecodingSpec(); + /** + * + * + *
+   * Optional. Spec for configuring speculative decoding.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec speculative_decoding_spec = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpecOrBuilder + getSpeculativeDecodingSpecOrBuilder(); + com.google.cloud.aiplatform.v1.DeployedModel.PredictionResourcesCase getPredictionResourcesCase(); } 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 43c869144182..da71443979b5 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 @@ -60,14 +60,26 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_PredictRequestResponseLoggingConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_PredictRequestResponseLoggingConfig_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; static final com.google.protobuf.Descriptors.Descriptor 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; + internal_static_google_cloud_aiplatform_v1_SpeculativeDecodingSpec_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_aiplatform_v1_ClientConnectionConfig_fieldAccessorTable; + internal_static_google_cloud_aiplatform_v1_SpeculativeDecodingSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_SpeculativeDecodingSpec_DraftModelSpeculation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_SpeculativeDecodingSpec_DraftModelSpeculation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_SpeculativeDecodingSpec_NgramSpeculation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_SpeculativeDecodingSpec_NgramSpeculation_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -123,7 +135,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ct}/locations/{location}/endpoints/{endp" + "oint}\022Mprojects/{project}/locations/{loc" + "ation}/publishers/{publisher}/models/{mo" - + "del}\"\201\t\n\rDeployedModel\022M\n\023dedicated_reso" + + "del}\"\336\t\n\rDeployedModel\022M\n\023dedicated_reso" + "urces\030\007 \001(\0132..google.cloud.aiplatform.v1" + ".DedicatedResourcesH\000\022M\n\023automatic_resou" + "rces\030\010 \001(\0132..google.cloud.aiplatform.v1." @@ -146,29 +158,41 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "E\n\006status\030\032 \001(\01320.google.cloud.aiplatfor" + "m.v1.DeployedModel.StatusB\003\340A\003\022R\n\rsystem" + "_labels\030\034 \003(\0132;.google.cloud.aiplatform." - + "v1.DeployedModel.SystemLabelsEntry\032\177\n\006St" - + "atus\022\024\n\007message\030\001 \001(\tB\003\340A\003\0229\n\020last_updat" - + "e_time\030\002 \001(\0132\032.google.protobuf.Timestamp" - + "B\003\340A\003\022$\n\027available_replica_count\030\003 \001(\005B\003" - + "\340A\003\0323\n\021SystemLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001B\026\n\024prediction_resources" - + "\"\217\001\n\020PrivateEndpoints\022\035\n\020predict_http_ur" - + "i\030\001 \001(\tB\003\340A\003\022\035\n\020explain_http_uri\030\002 \001(\tB\003" - + "\340A\003\022\034\n\017health_http_uri\030\003 \001(\tB\003\340A\003\022\037\n\022ser" - + "vice_attachment\030\004 \001(\tB\003\340A\003\"\234\001\n#PredictRe" - + "questResponseLoggingConfig\022\017\n\007enabled\030\001 " - + "\001(\010\022\025\n\rsampling_rate\030\002 \001(\001\022M\n\024bigquery_d" - + "estination\030\003 \001(\0132/.google.cloud.aiplatfo" - + "rm.v1.BigQueryDestination\"5\n\026FasterDeplo" - + "ymentConfig\022\033\n\023fast_tryout_enabled\030\002 \001(\010" - + "\"N\n\026ClientConnectionConfig\0224\n\021inference_" - + "timeout\030\001 \001(\0132\031.google.protobuf.Duration" - + "B\313\001\n\036com.google.cloud.aiplatform.v1B\rEnd" - + "pointProtoP\001Z>cloud.google.com/go/aiplat" - + "form/apiv1/aiplatformpb;aiplatformpb\252\002\032G" - + "oogle.Cloud.AIPlatform.V1\312\002\032Google\\Cloud" - + "\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatfo" - + "rm::V1b\006proto3" + + "v1.DeployedModel.SystemLabelsEntry\022[\n\031sp" + + "eculative_decoding_spec\030\036 \001(\01323.google.c" + + "loud.aiplatform.v1.SpeculativeDecodingSp" + + "ecB\003\340A\001\032\177\n\006Status\022\024\n\007message\030\001 \001(\tB\003\340A\003\022" + + "9\n\020last_update_time\030\002 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\022$\n\027available_replica_" + + "count\030\003 \001(\005B\003\340A\003\0323\n\021SystemLabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\026\n\024predict" + + "ion_resources\"\217\001\n\020PrivateEndpoints\022\035\n\020pr" + + "edict_http_uri\030\001 \001(\tB\003\340A\003\022\035\n\020explain_htt" + + "p_uri\030\002 \001(\tB\003\340A\003\022\034\n\017health_http_uri\030\003 \001(" + + "\tB\003\340A\003\022\037\n\022service_attachment\030\004 \001(\tB\003\340A\003\"" + + "\234\001\n#PredictRequestResponseLoggingConfig\022" + + "\017\n\007enabled\030\001 \001(\010\022\025\n\rsampling_rate\030\002 \001(\001\022" + + "M\n\024bigquery_destination\030\003 \001(\0132/.google.c" + + "loud.aiplatform.v1.BigQueryDestination\"N" + + "\n\026ClientConnectionConfig\0224\n\021inference_ti" + + "meout\030\001 \001(\0132\031.google.protobuf.Duration\"5" + + "\n\026FasterDeploymentConfig\022\033\n\023fast_tryout_" + + "enabled\030\002 \001(\010\"\231\003\n\027SpeculativeDecodingSpe" + + "c\022l\n\027draft_model_speculation\030\002 \001(\0132I.goo" + + "gle.cloud.aiplatform.v1.SpeculativeDecod" + + "ingSpec.DraftModelSpeculationH\000\022a\n\021ngram" + + "_speculation\030\003 \001(\0132D.google.cloud.aiplat" + + "form.v1.SpeculativeDecodingSpec.NgramSpe" + + "culationH\000\022\037\n\027speculative_token_count\030\001 " + + "\001(\005\032U\n\025DraftModelSpeculation\022<\n\013draft_mo" + + "del\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform.googleapis" + + ".com/Model\032&\n\020NgramSpeculation\022\022\n\nngram_" + + "size\030\001 \001(\005B\r\n\013speculationB\313\001\n\036com.google" + + ".cloud.aiplatform.v1B\rEndpointProtoP\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" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -250,6 +274,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FasterDeploymentConfig", "Status", "SystemLabels", + "SpeculativeDecodingSpec", "PredictionResources", }); internal_static_google_cloud_aiplatform_v1_DeployedModel_Status_descriptor = @@ -284,21 +309,49 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Enabled", "SamplingRate", "BigqueryDestination", }); - internal_static_google_cloud_aiplatform_v1_FasterDeploymentConfig_descriptor = + internal_static_google_cloud_aiplatform_v1_ClientConnectionConfig_descriptor = getDescriptor().getMessageTypes().get(4); + 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", + }); + internal_static_google_cloud_aiplatform_v1_FasterDeploymentConfig_descriptor = + getDescriptor().getMessageTypes().get(5); internal_static_google_cloud_aiplatform_v1_FasterDeploymentConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_FasterDeploymentConfig_descriptor, 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 = + internal_static_google_cloud_aiplatform_v1_SpeculativeDecodingSpec_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_aiplatform_v1_SpeculativeDecodingSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_aiplatform_v1_ClientConnectionConfig_descriptor, + internal_static_google_cloud_aiplatform_v1_SpeculativeDecodingSpec_descriptor, new java.lang.String[] { - "InferenceTimeout", + "DraftModelSpeculation", "NgramSpeculation", "SpeculativeTokenCount", "Speculation", + }); + internal_static_google_cloud_aiplatform_v1_SpeculativeDecodingSpec_DraftModelSpeculation_descriptor = + internal_static_google_cloud_aiplatform_v1_SpeculativeDecodingSpec_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1_SpeculativeDecodingSpec_DraftModelSpeculation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_SpeculativeDecodingSpec_DraftModelSpeculation_descriptor, + new java.lang.String[] { + "DraftModel", + }); + internal_static_google_cloud_aiplatform_v1_SpeculativeDecodingSpec_NgramSpeculation_descriptor = + internal_static_google_cloud_aiplatform_v1_SpeculativeDecodingSpec_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_aiplatform_v1_SpeculativeDecodingSpec_NgramSpeculation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_SpeculativeDecodingSpec_NgramSpeculation_descriptor, + new java.lang.String[] { + "NgramSize", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExecutableCode.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExecutableCode.java new file mode 100644 index 000000000000..40e75648aabf --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExecutableCode.java @@ -0,0 +1,937 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/tool.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Code generated by the model that is meant to be executed, and the result
+ * returned to the model.
+ *
+ * Generated when using the [FunctionDeclaration] tool and
+ * [FunctionCallingConfig] mode is set to [Mode.CODE].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ExecutableCode} + */ +public final class ExecutableCode extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ExecutableCode) + ExecutableCodeOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutableCode.newBuilder() to construct. + private ExecutableCode(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExecutableCode() { + language_ = 0; + code_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExecutableCode(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_ExecutableCode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_ExecutableCode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ExecutableCode.class, + com.google.cloud.aiplatform.v1.ExecutableCode.Builder.class); + } + + /** + * + * + *
+   * Supported programming languages for the generated code.
+   * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1.ExecutableCode.Language} + */ + public enum Language implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified language. This value should not be used.
+     * 
+ * + * LANGUAGE_UNSPECIFIED = 0; + */ + LANGUAGE_UNSPECIFIED(0), + /** + * + * + *
+     * Python >= 3.10, with numpy and simpy available.
+     * 
+ * + * PYTHON = 1; + */ + PYTHON(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified language. This value should not be used.
+     * 
+ * + * LANGUAGE_UNSPECIFIED = 0; + */ + public static final int LANGUAGE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Python >= 3.10, with numpy and simpy available.
+     * 
+ * + * PYTHON = 1; + */ + public static final int PYTHON_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 Language 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 Language forNumber(int value) { + switch (value) { + case 0: + return LANGUAGE_UNSPECIFIED; + case 1: + return PYTHON; + 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 Language findValueByNumber(int number) { + return Language.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.ExecutableCode.getDescriptor().getEnumTypes().get(0); + } + + private static final Language[] VALUES = values(); + + public static Language 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 Language(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1.ExecutableCode.Language) + } + + public static final int LANGUAGE_FIELD_NUMBER = 1; + private int language_ = 0; + /** + * + * + *
+   * Required. Programming language of the `code`.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ExecutableCode.Language language = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for language. + */ + @java.lang.Override + public int getLanguageValue() { + return language_; + } + /** + * + * + *
+   * Required. Programming language of the `code`.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ExecutableCode.Language language = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The language. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ExecutableCode.Language getLanguage() { + com.google.cloud.aiplatform.v1.ExecutableCode.Language result = + com.google.cloud.aiplatform.v1.ExecutableCode.Language.forNumber(language_); + return result == null + ? com.google.cloud.aiplatform.v1.ExecutableCode.Language.UNRECOGNIZED + : result; + } + + public static final int CODE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object code_ = ""; + /** + * + * + *
+   * Required. The code to be executed.
+   * 
+ * + * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The code. + */ + @java.lang.Override + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The code to be executed.
+   * 
+ * + * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for code. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + code_ = 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 (language_ + != com.google.cloud.aiplatform.v1.ExecutableCode.Language.LANGUAGE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, language_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, code_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (language_ + != com.google.cloud.aiplatform.v1.ExecutableCode.Language.LANGUAGE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, language_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, code_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.ExecutableCode)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ExecutableCode other = + (com.google.cloud.aiplatform.v1.ExecutableCode) obj; + + if (language_ != other.language_) return false; + if (!getCode().equals(other.getCode())) return false; + if (!getUnknownFields().equals(other.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) + LANGUAGE_FIELD_NUMBER; + hash = (53 * hash) + language_; + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.ExecutableCode parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ExecutableCode parseFrom( + 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.ExecutableCode parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ExecutableCode parseFrom( + com.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.ExecutableCode parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ExecutableCode 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.ExecutableCode parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ExecutableCode parseFrom( + java.io.InputStream 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.ExecutableCode parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ExecutableCode parseDelimitedFrom( + java.io.InputStream 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.ExecutableCode 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.ExecutableCode parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.ExecutableCode prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Code generated by the model that is meant to be executed, and the result
+   * returned to the model.
+   *
+   * Generated when using the [FunctionDeclaration] tool and
+   * [FunctionCallingConfig] mode is set to [Mode.CODE].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ExecutableCode} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ExecutableCode) + com.google.cloud.aiplatform.v1.ExecutableCodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_ExecutableCode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_ExecutableCode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ExecutableCode.class, + com.google.cloud.aiplatform.v1.ExecutableCode.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.ExecutableCode.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + language_ = 0; + code_ = ""; + 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_ExecutableCode_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ExecutableCode getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ExecutableCode.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ExecutableCode build() { + com.google.cloud.aiplatform.v1.ExecutableCode result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ExecutableCode buildPartial() { + com.google.cloud.aiplatform.v1.ExecutableCode result = + new com.google.cloud.aiplatform.v1.ExecutableCode(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ExecutableCode result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.language_ = language_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.code_ = code_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.ExecutableCode) { + return mergeFrom((com.google.cloud.aiplatform.v1.ExecutableCode) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.ExecutableCode other) { + if (other == com.google.cloud.aiplatform.v1.ExecutableCode.getDefaultInstance()) return this; + if (other.language_ != 0) { + setLanguageValue(other.getLanguageValue()); + } + if (!other.getCode().isEmpty()) { + code_ = other.code_; + 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: + { + language_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + code_ = 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 language_ = 0; + /** + * + * + *
+     * Required. Programming language of the `code`.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ExecutableCode.Language language = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for language. + */ + @java.lang.Override + public int getLanguageValue() { + return language_; + } + /** + * + * + *
+     * Required. Programming language of the `code`.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ExecutableCode.Language language = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for language to set. + * @return This builder for chaining. + */ + public Builder setLanguageValue(int value) { + language_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Programming language of the `code`.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ExecutableCode.Language language = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The language. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ExecutableCode.Language getLanguage() { + com.google.cloud.aiplatform.v1.ExecutableCode.Language result = + com.google.cloud.aiplatform.v1.ExecutableCode.Language.forNumber(language_); + return result == null + ? com.google.cloud.aiplatform.v1.ExecutableCode.Language.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. Programming language of the `code`.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ExecutableCode.Language language = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The language to set. + * @return This builder for chaining. + */ + public Builder setLanguage(com.google.cloud.aiplatform.v1.ExecutableCode.Language value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + language_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Programming language of the `code`.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ExecutableCode.Language language = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearLanguage() { + bitField0_ = (bitField0_ & ~0x00000001); + language_ = 0; + onChanged(); + return this; + } + + private java.lang.Object code_ = ""; + /** + * + * + *
+     * Required. The code to be executed.
+     * 
+ * + * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The code. + */ + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The code to be executed.
+     * 
+ * + * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for code. + */ + public com.google.protobuf.ByteString getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The code to be executed.
+     * 
+ * + * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The code to set. + * @return This builder for chaining. + */ + public Builder setCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + code_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The code to be executed.
+     * 
+ * + * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearCode() { + code_ = getDefaultInstance().getCode(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The code to be executed.
+     * 
+ * + * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for code to set. + * @return This builder for chaining. + */ + public Builder setCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + code_ = 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.ExecutableCode) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ExecutableCode) + private static final com.google.cloud.aiplatform.v1.ExecutableCode DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ExecutableCode(); + } + + public static com.google.cloud.aiplatform.v1.ExecutableCode getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutableCode parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.ExecutableCode getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExecutableCodeOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExecutableCodeOrBuilder.java new file mode 100644 index 000000000000..d1c0f3f6cca8 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ExecutableCodeOrBuilder.java @@ -0,0 +1,80 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/tool.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface ExecutableCodeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ExecutableCode) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Programming language of the `code`.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ExecutableCode.Language language = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for language. + */ + int getLanguageValue(); + /** + * + * + *
+   * Required. Programming language of the `code`.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ExecutableCode.Language language = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The language. + */ + com.google.cloud.aiplatform.v1.ExecutableCode.Language getLanguage(); + + /** + * + * + *
+   * Required. The code to be executed.
+   * 
+ * + * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The code. + */ + java.lang.String getCode(); + /** + * + * + *
+   * Required. The code to be executed.
+   * 
+ * + * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for code. + */ + com.google.protobuf.ByteString getCodeBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureView.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureView.java index 200668a90ab9..2623d043f7af 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureView.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureView.java @@ -42,6 +42,8 @@ private FeatureView(com.google.protobuf.GeneratedMessageV3.Builder builder) { private FeatureView() { name_ = ""; etag_ = ""; + serviceAgentType_ = 0; + serviceAccountEmail_ = ""; } @java.lang.Override @@ -77,6 +79,173 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl com.google.cloud.aiplatform.v1.FeatureView.Builder.class); } + /** + * + * + *
+   * Service agent type used during data sync.
+   * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1.FeatureView.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), + /** + * + * + *
+     * Indicates the project-level Vertex AI Service Agent
+     * (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+     * will be used during sync jobs.
+     * 
+ * + * SERVICE_AGENT_TYPE_PROJECT = 1; + */ + SERVICE_AGENT_TYPE_PROJECT(1), + /** + * + * + *
+     * Enable a FeatureView 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 sync.
+     * 
+ * + * SERVICE_AGENT_TYPE_FEATURE_VIEW = 2; + */ + SERVICE_AGENT_TYPE_FEATURE_VIEW(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; + /** + * + * + *
+     * Indicates the project-level Vertex AI Service Agent
+     * (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+     * will be used during sync jobs.
+     * 
+ * + * SERVICE_AGENT_TYPE_PROJECT = 1; + */ + public static final int SERVICE_AGENT_TYPE_PROJECT_VALUE = 1; + /** + * + * + *
+     * Enable a FeatureView 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 sync.
+     * 
+ * + * SERVICE_AGENT_TYPE_FEATURE_VIEW = 2; + */ + public static final int SERVICE_AGENT_TYPE_FEATURE_VIEW_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_VIEW; + 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.v1.FeatureView.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.v1.FeatureView.ServiceAgentType) + } + public interface BigQuerySourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.FeatureView.BigQuerySource) @@ -8819,1610 +8988,3200 @@ public com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource getDefaultInst } } - private int bitField0_; - private int sourceCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object source_; - - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - BIG_QUERY_SOURCE(6), - FEATURE_REGISTRY_SOURCE(9), - VERTEX_RAG_SOURCE(18), - SOURCE_NOT_SET(0); - private final int value; + public interface OptimizedConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.FeatureView.OptimizedConfig) + com.google.protobuf.MessageOrBuilder { - private SourceCase(int value) { - this.value = value; - } /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. + * + * + *
+     * Optional. A description of resources that the FeatureView uses, which to
+     * large degree are decided by Vertex AI, and optionally allows only a
+     * modest additional configuration. If min_replica_count is not set, the
+     * default value is 2. If max_replica_count is not set, the default value
+     * is 6. The max allowed replica count is 1000.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the automaticResources field is set. */ - @java.lang.Deprecated - public static SourceCase valueOf(int value) { - return forNumber(value); - } - - public static SourceCase forNumber(int value) { - switch (value) { - case 6: - return BIG_QUERY_SOURCE; - case 9: - return FEATURE_REGISTRY_SOURCE; - case 18: - return VERTEX_RAG_SOURCE; - case 0: - return SOURCE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); - } - - public static final int BIG_QUERY_SOURCE_FIELD_NUMBER = 6; - /** - * - * - *
-   * Optional. Configures how data is supposed to be extracted from a BigQuery
-   * source to be loaded onto the FeatureOnlineStore.
-   * 
- * - * - * .google.cloud.aiplatform.v1.FeatureView.BigQuerySource big_query_source = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the bigQuerySource field is set. - */ - @java.lang.Override - public boolean hasBigQuerySource() { - return sourceCase_ == 6; + boolean hasAutomaticResources(); + /** + * + * + *
+     * Optional. A description of resources that the FeatureView uses, which to
+     * large degree are decided by Vertex AI, and optionally allows only a
+     * modest additional configuration. If min_replica_count is not set, the
+     * default value is 2. If max_replica_count is not set, the default value
+     * is 6. The max allowed replica count is 1000.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The automaticResources. + */ + com.google.cloud.aiplatform.v1.AutomaticResources getAutomaticResources(); + /** + * + * + *
+     * Optional. A description of resources that the FeatureView uses, which to
+     * large degree are decided by Vertex AI, and optionally allows only a
+     * modest additional configuration. If min_replica_count is not set, the
+     * default value is 2. If max_replica_count is not set, the default value
+     * is 6. The max allowed replica count is 1000.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1.AutomaticResourcesOrBuilder getAutomaticResourcesOrBuilder(); } /** * * *
-   * Optional. Configures how data is supposed to be extracted from a BigQuery
-   * source to be loaded onto the FeatureOnlineStore.
+   * Configuration for FeatureViews created in Optimized FeatureOnlineStore.
    * 
* - * - * .google.cloud.aiplatform.v1.FeatureView.BigQuerySource big_query_source = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The bigQuerySource. + * Protobuf type {@code google.cloud.aiplatform.v1.FeatureView.OptimizedConfig} */ - @java.lang.Override - public com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource getBigQuerySource() { - if (sourceCase_ == 6) { - return (com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource) source_; + public static final class OptimizedConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.FeatureView.OptimizedConfig) + OptimizedConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use OptimizedConfig.newBuilder() to construct. + private OptimizedConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - return com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. Configures how data is supposed to be extracted from a BigQuery
-   * source to be loaded onto the FeatureOnlineStore.
-   * 
- * - * - * .google.cloud.aiplatform.v1.FeatureView.BigQuerySource big_query_source = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1.FeatureView.BigQuerySourceOrBuilder - getBigQuerySourceOrBuilder() { - if (sourceCase_ == 6) { - return (com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource) source_; + + private OptimizedConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OptimizedConfig(); } - return com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource.getDefaultInstance(); - } - public static final int FEATURE_REGISTRY_SOURCE_FIELD_NUMBER = 9; - /** - * - * - *
-   * Optional. Configures the features from a Feature Registry source that
-   * need to be loaded onto the FeatureOnlineStore.
-   * 
- * - * - * .google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource feature_registry_source = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the featureRegistrySource field is set. - */ - @java.lang.Override - public boolean hasFeatureRegistrySource() { - return sourceCase_ == 9; - } - /** - * - * - *
-   * Optional. Configures the features from a Feature Registry source that
-   * need to be loaded onto the FeatureOnlineStore.
-   * 
- * - * - * .google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource feature_registry_source = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The featureRegistrySource. - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource - getFeatureRegistrySource() { - if (sourceCase_ == 9) { - return (com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource) source_; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.FeatureViewProto + .internal_static_google_cloud_aiplatform_v1_FeatureView_OptimizedConfig_descriptor; } - return com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. Configures the features from a Feature Registry source that
-   * need to be loaded onto the FeatureOnlineStore.
-   * 
- * - * - * .google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource feature_registry_source = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySourceOrBuilder - getFeatureRegistrySourceOrBuilder() { - if (sourceCase_ == 9) { - return (com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource) source_; + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.FeatureViewProto + .internal_static_google_cloud_aiplatform_v1_FeatureView_OptimizedConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig.class, + com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig.Builder.class); } - return com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.getDefaultInstance(); - } - public static final int VERTEX_RAG_SOURCE_FIELD_NUMBER = 18; - /** - * - * - *
-   * Optional. The Vertex RAG Source that the FeatureView is linked to.
-   * 
- * - * - * .google.cloud.aiplatform.v1.FeatureView.VertexRagSource vertex_rag_source = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the vertexRagSource field is set. - */ - @java.lang.Override - public boolean hasVertexRagSource() { - return sourceCase_ == 18; - } - /** - * - * - *
-   * Optional. The Vertex RAG Source that the FeatureView is linked to.
-   * 
- * - * - * .google.cloud.aiplatform.v1.FeatureView.VertexRagSource vertex_rag_source = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The vertexRagSource. - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource getVertexRagSource() { - if (sourceCase_ == 18) { - return (com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource) source_; + private int bitField0_; + public static final int AUTOMATIC_RESOURCES_FIELD_NUMBER = 7; + private com.google.cloud.aiplatform.v1.AutomaticResources automaticResources_; + /** + * + * + *
+     * Optional. A description of resources that the FeatureView uses, which to
+     * large degree are decided by Vertex AI, and optionally allows only a
+     * modest additional configuration. If min_replica_count is not set, the
+     * default value is 2. If max_replica_count is not set, the default value
+     * is 6. The max allowed replica count is 1000.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the automaticResources field is set. + */ + @java.lang.Override + public boolean hasAutomaticResources() { + return ((bitField0_ & 0x00000001) != 0); } - return com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. The Vertex RAG Source that the FeatureView is linked to.
-   * 
- * - * - * .google.cloud.aiplatform.v1.FeatureView.VertexRagSource vertex_rag_source = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1.FeatureView.VertexRagSourceOrBuilder - getVertexRagSourceOrBuilder() { - if (sourceCase_ == 18) { - return (com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource) source_; + /** + * + * + *
+     * Optional. A description of resources that the FeatureView uses, which to
+     * large degree are decided by Vertex AI, and optionally allows only a
+     * modest additional configuration. If min_replica_count is not set, the
+     * default value is 2. If max_replica_count is not set, the default value
+     * is 6. The max allowed replica count is 1000.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The automaticResources. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.AutomaticResources getAutomaticResources() { + return automaticResources_ == null + ? com.google.cloud.aiplatform.v1.AutomaticResources.getDefaultInstance() + : automaticResources_; + } + /** + * + * + *
+     * Optional. A description of resources that the FeatureView uses, which to
+     * large degree are decided by Vertex AI, and optionally allows only a
+     * modest additional configuration. If min_replica_count is not set, the
+     * default value is 2. If max_replica_count is not set, the default value
+     * is 6. The max allowed replica count is 1000.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.AutomaticResourcesOrBuilder + getAutomaticResourcesOrBuilder() { + return automaticResources_ == null + ? com.google.cloud.aiplatform.v1.AutomaticResources.getDefaultInstance() + : automaticResources_; } - return com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource.getDefaultInstance(); - } - public static final int NAME_FIELD_NUMBER = 1; + private byte memoizedIsInitialized = -1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * Identifier. Name of the FeatureView. Format:
-   * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * - * @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; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } - } - /** - * - * - *
-   * Identifier. Name of the FeatureView. Format:
-   * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * - * @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; + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(7, getAutomaticResources()); + } + getUnknownFields().writeTo(output); } - } - public static final int CREATE_TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp createTime_; - /** - * - * - *
-   * Output only. Timestamp when this FeatureView was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.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 FeatureView was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.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 FeatureView was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static final int UPDATE_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp updateTime_; - /** - * - * - *
-   * Output only. Timestamp when this FeatureView was last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.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 FeatureView was last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.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 FeatureView was last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(7, getAutomaticResources()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static final int ETAG_FIELD_NUMBER = 4; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig other = + (com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig) obj; - @SuppressWarnings("serial") - private volatile java.lang.Object etag_ = ""; - /** - * - * - *
-   * Optional. Used to perform consistent read-modify-write updates. If not set,
-   * a blind "overwrite" update happens.
-   * 
- * - * string etag = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; + if (hasAutomaticResources() != other.hasAutomaticResources()) return false; + if (hasAutomaticResources()) { + if (!getAutomaticResources().equals(other.getAutomaticResources())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } - } - /** - * - * - *
-   * Optional. Used to perform consistent read-modify-write updates. If not set,
-   * a blind "overwrite" update happens.
-   * 
- * - * string etag = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAutomaticResources()) { + hash = (37 * hash) + AUTOMATIC_RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getAutomaticResources().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - } - public static final int LABELS_FIELD_NUMBER = 5; + public static com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.aiplatform.v1.FeatureViewProto - .internal_static_google_cloud_aiplatform_v1_FeatureView_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } + public static com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; + public static com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private com.google.protobuf.MapField internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + public static com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - return labels_; - } - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - * - * - *
-   * Optional. The labels with user-defined metadata to organize your
-   * FeatureViews.
-   *
-   * Label keys and values can be no longer than 64 characters
-   * (Unicode codepoints), can only contain lowercase letters, numeric
-   * characters, underscores and dashes. International characters are allowed.
-   *
-   * See https://goo.gl/xmQnxf for more information on and examples of labels.
-   * No more than 64 user labels can be associated with one
-   * FeatureOnlineStore(System labels are excluded)." System reserved label keys
-   * are prefixed with "aiplatform.googleapis.com/" and are immutable.
-   * 
- * - * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public static com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-   * Optional. The labels with user-defined metadata to organize your
-   * FeatureViews.
-   *
-   * Label keys and values can be no longer than 64 characters
-   * (Unicode codepoints), can only contain lowercase letters, numeric
-   * characters, underscores and dashes. International characters are allowed.
-   *
-   * See https://goo.gl/xmQnxf for more information on and examples of labels.
-   * No more than 64 user labels can be associated with one
-   * FeatureOnlineStore(System labels are excluded)." System reserved label keys
-   * are prefixed with "aiplatform.googleapis.com/" and are immutable.
-   * 
- * - * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-   * Optional. The labels with user-defined metadata to organize your
-   * FeatureViews.
-   *
-   * Label keys and values can be no longer than 64 characters
-   * (Unicode codepoints), can only contain lowercase letters, numeric
-   * characters, underscores and dashes. International characters are allowed.
-   *
-   * See https://goo.gl/xmQnxf for more information on and examples of labels.
-   * No more than 64 user labels can be associated with one
-   * FeatureOnlineStore(System labels are excluded)." System reserved label keys
-   * are prefixed with "aiplatform.googleapis.com/" and are immutable.
-   * 
- * - * map<string, string> labels = 5 [(.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"); + + public static com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Optional. The labels with user-defined metadata to organize your
-   * FeatureViews.
-   *
-   * Label keys and values can be no longer than 64 characters
-   * (Unicode codepoints), can only contain lowercase letters, numeric
-   * characters, underscores and dashes. International characters are allowed.
-   *
-   * See https://goo.gl/xmQnxf for more information on and examples of labels.
-   * No more than 64 user labels can be associated with one
-   * FeatureOnlineStore(System labels are excluded)." System reserved label keys
-   * are prefixed with "aiplatform.googleapis.com/" and are immutable.
-   * 
- * - * map<string, string> labels = 5 [(.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 static final int SYNC_CONFIG_FIELD_NUMBER = 7; - private com.google.cloud.aiplatform.v1.FeatureView.SyncConfig syncConfig_; - /** - * - * - *
-   * Configures when data is to be synced/updated for this FeatureView. At the
-   * end of the sync the latest featureValues for each entityId of this
-   * FeatureView are made ready for online serving.
-   * 
- * - * .google.cloud.aiplatform.v1.FeatureView.SyncConfig sync_config = 7; - * - * @return Whether the syncConfig field is set. - */ - @java.lang.Override - public boolean hasSyncConfig() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-   * Configures when data is to be synced/updated for this FeatureView. At the
-   * end of the sync the latest featureValues for each entityId of this
-   * FeatureView are made ready for online serving.
-   * 
- * - * .google.cloud.aiplatform.v1.FeatureView.SyncConfig sync_config = 7; - * - * @return The syncConfig. - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1.FeatureView.SyncConfig getSyncConfig() { - return syncConfig_ == null - ? com.google.cloud.aiplatform.v1.FeatureView.SyncConfig.getDefaultInstance() - : syncConfig_; - } - /** - * - * - *
-   * Configures when data is to be synced/updated for this FeatureView. At the
-   * end of the sync the latest featureValues for each entityId of this
-   * FeatureView are made ready for online serving.
-   * 
- * - * .google.cloud.aiplatform.v1.FeatureView.SyncConfig sync_config = 7; - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1.FeatureView.SyncConfigOrBuilder getSyncConfigOrBuilder() { - return syncConfig_ == null - ? com.google.cloud.aiplatform.v1.FeatureView.SyncConfig.getDefaultInstance() - : syncConfig_; - } - - public static final int INDEX_CONFIG_FIELD_NUMBER = 15; - private com.google.cloud.aiplatform.v1.FeatureView.IndexConfig indexConfig_; - /** - * - * - *
-   * Optional. Configuration for index preparation for vector search. It
-   * contains the required configurations to create an index from source data,
-   * so that approximate nearest neighbor (a.k.a ANN) algorithms search can be
-   * performed during online serving.
-   * 
- * - * - * .google.cloud.aiplatform.v1.FeatureView.IndexConfig index_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the indexConfig field is set. - */ - @java.lang.Override - public boolean hasIndexConfig() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-   * Optional. Configuration for index preparation for vector search. It
-   * contains the required configurations to create an index from source data,
-   * so that approximate nearest neighbor (a.k.a ANN) algorithms search can be
-   * performed during online serving.
-   * 
- * - * - * .google.cloud.aiplatform.v1.FeatureView.IndexConfig index_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The indexConfig. - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1.FeatureView.IndexConfig getIndexConfig() { - return indexConfig_ == null - ? com.google.cloud.aiplatform.v1.FeatureView.IndexConfig.getDefaultInstance() - : indexConfig_; - } - /** - * - * - *
-   * Optional. Configuration for index preparation for vector search. It
-   * contains the required configurations to create an index from source data,
-   * so that approximate nearest neighbor (a.k.a ANN) algorithms search can be
-   * performed during online serving.
-   * 
- * - * - * .google.cloud.aiplatform.v1.FeatureView.IndexConfig index_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.aiplatform.v1.FeatureView.IndexConfigOrBuilder getIndexConfigOrBuilder() { - return indexConfig_ == null - ? com.google.cloud.aiplatform.v1.FeatureView.IndexConfig.getDefaultInstance() - : indexConfig_; - } - - public static final int SATISFIES_PZS_FIELD_NUMBER = 19; - private boolean satisfiesPzs_ = false; - /** - * - * - *
-   * Output only. Reserved for future use.
-   * 
- * - * bool satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The satisfiesPzs. - */ - @java.lang.Override - public boolean getSatisfiesPzs() { - return satisfiesPzs_; - } - - public static final int SATISFIES_PZI_FIELD_NUMBER = 20; - private boolean satisfiesPzi_ = false; - /** - * - * - *
-   * Output only. Reserved for future use.
-   * 
- * - * bool satisfies_pzi = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The satisfiesPzi. - */ - @java.lang.Override - public boolean getSatisfiesPzi() { - return satisfiesPzi_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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, getCreateTime()); + public static com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(3, getUpdateTime()); + + public static com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, etag_); + + public static com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); - if (sourceCase_ == 6) { - output.writeMessage(6, (com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource) source_); + + public static com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(7, getSyncConfig()); + + public static com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - if (sourceCase_ == 9) { - output.writeMessage( - 9, (com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource) source_); + + public static com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(15, getIndexConfig()); + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); } - if (sourceCase_ == 18) { - output.writeMessage(18, (com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource) source_); + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); } - if (satisfiesPzs_ != false) { - output.writeBool(19, satisfiesPzs_); + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - if (satisfiesPzi_ != false) { - output.writeBool(20, satisfiesPzi_); + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } - 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, getCreateTime()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, etag_); - } - 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(5, labels__); - } - if (sourceCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource) source_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSyncConfig()); - } - if (sourceCase_ == 9) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 9, (com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource) source_); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getIndexConfig()); - } - if (sourceCase_ == 18) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 18, (com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource) source_); - } - if (satisfiesPzs_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(19, satisfiesPzs_); - } - if (satisfiesPzi_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, satisfiesPzi_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - 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.FeatureView)) { - return super.equals(obj); + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } - com.google.cloud.aiplatform.v1.FeatureView other = - (com.google.cloud.aiplatform.v1.FeatureView) obj; + /** + * + * + *
+     * Configuration for FeatureViews created in Optimized FeatureOnlineStore.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.FeatureView.OptimizedConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.FeatureView.OptimizedConfig) + com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.FeatureViewProto + .internal_static_google_cloud_aiplatform_v1_FeatureView_OptimizedConfig_descriptor; + } - if (!getName().equals(other.getName())) 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 (!getEtag().equals(other.getEtag())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (hasSyncConfig() != other.hasSyncConfig()) return false; - if (hasSyncConfig()) { - if (!getSyncConfig().equals(other.getSyncConfig())) return false; - } - if (hasIndexConfig() != other.hasIndexConfig()) return false; - if (hasIndexConfig()) { - if (!getIndexConfig().equals(other.getIndexConfig())) return false; - } - if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; - if (getSatisfiesPzi() != other.getSatisfiesPzi()) return false; - if (!getSourceCase().equals(other.getSourceCase())) return false; - switch (sourceCase_) { - case 6: - if (!getBigQuerySource().equals(other.getBigQuerySource())) return false; - break; - case 9: - if (!getFeatureRegistrySource().equals(other.getFeatureRegistrySource())) return false; - break; - case 18: - if (!getVertexRagSource().equals(other.getVertexRagSource())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.FeatureViewProto + .internal_static_google_cloud_aiplatform_v1_FeatureView_OptimizedConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig.class, + com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig.Builder.class); + } - @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 (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().hashCode(); - } - hash = (37 * hash) + ETAG_FIELD_NUMBER; - hash = (53 * hash) + getEtag().hashCode(); - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - if (hasSyncConfig()) { - hash = (37 * hash) + SYNC_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getSyncConfig().hashCode(); - } - if (hasIndexConfig()) { - hash = (37 * hash) + INDEX_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getIndexConfig().hashCode(); - } - hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); - hash = (37 * hash) + SATISFIES_PZI_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzi()); - switch (sourceCase_) { - case 6: - hash = (37 * hash) + BIG_QUERY_SOURCE_FIELD_NUMBER; - hash = (53 * hash) + getBigQuerySource().hashCode(); - break; - case 9: - hash = (37 * hash) + FEATURE_REGISTRY_SOURCE_FIELD_NUMBER; - hash = (53 * hash) + getFeatureRegistrySource().hashCode(); - break; - case 18: - hash = (37 * hash) + VERTEX_RAG_SOURCE_FIELD_NUMBER; - hash = (53 * hash) + getVertexRagSource().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + // Construct using com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - public static com.google.cloud.aiplatform.v1.FeatureView parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - public static com.google.cloud.aiplatform.v1.FeatureView parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getAutomaticResourcesFieldBuilder(); + } + } - public static com.google.cloud.aiplatform.v1.FeatureView parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + automaticResources_ = null; + if (automaticResourcesBuilder_ != null) { + automaticResourcesBuilder_.dispose(); + automaticResourcesBuilder_ = null; + } + return this; + } - public static com.google.cloud.aiplatform.v1.FeatureView parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.FeatureViewProto + .internal_static_google_cloud_aiplatform_v1_FeatureView_OptimizedConfig_descriptor; + } - public static com.google.cloud.aiplatform.v1.FeatureView parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig.getDefaultInstance(); + } - public static com.google.cloud.aiplatform.v1.FeatureView parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig build() { + com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static com.google.cloud.aiplatform.v1.FeatureView parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + @java.lang.Override + public com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig buildPartial() { + com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig result = + new com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - public static com.google.cloud.aiplatform.v1.FeatureView parseFrom( - java.io.InputStream 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.FeatureView parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.aiplatform.v1.FeatureView parseDelimitedFrom( - java.io.InputStream 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.FeatureView 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.FeatureView parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + private void buildPartial0( + com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.automaticResources_ = + automaticResourcesBuilder_ == null + ? automaticResources_ + : automaticResourcesBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } - public static Builder newBuilder(com.google.cloud.aiplatform.v1.FeatureView prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * FeatureView is representation of values that the FeatureOnlineStore will
-   * serve based on its syncConfig.
-   * 
- * - * Protobuf type {@code google.cloud.aiplatform.v1.FeatureView} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.FeatureView) - com.google.cloud.aiplatform.v1.FeatureViewOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.aiplatform.v1.FeatureViewProto - .internal_static_google_cloud_aiplatform_v1_FeatureView_descriptor; - } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 5: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 5: - return internalGetMutableLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.aiplatform.v1.FeatureViewProto - .internal_static_google_cloud_aiplatform_v1_FeatureView_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1.FeatureView.class, - com.google.cloud.aiplatform.v1.FeatureView.Builder.class); - } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } - // Construct using com.google.cloud.aiplatform.v1.FeatureView.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + public Builder mergeFrom(com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig other) { + if (other + == com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig.getDefaultInstance()) + return this; + if (other.hasAutomaticResources()) { + mergeAutomaticResources(other.getAutomaticResources()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getCreateTimeFieldBuilder(); - getUpdateTimeFieldBuilder(); - getSyncConfigFieldBuilder(); - getIndexConfigFieldBuilder(); + @java.lang.Override + public final boolean isInitialized() { + return true; } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (bigQuerySourceBuilder_ != null) { - bigQuerySourceBuilder_.clear(); + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 58: + { + input.readMessage( + getAutomaticResourcesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + 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; } - if (featureRegistrySourceBuilder_ != null) { - featureRegistrySourceBuilder_.clear(); + + private int bitField0_; + + private com.google.cloud.aiplatform.v1.AutomaticResources automaticResources_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.AutomaticResources, + com.google.cloud.aiplatform.v1.AutomaticResources.Builder, + com.google.cloud.aiplatform.v1.AutomaticResourcesOrBuilder> + automaticResourcesBuilder_; + /** + * + * + *
+       * Optional. A description of resources that the FeatureView uses, which to
+       * large degree are decided by Vertex AI, and optionally allows only a
+       * modest additional configuration. If min_replica_count is not set, the
+       * default value is 2. If max_replica_count is not set, the default value
+       * is 6. The max allowed replica count is 1000.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the automaticResources field is set. + */ + public boolean hasAutomaticResources() { + return ((bitField0_ & 0x00000001) != 0); } - if (vertexRagSourceBuilder_ != null) { - vertexRagSourceBuilder_.clear(); + /** + * + * + *
+       * Optional. A description of resources that the FeatureView uses, which to
+       * large degree are decided by Vertex AI, and optionally allows only a
+       * modest additional configuration. If min_replica_count is not set, the
+       * default value is 2. If max_replica_count is not set, the default value
+       * is 6. The max allowed replica count is 1000.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The automaticResources. + */ + public com.google.cloud.aiplatform.v1.AutomaticResources getAutomaticResources() { + if (automaticResourcesBuilder_ == null) { + return automaticResources_ == null + ? com.google.cloud.aiplatform.v1.AutomaticResources.getDefaultInstance() + : automaticResources_; + } else { + return automaticResourcesBuilder_.getMessage(); + } } - name_ = ""; - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; + /** + * + * + *
+       * Optional. A description of resources that the FeatureView uses, which to
+       * large degree are decided by Vertex AI, and optionally allows only a
+       * modest additional configuration. If min_replica_count is not set, the
+       * default value is 2. If max_replica_count is not set, the default value
+       * is 6. The max allowed replica count is 1000.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAutomaticResources( + com.google.cloud.aiplatform.v1.AutomaticResources value) { + if (automaticResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + automaticResources_ = value; + } else { + automaticResourcesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; } - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; - } - etag_ = ""; - internalGetMutableLabels().clear(); - syncConfig_ = null; - if (syncConfigBuilder_ != null) { - syncConfigBuilder_.dispose(); - syncConfigBuilder_ = null; - } - indexConfig_ = null; - if (indexConfigBuilder_ != null) { - indexConfigBuilder_.dispose(); - indexConfigBuilder_ = null; - } - satisfiesPzs_ = false; - satisfiesPzi_ = false; - sourceCase_ = 0; - source_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.aiplatform.v1.FeatureViewProto - .internal_static_google_cloud_aiplatform_v1_FeatureView_descriptor; - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1.FeatureView getDefaultInstanceForType() { - return com.google.cloud.aiplatform.v1.FeatureView.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1.FeatureView build() { - com.google.cloud.aiplatform.v1.FeatureView result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.aiplatform.v1.FeatureView buildPartial() { - com.google.cloud.aiplatform.v1.FeatureView result = - new com.google.cloud.aiplatform.v1.FeatureView(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.aiplatform.v1.FeatureView result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.name_ = name_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000010) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.etag_ = etag_; + /** + * + * + *
+       * Optional. A description of resources that the FeatureView uses, which to
+       * large degree are decided by Vertex AI, and optionally allows only a
+       * modest additional configuration. If min_replica_count is not set, the
+       * default value is 2. If max_replica_count is not set, the default value
+       * is 6. The max allowed replica count is 1000.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAutomaticResources( + com.google.cloud.aiplatform.v1.AutomaticResources.Builder builderForValue) { + if (automaticResourcesBuilder_ == null) { + automaticResources_ = builderForValue.build(); + } else { + automaticResourcesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); + /** + * + * + *
+       * Optional. A description of resources that the FeatureView uses, which to
+       * large degree are decided by Vertex AI, and optionally allows only a
+       * modest additional configuration. If min_replica_count is not set, the
+       * default value is 2. If max_replica_count is not set, the default value
+       * is 6. The max allowed replica count is 1000.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAutomaticResources( + com.google.cloud.aiplatform.v1.AutomaticResources value) { + if (automaticResourcesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && automaticResources_ != null + && automaticResources_ + != com.google.cloud.aiplatform.v1.AutomaticResources.getDefaultInstance()) { + getAutomaticResourcesBuilder().mergeFrom(value); + } else { + automaticResources_ = value; + } + } else { + automaticResourcesBuilder_.mergeFrom(value); + } + if (automaticResources_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.syncConfig_ = syncConfigBuilder_ == null ? syncConfig_ : syncConfigBuilder_.build(); - to_bitField0_ |= 0x00000004; + /** + * + * + *
+       * Optional. A description of resources that the FeatureView uses, which to
+       * large degree are decided by Vertex AI, and optionally allows only a
+       * modest additional configuration. If min_replica_count is not set, the
+       * default value is 2. If max_replica_count is not set, the default value
+       * is 6. The max allowed replica count is 1000.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAutomaticResources() { + bitField0_ = (bitField0_ & ~0x00000001); + automaticResources_ = null; + if (automaticResourcesBuilder_ != null) { + automaticResourcesBuilder_.dispose(); + automaticResourcesBuilder_ = null; + } + onChanged(); + return this; } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.indexConfig_ = - indexConfigBuilder_ == null ? indexConfig_ : indexConfigBuilder_.build(); - to_bitField0_ |= 0x00000008; + /** + * + * + *
+       * Optional. A description of resources that the FeatureView uses, which to
+       * large degree are decided by Vertex AI, and optionally allows only a
+       * modest additional configuration. If min_replica_count is not set, the
+       * default value is 2. If max_replica_count is not set, the default value
+       * is 6. The max allowed replica count is 1000.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.AutomaticResources.Builder + getAutomaticResourcesBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getAutomaticResourcesFieldBuilder().getBuilder(); } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.satisfiesPzs_ = satisfiesPzs_; + /** + * + * + *
+       * Optional. A description of resources that the FeatureView uses, which to
+       * large degree are decided by Vertex AI, and optionally allows only a
+       * modest additional configuration. If min_replica_count is not set, the
+       * default value is 2. If max_replica_count is not set, the default value
+       * is 6. The max allowed replica count is 1000.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.AutomaticResourcesOrBuilder + getAutomaticResourcesOrBuilder() { + if (automaticResourcesBuilder_ != null) { + return automaticResourcesBuilder_.getMessageOrBuilder(); + } else { + return automaticResources_ == null + ? com.google.cloud.aiplatform.v1.AutomaticResources.getDefaultInstance() + : automaticResources_; + } } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.satisfiesPzi_ = satisfiesPzi_; + /** + * + * + *
+       * Optional. A description of resources that the FeatureView uses, which to
+       * large degree are decided by Vertex AI, and optionally allows only a
+       * modest additional configuration. If min_replica_count is not set, the
+       * default value is 2. If max_replica_count is not set, the default value
+       * is 6. The max allowed replica count is 1000.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.AutomaticResources, + com.google.cloud.aiplatform.v1.AutomaticResources.Builder, + com.google.cloud.aiplatform.v1.AutomaticResourcesOrBuilder> + getAutomaticResourcesFieldBuilder() { + if (automaticResourcesBuilder_ == null) { + automaticResourcesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.AutomaticResources, + com.google.cloud.aiplatform.v1.AutomaticResources.Builder, + com.google.cloud.aiplatform.v1.AutomaticResourcesOrBuilder>( + getAutomaticResources(), getParentForChildren(), isClean()); + automaticResources_ = null; + } + return automaticResourcesBuilder_; } - result.bitField0_ |= to_bitField0_; - } - private void buildPartialOneofs(com.google.cloud.aiplatform.v1.FeatureView result) { - result.sourceCase_ = sourceCase_; - result.source_ = this.source_; - if (sourceCase_ == 6 && bigQuerySourceBuilder_ != null) { - result.source_ = bigQuerySourceBuilder_.build(); - } - if (sourceCase_ == 9 && featureRegistrySourceBuilder_ != null) { - result.source_ = featureRegistrySourceBuilder_.build(); + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); } - if (sourceCase_ == 18 && vertexRagSourceBuilder_ != null) { - result.source_ = vertexRagSourceBuilder_.build(); + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - } - @java.lang.Override - public Builder clone() { - return super.clone(); + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.FeatureView.OptimizedConfig) } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.FeatureView.OptimizedConfig) + private static final com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig + DEFAULT_INSTANCE; - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig(); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + public static com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig getDefaultInstance() { + return DEFAULT_INSTANCE; } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OptimizedConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new 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 addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + public com.google.protobuf.Parser getParserForType() { + return PARSER; } @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.aiplatform.v1.FeatureView) { - return mergeFrom((com.google.cloud.aiplatform.v1.FeatureView) other); - } else { - super.mergeFrom(other); - return this; - } + public com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } - public Builder mergeFrom(com.google.cloud.aiplatform.v1.FeatureView other) { - if (other == com.google.cloud.aiplatform.v1.FeatureView.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - if (!other.getEtag().isEmpty()) { - etag_ = other.etag_; - bitField0_ |= 0x00000040; - onChanged(); + private int bitField0_; + private int sourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object source_; + + public enum SourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + BIG_QUERY_SOURCE(6), + FEATURE_REGISTRY_SOURCE(9), + VERTEX_RAG_SOURCE(18), + SOURCE_NOT_SET(0); + private final int value; + + private SourceCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 6: + return BIG_QUERY_SOURCE; + case 9: + return FEATURE_REGISTRY_SOURCE; + case 18: + return VERTEX_RAG_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public static final int BIG_QUERY_SOURCE_FIELD_NUMBER = 6; + /** + * + * + *
+   * Optional. Configures how data is supposed to be extracted from a BigQuery
+   * source to be loaded onto the FeatureOnlineStore.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.FeatureView.BigQuerySource big_query_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bigQuerySource field is set. + */ + @java.lang.Override + public boolean hasBigQuerySource() { + return sourceCase_ == 6; + } + /** + * + * + *
+   * Optional. Configures how data is supposed to be extracted from a BigQuery
+   * source to be loaded onto the FeatureOnlineStore.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.FeatureView.BigQuerySource big_query_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bigQuerySource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource getBigQuerySource() { + if (sourceCase_ == 6) { + return (com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource) source_; + } + return com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Configures how data is supposed to be extracted from a BigQuery
+   * source to be loaded onto the FeatureOnlineStore.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.FeatureView.BigQuerySource big_query_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.FeatureView.BigQuerySourceOrBuilder + getBigQuerySourceOrBuilder() { + if (sourceCase_ == 6) { + return (com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource) source_; + } + return com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource.getDefaultInstance(); + } + + public static final int FEATURE_REGISTRY_SOURCE_FIELD_NUMBER = 9; + /** + * + * + *
+   * Optional. Configures the features from a Feature Registry source that
+   * need to be loaded onto the FeatureOnlineStore.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource feature_registry_source = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the featureRegistrySource field is set. + */ + @java.lang.Override + public boolean hasFeatureRegistrySource() { + return sourceCase_ == 9; + } + /** + * + * + *
+   * Optional. Configures the features from a Feature Registry source that
+   * need to be loaded onto the FeatureOnlineStore.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource feature_registry_source = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The featureRegistrySource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource + getFeatureRegistrySource() { + if (sourceCase_ == 9) { + return (com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource) source_; + } + return com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Configures the features from a Feature Registry source that
+   * need to be loaded onto the FeatureOnlineStore.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource feature_registry_source = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySourceOrBuilder + getFeatureRegistrySourceOrBuilder() { + if (sourceCase_ == 9) { + return (com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource) source_; + } + return com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.getDefaultInstance(); + } + + public static final int VERTEX_RAG_SOURCE_FIELD_NUMBER = 18; + /** + * + * + *
+   * Optional. The Vertex RAG Source that the FeatureView is linked to.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.FeatureView.VertexRagSource vertex_rag_source = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the vertexRagSource field is set. + */ + @java.lang.Override + public boolean hasVertexRagSource() { + return sourceCase_ == 18; + } + /** + * + * + *
+   * Optional. The Vertex RAG Source that the FeatureView is linked to.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.FeatureView.VertexRagSource vertex_rag_source = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The vertexRagSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource getVertexRagSource() { + if (sourceCase_ == 18) { + return (com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource) source_; + } + return com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. The Vertex RAG Source that the FeatureView is linked to.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.FeatureView.VertexRagSource vertex_rag_source = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.FeatureView.VertexRagSourceOrBuilder + getVertexRagSourceOrBuilder() { + if (sourceCase_ == 18) { + return (com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource) source_; + } + return com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Identifier. Name of the FeatureView. Format:
+   * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + /** + * + * + *
+   * Identifier. Name of the FeatureView. Format:
+   * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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 CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Timestamp when this FeatureView was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.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 FeatureView was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.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 FeatureView was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.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 = 3; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. Timestamp when this FeatureView was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.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 FeatureView was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.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 FeatureView was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.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 ETAG_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + /** + * + * + *
+   * Optional. Used to perform consistent read-modify-write updates. If not set,
+   * a blind "overwrite" update happens.
+   * 
+ * + * string etag = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. Used to perform consistent read-modify-write updates. If not set,
+   * a blind "overwrite" update happens.
+   * 
+ * + * string etag = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 LABELS_FIELD_NUMBER = 5; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.aiplatform.v1.FeatureViewProto + .internal_static_google_cloud_aiplatform_v1_FeatureView_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. The labels with user-defined metadata to organize your
+   * FeatureViews.
+   *
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   *
+   * See https://goo.gl/xmQnxf for more information on and examples of labels.
+   * No more than 64 user labels can be associated with one
+   * FeatureOnlineStore(System labels are excluded)." System reserved label keys
+   * are prefixed with "aiplatform.googleapis.com/" and are immutable.
+   * 
+ * + * map<string, string> labels = 5 [(.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. The labels with user-defined metadata to organize your
+   * FeatureViews.
+   *
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   *
+   * See https://goo.gl/xmQnxf for more information on and examples of labels.
+   * No more than 64 user labels can be associated with one
+   * FeatureOnlineStore(System labels are excluded)." System reserved label keys
+   * are prefixed with "aiplatform.googleapis.com/" and are immutable.
+   * 
+ * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * Optional. The labels with user-defined metadata to organize your
+   * FeatureViews.
+   *
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   *
+   * See https://goo.gl/xmQnxf for more information on and examples of labels.
+   * No more than 64 user labels can be associated with one
+   * FeatureOnlineStore(System labels are excluded)." System reserved label keys
+   * are prefixed with "aiplatform.googleapis.com/" and are immutable.
+   * 
+ * + * map<string, string> labels = 5 [(.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. The labels with user-defined metadata to organize your
+   * FeatureViews.
+   *
+   * Label keys and values can be no longer than 64 characters
+   * (Unicode codepoints), can only contain lowercase letters, numeric
+   * characters, underscores and dashes. International characters are allowed.
+   *
+   * See https://goo.gl/xmQnxf for more information on and examples of labels.
+   * No more than 64 user labels can be associated with one
+   * FeatureOnlineStore(System labels are excluded)." System reserved label keys
+   * are prefixed with "aiplatform.googleapis.com/" and are immutable.
+   * 
+ * + * map<string, string> labels = 5 [(.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 static final int SYNC_CONFIG_FIELD_NUMBER = 7; + private com.google.cloud.aiplatform.v1.FeatureView.SyncConfig syncConfig_; + /** + * + * + *
+   * Configures when data is to be synced/updated for this FeatureView. At the
+   * end of the sync the latest featureValues for each entityId of this
+   * FeatureView are made ready for online serving.
+   * 
+ * + * .google.cloud.aiplatform.v1.FeatureView.SyncConfig sync_config = 7; + * + * @return Whether the syncConfig field is set. + */ + @java.lang.Override + public boolean hasSyncConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+   * Configures when data is to be synced/updated for this FeatureView. At the
+   * end of the sync the latest featureValues for each entityId of this
+   * FeatureView are made ready for online serving.
+   * 
+ * + * .google.cloud.aiplatform.v1.FeatureView.SyncConfig sync_config = 7; + * + * @return The syncConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.FeatureView.SyncConfig getSyncConfig() { + return syncConfig_ == null + ? com.google.cloud.aiplatform.v1.FeatureView.SyncConfig.getDefaultInstance() + : syncConfig_; + } + /** + * + * + *
+   * Configures when data is to be synced/updated for this FeatureView. At the
+   * end of the sync the latest featureValues for each entityId of this
+   * FeatureView are made ready for online serving.
+   * 
+ * + * .google.cloud.aiplatform.v1.FeatureView.SyncConfig sync_config = 7; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.FeatureView.SyncConfigOrBuilder getSyncConfigOrBuilder() { + return syncConfig_ == null + ? com.google.cloud.aiplatform.v1.FeatureView.SyncConfig.getDefaultInstance() + : syncConfig_; + } + + public static final int INDEX_CONFIG_FIELD_NUMBER = 15; + private com.google.cloud.aiplatform.v1.FeatureView.IndexConfig indexConfig_; + /** + * + * + *
+   * Optional. Configuration for index preparation for vector search. It
+   * contains the required configurations to create an index from source data,
+   * so that approximate nearest neighbor (a.k.a ANN) algorithms search can be
+   * performed during online serving.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.FeatureView.IndexConfig index_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the indexConfig field is set. + */ + @java.lang.Override + public boolean hasIndexConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+   * Optional. Configuration for index preparation for vector search. It
+   * contains the required configurations to create an index from source data,
+   * so that approximate nearest neighbor (a.k.a ANN) algorithms search can be
+   * performed during online serving.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.FeatureView.IndexConfig index_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The indexConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.FeatureView.IndexConfig getIndexConfig() { + return indexConfig_ == null + ? com.google.cloud.aiplatform.v1.FeatureView.IndexConfig.getDefaultInstance() + : indexConfig_; + } + /** + * + * + *
+   * Optional. Configuration for index preparation for vector search. It
+   * contains the required configurations to create an index from source data,
+   * so that approximate nearest neighbor (a.k.a ANN) algorithms search can be
+   * performed during online serving.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.FeatureView.IndexConfig index_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.FeatureView.IndexConfigOrBuilder getIndexConfigOrBuilder() { + return indexConfig_ == null + ? com.google.cloud.aiplatform.v1.FeatureView.IndexConfig.getDefaultInstance() + : indexConfig_; + } + + public static final int OPTIMIZED_CONFIG_FIELD_NUMBER = 16; + private com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig optimizedConfig_; + /** + * + * + *
+   * Optional. Configuration for FeatureView created under Optimized
+   * FeatureOnlineStore.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.FeatureView.OptimizedConfig optimized_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the optimizedConfig field is set. + */ + @java.lang.Override + public boolean hasOptimizedConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+   * Optional. Configuration for FeatureView created under Optimized
+   * FeatureOnlineStore.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.FeatureView.OptimizedConfig optimized_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The optimizedConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig getOptimizedConfig() { + return optimizedConfig_ == null + ? com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig.getDefaultInstance() + : optimizedConfig_; + } + /** + * + * + *
+   * Optional. Configuration for FeatureView created under Optimized
+   * FeatureOnlineStore.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.FeatureView.OptimizedConfig optimized_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfigOrBuilder + getOptimizedConfigOrBuilder() { + return optimizedConfig_ == null + ? com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig.getDefaultInstance() + : optimizedConfig_; + } + + public static final int SERVICE_AGENT_TYPE_FIELD_NUMBER = 14; + private int serviceAgentType_ = 0; + /** + * + * + *
+   * Optional. Service agent type used during data sync. By default, the Vertex
+   * AI Service Agent is used. When using an IAM Policy to isolate this
+   * FeatureView within a project, a separate service account should be
+   * provisioned by setting this field to `SERVICE_AGENT_TYPE_FEATURE_VIEW`.
+   * This will generate a separate service account to access the BigQuery source
+   * table.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.FeatureView.ServiceAgentType service_agent_type = 14 [(.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 data sync. By default, the Vertex
+   * AI Service Agent is used. When using an IAM Policy to isolate this
+   * FeatureView within a project, a separate service account should be
+   * provisioned by setting this field to `SERVICE_AGENT_TYPE_FEATURE_VIEW`.
+   * This will generate a separate service account to access the BigQuery source
+   * table.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.FeatureView.ServiceAgentType service_agent_type = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceAgentType. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.FeatureView.ServiceAgentType getServiceAgentType() { + com.google.cloud.aiplatform.v1.FeatureView.ServiceAgentType result = + com.google.cloud.aiplatform.v1.FeatureView.ServiceAgentType.forNumber(serviceAgentType_); + return result == null + ? com.google.cloud.aiplatform.v1.FeatureView.ServiceAgentType.UNRECOGNIZED + : result; + } + + public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAccountEmail_ = ""; + /** + * + * + *
+   * Output only. A Service Account unique to this FeatureView. The role
+   * bigquery.dataViewer should be granted to this service account to allow
+   * Vertex AI Feature Store to sync data to the online store.
+   * 
+ * + * string service_account_email = 13 [(.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 FeatureView. The role
+   * bigquery.dataViewer should be granted to this service account to allow
+   * Vertex AI Feature Store to sync data to the online store.
+   * 
+ * + * string service_account_email = 13 [(.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; + } + } + + public static final int SATISFIES_PZS_FIELD_NUMBER = 19; + private boolean satisfiesPzs_ = false; + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + + public static final int SATISFIES_PZI_FIELD_NUMBER = 20; + private boolean satisfiesPzi_ = false; + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzi = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, etag_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); + if (sourceCase_ == 6) { + output.writeMessage(6, (com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource) source_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(7, getSyncConfig()); + } + if (sourceCase_ == 9) { + output.writeMessage( + 9, (com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource) source_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, serviceAccountEmail_); + } + if (serviceAgentType_ + != com.google.cloud.aiplatform.v1.FeatureView.ServiceAgentType + .SERVICE_AGENT_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(14, serviceAgentType_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(15, getIndexConfig()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(16, getOptimizedConfig()); + } + if (sourceCase_ == 18) { + output.writeMessage(18, (com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource) source_); + } + if (satisfiesPzs_ != false) { + output.writeBool(19, satisfiesPzs_); + } + if (satisfiesPzi_ != false) { + output.writeBool(20, satisfiesPzi_); + } + 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, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, etag_); + } + 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(5, labels__); + } + if (sourceCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource) source_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSyncConfig()); + } + if (sourceCase_ == 9) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource) source_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, serviceAccountEmail_); + } + if (serviceAgentType_ + != com.google.cloud.aiplatform.v1.FeatureView.ServiceAgentType + .SERVICE_AGENT_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, serviceAgentType_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getIndexConfig()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getOptimizedConfig()); + } + if (sourceCase_ == 18) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 18, (com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource) source_); + } + if (satisfiesPzs_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(19, satisfiesPzs_); + } + if (satisfiesPzi_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, satisfiesPzi_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.FeatureView)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.FeatureView other = + (com.google.cloud.aiplatform.v1.FeatureView) obj; + + if (!getName().equals(other.getName())) 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 (!getEtag().equals(other.getEtag())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (hasSyncConfig() != other.hasSyncConfig()) return false; + if (hasSyncConfig()) { + if (!getSyncConfig().equals(other.getSyncConfig())) return false; + } + if (hasIndexConfig() != other.hasIndexConfig()) return false; + if (hasIndexConfig()) { + if (!getIndexConfig().equals(other.getIndexConfig())) return false; + } + if (hasOptimizedConfig() != other.hasOptimizedConfig()) return false; + if (hasOptimizedConfig()) { + if (!getOptimizedConfig().equals(other.getOptimizedConfig())) return false; + } + if (serviceAgentType_ != other.serviceAgentType_) return false; + if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false; + if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; + if (getSatisfiesPzi() != other.getSatisfiesPzi()) return false; + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 6: + if (!getBigQuerySource().equals(other.getBigQuerySource())) return false; + break; + case 9: + if (!getFeatureRegistrySource().equals(other.getFeatureRegistrySource())) return false; + break; + case 18: + if (!getVertexRagSource().equals(other.getVertexRagSource())) 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(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (hasSyncConfig()) { + hash = (37 * hash) + SYNC_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSyncConfig().hashCode(); + } + if (hasIndexConfig()) { + hash = (37 * hash) + INDEX_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getIndexConfig().hashCode(); + } + if (hasOptimizedConfig()) { + hash = (37 * hash) + OPTIMIZED_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getOptimizedConfig().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(); + hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); + hash = (37 * hash) + SATISFIES_PZI_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzi()); + switch (sourceCase_) { + case 6: + hash = (37 * hash) + BIG_QUERY_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getBigQuerySource().hashCode(); + break; + case 9: + hash = (37 * hash) + FEATURE_REGISTRY_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getFeatureRegistrySource().hashCode(); + break; + case 18: + hash = (37 * hash) + VERTEX_RAG_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getVertexRagSource().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.FeatureView parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.FeatureView parseFrom( + 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.FeatureView parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.FeatureView parseFrom( + com.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.FeatureView parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.FeatureView 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.FeatureView parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.FeatureView parseFrom( + java.io.InputStream 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.FeatureView parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.FeatureView parseDelimitedFrom( + java.io.InputStream 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.FeatureView 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.FeatureView parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.FeatureView prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * FeatureView is representation of values that the FeatureOnlineStore will
+   * serve based on its syncConfig.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.FeatureView} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.FeatureView) + com.google.cloud.aiplatform.v1.FeatureViewOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.FeatureViewProto + .internal_static_google_cloud_aiplatform_v1_FeatureView_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 5: + 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.aiplatform.v1.FeatureViewProto + .internal_static_google_cloud_aiplatform_v1_FeatureView_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.FeatureView.class, + com.google.cloud.aiplatform.v1.FeatureView.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.FeatureView.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(); + getSyncConfigFieldBuilder(); + getIndexConfigFieldBuilder(); + getOptimizedConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (bigQuerySourceBuilder_ != null) { + bigQuerySourceBuilder_.clear(); + } + if (featureRegistrySourceBuilder_ != null) { + featureRegistrySourceBuilder_.clear(); + } + if (vertexRagSourceBuilder_ != null) { + vertexRagSourceBuilder_.clear(); + } + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + etag_ = ""; + internalGetMutableLabels().clear(); + syncConfig_ = null; + if (syncConfigBuilder_ != null) { + syncConfigBuilder_.dispose(); + syncConfigBuilder_ = null; + } + indexConfig_ = null; + if (indexConfigBuilder_ != null) { + indexConfigBuilder_.dispose(); + indexConfigBuilder_ = null; + } + optimizedConfig_ = null; + if (optimizedConfigBuilder_ != null) { + optimizedConfigBuilder_.dispose(); + optimizedConfigBuilder_ = null; + } + serviceAgentType_ = 0; + serviceAccountEmail_ = ""; + satisfiesPzs_ = false; + satisfiesPzi_ = false; + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.FeatureViewProto + .internal_static_google_cloud_aiplatform_v1_FeatureView_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.FeatureView getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.FeatureView.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.FeatureView build() { + com.google.cloud.aiplatform.v1.FeatureView result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.FeatureView buildPartial() { + com.google.cloud.aiplatform.v1.FeatureView result = + new com.google.cloud.aiplatform.v1.FeatureView(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.FeatureView result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.syncConfig_ = syncConfigBuilder_ == null ? syncConfig_ : syncConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.indexConfig_ = + indexConfigBuilder_ == null ? indexConfig_ : indexConfigBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.optimizedConfig_ = + optimizedConfigBuilder_ == null ? optimizedConfig_ : optimizedConfigBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.serviceAgentType_ = serviceAgentType_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.serviceAccountEmail_ = serviceAccountEmail_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.satisfiesPzs_ = satisfiesPzs_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.satisfiesPzi_ = satisfiesPzi_; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.FeatureView result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 6 && bigQuerySourceBuilder_ != null) { + result.source_ = bigQuerySourceBuilder_.build(); + } + if (sourceCase_ == 9 && featureRegistrySourceBuilder_ != null) { + result.source_ = featureRegistrySourceBuilder_.build(); + } + if (sourceCase_ == 18 && vertexRagSourceBuilder_ != null) { + result.source_ = vertexRagSourceBuilder_.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.FeatureView) { + return mergeFrom((com.google.cloud.aiplatform.v1.FeatureView) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.FeatureView other) { + if (other == com.google.cloud.aiplatform.v1.FeatureView.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000040; + onChanged(); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000080; + if (other.hasSyncConfig()) { + mergeSyncConfig(other.getSyncConfig()); + } + if (other.hasIndexConfig()) { + mergeIndexConfig(other.getIndexConfig()); + } + if (other.hasOptimizedConfig()) { + mergeOptimizedConfig(other.getOptimizedConfig()); + } + if (other.serviceAgentType_ != 0) { + setServiceAgentTypeValue(other.getServiceAgentTypeValue()); + } + if (!other.getServiceAccountEmail().isEmpty()) { + serviceAccountEmail_ = other.serviceAccountEmail_; + bitField0_ |= 0x00001000; + onChanged(); + } + if (other.getSatisfiesPzs() != false) { + setSatisfiesPzs(other.getSatisfiesPzs()); + } + if (other.getSatisfiesPzi() != false) { + setSatisfiesPzi(other.getSatisfiesPzi()); + } + switch (other.getSourceCase()) { + case BIG_QUERY_SOURCE: + { + mergeBigQuerySource(other.getBigQuerySource()); + break; + } + case FEATURE_REGISTRY_SOURCE: + { + mergeFeatureRegistrySource(other.getFeatureRegistrySource()); + break; + } + case VERTEX_RAG_SOURCE: + { + mergeVertexRagSource(other.getVertexRagSource()); + break; + } + case SOURCE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 10 + case 18: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 26 + case 34: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 34 + case 42: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 42 + case 50: + { + input.readMessage(getBigQuerySourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage(getSyncConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 58 + case 74: + { + input.readMessage( + getFeatureRegistrySourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 9; + break; + } // case 74 + case 106: + { + serviceAccountEmail_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 106 + case 112: + { + serviceAgentType_ = input.readEnum(); + bitField0_ |= 0x00000800; + break; + } // case 112 + case 122: + { + input.readMessage(getIndexConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 122 + case 130: + { + input.readMessage(getOptimizedConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 130 + case 146: + { + input.readMessage(getVertexRagSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 18; + break; + } // case 146 + case 152: + { + satisfiesPzs_ = input.readBool(); + bitField0_ |= 0x00002000; + break; + } // case 152 + case 160: + { + satisfiesPzi_ = input.readBool(); + bitField0_ |= 0x00004000; + break; + } // case 160 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int sourceCase_ = 0; + private java.lang.Object source_; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource, + com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource.Builder, + com.google.cloud.aiplatform.v1.FeatureView.BigQuerySourceOrBuilder> + bigQuerySourceBuilder_; + /** + * + * + *
+     * Optional. Configures how data is supposed to be extracted from a BigQuery
+     * source to be loaded onto the FeatureOnlineStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.FeatureView.BigQuerySource big_query_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bigQuerySource field is set. + */ + @java.lang.Override + public boolean hasBigQuerySource() { + return sourceCase_ == 6; + } + /** + * + * + *
+     * Optional. Configures how data is supposed to be extracted from a BigQuery
+     * source to be loaded onto the FeatureOnlineStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.FeatureView.BigQuerySource big_query_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bigQuerySource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource getBigQuerySource() { + if (bigQuerySourceBuilder_ == null) { + if (sourceCase_ == 6) { + return (com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource) source_; + } + return com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource.getDefaultInstance(); + } else { + if (sourceCase_ == 6) { + return bigQuerySourceBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource.getDefaultInstance(); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00000080; - if (other.hasSyncConfig()) { - mergeSyncConfig(other.getSyncConfig()); + } + /** + * + * + *
+     * Optional. Configures how data is supposed to be extracted from a BigQuery
+     * source to be loaded onto the FeatureOnlineStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.FeatureView.BigQuerySource big_query_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBigQuerySource( + com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource value) { + if (bigQuerySourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + bigQuerySourceBuilder_.setMessage(value); } - if (other.hasIndexConfig()) { - mergeIndexConfig(other.getIndexConfig()); + sourceCase_ = 6; + return this; + } + /** + * + * + *
+     * Optional. Configures how data is supposed to be extracted from a BigQuery
+     * source to be loaded onto the FeatureOnlineStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.FeatureView.BigQuerySource big_query_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBigQuerySource( + com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource.Builder builderForValue) { + if (bigQuerySourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + bigQuerySourceBuilder_.setMessage(builderForValue.build()); } - if (other.getSatisfiesPzs() != false) { - setSatisfiesPzs(other.getSatisfiesPzs()); + sourceCase_ = 6; + return this; + } + /** + * + * + *
+     * Optional. Configures how data is supposed to be extracted from a BigQuery
+     * source to be loaded onto the FeatureOnlineStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.FeatureView.BigQuerySource big_query_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeBigQuerySource( + com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource value) { + if (bigQuerySourceBuilder_ == null) { + if (sourceCase_ == 6 + && source_ + != com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource.getDefaultInstance()) { + source_ = + com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource.newBuilder( + (com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 6) { + bigQuerySourceBuilder_.mergeFrom(value); + } else { + bigQuerySourceBuilder_.setMessage(value); + } } - if (other.getSatisfiesPzi() != false) { - setSatisfiesPzi(other.getSatisfiesPzi()); + sourceCase_ = 6; + return this; + } + /** + * + * + *
+     * Optional. Configures how data is supposed to be extracted from a BigQuery
+     * source to be loaded onto the FeatureOnlineStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.FeatureView.BigQuerySource big_query_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearBigQuerySource() { + if (bigQuerySourceBuilder_ == null) { + if (sourceCase_ == 6) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 6) { + sourceCase_ = 0; + source_ = null; + } + bigQuerySourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Configures how data is supposed to be extracted from a BigQuery
+     * source to be loaded onto the FeatureOnlineStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.FeatureView.BigQuerySource big_query_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource.Builder + getBigQuerySourceBuilder() { + return getBigQuerySourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Configures how data is supposed to be extracted from a BigQuery
+     * source to be loaded onto the FeatureOnlineStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.FeatureView.BigQuerySource big_query_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.FeatureView.BigQuerySourceOrBuilder + getBigQuerySourceOrBuilder() { + if ((sourceCase_ == 6) && (bigQuerySourceBuilder_ != null)) { + return bigQuerySourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 6) { + return (com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource) source_; + } + return com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource.getDefaultInstance(); } - switch (other.getSourceCase()) { - case BIG_QUERY_SOURCE: - { - mergeBigQuerySource(other.getBigQuerySource()); - break; - } - case FEATURE_REGISTRY_SOURCE: - { - mergeFeatureRegistrySource(other.getFeatureRegistrySource()); - break; - } - case VERTEX_RAG_SOURCE: - { - mergeVertexRagSource(other.getVertexRagSource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + } + /** + * + * + *
+     * Optional. Configures how data is supposed to be extracted from a BigQuery
+     * source to be loaded onto the FeatureOnlineStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.FeatureView.BigQuerySource big_query_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource, + com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource.Builder, + com.google.cloud.aiplatform.v1.FeatureView.BigQuerySourceOrBuilder> + getBigQuerySourceFieldBuilder() { + if (bigQuerySourceBuilder_ == null) { + if (!(sourceCase_ == 6)) { + source_ = com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource.getDefaultInstance(); + } + bigQuerySourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource, + com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource.Builder, + com.google.cloud.aiplatform.v1.FeatureView.BigQuerySourceOrBuilder>( + (com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource) source_, + getParentForChildren(), + isClean()); + source_ = null; } - this.mergeUnknownFields(other.getUnknownFields()); + sourceCase_ = 6; onChanged(); - return this; + return bigQuerySourceBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource, + com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.Builder, + com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySourceOrBuilder> + featureRegistrySourceBuilder_; + /** + * + * + *
+     * Optional. Configures the features from a Feature Registry source that
+     * need to be loaded onto the FeatureOnlineStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource feature_registry_source = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the featureRegistrySource field is set. + */ @java.lang.Override - public final boolean isInitialized() { - return true; + public boolean hasFeatureRegistrySource() { + return sourceCase_ == 9; } - + /** + * + * + *
+     * Optional. Configures the features from a Feature Registry source that
+     * need to be loaded onto the FeatureOnlineStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource feature_registry_source = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The featureRegistrySource. + */ @java.lang.Override - public 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 com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource + getFeatureRegistrySource() { + if (featureRegistrySourceBuilder_ == null) { + if (sourceCase_ == 9) { + return (com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource) source_; + } + return com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource + .getDefaultInstance(); + } else { + if (sourceCase_ == 9) { + return featureRegistrySourceBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource + .getDefaultInstance(); } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 10 - case 18: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 18 - case 26: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 26 - case 34: - { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 34 - case 42: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000080; - break; - } // case 42 - case 50: - { - input.readMessage(getBigQuerySourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 6; - break; - } // case 50 - case 58: - { - input.readMessage(getSyncConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 58 - case 74: - { - input.readMessage( - getFeatureRegistrySourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 9; - break; - } // case 74 - case 122: - { - input.readMessage(getIndexConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 122 - case 146: - { - input.readMessage(getVertexRagSourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 18; - break; - } // case 146 - case 152: - { - satisfiesPzs_ = input.readBool(); - bitField0_ |= 0x00000400; - break; - } // case 152 - case 160: - { - satisfiesPzi_ = input.readBool(); - bitField0_ |= 0x00000800; - break; - } // case 160 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { + } + /** + * + * + *
+     * Optional. Configures the features from a Feature Registry source that
+     * need to be loaded onto the FeatureOnlineStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource feature_registry_source = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFeatureRegistrySource( + com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource value) { + if (featureRegistrySourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + featureRegistrySourceBuilder_.setMessage(value); + } + sourceCase_ = 9; + return this; + } + /** + * + * + *
+     * Optional. Configures the features from a Feature Registry source that
+     * need to be loaded onto the FeatureOnlineStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource feature_registry_source = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFeatureRegistrySource( + com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.Builder builderForValue) { + if (featureRegistrySourceBuilder_ == null) { + source_ = builderForValue.build(); onChanged(); - } // finally + } else { + featureRegistrySourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 9; return this; } - - private int sourceCase_ = 0; - private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + /** + * + * + *
+     * Optional. Configures the features from a Feature Registry source that
+     * need to be loaded onto the FeatureOnlineStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource feature_registry_source = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeFeatureRegistrySource( + com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource value) { + if (featureRegistrySourceBuilder_ == null) { + if (sourceCase_ == 9 + && source_ + != com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource + .getDefaultInstance()) { + source_ = + com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.newBuilder( + (com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 9) { + featureRegistrySourceBuilder_.mergeFrom(value); + } else { + featureRegistrySourceBuilder_.setMessage(value); + } + } + sourceCase_ = 9; + return this; } - - public Builder clearSource() { - sourceCase_ = 0; - source_ = null; - onChanged(); + /** + * + * + *
+     * Optional. Configures the features from a Feature Registry source that
+     * need to be loaded onto the FeatureOnlineStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource feature_registry_source = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFeatureRegistrySource() { + if (featureRegistrySourceBuilder_ == null) { + if (sourceCase_ == 9) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 9) { + sourceCase_ = 0; + source_ = null; + } + featureRegistrySourceBuilder_.clear(); + } return this; } - - private int bitField0_; + /** + * + * + *
+     * Optional. Configures the features from a Feature Registry source that
+     * need to be loaded onto the FeatureOnlineStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource feature_registry_source = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.Builder + getFeatureRegistrySourceBuilder() { + return getFeatureRegistrySourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Configures the features from a Feature Registry source that
+     * need to be loaded onto the FeatureOnlineStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource feature_registry_source = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySourceOrBuilder + getFeatureRegistrySourceOrBuilder() { + if ((sourceCase_ == 9) && (featureRegistrySourceBuilder_ != null)) { + return featureRegistrySourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 9) { + return (com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource) source_; + } + return com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Configures the features from a Feature Registry source that
+     * need to be loaded onto the FeatureOnlineStore.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource feature_registry_source = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource, + com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.Builder, + com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySourceOrBuilder> + getFeatureRegistrySourceFieldBuilder() { + if (featureRegistrySourceBuilder_ == null) { + if (!(sourceCase_ == 9)) { + source_ = + com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.getDefaultInstance(); + } + featureRegistrySourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource, + com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.Builder, + com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySourceOrBuilder>( + (com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 9; + onChanged(); + return featureRegistrySourceBuilder_; + } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource, - com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource.Builder, - com.google.cloud.aiplatform.v1.FeatureView.BigQuerySourceOrBuilder> - bigQuerySourceBuilder_; + com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource, + com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource.Builder, + com.google.cloud.aiplatform.v1.FeatureView.VertexRagSourceOrBuilder> + vertexRagSourceBuilder_; /** * * *
-     * Optional. Configures how data is supposed to be extracted from a BigQuery
-     * source to be loaded onto the FeatureOnlineStore.
+     * Optional. The Vertex RAG Source that the FeatureView is linked to.
      * 
* * - * .google.cloud.aiplatform.v1.FeatureView.BigQuerySource big_query_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1.FeatureView.VertexRagSource vertex_rag_source = 18 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the bigQuerySource field is set. + * @return Whether the vertexRagSource field is set. */ @java.lang.Override - public boolean hasBigQuerySource() { - return sourceCase_ == 6; + public boolean hasVertexRagSource() { + return sourceCase_ == 18; } /** * * *
-     * Optional. Configures how data is supposed to be extracted from a BigQuery
-     * source to be loaded onto the FeatureOnlineStore.
+     * Optional. The Vertex RAG Source that the FeatureView is linked to.
      * 
* * - * .google.cloud.aiplatform.v1.FeatureView.BigQuerySource big_query_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1.FeatureView.VertexRagSource vertex_rag_source = 18 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The bigQuerySource. + * @return The vertexRagSource. */ @java.lang.Override - public com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource getBigQuerySource() { - if (bigQuerySourceBuilder_ == null) { - if (sourceCase_ == 6) { - return (com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource) source_; + public com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource getVertexRagSource() { + if (vertexRagSourceBuilder_ == null) { + if (sourceCase_ == 18) { + return (com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource) source_; } - return com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource.getDefaultInstance(); + return com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource.getDefaultInstance(); } else { - if (sourceCase_ == 6) { - return bigQuerySourceBuilder_.getMessage(); + if (sourceCase_ == 18) { + return vertexRagSourceBuilder_.getMessage(); } - return com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource.getDefaultInstance(); + return com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource.getDefaultInstance(); } } /** * * *
-     * Optional. Configures how data is supposed to be extracted from a BigQuery
-     * source to be loaded onto the FeatureOnlineStore.
+     * Optional. The Vertex RAG Source that the FeatureView is linked to.
      * 
* * - * .google.cloud.aiplatform.v1.FeatureView.BigQuerySource big_query_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1.FeatureView.VertexRagSource vertex_rag_source = 18 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setBigQuerySource( - com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource value) { - if (bigQuerySourceBuilder_ == null) { + public Builder setVertexRagSource( + com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource value) { + if (vertexRagSourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } source_ = value; onChanged(); } else { - bigQuerySourceBuilder_.setMessage(value); + vertexRagSourceBuilder_.setMessage(value); } - sourceCase_ = 6; + sourceCase_ = 18; return this; } /** * * *
-     * Optional. Configures how data is supposed to be extracted from a BigQuery
-     * source to be loaded onto the FeatureOnlineStore.
+     * Optional. The Vertex RAG Source that the FeatureView is linked to.
      * 
* * - * .google.cloud.aiplatform.v1.FeatureView.BigQuerySource big_query_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1.FeatureView.VertexRagSource vertex_rag_source = 18 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setBigQuerySource( - com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource.Builder builderForValue) { - if (bigQuerySourceBuilder_ == null) { + public Builder setVertexRagSource( + com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource.Builder builderForValue) { + if (vertexRagSourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); } else { - bigQuerySourceBuilder_.setMessage(builderForValue.build()); + vertexRagSourceBuilder_.setMessage(builderForValue.build()); } - sourceCase_ = 6; + sourceCase_ = 18; return this; } /** * * *
-     * Optional. Configures how data is supposed to be extracted from a BigQuery
-     * source to be loaded onto the FeatureOnlineStore.
+     * Optional. The Vertex RAG Source that the FeatureView is linked to.
      * 
* * - * .google.cloud.aiplatform.v1.FeatureView.BigQuerySource big_query_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1.FeatureView.VertexRagSource vertex_rag_source = 18 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeBigQuerySource( - com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource value) { - if (bigQuerySourceBuilder_ == null) { - if (sourceCase_ == 6 + public Builder mergeVertexRagSource( + com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource value) { + if (vertexRagSourceBuilder_ == null) { + if (sourceCase_ == 18 && source_ - != com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource.getDefaultInstance()) { + != com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource + .getDefaultInstance()) { source_ = - com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource.newBuilder( - (com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource) source_) + com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource.newBuilder( + (com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource) source_) .mergeFrom(value) .buildPartial(); } else { @@ -10430,40 +12189,39 @@ public Builder mergeBigQuerySource( } onChanged(); } else { - if (sourceCase_ == 6) { - bigQuerySourceBuilder_.mergeFrom(value); + if (sourceCase_ == 18) { + vertexRagSourceBuilder_.mergeFrom(value); } else { - bigQuerySourceBuilder_.setMessage(value); + vertexRagSourceBuilder_.setMessage(value); } } - sourceCase_ = 6; + sourceCase_ = 18; return this; } /** * * *
-     * Optional. Configures how data is supposed to be extracted from a BigQuery
-     * source to be loaded onto the FeatureOnlineStore.
+     * Optional. The Vertex RAG Source that the FeatureView is linked to.
      * 
* * - * .google.cloud.aiplatform.v1.FeatureView.BigQuerySource big_query_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1.FeatureView.VertexRagSource vertex_rag_source = 18 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearBigQuerySource() { - if (bigQuerySourceBuilder_ == null) { - if (sourceCase_ == 6) { + public Builder clearVertexRagSource() { + if (vertexRagSourceBuilder_ == null) { + if (sourceCase_ == 18) { sourceCase_ = 0; source_ = null; onChanged(); } } else { - if (sourceCase_ == 6) { + if (sourceCase_ == 18) { sourceCase_ = 0; source_ = null; } - bigQuerySourceBuilder_.clear(); + vertexRagSourceBuilder_.clear(); } return this; } @@ -10471,642 +12229,525 @@ public Builder clearBigQuerySource() { * * *
-     * Optional. Configures how data is supposed to be extracted from a BigQuery
-     * source to be loaded onto the FeatureOnlineStore.
+     * Optional. The Vertex RAG Source that the FeatureView is linked to.
      * 
* * - * .google.cloud.aiplatform.v1.FeatureView.BigQuerySource big_query_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1.FeatureView.VertexRagSource vertex_rag_source = 18 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource.Builder - getBigQuerySourceBuilder() { - return getBigQuerySourceFieldBuilder().getBuilder(); + public com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource.Builder + getVertexRagSourceBuilder() { + return getVertexRagSourceFieldBuilder().getBuilder(); } /** * * *
-     * Optional. Configures how data is supposed to be extracted from a BigQuery
-     * source to be loaded onto the FeatureOnlineStore.
+     * Optional. The Vertex RAG Source that the FeatureView is linked to.
      * 
* * - * .google.cloud.aiplatform.v1.FeatureView.BigQuerySource big_query_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1.FeatureView.VertexRagSource vertex_rag_source = 18 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.cloud.aiplatform.v1.FeatureView.BigQuerySourceOrBuilder - getBigQuerySourceOrBuilder() { - if ((sourceCase_ == 6) && (bigQuerySourceBuilder_ != null)) { - return bigQuerySourceBuilder_.getMessageOrBuilder(); + public com.google.cloud.aiplatform.v1.FeatureView.VertexRagSourceOrBuilder + getVertexRagSourceOrBuilder() { + if ((sourceCase_ == 18) && (vertexRagSourceBuilder_ != null)) { + return vertexRagSourceBuilder_.getMessageOrBuilder(); } else { - if (sourceCase_ == 6) { - return (com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource) source_; + if (sourceCase_ == 18) { + return (com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource) source_; } - return com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource.getDefaultInstance(); + return com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource.getDefaultInstance(); } } /** * * *
-     * Optional. Configures how data is supposed to be extracted from a BigQuery
-     * source to be loaded onto the FeatureOnlineStore.
+     * Optional. The Vertex RAG Source that the FeatureView is linked to.
      * 
* * - * .google.cloud.aiplatform.v1.FeatureView.BigQuerySource big_query_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1.FeatureView.VertexRagSource vertex_rag_source = 18 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource, - com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource.Builder, - com.google.cloud.aiplatform.v1.FeatureView.BigQuerySourceOrBuilder> - getBigQuerySourceFieldBuilder() { - if (bigQuerySourceBuilder_ == null) { - if (!(sourceCase_ == 6)) { - source_ = com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource.getDefaultInstance(); + com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource, + com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource.Builder, + com.google.cloud.aiplatform.v1.FeatureView.VertexRagSourceOrBuilder> + getVertexRagSourceFieldBuilder() { + if (vertexRagSourceBuilder_ == null) { + if (!(sourceCase_ == 18)) { + source_ = com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource.getDefaultInstance(); } - bigQuerySourceBuilder_ = + vertexRagSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource, - com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource.Builder, - com.google.cloud.aiplatform.v1.FeatureView.BigQuerySourceOrBuilder>( - (com.google.cloud.aiplatform.v1.FeatureView.BigQuerySource) source_, + com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource, + com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource.Builder, + com.google.cloud.aiplatform.v1.FeatureView.VertexRagSourceOrBuilder>( + (com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource) source_, getParentForChildren(), isClean()); source_ = null; } - sourceCase_ = 6; + sourceCase_ = 18; onChanged(); - return bigQuerySourceBuilder_; + return vertexRagSourceBuilder_; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource, - com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.Builder, - com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySourceOrBuilder> - featureRegistrySourceBuilder_; - /** - * - * - *
-     * Optional. Configures the features from a Feature Registry source that
-     * need to be loaded onto the FeatureOnlineStore.
-     * 
- * - * - * .google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource feature_registry_source = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the featureRegistrySource field is set. - */ - @java.lang.Override - public boolean hasFeatureRegistrySource() { - return sourceCase_ == 9; - } + private java.lang.Object name_ = ""; /** * * *
-     * Optional. Configures the features from a Feature Registry source that
-     * need to be loaded onto the FeatureOnlineStore.
+     * Identifier. Name of the FeatureView. Format:
+     * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`
      * 
* - * - * .google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource feature_registry_source = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * - * @return The featureRegistrySource. + * @return The name. */ - @java.lang.Override - public com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource - getFeatureRegistrySource() { - if (featureRegistrySourceBuilder_ == null) { - if (sourceCase_ == 9) { - return (com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource) source_; - } - return com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource - .getDefaultInstance(); + 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 { - if (sourceCase_ == 9) { - return featureRegistrySourceBuilder_.getMessage(); - } - return com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource - .getDefaultInstance(); + return (java.lang.String) ref; } } /** * * *
-     * Optional. Configures the features from a Feature Registry source that
-     * need to be loaded onto the FeatureOnlineStore.
+     * Identifier. Name of the FeatureView. Format:
+     * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`
      * 
* - * - * .google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource feature_registry_source = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. */ - public Builder setFeatureRegistrySource( - com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource value) { - if (featureRegistrySourceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - source_ = value; - onChanged(); + 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 { - featureRegistrySourceBuilder_.setMessage(value); + return (com.google.protobuf.ByteString) ref; } - sourceCase_ = 9; - return this; } /** * * *
-     * Optional. Configures the features from a Feature Registry source that
-     * need to be loaded onto the FeatureOnlineStore.
+     * Identifier. Name of the FeatureView. Format:
+     * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`
      * 
* - * - * .google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource feature_registry_source = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. */ - public Builder setFeatureRegistrySource( - com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.Builder builderForValue) { - if (featureRegistrySourceBuilder_ == null) { - source_ = builderForValue.build(); - onChanged(); - } else { - featureRegistrySourceBuilder_.setMessage(builderForValue.build()); + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - sourceCase_ = 9; + name_ = value; + bitField0_ |= 0x00000008; + onChanged(); return this; } /** * * *
-     * Optional. Configures the features from a Feature Registry source that
-     * need to be loaded onto the FeatureOnlineStore.
+     * Identifier. Name of the FeatureView. Format:
+     * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`
      * 
* - * - * .google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource feature_registry_source = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. */ - public Builder mergeFeatureRegistrySource( - com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource value) { - if (featureRegistrySourceBuilder_ == null) { - if (sourceCase_ == 9 - && source_ - != com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource - .getDefaultInstance()) { - source_ = - com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.newBuilder( - (com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource) source_) - .mergeFrom(value) - .buildPartial(); - } else { - source_ = value; - } - onChanged(); - } else { - if (sourceCase_ == 9) { - featureRegistrySourceBuilder_.mergeFrom(value); - } else { - featureRegistrySourceBuilder_.setMessage(value); - } - } - sourceCase_ = 9; + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); return this; } /** * * *
-     * Optional. Configures the features from a Feature Registry source that
-     * need to be loaded onto the FeatureOnlineStore.
+     * Identifier. Name of the FeatureView. Format:
+     * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`
      * 
* - * - * .google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource feature_registry_source = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ - public Builder clearFeatureRegistrySource() { - if (featureRegistrySourceBuilder_ == null) { - if (sourceCase_ == 9) { - sourceCase_ = 0; - source_ = null; - onChanged(); - } - } else { - if (sourceCase_ == 9) { - sourceCase_ = 0; - source_ = null; - } - featureRegistrySourceBuilder_.clear(); + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000008; + 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_; /** * * *
-     * Optional. Configures the features from a Feature Registry source that
-     * need to be loaded onto the FeatureOnlineStore.
+     * Output only. Timestamp when this FeatureView was created.
      * 
* * - * .google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource feature_registry_source = 9 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return Whether the createTime field is set. */ - public com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.Builder - getFeatureRegistrySourceBuilder() { - return getFeatureRegistrySourceFieldBuilder().getBuilder(); + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000010) != 0); } /** * * *
-     * Optional. Configures the features from a Feature Registry source that
-     * need to be loaded onto the FeatureOnlineStore.
+     * Output only. Timestamp when this FeatureView was created.
      * 
* * - * .google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource feature_registry_source = 9 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The createTime. */ - @java.lang.Override - public com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySourceOrBuilder - getFeatureRegistrySourceOrBuilder() { - if ((sourceCase_ == 9) && (featureRegistrySourceBuilder_ != null)) { - return featureRegistrySourceBuilder_.getMessageOrBuilder(); + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { - if (sourceCase_ == 9) { - return (com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource) source_; - } - return com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource - .getDefaultInstance(); + return createTimeBuilder_.getMessage(); } } /** * * *
-     * Optional. Configures the features from a Feature Registry source that
-     * need to be loaded onto the FeatureOnlineStore.
+     * Output only. Timestamp when this FeatureView was created.
      * 
* * - * .google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource feature_registry_source = 9 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource, - com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.Builder, - com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySourceOrBuilder> - getFeatureRegistrySourceFieldBuilder() { - if (featureRegistrySourceBuilder_ == null) { - if (!(sourceCase_ == 9)) { - source_ = - com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.getDefaultInstance(); + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } - featureRegistrySourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource, - com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.Builder, - com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySourceOrBuilder>( - (com.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource) source_, - getParentForChildren(), - isClean()); - source_ = null; + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); } - sourceCase_ = 9; + bitField0_ |= 0x00000010; onChanged(); - return featureRegistrySourceBuilder_; + return this; } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource, - com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource.Builder, - com.google.cloud.aiplatform.v1.FeatureView.VertexRagSourceOrBuilder> - vertexRagSourceBuilder_; /** * * *
-     * Optional. The Vertex RAG Source that the FeatureView is linked to.
+     * Output only. Timestamp when this FeatureView was created.
      * 
* * - * .google.cloud.aiplatform.v1.FeatureView.VertexRagSource vertex_rag_source = 18 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return Whether the vertexRagSource field is set. */ - @java.lang.Override - public boolean hasVertexRagSource() { - return sourceCase_ == 18; + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; } /** * * *
-     * Optional. The Vertex RAG Source that the FeatureView is linked to.
+     * Output only. Timestamp when this FeatureView was created.
      * 
* * - * .google.cloud.aiplatform.v1.FeatureView.VertexRagSource vertex_rag_source = 18 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The vertexRagSource. */ - @java.lang.Override - public com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource getVertexRagSource() { - if (vertexRagSourceBuilder_ == null) { - if (sourceCase_ == 18) { - return (com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource) source_; + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; } - return com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource.getDefaultInstance(); } else { - if (sourceCase_ == 18) { - return vertexRagSourceBuilder_.getMessage(); - } - return com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource.getDefaultInstance(); + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); } + return this; } /** * * *
-     * Optional. The Vertex RAG Source that the FeatureView is linked to.
+     * Output only. Timestamp when this FeatureView was created.
      * 
* * - * .google.cloud.aiplatform.v1.FeatureView.VertexRagSource vertex_rag_source = 18 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setVertexRagSource( - com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource value) { - if (vertexRagSourceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - source_ = value; - onChanged(); - } else { - vertexRagSourceBuilder_.setMessage(value); + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; } - sourceCase_ = 18; + onChanged(); return this; } /** * * *
-     * Optional. The Vertex RAG Source that the FeatureView is linked to.
+     * Output only. Timestamp when this FeatureView was created.
      * 
* * - * .google.cloud.aiplatform.v1.FeatureView.VertexRagSource vertex_rag_source = 18 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setVertexRagSource( - com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource.Builder builderForValue) { - if (vertexRagSourceBuilder_ == null) { - source_ = builderForValue.build(); - onChanged(); - } else { - vertexRagSourceBuilder_.setMessage(builderForValue.build()); - } - sourceCase_ = 18; - return this; + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); } /** * * *
-     * Optional. The Vertex RAG Source that the FeatureView is linked to.
+     * Output only. Timestamp when this FeatureView was created.
      * 
* * - * .google.cloud.aiplatform.v1.FeatureView.VertexRagSource vertex_rag_source = 18 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeVertexRagSource( - com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource value) { - if (vertexRagSourceBuilder_ == null) { - if (sourceCase_ == 18 - && source_ - != com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource - .getDefaultInstance()) { - source_ = - com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource.newBuilder( - (com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource) source_) - .mergeFrom(value) - .buildPartial(); - } else { - source_ = value; - } - onChanged(); + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); } else { - if (sourceCase_ == 18) { - vertexRagSourceBuilder_.mergeFrom(value); - } else { - vertexRagSourceBuilder_.setMessage(value); - } + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } - sourceCase_ = 18; - return this; } /** * * *
-     * Optional. The Vertex RAG Source that the FeatureView is linked to.
+     * Output only. Timestamp when this FeatureView was created.
      * 
* * - * .google.cloud.aiplatform.v1.FeatureView.VertexRagSource vertex_rag_source = 18 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearVertexRagSource() { - if (vertexRagSourceBuilder_ == null) { - if (sourceCase_ == 18) { - sourceCase_ = 0; - source_ = null; - onChanged(); - } - } else { - if (sourceCase_ == 18) { - sourceCase_ = 0; - source_ = null; - } - vertexRagSourceBuilder_.clear(); + 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 this; + 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_; /** * * *
-     * Optional. The Vertex RAG Source that the FeatureView is linked to.
+     * Output only. Timestamp when this FeatureView was last updated.
      * 
* * - * .google.cloud.aiplatform.v1.FeatureView.VertexRagSource vertex_rag_source = 18 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return Whether the updateTime field is set. */ - public com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource.Builder - getVertexRagSourceBuilder() { - return getVertexRagSourceFieldBuilder().getBuilder(); + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000020) != 0); } /** * * *
-     * Optional. The Vertex RAG Source that the FeatureView is linked to.
+     * Output only. Timestamp when this FeatureView was last updated.
      * 
* * - * .google.cloud.aiplatform.v1.FeatureView.VertexRagSource vertex_rag_source = 18 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The updateTime. */ - @java.lang.Override - public com.google.cloud.aiplatform.v1.FeatureView.VertexRagSourceOrBuilder - getVertexRagSourceOrBuilder() { - if ((sourceCase_ == 18) && (vertexRagSourceBuilder_ != null)) { - return vertexRagSourceBuilder_.getMessageOrBuilder(); + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { - if (sourceCase_ == 18) { - return (com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource) source_; - } - return com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource.getDefaultInstance(); + return updateTimeBuilder_.getMessage(); } } /** * * *
-     * Optional. The Vertex RAG Source that the FeatureView is linked to.
+     * Output only. Timestamp when this FeatureView was last updated.
      * 
* * - * .google.cloud.aiplatform.v1.FeatureView.VertexRagSource vertex_rag_source = 18 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource, - com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource.Builder, - com.google.cloud.aiplatform.v1.FeatureView.VertexRagSourceOrBuilder> - getVertexRagSourceFieldBuilder() { - if (vertexRagSourceBuilder_ == null) { - if (!(sourceCase_ == 18)) { - source_ = com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource.getDefaultInstance(); + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } - vertexRagSourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource, - com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource.Builder, - com.google.cloud.aiplatform.v1.FeatureView.VertexRagSourceOrBuilder>( - (com.google.cloud.aiplatform.v1.FeatureView.VertexRagSource) source_, - getParentForChildren(), - isClean()); - source_ = null; + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); } - sourceCase_ = 18; + bitField0_ |= 0x00000020; onChanged(); - return vertexRagSourceBuilder_; + return this; } - - private java.lang.Object name_ = ""; /** * * *
-     * Identifier. Name of the FeatureView. Format:
-     * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`
+     * Output only. Timestamp when this FeatureView was last updated.
      * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * - * @return The name. + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - 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; + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); } else { - return (java.lang.String) ref; + updateTimeBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000020; + onChanged(); + return this; } /** * * *
-     * Identifier. Name of the FeatureView. Format:
-     * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`
+     * Output only. Timestamp when this FeatureView was last updated.
      * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * - * @return The bytes for name. + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - 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; + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } } else { - return (com.google.protobuf.ByteString) ref; + updateTimeBuilder_.mergeFrom(value); } - } - /** - * - * - *
-     * Identifier. Name of the FeatureView. Format:
-     * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + if (updateTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); } - name_ = value; - bitField0_ |= 0x00000008; - onChanged(); return this; } /** * * *
-     * Identifier. Name of the FeatureView. Format:
-     * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`
+     * Output only. Timestamp when this FeatureView was last updated.
      * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * - * @return This builder for chaining. + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000008); + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } onChanged(); return this; } @@ -11114,162 +12755,150 @@ public Builder clearName() { * * *
-     * Identifier. Name of the FeatureView. Format:
-     * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`
+     * Output only. Timestamp when this FeatureView was last updated.
      * 
* - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * - * @param value The bytes for name to set. - * @return This builder for chaining. + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000008; + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000020; onChanged(); - return this; + return getUpdateTimeFieldBuilder().getBuilder(); } - - 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 FeatureView was created.
+     * Output only. Timestamp when this FeatureView was last updated.
      * 
* * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return Whether the createTime field is set. */ - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000010) != 0); + 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 FeatureView was created.
+     * Output only. Timestamp when this FeatureView was last updated.
      * 
* * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.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(); + 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 java.lang.Object etag_ = ""; /** * * *
-     * Output only. Timestamp when this FeatureView was created.
+     * Optional. Used to perform consistent read-modify-write updates. If not set,
+     * a blind "overwrite" update happens.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.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; + * string etag = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 { - createTimeBuilder_.setMessage(value); + return (java.lang.String) ref; } - bitField0_ |= 0x00000010; - onChanged(); - return this; } /** * * *
-     * Output only. Timestamp when this FeatureView was created.
+     * Optional. Used to perform consistent read-modify-write updates. If not set,
+     * a blind "overwrite" update happens.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string etag = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); + 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 { - createTimeBuilder_.setMessage(builderForValue.build()); + return (com.google.protobuf.ByteString) ref; } - bitField0_ |= 0x00000010; - onChanged(); - return this; } /** * * *
-     * Output only. Timestamp when this FeatureView was created.
+     * Optional. Used to perform consistent read-modify-write updates. If not set,
+     * a blind "overwrite" update happens.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string etag = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The etag to set. + * @return This builder for chaining. */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getCreateTimeBuilder().mergeFrom(value); - } else { - createTime_ = value; - } - } else { - createTimeBuilder_.mergeFrom(value); - } - if (createTime_ != null) { - bitField0_ |= 0x00000010; - onChanged(); + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + etag_ = value; + bitField0_ |= 0x00000040; + onChanged(); return this; } /** * * *
-     * Output only. Timestamp when this FeatureView was created.
+     * Optional. Used to perform consistent read-modify-write updates. If not set,
+     * a blind "overwrite" update happens.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string etag = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000010); - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -11277,678 +12906,766 @@ public Builder clearCreateTime() { * * *
-     * Output only. Timestamp when this FeatureView was created.
+     * Optional. Used to perform consistent read-modify-write updates. If not set,
+     * a blind "overwrite" update happens.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string etag = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000010; + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000040; onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); + 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(); } /** * * *
-     * Output only. Timestamp when this FeatureView was created.
+     * Optional. The labels with user-defined metadata to organize your
+     * FeatureViews.
+     *
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     *
+     * See https://goo.gl/xmQnxf for more information on and examples of labels.
+     * No more than 64 user labels can be associated with one
+     * FeatureOnlineStore(System labels are excluded)." System reserved label keys
+     * are prefixed with "aiplatform.googleapis.com/" and are immutable.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + @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(); } /** * * *
-     * Output only. Timestamp when this FeatureView was created.
+     * Optional. The labels with user-defined metadata to organize your
+     * FeatureViews.
+     *
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     *
+     * See https://goo.gl/xmQnxf for more information on and examples of labels.
+     * No more than 64 user labels can be associated with one
+     * FeatureOnlineStore(System labels are excluded)." System reserved label keys
+     * are prefixed with "aiplatform.googleapis.com/" and are immutable.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; - } - return createTimeBuilder_; + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); } - - 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 FeatureView was last updated.
-     * 
+ * Optional. The labels with user-defined metadata to organize your + * FeatureViews. * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. * - * @return Whether the updateTime field is set. + * See https://goo.gl/xmQnxf for more information on and examples of labels. + * No more than 64 user labels can be associated with one + * FeatureOnlineStore(System labels are excluded)." System reserved label keys + * are prefixed with "aiplatform.googleapis.com/" and are immutable. + * + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000020) != 0); + @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; } /** * * *
-     * Output only. Timestamp when this FeatureView was last updated.
-     * 
+ * Optional. The labels with user-defined metadata to organize your + * FeatureViews. * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * Label keys and values can be no longer than 64 characters + * (Unicode codepoints), can only contain lowercase letters, numeric + * characters, underscores and dashes. International characters are allowed. + * + * See https://goo.gl/xmQnxf for more information on and examples of labels. + * No more than 64 user labels can be associated with one + * FeatureOnlineStore(System labels are excluded)." System reserved label keys + * are prefixed with "aiplatform.googleapis.com/" and are immutable. + * * - * @return The updateTime. + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.protobuf.Timestamp getUpdateTime() { - if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; - } else { - return updateTimeBuilder_.getMessage(); + @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; } /** * * *
-     * Output only. Timestamp when this FeatureView was last updated.
+     * Optional. The labels with user-defined metadata to organize your
+     * FeatureViews.
+     *
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     *
+     * See https://goo.gl/xmQnxf for more information on and examples of labels.
+     * No more than 64 user labels can be associated with one
+     * FeatureOnlineStore(System labels are excluded)." System reserved label keys
+     * are prefixed with "aiplatform.googleapis.com/" and are immutable.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateTime_ = value; - } else { - updateTimeBuilder_.setMessage(value); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - bitField0_ |= 0x00000020; - onChanged(); + internalGetMutableLabels().getMutableMap().remove(key); return this; } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000080; + return internalGetMutableLabels().getMutableMap(); + } /** * * *
-     * Output only. Timestamp when this FeatureView was last updated.
+     * Optional. The labels with user-defined metadata to organize your
+     * FeatureViews.
+     *
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     *
+     * See https://goo.gl/xmQnxf for more information on and examples of labels.
+     * No more than 64 user labels can be associated with one
+     * FeatureOnlineStore(System labels are excluded)." System reserved label keys
+     * are prefixed with "aiplatform.googleapis.com/" and are immutable.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); } - bitField0_ |= 0x00000020; - onChanged(); + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000080; return this; } /** * * *
-     * Output only. Timestamp when this FeatureView was last updated.
+     * Optional. The labels with user-defined metadata to organize your
+     * FeatureViews.
+     *
+     * Label keys and values can be no longer than 64 characters
+     * (Unicode codepoints), can only contain lowercase letters, numeric
+     * characters, underscores and dashes. International characters are allowed.
+     *
+     * See https://goo.gl/xmQnxf for more information on and examples of labels.
+     * No more than 64 user labels can be associated with one
+     * FeatureOnlineStore(System labels are excluded)." System reserved label keys
+     * are prefixed with "aiplatform.googleapis.com/" and are immutable.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getUpdateTimeBuilder().mergeFrom(value); - } else { - updateTime_ = value; - } - } else { - updateTimeBuilder_.mergeFrom(value); - } - if (updateTime_ != null) { - bitField0_ |= 0x00000020; - onChanged(); - } + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000080; return this; } + + private com.google.cloud.aiplatform.v1.FeatureView.SyncConfig syncConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.FeatureView.SyncConfig, + com.google.cloud.aiplatform.v1.FeatureView.SyncConfig.Builder, + com.google.cloud.aiplatform.v1.FeatureView.SyncConfigOrBuilder> + syncConfigBuilder_; /** * * *
-     * Output only. Timestamp when this FeatureView was last updated.
+     * Configures when data is to be synced/updated for this FeatureView. At the
+     * end of the sync the latest featureValues for each entityId of this
+     * FeatureView are made ready for online serving.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.aiplatform.v1.FeatureView.SyncConfig sync_config = 7; + * + * @return Whether the syncConfig field is set. */ - public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000020); - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; - } - onChanged(); - return this; + public boolean hasSyncConfig() { + return ((bitField0_ & 0x00000100) != 0); } /** * * *
-     * Output only. Timestamp when this FeatureView was last updated.
+     * Configures when data is to be synced/updated for this FeatureView. At the
+     * end of the sync the latest featureValues for each entityId of this
+     * FeatureView are made ready for online serving.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.aiplatform.v1.FeatureView.SyncConfig sync_config = 7; + * + * @return The syncConfig. */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getUpdateTimeFieldBuilder().getBuilder(); + public com.google.cloud.aiplatform.v1.FeatureView.SyncConfig getSyncConfig() { + if (syncConfigBuilder_ == null) { + return syncConfig_ == null + ? com.google.cloud.aiplatform.v1.FeatureView.SyncConfig.getDefaultInstance() + : syncConfig_; + } else { + return syncConfigBuilder_.getMessage(); + } } /** * * *
-     * Output only. Timestamp when this FeatureView was last updated.
+     * Configures when data is to be synced/updated for this FeatureView. At the
+     * end of the sync the latest featureValues for each entityId of this
+     * FeatureView are made ready for online serving.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.aiplatform.v1.FeatureView.SyncConfig sync_config = 7; */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); + public Builder setSyncConfig(com.google.cloud.aiplatform.v1.FeatureView.SyncConfig value) { + if (syncConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + syncConfig_ = value; } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + syncConfigBuilder_.setMessage(value); } + bitField0_ |= 0x00000100; + onChanged(); + return this; } /** * * *
-     * Output only. Timestamp when this FeatureView was last updated.
+     * Configures when data is to be synced/updated for this FeatureView. At the
+     * end of the sync the latest featureValues for each entityId of this
+     * FeatureView are made ready for online serving.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.aiplatform.v1.FeatureView.SyncConfig sync_config = 7; */ - 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; + public Builder setSyncConfig( + com.google.cloud.aiplatform.v1.FeatureView.SyncConfig.Builder builderForValue) { + if (syncConfigBuilder_ == null) { + syncConfig_ = builderForValue.build(); + } else { + syncConfigBuilder_.setMessage(builderForValue.build()); } - return updateTimeBuilder_; + bitField0_ |= 0x00000100; + onChanged(); + return this; } - - private java.lang.Object etag_ = ""; /** * * *
-     * Optional. Used to perform consistent read-modify-write updates. If not set,
-     * a blind "overwrite" update happens.
+     * Configures when data is to be synced/updated for this FeatureView. At the
+     * end of the sync the latest featureValues for each entityId of this
+     * FeatureView are made ready for online serving.
      * 
* - * string etag = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The etag. + * .google.cloud.aiplatform.v1.FeatureView.SyncConfig sync_config = 7; */ - 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; + public Builder mergeSyncConfig(com.google.cloud.aiplatform.v1.FeatureView.SyncConfig value) { + if (syncConfigBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && syncConfig_ != null + && syncConfig_ + != com.google.cloud.aiplatform.v1.FeatureView.SyncConfig.getDefaultInstance()) { + getSyncConfigBuilder().mergeFrom(value); + } else { + syncConfig_ = value; + } } else { - return (java.lang.String) ref; + syncConfigBuilder_.mergeFrom(value); + } + if (syncConfig_ != null) { + bitField0_ |= 0x00000100; + onChanged(); } + return this; } /** * * *
-     * Optional. Used to perform consistent read-modify-write updates. If not set,
-     * a blind "overwrite" update happens.
+     * Configures when data is to be synced/updated for this FeatureView. At the
+     * end of the sync the latest featureValues for each entityId of this
+     * FeatureView are made ready for online serving.
      * 
* - * string etag = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for etag. + * .google.cloud.aiplatform.v1.FeatureView.SyncConfig sync_config = 7; */ - 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; + public Builder clearSyncConfig() { + bitField0_ = (bitField0_ & ~0x00000100); + syncConfig_ = null; + if (syncConfigBuilder_ != null) { + syncConfigBuilder_.dispose(); + syncConfigBuilder_ = null; } + onChanged(); + return this; } /** * * *
-     * Optional. Used to perform consistent read-modify-write updates. If not set,
-     * a blind "overwrite" update happens.
+     * Configures when data is to be synced/updated for this FeatureView. At the
+     * end of the sync the latest featureValues for each entityId of this
+     * FeatureView are made ready for online serving.
      * 
* - * string etag = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The etag to set. - * @return This builder for chaining. + * .google.cloud.aiplatform.v1.FeatureView.SyncConfig sync_config = 7; */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - etag_ = value; - bitField0_ |= 0x00000040; + public com.google.cloud.aiplatform.v1.FeatureView.SyncConfig.Builder getSyncConfigBuilder() { + bitField0_ |= 0x00000100; onChanged(); - return this; + return getSyncConfigFieldBuilder().getBuilder(); } /** * * *
-     * Optional. Used to perform consistent read-modify-write updates. If not set,
-     * a blind "overwrite" update happens.
+     * Configures when data is to be synced/updated for this FeatureView. At the
+     * end of the sync the latest featureValues for each entityId of this
+     * FeatureView are made ready for online serving.
      * 
* - * string etag = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. + * .google.cloud.aiplatform.v1.FeatureView.SyncConfig sync_config = 7; */ - public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; + public com.google.cloud.aiplatform.v1.FeatureView.SyncConfigOrBuilder getSyncConfigOrBuilder() { + if (syncConfigBuilder_ != null) { + return syncConfigBuilder_.getMessageOrBuilder(); + } else { + return syncConfig_ == null + ? com.google.cloud.aiplatform.v1.FeatureView.SyncConfig.getDefaultInstance() + : syncConfig_; + } } /** * * *
-     * Optional. Used to perform consistent read-modify-write updates. If not set,
-     * a blind "overwrite" update happens.
+     * Configures when data is to be synced/updated for this FeatureView. At the
+     * end of the sync the latest featureValues for each entityId of this
+     * FeatureView are made ready for online serving.
      * 
* - * string etag = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for etag to set. - * @return This builder for chaining. + * .google.cloud.aiplatform.v1.FeatureView.SyncConfig sync_config = 7; */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - etag_ = 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(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.FeatureView.SyncConfig, + com.google.cloud.aiplatform.v1.FeatureView.SyncConfig.Builder, + com.google.cloud.aiplatform.v1.FeatureView.SyncConfigOrBuilder> + getSyncConfigFieldBuilder() { + if (syncConfigBuilder_ == null) { + syncConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.FeatureView.SyncConfig, + com.google.cloud.aiplatform.v1.FeatureView.SyncConfig.Builder, + com.google.cloud.aiplatform.v1.FeatureView.SyncConfigOrBuilder>( + getSyncConfig(), getParentForChildren(), isClean()); + syncConfig_ = null; } - bitField0_ |= 0x00000080; - onChanged(); - return labels_; + return syncConfigBuilder_; } - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } + private com.google.cloud.aiplatform.v1.FeatureView.IndexConfig indexConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.FeatureView.IndexConfig, + com.google.cloud.aiplatform.v1.FeatureView.IndexConfig.Builder, + com.google.cloud.aiplatform.v1.FeatureView.IndexConfigOrBuilder> + indexConfigBuilder_; /** * * *
-     * Optional. The labels with user-defined metadata to organize your
-     * FeatureViews.
+     * Optional. Configuration for index preparation for vector search. It
+     * contains the required configurations to create an index from source data,
+     * so that approximate nearest neighbor (a.k.a ANN) algorithms search can be
+     * performed during online serving.
+     * 
* - * Label keys and values can be no longer than 64 characters - * (Unicode codepoints), can only contain lowercase letters, numeric - * characters, underscores and dashes. International characters are allowed. + * + * .google.cloud.aiplatform.v1.FeatureView.IndexConfig index_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * * - * See https://goo.gl/xmQnxf for more information on and examples of labels. - * No more than 64 user labels can be associated with one - * FeatureOnlineStore(System labels are excluded)." System reserved label keys - * are prefixed with "aiplatform.googleapis.com/" and are immutable. + * @return Whether the indexConfig field is set. + */ + public boolean hasIndexConfig() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * + * + *
+     * Optional. Configuration for index preparation for vector search. It
+     * contains the required configurations to create an index from source data,
+     * so that approximate nearest neighbor (a.k.a ANN) algorithms search can be
+     * performed during online serving.
      * 
* - * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.aiplatform.v1.FeatureView.IndexConfig index_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The indexConfig. */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public com.google.cloud.aiplatform.v1.FeatureView.IndexConfig getIndexConfig() { + if (indexConfigBuilder_ == null) { + return indexConfig_ == null + ? com.google.cloud.aiplatform.v1.FeatureView.IndexConfig.getDefaultInstance() + : indexConfig_; + } else { + return indexConfigBuilder_.getMessage(); } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); } /** * * *
-     * Optional. The labels with user-defined metadata to organize your
-     * FeatureViews.
-     *
-     * Label keys and values can be no longer than 64 characters
-     * (Unicode codepoints), can only contain lowercase letters, numeric
-     * characters, underscores and dashes. International characters are allowed.
-     *
-     * See https://goo.gl/xmQnxf for more information on and examples of labels.
-     * No more than 64 user labels can be associated with one
-     * FeatureOnlineStore(System labels are excluded)." System reserved label keys
-     * are prefixed with "aiplatform.googleapis.com/" and are immutable.
+     * Optional. Configuration for index preparation for vector search. It
+     * contains the required configurations to create an index from source data,
+     * so that approximate nearest neighbor (a.k.a ANN) algorithms search can be
+     * performed during online serving.
      * 
* - * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.aiplatform.v1.FeatureView.IndexConfig index_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); + public Builder setIndexConfig(com.google.cloud.aiplatform.v1.FeatureView.IndexConfig value) { + if (indexConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + indexConfig_ = value; + } else { + indexConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; } /** * * *
-     * Optional. The labels with user-defined metadata to organize your
-     * FeatureViews.
-     *
-     * Label keys and values can be no longer than 64 characters
-     * (Unicode codepoints), can only contain lowercase letters, numeric
-     * characters, underscores and dashes. International characters are allowed.
-     *
-     * See https://goo.gl/xmQnxf for more information on and examples of labels.
-     * No more than 64 user labels can be associated with one
-     * FeatureOnlineStore(System labels are excluded)." System reserved label keys
-     * are prefixed with "aiplatform.googleapis.com/" and are immutable.
+     * Optional. Configuration for index preparation for vector search. It
+     * contains the required configurations to create an index from source data,
+     * so that approximate nearest neighbor (a.k.a ANN) algorithms search can be
+     * performed during online serving.
      * 
* - * map<string, string> labels = 5 [(.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"); + * + * .google.cloud.aiplatform.v1.FeatureView.IndexConfig index_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIndexConfig( + com.google.cloud.aiplatform.v1.FeatureView.IndexConfig.Builder builderForValue) { + if (indexConfigBuilder_ == null) { + indexConfig_ = builderForValue.build(); + } else { + indexConfigBuilder_.setMessage(builderForValue.build()); } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; + bitField0_ |= 0x00000200; + onChanged(); + return this; } /** * * *
-     * Optional. The labels with user-defined metadata to organize your
-     * FeatureViews.
-     *
-     * Label keys and values can be no longer than 64 characters
-     * (Unicode codepoints), can only contain lowercase letters, numeric
-     * characters, underscores and dashes. International characters are allowed.
-     *
-     * See https://goo.gl/xmQnxf for more information on and examples of labels.
-     * No more than 64 user labels can be associated with one
-     * FeatureOnlineStore(System labels are excluded)." System reserved label keys
-     * are prefixed with "aiplatform.googleapis.com/" and are immutable.
+     * Optional. Configuration for index preparation for vector search. It
+     * contains the required configurations to create an index from source data,
+     * so that approximate nearest neighbor (a.k.a ANN) algorithms search can be
+     * performed during online serving.
      * 
* - * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.aiplatform.v1.FeatureView.IndexConfig index_config = 15 [(.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"); + public Builder mergeIndexConfig(com.google.cloud.aiplatform.v1.FeatureView.IndexConfig value) { + if (indexConfigBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && indexConfig_ != null + && indexConfig_ + != com.google.cloud.aiplatform.v1.FeatureView.IndexConfig.getDefaultInstance()) { + getIndexConfigBuilder().mergeFrom(value); + } else { + indexConfig_ = value; + } + } else { + indexConfigBuilder_.mergeFrom(value); } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + if (indexConfig_ != null) { + bitField0_ |= 0x00000200; + onChanged(); } - return map.get(key); - } - - public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00000080); - internalGetMutableLabels().getMutableMap().clear(); return this; } /** * * *
-     * Optional. The labels with user-defined metadata to organize your
-     * FeatureViews.
-     *
-     * Label keys and values can be no longer than 64 characters
-     * (Unicode codepoints), can only contain lowercase letters, numeric
-     * characters, underscores and dashes. International characters are allowed.
-     *
-     * See https://goo.gl/xmQnxf for more information on and examples of labels.
-     * No more than 64 user labels can be associated with one
-     * FeatureOnlineStore(System labels are excluded)." System reserved label keys
-     * are prefixed with "aiplatform.googleapis.com/" and are immutable.
+     * Optional. Configuration for index preparation for vector search. It
+     * contains the required configurations to create an index from source data,
+     * so that approximate nearest neighbor (a.k.a ANN) algorithms search can be
+     * performed during online serving.
      * 
* - * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.aiplatform.v1.FeatureView.IndexConfig index_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder clearIndexConfig() { + bitField0_ = (bitField0_ & ~0x00000200); + indexConfig_ = null; + if (indexConfigBuilder_ != null) { + indexConfigBuilder_.dispose(); + indexConfigBuilder_ = null; } - internalGetMutableLabels().getMutableMap().remove(key); + onChanged(); return this; } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableLabels() { - bitField0_ |= 0x00000080; - return internalGetMutableLabels().getMutableMap(); - } /** * * *
-     * Optional. The labels with user-defined metadata to organize your
-     * FeatureViews.
+     * Optional. Configuration for index preparation for vector search. It
+     * contains the required configurations to create an index from source data,
+     * so that approximate nearest neighbor (a.k.a ANN) algorithms search can be
+     * performed during online serving.
+     * 
* - * Label keys and values can be no longer than 64 characters - * (Unicode codepoints), can only contain lowercase letters, numeric - * characters, underscores and dashes. International characters are allowed. + * + * .google.cloud.aiplatform.v1.FeatureView.IndexConfig index_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.FeatureView.IndexConfig.Builder getIndexConfigBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getIndexConfigFieldBuilder().getBuilder(); + } + /** * - * See https://goo.gl/xmQnxf for more information on and examples of labels. - * No more than 64 user labels can be associated with one - * FeatureOnlineStore(System labels are excluded)." System reserved label keys - * are prefixed with "aiplatform.googleapis.com/" and are immutable. + * + *
+     * Optional. Configuration for index preparation for vector search. It
+     * contains the required configurations to create an index from source data,
+     * so that approximate nearest neighbor (a.k.a ANN) algorithms search can be
+     * performed during online serving.
      * 
* - * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.aiplatform.v1.FeatureView.IndexConfig index_config = 15 [(.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"); + public com.google.cloud.aiplatform.v1.FeatureView.IndexConfigOrBuilder + getIndexConfigOrBuilder() { + if (indexConfigBuilder_ != null) { + return indexConfigBuilder_.getMessageOrBuilder(); + } else { + return indexConfig_ == null + ? com.google.cloud.aiplatform.v1.FeatureView.IndexConfig.getDefaultInstance() + : indexConfig_; } - internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00000080; - return this; } /** * * *
-     * Optional. The labels with user-defined metadata to organize your
-     * FeatureViews.
-     *
-     * Label keys and values can be no longer than 64 characters
-     * (Unicode codepoints), can only contain lowercase letters, numeric
-     * characters, underscores and dashes. International characters are allowed.
-     *
-     * See https://goo.gl/xmQnxf for more information on and examples of labels.
-     * No more than 64 user labels can be associated with one
-     * FeatureOnlineStore(System labels are excluded)." System reserved label keys
-     * are prefixed with "aiplatform.googleapis.com/" and are immutable.
+     * Optional. Configuration for index preparation for vector search. It
+     * contains the required configurations to create an index from source data,
+     * so that approximate nearest neighbor (a.k.a ANN) algorithms search can be
+     * performed during online serving.
      * 
* - * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.aiplatform.v1.FeatureView.IndexConfig index_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00000080; - return this; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.FeatureView.IndexConfig, + com.google.cloud.aiplatform.v1.FeatureView.IndexConfig.Builder, + com.google.cloud.aiplatform.v1.FeatureView.IndexConfigOrBuilder> + getIndexConfigFieldBuilder() { + if (indexConfigBuilder_ == null) { + indexConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.FeatureView.IndexConfig, + com.google.cloud.aiplatform.v1.FeatureView.IndexConfig.Builder, + com.google.cloud.aiplatform.v1.FeatureView.IndexConfigOrBuilder>( + getIndexConfig(), getParentForChildren(), isClean()); + indexConfig_ = null; + } + return indexConfigBuilder_; } - private com.google.cloud.aiplatform.v1.FeatureView.SyncConfig syncConfig_; + private com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig optimizedConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1.FeatureView.SyncConfig, - com.google.cloud.aiplatform.v1.FeatureView.SyncConfig.Builder, - com.google.cloud.aiplatform.v1.FeatureView.SyncConfigOrBuilder> - syncConfigBuilder_; + com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig, + com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig.Builder, + com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfigOrBuilder> + optimizedConfigBuilder_; /** * * *
-     * Configures when data is to be synced/updated for this FeatureView. At the
-     * end of the sync the latest featureValues for each entityId of this
-     * FeatureView are made ready for online serving.
+     * Optional. Configuration for FeatureView created under Optimized
+     * FeatureOnlineStore.
      * 
* - * .google.cloud.aiplatform.v1.FeatureView.SyncConfig sync_config = 7; + * + * .google.cloud.aiplatform.v1.FeatureView.OptimizedConfig optimized_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return Whether the syncConfig field is set. + * @return Whether the optimizedConfig field is set. */ - public boolean hasSyncConfig() { - return ((bitField0_ & 0x00000100) != 0); + public boolean hasOptimizedConfig() { + return ((bitField0_ & 0x00000400) != 0); } /** * * *
-     * Configures when data is to be synced/updated for this FeatureView. At the
-     * end of the sync the latest featureValues for each entityId of this
-     * FeatureView are made ready for online serving.
+     * Optional. Configuration for FeatureView created under Optimized
+     * FeatureOnlineStore.
      * 
* - * .google.cloud.aiplatform.v1.FeatureView.SyncConfig sync_config = 7; + * + * .google.cloud.aiplatform.v1.FeatureView.OptimizedConfig optimized_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The syncConfig. + * @return The optimizedConfig. */ - public com.google.cloud.aiplatform.v1.FeatureView.SyncConfig getSyncConfig() { - if (syncConfigBuilder_ == null) { - return syncConfig_ == null - ? com.google.cloud.aiplatform.v1.FeatureView.SyncConfig.getDefaultInstance() - : syncConfig_; + public com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig getOptimizedConfig() { + if (optimizedConfigBuilder_ == null) { + return optimizedConfig_ == null + ? com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig.getDefaultInstance() + : optimizedConfig_; } else { - return syncConfigBuilder_.getMessage(); + return optimizedConfigBuilder_.getMessage(); } } /** * * *
-     * Configures when data is to be synced/updated for this FeatureView. At the
-     * end of the sync the latest featureValues for each entityId of this
-     * FeatureView are made ready for online serving.
+     * Optional. Configuration for FeatureView created under Optimized
+     * FeatureOnlineStore.
      * 
* - * .google.cloud.aiplatform.v1.FeatureView.SyncConfig sync_config = 7; + * + * .google.cloud.aiplatform.v1.FeatureView.OptimizedConfig optimized_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setSyncConfig(com.google.cloud.aiplatform.v1.FeatureView.SyncConfig value) { - if (syncConfigBuilder_ == null) { + public Builder setOptimizedConfig( + com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig value) { + if (optimizedConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - syncConfig_ = value; + optimizedConfig_ = value; } else { - syncConfigBuilder_.setMessage(value); + optimizedConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -11956,21 +13673,22 @@ public Builder setSyncConfig(com.google.cloud.aiplatform.v1.FeatureView.SyncConf * * *
-     * Configures when data is to be synced/updated for this FeatureView. At the
-     * end of the sync the latest featureValues for each entityId of this
-     * FeatureView are made ready for online serving.
+     * Optional. Configuration for FeatureView created under Optimized
+     * FeatureOnlineStore.
      * 
* - * .google.cloud.aiplatform.v1.FeatureView.SyncConfig sync_config = 7; + * + * .google.cloud.aiplatform.v1.FeatureView.OptimizedConfig optimized_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setSyncConfig( - com.google.cloud.aiplatform.v1.FeatureView.SyncConfig.Builder builderForValue) { - if (syncConfigBuilder_ == null) { - syncConfig_ = builderForValue.build(); + public Builder setOptimizedConfig( + com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig.Builder builderForValue) { + if (optimizedConfigBuilder_ == null) { + optimizedConfig_ = builderForValue.build(); } else { - syncConfigBuilder_.setMessage(builderForValue.build()); + optimizedConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -11978,28 +13696,31 @@ public Builder setSyncConfig( * * *
-     * Configures when data is to be synced/updated for this FeatureView. At the
-     * end of the sync the latest featureValues for each entityId of this
-     * FeatureView are made ready for online serving.
+     * Optional. Configuration for FeatureView created under Optimized
+     * FeatureOnlineStore.
      * 
* - * .google.cloud.aiplatform.v1.FeatureView.SyncConfig sync_config = 7; + * + * .google.cloud.aiplatform.v1.FeatureView.OptimizedConfig optimized_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeSyncConfig(com.google.cloud.aiplatform.v1.FeatureView.SyncConfig value) { - if (syncConfigBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && syncConfig_ != null - && syncConfig_ - != com.google.cloud.aiplatform.v1.FeatureView.SyncConfig.getDefaultInstance()) { - getSyncConfigBuilder().mergeFrom(value); + public Builder mergeOptimizedConfig( + com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig value) { + if (optimizedConfigBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && optimizedConfig_ != null + && optimizedConfig_ + != com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig + .getDefaultInstance()) { + getOptimizedConfigBuilder().mergeFrom(value); } else { - syncConfig_ = value; + optimizedConfig_ = value; } } else { - syncConfigBuilder_.mergeFrom(value); - } - if (syncConfig_ != null) { - bitField0_ |= 0x00000100; + optimizedConfigBuilder_.mergeFrom(value); + } + if (optimizedConfig_ != null) { + bitField0_ |= 0x00000400; onChanged(); } return this; @@ -12008,19 +13729,20 @@ public Builder mergeSyncConfig(com.google.cloud.aiplatform.v1.FeatureView.SyncCo * * *
-     * Configures when data is to be synced/updated for this FeatureView. At the
-     * end of the sync the latest featureValues for each entityId of this
-     * FeatureView are made ready for online serving.
+     * Optional. Configuration for FeatureView created under Optimized
+     * FeatureOnlineStore.
      * 
* - * .google.cloud.aiplatform.v1.FeatureView.SyncConfig sync_config = 7; + * + * .google.cloud.aiplatform.v1.FeatureView.OptimizedConfig optimized_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearSyncConfig() { - bitField0_ = (bitField0_ & ~0x00000100); - syncConfig_ = null; - if (syncConfigBuilder_ != null) { - syncConfigBuilder_.dispose(); - syncConfigBuilder_ = null; + public Builder clearOptimizedConfig() { + bitField0_ = (bitField0_ & ~0x00000400); + optimizedConfig_ = null; + if (optimizedConfigBuilder_ != null) { + optimizedConfigBuilder_.dispose(); + optimizedConfigBuilder_ = null; } onChanged(); return this; @@ -12029,165 +13751,171 @@ public Builder clearSyncConfig() { * * *
-     * Configures when data is to be synced/updated for this FeatureView. At the
-     * end of the sync the latest featureValues for each entityId of this
-     * FeatureView are made ready for online serving.
+     * Optional. Configuration for FeatureView created under Optimized
+     * FeatureOnlineStore.
      * 
* - * .google.cloud.aiplatform.v1.FeatureView.SyncConfig sync_config = 7; + * + * .google.cloud.aiplatform.v1.FeatureView.OptimizedConfig optimized_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.aiplatform.v1.FeatureView.SyncConfig.Builder getSyncConfigBuilder() { - bitField0_ |= 0x00000100; + public com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig.Builder + getOptimizedConfigBuilder() { + bitField0_ |= 0x00000400; onChanged(); - return getSyncConfigFieldBuilder().getBuilder(); + return getOptimizedConfigFieldBuilder().getBuilder(); } /** * * *
-     * Configures when data is to be synced/updated for this FeatureView. At the
-     * end of the sync the latest featureValues for each entityId of this
-     * FeatureView are made ready for online serving.
+     * Optional. Configuration for FeatureView created under Optimized
+     * FeatureOnlineStore.
      * 
* - * .google.cloud.aiplatform.v1.FeatureView.SyncConfig sync_config = 7; + * + * .google.cloud.aiplatform.v1.FeatureView.OptimizedConfig optimized_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.aiplatform.v1.FeatureView.SyncConfigOrBuilder getSyncConfigOrBuilder() { - if (syncConfigBuilder_ != null) { - return syncConfigBuilder_.getMessageOrBuilder(); + public com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfigOrBuilder + getOptimizedConfigOrBuilder() { + if (optimizedConfigBuilder_ != null) { + return optimizedConfigBuilder_.getMessageOrBuilder(); } else { - return syncConfig_ == null - ? com.google.cloud.aiplatform.v1.FeatureView.SyncConfig.getDefaultInstance() - : syncConfig_; + return optimizedConfig_ == null + ? com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig.getDefaultInstance() + : optimizedConfig_; } } /** * * *
-     * Configures when data is to be synced/updated for this FeatureView. At the
-     * end of the sync the latest featureValues for each entityId of this
-     * FeatureView are made ready for online serving.
+     * Optional. Configuration for FeatureView created under Optimized
+     * FeatureOnlineStore.
      * 
* - * .google.cloud.aiplatform.v1.FeatureView.SyncConfig sync_config = 7; + * + * .google.cloud.aiplatform.v1.FeatureView.OptimizedConfig optimized_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1.FeatureView.SyncConfig, - com.google.cloud.aiplatform.v1.FeatureView.SyncConfig.Builder, - com.google.cloud.aiplatform.v1.FeatureView.SyncConfigOrBuilder> - getSyncConfigFieldBuilder() { - if (syncConfigBuilder_ == null) { - syncConfigBuilder_ = + com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig, + com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig.Builder, + com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfigOrBuilder> + getOptimizedConfigFieldBuilder() { + if (optimizedConfigBuilder_ == null) { + optimizedConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1.FeatureView.SyncConfig, - com.google.cloud.aiplatform.v1.FeatureView.SyncConfig.Builder, - com.google.cloud.aiplatform.v1.FeatureView.SyncConfigOrBuilder>( - getSyncConfig(), getParentForChildren(), isClean()); - syncConfig_ = null; + com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig, + com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig.Builder, + com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfigOrBuilder>( + getOptimizedConfig(), getParentForChildren(), isClean()); + optimizedConfig_ = null; } - return syncConfigBuilder_; + return optimizedConfigBuilder_; } - private com.google.cloud.aiplatform.v1.FeatureView.IndexConfig indexConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1.FeatureView.IndexConfig, - com.google.cloud.aiplatform.v1.FeatureView.IndexConfig.Builder, - com.google.cloud.aiplatform.v1.FeatureView.IndexConfigOrBuilder> - indexConfigBuilder_; + private int serviceAgentType_ = 0; /** * * *
-     * Optional. Configuration for index preparation for vector search. It
-     * contains the required configurations to create an index from source data,
-     * so that approximate nearest neighbor (a.k.a ANN) algorithms search can be
-     * performed during online serving.
+     * Optional. Service agent type used during data sync. By default, the Vertex
+     * AI Service Agent is used. When using an IAM Policy to isolate this
+     * FeatureView within a project, a separate service account should be
+     * provisioned by setting this field to `SERVICE_AGENT_TYPE_FEATURE_VIEW`.
+     * This will generate a separate service account to access the BigQuery source
+     * table.
      * 
* * - * .google.cloud.aiplatform.v1.FeatureView.IndexConfig index_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1.FeatureView.ServiceAgentType service_agent_type = 14 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the indexConfig field is set. + * @return The enum numeric value on the wire for serviceAgentType. */ - public boolean hasIndexConfig() { - return ((bitField0_ & 0x00000200) != 0); + @java.lang.Override + public int getServiceAgentTypeValue() { + return serviceAgentType_; } /** * * *
-     * Optional. Configuration for index preparation for vector search. It
-     * contains the required configurations to create an index from source data,
-     * so that approximate nearest neighbor (a.k.a ANN) algorithms search can be
-     * performed during online serving.
+     * Optional. Service agent type used during data sync. By default, the Vertex
+     * AI Service Agent is used. When using an IAM Policy to isolate this
+     * FeatureView within a project, a separate service account should be
+     * provisioned by setting this field to `SERVICE_AGENT_TYPE_FEATURE_VIEW`.
+     * This will generate a separate service account to access the BigQuery source
+     * table.
      * 
* * - * .google.cloud.aiplatform.v1.FeatureView.IndexConfig index_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1.FeatureView.ServiceAgentType service_agent_type = 14 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The indexConfig. + * @param value The enum numeric value on the wire for serviceAgentType to set. + * @return This builder for chaining. */ - public com.google.cloud.aiplatform.v1.FeatureView.IndexConfig getIndexConfig() { - if (indexConfigBuilder_ == null) { - return indexConfig_ == null - ? com.google.cloud.aiplatform.v1.FeatureView.IndexConfig.getDefaultInstance() - : indexConfig_; - } else { - return indexConfigBuilder_.getMessage(); - } + public Builder setServiceAgentTypeValue(int value) { + serviceAgentType_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; } /** * * *
-     * Optional. Configuration for index preparation for vector search. It
-     * contains the required configurations to create an index from source data,
-     * so that approximate nearest neighbor (a.k.a ANN) algorithms search can be
-     * performed during online serving.
+     * Optional. Service agent type used during data sync. By default, the Vertex
+     * AI Service Agent is used. When using an IAM Policy to isolate this
+     * FeatureView within a project, a separate service account should be
+     * provisioned by setting this field to `SERVICE_AGENT_TYPE_FEATURE_VIEW`.
+     * This will generate a separate service account to access the BigQuery source
+     * table.
      * 
* * - * .google.cloud.aiplatform.v1.FeatureView.IndexConfig index_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1.FeatureView.ServiceAgentType service_agent_type = 14 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The serviceAgentType. */ - public Builder setIndexConfig(com.google.cloud.aiplatform.v1.FeatureView.IndexConfig value) { - if (indexConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - indexConfig_ = value; - } else { - indexConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; + @java.lang.Override + public com.google.cloud.aiplatform.v1.FeatureView.ServiceAgentType getServiceAgentType() { + com.google.cloud.aiplatform.v1.FeatureView.ServiceAgentType result = + com.google.cloud.aiplatform.v1.FeatureView.ServiceAgentType.forNumber(serviceAgentType_); + return result == null + ? com.google.cloud.aiplatform.v1.FeatureView.ServiceAgentType.UNRECOGNIZED + : result; } /** * * *
-     * Optional. Configuration for index preparation for vector search. It
-     * contains the required configurations to create an index from source data,
-     * so that approximate nearest neighbor (a.k.a ANN) algorithms search can be
-     * performed during online serving.
+     * Optional. Service agent type used during data sync. By default, the Vertex
+     * AI Service Agent is used. When using an IAM Policy to isolate this
+     * FeatureView within a project, a separate service account should be
+     * provisioned by setting this field to `SERVICE_AGENT_TYPE_FEATURE_VIEW`.
+     * This will generate a separate service account to access the BigQuery source
+     * table.
      * 
* * - * .google.cloud.aiplatform.v1.FeatureView.IndexConfig index_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1.FeatureView.ServiceAgentType service_agent_type = 14 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @param value The serviceAgentType to set. + * @return This builder for chaining. */ - public Builder setIndexConfig( - com.google.cloud.aiplatform.v1.FeatureView.IndexConfig.Builder builderForValue) { - if (indexConfigBuilder_ == null) { - indexConfig_ = builderForValue.build(); - } else { - indexConfigBuilder_.setMessage(builderForValue.build()); + public Builder setServiceAgentType( + com.google.cloud.aiplatform.v1.FeatureView.ServiceAgentType value) { + if (value == null) { + throw new NullPointerException(); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; + serviceAgentType_ = value.getNumber(); onChanged(); return this; } @@ -12195,131 +13923,141 @@ public Builder setIndexConfig( * * *
-     * Optional. Configuration for index preparation for vector search. It
-     * contains the required configurations to create an index from source data,
-     * so that approximate nearest neighbor (a.k.a ANN) algorithms search can be
-     * performed during online serving.
+     * Optional. Service agent type used during data sync. By default, the Vertex
+     * AI Service Agent is used. When using an IAM Policy to isolate this
+     * FeatureView within a project, a separate service account should be
+     * provisioned by setting this field to `SERVICE_AGENT_TYPE_FEATURE_VIEW`.
+     * This will generate a separate service account to access the BigQuery source
+     * table.
      * 
* * - * .google.cloud.aiplatform.v1.FeatureView.IndexConfig index_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1.FeatureView.ServiceAgentType service_agent_type = 14 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return This builder for chaining. */ - public Builder mergeIndexConfig(com.google.cloud.aiplatform.v1.FeatureView.IndexConfig value) { - if (indexConfigBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && indexConfig_ != null - && indexConfig_ - != com.google.cloud.aiplatform.v1.FeatureView.IndexConfig.getDefaultInstance()) { - getIndexConfigBuilder().mergeFrom(value); - } else { - indexConfig_ = value; - } + public Builder clearServiceAgentType() { + bitField0_ = (bitField0_ & ~0x00000800); + serviceAgentType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object serviceAccountEmail_ = ""; + /** + * + * + *
+     * Output only. A Service Account unique to this FeatureView. The role
+     * bigquery.dataViewer should be granted to this service account to allow
+     * Vertex AI Feature Store to sync data to the online store.
+     * 
+ * + * string service_account_email = 13 [(.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 { - indexConfigBuilder_.mergeFrom(value); - } - if (indexConfig_ != null) { - bitField0_ |= 0x00000200; - onChanged(); + return (java.lang.String) ref; } - return this; } /** * * *
-     * Optional. Configuration for index preparation for vector search. It
-     * contains the required configurations to create an index from source data,
-     * so that approximate nearest neighbor (a.k.a ANN) algorithms search can be
-     * performed during online serving.
+     * Output only. A Service Account unique to this FeatureView. The role
+     * bigquery.dataViewer should be granted to this service account to allow
+     * Vertex AI Feature Store to sync data to the online store.
      * 
* - * - * .google.cloud.aiplatform.v1.FeatureView.IndexConfig index_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * + * string service_account_email = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serviceAccountEmail. */ - public Builder clearIndexConfig() { - bitField0_ = (bitField0_ & ~0x00000200); - indexConfig_ = null; - if (indexConfigBuilder_ != null) { - indexConfigBuilder_.dispose(); - indexConfigBuilder_ = null; + 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; } - onChanged(); - return this; } /** * * *
-     * Optional. Configuration for index preparation for vector search. It
-     * contains the required configurations to create an index from source data,
-     * so that approximate nearest neighbor (a.k.a ANN) algorithms search can be
-     * performed during online serving.
+     * Output only. A Service Account unique to this FeatureView. The role
+     * bigquery.dataViewer should be granted to this service account to allow
+     * Vertex AI Feature Store to sync data to the online store.
      * 
* - * - * .google.cloud.aiplatform.v1.FeatureView.IndexConfig index_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * + * string service_account_email = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The serviceAccountEmail to set. + * @return This builder for chaining. */ - public com.google.cloud.aiplatform.v1.FeatureView.IndexConfig.Builder getIndexConfigBuilder() { - bitField0_ |= 0x00000200; + public Builder setServiceAccountEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceAccountEmail_ = value; + bitField0_ |= 0x00001000; onChanged(); - return getIndexConfigFieldBuilder().getBuilder(); + return this; } /** * * *
-     * Optional. Configuration for index preparation for vector search. It
-     * contains the required configurations to create an index from source data,
-     * so that approximate nearest neighbor (a.k.a ANN) algorithms search can be
-     * performed during online serving.
+     * Output only. A Service Account unique to this FeatureView. The role
+     * bigquery.dataViewer should be granted to this service account to allow
+     * Vertex AI Feature Store to sync data to the online store.
      * 
* - * - * .google.cloud.aiplatform.v1.FeatureView.IndexConfig index_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * + * string service_account_email = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. */ - public com.google.cloud.aiplatform.v1.FeatureView.IndexConfigOrBuilder - getIndexConfigOrBuilder() { - if (indexConfigBuilder_ != null) { - return indexConfigBuilder_.getMessageOrBuilder(); - } else { - return indexConfig_ == null - ? com.google.cloud.aiplatform.v1.FeatureView.IndexConfig.getDefaultInstance() - : indexConfig_; - } + public Builder clearServiceAccountEmail() { + serviceAccountEmail_ = getDefaultInstance().getServiceAccountEmail(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; } /** * * *
-     * Optional. Configuration for index preparation for vector search. It
-     * contains the required configurations to create an index from source data,
-     * so that approximate nearest neighbor (a.k.a ANN) algorithms search can be
-     * performed during online serving.
+     * Output only. A Service Account unique to this FeatureView. The role
+     * bigquery.dataViewer should be granted to this service account to allow
+     * Vertex AI Feature Store to sync data to the online store.
      * 
* - * - * .google.cloud.aiplatform.v1.FeatureView.IndexConfig index_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * + * string service_account_email = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for serviceAccountEmail to set. + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1.FeatureView.IndexConfig, - com.google.cloud.aiplatform.v1.FeatureView.IndexConfig.Builder, - com.google.cloud.aiplatform.v1.FeatureView.IndexConfigOrBuilder> - getIndexConfigFieldBuilder() { - if (indexConfigBuilder_ == null) { - indexConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1.FeatureView.IndexConfig, - com.google.cloud.aiplatform.v1.FeatureView.IndexConfig.Builder, - com.google.cloud.aiplatform.v1.FeatureView.IndexConfigOrBuilder>( - getIndexConfig(), getParentForChildren(), isClean()); - indexConfig_ = null; + public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - return indexConfigBuilder_; + checkByteStringIsUtf8(value); + serviceAccountEmail_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; } private boolean satisfiesPzs_; @@ -12353,7 +14091,7 @@ public boolean getSatisfiesPzs() { public Builder setSatisfiesPzs(boolean value) { satisfiesPzs_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -12369,7 +14107,7 @@ public Builder setSatisfiesPzs(boolean value) { * @return This builder for chaining. */ public Builder clearSatisfiesPzs() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00002000); satisfiesPzs_ = false; onChanged(); return this; @@ -12406,7 +14144,7 @@ public boolean getSatisfiesPzi() { public Builder setSatisfiesPzi(boolean value) { satisfiesPzi_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -12422,7 +14160,7 @@ public Builder setSatisfiesPzi(boolean value) { * @return This builder for chaining. */ public Builder clearSatisfiesPzi() { - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00004000); satisfiesPzi_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewOrBuilder.java index 2f50a00fc912..fd8b64da5df8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewOrBuilder.java @@ -483,6 +483,118 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.aiplatform.v1.FeatureView.IndexConfigOrBuilder getIndexConfigOrBuilder(); + /** + * + * + *
+   * Optional. Configuration for FeatureView created under Optimized
+   * FeatureOnlineStore.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.FeatureView.OptimizedConfig optimized_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the optimizedConfig field is set. + */ + boolean hasOptimizedConfig(); + /** + * + * + *
+   * Optional. Configuration for FeatureView created under Optimized
+   * FeatureOnlineStore.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.FeatureView.OptimizedConfig optimized_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The optimizedConfig. + */ + com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfig getOptimizedConfig(); + /** + * + * + *
+   * Optional. Configuration for FeatureView created under Optimized
+   * FeatureOnlineStore.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.FeatureView.OptimizedConfig optimized_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1.FeatureView.OptimizedConfigOrBuilder getOptimizedConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Service agent type used during data sync. By default, the Vertex
+   * AI Service Agent is used. When using an IAM Policy to isolate this
+   * FeatureView within a project, a separate service account should be
+   * provisioned by setting this field to `SERVICE_AGENT_TYPE_FEATURE_VIEW`.
+   * This will generate a separate service account to access the BigQuery source
+   * table.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.FeatureView.ServiceAgentType service_agent_type = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for serviceAgentType. + */ + int getServiceAgentTypeValue(); + /** + * + * + *
+   * Optional. Service agent type used during data sync. By default, the Vertex
+   * AI Service Agent is used. When using an IAM Policy to isolate this
+   * FeatureView within a project, a separate service account should be
+   * provisioned by setting this field to `SERVICE_AGENT_TYPE_FEATURE_VIEW`.
+   * This will generate a separate service account to access the BigQuery source
+   * table.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.FeatureView.ServiceAgentType service_agent_type = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The serviceAgentType. + */ + com.google.cloud.aiplatform.v1.FeatureView.ServiceAgentType getServiceAgentType(); + + /** + * + * + *
+   * Output only. A Service Account unique to this FeatureView. The role
+   * bigquery.dataViewer should be granted to this service account to allow
+   * Vertex AI Feature Store to sync data to the online store.
+   * 
+ * + * string service_account_email = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serviceAccountEmail. + */ + java.lang.String getServiceAccountEmail(); + /** + * + * + *
+   * Output only. A Service Account unique to this FeatureView. The role
+   * bigquery.dataViewer should be granted to this service account to allow
+   * Vertex AI Feature Store to sync data to the online store.
+   * 
+ * + * string service_account_email = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serviceAccountEmail. + */ + com.google.protobuf.ByteString getServiceAccountEmailBytes(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewProto.java index 58f81590ccd0..9fe2b9412a5a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureViewProto.java @@ -64,6 +64,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_FeatureView_VertexRagSource_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_FeatureView_VertexRagSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_FeatureView_OptimizedConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_FeatureView_OptimizedConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1_FeatureView_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -80,66 +84,79 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n-google/cloud/aiplatform/v1/feature_vie" + "w.proto\022\032google.cloud.aiplatform.v1\032\037goo" + "gle/api/field_behavior.proto\032\031google/api" - + "/resource.proto\032\037google/protobuf/timesta" - + "mp.proto\"\321\020\n\013FeatureView\022W\n\020big_query_so" - + "urce\030\006 \001(\01326.google.cloud.aiplatform.v1." - + "FeatureView.BigQuerySourceB\003\340A\001H\000\022e\n\027fea" - + "ture_registry_source\030\t \001(\0132=.google.clou" - + "d.aiplatform.v1.FeatureView.FeatureRegis" - + "trySourceB\003\340A\001H\000\022Y\n\021vertex_rag_source\030\022 " - + "\001(\01327.google.cloud.aiplatform.v1.Feature" - + "View.VertexRagSourceB\003\340A\001H\000\022\021\n\004name\030\001 \001(" - + "\tB\003\340A\010\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\022\021\n\004et" - + "ag\030\004 \001(\tB\003\340A\001\022H\n\006labels\030\005 \003(\01323.google.c" - + "loud.aiplatform.v1.FeatureView.LabelsEnt" - + "ryB\003\340A\001\022G\n\013sync_config\030\007 \001(\01322.google.cl" - + "oud.aiplatform.v1.FeatureView.SyncConfig" - + "\022N\n\014index_config\030\017 \001(\01323.google.cloud.ai" - + "platform.v1.FeatureView.IndexConfigB\003\340A\001" - + "\022\032\n\rsatisfies_pzs\030\023 \001(\010B\003\340A\003\022\032\n\rsatisfie" - + "s_pzi\030\024 \001(\010B\003\340A\003\032B\n\016BigQuerySource\022\020\n\003ur" - + "i\030\001 \001(\tB\003\340A\002\022\036\n\021entity_id_columns\030\002 \003(\tB" - + "\003\340A\002\0323\n\nSyncConfig\022\014\n\004cron\030\001 \001(\t\022\027\n\ncont" - + "inuous\030\002 \001(\010B\003\340A\001\032\347\005\n\013IndexConfig\022_\n\016tre" - + "e_ah_config\030\006 \001(\0132@.google.cloud.aiplatf" - + "orm.v1.FeatureView.IndexConfig.TreeAHCon" - + "figB\003\340A\001H\000\022g\n\022brute_force_config\030\007 \001(\0132D" + + "/resource.proto\0322google/cloud/aiplatform" + + "/v1/machine_resources.proto\032\037google/prot" + + "obuf/timestamp.proto\"\212\024\n\013FeatureView\022W\n\020" + + "big_query_source\030\006 \001(\01326.google.cloud.ai" + + "platform.v1.FeatureView.BigQuerySourceB\003" + + "\340A\001H\000\022e\n\027feature_registry_source\030\t \001(\0132=" + ".google.cloud.aiplatform.v1.FeatureView." - + "IndexConfig.BruteForceConfigB\003\340A\001H\000\022\035\n\020e" - + "mbedding_column\030\001 \001(\tB\003\340A\001\022\033\n\016filter_col" - + "umns\030\002 \003(\tB\003\340A\001\022\034\n\017crowding_column\030\003 \001(\t" - + "B\003\340A\001\022%\n\023embedding_dimension\030\004 \001(\005B\003\340A\001H" - + "\001\210\001\001\022k\n\025distance_measure_type\030\005 \001(\0162G.go" - + "ogle.cloud.aiplatform.v1.FeatureView.Ind" - + "exConfig.DistanceMeasureTypeB\003\340A\001\032\022\n\020Bru" - + "teForceConfig\032Y\n\014TreeAHConfig\022+\n\031leaf_no" - + "de_embedding_count\030\001 \001(\003B\003\340A\001H\000\210\001\001B\034\n\032_l" - + "eaf_node_embedding_count\"\204\001\n\023DistanceMea" - + "sureType\022%\n!DISTANCE_MEASURE_TYPE_UNSPEC" - + "IFIED\020\000\022\027\n\023SQUARED_L2_DISTANCE\020\001\022\023\n\017COSI" - + "NE_DISTANCE\020\002\022\030\n\024DOT_PRODUCT_DISTANCE\020\003B" - + "\022\n\020algorithm_configB\026\n\024_embedding_dimens" - + "ion\032\376\001\n\025FeatureRegistrySource\022g\n\016feature" - + "_groups\030\001 \003(\0132J.google.cloud.aiplatform." - + "v1.FeatureView.FeatureRegistrySource.Fea" - + "tureGroupB\003\340A\002\022 \n\016project_number\030\002 \001(\003B\003" - + "\340A\001H\000\210\001\001\032G\n\014FeatureGroup\022\035\n\020feature_grou" - + "p_id\030\001 \001(\tB\003\340A\002\022\030\n\013feature_ids\030\002 \003(\tB\003\340A" - + "\002B\021\n\017_project_number\032?\n\017VertexRagSource\022" - + "\020\n\003uri\030\001 \001(\tB\003\340A\002\022\032\n\rrag_corpus_id\030\002 \001(\003" - + "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:\233\001\352A\227\001\n%aiplatform.googleap" - + "is.com/FeatureView\022nprojects/{project}/l" - + "ocations/{location}/featureOnlineStores/" - + "{feature_online_store}/featureViews/{fea" - + "ture_view}B\010\n\006sourceB\316\001\n\036com.google.clou" - + "d.aiplatform.v1B\020FeatureViewProtoP\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" + + "FeatureRegistrySourceB\003\340A\001H\000\022Y\n\021vertex_r" + + "ag_source\030\022 \001(\01327.google.cloud.aiplatfor" + + "m.v1.FeatureView.VertexRagSourceB\003\340A\001H\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\013upda" + + "te_time\030\003 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003\022\021\n\004etag\030\004 \001(\tB\003\340A\001\022H\n\006labels\030\005 \003(" + + "\01323.google.cloud.aiplatform.v1.FeatureVi" + + "ew.LabelsEntryB\003\340A\001\022G\n\013sync_config\030\007 \001(\013" + + "22.google.cloud.aiplatform.v1.FeatureVie" + + "w.SyncConfig\022N\n\014index_config\030\017 \001(\01323.goo" + + "gle.cloud.aiplatform.v1.FeatureView.Inde" + + "xConfigB\003\340A\001\022V\n\020optimized_config\030\020 \001(\01327" + + ".google.cloud.aiplatform.v1.FeatureView." + + "OptimizedConfigB\003\340A\001\022Y\n\022service_agent_ty" + + "pe\030\016 \001(\01628.google.cloud.aiplatform.v1.Fe" + + "atureView.ServiceAgentTypeB\003\340A\001\022\"\n\025servi" + + "ce_account_email\030\r \001(\tB\003\340A\003\022\032\n\rsatisfies" + + "_pzs\030\023 \001(\010B\003\340A\003\022\032\n\rsatisfies_pzi\030\024 \001(\010B\003" + + "\340A\003\032B\n\016BigQuerySource\022\020\n\003uri\030\001 \001(\tB\003\340A\002\022" + + "\036\n\021entity_id_columns\030\002 \003(\tB\003\340A\002\0323\n\nSyncC" + + "onfig\022\014\n\004cron\030\001 \001(\t\022\027\n\ncontinuous\030\002 \001(\010B" + + "\003\340A\001\032\347\005\n\013IndexConfig\022_\n\016tree_ah_config\030\006" + + " \001(\0132@.google.cloud.aiplatform.v1.Featur" + + "eView.IndexConfig.TreeAHConfigB\003\340A\001H\000\022g\n" + + "\022brute_force_config\030\007 \001(\0132D.google.cloud" + + ".aiplatform.v1.FeatureView.IndexConfig.B" + + "ruteForceConfigB\003\340A\001H\000\022\035\n\020embedding_colu" + + "mn\030\001 \001(\tB\003\340A\001\022\033\n\016filter_columns\030\002 \003(\tB\003\340" + + "A\001\022\034\n\017crowding_column\030\003 \001(\tB\003\340A\001\022%\n\023embe" + + "dding_dimension\030\004 \001(\005B\003\340A\001H\001\210\001\001\022k\n\025dista" + + "nce_measure_type\030\005 \001(\0162G.google.cloud.ai" + + "platform.v1.FeatureView.IndexConfig.Dist" + + "anceMeasureTypeB\003\340A\001\032\022\n\020BruteForceConfig" + + "\032Y\n\014TreeAHConfig\022+\n\031leaf_node_embedding_" + + "count\030\001 \001(\003B\003\340A\001H\000\210\001\001B\034\n\032_leaf_node_embe" + + "dding_count\"\204\001\n\023DistanceMeasureType\022%\n!D" + + "ISTANCE_MEASURE_TYPE_UNSPECIFIED\020\000\022\027\n\023SQ" + + "UARED_L2_DISTANCE\020\001\022\023\n\017COSINE_DISTANCE\020\002" + + "\022\030\n\024DOT_PRODUCT_DISTANCE\020\003B\022\n\020algorithm_" + + "configB\026\n\024_embedding_dimension\032\376\001\n\025Featu" + + "reRegistrySource\022g\n\016feature_groups\030\001 \003(\013" + + "2J.google.cloud.aiplatform.v1.FeatureVie" + + "w.FeatureRegistrySource.FeatureGroupB\003\340A" + + "\002\022 \n\016project_number\030\002 \001(\003B\003\340A\001H\000\210\001\001\032G\n\014F" + + "eatureGroup\022\035\n\020feature_group_id\030\001 \001(\tB\003\340" + + "A\002\022\030\n\013feature_ids\030\002 \003(\tB\003\340A\002B\021\n\017_project" + + "_number\032?\n\017VertexRagSource\022\020\n\003uri\030\001 \001(\tB" + + "\003\340A\002\022\032\n\rrag_corpus_id\030\002 \001(\003B\003\340A\001\032c\n\017Opti" + + "mizedConfig\022P\n\023automatic_resources\030\007 \001(\013" + + "2..google.cloud.aiplatform.v1.AutomaticR" + + "esourcesB\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\020ServiceAgentType" + + "\022\"\n\036SERVICE_AGENT_TYPE_UNSPECIFIED\020\000\022\036\n\032" + + "SERVICE_AGENT_TYPE_PROJECT\020\001\022#\n\037SERVICE_" + + "AGENT_TYPE_FEATURE_VIEW\020\002:\233\001\352A\227\001\n%aiplat" + + "form.googleapis.com/FeatureView\022nproject" + + "s/{project}/locations/{location}/feature" + + "OnlineStores/{feature_online_store}/feat" + + "ureViews/{feature_view}B\010\n\006sourceB\316\001\n\036co" + + "m.google.cloud.aiplatform.v1B\020FeatureVie" + + "wProtoP\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( @@ -147,6 +164,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.aiplatform.v1.MachineResourcesProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_aiplatform_v1_FeatureView_descriptor = @@ -165,6 +183,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Labels", "SyncConfig", "IndexConfig", + "OptimizedConfig", + "ServiceAgentType", + "ServiceAccountEmail", "SatisfiesPzs", "SatisfiesPzi", "Source", @@ -244,8 +265,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Uri", "RagCorpusId", }); - internal_static_google_cloud_aiplatform_v1_FeatureView_LabelsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1_FeatureView_OptimizedConfig_descriptor = internal_static_google_cloud_aiplatform_v1_FeatureView_descriptor.getNestedTypes().get(5); + internal_static_google_cloud_aiplatform_v1_FeatureView_OptimizedConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_FeatureView_OptimizedConfig_descriptor, + new java.lang.String[] { + "AutomaticResources", + }); + internal_static_google_cloud_aiplatform_v1_FeatureView_LabelsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1_FeatureView_descriptor.getNestedTypes().get(6); internal_static_google_cloud_aiplatform_v1_FeatureView_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_FeatureView_LabelsEntry_descriptor, @@ -260,6 +289,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.aiplatform.v1.MachineResourcesProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenAiCacheServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenAiCacheServiceProto.java new file mode 100644 index 000000000000..bc4ca86c9031 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenAiCacheServiceProto.java @@ -0,0 +1,206 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/gen_ai_cache_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public final class GenAiCacheServiceProto { + private GenAiCacheServiceProto() {} + + 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_CreateCachedContentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_CreateCachedContentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_GetCachedContentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_GetCachedContentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_UpdateCachedContentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_UpdateCachedContentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_DeleteCachedContentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_DeleteCachedContentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ListCachedContentsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ListCachedContentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ListCachedContentsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ListCachedContentsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n5google/cloud/aiplatform/v1/gen_ai_cach" + + "e_service.proto\022\032google.cloud.aiplatform" + + ".v1\032\034google/api/annotations.proto\032\027googl" + + "e/api/client.proto\032\037google/api/field_beh" + + "avior.proto\032\031google/api/resource.proto\032/" + + "google/cloud/aiplatform/v1/cached_conten" + + "t.proto\032\033google/protobuf/empty.proto\032 go" + + "ogle/protobuf/field_mask.proto\"\245\001\n\032Creat" + + "eCachedContentRequest\022?\n\006parent\030\001 \001(\tB/\340" + + "A\002\372A)\022\'aiplatform.googleapis.com/CachedC" + + "ontent\022F\n\016cached_content\030\002 \001(\0132).google." + + "cloud.aiplatform.v1.CachedContentB\003\340A\002\"X" + + "\n\027GetCachedContentRequest\022=\n\004name\030\001 \001(\tB" + + "/\340A\002\372A)\n\'aiplatform.googleapis.com/Cache" + + "dContent\"\232\001\n\032UpdateCachedContentRequest\022" + + "F\n\016cached_content\030\001 \001(\0132).google.cloud.a" + + "iplatform.v1.CachedContentB\003\340A\002\0224\n\013updat" + + "e_mask\030\002 \001(\0132\032.google.protobuf.FieldMask" + + "B\003\340A\002\"[\n\032DeleteCachedContentRequest\022=\n\004n" + + "ame\030\001 \001(\tB/\340A\002\372A)\n\'aiplatform.googleapis" + + ".com/CachedContent\"\215\001\n\031ListCachedContent" + + "sRequest\022?\n\006parent\030\001 \001(\tB/\340A\002\372A)\022\'aiplat" + + "form.googleapis.com/CachedContent\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\"y\n\032ListCachedContentsResponse\022B\n\017cach" + + "ed_contents\030\001 \003(\0132).google.cloud.aiplatf" + + "orm.v1.CachedContent\022\027\n\017next_page_token\030" + + "\002 \001(\t2\342\010\n\021GenAiCacheService\022\334\001\n\023CreateCa" + + "chedContent\0226.google.cloud.aiplatform.v1" + + ".CreateCachedContentRequest\032).google.clo" + + "ud.aiplatform.v1.CachedContent\"b\332A\025paren" + + "t,cached_content\202\323\344\223\002D\"2/v1/{parent=proj" + + "ects/*/locations/*}/cachedContents:\016cach" + + "ed_content\022\265\001\n\020GetCachedContent\0223.google" + + ".cloud.aiplatform.v1.GetCachedContentReq" + + "uest\032).google.cloud.aiplatform.v1.Cached" + + "Content\"A\332A\004name\202\323\344\223\0024\0222/v1/{name=projec" + + "ts/*/locations/*/cachedContents/*}\022\360\001\n\023U" + + "pdateCachedContent\0226.google.cloud.aiplat" + + "form.v1.UpdateCachedContentRequest\032).goo" + + "gle.cloud.aiplatform.v1.CachedContent\"v\332" + + "A\032cached_content,update_mask\202\323\344\223\002S2A/v1/" + + "{cached_content.name=projects/*/location" + + "s/*/cachedContents/*}:\016cached_content\022\250\001" + + "\n\023DeleteCachedContent\0226.google.cloud.aip" + + "latform.v1.DeleteCachedContentRequest\032\026." + + "google.protobuf.Empty\"A\332A\004name\202\323\344\223\0024*2/v" + + "1/{name=projects/*/locations/*/cachedCon" + + "tents/*}\022\310\001\n\022ListCachedContents\0225.google" + + ".cloud.aiplatform.v1.ListCachedContentsR" + + "equest\0326.google.cloud.aiplatform.v1.List" + + "CachedContentsResponse\"C\332A\006parent\202\323\344\223\0024\022" + + "2/v1/{parent=projects/*/locations/*}/cac" + + "hedContents\032M\312A\031aiplatform.googleapis.co" + + "m\322A.https://www.googleapis.com/auth/clou" + + "d-platformB\324\001\n\036com.google.cloud.aiplatfo" + + "rm.v1B\026GenAiCacheServiceProtoP\001Z>cloud.g" + + "oogle.com/go/aiplatform/apiv1/aiplatform" + + "pb;aiplatformpb\252\002\032Google.Cloud.AIPlatfor" + + "m.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Goog" + + "le::Cloud::AIPlatform::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + 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.CachedContentProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1_CreateCachedContentRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1_CreateCachedContentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_CreateCachedContentRequest_descriptor, + new java.lang.String[] { + "Parent", "CachedContent", + }); + internal_static_google_cloud_aiplatform_v1_GetCachedContentRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_aiplatform_v1_GetCachedContentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_GetCachedContentRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1_UpdateCachedContentRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_aiplatform_v1_UpdateCachedContentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_UpdateCachedContentRequest_descriptor, + new java.lang.String[] { + "CachedContent", "UpdateMask", + }); + internal_static_google_cloud_aiplatform_v1_DeleteCachedContentRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_aiplatform_v1_DeleteCachedContentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_DeleteCachedContentRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1_ListCachedContentsRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_aiplatform_v1_ListCachedContentsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_ListCachedContentsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_aiplatform_v1_ListCachedContentsResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_aiplatform_v1_ListCachedContentsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_ListCachedContentsResponse_descriptor, + new java.lang.String[] { + "CachedContents", "NextPageToken", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.aiplatform.v1.CachedContentProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.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/GenerateContentRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerateContentRequest.java index b73c59e61304..8af69603fad9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerateContentRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerateContentRequest.java @@ -41,6 +41,7 @@ private GenerateContentRequest(com.google.protobuf.GeneratedMessageV3.Builder private GenerateContentRequest() { model_ = ""; contents_ = java.util.Collections.emptyList(); + cachedContent_ = ""; tools_ = java.util.Collections.emptyList(); safetySettings_ = java.util.Collections.emptyList(); } @@ -307,6 +308,69 @@ public com.google.cloud.aiplatform.v1.ContentOrBuilder getSystemInstructionOrBui : systemInstruction_; } + public static final int CACHED_CONTENT_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object cachedContent_ = ""; + /** + * + * + *
+   * Optional. The name of the cached content used as context to serve the
+   * prediction. Note: only used in explicit caching, where users can have
+   * control over caching (e.g. what content to cache) and enjoy guaranteed cost
+   * savings. Format:
+   * `projects/{project}/locations/{location}/cachedContents/{cachedContent}`
+   * 
+ * + * + * string cached_content = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cachedContent. + */ + @java.lang.Override + public java.lang.String getCachedContent() { + java.lang.Object ref = cachedContent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cachedContent_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The name of the cached content used as context to serve the
+   * prediction. Note: only used in explicit caching, where users can have
+   * control over caching (e.g. what content to cache) and enjoy guaranteed cost
+   * savings. Format:
+   * `projects/{project}/locations/{location}/cachedContents/{cachedContent}`
+   * 
+ * + * + * string cached_content = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cachedContent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCachedContentBytes() { + java.lang.Object ref = cachedContent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cachedContent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int TOOLS_FIELD_NUMBER = 6; @SuppressWarnings("serial") @@ -776,6 +840,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(8, getSystemInstruction()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cachedContent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, cachedContent_); + } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 10); getUnknownFields().writeTo(output); @@ -808,6 +875,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSystemInstruction()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cachedContent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, cachedContent_); + } for (java.util.Map.Entry entry : internalGetLabels().getMap().entrySet()) { com.google.protobuf.MapEntry labels__ = @@ -840,6 +910,7 @@ public boolean equals(final java.lang.Object obj) { if (hasSystemInstruction()) { if (!getSystemInstruction().equals(other.getSystemInstruction())) return false; } + if (!getCachedContent().equals(other.getCachedContent())) return false; if (!getToolsList().equals(other.getToolsList())) return false; if (hasToolConfig() != other.hasToolConfig()) return false; if (hasToolConfig()) { @@ -872,6 +943,8 @@ public int hashCode() { hash = (37 * hash) + SYSTEM_INSTRUCTION_FIELD_NUMBER; hash = (53 * hash) + getSystemInstruction().hashCode(); } + hash = (37 * hash) + CACHED_CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getCachedContent().hashCode(); if (getToolsCount() > 0) { hash = (37 * hash) + TOOLS_FIELD_NUMBER; hash = (53 * hash) + getToolsList().hashCode(); @@ -1081,13 +1154,14 @@ public Builder clear() { systemInstructionBuilder_.dispose(); systemInstructionBuilder_ = null; } + cachedContent_ = ""; if (toolsBuilder_ == null) { tools_ = java.util.Collections.emptyList(); } else { tools_ = null; toolsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); toolConfig_ = null; if (toolConfigBuilder_ != null) { toolConfigBuilder_.dispose(); @@ -1100,7 +1174,7 @@ public Builder clear() { safetySettings_ = null; safetySettingsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); generationConfig_ = null; if (generationConfigBuilder_ != null) { generationConfigBuilder_.dispose(); @@ -1153,18 +1227,18 @@ private void buildPartialRepeatedFields( result.contents_ = contentsBuilder_.build(); } if (toolsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { tools_ = java.util.Collections.unmodifiableList(tools_); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); } result.tools_ = tools_; } else { result.tools_ = toolsBuilder_.build(); } if (safetySettingsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { safetySettings_ = java.util.Collections.unmodifiableList(safetySettings_); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); } result.safetySettings_ = safetySettings_; } else { @@ -1185,15 +1259,18 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.GenerateContentRequest : systemInstructionBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { + result.cachedContent_ = cachedContent_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { result.toolConfig_ = toolConfigBuilder_ == null ? toolConfig_ : toolConfigBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.generationConfig_ = generationConfigBuilder_ == null ? generationConfig_ : generationConfigBuilder_.build(); to_bitField0_ |= 0x00000004; @@ -1282,11 +1359,16 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GenerateContentRequest o if (other.hasSystemInstruction()) { mergeSystemInstruction(other.getSystemInstruction()); } + if (!other.getCachedContent().isEmpty()) { + cachedContent_ = other.cachedContent_; + bitField0_ |= 0x00000008; + onChanged(); + } if (toolsBuilder_ == null) { if (!other.tools_.isEmpty()) { if (tools_.isEmpty()) { tools_ = other.tools_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensureToolsIsMutable(); tools_.addAll(other.tools_); @@ -1299,7 +1381,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GenerateContentRequest o toolsBuilder_.dispose(); toolsBuilder_ = null; tools_ = other.tools_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); toolsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getToolsFieldBuilder() @@ -1313,12 +1395,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GenerateContentRequest o mergeToolConfig(other.getToolConfig()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; if (safetySettingsBuilder_ == null) { if (!other.safetySettings_.isEmpty()) { if (safetySettings_.isEmpty()) { safetySettings_ = other.safetySettings_; - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); } else { ensureSafetySettingsIsMutable(); safetySettings_.addAll(other.safetySettings_); @@ -1331,7 +1413,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GenerateContentRequest o safetySettingsBuilder_.dispose(); safetySettingsBuilder_ = null; safetySettings_ = other.safetySettings_; - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); safetySettingsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSafetySettingsFieldBuilder() @@ -1400,7 +1482,7 @@ public Builder mergeFrom( { input.readMessage( getGenerationConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 34 case 42: @@ -1425,7 +1507,7 @@ public Builder mergeFrom( case 58: { input.readMessage(getToolConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 58 case 66: @@ -1435,6 +1517,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 66 + case 74: + { + cachedContent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 74 case 82: { com.google.protobuf.MapEntry labels__ = @@ -1444,7 +1532,7 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 82 default: @@ -2285,13 +2373,149 @@ public com.google.cloud.aiplatform.v1.ContentOrBuilder getSystemInstructionOrBui return systemInstructionBuilder_; } + private java.lang.Object cachedContent_ = ""; + /** + * + * + *
+     * Optional. The name of the cached content used as context to serve the
+     * prediction. Note: only used in explicit caching, where users can have
+     * control over caching (e.g. what content to cache) and enjoy guaranteed cost
+     * savings. Format:
+     * `projects/{project}/locations/{location}/cachedContents/{cachedContent}`
+     * 
+ * + * + * string cached_content = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cachedContent. + */ + public java.lang.String getCachedContent() { + java.lang.Object ref = cachedContent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cachedContent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The name of the cached content used as context to serve the
+     * prediction. Note: only used in explicit caching, where users can have
+     * control over caching (e.g. what content to cache) and enjoy guaranteed cost
+     * savings. Format:
+     * `projects/{project}/locations/{location}/cachedContents/{cachedContent}`
+     * 
+ * + * + * string cached_content = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cachedContent. + */ + public com.google.protobuf.ByteString getCachedContentBytes() { + java.lang.Object ref = cachedContent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cachedContent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The name of the cached content used as context to serve the
+     * prediction. Note: only used in explicit caching, where users can have
+     * control over caching (e.g. what content to cache) and enjoy guaranteed cost
+     * savings. Format:
+     * `projects/{project}/locations/{location}/cachedContents/{cachedContent}`
+     * 
+ * + * + * string cached_content = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The cachedContent to set. + * @return This builder for chaining. + */ + public Builder setCachedContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cachedContent_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The name of the cached content used as context to serve the
+     * prediction. Note: only used in explicit caching, where users can have
+     * control over caching (e.g. what content to cache) and enjoy guaranteed cost
+     * savings. Format:
+     * `projects/{project}/locations/{location}/cachedContents/{cachedContent}`
+     * 
+ * + * + * string cached_content = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCachedContent() { + cachedContent_ = getDefaultInstance().getCachedContent(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The name of the cached content used as context to serve the
+     * prediction. Note: only used in explicit caching, where users can have
+     * control over caching (e.g. what content to cache) and enjoy guaranteed cost
+     * savings. Format:
+     * `projects/{project}/locations/{location}/cachedContents/{cachedContent}`
+     * 
+ * + * + * string cached_content = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for cachedContent to set. + * @return This builder for chaining. + */ + public Builder setCachedContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cachedContent_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + private java.util.List tools_ = java.util.Collections.emptyList(); private void ensureToolsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { + if (!((bitField0_ & 0x00000010) != 0)) { tools_ = new java.util.ArrayList(tools_); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; } } @@ -2583,7 +2807,7 @@ public Builder addAllTools( public Builder clearTools() { if (toolsBuilder_ == null) { tools_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { toolsBuilder_.clear(); @@ -2753,7 +2977,7 @@ public java.util.List getToolsBuild com.google.cloud.aiplatform.v1.Tool, com.google.cloud.aiplatform.v1.Tool.Builder, com.google.cloud.aiplatform.v1.ToolOrBuilder>( - tools_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + tools_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); tools_ = null; } return toolsBuilder_; @@ -2780,7 +3004,7 @@ public java.util.List getToolsBuild * @return Whether the toolConfig field is set. */ public boolean hasToolConfig() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -2826,7 +3050,7 @@ public Builder setToolConfig(com.google.cloud.aiplatform.v1.ToolConfig value) { } else { toolConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2849,7 +3073,7 @@ public Builder setToolConfig( } else { toolConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2867,7 +3091,7 @@ public Builder setToolConfig( */ public Builder mergeToolConfig(com.google.cloud.aiplatform.v1.ToolConfig value) { if (toolConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) + if (((bitField0_ & 0x00000020) != 0) && toolConfig_ != null && toolConfig_ != com.google.cloud.aiplatform.v1.ToolConfig.getDefaultInstance()) { getToolConfigBuilder().mergeFrom(value); @@ -2878,7 +3102,7 @@ public Builder mergeToolConfig(com.google.cloud.aiplatform.v1.ToolConfig value) toolConfigBuilder_.mergeFrom(value); } if (toolConfig_ != null) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } return this; @@ -2896,7 +3120,7 @@ public Builder mergeToolConfig(com.google.cloud.aiplatform.v1.ToolConfig value) * */ public Builder clearToolConfig() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); toolConfig_ = null; if (toolConfigBuilder_ != null) { toolConfigBuilder_.dispose(); @@ -2918,7 +3142,7 @@ public Builder clearToolConfig() { * */ public com.google.cloud.aiplatform.v1.ToolConfig.Builder getToolConfigBuilder() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return getToolConfigFieldBuilder().getBuilder(); } @@ -2989,7 +3213,7 @@ private com.google.protobuf.MapField interna if (!labels_.isMutable()) { labels_ = labels_.copy(); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return labels_; } @@ -3098,7 +3322,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -3127,7 +3351,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; return internalGetMutableLabels().getMutableMap(); } /** @@ -3153,7 +3377,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_ |= 0x00000040; return this; } /** @@ -3173,7 +3397,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_ |= 0x00000040; return this; } @@ -3181,10 +3405,10 @@ public Builder putAllLabels(java.util.Map va java.util.Collections.emptyList(); private void ensureSafetySettingsIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { + if (!((bitField0_ & 0x00000080) != 0)) { safetySettings_ = new java.util.ArrayList(safetySettings_); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; } } @@ -3435,7 +3659,7 @@ public Builder addAllSafetySettings( public Builder clearSafetySettings() { if (safetySettingsBuilder_ == null) { safetySettings_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { safetySettingsBuilder_.clear(); @@ -3582,7 +3806,7 @@ public com.google.cloud.aiplatform.v1.SafetySetting.Builder addSafetySettingsBui com.google.cloud.aiplatform.v1.SafetySetting.Builder, com.google.cloud.aiplatform.v1.SafetySettingOrBuilder>( safetySettings_, - ((bitField0_ & 0x00000040) != 0), + ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); safetySettings_ = null; @@ -3610,7 +3834,7 @@ public com.google.cloud.aiplatform.v1.SafetySetting.Builder addSafetySettingsBui * @return Whether the generationConfig field is set. */ public boolean hasGenerationConfig() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -3654,7 +3878,7 @@ public Builder setGenerationConfig(com.google.cloud.aiplatform.v1.GenerationConf } else { generationConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3676,7 +3900,7 @@ public Builder setGenerationConfig( } else { generationConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3693,7 +3917,7 @@ public Builder setGenerationConfig( */ public Builder mergeGenerationConfig(com.google.cloud.aiplatform.v1.GenerationConfig value) { if (generationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) + if (((bitField0_ & 0x00000100) != 0) && generationConfig_ != null && generationConfig_ != com.google.cloud.aiplatform.v1.GenerationConfig.getDefaultInstance()) { @@ -3705,7 +3929,7 @@ public Builder mergeGenerationConfig(com.google.cloud.aiplatform.v1.GenerationCo generationConfigBuilder_.mergeFrom(value); } if (generationConfig_ != null) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -3722,7 +3946,7 @@ public Builder mergeGenerationConfig(com.google.cloud.aiplatform.v1.GenerationCo * */ public Builder clearGenerationConfig() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); generationConfig_ = null; if (generationConfigBuilder_ != null) { generationConfigBuilder_.dispose(); @@ -3743,7 +3967,7 @@ public Builder clearGenerationConfig() { * */ public com.google.cloud.aiplatform.v1.GenerationConfig.Builder getGenerationConfigBuilder() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return getGenerationConfigFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerateContentRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerateContentRequestOrBuilder.java index 1c2806c44760..0ca310e7144d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerateContentRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerateContentRequestOrBuilder.java @@ -192,6 +192,43 @@ public interface GenerateContentRequestOrBuilder */ com.google.cloud.aiplatform.v1.ContentOrBuilder getSystemInstructionOrBuilder(); + /** + * + * + *
+   * Optional. The name of the cached content used as context to serve the
+   * prediction. Note: only used in explicit caching, where users can have
+   * control over caching (e.g. what content to cache) and enjoy guaranteed cost
+   * savings. Format:
+   * `projects/{project}/locations/{location}/cachedContents/{cachedContent}`
+   * 
+ * + * + * string cached_content = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cachedContent. + */ + java.lang.String getCachedContent(); + /** + * + * + *
+   * Optional. The name of the cached content used as context to serve the
+   * prediction. Note: only used in explicit caching, where users can have
+   * control over caching (e.g. what content to cache) and enjoy guaranteed cost
+   * savings. Format:
+   * `projects/{project}/locations/{location}/cachedContents/{cachedContent}`
+   * 
+ * + * + * string cached_content = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cachedContent. + */ + com.google.protobuf.ByteString getCachedContentBytes(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerateContentResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerateContentResponse.java index 739b1c1547d3..c3815fe745d5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerateContentResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerateContentResponse.java @@ -1796,6 +1796,216 @@ public interface UsageMetadataOrBuilder * @return The totalTokenCount. */ int getTotalTokenCount(); + + /** + * + * + *
+     * Output only. Number of tokens in the cached part in the input (the cached
+     * content).
+     * 
+ * + * int32 cached_content_token_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The cachedContentTokenCount. + */ + int getCachedContentTokenCount(); + + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getPromptTokensDetailsList(); + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.ModalityTokenCount getPromptTokensDetails(int index); + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getPromptTokensDetailsCount(); + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getPromptTokensDetailsOrBuilderList(); + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder getPromptTokensDetailsOrBuilder( + int index); + + /** + * + * + *
+     * Output only. List of modalities of the cached content in the request
+     * input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getCacheTokensDetailsList(); + /** + * + * + *
+     * Output only. List of modalities of the cached content in the request
+     * input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.ModalityTokenCount getCacheTokensDetails(int index); + /** + * + * + *
+     * Output only. List of modalities of the cached content in the request
+     * input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getCacheTokensDetailsCount(); + /** + * + * + *
+     * Output only. List of modalities of the cached content in the request
+     * input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getCacheTokensDetailsOrBuilderList(); + /** + * + * + *
+     * Output only. List of modalities of the cached content in the request
+     * input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder getCacheTokensDetailsOrBuilder( + int index); + + /** + * + * + *
+     * Output only. List of modalities that were returned in the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getCandidatesTokensDetailsList(); + /** + * + * + *
+     * Output only. List of modalities that were returned in the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.ModalityTokenCount getCandidatesTokensDetails(int index); + /** + * + * + *
+     * Output only. List of modalities that were returned in the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getCandidatesTokensDetailsCount(); + /** + * + * + *
+     * Output only. List of modalities that were returned in the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getCandidatesTokensDetailsOrBuilderList(); + /** + * + * + *
+     * Output only. List of modalities that were returned in the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder getCandidatesTokensDetailsOrBuilder( + int index); } /** * @@ -1816,7 +2026,11 @@ private UsageMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) super(builder); } - private UsageMetadata() {} + private UsageMetadata() { + promptTokensDetails_ = java.util.Collections.emptyList(); + cacheTokensDetails_ = java.util.Collections.emptyList(); + candidatesTokensDetails_ = java.util.Collections.emptyList(); + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -1895,76 +2109,386 @@ public int getTotalTokenCount() { return totalTokenCount_; } - private byte memoizedIsInitialized = -1; - + public static final int CACHED_CONTENT_TOKEN_COUNT_FIELD_NUMBER = 5; + private int cachedContentTokenCount_ = 0; + /** + * + * + *
+     * Output only. Number of tokens in the cached part in the input (the cached
+     * content).
+     * 
+ * + * int32 cached_content_token_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The cachedContentTokenCount. + */ @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 int getCachedContentTokenCount() { + return cachedContentTokenCount_; } + public static final int PROMPT_TOKENS_DETAILS_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private java.util.List promptTokensDetails_; + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (promptTokenCount_ != 0) { - output.writeInt32(1, promptTokenCount_); - } - if (candidatesTokenCount_ != 0) { - output.writeInt32(2, candidatesTokenCount_); - } - if (totalTokenCount_ != 0) { - output.writeInt32(3, totalTokenCount_); - } - getUnknownFields().writeTo(output); + public java.util.List + getPromptTokensDetailsList() { + return promptTokensDetails_; } - + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (promptTokenCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, promptTokenCount_); - } - if (candidatesTokenCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, candidatesTokenCount_); - } - if (totalTokenCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalTokenCount_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; + public java.util.List + getPromptTokensDetailsOrBuilderList() { + return promptTokensDetails_; } - + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.aiplatform.v1.GenerateContentResponse.UsageMetadata)) { - return super.equals(obj); - } - com.google.cloud.aiplatform.v1.GenerateContentResponse.UsageMetadata other = - (com.google.cloud.aiplatform.v1.GenerateContentResponse.UsageMetadata) obj; - - if (getPromptTokenCount() != other.getPromptTokenCount()) return false; - if (getCandidatesTokenCount() != other.getCandidatesTokenCount()) return false; - if (getTotalTokenCount() != other.getTotalTokenCount()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; + public int getPromptTokensDetailsCount() { + return promptTokensDetails_.size(); } - + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; + public com.google.cloud.aiplatform.v1.ModalityTokenCount getPromptTokensDetails(int index) { + return promptTokensDetails_.get(index); + } + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder + getPromptTokensDetailsOrBuilder(int index) { + return promptTokensDetails_.get(index); + } + + public static final int CACHE_TOKENS_DETAILS_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private java.util.List cacheTokensDetails_; + /** + * + * + *
+     * Output only. List of modalities of the cached content in the request
+     * input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getCacheTokensDetailsList() { + return cacheTokensDetails_; + } + /** + * + * + *
+     * Output only. List of modalities of the cached content in the request
+     * input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getCacheTokensDetailsOrBuilderList() { + return cacheTokensDetails_; + } + /** + * + * + *
+     * Output only. List of modalities of the cached content in the request
+     * input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getCacheTokensDetailsCount() { + return cacheTokensDetails_.size(); + } + /** + * + * + *
+     * Output only. List of modalities of the cached content in the request
+     * input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ModalityTokenCount getCacheTokensDetails(int index) { + return cacheTokensDetails_.get(index); + } + /** + * + * + *
+     * Output only. List of modalities of the cached content in the request
+     * input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder + getCacheTokensDetailsOrBuilder(int index) { + return cacheTokensDetails_.get(index); + } + + public static final int CANDIDATES_TOKENS_DETAILS_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private java.util.List + candidatesTokensDetails_; + /** + * + * + *
+     * Output only. List of modalities that were returned in the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getCandidatesTokensDetailsList() { + return candidatesTokensDetails_; + } + /** + * + * + *
+     * Output only. List of modalities that were returned in the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getCandidatesTokensDetailsOrBuilderList() { + return candidatesTokensDetails_; + } + /** + * + * + *
+     * Output only. List of modalities that were returned in the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getCandidatesTokensDetailsCount() { + return candidatesTokensDetails_.size(); + } + /** + * + * + *
+     * Output only. List of modalities that were returned in the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ModalityTokenCount getCandidatesTokensDetails(int index) { + return candidatesTokensDetails_.get(index); + } + /** + * + * + *
+     * Output only. List of modalities that were returned in the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder + getCandidatesTokensDetailsOrBuilder(int index) { + return candidatesTokensDetails_.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 (promptTokenCount_ != 0) { + output.writeInt32(1, promptTokenCount_); + } + if (candidatesTokenCount_ != 0) { + output.writeInt32(2, candidatesTokenCount_); + } + if (totalTokenCount_ != 0) { + output.writeInt32(3, totalTokenCount_); + } + if (cachedContentTokenCount_ != 0) { + output.writeInt32(5, cachedContentTokenCount_); + } + for (int i = 0; i < promptTokensDetails_.size(); i++) { + output.writeMessage(9, promptTokensDetails_.get(i)); + } + for (int i = 0; i < cacheTokensDetails_.size(); i++) { + output.writeMessage(10, cacheTokensDetails_.get(i)); + } + for (int i = 0; i < candidatesTokensDetails_.size(); i++) { + output.writeMessage(11, candidatesTokensDetails_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (promptTokenCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, promptTokenCount_); + } + if (candidatesTokenCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, candidatesTokenCount_); + } + if (totalTokenCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalTokenCount_); + } + if (cachedContentTokenCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, cachedContentTokenCount_); + } + for (int i = 0; i < promptTokensDetails_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, promptTokensDetails_.get(i)); + } + for (int i = 0; i < cacheTokensDetails_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, cacheTokensDetails_.get(i)); + } + for (int i = 0; i < candidatesTokensDetails_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, candidatesTokensDetails_.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.GenerateContentResponse.UsageMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.GenerateContentResponse.UsageMetadata other = + (com.google.cloud.aiplatform.v1.GenerateContentResponse.UsageMetadata) obj; + + if (getPromptTokenCount() != other.getPromptTokenCount()) return false; + if (getCandidatesTokenCount() != other.getCandidatesTokenCount()) return false; + if (getTotalTokenCount() != other.getTotalTokenCount()) return false; + if (getCachedContentTokenCount() != other.getCachedContentTokenCount()) return false; + if (!getPromptTokensDetailsList().equals(other.getPromptTokensDetailsList())) return false; + if (!getCacheTokensDetailsList().equals(other.getCacheTokensDetailsList())) return false; + if (!getCandidatesTokensDetailsList().equals(other.getCandidatesTokensDetailsList())) + return false; + if (!getUnknownFields().equals(other.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) + PROMPT_TOKEN_COUNT_FIELD_NUMBER; hash = (53 * hash) + getPromptTokenCount(); @@ -1972,6 +2496,20 @@ public int hashCode() { hash = (53 * hash) + getCandidatesTokenCount(); hash = (37 * hash) + TOTAL_TOKEN_COUNT_FIELD_NUMBER; hash = (53 * hash) + getTotalTokenCount(); + hash = (37 * hash) + CACHED_CONTENT_TOKEN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getCachedContentTokenCount(); + if (getPromptTokensDetailsCount() > 0) { + hash = (37 * hash) + PROMPT_TOKENS_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getPromptTokensDetailsList().hashCode(); + } + if (getCacheTokensDetailsCount() > 0) { + hash = (37 * hash) + CACHE_TOKENS_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getCacheTokensDetailsList().hashCode(); + } + if (getCandidatesTokensDetailsCount() > 0) { + hash = (37 * hash) + CANDIDATES_TOKENS_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getCandidatesTokensDetailsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2119,6 +2657,28 @@ public Builder clear() { promptTokenCount_ = 0; candidatesTokenCount_ = 0; totalTokenCount_ = 0; + cachedContentTokenCount_ = 0; + if (promptTokensDetailsBuilder_ == null) { + promptTokensDetails_ = java.util.Collections.emptyList(); + } else { + promptTokensDetails_ = null; + promptTokensDetailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + if (cacheTokensDetailsBuilder_ == null) { + cacheTokensDetails_ = java.util.Collections.emptyList(); + } else { + cacheTokensDetails_ = null; + cacheTokensDetailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + if (candidatesTokensDetailsBuilder_ == null) { + candidatesTokensDetails_ = java.util.Collections.emptyList(); + } else { + candidatesTokensDetails_ = null; + candidatesTokensDetailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); return this; } @@ -2149,6 +2709,7 @@ public com.google.cloud.aiplatform.v1.GenerateContentResponse.UsageMetadata buil public com.google.cloud.aiplatform.v1.GenerateContentResponse.UsageMetadata buildPartial() { com.google.cloud.aiplatform.v1.GenerateContentResponse.UsageMetadata result = new com.google.cloud.aiplatform.v1.GenerateContentResponse.UsageMetadata(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -2156,6 +2717,38 @@ public com.google.cloud.aiplatform.v1.GenerateContentResponse.UsageMetadata buil return result; } + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.GenerateContentResponse.UsageMetadata result) { + if (promptTokensDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + promptTokensDetails_ = java.util.Collections.unmodifiableList(promptTokensDetails_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.promptTokensDetails_ = promptTokensDetails_; + } else { + result.promptTokensDetails_ = promptTokensDetailsBuilder_.build(); + } + if (cacheTokensDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + cacheTokensDetails_ = java.util.Collections.unmodifiableList(cacheTokensDetails_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.cacheTokensDetails_ = cacheTokensDetails_; + } else { + result.cacheTokensDetails_ = cacheTokensDetailsBuilder_.build(); + } + if (candidatesTokensDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + candidatesTokensDetails_ = + java.util.Collections.unmodifiableList(candidatesTokensDetails_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.candidatesTokensDetails_ = candidatesTokensDetails_; + } else { + result.candidatesTokensDetails_ = candidatesTokensDetailsBuilder_.build(); + } + } + private void buildPartial0( com.google.cloud.aiplatform.v1.GenerateContentResponse.UsageMetadata result) { int from_bitField0_ = bitField0_; @@ -2168,6 +2761,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000004) != 0)) { result.totalTokenCount_ = totalTokenCount_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.cachedContentTokenCount_ = cachedContentTokenCount_; + } } @java.lang.Override @@ -2230,32 +2826,116 @@ public Builder mergeFrom( if (other.getTotalTokenCount() != 0) { setTotalTokenCount(other.getTotalTokenCount()); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + if (other.getCachedContentTokenCount() != 0) { + setCachedContentTokenCount(other.getCachedContentTokenCount()); } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; + if (promptTokensDetailsBuilder_ == null) { + if (!other.promptTokensDetails_.isEmpty()) { + if (promptTokensDetails_.isEmpty()) { + promptTokensDetails_ = other.promptTokensDetails_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.addAll(other.promptTokensDetails_); + } + onChanged(); + } + } else { + if (!other.promptTokensDetails_.isEmpty()) { + if (promptTokensDetailsBuilder_.isEmpty()) { + promptTokensDetailsBuilder_.dispose(); + promptTokensDetailsBuilder_ = null; + promptTokensDetails_ = other.promptTokensDetails_; + bitField0_ = (bitField0_ & ~0x00000010); + promptTokensDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPromptTokensDetailsFieldBuilder() + : null; + } else { + promptTokensDetailsBuilder_.addAllMessages(other.promptTokensDetails_); + } + } + } + if (cacheTokensDetailsBuilder_ == null) { + if (!other.cacheTokensDetails_.isEmpty()) { + if (cacheTokensDetails_.isEmpty()) { + cacheTokensDetails_ = other.cacheTokensDetails_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureCacheTokensDetailsIsMutable(); + cacheTokensDetails_.addAll(other.cacheTokensDetails_); + } + onChanged(); + } + } else { + if (!other.cacheTokensDetails_.isEmpty()) { + if (cacheTokensDetailsBuilder_.isEmpty()) { + cacheTokensDetailsBuilder_.dispose(); + cacheTokensDetailsBuilder_ = null; + cacheTokensDetails_ = other.cacheTokensDetails_; + bitField0_ = (bitField0_ & ~0x00000020); + cacheTokensDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCacheTokensDetailsFieldBuilder() + : null; + } else { + cacheTokensDetailsBuilder_.addAllMessages(other.cacheTokensDetails_); + } + } + } + if (candidatesTokensDetailsBuilder_ == null) { + if (!other.candidatesTokensDetails_.isEmpty()) { + if (candidatesTokensDetails_.isEmpty()) { + candidatesTokensDetails_ = other.candidatesTokensDetails_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureCandidatesTokensDetailsIsMutable(); + candidatesTokensDetails_.addAll(other.candidatesTokensDetails_); + } + onChanged(); + } + } else { + if (!other.candidatesTokensDetails_.isEmpty()) { + if (candidatesTokensDetailsBuilder_.isEmpty()) { + candidatesTokensDetailsBuilder_.dispose(); + candidatesTokensDetailsBuilder_ = null; + candidatesTokensDetails_ = other.candidatesTokensDetails_; + bitField0_ = (bitField0_ & ~0x00000040); + candidatesTokensDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCandidatesTokensDetailsFieldBuilder() + : null; + } else { + candidatesTokensDetailsBuilder_.addAllMessages(other.candidatesTokensDetails_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: { promptTokenCount_ = input.readInt32(); @@ -2274,6 +2954,54 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 24 + case 40: + { + cachedContentTokenCount_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 40 + case 74: + { + com.google.cloud.aiplatform.v1.ModalityTokenCount m = + input.readMessage( + com.google.cloud.aiplatform.v1.ModalityTokenCount.parser(), + extensionRegistry); + if (promptTokensDetailsBuilder_ == null) { + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.add(m); + } else { + promptTokensDetailsBuilder_.addMessage(m); + } + break; + } // case 74 + case 82: + { + com.google.cloud.aiplatform.v1.ModalityTokenCount m = + input.readMessage( + com.google.cloud.aiplatform.v1.ModalityTokenCount.parser(), + extensionRegistry); + if (cacheTokensDetailsBuilder_ == null) { + ensureCacheTokensDetailsIsMutable(); + cacheTokensDetails_.add(m); + } else { + cacheTokensDetailsBuilder_.addMessage(m); + } + break; + } // case 82 + case 90: + { + com.google.cloud.aiplatform.v1.ModalityTokenCount m = + input.readMessage( + com.google.cloud.aiplatform.v1.ModalityTokenCount.parser(), + extensionRegistry); + if (candidatesTokensDetailsBuilder_ == null) { + ensureCandidatesTokensDetailsIsMutable(); + candidatesTokensDetails_.add(m); + } else { + candidatesTokensDetailsBuilder_.addMessage(m); + } + break; + } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2458,6 +3186,1284 @@ public Builder clearTotalTokenCount() { return this; } + private int cachedContentTokenCount_; + /** + * + * + *
+       * Output only. Number of tokens in the cached part in the input (the cached
+       * content).
+       * 
+ * + * int32 cached_content_token_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The cachedContentTokenCount. + */ + @java.lang.Override + public int getCachedContentTokenCount() { + return cachedContentTokenCount_; + } + /** + * + * + *
+       * Output only. Number of tokens in the cached part in the input (the cached
+       * content).
+       * 
+ * + * int32 cached_content_token_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The cachedContentTokenCount to set. + * @return This builder for chaining. + */ + public Builder setCachedContentTokenCount(int value) { + + cachedContentTokenCount_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Number of tokens in the cached part in the input (the cached
+       * content).
+       * 
+ * + * int32 cached_content_token_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearCachedContentTokenCount() { + bitField0_ = (bitField0_ & ~0x00000008); + cachedContentTokenCount_ = 0; + onChanged(); + return this; + } + + private java.util.List + promptTokensDetails_ = java.util.Collections.emptyList(); + + private void ensurePromptTokensDetailsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + promptTokensDetails_ = + new java.util.ArrayList( + promptTokensDetails_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.ModalityTokenCount, + com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder> + promptTokensDetailsBuilder_; + + /** + * + * + *
+       * Output only. List of modalities that were processed in the request input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getPromptTokensDetailsList() { + if (promptTokensDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(promptTokensDetails_); + } else { + return promptTokensDetailsBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * Output only. List of modalities that were processed in the request input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getPromptTokensDetailsCount() { + if (promptTokensDetailsBuilder_ == null) { + return promptTokensDetails_.size(); + } else { + return promptTokensDetailsBuilder_.getCount(); + } + } + /** + * + * + *
+       * Output only. List of modalities that were processed in the request input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ModalityTokenCount getPromptTokensDetails(int index) { + if (promptTokensDetailsBuilder_ == null) { + return promptTokensDetails_.get(index); + } else { + return promptTokensDetailsBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * Output only. List of modalities that were processed in the request input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPromptTokensDetails( + int index, com.google.cloud.aiplatform.v1.ModalityTokenCount value) { + if (promptTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.set(index, value); + onChanged(); + } else { + promptTokensDetailsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities that were processed in the request input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPromptTokensDetails( + int index, com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder builderForValue) { + if (promptTokensDetailsBuilder_ == null) { + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + promptTokensDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities that were processed in the request input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPromptTokensDetails( + com.google.cloud.aiplatform.v1.ModalityTokenCount value) { + if (promptTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.add(value); + onChanged(); + } else { + promptTokensDetailsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities that were processed in the request input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPromptTokensDetails( + int index, com.google.cloud.aiplatform.v1.ModalityTokenCount value) { + if (promptTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.add(index, value); + onChanged(); + } else { + promptTokensDetailsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities that were processed in the request input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPromptTokensDetails( + com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder builderForValue) { + if (promptTokensDetailsBuilder_ == null) { + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.add(builderForValue.build()); + onChanged(); + } else { + promptTokensDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities that were processed in the request input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPromptTokensDetails( + int index, com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder builderForValue) { + if (promptTokensDetailsBuilder_ == null) { + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + promptTokensDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities that were processed in the request input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllPromptTokensDetails( + java.lang.Iterable values) { + if (promptTokensDetailsBuilder_ == null) { + ensurePromptTokensDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, promptTokensDetails_); + onChanged(); + } else { + promptTokensDetailsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities that were processed in the request input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPromptTokensDetails() { + if (promptTokensDetailsBuilder_ == null) { + promptTokensDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + promptTokensDetailsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities that were processed in the request input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removePromptTokensDetails(int index) { + if (promptTokensDetailsBuilder_ == null) { + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.remove(index); + onChanged(); + } else { + promptTokensDetailsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities that were processed in the request input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder + getPromptTokensDetailsBuilder(int index) { + return getPromptTokensDetailsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * Output only. List of modalities that were processed in the request input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder + getPromptTokensDetailsOrBuilder(int index) { + if (promptTokensDetailsBuilder_ == null) { + return promptTokensDetails_.get(index); + } else { + return promptTokensDetailsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * Output only. List of modalities that were processed in the request input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getPromptTokensDetailsOrBuilderList() { + if (promptTokensDetailsBuilder_ != null) { + return promptTokensDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(promptTokensDetails_); + } + } + /** + * + * + *
+       * Output only. List of modalities that were processed in the request input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder + addPromptTokensDetailsBuilder() { + return getPromptTokensDetailsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1.ModalityTokenCount.getDefaultInstance()); + } + /** + * + * + *
+       * Output only. List of modalities that were processed in the request input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder + addPromptTokensDetailsBuilder(int index) { + return getPromptTokensDetailsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1.ModalityTokenCount.getDefaultInstance()); + } + /** + * + * + *
+       * Output only. List of modalities that were processed in the request input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getPromptTokensDetailsBuilderList() { + return getPromptTokensDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.ModalityTokenCount, + com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder> + getPromptTokensDetailsFieldBuilder() { + if (promptTokensDetailsBuilder_ == null) { + promptTokensDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.ModalityTokenCount, + com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder>( + promptTokensDetails_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + promptTokensDetails_ = null; + } + return promptTokensDetailsBuilder_; + } + + private java.util.List + cacheTokensDetails_ = java.util.Collections.emptyList(); + + private void ensureCacheTokensDetailsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + cacheTokensDetails_ = + new java.util.ArrayList( + cacheTokensDetails_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.ModalityTokenCount, + com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder> + cacheTokensDetailsBuilder_; + + /** + * + * + *
+       * Output only. List of modalities of the cached content in the request
+       * input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getCacheTokensDetailsList() { + if (cacheTokensDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(cacheTokensDetails_); + } else { + return cacheTokensDetailsBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * Output only. List of modalities of the cached content in the request
+       * input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getCacheTokensDetailsCount() { + if (cacheTokensDetailsBuilder_ == null) { + return cacheTokensDetails_.size(); + } else { + return cacheTokensDetailsBuilder_.getCount(); + } + } + /** + * + * + *
+       * Output only. List of modalities of the cached content in the request
+       * input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ModalityTokenCount getCacheTokensDetails(int index) { + if (cacheTokensDetailsBuilder_ == null) { + return cacheTokensDetails_.get(index); + } else { + return cacheTokensDetailsBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * Output only. List of modalities of the cached content in the request
+       * input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCacheTokensDetails( + int index, com.google.cloud.aiplatform.v1.ModalityTokenCount value) { + if (cacheTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCacheTokensDetailsIsMutable(); + cacheTokensDetails_.set(index, value); + onChanged(); + } else { + cacheTokensDetailsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities of the cached content in the request
+       * input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCacheTokensDetails( + int index, com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder builderForValue) { + if (cacheTokensDetailsBuilder_ == null) { + ensureCacheTokensDetailsIsMutable(); + cacheTokensDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + cacheTokensDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities of the cached content in the request
+       * input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCacheTokensDetails( + com.google.cloud.aiplatform.v1.ModalityTokenCount value) { + if (cacheTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCacheTokensDetailsIsMutable(); + cacheTokensDetails_.add(value); + onChanged(); + } else { + cacheTokensDetailsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities of the cached content in the request
+       * input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCacheTokensDetails( + int index, com.google.cloud.aiplatform.v1.ModalityTokenCount value) { + if (cacheTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCacheTokensDetailsIsMutable(); + cacheTokensDetails_.add(index, value); + onChanged(); + } else { + cacheTokensDetailsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities of the cached content in the request
+       * input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCacheTokensDetails( + com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder builderForValue) { + if (cacheTokensDetailsBuilder_ == null) { + ensureCacheTokensDetailsIsMutable(); + cacheTokensDetails_.add(builderForValue.build()); + onChanged(); + } else { + cacheTokensDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities of the cached content in the request
+       * input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCacheTokensDetails( + int index, com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder builderForValue) { + if (cacheTokensDetailsBuilder_ == null) { + ensureCacheTokensDetailsIsMutable(); + cacheTokensDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + cacheTokensDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities of the cached content in the request
+       * input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllCacheTokensDetails( + java.lang.Iterable values) { + if (cacheTokensDetailsBuilder_ == null) { + ensureCacheTokensDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cacheTokensDetails_); + onChanged(); + } else { + cacheTokensDetailsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities of the cached content in the request
+       * input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCacheTokensDetails() { + if (cacheTokensDetailsBuilder_ == null) { + cacheTokensDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + cacheTokensDetailsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities of the cached content in the request
+       * input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeCacheTokensDetails(int index) { + if (cacheTokensDetailsBuilder_ == null) { + ensureCacheTokensDetailsIsMutable(); + cacheTokensDetails_.remove(index); + onChanged(); + } else { + cacheTokensDetailsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities of the cached content in the request
+       * input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder getCacheTokensDetailsBuilder( + int index) { + return getCacheTokensDetailsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * Output only. List of modalities of the cached content in the request
+       * input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder + getCacheTokensDetailsOrBuilder(int index) { + if (cacheTokensDetailsBuilder_ == null) { + return cacheTokensDetails_.get(index); + } else { + return cacheTokensDetailsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * Output only. List of modalities of the cached content in the request
+       * input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getCacheTokensDetailsOrBuilderList() { + if (cacheTokensDetailsBuilder_ != null) { + return cacheTokensDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cacheTokensDetails_); + } + } + /** + * + * + *
+       * Output only. List of modalities of the cached content in the request
+       * input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder + addCacheTokensDetailsBuilder() { + return getCacheTokensDetailsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1.ModalityTokenCount.getDefaultInstance()); + } + /** + * + * + *
+       * Output only. List of modalities of the cached content in the request
+       * input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder addCacheTokensDetailsBuilder( + int index) { + return getCacheTokensDetailsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1.ModalityTokenCount.getDefaultInstance()); + } + /** + * + * + *
+       * Output only. List of modalities of the cached content in the request
+       * input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getCacheTokensDetailsBuilderList() { + return getCacheTokensDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.ModalityTokenCount, + com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder> + getCacheTokensDetailsFieldBuilder() { + if (cacheTokensDetailsBuilder_ == null) { + cacheTokensDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.ModalityTokenCount, + com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder>( + cacheTokensDetails_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + cacheTokensDetails_ = null; + } + return cacheTokensDetailsBuilder_; + } + + private java.util.List + candidatesTokensDetails_ = java.util.Collections.emptyList(); + + private void ensureCandidatesTokensDetailsIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + candidatesTokensDetails_ = + new java.util.ArrayList( + candidatesTokensDetails_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.ModalityTokenCount, + com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder> + candidatesTokensDetailsBuilder_; + + /** + * + * + *
+       * Output only. List of modalities that were returned in the response.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getCandidatesTokensDetailsList() { + if (candidatesTokensDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(candidatesTokensDetails_); + } else { + return candidatesTokensDetailsBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * Output only. List of modalities that were returned in the response.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getCandidatesTokensDetailsCount() { + if (candidatesTokensDetailsBuilder_ == null) { + return candidatesTokensDetails_.size(); + } else { + return candidatesTokensDetailsBuilder_.getCount(); + } + } + /** + * + * + *
+       * Output only. List of modalities that were returned in the response.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ModalityTokenCount getCandidatesTokensDetails( + int index) { + if (candidatesTokensDetailsBuilder_ == null) { + return candidatesTokensDetails_.get(index); + } else { + return candidatesTokensDetailsBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * Output only. List of modalities that were returned in the response.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCandidatesTokensDetails( + int index, com.google.cloud.aiplatform.v1.ModalityTokenCount value) { + if (candidatesTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCandidatesTokensDetailsIsMutable(); + candidatesTokensDetails_.set(index, value); + onChanged(); + } else { + candidatesTokensDetailsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities that were returned in the response.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCandidatesTokensDetails( + int index, com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder builderForValue) { + if (candidatesTokensDetailsBuilder_ == null) { + ensureCandidatesTokensDetailsIsMutable(); + candidatesTokensDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + candidatesTokensDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities that were returned in the response.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCandidatesTokensDetails( + com.google.cloud.aiplatform.v1.ModalityTokenCount value) { + if (candidatesTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCandidatesTokensDetailsIsMutable(); + candidatesTokensDetails_.add(value); + onChanged(); + } else { + candidatesTokensDetailsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities that were returned in the response.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCandidatesTokensDetails( + int index, com.google.cloud.aiplatform.v1.ModalityTokenCount value) { + if (candidatesTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCandidatesTokensDetailsIsMutable(); + candidatesTokensDetails_.add(index, value); + onChanged(); + } else { + candidatesTokensDetailsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities that were returned in the response.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCandidatesTokensDetails( + com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder builderForValue) { + if (candidatesTokensDetailsBuilder_ == null) { + ensureCandidatesTokensDetailsIsMutable(); + candidatesTokensDetails_.add(builderForValue.build()); + onChanged(); + } else { + candidatesTokensDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities that were returned in the response.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCandidatesTokensDetails( + int index, com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder builderForValue) { + if (candidatesTokensDetailsBuilder_ == null) { + ensureCandidatesTokensDetailsIsMutable(); + candidatesTokensDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + candidatesTokensDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities that were returned in the response.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllCandidatesTokensDetails( + java.lang.Iterable values) { + if (candidatesTokensDetailsBuilder_ == null) { + ensureCandidatesTokensDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, candidatesTokensDetails_); + onChanged(); + } else { + candidatesTokensDetailsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities that were returned in the response.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCandidatesTokensDetails() { + if (candidatesTokensDetailsBuilder_ == null) { + candidatesTokensDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + candidatesTokensDetailsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities that were returned in the response.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeCandidatesTokensDetails(int index) { + if (candidatesTokensDetailsBuilder_ == null) { + ensureCandidatesTokensDetailsIsMutable(); + candidatesTokensDetails_.remove(index); + onChanged(); + } else { + candidatesTokensDetailsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities that were returned in the response.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder + getCandidatesTokensDetailsBuilder(int index) { + return getCandidatesTokensDetailsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * Output only. List of modalities that were returned in the response.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder + getCandidatesTokensDetailsOrBuilder(int index) { + if (candidatesTokensDetailsBuilder_ == null) { + return candidatesTokensDetails_.get(index); + } else { + return candidatesTokensDetailsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * Output only. List of modalities that were returned in the response.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getCandidatesTokensDetailsOrBuilderList() { + if (candidatesTokensDetailsBuilder_ != null) { + return candidatesTokensDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(candidatesTokensDetails_); + } + } + /** + * + * + *
+       * Output only. List of modalities that were returned in the response.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder + addCandidatesTokensDetailsBuilder() { + return getCandidatesTokensDetailsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1.ModalityTokenCount.getDefaultInstance()); + } + /** + * + * + *
+       * Output only. List of modalities that were returned in the response.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder + addCandidatesTokensDetailsBuilder(int index) { + return getCandidatesTokensDetailsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1.ModalityTokenCount.getDefaultInstance()); + } + /** + * + * + *
+       * Output only. List of modalities that were returned in the response.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getCandidatesTokensDetailsBuilderList() { + return getCandidatesTokensDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.ModalityTokenCount, + com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder> + getCandidatesTokensDetailsFieldBuilder() { + if (candidatesTokensDetailsBuilder_ == null) { + candidatesTokensDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.ModalityTokenCount, + com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder>( + candidatesTokensDetails_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + candidatesTokensDetails_ = null; + } + return candidatesTokensDetailsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetCachedContentRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetCachedContentRequest.java new file mode 100644 index 000000000000..86d613c25538 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetCachedContentRequest.java @@ -0,0 +1,642 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/gen_ai_cache_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for
+ * [GenAiCacheService.GetCachedContent][google.cloud.aiplatform.v1.GenAiCacheService.GetCachedContent].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.GetCachedContentRequest} + */ +public final class GetCachedContentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.GetCachedContentRequest) + GetCachedContentRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetCachedContentRequest.newBuilder() to construct. + private GetCachedContentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetCachedContentRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetCachedContentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.GenAiCacheServiceProto + .internal_static_google_cloud_aiplatform_v1_GetCachedContentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.GenAiCacheServiceProto + .internal_static_google_cloud_aiplatform_v1_GetCachedContentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.GetCachedContentRequest.class, + com.google.cloud.aiplatform.v1.GetCachedContentRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The resource name referring to the cached content
+   * 
+ * + * + * 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 referring to the cached content
+   * 
+ * + * + * 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.GetCachedContentRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.GetCachedContentRequest other = + (com.google.cloud.aiplatform.v1.GetCachedContentRequest) 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.GetCachedContentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.GetCachedContentRequest parseFrom( + 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.GetCachedContentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.GetCachedContentRequest parseFrom( + com.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.GetCachedContentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.GetCachedContentRequest 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.GetCachedContentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.GetCachedContentRequest parseFrom( + java.io.InputStream 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.GetCachedContentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.GetCachedContentRequest parseDelimitedFrom( + java.io.InputStream 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.GetCachedContentRequest 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.GetCachedContentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.GetCachedContentRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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
+   * [GenAiCacheService.GetCachedContent][google.cloud.aiplatform.v1.GenAiCacheService.GetCachedContent].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.GetCachedContentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.GetCachedContentRequest) + com.google.cloud.aiplatform.v1.GetCachedContentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.GenAiCacheServiceProto + .internal_static_google_cloud_aiplatform_v1_GetCachedContentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.GenAiCacheServiceProto + .internal_static_google_cloud_aiplatform_v1_GetCachedContentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.GetCachedContentRequest.class, + com.google.cloud.aiplatform.v1.GetCachedContentRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.GetCachedContentRequest.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.GenAiCacheServiceProto + .internal_static_google_cloud_aiplatform_v1_GetCachedContentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GetCachedContentRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.GetCachedContentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GetCachedContentRequest build() { + com.google.cloud.aiplatform.v1.GetCachedContentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GetCachedContentRequest buildPartial() { + com.google.cloud.aiplatform.v1.GetCachedContentRequest result = + new com.google.cloud.aiplatform.v1.GetCachedContentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.GetCachedContentRequest 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.GetCachedContentRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.GetCachedContentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.GetCachedContentRequest other) { + if (other == com.google.cloud.aiplatform.v1.GetCachedContentRequest.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 referring to the cached content
+     * 
+ * + * + * 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 referring to the cached content
+     * 
+ * + * + * 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 referring to the cached content
+     * 
+ * + * + * 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 referring to the cached content
+     * 
+ * + * + * 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 referring to the cached content
+     * 
+ * + * + * 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.GetCachedContentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.GetCachedContentRequest) + private static final com.google.cloud.aiplatform.v1.GetCachedContentRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.GetCachedContentRequest(); + } + + public static com.google.cloud.aiplatform.v1.GetCachedContentRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCachedContentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.GetCachedContentRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetCachedContentRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetCachedContentRequestOrBuilder.java new file mode 100644 index 000000000000..d513a8741719 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetCachedContentRequestOrBuilder.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/gen_ai_cache_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface GetCachedContentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.GetCachedContentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name referring to the cached content
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name referring to the cached content
+   * 
+ * + * + * 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/GetReasoningEngineRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetReasoningEngineRequest.java new file mode 100644 index 000000000000..21d620231ae3 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetReasoningEngineRequest.java @@ -0,0 +1,656 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/reasoning_engine_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for
+ * [ReasoningEngineService.GetReasoningEngine][google.cloud.aiplatform.v1.ReasoningEngineService.GetReasoningEngine].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.GetReasoningEngineRequest} + */ +public final class GetReasoningEngineRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.GetReasoningEngineRequest) + GetReasoningEngineRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetReasoningEngineRequest.newBuilder() to construct. + private GetReasoningEngineRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetReasoningEngineRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetReasoningEngineRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineServiceProto + .internal_static_google_cloud_aiplatform_v1_GetReasoningEngineRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineServiceProto + .internal_static_google_cloud_aiplatform_v1_GetReasoningEngineRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.GetReasoningEngineRequest.class, + com.google.cloud.aiplatform.v1.GetReasoningEngineRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the ReasoningEngine resource.
+   * 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.
+   * 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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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.GetReasoningEngineRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.GetReasoningEngineRequest other = + (com.google.cloud.aiplatform.v1.GetReasoningEngineRequest) 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.GetReasoningEngineRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.GetReasoningEngineRequest parseFrom( + 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.GetReasoningEngineRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.GetReasoningEngineRequest parseFrom( + com.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.GetReasoningEngineRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.GetReasoningEngineRequest 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.GetReasoningEngineRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.GetReasoningEngineRequest parseFrom( + java.io.InputStream 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.GetReasoningEngineRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.GetReasoningEngineRequest parseDelimitedFrom( + java.io.InputStream 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.GetReasoningEngineRequest 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.GetReasoningEngineRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.GetReasoningEngineRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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
+   * [ReasoningEngineService.GetReasoningEngine][google.cloud.aiplatform.v1.ReasoningEngineService.GetReasoningEngine].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.GetReasoningEngineRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.GetReasoningEngineRequest) + com.google.cloud.aiplatform.v1.GetReasoningEngineRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineServiceProto + .internal_static_google_cloud_aiplatform_v1_GetReasoningEngineRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineServiceProto + .internal_static_google_cloud_aiplatform_v1_GetReasoningEngineRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.GetReasoningEngineRequest.class, + com.google.cloud.aiplatform.v1.GetReasoningEngineRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.GetReasoningEngineRequest.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.ReasoningEngineServiceProto + .internal_static_google_cloud_aiplatform_v1_GetReasoningEngineRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GetReasoningEngineRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.GetReasoningEngineRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GetReasoningEngineRequest build() { + com.google.cloud.aiplatform.v1.GetReasoningEngineRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GetReasoningEngineRequest buildPartial() { + com.google.cloud.aiplatform.v1.GetReasoningEngineRequest result = + new com.google.cloud.aiplatform.v1.GetReasoningEngineRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.GetReasoningEngineRequest 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.GetReasoningEngineRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.GetReasoningEngineRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.GetReasoningEngineRequest other) { + if (other == com.google.cloud.aiplatform.v1.GetReasoningEngineRequest.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 ReasoningEngine resource.
+     * 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.
+     * 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.
+     * 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.
+     * 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.
+     * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @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.GetReasoningEngineRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.GetReasoningEngineRequest) + private static final com.google.cloud.aiplatform.v1.GetReasoningEngineRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.GetReasoningEngineRequest(); + } + + public static com.google.cloud.aiplatform.v1.GetReasoningEngineRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetReasoningEngineRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.GetReasoningEngineRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetReasoningEngineRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetReasoningEngineRequestOrBuilder.java new file mode 100644 index 000000000000..00eb3f470f7b --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetReasoningEngineRequestOrBuilder.java @@ -0,0 +1,59 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/reasoning_engine_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface GetReasoningEngineRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.GetReasoningEngineRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the ReasoningEngine resource.
+   * 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.
+   * 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(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListCachedContentsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListCachedContentsRequest.java new file mode 100644 index 000000000000..8b7b041e34e5 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListCachedContentsRequest.java @@ -0,0 +1,955 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/gen_ai_cache_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request to list CachedContents.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ListCachedContentsRequest} + */ +public final class ListCachedContentsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ListCachedContentsRequest) + ListCachedContentsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListCachedContentsRequest.newBuilder() to construct. + private ListCachedContentsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListCachedContentsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListCachedContentsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.GenAiCacheServiceProto + .internal_static_google_cloud_aiplatform_v1_ListCachedContentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.GenAiCacheServiceProto + .internal_static_google_cloud_aiplatform_v1_ListCachedContentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ListCachedContentsRequest.class, + com.google.cloud.aiplatform.v1.ListCachedContentsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The parent, which owns this collection of cached contents.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The parent, which owns this collection of cached contents.
+   * 
+ * + * + * 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 maximum number of cached contents to return. The service may
+   * return fewer than this value. If unspecified, some default (under maximum)
+   * number of items will be returned. The maximum value is 1000; values above
+   * 1000 will be coerced to 1000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * Optional. A page token, received from a previous `ListCachedContents` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListCachedContents` must
+   * match the call that provided 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. A page token, received from a previous `ListCachedContents` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListCachedContents` must
+   * match the call that provided 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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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.ListCachedContentsRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ListCachedContentsRequest other = + (com.google.cloud.aiplatform.v1.ListCachedContentsRequest) 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.ListCachedContentsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListCachedContentsRequest parseFrom( + 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.ListCachedContentsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListCachedContentsRequest parseFrom( + com.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.ListCachedContentsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListCachedContentsRequest 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.ListCachedContentsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListCachedContentsRequest parseFrom( + java.io.InputStream 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.ListCachedContentsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListCachedContentsRequest parseDelimitedFrom( + java.io.InputStream 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.ListCachedContentsRequest 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.ListCachedContentsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.ListCachedContentsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request to list CachedContents.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ListCachedContentsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ListCachedContentsRequest) + com.google.cloud.aiplatform.v1.ListCachedContentsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.GenAiCacheServiceProto + .internal_static_google_cloud_aiplatform_v1_ListCachedContentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.GenAiCacheServiceProto + .internal_static_google_cloud_aiplatform_v1_ListCachedContentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ListCachedContentsRequest.class, + com.google.cloud.aiplatform.v1.ListCachedContentsRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.ListCachedContentsRequest.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.GenAiCacheServiceProto + .internal_static_google_cloud_aiplatform_v1_ListCachedContentsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListCachedContentsRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ListCachedContentsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListCachedContentsRequest build() { + com.google.cloud.aiplatform.v1.ListCachedContentsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListCachedContentsRequest buildPartial() { + com.google.cloud.aiplatform.v1.ListCachedContentsRequest result = + new com.google.cloud.aiplatform.v1.ListCachedContentsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ListCachedContentsRequest 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.ListCachedContentsRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.ListCachedContentsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListCachedContentsRequest other) { + if (other == com.google.cloud.aiplatform.v1.ListCachedContentsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The parent, which owns this collection of cached contents.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The parent, which owns this collection of cached contents.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The parent, which owns this collection of cached contents.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent, which owns this collection of cached contents.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent, which owns this collection of cached contents.
+     * 
+ * + * + * 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 maximum number of cached contents to return. The service may
+     * return fewer than this value. If unspecified, some default (under maximum)
+     * number of items will be returned. The maximum value is 1000; values above
+     * 1000 will be coerced to 1000.
+     * 
+ * + * 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 cached contents to return. The service may
+     * return fewer than this value. If unspecified, some default (under maximum)
+     * number of items will be returned. The maximum value is 1000; values above
+     * 1000 will be coerced to 1000.
+     * 
+ * + * 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 cached contents to return. The service may
+     * return fewer than this value. If unspecified, some default (under maximum)
+     * number of items will be returned. The maximum value is 1000; values above
+     * 1000 will be coerced to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. A page token, received from a previous `ListCachedContents` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListCachedContents` must
+     * match the call that provided 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. A page token, received from a previous `ListCachedContents` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListCachedContents` must
+     * match the call that provided 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. A page token, received from a previous `ListCachedContents` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListCachedContents` must
+     * match the call that provided 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. A page token, received from a previous `ListCachedContents` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListCachedContents` must
+     * match the call that provided 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. A page token, received from a previous `ListCachedContents` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListCachedContents` must
+     * match the call that provided 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @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.ListCachedContentsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ListCachedContentsRequest) + private static final com.google.cloud.aiplatform.v1.ListCachedContentsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ListCachedContentsRequest(); + } + + public static com.google.cloud.aiplatform.v1.ListCachedContentsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCachedContentsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.ListCachedContentsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListCachedContentsRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListCachedContentsRequestOrBuilder.java new file mode 100644 index 000000000000..27d1c57bd6eb --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListCachedContentsRequestOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/gen_ai_cache_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface ListCachedContentsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ListCachedContentsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent, which owns this collection of cached contents.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent, which owns this collection of cached contents.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. The maximum number of cached contents to return. The service may
+   * return fewer than this value. If unspecified, some default (under maximum)
+   * number of items will be returned. The maximum value is 1000; values above
+   * 1000 will be coerced to 1000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A page token, received from a previous `ListCachedContents` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListCachedContents` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. A page token, received from a previous `ListCachedContents` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListCachedContents` must
+   * match the call that provided the page token.
+   * 
+ * + * 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/ListCachedContentsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListCachedContentsResponse.java new file mode 100644 index 000000000000..f0a10334e93f --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListCachedContentsResponse.java @@ -0,0 +1,1137 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/gen_ai_cache_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Response with a list of CachedContents.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ListCachedContentsResponse} + */ +public final class ListCachedContentsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ListCachedContentsResponse) + ListCachedContentsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListCachedContentsResponse.newBuilder() to construct. + private ListCachedContentsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListCachedContentsResponse() { + cachedContents_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListCachedContentsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.GenAiCacheServiceProto + .internal_static_google_cloud_aiplatform_v1_ListCachedContentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.GenAiCacheServiceProto + .internal_static_google_cloud_aiplatform_v1_ListCachedContentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ListCachedContentsResponse.class, + com.google.cloud.aiplatform.v1.ListCachedContentsResponse.Builder.class); + } + + public static final int CACHED_CONTENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List cachedContents_; + /** + * + * + *
+   * List of cached contents.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.CachedContent cached_contents = 1; + */ + @java.lang.Override + public java.util.List getCachedContentsList() { + return cachedContents_; + } + /** + * + * + *
+   * List of cached contents.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.CachedContent cached_contents = 1; + */ + @java.lang.Override + public java.util.List + getCachedContentsOrBuilderList() { + return cachedContents_; + } + /** + * + * + *
+   * List of cached contents.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.CachedContent cached_contents = 1; + */ + @java.lang.Override + public int getCachedContentsCount() { + return cachedContents_.size(); + } + /** + * + * + *
+   * List of cached contents.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.CachedContent cached_contents = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.CachedContent getCachedContents(int index) { + return cachedContents_.get(index); + } + /** + * + * + *
+   * List of cached contents.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.CachedContent cached_contents = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.CachedContentOrBuilder getCachedContentsOrBuilder( + int index) { + return cachedContents_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < cachedContents_.size(); i++) { + output.writeMessage(1, cachedContents_.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 < cachedContents_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, cachedContents_.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.ListCachedContentsResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ListCachedContentsResponse other = + (com.google.cloud.aiplatform.v1.ListCachedContentsResponse) obj; + + if (!getCachedContentsList().equals(other.getCachedContentsList())) 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 (getCachedContentsCount() > 0) { + hash = (37 * hash) + CACHED_CONTENTS_FIELD_NUMBER; + hash = (53 * hash) + getCachedContentsList().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.ListCachedContentsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListCachedContentsResponse parseFrom( + 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.ListCachedContentsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListCachedContentsResponse parseFrom( + com.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.ListCachedContentsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListCachedContentsResponse 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.ListCachedContentsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListCachedContentsResponse parseFrom( + java.io.InputStream 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.ListCachedContentsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListCachedContentsResponse parseDelimitedFrom( + java.io.InputStream 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.ListCachedContentsResponse 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.ListCachedContentsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.ListCachedContentsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 with a list of CachedContents.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ListCachedContentsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ListCachedContentsResponse) + com.google.cloud.aiplatform.v1.ListCachedContentsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.GenAiCacheServiceProto + .internal_static_google_cloud_aiplatform_v1_ListCachedContentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.GenAiCacheServiceProto + .internal_static_google_cloud_aiplatform_v1_ListCachedContentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ListCachedContentsResponse.class, + com.google.cloud.aiplatform.v1.ListCachedContentsResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.ListCachedContentsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (cachedContentsBuilder_ == null) { + cachedContents_ = java.util.Collections.emptyList(); + } else { + cachedContents_ = null; + cachedContentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.GenAiCacheServiceProto + .internal_static_google_cloud_aiplatform_v1_ListCachedContentsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListCachedContentsResponse getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ListCachedContentsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListCachedContentsResponse build() { + com.google.cloud.aiplatform.v1.ListCachedContentsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListCachedContentsResponse buildPartial() { + com.google.cloud.aiplatform.v1.ListCachedContentsResponse result = + new com.google.cloud.aiplatform.v1.ListCachedContentsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ListCachedContentsResponse result) { + if (cachedContentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + cachedContents_ = java.util.Collections.unmodifiableList(cachedContents_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.cachedContents_ = cachedContents_; + } else { + result.cachedContents_ = cachedContentsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ListCachedContentsResponse 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.ListCachedContentsResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1.ListCachedContentsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListCachedContentsResponse other) { + if (other == com.google.cloud.aiplatform.v1.ListCachedContentsResponse.getDefaultInstance()) + return this; + if (cachedContentsBuilder_ == null) { + if (!other.cachedContents_.isEmpty()) { + if (cachedContents_.isEmpty()) { + cachedContents_ = other.cachedContents_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCachedContentsIsMutable(); + cachedContents_.addAll(other.cachedContents_); + } + onChanged(); + } + } else { + if (!other.cachedContents_.isEmpty()) { + if (cachedContentsBuilder_.isEmpty()) { + cachedContentsBuilder_.dispose(); + cachedContentsBuilder_ = null; + cachedContents_ = other.cachedContents_; + bitField0_ = (bitField0_ & ~0x00000001); + cachedContentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCachedContentsFieldBuilder() + : null; + } else { + cachedContentsBuilder_.addAllMessages(other.cachedContents_); + } + } + } + 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.CachedContent m = + input.readMessage( + com.google.cloud.aiplatform.v1.CachedContent.parser(), extensionRegistry); + if (cachedContentsBuilder_ == null) { + ensureCachedContentsIsMutable(); + cachedContents_.add(m); + } else { + cachedContentsBuilder_.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 cachedContents_ = + java.util.Collections.emptyList(); + + private void ensureCachedContentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + cachedContents_ = + new java.util.ArrayList(cachedContents_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.CachedContent, + com.google.cloud.aiplatform.v1.CachedContent.Builder, + com.google.cloud.aiplatform.v1.CachedContentOrBuilder> + cachedContentsBuilder_; + + /** + * + * + *
+     * List of cached contents.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.CachedContent cached_contents = 1; + */ + public java.util.List getCachedContentsList() { + if (cachedContentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(cachedContents_); + } else { + return cachedContentsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of cached contents.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.CachedContent cached_contents = 1; + */ + public int getCachedContentsCount() { + if (cachedContentsBuilder_ == null) { + return cachedContents_.size(); + } else { + return cachedContentsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of cached contents.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.CachedContent cached_contents = 1; + */ + public com.google.cloud.aiplatform.v1.CachedContent getCachedContents(int index) { + if (cachedContentsBuilder_ == null) { + return cachedContents_.get(index); + } else { + return cachedContentsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of cached contents.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.CachedContent cached_contents = 1; + */ + public Builder setCachedContents( + int index, com.google.cloud.aiplatform.v1.CachedContent value) { + if (cachedContentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCachedContentsIsMutable(); + cachedContents_.set(index, value); + onChanged(); + } else { + cachedContentsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of cached contents.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.CachedContent cached_contents = 1; + */ + public Builder setCachedContents( + int index, com.google.cloud.aiplatform.v1.CachedContent.Builder builderForValue) { + if (cachedContentsBuilder_ == null) { + ensureCachedContentsIsMutable(); + cachedContents_.set(index, builderForValue.build()); + onChanged(); + } else { + cachedContentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of cached contents.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.CachedContent cached_contents = 1; + */ + public Builder addCachedContents(com.google.cloud.aiplatform.v1.CachedContent value) { + if (cachedContentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCachedContentsIsMutable(); + cachedContents_.add(value); + onChanged(); + } else { + cachedContentsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of cached contents.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.CachedContent cached_contents = 1; + */ + public Builder addCachedContents( + int index, com.google.cloud.aiplatform.v1.CachedContent value) { + if (cachedContentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCachedContentsIsMutable(); + cachedContents_.add(index, value); + onChanged(); + } else { + cachedContentsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of cached contents.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.CachedContent cached_contents = 1; + */ + public Builder addCachedContents( + com.google.cloud.aiplatform.v1.CachedContent.Builder builderForValue) { + if (cachedContentsBuilder_ == null) { + ensureCachedContentsIsMutable(); + cachedContents_.add(builderForValue.build()); + onChanged(); + } else { + cachedContentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of cached contents.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.CachedContent cached_contents = 1; + */ + public Builder addCachedContents( + int index, com.google.cloud.aiplatform.v1.CachedContent.Builder builderForValue) { + if (cachedContentsBuilder_ == null) { + ensureCachedContentsIsMutable(); + cachedContents_.add(index, builderForValue.build()); + onChanged(); + } else { + cachedContentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of cached contents.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.CachedContent cached_contents = 1; + */ + public Builder addAllCachedContents( + java.lang.Iterable values) { + if (cachedContentsBuilder_ == null) { + ensureCachedContentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cachedContents_); + onChanged(); + } else { + cachedContentsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of cached contents.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.CachedContent cached_contents = 1; + */ + public Builder clearCachedContents() { + if (cachedContentsBuilder_ == null) { + cachedContents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + cachedContentsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of cached contents.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.CachedContent cached_contents = 1; + */ + public Builder removeCachedContents(int index) { + if (cachedContentsBuilder_ == null) { + ensureCachedContentsIsMutable(); + cachedContents_.remove(index); + onChanged(); + } else { + cachedContentsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of cached contents.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.CachedContent cached_contents = 1; + */ + public com.google.cloud.aiplatform.v1.CachedContent.Builder getCachedContentsBuilder( + int index) { + return getCachedContentsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of cached contents.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.CachedContent cached_contents = 1; + */ + public com.google.cloud.aiplatform.v1.CachedContentOrBuilder getCachedContentsOrBuilder( + int index) { + if (cachedContentsBuilder_ == null) { + return cachedContents_.get(index); + } else { + return cachedContentsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of cached contents.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.CachedContent cached_contents = 1; + */ + public java.util.List + getCachedContentsOrBuilderList() { + if (cachedContentsBuilder_ != null) { + return cachedContentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cachedContents_); + } + } + /** + * + * + *
+     * List of cached contents.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.CachedContent cached_contents = 1; + */ + public com.google.cloud.aiplatform.v1.CachedContent.Builder addCachedContentsBuilder() { + return getCachedContentsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1.CachedContent.getDefaultInstance()); + } + /** + * + * + *
+     * List of cached contents.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.CachedContent cached_contents = 1; + */ + public com.google.cloud.aiplatform.v1.CachedContent.Builder addCachedContentsBuilder( + int index) { + return getCachedContentsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1.CachedContent.getDefaultInstance()); + } + /** + * + * + *
+     * List of cached contents.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.CachedContent cached_contents = 1; + */ + public java.util.List + getCachedContentsBuilderList() { + return getCachedContentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.CachedContent, + com.google.cloud.aiplatform.v1.CachedContent.Builder, + com.google.cloud.aiplatform.v1.CachedContentOrBuilder> + getCachedContentsFieldBuilder() { + if (cachedContentsBuilder_ == null) { + cachedContentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.CachedContent, + com.google.cloud.aiplatform.v1.CachedContent.Builder, + com.google.cloud.aiplatform.v1.CachedContentOrBuilder>( + cachedContents_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + cachedContents_ = null; + } + return cachedContentsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.ListCachedContentsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ListCachedContentsResponse) + private static final com.google.cloud.aiplatform.v1.ListCachedContentsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ListCachedContentsResponse(); + } + + public static com.google.cloud.aiplatform.v1.ListCachedContentsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCachedContentsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.ListCachedContentsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListCachedContentsResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListCachedContentsResponseOrBuilder.java new file mode 100644 index 000000000000..e71be3d2ef4f --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListCachedContentsResponseOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/gen_ai_cache_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface ListCachedContentsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ListCachedContentsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of cached contents.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.CachedContent cached_contents = 1; + */ + java.util.List getCachedContentsList(); + /** + * + * + *
+   * List of cached contents.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.CachedContent cached_contents = 1; + */ + com.google.cloud.aiplatform.v1.CachedContent getCachedContents(int index); + /** + * + * + *
+   * List of cached contents.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.CachedContent cached_contents = 1; + */ + int getCachedContentsCount(); + /** + * + * + *
+   * List of cached contents.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.CachedContent cached_contents = 1; + */ + java.util.List + getCachedContentsOrBuilderList(); + /** + * + * + *
+   * List of cached contents.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.CachedContent cached_contents = 1; + */ + com.google.cloud.aiplatform.v1.CachedContentOrBuilder getCachedContentsOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelVersionCheckpointsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelVersionCheckpointsRequest.java new file mode 100644 index 000000000000..5f22166d1da3 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelVersionCheckpointsRequest.java @@ -0,0 +1,1004 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/model_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for
+ * [ModelService.ListModelVersionCheckpoints][google.cloud.aiplatform.v1.ModelService.ListModelVersionCheckpoints].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest} + */ +public final class ListModelVersionCheckpointsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest) + ListModelVersionCheckpointsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListModelVersionCheckpointsRequest.newBuilder() to construct. + private ListModelVersionCheckpointsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListModelVersionCheckpointsRequest() { + name_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListModelVersionCheckpointsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1_ListModelVersionCheckpointsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1_ListModelVersionCheckpointsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest.class, + com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the model version to list checkpoints for.
+   * `projects/{project}/locations/{location}/models/{model}@{version}`
+   * Example: `projects/{project}/locations/{location}/models/{model}@2`
+   * or
+   * `projects/{project}/locations/{location}/models/{model}@golden`
+   * If no version ID or alias is specified, the latest version will be
+   * used.
+   * 
+ * + * + * 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 model version to list checkpoints for.
+   * `projects/{project}/locations/{location}/models/{model}@{version}`
+   * Example: `projects/{project}/locations/{location}/models/{model}@2`
+   * or
+   * `projects/{project}/locations/{location}/models/{model}@golden`
+   * If no version ID or alias is specified, the latest version will be
+   * used.
+   * 
+ * + * + * 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 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
+   * [next_page_token][google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse.next_page_token]
+   * of the previous
+   * [ListModelVersionCheckpoints][google.cloud.aiplatform.v1.ModelService.ListModelVersionCheckpoints]
+   * 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
+   * [next_page_token][google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse.next_page_token]
+   * of the previous
+   * [ListModelVersionCheckpoints][google.cloud.aiplatform.v1.ModelService.ListModelVersionCheckpoints]
+   * 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(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_); + } + 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_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.ListModelVersionCheckpointsRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest other = + (com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest) obj; + + if (!getName().equals(other.getName())) 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) + 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest parseFrom( + 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.ListModelVersionCheckpointsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest parseFrom( + com.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.ListModelVersionCheckpointsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest 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.ListModelVersionCheckpointsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest parseFrom( + java.io.InputStream 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.ListModelVersionCheckpointsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest + parseDelimitedFrom( + java.io.InputStream 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.ListModelVersionCheckpointsRequest 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.ListModelVersionCheckpointsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.ListModelVersionCheckpointsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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
+   * [ModelService.ListModelVersionCheckpoints][google.cloud.aiplatform.v1.ModelService.ListModelVersionCheckpoints].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest) + com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1_ListModelVersionCheckpointsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1_ListModelVersionCheckpointsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest.class, + com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest.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_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1_ListModelVersionCheckpointsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest build() { + com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest buildPartial() { + com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest result = + new com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest 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_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.ListModelVersionCheckpointsRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest other) { + if (other + == com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest.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(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + 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 model version to list checkpoints for.
+     * `projects/{project}/locations/{location}/models/{model}@{version}`
+     * Example: `projects/{project}/locations/{location}/models/{model}@2`
+     * or
+     * `projects/{project}/locations/{location}/models/{model}@golden`
+     * If no version ID or alias is specified, the latest version will be
+     * used.
+     * 
+ * + * + * 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 model version to list checkpoints for.
+     * `projects/{project}/locations/{location}/models/{model}@{version}`
+     * Example: `projects/{project}/locations/{location}/models/{model}@2`
+     * or
+     * `projects/{project}/locations/{location}/models/{model}@golden`
+     * If no version ID or alias is specified, the latest version will be
+     * used.
+     * 
+ * + * + * 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 model version to list checkpoints for.
+     * `projects/{project}/locations/{location}/models/{model}@{version}`
+     * Example: `projects/{project}/locations/{location}/models/{model}@2`
+     * or
+     * `projects/{project}/locations/{location}/models/{model}@golden`
+     * If no version ID or alias is specified, the latest version will be
+     * used.
+     * 
+ * + * + * 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 model version to list checkpoints for.
+     * `projects/{project}/locations/{location}/models/{model}@{version}`
+     * Example: `projects/{project}/locations/{location}/models/{model}@2`
+     * or
+     * `projects/{project}/locations/{location}/models/{model}@golden`
+     * If no version ID or alias is specified, the latest version will be
+     * used.
+     * 
+ * + * + * 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 model version to list checkpoints for.
+     * `projects/{project}/locations/{location}/models/{model}@{version}`
+     * Example: `projects/{project}/locations/{location}/models/{model}@2`
+     * or
+     * `projects/{project}/locations/{location}/models/{model}@golden`
+     * If no version ID or alias is specified, the latest version will be
+     * used.
+     * 
+ * + * + * 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 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
+     * [next_page_token][google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse.next_page_token]
+     * of the previous
+     * [ListModelVersionCheckpoints][google.cloud.aiplatform.v1.ModelService.ListModelVersionCheckpoints]
+     * 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
+     * [next_page_token][google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse.next_page_token]
+     * of the previous
+     * [ListModelVersionCheckpoints][google.cloud.aiplatform.v1.ModelService.ListModelVersionCheckpoints]
+     * 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
+     * [next_page_token][google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse.next_page_token]
+     * of the previous
+     * [ListModelVersionCheckpoints][google.cloud.aiplatform.v1.ModelService.ListModelVersionCheckpoints]
+     * 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
+     * [next_page_token][google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse.next_page_token]
+     * of the previous
+     * [ListModelVersionCheckpoints][google.cloud.aiplatform.v1.ModelService.ListModelVersionCheckpoints]
+     * 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
+     * [next_page_token][google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse.next_page_token]
+     * of the previous
+     * [ListModelVersionCheckpoints][google.cloud.aiplatform.v1.ModelService.ListModelVersionCheckpoints]
+     * 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.ListModelVersionCheckpointsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest) + private static final com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest(); + } + + public static com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListModelVersionCheckpointsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.ListModelVersionCheckpointsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelVersionCheckpointsRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelVersionCheckpointsRequestOrBuilder.java new file mode 100644 index 000000000000..69b863eb8824 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelVersionCheckpointsRequestOrBuilder.java @@ -0,0 +1,115 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/model_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface ListModelVersionCheckpointsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the model version to list checkpoints for.
+   * `projects/{project}/locations/{location}/models/{model}@{version}`
+   * Example: `projects/{project}/locations/{location}/models/{model}@2`
+   * or
+   * `projects/{project}/locations/{location}/models/{model}@golden`
+   * If no version ID or alias is specified, the latest version will be
+   * used.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the model version to list checkpoints for.
+   * `projects/{project}/locations/{location}/models/{model}@{version}`
+   * Example: `projects/{project}/locations/{location}/models/{model}@2`
+   * or
+   * `projects/{project}/locations/{location}/models/{model}@golden`
+   * If no version ID or alias is specified, the latest version will be
+   * used.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * 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
+   * [next_page_token][google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse.next_page_token]
+   * of the previous
+   * [ListModelVersionCheckpoints][google.cloud.aiplatform.v1.ModelService.ListModelVersionCheckpoints]
+   * 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
+   * [next_page_token][google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse.next_page_token]
+   * of the previous
+   * [ListModelVersionCheckpoints][google.cloud.aiplatform.v1.ModelService.ListModelVersionCheckpoints]
+   * 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/ListModelVersionCheckpointsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelVersionCheckpointsResponse.java new file mode 100644 index 000000000000..385a1e2a530d --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelVersionCheckpointsResponse.java @@ -0,0 +1,1169 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/model_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Response message for
+ * [ModelService.ListModelVersionCheckpoints][google.cloud.aiplatform.v1.ModelService.ListModelVersionCheckpoints]
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse} + */ +public final class ListModelVersionCheckpointsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse) + ListModelVersionCheckpointsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListModelVersionCheckpointsResponse.newBuilder() to construct. + private ListModelVersionCheckpointsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListModelVersionCheckpointsResponse() { + checkpoints_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListModelVersionCheckpointsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1_ListModelVersionCheckpointsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1_ListModelVersionCheckpointsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse.class, + com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse.Builder.class); + } + + public static final int CHECKPOINTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List checkpoints_; + /** + * + * + *
+   * List of Model Version checkpoints.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.ModelVersionCheckpoint checkpoints = 1; + */ + @java.lang.Override + public java.util.List + getCheckpointsList() { + return checkpoints_; + } + /** + * + * + *
+   * List of Model Version checkpoints.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.ModelVersionCheckpoint checkpoints = 1; + */ + @java.lang.Override + public java.util.List + getCheckpointsOrBuilderList() { + return checkpoints_; + } + /** + * + * + *
+   * List of Model Version checkpoints.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.ModelVersionCheckpoint checkpoints = 1; + */ + @java.lang.Override + public int getCheckpointsCount() { + return checkpoints_.size(); + } + /** + * + * + *
+   * List of Model Version checkpoints.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.ModelVersionCheckpoint checkpoints = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ModelVersionCheckpoint getCheckpoints(int index) { + return checkpoints_.get(index); + } + /** + * + * + *
+   * List of Model Version checkpoints.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.ModelVersionCheckpoint checkpoints = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ModelVersionCheckpointOrBuilder getCheckpointsOrBuilder( + int index) { + return checkpoints_.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
+   * [ListModelVersionCheckpointsRequest.page_token][google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest.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
+   * [ListModelVersionCheckpointsRequest.page_token][google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest.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 < checkpoints_.size(); i++) { + output.writeMessage(1, checkpoints_.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 < checkpoints_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, checkpoints_.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.ListModelVersionCheckpointsResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse other = + (com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse) obj; + + if (!getCheckpointsList().equals(other.getCheckpointsList())) 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 (getCheckpointsCount() > 0) { + hash = (37 * hash) + CHECKPOINTS_FIELD_NUMBER; + hash = (53 * hash) + getCheckpointsList().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.ListModelVersionCheckpointsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse parseFrom( + 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.ListModelVersionCheckpointsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse parseFrom( + com.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.ListModelVersionCheckpointsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse 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.ListModelVersionCheckpointsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse parseFrom( + java.io.InputStream 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.ListModelVersionCheckpointsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse + parseDelimitedFrom( + java.io.InputStream 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.ListModelVersionCheckpointsResponse 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.ListModelVersionCheckpointsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.ListModelVersionCheckpointsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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
+   * [ModelService.ListModelVersionCheckpoints][google.cloud.aiplatform.v1.ModelService.ListModelVersionCheckpoints]
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse) + com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1_ListModelVersionCheckpointsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1_ListModelVersionCheckpointsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse.class, + com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (checkpointsBuilder_ == null) { + checkpoints_ = java.util.Collections.emptyList(); + } else { + checkpoints_ = null; + checkpointsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1_ListModelVersionCheckpointsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse build() { + com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse buildPartial() { + com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse result = + new com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse result) { + if (checkpointsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + checkpoints_ = java.util.Collections.unmodifiableList(checkpoints_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.checkpoints_ = checkpoints_; + } else { + result.checkpoints_ = checkpointsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse 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.ListModelVersionCheckpointsResponse) { + return mergeFrom( + (com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse other) { + if (other + == com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse + .getDefaultInstance()) return this; + if (checkpointsBuilder_ == null) { + if (!other.checkpoints_.isEmpty()) { + if (checkpoints_.isEmpty()) { + checkpoints_ = other.checkpoints_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCheckpointsIsMutable(); + checkpoints_.addAll(other.checkpoints_); + } + onChanged(); + } + } else { + if (!other.checkpoints_.isEmpty()) { + if (checkpointsBuilder_.isEmpty()) { + checkpointsBuilder_.dispose(); + checkpointsBuilder_ = null; + checkpoints_ = other.checkpoints_; + bitField0_ = (bitField0_ & ~0x00000001); + checkpointsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCheckpointsFieldBuilder() + : null; + } else { + checkpointsBuilder_.addAllMessages(other.checkpoints_); + } + } + } + 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.ModelVersionCheckpoint m = + input.readMessage( + com.google.cloud.aiplatform.v1.ModelVersionCheckpoint.parser(), + extensionRegistry); + if (checkpointsBuilder_ == null) { + ensureCheckpointsIsMutable(); + checkpoints_.add(m); + } else { + checkpointsBuilder_.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 checkpoints_ = + java.util.Collections.emptyList(); + + private void ensureCheckpointsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + checkpoints_ = + new java.util.ArrayList( + checkpoints_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.ModelVersionCheckpoint, + com.google.cloud.aiplatform.v1.ModelVersionCheckpoint.Builder, + com.google.cloud.aiplatform.v1.ModelVersionCheckpointOrBuilder> + checkpointsBuilder_; + + /** + * + * + *
+     * List of Model Version checkpoints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ModelVersionCheckpoint checkpoints = 1; + */ + public java.util.List + getCheckpointsList() { + if (checkpointsBuilder_ == null) { + return java.util.Collections.unmodifiableList(checkpoints_); + } else { + return checkpointsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of Model Version checkpoints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ModelVersionCheckpoint checkpoints = 1; + */ + public int getCheckpointsCount() { + if (checkpointsBuilder_ == null) { + return checkpoints_.size(); + } else { + return checkpointsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of Model Version checkpoints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ModelVersionCheckpoint checkpoints = 1; + */ + public com.google.cloud.aiplatform.v1.ModelVersionCheckpoint getCheckpoints(int index) { + if (checkpointsBuilder_ == null) { + return checkpoints_.get(index); + } else { + return checkpointsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of Model Version checkpoints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ModelVersionCheckpoint checkpoints = 1; + */ + public Builder setCheckpoints( + int index, com.google.cloud.aiplatform.v1.ModelVersionCheckpoint value) { + if (checkpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCheckpointsIsMutable(); + checkpoints_.set(index, value); + onChanged(); + } else { + checkpointsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of Model Version checkpoints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ModelVersionCheckpoint checkpoints = 1; + */ + public Builder setCheckpoints( + int index, com.google.cloud.aiplatform.v1.ModelVersionCheckpoint.Builder builderForValue) { + if (checkpointsBuilder_ == null) { + ensureCheckpointsIsMutable(); + checkpoints_.set(index, builderForValue.build()); + onChanged(); + } else { + checkpointsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of Model Version checkpoints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ModelVersionCheckpoint checkpoints = 1; + */ + public Builder addCheckpoints(com.google.cloud.aiplatform.v1.ModelVersionCheckpoint value) { + if (checkpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCheckpointsIsMutable(); + checkpoints_.add(value); + onChanged(); + } else { + checkpointsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of Model Version checkpoints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ModelVersionCheckpoint checkpoints = 1; + */ + public Builder addCheckpoints( + int index, com.google.cloud.aiplatform.v1.ModelVersionCheckpoint value) { + if (checkpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCheckpointsIsMutable(); + checkpoints_.add(index, value); + onChanged(); + } else { + checkpointsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of Model Version checkpoints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ModelVersionCheckpoint checkpoints = 1; + */ + public Builder addCheckpoints( + com.google.cloud.aiplatform.v1.ModelVersionCheckpoint.Builder builderForValue) { + if (checkpointsBuilder_ == null) { + ensureCheckpointsIsMutable(); + checkpoints_.add(builderForValue.build()); + onChanged(); + } else { + checkpointsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of Model Version checkpoints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ModelVersionCheckpoint checkpoints = 1; + */ + public Builder addCheckpoints( + int index, com.google.cloud.aiplatform.v1.ModelVersionCheckpoint.Builder builderForValue) { + if (checkpointsBuilder_ == null) { + ensureCheckpointsIsMutable(); + checkpoints_.add(index, builderForValue.build()); + onChanged(); + } else { + checkpointsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of Model Version checkpoints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ModelVersionCheckpoint checkpoints = 1; + */ + public Builder addAllCheckpoints( + java.lang.Iterable + values) { + if (checkpointsBuilder_ == null) { + ensureCheckpointsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, checkpoints_); + onChanged(); + } else { + checkpointsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of Model Version checkpoints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ModelVersionCheckpoint checkpoints = 1; + */ + public Builder clearCheckpoints() { + if (checkpointsBuilder_ == null) { + checkpoints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + checkpointsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of Model Version checkpoints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ModelVersionCheckpoint checkpoints = 1; + */ + public Builder removeCheckpoints(int index) { + if (checkpointsBuilder_ == null) { + ensureCheckpointsIsMutable(); + checkpoints_.remove(index); + onChanged(); + } else { + checkpointsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of Model Version checkpoints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ModelVersionCheckpoint checkpoints = 1; + */ + public com.google.cloud.aiplatform.v1.ModelVersionCheckpoint.Builder getCheckpointsBuilder( + int index) { + return getCheckpointsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of Model Version checkpoints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ModelVersionCheckpoint checkpoints = 1; + */ + public com.google.cloud.aiplatform.v1.ModelVersionCheckpointOrBuilder getCheckpointsOrBuilder( + int index) { + if (checkpointsBuilder_ == null) { + return checkpoints_.get(index); + } else { + return checkpointsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of Model Version checkpoints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ModelVersionCheckpoint checkpoints = 1; + */ + public java.util.List + getCheckpointsOrBuilderList() { + if (checkpointsBuilder_ != null) { + return checkpointsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(checkpoints_); + } + } + /** + * + * + *
+     * List of Model Version checkpoints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ModelVersionCheckpoint checkpoints = 1; + */ + public com.google.cloud.aiplatform.v1.ModelVersionCheckpoint.Builder addCheckpointsBuilder() { + return getCheckpointsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1.ModelVersionCheckpoint.getDefaultInstance()); + } + /** + * + * + *
+     * List of Model Version checkpoints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ModelVersionCheckpoint checkpoints = 1; + */ + public com.google.cloud.aiplatform.v1.ModelVersionCheckpoint.Builder addCheckpointsBuilder( + int index) { + return getCheckpointsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1.ModelVersionCheckpoint.getDefaultInstance()); + } + /** + * + * + *
+     * List of Model Version checkpoints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ModelVersionCheckpoint checkpoints = 1; + */ + public java.util.List + getCheckpointsBuilderList() { + return getCheckpointsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.ModelVersionCheckpoint, + com.google.cloud.aiplatform.v1.ModelVersionCheckpoint.Builder, + com.google.cloud.aiplatform.v1.ModelVersionCheckpointOrBuilder> + getCheckpointsFieldBuilder() { + if (checkpointsBuilder_ == null) { + checkpointsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.ModelVersionCheckpoint, + com.google.cloud.aiplatform.v1.ModelVersionCheckpoint.Builder, + com.google.cloud.aiplatform.v1.ModelVersionCheckpointOrBuilder>( + checkpoints_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + checkpoints_ = null; + } + return checkpointsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * Pass to
+     * [ListModelVersionCheckpointsRequest.page_token][google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest.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
+     * [ListModelVersionCheckpointsRequest.page_token][google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest.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
+     * [ListModelVersionCheckpointsRequest.page_token][google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest.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
+     * [ListModelVersionCheckpointsRequest.page_token][google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest.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
+     * [ListModelVersionCheckpointsRequest.page_token][google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest.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.ListModelVersionCheckpointsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse) + private static final com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse(); + } + + public static com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListModelVersionCheckpointsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.ListModelVersionCheckpointsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelVersionCheckpointsResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelVersionCheckpointsResponseOrBuilder.java new file mode 100644 index 000000000000..afa62619d385 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListModelVersionCheckpointsResponseOrBuilder.java @@ -0,0 +1,109 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/model_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface ListModelVersionCheckpointsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of Model Version checkpoints.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.ModelVersionCheckpoint checkpoints = 1; + */ + java.util.List getCheckpointsList(); + /** + * + * + *
+   * List of Model Version checkpoints.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.ModelVersionCheckpoint checkpoints = 1; + */ + com.google.cloud.aiplatform.v1.ModelVersionCheckpoint getCheckpoints(int index); + /** + * + * + *
+   * List of Model Version checkpoints.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.ModelVersionCheckpoint checkpoints = 1; + */ + int getCheckpointsCount(); + /** + * + * + *
+   * List of Model Version checkpoints.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.ModelVersionCheckpoint checkpoints = 1; + */ + java.util.List + getCheckpointsOrBuilderList(); + /** + * + * + *
+   * List of Model Version checkpoints.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.ModelVersionCheckpoint checkpoints = 1; + */ + com.google.cloud.aiplatform.v1.ModelVersionCheckpointOrBuilder getCheckpointsOrBuilder(int index); + + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * Pass to
+   * [ListModelVersionCheckpointsRequest.page_token][google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest.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
+   * [ListModelVersionCheckpointsRequest.page_token][google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest.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/ListReasoningEnginesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListReasoningEnginesRequest.java new file mode 100644 index 000000000000..845695cb8d01 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListReasoningEnginesRequest.java @@ -0,0 +1,1113 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/reasoning_engine_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for
+ * [ReasoningEngineService.ListReasoningEngines][google.cloud.aiplatform.v1.ReasoningEngineService.ListReasoningEngines].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ListReasoningEnginesRequest} + */ +public final class ListReasoningEnginesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ListReasoningEnginesRequest) + ListReasoningEnginesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListReasoningEnginesRequest.newBuilder() to construct. + private ListReasoningEnginesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListReasoningEnginesRequest() { + parent_ = ""; + filter_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListReasoningEnginesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineServiceProto + .internal_static_google_cloud_aiplatform_v1_ListReasoningEnginesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineServiceProto + .internal_static_google_cloud_aiplatform_v1_ListReasoningEnginesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest.class, + com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest.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 to list the ReasoningEngines
+   * from. 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 list the ReasoningEngines
+   * from. 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 FILTER_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
+   * Optional. The standard list filter.
+   * More detail in [AIP-160](https://google.aip.dev/160).
+   * 
+ * + * string filter = 2 [(.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. The standard list filter.
+   * More detail in [AIP-160](https://google.aip.dev/160).
+   * 
+ * + * string filter = 2 [(.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 PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_ = 0; + /** + * + * + *
+   * Optional. The standard list page size.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * Optional. The standard list page token.
+   * 
+ * + * string page_token = 4 [(.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.
+   * 
+ * + * string page_token = 4 [(.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, 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.ListReasoningEnginesRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest other = + (com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().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.ListReasoningEnginesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest parseFrom( + 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.ListReasoningEnginesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest parseFrom( + com.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.ListReasoningEnginesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest 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.ListReasoningEnginesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest parseFrom( + java.io.InputStream 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.ListReasoningEnginesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest parseDelimitedFrom( + java.io.InputStream 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.ListReasoningEnginesRequest 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.ListReasoningEnginesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.ListReasoningEnginesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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
+   * [ReasoningEngineService.ListReasoningEngines][google.cloud.aiplatform.v1.ReasoningEngineService.ListReasoningEngines].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ListReasoningEnginesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ListReasoningEnginesRequest) + com.google.cloud.aiplatform.v1.ListReasoningEnginesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineServiceProto + .internal_static_google_cloud_aiplatform_v1_ListReasoningEnginesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineServiceProto + .internal_static_google_cloud_aiplatform_v1_ListReasoningEnginesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest.class, + com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + filter_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ReasoningEngineServiceProto + .internal_static_google_cloud_aiplatform_v1_ListReasoningEnginesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest build() { + com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest buildPartial() { + com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest result = + new com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 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.ListReasoningEnginesRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest other) { + if (other == com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + pageToken_ = 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 parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the Location to list the ReasoningEngines
+     * from. 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 list the ReasoningEngines
+     * from. 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 list the ReasoningEngines
+     * from. 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 list the ReasoningEngines
+     * from. 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 list the ReasoningEngines
+     * from. 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 java.lang.Object filter_ = ""; + /** + * + * + *
+     * Optional. The standard list filter.
+     * More detail in [AIP-160](https://google.aip.dev/160).
+     * 
+ * + * string filter = 2 [(.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. The standard list filter.
+     * More detail in [AIP-160](https://google.aip.dev/160).
+     * 
+ * + * string filter = 2 [(.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. The standard list filter.
+     * More detail in [AIP-160](https://google.aip.dev/160).
+     * 
+ * + * string filter = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The standard list filter.
+     * More detail in [AIP-160](https://google.aip.dev/160).
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The standard list filter.
+     * More detail in [AIP-160](https://google.aip.dev/160).
+     * 
+ * + * string filter = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional. The standard list page size.
+     * 
+ * + * int32 page_size = 3 [(.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 = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The standard list page size.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. The standard list page token.
+     * 
+ * + * string page_token = 4 [(.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.
+     * 
+ * + * string page_token = 4 [(.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.
+     * 
+ * + * string page_token = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The standard list page token.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The standard list page token.
+     * 
+ * + * string page_token = 4 [(.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_ |= 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.aiplatform.v1.ListReasoningEnginesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ListReasoningEnginesRequest) + private static final com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest(); + } + + public static com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListReasoningEnginesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.ListReasoningEnginesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListReasoningEnginesRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListReasoningEnginesRequestOrBuilder.java new file mode 100644 index 000000000000..c5da4871ecbb --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListReasoningEnginesRequestOrBuilder.java @@ -0,0 +1,122 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/reasoning_engine_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface ListReasoningEnginesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ListReasoningEnginesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Location to list the ReasoningEngines
+   * from. 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 list the ReasoningEngines
+   * from. 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 filter.
+   * More detail in [AIP-160](https://google.aip.dev/160).
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Optional. The standard list filter.
+   * More detail in [AIP-160](https://google.aip.dev/160).
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. The standard list page size.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. The standard list page token.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. The standard list page token.
+   * 
+ * + * string page_token = 4 [(.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/ListReasoningEnginesResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListReasoningEnginesResponse.java new file mode 100644 index 000000000000..2b8b701a00f1 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListReasoningEnginesResponse.java @@ -0,0 +1,1155 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/reasoning_engine_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Response message for
+ * [ReasoningEngineService.ListReasoningEngines][google.cloud.aiplatform.v1.ReasoningEngineService.ListReasoningEngines]
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ListReasoningEnginesResponse} + */ +public final class ListReasoningEnginesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ListReasoningEnginesResponse) + ListReasoningEnginesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListReasoningEnginesResponse.newBuilder() to construct. + private ListReasoningEnginesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListReasoningEnginesResponse() { + reasoningEngines_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListReasoningEnginesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineServiceProto + .internal_static_google_cloud_aiplatform_v1_ListReasoningEnginesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineServiceProto + .internal_static_google_cloud_aiplatform_v1_ListReasoningEnginesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse.class, + com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse.Builder.class); + } + + public static final int REASONING_ENGINES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List reasoningEngines_; + /** + * + * + *
+   * List of ReasoningEngines in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engines = 1; + */ + @java.lang.Override + public java.util.List getReasoningEnginesList() { + return reasoningEngines_; + } + /** + * + * + *
+   * List of ReasoningEngines in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engines = 1; + */ + @java.lang.Override + public java.util.List + getReasoningEnginesOrBuilderList() { + return reasoningEngines_; + } + /** + * + * + *
+   * List of ReasoningEngines in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engines = 1; + */ + @java.lang.Override + public int getReasoningEnginesCount() { + return reasoningEngines_.size(); + } + /** + * + * + *
+   * List of ReasoningEngines in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engines = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReasoningEngine getReasoningEngines(int index) { + return reasoningEngines_.get(index); + } + /** + * + * + *
+   * List of ReasoningEngines in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engines = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReasoningEngineOrBuilder getReasoningEnginesOrBuilder( + int index) { + return reasoningEngines_.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
+   * [ListReasoningEnginesRequest.page_token][google.cloud.aiplatform.v1.ListReasoningEnginesRequest.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
+   * [ListReasoningEnginesRequest.page_token][google.cloud.aiplatform.v1.ListReasoningEnginesRequest.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 < reasoningEngines_.size(); i++) { + output.writeMessage(1, reasoningEngines_.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 < reasoningEngines_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, reasoningEngines_.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.ListReasoningEnginesResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse other = + (com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse) obj; + + if (!getReasoningEnginesList().equals(other.getReasoningEnginesList())) 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 (getReasoningEnginesCount() > 0) { + hash = (37 * hash) + REASONING_ENGINES_FIELD_NUMBER; + hash = (53 * hash) + getReasoningEnginesList().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.ListReasoningEnginesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse parseFrom( + 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.ListReasoningEnginesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse parseFrom( + com.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.ListReasoningEnginesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse 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.ListReasoningEnginesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse parseFrom( + java.io.InputStream 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.ListReasoningEnginesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse parseDelimitedFrom( + java.io.InputStream 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.ListReasoningEnginesResponse 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.ListReasoningEnginesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.ListReasoningEnginesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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
+   * [ReasoningEngineService.ListReasoningEngines][google.cloud.aiplatform.v1.ReasoningEngineService.ListReasoningEngines]
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ListReasoningEnginesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ListReasoningEnginesResponse) + com.google.cloud.aiplatform.v1.ListReasoningEnginesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineServiceProto + .internal_static_google_cloud_aiplatform_v1_ListReasoningEnginesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineServiceProto + .internal_static_google_cloud_aiplatform_v1_ListReasoningEnginesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse.class, + com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (reasoningEnginesBuilder_ == null) { + reasoningEngines_ = java.util.Collections.emptyList(); + } else { + reasoningEngines_ = null; + reasoningEnginesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ReasoningEngineServiceProto + .internal_static_google_cloud_aiplatform_v1_ListReasoningEnginesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse build() { + com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse buildPartial() { + com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse result = + new com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse result) { + if (reasoningEnginesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + reasoningEngines_ = java.util.Collections.unmodifiableList(reasoningEngines_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.reasoningEngines_ = reasoningEngines_; + } else { + result.reasoningEngines_ = reasoningEnginesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse 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.ListReasoningEnginesResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse other) { + if (other == com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse.getDefaultInstance()) + return this; + if (reasoningEnginesBuilder_ == null) { + if (!other.reasoningEngines_.isEmpty()) { + if (reasoningEngines_.isEmpty()) { + reasoningEngines_ = other.reasoningEngines_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureReasoningEnginesIsMutable(); + reasoningEngines_.addAll(other.reasoningEngines_); + } + onChanged(); + } + } else { + if (!other.reasoningEngines_.isEmpty()) { + if (reasoningEnginesBuilder_.isEmpty()) { + reasoningEnginesBuilder_.dispose(); + reasoningEnginesBuilder_ = null; + reasoningEngines_ = other.reasoningEngines_; + bitField0_ = (bitField0_ & ~0x00000001); + reasoningEnginesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getReasoningEnginesFieldBuilder() + : null; + } else { + reasoningEnginesBuilder_.addAllMessages(other.reasoningEngines_); + } + } + } + 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.ReasoningEngine m = + input.readMessage( + com.google.cloud.aiplatform.v1.ReasoningEngine.parser(), extensionRegistry); + if (reasoningEnginesBuilder_ == null) { + ensureReasoningEnginesIsMutable(); + reasoningEngines_.add(m); + } else { + reasoningEnginesBuilder_.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 reasoningEngines_ = + java.util.Collections.emptyList(); + + private void ensureReasoningEnginesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + reasoningEngines_ = + new java.util.ArrayList( + reasoningEngines_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.ReasoningEngine, + com.google.cloud.aiplatform.v1.ReasoningEngine.Builder, + com.google.cloud.aiplatform.v1.ReasoningEngineOrBuilder> + reasoningEnginesBuilder_; + + /** + * + * + *
+     * List of ReasoningEngines in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engines = 1; + */ + public java.util.List + getReasoningEnginesList() { + if (reasoningEnginesBuilder_ == null) { + return java.util.Collections.unmodifiableList(reasoningEngines_); + } else { + return reasoningEnginesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of ReasoningEngines in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engines = 1; + */ + public int getReasoningEnginesCount() { + if (reasoningEnginesBuilder_ == null) { + return reasoningEngines_.size(); + } else { + return reasoningEnginesBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of ReasoningEngines in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engines = 1; + */ + public com.google.cloud.aiplatform.v1.ReasoningEngine getReasoningEngines(int index) { + if (reasoningEnginesBuilder_ == null) { + return reasoningEngines_.get(index); + } else { + return reasoningEnginesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of ReasoningEngines in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engines = 1; + */ + public Builder setReasoningEngines( + int index, com.google.cloud.aiplatform.v1.ReasoningEngine value) { + if (reasoningEnginesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReasoningEnginesIsMutable(); + reasoningEngines_.set(index, value); + onChanged(); + } else { + reasoningEnginesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of ReasoningEngines in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engines = 1; + */ + public Builder setReasoningEngines( + int index, com.google.cloud.aiplatform.v1.ReasoningEngine.Builder builderForValue) { + if (reasoningEnginesBuilder_ == null) { + ensureReasoningEnginesIsMutable(); + reasoningEngines_.set(index, builderForValue.build()); + onChanged(); + } else { + reasoningEnginesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of ReasoningEngines in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engines = 1; + */ + public Builder addReasoningEngines(com.google.cloud.aiplatform.v1.ReasoningEngine value) { + if (reasoningEnginesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReasoningEnginesIsMutable(); + reasoningEngines_.add(value); + onChanged(); + } else { + reasoningEnginesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of ReasoningEngines in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engines = 1; + */ + public Builder addReasoningEngines( + int index, com.google.cloud.aiplatform.v1.ReasoningEngine value) { + if (reasoningEnginesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReasoningEnginesIsMutable(); + reasoningEngines_.add(index, value); + onChanged(); + } else { + reasoningEnginesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of ReasoningEngines in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engines = 1; + */ + public Builder addReasoningEngines( + com.google.cloud.aiplatform.v1.ReasoningEngine.Builder builderForValue) { + if (reasoningEnginesBuilder_ == null) { + ensureReasoningEnginesIsMutable(); + reasoningEngines_.add(builderForValue.build()); + onChanged(); + } else { + reasoningEnginesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of ReasoningEngines in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engines = 1; + */ + public Builder addReasoningEngines( + int index, com.google.cloud.aiplatform.v1.ReasoningEngine.Builder builderForValue) { + if (reasoningEnginesBuilder_ == null) { + ensureReasoningEnginesIsMutable(); + reasoningEngines_.add(index, builderForValue.build()); + onChanged(); + } else { + reasoningEnginesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of ReasoningEngines in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engines = 1; + */ + public Builder addAllReasoningEngines( + java.lang.Iterable values) { + if (reasoningEnginesBuilder_ == null) { + ensureReasoningEnginesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, reasoningEngines_); + onChanged(); + } else { + reasoningEnginesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of ReasoningEngines in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engines = 1; + */ + public Builder clearReasoningEngines() { + if (reasoningEnginesBuilder_ == null) { + reasoningEngines_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + reasoningEnginesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of ReasoningEngines in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engines = 1; + */ + public Builder removeReasoningEngines(int index) { + if (reasoningEnginesBuilder_ == null) { + ensureReasoningEnginesIsMutable(); + reasoningEngines_.remove(index); + onChanged(); + } else { + reasoningEnginesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of ReasoningEngines in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engines = 1; + */ + public com.google.cloud.aiplatform.v1.ReasoningEngine.Builder getReasoningEnginesBuilder( + int index) { + return getReasoningEnginesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of ReasoningEngines in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engines = 1; + */ + public com.google.cloud.aiplatform.v1.ReasoningEngineOrBuilder getReasoningEnginesOrBuilder( + int index) { + if (reasoningEnginesBuilder_ == null) { + return reasoningEngines_.get(index); + } else { + return reasoningEnginesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of ReasoningEngines in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engines = 1; + */ + public java.util.List + getReasoningEnginesOrBuilderList() { + if (reasoningEnginesBuilder_ != null) { + return reasoningEnginesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(reasoningEngines_); + } + } + /** + * + * + *
+     * List of ReasoningEngines in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engines = 1; + */ + public com.google.cloud.aiplatform.v1.ReasoningEngine.Builder addReasoningEnginesBuilder() { + return getReasoningEnginesFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1.ReasoningEngine.getDefaultInstance()); + } + /** + * + * + *
+     * List of ReasoningEngines in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engines = 1; + */ + public com.google.cloud.aiplatform.v1.ReasoningEngine.Builder addReasoningEnginesBuilder( + int index) { + return getReasoningEnginesFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1.ReasoningEngine.getDefaultInstance()); + } + /** + * + * + *
+     * List of ReasoningEngines in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engines = 1; + */ + public java.util.List + getReasoningEnginesBuilderList() { + return getReasoningEnginesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.ReasoningEngine, + com.google.cloud.aiplatform.v1.ReasoningEngine.Builder, + com.google.cloud.aiplatform.v1.ReasoningEngineOrBuilder> + getReasoningEnginesFieldBuilder() { + if (reasoningEnginesBuilder_ == null) { + reasoningEnginesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.ReasoningEngine, + com.google.cloud.aiplatform.v1.ReasoningEngine.Builder, + com.google.cloud.aiplatform.v1.ReasoningEngineOrBuilder>( + reasoningEngines_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + reasoningEngines_ = null; + } + return reasoningEnginesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * Pass to
+     * [ListReasoningEnginesRequest.page_token][google.cloud.aiplatform.v1.ListReasoningEnginesRequest.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
+     * [ListReasoningEnginesRequest.page_token][google.cloud.aiplatform.v1.ListReasoningEnginesRequest.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
+     * [ListReasoningEnginesRequest.page_token][google.cloud.aiplatform.v1.ListReasoningEnginesRequest.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
+     * [ListReasoningEnginesRequest.page_token][google.cloud.aiplatform.v1.ListReasoningEnginesRequest.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
+     * [ListReasoningEnginesRequest.page_token][google.cloud.aiplatform.v1.ListReasoningEnginesRequest.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.ListReasoningEnginesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ListReasoningEnginesResponse) + private static final com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse(); + } + + public static com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListReasoningEnginesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.ListReasoningEnginesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListReasoningEnginesResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListReasoningEnginesResponseOrBuilder.java new file mode 100644 index 000000000000..bbd72134e285 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListReasoningEnginesResponseOrBuilder.java @@ -0,0 +1,109 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/reasoning_engine_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface ListReasoningEnginesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ListReasoningEnginesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of ReasoningEngines in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engines = 1; + */ + java.util.List getReasoningEnginesList(); + /** + * + * + *
+   * List of ReasoningEngines in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engines = 1; + */ + com.google.cloud.aiplatform.v1.ReasoningEngine getReasoningEngines(int index); + /** + * + * + *
+   * List of ReasoningEngines in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engines = 1; + */ + int getReasoningEnginesCount(); + /** + * + * + *
+   * List of ReasoningEngines in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engines = 1; + */ + java.util.List + getReasoningEnginesOrBuilderList(); + /** + * + * + *
+   * List of ReasoningEngines in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engines = 1; + */ + com.google.cloud.aiplatform.v1.ReasoningEngineOrBuilder getReasoningEnginesOrBuilder(int index); + + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * Pass to
+   * [ListReasoningEnginesRequest.page_token][google.cloud.aiplatform.v1.ListReasoningEnginesRequest.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
+   * [ListReasoningEnginesRequest.page_token][google.cloud.aiplatform.v1.ListReasoningEnginesRequest.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/Modality.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Modality.java new file mode 100644 index 000000000000..91053d28e1c4 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Modality.java @@ -0,0 +1,243 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/content.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Content Part modality
+ * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1.Modality} + */ +public enum Modality implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified modality.
+   * 
+ * + * MODALITY_UNSPECIFIED = 0; + */ + MODALITY_UNSPECIFIED(0), + /** + * + * + *
+   * Plain text.
+   * 
+ * + * TEXT = 1; + */ + TEXT(1), + /** + * + * + *
+   * Image.
+   * 
+ * + * IMAGE = 2; + */ + IMAGE(2), + /** + * + * + *
+   * Video.
+   * 
+ * + * VIDEO = 3; + */ + VIDEO(3), + /** + * + * + *
+   * Audio.
+   * 
+ * + * AUDIO = 4; + */ + AUDIO(4), + /** + * + * + *
+   * Document, e.g. PDF.
+   * 
+ * + * DOCUMENT = 5; + */ + DOCUMENT(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Unspecified modality.
+   * 
+ * + * MODALITY_UNSPECIFIED = 0; + */ + public static final int MODALITY_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Plain text.
+   * 
+ * + * TEXT = 1; + */ + public static final int TEXT_VALUE = 1; + /** + * + * + *
+   * Image.
+   * 
+ * + * IMAGE = 2; + */ + public static final int IMAGE_VALUE = 2; + /** + * + * + *
+   * Video.
+   * 
+ * + * VIDEO = 3; + */ + public static final int VIDEO_VALUE = 3; + /** + * + * + *
+   * Audio.
+   * 
+ * + * AUDIO = 4; + */ + public static final int AUDIO_VALUE = 4; + /** + * + * + *
+   * Document, e.g. PDF.
+   * 
+ * + * DOCUMENT = 5; + */ + public static final int DOCUMENT_VALUE = 5; + + 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 VIDEO; + case 4: + return AUDIO; + case 5: + return DOCUMENT; + 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.v1.ContentProto.getDescriptor().getEnumTypes().get(1); + } + + 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.v1.Modality) +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModalityTokenCount.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModalityTokenCount.java new file mode 100644 index 000000000000..b8aa78cded7c --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModalityTokenCount.java @@ -0,0 +1,684 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/content.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Represents token counting info for a single modality.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ModalityTokenCount} + */ +public final class ModalityTokenCount extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ModalityTokenCount) + ModalityTokenCountOrBuilder { + private static final long serialVersionUID = 0L; + // Use ModalityTokenCount.newBuilder() to construct. + private ModalityTokenCount(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ModalityTokenCount() { + modality_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ModalityTokenCount(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_ModalityTokenCount_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_ModalityTokenCount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ModalityTokenCount.class, + com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder.class); + } + + public static final int MODALITY_FIELD_NUMBER = 1; + private int modality_ = 0; + /** + * + * + *
+   * The modality associated with this token count.
+   * 
+ * + * .google.cloud.aiplatform.v1.Modality modality = 1; + * + * @return The enum numeric value on the wire for modality. + */ + @java.lang.Override + public int getModalityValue() { + return modality_; + } + /** + * + * + *
+   * The modality associated with this token count.
+   * 
+ * + * .google.cloud.aiplatform.v1.Modality modality = 1; + * + * @return The modality. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Modality getModality() { + com.google.cloud.aiplatform.v1.Modality result = + com.google.cloud.aiplatform.v1.Modality.forNumber(modality_); + return result == null ? com.google.cloud.aiplatform.v1.Modality.UNRECOGNIZED : result; + } + + public static final int TOKEN_COUNT_FIELD_NUMBER = 2; + private int tokenCount_ = 0; + /** + * + * + *
+   * Number of tokens.
+   * 
+ * + * int32 token_count = 2; + * + * @return The tokenCount. + */ + @java.lang.Override + public int getTokenCount() { + return tokenCount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (modality_ != com.google.cloud.aiplatform.v1.Modality.MODALITY_UNSPECIFIED.getNumber()) { + output.writeEnum(1, modality_); + } + if (tokenCount_ != 0) { + output.writeInt32(2, tokenCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (modality_ != com.google.cloud.aiplatform.v1.Modality.MODALITY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, modality_); + } + if (tokenCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, tokenCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.ModalityTokenCount)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ModalityTokenCount other = + (com.google.cloud.aiplatform.v1.ModalityTokenCount) obj; + + if (modality_ != other.modality_) return false; + if (getTokenCount() != other.getTokenCount()) return false; + if (!getUnknownFields().equals(other.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) + MODALITY_FIELD_NUMBER; + hash = (53 * hash) + modality_; + hash = (37 * hash) + TOKEN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getTokenCount(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.ModalityTokenCount parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ModalityTokenCount parseFrom( + 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.ModalityTokenCount parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ModalityTokenCount parseFrom( + com.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.ModalityTokenCount parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ModalityTokenCount 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.ModalityTokenCount parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ModalityTokenCount parseFrom( + java.io.InputStream 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.ModalityTokenCount parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ModalityTokenCount parseDelimitedFrom( + java.io.InputStream 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.ModalityTokenCount 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.ModalityTokenCount parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.ModalityTokenCount prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 token counting info for a single modality.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ModalityTokenCount} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ModalityTokenCount) + com.google.cloud.aiplatform.v1.ModalityTokenCountOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_ModalityTokenCount_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_ModalityTokenCount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ModalityTokenCount.class, + com.google.cloud.aiplatform.v1.ModalityTokenCount.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.ModalityTokenCount.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + modality_ = 0; + tokenCount_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_ModalityTokenCount_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ModalityTokenCount getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ModalityTokenCount.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ModalityTokenCount build() { + com.google.cloud.aiplatform.v1.ModalityTokenCount result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ModalityTokenCount buildPartial() { + com.google.cloud.aiplatform.v1.ModalityTokenCount result = + new com.google.cloud.aiplatform.v1.ModalityTokenCount(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ModalityTokenCount result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.modality_ = modality_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tokenCount_ = tokenCount_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.ModalityTokenCount) { + return mergeFrom((com.google.cloud.aiplatform.v1.ModalityTokenCount) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.ModalityTokenCount other) { + if (other == com.google.cloud.aiplatform.v1.ModalityTokenCount.getDefaultInstance()) + return this; + if (other.modality_ != 0) { + setModalityValue(other.getModalityValue()); + } + if (other.getTokenCount() != 0) { + setTokenCount(other.getTokenCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + modality_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + tokenCount_ = 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 modality_ = 0; + /** + * + * + *
+     * The modality associated with this token count.
+     * 
+ * + * .google.cloud.aiplatform.v1.Modality modality = 1; + * + * @return The enum numeric value on the wire for modality. + */ + @java.lang.Override + public int getModalityValue() { + return modality_; + } + /** + * + * + *
+     * The modality associated with this token count.
+     * 
+ * + * .google.cloud.aiplatform.v1.Modality modality = 1; + * + * @param value The enum numeric value on the wire for modality to set. + * @return This builder for chaining. + */ + public Builder setModalityValue(int value) { + modality_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The modality associated with this token count.
+     * 
+ * + * .google.cloud.aiplatform.v1.Modality modality = 1; + * + * @return The modality. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Modality getModality() { + com.google.cloud.aiplatform.v1.Modality result = + com.google.cloud.aiplatform.v1.Modality.forNumber(modality_); + return result == null ? com.google.cloud.aiplatform.v1.Modality.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The modality associated with this token count.
+     * 
+ * + * .google.cloud.aiplatform.v1.Modality modality = 1; + * + * @param value The modality to set. + * @return This builder for chaining. + */ + public Builder setModality(com.google.cloud.aiplatform.v1.Modality value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + modality_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The modality associated with this token count.
+     * 
+ * + * .google.cloud.aiplatform.v1.Modality modality = 1; + * + * @return This builder for chaining. + */ + public Builder clearModality() { + bitField0_ = (bitField0_ & ~0x00000001); + modality_ = 0; + onChanged(); + return this; + } + + private int tokenCount_; + /** + * + * + *
+     * Number of tokens.
+     * 
+ * + * int32 token_count = 2; + * + * @return The tokenCount. + */ + @java.lang.Override + public int getTokenCount() { + return tokenCount_; + } + /** + * + * + *
+     * Number of tokens.
+     * 
+ * + * int32 token_count = 2; + * + * @param value The tokenCount to set. + * @return This builder for chaining. + */ + public Builder setTokenCount(int value) { + + tokenCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Number of tokens.
+     * 
+ * + * int32 token_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearTokenCount() { + bitField0_ = (bitField0_ & ~0x00000002); + tokenCount_ = 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.ModalityTokenCount) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ModalityTokenCount) + private static final com.google.cloud.aiplatform.v1.ModalityTokenCount DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ModalityTokenCount(); + } + + public static com.google.cloud.aiplatform.v1.ModalityTokenCount getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModalityTokenCount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.ModalityTokenCount getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModalityTokenCountOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModalityTokenCountOrBuilder.java new file mode 100644 index 000000000000..c12d7336c843 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModalityTokenCountOrBuilder.java @@ -0,0 +1,64 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/content.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface ModalityTokenCountOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ModalityTokenCount) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The modality associated with this token count.
+   * 
+ * + * .google.cloud.aiplatform.v1.Modality modality = 1; + * + * @return The enum numeric value on the wire for modality. + */ + int getModalityValue(); + /** + * + * + *
+   * The modality associated with this token count.
+   * 
+ * + * .google.cloud.aiplatform.v1.Modality modality = 1; + * + * @return The modality. + */ + com.google.cloud.aiplatform.v1.Modality getModality(); + + /** + * + * + *
+   * Number of tokens.
+   * 
+ * + * int32 token_count = 2; + * + * @return The tokenCount. + */ + int getTokenCount(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Model.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Model.java index 1fe08f05a8a2..3a3d15d3d631 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Model.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Model.java @@ -45,6 +45,7 @@ private Model() { displayName_ = ""; description_ = ""; versionDescription_ = ""; + defaultCheckpointId_ = ""; metadataSchemaUri_ = ""; supportedExportFormats_ = java.util.Collections.emptyList(); trainingPipeline_ = ""; @@ -5249,6 +5250,57 @@ public com.google.protobuf.ByteString getVersionDescriptionBytes() { } } + public static final int DEFAULT_CHECKPOINT_ID_FIELD_NUMBER = 53; + + @SuppressWarnings("serial") + private volatile java.lang.Object defaultCheckpointId_ = ""; + /** + * + * + *
+   * The default checkpoint id of a model version.
+   * 
+ * + * string default_checkpoint_id = 53; + * + * @return The defaultCheckpointId. + */ + @java.lang.Override + public java.lang.String getDefaultCheckpointId() { + java.lang.Object ref = defaultCheckpointId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultCheckpointId_ = s; + return s; + } + } + /** + * + * + *
+   * The default checkpoint id of a model version.
+   * 
+ * + * string default_checkpoint_id = 53; + * + * @return The bytes for defaultCheckpointId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultCheckpointIdBytes() { + java.lang.Object ref = defaultCheckpointId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultCheckpointId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int PREDICT_SCHEMATA_FIELD_NUMBER = 4; private com.google.cloud.aiplatform.v1.PredictSchemata predictSchemata_; /** @@ -7436,6 +7488,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (satisfiesPzi_ != false) { output.writeBool(52, satisfiesPzi_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultCheckpointId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 53, defaultCheckpointId_); + } getUnknownFields().writeTo(output); } @@ -7579,6 +7634,9 @@ public int getSerializedSize() { if (satisfiesPzi_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(52, satisfiesPzi_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultCheckpointId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(53, defaultCheckpointId_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -7608,6 +7666,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDisplayName().equals(other.getDisplayName())) return false; if (!getDescription().equals(other.getDescription())) return false; if (!getVersionDescription().equals(other.getVersionDescription())) return false; + if (!getDefaultCheckpointId().equals(other.getDefaultCheckpointId())) return false; if (hasPredictSchemata() != other.hasPredictSchemata()) return false; if (hasPredictSchemata()) { if (!getPredictSchemata().equals(other.getPredictSchemata())) return false; @@ -7703,6 +7762,8 @@ public int hashCode() { hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + VERSION_DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getVersionDescription().hashCode(); + hash = (37 * hash) + DEFAULT_CHECKPOINT_ID_FIELD_NUMBER; + hash = (53 * hash) + getDefaultCheckpointId().hashCode(); if (hasPredictSchemata()) { hash = (37 * hash) + PREDICT_SCHEMATA_FIELD_NUMBER; hash = (53 * hash) + getPredictSchemata().hashCode(); @@ -7987,6 +8048,7 @@ public Builder clear() { displayName_ = ""; description_ = ""; versionDescription_ = ""; + defaultCheckpointId_ = ""; predictSchemata_ = null; if (predictSchemataBuilder_ != null) { predictSchemataBuilder_.dispose(); @@ -8004,7 +8066,7 @@ public Builder clear() { supportedExportFormats_ = null; supportedExportFormatsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); trainingPipeline_ = ""; pipelineJob_ = ""; containerSpec_ = null; @@ -8014,7 +8076,7 @@ public Builder clear() { } artifactUri_ = ""; supportedDeploymentResourcesTypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); supportedInputStorageFormats_ = com.google.protobuf.LazyStringArrayList.emptyList(); supportedOutputStorageFormats_ = com.google.protobuf.LazyStringArrayList.emptyList(); createTime_ = null; @@ -8033,7 +8095,7 @@ public Builder clear() { deployedModels_ = null; deployedModelsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); explanationSpec_ = null; if (explanationSpecBuilder_ != null) { explanationSpecBuilder_.dispose(); @@ -8108,24 +8170,24 @@ public com.google.cloud.aiplatform.v1.Model buildPartial() { private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.Model result) { if (supportedExportFormatsBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { supportedExportFormats_ = java.util.Collections.unmodifiableList(supportedExportFormats_); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); } result.supportedExportFormats_ = supportedExportFormats_; } else { result.supportedExportFormats_ = supportedExportFormatsBuilder_.build(); } - if (((bitField0_ & 0x00010000) != 0)) { + if (((bitField0_ & 0x00020000) != 0)) { supportedDeploymentResourcesTypes_ = java.util.Collections.unmodifiableList(supportedDeploymentResourcesTypes_); - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); } result.supportedDeploymentResourcesTypes_ = supportedDeploymentResourcesTypes_; if (deployedModelsBuilder_ == null) { - if (((bitField0_ & 0x00200000) != 0)) { + if (((bitField0_ & 0x00400000) != 0)) { deployedModels_ = java.util.Collections.unmodifiableList(deployedModels_); - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); } result.deployedModels_ = deployedModels_; } else { @@ -8170,97 +8232,100 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.Model result) { result.versionDescription_ = versionDescription_; } if (((from_bitField0_ & 0x00000100) != 0)) { + result.defaultCheckpointId_ = defaultCheckpointId_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { result.predictSchemata_ = predictSchemataBuilder_ == null ? predictSchemata_ : predictSchemataBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.metadataSchemaUri_ = metadataSchemaUri_; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.trainingPipeline_ = trainingPipeline_; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.pipelineJob_ = pipelineJob_; } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.containerSpec_ = containerSpecBuilder_ == null ? containerSpec_ : containerSpecBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.artifactUri_ = artifactUri_; } - if (((from_bitField0_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00040000) != 0)) { supportedInputStorageFormats_.makeImmutable(); result.supportedInputStorageFormats_ = supportedInputStorageFormats_; } - if (((from_bitField0_ & 0x00040000) != 0)) { + if (((from_bitField0_ & 0x00080000) != 0)) { supportedOutputStorageFormats_.makeImmutable(); result.supportedOutputStorageFormats_ = supportedOutputStorageFormats_; } - if (((from_bitField0_ & 0x00080000) != 0)) { + if (((from_bitField0_ & 0x00100000) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000020; } - if (((from_bitField0_ & 0x00100000) != 0)) { + if (((from_bitField0_ & 0x00200000) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000040; } - if (((from_bitField0_ & 0x00400000) != 0)) { + if (((from_bitField0_ & 0x00800000) != 0)) { result.explanationSpec_ = explanationSpecBuilder_ == null ? explanationSpec_ : explanationSpecBuilder_.build(); to_bitField0_ |= 0x00000080; } - if (((from_bitField0_ & 0x00800000) != 0)) { + if (((from_bitField0_ & 0x01000000) != 0)) { result.etag_ = etag_; } - if (((from_bitField0_ & 0x01000000) != 0)) { + if (((from_bitField0_ & 0x02000000) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } - if (((from_bitField0_ & 0x02000000) != 0)) { + if (((from_bitField0_ & 0x04000000) != 0)) { result.dataStats_ = dataStatsBuilder_ == null ? dataStats_ : dataStatsBuilder_.build(); to_bitField0_ |= 0x00000100; } - if (((from_bitField0_ & 0x04000000) != 0)) { + if (((from_bitField0_ & 0x08000000) != 0)) { result.encryptionSpec_ = encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); to_bitField0_ |= 0x00000200; } - if (((from_bitField0_ & 0x08000000) != 0)) { + if (((from_bitField0_ & 0x10000000) != 0)) { result.modelSourceInfo_ = modelSourceInfoBuilder_ == null ? modelSourceInfo_ : modelSourceInfoBuilder_.build(); to_bitField0_ |= 0x00000400; } - if (((from_bitField0_ & 0x10000000) != 0)) { + if (((from_bitField0_ & 0x20000000) != 0)) { result.originalModelInfo_ = originalModelInfoBuilder_ == null ? originalModelInfo_ : originalModelInfoBuilder_.build(); to_bitField0_ |= 0x00000800; } - if (((from_bitField0_ & 0x20000000) != 0)) { + if (((from_bitField0_ & 0x40000000) != 0)) { result.metadataArtifact_ = metadataArtifact_; } - if (((from_bitField0_ & 0x40000000) != 0)) { + if (((from_bitField0_ & 0x80000000) != 0)) { result.baseModelSource_ = baseModelSourceBuilder_ == null ? baseModelSource_ : baseModelSourceBuilder_.build(); to_bitField0_ |= 0x00001000; } - if (((from_bitField0_ & 0x80000000) != 0)) { - result.satisfiesPzs_ = satisfiesPzs_; - } result.bitField0_ |= to_bitField0_; } private void buildPartial1(com.google.cloud.aiplatform.v1.Model result) { int from_bitField1_ = bitField1_; if (((from_bitField1_ & 0x00000001) != 0)) { + result.satisfiesPzs_ = satisfiesPzs_; + } + if (((from_bitField1_ & 0x00000002) != 0)) { result.satisfiesPzi_ = satisfiesPzi_; } } @@ -8351,12 +8416,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Model other) { bitField0_ |= 0x00000080; onChanged(); } + if (!other.getDefaultCheckpointId().isEmpty()) { + defaultCheckpointId_ = other.defaultCheckpointId_; + bitField0_ |= 0x00000100; + onChanged(); + } if (other.hasPredictSchemata()) { mergePredictSchemata(other.getPredictSchemata()); } if (!other.getMetadataSchemaUri().isEmpty()) { metadataSchemaUri_ = other.metadataSchemaUri_; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); } if (other.hasMetadata()) { @@ -8366,7 +8436,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Model other) { if (!other.supportedExportFormats_.isEmpty()) { if (supportedExportFormats_.isEmpty()) { supportedExportFormats_ = other.supportedExportFormats_; - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); } else { ensureSupportedExportFormatsIsMutable(); supportedExportFormats_.addAll(other.supportedExportFormats_); @@ -8379,7 +8449,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Model other) { supportedExportFormatsBuilder_.dispose(); supportedExportFormatsBuilder_ = null; supportedExportFormats_ = other.supportedExportFormats_; - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); supportedExportFormatsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSupportedExportFormatsFieldBuilder() @@ -8391,12 +8461,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Model other) { } if (!other.getTrainingPipeline().isEmpty()) { trainingPipeline_ = other.trainingPipeline_; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } if (!other.getPipelineJob().isEmpty()) { pipelineJob_ = other.pipelineJob_; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } if (other.hasContainerSpec()) { @@ -8404,13 +8474,13 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Model other) { } if (!other.getArtifactUri().isEmpty()) { artifactUri_ = other.artifactUri_; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); } if (!other.supportedDeploymentResourcesTypes_.isEmpty()) { if (supportedDeploymentResourcesTypes_.isEmpty()) { supportedDeploymentResourcesTypes_ = other.supportedDeploymentResourcesTypes_; - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); } else { ensureSupportedDeploymentResourcesTypesIsMutable(); supportedDeploymentResourcesTypes_.addAll(other.supportedDeploymentResourcesTypes_); @@ -8420,7 +8490,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Model other) { if (!other.supportedInputStorageFormats_.isEmpty()) { if (supportedInputStorageFormats_.isEmpty()) { supportedInputStorageFormats_ = other.supportedInputStorageFormats_; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; } else { ensureSupportedInputStorageFormatsIsMutable(); supportedInputStorageFormats_.addAll(other.supportedInputStorageFormats_); @@ -8430,7 +8500,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Model other) { if (!other.supportedOutputStorageFormats_.isEmpty()) { if (supportedOutputStorageFormats_.isEmpty()) { supportedOutputStorageFormats_ = other.supportedOutputStorageFormats_; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; } else { ensureSupportedOutputStorageFormatsIsMutable(); supportedOutputStorageFormats_.addAll(other.supportedOutputStorageFormats_); @@ -8447,7 +8517,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Model other) { if (!other.deployedModels_.isEmpty()) { if (deployedModels_.isEmpty()) { deployedModels_ = other.deployedModels_; - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); } else { ensureDeployedModelsIsMutable(); deployedModels_.addAll(other.deployedModels_); @@ -8460,7 +8530,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Model other) { deployedModelsBuilder_.dispose(); deployedModelsBuilder_ = null; deployedModels_ = other.deployedModels_; - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); deployedModelsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDeployedModelsFieldBuilder() @@ -8475,11 +8545,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Model other) { } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; if (other.hasDataStats()) { mergeDataStats(other.getDataStats()); } @@ -8494,7 +8564,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Model other) { } if (!other.getMetadataArtifact().isEmpty()) { metadataArtifact_ = other.metadataArtifact_; - bitField0_ |= 0x20000000; + bitField0_ |= 0x40000000; onChanged(); } if (other.hasBaseModelSource()) { @@ -8553,31 +8623,31 @@ public Builder mergeFrom( case 34: { input.readMessage(getPredictSchemataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 34 case 42: { metadataSchemaUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 42 case 50: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 50 case 58: { trainingPipeline_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 58 case 74: { input.readMessage(getContainerSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 74 case 80: @@ -8616,13 +8686,13 @@ public Builder mergeFrom( case 106: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; break; } // case 106 case 114: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; break; } // case 114 case 122: @@ -8642,7 +8712,7 @@ public Builder mergeFrom( case 130: { etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; break; } // case 130 case 138: @@ -8654,7 +8724,7 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; break; } // case 138 case 162: @@ -8674,25 +8744,25 @@ public Builder mergeFrom( case 170: { input.readMessage(getDataStatsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; break; } // case 170 case 186: { input.readMessage(getExplanationSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; break; } // case 186 case 194: { input.readMessage(getEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x04000000; + bitField0_ |= 0x08000000; break; } // case 194 case 210: { artifactUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 210 case 226: @@ -8732,45 +8802,51 @@ public Builder mergeFrom( { input.readMessage( getOriginalModelInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; break; } // case 274 case 306: { input.readMessage(getModelSourceInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; break; } // case 306 case 354: { metadataArtifact_ = input.readStringRequireUtf8(); - bitField0_ |= 0x20000000; + bitField0_ |= 0x40000000; break; } // case 354 case 378: { pipelineJob_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 378 case 402: { input.readMessage(getBaseModelSourceFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x40000000; + bitField0_ |= 0x80000000; break; } // case 402 case 408: { satisfiesPzs_ = input.readBool(); - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000001; break; } // case 408 case 416: { satisfiesPzi_ = input.readBool(); - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000002; break; } // case 416 + case 426: + { + defaultCheckpointId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 426 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -10008,6 +10084,112 @@ public Builder setVersionDescriptionBytes(com.google.protobuf.ByteString value) return this; } + private java.lang.Object defaultCheckpointId_ = ""; + /** + * + * + *
+     * The default checkpoint id of a model version.
+     * 
+ * + * string default_checkpoint_id = 53; + * + * @return The defaultCheckpointId. + */ + public java.lang.String getDefaultCheckpointId() { + java.lang.Object ref = defaultCheckpointId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultCheckpointId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The default checkpoint id of a model version.
+     * 
+ * + * string default_checkpoint_id = 53; + * + * @return The bytes for defaultCheckpointId. + */ + public com.google.protobuf.ByteString getDefaultCheckpointIdBytes() { + java.lang.Object ref = defaultCheckpointId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultCheckpointId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The default checkpoint id of a model version.
+     * 
+ * + * string default_checkpoint_id = 53; + * + * @param value The defaultCheckpointId to set. + * @return This builder for chaining. + */ + public Builder setDefaultCheckpointId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + defaultCheckpointId_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * The default checkpoint id of a model version.
+     * 
+ * + * string default_checkpoint_id = 53; + * + * @return This builder for chaining. + */ + public Builder clearDefaultCheckpointId() { + defaultCheckpointId_ = getDefaultInstance().getDefaultCheckpointId(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * + * + *
+     * The default checkpoint id of a model version.
+     * 
+ * + * string default_checkpoint_id = 53; + * + * @param value The bytes for defaultCheckpointId to set. + * @return This builder for chaining. + */ + public Builder setDefaultCheckpointIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + defaultCheckpointId_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + private com.google.cloud.aiplatform.v1.PredictSchemata predictSchemata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.PredictSchemata, @@ -10030,7 +10212,7 @@ public Builder setVersionDescriptionBytes(com.google.protobuf.ByteString value) * @return Whether the predictSchemata field is set. */ public boolean hasPredictSchemata() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -10078,7 +10260,7 @@ public Builder setPredictSchemata(com.google.cloud.aiplatform.v1.PredictSchemata } else { predictSchemataBuilder_.setMessage(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -10102,7 +10284,7 @@ public Builder setPredictSchemata( } else { predictSchemataBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -10121,7 +10303,7 @@ public Builder setPredictSchemata( */ public Builder mergePredictSchemata(com.google.cloud.aiplatform.v1.PredictSchemata value) { if (predictSchemataBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) + if (((bitField0_ & 0x00000200) != 0) && predictSchemata_ != null && predictSchemata_ != com.google.cloud.aiplatform.v1.PredictSchemata.getDefaultInstance()) { @@ -10133,7 +10315,7 @@ public Builder mergePredictSchemata(com.google.cloud.aiplatform.v1.PredictSchema predictSchemataBuilder_.mergeFrom(value); } if (predictSchemata_ != null) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } return this; @@ -10152,7 +10334,7 @@ public Builder mergePredictSchemata(com.google.cloud.aiplatform.v1.PredictSchema * .google.cloud.aiplatform.v1.PredictSchemata predict_schemata = 4; */ public Builder clearPredictSchemata() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); predictSchemata_ = null; if (predictSchemataBuilder_ != null) { predictSchemataBuilder_.dispose(); @@ -10175,7 +10357,7 @@ public Builder clearPredictSchemata() { * .google.cloud.aiplatform.v1.PredictSchemata predict_schemata = 4; */ public com.google.cloud.aiplatform.v1.PredictSchemata.Builder getPredictSchemataBuilder() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return getPredictSchemataFieldBuilder().getBuilder(); } @@ -10320,7 +10502,7 @@ public Builder setMetadataSchemaUri(java.lang.String value) { throw new NullPointerException(); } metadataSchemaUri_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -10346,7 +10528,7 @@ public Builder setMetadataSchemaUri(java.lang.String value) { */ public Builder clearMetadataSchemaUri() { metadataSchemaUri_ = getDefaultInstance().getMetadataSchemaUri(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -10377,7 +10559,7 @@ public Builder setMetadataSchemaUriBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); metadataSchemaUri_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -10403,7 +10585,7 @@ public Builder setMetadataSchemaUriBytes(com.google.protobuf.ByteString value) { * @return Whether the metadata field is set. */ public boolean hasMetadata() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** * @@ -10447,7 +10629,7 @@ public Builder setMetadata(com.google.protobuf.Value value) { } else { metadataBuilder_.setMessage(value); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -10469,7 +10651,7 @@ public Builder setMetadata(com.google.protobuf.Value.Builder builderForValue) { } else { metadataBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -10487,7 +10669,7 @@ public Builder setMetadata(com.google.protobuf.Value.Builder builderForValue) { */ public Builder mergeMetadata(com.google.protobuf.Value value) { if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) + if (((bitField0_ & 0x00000800) != 0) && metadata_ != null && metadata_ != com.google.protobuf.Value.getDefaultInstance()) { getMetadataBuilder().mergeFrom(value); @@ -10498,7 +10680,7 @@ public Builder mergeMetadata(com.google.protobuf.Value value) { metadataBuilder_.mergeFrom(value); } if (metadata_ != null) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } return this; @@ -10516,7 +10698,7 @@ public Builder mergeMetadata(com.google.protobuf.Value value) { * .google.protobuf.Value metadata = 6 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder clearMetadata() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); metadata_ = null; if (metadataBuilder_ != null) { metadataBuilder_.dispose(); @@ -10538,7 +10720,7 @@ public Builder clearMetadata() { * .google.protobuf.Value metadata = 6 [(.google.api.field_behavior) = IMMUTABLE]; */ public com.google.protobuf.Value.Builder getMetadataBuilder() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return getMetadataFieldBuilder().getBuilder(); } @@ -10594,11 +10776,11 @@ public com.google.protobuf.ValueOrBuilder getMetadataOrBuilder() { supportedExportFormats_ = java.util.Collections.emptyList(); private void ensureSupportedExportFormatsIsMutable() { - if (!((bitField0_ & 0x00000800) != 0)) { + if (!((bitField0_ & 0x00001000) != 0)) { supportedExportFormats_ = new java.util.ArrayList( supportedExportFormats_); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; } } @@ -10851,7 +11033,7 @@ public Builder addAllSupportedExportFormats( public Builder clearSupportedExportFormats() { if (supportedExportFormatsBuilder_ == null) { supportedExportFormats_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); } else { supportedExportFormatsBuilder_.clear(); @@ -11000,7 +11182,7 @@ public Builder removeSupportedExportFormats(int index) { com.google.cloud.aiplatform.v1.Model.ExportFormat.Builder, com.google.cloud.aiplatform.v1.Model.ExportFormatOrBuilder>( supportedExportFormats_, - ((bitField0_ & 0x00000800) != 0), + ((bitField0_ & 0x00001000) != 0), getParentForChildren(), isClean()); supportedExportFormats_ = null; @@ -11079,7 +11261,7 @@ public Builder setTrainingPipeline(java.lang.String value) { throw new NullPointerException(); } trainingPipeline_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -11099,7 +11281,7 @@ public Builder setTrainingPipeline(java.lang.String value) { */ public Builder clearTrainingPipeline() { trainingPipeline_ = getDefaultInstance().getTrainingPipeline(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } @@ -11124,7 +11306,7 @@ public Builder setTrainingPipelineBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); trainingPipeline_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -11200,7 +11382,7 @@ public Builder setPipelineJob(java.lang.String value) { throw new NullPointerException(); } pipelineJob_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -11220,7 +11402,7 @@ public Builder setPipelineJob(java.lang.String value) { */ public Builder clearPipelineJob() { pipelineJob_ = getDefaultInstance().getPipelineJob(); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } @@ -11245,7 +11427,7 @@ public Builder setPipelineJobBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); pipelineJob_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -11274,7 +11456,7 @@ public Builder setPipelineJobBytes(com.google.protobuf.ByteString value) { * @return Whether the containerSpec field is set. */ public boolean hasContainerSpec() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** * @@ -11326,7 +11508,7 @@ public Builder setContainerSpec(com.google.cloud.aiplatform.v1.ModelContainerSpe } else { containerSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -11352,7 +11534,7 @@ public Builder setContainerSpec( } else { containerSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -11373,7 +11555,7 @@ public Builder setContainerSpec( */ public Builder mergeContainerSpec(com.google.cloud.aiplatform.v1.ModelContainerSpec value) { if (containerSpecBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) + if (((bitField0_ & 0x00008000) != 0) && containerSpec_ != null && containerSpec_ != com.google.cloud.aiplatform.v1.ModelContainerSpec.getDefaultInstance()) { @@ -11385,7 +11567,7 @@ public Builder mergeContainerSpec(com.google.cloud.aiplatform.v1.ModelContainerS containerSpecBuilder_.mergeFrom(value); } if (containerSpec_ != null) { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } return this; @@ -11406,7 +11588,7 @@ public Builder mergeContainerSpec(com.google.cloud.aiplatform.v1.ModelContainerS * */ public Builder clearContainerSpec() { - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); containerSpec_ = null; if (containerSpecBuilder_ != null) { containerSpecBuilder_.dispose(); @@ -11431,7 +11613,7 @@ public Builder clearContainerSpec() { * */ public com.google.cloud.aiplatform.v1.ModelContainerSpec.Builder getContainerSpecBuilder() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return getContainerSpecFieldBuilder().getBuilder(); } @@ -11556,7 +11738,7 @@ public Builder setArtifactUri(java.lang.String value) { throw new NullPointerException(); } artifactUri_ = value; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -11574,7 +11756,7 @@ public Builder setArtifactUri(java.lang.String value) { */ public Builder clearArtifactUri() { artifactUri_ = getDefaultInstance().getArtifactUri(); - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); onChanged(); return this; } @@ -11597,7 +11779,7 @@ public Builder setArtifactUriBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); artifactUri_ = value; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -11606,10 +11788,10 @@ public Builder setArtifactUriBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureSupportedDeploymentResourcesTypesIsMutable() { - if (!((bitField0_ & 0x00010000) != 0)) { + if (!((bitField0_ & 0x00020000) != 0)) { supportedDeploymentResourcesTypes_ = new java.util.ArrayList(supportedDeploymentResourcesTypes_); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; } } /** @@ -11866,7 +12048,7 @@ public Builder addAllSupportedDeploymentResourcesTypes( */ public Builder clearSupportedDeploymentResourcesTypes() { supportedDeploymentResourcesTypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); onChanged(); return this; } @@ -12059,7 +12241,7 @@ private void ensureSupportedInputStorageFormatsIsMutable() { supportedInputStorageFormats_ = new com.google.protobuf.LazyStringArrayList(supportedInputStorageFormats_); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; } /** * @@ -12379,7 +12561,7 @@ public Builder setSupportedInputStorageFormats(int index, java.lang.String value } ensureSupportedInputStorageFormatsIsMutable(); supportedInputStorageFormats_.set(index, value); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -12449,7 +12631,7 @@ public Builder addSupportedInputStorageFormats(java.lang.String value) { } ensureSupportedInputStorageFormatsIsMutable(); supportedInputStorageFormats_.add(value); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -12516,7 +12698,7 @@ public Builder addSupportedInputStorageFormats(java.lang.String value) { public Builder addAllSupportedInputStorageFormats(java.lang.Iterable values) { ensureSupportedInputStorageFormatsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, supportedInputStorageFormats_); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -12581,7 +12763,7 @@ public Builder addAllSupportedInputStorageFormats(java.lang.Iterable */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -13328,7 +13510,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -13400,7 +13582,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return ((bitField0_ & 0x00100000) != 0); + return ((bitField0_ & 0x00200000) != 0); } /** * @@ -13444,7 +13626,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -13465,7 +13647,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -13482,7 +13664,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00100000) != 0) + if (((bitField0_ & 0x00200000) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); @@ -13493,7 +13675,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); } return this; @@ -13510,7 +13692,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00200000); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); @@ -13531,7 +13713,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -13587,11 +13769,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { java.util.Collections.emptyList(); private void ensureDeployedModelsIsMutable() { - if (!((bitField0_ & 0x00200000) != 0)) { + if (!((bitField0_ & 0x00400000) != 0)) { deployedModels_ = new java.util.ArrayList( deployedModels_); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; } } @@ -13842,7 +14024,7 @@ public Builder addAllDeployedModels( public Builder clearDeployedModels() { if (deployedModelsBuilder_ == null) { deployedModels_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); onChanged(); } else { deployedModelsBuilder_.clear(); @@ -13989,7 +14171,7 @@ public com.google.cloud.aiplatform.v1.DeployedModelRef.Builder addDeployedModels com.google.cloud.aiplatform.v1.DeployedModelRef.Builder, com.google.cloud.aiplatform.v1.DeployedModelRefOrBuilder>( deployedModels_, - ((bitField0_ & 0x00200000) != 0), + ((bitField0_ & 0x00400000) != 0), getParentForChildren(), isClean()); deployedModels_ = null; @@ -14045,7 +14227,7 @@ public com.google.cloud.aiplatform.v1.DeployedModelRef.Builder addDeployedModels * @return Whether the explanationSpec field is set. */ public boolean hasExplanationSpec() { - return ((bitField0_ & 0x00400000) != 0); + return ((bitField0_ & 0x00800000) != 0); } /** * @@ -14145,7 +14327,7 @@ public Builder setExplanationSpec(com.google.cloud.aiplatform.v1.ExplanationSpec } else { explanationSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -14195,7 +14377,7 @@ public Builder setExplanationSpec( } else { explanationSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -14240,7 +14422,7 @@ public Builder setExplanationSpec( */ public Builder mergeExplanationSpec(com.google.cloud.aiplatform.v1.ExplanationSpec value) { if (explanationSpecBuilder_ == null) { - if (((bitField0_ & 0x00400000) != 0) + if (((bitField0_ & 0x00800000) != 0) && explanationSpec_ != null && explanationSpec_ != com.google.cloud.aiplatform.v1.ExplanationSpec.getDefaultInstance()) { @@ -14252,7 +14434,7 @@ public Builder mergeExplanationSpec(com.google.cloud.aiplatform.v1.ExplanationSp explanationSpecBuilder_.mergeFrom(value); } if (explanationSpec_ != null) { - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); } return this; @@ -14297,7 +14479,7 @@ public Builder mergeExplanationSpec(com.google.cloud.aiplatform.v1.ExplanationSp * .google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 23; */ public Builder clearExplanationSpec() { - bitField0_ = (bitField0_ & ~0x00400000); + bitField0_ = (bitField0_ & ~0x00800000); explanationSpec_ = null; if (explanationSpecBuilder_ != null) { explanationSpecBuilder_.dispose(); @@ -14346,7 +14528,7 @@ public Builder clearExplanationSpec() { * .google.cloud.aiplatform.v1.ExplanationSpec explanation_spec = 23; */ public com.google.cloud.aiplatform.v1.ExplanationSpec.Builder getExplanationSpecBuilder() { - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return getExplanationSpecFieldBuilder().getBuilder(); } @@ -14519,7 +14701,7 @@ public Builder setEtag(java.lang.String value) { throw new NullPointerException(); } etag_ = value; - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -14537,7 +14719,7 @@ public Builder setEtag(java.lang.String value) { */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x00800000); + bitField0_ = (bitField0_ & ~0x01000000); onChanged(); return this; } @@ -14560,7 +14742,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); etag_ = value; - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -14582,7 +14764,7 @@ private com.google.protobuf.MapField interna if (!labels_.isMutable()) { labels_ = labels_.copy(); } - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; onChanged(); return labels_; } @@ -14691,7 +14873,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x01000000); + bitField0_ = (bitField0_ & ~0x02000000); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -14720,7 +14902,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; return internalGetMutableLabels().getMutableMap(); } /** @@ -14746,7 +14928,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; return this; } /** @@ -14766,7 +14948,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; return this; } @@ -14791,7 +14973,7 @@ public Builder putAllLabels(java.util.Map va * @return Whether the dataStats field is set. */ public boolean hasDataStats() { - return ((bitField0_ & 0x02000000) != 0); + return ((bitField0_ & 0x04000000) != 0); } /** * @@ -14837,7 +15019,7 @@ public Builder setDataStats(com.google.cloud.aiplatform.v1.Model.DataStats value } else { dataStatsBuilder_.setMessage(value); } - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; onChanged(); return this; } @@ -14860,7 +15042,7 @@ public Builder setDataStats( } else { dataStatsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; onChanged(); return this; } @@ -14878,7 +15060,7 @@ public Builder setDataStats( */ public Builder mergeDataStats(com.google.cloud.aiplatform.v1.Model.DataStats value) { if (dataStatsBuilder_ == null) { - if (((bitField0_ & 0x02000000) != 0) + if (((bitField0_ & 0x04000000) != 0) && dataStats_ != null && dataStats_ != com.google.cloud.aiplatform.v1.Model.DataStats.getDefaultInstance()) { getDataStatsBuilder().mergeFrom(value); @@ -14889,7 +15071,7 @@ public Builder mergeDataStats(com.google.cloud.aiplatform.v1.Model.DataStats val dataStatsBuilder_.mergeFrom(value); } if (dataStats_ != null) { - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; onChanged(); } return this; @@ -14907,7 +15089,7 @@ public Builder mergeDataStats(com.google.cloud.aiplatform.v1.Model.DataStats val * .google.cloud.aiplatform.v1.Model.DataStats data_stats = 21; */ public Builder clearDataStats() { - bitField0_ = (bitField0_ & ~0x02000000); + bitField0_ = (bitField0_ & ~0x04000000); dataStats_ = null; if (dataStatsBuilder_ != null) { dataStatsBuilder_.dispose(); @@ -14929,7 +15111,7 @@ public Builder clearDataStats() { * .google.cloud.aiplatform.v1.Model.DataStats data_stats = 21; */ public com.google.cloud.aiplatform.v1.Model.DataStats.Builder getDataStatsBuilder() { - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; onChanged(); return getDataStatsFieldBuilder().getBuilder(); } @@ -15002,7 +15184,7 @@ public com.google.cloud.aiplatform.v1.Model.DataStatsOrBuilder getDataStatsOrBui * @return Whether the encryptionSpec field is set. */ public boolean hasEncryptionSpec() { - return ((bitField0_ & 0x04000000) != 0); + return ((bitField0_ & 0x08000000) != 0); } /** * @@ -15044,7 +15226,7 @@ public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec v } else { encryptionSpecBuilder_.setMessage(value); } - bitField0_ |= 0x04000000; + bitField0_ |= 0x08000000; onChanged(); return this; } @@ -15065,7 +15247,7 @@ public Builder setEncryptionSpec( } else { encryptionSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x04000000; + bitField0_ |= 0x08000000; onChanged(); return this; } @@ -15081,7 +15263,7 @@ public Builder setEncryptionSpec( */ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec value) { if (encryptionSpecBuilder_ == null) { - if (((bitField0_ & 0x04000000) != 0) + if (((bitField0_ & 0x08000000) != 0) && encryptionSpec_ != null && encryptionSpec_ != com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance()) { @@ -15093,7 +15275,7 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec encryptionSpecBuilder_.mergeFrom(value); } if (encryptionSpec_ != null) { - bitField0_ |= 0x04000000; + bitField0_ |= 0x08000000; onChanged(); } return this; @@ -15109,7 +15291,7 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 24; */ public Builder clearEncryptionSpec() { - bitField0_ = (bitField0_ & ~0x04000000); + bitField0_ = (bitField0_ & ~0x08000000); encryptionSpec_ = null; if (encryptionSpecBuilder_ != null) { encryptionSpecBuilder_.dispose(); @@ -15129,7 +15311,7 @@ public Builder clearEncryptionSpec() { * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 24; */ public com.google.cloud.aiplatform.v1.EncryptionSpec.Builder getEncryptionSpecBuilder() { - bitField0_ |= 0x04000000; + bitField0_ |= 0x08000000; onChanged(); return getEncryptionSpecFieldBuilder().getBuilder(); } @@ -15201,7 +15383,7 @@ public com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder getEncryptionSpecO * @return Whether the modelSourceInfo field is set. */ public boolean hasModelSourceInfo() { - return ((bitField0_ & 0x08000000) != 0); + return ((bitField0_ & 0x10000000) != 0); } /** * @@ -15249,7 +15431,7 @@ public Builder setModelSourceInfo(com.google.cloud.aiplatform.v1.ModelSourceInfo } else { modelSourceInfoBuilder_.setMessage(value); } - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -15273,7 +15455,7 @@ public Builder setModelSourceInfo( } else { modelSourceInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -15292,7 +15474,7 @@ public Builder setModelSourceInfo( */ public Builder mergeModelSourceInfo(com.google.cloud.aiplatform.v1.ModelSourceInfo value) { if (modelSourceInfoBuilder_ == null) { - if (((bitField0_ & 0x08000000) != 0) + if (((bitField0_ & 0x10000000) != 0) && modelSourceInfo_ != null && modelSourceInfo_ != com.google.cloud.aiplatform.v1.ModelSourceInfo.getDefaultInstance()) { @@ -15304,7 +15486,7 @@ public Builder mergeModelSourceInfo(com.google.cloud.aiplatform.v1.ModelSourceIn modelSourceInfoBuilder_.mergeFrom(value); } if (modelSourceInfo_ != null) { - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; onChanged(); } return this; @@ -15323,7 +15505,7 @@ public Builder mergeModelSourceInfo(com.google.cloud.aiplatform.v1.ModelSourceIn * */ public Builder clearModelSourceInfo() { - bitField0_ = (bitField0_ & ~0x08000000); + bitField0_ = (bitField0_ & ~0x10000000); modelSourceInfo_ = null; if (modelSourceInfoBuilder_ != null) { modelSourceInfoBuilder_.dispose(); @@ -15346,7 +15528,7 @@ public Builder clearModelSourceInfo() { * */ public com.google.cloud.aiplatform.v1.ModelSourceInfo.Builder getModelSourceInfoBuilder() { - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; onChanged(); return getModelSourceInfoFieldBuilder().getBuilder(); } @@ -15423,7 +15605,7 @@ public com.google.cloud.aiplatform.v1.ModelSourceInfoOrBuilder getModelSourceInf * @return Whether the originalModelInfo field is set. */ public boolean hasOriginalModelInfo() { - return ((bitField0_ & 0x10000000) != 0); + return ((bitField0_ & 0x20000000) != 0); } /** * @@ -15470,7 +15652,7 @@ public Builder setOriginalModelInfo( } else { originalModelInfoBuilder_.setMessage(value); } - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; onChanged(); return this; } @@ -15493,7 +15675,7 @@ public Builder setOriginalModelInfo( } else { originalModelInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; onChanged(); return this; } @@ -15512,7 +15694,7 @@ public Builder setOriginalModelInfo( public Builder mergeOriginalModelInfo( com.google.cloud.aiplatform.v1.Model.OriginalModelInfo value) { if (originalModelInfoBuilder_ == null) { - if (((bitField0_ & 0x10000000) != 0) + if (((bitField0_ & 0x20000000) != 0) && originalModelInfo_ != null && originalModelInfo_ != com.google.cloud.aiplatform.v1.Model.OriginalModelInfo.getDefaultInstance()) { @@ -15524,7 +15706,7 @@ public Builder mergeOriginalModelInfo( originalModelInfoBuilder_.mergeFrom(value); } if (originalModelInfo_ != null) { - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; onChanged(); } return this; @@ -15542,7 +15724,7 @@ public Builder mergeOriginalModelInfo( * */ public Builder clearOriginalModelInfo() { - bitField0_ = (bitField0_ & ~0x10000000); + bitField0_ = (bitField0_ & ~0x20000000); originalModelInfo_ = null; if (originalModelInfoBuilder_ != null) { originalModelInfoBuilder_.dispose(); @@ -15565,7 +15747,7 @@ public Builder clearOriginalModelInfo() { */ public com.google.cloud.aiplatform.v1.Model.OriginalModelInfo.Builder getOriginalModelInfoBuilder() { - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; onChanged(); return getOriginalModelInfoFieldBuilder().getBuilder(); } @@ -15691,7 +15873,7 @@ public Builder setMetadataArtifact(java.lang.String value) { throw new NullPointerException(); } metadataArtifact_ = value; - bitField0_ |= 0x20000000; + bitField0_ |= 0x40000000; onChanged(); return this; } @@ -15711,7 +15893,7 @@ public Builder setMetadataArtifact(java.lang.String value) { */ public Builder clearMetadataArtifact() { metadataArtifact_ = getDefaultInstance().getMetadataArtifact(); - bitField0_ = (bitField0_ & ~0x20000000); + bitField0_ = (bitField0_ & ~0x40000000); onChanged(); return this; } @@ -15736,7 +15918,7 @@ public Builder setMetadataArtifactBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); metadataArtifact_ = value; - bitField0_ |= 0x20000000; + bitField0_ |= 0x40000000; onChanged(); return this; } @@ -15762,7 +15944,7 @@ public Builder setMetadataArtifactBytes(com.google.protobuf.ByteString value) { * @return Whether the baseModelSource field is set. */ public boolean hasBaseModelSource() { - return ((bitField0_ & 0x40000000) != 0); + return ((bitField0_ & 0x80000000) != 0); } /** * @@ -15808,7 +15990,7 @@ public Builder setBaseModelSource(com.google.cloud.aiplatform.v1.Model.BaseModel } else { baseModelSourceBuilder_.setMessage(value); } - bitField0_ |= 0x40000000; + bitField0_ |= 0x80000000; onChanged(); return this; } @@ -15831,7 +16013,7 @@ public Builder setBaseModelSource( } else { baseModelSourceBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x40000000; + bitField0_ |= 0x80000000; onChanged(); return this; } @@ -15850,7 +16032,7 @@ public Builder setBaseModelSource( public Builder mergeBaseModelSource( com.google.cloud.aiplatform.v1.Model.BaseModelSource value) { if (baseModelSourceBuilder_ == null) { - if (((bitField0_ & 0x40000000) != 0) + if (((bitField0_ & 0x80000000) != 0) && baseModelSource_ != null && baseModelSource_ != com.google.cloud.aiplatform.v1.Model.BaseModelSource.getDefaultInstance()) { @@ -15862,7 +16044,7 @@ public Builder mergeBaseModelSource( baseModelSourceBuilder_.mergeFrom(value); } if (baseModelSource_ != null) { - bitField0_ |= 0x40000000; + bitField0_ |= 0x80000000; onChanged(); } return this; @@ -15880,7 +16062,7 @@ public Builder mergeBaseModelSource( * */ public Builder clearBaseModelSource() { - bitField0_ = (bitField0_ & ~0x40000000); + bitField0_ = (bitField0_ & ~0x80000000); baseModelSource_ = null; if (baseModelSourceBuilder_ != null) { baseModelSourceBuilder_.dispose(); @@ -15903,7 +16085,7 @@ public Builder clearBaseModelSource() { */ public com.google.cloud.aiplatform.v1.Model.BaseModelSource.Builder getBaseModelSourceBuilder() { - bitField0_ |= 0x40000000; + bitField0_ |= 0x80000000; onChanged(); return getBaseModelSourceFieldBuilder().getBuilder(); } @@ -15989,7 +16171,7 @@ public boolean getSatisfiesPzs() { public Builder setSatisfiesPzs(boolean value) { satisfiesPzs_ = value; - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000001; onChanged(); return this; } @@ -16005,7 +16187,7 @@ public Builder setSatisfiesPzs(boolean value) { * @return This builder for chaining. */ public Builder clearSatisfiesPzs() { - bitField0_ = (bitField0_ & ~0x80000000); + bitField1_ = (bitField1_ & ~0x00000001); satisfiesPzs_ = false; onChanged(); return this; @@ -16042,7 +16224,7 @@ public boolean getSatisfiesPzi() { public Builder setSatisfiesPzi(boolean value) { satisfiesPzi_ = value; - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000002; onChanged(); return this; } @@ -16058,7 +16240,7 @@ public Builder setSatisfiesPzi(boolean value) { * @return This builder for chaining. */ public Builder clearSatisfiesPzi() { - bitField1_ = (bitField1_ & ~0x00000001); + bitField1_ = (bitField1_ & ~0x00000002); satisfiesPzi_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelOrBuilder.java index 46d821002cab..e365eaff9cea 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelOrBuilder.java @@ -328,6 +328,31 @@ public interface ModelOrBuilder */ com.google.protobuf.ByteString getVersionDescriptionBytes(); + /** + * + * + *
+   * The default checkpoint id of a model version.
+   * 
+ * + * string default_checkpoint_id = 53; + * + * @return The defaultCheckpointId. + */ + java.lang.String getDefaultCheckpointId(); + /** + * + * + *
+   * The default checkpoint id of a model version.
+   * 
+ * + * string default_checkpoint_id = 53; + * + * @return The bytes for defaultCheckpointId. + */ + com.google.protobuf.ByteString getDefaultCheckpointIdBytes(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelProto.java index f029f2625c91..dc342225800a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelProto.java @@ -107,113 +107,113 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "e/cloud/aiplatform/v1/explanation.proto\032" + "\036google/protobuf/duration.proto\032\034google/" + "protobuf/struct.proto\032\037google/protobuf/t" - + "imestamp.proto\"\267\025\n\005Model\022\014\n\004name\030\001 \001(\t\022\032" + + "imestamp.proto\"\326\025\n\005Model\022\014\n\004name\030\001 \001(\t\022\032" + "\n\nversion_id\030\034 \001(\tB\006\340A\005\340A\003\022\027\n\017version_al" + "iases\030\035 \003(\t\022<\n\023version_create_time\030\037 \001(\013" + "2\032.google.protobuf.TimestampB\003\340A\003\022<\n\023ver" + "sion_update_time\030 \001(\0132\032.google.protobuf" + ".TimestampB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340" + "A\002\022\023\n\013description\030\003 \001(\t\022\033\n\023version_descr" - + "iption\030\036 \001(\t\022E\n\020predict_schemata\030\004 \001(\0132+" - + ".google.cloud.aiplatform.v1.PredictSchem" - + "ata\022 \n\023metadata_schema_uri\030\005 \001(\tB\003\340A\005\022-\n" - + "\010metadata\030\006 \001(\0132\026.google.protobuf.ValueB" - + "\003\340A\005\022U\n\030supported_export_formats\030\024 \003(\0132." - + ".google.cloud.aiplatform.v1.Model.Export" - + "FormatB\003\340A\003\022M\n\021training_pipeline\030\007 \001(\tB2" - + "\340A\003\372A,\n*aiplatform.googleapis.com/Traini" - + "ngPipeline\022C\n\014pipeline_job\030/ \001(\tB-\340A\001\372A\'" - + "\n%aiplatform.googleapis.com/PipelineJob\022" - + "K\n\016container_spec\030\t \001(\0132..google.cloud.a" - + "iplatform.v1.ModelContainerSpecB\003\340A\004\022\031\n\014" - + "artifact_uri\030\032 \001(\tB\003\340A\005\022l\n$supported_dep" - + "loyment_resources_types\030\n \003(\01629.google.c" - + "loud.aiplatform.v1.Model.DeploymentResou" - + "rcesTypeB\003\340A\003\022,\n\037supported_input_storage" - + "_formats\030\013 \003(\tB\003\340A\003\022-\n supported_output_" - + "storage_formats\030\014 \003(\tB\003\340A\003\0224\n\013create_tim" - + "e\030\r \001(\0132\032.google.protobuf.TimestampB\003\340A\003" - + "\0224\n\013update_time\030\016 \001(\0132\032.google.protobuf." - + "TimestampB\003\340A\003\022J\n\017deployed_models\030\017 \003(\0132" - + ",.google.cloud.aiplatform.v1.DeployedMod" - + "elRefB\003\340A\003\022E\n\020explanation_spec\030\027 \001(\0132+.g" - + "oogle.cloud.aiplatform.v1.ExplanationSpe" - + "c\022\014\n\004etag\030\020 \001(\t\022=\n\006labels\030\021 \003(\0132-.google" - + ".cloud.aiplatform.v1.Model.LabelsEntry\022?" - + "\n\ndata_stats\030\025 \001(\0132+.google.cloud.aiplat" - + "form.v1.Model.DataStats\022C\n\017encryption_sp" - + "ec\030\030 \001(\0132*.google.cloud.aiplatform.v1.En" - + "cryptionSpec\022K\n\021model_source_info\030& \001(\0132" - + "+.google.cloud.aiplatform.v1.ModelSource" - + "InfoB\003\340A\003\022U\n\023original_model_info\030\" \001(\01323" - + ".google.cloud.aiplatform.v1.Model.Origin" - + "alModelInfoB\003\340A\003\022\036\n\021metadata_artifact\030, " - + "\001(\tB\003\340A\003\022Q\n\021base_model_source\0302 \001(\01321.go" - + "ogle.cloud.aiplatform.v1.Model.BaseModel" - + "SourceB\003\340A\001\022\032\n\rsatisfies_pzs\0303 \001(\010B\003\340A\003\022" - + "\032\n\rsatisfies_pzi\0304 \001(\010B\003\340A\003\032\325\001\n\014ExportFo" - + "rmat\022\017\n\002id\030\001 \001(\tB\003\340A\003\022b\n\023exportable_cont" - + "ents\030\002 \003(\0162@.google.cloud.aiplatform.v1." - + "Model.ExportFormat.ExportableContentB\003\340A" - + "\003\"P\n\021ExportableContent\022\"\n\036EXPORTABLE_CON" - + "TENT_UNSPECIFIED\020\000\022\014\n\010ARTIFACT\020\001\022\t\n\005IMAG" - + "E\020\002\032\334\001\n\tDataStats\022!\n\031training_data_items" - + "_count\030\001 \001(\003\022#\n\033validation_data_items_co" - + "unt\030\002 \001(\003\022\035\n\025test_data_items_count\030\003 \001(\003" - + "\022\"\n\032training_annotations_count\030\004 \001(\003\022$\n\034" - + "validation_annotations_count\030\005 \001(\003\022\036\n\026te" - + "st_annotations_count\030\006 \001(\003\032K\n\021OriginalMo" - + "delInfo\0226\n\005model\030\001 \001(\tB\'\340A\003\372A!\n\037aiplatfo" - + "rm.googleapis.com/Model\032\252\001\n\017BaseModelSou" - + "rce\022L\n\023model_garden_source\030\001 \001(\0132-.googl" - + "e.cloud.aiplatform.v1.ModelGardenSourceH" - + "\000\022?\n\014genie_source\030\002 \001(\0132\'.google.cloud.a" - + "iplatform.v1.GenieSourceH\000B\010\n\006source\032-\n\013" - + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" - + "\0028\001\"\214\001\n\027DeploymentResourcesType\022)\n%DEPLO" - + "YMENT_RESOURCES_TYPE_UNSPECIFIED\020\000\022\027\n\023DE" - + "DICATED_RESOURCES\020\001\022\027\n\023AUTOMATIC_RESOURC" - + "ES\020\002\022\024\n\020SHARED_RESOURCES\020\003:\\\352AY\n\037aiplatf" - + "orm.googleapis.com/Model\0226projects/{proj" - + "ect}/locations/{location}/models/{model}" - + "\"(\n\023LargeModelReference\022\021\n\004name\030\001 \001(\tB\003\340" - + "A\002\"3\n\021ModelGardenSource\022\036\n\021public_model_" - + "name\030\001 \001(\tB\003\340A\002\"*\n\013GenieSource\022\033\n\016base_m" - + "odel_uri\030\001 \001(\tB\003\340A\002\"{\n\017PredictSchemata\022 " - + "\n\023instance_schema_uri\030\001 \001(\tB\003\340A\005\022\"\n\025para" - + "meters_schema_uri\030\002 \001(\tB\003\340A\005\022\"\n\025predicti" - + "on_schema_uri\030\003 \001(\tB\003\340A\005\"\223\004\n\022ModelContai" - + "nerSpec\022\031\n\timage_uri\030\001 \001(\tB\006\340A\002\340A\005\022\024\n\007co" - + "mmand\030\002 \003(\tB\003\340A\005\022\021\n\004args\030\003 \003(\tB\003\340A\005\0224\n\003e" - + "nv\030\004 \003(\0132\".google.cloud.aiplatform.v1.En" - + "vVarB\003\340A\005\0224\n\005ports\030\005 \003(\0132 .google.cloud." - + "aiplatform.v1.PortB\003\340A\005\022\032\n\rpredict_route" - + "\030\006 \001(\tB\003\340A\005\022\031\n\014health_route\030\007 \001(\tB\003\340A\005\0229" - + "\n\ngrpc_ports\030\t \003(\0132 .google.cloud.aiplat" - + "form.v1.PortB\003\340A\005\022:\n\022deployment_timeout\030" - + "\n \001(\0132\031.google.protobuf.DurationB\003\340A\005\022\"\n" - + "\025shared_memory_size_mb\030\013 \001(\003B\003\340A\005\022=\n\rsta" - + "rtup_probe\030\014 \001(\0132!.google.cloud.aiplatfo" - + "rm.v1.ProbeB\003\340A\005\022<\n\014health_probe\030\r \001(\0132!" - + ".google.cloud.aiplatform.v1.ProbeB\003\340A\005\"\036" - + "\n\004Port\022\026\n\016container_port\030\003 \001(\005\"\223\002\n\017Model" - + "SourceInfo\022P\n\013source_type\030\001 \001(\0162;.google" - + ".cloud.aiplatform.v1.ModelSourceInfo.Mod" - + "elSourceType\022\014\n\004copy\030\002 \001(\010\"\237\001\n\017ModelSour" - + "ceType\022!\n\035MODEL_SOURCE_TYPE_UNSPECIFIED\020" - + "\000\022\n\n\006AUTOML\020\001\022\n\n\006CUSTOM\020\002\022\010\n\004BQML\020\003\022\020\n\014M" - + "ODEL_GARDEN\020\004\022\t\n\005GENIE\020\005\022\031\n\025CUSTOM_TEXT_" - + "EMBEDDING\020\006\022\017\n\013MARKETPLACE\020\007\"\243\001\n\005Probe\022<" - + "\n\004exec\030\001 \001(\0132,.google.cloud.aiplatform.v" - + "1.Probe.ExecActionH\000\022\026\n\016period_seconds\030\002" - + " \001(\005\022\027\n\017timeout_seconds\030\003 \001(\005\032\035\n\nExecAct" - + "ion\022\017\n\007command\030\001 \003(\tB\014\n\nprobe_typeB\310\001\n\036c" - + "om.google.cloud.aiplatform.v1B\nModelProt" - + "oP\001Z>cloud.google.com/go/aiplatform/apiv" - + "1/aiplatformpb;aiplatformpb\252\002\032Google.Clo" - + "ud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatfo" - + "rm\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006p" - + "roto3" + + "iption\030\036 \001(\t\022\035\n\025default_checkpoint_id\0305 " + + "\001(\t\022E\n\020predict_schemata\030\004 \001(\0132+.google.c" + + "loud.aiplatform.v1.PredictSchemata\022 \n\023me" + + "tadata_schema_uri\030\005 \001(\tB\003\340A\005\022-\n\010metadata" + + "\030\006 \001(\0132\026.google.protobuf.ValueB\003\340A\005\022U\n\030s" + + "upported_export_formats\030\024 \003(\0132..google.c" + + "loud.aiplatform.v1.Model.ExportFormatB\003\340" + + "A\003\022M\n\021training_pipeline\030\007 \001(\tB2\340A\003\372A,\n*a" + + "iplatform.googleapis.com/TrainingPipelin" + + "e\022C\n\014pipeline_job\030/ \001(\tB-\340A\001\372A\'\n%aiplatf" + + "orm.googleapis.com/PipelineJob\022K\n\016contai" + + "ner_spec\030\t \001(\0132..google.cloud.aiplatform" + + ".v1.ModelContainerSpecB\003\340A\004\022\031\n\014artifact_" + + "uri\030\032 \001(\tB\003\340A\005\022l\n$supported_deployment_r" + + "esources_types\030\n \003(\01629.google.cloud.aipl" + + "atform.v1.Model.DeploymentResourcesTypeB" + + "\003\340A\003\022,\n\037supported_input_storage_formats\030" + + "\013 \003(\tB\003\340A\003\022-\n supported_output_storage_f" + + "ormats\030\014 \003(\tB\003\340A\003\0224\n\013create_time\030\r \001(\0132\032" + + ".google.protobuf.TimestampB\003\340A\003\0224\n\013updat" + + "e_time\030\016 \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\022J\n\017deployed_models\030\017 \003(\0132,.google." + + "cloud.aiplatform.v1.DeployedModelRefB\003\340A" + + "\003\022E\n\020explanation_spec\030\027 \001(\0132+.google.clo" + + "ud.aiplatform.v1.ExplanationSpec\022\014\n\004etag" + + "\030\020 \001(\t\022=\n\006labels\030\021 \003(\0132-.google.cloud.ai" + + "platform.v1.Model.LabelsEntry\022?\n\ndata_st" + + "ats\030\025 \001(\0132+.google.cloud.aiplatform.v1.M" + + "odel.DataStats\022C\n\017encryption_spec\030\030 \001(\0132" + + "*.google.cloud.aiplatform.v1.EncryptionS" + + "pec\022K\n\021model_source_info\030& \001(\0132+.google." + + "cloud.aiplatform.v1.ModelSourceInfoB\003\340A\003" + + "\022U\n\023original_model_info\030\" \001(\01323.google.c" + + "loud.aiplatform.v1.Model.OriginalModelIn" + + "foB\003\340A\003\022\036\n\021metadata_artifact\030, \001(\tB\003\340A\003\022" + + "Q\n\021base_model_source\0302 \001(\01321.google.clou" + + "d.aiplatform.v1.Model.BaseModelSourceB\003\340" + + "A\001\022\032\n\rsatisfies_pzs\0303 \001(\010B\003\340A\003\022\032\n\rsatisf" + + "ies_pzi\0304 \001(\010B\003\340A\003\032\325\001\n\014ExportFormat\022\017\n\002i" + + "d\030\001 \001(\tB\003\340A\003\022b\n\023exportable_contents\030\002 \003(" + + "\0162@.google.cloud.aiplatform.v1.Model.Exp" + + "ortFormat.ExportableContentB\003\340A\003\"P\n\021Expo" + + "rtableContent\022\"\n\036EXPORTABLE_CONTENT_UNSP" + + "ECIFIED\020\000\022\014\n\010ARTIFACT\020\001\022\t\n\005IMAGE\020\002\032\334\001\n\tD" + + "ataStats\022!\n\031training_data_items_count\030\001 " + + "\001(\003\022#\n\033validation_data_items_count\030\002 \001(\003" + + "\022\035\n\025test_data_items_count\030\003 \001(\003\022\"\n\032train" + + "ing_annotations_count\030\004 \001(\003\022$\n\034validatio" + + "n_annotations_count\030\005 \001(\003\022\036\n\026test_annota" + + "tions_count\030\006 \001(\003\032K\n\021OriginalModelInfo\0226" + + "\n\005model\030\001 \001(\tB\'\340A\003\372A!\n\037aiplatform.google" + + "apis.com/Model\032\252\001\n\017BaseModelSource\022L\n\023mo" + + "del_garden_source\030\001 \001(\0132-.google.cloud.a" + + "iplatform.v1.ModelGardenSourceH\000\022?\n\014geni" + + "e_source\030\002 \001(\0132\'.google.cloud.aiplatform" + + ".v1.GenieSourceH\000B\010\n\006source\032-\n\013LabelsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\214\001\n\027D" + + "eploymentResourcesType\022)\n%DEPLOYMENT_RES" + + "OURCES_TYPE_UNSPECIFIED\020\000\022\027\n\023DEDICATED_R" + + "ESOURCES\020\001\022\027\n\023AUTOMATIC_RESOURCES\020\002\022\024\n\020S" + + "HARED_RESOURCES\020\003:\\\352AY\n\037aiplatform.googl" + + "eapis.com/Model\0226projects/{project}/loca" + + "tions/{location}/models/{model}\"(\n\023Large" + + "ModelReference\022\021\n\004name\030\001 \001(\tB\003\340A\002\"3\n\021Mod" + + "elGardenSource\022\036\n\021public_model_name\030\001 \001(" + + "\tB\003\340A\002\"*\n\013GenieSource\022\033\n\016base_model_uri\030" + + "\001 \001(\tB\003\340A\002\"{\n\017PredictSchemata\022 \n\023instanc" + + "e_schema_uri\030\001 \001(\tB\003\340A\005\022\"\n\025parameters_sc" + + "hema_uri\030\002 \001(\tB\003\340A\005\022\"\n\025prediction_schema" + + "_uri\030\003 \001(\tB\003\340A\005\"\223\004\n\022ModelContainerSpec\022\031" + + "\n\timage_uri\030\001 \001(\tB\006\340A\002\340A\005\022\024\n\007command\030\002 \003" + + "(\tB\003\340A\005\022\021\n\004args\030\003 \003(\tB\003\340A\005\0224\n\003env\030\004 \003(\0132" + + "\".google.cloud.aiplatform.v1.EnvVarB\003\340A\005" + + "\0224\n\005ports\030\005 \003(\0132 .google.cloud.aiplatfor" + + "m.v1.PortB\003\340A\005\022\032\n\rpredict_route\030\006 \001(\tB\003\340" + + "A\005\022\031\n\014health_route\030\007 \001(\tB\003\340A\005\0229\n\ngrpc_po" + + "rts\030\t \003(\0132 .google.cloud.aiplatform.v1.P" + + "ortB\003\340A\005\022:\n\022deployment_timeout\030\n \001(\0132\031.g" + + "oogle.protobuf.DurationB\003\340A\005\022\"\n\025shared_m" + + "emory_size_mb\030\013 \001(\003B\003\340A\005\022=\n\rstartup_prob" + + "e\030\014 \001(\0132!.google.cloud.aiplatform.v1.Pro" + + "beB\003\340A\005\022<\n\014health_probe\030\r \001(\0132!.google.c" + + "loud.aiplatform.v1.ProbeB\003\340A\005\"\036\n\004Port\022\026\n" + + "\016container_port\030\003 \001(\005\"\223\002\n\017ModelSourceInf" + + "o\022P\n\013source_type\030\001 \001(\0162;.google.cloud.ai" + + "platform.v1.ModelSourceInfo.ModelSourceT" + + "ype\022\014\n\004copy\030\002 \001(\010\"\237\001\n\017ModelSourceType\022!\n" + + "\035MODEL_SOURCE_TYPE_UNSPECIFIED\020\000\022\n\n\006AUTO" + + "ML\020\001\022\n\n\006CUSTOM\020\002\022\010\n\004BQML\020\003\022\020\n\014MODEL_GARD" + + "EN\020\004\022\t\n\005GENIE\020\005\022\031\n\025CUSTOM_TEXT_EMBEDDING" + + "\020\006\022\017\n\013MARKETPLACE\020\007\"\243\001\n\005Probe\022<\n\004exec\030\001 " + + "\001(\0132,.google.cloud.aiplatform.v1.Probe.E" + + "xecActionH\000\022\026\n\016period_seconds\030\002 \001(\005\022\027\n\017t" + + "imeout_seconds\030\003 \001(\005\032\035\n\nExecAction\022\017\n\007co" + + "mmand\030\001 \003(\tB\014\n\nprobe_typeB\310\001\n\036com.google" + + ".cloud.aiplatform.v1B\nModelProtoP\001Z>clou" + + "d.google.com/go/aiplatform/apiv1/aiplatf" + + "ormpb;aiplatformpb\252\002\032Google.Cloud.AIPlat" + + "form.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035G" + + "oogle::Cloud::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -243,6 +243,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayName", "Description", "VersionDescription", + "DefaultCheckpointId", "PredictSchemata", "MetadataSchemaUri", "Metadata", diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceProto.java index fbd4b9217492..974f07244cf5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceProto.java @@ -60,6 +60,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_ListModelVersionsResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_ListModelVersionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ListModelVersionCheckpointsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ListModelVersionCheckpointsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ModelVersionCheckpoint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ModelVersionCheckpoint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ListModelVersionCheckpointsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ListModelVersionCheckpointsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1_UpdateModelRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -217,205 +229,220 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".google.protobuf.FieldMask\022\020\n\010order_by\030\006" + " \001(\t\"g\n\031ListModelVersionsResponse\0221\n\006mod" + "els\030\001 \003(\0132!.google.cloud.aiplatform.v1.M" - + "odel\022\027\n\017next_page_token\030\002 \001(\t\"\201\001\n\022Update" - + "ModelRequest\0225\n\005model\030\001 \001(\0132!.google.clo" - + "ud.aiplatform.v1.ModelB\003\340A\002\0224\n\013update_ma" - + "sk\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A" - + "\002\"\221\001\n\037UpdateExplanationDatasetRequest\0226\n" - + "\005model\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform.googlea" - + "pis.com/Model\0226\n\010examples\030\002 \001(\0132$.google" - + ".cloud.aiplatform.v1.Examples\"{\n)UpdateE" - + "xplanationDatasetOperationMetadata\022N\n\020ge" - + "neric_metadata\030\001 \001(\01324.google.cloud.aipl" - + "atform.v1.GenericOperationMetadata\"K\n\022De" - + "leteModelRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037" - + "aiplatform.googleapis.com/Model\"R\n\031Delet" - + "eModelVersionRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372" - + "A!\n\037aiplatform.googleapis.com/Model\"q\n\032M" - + "ergeVersionAliasesRequest\0225\n\004name\030\001 \001(\tB" - + "\'\340A\002\372A!\n\037aiplatform.googleapis.com/Model" - + "\022\034\n\017version_aliases\030\002 \003(\tB\003\340A\002\"\356\002\n\022Expor" - + "tModelRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037aip" - + "latform.googleapis.com/Model\022W\n\routput_c" - + "onfig\030\002 \001(\0132;.google.cloud.aiplatform.v1" - + ".ExportModelRequest.OutputConfigB\003\340A\002\032\307\001" - + "\n\014OutputConfig\022\030\n\020export_format_id\030\001 \001(\t" - + "\022H\n\024artifact_destination\030\003 \001(\0132*.google." - + "cloud.aiplatform.v1.GcsDestination\022S\n\021im" - + "age_destination\030\004 \001(\01328.google.cloud.aip" - + "latform.v1.ContainerRegistryDestination\"" - + "\234\002\n\034ExportModelOperationMetadata\022N\n\020gene" - + "ric_metadata\030\001 \001(\01324.google.cloud.aiplat" - + "form.v1.GenericOperationMetadata\022]\n\013outp" - + "ut_info\030\002 \001(\0132C.google.cloud.aiplatform." - + "v1.ExportModelOperationMetadata.OutputIn" - + "foB\003\340A\003\032M\n\nOutputInfo\022 \n\023artifact_output" - + "_uri\030\002 \001(\tB\003\340A\003\022\035\n\020image_output_uri\030\003 \001(" - + "\tB\003\340A\003\"\"\n UpdateExplanationDatasetRespon" - + "se\"\025\n\023ExportModelResponse\"\300\002\n\020CopyModelR" - + "equest\022\027\n\010model_id\030\004 \001(\tB\003\340A\001H\000\022?\n\014paren" - + "t_model\030\005 \001(\tB\'\340A\001\372A!\n\037aiplatform.google" - + "apis.com/ModelH\000\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#" - + "\n!locations.googleapis.com/Location\022=\n\014s" - + "ource_model\030\002 \001(\tB\'\340A\002\372A!\n\037aiplatform.go" - + "ogleapis.com/Model\022C\n\017encryption_spec\030\003 " - + "\001(\0132*.google.cloud.aiplatform.v1.Encrypt" - + "ionSpecB\023\n\021destination_model\"l\n\032CopyMode" - + "lOperationMetadata\022N\n\020generic_metadata\030\001" - + " \001(\01324.google.cloud.aiplatform.v1.Generi" - + "cOperationMetadata\"g\n\021CopyModelResponse\022" - + "3\n\005model\030\001 \001(\tB$\372A!\n\037aiplatform.googleap" - + "is.com/Model\022\035\n\020model_version_id\030\002 \001(\tB\003" - + "\340A\003\"\243\001\n\034ImportModelEvaluationRequest\0227\n\006" - + "parent\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform.googlea" - + "pis.com/Model\022J\n\020model_evaluation\030\002 \001(\0132" - + "+.google.cloud.aiplatform.v1.ModelEvalua" - + "tionB\003\340A\002\"\304\001\n\'BatchImportModelEvaluation" - + "SlicesRequest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\n)a" - + "iplatform.googleapis.com/ModelEvaluation" - + "\022V\n\027model_evaluation_slices\030\002 \003(\01320.goog" - + "le.cloud.aiplatform.v1.ModelEvaluationSl" - + "iceB\003\340A\002\"Y\n(BatchImportModelEvaluationSl" - + "icesResponse\022-\n imported_model_evaluatio" - + "n_slices\030\001 \003(\tB\003\340A\003\"\305\001\n&BatchImportEvalu" - + "atedAnnotationsRequest\022F\n\006parent\030\001 \001(\tB6" - + "\340A\002\372A0\n.aiplatform.googleapis.com/ModelE" - + "valuationSlice\022S\n\025evaluated_annotations\030" - + "\002 \003(\0132/.google.cloud.aiplatform.v1.Evalu" - + "atedAnnotationB\003\340A\002\"\\\n\'BatchImportEvalua" - + "tedAnnotationsResponse\0221\n$imported_evalu" - + "ated_annotations_count\030\001 \001(\005B\003\340A\003\"\\\n\031Get" - + "ModelEvaluationRequest\022?\n\004name\030\001 \001(\tB1\340A" - + "\002\372A+\n)aiplatform.googleapis.com/ModelEva" - + "luation\"\274\001\n\033ListModelEvaluationsRequest\022" - + "7\n\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform.goog" - + "leapis.com/Model\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage" - + "_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022-\n\tread_" - + "mask\030\005 \001(\0132\032.google.protobuf.FieldMask\"\177" - + "\n\034ListModelEvaluationsResponse\022F\n\021model_" - + "evaluations\030\001 \003(\0132+.google.cloud.aiplatf" - + "orm.v1.ModelEvaluation\022\027\n\017next_page_toke" - + "n\030\002 \001(\t\"f\n\036GetModelEvaluationSliceReques" - + "t\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n.aiplatform.goog" - + "leapis.com/ModelEvaluationSlice\"\313\001\n List" - + "ModelEvaluationSlicesRequest\022A\n\006parent\030\001" - + " \001(\tB1\340A\002\372A+\n)aiplatform.googleapis.com/" - + "ModelEvaluation\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_" + + "odel\022\027\n\017next_page_token\030\002 \001(\t\"\214\001\n\"ListMo" + + "delVersionCheckpointsRequest\0225\n\004name\030\001 \001" + + "(\tB\'\340A\002\372A!\n\037aiplatform.googleapis.com/Mo" + + "del\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\"L\n\026ModelVersionCheckpoint\022\025" + + "\n\rcheckpoint_id\030\001 \001(\t\022\r\n\005epoch\030\002 \001(\003\022\014\n\004" + + "step\030\003 \001(\003\"\207\001\n#ListModelVersionCheckpoin" + + "tsResponse\022G\n\013checkpoints\030\001 \003(\01322.google" + + ".cloud.aiplatform.v1.ModelVersionCheckpo" + + "int\022\027\n\017next_page_token\030\002 \001(\t\"\201\001\n\022UpdateM" + + "odelRequest\0225\n\005model\030\001 \001(\0132!.google.clou" + + "d.aiplatform.v1.ModelB\003\340A\002\0224\n\013update_mas" + + "k\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002" + + "\"\221\001\n\037UpdateExplanationDatasetRequest\0226\n\005" + + "model\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform.googleap" + + "is.com/Model\0226\n\010examples\030\002 \001(\0132$.google." + + "cloud.aiplatform.v1.Examples\"{\n)UpdateEx" + + "planationDatasetOperationMetadata\022N\n\020gen" + + "eric_metadata\030\001 \001(\01324.google.cloud.aipla" + + "tform.v1.GenericOperationMetadata\"K\n\022Del" + + "eteModelRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037a" + + "iplatform.googleapis.com/Model\"R\n\031Delete" + + "ModelVersionRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A" + + "!\n\037aiplatform.googleapis.com/Model\"q\n\032Me" + + "rgeVersionAliasesRequest\0225\n\004name\030\001 \001(\tB\'" + + "\340A\002\372A!\n\037aiplatform.googleapis.com/Model\022" + + "\034\n\017version_aliases\030\002 \003(\tB\003\340A\002\"\356\002\n\022Export" + + "ModelRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037aipl" + + "atform.googleapis.com/Model\022W\n\routput_co" + + "nfig\030\002 \001(\0132;.google.cloud.aiplatform.v1." + + "ExportModelRequest.OutputConfigB\003\340A\002\032\307\001\n" + + "\014OutputConfig\022\030\n\020export_format_id\030\001 \001(\t\022" + + "H\n\024artifact_destination\030\003 \001(\0132*.google.c" + + "loud.aiplatform.v1.GcsDestination\022S\n\021ima" + + "ge_destination\030\004 \001(\01328.google.cloud.aipl" + + "atform.v1.ContainerRegistryDestination\"\234" + + "\002\n\034ExportModelOperationMetadata\022N\n\020gener" + + "ic_metadata\030\001 \001(\01324.google.cloud.aiplatf" + + "orm.v1.GenericOperationMetadata\022]\n\013outpu" + + "t_info\030\002 \001(\0132C.google.cloud.aiplatform.v" + + "1.ExportModelOperationMetadata.OutputInf" + + "oB\003\340A\003\032M\n\nOutputInfo\022 \n\023artifact_output_" + + "uri\030\002 \001(\tB\003\340A\003\022\035\n\020image_output_uri\030\003 \001(\t" + + "B\003\340A\003\"\"\n UpdateExplanationDatasetRespons" + + "e\"\025\n\023ExportModelResponse\"\300\002\n\020CopyModelRe" + + "quest\022\027\n\010model_id\030\004 \001(\tB\003\340A\001H\000\022?\n\014parent" + + "_model\030\005 \001(\tB\'\340A\001\372A!\n\037aiplatform.googlea" + + "pis.com/ModelH\000\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\022=\n\014so" + + "urce_model\030\002 \001(\tB\'\340A\002\372A!\n\037aiplatform.goo" + + "gleapis.com/Model\022C\n\017encryption_spec\030\003 \001" + + "(\0132*.google.cloud.aiplatform.v1.Encrypti" + + "onSpecB\023\n\021destination_model\"l\n\032CopyModel" + + "OperationMetadata\022N\n\020generic_metadata\030\001 " + + "\001(\01324.google.cloud.aiplatform.v1.Generic" + + "OperationMetadata\"g\n\021CopyModelResponse\0223" + + "\n\005model\030\001 \001(\tB$\372A!\n\037aiplatform.googleapi" + + "s.com/Model\022\035\n\020model_version_id\030\002 \001(\tB\003\340" + + "A\003\"\243\001\n\034ImportModelEvaluationRequest\0227\n\006p" + + "arent\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform.googleap" + + "is.com/Model\022J\n\020model_evaluation\030\002 \001(\0132+" + + ".google.cloud.aiplatform.v1.ModelEvaluat" + + "ionB\003\340A\002\"\304\001\n\'BatchImportModelEvaluationS" + + "licesRequest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\n)ai" + + "platform.googleapis.com/ModelEvaluation\022" + + "V\n\027model_evaluation_slices\030\002 \003(\01320.googl" + + "e.cloud.aiplatform.v1.ModelEvaluationSli" + + "ceB\003\340A\002\"Y\n(BatchImportModelEvaluationSli" + + "cesResponse\022-\n imported_model_evaluation" + + "_slices\030\001 \003(\tB\003\340A\003\"\305\001\n&BatchImportEvalua" + + "tedAnnotationsRequest\022F\n\006parent\030\001 \001(\tB6\340" + + "A\002\372A0\n.aiplatform.googleapis.com/ModelEv" + + "aluationSlice\022S\n\025evaluated_annotations\030\002" + + " \003(\0132/.google.cloud.aiplatform.v1.Evalua" + + "tedAnnotationB\003\340A\002\"\\\n\'BatchImportEvaluat" + + "edAnnotationsResponse\0221\n$imported_evalua" + + "ted_annotations_count\030\001 \001(\005B\003\340A\003\"\\\n\031GetM" + + "odelEvaluationRequest\022?\n\004name\030\001 \001(\tB1\340A\002" + + "\372A+\n)aiplatform.googleapis.com/ModelEval" + + "uation\"\274\001\n\033ListModelEvaluationsRequest\0227" + + "\n\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform.googl" + + "eapis.com/Model\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_" + "size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022-\n\tread_m" - + "ask\030\005 \001(\0132\032.google.protobuf.FieldMask\"\217\001" - + "\n!ListModelEvaluationSlicesResponse\022Q\n\027m" - + "odel_evaluation_slices\030\001 \003(\01320.google.cl" - + "oud.aiplatform.v1.ModelEvaluationSlice\022\027" - + "\n\017next_page_token\030\002 \001(\t2\235 \n\014ModelService" - + "\022\340\001\n\013UploadModel\022..google.cloud.aiplatfo" - + "rm.v1.UploadModelRequest\032\035.google.longru" - + "nning.Operation\"\201\001\312A3\n\023UploadModelRespon" - + "se\022\034UploadModelOperationMetadata\332A\014paren" - + "t,model\202\323\344\223\0026\"1/v1/{parent=projects/*/lo" - + "cations/*}/models:upload:\001*\022\225\001\n\010GetModel" - + "\022+.google.cloud.aiplatform.v1.GetModelRe" - + "quest\032!.google.cloud.aiplatform.v1.Model" - + "\"9\332A\004name\202\323\344\223\002,\022*/v1/{name=projects/*/lo" - + "cations/*/models/*}\022\250\001\n\nListModels\022-.goo" - + "gle.cloud.aiplatform.v1.ListModelsReques" - + "t\032..google.cloud.aiplatform.v1.ListModel" - + "sResponse\";\332A\006parent\202\323\344\223\002,\022*/v1/{parent=" - + "projects/*/locations/*}/models\022\310\001\n\021ListM" - + "odelVersions\0224.google.cloud.aiplatform.v" - + "1.ListModelVersionsRequest\0325.google.clou" - + "d.aiplatform.v1.ListModelVersionsRespons" - + "e\"F\332A\004name\202\323\344\223\0029\0227/v1/{name=projects/*/l" - + "ocations/*/models/*}:listVersions\022\265\001\n\013Up" - + "dateModel\022..google.cloud.aiplatform.v1.U" - + "pdateModelRequest\032!.google.cloud.aiplatf" - + "orm.v1.Model\"S\332A\021model,update_mask\202\323\344\223\0029" - + "20/v1/{model.name=projects/*/locations/*" - + "/models/*}:\005model\022\240\002\n\030UpdateExplanationD" - + "ataset\022;.google.cloud.aiplatform.v1.Upda" - + "teExplanationDatasetRequest\032\035.google.lon" - + "grunning.Operation\"\247\001\312AM\n UpdateExplanat" - + "ionDatasetResponse\022)UpdateExplanationDat" - + "asetOperationMetadata\332A\005model\202\323\344\223\002I\"D/v1" - + "/{model=projects/*/locations/*/models/*}" - + ":updateExplanationDataset:\001*\022\312\001\n\013DeleteM" - + "odel\022..google.cloud.aiplatform.v1.Delete" - + "ModelRequest\032\035.google.longrunning.Operat" - + "ion\"l\312A0\n\025google.protobuf.Empty\022\027DeleteO" - + "perationMetadata\332A\004name\202\323\344\223\002,**/v1/{name" - + "=projects/*/locations/*/models/*}\022\346\001\n\022De" - + "leteModelVersion\0225.google.cloud.aiplatfo" - + "rm.v1.DeleteModelVersionRequest\032\035.google" - + ".longrunning.Operation\"z\312A0\n\025google.prot" - + "obuf.Empty\022\027DeleteOperationMetadata\332A\004na" - + "me\202\323\344\223\002:*8/v1/{name=projects/*/locations" - + "/*/models/*}:deleteVersion\022\322\001\n\023MergeVers" - + "ionAliases\0226.google.cloud.aiplatform.v1." - + "MergeVersionAliasesRequest\032!.google.clou" - + "d.aiplatform.v1.Model\"`\332A\024name,version_a" - + "liases\202\323\344\223\002C\">/v1/{name=projects/*/locat" - + "ions/*/models/*}:mergeVersionAliases:\001*\022" - + "\346\001\n\013ExportModel\022..google.cloud.aiplatfor" - + "m.v1.ExportModelRequest\032\035.google.longrun" - + "ning.Operation\"\207\001\312A3\n\023ExportModelRespons" - + "e\022\034ExportModelOperationMetadata\332A\022name,o" - + "utput_config\202\323\344\223\0026\"1/v1/{name=projects/*" - + "/locations/*/models/*}:export:\001*\022\335\001\n\tCop" - + "yModel\022,.google.cloud.aiplatform.v1.Copy" - + "ModelRequest\032\035.google.longrunning.Operat" - + "ion\"\202\001\312A/\n\021CopyModelResponse\022\032CopyModelO" - + "perationMetadata\332A\023parent,source_model\202\323" - + "\344\223\0024\"//v1/{parent=projects/*/locations/*" - + "}/models:copy:\001*\022\344\001\n\025ImportModelEvaluati" - + "on\0228.google.cloud.aiplatform.v1.ImportMo" - + "delEvaluationRequest\032+.google.cloud.aipl" - + "atform.v1.ModelEvaluation\"d\332A\027parent,mod" - + "el_evaluation\202\323\344\223\002D\"?/v1/{parent=project" - + "s/*/locations/*/models/*}/evaluations:im" - + "port:\001*\022\250\002\n BatchImportModelEvaluationSl" - + "ices\022C.google.cloud.aiplatform.v1.BatchI" - + "mportModelEvaluationSlicesRequest\032D.goog" - + "le.cloud.aiplatform.v1.BatchImportModelE" - + "valuationSlicesResponse\"y\332A\036parent,model" - + "_evaluation_slices\202\323\344\223\002R\"M/v1/{parent=pr" - + "ojects/*/locations/*/models/*/evaluation" - + "s/*}/slices:batchImport:\001*\022\245\002\n\037BatchImpo" - + "rtEvaluatedAnnotations\022B.google.cloud.ai" - + "platform.v1.BatchImportEvaluatedAnnotati" - + "onsRequest\032C.google.cloud.aiplatform.v1." - + "BatchImportEvaluatedAnnotationsResponse\"" - + "y\332A\034parent,evaluated_annotations\202\323\344\223\002T\"O" - + "/v1/{parent=projects/*/locations/*/model" - + "s/*/evaluations/*/slices/*}:batchImport:" - + "\001*\022\301\001\n\022GetModelEvaluation\0225.google.cloud" - + ".aiplatform.v1.GetModelEvaluationRequest" - + "\032+.google.cloud.aiplatform.v1.ModelEvalu" - + "ation\"G\332A\004name\202\323\344\223\002:\0228/v1/{name=projects" - + "/*/locations/*/models/*/evaluations/*}\022\324" - + "\001\n\024ListModelEvaluations\0227.google.cloud.a" - + "iplatform.v1.ListModelEvaluationsRequest" - + "\0328.google.cloud.aiplatform.v1.ListModelE" - + "valuationsResponse\"I\332A\006parent\202\323\344\223\002:\0228/v1" - + "/{parent=projects/*/locations/*/models/*" - + "}/evaluations\022\331\001\n\027GetModelEvaluationSlic" - + "e\022:.google.cloud.aiplatform.v1.GetModelE" - + "valuationSliceRequest\0320.google.cloud.aip" - + "latform.v1.ModelEvaluationSlice\"P\332A\004name" - + "\202\323\344\223\002C\022A/v1/{name=projects/*/locations/*" - + "/models/*/evaluations/*/slices/*}\022\354\001\n\031Li" - + "stModelEvaluationSlices\022<.google.cloud.a" - + "iplatform.v1.ListModelEvaluationSlicesRe" - + "quest\032=.google.cloud.aiplatform.v1.ListM" - + "odelEvaluationSlicesResponse\"R\332A\006parent\202" - + "\323\344\223\002C\022A/v1/{parent=projects/*/locations/" - + "*/models/*/evaluations/*}/slices\032M\312A\031aip" - + "latform.googleapis.com\322A.https://www.goo" - + "gleapis.com/auth/cloud-platformB\317\001\n\036com." - + "google.cloud.aiplatform.v1B\021ModelService" - + "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" + + "ask\030\005 \001(\0132\032.google.protobuf.FieldMask\"\177\n" + + "\034ListModelEvaluationsResponse\022F\n\021model_e" + + "valuations\030\001 \003(\0132+.google.cloud.aiplatfo" + + "rm.v1.ModelEvaluation\022\027\n\017next_page_token" + + "\030\002 \001(\t\"f\n\036GetModelEvaluationSliceRequest" + + "\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n.aiplatform.googl" + + "eapis.com/ModelEvaluationSlice\"\313\001\n ListM" + + "odelEvaluationSlicesRequest\022A\n\006parent\030\001 " + + "\001(\tB1\340A\002\372A+\n)aiplatform.googleapis.com/M" + + "odelEvaluation\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_s" + + "ize\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022-\n\tread_ma" + + "sk\030\005 \001(\0132\032.google.protobuf.FieldMask\"\217\001\n" + + "!ListModelEvaluationSlicesResponse\022Q\n\027mo" + + "del_evaluation_slices\030\001 \003(\01320.google.clo" + + "ud.aiplatform.v1.ModelEvaluationSlice\022\027\n" + + "\017next_page_token\030\002 \001(\t2\211\"\n\014ModelService\022" + + "\340\001\n\013UploadModel\022..google.cloud.aiplatfor" + + "m.v1.UploadModelRequest\032\035.google.longrun" + + "ning.Operation\"\201\001\312A3\n\023UploadModelRespons" + + "e\022\034UploadModelOperationMetadata\332A\014parent" + + ",model\202\323\344\223\0026\"1/v1/{parent=projects/*/loc" + + "ations/*}/models:upload:\001*\022\225\001\n\010GetModel\022" + + "+.google.cloud.aiplatform.v1.GetModelReq" + + "uest\032!.google.cloud.aiplatform.v1.Model\"" + + "9\332A\004name\202\323\344\223\002,\022*/v1/{name=projects/*/loc" + + "ations/*/models/*}\022\250\001\n\nListModels\022-.goog" + + "le.cloud.aiplatform.v1.ListModelsRequest" + + "\032..google.cloud.aiplatform.v1.ListModels" + + "Response\";\332A\006parent\202\323\344\223\002,\022*/v1/{parent=p" + + "rojects/*/locations/*}/models\022\310\001\n\021ListMo" + + "delVersions\0224.google.cloud.aiplatform.v1" + + ".ListModelVersionsRequest\0325.google.cloud" + + ".aiplatform.v1.ListModelVersionsResponse" + + "\"F\332A\004name\202\323\344\223\0029\0227/v1/{name=projects/*/lo" + + "cations/*/models/*}:listVersions\022\351\001\n\033Lis" + + "tModelVersionCheckpoints\022>.google.cloud." + + "aiplatform.v1.ListModelVersionCheckpoint" + + "sRequest\032?.google.cloud.aiplatform.v1.Li" + + "stModelVersionCheckpointsResponse\"I\332A\004na" + + "me\202\323\344\223\002<\022:/v1/{name=projects/*/locations" + + "/*/models/*}:listCheckpoints\022\265\001\n\013UpdateM" + + "odel\022..google.cloud.aiplatform.v1.Update" + + "ModelRequest\032!.google.cloud.aiplatform.v" + + "1.Model\"S\332A\021model,update_mask\202\323\344\223\002920/v1" + + "/{model.name=projects/*/locations/*/mode" + + "ls/*}:\005model\022\240\002\n\030UpdateExplanationDatase" + + "t\022;.google.cloud.aiplatform.v1.UpdateExp" + + "lanationDatasetRequest\032\035.google.longrunn" + + "ing.Operation\"\247\001\312AM\n UpdateExplanationDa" + + "tasetResponse\022)UpdateExplanationDatasetO" + + "perationMetadata\332A\005model\202\323\344\223\002I\"D/v1/{mod" + + "el=projects/*/locations/*/models/*}:upda" + + "teExplanationDataset:\001*\022\312\001\n\013DeleteModel\022" + + "..google.cloud.aiplatform.v1.DeleteModel" + + "Request\032\035.google.longrunning.Operation\"l" + + "\312A0\n\025google.protobuf.Empty\022\027DeleteOperat" + + "ionMetadata\332A\004name\202\323\344\223\002,**/v1/{name=proj" + + "ects/*/locations/*/models/*}\022\346\001\n\022DeleteM" + + "odelVersion\0225.google.cloud.aiplatform.v1" + + ".DeleteModelVersionRequest\032\035.google.long" + + "running.Operation\"z\312A0\n\025google.protobuf." + + "Empty\022\027DeleteOperationMetadata\332A\004name\202\323\344" + + "\223\002:*8/v1/{name=projects/*/locations/*/mo" + + "dels/*}:deleteVersion\022\322\001\n\023MergeVersionAl" + + "iases\0226.google.cloud.aiplatform.v1.Merge" + + "VersionAliasesRequest\032!.google.cloud.aip" + + "latform.v1.Model\"`\332A\024name,version_aliase" + + "s\202\323\344\223\002C\">/v1/{name=projects/*/locations/" + + "*/models/*}:mergeVersionAliases:\001*\022\346\001\n\013E" + + "xportModel\022..google.cloud.aiplatform.v1." + + "ExportModelRequest\032\035.google.longrunning." + + "Operation\"\207\001\312A3\n\023ExportModelResponse\022\034Ex" + + "portModelOperationMetadata\332A\022name,output" + + "_config\202\323\344\223\0026\"1/v1/{name=projects/*/loca" + + "tions/*/models/*}:export:\001*\022\335\001\n\tCopyMode" + + "l\022,.google.cloud.aiplatform.v1.CopyModel" + + "Request\032\035.google.longrunning.Operation\"\202" + + "\001\312A/\n\021CopyModelResponse\022\032CopyModelOperat" + + "ionMetadata\332A\023parent,source_model\202\323\344\223\0024\"" + + "//v1/{parent=projects/*/locations/*}/mod" + + "els:copy:\001*\022\344\001\n\025ImportModelEvaluation\0228." + + "google.cloud.aiplatform.v1.ImportModelEv" + + "aluationRequest\032+.google.cloud.aiplatfor" + + "m.v1.ModelEvaluation\"d\332A\027parent,model_ev" + + "aluation\202\323\344\223\002D\"?/v1/{parent=projects/*/l" + + "ocations/*/models/*}/evaluations:import:" + + "\001*\022\250\002\n BatchImportModelEvaluationSlices\022" + + "C.google.cloud.aiplatform.v1.BatchImport" + + "ModelEvaluationSlicesRequest\032D.google.cl" + + "oud.aiplatform.v1.BatchImportModelEvalua" + + "tionSlicesResponse\"y\332A\036parent,model_eval" + + "uation_slices\202\323\344\223\002R\"M/v1/{parent=project" + + "s/*/locations/*/models/*/evaluations/*}/" + + "slices:batchImport:\001*\022\245\002\n\037BatchImportEva" + + "luatedAnnotations\022B.google.cloud.aiplatf" + + "orm.v1.BatchImportEvaluatedAnnotationsRe" + + "quest\032C.google.cloud.aiplatform.v1.Batch" + + "ImportEvaluatedAnnotationsResponse\"y\332A\034p" + + "arent,evaluated_annotations\202\323\344\223\002T\"O/v1/{" + + "parent=projects/*/locations/*/models/*/e" + + "valuations/*/slices/*}:batchImport:\001*\022\301\001" + + "\n\022GetModelEvaluation\0225.google.cloud.aipl" + + "atform.v1.GetModelEvaluationRequest\032+.go" + + "ogle.cloud.aiplatform.v1.ModelEvaluation" + + "\"G\332A\004name\202\323\344\223\002:\0228/v1/{name=projects/*/lo" + + "cations/*/models/*/evaluations/*}\022\324\001\n\024Li" + + "stModelEvaluations\0227.google.cloud.aiplat" + + "form.v1.ListModelEvaluationsRequest\0328.go" + + "ogle.cloud.aiplatform.v1.ListModelEvalua" + + "tionsResponse\"I\332A\006parent\202\323\344\223\002:\0228/v1/{par" + + "ent=projects/*/locations/*/models/*}/eva" + + "luations\022\331\001\n\027GetModelEvaluationSlice\022:.g" + + "oogle.cloud.aiplatform.v1.GetModelEvalua" + + "tionSliceRequest\0320.google.cloud.aiplatfo" + + "rm.v1.ModelEvaluationSlice\"P\332A\004name\202\323\344\223\002" + + "C\022A/v1/{name=projects/*/locations/*/mode" + + "ls/*/evaluations/*/slices/*}\022\354\001\n\031ListMod" + + "elEvaluationSlices\022<.google.cloud.aiplat" + + "form.v1.ListModelEvaluationSlicesRequest" + + "\032=.google.cloud.aiplatform.v1.ListModelE" + + "valuationSlicesResponse\"R\332A\006parent\202\323\344\223\002C" + + "\022A/v1/{parent=projects/*/locations/*/mod" + + "els/*/evaluations/*}/slices\032M\312A\031aiplatfo" + + "rm.googleapis.com\322A.https://www.googleap" + + "is.com/auth/cloud-platformB\317\001\n\036com.googl" + + "e.cloud.aiplatform.v1B\021ModelServiceProto" + + "P\001Z>cloud.google.com/go/aiplatform/apiv1" + + "/aiplatformpb;aiplatformpb\252\002\032Google.Clou" + + "d.AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatfor" + + "m\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006pr" + + "oto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -501,8 +528,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Models", "NextPageToken", }); - internal_static_google_cloud_aiplatform_v1_UpdateModelRequest_descriptor = + internal_static_google_cloud_aiplatform_v1_ListModelVersionCheckpointsRequest_descriptor = getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_aiplatform_v1_ListModelVersionCheckpointsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_ListModelVersionCheckpointsRequest_descriptor, + new java.lang.String[] { + "Name", "PageSize", "PageToken", + }); + internal_static_google_cloud_aiplatform_v1_ModelVersionCheckpoint_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_aiplatform_v1_ModelVersionCheckpoint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_ModelVersionCheckpoint_descriptor, + new java.lang.String[] { + "CheckpointId", "Epoch", "Step", + }); + internal_static_google_cloud_aiplatform_v1_ListModelVersionCheckpointsResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_aiplatform_v1_ListModelVersionCheckpointsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_ListModelVersionCheckpointsResponse_descriptor, + new java.lang.String[] { + "Checkpoints", "NextPageToken", + }); + internal_static_google_cloud_aiplatform_v1_UpdateModelRequest_descriptor = + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_aiplatform_v1_UpdateModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_UpdateModelRequest_descriptor, @@ -510,7 +561,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Model", "UpdateMask", }); internal_static_google_cloud_aiplatform_v1_UpdateExplanationDatasetRequest_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_aiplatform_v1_UpdateExplanationDatasetRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_UpdateExplanationDatasetRequest_descriptor, @@ -518,7 +569,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Model", "Examples", }); internal_static_google_cloud_aiplatform_v1_UpdateExplanationDatasetOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_aiplatform_v1_UpdateExplanationDatasetOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_UpdateExplanationDatasetOperationMetadata_descriptor, @@ -526,7 +577,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GenericMetadata", }); internal_static_google_cloud_aiplatform_v1_DeleteModelRequest_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_aiplatform_v1_DeleteModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_DeleteModelRequest_descriptor, @@ -534,7 +585,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_aiplatform_v1_DeleteModelVersionRequest_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_aiplatform_v1_DeleteModelVersionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_DeleteModelVersionRequest_descriptor, @@ -542,7 +593,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_aiplatform_v1_MergeVersionAliasesRequest_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_aiplatform_v1_MergeVersionAliasesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_MergeVersionAliasesRequest_descriptor, @@ -550,7 +601,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "VersionAliases", }); internal_static_google_cloud_aiplatform_v1_ExportModelRequest_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_aiplatform_v1_ExportModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ExportModelRequest_descriptor, @@ -568,7 +619,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExportFormatId", "ArtifactDestination", "ImageDestination", }); internal_static_google_cloud_aiplatform_v1_ExportModelOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_aiplatform_v1_ExportModelOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ExportModelOperationMetadata_descriptor, @@ -586,19 +637,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ArtifactOutputUri", "ImageOutputUri", }); internal_static_google_cloud_aiplatform_v1_UpdateExplanationDatasetResponse_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_aiplatform_v1_UpdateExplanationDatasetResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_UpdateExplanationDatasetResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_aiplatform_v1_ExportModelResponse_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_aiplatform_v1_ExportModelResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ExportModelResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_aiplatform_v1_CopyModelRequest_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_aiplatform_v1_CopyModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_CopyModelRequest_descriptor, @@ -611,7 +662,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DestinationModel", }); internal_static_google_cloud_aiplatform_v1_CopyModelOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_aiplatform_v1_CopyModelOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_CopyModelOperationMetadata_descriptor, @@ -619,7 +670,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GenericMetadata", }); internal_static_google_cloud_aiplatform_v1_CopyModelResponse_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_aiplatform_v1_CopyModelResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_CopyModelResponse_descriptor, @@ -627,7 +678,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Model", "ModelVersionId", }); internal_static_google_cloud_aiplatform_v1_ImportModelEvaluationRequest_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_aiplatform_v1_ImportModelEvaluationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ImportModelEvaluationRequest_descriptor, @@ -635,7 +686,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "ModelEvaluation", }); internal_static_google_cloud_aiplatform_v1_BatchImportModelEvaluationSlicesRequest_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_aiplatform_v1_BatchImportModelEvaluationSlicesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_BatchImportModelEvaluationSlicesRequest_descriptor, @@ -643,7 +694,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "ModelEvaluationSlices", }); internal_static_google_cloud_aiplatform_v1_BatchImportModelEvaluationSlicesResponse_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_aiplatform_v1_BatchImportModelEvaluationSlicesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_BatchImportModelEvaluationSlicesResponse_descriptor, @@ -651,7 +702,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ImportedModelEvaluationSlices", }); internal_static_google_cloud_aiplatform_v1_BatchImportEvaluatedAnnotationsRequest_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_aiplatform_v1_BatchImportEvaluatedAnnotationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_BatchImportEvaluatedAnnotationsRequest_descriptor, @@ -659,7 +710,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "EvaluatedAnnotations", }); internal_static_google_cloud_aiplatform_v1_BatchImportEvaluatedAnnotationsResponse_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_aiplatform_v1_BatchImportEvaluatedAnnotationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_BatchImportEvaluatedAnnotationsResponse_descriptor, @@ -667,7 +718,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ImportedEvaluatedAnnotationsCount", }); internal_static_google_cloud_aiplatform_v1_GetModelEvaluationRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_aiplatform_v1_GetModelEvaluationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_GetModelEvaluationRequest_descriptor, @@ -675,7 +726,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_aiplatform_v1_ListModelEvaluationsRequest_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_aiplatform_v1_ListModelEvaluationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ListModelEvaluationsRequest_descriptor, @@ -683,7 +734,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "PageSize", "PageToken", "ReadMask", }); internal_static_google_cloud_aiplatform_v1_ListModelEvaluationsResponse_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_aiplatform_v1_ListModelEvaluationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ListModelEvaluationsResponse_descriptor, @@ -691,7 +742,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ModelEvaluations", "NextPageToken", }); internal_static_google_cloud_aiplatform_v1_GetModelEvaluationSliceRequest_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_aiplatform_v1_GetModelEvaluationSliceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_GetModelEvaluationSliceRequest_descriptor, @@ -699,7 +750,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_aiplatform_v1_ListModelEvaluationSlicesRequest_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_aiplatform_v1_ListModelEvaluationSlicesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ListModelEvaluationSlicesRequest_descriptor, @@ -707,7 +758,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "PageSize", "PageToken", "ReadMask", }); internal_static_google_cloud_aiplatform_v1_ListModelEvaluationSlicesResponse_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(34); internal_static_google_cloud_aiplatform_v1_ListModelEvaluationSlicesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ListModelEvaluationSlicesResponse_descriptor, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelVersionCheckpoint.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelVersionCheckpoint.java new file mode 100644 index 000000000000..66cd76fd236e --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelVersionCheckpoint.java @@ -0,0 +1,814 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/model_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * A proto representation of a Spanner-stored ModelVersionCheckpoint.
+ * The meaning of the fields is equivalent to their in-Spanner counterparts.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ModelVersionCheckpoint} + */ +public final class ModelVersionCheckpoint extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ModelVersionCheckpoint) + ModelVersionCheckpointOrBuilder { + private static final long serialVersionUID = 0L; + // Use ModelVersionCheckpoint.newBuilder() to construct. + private ModelVersionCheckpoint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ModelVersionCheckpoint() { + checkpointId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ModelVersionCheckpoint(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1_ModelVersionCheckpoint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1_ModelVersionCheckpoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ModelVersionCheckpoint.class, + com.google.cloud.aiplatform.v1.ModelVersionCheckpoint.Builder.class); + } + + public static final int CHECKPOINT_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object checkpointId_ = ""; + /** + * + * + *
+   * The ID of the checkpoint.
+   * 
+ * + * string checkpoint_id = 1; + * + * @return The checkpointId. + */ + @java.lang.Override + public java.lang.String getCheckpointId() { + java.lang.Object ref = checkpointId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + checkpointId_ = s; + return s; + } + } + /** + * + * + *
+   * The ID of the checkpoint.
+   * 
+ * + * string checkpoint_id = 1; + * + * @return The bytes for checkpointId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCheckpointIdBytes() { + java.lang.Object ref = checkpointId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + checkpointId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EPOCH_FIELD_NUMBER = 2; + private long epoch_ = 0L; + /** + * + * + *
+   * The epoch of the checkpoint.
+   * 
+ * + * int64 epoch = 2; + * + * @return The epoch. + */ + @java.lang.Override + public long getEpoch() { + return epoch_; + } + + public static final int STEP_FIELD_NUMBER = 3; + private long step_ = 0L; + /** + * + * + *
+   * The step of the checkpoint.
+   * 
+ * + * int64 step = 3; + * + * @return The step. + */ + @java.lang.Override + public long getStep() { + return step_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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(checkpointId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, checkpointId_); + } + if (epoch_ != 0L) { + output.writeInt64(2, epoch_); + } + if (step_ != 0L) { + output.writeInt64(3, step_); + } + 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(checkpointId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, checkpointId_); + } + if (epoch_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, epoch_); + } + if (step_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, step_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.ModelVersionCheckpoint)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ModelVersionCheckpoint other = + (com.google.cloud.aiplatform.v1.ModelVersionCheckpoint) obj; + + if (!getCheckpointId().equals(other.getCheckpointId())) return false; + if (getEpoch() != other.getEpoch()) return false; + if (getStep() != other.getStep()) return false; + if (!getUnknownFields().equals(other.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) + CHECKPOINT_ID_FIELD_NUMBER; + hash = (53 * hash) + getCheckpointId().hashCode(); + hash = (37 * hash) + EPOCH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEpoch()); + hash = (37 * hash) + STEP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getStep()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.ModelVersionCheckpoint parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ModelVersionCheckpoint parseFrom( + 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.ModelVersionCheckpoint parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ModelVersionCheckpoint parseFrom( + com.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.ModelVersionCheckpoint parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ModelVersionCheckpoint 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.ModelVersionCheckpoint parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ModelVersionCheckpoint parseFrom( + java.io.InputStream 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.ModelVersionCheckpoint parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ModelVersionCheckpoint parseDelimitedFrom( + java.io.InputStream 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.ModelVersionCheckpoint 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.ModelVersionCheckpoint parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.ModelVersionCheckpoint prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 proto representation of a Spanner-stored ModelVersionCheckpoint.
+   * The meaning of the fields is equivalent to their in-Spanner counterparts.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ModelVersionCheckpoint} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ModelVersionCheckpoint) + com.google.cloud.aiplatform.v1.ModelVersionCheckpointOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1_ModelVersionCheckpoint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1_ModelVersionCheckpoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ModelVersionCheckpoint.class, + com.google.cloud.aiplatform.v1.ModelVersionCheckpoint.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.ModelVersionCheckpoint.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + checkpointId_ = ""; + epoch_ = 0L; + step_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1_ModelVersionCheckpoint_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ModelVersionCheckpoint getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ModelVersionCheckpoint.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ModelVersionCheckpoint build() { + com.google.cloud.aiplatform.v1.ModelVersionCheckpoint result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ModelVersionCheckpoint buildPartial() { + com.google.cloud.aiplatform.v1.ModelVersionCheckpoint result = + new com.google.cloud.aiplatform.v1.ModelVersionCheckpoint(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ModelVersionCheckpoint result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.checkpointId_ = checkpointId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.epoch_ = epoch_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.step_ = step_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.ModelVersionCheckpoint) { + return mergeFrom((com.google.cloud.aiplatform.v1.ModelVersionCheckpoint) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.ModelVersionCheckpoint other) { + if (other == com.google.cloud.aiplatform.v1.ModelVersionCheckpoint.getDefaultInstance()) + return this; + if (!other.getCheckpointId().isEmpty()) { + checkpointId_ = other.checkpointId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getEpoch() != 0L) { + setEpoch(other.getEpoch()); + } + if (other.getStep() != 0L) { + setStep(other.getStep()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + checkpointId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + epoch_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + step_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object checkpointId_ = ""; + /** + * + * + *
+     * The ID of the checkpoint.
+     * 
+ * + * string checkpoint_id = 1; + * + * @return The checkpointId. + */ + public java.lang.String getCheckpointId() { + java.lang.Object ref = checkpointId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + checkpointId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The ID of the checkpoint.
+     * 
+ * + * string checkpoint_id = 1; + * + * @return The bytes for checkpointId. + */ + public com.google.protobuf.ByteString getCheckpointIdBytes() { + java.lang.Object ref = checkpointId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + checkpointId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The ID of the checkpoint.
+     * 
+ * + * string checkpoint_id = 1; + * + * @param value The checkpointId to set. + * @return This builder for chaining. + */ + public Builder setCheckpointId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + checkpointId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The ID of the checkpoint.
+     * 
+ * + * string checkpoint_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearCheckpointId() { + checkpointId_ = getDefaultInstance().getCheckpointId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The ID of the checkpoint.
+     * 
+ * + * string checkpoint_id = 1; + * + * @param value The bytes for checkpointId to set. + * @return This builder for chaining. + */ + public Builder setCheckpointIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + checkpointId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private long epoch_; + /** + * + * + *
+     * The epoch of the checkpoint.
+     * 
+ * + * int64 epoch = 2; + * + * @return The epoch. + */ + @java.lang.Override + public long getEpoch() { + return epoch_; + } + /** + * + * + *
+     * The epoch of the checkpoint.
+     * 
+ * + * int64 epoch = 2; + * + * @param value The epoch to set. + * @return This builder for chaining. + */ + public Builder setEpoch(long value) { + + epoch_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The epoch of the checkpoint.
+     * 
+ * + * int64 epoch = 2; + * + * @return This builder for chaining. + */ + public Builder clearEpoch() { + bitField0_ = (bitField0_ & ~0x00000002); + epoch_ = 0L; + onChanged(); + return this; + } + + private long step_; + /** + * + * + *
+     * The step of the checkpoint.
+     * 
+ * + * int64 step = 3; + * + * @return The step. + */ + @java.lang.Override + public long getStep() { + return step_; + } + /** + * + * + *
+     * The step of the checkpoint.
+     * 
+ * + * int64 step = 3; + * + * @param value The step to set. + * @return This builder for chaining. + */ + public Builder setStep(long value) { + + step_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The step of the checkpoint.
+     * 
+ * + * int64 step = 3; + * + * @return This builder for chaining. + */ + public Builder clearStep() { + bitField0_ = (bitField0_ & ~0x00000004); + step_ = 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.ModelVersionCheckpoint) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ModelVersionCheckpoint) + private static final com.google.cloud.aiplatform.v1.ModelVersionCheckpoint DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ModelVersionCheckpoint(); + } + + public static com.google.cloud.aiplatform.v1.ModelVersionCheckpoint getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModelVersionCheckpoint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.ModelVersionCheckpoint getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelVersionCheckpointOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelVersionCheckpointOrBuilder.java new file mode 100644 index 000000000000..69ee2fe37534 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelVersionCheckpointOrBuilder.java @@ -0,0 +1,77 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/model_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface ModelVersionCheckpointOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ModelVersionCheckpoint) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The ID of the checkpoint.
+   * 
+ * + * string checkpoint_id = 1; + * + * @return The checkpointId. + */ + java.lang.String getCheckpointId(); + /** + * + * + *
+   * The ID of the checkpoint.
+   * 
+ * + * string checkpoint_id = 1; + * + * @return The bytes for checkpointId. + */ + com.google.protobuf.ByteString getCheckpointIdBytes(); + + /** + * + * + *
+   * The epoch of the checkpoint.
+   * 
+ * + * int64 epoch = 2; + * + * @return The epoch. + */ + long getEpoch(); + + /** + * + * + *
+   * The step of the checkpoint.
+   * 
+ * + * int64 step = 3; + * + * @return The step. + */ + long getStep(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NearestNeighborQuery.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NearestNeighborQuery.java index 913f5e116205..b5a0f1e0b3fb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NearestNeighborQuery.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NearestNeighborQuery.java @@ -2274,11 +2274,11 @@ public interface NumericFilterOrBuilder * Numeric filter is used to search a subset of the entities by using boolean * rules on numeric columns. * For example: - * Database Point 0: {name: “a” value_int: 42} {name: “b” value_float: 1.0} - * Database Point 1: {name: “a” value_int: 10} {name: “b” value_float: 2.0} - * Database Point 2: {name: “a” value_int: -1} {name: “b” value_float: 3.0} - * Query: {name: “a” value_int: 12 operator: LESS} // Matches Point 1, 2 - * {name: “b” value_float: 2.0 operator: EQUAL} // Matches Point 1 + * Database Point 0: {name: "a" value_int: 42} {name: "b" value_float: 1.0} + * Database Point 1: {name: "a" value_int: 10} {name: "b" value_float: 2.0} + * Database Point 2: {name: "a" value_int: -1} {name: "b" value_float: 3.0} + * Query: {name: "a" value_int: 12 operator: LESS} // Matches Point 1, 2 + * {name: "b" value_float: 2.0 operator: EQUAL} // Matches Point 1 * * * Protobuf type {@code google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter} @@ -2323,7 +2323,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * Datapoints for which Operator is true relative to the query’s Value
+     * Datapoints for which Operator is true relative to the query's Value
      * field will be allowlisted.
      * 
* @@ -3079,11 +3079,11 @@ protected Builder newBuilderForType( * Numeric filter is used to search a subset of the entities by using boolean * rules on numeric columns. * For example: - * Database Point 0: {name: “a” value_int: 42} {name: “b” value_float: 1.0} - * Database Point 1: {name: “a” value_int: 10} {name: “b” value_float: 2.0} - * Database Point 2: {name: “a” value_int: -1} {name: “b” value_float: 3.0} - * Query: {name: “a” value_int: 12 operator: LESS} // Matches Point 1, 2 - * {name: “b” value_float: 2.0 operator: EQUAL} // Matches Point 1 + * Database Point 0: {name: "a" value_int: 42} {name: "b" value_float: 1.0} + * Database Point 1: {name: "a" value_int: 10} {name: "b" value_float: 2.0} + * Database Point 2: {name: "a" value_int: -1} {name: "b" value_float: 3.0} + * Query: {name: "a" value_int: 12 operator: LESS} // Matches Point 1, 2 + * {name: "b" value_float: 2.0 operator: EQUAL} // Matches Point 1 * * * Protobuf type {@code google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntime.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntime.java index a5435582f767..dd3b9c27d1d2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntime.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntime.java @@ -981,7 +981,15 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
-   * Output only. The service account that the NotebookRuntime workload runs as.
+   * Output only. Deprecated: This field is no longer used and the "Vertex AI
+   * Notebook Service Account"
+   * (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is
+   * used for the runtime workload identity.
+   * See
+   * https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account
+   * for more details.
+   *
+   * The service account that the NotebookRuntime workload runs as.
    * 
* * string service_account = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1004,7 +1012,15 @@ public java.lang.String getServiceAccount() { * * *
-   * Output only. The service account that the NotebookRuntime workload runs as.
+   * Output only. Deprecated: This field is no longer used and the "Vertex AI
+   * Notebook Service Account"
+   * (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is
+   * used for the runtime workload identity.
+   * See
+   * https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account
+   * for more details.
+   *
+   * The service account that the NotebookRuntime workload runs as.
    * 
* * string service_account = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1413,6 +1429,184 @@ public com.google.cloud.aiplatform.v1.NotebookRuntimeType getNotebookRuntimeType : result; } + public static final int MACHINE_SPEC_FIELD_NUMBER = 20; + private com.google.cloud.aiplatform.v1.MachineSpec machineSpec_; + /** + * + * + *
+   * Output only. The specification of a single machine used by the notebook
+   * runtime.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the machineSpec field is set. + */ + @java.lang.Override + public boolean hasMachineSpec() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+   * Output only. The specification of a single machine used by the notebook
+   * runtime.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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_; + } + /** + * + * + *
+   * Output only. The specification of a single machine used by the notebook
+   * runtime.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @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 DATA_PERSISTENT_DISK_SPEC_FIELD_NUMBER = 21; + private com.google.cloud.aiplatform.v1.PersistentDiskSpec dataPersistentDiskSpec_; + /** + * + * + *
+   * Output only. The specification of [persistent
+   * disk][https://cloud.google.com/compute/docs/disks/persistent-disks]
+   * attached to the notebook runtime as data disk storage.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PersistentDiskSpec data_persistent_disk_spec = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dataPersistentDiskSpec field is set. + */ + @java.lang.Override + public boolean hasDataPersistentDiskSpec() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+   * Output only. The specification of [persistent
+   * disk][https://cloud.google.com/compute/docs/disks/persistent-disks]
+   * attached to the notebook runtime as data disk storage.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PersistentDiskSpec data_persistent_disk_spec = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataPersistentDiskSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PersistentDiskSpec getDataPersistentDiskSpec() { + return dataPersistentDiskSpec_ == null + ? com.google.cloud.aiplatform.v1.PersistentDiskSpec.getDefaultInstance() + : dataPersistentDiskSpec_; + } + /** + * + * + *
+   * Output only. The specification of [persistent
+   * disk][https://cloud.google.com/compute/docs/disks/persistent-disks]
+   * attached to the notebook runtime as data disk storage.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PersistentDiskSpec data_persistent_disk_spec = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PersistentDiskSpecOrBuilder + getDataPersistentDiskSpecOrBuilder() { + return dataPersistentDiskSpec_ == null + ? com.google.cloud.aiplatform.v1.PersistentDiskSpec.getDefaultInstance() + : dataPersistentDiskSpec_; + } + + public static final int NETWORK_SPEC_FIELD_NUMBER = 22; + private com.google.cloud.aiplatform.v1.NetworkSpec networkSpec_; + /** + * + * + *
+   * Output only. Network spec of the notebook runtime.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the networkSpec field is set. + */ + @java.lang.Override + public boolean hasNetworkSpec() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
+   * Output only. Network spec of the notebook runtime.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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_; + } + /** + * + * + *
+   * Output only. Network spec of the notebook runtime.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NetworkSpecOrBuilder getNetworkSpecOrBuilder() { + return networkSpec_ == null + ? com.google.cloud.aiplatform.v1.NetworkSpec.getDefaultInstance() + : networkSpec_; + } + public static final int IDLE_SHUTDOWN_CONFIG_FIELD_NUMBER = 23; private com.google.cloud.aiplatform.v1.NotebookIdleShutdownConfig idleShutdownConfig_; /** @@ -1430,7 +1624,7 @@ public com.google.cloud.aiplatform.v1.NotebookRuntimeType getNotebookRuntimeType */ @java.lang.Override public boolean hasIdleShutdownConfig() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -1470,6 +1664,118 @@ public com.google.cloud.aiplatform.v1.NotebookIdleShutdownConfig getIdleShutdown : idleShutdownConfig_; } + public static final int EUC_CONFIG_FIELD_NUMBER = 24; + private com.google.cloud.aiplatform.v1.NotebookEucConfig eucConfig_; + /** + * + * + *
+   * Output only. EUC configuration of the notebook runtime.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookEucConfig euc_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the eucConfig field is set. + */ + @java.lang.Override + public boolean hasEucConfig() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * + * + *
+   * Output only. EUC configuration of the notebook runtime.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookEucConfig euc_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The eucConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookEucConfig getEucConfig() { + return eucConfig_ == null + ? com.google.cloud.aiplatform.v1.NotebookEucConfig.getDefaultInstance() + : eucConfig_; + } + /** + * + * + *
+   * Output only. EUC configuration of the notebook runtime.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookEucConfig euc_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.NotebookEucConfigOrBuilder getEucConfigOrBuilder() { + return eucConfig_ == null + ? com.google.cloud.aiplatform.v1.NotebookEucConfig.getDefaultInstance() + : eucConfig_; + } + + public static final int SHIELDED_VM_CONFIG_FIELD_NUMBER = 32; + private com.google.cloud.aiplatform.v1.ShieldedVmConfig shieldedVmConfig_; + /** + * + * + *
+   * Output only. Runtime Shielded VM spec.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ShieldedVmConfig shielded_vm_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the shieldedVmConfig field is set. + */ + @java.lang.Override + public boolean hasShieldedVmConfig() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * + * + *
+   * Output only. Runtime Shielded VM spec.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ShieldedVmConfig shielded_vm_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The shieldedVmConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ShieldedVmConfig getShieldedVmConfig() { + return shieldedVmConfig_ == null + ? com.google.cloud.aiplatform.v1.ShieldedVmConfig.getDefaultInstance() + : shieldedVmConfig_; + } + /** + * + * + *
+   * Output only. Runtime Shielded VM spec.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ShieldedVmConfig shielded_vm_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ShieldedVmConfigOrBuilder getShieldedVmConfigOrBuilder() { + return shieldedVmConfig_ == null + ? com.google.cloud.aiplatform.v1.ShieldedVmConfig.getDefaultInstance() + : shieldedVmConfig_; + } + public static final int NETWORK_TAGS_FIELD_NUMBER = 25; @SuppressWarnings("serial") @@ -1555,7 +1861,7 @@ public com.google.protobuf.ByteString getNetworkTagsBytes(int index) { */ @java.lang.Override public boolean hasEncryptionSpec() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -1698,12 +2004,24 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeEnum(19, notebookRuntimeType_); } if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(20, getMachineSpec()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(21, getDataPersistentDiskSpec()); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(22, getNetworkSpec()); + } + if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(23, getIdleShutdownConfig()); } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(24, getEucConfig()); + } for (int i = 0; i < networkTags_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 25, networkTags_.getRaw(i)); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { output.writeMessage(28, getEncryptionSpec()); } if (satisfiesPzs_ != false) { @@ -1712,6 +2030,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (satisfiesPzi_ != false) { output.writeBool(30, satisfiesPzi_); } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeMessage(32, getShieldedVmConfig()); + } getUnknownFields().writeTo(output); } @@ -1785,8 +2106,21 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeEnumSize(19, notebookRuntimeType_); } if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getMachineSpec()); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(21, getDataPersistentDiskSpec()); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getNetworkSpec()); + } + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getIdleShutdownConfig()); } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getEucConfig()); + } { int dataSize = 0; for (int i = 0; i < networkTags_.size(); i++) { @@ -1795,7 +2129,7 @@ public int getSerializedSize() { size += dataSize; size += 2 * getNetworkTagsList().size(); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getEncryptionSpec()); } if (satisfiesPzs_ != false) { @@ -1804,6 +2138,9 @@ public int getSerializedSize() { if (satisfiesPzi_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(30, satisfiesPzi_); } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(32, getShieldedVmConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1849,10 +2186,30 @@ public boolean equals(final java.lang.Object obj) { } if (!getVersion().equals(other.getVersion())) return false; if (notebookRuntimeType_ != other.notebookRuntimeType_) return false; + if (hasMachineSpec() != other.hasMachineSpec()) return false; + if (hasMachineSpec()) { + if (!getMachineSpec().equals(other.getMachineSpec())) return false; + } + if (hasDataPersistentDiskSpec() != other.hasDataPersistentDiskSpec()) return false; + if (hasDataPersistentDiskSpec()) { + if (!getDataPersistentDiskSpec().equals(other.getDataPersistentDiskSpec())) return false; + } + if (hasNetworkSpec() != other.hasNetworkSpec()) return false; + if (hasNetworkSpec()) { + if (!getNetworkSpec().equals(other.getNetworkSpec())) return false; + } if (hasIdleShutdownConfig() != other.hasIdleShutdownConfig()) return false; if (hasIdleShutdownConfig()) { if (!getIdleShutdownConfig().equals(other.getIdleShutdownConfig())) return false; } + if (hasEucConfig() != other.hasEucConfig()) return false; + if (hasEucConfig()) { + if (!getEucConfig().equals(other.getEucConfig())) return false; + } + if (hasShieldedVmConfig() != other.hasShieldedVmConfig()) return false; + if (hasShieldedVmConfig()) { + if (!getShieldedVmConfig().equals(other.getShieldedVmConfig())) return false; + } if (!getNetworkTagsList().equals(other.getNetworkTagsList())) return false; if (hasEncryptionSpec() != other.hasEncryptionSpec()) return false; if (hasEncryptionSpec()) { @@ -1913,10 +2270,30 @@ public int hashCode() { hash = (53 * hash) + getVersion().hashCode(); hash = (37 * hash) + NOTEBOOK_RUNTIME_TYPE_FIELD_NUMBER; hash = (53 * hash) + notebookRuntimeType_; + if (hasMachineSpec()) { + hash = (37 * hash) + MACHINE_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getMachineSpec().hashCode(); + } + if (hasDataPersistentDiskSpec()) { + hash = (37 * hash) + DATA_PERSISTENT_DISK_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getDataPersistentDiskSpec().hashCode(); + } + if (hasNetworkSpec()) { + hash = (37 * hash) + NETWORK_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getNetworkSpec().hashCode(); + } if (hasIdleShutdownConfig()) { hash = (37 * hash) + IDLE_SHUTDOWN_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getIdleShutdownConfig().hashCode(); } + if (hasEucConfig()) { + hash = (37 * hash) + EUC_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getEucConfig().hashCode(); + } + if (hasShieldedVmConfig()) { + hash = (37 * hash) + SHIELDED_VM_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getShieldedVmConfig().hashCode(); + } if (getNetworkTagsCount() > 0) { hash = (37 * hash) + NETWORK_TAGS_FIELD_NUMBER; hash = (53 * hash) + getNetworkTagsList().hashCode(); @@ -2097,7 +2474,12 @@ private void maybeForceBuilderInitialization() { getCreateTimeFieldBuilder(); getUpdateTimeFieldBuilder(); getExpirationTimeFieldBuilder(); + getMachineSpecFieldBuilder(); + getDataPersistentDiskSpecFieldBuilder(); + getNetworkSpecFieldBuilder(); getIdleShutdownConfigFieldBuilder(); + getEucConfigFieldBuilder(); + getShieldedVmConfigFieldBuilder(); getEncryptionSpecFieldBuilder(); } } @@ -2138,11 +2520,36 @@ public Builder clear() { } version_ = ""; notebookRuntimeType_ = 0; + machineSpec_ = null; + if (machineSpecBuilder_ != null) { + machineSpecBuilder_.dispose(); + machineSpecBuilder_ = null; + } + dataPersistentDiskSpec_ = null; + if (dataPersistentDiskSpecBuilder_ != null) { + dataPersistentDiskSpecBuilder_.dispose(); + dataPersistentDiskSpecBuilder_ = null; + } + networkSpec_ = null; + if (networkSpecBuilder_ != null) { + networkSpecBuilder_.dispose(); + networkSpecBuilder_ = null; + } idleShutdownConfig_ = null; if (idleShutdownConfigBuilder_ != null) { idleShutdownConfigBuilder_.dispose(); idleShutdownConfigBuilder_ = null; } + eucConfig_ = null; + if (eucConfigBuilder_ != null) { + eucConfigBuilder_.dispose(); + eucConfigBuilder_ = null; + } + shieldedVmConfig_ = null; + if (shieldedVmConfigBuilder_ != null) { + shieldedVmConfigBuilder_.dispose(); + shieldedVmConfigBuilder_ = null; + } networkTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); encryptionSpec_ = null; if (encryptionSpecBuilder_ != null) { @@ -2246,25 +2653,51 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.NotebookRuntime result result.notebookRuntimeType_ = notebookRuntimeType_; } if (((from_bitField0_ & 0x00010000) != 0)) { + result.machineSpec_ = + machineSpecBuilder_ == null ? machineSpec_ : machineSpecBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.dataPersistentDiskSpec_ = + dataPersistentDiskSpecBuilder_ == null + ? dataPersistentDiskSpec_ + : dataPersistentDiskSpecBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.networkSpec_ = + networkSpecBuilder_ == null ? networkSpec_ : networkSpecBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00080000) != 0)) { result.idleShutdownConfig_ = idleShutdownConfigBuilder_ == null ? idleShutdownConfig_ : idleShutdownConfigBuilder_.build(); - to_bitField0_ |= 0x00000010; + to_bitField0_ |= 0x00000080; } - if (((from_bitField0_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00100000) != 0)) { + result.eucConfig_ = eucConfigBuilder_ == null ? eucConfig_ : eucConfigBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.shieldedVmConfig_ = + shieldedVmConfigBuilder_ == null ? shieldedVmConfig_ : shieldedVmConfigBuilder_.build(); + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00400000) != 0)) { networkTags_.makeImmutable(); result.networkTags_ = networkTags_; } - if (((from_bitField0_ & 0x00040000) != 0)) { + if (((from_bitField0_ & 0x00800000) != 0)) { result.encryptionSpec_ = encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); - to_bitField0_ |= 0x00000020; + to_bitField0_ |= 0x00000400; } - if (((from_bitField0_ & 0x00080000) != 0)) { + if (((from_bitField0_ & 0x01000000) != 0)) { result.satisfiesPzs_ = satisfiesPzs_; } - if (((from_bitField0_ & 0x00100000) != 0)) { + if (((from_bitField0_ & 0x02000000) != 0)) { result.satisfiesPzi_ = satisfiesPzi_; } result.bitField0_ |= to_bitField0_; @@ -2376,13 +2809,28 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.NotebookRuntime other) { if (other.notebookRuntimeType_ != 0) { setNotebookRuntimeTypeValue(other.getNotebookRuntimeTypeValue()); } + if (other.hasMachineSpec()) { + mergeMachineSpec(other.getMachineSpec()); + } + if (other.hasDataPersistentDiskSpec()) { + mergeDataPersistentDiskSpec(other.getDataPersistentDiskSpec()); + } + if (other.hasNetworkSpec()) { + mergeNetworkSpec(other.getNetworkSpec()); + } if (other.hasIdleShutdownConfig()) { mergeIdleShutdownConfig(other.getIdleShutdownConfig()); } + if (other.hasEucConfig()) { + mergeEucConfig(other.getEucConfig()); + } + if (other.hasShieldedVmConfig()) { + mergeShieldedVmConfig(other.getShieldedVmConfig()); + } if (!other.networkTags_.isEmpty()) { if (networkTags_.isEmpty()) { networkTags_ = other.networkTags_; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00400000; } else { ensureNetworkTagsIsMutable(); networkTags_.addAll(other.networkTags_); @@ -2527,13 +2975,38 @@ public Builder mergeFrom( bitField0_ |= 0x00008000; break; } // case 152 + case 162: + { + input.readMessage(getMachineSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 162 + case 170: + { + input.readMessage( + getDataPersistentDiskSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 170 + case 178: + { + input.readMessage(getNetworkSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00040000; + break; + } // case 178 case 186: { input.readMessage( getIdleShutdownConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00080000; break; } // case 186 + case 194: + { + input.readMessage(getEucConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00100000; + break; + } // case 194 case 202: { java.lang.String s = input.readStringRequireUtf8(); @@ -2544,21 +3017,28 @@ public Builder mergeFrom( case 226: { input.readMessage(getEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00800000; break; } // case 226 case 232: { satisfiesPzs_ = input.readBool(); - bitField0_ |= 0x00080000; + bitField0_ |= 0x01000000; break; } // case 232 case 240: { satisfiesPzi_ = input.readBool(); - bitField0_ |= 0x00100000; + bitField0_ |= 0x02000000; break; } // case 240 + case 258: + { + input.readMessage( + getShieldedVmConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00200000; + break; + } // case 258 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3851,7 +4331,15 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. The service account that the NotebookRuntime workload runs as.
+     * Output only. Deprecated: This field is no longer used and the "Vertex AI
+     * Notebook Service Account"
+     * (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is
+     * used for the runtime workload identity.
+     * See
+     * https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account
+     * for more details.
+     *
+     * The service account that the NotebookRuntime workload runs as.
      * 
* * string service_account = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3873,7 +4361,15 @@ public java.lang.String getServiceAccount() { * * *
-     * Output only. The service account that the NotebookRuntime workload runs as.
+     * Output only. Deprecated: This field is no longer used and the "Vertex AI
+     * Notebook Service Account"
+     * (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is
+     * used for the runtime workload identity.
+     * See
+     * https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account
+     * for more details.
+     *
+     * The service account that the NotebookRuntime workload runs as.
      * 
* * string service_account = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3895,7 +4391,15 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { * * *
-     * Output only. The service account that the NotebookRuntime workload runs as.
+     * Output only. Deprecated: This field is no longer used and the "Vertex AI
+     * Notebook Service Account"
+     * (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is
+     * used for the runtime workload identity.
+     * See
+     * https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account
+     * for more details.
+     *
+     * The service account that the NotebookRuntime workload runs as.
      * 
* * string service_account = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3916,7 +4420,15 @@ public Builder setServiceAccount(java.lang.String value) { * * *
-     * Output only. The service account that the NotebookRuntime workload runs as.
+     * Output only. Deprecated: This field is no longer used and the "Vertex AI
+     * Notebook Service Account"
+     * (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is
+     * used for the runtime workload identity.
+     * See
+     * https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account
+     * for more details.
+     *
+     * The service account that the NotebookRuntime workload runs as.
      * 
* * string service_account = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3933,7 +4445,15 @@ public Builder clearServiceAccount() { * * *
-     * Output only. The service account that the NotebookRuntime workload runs as.
+     * Output only. Deprecated: This field is no longer used and the "Vertex AI
+     * Notebook Service Account"
+     * (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is
+     * used for the runtime workload identity.
+     * See
+     * https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account
+     * for more details.
+     *
+     * The service account that the NotebookRuntime workload runs as.
      * 
* * string service_account = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4838,70 +5358,72 @@ public Builder clearNotebookRuntimeType() { return this; } - private com.google.cloud.aiplatform.v1.NotebookIdleShutdownConfig idleShutdownConfig_; + private com.google.cloud.aiplatform.v1.MachineSpec machineSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1.NotebookIdleShutdownConfig, - com.google.cloud.aiplatform.v1.NotebookIdleShutdownConfig.Builder, - com.google.cloud.aiplatform.v1.NotebookIdleShutdownConfigOrBuilder> - idleShutdownConfigBuilder_; + com.google.cloud.aiplatform.v1.MachineSpec, + com.google.cloud.aiplatform.v1.MachineSpec.Builder, + com.google.cloud.aiplatform.v1.MachineSpecOrBuilder> + machineSpecBuilder_; /** * * *
-     * Output only. The idle shutdown configuration of the notebook runtime.
+     * Output only. The specification of a single machine used by the notebook
+     * runtime.
      * 
* * - * .google.cloud.aiplatform.v1.NotebookIdleShutdownConfig idle_shutdown_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return Whether the idleShutdownConfig field is set. + * @return Whether the machineSpec field is set. */ - public boolean hasIdleShutdownConfig() { + public boolean hasMachineSpec() { return ((bitField0_ & 0x00010000) != 0); } /** * * *
-     * Output only. The idle shutdown configuration of the notebook runtime.
+     * Output only. The specification of a single machine used by the notebook
+     * runtime.
      * 
* * - * .google.cloud.aiplatform.v1.NotebookIdleShutdownConfig idle_shutdown_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The idleShutdownConfig. + * @return The machineSpec. */ - public com.google.cloud.aiplatform.v1.NotebookIdleShutdownConfig getIdleShutdownConfig() { - if (idleShutdownConfigBuilder_ == null) { - return idleShutdownConfig_ == null - ? com.google.cloud.aiplatform.v1.NotebookIdleShutdownConfig.getDefaultInstance() - : idleShutdownConfig_; + public com.google.cloud.aiplatform.v1.MachineSpec getMachineSpec() { + if (machineSpecBuilder_ == null) { + return machineSpec_ == null + ? com.google.cloud.aiplatform.v1.MachineSpec.getDefaultInstance() + : machineSpec_; } else { - return idleShutdownConfigBuilder_.getMessage(); + return machineSpecBuilder_.getMessage(); } } /** * * *
-     * Output only. The idle shutdown configuration of the notebook runtime.
+     * Output only. The specification of a single machine used by the notebook
+     * runtime.
      * 
* * - * .google.cloud.aiplatform.v1.NotebookIdleShutdownConfig idle_shutdown_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setIdleShutdownConfig( - com.google.cloud.aiplatform.v1.NotebookIdleShutdownConfig value) { - if (idleShutdownConfigBuilder_ == null) { + public Builder setMachineSpec(com.google.cloud.aiplatform.v1.MachineSpec value) { + if (machineSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - idleShutdownConfig_ = value; + machineSpec_ = value; } else { - idleShutdownConfigBuilder_.setMessage(value); + machineSpecBuilder_.setMessage(value); } bitField0_ |= 0x00010000; onChanged(); @@ -4911,19 +5433,20 @@ public Builder setIdleShutdownConfig( * * *
-     * Output only. The idle shutdown configuration of the notebook runtime.
+     * Output only. The specification of a single machine used by the notebook
+     * runtime.
      * 
* * - * .google.cloud.aiplatform.v1.NotebookIdleShutdownConfig idle_shutdown_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setIdleShutdownConfig( - com.google.cloud.aiplatform.v1.NotebookIdleShutdownConfig.Builder builderForValue) { - if (idleShutdownConfigBuilder_ == null) { - idleShutdownConfig_ = builderForValue.build(); + public Builder setMachineSpec( + com.google.cloud.aiplatform.v1.MachineSpec.Builder builderForValue) { + if (machineSpecBuilder_ == null) { + machineSpec_ = builderForValue.build(); } else { - idleShutdownConfigBuilder_.setMessage(builderForValue.build()); + machineSpecBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00010000; onChanged(); @@ -4933,28 +5456,27 @@ public Builder setIdleShutdownConfig( * * *
-     * Output only. The idle shutdown configuration of the notebook runtime.
+     * Output only. The specification of a single machine used by the notebook
+     * runtime.
      * 
* * - * .google.cloud.aiplatform.v1.NotebookIdleShutdownConfig idle_shutdown_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeIdleShutdownConfig( - com.google.cloud.aiplatform.v1.NotebookIdleShutdownConfig value) { - if (idleShutdownConfigBuilder_ == null) { + public Builder mergeMachineSpec(com.google.cloud.aiplatform.v1.MachineSpec value) { + if (machineSpecBuilder_ == null) { if (((bitField0_ & 0x00010000) != 0) - && idleShutdownConfig_ != null - && idleShutdownConfig_ - != com.google.cloud.aiplatform.v1.NotebookIdleShutdownConfig.getDefaultInstance()) { - getIdleShutdownConfigBuilder().mergeFrom(value); + && machineSpec_ != null + && machineSpec_ != com.google.cloud.aiplatform.v1.MachineSpec.getDefaultInstance()) { + getMachineSpecBuilder().mergeFrom(value); } else { - idleShutdownConfig_ = value; + machineSpec_ = value; } } else { - idleShutdownConfigBuilder_.mergeFrom(value); + machineSpecBuilder_.mergeFrom(value); } - if (idleShutdownConfig_ != null) { + if (machineSpec_ != null) { bitField0_ |= 0x00010000; onChanged(); } @@ -4964,19 +5486,20 @@ public Builder mergeIdleShutdownConfig( * * *
-     * Output only. The idle shutdown configuration of the notebook runtime.
+     * Output only. The specification of a single machine used by the notebook
+     * runtime.
      * 
* * - * .google.cloud.aiplatform.v1.NotebookIdleShutdownConfig idle_shutdown_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearIdleShutdownConfig() { + public Builder clearMachineSpec() { bitField0_ = (bitField0_ & ~0x00010000); - idleShutdownConfig_ = null; - if (idleShutdownConfigBuilder_ != null) { - idleShutdownConfigBuilder_.dispose(); - idleShutdownConfigBuilder_ = null; + machineSpec_ = null; + if (machineSpecBuilder_ != null) { + machineSpecBuilder_.dispose(); + machineSpecBuilder_ = null; } onChanged(); return this; @@ -4985,184 +5508,221 @@ public Builder clearIdleShutdownConfig() { * * *
-     * Output only. The idle shutdown configuration of the notebook runtime.
+     * Output only. The specification of a single machine used by the notebook
+     * runtime.
      * 
* * - * .google.cloud.aiplatform.v1.NotebookIdleShutdownConfig idle_shutdown_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.aiplatform.v1.NotebookIdleShutdownConfig.Builder - getIdleShutdownConfigBuilder() { + public com.google.cloud.aiplatform.v1.MachineSpec.Builder getMachineSpecBuilder() { bitField0_ |= 0x00010000; onChanged(); - return getIdleShutdownConfigFieldBuilder().getBuilder(); + return getMachineSpecFieldBuilder().getBuilder(); } /** * * *
-     * Output only. The idle shutdown configuration of the notebook runtime.
+     * Output only. The specification of a single machine used by the notebook
+     * runtime.
      * 
* * - * .google.cloud.aiplatform.v1.NotebookIdleShutdownConfig idle_shutdown_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.aiplatform.v1.NotebookIdleShutdownConfigOrBuilder - getIdleShutdownConfigOrBuilder() { - if (idleShutdownConfigBuilder_ != null) { - return idleShutdownConfigBuilder_.getMessageOrBuilder(); + public com.google.cloud.aiplatform.v1.MachineSpecOrBuilder getMachineSpecOrBuilder() { + if (machineSpecBuilder_ != null) { + return machineSpecBuilder_.getMessageOrBuilder(); } else { - return idleShutdownConfig_ == null - ? com.google.cloud.aiplatform.v1.NotebookIdleShutdownConfig.getDefaultInstance() - : idleShutdownConfig_; + return machineSpec_ == null + ? com.google.cloud.aiplatform.v1.MachineSpec.getDefaultInstance() + : machineSpec_; } } /** * * *
-     * Output only. The idle shutdown configuration of the notebook runtime.
+     * Output only. The specification of a single machine used by the notebook
+     * runtime.
      * 
* * - * .google.cloud.aiplatform.v1.NotebookIdleShutdownConfig idle_shutdown_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1.NotebookIdleShutdownConfig, - com.google.cloud.aiplatform.v1.NotebookIdleShutdownConfig.Builder, - com.google.cloud.aiplatform.v1.NotebookIdleShutdownConfigOrBuilder> - getIdleShutdownConfigFieldBuilder() { - if (idleShutdownConfigBuilder_ == null) { - idleShutdownConfigBuilder_ = + 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.NotebookIdleShutdownConfig, - com.google.cloud.aiplatform.v1.NotebookIdleShutdownConfig.Builder, - com.google.cloud.aiplatform.v1.NotebookIdleShutdownConfigOrBuilder>( - getIdleShutdownConfig(), getParentForChildren(), isClean()); - idleShutdownConfig_ = null; + 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 idleShutdownConfigBuilder_; + return machineSpecBuilder_; } - private com.google.protobuf.LazyStringArrayList networkTags_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureNetworkTagsIsMutable() { - if (!networkTags_.isModifiable()) { - networkTags_ = new com.google.protobuf.LazyStringArrayList(networkTags_); - } - bitField0_ |= 0x00020000; - } + private com.google.cloud.aiplatform.v1.PersistentDiskSpec dataPersistentDiskSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.PersistentDiskSpec, + com.google.cloud.aiplatform.v1.PersistentDiskSpec.Builder, + com.google.cloud.aiplatform.v1.PersistentDiskSpecOrBuilder> + dataPersistentDiskSpecBuilder_; /** * * *
-     * Optional. The Compute Engine tags to add to runtime (see [Tagging
-     * instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).
+     * Output only. The specification of [persistent
+     * disk][https://cloud.google.com/compute/docs/disks/persistent-disks]
+     * attached to the notebook runtime as data disk storage.
      * 
* - * repeated string network_tags = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.aiplatform.v1.PersistentDiskSpec data_persistent_disk_spec = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return A list containing the networkTags. + * @return Whether the dataPersistentDiskSpec field is set. */ - public com.google.protobuf.ProtocolStringList getNetworkTagsList() { - networkTags_.makeImmutable(); - return networkTags_; + public boolean hasDataPersistentDiskSpec() { + return ((bitField0_ & 0x00020000) != 0); } /** * * *
-     * Optional. The Compute Engine tags to add to runtime (see [Tagging
-     * instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).
+     * Output only. The specification of [persistent
+     * disk][https://cloud.google.com/compute/docs/disks/persistent-disks]
+     * attached to the notebook runtime as data disk storage.
      * 
* - * repeated string network_tags = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.aiplatform.v1.PersistentDiskSpec data_persistent_disk_spec = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The count of networkTags. + * @return The dataPersistentDiskSpec. */ - public int getNetworkTagsCount() { - return networkTags_.size(); + public com.google.cloud.aiplatform.v1.PersistentDiskSpec getDataPersistentDiskSpec() { + if (dataPersistentDiskSpecBuilder_ == null) { + return dataPersistentDiskSpec_ == null + ? com.google.cloud.aiplatform.v1.PersistentDiskSpec.getDefaultInstance() + : dataPersistentDiskSpec_; + } else { + return dataPersistentDiskSpecBuilder_.getMessage(); + } } /** * * *
-     * Optional. The Compute Engine tags to add to runtime (see [Tagging
-     * instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).
+     * Output only. The specification of [persistent
+     * disk][https://cloud.google.com/compute/docs/disks/persistent-disks]
+     * attached to the notebook runtime as data disk storage.
      * 
* - * repeated string network_tags = 25 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The networkTags at the given index. + * + * .google.cloud.aiplatform.v1.PersistentDiskSpec data_persistent_disk_spec = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.lang.String getNetworkTags(int index) { - return networkTags_.get(index); + public Builder setDataPersistentDiskSpec( + com.google.cloud.aiplatform.v1.PersistentDiskSpec value) { + if (dataPersistentDiskSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataPersistentDiskSpec_ = value; + } else { + dataPersistentDiskSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; } /** * * *
-     * Optional. The Compute Engine tags to add to runtime (see [Tagging
-     * instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).
+     * Output only. The specification of [persistent
+     * disk][https://cloud.google.com/compute/docs/disks/persistent-disks]
+     * attached to the notebook runtime as data disk storage.
      * 
* - * repeated string network_tags = 25 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the networkTags at the given index. + * + * .google.cloud.aiplatform.v1.PersistentDiskSpec data_persistent_disk_spec = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.protobuf.ByteString getNetworkTagsBytes(int index) { - return networkTags_.getByteString(index); + public Builder setDataPersistentDiskSpec( + com.google.cloud.aiplatform.v1.PersistentDiskSpec.Builder builderForValue) { + if (dataPersistentDiskSpecBuilder_ == null) { + dataPersistentDiskSpec_ = builderForValue.build(); + } else { + dataPersistentDiskSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; } /** * * *
-     * Optional. The Compute Engine tags to add to runtime (see [Tagging
-     * instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).
+     * Output only. The specification of [persistent
+     * disk][https://cloud.google.com/compute/docs/disks/persistent-disks]
+     * attached to the notebook runtime as data disk storage.
      * 
* - * repeated string network_tags = 25 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The networkTags to set. - * @return This builder for chaining. + * + * .google.cloud.aiplatform.v1.PersistentDiskSpec data_persistent_disk_spec = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setNetworkTags(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder mergeDataPersistentDiskSpec( + com.google.cloud.aiplatform.v1.PersistentDiskSpec value) { + if (dataPersistentDiskSpecBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0) + && dataPersistentDiskSpec_ != null + && dataPersistentDiskSpec_ + != com.google.cloud.aiplatform.v1.PersistentDiskSpec.getDefaultInstance()) { + getDataPersistentDiskSpecBuilder().mergeFrom(value); + } else { + dataPersistentDiskSpec_ = value; + } + } else { + dataPersistentDiskSpecBuilder_.mergeFrom(value); + } + if (dataPersistentDiskSpec_ != null) { + bitField0_ |= 0x00020000; + onChanged(); } - ensureNetworkTagsIsMutable(); - networkTags_.set(index, value); - bitField0_ |= 0x00020000; - onChanged(); return this; } /** * * *
-     * Optional. The Compute Engine tags to add to runtime (see [Tagging
-     * instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).
+     * Output only. The specification of [persistent
+     * disk][https://cloud.google.com/compute/docs/disks/persistent-disks]
+     * attached to the notebook runtime as data disk storage.
      * 
* - * repeated string network_tags = 25 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The networkTags to add. - * @return This builder for chaining. + * + * .google.cloud.aiplatform.v1.PersistentDiskSpec data_persistent_disk_spec = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addNetworkTags(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearDataPersistentDiskSpec() { + bitField0_ = (bitField0_ & ~0x00020000); + dataPersistentDiskSpec_ = null; + if (dataPersistentDiskSpecBuilder_ != null) { + dataPersistentDiskSpecBuilder_.dispose(); + dataPersistentDiskSpecBuilder_ = null; } - ensureNetworkTagsIsMutable(); - networkTags_.add(value); - bitField0_ |= 0x00020000; onChanged(); return this; } @@ -5170,129 +5730,137 @@ public Builder addNetworkTags(java.lang.String value) { * * *
-     * Optional. The Compute Engine tags to add to runtime (see [Tagging
-     * instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).
+     * Output only. The specification of [persistent
+     * disk][https://cloud.google.com/compute/docs/disks/persistent-disks]
+     * attached to the notebook runtime as data disk storage.
      * 
* - * repeated string network_tags = 25 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The networkTags to add. - * @return This builder for chaining. + * + * .google.cloud.aiplatform.v1.PersistentDiskSpec data_persistent_disk_spec = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addAllNetworkTags(java.lang.Iterable values) { - ensureNetworkTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networkTags_); + public com.google.cloud.aiplatform.v1.PersistentDiskSpec.Builder + getDataPersistentDiskSpecBuilder() { bitField0_ |= 0x00020000; onChanged(); - return this; + return getDataPersistentDiskSpecFieldBuilder().getBuilder(); } /** * * *
-     * Optional. The Compute Engine tags to add to runtime (see [Tagging
-     * instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).
+     * Output only. The specification of [persistent
+     * disk][https://cloud.google.com/compute/docs/disks/persistent-disks]
+     * attached to the notebook runtime as data disk storage.
      * 
* - * repeated string network_tags = 25 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. + * + * .google.cloud.aiplatform.v1.PersistentDiskSpec data_persistent_disk_spec = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearNetworkTags() { - networkTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00020000); - ; - onChanged(); - return this; + public com.google.cloud.aiplatform.v1.PersistentDiskSpecOrBuilder + getDataPersistentDiskSpecOrBuilder() { + if (dataPersistentDiskSpecBuilder_ != null) { + return dataPersistentDiskSpecBuilder_.getMessageOrBuilder(); + } else { + return dataPersistentDiskSpec_ == null + ? com.google.cloud.aiplatform.v1.PersistentDiskSpec.getDefaultInstance() + : dataPersistentDiskSpec_; + } } /** * * *
-     * Optional. The Compute Engine tags to add to runtime (see [Tagging
-     * instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).
+     * Output only. The specification of [persistent
+     * disk][https://cloud.google.com/compute/docs/disks/persistent-disks]
+     * attached to the notebook runtime as data disk storage.
      * 
* - * repeated string network_tags = 25 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the networkTags to add. - * @return This builder for chaining. + * + * .google.cloud.aiplatform.v1.PersistentDiskSpec data_persistent_disk_spec = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addNetworkTagsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.PersistentDiskSpec, + com.google.cloud.aiplatform.v1.PersistentDiskSpec.Builder, + com.google.cloud.aiplatform.v1.PersistentDiskSpecOrBuilder> + getDataPersistentDiskSpecFieldBuilder() { + if (dataPersistentDiskSpecBuilder_ == null) { + dataPersistentDiskSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.PersistentDiskSpec, + com.google.cloud.aiplatform.v1.PersistentDiskSpec.Builder, + com.google.cloud.aiplatform.v1.PersistentDiskSpecOrBuilder>( + getDataPersistentDiskSpec(), getParentForChildren(), isClean()); + dataPersistentDiskSpec_ = null; } - checkByteStringIsUtf8(value); - ensureNetworkTagsIsMutable(); - networkTags_.add(value); - bitField0_ |= 0x00020000; - onChanged(); - return this; + return dataPersistentDiskSpecBuilder_; } - private com.google.cloud.aiplatform.v1.EncryptionSpec encryptionSpec_; + private com.google.cloud.aiplatform.v1.NetworkSpec networkSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1.EncryptionSpec, - com.google.cloud.aiplatform.v1.EncryptionSpec.Builder, - com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder> - encryptionSpecBuilder_; + com.google.cloud.aiplatform.v1.NetworkSpec, + com.google.cloud.aiplatform.v1.NetworkSpec.Builder, + com.google.cloud.aiplatform.v1.NetworkSpecOrBuilder> + networkSpecBuilder_; /** * * *
-     * Output only. Customer-managed encryption key spec for the notebook runtime.
+     * Output only. Network spec of the notebook runtime.
      * 
* * - * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return Whether the encryptionSpec field is set. + * @return Whether the networkSpec field is set. */ - public boolean hasEncryptionSpec() { + public boolean hasNetworkSpec() { return ((bitField0_ & 0x00040000) != 0); } /** * * *
-     * Output only. Customer-managed encryption key spec for the notebook runtime.
+     * Output only. Network spec of the notebook runtime.
      * 
* * - * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The encryptionSpec. + * @return The networkSpec. */ - public com.google.cloud.aiplatform.v1.EncryptionSpec getEncryptionSpec() { - if (encryptionSpecBuilder_ == null) { - return encryptionSpec_ == null - ? com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance() - : encryptionSpec_; + public com.google.cloud.aiplatform.v1.NetworkSpec getNetworkSpec() { + if (networkSpecBuilder_ == null) { + return networkSpec_ == null + ? com.google.cloud.aiplatform.v1.NetworkSpec.getDefaultInstance() + : networkSpec_; } else { - return encryptionSpecBuilder_.getMessage(); + return networkSpecBuilder_.getMessage(); } } /** * * *
-     * Output only. Customer-managed encryption key spec for the notebook runtime.
+     * Output only. Network spec of the notebook runtime.
      * 
* * - * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec value) { - if (encryptionSpecBuilder_ == null) { + public Builder setNetworkSpec(com.google.cloud.aiplatform.v1.NetworkSpec value) { + if (networkSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - encryptionSpec_ = value; + networkSpec_ = value; } else { - encryptionSpecBuilder_.setMessage(value); + networkSpecBuilder_.setMessage(value); } bitField0_ |= 0x00040000; onChanged(); @@ -5302,21 +5870,1027 @@ public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec v * * *
-     * Output only. Customer-managed encryption key spec for the notebook runtime.
+     * Output only. Network spec of the notebook runtime.
      * 
* * - * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setEncryptionSpec( - com.google.cloud.aiplatform.v1.EncryptionSpec.Builder builderForValue) { + public Builder setNetworkSpec( + com.google.cloud.aiplatform.v1.NetworkSpec.Builder builderForValue) { + if (networkSpecBuilder_ == null) { + networkSpec_ = builderForValue.build(); + } else { + networkSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Network spec of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeNetworkSpec(com.google.cloud.aiplatform.v1.NetworkSpec value) { + if (networkSpecBuilder_ == null) { + if (((bitField0_ & 0x00040000) != 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_ |= 0x00040000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Network spec of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearNetworkSpec() { + bitField0_ = (bitField0_ & ~0x00040000); + networkSpec_ = null; + if (networkSpecBuilder_ != null) { + networkSpecBuilder_.dispose(); + networkSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Network spec of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.NetworkSpec.Builder getNetworkSpecBuilder() { + bitField0_ |= 0x00040000; + onChanged(); + return getNetworkSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Network spec of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + 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_; + } + } + /** + * + * + *
+     * Output only. Network spec of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + 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_; + } + + private com.google.cloud.aiplatform.v1.NotebookIdleShutdownConfig idleShutdownConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.NotebookIdleShutdownConfig, + com.google.cloud.aiplatform.v1.NotebookIdleShutdownConfig.Builder, + com.google.cloud.aiplatform.v1.NotebookIdleShutdownConfigOrBuilder> + idleShutdownConfigBuilder_; + /** + * + * + *
+     * Output only. The idle shutdown configuration of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookIdleShutdownConfig idle_shutdown_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the idleShutdownConfig field is set. + */ + public boolean hasIdleShutdownConfig() { + return ((bitField0_ & 0x00080000) != 0); + } + /** + * + * + *
+     * Output only. The idle shutdown configuration of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookIdleShutdownConfig idle_shutdown_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The idleShutdownConfig. + */ + public com.google.cloud.aiplatform.v1.NotebookIdleShutdownConfig getIdleShutdownConfig() { + if (idleShutdownConfigBuilder_ == null) { + return idleShutdownConfig_ == null + ? com.google.cloud.aiplatform.v1.NotebookIdleShutdownConfig.getDefaultInstance() + : idleShutdownConfig_; + } else { + return idleShutdownConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The idle shutdown configuration of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookIdleShutdownConfig idle_shutdown_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setIdleShutdownConfig( + com.google.cloud.aiplatform.v1.NotebookIdleShutdownConfig value) { + if (idleShutdownConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + idleShutdownConfig_ = value; + } else { + idleShutdownConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The idle shutdown configuration of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookIdleShutdownConfig idle_shutdown_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setIdleShutdownConfig( + com.google.cloud.aiplatform.v1.NotebookIdleShutdownConfig.Builder builderForValue) { + if (idleShutdownConfigBuilder_ == null) { + idleShutdownConfig_ = builderForValue.build(); + } else { + idleShutdownConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The idle shutdown configuration of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookIdleShutdownConfig idle_shutdown_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeIdleShutdownConfig( + com.google.cloud.aiplatform.v1.NotebookIdleShutdownConfig value) { + if (idleShutdownConfigBuilder_ == null) { + if (((bitField0_ & 0x00080000) != 0) + && idleShutdownConfig_ != null + && idleShutdownConfig_ + != com.google.cloud.aiplatform.v1.NotebookIdleShutdownConfig.getDefaultInstance()) { + getIdleShutdownConfigBuilder().mergeFrom(value); + } else { + idleShutdownConfig_ = value; + } + } else { + idleShutdownConfigBuilder_.mergeFrom(value); + } + if (idleShutdownConfig_ != null) { + bitField0_ |= 0x00080000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. The idle shutdown configuration of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookIdleShutdownConfig idle_shutdown_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearIdleShutdownConfig() { + bitField0_ = (bitField0_ & ~0x00080000); + idleShutdownConfig_ = null; + if (idleShutdownConfigBuilder_ != null) { + idleShutdownConfigBuilder_.dispose(); + idleShutdownConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The idle shutdown configuration of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookIdleShutdownConfig idle_shutdown_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.NotebookIdleShutdownConfig.Builder + getIdleShutdownConfigBuilder() { + bitField0_ |= 0x00080000; + onChanged(); + return getIdleShutdownConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The idle shutdown configuration of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookIdleShutdownConfig idle_shutdown_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.NotebookIdleShutdownConfigOrBuilder + getIdleShutdownConfigOrBuilder() { + if (idleShutdownConfigBuilder_ != null) { + return idleShutdownConfigBuilder_.getMessageOrBuilder(); + } else { + return idleShutdownConfig_ == null + ? com.google.cloud.aiplatform.v1.NotebookIdleShutdownConfig.getDefaultInstance() + : idleShutdownConfig_; + } + } + /** + * + * + *
+     * Output only. The idle shutdown configuration of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookIdleShutdownConfig idle_shutdown_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.NotebookIdleShutdownConfig, + com.google.cloud.aiplatform.v1.NotebookIdleShutdownConfig.Builder, + com.google.cloud.aiplatform.v1.NotebookIdleShutdownConfigOrBuilder> + getIdleShutdownConfigFieldBuilder() { + if (idleShutdownConfigBuilder_ == null) { + idleShutdownConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.NotebookIdleShutdownConfig, + com.google.cloud.aiplatform.v1.NotebookIdleShutdownConfig.Builder, + com.google.cloud.aiplatform.v1.NotebookIdleShutdownConfigOrBuilder>( + getIdleShutdownConfig(), getParentForChildren(), isClean()); + idleShutdownConfig_ = null; + } + return idleShutdownConfigBuilder_; + } + + private com.google.cloud.aiplatform.v1.NotebookEucConfig eucConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.NotebookEucConfig, + com.google.cloud.aiplatform.v1.NotebookEucConfig.Builder, + com.google.cloud.aiplatform.v1.NotebookEucConfigOrBuilder> + eucConfigBuilder_; + /** + * + * + *
+     * Output only. EUC configuration of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookEucConfig euc_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the eucConfig field is set. + */ + public boolean hasEucConfig() { + return ((bitField0_ & 0x00100000) != 0); + } + /** + * + * + *
+     * Output only. EUC configuration of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookEucConfig euc_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The eucConfig. + */ + public com.google.cloud.aiplatform.v1.NotebookEucConfig getEucConfig() { + if (eucConfigBuilder_ == null) { + return eucConfig_ == null + ? com.google.cloud.aiplatform.v1.NotebookEucConfig.getDefaultInstance() + : eucConfig_; + } else { + return eucConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. EUC configuration of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookEucConfig euc_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEucConfig(com.google.cloud.aiplatform.v1.NotebookEucConfig value) { + if (eucConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + eucConfig_ = value; + } else { + eucConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. EUC configuration of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookEucConfig euc_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEucConfig( + com.google.cloud.aiplatform.v1.NotebookEucConfig.Builder builderForValue) { + if (eucConfigBuilder_ == null) { + eucConfig_ = builderForValue.build(); + } else { + eucConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. EUC configuration of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookEucConfig euc_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEucConfig(com.google.cloud.aiplatform.v1.NotebookEucConfig value) { + if (eucConfigBuilder_ == null) { + if (((bitField0_ & 0x00100000) != 0) + && eucConfig_ != null + && eucConfig_ + != com.google.cloud.aiplatform.v1.NotebookEucConfig.getDefaultInstance()) { + getEucConfigBuilder().mergeFrom(value); + } else { + eucConfig_ = value; + } + } else { + eucConfigBuilder_.mergeFrom(value); + } + if (eucConfig_ != null) { + bitField0_ |= 0x00100000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. EUC configuration of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookEucConfig euc_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEucConfig() { + bitField0_ = (bitField0_ & ~0x00100000); + eucConfig_ = null; + if (eucConfigBuilder_ != null) { + eucConfigBuilder_.dispose(); + eucConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. EUC configuration of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookEucConfig euc_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.NotebookEucConfig.Builder getEucConfigBuilder() { + bitField0_ |= 0x00100000; + onChanged(); + return getEucConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. EUC configuration of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookEucConfig euc_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.NotebookEucConfigOrBuilder getEucConfigOrBuilder() { + if (eucConfigBuilder_ != null) { + return eucConfigBuilder_.getMessageOrBuilder(); + } else { + return eucConfig_ == null + ? com.google.cloud.aiplatform.v1.NotebookEucConfig.getDefaultInstance() + : eucConfig_; + } + } + /** + * + * + *
+     * Output only. EUC configuration of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookEucConfig euc_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.NotebookEucConfig, + com.google.cloud.aiplatform.v1.NotebookEucConfig.Builder, + com.google.cloud.aiplatform.v1.NotebookEucConfigOrBuilder> + getEucConfigFieldBuilder() { + if (eucConfigBuilder_ == null) { + eucConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.NotebookEucConfig, + com.google.cloud.aiplatform.v1.NotebookEucConfig.Builder, + com.google.cloud.aiplatform.v1.NotebookEucConfigOrBuilder>( + getEucConfig(), getParentForChildren(), isClean()); + eucConfig_ = null; + } + return eucConfigBuilder_; + } + + private com.google.cloud.aiplatform.v1.ShieldedVmConfig shieldedVmConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ShieldedVmConfig, + com.google.cloud.aiplatform.v1.ShieldedVmConfig.Builder, + com.google.cloud.aiplatform.v1.ShieldedVmConfigOrBuilder> + shieldedVmConfigBuilder_; + /** + * + * + *
+     * Output only. Runtime Shielded VM spec.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ShieldedVmConfig shielded_vm_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the shieldedVmConfig field is set. + */ + public boolean hasShieldedVmConfig() { + return ((bitField0_ & 0x00200000) != 0); + } + /** + * + * + *
+     * Output only. Runtime Shielded VM spec.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ShieldedVmConfig shielded_vm_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The shieldedVmConfig. + */ + public com.google.cloud.aiplatform.v1.ShieldedVmConfig getShieldedVmConfig() { + if (shieldedVmConfigBuilder_ == null) { + return shieldedVmConfig_ == null + ? com.google.cloud.aiplatform.v1.ShieldedVmConfig.getDefaultInstance() + : shieldedVmConfig_; + } else { + return shieldedVmConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Runtime Shielded VM spec.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ShieldedVmConfig shielded_vm_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setShieldedVmConfig(com.google.cloud.aiplatform.v1.ShieldedVmConfig value) { + if (shieldedVmConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + shieldedVmConfig_ = value; + } else { + shieldedVmConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Runtime Shielded VM spec.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ShieldedVmConfig shielded_vm_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setShieldedVmConfig( + com.google.cloud.aiplatform.v1.ShieldedVmConfig.Builder builderForValue) { + if (shieldedVmConfigBuilder_ == null) { + shieldedVmConfig_ = builderForValue.build(); + } else { + shieldedVmConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Runtime Shielded VM spec.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ShieldedVmConfig shielded_vm_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeShieldedVmConfig(com.google.cloud.aiplatform.v1.ShieldedVmConfig value) { + if (shieldedVmConfigBuilder_ == null) { + if (((bitField0_ & 0x00200000) != 0) + && shieldedVmConfig_ != null + && shieldedVmConfig_ + != com.google.cloud.aiplatform.v1.ShieldedVmConfig.getDefaultInstance()) { + getShieldedVmConfigBuilder().mergeFrom(value); + } else { + shieldedVmConfig_ = value; + } + } else { + shieldedVmConfigBuilder_.mergeFrom(value); + } + if (shieldedVmConfig_ != null) { + bitField0_ |= 0x00200000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Runtime Shielded VM spec.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ShieldedVmConfig shielded_vm_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearShieldedVmConfig() { + bitField0_ = (bitField0_ & ~0x00200000); + shieldedVmConfig_ = null; + if (shieldedVmConfigBuilder_ != null) { + shieldedVmConfigBuilder_.dispose(); + shieldedVmConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Runtime Shielded VM spec.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ShieldedVmConfig shielded_vm_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ShieldedVmConfig.Builder getShieldedVmConfigBuilder() { + bitField0_ |= 0x00200000; + onChanged(); + return getShieldedVmConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Runtime Shielded VM spec.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ShieldedVmConfig shielded_vm_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1.ShieldedVmConfigOrBuilder getShieldedVmConfigOrBuilder() { + if (shieldedVmConfigBuilder_ != null) { + return shieldedVmConfigBuilder_.getMessageOrBuilder(); + } else { + return shieldedVmConfig_ == null + ? com.google.cloud.aiplatform.v1.ShieldedVmConfig.getDefaultInstance() + : shieldedVmConfig_; + } + } + /** + * + * + *
+     * Output only. Runtime Shielded VM spec.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ShieldedVmConfig shielded_vm_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ShieldedVmConfig, + com.google.cloud.aiplatform.v1.ShieldedVmConfig.Builder, + com.google.cloud.aiplatform.v1.ShieldedVmConfigOrBuilder> + getShieldedVmConfigFieldBuilder() { + if (shieldedVmConfigBuilder_ == null) { + shieldedVmConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ShieldedVmConfig, + com.google.cloud.aiplatform.v1.ShieldedVmConfig.Builder, + com.google.cloud.aiplatform.v1.ShieldedVmConfigOrBuilder>( + getShieldedVmConfig(), getParentForChildren(), isClean()); + shieldedVmConfig_ = null; + } + return shieldedVmConfigBuilder_; + } + + private com.google.protobuf.LazyStringArrayList networkTags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureNetworkTagsIsMutable() { + if (!networkTags_.isModifiable()) { + networkTags_ = new com.google.protobuf.LazyStringArrayList(networkTags_); + } + bitField0_ |= 0x00400000; + } + /** + * + * + *
+     * Optional. The Compute Engine tags to add to runtime (see [Tagging
+     * instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).
+     * 
+ * + * repeated string network_tags = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the networkTags. + */ + public com.google.protobuf.ProtocolStringList getNetworkTagsList() { + networkTags_.makeImmutable(); + return networkTags_; + } + /** + * + * + *
+     * Optional. The Compute Engine tags to add to runtime (see [Tagging
+     * instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).
+     * 
+ * + * repeated string network_tags = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of networkTags. + */ + public int getNetworkTagsCount() { + return networkTags_.size(); + } + /** + * + * + *
+     * Optional. The Compute Engine tags to add to runtime (see [Tagging
+     * instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).
+     * 
+ * + * repeated string network_tags = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The networkTags at the given index. + */ + public java.lang.String getNetworkTags(int index) { + return networkTags_.get(index); + } + /** + * + * + *
+     * Optional. The Compute Engine tags to add to runtime (see [Tagging
+     * instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).
+     * 
+ * + * repeated string network_tags = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the networkTags at the given index. + */ + public com.google.protobuf.ByteString getNetworkTagsBytes(int index) { + return networkTags_.getByteString(index); + } + /** + * + * + *
+     * Optional. The Compute Engine tags to add to runtime (see [Tagging
+     * instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).
+     * 
+ * + * repeated string network_tags = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The networkTags to set. + * @return This builder for chaining. + */ + public Builder setNetworkTags(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNetworkTagsIsMutable(); + networkTags_.set(index, value); + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The Compute Engine tags to add to runtime (see [Tagging
+     * instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).
+     * 
+ * + * repeated string network_tags = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The networkTags to add. + * @return This builder for chaining. + */ + public Builder addNetworkTags(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNetworkTagsIsMutable(); + networkTags_.add(value); + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The Compute Engine tags to add to runtime (see [Tagging
+     * instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).
+     * 
+ * + * repeated string network_tags = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The networkTags to add. + * @return This builder for chaining. + */ + public Builder addAllNetworkTags(java.lang.Iterable values) { + ensureNetworkTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networkTags_); + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The Compute Engine tags to add to runtime (see [Tagging
+     * instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).
+     * 
+ * + * repeated string network_tags = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNetworkTags() { + networkTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00400000); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The Compute Engine tags to add to runtime (see [Tagging
+     * instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).
+     * 
+ * + * repeated string network_tags = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the networkTags to add. + * @return This builder for chaining. + */ + public Builder addNetworkTagsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureNetworkTagsIsMutable(); + networkTags_.add(value); + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1.EncryptionSpec encryptionSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.EncryptionSpec, + com.google.cloud.aiplatform.v1.EncryptionSpec.Builder, + com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder> + encryptionSpecBuilder_; + /** + * + * + *
+     * Output only. Customer-managed encryption key spec for the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the encryptionSpec field is set. + */ + public boolean hasEncryptionSpec() { + return ((bitField0_ & 0x00800000) != 0); + } + /** + * + * + *
+     * Output only. Customer-managed encryption key spec for the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The encryptionSpec. + */ + public com.google.cloud.aiplatform.v1.EncryptionSpec getEncryptionSpec() { + if (encryptionSpecBuilder_ == null) { + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; + } else { + return encryptionSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Customer-managed encryption key spec for the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec value) { + if (encryptionSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encryptionSpec_ = value; + } else { + encryptionSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Customer-managed encryption key spec for the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEncryptionSpec( + com.google.cloud.aiplatform.v1.EncryptionSpec.Builder builderForValue) { if (encryptionSpecBuilder_ == null) { encryptionSpec_ = builderForValue.build(); } else { encryptionSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00040000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -5333,7 +6907,7 @@ public Builder setEncryptionSpec( */ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec value) { if (encryptionSpecBuilder_ == null) { - if (((bitField0_ & 0x00040000) != 0) + if (((bitField0_ & 0x00800000) != 0) && encryptionSpec_ != null && encryptionSpec_ != com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance()) { @@ -5345,7 +6919,7 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec encryptionSpecBuilder_.mergeFrom(value); } if (encryptionSpec_ != null) { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00800000; onChanged(); } return this; @@ -5362,7 +6936,7 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec * */ public Builder clearEncryptionSpec() { - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00800000); encryptionSpec_ = null; if (encryptionSpecBuilder_ != null) { encryptionSpecBuilder_.dispose(); @@ -5383,7 +6957,7 @@ public Builder clearEncryptionSpec() { * */ public com.google.cloud.aiplatform.v1.EncryptionSpec.Builder getEncryptionSpecBuilder() { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00800000; onChanged(); return getEncryptionSpecFieldBuilder().getBuilder(); } @@ -5466,7 +7040,7 @@ public boolean getSatisfiesPzs() { public Builder setSatisfiesPzs(boolean value) { satisfiesPzs_ = value; - bitField0_ |= 0x00080000; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -5482,7 +7056,7 @@ public Builder setSatisfiesPzs(boolean value) { * @return This builder for chaining. */ public Builder clearSatisfiesPzs() { - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x01000000); satisfiesPzs_ = false; onChanged(); return this; @@ -5519,7 +7093,7 @@ public boolean getSatisfiesPzi() { public Builder setSatisfiesPzi(boolean value) { satisfiesPzi_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x02000000; onChanged(); return this; } @@ -5535,7 +7109,7 @@ public Builder setSatisfiesPzi(boolean value) { * @return This builder for chaining. */ public Builder clearSatisfiesPzi() { - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x02000000); satisfiesPzi_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntimeOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntimeOrBuilder.java index 33758a30df5e..7d34a7b1e4c3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntimeOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntimeOrBuilder.java @@ -307,7 +307,15 @@ public interface NotebookRuntimeOrBuilder * * *
-   * Output only. The service account that the NotebookRuntime workload runs as.
+   * Output only. Deprecated: This field is no longer used and the "Vertex AI
+   * Notebook Service Account"
+   * (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is
+   * used for the runtime workload identity.
+   * See
+   * https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account
+   * for more details.
+   *
+   * The service account that the NotebookRuntime workload runs as.
    * 
* * string service_account = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -319,7 +327,15 @@ public interface NotebookRuntimeOrBuilder * * *
-   * Output only. The service account that the NotebookRuntime workload runs as.
+   * Output only. Deprecated: This field is no longer used and the "Vertex AI
+   * Notebook Service Account"
+   * (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is
+   * used for the runtime workload identity.
+   * See
+   * https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account
+   * for more details.
+   *
+   * The service account that the NotebookRuntime workload runs as.
    * 
* * string service_account = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -620,6 +636,138 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.aiplatform.v1.NotebookRuntimeType getNotebookRuntimeType(); + /** + * + * + *
+   * Output only. The specification of a single machine used by the notebook
+   * runtime.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the machineSpec field is set. + */ + boolean hasMachineSpec(); + /** + * + * + *
+   * Output only. The specification of a single machine used by the notebook
+   * runtime.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The machineSpec. + */ + com.google.cloud.aiplatform.v1.MachineSpec getMachineSpec(); + /** + * + * + *
+   * Output only. The specification of a single machine used by the notebook
+   * runtime.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.MachineSpec machine_spec = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.MachineSpecOrBuilder getMachineSpecOrBuilder(); + + /** + * + * + *
+   * Output only. The specification of [persistent
+   * disk][https://cloud.google.com/compute/docs/disks/persistent-disks]
+   * attached to the notebook runtime as data disk storage.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PersistentDiskSpec data_persistent_disk_spec = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dataPersistentDiskSpec field is set. + */ + boolean hasDataPersistentDiskSpec(); + /** + * + * + *
+   * Output only. The specification of [persistent
+   * disk][https://cloud.google.com/compute/docs/disks/persistent-disks]
+   * attached to the notebook runtime as data disk storage.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PersistentDiskSpec data_persistent_disk_spec = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataPersistentDiskSpec. + */ + com.google.cloud.aiplatform.v1.PersistentDiskSpec getDataPersistentDiskSpec(); + /** + * + * + *
+   * Output only. The specification of [persistent
+   * disk][https://cloud.google.com/compute/docs/disks/persistent-disks]
+   * attached to the notebook runtime as data disk storage.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.PersistentDiskSpec data_persistent_disk_spec = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.PersistentDiskSpecOrBuilder getDataPersistentDiskSpecOrBuilder(); + + /** + * + * + *
+   * Output only. Network spec of the notebook runtime.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the networkSpec field is set. + */ + boolean hasNetworkSpec(); + /** + * + * + *
+   * Output only. Network spec of the notebook runtime.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The networkSpec. + */ + com.google.cloud.aiplatform.v1.NetworkSpec getNetworkSpec(); + /** + * + * + *
+   * Output only. Network spec of the notebook runtime.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NetworkSpec network_spec = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.NetworkSpecOrBuilder getNetworkSpecOrBuilder(); + /** * * @@ -662,6 +810,88 @@ java.lang.String getLabelsOrDefault( com.google.cloud.aiplatform.v1.NotebookIdleShutdownConfigOrBuilder getIdleShutdownConfigOrBuilder(); + /** + * + * + *
+   * Output only. EUC configuration of the notebook runtime.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookEucConfig euc_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the eucConfig field is set. + */ + boolean hasEucConfig(); + /** + * + * + *
+   * Output only. EUC configuration of the notebook runtime.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookEucConfig euc_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The eucConfig. + */ + com.google.cloud.aiplatform.v1.NotebookEucConfig getEucConfig(); + /** + * + * + *
+   * Output only. EUC configuration of the notebook runtime.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.NotebookEucConfig euc_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.NotebookEucConfigOrBuilder getEucConfigOrBuilder(); + + /** + * + * + *
+   * Output only. Runtime Shielded VM spec.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ShieldedVmConfig shielded_vm_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the shieldedVmConfig field is set. + */ + boolean hasShieldedVmConfig(); + /** + * + * + *
+   * Output only. Runtime Shielded VM spec.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ShieldedVmConfig shielded_vm_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The shieldedVmConfig. + */ + com.google.cloud.aiplatform.v1.ShieldedVmConfig getShieldedVmConfig(); + /** + * + * + *
+   * Output only. Runtime Shielded VM spec.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ShieldedVmConfig shielded_vm_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1.ShieldedVmConfigOrBuilder getShieldedVmConfigOrBuilder(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntimeProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntimeProto.java index 28bcaabe1aec..016d85007d26 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntimeProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntimeProto.java @@ -65,81 +65,91 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "latform/v1/notebook_idle_shutdown_config" + ".proto\032>google/cloud/aiplatform/v1/noteb" + "ook_runtime_template_ref.proto\032\037google/p" - + "rotobuf/timestamp.proto\"\241\t\n\027NotebookRunt" + + "rotobuf/timestamp.proto\"\247\t\n\027NotebookRunt" + "imeTemplate\022\014\n\004name\030\001 \001(\t\022\031\n\014display_nam" - + "e\030\002 \001(\tB\003\340A\002\022\023\n\013description\030\003 \001(\t\022\027\n\nis_" - + "default\030\004 \001(\010B\003\340A\003\022E\n\014machine_spec\030\005 \001(\013" - + "2\'.google.cloud.aiplatform.v1.MachineSpe" - + "cB\006\340A\001\340A\005\022V\n\031data_persistent_disk_spec\030\010" - + " \001(\0132..google.cloud.aiplatform.v1.Persis" - + "tentDiskSpecB\003\340A\001\022B\n\014network_spec\030\014 \001(\0132" - + "\'.google.cloud.aiplatform.v1.NetworkSpec" - + "B\003\340A\001\022\027\n\017service_account\030\r \001(\t\022\014\n\004etag\030\016" - + " \001(\t\022O\n\006labels\030\017 \003(\0132?.google.cloud.aipl" - + "atform.v1.NotebookRuntimeTemplate.Labels" - + "Entry\022T\n\024idle_shutdown_config\030\021 \001(\01326.go" - + "ogle.cloud.aiplatform.v1.NotebookIdleShu" - + "tdownConfig\022A\n\neuc_config\030\022 \001(\0132-.google" - + ".cloud.aiplatform.v1.NotebookEucConfig\0224" - + "\n\013create_time\030\n \001(\0132\032.google.protobuf.Ti" - + "mestampB\003\340A\003\0224\n\013update_time\030\013 \001(\0132\032.goog" - + "le.protobuf.TimestampB\003\340A\003\022V\n\025notebook_r" - + "untime_type\030\023 \001(\0162/.google.cloud.aiplatf" - + "orm.v1.NotebookRuntimeTypeB\006\340A\001\340A\005\022P\n\022sh" - + "ielded_vm_config\030\024 \001(\0132,.google.cloud.ai" - + "platform.v1.ShieldedVmConfigB\006\340A\001\340A\005\022\031\n\014" - + "network_tags\030\025 \003(\tB\003\340A\001\022C\n\017encryption_sp" - + "ec\030\027 \001(\0132*.google.cloud.aiplatform.v1.En" - + "cryptionSpec\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t" - + "\022\r\n\005value\030\002 \001(\t:\0028\001:\225\001\352A\221\001\n1aiplatform.g" - + "oogleapis.com/NotebookRuntimeTemplate\022\\p" - + "rojects/{project}/locations/{location}/n" - + "otebookRuntimeTemplates/{notebook_runtim" - + "e_template}\"\262\013\n\017NotebookRuntime\022\021\n\004name\030" - + "\001 \001(\tB\003\340A\003\022\031\n\014runtime_user\030\002 \001(\tB\003\340A\002\022b\n" - + "\035notebook_runtime_template_ref\030\003 \001(\01326.g" - + "oogle.cloud.aiplatform.v1.NotebookRuntim" - + "eTemplateRefB\003\340A\003\022\026\n\tproxy_uri\030\005 \001(\tB\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.g" - + "oogle.protobuf.TimestampB\003\340A\003\022R\n\014health_" - + "state\030\010 \001(\01627.google.cloud.aiplatform.v1" - + ".NotebookRuntime.HealthStateB\003\340A\003\022\031\n\014dis" - + "play_name\030\n \001(\tB\003\340A\002\022\023\n\013description\030\013 \001(" - + "\t\022\034\n\017service_account\030\r \001(\tB\003\340A\003\022T\n\rrunti" - + "me_state\030\016 \001(\01628.google.cloud.aiplatform" - + ".v1.NotebookRuntime.RuntimeStateB\003\340A\003\022\032\n" - + "\ris_upgradable\030\017 \001(\010B\003\340A\003\022G\n\006labels\030\020 \003(" - + "\01327.google.cloud.aiplatform.v1.NotebookR" - + "untime.LabelsEntry\0228\n\017expiration_time\030\021 " - + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\024\n\007" - + "version\030\022 \001(\tB\003\340A\003\022S\n\025notebook_runtime_t" - + "ype\030\023 \001(\0162/.google.cloud.aiplatform.v1.N" - + "otebookRuntimeTypeB\003\340A\003\022Y\n\024idle_shutdown" - + "_config\030\027 \001(\01326.google.cloud.aiplatform." - + "v1.NotebookIdleShutdownConfigB\003\340A\003\022\031\n\014ne" - + "twork_tags\030\031 \003(\tB\003\340A\001\022H\n\017encryption_spec" - + "\030\034 \001(\0132*.google.cloud.aiplatform.v1.Encr" - + "yptionSpecB\003\340A\003\022\032\n\rsatisfies_pzs\030\035 \001(\010B\003" - + "\340A\003\022\032\n\rsatisfies_pzi\030\036 \001(\010B\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\"G" - + "\n\013HealthState\022\034\n\030HEALTH_STATE_UNSPECIFIE" - + "D\020\000\022\013\n\007HEALTHY\020\001\022\r\n\tUNHEALTHY\020\002\"\231\001\n\014Runt" - + "imeState\022\035\n\031RUNTIME_STATE_UNSPECIFIED\020\000\022" - + "\013\n\007RUNNING\020\001\022\021\n\rBEING_STARTED\020\002\022\021\n\rBEING" - + "_STOPPED\020\003\022\013\n\007STOPPED\020\004\022\022\n\016BEING_UPGRADE" - + "D\020\005\022\t\n\005ERROR\020d\022\013\n\007INVALID\020e:{\352Ax\n)aiplat" - + "form.googleapis.com/NotebookRuntime\022Kpro" - + "jects/{project}/locations/{location}/not" - + "ebookRuntimes/{notebook_runtime}*]\n\023Note" - + "bookRuntimeType\022%\n!NOTEBOOK_RUNTIME_TYPE" - + "_UNSPECIFIED\020\000\022\020\n\014USER_DEFINED\020\001\022\r\n\tONE_" - + "CLICK\020\002B\322\001\n\036com.google.cloud.aiplatform." - + "v1B\024NotebookRuntimeProtoP\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" + + "e\030\002 \001(\tB\003\340A\002\022\023\n\013description\030\003 \001(\t\022\031\n\nis_" + + "default\030\004 \001(\010B\005\030\001\340A\003\022E\n\014machine_spec\030\005 \001" + + "(\0132\'.google.cloud.aiplatform.v1.MachineS" + + "pecB\006\340A\001\340A\005\022V\n\031data_persistent_disk_spec" + + "\030\010 \001(\0132..google.cloud.aiplatform.v1.Pers" + + "istentDiskSpecB\003\340A\001\022B\n\014network_spec\030\014 \001(" + + "\0132\'.google.cloud.aiplatform.v1.NetworkSp" + + "ecB\003\340A\001\022\033\n\017service_account\030\r \001(\tB\002\030\001\022\014\n\004" + + "etag\030\016 \001(\t\022O\n\006labels\030\017 \003(\0132?.google.clou" + + "d.aiplatform.v1.NotebookRuntimeTemplate." + + "LabelsEntry\022T\n\024idle_shutdown_config\030\021 \001(" + + "\01326.google.cloud.aiplatform.v1.NotebookI" + + "dleShutdownConfig\022A\n\neuc_config\030\022 \001(\0132-." + + "google.cloud.aiplatform.v1.NotebookEucCo" + + "nfig\0224\n\013create_time\030\n \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\0224\n\013update_time\030\013 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\022V\n\025note" + + "book_runtime_type\030\023 \001(\0162/.google.cloud.a" + + "iplatform.v1.NotebookRuntimeTypeB\006\340A\001\340A\005" + + "\022P\n\022shielded_vm_config\030\024 \001(\0132,.google.cl" + + "oud.aiplatform.v1.ShieldedVmConfigB\006\340A\001\340" + + "A\005\022\031\n\014network_tags\030\025 \003(\tB\003\340A\001\022C\n\017encrypt" + + "ion_spec\030\027 \001(\0132*.google.cloud.aiplatform" + + ".v1.EncryptionSpec\032-\n\013LabelsEntry\022\013\n\003key" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\225\001\352A\221\001\n1aiplat" + + "form.googleapis.com/NotebookRuntimeTempl" + + "ate\022\\projects/{project}/locations/{locat" + + "ion}/notebookRuntimeTemplates/{notebook_" + + "runtime_template}\"\251\016\n\017NotebookRuntime\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\003\022\031\n\014runtime_user\030\002 \001(\tB\003" + + "\340A\002\022b\n\035notebook_runtime_template_ref\030\003 \001" + + "(\01326.google.cloud.aiplatform.v1.Notebook" + + "RuntimeTemplateRefB\003\340A\003\022\026\n\tproxy_uri\030\005 \001" + + "(\tB\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\003\0224\n\013update_time\030\007 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022R\n\014h" + + "ealth_state\030\010 \001(\01627.google.cloud.aiplatf" + + "orm.v1.NotebookRuntime.HealthStateB\003\340A\003\022" + + "\031\n\014display_name\030\n \001(\tB\003\340A\002\022\023\n\013descriptio" + + "n\030\013 \001(\t\022\034\n\017service_account\030\r \001(\tB\003\340A\003\022T\n" + + "\rruntime_state\030\016 \001(\01628.google.cloud.aipl" + + "atform.v1.NotebookRuntime.RuntimeStateB\003" + + "\340A\003\022\032\n\ris_upgradable\030\017 \001(\010B\003\340A\003\022G\n\006label" + + "s\030\020 \003(\01327.google.cloud.aiplatform.v1.Not" + + "ebookRuntime.LabelsEntry\0228\n\017expiration_t" + + "ime\030\021 \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\022\024\n\007version\030\022 \001(\tB\003\340A\003\022S\n\025notebook_run" + + "time_type\030\023 \001(\0162/.google.cloud.aiplatfor" + + "m.v1.NotebookRuntimeTypeB\003\340A\003\022B\n\014machine" + + "_spec\030\024 \001(\0132\'.google.cloud.aiplatform.v1" + + ".MachineSpecB\003\340A\003\022V\n\031data_persistent_dis" + + "k_spec\030\025 \001(\0132..google.cloud.aiplatform.v" + + "1.PersistentDiskSpecB\003\340A\003\022B\n\014network_spe" + + "c\030\026 \001(\0132\'.google.cloud.aiplatform.v1.Net" + + "workSpecB\003\340A\003\022Y\n\024idle_shutdown_config\030\027 " + + "\001(\01326.google.cloud.aiplatform.v1.Noteboo" + + "kIdleShutdownConfigB\003\340A\003\022F\n\neuc_config\030\030" + + " \001(\0132-.google.cloud.aiplatform.v1.Notebo" + + "okEucConfigB\003\340A\003\022M\n\022shielded_vm_config\030 " + + " \001(\0132,.google.cloud.aiplatform.v1.Shield" + + "edVmConfigB\003\340A\003\022\031\n\014network_tags\030\031 \003(\tB\003\340" + + "A\001\022H\n\017encryption_spec\030\034 \001(\0132*.google.clo" + + "ud.aiplatform.v1.EncryptionSpecB\003\340A\003\022\032\n\r" + + "satisfies_pzs\030\035 \001(\010B\003\340A\003\022\032\n\rsatisfies_pz" + + "i\030\036 \001(\010B\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t" + + "\022\r\n\005value\030\002 \001(\t:\0028\001\"G\n\013HealthState\022\034\n\030HE" + + "ALTH_STATE_UNSPECIFIED\020\000\022\013\n\007HEALTHY\020\001\022\r\n" + + "\tUNHEALTHY\020\002\"\231\001\n\014RuntimeState\022\035\n\031RUNTIME" + + "_STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\021\n\rBEI" + + "NG_STARTED\020\002\022\021\n\rBEING_STOPPED\020\003\022\013\n\007STOPP" + + "ED\020\004\022\022\n\016BEING_UPGRADED\020\005\022\t\n\005ERROR\020d\022\013\n\007I" + + "NVALID\020e:{\352Ax\n)aiplatform.googleapis.com" + + "/NotebookRuntime\022Kprojects/{project}/loc" + + "ations/{location}/notebookRuntimes/{note" + + "book_runtime}*]\n\023NotebookRuntimeType\022%\n!" + + "NOTEBOOK_RUNTIME_TYPE_UNSPECIFIED\020\000\022\020\n\014U" + + "SER_DEFINED\020\001\022\r\n\tONE_CLICK\020\002B\322\001\n\036com.goo" + + "gle.cloud.aiplatform.v1B\024NotebookRuntime" + + "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( @@ -212,7 +222,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExpirationTime", "Version", "NotebookRuntimeType", + "MachineSpec", + "DataPersistentDiskSpec", + "NetworkSpec", "IdleShutdownConfig", + "EucConfig", + "ShieldedVmConfig", "NetworkTags", "EncryptionSpec", "SatisfiesPzs", diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntimeTemplate.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntimeTemplate.java index ba4e8fdc6cdb..c3362bc3d719 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntimeTemplate.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntimeTemplate.java @@ -247,14 +247,21 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
-   * Output only. The default template to use if not specified.
+   * Output only. Deprecated: This field has no behavior. Use
+   * notebook_runtime_type = 'ONE_CLICK' instead.
+   *
+   * The default template to use if not specified.
    * 
* - * bool is_default = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * bool is_default = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * + * @deprecated google.cloud.aiplatform.v1.NotebookRuntimeTemplate.is_default is deprecated. See + * google/cloud/aiplatform/v1/notebook_runtime.proto;l=73 * @return The isDefault. */ @java.lang.Override + @java.lang.Deprecated public boolean getIsDefault() { return isDefault_; } @@ -445,6 +452,15 @@ public com.google.cloud.aiplatform.v1.NetworkSpecOrBuilder getNetworkSpecOrBuild * * *
+   * Deprecated: This field is ignored and the "Vertex AI Notebook Service
+   * Account"
+   * (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is
+   * used for the runtime workload identity.
+   * See
+   * https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account
+   * for more details.
+   * For NotebookExecutionJob, use NotebookExecutionJob.service_account instead.
+   *
    * The service account that the runtime workload runs as.
    * You can use any service account within the same project, but you
    * must have the service account user permission to use the instance.
@@ -454,11 +470,14 @@ public com.google.cloud.aiplatform.v1.NetworkSpecOrBuilder getNetworkSpecOrBuild
    * is used.
    * 
* - * string service_account = 13; + * string service_account = 13 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1.NotebookRuntimeTemplate.service_account is deprecated. + * See google/cloud/aiplatform/v1/notebook_runtime.proto;l=108 * @return The serviceAccount. */ @java.lang.Override + @java.lang.Deprecated public java.lang.String getServiceAccount() { java.lang.Object ref = serviceAccount_; if (ref instanceof java.lang.String) { @@ -474,6 +493,15 @@ public java.lang.String getServiceAccount() { * * *
+   * Deprecated: This field is ignored and the "Vertex AI Notebook Service
+   * Account"
+   * (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is
+   * used for the runtime workload identity.
+   * See
+   * https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account
+   * for more details.
+   * For NotebookExecutionJob, use NotebookExecutionJob.service_account instead.
+   *
    * The service account that the runtime workload runs as.
    * You can use any service account within the same project, but you
    * must have the service account user permission to use the instance.
@@ -483,11 +511,14 @@ public java.lang.String getServiceAccount() {
    * is used.
    * 
* - * string service_account = 13; + * string service_account = 13 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1.NotebookRuntimeTemplate.service_account is deprecated. + * See google/cloud/aiplatform/v1/notebook_runtime.proto;l=108 * @return The bytes for serviceAccount. */ @java.lang.Override + @java.lang.Deprecated public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof java.lang.String) { @@ -2342,14 +2373,21 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. The default template to use if not specified.
+     * Output only. Deprecated: This field has no behavior. Use
+     * notebook_runtime_type = 'ONE_CLICK' instead.
+     *
+     * The default template to use if not specified.
      * 
* - * bool is_default = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * bool is_default = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * + * @deprecated google.cloud.aiplatform.v1.NotebookRuntimeTemplate.is_default is deprecated. See + * google/cloud/aiplatform/v1/notebook_runtime.proto;l=73 * @return The isDefault. */ @java.lang.Override + @java.lang.Deprecated public boolean getIsDefault() { return isDefault_; } @@ -2357,14 +2395,21 @@ public boolean getIsDefault() { * * *
-     * Output only. The default template to use if not specified.
+     * Output only. Deprecated: This field has no behavior. Use
+     * notebook_runtime_type = 'ONE_CLICK' instead.
+     *
+     * The default template to use if not specified.
      * 
* - * bool is_default = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * bool is_default = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * + * @deprecated google.cloud.aiplatform.v1.NotebookRuntimeTemplate.is_default is deprecated. See + * google/cloud/aiplatform/v1/notebook_runtime.proto;l=73 * @param value The isDefault to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setIsDefault(boolean value) { isDefault_ = value; @@ -2376,13 +2421,20 @@ public Builder setIsDefault(boolean value) { * * *
-     * Output only. The default template to use if not specified.
+     * Output only. Deprecated: This field has no behavior. Use
+     * notebook_runtime_type = 'ONE_CLICK' instead.
+     *
+     * The default template to use if not specified.
      * 
* - * bool is_default = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * bool is_default = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * + * @deprecated google.cloud.aiplatform.v1.NotebookRuntimeTemplate.is_default is deprecated. See + * google/cloud/aiplatform/v1/notebook_runtime.proto;l=73 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearIsDefault() { bitField0_ = (bitField0_ & ~0x00000008); isDefault_ = false; @@ -3039,6 +3091,15 @@ public com.google.cloud.aiplatform.v1.NetworkSpecOrBuilder getNetworkSpecOrBuild * * *
+     * Deprecated: This field is ignored and the "Vertex AI Notebook Service
+     * Account"
+     * (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is
+     * used for the runtime workload identity.
+     * See
+     * https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account
+     * for more details.
+     * For NotebookExecutionJob, use NotebookExecutionJob.service_account instead.
+     *
      * The service account that the runtime workload runs as.
      * You can use any service account within the same project, but you
      * must have the service account user permission to use the instance.
@@ -3048,10 +3109,13 @@ public com.google.cloud.aiplatform.v1.NetworkSpecOrBuilder getNetworkSpecOrBuild
      * is used.
      * 
* - * string service_account = 13; + * string service_account = 13 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1.NotebookRuntimeTemplate.service_account is deprecated. + * See google/cloud/aiplatform/v1/notebook_runtime.proto;l=108 * @return The serviceAccount. */ + @java.lang.Deprecated public java.lang.String getServiceAccount() { java.lang.Object ref = serviceAccount_; if (!(ref instanceof java.lang.String)) { @@ -3067,6 +3131,15 @@ public java.lang.String getServiceAccount() { * * *
+     * Deprecated: This field is ignored and the "Vertex AI Notebook Service
+     * Account"
+     * (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is
+     * used for the runtime workload identity.
+     * See
+     * https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account
+     * for more details.
+     * For NotebookExecutionJob, use NotebookExecutionJob.service_account instead.
+     *
      * The service account that the runtime workload runs as.
      * You can use any service account within the same project, but you
      * must have the service account user permission to use the instance.
@@ -3076,10 +3149,13 @@ public java.lang.String getServiceAccount() {
      * is used.
      * 
* - * string service_account = 13; + * string service_account = 13 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1.NotebookRuntimeTemplate.service_account is deprecated. + * See google/cloud/aiplatform/v1/notebook_runtime.proto;l=108 * @return The bytes for serviceAccount. */ + @java.lang.Deprecated public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof String) { @@ -3095,6 +3171,15 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { * * *
+     * Deprecated: This field is ignored and the "Vertex AI Notebook Service
+     * Account"
+     * (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is
+     * used for the runtime workload identity.
+     * See
+     * https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account
+     * for more details.
+     * For NotebookExecutionJob, use NotebookExecutionJob.service_account instead.
+     *
      * The service account that the runtime workload runs as.
      * You can use any service account within the same project, but you
      * must have the service account user permission to use the instance.
@@ -3104,11 +3189,14 @@ public com.google.protobuf.ByteString getServiceAccountBytes() {
      * is used.
      * 
* - * string service_account = 13; + * string service_account = 13 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1.NotebookRuntimeTemplate.service_account is deprecated. + * See google/cloud/aiplatform/v1/notebook_runtime.proto;l=108 * @param value The serviceAccount to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setServiceAccount(java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -3122,6 +3210,15 @@ public Builder setServiceAccount(java.lang.String value) { * * *
+     * Deprecated: This field is ignored and the "Vertex AI Notebook Service
+     * Account"
+     * (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is
+     * used for the runtime workload identity.
+     * See
+     * https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account
+     * for more details.
+     * For NotebookExecutionJob, use NotebookExecutionJob.service_account instead.
+     *
      * The service account that the runtime workload runs as.
      * You can use any service account within the same project, but you
      * must have the service account user permission to use the instance.
@@ -3131,10 +3228,13 @@ public Builder setServiceAccount(java.lang.String value) {
      * is used.
      * 
* - * string service_account = 13; + * string service_account = 13 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1.NotebookRuntimeTemplate.service_account is deprecated. + * See google/cloud/aiplatform/v1/notebook_runtime.proto;l=108 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearServiceAccount() { serviceAccount_ = getDefaultInstance().getServiceAccount(); bitField0_ = (bitField0_ & ~0x00000080); @@ -3145,6 +3245,15 @@ public Builder clearServiceAccount() { * * *
+     * Deprecated: This field is ignored and the "Vertex AI Notebook Service
+     * Account"
+     * (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is
+     * used for the runtime workload identity.
+     * See
+     * https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account
+     * for more details.
+     * For NotebookExecutionJob, use NotebookExecutionJob.service_account instead.
+     *
      * The service account that the runtime workload runs as.
      * You can use any service account within the same project, but you
      * must have the service account user permission to use the instance.
@@ -3154,11 +3263,14 @@ public Builder clearServiceAccount() {
      * is used.
      * 
* - * string service_account = 13; + * string service_account = 13 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1.NotebookRuntimeTemplate.service_account is deprecated. + * See google/cloud/aiplatform/v1/notebook_runtime.proto;l=108 * @param value The bytes for serviceAccount to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntimeTemplateOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntimeTemplateOrBuilder.java index 31abd3f8ece0..b45e6878e36f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntimeTemplateOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntimeTemplateOrBuilder.java @@ -107,13 +107,20 @@ public interface NotebookRuntimeTemplateOrBuilder * * *
-   * Output only. The default template to use if not specified.
+   * Output only. Deprecated: This field has no behavior. Use
+   * notebook_runtime_type = 'ONE_CLICK' instead.
+   *
+   * The default template to use if not specified.
    * 
* - * bool is_default = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * bool is_default = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * + * @deprecated google.cloud.aiplatform.v1.NotebookRuntimeTemplate.is_default is deprecated. See + * google/cloud/aiplatform/v1/notebook_runtime.proto;l=73 * @return The isDefault. */ + @java.lang.Deprecated boolean getIsDefault(); /** @@ -252,6 +259,15 @@ public interface NotebookRuntimeTemplateOrBuilder * * *
+   * Deprecated: This field is ignored and the "Vertex AI Notebook Service
+   * Account"
+   * (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is
+   * used for the runtime workload identity.
+   * See
+   * https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account
+   * for more details.
+   * For NotebookExecutionJob, use NotebookExecutionJob.service_account instead.
+   *
    * The service account that the runtime workload runs as.
    * You can use any service account within the same project, but you
    * must have the service account user permission to use the instance.
@@ -261,15 +277,27 @@ public interface NotebookRuntimeTemplateOrBuilder
    * is used.
    * 
* - * string service_account = 13; + * string service_account = 13 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1.NotebookRuntimeTemplate.service_account is deprecated. + * See google/cloud/aiplatform/v1/notebook_runtime.proto;l=108 * @return The serviceAccount. */ + @java.lang.Deprecated java.lang.String getServiceAccount(); /** * * *
+   * Deprecated: This field is ignored and the "Vertex AI Notebook Service
+   * Account"
+   * (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is
+   * used for the runtime workload identity.
+   * See
+   * https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account
+   * for more details.
+   * For NotebookExecutionJob, use NotebookExecutionJob.service_account instead.
+   *
    * The service account that the runtime workload runs as.
    * You can use any service account within the same project, but you
    * must have the service account user permission to use the instance.
@@ -279,10 +307,13 @@ public interface NotebookRuntimeTemplateOrBuilder
    * is used.
    * 
* - * string service_account = 13; + * string service_account = 13 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1.NotebookRuntimeTemplate.service_account is deprecated. + * See google/cloud/aiplatform/v1/notebook_runtime.proto;l=108 * @return The bytes for serviceAccount. */ + @java.lang.Deprecated com.google.protobuf.ByteString getServiceAccountBytes(); /** diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Part.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Part.java index ca2da14d094b..383f0ce2526d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Part.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Part.java @@ -81,6 +81,8 @@ public enum DataCase FILE_DATA(3), FUNCTION_CALL(5), FUNCTION_RESPONSE(6), + EXECUTABLE_CODE(8), + CODE_EXECUTION_RESULT(9), DATA_NOT_SET(0); private final int value; @@ -109,6 +111,10 @@ public static DataCase forNumber(int value) { return FUNCTION_CALL; case 6: return FUNCTION_RESPONSE; + case 8: + return EXECUTABLE_CODE; + case 9: + return CODE_EXECUTION_RESULT; case 0: return DATA_NOT_SET; default: @@ -484,6 +490,121 @@ public com.google.cloud.aiplatform.v1.FunctionResponseOrBuilder getFunctionRespo return com.google.cloud.aiplatform.v1.FunctionResponse.getDefaultInstance(); } + public static final int EXECUTABLE_CODE_FIELD_NUMBER = 8; + /** + * + * + *
+   * Optional. Code generated by the model that is meant to be executed.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ExecutableCode executable_code = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the executableCode field is set. + */ + @java.lang.Override + public boolean hasExecutableCode() { + return dataCase_ == 8; + } + /** + * + * + *
+   * Optional. Code generated by the model that is meant to be executed.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ExecutableCode executable_code = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The executableCode. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ExecutableCode getExecutableCode() { + if (dataCase_ == 8) { + return (com.google.cloud.aiplatform.v1.ExecutableCode) data_; + } + return com.google.cloud.aiplatform.v1.ExecutableCode.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Code generated by the model that is meant to be executed.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ExecutableCode executable_code = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ExecutableCodeOrBuilder getExecutableCodeOrBuilder() { + if (dataCase_ == 8) { + return (com.google.cloud.aiplatform.v1.ExecutableCode) data_; + } + return com.google.cloud.aiplatform.v1.ExecutableCode.getDefaultInstance(); + } + + public static final int CODE_EXECUTION_RESULT_FIELD_NUMBER = 9; + /** + * + * + *
+   * Optional. Result of executing the [ExecutableCode].
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CodeExecutionResult code_execution_result = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the codeExecutionResult field is set. + */ + @java.lang.Override + public boolean hasCodeExecutionResult() { + return dataCase_ == 9; + } + /** + * + * + *
+   * Optional. Result of executing the [ExecutableCode].
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CodeExecutionResult code_execution_result = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The codeExecutionResult. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.CodeExecutionResult getCodeExecutionResult() { + if (dataCase_ == 9) { + return (com.google.cloud.aiplatform.v1.CodeExecutionResult) data_; + } + return com.google.cloud.aiplatform.v1.CodeExecutionResult.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Result of executing the [ExecutableCode].
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CodeExecutionResult code_execution_result = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.CodeExecutionResultOrBuilder + getCodeExecutionResultOrBuilder() { + if (dataCase_ == 9) { + return (com.google.cloud.aiplatform.v1.CodeExecutionResult) data_; + } + return com.google.cloud.aiplatform.v1.CodeExecutionResult.getDefaultInstance(); + } + public static final int VIDEO_METADATA_FIELD_NUMBER = 4; /** * @@ -576,6 +697,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (dataCase_ == 6) { output.writeMessage(6, (com.google.cloud.aiplatform.v1.FunctionResponse) data_); } + if (dataCase_ == 8) { + output.writeMessage(8, (com.google.cloud.aiplatform.v1.ExecutableCode) data_); + } + if (dataCase_ == 9) { + output.writeMessage(9, (com.google.cloud.aiplatform.v1.CodeExecutionResult) data_); + } getUnknownFields().writeTo(output); } @@ -613,6 +740,16 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 6, (com.google.cloud.aiplatform.v1.FunctionResponse) data_); } + if (dataCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.cloud.aiplatform.v1.ExecutableCode) data_); + } + if (dataCase_ == 9) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.cloud.aiplatform.v1.CodeExecutionResult) data_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -645,6 +782,12 @@ public boolean equals(final java.lang.Object obj) { case 6: if (!getFunctionResponse().equals(other.getFunctionResponse())) return false; break; + case 8: + if (!getExecutableCode().equals(other.getExecutableCode())) return false; + break; + case 9: + if (!getCodeExecutionResult().equals(other.getCodeExecutionResult())) return false; + break; case 0: default: } @@ -688,6 +831,14 @@ public int hashCode() { hash = (37 * hash) + FUNCTION_RESPONSE_FIELD_NUMBER; hash = (53 * hash) + getFunctionResponse().hashCode(); break; + case 8: + hash = (37 * hash) + EXECUTABLE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getExecutableCode().hashCode(); + break; + case 9: + hash = (37 * hash) + CODE_EXECUTION_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getCodeExecutionResult().hashCode(); + break; case 0: default: } @@ -855,6 +1006,12 @@ public Builder clear() { if (functionResponseBuilder_ != null) { functionResponseBuilder_.clear(); } + if (executableCodeBuilder_ != null) { + executableCodeBuilder_.clear(); + } + if (codeExecutionResultBuilder_ != null) { + codeExecutionResultBuilder_.clear(); + } if (videoMetadataBuilder_ != null) { videoMetadataBuilder_.clear(); } @@ -915,6 +1072,12 @@ private void buildPartialOneofs(com.google.cloud.aiplatform.v1.Part result) { if (dataCase_ == 6 && functionResponseBuilder_ != null) { result.data_ = functionResponseBuilder_.build(); } + if (dataCase_ == 8 && executableCodeBuilder_ != null) { + result.data_ = executableCodeBuilder_.build(); + } + if (dataCase_ == 9 && codeExecutionResultBuilder_ != null) { + result.data_ = codeExecutionResultBuilder_.build(); + } result.metadataCase_ = metadataCase_; result.metadata_ = this.metadata_; if (metadataCase_ == 4 && videoMetadataBuilder_ != null) { @@ -995,6 +1158,16 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Part other) { mergeFunctionResponse(other.getFunctionResponse()); break; } + case EXECUTABLE_CODE: + { + mergeExecutableCode(other.getExecutableCode()); + break; + } + case CODE_EXECUTION_RESULT: + { + mergeCodeExecutionResult(other.getCodeExecutionResult()); + break; + } case DATA_NOT_SET: { break; @@ -1075,6 +1248,19 @@ public Builder mergeFrom( dataCase_ = 6; break; } // case 50 + case 66: + { + input.readMessage(getExecutableCodeFieldBuilder().getBuilder(), extensionRegistry); + dataCase_ = 8; + break; + } // case 66 + case 74: + { + input.readMessage( + getCodeExecutionResultFieldBuilder().getBuilder(), extensionRegistry); + dataCase_ = 9; + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2202,6 +2388,464 @@ public com.google.cloud.aiplatform.v1.FunctionResponseOrBuilder getFunctionRespo return functionResponseBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ExecutableCode, + com.google.cloud.aiplatform.v1.ExecutableCode.Builder, + com.google.cloud.aiplatform.v1.ExecutableCodeOrBuilder> + executableCodeBuilder_; + /** + * + * + *
+     * Optional. Code generated by the model that is meant to be executed.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ExecutableCode executable_code = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the executableCode field is set. + */ + @java.lang.Override + public boolean hasExecutableCode() { + return dataCase_ == 8; + } + /** + * + * + *
+     * Optional. Code generated by the model that is meant to be executed.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ExecutableCode executable_code = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The executableCode. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ExecutableCode getExecutableCode() { + if (executableCodeBuilder_ == null) { + if (dataCase_ == 8) { + return (com.google.cloud.aiplatform.v1.ExecutableCode) data_; + } + return com.google.cloud.aiplatform.v1.ExecutableCode.getDefaultInstance(); + } else { + if (dataCase_ == 8) { + return executableCodeBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.ExecutableCode.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Code generated by the model that is meant to be executed.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ExecutableCode executable_code = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExecutableCode(com.google.cloud.aiplatform.v1.ExecutableCode value) { + if (executableCodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + executableCodeBuilder_.setMessage(value); + } + dataCase_ = 8; + return this; + } + /** + * + * + *
+     * Optional. Code generated by the model that is meant to be executed.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ExecutableCode executable_code = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExecutableCode( + com.google.cloud.aiplatform.v1.ExecutableCode.Builder builderForValue) { + if (executableCodeBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + executableCodeBuilder_.setMessage(builderForValue.build()); + } + dataCase_ = 8; + return this; + } + /** + * + * + *
+     * Optional. Code generated by the model that is meant to be executed.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ExecutableCode executable_code = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeExecutableCode(com.google.cloud.aiplatform.v1.ExecutableCode value) { + if (executableCodeBuilder_ == null) { + if (dataCase_ == 8 + && data_ != com.google.cloud.aiplatform.v1.ExecutableCode.getDefaultInstance()) { + data_ = + com.google.cloud.aiplatform.v1.ExecutableCode.newBuilder( + (com.google.cloud.aiplatform.v1.ExecutableCode) data_) + .mergeFrom(value) + .buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + if (dataCase_ == 8) { + executableCodeBuilder_.mergeFrom(value); + } else { + executableCodeBuilder_.setMessage(value); + } + } + dataCase_ = 8; + return this; + } + /** + * + * + *
+     * Optional. Code generated by the model that is meant to be executed.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ExecutableCode executable_code = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearExecutableCode() { + if (executableCodeBuilder_ == null) { + if (dataCase_ == 8) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + } else { + if (dataCase_ == 8) { + dataCase_ = 0; + data_ = null; + } + executableCodeBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Code generated by the model that is meant to be executed.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ExecutableCode executable_code = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.ExecutableCode.Builder getExecutableCodeBuilder() { + return getExecutableCodeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Code generated by the model that is meant to be executed.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ExecutableCode executable_code = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ExecutableCodeOrBuilder getExecutableCodeOrBuilder() { + if ((dataCase_ == 8) && (executableCodeBuilder_ != null)) { + return executableCodeBuilder_.getMessageOrBuilder(); + } else { + if (dataCase_ == 8) { + return (com.google.cloud.aiplatform.v1.ExecutableCode) data_; + } + return com.google.cloud.aiplatform.v1.ExecutableCode.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Code generated by the model that is meant to be executed.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ExecutableCode executable_code = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ExecutableCode, + com.google.cloud.aiplatform.v1.ExecutableCode.Builder, + com.google.cloud.aiplatform.v1.ExecutableCodeOrBuilder> + getExecutableCodeFieldBuilder() { + if (executableCodeBuilder_ == null) { + if (!(dataCase_ == 8)) { + data_ = com.google.cloud.aiplatform.v1.ExecutableCode.getDefaultInstance(); + } + executableCodeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ExecutableCode, + com.google.cloud.aiplatform.v1.ExecutableCode.Builder, + com.google.cloud.aiplatform.v1.ExecutableCodeOrBuilder>( + (com.google.cloud.aiplatform.v1.ExecutableCode) data_, + getParentForChildren(), + isClean()); + data_ = null; + } + dataCase_ = 8; + onChanged(); + return executableCodeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.CodeExecutionResult, + com.google.cloud.aiplatform.v1.CodeExecutionResult.Builder, + com.google.cloud.aiplatform.v1.CodeExecutionResultOrBuilder> + codeExecutionResultBuilder_; + /** + * + * + *
+     * Optional. Result of executing the [ExecutableCode].
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CodeExecutionResult code_execution_result = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the codeExecutionResult field is set. + */ + @java.lang.Override + public boolean hasCodeExecutionResult() { + return dataCase_ == 9; + } + /** + * + * + *
+     * Optional. Result of executing the [ExecutableCode].
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CodeExecutionResult code_execution_result = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The codeExecutionResult. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.CodeExecutionResult getCodeExecutionResult() { + if (codeExecutionResultBuilder_ == null) { + if (dataCase_ == 9) { + return (com.google.cloud.aiplatform.v1.CodeExecutionResult) data_; + } + return com.google.cloud.aiplatform.v1.CodeExecutionResult.getDefaultInstance(); + } else { + if (dataCase_ == 9) { + return codeExecutionResultBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.CodeExecutionResult.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Result of executing the [ExecutableCode].
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CodeExecutionResult code_execution_result = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCodeExecutionResult( + com.google.cloud.aiplatform.v1.CodeExecutionResult value) { + if (codeExecutionResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + codeExecutionResultBuilder_.setMessage(value); + } + dataCase_ = 9; + return this; + } + /** + * + * + *
+     * Optional. Result of executing the [ExecutableCode].
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CodeExecutionResult code_execution_result = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCodeExecutionResult( + com.google.cloud.aiplatform.v1.CodeExecutionResult.Builder builderForValue) { + if (codeExecutionResultBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + codeExecutionResultBuilder_.setMessage(builderForValue.build()); + } + dataCase_ = 9; + return this; + } + /** + * + * + *
+     * Optional. Result of executing the [ExecutableCode].
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CodeExecutionResult code_execution_result = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCodeExecutionResult( + com.google.cloud.aiplatform.v1.CodeExecutionResult value) { + if (codeExecutionResultBuilder_ == null) { + if (dataCase_ == 9 + && data_ != com.google.cloud.aiplatform.v1.CodeExecutionResult.getDefaultInstance()) { + data_ = + com.google.cloud.aiplatform.v1.CodeExecutionResult.newBuilder( + (com.google.cloud.aiplatform.v1.CodeExecutionResult) data_) + .mergeFrom(value) + .buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + if (dataCase_ == 9) { + codeExecutionResultBuilder_.mergeFrom(value); + } else { + codeExecutionResultBuilder_.setMessage(value); + } + } + dataCase_ = 9; + return this; + } + /** + * + * + *
+     * Optional. Result of executing the [ExecutableCode].
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CodeExecutionResult code_execution_result = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCodeExecutionResult() { + if (codeExecutionResultBuilder_ == null) { + if (dataCase_ == 9) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + } else { + if (dataCase_ == 9) { + dataCase_ = 0; + data_ = null; + } + codeExecutionResultBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Result of executing the [ExecutableCode].
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CodeExecutionResult code_execution_result = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.CodeExecutionResult.Builder + getCodeExecutionResultBuilder() { + return getCodeExecutionResultFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Result of executing the [ExecutableCode].
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CodeExecutionResult code_execution_result = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.CodeExecutionResultOrBuilder + getCodeExecutionResultOrBuilder() { + if ((dataCase_ == 9) && (codeExecutionResultBuilder_ != null)) { + return codeExecutionResultBuilder_.getMessageOrBuilder(); + } else { + if (dataCase_ == 9) { + return (com.google.cloud.aiplatform.v1.CodeExecutionResult) data_; + } + return com.google.cloud.aiplatform.v1.CodeExecutionResult.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Result of executing the [ExecutableCode].
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CodeExecutionResult code_execution_result = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.CodeExecutionResult, + com.google.cloud.aiplatform.v1.CodeExecutionResult.Builder, + com.google.cloud.aiplatform.v1.CodeExecutionResultOrBuilder> + getCodeExecutionResultFieldBuilder() { + if (codeExecutionResultBuilder_ == null) { + if (!(dataCase_ == 9)) { + data_ = com.google.cloud.aiplatform.v1.CodeExecutionResult.getDefaultInstance(); + } + codeExecutionResultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.CodeExecutionResult, + com.google.cloud.aiplatform.v1.CodeExecutionResult.Builder, + com.google.cloud.aiplatform.v1.CodeExecutionResultOrBuilder>( + (com.google.cloud.aiplatform.v1.CodeExecutionResult) data_, + getParentForChildren(), + isClean()); + data_ = null; + } + dataCase_ = 9; + onChanged(); + return codeExecutionResultBuilder_; + } + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.VideoMetadata, com.google.cloud.aiplatform.v1.VideoMetadata.Builder, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PartOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PartOrBuilder.java index f6be49711d8e..21d6c11282db 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PartOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PartOrBuilder.java @@ -240,6 +240,88 @@ public interface PartOrBuilder */ com.google.cloud.aiplatform.v1.FunctionResponseOrBuilder getFunctionResponseOrBuilder(); + /** + * + * + *
+   * Optional. Code generated by the model that is meant to be executed.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ExecutableCode executable_code = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the executableCode field is set. + */ + boolean hasExecutableCode(); + /** + * + * + *
+   * Optional. Code generated by the model that is meant to be executed.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ExecutableCode executable_code = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The executableCode. + */ + com.google.cloud.aiplatform.v1.ExecutableCode getExecutableCode(); + /** + * + * + *
+   * Optional. Code generated by the model that is meant to be executed.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ExecutableCode executable_code = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1.ExecutableCodeOrBuilder getExecutableCodeOrBuilder(); + + /** + * + * + *
+   * Optional. Result of executing the [ExecutableCode].
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CodeExecutionResult code_execution_result = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the codeExecutionResult field is set. + */ + boolean hasCodeExecutionResult(); + /** + * + * + *
+   * Optional. Result of executing the [ExecutableCode].
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CodeExecutionResult code_execution_result = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The codeExecutionResult. + */ + com.google.cloud.aiplatform.v1.CodeExecutionResult getCodeExecutionResult(); + /** + * + * + *
+   * Optional. Result of executing the [ExecutableCode].
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CodeExecutionResult code_execution_result = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1.CodeExecutionResultOrBuilder getCodeExecutionResultOrBuilder(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceProto.java index 33cb7eac7782..c28adb6359f7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceProto.java @@ -226,131 +226,143 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "lB\003\340A\001\022Q\n\021generation_config\030\007 \001(\0132,.goog" + "le.cloud.aiplatform.v1.GenerationConfigB" + "\003\340A\001H\001\210\001\001B\025\n\023_system_instructionB\024\n\022_gen" - + "eration_config\"N\n\023CountTokensResponse\022\024\n" - + "\014total_tokens\030\001 \001(\005\022!\n\031total_billable_ch" - + "aracters\030\002 \001(\005\"\335\004\n\026GenerateContentReques" - + "t\022\022\n\005model\030\005 \001(\tB\003\340A\002\022:\n\010contents\030\002 \003(\0132" - + "#.google.cloud.aiplatform.v1.ContentB\003\340A" - + "\002\022I\n\022system_instruction\030\010 \001(\0132#.google.c" - + "loud.aiplatform.v1.ContentB\003\340A\001H\000\210\001\001\0224\n\005" - + "tools\030\006 \003(\0132 .google.cloud.aiplatform.v1" - + ".ToolB\003\340A\001\022@\n\013tool_config\030\007 \001(\0132&.google" - + ".cloud.aiplatform.v1.ToolConfigB\003\340A\001\022S\n\006" - + "labels\030\n \003(\0132>.google.cloud.aiplatform.v" - + "1.GenerateContentRequest.LabelsEntryB\003\340A" - + "\001\022G\n\017safety_settings\030\003 \003(\0132).google.clou" - + "d.aiplatform.v1.SafetySettingB\003\340A\001\022L\n\021ge" - + "neration_config\030\004 \001(\0132,.google.cloud.aip" - + "latform.v1.GenerationConfigB\003\340A\001\032-\n\013Labe" - + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B" - + "\025\n\023_system_instruction\"\363\005\n\027GenerateConte" - + "ntResponse\022>\n\ncandidates\030\002 \003(\0132%.google." - + "cloud.aiplatform.v1.CandidateB\003\340A\003\022\032\n\rmo" - + "del_version\030\013 \001(\tB\003\340A\003\022`\n\017prompt_feedbac" - + "k\030\003 \001(\0132B.google.cloud.aiplatform.v1.Gen" - + "erateContentResponse.PromptFeedbackB\003\340A\003" - + "\022Y\n\016usage_metadata\030\004 \001(\0132A.google.cloud." - + "aiplatform.v1.GenerateContentResponse.Us" - + "ageMetadata\032\326\002\n\016PromptFeedback\022k\n\014block_" - + "reason\030\001 \001(\0162P.google.cloud.aiplatform.v" - + "1.GenerateContentResponse.PromptFeedback" - + ".BlockedReasonB\003\340A\003\022E\n\016safety_ratings\030\002 " - + "\003(\0132(.google.cloud.aiplatform.v1.SafetyR" - + "atingB\003\340A\003\022!\n\024block_reason_message\030\003 \001(\t" - + "B\003\340A\003\"m\n\rBlockedReason\022\036\n\032BLOCKED_REASON" - + "_UNSPECIFIED\020\000\022\n\n\006SAFETY\020\001\022\t\n\005OTHER\020\002\022\r\n" - + "\tBLOCKLIST\020\003\022\026\n\022PROHIBITED_CONTENT\020\004\032f\n\r" - + "UsageMetadata\022\032\n\022prompt_token_count\030\001 \001(" - + "\005\022\036\n\026candidates_token_count\030\002 \001(\005\022\031\n\021tot" - + "al_token_count\030\003 \001(\0052\362\031\n\021PredictionServi" - + "ce\022\224\002\n\007Predict\022*.google.cloud.aiplatform" - + ".v1.PredictRequest\032+.google.cloud.aiplat" - + "form.v1.PredictResponse\"\257\001\332A\035endpoint,in" - + "stances,parameters\202\323\344\223\002\210\001\"9/v1/{endpoint" - + "=projects/*/locations/*/endpoints/*}:pre" - + "dict:\001*ZH\"C/v1/{endpoint=projects/*/loca" - + "tions/*/publishers/*/models/*}:predict:\001" - + "*\022\376\001\n\nRawPredict\022-.google.cloud.aiplatfo" - + "rm.v1.RawPredictRequest\032\024.google.api.Htt" - + "pBody\"\252\001\332A\022endpoint,http_body\202\323\344\223\002\216\001\"\"9/v1/{endpoin" - + "t=projects/*/locations/*/endpoints/*}:ex" - + "plain:\001*\022\215\003\n\017GenerateContent\0222.google.cl" - + "oud.aiplatform.v1.GenerateContentRequest" - + "\0323.google.cloud.aiplatform.v1.GenerateCo" - + "ntentResponse\"\220\002\332A\016model,contents\202\323\344\223\002\370\001" - + "\">/v1/{model=projects/*/locations/*/endp" - + "oints/*}:generateContent:\001*ZM\"H/v1/{mode" - + "l=projects/*/locations/*/publishers/*/mo" - + "dels/*}:generateContent:\001*Z,\"\'/v1/{model" - + "=endpoints/*}:generateContent:\001*Z6\"1/v1/" - + "{model=publishers/*/models/*}:generateCo" - + "ntent:\001*\022\255\003\n\025StreamGenerateContent\0222.goo" - + "gle.cloud.aiplatform.v1.GenerateContentR" - + "equest\0323.google.cloud.aiplatform.v1.Gene" - + "rateContentResponse\"\250\002\332A\016model,contents\202" - + "\323\344\223\002\220\002\"D/v1/{model=projects/*/locations/" - + "*/endpoints/*}:streamGenerateContent:\001*Z" - + "S\"N/v1/{model=projects/*/locations/*/pub" - + "lishers/*/models/*}:streamGenerateConten" - + "t:\001*Z2\"-/v1/{model=endpoints/*}:streamGe" - + "nerateContent:\001*Z<\"7/v1/{model=publisher" - + "s/*/models/*}:streamGenerateContent:\001*0\001" - + "\032\206\001\312A\031aiplatform.googleapis.com\322Aghttps:" - + "//www.googleapis.com/auth/cloud-platform" - + ",https://www.googleapis.com/auth/cloud-p" - + "latform.read-onlyB\324\001\n\036com.google.cloud.a" - + "iplatform.v1B\026PredictionServiceProtoP\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" + + "eration_config\"\242\001\n\023CountTokensResponse\022\024" + + "\n\014total_tokens\030\001 \001(\005\022!\n\031total_billable_c" + + "haracters\030\002 \001(\005\022R\n\025prompt_tokens_details" + + "\030\003 \003(\0132..google.cloud.aiplatform.v1.Moda" + + "lityTokenCountB\003\340A\003\"\246\005\n\026GenerateContentR" + + "equest\022\022\n\005model\030\005 \001(\tB\003\340A\002\022:\n\010contents\030\002" + + " \003(\0132#.google.cloud.aiplatform.v1.Conten" + + "tB\003\340A\002\022I\n\022system_instruction\030\010 \001(\0132#.goo" + + "gle.cloud.aiplatform.v1.ContentB\003\340A\001H\000\210\001" + + "\001\022G\n\016cached_content\030\t \001(\tB/\340A\001\372A)\n\'aipla" + + "tform.googleapis.com/CachedContent\0224\n\005to" + + "ols\030\006 \003(\0132 .google.cloud.aiplatform.v1.T" + + "oolB\003\340A\001\022@\n\013tool_config\030\007 \001(\0132&.google.c" + + "loud.aiplatform.v1.ToolConfigB\003\340A\001\022S\n\006la" + + "bels\030\n \003(\0132>.google.cloud.aiplatform.v1." + + "GenerateContentRequest.LabelsEntryB\003\340A\001\022" + + "G\n\017safety_settings\030\003 \003(\0132).google.cloud." + + "aiplatform.v1.SafetySettingB\003\340A\001\022L\n\021gene" + + "ration_config\030\004 \001(\0132,.google.cloud.aipla" + + "tform.v1.GenerationConfigB\003\340A\001\032-\n\013Labels" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\025\n" + + "\023_system_instruction\"\234\010\n\027GenerateContent" + + "Response\022>\n\ncandidates\030\002 \003(\0132%.google.cl" + + "oud.aiplatform.v1.CandidateB\003\340A\003\022\032\n\rmode" + + "l_version\030\013 \001(\tB\003\340A\003\022`\n\017prompt_feedback\030" + + "\003 \001(\0132B.google.cloud.aiplatform.v1.Gener" + + "ateContentResponse.PromptFeedbackB\003\340A\003\022Y" + + "\n\016usage_metadata\030\004 \001(\0132A.google.cloud.ai" + + "platform.v1.GenerateContentResponse.Usag" + + "eMetadata\032\326\002\n\016PromptFeedback\022k\n\014block_re" + + "ason\030\001 \001(\0162P.google.cloud.aiplatform.v1." + + "GenerateContentResponse.PromptFeedback.B" + + "lockedReasonB\003\340A\003\022E\n\016safety_ratings\030\002 \003(" + + "\0132(.google.cloud.aiplatform.v1.SafetyRat" + + "ingB\003\340A\003\022!\n\024block_reason_message\030\003 \001(\tB\003" + + "\340A\003\"m\n\rBlockedReason\022\036\n\032BLOCKED_REASON_U" + + "NSPECIFIED\020\000\022\n\n\006SAFETY\020\001\022\t\n\005OTHER\020\002\022\r\n\tB" + + "LOCKLIST\020\003\022\026\n\022PROHIBITED_CONTENT\020\004\032\216\003\n\rU" + + "sageMetadata\022\032\n\022prompt_token_count\030\001 \001(\005" + + "\022\036\n\026candidates_token_count\030\002 \001(\005\022\031\n\021tota" + + "l_token_count\030\003 \001(\005\022\'\n\032cached_content_to" + + "ken_count\030\005 \001(\005B\003\340A\003\022R\n\025prompt_tokens_de" + + "tails\030\t \003(\0132..google.cloud.aiplatform.v1" + + ".ModalityTokenCountB\003\340A\003\022Q\n\024cache_tokens" + + "_details\030\n \003(\0132..google.cloud.aiplatform" + + ".v1.ModalityTokenCountB\003\340A\003\022V\n\031candidate" + + "s_tokens_details\030\013 \003(\0132..google.cloud.ai" + + "platform.v1.ModalityTokenCountB\003\340A\0032\362\031\n\021" + + "PredictionService\022\224\002\n\007Predict\022*.google.c" + + "loud.aiplatform.v1.PredictRequest\032+.goog" + + "le.cloud.aiplatform.v1.PredictResponse\"\257" + + "\001\332A\035endpoint,instances,parameters\202\323\344\223\002\210\001" + + "\"9/v1/{endpoint=projects/*/locations/*/e" + + "ndpoints/*}:predict:\001*ZH\"C/v1/{endpoint=" + + "projects/*/locations/*/publishers/*/mode" + + "ls/*}:predict:\001*\022\376\001\n\nRawPredict\022-.google" + + ".cloud.aiplatform.v1.RawPredictRequest\032\024" + + ".google.api.HttpBody\"\252\001\332A\022endpoint,http_" + + "body\202\323\344\223\002\216\001\"\"9/v1/{endpoint=projects/*/locations/*/" + + "endpoints/*}:explain:\001*\022\215\003\n\017GenerateCont" + + "ent\0222.google.cloud.aiplatform.v1.Generat" + + "eContentRequest\0323.google.cloud.aiplatfor" + + "m.v1.GenerateContentResponse\"\220\002\332A\016model," + + "contents\202\323\344\223\002\370\001\">/v1/{model=projects/*/l" + + "ocations/*/endpoints/*}:generateContent:" + + "\001*ZM\"H/v1/{model=projects/*/locations/*/" + + "publishers/*/models/*}:generateContent:\001" + + "*Z,\"\'/v1/{model=endpoints/*}:generateCon" + + "tent:\001*Z6\"1/v1/{model=publishers/*/model" + + "s/*}:generateContent:\001*\022\255\003\n\025StreamGenera" + + "teContent\0222.google.cloud.aiplatform.v1.G" + + "enerateContentRequest\0323.google.cloud.aip" + + "latform.v1.GenerateContentResponse\"\250\002\332A\016" + + "model,contents\202\323\344\223\002\220\002\"D/v1/{model=projec" + + "ts/*/locations/*/endpoints/*}:streamGene" + + "rateContent:\001*ZS\"N/v1/{model=projects/*/" + + "locations/*/publishers/*/models/*}:strea" + + "mGenerateContent:\001*Z2\"-/v1/{model=endpoi" + + "nts/*}:streamGenerateContent:\001*Z<\"7/v1/{" + + "model=publishers/*/models/*}:streamGener" + + "ateContent:\001*0\001\032\206\001\312A\031aiplatform.googleap" + + "is.com\322Aghttps://www.googleapis.com/auth" + + "/cloud-platform,https://www.googleapis.c" + + "om/auth/cloud-platform.read-onlyB\324\001\n\036com" + + ".google.cloud.aiplatform.v1B\026PredictionS" + + "erviceProtoP\001Z>cloud.google.com/go/aipla" + + "tform/apiv1/aiplatformpb;aiplatformpb\252\002\032" + + "Google.Cloud.AIPlatform.V1\312\002\032Google\\Clou" + + "d\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatf" + + "orm::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -536,7 +548,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_CountTokensResponse_descriptor, new java.lang.String[] { - "TotalTokens", "TotalBillableCharacters", + "TotalTokens", "TotalBillableCharacters", "PromptTokensDetails", }); internal_static_google_cloud_aiplatform_v1_GenerateContentRequest_descriptor = getDescriptor().getMessageTypes().get(20); @@ -547,6 +559,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Model", "Contents", "SystemInstruction", + "CachedContent", "Tools", "ToolConfig", "Labels", @@ -589,7 +602,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_GenerateContentResponse_UsageMetadata_descriptor, new java.lang.String[] { - "PromptTokenCount", "CandidatesTokenCount", "TotalTokenCount", + "PromptTokenCount", + "CandidatesTokenCount", + "TotalTokenCount", + "CachedContentTokenCount", + "PromptTokensDetails", + "CacheTokensDetails", + "CandidatesTokensDetails", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/QueryReasoningEngineRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/QueryReasoningEngineRequest.java new file mode 100644 index 000000000000..431be0b6d408 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/QueryReasoningEngineRequest.java @@ -0,0 +1,1125 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/reasoning_engine_execution_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for [ReasoningEngineExecutionService.Query][].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.QueryReasoningEngineRequest} + */ +public final class QueryReasoningEngineRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.QueryReasoningEngineRequest) + QueryReasoningEngineRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use QueryReasoningEngineRequest.newBuilder() to construct. + private QueryReasoningEngineRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private QueryReasoningEngineRequest() { + name_ = ""; + classMethod_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new QueryReasoningEngineRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_QueryReasoningEngineRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_QueryReasoningEngineRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest.class, + com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest.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 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 + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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.v1.QueryReasoningEngineRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest other = + (com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest) 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.v1.QueryReasoningEngineRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest parseFrom( + 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.QueryReasoningEngineRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest parseFrom( + com.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.QueryReasoningEngineRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest 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.QueryReasoningEngineRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest parseFrom( + java.io.InputStream 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.QueryReasoningEngineRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest parseDelimitedFrom( + java.io.InputStream 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.QueryReasoningEngineRequest 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.QueryReasoningEngineRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.QueryReasoningEngineRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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.Query][].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.QueryReasoningEngineRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.QueryReasoningEngineRequest) + com.google.cloud.aiplatform.v1.QueryReasoningEngineRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_QueryReasoningEngineRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_QueryReasoningEngineRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest.class, + com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest.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.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_QueryReasoningEngineRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest build() { + com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest buildPartial() { + com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest result = + new com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest 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.v1.QueryReasoningEngineRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest other) { + if (other == com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest.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 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); + } + + @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.QueryReasoningEngineRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.QueryReasoningEngineRequest) + private static final com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest(); + } + + public static com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryReasoningEngineRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.QueryReasoningEngineRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/QueryReasoningEngineRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/QueryReasoningEngineRequestOrBuilder.java new file mode 100644 index 000000000000..36096bccbd4e --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/QueryReasoningEngineRequestOrBuilder.java @@ -0,0 +1,124 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/reasoning_engine_execution_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface QueryReasoningEngineRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.QueryReasoningEngineRequest) + 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 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-v1/src/main/java/com/google/cloud/aiplatform/v1/QueryReasoningEngineResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/QueryReasoningEngineResponse.java new file mode 100644 index 000000000000..8b5e9fb3c7d5 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/QueryReasoningEngineResponse.java @@ -0,0 +1,713 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/reasoning_engine_execution_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Response message for [ReasoningEngineExecutionService.Query][]
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.QueryReasoningEngineResponse} + */ +public final class QueryReasoningEngineResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.QueryReasoningEngineResponse) + QueryReasoningEngineResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use QueryReasoningEngineResponse.newBuilder() to construct. + private QueryReasoningEngineResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private QueryReasoningEngineResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new QueryReasoningEngineResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_QueryReasoningEngineResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_QueryReasoningEngineResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse.class, + com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse.Builder.class); + } + + private int bitField0_; + public static final int OUTPUT_FIELD_NUMBER = 1; + private com.google.protobuf.Value output_; + /** + * + * + *
+   * Response provided by users in JSON object format.
+   * 
+ * + * .google.protobuf.Value output = 1; + * + * @return Whether the output field is set. + */ + @java.lang.Override + public boolean hasOutput() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Response provided by users in JSON object format.
+   * 
+ * + * .google.protobuf.Value output = 1; + * + * @return The output. + */ + @java.lang.Override + public com.google.protobuf.Value getOutput() { + return output_ == null ? com.google.protobuf.Value.getDefaultInstance() : output_; + } + /** + * + * + *
+   * Response provided by users in JSON object format.
+   * 
+ * + * .google.protobuf.Value output = 1; + */ + @java.lang.Override + public com.google.protobuf.ValueOrBuilder getOutputOrBuilder() { + return output_ == null ? com.google.protobuf.Value.getDefaultInstance() : output_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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, getOutput()); + } + 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, getOutput()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.QueryReasoningEngineResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse other = + (com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse) obj; + + if (hasOutput() != other.hasOutput()) return false; + if (hasOutput()) { + if (!getOutput().equals(other.getOutput())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasOutput()) { + hash = (37 * hash) + OUTPUT_FIELD_NUMBER; + hash = (53 * hash) + getOutput().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse parseFrom( + 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.QueryReasoningEngineResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse parseFrom( + com.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.QueryReasoningEngineResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse 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.QueryReasoningEngineResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse parseFrom( + java.io.InputStream 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.QueryReasoningEngineResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse parseDelimitedFrom( + java.io.InputStream 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.QueryReasoningEngineResponse 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.QueryReasoningEngineResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.QueryReasoningEngineResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 [ReasoningEngineExecutionService.Query][]
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.QueryReasoningEngineResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.QueryReasoningEngineResponse) + com.google.cloud.aiplatform.v1.QueryReasoningEngineResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_QueryReasoningEngineResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_QueryReasoningEngineResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse.class, + com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getOutputFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + output_ = null; + if (outputBuilder_ != null) { + outputBuilder_.dispose(); + outputBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_QueryReasoningEngineResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse build() { + com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse buildPartial() { + com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse result = + new com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.output_ = outputBuilder_ == null ? output_ : outputBuilder_.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.QueryReasoningEngineResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse other) { + if (other == com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse.getDefaultInstance()) + return this; + if (other.hasOutput()) { + mergeOutput(other.getOutput()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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(getOutputFieldBuilder().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.Value output_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + outputBuilder_; + /** + * + * + *
+     * Response provided by users in JSON object format.
+     * 
+ * + * .google.protobuf.Value output = 1; + * + * @return Whether the output field is set. + */ + public boolean hasOutput() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Response provided by users in JSON object format.
+     * 
+ * + * .google.protobuf.Value output = 1; + * + * @return The output. + */ + public com.google.protobuf.Value getOutput() { + if (outputBuilder_ == null) { + return output_ == null ? com.google.protobuf.Value.getDefaultInstance() : output_; + } else { + return outputBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Response provided by users in JSON object format.
+     * 
+ * + * .google.protobuf.Value output = 1; + */ + public Builder setOutput(com.google.protobuf.Value value) { + if (outputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + output_ = value; + } else { + outputBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Response provided by users in JSON object format.
+     * 
+ * + * .google.protobuf.Value output = 1; + */ + public Builder setOutput(com.google.protobuf.Value.Builder builderForValue) { + if (outputBuilder_ == null) { + output_ = builderForValue.build(); + } else { + outputBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Response provided by users in JSON object format.
+     * 
+ * + * .google.protobuf.Value output = 1; + */ + public Builder mergeOutput(com.google.protobuf.Value value) { + if (outputBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && output_ != null + && output_ != com.google.protobuf.Value.getDefaultInstance()) { + getOutputBuilder().mergeFrom(value); + } else { + output_ = value; + } + } else { + outputBuilder_.mergeFrom(value); + } + if (output_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Response provided by users in JSON object format.
+     * 
+ * + * .google.protobuf.Value output = 1; + */ + public Builder clearOutput() { + bitField0_ = (bitField0_ & ~0x00000001); + output_ = null; + if (outputBuilder_ != null) { + outputBuilder_.dispose(); + outputBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Response provided by users in JSON object format.
+     * 
+ * + * .google.protobuf.Value output = 1; + */ + public com.google.protobuf.Value.Builder getOutputBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getOutputFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Response provided by users in JSON object format.
+     * 
+ * + * .google.protobuf.Value output = 1; + */ + public com.google.protobuf.ValueOrBuilder getOutputOrBuilder() { + if (outputBuilder_ != null) { + return outputBuilder_.getMessageOrBuilder(); + } else { + return output_ == null ? com.google.protobuf.Value.getDefaultInstance() : output_; + } + } + /** + * + * + *
+     * Response provided by users in JSON object format.
+     * 
+ * + * .google.protobuf.Value output = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + getOutputFieldBuilder() { + if (outputBuilder_ == null) { + outputBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder>(getOutput(), getParentForChildren(), isClean()); + output_ = null; + } + return outputBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @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.QueryReasoningEngineResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.QueryReasoningEngineResponse) + private static final com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse(); + } + + public static com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryReasoningEngineResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.QueryReasoningEngineResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/QueryReasoningEngineResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/QueryReasoningEngineResponseOrBuilder.java new file mode 100644 index 000000000000..e6f1e3baf726 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/QueryReasoningEngineResponseOrBuilder.java @@ -0,0 +1,61 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/reasoning_engine_execution_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface QueryReasoningEngineResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.QueryReasoningEngineResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Response provided by users in JSON object format.
+   * 
+ * + * .google.protobuf.Value output = 1; + * + * @return Whether the output field is set. + */ + boolean hasOutput(); + /** + * + * + *
+   * Response provided by users in JSON object format.
+   * 
+ * + * .google.protobuf.Value output = 1; + * + * @return The output. + */ + com.google.protobuf.Value getOutput(); + /** + * + * + *
+   * Response provided by users in JSON object format.
+   * 
+ * + * .google.protobuf.Value output = 1; + */ + com.google.protobuf.ValueOrBuilder getOutputOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngine.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngine.java new file mode 100644 index 000000000000..e8a9d543bf10 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngine.java @@ -0,0 +1,2053 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/reasoning_engine.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * ReasoningEngine provides a customizable runtime for models to determine
+ * which actions to take and in which order.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ReasoningEngine} + */ +public final class ReasoningEngine extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ReasoningEngine) + ReasoningEngineOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReasoningEngine.newBuilder() to construct. + private ReasoningEngine(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReasoningEngine() { + name_ = ""; + displayName_ = ""; + description_ = ""; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReasoningEngine(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1_ReasoningEngine_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1_ReasoningEngine_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ReasoningEngine.class, + com.google.cloud.aiplatform.v1.ReasoningEngine.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Identifier. The resource name of the ReasoningEngine.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + /** + * + * + *
+   * Identifier. The resource name of the ReasoningEngine.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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 ReasoningEngine.
+   * 
+ * + * 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 ReasoningEngine.
+   * 
+ * + * 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 = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + * + * + *
+   * Optional. The description of the ReasoningEngine.
+   * 
+ * + * 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. The description of the ReasoningEngine.
+   * 
+ * + * 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 SPEC_FIELD_NUMBER = 3; + private com.google.cloud.aiplatform.v1.ReasoningEngineSpec spec_; + /** + * + * + *
+   * Required. Configurations of the ReasoningEngine
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec spec = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the spec field is set. + */ + @java.lang.Override + public boolean hasSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. Configurations of the ReasoningEngine
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec spec = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The spec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReasoningEngineSpec getSpec() { + return spec_ == null + ? com.google.cloud.aiplatform.v1.ReasoningEngineSpec.getDefaultInstance() + : spec_; + } + /** + * + * + *
+   * Required. Configurations of the ReasoningEngine
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec spec = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReasoningEngineSpecOrBuilder getSpecOrBuilder() { + return spec_ == null + ? com.google.cloud.aiplatform.v1.ReasoningEngineSpec.getDefaultInstance() + : spec_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Timestamp when this ReasoningEngine 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_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Output only. Timestamp when this ReasoningEngine 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 ReasoningEngine 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 ReasoningEngine was most recently 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_ & 0x00000004) != 0); + } + /** + * + * + *
+   * Output only. Timestamp when this ReasoningEngine was most recently 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 ReasoningEngine was most recently 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 ETAG_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + /** + * + * + *
+   * Optional. Used to perform consistent read-modify-write updates. If not set,
+   * a blind "overwrite" update happens.
+   * 
+ * + * string etag = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. Used to perform consistent read-modify-write updates. If not set,
+   * a blind "overwrite" update happens.
+   * 
+ * + * string etag = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getSpec()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getCreateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, etag_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, description_); + } + 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 (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSpec()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, etag_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, description_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.ReasoningEngine)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ReasoningEngine other = + (com.google.cloud.aiplatform.v1.ReasoningEngine) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (hasSpec() != other.hasSpec()) return false; + if (hasSpec()) { + if (!getSpec().equals(other.getSpec())) 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 (!getEtag().equals(other.getEtag())) return false; + if (!getUnknownFields().equals(other.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 (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngine parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngine parseFrom( + 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.ReasoningEngine parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngine parseFrom( + com.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.ReasoningEngine parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngine 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.ReasoningEngine parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngine parseFrom( + java.io.InputStream 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.ReasoningEngine parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngine parseDelimitedFrom( + java.io.InputStream 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.ReasoningEngine 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.ReasoningEngine parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.ReasoningEngine prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * ReasoningEngine provides a customizable runtime for models to determine
+   * which actions to take and in which order.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ReasoningEngine} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ReasoningEngine) + com.google.cloud.aiplatform.v1.ReasoningEngineOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1_ReasoningEngine_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1_ReasoningEngine_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ReasoningEngine.class, + com.google.cloud.aiplatform.v1.ReasoningEngine.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.ReasoningEngine.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSpecFieldBuilder(); + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + description_ = ""; + spec_ = null; + if (specBuilder_ != null) { + specBuilder_.dispose(); + specBuilder_ = null; + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + etag_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1_ReasoningEngine_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReasoningEngine getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ReasoningEngine.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReasoningEngine build() { + com.google.cloud.aiplatform.v1.ReasoningEngine result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReasoningEngine buildPartial() { + com.google.cloud.aiplatform.v1.ReasoningEngine result = + new com.google.cloud.aiplatform.v1.ReasoningEngine(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ReasoningEngine 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.spec_ = specBuilder_ == null ? spec_ : specBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.etag_ = etag_; + } + 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.ReasoningEngine) { + return mergeFrom((com.google.cloud.aiplatform.v1.ReasoningEngine) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.ReasoningEngine other) { + if (other == com.google.cloud.aiplatform.v1.ReasoningEngine.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.hasSpec()) { + mergeSpec(other.getSpec()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 50: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Identifier. The resource name of the ReasoningEngine.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + /** + * + * + *
+     * Identifier. The resource name of the ReasoningEngine.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + /** + * + * + *
+     * Identifier. The resource name of the ReasoningEngine.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + /** + * + * + *
+     * Identifier. The resource name of the ReasoningEngine.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Identifier. The resource name of the ReasoningEngine.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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 ReasoningEngine.
+     * 
+ * + * 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 ReasoningEngine.
+     * 
+ * + * 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 ReasoningEngine.
+     * 
+ * + * 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 ReasoningEngine.
+     * 
+ * + * 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 ReasoningEngine.
+     * 
+ * + * 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 ReasoningEngine.
+     * 
+ * + * 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. The description of the ReasoningEngine.
+     * 
+ * + * 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. The description of the ReasoningEngine.
+     * 
+ * + * 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_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The description of the ReasoningEngine.
+     * 
+ * + * string description = 7 [(.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 ReasoningEngine.
+     * 
+ * + * 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_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1.ReasoningEngineSpec spec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ReasoningEngineSpec, + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.Builder, + com.google.cloud.aiplatform.v1.ReasoningEngineSpecOrBuilder> + specBuilder_; + /** + * + * + *
+     * Required. Configurations of the ReasoningEngine
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec spec = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the spec field is set. + */ + public boolean hasSpec() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Required. Configurations of the ReasoningEngine
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec spec = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The spec. + */ + public com.google.cloud.aiplatform.v1.ReasoningEngineSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null + ? com.google.cloud.aiplatform.v1.ReasoningEngineSpec.getDefaultInstance() + : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Configurations of the ReasoningEngine
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec spec = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSpec(com.google.cloud.aiplatform.v1.ReasoningEngineSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + } else { + specBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Configurations of the ReasoningEngine
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec spec = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSpec( + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Configurations of the ReasoningEngine
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec spec = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSpec(com.google.cloud.aiplatform.v1.ReasoningEngineSpec value) { + if (specBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && spec_ != null + && spec_ != com.google.cloud.aiplatform.v1.ReasoningEngineSpec.getDefaultInstance()) { + getSpecBuilder().mergeFrom(value); + } else { + spec_ = value; + } + } else { + specBuilder_.mergeFrom(value); + } + if (spec_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Configurations of the ReasoningEngine
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec spec = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSpec() { + bitField0_ = (bitField0_ & ~0x00000008); + spec_ = null; + if (specBuilder_ != null) { + specBuilder_.dispose(); + specBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Configurations of the ReasoningEngine
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec spec = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.Builder getSpecBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Configurations of the ReasoningEngine
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec spec = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.ReasoningEngineSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null + ? com.google.cloud.aiplatform.v1.ReasoningEngineSpec.getDefaultInstance() + : spec_; + } + } + /** + * + * + *
+     * Required. Configurations of the ReasoningEngine
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec spec = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ReasoningEngineSpec, + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.Builder, + com.google.cloud.aiplatform.v1.ReasoningEngineSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ReasoningEngineSpec, + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.Builder, + com.google.cloud.aiplatform.v1.ReasoningEngineSpecOrBuilder>( + getSpec(), getParentForChildren(), isClean()); + spec_ = null; + } + return specBuilder_; + } + + 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 ReasoningEngine 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_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Output only. Timestamp when this ReasoningEngine 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 ReasoningEngine 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_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this ReasoningEngine 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_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this ReasoningEngine 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_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this ReasoningEngine was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this ReasoningEngine was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when this ReasoningEngine 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 ReasoningEngine 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 ReasoningEngine was most recently 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_ & 0x00000020) != 0); + } + /** + * + * + *
+     * Output only. Timestamp when this ReasoningEngine was most recently 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 ReasoningEngine was most recently 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_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this ReasoningEngine was most recently 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_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this ReasoningEngine was most recently 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_ & 0x00000020) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this ReasoningEngine was most recently updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this ReasoningEngine was most recently updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when this ReasoningEngine was most recently 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 ReasoningEngine was most recently 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 java.lang.Object etag_ = ""; + /** + * + * + *
+     * Optional. Used to perform consistent read-modify-write updates. If not set,
+     * a blind "overwrite" update happens.
+     * 
+ * + * string etag = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. Used to perform consistent read-modify-write updates. If not set,
+     * a blind "overwrite" update happens.
+     * 
+ * + * string etag = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. Used to perform consistent read-modify-write updates. If not set,
+     * a blind "overwrite" update happens.
+     * 
+ * + * string etag = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Used to perform consistent read-modify-write updates. If not set,
+     * a blind "overwrite" update happens.
+     * 
+ * + * string etag = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Used to perform consistent read-modify-write updates. If not set,
+     * a blind "overwrite" update happens.
+     * 
+ * + * string etag = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 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.aiplatform.v1.ReasoningEngine) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ReasoningEngine) + private static final com.google.cloud.aiplatform.v1.ReasoningEngine DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ReasoningEngine(); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngine getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReasoningEngine parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.ReasoningEngine getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceProto.java new file mode 100644 index 000000000000..a0607ba77fde --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceProto.java @@ -0,0 +1,143 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/reasoning_engine_execution_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public final class ReasoningEngineExecutionServiceProto { + private ReasoningEngineExecutionServiceProto() {} + + 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_QueryReasoningEngineRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_QueryReasoningEngineRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_QueryReasoningEngineResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_QueryReasoningEngineResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_StreamQueryReasoningEngineRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_StreamQueryReasoningEngineRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nCgoogle/cloud/aiplatform/v1/reasoning_e" + + "ngine_execution_service.proto\022\032google.cl" + + "oud.aiplatform.v1\032\034google/api/annotation" + + "s.proto\032\027google/api/client.proto\032\037google" + + "/api/field_behavior.proto\032\031google/api/ht" + + "tpbody.proto\032\031google/api/resource.proto\032" + + "\034google/protobuf/struct.proto\"\246\001\n\033QueryR" + + "easoningEngineRequest\022?\n\004name\030\001 \001(\tB1\340A\002" + + "\372A+\n)aiplatform.googleapis.com/Reasoning" + + "Engine\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!Strea" + + "mQueryReasoningEngineRequest\022?\n\004name\030\001 \001" + + "(\tB1\340A\002\372A+\n)aiplatform.googleapis.com/Re" + + "asoningEngine\022+\n\005input\030\002 \001(\0132\027.google.pr" + + "otobuf.StructB\003\340A\001\022\031\n\014class_method\030\003 \001(\t" + + "B\003\340A\0012\206\004\n\037ReasoningEngineExecutionServic" + + "e\022\320\001\n\024QueryReasoningEngine\0227.google.clou" + + "d.aiplatform.v1.QueryReasoningEngineRequ" + + "est\0328.google.cloud.aiplatform.v1.QueryRe" + + "asoningEngineResponse\"E\202\323\344\223\002?\":/v1/{name" + + "=projects/*/locations/*/reasoningEngines" + + "/*}:query:\001*\022\300\001\n\032StreamQueryReasoningEng" + + "ine\022=.google.cloud.aiplatform.v1.StreamQ" + + "ueryReasoningEngineRequest\032\024.google.api." + + "HttpBody\"K\202\323\344\223\002E\"@/v1/{name=projects/*/l" + + "ocations/*/reasoningEngines/*}:streamQue" + + "ry:\001*0\001\032M\312A\031aiplatform.googleapis.com\322A." + + "https://www.googleapis.com/auth/cloud-pl" + + "atformB\342\001\n\036com.google.cloud.aiplatform.v" + + "1B$ReasoningEngineExecutionServiceProtoP" + + "\001Z>cloud.google.com/go/aiplatform/apiv1/" + + "aiplatformpb;aiplatformpb\252\002\032Google.Cloud" + + ".AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatform" + + "\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006pro" + + "to3" + }; + 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.HttpBodyProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1_QueryReasoningEngineRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1_QueryReasoningEngineRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_QueryReasoningEngineRequest_descriptor, + new java.lang.String[] { + "Name", "Input", "ClassMethod", + }); + internal_static_google_cloud_aiplatform_v1_QueryReasoningEngineResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_aiplatform_v1_QueryReasoningEngineResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_QueryReasoningEngineResponse_descriptor, + new java.lang.String[] { + "Output", + }); + internal_static_google_cloud_aiplatform_v1_StreamQueryReasoningEngineRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_aiplatform_v1_StreamQueryReasoningEngineRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_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); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + 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.HttpBodyProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.StructProto.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/ReasoningEngineName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineName.java new file mode 100644 index 000000000000..01656b34804e --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineName.java @@ -0,0 +1,227 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 ReasoningEngineName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_REASONING_ENGINE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String reasoningEngine; + + @Deprecated + protected ReasoningEngineName() { + project = null; + location = null; + reasoningEngine = null; + } + + private ReasoningEngineName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + reasoningEngine = Preconditions.checkNotNull(builder.getReasoningEngine()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getReasoningEngine() { + return reasoningEngine; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ReasoningEngineName of(String project, String location, String reasoningEngine) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setReasoningEngine(reasoningEngine) + .build(); + } + + public static String format(String project, String location, String reasoningEngine) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setReasoningEngine(reasoningEngine) + .build() + .toString(); + } + + public static ReasoningEngineName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_REASONING_ENGINE.validatedMatch( + formattedString, "ReasoningEngineName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("reasoning_engine")); + } + + 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 (ReasoningEngineName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_REASONING_ENGINE.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 (reasoningEngine != null) { + fieldMapBuilder.put("reasoning_engine", reasoningEngine); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_REASONING_ENGINE.instantiate( + "project", project, "location", location, "reasoning_engine", reasoningEngine); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ReasoningEngineName that = ((ReasoningEngineName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.reasoningEngine, that.reasoningEngine); + } + 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(reasoningEngine); + return h; + } + + /** Builder for projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}. */ + public static class Builder { + private String project; + private String location; + private String reasoningEngine; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getReasoningEngine() { + return reasoningEngine; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setReasoningEngine(String reasoningEngine) { + this.reasoningEngine = reasoningEngine; + return this; + } + + private Builder(ReasoningEngineName reasoningEngineName) { + this.project = reasoningEngineName.project; + this.location = reasoningEngineName.location; + this.reasoningEngine = reasoningEngineName.reasoningEngine; + } + + public ReasoningEngineName build() { + return new ReasoningEngineName(this); + } + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineOrBuilder.java new file mode 100644 index 000000000000..a4765711a198 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineOrBuilder.java @@ -0,0 +1,245 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/reasoning_engine.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface ReasoningEngineOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ReasoningEngine) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The resource name of the ReasoningEngine.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Identifier. The resource name of the ReasoningEngine.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The display name of the ReasoningEngine.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Required. The display name of the ReasoningEngine.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional. The description of the ReasoningEngine.
+   * 
+ * + * string description = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Optional. The description of the ReasoningEngine.
+   * 
+ * + * string description = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Required. Configurations of the ReasoningEngine
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec spec = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the spec field is set. + */ + boolean hasSpec(); + /** + * + * + *
+   * Required. Configurations of the ReasoningEngine
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec spec = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The spec. + */ + com.google.cloud.aiplatform.v1.ReasoningEngineSpec getSpec(); + /** + * + * + *
+   * Required. Configurations of the ReasoningEngine
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec spec = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1.ReasoningEngineSpecOrBuilder getSpecOrBuilder(); + + /** + * + * + *
+   * Output only. Timestamp when this ReasoningEngine 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 ReasoningEngine 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 ReasoningEngine was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Timestamp when this ReasoningEngine was most recently 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 ReasoningEngine was most recently 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 ReasoningEngine was most recently updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Optional. Used to perform consistent read-modify-write updates. If not set,
+   * a blind "overwrite" update happens.
+   * 
+ * + * string etag = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + /** + * + * + *
+   * Optional. Used to perform consistent read-modify-write updates. If not set,
+   * a blind "overwrite" update happens.
+   * 
+ * + * string etag = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineProto.java new file mode 100644 index 000000000000..e4b02458f962 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineProto.java @@ -0,0 +1,131 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/reasoning_engine.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public final class ReasoningEngineProto { + private ReasoningEngineProto() {} + + 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_ReasoningEngineSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_PackageSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_PackageSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ReasoningEngine_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ReasoningEngine_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/aiplatform/v1/reasoning_e" + + "ngine.proto\022\032google.cloud.aiplatform.v1\032" + + "\037google/api/field_behavior.proto\032\031google" + + "/api/resource.proto\032\034google/protobuf/str" + + "uct.proto\032\037google/protobuf/timestamp.pro" + + "to\"\275\002\n\023ReasoningEngineSpec\022V\n\014package_sp" + + "ec\030\002 \001(\0132;.google.cloud.aiplatform.v1.Re" + + "asoningEngineSpec.PackageSpecB\003\340A\002\0223\n\rcl" + + "ass_methods\030\003 \003(\0132\027.google.protobuf.Stru" + + "ctB\003\340A\001\032\230\001\n\013PackageSpec\022\"\n\025pickle_object" + + "_gcs_uri\030\001 \001(\tB\003\340A\001\022%\n\030dependency_files_" + + "gcs_uri\030\002 \001(\tB\003\340A\001\022!\n\024requirements_gcs_u" + + "ri\030\003 \001(\tB\003\340A\001\022\033\n\016python_version\030\004 \001(\tB\003\340" + + "A\001\"\276\003\n\017ReasoningEngine\022\021\n\004name\030\001 \001(\tB\003\340A" + + "\010\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022\030\n\013descript" + + "ion\030\007 \001(\tB\003\340A\001\022B\n\004spec\030\003 \001(\0132/.google.cl" + + "oud.aiplatform.v1.ReasoningEngineSpecB\003\340" + + "A\002\0224\n\013create_time\030\004 \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032." + + "google.protobuf.TimestampB\003\340A\003\022\021\n\004etag\030\006" + + " \001(\tB\003\340A\001:\237\001\352A\233\001\n)aiplatform.googleapis." + + "com/ReasoningEngine\022Kprojects/{project}/" + + "locations/{location}/reasoningEngines/{r" + + "easoning_engine}*\020reasoningEngines2\017reas" + + "oningEngineB\322\001\n\036com.google.cloud.aiplatf" + + "orm.v1B\024ReasoningEngineProtoP\001Z>cloud.go" + + "ogle.com/go/aiplatform/apiv1/aiplatformp" + + "b;aiplatformpb\252\002\032Google.Cloud.AIPlatform" + + ".V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Googl" + + "e::Cloud::AIPlatform::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_descriptor, + new java.lang.String[] { + "PackageSpec", "ClassMethods", + }); + internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_PackageSpec_descriptor = + internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_PackageSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_PackageSpec_descriptor, + new java.lang.String[] { + "PickleObjectGcsUri", "DependencyFilesGcsUri", "RequirementsGcsUri", "PythonVersion", + }); + internal_static_google_cloud_aiplatform_v1_ReasoningEngine_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_aiplatform_v1_ReasoningEngine_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_ReasoningEngine_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "Description", "Spec", "CreateTime", "UpdateTime", "Etag", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + 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/ReasoningEngineServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineServiceProto.java new file mode 100644 index 000000000000..0dfcaf4b61ee --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineServiceProto.java @@ -0,0 +1,250 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/reasoning_engine_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public final class ReasoningEngineServiceProto { + private ReasoningEngineServiceProto() {} + + 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_CreateReasoningEngineRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_CreateReasoningEngineRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_CreateReasoningEngineOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_CreateReasoningEngineOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_GetReasoningEngineRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_GetReasoningEngineRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_UpdateReasoningEngineRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_UpdateReasoningEngineRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_UpdateReasoningEngineOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_UpdateReasoningEngineOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ListReasoningEnginesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ListReasoningEnginesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ListReasoningEnginesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ListReasoningEnginesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_DeleteReasoningEngineRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_DeleteReasoningEngineRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n9google/cloud/aiplatform/v1/reasoning_e" + + "ngine_service.proto\022\032google.cloud.aiplat" + + "form.v1\032\034google/api/annotations.proto\032\027g" + + "oogle/api/client.proto\032\037google/api/field" + + "_behavior.proto\032\031google/api/resource.pro" + + "to\032*google/cloud/aiplatform/v1/operation" + + ".proto\0321google/cloud/aiplatform/v1/reaso" + + "ning_engine.proto\032#google/longrunning/op" + + "erations.proto\032\033google/protobuf/empty.pr" + + "oto\032 google/protobuf/field_mask.proto\"\245\001" + + "\n\034CreateReasoningEngineRequest\0229\n\006parent" + + "\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com" + + "/Location\022J\n\020reasoning_engine\030\002 \001(\0132+.go" + + "ogle.cloud.aiplatform.v1.ReasoningEngine" + + "B\003\340A\002\"x\n&CreateReasoningEngineOperationM" + + "etadata\022N\n\020generic_metadata\030\001 \001(\01324.goog" + + "le.cloud.aiplatform.v1.GenericOperationM" + + "etadata\"\\\n\031GetReasoningEngineRequest\022?\n\004" + + "name\030\001 \001(\tB1\340A\002\372A+\n)aiplatform.googleapi" + + "s.com/ReasoningEngine\"\240\001\n\034UpdateReasonin" + + "gEngineRequest\022J\n\020reasoning_engine\030\001 \001(\013" + + "2+.google.cloud.aiplatform.v1.ReasoningE" + + "ngineB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google" + + ".protobuf.FieldMaskB\003\340A\001\"x\n&UpdateReason" + + "ingEngineOperationMetadata\022N\n\020generic_me" + + "tadata\030\001 \001(\01324.google.cloud.aiplatform.v" + + "1.GenericOperationMetadata\"\236\001\n\033ListReaso" + + "ningEnginesRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372" + + "A#\n!locations.googleapis.com/Location\022\023\n" + + "\006filter\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340" + + "A\001\022\027\n\npage_token\030\004 \001(\tB\003\340A\001\"\177\n\034ListReaso" + + "ningEnginesResponse\022F\n\021reasoning_engines" + + "\030\001 \003(\0132+.google.cloud.aiplatform.v1.Reas" + + "oningEngine\022\027\n\017next_page_token\030\002 \001(\t\"_\n\034" + + "DeleteReasoningEngineRequest\022?\n\004name\030\001 \001" + + "(\tB1\340A\002\372A+\n)aiplatform.googleapis.com/Re" + + "asoningEngine2\257\n\n\026ReasoningEngineService" + + "\022\227\002\n\025CreateReasoningEngine\0228.google.clou" + + "d.aiplatform.v1.CreateReasoningEngineReq" + + "uest\032\035.google.longrunning.Operation\"\244\001\312A" + + "9\n\017ReasoningEngine\022&CreateReasoningEngin" + + "eOperationMetadata\332A\027parent,reasoning_en" + + "gine\202\323\344\223\002H\"4/v1/{parent=projects/*/locat" + + "ions/*}/reasoningEngines:\020reasoning_engi" + + "ne\022\275\001\n\022GetReasoningEngine\0225.google.cloud" + + ".aiplatform.v1.GetReasoningEngineRequest" + + "\032+.google.cloud.aiplatform.v1.ReasoningE" + + "ngine\"C\332A\004name\202\323\344\223\0026\0224/v1/{name=projects" + + "/*/locations/*/reasoningEngines/*}\022\320\001\n\024L" + + "istReasoningEngines\0227.google.cloud.aipla" + + "tform.v1.ListReasoningEnginesRequest\0328.g" + + "oogle.cloud.aiplatform.v1.ListReasoningE" + + "nginesResponse\"E\332A\006parent\202\323\344\223\0026\0224/v1/{pa" + + "rent=projects/*/locations/*}/reasoningEn" + + "gines\022\255\002\n\025UpdateReasoningEngine\0228.google" + + ".cloud.aiplatform.v1.UpdateReasoningEngi" + + "neRequest\032\035.google.longrunning.Operation" + + "\"\272\001\312A9\n\017ReasoningEngine\022&UpdateReasoning" + + "EngineOperationMetadata\332A\034reasoning_engi" + + "ne,update_mask\202\323\344\223\002Y2E/v1/{reasoning_eng" + + "ine.name=projects/*/locations/*/reasonin" + + "gEngines/*}:\020reasoning_engine\022\350\001\n\025Delete" + + "ReasoningEngine\0228.google.cloud.aiplatfor" + + "m.v1.DeleteReasoningEngineRequest\032\035.goog" + + "le.longrunning.Operation\"v\312A0\n\025google.pr" + + "otobuf.Empty\022\027DeleteOperationMetadata\332A\004" + + "name\202\323\344\223\0026*4/v1/{name=projects/*/locatio" + + "ns/*/reasoningEngines/*}\032M\312A\031aiplatform." + + "googleapis.com\322A.https://www.googleapis." + + "com/auth/cloud-platformB\331\001\n\036com.google.c" + + "loud.aiplatform.v1B\033ReasoningEngineServi" + + "ceProtoP\001Z>cloud.google.com/go/aiplatfor" + + "m/apiv1/aiplatformpb;aiplatformpb\252\002\032Goog" + + "le.Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\AI" + + "Platform\\V1\352\002\035Google::Cloud::AIPlatform:" + + ":V1b\006proto3" + }; + 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.ReasoningEngineProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1_CreateReasoningEngineRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1_CreateReasoningEngineRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_CreateReasoningEngineRequest_descriptor, + new java.lang.String[] { + "Parent", "ReasoningEngine", + }); + internal_static_google_cloud_aiplatform_v1_CreateReasoningEngineOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_aiplatform_v1_CreateReasoningEngineOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_CreateReasoningEngineOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + }); + internal_static_google_cloud_aiplatform_v1_GetReasoningEngineRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_aiplatform_v1_GetReasoningEngineRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_GetReasoningEngineRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1_UpdateReasoningEngineRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_aiplatform_v1_UpdateReasoningEngineRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_UpdateReasoningEngineRequest_descriptor, + new java.lang.String[] { + "ReasoningEngine", "UpdateMask", + }); + internal_static_google_cloud_aiplatform_v1_UpdateReasoningEngineOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_aiplatform_v1_UpdateReasoningEngineOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_UpdateReasoningEngineOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + }); + internal_static_google_cloud_aiplatform_v1_ListReasoningEnginesRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_aiplatform_v1_ListReasoningEnginesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_ListReasoningEnginesRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "PageSize", "PageToken", + }); + internal_static_google_cloud_aiplatform_v1_ListReasoningEnginesResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_aiplatform_v1_ListReasoningEnginesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_ListReasoningEnginesResponse_descriptor, + new java.lang.String[] { + "ReasoningEngines", "NextPageToken", + }); + internal_static_google_cloud_aiplatform_v1_DeleteReasoningEngineRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_aiplatform_v1_DeleteReasoningEngineRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_DeleteReasoningEngineRequest_descriptor, + new java.lang.String[] { + "Name", + }); + 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.ReasoningEngineProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.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/ReasoningEngineSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineSpec.java new file mode 100644 index 000000000000..e98c9bba5b69 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineSpec.java @@ -0,0 +1,2593 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/reasoning_engine.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * ReasoningEngine configurations
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ReasoningEngineSpec} + */ +public final class ReasoningEngineSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ReasoningEngineSpec) + ReasoningEngineSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReasoningEngineSpec.newBuilder() to construct. + private ReasoningEngineSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReasoningEngineSpec() { + classMethods_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReasoningEngineSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.class, + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.Builder.class); + } + + public interface PackageSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. The Cloud Storage URI of the pickled python object.
+     * 
+ * + * string pickle_object_gcs_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pickleObjectGcsUri. + */ + java.lang.String getPickleObjectGcsUri(); + /** + * + * + *
+     * Optional. The Cloud Storage URI of the pickled python object.
+     * 
+ * + * string pickle_object_gcs_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pickleObjectGcsUri. + */ + com.google.protobuf.ByteString getPickleObjectGcsUriBytes(); + + /** + * + * + *
+     * Optional. The Cloud Storage URI of the dependency files in tar.gz format.
+     * 
+ * + * string dependency_files_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dependencyFilesGcsUri. + */ + java.lang.String getDependencyFilesGcsUri(); + /** + * + * + *
+     * Optional. The Cloud Storage URI of the dependency files in tar.gz format.
+     * 
+ * + * string dependency_files_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dependencyFilesGcsUri. + */ + com.google.protobuf.ByteString getDependencyFilesGcsUriBytes(); + + /** + * + * + *
+     * Optional. The Cloud Storage URI of the `requirements.txt` file
+     * 
+ * + * string requirements_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requirementsGcsUri. + */ + java.lang.String getRequirementsGcsUri(); + /** + * + * + *
+     * Optional. The Cloud Storage URI of the `requirements.txt` file
+     * 
+ * + * string requirements_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requirementsGcsUri. + */ + com.google.protobuf.ByteString getRequirementsGcsUriBytes(); + + /** + * + * + *
+     * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
+     * If not specified, default value is 3.10.
+     * 
+ * + * string python_version = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pythonVersion. + */ + java.lang.String getPythonVersion(); + /** + * + * + *
+     * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
+     * If not specified, default value is 3.10.
+     * 
+ * + * string python_version = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pythonVersion. + */ + com.google.protobuf.ByteString getPythonVersionBytes(); + } + /** + * + * + *
+   * User provided package spec like pickled object and package requirements.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec} + */ + public static final class PackageSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec) + PackageSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use PackageSpec.newBuilder() to construct. + private PackageSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PackageSpec() { + pickleObjectGcsUri_ = ""; + dependencyFilesGcsUri_ = ""; + requirementsGcsUri_ = ""; + pythonVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PackageSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_PackageSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_PackageSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec.class, + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec.Builder.class); + } + + public static final int PICKLE_OBJECT_GCS_URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object pickleObjectGcsUri_ = ""; + /** + * + * + *
+     * Optional. The Cloud Storage URI of the pickled python object.
+     * 
+ * + * string pickle_object_gcs_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pickleObjectGcsUri. + */ + @java.lang.Override + public java.lang.String getPickleObjectGcsUri() { + java.lang.Object ref = pickleObjectGcsUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pickleObjectGcsUri_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. The Cloud Storage URI of the pickled python object.
+     * 
+ * + * string pickle_object_gcs_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pickleObjectGcsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPickleObjectGcsUriBytes() { + java.lang.Object ref = pickleObjectGcsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pickleObjectGcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPENDENCY_FILES_GCS_URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object dependencyFilesGcsUri_ = ""; + /** + * + * + *
+     * Optional. The Cloud Storage URI of the dependency files in tar.gz format.
+     * 
+ * + * string dependency_files_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dependencyFilesGcsUri. + */ + @java.lang.Override + public java.lang.String getDependencyFilesGcsUri() { + java.lang.Object ref = dependencyFilesGcsUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dependencyFilesGcsUri_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. The Cloud Storage URI of the dependency files in tar.gz format.
+     * 
+ * + * string dependency_files_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dependencyFilesGcsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDependencyFilesGcsUriBytes() { + java.lang.Object ref = dependencyFilesGcsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dependencyFilesGcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUIREMENTS_GCS_URI_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requirementsGcsUri_ = ""; + /** + * + * + *
+     * Optional. The Cloud Storage URI of the `requirements.txt` file
+     * 
+ * + * string requirements_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requirementsGcsUri. + */ + @java.lang.Override + public java.lang.String getRequirementsGcsUri() { + java.lang.Object ref = requirementsGcsUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requirementsGcsUri_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. The Cloud Storage URI of the `requirements.txt` file
+     * 
+ * + * string requirements_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requirementsGcsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequirementsGcsUriBytes() { + java.lang.Object ref = requirementsGcsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requirementsGcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PYTHON_VERSION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object pythonVersion_ = ""; + /** + * + * + *
+     * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
+     * If not specified, default value is 3.10.
+     * 
+ * + * string python_version = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pythonVersion. + */ + @java.lang.Override + public java.lang.String getPythonVersion() { + java.lang.Object ref = pythonVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pythonVersion_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
+     * If not specified, default value is 3.10.
+     * 
+ * + * string python_version = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pythonVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPythonVersionBytes() { + java.lang.Object ref = pythonVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pythonVersion_ = 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(pickleObjectGcsUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pickleObjectGcsUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dependencyFilesGcsUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dependencyFilesGcsUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requirementsGcsUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requirementsGcsUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pythonVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pythonVersion_); + } + 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(pickleObjectGcsUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, pickleObjectGcsUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dependencyFilesGcsUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dependencyFilesGcsUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requirementsGcsUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requirementsGcsUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pythonVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pythonVersion_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.ReasoningEngineSpec.PackageSpec)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec other = + (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec) obj; + + if (!getPickleObjectGcsUri().equals(other.getPickleObjectGcsUri())) return false; + if (!getDependencyFilesGcsUri().equals(other.getDependencyFilesGcsUri())) return false; + if (!getRequirementsGcsUri().equals(other.getRequirementsGcsUri())) return false; + if (!getPythonVersion().equals(other.getPythonVersion())) return false; + if (!getUnknownFields().equals(other.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) + PICKLE_OBJECT_GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getPickleObjectGcsUri().hashCode(); + hash = (37 * hash) + DEPENDENCY_FILES_GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getDependencyFilesGcsUri().hashCode(); + hash = (37 * hash) + REQUIREMENTS_GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getRequirementsGcsUri().hashCode(); + hash = (37 * hash) + PYTHON_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getPythonVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec parseFrom( + 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.ReasoningEngineSpec.PackageSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec parseFrom( + com.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.ReasoningEngineSpec.PackageSpec parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec 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.ReasoningEngineSpec.PackageSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec parseFrom( + java.io.InputStream 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.ReasoningEngineSpec.PackageSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec parseDelimitedFrom( + java.io.InputStream 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.ReasoningEngineSpec.PackageSpec 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.ReasoningEngineSpec.PackageSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.ReasoningEngineSpec.PackageSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * User provided package spec like pickled object and package requirements.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec) + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_PackageSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_PackageSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec.class, + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pickleObjectGcsUri_ = ""; + dependencyFilesGcsUri_ = ""; + requirementsGcsUri_ = ""; + pythonVersion_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_PackageSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec build() { + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec buildPartial() { + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec result = + new com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pickleObjectGcsUri_ = pickleObjectGcsUri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dependencyFilesGcsUri_ = dependencyFilesGcsUri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requirementsGcsUri_ = requirementsGcsUri_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pythonVersion_ = pythonVersion_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.ReasoningEngineSpec.PackageSpec) { + return mergeFrom((com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec other) { + if (other + == com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec.getDefaultInstance()) + return this; + if (!other.getPickleObjectGcsUri().isEmpty()) { + pickleObjectGcsUri_ = other.pickleObjectGcsUri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDependencyFilesGcsUri().isEmpty()) { + dependencyFilesGcsUri_ = other.dependencyFilesGcsUri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRequirementsGcsUri().isEmpty()) { + requirementsGcsUri_ = other.requirementsGcsUri_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getPythonVersion().isEmpty()) { + pythonVersion_ = other.pythonVersion_; + 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: + { + pickleObjectGcsUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + dependencyFilesGcsUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requirementsGcsUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + pythonVersion_ = 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 pickleObjectGcsUri_ = ""; + /** + * + * + *
+       * Optional. The Cloud Storage URI of the pickled python object.
+       * 
+ * + * string pickle_object_gcs_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pickleObjectGcsUri. + */ + public java.lang.String getPickleObjectGcsUri() { + java.lang.Object ref = pickleObjectGcsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pickleObjectGcsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. The Cloud Storage URI of the pickled python object.
+       * 
+ * + * string pickle_object_gcs_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pickleObjectGcsUri. + */ + public com.google.protobuf.ByteString getPickleObjectGcsUriBytes() { + java.lang.Object ref = pickleObjectGcsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pickleObjectGcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. The Cloud Storage URI of the pickled python object.
+       * 
+ * + * string pickle_object_gcs_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pickleObjectGcsUri to set. + * @return This builder for chaining. + */ + public Builder setPickleObjectGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pickleObjectGcsUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The Cloud Storage URI of the pickled python object.
+       * 
+ * + * string pickle_object_gcs_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPickleObjectGcsUri() { + pickleObjectGcsUri_ = getDefaultInstance().getPickleObjectGcsUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The Cloud Storage URI of the pickled python object.
+       * 
+ * + * string pickle_object_gcs_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pickleObjectGcsUri to set. + * @return This builder for chaining. + */ + public Builder setPickleObjectGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pickleObjectGcsUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object dependencyFilesGcsUri_ = ""; + /** + * + * + *
+       * Optional. The Cloud Storage URI of the dependency files in tar.gz format.
+       * 
+ * + * string dependency_files_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dependencyFilesGcsUri. + */ + public java.lang.String getDependencyFilesGcsUri() { + java.lang.Object ref = dependencyFilesGcsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dependencyFilesGcsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. The Cloud Storage URI of the dependency files in tar.gz format.
+       * 
+ * + * string dependency_files_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dependencyFilesGcsUri. + */ + public com.google.protobuf.ByteString getDependencyFilesGcsUriBytes() { + java.lang.Object ref = dependencyFilesGcsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dependencyFilesGcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. The Cloud Storage URI of the dependency files in tar.gz format.
+       * 
+ * + * string dependency_files_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The dependencyFilesGcsUri to set. + * @return This builder for chaining. + */ + public Builder setDependencyFilesGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dependencyFilesGcsUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The Cloud Storage URI of the dependency files in tar.gz format.
+       * 
+ * + * string dependency_files_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDependencyFilesGcsUri() { + dependencyFilesGcsUri_ = getDefaultInstance().getDependencyFilesGcsUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The Cloud Storage URI of the dependency files in tar.gz format.
+       * 
+ * + * string dependency_files_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for dependencyFilesGcsUri to set. + * @return This builder for chaining. + */ + public Builder setDependencyFilesGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dependencyFilesGcsUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object requirementsGcsUri_ = ""; + /** + * + * + *
+       * Optional. The Cloud Storage URI of the `requirements.txt` file
+       * 
+ * + * string requirements_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requirementsGcsUri. + */ + public java.lang.String getRequirementsGcsUri() { + java.lang.Object ref = requirementsGcsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requirementsGcsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. The Cloud Storage URI of the `requirements.txt` file
+       * 
+ * + * string requirements_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requirementsGcsUri. + */ + public com.google.protobuf.ByteString getRequirementsGcsUriBytes() { + java.lang.Object ref = requirementsGcsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requirementsGcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. The Cloud Storage URI of the `requirements.txt` file
+       * 
+ * + * string requirements_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requirementsGcsUri to set. + * @return This builder for chaining. + */ + public Builder setRequirementsGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requirementsGcsUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The Cloud Storage URI of the `requirements.txt` file
+       * 
+ * + * string requirements_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequirementsGcsUri() { + requirementsGcsUri_ = getDefaultInstance().getRequirementsGcsUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The Cloud Storage URI of the `requirements.txt` file
+       * 
+ * + * string requirements_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requirementsGcsUri to set. + * @return This builder for chaining. + */ + public Builder setRequirementsGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requirementsGcsUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object pythonVersion_ = ""; + /** + * + * + *
+       * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
+       * If not specified, default value is 3.10.
+       * 
+ * + * string python_version = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pythonVersion. + */ + public java.lang.String getPythonVersion() { + java.lang.Object ref = pythonVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pythonVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
+       * If not specified, default value is 3.10.
+       * 
+ * + * string python_version = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pythonVersion. + */ + public com.google.protobuf.ByteString getPythonVersionBytes() { + java.lang.Object ref = pythonVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pythonVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
+       * If not specified, default value is 3.10.
+       * 
+ * + * string python_version = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pythonVersion to set. + * @return This builder for chaining. + */ + public Builder setPythonVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pythonVersion_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
+       * If not specified, default value is 3.10.
+       * 
+ * + * string python_version = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPythonVersion() { + pythonVersion_ = getDefaultInstance().getPythonVersion(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
+       * If not specified, default value is 3.10.
+       * 
+ * + * string python_version = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pythonVersion to set. + * @return This builder for chaining. + */ + public Builder setPythonVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pythonVersion_ = 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.aiplatform.v1.ReasoningEngineSpec.PackageSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec) + private static final com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec(); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PackageSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.ReasoningEngineSpec.PackageSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int PACKAGE_SPEC_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec packageSpec_; + /** + * + * + *
+   * Required. User provided package spec of the ReasoningEngine.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec package_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the packageSpec field is set. + */ + @java.lang.Override + public boolean hasPackageSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. User provided package spec of the ReasoningEngine.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec package_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The packageSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec getPackageSpec() { + return packageSpec_ == null + ? com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec.getDefaultInstance() + : packageSpec_; + } + /** + * + * + *
+   * Required. User provided package spec of the ReasoningEngine.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec package_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpecOrBuilder + getPackageSpecOrBuilder() { + return packageSpec_ == null + ? com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec.getDefaultInstance() + : packageSpec_; + } + + public static final int CLASS_METHODS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List classMethods_; + /** + * + * + *
+   * Optional. Declarations for object class methods in OpenAPI specification
+   * format.
+   * 
+ * + * + * repeated .google.protobuf.Struct class_methods = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getClassMethodsList() { + return classMethods_; + } + /** + * + * + *
+   * Optional. Declarations for object class methods in OpenAPI specification
+   * format.
+   * 
+ * + * + * repeated .google.protobuf.Struct class_methods = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getClassMethodsOrBuilderList() { + return classMethods_; + } + /** + * + * + *
+   * Optional. Declarations for object class methods in OpenAPI specification
+   * format.
+   * 
+ * + * + * repeated .google.protobuf.Struct class_methods = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getClassMethodsCount() { + return classMethods_.size(); + } + /** + * + * + *
+   * Optional. Declarations for object class methods in OpenAPI specification
+   * format.
+   * 
+ * + * + * repeated .google.protobuf.Struct class_methods = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.Struct getClassMethods(int index) { + return classMethods_.get(index); + } + /** + * + * + *
+   * Optional. Declarations for object class methods in OpenAPI specification
+   * format.
+   * 
+ * + * + * repeated .google.protobuf.Struct class_methods = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getClassMethodsOrBuilder(int index) { + return classMethods_.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(2, getPackageSpec()); + } + for (int i = 0; i < classMethods_.size(); i++) { + output.writeMessage(3, classMethods_.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(2, getPackageSpec()); + } + for (int i = 0; i < classMethods_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, classMethods_.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.ReasoningEngineSpec)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ReasoningEngineSpec other = + (com.google.cloud.aiplatform.v1.ReasoningEngineSpec) obj; + + if (hasPackageSpec() != other.hasPackageSpec()) return false; + if (hasPackageSpec()) { + if (!getPackageSpec().equals(other.getPackageSpec())) return false; + } + if (!getClassMethodsList().equals(other.getClassMethodsList())) return false; + if (!getUnknownFields().equals(other.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 (hasPackageSpec()) { + hash = (37 * hash) + PACKAGE_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getPackageSpec().hashCode(); + } + if (getClassMethodsCount() > 0) { + hash = (37 * hash) + CLASS_METHODS_FIELD_NUMBER; + hash = (53 * hash) + getClassMethodsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec parseFrom( + 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.ReasoningEngineSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec parseFrom( + com.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.ReasoningEngineSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec 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.ReasoningEngineSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec parseFrom( + java.io.InputStream 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.ReasoningEngineSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec parseDelimitedFrom( + java.io.InputStream 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.ReasoningEngineSpec 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.ReasoningEngineSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.ReasoningEngineSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * ReasoningEngine configurations
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ReasoningEngineSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ReasoningEngineSpec) + com.google.cloud.aiplatform.v1.ReasoningEngineSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.class, + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.ReasoningEngineSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPackageSpecFieldBuilder(); + getClassMethodsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + packageSpec_ = null; + if (packageSpecBuilder_ != null) { + packageSpecBuilder_.dispose(); + packageSpecBuilder_ = null; + } + if (classMethodsBuilder_ == null) { + classMethods_ = java.util.Collections.emptyList(); + } else { + classMethods_ = null; + classMethodsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReasoningEngineSpec getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ReasoningEngineSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReasoningEngineSpec build() { + com.google.cloud.aiplatform.v1.ReasoningEngineSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReasoningEngineSpec buildPartial() { + com.google.cloud.aiplatform.v1.ReasoningEngineSpec result = + new com.google.cloud.aiplatform.v1.ReasoningEngineSpec(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ReasoningEngineSpec result) { + if (classMethodsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + classMethods_ = java.util.Collections.unmodifiableList(classMethods_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.classMethods_ = classMethods_; + } else { + result.classMethods_ = classMethodsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ReasoningEngineSpec result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.packageSpec_ = + packageSpecBuilder_ == null ? packageSpec_ : packageSpecBuilder_.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.ReasoningEngineSpec) { + return mergeFrom((com.google.cloud.aiplatform.v1.ReasoningEngineSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.ReasoningEngineSpec other) { + if (other == com.google.cloud.aiplatform.v1.ReasoningEngineSpec.getDefaultInstance()) + return this; + if (other.hasPackageSpec()) { + mergePackageSpec(other.getPackageSpec()); + } + if (classMethodsBuilder_ == null) { + if (!other.classMethods_.isEmpty()) { + if (classMethods_.isEmpty()) { + classMethods_ = other.classMethods_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureClassMethodsIsMutable(); + classMethods_.addAll(other.classMethods_); + } + onChanged(); + } + } else { + if (!other.classMethods_.isEmpty()) { + if (classMethodsBuilder_.isEmpty()) { + classMethodsBuilder_.dispose(); + classMethodsBuilder_ = null; + classMethods_ = other.classMethods_; + bitField0_ = (bitField0_ & ~0x00000002); + classMethodsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getClassMethodsFieldBuilder() + : null; + } else { + classMethodsBuilder_.addAllMessages(other.classMethods_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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(getPackageSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 26: + { + com.google.protobuf.Struct m = + input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (classMethodsBuilder_ == null) { + ensureClassMethodsIsMutable(); + classMethods_.add(m); + } else { + classMethodsBuilder_.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 com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec packageSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec, + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec.Builder, + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpecOrBuilder> + packageSpecBuilder_; + /** + * + * + *
+     * Required. User provided package spec of the ReasoningEngine.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec package_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the packageSpec field is set. + */ + public boolean hasPackageSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. User provided package spec of the ReasoningEngine.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec package_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The packageSpec. + */ + public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec getPackageSpec() { + if (packageSpecBuilder_ == null) { + return packageSpec_ == null + ? com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec.getDefaultInstance() + : packageSpec_; + } else { + return packageSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. User provided package spec of the ReasoningEngine.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec package_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPackageSpec( + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec value) { + if (packageSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + packageSpec_ = value; + } else { + packageSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. User provided package spec of the ReasoningEngine.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec package_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPackageSpec( + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec.Builder builderForValue) { + if (packageSpecBuilder_ == null) { + packageSpec_ = builderForValue.build(); + } else { + packageSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. User provided package spec of the ReasoningEngine.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec package_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergePackageSpec( + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec value) { + if (packageSpecBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && packageSpec_ != null + && packageSpec_ + != com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec + .getDefaultInstance()) { + getPackageSpecBuilder().mergeFrom(value); + } else { + packageSpec_ = value; + } + } else { + packageSpecBuilder_.mergeFrom(value); + } + if (packageSpec_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. User provided package spec of the ReasoningEngine.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec package_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearPackageSpec() { + bitField0_ = (bitField0_ & ~0x00000001); + packageSpec_ = null; + if (packageSpecBuilder_ != null) { + packageSpecBuilder_.dispose(); + packageSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. User provided package spec of the ReasoningEngine.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec package_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec.Builder + getPackageSpecBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPackageSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. User provided package spec of the ReasoningEngine.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec package_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpecOrBuilder + getPackageSpecOrBuilder() { + if (packageSpecBuilder_ != null) { + return packageSpecBuilder_.getMessageOrBuilder(); + } else { + return packageSpec_ == null + ? com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec.getDefaultInstance() + : packageSpec_; + } + } + /** + * + * + *
+     * Required. User provided package spec of the ReasoningEngine.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec package_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec, + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec.Builder, + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpecOrBuilder> + getPackageSpecFieldBuilder() { + if (packageSpecBuilder_ == null) { + packageSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec, + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec.Builder, + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpecOrBuilder>( + getPackageSpec(), getParentForChildren(), isClean()); + packageSpec_ = null; + } + return packageSpecBuilder_; + } + + private java.util.List classMethods_ = + java.util.Collections.emptyList(); + + private void ensureClassMethodsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + classMethods_ = new java.util.ArrayList(classMethods_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + classMethodsBuilder_; + + /** + * + * + *
+     * Optional. Declarations for object class methods in OpenAPI specification
+     * format.
+     * 
+ * + * + * repeated .google.protobuf.Struct class_methods = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getClassMethodsList() { + if (classMethodsBuilder_ == null) { + return java.util.Collections.unmodifiableList(classMethods_); + } else { + return classMethodsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional. Declarations for object class methods in OpenAPI specification
+     * format.
+     * 
+ * + * + * repeated .google.protobuf.Struct class_methods = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getClassMethodsCount() { + if (classMethodsBuilder_ == null) { + return classMethods_.size(); + } else { + return classMethodsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional. Declarations for object class methods in OpenAPI specification
+     * format.
+     * 
+ * + * + * repeated .google.protobuf.Struct class_methods = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct getClassMethods(int index) { + if (classMethodsBuilder_ == null) { + return classMethods_.get(index); + } else { + return classMethodsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional. Declarations for object class methods in OpenAPI specification
+     * format.
+     * 
+ * + * + * repeated .google.protobuf.Struct class_methods = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setClassMethods(int index, com.google.protobuf.Struct value) { + if (classMethodsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClassMethodsIsMutable(); + classMethods_.set(index, value); + onChanged(); + } else { + classMethodsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. Declarations for object class methods in OpenAPI specification
+     * format.
+     * 
+ * + * + * repeated .google.protobuf.Struct class_methods = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setClassMethods(int index, com.google.protobuf.Struct.Builder builderForValue) { + if (classMethodsBuilder_ == null) { + ensureClassMethodsIsMutable(); + classMethods_.set(index, builderForValue.build()); + onChanged(); + } else { + classMethodsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Declarations for object class methods in OpenAPI specification
+     * format.
+     * 
+ * + * + * repeated .google.protobuf.Struct class_methods = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addClassMethods(com.google.protobuf.Struct value) { + if (classMethodsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClassMethodsIsMutable(); + classMethods_.add(value); + onChanged(); + } else { + classMethodsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional. Declarations for object class methods in OpenAPI specification
+     * format.
+     * 
+ * + * + * repeated .google.protobuf.Struct class_methods = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addClassMethods(int index, com.google.protobuf.Struct value) { + if (classMethodsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClassMethodsIsMutable(); + classMethods_.add(index, value); + onChanged(); + } else { + classMethodsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. Declarations for object class methods in OpenAPI specification
+     * format.
+     * 
+ * + * + * repeated .google.protobuf.Struct class_methods = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addClassMethods(com.google.protobuf.Struct.Builder builderForValue) { + if (classMethodsBuilder_ == null) { + ensureClassMethodsIsMutable(); + classMethods_.add(builderForValue.build()); + onChanged(); + } else { + classMethodsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Declarations for object class methods in OpenAPI specification
+     * format.
+     * 
+ * + * + * repeated .google.protobuf.Struct class_methods = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addClassMethods(int index, com.google.protobuf.Struct.Builder builderForValue) { + if (classMethodsBuilder_ == null) { + ensureClassMethodsIsMutable(); + classMethods_.add(index, builderForValue.build()); + onChanged(); + } else { + classMethodsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. Declarations for object class methods in OpenAPI specification
+     * format.
+     * 
+ * + * + * repeated .google.protobuf.Struct class_methods = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllClassMethods( + java.lang.Iterable values) { + if (classMethodsBuilder_ == null) { + ensureClassMethodsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, classMethods_); + onChanged(); + } else { + classMethodsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional. Declarations for object class methods in OpenAPI specification
+     * format.
+     * 
+ * + * + * repeated .google.protobuf.Struct class_methods = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearClassMethods() { + if (classMethodsBuilder_ == null) { + classMethods_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + classMethodsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Declarations for object class methods in OpenAPI specification
+     * format.
+     * 
+ * + * + * repeated .google.protobuf.Struct class_methods = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeClassMethods(int index) { + if (classMethodsBuilder_ == null) { + ensureClassMethodsIsMutable(); + classMethods_.remove(index); + onChanged(); + } else { + classMethodsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional. Declarations for object class methods in OpenAPI specification
+     * format.
+     * 
+ * + * + * repeated .google.protobuf.Struct class_methods = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder getClassMethodsBuilder(int index) { + return getClassMethodsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional. Declarations for object class methods in OpenAPI specification
+     * format.
+     * 
+ * + * + * repeated .google.protobuf.Struct class_methods = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.StructOrBuilder getClassMethodsOrBuilder(int index) { + if (classMethodsBuilder_ == null) { + return classMethods_.get(index); + } else { + return classMethodsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional. Declarations for object class methods in OpenAPI specification
+     * format.
+     * 
+ * + * + * repeated .google.protobuf.Struct class_methods = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getClassMethodsOrBuilderList() { + if (classMethodsBuilder_ != null) { + return classMethodsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(classMethods_); + } + } + /** + * + * + *
+     * Optional. Declarations for object class methods in OpenAPI specification
+     * format.
+     * 
+ * + * + * repeated .google.protobuf.Struct class_methods = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder addClassMethodsBuilder() { + return getClassMethodsFieldBuilder() + .addBuilder(com.google.protobuf.Struct.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. Declarations for object class methods in OpenAPI specification
+     * format.
+     * 
+ * + * + * repeated .google.protobuf.Struct class_methods = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder addClassMethodsBuilder(int index) { + return getClassMethodsFieldBuilder() + .addBuilder(index, com.google.protobuf.Struct.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. Declarations for object class methods in OpenAPI specification
+     * format.
+     * 
+ * + * + * repeated .google.protobuf.Struct class_methods = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getClassMethodsBuilderList() { + return getClassMethodsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getClassMethodsFieldBuilder() { + if (classMethodsBuilder_ == null) { + classMethodsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + classMethods_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + classMethods_ = null; + } + return classMethodsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @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.ReasoningEngineSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ReasoningEngineSpec) + private static final com.google.cloud.aiplatform.v1.ReasoningEngineSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ReasoningEngineSpec(); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReasoningEngineSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.ReasoningEngineSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineSpecOrBuilder.java new file mode 100644 index 000000000000..2979aaa9a740 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineSpecOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/reasoning_engine.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface ReasoningEngineSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ReasoningEngineSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. User provided package spec of the ReasoningEngine.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec package_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the packageSpec field is set. + */ + boolean hasPackageSpec(); + /** + * + * + *
+   * Required. User provided package spec of the ReasoningEngine.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec package_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The packageSpec. + */ + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec getPackageSpec(); + /** + * + * + *
+   * Required. User provided package spec of the ReasoningEngine.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpec package_spec = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.PackageSpecOrBuilder getPackageSpecOrBuilder(); + + /** + * + * + *
+   * Optional. Declarations for object class methods in OpenAPI specification
+   * format.
+   * 
+ * + * + * repeated .google.protobuf.Struct class_methods = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getClassMethodsList(); + /** + * + * + *
+   * Optional. Declarations for object class methods in OpenAPI specification
+   * format.
+   * 
+ * + * + * repeated .google.protobuf.Struct class_methods = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.Struct getClassMethods(int index); + /** + * + * + *
+   * Optional. Declarations for object class methods in OpenAPI specification
+   * format.
+   * 
+ * + * + * repeated .google.protobuf.Struct class_methods = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getClassMethodsCount(); + /** + * + * + *
+   * Optional. Declarations for object class methods in OpenAPI specification
+   * format.
+   * 
+ * + * + * repeated .google.protobuf.Struct class_methods = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getClassMethodsOrBuilderList(); + /** + * + * + *
+   * Optional. Declarations for object class methods in OpenAPI specification
+   * format.
+   * 
+ * + * + * repeated .google.protobuf.Struct class_methods = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.StructOrBuilder getClassMethodsOrBuilder(int index); +} 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 e8331ac306f4..aab328608093 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 @@ -229,7 +229,7 @@ public com.google.cloud.aiplatform.v1.VertexRagStoreOrBuilder getVertexRagStoreO * * * @deprecated google.cloud.aiplatform.v1.Retrieval.disable_attribution is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=142 + * google/cloud/aiplatform/v1/tool.proto;l=206 * @return The disableAttribution. */ @java.lang.Override @@ -1117,7 +1117,7 @@ public com.google.cloud.aiplatform.v1.VertexRagStoreOrBuilder getVertexRagStoreO * * * @deprecated google.cloud.aiplatform.v1.Retrieval.disable_attribution is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=142 + * google/cloud/aiplatform/v1/tool.proto;l=206 * @return The disableAttribution. */ @java.lang.Override @@ -1137,7 +1137,7 @@ public boolean getDisableAttribution() { * * * @deprecated google.cloud.aiplatform.v1.Retrieval.disable_attribution is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=142 + * google/cloud/aiplatform/v1/tool.proto;l=206 * @param value The disableAttribution to set. * @return This builder for chaining. */ @@ -1161,7 +1161,7 @@ public Builder setDisableAttribution(boolean value) { * * * @deprecated google.cloud.aiplatform.v1.Retrieval.disable_attribution is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=142 + * google/cloud/aiplatform/v1/tool.proto;l=206 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalConfig.java new file mode 100644 index 000000000000..4301a58e690f --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalConfig.java @@ -0,0 +1,925 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/tool.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Retrieval config.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RetrievalConfig} + */ +public final class RetrievalConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.RetrievalConfig) + RetrievalConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use RetrievalConfig.newBuilder() to construct. + private RetrievalConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RetrievalConfig() { + languageCode_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RetrievalConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_RetrievalConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_RetrievalConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RetrievalConfig.class, + com.google.cloud.aiplatform.v1.RetrievalConfig.Builder.class); + } + + private int bitField0_; + public static final int LAT_LNG_FIELD_NUMBER = 1; + private com.google.type.LatLng latLng_; + /** + * + * + *
+   * The location of the user.
+   * 
+ * + * optional .google.type.LatLng lat_lng = 1; + * + * @return Whether the latLng field is set. + */ + @java.lang.Override + public boolean hasLatLng() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * The location of the user.
+   * 
+ * + * optional .google.type.LatLng lat_lng = 1; + * + * @return The latLng. + */ + @java.lang.Override + public com.google.type.LatLng getLatLng() { + return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; + } + /** + * + * + *
+   * The location of the user.
+   * 
+ * + * optional .google.type.LatLng lat_lng = 1; + */ + @java.lang.Override + public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { + return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; + } + + public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; + /** + * + * + *
+   * The language code of the user.
+   * 
+ * + * optional string language_code = 2; + * + * @return Whether the languageCode field is set. + */ + @java.lang.Override + public boolean hasLanguageCode() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * The language code of the user.
+   * 
+ * + * optional string language_code = 2; + * + * @return The languageCode. + */ + @java.lang.Override + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } + } + /** + * + * + *
+   * The language code of the user.
+   * 
+ * + * optional string language_code = 2; + * + * @return The bytes for languageCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = 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, getLatLng()); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); + } + 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, getLatLng()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.RetrievalConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.RetrievalConfig other = + (com.google.cloud.aiplatform.v1.RetrievalConfig) obj; + + if (hasLatLng() != other.hasLatLng()) return false; + if (hasLatLng()) { + if (!getLatLng().equals(other.getLatLng())) return false; + } + if (hasLanguageCode() != other.hasLanguageCode()) return false; + if (hasLanguageCode()) { + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + } + if (!getUnknownFields().equals(other.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 (hasLatLng()) { + hash = (37 * hash) + LAT_LNG_FIELD_NUMBER; + hash = (53 * hash) + getLatLng().hashCode(); + } + if (hasLanguageCode()) { + hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getLanguageCode().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.RetrievalConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RetrievalConfig parseFrom( + 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.RetrievalConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RetrievalConfig parseFrom( + com.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.RetrievalConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RetrievalConfig 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.RetrievalConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RetrievalConfig parseFrom( + java.io.InputStream 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.RetrievalConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RetrievalConfig parseDelimitedFrom( + java.io.InputStream 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.RetrievalConfig 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.RetrievalConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.RetrievalConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Retrieval config.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RetrievalConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.RetrievalConfig) + com.google.cloud.aiplatform.v1.RetrievalConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_RetrievalConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_RetrievalConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RetrievalConfig.class, + com.google.cloud.aiplatform.v1.RetrievalConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.RetrievalConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getLatLngFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + latLng_ = null; + if (latLngBuilder_ != null) { + latLngBuilder_.dispose(); + latLngBuilder_ = null; + } + languageCode_ = ""; + 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_RetrievalConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RetrievalConfig getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.RetrievalConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RetrievalConfig build() { + com.google.cloud.aiplatform.v1.RetrievalConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RetrievalConfig buildPartial() { + com.google.cloud.aiplatform.v1.RetrievalConfig result = + new com.google.cloud.aiplatform.v1.RetrievalConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.RetrievalConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.latLng_ = latLngBuilder_ == null ? latLng_ : latLngBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.languageCode_ = languageCode_; + 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.RetrievalConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1.RetrievalConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.RetrievalConfig other) { + if (other == com.google.cloud.aiplatform.v1.RetrievalConfig.getDefaultInstance()) return this; + if (other.hasLatLng()) { + mergeLatLng(other.getLatLng()); + } + if (other.hasLanguageCode()) { + languageCode_ = other.languageCode_; + 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: + { + input.readMessage(getLatLngFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + languageCode_ = 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 com.google.type.LatLng latLng_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + latLngBuilder_; + /** + * + * + *
+     * The location of the user.
+     * 
+ * + * optional .google.type.LatLng lat_lng = 1; + * + * @return Whether the latLng field is set. + */ + public boolean hasLatLng() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The location of the user.
+     * 
+ * + * optional .google.type.LatLng lat_lng = 1; + * + * @return The latLng. + */ + public com.google.type.LatLng getLatLng() { + if (latLngBuilder_ == null) { + return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; + } else { + return latLngBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The location of the user.
+     * 
+ * + * optional .google.type.LatLng lat_lng = 1; + */ + public Builder setLatLng(com.google.type.LatLng value) { + if (latLngBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + latLng_ = value; + } else { + latLngBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The location of the user.
+     * 
+ * + * optional .google.type.LatLng lat_lng = 1; + */ + public Builder setLatLng(com.google.type.LatLng.Builder builderForValue) { + if (latLngBuilder_ == null) { + latLng_ = builderForValue.build(); + } else { + latLngBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The location of the user.
+     * 
+ * + * optional .google.type.LatLng lat_lng = 1; + */ + public Builder mergeLatLng(com.google.type.LatLng value) { + if (latLngBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && latLng_ != null + && latLng_ != com.google.type.LatLng.getDefaultInstance()) { + getLatLngBuilder().mergeFrom(value); + } else { + latLng_ = value; + } + } else { + latLngBuilder_.mergeFrom(value); + } + if (latLng_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * The location of the user.
+     * 
+ * + * optional .google.type.LatLng lat_lng = 1; + */ + public Builder clearLatLng() { + bitField0_ = (bitField0_ & ~0x00000001); + latLng_ = null; + if (latLngBuilder_ != null) { + latLngBuilder_.dispose(); + latLngBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The location of the user.
+     * 
+ * + * optional .google.type.LatLng lat_lng = 1; + */ + public com.google.type.LatLng.Builder getLatLngBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getLatLngFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The location of the user.
+     * 
+ * + * optional .google.type.LatLng lat_lng = 1; + */ + public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { + if (latLngBuilder_ != null) { + return latLngBuilder_.getMessageOrBuilder(); + } else { + return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; + } + } + /** + * + * + *
+     * The location of the user.
+     * 
+ * + * optional .google.type.LatLng lat_lng = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + getLatLngFieldBuilder() { + if (latLngBuilder_ == null) { + latLngBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, + com.google.type.LatLng.Builder, + com.google.type.LatLngOrBuilder>(getLatLng(), getParentForChildren(), isClean()); + latLng_ = null; + } + return latLngBuilder_; + } + + private java.lang.Object languageCode_ = ""; + /** + * + * + *
+     * The language code of the user.
+     * 
+ * + * optional string language_code = 2; + * + * @return Whether the languageCode field is set. + */ + public boolean hasLanguageCode() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * The language code of the user.
+     * 
+ * + * optional string language_code = 2; + * + * @return The languageCode. + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The language code of the user.
+     * 
+ * + * optional string language_code = 2; + * + * @return The bytes for languageCode. + */ + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The language code of the user.
+     * 
+ * + * optional string language_code = 2; + * + * @param value The languageCode to set. + * @return This builder for chaining. + */ + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + languageCode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The language code of the user.
+     * 
+ * + * optional string language_code = 2; + * + * @return This builder for chaining. + */ + public Builder clearLanguageCode() { + languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * The language code of the user.
+     * 
+ * + * optional string language_code = 2; + * + * @param value The bytes for languageCode to set. + * @return This builder for chaining. + */ + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = 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.RetrievalConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.RetrievalConfig) + private static final com.google.cloud.aiplatform.v1.RetrievalConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.RetrievalConfig(); + } + + public static com.google.cloud.aiplatform.v1.RetrievalConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RetrievalConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.RetrievalConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalConfigOrBuilder.java new file mode 100644 index 000000000000..39e83c106aa0 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalConfigOrBuilder.java @@ -0,0 +1,98 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/tool.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface RetrievalConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.RetrievalConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The location of the user.
+   * 
+ * + * optional .google.type.LatLng lat_lng = 1; + * + * @return Whether the latLng field is set. + */ + boolean hasLatLng(); + /** + * + * + *
+   * The location of the user.
+   * 
+ * + * optional .google.type.LatLng lat_lng = 1; + * + * @return The latLng. + */ + com.google.type.LatLng getLatLng(); + /** + * + * + *
+   * The location of the user.
+   * 
+ * + * optional .google.type.LatLng lat_lng = 1; + */ + com.google.type.LatLngOrBuilder getLatLngOrBuilder(); + + /** + * + * + *
+   * The language code of the user.
+   * 
+ * + * optional string language_code = 2; + * + * @return Whether the languageCode field is set. + */ + boolean hasLanguageCode(); + /** + * + * + *
+   * The language code of the user.
+   * 
+ * + * optional string language_code = 2; + * + * @return The languageCode. + */ + java.lang.String getLanguageCode(); + /** + * + * + *
+   * The language code of the user.
+   * 
+ * + * optional string language_code = 2; + * + * @return The bytes for languageCode. + */ + com.google.protobuf.ByteString getLanguageCodeBytes(); +} 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 978035123e54..bbb703a3a254 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 @@ -109,7 +109,7 @@ public interface RetrievalOrBuilder * * * @deprecated google.cloud.aiplatform.v1.Retrieval.disable_attribution is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=142 + * google/cloud/aiplatform/v1/tool.proto;l=206 * @return The disableAttribution. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpeculativeDecodingSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpeculativeDecodingSpec.java new file mode 100644 index 000000000000..f8031920c06a --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpeculativeDecodingSpec.java @@ -0,0 +1,2578 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/endpoint.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Configuration for Speculative Decoding.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.SpeculativeDecodingSpec} + */ +public final class SpeculativeDecodingSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.SpeculativeDecodingSpec) + SpeculativeDecodingSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use SpeculativeDecodingSpec.newBuilder() to construct. + private SpeculativeDecodingSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SpeculativeDecodingSpec() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SpeculativeDecodingSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.EndpointProto + .internal_static_google_cloud_aiplatform_v1_SpeculativeDecodingSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.EndpointProto + .internal_static_google_cloud_aiplatform_v1_SpeculativeDecodingSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.class, + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.Builder.class); + } + + public interface DraftModelSpeculationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The resource name of the draft model.
+     * 
+ * + * + * string draft_model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The draftModel. + */ + java.lang.String getDraftModel(); + /** + * + * + *
+     * Required. The resource name of the draft model.
+     * 
+ * + * + * string draft_model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for draftModel. + */ + com.google.protobuf.ByteString getDraftModelBytes(); + } + /** + * + * + *
+   * Draft model speculation works by using the smaller model to generate
+   * candidate tokens for speculative decoding.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation} + */ + public static final class DraftModelSpeculation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation) + DraftModelSpeculationOrBuilder { + private static final long serialVersionUID = 0L; + // Use DraftModelSpeculation.newBuilder() to construct. + private DraftModelSpeculation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DraftModelSpeculation() { + draftModel_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DraftModelSpeculation(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.EndpointProto + .internal_static_google_cloud_aiplatform_v1_SpeculativeDecodingSpec_DraftModelSpeculation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.EndpointProto + .internal_static_google_cloud_aiplatform_v1_SpeculativeDecodingSpec_DraftModelSpeculation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation.class, + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation.Builder + .class); + } + + public static final int DRAFT_MODEL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object draftModel_ = ""; + /** + * + * + *
+     * Required. The resource name of the draft model.
+     * 
+ * + * + * string draft_model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The draftModel. + */ + @java.lang.Override + public java.lang.String getDraftModel() { + java.lang.Object ref = draftModel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + draftModel_ = s; + return s; + } + } + /** + * + * + *
+     * Required. The resource name of the draft model.
+     * 
+ * + * + * string draft_model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for draftModel. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDraftModelBytes() { + java.lang.Object ref = draftModel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + draftModel_ = 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(draftModel_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, draftModel_); + } + 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(draftModel_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, draftModel_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.SpeculativeDecodingSpec.DraftModelSpeculation)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation other = + (com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation) obj; + + if (!getDraftModel().equals(other.getDraftModel())) return false; + if (!getUnknownFields().equals(other.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) + DRAFT_MODEL_FIELD_NUMBER; + hash = (53 * hash) + getDraftModel().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation + parseFrom( + 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.SpeculativeDecodingSpec.DraftModelSpeculation + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation + parseFrom( + com.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.SpeculativeDecodingSpec.DraftModelSpeculation + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation + 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.SpeculativeDecodingSpec.DraftModelSpeculation + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation + parseFrom( + java.io.InputStream 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.SpeculativeDecodingSpec.DraftModelSpeculation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation + parseDelimitedFrom( + java.io.InputStream 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.SpeculativeDecodingSpec.DraftModelSpeculation + 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.SpeculativeDecodingSpec.DraftModelSpeculation + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.SpeculativeDecodingSpec.DraftModelSpeculation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Draft model speculation works by using the smaller model to generate
+     * candidate tokens for speculative decoding.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation) + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.EndpointProto + .internal_static_google_cloud_aiplatform_v1_SpeculativeDecodingSpec_DraftModelSpeculation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.EndpointProto + .internal_static_google_cloud_aiplatform_v1_SpeculativeDecodingSpec_DraftModelSpeculation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation.class, + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + draftModel_ = ""; + 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_SpeculativeDecodingSpec_DraftModelSpeculation_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation build() { + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation + buildPartial() { + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation result = + new com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.draftModel_ = draftModel_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.SpeculativeDecodingSpec.DraftModelSpeculation) { + return mergeFrom( + (com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation other) { + if (other + == com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation + .getDefaultInstance()) return this; + if (!other.getDraftModel().isEmpty()) { + draftModel_ = other.draftModel_; + 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: + { + draftModel_ = 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 draftModel_ = ""; + /** + * + * + *
+       * Required. The resource name of the draft model.
+       * 
+ * + * + * string draft_model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The draftModel. + */ + public java.lang.String getDraftModel() { + java.lang.Object ref = draftModel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + draftModel_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The resource name of the draft model.
+       * 
+ * + * + * string draft_model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for draftModel. + */ + public com.google.protobuf.ByteString getDraftModelBytes() { + java.lang.Object ref = draftModel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + draftModel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The resource name of the draft model.
+       * 
+ * + * + * string draft_model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The draftModel to set. + * @return This builder for chaining. + */ + public Builder setDraftModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + draftModel_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The resource name of the draft model.
+       * 
+ * + * + * string draft_model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDraftModel() { + draftModel_ = getDefaultInstance().getDraftModel(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The resource name of the draft model.
+       * 
+ * + * + * string draft_model = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for draftModel to set. + * @return This builder for chaining. + */ + public Builder setDraftModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + draftModel_ = 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.SpeculativeDecodingSpec.DraftModelSpeculation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation) + private static final com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec + .DraftModelSpeculation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation(); + } + + public static com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DraftModelSpeculation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.SpeculativeDecodingSpec.DraftModelSpeculation + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface NgramSpeculationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The number of last N input tokens used as ngram to search/match
+     * against the previous prompt sequence.
+     * This is equal to the N in N-Gram.
+     * The default value is 3 if not specified.
+     * 
+ * + * int32 ngram_size = 1; + * + * @return The ngramSize. + */ + int getNgramSize(); + } + /** + * + * + *
+   * N-Gram speculation works by trying to find matching tokens in the
+   * previous prompt sequence and use those as speculation for generating
+   * new tokens.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation} + */ + public static final class NgramSpeculation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation) + NgramSpeculationOrBuilder { + private static final long serialVersionUID = 0L; + // Use NgramSpeculation.newBuilder() to construct. + private NgramSpeculation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NgramSpeculation() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NgramSpeculation(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.EndpointProto + .internal_static_google_cloud_aiplatform_v1_SpeculativeDecodingSpec_NgramSpeculation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.EndpointProto + .internal_static_google_cloud_aiplatform_v1_SpeculativeDecodingSpec_NgramSpeculation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation.class, + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation.Builder + .class); + } + + public static final int NGRAM_SIZE_FIELD_NUMBER = 1; + private int ngramSize_ = 0; + /** + * + * + *
+     * The number of last N input tokens used as ngram to search/match
+     * against the previous prompt sequence.
+     * This is equal to the N in N-Gram.
+     * The default value is 3 if not specified.
+     * 
+ * + * int32 ngram_size = 1; + * + * @return The ngramSize. + */ + @java.lang.Override + public int getNgramSize() { + return ngramSize_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (ngramSize_ != 0) { + output.writeInt32(1, ngramSize_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (ngramSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, ngramSize_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.SpeculativeDecodingSpec.NgramSpeculation)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation other = + (com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation) obj; + + if (getNgramSize() != other.getNgramSize()) return false; + if (!getUnknownFields().equals(other.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) + NGRAM_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getNgramSize(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation parseFrom( + 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.SpeculativeDecodingSpec.NgramSpeculation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation parseFrom( + com.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.SpeculativeDecodingSpec.NgramSpeculation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation 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.SpeculativeDecodingSpec.NgramSpeculation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation parseFrom( + java.io.InputStream 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.SpeculativeDecodingSpec.NgramSpeculation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation + parseDelimitedFrom( + java.io.InputStream 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.SpeculativeDecodingSpec.NgramSpeculation 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.SpeculativeDecodingSpec.NgramSpeculation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.SpeculativeDecodingSpec.NgramSpeculation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * N-Gram speculation works by trying to find matching tokens in the
+     * previous prompt sequence and use those as speculation for generating
+     * new tokens.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation) + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.EndpointProto + .internal_static_google_cloud_aiplatform_v1_SpeculativeDecodingSpec_NgramSpeculation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.EndpointProto + .internal_static_google_cloud_aiplatform_v1_SpeculativeDecodingSpec_NgramSpeculation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation.class, + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + ngramSize_ = 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_SpeculativeDecodingSpec_NgramSpeculation_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation build() { + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation + buildPartial() { + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation result = + new com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.ngramSize_ = ngramSize_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.SpeculativeDecodingSpec.NgramSpeculation) { + return mergeFrom( + (com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation other) { + if (other + == com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation + .getDefaultInstance()) return this; + if (other.getNgramSize() != 0) { + setNgramSize(other.getNgramSize()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + ngramSize_ = input.readInt32(); + 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 int ngramSize_; + /** + * + * + *
+       * The number of last N input tokens used as ngram to search/match
+       * against the previous prompt sequence.
+       * This is equal to the N in N-Gram.
+       * The default value is 3 if not specified.
+       * 
+ * + * int32 ngram_size = 1; + * + * @return The ngramSize. + */ + @java.lang.Override + public int getNgramSize() { + return ngramSize_; + } + /** + * + * + *
+       * The number of last N input tokens used as ngram to search/match
+       * against the previous prompt sequence.
+       * This is equal to the N in N-Gram.
+       * The default value is 3 if not specified.
+       * 
+ * + * int32 ngram_size = 1; + * + * @param value The ngramSize to set. + * @return This builder for chaining. + */ + public Builder setNgramSize(int value) { + + ngramSize_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The number of last N input tokens used as ngram to search/match
+       * against the previous prompt sequence.
+       * This is equal to the N in N-Gram.
+       * The default value is 3 if not specified.
+       * 
+ * + * int32 ngram_size = 1; + * + * @return This builder for chaining. + */ + public Builder clearNgramSize() { + bitField0_ = (bitField0_ & ~0x00000001); + ngramSize_ = 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.SpeculativeDecodingSpec.NgramSpeculation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation) + private static final com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation(); + } + + public static com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NgramSpeculation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.SpeculativeDecodingSpec.NgramSpeculation + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int speculationCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object speculation_; + + public enum SpeculationCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DRAFT_MODEL_SPECULATION(2), + NGRAM_SPECULATION(3), + SPECULATION_NOT_SET(0); + private final int value; + + private SpeculationCase(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 SpeculationCase valueOf(int value) { + return forNumber(value); + } + + public static SpeculationCase forNumber(int value) { + switch (value) { + case 2: + return DRAFT_MODEL_SPECULATION; + case 3: + return NGRAM_SPECULATION; + case 0: + return SPECULATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SpeculationCase getSpeculationCase() { + return SpeculationCase.forNumber(speculationCase_); + } + + public static final int DRAFT_MODEL_SPECULATION_FIELD_NUMBER = 2; + /** + * + * + *
+   * draft model speculation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation draft_model_speculation = 2; + * + * + * @return Whether the draftModelSpeculation field is set. + */ + @java.lang.Override + public boolean hasDraftModelSpeculation() { + return speculationCase_ == 2; + } + /** + * + * + *
+   * draft model speculation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation draft_model_speculation = 2; + * + * + * @return The draftModelSpeculation. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation + getDraftModelSpeculation() { + if (speculationCase_ == 2) { + return (com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation) + speculation_; + } + return com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation + .getDefaultInstance(); + } + /** + * + * + *
+   * draft model speculation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation draft_model_speculation = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculationOrBuilder + getDraftModelSpeculationOrBuilder() { + if (speculationCase_ == 2) { + return (com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation) + speculation_; + } + return com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation + .getDefaultInstance(); + } + + public static final int NGRAM_SPECULATION_FIELD_NUMBER = 3; + /** + * + * + *
+   * N-Gram speculation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation ngram_speculation = 3; + * + * + * @return Whether the ngramSpeculation field is set. + */ + @java.lang.Override + public boolean hasNgramSpeculation() { + return speculationCase_ == 3; + } + /** + * + * + *
+   * N-Gram speculation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation ngram_speculation = 3; + * + * + * @return The ngramSpeculation. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation + getNgramSpeculation() { + if (speculationCase_ == 3) { + return (com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation) speculation_; + } + return com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation + .getDefaultInstance(); + } + /** + * + * + *
+   * N-Gram speculation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation ngram_speculation = 3; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculationOrBuilder + getNgramSpeculationOrBuilder() { + if (speculationCase_ == 3) { + return (com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation) speculation_; + } + return com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation + .getDefaultInstance(); + } + + public static final int SPECULATIVE_TOKEN_COUNT_FIELD_NUMBER = 1; + private int speculativeTokenCount_ = 0; + /** + * + * + *
+   * The number of speculative tokens to generate at each step.
+   * 
+ * + * int32 speculative_token_count = 1; + * + * @return The speculativeTokenCount. + */ + @java.lang.Override + public int getSpeculativeTokenCount() { + return speculativeTokenCount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (speculativeTokenCount_ != 0) { + output.writeInt32(1, speculativeTokenCount_); + } + if (speculationCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation) + speculation_); + } + if (speculationCase_ == 3) { + output.writeMessage( + 3, + (com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation) speculation_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (speculativeTokenCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, speculativeTokenCount_); + } + if (speculationCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation) + speculation_); + } + if (speculationCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation) + speculation_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.SpeculativeDecodingSpec)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec other = + (com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec) obj; + + if (getSpeculativeTokenCount() != other.getSpeculativeTokenCount()) return false; + if (!getSpeculationCase().equals(other.getSpeculationCase())) return false; + switch (speculationCase_) { + case 2: + if (!getDraftModelSpeculation().equals(other.getDraftModelSpeculation())) return false; + break; + case 3: + if (!getNgramSpeculation().equals(other.getNgramSpeculation())) 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) + SPECULATIVE_TOKEN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getSpeculativeTokenCount(); + switch (speculationCase_) { + case 2: + hash = (37 * hash) + DRAFT_MODEL_SPECULATION_FIELD_NUMBER; + hash = (53 * hash) + getDraftModelSpeculation().hashCode(); + break; + case 3: + hash = (37 * hash) + NGRAM_SPECULATION_FIELD_NUMBER; + hash = (53 * hash) + getNgramSpeculation().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec parseFrom( + 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.SpeculativeDecodingSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec parseFrom( + com.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.SpeculativeDecodingSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec 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.SpeculativeDecodingSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec parseFrom( + java.io.InputStream 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.SpeculativeDecodingSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec parseDelimitedFrom( + java.io.InputStream 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.SpeculativeDecodingSpec 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.SpeculativeDecodingSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.SpeculativeDecodingSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 Speculative Decoding.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.SpeculativeDecodingSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.SpeculativeDecodingSpec) + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.EndpointProto + .internal_static_google_cloud_aiplatform_v1_SpeculativeDecodingSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.EndpointProto + .internal_static_google_cloud_aiplatform_v1_SpeculativeDecodingSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.class, + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (draftModelSpeculationBuilder_ != null) { + draftModelSpeculationBuilder_.clear(); + } + if (ngramSpeculationBuilder_ != null) { + ngramSpeculationBuilder_.clear(); + } + speculativeTokenCount_ = 0; + speculationCase_ = 0; + speculation_ = 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_SpeculativeDecodingSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec build() { + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec buildPartial() { + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec result = + new com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.speculativeTokenCount_ = speculativeTokenCount_; + } + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec result) { + result.speculationCase_ = speculationCase_; + result.speculation_ = this.speculation_; + if (speculationCase_ == 2 && draftModelSpeculationBuilder_ != null) { + result.speculation_ = draftModelSpeculationBuilder_.build(); + } + if (speculationCase_ == 3 && ngramSpeculationBuilder_ != null) { + result.speculation_ = ngramSpeculationBuilder_.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.SpeculativeDecodingSpec) { + return mergeFrom((com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec other) { + if (other == com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.getDefaultInstance()) + return this; + if (other.getSpeculativeTokenCount() != 0) { + setSpeculativeTokenCount(other.getSpeculativeTokenCount()); + } + switch (other.getSpeculationCase()) { + case DRAFT_MODEL_SPECULATION: + { + mergeDraftModelSpeculation(other.getDraftModelSpeculation()); + break; + } + case NGRAM_SPECULATION: + { + mergeNgramSpeculation(other.getNgramSpeculation()); + break; + } + case SPECULATION_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: + { + speculativeTokenCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 8 + case 18: + { + input.readMessage( + getDraftModelSpeculationFieldBuilder().getBuilder(), extensionRegistry); + speculationCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + getNgramSpeculationFieldBuilder().getBuilder(), extensionRegistry); + speculationCase_ = 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 speculationCase_ = 0; + private java.lang.Object speculation_; + + public SpeculationCase getSpeculationCase() { + return SpeculationCase.forNumber(speculationCase_); + } + + public Builder clearSpeculation() { + speculationCase_ = 0; + speculation_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation, + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation.Builder, + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculationOrBuilder> + draftModelSpeculationBuilder_; + /** + * + * + *
+     * draft model speculation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation draft_model_speculation = 2; + * + * + * @return Whether the draftModelSpeculation field is set. + */ + @java.lang.Override + public boolean hasDraftModelSpeculation() { + return speculationCase_ == 2; + } + /** + * + * + *
+     * draft model speculation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation draft_model_speculation = 2; + * + * + * @return The draftModelSpeculation. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation + getDraftModelSpeculation() { + if (draftModelSpeculationBuilder_ == null) { + if (speculationCase_ == 2) { + return (com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation) + speculation_; + } + return com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation + .getDefaultInstance(); + } else { + if (speculationCase_ == 2) { + return draftModelSpeculationBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation + .getDefaultInstance(); + } + } + /** + * + * + *
+     * draft model speculation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation draft_model_speculation = 2; + * + */ + public Builder setDraftModelSpeculation( + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation value) { + if (draftModelSpeculationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + speculation_ = value; + onChanged(); + } else { + draftModelSpeculationBuilder_.setMessage(value); + } + speculationCase_ = 2; + return this; + } + /** + * + * + *
+     * draft model speculation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation draft_model_speculation = 2; + * + */ + public Builder setDraftModelSpeculation( + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation.Builder + builderForValue) { + if (draftModelSpeculationBuilder_ == null) { + speculation_ = builderForValue.build(); + onChanged(); + } else { + draftModelSpeculationBuilder_.setMessage(builderForValue.build()); + } + speculationCase_ = 2; + return this; + } + /** + * + * + *
+     * draft model speculation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation draft_model_speculation = 2; + * + */ + public Builder mergeDraftModelSpeculation( + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation value) { + if (draftModelSpeculationBuilder_ == null) { + if (speculationCase_ == 2 + && speculation_ + != com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation + .getDefaultInstance()) { + speculation_ = + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation + .newBuilder( + (com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation) + speculation_) + .mergeFrom(value) + .buildPartial(); + } else { + speculation_ = value; + } + onChanged(); + } else { + if (speculationCase_ == 2) { + draftModelSpeculationBuilder_.mergeFrom(value); + } else { + draftModelSpeculationBuilder_.setMessage(value); + } + } + speculationCase_ = 2; + return this; + } + /** + * + * + *
+     * draft model speculation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation draft_model_speculation = 2; + * + */ + public Builder clearDraftModelSpeculation() { + if (draftModelSpeculationBuilder_ == null) { + if (speculationCase_ == 2) { + speculationCase_ = 0; + speculation_ = null; + onChanged(); + } + } else { + if (speculationCase_ == 2) { + speculationCase_ = 0; + speculation_ = null; + } + draftModelSpeculationBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * draft model speculation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation draft_model_speculation = 2; + * + */ + public com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation.Builder + getDraftModelSpeculationBuilder() { + return getDraftModelSpeculationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * draft model speculation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation draft_model_speculation = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculationOrBuilder + getDraftModelSpeculationOrBuilder() { + if ((speculationCase_ == 2) && (draftModelSpeculationBuilder_ != null)) { + return draftModelSpeculationBuilder_.getMessageOrBuilder(); + } else { + if (speculationCase_ == 2) { + return (com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation) + speculation_; + } + return com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation + .getDefaultInstance(); + } + } + /** + * + * + *
+     * draft model speculation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation draft_model_speculation = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation, + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation.Builder, + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculationOrBuilder> + getDraftModelSpeculationFieldBuilder() { + if (draftModelSpeculationBuilder_ == null) { + if (!(speculationCase_ == 2)) { + speculation_ = + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation + .getDefaultInstance(); + } + draftModelSpeculationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation, + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation + .Builder, + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec + .DraftModelSpeculationOrBuilder>( + (com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation) + speculation_, + getParentForChildren(), + isClean()); + speculation_ = null; + } + speculationCase_ = 2; + onChanged(); + return draftModelSpeculationBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation, + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation.Builder, + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculationOrBuilder> + ngramSpeculationBuilder_; + /** + * + * + *
+     * N-Gram speculation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation ngram_speculation = 3; + * + * + * @return Whether the ngramSpeculation field is set. + */ + @java.lang.Override + public boolean hasNgramSpeculation() { + return speculationCase_ == 3; + } + /** + * + * + *
+     * N-Gram speculation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation ngram_speculation = 3; + * + * + * @return The ngramSpeculation. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation + getNgramSpeculation() { + if (ngramSpeculationBuilder_ == null) { + if (speculationCase_ == 3) { + return (com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation) + speculation_; + } + return com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation + .getDefaultInstance(); + } else { + if (speculationCase_ == 3) { + return ngramSpeculationBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation + .getDefaultInstance(); + } + } + /** + * + * + *
+     * N-Gram speculation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation ngram_speculation = 3; + * + */ + public Builder setNgramSpeculation( + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation value) { + if (ngramSpeculationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + speculation_ = value; + onChanged(); + } else { + ngramSpeculationBuilder_.setMessage(value); + } + speculationCase_ = 3; + return this; + } + /** + * + * + *
+     * N-Gram speculation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation ngram_speculation = 3; + * + */ + public Builder setNgramSpeculation( + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation.Builder + builderForValue) { + if (ngramSpeculationBuilder_ == null) { + speculation_ = builderForValue.build(); + onChanged(); + } else { + ngramSpeculationBuilder_.setMessage(builderForValue.build()); + } + speculationCase_ = 3; + return this; + } + /** + * + * + *
+     * N-Gram speculation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation ngram_speculation = 3; + * + */ + public Builder mergeNgramSpeculation( + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation value) { + if (ngramSpeculationBuilder_ == null) { + if (speculationCase_ == 3 + && speculation_ + != com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation + .getDefaultInstance()) { + speculation_ = + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation.newBuilder( + (com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation) + speculation_) + .mergeFrom(value) + .buildPartial(); + } else { + speculation_ = value; + } + onChanged(); + } else { + if (speculationCase_ == 3) { + ngramSpeculationBuilder_.mergeFrom(value); + } else { + ngramSpeculationBuilder_.setMessage(value); + } + } + speculationCase_ = 3; + return this; + } + /** + * + * + *
+     * N-Gram speculation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation ngram_speculation = 3; + * + */ + public Builder clearNgramSpeculation() { + if (ngramSpeculationBuilder_ == null) { + if (speculationCase_ == 3) { + speculationCase_ = 0; + speculation_ = null; + onChanged(); + } + } else { + if (speculationCase_ == 3) { + speculationCase_ = 0; + speculation_ = null; + } + ngramSpeculationBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * N-Gram speculation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation ngram_speculation = 3; + * + */ + public com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation.Builder + getNgramSpeculationBuilder() { + return getNgramSpeculationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * N-Gram speculation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation ngram_speculation = 3; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculationOrBuilder + getNgramSpeculationOrBuilder() { + if ((speculationCase_ == 3) && (ngramSpeculationBuilder_ != null)) { + return ngramSpeculationBuilder_.getMessageOrBuilder(); + } else { + if (speculationCase_ == 3) { + return (com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation) + speculation_; + } + return com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation + .getDefaultInstance(); + } + } + /** + * + * + *
+     * N-Gram speculation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation ngram_speculation = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation, + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation.Builder, + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculationOrBuilder> + getNgramSpeculationFieldBuilder() { + if (ngramSpeculationBuilder_ == null) { + if (!(speculationCase_ == 3)) { + speculation_ = + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation + .getDefaultInstance(); + } + ngramSpeculationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation, + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation.Builder, + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculationOrBuilder>( + (com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation) + speculation_, + getParentForChildren(), + isClean()); + speculation_ = null; + } + speculationCase_ = 3; + onChanged(); + return ngramSpeculationBuilder_; + } + + private int speculativeTokenCount_; + /** + * + * + *
+     * The number of speculative tokens to generate at each step.
+     * 
+ * + * int32 speculative_token_count = 1; + * + * @return The speculativeTokenCount. + */ + @java.lang.Override + public int getSpeculativeTokenCount() { + return speculativeTokenCount_; + } + /** + * + * + *
+     * The number of speculative tokens to generate at each step.
+     * 
+ * + * int32 speculative_token_count = 1; + * + * @param value The speculativeTokenCount to set. + * @return This builder for chaining. + */ + public Builder setSpeculativeTokenCount(int value) { + + speculativeTokenCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of speculative tokens to generate at each step.
+     * 
+ * + * int32 speculative_token_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearSpeculativeTokenCount() { + bitField0_ = (bitField0_ & ~0x00000004); + speculativeTokenCount_ = 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.SpeculativeDecodingSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.SpeculativeDecodingSpec) + private static final com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec(); + } + + public static com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeculativeDecodingSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.SpeculativeDecodingSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpeculativeDecodingSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpeculativeDecodingSpecOrBuilder.java new file mode 100644 index 000000000000..c9dbf6d2f67a --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpeculativeDecodingSpecOrBuilder.java @@ -0,0 +1,126 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/endpoint.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface SpeculativeDecodingSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.SpeculativeDecodingSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * draft model speculation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation draft_model_speculation = 2; + * + * + * @return Whether the draftModelSpeculation field is set. + */ + boolean hasDraftModelSpeculation(); + /** + * + * + *
+   * draft model speculation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation draft_model_speculation = 2; + * + * + * @return The draftModelSpeculation. + */ + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation + getDraftModelSpeculation(); + /** + * + * + *
+   * draft model speculation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculation draft_model_speculation = 2; + * + */ + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.DraftModelSpeculationOrBuilder + getDraftModelSpeculationOrBuilder(); + + /** + * + * + *
+   * N-Gram speculation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation ngram_speculation = 3; + * + * + * @return Whether the ngramSpeculation field is set. + */ + boolean hasNgramSpeculation(); + /** + * + * + *
+   * N-Gram speculation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation ngram_speculation = 3; + * + * + * @return The ngramSpeculation. + */ + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation getNgramSpeculation(); + /** + * + * + *
+   * N-Gram speculation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculation ngram_speculation = 3; + * + */ + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.NgramSpeculationOrBuilder + getNgramSpeculationOrBuilder(); + + /** + * + * + *
+   * The number of speculative tokens to generate at each step.
+   * 
+ * + * int32 speculative_token_count = 1; + * + * @return The speculativeTokenCount. + */ + int getSpeculativeTokenCount(); + + com.google.cloud.aiplatform.v1.SpeculativeDecodingSpec.SpeculationCase getSpeculationCase(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StreamQueryReasoningEngineRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StreamQueryReasoningEngineRequest.java new file mode 100644 index 000000000000..7ffa00da0d05 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StreamQueryReasoningEngineRequest.java @@ -0,0 +1,1133 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/reasoning_engine_execution_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for [ReasoningEngineExecutionService.StreamQuery][].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest} + */ +public final class StreamQueryReasoningEngineRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.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.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_StreamQueryReasoningEngineRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_StreamQueryReasoningEngineRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest.class, + com.google.cloud.aiplatform.v1.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.v1.StreamQueryReasoningEngineRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest other = + (com.google.cloud.aiplatform.v1.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.v1.StreamQueryReasoningEngineRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.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.v1.StreamQueryReasoningEngineRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.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.v1.StreamQueryReasoningEngineRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.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.v1.StreamQueryReasoningEngineRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.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.v1.StreamQueryReasoningEngineRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.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.v1.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.v1.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.v1.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.v1.StreamQueryReasoningEngineRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest) + com.google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_StreamQueryReasoningEngineRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_StreamQueryReasoningEngineRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest.class, + com.google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.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.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_StreamQueryReasoningEngineRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest build() { + com.google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest buildPartial() { + com.google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest result = + new com.google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.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.v1.StreamQueryReasoningEngineRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest other) { + if (other + == com.google.cloud.aiplatform.v1.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.v1.StreamQueryReasoningEngineRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest) + private static final com.google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest(); + } + + public static com.google.cloud.aiplatform.v1.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.v1.StreamQueryReasoningEngineRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StreamQueryReasoningEngineRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StreamQueryReasoningEngineRequestOrBuilder.java new file mode 100644 index 000000000000..ceeed4e03c38 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/StreamQueryReasoningEngineRequestOrBuilder.java @@ -0,0 +1,124 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/reasoning_engine_execution_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface StreamQueryReasoningEngineRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.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-v1/src/main/java/com/google/cloud/aiplatform/v1/Tool.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Tool.java index 2f69b7d693a3..8ba2ec257a45 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Tool.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Tool.java @@ -69,6 +69,436 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.aiplatform.v1.Tool.Builder.class); } + public interface CodeExecutionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.Tool.CodeExecution) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
+   * Tool that executes code generated by the model, and automatically returns
+   * the result to the model.
+   *
+   * See also [ExecutableCode]and [CodeExecutionResult] which are input and
+   * output to this tool.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.Tool.CodeExecution} + */ + public static final class CodeExecution extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.Tool.CodeExecution) + CodeExecutionOrBuilder { + private static final long serialVersionUID = 0L; + // Use CodeExecution.newBuilder() to construct. + private CodeExecution(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CodeExecution() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CodeExecution(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_Tool_CodeExecution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_Tool_CodeExecution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.Tool.CodeExecution.class, + com.google.cloud.aiplatform.v1.Tool.CodeExecution.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.Tool.CodeExecution)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.Tool.CodeExecution other = + (com.google.cloud.aiplatform.v1.Tool.CodeExecution) 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.Tool.CodeExecution parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.Tool.CodeExecution parseFrom( + 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.Tool.CodeExecution parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.Tool.CodeExecution parseFrom( + com.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.Tool.CodeExecution parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.Tool.CodeExecution 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.Tool.CodeExecution parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.Tool.CodeExecution parseFrom( + java.io.InputStream 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.Tool.CodeExecution parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.Tool.CodeExecution parseDelimitedFrom( + java.io.InputStream 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.Tool.CodeExecution 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.Tool.CodeExecution parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.Tool.CodeExecution prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Tool that executes code generated by the model, and automatically returns
+     * the result to the model.
+     *
+     * See also [ExecutableCode]and [CodeExecutionResult] which are input and
+     * output to this tool.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.Tool.CodeExecution} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.Tool.CodeExecution) + com.google.cloud.aiplatform.v1.Tool.CodeExecutionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_Tool_CodeExecution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_Tool_CodeExecution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.Tool.CodeExecution.class, + com.google.cloud.aiplatform.v1.Tool.CodeExecution.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.Tool.CodeExecution.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.ToolProto + .internal_static_google_cloud_aiplatform_v1_Tool_CodeExecution_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Tool.CodeExecution getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.Tool.CodeExecution.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Tool.CodeExecution build() { + com.google.cloud.aiplatform.v1.Tool.CodeExecution result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.Tool.CodeExecution buildPartial() { + com.google.cloud.aiplatform.v1.Tool.CodeExecution result = + new com.google.cloud.aiplatform.v1.Tool.CodeExecution(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.Tool.CodeExecution) { + return mergeFrom((com.google.cloud.aiplatform.v1.Tool.CodeExecution) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.Tool.CodeExecution other) { + if (other == com.google.cloud.aiplatform.v1.Tool.CodeExecution.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.Tool.CodeExecution) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.Tool.CodeExecution) + private static final com.google.cloud.aiplatform.v1.Tool.CodeExecution DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.Tool.CodeExecution(); + } + + public static com.google.cloud.aiplatform.v1.Tool.CodeExecution getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CodeExecution parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.Tool.CodeExecution getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; public static final int FUNCTION_DECLARATIONS_FIELD_NUMBER = 1; @@ -313,6 +743,68 @@ public com.google.cloud.aiplatform.v1.GoogleSearchRetrieval getGoogleSearchRetri : googleSearchRetrieval_; } + public static final int CODE_EXECUTION_FIELD_NUMBER = 4; + private com.google.cloud.aiplatform.v1.Tool.CodeExecution codeExecution_; + /** + * + * + *
+   * Optional. CodeExecution tool type.
+   * Enables the model to execute code as part of generation.
+   * This field is only used by the Gemini Developer API services.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.CodeExecution code_execution = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the codeExecution field is set. + */ + @java.lang.Override + public boolean hasCodeExecution() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+   * Optional. CodeExecution tool type.
+   * Enables the model to execute code as part of generation.
+   * This field is only used by the Gemini Developer API services.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.CodeExecution code_execution = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The codeExecution. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Tool.CodeExecution getCodeExecution() { + return codeExecution_ == null + ? com.google.cloud.aiplatform.v1.Tool.CodeExecution.getDefaultInstance() + : codeExecution_; + } + /** + * + * + *
+   * Optional. CodeExecution tool type.
+   * Enables the model to execute code as part of generation.
+   * This field is only used by the Gemini Developer API services.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.CodeExecution code_execution = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.Tool.CodeExecutionOrBuilder getCodeExecutionOrBuilder() { + return codeExecution_ == null + ? com.google.cloud.aiplatform.v1.Tool.CodeExecution.getDefaultInstance() + : codeExecution_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -336,6 +828,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getGoogleSearchRetrieval()); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getCodeExecution()); + } getUnknownFields().writeTo(output); } @@ -356,6 +851,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getGoogleSearchRetrieval()); } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCodeExecution()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -380,6 +878,10 @@ public boolean equals(final java.lang.Object obj) { if (hasGoogleSearchRetrieval()) { if (!getGoogleSearchRetrieval().equals(other.getGoogleSearchRetrieval())) return false; } + if (hasCodeExecution() != other.hasCodeExecution()) return false; + if (hasCodeExecution()) { + if (!getCodeExecution().equals(other.getCodeExecution())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -403,6 +905,10 @@ public int hashCode() { hash = (37 * hash) + GOOGLE_SEARCH_RETRIEVAL_FIELD_NUMBER; hash = (53 * hash) + getGoogleSearchRetrieval().hashCode(); } + if (hasCodeExecution()) { + hash = (37 * hash) + CODE_EXECUTION_FIELD_NUMBER; + hash = (53 * hash) + getCodeExecution().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -551,6 +1057,7 @@ private void maybeForceBuilderInitialization() { getFunctionDeclarationsFieldBuilder(); getRetrievalFieldBuilder(); getGoogleSearchRetrievalFieldBuilder(); + getCodeExecutionFieldBuilder(); } } @@ -575,6 +1082,11 @@ public Builder clear() { googleSearchRetrievalBuilder_.dispose(); googleSearchRetrievalBuilder_ = null; } + codeExecution_ = null; + if (codeExecutionBuilder_ != null) { + codeExecutionBuilder_.dispose(); + codeExecutionBuilder_ = null; + } return this; } @@ -635,6 +1147,11 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.Tool result) { : googleSearchRetrievalBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.codeExecution_ = + codeExecutionBuilder_ == null ? codeExecution_ : codeExecutionBuilder_.build(); + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -716,6 +1233,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Tool other) { if (other.hasGoogleSearchRetrieval()) { mergeGoogleSearchRetrieval(other.getGoogleSearchRetrieval()); } + if (other.hasCodeExecution()) { + mergeCodeExecution(other.getCodeExecution()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -769,6 +1289,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 34: + { + input.readMessage(getCodeExecutionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1762,6 +2288,229 @@ public Builder clearGoogleSearchRetrieval() { return googleSearchRetrievalBuilder_; } + private com.google.cloud.aiplatform.v1.Tool.CodeExecution codeExecution_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.Tool.CodeExecution, + com.google.cloud.aiplatform.v1.Tool.CodeExecution.Builder, + com.google.cloud.aiplatform.v1.Tool.CodeExecutionOrBuilder> + codeExecutionBuilder_; + /** + * + * + *
+     * Optional. CodeExecution tool type.
+     * Enables the model to execute code as part of generation.
+     * This field is only used by the Gemini Developer API services.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.CodeExecution code_execution = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the codeExecution field is set. + */ + public boolean hasCodeExecution() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Optional. CodeExecution tool type.
+     * Enables the model to execute code as part of generation.
+     * This field is only used by the Gemini Developer API services.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.CodeExecution code_execution = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The codeExecution. + */ + public com.google.cloud.aiplatform.v1.Tool.CodeExecution getCodeExecution() { + if (codeExecutionBuilder_ == null) { + return codeExecution_ == null + ? com.google.cloud.aiplatform.v1.Tool.CodeExecution.getDefaultInstance() + : codeExecution_; + } else { + return codeExecutionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. CodeExecution tool type.
+     * Enables the model to execute code as part of generation.
+     * This field is only used by the Gemini Developer API services.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.CodeExecution code_execution = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCodeExecution(com.google.cloud.aiplatform.v1.Tool.CodeExecution value) { + if (codeExecutionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + codeExecution_ = value; + } else { + codeExecutionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. CodeExecution tool type.
+     * Enables the model to execute code as part of generation.
+     * This field is only used by the Gemini Developer API services.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.CodeExecution code_execution = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCodeExecution( + com.google.cloud.aiplatform.v1.Tool.CodeExecution.Builder builderForValue) { + if (codeExecutionBuilder_ == null) { + codeExecution_ = builderForValue.build(); + } else { + codeExecutionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. CodeExecution tool type.
+     * Enables the model to execute code as part of generation.
+     * This field is only used by the Gemini Developer API services.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.CodeExecution code_execution = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCodeExecution(com.google.cloud.aiplatform.v1.Tool.CodeExecution value) { + if (codeExecutionBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && codeExecution_ != null + && codeExecution_ + != com.google.cloud.aiplatform.v1.Tool.CodeExecution.getDefaultInstance()) { + getCodeExecutionBuilder().mergeFrom(value); + } else { + codeExecution_ = value; + } + } else { + codeExecutionBuilder_.mergeFrom(value); + } + if (codeExecution_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. CodeExecution tool type.
+     * Enables the model to execute code as part of generation.
+     * This field is only used by the Gemini Developer API services.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.CodeExecution code_execution = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCodeExecution() { + bitField0_ = (bitField0_ & ~0x00000008); + codeExecution_ = null; + if (codeExecutionBuilder_ != null) { + codeExecutionBuilder_.dispose(); + codeExecutionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. CodeExecution tool type.
+     * Enables the model to execute code as part of generation.
+     * This field is only used by the Gemini Developer API services.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.CodeExecution code_execution = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.Tool.CodeExecution.Builder getCodeExecutionBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getCodeExecutionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. CodeExecution tool type.
+     * Enables the model to execute code as part of generation.
+     * This field is only used by the Gemini Developer API services.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.CodeExecution code_execution = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.Tool.CodeExecutionOrBuilder getCodeExecutionOrBuilder() { + if (codeExecutionBuilder_ != null) { + return codeExecutionBuilder_.getMessageOrBuilder(); + } else { + return codeExecution_ == null + ? com.google.cloud.aiplatform.v1.Tool.CodeExecution.getDefaultInstance() + : codeExecution_; + } + } + /** + * + * + *
+     * Optional. CodeExecution tool type.
+     * Enables the model to execute code as part of generation.
+     * This field is only used by the Gemini Developer API services.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.CodeExecution code_execution = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.Tool.CodeExecution, + com.google.cloud.aiplatform.v1.Tool.CodeExecution.Builder, + com.google.cloud.aiplatform.v1.Tool.CodeExecutionOrBuilder> + getCodeExecutionFieldBuilder() { + if (codeExecutionBuilder_ == null) { + codeExecutionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.Tool.CodeExecution, + com.google.cloud.aiplatform.v1.Tool.CodeExecution.Builder, + com.google.cloud.aiplatform.v1.Tool.CodeExecutionOrBuilder>( + getCodeExecution(), getParentForChildren(), isClean()); + codeExecution_ = null; + } + return codeExecutionBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolConfig.java index 565e194c8bca..4f72810c6eb9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolConfig.java @@ -119,6 +119,62 @@ public com.google.cloud.aiplatform.v1.FunctionCallingConfig getFunctionCallingCo : functionCallingConfig_; } + public static final int RETRIEVAL_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1.RetrievalConfig retrievalConfig_; + /** + * + * + *
+   * Optional. Retrieval config.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RetrievalConfig retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the retrievalConfig field is set. + */ + @java.lang.Override + public boolean hasRetrievalConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Optional. Retrieval config.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RetrievalConfig retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The retrievalConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RetrievalConfig getRetrievalConfig() { + return retrievalConfig_ == null + ? com.google.cloud.aiplatform.v1.RetrievalConfig.getDefaultInstance() + : retrievalConfig_; + } + /** + * + * + *
+   * Optional. Retrieval config.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RetrievalConfig retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.RetrievalConfigOrBuilder getRetrievalConfigOrBuilder() { + return retrievalConfig_ == null + ? com.google.cloud.aiplatform.v1.RetrievalConfig.getDefaultInstance() + : retrievalConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -136,6 +192,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getFunctionCallingConfig()); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getRetrievalConfig()); + } getUnknownFields().writeTo(output); } @@ -149,6 +208,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFunctionCallingConfig()); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRetrievalConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -169,6 +231,10 @@ public boolean equals(final java.lang.Object obj) { if (hasFunctionCallingConfig()) { if (!getFunctionCallingConfig().equals(other.getFunctionCallingConfig())) return false; } + if (hasRetrievalConfig() != other.hasRetrievalConfig()) return false; + if (hasRetrievalConfig()) { + if (!getRetrievalConfig().equals(other.getRetrievalConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,6 +250,10 @@ public int hashCode() { hash = (37 * hash) + FUNCTION_CALLING_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getFunctionCallingConfig().hashCode(); } + if (hasRetrievalConfig()) { + hash = (37 * hash) + RETRIEVAL_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRetrievalConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -325,6 +395,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFunctionCallingConfigFieldBuilder(); + getRetrievalConfigFieldBuilder(); } } @@ -337,6 +408,11 @@ public Builder clear() { functionCallingConfigBuilder_.dispose(); functionCallingConfigBuilder_ = null; } + retrievalConfig_ = null; + if (retrievalConfigBuilder_ != null) { + retrievalConfigBuilder_.dispose(); + retrievalConfigBuilder_ = null; + } return this; } @@ -381,6 +457,11 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.ToolConfig result) { : functionCallingConfigBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.retrievalConfig_ = + retrievalConfigBuilder_ == null ? retrievalConfig_ : retrievalConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -432,6 +513,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ToolConfig other) { if (other.hasFunctionCallingConfig()) { mergeFunctionCallingConfig(other.getFunctionCallingConfig()); } + if (other.hasRetrievalConfig()) { + mergeRetrievalConfig(other.getRetrievalConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -465,6 +549,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 18: + { + input.readMessage(getRetrievalConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -693,6 +783,211 @@ public Builder clearFunctionCallingConfig() { return functionCallingConfigBuilder_; } + private com.google.cloud.aiplatform.v1.RetrievalConfig retrievalConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RetrievalConfig, + com.google.cloud.aiplatform.v1.RetrievalConfig.Builder, + com.google.cloud.aiplatform.v1.RetrievalConfigOrBuilder> + retrievalConfigBuilder_; + /** + * + * + *
+     * Optional. Retrieval config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RetrievalConfig retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the retrievalConfig field is set. + */ + public boolean hasRetrievalConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Optional. Retrieval config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RetrievalConfig retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The retrievalConfig. + */ + public com.google.cloud.aiplatform.v1.RetrievalConfig getRetrievalConfig() { + if (retrievalConfigBuilder_ == null) { + return retrievalConfig_ == null + ? com.google.cloud.aiplatform.v1.RetrievalConfig.getDefaultInstance() + : retrievalConfig_; + } else { + return retrievalConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Retrieval config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RetrievalConfig retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRetrievalConfig(com.google.cloud.aiplatform.v1.RetrievalConfig value) { + if (retrievalConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + retrievalConfig_ = value; + } else { + retrievalConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Retrieval config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RetrievalConfig retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRetrievalConfig( + com.google.cloud.aiplatform.v1.RetrievalConfig.Builder builderForValue) { + if (retrievalConfigBuilder_ == null) { + retrievalConfig_ = builderForValue.build(); + } else { + retrievalConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Retrieval config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RetrievalConfig retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRetrievalConfig(com.google.cloud.aiplatform.v1.RetrievalConfig value) { + if (retrievalConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && retrievalConfig_ != null + && retrievalConfig_ + != com.google.cloud.aiplatform.v1.RetrievalConfig.getDefaultInstance()) { + getRetrievalConfigBuilder().mergeFrom(value); + } else { + retrievalConfig_ = value; + } + } else { + retrievalConfigBuilder_.mergeFrom(value); + } + if (retrievalConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Retrieval config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RetrievalConfig retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRetrievalConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + retrievalConfig_ = null; + if (retrievalConfigBuilder_ != null) { + retrievalConfigBuilder_.dispose(); + retrievalConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Retrieval config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RetrievalConfig retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.RetrievalConfig.Builder getRetrievalConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getRetrievalConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Retrieval config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RetrievalConfig retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.RetrievalConfigOrBuilder getRetrievalConfigOrBuilder() { + if (retrievalConfigBuilder_ != null) { + return retrievalConfigBuilder_.getMessageOrBuilder(); + } else { + return retrievalConfig_ == null + ? com.google.cloud.aiplatform.v1.RetrievalConfig.getDefaultInstance() + : retrievalConfig_; + } + } + /** + * + * + *
+     * Optional. Retrieval config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.RetrievalConfig retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RetrievalConfig, + com.google.cloud.aiplatform.v1.RetrievalConfig.Builder, + com.google.cloud.aiplatform.v1.RetrievalConfigOrBuilder> + getRetrievalConfigFieldBuilder() { + if (retrievalConfigBuilder_ == null) { + retrievalConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.RetrievalConfig, + com.google.cloud.aiplatform.v1.RetrievalConfig.Builder, + com.google.cloud.aiplatform.v1.RetrievalConfigOrBuilder>( + getRetrievalConfig(), getParentForChildren(), isClean()); + retrievalConfig_ = null; + } + return retrievalConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolConfigOrBuilder.java index 358de548f6ae..82f9f08dd777 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolConfigOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolConfigOrBuilder.java @@ -64,4 +64,45 @@ public interface ToolConfigOrBuilder * */ com.google.cloud.aiplatform.v1.FunctionCallingConfigOrBuilder getFunctionCallingConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Retrieval config.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RetrievalConfig retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the retrievalConfig field is set. + */ + boolean hasRetrievalConfig(); + /** + * + * + *
+   * Optional. Retrieval config.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RetrievalConfig retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The retrievalConfig. + */ + com.google.cloud.aiplatform.v1.RetrievalConfig getRetrievalConfig(); + /** + * + * + *
+   * Optional. Retrieval config.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.RetrievalConfig retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1.RetrievalConfigOrBuilder getRetrievalConfigOrBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolOrBuilder.java index acb5accd4923..f58fd4c60301 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolOrBuilder.java @@ -215,4 +215,51 @@ com.google.cloud.aiplatform.v1.FunctionDeclarationOrBuilder getFunctionDeclarati * */ com.google.cloud.aiplatform.v1.GoogleSearchRetrievalOrBuilder getGoogleSearchRetrievalOrBuilder(); + + /** + * + * + *
+   * Optional. CodeExecution tool type.
+   * Enables the model to execute code as part of generation.
+   * This field is only used by the Gemini Developer API services.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.CodeExecution code_execution = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the codeExecution field is set. + */ + boolean hasCodeExecution(); + /** + * + * + *
+   * Optional. CodeExecution tool type.
+   * Enables the model to execute code as part of generation.
+   * This field is only used by the Gemini Developer API services.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.CodeExecution code_execution = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The codeExecution. + */ + com.google.cloud.aiplatform.v1.Tool.CodeExecution getCodeExecution(); + /** + * + * + *
+   * Optional. CodeExecution tool type.
+   * Enables the model to execute code as part of generation.
+   * This field is only used by the Gemini Developer API services.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.Tool.CodeExecution code_execution = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1.Tool.CodeExecutionOrBuilder getCodeExecutionOrBuilder(); } 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 a34aa63174b7..a95e4dbe3c9e 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 @@ -32,6 +32,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_Tool_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_Tool_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_Tool_CodeExecution_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_Tool_CodeExecution_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1_FunctionDeclaration_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -44,6 +48,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_FunctionResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_FunctionResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ExecutableCode_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ExecutableCode_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_CodeExecutionResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_CodeExecutionResult_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1_Retrieval_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -76,6 +88,10 @@ 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_RetrievalConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_RetrievalConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1_RagRetrievalConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -97,14 +113,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032google.cloud.aiplatform.v1\032\037google/api/" + "field_behavior.proto\032\031google/api/resourc" + "e.proto\032(google/cloud/aiplatform/v1/open" - + "api.proto\032\034google/protobuf/struct.proto\"" - + "\363\001\n\004Tool\022S\n\025function_declarations\030\001 \003(\0132" - + "/.google.cloud.aiplatform.v1.FunctionDec" - + "larationB\003\340A\001\022=\n\tretrieval\030\002 \001(\0132%.googl" - + "e.cloud.aiplatform.v1.RetrievalB\003\340A\001\022W\n\027" - + "google_search_retrieval\030\003 \001(\01321.google.c" - + "loud.aiplatform.v1.GoogleSearchRetrieval" - + "B\003\340A\001\"\272\001\n\023FunctionDeclaration\022\021\n\004name\030\001 " + + "api.proto\032\034google/protobuf/struct.proto\032" + + "\030google/type/latlng.proto\"\321\002\n\004Tool\022S\n\025fu" + + "nction_declarations\030\001 \003(\0132/.google.cloud" + + ".aiplatform.v1.FunctionDeclarationB\003\340A\001\022" + + "=\n\tretrieval\030\002 \001(\0132%.google.cloud.aiplat" + + "form.v1.RetrievalB\003\340A\001\022W\n\027google_search_" + + "retrieval\030\003 \001(\01321.google.cloud.aiplatfor" + + "m.v1.GoogleSearchRetrievalB\003\340A\001\022K\n\016code_" + + "execution\030\004 \001(\0132..google.cloud.aiplatfor" + + "m.v1.Tool.CodeExecutionB\003\340A\001\032\017\n\rCodeExec" + + "ution\"\272\001\n\023FunctionDeclaration\022\021\n\004name\030\001 " + "\001(\tB\003\340A\002\022\030\n\013description\030\002 \001(\tB\003\340A\001\022;\n\npa" + "rameters\030\003 \001(\0132\".google.cloud.aiplatform" + ".v1.SchemaB\003\340A\001\0229\n\010response\030\004 \001(\0132\".goog" @@ -113,51 +132,65 @@ 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" - + "\"\311\001\n\tRetrieval\022F\n\020vertex_ai_search\030\002 \001(\013" - + "2*.google.cloud.aiplatform.v1.VertexAISe" - + "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" + + "\"\241\001\n\016ExecutableCode\022J\n\010language\030\001 \001(\01623." + + "google.cloud.aiplatform.v1.ExecutableCod" + + "e.LanguageB\003\340A\002\022\021\n\004code\030\002 \001(\tB\003\340A\002\"0\n\010La" + + "nguage\022\030\n\024LANGUAGE_UNSPECIFIED\020\000\022\n\n\006PYTH" + + "ON\020\001\"\340\001\n\023CodeExecutionResult\022M\n\007outcome\030" + + "\001 \001(\01627.google.cloud.aiplatform.v1.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\"\311\001\n\tRetr" + + "ieval\022F\n\020vertex_ai_search\030\002 \001(\0132*.google" + + ".cloud.aiplatform.v1.VertexAISearchH\000\022F\n" + + "\020vertex_rag_store\030\004 \001(\0132*.google.cloud.a" + + "iplatform.v1.VertexRagStoreH\000\022\"\n\023disable" + + "_attribution\030\003 \001(\010B\005\030\001\340A\001B\010\n\006source\"\252\003\n\016" + + "VertexRagStore\022R\n\rrag_resources\030\004 \003(\01326." + + "google.cloud.aiplatform.v1.VertexRagStor" + + "e.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_thre" + + "shold\030\003 \001(\001B\005\030\001\340A\001H\001\210\001\001\022Q\n\024rag_retrieval" + + "_config\030\006 \001(\0132..google.cloud.aiplatform." + + "v1.RagRetrievalConfigB\003\340A\001\032i\n\013RagResourc" + + "e\022?\n\nrag_corpus\030\001 \001(\tB+\340A\001\372A%\n#aiplatfor" + + "m.googleapis.com/RagCorpus\022\031\n\014rag_file_i" + + "ds\030\002 \003(\tB\003\340A\001B\023\n\021_similarity_top_kB\034\n\032_v" + + "ector_distance_threshold\"(\n\016VertexAISear" + + "ch\022\026\n\tdatastore\030\001 \001(\tB\003\340A\002\"m\n\025GoogleSear" + + "chRetrieval\022T\n\030dynamic_retrieval_config\030" + + "\002 \001(\01322.google.cloud.aiplatform.v1.Dynam" + + "icRetrievalConfig\"\312\001\n\026DynamicRetrievalCo" + + "nfig\022E\n\004mode\030\001 \001(\01627.google.cloud.aiplat" + + "form.v1.DynamicRetrievalConfig.Mode\022#\n\021d" + + "ynamic_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\001" + + "B\024\n\022_dynamic_threshold\"\261\001\n\nToolConfig\022W\n" + + "\027function_calling_config\030\001 \001(\01321.google." + + "cloud.aiplatform.v1.FunctionCallingConfi" + + "gB\003\340A\001\022J\n\020retrieval_config\030\002 \001(\0132+.googl" + + "e.cloud.aiplatform.v1.RetrievalConfigB\003\340" + + "A\001\"\302\001\n\025FunctionCallingConfig\022I\n\004mode\030\001 \001" + + "(\01626.google.cloud.aiplatform.v1.Function" + + "CallingConfig.ModeB\003\340A\001\022#\n\026allowed_funct" + + "ion_names\030\002 \003(\tB\003\340A\001\"9\n\004Mode\022\024\n\020MODE_UNS" + + "PECIFIED\020\000\022\010\n\004AUTO\020\001\022\007\n\003ANY\020\002\022\010\n\004NONE\020\003\"" + + "v\n\017RetrievalConfig\022)\n\007lat_lng\030\001 \001(\0132\023.go" + + "ogle.type.LatLngH\000\210\001\001\022\032\n\rlanguage_code\030\002" + + " \001(\tH\001\210\001\001B\n\n\010_lat_lngB\020\n\016_language_code\"" + + "\212\002\n\022RagRetrievalConfig\022\022\n\005top_k\030\001 \001(\005B\003\340" + + "A\001\022J\n\006filter\030\003 \001(\01325.google.cloud.aiplat" + + "form.v1.RagRetrievalConfig.FilterB\003\340A\001\032\223" + + "\001\n\006Filter\022(\n\031vector_distance_threshold\030\003" + + " \001(\001B\003\340A\001H\000\022*\n\033vector_similarity_thresho" + + "ld\030\004 \001(\001B\003\340A\001H\000\022\034\n\017metadata_filter\030\002 \001(\t" + + "B\003\340A\001B\025\n\023vector_db_thresholdB\307\001\n\036com.goo" + + "gle.cloud.aiplatform.v1B\tToolProtoP\001Z>cl" + + "oud.google.com/go/aiplatform/apiv1/aipla" + + "tformpb;aiplatformpb\252\002\032Google.Cloud.AIPl" + + "atform.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002" + + "\035Google::Cloud::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -167,6 +200,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(), com.google.cloud.aiplatform.v1.OpenApiProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), + com.google.type.LatLngProto.getDescriptor(), }); internal_static_google_cloud_aiplatform_v1_Tool_descriptor = getDescriptor().getMessageTypes().get(0); @@ -174,8 +208,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_Tool_descriptor, new java.lang.String[] { - "FunctionDeclarations", "Retrieval", "GoogleSearchRetrieval", + "FunctionDeclarations", "Retrieval", "GoogleSearchRetrieval", "CodeExecution", }); + internal_static_google_cloud_aiplatform_v1_Tool_CodeExecution_descriptor = + internal_static_google_cloud_aiplatform_v1_Tool_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_aiplatform_v1_Tool_CodeExecution_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_Tool_CodeExecution_descriptor, + new java.lang.String[] {}); internal_static_google_cloud_aiplatform_v1_FunctionDeclaration_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_google_cloud_aiplatform_v1_FunctionDeclaration_fieldAccessorTable = @@ -200,8 +240,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "Response", }); - internal_static_google_cloud_aiplatform_v1_Retrieval_descriptor = + internal_static_google_cloud_aiplatform_v1_ExecutableCode_descriptor = getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_aiplatform_v1_ExecutableCode_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_ExecutableCode_descriptor, + new java.lang.String[] { + "Language", "Code", + }); + internal_static_google_cloud_aiplatform_v1_CodeExecutionResult_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_aiplatform_v1_CodeExecutionResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_CodeExecutionResult_descriptor, + new java.lang.String[] { + "Outcome", "Output", + }); + internal_static_google_cloud_aiplatform_v1_Retrieval_descriptor = + getDescriptor().getMessageTypes().get(6); internal_static_google_cloud_aiplatform_v1_Retrieval_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_Retrieval_descriptor, @@ -209,7 +265,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "VertexAiSearch", "VertexRagStore", "DisableAttribution", "Source", }); internal_static_google_cloud_aiplatform_v1_VertexRagStore_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_aiplatform_v1_VertexRagStore_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_VertexRagStore_descriptor, @@ -227,7 +283,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RagCorpus", "RagFileIds", }); internal_static_google_cloud_aiplatform_v1_VertexAISearch_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_aiplatform_v1_VertexAISearch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_VertexAISearch_descriptor, @@ -235,7 +291,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Datastore", }); internal_static_google_cloud_aiplatform_v1_GoogleSearchRetrieval_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_aiplatform_v1_GoogleSearchRetrieval_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_GoogleSearchRetrieval_descriptor, @@ -243,7 +299,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DynamicRetrievalConfig", }); internal_static_google_cloud_aiplatform_v1_DynamicRetrievalConfig_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_aiplatform_v1_DynamicRetrievalConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_DynamicRetrievalConfig_descriptor, @@ -251,23 +307,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Mode", "DynamicThreshold", }); internal_static_google_cloud_aiplatform_v1_ToolConfig_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_aiplatform_v1_ToolConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ToolConfig_descriptor, new java.lang.String[] { - "FunctionCallingConfig", + "FunctionCallingConfig", "RetrievalConfig", }); internal_static_google_cloud_aiplatform_v1_FunctionCallingConfig_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(12); 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_RetrievalConfig_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_aiplatform_v1_RetrievalConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_RetrievalConfig_descriptor, + new java.lang.String[] { + "LatLng", "LanguageCode", + }); internal_static_google_cloud_aiplatform_v1_RagRetrievalConfig_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_aiplatform_v1_RagRetrievalConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_RagRetrievalConfig_descriptor, @@ -297,6 +361,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(); com.google.cloud.aiplatform.v1.OpenApiProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); + com.google.type.LatLngProto.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/UpdateCachedContentRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateCachedContentRequest.java new file mode 100644 index 000000000000..f09775c173a9 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateCachedContentRequest.java @@ -0,0 +1,1029 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/gen_ai_cache_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for
+ * [GenAiCacheService.UpdateCachedContent][google.cloud.aiplatform.v1.GenAiCacheService.UpdateCachedContent].
+ * Only expire_time or ttl can be updated.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.UpdateCachedContentRequest} + */ +public final class UpdateCachedContentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.UpdateCachedContentRequest) + UpdateCachedContentRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateCachedContentRequest.newBuilder() to construct. + private UpdateCachedContentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateCachedContentRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateCachedContentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.GenAiCacheServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateCachedContentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.GenAiCacheServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateCachedContentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.UpdateCachedContentRequest.class, + com.google.cloud.aiplatform.v1.UpdateCachedContentRequest.Builder.class); + } + + private int bitField0_; + public static final int CACHED_CONTENT_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1.CachedContent cachedContent_; + /** + * + * + *
+   * Required. The cached content to update
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent cached_content = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the cachedContent field is set. + */ + @java.lang.Override + public boolean hasCachedContent() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. The cached content to update
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent cached_content = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The cachedContent. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.CachedContent getCachedContent() { + return cachedContent_ == null + ? com.google.cloud.aiplatform.v1.CachedContent.getDefaultInstance() + : cachedContent_; + } + /** + * + * + *
+   * Required. The cached content to update
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent cached_content = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.CachedContentOrBuilder getCachedContentOrBuilder() { + return cachedContent_ == null + ? com.google.cloud.aiplatform.v1.CachedContent.getDefaultInstance() + : cachedContent_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Required. The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getCachedContent()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCachedContent()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.UpdateCachedContentRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.UpdateCachedContentRequest other = + (com.google.cloud.aiplatform.v1.UpdateCachedContentRequest) obj; + + if (hasCachedContent() != other.hasCachedContent()) return false; + if (hasCachedContent()) { + if (!getCachedContent().equals(other.getCachedContent())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCachedContent()) { + hash = (37 * hash) + CACHED_CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getCachedContent().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.UpdateCachedContentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.UpdateCachedContentRequest parseFrom( + 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.UpdateCachedContentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.UpdateCachedContentRequest parseFrom( + com.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.UpdateCachedContentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.UpdateCachedContentRequest 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.UpdateCachedContentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.UpdateCachedContentRequest parseFrom( + java.io.InputStream 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.UpdateCachedContentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.UpdateCachedContentRequest parseDelimitedFrom( + java.io.InputStream 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.UpdateCachedContentRequest 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.UpdateCachedContentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.UpdateCachedContentRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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
+   * [GenAiCacheService.UpdateCachedContent][google.cloud.aiplatform.v1.GenAiCacheService.UpdateCachedContent].
+   * Only expire_time or ttl can be updated.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.UpdateCachedContentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.UpdateCachedContentRequest) + com.google.cloud.aiplatform.v1.UpdateCachedContentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.GenAiCacheServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateCachedContentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.GenAiCacheServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateCachedContentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.UpdateCachedContentRequest.class, + com.google.cloud.aiplatform.v1.UpdateCachedContentRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.UpdateCachedContentRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCachedContentFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + cachedContent_ = null; + if (cachedContentBuilder_ != null) { + cachedContentBuilder_.dispose(); + cachedContentBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.GenAiCacheServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateCachedContentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.UpdateCachedContentRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.UpdateCachedContentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.UpdateCachedContentRequest build() { + com.google.cloud.aiplatform.v1.UpdateCachedContentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.UpdateCachedContentRequest buildPartial() { + com.google.cloud.aiplatform.v1.UpdateCachedContentRequest result = + new com.google.cloud.aiplatform.v1.UpdateCachedContentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.UpdateCachedContentRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.cachedContent_ = + cachedContentBuilder_ == null ? cachedContent_ : cachedContentBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.UpdateCachedContentRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.UpdateCachedContentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.UpdateCachedContentRequest other) { + if (other == com.google.cloud.aiplatform.v1.UpdateCachedContentRequest.getDefaultInstance()) + return this; + if (other.hasCachedContent()) { + mergeCachedContent(other.getCachedContent()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getCachedContentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.aiplatform.v1.CachedContent cachedContent_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.CachedContent, + com.google.cloud.aiplatform.v1.CachedContent.Builder, + com.google.cloud.aiplatform.v1.CachedContentOrBuilder> + cachedContentBuilder_; + /** + * + * + *
+     * Required. The cached content to update
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent cached_content = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the cachedContent field is set. + */ + public boolean hasCachedContent() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The cached content to update
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent cached_content = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The cachedContent. + */ + public com.google.cloud.aiplatform.v1.CachedContent getCachedContent() { + if (cachedContentBuilder_ == null) { + return cachedContent_ == null + ? com.google.cloud.aiplatform.v1.CachedContent.getDefaultInstance() + : cachedContent_; + } else { + return cachedContentBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The cached content to update
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent cached_content = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCachedContent(com.google.cloud.aiplatform.v1.CachedContent value) { + if (cachedContentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cachedContent_ = value; + } else { + cachedContentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The cached content to update
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent cached_content = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCachedContent( + com.google.cloud.aiplatform.v1.CachedContent.Builder builderForValue) { + if (cachedContentBuilder_ == null) { + cachedContent_ = builderForValue.build(); + } else { + cachedContentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The cached content to update
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent cached_content = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeCachedContent(com.google.cloud.aiplatform.v1.CachedContent value) { + if (cachedContentBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && cachedContent_ != null + && cachedContent_ + != com.google.cloud.aiplatform.v1.CachedContent.getDefaultInstance()) { + getCachedContentBuilder().mergeFrom(value); + } else { + cachedContent_ = value; + } + } else { + cachedContentBuilder_.mergeFrom(value); + } + if (cachedContent_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. The cached content to update
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent cached_content = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCachedContent() { + bitField0_ = (bitField0_ & ~0x00000001); + cachedContent_ = null; + if (cachedContentBuilder_ != null) { + cachedContentBuilder_.dispose(); + cachedContentBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The cached content to update
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent cached_content = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.CachedContent.Builder getCachedContentBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCachedContentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The cached content to update
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent cached_content = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.CachedContentOrBuilder getCachedContentOrBuilder() { + if (cachedContentBuilder_ != null) { + return cachedContentBuilder_.getMessageOrBuilder(); + } else { + return cachedContent_ == null + ? com.google.cloud.aiplatform.v1.CachedContent.getDefaultInstance() + : cachedContent_; + } + } + /** + * + * + *
+     * Required. The cached content to update
+     * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent cached_content = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.CachedContent, + com.google.cloud.aiplatform.v1.CachedContent.Builder, + com.google.cloud.aiplatform.v1.CachedContentOrBuilder> + getCachedContentFieldBuilder() { + if (cachedContentBuilder_ == null) { + cachedContentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.CachedContent, + com.google.cloud.aiplatform.v1.CachedContent.Builder, + com.google.cloud.aiplatform.v1.CachedContentOrBuilder>( + getCachedContent(), getParentForChildren(), isClean()); + cachedContent_ = null; + } + return cachedContentBuilder_; + } + + 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_; + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @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(); + } + } + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.UpdateCachedContentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.UpdateCachedContentRequest) + private static final com.google.cloud.aiplatform.v1.UpdateCachedContentRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.UpdateCachedContentRequest(); + } + + public static com.google.cloud.aiplatform.v1.UpdateCachedContentRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCachedContentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.UpdateCachedContentRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateCachedContentRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateCachedContentRequestOrBuilder.java new file mode 100644 index 000000000000..bfe7c350aafc --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateCachedContentRequestOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/gen_ai_cache_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface UpdateCachedContentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.UpdateCachedContentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The cached content to update
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent cached_content = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the cachedContent field is set. + */ + boolean hasCachedContent(); + /** + * + * + *
+   * Required. The cached content to update
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent cached_content = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The cachedContent. + */ + com.google.cloud.aiplatform.v1.CachedContent getCachedContent(); + /** + * + * + *
+   * Required. The cached content to update
+   * 
+ * + * + * .google.cloud.aiplatform.v1.CachedContent cached_content = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1.CachedContentOrBuilder getCachedContentOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateReasoningEngineOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateReasoningEngineOperationMetadata.java new file mode 100644 index 000000000000..1405f695cceb --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateReasoningEngineOperationMetadata.java @@ -0,0 +1,747 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/reasoning_engine_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Details of
+ * [ReasoningEngineService.UpdateReasoningEngine][google.cloud.aiplatform.v1.ReasoningEngineService.UpdateReasoningEngine]
+ * operation.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.UpdateReasoningEngineOperationMetadata} + */ +public final class UpdateReasoningEngineOperationMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.UpdateReasoningEngineOperationMetadata) + UpdateReasoningEngineOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateReasoningEngineOperationMetadata.newBuilder() to construct. + private UpdateReasoningEngineOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateReasoningEngineOperationMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateReasoningEngineOperationMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateReasoningEngineOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateReasoningEngineOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.UpdateReasoningEngineOperationMetadata.class, + com.google.cloud.aiplatform.v1.UpdateReasoningEngineOperationMetadata.Builder.class); + } + + private int bitField0_; + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + @java.lang.Override + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadata() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getGenericMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGenericMetadata()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.UpdateReasoningEngineOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.UpdateReasoningEngineOperationMetadata other = + (com.google.cloud.aiplatform.v1.UpdateReasoningEngineOperationMetadata) 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.UpdateReasoningEngineOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.UpdateReasoningEngineOperationMetadata parseFrom( + 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.UpdateReasoningEngineOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.UpdateReasoningEngineOperationMetadata parseFrom( + com.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.UpdateReasoningEngineOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.UpdateReasoningEngineOperationMetadata 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.UpdateReasoningEngineOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.UpdateReasoningEngineOperationMetadata parseFrom( + java.io.InputStream 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.UpdateReasoningEngineOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.UpdateReasoningEngineOperationMetadata + parseDelimitedFrom( + java.io.InputStream 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.UpdateReasoningEngineOperationMetadata 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.UpdateReasoningEngineOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.UpdateReasoningEngineOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 of
+   * [ReasoningEngineService.UpdateReasoningEngine][google.cloud.aiplatform.v1.ReasoningEngineService.UpdateReasoningEngine]
+   * operation.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.UpdateReasoningEngineOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.UpdateReasoningEngineOperationMetadata) + com.google.cloud.aiplatform.v1.UpdateReasoningEngineOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateReasoningEngineOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateReasoningEngineOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.UpdateReasoningEngineOperationMetadata.class, + com.google.cloud.aiplatform.v1.UpdateReasoningEngineOperationMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1.UpdateReasoningEngineOperationMetadata.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.ReasoningEngineServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateReasoningEngineOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.UpdateReasoningEngineOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.UpdateReasoningEngineOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.UpdateReasoningEngineOperationMetadata build() { + com.google.cloud.aiplatform.v1.UpdateReasoningEngineOperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.UpdateReasoningEngineOperationMetadata buildPartial() { + com.google.cloud.aiplatform.v1.UpdateReasoningEngineOperationMetadata result = + new com.google.cloud.aiplatform.v1.UpdateReasoningEngineOperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.UpdateReasoningEngineOperationMetadata 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.UpdateReasoningEngineOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1.UpdateReasoningEngineOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.UpdateReasoningEngineOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1.UpdateReasoningEngineOperationMetadata + .getDefaultInstance()) return this; + if (other.hasGenericMetadata()) { + mergeGenericMetadata(other.getGenericMetadata()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder> + genericMetadataBuilder_; + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + public com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadata() { + if (genericMetadataBuilder_ == null) { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } else { + return genericMetadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + genericMetadata_ = value; + } else { + genericMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder builderForValue) { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = builderForValue.build(); + } else { + genericMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder mergeGenericMetadata( + com.google.cloud.aiplatform.v1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); + } else { + genericMetadata_ = value; + } + } else { + genericMetadataBuilder_.mergeFrom(value); + } + if (genericMetadata_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder clearGenericMetadata() { + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); + genericMetadataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getGenericMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + if (genericMetadataBuilder_ != null) { + return genericMetadataBuilder_.getMessageOrBuilder(); + } else { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + } + /** + * + * + *
+     * The common part of the operation metadata.
+     * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder> + getGenericMetadataFieldBuilder() { + if (genericMetadataBuilder_ == null) { + genericMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder>( + getGenericMetadata(), getParentForChildren(), isClean()); + genericMetadata_ = null; + } + return genericMetadataBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.UpdateReasoningEngineOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.UpdateReasoningEngineOperationMetadata) + private static final com.google.cloud.aiplatform.v1.UpdateReasoningEngineOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.UpdateReasoningEngineOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1.UpdateReasoningEngineOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateReasoningEngineOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.UpdateReasoningEngineOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateReasoningEngineOperationMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateReasoningEngineOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..5f103b479a41 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateReasoningEngineOperationMetadataOrBuilder.java @@ -0,0 +1,61 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/reasoning_engine_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface UpdateReasoningEngineOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.UpdateReasoningEngineOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadata(); + /** + * + * + *
+   * The common part of the operation metadata.
+   * 
+ * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateReasoningEngineRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateReasoningEngineRequest.java new file mode 100644 index 000000000000..1dc5cc433465 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateReasoningEngineRequest.java @@ -0,0 +1,1027 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/reasoning_engine_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for
+ * [ReasoningEngineService.UpdateReasoningEngine][google.cloud.aiplatform.v1.ReasoningEngineService.UpdateReasoningEngine].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.UpdateReasoningEngineRequest} + */ +public final class UpdateReasoningEngineRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.UpdateReasoningEngineRequest) + UpdateReasoningEngineRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateReasoningEngineRequest.newBuilder() to construct. + private UpdateReasoningEngineRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateReasoningEngineRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateReasoningEngineRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateReasoningEngineRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateReasoningEngineRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest.class, + com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest.Builder.class); + } + + private int bitField0_; + public static final int REASONING_ENGINE_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1.ReasoningEngine reasoningEngine_; + /** + * + * + *
+   * Required. The ReasoningEngine which replaces the resource on the server.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the reasoningEngine field is set. + */ + @java.lang.Override + public boolean hasReasoningEngine() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. The ReasoningEngine which replaces the resource on the server.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The reasoningEngine. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReasoningEngine getReasoningEngine() { + return reasoningEngine_ == null + ? com.google.cloud.aiplatform.v1.ReasoningEngine.getDefaultInstance() + : reasoningEngine_; + } + /** + * + * + *
+   * Required. The ReasoningEngine which replaces the resource on the server.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReasoningEngineOrBuilder getReasoningEngineOrBuilder() { + return reasoningEngine_ == null + ? com.google.cloud.aiplatform.v1.ReasoningEngine.getDefaultInstance() + : reasoningEngine_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Optional. Mask specifying which fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Optional. Mask specifying which fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.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. Mask specifying which fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getReasoningEngine()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getReasoningEngine()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest other = + (com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest) obj; + + if (hasReasoningEngine() != other.hasReasoningEngine()) return false; + if (hasReasoningEngine()) { + if (!getReasoningEngine().equals(other.getReasoningEngine())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasReasoningEngine()) { + hash = (37 * hash) + REASONING_ENGINE_FIELD_NUMBER; + hash = (53 * hash) + getReasoningEngine().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest parseFrom( + 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.UpdateReasoningEngineRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest parseFrom( + com.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.UpdateReasoningEngineRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest 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.UpdateReasoningEngineRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest parseFrom( + java.io.InputStream 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.UpdateReasoningEngineRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest parseDelimitedFrom( + java.io.InputStream 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.UpdateReasoningEngineRequest 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.UpdateReasoningEngineRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.UpdateReasoningEngineRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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
+   * [ReasoningEngineService.UpdateReasoningEngine][google.cloud.aiplatform.v1.ReasoningEngineService.UpdateReasoningEngine].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.UpdateReasoningEngineRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.UpdateReasoningEngineRequest) + com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateReasoningEngineRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateReasoningEngineRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest.class, + com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getReasoningEngineFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + reasoningEngine_ = null; + if (reasoningEngineBuilder_ != null) { + reasoningEngineBuilder_.dispose(); + reasoningEngineBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ReasoningEngineServiceProto + .internal_static_google_cloud_aiplatform_v1_UpdateReasoningEngineRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest build() { + com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest buildPartial() { + com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest result = + new com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.reasoningEngine_ = + reasoningEngineBuilder_ == null ? reasoningEngine_ : reasoningEngineBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest other) { + if (other == com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest.getDefaultInstance()) + return this; + if (other.hasReasoningEngine()) { + mergeReasoningEngine(other.getReasoningEngine()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getReasoningEngineFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.aiplatform.v1.ReasoningEngine reasoningEngine_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ReasoningEngine, + com.google.cloud.aiplatform.v1.ReasoningEngine.Builder, + com.google.cloud.aiplatform.v1.ReasoningEngineOrBuilder> + reasoningEngineBuilder_; + /** + * + * + *
+     * Required. The ReasoningEngine which replaces the resource on the server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the reasoningEngine field is set. + */ + public boolean hasReasoningEngine() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The ReasoningEngine which replaces the resource on the server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The reasoningEngine. + */ + public com.google.cloud.aiplatform.v1.ReasoningEngine getReasoningEngine() { + if (reasoningEngineBuilder_ == null) { + return reasoningEngine_ == null + ? com.google.cloud.aiplatform.v1.ReasoningEngine.getDefaultInstance() + : reasoningEngine_; + } else { + return reasoningEngineBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The ReasoningEngine which replaces the resource on the server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setReasoningEngine(com.google.cloud.aiplatform.v1.ReasoningEngine value) { + if (reasoningEngineBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reasoningEngine_ = value; + } else { + reasoningEngineBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ReasoningEngine which replaces the resource on the server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setReasoningEngine( + com.google.cloud.aiplatform.v1.ReasoningEngine.Builder builderForValue) { + if (reasoningEngineBuilder_ == null) { + reasoningEngine_ = builderForValue.build(); + } else { + reasoningEngineBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ReasoningEngine which replaces the resource on the server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeReasoningEngine(com.google.cloud.aiplatform.v1.ReasoningEngine value) { + if (reasoningEngineBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && reasoningEngine_ != null + && reasoningEngine_ + != com.google.cloud.aiplatform.v1.ReasoningEngine.getDefaultInstance()) { + getReasoningEngineBuilder().mergeFrom(value); + } else { + reasoningEngine_ = value; + } + } else { + reasoningEngineBuilder_.mergeFrom(value); + } + if (reasoningEngine_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. The ReasoningEngine which replaces the resource on the server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearReasoningEngine() { + bitField0_ = (bitField0_ & ~0x00000001); + reasoningEngine_ = null; + if (reasoningEngineBuilder_ != null) { + reasoningEngineBuilder_.dispose(); + reasoningEngineBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ReasoningEngine which replaces the resource on the server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.ReasoningEngine.Builder getReasoningEngineBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getReasoningEngineFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The ReasoningEngine which replaces the resource on the server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.ReasoningEngineOrBuilder getReasoningEngineOrBuilder() { + if (reasoningEngineBuilder_ != null) { + return reasoningEngineBuilder_.getMessageOrBuilder(); + } else { + return reasoningEngine_ == null + ? com.google.cloud.aiplatform.v1.ReasoningEngine.getDefaultInstance() + : reasoningEngine_; + } + } + /** + * + * + *
+     * Required. The ReasoningEngine which replaces the resource on the server.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ReasoningEngine, + com.google.cloud.aiplatform.v1.ReasoningEngine.Builder, + com.google.cloud.aiplatform.v1.ReasoningEngineOrBuilder> + getReasoningEngineFieldBuilder() { + if (reasoningEngineBuilder_ == null) { + reasoningEngineBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ReasoningEngine, + com.google.cloud.aiplatform.v1.ReasoningEngine.Builder, + com.google.cloud.aiplatform.v1.ReasoningEngineOrBuilder>( + getReasoningEngine(), getParentForChildren(), isClean()); + reasoningEngine_ = null; + } + return reasoningEngineBuilder_; + } + + 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. Mask specifying which fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Optional. Mask specifying which fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.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. Mask specifying which fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Mask specifying which fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Mask specifying which fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Mask specifying which fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Mask specifying which fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Mask specifying which fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.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. Mask specifying which fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @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.UpdateReasoningEngineRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.UpdateReasoningEngineRequest) + private static final com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest(); + } + + public static com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateReasoningEngineRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.UpdateReasoningEngineRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateReasoningEngineRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateReasoningEngineRequestOrBuilder.java new file mode 100644 index 000000000000..cc7299b3bf2e --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UpdateReasoningEngineRequestOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/reasoning_engine_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1; + +public interface UpdateReasoningEngineRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.UpdateReasoningEngineRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The ReasoningEngine which replaces the resource on the server.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the reasoningEngine field is set. + */ + boolean hasReasoningEngine(); + /** + * + * + *
+   * Required. The ReasoningEngine which replaces the resource on the server.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The reasoningEngine. + */ + com.google.cloud.aiplatform.v1.ReasoningEngine getReasoningEngine(); + /** + * + * + *
+   * Required. The ReasoningEngine which replaces the resource on the server.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngine reasoning_engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1.ReasoningEngineOrBuilder getReasoningEngineOrBuilder(); + + /** + * + * + *
+   * Optional. Mask specifying which fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Optional. Mask specifying which fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Optional. Mask specifying which fields to update.
+   * 
+ * + * .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-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 index afae66289472..a143b4390dc4 100644 --- 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 @@ -1200,7 +1200,7 @@ public com.google.cloud.aiplatform.v1.VertexRagStore.RagResource getRagResources * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=173 + * google/cloud/aiplatform/v1/tool.proto;l=237 * @return Whether the similarityTopK field is set. */ @java.lang.Override @@ -1220,7 +1220,7 @@ public boolean hasSimilarityTopK() { * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=173 + * google/cloud/aiplatform/v1/tool.proto;l=237 * @return The similarityTopK. */ @java.lang.Override @@ -1244,7 +1244,7 @@ public int getSimilarityTopK() { * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is deprecated. - * See google/cloud/aiplatform/v1/tool.proto;l=178 + * See google/cloud/aiplatform/v1/tool.proto;l=242 * @return Whether the vectorDistanceThreshold field is set. */ @java.lang.Override @@ -1265,7 +1265,7 @@ public boolean hasVectorDistanceThreshold() { * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is deprecated. - * See google/cloud/aiplatform/v1/tool.proto;l=178 + * See google/cloud/aiplatform/v1/tool.proto;l=242 * @return The vectorDistanceThreshold. */ @java.lang.Override @@ -2298,7 +2298,7 @@ public com.google.cloud.aiplatform.v1.VertexRagStore.RagResource.Builder addRagR * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=173 + * google/cloud/aiplatform/v1/tool.proto;l=237 * @return Whether the similarityTopK field is set. */ @java.lang.Override @@ -2318,7 +2318,7 @@ public boolean hasSimilarityTopK() { * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=173 + * google/cloud/aiplatform/v1/tool.proto;l=237 * @return The similarityTopK. */ @java.lang.Override @@ -2338,7 +2338,7 @@ public int getSimilarityTopK() { * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=173 + * google/cloud/aiplatform/v1/tool.proto;l=237 * @param value The similarityTopK to set. * @return This builder for chaining. */ @@ -2362,7 +2362,7 @@ public Builder setSimilarityTopK(int value) { * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=173 + * google/cloud/aiplatform/v1/tool.proto;l=237 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2387,7 +2387,7 @@ public Builder clearSimilarityTopK() { * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is - * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=178 + * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=242 * @return Whether the vectorDistanceThreshold field is set. */ @java.lang.Override @@ -2408,7 +2408,7 @@ public boolean hasVectorDistanceThreshold() { * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is - * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=178 + * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=242 * @return The vectorDistanceThreshold. */ @java.lang.Override @@ -2429,7 +2429,7 @@ public double getVectorDistanceThreshold() { * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is - * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=178 + * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=242 * @param value The vectorDistanceThreshold to set. * @return This builder for chaining. */ @@ -2454,7 +2454,7 @@ public Builder setVectorDistanceThreshold(double value) { * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is - * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=178 + * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=242 * @return This builder for chaining. */ @java.lang.Deprecated 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 index c647f3a8ad34..0ffd059cb155 100644 --- 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 @@ -114,7 +114,7 @@ com.google.cloud.aiplatform.v1.VertexRagStore.RagResourceOrBuilder getRagResourc * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=173 + * google/cloud/aiplatform/v1/tool.proto;l=237 * @return Whether the similarityTopK field is set. */ @java.lang.Deprecated @@ -131,7 +131,7 @@ com.google.cloud.aiplatform.v1.VertexRagStore.RagResourceOrBuilder getRagResourc * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=173 + * google/cloud/aiplatform/v1/tool.proto;l=237 * @return The similarityTopK. */ @java.lang.Deprecated @@ -150,7 +150,7 @@ com.google.cloud.aiplatform.v1.VertexRagStore.RagResourceOrBuilder getRagResourc * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is deprecated. - * See google/cloud/aiplatform/v1/tool.proto;l=178 + * See google/cloud/aiplatform/v1/tool.proto;l=242 * @return Whether the vectorDistanceThreshold field is set. */ @java.lang.Deprecated @@ -168,7 +168,7 @@ com.google.cloud.aiplatform.v1.VertexRagStore.RagResourceOrBuilder getRagResourc * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is deprecated. - * See google/cloud/aiplatform/v1/tool.proto;l=178 + * See google/cloud/aiplatform/v1/tool.proto;l=242 * @return The vectorDistanceThreshold. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/cached_content.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/cached_content.proto new file mode 100644 index 000000000000..4647d21475ed --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/cached_content.proto @@ -0,0 +1,136 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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/content.proto"; +import "google/cloud/aiplatform/v1/tool.proto"; +import "google/protobuf/duration.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 = "CachedContentProto"; +option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; + +// A resource used in LLM queries for users to explicitly specify what to cache +// and how to cache. +message CachedContent { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/CachedContent" + pattern: "projects/{project}/locations/{location}/cachedContents/{cached_content}" + plural: "cachedContents" + singular: "cachedContent" + }; + + // Metadata on the usage of the cached content. + message UsageMetadata { + // Total number of tokens that the cached content consumes. + int32 total_token_count = 1; + + // Number of text characters. + int32 text_count = 2; + + // Number of images. + int32 image_count = 3; + + // Duration of video in seconds. + int32 video_duration_seconds = 4; + + // Duration of audio in seconds. + int32 audio_duration_seconds = 5; + } + + // Expiration time of the cached content. + oneof expiration { + // Timestamp of when this resource is considered expired. + // This is *always* provided on output, regardless of what was sent + // on input. + google.protobuf.Timestamp expire_time = 9; + + // Input only. The TTL for this resource. The expiration time is computed: + // now + TTL. + google.protobuf.Duration ttl = 10 + [(google.api.field_behavior) = INPUT_ONLY]; + } + + // Immutable. Identifier. The server-generated resource name of the cached + // content Format: + // projects/{project}/locations/{location}/cachedContents/{cached_content} + string name = 1 [ + (google.api.field_behavior) = IDENTIFIER, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Optional. Immutable. The user-generated meaningful display name of the + // cached content. + string display_name = 11 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Immutable. The name of the publisher model to use for cached content. + // Format: + // projects/{project}/locations/{location}/publishers/{publisher}/models/{model} + string model = 2 [(google.api.field_behavior) = IMMUTABLE]; + + // Optional. Input only. Immutable. Developer set system instruction. + // Currently, text only + Content system_instruction = 3 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = INPUT_ONLY + ]; + + // Optional. Input only. Immutable. The content to cache + repeated Content contents = 4 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = INPUT_ONLY + ]; + + // Optional. Input only. Immutable. A list of `Tools` the model may use to + // generate the next response + repeated Tool tools = 5 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = INPUT_ONLY + ]; + + // Optional. Input only. Immutable. Tool config. This config is shared for all + // tools + ToolConfig tool_config = 6 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = INPUT_ONLY + ]; + + // Output only. Creatation time of the cache entry. + google.protobuf.Timestamp create_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the cache entry was last updated in UTC time. + google.protobuf.Timestamp update_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Metadata on the usage of the cached content. + UsageMetadata usage_metadata = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto index f7f4273b06af..14ea1b7dd7ce 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto @@ -51,6 +51,27 @@ enum HarmCategory { HARM_CATEGORY_CIVIC_INTEGRITY = 5; } +// Content Part modality +enum Modality { + // Unspecified modality. + MODALITY_UNSPECIFIED = 0; + + // Plain text. + TEXT = 1; + + // Image. + IMAGE = 2; + + // Video. + VIDEO = 3; + + // Audio. + AUDIO = 4; + + // Document, e.g. PDF. + DOCUMENT = 5; +} + // The base structured datatype containing multi-part content of a message. // // A `Content` includes a `role` field designating the producer of the `Content` @@ -97,6 +118,13 @@ message Part { // the model. FunctionResponse function_response = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Code generated by the model that is meant to be executed. + ExecutableCode executable_code = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Result of executing the [ExecutableCode]. + CodeExecutionResult code_execution_result = 9 + [(google.api.field_behavior) = OPTIONAL]; } oneof metadata { @@ -592,3 +620,12 @@ message RetrievalMetadata { float google_search_dynamic_retrieval_score = 2 [(google.api.field_behavior) = OPTIONAL]; } + +// Represents token counting info for a single modality. +message ModalityTokenCount { + // The modality associated with this token count. + Modality modality = 1; + + // Number of tokens. + int32 token_count = 2; +} 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 b87c962831a5..88d264e85e5e 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 @@ -321,6 +321,10 @@ message DeployedModel { // System labels to apply to Model Garden deployments. // System labels are managed by Google for internal use only. map system_labels = 28; + + // Optional. Spec for configuring speculative decoding. + SpeculativeDecodingSpec speculative_decoding_spec = 30 + [(google.api.field_behavior) = OPTIONAL]; } // PrivateEndpoints proto is used to provide paths for users to send @@ -361,14 +365,52 @@ message PredictRequestResponseLoggingConfig { BigQueryDestination bigquery_destination = 3; } +// 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; } -// 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 Speculative Decoding. +message SpeculativeDecodingSpec { + // Draft model speculation works by using the smaller model to generate + // candidate tokens for speculative decoding. + message DraftModelSpeculation { + // Required. The resource name of the draft model. + string draft_model = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Model" + } + ]; + } + + // N-Gram speculation works by trying to find matching tokens in the + // previous prompt sequence and use those as speculation for generating + // new tokens. + message NgramSpeculation { + // The number of last N input tokens used as ngram to search/match + // against the previous prompt sequence. + // This is equal to the N in N-Gram. + // The default value is 3 if not specified. + int32 ngram_size = 1; + } + + // The type of speculation method to use. + oneof speculation { + // draft model speculation. + DraftModelSpeculation draft_model_speculation = 2; + + // N-Gram speculation. + NgramSpeculation ngram_speculation = 3; + } + + // The number of speculative tokens to generate at each step. + int32 speculative_token_count = 1; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_online_store_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_online_store_service.proto index 64a4de7a1030..398f609df376 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_online_store_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_online_store_service.proto @@ -178,13 +178,13 @@ message NearestNeighborQuery { // Numeric filter is used to search a subset of the entities by using boolean // rules on numeric columns. // For example: - // Database Point 0: {name: “a” value_int: 42} {name: “b” value_float: 1.0} - // Database Point 1: {name: “a” value_int: 10} {name: “b” value_float: 2.0} - // Database Point 2: {name: “a” value_int: -1} {name: “b” value_float: 3.0} - // Query: {name: “a” value_int: 12 operator: LESS} // Matches Point 1, 2 - // {name: “b” value_float: 2.0 operator: EQUAL} // Matches Point 1 + // Database Point 0: {name: "a" value_int: 42} {name: "b" value_float: 1.0} + // Database Point 1: {name: "a" value_int: 10} {name: "b" value_float: 2.0} + // Database Point 2: {name: "a" value_int: -1} {name: "b" value_float: 3.0} + // Query: {name: "a" value_int: 12 operator: LESS} // Matches Point 1, 2 + // {name: "b" value_float: 2.0 operator: EQUAL} // Matches Point 1 message NumericFilter { - // Datapoints for which Operator is true relative to the query’s Value + // Datapoints for which Operator is true relative to the query's Value // field will be allowlisted. enum Operator { // Unspecified operator. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_view.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_view.proto index 58091dbbb4a4..6742c2180f4a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_view.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_view.proto @@ -18,6 +18,7 @@ package google.cloud.aiplatform.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/machine_resources.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; @@ -180,6 +181,33 @@ message FeatureView { int64 rag_corpus_id = 2 [(google.api.field_behavior) = OPTIONAL]; } + // Configuration for FeatureViews created in Optimized FeatureOnlineStore. + message OptimizedConfig { + // Optional. A description of resources that the FeatureView uses, which to + // large degree are decided by Vertex AI, and optionally allows only a + // modest additional configuration. If min_replica_count is not set, the + // default value is 2. If max_replica_count is not set, the default value + // is 6. The max allowed replica count is 1000. + AutomaticResources automatic_resources = 7 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Service agent type used during data sync. + enum ServiceAgentType { + // By default, the project-level Vertex AI Service Agent is enabled. + SERVICE_AGENT_TYPE_UNSPECIFIED = 0; + + // Indicates the project-level Vertex AI Service Agent + // (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) + // will be used during sync jobs. + SERVICE_AGENT_TYPE_PROJECT = 1; + + // Enable a FeatureView 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 sync. + SERVICE_AGENT_TYPE_FEATURE_VIEW = 2; + } + oneof source { // Optional. Configures how data is supposed to be extracted from a BigQuery // source to be loaded onto the FeatureOnlineStore. @@ -236,6 +264,25 @@ message FeatureView { // performed during online serving. IndexConfig index_config = 15 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Configuration for FeatureView created under Optimized + // FeatureOnlineStore. + OptimizedConfig optimized_config = 16 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Service agent type used during data sync. By default, the Vertex + // AI Service Agent is used. When using an IAM Policy to isolate this + // FeatureView within a project, a separate service account should be + // provisioned by setting this field to `SERVICE_AGENT_TYPE_FEATURE_VIEW`. + // This will generate a separate service account to access the BigQuery source + // table. + ServiceAgentType service_agent_type = 14 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. A Service Account unique to this FeatureView. The role + // bigquery.dataViewer should be granted to this service account to allow + // Vertex AI Feature Store to sync data to the online store. + string service_account_email = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Reserved for future use. bool satisfies_pzs = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/gen_ai_cache_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/gen_ai_cache_service.proto new file mode 100644 index 000000000000..36b46c006be8 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/gen_ai_cache_service.proto @@ -0,0 +1,170 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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/cached_content.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.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 = "GenAiCacheServiceProto"; +option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; + +// Service for managing Vertex AI's CachedContent resource. +service GenAiCacheService { + option (google.api.default_host) = "aiplatform.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Creates cached content, this call will initialize the cached content in the + // data storage, and users need to pay for the cache data storage. + rpc CreateCachedContent(CreateCachedContentRequest) returns (CachedContent) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/cachedContents" + body: "cached_content" + }; + option (google.api.method_signature) = "parent,cached_content"; + } + + // Gets cached content configurations + rpc GetCachedContent(GetCachedContentRequest) returns (CachedContent) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/cachedContents/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates cached content configurations + rpc UpdateCachedContent(UpdateCachedContentRequest) returns (CachedContent) { + option (google.api.http) = { + patch: "/v1/{cached_content.name=projects/*/locations/*/cachedContents/*}" + body: "cached_content" + }; + option (google.api.method_signature) = "cached_content,update_mask"; + } + + // Deletes cached content + rpc DeleteCachedContent(DeleteCachedContentRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/cachedContents/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists cached contents in a project + rpc ListCachedContents(ListCachedContentsRequest) + returns (ListCachedContentsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/cachedContents" + }; + option (google.api.method_signature) = "parent"; + } +} + +// Request message for +// [GenAiCacheService.CreateCachedContent][google.cloud.aiplatform.v1.GenAiCacheService.CreateCachedContent]. +message CreateCachedContentRequest { + // Required. The parent resource where the cached content will be created + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "aiplatform.googleapis.com/CachedContent" + } + ]; + + // Required. The cached content to create + CachedContent cached_content = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for +// [GenAiCacheService.GetCachedContent][google.cloud.aiplatform.v1.GenAiCacheService.GetCachedContent]. +message GetCachedContentRequest { + // Required. The resource name referring to the cached content + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/CachedContent" + } + ]; +} + +// Request message for +// [GenAiCacheService.UpdateCachedContent][google.cloud.aiplatform.v1.GenAiCacheService.UpdateCachedContent]. +// Only expire_time or ttl can be updated. +message UpdateCachedContentRequest { + // Required. The cached content to update + CachedContent cached_content = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of fields to update. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for +// [GenAiCacheService.DeleteCachedContent][google.cloud.aiplatform.v1.GenAiCacheService.DeleteCachedContent]. +message DeleteCachedContentRequest { + // Required. The resource name referring to the cached content + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/CachedContent" + } + ]; +} + +// Request to list CachedContents. +message ListCachedContentsRequest { + // Required. The parent, which owns this collection of cached contents. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "aiplatform.googleapis.com/CachedContent" + } + ]; + + // Optional. The maximum number of cached contents to return. The service may + // return fewer than this value. If unspecified, some default (under maximum) + // number of items will be returned. The maximum value is 1000; values above + // 1000 will be coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListCachedContents` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListCachedContents` must + // match the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response with a list of CachedContents. +message ListCachedContentsResponse { + // List of cached contents. + repeated CachedContent cached_contents = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model.proto index 88d19db22ea4..71a1f2e408d0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model.proto @@ -209,6 +209,9 @@ message Model { // The description of this version. string version_description = 30; + // The default checkpoint id of a model version. + string default_checkpoint_id = 53; + // The schemata that describe formats of the Model's predictions and // explanations as given and returned via // [PredictionService.Predict][google.cloud.aiplatform.v1.PredictionService.Predict] diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_service.proto index 98c7d2a454ee..7c54417e04a8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_service.proto @@ -84,6 +84,15 @@ service ModelService { option (google.api.method_signature) = "name"; } + // Lists checkpoints of the specified model version. + rpc ListModelVersionCheckpoints(ListModelVersionCheckpointsRequest) + returns (ListModelVersionCheckpointsResponse) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/models/*}:listCheckpoints" + }; + option (google.api.method_signature) = "name"; + } + // Updates a Model. rpc UpdateModel(UpdateModelRequest) returns (Model) { option (google.api.http) = { @@ -471,6 +480,61 @@ message ListModelVersionsResponse { string next_page_token = 2; } +// Request message for +// [ModelService.ListModelVersionCheckpoints][google.cloud.aiplatform.v1.ModelService.ListModelVersionCheckpoints]. +message ListModelVersionCheckpointsRequest { + // Required. The name of the model version to list checkpoints for. + // `projects/{project}/locations/{location}/models/{model}@{version}` + // Example: `projects/{project}/locations/{location}/models/{model}@2` + // or + // `projects/{project}/locations/{location}/models/{model}@golden` + // If no version ID or alias is specified, the latest version will be + // used. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Model" + } + ]; + + // Optional. The standard list page size. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The standard list page token. + // Typically obtained via + // [next_page_token][google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse.next_page_token] + // of the previous + // [ListModelVersionCheckpoints][google.cloud.aiplatform.v1.ModelService.ListModelVersionCheckpoints] + // call. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// A proto representation of a Spanner-stored ModelVersionCheckpoint. +// The meaning of the fields is equivalent to their in-Spanner counterparts. +message ModelVersionCheckpoint { + // The ID of the checkpoint. + string checkpoint_id = 1; + + // The epoch of the checkpoint. + int64 epoch = 2; + + // The step of the checkpoint. + int64 step = 3; +} + +// Response message for +// [ModelService.ListModelVersionCheckpoints][google.cloud.aiplatform.v1.ModelService.ListModelVersionCheckpoints] +message ListModelVersionCheckpointsResponse { + // List of Model Version checkpoints. + repeated ModelVersionCheckpoint checkpoints = 1; + + // A token to retrieve the next page of results. + // Pass to + // [ListModelVersionCheckpointsRequest.page_token][google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest.page_token] + // to obtain that page. + string next_page_token = 2; +} + // Request message for // [ModelService.UpdateModel][google.cloud.aiplatform.v1.ModelService.UpdateModel]. message UpdateModelRequest { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/notebook_runtime.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/notebook_runtime.proto index 31b5704c194e..8741d13234c0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/notebook_runtime.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/notebook_runtime.proto @@ -67,8 +67,12 @@ message NotebookRuntimeTemplate { // The description of the NotebookRuntimeTemplate. string description = 3; - // Output only. The default template to use if not specified. - bool is_default = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Deprecated: This field has no behavior. Use + // notebook_runtime_type = 'ONE_CLICK' instead. + // + // The default template to use if not specified. + bool is_default = 4 + [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; // Optional. Immutable. The specification of a single machine for the // template. @@ -86,6 +90,15 @@ message NotebookRuntimeTemplate { // Optional. Network spec. NetworkSpec network_spec = 12 [(google.api.field_behavior) = OPTIONAL]; + // Deprecated: This field is ignored and the "Vertex AI Notebook Service + // Account" + // (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is + // used for the runtime workload identity. + // See + // https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account + // for more details. + // For NotebookExecutionJob, use NotebookExecutionJob.service_account instead. + // // The service account that the runtime workload runs as. // You can use any service account within the same project, but you // must have the service account user permission to use the instance. @@ -93,7 +106,7 @@ message NotebookRuntimeTemplate { // If not specified, the [Compute Engine default service // account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) // is used. - string service_account = 13; + string service_account = 13 [deprecated = true]; // Used to perform consistent read-modify-write updates. If not set, a blind // "overwrite" update happens. @@ -228,7 +241,15 @@ message NotebookRuntime { // The description of the NotebookRuntime. string description = 11; - // Output only. The service account that the NotebookRuntime workload runs as. + // Output only. Deprecated: This field is no longer used and the "Vertex AI + // Notebook Service Account" + // (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is + // used for the runtime workload identity. + // See + // https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account + // for more details. + // + // The service account that the NotebookRuntime workload runs as. string service_account = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The runtime (instance) state of the NotebookRuntime. @@ -272,10 +293,30 @@ message NotebookRuntime { NotebookRuntimeType notebook_runtime_type = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The specification of a single machine used by the notebook + // runtime. + MachineSpec machine_spec = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The specification of [persistent + // disk][https://cloud.google.com/compute/docs/disks/persistent-disks] + // attached to the notebook runtime as data disk storage. + PersistentDiskSpec data_persistent_disk_spec = 21 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Network spec of the notebook runtime. + NetworkSpec network_spec = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The idle shutdown configuration of the notebook runtime. NotebookIdleShutdownConfig idle_shutdown_config = 23 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. EUC configuration of the notebook runtime. + NotebookEucConfig euc_config = 24 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Runtime Shielded VM spec. + ShieldedVmConfig shielded_vm_config = 32 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Optional. The Compute Engine tags to add to runtime (see [Tagging // instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)). repeated string network_tags = 25 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/prediction_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/prediction_service.proto index 4c961fd10dc3..4282a30834bb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/prediction_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/prediction_service.proto @@ -668,6 +668,10 @@ message CountTokensResponse { // The total number of billable characters counted across all instances from // the request. int32 total_billable_characters = 2; + + // Output only. List of modalities that were processed in the request input. + repeated ModalityTokenCount prompt_tokens_details = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Request message for [PredictionService.GenerateContent]. @@ -695,6 +699,18 @@ message GenerateContentRequest { optional Content system_instruction = 8 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The name of the cached content used as context to serve the + // prediction. Note: only used in explicit caching, where users can have + // control over caching (e.g. what content to cache) and enjoy guaranteed cost + // savings. Format: + // `projects/{project}/locations/{location}/cachedContents/{cachedContent}` + string cached_content = 9 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/CachedContent" + } + ]; + // Optional. A list of `Tools` the model may use to generate the next // response. // @@ -772,6 +788,24 @@ message GenerateContentResponse { // Total token count for prompt and response candidates. int32 total_token_count = 3; + + // Output only. Number of tokens in the cached part in the input (the cached + // content). + int32 cached_content_token_count = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of modalities that were processed in the request input. + repeated ModalityTokenCount prompt_tokens_details = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of modalities of the cached content in the request + // input. + repeated ModalityTokenCount cache_tokens_details = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of modalities that were returned in the response. + repeated ModalityTokenCount candidates_tokens_details = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Output only. Generated candidates. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/reasoning_engine.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/reasoning_engine.proto new file mode 100644 index 000000000000..9b7c56f43601 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/reasoning_engine.proto @@ -0,0 +1,93 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// 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/protobuf/struct.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 = "ReasoningEngineProto"; +option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; + +// ReasoningEngine configurations +message ReasoningEngineSpec { + // User provided package spec like pickled object and package requirements. + message PackageSpec { + // Optional. The Cloud Storage URI of the pickled python object. + string pickle_object_gcs_uri = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Cloud Storage URI of the dependency files in tar.gz format. + string dependency_files_gcs_uri = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Cloud Storage URI of the `requirements.txt` file + string requirements_gcs_uri = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11. + // If not specified, default value is 3.10. + string python_version = 4 [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. User provided package spec of the ReasoningEngine. + PackageSpec package_spec = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Declarations for object class methods in OpenAPI specification + // format. + repeated google.protobuf.Struct class_methods = 3 + [(google.api.field_behavior) = OPTIONAL]; +} + +// ReasoningEngine provides a customizable runtime for models to determine +// which actions to take and in which order. +message ReasoningEngine { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/ReasoningEngine" + pattern: "projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}" + plural: "reasoningEngines" + singular: "reasoningEngine" + }; + + // Identifier. The resource name of the ReasoningEngine. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. The display name of the ReasoningEngine. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The description of the ReasoningEngine. + string description = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Configurations of the ReasoningEngine + ReasoningEngineSpec spec = 3 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Timestamp when this ReasoningEngine was created. + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this ReasoningEngine was most recently updated. + google.protobuf.Timestamp update_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Used to perform consistent read-modify-write updates. If not set, + // a blind "overwrite" update happens. + string etag = 6 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/reasoning_engine_execution_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/reasoning_engine_execution_service.proto new file mode 100644 index 000000000000..1ad5b635bbaa --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/reasoning_engine_execution_service.proto @@ -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 +// +// 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/httpbody.proto"; +import "google/api/resource.proto"; +import "google/protobuf/struct.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 = "ReasoningEngineExecutionServiceProto"; +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 executing queries on Reasoning Engine. +service ReasoningEngineExecutionService { + option (google.api.default_host) = "aiplatform.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Queries using a reasoning engine. + rpc QueryReasoningEngine(QueryReasoningEngineRequest) + returns (QueryReasoningEngineResponse) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/reasoningEngines/*}:query" + body: "*" + }; + } + + // Streams queries using a reasoning engine. + rpc StreamQueryReasoningEngine(StreamQueryReasoningEngineRequest) + returns (stream google.api.HttpBody) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/reasoningEngines/*}:streamQuery" + body: "*" + }; + } +} + +// Request message for [ReasoningEngineExecutionService.Query][]. +message QueryReasoningEngineRequest { + // 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 query. + // It is optional and defaults to "query" if unspecified. + string class_method = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for [ReasoningEngineExecutionService.Query][] +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-v1/src/main/proto/google/cloud/aiplatform/v1/reasoning_engine_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/reasoning_engine_service.proto new file mode 100644 index 000000000000..871a71831f05 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/reasoning_engine_service.proto @@ -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 +// +// 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/reasoning_engine.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.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 = "ReasoningEngineServiceProto"; +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 Vertex AI's Reasoning Engines. +service ReasoningEngineService { + option (google.api.default_host) = "aiplatform.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Creates a reasoning engine. + rpc CreateReasoningEngine(CreateReasoningEngineRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/reasoningEngines" + body: "reasoning_engine" + }; + option (google.api.method_signature) = "parent,reasoning_engine"; + option (google.longrunning.operation_info) = { + response_type: "ReasoningEngine" + metadata_type: "CreateReasoningEngineOperationMetadata" + }; + } + + // Gets a reasoning engine. + rpc GetReasoningEngine(GetReasoningEngineRequest) returns (ReasoningEngine) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/reasoningEngines/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists reasoning engines in a location. + rpc ListReasoningEngines(ListReasoningEnginesRequest) + returns (ListReasoningEnginesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/reasoningEngines" + }; + option (google.api.method_signature) = "parent"; + } + + // Updates a reasoning engine. + rpc UpdateReasoningEngine(UpdateReasoningEngineRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{reasoning_engine.name=projects/*/locations/*/reasoningEngines/*}" + body: "reasoning_engine" + }; + option (google.api.method_signature) = "reasoning_engine,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "ReasoningEngine" + metadata_type: "UpdateReasoningEngineOperationMetadata" + }; + } + + // Deletes a reasoning engine. + rpc DeleteReasoningEngine(DeleteReasoningEngineRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/reasoningEngines/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } +} + +// Request message for +// [ReasoningEngineService.CreateReasoningEngine][google.cloud.aiplatform.v1.ReasoningEngineService.CreateReasoningEngine]. +message CreateReasoningEngineRequest { + // Required. The resource name of the Location to create the ReasoningEngine + // 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 ReasoningEngine to create. + ReasoningEngine reasoning_engine = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Details of +// [ReasoningEngineService.CreateReasoningEngine][google.cloud.aiplatform.v1.ReasoningEngineService.CreateReasoningEngine] +// operation. +message CreateReasoningEngineOperationMetadata { + // The common part of the operation metadata. + GenericOperationMetadata generic_metadata = 1; +} + +// Request message for +// [ReasoningEngineService.GetReasoningEngine][google.cloud.aiplatform.v1.ReasoningEngineService.GetReasoningEngine]. +message GetReasoningEngineRequest { + // Required. The name of the ReasoningEngine resource. + // 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" + } + ]; +} + +// Request message for +// [ReasoningEngineService.UpdateReasoningEngine][google.cloud.aiplatform.v1.ReasoningEngineService.UpdateReasoningEngine]. +message UpdateReasoningEngineRequest { + // Required. The ReasoningEngine which replaces the resource on the server. + ReasoningEngine reasoning_engine = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Mask specifying which fields to update. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Details of +// [ReasoningEngineService.UpdateReasoningEngine][google.cloud.aiplatform.v1.ReasoningEngineService.UpdateReasoningEngine] +// operation. +message UpdateReasoningEngineOperationMetadata { + // The common part of the operation metadata. + GenericOperationMetadata generic_metadata = 1; +} + +// Request message for +// [ReasoningEngineService.ListReasoningEngines][google.cloud.aiplatform.v1.ReasoningEngineService.ListReasoningEngines]. +message ListReasoningEnginesRequest { + // Required. The resource name of the Location to list the ReasoningEngines + // from. 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 filter. + // More detail in [AIP-160](https://google.aip.dev/160). + string filter = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The standard list page size. + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The standard list page token. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [ReasoningEngineService.ListReasoningEngines][google.cloud.aiplatform.v1.ReasoningEngineService.ListReasoningEngines] +message ListReasoningEnginesResponse { + // List of ReasoningEngines in the requested page. + repeated ReasoningEngine reasoning_engines = 1; + + // A token to retrieve the next page of results. + // Pass to + // [ListReasoningEnginesRequest.page_token][google.cloud.aiplatform.v1.ListReasoningEnginesRequest.page_token] + // to obtain that page. + string next_page_token = 2; +} + +// Request message for +// [ReasoningEngineService.DeleteReasoningEngine][google.cloud.aiplatform.v1.ReasoningEngineService.DeleteReasoningEngine]. +message DeleteReasoningEngineRequest { + // Required. The name of the ReasoningEngine resource to be deleted. + // 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" + } + ]; +} 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 27af5c222ba3..ffdf83bb57af 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 @@ -20,6 +20,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1/openapi.proto"; import "google/protobuf/struct.proto"; +import "google/type/latlng.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; @@ -37,6 +38,13 @@ option ruby_package = "Google::Cloud::AIPlatform::V1"; // one type of Tool (e.g FunctionDeclaration, Retrieval or // GoogleSearchRetrieval). message Tool { + // Tool that executes code generated by the model, and automatically returns + // the result to the model. + // + // See also [ExecutableCode]and [CodeExecutionResult] which are input and + // output to this tool. + message CodeExecution {} + // 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 @@ -58,6 +66,11 @@ message Tool { // Specialized retrieval tool that is powered by Google search. GoogleSearchRetrieval google_search_retrieval = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. CodeExecution tool type. + // Enables the model to execute code as part of generation. + // This field is only used by the Gemini Developer API services. + CodeExecution code_execution = 4 [(google.api.field_behavior) = OPTIONAL]; } // Structured representation of a function declaration as defined by the @@ -127,6 +140,57 @@ message FunctionResponse { google.protobuf.Struct response = 2 [(google.api.field_behavior) = REQUIRED]; } +// Code generated by the model that is meant to be executed, and the result +// returned to the model. +// +// Generated when using the [FunctionDeclaration] tool and +// [FunctionCallingConfig] mode is set to [Mode.CODE]. +message ExecutableCode { + // Supported programming languages for the generated code. + enum Language { + // Unspecified language. This value should not be used. + LANGUAGE_UNSPECIFIED = 0; + + // Python >= 3.10, with numpy and simpy available. + PYTHON = 1; + } + + // Required. Programming language of the `code`. + Language language = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The code to be executed. + string code = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Result of executing the [ExecutableCode]. +// +// Always follows a `part` containing the [ExecutableCode]. +message CodeExecutionResult { + // Enumeration of possible outcomes of the code execution. + enum Outcome { + // Unspecified status. This value should not be used. + OUTCOME_UNSPECIFIED = 0; + + // Code execution completed successfully. + OUTCOME_OK = 1; + + // Code execution finished but with a failure. `stderr` should contain the + // reason. + OUTCOME_FAILED = 2; + + // Code execution ran for too long, and was cancelled. There may or may not + // be a partial output present. + OUTCOME_DEADLINE_EXCEEDED = 3; + } + + // Required. Outcome of the code execution. + Outcome outcome = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Contains stdout when code execution is successful, stderr or + // other description otherwise. + string output = 2 [(google.api.field_behavior) = OPTIONAL]; +} + // Defines a retrieval tool that model can call to access external knowledge. message Retrieval { // The source of the retrieval. @@ -223,6 +287,9 @@ message ToolConfig { // Optional. Function calling config. FunctionCallingConfig function_calling_config = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Retrieval config. + RetrievalConfig retrieval_config = 2 [(google.api.field_behavior) = OPTIONAL]; } // Function calling config. @@ -257,6 +324,15 @@ message FunctionCallingConfig { [(google.api.field_behavior) = OPTIONAL]; } +// Retrieval config. +message RetrievalConfig { + // The location of the user. + optional google.type.LatLng lat_lng = 1; + + // The language code of the user. + optional string language_code = 2; +} + // Specifies the context retrieval config. message RagRetrievalConfig { // Config for filters. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutoraterConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutoraterConfig.java new file mode 100644 index 000000000000..b3c18842269d --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutoraterConfig.java @@ -0,0 +1,979 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * The configs for autorater. This is applicable to both EvaluateInstances and
+ * EvaluateDataset.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AutoraterConfig} + */ +public final class AutoraterConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.AutoraterConfig) + AutoraterConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use AutoraterConfig.newBuilder() to construct. + private AutoraterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AutoraterConfig() { + autoraterModel_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AutoraterConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AutoraterConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AutoraterConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AutoraterConfig.class, + com.google.cloud.aiplatform.v1beta1.AutoraterConfig.Builder.class); + } + + private int bitField0_; + public static final int SAMPLING_COUNT_FIELD_NUMBER = 1; + private int samplingCount_ = 0; + /** + * + * + *
+   * Optional. Number of samples for each instance in the dataset.
+   * If not specified, the default is 4. Minimum value is 1, maximum value
+   * is 32.
+   * 
+ * + * optional int32 sampling_count = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the samplingCount field is set. + */ + @java.lang.Override + public boolean hasSamplingCount() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. Number of samples for each instance in the dataset.
+   * If not specified, the default is 4. Minimum value is 1, maximum value
+   * is 32.
+   * 
+ * + * optional int32 sampling_count = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The samplingCount. + */ + @java.lang.Override + public int getSamplingCount() { + return samplingCount_; + } + + public static final int FLIP_ENABLED_FIELD_NUMBER = 2; + private boolean flipEnabled_ = false; + /** + * + * + *
+   * Optional. Whether to flip the candidate and baseline responses.
+   * This is only applicable to the pairwise metric. If enabled, also provide
+   * PairwiseMetricSpec.candidate_response_field_name and
+   * PairwiseMetricSpec.baseline_response_field_name. When rendering
+   * PairwiseMetricSpec.metric_prompt_template, the candidate and baseline
+   * fields will be flipped for half of the samples to reduce bias.
+   * 
+ * + * optional bool flip_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the flipEnabled field is set. + */ + @java.lang.Override + public boolean hasFlipEnabled() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Optional. Whether to flip the candidate and baseline responses.
+   * This is only applicable to the pairwise metric. If enabled, also provide
+   * PairwiseMetricSpec.candidate_response_field_name and
+   * PairwiseMetricSpec.baseline_response_field_name. When rendering
+   * PairwiseMetricSpec.metric_prompt_template, the candidate and baseline
+   * fields will be flipped for half of the samples to reduce bias.
+   * 
+ * + * optional bool flip_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The flipEnabled. + */ + @java.lang.Override + public boolean getFlipEnabled() { + return flipEnabled_; + } + + public static final int AUTORATER_MODEL_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object autoraterModel_ = ""; + /** + * + * + *
+   * Optional. The fully qualified name of the publisher model or tuned
+   * autorater endpoint to use.
+   *
+   * Publisher model format:
+   * `projects/{project}/locations/{location}/publishers/*/models/*`
+   *
+   * Tuned model endpoint format:
+   * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+   * 
+ * + * string autorater_model = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The autoraterModel. + */ + @java.lang.Override + public java.lang.String getAutoraterModel() { + java.lang.Object ref = autoraterModel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + autoraterModel_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The fully qualified name of the publisher model or tuned
+   * autorater endpoint to use.
+   *
+   * Publisher model format:
+   * `projects/{project}/locations/{location}/publishers/*/models/*`
+   *
+   * Tuned model endpoint format:
+   * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+   * 
+ * + * string autorater_model = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for autoraterModel. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAutoraterModelBytes() { + java.lang.Object ref = autoraterModel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + autoraterModel_ = 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.writeInt32(1, samplingCount_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(2, flipEnabled_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(autoraterModel_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, autoraterModel_); + } + 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, samplingCount_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, flipEnabled_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(autoraterModel_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, autoraterModel_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.AutoraterConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.AutoraterConfig other = + (com.google.cloud.aiplatform.v1beta1.AutoraterConfig) obj; + + if (hasSamplingCount() != other.hasSamplingCount()) return false; + if (hasSamplingCount()) { + if (getSamplingCount() != other.getSamplingCount()) return false; + } + if (hasFlipEnabled() != other.hasFlipEnabled()) return false; + if (hasFlipEnabled()) { + if (getFlipEnabled() != other.getFlipEnabled()) return false; + } + if (!getAutoraterModel().equals(other.getAutoraterModel())) return false; + if (!getUnknownFields().equals(other.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 (hasSamplingCount()) { + hash = (37 * hash) + SAMPLING_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getSamplingCount(); + } + if (hasFlipEnabled()) { + hash = (37 * hash) + FLIP_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFlipEnabled()); + } + hash = (37 * hash) + AUTORATER_MODEL_FIELD_NUMBER; + hash = (53 * hash) + getAutoraterModel().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.AutoraterConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AutoraterConfig parseFrom( + 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.AutoraterConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AutoraterConfig parseFrom( + com.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.AutoraterConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AutoraterConfig 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.AutoraterConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AutoraterConfig parseFrom( + java.io.InputStream 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.AutoraterConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AutoraterConfig parseDelimitedFrom( + java.io.InputStream 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.AutoraterConfig 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.AutoraterConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.AutoraterConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 configs for autorater. This is applicable to both EvaluateInstances and
+   * EvaluateDataset.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AutoraterConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.AutoraterConfig) + com.google.cloud.aiplatform.v1beta1.AutoraterConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AutoraterConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AutoraterConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AutoraterConfig.class, + com.google.cloud.aiplatform.v1beta1.AutoraterConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.AutoraterConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + samplingCount_ = 0; + flipEnabled_ = false; + autoraterModel_ = ""; + 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_AutoraterConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AutoraterConfig getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.AutoraterConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AutoraterConfig build() { + com.google.cloud.aiplatform.v1beta1.AutoraterConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AutoraterConfig buildPartial() { + com.google.cloud.aiplatform.v1beta1.AutoraterConfig result = + new com.google.cloud.aiplatform.v1beta1.AutoraterConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.AutoraterConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.samplingCount_ = samplingCount_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.flipEnabled_ = flipEnabled_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.autoraterModel_ = autoraterModel_; + } + 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.AutoraterConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.AutoraterConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.AutoraterConfig other) { + if (other == com.google.cloud.aiplatform.v1beta1.AutoraterConfig.getDefaultInstance()) + return this; + if (other.hasSamplingCount()) { + setSamplingCount(other.getSamplingCount()); + } + if (other.hasFlipEnabled()) { + setFlipEnabled(other.getFlipEnabled()); + } + if (!other.getAutoraterModel().isEmpty()) { + autoraterModel_ = other.autoraterModel_; + 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 8: + { + samplingCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + flipEnabled_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + autoraterModel_ = 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 int samplingCount_; + /** + * + * + *
+     * Optional. Number of samples for each instance in the dataset.
+     * If not specified, the default is 4. Minimum value is 1, maximum value
+     * is 32.
+     * 
+ * + * optional int32 sampling_count = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the samplingCount field is set. + */ + @java.lang.Override + public boolean hasSamplingCount() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Optional. Number of samples for each instance in the dataset.
+     * If not specified, the default is 4. Minimum value is 1, maximum value
+     * is 32.
+     * 
+ * + * optional int32 sampling_count = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The samplingCount. + */ + @java.lang.Override + public int getSamplingCount() { + return samplingCount_; + } + /** + * + * + *
+     * Optional. Number of samples for each instance in the dataset.
+     * If not specified, the default is 4. Minimum value is 1, maximum value
+     * is 32.
+     * 
+ * + * optional int32 sampling_count = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The samplingCount to set. + * @return This builder for chaining. + */ + public Builder setSamplingCount(int value) { + + samplingCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Number of samples for each instance in the dataset.
+     * If not specified, the default is 4. Minimum value is 1, maximum value
+     * is 32.
+     * 
+ * + * optional int32 sampling_count = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSamplingCount() { + bitField0_ = (bitField0_ & ~0x00000001); + samplingCount_ = 0; + onChanged(); + return this; + } + + private boolean flipEnabled_; + /** + * + * + *
+     * Optional. Whether to flip the candidate and baseline responses.
+     * This is only applicable to the pairwise metric. If enabled, also provide
+     * PairwiseMetricSpec.candidate_response_field_name and
+     * PairwiseMetricSpec.baseline_response_field_name. When rendering
+     * PairwiseMetricSpec.metric_prompt_template, the candidate and baseline
+     * fields will be flipped for half of the samples to reduce bias.
+     * 
+ * + * optional bool flip_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the flipEnabled field is set. + */ + @java.lang.Override + public boolean hasFlipEnabled() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Optional. Whether to flip the candidate and baseline responses.
+     * This is only applicable to the pairwise metric. If enabled, also provide
+     * PairwiseMetricSpec.candidate_response_field_name and
+     * PairwiseMetricSpec.baseline_response_field_name. When rendering
+     * PairwiseMetricSpec.metric_prompt_template, the candidate and baseline
+     * fields will be flipped for half of the samples to reduce bias.
+     * 
+ * + * optional bool flip_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The flipEnabled. + */ + @java.lang.Override + public boolean getFlipEnabled() { + return flipEnabled_; + } + /** + * + * + *
+     * Optional. Whether to flip the candidate and baseline responses.
+     * This is only applicable to the pairwise metric. If enabled, also provide
+     * PairwiseMetricSpec.candidate_response_field_name and
+     * PairwiseMetricSpec.baseline_response_field_name. When rendering
+     * PairwiseMetricSpec.metric_prompt_template, the candidate and baseline
+     * fields will be flipped for half of the samples to reduce bias.
+     * 
+ * + * optional bool flip_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The flipEnabled to set. + * @return This builder for chaining. + */ + public Builder setFlipEnabled(boolean value) { + + flipEnabled_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Whether to flip the candidate and baseline responses.
+     * This is only applicable to the pairwise metric. If enabled, also provide
+     * PairwiseMetricSpec.candidate_response_field_name and
+     * PairwiseMetricSpec.baseline_response_field_name. When rendering
+     * PairwiseMetricSpec.metric_prompt_template, the candidate and baseline
+     * fields will be flipped for half of the samples to reduce bias.
+     * 
+ * + * optional bool flip_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFlipEnabled() { + bitField0_ = (bitField0_ & ~0x00000002); + flipEnabled_ = false; + onChanged(); + return this; + } + + private java.lang.Object autoraterModel_ = ""; + /** + * + * + *
+     * Optional. The fully qualified name of the publisher model or tuned
+     * autorater endpoint to use.
+     *
+     * Publisher model format:
+     * `projects/{project}/locations/{location}/publishers/*/models/*`
+     *
+     * Tuned model endpoint format:
+     * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+     * 
+ * + * string autorater_model = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The autoraterModel. + */ + public java.lang.String getAutoraterModel() { + java.lang.Object ref = autoraterModel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + autoraterModel_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The fully qualified name of the publisher model or tuned
+     * autorater endpoint to use.
+     *
+     * Publisher model format:
+     * `projects/{project}/locations/{location}/publishers/*/models/*`
+     *
+     * Tuned model endpoint format:
+     * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+     * 
+ * + * string autorater_model = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for autoraterModel. + */ + public com.google.protobuf.ByteString getAutoraterModelBytes() { + java.lang.Object ref = autoraterModel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + autoraterModel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The fully qualified name of the publisher model or tuned
+     * autorater endpoint to use.
+     *
+     * Publisher model format:
+     * `projects/{project}/locations/{location}/publishers/*/models/*`
+     *
+     * Tuned model endpoint format:
+     * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+     * 
+ * + * string autorater_model = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The autoraterModel to set. + * @return This builder for chaining. + */ + public Builder setAutoraterModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + autoraterModel_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The fully qualified name of the publisher model or tuned
+     * autorater endpoint to use.
+     *
+     * Publisher model format:
+     * `projects/{project}/locations/{location}/publishers/*/models/*`
+     *
+     * Tuned model endpoint format:
+     * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+     * 
+ * + * string autorater_model = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAutoraterModel() { + autoraterModel_ = getDefaultInstance().getAutoraterModel(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The fully qualified name of the publisher model or tuned
+     * autorater endpoint to use.
+     *
+     * Publisher model format:
+     * `projects/{project}/locations/{location}/publishers/*/models/*`
+     *
+     * Tuned model endpoint format:
+     * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+     * 
+ * + * string autorater_model = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for autoraterModel to set. + * @return This builder for chaining. + */ + public Builder setAutoraterModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + autoraterModel_ = 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.AutoraterConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.AutoraterConfig) + private static final com.google.cloud.aiplatform.v1beta1.AutoraterConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.AutoraterConfig(); + } + + public static com.google.cloud.aiplatform.v1beta1.AutoraterConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AutoraterConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.AutoraterConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutoraterConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutoraterConfigOrBuilder.java new file mode 100644 index 000000000000..5e50e9690768 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutoraterConfigOrBuilder.java @@ -0,0 +1,129 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface AutoraterConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.AutoraterConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Number of samples for each instance in the dataset.
+   * If not specified, the default is 4. Minimum value is 1, maximum value
+   * is 32.
+   * 
+ * + * optional int32 sampling_count = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the samplingCount field is set. + */ + boolean hasSamplingCount(); + /** + * + * + *
+   * Optional. Number of samples for each instance in the dataset.
+   * If not specified, the default is 4. Minimum value is 1, maximum value
+   * is 32.
+   * 
+ * + * optional int32 sampling_count = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The samplingCount. + */ + int getSamplingCount(); + + /** + * + * + *
+   * Optional. Whether to flip the candidate and baseline responses.
+   * This is only applicable to the pairwise metric. If enabled, also provide
+   * PairwiseMetricSpec.candidate_response_field_name and
+   * PairwiseMetricSpec.baseline_response_field_name. When rendering
+   * PairwiseMetricSpec.metric_prompt_template, the candidate and baseline
+   * fields will be flipped for half of the samples to reduce bias.
+   * 
+ * + * optional bool flip_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the flipEnabled field is set. + */ + boolean hasFlipEnabled(); + /** + * + * + *
+   * Optional. Whether to flip the candidate and baseline responses.
+   * This is only applicable to the pairwise metric. If enabled, also provide
+   * PairwiseMetricSpec.candidate_response_field_name and
+   * PairwiseMetricSpec.baseline_response_field_name. When rendering
+   * PairwiseMetricSpec.metric_prompt_template, the candidate and baseline
+   * fields will be flipped for half of the samples to reduce bias.
+   * 
+ * + * optional bool flip_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The flipEnabled. + */ + boolean getFlipEnabled(); + + /** + * + * + *
+   * Optional. The fully qualified name of the publisher model or tuned
+   * autorater endpoint to use.
+   *
+   * Publisher model format:
+   * `projects/{project}/locations/{location}/publishers/*/models/*`
+   *
+   * Tuned model endpoint format:
+   * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+   * 
+ * + * string autorater_model = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The autoraterModel. + */ + java.lang.String getAutoraterModel(); + /** + * + * + *
+   * Optional. The fully qualified name of the publisher model or tuned
+   * autorater endpoint to use.
+   *
+   * Publisher model format:
+   * `projects/{project}/locations/{location}/publishers/*/models/*`
+   *
+   * Tuned model endpoint format:
+   * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+   * 
+ * + * string autorater_model = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for autoraterModel. + */ + com.google.protobuf.ByteString getAutoraterModelBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CometInput.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CometInput.java new file mode 100644 index 000000000000..cc4c946a5796 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CometInput.java @@ -0,0 +1,1039 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Input for Comet metric.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CometInput} + */ +public final class CometInput extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CometInput) + CometInputOrBuilder { + private static final long serialVersionUID = 0L; + // Use CometInput.newBuilder() to construct. + private CometInput(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CometInput() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CometInput(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CometInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CometInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CometInput.class, + com.google.cloud.aiplatform.v1beta1.CometInput.Builder.class); + } + + private int bitField0_; + public static final int METRIC_SPEC_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.CometSpec metricSpec_; + /** + * + * + *
+   * Required. Spec for comet metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CometSpec 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 comet metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CometSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CometSpec getMetricSpec() { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.CometSpec.getDefaultInstance() + : metricSpec_; + } + /** + * + * + *
+   * Required. Spec for comet metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CometSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CometSpecOrBuilder getMetricSpecOrBuilder() { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.CometSpec.getDefaultInstance() + : metricSpec_; + } + + public static final int INSTANCE_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.CometInstance instance_; + /** + * + * + *
+   * Required. Comet instance.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CometInstance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the instance field is set. + */ + @java.lang.Override + public boolean hasInstance() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Required. Comet instance.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CometInstance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instance. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CometInstance getInstance() { + return instance_ == null + ? com.google.cloud.aiplatform.v1beta1.CometInstance.getDefaultInstance() + : instance_; + } + /** + * + * + *
+   * Required. Comet instance.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CometInstance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CometInstanceOrBuilder getInstanceOrBuilder() { + return instance_ == null + ? com.google.cloud.aiplatform.v1beta1.CometInstance.getDefaultInstance() + : instance_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getInstance()); + } + 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()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInstance()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.CometInput)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CometInput other = + (com.google.cloud.aiplatform.v1beta1.CometInput) obj; + + if (hasMetricSpec() != other.hasMetricSpec()) return false; + if (hasMetricSpec()) { + if (!getMetricSpec().equals(other.getMetricSpec())) return false; + } + if (hasInstance() != other.hasInstance()) return false; + if (hasInstance()) { + if (!getInstance().equals(other.getInstance())) return false; + } + if (!getUnknownFields().equals(other.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 (hasInstance()) { + hash = (37 * hash) + INSTANCE_FIELD_NUMBER; + hash = (53 * hash) + getInstance().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CometInput parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CometInput parseFrom( + 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.CometInput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CometInput parseFrom( + com.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.CometInput parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CometInput 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.CometInput parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CometInput parseFrom( + java.io.InputStream 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.CometInput parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CometInput parseDelimitedFrom( + java.io.InputStream 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.CometInput 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.CometInput parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.CometInput prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input for Comet metric.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CometInput} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CometInput) + com.google.cloud.aiplatform.v1beta1.CometInputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CometInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CometInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CometInput.class, + com.google.cloud.aiplatform.v1beta1.CometInput.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.CometInput.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(); + getInstanceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + metricSpec_ = null; + if (metricSpecBuilder_ != null) { + metricSpecBuilder_.dispose(); + metricSpecBuilder_ = null; + } + instance_ = null; + if (instanceBuilder_ != null) { + instanceBuilder_.dispose(); + instanceBuilder_ = 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_CometInput_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CometInput getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CometInput.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CometInput build() { + com.google.cloud.aiplatform.v1beta1.CometInput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CometInput buildPartial() { + com.google.cloud.aiplatform.v1beta1.CometInput result = + new com.google.cloud.aiplatform.v1beta1.CometInput(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.CometInput result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.metricSpec_ = metricSpecBuilder_ == null ? metricSpec_ : metricSpecBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.instance_ = instanceBuilder_ == null ? instance_ : instanceBuilder_.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.CometInput) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.CometInput) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CometInput other) { + if (other == com.google.cloud.aiplatform.v1beta1.CometInput.getDefaultInstance()) return this; + if (other.hasMetricSpec()) { + mergeMetricSpec(other.getMetricSpec()); + } + if (other.hasInstance()) { + mergeInstance(other.getInstance()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + input.readMessage(getInstanceFieldBuilder().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.CometSpec metricSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.CometSpec, + com.google.cloud.aiplatform.v1beta1.CometSpec.Builder, + com.google.cloud.aiplatform.v1beta1.CometSpecOrBuilder> + metricSpecBuilder_; + /** + * + * + *
+     * Required. Spec for comet metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CometSpec 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 comet metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CometSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSpec. + */ + public com.google.cloud.aiplatform.v1beta1.CometSpec getMetricSpec() { + if (metricSpecBuilder_ == null) { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.CometSpec.getDefaultInstance() + : metricSpec_; + } else { + return metricSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Spec for comet metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CometSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMetricSpec(com.google.cloud.aiplatform.v1beta1.CometSpec value) { + if (metricSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metricSpec_ = value; + } else { + metricSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for comet metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CometSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMetricSpec( + com.google.cloud.aiplatform.v1beta1.CometSpec.Builder builderForValue) { + if (metricSpecBuilder_ == null) { + metricSpec_ = builderForValue.build(); + } else { + metricSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for comet metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CometSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMetricSpec(com.google.cloud.aiplatform.v1beta1.CometSpec value) { + if (metricSpecBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && metricSpec_ != null + && metricSpec_ != com.google.cloud.aiplatform.v1beta1.CometSpec.getDefaultInstance()) { + getMetricSpecBuilder().mergeFrom(value); + } else { + metricSpec_ = value; + } + } else { + metricSpecBuilder_.mergeFrom(value); + } + if (metricSpec_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Spec for comet metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CometSpec 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 comet metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CometSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.CometSpec.Builder getMetricSpecBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetricSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Spec for comet metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CometSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.CometSpecOrBuilder getMetricSpecOrBuilder() { + if (metricSpecBuilder_ != null) { + return metricSpecBuilder_.getMessageOrBuilder(); + } else { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.CometSpec.getDefaultInstance() + : metricSpec_; + } + } + /** + * + * + *
+     * Required. Spec for comet metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CometSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.CometSpec, + com.google.cloud.aiplatform.v1beta1.CometSpec.Builder, + com.google.cloud.aiplatform.v1beta1.CometSpecOrBuilder> + getMetricSpecFieldBuilder() { + if (metricSpecBuilder_ == null) { + metricSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.CometSpec, + com.google.cloud.aiplatform.v1beta1.CometSpec.Builder, + com.google.cloud.aiplatform.v1beta1.CometSpecOrBuilder>( + getMetricSpec(), getParentForChildren(), isClean()); + metricSpec_ = null; + } + return metricSpecBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.CometInstance instance_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.CometInstance, + com.google.cloud.aiplatform.v1beta1.CometInstance.Builder, + com.google.cloud.aiplatform.v1beta1.CometInstanceOrBuilder> + instanceBuilder_; + /** + * + * + *
+     * Required. Comet instance.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CometInstance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the instance field is set. + */ + public boolean hasInstance() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. Comet instance.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CometInstance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instance. + */ + public com.google.cloud.aiplatform.v1beta1.CometInstance getInstance() { + if (instanceBuilder_ == null) { + return instance_ == null + ? com.google.cloud.aiplatform.v1beta1.CometInstance.getDefaultInstance() + : instance_; + } else { + return instanceBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Comet instance.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CometInstance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstance(com.google.cloud.aiplatform.v1beta1.CometInstance value) { + if (instanceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + instance_ = value; + } else { + instanceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Comet instance.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CometInstance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstance( + com.google.cloud.aiplatform.v1beta1.CometInstance.Builder builderForValue) { + if (instanceBuilder_ == null) { + instance_ = builderForValue.build(); + } else { + instanceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Comet instance.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CometInstance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeInstance(com.google.cloud.aiplatform.v1beta1.CometInstance value) { + if (instanceBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && instance_ != null + && instance_ + != com.google.cloud.aiplatform.v1beta1.CometInstance.getDefaultInstance()) { + getInstanceBuilder().mergeFrom(value); + } else { + instance_ = value; + } + } else { + instanceBuilder_.mergeFrom(value); + } + if (instance_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Comet instance.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CometInstance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearInstance() { + bitField0_ = (bitField0_ & ~0x00000002); + instance_ = null; + if (instanceBuilder_ != null) { + instanceBuilder_.dispose(); + instanceBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Comet instance.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CometInstance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.CometInstance.Builder getInstanceBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getInstanceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Comet instance.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CometInstance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.CometInstanceOrBuilder getInstanceOrBuilder() { + if (instanceBuilder_ != null) { + return instanceBuilder_.getMessageOrBuilder(); + } else { + return instance_ == null + ? com.google.cloud.aiplatform.v1beta1.CometInstance.getDefaultInstance() + : instance_; + } + } + /** + * + * + *
+     * Required. Comet instance.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CometInstance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.CometInstance, + com.google.cloud.aiplatform.v1beta1.CometInstance.Builder, + com.google.cloud.aiplatform.v1beta1.CometInstanceOrBuilder> + getInstanceFieldBuilder() { + if (instanceBuilder_ == null) { + instanceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.CometInstance, + com.google.cloud.aiplatform.v1beta1.CometInstance.Builder, + com.google.cloud.aiplatform.v1beta1.CometInstanceOrBuilder>( + getInstance(), getParentForChildren(), isClean()); + instance_ = null; + } + return instanceBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @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.CometInput) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CometInput) + private static final com.google.cloud.aiplatform.v1beta1.CometInput DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.CometInput(); + } + + public static com.google.cloud.aiplatform.v1beta1.CometInput getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CometInput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.CometInput getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CometInputOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CometInputOrBuilder.java new file mode 100644 index 000000000000..2d5551fc1f9e --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CometInputOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface CometInputOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CometInput) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Spec for comet metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CometSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metricSpec field is set. + */ + boolean hasMetricSpec(); + /** + * + * + *
+   * Required. Spec for comet metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CometSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSpec. + */ + com.google.cloud.aiplatform.v1beta1.CometSpec getMetricSpec(); + /** + * + * + *
+   * Required. Spec for comet metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CometSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.CometSpecOrBuilder getMetricSpecOrBuilder(); + + /** + * + * + *
+   * Required. Comet instance.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CometInstance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the instance field is set. + */ + boolean hasInstance(); + /** + * + * + *
+   * Required. Comet instance.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CometInstance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instance. + */ + com.google.cloud.aiplatform.v1beta1.CometInstance getInstance(); + /** + * + * + *
+   * Required. Comet instance.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.CometInstance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.CometInstanceOrBuilder getInstanceOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CometInstance.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CometInstance.java new file mode 100644 index 000000000000..a6b7ba67f557 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CometInstance.java @@ -0,0 +1,1099 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Spec for Comet instance - The fields used for evaluation are dependent on the
+ * comet version.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CometInstance} + */ +public final class CometInstance extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CometInstance) + CometInstanceOrBuilder { + private static final long serialVersionUID = 0L; + // Use CometInstance.newBuilder() to construct. + private CometInstance(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CometInstance() { + prediction_ = ""; + reference_ = ""; + source_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CometInstance(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CometInstance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CometInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CometInstance.class, + com.google.cloud.aiplatform.v1beta1.CometInstance.Builder.class); + } + + private int bitField0_; + public static final int PREDICTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object prediction_ = ""; + /** + * + * + *
+   * Required. Output of the evaluated model.
+   * 
+ * + * optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the prediction field is set. + */ + @java.lang.Override + public boolean hasPrediction() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. Output of the evaluated model.
+   * 
+ * + * optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The prediction. + */ + @java.lang.Override + public java.lang.String getPrediction() { + java.lang.Object ref = prediction_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prediction_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Output of the evaluated model.
+   * 
+ * + * optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for prediction. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPredictionBytes() { + java.lang.Object ref = prediction_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + prediction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REFERENCE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object reference_ = ""; + /** + * + * + *
+   * Optional. Ground truth used to compare against the prediction.
+   * 
+ * + * optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the reference field is set. + */ + @java.lang.Override + public boolean hasReference() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Optional. Ground truth used to compare against the prediction.
+   * 
+ * + * optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The reference. + */ + @java.lang.Override + public java.lang.String getReference() { + java.lang.Object ref = reference_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reference_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Ground truth used to compare against the prediction.
+   * 
+ * + * optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for reference. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReferenceBytes() { + java.lang.Object ref = reference_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reference_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object source_ = ""; + /** + * + * + *
+   * Optional. Source text in original language.
+   * 
+ * + * optional string source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the source field is set. + */ + @java.lang.Override + public boolean hasSource() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+   * Optional. Source text in original language.
+   * 
+ * + * optional string source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The source. + */ + @java.lang.Override + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Source text in original language.
+   * 
+ * + * optional string source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for source. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = 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, prediction_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, reference_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, source_); + } + 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, prediction_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, reference_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, source_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.CometInstance)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CometInstance other = + (com.google.cloud.aiplatform.v1beta1.CometInstance) obj; + + if (hasPrediction() != other.hasPrediction()) return false; + if (hasPrediction()) { + if (!getPrediction().equals(other.getPrediction())) return false; + } + if (hasReference() != other.hasReference()) return false; + if (hasReference()) { + if (!getReference().equals(other.getReference())) return false; + } + if (hasSource() != other.hasSource()) return false; + if (hasSource()) { + if (!getSource().equals(other.getSource())) return false; + } + if (!getUnknownFields().equals(other.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 (hasPrediction()) { + hash = (37 * hash) + PREDICTION_FIELD_NUMBER; + hash = (53 * hash) + getPrediction().hashCode(); + } + if (hasReference()) { + hash = (37 * hash) + REFERENCE_FIELD_NUMBER; + hash = (53 * hash) + getReference().hashCode(); + } + if (hasSource()) { + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CometInstance parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CometInstance parseFrom( + 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.CometInstance parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CometInstance parseFrom( + com.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.CometInstance parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CometInstance 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.CometInstance parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CometInstance parseFrom( + java.io.InputStream 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.CometInstance parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CometInstance parseDelimitedFrom( + java.io.InputStream 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.CometInstance 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.CometInstance parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.CometInstance prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 Comet instance - The fields used for evaluation are dependent on the
+   * comet version.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CometInstance} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CometInstance) + com.google.cloud.aiplatform.v1beta1.CometInstanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CometInstance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CometInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CometInstance.class, + com.google.cloud.aiplatform.v1beta1.CometInstance.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.CometInstance.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + prediction_ = ""; + reference_ = ""; + source_ = ""; + 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_CometInstance_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CometInstance getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CometInstance.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CometInstance build() { + com.google.cloud.aiplatform.v1beta1.CometInstance result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CometInstance buildPartial() { + com.google.cloud.aiplatform.v1beta1.CometInstance result = + new com.google.cloud.aiplatform.v1beta1.CometInstance(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.CometInstance result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.prediction_ = prediction_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.reference_ = reference_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.source_ = source_; + 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.CometInstance) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.CometInstance) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CometInstance other) { + if (other == com.google.cloud.aiplatform.v1beta1.CometInstance.getDefaultInstance()) + return this; + if (other.hasPrediction()) { + prediction_ = other.prediction_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasReference()) { + reference_ = other.reference_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasSource()) { + source_ = other.source_; + 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: + { + prediction_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + reference_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + source_ = 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 prediction_ = ""; + /** + * + * + *
+     * Required. Output of the evaluated model.
+     * 
+ * + * optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the prediction field is set. + */ + public boolean hasPrediction() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. Output of the evaluated model.
+     * 
+ * + * optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The prediction. + */ + public java.lang.String getPrediction() { + java.lang.Object ref = prediction_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prediction_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Output of the evaluated model.
+     * 
+ * + * optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for prediction. + */ + public com.google.protobuf.ByteString getPredictionBytes() { + java.lang.Object ref = prediction_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + prediction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Output of the evaluated model.
+     * 
+ * + * optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The prediction to set. + * @return This builder for chaining. + */ + public Builder setPrediction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + prediction_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Output of the evaluated model.
+     * 
+ * + * optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPrediction() { + prediction_ = getDefaultInstance().getPrediction(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Output of the evaluated model.
+     * 
+ * + * optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for prediction to set. + * @return This builder for chaining. + */ + public Builder setPredictionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + prediction_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object reference_ = ""; + /** + * + * + *
+     * Optional. Ground truth used to compare against the prediction.
+     * 
+ * + * optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the reference field is set. + */ + public boolean hasReference() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Optional. Ground truth used to compare against the prediction.
+     * 
+ * + * optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The reference. + */ + public java.lang.String getReference() { + java.lang.Object ref = reference_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reference_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Ground truth used to compare against the prediction.
+     * 
+ * + * optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for reference. + */ + public com.google.protobuf.ByteString getReferenceBytes() { + java.lang.Object ref = reference_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reference_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Ground truth used to compare against the prediction.
+     * 
+ * + * optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The reference to set. + * @return This builder for chaining. + */ + public Builder setReference(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + reference_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Ground truth used to compare against the prediction.
+     * 
+ * + * optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearReference() { + reference_ = getDefaultInstance().getReference(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Ground truth used to compare against the prediction.
+     * 
+ * + * optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for reference to set. + * @return This builder for chaining. + */ + public Builder setReferenceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reference_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object source_ = ""; + /** + * + * + *
+     * Optional. Source text in original language.
+     * 
+ * + * optional string source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the source field is set. + */ + public boolean hasSource() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Optional. Source text in original language.
+     * 
+ * + * optional string source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The source. + */ + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Source text in original language.
+     * 
+ * + * optional string source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for source. + */ + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Source text in original language.
+     * 
+ * + * optional string source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The source to set. + * @return This builder for chaining. + */ + public Builder setSource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Source text in original language.
+     * 
+ * + * optional string source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSource() { + source_ = getDefaultInstance().getSource(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Source text in original language.
+     * 
+ * + * optional string source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for source to set. + * @return This builder for chaining. + */ + public Builder setSourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + source_ = 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.CometInstance) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CometInstance) + private static final com.google.cloud.aiplatform.v1beta1.CometInstance DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.CometInstance(); + } + + public static com.google.cloud.aiplatform.v1beta1.CometInstance getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CometInstance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.CometInstance getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CometInstanceOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CometInstanceOrBuilder.java new file mode 100644 index 000000000000..ba30f0b665db --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CometInstanceOrBuilder.java @@ -0,0 +1,137 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface CometInstanceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CometInstance) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Output of the evaluated model.
+   * 
+ * + * optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the prediction field is set. + */ + boolean hasPrediction(); + /** + * + * + *
+   * Required. Output of the evaluated model.
+   * 
+ * + * optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The prediction. + */ + java.lang.String getPrediction(); + /** + * + * + *
+   * Required. Output of the evaluated model.
+   * 
+ * + * optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for prediction. + */ + com.google.protobuf.ByteString getPredictionBytes(); + + /** + * + * + *
+   * Optional. Ground truth used to compare against the prediction.
+   * 
+ * + * optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the reference field is set. + */ + boolean hasReference(); + /** + * + * + *
+   * Optional. Ground truth used to compare against the prediction.
+   * 
+ * + * optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The reference. + */ + java.lang.String getReference(); + /** + * + * + *
+   * Optional. Ground truth used to compare against the prediction.
+   * 
+ * + * optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for reference. + */ + com.google.protobuf.ByteString getReferenceBytes(); + + /** + * + * + *
+   * Optional. Source text in original language.
+   * 
+ * + * optional string source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the source field is set. + */ + boolean hasSource(); + /** + * + * + *
+   * Optional. Source text in original language.
+   * 
+ * + * optional string source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The source. + */ + java.lang.String getSource(); + /** + * + * + *
+   * Optional. Source text in original language.
+   * 
+ * + * optional string source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for source. + */ + com.google.protobuf.ByteString getSourceBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CometResult.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CometResult.java new file mode 100644 index 000000000000..919dd7319d2a --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CometResult.java @@ -0,0 +1,577 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Spec for Comet result - calculates the comet score for the given instance
+ * using the version specified in the spec.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CometResult} + */ +public final class CometResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CometResult) + CometResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use CometResult.newBuilder() to construct. + private CometResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CometResult() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CometResult(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CometResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CometResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CometResult.class, + com.google.cloud.aiplatform.v1beta1.CometResult.Builder.class); + } + + private int bitField0_; + public static final int SCORE_FIELD_NUMBER = 1; + private float score_ = 0F; + /** + * + * + *
+   * Output only. Comet score. Range depends on version.
+   * 
+ * + * 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. Comet score. Range depends on version.
+   * 
+ * + * 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.CometResult)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CometResult other = + (com.google.cloud.aiplatform.v1beta1.CometResult) 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.CometResult parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CometResult parseFrom( + 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.CometResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CometResult parseFrom( + com.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.CometResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CometResult 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.CometResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CometResult parseFrom( + java.io.InputStream 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.CometResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CometResult parseDelimitedFrom( + java.io.InputStream 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.CometResult 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.CometResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.CometResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 Comet result - calculates the comet score for the given instance
+   * using the version specified in the spec.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CometResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CometResult) + com.google.cloud.aiplatform.v1beta1.CometResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CometResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CometResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CometResult.class, + com.google.cloud.aiplatform.v1beta1.CometResult.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.CometResult.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_CometResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CometResult getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CometResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CometResult build() { + com.google.cloud.aiplatform.v1beta1.CometResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CometResult buildPartial() { + com.google.cloud.aiplatform.v1beta1.CometResult result = + new com.google.cloud.aiplatform.v1beta1.CometResult(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.CometResult 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.CometResult) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.CometResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CometResult other) { + if (other == com.google.cloud.aiplatform.v1beta1.CometResult.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. Comet score. Range depends on version.
+     * 
+ * + * 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. Comet score. Range depends on version.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + /** + * + * + *
+     * Output only. Comet score. Range depends on version.
+     * 
+ * + * 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. Comet score. Range depends on version.
+     * 
+ * + * 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.CometResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CometResult) + private static final com.google.cloud.aiplatform.v1beta1.CometResult DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.CometResult(); + } + + public static com.google.cloud.aiplatform.v1beta1.CometResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CometResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.CometResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CometResultOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CometResultOrBuilder.java new file mode 100644 index 000000000000..abe03ee537a5 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CometResultOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface CometResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CometResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Comet score. Range depends on version.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + boolean hasScore(); + /** + * + * + *
+   * Output only. Comet score. Range depends on version.
+   * 
+ * + * 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/CometSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CometSpec.java new file mode 100644 index 000000000000..0c04bfb34920 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CometSpec.java @@ -0,0 +1,1159 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Spec for Comet metric.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CometSpec} + */ +public final class CometSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CometSpec) + CometSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use CometSpec.newBuilder() to construct. + private CometSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CometSpec() { + version_ = 0; + sourceLanguage_ = ""; + targetLanguage_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CometSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CometSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CometSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CometSpec.class, + com.google.cloud.aiplatform.v1beta1.CometSpec.Builder.class); + } + + /** + * + * + *
+   * Comet version options.
+   * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1beta1.CometSpec.CometVersion} + */ + public enum CometVersion implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Comet version unspecified.
+     * 
+ * + * COMET_VERSION_UNSPECIFIED = 0; + */ + COMET_VERSION_UNSPECIFIED(0), + /** + * + * + *
+     * Comet 22 for translation + source + reference
+     * (source-reference-combined).
+     * 
+ * + * COMET_22_SRC_REF = 2; + */ + COMET_22_SRC_REF(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Comet version unspecified.
+     * 
+ * + * COMET_VERSION_UNSPECIFIED = 0; + */ + public static final int COMET_VERSION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Comet 22 for translation + source + reference
+     * (source-reference-combined).
+     * 
+ * + * COMET_22_SRC_REF = 2; + */ + public static final int COMET_22_SRC_REF_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 CometVersion 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 CometVersion forNumber(int value) { + switch (value) { + case 0: + return COMET_VERSION_UNSPECIFIED; + case 2: + return COMET_22_SRC_REF; + 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 CometVersion findValueByNumber(int number) { + return CometVersion.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.CometSpec.getDescriptor().getEnumTypes().get(0); + } + + private static final CometVersion[] VALUES = values(); + + public static CometVersion 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 CometVersion(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.CometSpec.CometVersion) + } + + private int bitField0_; + public static final int VERSION_FIELD_NUMBER = 1; + private int version_ = 0; + /** + * + * + *
+   * Required. Which version to use for evaluation.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.CometSpec.CometVersion version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the version field is set. + */ + @java.lang.Override + public boolean hasVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. Which version to use for evaluation.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.CometSpec.CometVersion version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for version. + */ + @java.lang.Override + public int getVersionValue() { + return version_; + } + /** + * + * + *
+   * Required. Which version to use for evaluation.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.CometSpec.CometVersion version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The version. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CometSpec.CometVersion getVersion() { + com.google.cloud.aiplatform.v1beta1.CometSpec.CometVersion result = + com.google.cloud.aiplatform.v1beta1.CometSpec.CometVersion.forNumber(version_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.CometSpec.CometVersion.UNRECOGNIZED + : result; + } + + public static final int SOURCE_LANGUAGE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceLanguage_ = ""; + /** + * + * + *
+   * Optional. Source language in BCP-47 format.
+   * 
+ * + * string source_language = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sourceLanguage. + */ + @java.lang.Override + public java.lang.String getSourceLanguage() { + java.lang.Object ref = sourceLanguage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceLanguage_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Source language in BCP-47 format.
+   * 
+ * + * string source_language = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sourceLanguage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceLanguageBytes() { + java.lang.Object ref = sourceLanguage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceLanguage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_LANGUAGE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object targetLanguage_ = ""; + /** + * + * + *
+   * Optional. Target language in BCP-47 format. Covers both prediction and
+   * reference.
+   * 
+ * + * string target_language = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The targetLanguage. + */ + @java.lang.Override + public java.lang.String getTargetLanguage() { + java.lang.Object ref = targetLanguage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetLanguage_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Target language in BCP-47 format. Covers both prediction and
+   * reference.
+   * 
+ * + * string target_language = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for targetLanguage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetLanguageBytes() { + java.lang.Object ref = targetLanguage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetLanguage_ = 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.writeEnum(1, version_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sourceLanguage_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetLanguage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, targetLanguage_); + } + 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.computeEnumSize(1, version_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sourceLanguage_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetLanguage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, targetLanguage_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.CometSpec)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CometSpec other = + (com.google.cloud.aiplatform.v1beta1.CometSpec) obj; + + if (hasVersion() != other.hasVersion()) return false; + if (hasVersion()) { + if (version_ != other.version_) return false; + } + if (!getSourceLanguage().equals(other.getSourceLanguage())) return false; + if (!getTargetLanguage().equals(other.getTargetLanguage())) return false; + if (!getUnknownFields().equals(other.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 (hasVersion()) { + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + version_; + } + hash = (37 * hash) + SOURCE_LANGUAGE_FIELD_NUMBER; + hash = (53 * hash) + getSourceLanguage().hashCode(); + hash = (37 * hash) + TARGET_LANGUAGE_FIELD_NUMBER; + hash = (53 * hash) + getTargetLanguage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CometSpec parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CometSpec parseFrom( + 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.CometSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CometSpec parseFrom( + com.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.CometSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CometSpec 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.CometSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CometSpec parseFrom( + java.io.InputStream 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.CometSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CometSpec parseDelimitedFrom( + java.io.InputStream 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.CometSpec 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.CometSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.CometSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 Comet metric.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CometSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CometSpec) + com.google.cloud.aiplatform.v1beta1.CometSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CometSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CometSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CometSpec.class, + com.google.cloud.aiplatform.v1beta1.CometSpec.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.CometSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + version_ = 0; + sourceLanguage_ = ""; + targetLanguage_ = ""; + 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_CometSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CometSpec getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CometSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CometSpec build() { + com.google.cloud.aiplatform.v1beta1.CometSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CometSpec buildPartial() { + com.google.cloud.aiplatform.v1beta1.CometSpec result = + new com.google.cloud.aiplatform.v1beta1.CometSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.CometSpec result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.version_ = version_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sourceLanguage_ = sourceLanguage_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.targetLanguage_ = targetLanguage_; + } + 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.CometSpec) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.CometSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CometSpec other) { + if (other == com.google.cloud.aiplatform.v1beta1.CometSpec.getDefaultInstance()) return this; + if (other.hasVersion()) { + setVersion(other.getVersion()); + } + if (!other.getSourceLanguage().isEmpty()) { + sourceLanguage_ = other.sourceLanguage_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getTargetLanguage().isEmpty()) { + targetLanguage_ = other.targetLanguage_; + 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 8: + { + version_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + sourceLanguage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + targetLanguage_ = 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 int version_ = 0; + /** + * + * + *
+     * Required. Which version to use for evaluation.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.CometSpec.CometVersion version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the version field is set. + */ + @java.lang.Override + public boolean hasVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. Which version to use for evaluation.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.CometSpec.CometVersion version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for version. + */ + @java.lang.Override + public int getVersionValue() { + return version_; + } + /** + * + * + *
+     * Required. Which version to use for evaluation.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.CometSpec.CometVersion version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for version to set. + * @return This builder for chaining. + */ + public Builder setVersionValue(int value) { + version_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Which version to use for evaluation.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.CometSpec.CometVersion version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The version. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CometSpec.CometVersion getVersion() { + com.google.cloud.aiplatform.v1beta1.CometSpec.CometVersion result = + com.google.cloud.aiplatform.v1beta1.CometSpec.CometVersion.forNumber(version_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.CometSpec.CometVersion.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. Which version to use for evaluation.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.CometSpec.CometVersion version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(com.google.cloud.aiplatform.v1beta1.CometSpec.CometVersion value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + version_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Which version to use for evaluation.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.CometSpec.CometVersion version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + version_ = 0; + onChanged(); + return this; + } + + private java.lang.Object sourceLanguage_ = ""; + /** + * + * + *
+     * Optional. Source language in BCP-47 format.
+     * 
+ * + * string source_language = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sourceLanguage. + */ + public java.lang.String getSourceLanguage() { + java.lang.Object ref = sourceLanguage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceLanguage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Source language in BCP-47 format.
+     * 
+ * + * string source_language = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sourceLanguage. + */ + public com.google.protobuf.ByteString getSourceLanguageBytes() { + java.lang.Object ref = sourceLanguage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceLanguage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Source language in BCP-47 format.
+     * 
+ * + * string source_language = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The sourceLanguage to set. + * @return This builder for chaining. + */ + public Builder setSourceLanguage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceLanguage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Source language in BCP-47 format.
+     * 
+ * + * string source_language = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSourceLanguage() { + sourceLanguage_ = getDefaultInstance().getSourceLanguage(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Source language in BCP-47 format.
+     * 
+ * + * string source_language = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for sourceLanguage to set. + * @return This builder for chaining. + */ + public Builder setSourceLanguageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceLanguage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object targetLanguage_ = ""; + /** + * + * + *
+     * Optional. Target language in BCP-47 format. Covers both prediction and
+     * reference.
+     * 
+ * + * string target_language = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The targetLanguage. + */ + public java.lang.String getTargetLanguage() { + java.lang.Object ref = targetLanguage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetLanguage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Target language in BCP-47 format. Covers both prediction and
+     * reference.
+     * 
+ * + * string target_language = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for targetLanguage. + */ + public com.google.protobuf.ByteString getTargetLanguageBytes() { + java.lang.Object ref = targetLanguage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetLanguage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Target language in BCP-47 format. Covers both prediction and
+     * reference.
+     * 
+ * + * string target_language = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The targetLanguage to set. + * @return This builder for chaining. + */ + public Builder setTargetLanguage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetLanguage_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Target language in BCP-47 format. Covers both prediction and
+     * reference.
+     * 
+ * + * string target_language = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTargetLanguage() { + targetLanguage_ = getDefaultInstance().getTargetLanguage(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Target language in BCP-47 format. Covers both prediction and
+     * reference.
+     * 
+ * + * string target_language = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for targetLanguage to set. + * @return This builder for chaining. + */ + public Builder setTargetLanguageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetLanguage_ = 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.CometSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CometSpec) + private static final com.google.cloud.aiplatform.v1beta1.CometSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.CometSpec(); + } + + public static com.google.cloud.aiplatform.v1beta1.CometSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CometSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.CometSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CometSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CometSpecOrBuilder.java new file mode 100644 index 000000000000..9e0df98bbb0d --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CometSpecOrBuilder.java @@ -0,0 +1,121 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface CometSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CometSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Which version to use for evaluation.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.CometSpec.CometVersion version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the version field is set. + */ + boolean hasVersion(); + /** + * + * + *
+   * Required. Which version to use for evaluation.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.CometSpec.CometVersion version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for version. + */ + int getVersionValue(); + /** + * + * + *
+   * Required. Which version to use for evaluation.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.CometSpec.CometVersion version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The version. + */ + com.google.cloud.aiplatform.v1beta1.CometSpec.CometVersion getVersion(); + + /** + * + * + *
+   * Optional. Source language in BCP-47 format.
+   * 
+ * + * string source_language = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sourceLanguage. + */ + java.lang.String getSourceLanguage(); + /** + * + * + *
+   * Optional. Source language in BCP-47 format.
+   * 
+ * + * string source_language = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sourceLanguage. + */ + com.google.protobuf.ByteString getSourceLanguageBytes(); + + /** + * + * + *
+   * Optional. Target language in BCP-47 format. Covers both prediction and
+   * reference.
+   * 
+ * + * string target_language = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The targetLanguage. + */ + java.lang.String getTargetLanguage(); + /** + * + * + *
+   * Optional. Target language in BCP-47 format. Covers both prediction and
+   * reference.
+   * 
+ * + * string target_language = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for targetLanguage. + */ + com.google.protobuf.ByteString getTargetLanguageBytes(); +} 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 7ac8e2fc0723..31d4500f6186 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 @@ -140,6 +140,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_RetrievalMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_RetrievalMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ModalityTokenCount_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ModalityTokenCount_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -330,18 +334,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "t\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\021RetrievalMetadata\0222\n%" + "google_search_dynamic_retrieval_score\030\002 " - + "\001(\002B\003\340A\001*\327\001\n\014HarmCategory\022\035\n\031HARM_CATEGO" - + "RY_UNSPECIFIED\020\000\022\035\n\031HARM_CATEGORY_HATE_S" - + "PEECH\020\001\022#\n\037HARM_CATEGORY_DANGEROUS_CONTE" - + "NT\020\002\022\034\n\030HARM_CATEGORY_HARASSMENT\020\003\022#\n\037HA" - + "RM_CATEGORY_SEXUALLY_EXPLICIT\020\004\022!\n\035HARM_" - + "CATEGORY_CIVIC_INTEGRITY\020\005B\343\001\n#com.googl" - + "e.cloud.aiplatform.v1beta1B\014ContentProto" - + "P\001ZCcloud.google.com/go/aiplatform/apiv1" - + "beta1/aiplatformpb;aiplatformpb\252\002\037Google" - + ".Cloud.AIPlatform.V1Beta1\312\002\037Google\\Cloud" - + "\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIP" - + "latform::V1beta1b\006proto3" + + "\001(\002B\003\340A\001\"f\n\022ModalityTokenCount\022;\n\010modali" + + "ty\030\001 \001(\0162).google.cloud.aiplatform.v1bet" + + "a1.Modality\022\023\n\013token_count\030\002 \001(\005*\327\001\n\014Har" + + "mCategory\022\035\n\031HARM_CATEGORY_UNSPECIFIED\020\000" + + "\022\035\n\031HARM_CATEGORY_HATE_SPEECH\020\001\022#\n\037HARM_" + + "CATEGORY_DANGEROUS_CONTENT\020\002\022\034\n\030HARM_CAT" + + "EGORY_HARASSMENT\020\003\022#\n\037HARM_CATEGORY_SEXU" + + "ALLY_EXPLICIT\020\004\022!\n\035HARM_CATEGORY_CIVIC_I" + + "NTEGRITY\020\005*]\n\010Modality\022\030\n\024MODALITY_UNSPE" + + "CIFIED\020\000\022\010\n\004TEXT\020\001\022\t\n\005IMAGE\020\002\022\t\n\005VIDEO\020\003" + + "\022\t\n\005AUDIO\020\004\022\014\n\010DOCUMENT\020\005B\343\001\n#com.google" + + ".cloud.aiplatform.v1beta1B\014ContentProtoP" + + "\001ZCcloud.google.com/go/aiplatform/apiv1b" + + "eta1/aiplatformpb;aiplatformpb\252\002\037Google." + + "Cloud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\" + + "AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPl" + + "atform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -632,6 +641,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "GoogleSearchDynamicRetrievalScore", }); + internal_static_google_cloud_aiplatform_v1beta1_ModalityTokenCount_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_aiplatform_v1beta1_ModalityTokenCount_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ModalityTokenCount_descriptor, + new java.lang.String[] { + "Modality", "TokenCount", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CountTokensResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CountTokensResponse.java index 517c09c084b7..3464617b8102 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CountTokensResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CountTokensResponse.java @@ -39,7 +39,9 @@ private CountTokensResponse(com.google.protobuf.GeneratedMessageV3.Builder bu super(builder); } - private CountTokensResponse() {} + private CountTokensResponse() { + promptTokensDetails_ = java.util.Collections.emptyList(); + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -99,6 +101,90 @@ public int getTotalBillableCharacters() { return totalBillableCharacters_; } + public static final int PROMPT_TOKENS_DETAILS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List + promptTokensDetails_; + /** + * + * + *
+   * Output only. List of modalities that were processed in the request input.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getPromptTokensDetailsList() { + return promptTokensDetails_; + } + /** + * + * + *
+   * Output only. List of modalities that were processed in the request input.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getPromptTokensDetailsOrBuilderList() { + return promptTokensDetails_; + } + /** + * + * + *
+   * Output only. List of modalities that were processed in the request input.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getPromptTokensDetailsCount() { + return promptTokensDetails_.size(); + } + /** + * + * + *
+   * Output only. List of modalities that were processed in the request input.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount getPromptTokensDetails(int index) { + return promptTokensDetails_.get(index); + } + /** + * + * + *
+   * Output only. List of modalities that were processed in the request input.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder + getPromptTokensDetailsOrBuilder(int index) { + return promptTokensDetails_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -119,6 +205,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (totalBillableCharacters_ != 0) { output.writeInt32(2, totalBillableCharacters_); } + for (int i = 0; i < promptTokensDetails_.size(); i++) { + output.writeMessage(3, promptTokensDetails_.get(i)); + } getUnknownFields().writeTo(output); } @@ -134,6 +223,10 @@ public int getSerializedSize() { if (totalBillableCharacters_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, totalBillableCharacters_); } + for (int i = 0; i < promptTokensDetails_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, promptTokensDetails_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -152,6 +245,7 @@ public boolean equals(final java.lang.Object obj) { if (getTotalTokens() != other.getTotalTokens()) return false; if (getTotalBillableCharacters() != other.getTotalBillableCharacters()) return false; + if (!getPromptTokensDetailsList().equals(other.getPromptTokensDetailsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -167,6 +261,10 @@ public int hashCode() { hash = (53 * hash) + getTotalTokens(); hash = (37 * hash) + TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER; hash = (53 * hash) + getTotalBillableCharacters(); + if (getPromptTokensDetailsCount() > 0) { + hash = (37 * hash) + PROMPT_TOKENS_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getPromptTokensDetailsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -310,6 +408,13 @@ public Builder clear() { bitField0_ = 0; totalTokens_ = 0; totalBillableCharacters_ = 0; + if (promptTokensDetailsBuilder_ == null) { + promptTokensDetails_ = java.util.Collections.emptyList(); + } else { + promptTokensDetails_ = null; + promptTokensDetailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -337,6 +442,7 @@ public com.google.cloud.aiplatform.v1beta1.CountTokensResponse build() { public com.google.cloud.aiplatform.v1beta1.CountTokensResponse buildPartial() { com.google.cloud.aiplatform.v1beta1.CountTokensResponse result = new com.google.cloud.aiplatform.v1beta1.CountTokensResponse(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -344,6 +450,19 @@ public com.google.cloud.aiplatform.v1beta1.CountTokensResponse buildPartial() { return result; } + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.CountTokensResponse result) { + if (promptTokensDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + promptTokensDetails_ = java.util.Collections.unmodifiableList(promptTokensDetails_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.promptTokensDetails_ = promptTokensDetails_; + } else { + result.promptTokensDetails_ = promptTokensDetailsBuilder_.build(); + } + } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.CountTokensResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -406,6 +525,33 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CountTokensResponse if (other.getTotalBillableCharacters() != 0) { setTotalBillableCharacters(other.getTotalBillableCharacters()); } + if (promptTokensDetailsBuilder_ == null) { + if (!other.promptTokensDetails_.isEmpty()) { + if (promptTokensDetails_.isEmpty()) { + promptTokensDetails_ = other.promptTokensDetails_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.addAll(other.promptTokensDetails_); + } + onChanged(); + } + } else { + if (!other.promptTokensDetails_.isEmpty()) { + if (promptTokensDetailsBuilder_.isEmpty()) { + promptTokensDetailsBuilder_.dispose(); + promptTokensDetailsBuilder_ = null; + promptTokensDetails_ = other.promptTokensDetails_; + bitField0_ = (bitField0_ & ~0x00000004); + promptTokensDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPromptTokensDetailsFieldBuilder() + : null; + } else { + promptTokensDetailsBuilder_.addAllMessages(other.promptTokensDetails_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -444,6 +590,20 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 16 + case 26: + { + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.parser(), + extensionRegistry); + if (promptTokensDetailsBuilder_ == null) { + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.add(m); + } else { + promptTokensDetailsBuilder_.addMessage(m); + } + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -572,6 +732,408 @@ public Builder clearTotalBillableCharacters() { return this; } + private java.util.List + promptTokensDetails_ = java.util.Collections.emptyList(); + + private void ensurePromptTokensDetailsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + promptTokensDetails_ = + new java.util.ArrayList( + promptTokensDetails_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder> + promptTokensDetailsBuilder_; + + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getPromptTokensDetailsList() { + if (promptTokensDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(promptTokensDetails_); + } else { + return promptTokensDetailsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getPromptTokensDetailsCount() { + if (promptTokensDetailsBuilder_ == null) { + return promptTokensDetails_.size(); + } else { + return promptTokensDetailsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount getPromptTokensDetails( + int index) { + if (promptTokensDetailsBuilder_ == null) { + return promptTokensDetails_.get(index); + } else { + return promptTokensDetailsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPromptTokensDetails( + int index, com.google.cloud.aiplatform.v1beta1.ModalityTokenCount value) { + if (promptTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.set(index, value); + onChanged(); + } else { + promptTokensDetailsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPromptTokensDetails( + int index, com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder builderForValue) { + if (promptTokensDetailsBuilder_ == null) { + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + promptTokensDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPromptTokensDetails( + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount value) { + if (promptTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.add(value); + onChanged(); + } else { + promptTokensDetailsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPromptTokensDetails( + int index, com.google.cloud.aiplatform.v1beta1.ModalityTokenCount value) { + if (promptTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.add(index, value); + onChanged(); + } else { + promptTokensDetailsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPromptTokensDetails( + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder builderForValue) { + if (promptTokensDetailsBuilder_ == null) { + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.add(builderForValue.build()); + onChanged(); + } else { + promptTokensDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPromptTokensDetails( + int index, com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder builderForValue) { + if (promptTokensDetailsBuilder_ == null) { + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + promptTokensDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllPromptTokensDetails( + java.lang.Iterable + values) { + if (promptTokensDetailsBuilder_ == null) { + ensurePromptTokensDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, promptTokensDetails_); + onChanged(); + } else { + promptTokensDetailsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPromptTokensDetails() { + if (promptTokensDetailsBuilder_ == null) { + promptTokensDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + promptTokensDetailsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removePromptTokensDetails(int index) { + if (promptTokensDetailsBuilder_ == null) { + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.remove(index); + onChanged(); + } else { + promptTokensDetailsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder + getPromptTokensDetailsBuilder(int index) { + return getPromptTokensDetailsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder + getPromptTokensDetailsOrBuilder(int index) { + if (promptTokensDetailsBuilder_ == null) { + return promptTokensDetails_.get(index); + } else { + return promptTokensDetailsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getPromptTokensDetailsOrBuilderList() { + if (promptTokensDetailsBuilder_ != null) { + return promptTokensDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(promptTokensDetails_); + } + } + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder + addPromptTokensDetailsBuilder() { + return getPromptTokensDetailsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder + addPromptTokensDetailsBuilder(int index) { + return getPromptTokensDetailsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getPromptTokensDetailsBuilderList() { + return getPromptTokensDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder> + getPromptTokensDetailsFieldBuilder() { + if (promptTokensDetailsBuilder_ == null) { + promptTokensDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder>( + promptTokensDetails_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + promptTokensDetails_ = null; + } + return promptTokensDetailsBuilder_; + } + @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/CountTokensResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CountTokensResponseOrBuilder.java index 1576aa9a96dc..59511defb379 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CountTokensResponseOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CountTokensResponseOrBuilder.java @@ -50,4 +50,68 @@ public interface CountTokensResponseOrBuilder * @return The totalBillableCharacters. */ int getTotalBillableCharacters(); + + /** + * + * + *
+   * Output only. List of modalities that were processed in the request input.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getPromptTokensDetailsList(); + /** + * + * + *
+   * Output only. List of modalities that were processed in the request input.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount getPromptTokensDetails(int index); + /** + * + * + *
+   * Output only. List of modalities that were processed in the request input.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getPromptTokensDetailsCount(); + /** + * + * + *
+   * Output only. List of modalities that were processed in the request input.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getPromptTokensDetailsOrBuilderList(); + /** + * + * + *
+   * Output only. List of modalities that were processed in the request input.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder getPromptTokensDetailsOrBuilder( + int index); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesRequest.java index 7c86a1a7e135..fc0a8453fda7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesRequest.java @@ -63,6 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest.Builder.class); } + private int bitField0_; private int metricInputsCase_ = 0; @SuppressWarnings("serial") @@ -95,6 +96,8 @@ public enum MetricInputsCase TOOL_NAME_MATCH_INPUT(20), TOOL_PARAMETER_KEY_MATCH_INPUT(21), TOOL_PARAMETER_KV_MATCH_INPUT(22), + COMET_INPUT(31), + METRICX_INPUT(32), TRAJECTORY_EXACT_MATCH_INPUT(33), TRAJECTORY_IN_ORDER_MATCH_INPUT(34), TRAJECTORY_ANY_ORDER_MATCH_INPUT(35), @@ -165,6 +168,10 @@ public static MetricInputsCase forNumber(int value) { return TOOL_PARAMETER_KEY_MATCH_INPUT; case 22: return TOOL_PARAMETER_KV_MATCH_INPUT; + case 31: + return COMET_INPUT; + case 32: + return METRICX_INPUT; case 33: return TRAJECTORY_EXACT_MATCH_INPUT; case 34: @@ -1489,6 +1496,111 @@ public boolean hasToolParameterKvMatchInput() { return com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchInput.getDefaultInstance(); } + public static final int COMET_INPUT_FIELD_NUMBER = 31; + /** + * + * + *
+   * Translation metrics.
+   * Input for Comet metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.CometInput comet_input = 31; + * + * @return Whether the cometInput field is set. + */ + @java.lang.Override + public boolean hasCometInput() { + return metricInputsCase_ == 31; + } + /** + * + * + *
+   * Translation metrics.
+   * Input for Comet metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.CometInput comet_input = 31; + * + * @return The cometInput. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CometInput getCometInput() { + if (metricInputsCase_ == 31) { + return (com.google.cloud.aiplatform.v1beta1.CometInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.CometInput.getDefaultInstance(); + } + /** + * + * + *
+   * Translation metrics.
+   * Input for Comet metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.CometInput comet_input = 31; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CometInputOrBuilder getCometInputOrBuilder() { + if (metricInputsCase_ == 31) { + return (com.google.cloud.aiplatform.v1beta1.CometInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.CometInput.getDefaultInstance(); + } + + public static final int METRICX_INPUT_FIELD_NUMBER = 32; + /** + * + * + *
+   * Input for Metricx metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.MetricxInput metricx_input = 32; + * + * @return Whether the metricxInput field is set. + */ + @java.lang.Override + public boolean hasMetricxInput() { + return metricInputsCase_ == 32; + } + /** + * + * + *
+   * Input for Metricx metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.MetricxInput metricx_input = 32; + * + * @return The metricxInput. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricxInput getMetricxInput() { + if (metricInputsCase_ == 32) { + return (com.google.cloud.aiplatform.v1beta1.MetricxInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.MetricxInput.getDefaultInstance(); + } + /** + * + * + *
+   * Input for Metricx metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.MetricxInput metricx_input = 32; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricxInputOrBuilder getMetricxInputOrBuilder() { + if (metricInputsCase_ == 32) { + return (com.google.cloud.aiplatform.v1beta1.MetricxInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.MetricxInput.getDefaultInstance(); + } + public static final int TRAJECTORY_EXACT_MATCH_INPUT_FIELD_NUMBER = 33; /** * @@ -1896,6 +2008,63 @@ public com.google.protobuf.ByteString getLocationBytes() { } } + public static final int AUTORATER_CONFIG_FIELD_NUMBER = 30; + private com.google.cloud.aiplatform.v1beta1.AutoraterConfig autoraterConfig_; + /** + * + * + *
+   * Optional. Autorater config used for evaluation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AutoraterConfig autorater_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the autoraterConfig field is set. + */ + @java.lang.Override + public boolean hasAutoraterConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. Autorater config used for evaluation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AutoraterConfig autorater_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The autoraterConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AutoraterConfig getAutoraterConfig() { + return autoraterConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.AutoraterConfig.getDefaultInstance() + : autoraterConfig_; + } + /** + * + * + *
+   * Optional. Autorater config used for evaluation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AutoraterConfig autorater_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AutoraterConfigOrBuilder + getAutoraterConfigOrBuilder() { + return autoraterConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.AutoraterConfig.getDefaultInstance() + : autoraterConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2002,6 +2171,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 29, (com.google.cloud.aiplatform.v1beta1.PairwiseMetricInput) metricInputs_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(30, getAutoraterConfig()); + } + if (metricInputsCase_ == 31) { + output.writeMessage(31, (com.google.cloud.aiplatform.v1beta1.CometInput) metricInputs_); + } + if (metricInputsCase_ == 32) { + output.writeMessage(32, (com.google.cloud.aiplatform.v1beta1.MetricxInput) metricInputs_); + } if (metricInputsCase_ == 33) { output.writeMessage( 33, (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput) metricInputs_); @@ -2164,6 +2342,19 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 29, (com.google.cloud.aiplatform.v1beta1.PairwiseMetricInput) metricInputs_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(30, getAutoraterConfig()); + } + if (metricInputsCase_ == 31) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 31, (com.google.cloud.aiplatform.v1beta1.CometInput) metricInputs_); + } + if (metricInputsCase_ == 32) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 32, (com.google.cloud.aiplatform.v1beta1.MetricxInput) metricInputs_); + } if (metricInputsCase_ == 33) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -2211,6 +2402,10 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest) obj; if (!getLocation().equals(other.getLocation())) return false; + if (hasAutoraterConfig() != other.hasAutoraterConfig()) return false; + if (hasAutoraterConfig()) { + if (!getAutoraterConfig().equals(other.getAutoraterConfig())) return false; + } if (!getMetricInputsCase().equals(other.getMetricInputsCase())) return false; switch (metricInputsCase_) { case 2: @@ -2293,6 +2488,12 @@ public boolean equals(final java.lang.Object obj) { if (!getToolParameterKvMatchInput().equals(other.getToolParameterKvMatchInput())) return false; break; + case 31: + if (!getCometInput().equals(other.getCometInput())) return false; + break; + case 32: + if (!getMetricxInput().equals(other.getMetricxInput())) return false; + break; case 33: if (!getTrajectoryExactMatchInput().equals(other.getTrajectoryExactMatchInput())) return false; @@ -2332,6 +2533,10 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + LOCATION_FIELD_NUMBER; hash = (53 * hash) + getLocation().hashCode(); + if (hasAutoraterConfig()) { + hash = (37 * hash) + AUTORATER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAutoraterConfig().hashCode(); + } switch (metricInputsCase_) { case 2: hash = (37 * hash) + EXACT_MATCH_INPUT_FIELD_NUMBER; @@ -2425,6 +2630,14 @@ public int hashCode() { hash = (37 * hash) + TOOL_PARAMETER_KV_MATCH_INPUT_FIELD_NUMBER; hash = (53 * hash) + getToolParameterKvMatchInput().hashCode(); break; + case 31: + hash = (37 * hash) + COMET_INPUT_FIELD_NUMBER; + hash = (53 * hash) + getCometInput().hashCode(); + break; + case 32: + hash = (37 * hash) + METRICX_INPUT_FIELD_NUMBER; + hash = (53 * hash) + getMetricxInput().hashCode(); + break; case 33: hash = (37 * hash) + TRAJECTORY_EXACT_MATCH_INPUT_FIELD_NUMBER; hash = (53 * hash) + getTrajectoryExactMatchInput().hashCode(); @@ -2582,16 +2795,26 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest.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) { + getAutoraterConfigFieldBuilder(); + } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; + bitField1_ = 0; if (exactMatchInputBuilder_ != null) { exactMatchInputBuilder_.clear(); } @@ -2661,6 +2884,12 @@ public Builder clear() { if (toolParameterKvMatchInputBuilder_ != null) { toolParameterKvMatchInputBuilder_.clear(); } + if (cometInputBuilder_ != null) { + cometInputBuilder_.clear(); + } + if (metricxInputBuilder_ != null) { + metricxInputBuilder_.clear(); + } if (trajectoryExactMatchInputBuilder_ != null) { trajectoryExactMatchInputBuilder_.clear(); } @@ -2680,6 +2909,11 @@ public Builder clear() { trajectorySingleToolUseInputBuilder_.clear(); } location_ = ""; + autoraterConfig_ = null; + if (autoraterConfigBuilder_ != null) { + autoraterConfigBuilder_.dispose(); + autoraterConfigBuilder_ = null; + } metricInputsCase_ = 0; metricInputs_ = null; return this; @@ -2713,6 +2947,9 @@ public com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest buildPartial if (bitField0_ != 0) { buildPartial0(result); } + if (bitField1_ != 0) { + buildPartial1(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -2721,11 +2958,23 @@ 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_ & 0x20000000) != 0)) { + if (((from_bitField0_ & 0x80000000) != 0)) { result.location_ = location_; } } + private void buildPartial1( + com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest result) { + int from_bitField1_ = bitField1_; + int to_bitField0_ = 0; + if (((from_bitField1_ & 0x00000001) != 0)) { + result.autoraterConfig_ = + autoraterConfigBuilder_ == null ? autoraterConfig_ : autoraterConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + private void buildPartialOneofs( com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest result) { result.metricInputsCase_ = metricInputsCase_; @@ -2799,6 +3048,12 @@ private void buildPartialOneofs( if (metricInputsCase_ == 22 && toolParameterKvMatchInputBuilder_ != null) { result.metricInputs_ = toolParameterKvMatchInputBuilder_.build(); } + if (metricInputsCase_ == 31 && cometInputBuilder_ != null) { + result.metricInputs_ = cometInputBuilder_.build(); + } + if (metricInputsCase_ == 32 && metricxInputBuilder_ != null) { + result.metricInputs_ = metricxInputBuilder_.build(); + } if (metricInputsCase_ == 33 && trajectoryExactMatchInputBuilder_ != null) { result.metricInputs_ = trajectoryExactMatchInputBuilder_.build(); } @@ -2868,9 +3123,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRe return this; if (!other.getLocation().isEmpty()) { location_ = other.location_; - bitField0_ |= 0x20000000; + bitField0_ |= 0x80000000; onChanged(); } + if (other.hasAutoraterConfig()) { + mergeAutoraterConfig(other.getAutoraterConfig()); + } switch (other.getMetricInputsCase()) { case EXACT_MATCH_INPUT: { @@ -2988,6 +3246,16 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRe mergeToolParameterKvMatchInput(other.getToolParameterKvMatchInput()); break; } + case COMET_INPUT: + { + mergeCometInput(other.getCometInput()); + break; + } + case METRICX_INPUT: + { + mergeMetricxInput(other.getMetricxInput()); + break; + } case TRAJECTORY_EXACT_MATCH_INPUT: { mergeTrajectoryExactMatchInput(other.getTrajectoryExactMatchInput()); @@ -3052,7 +3320,7 @@ public Builder mergeFrom( case 10: { location_ = input.readStringRequireUtf8(); - bitField0_ |= 0x20000000; + bitField0_ |= 0x80000000; break; } // case 10 case 18: @@ -3215,6 +3483,24 @@ public Builder mergeFrom( metricInputsCase_ = 29; break; } // case 234 + case 242: + { + input.readMessage(getAutoraterConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x00000001; + break; + } // case 242 + case 250: + { + input.readMessage(getCometInputFieldBuilder().getBuilder(), extensionRegistry); + metricInputsCase_ = 31; + break; + } // case 250 + case 258: + { + input.readMessage(getMetricxInputFieldBuilder().getBuilder(), extensionRegistry); + metricInputsCase_ = 32; + break; + } // case 258 case 266: { input.readMessage( @@ -3289,6 +3575,7 @@ public Builder clearMetricInputs() { } private int bitField0_; + private int bitField1_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.ExactMatchInput, @@ -8545,123 +8832,114 @@ public Builder clearToolParameterKvMatchInput() { } 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_; + com.google.cloud.aiplatform.v1beta1.CometInput, + com.google.cloud.aiplatform.v1beta1.CometInput.Builder, + com.google.cloud.aiplatform.v1beta1.CometInputOrBuilder> + cometInputBuilder_; /** * * *
-     * Input for trajectory exact match metric.
+     * Translation metrics.
+     * Input for Comet metric.
      * 
* - * - * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput trajectory_exact_match_input = 33; - * + * .google.cloud.aiplatform.v1beta1.CometInput comet_input = 31; * - * @return Whether the trajectoryExactMatchInput field is set. + * @return Whether the cometInput field is set. */ @java.lang.Override - public boolean hasTrajectoryExactMatchInput() { - return metricInputsCase_ == 33; + public boolean hasCometInput() { + return metricInputsCase_ == 31; } /** * * *
-     * Input for trajectory exact match metric.
+     * Translation metrics.
+     * Input for Comet metric.
      * 
* - * - * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput trajectory_exact_match_input = 33; - * + * .google.cloud.aiplatform.v1beta1.CometInput comet_input = 31; * - * @return The trajectoryExactMatchInput. + * @return The cometInput. */ @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_; + public com.google.cloud.aiplatform.v1beta1.CometInput getCometInput() { + if (cometInputBuilder_ == null) { + if (metricInputsCase_ == 31) { + return (com.google.cloud.aiplatform.v1beta1.CometInput) metricInputs_; } - return com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.CometInput.getDefaultInstance(); } else { - if (metricInputsCase_ == 33) { - return trajectoryExactMatchInputBuilder_.getMessage(); + if (metricInputsCase_ == 31) { + return cometInputBuilder_.getMessage(); } - return com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.CometInput.getDefaultInstance(); } } /** * * *
-     * Input for trajectory exact match metric.
+     * Translation metrics.
+     * Input for Comet metric.
      * 
* - * - * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput trajectory_exact_match_input = 33; - * + * .google.cloud.aiplatform.v1beta1.CometInput comet_input = 31; */ - public Builder setTrajectoryExactMatchInput( - com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput value) { - if (trajectoryExactMatchInputBuilder_ == null) { + public Builder setCometInput(com.google.cloud.aiplatform.v1beta1.CometInput value) { + if (cometInputBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metricInputs_ = value; onChanged(); } else { - trajectoryExactMatchInputBuilder_.setMessage(value); + cometInputBuilder_.setMessage(value); } - metricInputsCase_ = 33; + metricInputsCase_ = 31; return this; } /** * * *
-     * Input for trajectory exact match metric.
+     * Translation metrics.
+     * Input for Comet metric.
      * 
* - * - * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput trajectory_exact_match_input = 33; - * + * .google.cloud.aiplatform.v1beta1.CometInput comet_input = 31; */ - public Builder setTrajectoryExactMatchInput( - com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.Builder builderForValue) { - if (trajectoryExactMatchInputBuilder_ == null) { + public Builder setCometInput( + com.google.cloud.aiplatform.v1beta1.CometInput.Builder builderForValue) { + if (cometInputBuilder_ == null) { metricInputs_ = builderForValue.build(); onChanged(); } else { - trajectoryExactMatchInputBuilder_.setMessage(builderForValue.build()); + cometInputBuilder_.setMessage(builderForValue.build()); } - metricInputsCase_ = 33; + metricInputsCase_ = 31; return this; } /** * * *
-     * Input for trajectory exact match metric.
+     * Translation metrics.
+     * Input for Comet metric.
      * 
* - * - * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput trajectory_exact_match_input = 33; - * + * .google.cloud.aiplatform.v1beta1.CometInput comet_input = 31; */ - public Builder mergeTrajectoryExactMatchInput( - com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput value) { - if (trajectoryExactMatchInputBuilder_ == null) { - if (metricInputsCase_ == 33 + public Builder mergeCometInput(com.google.cloud.aiplatform.v1beta1.CometInput value) { + if (cometInputBuilder_ == null) { + if (metricInputsCase_ == 31 && metricInputs_ - != com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput - .getDefaultInstance()) { + != com.google.cloud.aiplatform.v1beta1.CometInput.getDefaultInstance()) { metricInputs_ = - com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.newBuilder( - (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput) metricInputs_) + com.google.cloud.aiplatform.v1beta1.CometInput.newBuilder( + (com.google.cloud.aiplatform.v1beta1.CometInput) metricInputs_) .mergeFrom(value) .buildPartial(); } else { @@ -8669,39 +8947,38 @@ public Builder mergeTrajectoryExactMatchInput( } onChanged(); } else { - if (metricInputsCase_ == 33) { - trajectoryExactMatchInputBuilder_.mergeFrom(value); + if (metricInputsCase_ == 31) { + cometInputBuilder_.mergeFrom(value); } else { - trajectoryExactMatchInputBuilder_.setMessage(value); + cometInputBuilder_.setMessage(value); } } - metricInputsCase_ = 33; + metricInputsCase_ = 31; return this; } /** * * *
-     * Input for trajectory exact match metric.
+     * Translation metrics.
+     * Input for Comet metric.
      * 
* - * - * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput trajectory_exact_match_input = 33; - * + * .google.cloud.aiplatform.v1beta1.CometInput comet_input = 31; */ - public Builder clearTrajectoryExactMatchInput() { - if (trajectoryExactMatchInputBuilder_ == null) { - if (metricInputsCase_ == 33) { + public Builder clearCometInput() { + if (cometInputBuilder_ == null) { + if (metricInputsCase_ == 31) { metricInputsCase_ = 0; metricInputs_ = null; onChanged(); } } else { - if (metricInputsCase_ == 33) { + if (metricInputsCase_ == 31) { metricInputsCase_ = 0; metricInputs_ = null; } - trajectoryExactMatchInputBuilder_.clear(); + cometInputBuilder_.clear(); } return this; } @@ -8709,90 +8986,529 @@ public Builder clearTrajectoryExactMatchInput() { * * *
-     * Input for trajectory exact match metric.
+     * Translation metrics.
+     * Input for Comet metric.
      * 
* - * - * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput trajectory_exact_match_input = 33; - * + * .google.cloud.aiplatform.v1beta1.CometInput comet_input = 31; */ - public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.Builder - getTrajectoryExactMatchInputBuilder() { - return getTrajectoryExactMatchInputFieldBuilder().getBuilder(); + public com.google.cloud.aiplatform.v1beta1.CometInput.Builder getCometInputBuilder() { + return getCometInputFieldBuilder().getBuilder(); } /** * * *
-     * Input for trajectory exact match metric.
+     * Translation metrics.
+     * Input for Comet metric.
      * 
* - * - * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput trajectory_exact_match_input = 33; - * + * .google.cloud.aiplatform.v1beta1.CometInput comet_input = 31; */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInputOrBuilder - getTrajectoryExactMatchInputOrBuilder() { - if ((metricInputsCase_ == 33) && (trajectoryExactMatchInputBuilder_ != null)) { - return trajectoryExactMatchInputBuilder_.getMessageOrBuilder(); + public com.google.cloud.aiplatform.v1beta1.CometInputOrBuilder getCometInputOrBuilder() { + if ((metricInputsCase_ == 31) && (cometInputBuilder_ != null)) { + return cometInputBuilder_.getMessageOrBuilder(); } else { - if (metricInputsCase_ == 33) { - return (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput) metricInputs_; + if (metricInputsCase_ == 31) { + return (com.google.cloud.aiplatform.v1beta1.CometInput) metricInputs_; } - return com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput.getDefaultInstance(); + return com.google.cloud.aiplatform.v1beta1.CometInput.getDefaultInstance(); } } /** * * *
-     * Input for trajectory exact match metric.
+     * Translation metrics.
+     * Input for Comet metric.
      * 
* - * - * .google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput trajectory_exact_match_input = 33; - * + * .google.cloud.aiplatform.v1beta1.CometInput comet_input = 31; */ 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_ = + com.google.cloud.aiplatform.v1beta1.CometInput, + com.google.cloud.aiplatform.v1beta1.CometInput.Builder, + com.google.cloud.aiplatform.v1beta1.CometInputOrBuilder> + getCometInputFieldBuilder() { + if (cometInputBuilder_ == null) { + if (!(metricInputsCase_ == 31)) { + metricInputs_ = com.google.cloud.aiplatform.v1beta1.CometInput.getDefaultInstance(); + } + cometInputBuilder_ = 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_, + com.google.cloud.aiplatform.v1beta1.CometInput, + com.google.cloud.aiplatform.v1beta1.CometInput.Builder, + com.google.cloud.aiplatform.v1beta1.CometInputOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.CometInput) metricInputs_, getParentForChildren(), isClean()); metricInputs_ = null; } - metricInputsCase_ = 33; + metricInputsCase_ = 31; onChanged(); - return trajectoryExactMatchInputBuilder_; + return cometInputBuilder_; } 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_; + com.google.cloud.aiplatform.v1beta1.MetricxInput, + com.google.cloud.aiplatform.v1beta1.MetricxInput.Builder, + com.google.cloud.aiplatform.v1beta1.MetricxInputOrBuilder> + metricxInputBuilder_; /** * * *
-     * Input for trajectory in order match metric.
+     * Input for Metricx metric.
      * 
* - * - * .google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput trajectory_in_order_match_input = 34; + * .google.cloud.aiplatform.v1beta1.MetricxInput metricx_input = 32; + * + * @return Whether the metricxInput field is set. + */ + @java.lang.Override + public boolean hasMetricxInput() { + return metricInputsCase_ == 32; + } + /** + * + * + *
+     * Input for Metricx metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.MetricxInput metricx_input = 32; + * + * @return The metricxInput. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricxInput getMetricxInput() { + if (metricxInputBuilder_ == null) { + if (metricInputsCase_ == 32) { + return (com.google.cloud.aiplatform.v1beta1.MetricxInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.MetricxInput.getDefaultInstance(); + } else { + if (metricInputsCase_ == 32) { + return metricxInputBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.MetricxInput.getDefaultInstance(); + } + } + /** + * + * + *
+     * Input for Metricx metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.MetricxInput metricx_input = 32; + */ + public Builder setMetricxInput(com.google.cloud.aiplatform.v1beta1.MetricxInput value) { + if (metricxInputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metricInputs_ = value; + onChanged(); + } else { + metricxInputBuilder_.setMessage(value); + } + metricInputsCase_ = 32; + return this; + } + /** + * + * + *
+     * Input for Metricx metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.MetricxInput metricx_input = 32; + */ + public Builder setMetricxInput( + com.google.cloud.aiplatform.v1beta1.MetricxInput.Builder builderForValue) { + if (metricxInputBuilder_ == null) { + metricInputs_ = builderForValue.build(); + onChanged(); + } else { + metricxInputBuilder_.setMessage(builderForValue.build()); + } + metricInputsCase_ = 32; + return this; + } + /** + * + * + *
+     * Input for Metricx metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.MetricxInput metricx_input = 32; + */ + public Builder mergeMetricxInput(com.google.cloud.aiplatform.v1beta1.MetricxInput value) { + if (metricxInputBuilder_ == null) { + if (metricInputsCase_ == 32 + && metricInputs_ + != com.google.cloud.aiplatform.v1beta1.MetricxInput.getDefaultInstance()) { + metricInputs_ = + com.google.cloud.aiplatform.v1beta1.MetricxInput.newBuilder( + (com.google.cloud.aiplatform.v1beta1.MetricxInput) metricInputs_) + .mergeFrom(value) + .buildPartial(); + } else { + metricInputs_ = value; + } + onChanged(); + } else { + if (metricInputsCase_ == 32) { + metricxInputBuilder_.mergeFrom(value); + } else { + metricxInputBuilder_.setMessage(value); + } + } + metricInputsCase_ = 32; + return this; + } + /** + * + * + *
+     * Input for Metricx metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.MetricxInput metricx_input = 32; + */ + public Builder clearMetricxInput() { + if (metricxInputBuilder_ == null) { + if (metricInputsCase_ == 32) { + metricInputsCase_ = 0; + metricInputs_ = null; + onChanged(); + } + } else { + if (metricInputsCase_ == 32) { + metricInputsCase_ = 0; + metricInputs_ = null; + } + metricxInputBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Input for Metricx metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.MetricxInput metricx_input = 32; + */ + public com.google.cloud.aiplatform.v1beta1.MetricxInput.Builder getMetricxInputBuilder() { + return getMetricxInputFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Input for Metricx metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.MetricxInput metricx_input = 32; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricxInputOrBuilder getMetricxInputOrBuilder() { + if ((metricInputsCase_ == 32) && (metricxInputBuilder_ != null)) { + return metricxInputBuilder_.getMessageOrBuilder(); + } else { + if (metricInputsCase_ == 32) { + return (com.google.cloud.aiplatform.v1beta1.MetricxInput) metricInputs_; + } + return com.google.cloud.aiplatform.v1beta1.MetricxInput.getDefaultInstance(); + } + } + /** + * + * + *
+     * Input for Metricx metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.MetricxInput metricx_input = 32; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.MetricxInput, + com.google.cloud.aiplatform.v1beta1.MetricxInput.Builder, + com.google.cloud.aiplatform.v1beta1.MetricxInputOrBuilder> + getMetricxInputFieldBuilder() { + if (metricxInputBuilder_ == null) { + if (!(metricInputsCase_ == 32)) { + metricInputs_ = com.google.cloud.aiplatform.v1beta1.MetricxInput.getDefaultInstance(); + } + metricxInputBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.MetricxInput, + com.google.cloud.aiplatform.v1beta1.MetricxInput.Builder, + com.google.cloud.aiplatform.v1beta1.MetricxInputOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.MetricxInput) metricInputs_, + getParentForChildren(), + isClean()); + metricInputs_ = null; + } + metricInputsCase_ = 32; + onChanged(); + return metricxInputBuilder_; + } + + 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. @@ -10023,7 +10739,7 @@ public Builder setLocation(java.lang.String value) { throw new NullPointerException(); } location_ = value; - bitField0_ |= 0x20000000; + bitField0_ |= 0x80000000; onChanged(); return this; } @@ -10043,7 +10759,7 @@ public Builder setLocation(java.lang.String value) { */ public Builder clearLocation() { location_ = getDefaultInstance().getLocation(); - bitField0_ = (bitField0_ & ~0x20000000); + bitField0_ = (bitField0_ & ~0x80000000); onChanged(); return this; } @@ -10068,11 +10784,217 @@ public Builder setLocationBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); location_ = value; - bitField0_ |= 0x20000000; + bitField0_ |= 0x80000000; onChanged(); return this; } + private com.google.cloud.aiplatform.v1beta1.AutoraterConfig autoraterConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.AutoraterConfig, + com.google.cloud.aiplatform.v1beta1.AutoraterConfig.Builder, + com.google.cloud.aiplatform.v1beta1.AutoraterConfigOrBuilder> + autoraterConfigBuilder_; + /** + * + * + *
+     * Optional. Autorater config used for evaluation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AutoraterConfig autorater_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the autoraterConfig field is set. + */ + public boolean hasAutoraterConfig() { + return ((bitField1_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Optional. Autorater config used for evaluation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AutoraterConfig autorater_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The autoraterConfig. + */ + public com.google.cloud.aiplatform.v1beta1.AutoraterConfig getAutoraterConfig() { + if (autoraterConfigBuilder_ == null) { + return autoraterConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.AutoraterConfig.getDefaultInstance() + : autoraterConfig_; + } else { + return autoraterConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Autorater config used for evaluation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AutoraterConfig autorater_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAutoraterConfig(com.google.cloud.aiplatform.v1beta1.AutoraterConfig value) { + if (autoraterConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + autoraterConfig_ = value; + } else { + autoraterConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Autorater config used for evaluation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AutoraterConfig autorater_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAutoraterConfig( + com.google.cloud.aiplatform.v1beta1.AutoraterConfig.Builder builderForValue) { + if (autoraterConfigBuilder_ == null) { + autoraterConfig_ = builderForValue.build(); + } else { + autoraterConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Autorater config used for evaluation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AutoraterConfig autorater_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAutoraterConfig(com.google.cloud.aiplatform.v1beta1.AutoraterConfig value) { + if (autoraterConfigBuilder_ == null) { + if (((bitField1_ & 0x00000001) != 0) + && autoraterConfig_ != null + && autoraterConfig_ + != com.google.cloud.aiplatform.v1beta1.AutoraterConfig.getDefaultInstance()) { + getAutoraterConfigBuilder().mergeFrom(value); + } else { + autoraterConfig_ = value; + } + } else { + autoraterConfigBuilder_.mergeFrom(value); + } + if (autoraterConfig_ != null) { + bitField1_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Autorater config used for evaluation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AutoraterConfig autorater_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAutoraterConfig() { + bitField1_ = (bitField1_ & ~0x00000001); + autoraterConfig_ = null; + if (autoraterConfigBuilder_ != null) { + autoraterConfigBuilder_.dispose(); + autoraterConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Autorater config used for evaluation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AutoraterConfig autorater_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.AutoraterConfig.Builder getAutoraterConfigBuilder() { + bitField1_ |= 0x00000001; + onChanged(); + return getAutoraterConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Autorater config used for evaluation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AutoraterConfig autorater_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.AutoraterConfigOrBuilder + getAutoraterConfigOrBuilder() { + if (autoraterConfigBuilder_ != null) { + return autoraterConfigBuilder_.getMessageOrBuilder(); + } else { + return autoraterConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.AutoraterConfig.getDefaultInstance() + : autoraterConfig_; + } + } + /** + * + * + *
+     * Optional. Autorater config used for evaluation.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AutoraterConfig autorater_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.AutoraterConfig, + com.google.cloud.aiplatform.v1beta1.AutoraterConfig.Builder, + com.google.cloud.aiplatform.v1beta1.AutoraterConfigOrBuilder> + getAutoraterConfigFieldBuilder() { + if (autoraterConfigBuilder_ == null) { + autoraterConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.AutoraterConfig, + com.google.cloud.aiplatform.v1beta1.AutoraterConfig.Builder, + com.google.cloud.aiplatform.v1beta1.AutoraterConfigOrBuilder>( + getAutoraterConfig(), getParentForChildren(), isClean()); + autoraterConfig_ = null; + } + return autoraterConfigBuilder_; + } + @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/EvaluateInstancesRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluateInstancesRequestOrBuilder.java index ee6b62e939a6..c11296afc25e 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,79 @@ public interface EvaluateInstancesRequestOrBuilder com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchInputOrBuilder getToolParameterKvMatchInputOrBuilder(); + /** + * + * + *
+   * Translation metrics.
+   * Input for Comet metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.CometInput comet_input = 31; + * + * @return Whether the cometInput field is set. + */ + boolean hasCometInput(); + /** + * + * + *
+   * Translation metrics.
+   * Input for Comet metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.CometInput comet_input = 31; + * + * @return The cometInput. + */ + com.google.cloud.aiplatform.v1beta1.CometInput getCometInput(); + /** + * + * + *
+   * Translation metrics.
+   * Input for Comet metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.CometInput comet_input = 31; + */ + com.google.cloud.aiplatform.v1beta1.CometInputOrBuilder getCometInputOrBuilder(); + + /** + * + * + *
+   * Input for Metricx metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.MetricxInput metricx_input = 32; + * + * @return Whether the metricxInput field is set. + */ + boolean hasMetricxInput(); + /** + * + * + *
+   * Input for Metricx metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.MetricxInput metricx_input = 32; + * + * @return The metricxInput. + */ + com.google.cloud.aiplatform.v1beta1.MetricxInput getMetricxInput(); + /** + * + * + *
+   * Input for Metricx metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.MetricxInput metricx_input = 32; + */ + com.google.cloud.aiplatform.v1beta1.MetricxInputOrBuilder getMetricxInputOrBuilder(); + /** * * @@ -1215,6 +1288,47 @@ public interface EvaluateInstancesRequestOrBuilder */ com.google.protobuf.ByteString getLocationBytes(); + /** + * + * + *
+   * Optional. Autorater config used for evaluation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AutoraterConfig autorater_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the autoraterConfig field is set. + */ + boolean hasAutoraterConfig(); + /** + * + * + *
+   * Optional. Autorater config used for evaluation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AutoraterConfig autorater_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The autoraterConfig. + */ + com.google.cloud.aiplatform.v1beta1.AutoraterConfig getAutoraterConfig(); + /** + * + * + *
+   * Optional. Autorater config used for evaluation.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.AutoraterConfig autorater_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.AutoraterConfigOrBuilder getAutoraterConfigOrBuilder(); + com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest.MetricInputsCase getMetricInputsCase(); } 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 a18508e669d0..61691da10ca9 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,8 @@ public enum EvaluationResultsCase TOOL_NAME_MATCH_RESULTS(19), TOOL_PARAMETER_KEY_MATCH_RESULTS(20), TOOL_PARAMETER_KV_MATCH_RESULTS(21), + COMET_RESULT(29), + METRICX_RESULT(30), TRAJECTORY_EXACT_MATCH_RESULTS(31), TRAJECTORY_IN_ORDER_MATCH_RESULTS(32), TRAJECTORY_ANY_ORDER_MATCH_RESULTS(33), @@ -163,6 +165,10 @@ public static EvaluationResultsCase forNumber(int value) { return TOOL_PARAMETER_KEY_MATCH_RESULTS; case 21: return TOOL_PARAMETER_KV_MATCH_RESULTS; + case 29: + return COMET_RESULT; + case 30: + return METRICX_RESULT; case 31: return TRAJECTORY_EXACT_MATCH_RESULTS; case 32: @@ -1514,6 +1520,111 @@ public boolean hasToolParameterKvMatchResults() { return com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResults.getDefaultInstance(); } + public static final int COMET_RESULT_FIELD_NUMBER = 29; + /** + * + * + *
+   * Translation metrics.
+   * Result for Comet metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.CometResult comet_result = 29; + * + * @return Whether the cometResult field is set. + */ + @java.lang.Override + public boolean hasCometResult() { + return evaluationResultsCase_ == 29; + } + /** + * + * + *
+   * Translation metrics.
+   * Result for Comet metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.CometResult comet_result = 29; + * + * @return The cometResult. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CometResult getCometResult() { + if (evaluationResultsCase_ == 29) { + return (com.google.cloud.aiplatform.v1beta1.CometResult) evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.CometResult.getDefaultInstance(); + } + /** + * + * + *
+   * Translation metrics.
+   * Result for Comet metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.CometResult comet_result = 29; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CometResultOrBuilder getCometResultOrBuilder() { + if (evaluationResultsCase_ == 29) { + return (com.google.cloud.aiplatform.v1beta1.CometResult) evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.CometResult.getDefaultInstance(); + } + + public static final int METRICX_RESULT_FIELD_NUMBER = 30; + /** + * + * + *
+   * Result for Metricx metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.MetricxResult metricx_result = 30; + * + * @return Whether the metricxResult field is set. + */ + @java.lang.Override + public boolean hasMetricxResult() { + return evaluationResultsCase_ == 30; + } + /** + * + * + *
+   * Result for Metricx metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.MetricxResult metricx_result = 30; + * + * @return The metricxResult. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricxResult getMetricxResult() { + if (evaluationResultsCase_ == 30) { + return (com.google.cloud.aiplatform.v1beta1.MetricxResult) evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.MetricxResult.getDefaultInstance(); + } + /** + * + * + *
+   * Result for Metricx metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.MetricxResult metricx_result = 30; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricxResultOrBuilder getMetricxResultOrBuilder() { + if (evaluationResultsCase_ == 30) { + return (com.google.cloud.aiplatform.v1beta1.MetricxResult) evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.MetricxResult.getDefaultInstance(); + } + public static final int TRAJECTORY_EXACT_MATCH_RESULTS_FIELD_NUMBER = 31; /** * @@ -1985,6 +2096,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 28, (com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult) evaluationResults_); } + if (evaluationResultsCase_ == 29) { + output.writeMessage(29, (com.google.cloud.aiplatform.v1beta1.CometResult) evaluationResults_); + } + if (evaluationResultsCase_ == 30) { + output.writeMessage( + 30, (com.google.cloud.aiplatform.v1beta1.MetricxResult) evaluationResults_); + } if (evaluationResultsCase_ == 31) { output.writeMessage( 31, (com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults) evaluationResults_); @@ -2156,6 +2274,16 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 28, (com.google.cloud.aiplatform.v1beta1.PairwiseMetricResult) evaluationResults_); } + if (evaluationResultsCase_ == 29) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 29, (com.google.cloud.aiplatform.v1beta1.CometResult) evaluationResults_); + } + if (evaluationResultsCase_ == 30) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 30, (com.google.cloud.aiplatform.v1beta1.MetricxResult) evaluationResults_); + } if (evaluationResultsCase_ == 31) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -2292,6 +2420,12 @@ public boolean equals(final java.lang.Object obj) { if (!getToolParameterKvMatchResults().equals(other.getToolParameterKvMatchResults())) return false; break; + case 29: + if (!getCometResult().equals(other.getCometResult())) return false; + break; + case 30: + if (!getMetricxResult().equals(other.getMetricxResult())) return false; + break; case 31: if (!getTrajectoryExactMatchResults().equals(other.getTrajectoryExactMatchResults())) return false; @@ -2422,6 +2556,14 @@ public int hashCode() { hash = (37 * hash) + TOOL_PARAMETER_KV_MATCH_RESULTS_FIELD_NUMBER; hash = (53 * hash) + getToolParameterKvMatchResults().hashCode(); break; + case 29: + hash = (37 * hash) + COMET_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getCometResult().hashCode(); + break; + case 30: + hash = (37 * hash) + METRICX_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getMetricxResult().hashCode(); + break; case 31: hash = (37 * hash) + TRAJECTORY_EXACT_MATCH_RESULTS_FIELD_NUMBER; hash = (53 * hash) + getTrajectoryExactMatchResults().hashCode(); @@ -2658,6 +2800,12 @@ public Builder clear() { if (toolParameterKvMatchResultsBuilder_ != null) { toolParameterKvMatchResultsBuilder_.clear(); } + if (cometResultBuilder_ != null) { + cometResultBuilder_.clear(); + } + if (metricxResultBuilder_ != null) { + metricxResultBuilder_.clear(); + } if (trajectoryExactMatchResultsBuilder_ != null) { trajectoryExactMatchResultsBuilder_.clear(); } @@ -2792,6 +2940,12 @@ private void buildPartialOneofs( if (evaluationResultsCase_ == 21 && toolParameterKvMatchResultsBuilder_ != null) { result.evaluationResults_ = toolParameterKvMatchResultsBuilder_.build(); } + if (evaluationResultsCase_ == 29 && cometResultBuilder_ != null) { + result.evaluationResults_ = cometResultBuilder_.build(); + } + if (evaluationResultsCase_ == 30 && metricxResultBuilder_ != null) { + result.evaluationResults_ = metricxResultBuilder_.build(); + } if (evaluationResultsCase_ == 31 && trajectoryExactMatchResultsBuilder_ != null) { result.evaluationResults_ = trajectoryExactMatchResultsBuilder_.build(); } @@ -2976,6 +3130,16 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRe mergeToolParameterKvMatchResults(other.getToolParameterKvMatchResults()); break; } + case COMET_RESULT: + { + mergeCometResult(other.getCometResult()); + break; + } + case METRICX_RESULT: + { + mergeMetricxResult(other.getMetricxResult()); + break; + } case TRAJECTORY_EXACT_MATCH_RESULTS: { mergeTrajectoryExactMatchResults(other.getTrajectoryExactMatchResults()); @@ -3200,6 +3364,18 @@ public Builder mergeFrom( evaluationResultsCase_ = 28; break; } // case 226 + case 234: + { + input.readMessage(getCometResultFieldBuilder().getBuilder(), extensionRegistry); + evaluationResultsCase_ = 29; + break; + } // case 234 + case 242: + { + input.readMessage(getMetricxResultFieldBuilder().getBuilder(), extensionRegistry); + evaluationResultsCase_ = 30; + break; + } // case 242 case 250: { input.readMessage( @@ -8608,6 +8784,436 @@ public Builder clearToolParameterKvMatchResults() { return toolParameterKvMatchResultsBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.CometResult, + com.google.cloud.aiplatform.v1beta1.CometResult.Builder, + com.google.cloud.aiplatform.v1beta1.CometResultOrBuilder> + cometResultBuilder_; + /** + * + * + *
+     * Translation metrics.
+     * Result for Comet metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.CometResult comet_result = 29; + * + * @return Whether the cometResult field is set. + */ + @java.lang.Override + public boolean hasCometResult() { + return evaluationResultsCase_ == 29; + } + /** + * + * + *
+     * Translation metrics.
+     * Result for Comet metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.CometResult comet_result = 29; + * + * @return The cometResult. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CometResult getCometResult() { + if (cometResultBuilder_ == null) { + if (evaluationResultsCase_ == 29) { + return (com.google.cloud.aiplatform.v1beta1.CometResult) evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.CometResult.getDefaultInstance(); + } else { + if (evaluationResultsCase_ == 29) { + return cometResultBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.CometResult.getDefaultInstance(); + } + } + /** + * + * + *
+     * Translation metrics.
+     * Result for Comet metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.CometResult comet_result = 29; + */ + public Builder setCometResult(com.google.cloud.aiplatform.v1beta1.CometResult value) { + if (cometResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + evaluationResults_ = value; + onChanged(); + } else { + cometResultBuilder_.setMessage(value); + } + evaluationResultsCase_ = 29; + return this; + } + /** + * + * + *
+     * Translation metrics.
+     * Result for Comet metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.CometResult comet_result = 29; + */ + public Builder setCometResult( + com.google.cloud.aiplatform.v1beta1.CometResult.Builder builderForValue) { + if (cometResultBuilder_ == null) { + evaluationResults_ = builderForValue.build(); + onChanged(); + } else { + cometResultBuilder_.setMessage(builderForValue.build()); + } + evaluationResultsCase_ = 29; + return this; + } + /** + * + * + *
+     * Translation metrics.
+     * Result for Comet metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.CometResult comet_result = 29; + */ + public Builder mergeCometResult(com.google.cloud.aiplatform.v1beta1.CometResult value) { + if (cometResultBuilder_ == null) { + if (evaluationResultsCase_ == 29 + && evaluationResults_ + != com.google.cloud.aiplatform.v1beta1.CometResult.getDefaultInstance()) { + evaluationResults_ = + com.google.cloud.aiplatform.v1beta1.CometResult.newBuilder( + (com.google.cloud.aiplatform.v1beta1.CometResult) evaluationResults_) + .mergeFrom(value) + .buildPartial(); + } else { + evaluationResults_ = value; + } + onChanged(); + } else { + if (evaluationResultsCase_ == 29) { + cometResultBuilder_.mergeFrom(value); + } else { + cometResultBuilder_.setMessage(value); + } + } + evaluationResultsCase_ = 29; + return this; + } + /** + * + * + *
+     * Translation metrics.
+     * Result for Comet metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.CometResult comet_result = 29; + */ + public Builder clearCometResult() { + if (cometResultBuilder_ == null) { + if (evaluationResultsCase_ == 29) { + evaluationResultsCase_ = 0; + evaluationResults_ = null; + onChanged(); + } + } else { + if (evaluationResultsCase_ == 29) { + evaluationResultsCase_ = 0; + evaluationResults_ = null; + } + cometResultBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Translation metrics.
+     * Result for Comet metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.CometResult comet_result = 29; + */ + public com.google.cloud.aiplatform.v1beta1.CometResult.Builder getCometResultBuilder() { + return getCometResultFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Translation metrics.
+     * Result for Comet metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.CometResult comet_result = 29; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CometResultOrBuilder getCometResultOrBuilder() { + if ((evaluationResultsCase_ == 29) && (cometResultBuilder_ != null)) { + return cometResultBuilder_.getMessageOrBuilder(); + } else { + if (evaluationResultsCase_ == 29) { + return (com.google.cloud.aiplatform.v1beta1.CometResult) evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.CometResult.getDefaultInstance(); + } + } + /** + * + * + *
+     * Translation metrics.
+     * Result for Comet metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.CometResult comet_result = 29; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.CometResult, + com.google.cloud.aiplatform.v1beta1.CometResult.Builder, + com.google.cloud.aiplatform.v1beta1.CometResultOrBuilder> + getCometResultFieldBuilder() { + if (cometResultBuilder_ == null) { + if (!(evaluationResultsCase_ == 29)) { + evaluationResults_ = com.google.cloud.aiplatform.v1beta1.CometResult.getDefaultInstance(); + } + cometResultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.CometResult, + com.google.cloud.aiplatform.v1beta1.CometResult.Builder, + com.google.cloud.aiplatform.v1beta1.CometResultOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.CometResult) evaluationResults_, + getParentForChildren(), + isClean()); + evaluationResults_ = null; + } + evaluationResultsCase_ = 29; + onChanged(); + return cometResultBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.MetricxResult, + com.google.cloud.aiplatform.v1beta1.MetricxResult.Builder, + com.google.cloud.aiplatform.v1beta1.MetricxResultOrBuilder> + metricxResultBuilder_; + /** + * + * + *
+     * Result for Metricx metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.MetricxResult metricx_result = 30; + * + * @return Whether the metricxResult field is set. + */ + @java.lang.Override + public boolean hasMetricxResult() { + return evaluationResultsCase_ == 30; + } + /** + * + * + *
+     * Result for Metricx metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.MetricxResult metricx_result = 30; + * + * @return The metricxResult. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricxResult getMetricxResult() { + if (metricxResultBuilder_ == null) { + if (evaluationResultsCase_ == 30) { + return (com.google.cloud.aiplatform.v1beta1.MetricxResult) evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.MetricxResult.getDefaultInstance(); + } else { + if (evaluationResultsCase_ == 30) { + return metricxResultBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.MetricxResult.getDefaultInstance(); + } + } + /** + * + * + *
+     * Result for Metricx metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.MetricxResult metricx_result = 30; + */ + public Builder setMetricxResult(com.google.cloud.aiplatform.v1beta1.MetricxResult value) { + if (metricxResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + evaluationResults_ = value; + onChanged(); + } else { + metricxResultBuilder_.setMessage(value); + } + evaluationResultsCase_ = 30; + return this; + } + /** + * + * + *
+     * Result for Metricx metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.MetricxResult metricx_result = 30; + */ + public Builder setMetricxResult( + com.google.cloud.aiplatform.v1beta1.MetricxResult.Builder builderForValue) { + if (metricxResultBuilder_ == null) { + evaluationResults_ = builderForValue.build(); + onChanged(); + } else { + metricxResultBuilder_.setMessage(builderForValue.build()); + } + evaluationResultsCase_ = 30; + return this; + } + /** + * + * + *
+     * Result for Metricx metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.MetricxResult metricx_result = 30; + */ + public Builder mergeMetricxResult(com.google.cloud.aiplatform.v1beta1.MetricxResult value) { + if (metricxResultBuilder_ == null) { + if (evaluationResultsCase_ == 30 + && evaluationResults_ + != com.google.cloud.aiplatform.v1beta1.MetricxResult.getDefaultInstance()) { + evaluationResults_ = + com.google.cloud.aiplatform.v1beta1.MetricxResult.newBuilder( + (com.google.cloud.aiplatform.v1beta1.MetricxResult) evaluationResults_) + .mergeFrom(value) + .buildPartial(); + } else { + evaluationResults_ = value; + } + onChanged(); + } else { + if (evaluationResultsCase_ == 30) { + metricxResultBuilder_.mergeFrom(value); + } else { + metricxResultBuilder_.setMessage(value); + } + } + evaluationResultsCase_ = 30; + return this; + } + /** + * + * + *
+     * Result for Metricx metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.MetricxResult metricx_result = 30; + */ + public Builder clearMetricxResult() { + if (metricxResultBuilder_ == null) { + if (evaluationResultsCase_ == 30) { + evaluationResultsCase_ = 0; + evaluationResults_ = null; + onChanged(); + } + } else { + if (evaluationResultsCase_ == 30) { + evaluationResultsCase_ = 0; + evaluationResults_ = null; + } + metricxResultBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Result for Metricx metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.MetricxResult metricx_result = 30; + */ + public com.google.cloud.aiplatform.v1beta1.MetricxResult.Builder getMetricxResultBuilder() { + return getMetricxResultFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Result for Metricx metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.MetricxResult metricx_result = 30; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricxResultOrBuilder getMetricxResultOrBuilder() { + if ((evaluationResultsCase_ == 30) && (metricxResultBuilder_ != null)) { + return metricxResultBuilder_.getMessageOrBuilder(); + } else { + if (evaluationResultsCase_ == 30) { + return (com.google.cloud.aiplatform.v1beta1.MetricxResult) evaluationResults_; + } + return com.google.cloud.aiplatform.v1beta1.MetricxResult.getDefaultInstance(); + } + } + /** + * + * + *
+     * Result for Metricx metric.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.MetricxResult metricx_result = 30; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.MetricxResult, + com.google.cloud.aiplatform.v1beta1.MetricxResult.Builder, + com.google.cloud.aiplatform.v1beta1.MetricxResultOrBuilder> + getMetricxResultFieldBuilder() { + if (metricxResultBuilder_ == null) { + if (!(evaluationResultsCase_ == 30)) { + evaluationResults_ = + com.google.cloud.aiplatform.v1beta1.MetricxResult.getDefaultInstance(); + } + metricxResultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.MetricxResult, + com.google.cloud.aiplatform.v1beta1.MetricxResult.Builder, + com.google.cloud.aiplatform.v1beta1.MetricxResultOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.MetricxResult) evaluationResults_, + getParentForChildren(), + isClean()); + evaluationResults_ = null; + } + evaluationResultsCase_ = 30; + onChanged(); + return metricxResultBuilder_; + } + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults, com.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchResults.Builder, 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 73624de8a262..e87a0bd9777e 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,79 @@ public interface EvaluateInstancesResponseOrBuilder com.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResultsOrBuilder getToolParameterKvMatchResultsOrBuilder(); + /** + * + * + *
+   * Translation metrics.
+   * Result for Comet metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.CometResult comet_result = 29; + * + * @return Whether the cometResult field is set. + */ + boolean hasCometResult(); + /** + * + * + *
+   * Translation metrics.
+   * Result for Comet metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.CometResult comet_result = 29; + * + * @return The cometResult. + */ + com.google.cloud.aiplatform.v1beta1.CometResult getCometResult(); + /** + * + * + *
+   * Translation metrics.
+   * Result for Comet metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.CometResult comet_result = 29; + */ + com.google.cloud.aiplatform.v1beta1.CometResultOrBuilder getCometResultOrBuilder(); + + /** + * + * + *
+   * Result for Metricx metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.MetricxResult metricx_result = 30; + * + * @return Whether the metricxResult field is set. + */ + boolean hasMetricxResult(); + /** + * + * + *
+   * Result for Metricx metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.MetricxResult metricx_result = 30; + * + * @return The metricxResult. + */ + com.google.cloud.aiplatform.v1beta1.MetricxResult getMetricxResult(); + /** + * + * + *
+   * Result for Metricx metric.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.MetricxResult metricx_result = 30; + */ + com.google.cloud.aiplatform.v1beta1.MetricxResultOrBuilder getMetricxResultOrBuilder(); + /** * * 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 7d90495e9d68..f604f2432e13 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 @@ -28,6 +28,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_AutoraterConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_AutoraterConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_EvaluateInstancesRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -432,6 +436,38 @@ 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_CometInput_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CometInput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CometSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CometSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CometInstance_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CometInstance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CometResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CometResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_MetricxInput_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_MetricxInput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_MetricxSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_MetricxSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_MetricxInstance_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_MetricxInstance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_MetricxResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_MetricxResult_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_TrajectoryExactMatchInput_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -574,594 +610,643 @@ 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\"\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" - + ".v1beta1.BleuInputH\000\022B\n\013rouge_input\030\004 \001(" - + "\0132+.google.cloud.aiplatform.v1beta1.Roug" - + "eInputH\000\022F\n\rfluency_input\030\005 \001(\0132-.google" - + ".cloud.aiplatform.v1beta1.FluencyInputH\000" - + "\022J\n\017coherence_input\030\006 \001(\0132/.google.cloud" - + ".aiplatform.v1beta1.CoherenceInputH\000\022D\n\014" - + "safety_input\030\010 \001(\0132,.google.cloud.aiplat" - + "form.v1beta1.SafetyInputH\000\022P\n\022groundedne" - + "ss_input\030\t \001(\01322.google.cloud.aiplatform" - + ".v1beta1.GroundednessInputH\000\022N\n\021fulfillm" - + "ent_input\030\014 \001(\01321.google.cloud.aiplatfor" - + "m.v1beta1.FulfillmentInputH\000\022a\n\033summariz" - + "ation_quality_input\030\007 \001(\0132:.google.cloud" - + ".aiplatform.v1beta1.SummarizationQuality" - + "InputH\000\022r\n$pairwise_summarization_qualit" - + "y_input\030\027 \001(\0132B.google.cloud.aiplatform." - + "v1beta1.PairwiseSummarizationQualityInpu" - + "tH\000\022i\n\037summarization_helpfulness_input\030\016" - + " \001(\0132>.google.cloud.aiplatform.v1beta1.S" - + "ummarizationHelpfulnessInputH\000\022e\n\035summar" - + "ization_verbosity_input\030\017 \001(\0132<.google.c" - + "loud.aiplatform.v1beta1.SummarizationVer" - + "bosityInputH\000\022j\n question_answering_qual" - + "ity_input\030\n \001(\0132>.google.cloud.aiplatfor" - + "m.v1beta1.QuestionAnsweringQualityInputH" - + "\000\022{\n)pairwise_question_answering_quality" - + "_input\030\030 \001(\0132F.google.cloud.aiplatform.v" - + "1beta1.PairwiseQuestionAnsweringQualityI" - + "nputH\000\022n\n\"question_answering_relevance_i" - + "nput\030\020 \001(\0132@.google.cloud.aiplatform.v1b" - + "eta1.QuestionAnsweringRelevanceInputH\000\022r" - + "\n$question_answering_helpfulness_input\030\021" - + " \001(\0132B.google.cloud.aiplatform.v1beta1.Q" - + "uestionAnsweringHelpfulnessInputH\000\022r\n$qu" - + "estion_answering_correctness_input\030\022 \001(\013" - + "2B.google.cloud.aiplatform.v1beta1.Quest" - + "ionAnsweringCorrectnessInputH\000\022W\n\026pointw" - + "ise_metric_input\030\034 \001(\01325.google.cloud.ai" - + "platform.v1beta1.PointwiseMetricInputH\000\022" - + "U\n\025pairwise_metric_input\030\035 \001(\01324.google." - + "cloud.aiplatform.v1beta1.PairwiseMetricI" - + "nputH\000\022T\n\025tool_call_valid_input\030\023 \001(\01323." - + "google.cloud.aiplatform.v1beta1.ToolCall" - + "ValidInputH\000\022T\n\025tool_name_match_input\030\024 " - + "\001(\01323.google.cloud.aiplatform.v1beta1.To" - + "olNameMatchInputH\000\022e\n\036tool_parameter_key" - + "_match_input\030\025 \001(\0132;.google.cloud.aiplat" - + "form.v1beta1.ToolParameterKeyMatchInputH" - + "\000\022c\n\035tool_parameter_kv_match_input\030\026 \001(\013" - + "2:.google.cloud.aiplatform.v1beta1.ToolP" - + "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" + + ".proto\"\225\001\n\017AutoraterConfig\022 \n\016sampling_c" + + "ount\030\001 \001(\005B\003\340A\001H\000\210\001\001\022\036\n\014flip_enabled\030\002 \001" + + "(\010B\003\340A\001H\001\210\001\001\022\034\n\017autorater_model\030\003 \001(\tB\003\340" + + "A\001B\021\n\017_sampling_countB\017\n\r_flip_enabled\"\207" + + "\030\n\030EvaluateInstancesRequest\022M\n\021exact_mat" + + "ch_input\030\002 \001(\01320.google.cloud.aiplatform" + + ".v1beta1.ExactMatchInputH\000\022@\n\nbleu_input" + + "\030\003 \001(\0132*.google.cloud.aiplatform.v1beta1" + + ".BleuInputH\000\022B\n\013rouge_input\030\004 \001(\0132+.goog" + + "le.cloud.aiplatform.v1beta1.RougeInputH\000" + + "\022F\n\rfluency_input\030\005 \001(\0132-.google.cloud.a" + + "iplatform.v1beta1.FluencyInputH\000\022J\n\017cohe" + + "rence_input\030\006 \001(\0132/.google.cloud.aiplatf" + + "orm.v1beta1.CoherenceInputH\000\022D\n\014safety_i" + + "nput\030\010 \001(\0132,.google.cloud.aiplatform.v1b" + + "eta1.SafetyInputH\000\022P\n\022groundedness_input" + + "\030\t \001(\01322.google.cloud.aiplatform.v1beta1" + + ".GroundednessInputH\000\022N\n\021fulfillment_inpu" + + "t\030\014 \001(\01321.google.cloud.aiplatform.v1beta" + + "1.FulfillmentInputH\000\022a\n\033summarization_qu" + + "ality_input\030\007 \001(\0132:.google.cloud.aiplatf" + + "orm.v1beta1.SummarizationQualityInputH\000\022" + + "r\n$pairwise_summarization_quality_input\030" + + "\027 \001(\0132B.google.cloud.aiplatform.v1beta1." + + "PairwiseSummarizationQualityInputH\000\022i\n\037s" + + "ummarization_helpfulness_input\030\016 \001(\0132>.g" + + "oogle.cloud.aiplatform.v1beta1.Summariza" + + "tionHelpfulnessInputH\000\022e\n\035summarization_" + + "verbosity_input\030\017 \001(\0132<.google.cloud.aip" + + "latform.v1beta1.SummarizationVerbosityIn" + + "putH\000\022j\n question_answering_quality_inpu" + + "t\030\n \001(\0132>.google.cloud.aiplatform.v1beta" + + "1.QuestionAnsweringQualityInputH\000\022{\n)pai" + + "rwise_question_answering_quality_input\030\030" + + " \001(\0132F.google.cloud.aiplatform.v1beta1.P" + + "airwiseQuestionAnsweringQualityInputH\000\022n" + + "\n\"question_answering_relevance_input\030\020 \001" + + "(\0132@.google.cloud.aiplatform.v1beta1.Que" + + "stionAnsweringRelevanceInputH\000\022r\n$questi" + + "on_answering_helpfulness_input\030\021 \001(\0132B.g" + + "oogle.cloud.aiplatform.v1beta1.QuestionA" + + "nsweringHelpfulnessInputH\000\022r\n$question_a" + + "nswering_correctness_input\030\022 \001(\0132B.googl" + + "e.cloud.aiplatform.v1beta1.QuestionAnswe" + + "ringCorrectnessInputH\000\022W\n\026pointwise_metr" + + "ic_input\030\034 \001(\01325.google.cloud.aiplatform" + + ".v1beta1.PointwiseMetricInputH\000\022U\n\025pairw" + + "ise_metric_input\030\035 \001(\01324.google.cloud.ai" + + "platform.v1beta1.PairwiseMetricInputH\000\022T" + + "\n\025tool_call_valid_input\030\023 \001(\01323.google.c" + + "loud.aiplatform.v1beta1.ToolCallValidInp" + + "utH\000\022T\n\025tool_name_match_input\030\024 \001(\01323.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" - + "\"\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" + + "tchInputH\000\022e\n\036tool_parameter_key_match_i" + + "nput\030\025 \001(\0132;.google.cloud.aiplatform.v1b" + + "eta1.ToolParameterKeyMatchInputH\000\022c\n\035too" + + "l_parameter_kv_match_input\030\026 \001(\0132:.googl" + + "e.cloud.aiplatform.v1beta1.ToolParameter" + + "KVMatchInputH\000\022B\n\013comet_input\030\037 \001(\0132+.go" + + "ogle.cloud.aiplatform.v1beta1.CometInput" + + "H\000\022F\n\rmetricx_input\030 \001(\0132-.google.cloud" + + ".aiplatform.v1beta1.MetricxInputH\000\022b\n\034tr" + + "ajectory_exact_match_input\030! \001(\0132:.googl" + + "e.cloud.aiplatform.v1beta1.TrajectoryExa" + + "ctMatchInputH\000\022g\n\037trajectory_in_order_ma" + + "tch_input\030\" \001(\0132<.google.cloud.aiplatfor" + + "m.v1beta1.TrajectoryInOrderMatchInputH\000\022" + + "i\n trajectory_any_order_match_input\030# \001(" + + "\0132=.google.cloud.aiplatform.v1beta1.Traj" + + "ectoryAnyOrderMatchInputH\000\022_\n\032trajectory" + + "_precision_input\030% \001(\01329.google.cloud.ai" + + "platform.v1beta1.TrajectoryPrecisionInpu" + + "tH\000\022Y\n\027trajectory_recall_input\030& \001(\01326.g" + + "oogle.cloud.aiplatform.v1beta1.Trajector" + + "yRecallInputH\000\022i\n trajectory_single_tool" + + "_use_input\030\' \001(\0132=.google.cloud.aiplatfo" + + "rm.v1beta1.TrajectorySingleToolUseInputH" + + "\000\022;\n\010location\030\001 \001(\tB)\340A\002\372A#\n!locations.g" + + "oogleapis.com/Location\022O\n\020autorater_conf" + + "ig\030\036 \001(\01320.google.cloud.aiplatform.v1bet" + + "a1.AutoraterConfigB\003\340A\001B\017\n\rmetric_inputs" + + "\"\327\027\n\031EvaluateInstancesResponse\022Q\n\023exact_" + + "match_results\030\001 \001(\01322.google.cloud.aipla" + + "tform.v1beta1.ExactMatchResultsH\000\022D\n\014ble" + + "u_results\030\002 \001(\0132,.google.cloud.aiplatfor" + + "m.v1beta1.BleuResultsH\000\022F\n\rrouge_results" + + "\030\003 \001(\0132-.google.cloud.aiplatform.v1beta1" + + ".RougeResultsH\000\022H\n\016fluency_result\030\004 \001(\0132" + + "..google.cloud.aiplatform.v1beta1.Fluenc" + + "yResultH\000\022L\n\020coherence_result\030\005 \001(\01320.go" + + "ogle.cloud.aiplatform.v1beta1.CoherenceR" + + "esultH\000\022F\n\rsafety_result\030\007 \001(\0132-.google." + + "cloud.aiplatform.v1beta1.SafetyResultH\000\022" + + "R\n\023groundedness_result\030\010 \001(\01323.google.cl" + + "oud.aiplatform.v1beta1.GroundednessResul" + + "tH\000\022P\n\022fulfillment_result\030\013 \001(\01322.google" + + ".cloud.aiplatform.v1beta1.FulfillmentRes" + + "ultH\000\022c\n\034summarization_quality_result\030\006 " + + "\001(\0132;.google.cloud.aiplatform.v1beta1.Su" + + "mmarizationQualityResultH\000\022t\n%pairwise_s" + + "ummarization_quality_result\030\026 \001(\0132C.goog" + + "le.cloud.aiplatform.v1beta1.PairwiseSumm" + + "arizationQualityResultH\000\022k\n summarizatio" + + "n_helpfulness_result\030\r \001(\0132?.google.clou" + + "d.aiplatform.v1beta1.SummarizationHelpfu" + + "lnessResultH\000\022g\n\036summarization_verbosity" + + "_result\030\016 \001(\0132=.google.cloud.aiplatform." + + "v1beta1.SummarizationVerbosityResultH\000\022l" + + "\n!question_answering_quality_result\030\t \001(" + + "\0132?.google.cloud.aiplatform.v1beta1.Ques" + + "tionAnsweringQualityResultH\000\022}\n*pairwise" + + "_question_answering_quality_result\030\027 \001(\013" + + "2G.google.cloud.aiplatform.v1beta1.Pairw" + + "iseQuestionAnsweringQualityResultH\000\022p\n#q" + + "uestion_answering_relevance_result\030\017 \001(\013" + + "2A.google.cloud.aiplatform.v1beta1.Quest" + + "ionAnsweringRelevanceResultH\000\022t\n%questio" + + "n_answering_helpfulness_result\030\020 \001(\0132C.g" + + "oogle.cloud.aiplatform.v1beta1.QuestionA" + + "nsweringHelpfulnessResultH\000\022t\n%question_" + + "answering_correctness_result\030\021 \001(\0132C.goo" + + "gle.cloud.aiplatform.v1beta1.QuestionAns" + + "weringCorrectnessResultH\000\022Y\n\027pointwise_m" + + "etric_result\030\033 \001(\01326.google.cloud.aiplat" + + "form.v1beta1.PointwiseMetricResultH\000\022W\n\026" + + "pairwise_metric_result\030\034 \001(\01325.google.cl" + + "oud.aiplatform.v1beta1.PairwiseMetricRes" + + "ultH\000\022X\n\027tool_call_valid_results\030\022 \001(\01325" + + ".google.cloud.aiplatform.v1beta1.ToolCal" + + "lValidResultsH\000\022X\n\027tool_name_match_resul" + + "ts\030\023 \001(\01325.google.cloud.aiplatform.v1bet" + + "a1.ToolNameMatchResultsH\000\022i\n tool_parame" + + "ter_key_match_results\030\024 \001(\0132=.google.clo" + + "ud.aiplatform.v1beta1.ToolParameterKeyMa" + + "tchResultsH\000\022g\n\037tool_parameter_kv_match_" + + "results\030\025 \001(\0132<.google.cloud.aiplatform." + + "v1beta1.ToolParameterKVMatchResultsH\000\022D\n" + + "\014comet_result\030\035 \001(\0132,.google.cloud.aipla" + + "tform.v1beta1.CometResultH\000\022H\n\016metricx_r" + + "esult\030\036 \001(\0132..google.cloud.aiplatform.v1" + + "beta1.MetricxResultH\000\022f\n\036trajectory_exac" + + "t_match_results\030\037 \001(\0132<.google.cloud.aip" + + "latform.v1beta1.TrajectoryExactMatchResu" + + "ltsH\000\022k\n!trajectory_in_order_match_resul" + + "ts\030 \001(\0132>.google.cloud.aiplatform.v1bet" + + "a1.TrajectoryInOrderMatchResultsH\000\022m\n\"tr" + + "ajectory_any_order_match_results\030! \001(\0132?" + + ".google.cloud.aiplatform.v1beta1.Traject" + + "oryAnyOrderMatchResultsH\000\022c\n\034trajectory_" + + "precision_results\030# \001(\0132;.google.cloud.a" + + "iplatform.v1beta1.TrajectoryPrecisionRes" + + "ultsH\000\022]\n\031trajectory_recall_results\030$ \001(" + + "\01328.google.cloud.aiplatform.v1beta1.Traj" + + "ectoryRecallResultsH\000\022m\n\"trajectory_sing" + + "le_tool_use_results\030% \001(\0132?.google.cloud" + + ".aiplatform.v1beta1.TrajectorySingleTool" + + "UseResultsH\000B\024\n\022evaluation_results\"\251\001\n\017E" + + "xactMatchInput\022I\n\013metric_spec\030\001 \001(\0132/.go" + + "ogle.cloud.aiplatform.v1beta1.ExactMatch" + + "SpecB\003\340A\002\022K\n\tinstances\030\002 \003(\01323.google.cl" + + "oud.aiplatform.v1beta1.ExactMatchInstanc" + + "eB\003\340A\002\"l\n\022ExactMatchInstance\022\034\n\npredicti" + + "on\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n\treference\030\002 \001(\tB\003\340" + + "A\002H\001\210\001\001B\r\n\013_predictionB\014\n\n_reference\"\020\n\016" + + "ExactMatchSpec\"s\n\021ExactMatchResults\022^\n\031e" + + "xact_match_metric_values\030\001 \003(\01326.google." + + "cloud.aiplatform.v1beta1.ExactMatchMetri" + + "cValueB\003\340A\003\":\n\025ExactMatchMetricValue\022\027\n\005" + + "score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n\006_score\"\227\001\n\tBleu" + + "Input\022C\n\013metric_spec\030\001 \001(\0132).google.clou" + + "d.aiplatform.v1beta1.BleuSpecB\003\340A\002\022E\n\tin" + + "stances\030\002 \003(\0132-.google.cloud.aiplatform." + + "v1beta1.BleuInstanceB\003\340A\002\"f\n\014BleuInstanc" + + "e\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n\trefer" + + "ence\030\002 \001(\tB\003\340A\002H\001\210\001\001B\r\n\013_predictionB\014\n\n_" + + "reference\",\n\010BleuSpec\022 \n\023use_effective_o" + + "rder\030\001 \001(\010B\003\340A\001\"`\n\013BleuResults\022Q\n\022bleu_m" + + "etric_values\030\001 \003(\01320.google.cloud.aiplat" + + "form.v1beta1.BleuMetricValueB\003\340A\003\"4\n\017Ble" + + "uMetricValue\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_spec\030\001 " + + "\001(\0132*.google.cloud.aiplatform.v1beta1.Ro" + + "ugeSpecB\003\340A\002\022F\n\tinstances\030\002 \003(\0132..google" + + ".cloud.aiplatform.v1beta1.RougeInstanceB" + + "\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\001" + + "B\r\n\013_predictionB\014\n\n_reference\"\\\n\tRougeSp" + + "ec\022\027\n\nrouge_type\030\001 \001(\tB\003\340A\001\022\030\n\013use_stemm" + + "er\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_valu" + + "es\030\001 \003(\01321.google.cloud.aiplatform.v1bet" + + "a1.RougeMetricValueB\003\340A\003\"5\n\020RougeMetricV" + + "alue\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n\006_score\"" + + "\245\001\n\016CoherenceInput\022H\n\013metric_spec\030\001 \001(\0132" + + "..google.cloud.aiplatform.v1beta1.Cohere" + + "nceSpecB\003\340A\002\022I\n\010instance\030\002 \001(\01322.google." + + "cloud.aiplatform.v1beta1.CoherenceInstan" + + "ceB\003\340A\002\"@\n\021CoherenceInstance\022\034\n\npredicti" + + "on\030\001 \001(\tB\003\340A\002H\000\210\001\001B\r\n\013_prediction\"%\n\rCoh" + + "erenceSpec\022\024\n\007version\030\001 \001(\005B\003\340A\001\"{\n\017Cohe" + + "renceResult\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001\022\030\n\013" + + "explanation\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\"\237\001" + + "\n\014FluencyInput\022F\n\013metric_spec\030\001 \001(\0132,.go" + + "ogle.cloud.aiplatform.v1beta1.FluencySpe" + + "cB\003\340A\002\022G\n\010instance\030\002 \001(\01320.google.cloud." + + "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\013FluencySpec\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\013SafetyInput\022" + + "E\n\013metric_spec\030\001 \001(\0132+.google.cloud.aipl" + + "atform.v1beta1.SafetySpecB\003\340A\002\022F\n\010instan" + + "ce\030\002 \001(\0132/.google.cloud.aiplatform.v1bet" + + "a1.SafetyInstanceB\003\340A\002\"=\n\016SafetyInstance" + + "\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210\001\001B\r\n\013_predi" + + "ction\"\"\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\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\"\256\001\n\021GroundednessInput\022K\n\013metric_spec" + + "\030\001 \001(\01321.google.cloud.aiplatform.v1beta1" + + ".GroundednessSpecB\003\340A\002\022L\n\010instance\030\002 \001(\013" + + "25.google.cloud.aiplatform.v1beta1.Groun" + + "dednessInstanceB\003\340A\002\"j\n\024GroundednessInst" + + "ance\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\031\n\007co" + + "ntext\030\002 \001(\tB\003\340A\002H\001\210\001\001B\r\n\013_predictionB\n\n\010" + + "_context\"(\n\020GroundednessSpec\022\024\n\007version\030" + + "\001 \001(\005B\003\340A\001\"~\n\022GroundednessResult\022\027\n\005scor" + + "e\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_sc" + + "oreB\r\n\013_confidence\"\253\001\n\020FulfillmentInput\022" + + "J\n\013metric_spec\030\001 \001(\01320.google.cloud.aipl" + + "atform.v1beta1.FulfillmentSpecB\003\340A\002\022K\n\010i" + + "nstance\030\002 \001(\01324.google.cloud.aiplatform." + + "v1beta1.FulfillmentInstanceB\003\340A\002\"q\n\023Fulf" + + "illmentInstance\022\034\n\nprediction\030\001 \001(\tB\003\340A\002" + + "H\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\017Fulfillme" + + "ntSpec\022\024\n\007version\030\001 \001(\005B\003\340A\001\"}\n\021Fulfillm" + + "entResult\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001\022\030\n\013ex" + + "planation\030\002 \001(\tB\003\340A\003\022\034\n\nconfidence\030\003 \001(\002" + + "B\003\340A\003H\001\210\001\001B\010\n\006_scoreB\r\n\013_confidence\"\306\001\n\031" + + "SummarizationQualityInput\022S\n\013metric_spec" + + "\030\001 \001(\01329.google.cloud.aiplatform.v1beta1" + + ".SummarizationQualitySpecB\003\340A\002\022T\n\010instan" + + "ce\030\002 \001(\0132=.google.cloud.aiplatform.v1bet" + + "a1.SummarizationQualityInstanceB\003\340A\002\"\314\001\n" + + "\034SummarizationQualityInstance\022\034\n\npredict" + + "ion\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\013i" + + "nstruction\030\004 \001(\tB\003\340A\002H\003\210\001\001B\r\n\013_predictio" + + "nB\014\n\n_referenceB\n\n\010_contextB\016\n\014_instruct" + + "ion\"L\n\030SummarizationQualitySpec\022\032\n\ruse_r" + + "eference\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\005scor" + + "e\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_sc" + + "oreB\r\n\013_confidence\"\336\001\n!PairwiseSummariza" + + "tionQualityInput\022[\n\013metric_spec\030\001 \001(\0132A." + + "google.cloud.aiplatform.v1beta1.Pairwise" + + "SummarizationQualitySpecB\003\340A\002\022\\\n\010instanc" + + "e\030\002 \001(\0132E.google.cloud.aiplatform.v1beta" + + "1.PairwiseSummarizationQualityInstanceB\003" + + "\340A\002\"\223\002\n$PairwiseSummarizationQualityInst" + + "ance\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022%\n\023ba" + + "seline_prediction\030\002 \001(\tB\003\340A\002H\001\210\001\001\022\033\n\tref" + + "erence\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\001" + + "B\r\n\013_predictionB\026\n\024_baseline_predictionB" + + "\014\n\n_referenceB\n\n\010_contextB\016\n\014_instructio" + + "n\"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\"PairwiseSummarizationQuality" + + "Result\022M\n\017pairwise_choice\030\001 \001(\0162/.google" + + ".cloud.aiplatform.v1beta1.PairwiseChoice" + + "B\003\340A\003\022\030\n\013explanation\030\002 \001(\tB\003\340A\003\022\034\n\nconfi" + + "dence\030\003 \001(\002B\003\340A\003H\000\210\001\001B\r\n\013_confidence\"\322\001\n" + + "\035SummarizationHelpfulnessInput\022W\n\013metric" + + "_spec\030\001 \001(\0132=.google.cloud.aiplatform.v1" + + "beta1.SummarizationHelpfulnessSpecB\003\340A\002\022" + + "X\n\010instance\030\002 \001(\0132A.google.cloud.aiplatf" + + "orm.v1beta1.SummarizationHelpfulnessInst" + + "anceB\003\340A\002\"\320\001\n SummarizationHelpfulnessIn" + + "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\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_con" + + "textB\016\n\014_instruction\"P\n\034SummarizationHel" + + "pfulnessSpec\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\036Summarization" + + "HelpfulnessResult\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\"\314\001\n\033SummarizationVerbosityInput\022U\n\013m" + + "etric_spec\030\001 \001(\0132;.google.cloud.aiplatfo" + + "rm.v1beta1.SummarizationVerbositySpecB\003\340" + + "A\002\022V\n\010instance\030\002 \001(\0132?.google.cloud.aipl" + + "atform.v1beta1.SummarizationVerbosityIns" + + "tanceB\003\340A\002\"\316\001\n\036SummarizationVerbosityIns" + + "tance\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n\tr" + + "eference\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_cont" + + "extB\016\n\014_instruction\"N\n\032SummarizationVerb" + + "ositySpec\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\034SummarizationVer" + + "bosityResult\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\"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" + + "\001(\002B\003\340A\003H\001\210\001\001B\010\n\006_scoreB\r\n\013_confidence\"\322" + + "\001\n\035QuestionAnsweringQualityInput\022W\n\013metr" + + "ic_spec\030\001 \001(\0132=.google.cloud.aiplatform." + + "v1beta1.QuestionAnsweringQualitySpecB\003\340A" + + "\002\022X\n\010instance\030\002 \001(\0132A.google.cloud.aipla" + + "tform.v1beta1.QuestionAnsweringQualityIn" + + "stanceB\003\340A\002\"\320\001\n QuestionAnsweringQuality" + + "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\002" + + "H\003\210\001\001B\r\n\013_predictionB\014\n\n_referenceB\n\n\010_c" + + "ontextB\016\n\014_instruction\"P\n\034QuestionAnswer" + + "ingQualitySpec\022\032\n\ruse_reference\030\001 \001(\010B\003\340" + + "A\001\022\024\n\007version\030\002 \001(\005B\003\340A\001\"\212\001\n\036QuestionAns" + + "weringQualityResult\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\nconfid" + + "ence\030\003 \001(\002B\003\340A\003H\001\210\001\001B\010\n\006_scoreB\r\n\013_confi" + + "dence\"\352\001\n%PairwiseQuestionAnsweringQuali" + + "tyInput\022_\n\013metric_spec\030\001 \001(\0132E.google.cl" + + "oud.aiplatform.v1beta1.PairwiseQuestionA" + + "nsweringQualitySpecB\003\340A\002\022`\n\010instance\030\002 \001" + + "(\0132I.google.cloud.aiplatform.v1beta1.Pai" + + "rwiseQuestionAnsweringQualityInstanceB\003\340" + + "A\002\"\227\002\n(PairwiseQuestionAnsweringQualityI" + "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.QuestionAnsweringQualitySpecB" - + "\003\340A\002\022X\n\010instance\030\002 \001(\0132A.google.cloud.ai" - + "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\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" + + "tion\"X\n$PairwiseQuestionAnsweringQuality" + + "Spec\022\032\n\ruse_reference\030\001 \001(\010B\003\340A\001\022\024\n\007vers" + + "ion\030\002 \001(\005B\003\340A\001\"\276\001\n&PairwiseQuestionAnswe" + + "ringQualityResult\022M\n\017pairwise_choice\030\001 \001" + + "(\0162/.google.cloud.aiplatform.v1beta1.Pai" + + "rwiseChoiceB\003\340A\003\022\030\n\013explanation\030\002 \001(\tB\003\340" + + "A\003\022\034\n\nconfidence\030\003 \001(\002B\003\340A\003H\000\210\001\001B\r\n\013_con" + + "fidence\"\330\001\n\037QuestionAnsweringRelevanceIn" + + "put\022Y\n\013metric_spec\030\001 \001(\0132?.google.cloud." + + "aiplatform.v1beta1.QuestionAnsweringRele" + + "vanceSpecB\003\340A\002\022Z\n\010instance\030\002 \001(\0132C.googl" + + "e.cloud.aiplatform.v1beta1.QuestionAnswe" + + "ringRelevanceInstanceB\003\340A\002\"\322\001\n\"QuestionA" + + "nsweringRelevanceInstance\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\013instr" + + "uction\030\004 \001(\tB\003\340A\002H\003\210\001\001B\r\n\013_predictionB\014\n" + + "\n_referenceB\n\n\010_contextB\016\n\014_instruction\"" + + "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 QuestionAnsweringRelevanceResult" + + "\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!QuestionA" + + "nsweringHelpfulnessInput\022[\n\013metric_spec\030" + + "\001 \001(\0132A.google.cloud.aiplatform.v1beta1." + + "QuestionAnsweringHelpfulnessSpecB\003\340A\002\022\\\n" + + "\010instance\030\002 \001(\0132E.google.cloud.aiplatfor" + + "m.v1beta1.QuestionAnsweringHelpfulnessIn" + + "stanceB\003\340A\002\"\324\001\n$QuestionAnsweringHelpful" + + "nessInstance\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\007conte" + + "xt\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_referenceB\n" + + "\n\010_contextB\016\n\014_instruction\"T\n QuestionAn" + + "sweringHelpfulnessSpec\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\"Que" + + "stionAnsweringHelpfulnessResult\022\027\n\005score" + + "\030\001 \001(\002B\003\340A\003H\000\210\001\001\022\030\n\013explanation\030\002 \001(\tB\003\340" + + "A\003\022\034\n\nconfidence\030\003 \001(\002B\003\340A\003H\001\210\001\001B\010\n\006_sco" + + "reB\r\n\013_confidence\"\336\001\n!QuestionAnsweringC" + + "orrectnessInput\022[\n\013metric_spec\030\001 \001(\0132A.g" + + "oogle.cloud.aiplatform.v1beta1.QuestionA" + + "nsweringCorrectnessSpecB\003\340A\002\022\\\n\010instance" + + "\030\002 \001(\0132E.google.cloud.aiplatform.v1beta1" + + ".QuestionAnsweringCorrectnessInstanceB\003\340" + + "A\002\"\324\001\n$QuestionAnsweringCorrectnessInsta" + + "nce\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n\tref" + + "erence\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\002H\003\210\001\001" + + "B\r\n\013_predictionB\014\n\n_referenceB\n\n\010_contex" + + "tB\016\n\014_instruction\"T\n QuestionAnsweringCo" + + "rrectnessSpec\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\"QuestionAnsw", + "eringCorrectnessResult\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\"\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%\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" - + "\002H\004\210\001\001B\r\n\013_predictionB\026\n\024_baseline_predi" - + "ctionB\014\n\n_referenceB\n\n\010_contextB\016\n\014_inst" - + "ruction\"X\n$PairwiseQuestionAnsweringQual" - + "itySpec\022\032\n\ruse_reference\030\001 \001(\010B\003\340A\001\022\024\n\007v" - + "ersion\030\002 \001(\005B\003\340A\001\"\276\001\n&PairwiseQuestionAn" - + "sweringQualityResult\022M\n\017pairwise_choice\030" - + "\001 \001(\0162/.google.cloud.aiplatform.v1beta1." - + "PairwiseChoiceB\003\340A\003\022\030\n\013explanation\030\002 \001(\t" - + "B\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\037QuestionAnsweringRelevanc" - + "eInput\022Y\n\013metric_spec\030\001 \001(\0132?.google.clo" - + "ud.aiplatform.v1beta1.QuestionAnsweringR" - + "elevanceSpecB\003\340A\002\022Z\n\010instance\030\002 \001(\0132C.go" - + "ogle.cloud.aiplatform.v1beta1.QuestionAn" - + "sweringRelevanceInstanceB\003\340A\002\"\322\001\n\"Questi" - + "onAnsweringRelevanceInstance\022\034\n\npredicti" - + "on\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n\treference\030\002 \001(\tB\003\340" - + "A\001H\001\210\001\001\022\031\n\007context\030\003 \001(\tB\003\340A\001H\002\210\001\001\022\035\n\013in" - + "struction\030\004 \001(\tB\003\340A\002H\003\210\001\001B\r\n\013_prediction" - + "B\014\n\n_referenceB\n\n\010_contextB\016\n\014_instructi" - + "on\"R\n\036QuestionAnsweringRelevanceSpec\022\032\n\r" - + "use_reference\030\001 \001(\010B\003\340A\001\022\024\n\007version\030\002 \001(" - + "\005B\003\340A\001\"\214\001\n QuestionAnsweringRelevanceRes" - + "ult\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001\022\030\n\013explanat" - + "ion\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!Questi" - + "onAnsweringHelpfulnessInput\022[\n\013metric_sp" - + "ec\030\001 \001(\0132A.google.cloud.aiplatform.v1bet" - + "a1.QuestionAnsweringHelpfulnessSpecB\003\340A\002" - + "\022\\\n\010instance\030\002 \001(\0132E.google.cloud.aiplat" - + "form.v1beta1.QuestionAnsweringHelpfulnes" - + "sInstanceB\003\340A\002\"\324\001\n$QuestionAnsweringHelp" - + "fulnessInstance\022\034\n\nprediction\030\001 \001(\tB\003\340A\002" - + "H\000\210\001\001\022\033\n\treference\030\002 \001(\tB\003\340A\001H\001\210\001\001\022\031\n\007co" - + "ntext\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_referenc" - + "eB\n\n\010_contextB\016\n\014_instruction\"T\n Questio" - + "nAnsweringHelpfulnessSpec\022\032\n\ruse_referen" - + "ce\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\005sc" - + "ore\030\001 \001(\002B\003\340A\003H\000\210\001\001\022\030\n\013explanation\030\002 \001(\t" - + "B\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!QuestionAnsweri" - + "ngCorrectnessInput\022[\n\013metric_spec\030\001 \001(\0132" - + "A.google.cloud.aiplatform.v1beta1.Questi" - + "onAnsweringCorrectnessSpecB\003\340A\002\022\\\n\010insta" - + "nce\030\002 \001(\0132E.google.cloud.aiplatform.v1be" - + "ta1.QuestionAnsweringCorrectnessInstance" - + "B\003\340A\002\"\324\001\n$QuestionAnsweringCorrectnessIn" - + "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\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\002H\003" - + "\210\001\001B\r\n\013_predictionB\014\n\n_referenceB\n\n\010_con" - + "textB\016\n\014_instruction\"T\n QuestionAnswerin" - + "gCorrectnessSpec\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\"QuestionA" - + "nsweringCorrectnessResult\022\027\n\005score\030\001 \001(\002" - + "B\003\340A\003H\000\210\001\001\022\030\n\013explanation\030\002 \001(\tB\003\340A\003\022\034\n\n" - + "confidence\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\013" - + "metric_spec\030\001 \001(\01324.google.cloud.aiplatf" - + "orm.v1beta1.PointwiseMetricSpecB\003\340A\002\022O\n\010" - + "instance\030\002 \001(\01328.google.cloud.aiplatform" - + ".v1beta1.PointwiseMetricInstanceB\003\340A\002\">\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" + + "nfidence\"\267\001\n\024PointwiseMetricInput\022N\n\013met" + + "ric_spec\030\001 \001(\01324.google.cloud.aiplatform" + + ".v1beta1.PointwiseMetricSpecB\003\340A\002\022O\n\010ins" + + "tance\030\002 \001(\01328.google.cloud.aiplatform.v1" + + "beta1.PointwiseMetricInstanceB\003\340A\002\">\n\027Po" + + "intwiseMetricInstance\022\027\n\rjson_instance\030\001" + + " \001(\tH\000B\n\n\010instance\"\227\001\n\023PointwiseMetricSp" + + "ec\022(\n\026metric_prompt_template\030\001 \001(\tB\003\340A\002H" + + "\000\210\001\001\022$\n\022system_instruction\030\002 \001(\tB\003\340A\001H\001\210" + + "\001\001B\031\n\027_metric_prompt_templateB\025\n\023_system" + + "_instruction\"T\n\025PointwiseMetricResult\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\023PairwiseMetricInp" + + "ut\022M\n\013metric_spec\030\001 \001(\01323.google.cloud.a" + + "iplatform.v1beta1.PairwiseMetricSpecB\003\340A" + + "\002\022N\n\010instance\030\002 \001(\01327.google.cloud.aipla" + + "tform.v1beta1.PairwiseMetricInstanceB\003\340A" + + "\002\"=\n\026PairwiseMetricInstance\022\027\n\rjson_inst" + + "ance\030\001 \001(\tH\000B\n\n\010instance\"\355\001\n\022PairwiseMet" + + "ricSpec\022(\n\026metric_prompt_template\030\001 \001(\tB" + + "\003\340A\002H\000\210\001\001\022*\n\035candidate_response_field_na" + + "me\030\002 \001(\tB\003\340A\001\022)\n\034baseline_response_field" + + "_name\030\003 \001(\tB\003\340A\001\022$\n\022system_instruction\030\004" + + " \001(\tB\003\340A\001H\001\210\001\001B\031\n\027_metric_prompt_templat" + + "eB\025\n\023_system_instruction\"\177\n\024PairwiseMetr" + + "icResult\022M\n\017pairwise_choice\030\001 \001(\0162/.goog" + + "le.cloud.aiplatform.v1beta1.PairwiseChoi" + + "ceB\003\340A\003\022\030\n\013explanation\030\002 \001(\tB\003\340A\003\"\262\001\n\022To" + + "olCallValidInput\022L\n\013metric_spec\030\001 \001(\01322." + + "google.cloud.aiplatform.v1beta1.ToolCall" + + "ValidSpecB\003\340A\002\022N\n\tinstances\030\002 \003(\01326.goog" + + "le.cloud.aiplatform.v1beta1.ToolCallVali" + + "dInstanceB\003\340A\002\"\023\n\021ToolCallValidSpec\"o\n\025T" + + "oolCallValidInstance\022\034\n\nprediction\030\001 \001(\t" + + "B\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\024ToolCall" + + "ValidResults\022e\n\035tool_call_valid_metric_v" + + "alues\030\001 \003(\01329.google.cloud.aiplatform.v1" + + "beta1.ToolCallValidMetricValueB\003\340A\003\"=\n\030T" + + "oolCallValidMetricValue\022\027\n\005score\030\001 \001(\002B\003" + + "\340A\003H\000\210\001\001B\010\n\006_score\"\262\001\n\022ToolNameMatchInpu" + + "t\022L\n\013metric_spec\030\001 \001(\01322.google.cloud.ai" + + "platform.v1beta1.ToolNameMatchSpecB\003\340A\002\022" + + "N\n\tinstances\030\002 \003(\01326.google.cloud.aiplat" + + "form.v1beta1.ToolNameMatchInstanceB\003\340A\002\"" + + "\023\n\021ToolNameMatchSpec\"o\n\025ToolNameMatchIns" + + "tance\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n\tr" + + "eference\030\002 \001(\tB\003\340A\002H\001\210\001\001B\r\n\013_predictionB" + + "\014\n\n_reference\"}\n\024ToolNameMatchResults\022e\n" + + "\035tool_name_match_metric_values\030\001 \003(\01329.g" + + "oogle.cloud.aiplatform.v1beta1.ToolNameM" + + "atchMetricValueB\003\340A\003\"=\n\030ToolNameMatchMet" + + "ricValue\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n\006_sc" + + "ore\"\312\001\n\032ToolParameterKeyMatchInput\022T\n\013me" + + "tric_spec\030\001 \001(\0132:.google.cloud.aiplatfor" + + "m.v1beta1.ToolParameterKeyMatchSpecB\003\340A\002" + + "\022V\n\tinstances\030\002 \003(\0132>.google.cloud.aipla" + + "tform.v1beta1.ToolParameterKeyMatchInsta" + + "nceB\003\340A\002\"\033\n\031ToolParameterKeyMatchSpec\"w\n" + + "\035ToolParameterKeyMatchInstance\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\002H\001\210\001\001B\r\n\013_predictionB\014\n\n_reference\"\226" + + "\001\n\034ToolParameterKeyMatchResults\022v\n&tool_" + + "parameter_key_match_metric_values\030\001 \003(\0132" + + "A.google.cloud.aiplatform.v1beta1.ToolPa" + + "rameterKeyMatchMetricValueB\003\340A\003\"E\n ToolP" + + "arameterKeyMatchMetricValue\022\027\n\005score\030\001 \001" + + "(\002B\003\340A\003H\000\210\001\001B\010\n\006_score\"\307\001\n\031ToolParameter" + + "KVMatchInput\022S\n\013metric_spec\030\001 \001(\01329.goog" + + "le.cloud.aiplatform.v1beta1.ToolParamete" + + "rKVMatchSpecB\003\340A\002\022U\n\tinstances\030\002 \003(\0132=.g" + + "oogle.cloud.aiplatform.v1beta1.ToolParam" + + "eterKVMatchInstanceB\003\340A\002\"@\n\030ToolParamete" + + "rKVMatchSpec\022$\n\027use_strict_string_match\030" + + "\001 \001(\010B\003\340A\001\"v\n\034ToolParameterKVMatchInstan" + + "ce\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n\trefe" + + "rence\030\002 \001(\tB\003\340A\002H\001\210\001\001B\r\n\013_predictionB\014\n\n" + + "_reference\"\223\001\n\033ToolParameterKVMatchResul" + + "ts\022t\n%tool_parameter_kv_match_metric_val" + + "ues\030\001 \003(\0132@.google.cloud.aiplatform.v1be" + + "ta1.ToolParameterKVMatchMetricValueB\003\340A\003" + + "\"D\n\037ToolParameterKVMatchMetricValue\022\027\n\005s" + + "core\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n\006_score\"\231\001\n\nComet" + + "Input\022D\n\013metric_spec\030\001 \001(\0132*.google.clou" + + "d.aiplatform.v1beta1.CometSpecB\003\340A\002\022E\n\010i" + + "nstance\030\002 \001(\0132..google.cloud.aiplatform." + + "v1beta1.CometInstanceB\003\340A\002\"\354\001\n\tCometSpec" + + "\022R\n\007version\030\001 \001(\01627.google.cloud.aiplatf" + + "orm.v1beta1.CometSpec.CometVersionB\003\340A\002H" + + "\000\210\001\001\022\034\n\017source_language\030\002 \001(\tB\003\340A\001\022\034\n\017ta" + + "rget_language\030\003 \001(\tB\003\340A\001\"C\n\014CometVersion" + + "\022\035\n\031COMET_VERSION_UNSPECIFIED\020\000\022\024\n\020COMET" + + "_22_SRC_REF\020\002B\n\n\010_version\"\214\001\n\rCometInsta" + + "nce\022\034\n\nprediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n\tref" + + "erence\030\002 \001(\tB\003\340A\001H\001\210\001\001\022\030\n\006source\030\003 \001(\tB\003" + + "\340A\001H\002\210\001\001B\r\n\013_predictionB\014\n\n_referenceB\t\n" + + "\007_source\"0\n\013CometResult\022\027\n\005score\030\001 \001(\002B\003" + + "\340A\003H\000\210\001\001B\010\n\006_score\"\237\001\n\014MetricxInput\022F\n\013m" + + "etric_spec\030\001 \001(\0132,.google.cloud.aiplatfo" + + "rm.v1beta1.MetricxSpecB\003\340A\002\022G\n\010instance\030" + + "\002 \001(\01320.google.cloud.aiplatform.v1beta1." + + "MetricxInstanceB\003\340A\002\"\240\002\n\013MetricxSpec\022V\n\007" + + "version\030\001 \001(\0162;.google.cloud.aiplatform." + + "v1beta1.MetricxSpec.MetricxVersionB\003\340A\002H" + + "\000\210\001\001\022\034\n\017source_language\030\002 \001(\tB\003\340A\001\022\034\n\017ta" + + "rget_language\030\003 \001(\tB\003\340A\001\"q\n\016MetricxVersi" + + "on\022\037\n\033METRICX_VERSION_UNSPECIFIED\020\000\022\022\n\016M" + + "ETRICX_24_REF\020\001\022\022\n\016METRICX_24_SRC\020\002\022\026\n\022M" + + "ETRICX_24_SRC_REF\020\003B\n\n\010_version\"\216\001\n\017Metr" + + "icxInstance\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\030\n\006source" + + "\030\003 \001(\tB\003\340A\001H\002\210\001\001B\r\n\013_predictionB\014\n\n_refe" + + "renceB\t\n\007_source\"2\n\rMetricxResult\022\027\n\005sco" + + "re\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n\006_score\"\307\001\n\031Traject" + + "oryExactMatchInput\022S\n\013metric_spec\030\001 \001(\0132" + + "9.google.cloud.aiplatform.v1beta1.Trajec" + + "toryExactMatchSpecB\003\340A\002\022U\n\tinstances\030\002 \003" + + "(\0132=.google.cloud.aiplatform.v1beta1.Tra" + + "jectoryExactMatchInstanceB\003\340A\002\"\032\n\030Trajec" + + "toryExactMatchSpec\"\372\001\n\034TrajectoryExactMa" + + "tchInstance\022S\n\024predicted_trajectory\030\001 \001(" + + "\0132+.google.cloud.aiplatform.v1beta1.Traj" + + "ectoryB\003\340A\002H\000\210\001\001\022S\n\024reference_trajectory" + + "\030\002 \001(\0132+.google.cloud.aiplatform.v1beta1" + + ".TrajectoryB\003\340A\002H\001\210\001\001B\027\n\025_predicted_traj" + + "ectoryB\027\n\025_reference_trajectory\"\222\001\n\033Traj" + + "ectoryExactMatchResults\022s\n$trajectory_ex" + + "act_match_metric_values\030\001 \003(\0132@.google.c" + + "loud.aiplatform.v1beta1.TrajectoryExactM" + + "atchMetricValueB\003\340A\003\"D\n\037TrajectoryExactM" + + "atchMetricValue\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001" + + "B\010\n\006_score\"\315\001\n\033TrajectoryInOrderMatchInp" + + "ut\022U\n\013metric_spec\030\001 \001(\0132;.google.cloud.a" + + "iplatform.v1beta1.TrajectoryInOrderMatch" + + "SpecB\003\340A\002\022W\n\tinstances\030\002 \003(\0132?.google.cl" + + "oud.aiplatform.v1beta1.TrajectoryInOrder" + + "MatchInstanceB\003\340A\002\"\034\n\032TrajectoryInOrderM" + + "atchSpec\"\374\001\n\036TrajectoryInOrderMatchInsta" + "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" + + "\n\025_reference_trajectory\"\231\001\n\035TrajectoryIn" + + "OrderMatchResults\022x\n\'trajectory_in_order" + + "_match_metric_values\030\001 \003(\0132B.google.clou" + + "d.aiplatform.v1beta1.TrajectoryInOrderMa" + + "tchMetricValueB\003\340A\003\"F\n!TrajectoryInOrder" + + "MatchMetricValue\022\027\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001" + + "\001B\010\n\006_score\"\320\001\n\034TrajectoryAnyOrderMatchI" + + "nput\022V\n\013metric_spec\030\001 \001(\0132<.google.cloud" + + ".aiplatform.v1beta1.TrajectoryAnyOrderMa" + + "tchSpecB\003\340A\002\022X\n\tinstances\030\002 \003(\0132@.google" + + ".cloud.aiplatform.v1beta1.TrajectoryAnyO" + + "rderMatchInstanceB\003\340A\002\"\035\n\033TrajectoryAnyO" + + "rderMatchSpec\"\375\001\n\037TrajectoryAnyOrderMatc" + + "hInstance\022S\n\024predicted_trajectory\030\001 \001(\0132" + + "+.google.cloud.aiplatform.v1beta1.Trajec" + + "toryB\003\340A\002H\000\210\001\001\022S\n\024reference_trajectory\030\002" + + " \001(\0132+.google.cloud.aiplatform.v1beta1.T" + + "rajectoryB\003\340A\002H\001\210\001\001B\027\n\025_predicted_trajec" + + "toryB\027\n\025_reference_trajectory\"\234\001\n\036Trajec" + + "toryAnyOrderMatchResults\022z\n(trajectory_a" + + "ny_order_match_metric_values\030\001 \003(\0132C.goo" + + "gle.cloud.aiplatform.v1beta1.TrajectoryA" + + "nyOrderMatchMetricValueB\003\340A\003\"G\n\"Trajecto" + + "ryAnyOrderMatchMetricValue\022\027\n\005score\030\001 \001(" + + "\002B\003\340A\003H\000\210\001\001B\010\n\006_score\"\304\001\n\030TrajectoryPrec" + + "isionInput\022R\n\013metric_spec\030\001 \001(\01328.google" + + ".cloud.aiplatform.v1beta1.TrajectoryPrec" + + "isionSpecB\003\340A\002\022T\n\tinstances\030\002 \003(\0132<.goog" + + "le.cloud.aiplatform.v1beta1.TrajectoryPr" + + "ecisionInstanceB\003\340A\002\"\031\n\027TrajectoryPrecis" + + "ionSpec\"\371\001\n\033TrajectoryPrecisionInstance\022" + + "S\n\024predicted_trajectory\030\001 \001(\0132+.google.c" + + "loud.aiplatform.v1beta1.TrajectoryB\003\340A\002H" + + "\000\210\001\001\022S\n\024reference_trajectory\030\002 \001(\0132+.goo" + + "gle.cloud.aiplatform.v1beta1.TrajectoryB" + + "\003\340A\002H\001\210\001\001B\027\n\025_predicted_trajectoryB\027\n\025_r" + + "eference_trajectory\"\216\001\n\032TrajectoryPrecis" + + "ionResults\022p\n\"trajectory_precision_metri" + + "c_values\030\001 \003(\0132?.google.cloud.aiplatform" + + ".v1beta1.TrajectoryPrecisionMetricValueB" + + "\003\340A\003\"C\n\036TrajectoryPrecisionMetricValue\022\027" + + "\n\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n\006_score\"\273\001\n\025Tr" + + "ajectoryRecallInput\022O\n\013metric_spec\030\001 \001(\013" + + "25.google.cloud.aiplatform.v1beta1.Traje" + + "ctoryRecallSpecB\003\340A\002\022Q\n\tinstances\030\002 \003(\0132" + + "9.google.cloud.aiplatform.v1beta1.Trajec" + + "toryRecallInstanceB\003\340A\002\"\026\n\024TrajectoryRec" + + "allSpec\"\366\001\n\030TrajectoryRecallInstance\022S\n\024" + + "predicted_trajectory\030\001 \001(\0132+.google.clou" + + "d.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001" + + "\001\022S\n\024reference_trajectory\030\002 \001(\0132+.google" + + ".cloud.aiplatform.v1beta1.TrajectoryB\003\340A" + + "\002H\001\210\001\001B\027\n\025_predicted_trajectoryB\027\n\025_refe" + + "rence_trajectory\"\205\001\n\027TrajectoryRecallRes" + + "ults\022j\n\037trajectory_recall_metric_values\030" + + "\001 \003(\0132<.google.cloud.aiplatform.v1beta1." + + "TrajectoryRecallMetricValueB\003\340A\003\"@\n\033Traj" + + "ectoryRecallMetricValue\022\027\n\005score\030\001 \001(\002B\003" + + "\340A\003H\000\210\001\001B\010\n\006_score\"\320\001\n\034TrajectorySingleT" + + "oolUseInput\022V\n\013metric_spec\030\001 \001(\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\"\n" - + "\004name\030\001 \001(\tB0\340A\002\372A*\n(aiplatform.googleap" - + "is.com/FeatureMonitor\"\201\001\n\033ListFeatureMon" - + "itorsResponse\022I\n\020feature_monitors\030\001 \003(\0132" - + "/.google.cloud.aiplatform.v1beta1.Featur" - + "eMonitor\022\027\n\017next_page_token\030\002 \001(\t\"z\n#Cre" - + "ateFeatureGroupOperationMetadata\022S\n\020gene" - + "ric_metadata\030\001 \001(\01329.google.cloud.aiplat" - + "form.v1beta1.GenericOperationMetadata\"z\n" - + "#UpdateFeatureGroupOperationMetadata\022S\n\020" - + "generic_metadata\030\001 \001(\01329.google.cloud.ai" - + "platform.v1beta1.GenericOperationMetadat" - + "a\"}\n&CreateRegistryFeatureOperationMetad" - + "ata\022S\n\020generic_metadata\030\001 \001(\01329.google.c" - + "loud.aiplatform.v1beta1.GenericOperation" - + "Metadata\"u\n\036UpdateFeatureOperationMetada" - + "ta\022S\n\020generic_metadata\030\001 \001(\01329.google.cl" - + "oud.aiplatform.v1beta1.GenericOperationM" - + "etadata\"|\n%CreateFeatureMonitorOperation" + + "\tB\003\340A\001\"\242\001\n\033UpdateFeatureMonitorRequest\022M" + + "\n\017feature_monitor\030\001 \001(\0132/.google.cloud.a" + + "iplatform.v1beta1.FeatureMonitorB\003\340A\002\0224\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.Fie" + + "ldMaskB\003\340A\001\"]\n\033DeleteFeatureMonitorReque" + + "st\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(aiplatform.goo" + + "gleapis.com/FeatureMonitor\"\201\001\n\033ListFeatu" + + "reMonitorsResponse\022I\n\020feature_monitors\030\001" + + " \003(\0132/.google.cloud.aiplatform.v1beta1.F" + + "eatureMonitor\022\027\n\017next_page_token\030\002 \001(\t\"z" + + "\n#CreateFeatureGroupOperationMetadata\022S\n" + + "\020generic_metadata\030\001 \001(\01329.google.cloud.a" + + "iplatform.v1beta1.GenericOperationMetada" + + "ta\"z\n#UpdateFeatureGroupOperationMetadat" + + "a\022S\n\020generic_metadata\030\001 \001(\01329.google.clo" + + "ud.aiplatform.v1beta1.GenericOperationMe" + + "tadata\"}\n&CreateRegistryFeatureOperation" + "Metadata\022S\n\020generic_metadata\030\001 \001(\01329.goo" + "gle.cloud.aiplatform.v1beta1.GenericOper" - + "ationMetadata\"\343\001\n\036CreateFeatureMonitorJo" - + "bRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+aiplat" - + "form.googleapis.com/FeatureMonitorJob\022T\n" - + "\023feature_monitor_job\030\002 \001(\01322.google.clou" - + "d.aiplatform.v1beta1.FeatureMonitorJobB\003" - + "\340A\002\022&\n\026feature_monitor_job_id\030\003 \001(\003B\006\340A\001" - + "\340A\003\"`\n\033GetFeatureMonitorJobRequest\022A\n\004na" - + "me\030\001 \001(\tB3\340A\002\372A-\n+aiplatform.googleapis." - + "com/FeatureMonitorJob\"\301\001\n\035ListFeatureMon" - + "itorJobsRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022" - + "+aiplatform.googleapis.com/FeatureMonito" - + "rJob\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\022\025\n\010or" - + "der_by\030\005 \001(\tB\003\340A\001\"\213\001\n\036ListFeatureMonitor" - + "JobsResponse\022P\n\024feature_monitor_jobs\030\001 \003" - + "(\01322.google.cloud.aiplatform.v1beta1.Fea" - + "tureMonitorJob\022\027\n\017next_page_token\030\002 \001(\t2" - + "\271$\n\026FeatureRegistryService\022\235\002\n\022CreateFea" - + "tureGroup\022:.google.cloud.aiplatform.v1be" - + "ta1.CreateFeatureGroupRequest\032\035.google.l" - + "ongrunning.Operation\"\253\001\312A3\n\014FeatureGroup" - + "\022#CreateFeatureGroupOperationMetadata\332A%" - + "parent,feature_group,feature_group_id\202\323\344" - + "\223\002G\"6/v1beta1/{parent=projects/*/locatio" - + "ns/*}/featureGroups:\rfeature_group\022\300\001\n\017G" - + "etFeatureGroup\0227.google.cloud.aiplatform" - + ".v1beta1.GetFeatureGroupRequest\032-.google" - + ".cloud.aiplatform.v1beta1.FeatureGroup\"E" - + "\332A\004name\202\323\344\223\0028\0226/v1beta1/{name=projects/*" - + "/locations/*/featureGroups/*}\022\323\001\n\021ListFe" - + "atureGroups\0229.google.cloud.aiplatform.v1" - + "beta1.ListFeatureGroupsRequest\032:.google." - + "cloud.aiplatform.v1beta1.ListFeatureGrou" - + "psResponse\"G\332A\006parent\202\323\344\223\0028\0226/v1beta1/{p" - + "arent=projects/*/locations/*}/featureGro" - + "ups\022\237\002\n\022UpdateFeatureGroup\022:.google.clou" - + "d.aiplatform.v1beta1.UpdateFeatureGroupR" - + "equest\032\035.google.longrunning.Operation\"\255\001" - + "\312A3\n\014FeatureGroup\022#UpdateFeatureGroupOpe" - + "rationMetadata\332A\031feature_group,update_ma" - + "sk\202\323\344\223\002U2D/v1beta1/{feature_group.name=p" - + "rojects/*/locations/*/featureGroups/*}:\r" - + "feature_group\022\357\001\n\022DeleteFeatureGroup\022:.g" - + "oogle.cloud.aiplatform.v1beta1.DeleteFea" - + "tureGroupRequest\032\035.google.longrunning.Op" - + "eration\"~\312A0\n\025google.protobuf.Empty\022\027Del" - + "eteOperationMetadata\332A\nname,force\202\323\344\223\0028*" - + "6/v1beta1/{name=projects/*/locations/*/f" - + "eatureGroups/*}\022\202\002\n\rCreateFeature\0225.goog" - + "le.cloud.aiplatform.v1beta1.CreateFeatur" - + "eRequest\032\035.google.longrunning.Operation\"" - + "\232\001\312A)\n\007Feature\022\036CreateFeatureOperationMe" - + "tadata\332A\031parent,feature,feature_id\202\323\344\223\002L" - + "\"A/v1beta1/{parent=projects/*/locations/" - + "*/featureGroups/*}/features:\007feature\022\244\002\n" - + "\023BatchCreateFeatures\022;.google.cloud.aipl" - + "atform.v1beta1.BatchCreateFeaturesReques" - + "t\032\035.google.longrunning.Operation\"\260\001\312AC\n\033" - + "BatchCreateFeaturesResponse\022$BatchCreate" - + "FeaturesOperationMetadata\332A\017parent,reque" - + "sts\202\323\344\223\002R\"M/v1beta1/{parent=projects/*/l" - + "ocations/*/featureGroups/*}/features:bat" - + "chCreate:\001*\022\274\001\n\nGetFeature\0222.google.clou" - + "d.aiplatform.v1beta1.GetFeatureRequest\032(" - + ".google.cloud.aiplatform.v1beta1.Feature" - + "\"P\332A\004name\202\323\344\223\002C\022A/v1beta1/{name=projects" - + "/*/locations/*/featureGroups/*/features/" - + "*}\022\317\001\n\014ListFeatures\0224.google.cloud.aipla" - + "tform.v1beta1.ListFeaturesRequest\0325.goog" - + "le.cloud.aiplatform.v1beta1.ListFeatures" - + "Response\"R\332A\006parent\202\323\344\223\002C\022A/v1beta1/{par" - + "ent=projects/*/locations/*/featureGroups" - + "/*}/features\022\204\002\n\rUpdateFeature\0225.google." - + "cloud.aiplatform.v1beta1.UpdateFeatureRe" - + "quest\032\035.google.longrunning.Operation\"\234\001\312" - + "A)\n\007Feature\022\036UpdateFeatureOperationMetad" - + "ata\332A\023feature,update_mask\202\323\344\223\002T2I/v1beta" - + "1/{feature.name=projects/*/locations/*/f" - + "eatureGroups/*/features/*}:\007feature\022\353\001\n\r" - + "DeleteFeature\0225.google.cloud.aiplatform." - + "v1beta1.DeleteFeatureRequest\032\035.google.lo" - + "ngrunning.Operation\"\203\001\312A0\n\025google.protob" - + "uf.Empty\022\027DeleteOperationMetadata\332A\004name" - + "\202\323\344\223\002C*A/v1beta1/{name=projects/*/locati" - + "ons/*/featureGroups/*/features/*}\022\275\002\n\024Cr" - + "eateFeatureMonitor\022<.google.cloud.aiplat" - + "form.v1beta1.CreateFeatureMonitorRequest" - + "\032\035.google.longrunning.Operation\"\307\001\312A7\n\016F" - + "eatureMonitor\022%CreateFeatureMonitorOpera" - + "tionMetadata\332A)parent,feature_monitor,fe" - + "ature_monitor_id\202\323\344\223\002[\"H/v1beta1/{parent" + + "ationMetadata\"u\n\036UpdateFeatureOperationM" + + "etadata\022S\n\020generic_metadata\030\001 \001(\01329.goog" + + "le.cloud.aiplatform.v1beta1.GenericOpera" + + "tionMetadata\"|\n%CreateFeatureMonitorOper" + + "ationMetadata\022S\n\020generic_metadata\030\001 \001(\0132" + + "9.google.cloud.aiplatform.v1beta1.Generi" + + "cOperationMetadata\"|\n%UpdateFeatureMonit" + + "orOperationMetadata\022S\n\020generic_metadata\030" + + "\001 \001(\01329.google.cloud.aiplatform.v1beta1." + + "GenericOperationMetadata\"\343\001\n\036CreateFeatu" + + "reMonitorJobRequest\022C\n\006parent\030\001 \001(\tB3\340A\002" + + "\372A-\022+aiplatform.googleapis.com/FeatureMo" + + "nitorJob\022T\n\023feature_monitor_job\030\002 \001(\01322." + + "google.cloud.aiplatform.v1beta1.FeatureM" + + "onitorJobB\003\340A\002\022&\n\026feature_monitor_job_id" + + "\030\003 \001(\003B\006\340A\001\340A\003\"`\n\033GetFeatureMonitorJobRe" + + "quest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+aiplatform." + + "googleapis.com/FeatureMonitorJob\"\301\001\n\035Lis" + + "tFeatureMonitorJobsRequest\022C\n\006parent\030\001 \001" + + "(\tB3\340A\002\372A-\022+aiplatform.googleapis.com/Fe" + + "atureMonitorJob\022\023\n\006filter\030\002 \001(\tB\003\340A\001\022\026\n\t" + + "page_size\030\003 \001(\005B\003\340A\001\022\027\n\npage_token\030\004 \001(\t" + + "B\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"\213\001\n\036ListFea" + + "tureMonitorJobsResponse\022P\n\024feature_monit" + + "or_jobs\030\001 \003(\01322.google.cloud.aiplatform." + + "v1beta1.FeatureMonitorJob\022\027\n\017next_page_t" + + "oken\030\002 \001(\t2\373&\n\026FeatureRegistryService\022\235\002" + + "\n\022CreateFeatureGroup\022:.google.cloud.aipl" + + "atform.v1beta1.CreateFeatureGroupRequest" + + "\032\035.google.longrunning.Operation\"\253\001\312A3\n\014F" + + "eatureGroup\022#CreateFeatureGroupOperation" + + "Metadata\332A%parent,feature_group,feature_" + + "group_id\202\323\344\223\002G\"6/v1beta1/{parent=project" + + "s/*/locations/*}/featureGroups:\rfeature_" + + "group\022\300\001\n\017GetFeatureGroup\0227.google.cloud" + + ".aiplatform.v1beta1.GetFeatureGroupReque" + + "st\032-.google.cloud.aiplatform.v1beta1.Fea" + + "tureGroup\"E\332A\004name\202\323\344\223\0028\0226/v1beta1/{name" + "=projects/*/locations/*/featureGroups/*}" - + "/featureMonitors:\017feature_monitor\022\330\001\n\021Ge" - + "tFeatureMonitor\0229.google.cloud.aiplatfor" - + "m.v1beta1.GetFeatureMonitorRequest\032/.goo" - + "gle.cloud.aiplatform.v1beta1.FeatureMoni" - + "tor\"W\332A\004name\202\323\344\223\002J\022H/v1beta1/{name=proje" - + "cts/*/locations/*/featureGroups/*/featur" - + "eMonitors/*}\022\353\001\n\023ListFeatureMonitors\022;.g" - + "oogle.cloud.aiplatform.v1beta1.ListFeatu" - + "reMonitorsRequest\032<.google.cloud.aiplatf" - + "orm.v1beta1.ListFeatureMonitorsResponse\"" - + "Y\332A\006parent\202\323\344\223\002J\022H/v1beta1/{parent=proje" - + "cts/*/locations/*/featureGroups/*}/featu" - + "reMonitors\022\200\002\n\024DeleteFeatureMonitor\022<.go" - + "ogle.cloud.aiplatform.v1beta1.DeleteFeat" - + "ureMonitorRequest\032\035.google.longrunning.O" - + "peration\"\212\001\312A0\n\025google.protobuf.Empty\022\027D" - + "eleteOperationMetadata\332A\004name\202\323\344\223\002J*H/v1" - + "beta1/{name=projects/*/locations/*/featu" - + "reGroups/*/featureMonitors/*}\022\277\002\n\027Create" - + "FeatureMonitorJob\022?.google.cloud.aiplatf" - + "orm.v1beta1.CreateFeatureMonitorJobReque" - + "st\0322.google.cloud.aiplatform.v1beta1.Fea" - + "tureMonitorJob\"\256\001\332A1parent,feature_monit" - + "or_job,feature_monitor_job_id\202\323\344\223\002t\"]/v1" - + "beta1/{parent=projects/*/locations/*/fea" - + "tureGroups/*/featureMonitors/*}/featureM" - + "onitorJobs:\023feature_monitor_job\022\366\001\n\024GetF" - + "eatureMonitorJob\022<.google.cloud.aiplatfo" - + "rm.v1beta1.GetFeatureMonitorJobRequest\0322" - + ".google.cloud.aiplatform.v1beta1.Feature" - + "MonitorJob\"l\332A\004name\202\323\344\223\002_\022]/v1beta1/{nam" - + "e=projects/*/locations/*/featureGroups/*" - + "/featureMonitors/*/featureMonitorJobs/*}" - + "\022\211\002\n\026ListFeatureMonitorJobs\022>.google.clo" - + "ud.aiplatform.v1beta1.ListFeatureMonitor" - + "JobsRequest\032?.google.cloud.aiplatform.v1" - + "beta1.ListFeatureMonitorJobsResponse\"n\332A" - + "\006parent\202\323\344\223\002_\022]/v1beta1/{parent=projects" - + "/*/locations/*/featureGroups/*/featureMo" - + "nitors/*}/featureMonitorJobs\032M\312A\031aiplatf" - + "orm.googleapis.com\322A.https://www.googlea" - + "pis.com/auth/cloud-platformB\362\001\n#com.goog" - + "le.cloud.aiplatform.v1beta1B\033FeatureRegi" - + "stryServiceProtoP\001ZCcloud.google.com/go/" - + "aiplatform/apiv1beta1/aiplatformpb;aipla" - + "tformpb\252\002\037Google.Cloud.AIPlatform.V1Beta" - + "1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Go" - + "ogle::Cloud::AIPlatform::V1beta1b\006proto3" + + "\022\323\001\n\021ListFeatureGroups\0229.google.cloud.ai" + + "platform.v1beta1.ListFeatureGroupsReques" + + "t\032:.google.cloud.aiplatform.v1beta1.List" + + "FeatureGroupsResponse\"G\332A\006parent\202\323\344\223\0028\0226" + + "/v1beta1/{parent=projects/*/locations/*}" + + "/featureGroups\022\237\002\n\022UpdateFeatureGroup\022:." + + "google.cloud.aiplatform.v1beta1.UpdateFe" + + "atureGroupRequest\032\035.google.longrunning.O" + + "peration\"\255\001\312A3\n\014FeatureGroup\022#UpdateFeat" + + "ureGroupOperationMetadata\332A\031feature_grou" + + "p,update_mask\202\323\344\223\002U2D/v1beta1/{feature_g" + + "roup.name=projects/*/locations/*/feature" + + "Groups/*}:\rfeature_group\022\357\001\n\022DeleteFeatu" + + "reGroup\022:.google.cloud.aiplatform.v1beta" + + "1.DeleteFeatureGroupRequest\032\035.google.lon" + + "grunning.Operation\"~\312A0\n\025google.protobuf" + + ".Empty\022\027DeleteOperationMetadata\332A\nname,f" + + "orce\202\323\344\223\0028*6/v1beta1/{name=projects/*/lo" + + "cations/*/featureGroups/*}\022\202\002\n\rCreateFea" + + "ture\0225.google.cloud.aiplatform.v1beta1.C" + + "reateFeatureRequest\032\035.google.longrunning" + + ".Operation\"\232\001\312A)\n\007Feature\022\036CreateFeature" + + "OperationMetadata\332A\031parent,feature,featu" + + "re_id\202\323\344\223\002L\"A/v1beta1/{parent=projects/*" + + "/locations/*/featureGroups/*}/features:\007" + + "feature\022\244\002\n\023BatchCreateFeatures\022;.google" + + ".cloud.aiplatform.v1beta1.BatchCreateFea" + + "turesRequest\032\035.google.longrunning.Operat" + + "ion\"\260\001\312AC\n\033BatchCreateFeaturesResponse\022$" + + "BatchCreateFeaturesOperationMetadata\332A\017p" + + "arent,requests\202\323\344\223\002R\"M/v1beta1/{parent=p" + + "rojects/*/locations/*/featureGroups/*}/f" + + "eatures:batchCreate:\001*\022\274\001\n\nGetFeature\0222." + + "google.cloud.aiplatform.v1beta1.GetFeatu" + + "reRequest\032(.google.cloud.aiplatform.v1be" + + "ta1.Feature\"P\332A\004name\202\323\344\223\002C\022A/v1beta1/{na" + + "me=projects/*/locations/*/featureGroups/" + + "*/features/*}\022\317\001\n\014ListFeatures\0224.google." + + "cloud.aiplatform.v1beta1.ListFeaturesReq" + + "uest\0325.google.cloud.aiplatform.v1beta1.L" + + "istFeaturesResponse\"R\332A\006parent\202\323\344\223\002C\022A/v" + + "1beta1/{parent=projects/*/locations/*/fe" + + "atureGroups/*}/features\022\204\002\n\rUpdateFeatur" + + "e\0225.google.cloud.aiplatform.v1beta1.Upda" + + "teFeatureRequest\032\035.google.longrunning.Op" + + "eration\"\234\001\312A)\n\007Feature\022\036UpdateFeatureOpe" + + "rationMetadata\332A\023feature,update_mask\202\323\344\223" + + "\002T2I/v1beta1/{feature.name=projects/*/lo" + + "cations/*/featureGroups/*/features/*}:\007f" + + "eature\022\353\001\n\rDeleteFeature\0225.google.cloud." + + "aiplatform.v1beta1.DeleteFeatureRequest\032" + + "\035.google.longrunning.Operation\"\203\001\312A0\n\025go" + + "ogle.protobuf.Empty\022\027DeleteOperationMeta" + + "data\332A\004name\202\323\344\223\002C*A/v1beta1/{name=projec" + + "ts/*/locations/*/featureGroups/*/feature" + + "s/*}\022\275\002\n\024CreateFeatureMonitor\022<.google.c" + + "loud.aiplatform.v1beta1.CreateFeatureMon" + + "itorRequest\032\035.google.longrunning.Operati" + + "on\"\307\001\312A7\n\016FeatureMonitor\022%CreateFeatureM" + + "onitorOperationMetadata\332A)parent,feature" + + "_monitor,feature_monitor_id\202\323\344\223\002[\"H/v1be" + + "ta1/{parent=projects/*/locations/*/featu" + + "reGroups/*}/featureMonitors:\017feature_mon" + + "itor\022\330\001\n\021GetFeatureMonitor\0229.google.clou" + + "d.aiplatform.v1beta1.GetFeatureMonitorRe" + + "quest\032/.google.cloud.aiplatform.v1beta1." + + "FeatureMonitor\"W\332A\004name\202\323\344\223\002J\022H/v1beta1/" + + "{name=projects/*/locations/*/featureGrou" + + "ps/*/featureMonitors/*}\022\353\001\n\023ListFeatureM" + + "onitors\022;.google.cloud.aiplatform.v1beta" + + "1.ListFeatureMonitorsRequest\032<.google.cl" + + "oud.aiplatform.v1beta1.ListFeatureMonito" + + "rsResponse\"Y\332A\006parent\202\323\344\223\002J\022H/v1beta1/{p" + + "arent=projects/*/locations/*/featureGrou" + + "ps/*}/featureMonitors\022\277\002\n\024UpdateFeatureM" + + "onitor\022<.google.cloud.aiplatform.v1beta1" + + ".UpdateFeatureMonitorRequest\032\035.google.lo" + + "ngrunning.Operation\"\311\001\312A7\n\016FeatureMonito" + + "r\022%UpdateFeatureMonitorOperationMetadata" + + "\332A\033feature_monitor,update_mask\202\323\344\223\002k2X/v" + + "1beta1/{feature_monitor.name=projects/*/" + + "locations/*/featureGroups/*/featureMonit" + + "ors/*}:\017feature_monitor\022\200\002\n\024DeleteFeatur" + + "eMonitor\022<.google.cloud.aiplatform.v1bet" + + "a1.DeleteFeatureMonitorRequest\032\035.google." + + "longrunning.Operation\"\212\001\312A0\n\025google.prot" + + "obuf.Empty\022\027DeleteOperationMetadata\332A\004na" + + "me\202\323\344\223\002J*H/v1beta1/{name=projects/*/loca" + + "tions/*/featureGroups/*/featureMonitors/" + + "*}\022\277\002\n\027CreateFeatureMonitorJob\022?.google." + + "cloud.aiplatform.v1beta1.CreateFeatureMo" + + "nitorJobRequest\0322.google.cloud.aiplatfor" + + "m.v1beta1.FeatureMonitorJob\"\256\001\332A1parent," + + "feature_monitor_job,feature_monitor_job_" + + "id\202\323\344\223\002t\"]/v1beta1/{parent=projects/*/lo" + + "cations/*/featureGroups/*/featureMonitor" + + "s/*}/featureMonitorJobs:\023feature_monitor" + + "_job\022\366\001\n\024GetFeatureMonitorJob\022<.google.c" + + "loud.aiplatform.v1beta1.GetFeatureMonito" + + "rJobRequest\0322.google.cloud.aiplatform.v1" + + "beta1.FeatureMonitorJob\"l\332A\004name\202\323\344\223\002_\022]" + + "/v1beta1/{name=projects/*/locations/*/fe" + + "atureGroups/*/featureMonitors/*/featureM" + + "onitorJobs/*}\022\211\002\n\026ListFeatureMonitorJobs" + + "\022>.google.cloud.aiplatform.v1beta1.ListF" + + "eatureMonitorJobsRequest\032?.google.cloud." + + "aiplatform.v1beta1.ListFeatureMonitorJob" + + "sResponse\"n\332A\006parent\202\323\344\223\002_\022]/v1beta1/{pa" + + "rent=projects/*/locations/*/featureGroup" + + "s/*/featureMonitors/*}/featureMonitorJob" + + "s\032M\312A\031aiplatform.googleapis.com\322A.https:" + + "//www.googleapis.com/auth/cloud-platform" + + "B\362\001\n#com.google.cloud.aiplatform.v1beta1" + + "B\033FeatureRegistryServiceProtoP\001ZCcloud.g" + + "oogle.com/go/aiplatform/apiv1beta1/aipla" + + "tformpb;aiplatformpb\252\002\037Google.Cloud.AIPl" + + "atform.V1Beta1\312\002\037Google\\Cloud\\AIPlatform" + + "\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1" + + "beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -418,8 +442,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", "OrderBy", }); - internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureMonitorRequest_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_UpdateFeatureMonitorRequest_descriptor = getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_aiplatform_v1beta1_UpdateFeatureMonitorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_UpdateFeatureMonitorRequest_descriptor, + new java.lang.String[] { + "FeatureMonitor", "UpdateMask", + }); + internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureMonitorRequest_descriptor = + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureMonitorRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_DeleteFeatureMonitorRequest_descriptor, @@ -427,7 +459,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_aiplatform_v1beta1_ListFeatureMonitorsResponse_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_aiplatform_v1beta1_ListFeatureMonitorsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ListFeatureMonitorsResponse_descriptor, @@ -435,7 +467,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FeatureMonitors", "NextPageToken", }); internal_static_google_cloud_aiplatform_v1beta1_CreateFeatureGroupOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_aiplatform_v1beta1_CreateFeatureGroupOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_CreateFeatureGroupOperationMetadata_descriptor, @@ -443,7 +475,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GenericMetadata", }); internal_static_google_cloud_aiplatform_v1beta1_UpdateFeatureGroupOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_aiplatform_v1beta1_UpdateFeatureGroupOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_UpdateFeatureGroupOperationMetadata_descriptor, @@ -451,7 +483,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GenericMetadata", }); internal_static_google_cloud_aiplatform_v1beta1_CreateRegistryFeatureOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_aiplatform_v1beta1_CreateRegistryFeatureOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_CreateRegistryFeatureOperationMetadata_descriptor, @@ -459,7 +491,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GenericMetadata", }); internal_static_google_cloud_aiplatform_v1beta1_UpdateFeatureOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_aiplatform_v1beta1_UpdateFeatureOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_UpdateFeatureOperationMetadata_descriptor, @@ -467,15 +499,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GenericMetadata", }); internal_static_google_cloud_aiplatform_v1beta1_CreateFeatureMonitorOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_aiplatform_v1beta1_CreateFeatureMonitorOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_CreateFeatureMonitorOperationMetadata_descriptor, new java.lang.String[] { "GenericMetadata", }); + internal_static_google_cloud_aiplatform_v1beta1_UpdateFeatureMonitorOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_aiplatform_v1beta1_UpdateFeatureMonitorOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_UpdateFeatureMonitorOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + }); internal_static_google_cloud_aiplatform_v1beta1_CreateFeatureMonitorJobRequest_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_aiplatform_v1beta1_CreateFeatureMonitorJobRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_CreateFeatureMonitorJobRequest_descriptor, @@ -483,7 +523,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "FeatureMonitorJob", "FeatureMonitorJobId", }); internal_static_google_cloud_aiplatform_v1beta1_GetFeatureMonitorJobRequest_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_aiplatform_v1beta1_GetFeatureMonitorJobRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_GetFeatureMonitorJobRequest_descriptor, @@ -491,7 +531,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_aiplatform_v1beta1_ListFeatureMonitorJobsRequest_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_aiplatform_v1beta1_ListFeatureMonitorJobsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ListFeatureMonitorJobsRequest_descriptor, @@ -499,7 +539,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "PageSize", "PageToken", "OrderBy", }); internal_static_google_cloud_aiplatform_v1beta1_ListFeatureMonitorJobsResponse_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_aiplatform_v1beta1_ListFeatureMonitorJobsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ListFeatureMonitorJobsResponse_descriptor, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateContentResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateContentResponse.java index 380451bd1f0a..7cd76b3b9656 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateContentResponse.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateContentResponse.java @@ -1827,6 +1827,203 @@ public interface UsageMetadataOrBuilder * @return The cachedContentTokenCount. */ int getCachedContentTokenCount(); + + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getPromptTokensDetailsList(); + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount getPromptTokensDetails(int index); + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getPromptTokensDetailsCount(); + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getPromptTokensDetailsOrBuilderList(); + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder getPromptTokensDetailsOrBuilder( + int index); + + /** + * + * + *
+     * Output only. List of modalities of the cached content in the request
+     * input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getCacheTokensDetailsList(); + /** + * + * + *
+     * Output only. List of modalities of the cached content in the request
+     * input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount getCacheTokensDetails(int index); + /** + * + * + *
+     * Output only. List of modalities of the cached content in the request
+     * input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getCacheTokensDetailsCount(); + /** + * + * + *
+     * Output only. List of modalities of the cached content in the request
+     * input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getCacheTokensDetailsOrBuilderList(); + /** + * + * + *
+     * Output only. List of modalities of the cached content in the request
+     * input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder getCacheTokensDetailsOrBuilder( + int index); + + /** + * + * + *
+     * Output only. List of modalities that were returned in the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getCandidatesTokensDetailsList(); + /** + * + * + *
+     * Output only. List of modalities that were returned in the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount getCandidatesTokensDetails(int index); + /** + * + * + *
+     * Output only. List of modalities that were returned in the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getCandidatesTokensDetailsCount(); + /** + * + * + *
+     * Output only. List of modalities that were returned in the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getCandidatesTokensDetailsOrBuilderList(); + /** + * + * + *
+     * Output only. List of modalities that were returned in the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder + getCandidatesTokensDetailsOrBuilder(int index); } /** * @@ -1847,7 +2044,11 @@ private UsageMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) super(builder); } - private UsageMetadata() {} + private UsageMetadata() { + promptTokensDetails_ = java.util.Collections.emptyList(); + cacheTokensDetails_ = java.util.Collections.emptyList(); + candidatesTokensDetails_ = java.util.Collections.emptyList(); + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -1947,86 +2148,373 @@ public int getCachedContentTokenCount() { return cachedContentTokenCount_; } - private byte memoizedIsInitialized = -1; + public static final int PROMPT_TOKENS_DETAILS_FIELD_NUMBER = 9; + @SuppressWarnings("serial") + private java.util.List + promptTokensDetails_; + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ @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 + getPromptTokensDetailsList() { + return promptTokensDetails_; } - + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (promptTokenCount_ != 0) { - output.writeInt32(1, promptTokenCount_); - } - if (candidatesTokenCount_ != 0) { - output.writeInt32(2, candidatesTokenCount_); - } - if (totalTokenCount_ != 0) { - output.writeInt32(3, totalTokenCount_); - } - if (cachedContentTokenCount_ != 0) { - output.writeInt32(5, cachedContentTokenCount_); - } - getUnknownFields().writeTo(output); + public java.util.List + getPromptTokensDetailsOrBuilderList() { + return promptTokensDetails_; } - + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (promptTokenCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, promptTokenCount_); - } - if (candidatesTokenCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, candidatesTokenCount_); - } - if (totalTokenCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalTokenCount_); - } - if (cachedContentTokenCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, cachedContentTokenCount_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; + public int getPromptTokensDetailsCount() { + return promptTokensDetails_.size(); } - + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof com.google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata)) { - return super.equals(obj); - } - com.google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata other = - (com.google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata) obj; - - if (getPromptTokenCount() != other.getPromptTokenCount()) return false; - if (getCandidatesTokenCount() != other.getCandidatesTokenCount()) return false; - if (getTotalTokenCount() != other.getTotalTokenCount()) return false; - if (getCachedContentTokenCount() != other.getCachedContentTokenCount()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount getPromptTokensDetails( + int index) { + return promptTokensDetails_.get(index); } - + /** + * + * + *
+     * Output only. List of modalities that were processed in the request input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROMPT_TOKEN_COUNT_FIELD_NUMBER; + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder + getPromptTokensDetailsOrBuilder(int index) { + return promptTokensDetails_.get(index); + } + + public static final int CACHE_TOKENS_DETAILS_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private java.util.List + cacheTokensDetails_; + /** + * + * + *
+     * Output only. List of modalities of the cached content in the request
+     * input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getCacheTokensDetailsList() { + return cacheTokensDetails_; + } + /** + * + * + *
+     * Output only. List of modalities of the cached content in the request
+     * input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getCacheTokensDetailsOrBuilderList() { + return cacheTokensDetails_; + } + /** + * + * + *
+     * Output only. List of modalities of the cached content in the request
+     * input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getCacheTokensDetailsCount() { + return cacheTokensDetails_.size(); + } + /** + * + * + *
+     * Output only. List of modalities of the cached content in the request
+     * input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount getCacheTokensDetails(int index) { + return cacheTokensDetails_.get(index); + } + /** + * + * + *
+     * Output only. List of modalities of the cached content in the request
+     * input.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder + getCacheTokensDetailsOrBuilder(int index) { + return cacheTokensDetails_.get(index); + } + + public static final int CANDIDATES_TOKENS_DETAILS_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private java.util.List + candidatesTokensDetails_; + /** + * + * + *
+     * Output only. List of modalities that were returned in the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getCandidatesTokensDetailsList() { + return candidatesTokensDetails_; + } + /** + * + * + *
+     * Output only. List of modalities that were returned in the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getCandidatesTokensDetailsOrBuilderList() { + return candidatesTokensDetails_; + } + /** + * + * + *
+     * Output only. List of modalities that were returned in the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getCandidatesTokensDetailsCount() { + return candidatesTokensDetails_.size(); + } + /** + * + * + *
+     * Output only. List of modalities that were returned in the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount getCandidatesTokensDetails( + int index) { + return candidatesTokensDetails_.get(index); + } + /** + * + * + *
+     * Output only. List of modalities that were returned in the response.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder + getCandidatesTokensDetailsOrBuilder(int index) { + return candidatesTokensDetails_.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 (promptTokenCount_ != 0) { + output.writeInt32(1, promptTokenCount_); + } + if (candidatesTokenCount_ != 0) { + output.writeInt32(2, candidatesTokenCount_); + } + if (totalTokenCount_ != 0) { + output.writeInt32(3, totalTokenCount_); + } + if (cachedContentTokenCount_ != 0) { + output.writeInt32(5, cachedContentTokenCount_); + } + for (int i = 0; i < promptTokensDetails_.size(); i++) { + output.writeMessage(9, promptTokensDetails_.get(i)); + } + for (int i = 0; i < cacheTokensDetails_.size(); i++) { + output.writeMessage(10, cacheTokensDetails_.get(i)); + } + for (int i = 0; i < candidatesTokensDetails_.size(); i++) { + output.writeMessage(11, candidatesTokensDetails_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (promptTokenCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, promptTokenCount_); + } + if (candidatesTokenCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, candidatesTokenCount_); + } + if (totalTokenCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalTokenCount_); + } + if (cachedContentTokenCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, cachedContentTokenCount_); + } + for (int i = 0; i < promptTokensDetails_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, promptTokensDetails_.get(i)); + } + for (int i = 0; i < cacheTokensDetails_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, cacheTokensDetails_.get(i)); + } + for (int i = 0; i < candidatesTokensDetails_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, candidatesTokensDetails_.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.GenerateContentResponse.UsageMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata other = + (com.google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata) obj; + + if (getPromptTokenCount() != other.getPromptTokenCount()) return false; + if (getCandidatesTokenCount() != other.getCandidatesTokenCount()) return false; + if (getTotalTokenCount() != other.getTotalTokenCount()) return false; + if (getCachedContentTokenCount() != other.getCachedContentTokenCount()) return false; + if (!getPromptTokensDetailsList().equals(other.getPromptTokensDetailsList())) return false; + if (!getCacheTokensDetailsList().equals(other.getCacheTokensDetailsList())) return false; + if (!getCandidatesTokensDetailsList().equals(other.getCandidatesTokensDetailsList())) + return false; + if (!getUnknownFields().equals(other.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) + PROMPT_TOKEN_COUNT_FIELD_NUMBER; hash = (53 * hash) + getPromptTokenCount(); hash = (37 * hash) + CANDIDATES_TOKEN_COUNT_FIELD_NUMBER; hash = (53 * hash) + getCandidatesTokenCount(); @@ -2034,6 +2522,18 @@ public int hashCode() { hash = (53 * hash) + getTotalTokenCount(); hash = (37 * hash) + CACHED_CONTENT_TOKEN_COUNT_FIELD_NUMBER; hash = (53 * hash) + getCachedContentTokenCount(); + if (getPromptTokensDetailsCount() > 0) { + hash = (37 * hash) + PROMPT_TOKENS_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getPromptTokensDetailsList().hashCode(); + } + if (getCacheTokensDetailsCount() > 0) { + hash = (37 * hash) + CACHE_TOKENS_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getCacheTokensDetailsList().hashCode(); + } + if (getCandidatesTokensDetailsCount() > 0) { + hash = (37 * hash) + CANDIDATES_TOKENS_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getCandidatesTokensDetailsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2188,6 +2688,27 @@ public Builder clear() { candidatesTokenCount_ = 0; totalTokenCount_ = 0; cachedContentTokenCount_ = 0; + if (promptTokensDetailsBuilder_ == null) { + promptTokensDetails_ = java.util.Collections.emptyList(); + } else { + promptTokensDetails_ = null; + promptTokensDetailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + if (cacheTokensDetailsBuilder_ == null) { + cacheTokensDetails_ = java.util.Collections.emptyList(); + } else { + cacheTokensDetails_ = null; + cacheTokensDetailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + if (candidatesTokensDetailsBuilder_ == null) { + candidatesTokensDetails_ = java.util.Collections.emptyList(); + } else { + candidatesTokensDetails_ = null; + candidatesTokensDetailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); return this; } @@ -2219,6 +2740,7 @@ public com.google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata buildPartial() { com.google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata result = new com.google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -2226,6 +2748,38 @@ public com.google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata return result; } + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata result) { + if (promptTokensDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + promptTokensDetails_ = java.util.Collections.unmodifiableList(promptTokensDetails_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.promptTokensDetails_ = promptTokensDetails_; + } else { + result.promptTokensDetails_ = promptTokensDetailsBuilder_.build(); + } + if (cacheTokensDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + cacheTokensDetails_ = java.util.Collections.unmodifiableList(cacheTokensDetails_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.cacheTokensDetails_ = cacheTokensDetails_; + } else { + result.cacheTokensDetails_ = cacheTokensDetailsBuilder_.build(); + } + if (candidatesTokensDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + candidatesTokensDetails_ = + java.util.Collections.unmodifiableList(candidatesTokensDetails_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.candidatesTokensDetails_ = candidatesTokensDetails_; + } else { + result.candidatesTokensDetails_ = candidatesTokensDetailsBuilder_.build(); + } + } + private void buildPartial0( com.google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata result) { int from_bitField0_ = bitField0_; @@ -2307,25 +2861,106 @@ public Builder mergeFrom( if (other.getCachedContentTokenCount() != 0) { setCachedContentTokenCount(other.getCachedContentTokenCount()); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + if (promptTokensDetailsBuilder_ == null) { + if (!other.promptTokensDetails_.isEmpty()) { + if (promptTokensDetails_.isEmpty()) { + promptTokensDetails_ = other.promptTokensDetails_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.addAll(other.promptTokensDetails_); + } + onChanged(); + } + } else { + if (!other.promptTokensDetails_.isEmpty()) { + if (promptTokensDetailsBuilder_.isEmpty()) { + promptTokensDetailsBuilder_.dispose(); + promptTokensDetailsBuilder_ = null; + promptTokensDetails_ = other.promptTokensDetails_; + bitField0_ = (bitField0_ & ~0x00000010); + promptTokensDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPromptTokensDetailsFieldBuilder() + : null; + } else { + promptTokensDetailsBuilder_.addAllMessages(other.promptTokensDetails_); + } + } } - try { + if (cacheTokensDetailsBuilder_ == null) { + if (!other.cacheTokensDetails_.isEmpty()) { + if (cacheTokensDetails_.isEmpty()) { + cacheTokensDetails_ = other.cacheTokensDetails_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureCacheTokensDetailsIsMutable(); + cacheTokensDetails_.addAll(other.cacheTokensDetails_); + } + onChanged(); + } + } else { + if (!other.cacheTokensDetails_.isEmpty()) { + if (cacheTokensDetailsBuilder_.isEmpty()) { + cacheTokensDetailsBuilder_.dispose(); + cacheTokensDetailsBuilder_ = null; + cacheTokensDetails_ = other.cacheTokensDetails_; + bitField0_ = (bitField0_ & ~0x00000020); + cacheTokensDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCacheTokensDetailsFieldBuilder() + : null; + } else { + cacheTokensDetailsBuilder_.addAllMessages(other.cacheTokensDetails_); + } + } + } + if (candidatesTokensDetailsBuilder_ == null) { + if (!other.candidatesTokensDetails_.isEmpty()) { + if (candidatesTokensDetails_.isEmpty()) { + candidatesTokensDetails_ = other.candidatesTokensDetails_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureCandidatesTokensDetailsIsMutable(); + candidatesTokensDetails_.addAll(other.candidatesTokensDetails_); + } + onChanged(); + } + } else { + if (!other.candidatesTokensDetails_.isEmpty()) { + if (candidatesTokensDetailsBuilder_.isEmpty()) { + candidatesTokensDetailsBuilder_.dispose(); + candidatesTokensDetailsBuilder_ = null; + candidatesTokensDetails_ = other.candidatesTokensDetails_; + bitField0_ = (bitField0_ & ~0x00000040); + candidatesTokensDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCandidatesTokensDetailsFieldBuilder() + : null; + } else { + candidatesTokensDetailsBuilder_.addAllMessages(other.candidatesTokensDetails_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { boolean done = false; while (!done) { int tag = input.readTag(); @@ -2357,6 +2992,48 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 40 + case 74: + { + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.parser(), + extensionRegistry); + if (promptTokensDetailsBuilder_ == null) { + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.add(m); + } else { + promptTokensDetailsBuilder_.addMessage(m); + } + break; + } // case 74 + case 82: + { + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.parser(), + extensionRegistry); + if (cacheTokensDetailsBuilder_ == null) { + ensureCacheTokensDetailsIsMutable(); + cacheTokensDetails_.add(m); + } else { + cacheTokensDetailsBuilder_.addMessage(m); + } + break; + } // case 82 + case 90: + { + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.parser(), + extensionRegistry); + if (candidatesTokensDetailsBuilder_ == null) { + ensureCandidatesTokensDetailsIsMutable(); + candidatesTokensDetails_.add(m); + } else { + candidatesTokensDetailsBuilder_.addMessage(m); + } + break; + } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2600,6 +3277,1242 @@ public Builder clearCachedContentTokenCount() { return this; } + private java.util.List + promptTokensDetails_ = java.util.Collections.emptyList(); + + private void ensurePromptTokensDetailsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + promptTokensDetails_ = + new java.util.ArrayList( + promptTokensDetails_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder> + promptTokensDetailsBuilder_; + + /** + * + * + *
+       * Output only. List of modalities that were processed in the request input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getPromptTokensDetailsList() { + if (promptTokensDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(promptTokensDetails_); + } else { + return promptTokensDetailsBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * Output only. List of modalities that were processed in the request input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getPromptTokensDetailsCount() { + if (promptTokensDetailsBuilder_ == null) { + return promptTokensDetails_.size(); + } else { + return promptTokensDetailsBuilder_.getCount(); + } + } + /** + * + * + *
+       * Output only. List of modalities that were processed in the request input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount getPromptTokensDetails( + int index) { + if (promptTokensDetailsBuilder_ == null) { + return promptTokensDetails_.get(index); + } else { + return promptTokensDetailsBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * Output only. List of modalities that were processed in the request input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPromptTokensDetails( + int index, com.google.cloud.aiplatform.v1beta1.ModalityTokenCount value) { + if (promptTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.set(index, value); + onChanged(); + } else { + promptTokensDetailsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities that were processed in the request input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPromptTokensDetails( + int index, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder builderForValue) { + if (promptTokensDetailsBuilder_ == null) { + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + promptTokensDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities that were processed in the request input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPromptTokensDetails( + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount value) { + if (promptTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.add(value); + onChanged(); + } else { + promptTokensDetailsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities that were processed in the request input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPromptTokensDetails( + int index, com.google.cloud.aiplatform.v1beta1.ModalityTokenCount value) { + if (promptTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.add(index, value); + onChanged(); + } else { + promptTokensDetailsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities that were processed in the request input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPromptTokensDetails( + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder builderForValue) { + if (promptTokensDetailsBuilder_ == null) { + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.add(builderForValue.build()); + onChanged(); + } else { + promptTokensDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities that were processed in the request input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPromptTokensDetails( + int index, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder builderForValue) { + if (promptTokensDetailsBuilder_ == null) { + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + promptTokensDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities that were processed in the request input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllPromptTokensDetails( + java.lang.Iterable + values) { + if (promptTokensDetailsBuilder_ == null) { + ensurePromptTokensDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, promptTokensDetails_); + onChanged(); + } else { + promptTokensDetailsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities that were processed in the request input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPromptTokensDetails() { + if (promptTokensDetailsBuilder_ == null) { + promptTokensDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + promptTokensDetailsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities that were processed in the request input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removePromptTokensDetails(int index) { + if (promptTokensDetailsBuilder_ == null) { + ensurePromptTokensDetailsIsMutable(); + promptTokensDetails_.remove(index); + onChanged(); + } else { + promptTokensDetailsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities that were processed in the request input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder + getPromptTokensDetailsBuilder(int index) { + return getPromptTokensDetailsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * Output only. List of modalities that were processed in the request input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder + getPromptTokensDetailsOrBuilder(int index) { + if (promptTokensDetailsBuilder_ == null) { + return promptTokensDetails_.get(index); + } else { + return promptTokensDetailsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * Output only. List of modalities that were processed in the request input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder> + getPromptTokensDetailsOrBuilderList() { + if (promptTokensDetailsBuilder_ != null) { + return promptTokensDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(promptTokensDetails_); + } + } + /** + * + * + *
+       * Output only. List of modalities that were processed in the request input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder + addPromptTokensDetailsBuilder() { + return getPromptTokensDetailsFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.getDefaultInstance()); + } + /** + * + * + *
+       * Output only. List of modalities that were processed in the request input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder + addPromptTokensDetailsBuilder(int index) { + return getPromptTokensDetailsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.getDefaultInstance()); + } + /** + * + * + *
+       * Output only. List of modalities that were processed in the request input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getPromptTokensDetailsBuilderList() { + return getPromptTokensDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder> + getPromptTokensDetailsFieldBuilder() { + if (promptTokensDetailsBuilder_ == null) { + promptTokensDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder>( + promptTokensDetails_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + promptTokensDetails_ = null; + } + return promptTokensDetailsBuilder_; + } + + private java.util.List + cacheTokensDetails_ = java.util.Collections.emptyList(); + + private void ensureCacheTokensDetailsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + cacheTokensDetails_ = + new java.util.ArrayList( + cacheTokensDetails_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder> + cacheTokensDetailsBuilder_; + + /** + * + * + *
+       * Output only. List of modalities of the cached content in the request
+       * input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getCacheTokensDetailsList() { + if (cacheTokensDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(cacheTokensDetails_); + } else { + return cacheTokensDetailsBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * Output only. List of modalities of the cached content in the request
+       * input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getCacheTokensDetailsCount() { + if (cacheTokensDetailsBuilder_ == null) { + return cacheTokensDetails_.size(); + } else { + return cacheTokensDetailsBuilder_.getCount(); + } + } + /** + * + * + *
+       * Output only. List of modalities of the cached content in the request
+       * input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount getCacheTokensDetails( + int index) { + if (cacheTokensDetailsBuilder_ == null) { + return cacheTokensDetails_.get(index); + } else { + return cacheTokensDetailsBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * Output only. List of modalities of the cached content in the request
+       * input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCacheTokensDetails( + int index, com.google.cloud.aiplatform.v1beta1.ModalityTokenCount value) { + if (cacheTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCacheTokensDetailsIsMutable(); + cacheTokensDetails_.set(index, value); + onChanged(); + } else { + cacheTokensDetailsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities of the cached content in the request
+       * input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCacheTokensDetails( + int index, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder builderForValue) { + if (cacheTokensDetailsBuilder_ == null) { + ensureCacheTokensDetailsIsMutable(); + cacheTokensDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + cacheTokensDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities of the cached content in the request
+       * input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCacheTokensDetails( + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount value) { + if (cacheTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCacheTokensDetailsIsMutable(); + cacheTokensDetails_.add(value); + onChanged(); + } else { + cacheTokensDetailsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities of the cached content in the request
+       * input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCacheTokensDetails( + int index, com.google.cloud.aiplatform.v1beta1.ModalityTokenCount value) { + if (cacheTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCacheTokensDetailsIsMutable(); + cacheTokensDetails_.add(index, value); + onChanged(); + } else { + cacheTokensDetailsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities of the cached content in the request
+       * input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCacheTokensDetails( + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder builderForValue) { + if (cacheTokensDetailsBuilder_ == null) { + ensureCacheTokensDetailsIsMutable(); + cacheTokensDetails_.add(builderForValue.build()); + onChanged(); + } else { + cacheTokensDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities of the cached content in the request
+       * input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCacheTokensDetails( + int index, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder builderForValue) { + if (cacheTokensDetailsBuilder_ == null) { + ensureCacheTokensDetailsIsMutable(); + cacheTokensDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + cacheTokensDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities of the cached content in the request
+       * input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllCacheTokensDetails( + java.lang.Iterable + values) { + if (cacheTokensDetailsBuilder_ == null) { + ensureCacheTokensDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cacheTokensDetails_); + onChanged(); + } else { + cacheTokensDetailsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities of the cached content in the request
+       * input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCacheTokensDetails() { + if (cacheTokensDetailsBuilder_ == null) { + cacheTokensDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + cacheTokensDetailsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities of the cached content in the request
+       * input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeCacheTokensDetails(int index) { + if (cacheTokensDetailsBuilder_ == null) { + ensureCacheTokensDetailsIsMutable(); + cacheTokensDetails_.remove(index); + onChanged(); + } else { + cacheTokensDetailsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities of the cached content in the request
+       * input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder + getCacheTokensDetailsBuilder(int index) { + return getCacheTokensDetailsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * Output only. List of modalities of the cached content in the request
+       * input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder + getCacheTokensDetailsOrBuilder(int index) { + if (cacheTokensDetailsBuilder_ == null) { + return cacheTokensDetails_.get(index); + } else { + return cacheTokensDetailsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * Output only. List of modalities of the cached content in the request
+       * input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder> + getCacheTokensDetailsOrBuilderList() { + if (cacheTokensDetailsBuilder_ != null) { + return cacheTokensDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cacheTokensDetails_); + } + } + /** + * + * + *
+       * Output only. List of modalities of the cached content in the request
+       * input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder + addCacheTokensDetailsBuilder() { + return getCacheTokensDetailsFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.getDefaultInstance()); + } + /** + * + * + *
+       * Output only. List of modalities of the cached content in the request
+       * input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder + addCacheTokensDetailsBuilder(int index) { + return getCacheTokensDetailsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.getDefaultInstance()); + } + /** + * + * + *
+       * Output only. List of modalities of the cached content in the request
+       * input.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getCacheTokensDetailsBuilderList() { + return getCacheTokensDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder> + getCacheTokensDetailsFieldBuilder() { + if (cacheTokensDetailsBuilder_ == null) { + cacheTokensDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder>( + cacheTokensDetails_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + cacheTokensDetails_ = null; + } + return cacheTokensDetailsBuilder_; + } + + private java.util.List + candidatesTokensDetails_ = java.util.Collections.emptyList(); + + private void ensureCandidatesTokensDetailsIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + candidatesTokensDetails_ = + new java.util.ArrayList( + candidatesTokensDetails_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder> + candidatesTokensDetailsBuilder_; + + /** + * + * + *
+       * Output only. List of modalities that were returned in the response.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getCandidatesTokensDetailsList() { + if (candidatesTokensDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(candidatesTokensDetails_); + } else { + return candidatesTokensDetailsBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * Output only. List of modalities that were returned in the response.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getCandidatesTokensDetailsCount() { + if (candidatesTokensDetailsBuilder_ == null) { + return candidatesTokensDetails_.size(); + } else { + return candidatesTokensDetailsBuilder_.getCount(); + } + } + /** + * + * + *
+       * Output only. List of modalities that were returned in the response.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount getCandidatesTokensDetails( + int index) { + if (candidatesTokensDetailsBuilder_ == null) { + return candidatesTokensDetails_.get(index); + } else { + return candidatesTokensDetailsBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * Output only. List of modalities that were returned in the response.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCandidatesTokensDetails( + int index, com.google.cloud.aiplatform.v1beta1.ModalityTokenCount value) { + if (candidatesTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCandidatesTokensDetailsIsMutable(); + candidatesTokensDetails_.set(index, value); + onChanged(); + } else { + candidatesTokensDetailsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities that were returned in the response.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCandidatesTokensDetails( + int index, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder builderForValue) { + if (candidatesTokensDetailsBuilder_ == null) { + ensureCandidatesTokensDetailsIsMutable(); + candidatesTokensDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + candidatesTokensDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities that were returned in the response.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCandidatesTokensDetails( + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount value) { + if (candidatesTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCandidatesTokensDetailsIsMutable(); + candidatesTokensDetails_.add(value); + onChanged(); + } else { + candidatesTokensDetailsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities that were returned in the response.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCandidatesTokensDetails( + int index, com.google.cloud.aiplatform.v1beta1.ModalityTokenCount value) { + if (candidatesTokensDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCandidatesTokensDetailsIsMutable(); + candidatesTokensDetails_.add(index, value); + onChanged(); + } else { + candidatesTokensDetailsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities that were returned in the response.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCandidatesTokensDetails( + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder builderForValue) { + if (candidatesTokensDetailsBuilder_ == null) { + ensureCandidatesTokensDetailsIsMutable(); + candidatesTokensDetails_.add(builderForValue.build()); + onChanged(); + } else { + candidatesTokensDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities that were returned in the response.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCandidatesTokensDetails( + int index, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder builderForValue) { + if (candidatesTokensDetailsBuilder_ == null) { + ensureCandidatesTokensDetailsIsMutable(); + candidatesTokensDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + candidatesTokensDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities that were returned in the response.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllCandidatesTokensDetails( + java.lang.Iterable + values) { + if (candidatesTokensDetailsBuilder_ == null) { + ensureCandidatesTokensDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, candidatesTokensDetails_); + onChanged(); + } else { + candidatesTokensDetailsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities that were returned in the response.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCandidatesTokensDetails() { + if (candidatesTokensDetailsBuilder_ == null) { + candidatesTokensDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + candidatesTokensDetailsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities that were returned in the response.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeCandidatesTokensDetails(int index) { + if (candidatesTokensDetailsBuilder_ == null) { + ensureCandidatesTokensDetailsIsMutable(); + candidatesTokensDetails_.remove(index); + onChanged(); + } else { + candidatesTokensDetailsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * Output only. List of modalities that were returned in the response.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder + getCandidatesTokensDetailsBuilder(int index) { + return getCandidatesTokensDetailsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * Output only. List of modalities that were returned in the response.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder + getCandidatesTokensDetailsOrBuilder(int index) { + if (candidatesTokensDetailsBuilder_ == null) { + return candidatesTokensDetails_.get(index); + } else { + return candidatesTokensDetailsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * Output only. List of modalities that were returned in the response.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder> + getCandidatesTokensDetailsOrBuilderList() { + if (candidatesTokensDetailsBuilder_ != null) { + return candidatesTokensDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(candidatesTokensDetails_); + } + } + /** + * + * + *
+       * Output only. List of modalities that were returned in the response.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder + addCandidatesTokensDetailsBuilder() { + return getCandidatesTokensDetailsFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.getDefaultInstance()); + } + /** + * + * + *
+       * Output only. List of modalities that were returned in the response.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder + addCandidatesTokensDetailsBuilder(int index) { + return getCandidatesTokensDetailsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.getDefaultInstance()); + } + /** + * + * + *
+       * Output only. List of modalities that were returned in the response.
+       * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getCandidatesTokensDetailsBuilderList() { + return getCandidatesTokensDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder> + getCandidatesTokensDetailsFieldBuilder() { + if (candidatesTokensDetailsBuilder_ == null) { + candidatesTokensDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder>( + candidatesTokensDetails_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + candidatesTokensDetails_ = null; + } + return candidatesTokensDetailsBuilder_; + } + @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/ListModelVersionCheckpointsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelVersionCheckpointsRequest.java new file mode 100644 index 000000000000..3ddc93b429bd --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelVersionCheckpointsRequest.java @@ -0,0 +1,1007 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [ModelService.ListModelVersionCheckpoints][google.cloud.aiplatform.v1beta1.ModelService.ListModelVersionCheckpoints].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest} + */ +public final class ListModelVersionCheckpointsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest) + ListModelVersionCheckpointsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListModelVersionCheckpointsRequest.newBuilder() to construct. + private ListModelVersionCheckpointsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListModelVersionCheckpointsRequest() { + name_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListModelVersionCheckpointsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListModelVersionCheckpointsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListModelVersionCheckpointsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest.class, + com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the model version to list checkpoints for.
+   * `projects/{project}/locations/{location}/models/{model}@{version}`
+   * Example: `projects/{project}/locations/{location}/models/{model}@2`
+   * or
+   * `projects/{project}/locations/{location}/models/{model}@golden`
+   * If no version ID or alias is specified, the latest version will be
+   * used.
+   * 
+ * + * + * 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 model version to list checkpoints for.
+   * `projects/{project}/locations/{location}/models/{model}@{version}`
+   * Example: `projects/{project}/locations/{location}/models/{model}@2`
+   * or
+   * `projects/{project}/locations/{location}/models/{model}@golden`
+   * If no version ID or alias is specified, the latest version will be
+   * used.
+   * 
+ * + * + * 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 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
+   * [next_page_token][google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse.next_page_token]
+   * of the previous
+   * [ListModelVersionCheckpoints][google.cloud.aiplatform.v1beta1.ModelService.ListModelVersionCheckpoints]
+   * 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
+   * [next_page_token][google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse.next_page_token]
+   * of the previous
+   * [ListModelVersionCheckpoints][google.cloud.aiplatform.v1beta1.ModelService.ListModelVersionCheckpoints]
+   * 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(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_); + } + 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_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.ListModelVersionCheckpointsRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest other = + (com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest) obj; + + if (!getName().equals(other.getName())) 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) + 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest parseFrom( + 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.ListModelVersionCheckpointsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest parseFrom( + com.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.ListModelVersionCheckpointsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest 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.ListModelVersionCheckpointsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest parseFrom( + java.io.InputStream 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.ListModelVersionCheckpointsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest + parseDelimitedFrom( + java.io.InputStream 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.ListModelVersionCheckpointsRequest 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.ListModelVersionCheckpointsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.ListModelVersionCheckpointsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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
+   * [ModelService.ListModelVersionCheckpoints][google.cloud.aiplatform.v1beta1.ModelService.ListModelVersionCheckpoints].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest) + com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListModelVersionCheckpointsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListModelVersionCheckpointsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest.class, + com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest.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_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListModelVersionCheckpointsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest build() { + com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest result = + new com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest 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_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.ListModelVersionCheckpointsRequest) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest + .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(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + 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 model version to list checkpoints for.
+     * `projects/{project}/locations/{location}/models/{model}@{version}`
+     * Example: `projects/{project}/locations/{location}/models/{model}@2`
+     * or
+     * `projects/{project}/locations/{location}/models/{model}@golden`
+     * If no version ID or alias is specified, the latest version will be
+     * used.
+     * 
+ * + * + * 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 model version to list checkpoints for.
+     * `projects/{project}/locations/{location}/models/{model}@{version}`
+     * Example: `projects/{project}/locations/{location}/models/{model}@2`
+     * or
+     * `projects/{project}/locations/{location}/models/{model}@golden`
+     * If no version ID or alias is specified, the latest version will be
+     * used.
+     * 
+ * + * + * 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 model version to list checkpoints for.
+     * `projects/{project}/locations/{location}/models/{model}@{version}`
+     * Example: `projects/{project}/locations/{location}/models/{model}@2`
+     * or
+     * `projects/{project}/locations/{location}/models/{model}@golden`
+     * If no version ID or alias is specified, the latest version will be
+     * used.
+     * 
+ * + * + * 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 model version to list checkpoints for.
+     * `projects/{project}/locations/{location}/models/{model}@{version}`
+     * Example: `projects/{project}/locations/{location}/models/{model}@2`
+     * or
+     * `projects/{project}/locations/{location}/models/{model}@golden`
+     * If no version ID or alias is specified, the latest version will be
+     * used.
+     * 
+ * + * + * 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 model version to list checkpoints for.
+     * `projects/{project}/locations/{location}/models/{model}@{version}`
+     * Example: `projects/{project}/locations/{location}/models/{model}@2`
+     * or
+     * `projects/{project}/locations/{location}/models/{model}@golden`
+     * If no version ID or alias is specified, the latest version will be
+     * used.
+     * 
+ * + * + * 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 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
+     * [next_page_token][google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse.next_page_token]
+     * of the previous
+     * [ListModelVersionCheckpoints][google.cloud.aiplatform.v1beta1.ModelService.ListModelVersionCheckpoints]
+     * 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
+     * [next_page_token][google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse.next_page_token]
+     * of the previous
+     * [ListModelVersionCheckpoints][google.cloud.aiplatform.v1beta1.ModelService.ListModelVersionCheckpoints]
+     * 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
+     * [next_page_token][google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse.next_page_token]
+     * of the previous
+     * [ListModelVersionCheckpoints][google.cloud.aiplatform.v1beta1.ModelService.ListModelVersionCheckpoints]
+     * 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
+     * [next_page_token][google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse.next_page_token]
+     * of the previous
+     * [ListModelVersionCheckpoints][google.cloud.aiplatform.v1beta1.ModelService.ListModelVersionCheckpoints]
+     * 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
+     * [next_page_token][google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse.next_page_token]
+     * of the previous
+     * [ListModelVersionCheckpoints][google.cloud.aiplatform.v1beta1.ModelService.ListModelVersionCheckpoints]
+     * 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.v1beta1.ListModelVersionCheckpointsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest) + private static final com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListModelVersionCheckpointsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.ListModelVersionCheckpointsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelVersionCheckpointsRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelVersionCheckpointsRequestOrBuilder.java new file mode 100644 index 000000000000..6256c6c51d2a --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelVersionCheckpointsRequestOrBuilder.java @@ -0,0 +1,115 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface ListModelVersionCheckpointsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the model version to list checkpoints for.
+   * `projects/{project}/locations/{location}/models/{model}@{version}`
+   * Example: `projects/{project}/locations/{location}/models/{model}@2`
+   * or
+   * `projects/{project}/locations/{location}/models/{model}@golden`
+   * If no version ID or alias is specified, the latest version will be
+   * used.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the model version to list checkpoints for.
+   * `projects/{project}/locations/{location}/models/{model}@{version}`
+   * Example: `projects/{project}/locations/{location}/models/{model}@2`
+   * or
+   * `projects/{project}/locations/{location}/models/{model}@golden`
+   * If no version ID or alias is specified, the latest version will be
+   * used.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * 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
+   * [next_page_token][google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse.next_page_token]
+   * of the previous
+   * [ListModelVersionCheckpoints][google.cloud.aiplatform.v1beta1.ModelService.ListModelVersionCheckpoints]
+   * 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
+   * [next_page_token][google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse.next_page_token]
+   * of the previous
+   * [ListModelVersionCheckpoints][google.cloud.aiplatform.v1beta1.ModelService.ListModelVersionCheckpoints]
+   * 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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelVersionCheckpointsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelVersionCheckpointsResponse.java new file mode 100644 index 000000000000..645895a2fb20 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelVersionCheckpointsResponse.java @@ -0,0 +1,1199 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for
+ * [ModelService.ListModelVersionCheckpoints][google.cloud.aiplatform.v1beta1.ModelService.ListModelVersionCheckpoints]
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse} + */ +public final class ListModelVersionCheckpointsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse) + ListModelVersionCheckpointsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListModelVersionCheckpointsResponse.newBuilder() to construct. + private ListModelVersionCheckpointsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListModelVersionCheckpointsResponse() { + checkpoints_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListModelVersionCheckpointsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListModelVersionCheckpointsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListModelVersionCheckpointsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse.class, + com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse.Builder.class); + } + + public static final int CHECKPOINTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List checkpoints_; + /** + * + * + *
+   * List of Model Version checkpoints.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint checkpoints = 1; + */ + @java.lang.Override + public java.util.List + getCheckpointsList() { + return checkpoints_; + } + /** + * + * + *
+   * List of Model Version checkpoints.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint checkpoints = 1; + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpointOrBuilder> + getCheckpointsOrBuilderList() { + return checkpoints_; + } + /** + * + * + *
+   * List of Model Version checkpoints.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint checkpoints = 1; + */ + @java.lang.Override + public int getCheckpointsCount() { + return checkpoints_.size(); + } + /** + * + * + *
+   * List of Model Version checkpoints.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint checkpoints = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint getCheckpoints(int index) { + return checkpoints_.get(index); + } + /** + * + * + *
+   * List of Model Version checkpoints.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint checkpoints = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpointOrBuilder + getCheckpointsOrBuilder(int index) { + return checkpoints_.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
+   * [ListModelVersionCheckpointsRequest.page_token][google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest.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
+   * [ListModelVersionCheckpointsRequest.page_token][google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest.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 < checkpoints_.size(); i++) { + output.writeMessage(1, checkpoints_.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 < checkpoints_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, checkpoints_.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.v1beta1.ListModelVersionCheckpointsResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse other = + (com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse) obj; + + if (!getCheckpointsList().equals(other.getCheckpointsList())) 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 (getCheckpointsCount() > 0) { + hash = (37 * hash) + CHECKPOINTS_FIELD_NUMBER; + hash = (53 * hash) + getCheckpointsList().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.v1beta1.ListModelVersionCheckpointsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse parseFrom( + 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.ListModelVersionCheckpointsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse parseFrom( + com.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.ListModelVersionCheckpointsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse 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.ListModelVersionCheckpointsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse parseFrom( + java.io.InputStream 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.ListModelVersionCheckpointsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse + parseDelimitedFrom( + java.io.InputStream 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.ListModelVersionCheckpointsResponse 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.ListModelVersionCheckpointsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.ListModelVersionCheckpointsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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
+   * [ModelService.ListModelVersionCheckpoints][google.cloud.aiplatform.v1beta1.ModelService.ListModelVersionCheckpoints]
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse) + com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListModelVersionCheckpointsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListModelVersionCheckpointsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse.class, + com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (checkpointsBuilder_ == null) { + checkpoints_ = java.util.Collections.emptyList(); + } else { + checkpoints_ = null; + checkpointsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListModelVersionCheckpointsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse build() { + com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse result = + new com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse result) { + if (checkpointsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + checkpoints_ = java.util.Collections.unmodifiableList(checkpoints_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.checkpoints_ = checkpoints_; + } else { + result.checkpoints_ = checkpointsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse 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.v1beta1.ListModelVersionCheckpointsResponse) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse + .getDefaultInstance()) return this; + if (checkpointsBuilder_ == null) { + if (!other.checkpoints_.isEmpty()) { + if (checkpoints_.isEmpty()) { + checkpoints_ = other.checkpoints_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCheckpointsIsMutable(); + checkpoints_.addAll(other.checkpoints_); + } + onChanged(); + } + } else { + if (!other.checkpoints_.isEmpty()) { + if (checkpointsBuilder_.isEmpty()) { + checkpointsBuilder_.dispose(); + checkpointsBuilder_ = null; + checkpoints_ = other.checkpoints_; + bitField0_ = (bitField0_ & ~0x00000001); + checkpointsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCheckpointsFieldBuilder() + : null; + } else { + checkpointsBuilder_.addAllMessages(other.checkpoints_); + } + } + } + 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.v1beta1.ModelVersionCheckpoint m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint.parser(), + extensionRegistry); + if (checkpointsBuilder_ == null) { + ensureCheckpointsIsMutable(); + checkpoints_.add(m); + } else { + checkpointsBuilder_.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 + checkpoints_ = java.util.Collections.emptyList(); + + private void ensureCheckpointsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + checkpoints_ = + new java.util.ArrayList( + checkpoints_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint, + com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint.Builder, + com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpointOrBuilder> + checkpointsBuilder_; + + /** + * + * + *
+     * List of Model Version checkpoints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint checkpoints = 1; + * + */ + public java.util.List + getCheckpointsList() { + if (checkpointsBuilder_ == null) { + return java.util.Collections.unmodifiableList(checkpoints_); + } else { + return checkpointsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of Model Version checkpoints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint checkpoints = 1; + * + */ + public int getCheckpointsCount() { + if (checkpointsBuilder_ == null) { + return checkpoints_.size(); + } else { + return checkpointsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of Model Version checkpoints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint checkpoints = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint getCheckpoints(int index) { + if (checkpointsBuilder_ == null) { + return checkpoints_.get(index); + } else { + return checkpointsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of Model Version checkpoints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint checkpoints = 1; + * + */ + public Builder setCheckpoints( + int index, com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint value) { + if (checkpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCheckpointsIsMutable(); + checkpoints_.set(index, value); + onChanged(); + } else { + checkpointsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of Model Version checkpoints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint checkpoints = 1; + * + */ + public Builder setCheckpoints( + int index, + com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint.Builder builderForValue) { + if (checkpointsBuilder_ == null) { + ensureCheckpointsIsMutable(); + checkpoints_.set(index, builderForValue.build()); + onChanged(); + } else { + checkpointsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of Model Version checkpoints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint checkpoints = 1; + * + */ + public Builder addCheckpoints( + com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint value) { + if (checkpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCheckpointsIsMutable(); + checkpoints_.add(value); + onChanged(); + } else { + checkpointsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of Model Version checkpoints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint checkpoints = 1; + * + */ + public Builder addCheckpoints( + int index, com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint value) { + if (checkpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCheckpointsIsMutable(); + checkpoints_.add(index, value); + onChanged(); + } else { + checkpointsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of Model Version checkpoints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint checkpoints = 1; + * + */ + public Builder addCheckpoints( + com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint.Builder builderForValue) { + if (checkpointsBuilder_ == null) { + ensureCheckpointsIsMutable(); + checkpoints_.add(builderForValue.build()); + onChanged(); + } else { + checkpointsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of Model Version checkpoints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint checkpoints = 1; + * + */ + public Builder addCheckpoints( + int index, + com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint.Builder builderForValue) { + if (checkpointsBuilder_ == null) { + ensureCheckpointsIsMutable(); + checkpoints_.add(index, builderForValue.build()); + onChanged(); + } else { + checkpointsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of Model Version checkpoints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint checkpoints = 1; + * + */ + public Builder addAllCheckpoints( + java.lang.Iterable + values) { + if (checkpointsBuilder_ == null) { + ensureCheckpointsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, checkpoints_); + onChanged(); + } else { + checkpointsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of Model Version checkpoints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint checkpoints = 1; + * + */ + public Builder clearCheckpoints() { + if (checkpointsBuilder_ == null) { + checkpoints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + checkpointsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of Model Version checkpoints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint checkpoints = 1; + * + */ + public Builder removeCheckpoints(int index) { + if (checkpointsBuilder_ == null) { + ensureCheckpointsIsMutable(); + checkpoints_.remove(index); + onChanged(); + } else { + checkpointsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of Model Version checkpoints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint checkpoints = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint.Builder getCheckpointsBuilder( + int index) { + return getCheckpointsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of Model Version checkpoints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint checkpoints = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpointOrBuilder + getCheckpointsOrBuilder(int index) { + if (checkpointsBuilder_ == null) { + return checkpoints_.get(index); + } else { + return checkpointsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of Model Version checkpoints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint checkpoints = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpointOrBuilder> + getCheckpointsOrBuilderList() { + if (checkpointsBuilder_ != null) { + return checkpointsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(checkpoints_); + } + } + /** + * + * + *
+     * List of Model Version checkpoints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint checkpoints = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint.Builder + addCheckpointsBuilder() { + return getCheckpointsFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint.getDefaultInstance()); + } + /** + * + * + *
+     * List of Model Version checkpoints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint checkpoints = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint.Builder addCheckpointsBuilder( + int index) { + return getCheckpointsFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint.getDefaultInstance()); + } + /** + * + * + *
+     * List of Model Version checkpoints.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint checkpoints = 1; + * + */ + public java.util.List + getCheckpointsBuilderList() { + return getCheckpointsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint, + com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint.Builder, + com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpointOrBuilder> + getCheckpointsFieldBuilder() { + if (checkpointsBuilder_ == null) { + checkpointsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint, + com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint.Builder, + com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpointOrBuilder>( + checkpoints_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + checkpoints_ = null; + } + return checkpointsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * Pass to
+     * [ListModelVersionCheckpointsRequest.page_token][google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest.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
+     * [ListModelVersionCheckpointsRequest.page_token][google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest.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
+     * [ListModelVersionCheckpointsRequest.page_token][google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest.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
+     * [ListModelVersionCheckpointsRequest.page_token][google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest.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
+     * [ListModelVersionCheckpointsRequest.page_token][google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest.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.v1beta1.ListModelVersionCheckpointsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse) + private static final com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListModelVersionCheckpointsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.ListModelVersionCheckpointsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelVersionCheckpointsResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelVersionCheckpointsResponseOrBuilder.java new file mode 100644 index 000000000000..267c8ecdd8d4 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelVersionCheckpointsResponseOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface ListModelVersionCheckpointsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of Model Version checkpoints.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint checkpoints = 1; + */ + java.util.List getCheckpointsList(); + /** + * + * + *
+   * List of Model Version checkpoints.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint checkpoints = 1; + */ + com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint getCheckpoints(int index); + /** + * + * + *
+   * List of Model Version checkpoints.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint checkpoints = 1; + */ + int getCheckpointsCount(); + /** + * + * + *
+   * List of Model Version checkpoints.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint checkpoints = 1; + */ + java.util.List + getCheckpointsOrBuilderList(); + /** + * + * + *
+   * List of Model Version checkpoints.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint checkpoints = 1; + */ + com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpointOrBuilder getCheckpointsOrBuilder( + int index); + + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * Pass to
+   * [ListModelVersionCheckpointsRequest.page_token][google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest.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
+   * [ListModelVersionCheckpointsRequest.page_token][google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest.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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricxInput.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricxInput.java new file mode 100644 index 000000000000..887de51ee1a1 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricxInput.java @@ -0,0 +1,1041 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Input for MetricX metric.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.MetricxInput} + */ +public final class MetricxInput extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.MetricxInput) + MetricxInputOrBuilder { + private static final long serialVersionUID = 0L; + // Use MetricxInput.newBuilder() to construct. + private MetricxInput(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MetricxInput() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MetricxInput(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricxInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricxInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.MetricxInput.class, + com.google.cloud.aiplatform.v1beta1.MetricxInput.Builder.class); + } + + private int bitField0_; + public static final int METRIC_SPEC_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.MetricxSpec metricSpec_; + /** + * + * + *
+   * Required. Spec for Metricx metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricxSpec 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 Metricx metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricxSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricxSpec getMetricSpec() { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.MetricxSpec.getDefaultInstance() + : metricSpec_; + } + /** + * + * + *
+   * Required. Spec for Metricx metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricxSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricxSpecOrBuilder getMetricSpecOrBuilder() { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.MetricxSpec.getDefaultInstance() + : metricSpec_; + } + + public static final int INSTANCE_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.MetricxInstance instance_; + /** + * + * + *
+   * Required. Metricx instance.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricxInstance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the instance field is set. + */ + @java.lang.Override + public boolean hasInstance() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Required. Metricx instance.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricxInstance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instance. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricxInstance getInstance() { + return instance_ == null + ? com.google.cloud.aiplatform.v1beta1.MetricxInstance.getDefaultInstance() + : instance_; + } + /** + * + * + *
+   * Required. Metricx instance.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricxInstance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricxInstanceOrBuilder getInstanceOrBuilder() { + return instance_ == null + ? com.google.cloud.aiplatform.v1beta1.MetricxInstance.getDefaultInstance() + : instance_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getInstance()); + } + 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()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInstance()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.MetricxInput)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.MetricxInput other = + (com.google.cloud.aiplatform.v1beta1.MetricxInput) obj; + + if (hasMetricSpec() != other.hasMetricSpec()) return false; + if (hasMetricSpec()) { + if (!getMetricSpec().equals(other.getMetricSpec())) return false; + } + if (hasInstance() != other.hasInstance()) return false; + if (hasInstance()) { + if (!getInstance().equals(other.getInstance())) return false; + } + if (!getUnknownFields().equals(other.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 (hasInstance()) { + hash = (37 * hash) + INSTANCE_FIELD_NUMBER; + hash = (53 * hash) + getInstance().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.MetricxInput parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricxInput parseFrom( + 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.MetricxInput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricxInput parseFrom( + com.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.MetricxInput parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricxInput 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.MetricxInput parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricxInput parseFrom( + java.io.InputStream 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.MetricxInput parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricxInput parseDelimitedFrom( + java.io.InputStream 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.MetricxInput 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.MetricxInput parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.MetricxInput prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input for MetricX metric.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.MetricxInput} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.MetricxInput) + com.google.cloud.aiplatform.v1beta1.MetricxInputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricxInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricxInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.MetricxInput.class, + com.google.cloud.aiplatform.v1beta1.MetricxInput.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.MetricxInput.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(); + getInstanceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + metricSpec_ = null; + if (metricSpecBuilder_ != null) { + metricSpecBuilder_.dispose(); + metricSpecBuilder_ = null; + } + instance_ = null; + if (instanceBuilder_ != null) { + instanceBuilder_.dispose(); + instanceBuilder_ = 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_MetricxInput_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricxInput getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.MetricxInput.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricxInput build() { + com.google.cloud.aiplatform.v1beta1.MetricxInput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricxInput buildPartial() { + com.google.cloud.aiplatform.v1beta1.MetricxInput result = + new com.google.cloud.aiplatform.v1beta1.MetricxInput(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.MetricxInput result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.metricSpec_ = metricSpecBuilder_ == null ? metricSpec_ : metricSpecBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.instance_ = instanceBuilder_ == null ? instance_ : instanceBuilder_.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.MetricxInput) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.MetricxInput) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.MetricxInput other) { + if (other == com.google.cloud.aiplatform.v1beta1.MetricxInput.getDefaultInstance()) + return this; + if (other.hasMetricSpec()) { + mergeMetricSpec(other.getMetricSpec()); + } + if (other.hasInstance()) { + mergeInstance(other.getInstance()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + input.readMessage(getInstanceFieldBuilder().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.MetricxSpec metricSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.MetricxSpec, + com.google.cloud.aiplatform.v1beta1.MetricxSpec.Builder, + com.google.cloud.aiplatform.v1beta1.MetricxSpecOrBuilder> + metricSpecBuilder_; + /** + * + * + *
+     * Required. Spec for Metricx metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricxSpec 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 Metricx metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricxSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSpec. + */ + public com.google.cloud.aiplatform.v1beta1.MetricxSpec getMetricSpec() { + if (metricSpecBuilder_ == null) { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.MetricxSpec.getDefaultInstance() + : metricSpec_; + } else { + return metricSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Spec for Metricx metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricxSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMetricSpec(com.google.cloud.aiplatform.v1beta1.MetricxSpec value) { + if (metricSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metricSpec_ = value; + } else { + metricSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for Metricx metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricxSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMetricSpec( + com.google.cloud.aiplatform.v1beta1.MetricxSpec.Builder builderForValue) { + if (metricSpecBuilder_ == null) { + metricSpec_ = builderForValue.build(); + } else { + metricSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Spec for Metricx metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricxSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMetricSpec(com.google.cloud.aiplatform.v1beta1.MetricxSpec value) { + if (metricSpecBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && metricSpec_ != null + && metricSpec_ + != com.google.cloud.aiplatform.v1beta1.MetricxSpec.getDefaultInstance()) { + getMetricSpecBuilder().mergeFrom(value); + } else { + metricSpec_ = value; + } + } else { + metricSpecBuilder_.mergeFrom(value); + } + if (metricSpec_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Spec for Metricx metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricxSpec 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 Metricx metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricxSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.MetricxSpec.Builder getMetricSpecBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetricSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Spec for Metricx metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricxSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.MetricxSpecOrBuilder getMetricSpecOrBuilder() { + if (metricSpecBuilder_ != null) { + return metricSpecBuilder_.getMessageOrBuilder(); + } else { + return metricSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.MetricxSpec.getDefaultInstance() + : metricSpec_; + } + } + /** + * + * + *
+     * Required. Spec for Metricx metric.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricxSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.MetricxSpec, + com.google.cloud.aiplatform.v1beta1.MetricxSpec.Builder, + com.google.cloud.aiplatform.v1beta1.MetricxSpecOrBuilder> + getMetricSpecFieldBuilder() { + if (metricSpecBuilder_ == null) { + metricSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.MetricxSpec, + com.google.cloud.aiplatform.v1beta1.MetricxSpec.Builder, + com.google.cloud.aiplatform.v1beta1.MetricxSpecOrBuilder>( + getMetricSpec(), getParentForChildren(), isClean()); + metricSpec_ = null; + } + return metricSpecBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.MetricxInstance instance_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.MetricxInstance, + com.google.cloud.aiplatform.v1beta1.MetricxInstance.Builder, + com.google.cloud.aiplatform.v1beta1.MetricxInstanceOrBuilder> + instanceBuilder_; + /** + * + * + *
+     * Required. Metricx instance.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricxInstance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the instance field is set. + */ + public boolean hasInstance() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. Metricx instance.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricxInstance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instance. + */ + public com.google.cloud.aiplatform.v1beta1.MetricxInstance getInstance() { + if (instanceBuilder_ == null) { + return instance_ == null + ? com.google.cloud.aiplatform.v1beta1.MetricxInstance.getDefaultInstance() + : instance_; + } else { + return instanceBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Metricx instance.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricxInstance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstance(com.google.cloud.aiplatform.v1beta1.MetricxInstance value) { + if (instanceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + instance_ = value; + } else { + instanceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Metricx instance.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricxInstance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInstance( + com.google.cloud.aiplatform.v1beta1.MetricxInstance.Builder builderForValue) { + if (instanceBuilder_ == null) { + instance_ = builderForValue.build(); + } else { + instanceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Metricx instance.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricxInstance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeInstance(com.google.cloud.aiplatform.v1beta1.MetricxInstance value) { + if (instanceBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && instance_ != null + && instance_ + != com.google.cloud.aiplatform.v1beta1.MetricxInstance.getDefaultInstance()) { + getInstanceBuilder().mergeFrom(value); + } else { + instance_ = value; + } + } else { + instanceBuilder_.mergeFrom(value); + } + if (instance_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Metricx instance.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricxInstance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearInstance() { + bitField0_ = (bitField0_ & ~0x00000002); + instance_ = null; + if (instanceBuilder_ != null) { + instanceBuilder_.dispose(); + instanceBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Metricx instance.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricxInstance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.MetricxInstance.Builder getInstanceBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getInstanceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Metricx instance.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricxInstance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.MetricxInstanceOrBuilder getInstanceOrBuilder() { + if (instanceBuilder_ != null) { + return instanceBuilder_.getMessageOrBuilder(); + } else { + return instance_ == null + ? com.google.cloud.aiplatform.v1beta1.MetricxInstance.getDefaultInstance() + : instance_; + } + } + /** + * + * + *
+     * Required. Metricx instance.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricxInstance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.MetricxInstance, + com.google.cloud.aiplatform.v1beta1.MetricxInstance.Builder, + com.google.cloud.aiplatform.v1beta1.MetricxInstanceOrBuilder> + getInstanceFieldBuilder() { + if (instanceBuilder_ == null) { + instanceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.MetricxInstance, + com.google.cloud.aiplatform.v1beta1.MetricxInstance.Builder, + com.google.cloud.aiplatform.v1beta1.MetricxInstanceOrBuilder>( + getInstance(), getParentForChildren(), isClean()); + instance_ = null; + } + return instanceBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @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.MetricxInput) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.MetricxInput) + private static final com.google.cloud.aiplatform.v1beta1.MetricxInput DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.MetricxInput(); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricxInput getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetricxInput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.MetricxInput getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricxInputOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricxInputOrBuilder.java new file mode 100644 index 000000000000..7204edcb2285 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricxInputOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface MetricxInputOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.MetricxInput) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Spec for Metricx metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricxSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the metricSpec field is set. + */ + boolean hasMetricSpec(); + /** + * + * + *
+   * Required. Spec for Metricx metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricxSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The metricSpec. + */ + com.google.cloud.aiplatform.v1beta1.MetricxSpec getMetricSpec(); + /** + * + * + *
+   * Required. Spec for Metricx metric.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricxSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.MetricxSpecOrBuilder getMetricSpecOrBuilder(); + + /** + * + * + *
+   * Required. Metricx instance.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricxInstance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the instance field is set. + */ + boolean hasInstance(); + /** + * + * + *
+   * Required. Metricx instance.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricxInstance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instance. + */ + com.google.cloud.aiplatform.v1beta1.MetricxInstance getInstance(); + /** + * + * + *
+   * Required. Metricx instance.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MetricxInstance instance = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.MetricxInstanceOrBuilder getInstanceOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricxInstance.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricxInstance.java new file mode 100644 index 000000000000..a7715d1e897d --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricxInstance.java @@ -0,0 +1,1099 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Spec for MetricX instance - The fields used for evaluation are dependent on
+ * the MetricX version.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.MetricxInstance} + */ +public final class MetricxInstance extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.MetricxInstance) + MetricxInstanceOrBuilder { + private static final long serialVersionUID = 0L; + // Use MetricxInstance.newBuilder() to construct. + private MetricxInstance(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MetricxInstance() { + prediction_ = ""; + reference_ = ""; + source_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MetricxInstance(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricxInstance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricxInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.MetricxInstance.class, + com.google.cloud.aiplatform.v1beta1.MetricxInstance.Builder.class); + } + + private int bitField0_; + public static final int PREDICTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object prediction_ = ""; + /** + * + * + *
+   * Required. Output of the evaluated model.
+   * 
+ * + * optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the prediction field is set. + */ + @java.lang.Override + public boolean hasPrediction() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. Output of the evaluated model.
+   * 
+ * + * optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The prediction. + */ + @java.lang.Override + public java.lang.String getPrediction() { + java.lang.Object ref = prediction_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prediction_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Output of the evaluated model.
+   * 
+ * + * optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for prediction. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPredictionBytes() { + java.lang.Object ref = prediction_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + prediction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REFERENCE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object reference_ = ""; + /** + * + * + *
+   * Optional. Ground truth used to compare against the prediction.
+   * 
+ * + * optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the reference field is set. + */ + @java.lang.Override + public boolean hasReference() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Optional. Ground truth used to compare against the prediction.
+   * 
+ * + * optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The reference. + */ + @java.lang.Override + public java.lang.String getReference() { + java.lang.Object ref = reference_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reference_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Ground truth used to compare against the prediction.
+   * 
+ * + * optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for reference. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReferenceBytes() { + java.lang.Object ref = reference_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reference_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object source_ = ""; + /** + * + * + *
+   * Optional. Source text in original language.
+   * 
+ * + * optional string source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the source field is set. + */ + @java.lang.Override + public boolean hasSource() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+   * Optional. Source text in original language.
+   * 
+ * + * optional string source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The source. + */ + @java.lang.Override + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Source text in original language.
+   * 
+ * + * optional string source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for source. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = 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, prediction_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, reference_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, source_); + } + 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, prediction_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, reference_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, source_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.MetricxInstance)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.MetricxInstance other = + (com.google.cloud.aiplatform.v1beta1.MetricxInstance) obj; + + if (hasPrediction() != other.hasPrediction()) return false; + if (hasPrediction()) { + if (!getPrediction().equals(other.getPrediction())) return false; + } + if (hasReference() != other.hasReference()) return false; + if (hasReference()) { + if (!getReference().equals(other.getReference())) return false; + } + if (hasSource() != other.hasSource()) return false; + if (hasSource()) { + if (!getSource().equals(other.getSource())) return false; + } + if (!getUnknownFields().equals(other.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 (hasPrediction()) { + hash = (37 * hash) + PREDICTION_FIELD_NUMBER; + hash = (53 * hash) + getPrediction().hashCode(); + } + if (hasReference()) { + hash = (37 * hash) + REFERENCE_FIELD_NUMBER; + hash = (53 * hash) + getReference().hashCode(); + } + if (hasSource()) { + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.MetricxInstance parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricxInstance parseFrom( + 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.MetricxInstance parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricxInstance parseFrom( + com.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.MetricxInstance parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricxInstance 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.MetricxInstance parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricxInstance parseFrom( + java.io.InputStream 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.MetricxInstance parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricxInstance parseDelimitedFrom( + java.io.InputStream 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.MetricxInstance 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.MetricxInstance parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.MetricxInstance prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 MetricX instance - The fields used for evaluation are dependent on
+   * the MetricX version.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.MetricxInstance} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.MetricxInstance) + com.google.cloud.aiplatform.v1beta1.MetricxInstanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricxInstance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricxInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.MetricxInstance.class, + com.google.cloud.aiplatform.v1beta1.MetricxInstance.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.MetricxInstance.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + prediction_ = ""; + reference_ = ""; + source_ = ""; + 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_MetricxInstance_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricxInstance getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.MetricxInstance.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricxInstance build() { + com.google.cloud.aiplatform.v1beta1.MetricxInstance result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricxInstance buildPartial() { + com.google.cloud.aiplatform.v1beta1.MetricxInstance result = + new com.google.cloud.aiplatform.v1beta1.MetricxInstance(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.MetricxInstance result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.prediction_ = prediction_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.reference_ = reference_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.source_ = source_; + 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.MetricxInstance) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.MetricxInstance) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.MetricxInstance other) { + if (other == com.google.cloud.aiplatform.v1beta1.MetricxInstance.getDefaultInstance()) + return this; + if (other.hasPrediction()) { + prediction_ = other.prediction_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasReference()) { + reference_ = other.reference_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasSource()) { + source_ = other.source_; + 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: + { + prediction_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + reference_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + source_ = 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 prediction_ = ""; + /** + * + * + *
+     * Required. Output of the evaluated model.
+     * 
+ * + * optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the prediction field is set. + */ + public boolean hasPrediction() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. Output of the evaluated model.
+     * 
+ * + * optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The prediction. + */ + public java.lang.String getPrediction() { + java.lang.Object ref = prediction_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prediction_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Output of the evaluated model.
+     * 
+ * + * optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for prediction. + */ + public com.google.protobuf.ByteString getPredictionBytes() { + java.lang.Object ref = prediction_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + prediction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Output of the evaluated model.
+     * 
+ * + * optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The prediction to set. + * @return This builder for chaining. + */ + public Builder setPrediction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + prediction_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Output of the evaluated model.
+     * 
+ * + * optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPrediction() { + prediction_ = getDefaultInstance().getPrediction(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Output of the evaluated model.
+     * 
+ * + * optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for prediction to set. + * @return This builder for chaining. + */ + public Builder setPredictionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + prediction_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object reference_ = ""; + /** + * + * + *
+     * Optional. Ground truth used to compare against the prediction.
+     * 
+ * + * optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the reference field is set. + */ + public boolean hasReference() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Optional. Ground truth used to compare against the prediction.
+     * 
+ * + * optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The reference. + */ + public java.lang.String getReference() { + java.lang.Object ref = reference_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reference_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Ground truth used to compare against the prediction.
+     * 
+ * + * optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for reference. + */ + public com.google.protobuf.ByteString getReferenceBytes() { + java.lang.Object ref = reference_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reference_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Ground truth used to compare against the prediction.
+     * 
+ * + * optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The reference to set. + * @return This builder for chaining. + */ + public Builder setReference(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + reference_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Ground truth used to compare against the prediction.
+     * 
+ * + * optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearReference() { + reference_ = getDefaultInstance().getReference(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Ground truth used to compare against the prediction.
+     * 
+ * + * optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for reference to set. + * @return This builder for chaining. + */ + public Builder setReferenceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reference_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object source_ = ""; + /** + * + * + *
+     * Optional. Source text in original language.
+     * 
+ * + * optional string source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the source field is set. + */ + public boolean hasSource() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Optional. Source text in original language.
+     * 
+ * + * optional string source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The source. + */ + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Source text in original language.
+     * 
+ * + * optional string source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for source. + */ + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Source text in original language.
+     * 
+ * + * optional string source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The source to set. + * @return This builder for chaining. + */ + public Builder setSource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Source text in original language.
+     * 
+ * + * optional string source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSource() { + source_ = getDefaultInstance().getSource(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Source text in original language.
+     * 
+ * + * optional string source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for source to set. + * @return This builder for chaining. + */ + public Builder setSourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + source_ = 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.MetricxInstance) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.MetricxInstance) + private static final com.google.cloud.aiplatform.v1beta1.MetricxInstance DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.MetricxInstance(); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricxInstance getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetricxInstance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.MetricxInstance getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricxInstanceOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricxInstanceOrBuilder.java new file mode 100644 index 000000000000..d0e305ae9786 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricxInstanceOrBuilder.java @@ -0,0 +1,137 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface MetricxInstanceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.MetricxInstance) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Output of the evaluated model.
+   * 
+ * + * optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the prediction field is set. + */ + boolean hasPrediction(); + /** + * + * + *
+   * Required. Output of the evaluated model.
+   * 
+ * + * optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The prediction. + */ + java.lang.String getPrediction(); + /** + * + * + *
+   * Required. Output of the evaluated model.
+   * 
+ * + * optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for prediction. + */ + com.google.protobuf.ByteString getPredictionBytes(); + + /** + * + * + *
+   * Optional. Ground truth used to compare against the prediction.
+   * 
+ * + * optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the reference field is set. + */ + boolean hasReference(); + /** + * + * + *
+   * Optional. Ground truth used to compare against the prediction.
+   * 
+ * + * optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The reference. + */ + java.lang.String getReference(); + /** + * + * + *
+   * Optional. Ground truth used to compare against the prediction.
+   * 
+ * + * optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for reference. + */ + com.google.protobuf.ByteString getReferenceBytes(); + + /** + * + * + *
+   * Optional. Source text in original language.
+   * 
+ * + * optional string source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the source field is set. + */ + boolean hasSource(); + /** + * + * + *
+   * Optional. Source text in original language.
+   * 
+ * + * optional string source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The source. + */ + java.lang.String getSource(); + /** + * + * + *
+   * Optional. Source text in original language.
+   * 
+ * + * optional string source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for source. + */ + com.google.protobuf.ByteString getSourceBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricxResult.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricxResult.java new file mode 100644 index 000000000000..c21c1570c95e --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricxResult.java @@ -0,0 +1,577 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Spec for MetricX result - calculates the MetricX score for the given instance
+ * using the version specified in the spec.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.MetricxResult} + */ +public final class MetricxResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.MetricxResult) + MetricxResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use MetricxResult.newBuilder() to construct. + private MetricxResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MetricxResult() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MetricxResult(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricxResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricxResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.MetricxResult.class, + com.google.cloud.aiplatform.v1beta1.MetricxResult.Builder.class); + } + + private int bitField0_; + public static final int SCORE_FIELD_NUMBER = 1; + private float score_ = 0F; + /** + * + * + *
+   * Output only. MetricX score. Range depends on version.
+   * 
+ * + * 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. MetricX score. Range depends on version.
+   * 
+ * + * 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.MetricxResult)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.MetricxResult other = + (com.google.cloud.aiplatform.v1beta1.MetricxResult) 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.MetricxResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricxResult parseFrom( + 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.MetricxResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricxResult parseFrom( + com.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.MetricxResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricxResult 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.MetricxResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricxResult parseFrom( + java.io.InputStream 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.MetricxResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricxResult parseDelimitedFrom( + java.io.InputStream 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.MetricxResult 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.MetricxResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.MetricxResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 MetricX result - calculates the MetricX score for the given instance
+   * using the version specified in the spec.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.MetricxResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.MetricxResult) + com.google.cloud.aiplatform.v1beta1.MetricxResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricxResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricxResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.MetricxResult.class, + com.google.cloud.aiplatform.v1beta1.MetricxResult.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.MetricxResult.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_MetricxResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricxResult getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.MetricxResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricxResult build() { + com.google.cloud.aiplatform.v1beta1.MetricxResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricxResult buildPartial() { + com.google.cloud.aiplatform.v1beta1.MetricxResult result = + new com.google.cloud.aiplatform.v1beta1.MetricxResult(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.MetricxResult 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.MetricxResult) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.MetricxResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.MetricxResult other) { + if (other == com.google.cloud.aiplatform.v1beta1.MetricxResult.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. MetricX score. Range depends on version.
+     * 
+ * + * 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. MetricX score. Range depends on version.
+     * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + /** + * + * + *
+     * Output only. MetricX score. Range depends on version.
+     * 
+ * + * 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. MetricX score. Range depends on version.
+     * 
+ * + * 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.MetricxResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.MetricxResult) + private static final com.google.cloud.aiplatform.v1beta1.MetricxResult DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.MetricxResult(); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricxResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetricxResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.MetricxResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricxResultOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricxResultOrBuilder.java new file mode 100644 index 000000000000..4727dfd423f1 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricxResultOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface MetricxResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.MetricxResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. MetricX score. Range depends on version.
+   * 
+ * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + boolean hasScore(); + /** + * + * + *
+   * Output only. MetricX score. Range depends on version.
+   * 
+ * + * 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/MetricxSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricxSpec.java new file mode 100644 index 000000000000..756d57b9bab9 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricxSpec.java @@ -0,0 +1,1205 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Spec for MetricX metric.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.MetricxSpec} + */ +public final class MetricxSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.MetricxSpec) + MetricxSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use MetricxSpec.newBuilder() to construct. + private MetricxSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MetricxSpec() { + version_ = 0; + sourceLanguage_ = ""; + targetLanguage_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MetricxSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricxSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricxSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.MetricxSpec.class, + com.google.cloud.aiplatform.v1beta1.MetricxSpec.Builder.class); + } + + /** + * + * + *
+   * MetricX Version options.
+   * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1beta1.MetricxSpec.MetricxVersion} + */ + public enum MetricxVersion implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * MetricX version unspecified.
+     * 
+ * + * METRICX_VERSION_UNSPECIFIED = 0; + */ + METRICX_VERSION_UNSPECIFIED(0), + /** + * + * + *
+     * MetricX 2024 (2.6) for translation + reference (reference-based).
+     * 
+ * + * METRICX_24_REF = 1; + */ + METRICX_24_REF(1), + /** + * + * + *
+     * MetricX 2024 (2.6) for translation + source (QE).
+     * 
+ * + * METRICX_24_SRC = 2; + */ + METRICX_24_SRC(2), + /** + * + * + *
+     * MetricX 2024 (2.6) for translation + source + reference
+     * (source-reference-combined).
+     * 
+ * + * METRICX_24_SRC_REF = 3; + */ + METRICX_24_SRC_REF(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * MetricX version unspecified.
+     * 
+ * + * METRICX_VERSION_UNSPECIFIED = 0; + */ + public static final int METRICX_VERSION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * MetricX 2024 (2.6) for translation + reference (reference-based).
+     * 
+ * + * METRICX_24_REF = 1; + */ + public static final int METRICX_24_REF_VALUE = 1; + /** + * + * + *
+     * MetricX 2024 (2.6) for translation + source (QE).
+     * 
+ * + * METRICX_24_SRC = 2; + */ + public static final int METRICX_24_SRC_VALUE = 2; + /** + * + * + *
+     * MetricX 2024 (2.6) for translation + source + reference
+     * (source-reference-combined).
+     * 
+ * + * METRICX_24_SRC_REF = 3; + */ + public static final int METRICX_24_SRC_REF_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 MetricxVersion 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 MetricxVersion forNumber(int value) { + switch (value) { + case 0: + return METRICX_VERSION_UNSPECIFIED; + case 1: + return METRICX_24_REF; + case 2: + return METRICX_24_SRC; + case 3: + return METRICX_24_SRC_REF; + 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 MetricxVersion findValueByNumber(int number) { + return MetricxVersion.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.MetricxSpec.getDescriptor().getEnumTypes().get(0); + } + + private static final MetricxVersion[] VALUES = values(); + + public static MetricxVersion 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 MetricxVersion(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.MetricxSpec.MetricxVersion) + } + + private int bitField0_; + public static final int VERSION_FIELD_NUMBER = 1; + private int version_ = 0; + /** + * + * + *
+   * Required. Which version to use for evaluation.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.MetricxSpec.MetricxVersion version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the version field is set. + */ + @java.lang.Override + public boolean hasVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. Which version to use for evaluation.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.MetricxSpec.MetricxVersion version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for version. + */ + @java.lang.Override + public int getVersionValue() { + return version_; + } + /** + * + * + *
+   * Required. Which version to use for evaluation.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.MetricxSpec.MetricxVersion version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The version. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricxSpec.MetricxVersion getVersion() { + com.google.cloud.aiplatform.v1beta1.MetricxSpec.MetricxVersion result = + com.google.cloud.aiplatform.v1beta1.MetricxSpec.MetricxVersion.forNumber(version_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.MetricxSpec.MetricxVersion.UNRECOGNIZED + : result; + } + + public static final int SOURCE_LANGUAGE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceLanguage_ = ""; + /** + * + * + *
+   * Optional. Source language in BCP-47 format.
+   * 
+ * + * string source_language = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sourceLanguage. + */ + @java.lang.Override + public java.lang.String getSourceLanguage() { + java.lang.Object ref = sourceLanguage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceLanguage_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Source language in BCP-47 format.
+   * 
+ * + * string source_language = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sourceLanguage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceLanguageBytes() { + java.lang.Object ref = sourceLanguage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceLanguage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_LANGUAGE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object targetLanguage_ = ""; + /** + * + * + *
+   * Optional. Target language in BCP-47 format. Covers both prediction and
+   * reference.
+   * 
+ * + * string target_language = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The targetLanguage. + */ + @java.lang.Override + public java.lang.String getTargetLanguage() { + java.lang.Object ref = targetLanguage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetLanguage_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Target language in BCP-47 format. Covers both prediction and
+   * reference.
+   * 
+ * + * string target_language = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for targetLanguage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetLanguageBytes() { + java.lang.Object ref = targetLanguage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetLanguage_ = 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.writeEnum(1, version_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sourceLanguage_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetLanguage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, targetLanguage_); + } + 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.computeEnumSize(1, version_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceLanguage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sourceLanguage_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetLanguage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, targetLanguage_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.MetricxSpec)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.MetricxSpec other = + (com.google.cloud.aiplatform.v1beta1.MetricxSpec) obj; + + if (hasVersion() != other.hasVersion()) return false; + if (hasVersion()) { + if (version_ != other.version_) return false; + } + if (!getSourceLanguage().equals(other.getSourceLanguage())) return false; + if (!getTargetLanguage().equals(other.getTargetLanguage())) return false; + if (!getUnknownFields().equals(other.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 (hasVersion()) { + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + version_; + } + hash = (37 * hash) + SOURCE_LANGUAGE_FIELD_NUMBER; + hash = (53 * hash) + getSourceLanguage().hashCode(); + hash = (37 * hash) + TARGET_LANGUAGE_FIELD_NUMBER; + hash = (53 * hash) + getTargetLanguage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.MetricxSpec parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricxSpec parseFrom( + 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.MetricxSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricxSpec parseFrom( + com.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.MetricxSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricxSpec 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.MetricxSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricxSpec parseFrom( + java.io.InputStream 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.MetricxSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricxSpec parseDelimitedFrom( + java.io.InputStream 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.MetricxSpec 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.MetricxSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.MetricxSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 MetricX metric.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.MetricxSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.MetricxSpec) + com.google.cloud.aiplatform.v1beta1.MetricxSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricxSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricxSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.MetricxSpec.class, + com.google.cloud.aiplatform.v1beta1.MetricxSpec.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.MetricxSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + version_ = 0; + sourceLanguage_ = ""; + targetLanguage_ = ""; + 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_MetricxSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricxSpec getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.MetricxSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricxSpec build() { + com.google.cloud.aiplatform.v1beta1.MetricxSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricxSpec buildPartial() { + com.google.cloud.aiplatform.v1beta1.MetricxSpec result = + new com.google.cloud.aiplatform.v1beta1.MetricxSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.MetricxSpec result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.version_ = version_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sourceLanguage_ = sourceLanguage_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.targetLanguage_ = targetLanguage_; + } + 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.MetricxSpec) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.MetricxSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.MetricxSpec other) { + if (other == com.google.cloud.aiplatform.v1beta1.MetricxSpec.getDefaultInstance()) + return this; + if (other.hasVersion()) { + setVersion(other.getVersion()); + } + if (!other.getSourceLanguage().isEmpty()) { + sourceLanguage_ = other.sourceLanguage_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getTargetLanguage().isEmpty()) { + targetLanguage_ = other.targetLanguage_; + 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 8: + { + version_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + sourceLanguage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + targetLanguage_ = 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 int version_ = 0; + /** + * + * + *
+     * Required. Which version to use for evaluation.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.MetricxSpec.MetricxVersion version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the version field is set. + */ + @java.lang.Override + public boolean hasVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. Which version to use for evaluation.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.MetricxSpec.MetricxVersion version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for version. + */ + @java.lang.Override + public int getVersionValue() { + return version_; + } + /** + * + * + *
+     * Required. Which version to use for evaluation.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.MetricxSpec.MetricxVersion version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for version to set. + * @return This builder for chaining. + */ + public Builder setVersionValue(int value) { + version_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Which version to use for evaluation.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.MetricxSpec.MetricxVersion version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The version. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricxSpec.MetricxVersion getVersion() { + com.google.cloud.aiplatform.v1beta1.MetricxSpec.MetricxVersion result = + com.google.cloud.aiplatform.v1beta1.MetricxSpec.MetricxVersion.forNumber(version_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.MetricxSpec.MetricxVersion.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. Which version to use for evaluation.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.MetricxSpec.MetricxVersion version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion( + com.google.cloud.aiplatform.v1beta1.MetricxSpec.MetricxVersion value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + version_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Which version to use for evaluation.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.MetricxSpec.MetricxVersion version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + version_ = 0; + onChanged(); + return this; + } + + private java.lang.Object sourceLanguage_ = ""; + /** + * + * + *
+     * Optional. Source language in BCP-47 format.
+     * 
+ * + * string source_language = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sourceLanguage. + */ + public java.lang.String getSourceLanguage() { + java.lang.Object ref = sourceLanguage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceLanguage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Source language in BCP-47 format.
+     * 
+ * + * string source_language = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sourceLanguage. + */ + public com.google.protobuf.ByteString getSourceLanguageBytes() { + java.lang.Object ref = sourceLanguage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceLanguage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Source language in BCP-47 format.
+     * 
+ * + * string source_language = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The sourceLanguage to set. + * @return This builder for chaining. + */ + public Builder setSourceLanguage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceLanguage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Source language in BCP-47 format.
+     * 
+ * + * string source_language = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSourceLanguage() { + sourceLanguage_ = getDefaultInstance().getSourceLanguage(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Source language in BCP-47 format.
+     * 
+ * + * string source_language = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for sourceLanguage to set. + * @return This builder for chaining. + */ + public Builder setSourceLanguageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceLanguage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object targetLanguage_ = ""; + /** + * + * + *
+     * Optional. Target language in BCP-47 format. Covers both prediction and
+     * reference.
+     * 
+ * + * string target_language = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The targetLanguage. + */ + public java.lang.String getTargetLanguage() { + java.lang.Object ref = targetLanguage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetLanguage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Target language in BCP-47 format. Covers both prediction and
+     * reference.
+     * 
+ * + * string target_language = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for targetLanguage. + */ + public com.google.protobuf.ByteString getTargetLanguageBytes() { + java.lang.Object ref = targetLanguage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetLanguage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Target language in BCP-47 format. Covers both prediction and
+     * reference.
+     * 
+ * + * string target_language = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The targetLanguage to set. + * @return This builder for chaining. + */ + public Builder setTargetLanguage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetLanguage_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Target language in BCP-47 format. Covers both prediction and
+     * reference.
+     * 
+ * + * string target_language = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTargetLanguage() { + targetLanguage_ = getDefaultInstance().getTargetLanguage(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Target language in BCP-47 format. Covers both prediction and
+     * reference.
+     * 
+ * + * string target_language = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for targetLanguage to set. + * @return This builder for chaining. + */ + public Builder setTargetLanguageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetLanguage_ = 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.MetricxSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.MetricxSpec) + private static final com.google.cloud.aiplatform.v1beta1.MetricxSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.MetricxSpec(); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricxSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetricxSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.MetricxSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricxSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricxSpecOrBuilder.java new file mode 100644 index 000000000000..d771fab091f0 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricxSpecOrBuilder.java @@ -0,0 +1,121 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface MetricxSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.MetricxSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Which version to use for evaluation.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.MetricxSpec.MetricxVersion version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the version field is set. + */ + boolean hasVersion(); + /** + * + * + *
+   * Required. Which version to use for evaluation.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.MetricxSpec.MetricxVersion version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for version. + */ + int getVersionValue(); + /** + * + * + *
+   * Required. Which version to use for evaluation.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1beta1.MetricxSpec.MetricxVersion version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The version. + */ + com.google.cloud.aiplatform.v1beta1.MetricxSpec.MetricxVersion getVersion(); + + /** + * + * + *
+   * Optional. Source language in BCP-47 format.
+   * 
+ * + * string source_language = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sourceLanguage. + */ + java.lang.String getSourceLanguage(); + /** + * + * + *
+   * Optional. Source language in BCP-47 format.
+   * 
+ * + * string source_language = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sourceLanguage. + */ + com.google.protobuf.ByteString getSourceLanguageBytes(); + + /** + * + * + *
+   * Optional. Target language in BCP-47 format. Covers both prediction and
+   * reference.
+   * 
+ * + * string target_language = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The targetLanguage. + */ + java.lang.String getTargetLanguage(); + /** + * + * + *
+   * Optional. Target language in BCP-47 format. Covers both prediction and
+   * reference.
+   * 
+ * + * string target_language = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for targetLanguage. + */ + com.google.protobuf.ByteString getTargetLanguageBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Modality.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Modality.java new file mode 100644 index 000000000000..a53b3716f039 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Modality.java @@ -0,0 +1,243 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/content.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Content Part modality
+ * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1beta1.Modality} + */ +public enum Modality implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified modality.
+   * 
+ * + * MODALITY_UNSPECIFIED = 0; + */ + MODALITY_UNSPECIFIED(0), + /** + * + * + *
+   * Plain text.
+   * 
+ * + * TEXT = 1; + */ + TEXT(1), + /** + * + * + *
+   * Image.
+   * 
+ * + * IMAGE = 2; + */ + IMAGE(2), + /** + * + * + *
+   * Video.
+   * 
+ * + * VIDEO = 3; + */ + VIDEO(3), + /** + * + * + *
+   * Audio.
+   * 
+ * + * AUDIO = 4; + */ + AUDIO(4), + /** + * + * + *
+   * Document, e.g. PDF.
+   * 
+ * + * DOCUMENT = 5; + */ + DOCUMENT(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Unspecified modality.
+   * 
+ * + * MODALITY_UNSPECIFIED = 0; + */ + public static final int MODALITY_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Plain text.
+   * 
+ * + * TEXT = 1; + */ + public static final int TEXT_VALUE = 1; + /** + * + * + *
+   * Image.
+   * 
+ * + * IMAGE = 2; + */ + public static final int IMAGE_VALUE = 2; + /** + * + * + *
+   * Video.
+   * 
+ * + * VIDEO = 3; + */ + public static final int VIDEO_VALUE = 3; + /** + * + * + *
+   * Audio.
+   * 
+ * + * AUDIO = 4; + */ + public static final int AUDIO_VALUE = 4; + /** + * + * + *
+   * Document, e.g. PDF.
+   * 
+ * + * DOCUMENT = 5; + */ + public static final int DOCUMENT_VALUE = 5; + + 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 VIDEO; + case 4: + return AUDIO; + case 5: + return DOCUMENT; + 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.ContentProto.getDescriptor().getEnumTypes().get(1); + } + + 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.Modality) +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModalityTokenCount.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModalityTokenCount.java new file mode 100644 index 000000000000..27fbc98aabdf --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModalityTokenCount.java @@ -0,0 +1,687 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/content.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Represents token counting info for a single modality.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ModalityTokenCount} + */ +public final class ModalityTokenCount extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ModalityTokenCount) + ModalityTokenCountOrBuilder { + private static final long serialVersionUID = 0L; + // Use ModalityTokenCount.newBuilder() to construct. + private ModalityTokenCount(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ModalityTokenCount() { + modality_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ModalityTokenCount(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_ModalityTokenCount_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_ModalityTokenCount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.class, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder.class); + } + + public static final int MODALITY_FIELD_NUMBER = 1; + private int modality_ = 0; + /** + * + * + *
+   * The modality associated with this token count.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Modality modality = 1; + * + * @return The enum numeric value on the wire for modality. + */ + @java.lang.Override + public int getModalityValue() { + return modality_; + } + /** + * + * + *
+   * The modality associated with this token count.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Modality modality = 1; + * + * @return The modality. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Modality getModality() { + com.google.cloud.aiplatform.v1beta1.Modality result = + com.google.cloud.aiplatform.v1beta1.Modality.forNumber(modality_); + return result == null ? com.google.cloud.aiplatform.v1beta1.Modality.UNRECOGNIZED : result; + } + + public static final int TOKEN_COUNT_FIELD_NUMBER = 2; + private int tokenCount_ = 0; + /** + * + * + *
+   * Number of tokens.
+   * 
+ * + * int32 token_count = 2; + * + * @return The tokenCount. + */ + @java.lang.Override + public int getTokenCount() { + return tokenCount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (modality_ + != com.google.cloud.aiplatform.v1beta1.Modality.MODALITY_UNSPECIFIED.getNumber()) { + output.writeEnum(1, modality_); + } + if (tokenCount_ != 0) { + output.writeInt32(2, tokenCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (modality_ + != com.google.cloud.aiplatform.v1beta1.Modality.MODALITY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, modality_); + } + if (tokenCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, tokenCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.ModalityTokenCount)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount other = + (com.google.cloud.aiplatform.v1beta1.ModalityTokenCount) obj; + + if (modality_ != other.modality_) return false; + if (getTokenCount() != other.getTokenCount()) return false; + if (!getUnknownFields().equals(other.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) + MODALITY_FIELD_NUMBER; + hash = (53 * hash) + modality_; + hash = (37 * hash) + TOKEN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getTokenCount(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ModalityTokenCount parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModalityTokenCount parseFrom( + 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.ModalityTokenCount parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModalityTokenCount parseFrom( + com.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.ModalityTokenCount parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModalityTokenCount 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.ModalityTokenCount parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ModalityTokenCount parseFrom( + java.io.InputStream 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.ModalityTokenCount parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ModalityTokenCount parseDelimitedFrom( + java.io.InputStream 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.ModalityTokenCount 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.ModalityTokenCount parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.ModalityTokenCount prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 token counting info for a single modality.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ModalityTokenCount} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ModalityTokenCount) + com.google.cloud.aiplatform.v1beta1.ModalityTokenCountOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_ModalityTokenCount_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_ModalityTokenCount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.class, + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + modality_ = 0; + tokenCount_ = 0; + 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_ModalityTokenCount_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount build() { + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModalityTokenCount buildPartial() { + com.google.cloud.aiplatform.v1beta1.ModalityTokenCount result = + new com.google.cloud.aiplatform.v1beta1.ModalityTokenCount(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ModalityTokenCount result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.modality_ = modality_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tokenCount_ = tokenCount_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.ModalityTokenCount) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ModalityTokenCount) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ModalityTokenCount other) { + if (other == com.google.cloud.aiplatform.v1beta1.ModalityTokenCount.getDefaultInstance()) + return this; + if (other.modality_ != 0) { + setModalityValue(other.getModalityValue()); + } + if (other.getTokenCount() != 0) { + setTokenCount(other.getTokenCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + modality_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + tokenCount_ = 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 modality_ = 0; + /** + * + * + *
+     * The modality associated with this token count.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Modality modality = 1; + * + * @return The enum numeric value on the wire for modality. + */ + @java.lang.Override + public int getModalityValue() { + return modality_; + } + /** + * + * + *
+     * The modality associated with this token count.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Modality modality = 1; + * + * @param value The enum numeric value on the wire for modality to set. + * @return This builder for chaining. + */ + public Builder setModalityValue(int value) { + modality_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The modality associated with this token count.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Modality modality = 1; + * + * @return The modality. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Modality getModality() { + com.google.cloud.aiplatform.v1beta1.Modality result = + com.google.cloud.aiplatform.v1beta1.Modality.forNumber(modality_); + return result == null ? com.google.cloud.aiplatform.v1beta1.Modality.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The modality associated with this token count.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Modality modality = 1; + * + * @param value The modality to set. + * @return This builder for chaining. + */ + public Builder setModality(com.google.cloud.aiplatform.v1beta1.Modality value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + modality_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The modality associated with this token count.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.Modality modality = 1; + * + * @return This builder for chaining. + */ + public Builder clearModality() { + bitField0_ = (bitField0_ & ~0x00000001); + modality_ = 0; + onChanged(); + return this; + } + + private int tokenCount_; + /** + * + * + *
+     * Number of tokens.
+     * 
+ * + * int32 token_count = 2; + * + * @return The tokenCount. + */ + @java.lang.Override + public int getTokenCount() { + return tokenCount_; + } + /** + * + * + *
+     * Number of tokens.
+     * 
+ * + * int32 token_count = 2; + * + * @param value The tokenCount to set. + * @return This builder for chaining. + */ + public Builder setTokenCount(int value) { + + tokenCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Number of tokens.
+     * 
+ * + * int32 token_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearTokenCount() { + bitField0_ = (bitField0_ & ~0x00000002); + tokenCount_ = 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.ModalityTokenCount) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ModalityTokenCount) + private static final com.google.cloud.aiplatform.v1beta1.ModalityTokenCount DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ModalityTokenCount(); + } + + public static com.google.cloud.aiplatform.v1beta1.ModalityTokenCount getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModalityTokenCount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.ModalityTokenCount getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModalityTokenCountOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModalityTokenCountOrBuilder.java new file mode 100644 index 000000000000..53b970984e9f --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModalityTokenCountOrBuilder.java @@ -0,0 +1,64 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/content.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface ModalityTokenCountOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ModalityTokenCount) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The modality associated with this token count.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Modality modality = 1; + * + * @return The enum numeric value on the wire for modality. + */ + int getModalityValue(); + /** + * + * + *
+   * The modality associated with this token count.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.Modality modality = 1; + * + * @return The modality. + */ + com.google.cloud.aiplatform.v1beta1.Modality getModality(); + + /** + * + * + *
+   * Number of tokens.
+   * 
+ * + * int32 token_count = 2; + * + * @return The tokenCount. + */ + int getTokenCount(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Model.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Model.java index 339a5e7310b4..23999f1b74ad 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Model.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Model.java @@ -45,6 +45,7 @@ private Model() { displayName_ = ""; description_ = ""; versionDescription_ = ""; + defaultCheckpointId_ = ""; metadataSchemaUri_ = ""; supportedExportFormats_ = java.util.Collections.emptyList(); trainingPipeline_ = ""; @@ -4151,6 +4152,57 @@ public com.google.protobuf.ByteString getVersionDescriptionBytes() { } } + public static final int DEFAULT_CHECKPOINT_ID_FIELD_NUMBER = 53; + + @SuppressWarnings("serial") + private volatile java.lang.Object defaultCheckpointId_ = ""; + /** + * + * + *
+   * The default checkpoint id of a model version.
+   * 
+ * + * string default_checkpoint_id = 53; + * + * @return The defaultCheckpointId. + */ + @java.lang.Override + public java.lang.String getDefaultCheckpointId() { + java.lang.Object ref = defaultCheckpointId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultCheckpointId_ = s; + return s; + } + } + /** + * + * + *
+   * The default checkpoint id of a model version.
+   * 
+ * + * string default_checkpoint_id = 53; + * + * @return The bytes for defaultCheckpointId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultCheckpointIdBytes() { + java.lang.Object ref = defaultCheckpointId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultCheckpointId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int PREDICT_SCHEMATA_FIELD_NUMBER = 4; private com.google.cloud.aiplatform.v1beta1.PredictSchemata predictSchemata_; /** @@ -6233,6 +6285,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (satisfiesPzi_ != false) { output.writeBool(52, satisfiesPzi_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultCheckpointId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 53, defaultCheckpointId_); + } getUnknownFields().writeTo(output); } @@ -6370,6 +6425,9 @@ public int getSerializedSize() { if (satisfiesPzi_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(52, satisfiesPzi_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultCheckpointId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(53, defaultCheckpointId_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -6400,6 +6458,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDisplayName().equals(other.getDisplayName())) return false; if (!getDescription().equals(other.getDescription())) return false; if (!getVersionDescription().equals(other.getVersionDescription())) return false; + if (!getDefaultCheckpointId().equals(other.getDefaultCheckpointId())) return false; if (hasPredictSchemata() != other.hasPredictSchemata()) return false; if (hasPredictSchemata()) { if (!getPredictSchemata().equals(other.getPredictSchemata())) return false; @@ -6490,6 +6549,8 @@ public int hashCode() { hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + VERSION_DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getVersionDescription().hashCode(); + hash = (37 * hash) + DEFAULT_CHECKPOINT_ID_FIELD_NUMBER; + hash = (53 * hash) + getDefaultCheckpointId().hashCode(); if (hasPredictSchemata()) { hash = (37 * hash) + PREDICT_SCHEMATA_FIELD_NUMBER; hash = (53 * hash) + getPredictSchemata().hashCode(); @@ -6767,6 +6828,7 @@ public Builder clear() { displayName_ = ""; description_ = ""; versionDescription_ = ""; + defaultCheckpointId_ = ""; predictSchemata_ = null; if (predictSchemataBuilder_ != null) { predictSchemataBuilder_.dispose(); @@ -6784,7 +6846,7 @@ public Builder clear() { supportedExportFormats_ = null; supportedExportFormatsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); trainingPipeline_ = ""; containerSpec_ = null; if (containerSpecBuilder_ != null) { @@ -6793,7 +6855,7 @@ public Builder clear() { } artifactUri_ = ""; supportedDeploymentResourcesTypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); supportedInputStorageFormats_ = com.google.protobuf.LazyStringArrayList.emptyList(); supportedOutputStorageFormats_ = com.google.protobuf.LazyStringArrayList.emptyList(); createTime_ = null; @@ -6812,7 +6874,7 @@ public Builder clear() { deployedModels_ = null; deployedModelsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00200000); explanationSpec_ = null; if (explanationSpecBuilder_ != null) { explanationSpecBuilder_.dispose(); @@ -6880,24 +6942,24 @@ public com.google.cloud.aiplatform.v1beta1.Model buildPartial() { private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1beta1.Model result) { if (supportedExportFormatsBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { supportedExportFormats_ = java.util.Collections.unmodifiableList(supportedExportFormats_); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); } result.supportedExportFormats_ = supportedExportFormats_; } else { result.supportedExportFormats_ = supportedExportFormatsBuilder_.build(); } - if (((bitField0_ & 0x00008000) != 0)) { + if (((bitField0_ & 0x00010000) != 0)) { supportedDeploymentResourcesTypes_ = java.util.Collections.unmodifiableList(supportedDeploymentResourcesTypes_); - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); } result.supportedDeploymentResourcesTypes_ = supportedDeploymentResourcesTypes_; if (deployedModelsBuilder_ == null) { - if (((bitField0_ & 0x00100000) != 0)) { + if (((bitField0_ & 0x00200000) != 0)) { deployedModels_ = java.util.Collections.unmodifiableList(deployedModels_); - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00200000); } result.deployedModels_ = deployedModels_; } else { @@ -6942,85 +7004,88 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Model result) { result.versionDescription_ = versionDescription_; } if (((from_bitField0_ & 0x00000100) != 0)) { + result.defaultCheckpointId_ = defaultCheckpointId_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { result.predictSchemata_ = predictSchemataBuilder_ == null ? predictSchemata_ : predictSchemataBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.metadataSchemaUri_ = metadataSchemaUri_; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.trainingPipeline_ = trainingPipeline_; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.containerSpec_ = containerSpecBuilder_ == null ? containerSpec_ : containerSpecBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.artifactUri_ = artifactUri_; } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00020000) != 0)) { supportedInputStorageFormats_.makeImmutable(); result.supportedInputStorageFormats_ = supportedInputStorageFormats_; } - if (((from_bitField0_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00040000) != 0)) { supportedOutputStorageFormats_.makeImmutable(); result.supportedOutputStorageFormats_ = supportedOutputStorageFormats_; } - if (((from_bitField0_ & 0x00040000) != 0)) { + if (((from_bitField0_ & 0x00080000) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000020; } - if (((from_bitField0_ & 0x00080000) != 0)) { + if (((from_bitField0_ & 0x00100000) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000040; } - if (((from_bitField0_ & 0x00200000) != 0)) { + if (((from_bitField0_ & 0x00400000) != 0)) { result.explanationSpec_ = explanationSpecBuilder_ == null ? explanationSpec_ : explanationSpecBuilder_.build(); to_bitField0_ |= 0x00000080; } - if (((from_bitField0_ & 0x00400000) != 0)) { + if (((from_bitField0_ & 0x00800000) != 0)) { result.etag_ = etag_; } - if (((from_bitField0_ & 0x00800000) != 0)) { + if (((from_bitField0_ & 0x01000000) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } - if (((from_bitField0_ & 0x01000000) != 0)) { + if (((from_bitField0_ & 0x02000000) != 0)) { result.encryptionSpec_ = encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); to_bitField0_ |= 0x00000100; } - if (((from_bitField0_ & 0x02000000) != 0)) { + if (((from_bitField0_ & 0x04000000) != 0)) { result.modelSourceInfo_ = modelSourceInfoBuilder_ == null ? modelSourceInfo_ : modelSourceInfoBuilder_.build(); to_bitField0_ |= 0x00000200; } - if (((from_bitField0_ & 0x04000000) != 0)) { + if (((from_bitField0_ & 0x08000000) != 0)) { result.originalModelInfo_ = originalModelInfoBuilder_ == null ? originalModelInfo_ : originalModelInfoBuilder_.build(); to_bitField0_ |= 0x00000400; } - if (((from_bitField0_ & 0x08000000) != 0)) { + if (((from_bitField0_ & 0x10000000) != 0)) { result.metadataArtifact_ = metadataArtifact_; } - if (((from_bitField0_ & 0x10000000) != 0)) { + if (((from_bitField0_ & 0x20000000) != 0)) { result.baseModelSource_ = baseModelSourceBuilder_ == null ? baseModelSource_ : baseModelSourceBuilder_.build(); to_bitField0_ |= 0x00000800; } - if (((from_bitField0_ & 0x20000000) != 0)) { + if (((from_bitField0_ & 0x40000000) != 0)) { result.satisfiesPzs_ = satisfiesPzs_; } - if (((from_bitField0_ & 0x40000000) != 0)) { + if (((from_bitField0_ & 0x80000000) != 0)) { result.satisfiesPzi_ = satisfiesPzi_; } result.bitField0_ |= to_bitField0_; @@ -7112,12 +7177,17 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Model other) { bitField0_ |= 0x00000080; onChanged(); } + if (!other.getDefaultCheckpointId().isEmpty()) { + defaultCheckpointId_ = other.defaultCheckpointId_; + bitField0_ |= 0x00000100; + onChanged(); + } if (other.hasPredictSchemata()) { mergePredictSchemata(other.getPredictSchemata()); } if (!other.getMetadataSchemaUri().isEmpty()) { metadataSchemaUri_ = other.metadataSchemaUri_; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); } if (other.hasMetadata()) { @@ -7127,7 +7197,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Model other) { if (!other.supportedExportFormats_.isEmpty()) { if (supportedExportFormats_.isEmpty()) { supportedExportFormats_ = other.supportedExportFormats_; - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); } else { ensureSupportedExportFormatsIsMutable(); supportedExportFormats_.addAll(other.supportedExportFormats_); @@ -7140,7 +7210,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Model other) { supportedExportFormatsBuilder_.dispose(); supportedExportFormatsBuilder_ = null; supportedExportFormats_ = other.supportedExportFormats_; - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); supportedExportFormatsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSupportedExportFormatsFieldBuilder() @@ -7152,7 +7222,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Model other) { } if (!other.getTrainingPipeline().isEmpty()) { trainingPipeline_ = other.trainingPipeline_; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } if (other.hasContainerSpec()) { @@ -7160,13 +7230,13 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Model other) { } if (!other.getArtifactUri().isEmpty()) { artifactUri_ = other.artifactUri_; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } if (!other.supportedDeploymentResourcesTypes_.isEmpty()) { if (supportedDeploymentResourcesTypes_.isEmpty()) { supportedDeploymentResourcesTypes_ = other.supportedDeploymentResourcesTypes_; - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); } else { ensureSupportedDeploymentResourcesTypesIsMutable(); supportedDeploymentResourcesTypes_.addAll(other.supportedDeploymentResourcesTypes_); @@ -7176,7 +7246,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Model other) { if (!other.supportedInputStorageFormats_.isEmpty()) { if (supportedInputStorageFormats_.isEmpty()) { supportedInputStorageFormats_ = other.supportedInputStorageFormats_; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; } else { ensureSupportedInputStorageFormatsIsMutable(); supportedInputStorageFormats_.addAll(other.supportedInputStorageFormats_); @@ -7186,7 +7256,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Model other) { if (!other.supportedOutputStorageFormats_.isEmpty()) { if (supportedOutputStorageFormats_.isEmpty()) { supportedOutputStorageFormats_ = other.supportedOutputStorageFormats_; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; } else { ensureSupportedOutputStorageFormatsIsMutable(); supportedOutputStorageFormats_.addAll(other.supportedOutputStorageFormats_); @@ -7203,7 +7273,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Model other) { if (!other.deployedModels_.isEmpty()) { if (deployedModels_.isEmpty()) { deployedModels_ = other.deployedModels_; - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00200000); } else { ensureDeployedModelsIsMutable(); deployedModels_.addAll(other.deployedModels_); @@ -7216,7 +7286,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Model other) { deployedModelsBuilder_.dispose(); deployedModelsBuilder_ = null; deployedModels_ = other.deployedModels_; - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00200000); deployedModelsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDeployedModelsFieldBuilder() @@ -7231,11 +7301,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Model other) { } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; if (other.hasEncryptionSpec()) { mergeEncryptionSpec(other.getEncryptionSpec()); } @@ -7247,7 +7317,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Model other) { } if (!other.getMetadataArtifact().isEmpty()) { metadataArtifact_ = other.metadataArtifact_; - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; onChanged(); } if (other.hasBaseModelSource()) { @@ -7306,31 +7376,31 @@ public Builder mergeFrom( case 34: { input.readMessage(getPredictSchemataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 34 case 42: { metadataSchemaUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 42 case 50: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 50 case 58: { trainingPipeline_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 58 case 74: { input.readMessage(getContainerSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 74 case 80: @@ -7369,13 +7439,13 @@ public Builder mergeFrom( case 106: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; break; } // case 106 case 114: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; break; } // case 114 case 122: @@ -7395,7 +7465,7 @@ public Builder mergeFrom( case 130: { etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; break; } // case 130 case 138: @@ -7407,7 +7477,7 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; break; } // case 138 case 162: @@ -7427,19 +7497,19 @@ public Builder mergeFrom( case 186: { input.readMessage(getExplanationSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; break; } // case 186 case 194: { input.readMessage(getEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; break; } // case 194 case 210: { artifactUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 210 case 226: @@ -7479,39 +7549,45 @@ public Builder mergeFrom( { input.readMessage( getOriginalModelInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x04000000; + bitField0_ |= 0x08000000; break; } // case 274 case 306: { input.readMessage(getModelSourceInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; break; } // case 306 case 354: { metadataArtifact_ = input.readStringRequireUtf8(); - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; break; } // case 354 case 402: { input.readMessage(getBaseModelSourceFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; break; } // case 402 case 408: { satisfiesPzs_ = input.readBool(); - bitField0_ |= 0x20000000; + bitField0_ |= 0x40000000; break; } // case 408 case 416: { satisfiesPzi_ = input.readBool(); - bitField0_ |= 0x40000000; + bitField0_ |= 0x80000000; break; } // case 416 + case 426: + { + defaultCheckpointId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 426 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -8748,6 +8824,112 @@ public Builder setVersionDescriptionBytes(com.google.protobuf.ByteString value) return this; } + private java.lang.Object defaultCheckpointId_ = ""; + /** + * + * + *
+     * The default checkpoint id of a model version.
+     * 
+ * + * string default_checkpoint_id = 53; + * + * @return The defaultCheckpointId. + */ + public java.lang.String getDefaultCheckpointId() { + java.lang.Object ref = defaultCheckpointId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultCheckpointId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The default checkpoint id of a model version.
+     * 
+ * + * string default_checkpoint_id = 53; + * + * @return The bytes for defaultCheckpointId. + */ + public com.google.protobuf.ByteString getDefaultCheckpointIdBytes() { + java.lang.Object ref = defaultCheckpointId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultCheckpointId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The default checkpoint id of a model version.
+     * 
+ * + * string default_checkpoint_id = 53; + * + * @param value The defaultCheckpointId to set. + * @return This builder for chaining. + */ + public Builder setDefaultCheckpointId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + defaultCheckpointId_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * The default checkpoint id of a model version.
+     * 
+ * + * string default_checkpoint_id = 53; + * + * @return This builder for chaining. + */ + public Builder clearDefaultCheckpointId() { + defaultCheckpointId_ = getDefaultInstance().getDefaultCheckpointId(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * + * + *
+     * The default checkpoint id of a model version.
+     * 
+ * + * string default_checkpoint_id = 53; + * + * @param value The bytes for defaultCheckpointId to set. + * @return This builder for chaining. + */ + public Builder setDefaultCheckpointIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + defaultCheckpointId_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + private com.google.cloud.aiplatform.v1beta1.PredictSchemata predictSchemata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.PredictSchemata, @@ -8770,7 +8952,7 @@ public Builder setVersionDescriptionBytes(com.google.protobuf.ByteString value) * @return Whether the predictSchemata field is set. */ public boolean hasPredictSchemata() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -8818,7 +9000,7 @@ public Builder setPredictSchemata(com.google.cloud.aiplatform.v1beta1.PredictSch } else { predictSchemataBuilder_.setMessage(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -8842,7 +9024,7 @@ public Builder setPredictSchemata( } else { predictSchemataBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -8861,7 +9043,7 @@ public Builder setPredictSchemata( */ public Builder mergePredictSchemata(com.google.cloud.aiplatform.v1beta1.PredictSchemata value) { if (predictSchemataBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) + if (((bitField0_ & 0x00000200) != 0) && predictSchemata_ != null && predictSchemata_ != com.google.cloud.aiplatform.v1beta1.PredictSchemata.getDefaultInstance()) { @@ -8873,7 +9055,7 @@ public Builder mergePredictSchemata(com.google.cloud.aiplatform.v1beta1.PredictS predictSchemataBuilder_.mergeFrom(value); } if (predictSchemata_ != null) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } return this; @@ -8892,7 +9074,7 @@ public Builder mergePredictSchemata(com.google.cloud.aiplatform.v1beta1.PredictS * .google.cloud.aiplatform.v1beta1.PredictSchemata predict_schemata = 4; */ public Builder clearPredictSchemata() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); predictSchemata_ = null; if (predictSchemataBuilder_ != null) { predictSchemataBuilder_.dispose(); @@ -8915,7 +9097,7 @@ public Builder clearPredictSchemata() { * .google.cloud.aiplatform.v1beta1.PredictSchemata predict_schemata = 4; */ public com.google.cloud.aiplatform.v1beta1.PredictSchemata.Builder getPredictSchemataBuilder() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return getPredictSchemataFieldBuilder().getBuilder(); } @@ -9061,7 +9243,7 @@ public Builder setMetadataSchemaUri(java.lang.String value) { throw new NullPointerException(); } metadataSchemaUri_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -9087,7 +9269,7 @@ public Builder setMetadataSchemaUri(java.lang.String value) { */ public Builder clearMetadataSchemaUri() { metadataSchemaUri_ = getDefaultInstance().getMetadataSchemaUri(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -9118,7 +9300,7 @@ public Builder setMetadataSchemaUriBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); metadataSchemaUri_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -9144,7 +9326,7 @@ public Builder setMetadataSchemaUriBytes(com.google.protobuf.ByteString value) { * @return Whether the metadata field is set. */ public boolean hasMetadata() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** * @@ -9188,7 +9370,7 @@ public Builder setMetadata(com.google.protobuf.Value value) { } else { metadataBuilder_.setMessage(value); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -9210,7 +9392,7 @@ public Builder setMetadata(com.google.protobuf.Value.Builder builderForValue) { } else { metadataBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -9228,7 +9410,7 @@ public Builder setMetadata(com.google.protobuf.Value.Builder builderForValue) { */ public Builder mergeMetadata(com.google.protobuf.Value value) { if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) + if (((bitField0_ & 0x00000800) != 0) && metadata_ != null && metadata_ != com.google.protobuf.Value.getDefaultInstance()) { getMetadataBuilder().mergeFrom(value); @@ -9239,7 +9421,7 @@ public Builder mergeMetadata(com.google.protobuf.Value value) { metadataBuilder_.mergeFrom(value); } if (metadata_ != null) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } return this; @@ -9257,7 +9439,7 @@ public Builder mergeMetadata(com.google.protobuf.Value value) { * .google.protobuf.Value metadata = 6 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder clearMetadata() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); metadata_ = null; if (metadataBuilder_ != null) { metadataBuilder_.dispose(); @@ -9279,7 +9461,7 @@ public Builder clearMetadata() { * .google.protobuf.Value metadata = 6 [(.google.api.field_behavior) = IMMUTABLE]; */ public com.google.protobuf.Value.Builder getMetadataBuilder() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return getMetadataFieldBuilder().getBuilder(); } @@ -9335,11 +9517,11 @@ public com.google.protobuf.ValueOrBuilder getMetadataOrBuilder() { supportedExportFormats_ = java.util.Collections.emptyList(); private void ensureSupportedExportFormatsIsMutable() { - if (!((bitField0_ & 0x00000800) != 0)) { + if (!((bitField0_ & 0x00001000) != 0)) { supportedExportFormats_ = new java.util.ArrayList( supportedExportFormats_); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; } } @@ -9594,7 +9776,7 @@ public Builder addAllSupportedExportFormats( public Builder clearSupportedExportFormats() { if (supportedExportFormatsBuilder_ == null) { supportedExportFormats_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); } else { supportedExportFormatsBuilder_.clear(); @@ -9743,7 +9925,7 @@ public Builder removeSupportedExportFormats(int index) { com.google.cloud.aiplatform.v1beta1.Model.ExportFormat.Builder, com.google.cloud.aiplatform.v1beta1.Model.ExportFormatOrBuilder>( supportedExportFormats_, - ((bitField0_ & 0x00000800) != 0), + ((bitField0_ & 0x00001000) != 0), getParentForChildren(), isClean()); supportedExportFormats_ = null; @@ -9822,7 +10004,7 @@ public Builder setTrainingPipeline(java.lang.String value) { throw new NullPointerException(); } trainingPipeline_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -9842,7 +10024,7 @@ public Builder setTrainingPipeline(java.lang.String value) { */ public Builder clearTrainingPipeline() { trainingPipeline_ = getDefaultInstance().getTrainingPipeline(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } @@ -9867,7 +10049,7 @@ public Builder setTrainingPipelineBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); trainingPipeline_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -9896,7 +10078,7 @@ public Builder setTrainingPipelineBytes(com.google.protobuf.ByteString value) { * @return Whether the containerSpec field is set. */ public boolean hasContainerSpec() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** * @@ -9948,7 +10130,7 @@ public Builder setContainerSpec(com.google.cloud.aiplatform.v1beta1.ModelContain } else { containerSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -9974,7 +10156,7 @@ public Builder setContainerSpec( } else { containerSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -9996,7 +10178,7 @@ public Builder setContainerSpec( public Builder mergeContainerSpec( com.google.cloud.aiplatform.v1beta1.ModelContainerSpec value) { if (containerSpecBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) + if (((bitField0_ & 0x00004000) != 0) && containerSpec_ != null && containerSpec_ != com.google.cloud.aiplatform.v1beta1.ModelContainerSpec.getDefaultInstance()) { @@ -10008,7 +10190,7 @@ public Builder mergeContainerSpec( containerSpecBuilder_.mergeFrom(value); } if (containerSpec_ != null) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } return this; @@ -10029,7 +10211,7 @@ public Builder mergeContainerSpec( *
*/ public Builder clearContainerSpec() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); containerSpec_ = null; if (containerSpecBuilder_ != null) { containerSpecBuilder_.dispose(); @@ -10055,7 +10237,7 @@ public Builder clearContainerSpec() { */ public com.google.cloud.aiplatform.v1beta1.ModelContainerSpec.Builder getContainerSpecBuilder() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return getContainerSpecFieldBuilder().getBuilder(); } @@ -10181,7 +10363,7 @@ public Builder setArtifactUri(java.lang.String value) { throw new NullPointerException(); } artifactUri_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -10199,7 +10381,7 @@ public Builder setArtifactUri(java.lang.String value) { */ public Builder clearArtifactUri() { artifactUri_ = getDefaultInstance().getArtifactUri(); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); return this; } @@ -10222,7 +10404,7 @@ public Builder setArtifactUriBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); artifactUri_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -10231,10 +10413,10 @@ public Builder setArtifactUriBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureSupportedDeploymentResourcesTypesIsMutable() { - if (!((bitField0_ & 0x00008000) != 0)) { + if (!((bitField0_ & 0x00010000) != 0)) { supportedDeploymentResourcesTypes_ = new java.util.ArrayList(supportedDeploymentResourcesTypes_); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; } } /** @@ -10492,7 +10674,7 @@ public Builder addAllSupportedDeploymentResourcesTypes( */ public Builder clearSupportedDeploymentResourcesTypes() { supportedDeploymentResourcesTypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); onChanged(); return this; } @@ -10685,7 +10867,7 @@ private void ensureSupportedInputStorageFormatsIsMutable() { supportedInputStorageFormats_ = new com.google.protobuf.LazyStringArrayList(supportedInputStorageFormats_); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; } /** * @@ -11005,7 +11187,7 @@ public Builder setSupportedInputStorageFormats(int index, java.lang.String value } ensureSupportedInputStorageFormatsIsMutable(); supportedInputStorageFormats_.set(index, value); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -11075,7 +11257,7 @@ public Builder addSupportedInputStorageFormats(java.lang.String value) { } ensureSupportedInputStorageFormatsIsMutable(); supportedInputStorageFormats_.add(value); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -11142,7 +11324,7 @@ public Builder addSupportedInputStorageFormats(java.lang.String value) { public Builder addAllSupportedInputStorageFormats(java.lang.Iterable values) { ensureSupportedInputStorageFormatsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, supportedInputStorageFormats_); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -11207,7 +11389,7 @@ public Builder addAllSupportedInputStorageFormats(java.lang.Iterable */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -11954,7 +12136,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -12026,7 +12208,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return ((bitField0_ & 0x00080000) != 0); + return ((bitField0_ & 0x00100000) != 0); } /** * @@ -12070,7 +12252,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -12091,7 +12273,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -12108,7 +12290,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00080000) != 0) + if (((bitField0_ & 0x00100000) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); @@ -12119,7 +12301,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); } return this; @@ -12136,7 +12318,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); @@ -12157,7 +12339,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -12213,11 +12395,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { java.util.Collections.emptyList(); private void ensureDeployedModelsIsMutable() { - if (!((bitField0_ & 0x00100000) != 0)) { + if (!((bitField0_ & 0x00200000) != 0)) { deployedModels_ = new java.util.ArrayList( deployedModels_); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; } } @@ -12469,7 +12651,7 @@ public Builder addAllDeployedModels( public Builder clearDeployedModels() { if (deployedModelsBuilder_ == null) { deployedModels_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00200000); onChanged(); } else { deployedModelsBuilder_.clear(); @@ -12617,7 +12799,7 @@ public com.google.cloud.aiplatform.v1beta1.DeployedModelRef.Builder addDeployedM com.google.cloud.aiplatform.v1beta1.DeployedModelRef.Builder, com.google.cloud.aiplatform.v1beta1.DeployedModelRefOrBuilder>( deployedModels_, - ((bitField0_ & 0x00100000) != 0), + ((bitField0_ & 0x00200000) != 0), getParentForChildren(), isClean()); deployedModels_ = null; @@ -12676,7 +12858,7 @@ public com.google.cloud.aiplatform.v1beta1.DeployedModelRef.Builder addDeployedM * @return Whether the explanationSpec field is set. */ public boolean hasExplanationSpec() { - return ((bitField0_ & 0x00200000) != 0); + return ((bitField0_ & 0x00400000) != 0); } /** * @@ -12782,7 +12964,7 @@ public Builder setExplanationSpec(com.google.cloud.aiplatform.v1beta1.Explanatio } else { explanationSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -12835,7 +13017,7 @@ public Builder setExplanationSpec( } else { explanationSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -12883,7 +13065,7 @@ public Builder setExplanationSpec( */ public Builder mergeExplanationSpec(com.google.cloud.aiplatform.v1beta1.ExplanationSpec value) { if (explanationSpecBuilder_ == null) { - if (((bitField0_ & 0x00200000) != 0) + if (((bitField0_ & 0x00400000) != 0) && explanationSpec_ != null && explanationSpec_ != com.google.cloud.aiplatform.v1beta1.ExplanationSpec.getDefaultInstance()) { @@ -12895,7 +13077,7 @@ public Builder mergeExplanationSpec(com.google.cloud.aiplatform.v1beta1.Explanat explanationSpecBuilder_.mergeFrom(value); } if (explanationSpec_ != null) { - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); } return this; @@ -12943,7 +13125,7 @@ public Builder mergeExplanationSpec(com.google.cloud.aiplatform.v1beta1.Explanat * .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 23; */ public Builder clearExplanationSpec() { - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); explanationSpec_ = null; if (explanationSpecBuilder_ != null) { explanationSpecBuilder_.dispose(); @@ -12995,7 +13177,7 @@ public Builder clearExplanationSpec() { * .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 23; */ public com.google.cloud.aiplatform.v1beta1.ExplanationSpec.Builder getExplanationSpecBuilder() { - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return getExplanationSpecFieldBuilder().getBuilder(); } @@ -13175,7 +13357,7 @@ public Builder setEtag(java.lang.String value) { throw new NullPointerException(); } etag_ = value; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -13193,7 +13375,7 @@ public Builder setEtag(java.lang.String value) { */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x00400000); + bitField0_ = (bitField0_ & ~0x00800000); onChanged(); return this; } @@ -13216,7 +13398,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); etag_ = value; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -13238,7 +13420,7 @@ private com.google.protobuf.MapField interna if (!labels_.isMutable()) { labels_ = labels_.copy(); } - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return labels_; } @@ -13347,7 +13529,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00800000); + bitField0_ = (bitField0_ & ~0x01000000); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -13376,7 +13558,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; return internalGetMutableLabels().getMutableMap(); } /** @@ -13402,7 +13584,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; return this; } /** @@ -13422,7 +13604,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; return this; } @@ -13445,7 +13627,7 @@ public Builder putAllLabels(java.util.Map va * @return Whether the encryptionSpec field is set. */ public boolean hasEncryptionSpec() { - return ((bitField0_ & 0x01000000) != 0); + return ((bitField0_ & 0x02000000) != 0); } /** * @@ -13487,7 +13669,7 @@ public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionS } else { encryptionSpecBuilder_.setMessage(value); } - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; onChanged(); return this; } @@ -13508,7 +13690,7 @@ public Builder setEncryptionSpec( } else { encryptionSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; onChanged(); return this; } @@ -13524,7 +13706,7 @@ public Builder setEncryptionSpec( */ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionSpec value) { if (encryptionSpecBuilder_ == null) { - if (((bitField0_ & 0x01000000) != 0) + if (((bitField0_ & 0x02000000) != 0) && encryptionSpec_ != null && encryptionSpec_ != com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance()) { @@ -13536,7 +13718,7 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.Encryptio encryptionSpecBuilder_.mergeFrom(value); } if (encryptionSpec_ != null) { - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; onChanged(); } return this; @@ -13552,7 +13734,7 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.Encryptio * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 24; */ public Builder clearEncryptionSpec() { - bitField0_ = (bitField0_ & ~0x01000000); + bitField0_ = (bitField0_ & ~0x02000000); encryptionSpec_ = null; if (encryptionSpecBuilder_ != null) { encryptionSpecBuilder_.dispose(); @@ -13572,7 +13754,7 @@ public Builder clearEncryptionSpec() { * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 24; */ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionSpecBuilder() { - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; onChanged(); return getEncryptionSpecFieldBuilder().getBuilder(); } @@ -13645,7 +13827,7 @@ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionS * @return Whether the modelSourceInfo field is set. */ public boolean hasModelSourceInfo() { - return ((bitField0_ & 0x02000000) != 0); + return ((bitField0_ & 0x04000000) != 0); } /** * @@ -13693,7 +13875,7 @@ public Builder setModelSourceInfo(com.google.cloud.aiplatform.v1beta1.ModelSourc } else { modelSourceInfoBuilder_.setMessage(value); } - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; onChanged(); return this; } @@ -13717,7 +13899,7 @@ public Builder setModelSourceInfo( } else { modelSourceInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; onChanged(); return this; } @@ -13736,7 +13918,7 @@ public Builder setModelSourceInfo( */ public Builder mergeModelSourceInfo(com.google.cloud.aiplatform.v1beta1.ModelSourceInfo value) { if (modelSourceInfoBuilder_ == null) { - if (((bitField0_ & 0x02000000) != 0) + if (((bitField0_ & 0x04000000) != 0) && modelSourceInfo_ != null && modelSourceInfo_ != com.google.cloud.aiplatform.v1beta1.ModelSourceInfo.getDefaultInstance()) { @@ -13748,7 +13930,7 @@ public Builder mergeModelSourceInfo(com.google.cloud.aiplatform.v1beta1.ModelSou modelSourceInfoBuilder_.mergeFrom(value); } if (modelSourceInfo_ != null) { - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; onChanged(); } return this; @@ -13767,7 +13949,7 @@ public Builder mergeModelSourceInfo(com.google.cloud.aiplatform.v1beta1.ModelSou * */ public Builder clearModelSourceInfo() { - bitField0_ = (bitField0_ & ~0x02000000); + bitField0_ = (bitField0_ & ~0x04000000); modelSourceInfo_ = null; if (modelSourceInfoBuilder_ != null) { modelSourceInfoBuilder_.dispose(); @@ -13790,7 +13972,7 @@ public Builder clearModelSourceInfo() { * */ public com.google.cloud.aiplatform.v1beta1.ModelSourceInfo.Builder getModelSourceInfoBuilder() { - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; onChanged(); return getModelSourceInfoFieldBuilder().getBuilder(); } @@ -13868,7 +14050,7 @@ public com.google.cloud.aiplatform.v1beta1.ModelSourceInfo.Builder getModelSourc * @return Whether the originalModelInfo field is set. */ public boolean hasOriginalModelInfo() { - return ((bitField0_ & 0x04000000) != 0); + return ((bitField0_ & 0x08000000) != 0); } /** * @@ -13915,7 +14097,7 @@ public Builder setOriginalModelInfo( } else { originalModelInfoBuilder_.setMessage(value); } - bitField0_ |= 0x04000000; + bitField0_ |= 0x08000000; onChanged(); return this; } @@ -13938,7 +14120,7 @@ public Builder setOriginalModelInfo( } else { originalModelInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x04000000; + bitField0_ |= 0x08000000; onChanged(); return this; } @@ -13957,7 +14139,7 @@ public Builder setOriginalModelInfo( public Builder mergeOriginalModelInfo( com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo value) { if (originalModelInfoBuilder_ == null) { - if (((bitField0_ & 0x04000000) != 0) + if (((bitField0_ & 0x08000000) != 0) && originalModelInfo_ != null && originalModelInfo_ != com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo @@ -13970,7 +14152,7 @@ public Builder mergeOriginalModelInfo( originalModelInfoBuilder_.mergeFrom(value); } if (originalModelInfo_ != null) { - bitField0_ |= 0x04000000; + bitField0_ |= 0x08000000; onChanged(); } return this; @@ -13988,7 +14170,7 @@ public Builder mergeOriginalModelInfo( * */ public Builder clearOriginalModelInfo() { - bitField0_ = (bitField0_ & ~0x04000000); + bitField0_ = (bitField0_ & ~0x08000000); originalModelInfo_ = null; if (originalModelInfoBuilder_ != null) { originalModelInfoBuilder_.dispose(); @@ -14011,7 +14193,7 @@ public Builder clearOriginalModelInfo() { */ public com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo.Builder getOriginalModelInfoBuilder() { - bitField0_ |= 0x04000000; + bitField0_ |= 0x08000000; onChanged(); return getOriginalModelInfoFieldBuilder().getBuilder(); } @@ -14137,7 +14319,7 @@ public Builder setMetadataArtifact(java.lang.String value) { throw new NullPointerException(); } metadataArtifact_ = value; - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -14157,7 +14339,7 @@ public Builder setMetadataArtifact(java.lang.String value) { */ public Builder clearMetadataArtifact() { metadataArtifact_ = getDefaultInstance().getMetadataArtifact(); - bitField0_ = (bitField0_ & ~0x08000000); + bitField0_ = (bitField0_ & ~0x10000000); onChanged(); return this; } @@ -14182,7 +14364,7 @@ public Builder setMetadataArtifactBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); metadataArtifact_ = value; - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -14208,7 +14390,7 @@ public Builder setMetadataArtifactBytes(com.google.protobuf.ByteString value) { * @return Whether the baseModelSource field is set. */ public boolean hasBaseModelSource() { - return ((bitField0_ & 0x10000000) != 0); + return ((bitField0_ & 0x20000000) != 0); } /** * @@ -14255,7 +14437,7 @@ public Builder setBaseModelSource( } else { baseModelSourceBuilder_.setMessage(value); } - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; onChanged(); return this; } @@ -14278,7 +14460,7 @@ public Builder setBaseModelSource( } else { baseModelSourceBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; onChanged(); return this; } @@ -14297,7 +14479,7 @@ public Builder setBaseModelSource( public Builder mergeBaseModelSource( com.google.cloud.aiplatform.v1beta1.Model.BaseModelSource value) { if (baseModelSourceBuilder_ == null) { - if (((bitField0_ & 0x10000000) != 0) + if (((bitField0_ & 0x20000000) != 0) && baseModelSource_ != null && baseModelSource_ != com.google.cloud.aiplatform.v1beta1.Model.BaseModelSource.getDefaultInstance()) { @@ -14309,7 +14491,7 @@ public Builder mergeBaseModelSource( baseModelSourceBuilder_.mergeFrom(value); } if (baseModelSource_ != null) { - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; onChanged(); } return this; @@ -14327,7 +14509,7 @@ public Builder mergeBaseModelSource( * */ public Builder clearBaseModelSource() { - bitField0_ = (bitField0_ & ~0x10000000); + bitField0_ = (bitField0_ & ~0x20000000); baseModelSource_ = null; if (baseModelSourceBuilder_ != null) { baseModelSourceBuilder_.dispose(); @@ -14350,7 +14532,7 @@ public Builder clearBaseModelSource() { */ public com.google.cloud.aiplatform.v1beta1.Model.BaseModelSource.Builder getBaseModelSourceBuilder() { - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; onChanged(); return getBaseModelSourceFieldBuilder().getBuilder(); } @@ -14436,7 +14618,7 @@ public boolean getSatisfiesPzs() { public Builder setSatisfiesPzs(boolean value) { satisfiesPzs_ = value; - bitField0_ |= 0x20000000; + bitField0_ |= 0x40000000; onChanged(); return this; } @@ -14452,7 +14634,7 @@ public Builder setSatisfiesPzs(boolean value) { * @return This builder for chaining. */ public Builder clearSatisfiesPzs() { - bitField0_ = (bitField0_ & ~0x20000000); + bitField0_ = (bitField0_ & ~0x40000000); satisfiesPzs_ = false; onChanged(); return this; @@ -14489,7 +14671,7 @@ public boolean getSatisfiesPzi() { public Builder setSatisfiesPzi(boolean value) { satisfiesPzi_ = value; - bitField0_ |= 0x40000000; + bitField0_ |= 0x80000000; onChanged(); return this; } @@ -14505,7 +14687,7 @@ public Builder setSatisfiesPzi(boolean value) { * @return This builder for chaining. */ public Builder clearSatisfiesPzi() { - bitField0_ = (bitField0_ & ~0x40000000); + bitField0_ = (bitField0_ & ~0x80000000); satisfiesPzi_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelOrBuilder.java index bbeefbdadf04..793c46286f4b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelOrBuilder.java @@ -328,6 +328,31 @@ public interface ModelOrBuilder */ com.google.protobuf.ByteString getVersionDescriptionBytes(); + /** + * + * + *
+   * The default checkpoint id of a model version.
+   * 
+ * + * string default_checkpoint_id = 53; + * + * @return The defaultCheckpointId. + */ + java.lang.String getDefaultCheckpointId(); + /** + * + * + *
+   * The default checkpoint id of a model version.
+   * 
+ * + * string default_checkpoint_id = 53; + * + * @return The bytes for defaultCheckpointId. + */ + com.google.protobuf.ByteString getDefaultCheckpointIdBytes(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelProto.java index 4a57a415c22a..bd5d0116a422 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelProto.java @@ -104,107 +104,107 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "orm/v1beta1/explanation.proto\032\036google/pr" + "otobuf/duration.proto\032\034google/protobuf/s" + "truct.proto\032\037google/protobuf/timestamp.p" - + "roto\"\230\023\n\005Model\022\014\n\004name\030\001 \001(\t\022\032\n\nversion_" + + "roto\"\267\023\n\005Model\022\014\n\004name\030\001 \001(\t\022\032\n\nversion_" + "id\030\034 \001(\tB\006\340A\005\340A\003\022\027\n\017version_aliases\030\035 \003(" + "\t\022<\n\023version_create_time\030\037 \001(\0132\032.google." + "protobuf.TimestampB\003\340A\003\022<\n\023version_updat" + "e_time\030 \001(\0132\032.google.protobuf.Timestamp" + "B\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022\023\n\013desc" + "ription\030\003 \001(\t\022\033\n\023version_description\030\036 \001" - + "(\t\022J\n\020predict_schemata\030\004 \001(\01320.google.cl" - + "oud.aiplatform.v1beta1.PredictSchemata\022 " - + "\n\023metadata_schema_uri\030\005 \001(\tB\003\340A\005\022-\n\010meta" - + "data\030\006 \001(\0132\026.google.protobuf.ValueB\003\340A\005\022" - + "Z\n\030supported_export_formats\030\024 \003(\01323.goog" - + "le.cloud.aiplatform.v1beta1.Model.Export" - + "FormatB\003\340A\003\022M\n\021training_pipeline\030\007 \001(\tB2" - + "\340A\003\372A,\n*aiplatform.googleapis.com/Traini" - + "ngPipeline\022P\n\016container_spec\030\t \001(\01323.goo" - + "gle.cloud.aiplatform.v1beta1.ModelContai" - + "nerSpecB\003\340A\004\022\031\n\014artifact_uri\030\032 \001(\tB\003\340A\005\022" - + "q\n$supported_deployment_resources_types\030" - + "\n \003(\0162>.google.cloud.aiplatform.v1beta1." - + "Model.DeploymentResourcesTypeB\003\340A\003\022,\n\037su" - + "pported_input_storage_formats\030\013 \003(\tB\003\340A\003" - + "\022-\n supported_output_storage_formats\030\014 \003" - + "(\tB\003\340A\003\0224\n\013create_time\030\r \001(\0132\032.google.pr" - + "otobuf.TimestampB\003\340A\003\0224\n\013update_time\030\016 \001" - + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022O\n\017d" - + "eployed_models\030\017 \003(\01321.google.cloud.aipl" - + "atform.v1beta1.DeployedModelRefB\003\340A\003\022J\n\020" - + "explanation_spec\030\027 \001(\01320.google.cloud.ai" - + "platform.v1beta1.ExplanationSpec\022\014\n\004etag" - + "\030\020 \001(\t\022B\n\006labels\030\021 \003(\01322.google.cloud.ai" - + "platform.v1beta1.Model.LabelsEntry\022H\n\017en" - + "cryption_spec\030\030 \001(\0132/.google.cloud.aipla" - + "tform.v1beta1.EncryptionSpec\022P\n\021model_so" - + "urce_info\030& \001(\01320.google.cloud.aiplatfor" - + "m.v1beta1.ModelSourceInfoB\003\340A\003\022Z\n\023origin" - + "al_model_info\030\" \001(\01328.google.cloud.aipla" - + "tform.v1beta1.Model.OriginalModelInfoB\003\340" - + "A\003\022\036\n\021metadata_artifact\030, \001(\tB\003\340A\003\022V\n\021ba" - + "se_model_source\0302 \001(\01326.google.cloud.aip" - + "latform.v1beta1.Model.BaseModelSourceB\003\340" - + "A\001\022\032\n\rsatisfies_pzs\0303 \001(\010B\003\340A\003\022\032\n\rsatisf" - + "ies_pzi\0304 \001(\010B\003\340A\003\032\332\001\n\014ExportFormat\022\017\n\002i" - + "d\030\001 \001(\tB\003\340A\003\022g\n\023exportable_contents\030\002 \003(" - + "\0162E.google.cloud.aiplatform.v1beta1.Mode" - + "l.ExportFormat.ExportableContentB\003\340A\003\"P\n" - + "\021ExportableContent\022\"\n\036EXPORTABLE_CONTENT" - + "_UNSPECIFIED\020\000\022\014\n\010ARTIFACT\020\001\022\t\n\005IMAGE\020\002\032" - + "K\n\021OriginalModelInfo\0226\n\005model\030\001 \001(\tB\'\340A\003" - + "\372A!\n\037aiplatform.googleapis.com/Model\032\264\001\n" - + "\017BaseModelSource\022Q\n\023model_garden_source\030" - + "\001 \001(\01322.google.cloud.aiplatform.v1beta1." - + "ModelGardenSourceH\000\022D\n\014genie_source\030\002 \001(" - + "\0132,.google.cloud.aiplatform.v1beta1.Geni" - + "eSourceH\000B\010\n\006source\032-\n\013LabelsEntry\022\013\n\003ke" - + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\214\001\n\027Deploymen" - + "tResourcesType\022)\n%DEPLOYMENT_RESOURCES_T" - + "YPE_UNSPECIFIED\020\000\022\027\n\023DEDICATED_RESOURCES" - + "\020\001\022\027\n\023AUTOMATIC_RESOURCES\020\002\022\024\n\020SHARED_RE" - + "SOURCES\020\003:\\\352AY\n\037aiplatform.googleapis.co" - + "m/Model\0226projects/{project}/locations/{l" - + "ocation}/models/{model}\"(\n\023LargeModelRef" - + "erence\022\021\n\004name\030\001 \001(\tB\003\340A\002\"3\n\021ModelGarden" - + "Source\022\036\n\021public_model_name\030\001 \001(\tB\003\340A\002\"*" - + "\n\013GenieSource\022\033\n\016base_model_uri\030\001 \001(\tB\003\340" - + "A\002\"{\n\017PredictSchemata\022 \n\023instance_schema" - + "_uri\030\001 \001(\tB\003\340A\005\022\"\n\025parameters_schema_uri" - + "\030\002 \001(\tB\003\340A\005\022\"\n\025prediction_schema_uri\030\003 \001" - + "(\tB\003\340A\005\"\254\004\n\022ModelContainerSpec\022\031\n\timage_" - + "uri\030\001 \001(\tB\006\340A\002\340A\005\022\024\n\007command\030\002 \003(\tB\003\340A\005\022" - + "\021\n\004args\030\003 \003(\tB\003\340A\005\0229\n\003env\030\004 \003(\0132\'.google" - + ".cloud.aiplatform.v1beta1.EnvVarB\003\340A\005\0229\n" - + "\005ports\030\005 \003(\0132%.google.cloud.aiplatform.v" - + "1beta1.PortB\003\340A\005\022\032\n\rpredict_route\030\006 \001(\tB" - + "\003\340A\005\022\031\n\014health_route\030\007 \001(\tB\003\340A\005\022>\n\ngrpc_" - + "ports\030\t \003(\0132%.google.cloud.aiplatform.v1" - + "beta1.PortB\003\340A\005\022:\n\022deployment_timeout\030\n " - + "\001(\0132\031.google.protobuf.DurationB\003\340A\005\022\"\n\025s" - + "hared_memory_size_mb\030\013 \001(\003B\003\340A\005\022B\n\rstart" - + "up_probe\030\014 \001(\0132&.google.cloud.aiplatform" - + ".v1beta1.ProbeB\003\340A\005\022A\n\014health_probe\030\r \001(" - + "\0132&.google.cloud.aiplatform.v1beta1.Prob" - + "eB\003\340A\005\"\036\n\004Port\022\026\n\016container_port\030\003 \001(\005\"\230" - + "\002\n\017ModelSourceInfo\022U\n\013source_type\030\001 \001(\0162" - + "@.google.cloud.aiplatform.v1beta1.ModelS" - + "ourceInfo.ModelSourceType\022\014\n\004copy\030\002 \001(\010\"" - + "\237\001\n\017ModelSourceType\022!\n\035MODEL_SOURCE_TYPE" - + "_UNSPECIFIED\020\000\022\n\n\006AUTOML\020\001\022\n\n\006CUSTOM\020\002\022\010" - + "\n\004BQML\020\003\022\020\n\014MODEL_GARDEN\020\004\022\t\n\005GENIE\020\005\022\031\n" - + "\025CUSTOM_TEXT_EMBEDDING\020\006\022\017\n\013MARKETPLACE\020" - + "\007\"\250\001\n\005Probe\022A\n\004exec\030\001 \001(\01321.google.cloud" - + ".aiplatform.v1beta1.Probe.ExecActionH\000\022\026" - + "\n\016period_seconds\030\002 \001(\005\022\027\n\017timeout_second" - + "s\030\003 \001(\005\032\035\n\nExecAction\022\017\n\007command\030\001 \003(\tB\014" - + "\n\nprobe_typeB\341\001\n#com.google.cloud.aiplat" - + "form.v1beta1B\nModelProtoP\001ZCcloud.google" - + ".com/go/aiplatform/apiv1beta1/aiplatform" - + "pb;aiplatformpb\252\002\037Google.Cloud.AIPlatfor" - + "m.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1be" - + "ta1\352\002\"Google::Cloud::AIPlatform::V1beta1" - + "b\006proto3" + + "(\t\022\035\n\025default_checkpoint_id\0305 \001(\t\022J\n\020pre" + + "dict_schemata\030\004 \001(\01320.google.cloud.aipla" + + "tform.v1beta1.PredictSchemata\022 \n\023metadat" + + "a_schema_uri\030\005 \001(\tB\003\340A\005\022-\n\010metadata\030\006 \001(" + + "\0132\026.google.protobuf.ValueB\003\340A\005\022Z\n\030suppor" + + "ted_export_formats\030\024 \003(\01323.google.cloud." + + "aiplatform.v1beta1.Model.ExportFormatB\003\340" + + "A\003\022M\n\021training_pipeline\030\007 \001(\tB2\340A\003\372A,\n*a" + + "iplatform.googleapis.com/TrainingPipelin" + + "e\022P\n\016container_spec\030\t \001(\01323.google.cloud" + + ".aiplatform.v1beta1.ModelContainerSpecB\003" + + "\340A\004\022\031\n\014artifact_uri\030\032 \001(\tB\003\340A\005\022q\n$suppor" + + "ted_deployment_resources_types\030\n \003(\0162>.g" + + "oogle.cloud.aiplatform.v1beta1.Model.Dep" + + "loymentResourcesTypeB\003\340A\003\022,\n\037supported_i" + + "nput_storage_formats\030\013 \003(\tB\003\340A\003\022-\n suppo" + + "rted_output_storage_formats\030\014 \003(\tB\003\340A\003\0224" + + "\n\013create_time\030\r \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\0224\n\013update_time\030\016 \001(\0132\032.goog" + + "le.protobuf.TimestampB\003\340A\003\022O\n\017deployed_m" + + "odels\030\017 \003(\01321.google.cloud.aiplatform.v1" + + "beta1.DeployedModelRefB\003\340A\003\022J\n\020explanati" + + "on_spec\030\027 \001(\01320.google.cloud.aiplatform." + + "v1beta1.ExplanationSpec\022\014\n\004etag\030\020 \001(\t\022B\n" + + "\006labels\030\021 \003(\01322.google.cloud.aiplatform." + + "v1beta1.Model.LabelsEntry\022H\n\017encryption_" + + "spec\030\030 \001(\0132/.google.cloud.aiplatform.v1b" + + "eta1.EncryptionSpec\022P\n\021model_source_info" + + "\030& \001(\01320.google.cloud.aiplatform.v1beta1" + + ".ModelSourceInfoB\003\340A\003\022Z\n\023original_model_" + + "info\030\" \001(\01328.google.cloud.aiplatform.v1b" + + "eta1.Model.OriginalModelInfoB\003\340A\003\022\036\n\021met" + + "adata_artifact\030, \001(\tB\003\340A\003\022V\n\021base_model_" + + "source\0302 \001(\01326.google.cloud.aiplatform.v" + + "1beta1.Model.BaseModelSourceB\003\340A\001\022\032\n\rsat" + + "isfies_pzs\0303 \001(\010B\003\340A\003\022\032\n\rsatisfies_pzi\0304" + + " \001(\010B\003\340A\003\032\332\001\n\014ExportFormat\022\017\n\002id\030\001 \001(\tB\003" + + "\340A\003\022g\n\023exportable_contents\030\002 \003(\0162E.googl" + + "e.cloud.aiplatform.v1beta1.Model.ExportF" + + "ormat.ExportableContentB\003\340A\003\"P\n\021Exportab" + + "leContent\022\"\n\036EXPORTABLE_CONTENT_UNSPECIF" + + "IED\020\000\022\014\n\010ARTIFACT\020\001\022\t\n\005IMAGE\020\002\032K\n\021Origin" + + "alModelInfo\0226\n\005model\030\001 \001(\tB\'\340A\003\372A!\n\037aipl" + + "atform.googleapis.com/Model\032\264\001\n\017BaseMode" + + "lSource\022Q\n\023model_garden_source\030\001 \001(\01322.g" + + "oogle.cloud.aiplatform.v1beta1.ModelGard" + + "enSourceH\000\022D\n\014genie_source\030\002 \001(\0132,.googl" + + "e.cloud.aiplatform.v1beta1.GenieSourceH\000" + + "B\010\n\006source\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\t:\0028\001\"\214\001\n\027DeploymentResource" + + "sType\022)\n%DEPLOYMENT_RESOURCES_TYPE_UNSPE" + + "CIFIED\020\000\022\027\n\023DEDICATED_RESOURCES\020\001\022\027\n\023AUT" + + "OMATIC_RESOURCES\020\002\022\024\n\020SHARED_RESOURCES\020\003" + + ":\\\352AY\n\037aiplatform.googleapis.com/Model\0226" + + "projects/{project}/locations/{location}/" + + "models/{model}\"(\n\023LargeModelReference\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\002\"3\n\021ModelGardenSource\022\036\n" + + "\021public_model_name\030\001 \001(\tB\003\340A\002\"*\n\013GenieSo" + + "urce\022\033\n\016base_model_uri\030\001 \001(\tB\003\340A\002\"{\n\017Pre" + + "dictSchemata\022 \n\023instance_schema_uri\030\001 \001(" + + "\tB\003\340A\005\022\"\n\025parameters_schema_uri\030\002 \001(\tB\003\340" + + "A\005\022\"\n\025prediction_schema_uri\030\003 \001(\tB\003\340A\005\"\254" + + "\004\n\022ModelContainerSpec\022\031\n\timage_uri\030\001 \001(\t" + + "B\006\340A\002\340A\005\022\024\n\007command\030\002 \003(\tB\003\340A\005\022\021\n\004args\030\003" + + " \003(\tB\003\340A\005\0229\n\003env\030\004 \003(\0132\'.google.cloud.ai" + + "platform.v1beta1.EnvVarB\003\340A\005\0229\n\005ports\030\005 " + + "\003(\0132%.google.cloud.aiplatform.v1beta1.Po" + + "rtB\003\340A\005\022\032\n\rpredict_route\030\006 \001(\tB\003\340A\005\022\031\n\014h" + + "ealth_route\030\007 \001(\tB\003\340A\005\022>\n\ngrpc_ports\030\t \003" + + "(\0132%.google.cloud.aiplatform.v1beta1.Por" + + "tB\003\340A\005\022:\n\022deployment_timeout\030\n \001(\0132\031.goo" + + "gle.protobuf.DurationB\003\340A\005\022\"\n\025shared_mem" + + "ory_size_mb\030\013 \001(\003B\003\340A\005\022B\n\rstartup_probe\030" + + "\014 \001(\0132&.google.cloud.aiplatform.v1beta1." + + "ProbeB\003\340A\005\022A\n\014health_probe\030\r \001(\0132&.googl" + + "e.cloud.aiplatform.v1beta1.ProbeB\003\340A\005\"\036\n" + + "\004Port\022\026\n\016container_port\030\003 \001(\005\"\230\002\n\017ModelS" + + "ourceInfo\022U\n\013source_type\030\001 \001(\0162@.google." + + "cloud.aiplatform.v1beta1.ModelSourceInfo" + + ".ModelSourceType\022\014\n\004copy\030\002 \001(\010\"\237\001\n\017Model" + + "SourceType\022!\n\035MODEL_SOURCE_TYPE_UNSPECIF" + + "IED\020\000\022\n\n\006AUTOML\020\001\022\n\n\006CUSTOM\020\002\022\010\n\004BQML\020\003\022" + + "\020\n\014MODEL_GARDEN\020\004\022\t\n\005GENIE\020\005\022\031\n\025CUSTOM_T" + + "EXT_EMBEDDING\020\006\022\017\n\013MARKETPLACE\020\007\"\250\001\n\005Pro" + + "be\022A\n\004exec\030\001 \001(\01321.google.cloud.aiplatfo" + + "rm.v1beta1.Probe.ExecActionH\000\022\026\n\016period_" + + "seconds\030\002 \001(\005\022\027\n\017timeout_seconds\030\003 \001(\005\032\035" + + "\n\nExecAction\022\017\n\007command\030\001 \003(\tB\014\n\nprobe_t" + + "ypeB\341\001\n#com.google.cloud.aiplatform.v1be" + + "ta1B\nModelProtoP\001ZCcloud.google.com/go/a" + + "iplatform/apiv1beta1/aiplatformpb;aiplat" + + "formpb\252\002\037Google.Cloud.AIPlatform.V1Beta1" + + "\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Goo" + + "gle::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -234,6 +234,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayName", "Description", "VersionDescription", + "DefaultCheckpointId", "PredictSchemata", "MetadataSchemaUri", "Metadata", diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceProto.java index 14809353325c..b020519f5ae4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceProto.java @@ -60,6 +60,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_ListModelVersionsResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_ListModelVersionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListModelVersionCheckpointsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListModelVersionCheckpointsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ModelVersionCheckpoint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ModelVersionCheckpoint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListModelVersionCheckpointsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListModelVersionCheckpointsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_UpdateModelRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -219,213 +231,228 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "er_by\030\006 \001(\t\"l\n\031ListModelVersionsResponse" + "\0226\n\006models\030\001 \003(\0132&.google.cloud.aiplatfo" + "rm.v1beta1.Model\022\027\n\017next_page_token\030\002 \001(" - + "\t\"\206\001\n\022UpdateModelRequest\022:\n\005model\030\001 \001(\0132" - + "&.google.cloud.aiplatform.v1beta1.ModelB" - + "\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.proto" - + "buf.FieldMaskB\003\340A\002\"\226\001\n\037UpdateExplanation" - + "DatasetRequest\0226\n\005model\030\001 \001(\tB\'\340A\002\372A!\n\037a" - + "iplatform.googleapis.com/Model\022;\n\010exampl" - + "es\030\002 \001(\0132).google.cloud.aiplatform.v1bet" - + "a1.Examples\"\200\001\n)UpdateExplanationDataset" - + "OperationMetadata\022S\n\020generic_metadata\030\001 " - + "\001(\01329.google.cloud.aiplatform.v1beta1.Ge" - + "nericOperationMetadata\"K\n\022DeleteModelReq" - + "uest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform.g" - + "oogleapis.com/Model\"R\n\031DeleteModelVersio" - + "nRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatfo" - + "rm.googleapis.com/Model\"q\n\032MergeVersionA" - + "liasesRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037aip" - + "latform.googleapis.com/Model\022\034\n\017version_" - + "aliases\030\002 \003(\tB\003\340A\002\"\375\002\n\022ExportModelReques" - + "t\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform.goog" - + "leapis.com/Model\022\\\n\routput_config\030\002 \001(\0132" - + "@.google.cloud.aiplatform.v1beta1.Export" - + "ModelRequest.OutputConfigB\003\340A\002\032\321\001\n\014Outpu" - + "tConfig\022\030\n\020export_format_id\030\001 \001(\t\022M\n\024art" - + "ifact_destination\030\003 \001(\0132/.google.cloud.a" - + "iplatform.v1beta1.GcsDestination\022X\n\021imag" - + "e_destination\030\004 \001(\0132=.google.cloud.aipla" - + "tform.v1beta1.ContainerRegistryDestinati" - + "on\"\246\002\n\034ExportModelOperationMetadata\022S\n\020g" - + "eneric_metadata\030\001 \001(\01329.google.cloud.aip" - + "latform.v1beta1.GenericOperationMetadata" - + "\022b\n\013output_info\030\002 \001(\0132H.google.cloud.aip" - + "latform.v1beta1.ExportModelOperationMeta" - + "data.OutputInfoB\003\340A\003\032M\n\nOutputInfo\022 \n\023ar" - + "tifact_output_uri\030\002 \001(\tB\003\340A\003\022\035\n\020image_ou" - + "tput_uri\030\003 \001(\tB\003\340A\003\"\"\n UpdateExplanation" - + "DatasetResponse\"\025\n\023ExportModelResponse\"\305" - + "\002\n\020CopyModelRequest\022\027\n\010model_id\030\004 \001(\tB\003\340" - + "A\001H\000\022?\n\014parent_model\030\005 \001(\tB\'\340A\001\372A!\n\037aipl" - + "atform.googleapis.com/ModelH\000\0229\n\006parent\030" - + "\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com/" - + "Location\022=\n\014source_model\030\002 \001(\tB\'\340A\002\372A!\n\037" - + "aiplatform.googleapis.com/Model\022H\n\017encry" - + "ption_spec\030\003 \001(\0132/.google.cloud.aiplatfo" - + "rm.v1beta1.EncryptionSpecB\023\n\021destination" - + "_model\"q\n\032CopyModelOperationMetadata\022S\n\020" - + "generic_metadata\030\001 \001(\01329.google.cloud.ai" - + "platform.v1beta1.GenericOperationMetadat" - + "a\"g\n\021CopyModelResponse\0223\n\005model\030\001 \001(\tB$\372" - + "A!\n\037aiplatform.googleapis.com/Model\022\035\n\020m" - + "odel_version_id\030\002 \001(\tB\003\340A\003\"\250\001\n\034ImportMod" - + "elEvaluationRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002" - + "\372A!\n\037aiplatform.googleapis.com/Model\022O\n\020" - + "model_evaluation\030\002 \001(\01320.google.cloud.ai" - + "platform.v1beta1.ModelEvaluationB\003\340A\002\"\311\001" - + "\n\'BatchImportModelEvaluationSlicesReques" - + "t\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\n)aiplatform.go" - + "ogleapis.com/ModelEvaluation\022[\n\027model_ev" - + "aluation_slices\030\002 \003(\01325.google.cloud.aip" - + "latform.v1beta1.ModelEvaluationSliceB\003\340A" - + "\002\"Y\n(BatchImportModelEvaluationSlicesRes" - + "ponse\022-\n imported_model_evaluation_slice" - + "s\030\001 \003(\tB\003\340A\003\"\312\001\n&BatchImportEvaluatedAnn" - + "otationsRequest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\n" - + ".aiplatform.googleapis.com/ModelEvaluati" - + "onSlice\022X\n\025evaluated_annotations\030\002 \003(\01324" - + ".google.cloud.aiplatform.v1beta1.Evaluat" - + "edAnnotationB\003\340A\002\"\\\n\'BatchImportEvaluate" - + "dAnnotationsResponse\0221\n$imported_evaluat" - + "ed_annotations_count\030\001 \001(\005B\003\340A\003\"\\\n\031GetMo" - + "delEvaluationRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372" - + "A+\n)aiplatform.googleapis.com/ModelEvalu" - + "ation\"\274\001\n\033ListModelEvaluationsRequest\0227\n" - + "\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform.google" - + "apis.com/Model\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_s" - + "ize\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022-\n\tread_ma" - + "sk\030\005 \001(\0132\032.google.protobuf.FieldMask\"\204\001\n" - + "\034ListModelEvaluationsResponse\022K\n\021model_e" - + "valuations\030\001 \003(\01320.google.cloud.aiplatfo" - + "rm.v1beta1.ModelEvaluation\022\027\n\017next_page_" - + "token\030\002 \001(\t\"f\n\036GetModelEvaluationSliceRe" - + "quest\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n.aiplatform." - + "googleapis.com/ModelEvaluationSlice\"\313\001\n " - + "ListModelEvaluationSlicesRequest\022A\n\006pare" - + "nt\030\001 \001(\tB1\340A\002\372A+\n)aiplatform.googleapis." - + "com/ModelEvaluation\022\016\n\006filter\030\002 \001(\t\022\021\n\tp" - + "age_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022-\n\tre" - + "ad_mask\030\005 \001(\0132\032.google.protobuf.FieldMas" - + "k\"\224\001\n!ListModelEvaluationSlicesResponse\022" - + "V\n\027model_evaluation_slices\030\001 \003(\01325.googl" - + "e.cloud.aiplatform.v1beta1.ModelEvaluati" - + "onSlice\022\027\n\017next_page_token\030\002 \001(\t2\215\"\n\014Mod" - + "elService\022\352\001\n\013UploadModel\0223.google.cloud" - + ".aiplatform.v1beta1.UploadModelRequest\032\035" - + ".google.longrunning.Operation\"\206\001\312A3\n\023Upl" - + "oadModelResponse\022\034UploadModelOperationMe" - + "tadata\332A\014parent,model\202\323\344\223\002;\"6/v1beta1/{p" - + "arent=projects/*/locations/*}/models:upl" - + "oad:\001*\022\244\001\n\010GetModel\0220.google.cloud.aipla" - + "tform.v1beta1.GetModelRequest\032&.google.c" - + "loud.aiplatform.v1beta1.Model\">\332A\004name\202\323" - + "\344\223\0021\022//v1beta1/{name=projects/*/location" - + "s/*/models/*}\022\267\001\n\nListModels\0222.google.cl" - + "oud.aiplatform.v1beta1.ListModelsRequest" - + "\0323.google.cloud.aiplatform.v1beta1.ListM" - + "odelsResponse\"@\332A\006parent\202\323\344\223\0021\022//v1beta1" - + "/{parent=projects/*/locations/*}/models\022" - + "\327\001\n\021ListModelVersions\0229.google.cloud.aip" - + "latform.v1beta1.ListModelVersionsRequest" - + "\032:.google.cloud.aiplatform.v1beta1.ListM" - + "odelVersionsResponse\"K\332A\004name\202\323\344\223\002>\02225/v1b" - + "eta1/{model.name=projects/*/locations/*/" - + "models/*}:\005model\022\252\002\n\030UpdateExplanationDa" - + "taset\022@.google.cloud.aiplatform.v1beta1." - + "UpdateExplanationDatasetRequest\032\035.google" - + ".longrunning.Operation\"\254\001\312AM\n UpdateExpl" - + "anationDatasetResponse\022)UpdateExplanatio" - + "nDatasetOperationMetadata\332A\005model\202\323\344\223\002N\"" - + "I/v1beta1/{model=projects/*/locations/*/" - + "models/*}:updateExplanationDataset:\001*\022\324\001" - + "\n\013DeleteModel\0223.google.cloud.aiplatform." - + "v1beta1.DeleteModelRequest\032\035.google.long" - + "running.Operation\"q\312A0\n\025google.protobuf." - + "Empty\022\027DeleteOperationMetadata\332A\004name\202\323\344" - + "\223\0021*//v1beta1/{name=projects/*/locations" - + "/*/models/*}\022\360\001\n\022DeleteModelVersion\022:.go" - + "ogle.cloud.aiplatform.v1beta1.DeleteMode" - + "lVersionRequest\032\035.google.longrunning.Ope" - + "ration\"\177\312A0\n\025google.protobuf.Empty\022\027Dele" - + "teOperationMetadata\332A\004name\202\323\344\223\002?*=/v1bet" - + "a1/{name=projects/*/locations/*/models/*" - + "}:deleteVersion\022\341\001\n\023MergeVersionAliases\022" - + ";.google.cloud.aiplatform.v1beta1.MergeV" - + "ersionAliasesRequest\032&.google.cloud.aipl" - + "atform.v1beta1.Model\"e\332A\024name,version_al" - + "iases\202\323\344\223\002H\"C/v1beta1/{name=projects/*/l" - + "ocations/*/models/*}:mergeVersionAliases" - + ":\001*\022\360\001\n\013ExportModel\0223.google.cloud.aipla" - + "tform.v1beta1.ExportModelRequest\032\035.googl" - + "e.longrunning.Operation\"\214\001\312A3\n\023ExportMod" - + "elResponse\022\034ExportModelOperationMetadata" - + "\332A\022name,output_config\202\323\344\223\002;\"6/v1beta1/{n" - + "ame=projects/*/locations/*/models/*}:exp" - + "ort:\001*\022\347\001\n\tCopyModel\0221.google.cloud.aipl" - + "atform.v1beta1.CopyModelRequest\032\035.google" - + ".longrunning.Operation\"\207\001\312A/\n\021CopyModelR" - + "esponse\022\032CopyModelOperationMetadata\332A\023pa" - + "rent,source_model\202\323\344\223\0029\"4/v1beta1/{paren" - + "t=projects/*/locations/*}/models:copy:\001*" - + "\022\363\001\n\025ImportModelEvaluation\022=.google.clou" - + "d.aiplatform.v1beta1.ImportModelEvaluati" + + "\t\"\214\001\n\"ListModelVersionCheckpointsRequest" + + "\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform.googl" + + "eapis.com/Model\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022" + + "\027\n\npage_token\030\003 \001(\tB\003\340A\001\"L\n\026ModelVersion" + + "Checkpoint\022\025\n\rcheckpoint_id\030\001 \001(\t\022\r\n\005epo" + + "ch\030\002 \001(\003\022\014\n\004step\030\003 \001(\003\"\214\001\n#ListModelVers" + + "ionCheckpointsResponse\022L\n\013checkpoints\030\001 " + + "\003(\01327.google.cloud.aiplatform.v1beta1.Mo" + + "delVersionCheckpoint\022\027\n\017next_page_token\030" + + "\002 \001(\t\"\206\001\n\022UpdateModelRequest\022:\n\005model\030\001 " + + "\001(\0132&.google.cloud.aiplatform.v1beta1.Mo" + + "delB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.p" + + "rotobuf.FieldMaskB\003\340A\002\"\226\001\n\037UpdateExplana" + + "tionDatasetRequest\0226\n\005model\030\001 \001(\tB\'\340A\002\372A" + + "!\n\037aiplatform.googleapis.com/Model\022;\n\010ex" + + "amples\030\002 \001(\0132).google.cloud.aiplatform.v" + + "1beta1.Examples\"\200\001\n)UpdateExplanationDat" + + "asetOperationMetadata\022S\n\020generic_metadat" + + "a\030\001 \001(\01329.google.cloud.aiplatform.v1beta" + + "1.GenericOperationMetadata\"K\n\022DeleteMode" + + "lRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatfo" + + "rm.googleapis.com/Model\"R\n\031DeleteModelVe" + + "rsionRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037aipl" + + "atform.googleapis.com/Model\"q\n\032MergeVers" + + "ionAliasesRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n" + + "\037aiplatform.googleapis.com/Model\022\034\n\017vers" + + "ion_aliases\030\002 \003(\tB\003\340A\002\"\375\002\n\022ExportModelRe" + + "quest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform." + + "googleapis.com/Model\022\\\n\routput_config\030\002 " + + "\001(\0132@.google.cloud.aiplatform.v1beta1.Ex" + + "portModelRequest.OutputConfigB\003\340A\002\032\321\001\n\014O" + + "utputConfig\022\030\n\020export_format_id\030\001 \001(\t\022M\n" + + "\024artifact_destination\030\003 \001(\0132/.google.clo" + + "ud.aiplatform.v1beta1.GcsDestination\022X\n\021" + + "image_destination\030\004 \001(\0132=.google.cloud.a" + + "iplatform.v1beta1.ContainerRegistryDesti" + + "nation\"\246\002\n\034ExportModelOperationMetadata\022" + + "S\n\020generic_metadata\030\001 \001(\01329.google.cloud" + + ".aiplatform.v1beta1.GenericOperationMeta" + + "data\022b\n\013output_info\030\002 \001(\0132H.google.cloud" + + ".aiplatform.v1beta1.ExportModelOperation" + + "Metadata.OutputInfoB\003\340A\003\032M\n\nOutputInfo\022 " + + "\n\023artifact_output_uri\030\002 \001(\tB\003\340A\003\022\035\n\020imag" + + "e_output_uri\030\003 \001(\tB\003\340A\003\"\"\n UpdateExplana" + + "tionDatasetResponse\"\025\n\023ExportModelRespon" + + "se\"\305\002\n\020CopyModelRequest\022\027\n\010model_id\030\004 \001(" + + "\tB\003\340A\001H\000\022?\n\014parent_model\030\005 \001(\tB\'\340A\001\372A!\n\037" + + "aiplatform.googleapis.com/ModelH\000\0229\n\006par" + + "ent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis." + + "com/Location\022=\n\014source_model\030\002 \001(\tB\'\340A\002\372" + + "A!\n\037aiplatform.googleapis.com/Model\022H\n\017e" + + "ncryption_spec\030\003 \001(\0132/.google.cloud.aipl" + + "atform.v1beta1.EncryptionSpecB\023\n\021destina" + + "tion_model\"q\n\032CopyModelOperationMetadata" + + "\022S\n\020generic_metadata\030\001 \001(\01329.google.clou" + + "d.aiplatform.v1beta1.GenericOperationMet" + + "adata\"g\n\021CopyModelResponse\0223\n\005model\030\001 \001(" + + "\tB$\372A!\n\037aiplatform.googleapis.com/Model\022" + + "\035\n\020model_version_id\030\002 \001(\tB\003\340A\003\"\250\001\n\034Impor" + + "tModelEvaluationRequest\0227\n\006parent\030\001 \001(\tB" + + "\'\340A\002\372A!\n\037aiplatform.googleapis.com/Model" + + "\022O\n\020model_evaluation\030\002 \001(\01320.google.clou" + + "d.aiplatform.v1beta1.ModelEvaluationB\003\340A" + + "\002\"\311\001\n\'BatchImportModelEvaluationSlicesRe" + + "quest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\n)aiplatfor" + + "m.googleapis.com/ModelEvaluation\022[\n\027mode" + + "l_evaluation_slices\030\002 \003(\01325.google.cloud" + + ".aiplatform.v1beta1.ModelEvaluationSlice" + + "B\003\340A\002\"Y\n(BatchImportModelEvaluationSlice" + + "sResponse\022-\n imported_model_evaluation_s" + + "lices\030\001 \003(\tB\003\340A\003\"\312\001\n&BatchImportEvaluate" + + "dAnnotationsRequest\022F\n\006parent\030\001 \001(\tB6\340A\002" + + "\372A0\n.aiplatform.googleapis.com/ModelEval" + + "uationSlice\022X\n\025evaluated_annotations\030\002 \003" + + "(\01324.google.cloud.aiplatform.v1beta1.Eva" + + "luatedAnnotationB\003\340A\002\"\\\n\'BatchImportEval" + + "uatedAnnotationsResponse\0221\n$imported_eva" + + "luated_annotations_count\030\001 \001(\005B\003\340A\003\"\\\n\031G" + + "etModelEvaluationRequest\022?\n\004name\030\001 \001(\tB1" + + "\340A\002\372A+\n)aiplatform.googleapis.com/ModelE" + + "valuation\"\274\001\n\033ListModelEvaluationsReques" + + "t\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform.go" + + "ogleapis.com/Model\022\016\n\006filter\030\002 \001(\t\022\021\n\tpa" + + "ge_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022-\n\trea" + + "d_mask\030\005 \001(\0132\032.google.protobuf.FieldMask" + + "\"\204\001\n\034ListModelEvaluationsResponse\022K\n\021mod" + + "el_evaluations\030\001 \003(\01320.google.cloud.aipl" + + "atform.v1beta1.ModelEvaluation\022\027\n\017next_p" + + "age_token\030\002 \001(\t\"f\n\036GetModelEvaluationSli" + + "ceRequest\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n.aiplatf" + + "orm.googleapis.com/ModelEvaluationSlice\"" + + "\313\001\n ListModelEvaluationSlicesRequest\022A\n\006" + + "parent\030\001 \001(\tB1\340A\002\372A+\n)aiplatform.googlea" + + "pis.com/ModelEvaluation\022\016\n\006filter\030\002 \001(\t\022" + + "\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022-" + + "\n\tread_mask\030\005 \001(\0132\032.google.protobuf.Fiel" + + "dMask\"\224\001\n!ListModelEvaluationSlicesRespo" + + "nse\022V\n\027model_evaluation_slices\030\001 \003(\01325.g" + + "oogle.cloud.aiplatform.v1beta1.ModelEval" + + "uationSlice\022\027\n\017next_page_token\030\002 \001(\t2\210$\n" + + "\014ModelService\022\352\001\n\013UploadModel\0223.google.c" + + "loud.aiplatform.v1beta1.UploadModelReque" + + "st\032\035.google.longrunning.Operation\"\206\001\312A3\n" + + "\023UploadModelResponse\022\034UploadModelOperati" + + "onMetadata\332A\014parent,model\202\323\344\223\002;\"6/v1beta" + + "1/{parent=projects/*/locations/*}/models" + + ":upload:\001*\022\244\001\n\010GetModel\0220.google.cloud.a" + + "iplatform.v1beta1.GetModelRequest\032&.goog" + + "le.cloud.aiplatform.v1beta1.Model\">\332A\004na" + + "me\202\323\344\223\0021\022//v1beta1/{name=projects/*/loca" + + "tions/*/models/*}\022\267\001\n\nListModels\0222.googl" + + "e.cloud.aiplatform.v1beta1.ListModelsReq" + + "uest\0323.google.cloud.aiplatform.v1beta1.L" + + "istModelsResponse\"@\332A\006parent\202\323\344\223\0021\022//v1b" + + "eta1/{parent=projects/*/locations/*}/mod" + + "els\022\327\001\n\021ListModelVersions\0229.google.cloud" + + ".aiplatform.v1beta1.ListModelVersionsReq" + + "uest\032:.google.cloud.aiplatform.v1beta1.L" + + "istModelVersionsResponse\"K\332A\004name\202\323\344\223\002>\022" + + "25/v1beta1/{model.name=projects" + + "/*/locations/*/models/*}:\005model\022\252\002\n\030Upda" + + "teExplanationDataset\022@.google.cloud.aipl" + + "atform.v1beta1.UpdateExplanationDatasetR" + + "equest\032\035.google.longrunning.Operation\"\254\001" + + "\312AM\n UpdateExplanationDatasetResponse\022)U" + + "pdateExplanationDatasetOperationMetadata" + + "\332A\005model\202\323\344\223\002N\"I/v1beta1/{model=projects" + + "/*/locations/*/models/*}:updateExplanati" + + "onDataset:\001*\022\324\001\n\013DeleteModel\0223.google.cl" + + "oud.aiplatform.v1beta1.DeleteModelReques" + + "t\032\035.google.longrunning.Operation\"q\312A0\n\025g" + + "oogle.protobuf.Empty\022\027DeleteOperationMet" + + "adata\332A\004name\202\323\344\223\0021*//v1beta1/{name=proje" + + "cts/*/locations/*/models/*}\022\360\001\n\022DeleteMo" + + "delVersion\022:.google.cloud.aiplatform.v1b" + + "eta1.DeleteModelVersionRequest\032\035.google." + + "longrunning.Operation\"\177\312A0\n\025google.proto" + + "buf.Empty\022\027DeleteOperationMetadata\332A\004nam" + + "e\202\323\344\223\002?*=/v1beta1/{name=projects/*/locat" + + "ions/*/models/*}:deleteVersion\022\341\001\n\023Merge" + + "VersionAliases\022;.google.cloud.aiplatform" + + ".v1beta1.MergeVersionAliasesRequest\032&.go" + + "ogle.cloud.aiplatform.v1beta1.Model\"e\332A\024" + + "name,version_aliases\202\323\344\223\002H\"C/v1beta1/{na" + + "me=projects/*/locations/*/models/*}:merg" + + "eVersionAliases:\001*\022\360\001\n\013ExportModel\0223.goo" + + "gle.cloud.aiplatform.v1beta1.ExportModel" + + "Request\032\035.google.longrunning.Operation\"\214" + + "\001\312A3\n\023ExportModelResponse\022\034ExportModelOp" + + "erationMetadata\332A\022name,output_config\202\323\344\223" + + "\002;\"6/v1beta1/{name=projects/*/locations/" + + "*/models/*}:export:\001*\022\347\001\n\tCopyModel\0221.go" + + "ogle.cloud.aiplatform.v1beta1.CopyModelR" + + "equest\032\035.google.longrunning.Operation\"\207\001" + + "\312A/\n\021CopyModelResponse\022\032CopyModelOperati" + + "onMetadata\332A\023parent,source_model\202\323\344\223\0029\"4" + + "/v1beta1/{parent=projects/*/locations/*}" + + "/models:copy:\001*\022\363\001\n\025ImportModelEvaluatio" + + "n\022=.google.cloud.aiplatform.v1beta1.Impo" + + "rtModelEvaluationRequest\0320.google.cloud." + + "aiplatform.v1beta1.ModelEvaluation\"i\332A\027p" + + "arent,model_evaluation\202\323\344\223\002I\"D/v1beta1/{" + + "parent=projects/*/locations/*/models/*}/" + + "evaluations:import:\001*\022\267\002\n BatchImportMod" + + "elEvaluationSlices\022H.google.cloud.aiplat" + + "form.v1beta1.BatchImportModelEvaluationS" + + "licesRequest\032I.google.cloud.aiplatform.v" + + "1beta1.BatchImportModelEvaluationSlicesR" + + "esponse\"~\332A\036parent,model_evaluation_slic" + + "es\202\323\344\223\002W\"R/v1beta1/{parent=projects/*/lo" + + "cations/*/models/*/evaluations/*}/slices" + + ":batchImport:\001*\022\264\002\n\037BatchImportEvaluated" + + "Annotations\022G.google.cloud.aiplatform.v1" + + "beta1.BatchImportEvaluatedAnnotationsReq" + + "uest\032H.google.cloud.aiplatform.v1beta1.B" + + "atchImportEvaluatedAnnotationsResponse\"~" + + "\332A\034parent,evaluated_annotations\202\323\344\223\002Y\"T/" + + "v1beta1/{parent=projects/*/locations/*/m" + + "odels/*/evaluations/*/slices/*}:batchImp" + + "ort:\001*\022\320\001\n\022GetModelEvaluation\022:.google.c" + + "loud.aiplatform.v1beta1.GetModelEvaluati" + "onRequest\0320.google.cloud.aiplatform.v1be" - + "ta1.ModelEvaluation\"i\332A\027parent,model_eva" - + "luation\202\323\344\223\002I\"D/v1beta1/{parent=projects" - + "/*/locations/*/models/*}/evaluations:imp" - + "ort:\001*\022\267\002\n BatchImportModelEvaluationSli" - + "ces\022H.google.cloud.aiplatform.v1beta1.Ba" - + "tchImportModelEvaluationSlicesRequest\032I." - + "google.cloud.aiplatform.v1beta1.BatchImp" - + "ortModelEvaluationSlicesResponse\"~\332A\036par" - + "ent,model_evaluation_slices\202\323\344\223\002W\"R/v1be" - + "ta1/{parent=projects/*/locations/*/model" - + "s/*/evaluations/*}/slices:batchImport:\001*" - + "\022\264\002\n\037BatchImportEvaluatedAnnotations\022G.g" - + "oogle.cloud.aiplatform.v1beta1.BatchImpo" - + "rtEvaluatedAnnotationsRequest\032H.google.c" - + "loud.aiplatform.v1beta1.BatchImportEvalu" - + "atedAnnotationsResponse\"~\332A\034parent,evalu" - + "ated_annotations\202\323\344\223\002Y\"T/v1beta1/{parent" - + "=projects/*/locations/*/models/*/evaluat" - + "ions/*/slices/*}:batchImport:\001*\022\320\001\n\022GetM" - + "odelEvaluation\022:.google.cloud.aiplatform" - + ".v1beta1.GetModelEvaluationRequest\0320.goo" - + "gle.cloud.aiplatform.v1beta1.ModelEvalua" - + "tion\"L\332A\004name\202\323\344\223\002?\022=/v1beta1/{name=proj" - + "ects/*/locations/*/models/*/evaluations/" - + "*}\022\343\001\n\024ListModelEvaluations\022<.google.clo" - + "ud.aiplatform.v1beta1.ListModelEvaluatio" - + "nsRequest\032=.google.cloud.aiplatform.v1be" - + "ta1.ListModelEvaluationsResponse\"N\332A\006par" - + "ent\202\323\344\223\002?\022=/v1beta1/{parent=projects/*/l" - + "ocations/*/models/*}/evaluations\022\350\001\n\027Get" - + "ModelEvaluationSlice\022?.google.cloud.aipl" - + "atform.v1beta1.GetModelEvaluationSliceRe" - + "quest\0325.google.cloud.aiplatform.v1beta1." - + "ModelEvaluationSlice\"U\332A\004name\202\323\344\223\002H\022F/v1" - + "beta1/{name=projects/*/locations/*/model" - + "s/*/evaluations/*/slices/*}\022\373\001\n\031ListMode" - + "lEvaluationSlices\022A.google.cloud.aiplatf" - + "orm.v1beta1.ListModelEvaluationSlicesReq" - + "uest\032B.google.cloud.aiplatform.v1beta1.L" - + "istModelEvaluationSlicesResponse\"W\332A\006par" - + "ent\202\323\344\223\002H\022F/v1beta1/{parent=projects/*/l" - + "ocations/*/models/*/evaluations/*}/slice" - + "s\032M\312A\031aiplatform.googleapis.com\322A.https:" - + "//www.googleapis.com/auth/cloud-platform" - + "B\350\001\n#com.google.cloud.aiplatform.v1beta1" - + "B\021ModelServiceProtoP\001ZCcloud.google.com/" - + "go/aiplatform/apiv1beta1/aiplatformpb;ai" - + "platformpb\252\002\037Google.Cloud.AIPlatform.V1B" - + "eta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002" - + "\"Google::Cloud::AIPlatform::V1beta1b\006pro" - + "to3" + + "ta1.ModelEvaluation\"L\332A\004name\202\323\344\223\002?\022=/v1b" + + "eta1/{name=projects/*/locations/*/models" + + "/*/evaluations/*}\022\343\001\n\024ListModelEvaluatio" + + "ns\022<.google.cloud.aiplatform.v1beta1.Lis" + + "tModelEvaluationsRequest\032=.google.cloud." + + "aiplatform.v1beta1.ListModelEvaluationsR" + + "esponse\"N\332A\006parent\202\323\344\223\002?\022=/v1beta1/{pare" + + "nt=projects/*/locations/*/models/*}/eval" + + "uations\022\350\001\n\027GetModelEvaluationSlice\022?.go" + + "ogle.cloud.aiplatform.v1beta1.GetModelEv" + + "aluationSliceRequest\0325.google.cloud.aipl" + + "atform.v1beta1.ModelEvaluationSlice\"U\332A\004" + + "name\202\323\344\223\002H\022F/v1beta1/{name=projects/*/lo" + + "cations/*/models/*/evaluations/*/slices/" + + "*}\022\373\001\n\031ListModelEvaluationSlices\022A.googl" + + "e.cloud.aiplatform.v1beta1.ListModelEval" + + "uationSlicesRequest\032B.google.cloud.aipla" + + "tform.v1beta1.ListModelEvaluationSlicesR" + + "esponse\"W\332A\006parent\202\323\344\223\002H\022F/v1beta1/{pare" + + "nt=projects/*/locations/*/models/*/evalu" + + "ations/*}/slices\032M\312A\031aiplatform.googleap" + + "is.com\322A.https://www.googleapis.com/auth" + + "/cloud-platformB\350\001\n#com.google.cloud.aip" + + "latform.v1beta1B\021ModelServiceProtoP\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( @@ -511,8 +538,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Models", "NextPageToken", }); - internal_static_google_cloud_aiplatform_v1beta1_UpdateModelRequest_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_ListModelVersionCheckpointsRequest_descriptor = getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_aiplatform_v1beta1_ListModelVersionCheckpointsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListModelVersionCheckpointsRequest_descriptor, + new java.lang.String[] { + "Name", "PageSize", "PageToken", + }); + internal_static_google_cloud_aiplatform_v1beta1_ModelVersionCheckpoint_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_aiplatform_v1beta1_ModelVersionCheckpoint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ModelVersionCheckpoint_descriptor, + new java.lang.String[] { + "CheckpointId", "Epoch", "Step", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListModelVersionCheckpointsResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_aiplatform_v1beta1_ListModelVersionCheckpointsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListModelVersionCheckpointsResponse_descriptor, + new java.lang.String[] { + "Checkpoints", "NextPageToken", + }); + internal_static_google_cloud_aiplatform_v1beta1_UpdateModelRequest_descriptor = + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_aiplatform_v1beta1_UpdateModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_UpdateModelRequest_descriptor, @@ -520,7 +571,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Model", "UpdateMask", }); internal_static_google_cloud_aiplatform_v1beta1_UpdateExplanationDatasetRequest_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_aiplatform_v1beta1_UpdateExplanationDatasetRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_UpdateExplanationDatasetRequest_descriptor, @@ -528,7 +579,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Model", "Examples", }); internal_static_google_cloud_aiplatform_v1beta1_UpdateExplanationDatasetOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_aiplatform_v1beta1_UpdateExplanationDatasetOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_UpdateExplanationDatasetOperationMetadata_descriptor, @@ -536,7 +587,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GenericMetadata", }); internal_static_google_cloud_aiplatform_v1beta1_DeleteModelRequest_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_aiplatform_v1beta1_DeleteModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_DeleteModelRequest_descriptor, @@ -544,7 +595,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_aiplatform_v1beta1_DeleteModelVersionRequest_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_aiplatform_v1beta1_DeleteModelVersionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_DeleteModelVersionRequest_descriptor, @@ -552,7 +603,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_aiplatform_v1beta1_MergeVersionAliasesRequest_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_aiplatform_v1beta1_MergeVersionAliasesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_MergeVersionAliasesRequest_descriptor, @@ -560,7 +611,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "VersionAliases", }); internal_static_google_cloud_aiplatform_v1beta1_ExportModelRequest_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_aiplatform_v1beta1_ExportModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ExportModelRequest_descriptor, @@ -578,7 +629,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExportFormatId", "ArtifactDestination", "ImageDestination", }); internal_static_google_cloud_aiplatform_v1beta1_ExportModelOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_aiplatform_v1beta1_ExportModelOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ExportModelOperationMetadata_descriptor, @@ -596,19 +647,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ArtifactOutputUri", "ImageOutputUri", }); internal_static_google_cloud_aiplatform_v1beta1_UpdateExplanationDatasetResponse_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_aiplatform_v1beta1_UpdateExplanationDatasetResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_UpdateExplanationDatasetResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_aiplatform_v1beta1_ExportModelResponse_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_aiplatform_v1beta1_ExportModelResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ExportModelResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_aiplatform_v1beta1_CopyModelRequest_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_aiplatform_v1beta1_CopyModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_CopyModelRequest_descriptor, @@ -621,7 +672,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DestinationModel", }); internal_static_google_cloud_aiplatform_v1beta1_CopyModelOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_aiplatform_v1beta1_CopyModelOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_CopyModelOperationMetadata_descriptor, @@ -629,7 +680,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GenericMetadata", }); internal_static_google_cloud_aiplatform_v1beta1_CopyModelResponse_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_aiplatform_v1beta1_CopyModelResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_CopyModelResponse_descriptor, @@ -637,7 +688,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Model", "ModelVersionId", }); internal_static_google_cloud_aiplatform_v1beta1_ImportModelEvaluationRequest_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_aiplatform_v1beta1_ImportModelEvaluationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ImportModelEvaluationRequest_descriptor, @@ -645,7 +696,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "ModelEvaluation", }); internal_static_google_cloud_aiplatform_v1beta1_BatchImportModelEvaluationSlicesRequest_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_aiplatform_v1beta1_BatchImportModelEvaluationSlicesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_BatchImportModelEvaluationSlicesRequest_descriptor, @@ -653,7 +704,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "ModelEvaluationSlices", }); internal_static_google_cloud_aiplatform_v1beta1_BatchImportModelEvaluationSlicesResponse_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_aiplatform_v1beta1_BatchImportModelEvaluationSlicesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_BatchImportModelEvaluationSlicesResponse_descriptor, @@ -661,7 +712,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ImportedModelEvaluationSlices", }); internal_static_google_cloud_aiplatform_v1beta1_BatchImportEvaluatedAnnotationsRequest_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_aiplatform_v1beta1_BatchImportEvaluatedAnnotationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_BatchImportEvaluatedAnnotationsRequest_descriptor, @@ -669,7 +720,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "EvaluatedAnnotations", }); internal_static_google_cloud_aiplatform_v1beta1_BatchImportEvaluatedAnnotationsResponse_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_aiplatform_v1beta1_BatchImportEvaluatedAnnotationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_BatchImportEvaluatedAnnotationsResponse_descriptor, @@ -677,7 +728,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ImportedEvaluatedAnnotationsCount", }); internal_static_google_cloud_aiplatform_v1beta1_GetModelEvaluationRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_aiplatform_v1beta1_GetModelEvaluationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_GetModelEvaluationRequest_descriptor, @@ -685,7 +736,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_aiplatform_v1beta1_ListModelEvaluationsRequest_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_aiplatform_v1beta1_ListModelEvaluationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ListModelEvaluationsRequest_descriptor, @@ -693,7 +744,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "PageSize", "PageToken", "ReadMask", }); internal_static_google_cloud_aiplatform_v1beta1_ListModelEvaluationsResponse_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_aiplatform_v1beta1_ListModelEvaluationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ListModelEvaluationsResponse_descriptor, @@ -701,7 +752,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ModelEvaluations", "NextPageToken", }); internal_static_google_cloud_aiplatform_v1beta1_GetModelEvaluationSliceRequest_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_aiplatform_v1beta1_GetModelEvaluationSliceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_GetModelEvaluationSliceRequest_descriptor, @@ -709,7 +760,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_aiplatform_v1beta1_ListModelEvaluationSlicesRequest_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_aiplatform_v1beta1_ListModelEvaluationSlicesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ListModelEvaluationSlicesRequest_descriptor, @@ -717,7 +768,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "PageSize", "PageToken", "ReadMask", }); internal_static_google_cloud_aiplatform_v1beta1_ListModelEvaluationSlicesResponse_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(34); internal_static_google_cloud_aiplatform_v1beta1_ListModelEvaluationSlicesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ListModelEvaluationSlicesResponse_descriptor, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelVersionCheckpoint.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelVersionCheckpoint.java new file mode 100644 index 000000000000..e36c00f0573d --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelVersionCheckpoint.java @@ -0,0 +1,814 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * A proto representation of a Spanner-stored ModelVersionCheckpoint.
+ * The meaning of the fields is equivalent to their in-Spanner counterparts.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint} + */ +public final class ModelVersionCheckpoint extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint) + ModelVersionCheckpointOrBuilder { + private static final long serialVersionUID = 0L; + // Use ModelVersionCheckpoint.newBuilder() to construct. + private ModelVersionCheckpoint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ModelVersionCheckpoint() { + checkpointId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ModelVersionCheckpoint(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelVersionCheckpoint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelVersionCheckpoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint.class, + com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint.Builder.class); + } + + public static final int CHECKPOINT_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object checkpointId_ = ""; + /** + * + * + *
+   * The ID of the checkpoint.
+   * 
+ * + * string checkpoint_id = 1; + * + * @return The checkpointId. + */ + @java.lang.Override + public java.lang.String getCheckpointId() { + java.lang.Object ref = checkpointId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + checkpointId_ = s; + return s; + } + } + /** + * + * + *
+   * The ID of the checkpoint.
+   * 
+ * + * string checkpoint_id = 1; + * + * @return The bytes for checkpointId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCheckpointIdBytes() { + java.lang.Object ref = checkpointId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + checkpointId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EPOCH_FIELD_NUMBER = 2; + private long epoch_ = 0L; + /** + * + * + *
+   * The epoch of the checkpoint.
+   * 
+ * + * int64 epoch = 2; + * + * @return The epoch. + */ + @java.lang.Override + public long getEpoch() { + return epoch_; + } + + public static final int STEP_FIELD_NUMBER = 3; + private long step_ = 0L; + /** + * + * + *
+   * The step of the checkpoint.
+   * 
+ * + * int64 step = 3; + * + * @return The step. + */ + @java.lang.Override + public long getStep() { + return step_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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(checkpointId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, checkpointId_); + } + if (epoch_ != 0L) { + output.writeInt64(2, epoch_); + } + if (step_ != 0L) { + output.writeInt64(3, step_); + } + 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(checkpointId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, checkpointId_); + } + if (epoch_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, epoch_); + } + if (step_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, step_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.ModelVersionCheckpoint)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint other = + (com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint) obj; + + if (!getCheckpointId().equals(other.getCheckpointId())) return false; + if (getEpoch() != other.getEpoch()) return false; + if (getStep() != other.getStep()) return false; + if (!getUnknownFields().equals(other.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) + CHECKPOINT_ID_FIELD_NUMBER; + hash = (53 * hash) + getCheckpointId().hashCode(); + hash = (37 * hash) + EPOCH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEpoch()); + hash = (37 * hash) + STEP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getStep()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint parseFrom( + 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.ModelVersionCheckpoint parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint parseFrom( + com.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.ModelVersionCheckpoint parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint 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.ModelVersionCheckpoint parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint parseFrom( + java.io.InputStream 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.ModelVersionCheckpoint parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint parseDelimitedFrom( + java.io.InputStream 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.ModelVersionCheckpoint 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.ModelVersionCheckpoint parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.ModelVersionCheckpoint prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 proto representation of a Spanner-stored ModelVersionCheckpoint.
+   * The meaning of the fields is equivalent to their in-Spanner counterparts.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint) + com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpointOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelVersionCheckpoint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelVersionCheckpoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint.class, + com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + checkpointId_ = ""; + epoch_ = 0L; + step_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ModelServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelVersionCheckpoint_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint build() { + com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint buildPartial() { + com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint result = + new com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.checkpointId_ = checkpointId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.epoch_ = epoch_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.step_ = step_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.ModelVersionCheckpoint) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint other) { + if (other == com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint.getDefaultInstance()) + return this; + if (!other.getCheckpointId().isEmpty()) { + checkpointId_ = other.checkpointId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getEpoch() != 0L) { + setEpoch(other.getEpoch()); + } + if (other.getStep() != 0L) { + setStep(other.getStep()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + checkpointId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + epoch_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + step_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object checkpointId_ = ""; + /** + * + * + *
+     * The ID of the checkpoint.
+     * 
+ * + * string checkpoint_id = 1; + * + * @return The checkpointId. + */ + public java.lang.String getCheckpointId() { + java.lang.Object ref = checkpointId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + checkpointId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The ID of the checkpoint.
+     * 
+ * + * string checkpoint_id = 1; + * + * @return The bytes for checkpointId. + */ + public com.google.protobuf.ByteString getCheckpointIdBytes() { + java.lang.Object ref = checkpointId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + checkpointId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The ID of the checkpoint.
+     * 
+ * + * string checkpoint_id = 1; + * + * @param value The checkpointId to set. + * @return This builder for chaining. + */ + public Builder setCheckpointId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + checkpointId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The ID of the checkpoint.
+     * 
+ * + * string checkpoint_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearCheckpointId() { + checkpointId_ = getDefaultInstance().getCheckpointId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The ID of the checkpoint.
+     * 
+ * + * string checkpoint_id = 1; + * + * @param value The bytes for checkpointId to set. + * @return This builder for chaining. + */ + public Builder setCheckpointIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + checkpointId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private long epoch_; + /** + * + * + *
+     * The epoch of the checkpoint.
+     * 
+ * + * int64 epoch = 2; + * + * @return The epoch. + */ + @java.lang.Override + public long getEpoch() { + return epoch_; + } + /** + * + * + *
+     * The epoch of the checkpoint.
+     * 
+ * + * int64 epoch = 2; + * + * @param value The epoch to set. + * @return This builder for chaining. + */ + public Builder setEpoch(long value) { + + epoch_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The epoch of the checkpoint.
+     * 
+ * + * int64 epoch = 2; + * + * @return This builder for chaining. + */ + public Builder clearEpoch() { + bitField0_ = (bitField0_ & ~0x00000002); + epoch_ = 0L; + onChanged(); + return this; + } + + private long step_; + /** + * + * + *
+     * The step of the checkpoint.
+     * 
+ * + * int64 step = 3; + * + * @return The step. + */ + @java.lang.Override + public long getStep() { + return step_; + } + /** + * + * + *
+     * The step of the checkpoint.
+     * 
+ * + * int64 step = 3; + * + * @param value The step to set. + * @return This builder for chaining. + */ + public Builder setStep(long value) { + + step_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The step of the checkpoint.
+     * 
+ * + * int64 step = 3; + * + * @return This builder for chaining. + */ + public Builder clearStep() { + bitField0_ = (bitField0_ & ~0x00000004); + step_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint) + private static final com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint(); + } + + public static com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModelVersionCheckpoint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.ModelVersionCheckpoint getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelVersionCheckpointOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelVersionCheckpointOrBuilder.java new file mode 100644 index 000000000000..2d0d053f21be --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelVersionCheckpointOrBuilder.java @@ -0,0 +1,77 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface ModelVersionCheckpointOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The ID of the checkpoint.
+   * 
+ * + * string checkpoint_id = 1; + * + * @return The checkpointId. + */ + java.lang.String getCheckpointId(); + /** + * + * + *
+   * The ID of the checkpoint.
+   * 
+ * + * string checkpoint_id = 1; + * + * @return The bytes for checkpointId. + */ + com.google.protobuf.ByteString getCheckpointIdBytes(); + + /** + * + * + *
+   * The epoch of the checkpoint.
+   * 
+ * + * int64 epoch = 2; + * + * @return The epoch. + */ + long getEpoch(); + + /** + * + * + *
+   * The step of the checkpoint.
+   * 
+ * + * int64 step = 3; + * + * @return The step. + */ + long getStep(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookRuntime.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookRuntime.java index 5d201c84c827..15ce2eefb5db 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookRuntime.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookRuntime.java @@ -987,7 +987,15 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
-   * Output only. The service account that the NotebookRuntime workload runs as.
+   * Output only. Deprecated: This field is no longer used and the "Vertex AI
+   * Notebook Service Account"
+   * (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is
+   * used for the runtime workload identity.
+   * See
+   * https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account
+   * for more details.
+   *
+   * The service account that the NotebookRuntime workload runs as.
    * 
* * string service_account = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1010,7 +1018,15 @@ public java.lang.String getServiceAccount() { * * *
-   * Output only. The service account that the NotebookRuntime workload runs as.
+   * Output only. Deprecated: This field is no longer used and the "Vertex AI
+   * Notebook Service Account"
+   * (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is
+   * used for the runtime workload identity.
+   * See
+   * https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account
+   * for more details.
+   *
+   * The service account that the NotebookRuntime workload runs as.
    * 
* * string service_account = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1419,6 +1435,184 @@ public com.google.cloud.aiplatform.v1beta1.NotebookRuntimeType getNotebookRuntim : result; } + public static final int MACHINE_SPEC_FIELD_NUMBER = 20; + private com.google.cloud.aiplatform.v1beta1.MachineSpec machineSpec_; + /** + * + * + *
+   * Output only. The specification of a single machine used by the notebook
+   * runtime.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the machineSpec field is set. + */ + @java.lang.Override + public boolean hasMachineSpec() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+   * Output only. The specification of a single machine used by the notebook
+   * runtime.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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_; + } + /** + * + * + *
+   * Output only. The specification of a single machine used by the notebook
+   * runtime.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @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 DATA_PERSISTENT_DISK_SPEC_FIELD_NUMBER = 21; + private com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec dataPersistentDiskSpec_; + /** + * + * + *
+   * Output only. The specification of [persistent
+   * disk][https://cloud.google.com/compute/docs/disks/persistent-disks]
+   * attached to the notebook runtime as data disk storage.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec data_persistent_disk_spec = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dataPersistentDiskSpec field is set. + */ + @java.lang.Override + public boolean hasDataPersistentDiskSpec() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+   * Output only. The specification of [persistent
+   * disk][https://cloud.google.com/compute/docs/disks/persistent-disks]
+   * attached to the notebook runtime as data disk storage.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec data_persistent_disk_spec = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataPersistentDiskSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec getDataPersistentDiskSpec() { + return dataPersistentDiskSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec.getDefaultInstance() + : dataPersistentDiskSpec_; + } + /** + * + * + *
+   * Output only. The specification of [persistent
+   * disk][https://cloud.google.com/compute/docs/disks/persistent-disks]
+   * attached to the notebook runtime as data disk storage.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec data_persistent_disk_spec = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PersistentDiskSpecOrBuilder + getDataPersistentDiskSpecOrBuilder() { + return dataPersistentDiskSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec.getDefaultInstance() + : dataPersistentDiskSpec_; + } + + public static final int NETWORK_SPEC_FIELD_NUMBER = 22; + private com.google.cloud.aiplatform.v1beta1.NetworkSpec networkSpec_; + /** + * + * + *
+   * Output only. Network spec of the notebook runtime.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the networkSpec field is set. + */ + @java.lang.Override + public boolean hasNetworkSpec() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
+   * Output only. Network spec of the notebook runtime.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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_; + } + /** + * + * + *
+   * Output only. Network spec of the notebook runtime.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NetworkSpecOrBuilder getNetworkSpecOrBuilder() { + return networkSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.NetworkSpec.getDefaultInstance() + : networkSpec_; + } + public static final int IDLE_SHUTDOWN_CONFIG_FIELD_NUMBER = 23; private com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig idleShutdownConfig_; /** @@ -1436,7 +1630,7 @@ public com.google.cloud.aiplatform.v1beta1.NotebookRuntimeType getNotebookRuntim */ @java.lang.Override public boolean hasIdleShutdownConfig() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -1476,6 +1670,119 @@ public com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig getIdleShu : idleShutdownConfig_; } + public static final int EUC_CONFIG_FIELD_NUMBER = 24; + private com.google.cloud.aiplatform.v1beta1.NotebookEucConfig eucConfig_; + /** + * + * + *
+   * Output only. EUC configuration of the notebook runtime.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookEucConfig euc_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the eucConfig field is set. + */ + @java.lang.Override + public boolean hasEucConfig() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * + * + *
+   * Output only. EUC configuration of the notebook runtime.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookEucConfig euc_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The eucConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NotebookEucConfig getEucConfig() { + return eucConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.NotebookEucConfig.getDefaultInstance() + : eucConfig_; + } + /** + * + * + *
+   * Output only. EUC configuration of the notebook runtime.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookEucConfig euc_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.NotebookEucConfigOrBuilder getEucConfigOrBuilder() { + return eucConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.NotebookEucConfig.getDefaultInstance() + : eucConfig_; + } + + public static final int SHIELDED_VM_CONFIG_FIELD_NUMBER = 32; + private com.google.cloud.aiplatform.v1beta1.ShieldedVmConfig shieldedVmConfig_; + /** + * + * + *
+   * Output only. Runtime Shielded VM spec.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ShieldedVmConfig shielded_vm_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the shieldedVmConfig field is set. + */ + @java.lang.Override + public boolean hasShieldedVmConfig() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * + * + *
+   * Output only. Runtime Shielded VM spec.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ShieldedVmConfig shielded_vm_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The shieldedVmConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ShieldedVmConfig getShieldedVmConfig() { + return shieldedVmConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ShieldedVmConfig.getDefaultInstance() + : shieldedVmConfig_; + } + /** + * + * + *
+   * Output only. Runtime Shielded VM spec.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ShieldedVmConfig shielded_vm_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ShieldedVmConfigOrBuilder + getShieldedVmConfigOrBuilder() { + return shieldedVmConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ShieldedVmConfig.getDefaultInstance() + : shieldedVmConfig_; + } + public static final int NETWORK_TAGS_FIELD_NUMBER = 25; @SuppressWarnings("serial") @@ -1561,7 +1868,7 @@ public com.google.protobuf.ByteString getNetworkTagsBytes(int index) { */ @java.lang.Override public boolean hasEncryptionSpec() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -1705,12 +2012,24 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeEnum(19, notebookRuntimeType_); } if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(20, getMachineSpec()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(21, getDataPersistentDiskSpec()); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(22, getNetworkSpec()); + } + if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(23, getIdleShutdownConfig()); } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(24, getEucConfig()); + } for (int i = 0; i < networkTags_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 25, networkTags_.getRaw(i)); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { output.writeMessage(28, getEncryptionSpec()); } if (satisfiesPzs_ != false) { @@ -1719,6 +2038,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (satisfiesPzi_ != false) { output.writeBool(30, satisfiesPzi_); } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeMessage(32, getShieldedVmConfig()); + } getUnknownFields().writeTo(output); } @@ -1793,8 +2115,21 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeEnumSize(19, notebookRuntimeType_); } if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getMachineSpec()); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(21, getDataPersistentDiskSpec()); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getNetworkSpec()); + } + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getIdleShutdownConfig()); } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getEucConfig()); + } { int dataSize = 0; for (int i = 0; i < networkTags_.size(); i++) { @@ -1803,7 +2138,7 @@ public int getSerializedSize() { size += dataSize; size += 2 * getNetworkTagsList().size(); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getEncryptionSpec()); } if (satisfiesPzs_ != false) { @@ -1812,6 +2147,9 @@ public int getSerializedSize() { if (satisfiesPzi_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(30, satisfiesPzi_); } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(32, getShieldedVmConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1857,10 +2195,30 @@ public boolean equals(final java.lang.Object obj) { } if (!getVersion().equals(other.getVersion())) return false; if (notebookRuntimeType_ != other.notebookRuntimeType_) return false; + if (hasMachineSpec() != other.hasMachineSpec()) return false; + if (hasMachineSpec()) { + if (!getMachineSpec().equals(other.getMachineSpec())) return false; + } + if (hasDataPersistentDiskSpec() != other.hasDataPersistentDiskSpec()) return false; + if (hasDataPersistentDiskSpec()) { + if (!getDataPersistentDiskSpec().equals(other.getDataPersistentDiskSpec())) return false; + } + if (hasNetworkSpec() != other.hasNetworkSpec()) return false; + if (hasNetworkSpec()) { + if (!getNetworkSpec().equals(other.getNetworkSpec())) return false; + } if (hasIdleShutdownConfig() != other.hasIdleShutdownConfig()) return false; if (hasIdleShutdownConfig()) { if (!getIdleShutdownConfig().equals(other.getIdleShutdownConfig())) return false; } + if (hasEucConfig() != other.hasEucConfig()) return false; + if (hasEucConfig()) { + if (!getEucConfig().equals(other.getEucConfig())) return false; + } + if (hasShieldedVmConfig() != other.hasShieldedVmConfig()) return false; + if (hasShieldedVmConfig()) { + if (!getShieldedVmConfig().equals(other.getShieldedVmConfig())) return false; + } if (!getNetworkTagsList().equals(other.getNetworkTagsList())) return false; if (hasEncryptionSpec() != other.hasEncryptionSpec()) return false; if (hasEncryptionSpec()) { @@ -1921,10 +2279,30 @@ public int hashCode() { hash = (53 * hash) + getVersion().hashCode(); hash = (37 * hash) + NOTEBOOK_RUNTIME_TYPE_FIELD_NUMBER; hash = (53 * hash) + notebookRuntimeType_; + if (hasMachineSpec()) { + hash = (37 * hash) + MACHINE_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getMachineSpec().hashCode(); + } + if (hasDataPersistentDiskSpec()) { + hash = (37 * hash) + DATA_PERSISTENT_DISK_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getDataPersistentDiskSpec().hashCode(); + } + if (hasNetworkSpec()) { + hash = (37 * hash) + NETWORK_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getNetworkSpec().hashCode(); + } if (hasIdleShutdownConfig()) { hash = (37 * hash) + IDLE_SHUTDOWN_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getIdleShutdownConfig().hashCode(); } + if (hasEucConfig()) { + hash = (37 * hash) + EUC_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getEucConfig().hashCode(); + } + if (hasShieldedVmConfig()) { + hash = (37 * hash) + SHIELDED_VM_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getShieldedVmConfig().hashCode(); + } if (getNetworkTagsCount() > 0) { hash = (37 * hash) + NETWORK_TAGS_FIELD_NUMBER; hash = (53 * hash) + getNetworkTagsList().hashCode(); @@ -2105,7 +2483,12 @@ private void maybeForceBuilderInitialization() { getCreateTimeFieldBuilder(); getUpdateTimeFieldBuilder(); getExpirationTimeFieldBuilder(); + getMachineSpecFieldBuilder(); + getDataPersistentDiskSpecFieldBuilder(); + getNetworkSpecFieldBuilder(); getIdleShutdownConfigFieldBuilder(); + getEucConfigFieldBuilder(); + getShieldedVmConfigFieldBuilder(); getEncryptionSpecFieldBuilder(); } } @@ -2146,11 +2529,36 @@ public Builder clear() { } version_ = ""; notebookRuntimeType_ = 0; + machineSpec_ = null; + if (machineSpecBuilder_ != null) { + machineSpecBuilder_.dispose(); + machineSpecBuilder_ = null; + } + dataPersistentDiskSpec_ = null; + if (dataPersistentDiskSpecBuilder_ != null) { + dataPersistentDiskSpecBuilder_.dispose(); + dataPersistentDiskSpecBuilder_ = null; + } + networkSpec_ = null; + if (networkSpecBuilder_ != null) { + networkSpecBuilder_.dispose(); + networkSpecBuilder_ = null; + } idleShutdownConfig_ = null; if (idleShutdownConfigBuilder_ != null) { idleShutdownConfigBuilder_.dispose(); idleShutdownConfigBuilder_ = null; } + eucConfig_ = null; + if (eucConfigBuilder_ != null) { + eucConfigBuilder_.dispose(); + eucConfigBuilder_ = null; + } + shieldedVmConfig_ = null; + if (shieldedVmConfigBuilder_ != null) { + shieldedVmConfigBuilder_.dispose(); + shieldedVmConfigBuilder_ = null; + } networkTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); encryptionSpec_ = null; if (encryptionSpecBuilder_ != null) { @@ -2254,25 +2662,51 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.NotebookRuntime r result.notebookRuntimeType_ = notebookRuntimeType_; } if (((from_bitField0_ & 0x00010000) != 0)) { + result.machineSpec_ = + machineSpecBuilder_ == null ? machineSpec_ : machineSpecBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.dataPersistentDiskSpec_ = + dataPersistentDiskSpecBuilder_ == null + ? dataPersistentDiskSpec_ + : dataPersistentDiskSpecBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.networkSpec_ = + networkSpecBuilder_ == null ? networkSpec_ : networkSpecBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00080000) != 0)) { result.idleShutdownConfig_ = idleShutdownConfigBuilder_ == null ? idleShutdownConfig_ : idleShutdownConfigBuilder_.build(); - to_bitField0_ |= 0x00000010; + to_bitField0_ |= 0x00000080; } - if (((from_bitField0_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00100000) != 0)) { + result.eucConfig_ = eucConfigBuilder_ == null ? eucConfig_ : eucConfigBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.shieldedVmConfig_ = + shieldedVmConfigBuilder_ == null ? shieldedVmConfig_ : shieldedVmConfigBuilder_.build(); + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00400000) != 0)) { networkTags_.makeImmutable(); result.networkTags_ = networkTags_; } - if (((from_bitField0_ & 0x00040000) != 0)) { + if (((from_bitField0_ & 0x00800000) != 0)) { result.encryptionSpec_ = encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); - to_bitField0_ |= 0x00000020; + to_bitField0_ |= 0x00000400; } - if (((from_bitField0_ & 0x00080000) != 0)) { + if (((from_bitField0_ & 0x01000000) != 0)) { result.satisfiesPzs_ = satisfiesPzs_; } - if (((from_bitField0_ & 0x00100000) != 0)) { + if (((from_bitField0_ & 0x02000000) != 0)) { result.satisfiesPzi_ = satisfiesPzi_; } result.bitField0_ |= to_bitField0_; @@ -2385,13 +2819,28 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.NotebookRuntime oth if (other.notebookRuntimeType_ != 0) { setNotebookRuntimeTypeValue(other.getNotebookRuntimeTypeValue()); } + if (other.hasMachineSpec()) { + mergeMachineSpec(other.getMachineSpec()); + } + if (other.hasDataPersistentDiskSpec()) { + mergeDataPersistentDiskSpec(other.getDataPersistentDiskSpec()); + } + if (other.hasNetworkSpec()) { + mergeNetworkSpec(other.getNetworkSpec()); + } if (other.hasIdleShutdownConfig()) { mergeIdleShutdownConfig(other.getIdleShutdownConfig()); } + if (other.hasEucConfig()) { + mergeEucConfig(other.getEucConfig()); + } + if (other.hasShieldedVmConfig()) { + mergeShieldedVmConfig(other.getShieldedVmConfig()); + } if (!other.networkTags_.isEmpty()) { if (networkTags_.isEmpty()) { networkTags_ = other.networkTags_; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00400000; } else { ensureNetworkTagsIsMutable(); networkTags_.addAll(other.networkTags_); @@ -2536,13 +2985,38 @@ public Builder mergeFrom( bitField0_ |= 0x00008000; break; } // case 152 + case 162: + { + input.readMessage(getMachineSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 162 + case 170: + { + input.readMessage( + getDataPersistentDiskSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 170 + case 178: + { + input.readMessage(getNetworkSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00040000; + break; + } // case 178 case 186: { input.readMessage( getIdleShutdownConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00080000; break; } // case 186 + case 194: + { + input.readMessage(getEucConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00100000; + break; + } // case 194 case 202: { java.lang.String s = input.readStringRequireUtf8(); @@ -2553,21 +3027,28 @@ public Builder mergeFrom( case 226: { input.readMessage(getEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00800000; break; } // case 226 case 232: { satisfiesPzs_ = input.readBool(); - bitField0_ |= 0x00080000; + bitField0_ |= 0x01000000; break; } // case 232 case 240: { satisfiesPzi_ = input.readBool(); - bitField0_ |= 0x00100000; + bitField0_ |= 0x02000000; break; } // case 240 + case 258: + { + input.readMessage( + getShieldedVmConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00200000; + break; + } // case 258 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3862,7 +4343,15 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. The service account that the NotebookRuntime workload runs as.
+     * Output only. Deprecated: This field is no longer used and the "Vertex AI
+     * Notebook Service Account"
+     * (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is
+     * used for the runtime workload identity.
+     * See
+     * https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account
+     * for more details.
+     *
+     * The service account that the NotebookRuntime workload runs as.
      * 
* * string service_account = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3884,7 +4373,15 @@ public java.lang.String getServiceAccount() { * * *
-     * Output only. The service account that the NotebookRuntime workload runs as.
+     * Output only. Deprecated: This field is no longer used and the "Vertex AI
+     * Notebook Service Account"
+     * (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is
+     * used for the runtime workload identity.
+     * See
+     * https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account
+     * for more details.
+     *
+     * The service account that the NotebookRuntime workload runs as.
      * 
* * string service_account = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3906,7 +4403,15 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { * * *
-     * Output only. The service account that the NotebookRuntime workload runs as.
+     * Output only. Deprecated: This field is no longer used and the "Vertex AI
+     * Notebook Service Account"
+     * (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is
+     * used for the runtime workload identity.
+     * See
+     * https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account
+     * for more details.
+     *
+     * The service account that the NotebookRuntime workload runs as.
      * 
* * string service_account = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3927,7 +4432,15 @@ public Builder setServiceAccount(java.lang.String value) { * * *
-     * Output only. The service account that the NotebookRuntime workload runs as.
+     * Output only. Deprecated: This field is no longer used and the "Vertex AI
+     * Notebook Service Account"
+     * (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is
+     * used for the runtime workload identity.
+     * See
+     * https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account
+     * for more details.
+     *
+     * The service account that the NotebookRuntime workload runs as.
      * 
* * string service_account = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3944,7 +4457,15 @@ public Builder clearServiceAccount() { * * *
-     * Output only. The service account that the NotebookRuntime workload runs as.
+     * Output only. Deprecated: This field is no longer used and the "Vertex AI
+     * Notebook Service Account"
+     * (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is
+     * used for the runtime workload identity.
+     * See
+     * https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account
+     * for more details.
+     *
+     * The service account that the NotebookRuntime workload runs as.
      * 
* * string service_account = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4849,70 +5370,72 @@ public Builder clearNotebookRuntimeType() { return this; } - private com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig idleShutdownConfig_; + private com.google.cloud.aiplatform.v1beta1.MachineSpec machineSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig, - com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig.Builder, - com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfigOrBuilder> - idleShutdownConfigBuilder_; + com.google.cloud.aiplatform.v1beta1.MachineSpec, + com.google.cloud.aiplatform.v1beta1.MachineSpec.Builder, + com.google.cloud.aiplatform.v1beta1.MachineSpecOrBuilder> + machineSpecBuilder_; /** * * *
-     * Output only. The idle shutdown configuration of the notebook runtime.
+     * Output only. The specification of a single machine used by the notebook
+     * runtime.
      * 
* * - * .google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig idle_shutdown_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return Whether the idleShutdownConfig field is set. + * @return Whether the machineSpec field is set. */ - public boolean hasIdleShutdownConfig() { + public boolean hasMachineSpec() { return ((bitField0_ & 0x00010000) != 0); } /** * * *
-     * Output only. The idle shutdown configuration of the notebook runtime.
+     * Output only. The specification of a single machine used by the notebook
+     * runtime.
      * 
* * - * .google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig idle_shutdown_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The idleShutdownConfig. + * @return The machineSpec. */ - public com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig getIdleShutdownConfig() { - if (idleShutdownConfigBuilder_ == null) { - return idleShutdownConfig_ == null - ? com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig.getDefaultInstance() - : idleShutdownConfig_; + public com.google.cloud.aiplatform.v1beta1.MachineSpec getMachineSpec() { + if (machineSpecBuilder_ == null) { + return machineSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.MachineSpec.getDefaultInstance() + : machineSpec_; } else { - return idleShutdownConfigBuilder_.getMessage(); + return machineSpecBuilder_.getMessage(); } } /** * * *
-     * Output only. The idle shutdown configuration of the notebook runtime.
+     * Output only. The specification of a single machine used by the notebook
+     * runtime.
      * 
* * - * .google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig idle_shutdown_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setIdleShutdownConfig( - com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig value) { - if (idleShutdownConfigBuilder_ == null) { + public Builder setMachineSpec(com.google.cloud.aiplatform.v1beta1.MachineSpec value) { + if (machineSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - idleShutdownConfig_ = value; + machineSpec_ = value; } else { - idleShutdownConfigBuilder_.setMessage(value); + machineSpecBuilder_.setMessage(value); } bitField0_ |= 0x00010000; onChanged(); @@ -4922,19 +5445,20 @@ public Builder setIdleShutdownConfig( * * *
-     * Output only. The idle shutdown configuration of the notebook runtime.
+     * Output only. The specification of a single machine used by the notebook
+     * runtime.
      * 
* * - * .google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig idle_shutdown_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setIdleShutdownConfig( - com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig.Builder builderForValue) { - if (idleShutdownConfigBuilder_ == null) { - idleShutdownConfig_ = builderForValue.build(); + public Builder setMachineSpec( + com.google.cloud.aiplatform.v1beta1.MachineSpec.Builder builderForValue) { + if (machineSpecBuilder_ == null) { + machineSpec_ = builderForValue.build(); } else { - idleShutdownConfigBuilder_.setMessage(builderForValue.build()); + machineSpecBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00010000; onChanged(); @@ -4944,29 +5468,28 @@ public Builder setIdleShutdownConfig( * * *
-     * Output only. The idle shutdown configuration of the notebook runtime.
+     * Output only. The specification of a single machine used by the notebook
+     * runtime.
      * 
* * - * .google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig idle_shutdown_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeIdleShutdownConfig( - com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig value) { - if (idleShutdownConfigBuilder_ == null) { + public Builder mergeMachineSpec(com.google.cloud.aiplatform.v1beta1.MachineSpec value) { + if (machineSpecBuilder_ == null) { if (((bitField0_ & 0x00010000) != 0) - && idleShutdownConfig_ != null - && idleShutdownConfig_ - != com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig - .getDefaultInstance()) { - getIdleShutdownConfigBuilder().mergeFrom(value); + && machineSpec_ != null + && machineSpec_ + != com.google.cloud.aiplatform.v1beta1.MachineSpec.getDefaultInstance()) { + getMachineSpecBuilder().mergeFrom(value); } else { - idleShutdownConfig_ = value; + machineSpec_ = value; } } else { - idleShutdownConfigBuilder_.mergeFrom(value); + machineSpecBuilder_.mergeFrom(value); } - if (idleShutdownConfig_ != null) { + if (machineSpec_ != null) { bitField0_ |= 0x00010000; onChanged(); } @@ -4976,19 +5499,20 @@ public Builder mergeIdleShutdownConfig( * * *
-     * Output only. The idle shutdown configuration of the notebook runtime.
+     * Output only. The specification of a single machine used by the notebook
+     * runtime.
      * 
* * - * .google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig idle_shutdown_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearIdleShutdownConfig() { + public Builder clearMachineSpec() { bitField0_ = (bitField0_ & ~0x00010000); - idleShutdownConfig_ = null; - if (idleShutdownConfigBuilder_ != null) { - idleShutdownConfigBuilder_.dispose(); - idleShutdownConfigBuilder_ = null; + machineSpec_ = null; + if (machineSpecBuilder_ != null) { + machineSpecBuilder_.dispose(); + machineSpecBuilder_ = null; } onChanged(); return this; @@ -4997,184 +5521,221 @@ public Builder clearIdleShutdownConfig() { * * *
-     * Output only. The idle shutdown configuration of the notebook runtime.
+     * Output only. The specification of a single machine used by the notebook
+     * runtime.
      * 
* * - * .google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig idle_shutdown_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig.Builder - getIdleShutdownConfigBuilder() { + public com.google.cloud.aiplatform.v1beta1.MachineSpec.Builder getMachineSpecBuilder() { bitField0_ |= 0x00010000; onChanged(); - return getIdleShutdownConfigFieldBuilder().getBuilder(); + return getMachineSpecFieldBuilder().getBuilder(); } /** * * *
-     * Output only. The idle shutdown configuration of the notebook runtime.
+     * Output only. The specification of a single machine used by the notebook
+     * runtime.
      * 
* * - * .google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig idle_shutdown_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfigOrBuilder - getIdleShutdownConfigOrBuilder() { - if (idleShutdownConfigBuilder_ != null) { - return idleShutdownConfigBuilder_.getMessageOrBuilder(); + public com.google.cloud.aiplatform.v1beta1.MachineSpecOrBuilder getMachineSpecOrBuilder() { + if (machineSpecBuilder_ != null) { + return machineSpecBuilder_.getMessageOrBuilder(); } else { - return idleShutdownConfig_ == null - ? com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig.getDefaultInstance() - : idleShutdownConfig_; + return machineSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.MachineSpec.getDefaultInstance() + : machineSpec_; } } /** * * *
-     * Output only. The idle shutdown configuration of the notebook runtime.
+     * Output only. The specification of a single machine used by the notebook
+     * runtime.
      * 
* * - * .google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig idle_shutdown_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig, - com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig.Builder, - com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfigOrBuilder> - getIdleShutdownConfigFieldBuilder() { - if (idleShutdownConfigBuilder_ == null) { - idleShutdownConfigBuilder_ = + 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.NotebookIdleShutdownConfig, - com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig.Builder, - com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfigOrBuilder>( - getIdleShutdownConfig(), getParentForChildren(), isClean()); - idleShutdownConfig_ = null; + 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 idleShutdownConfigBuilder_; + return machineSpecBuilder_; } - private com.google.protobuf.LazyStringArrayList networkTags_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureNetworkTagsIsMutable() { - if (!networkTags_.isModifiable()) { - networkTags_ = new com.google.protobuf.LazyStringArrayList(networkTags_); - } - bitField0_ |= 0x00020000; - } + private com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec dataPersistentDiskSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec, + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec.Builder, + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpecOrBuilder> + dataPersistentDiskSpecBuilder_; /** * * *
-     * Optional. The Compute Engine tags to add to runtime (see [Tagging
-     * instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).
+     * Output only. The specification of [persistent
+     * disk][https://cloud.google.com/compute/docs/disks/persistent-disks]
+     * attached to the notebook runtime as data disk storage.
      * 
* - * repeated string network_tags = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec data_persistent_disk_spec = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return A list containing the networkTags. + * @return Whether the dataPersistentDiskSpec field is set. */ - public com.google.protobuf.ProtocolStringList getNetworkTagsList() { - networkTags_.makeImmutable(); - return networkTags_; + public boolean hasDataPersistentDiskSpec() { + return ((bitField0_ & 0x00020000) != 0); } /** * * *
-     * Optional. The Compute Engine tags to add to runtime (see [Tagging
-     * instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).
+     * Output only. The specification of [persistent
+     * disk][https://cloud.google.com/compute/docs/disks/persistent-disks]
+     * attached to the notebook runtime as data disk storage.
      * 
* - * repeated string network_tags = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec data_persistent_disk_spec = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The count of networkTags. + * @return The dataPersistentDiskSpec. */ - public int getNetworkTagsCount() { - return networkTags_.size(); + public com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec getDataPersistentDiskSpec() { + if (dataPersistentDiskSpecBuilder_ == null) { + return dataPersistentDiskSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec.getDefaultInstance() + : dataPersistentDiskSpec_; + } else { + return dataPersistentDiskSpecBuilder_.getMessage(); + } } /** * * *
-     * Optional. The Compute Engine tags to add to runtime (see [Tagging
-     * instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).
+     * Output only. The specification of [persistent
+     * disk][https://cloud.google.com/compute/docs/disks/persistent-disks]
+     * attached to the notebook runtime as data disk storage.
      * 
* - * repeated string network_tags = 25 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The networkTags at the given index. + * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec data_persistent_disk_spec = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.lang.String getNetworkTags(int index) { - return networkTags_.get(index); + public Builder setDataPersistentDiskSpec( + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec value) { + if (dataPersistentDiskSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataPersistentDiskSpec_ = value; + } else { + dataPersistentDiskSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; } /** * * *
-     * Optional. The Compute Engine tags to add to runtime (see [Tagging
-     * instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).
+     * Output only. The specification of [persistent
+     * disk][https://cloud.google.com/compute/docs/disks/persistent-disks]
+     * attached to the notebook runtime as data disk storage.
      * 
* - * repeated string network_tags = 25 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the networkTags at the given index. + * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec data_persistent_disk_spec = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.protobuf.ByteString getNetworkTagsBytes(int index) { - return networkTags_.getByteString(index); + public Builder setDataPersistentDiskSpec( + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec.Builder builderForValue) { + if (dataPersistentDiskSpecBuilder_ == null) { + dataPersistentDiskSpec_ = builderForValue.build(); + } else { + dataPersistentDiskSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; } /** * * *
-     * Optional. The Compute Engine tags to add to runtime (see [Tagging
-     * instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).
+     * Output only. The specification of [persistent
+     * disk][https://cloud.google.com/compute/docs/disks/persistent-disks]
+     * attached to the notebook runtime as data disk storage.
      * 
* - * repeated string network_tags = 25 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The networkTags to set. - * @return This builder for chaining. + * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec data_persistent_disk_spec = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setNetworkTags(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder mergeDataPersistentDiskSpec( + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec value) { + if (dataPersistentDiskSpecBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0) + && dataPersistentDiskSpec_ != null + && dataPersistentDiskSpec_ + != com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec.getDefaultInstance()) { + getDataPersistentDiskSpecBuilder().mergeFrom(value); + } else { + dataPersistentDiskSpec_ = value; + } + } else { + dataPersistentDiskSpecBuilder_.mergeFrom(value); + } + if (dataPersistentDiskSpec_ != null) { + bitField0_ |= 0x00020000; + onChanged(); } - ensureNetworkTagsIsMutable(); - networkTags_.set(index, value); - bitField0_ |= 0x00020000; - onChanged(); return this; } /** * * *
-     * Optional. The Compute Engine tags to add to runtime (see [Tagging
-     * instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).
+     * Output only. The specification of [persistent
+     * disk][https://cloud.google.com/compute/docs/disks/persistent-disks]
+     * attached to the notebook runtime as data disk storage.
      * 
* - * repeated string network_tags = 25 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The networkTags to add. - * @return This builder for chaining. + * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec data_persistent_disk_spec = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addNetworkTags(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearDataPersistentDiskSpec() { + bitField0_ = (bitField0_ & ~0x00020000); + dataPersistentDiskSpec_ = null; + if (dataPersistentDiskSpecBuilder_ != null) { + dataPersistentDiskSpecBuilder_.dispose(); + dataPersistentDiskSpecBuilder_ = null; } - ensureNetworkTagsIsMutable(); - networkTags_.add(value); - bitField0_ |= 0x00020000; onChanged(); return this; } @@ -5182,129 +5743,137 @@ public Builder addNetworkTags(java.lang.String value) { * * *
-     * Optional. The Compute Engine tags to add to runtime (see [Tagging
-     * instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).
+     * Output only. The specification of [persistent
+     * disk][https://cloud.google.com/compute/docs/disks/persistent-disks]
+     * attached to the notebook runtime as data disk storage.
      * 
* - * repeated string network_tags = 25 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The networkTags to add. - * @return This builder for chaining. + * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec data_persistent_disk_spec = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addAllNetworkTags(java.lang.Iterable values) { - ensureNetworkTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networkTags_); + public com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec.Builder + getDataPersistentDiskSpecBuilder() { bitField0_ |= 0x00020000; onChanged(); - return this; + return getDataPersistentDiskSpecFieldBuilder().getBuilder(); } /** * * *
-     * Optional. The Compute Engine tags to add to runtime (see [Tagging
-     * instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).
+     * Output only. The specification of [persistent
+     * disk][https://cloud.google.com/compute/docs/disks/persistent-disks]
+     * attached to the notebook runtime as data disk storage.
      * 
* - * repeated string network_tags = 25 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. + * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec data_persistent_disk_spec = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearNetworkTags() { - networkTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00020000); - ; - onChanged(); - return this; + public com.google.cloud.aiplatform.v1beta1.PersistentDiskSpecOrBuilder + getDataPersistentDiskSpecOrBuilder() { + if (dataPersistentDiskSpecBuilder_ != null) { + return dataPersistentDiskSpecBuilder_.getMessageOrBuilder(); + } else { + return dataPersistentDiskSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec.getDefaultInstance() + : dataPersistentDiskSpec_; + } } /** * * *
-     * Optional. The Compute Engine tags to add to runtime (see [Tagging
-     * instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).
+     * Output only. The specification of [persistent
+     * disk][https://cloud.google.com/compute/docs/disks/persistent-disks]
+     * attached to the notebook runtime as data disk storage.
      * 
* - * repeated string network_tags = 25 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the networkTags to add. - * @return This builder for chaining. + * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec data_persistent_disk_spec = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addNetworkTagsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec, + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec.Builder, + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpecOrBuilder> + getDataPersistentDiskSpecFieldBuilder() { + if (dataPersistentDiskSpecBuilder_ == null) { + dataPersistentDiskSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec, + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec.Builder, + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpecOrBuilder>( + getDataPersistentDiskSpec(), getParentForChildren(), isClean()); + dataPersistentDiskSpec_ = null; } - checkByteStringIsUtf8(value); - ensureNetworkTagsIsMutable(); - networkTags_.add(value); - bitField0_ |= 0x00020000; - onChanged(); - return this; + return dataPersistentDiskSpecBuilder_; } - private com.google.cloud.aiplatform.v1beta1.EncryptionSpec encryptionSpec_; + private com.google.cloud.aiplatform.v1beta1.NetworkSpec networkSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.aiplatform.v1beta1.EncryptionSpec, - com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder, - com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder> - encryptionSpecBuilder_; + com.google.cloud.aiplatform.v1beta1.NetworkSpec, + com.google.cloud.aiplatform.v1beta1.NetworkSpec.Builder, + com.google.cloud.aiplatform.v1beta1.NetworkSpecOrBuilder> + networkSpecBuilder_; /** * * *
-     * Output only. Customer-managed encryption key spec for the notebook runtime.
+     * Output only. Network spec of the notebook runtime.
      * 
* * - * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return Whether the encryptionSpec field is set. + * @return Whether the networkSpec field is set. */ - public boolean hasEncryptionSpec() { + public boolean hasNetworkSpec() { return ((bitField0_ & 0x00040000) != 0); } /** * * *
-     * Output only. Customer-managed encryption key spec for the notebook runtime.
+     * Output only. Network spec of the notebook runtime.
      * 
* * - * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The encryptionSpec. + * @return The networkSpec. */ - public com.google.cloud.aiplatform.v1beta1.EncryptionSpec getEncryptionSpec() { - if (encryptionSpecBuilder_ == null) { - return encryptionSpec_ == null - ? com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance() - : encryptionSpec_; + public com.google.cloud.aiplatform.v1beta1.NetworkSpec getNetworkSpec() { + if (networkSpecBuilder_ == null) { + return networkSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.NetworkSpec.getDefaultInstance() + : networkSpec_; } else { - return encryptionSpecBuilder_.getMessage(); + return networkSpecBuilder_.getMessage(); } } /** * * *
-     * Output only. Customer-managed encryption key spec for the notebook runtime.
+     * Output only. Network spec of the notebook runtime.
      * 
* * - * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionSpec value) { - if (encryptionSpecBuilder_ == null) { + public Builder setNetworkSpec(com.google.cloud.aiplatform.v1beta1.NetworkSpec value) { + if (networkSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - encryptionSpec_ = value; + networkSpec_ = value; } else { - encryptionSpecBuilder_.setMessage(value); + networkSpecBuilder_.setMessage(value); } bitField0_ |= 0x00040000; onChanged(); @@ -5314,21 +5883,1032 @@ public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionS * * *
-     * Output only. Customer-managed encryption key spec for the notebook runtime.
+     * Output only. Network spec of the notebook runtime.
      * 
* * - * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setEncryptionSpec( + public Builder setNetworkSpec( + com.google.cloud.aiplatform.v1beta1.NetworkSpec.Builder builderForValue) { + if (networkSpecBuilder_ == null) { + networkSpec_ = builderForValue.build(); + } else { + networkSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Network spec of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeNetworkSpec(com.google.cloud.aiplatform.v1beta1.NetworkSpec value) { + if (networkSpecBuilder_ == null) { + if (((bitField0_ & 0x00040000) != 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_ |= 0x00040000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Network spec of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearNetworkSpec() { + bitField0_ = (bitField0_ & ~0x00040000); + networkSpec_ = null; + if (networkSpecBuilder_ != null) { + networkSpecBuilder_.dispose(); + networkSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Network spec of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.NetworkSpec.Builder getNetworkSpecBuilder() { + bitField0_ |= 0x00040000; + onChanged(); + return getNetworkSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Network spec of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + 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_; + } + } + /** + * + * + *
+     * Output only. Network spec of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + 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_; + } + + private com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig idleShutdownConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig, + com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig.Builder, + com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfigOrBuilder> + idleShutdownConfigBuilder_; + /** + * + * + *
+     * Output only. The idle shutdown configuration of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig idle_shutdown_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the idleShutdownConfig field is set. + */ + public boolean hasIdleShutdownConfig() { + return ((bitField0_ & 0x00080000) != 0); + } + /** + * + * + *
+     * Output only. The idle shutdown configuration of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig idle_shutdown_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The idleShutdownConfig. + */ + public com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig getIdleShutdownConfig() { + if (idleShutdownConfigBuilder_ == null) { + return idleShutdownConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig.getDefaultInstance() + : idleShutdownConfig_; + } else { + return idleShutdownConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The idle shutdown configuration of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig idle_shutdown_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setIdleShutdownConfig( + com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig value) { + if (idleShutdownConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + idleShutdownConfig_ = value; + } else { + idleShutdownConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The idle shutdown configuration of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig idle_shutdown_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setIdleShutdownConfig( + com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig.Builder builderForValue) { + if (idleShutdownConfigBuilder_ == null) { + idleShutdownConfig_ = builderForValue.build(); + } else { + idleShutdownConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The idle shutdown configuration of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig idle_shutdown_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeIdleShutdownConfig( + com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig value) { + if (idleShutdownConfigBuilder_ == null) { + if (((bitField0_ & 0x00080000) != 0) + && idleShutdownConfig_ != null + && idleShutdownConfig_ + != com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig + .getDefaultInstance()) { + getIdleShutdownConfigBuilder().mergeFrom(value); + } else { + idleShutdownConfig_ = value; + } + } else { + idleShutdownConfigBuilder_.mergeFrom(value); + } + if (idleShutdownConfig_ != null) { + bitField0_ |= 0x00080000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. The idle shutdown configuration of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig idle_shutdown_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearIdleShutdownConfig() { + bitField0_ = (bitField0_ & ~0x00080000); + idleShutdownConfig_ = null; + if (idleShutdownConfigBuilder_ != null) { + idleShutdownConfigBuilder_.dispose(); + idleShutdownConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The idle shutdown configuration of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig idle_shutdown_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig.Builder + getIdleShutdownConfigBuilder() { + bitField0_ |= 0x00080000; + onChanged(); + return getIdleShutdownConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The idle shutdown configuration of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig idle_shutdown_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfigOrBuilder + getIdleShutdownConfigOrBuilder() { + if (idleShutdownConfigBuilder_ != null) { + return idleShutdownConfigBuilder_.getMessageOrBuilder(); + } else { + return idleShutdownConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig.getDefaultInstance() + : idleShutdownConfig_; + } + } + /** + * + * + *
+     * Output only. The idle shutdown configuration of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig idle_shutdown_config = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig, + com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig.Builder, + com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfigOrBuilder> + getIdleShutdownConfigFieldBuilder() { + if (idleShutdownConfigBuilder_ == null) { + idleShutdownConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig, + com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig.Builder, + com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfigOrBuilder>( + getIdleShutdownConfig(), getParentForChildren(), isClean()); + idleShutdownConfig_ = null; + } + return idleShutdownConfigBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.NotebookEucConfig eucConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.NotebookEucConfig, + com.google.cloud.aiplatform.v1beta1.NotebookEucConfig.Builder, + com.google.cloud.aiplatform.v1beta1.NotebookEucConfigOrBuilder> + eucConfigBuilder_; + /** + * + * + *
+     * Output only. EUC configuration of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookEucConfig euc_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the eucConfig field is set. + */ + public boolean hasEucConfig() { + return ((bitField0_ & 0x00100000) != 0); + } + /** + * + * + *
+     * Output only. EUC configuration of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookEucConfig euc_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The eucConfig. + */ + public com.google.cloud.aiplatform.v1beta1.NotebookEucConfig getEucConfig() { + if (eucConfigBuilder_ == null) { + return eucConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.NotebookEucConfig.getDefaultInstance() + : eucConfig_; + } else { + return eucConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. EUC configuration of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookEucConfig euc_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEucConfig(com.google.cloud.aiplatform.v1beta1.NotebookEucConfig value) { + if (eucConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + eucConfig_ = value; + } else { + eucConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. EUC configuration of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookEucConfig euc_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEucConfig( + com.google.cloud.aiplatform.v1beta1.NotebookEucConfig.Builder builderForValue) { + if (eucConfigBuilder_ == null) { + eucConfig_ = builderForValue.build(); + } else { + eucConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. EUC configuration of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookEucConfig euc_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEucConfig(com.google.cloud.aiplatform.v1beta1.NotebookEucConfig value) { + if (eucConfigBuilder_ == null) { + if (((bitField0_ & 0x00100000) != 0) + && eucConfig_ != null + && eucConfig_ + != com.google.cloud.aiplatform.v1beta1.NotebookEucConfig.getDefaultInstance()) { + getEucConfigBuilder().mergeFrom(value); + } else { + eucConfig_ = value; + } + } else { + eucConfigBuilder_.mergeFrom(value); + } + if (eucConfig_ != null) { + bitField0_ |= 0x00100000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. EUC configuration of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookEucConfig euc_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEucConfig() { + bitField0_ = (bitField0_ & ~0x00100000); + eucConfig_ = null; + if (eucConfigBuilder_ != null) { + eucConfigBuilder_.dispose(); + eucConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. EUC configuration of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookEucConfig euc_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.NotebookEucConfig.Builder getEucConfigBuilder() { + bitField0_ |= 0x00100000; + onChanged(); + return getEucConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. EUC configuration of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookEucConfig euc_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.NotebookEucConfigOrBuilder getEucConfigOrBuilder() { + if (eucConfigBuilder_ != null) { + return eucConfigBuilder_.getMessageOrBuilder(); + } else { + return eucConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.NotebookEucConfig.getDefaultInstance() + : eucConfig_; + } + } + /** + * + * + *
+     * Output only. EUC configuration of the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookEucConfig euc_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.NotebookEucConfig, + com.google.cloud.aiplatform.v1beta1.NotebookEucConfig.Builder, + com.google.cloud.aiplatform.v1beta1.NotebookEucConfigOrBuilder> + getEucConfigFieldBuilder() { + if (eucConfigBuilder_ == null) { + eucConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.NotebookEucConfig, + com.google.cloud.aiplatform.v1beta1.NotebookEucConfig.Builder, + com.google.cloud.aiplatform.v1beta1.NotebookEucConfigOrBuilder>( + getEucConfig(), getParentForChildren(), isClean()); + eucConfig_ = null; + } + return eucConfigBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.ShieldedVmConfig shieldedVmConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ShieldedVmConfig, + com.google.cloud.aiplatform.v1beta1.ShieldedVmConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ShieldedVmConfigOrBuilder> + shieldedVmConfigBuilder_; + /** + * + * + *
+     * Output only. Runtime Shielded VM spec.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ShieldedVmConfig shielded_vm_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the shieldedVmConfig field is set. + */ + public boolean hasShieldedVmConfig() { + return ((bitField0_ & 0x00200000) != 0); + } + /** + * + * + *
+     * Output only. Runtime Shielded VM spec.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ShieldedVmConfig shielded_vm_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The shieldedVmConfig. + */ + public com.google.cloud.aiplatform.v1beta1.ShieldedVmConfig getShieldedVmConfig() { + if (shieldedVmConfigBuilder_ == null) { + return shieldedVmConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ShieldedVmConfig.getDefaultInstance() + : shieldedVmConfig_; + } else { + return shieldedVmConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Runtime Shielded VM spec.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ShieldedVmConfig shielded_vm_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setShieldedVmConfig(com.google.cloud.aiplatform.v1beta1.ShieldedVmConfig value) { + if (shieldedVmConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + shieldedVmConfig_ = value; + } else { + shieldedVmConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Runtime Shielded VM spec.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ShieldedVmConfig shielded_vm_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setShieldedVmConfig( + com.google.cloud.aiplatform.v1beta1.ShieldedVmConfig.Builder builderForValue) { + if (shieldedVmConfigBuilder_ == null) { + shieldedVmConfig_ = builderForValue.build(); + } else { + shieldedVmConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Runtime Shielded VM spec.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ShieldedVmConfig shielded_vm_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeShieldedVmConfig( + com.google.cloud.aiplatform.v1beta1.ShieldedVmConfig value) { + if (shieldedVmConfigBuilder_ == null) { + if (((bitField0_ & 0x00200000) != 0) + && shieldedVmConfig_ != null + && shieldedVmConfig_ + != com.google.cloud.aiplatform.v1beta1.ShieldedVmConfig.getDefaultInstance()) { + getShieldedVmConfigBuilder().mergeFrom(value); + } else { + shieldedVmConfig_ = value; + } + } else { + shieldedVmConfigBuilder_.mergeFrom(value); + } + if (shieldedVmConfig_ != null) { + bitField0_ |= 0x00200000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Runtime Shielded VM spec.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ShieldedVmConfig shielded_vm_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearShieldedVmConfig() { + bitField0_ = (bitField0_ & ~0x00200000); + shieldedVmConfig_ = null; + if (shieldedVmConfigBuilder_ != null) { + shieldedVmConfigBuilder_.dispose(); + shieldedVmConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Runtime Shielded VM spec.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ShieldedVmConfig shielded_vm_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ShieldedVmConfig.Builder + getShieldedVmConfigBuilder() { + bitField0_ |= 0x00200000; + onChanged(); + return getShieldedVmConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Runtime Shielded VM spec.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ShieldedVmConfig shielded_vm_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ShieldedVmConfigOrBuilder + getShieldedVmConfigOrBuilder() { + if (shieldedVmConfigBuilder_ != null) { + return shieldedVmConfigBuilder_.getMessageOrBuilder(); + } else { + return shieldedVmConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.ShieldedVmConfig.getDefaultInstance() + : shieldedVmConfig_; + } + } + /** + * + * + *
+     * Output only. Runtime Shielded VM spec.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ShieldedVmConfig shielded_vm_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ShieldedVmConfig, + com.google.cloud.aiplatform.v1beta1.ShieldedVmConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ShieldedVmConfigOrBuilder> + getShieldedVmConfigFieldBuilder() { + if (shieldedVmConfigBuilder_ == null) { + shieldedVmConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ShieldedVmConfig, + com.google.cloud.aiplatform.v1beta1.ShieldedVmConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ShieldedVmConfigOrBuilder>( + getShieldedVmConfig(), getParentForChildren(), isClean()); + shieldedVmConfig_ = null; + } + return shieldedVmConfigBuilder_; + } + + private com.google.protobuf.LazyStringArrayList networkTags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureNetworkTagsIsMutable() { + if (!networkTags_.isModifiable()) { + networkTags_ = new com.google.protobuf.LazyStringArrayList(networkTags_); + } + bitField0_ |= 0x00400000; + } + /** + * + * + *
+     * Optional. The Compute Engine tags to add to runtime (see [Tagging
+     * instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).
+     * 
+ * + * repeated string network_tags = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the networkTags. + */ + public com.google.protobuf.ProtocolStringList getNetworkTagsList() { + networkTags_.makeImmutable(); + return networkTags_; + } + /** + * + * + *
+     * Optional. The Compute Engine tags to add to runtime (see [Tagging
+     * instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).
+     * 
+ * + * repeated string network_tags = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of networkTags. + */ + public int getNetworkTagsCount() { + return networkTags_.size(); + } + /** + * + * + *
+     * Optional. The Compute Engine tags to add to runtime (see [Tagging
+     * instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).
+     * 
+ * + * repeated string network_tags = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The networkTags at the given index. + */ + public java.lang.String getNetworkTags(int index) { + return networkTags_.get(index); + } + /** + * + * + *
+     * Optional. The Compute Engine tags to add to runtime (see [Tagging
+     * instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).
+     * 
+ * + * repeated string network_tags = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the networkTags at the given index. + */ + public com.google.protobuf.ByteString getNetworkTagsBytes(int index) { + return networkTags_.getByteString(index); + } + /** + * + * + *
+     * Optional. The Compute Engine tags to add to runtime (see [Tagging
+     * instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).
+     * 
+ * + * repeated string network_tags = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The networkTags to set. + * @return This builder for chaining. + */ + public Builder setNetworkTags(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNetworkTagsIsMutable(); + networkTags_.set(index, value); + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The Compute Engine tags to add to runtime (see [Tagging
+     * instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).
+     * 
+ * + * repeated string network_tags = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The networkTags to add. + * @return This builder for chaining. + */ + public Builder addNetworkTags(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNetworkTagsIsMutable(); + networkTags_.add(value); + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The Compute Engine tags to add to runtime (see [Tagging
+     * instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).
+     * 
+ * + * repeated string network_tags = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The networkTags to add. + * @return This builder for chaining. + */ + public Builder addAllNetworkTags(java.lang.Iterable values) { + ensureNetworkTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networkTags_); + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The Compute Engine tags to add to runtime (see [Tagging
+     * instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).
+     * 
+ * + * repeated string network_tags = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNetworkTags() { + networkTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00400000); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The Compute Engine tags to add to runtime (see [Tagging
+     * instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)).
+     * 
+ * + * repeated string network_tags = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the networkTags to add. + * @return This builder for chaining. + */ + public Builder addNetworkTagsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureNetworkTagsIsMutable(); + networkTags_.add(value); + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.EncryptionSpec encryptionSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.EncryptionSpec, + com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder, + com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder> + encryptionSpecBuilder_; + /** + * + * + *
+     * Output only. Customer-managed encryption key spec for the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the encryptionSpec field is set. + */ + public boolean hasEncryptionSpec() { + return ((bitField0_ & 0x00800000) != 0); + } + /** + * + * + *
+     * Output only. Customer-managed encryption key spec for the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The encryptionSpec. + */ + public com.google.cloud.aiplatform.v1beta1.EncryptionSpec getEncryptionSpec() { + if (encryptionSpecBuilder_ == null) { + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; + } else { + return encryptionSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Customer-managed encryption key spec for the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionSpec value) { + if (encryptionSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encryptionSpec_ = value; + } else { + encryptionSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Customer-managed encryption key spec for the notebook runtime.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEncryptionSpec( com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder builderForValue) { if (encryptionSpecBuilder_ == null) { encryptionSpec_ = builderForValue.build(); } else { encryptionSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00040000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -5345,7 +6925,7 @@ public Builder setEncryptionSpec( */ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionSpec value) { if (encryptionSpecBuilder_ == null) { - if (((bitField0_ & 0x00040000) != 0) + if (((bitField0_ & 0x00800000) != 0) && encryptionSpec_ != null && encryptionSpec_ != com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance()) { @@ -5357,7 +6937,7 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.Encryptio encryptionSpecBuilder_.mergeFrom(value); } if (encryptionSpec_ != null) { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00800000; onChanged(); } return this; @@ -5374,7 +6954,7 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.Encryptio * */ public Builder clearEncryptionSpec() { - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00800000); encryptionSpec_ = null; if (encryptionSpecBuilder_ != null) { encryptionSpecBuilder_.dispose(); @@ -5395,7 +6975,7 @@ public Builder clearEncryptionSpec() { * */ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionSpecBuilder() { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00800000; onChanged(); return getEncryptionSpecFieldBuilder().getBuilder(); } @@ -5479,7 +7059,7 @@ public boolean getSatisfiesPzs() { public Builder setSatisfiesPzs(boolean value) { satisfiesPzs_ = value; - bitField0_ |= 0x00080000; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -5495,7 +7075,7 @@ public Builder setSatisfiesPzs(boolean value) { * @return This builder for chaining. */ public Builder clearSatisfiesPzs() { - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x01000000); satisfiesPzs_ = false; onChanged(); return this; @@ -5532,7 +7112,7 @@ public boolean getSatisfiesPzi() { public Builder setSatisfiesPzi(boolean value) { satisfiesPzi_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x02000000; onChanged(); return this; } @@ -5548,7 +7128,7 @@ public Builder setSatisfiesPzi(boolean value) { * @return This builder for chaining. */ public Builder clearSatisfiesPzi() { - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x02000000); satisfiesPzi_ = false; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookRuntimeOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookRuntimeOrBuilder.java index 74aeb7d17956..26833fac2fb8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookRuntimeOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookRuntimeOrBuilder.java @@ -307,7 +307,15 @@ public interface NotebookRuntimeOrBuilder * * *
-   * Output only. The service account that the NotebookRuntime workload runs as.
+   * Output only. Deprecated: This field is no longer used and the "Vertex AI
+   * Notebook Service Account"
+   * (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is
+   * used for the runtime workload identity.
+   * See
+   * https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account
+   * for more details.
+   *
+   * The service account that the NotebookRuntime workload runs as.
    * 
* * string service_account = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -319,7 +327,15 @@ public interface NotebookRuntimeOrBuilder * * *
-   * Output only. The service account that the NotebookRuntime workload runs as.
+   * Output only. Deprecated: This field is no longer used and the "Vertex AI
+   * Notebook Service Account"
+   * (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is
+   * used for the runtime workload identity.
+   * See
+   * https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account
+   * for more details.
+   *
+   * The service account that the NotebookRuntime workload runs as.
    * 
* * string service_account = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -620,6 +636,139 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.aiplatform.v1beta1.NotebookRuntimeType getNotebookRuntimeType(); + /** + * + * + *
+   * Output only. The specification of a single machine used by the notebook
+   * runtime.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the machineSpec field is set. + */ + boolean hasMachineSpec(); + /** + * + * + *
+   * Output only. The specification of a single machine used by the notebook
+   * runtime.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The machineSpec. + */ + com.google.cloud.aiplatform.v1beta1.MachineSpec getMachineSpec(); + /** + * + * + *
+   * Output only. The specification of a single machine used by the notebook
+   * runtime.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MachineSpec machine_spec = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.MachineSpecOrBuilder getMachineSpecOrBuilder(); + + /** + * + * + *
+   * Output only. The specification of [persistent
+   * disk][https://cloud.google.com/compute/docs/disks/persistent-disks]
+   * attached to the notebook runtime as data disk storage.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec data_persistent_disk_spec = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dataPersistentDiskSpec field is set. + */ + boolean hasDataPersistentDiskSpec(); + /** + * + * + *
+   * Output only. The specification of [persistent
+   * disk][https://cloud.google.com/compute/docs/disks/persistent-disks]
+   * attached to the notebook runtime as data disk storage.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec data_persistent_disk_spec = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataPersistentDiskSpec. + */ + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpec getDataPersistentDiskSpec(); + /** + * + * + *
+   * Output only. The specification of [persistent
+   * disk][https://cloud.google.com/compute/docs/disks/persistent-disks]
+   * attached to the notebook runtime as data disk storage.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PersistentDiskSpec data_persistent_disk_spec = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.PersistentDiskSpecOrBuilder + getDataPersistentDiskSpecOrBuilder(); + + /** + * + * + *
+   * Output only. Network spec of the notebook runtime.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the networkSpec field is set. + */ + boolean hasNetworkSpec(); + /** + * + * + *
+   * Output only. Network spec of the notebook runtime.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The networkSpec. + */ + com.google.cloud.aiplatform.v1beta1.NetworkSpec getNetworkSpec(); + /** + * + * + *
+   * Output only. Network spec of the notebook runtime.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NetworkSpec network_spec = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.NetworkSpecOrBuilder getNetworkSpecOrBuilder(); + /** * * @@ -662,6 +811,88 @@ java.lang.String getLabelsOrDefault( com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfigOrBuilder getIdleShutdownConfigOrBuilder(); + /** + * + * + *
+   * Output only. EUC configuration of the notebook runtime.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookEucConfig euc_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the eucConfig field is set. + */ + boolean hasEucConfig(); + /** + * + * + *
+   * Output only. EUC configuration of the notebook runtime.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookEucConfig euc_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The eucConfig. + */ + com.google.cloud.aiplatform.v1beta1.NotebookEucConfig getEucConfig(); + /** + * + * + *
+   * Output only. EUC configuration of the notebook runtime.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.NotebookEucConfig euc_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.NotebookEucConfigOrBuilder getEucConfigOrBuilder(); + + /** + * + * + *
+   * Output only. Runtime Shielded VM spec.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ShieldedVmConfig shielded_vm_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the shieldedVmConfig field is set. + */ + boolean hasShieldedVmConfig(); + /** + * + * + *
+   * Output only. Runtime Shielded VM spec.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ShieldedVmConfig shielded_vm_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The shieldedVmConfig. + */ + com.google.cloud.aiplatform.v1beta1.ShieldedVmConfig getShieldedVmConfig(); + /** + * + * + *
+   * Output only. Runtime Shielded VM spec.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ShieldedVmConfig shielded_vm_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.ShieldedVmConfigOrBuilder getShieldedVmConfigOrBuilder(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookRuntimeProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookRuntimeProto.java index 4d77fc2beeb7..05015dbd250d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookRuntimeProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookRuntimeProto.java @@ -66,84 +66,94 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "beta1/notebook_idle_shutdown_config.prot" + "o\032Cgoogle/cloud/aiplatform/v1beta1/noteb" + "ook_runtime_template_ref.proto\032\037google/p" - + "rotobuf/timestamp.proto\"\316\t\n\027NotebookRunt" + + "rotobuf/timestamp.proto\"\324\t\n\027NotebookRunt" + "imeTemplate\022\014\n\004name\030\001 \001(\t\022\031\n\014display_nam" - + "e\030\002 \001(\tB\003\340A\002\022\023\n\013description\030\003 \001(\t\022\027\n\nis_" - + "default\030\004 \001(\010B\003\340A\003\022J\n\014machine_spec\030\005 \001(\013" - + "2,.google.cloud.aiplatform.v1beta1.Machi" - + "neSpecB\006\340A\001\340A\005\022[\n\031data_persistent_disk_s" - + "pec\030\010 \001(\01323.google.cloud.aiplatform.v1be" - + "ta1.PersistentDiskSpecB\003\340A\001\022G\n\014network_s" - + "pec\030\014 \001(\0132,.google.cloud.aiplatform.v1be" - + "ta1.NetworkSpecB\003\340A\001\022\027\n\017service_account\030" - + "\r \001(\t\022\014\n\004etag\030\016 \001(\t\022T\n\006labels\030\017 \003(\0132D.go" + + "e\030\002 \001(\tB\003\340A\002\022\023\n\013description\030\003 \001(\t\022\031\n\nis_" + + "default\030\004 \001(\010B\005\030\001\340A\003\022J\n\014machine_spec\030\005 \001" + + "(\0132,.google.cloud.aiplatform.v1beta1.Mac" + + "hineSpecB\006\340A\001\340A\005\022[\n\031data_persistent_disk" + + "_spec\030\010 \001(\01323.google.cloud.aiplatform.v1" + + "beta1.PersistentDiskSpecB\003\340A\001\022G\n\014network" + + "_spec\030\014 \001(\0132,.google.cloud.aiplatform.v1" + + "beta1.NetworkSpecB\003\340A\001\022\033\n\017service_accoun" + + "t\030\r \001(\tB\002\030\001\022\014\n\004etag\030\016 \001(\t\022T\n\006labels\030\017 \003(" + + "\0132D.google.cloud.aiplatform.v1beta1.Note" + + "bookRuntimeTemplate.LabelsEntry\022Y\n\024idle_" + + "shutdown_config\030\021 \001(\0132;.google.cloud.aip" + + "latform.v1beta1.NotebookIdleShutdownConf" + + "ig\022F\n\neuc_config\030\022 \001(\01322.google.cloud.ai" + + "platform.v1beta1.NotebookEucConfig\0224\n\013cr" + + "eate_time\030\n \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\0224\n\013update_time\030\013 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\022[\n\025notebook_runti" + + "me_type\030\023 \001(\01624.google.cloud.aiplatform." + + "v1beta1.NotebookRuntimeTypeB\006\340A\001\340A\005\022U\n\022s" + + "hielded_vm_config\030\024 \001(\01321.google.cloud.a" + + "iplatform.v1beta1.ShieldedVmConfigB\006\340A\001\340" + + "A\005\022\031\n\014network_tags\030\025 \003(\tB\003\340A\001\022H\n\017encrypt" + + "ion_spec\030\027 \001(\0132/.google.cloud.aiplatform" + + ".v1beta1.EncryptionSpec\032-\n\013LabelsEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\225\001\352A\221\001\n1a" + + "iplatform.googleapis.com/NotebookRuntime" + + "Template\022\\projects/{project}/locations/{" + + "location}/notebookRuntimeTemplates/{note" + + "book_runtime_template}\"\345\016\n\017NotebookRunti" + + "me\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014runtime_user\030\002 " + + "\001(\tB\003\340A\002\022g\n\035notebook_runtime_template_re" + + "f\030\003 \001(\0132;.google.cloud.aiplatform.v1beta" + + "1.NotebookRuntimeTemplateRefB\003\340A\003\022\026\n\tpro" + + "xy_uri\030\005 \001(\tB\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032" + + ".google.protobuf.TimestampB\003\340A\003\0224\n\013updat" + + "e_time\030\007 \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\022W\n\014health_state\030\010 \001(\0162<.google.clo" + + "ud.aiplatform.v1beta1.NotebookRuntime.He" + + "althStateB\003\340A\003\022\031\n\014display_name\030\n \001(\tB\003\340A" + + "\002\022\023\n\013description\030\013 \001(\t\022\034\n\017service_accoun" + + "t\030\r \001(\tB\003\340A\003\022Y\n\rruntime_state\030\016 \001(\0162=.go" + "ogle.cloud.aiplatform.v1beta1.NotebookRu" - + "ntimeTemplate.LabelsEntry\022Y\n\024idle_shutdo" - + "wn_config\030\021 \001(\0132;.google.cloud.aiplatfor" - + "m.v1beta1.NotebookIdleShutdownConfig\022F\n\n" - + "euc_config\030\022 \001(\01322.google.cloud.aiplatfo" - + "rm.v1beta1.NotebookEucConfig\0224\n\013create_t" - + "ime\030\n \001(\0132\032.google.protobuf.TimestampB\003\340" - + "A\003\0224\n\013update_time\030\013 \001(\0132\032.google.protobu" - + "f.TimestampB\003\340A\003\022[\n\025notebook_runtime_typ" - + "e\030\023 \001(\01624.google.cloud.aiplatform.v1beta" - + "1.NotebookRuntimeTypeB\006\340A\001\340A\005\022U\n\022shielde" - + "d_vm_config\030\024 \001(\01321.google.cloud.aiplatf" - + "orm.v1beta1.ShieldedVmConfigB\006\340A\001\340A\005\022\031\n\014" - + "network_tags\030\025 \003(\tB\003\340A\001\022H\n\017encryption_sp" - + "ec\030\027 \001(\0132/.google.cloud.aiplatform.v1bet" - + "a1.EncryptionSpec\032-\n\013LabelsEntry\022\013\n\003key\030" - + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\225\001\352A\221\001\n1aiplatf" - + "orm.googleapis.com/NotebookRuntimeTempla" - + "te\022\\projects/{project}/locations/{locati" - + "on}/notebookRuntimeTemplates/{notebook_r" - + "untime_template}\"\325\013\n\017NotebookRuntime\022\021\n\004" - + "name\030\001 \001(\tB\003\340A\003\022\031\n\014runtime_user\030\002 \001(\tB\003\340" - + "A\002\022g\n\035notebook_runtime_template_ref\030\003 \001(" - + "\0132;.google.cloud.aiplatform.v1beta1.Note" - + "bookRuntimeTemplateRefB\003\340A\003\022\026\n\tproxy_uri" - + "\030\005 \001(\tB\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032.googl" - + "e.protobuf.TimestampB\003\340A\003\0224\n\013update_time" - + "\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" - + "W\n\014health_state\030\010 \001(\0162<.google.cloud.aip" - + "latform.v1beta1.NotebookRuntime.HealthSt" - + "ateB\003\340A\003\022\031\n\014display_name\030\n \001(\tB\003\340A\002\022\023\n\013d" - + "escription\030\013 \001(\t\022\034\n\017service_account\030\r \001(" - + "\tB\003\340A\003\022Y\n\rruntime_state\030\016 \001(\0162=.google.c" - + "loud.aiplatform.v1beta1.NotebookRuntime." - + "RuntimeStateB\003\340A\003\022\032\n\ris_upgradable\030\017 \001(\010" - + "B\003\340A\003\022L\n\006labels\030\020 \003(\0132<.google.cloud.aip" - + "latform.v1beta1.NotebookRuntime.LabelsEn" - + "try\0228\n\017expiration_time\030\021 \001(\0132\032.google.pr" - + "otobuf.TimestampB\003\340A\003\022\024\n\007version\030\022 \001(\tB\003" - + "\340A\003\022X\n\025notebook_runtime_type\030\023 \001(\01624.goo" - + "gle.cloud.aiplatform.v1beta1.NotebookRun" - + "timeTypeB\003\340A\003\022^\n\024idle_shutdown_config\030\027 " - + "\001(\0132;.google.cloud.aiplatform.v1beta1.No" - + "tebookIdleShutdownConfigB\003\340A\003\022\031\n\014network" - + "_tags\030\031 \003(\tB\003\340A\001\022M\n\017encryption_spec\030\034 \001(" - + "\0132/.google.cloud.aiplatform.v1beta1.Encr" - + "yptionSpecB\003\340A\003\022\032\n\rsatisfies_pzs\030\035 \001(\010B\003" - + "\340A\003\022\032\n\rsatisfies_pzi\030\036 \001(\010B\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\"G" - + "\n\013HealthState\022\034\n\030HEALTH_STATE_UNSPECIFIE" - + "D\020\000\022\013\n\007HEALTHY\020\001\022\r\n\tUNHEALTHY\020\002\"\231\001\n\014Runt" - + "imeState\022\035\n\031RUNTIME_STATE_UNSPECIFIED\020\000\022" - + "\013\n\007RUNNING\020\001\022\021\n\rBEING_STARTED\020\002\022\021\n\rBEING" - + "_STOPPED\020\003\022\013\n\007STOPPED\020\004\022\022\n\016BEING_UPGRADE" - + "D\020\005\022\t\n\005ERROR\020d\022\013\n\007INVALID\020e:{\352Ax\n)aiplat" - + "form.googleapis.com/NotebookRuntime\022Kpro" - + "jects/{project}/locations/{location}/not" - + "ebookRuntimes/{notebook_runtime}*]\n\023Note" - + "bookRuntimeType\022%\n!NOTEBOOK_RUNTIME_TYPE" - + "_UNSPECIFIED\020\000\022\020\n\014USER_DEFINED\020\001\022\r\n\tONE_" - + "CLICK\020\002B\353\001\n#com.google.cloud.aiplatform." - + "v1beta1B\024NotebookRuntimeProtoP\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" + + "ntime.RuntimeStateB\003\340A\003\022\032\n\ris_upgradable" + + "\030\017 \001(\010B\003\340A\003\022L\n\006labels\030\020 \003(\0132<.google.clo" + + "ud.aiplatform.v1beta1.NotebookRuntime.La" + + "belsEntry\0228\n\017expiration_time\030\021 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\022\024\n\007version\030\022" + + " \001(\tB\003\340A\003\022X\n\025notebook_runtime_type\030\023 \001(\016" + + "24.google.cloud.aiplatform.v1beta1.Noteb" + + "ookRuntimeTypeB\003\340A\003\022G\n\014machine_spec\030\024 \001(" + + "\0132,.google.cloud.aiplatform.v1beta1.Mach" + + "ineSpecB\003\340A\003\022[\n\031data_persistent_disk_spe" + + "c\030\025 \001(\01323.google.cloud.aiplatform.v1beta" + + "1.PersistentDiskSpecB\003\340A\003\022G\n\014network_spe" + + "c\030\026 \001(\0132,.google.cloud.aiplatform.v1beta" + + "1.NetworkSpecB\003\340A\003\022^\n\024idle_shutdown_conf" + + "ig\030\027 \001(\0132;.google.cloud.aiplatform.v1bet" + + "a1.NotebookIdleShutdownConfigB\003\340A\003\022K\n\neu" + + "c_config\030\030 \001(\01322.google.cloud.aiplatform" + + ".v1beta1.NotebookEucConfigB\003\340A\003\022R\n\022shiel" + + "ded_vm_config\030 \001(\01321.google.cloud.aipla" + + "tform.v1beta1.ShieldedVmConfigB\003\340A\003\022\031\n\014n" + + "etwork_tags\030\031 \003(\tB\003\340A\001\022M\n\017encryption_spe" + + "c\030\034 \001(\0132/.google.cloud.aiplatform.v1beta" + + "1.EncryptionSpecB\003\340A\003\022\032\n\rsatisfies_pzs\030\035" + + " \001(\010B\003\340A\003\022\032\n\rsatisfies_pzi\030\036 \001(\010B\003\340A\003\032-\n" + + "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + ":\0028\001\"G\n\013HealthState\022\034\n\030HEALTH_STATE_UNSP" + + "ECIFIED\020\000\022\013\n\007HEALTHY\020\001\022\r\n\tUNHEALTHY\020\002\"\231\001" + + "\n\014RuntimeState\022\035\n\031RUNTIME_STATE_UNSPECIF" + + "IED\020\000\022\013\n\007RUNNING\020\001\022\021\n\rBEING_STARTED\020\002\022\021\n" + + "\rBEING_STOPPED\020\003\022\013\n\007STOPPED\020\004\022\022\n\016BEING_U" + + "PGRADED\020\005\022\t\n\005ERROR\020d\022\013\n\007INVALID\020e:{\352Ax\n)" + + "aiplatform.googleapis.com/NotebookRuntim" + + "e\022Kprojects/{project}/locations/{locatio" + + "n}/notebookRuntimes/{notebook_runtime}*]" + + "\n\023NotebookRuntimeType\022%\n!NOTEBOOK_RUNTIM" + + "E_TYPE_UNSPECIFIED\020\000\022\020\n\014USER_DEFINED\020\001\022\r" + + "\n\tONE_CLICK\020\002B\353\001\n#com.google.cloud.aipla" + + "tform.v1beta1B\024NotebookRuntimeProtoP\001ZCc" + + "loud.google.com/go/aiplatform/apiv1beta1" + + "/aiplatformpb;aiplatformpb\252\002\037Google.Clou" + + "d.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AIPl" + + "atform\\V1beta1\352\002\"Google::Cloud::AIPlatfo" + + "rm::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -216,7 +226,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExpirationTime", "Version", "NotebookRuntimeType", + "MachineSpec", + "DataPersistentDiskSpec", + "NetworkSpec", "IdleShutdownConfig", + "EucConfig", + "ShieldedVmConfig", "NetworkTags", "EncryptionSpec", "SatisfiesPzs", diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookRuntimeTemplate.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookRuntimeTemplate.java index a343dfd2cc5e..9a03e2aad635 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookRuntimeTemplate.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookRuntimeTemplate.java @@ -247,14 +247,21 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
-   * Output only. The default template to use if not specified.
+   * Output only. Deprecated: This field has no behavior. Use
+   * notebook_runtime_type = 'ONE_CLICK' instead.
+   *
+   * The default template to use if not specified.
    * 
* - * bool is_default = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * bool is_default = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * + * @deprecated google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate.is_default is deprecated. + * See google/cloud/aiplatform/v1beta1/notebook_runtime.proto;l=73 * @return The isDefault. */ @java.lang.Override + @java.lang.Deprecated public boolean getIsDefault() { return isDefault_; } @@ -445,6 +452,15 @@ public com.google.cloud.aiplatform.v1beta1.NetworkSpecOrBuilder getNetworkSpecOr * * *
+   * Deprecated: This field is ignored and the "Vertex AI Notebook Service
+   * Account"
+   * (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is
+   * used for the runtime workload identity.
+   * See
+   * https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account
+   * for more details.
+   * For NotebookExecutionJob, use NotebookExecutionJob.service_account instead.
+   *
    * The service account that the runtime workload runs as.
    * You can use any service account within the same project, but you
    * must have the service account user permission to use the instance.
@@ -454,11 +470,14 @@ public com.google.cloud.aiplatform.v1beta1.NetworkSpecOrBuilder getNetworkSpecOr
    * is used.
    * 
* - * string service_account = 13; + * string service_account = 13 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate.service_account is + * deprecated. See google/cloud/aiplatform/v1beta1/notebook_runtime.proto;l=108 * @return The serviceAccount. */ @java.lang.Override + @java.lang.Deprecated public java.lang.String getServiceAccount() { java.lang.Object ref = serviceAccount_; if (ref instanceof java.lang.String) { @@ -474,6 +493,15 @@ public java.lang.String getServiceAccount() { * * *
+   * Deprecated: This field is ignored and the "Vertex AI Notebook Service
+   * Account"
+   * (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is
+   * used for the runtime workload identity.
+   * See
+   * https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account
+   * for more details.
+   * For NotebookExecutionJob, use NotebookExecutionJob.service_account instead.
+   *
    * The service account that the runtime workload runs as.
    * You can use any service account within the same project, but you
    * must have the service account user permission to use the instance.
@@ -483,11 +511,14 @@ public java.lang.String getServiceAccount() {
    * is used.
    * 
* - * string service_account = 13; + * string service_account = 13 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate.service_account is + * deprecated. See google/cloud/aiplatform/v1beta1/notebook_runtime.proto;l=108 * @return The bytes for serviceAccount. */ @java.lang.Override + @java.lang.Deprecated public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof java.lang.String) { @@ -2346,14 +2377,21 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. The default template to use if not specified.
+     * Output only. Deprecated: This field has no behavior. Use
+     * notebook_runtime_type = 'ONE_CLICK' instead.
+     *
+     * The default template to use if not specified.
      * 
* - * bool is_default = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * bool is_default = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * + * @deprecated google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate.is_default is deprecated. + * See google/cloud/aiplatform/v1beta1/notebook_runtime.proto;l=73 * @return The isDefault. */ @java.lang.Override + @java.lang.Deprecated public boolean getIsDefault() { return isDefault_; } @@ -2361,14 +2399,21 @@ public boolean getIsDefault() { * * *
-     * Output only. The default template to use if not specified.
+     * Output only. Deprecated: This field has no behavior. Use
+     * notebook_runtime_type = 'ONE_CLICK' instead.
+     *
+     * The default template to use if not specified.
      * 
* - * bool is_default = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * bool is_default = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * + * @deprecated google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate.is_default is deprecated. + * See google/cloud/aiplatform/v1beta1/notebook_runtime.proto;l=73 * @param value The isDefault to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setIsDefault(boolean value) { isDefault_ = value; @@ -2380,13 +2425,20 @@ public Builder setIsDefault(boolean value) { * * *
-     * Output only. The default template to use if not specified.
+     * Output only. Deprecated: This field has no behavior. Use
+     * notebook_runtime_type = 'ONE_CLICK' instead.
+     *
+     * The default template to use if not specified.
      * 
* - * bool is_default = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * bool is_default = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * + * @deprecated google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate.is_default is deprecated. + * See google/cloud/aiplatform/v1beta1/notebook_runtime.proto;l=73 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearIsDefault() { bitField0_ = (bitField0_ & ~0x00000008); isDefault_ = false; @@ -3045,6 +3097,15 @@ public com.google.cloud.aiplatform.v1beta1.NetworkSpecOrBuilder getNetworkSpecOr * * *
+     * Deprecated: This field is ignored and the "Vertex AI Notebook Service
+     * Account"
+     * (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is
+     * used for the runtime workload identity.
+     * See
+     * https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account
+     * for more details.
+     * For NotebookExecutionJob, use NotebookExecutionJob.service_account instead.
+     *
      * The service account that the runtime workload runs as.
      * You can use any service account within the same project, but you
      * must have the service account user permission to use the instance.
@@ -3054,10 +3115,13 @@ public com.google.cloud.aiplatform.v1beta1.NetworkSpecOrBuilder getNetworkSpecOr
      * is used.
      * 
* - * string service_account = 13; + * string service_account = 13 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate.service_account is + * deprecated. See google/cloud/aiplatform/v1beta1/notebook_runtime.proto;l=108 * @return The serviceAccount. */ + @java.lang.Deprecated public java.lang.String getServiceAccount() { java.lang.Object ref = serviceAccount_; if (!(ref instanceof java.lang.String)) { @@ -3073,6 +3137,15 @@ public java.lang.String getServiceAccount() { * * *
+     * Deprecated: This field is ignored and the "Vertex AI Notebook Service
+     * Account"
+     * (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is
+     * used for the runtime workload identity.
+     * See
+     * https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account
+     * for more details.
+     * For NotebookExecutionJob, use NotebookExecutionJob.service_account instead.
+     *
      * The service account that the runtime workload runs as.
      * You can use any service account within the same project, but you
      * must have the service account user permission to use the instance.
@@ -3082,10 +3155,13 @@ public java.lang.String getServiceAccount() {
      * is used.
      * 
* - * string service_account = 13; + * string service_account = 13 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate.service_account is + * deprecated. See google/cloud/aiplatform/v1beta1/notebook_runtime.proto;l=108 * @return The bytes for serviceAccount. */ + @java.lang.Deprecated public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof String) { @@ -3101,6 +3177,15 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { * * *
+     * Deprecated: This field is ignored and the "Vertex AI Notebook Service
+     * Account"
+     * (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is
+     * used for the runtime workload identity.
+     * See
+     * https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account
+     * for more details.
+     * For NotebookExecutionJob, use NotebookExecutionJob.service_account instead.
+     *
      * The service account that the runtime workload runs as.
      * You can use any service account within the same project, but you
      * must have the service account user permission to use the instance.
@@ -3110,11 +3195,14 @@ public com.google.protobuf.ByteString getServiceAccountBytes() {
      * is used.
      * 
* - * string service_account = 13; + * string service_account = 13 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate.service_account is + * deprecated. See google/cloud/aiplatform/v1beta1/notebook_runtime.proto;l=108 * @param value The serviceAccount to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setServiceAccount(java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -3128,6 +3216,15 @@ public Builder setServiceAccount(java.lang.String value) { * * *
+     * Deprecated: This field is ignored and the "Vertex AI Notebook Service
+     * Account"
+     * (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is
+     * used for the runtime workload identity.
+     * See
+     * https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account
+     * for more details.
+     * For NotebookExecutionJob, use NotebookExecutionJob.service_account instead.
+     *
      * The service account that the runtime workload runs as.
      * You can use any service account within the same project, but you
      * must have the service account user permission to use the instance.
@@ -3137,10 +3234,13 @@ public Builder setServiceAccount(java.lang.String value) {
      * is used.
      * 
* - * string service_account = 13; + * string service_account = 13 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate.service_account is + * deprecated. See google/cloud/aiplatform/v1beta1/notebook_runtime.proto;l=108 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearServiceAccount() { serviceAccount_ = getDefaultInstance().getServiceAccount(); bitField0_ = (bitField0_ & ~0x00000080); @@ -3151,6 +3251,15 @@ public Builder clearServiceAccount() { * * *
+     * Deprecated: This field is ignored and the "Vertex AI Notebook Service
+     * Account"
+     * (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is
+     * used for the runtime workload identity.
+     * See
+     * https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account
+     * for more details.
+     * For NotebookExecutionJob, use NotebookExecutionJob.service_account instead.
+     *
      * The service account that the runtime workload runs as.
      * You can use any service account within the same project, but you
      * must have the service account user permission to use the instance.
@@ -3160,11 +3269,14 @@ public Builder clearServiceAccount() {
      * is used.
      * 
* - * string service_account = 13; + * string service_account = 13 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate.service_account is + * deprecated. See google/cloud/aiplatform/v1beta1/notebook_runtime.proto;l=108 * @param value The bytes for serviceAccount to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookRuntimeTemplateOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookRuntimeTemplateOrBuilder.java index 392691e0cdc7..181161dd5cc3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookRuntimeTemplateOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookRuntimeTemplateOrBuilder.java @@ -107,13 +107,20 @@ public interface NotebookRuntimeTemplateOrBuilder * * *
-   * Output only. The default template to use if not specified.
+   * Output only. Deprecated: This field has no behavior. Use
+   * notebook_runtime_type = 'ONE_CLICK' instead.
+   *
+   * The default template to use if not specified.
    * 
* - * bool is_default = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * bool is_default = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * + * @deprecated google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate.is_default is deprecated. + * See google/cloud/aiplatform/v1beta1/notebook_runtime.proto;l=73 * @return The isDefault. */ + @java.lang.Deprecated boolean getIsDefault(); /** @@ -253,6 +260,15 @@ public interface NotebookRuntimeTemplateOrBuilder * * *
+   * Deprecated: This field is ignored and the "Vertex AI Notebook Service
+   * Account"
+   * (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is
+   * used for the runtime workload identity.
+   * See
+   * https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account
+   * for more details.
+   * For NotebookExecutionJob, use NotebookExecutionJob.service_account instead.
+   *
    * The service account that the runtime workload runs as.
    * You can use any service account within the same project, but you
    * must have the service account user permission to use the instance.
@@ -262,15 +278,27 @@ public interface NotebookRuntimeTemplateOrBuilder
    * is used.
    * 
* - * string service_account = 13; + * string service_account = 13 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate.service_account is + * deprecated. See google/cloud/aiplatform/v1beta1/notebook_runtime.proto;l=108 * @return The serviceAccount. */ + @java.lang.Deprecated java.lang.String getServiceAccount(); /** * * *
+   * Deprecated: This field is ignored and the "Vertex AI Notebook Service
+   * Account"
+   * (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is
+   * used for the runtime workload identity.
+   * See
+   * https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account
+   * for more details.
+   * For NotebookExecutionJob, use NotebookExecutionJob.service_account instead.
+   *
    * The service account that the runtime workload runs as.
    * You can use any service account within the same project, but you
    * must have the service account user permission to use the instance.
@@ -280,10 +308,13 @@ public interface NotebookRuntimeTemplateOrBuilder
    * is used.
    * 
* - * string service_account = 13; + * string service_account = 13 [deprecated = true]; * + * @deprecated google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate.service_account is + * deprecated. See google/cloud/aiplatform/v1beta1/notebook_runtime.proto;l=108 * @return The bytes for serviceAccount. */ + @java.lang.Deprecated com.google.protobuf.ByteString getServiceAccountBytes(); /** diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PairwiseMetricSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PairwiseMetricSpec.java index 8db66785c07e..0aa88f717432 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PairwiseMetricSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PairwiseMetricSpec.java @@ -40,6 +40,9 @@ private PairwiseMetricSpec(com.google.protobuf.GeneratedMessageV3.Builder bui private PairwiseMetricSpec() { metricPromptTemplate_ = ""; + candidateResponseFieldName_ = ""; + baselineResponseFieldName_ = ""; + systemInstruction_ = ""; } @java.lang.Override @@ -133,6 +136,176 @@ public com.google.protobuf.ByteString getMetricPromptTemplateBytes() { } } + public static final int CANDIDATE_RESPONSE_FIELD_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object candidateResponseFieldName_ = ""; + /** + * + * + *
+   * Optional. The field name of the candidate response.
+   * 
+ * + * string candidate_response_field_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The candidateResponseFieldName. + */ + @java.lang.Override + public java.lang.String getCandidateResponseFieldName() { + java.lang.Object ref = candidateResponseFieldName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + candidateResponseFieldName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The field name of the candidate response.
+   * 
+ * + * string candidate_response_field_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for candidateResponseFieldName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCandidateResponseFieldNameBytes() { + java.lang.Object ref = candidateResponseFieldName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + candidateResponseFieldName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BASELINE_RESPONSE_FIELD_NAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object baselineResponseFieldName_ = ""; + /** + * + * + *
+   * Optional. The field name of the baseline response.
+   * 
+ * + * string baseline_response_field_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The baselineResponseFieldName. + */ + @java.lang.Override + public java.lang.String getBaselineResponseFieldName() { + java.lang.Object ref = baselineResponseFieldName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + baselineResponseFieldName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The field name of the baseline response.
+   * 
+ * + * string baseline_response_field_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for baselineResponseFieldName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBaselineResponseFieldNameBytes() { + java.lang.Object ref = baselineResponseFieldName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + baselineResponseFieldName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SYSTEM_INSTRUCTION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object systemInstruction_ = ""; + /** + * + * + *
+   * Optional. System instructions for pairwise metric.
+   * 
+ * + * optional string system_instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the systemInstruction field is set. + */ + @java.lang.Override + public boolean hasSystemInstruction() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Optional. System instructions for pairwise metric.
+   * 
+ * + * optional string system_instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The systemInstruction. + */ + @java.lang.Override + public java.lang.String getSystemInstruction() { + java.lang.Object ref = systemInstruction_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + systemInstruction_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. System instructions for pairwise metric.
+   * 
+ * + * optional string system_instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for systemInstruction. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSystemInstructionBytes() { + java.lang.Object ref = systemInstruction_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + systemInstruction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -150,6 +323,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricPromptTemplate_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(candidateResponseFieldName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, candidateResponseFieldName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(baselineResponseFieldName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, baselineResponseFieldName_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, systemInstruction_); + } getUnknownFields().writeTo(output); } @@ -162,6 +344,17 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metricPromptTemplate_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(candidateResponseFieldName_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(2, candidateResponseFieldName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(baselineResponseFieldName_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(3, baselineResponseFieldName_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, systemInstruction_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -182,6 +375,13 @@ public boolean equals(final java.lang.Object obj) { if (hasMetricPromptTemplate()) { if (!getMetricPromptTemplate().equals(other.getMetricPromptTemplate())) return false; } + if (!getCandidateResponseFieldName().equals(other.getCandidateResponseFieldName())) + return false; + if (!getBaselineResponseFieldName().equals(other.getBaselineResponseFieldName())) return false; + if (hasSystemInstruction() != other.hasSystemInstruction()) return false; + if (hasSystemInstruction()) { + if (!getSystemInstruction().equals(other.getSystemInstruction())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -197,6 +397,14 @@ public int hashCode() { hash = (37 * hash) + METRIC_PROMPT_TEMPLATE_FIELD_NUMBER; hash = (53 * hash) + getMetricPromptTemplate().hashCode(); } + hash = (37 * hash) + CANDIDATE_RESPONSE_FIELD_NAME_FIELD_NUMBER; + hash = (53 * hash) + getCandidateResponseFieldName().hashCode(); + hash = (37 * hash) + BASELINE_RESPONSE_FIELD_NAME_FIELD_NUMBER; + hash = (53 * hash) + getBaselineResponseFieldName().hashCode(); + if (hasSystemInstruction()) { + hash = (37 * hash) + SYSTEM_INSTRUCTION_FIELD_NUMBER; + hash = (53 * hash) + getSystemInstruction().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -338,6 +546,9 @@ public Builder clear() { super.clear(); bitField0_ = 0; metricPromptTemplate_ = ""; + candidateResponseFieldName_ = ""; + baselineResponseFieldName_ = ""; + systemInstruction_ = ""; return this; } @@ -379,6 +590,16 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.PairwiseMetricSpe result.metricPromptTemplate_ = metricPromptTemplate_; to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.candidateResponseFieldName_ = candidateResponseFieldName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.baselineResponseFieldName_ = baselineResponseFieldName_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.systemInstruction_ = systemInstruction_; + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -433,6 +654,21 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PairwiseMetricSpec bitField0_ |= 0x00000001; onChanged(); } + if (!other.getCandidateResponseFieldName().isEmpty()) { + candidateResponseFieldName_ = other.candidateResponseFieldName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getBaselineResponseFieldName().isEmpty()) { + baselineResponseFieldName_ = other.baselineResponseFieldName_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasSystemInstruction()) { + systemInstruction_ = other.systemInstruction_; + bitField0_ |= 0x00000008; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -465,6 +701,24 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 18: + { + candidateResponseFieldName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + baselineResponseFieldName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + systemInstruction_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -610,6 +864,354 @@ public Builder setMetricPromptTemplateBytes(com.google.protobuf.ByteString value return this; } + private java.lang.Object candidateResponseFieldName_ = ""; + /** + * + * + *
+     * Optional. The field name of the candidate response.
+     * 
+ * + * string candidate_response_field_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The candidateResponseFieldName. + */ + public java.lang.String getCandidateResponseFieldName() { + java.lang.Object ref = candidateResponseFieldName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + candidateResponseFieldName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The field name of the candidate response.
+     * 
+ * + * string candidate_response_field_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for candidateResponseFieldName. + */ + public com.google.protobuf.ByteString getCandidateResponseFieldNameBytes() { + java.lang.Object ref = candidateResponseFieldName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + candidateResponseFieldName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The field name of the candidate response.
+     * 
+ * + * string candidate_response_field_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The candidateResponseFieldName to set. + * @return This builder for chaining. + */ + public Builder setCandidateResponseFieldName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + candidateResponseFieldName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The field name of the candidate response.
+     * 
+ * + * string candidate_response_field_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearCandidateResponseFieldName() { + candidateResponseFieldName_ = getDefaultInstance().getCandidateResponseFieldName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The field name of the candidate response.
+     * 
+ * + * string candidate_response_field_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for candidateResponseFieldName to set. + * @return This builder for chaining. + */ + public Builder setCandidateResponseFieldNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + candidateResponseFieldName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object baselineResponseFieldName_ = ""; + /** + * + * + *
+     * Optional. The field name of the baseline response.
+     * 
+ * + * string baseline_response_field_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The baselineResponseFieldName. + */ + public java.lang.String getBaselineResponseFieldName() { + java.lang.Object ref = baselineResponseFieldName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + baselineResponseFieldName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The field name of the baseline response.
+     * 
+ * + * string baseline_response_field_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for baselineResponseFieldName. + */ + public com.google.protobuf.ByteString getBaselineResponseFieldNameBytes() { + java.lang.Object ref = baselineResponseFieldName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + baselineResponseFieldName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The field name of the baseline response.
+     * 
+ * + * string baseline_response_field_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The baselineResponseFieldName to set. + * @return This builder for chaining. + */ + public Builder setBaselineResponseFieldName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + baselineResponseFieldName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The field name of the baseline response.
+     * 
+ * + * string baseline_response_field_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearBaselineResponseFieldName() { + baselineResponseFieldName_ = getDefaultInstance().getBaselineResponseFieldName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The field name of the baseline response.
+     * 
+ * + * string baseline_response_field_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for baselineResponseFieldName to set. + * @return This builder for chaining. + */ + public Builder setBaselineResponseFieldNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + baselineResponseFieldName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object systemInstruction_ = ""; + /** + * + * + *
+     * Optional. System instructions for pairwise metric.
+     * 
+ * + * optional string system_instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the systemInstruction field is set. + */ + public boolean hasSystemInstruction() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Optional. System instructions for pairwise metric.
+     * 
+ * + * optional string system_instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The systemInstruction. + */ + public java.lang.String getSystemInstruction() { + java.lang.Object ref = systemInstruction_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + systemInstruction_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. System instructions for pairwise metric.
+     * 
+ * + * optional string system_instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for systemInstruction. + */ + public com.google.protobuf.ByteString getSystemInstructionBytes() { + java.lang.Object ref = systemInstruction_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + systemInstruction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. System instructions for pairwise metric.
+     * 
+ * + * optional string system_instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The systemInstruction to set. + * @return This builder for chaining. + */ + public Builder setSystemInstruction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + systemInstruction_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. System instructions for pairwise metric.
+     * 
+ * + * optional string system_instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSystemInstruction() { + systemInstruction_ = getDefaultInstance().getSystemInstruction(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. System instructions for pairwise metric.
+     * 
+ * + * optional string system_instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for systemInstruction to set. + * @return This builder for chaining. + */ + public Builder setSystemInstructionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + systemInstruction_ = 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-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PairwiseMetricSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PairwiseMetricSpecOrBuilder.java index 018562e41dad..02171bfdb4cb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PairwiseMetricSpecOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PairwiseMetricSpecOrBuilder.java @@ -63,4 +63,93 @@ public interface PairwiseMetricSpecOrBuilder * @return The bytes for metricPromptTemplate. */ com.google.protobuf.ByteString getMetricPromptTemplateBytes(); + + /** + * + * + *
+   * Optional. The field name of the candidate response.
+   * 
+ * + * string candidate_response_field_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The candidateResponseFieldName. + */ + java.lang.String getCandidateResponseFieldName(); + /** + * + * + *
+   * Optional. The field name of the candidate response.
+   * 
+ * + * string candidate_response_field_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for candidateResponseFieldName. + */ + com.google.protobuf.ByteString getCandidateResponseFieldNameBytes(); + + /** + * + * + *
+   * Optional. The field name of the baseline response.
+   * 
+ * + * string baseline_response_field_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The baselineResponseFieldName. + */ + java.lang.String getBaselineResponseFieldName(); + /** + * + * + *
+   * Optional. The field name of the baseline response.
+   * 
+ * + * string baseline_response_field_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for baselineResponseFieldName. + */ + com.google.protobuf.ByteString getBaselineResponseFieldNameBytes(); + + /** + * + * + *
+   * Optional. System instructions for pairwise metric.
+   * 
+ * + * optional string system_instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the systemInstruction field is set. + */ + boolean hasSystemInstruction(); + /** + * + * + *
+   * Optional. System instructions for pairwise metric.
+   * 
+ * + * optional string system_instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The systemInstruction. + */ + java.lang.String getSystemInstruction(); + /** + * + * + *
+   * Optional. System instructions for pairwise metric.
+   * 
+ * + * optional string system_instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for systemInstruction. + */ + com.google.protobuf.ByteString getSystemInstructionBytes(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PointwiseMetricSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PointwiseMetricSpec.java index 408bdf53e534..7742f9b9b557 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PointwiseMetricSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PointwiseMetricSpec.java @@ -40,6 +40,7 @@ private PointwiseMetricSpec(com.google.protobuf.GeneratedMessageV3.Builder bu private PointwiseMetricSpec() { metricPromptTemplate_ = ""; + systemInstruction_ = ""; } @java.lang.Override @@ -133,6 +134,72 @@ public com.google.protobuf.ByteString getMetricPromptTemplateBytes() { } } + public static final int SYSTEM_INSTRUCTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object systemInstruction_ = ""; + /** + * + * + *
+   * Optional. System instructions for pointwise metric.
+   * 
+ * + * optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the systemInstruction field is set. + */ + @java.lang.Override + public boolean hasSystemInstruction() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Optional. System instructions for pointwise metric.
+   * 
+ * + * optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The systemInstruction. + */ + @java.lang.Override + public java.lang.String getSystemInstruction() { + java.lang.Object ref = systemInstruction_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + systemInstruction_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. System instructions for pointwise metric.
+   * 
+ * + * optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for systemInstruction. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSystemInstructionBytes() { + java.lang.Object ref = systemInstruction_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + systemInstruction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -150,6 +217,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricPromptTemplate_); } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, systemInstruction_); + } getUnknownFields().writeTo(output); } @@ -162,6 +232,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metricPromptTemplate_); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, systemInstruction_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -182,6 +255,10 @@ public boolean equals(final java.lang.Object obj) { if (hasMetricPromptTemplate()) { if (!getMetricPromptTemplate().equals(other.getMetricPromptTemplate())) return false; } + if (hasSystemInstruction() != other.hasSystemInstruction()) return false; + if (hasSystemInstruction()) { + if (!getSystemInstruction().equals(other.getSystemInstruction())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -197,6 +274,10 @@ public int hashCode() { hash = (37 * hash) + METRIC_PROMPT_TEMPLATE_FIELD_NUMBER; hash = (53 * hash) + getMetricPromptTemplate().hashCode(); } + if (hasSystemInstruction()) { + hash = (37 * hash) + SYSTEM_INSTRUCTION_FIELD_NUMBER; + hash = (53 * hash) + getSystemInstruction().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -338,6 +419,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; metricPromptTemplate_ = ""; + systemInstruction_ = ""; return this; } @@ -379,6 +461,10 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.PointwiseMetricSp result.metricPromptTemplate_ = metricPromptTemplate_; to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.systemInstruction_ = systemInstruction_; + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -433,6 +519,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PointwiseMetricSpec bitField0_ |= 0x00000001; onChanged(); } + if (other.hasSystemInstruction()) { + systemInstruction_ = other.systemInstruction_; + bitField0_ |= 0x00000002; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -465,6 +556,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 18: + { + systemInstruction_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -610,6 +707,132 @@ public Builder setMetricPromptTemplateBytes(com.google.protobuf.ByteString value return this; } + private java.lang.Object systemInstruction_ = ""; + /** + * + * + *
+     * Optional. System instructions for pointwise metric.
+     * 
+ * + * optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the systemInstruction field is set. + */ + public boolean hasSystemInstruction() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Optional. System instructions for pointwise metric.
+     * 
+ * + * optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The systemInstruction. + */ + public java.lang.String getSystemInstruction() { + java.lang.Object ref = systemInstruction_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + systemInstruction_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. System instructions for pointwise metric.
+     * 
+ * + * optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for systemInstruction. + */ + public com.google.protobuf.ByteString getSystemInstructionBytes() { + java.lang.Object ref = systemInstruction_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + systemInstruction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. System instructions for pointwise metric.
+     * 
+ * + * optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The systemInstruction to set. + * @return This builder for chaining. + */ + public Builder setSystemInstruction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + systemInstruction_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. System instructions for pointwise metric.
+     * 
+ * + * optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSystemInstruction() { + systemInstruction_ = getDefaultInstance().getSystemInstruction(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. System instructions for pointwise metric.
+     * 
+ * + * optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for systemInstruction to set. + * @return This builder for chaining. + */ + public Builder setSystemInstructionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + systemInstruction_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PointwiseMetricSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PointwiseMetricSpecOrBuilder.java index 869ad0fbccf0..4c696ce80508 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PointwiseMetricSpecOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PointwiseMetricSpecOrBuilder.java @@ -63,4 +63,41 @@ public interface PointwiseMetricSpecOrBuilder * @return The bytes for metricPromptTemplate. */ com.google.protobuf.ByteString getMetricPromptTemplateBytes(); + + /** + * + * + *
+   * Optional. System instructions for pointwise metric.
+   * 
+ * + * optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the systemInstruction field is set. + */ + boolean hasSystemInstruction(); + /** + * + * + *
+   * Optional. System instructions for pointwise metric.
+   * 
+ * + * optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The systemInstruction. + */ + java.lang.String getSystemInstruction(); + /** + * + * + *
+   * Optional. System instructions for pointwise metric.
+   * 
+ * + * optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for systemInstruction. + */ + com.google.protobuf.ByteString getSystemInstructionBytes(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceProto.java index 2617ba5b56b8..fa677e3c8df6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceProto.java @@ -272,48 +272,57 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "eta1.ToolB\003\340A\001\022V\n\021generation_config\030\007 \001(" + "\01321.google.cloud.aiplatform.v1beta1.Gene" + "rationConfigB\003\340A\001H\001\210\001\001B\025\n\023_system_instru" - + "ctionB\024\n\022_generation_config\"N\n\023CountToke" - + "nsResponse\022\024\n\014total_tokens\030\001 \001(\005\022!\n\031tota" - + "l_billable_characters\030\002 \001(\005\"\311\005\n\026Generate" - + "ContentRequest\022\022\n\005model\030\005 \001(\tB\003\340A\002\022?\n\010co" - + "ntents\030\002 \003(\0132(.google.cloud.aiplatform.v" - + "1beta1.ContentB\003\340A\002\022N\n\022system_instructio" - + "n\030\010 \001(\0132(.google.cloud.aiplatform.v1beta" - + "1.ContentB\003\340A\001H\000\210\001\001\022G\n\016cached_content\030\t " - + "\001(\tB/\340A\001\372A)\n\'aiplatform.googleapis.com/C" - + "achedContent\0229\n\005tools\030\006 \003(\0132%.google.clo" - + "ud.aiplatform.v1beta1.ToolB\003\340A\001\022E\n\013tool_" - + "config\030\007 \001(\0132+.google.cloud.aiplatform.v" - + "1beta1.ToolConfigB\003\340A\001\022X\n\006labels\030\n \003(\0132C" + + "ctionB\024\n\022_generation_config\"\247\001\n\023CountTok" + + "ensResponse\022\024\n\014total_tokens\030\001 \001(\005\022!\n\031tot" + + "al_billable_characters\030\002 \001(\005\022W\n\025prompt_t" + + "okens_details\030\003 \003(\01323.google.cloud.aipla" + + "tform.v1beta1.ModalityTokenCountB\003\340A\003\"\311\005" + + "\n\026GenerateContentRequest\022\022\n\005model\030\005 \001(\tB" + + "\003\340A\002\022?\n\010contents\030\002 \003(\0132(.google.cloud.ai" + + "platform.v1beta1.ContentB\003\340A\002\022N\n\022system_" + + "instruction\030\010 \001(\0132(.google.cloud.aiplatf" + + "orm.v1beta1.ContentB\003\340A\001H\000\210\001\001\022G\n\016cached_" + + "content\030\t \001(\tB/\340A\001\372A)\n\'aiplatform.google" + + "apis.com/CachedContent\0229\n\005tools\030\006 \003(\0132%." + + "google.cloud.aiplatform.v1beta1.ToolB\003\340A" + + "\001\022E\n\013tool_config\030\007 \001(\0132+.google.cloud.ai" + + "platform.v1beta1.ToolConfigB\003\340A\001\022X\n\006labe" + + "ls\030\n \003(\0132C.google.cloud.aiplatform.v1bet" + + "a1.GenerateContentRequest.LabelsEntryB\003\340" + + "A\001\022L\n\017safety_settings\030\003 \003(\0132..google.clo" + + "ud.aiplatform.v1beta1.SafetySettingB\003\340A\001" + + "\022Q\n\021generation_config\030\004 \001(\01321.google.clo" + + "ud.aiplatform.v1beta1.GenerationConfigB\003" + + "\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + + "\030\002 \001(\t:\0028\001B\025\n\023_system_instruction\"\304\010\n\027Ge" + + "nerateContentResponse\022C\n\ncandidates\030\002 \003(" + + "\0132*.google.cloud.aiplatform.v1beta1.Cand" + + "idateB\003\340A\003\022\032\n\rmodel_version\030\013 \001(\tB\003\340A\003\022e" + + "\n\017prompt_feedback\030\003 \001(\0132G.google.cloud.a" + + "iplatform.v1beta1.GenerateContentRespons" + + "e.PromptFeedbackB\003\340A\003\022^\n\016usage_metadata\030" + + "\004 \001(\0132F.google.cloud.aiplatform.v1beta1." + + "GenerateContentResponse.UsageMetadata\032\340\002" + + "\n\016PromptFeedback\022p\n\014block_reason\030\001 \001(\0162U" + ".google.cloud.aiplatform.v1beta1.Generat" - + "eContentRequest.LabelsEntryB\003\340A\001\022L\n\017safe" - + "ty_settings\030\003 \003(\0132..google.cloud.aiplatf" - + "orm.v1beta1.SafetySettingB\003\340A\001\022Q\n\021genera" - + "tion_config\030\004 \001(\01321.google.cloud.aiplatf" - + "orm.v1beta1.GenerationConfigB\003\340A\001\032-\n\013Lab" - + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" - + "B\025\n\023_system_instruction\"\266\006\n\027GenerateCont" - + "entResponse\022C\n\ncandidates\030\002 \003(\0132*.google" - + ".cloud.aiplatform.v1beta1.CandidateB\003\340A\003" - + "\022\032\n\rmodel_version\030\013 \001(\tB\003\340A\003\022e\n\017prompt_f" - + "eedback\030\003 \001(\0132G.google.cloud.aiplatform." - + "v1beta1.GenerateContentResponse.PromptFe" - + "edbackB\003\340A\003\022^\n\016usage_metadata\030\004 \001(\0132F.go" - + "ogle.cloud.aiplatform.v1beta1.GenerateCo" - + "ntentResponse.UsageMetadata\032\340\002\n\016PromptFe" - + "edback\022p\n\014block_reason\030\001 \001(\0162U.google.cl" - + "oud.aiplatform.v1beta1.GenerateContentRe" - + "sponse.PromptFeedback.BlockedReasonB\003\340A\003" - + "\022J\n\016safety_ratings\030\002 \003(\0132-.google.cloud." - + "aiplatform.v1beta1.SafetyRatingB\003\340A\003\022!\n\024" - + "block_reason_message\030\003 \001(\tB\003\340A\003\"m\n\rBlock" - + "edReason\022\036\n\032BLOCKED_REASON_UNSPECIFIED\020\000" - + "\022\n\n\006SAFETY\020\001\022\t\n\005OTHER\020\002\022\r\n\tBLOCKLIST\020\003\022\026" - + "\n\022PROHIBITED_CONTENT\020\004\032\217\001\n\rUsageMetadata" - + "\022\032\n\022prompt_token_count\030\001 \001(\005\022\036\n\026candidat" - + "es_token_count\030\002 \001(\005\022\031\n\021total_token_coun" - + "t\030\003 \001(\005\022\'\n\032cached_content_token_count\030\005 " - + "\001(\005B\003\340A\003\"\204\001\n\026ChatCompletionsRequest\022<\n\010e" + + "eContentResponse.PromptFeedback.BlockedR" + + "easonB\003\340A\003\022J\n\016safety_ratings\030\002 \003(\0132-.goo" + + "gle.cloud.aiplatform.v1beta1.SafetyRatin" + + "gB\003\340A\003\022!\n\024block_reason_message\030\003 \001(\tB\003\340A" + + "\003\"m\n\rBlockedReason\022\036\n\032BLOCKED_REASON_UNS" + + "PECIFIED\020\000\022\n\n\006SAFETY\020\001\022\t\n\005OTHER\020\002\022\r\n\tBLO" + + "CKLIST\020\003\022\026\n\022PROHIBITED_CONTENT\020\004\032\235\003\n\rUsa" + + "geMetadata\022\032\n\022prompt_token_count\030\001 \001(\005\022\036" + + "\n\026candidates_token_count\030\002 \001(\005\022\031\n\021total_" + + "token_count\030\003 \001(\005\022\'\n\032cached_content_toke" + + "n_count\030\005 \001(\005B\003\340A\003\022W\n\025prompt_tokens_deta" + + "ils\030\t \003(\01323.google.cloud.aiplatform.v1be" + + "ta1.ModalityTokenCountB\003\340A\003\022V\n\024cache_tok" + + "ens_details\030\n \003(\01323.google.cloud.aiplatf" + + "orm.v1beta1.ModalityTokenCountB\003\340A\003\022[\n\031c" + + "andidates_tokens_details\030\013 \003(\01323.google." + + "cloud.aiplatform.v1beta1.ModalityTokenCo" + + "untB\003\340A\003\"\204\001\n\026ChatCompletionsRequest\022<\n\010e" + "ndpoint\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform.google" + "apis.com/Endpoint\022,\n\thttp_body\030\002 \001(\0132\024.g" + "oogle.api.HttpBodyB\003\340A\001\"\203\001\n\032PredictLongR" @@ -655,7 +664,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_CountTokensResponse_descriptor, new java.lang.String[] { - "TotalTokens", "TotalBillableCharacters", + "TotalTokens", "TotalBillableCharacters", "PromptTokensDetails", }); internal_static_google_cloud_aiplatform_v1beta1_GenerateContentRequest_descriptor = getDescriptor().getMessageTypes().get(20); @@ -713,6 +722,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CandidatesTokenCount", "TotalTokenCount", "CachedContentTokenCount", + "PromptTokensDetails", + "CacheTokensDetails", + "CandidatesTokensDetails", }); internal_static_google_cloud_aiplatform_v1beta1_ChatCompletionsRequest_descriptor = getDescriptor().getMessageTypes().get(22); 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 fe26ac08e054..b0c27cdb47e9 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=253 + * google/cloud/aiplatform/v1beta1/tool.proto;l=254 * @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=253 + * google/cloud/aiplatform/v1beta1/tool.proto;l=254 * @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=253 + * google/cloud/aiplatform/v1beta1/tool.proto;l=254 * @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=253 + * google/cloud/aiplatform/v1beta1/tool.proto;l=254 * @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/RetrievalConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrievalConfig.java new file mode 100644 index 000000000000..b759e22aa93e --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrievalConfig.java @@ -0,0 +1,926 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/tool.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Retrieval config.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RetrievalConfig} + */ +public final class RetrievalConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.RetrievalConfig) + RetrievalConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use RetrievalConfig.newBuilder() to construct. + private RetrievalConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RetrievalConfig() { + languageCode_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RetrievalConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_RetrievalConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_RetrievalConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RetrievalConfig.class, + com.google.cloud.aiplatform.v1beta1.RetrievalConfig.Builder.class); + } + + private int bitField0_; + public static final int LAT_LNG_FIELD_NUMBER = 1; + private com.google.type.LatLng latLng_; + /** + * + * + *
+   * The location of the user.
+   * 
+ * + * optional .google.type.LatLng lat_lng = 1; + * + * @return Whether the latLng field is set. + */ + @java.lang.Override + public boolean hasLatLng() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * The location of the user.
+   * 
+ * + * optional .google.type.LatLng lat_lng = 1; + * + * @return The latLng. + */ + @java.lang.Override + public com.google.type.LatLng getLatLng() { + return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; + } + /** + * + * + *
+   * The location of the user.
+   * 
+ * + * optional .google.type.LatLng lat_lng = 1; + */ + @java.lang.Override + public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { + return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; + } + + public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; + /** + * + * + *
+   * The language code of the user.
+   * 
+ * + * optional string language_code = 2; + * + * @return Whether the languageCode field is set. + */ + @java.lang.Override + public boolean hasLanguageCode() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * The language code of the user.
+   * 
+ * + * optional string language_code = 2; + * + * @return The languageCode. + */ + @java.lang.Override + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } + } + /** + * + * + *
+   * The language code of the user.
+   * 
+ * + * optional string language_code = 2; + * + * @return The bytes for languageCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = 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, getLatLng()); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); + } + 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, getLatLng()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.RetrievalConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.RetrievalConfig other = + (com.google.cloud.aiplatform.v1beta1.RetrievalConfig) obj; + + if (hasLatLng() != other.hasLatLng()) return false; + if (hasLatLng()) { + if (!getLatLng().equals(other.getLatLng())) return false; + } + if (hasLanguageCode() != other.hasLanguageCode()) return false; + if (hasLanguageCode()) { + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + } + if (!getUnknownFields().equals(other.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 (hasLatLng()) { + hash = (37 * hash) + LAT_LNG_FIELD_NUMBER; + hash = (53 * hash) + getLatLng().hashCode(); + } + if (hasLanguageCode()) { + hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getLanguageCode().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.RetrievalConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RetrievalConfig parseFrom( + 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.RetrievalConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RetrievalConfig parseFrom( + com.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.RetrievalConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RetrievalConfig 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.RetrievalConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RetrievalConfig parseFrom( + java.io.InputStream 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.RetrievalConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RetrievalConfig parseDelimitedFrom( + java.io.InputStream 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.RetrievalConfig 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.RetrievalConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.RetrievalConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Retrieval config.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RetrievalConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.RetrievalConfig) + com.google.cloud.aiplatform.v1beta1.RetrievalConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_RetrievalConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ToolProto + .internal_static_google_cloud_aiplatform_v1beta1_RetrievalConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RetrievalConfig.class, + com.google.cloud.aiplatform.v1beta1.RetrievalConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.RetrievalConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getLatLngFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + latLng_ = null; + if (latLngBuilder_ != null) { + latLngBuilder_.dispose(); + latLngBuilder_ = null; + } + languageCode_ = ""; + 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_RetrievalConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RetrievalConfig getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.RetrievalConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RetrievalConfig build() { + com.google.cloud.aiplatform.v1beta1.RetrievalConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RetrievalConfig buildPartial() { + com.google.cloud.aiplatform.v1beta1.RetrievalConfig result = + new com.google.cloud.aiplatform.v1beta1.RetrievalConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.RetrievalConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.latLng_ = latLngBuilder_ == null ? latLng_ : latLngBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.languageCode_ = languageCode_; + 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.RetrievalConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.RetrievalConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.RetrievalConfig other) { + if (other == com.google.cloud.aiplatform.v1beta1.RetrievalConfig.getDefaultInstance()) + return this; + if (other.hasLatLng()) { + mergeLatLng(other.getLatLng()); + } + if (other.hasLanguageCode()) { + languageCode_ = other.languageCode_; + 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: + { + input.readMessage(getLatLngFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + languageCode_ = 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 com.google.type.LatLng latLng_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + latLngBuilder_; + /** + * + * + *
+     * The location of the user.
+     * 
+ * + * optional .google.type.LatLng lat_lng = 1; + * + * @return Whether the latLng field is set. + */ + public boolean hasLatLng() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The location of the user.
+     * 
+ * + * optional .google.type.LatLng lat_lng = 1; + * + * @return The latLng. + */ + public com.google.type.LatLng getLatLng() { + if (latLngBuilder_ == null) { + return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; + } else { + return latLngBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The location of the user.
+     * 
+ * + * optional .google.type.LatLng lat_lng = 1; + */ + public Builder setLatLng(com.google.type.LatLng value) { + if (latLngBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + latLng_ = value; + } else { + latLngBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The location of the user.
+     * 
+ * + * optional .google.type.LatLng lat_lng = 1; + */ + public Builder setLatLng(com.google.type.LatLng.Builder builderForValue) { + if (latLngBuilder_ == null) { + latLng_ = builderForValue.build(); + } else { + latLngBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The location of the user.
+     * 
+ * + * optional .google.type.LatLng lat_lng = 1; + */ + public Builder mergeLatLng(com.google.type.LatLng value) { + if (latLngBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && latLng_ != null + && latLng_ != com.google.type.LatLng.getDefaultInstance()) { + getLatLngBuilder().mergeFrom(value); + } else { + latLng_ = value; + } + } else { + latLngBuilder_.mergeFrom(value); + } + if (latLng_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * The location of the user.
+     * 
+ * + * optional .google.type.LatLng lat_lng = 1; + */ + public Builder clearLatLng() { + bitField0_ = (bitField0_ & ~0x00000001); + latLng_ = null; + if (latLngBuilder_ != null) { + latLngBuilder_.dispose(); + latLngBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The location of the user.
+     * 
+ * + * optional .google.type.LatLng lat_lng = 1; + */ + public com.google.type.LatLng.Builder getLatLngBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getLatLngFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The location of the user.
+     * 
+ * + * optional .google.type.LatLng lat_lng = 1; + */ + public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { + if (latLngBuilder_ != null) { + return latLngBuilder_.getMessageOrBuilder(); + } else { + return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; + } + } + /** + * + * + *
+     * The location of the user.
+     * 
+ * + * optional .google.type.LatLng lat_lng = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> + getLatLngFieldBuilder() { + if (latLngBuilder_ == null) { + latLngBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LatLng, + com.google.type.LatLng.Builder, + com.google.type.LatLngOrBuilder>(getLatLng(), getParentForChildren(), isClean()); + latLng_ = null; + } + return latLngBuilder_; + } + + private java.lang.Object languageCode_ = ""; + /** + * + * + *
+     * The language code of the user.
+     * 
+ * + * optional string language_code = 2; + * + * @return Whether the languageCode field is set. + */ + public boolean hasLanguageCode() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * The language code of the user.
+     * 
+ * + * optional string language_code = 2; + * + * @return The languageCode. + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The language code of the user.
+     * 
+ * + * optional string language_code = 2; + * + * @return The bytes for languageCode. + */ + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The language code of the user.
+     * 
+ * + * optional string language_code = 2; + * + * @param value The languageCode to set. + * @return This builder for chaining. + */ + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + languageCode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The language code of the user.
+     * 
+ * + * optional string language_code = 2; + * + * @return This builder for chaining. + */ + public Builder clearLanguageCode() { + languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * The language code of the user.
+     * 
+ * + * optional string language_code = 2; + * + * @param value The bytes for languageCode to set. + * @return This builder for chaining. + */ + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = 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.RetrievalConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.RetrievalConfig) + private static final com.google.cloud.aiplatform.v1beta1.RetrievalConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.RetrievalConfig(); + } + + public static com.google.cloud.aiplatform.v1beta1.RetrievalConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RetrievalConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.RetrievalConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrievalConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrievalConfigOrBuilder.java new file mode 100644 index 000000000000..996b97f4d2ca --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RetrievalConfigOrBuilder.java @@ -0,0 +1,98 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/tool.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface RetrievalConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.RetrievalConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The location of the user.
+   * 
+ * + * optional .google.type.LatLng lat_lng = 1; + * + * @return Whether the latLng field is set. + */ + boolean hasLatLng(); + /** + * + * + *
+   * The location of the user.
+   * 
+ * + * optional .google.type.LatLng lat_lng = 1; + * + * @return The latLng. + */ + com.google.type.LatLng getLatLng(); + /** + * + * + *
+   * The location of the user.
+   * 
+ * + * optional .google.type.LatLng lat_lng = 1; + */ + com.google.type.LatLngOrBuilder getLatLngOrBuilder(); + + /** + * + * + *
+   * The language code of the user.
+   * 
+ * + * optional string language_code = 2; + * + * @return Whether the languageCode field is set. + */ + boolean hasLanguageCode(); + /** + * + * + *
+   * The language code of the user.
+   * 
+ * + * optional string language_code = 2; + * + * @return The languageCode. + */ + java.lang.String getLanguageCode(); + /** + * + * + *
+   * The language code of the user.
+   * 
+ * + * optional string language_code = 2; + * + * @return The bytes for languageCode. + */ + com.google.protobuf.ByteString getLanguageCodeBytes(); +} 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 1599cb7dd6de..ed23cf02b9d7 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=253 + * google/cloud/aiplatform/v1beta1/tool.proto;l=254 * @return The disableAttribution. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolConfig.java index 9d7df4f18701..9f37e894afbf 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolConfig.java @@ -119,6 +119,63 @@ public com.google.cloud.aiplatform.v1beta1.FunctionCallingConfig getFunctionCall : functionCallingConfig_; } + public static final int RETRIEVAL_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.RetrievalConfig retrievalConfig_; + /** + * + * + *
+   * Optional. Retrieval config.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RetrievalConfig retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the retrievalConfig field is set. + */ + @java.lang.Override + public boolean hasRetrievalConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Optional. Retrieval config.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RetrievalConfig retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The retrievalConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RetrievalConfig getRetrievalConfig() { + return retrievalConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.RetrievalConfig.getDefaultInstance() + : retrievalConfig_; + } + /** + * + * + *
+   * Optional. Retrieval config.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RetrievalConfig retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RetrievalConfigOrBuilder + getRetrievalConfigOrBuilder() { + return retrievalConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.RetrievalConfig.getDefaultInstance() + : retrievalConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -136,6 +193,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getFunctionCallingConfig()); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getRetrievalConfig()); + } getUnknownFields().writeTo(output); } @@ -149,6 +209,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFunctionCallingConfig()); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRetrievalConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -169,6 +232,10 @@ public boolean equals(final java.lang.Object obj) { if (hasFunctionCallingConfig()) { if (!getFunctionCallingConfig().equals(other.getFunctionCallingConfig())) return false; } + if (hasRetrievalConfig() != other.hasRetrievalConfig()) return false; + if (hasRetrievalConfig()) { + if (!getRetrievalConfig().equals(other.getRetrievalConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,6 +251,10 @@ public int hashCode() { hash = (37 * hash) + FUNCTION_CALLING_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getFunctionCallingConfig().hashCode(); } + if (hasRetrievalConfig()) { + hash = (37 * hash) + RETRIEVAL_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRetrievalConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -325,6 +396,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFunctionCallingConfigFieldBuilder(); + getRetrievalConfigFieldBuilder(); } } @@ -337,6 +409,11 @@ public Builder clear() { functionCallingConfigBuilder_.dispose(); functionCallingConfigBuilder_ = null; } + retrievalConfig_ = null; + if (retrievalConfigBuilder_ != null) { + retrievalConfigBuilder_.dispose(); + retrievalConfigBuilder_ = null; + } return this; } @@ -381,6 +458,11 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ToolConfig result : functionCallingConfigBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.retrievalConfig_ = + retrievalConfigBuilder_ == null ? retrievalConfig_ : retrievalConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -432,6 +514,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ToolConfig other) { if (other.hasFunctionCallingConfig()) { mergeFunctionCallingConfig(other.getFunctionCallingConfig()); } + if (other.hasRetrievalConfig()) { + mergeRetrievalConfig(other.getRetrievalConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -465,6 +550,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 18: + { + input.readMessage(getRetrievalConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -693,6 +784,212 @@ public Builder clearFunctionCallingConfig() { return functionCallingConfigBuilder_; } + private com.google.cloud.aiplatform.v1beta1.RetrievalConfig retrievalConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RetrievalConfig, + com.google.cloud.aiplatform.v1beta1.RetrievalConfig.Builder, + com.google.cloud.aiplatform.v1beta1.RetrievalConfigOrBuilder> + retrievalConfigBuilder_; + /** + * + * + *
+     * Optional. Retrieval config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RetrievalConfig retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the retrievalConfig field is set. + */ + public boolean hasRetrievalConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Optional. Retrieval config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RetrievalConfig retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The retrievalConfig. + */ + public com.google.cloud.aiplatform.v1beta1.RetrievalConfig getRetrievalConfig() { + if (retrievalConfigBuilder_ == null) { + return retrievalConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.RetrievalConfig.getDefaultInstance() + : retrievalConfig_; + } else { + return retrievalConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Retrieval config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RetrievalConfig retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRetrievalConfig(com.google.cloud.aiplatform.v1beta1.RetrievalConfig value) { + if (retrievalConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + retrievalConfig_ = value; + } else { + retrievalConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Retrieval config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RetrievalConfig retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRetrievalConfig( + com.google.cloud.aiplatform.v1beta1.RetrievalConfig.Builder builderForValue) { + if (retrievalConfigBuilder_ == null) { + retrievalConfig_ = builderForValue.build(); + } else { + retrievalConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Retrieval config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RetrievalConfig retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRetrievalConfig(com.google.cloud.aiplatform.v1beta1.RetrievalConfig value) { + if (retrievalConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && retrievalConfig_ != null + && retrievalConfig_ + != com.google.cloud.aiplatform.v1beta1.RetrievalConfig.getDefaultInstance()) { + getRetrievalConfigBuilder().mergeFrom(value); + } else { + retrievalConfig_ = value; + } + } else { + retrievalConfigBuilder_.mergeFrom(value); + } + if (retrievalConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Retrieval config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RetrievalConfig retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRetrievalConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + retrievalConfig_ = null; + if (retrievalConfigBuilder_ != null) { + retrievalConfigBuilder_.dispose(); + retrievalConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Retrieval config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RetrievalConfig retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.RetrievalConfig.Builder getRetrievalConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getRetrievalConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Retrieval config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RetrievalConfig retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.RetrievalConfigOrBuilder + getRetrievalConfigOrBuilder() { + if (retrievalConfigBuilder_ != null) { + return retrievalConfigBuilder_.getMessageOrBuilder(); + } else { + return retrievalConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.RetrievalConfig.getDefaultInstance() + : retrievalConfig_; + } + } + /** + * + * + *
+     * Optional. Retrieval config.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RetrievalConfig retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RetrievalConfig, + com.google.cloud.aiplatform.v1beta1.RetrievalConfig.Builder, + com.google.cloud.aiplatform.v1beta1.RetrievalConfigOrBuilder> + getRetrievalConfigFieldBuilder() { + if (retrievalConfigBuilder_ == null) { + retrievalConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RetrievalConfig, + com.google.cloud.aiplatform.v1beta1.RetrievalConfig.Builder, + com.google.cloud.aiplatform.v1beta1.RetrievalConfigOrBuilder>( + getRetrievalConfig(), getParentForChildren(), isClean()); + retrievalConfig_ = null; + } + return retrievalConfigBuilder_; + } + @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/ToolConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolConfigOrBuilder.java index 5a22cb358154..46c1f4b261d3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolConfigOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolConfigOrBuilder.java @@ -65,4 +65,45 @@ public interface ToolConfigOrBuilder */ com.google.cloud.aiplatform.v1beta1.FunctionCallingConfigOrBuilder getFunctionCallingConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Retrieval config.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RetrievalConfig retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the retrievalConfig field is set. + */ + boolean hasRetrievalConfig(); + /** + * + * + *
+   * Optional. Retrieval config.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RetrievalConfig retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The retrievalConfig. + */ + com.google.cloud.aiplatform.v1beta1.RetrievalConfig getRetrievalConfig(); + /** + * + * + *
+   * Optional. Retrieval config.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RetrievalConfig retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.RetrievalConfigOrBuilder getRetrievalConfigOrBuilder(); } 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 fa7a3f36522d..e5bcc7545663 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 @@ -100,6 +100,10 @@ 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_RetrievalConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_RetrievalConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -138,110 +142,116 @@ 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\"\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\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\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" + + "f/struct.proto\032\030google/type/latlng.proto" + + "\"\305\003\n\004Tool\022X\n\025function_declarations\030\001 \003(\013" + + "24.google.cloud.aiplatform.v1beta1.Funct" + + "ionDeclarationB\003\340A\001\022B\n\tretrieval\030\002 \001(\0132*" + + ".google.cloud.aiplatform.v1beta1.Retriev" + + "alB\003\340A\001\022N\n\rgoogle_search\030\007 \001(\01322.google." + + "cloud.aiplatform.v1beta1.Tool.GoogleSear" + + "chB\003\340A\001\022\\\n\027google_search_retrieval\030\003 \001(\013" + + "26.google.cloud.aiplatform.v1beta1.Googl" + + "eSearchRetrievalB\003\340A\001\022P\n\016code_execution\030" + + "\004 \001(\01323.google.cloud.aiplatform.v1beta1." + + "Tool.CodeExecutionB\003\340A\001\032\016\n\014GoogleSearch\032" + + "\017\n\rCodeExecution\"\260\003\n\016ToolUseExample\022a\n\023e" + + "xtension_operation\030\n \001(\0132B.google.cloud." + + "aiplatform.v1beta1.ToolUseExample.Extens" + + "ionOperationH\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\017response_params\030\004 \001(\013" + + "2\027.google.protobuf.Struct\022\030\n\020response_su" + + "mmary\030\005 \001(\t\032l\n\022ExtensionOperation\022;\n\text" + + "ension\030\001 \001(\tB(\372A%\n#aiplatform.googleapis" + + ".com/Extension\022\031\n\014operation_id\030\002 \001(\tB\003\340A" + + "\002B\010\n\006Target\"\304\001\n\023FunctionDeclaration\022\021\n\004n" + + "ame\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.aipl" + + "atform.v1beta1.SchemaB\003\340A\001\022>\n\010response\030\004" + + " \001(\0132\'.google.cloud.aiplatform.v1beta1.S" + + "chemaB\003\340A\001\"M\n\014FunctionCall\022\021\n\004name\030\001 \001(\t" + + "B\003\340A\002\022*\n\004args\030\002 \001(\0132\027.google.protobuf.St" + + "ructB\003\340A\001\"U\n\020FunctionResponse\022\021\n\004name\030\001 " + + "\001(\tB\003\340A\002\022.\n\010response\030\002 \001(\0132\027.google.prot" + + "obuf.StructB\003\340A\002\"\246\001\n\016ExecutableCode\022O\n\010l" + + "anguage\030\001 \001(\01628.google.cloud.aiplatform." + + "v1beta1.ExecutableCode.LanguageB\003\340A\002\022\021\n\004" + + "code\030\002 \001(\tB\003\340A\002\"0\n\010Language\022\030\n\024LANGUAGE_" + + "UNSPECIFIED\020\000\022\n\n\006PYTHON\020\001\"\345\001\n\023CodeExecut" + + "ionResult\022R\n\007outcome\030\001 \001(\0162<.google.clou" + + "d.aiplatform.v1beta1.CodeExecutionResult" + + ".OutcomeB\003\340A\002\022\023\n\006output\030\002 \001(\tB\003\340A\001\"e\n\007Ou" + + "tcome\022\027\n\023OUTCOME_UNSPECIFIED\020\000\022\016\n\nOUTCOM" + + "E_OK\020\001\022\022\n\016OUTCOME_FAILED\020\002\022\035\n\031OUTCOME_DE" + + "ADLINE_EXCEEDED\020\003\"\323\001\n\tRetrieval\022K\n\020verte" + + "x_ai_search\030\002 \001(\0132/.google.cloud.aiplatf" + + "orm.v1beta1.VertexAISearchH\000\022K\n\020vertex_r" + + "ag_store\030\004 \001(\0132/.google.cloud.aiplatform" + + ".v1beta1.VertexRagStoreH\000\022\"\n\023disable_att" + + "ribution\030\003 \001(\010B\005\030\001\340A\001B\010\n\006source\"\370\003\n\016Vert" + + "exRagStore\022B\n\013rag_corpora\030\001 \003(\tB-\030\001\340A\001\372A" + + "%\n#aiplatform.googleapis.com/RagCorpus\022W" + + "\n\rrag_resources\030\004 \003(\0132;.google.cloud.aip" + + "latform.v1beta1.VertexRagStore.RagResour" + + "ceB\003\340A\001\022$\n\020similarity_top_k\030\002 \001(\005B\005\030\001\340A\001" + + "H\000\210\001\001\022-\n\031vector_distance_threshold\030\003 \001(\001" + + "B\005\030\001\340A\001H\001\210\001\001\022V\n\024rag_retrieval_config\030\006 \001" + + "(\01323.google.cloud.aiplatform.v1beta1.Rag" + + "RetrievalConfigB\003\340A\001\032i\n\013RagResource\022?\n\nr" + + "ag_corpus\030\001 \001(\tB+\340A\001\372A%\n#aiplatform.goog" + + "leapis.com/RagCorpus\022\031\n\014rag_file_ids\030\002 \003" + + "(\tB\003\340A\001B\023\n\021_similarity_top_kB\034\n\032_vector_" + + "distance_threshold\"(\n\016VertexAISearch\022\026\n\t" + + "datastore\030\001 \001(\tB\003\340A\002\"r\n\025GoogleSearchRetr" + + "ieval\022Y\n\030dynamic_retrieval_config\030\002 \001(\0132" + + "7.google.cloud.aiplatform.v1beta1.Dynami" + + "cRetrievalConfig\"\317\001\n\026DynamicRetrievalCon" + + "fig\022J\n\004mode\030\001 \001(\0162<.google.cloud.aiplatf" + + "orm.v1beta1.DynamicRetrievalConfig.Mode\022" + + "#\n\021dynamic_threshold\030\002 \001(\002B\003\340A\001H\000\210\001\001\".\n\004" + + "Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\020\n\014MODE_DYNAM" + + "IC\020\001B\024\n\022_dynamic_threshold\"\273\001\n\nToolConfi" + + "g\022\\\n\027function_calling_config\030\001 \001(\01326.goo" + + "gle.cloud.aiplatform.v1beta1.FunctionCal" + + "lingConfigB\003\340A\001\022O\n\020retrieval_config\030\002 \001(" + + "\01320.google.cloud.aiplatform.v1beta1.Retr" + + "ievalConfigB\003\340A\001\"\307\001\n\025FunctionCallingConf" + + "ig\022N\n\004mode\030\001 \001(\0162;.google.cloud.aiplatfo" + + "rm.v1beta1.FunctionCallingConfig.ModeB\003\340" + + "A\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\"v\n\017RetrievalConfig\022)\n" + + "\007lat_lng\030\001 \001(\0132\023.google.type.LatLngH\000\210\001\001" + + "\022\032\n\rlanguage_code\030\002 \001(\tH\001\210\001\001B\n\n\010_lat_lng" + + "B\020\n\016_language_code\"\317\006\n\022RagRetrievalConfi" + + "g\022\022\n\005top_k\030\001 \001(\005B\003\340A\001\022\\\n\rhybrid_search\030\002" + + " \001(\0132@.google.cloud.aiplatform.v1beta1.R" + + "agRetrievalConfig.HybridSearchB\003\340A\001\022O\n\006f" + + "ilter\030\003 \001(\0132:.google.cloud.aiplatform.v1" + + "beta1.RagRetrievalConfig.FilterB\003\340A\001\022Q\n\007" + + "ranking\030\004 \001(\0132;.google.cloud.aiplatform." + + "v1beta1.RagRetrievalConfig.RankingB\003\340A\001\032" + + "1\n\014HybridSearch\022\027\n\005alpha\030\001 \001(\002B\003\340A\001H\000\210\001\001" + + "B\010\n\006_alpha\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" + + "\032\331\002\n\007Ranking\022d\n\014rank_service\030\001 \001(\0132G.goo" + + "gle.cloud.aiplatform.v1beta1.RagRetrieva" + + "lConfig.Ranking.RankServiceB\003\340A\001H\000\022`\n\nll" + + "m_ranker\030\003 \001(\0132E.google.cloud.aiplatform" + + ".v1beta1.RagRetrievalConfig.Ranking.LlmR" + + "ankerB\003\340A\001H\000\032:\n\013RankService\022\034\n\nmodel_nam" + + "e\030\001 \001(\tB\003\340A\001H\000\210\001\001B\r\n\013_model_name\0328\n\tLlmR" + + "anker\022\034\n\nmodel_name\030\001 \001(\tB\003\340A\001H\000\210\001\001B\r\n\013_" + + "model_nameB\020\n\016ranking_configB\340\001\n#com.goo" + + "gle.cloud.aiplatform.v1beta1B\tToolProtoP" + + "\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( @@ -251,6 +261,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.OpenApiProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), + com.google.type.LatLngProto.getDescriptor(), }); internal_static_google_cloud_aiplatform_v1beta1_Tool_descriptor = getDescriptor().getMessageTypes().get(0); @@ -401,7 +412,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ToolConfig_descriptor, new java.lang.String[] { - "FunctionCallingConfig", + "FunctionCallingConfig", "RetrievalConfig", }); internal_static_google_cloud_aiplatform_v1beta1_FunctionCallingConfig_descriptor = getDescriptor().getMessageTypes().get(13); @@ -411,8 +422,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Mode", "AllowedFunctionNames", }); - internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_RetrievalConfig_descriptor = getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_aiplatform_v1beta1_RetrievalConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_RetrievalConfig_descriptor, + new java.lang.String[] { + "LatLng", "LanguageCode", + }); + internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_descriptor = + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_RagRetrievalConfig_descriptor, @@ -482,6 +501,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.OpenApiProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); + com.google.type.LatLngProto.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/UpdateFeatureMonitorOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureMonitorOperationMetadata.java new file mode 100644 index 000000000000..7870da3036fd --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureMonitorOperationMetadata.java @@ -0,0 +1,751 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/feature_registry_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Details of operations that perform update FeatureMonitor.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorOperationMetadata} + */ +public final class UpdateFeatureMonitorOperationMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorOperationMetadata) + UpdateFeatureMonitorOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateFeatureMonitorOperationMetadata.newBuilder() to construct. + private UpdateFeatureMonitorOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateFeatureMonitorOperationMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateFeatureMonitorOperationMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeatureRegistryServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateFeatureMonitorOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeatureRegistryServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateFeatureMonitorOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorOperationMetadata.Builder + .class); + } + + private int bitField0_; + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + /** + * + * + *
+   * Operation metadata for FeatureMonitor.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + @java.lang.Override + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Operation metadata for FeatureMonitor.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + /** + * + * + *
+   * Operation metadata for FeatureMonitor.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.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.v1beta1.UpdateFeatureMonitorOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorOperationMetadata other = + (com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorOperationMetadata) 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.v1beta1.UpdateFeatureMonitorOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorOperationMetadata parseFrom( + 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.UpdateFeatureMonitorOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorOperationMetadata parseFrom( + com.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.UpdateFeatureMonitorOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorOperationMetadata 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.UpdateFeatureMonitorOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorOperationMetadata parseFrom( + java.io.InputStream 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.UpdateFeatureMonitorOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorOperationMetadata + parseDelimitedFrom( + java.io.InputStream 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.UpdateFeatureMonitorOperationMetadata 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.UpdateFeatureMonitorOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.UpdateFeatureMonitorOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 of operations that perform update FeatureMonitor.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorOperationMetadata) + com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeatureRegistryServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateFeatureMonitorOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeatureRegistryServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateFeatureMonitorOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorOperationMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorOperationMetadata.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.v1beta1.FeatureRegistryServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateFeatureMonitorOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorOperationMetadata build() { + com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorOperationMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorOperationMetadata + buildPartial() { + com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorOperationMetadata result = + new com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorOperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorOperationMetadata 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.v1beta1.UpdateFeatureMonitorOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorOperationMetadata + .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.v1beta1.GenericOperationMetadata genericMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder> + genericMetadataBuilder_; + /** + * + * + *
+     * Operation metadata for FeatureMonitor.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Operation metadata for FeatureMonitor.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + if (genericMetadataBuilder_ == null) { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } else { + return genericMetadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Operation metadata for FeatureMonitor.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + genericMetadata_ = value; + } else { + genericMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Operation metadata for FeatureMonitor.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = builderForValue.build(); + } else { + genericMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Operation metadata for FeatureMonitor.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder mergeGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); + } else { + genericMetadata_ = value; + } + } else { + genericMetadataBuilder_.mergeFrom(value); + } + if (genericMetadata_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Operation metadata for FeatureMonitor.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder clearGenericMetadata() { + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); + genericMetadataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Operation metadata for FeatureMonitor.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getGenericMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Operation metadata for FeatureMonitor.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + if (genericMetadataBuilder_ != null) { + return genericMetadataBuilder_.getMessageOrBuilder(); + } else { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + } + /** + * + * + *
+     * Operation metadata for FeatureMonitor.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder> + getGenericMetadataFieldBuilder() { + if (genericMetadataBuilder_ == null) { + genericMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.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.v1beta1.UpdateFeatureMonitorOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorOperationMetadata) + private static final com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateFeatureMonitorOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.UpdateFeatureMonitorOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureMonitorOperationMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureMonitorOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..5a53d080e8b3 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureMonitorOperationMetadataOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/feature_registry_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface UpdateFeatureMonitorOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Operation metadata for FeatureMonitor.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + /** + * + * + *
+   * Operation metadata for FeatureMonitor.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + /** + * + * + *
+   * Operation metadata for FeatureMonitor.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureMonitorRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureMonitorRequest.java new file mode 100644 index 000000000000..9944c904cb64 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureMonitorRequest.java @@ -0,0 +1,1179 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/feature_registry_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [FeatureRegistryService.UpdateFeatureMonitor][google.cloud.aiplatform.v1beta1.FeatureRegistryService.UpdateFeatureMonitor].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest} + */ +public final class UpdateFeatureMonitorRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest) + UpdateFeatureMonitorRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateFeatureMonitorRequest.newBuilder() to construct. + private UpdateFeatureMonitorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateFeatureMonitorRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateFeatureMonitorRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeatureRegistryServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateFeatureMonitorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeatureRegistryServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateFeatureMonitorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest.class, + com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest.Builder.class); + } + + private int bitField0_; + public static final int FEATURE_MONITOR_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.FeatureMonitor featureMonitor_; + /** + * + * + *
+   * Required. The FeatureMonitor's `name` field is used to identify the
+   * FeatureMonitor to be updated. Format:
+   * `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureMonitor feature_monitor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the featureMonitor field is set. + */ + @java.lang.Override + public boolean hasFeatureMonitor() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. The FeatureMonitor's `name` field is used to identify the
+   * FeatureMonitor to be updated. Format:
+   * `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureMonitor feature_monitor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The featureMonitor. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureMonitor getFeatureMonitor() { + return featureMonitor_ == null + ? com.google.cloud.aiplatform.v1beta1.FeatureMonitor.getDefaultInstance() + : featureMonitor_; + } + /** + * + * + *
+   * Required. The FeatureMonitor's `name` field is used to identify the
+   * FeatureMonitor to be updated. Format:
+   * `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureMonitor feature_monitor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureMonitorOrBuilder getFeatureMonitorOrBuilder() { + return featureMonitor_ == null + ? com.google.cloud.aiplatform.v1beta1.FeatureMonitor.getDefaultInstance() + : featureMonitor_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * FeatureMonitor resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then only the non-empty fields present in the
+   * request will be overwritten. Set the update_mask to `*` to override all
+   * fields.
+   *
+   * Updatable fields:
+   *
+   *   * `labels`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * FeatureMonitor resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then only the non-empty fields present in the
+   * request will be overwritten. Set the update_mask to `*` to override all
+   * fields.
+   *
+   * Updatable fields:
+   *
+   *   * `labels`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.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. Field mask is used to specify the fields to be overwritten in the
+   * FeatureMonitor resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then only the non-empty fields present in the
+   * request will be overwritten. Set the update_mask to `*` to override all
+   * fields.
+   *
+   * Updatable fields:
+   *
+   *   * `labels`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getFeatureMonitor()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFeatureMonitor()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest other = + (com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest) obj; + + if (hasFeatureMonitor() != other.hasFeatureMonitor()) return false; + if (hasFeatureMonitor()) { + if (!getFeatureMonitor().equals(other.getFeatureMonitor())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasFeatureMonitor()) { + hash = (37 * hash) + FEATURE_MONITOR_FIELD_NUMBER; + hash = (53 * hash) + getFeatureMonitor().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest parseFrom( + 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.UpdateFeatureMonitorRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest parseFrom( + com.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.UpdateFeatureMonitorRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest 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.UpdateFeatureMonitorRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest parseFrom( + java.io.InputStream 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.UpdateFeatureMonitorRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest parseDelimitedFrom( + java.io.InputStream 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.UpdateFeatureMonitorRequest 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.UpdateFeatureMonitorRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.UpdateFeatureMonitorRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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
+   * [FeatureRegistryService.UpdateFeatureMonitor][google.cloud.aiplatform.v1beta1.FeatureRegistryService.UpdateFeatureMonitor].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest) + com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeatureRegistryServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateFeatureMonitorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeatureRegistryServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateFeatureMonitorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest.class, + com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFeatureMonitorFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + featureMonitor_ = null; + if (featureMonitorBuilder_ != null) { + featureMonitorBuilder_.dispose(); + featureMonitorBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.FeatureRegistryServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateFeatureMonitorRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest build() { + com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest result = + new com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.featureMonitor_ = + featureMonitorBuilder_ == null ? featureMonitor_ : featureMonitorBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest.getDefaultInstance()) + return this; + if (other.hasFeatureMonitor()) { + mergeFeatureMonitor(other.getFeatureMonitor()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getFeatureMonitorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.aiplatform.v1beta1.FeatureMonitor featureMonitor_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FeatureMonitor, + com.google.cloud.aiplatform.v1beta1.FeatureMonitor.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureMonitorOrBuilder> + featureMonitorBuilder_; + /** + * + * + *
+     * Required. The FeatureMonitor's `name` field is used to identify the
+     * FeatureMonitor to be updated. Format:
+     * `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureMonitor feature_monitor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the featureMonitor field is set. + */ + public boolean hasFeatureMonitor() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The FeatureMonitor's `name` field is used to identify the
+     * FeatureMonitor to be updated. Format:
+     * `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureMonitor feature_monitor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The featureMonitor. + */ + public com.google.cloud.aiplatform.v1beta1.FeatureMonitor getFeatureMonitor() { + if (featureMonitorBuilder_ == null) { + return featureMonitor_ == null + ? com.google.cloud.aiplatform.v1beta1.FeatureMonitor.getDefaultInstance() + : featureMonitor_; + } else { + return featureMonitorBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The FeatureMonitor's `name` field is used to identify the
+     * FeatureMonitor to be updated. Format:
+     * `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureMonitor feature_monitor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFeatureMonitor(com.google.cloud.aiplatform.v1beta1.FeatureMonitor value) { + if (featureMonitorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + featureMonitor_ = value; + } else { + featureMonitorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The FeatureMonitor's `name` field is used to identify the
+     * FeatureMonitor to be updated. Format:
+     * `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureMonitor feature_monitor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFeatureMonitor( + com.google.cloud.aiplatform.v1beta1.FeatureMonitor.Builder builderForValue) { + if (featureMonitorBuilder_ == null) { + featureMonitor_ = builderForValue.build(); + } else { + featureMonitorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The FeatureMonitor's `name` field is used to identify the
+     * FeatureMonitor to be updated. Format:
+     * `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureMonitor feature_monitor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeFeatureMonitor(com.google.cloud.aiplatform.v1beta1.FeatureMonitor value) { + if (featureMonitorBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && featureMonitor_ != null + && featureMonitor_ + != com.google.cloud.aiplatform.v1beta1.FeatureMonitor.getDefaultInstance()) { + getFeatureMonitorBuilder().mergeFrom(value); + } else { + featureMonitor_ = value; + } + } else { + featureMonitorBuilder_.mergeFrom(value); + } + if (featureMonitor_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. The FeatureMonitor's `name` field is used to identify the
+     * FeatureMonitor to be updated. Format:
+     * `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureMonitor feature_monitor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFeatureMonitor() { + bitField0_ = (bitField0_ & ~0x00000001); + featureMonitor_ = null; + if (featureMonitorBuilder_ != null) { + featureMonitorBuilder_.dispose(); + featureMonitorBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The FeatureMonitor's `name` field is used to identify the
+     * FeatureMonitor to be updated. Format:
+     * `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureMonitor feature_monitor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.FeatureMonitor.Builder getFeatureMonitorBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getFeatureMonitorFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The FeatureMonitor's `name` field is used to identify the
+     * FeatureMonitor to be updated. Format:
+     * `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureMonitor feature_monitor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.FeatureMonitorOrBuilder + getFeatureMonitorOrBuilder() { + if (featureMonitorBuilder_ != null) { + return featureMonitorBuilder_.getMessageOrBuilder(); + } else { + return featureMonitor_ == null + ? com.google.cloud.aiplatform.v1beta1.FeatureMonitor.getDefaultInstance() + : featureMonitor_; + } + } + /** + * + * + *
+     * Required. The FeatureMonitor's `name` field is used to identify the
+     * FeatureMonitor to be updated. Format:
+     * `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}`
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureMonitor feature_monitor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FeatureMonitor, + com.google.cloud.aiplatform.v1beta1.FeatureMonitor.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureMonitorOrBuilder> + getFeatureMonitorFieldBuilder() { + if (featureMonitorBuilder_ == null) { + featureMonitorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FeatureMonitor, + com.google.cloud.aiplatform.v1beta1.FeatureMonitor.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureMonitorOrBuilder>( + getFeatureMonitor(), getParentForChildren(), isClean()); + featureMonitor_ = null; + } + return featureMonitorBuilder_; + } + + 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. Field mask is used to specify the fields to be overwritten in the
+     * FeatureMonitor resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then only the non-empty fields present in the
+     * request will be overwritten. Set the update_mask to `*` to override all
+     * fields.
+     *
+     * Updatable fields:
+     *
+     *   * `labels`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * FeatureMonitor resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then only the non-empty fields present in the
+     * request will be overwritten. Set the update_mask to `*` to override all
+     * fields.
+     *
+     * Updatable fields:
+     *
+     *   * `labels`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.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. Field mask is used to specify the fields to be overwritten in the
+     * FeatureMonitor resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then only the non-empty fields present in the
+     * request will be overwritten. Set the update_mask to `*` to override all
+     * fields.
+     *
+     * Updatable fields:
+     *
+     *   * `labels`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * FeatureMonitor resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then only the non-empty fields present in the
+     * request will be overwritten. Set the update_mask to `*` to override all
+     * fields.
+     *
+     * Updatable fields:
+     *
+     *   * `labels`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * FeatureMonitor resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then only the non-empty fields present in the
+     * request will be overwritten. Set the update_mask to `*` to override all
+     * fields.
+     *
+     * Updatable fields:
+     *
+     *   * `labels`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * FeatureMonitor resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then only the non-empty fields present in the
+     * request will be overwritten. Set the update_mask to `*` to override all
+     * fields.
+     *
+     * Updatable fields:
+     *
+     *   * `labels`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * FeatureMonitor resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then only the non-empty fields present in the
+     * request will be overwritten. Set the update_mask to `*` to override all
+     * fields.
+     *
+     * Updatable fields:
+     *
+     *   * `labels`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * FeatureMonitor resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then only the non-empty fields present in the
+     * request will be overwritten. Set the update_mask to `*` to override all
+     * fields.
+     *
+     * Updatable fields:
+     *
+     *   * `labels`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.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. Field mask is used to specify the fields to be overwritten in the
+     * FeatureMonitor resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then only the non-empty fields present in the
+     * request will be overwritten. Set the update_mask to `*` to override all
+     * fields.
+     *
+     * Updatable fields:
+     *
+     *   * `labels`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @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.UpdateFeatureMonitorRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest) + private static final com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateFeatureMonitorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.UpdateFeatureMonitorRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureMonitorRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureMonitorRequestOrBuilder.java new file mode 100644 index 000000000000..6ba4f6731d52 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateFeatureMonitorRequestOrBuilder.java @@ -0,0 +1,141 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/feature_registry_service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.aiplatform.v1beta1; + +public interface UpdateFeatureMonitorRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The FeatureMonitor's `name` field is used to identify the
+   * FeatureMonitor to be updated. Format:
+   * `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureMonitor feature_monitor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the featureMonitor field is set. + */ + boolean hasFeatureMonitor(); + /** + * + * + *
+   * Required. The FeatureMonitor's `name` field is used to identify the
+   * FeatureMonitor to be updated. Format:
+   * `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureMonitor feature_monitor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The featureMonitor. + */ + com.google.cloud.aiplatform.v1beta1.FeatureMonitor getFeatureMonitor(); + /** + * + * + *
+   * Required. The FeatureMonitor's `name` field is used to identify the
+   * FeatureMonitor to be updated. Format:
+   * `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}`
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureMonitor feature_monitor = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.FeatureMonitorOrBuilder getFeatureMonitorOrBuilder(); + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * FeatureMonitor resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then only the non-empty fields present in the
+   * request will be overwritten. Set the update_mask to `*` to override all
+   * fields.
+   *
+   * Updatable fields:
+   *
+   *   * `labels`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * FeatureMonitor resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then only the non-empty fields present in the
+   * request will be overwritten. Set the update_mask to `*` to override all
+   * fields.
+   *
+   * Updatable fields:
+   *
+   *   * `labels`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * FeatureMonitor resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then only the non-empty fields present in the
+   * request will be overwritten. Set the update_mask to `*` to override all
+   * fields.
+   *
+   * Updatable fields:
+   *
+   *   * `labels`
+   * 
+ * + * .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/VertexRagStore.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStore.java index 7c62e4dfc358..0c488b56a27b 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=277 + * google/cloud/aiplatform/v1beta1/tool.proto;l=278 * @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=277 + * google/cloud/aiplatform/v1beta1/tool.proto;l=278 * @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=277 + * google/cloud/aiplatform/v1beta1/tool.proto;l=278 * @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=277 + * google/cloud/aiplatform/v1beta1/tool.proto;l=278 * @param index The index of the value to return. * @return The bytes of the ragCorpora at the given index. */ @@ -1293,7 +1293,7 @@ public com.google.cloud.aiplatform.v1beta1.VertexRagStore.RagResource getRagReso * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=293 + * google/cloud/aiplatform/v1beta1/tool.proto;l=294 * @return Whether the similarityTopK field is set. */ @java.lang.Override @@ -1313,7 +1313,7 @@ public boolean hasSimilarityTopK() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=293 + * google/cloud/aiplatform/v1beta1/tool.proto;l=294 * @return The similarityTopK. */ @java.lang.Override @@ -1337,7 +1337,7 @@ public int getSimilarityTopK() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.vector_distance_threshold is - * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=298 + * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=299 * @return Whether the vectorDistanceThreshold field is set. */ @java.lang.Override @@ -1358,7 +1358,7 @@ public boolean hasVectorDistanceThreshold() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.vector_distance_threshold is - * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=298 + * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=299 * @return The vectorDistanceThreshold. */ @java.lang.Override @@ -1982,7 +1982,7 @@ private void ensureRagCorporaIsMutable() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=277 + * google/cloud/aiplatform/v1beta1/tool.proto;l=278 * @return A list containing the ragCorpora. */ @java.lang.Deprecated @@ -2002,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=277 + * google/cloud/aiplatform/v1beta1/tool.proto;l=278 * @return The count of ragCorpora. */ @java.lang.Deprecated @@ -2021,7 +2021,7 @@ public int getRagCorporaCount() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=277 + * google/cloud/aiplatform/v1beta1/tool.proto;l=278 * @param index The index of the element to return. * @return The ragCorpora at the given index. */ @@ -2041,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=277 + * google/cloud/aiplatform/v1beta1/tool.proto;l=278 * @param index The index of the value to return. * @return The bytes of the ragCorpora at the given index. */ @@ -2061,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=277 + * google/cloud/aiplatform/v1beta1/tool.proto;l=278 * @param index The index to set the value at. * @param value The ragCorpora to set. * @return This builder for chaining. @@ -2089,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=277 + * google/cloud/aiplatform/v1beta1/tool.proto;l=278 * @param value The ragCorpora to add. * @return This builder for chaining. */ @@ -2116,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=277 + * google/cloud/aiplatform/v1beta1/tool.proto;l=278 * @param values The ragCorpora to add. * @return This builder for chaining. */ @@ -2140,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=277 + * google/cloud/aiplatform/v1beta1/tool.proto;l=278 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2163,7 +2163,7 @@ public Builder clearRagCorpora() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=277 + * google/cloud/aiplatform/v1beta1/tool.proto;l=278 * @param value The bytes of the ragCorpora to add. * @return This builder for chaining. */ @@ -2651,7 +2651,7 @@ public Builder removeRagResources(int index) { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.similarity_top_k is deprecated. - * See google/cloud/aiplatform/v1beta1/tool.proto;l=293 + * See google/cloud/aiplatform/v1beta1/tool.proto;l=294 * @return Whether the similarityTopK field is set. */ @java.lang.Override @@ -2671,7 +2671,7 @@ public boolean hasSimilarityTopK() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.similarity_top_k is deprecated. - * See google/cloud/aiplatform/v1beta1/tool.proto;l=293 + * See google/cloud/aiplatform/v1beta1/tool.proto;l=294 * @return The similarityTopK. */ @java.lang.Override @@ -2691,7 +2691,7 @@ public int getSimilarityTopK() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.similarity_top_k is deprecated. - * See google/cloud/aiplatform/v1beta1/tool.proto;l=293 + * See google/cloud/aiplatform/v1beta1/tool.proto;l=294 * @param value The similarityTopK to set. * @return This builder for chaining. */ @@ -2715,7 +2715,7 @@ public Builder setSimilarityTopK(int value) { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.similarity_top_k is deprecated. - * See google/cloud/aiplatform/v1beta1/tool.proto;l=293 + * See google/cloud/aiplatform/v1beta1/tool.proto;l=294 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2740,7 +2740,7 @@ public Builder clearSimilarityTopK() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.vector_distance_threshold is - * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=298 + * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=299 * @return Whether the vectorDistanceThreshold field is set. */ @java.lang.Override @@ -2761,7 +2761,7 @@ public boolean hasVectorDistanceThreshold() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.vector_distance_threshold is - * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=298 + * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=299 * @return The vectorDistanceThreshold. */ @java.lang.Override @@ -2782,7 +2782,7 @@ public double getVectorDistanceThreshold() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.vector_distance_threshold is - * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=298 + * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=299 * @param value The vectorDistanceThreshold to set. * @return This builder for chaining. */ @@ -2807,7 +2807,7 @@ public Builder setVectorDistanceThreshold(double value) { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.vector_distance_threshold is - * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=298 + * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=299 * @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/VertexRagStoreOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStoreOrBuilder.java index 12a824a7b4d2..8a8795a2c08b 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=277 + * google/cloud/aiplatform/v1beta1/tool.proto;l=278 * @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=277 + * google/cloud/aiplatform/v1beta1/tool.proto;l=278 * @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=277 + * google/cloud/aiplatform/v1beta1/tool.proto;l=278 * @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=277 + * google/cloud/aiplatform/v1beta1/tool.proto;l=278 * @param index The index of the value to return. * @return The bytes of the ragCorpora at the given index. */ @@ -186,7 +186,7 @@ com.google.cloud.aiplatform.v1beta1.VertexRagStore.RagResourceOrBuilder getRagRe * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=293 + * google/cloud/aiplatform/v1beta1/tool.proto;l=294 * @return Whether the similarityTopK field is set. */ @java.lang.Deprecated @@ -203,7 +203,7 @@ com.google.cloud.aiplatform.v1beta1.VertexRagStore.RagResourceOrBuilder getRagRe * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=293 + * google/cloud/aiplatform/v1beta1/tool.proto;l=294 * @return The similarityTopK. */ @java.lang.Deprecated @@ -222,7 +222,7 @@ com.google.cloud.aiplatform.v1beta1.VertexRagStore.RagResourceOrBuilder getRagRe * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.vector_distance_threshold is - * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=298 + * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=299 * @return Whether the vectorDistanceThreshold field is set. */ @java.lang.Deprecated @@ -240,7 +240,7 @@ com.google.cloud.aiplatform.v1beta1.VertexRagStore.RagResourceOrBuilder getRagRe * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.vector_distance_threshold is - * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=298 + * deprecated. See google/cloud/aiplatform/v1beta1/tool.proto;l=299 * @return The vectorDistanceThreshold. */ @java.lang.Deprecated 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 3329b640ada1..bce05221ff1f 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 @@ -52,6 +52,27 @@ enum HarmCategory { HARM_CATEGORY_CIVIC_INTEGRITY = 5; } +// Content Part modality +enum Modality { + // Unspecified modality. + MODALITY_UNSPECIFIED = 0; + + // Plain text. + TEXT = 1; + + // Image. + IMAGE = 2; + + // Video. + VIDEO = 3; + + // Audio. + AUDIO = 4; + + // Document, e.g. PDF. + DOCUMENT = 5; +} + // The base structured datatype containing multi-part content of a message. // // A `Content` includes a `role` field designating the producer of the `Content` @@ -671,3 +692,12 @@ message RetrievalMetadata { float google_search_dynamic_retrieval_score = 2 [(google.api.field_behavior) = OPTIONAL]; } + +// Represents token counting info for a single modality. +message ModalityTokenCount { + // The modality associated with this token count. + Modality modality = 1; + + // Number of tokens. + int32 token_count = 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 c79c4bb00799..47aebef0a2da 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 @@ -60,6 +60,33 @@ enum PairwiseChoice { TIE = 3; } +// The configs for autorater. This is applicable to both EvaluateInstances and +// EvaluateDataset. +message AutoraterConfig { + // Optional. Number of samples for each instance in the dataset. + // If not specified, the default is 4. Minimum value is 1, maximum value + // is 32. + optional int32 sampling_count = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether to flip the candidate and baseline responses. + // This is only applicable to the pairwise metric. If enabled, also provide + // PairwiseMetricSpec.candidate_response_field_name and + // PairwiseMetricSpec.baseline_response_field_name. When rendering + // PairwiseMetricSpec.metric_prompt_template, the candidate and baseline + // fields will be flipped for half of the samples to reduce bias. + optional bool flip_enabled = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The fully qualified name of the publisher model or tuned + // autorater endpoint to use. + // + // Publisher model format: + // `projects/{project}/locations/{location}/publishers/*/models/*` + // + // Tuned model endpoint format: + // `projects/{project}/locations/{location}/endpoints/{endpoint}` + string autorater_model = 3 [(google.api.field_behavior) = OPTIONAL]; +} + // Request message for EvaluationService.EvaluateInstances. message EvaluateInstancesRequest { // Instances and specs for evaluation @@ -140,6 +167,13 @@ message EvaluateInstancesRequest { // Input for tool parameter key value match metric. ToolParameterKVMatchInput tool_parameter_kv_match_input = 22; + // Translation metrics. + // Input for Comet metric. + CometInput comet_input = 31; + + // Input for Metricx metric. + MetricxInput metricx_input = 32; + // Input for trajectory exact match metric. TrajectoryExactMatchInput trajectory_exact_match_input = 33; @@ -167,6 +201,10 @@ message EvaluateInstancesRequest { type: "locations.googleapis.com/Location" } ]; + + // Optional. Autorater config used for evaluation. + AutoraterConfig autorater_config = 30 + [(google.api.field_behavior) = OPTIONAL]; } // Response message for EvaluationService.EvaluateInstances. @@ -254,6 +292,13 @@ message EvaluateInstancesResponse { // Results for tool parameter key value match metric. ToolParameterKVMatchResults tool_parameter_kv_match_results = 21; + // Translation metrics. + // Result for Comet metric. + CometResult comet_result = 29; + + // Result for Metricx metric. + MetricxResult metricx_result = 30; + // Result for trajectory exact match metric. TrajectoryExactMatchResults trajectory_exact_match_results = 31; @@ -1032,6 +1077,10 @@ message PointwiseMetricSpec { // Required. Metric prompt template for pointwise metric. optional string metric_prompt_template = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. System instructions for pointwise metric. + optional string system_instruction = 2 + [(google.api.field_behavior) = OPTIONAL]; } // Spec for pointwise metric result. @@ -1069,6 +1118,18 @@ message PairwiseMetricSpec { // Required. Metric prompt template for pairwise metric. optional string metric_prompt_template = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The field name of the candidate response. + string candidate_response_field_name = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The field name of the baseline response. + string baseline_response_field_name = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. System instructions for pairwise metric. + optional string system_instruction = 4 + [(google.api.field_behavior) = OPTIONAL]; } // Spec for pairwise metric result. @@ -1228,6 +1289,116 @@ message ToolParameterKVMatchMetricValue { optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; } +// Input for Comet metric. +message CometInput { + // Required. Spec for comet metric. + CometSpec metric_spec = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Comet instance. + CometInstance instance = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for Comet metric. +message CometSpec { + // Comet version options. + enum CometVersion { + // Comet version unspecified. + COMET_VERSION_UNSPECIFIED = 0; + + // Comet 22 for translation + source + reference + // (source-reference-combined). + COMET_22_SRC_REF = 2; + } + + // Required. Which version to use for evaluation. + optional CometVersion version = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Source language in BCP-47 format. + string source_language = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Target language in BCP-47 format. Covers both prediction and + // reference. + string target_language = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Spec for Comet instance - The fields used for evaluation are dependent on the +// comet version. +message CometInstance { + // Required. Output of the evaluated model. + optional string prediction = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Ground truth used to compare against the prediction. + optional string reference = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Source text in original language. + optional string source = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Spec for Comet result - calculates the comet score for the given instance +// using the version specified in the spec. +message CometResult { + // Output only. Comet score. Range depends on version. + optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Input for MetricX metric. +message MetricxInput { + // Required. Spec for Metricx metric. + MetricxSpec metric_spec = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Metricx instance. + MetricxInstance instance = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for MetricX metric. +message MetricxSpec { + // MetricX Version options. + enum MetricxVersion { + // MetricX version unspecified. + METRICX_VERSION_UNSPECIFIED = 0; + + // MetricX 2024 (2.6) for translation + reference (reference-based). + METRICX_24_REF = 1; + + // MetricX 2024 (2.6) for translation + source (QE). + METRICX_24_SRC = 2; + + // MetricX 2024 (2.6) for translation + source + reference + // (source-reference-combined). + METRICX_24_SRC_REF = 3; + } + + // Required. Which version to use for evaluation. + optional MetricxVersion version = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Source language in BCP-47 format. + string source_language = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Target language in BCP-47 format. Covers both prediction and + // reference. + string target_language = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Spec for MetricX instance - The fields used for evaluation are dependent on +// the MetricX version. +message MetricxInstance { + // Required. Output of the evaluated model. + optional string prediction = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Ground truth used to compare against the prediction. + optional string reference = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Source text in original language. + optional string source = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Spec for MetricX result - calculates the MetricX score for the given instance +// using the version specified in the spec. +message MetricxResult { + // Output only. MetricX score. Range depends on version. + optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // Instances and metric spec for TrajectoryExactMatch metric. message TrajectoryExactMatchInput { // Required. Spec for TrajectoryExactMatch metric. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_registry_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_registry_service.proto index 15038b1b7143..237de2808042 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_registry_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_registry_service.proto @@ -207,6 +207,20 @@ service FeatureRegistryService { option (google.api.method_signature) = "parent"; } + // Updates the parameters of a single FeatureMonitor. + rpc UpdateFeatureMonitor(UpdateFeatureMonitorRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1beta1/{feature_monitor.name=projects/*/locations/*/featureGroups/*/featureMonitors/*}" + body: "feature_monitor" + }; + option (google.api.method_signature) = "feature_monitor,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "FeatureMonitor" + metadata_type: "UpdateFeatureMonitorOperationMetadata" + }; + } + // Deletes a single FeatureMonitor. rpc DeleteFeatureMonitor(DeleteFeatureMonitorRequest) returns (google.longrunning.Operation) { @@ -494,6 +508,29 @@ message ListFeatureMonitorsRequest { string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; } +// Request message for +// [FeatureRegistryService.UpdateFeatureMonitor][google.cloud.aiplatform.v1beta1.FeatureRegistryService.UpdateFeatureMonitor]. +message UpdateFeatureMonitorRequest { + // Required. The FeatureMonitor's `name` field is used to identify the + // FeatureMonitor to be updated. Format: + // `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}` + FeatureMonitor feature_monitor = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Field mask is used to specify the fields to be overwritten in the + // FeatureMonitor resource by the update. + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then only the non-empty fields present in the + // request will be overwritten. Set the update_mask to `*` to override all + // fields. + // + // Updatable fields: + // + // * `labels` + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + // Request message for // [FeatureRegistryService.DeleteFeatureMonitor][google.cloud.aiplatform.v1beta1.FeatureRegistryService.DeleteFeatureMonitor]. message DeleteFeatureMonitorRequest { @@ -551,6 +588,12 @@ message CreateFeatureMonitorOperationMetadata { GenericOperationMetadata generic_metadata = 1; } +// Details of operations that perform update FeatureMonitor. +message UpdateFeatureMonitorOperationMetadata { + // Operation metadata for FeatureMonitor. + GenericOperationMetadata generic_metadata = 1; +} + // Request message for // [FeatureRegistryService.CreateFeatureMonitorJobRequest][]. message CreateFeatureMonitorJobRequest { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model.proto index 2059db6494a1..4fa1599d2d15 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model.proto @@ -180,6 +180,9 @@ message Model { // The description of this version. string version_description = 30; + // The default checkpoint id of a model version. + string default_checkpoint_id = 53; + // The schemata that describe formats of the Model's predictions and // explanations as given and returned via // [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict] diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_service.proto index f708148db59b..11de5f22a4d4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_service.proto @@ -84,6 +84,15 @@ service ModelService { option (google.api.method_signature) = "name"; } + // Lists checkpoints of the specified model version. + rpc ListModelVersionCheckpoints(ListModelVersionCheckpointsRequest) + returns (ListModelVersionCheckpointsResponse) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/models/*}:listCheckpoints" + }; + option (google.api.method_signature) = "name"; + } + // Updates a Model. rpc UpdateModel(UpdateModelRequest) returns (Model) { option (google.api.http) = { @@ -460,6 +469,61 @@ message ListModelVersionsResponse { string next_page_token = 2; } +// Request message for +// [ModelService.ListModelVersionCheckpoints][google.cloud.aiplatform.v1beta1.ModelService.ListModelVersionCheckpoints]. +message ListModelVersionCheckpointsRequest { + // Required. The name of the model version to list checkpoints for. + // `projects/{project}/locations/{location}/models/{model}@{version}` + // Example: `projects/{project}/locations/{location}/models/{model}@2` + // or + // `projects/{project}/locations/{location}/models/{model}@golden` + // If no version ID or alias is specified, the latest version will be + // used. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Model" + } + ]; + + // Optional. The standard list page size. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The standard list page token. + // Typically obtained via + // [next_page_token][google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse.next_page_token] + // of the previous + // [ListModelVersionCheckpoints][google.cloud.aiplatform.v1beta1.ModelService.ListModelVersionCheckpoints] + // call. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// A proto representation of a Spanner-stored ModelVersionCheckpoint. +// The meaning of the fields is equivalent to their in-Spanner counterparts. +message ModelVersionCheckpoint { + // The ID of the checkpoint. + string checkpoint_id = 1; + + // The epoch of the checkpoint. + int64 epoch = 2; + + // The step of the checkpoint. + int64 step = 3; +} + +// Response message for +// [ModelService.ListModelVersionCheckpoints][google.cloud.aiplatform.v1beta1.ModelService.ListModelVersionCheckpoints] +message ListModelVersionCheckpointsResponse { + // List of Model Version checkpoints. + repeated ModelVersionCheckpoint checkpoints = 1; + + // A token to retrieve the next page of results. + // Pass to + // [ListModelVersionCheckpointsRequest.page_token][google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest.page_token] + // to obtain that page. + string next_page_token = 2; +} + // Request message for // [ModelService.UpdateModel][google.cloud.aiplatform.v1beta1.ModelService.UpdateModel]. message UpdateModelRequest { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/notebook_runtime.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/notebook_runtime.proto index 034653ff95fa..a01ec53184cd 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/notebook_runtime.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/notebook_runtime.proto @@ -67,8 +67,12 @@ message NotebookRuntimeTemplate { // The description of the NotebookRuntimeTemplate. string description = 3; - // Output only. The default template to use if not specified. - bool is_default = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Deprecated: This field has no behavior. Use + // notebook_runtime_type = 'ONE_CLICK' instead. + // + // The default template to use if not specified. + bool is_default = 4 + [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; // Optional. Immutable. The specification of a single machine for the // template. @@ -86,6 +90,15 @@ message NotebookRuntimeTemplate { // Optional. Network spec. NetworkSpec network_spec = 12 [(google.api.field_behavior) = OPTIONAL]; + // Deprecated: This field is ignored and the "Vertex AI Notebook Service + // Account" + // (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is + // used for the runtime workload identity. + // See + // https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account + // for more details. + // For NotebookExecutionJob, use NotebookExecutionJob.service_account instead. + // // The service account that the runtime workload runs as. // You can use any service account within the same project, but you // must have the service account user permission to use the instance. @@ -93,7 +106,7 @@ message NotebookRuntimeTemplate { // If not specified, the [Compute Engine default service // account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) // is used. - string service_account = 13; + string service_account = 13 [deprecated = true]; // Used to perform consistent read-modify-write updates. If not set, a blind // "overwrite" update happens. @@ -228,7 +241,15 @@ message NotebookRuntime { // The description of the NotebookRuntime. string description = 11; - // Output only. The service account that the NotebookRuntime workload runs as. + // Output only. Deprecated: This field is no longer used and the "Vertex AI + // Notebook Service Account" + // (service-PROJECT_NUMBER@gcp-sa-aiplatform-vm.iam.gserviceaccount.com) is + // used for the runtime workload identity. + // See + // https://cloud.google.com/iam/docs/service-agents#vertex-ai-notebook-service-account + // for more details. + // + // The service account that the NotebookRuntime workload runs as. string service_account = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The runtime (instance) state of the NotebookRuntime. @@ -272,10 +293,30 @@ message NotebookRuntime { NotebookRuntimeType notebook_runtime_type = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The specification of a single machine used by the notebook + // runtime. + MachineSpec machine_spec = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The specification of [persistent + // disk][https://cloud.google.com/compute/docs/disks/persistent-disks] + // attached to the notebook runtime as data disk storage. + PersistentDiskSpec data_persistent_disk_spec = 21 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Network spec of the notebook runtime. + NetworkSpec network_spec = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The idle shutdown configuration of the notebook runtime. NotebookIdleShutdownConfig idle_shutdown_config = 23 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. EUC configuration of the notebook runtime. + NotebookEucConfig euc_config = 24 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Runtime Shielded VM spec. + ShieldedVmConfig shielded_vm_config = 32 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Optional. The Compute Engine tags to add to runtime (see [Tagging // instances](https://cloud.google.com/vpc/docs/add-remove-network-tags)). repeated string network_tags = 25 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/prediction_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/prediction_service.proto index 10446ada90d1..f710f745291b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/prediction_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/prediction_service.proto @@ -730,6 +730,10 @@ message CountTokensResponse { // The total number of billable characters counted across all instances from // the request. int32 total_billable_characters = 2; + + // Output only. List of modalities that were processed in the request input. + repeated ModalityTokenCount prompt_tokens_details = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Request message for [PredictionService.GenerateContent]. @@ -851,6 +855,19 @@ message GenerateContentResponse { // content). int32 cached_content_token_count = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of modalities that were processed in the request input. + repeated ModalityTokenCount prompt_tokens_details = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of modalities of the cached content in the request + // input. + repeated ModalityTokenCount cache_tokens_details = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of modalities that were returned in the response. + repeated ModalityTokenCount candidates_tokens_details = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Output only. Generated candidates. 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 bc47db68d8f8..84f39671c00b 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 @@ -20,6 +20,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/openapi.proto"; import "google/protobuf/struct.proto"; +import "google/type/latlng.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; @@ -343,6 +344,9 @@ message ToolConfig { // Optional. Function calling config. FunctionCallingConfig function_calling_config = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Retrieval config. + RetrievalConfig retrieval_config = 2 [(google.api.field_behavior) = OPTIONAL]; } // Function calling config. @@ -377,6 +381,15 @@ message FunctionCallingConfig { [(google.api.field_behavior) = OPTIONAL]; } +// Retrieval config. +message RetrievalConfig { + // The location of the user. + optional google.type.LatLng lat_lng = 1; + + // The language code of the user. + optional string language_code = 2; +} + // Specifies the context retrieval config. message RagRetrievalConfig { // Config for Hybrid Search. diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/create/SyncCreateSetCredentialsProvider.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..a99904d48e99 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_GenAiCacheService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.aiplatform.v1.GenAiCacheServiceClient; +import com.google.cloud.aiplatform.v1.GenAiCacheServiceSettings; +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 + GenAiCacheServiceSettings genAiCacheServiceSettings = + GenAiCacheServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + GenAiCacheServiceClient genAiCacheServiceClient = + GenAiCacheServiceClient.create(genAiCacheServiceSettings); + } +} +// [END aiplatform_v1_generated_GenAiCacheService_Create_SetCredentialsProvider_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/create/SyncCreateSetEndpoint.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..3477702267ab --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_GenAiCacheService_Create_SetEndpoint_sync] +import com.google.cloud.aiplatform.v1.GenAiCacheServiceClient; +import com.google.cloud.aiplatform.v1.GenAiCacheServiceSettings; +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 + GenAiCacheServiceSettings genAiCacheServiceSettings = + GenAiCacheServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + GenAiCacheServiceClient genAiCacheServiceClient = + GenAiCacheServiceClient.create(genAiCacheServiceSettings); + } +} +// [END aiplatform_v1_generated_GenAiCacheService_Create_SetEndpoint_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/createcachedcontent/AsyncCreateCachedContent.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/createcachedcontent/AsyncCreateCachedContent.java new file mode 100644 index 000000000000..f0248523ee1e --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/createcachedcontent/AsyncCreateCachedContent.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_GenAiCacheService_CreateCachedContent_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.CachedContent; +import com.google.cloud.aiplatform.v1.CreateCachedContentRequest; +import com.google.cloud.aiplatform.v1.GenAiCacheServiceClient; +import com.google.cloud.aiplatform.v1.LocationName; + +public class AsyncCreateCachedContent { + + public static void main(String[] args) throws Exception { + asyncCreateCachedContent(); + } + + public static void asyncCreateCachedContent() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) { + CreateCachedContentRequest request = + CreateCachedContentRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setCachedContent(CachedContent.newBuilder().build()) + .build(); + ApiFuture future = + genAiCacheServiceClient.createCachedContentCallable().futureCall(request); + // Do something. + CachedContent response = future.get(); + } + } +} +// [END aiplatform_v1_generated_GenAiCacheService_CreateCachedContent_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/createcachedcontent/SyncCreateCachedContent.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/createcachedcontent/SyncCreateCachedContent.java new file mode 100644 index 000000000000..1be29ba07b62 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/createcachedcontent/SyncCreateCachedContent.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_GenAiCacheService_CreateCachedContent_sync] +import com.google.cloud.aiplatform.v1.CachedContent; +import com.google.cloud.aiplatform.v1.CreateCachedContentRequest; +import com.google.cloud.aiplatform.v1.GenAiCacheServiceClient; +import com.google.cloud.aiplatform.v1.LocationName; + +public class SyncCreateCachedContent { + + public static void main(String[] args) throws Exception { + syncCreateCachedContent(); + } + + public static void syncCreateCachedContent() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) { + CreateCachedContentRequest request = + CreateCachedContentRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setCachedContent(CachedContent.newBuilder().build()) + .build(); + CachedContent response = genAiCacheServiceClient.createCachedContent(request); + } + } +} +// [END aiplatform_v1_generated_GenAiCacheService_CreateCachedContent_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/createcachedcontent/SyncCreateCachedContentLocationnameCachedcontent.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/createcachedcontent/SyncCreateCachedContentLocationnameCachedcontent.java new file mode 100644 index 000000000000..442599c2e887 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/createcachedcontent/SyncCreateCachedContentLocationnameCachedcontent.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_GenAiCacheService_CreateCachedContent_LocationnameCachedcontent_sync] +import com.google.cloud.aiplatform.v1.CachedContent; +import com.google.cloud.aiplatform.v1.GenAiCacheServiceClient; +import com.google.cloud.aiplatform.v1.LocationName; + +public class SyncCreateCachedContentLocationnameCachedcontent { + + public static void main(String[] args) throws Exception { + syncCreateCachedContentLocationnameCachedcontent(); + } + + public static void syncCreateCachedContentLocationnameCachedcontent() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + CachedContent cachedContent = CachedContent.newBuilder().build(); + CachedContent response = genAiCacheServiceClient.createCachedContent(parent, cachedContent); + } + } +} +// [END aiplatform_v1_generated_GenAiCacheService_CreateCachedContent_LocationnameCachedcontent_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/createcachedcontent/SyncCreateCachedContentStringCachedcontent.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/createcachedcontent/SyncCreateCachedContentStringCachedcontent.java new file mode 100644 index 000000000000..3ea031ed4929 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/createcachedcontent/SyncCreateCachedContentStringCachedcontent.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_GenAiCacheService_CreateCachedContent_StringCachedcontent_sync] +import com.google.cloud.aiplatform.v1.CachedContent; +import com.google.cloud.aiplatform.v1.GenAiCacheServiceClient; +import com.google.cloud.aiplatform.v1.LocationName; + +public class SyncCreateCachedContentStringCachedcontent { + + public static void main(String[] args) throws Exception { + syncCreateCachedContentStringCachedcontent(); + } + + public static void syncCreateCachedContentStringCachedcontent() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + CachedContent cachedContent = CachedContent.newBuilder().build(); + CachedContent response = genAiCacheServiceClient.createCachedContent(parent, cachedContent); + } + } +} +// [END aiplatform_v1_generated_GenAiCacheService_CreateCachedContent_StringCachedcontent_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/deletecachedcontent/AsyncDeleteCachedContent.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/deletecachedcontent/AsyncDeleteCachedContent.java new file mode 100644 index 000000000000..91420bf3e4ff --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/deletecachedcontent/AsyncDeleteCachedContent.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_GenAiCacheService_DeleteCachedContent_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.CachedContentName; +import com.google.cloud.aiplatform.v1.DeleteCachedContentRequest; +import com.google.cloud.aiplatform.v1.GenAiCacheServiceClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteCachedContent { + + public static void main(String[] args) throws Exception { + asyncDeleteCachedContent(); + } + + public static void asyncDeleteCachedContent() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) { + DeleteCachedContentRequest request = + DeleteCachedContentRequest.newBuilder() + .setName( + CachedContentName.of("[PROJECT]", "[LOCATION]", "[CACHED_CONTENT]").toString()) + .build(); + ApiFuture future = + genAiCacheServiceClient.deleteCachedContentCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END aiplatform_v1_generated_GenAiCacheService_DeleteCachedContent_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/deletecachedcontent/SyncDeleteCachedContent.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/deletecachedcontent/SyncDeleteCachedContent.java new file mode 100644 index 000000000000..104b24c6304b --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/deletecachedcontent/SyncDeleteCachedContent.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_GenAiCacheService_DeleteCachedContent_sync] +import com.google.cloud.aiplatform.v1.CachedContentName; +import com.google.cloud.aiplatform.v1.DeleteCachedContentRequest; +import com.google.cloud.aiplatform.v1.GenAiCacheServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteCachedContent { + + public static void main(String[] args) throws Exception { + syncDeleteCachedContent(); + } + + public static void syncDeleteCachedContent() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) { + DeleteCachedContentRequest request = + DeleteCachedContentRequest.newBuilder() + .setName( + CachedContentName.of("[PROJECT]", "[LOCATION]", "[CACHED_CONTENT]").toString()) + .build(); + genAiCacheServiceClient.deleteCachedContent(request); + } + } +} +// [END aiplatform_v1_generated_GenAiCacheService_DeleteCachedContent_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/deletecachedcontent/SyncDeleteCachedContentCachedcontentname.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/deletecachedcontent/SyncDeleteCachedContentCachedcontentname.java new file mode 100644 index 000000000000..cc7ff3d7a17f --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/deletecachedcontent/SyncDeleteCachedContentCachedcontentname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_GenAiCacheService_DeleteCachedContent_Cachedcontentname_sync] +import com.google.cloud.aiplatform.v1.CachedContentName; +import com.google.cloud.aiplatform.v1.GenAiCacheServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteCachedContentCachedcontentname { + + public static void main(String[] args) throws Exception { + syncDeleteCachedContentCachedcontentname(); + } + + public static void syncDeleteCachedContentCachedcontentname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) { + CachedContentName name = CachedContentName.of("[PROJECT]", "[LOCATION]", "[CACHED_CONTENT]"); + genAiCacheServiceClient.deleteCachedContent(name); + } + } +} +// [END aiplatform_v1_generated_GenAiCacheService_DeleteCachedContent_Cachedcontentname_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/deletecachedcontent/SyncDeleteCachedContentString.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/deletecachedcontent/SyncDeleteCachedContentString.java new file mode 100644 index 000000000000..da8f6096df5e --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/deletecachedcontent/SyncDeleteCachedContentString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_GenAiCacheService_DeleteCachedContent_String_sync] +import com.google.cloud.aiplatform.v1.CachedContentName; +import com.google.cloud.aiplatform.v1.GenAiCacheServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteCachedContentString { + + public static void main(String[] args) throws Exception { + syncDeleteCachedContentString(); + } + + public static void syncDeleteCachedContentString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) { + String name = CachedContentName.of("[PROJECT]", "[LOCATION]", "[CACHED_CONTENT]").toString(); + genAiCacheServiceClient.deleteCachedContent(name); + } + } +} +// [END aiplatform_v1_generated_GenAiCacheService_DeleteCachedContent_String_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/getcachedcontent/AsyncGetCachedContent.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/getcachedcontent/AsyncGetCachedContent.java new file mode 100644 index 000000000000..3468294f3086 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/getcachedcontent/AsyncGetCachedContent.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_GenAiCacheService_GetCachedContent_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.CachedContent; +import com.google.cloud.aiplatform.v1.CachedContentName; +import com.google.cloud.aiplatform.v1.GenAiCacheServiceClient; +import com.google.cloud.aiplatform.v1.GetCachedContentRequest; + +public class AsyncGetCachedContent { + + public static void main(String[] args) throws Exception { + asyncGetCachedContent(); + } + + public static void asyncGetCachedContent() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) { + GetCachedContentRequest request = + GetCachedContentRequest.newBuilder() + .setName( + CachedContentName.of("[PROJECT]", "[LOCATION]", "[CACHED_CONTENT]").toString()) + .build(); + ApiFuture future = + genAiCacheServiceClient.getCachedContentCallable().futureCall(request); + // Do something. + CachedContent response = future.get(); + } + } +} +// [END aiplatform_v1_generated_GenAiCacheService_GetCachedContent_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/getcachedcontent/SyncGetCachedContent.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/getcachedcontent/SyncGetCachedContent.java new file mode 100644 index 000000000000..169c57cdfe20 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/getcachedcontent/SyncGetCachedContent.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_GenAiCacheService_GetCachedContent_sync] +import com.google.cloud.aiplatform.v1.CachedContent; +import com.google.cloud.aiplatform.v1.CachedContentName; +import com.google.cloud.aiplatform.v1.GenAiCacheServiceClient; +import com.google.cloud.aiplatform.v1.GetCachedContentRequest; + +public class SyncGetCachedContent { + + public static void main(String[] args) throws Exception { + syncGetCachedContent(); + } + + public static void syncGetCachedContent() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) { + GetCachedContentRequest request = + GetCachedContentRequest.newBuilder() + .setName( + CachedContentName.of("[PROJECT]", "[LOCATION]", "[CACHED_CONTENT]").toString()) + .build(); + CachedContent response = genAiCacheServiceClient.getCachedContent(request); + } + } +} +// [END aiplatform_v1_generated_GenAiCacheService_GetCachedContent_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/getcachedcontent/SyncGetCachedContentCachedcontentname.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/getcachedcontent/SyncGetCachedContentCachedcontentname.java new file mode 100644 index 000000000000..bdc2d2678a63 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/getcachedcontent/SyncGetCachedContentCachedcontentname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_GenAiCacheService_GetCachedContent_Cachedcontentname_sync] +import com.google.cloud.aiplatform.v1.CachedContent; +import com.google.cloud.aiplatform.v1.CachedContentName; +import com.google.cloud.aiplatform.v1.GenAiCacheServiceClient; + +public class SyncGetCachedContentCachedcontentname { + + public static void main(String[] args) throws Exception { + syncGetCachedContentCachedcontentname(); + } + + public static void syncGetCachedContentCachedcontentname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) { + CachedContentName name = CachedContentName.of("[PROJECT]", "[LOCATION]", "[CACHED_CONTENT]"); + CachedContent response = genAiCacheServiceClient.getCachedContent(name); + } + } +} +// [END aiplatform_v1_generated_GenAiCacheService_GetCachedContent_Cachedcontentname_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/getcachedcontent/SyncGetCachedContentString.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/getcachedcontent/SyncGetCachedContentString.java new file mode 100644 index 000000000000..b9ac5501e5cf --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/getcachedcontent/SyncGetCachedContentString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_GenAiCacheService_GetCachedContent_String_sync] +import com.google.cloud.aiplatform.v1.CachedContent; +import com.google.cloud.aiplatform.v1.CachedContentName; +import com.google.cloud.aiplatform.v1.GenAiCacheServiceClient; + +public class SyncGetCachedContentString { + + public static void main(String[] args) throws Exception { + syncGetCachedContentString(); + } + + public static void syncGetCachedContentString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) { + String name = CachedContentName.of("[PROJECT]", "[LOCATION]", "[CACHED_CONTENT]").toString(); + CachedContent response = genAiCacheServiceClient.getCachedContent(name); + } + } +} +// [END aiplatform_v1_generated_GenAiCacheService_GetCachedContent_String_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/getiampolicy/AsyncGetIamPolicy.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 000000000000..77d4811a14fb --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_GenAiCacheService_GetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.EndpointName; +import com.google.cloud.aiplatform.v1.GenAiCacheServiceClient; +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 (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = genAiCacheServiceClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END aiplatform_v1_generated_GenAiCacheService_GetIamPolicy_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/getiampolicy/SyncGetIamPolicy.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 000000000000..f4e523590ed5 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_GenAiCacheService_GetIamPolicy_sync] +import com.google.cloud.aiplatform.v1.EndpointName; +import com.google.cloud.aiplatform.v1.GenAiCacheServiceClient; +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 (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = genAiCacheServiceClient.getIamPolicy(request); + } + } +} +// [END aiplatform_v1_generated_GenAiCacheService_GetIamPolicy_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/getlocation/AsyncGetLocation.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..db9725e9b164 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/getlocation/AsyncGetLocation.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_GenAiCacheService_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.GenAiCacheServiceClient; +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 (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = + genAiCacheServiceClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END aiplatform_v1_generated_GenAiCacheService_GetLocation_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/getlocation/SyncGetLocation.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..fe7b74b77d98 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/getlocation/SyncGetLocation.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_GenAiCacheService_GetLocation_sync] +import com.google.cloud.aiplatform.v1.GenAiCacheServiceClient; +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 (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = genAiCacheServiceClient.getLocation(request); + } + } +} +// [END aiplatform_v1_generated_GenAiCacheService_GetLocation_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/listcachedcontents/AsyncListCachedContents.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/listcachedcontents/AsyncListCachedContents.java new file mode 100644 index 000000000000..924f634e163a --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/listcachedcontents/AsyncListCachedContents.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_GenAiCacheService_ListCachedContents_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.CachedContent; +import com.google.cloud.aiplatform.v1.GenAiCacheServiceClient; +import com.google.cloud.aiplatform.v1.ListCachedContentsRequest; +import com.google.cloud.aiplatform.v1.LocationName; + +public class AsyncListCachedContents { + + public static void main(String[] args) throws Exception { + asyncListCachedContents(); + } + + public static void asyncListCachedContents() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) { + ListCachedContentsRequest request = + ListCachedContentsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + genAiCacheServiceClient.listCachedContentsPagedCallable().futureCall(request); + // Do something. + for (CachedContent element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1_generated_GenAiCacheService_ListCachedContents_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/listcachedcontents/AsyncListCachedContentsPaged.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/listcachedcontents/AsyncListCachedContentsPaged.java new file mode 100644 index 000000000000..78acf5ceec11 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/listcachedcontents/AsyncListCachedContentsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_GenAiCacheService_ListCachedContents_Paged_async] +import com.google.cloud.aiplatform.v1.CachedContent; +import com.google.cloud.aiplatform.v1.GenAiCacheServiceClient; +import com.google.cloud.aiplatform.v1.ListCachedContentsRequest; +import com.google.cloud.aiplatform.v1.ListCachedContentsResponse; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListCachedContentsPaged { + + public static void main(String[] args) throws Exception { + asyncListCachedContentsPaged(); + } + + public static void asyncListCachedContentsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) { + ListCachedContentsRequest request = + ListCachedContentsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListCachedContentsResponse response = + genAiCacheServiceClient.listCachedContentsCallable().call(request); + for (CachedContent element : response.getCachedContentsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END aiplatform_v1_generated_GenAiCacheService_ListCachedContents_Paged_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/listcachedcontents/SyncListCachedContents.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/listcachedcontents/SyncListCachedContents.java new file mode 100644 index 000000000000..5148e80334ba --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/listcachedcontents/SyncListCachedContents.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_GenAiCacheService_ListCachedContents_sync] +import com.google.cloud.aiplatform.v1.CachedContent; +import com.google.cloud.aiplatform.v1.GenAiCacheServiceClient; +import com.google.cloud.aiplatform.v1.ListCachedContentsRequest; +import com.google.cloud.aiplatform.v1.LocationName; + +public class SyncListCachedContents { + + public static void main(String[] args) throws Exception { + syncListCachedContents(); + } + + public static void syncListCachedContents() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) { + ListCachedContentsRequest request = + ListCachedContentsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (CachedContent element : + genAiCacheServiceClient.listCachedContents(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1_generated_GenAiCacheService_ListCachedContents_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/listcachedcontents/SyncListCachedContentsLocationname.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/listcachedcontents/SyncListCachedContentsLocationname.java new file mode 100644 index 000000000000..336898df89a2 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/listcachedcontents/SyncListCachedContentsLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_GenAiCacheService_ListCachedContents_Locationname_sync] +import com.google.cloud.aiplatform.v1.CachedContent; +import com.google.cloud.aiplatform.v1.GenAiCacheServiceClient; +import com.google.cloud.aiplatform.v1.LocationName; + +public class SyncListCachedContentsLocationname { + + public static void main(String[] args) throws Exception { + syncListCachedContentsLocationname(); + } + + public static void syncListCachedContentsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (CachedContent element : + genAiCacheServiceClient.listCachedContents(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1_generated_GenAiCacheService_ListCachedContents_Locationname_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/listcachedcontents/SyncListCachedContentsString.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/listcachedcontents/SyncListCachedContentsString.java new file mode 100644 index 000000000000..eddcd082d2ea --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/listcachedcontents/SyncListCachedContentsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_GenAiCacheService_ListCachedContents_String_sync] +import com.google.cloud.aiplatform.v1.CachedContent; +import com.google.cloud.aiplatform.v1.GenAiCacheServiceClient; +import com.google.cloud.aiplatform.v1.LocationName; + +public class SyncListCachedContentsString { + + public static void main(String[] args) throws Exception { + syncListCachedContentsString(); + } + + public static void syncListCachedContentsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (CachedContent element : + genAiCacheServiceClient.listCachedContents(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1_generated_GenAiCacheService_ListCachedContents_String_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/listlocations/AsyncListLocations.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..de934d09d719 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/listlocations/AsyncListLocations.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_GenAiCacheService_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.GenAiCacheServiceClient; +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 (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + genAiCacheServiceClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1_generated_GenAiCacheService_ListLocations_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/listlocations/AsyncListLocationsPaged.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..fb7a9e0e5ea7 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_GenAiCacheService_ListLocations_Paged_async] +import com.google.cloud.aiplatform.v1.GenAiCacheServiceClient; +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 (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = + genAiCacheServiceClient.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_GenAiCacheService_ListLocations_Paged_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/listlocations/SyncListLocations.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..3b577c95e179 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/listlocations/SyncListLocations.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_GenAiCacheService_ListLocations_sync] +import com.google.cloud.aiplatform.v1.GenAiCacheServiceClient; +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 (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : genAiCacheServiceClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1_generated_GenAiCacheService_ListLocations_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/setiampolicy/AsyncSetIamPolicy.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 000000000000..c31b5ecb6011 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/setiampolicy/AsyncSetIamPolicy.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_GenAiCacheService_SetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.EndpointName; +import com.google.cloud.aiplatform.v1.GenAiCacheServiceClient; +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 (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = genAiCacheServiceClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END aiplatform_v1_generated_GenAiCacheService_SetIamPolicy_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/setiampolicy/SyncSetIamPolicy.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 000000000000..4d3f5da3da42 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/setiampolicy/SyncSetIamPolicy.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_GenAiCacheService_SetIamPolicy_sync] +import com.google.cloud.aiplatform.v1.EndpointName; +import com.google.cloud.aiplatform.v1.GenAiCacheServiceClient; +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 (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = genAiCacheServiceClient.setIamPolicy(request); + } + } +} +// [END aiplatform_v1_generated_GenAiCacheService_SetIamPolicy_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/testiampermissions/AsyncTestIamPermissions.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 000000000000..22e01618377a --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/testiampermissions/AsyncTestIamPermissions.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_GenAiCacheService_TestIamPermissions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.EndpointName; +import com.google.cloud.aiplatform.v1.GenAiCacheServiceClient; +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 (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + genAiCacheServiceClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END aiplatform_v1_generated_GenAiCacheService_TestIamPermissions_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/testiampermissions/SyncTestIamPermissions.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 000000000000..78755a2bed64 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/testiampermissions/SyncTestIamPermissions.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_GenAiCacheService_TestIamPermissions_sync] +import com.google.cloud.aiplatform.v1.EndpointName; +import com.google.cloud.aiplatform.v1.GenAiCacheServiceClient; +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 (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = genAiCacheServiceClient.testIamPermissions(request); + } + } +} +// [END aiplatform_v1_generated_GenAiCacheService_TestIamPermissions_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/updatecachedcontent/AsyncUpdateCachedContent.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/updatecachedcontent/AsyncUpdateCachedContent.java new file mode 100644 index 000000000000..709135ccd432 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/updatecachedcontent/AsyncUpdateCachedContent.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_GenAiCacheService_UpdateCachedContent_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.CachedContent; +import com.google.cloud.aiplatform.v1.GenAiCacheServiceClient; +import com.google.cloud.aiplatform.v1.UpdateCachedContentRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateCachedContent { + + public static void main(String[] args) throws Exception { + asyncUpdateCachedContent(); + } + + public static void asyncUpdateCachedContent() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) { + UpdateCachedContentRequest request = + UpdateCachedContentRequest.newBuilder() + .setCachedContent(CachedContent.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + genAiCacheServiceClient.updateCachedContentCallable().futureCall(request); + // Do something. + CachedContent response = future.get(); + } + } +} +// [END aiplatform_v1_generated_GenAiCacheService_UpdateCachedContent_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/updatecachedcontent/SyncUpdateCachedContent.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/updatecachedcontent/SyncUpdateCachedContent.java new file mode 100644 index 000000000000..04c7f8bbdb75 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/updatecachedcontent/SyncUpdateCachedContent.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_GenAiCacheService_UpdateCachedContent_sync] +import com.google.cloud.aiplatform.v1.CachedContent; +import com.google.cloud.aiplatform.v1.GenAiCacheServiceClient; +import com.google.cloud.aiplatform.v1.UpdateCachedContentRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCachedContent { + + public static void main(String[] args) throws Exception { + syncUpdateCachedContent(); + } + + public static void syncUpdateCachedContent() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) { + UpdateCachedContentRequest request = + UpdateCachedContentRequest.newBuilder() + .setCachedContent(CachedContent.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + CachedContent response = genAiCacheServiceClient.updateCachedContent(request); + } + } +} +// [END aiplatform_v1_generated_GenAiCacheService_UpdateCachedContent_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/updatecachedcontent/SyncUpdateCachedContentCachedcontentFieldmask.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/updatecachedcontent/SyncUpdateCachedContentCachedcontentFieldmask.java new file mode 100644 index 000000000000..9808d6dff86a --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservice/updatecachedcontent/SyncUpdateCachedContentCachedcontentFieldmask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_GenAiCacheService_UpdateCachedContent_CachedcontentFieldmask_sync] +import com.google.cloud.aiplatform.v1.CachedContent; +import com.google.cloud.aiplatform.v1.GenAiCacheServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCachedContentCachedcontentFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateCachedContentCachedcontentFieldmask(); + } + + public static void syncUpdateCachedContentCachedcontentFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GenAiCacheServiceClient genAiCacheServiceClient = GenAiCacheServiceClient.create()) { + CachedContent cachedContent = CachedContent.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + CachedContent response = + genAiCacheServiceClient.updateCachedContent(cachedContent, updateMask); + } + } +} +// [END aiplatform_v1_generated_GenAiCacheService_UpdateCachedContent_CachedcontentFieldmask_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservicesettings/createcachedcontent/SyncCreateCachedContent.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservicesettings/createcachedcontent/SyncCreateCachedContent.java new file mode 100644 index 000000000000..4a3d560db011 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/genaicacheservicesettings/createcachedcontent/SyncCreateCachedContent.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_GenAiCacheServiceSettings_CreateCachedContent_sync] +import com.google.cloud.aiplatform.v1.GenAiCacheServiceSettings; +import java.time.Duration; + +public class SyncCreateCachedContent { + + public static void main(String[] args) throws Exception { + syncCreateCachedContent(); + } + + public static void syncCreateCachedContent() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + GenAiCacheServiceSettings.Builder genAiCacheServiceSettingsBuilder = + GenAiCacheServiceSettings.newBuilder(); + genAiCacheServiceSettingsBuilder + .createCachedContentSettings() + .setRetrySettings( + genAiCacheServiceSettingsBuilder + .createCachedContentSettings() + .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()); + GenAiCacheServiceSettings genAiCacheServiceSettings = genAiCacheServiceSettingsBuilder.build(); + } +} +// [END aiplatform_v1_generated_GenAiCacheServiceSettings_CreateCachedContent_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/modelservice/listmodelversioncheckpoints/AsyncListModelVersionCheckpoints.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/modelservice/listmodelversioncheckpoints/AsyncListModelVersionCheckpoints.java new file mode 100644 index 000000000000..e3f1f0f4c106 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/modelservice/listmodelversioncheckpoints/AsyncListModelVersionCheckpoints.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ModelService_ListModelVersionCheckpoints_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest; +import com.google.cloud.aiplatform.v1.ModelName; +import com.google.cloud.aiplatform.v1.ModelServiceClient; +import com.google.cloud.aiplatform.v1.ModelVersionCheckpoint; + +public class AsyncListModelVersionCheckpoints { + + public static void main(String[] args) throws Exception { + asyncListModelVersionCheckpoints(); + } + + public static void asyncListModelVersionCheckpoints() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) { + ListModelVersionCheckpointsRequest request = + ListModelVersionCheckpointsRequest.newBuilder() + .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + modelServiceClient.listModelVersionCheckpointsPagedCallable().futureCall(request); + // Do something. + for (ModelVersionCheckpoint element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1_generated_ModelService_ListModelVersionCheckpoints_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/modelservice/listmodelversioncheckpoints/AsyncListModelVersionCheckpointsPaged.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/modelservice/listmodelversioncheckpoints/AsyncListModelVersionCheckpointsPaged.java new file mode 100644 index 000000000000..0d047325474d --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/modelservice/listmodelversioncheckpoints/AsyncListModelVersionCheckpointsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ModelService_ListModelVersionCheckpoints_Paged_async] +import com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest; +import com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse; +import com.google.cloud.aiplatform.v1.ModelName; +import com.google.cloud.aiplatform.v1.ModelServiceClient; +import com.google.cloud.aiplatform.v1.ModelVersionCheckpoint; +import com.google.common.base.Strings; + +public class AsyncListModelVersionCheckpointsPaged { + + public static void main(String[] args) throws Exception { + asyncListModelVersionCheckpointsPaged(); + } + + public static void asyncListModelVersionCheckpointsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) { + ListModelVersionCheckpointsRequest request = + ListModelVersionCheckpointsRequest.newBuilder() + .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListModelVersionCheckpointsResponse response = + modelServiceClient.listModelVersionCheckpointsCallable().call(request); + for (ModelVersionCheckpoint element : response.getCheckpointsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END aiplatform_v1_generated_ModelService_ListModelVersionCheckpoints_Paged_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/modelservice/listmodelversioncheckpoints/SyncListModelVersionCheckpoints.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/modelservice/listmodelversioncheckpoints/SyncListModelVersionCheckpoints.java new file mode 100644 index 000000000000..f9a010a93ff5 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/modelservice/listmodelversioncheckpoints/SyncListModelVersionCheckpoints.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ModelService_ListModelVersionCheckpoints_sync] +import com.google.cloud.aiplatform.v1.ListModelVersionCheckpointsRequest; +import com.google.cloud.aiplatform.v1.ModelName; +import com.google.cloud.aiplatform.v1.ModelServiceClient; +import com.google.cloud.aiplatform.v1.ModelVersionCheckpoint; + +public class SyncListModelVersionCheckpoints { + + public static void main(String[] args) throws Exception { + syncListModelVersionCheckpoints(); + } + + public static void syncListModelVersionCheckpoints() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) { + ListModelVersionCheckpointsRequest request = + ListModelVersionCheckpointsRequest.newBuilder() + .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (ModelVersionCheckpoint element : + modelServiceClient.listModelVersionCheckpoints(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1_generated_ModelService_ListModelVersionCheckpoints_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/modelservice/listmodelversioncheckpoints/SyncListModelVersionCheckpointsModelname.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/modelservice/listmodelversioncheckpoints/SyncListModelVersionCheckpointsModelname.java new file mode 100644 index 000000000000..bea134156ea7 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/modelservice/listmodelversioncheckpoints/SyncListModelVersionCheckpointsModelname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ModelService_ListModelVersionCheckpoints_Modelname_sync] +import com.google.cloud.aiplatform.v1.ModelName; +import com.google.cloud.aiplatform.v1.ModelServiceClient; +import com.google.cloud.aiplatform.v1.ModelVersionCheckpoint; + +public class SyncListModelVersionCheckpointsModelname { + + public static void main(String[] args) throws Exception { + syncListModelVersionCheckpointsModelname(); + } + + public static void syncListModelVersionCheckpointsModelname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) { + ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]"); + for (ModelVersionCheckpoint element : + modelServiceClient.listModelVersionCheckpoints(name).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1_generated_ModelService_ListModelVersionCheckpoints_Modelname_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/modelservice/listmodelversioncheckpoints/SyncListModelVersionCheckpointsString.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/modelservice/listmodelversioncheckpoints/SyncListModelVersionCheckpointsString.java new file mode 100644 index 000000000000..b5b86eda5842 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/modelservice/listmodelversioncheckpoints/SyncListModelVersionCheckpointsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ModelService_ListModelVersionCheckpoints_String_sync] +import com.google.cloud.aiplatform.v1.ModelName; +import com.google.cloud.aiplatform.v1.ModelServiceClient; +import com.google.cloud.aiplatform.v1.ModelVersionCheckpoint; + +public class SyncListModelVersionCheckpointsString { + + public static void main(String[] args) throws Exception { + syncListModelVersionCheckpointsString(); + } + + public static void syncListModelVersionCheckpointsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) { + String name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString(); + for (ModelVersionCheckpoint element : + modelServiceClient.listModelVersionCheckpoints(name).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1_generated_ModelService_ListModelVersionCheckpoints_String_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/predictionservice/generatecontent/AsyncGenerateContent.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/predictionservice/generatecontent/AsyncGenerateContent.java index 187270c99b8d..2d81a6c3c853 100644 --- a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/predictionservice/generatecontent/AsyncGenerateContent.java +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/predictionservice/generatecontent/AsyncGenerateContent.java @@ -18,6 +18,7 @@ // [START aiplatform_v1_generated_PredictionService_GenerateContent_async] import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.CachedContentName; import com.google.cloud.aiplatform.v1.Content; import com.google.cloud.aiplatform.v1.GenerateContentRequest; import com.google.cloud.aiplatform.v1.GenerateContentResponse; @@ -47,6 +48,8 @@ public static void asyncGenerateContent() throws Exception { .setModel("model104069929") .addAllContents(new ArrayList()) .setSystemInstruction(Content.newBuilder().build()) + .setCachedContent( + CachedContentName.of("[PROJECT]", "[LOCATION]", "[CACHED_CONTENT]").toString()) .addAllTools(new ArrayList()) .setToolConfig(ToolConfig.newBuilder().build()) .putAllLabels(new HashMap()) diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/predictionservice/generatecontent/SyncGenerateContent.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/predictionservice/generatecontent/SyncGenerateContent.java index 6f770a6d9c64..8af963fa8365 100644 --- a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/predictionservice/generatecontent/SyncGenerateContent.java +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/predictionservice/generatecontent/SyncGenerateContent.java @@ -17,6 +17,7 @@ package com.google.cloud.aiplatform.v1.samples; // [START aiplatform_v1_generated_PredictionService_GenerateContent_sync] +import com.google.cloud.aiplatform.v1.CachedContentName; import com.google.cloud.aiplatform.v1.Content; import com.google.cloud.aiplatform.v1.GenerateContentRequest; import com.google.cloud.aiplatform.v1.GenerateContentResponse; @@ -46,6 +47,8 @@ public static void syncGenerateContent() throws Exception { .setModel("model104069929") .addAllContents(new ArrayList()) .setSystemInstruction(Content.newBuilder().build()) + .setCachedContent( + CachedContentName.of("[PROJECT]", "[LOCATION]", "[CACHED_CONTENT]").toString()) .addAllTools(new ArrayList()) .setToolConfig(ToolConfig.newBuilder().build()) .putAllLabels(new HashMap()) diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/predictionservice/streamgeneratecontent/AsyncStreamGenerateContent.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/predictionservice/streamgeneratecontent/AsyncStreamGenerateContent.java index 92284a28a826..71e2efba0bff 100644 --- a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/predictionservice/streamgeneratecontent/AsyncStreamGenerateContent.java +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/predictionservice/streamgeneratecontent/AsyncStreamGenerateContent.java @@ -18,6 +18,7 @@ // [START aiplatform_v1_generated_PredictionService_StreamGenerateContent_async] import com.google.api.gax.rpc.ServerStream; +import com.google.cloud.aiplatform.v1.CachedContentName; import com.google.cloud.aiplatform.v1.Content; import com.google.cloud.aiplatform.v1.GenerateContentRequest; import com.google.cloud.aiplatform.v1.GenerateContentResponse; @@ -47,6 +48,8 @@ public static void asyncStreamGenerateContent() throws Exception { .setModel("model104069929") .addAllContents(new ArrayList()) .setSystemInstruction(Content.newBuilder().build()) + .setCachedContent( + CachedContentName.of("[PROJECT]", "[LOCATION]", "[CACHED_CONTENT]").toString()) .addAllTools(new ArrayList()) .setToolConfig(ToolConfig.newBuilder().build()) .putAllLabels(new HashMap()) diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/create/SyncCreateSetCredentialsProvider.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..0897eb4efd08 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineExecutionService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceClient; +import com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceSettings; +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 + ReasoningEngineExecutionServiceSettings reasoningEngineExecutionServiceSettings = + ReasoningEngineExecutionServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient = + ReasoningEngineExecutionServiceClient.create(reasoningEngineExecutionServiceSettings); + } +} +// [END aiplatform_v1_generated_ReasoningEngineExecutionService_Create_SetCredentialsProvider_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/create/SyncCreateSetEndpoint.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..ad9dd3edb2ab --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineExecutionService_Create_SetEndpoint_sync] +import com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceClient; +import com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceSettings; +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 + ReasoningEngineExecutionServiceSettings reasoningEngineExecutionServiceSettings = + ReasoningEngineExecutionServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient = + ReasoningEngineExecutionServiceClient.create(reasoningEngineExecutionServiceSettings); + } +} +// [END aiplatform_v1_generated_ReasoningEngineExecutionService_Create_SetEndpoint_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/getiampolicy/AsyncGetIamPolicy.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 000000000000..57cd11f1fa7b --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineExecutionService_GetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.EndpointName; +import com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceClient; +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 (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient = + ReasoningEngineExecutionServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = + reasoningEngineExecutionServiceClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineExecutionService_GetIamPolicy_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/getiampolicy/SyncGetIamPolicy.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 000000000000..7455e41d75c1 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineExecutionService_GetIamPolicy_sync] +import com.google.cloud.aiplatform.v1.EndpointName; +import com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceClient; +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 (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient = + ReasoningEngineExecutionServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = reasoningEngineExecutionServiceClient.getIamPolicy(request); + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineExecutionService_GetIamPolicy_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/getlocation/AsyncGetLocation.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..fe943fa3210a --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/getlocation/AsyncGetLocation.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineExecutionService_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceClient; +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 (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient = + ReasoningEngineExecutionServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = + reasoningEngineExecutionServiceClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineExecutionService_GetLocation_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/getlocation/SyncGetLocation.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..431987f57919 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/getlocation/SyncGetLocation.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineExecutionService_GetLocation_sync] +import com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceClient; +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 (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient = + ReasoningEngineExecutionServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = reasoningEngineExecutionServiceClient.getLocation(request); + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineExecutionService_GetLocation_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/listlocations/AsyncListLocations.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..92c59a8b504c --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/listlocations/AsyncListLocations.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineExecutionService_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceClient; +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 (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient = + ReasoningEngineExecutionServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + reasoningEngineExecutionServiceClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineExecutionService_ListLocations_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/listlocations/AsyncListLocationsPaged.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..0575f643084d --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineExecutionService_ListLocations_Paged_async] +import com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceClient; +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 (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient = + ReasoningEngineExecutionServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = + reasoningEngineExecutionServiceClient.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_ReasoningEngineExecutionService_ListLocations_Paged_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/listlocations/SyncListLocations.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..38f79db2ab18 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/listlocations/SyncListLocations.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineExecutionService_ListLocations_sync] +import com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceClient; +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 (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient = + ReasoningEngineExecutionServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : + reasoningEngineExecutionServiceClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineExecutionService_ListLocations_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/queryreasoningengine/AsyncQueryReasoningEngine.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/queryreasoningengine/AsyncQueryReasoningEngine.java new file mode 100644 index 000000000000..6c735812700f --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/queryreasoningengine/AsyncQueryReasoningEngine.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineExecutionService_QueryReasoningEngine_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest; +import com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse; +import com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceClient; +import com.google.cloud.aiplatform.v1.ReasoningEngineName; +import com.google.protobuf.Struct; + +public class AsyncQueryReasoningEngine { + + public static void main(String[] args) throws Exception { + asyncQueryReasoningEngine(); + } + + public static void asyncQueryReasoningEngine() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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()) { + QueryReasoningEngineRequest request = + QueryReasoningEngineRequest.newBuilder() + .setName( + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]") + .toString()) + .setInput(Struct.newBuilder().build()) + .setClassMethod("classMethod-937857927") + .build(); + ApiFuture future = + reasoningEngineExecutionServiceClient.queryReasoningEngineCallable().futureCall(request); + // Do something. + QueryReasoningEngineResponse response = future.get(); + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineExecutionService_QueryReasoningEngine_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/queryreasoningengine/SyncQueryReasoningEngine.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/queryreasoningengine/SyncQueryReasoningEngine.java new file mode 100644 index 000000000000..952bf2fdd895 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/queryreasoningengine/SyncQueryReasoningEngine.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineExecutionService_QueryReasoningEngine_sync] +import com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest; +import com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse; +import com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceClient; +import com.google.cloud.aiplatform.v1.ReasoningEngineName; +import com.google.protobuf.Struct; + +public class SyncQueryReasoningEngine { + + public static void main(String[] args) throws Exception { + syncQueryReasoningEngine(); + } + + public static void syncQueryReasoningEngine() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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()) { + QueryReasoningEngineRequest request = + QueryReasoningEngineRequest.newBuilder() + .setName( + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]") + .toString()) + .setInput(Struct.newBuilder().build()) + .setClassMethod("classMethod-937857927") + .build(); + QueryReasoningEngineResponse response = + reasoningEngineExecutionServiceClient.queryReasoningEngine(request); + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineExecutionService_QueryReasoningEngine_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/setiampolicy/AsyncSetIamPolicy.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 000000000000..a3883f7b1944 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/setiampolicy/AsyncSetIamPolicy.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineExecutionService_SetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.EndpointName; +import com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceClient; +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 (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient = + ReasoningEngineExecutionServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + reasoningEngineExecutionServiceClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineExecutionService_SetIamPolicy_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/setiampolicy/SyncSetIamPolicy.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 000000000000..59b84c52b3d2 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/setiampolicy/SyncSetIamPolicy.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineExecutionService_SetIamPolicy_sync] +import com.google.cloud.aiplatform.v1.EndpointName; +import com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceClient; +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 (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient = + ReasoningEngineExecutionServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = reasoningEngineExecutionServiceClient.setIamPolicy(request); + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineExecutionService_SetIamPolicy_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/streamqueryreasoningengine/AsyncStreamQueryReasoningEngine.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/streamqueryreasoningengine/AsyncStreamQueryReasoningEngine.java new file mode 100644 index 000000000000..40abadad4be5 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/streamqueryreasoningengine/AsyncStreamQueryReasoningEngine.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineExecutionService_StreamQueryReasoningEngine_async] +import com.google.api.HttpBody; +import com.google.api.gax.rpc.ServerStream; +import com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceClient; +import com.google.cloud.aiplatform.v1.ReasoningEngineName; +import com.google.cloud.aiplatform.v1.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_v1_generated_ReasoningEngineExecutionService_StreamQueryReasoningEngine_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/testiampermissions/AsyncTestIamPermissions.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 000000000000..b73dcfaf656e --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/testiampermissions/AsyncTestIamPermissions.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineExecutionService_TestIamPermissions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.EndpointName; +import com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceClient; +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 (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient = + ReasoningEngineExecutionServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + reasoningEngineExecutionServiceClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineExecutionService_TestIamPermissions_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/testiampermissions/SyncTestIamPermissions.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 000000000000..3074a3db11dc --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/testiampermissions/SyncTestIamPermissions.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineExecutionService_TestIamPermissions_sync] +import com.google.cloud.aiplatform.v1.EndpointName; +import com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceClient; +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 (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient = + ReasoningEngineExecutionServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = + reasoningEngineExecutionServiceClient.testIamPermissions(request); + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineExecutionService_TestIamPermissions_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservicesettings/queryreasoningengine/SyncQueryReasoningEngine.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservicesettings/queryreasoningengine/SyncQueryReasoningEngine.java new file mode 100644 index 000000000000..fe54e439ed93 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservicesettings/queryreasoningengine/SyncQueryReasoningEngine.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineExecutionServiceSettings_QueryReasoningEngine_sync] +import com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceSettings; +import java.time.Duration; + +public class SyncQueryReasoningEngine { + + public static void main(String[] args) throws Exception { + syncQueryReasoningEngine(); + } + + public static void syncQueryReasoningEngine() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ReasoningEngineExecutionServiceSettings.Builder reasoningEngineExecutionServiceSettingsBuilder = + ReasoningEngineExecutionServiceSettings.newBuilder(); + reasoningEngineExecutionServiceSettingsBuilder + .queryReasoningEngineSettings() + .setRetrySettings( + reasoningEngineExecutionServiceSettingsBuilder + .queryReasoningEngineSettings() + .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()); + ReasoningEngineExecutionServiceSettings reasoningEngineExecutionServiceSettings = + reasoningEngineExecutionServiceSettingsBuilder.build(); + } +} +// [END aiplatform_v1_generated_ReasoningEngineExecutionServiceSettings_QueryReasoningEngine_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/create/SyncCreateSetCredentialsProvider.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..6f5a8b8cbf8e --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient; +import com.google.cloud.aiplatform.v1.ReasoningEngineServiceSettings; +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 + ReasoningEngineServiceSettings reasoningEngineServiceSettings = + ReasoningEngineServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + ReasoningEngineServiceClient reasoningEngineServiceClient = + ReasoningEngineServiceClient.create(reasoningEngineServiceSettings); + } +} +// [END aiplatform_v1_generated_ReasoningEngineService_Create_SetCredentialsProvider_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/create/SyncCreateSetEndpoint.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..cc3938bbdf48 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineService_Create_SetEndpoint_sync] +import com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient; +import com.google.cloud.aiplatform.v1.ReasoningEngineServiceSettings; +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 + ReasoningEngineServiceSettings reasoningEngineServiceSettings = + ReasoningEngineServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + ReasoningEngineServiceClient reasoningEngineServiceClient = + ReasoningEngineServiceClient.create(reasoningEngineServiceSettings); + } +} +// [END aiplatform_v1_generated_ReasoningEngineService_Create_SetEndpoint_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/createreasoningengine/AsyncCreateReasoningEngine.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/createreasoningengine/AsyncCreateReasoningEngine.java new file mode 100644 index 000000000000..4c79dc92e807 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/createreasoningengine/AsyncCreateReasoningEngine.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineService_CreateReasoningEngine_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.ReasoningEngine; +import com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient; +import com.google.longrunning.Operation; + +public class AsyncCreateReasoningEngine { + + public static void main(String[] args) throws Exception { + asyncCreateReasoningEngine(); + } + + public static void asyncCreateReasoningEngine() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ReasoningEngineServiceClient reasoningEngineServiceClient = + ReasoningEngineServiceClient.create()) { + CreateReasoningEngineRequest request = + CreateReasoningEngineRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setReasoningEngine(ReasoningEngine.newBuilder().build()) + .build(); + ApiFuture future = + reasoningEngineServiceClient.createReasoningEngineCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineService_CreateReasoningEngine_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/createreasoningengine/AsyncCreateReasoningEngineLRO.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/createreasoningengine/AsyncCreateReasoningEngineLRO.java new file mode 100644 index 000000000000..4cadd47109f1 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/createreasoningengine/AsyncCreateReasoningEngineLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineService_CreateReasoningEngine_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.aiplatform.v1.CreateReasoningEngineOperationMetadata; +import com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.ReasoningEngine; +import com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient; + +public class AsyncCreateReasoningEngineLRO { + + public static void main(String[] args) throws Exception { + asyncCreateReasoningEngineLRO(); + } + + public static void asyncCreateReasoningEngineLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ReasoningEngineServiceClient reasoningEngineServiceClient = + ReasoningEngineServiceClient.create()) { + CreateReasoningEngineRequest request = + CreateReasoningEngineRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setReasoningEngine(ReasoningEngine.newBuilder().build()) + .build(); + OperationFuture future = + reasoningEngineServiceClient.createReasoningEngineOperationCallable().futureCall(request); + // Do something. + ReasoningEngine response = future.get(); + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineService_CreateReasoningEngine_LRO_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/createreasoningengine/SyncCreateReasoningEngine.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/createreasoningengine/SyncCreateReasoningEngine.java new file mode 100644 index 000000000000..18416837a5dd --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/createreasoningengine/SyncCreateReasoningEngine.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineService_CreateReasoningEngine_sync] +import com.google.cloud.aiplatform.v1.CreateReasoningEngineRequest; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.ReasoningEngine; +import com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient; + +public class SyncCreateReasoningEngine { + + public static void main(String[] args) throws Exception { + syncCreateReasoningEngine(); + } + + public static void syncCreateReasoningEngine() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ReasoningEngineServiceClient reasoningEngineServiceClient = + ReasoningEngineServiceClient.create()) { + CreateReasoningEngineRequest request = + CreateReasoningEngineRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setReasoningEngine(ReasoningEngine.newBuilder().build()) + .build(); + ReasoningEngine response = + reasoningEngineServiceClient.createReasoningEngineAsync(request).get(); + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineService_CreateReasoningEngine_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/createreasoningengine/SyncCreateReasoningEngineLocationnameReasoningengine.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/createreasoningengine/SyncCreateReasoningEngineLocationnameReasoningengine.java new file mode 100644 index 000000000000..098e0af8c745 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/createreasoningengine/SyncCreateReasoningEngineLocationnameReasoningengine.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineService_CreateReasoningEngine_LocationnameReasoningengine_sync] +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.ReasoningEngine; +import com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient; + +public class SyncCreateReasoningEngineLocationnameReasoningengine { + + public static void main(String[] args) throws Exception { + syncCreateReasoningEngineLocationnameReasoningengine(); + } + + public static void syncCreateReasoningEngineLocationnameReasoningengine() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ReasoningEngineServiceClient reasoningEngineServiceClient = + ReasoningEngineServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + ReasoningEngine reasoningEngine = ReasoningEngine.newBuilder().build(); + ReasoningEngine response = + reasoningEngineServiceClient.createReasoningEngineAsync(parent, reasoningEngine).get(); + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineService_CreateReasoningEngine_LocationnameReasoningengine_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/createreasoningengine/SyncCreateReasoningEngineStringReasoningengine.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/createreasoningengine/SyncCreateReasoningEngineStringReasoningengine.java new file mode 100644 index 000000000000..f0339246ddcc --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/createreasoningengine/SyncCreateReasoningEngineStringReasoningengine.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineService_CreateReasoningEngine_StringReasoningengine_sync] +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.ReasoningEngine; +import com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient; + +public class SyncCreateReasoningEngineStringReasoningengine { + + public static void main(String[] args) throws Exception { + syncCreateReasoningEngineStringReasoningengine(); + } + + public static void syncCreateReasoningEngineStringReasoningengine() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ReasoningEngineServiceClient reasoningEngineServiceClient = + ReasoningEngineServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + ReasoningEngine reasoningEngine = ReasoningEngine.newBuilder().build(); + ReasoningEngine response = + reasoningEngineServiceClient.createReasoningEngineAsync(parent, reasoningEngine).get(); + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineService_CreateReasoningEngine_StringReasoningengine_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/deletereasoningengine/AsyncDeleteReasoningEngine.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/deletereasoningengine/AsyncDeleteReasoningEngine.java new file mode 100644 index 000000000000..243104612f0a --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/deletereasoningengine/AsyncDeleteReasoningEngine.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineService_DeleteReasoningEngine_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest; +import com.google.cloud.aiplatform.v1.ReasoningEngineName; +import com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteReasoningEngine { + + public static void main(String[] args) throws Exception { + asyncDeleteReasoningEngine(); + } + + public static void asyncDeleteReasoningEngine() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ReasoningEngineServiceClient reasoningEngineServiceClient = + ReasoningEngineServiceClient.create()) { + DeleteReasoningEngineRequest request = + DeleteReasoningEngineRequest.newBuilder() + .setName( + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]") + .toString()) + .build(); + ApiFuture future = + reasoningEngineServiceClient.deleteReasoningEngineCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineService_DeleteReasoningEngine_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/deletereasoningengine/AsyncDeleteReasoningEngineLRO.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/deletereasoningengine/AsyncDeleteReasoningEngineLRO.java new file mode 100644 index 000000000000..09cb49d80787 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/deletereasoningengine/AsyncDeleteReasoningEngineLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineService_DeleteReasoningEngine_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.aiplatform.v1.DeleteOperationMetadata; +import com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest; +import com.google.cloud.aiplatform.v1.ReasoningEngineName; +import com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteReasoningEngineLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteReasoningEngineLRO(); + } + + public static void asyncDeleteReasoningEngineLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ReasoningEngineServiceClient reasoningEngineServiceClient = + ReasoningEngineServiceClient.create()) { + DeleteReasoningEngineRequest request = + DeleteReasoningEngineRequest.newBuilder() + .setName( + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]") + .toString()) + .build(); + OperationFuture future = + reasoningEngineServiceClient.deleteReasoningEngineOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineService_DeleteReasoningEngine_LRO_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/deletereasoningengine/SyncDeleteReasoningEngine.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/deletereasoningengine/SyncDeleteReasoningEngine.java new file mode 100644 index 000000000000..3cad12bb694e --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/deletereasoningengine/SyncDeleteReasoningEngine.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineService_DeleteReasoningEngine_sync] +import com.google.cloud.aiplatform.v1.DeleteReasoningEngineRequest; +import com.google.cloud.aiplatform.v1.ReasoningEngineName; +import com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteReasoningEngine { + + public static void main(String[] args) throws Exception { + syncDeleteReasoningEngine(); + } + + public static void syncDeleteReasoningEngine() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ReasoningEngineServiceClient reasoningEngineServiceClient = + ReasoningEngineServiceClient.create()) { + DeleteReasoningEngineRequest request = + DeleteReasoningEngineRequest.newBuilder() + .setName( + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]") + .toString()) + .build(); + reasoningEngineServiceClient.deleteReasoningEngineAsync(request).get(); + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineService_DeleteReasoningEngine_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/deletereasoningengine/SyncDeleteReasoningEngineReasoningenginename.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/deletereasoningengine/SyncDeleteReasoningEngineReasoningenginename.java new file mode 100644 index 000000000000..c11e5c5f05e0 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/deletereasoningengine/SyncDeleteReasoningEngineReasoningenginename.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineService_DeleteReasoningEngine_Reasoningenginename_sync] +import com.google.cloud.aiplatform.v1.ReasoningEngineName; +import com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteReasoningEngineReasoningenginename { + + public static void main(String[] args) throws Exception { + syncDeleteReasoningEngineReasoningenginename(); + } + + public static void syncDeleteReasoningEngineReasoningenginename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ReasoningEngineServiceClient reasoningEngineServiceClient = + ReasoningEngineServiceClient.create()) { + ReasoningEngineName name = + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]"); + reasoningEngineServiceClient.deleteReasoningEngineAsync(name).get(); + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineService_DeleteReasoningEngine_Reasoningenginename_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/deletereasoningengine/SyncDeleteReasoningEngineString.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/deletereasoningengine/SyncDeleteReasoningEngineString.java new file mode 100644 index 000000000000..c02022836154 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/deletereasoningengine/SyncDeleteReasoningEngineString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineService_DeleteReasoningEngine_String_sync] +import com.google.cloud.aiplatform.v1.ReasoningEngineName; +import com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteReasoningEngineString { + + public static void main(String[] args) throws Exception { + syncDeleteReasoningEngineString(); + } + + public static void syncDeleteReasoningEngineString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ReasoningEngineServiceClient reasoningEngineServiceClient = + ReasoningEngineServiceClient.create()) { + String name = + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]").toString(); + reasoningEngineServiceClient.deleteReasoningEngineAsync(name).get(); + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineService_DeleteReasoningEngine_String_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/getiampolicy/AsyncGetIamPolicy.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 000000000000..f1af92e657a9 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineService_GetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.EndpointName; +import com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient; +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 (ReasoningEngineServiceClient reasoningEngineServiceClient = + ReasoningEngineServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = + reasoningEngineServiceClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineService_GetIamPolicy_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/getiampolicy/SyncGetIamPolicy.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 000000000000..851d7ad027c1 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineService_GetIamPolicy_sync] +import com.google.cloud.aiplatform.v1.EndpointName; +import com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient; +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 (ReasoningEngineServiceClient reasoningEngineServiceClient = + ReasoningEngineServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = reasoningEngineServiceClient.getIamPolicy(request); + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineService_GetIamPolicy_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/getlocation/AsyncGetLocation.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..f55d5aec052b --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/getlocation/AsyncGetLocation.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineService_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient; +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 (ReasoningEngineServiceClient reasoningEngineServiceClient = + ReasoningEngineServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = + reasoningEngineServiceClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineService_GetLocation_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/getlocation/SyncGetLocation.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..e03da541316a --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/getlocation/SyncGetLocation.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineService_GetLocation_sync] +import com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient; +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 (ReasoningEngineServiceClient reasoningEngineServiceClient = + ReasoningEngineServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = reasoningEngineServiceClient.getLocation(request); + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineService_GetLocation_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/getreasoningengine/AsyncGetReasoningEngine.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/getreasoningengine/AsyncGetReasoningEngine.java new file mode 100644 index 000000000000..4211620c7655 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/getreasoningengine/AsyncGetReasoningEngine.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineService_GetReasoningEngine_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.GetReasoningEngineRequest; +import com.google.cloud.aiplatform.v1.ReasoningEngine; +import com.google.cloud.aiplatform.v1.ReasoningEngineName; +import com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient; + +public class AsyncGetReasoningEngine { + + public static void main(String[] args) throws Exception { + asyncGetReasoningEngine(); + } + + public static void asyncGetReasoningEngine() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ReasoningEngineServiceClient reasoningEngineServiceClient = + ReasoningEngineServiceClient.create()) { + GetReasoningEngineRequest request = + GetReasoningEngineRequest.newBuilder() + .setName( + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]") + .toString()) + .build(); + ApiFuture future = + reasoningEngineServiceClient.getReasoningEngineCallable().futureCall(request); + // Do something. + ReasoningEngine response = future.get(); + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineService_GetReasoningEngine_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/getreasoningengine/SyncGetReasoningEngine.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/getreasoningengine/SyncGetReasoningEngine.java new file mode 100644 index 000000000000..bc5adb107a0e --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/getreasoningengine/SyncGetReasoningEngine.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineService_GetReasoningEngine_sync] +import com.google.cloud.aiplatform.v1.GetReasoningEngineRequest; +import com.google.cloud.aiplatform.v1.ReasoningEngine; +import com.google.cloud.aiplatform.v1.ReasoningEngineName; +import com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient; + +public class SyncGetReasoningEngine { + + public static void main(String[] args) throws Exception { + syncGetReasoningEngine(); + } + + public static void syncGetReasoningEngine() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ReasoningEngineServiceClient reasoningEngineServiceClient = + ReasoningEngineServiceClient.create()) { + GetReasoningEngineRequest request = + GetReasoningEngineRequest.newBuilder() + .setName( + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]") + .toString()) + .build(); + ReasoningEngine response = reasoningEngineServiceClient.getReasoningEngine(request); + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineService_GetReasoningEngine_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/getreasoningengine/SyncGetReasoningEngineReasoningenginename.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/getreasoningengine/SyncGetReasoningEngineReasoningenginename.java new file mode 100644 index 000000000000..7e0d80c11281 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/getreasoningengine/SyncGetReasoningEngineReasoningenginename.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineService_GetReasoningEngine_Reasoningenginename_sync] +import com.google.cloud.aiplatform.v1.ReasoningEngine; +import com.google.cloud.aiplatform.v1.ReasoningEngineName; +import com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient; + +public class SyncGetReasoningEngineReasoningenginename { + + public static void main(String[] args) throws Exception { + syncGetReasoningEngineReasoningenginename(); + } + + public static void syncGetReasoningEngineReasoningenginename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ReasoningEngineServiceClient reasoningEngineServiceClient = + ReasoningEngineServiceClient.create()) { + ReasoningEngineName name = + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]"); + ReasoningEngine response = reasoningEngineServiceClient.getReasoningEngine(name); + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineService_GetReasoningEngine_Reasoningenginename_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/getreasoningengine/SyncGetReasoningEngineString.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/getreasoningengine/SyncGetReasoningEngineString.java new file mode 100644 index 000000000000..c1f8ead4474e --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/getreasoningengine/SyncGetReasoningEngineString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineService_GetReasoningEngine_String_sync] +import com.google.cloud.aiplatform.v1.ReasoningEngine; +import com.google.cloud.aiplatform.v1.ReasoningEngineName; +import com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient; + +public class SyncGetReasoningEngineString { + + public static void main(String[] args) throws Exception { + syncGetReasoningEngineString(); + } + + public static void syncGetReasoningEngineString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ReasoningEngineServiceClient reasoningEngineServiceClient = + ReasoningEngineServiceClient.create()) { + String name = + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]").toString(); + ReasoningEngine response = reasoningEngineServiceClient.getReasoningEngine(name); + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineService_GetReasoningEngine_String_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/listlocations/AsyncListLocations.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..85e934b66bbe --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/listlocations/AsyncListLocations.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineService_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient; +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 (ReasoningEngineServiceClient reasoningEngineServiceClient = + ReasoningEngineServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + reasoningEngineServiceClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineService_ListLocations_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/listlocations/AsyncListLocationsPaged.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..bec08d879b0e --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineService_ListLocations_Paged_async] +import com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient; +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 (ReasoningEngineServiceClient reasoningEngineServiceClient = + ReasoningEngineServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = + reasoningEngineServiceClient.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_ReasoningEngineService_ListLocations_Paged_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/listlocations/SyncListLocations.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..290b4a6aded6 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/listlocations/SyncListLocations.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineService_ListLocations_sync] +import com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient; +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 (ReasoningEngineServiceClient reasoningEngineServiceClient = + ReasoningEngineServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : reasoningEngineServiceClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineService_ListLocations_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/listreasoningengines/AsyncListReasoningEngines.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/listreasoningengines/AsyncListReasoningEngines.java new file mode 100644 index 000000000000..90693c265179 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/listreasoningengines/AsyncListReasoningEngines.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineService_ListReasoningEngines_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.ReasoningEngine; +import com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient; + +public class AsyncListReasoningEngines { + + public static void main(String[] args) throws Exception { + asyncListReasoningEngines(); + } + + public static void asyncListReasoningEngines() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ReasoningEngineServiceClient reasoningEngineServiceClient = + ReasoningEngineServiceClient.create()) { + ListReasoningEnginesRequest request = + ListReasoningEnginesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + reasoningEngineServiceClient.listReasoningEnginesPagedCallable().futureCall(request); + // Do something. + for (ReasoningEngine element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineService_ListReasoningEngines_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/listreasoningengines/AsyncListReasoningEnginesPaged.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/listreasoningengines/AsyncListReasoningEnginesPaged.java new file mode 100644 index 000000000000..7df4ab1475c1 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/listreasoningengines/AsyncListReasoningEnginesPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineService_ListReasoningEngines_Paged_async] +import com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest; +import com.google.cloud.aiplatform.v1.ListReasoningEnginesResponse; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.ReasoningEngine; +import com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient; +import com.google.common.base.Strings; + +public class AsyncListReasoningEnginesPaged { + + public static void main(String[] args) throws Exception { + asyncListReasoningEnginesPaged(); + } + + public static void asyncListReasoningEnginesPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ReasoningEngineServiceClient reasoningEngineServiceClient = + ReasoningEngineServiceClient.create()) { + ListReasoningEnginesRequest request = + ListReasoningEnginesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListReasoningEnginesResponse response = + reasoningEngineServiceClient.listReasoningEnginesCallable().call(request); + for (ReasoningEngine element : response.getReasoningEnginesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineService_ListReasoningEngines_Paged_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/listreasoningengines/SyncListReasoningEngines.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/listreasoningengines/SyncListReasoningEngines.java new file mode 100644 index 000000000000..aca1bdd4e001 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/listreasoningengines/SyncListReasoningEngines.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineService_ListReasoningEngines_sync] +import com.google.cloud.aiplatform.v1.ListReasoningEnginesRequest; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.ReasoningEngine; +import com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient; + +public class SyncListReasoningEngines { + + public static void main(String[] args) throws Exception { + syncListReasoningEngines(); + } + + public static void syncListReasoningEngines() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ReasoningEngineServiceClient reasoningEngineServiceClient = + ReasoningEngineServiceClient.create()) { + ListReasoningEnginesRequest request = + ListReasoningEnginesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (ReasoningEngine element : + reasoningEngineServiceClient.listReasoningEngines(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineService_ListReasoningEngines_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/listreasoningengines/SyncListReasoningEnginesLocationname.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/listreasoningengines/SyncListReasoningEnginesLocationname.java new file mode 100644 index 000000000000..0851a2381d4c --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/listreasoningengines/SyncListReasoningEnginesLocationname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineService_ListReasoningEngines_Locationname_sync] +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.ReasoningEngine; +import com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient; + +public class SyncListReasoningEnginesLocationname { + + public static void main(String[] args) throws Exception { + syncListReasoningEnginesLocationname(); + } + + public static void syncListReasoningEnginesLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ReasoningEngineServiceClient reasoningEngineServiceClient = + ReasoningEngineServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (ReasoningEngine element : + reasoningEngineServiceClient.listReasoningEngines(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineService_ListReasoningEngines_Locationname_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/listreasoningengines/SyncListReasoningEnginesString.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/listreasoningengines/SyncListReasoningEnginesString.java new file mode 100644 index 000000000000..b4d05c2794eb --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/listreasoningengines/SyncListReasoningEnginesString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineService_ListReasoningEngines_String_sync] +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.ReasoningEngine; +import com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient; + +public class SyncListReasoningEnginesString { + + public static void main(String[] args) throws Exception { + syncListReasoningEnginesString(); + } + + public static void syncListReasoningEnginesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ReasoningEngineServiceClient reasoningEngineServiceClient = + ReasoningEngineServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (ReasoningEngine element : + reasoningEngineServiceClient.listReasoningEngines(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineService_ListReasoningEngines_String_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/setiampolicy/AsyncSetIamPolicy.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 000000000000..75b761485116 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/setiampolicy/AsyncSetIamPolicy.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineService_SetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.EndpointName; +import com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient; +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 (ReasoningEngineServiceClient reasoningEngineServiceClient = + ReasoningEngineServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + reasoningEngineServiceClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineService_SetIamPolicy_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/setiampolicy/SyncSetIamPolicy.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 000000000000..216846a69477 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/setiampolicy/SyncSetIamPolicy.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineService_SetIamPolicy_sync] +import com.google.cloud.aiplatform.v1.EndpointName; +import com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient; +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 (ReasoningEngineServiceClient reasoningEngineServiceClient = + ReasoningEngineServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = reasoningEngineServiceClient.setIamPolicy(request); + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineService_SetIamPolicy_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/testiampermissions/AsyncTestIamPermissions.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 000000000000..ae820f6aed15 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/testiampermissions/AsyncTestIamPermissions.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineService_TestIamPermissions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.EndpointName; +import com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient; +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 (ReasoningEngineServiceClient reasoningEngineServiceClient = + ReasoningEngineServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + reasoningEngineServiceClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineService_TestIamPermissions_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/testiampermissions/SyncTestIamPermissions.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 000000000000..8ca30e3132d2 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/testiampermissions/SyncTestIamPermissions.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineService_TestIamPermissions_sync] +import com.google.cloud.aiplatform.v1.EndpointName; +import com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient; +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 (ReasoningEngineServiceClient reasoningEngineServiceClient = + ReasoningEngineServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = + reasoningEngineServiceClient.testIamPermissions(request); + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineService_TestIamPermissions_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/updatereasoningengine/AsyncUpdateReasoningEngine.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/updatereasoningengine/AsyncUpdateReasoningEngine.java new file mode 100644 index 000000000000..bfd3a8326f72 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/updatereasoningengine/AsyncUpdateReasoningEngine.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineService_UpdateReasoningEngine_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.ReasoningEngine; +import com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient; +import com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateReasoningEngine { + + public static void main(String[] args) throws Exception { + asyncUpdateReasoningEngine(); + } + + public static void asyncUpdateReasoningEngine() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ReasoningEngineServiceClient reasoningEngineServiceClient = + ReasoningEngineServiceClient.create()) { + UpdateReasoningEngineRequest request = + UpdateReasoningEngineRequest.newBuilder() + .setReasoningEngine(ReasoningEngine.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + reasoningEngineServiceClient.updateReasoningEngineCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineService_UpdateReasoningEngine_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/updatereasoningengine/AsyncUpdateReasoningEngineLRO.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/updatereasoningengine/AsyncUpdateReasoningEngineLRO.java new file mode 100644 index 000000000000..ef0730a909f6 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/updatereasoningengine/AsyncUpdateReasoningEngineLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineService_UpdateReasoningEngine_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.aiplatform.v1.ReasoningEngine; +import com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient; +import com.google.cloud.aiplatform.v1.UpdateReasoningEngineOperationMetadata; +import com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateReasoningEngineLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateReasoningEngineLRO(); + } + + public static void asyncUpdateReasoningEngineLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ReasoningEngineServiceClient reasoningEngineServiceClient = + ReasoningEngineServiceClient.create()) { + UpdateReasoningEngineRequest request = + UpdateReasoningEngineRequest.newBuilder() + .setReasoningEngine(ReasoningEngine.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + OperationFuture future = + reasoningEngineServiceClient.updateReasoningEngineOperationCallable().futureCall(request); + // Do something. + ReasoningEngine response = future.get(); + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineService_UpdateReasoningEngine_LRO_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/updatereasoningengine/SyncUpdateReasoningEngine.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/updatereasoningengine/SyncUpdateReasoningEngine.java new file mode 100644 index 000000000000..b32828d54a81 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/updatereasoningengine/SyncUpdateReasoningEngine.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineService_UpdateReasoningEngine_sync] +import com.google.cloud.aiplatform.v1.ReasoningEngine; +import com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient; +import com.google.cloud.aiplatform.v1.UpdateReasoningEngineRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateReasoningEngine { + + public static void main(String[] args) throws Exception { + syncUpdateReasoningEngine(); + } + + public static void syncUpdateReasoningEngine() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ReasoningEngineServiceClient reasoningEngineServiceClient = + ReasoningEngineServiceClient.create()) { + UpdateReasoningEngineRequest request = + UpdateReasoningEngineRequest.newBuilder() + .setReasoningEngine(ReasoningEngine.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ReasoningEngine response = + reasoningEngineServiceClient.updateReasoningEngineAsync(request).get(); + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineService_UpdateReasoningEngine_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/updatereasoningengine/SyncUpdateReasoningEngineReasoningengineFieldmask.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/updatereasoningengine/SyncUpdateReasoningEngineReasoningengineFieldmask.java new file mode 100644 index 000000000000..9b709c328037 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservice/updatereasoningengine/SyncUpdateReasoningEngineReasoningengineFieldmask.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineService_UpdateReasoningEngine_ReasoningengineFieldmask_sync] +import com.google.cloud.aiplatform.v1.ReasoningEngine; +import com.google.cloud.aiplatform.v1.ReasoningEngineServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateReasoningEngineReasoningengineFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateReasoningEngineReasoningengineFieldmask(); + } + + public static void syncUpdateReasoningEngineReasoningengineFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ReasoningEngineServiceClient reasoningEngineServiceClient = + ReasoningEngineServiceClient.create()) { + ReasoningEngine reasoningEngine = ReasoningEngine.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + ReasoningEngine response = + reasoningEngineServiceClient + .updateReasoningEngineAsync(reasoningEngine, updateMask) + .get(); + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineService_UpdateReasoningEngine_ReasoningengineFieldmask_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservicesettings/createreasoningengine/SyncCreateReasoningEngine.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservicesettings/createreasoningengine/SyncCreateReasoningEngine.java new file mode 100644 index 000000000000..8edd90217ef7 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservicesettings/createreasoningengine/SyncCreateReasoningEngine.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineServiceSettings_CreateReasoningEngine_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.ReasoningEngineServiceSettings; +import java.time.Duration; + +public class SyncCreateReasoningEngine { + + public static void main(String[] args) throws Exception { + syncCreateReasoningEngine(); + } + + public static void syncCreateReasoningEngine() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ReasoningEngineServiceSettings.Builder reasoningEngineServiceSettingsBuilder = + ReasoningEngineServiceSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + reasoningEngineServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END aiplatform_v1_generated_ReasoningEngineServiceSettings_CreateReasoningEngine_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservicesettings/getreasoningengine/SyncGetReasoningEngine.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservicesettings/getreasoningengine/SyncGetReasoningEngine.java new file mode 100644 index 000000000000..1a27687d3fd6 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineservicesettings/getreasoningengine/SyncGetReasoningEngine.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineServiceSettings_GetReasoningEngine_sync] +import com.google.cloud.aiplatform.v1.ReasoningEngineServiceSettings; +import java.time.Duration; + +public class SyncGetReasoningEngine { + + public static void main(String[] args) throws Exception { + syncGetReasoningEngine(); + } + + public static void syncGetReasoningEngine() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ReasoningEngineServiceSettings.Builder reasoningEngineServiceSettingsBuilder = + ReasoningEngineServiceSettings.newBuilder(); + reasoningEngineServiceSettingsBuilder + .getReasoningEngineSettings() + .setRetrySettings( + reasoningEngineServiceSettingsBuilder + .getReasoningEngineSettings() + .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()); + ReasoningEngineServiceSettings reasoningEngineServiceSettings = + reasoningEngineServiceSettingsBuilder.build(); + } +} +// [END aiplatform_v1_generated_ReasoningEngineServiceSettings_GetReasoningEngine_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/stub/genaicacheservicestubsettings/createcachedcontent/SyncCreateCachedContent.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/stub/genaicacheservicestubsettings/createcachedcontent/SyncCreateCachedContent.java new file mode 100644 index 000000000000..0c068659af9e --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/stub/genaicacheservicestubsettings/createcachedcontent/SyncCreateCachedContent.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.stub.samples; + +// [START aiplatform_v1_generated_GenAiCacheServiceStubSettings_CreateCachedContent_sync] +import com.google.cloud.aiplatform.v1.stub.GenAiCacheServiceStubSettings; +import java.time.Duration; + +public class SyncCreateCachedContent { + + public static void main(String[] args) throws Exception { + syncCreateCachedContent(); + } + + public static void syncCreateCachedContent() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + GenAiCacheServiceStubSettings.Builder genAiCacheServiceSettingsBuilder = + GenAiCacheServiceStubSettings.newBuilder(); + genAiCacheServiceSettingsBuilder + .createCachedContentSettings() + .setRetrySettings( + genAiCacheServiceSettingsBuilder + .createCachedContentSettings() + .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()); + GenAiCacheServiceStubSettings genAiCacheServiceSettings = + genAiCacheServiceSettingsBuilder.build(); + } +} +// [END aiplatform_v1_generated_GenAiCacheServiceStubSettings_CreateCachedContent_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/stub/reasoningengineexecutionservicestubsettings/queryreasoningengine/SyncQueryReasoningEngine.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/stub/reasoningengineexecutionservicestubsettings/queryreasoningengine/SyncQueryReasoningEngine.java new file mode 100644 index 000000000000..f34e25ab9cbc --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/stub/reasoningengineexecutionservicestubsettings/queryreasoningengine/SyncQueryReasoningEngine.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.stub.samples; + +// [START aiplatform_v1_generated_ReasoningEngineExecutionServiceStubSettings_QueryReasoningEngine_sync] +import com.google.cloud.aiplatform.v1.stub.ReasoningEngineExecutionServiceStubSettings; +import java.time.Duration; + +public class SyncQueryReasoningEngine { + + public static void main(String[] args) throws Exception { + syncQueryReasoningEngine(); + } + + public static void syncQueryReasoningEngine() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ReasoningEngineExecutionServiceStubSettings.Builder + reasoningEngineExecutionServiceSettingsBuilder = + ReasoningEngineExecutionServiceStubSettings.newBuilder(); + reasoningEngineExecutionServiceSettingsBuilder + .queryReasoningEngineSettings() + .setRetrySettings( + reasoningEngineExecutionServiceSettingsBuilder + .queryReasoningEngineSettings() + .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()); + ReasoningEngineExecutionServiceStubSettings reasoningEngineExecutionServiceSettings = + reasoningEngineExecutionServiceSettingsBuilder.build(); + } +} +// [END aiplatform_v1_generated_ReasoningEngineExecutionServiceStubSettings_QueryReasoningEngine_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/stub/reasoningengineservicestubsettings/createreasoningengine/SyncCreateReasoningEngine.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/stub/reasoningengineservicestubsettings/createreasoningengine/SyncCreateReasoningEngine.java new file mode 100644 index 000000000000..01206de979b2 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/stub/reasoningengineservicestubsettings/createreasoningengine/SyncCreateReasoningEngine.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.stub.samples; + +// [START aiplatform_v1_generated_ReasoningEngineServiceStubSettings_CreateReasoningEngine_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.ReasoningEngineServiceStubSettings; +import java.time.Duration; + +public class SyncCreateReasoningEngine { + + public static void main(String[] args) throws Exception { + syncCreateReasoningEngine(); + } + + public static void syncCreateReasoningEngine() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ReasoningEngineServiceStubSettings.Builder reasoningEngineServiceSettingsBuilder = + ReasoningEngineServiceStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + reasoningEngineServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END aiplatform_v1_generated_ReasoningEngineServiceStubSettings_CreateReasoningEngine_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/stub/reasoningengineservicestubsettings/getreasoningengine/SyncGetReasoningEngine.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/stub/reasoningengineservicestubsettings/getreasoningengine/SyncGetReasoningEngine.java new file mode 100644 index 000000000000..89b20be744f7 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/stub/reasoningengineservicestubsettings/getreasoningengine/SyncGetReasoningEngine.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.stub.samples; + +// [START aiplatform_v1_generated_ReasoningEngineServiceStubSettings_GetReasoningEngine_sync] +import com.google.cloud.aiplatform.v1.stub.ReasoningEngineServiceStubSettings; +import java.time.Duration; + +public class SyncGetReasoningEngine { + + public static void main(String[] args) throws Exception { + syncGetReasoningEngine(); + } + + public static void syncGetReasoningEngine() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ReasoningEngineServiceStubSettings.Builder reasoningEngineServiceSettingsBuilder = + ReasoningEngineServiceStubSettings.newBuilder(); + reasoningEngineServiceSettingsBuilder + .getReasoningEngineSettings() + .setRetrySettings( + reasoningEngineServiceSettingsBuilder + .getReasoningEngineSettings() + .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()); + ReasoningEngineServiceStubSettings reasoningEngineServiceSettings = + reasoningEngineServiceSettingsBuilder.build(); + } +} +// [END aiplatform_v1_generated_ReasoningEngineServiceStubSettings_GetReasoningEngine_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/evaluationservice/evaluateinstances/AsyncEvaluateInstances.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/evaluationservice/evaluateinstances/AsyncEvaluateInstances.java index 653610502df9..80c2bc4824c5 100644 --- a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/evaluationservice/evaluateinstances/AsyncEvaluateInstances.java +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/evaluationservice/evaluateinstances/AsyncEvaluateInstances.java @@ -18,6 +18,7 @@ // [START aiplatform_v1beta1_generated_EvaluationService_EvaluateInstances_async] import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1beta1.AutoraterConfig; import com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest; import com.google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse; import com.google.cloud.aiplatform.v1beta1.EvaluationServiceClient; @@ -39,6 +40,7 @@ public static void asyncEvaluateInstances() throws Exception { EvaluateInstancesRequest request = EvaluateInstancesRequest.newBuilder() .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAutoraterConfig(AutoraterConfig.newBuilder().build()) .build(); ApiFuture future = evaluationServiceClient.evaluateInstancesCallable().futureCall(request); diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/evaluationservice/evaluateinstances/SyncEvaluateInstances.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/evaluationservice/evaluateinstances/SyncEvaluateInstances.java index 48c9bd0bf5e8..cbd07471ea34 100644 --- a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/evaluationservice/evaluateinstances/SyncEvaluateInstances.java +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/evaluationservice/evaluateinstances/SyncEvaluateInstances.java @@ -17,6 +17,7 @@ package com.google.cloud.aiplatform.v1beta1.samples; // [START aiplatform_v1beta1_generated_EvaluationService_EvaluateInstances_sync] +import com.google.cloud.aiplatform.v1beta1.AutoraterConfig; import com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest; import com.google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse; import com.google.cloud.aiplatform.v1beta1.EvaluationServiceClient; @@ -38,6 +39,7 @@ public static void syncEvaluateInstances() throws Exception { EvaluateInstancesRequest request = EvaluateInstancesRequest.newBuilder() .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAutoraterConfig(AutoraterConfig.newBuilder().build()) .build(); EvaluateInstancesResponse response = evaluationServiceClient.evaluateInstances(request); } diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/featureregistryservice/updatefeaturemonitor/AsyncUpdateFeatureMonitor.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/featureregistryservice/updatefeaturemonitor/AsyncUpdateFeatureMonitor.java new file mode 100644 index 000000000000..d1022c05e999 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/featureregistryservice/updatefeaturemonitor/AsyncUpdateFeatureMonitor.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_FeatureRegistryService_UpdateFeatureMonitor_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1beta1.FeatureMonitor; +import com.google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient; +import com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateFeatureMonitor { + + public static void main(String[] args) throws Exception { + asyncUpdateFeatureMonitor(); + } + + public static void asyncUpdateFeatureMonitor() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FeatureRegistryServiceClient featureRegistryServiceClient = + FeatureRegistryServiceClient.create()) { + UpdateFeatureMonitorRequest request = + UpdateFeatureMonitorRequest.newBuilder() + .setFeatureMonitor(FeatureMonitor.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + featureRegistryServiceClient.updateFeatureMonitorCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_FeatureRegistryService_UpdateFeatureMonitor_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/featureregistryservice/updatefeaturemonitor/AsyncUpdateFeatureMonitorLRO.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/featureregistryservice/updatefeaturemonitor/AsyncUpdateFeatureMonitorLRO.java new file mode 100644 index 000000000000..caaade295b3a --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/featureregistryservice/updatefeaturemonitor/AsyncUpdateFeatureMonitorLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_FeatureRegistryService_UpdateFeatureMonitor_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.aiplatform.v1beta1.FeatureMonitor; +import com.google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient; +import com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateFeatureMonitorLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateFeatureMonitorLRO(); + } + + public static void asyncUpdateFeatureMonitorLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FeatureRegistryServiceClient featureRegistryServiceClient = + FeatureRegistryServiceClient.create()) { + UpdateFeatureMonitorRequest request = + UpdateFeatureMonitorRequest.newBuilder() + .setFeatureMonitor(FeatureMonitor.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + OperationFuture future = + featureRegistryServiceClient.updateFeatureMonitorOperationCallable().futureCall(request); + // Do something. + FeatureMonitor response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_FeatureRegistryService_UpdateFeatureMonitor_LRO_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/featureregistryservice/updatefeaturemonitor/SyncUpdateFeatureMonitor.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/featureregistryservice/updatefeaturemonitor/SyncUpdateFeatureMonitor.java new file mode 100644 index 000000000000..f78e58632ce7 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/featureregistryservice/updatefeaturemonitor/SyncUpdateFeatureMonitor.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_FeatureRegistryService_UpdateFeatureMonitor_sync] +import com.google.cloud.aiplatform.v1beta1.FeatureMonitor; +import com.google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient; +import com.google.cloud.aiplatform.v1beta1.UpdateFeatureMonitorRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateFeatureMonitor { + + public static void main(String[] args) throws Exception { + syncUpdateFeatureMonitor(); + } + + public static void syncUpdateFeatureMonitor() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FeatureRegistryServiceClient featureRegistryServiceClient = + FeatureRegistryServiceClient.create()) { + UpdateFeatureMonitorRequest request = + UpdateFeatureMonitorRequest.newBuilder() + .setFeatureMonitor(FeatureMonitor.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + FeatureMonitor response = + featureRegistryServiceClient.updateFeatureMonitorAsync(request).get(); + } + } +} +// [END aiplatform_v1beta1_generated_FeatureRegistryService_UpdateFeatureMonitor_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/featureregistryservice/updatefeaturemonitor/SyncUpdateFeatureMonitorFeaturemonitorFieldmask.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/featureregistryservice/updatefeaturemonitor/SyncUpdateFeatureMonitorFeaturemonitorFieldmask.java new file mode 100644 index 000000000000..7708b08c40ba --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/featureregistryservice/updatefeaturemonitor/SyncUpdateFeatureMonitorFeaturemonitorFieldmask.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_FeatureRegistryService_UpdateFeatureMonitor_FeaturemonitorFieldmask_sync] +import com.google.cloud.aiplatform.v1beta1.FeatureMonitor; +import com.google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateFeatureMonitorFeaturemonitorFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateFeatureMonitorFeaturemonitorFieldmask(); + } + + public static void syncUpdateFeatureMonitorFeaturemonitorFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (FeatureRegistryServiceClient featureRegistryServiceClient = + FeatureRegistryServiceClient.create()) { + FeatureMonitor featureMonitor = FeatureMonitor.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + FeatureMonitor response = + featureRegistryServiceClient.updateFeatureMonitorAsync(featureMonitor, updateMask).get(); + } + } +} +// [END aiplatform_v1beta1_generated_FeatureRegistryService_UpdateFeatureMonitor_FeaturemonitorFieldmask_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelservice/listmodelversioncheckpoints/AsyncListModelVersionCheckpoints.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelservice/listmodelversioncheckpoints/AsyncListModelVersionCheckpoints.java new file mode 100644 index 000000000000..8c15fb6885a5 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelservice/listmodelversioncheckpoints/AsyncListModelVersionCheckpoints.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_ModelService_ListModelVersionCheckpoints_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest; +import com.google.cloud.aiplatform.v1beta1.ModelName; +import com.google.cloud.aiplatform.v1beta1.ModelServiceClient; +import com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint; + +public class AsyncListModelVersionCheckpoints { + + public static void main(String[] args) throws Exception { + asyncListModelVersionCheckpoints(); + } + + public static void asyncListModelVersionCheckpoints() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) { + ListModelVersionCheckpointsRequest request = + ListModelVersionCheckpointsRequest.newBuilder() + .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + modelServiceClient.listModelVersionCheckpointsPagedCallable().futureCall(request); + // Do something. + for (ModelVersionCheckpoint element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1beta1_generated_ModelService_ListModelVersionCheckpoints_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelservice/listmodelversioncheckpoints/AsyncListModelVersionCheckpointsPaged.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelservice/listmodelversioncheckpoints/AsyncListModelVersionCheckpointsPaged.java new file mode 100644 index 000000000000..9656d77cd40e --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelservice/listmodelversioncheckpoints/AsyncListModelVersionCheckpointsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_ModelService_ListModelVersionCheckpoints_Paged_async] +import com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest; +import com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse; +import com.google.cloud.aiplatform.v1beta1.ModelName; +import com.google.cloud.aiplatform.v1beta1.ModelServiceClient; +import com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint; +import com.google.common.base.Strings; + +public class AsyncListModelVersionCheckpointsPaged { + + public static void main(String[] args) throws Exception { + asyncListModelVersionCheckpointsPaged(); + } + + public static void asyncListModelVersionCheckpointsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) { + ListModelVersionCheckpointsRequest request = + ListModelVersionCheckpointsRequest.newBuilder() + .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListModelVersionCheckpointsResponse response = + modelServiceClient.listModelVersionCheckpointsCallable().call(request); + for (ModelVersionCheckpoint element : response.getCheckpointsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END aiplatform_v1beta1_generated_ModelService_ListModelVersionCheckpoints_Paged_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelservice/listmodelversioncheckpoints/SyncListModelVersionCheckpoints.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelservice/listmodelversioncheckpoints/SyncListModelVersionCheckpoints.java new file mode 100644 index 000000000000..445aaede4664 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelservice/listmodelversioncheckpoints/SyncListModelVersionCheckpoints.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_ModelService_ListModelVersionCheckpoints_sync] +import com.google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsRequest; +import com.google.cloud.aiplatform.v1beta1.ModelName; +import com.google.cloud.aiplatform.v1beta1.ModelServiceClient; +import com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint; + +public class SyncListModelVersionCheckpoints { + + public static void main(String[] args) throws Exception { + syncListModelVersionCheckpoints(); + } + + public static void syncListModelVersionCheckpoints() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) { + ListModelVersionCheckpointsRequest request = + ListModelVersionCheckpointsRequest.newBuilder() + .setName(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (ModelVersionCheckpoint element : + modelServiceClient.listModelVersionCheckpoints(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1beta1_generated_ModelService_ListModelVersionCheckpoints_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelservice/listmodelversioncheckpoints/SyncListModelVersionCheckpointsModelname.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelservice/listmodelversioncheckpoints/SyncListModelVersionCheckpointsModelname.java new file mode 100644 index 000000000000..d783223a587e --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelservice/listmodelversioncheckpoints/SyncListModelVersionCheckpointsModelname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_ModelService_ListModelVersionCheckpoints_Modelname_sync] +import com.google.cloud.aiplatform.v1beta1.ModelName; +import com.google.cloud.aiplatform.v1beta1.ModelServiceClient; +import com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint; + +public class SyncListModelVersionCheckpointsModelname { + + public static void main(String[] args) throws Exception { + syncListModelVersionCheckpointsModelname(); + } + + public static void syncListModelVersionCheckpointsModelname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) { + ModelName name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]"); + for (ModelVersionCheckpoint element : + modelServiceClient.listModelVersionCheckpoints(name).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1beta1_generated_ModelService_ListModelVersionCheckpoints_Modelname_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelservice/listmodelversioncheckpoints/SyncListModelVersionCheckpointsString.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelservice/listmodelversioncheckpoints/SyncListModelVersionCheckpointsString.java new file mode 100644 index 000000000000..feb4bb63af7e --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelservice/listmodelversioncheckpoints/SyncListModelVersionCheckpointsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_ModelService_ListModelVersionCheckpoints_String_sync] +import com.google.cloud.aiplatform.v1beta1.ModelName; +import com.google.cloud.aiplatform.v1beta1.ModelServiceClient; +import com.google.cloud.aiplatform.v1beta1.ModelVersionCheckpoint; + +public class SyncListModelVersionCheckpointsString { + + public static void main(String[] args) throws Exception { + syncListModelVersionCheckpointsString(); + } + + public static void syncListModelVersionCheckpointsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) { + String name = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString(); + for (ModelVersionCheckpoint element : + modelServiceClient.listModelVersionCheckpoints(name).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1beta1_generated_ModelService_ListModelVersionCheckpoints_String_sync] diff --git a/java-alloydb-connectors/README.md b/java-alloydb-connectors/README.md index f83e6442bbb0..fa2d9838d34e 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.52.0 + 26.53.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.33.0 + 0.34.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-alloydb-connectors:0.33.0' +implementation 'com.google.cloud:google-cloud-alloydb-connectors:0.34.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-alloydb-connectors" % "0.33.0" +libraryDependencies += "com.google.cloud" % "google-cloud-alloydb-connectors" % "0.34.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.33.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb-connectors/0.34.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 22c0a208a143..5a8af5cc0bb0 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.52.0 + 26.53.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.44.0 + 0.45.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-alloydb:0.44.0' +implementation 'com.google.cloud:google-cloud-alloydb:0.45.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-alloydb" % "0.44.0" +libraryDependencies += "com.google.cloud" % "google-cloud-alloydb" % "0.45.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.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb/0.45.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 634026241e28..1772f709d9af 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.52.0 + 26.53.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.65.0 + 0.66.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.analytics:google-analytics-admin:0.65.0' +implementation 'com.google.analytics:google-analytics-admin:0.66.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.65.0" +libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.66.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.65.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/0.66.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 c9d918ff8f9f..77c44275b153 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.52.0 + 26.53.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.66.0 + 0.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.analytics:google-analytics-data:0.66.0' +implementation 'com.google.analytics:google-analytics-data:0.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.66.0" +libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.67.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.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/0.67.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-analyticshub/README.md b/java-analyticshub/README.md index fba0cf04ad5f..9e4c2e3c2a23 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.52.0 + 26.53.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.52.0 + 0.53.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-analyticshub:0.52.0' +implementation 'com.google.cloud:google-cloud-analyticshub:0.53.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-analyticshub" % "0.52.0" +libraryDependencies += "com.google.cloud" % "google-cloud-analyticshub" % "0.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-analyticshub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-analyticshub/0.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-analyticshub/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-api-gateway/README.md b/java-api-gateway/README.md index b5fedc81ff65..03e6821043dc 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.52.0 + 26.53.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.55.0 + 2.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-api-gateway:2.55.0' +implementation 'com.google.cloud:google-cloud-api-gateway:2.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-api-gateway" % "2.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-api-gateway" % "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-api-gateway.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-api-gateway/2.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-api-gateway/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-apigee-connect/README.md b/java-apigee-connect/README.md index b6738886a479..64b7b10c7d5e 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.52.0 + 26.53.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.55.0 + 2.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apigee-connect:2.55.0' +implementation 'com.google.cloud:google-cloud-apigee-connect:2.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apigee-connect" % "2.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apigee-connect" % "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-apigee-connect.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-connect/2.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-connect/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-apigee-registry/README.md b/java-apigee-registry/README.md index e90a8b85e87e..7b1e72c84022 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.52.0 + 26.53.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.55.0 + 0.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apigee-registry:0.55.0' +implementation 'com.google.cloud:google-cloud-apigee-registry:0.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apigee-registry" % "0.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apigee-registry" % "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-apigee-registry.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-registry/0.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-registry/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-apihub/README.md b/java-apihub/README.md index c65e06664666..04c7b4583f15 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.52.0 + 26.53.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.8.0 + 0.9.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apihub:0.8.0' +implementation 'com.google.cloud:google-cloud-apihub:0.9.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apihub" % "0.8.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apihub" % "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-apihub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apihub/0.8.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apihub/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-apikeys/README.md b/java-apikeys/README.md index 21be2d3aeb7f..2b32a9a78fc9 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.52.0 + 26.53.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.53.0 + 0.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apikeys:0.53.0' +implementation 'com.google.cloud:google-cloud-apikeys:0.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apikeys" % "0.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apikeys" % "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-apikeys.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apikeys/0.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apikeys/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-appengine-admin/README.md b/java-appengine-admin/README.md index 0cb5df3055a9..fffbb5636ba3 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.52.0 + 26.53.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.55.0 + 2.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-appengine-admin:2.55.0' +implementation 'com.google.cloud:google-cloud-appengine-admin:2.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-appengine-admin" % "2.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-appengine-admin" % "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-appengine-admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appengine-admin/2.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appengine-admin/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-apphub/README.md b/java-apphub/README.md index 68441cf477ab..7fec4eb33cf4 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.52.0 + 26.53.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.19.0 + 0.20.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apphub:0.19.0' +implementation 'com.google.cloud:google-cloud-apphub:0.20.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apphub" % "0.19.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apphub" % "0.20.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.19.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apphub/0.20.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 4151491c4785..b1b238677046 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.52.0 + 26.53.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.59.0 + 0.60.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.area120:google-area120-tables:0.59.0' +implementation 'com.google.area120:google-area120-tables:0.60.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.area120" % "google-area120-tables" % "0.59.0" +libraryDependencies += "com.google.area120" % "google-area120-tables" % "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.area120/google-area120-tables.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.area120/google-area120-tables/0.59.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.area120/google-area120-tables/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-artifact-registry/README.md b/java-artifact-registry/README.md index 031fe761f1fb..9b00ef8de513 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.52.0 + 26.53.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.54.0 + 1.55.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-artifact-registry:1.54.0' +implementation 'com.google.cloud:google-cloud-artifact-registry:1.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-artifact-registry" % "1.54.0" +libraryDependencies += "com.google.cloud" % "google-cloud-artifact-registry" % "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-artifact-registry.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-artifact-registry/1.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-artifact-registry/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-asset/README.md b/java-asset/README.md index a80a3d73fd68..eb09ce590e53 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.52.0 + 26.53.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.59.0 + 3.60.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-asset:3.59.0' +implementation 'com.google.cloud:google-cloud-asset:3.60.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "3.59.0" +libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "3.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-asset.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-asset/3.59.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-asset/3.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-assured-workloads/README.md b/java-assured-workloads/README.md index f74824ff8885..b714788753db 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.52.0 + 26.53.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.55.0 + 2.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-assured-workloads:2.55.0' +implementation 'com.google.cloud:google-cloud-assured-workloads:2.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-assured-workloads" % "2.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-assured-workloads" % "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-assured-workloads.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-assured-workloads/2.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-assured-workloads/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-automl/README.md b/java-automl/README.md index 09e81ea5f7d1..b697f7bbf74e 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.52.0 + 26.53.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.55.0 + 2.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-automl:2.55.0' +implementation 'com.google.cloud:google-cloud-automl:2.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-automl" % "2.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-automl" % "2.56.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.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-automl/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-backupdr/README.md b/java-backupdr/README.md index a8af3d527499..9ca3d0efb538 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.52.0 + 26.53.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.14.0 + 0.15.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-backupdr:0.14.0' +implementation 'com.google.cloud:google-cloud-backupdr:0.15.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-backupdr" % "0.14.0" +libraryDependencies += "com.google.cloud" % "google-cloud-backupdr" % "0.15.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.14.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backupdr/0.15.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-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRClient.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRClient.java index d63ed73c64ba..c2074af1770c 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRClient.java +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRClient.java @@ -610,6 +610,21 @@ * * * + *

InitializeService + *

Initializes the service related config for a project. + * + *

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

+ *
    + *
  • initializeServiceAsync(InitializeServiceRequest request) + *

+ *

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

+ *
    + *
  • initializeServiceOperationCallable() + *

  • initializeServiceCallable() + *

+ * + * + * *

ListLocations *

Lists information about the supported locations for this service. * @@ -2326,6 +2341,7 @@ public final OperationFuture deleteBackupVaultAsync(St * .setEtag("etag3123477") * .setValidateOnly(true) * .setAllowMissing(true) + * .setIgnoreBackupPlanReferences(true) * .build(); * backupDRClient.deleteBackupVaultAsync(request).get(); * } @@ -2360,6 +2376,7 @@ public final OperationFuture deleteBackupVaultAsync( * .setEtag("etag3123477") * .setValidateOnly(true) * .setAllowMissing(true) + * .setIgnoreBackupPlanReferences(true) * .build(); * OperationFuture future = * backupDRClient.deleteBackupVaultOperationCallable().futureCall(request); @@ -2394,6 +2411,7 @@ public final OperationFuture deleteBackupVaultAsync( * .setEtag("etag3123477") * .setValidateOnly(true) * .setAllowMissing(true) + * .setIgnoreBackupPlanReferences(true) * .build(); * ApiFuture future = backupDRClient.deleteBackupVaultCallable().futureCall(request); * // Do something. @@ -4995,6 +5013,98 @@ public final UnaryCallable triggerBackupCallabl return stub.triggerBackupCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Initializes the service related config for a 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   InitializeServiceRequest request =
+   *       InitializeServiceRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setResourceType("resourceType-384364440")
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   InitializeServiceResponse response = backupDRClient.initializeServiceAsync(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 initializeServiceAsync( + InitializeServiceRequest request) { + return initializeServiceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Initializes the service related config for a 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   InitializeServiceRequest request =
+   *       InitializeServiceRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setResourceType("resourceType-384364440")
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       backupDRClient.initializeServiceOperationCallable().futureCall(request);
+   *   // Do something.
+   *   InitializeServiceResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + InitializeServiceRequest, InitializeServiceResponse, OperationMetadata> + initializeServiceOperationCallable() { + return stub.initializeServiceOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Initializes the service related config for a 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 (BackupDRClient backupDRClient = BackupDRClient.create()) {
+   *   InitializeServiceRequest request =
+   *       InitializeServiceRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setResourceType("resourceType-384364440")
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future = backupDRClient.initializeServiceCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable initializeServiceCallable() { + return stub.initializeServiceCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists information about the supported locations for this service. diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRSettings.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRSettings.java index d60e28153979..703d62bf000a 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRSettings.java +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRSettings.java @@ -378,6 +378,18 @@ public UnaryCallSettings triggerBackupSettings( return ((BackupDRStubSettings) getStubSettings()).triggerBackupOperationSettings(); } + /** Returns the object with the settings used for calls to initializeService. */ + public UnaryCallSettings initializeServiceSettings() { + return ((BackupDRStubSettings) getStubSettings()).initializeServiceSettings(); + } + + /** Returns the object with the settings used for calls to initializeService. */ + public OperationCallSettings< + InitializeServiceRequest, InitializeServiceResponse, OperationMetadata> + initializeServiceOperationSettings() { + return ((BackupDRStubSettings) getStubSettings()).initializeServiceOperationSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -772,6 +784,19 @@ public UnaryCallSettings.Builder triggerBackupS return getStubSettingsBuilder().triggerBackupOperationSettings(); } + /** Returns the builder for the settings used for calls to initializeService. */ + public UnaryCallSettings.Builder + initializeServiceSettings() { + return getStubSettingsBuilder().initializeServiceSettings(); + } + + /** Returns the builder for the settings used for calls to initializeService. */ + public OperationCallSettings.Builder< + InitializeServiceRequest, InitializeServiceResponse, OperationMetadata> + initializeServiceOperationSettings() { + return getStubSettingsBuilder().initializeServiceOperationSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/gapic_metadata.json b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/gapic_metadata.json index 8ff6e33d94d6..fd53cc90ea48 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/gapic_metadata.json +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/gapic_metadata.json @@ -64,6 +64,9 @@ "GetManagementServer": { "methods": ["getManagementServer", "getManagementServer", "getManagementServer", "getManagementServerCallable"] }, + "InitializeService": { + "methods": ["initializeServiceAsync", "initializeServiceOperationCallable", "initializeServiceCallable"] + }, "ListBackupPlanAssociations": { "methods": ["listBackupPlanAssociations", "listBackupPlanAssociations", "listBackupPlanAssociations", "listBackupPlanAssociationsPagedCallable", "listBackupPlanAssociationsCallable"] }, diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStub.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStub.java index 6737d43a02c1..d27dd693631f 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStub.java +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStub.java @@ -50,6 +50,8 @@ import com.google.cloud.backupdr.v1.GetBackupVaultRequest; import com.google.cloud.backupdr.v1.GetDataSourceRequest; import com.google.cloud.backupdr.v1.GetManagementServerRequest; +import com.google.cloud.backupdr.v1.InitializeServiceRequest; +import com.google.cloud.backupdr.v1.InitializeServiceResponse; import com.google.cloud.backupdr.v1.ListBackupPlanAssociationsRequest; import com.google.cloud.backupdr.v1.ListBackupPlanAssociationsResponse; import com.google.cloud.backupdr.v1.ListBackupPlansRequest; @@ -334,6 +336,16 @@ public UnaryCallable triggerBackupCallable() { throw new UnsupportedOperationException("Not implemented: triggerBackupCallable()"); } + public OperationCallable + initializeServiceOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: initializeServiceOperationCallable()"); + } + + public UnaryCallable initializeServiceCallable() { + throw new UnsupportedOperationException("Not implemented: initializeServiceCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStubSettings.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStubSettings.java index ffe730f5a07c..21496371654b 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStubSettings.java +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/BackupDRStubSettings.java @@ -77,6 +77,8 @@ import com.google.cloud.backupdr.v1.GetBackupVaultRequest; import com.google.cloud.backupdr.v1.GetDataSourceRequest; import com.google.cloud.backupdr.v1.GetManagementServerRequest; +import com.google.cloud.backupdr.v1.InitializeServiceRequest; +import com.google.cloud.backupdr.v1.InitializeServiceResponse; import com.google.cloud.backupdr.v1.ListBackupPlanAssociationsRequest; import com.google.cloud.backupdr.v1.ListBackupPlanAssociationsResponse; import com.google.cloud.backupdr.v1.ListBackupPlansRequest; @@ -281,6 +283,10 @@ public class BackupDRStubSettings extends StubSettings { private final OperationCallSettings< TriggerBackupRequest, BackupPlanAssociation, OperationMetadata> triggerBackupOperationSettings; + private final UnaryCallSettings initializeServiceSettings; + private final OperationCallSettings< + InitializeServiceRequest, InitializeServiceResponse, OperationMetadata> + initializeServiceOperationSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -1005,6 +1011,18 @@ public UnaryCallSettings triggerBackupSettings( return triggerBackupOperationSettings; } + /** Returns the object with the settings used for calls to initializeService. */ + public UnaryCallSettings initializeServiceSettings() { + return initializeServiceSettings; + } + + /** Returns the object with the settings used for calls to initializeService. */ + public OperationCallSettings< + InitializeServiceRequest, InitializeServiceResponse, OperationMetadata> + initializeServiceOperationSettings() { + return initializeServiceOperationSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -1192,6 +1210,9 @@ protected BackupDRStubSettings(Builder settingsBuilder) throws IOException { settingsBuilder.deleteBackupPlanAssociationOperationSettings().build(); triggerBackupSettings = settingsBuilder.triggerBackupSettings().build(); triggerBackupOperationSettings = settingsBuilder.triggerBackupOperationSettings().build(); + initializeServiceSettings = settingsBuilder.initializeServiceSettings().build(); + initializeServiceOperationSettings = + settingsBuilder.initializeServiceOperationSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); @@ -1300,6 +1321,11 @@ public static class Builder extends StubSettings.Builder triggerBackupOperationSettings; + private final UnaryCallSettings.Builder + initializeServiceSettings; + private final OperationCallSettings.Builder< + InitializeServiceRequest, InitializeServiceResponse, OperationMetadata> + initializeServiceOperationSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -1403,6 +1429,8 @@ protected Builder(ClientContext clientContext) { deleteBackupPlanAssociationOperationSettings = OperationCallSettings.newBuilder(); triggerBackupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); triggerBackupOperationSettings = OperationCallSettings.newBuilder(); + initializeServiceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + initializeServiceOperationSettings = OperationCallSettings.newBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1438,6 +1466,7 @@ protected Builder(ClientContext clientContext) { listBackupPlanAssociationsSettings, deleteBackupPlanAssociationSettings, triggerBackupSettings, + initializeServiceSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -1496,6 +1525,8 @@ protected Builder(BackupDRStubSettings settings) { settings.deleteBackupPlanAssociationOperationSettings.toBuilder(); triggerBackupSettings = settings.triggerBackupSettings.toBuilder(); triggerBackupOperationSettings = settings.triggerBackupOperationSettings.toBuilder(); + initializeServiceSettings = settings.initializeServiceSettings.toBuilder(); + initializeServiceOperationSettings = settings.initializeServiceOperationSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); @@ -1531,6 +1562,7 @@ protected Builder(BackupDRStubSettings settings) { listBackupPlanAssociationsSettings, deleteBackupPlanAssociationSettings, triggerBackupSettings, + initializeServiceSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -1698,6 +1730,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .initializeServiceSettings() + .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")) @@ -2061,6 +2098,31 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(300000L)) .build())); + builder + .initializeServiceOperationSettings() + .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( + InitializeServiceResponse.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; } @@ -2335,6 +2397,19 @@ public UnaryCallSettings.Builder triggerBackupS return triggerBackupOperationSettings; } + /** Returns the builder for the settings used for calls to initializeService. */ + public UnaryCallSettings.Builder + initializeServiceSettings() { + return initializeServiceSettings; + } + + /** Returns the builder for the settings used for calls to initializeService. */ + public OperationCallSettings.Builder< + InitializeServiceRequest, InitializeServiceResponse, OperationMetadata> + initializeServiceOperationSettings() { + return initializeServiceOperationSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/GrpcBackupDRStub.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/GrpcBackupDRStub.java index 63106abbb184..640177bf732d 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/GrpcBackupDRStub.java +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/GrpcBackupDRStub.java @@ -55,6 +55,8 @@ import com.google.cloud.backupdr.v1.GetBackupVaultRequest; import com.google.cloud.backupdr.v1.GetDataSourceRequest; import com.google.cloud.backupdr.v1.GetManagementServerRequest; +import com.google.cloud.backupdr.v1.InitializeServiceRequest; +import com.google.cloud.backupdr.v1.InitializeServiceResponse; import com.google.cloud.backupdr.v1.ListBackupPlanAssociationsRequest; import com.google.cloud.backupdr.v1.ListBackupPlanAssociationsResponse; import com.google.cloud.backupdr.v1.ListBackupPlansRequest; @@ -378,6 +380,16 @@ public class GrpcBackupDRStub extends BackupDRStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + initializeServiceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.backupdr.v1.BackupDR/InitializeService") + .setRequestMarshaller( + ProtoUtils.marshaller(InitializeServiceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -508,6 +520,10 @@ public class GrpcBackupDRStub extends BackupDRStub { private final UnaryCallable triggerBackupCallable; private final OperationCallable triggerBackupOperationCallable; + private final UnaryCallable initializeServiceCallable; + private final OperationCallable< + InitializeServiceRequest, InitializeServiceResponse, OperationMetadata> + initializeServiceOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -843,6 +859,16 @@ protected GrpcBackupDRStub( return builder.build(); }) .build(); + GrpcCallSettings initializeServiceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(initializeServiceMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -1111,6 +1137,17 @@ protected GrpcBackupDRStub( settings.triggerBackupOperationSettings(), clientContext, operationsStub); + this.initializeServiceCallable = + callableFactory.createUnaryCallable( + initializeServiceTransportSettings, + settings.initializeServiceSettings(), + clientContext); + this.initializeServiceOperationCallable = + callableFactory.createOperationCallable( + initializeServiceTransportSettings, + settings.initializeServiceOperationSettings(), + clientContext, + operationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -1408,6 +1445,17 @@ public UnaryCallable triggerBackupCallable() { return triggerBackupOperationCallable; } + @Override + public UnaryCallable initializeServiceCallable() { + return initializeServiceCallable; + } + + @Override + public OperationCallable + initializeServiceOperationCallable() { + return initializeServiceOperationCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/HttpJsonBackupDRStub.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/HttpJsonBackupDRStub.java index d427dc05a233..76600bf3682f 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/HttpJsonBackupDRStub.java +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/HttpJsonBackupDRStub.java @@ -63,6 +63,8 @@ import com.google.cloud.backupdr.v1.GetBackupVaultRequest; import com.google.cloud.backupdr.v1.GetDataSourceRequest; import com.google.cloud.backupdr.v1.GetManagementServerRequest; +import com.google.cloud.backupdr.v1.InitializeServiceRequest; +import com.google.cloud.backupdr.v1.InitializeServiceResponse; import com.google.cloud.backupdr.v1.ListBackupPlanAssociationsRequest; import com.google.cloud.backupdr.v1.ListBackupPlanAssociationsResponse; import com.google.cloud.backupdr.v1.ListBackupPlansRequest; @@ -118,6 +120,7 @@ public class HttpJsonBackupDRStub extends BackupDRStub { .add(OperationMetadata.getDescriptor()) .add(Empty.getDescriptor()) .add(BackupVault.getDescriptor()) + .add(InitializeServiceResponse.getDescriptor()) .add(Backup.getDescriptor()) .add(DataSource.getDescriptor()) .add(BackupPlan.getDescriptor()) @@ -515,6 +518,10 @@ public class HttpJsonBackupDRStub extends BackupDRStub { fields, "allowMissing", request.getAllowMissing()); serializer.putQueryParam(fields, "etag", request.getEtag()); serializer.putQueryParam(fields, "force", request.getForce()); + serializer.putQueryParam( + fields, + "ignoreBackupPlanReferences", + request.getIgnoreBackupPlanReferences()); serializer.putQueryParam(fields, "requestId", request.getRequestId()); serializer.putQueryParam( fields, "validateOnly", request.getValidateOnly()); @@ -1196,6 +1203,46 @@ public class HttpJsonBackupDRStub extends BackupDRStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + initializeServiceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.backupdr.v1.BackupDR/InitializeService") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/serviceConfig}:initialize", + 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( + (InitializeServiceRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor listLocationsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -1456,6 +1503,10 @@ public class HttpJsonBackupDRStub extends BackupDRStub { private final UnaryCallable triggerBackupCallable; private final OperationCallable triggerBackupOperationCallable; + private final UnaryCallable initializeServiceCallable; + private final OperationCallable< + InitializeServiceRequest, InitializeServiceResponse, OperationMetadata> + initializeServiceOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -1849,6 +1900,17 @@ protected HttpJsonBackupDRStub( return builder.build(); }) .build(); + HttpJsonCallSettings initializeServiceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(initializeServiceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings listLocationsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2123,6 +2185,17 @@ protected HttpJsonBackupDRStub( settings.triggerBackupOperationSettings(), clientContext, httpJsonOperationsStub); + this.initializeServiceCallable = + callableFactory.createUnaryCallable( + initializeServiceTransportSettings, + settings.initializeServiceSettings(), + clientContext); + this.initializeServiceOperationCallable = + callableFactory.createOperationCallable( + initializeServiceTransportSettings, + settings.initializeServiceOperationSettings(), + clientContext, + httpJsonOperationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -2178,6 +2251,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(listBackupPlanAssociationsMethodDescriptor); methodDescriptors.add(deleteBackupPlanAssociationMethodDescriptor); methodDescriptors.add(triggerBackupMethodDescriptor); + methodDescriptors.add(initializeServiceMethodDescriptor); methodDescriptors.add(listLocationsMethodDescriptor); methodDescriptors.add(getLocationMethodDescriptor); methodDescriptors.add(setIamPolicyMethodDescriptor); @@ -2458,6 +2532,17 @@ public UnaryCallable triggerBackupCallable() { return triggerBackupOperationCallable; } + @Override + public UnaryCallable initializeServiceCallable() { + return initializeServiceCallable; + } + + @Override + public OperationCallable + initializeServiceOperationCallable() { + return initializeServiceOperationCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-backupdr/google-cloud-backupdr/src/main/resources/META-INF/native-image/com.google.cloud.backupdr.v1/reflect-config.json b/java-backupdr/google-cloud-backupdr/src/main/resources/META-INF/native-image/com.google.cloud.backupdr.v1/reflect-config.json index 7fd43a4bf38d..ae6f49d5d0d3 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/resources/META-INF/native-image/com.google.cloud.backupdr.v1/reflect-config.json +++ b/java-backupdr/google-cloud-backupdr/src/main/resources/META-INF/native-image/com.google.cloud.backupdr.v1/reflect-config.json @@ -1538,6 +1538,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.backupdr.v1.InitializeServiceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.InitializeServiceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.InitializeServiceResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.InitializeServiceResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.backupdr.v1.InstanceParams", "queryAllDeclaredConstructors": true, diff --git a/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientHttpJsonTest.java b/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientHttpJsonTest.java index 8a7c199f7538..1e2f3fcc60f2 100644 --- a/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientHttpJsonTest.java +++ b/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientHttpJsonTest.java @@ -3042,6 +3042,66 @@ public void triggerBackupExceptionTest2() throws Exception { } } + @Test + public void initializeServiceTest() throws Exception { + InitializeServiceResponse expectedResponse = + InitializeServiceResponse.newBuilder() + .setBackupVaultName("backupVaultName1928739899") + .setBackupPlanName("backupPlanName42972470") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("initializeServiceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + InitializeServiceRequest request = + InitializeServiceRequest.newBuilder() + .setName("projects/project-6002/locations/location-6002/serviceConfig") + .setResourceType("resourceType-384364440") + .setRequestId("requestId693933066") + .build(); + + InitializeServiceResponse actualResponse = client.initializeServiceAsync(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 initializeServiceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + InitializeServiceRequest request = + InitializeServiceRequest.newBuilder() + .setName("projects/project-6002/locations/location-6002/serviceConfig") + .setResourceType("resourceType-384364440") + .setRequestId("requestId693933066") + .build(); + client.initializeServiceAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientTest.java b/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientTest.java index 9657c8ba6b27..a95b6ad6e309 100644 --- a/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientTest.java +++ b/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientTest.java @@ -2746,6 +2746,65 @@ public void triggerBackupExceptionTest2() throws Exception { } } + @Test + public void initializeServiceTest() throws Exception { + InitializeServiceResponse expectedResponse = + InitializeServiceResponse.newBuilder() + .setBackupVaultName("backupVaultName1928739899") + .setBackupPlanName("backupPlanName42972470") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("initializeServiceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockBackupDR.addResponse(resultOperation); + + InitializeServiceRequest request = + InitializeServiceRequest.newBuilder() + .setName("name3373707") + .setResourceType("resourceType-384364440") + .setRequestId("requestId693933066") + .build(); + + InitializeServiceResponse actualResponse = client.initializeServiceAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBackupDR.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + InitializeServiceRequest actualRequest = ((InitializeServiceRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getResourceType(), actualRequest.getResourceType()); + Assert.assertEquals(request.getRequestId(), actualRequest.getRequestId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void initializeServiceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBackupDR.addException(exception); + + try { + InitializeServiceRequest request = + InitializeServiceRequest.newBuilder() + .setName("name3373707") + .setResourceType("resourceType-384364440") + .setRequestId("requestId693933066") + .build(); + client.initializeServiceAsync(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 listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/MockBackupDRImpl.java b/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/MockBackupDRImpl.java index 28d9ef692793..1fb5a608eb7e 100644 --- a/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/MockBackupDRImpl.java +++ b/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/MockBackupDRImpl.java @@ -628,4 +628,25 @@ public void triggerBackup( Exception.class.getName()))); } } + + @Override + public void initializeService( + InitializeServiceRequest 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 InitializeService, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-backupdr/grpc-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupDRGrpc.java b/java-backupdr/grpc-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupDRGrpc.java index b3da66916854..6041a72723d5 100644 --- a/java-backupdr/grpc-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupDRGrpc.java +++ b/java-backupdr/grpc-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupDRGrpc.java @@ -1259,6 +1259,49 @@ private BackupDRGrpc() {} return getTriggerBackupMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.backupdr.v1.InitializeServiceRequest, com.google.longrunning.Operation> + getInitializeServiceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "InitializeService", + requestType = com.google.cloud.backupdr.v1.InitializeServiceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.backupdr.v1.InitializeServiceRequest, com.google.longrunning.Operation> + getInitializeServiceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.backupdr.v1.InitializeServiceRequest, com.google.longrunning.Operation> + getInitializeServiceMethod; + if ((getInitializeServiceMethod = BackupDRGrpc.getInitializeServiceMethod) == null) { + synchronized (BackupDRGrpc.class) { + if ((getInitializeServiceMethod = BackupDRGrpc.getInitializeServiceMethod) == null) { + BackupDRGrpc.getInitializeServiceMethod = + getInitializeServiceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "InitializeService")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.backupdr.v1.InitializeServiceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BackupDRMethodDescriptorSupplier("InitializeService")) + .build(); + } + } + } + return getInitializeServiceMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static BackupDRStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -1695,6 +1738,20 @@ default void triggerBackup( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getTriggerBackupMethod(), responseObserver); } + + /** + * + * + *
+     * Initializes the service related config for a project.
+     * 
+ */ + default void initializeService( + com.google.cloud.backupdr.v1.InitializeServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getInitializeServiceMethod(), responseObserver); + } } /** @@ -2169,6 +2226,22 @@ public void triggerBackup( request, responseObserver); } + + /** + * + * + *
+     * Initializes the service related config for a project.
+     * 
+ */ + public void initializeService( + com.google.cloud.backupdr.v1.InitializeServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getInitializeServiceMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -2542,6 +2615,19 @@ public com.google.longrunning.Operation triggerBackup( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getTriggerBackupMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Initializes the service related config for a project.
+     * 
+ */ + public com.google.longrunning.Operation initializeService( + com.google.cloud.backupdr.v1.InitializeServiceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getInitializeServiceMethod(), getCallOptions(), request); + } } /** @@ -2931,6 +3017,19 @@ protected BackupDRFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getTriggerBackupMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Initializes the service related config for a project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + initializeService(com.google.cloud.backupdr.v1.InitializeServiceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getInitializeServiceMethod(), getCallOptions()), request); + } } private static final int METHODID_LIST_MANAGEMENT_SERVERS = 0; @@ -2960,6 +3059,7 @@ protected BackupDRFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions private static final int METHODID_LIST_BACKUP_PLAN_ASSOCIATIONS = 24; private static final int METHODID_DELETE_BACKUP_PLAN_ASSOCIATION = 25; private static final int METHODID_TRIGGER_BACKUP = 26; + private static final int METHODID_INITIALIZE_SERVICE = 27; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -3128,6 +3228,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.backupdr.v1.TriggerBackupRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_INITIALIZE_SERVICE: + serviceImpl.initializeService( + (com.google.cloud.backupdr.v1.InitializeServiceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -3319,6 +3424,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.backupdr.v1.TriggerBackupRequest, com.google.longrunning.Operation>(service, METHODID_TRIGGER_BACKUP))) + .addMethod( + getInitializeServiceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.backupdr.v1.InitializeServiceRequest, + com.google.longrunning.Operation>(service, METHODID_INITIALIZE_SERVICE))) .build(); } @@ -3395,6 +3506,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getListBackupPlanAssociationsMethod()) .addMethod(getDeleteBackupPlanAssociationMethod()) .addMethod(getTriggerBackupMethod()) + .addMethod(getInitializeServiceMethod()) .build(); } } diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupDRProto.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupDRProto.java index 9cf5cce56898..f1ed7cd44d95 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupDRProto.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupDRProto.java @@ -72,6 +72,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_backupdr_v1_DeleteManagementServerRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_backupdr_v1_DeleteManagementServerRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_backupdr_v1_InitializeServiceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_backupdr_v1_InitializeServiceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_backupdr_v1_InitializeServiceResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_backupdr_v1_InitializeServiceResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_backupdr_v1_OperationMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -129,7 +137,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "nagementURIB\003\340A\003\022L\n\005state\030\007 \001(\01628.google" + ".cloud.backupdr.v1.ManagementServer.Inst" + "anceStateB\003\340A\003\022>\n\010networks\030\010 \003(\0132\'.googl" - + "e.cloud.backupdr.v1.NetworkConfigB\003\340A\002\022\021" + + "e.cloud.backupdr.v1.NetworkConfigB\003\340A\001\022\021" + "\n\004etag\030\r \001(\tB\003\340A\001\022\035\n\020oauth2_client_id\030\017 " + "\001(\tB\003\340A\003\022v\n)workforce_identity_based_oau" + "th2_client_id\030\021 \001(\0132>.google.cloud.backu" @@ -168,175 +176,185 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030\004 \001(\tB\003\340A\001\"x\n\035DeleteManagementServerReq" + "uest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(backupdr.goo" + "gleapis.com/ManagementServer\022\027\n\nrequest_" - + "id\030\002 \001(\tB\003\340A\001\"\226\003\n\021OperationMetadata\0224\n\013c" - + "reate_time\030\001 \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.pro" - + "tobuf.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\003\022]\n\017addi" - + "tional_info\030\010 \003(\0132?.google.cloud.backupd" - + "r.v1.OperationMetadata.AdditionalInfoEnt" - + "ryB\003\340A\003\0325\n\023AdditionalInfoEntry\022\013\n\003key\030\001 " - + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\0012\332/\n\010BackupDR\022\320\001\n\025" - + "ListManagementServers\0226.google.cloud.bac" - + "kupdr.v1.ListManagementServersRequest\0327." - + "google.cloud.backupdr.v1.ListManagementS" - + "erversResponse\"F\332A\006parent\202\323\344\223\0027\0225/v1/{pa" - + "rent=projects/*/locations/*}/managementS" - + "ervers\022\275\001\n\023GetManagementServer\0224.google." - + "cloud.backupdr.v1.GetManagementServerReq" - + "uest\032*.google.cloud.backupdr.v1.Manageme" - + "ntServer\"D\332A\004name\202\323\344\223\0027\0225/v1/{name=proje" - + "cts/*/locations/*/managementServers/*}\022\233" - + "\002\n\026CreateManagementServer\0227.google.cloud" - + ".backupdr.v1.CreateManagementServerReque" - + "st\032\035.google.longrunning.Operation\"\250\001\312A%\n" - + "\020ManagementServer\022\021OperationMetadata\332A-p" - + "arent,management_server,management_serve" - + "r_id\202\323\344\223\002J\"5/v1/{parent=projects/*/locat" - + "ions/*}/managementServers:\021management_se" - + "rver\022\343\001\n\026DeleteManagementServer\0227.google" - + ".cloud.backupdr.v1.DeleteManagementServe" - + "rRequest\032\035.google.longrunning.Operation\"" - + "q\312A*\n\025google.protobuf.Empty\022\021OperationMe" - + "tadata\332A\004name\202\323\344\223\0027*5/v1/{name=projects/" - + "*/locations/*/managementServers/*}\022\370\001\n\021C" - + "reateBackupVault\0222.google.cloud.backupdr" - + ".v1.CreateBackupVaultRequest\032\035.google.lo" - + "ngrunning.Operation\"\217\001\312A \n\013BackupVault\022\021" - + "OperationMetadata\332A#parent,backup_vault," - + "backup_vault_id\202\323\344\223\002@\"0/v1/{parent=proje" - + "cts/*/locations/*}/backupVaults:\014backup_" - + "vault\022\274\001\n\020ListBackupVaults\0221.google.clou" - + "d.backupdr.v1.ListBackupVaultsRequest\0322." - + "google.cloud.backupdr.v1.ListBackupVault" - + "sResponse\"A\332A\006parent\202\323\344\223\0022\0220/v1/{parent=" - + "projects/*/locations/*}/backupVaults\022\335\001\n" - + "\027FetchUsableBackupVaults\0228.google.cloud." - + "backupdr.v1.FetchUsableBackupVaultsReque" - + "st\0329.google.cloud.backupdr.v1.FetchUsabl" - + "eBackupVaultsResponse\"M\332A\006parent\202\323\344\223\002>\022<" - + "/v1/{parent=projects/*/locations/*}/back" - + "upVaults:fetchUsable\022\251\001\n\016GetBackupVault\022" - + "/.google.cloud.backupdr.v1.GetBackupVaul" - + "tRequest\032%.google.cloud.backupdr.v1.Back" - + "upVault\"?\332A\004name\202\323\344\223\0022\0220/v1/{name=projec" - + "ts/*/locations/*/backupVaults/*}\022\372\001\n\021Upd" - + "ateBackupVault\0222.google.cloud.backupdr.v" - + "1.UpdateBackupVaultRequest\032\035.google.long" - + "running.Operation\"\221\001\312A \n\013BackupVault\022\021Op" - + "erationMetadata\332A\030backup_vault,update_ma" - + "sk\202\323\344\223\002M2=/v1/{backup_vault.name=project" - + "s/*/locations/*/backupVaults/*}:\014backup_" - + "vault\022\324\001\n\021DeleteBackupVault\0222.google.clo" - + "ud.backupdr.v1.DeleteBackupVaultRequest\032" - + "\035.google.longrunning.Operation\"l\312A*\n\025goo" - + "gle.protobuf.Empty\022\021OperationMetadata\332A\004" - + "name\202\323\344\223\0022*0/v1/{name=projects/*/locatio" - + "ns/*/backupVaults/*}\022\307\001\n\017ListDataSources" - + "\0220.google.cloud.backupdr.v1.ListDataSour" - + "cesRequest\0321.google.cloud.backupdr.v1.Li" - + "stDataSourcesResponse\"O\332A\006parent\202\323\344\223\002@\022>" - + "/v1/{parent=projects/*/locations/*/backu" - + "pVaults/*}/dataSources\022\264\001\n\rGetDataSource" - + "\022..google.cloud.backupdr.v1.GetDataSourc" - + "eRequest\032$.google.cloud.backupdr.v1.Data" - + "Source\"M\332A\004name\202\323\344\223\002@\022>/v1/{name=project" + + "id\030\002 \001(\tB\003\340A\001\"j\n\030InitializeServiceReques" + + "t\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\032\n\rresource_type\030\002 " + + "\001(\tB\003\340A\002\022\037\n\nrequest_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010" + + "\001\"P\n\031InitializeServiceResponse\022\031\n\021backup" + + "_vault_name\030\001 \001(\t\022\030\n\020backup_plan_name\030\002 " + + "\001(\t\"\226\003\n\021OperationMetadata\0224\n\013create_time" + + "\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "1\n\010end_time\030\002 \001(\0132\032.google.protobuf.Time" + + "stampB\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\013" + + "api_version\030\007 \001(\tB\003\340A\003\022]\n\017additional_inf" + + "o\030\010 \003(\0132?.google.cloud.backupdr.v1.Opera" + + "tionMetadata.AdditionalInfoEntryB\003\340A\003\0325\n" + + "\023AdditionalInfoEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\030\002 \001(\t:\0028\0012\2731\n\010BackupDR\022\320\001\n\025ListManage" + + "mentServers\0226.google.cloud.backupdr.v1.L" + + "istManagementServersRequest\0327.google.clo" + + "ud.backupdr.v1.ListManagementServersResp" + + "onse\"F\332A\006parent\202\323\344\223\0027\0225/v1/{parent=proje" + + "cts/*/locations/*}/managementServers\022\275\001\n" + + "\023GetManagementServer\0224.google.cloud.back" + + "updr.v1.GetManagementServerRequest\032*.goo" + + "gle.cloud.backupdr.v1.ManagementServer\"D" + + "\332A\004name\202\323\344\223\0027\0225/v1/{name=projects/*/loca" + + "tions/*/managementServers/*}\022\233\002\n\026CreateM" + + "anagementServer\0227.google.cloud.backupdr." + + "v1.CreateManagementServerRequest\032\035.googl" + + "e.longrunning.Operation\"\250\001\312A%\n\020Managemen" + + "tServer\022\021OperationMetadata\332A-parent,mana" + + "gement_server,management_server_id\202\323\344\223\002J" + + "\"5/v1/{parent=projects/*/locations/*}/ma" + + "nagementServers:\021management_server\022\343\001\n\026D" + + "eleteManagementServer\0227.google.cloud.bac" + + "kupdr.v1.DeleteManagementServerRequest\032\035" + + ".google.longrunning.Operation\"q\312A*\n\025goog" + + "le.protobuf.Empty\022\021OperationMetadata\332A\004n" + + "ame\202\323\344\223\0027*5/v1/{name=projects/*/location" + + "s/*/managementServers/*}\022\370\001\n\021CreateBacku" + + "pVault\0222.google.cloud.backupdr.v1.Create" + + "BackupVaultRequest\032\035.google.longrunning." + + "Operation\"\217\001\312A \n\013BackupVault\022\021OperationM" + + "etadata\332A#parent,backup_vault,backup_vau" + + "lt_id\202\323\344\223\002@\"0/v1/{parent=projects/*/loca" + + "tions/*}/backupVaults:\014backup_vault\022\274\001\n\020" + + "ListBackupVaults\0221.google.cloud.backupdr" + + ".v1.ListBackupVaultsRequest\0322.google.clo" + + "ud.backupdr.v1.ListBackupVaultsResponse\"" + + "A\332A\006parent\202\323\344\223\0022\0220/v1/{parent=projects/*" + + "/locations/*}/backupVaults\022\335\001\n\027FetchUsab" + + "leBackupVaults\0228.google.cloud.backupdr.v" + + "1.FetchUsableBackupVaultsRequest\0329.googl" + + "e.cloud.backupdr.v1.FetchUsableBackupVau" + + "ltsResponse\"M\332A\006parent\202\323\344\223\002>\022/v1/{paren" + + "t=projects/*/locations/*/backupVaults/*}" + + "/dataSources\022\264\001\n\rGetDataSource\022..google." + + "cloud.backupdr.v1.GetDataSourceRequest\032$" + + ".google.cloud.backupdr.v1.DataSource\"M\332A" + + "\004name\202\323\344\223\002@\022>/v1/{name=projects/*/locati" + + "ons/*/backupVaults/*/dataSources/*}\022\202\002\n\020" + + "UpdateDataSource\0221.google.cloud.backupdr" + + ".v1.UpdateDataSourceRequest\032\035.google.lon" + + "grunning.Operation\"\233\001\312A\037\n\nDataSource\022\021Op" + + "erationMetadata\332A\027data_source,update_mas" + + "k\202\323\344\223\002Y2J/v1/{data_source.name=projects/" + + "*/locations/*/backupVaults/*/dataSources" + + "/*}:\013data_source\022\305\001\n\013ListBackups\022,.googl" + + "e.cloud.backupdr.v1.ListBackupsRequest\032-" + + ".google.cloud.backupdr.v1.ListBackupsRes" + + "ponse\"Y\332A\006parent\202\323\344\223\002J\022H/v1/{parent=proj" + + "ects/*/locations/*/backupVaults/*/dataSo" + + "urces/*}/backups\022\262\001\n\tGetBackup\022*.google." + + "cloud.backupdr.v1.GetBackupRequest\032 .goo" + + "gle.cloud.backupdr.v1.Backup\"W\332A\004name\202\323\344" + + "\223\002J\022H/v1/{name=projects/*/locations/*/ba" + + "ckupVaults/*/dataSources/*/backups/*}\022\361\001" + + "\n\014UpdateBackup\022-.google.cloud.backupdr.v" + + "1.UpdateBackupRequest\032\035.google.longrunni" + + "ng.Operation\"\222\001\312A\033\n\006Backup\022\021OperationMet" + + "adata\332A\022backup,update_mask\202\323\344\223\002Y2O/v1/{b" + + "ackup.name=projects/*/locations/*/backup" + + "Vaults/*/dataSources/*/backups/*}:\006backu" + + "p\022\323\001\n\014DeleteBackup\022-.google.cloud.backup" + + "dr.v1.DeleteBackupRequest\032\035.google.longr" + + "unning.Operation\"u\312A\033\n\006Backup\022\021Operation" + + "Metadata\332A\004name\202\323\344\223\002J*H/v1/{name=project" + "s/*/locations/*/backupVaults/*/dataSourc" - + "es/*}\022\202\002\n\020UpdateDataSource\0221.google.clou" - + "d.backupdr.v1.UpdateDataSourceRequest\032\035." - + "google.longrunning.Operation\"\233\001\312A\037\n\nData" - + "Source\022\021OperationMetadata\332A\027data_source," - + "update_mask\202\323\344\223\002Y2J/v1/{data_source.name" - + "=projects/*/locations/*/backupVaults/*/d" - + "ataSources/*}:\013data_source\022\305\001\n\013ListBacku" - + "ps\022,.google.cloud.backupdr.v1.ListBackup" - + "sRequest\032-.google.cloud.backupdr.v1.List" - + "BackupsResponse\"Y\332A\006parent\202\323\344\223\002J\022H/v1/{p" - + "arent=projects/*/locations/*/backupVault" - + "s/*/dataSources/*}/backups\022\262\001\n\tGetBackup" - + "\022*.google.cloud.backupdr.v1.GetBackupReq" - + "uest\032 .google.cloud.backupdr.v1.Backup\"W" - + "\332A\004name\202\323\344\223\002J\022H/v1/{name=projects/*/loca" + + "es/*/backups/*}\022\360\001\n\rRestoreBackup\022..goog" + + "le.cloud.backupdr.v1.RestoreBackupReques" + + "t\032\035.google.longrunning.Operation\"\217\001\312A*\n\025" + + "RestoreBackupResponse\022\021OperationMetadata" + + "\332A\004name\202\323\344\223\002U\"P/v1/{name=projects/*/loca" + "tions/*/backupVaults/*/dataSources/*/bac" - + "kups/*}\022\361\001\n\014UpdateBackup\022-.google.cloud." - + "backupdr.v1.UpdateBackupRequest\032\035.google" - + ".longrunning.Operation\"\222\001\312A\033\n\006Backup\022\021Op" - + "erationMetadata\332A\022backup,update_mask\202\323\344\223" - + "\002Y2O/v1/{backup.name=projects/*/location" - + "s/*/backupVaults/*/dataSources/*/backups" - + "/*}:\006backup\022\323\001\n\014DeleteBackup\022-.google.cl" - + "oud.backupdr.v1.DeleteBackupRequest\032\035.go" - + "ogle.longrunning.Operation\"u\312A\033\n\006Backup\022" - + "\021OperationMetadata\332A\004name\202\323\344\223\002J*H/v1/{na" - + "me=projects/*/locations/*/backupVaults/*" - + "/dataSources/*/backups/*}\022\360\001\n\rRestoreBac" - + "kup\022..google.cloud.backupdr.v1.RestoreBa" - + "ckupRequest\032\035.google.longrunning.Operati" - + "on\"\217\001\312A*\n\025RestoreBackupResponse\022\021Operati" - + "onMetadata\332A\004name\202\323\344\223\002U\"P/v1/{name=proje" - + "cts/*/locations/*/backupVaults/*/dataSou" - + "rces/*/backups/*}:restore:\001*\022\361\001\n\020CreateB" - + "ackupPlan\0221.google.cloud.backupdr.v1.Cre" - + "ateBackupPlanRequest\032\035.google.longrunnin" - + "g.Operation\"\212\001\312A\037\n\nBackupPlan\022\021Operation" - + "Metadata\332A!parent,backup_plan,backup_pla" - + "n_id\202\323\344\223\002>\"//v1/{parent=projects/*/locat" - + "ions/*}/backupPlans:\013backup_plan\022\245\001\n\rGet" - + "BackupPlan\022..google.cloud.backupdr.v1.Ge" - + "tBackupPlanRequest\032$.google.cloud.backup" - + "dr.v1.BackupPlan\">\332A\004name\202\323\344\223\0021\022//v1/{na" - + "me=projects/*/locations/*/backupPlans/*}" - + "\022\270\001\n\017ListBackupPlans\0220.google.cloud.back" - + "updr.v1.ListBackupPlansRequest\0321.google." - + "cloud.backupdr.v1.ListBackupPlansRespons" - + "e\"@\332A\006parent\202\323\344\223\0021\022//v1/{parent=projects" - + "/*/locations/*}/backupPlans\022\321\001\n\020DeleteBa" - + "ckupPlan\0221.google.cloud.backupdr.v1.Dele" - + "teBackupPlanRequest\032\035.google.longrunning" - + ".Operation\"k\312A*\n\025google.protobuf.Empty\022\021" - + "OperationMetadata\332A\004name\202\323\344\223\0021*//v1/{nam" - + "e=projects/*/locations/*/backupPlans/*}\022" - + "\301\002\n\033CreateBackupPlanAssociation\022<.google" - + ".cloud.backupdr.v1.CreateBackupPlanAssoc" - + "iationRequest\032\035.google.longrunning.Opera" - + "tion\"\304\001\312A*\n\025BackupPlanAssociation\022\021Opera" - + "tionMetadata\332A9parent,backup_plan_associ" - + "ation,backup_plan_association_id\202\323\344\223\002U\":" - + "/v1/{parent=projects/*/locations/*}/back" - + "upPlanAssociations:\027backup_plan_associat" - + "ion\022\321\001\n\030GetBackupPlanAssociation\0229.googl" - + "e.cloud.backupdr.v1.GetBackupPlanAssocia" - + "tionRequest\032/.google.cloud.backupdr.v1.B" - + "ackupPlanAssociation\"I\332A\004name\202\323\344\223\002<\022:/v1" - + "/{name=projects/*/locations/*/backupPlan" - + "Associations/*}\022\344\001\n\032ListBackupPlanAssoci" - + "ations\022;.google.cloud.backupdr.v1.ListBa" - + "ckupPlanAssociationsRequest\032<.google.clo" - + "ud.backupdr.v1.ListBackupPlanAssociation" - + "sResponse\"K\332A\006parent\202\323\344\223\002<\022:/v1/{parent=" - + "projects/*/locations/*}/backupPlanAssoci" - + "ations\022\362\001\n\033DeleteBackupPlanAssociation\022<" + + "kups/*}:restore:\001*\022\361\001\n\020CreateBackupPlan\022" + + "1.google.cloud.backupdr.v1.CreateBackupP" + + "lanRequest\032\035.google.longrunning.Operatio" + + "n\"\212\001\312A\037\n\nBackupPlan\022\021OperationMetadata\332A" + + "!parent,backup_plan,backup_plan_id\202\323\344\223\002>" + + "\"//v1/{parent=projects/*/locations/*}/ba" + + "ckupPlans:\013backup_plan\022\245\001\n\rGetBackupPlan" + + "\022..google.cloud.backupdr.v1.GetBackupPla" + + "nRequest\032$.google.cloud.backupdr.v1.Back" + + "upPlan\">\332A\004name\202\323\344\223\0021\022//v1/{name=project" + + "s/*/locations/*/backupPlans/*}\022\270\001\n\017ListB" + + "ackupPlans\0220.google.cloud.backupdr.v1.Li" + + "stBackupPlansRequest\0321.google.cloud.back" + + "updr.v1.ListBackupPlansResponse\"@\332A\006pare" + + "nt\202\323\344\223\0021\022//v1/{parent=projects/*/locatio" + + "ns/*}/backupPlans\022\321\001\n\020DeleteBackupPlan\0221" + ".google.cloud.backupdr.v1.DeleteBackupPl" - + "anAssociationRequest\032\035.google.longrunnin" - + "g.Operation\"v\312A*\n\025google.protobuf.Empty\022" - + "\021OperationMetadata\332A\004name\202\323\344\223\002<*:/v1/{na" - + "me=projects/*/locations/*/backupPlanAsso" - + "ciations/*}\022\360\001\n\rTriggerBackup\022..google.c" - + "loud.backupdr.v1.TriggerBackupRequest\032\035." - + "google.longrunning.Operation\"\217\001\312A*\n\025Back" - + "upPlanAssociation\022\021OperationMetadata\332A\014n" - + "ame,rule_id\202\323\344\223\002M\"H/v1/{name=projects/*/" - + "locations/*/backupPlanAssociations/*}:tr" - + "iggerBackup:\001*\032K\312A\027backupdr.googleapis.c" - + "om\322A.https://www.googleapis.com/auth/clo" - + "ud-platformB\275\001\n\034com.google.cloud.backupd" - + "r.v1B\rBackupDRProtoP\001Z8cloud.google.com/" - + "go/backupdr/apiv1/backupdrpb;backupdrpb\252" - + "\002\030Google.Cloud.BackupDR.V1\312\002\030Google\\Clou" - + "d\\BackupDR\\V1\352\002\033Google::Cloud::BackupDR:" - + ":V1b\006proto3" + + "anRequest\032\035.google.longrunning.Operation" + + "\"k\312A*\n\025google.protobuf.Empty\022\021OperationM" + + "etadata\332A\004name\202\323\344\223\0021*//v1/{name=projects" + + "/*/locations/*/backupPlans/*}\022\301\002\n\033Create" + + "BackupPlanAssociation\022<.google.cloud.bac" + + "kupdr.v1.CreateBackupPlanAssociationRequ" + + "est\032\035.google.longrunning.Operation\"\304\001\312A*" + + "\n\025BackupPlanAssociation\022\021OperationMetada" + + "ta\332A9parent,backup_plan_association,back" + + "up_plan_association_id\202\323\344\223\002U\":/v1/{paren" + + "t=projects/*/locations/*}/backupPlanAsso" + + "ciations:\027backup_plan_association\022\321\001\n\030Ge" + + "tBackupPlanAssociation\0229.google.cloud.ba" + + "ckupdr.v1.GetBackupPlanAssociationReques" + + "t\032/.google.cloud.backupdr.v1.BackupPlanA" + + "ssociation\"I\332A\004name\202\323\344\223\002<\022:/v1/{name=pro" + + "jects/*/locations/*/backupPlanAssociatio" + + "ns/*}\022\344\001\n\032ListBackupPlanAssociations\022;.g" + + "oogle.cloud.backupdr.v1.ListBackupPlanAs" + + "sociationsRequest\032<.google.cloud.backupd" + + "r.v1.ListBackupPlanAssociationsResponse\"" + + "K\332A\006parent\202\323\344\223\002<\022:/v1/{parent=projects/*" + + "/locations/*}/backupPlanAssociations\022\362\001\n" + + "\033DeleteBackupPlanAssociation\022<.google.cl" + + "oud.backupdr.v1.DeleteBackupPlanAssociat" + + "ionRequest\032\035.google.longrunning.Operatio" + + "n\"v\312A*\n\025google.protobuf.Empty\022\021Operation" + + "Metadata\332A\004name\202\323\344\223\002<*:/v1/{name=project" + + "s/*/locations/*/backupPlanAssociations/*" + + "}\022\360\001\n\rTriggerBackup\022..google.cloud.backu" + + "pdr.v1.TriggerBackupRequest\032\035.google.lon" + + "grunning.Operation\"\217\001\312A*\n\025BackupPlanAsso" + + "ciation\022\021OperationMetadata\332A\014name,rule_i" + + "d\202\323\344\223\002M\"H/v1/{name=projects/*/locations/" + + "*/backupPlanAssociations/*}:triggerBacku" + + "p:\001*\022\336\001\n\021InitializeService\0222.google.clou" + + "d.backupdr.v1.InitializeServiceRequest\032\035" + + ".google.longrunning.Operation\"v\312A.\n\031Init" + + "ializeServiceResponse\022\021OperationMetadata" + + "\202\323\344\223\002?\":/v1/{name=projects/*/locations/*" + + "/serviceConfig}:initialize:\001*\032K\312A\027backup" + + "dr.googleapis.com\322A.https://www.googleap" + + "is.com/auth/cloud-platformB\275\001\n\034com.googl" + + "e.cloud.backupdr.v1B\rBackupDRProtoP\001Z8cl" + + "oud.google.com/go/backupdr/apiv1/backupd" + + "rpb;backupdrpb\252\002\030Google.Cloud.BackupDR.V" + + "1\312\002\030Google\\Cloud\\BackupDR\\V1\352\002\033Google::C" + + "loud::BackupDR::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -460,8 +478,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "RequestId", }); - internal_static_google_cloud_backupdr_v1_OperationMetadata_descriptor = + internal_static_google_cloud_backupdr_v1_InitializeServiceRequest_descriptor = getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_backupdr_v1_InitializeServiceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_backupdr_v1_InitializeServiceRequest_descriptor, + new java.lang.String[] { + "Name", "ResourceType", "RequestId", + }); + internal_static_google_cloud_backupdr_v1_InitializeServiceResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_backupdr_v1_InitializeServiceResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_backupdr_v1_InitializeServiceResponse_descriptor, + new java.lang.String[] { + "BackupVaultName", "BackupPlanName", + }); + internal_static_google_cloud_backupdr_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_backupdr_v1_OperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_backupdr_v1_OperationMetadata_descriptor, @@ -489,6 +523,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.FieldInfoProto.fieldInfo); registry.add(com.google.api.AnnotationsProto.http); registry.add(com.google.api.ClientProto.methodSignature); registry.add(com.google.api.ClientProto.oauthScopes); diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlan.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlan.java index dd2dd6e04658..5da35925986b 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlan.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlan.java @@ -745,8 +745,8 @@ public com.google.cloud.backupdr.v1.BackupPlan.State getState() { * *
    * Required. The resource type to which the `BackupPlan` will be applied.
-   * Examples include, "compute.googleapis.com/Instance" and
-   * "storage.googleapis.com/Bucket".
+   * Examples include, "compute.googleapis.com/Instance",
+   * "sqladmin.googleapis.com/Instance", or "alloydb.googleapis.com/Cluster".
    * 
* * string resource_type = 8 [(.google.api.field_behavior) = REQUIRED]; @@ -770,8 +770,8 @@ public java.lang.String getResourceType() { * *
    * Required. The resource type to which the `BackupPlan` will be applied.
-   * Examples include, "compute.googleapis.com/Instance" and
-   * "storage.googleapis.com/Bucket".
+   * Examples include, "compute.googleapis.com/Instance",
+   * "sqladmin.googleapis.com/Instance", or "alloydb.googleapis.com/Cluster".
    * 
* * string resource_type = 8 [(.google.api.field_behavior) = REQUIRED]; @@ -2997,8 +2997,8 @@ public Builder clearState() { * *
      * Required. The resource type to which the `BackupPlan` will be applied.
-     * Examples include, "compute.googleapis.com/Instance" and
-     * "storage.googleapis.com/Bucket".
+     * Examples include, "compute.googleapis.com/Instance",
+     * "sqladmin.googleapis.com/Instance", or "alloydb.googleapis.com/Cluster".
      * 
* * string resource_type = 8 [(.google.api.field_behavior) = REQUIRED]; @@ -3021,8 +3021,8 @@ public java.lang.String getResourceType() { * *
      * Required. The resource type to which the `BackupPlan` will be applied.
-     * Examples include, "compute.googleapis.com/Instance" and
-     * "storage.googleapis.com/Bucket".
+     * Examples include, "compute.googleapis.com/Instance",
+     * "sqladmin.googleapis.com/Instance", or "alloydb.googleapis.com/Cluster".
      * 
* * string resource_type = 8 [(.google.api.field_behavior) = REQUIRED]; @@ -3045,8 +3045,8 @@ public com.google.protobuf.ByteString getResourceTypeBytes() { * *
      * Required. The resource type to which the `BackupPlan` will be applied.
-     * Examples include, "compute.googleapis.com/Instance" and
-     * "storage.googleapis.com/Bucket".
+     * Examples include, "compute.googleapis.com/Instance",
+     * "sqladmin.googleapis.com/Instance", or "alloydb.googleapis.com/Cluster".
      * 
* * string resource_type = 8 [(.google.api.field_behavior) = REQUIRED]; @@ -3068,8 +3068,8 @@ public Builder setResourceType(java.lang.String value) { * *
      * Required. The resource type to which the `BackupPlan` will be applied.
-     * Examples include, "compute.googleapis.com/Instance" and
-     * "storage.googleapis.com/Bucket".
+     * Examples include, "compute.googleapis.com/Instance",
+     * "sqladmin.googleapis.com/Instance", or "alloydb.googleapis.com/Cluster".
      * 
* * string resource_type = 8 [(.google.api.field_behavior) = REQUIRED]; @@ -3087,8 +3087,8 @@ public Builder clearResourceType() { * *
      * Required. The resource type to which the `BackupPlan` will be applied.
-     * Examples include, "compute.googleapis.com/Instance" and
-     * "storage.googleapis.com/Bucket".
+     * Examples include, "compute.googleapis.com/Instance",
+     * "sqladmin.googleapis.com/Instance", or "alloydb.googleapis.com/Cluster".
      * 
* * string resource_type = 8 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociation.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociation.java index 0a76d960ae02..4a03c76895bf 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociation.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociation.java @@ -341,10 +341,13 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * Optional. Resource type of workload on which backupplan is applied
+   * Required. Immutable. Resource type of workload on which backupplan is
+   * applied
    * 
* - * string resource_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string resource_type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * * * @return The resourceType. */ @@ -364,10 +367,13 @@ public java.lang.String getResourceType() { * * *
-   * Optional. Resource type of workload on which backupplan is applied
+   * Required. Immutable. Resource type of workload on which backupplan is
+   * applied
    * 
* - * string resource_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string resource_type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * * * @return The bytes for resourceType. */ @@ -729,11 +735,8 @@ public com.google.cloud.backupdr.v1.RuleConfigInfoOrBuilder getRulesConfigInfoOr * * *
-   * Output only. Output Only.
-   *
-   * Resource name of data source which will be used as storage location for
-   * backups taken.
-   * Format :
+   * Output only. Resource name of data source which will be used as storage
+   * location for backups taken. Format :
    * projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}
    * 
* @@ -757,11 +760,8 @@ public java.lang.String getDataSource() { * * *
-   * Output only. Output Only.
-   *
-   * Resource name of data source which will be used as storage location for
-   * backups taken.
-   * Format :
+   * Output only. Resource name of data source which will be used as storage
+   * location for backups taken. Format :
    * projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}
    * 
* @@ -1525,10 +1525,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. Resource type of workload on which backupplan is applied
+     * Required. Immutable. Resource type of workload on which backupplan is
+     * applied
      * 
* - * string resource_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string resource_type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * * * @return The resourceType. */ @@ -1547,10 +1550,13 @@ public java.lang.String getResourceType() { * * *
-     * Optional. Resource type of workload on which backupplan is applied
+     * Required. Immutable. Resource type of workload on which backupplan is
+     * applied
      * 
* - * string resource_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string resource_type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * * * @return The bytes for resourceType. */ @@ -1569,10 +1575,13 @@ public com.google.protobuf.ByteString getResourceTypeBytes() { * * *
-     * Optional. Resource type of workload on which backupplan is applied
+     * Required. Immutable. Resource type of workload on which backupplan is
+     * applied
      * 
* - * string resource_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string resource_type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * * * @param value The resourceType to set. * @return This builder for chaining. @@ -1590,10 +1599,13 @@ public Builder setResourceType(java.lang.String value) { * * *
-     * Optional. Resource type of workload on which backupplan is applied
+     * Required. Immutable. Resource type of workload on which backupplan is
+     * applied
      * 
* - * string resource_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string resource_type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * * * @return This builder for chaining. */ @@ -1607,10 +1619,13 @@ public Builder clearResourceType() { * * *
-     * Optional. Resource type of workload on which backupplan is applied
+     * Required. Immutable. Resource type of workload on which backupplan is
+     * applied
      * 
* - * string resource_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string resource_type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * * * @param value The bytes for resourceType to set. * @return This builder for chaining. @@ -2781,11 +2796,8 @@ public com.google.cloud.backupdr.v1.RuleConfigInfo.Builder addRulesConfigInfoBui * * *
-     * Output only. Output Only.
-     *
-     * Resource name of data source which will be used as storage location for
-     * backups taken.
-     * Format :
+     * Output only. Resource name of data source which will be used as storage
+     * location for backups taken. Format :
      * projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}
      * 
* @@ -2808,11 +2820,8 @@ public java.lang.String getDataSource() { * * *
-     * Output only. Output Only.
-     *
-     * Resource name of data source which will be used as storage location for
-     * backups taken.
-     * Format :
+     * Output only. Resource name of data source which will be used as storage
+     * location for backups taken. Format :
      * projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}
      * 
* @@ -2835,11 +2844,8 @@ public com.google.protobuf.ByteString getDataSourceBytes() { * * *
-     * Output only. Output Only.
-     *
-     * Resource name of data source which will be used as storage location for
-     * backups taken.
-     * Format :
+     * Output only. Resource name of data source which will be used as storage
+     * location for backups taken. Format :
      * projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}
      * 
* @@ -2861,11 +2867,8 @@ public Builder setDataSource(java.lang.String value) { * * *
-     * Output only. Output Only.
-     *
-     * Resource name of data source which will be used as storage location for
-     * backups taken.
-     * Format :
+     * Output only. Resource name of data source which will be used as storage
+     * location for backups taken. Format :
      * projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}
      * 
* @@ -2883,11 +2886,8 @@ public Builder clearDataSource() { * * *
-     * Output only. Output Only.
-     *
-     * Resource name of data source which will be used as storage location for
-     * backups taken.
-     * Format :
+     * Output only. Resource name of data source which will be used as storage
+     * location for backups taken. Format :
      * projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}
      * 
* diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociationOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociationOrBuilder.java index 4532561132a4..cdc0be5021a7 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociationOrBuilder.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociationOrBuilder.java @@ -61,10 +61,13 @@ public interface BackupPlanAssociationOrBuilder * * *
-   * Optional. Resource type of workload on which backupplan is applied
+   * Required. Immutable. Resource type of workload on which backupplan is
+   * applied
    * 
* - * string resource_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string resource_type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * * * @return The resourceType. */ @@ -73,10 +76,13 @@ public interface BackupPlanAssociationOrBuilder * * *
-   * Optional. Resource type of workload on which backupplan is applied
+   * Required. Immutable. Resource type of workload on which backupplan is
+   * applied
    * 
* - * string resource_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string resource_type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * * * @return The bytes for resourceType. */ @@ -317,11 +323,8 @@ public interface BackupPlanAssociationOrBuilder * * *
-   * Output only. Output Only.
-   *
-   * Resource name of data source which will be used as storage location for
-   * backups taken.
-   * Format :
+   * Output only. Resource name of data source which will be used as storage
+   * location for backups taken. Format :
    * projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}
    * 
* @@ -334,11 +337,8 @@ public interface BackupPlanAssociationOrBuilder * * *
-   * Output only. Output Only.
-   *
-   * Resource name of data source which will be used as storage location for
-   * backups taken.
-   * Format :
+   * Output only. Resource name of data source which will be used as storage
+   * location for backups taken. Format :
    * projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}
    * 
* diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociationProto.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociationProto.java index eedeca4b36d7..6269a75ff664 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociationProto.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociationProto.java @@ -74,66 +74,66 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032\037google/api/field_behavior.proto\032\033googl" + "e/api/field_info.proto\032\031google/api/resou" + "rce.proto\032\037google/protobuf/timestamp.pro" - + "to\032\027google/rpc/status.proto\"\324\005\n\025BackupPl" - + "anAssociation\022\024\n\004name\030\001 \001(\tB\006\340A\010\340A\003\022\032\n\rr" - + "esource_type\030\002 \001(\tB\003\340A\001\022\030\n\010resource\030\003 \001(" - + "\tB\006\340A\005\340A\002\022?\n\013backup_plan\030\004 \001(\tB*\340A\002\372A$\n\"" - + "backupdr.googleapis.com/BackupPlan\0224\n\013cr" - + "eate_time\030\005 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\003\0224\n\013update_time\030\006 \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\003\022I\n\005state\030\007 \001(\01625." - + "google.cloud.backupdr.v1.BackupPlanAssoc" - + "iation.StateB\003\340A\003\022H\n\021rules_config_info\030\010" - + " \003(\0132(.google.cloud.backupdr.v1.RuleConf" - + "igInfoB\003\340A\003\022\030\n\013data_source\030\t \001(\tB\003\340A\003\"T\n" - + "\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATIN" - + "G\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010DELETING\020\003\022\014\n\010INACTIV" - + "E\020\004:\274\001\352A\270\001\n-backupdr.googleapis.com/Back" - + "upPlanAssociation\022Xprojects/{project}/lo" - + "cations/{location}/backupPlanAssociation" - + "s/{backup_plan_association}*\026backupPlanA" - + "ssociations2\025backupPlanAssociation\"\211\003\n\016R" - + "uleConfigInfo\022\024\n\007rule_id\030\001 \001(\tB\003\340A\003\022X\n\021l" - + "ast_backup_state\030\003 \001(\01628.google.cloud.ba" - + "ckupdr.v1.RuleConfigInfo.LastBackupState" - + "B\003\340A\003\0222\n\021last_backup_error\030\004 \001(\0132\022.googl" - + "e.rpc.StatusB\003\340A\003\022P\n\'last_successful_bac" - + "kup_consistency_time\030\005 \001(\0132\032.google.prot" - + "obuf.TimestampB\003\340A\003\"\200\001\n\017LastBackupState\022" - + "!\n\035LAST_BACKUP_STATE_UNSPECIFIED\020\000\022\030\n\024FI" - + "RST_BACKUP_PENDING\020\001\022\025\n\021PERMISSION_DENIE" - + "D\020\002\022\r\n\tSUCCEEDED\020\003\022\n\n\006FAILED\020\004\"\214\002\n\"Creat" - + "eBackupPlanAssociationRequest\022E\n\006parent\030" - + "\001 \001(\tB5\340A\002\372A/\022-backupdr.googleapis.com/B" - + "ackupPlanAssociation\022\'\n\032backup_plan_asso" - + "ciation_id\030\002 \001(\tB\003\340A\002\022U\n\027backup_plan_ass" - + "ociation\030\003 \001(\0132/.google.cloud.backupdr.v" - + "1.BackupPlanAssociationB\003\340A\002\022\037\n\nrequest_" - + "id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\260\001\n!ListBackupPlan" - + "AssociationsRequest\022E\n\006parent\030\001 \001(\tB5\340A\002" - + "\372A/\022-backupdr.googleapis.com/BackupPlanA" - + "ssociation\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" - + "\"\245\001\n\"ListBackupPlanAssociationsResponse\022" - + "Q\n\030backup_plan_associations\030\001 \003(\0132/.goog" - + "le.cloud.backupdr.v1.BackupPlanAssociati" - + "on\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachab" - + "le\030\003 \003(\t\"f\n\037GetBackupPlanAssociationRequ" - + "est\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-backupdr.goog" - + "leapis.com/BackupPlanAssociation\"\212\001\n\"Del" - + "eteBackupPlanAssociationRequest\022C\n\004name\030" - + "\001 \001(\tB5\340A\002\372A/\n-backupdr.googleapis.com/B" - + "ackupPlanAssociation\022\037\n\nrequest_id\030\002 \001(\t" - + "B\013\340A\001\342\214\317\327\010\002\010\001\"\222\001\n\024TriggerBackupRequest\022C" - + "\n\004name\030\001 \001(\tB5\340A\002\372A/\n-backupdr.googleapi" - + "s.com/BackupPlanAssociation\022\024\n\007rule_id\030\002" - + " \001(\tB\003\340A\002\022\037\n\nrequest_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002" - + "\010\001B\312\001\n\034com.google.cloud.backupdr.v1B\032Bac" - + "kupPlanAssociationProtoP\001Z8cloud.google." - + "com/go/backupdr/apiv1/backupdrpb;backupd" - + "rpb\252\002\030Google.Cloud.BackupDR.V1\312\002\030Google\\" - + "Cloud\\BackupDR\\V1\352\002\033Google::Cloud::Backu" - + "pDR::V1b\006proto3" + + "to\032\027google/rpc/status.proto\"\327\005\n\025BackupPl" + + "anAssociation\022\024\n\004name\030\001 \001(\tB\006\340A\010\340A\003\022\035\n\rr" + + "esource_type\030\002 \001(\tB\006\340A\005\340A\002\022\030\n\010resource\030\003" + + " \001(\tB\006\340A\005\340A\002\022?\n\013backup_plan\030\004 \001(\tB*\340A\002\372A" + + "$\n\"backupdr.googleapis.com/BackupPlan\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\022I\n\005state\030\007 \001(\016" + + "25.google.cloud.backupdr.v1.BackupPlanAs" + + "sociation.StateB\003\340A\003\022H\n\021rules_config_inf" + + "o\030\010 \003(\0132(.google.cloud.backupdr.v1.RuleC" + + "onfigInfoB\003\340A\003\022\030\n\013data_source\030\t \001(\tB\003\340A\003" + + "\"T\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREA" + + "TING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010DELETING\020\003\022\014\n\010INAC" + + "TIVE\020\004:\274\001\352A\270\001\n-backupdr.googleapis.com/B" + + "ackupPlanAssociation\022Xprojects/{project}" + + "/locations/{location}/backupPlanAssociat" + + "ions/{backup_plan_association}*\026backupPl" + + "anAssociations2\025backupPlanAssociation\"\211\003" + + "\n\016RuleConfigInfo\022\024\n\007rule_id\030\001 \001(\tB\003\340A\003\022X" + + "\n\021last_backup_state\030\003 \001(\01628.google.cloud" + + ".backupdr.v1.RuleConfigInfo.LastBackupSt" + + "ateB\003\340A\003\0222\n\021last_backup_error\030\004 \001(\0132\022.go" + + "ogle.rpc.StatusB\003\340A\003\022P\n\'last_successful_" + + "backup_consistency_time\030\005 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\"\200\001\n\017LastBackupSta" + + "te\022!\n\035LAST_BACKUP_STATE_UNSPECIFIED\020\000\022\030\n" + + "\024FIRST_BACKUP_PENDING\020\001\022\025\n\021PERMISSION_DE" + + "NIED\020\002\022\r\n\tSUCCEEDED\020\003\022\n\n\006FAILED\020\004\"\214\002\n\"Cr" + + "eateBackupPlanAssociationRequest\022E\n\006pare" + + "nt\030\001 \001(\tB5\340A\002\372A/\022-backupdr.googleapis.co" + + "m/BackupPlanAssociation\022\'\n\032backup_plan_a" + + "ssociation_id\030\002 \001(\tB\003\340A\002\022U\n\027backup_plan_" + + "association\030\003 \001(\0132/.google.cloud.backupd" + + "r.v1.BackupPlanAssociationB\003\340A\002\022\037\n\nreque" + + "st_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\260\001\n!ListBackupP" + + "lanAssociationsRequest\022E\n\006parent\030\001 \001(\tB5" + + "\340A\002\372A/\022-backupdr.googleapis.com/BackupPl" + + "anAssociation\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\"\245\001\n\"ListBackupPlanAssociationsRespon" + + "se\022Q\n\030backup_plan_associations\030\001 \003(\0132/.g" + + "oogle.cloud.backupdr.v1.BackupPlanAssoci" + + "ation\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreac" + + "hable\030\003 \003(\t\"f\n\037GetBackupPlanAssociationR" + + "equest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-backupdr.g" + + "oogleapis.com/BackupPlanAssociation\"\212\001\n\"" + + "DeleteBackupPlanAssociationRequest\022C\n\004na" + + "me\030\001 \001(\tB5\340A\002\372A/\n-backupdr.googleapis.co" + + "m/BackupPlanAssociation\022\037\n\nrequest_id\030\002 " + + "\001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\222\001\n\024TriggerBackupReques" + + "t\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-backupdr.google" + + "apis.com/BackupPlanAssociation\022\024\n\007rule_i" + + "d\030\002 \001(\tB\003\340A\002\022\037\n\nrequest_id\030\003 \001(\tB\013\340A\001\342\214\317" + + "\327\010\002\010\001B\312\001\n\034com.google.cloud.backupdr.v1B\032" + + "BackupPlanAssociationProtoP\001Z8cloud.goog" + + "le.com/go/backupdr/apiv1/backupdrpb;back" + + "updrpb\252\002\030Google.Cloud.BackupDR.V1\312\002\030Goog" + + "le\\Cloud\\BackupDR\\V1\352\002\033Google::Cloud::Ba" + + "ckupDR::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanOrBuilder.java index 8873d5d34658..04d25d1ef272 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanOrBuilder.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanOrBuilder.java @@ -332,8 +332,8 @@ java.lang.String getLabelsOrDefault( * *
    * Required. The resource type to which the `BackupPlan` will be applied.
-   * Examples include, "compute.googleapis.com/Instance" and
-   * "storage.googleapis.com/Bucket".
+   * Examples include, "compute.googleapis.com/Instance",
+   * "sqladmin.googleapis.com/Instance", or "alloydb.googleapis.com/Cluster".
    * 
* * string resource_type = 8 [(.google.api.field_behavior) = REQUIRED]; @@ -346,8 +346,8 @@ java.lang.String getLabelsOrDefault( * *
    * Required. The resource type to which the `BackupPlan` will be applied.
-   * Examples include, "compute.googleapis.com/Instance" and
-   * "storage.googleapis.com/Bucket".
+   * Examples include, "compute.googleapis.com/Instance",
+   * "sqladmin.googleapis.com/Instance", or "alloydb.googleapis.com/Cluster".
    * 
* * string resource_type = 8 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupRule.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupRule.java index a6d629665565..9116a35530d2 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupRule.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupRule.java @@ -179,6 +179,12 @@ public com.google.protobuf.ByteString getRuleIdBytes() { * Required. Configures the duration for which backup data will be kept. It is * defined in “days”. The value should be greater than or equal to minimum * enforced retention of the backup vault. + * + * Minimum value is 1 and maximum value is 90 for hourly backups. + * Minimum value is 1 and maximum value is 90 for daily backups. + * Minimum value is 7 and maximum value is 186 for weekly backups. + * Minimum value is 30 and maximum value is 732 for monthly backups. + * Minimum value is 365 and maximum value is 36159 for yearly backups. * * * int32 backup_retention_days = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -821,6 +827,12 @@ public Builder setRuleIdBytes(com.google.protobuf.ByteString value) { * Required. Configures the duration for which backup data will be kept. It is * defined in “days”. The value should be greater than or equal to minimum * enforced retention of the backup vault. + * + * Minimum value is 1 and maximum value is 90 for hourly backups. + * Minimum value is 1 and maximum value is 90 for daily backups. + * Minimum value is 7 and maximum value is 186 for weekly backups. + * Minimum value is 30 and maximum value is 732 for monthly backups. + * Minimum value is 365 and maximum value is 36159 for yearly backups. * * * int32 backup_retention_days = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -838,6 +850,12 @@ public int getBackupRetentionDays() { * Required. Configures the duration for which backup data will be kept. It is * defined in “days”. The value should be greater than or equal to minimum * enforced retention of the backup vault. + * + * Minimum value is 1 and maximum value is 90 for hourly backups. + * Minimum value is 1 and maximum value is 90 for daily backups. + * Minimum value is 7 and maximum value is 186 for weekly backups. + * Minimum value is 30 and maximum value is 732 for monthly backups. + * Minimum value is 365 and maximum value is 36159 for yearly backups. * * * int32 backup_retention_days = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -859,6 +877,12 @@ public Builder setBackupRetentionDays(int value) { * Required. Configures the duration for which backup data will be kept. It is * defined in “days”. The value should be greater than or equal to minimum * enforced retention of the backup vault. + * + * Minimum value is 1 and maximum value is 90 for hourly backups. + * Minimum value is 1 and maximum value is 90 for daily backups. + * Minimum value is 7 and maximum value is 186 for weekly backups. + * Minimum value is 30 and maximum value is 732 for monthly backups. + * Minimum value is 365 and maximum value is 36159 for yearly backups. * * * int32 backup_retention_days = 4 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupRuleOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupRuleOrBuilder.java index 87a6668ef706..897dee5fe21e 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupRuleOrBuilder.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupRuleOrBuilder.java @@ -66,6 +66,12 @@ public interface BackupRuleOrBuilder * Required. Configures the duration for which backup data will be kept. It is * defined in “days”. The value should be greater than or equal to minimum * enforced retention of the backup vault. + * + * Minimum value is 1 and maximum value is 90 for hourly backups. + * Minimum value is 1 and maximum value is 90 for daily backups. + * Minimum value is 7 and maximum value is 186 for weekly backups. + * Minimum value is 30 and maximum value is 732 for monthly backups. + * Minimum value is 365 and maximum value is 36159 for yearly backups. * * * int32 backup_retention_days = 4 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVault.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVault.java index 67f4b90e9c03..b0d7c66439f5 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVault.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVault.java @@ -298,7 +298,8 @@ public enum AccessRestriction implements com.google.protobuf.ProtocolMessageEnum * * *
-     * Access restriction not set.
+     * Access restriction not set. If user does not provide any value or pass
+     * this value, it will be changed to WITHIN_ORGANIZATION.
      * 
* * ACCESS_RESTRICTION_UNSPECIFIED = 0; @@ -335,6 +336,17 @@ public enum AccessRestriction implements com.google.protobuf.ProtocolMessageEnum * UNRESTRICTED = 3; */ UNRESTRICTED(3), + /** + * + * + *
+     * Access to or from resources outside your current organization will be
+     * denied except for backup appliance.
+     * 
+ * + * WITHIN_ORG_BUT_UNRESTRICTED_FOR_BA = 4; + */ + WITHIN_ORG_BUT_UNRESTRICTED_FOR_BA(4), UNRECOGNIZED(-1), ; @@ -342,7 +354,8 @@ public enum AccessRestriction implements com.google.protobuf.ProtocolMessageEnum * * *
-     * Access restriction not set.
+     * Access restriction not set. If user does not provide any value or pass
+     * this value, it will be changed to WITHIN_ORGANIZATION.
      * 
* * ACCESS_RESTRICTION_UNSPECIFIED = 0; @@ -379,6 +392,17 @@ public enum AccessRestriction implements com.google.protobuf.ProtocolMessageEnum * UNRESTRICTED = 3; */ public static final int UNRESTRICTED_VALUE = 3; + /** + * + * + *
+     * Access to or from resources outside your current organization will be
+     * denied except for backup appliance.
+     * 
+ * + * WITHIN_ORG_BUT_UNRESTRICTED_FOR_BA = 4; + */ + public static final int WITHIN_ORG_BUT_UNRESTRICTED_FOR_BA_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -412,6 +436,8 @@ public static AccessRestriction forNumber(int value) { return WITHIN_ORGANIZATION; case 3: return UNRESTRICTED; + case 4: + return WITHIN_ORG_BUT_UNRESTRICTED_FOR_BA; default: return null; } @@ -1169,8 +1195,7 @@ public long getTotalStoredBytes() { * * *
-   * Output only. Output only
-   * Immutable after resource creation until resource deletion.
+   * Output only. Immutable after resource creation until resource deletion.
    * 
* * @@ -1195,8 +1220,7 @@ public java.lang.String getUid() { * * *
-   * Output only. Output only
-   * Immutable after resource creation until resource deletion.
+   * Output only. Immutable after resource creation until resource deletion.
    * 
* * @@ -1338,8 +1362,6 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) { * Optional. Note: This field is added for future use case and will not be * supported in the current release. * - * Optional. - * * Access restriction for the backup vault. * Default value is WITHIN_ORGANIZATION if not provided during creation. * @@ -1361,8 +1383,6 @@ public int getAccessRestrictionValue() { * Optional. Note: This field is added for future use case and will not be * supported in the current release. * - * Optional. - * * Access restriction for the backup vault. * Default value is WITHIN_ORGANIZATION if not provided during creation. * @@ -3982,8 +4002,7 @@ public Builder clearTotalStoredBytes() { * * *
-     * Output only. Output only
-     * Immutable after resource creation until resource deletion.
+     * Output only. Immutable after resource creation until resource deletion.
      * 
* * @@ -4007,8 +4026,7 @@ public java.lang.String getUid() { * * *
-     * Output only. Output only
-     * Immutable after resource creation until resource deletion.
+     * Output only. Immutable after resource creation until resource deletion.
      * 
* * @@ -4032,8 +4050,7 @@ public com.google.protobuf.ByteString getUidBytes() { * * *
-     * Output only. Output only
-     * Immutable after resource creation until resource deletion.
+     * Output only. Immutable after resource creation until resource deletion.
      * 
* * @@ -4056,8 +4073,7 @@ public Builder setUid(java.lang.String value) { * * *
-     * Output only. Output only
-     * Immutable after resource creation until resource deletion.
+     * Output only. Immutable after resource creation until resource deletion.
      * 
* * @@ -4076,8 +4092,7 @@ public Builder clearUid() { * * *
-     * Output only. Output only
-     * Immutable after resource creation until resource deletion.
+     * Output only. Immutable after resource creation until resource deletion.
      * 
* * @@ -4286,8 +4301,6 @@ public Builder putAllAnnotations(java.util.Map @@ -4309,8 +4322,6 @@ public int getAccessRestrictionValue() { * Optional. Note: This field is added for future use case and will not be * supported in the current release. * - * Optional. - * * Access restriction for the backup vault. * Default value is WITHIN_ORGANIZATION if not provided during creation. * @@ -4335,8 +4346,6 @@ public Builder setAccessRestrictionValue(int value) { * Optional. Note: This field is added for future use case and will not be * supported in the current release. * - * Optional. - * * Access restriction for the backup vault. * Default value is WITHIN_ORGANIZATION if not provided during creation. * @@ -4362,8 +4371,6 @@ public com.google.cloud.backupdr.v1.BackupVault.AccessRestriction getAccessRestr * Optional. Note: This field is added for future use case and will not be * supported in the current release. * - * Optional. - * * Access restriction for the backup vault. * Default value is WITHIN_ORGANIZATION if not provided during creation. * @@ -4392,8 +4399,6 @@ public Builder setAccessRestriction( * Optional. Note: This field is added for future use case and will not be * supported in the current release. * - * Optional. - * * Access restriction for the backup vault. * Default value is WITHIN_ORGANIZATION if not provided during creation. * diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVaultOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVaultOrBuilder.java index 7c261920325c..29586b51b8a2 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVaultOrBuilder.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVaultOrBuilder.java @@ -486,8 +486,7 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. Output only
-   * Immutable after resource creation until resource deletion.
+   * Output only. Immutable after resource creation until resource deletion.
    * 
* * @@ -501,8 +500,7 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. Output only
-   * Immutable after resource creation until resource deletion.
+   * Output only. Immutable after resource creation until resource deletion.
    * 
* * @@ -588,8 +586,6 @@ java.lang.String getAnnotationsOrDefault( * Optional. Note: This field is added for future use case and will not be * supported in the current release. * - * Optional. - * * Access restriction for the backup vault. * Default value is WITHIN_ORGANIZATION if not provided during creation. * @@ -608,8 +604,6 @@ java.lang.String getAnnotationsOrDefault( * Optional. Note: This field is added for future use case and will not be * supported in the current release. * - * Optional. - * * Access restriction for the backup vault. * Default value is WITHIN_ORGANIZATION if not provided during creation. * diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVaultProto.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVaultProto.java index 2b7a6c7bcb12..7430294783d5 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVaultProto.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVaultProto.java @@ -194,7 +194,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ault_gce.proto\032\036google/protobuf/duration" + ".proto\032 google/protobuf/field_mask.proto" + "\032\037google/protobuf/timestamp.proto\032\027googl" - + "e/rpc/status.proto\"\357\n\n\013BackupVault\022\024\n\004na" + + "e/rpc/status.proto\"\230\013\n\013BackupVault\022\024\n\004na" + "me\030\001 \001(\tB\006\340A\003\340A\010\022\035\n\013description\030\002 \001(\tB\003\340" + "A\001H\000\210\001\001\022F\n\006labels\030\003 \003(\01321.google.cloud.b" + "ackupdr.v1.BackupVault.LabelsEntryB\003\340A\001\022" @@ -219,236 +219,238 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + "lue\030\002 \001(\t:\0028\001\"Q\n\005State\022\025\n\021STATE_UNSPECIF" + "IED\020\000\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010DELET" - + "ING\020\003\022\t\n\005ERROR\020\004\"v\n\021AccessRestriction\022\"\n" - + "\036ACCESS_RESTRICTION_UNSPECIFIED\020\000\022\022\n\016WIT" - + "HIN_PROJECT\020\001\022\027\n\023WITHIN_ORGANIZATION\020\002\022\020" - + "\n\014UNRESTRICTED\020\003:\210\001\352A\204\001\n#backupdr.google" - + "apis.com/BackupVault\022Bprojects/{project}" - + "/locations/{location}/backupVaults/{back" - + "upvault}*\014backupVaults2\013backupVaultB\016\n\014_" - + "descriptionB\016\n\014_create_timeB\016\n\014_update_t" - + "imeB-\n+_backup_minimum_enforced_retentio" - + "n_durationB\014\n\n_deletableB\007\n\005_etagB\021\n\017_ef" - + "fective_time\"\323\010\n\nDataSource\022\024\n\004name\030\001 \001(" - + "\tB\006\340A\003\340A\010\022>\n\005state\030\025 \001(\0162*.google.cloud." - + "backupdr.v1.DataSource.StateB\003\340A\003\022E\n\006lab" - + "els\030\004 \003(\01320.google.cloud.backupdr.v1.Dat" - + "aSource.LabelsEntryB\003\340A\001\0229\n\013create_time\030" - + "\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003H\001" - + "\210\001\001\0229\n\013update_time\030\006 \001(\0132\032.google.protob" - + "uf.TimestampB\003\340A\003H\002\210\001\001\022\031\n\014backup_count\030\007" - + " \001(\003H\003\210\001\001\022\021\n\004etag\030\016 \001(\tH\004\210\001\001\022\037\n\022total_st" - + "ored_bytes\030\027 \001(\003H\005\210\001\001\022F\n\014config_state\030\030 " - + "\001(\0162+.google.cloud.backupdr.v1.BackupCon" - + "figStateB\003\340A\003\022K\n\022backup_config_info\030\031 \001(" - + "\0132*.google.cloud.backupdr.v1.BackupConfi" - + "gInfoB\003\340A\003\022S\n\030data_source_gcp_resource\030\032" - + " \001(\0132/.google.cloud.backupdr.v1.DataSour" - + "ceGcpResourceH\000\022r\n(data_source_backup_ap" - + "pliance_application\030\033 \001(\0132>.google.cloud" - + ".backupdr.v1.DataSourceBackupApplianceAp" - + "plicationH\000\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022" - + "\r\n\005value\030\002 \001(\t:\0028\001\"Q\n\005State\022\025\n\021STATE_UNS" - + "PECIFIED\020\000\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010" - + "DELETING\020\003\022\t\n\005ERROR\020\004:\236\001\352A\232\001\n\"backupdr.g" - + "oogleapis.com/DataSource\022[projects/{proj" - + "ect}/locations/{location}/backupVaults/{" - + "backupvault}/dataSources/{datasource}*\013d" - + "ataSources2\ndataSourceB\021\n\017source_resourc" - + "eB\016\n\014_create_timeB\016\n\014_update_timeB\017\n\r_ba" - + "ckup_countB\007\n\005_etagB\025\n\023_total_stored_byt" - + "es\"\261\004\n\020BackupConfigInfo\022Z\n\021last_backup_s" - + "tate\030\001 \001(\0162:.google.cloud.backupdr.v1.Ba" - + "ckupConfigInfo.LastBackupStateB\003\340A\003\022P\n\'l" - + "ast_successful_backup_consistency_time\030\002" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0222\n" - + "\021last_backup_error\030\003 \001(\0132\022.google.rpc.St" - + "atusB\003\340A\003\022F\n\021gcp_backup_config\030\004 \001(\0132).g" - + "oogle.cloud.backupdr.v1.GcpBackupConfigH" - + "\000\022_\n\036backup_appliance_backup_config\030\005 \001(" - + "\01325.google.cloud.backupdr.v1.BackupAppli" - + "anceBackupConfigH\000\"\200\001\n\017LastBackupState\022!" - + "\n\035LAST_BACKUP_STATE_UNSPECIFIED\020\000\022\030\n\024FIR" - + "ST_BACKUP_PENDING\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FA" - + "ILED\020\003\022\025\n\021PERMISSION_DENIED\020\004B\017\n\rbackup_" - + "config\"\340\001\n\017GcpBackupConfig\022<\n\013backup_pla" - + "n\030\001 \001(\tB\'\372A$\n\"backupdr.googleapis.com/Ba" - + "ckupPlan\022\037\n\027backup_plan_description\030\002 \001(" - + "\t\022S\n\027backup_plan_association\030\003 \001(\tB2\372A/\n" - + "-backupdr.googleapis.com/BackupPlanAssoc" - + "iation\022\031\n\021backup_plan_rules\030\004 \003(\t\"\272\001\n\033Ba" - + "ckupApplianceBackupConfig\022\035\n\025backup_appl" - + "iance_name\030\001 \001(\t\022\033\n\023backup_appliance_id\030" - + "\002 \001(\003\022\016\n\006sla_id\030\003 \001(\003\022\030\n\020application_nam" - + "e\030\004 \001(\t\022\021\n\thost_name\030\005 \001(\t\022\020\n\010slt_name\030\006" - + " \001(\t\022\020\n\010slp_name\030\007 \001(\t\"\342\001\n\025DataSourceGcp" - + "Resource\022\035\n\020gcp_resourcename\030\001 \001(\tB\003\340A\003\022" - + "\020\n\010location\030\002 \001(\t\022\014\n\004type\030\003 \001(\t\022o\n&compu" - + "te_instance_datasource_properties\030\004 \001(\0132" - + "=.google.cloud.backupdr.v1.ComputeInstan" - + "ceDataSourcePropertiesH\000B\031\n\027gcp_resource" - + "_properties\"\271\001\n$DataSourceBackupApplianc" - + "eApplication\022\030\n\020application_name\030\001 \001(\t\022\030" - + "\n\020backup_appliance\030\002 \001(\t\022\024\n\014appliance_id" - + "\030\003 \001(\003\022\014\n\004type\030\004 \001(\t\022\026\n\016application_id\030\010" - + " \001(\003\022\020\n\010hostname\030\006 \001(\t\022\017\n\007host_id\030\007 \001(\003\"" - + ")\n\017ServiceLockInfo\022\026\n\toperation\030\001 \001(\tB\003\340" - + "A\003\"\306\001\n\027BackupApplianceLockInfo\022 \n\023backup" - + "_appliance_id\030\001 \001(\003B\003\340A\002\022\"\n\025backup_appli" - + "ance_name\030\002 \001(\tB\003\340A\002\022\030\n\013lock_reason\030\005 \001(" - + "\tB\003\340A\002\022\022\n\010job_name\030\006 \001(\tH\000\022\026\n\014backup_ima" - + "ge\030\007 \001(\tH\000\022\020\n\006sla_id\030\010 \001(\003H\000B\r\n\013lock_sou" - + "rce\"\376\001\n\nBackupLock\0228\n\017lock_until_time\030\001 " - + "\001(\0132\032.google.protobuf.TimestampB\003\340A\002\022W\n\032" - + "backup_appliance_lock_info\030\003 \001(\01321.googl" - + "e.cloud.backupdr.v1.BackupApplianceLockI" - + "nfoH\000\022K\n\021service_lock_info\030\004 \001(\0132).googl" - + "e.cloud.backupdr.v1.ServiceLockInfoB\003\340A\003" - + "H\000B\020\n\016ClientLockInfo\"\274\r\n\006Backup\022\024\n\004name\030" - + "\001 \001(\tB\006\340A\003\340A\010\022\035\n\013description\030\002 \001(\tB\003\340A\003H" - + "\002\210\001\001\0229\n\013create_time\030\003 \001(\0132\032.google.proto" - + "buf.TimestampB\003\340A\003H\003\210\001\001\0229\n\013update_time\030\004" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003H\004\210" - + "\001\001\022A\n\006labels\030\005 \003(\0132,.google.cloud.backup" - + "dr.v1.Backup.LabelsEntryB\003\340A\001\022I\n\033enforce" - + "d_retention_end_time\030\006 \001(\0132\032.google.prot" - + "obuf.TimestampB\003\340A\001H\005\210\001\001\0229\n\013expire_time\030" - + "\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\001H\006" - + "\210\001\001\022>\n\020consistency_time\030\t \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\003H\007\210\001\001\022\026\n\004etag\030\013 \001(" - + "\tB\003\340A\001H\010\210\001\001\022:\n\005state\030\017 \001(\0162&.google.clou" - + "d.backupdr.v1.Backup.StateB\003\340A\003\022@\n\rservi" - + "ce_locks\030\021 \003(\0132$.google.cloud.backupdr.v" - + "1.BackupLockB\003\340A\003\022I\n\026backup_appliance_lo" - + "cks\030\022 \003(\0132$.google.cloud.backupdr.v1.Bac" - + "kupLockB\003\340A\001\022l\n\"compute_instance_backup_" - + "properties\030\023 \001(\01329.google.cloud.backupdr" - + ".v1.ComputeInstanceBackupPropertiesB\003\340A\003" - + "H\000\022l\n\"backup_appliance_backup_properties" - + "\030\025 \001(\01329.google.cloud.backupdr.v1.Backup" - + "ApplianceBackupPropertiesB\003\340A\003H\000\022E\n\013back" - + "up_type\030\024 \001(\0162+.google.cloud.backupdr.v1" - + ".Backup.BackupTypeB\003\340A\003\022W\n\024gcp_backup_pl" - + "an_info\030\026 \001(\01322.google.cloud.backupdr.v1" - + ".Backup.GCPBackupPlanInfoB\003\340A\003H\001\022 \n\023reso" - + "urce_size_bytes\030\027 \001(\003B\003\340A\003\032n\n\021GCPBackupP" - + "lanInfo\022<\n\013backup_plan\030\001 \001(\tB\'\372A$\n\"backu" - + "pdr.googleapis.com/BackupPlan\022\033\n\023backup_" - + "plan_rule_id\030\002 \001(\t\032-\n\013LabelsEntry\022\013\n\003key" - + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"Q\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\t\n\005ERROR\020\004\"G\n\nBackupTy" - + "pe\022\033\n\027BACKUP_TYPE_UNSPECIFIED\020\000\022\r\n\tSCHED" - + "ULED\020\001\022\r\n\tON_DEMAND\020\002:\243\001\352A\237\001\n\036backupdr.g" - + "oogleapis.com/Backup\022lprojects/{project}" - + "/locations/{location}/backupVaults/{back" - + "upvault}/dataSources/{datasource}/backup" - + "s/{backup}*\007backups2\006backupB\023\n\021backup_pr" - + "opertiesB\013\n\tplan_infoB\016\n\014_descriptionB\016\n" - + "\014_create_timeB\016\n\014_update_timeB\036\n\034_enforc" - + "ed_retention_end_timeB\016\n\014_expire_timeB\023\n" - + "\021_consistency_timeB\007\n\005_etag\"\364\001\n\030CreateBa" - + "ckupVaultRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%" - + "\022#backupdr.googleapis.com/BackupVault\022\034\n" - + "\017backup_vault_id\030\002 \001(\tB\003\340A\002\022@\n\014backup_va" - + "ult\030\003 \001(\0132%.google.cloud.backupdr.v1.Bac" - + "kupVaultB\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\"\361\001\n\027L" - + "istBackupVaultsRequest\022;\n\006parent\030\001 \001(\tB+" - + "\340A\002\372A%\022#backupdr.googleapis.com/BackupVa" - + "ult\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\022<\n\004view\030\006 \001(\0162).google." - + "cloud.backupdr.v1.BackupVaultViewB\003\340A\001\"\206" - + "\001\n\030ListBackupVaultsResponse\022<\n\rbackup_va" - + "ults\030\001 \003(\0132%.google.cloud.backupdr.v1.Ba" - + "ckupVault\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013un" - + "reachable\030\003 \003(\t\"\272\001\n\036FetchUsableBackupVau" - + "ltsRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\022#back" - + "updr.googleapis.com/BackupVault\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\"\215\001\n\037FetchUsableBackupVaultsResponse" - + "\022<\n\rbackup_vaults\030\001 \003(\0132%.google.cloud.b" - + "ackupdr.v1.BackupVault\022\027\n\017next_page_toke" - + "n\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\220\001\n\025GetBack" - + "upVaultRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#ba" - + "ckupdr.googleapis.com/BackupVault\022<\n\004vie" - + "w\030\002 \001(\0162).google.cloud.backupdr.v1.Backu" - + "pVaultViewB\003\340A\001\"\343\001\n\030UpdateBackupVaultReq" - + "uest\0224\n\013update_mask\030\001 \001(\0132\032.google.proto" - + "buf.FieldMaskB\003\340A\002\022@\n\014backup_vault\030\002 \001(\013" - + "2%.google.cloud.backupdr.v1.BackupVaultB" - + "\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" - + "\rvalidate_only\030\004 \001(\010B\003\340A\001\022\022\n\005force\030\005 \001(\010" - + "B\003\340A\001\"\320\001\n\030DeleteBackupVaultRequest\0229\n\004na" - + "me\030\001 \001(\tB+\340A\002\372A%\n#backupdr.googleapis.co" - + "m/BackupVault\022\037\n\nrequest_id\030\002 \001(\tB\013\340A\001\342\214" - + "\317\327\010\002\010\001\022\022\n\005force\030\003 \001(\010B\003\340A\001\022\014\n\004etag\030\004 \001(\t" - + "\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\022\032\n\rallow_mi" - + "ssing\030\006 \001(\010B\003\340A\001\"\261\001\n\026ListDataSourcesRequ" - + "est\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\022\"backupdr.go" - + "ogleapis.com/DataSource\022\026\n\tpage_size\030\002 \001" + + "ING\020\003\022\t\n\005ERROR\020\004\"\236\001\n\021AccessRestriction\022\"" + + "\n\036ACCESS_RESTRICTION_UNSPECIFIED\020\000\022\022\n\016WI" + + "THIN_PROJECT\020\001\022\027\n\023WITHIN_ORGANIZATION\020\002\022" + + "\020\n\014UNRESTRICTED\020\003\022&\n\"WITHIN_ORG_BUT_UNRE" + + "STRICTED_FOR_BA\020\004:\210\001\352A\204\001\n#backupdr.googl" + + "eapis.com/BackupVault\022Bprojects/{project" + + "}/locations/{location}/backupVaults/{bac" + + "kupvault}*\014backupVaults2\013backupVaultB\016\n\014" + + "_descriptionB\016\n\014_create_timeB\016\n\014_update_" + + "timeB-\n+_backup_minimum_enforced_retenti" + + "on_durationB\014\n\n_deletableB\007\n\005_etagB\021\n\017_e" + + "ffective_time\"\323\010\n\nDataSource\022\024\n\004name\030\001 \001" + + "(\tB\006\340A\003\340A\010\022>\n\005state\030\025 \001(\0162*.google.cloud" + + ".backupdr.v1.DataSource.StateB\003\340A\003\022E\n\006la" + + "bels\030\004 \003(\01320.google.cloud.backupdr.v1.Da" + + "taSource.LabelsEntryB\003\340A\001\0229\n\013create_time" + + "\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003H" + + "\001\210\001\001\0229\n\013update_time\030\006 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003H\002\210\001\001\022\031\n\014backup_count\030" + + "\007 \001(\003H\003\210\001\001\022\021\n\004etag\030\016 \001(\tH\004\210\001\001\022\037\n\022total_s" + + "tored_bytes\030\027 \001(\003H\005\210\001\001\022F\n\014config_state\030\030" + + " \001(\0162+.google.cloud.backupdr.v1.BackupCo" + + "nfigStateB\003\340A\003\022K\n\022backup_config_info\030\031 \001" + + "(\0132*.google.cloud.backupdr.v1.BackupConf" + + "igInfoB\003\340A\003\022S\n\030data_source_gcp_resource\030" + + "\032 \001(\0132/.google.cloud.backupdr.v1.DataSou" + + "rceGcpResourceH\000\022r\n(data_source_backup_a" + + "ppliance_application\030\033 \001(\0132>.google.clou" + + "d.backupdr.v1.DataSourceBackupApplianceA" + + "pplicationH\000\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t" + + "\022\r\n\005value\030\002 \001(\t:\0028\001\"Q\n\005State\022\025\n\021STATE_UN" + + "SPECIFIED\020\000\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n" + + "\010DELETING\020\003\022\t\n\005ERROR\020\004:\236\001\352A\232\001\n\"backupdr." + + "googleapis.com/DataSource\022[projects/{pro" + + "ject}/locations/{location}/backupVaults/" + + "{backupvault}/dataSources/{datasource}*\013" + + "dataSources2\ndataSourceB\021\n\017source_resour" + + "ceB\016\n\014_create_timeB\016\n\014_update_timeB\017\n\r_b" + + "ackup_countB\007\n\005_etagB\025\n\023_total_stored_by" + + "tes\"\261\004\n\020BackupConfigInfo\022Z\n\021last_backup_" + + "state\030\001 \001(\0162:.google.cloud.backupdr.v1.B" + + "ackupConfigInfo.LastBackupStateB\003\340A\003\022P\n\'" + + "last_successful_backup_consistency_time\030" + + "\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0222" + + "\n\021last_backup_error\030\003 \001(\0132\022.google.rpc.S" + + "tatusB\003\340A\003\022F\n\021gcp_backup_config\030\004 \001(\0132)." + + "google.cloud.backupdr.v1.GcpBackupConfig" + + "H\000\022_\n\036backup_appliance_backup_config\030\005 \001" + + "(\01325.google.cloud.backupdr.v1.BackupAppl" + + "ianceBackupConfigH\000\"\200\001\n\017LastBackupState\022" + + "!\n\035LAST_BACKUP_STATE_UNSPECIFIED\020\000\022\030\n\024FI" + + "RST_BACKUP_PENDING\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006F" + + "AILED\020\003\022\025\n\021PERMISSION_DENIED\020\004B\017\n\rbackup" + + "_config\"\340\001\n\017GcpBackupConfig\022<\n\013backup_pl" + + "an\030\001 \001(\tB\'\372A$\n\"backupdr.googleapis.com/B" + + "ackupPlan\022\037\n\027backup_plan_description\030\002 \001" + + "(\t\022S\n\027backup_plan_association\030\003 \001(\tB2\372A/" + + "\n-backupdr.googleapis.com/BackupPlanAsso" + + "ciation\022\031\n\021backup_plan_rules\030\004 \003(\t\"\272\001\n\033B" + + "ackupApplianceBackupConfig\022\035\n\025backup_app" + + "liance_name\030\001 \001(\t\022\033\n\023backup_appliance_id" + + "\030\002 \001(\003\022\016\n\006sla_id\030\003 \001(\003\022\030\n\020application_na" + + "me\030\004 \001(\t\022\021\n\thost_name\030\005 \001(\t\022\020\n\010slt_name\030" + + "\006 \001(\t\022\020\n\010slp_name\030\007 \001(\t\"\342\001\n\025DataSourceGc" + + "pResource\022\035\n\020gcp_resourcename\030\001 \001(\tB\003\340A\003" + + "\022\020\n\010location\030\002 \001(\t\022\014\n\004type\030\003 \001(\t\022o\n&comp" + + "ute_instance_datasource_properties\030\004 \001(\013" + + "2=.google.cloud.backupdr.v1.ComputeInsta" + + "nceDataSourcePropertiesH\000B\031\n\027gcp_resourc" + + "e_properties\"\271\001\n$DataSourceBackupApplian" + + "ceApplication\022\030\n\020application_name\030\001 \001(\t\022" + + "\030\n\020backup_appliance\030\002 \001(\t\022\024\n\014appliance_i" + + "d\030\003 \001(\003\022\014\n\004type\030\004 \001(\t\022\026\n\016application_id\030" + + "\010 \001(\003\022\020\n\010hostname\030\006 \001(\t\022\017\n\007host_id\030\007 \001(\003" + + "\")\n\017ServiceLockInfo\022\026\n\toperation\030\001 \001(\tB\003" + + "\340A\003\"\306\001\n\027BackupApplianceLockInfo\022 \n\023backu" + + "p_appliance_id\030\001 \001(\003B\003\340A\002\022\"\n\025backup_appl" + + "iance_name\030\002 \001(\tB\003\340A\002\022\030\n\013lock_reason\030\005 \001" + + "(\tB\003\340A\002\022\022\n\010job_name\030\006 \001(\tH\000\022\026\n\014backup_im" + + "age\030\007 \001(\tH\000\022\020\n\006sla_id\030\010 \001(\003H\000B\r\n\013lock_so" + + "urce\"\376\001\n\nBackupLock\0228\n\017lock_until_time\030\001" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\002\022W\n" + + "\032backup_appliance_lock_info\030\003 \001(\01321.goog" + + "le.cloud.backupdr.v1.BackupApplianceLock" + + "InfoH\000\022K\n\021service_lock_info\030\004 \001(\0132).goog" + + "le.cloud.backupdr.v1.ServiceLockInfoB\003\340A" + + "\003H\000B\020\n\016ClientLockInfo\"\274\r\n\006Backup\022\024\n\004name" + + "\030\001 \001(\tB\006\340A\003\340A\010\022\035\n\013description\030\002 \001(\tB\003\340A\003" + + "H\002\210\001\001\0229\n\013create_time\030\003 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003H\003\210\001\001\0229\n\013update_time\030" + + "\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003H\004" + + "\210\001\001\022A\n\006labels\030\005 \003(\0132,.google.cloud.backu" + + "pdr.v1.Backup.LabelsEntryB\003\340A\001\022I\n\033enforc" + + "ed_retention_end_time\030\006 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\001H\005\210\001\001\0229\n\013expire_time" + + "\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\001H" + + "\006\210\001\001\022>\n\020consistency_time\030\t \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003H\007\210\001\001\022\026\n\004etag\030\013 \001" + + "(\tB\003\340A\001H\010\210\001\001\022:\n\005state\030\017 \001(\0162&.google.clo" + + "ud.backupdr.v1.Backup.StateB\003\340A\003\022@\n\rserv" + + "ice_locks\030\021 \003(\0132$.google.cloud.backupdr." + + "v1.BackupLockB\003\340A\003\022I\n\026backup_appliance_l" + + "ocks\030\022 \003(\0132$.google.cloud.backupdr.v1.Ba" + + "ckupLockB\003\340A\001\022l\n\"compute_instance_backup" + + "_properties\030\023 \001(\01329.google.cloud.backupd" + + "r.v1.ComputeInstanceBackupPropertiesB\003\340A" + + "\003H\000\022l\n\"backup_appliance_backup_propertie" + + "s\030\025 \001(\01329.google.cloud.backupdr.v1.Backu" + + "pApplianceBackupPropertiesB\003\340A\003H\000\022E\n\013bac" + + "kup_type\030\024 \001(\0162+.google.cloud.backupdr.v" + + "1.Backup.BackupTypeB\003\340A\003\022W\n\024gcp_backup_p" + + "lan_info\030\026 \001(\01322.google.cloud.backupdr.v" + + "1.Backup.GCPBackupPlanInfoB\003\340A\003H\001\022 \n\023res" + + "ource_size_bytes\030\027 \001(\003B\003\340A\003\032n\n\021GCPBackup" + + "PlanInfo\022<\n\013backup_plan\030\001 \001(\tB\'\372A$\n\"back" + + "updr.googleapis.com/BackupPlan\022\033\n\023backup" + + "_plan_rule_id\030\002 \001(\t\032-\n\013LabelsEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"Q\n\005State\022\025\n\021S" + + "TATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\n\n\006ACTI" + + "VE\020\002\022\014\n\010DELETING\020\003\022\t\n\005ERROR\020\004\"G\n\nBackupT" + + "ype\022\033\n\027BACKUP_TYPE_UNSPECIFIED\020\000\022\r\n\tSCHE" + + "DULED\020\001\022\r\n\tON_DEMAND\020\002:\243\001\352A\237\001\n\036backupdr." + + "googleapis.com/Backup\022lprojects/{project" + + "}/locations/{location}/backupVaults/{bac" + + "kupvault}/dataSources/{datasource}/backu" + + "ps/{backup}*\007backups2\006backupB\023\n\021backup_p" + + "ropertiesB\013\n\tplan_infoB\016\n\014_descriptionB\016" + + "\n\014_create_timeB\016\n\014_update_timeB\036\n\034_enfor" + + "ced_retention_end_timeB\016\n\014_expire_timeB\023" + + "\n\021_consistency_timeB\007\n\005_etag\"\364\001\n\030CreateB" + + "ackupVaultRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A" + + "%\022#backupdr.googleapis.com/BackupVault\022\034" + + "\n\017backup_vault_id\030\002 \001(\tB\003\340A\002\022@\n\014backup_v" + + "ault\030\003 \001(\0132%.google.cloud.backupdr.v1.Ba" + + "ckupVaultB\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\"\361\001\n\027" + + "ListBackupVaultsRequest\022;\n\006parent\030\001 \001(\tB" + + "+\340A\002\372A%\022#backupdr.googleapis.com/BackupV" + + "ault\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_tok" + + "en\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010or" + + "der_by\030\005 \001(\tB\003\340A\001\022<\n\004view\030\006 \001(\0162).google" + + ".cloud.backupdr.v1.BackupVaultViewB\003\340A\001\"" + + "\206\001\n\030ListBackupVaultsResponse\022<\n\rbackup_v" + + "aults\030\001 \003(\0132%.google.cloud.backupdr.v1.B" + + "ackupVault\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013u" + + "nreachable\030\003 \003(\t\"\272\001\n\036FetchUsableBackupVa" + + "ultsRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\022#bac" + + "kupdr.googleapis.com/BackupVault\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\"\215\001\n\037FetchUsableBackupVaultsRespons" + + "e\022<\n\rbackup_vaults\030\001 \003(\0132%.google.cloud." + + "backupdr.v1.BackupVault\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\220\001\n\025GetBac" + + "kupVaultRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#b" + + "ackupdr.googleapis.com/BackupVault\022<\n\004vi" + + "ew\030\002 \001(\0162).google.cloud.backupdr.v1.Back" + + "upVaultViewB\003\340A\001\"\343\001\n\030UpdateBackupVaultRe" + + "quest\0224\n\013update_mask\030\001 \001(\0132\032.google.prot" + + "obuf.FieldMaskB\003\340A\002\022@\n\014backup_vault\030\002 \001(" + + "\0132%.google.cloud.backupdr.v1.BackupVault" + + "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\rvalidate_only\030\004 \001(\010B\003\340A\001\022\022\n\005force\030\005 \001(" + + "\010B\003\340A\001\"\374\001\n\030DeleteBackupVaultRequest\0229\n\004n" + + "ame\030\001 \001(\tB+\340A\002\372A%\n#backupdr.googleapis.c" + + "om/BackupVault\022\037\n\nrequest_id\030\002 \001(\tB\013\340A\001\342" + + "\214\317\327\010\002\010\001\022\022\n\005force\030\003 \001(\010B\003\340A\001\022\014\n\004etag\030\004 \001(" + + "\t\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\022\032\n\rallow_m" + + "issing\030\006 \001(\010B\003\340A\001\022*\n\035ignore_backup_plan_" + + "references\030\007 \001(\010B\003\340A\001\"\261\001\n\026ListDataSource" + + "sRequest\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\022\"backup" + + "dr.googleapis.com/DataSource\022\026\n\tpage_siz" + + "e\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\"\203\001\n\027ListDataSourcesResponse\022:\n\014data_so" + + "urces\030\001 \003(\0132$.google.cloud.backupdr.v1.D" + + "ataSource\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013un" + + "reachable\030\003 \003(\t\"P\n\024GetDataSourceRequest\022" + + "8\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"backupdr.googleap" + + "is.com/DataSource\"\314\001\n\027UpdateDataSourceRe" + + "quest\0224\n\013update_mask\030\001 \001(\0132\032.google.prot" + + "obuf.FieldMaskB\003\340A\002\022>\n\013data_source\030\002 \001(\013" + + "2$.google.cloud.backupdr.v1.DataSourceB\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\r" + + "allow_missing\030\004 \001(\010B\003\340A\001\"\342\001\n\022ListBackups" + + "Request\0226\n\006parent\030\001 \001(\tB&\340A\002\372A \022\036backupd" + + "r.googleapis.com/Backup\022\026\n\tpage_size\030\002 \001" + "(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006filt" - + "er\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"\203\001\n" - + "\027ListDataSourcesResponse\022:\n\014data_sources" - + "\030\001 \003(\0132$.google.cloud.backupdr.v1.DataSo" - + "urce\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreach" - + "able\030\003 \003(\t\"P\n\024GetDataSourceRequest\0228\n\004na" - + "me\030\001 \001(\tB*\340A\002\372A$\n\"backupdr.googleapis.co" - + "m/DataSource\"\314\001\n\027UpdateDataSourceRequest" - + "\0224\n\013update_mask\030\001 \001(\0132\032.google.protobuf." - + "FieldMaskB\003\340A\002\022>\n\013data_source\030\002 \001(\0132$.go" - + "ogle.cloud.backupdr.v1.DataSourceB\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\"\342\001\n\022ListBackupsReque" - + "st\0226\n\006parent\030\001 \001(\tB&\340A\002\372A \022\036backupdr.goo" - + "gleapis.com/Backup\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\0227\n\004view\030" - + "\006 \001(\0162$.google.cloud.backupdr.v1.BackupV" - + "iewB\003\340A\001\"v\n\023ListBackupsResponse\0221\n\007backu" - + "ps\030\001 \003(\0132 .google.cloud.backupdr.v1.Back" - + "up\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachab" - + "le\030\003 \003(\t\"\201\001\n\020GetBackupRequest\0224\n\004name\030\001 " - + "\001(\tB&\340A\002\372A \n\036backupdr.googleapis.com/Bac" - + "kup\0227\n\004view\030\002 \001(\0162$.google.cloud.backupd" - + "r.v1.BackupViewB\003\340A\001\"\243\001\n\023UpdateBackupReq" - + "uest\0224\n\013update_mask\030\001 \001(\0132\032.google.proto" - + "buf.FieldMaskB\003\340A\002\0225\n\006backup\030\002 \001(\0132 .goo" - + "gle.cloud.backupdr.v1.BackupB\003\340A\002\022\037\n\nreq" - + "uest_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"l\n\023DeleteBack" - + "upRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036backupd" - + "r.googleapis.com/Backup\022\037\n\nrequest_id\030\002 " - + "\001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\360\002\n\024RestoreBackupReques" - + "t\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036backupdr.google" - + "apis.com/Backup\022\037\n\nrequest_id\030\002 \001(\tB\013\340A\001" - + "\342\214\317\327\010\002\010\001\022i\n#compute_instance_target_envi" - + "ronment\030\003 \001(\0132:.google.cloud.backupdr.v1" - + ".ComputeInstanceTargetEnvironmentH\000\022i\n#c" - + "ompute_instance_restore_properties\030\004 \001(\013" - + "2:.google.cloud.backupdr.v1.ComputeInsta" - + "nceRestorePropertiesH\001B\024\n\022target_environ" - + "mentB\025\n\023instance_properties\"Z\n\025RestoreBa" - + "ckupResponse\022A\n\017target_resource\030\001 \001(\0132(." - + "google.cloud.backupdr.v1.TargetResource\"" - + "g\n\016TargetResource\022=\n\014gcp_resource\030\001 \001(\0132" - + "%.google.cloud.backupdr.v1.GcpResourceH\000" - + "B\026\n\024target_resource_info\"G\n\013GcpResource\022" - + "\030\n\020gcp_resourcename\030\001 \001(\t\022\020\n\010location\030\002 " - + "\001(\t\022\014\n\004type\030\003 \001(\t*Q\n\021BackupConfigState\022#" - + "\n\037BACKUP_CONFIG_STATE_UNSPECIFIED\020\000\022\n\n\006A" - + "CTIVE\020\001\022\013\n\007PASSIVE\020\002*V\n\nBackupView\022\033\n\027BA" - + "CKUP_VIEW_UNSPECIFIED\020\000\022\025\n\021BACKUP_VIEW_B" - + "ASIC\020\001\022\024\n\020BACKUP_VIEW_FULL\020\002*m\n\017BackupVa" - + "ultView\022!\n\035BACKUP_VAULT_VIEW_UNSPECIFIED" - + "\020\000\022\033\n\027BACKUP_VAULT_VIEW_BASIC\020\001\022\032\n\026BACKU" - + "P_VAULT_VIEW_FULL\020\002B\300\001\n\034com.google.cloud" - + ".backupdr.v1B\020BackupVaultProtoP\001Z8cloud." - + "google.com/go/backupdr/apiv1/backupdrpb;" - + "backupdrpb\252\002\030Google.Cloud.BackupDR.V1\312\002\030" - + "Google\\Cloud\\BackupDR\\V1\352\002\033Google::Cloud" - + "::BackupDR::V1b\006proto3" + + "er\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\0227\n\004" + + "view\030\006 \001(\0162$.google.cloud.backupdr.v1.Ba" + + "ckupViewB\003\340A\001\"v\n\023ListBackupsResponse\0221\n\007" + + "backups\030\001 \003(\0132 .google.cloud.backupdr.v1" + + ".Backup\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unre" + + "achable\030\003 \003(\t\"\201\001\n\020GetBackupRequest\0224\n\004na" + + "me\030\001 \001(\tB&\340A\002\372A \n\036backupdr.googleapis.co" + + "m/Backup\0227\n\004view\030\002 \001(\0162$.google.cloud.ba" + + "ckupdr.v1.BackupViewB\003\340A\001\"\243\001\n\023UpdateBack" + + "upRequest\0224\n\013update_mask\030\001 \001(\0132\032.google." + + "protobuf.FieldMaskB\003\340A\002\0225\n\006backup\030\002 \001(\0132" + + " .google.cloud.backupdr.v1.BackupB\003\340A\002\022\037" + + "\n\nrequest_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"l\n\023Delet" + + "eBackupRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036ba" + + "ckupdr.googleapis.com/Backup\022\037\n\nrequest_" + + "id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\360\002\n\024RestoreBackupR" + + "equest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036backupdr.g" + + "oogleapis.com/Backup\022\037\n\nrequest_id\030\002 \001(\t" + + "B\013\340A\001\342\214\317\327\010\002\010\001\022i\n#compute_instance_target" + + "_environment\030\003 \001(\0132:.google.cloud.backup" + + "dr.v1.ComputeInstanceTargetEnvironmentH\000" + + "\022i\n#compute_instance_restore_properties\030" + + "\004 \001(\0132:.google.cloud.backupdr.v1.Compute" + + "InstanceRestorePropertiesH\001B\024\n\022target_en" + + "vironmentB\025\n\023instance_properties\"Z\n\025Rest" + + "oreBackupResponse\022A\n\017target_resource\030\001 \001" + + "(\0132(.google.cloud.backupdr.v1.TargetReso" + + "urce\"g\n\016TargetResource\022=\n\014gcp_resource\030\001" + + " \001(\0132%.google.cloud.backupdr.v1.GcpResou" + + "rceH\000B\026\n\024target_resource_info\"G\n\013GcpReso" + + "urce\022\030\n\020gcp_resourcename\030\001 \001(\t\022\020\n\010locati" + + "on\030\002 \001(\t\022\014\n\004type\030\003 \001(\t*Q\n\021BackupConfigSt" + + "ate\022#\n\037BACKUP_CONFIG_STATE_UNSPECIFIED\020\000" + + "\022\n\n\006ACTIVE\020\001\022\013\n\007PASSIVE\020\002*V\n\nBackupView\022" + + "\033\n\027BACKUP_VIEW_UNSPECIFIED\020\000\022\025\n\021BACKUP_V" + + "IEW_BASIC\020\001\022\024\n\020BACKUP_VIEW_FULL\020\002*m\n\017Bac" + + "kupVaultView\022!\n\035BACKUP_VAULT_VIEW_UNSPEC" + + "IFIED\020\000\022\033\n\027BACKUP_VAULT_VIEW_BASIC\020\001\022\032\n\026" + + "BACKUP_VAULT_VIEW_FULL\020\002B\300\001\n\034com.google." + + "cloud.backupdr.v1B\020BackupVaultProtoP\001Z8c" + + "loud.google.com/go/backupdr/apiv1/backup" + + "drpb;backupdrpb\252\002\030Google.Cloud.BackupDR." + + "V1\312\002\030Google\\Cloud\\BackupDR\\V1\352\002\033Google::" + + "Cloud::BackupDR::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -726,7 +728,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_backupdr_v1_DeleteBackupVaultRequest_descriptor, new java.lang.String[] { - "Name", "RequestId", "Force", "Etag", "ValidateOnly", "AllowMissing", + "Name", + "RequestId", + "Force", + "Etag", + "ValidateOnly", + "AllowMissing", + "IgnoreBackupPlanReferences", }); internal_static_google_cloud_backupdr_v1_ListDataSourcesRequest_descriptor = getDescriptor().getMessageTypes().get(19); diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DeleteBackupVaultRequest.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DeleteBackupVaultRequest.java index 74d2393fc76d..1c788ba39538 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DeleteBackupVaultRequest.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DeleteBackupVaultRequest.java @@ -311,6 +311,25 @@ public boolean getAllowMissing() { return allowMissing_; } + public static final int IGNORE_BACKUP_PLAN_REFERENCES_FIELD_NUMBER = 7; + private boolean ignoreBackupPlanReferences_ = false; + /** + * + * + *
+   * Optional. If set to true, backupvault deletion will proceed even if there
+   * are backup plans referencing the backupvault. The default is 'false'.
+   * 
+ * + * bool ignore_backup_plan_references = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ignoreBackupPlanReferences. + */ + @java.lang.Override + public boolean getIgnoreBackupPlanReferences() { + return ignoreBackupPlanReferences_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -343,6 +362,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (allowMissing_ != false) { output.writeBool(6, allowMissing_); } + if (ignoreBackupPlanReferences_ != false) { + output.writeBool(7, ignoreBackupPlanReferences_); + } getUnknownFields().writeTo(output); } @@ -370,6 +392,9 @@ public int getSerializedSize() { if (allowMissing_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, allowMissing_); } + if (ignoreBackupPlanReferences_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, ignoreBackupPlanReferences_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -392,6 +417,7 @@ public boolean equals(final java.lang.Object obj) { if (!getEtag().equals(other.getEtag())) return false; if (getValidateOnly() != other.getValidateOnly()) return false; if (getAllowMissing() != other.getAllowMissing()) return false; + if (getIgnoreBackupPlanReferences() != other.getIgnoreBackupPlanReferences()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -415,6 +441,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); + hash = (37 * hash) + IGNORE_BACKUP_PLAN_REFERENCES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreBackupPlanReferences()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -561,6 +589,7 @@ public Builder clear() { etag_ = ""; validateOnly_ = false; allowMissing_ = false; + ignoreBackupPlanReferences_ = false; return this; } @@ -615,6 +644,9 @@ private void buildPartial0(com.google.cloud.backupdr.v1.DeleteBackupVaultRequest if (((from_bitField0_ & 0x00000020) != 0)) { result.allowMissing_ = allowMissing_; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.ignoreBackupPlanReferences_ = ignoreBackupPlanReferences_; + } } @java.lang.Override @@ -687,6 +719,9 @@ public Builder mergeFrom(com.google.cloud.backupdr.v1.DeleteBackupVaultRequest o if (other.getAllowMissing() != false) { setAllowMissing(other.getAllowMissing()); } + if (other.getIgnoreBackupPlanReferences() != false) { + setIgnoreBackupPlanReferences(other.getIgnoreBackupPlanReferences()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -749,6 +784,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 48 + case 56: + { + ignoreBackupPlanReferences_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1344,6 +1385,65 @@ public Builder clearAllowMissing() { return this; } + private boolean ignoreBackupPlanReferences_; + /** + * + * + *
+     * Optional. If set to true, backupvault deletion will proceed even if there
+     * are backup plans referencing the backupvault. The default is 'false'.
+     * 
+ * + * bool ignore_backup_plan_references = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ignoreBackupPlanReferences. + */ + @java.lang.Override + public boolean getIgnoreBackupPlanReferences() { + return ignoreBackupPlanReferences_; + } + /** + * + * + *
+     * Optional. If set to true, backupvault deletion will proceed even if there
+     * are backup plans referencing the backupvault. The default is 'false'.
+     * 
+ * + * bool ignore_backup_plan_references = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The ignoreBackupPlanReferences to set. + * @return This builder for chaining. + */ + public Builder setIgnoreBackupPlanReferences(boolean value) { + + ignoreBackupPlanReferences_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set to true, backupvault deletion will proceed even if there
+     * are backup plans referencing the backupvault. The default is 'false'.
+     * 
+ * + * bool ignore_backup_plan_references = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearIgnoreBackupPlanReferences() { + bitField0_ = (bitField0_ & ~0x00000040); + ignoreBackupPlanReferences_ = 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-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DeleteBackupVaultRequestOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DeleteBackupVaultRequestOrBuilder.java index fea0a3c1d1ad..a0b0b7b1a4f2 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DeleteBackupVaultRequestOrBuilder.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/DeleteBackupVaultRequestOrBuilder.java @@ -176,4 +176,18 @@ public interface DeleteBackupVaultRequestOrBuilder * @return The allowMissing. */ boolean getAllowMissing(); + + /** + * + * + *
+   * Optional. If set to true, backupvault deletion will proceed even if there
+   * are backup plans referencing the backupvault. The default is 'false'.
+   * 
+ * + * bool ignore_backup_plan_references = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ignoreBackupPlanReferences. + */ + boolean getIgnoreBackupPlanReferences(); } diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/InitializeServiceRequest.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/InitializeServiceRequest.java new file mode 100644 index 000000000000..8312496466b7 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/InitializeServiceRequest.java @@ -0,0 +1,1116 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/backupdr/v1/backupdr.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.backupdr.v1; + +/** + * + * + *
+ * Request message for initializing the service.
+ * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.InitializeServiceRequest} + */ +public final class InitializeServiceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.backupdr.v1.InitializeServiceRequest) + InitializeServiceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use InitializeServiceRequest.newBuilder() to construct. + private InitializeServiceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private InitializeServiceRequest() { + name_ = ""; + resourceType_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new InitializeServiceRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.BackupDRProto + .internal_static_google_cloud_backupdr_v1_InitializeServiceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.BackupDRProto + .internal_static_google_cloud_backupdr_v1_InitializeServiceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.InitializeServiceRequest.class, + com.google.cloud.backupdr.v1.InitializeServiceRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The resource name of the serviceConfig used to initialize the
+   * service. Format:
+   * `projects/{project_id}/locations/{location}/serviceConfig`.
+   * 
+ * + * 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 name of the serviceConfig used to initialize the
+   * service. Format:
+   * `projects/{project_id}/locations/{location}/serviceConfig`.
+   * 
+ * + * 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 RESOURCE_TYPE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object resourceType_ = ""; + /** + * + * + *
+   * Required. The resource type to which the default service config will be
+   * applied. Examples include, "compute.googleapis.com/Instance" and
+   * "storage.googleapis.com/Bucket".
+   * 
+ * + * string resource_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resourceType. + */ + @java.lang.Override + public java.lang.String getResourceType() { + java.lang.Object ref = resourceType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceType_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource type to which the default service config will be
+   * applied. Examples include, "compute.googleapis.com/Instance" and
+   * "storage.googleapis.com/Bucket".
+   * 
+ * + * string resource_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resourceType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceTypeBytes() { + java.lang.Object ref = resourceType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
+   * Optional. 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. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and t
+   * he 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).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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. 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. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and t
+   * he 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).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resourceType_); + } + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resourceType_); + } + 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.backupdr.v1.InitializeServiceRequest)) { + return super.equals(obj); + } + com.google.cloud.backupdr.v1.InitializeServiceRequest other = + (com.google.cloud.backupdr.v1.InitializeServiceRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getResourceType().equals(other.getResourceType())) 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(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getResourceType().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.backupdr.v1.InitializeServiceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.InitializeServiceRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.InitializeServiceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.InitializeServiceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.InitializeServiceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.InitializeServiceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.InitializeServiceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.InitializeServiceRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.InitializeServiceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.InitializeServiceRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.InitializeServiceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.InitializeServiceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.backupdr.v1.InitializeServiceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 initializing the service.
+   * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.InitializeServiceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.backupdr.v1.InitializeServiceRequest) + com.google.cloud.backupdr.v1.InitializeServiceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.BackupDRProto + .internal_static_google_cloud_backupdr_v1_InitializeServiceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.BackupDRProto + .internal_static_google_cloud_backupdr_v1_InitializeServiceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.InitializeServiceRequest.class, + com.google.cloud.backupdr.v1.InitializeServiceRequest.Builder.class); + } + + // Construct using com.google.cloud.backupdr.v1.InitializeServiceRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + resourceType_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.backupdr.v1.BackupDRProto + .internal_static_google_cloud_backupdr_v1_InitializeServiceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.InitializeServiceRequest getDefaultInstanceForType() { + return com.google.cloud.backupdr.v1.InitializeServiceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.InitializeServiceRequest build() { + com.google.cloud.backupdr.v1.InitializeServiceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.InitializeServiceRequest buildPartial() { + com.google.cloud.backupdr.v1.InitializeServiceRequest result = + new com.google.cloud.backupdr.v1.InitializeServiceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.backupdr.v1.InitializeServiceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.resourceType_ = resourceType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.backupdr.v1.InitializeServiceRequest) { + return mergeFrom((com.google.cloud.backupdr.v1.InitializeServiceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.backupdr.v1.InitializeServiceRequest other) { + if (other == com.google.cloud.backupdr.v1.InitializeServiceRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getResourceType().isEmpty()) { + resourceType_ = other.resourceType_; + bitField0_ |= 0x00000002; + onChanged(); + } + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + resourceType_ = input.readStringRequireUtf8(); + 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 java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the serviceConfig used to initialize the
+     * service. Format:
+     * `projects/{project_id}/locations/{location}/serviceConfig`.
+     * 
+ * + * 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 name of the serviceConfig used to initialize the
+     * service. Format:
+     * `projects/{project_id}/locations/{location}/serviceConfig`.
+     * 
+ * + * 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 name of the serviceConfig used to initialize the
+     * service. Format:
+     * `projects/{project_id}/locations/{location}/serviceConfig`.
+     * 
+ * + * 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 name of the serviceConfig used to initialize the
+     * service. Format:
+     * `projects/{project_id}/locations/{location}/serviceConfig`.
+     * 
+ * + * 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 name of the serviceConfig used to initialize the
+     * service. Format:
+     * `projects/{project_id}/locations/{location}/serviceConfig`.
+     * 
+ * + * 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; + } + + private java.lang.Object resourceType_ = ""; + /** + * + * + *
+     * Required. The resource type to which the default service config will be
+     * applied. Examples include, "compute.googleapis.com/Instance" and
+     * "storage.googleapis.com/Bucket".
+     * 
+ * + * string resource_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resourceType. + */ + public java.lang.String getResourceType() { + java.lang.Object ref = resourceType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource type to which the default service config will be
+     * applied. Examples include, "compute.googleapis.com/Instance" and
+     * "storage.googleapis.com/Bucket".
+     * 
+ * + * string resource_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resourceType. + */ + public com.google.protobuf.ByteString getResourceTypeBytes() { + java.lang.Object ref = resourceType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource type to which the default service config will be
+     * applied. Examples include, "compute.googleapis.com/Instance" and
+     * "storage.googleapis.com/Bucket".
+     * 
+ * + * string resource_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resourceType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource type to which the default service config will be
+     * applied. Examples include, "compute.googleapis.com/Instance" and
+     * "storage.googleapis.com/Bucket".
+     * 
+ * + * string resource_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearResourceType() { + resourceType_ = getDefaultInstance().getResourceType(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource type to which the default service config will be
+     * applied. Examples include, "compute.googleapis.com/Instance" and
+     * "storage.googleapis.com/Bucket".
+     * 
+ * + * string resource_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * Optional. 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. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and t
+     * he 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).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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. 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. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and t
+     * he 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).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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. 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. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and t
+     * he 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).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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. 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. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and t
+     * he 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).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. 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. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and t
+     * he 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).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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.backupdr.v1.InitializeServiceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.backupdr.v1.InitializeServiceRequest) + private static final com.google.cloud.backupdr.v1.InitializeServiceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.backupdr.v1.InitializeServiceRequest(); + } + + public static com.google.cloud.backupdr.v1.InitializeServiceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InitializeServiceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.InitializeServiceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/InitializeServiceRequestOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/InitializeServiceRequestOrBuilder.java new file mode 100644 index 000000000000..6ecaf4342d42 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/InitializeServiceRequestOrBuilder.java @@ -0,0 +1,137 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/backupdr/v1/backupdr.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.backupdr.v1; + +public interface InitializeServiceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.backupdr.v1.InitializeServiceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the serviceConfig used to initialize the
+   * service. Format:
+   * `projects/{project_id}/locations/{location}/serviceConfig`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the serviceConfig used to initialize the
+   * service. Format:
+   * `projects/{project_id}/locations/{location}/serviceConfig`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The resource type to which the default service config will be
+   * applied. Examples include, "compute.googleapis.com/Instance" and
+   * "storage.googleapis.com/Bucket".
+   * 
+ * + * string resource_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The resourceType. + */ + java.lang.String getResourceType(); + /** + * + * + *
+   * Required. The resource type to which the default service config will be
+   * applied. Examples include, "compute.googleapis.com/Instance" and
+   * "storage.googleapis.com/Bucket".
+   * 
+ * + * string resource_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for resourceType. + */ + com.google.protobuf.ByteString getResourceTypeBytes(); + + /** + * + * + *
+   * Optional. 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. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and t
+   * he 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).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Optional. 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. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and t
+   * he 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).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/InitializeServiceResponse.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/InitializeServiceResponse.java new file mode 100644 index 000000000000..110734524216 --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/InitializeServiceResponse.java @@ -0,0 +1,836 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/backupdr/v1/backupdr.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.backupdr.v1; + +/** + * + * + *
+ * Response message for initializing the service.
+ * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.InitializeServiceResponse} + */ +public final class InitializeServiceResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.backupdr.v1.InitializeServiceResponse) + InitializeServiceResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use InitializeServiceResponse.newBuilder() to construct. + private InitializeServiceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private InitializeServiceResponse() { + backupVaultName_ = ""; + backupPlanName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new InitializeServiceResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.BackupDRProto + .internal_static_google_cloud_backupdr_v1_InitializeServiceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.BackupDRProto + .internal_static_google_cloud_backupdr_v1_InitializeServiceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.InitializeServiceResponse.class, + com.google.cloud.backupdr.v1.InitializeServiceResponse.Builder.class); + } + + public static final int BACKUP_VAULT_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object backupVaultName_ = ""; + /** + * + * + *
+   * The resource name of the default `BackupVault` created.
+   * Format:
+   * `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}`.
+   * 
+ * + * string backup_vault_name = 1; + * + * @return The backupVaultName. + */ + @java.lang.Override + public java.lang.String getBackupVaultName() { + java.lang.Object ref = backupVaultName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backupVaultName_ = s; + return s; + } + } + /** + * + * + *
+   * The resource name of the default `BackupVault` created.
+   * Format:
+   * `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}`.
+   * 
+ * + * string backup_vault_name = 1; + * + * @return The bytes for backupVaultName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBackupVaultNameBytes() { + java.lang.Object ref = backupVaultName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backupVaultName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BACKUP_PLAN_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object backupPlanName_ = ""; + /** + * + * + *
+   * The resource name of the default `BackupPlan` created.
+   * Format:
+   * `projects/{project_id}/locations/{location}/backupPlans/{backup_plan_id}`.
+   * 
+ * + * string backup_plan_name = 2; + * + * @return The backupPlanName. + */ + @java.lang.Override + public java.lang.String getBackupPlanName() { + java.lang.Object ref = backupPlanName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backupPlanName_ = s; + return s; + } + } + /** + * + * + *
+   * The resource name of the default `BackupPlan` created.
+   * Format:
+   * `projects/{project_id}/locations/{location}/backupPlans/{backup_plan_id}`.
+   * 
+ * + * string backup_plan_name = 2; + * + * @return The bytes for backupPlanName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBackupPlanNameBytes() { + java.lang.Object ref = backupPlanName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backupPlanName_ = 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(backupVaultName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, backupVaultName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backupPlanName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, backupPlanName_); + } + 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(backupVaultName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, backupVaultName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backupPlanName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, backupPlanName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.backupdr.v1.InitializeServiceResponse)) { + return super.equals(obj); + } + com.google.cloud.backupdr.v1.InitializeServiceResponse other = + (com.google.cloud.backupdr.v1.InitializeServiceResponse) obj; + + if (!getBackupVaultName().equals(other.getBackupVaultName())) return false; + if (!getBackupPlanName().equals(other.getBackupPlanName())) return false; + if (!getUnknownFields().equals(other.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) + BACKUP_VAULT_NAME_FIELD_NUMBER; + hash = (53 * hash) + getBackupVaultName().hashCode(); + hash = (37 * hash) + BACKUP_PLAN_NAME_FIELD_NUMBER; + hash = (53 * hash) + getBackupPlanName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.backupdr.v1.InitializeServiceResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.InitializeServiceResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.InitializeServiceResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.InitializeServiceResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.InitializeServiceResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.InitializeServiceResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.InitializeServiceResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.InitializeServiceResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.InitializeServiceResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.InitializeServiceResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.InitializeServiceResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.InitializeServiceResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.backupdr.v1.InitializeServiceResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 initializing the service.
+   * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.InitializeServiceResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.backupdr.v1.InitializeServiceResponse) + com.google.cloud.backupdr.v1.InitializeServiceResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.BackupDRProto + .internal_static_google_cloud_backupdr_v1_InitializeServiceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.BackupDRProto + .internal_static_google_cloud_backupdr_v1_InitializeServiceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.InitializeServiceResponse.class, + com.google.cloud.backupdr.v1.InitializeServiceResponse.Builder.class); + } + + // Construct using com.google.cloud.backupdr.v1.InitializeServiceResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + backupVaultName_ = ""; + backupPlanName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.backupdr.v1.BackupDRProto + .internal_static_google_cloud_backupdr_v1_InitializeServiceResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.InitializeServiceResponse getDefaultInstanceForType() { + return com.google.cloud.backupdr.v1.InitializeServiceResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.InitializeServiceResponse build() { + com.google.cloud.backupdr.v1.InitializeServiceResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.InitializeServiceResponse buildPartial() { + com.google.cloud.backupdr.v1.InitializeServiceResponse result = + new com.google.cloud.backupdr.v1.InitializeServiceResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.backupdr.v1.InitializeServiceResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.backupVaultName_ = backupVaultName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.backupPlanName_ = backupPlanName_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.backupdr.v1.InitializeServiceResponse) { + return mergeFrom((com.google.cloud.backupdr.v1.InitializeServiceResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.backupdr.v1.InitializeServiceResponse other) { + if (other == com.google.cloud.backupdr.v1.InitializeServiceResponse.getDefaultInstance()) + return this; + if (!other.getBackupVaultName().isEmpty()) { + backupVaultName_ = other.backupVaultName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getBackupPlanName().isEmpty()) { + backupPlanName_ = other.backupPlanName_; + 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: + { + backupVaultName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + backupPlanName_ = 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 backupVaultName_ = ""; + /** + * + * + *
+     * The resource name of the default `BackupVault` created.
+     * Format:
+     * `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}`.
+     * 
+ * + * string backup_vault_name = 1; + * + * @return The backupVaultName. + */ + public java.lang.String getBackupVaultName() { + java.lang.Object ref = backupVaultName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backupVaultName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The resource name of the default `BackupVault` created.
+     * Format:
+     * `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}`.
+     * 
+ * + * string backup_vault_name = 1; + * + * @return The bytes for backupVaultName. + */ + public com.google.protobuf.ByteString getBackupVaultNameBytes() { + java.lang.Object ref = backupVaultName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backupVaultName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The resource name of the default `BackupVault` created.
+     * Format:
+     * `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}`.
+     * 
+ * + * string backup_vault_name = 1; + * + * @param value The backupVaultName to set. + * @return This builder for chaining. + */ + public Builder setBackupVaultName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + backupVaultName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name of the default `BackupVault` created.
+     * Format:
+     * `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}`.
+     * 
+ * + * string backup_vault_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearBackupVaultName() { + backupVaultName_ = getDefaultInstance().getBackupVaultName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name of the default `BackupVault` created.
+     * Format:
+     * `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}`.
+     * 
+ * + * string backup_vault_name = 1; + * + * @param value The bytes for backupVaultName to set. + * @return This builder for chaining. + */ + public Builder setBackupVaultNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + backupVaultName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object backupPlanName_ = ""; + /** + * + * + *
+     * The resource name of the default `BackupPlan` created.
+     * Format:
+     * `projects/{project_id}/locations/{location}/backupPlans/{backup_plan_id}`.
+     * 
+ * + * string backup_plan_name = 2; + * + * @return The backupPlanName. + */ + public java.lang.String getBackupPlanName() { + java.lang.Object ref = backupPlanName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backupPlanName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The resource name of the default `BackupPlan` created.
+     * Format:
+     * `projects/{project_id}/locations/{location}/backupPlans/{backup_plan_id}`.
+     * 
+ * + * string backup_plan_name = 2; + * + * @return The bytes for backupPlanName. + */ + public com.google.protobuf.ByteString getBackupPlanNameBytes() { + java.lang.Object ref = backupPlanName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backupPlanName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The resource name of the default `BackupPlan` created.
+     * Format:
+     * `projects/{project_id}/locations/{location}/backupPlans/{backup_plan_id}`.
+     * 
+ * + * string backup_plan_name = 2; + * + * @param value The backupPlanName to set. + * @return This builder for chaining. + */ + public Builder setBackupPlanName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + backupPlanName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name of the default `BackupPlan` created.
+     * Format:
+     * `projects/{project_id}/locations/{location}/backupPlans/{backup_plan_id}`.
+     * 
+ * + * string backup_plan_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearBackupPlanName() { + backupPlanName_ = getDefaultInstance().getBackupPlanName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name of the default `BackupPlan` created.
+     * Format:
+     * `projects/{project_id}/locations/{location}/backupPlans/{backup_plan_id}`.
+     * 
+ * + * string backup_plan_name = 2; + * + * @param value The bytes for backupPlanName to set. + * @return This builder for chaining. + */ + public Builder setBackupPlanNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + backupPlanName_ = 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.backupdr.v1.InitializeServiceResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.backupdr.v1.InitializeServiceResponse) + private static final com.google.cloud.backupdr.v1.InitializeServiceResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.backupdr.v1.InitializeServiceResponse(); + } + + public static com.google.cloud.backupdr.v1.InitializeServiceResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InitializeServiceResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.InitializeServiceResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/InitializeServiceResponseOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/InitializeServiceResponseOrBuilder.java new file mode 100644 index 000000000000..1475da394f8c --- /dev/null +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/InitializeServiceResponseOrBuilder.java @@ -0,0 +1,84 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/backupdr/v1/backupdr.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.backupdr.v1; + +public interface InitializeServiceResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.backupdr.v1.InitializeServiceResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The resource name of the default `BackupVault` created.
+   * Format:
+   * `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}`.
+   * 
+ * + * string backup_vault_name = 1; + * + * @return The backupVaultName. + */ + java.lang.String getBackupVaultName(); + /** + * + * + *
+   * The resource name of the default `BackupVault` created.
+   * Format:
+   * `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}`.
+   * 
+ * + * string backup_vault_name = 1; + * + * @return The bytes for backupVaultName. + */ + com.google.protobuf.ByteString getBackupVaultNameBytes(); + + /** + * + * + *
+   * The resource name of the default `BackupPlan` created.
+   * Format:
+   * `projects/{project_id}/locations/{location}/backupPlans/{backup_plan_id}`.
+   * 
+ * + * string backup_plan_name = 2; + * + * @return The backupPlanName. + */ + java.lang.String getBackupPlanName(); + /** + * + * + *
+   * The resource name of the default `BackupPlan` created.
+   * Format:
+   * `projects/{project_id}/locations/{location}/backupPlans/{backup_plan_id}`.
+   * 
+ * + * string backup_plan_name = 2; + * + * @return The bytes for backupPlanName. + */ + com.google.protobuf.ByteString getBackupPlanNameBytes(); +} diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ManagementServer.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ManagementServer.java index efa7bcae3668..1644e582d26a 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ManagementServer.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ManagementServer.java @@ -1022,12 +1022,13 @@ public com.google.cloud.backupdr.v1.ManagementServer.InstanceState getState() { * * *
-   * Required. VPC networks to which the ManagementServer instance is connected.
-   * For this version, only a single network is supported.
+   * Optional. VPC networks to which the ManagementServer instance is connected.
+   * For this version, only a single network is supported. This field is
+   * optional if MS is created without PSA
    * 
* * - * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -1038,12 +1039,13 @@ public java.util.List getNetworksLis * * *
-   * Required. VPC networks to which the ManagementServer instance is connected.
-   * For this version, only a single network is supported.
+   * Optional. VPC networks to which the ManagementServer instance is connected.
+   * For this version, only a single network is supported. This field is
+   * optional if MS is created without PSA
    * 
* * - * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -1055,12 +1057,13 @@ public java.util.List getNetworksLis * * *
-   * Required. VPC networks to which the ManagementServer instance is connected.
-   * For this version, only a single network is supported.
+   * Optional. VPC networks to which the ManagementServer instance is connected.
+   * For this version, only a single network is supported. This field is
+   * optional if MS is created without PSA
    * 
* * - * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -1071,12 +1074,13 @@ public int getNetworksCount() { * * *
-   * Required. VPC networks to which the ManagementServer instance is connected.
-   * For this version, only a single network is supported.
+   * Optional. VPC networks to which the ManagementServer instance is connected.
+   * For this version, only a single network is supported. This field is
+   * optional if MS is created without PSA
    * 
* * - * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -1087,12 +1091,13 @@ public com.google.cloud.backupdr.v1.NetworkConfig getNetworks(int index) { * * *
-   * Required. VPC networks to which the ManagementServer instance is connected.
-   * For this version, only a single network is supported.
+   * Optional. VPC networks to which the ManagementServer instance is connected.
+   * For this version, only a single network is supported. This field is
+   * optional if MS is created without PSA
    * 
* * - * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -3771,12 +3776,13 @@ private void ensureNetworksIsMutable() { * * *
-     * Required. VPC networks to which the ManagementServer instance is connected.
-     * For this version, only a single network is supported.
+     * Optional. VPC networks to which the ManagementServer instance is connected.
+     * For this version, only a single network is supported. This field is
+     * optional if MS is created without PSA
      * 
* * - * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List getNetworksList() { @@ -3790,12 +3796,13 @@ public java.util.List getNetworksLis * * *
-     * Required. VPC networks to which the ManagementServer instance is connected.
-     * For this version, only a single network is supported.
+     * Optional. VPC networks to which the ManagementServer instance is connected.
+     * For this version, only a single network is supported. This field is
+     * optional if MS is created without PSA
      * 
* * - * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public int getNetworksCount() { @@ -3809,12 +3816,13 @@ public int getNetworksCount() { * * *
-     * Required. VPC networks to which the ManagementServer instance is connected.
-     * For this version, only a single network is supported.
+     * Optional. VPC networks to which the ManagementServer instance is connected.
+     * For this version, only a single network is supported. This field is
+     * optional if MS is created without PSA
      * 
* * - * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.backupdr.v1.NetworkConfig getNetworks(int index) { @@ -3828,12 +3836,13 @@ public com.google.cloud.backupdr.v1.NetworkConfig getNetworks(int index) { * * *
-     * Required. VPC networks to which the ManagementServer instance is connected.
-     * For this version, only a single network is supported.
+     * Optional. VPC networks to which the ManagementServer instance is connected.
+     * For this version, only a single network is supported. This field is
+     * optional if MS is created without PSA
      * 
* * - * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setNetworks(int index, com.google.cloud.backupdr.v1.NetworkConfig value) { @@ -3853,12 +3862,13 @@ public Builder setNetworks(int index, com.google.cloud.backupdr.v1.NetworkConfig * * *
-     * Required. VPC networks to which the ManagementServer instance is connected.
-     * For this version, only a single network is supported.
+     * Optional. VPC networks to which the ManagementServer instance is connected.
+     * For this version, only a single network is supported. This field is
+     * optional if MS is created without PSA
      * 
* * - * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setNetworks( @@ -3876,12 +3886,13 @@ public Builder setNetworks( * * *
-     * Required. VPC networks to which the ManagementServer instance is connected.
-     * For this version, only a single network is supported.
+     * Optional. VPC networks to which the ManagementServer instance is connected.
+     * For this version, only a single network is supported. This field is
+     * optional if MS is created without PSA
      * 
* * - * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addNetworks(com.google.cloud.backupdr.v1.NetworkConfig value) { @@ -3901,12 +3912,13 @@ public Builder addNetworks(com.google.cloud.backupdr.v1.NetworkConfig value) { * * *
-     * Required. VPC networks to which the ManagementServer instance is connected.
-     * For this version, only a single network is supported.
+     * Optional. VPC networks to which the ManagementServer instance is connected.
+     * For this version, only a single network is supported. This field is
+     * optional if MS is created without PSA
      * 
* * - * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addNetworks(int index, com.google.cloud.backupdr.v1.NetworkConfig value) { @@ -3926,12 +3938,13 @@ public Builder addNetworks(int index, com.google.cloud.backupdr.v1.NetworkConfig * * *
-     * Required. VPC networks to which the ManagementServer instance is connected.
-     * For this version, only a single network is supported.
+     * Optional. VPC networks to which the ManagementServer instance is connected.
+     * For this version, only a single network is supported. This field is
+     * optional if MS is created without PSA
      * 
* * - * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addNetworks(com.google.cloud.backupdr.v1.NetworkConfig.Builder builderForValue) { @@ -3948,12 +3961,13 @@ public Builder addNetworks(com.google.cloud.backupdr.v1.NetworkConfig.Builder bu * * *
-     * Required. VPC networks to which the ManagementServer instance is connected.
-     * For this version, only a single network is supported.
+     * Optional. VPC networks to which the ManagementServer instance is connected.
+     * For this version, only a single network is supported. This field is
+     * optional if MS is created without PSA
      * 
* * - * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addNetworks( @@ -3971,12 +3985,13 @@ public Builder addNetworks( * * *
-     * Required. VPC networks to which the ManagementServer instance is connected.
-     * For this version, only a single network is supported.
+     * Optional. VPC networks to which the ManagementServer instance is connected.
+     * For this version, only a single network is supported. This field is
+     * optional if MS is created without PSA
      * 
* * - * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder addAllNetworks( @@ -3994,12 +4009,13 @@ public Builder addAllNetworks( * * *
-     * Required. VPC networks to which the ManagementServer instance is connected.
-     * For this version, only a single network is supported.
+     * Optional. VPC networks to which the ManagementServer instance is connected.
+     * For this version, only a single network is supported. This field is
+     * optional if MS is created without PSA
      * 
* * - * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearNetworks() { @@ -4016,12 +4032,13 @@ public Builder clearNetworks() { * * *
-     * Required. VPC networks to which the ManagementServer instance is connected.
-     * For this version, only a single network is supported.
+     * Optional. VPC networks to which the ManagementServer instance is connected.
+     * For this version, only a single network is supported. This field is
+     * optional if MS is created without PSA
      * 
* * - * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder removeNetworks(int index) { @@ -4038,12 +4055,13 @@ public Builder removeNetworks(int index) { * * *
-     * Required. VPC networks to which the ManagementServer instance is connected.
-     * For this version, only a single network is supported.
+     * Optional. VPC networks to which the ManagementServer instance is connected.
+     * For this version, only a single network is supported. This field is
+     * optional if MS is created without PSA
      * 
* * - * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.backupdr.v1.NetworkConfig.Builder getNetworksBuilder(int index) { @@ -4053,12 +4071,13 @@ public com.google.cloud.backupdr.v1.NetworkConfig.Builder getNetworksBuilder(int * * *
-     * Required. VPC networks to which the ManagementServer instance is connected.
-     * For this version, only a single network is supported.
+     * Optional. VPC networks to which the ManagementServer instance is connected.
+     * For this version, only a single network is supported. This field is
+     * optional if MS is created without PSA
      * 
* * - * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.backupdr.v1.NetworkConfigOrBuilder getNetworksOrBuilder(int index) { @@ -4072,12 +4091,13 @@ public com.google.cloud.backupdr.v1.NetworkConfigOrBuilder getNetworksOrBuilder( * * *
-     * Required. VPC networks to which the ManagementServer instance is connected.
-     * For this version, only a single network is supported.
+     * Optional. VPC networks to which the ManagementServer instance is connected.
+     * For this version, only a single network is supported. This field is
+     * optional if MS is created without PSA
      * 
* * - * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List @@ -4092,12 +4112,13 @@ public com.google.cloud.backupdr.v1.NetworkConfigOrBuilder getNetworksOrBuilder( * * *
-     * Required. VPC networks to which the ManagementServer instance is connected.
-     * For this version, only a single network is supported.
+     * Optional. VPC networks to which the ManagementServer instance is connected.
+     * For this version, only a single network is supported. This field is
+     * optional if MS is created without PSA
      * 
* * - * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.backupdr.v1.NetworkConfig.Builder addNetworksBuilder() { @@ -4108,12 +4129,13 @@ public com.google.cloud.backupdr.v1.NetworkConfig.Builder addNetworksBuilder() { * * *
-     * Required. VPC networks to which the ManagementServer instance is connected.
-     * For this version, only a single network is supported.
+     * Optional. VPC networks to which the ManagementServer instance is connected.
+     * For this version, only a single network is supported. This field is
+     * optional if MS is created without PSA
      * 
* * - * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.backupdr.v1.NetworkConfig.Builder addNetworksBuilder(int index) { @@ -4124,12 +4146,13 @@ public com.google.cloud.backupdr.v1.NetworkConfig.Builder addNetworksBuilder(int * * *
-     * Required. VPC networks to which the ManagementServer instance is connected.
-     * For this version, only a single network is supported.
+     * Optional. VPC networks to which the ManagementServer instance is connected.
+     * For this version, only a single network is supported. This field is
+     * optional if MS is created without PSA
      * 
* * - * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ public java.util.List diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ManagementServerOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ManagementServerOrBuilder.java index 3052b7629b05..090ac4f1d96c 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ManagementServerOrBuilder.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ManagementServerOrBuilder.java @@ -381,12 +381,13 @@ java.lang.String getLabelsOrDefault( * * *
-   * Required. VPC networks to which the ManagementServer instance is connected.
-   * For this version, only a single network is supported.
+   * Optional. VPC networks to which the ManagementServer instance is connected.
+   * For this version, only a single network is supported. This field is
+   * optional if MS is created without PSA
    * 
* * - * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ java.util.List getNetworksList(); @@ -394,12 +395,13 @@ java.lang.String getLabelsOrDefault( * * *
-   * Required. VPC networks to which the ManagementServer instance is connected.
-   * For this version, only a single network is supported.
+   * Optional. VPC networks to which the ManagementServer instance is connected.
+   * For this version, only a single network is supported. This field is
+   * optional if MS is created without PSA
    * 
* * - * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.cloud.backupdr.v1.NetworkConfig getNetworks(int index); @@ -407,12 +409,13 @@ java.lang.String getLabelsOrDefault( * * *
-   * Required. VPC networks to which the ManagementServer instance is connected.
-   * For this version, only a single network is supported.
+   * Optional. VPC networks to which the ManagementServer instance is connected.
+   * For this version, only a single network is supported. This field is
+   * optional if MS is created without PSA
    * 
* * - * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ int getNetworksCount(); @@ -420,12 +423,13 @@ java.lang.String getLabelsOrDefault( * * *
-   * Required. VPC networks to which the ManagementServer instance is connected.
-   * For this version, only a single network is supported.
+   * Optional. VPC networks to which the ManagementServer instance is connected.
+   * For this version, only a single network is supported. This field is
+   * optional if MS is created without PSA
    * 
* * - * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ java.util.List @@ -434,12 +438,13 @@ java.lang.String getLabelsOrDefault( * * *
-   * Required. VPC networks to which the ManagementServer instance is connected.
-   * For this version, only a single network is supported.
+   * Optional. VPC networks to which the ManagementServer instance is connected.
+   * For this version, only a single network is supported. This field is
+   * optional if MS is created without PSA
    * 
* * - * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.backupdr.v1.NetworkConfig networks = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.cloud.backupdr.v1.NetworkConfigOrBuilder getNetworksOrBuilder(int index); diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/OperationMetadata.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/OperationMetadata.java index 4a33911a9f4c..f17570dca16f 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/OperationMetadata.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/OperationMetadata.java @@ -338,9 +338,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]; @@ -1806,9 +1807,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]; @@ -1825,9 +1827,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]; @@ -1848,9 +1851,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-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/OperationMetadataOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/OperationMetadataOrBuilder.java index f46167f5abb1..95c3a3ebf228 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/OperationMetadataOrBuilder.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/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-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/RuleConfigInfo.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/RuleConfigInfo.java index 10f7c3c2ec31..e89eab2a1433 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/RuleConfigInfo.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/RuleConfigInfo.java @@ -278,9 +278,7 @@ private LastBackupState(int value) { * * *
-   * Output only. Output Only.
-   *
-   * Backup Rule id fetched from backup plan.
+   * Output only. Backup Rule id fetched from backup plan.
    * 
* * string rule_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -303,9 +301,7 @@ public java.lang.String getRuleId() { * * *
-   * Output only. Output Only.
-   *
-   * Backup Rule id fetched from backup plan.
+   * Output only. Backup Rule id fetched from backup plan.
    * 
* * string rule_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -372,9 +368,7 @@ public com.google.cloud.backupdr.v1.RuleConfigInfo.LastBackupState getLastBackup * * *
-   * Output only. Output Only.
-   *
-   * google.rpc.Status object to store the last backup error.
+   * Output only. google.rpc.Status object to store the last backup error.
    * 
* * .google.rpc.Status last_backup_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -390,9 +384,7 @@ public boolean hasLastBackupError() { * * *
-   * Output only. Output Only.
-   *
-   * google.rpc.Status object to store the last backup error.
+   * Output only. google.rpc.Status object to store the last backup error.
    * 
* * .google.rpc.Status last_backup_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -408,9 +400,7 @@ public com.google.rpc.Status getLastBackupError() { * * *
-   * Output only. Output Only.
-   *
-   * google.rpc.Status object to store the last backup error.
+   * Output only. google.rpc.Status object to store the last backup error.
    * 
* * .google.rpc.Status last_backup_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -938,9 +928,7 @@ public Builder mergeFrom( * * *
-     * Output only. Output Only.
-     *
-     * Backup Rule id fetched from backup plan.
+     * Output only. Backup Rule id fetched from backup plan.
      * 
* * string rule_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -962,9 +950,7 @@ public java.lang.String getRuleId() { * * *
-     * Output only. Output Only.
-     *
-     * Backup Rule id fetched from backup plan.
+     * Output only. Backup Rule id fetched from backup plan.
      * 
* * string rule_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -986,9 +972,7 @@ public com.google.protobuf.ByteString getRuleIdBytes() { * * *
-     * Output only. Output Only.
-     *
-     * Backup Rule id fetched from backup plan.
+     * Output only. Backup Rule id fetched from backup plan.
      * 
* * string rule_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1009,9 +993,7 @@ public Builder setRuleId(java.lang.String value) { * * *
-     * Output only. Output Only.
-     *
-     * Backup Rule id fetched from backup plan.
+     * Output only. Backup Rule id fetched from backup plan.
      * 
* * string rule_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1028,9 +1010,7 @@ public Builder clearRuleId() { * * *
-     * Output only. Output Only.
-     *
-     * Backup Rule id fetched from backup plan.
+     * Output only. Backup Rule id fetched from backup plan.
      * 
* * string rule_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1160,9 +1140,7 @@ public Builder clearLastBackupState() { * * *
-     * Output only. Output Only.
-     *
-     * google.rpc.Status object to store the last backup error.
+     * Output only. google.rpc.Status object to store the last backup error.
      * 
* * .google.rpc.Status last_backup_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1177,9 +1155,7 @@ public boolean hasLastBackupError() { * * *
-     * Output only. Output Only.
-     *
-     * google.rpc.Status object to store the last backup error.
+     * Output only. google.rpc.Status object to store the last backup error.
      * 
* * .google.rpc.Status last_backup_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1200,9 +1176,7 @@ public com.google.rpc.Status getLastBackupError() { * * *
-     * Output only. Output Only.
-     *
-     * google.rpc.Status object to store the last backup error.
+     * Output only. google.rpc.Status object to store the last backup error.
      * 
* * .google.rpc.Status last_backup_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1225,9 +1199,7 @@ public Builder setLastBackupError(com.google.rpc.Status value) { * * *
-     * Output only. Output Only.
-     *
-     * google.rpc.Status object to store the last backup error.
+     * Output only. google.rpc.Status object to store the last backup error.
      * 
* * .google.rpc.Status last_backup_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1247,9 +1219,7 @@ public Builder setLastBackupError(com.google.rpc.Status.Builder builderForValue) * * *
-     * Output only. Output Only.
-     *
-     * google.rpc.Status object to store the last backup error.
+     * Output only. google.rpc.Status object to store the last backup error.
      * 
* * .google.rpc.Status last_backup_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1277,9 +1247,7 @@ public Builder mergeLastBackupError(com.google.rpc.Status value) { * * *
-     * Output only. Output Only.
-     *
-     * google.rpc.Status object to store the last backup error.
+     * Output only. google.rpc.Status object to store the last backup error.
      * 
* * .google.rpc.Status last_backup_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1299,9 +1267,7 @@ public Builder clearLastBackupError() { * * *
-     * Output only. Output Only.
-     *
-     * google.rpc.Status object to store the last backup error.
+     * Output only. google.rpc.Status object to store the last backup error.
      * 
* * .google.rpc.Status last_backup_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1316,9 +1282,7 @@ public com.google.rpc.Status.Builder getLastBackupErrorBuilder() { * * *
-     * Output only. Output Only.
-     *
-     * google.rpc.Status object to store the last backup error.
+     * Output only. google.rpc.Status object to store the last backup error.
      * 
* * .google.rpc.Status last_backup_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1337,9 +1301,7 @@ public com.google.rpc.StatusOrBuilder getLastBackupErrorOrBuilder() { * * *
-     * Output only. Output Only.
-     *
-     * google.rpc.Status object to store the last backup error.
+     * Output only. google.rpc.Status object to store the last backup error.
      * 
* * .google.rpc.Status last_backup_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/RuleConfigInfoOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/RuleConfigInfoOrBuilder.java index 0d88f5049324..1b27ccde8bb5 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/RuleConfigInfoOrBuilder.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/RuleConfigInfoOrBuilder.java @@ -28,9 +28,7 @@ public interface RuleConfigInfoOrBuilder * * *
-   * Output only. Output Only.
-   *
-   * Backup Rule id fetched from backup plan.
+   * Output only. Backup Rule id fetched from backup plan.
    * 
* * string rule_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -42,9 +40,7 @@ public interface RuleConfigInfoOrBuilder * * *
-   * Output only. Output Only.
-   *
-   * Backup Rule id fetched from backup plan.
+   * Output only. Backup Rule id fetched from backup plan.
    * 
* * string rule_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -86,9 +82,7 @@ public interface RuleConfigInfoOrBuilder * * *
-   * Output only. Output Only.
-   *
-   * google.rpc.Status object to store the last backup error.
+   * Output only. google.rpc.Status object to store the last backup error.
    * 
* * .google.rpc.Status last_backup_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -101,9 +95,7 @@ public interface RuleConfigInfoOrBuilder * * *
-   * Output only. Output Only.
-   *
-   * google.rpc.Status object to store the last backup error.
+   * Output only. google.rpc.Status object to store the last backup error.
    * 
* * .google.rpc.Status last_backup_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -116,9 +108,7 @@ public interface RuleConfigInfoOrBuilder * * *
-   * Output only. Output Only.
-   *
-   * google.rpc.Status object to store the last backup error.
+   * Output only. google.rpc.Status object to store the last backup error.
    * 
* * .google.rpc.Status last_backup_error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupdr.proto b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupdr.proto index d5ae643d6fff..a6fb23802c16 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupdr.proto +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupdr.proto @@ -348,6 +348,19 @@ service BackupDR { metadata_type: "OperationMetadata" }; } + + // Initializes the service related config for a project. + rpc InitializeService(InitializeServiceRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/serviceConfig}:initialize" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "InitializeServiceResponse" + metadata_type: "OperationMetadata" + }; + } } // Network configuration for ManagementServer instance. @@ -490,9 +503,10 @@ message ManagementServer { // Output only. The ManagementServer state. InstanceState state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Required. VPC networks to which the ManagementServer instance is connected. - // For this version, only a single network is supported. - repeated NetworkConfig networks = 8 [(google.api.field_behavior) = REQUIRED]; + // Optional. VPC networks to which the ManagementServer instance is connected. + // For this version, only a single network is supported. This field is + // optional if MS is created without PSA + repeated NetworkConfig networks = 8 [(google.api.field_behavior) = OPTIONAL]; // Optional. Server specified ETag for the ManagementServer resource to // prevent simultaneous updates from overwiting each other. @@ -645,6 +659,50 @@ message DeleteManagementServerRequest { string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; } +// Request message for initializing the service. +message InitializeServiceRequest { + // Required. The resource name of the serviceConfig used to initialize the + // service. Format: + // `projects/{project_id}/locations/{location}/serviceConfig`. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The resource type to which the default service config will be + // applied. Examples include, "compute.googleapis.com/Instance" and + // "storage.googleapis.com/Bucket". + string resource_type = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. 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. The server will + // guarantee that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and t + // he 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). + string request_id = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Response message for initializing the service. +message InitializeServiceResponse { + // The resource name of the default `BackupVault` created. + // Format: + // `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}`. + string backup_vault_name = 1; + + // The resource name of the default `BackupPlan` created. + // Format: + // `projects/{project_id}/locations/{location}/backupPlans/{backup_plan_id}`. + string backup_plan_name = 2; +} + // Represents the metadata of the long-running operation. message OperationMetadata { // Output only. The time the operation was created. @@ -666,9 +724,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-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupplan.proto b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupplan.proto index c64986bf3641..9b1624ab4c22 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupplan.proto +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupplan.proto @@ -97,8 +97,8 @@ message BackupPlan { State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. The resource type to which the `BackupPlan` will be applied. - // Examples include, "compute.googleapis.com/Instance" and - // "storage.googleapis.com/Bucket". + // Examples include, "compute.googleapis.com/Instance", + // "sqladmin.googleapis.com/Instance", or "alloydb.googleapis.com/Cluster". string resource_type = 8 [(google.api.field_behavior) = REQUIRED]; // Optional. `etag` is returned from the service in the response. As a user of @@ -137,10 +137,14 @@ message BackupRule { // Required. Configures the duration for which backup data will be kept. It is // defined in “days”. The value should be greater than or equal to minimum // enforced retention of the backup vault. + // + // Minimum value is 1 and maximum value is 90 for hourly backups. + // Minimum value is 1 and maximum value is 90 for daily backups. + // Minimum value is 7 and maximum value is 186 for weekly backups. + // Minimum value is 30 and maximum value is 732 for monthly backups. + // Minimum value is 365 and maximum value is 36159 for yearly backups. int32 backup_retention_days = 4 [(google.api.field_behavior) = REQUIRED]; - // Required. - // // The schedule that defines the automated backup workloads for this // `BackupRule`. oneof backup_schedule_oneof { diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupplanassociation.proto b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupplanassociation.proto index b807a2b916cd..98c21aa642c0 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupplanassociation.proto +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupplanassociation.proto @@ -66,8 +66,12 @@ message BackupPlanAssociation { (google.api.field_behavior) = OUTPUT_ONLY ]; - // Optional. Resource type of workload on which backupplan is applied - string resource_type = 2 [(google.api.field_behavior) = OPTIONAL]; + // Required. Immutable. Resource type of workload on which backupplan is + // applied + string resource_type = 2 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = REQUIRED + ]; // Required. Immutable. Resource name of workload on which backupplan is // applied @@ -101,11 +105,8 @@ message BackupPlanAssociation { repeated RuleConfigInfo rules_config_info = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Output Only. - // - // Resource name of data source which will be used as storage location for - // backups taken. - // Format : + // Output only. Resource name of data source which will be used as storage + // location for backups taken. Format : // projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource} string data_source = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; } @@ -131,18 +132,14 @@ message RuleConfigInfo { FAILED = 4; } - // Output only. Output Only. - // - // Backup Rule id fetched from backup plan. + // Output only. Backup Rule id fetched from backup plan. string rule_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The last backup state for rule. LastBackupState last_backup_state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Output Only. - // - // google.rpc.Status object to store the last backup error. + // Output only. google.rpc.Status object to store the last backup error. google.rpc.Status last_backup_error = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupvault.proto b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupvault.proto index f9b46b5bff04..277b4d8e1139 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupvault.proto +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupvault.proto @@ -63,7 +63,8 @@ message BackupVault { // Holds the access restriction for the backup vault. enum AccessRestriction { - // Access restriction not set. + // Access restriction not set. If user does not provide any value or pass + // this value, it will be changed to WITHIN_ORGANIZATION. ACCESS_RESTRICTION_UNSPECIFIED = 0; // Access to or from resources outside your current project will be denied. @@ -75,6 +76,10 @@ message BackupVault { // No access restriction. UNRESTRICTED = 3; + + // Access to or from resources outside your current organization will be + // denied except for backup appliance. + WITHIN_ORG_BUT_UNRESTRICTED_FOR_BA = 4; } // Output only. Identifier. Name of the backup vault to create. It must have @@ -134,8 +139,7 @@ message BackupVault { // Output only. Total size of the storage used by all backup resources. int64 total_stored_bytes = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Output only - // Immutable after resource creation until resource deletion. + // Output only. Immutable after resource creation until resource deletion. string uid = 21 [ (google.api.field_info).format = UUID4, (google.api.field_behavior) = OUTPUT_ONLY @@ -148,8 +152,6 @@ message BackupVault { // Optional. Note: This field is added for future use case and will not be // supported in the current release. // - // Optional. - // // Access restriction for the backup vault. // Default value is WITHIN_ORGANIZATION if not provided during creation. AccessRestriction access_restriction = 24 @@ -815,6 +817,11 @@ message DeleteBackupVaultRequest { // Optional. If true and the BackupVault is not found, the request will // succeed but no action will be taken. bool allow_missing = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set to true, backupvault deletion will proceed even if there + // are backup plans referencing the backupvault. The default is 'false'. + bool ignore_backup_plan_references = 7 + [(google.api.field_behavior) = OPTIONAL]; } // Request message for listing DataSources. diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deletebackupvault/AsyncDeleteBackupVault.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deletebackupvault/AsyncDeleteBackupVault.java index baa55c7d1792..eb17d0a1990e 100644 --- a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deletebackupvault/AsyncDeleteBackupVault.java +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deletebackupvault/AsyncDeleteBackupVault.java @@ -44,6 +44,7 @@ public static void asyncDeleteBackupVault() throws Exception { .setEtag("etag3123477") .setValidateOnly(true) .setAllowMissing(true) + .setIgnoreBackupPlanReferences(true) .build(); ApiFuture future = backupDRClient.deleteBackupVaultCallable().futureCall(request); // Do something. diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deletebackupvault/AsyncDeleteBackupVaultLRO.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deletebackupvault/AsyncDeleteBackupVaultLRO.java index 78b239242b4f..0712a1368b81 100644 --- a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deletebackupvault/AsyncDeleteBackupVaultLRO.java +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deletebackupvault/AsyncDeleteBackupVaultLRO.java @@ -45,6 +45,7 @@ public static void asyncDeleteBackupVaultLRO() throws Exception { .setEtag("etag3123477") .setValidateOnly(true) .setAllowMissing(true) + .setIgnoreBackupPlanReferences(true) .build(); OperationFuture future = backupDRClient.deleteBackupVaultOperationCallable().futureCall(request); diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deletebackupvault/SyncDeleteBackupVault.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deletebackupvault/SyncDeleteBackupVault.java index 6d984eeefbfd..0f8471536b7e 100644 --- a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deletebackupvault/SyncDeleteBackupVault.java +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/deletebackupvault/SyncDeleteBackupVault.java @@ -43,6 +43,7 @@ public static void syncDeleteBackupVault() throws Exception { .setEtag("etag3123477") .setValidateOnly(true) .setAllowMissing(true) + .setIgnoreBackupPlanReferences(true) .build(); backupDRClient.deleteBackupVaultAsync(request).get(); } diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/initializeservice/AsyncInitializeService.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/initializeservice/AsyncInitializeService.java new file mode 100644 index 000000000000..f3ad478f8d7b --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/initializeservice/AsyncInitializeService.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_InitializeService_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.InitializeServiceRequest; +import com.google.longrunning.Operation; + +public class AsyncInitializeService { + + public static void main(String[] args) throws Exception { + asyncInitializeService(); + } + + public static void asyncInitializeService() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + InitializeServiceRequest request = + InitializeServiceRequest.newBuilder() + .setName("name3373707") + .setResourceType("resourceType-384364440") + .setRequestId("requestId693933066") + .build(); + ApiFuture future = backupDRClient.initializeServiceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END backupdr_v1_generated_BackupDR_InitializeService_async] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/initializeservice/AsyncInitializeServiceLRO.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/initializeservice/AsyncInitializeServiceLRO.java new file mode 100644 index 000000000000..661ac3ea3785 --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/initializeservice/AsyncInitializeServiceLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_InitializeService_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.InitializeServiceRequest; +import com.google.cloud.backupdr.v1.InitializeServiceResponse; +import com.google.cloud.backupdr.v1.OperationMetadata; + +public class AsyncInitializeServiceLRO { + + public static void main(String[] args) throws Exception { + asyncInitializeServiceLRO(); + } + + public static void asyncInitializeServiceLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + InitializeServiceRequest request = + InitializeServiceRequest.newBuilder() + .setName("name3373707") + .setResourceType("resourceType-384364440") + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + backupDRClient.initializeServiceOperationCallable().futureCall(request); + // Do something. + InitializeServiceResponse response = future.get(); + } + } +} +// [END backupdr_v1_generated_BackupDR_InitializeService_LRO_async] diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/initializeservice/SyncInitializeService.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/initializeservice/SyncInitializeService.java new file mode 100644 index 000000000000..0d0b6b305216 --- /dev/null +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/initializeservice/SyncInitializeService.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.backupdr.v1.samples; + +// [START backupdr_v1_generated_BackupDR_InitializeService_sync] +import com.google.cloud.backupdr.v1.BackupDRClient; +import com.google.cloud.backupdr.v1.InitializeServiceRequest; +import com.google.cloud.backupdr.v1.InitializeServiceResponse; + +public class SyncInitializeService { + + public static void main(String[] args) throws Exception { + syncInitializeService(); + } + + public static void syncInitializeService() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BackupDRClient backupDRClient = BackupDRClient.create()) { + InitializeServiceRequest request = + InitializeServiceRequest.newBuilder() + .setName("name3373707") + .setResourceType("resourceType-384364440") + .setRequestId("requestId693933066") + .build(); + InitializeServiceResponse response = backupDRClient.initializeServiceAsync(request).get(); + } + } +} +// [END backupdr_v1_generated_BackupDR_InitializeService_sync] diff --git a/java-bare-metal-solution/README.md b/java-bare-metal-solution/README.md index 848df209b129..a6ec4a9400c8 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.52.0 + 26.53.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.55.0 + 0.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bare-metal-solution:0.55.0' +implementation 'com.google.cloud:google-cloud-bare-metal-solution:0.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bare-metal-solution" % "0.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bare-metal-solution" % "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-bare-metal-solution.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bare-metal-solution/0.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bare-metal-solution/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-batch/README.md b/java-batch/README.md index 6b702f57cd1a..6b2fef21cd78 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.52.0 + 26.53.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.55.0 + 0.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-batch:0.55.0' +implementation 'com.google.cloud:google-cloud-batch:0.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-batch" % "0.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-batch" % "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-batch.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/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-beyondcorp-appconnections/README.md b/java-beyondcorp-appconnections/README.md index 19868d32755d..229296ca4677 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.52.0 + 26.53.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.53.0 + 0.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appconnections:0.53.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appconnections:0.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnections" % "0.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnections" % "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-beyondcorp-appconnections.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnections/0.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnections/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-beyondcorp-appconnectors/README.md b/java-beyondcorp-appconnectors/README.md index afa09101a411..eaa5150f2c24 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.52.0 + 26.53.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.53.0 + 0.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appconnectors:0.53.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appconnectors:0.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnectors" % "0.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnectors" % "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-beyondcorp-appconnectors.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnectors/0.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnectors/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-beyondcorp-appgateways/README.md b/java-beyondcorp-appgateways/README.md index 95ae0e615e3b..cda45efc72b8 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.52.0 + 26.53.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.53.0 + 0.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appgateways:0.53.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appgateways:0.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appgateways" % "0.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appgateways" % "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-beyondcorp-appgateways.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appgateways/0.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appgateways/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-beyondcorp-clientconnectorservices/README.md b/java-beyondcorp-clientconnectorservices/README.md index 014e7d55a276..55adb101f914 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.52.0 + 26.53.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.53.0 + 0.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-clientconnectorservices:0.53.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-clientconnectorservices:0.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientconnectorservices" % "0.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientconnectorservices" % "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-beyondcorp-clientconnectorservices.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices/0.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices/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-beyondcorp-clientgateways/README.md b/java-beyondcorp-clientgateways/README.md index d24487825901..cb4b0165f852 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.52.0 + 26.53.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.53.0 + 0.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-clientgateways:0.53.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-clientgateways:0.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientgateways" % "0.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientgateways" % "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-beyondcorp-clientgateways.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientgateways/0.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientgateways/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-biglake/README.md b/java-biglake/README.md index d459fc4fc3ba..39b456314b0d 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.52.0 + 26.53.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.43.0 + 0.44.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-biglake:0.43.0' +implementation 'com.google.cloud:google-cloud-biglake:0.44.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-biglake" % "0.43.0" +libraryDependencies += "com.google.cloud" % "google-cloud-biglake" % "0.44.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.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake/0.44.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 79450e79f34d..87d1a004b8ec 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.52.0 + 26.53.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.50.0 + 2.51.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquery-data-exchange:2.50.0' +implementation 'com.google.cloud:google-cloud-bigquery-data-exchange:2.51.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquery-data-exchange" % "2.50.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquery-data-exchange" % "2.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-bigquery-data-exchange.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery-data-exchange/2.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery-data-exchange/2.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-bigqueryconnection/README.md b/java-bigqueryconnection/README.md index 8d6d0d63a244..b299ed1783ad 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.52.0 + 26.53.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.57.0 + 2.58.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigqueryconnection:2.57.0' +implementation 'com.google.cloud:google-cloud-bigqueryconnection:2.58.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryconnection" % "2.57.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryconnection" % "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-bigqueryconnection.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryconnection/2.57.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryconnection/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-bigquerydatapolicy/README.md b/java-bigquerydatapolicy/README.md index 3ddd18499d32..ec23f3b49ed6 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.52.0 + 26.53.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.52.0 + 0.53.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerydatapolicy:0.52.0' +implementation 'com.google.cloud:google-cloud-bigquerydatapolicy:0.53.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatapolicy" % "0.52.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatapolicy" % "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-bigquerydatapolicy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatapolicy/0.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatapolicy/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-bigquerydatatransfer/README.md b/java-bigquerydatatransfer/README.md index a4021d77237c..fb262cf318db 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.52.0 + 26.53.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.55.0 + 2.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerydatatransfer:2.55.0' +implementation 'com.google.cloud:google-cloud-bigquerydatatransfer:2.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "2.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "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-bigquerydatatransfer.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatatransfer/2.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatatransfer/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-bigquerymigration/README.md b/java-bigquerymigration/README.md index 4424c4647fd4..6b10d5f2c9ac 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.52.0 + 26.53.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.58.0 + 0.59.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerymigration:0.58.0' +implementation 'com.google.cloud:google-cloud-bigquerymigration:0.59.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerymigration" % "0.58.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerymigration" % "0.59.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.58.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerymigration/0.59.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 778a8324459f..056201599a96 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.52.0 + 26.53.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.56.0 + 2.57.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigqueryreservation:2.56.0' +implementation 'com.google.cloud:google-cloud-bigqueryreservation:2.57.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryreservation" % "2.56.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryreservation" % "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-bigqueryreservation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryreservation/2.56.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryreservation/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-billing/README.md b/java-billing/README.md index 96f7080feeeb..6567a4fff0b7 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.52.0 + 26.53.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.55.0 + 2.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-billing:2.55.0' +implementation 'com.google.cloud:google-cloud-billing:2.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-billing" % "2.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-billing" % "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-billing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billing/2.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billing/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-billingbudgets/README.md b/java-billingbudgets/README.md index 7dfd4adcaa99..6a29bfae53f0 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.52.0 + 26.53.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.55.0 + 2.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-billingbudgets:2.55.0' +implementation 'com.google.cloud:google-cloud-billingbudgets:2.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-billingbudgets" % "2.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-billingbudgets" % "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-billingbudgets.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billingbudgets/2.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billingbudgets/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-binary-authorization/README.md b/java-binary-authorization/README.md index 0c0fcb4c3d03..f72e766bb979 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.52.0 + 26.53.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.54.0 + 1.55.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-binary-authorization:1.54.0' +implementation 'com.google.cloud:google-cloud-binary-authorization:1.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-binary-authorization" % "1.54.0" +libraryDependencies += "com.google.cloud" % "google-cloud-binary-authorization" % "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-binary-authorization.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-binary-authorization/1.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-binary-authorization/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-certificate-manager/README.md b/java-certificate-manager/README.md index ce0aaf461649..6d7154ab002f 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.52.0 + 26.53.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.58.0 + 0.59.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-certificate-manager:0.58.0' +implementation 'com.google.cloud:google-cloud-certificate-manager:0.59.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-certificate-manager" % "0.58.0" +libraryDependencies += "com.google.cloud" % "google-cloud-certificate-manager" % "0.59.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.58.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-certificate-manager/0.59.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 280c0e914a70..ce115a231f85 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.52.0 + 26.53.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.59.0 + 3.60.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-channel:3.59.0' +implementation 'com.google.cloud:google-cloud-channel:3.60.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-channel" % "3.59.0" +libraryDependencies += "com.google.cloud" % "google-cloud-channel" % "3.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-channel.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-channel/3.59.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-channel/3.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-chat/README.md b/java-chat/README.md index 3f5dac4d26de..7925999ed5b8 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.52.0 + 26.53.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.19.0 + 0.20.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-chat:0.19.0' +implementation 'com.google.cloud:google-cloud-chat:0.20.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-chat" % "0.19.0" +libraryDependencies += "com.google.cloud" % "google-cloud-chat" % "0.20.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.19.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chat/0.20.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 e05c2d18fc2d..23a9dc6bb26c 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 @@ -520,7 +520,7 @@ * * *

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). + *

Creates a reaction and adds it to a message. 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.

@@ -561,7 +561,7 @@ * * *

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). + *

Deletes a reaction to a message. 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.

@@ -4285,8 +4285,7 @@ public final UnaryCallable deleteMembership // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a reaction and adds it to a message. Only unicode emojis are supported. For an example, - * see [Add a reaction to a + * Creates a reaction and adds it to a message. For an example, see [Add a reaction to a * message](https://developers.google.com/workspace/chat/create-reactions). * *

Requires [user @@ -4323,8 +4322,7 @@ public final Reaction createReaction(MessageName parent, Reaction reaction) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a reaction and adds it to a message. Only unicode emojis are supported. For an example, - * see [Add a reaction to a + * Creates a reaction and adds it to a message. For an example, see [Add a reaction to a * message](https://developers.google.com/workspace/chat/create-reactions). * *

Requires [user @@ -4358,8 +4356,7 @@ public final Reaction createReaction(String parent, Reaction reaction) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a reaction and adds it to a message. Only unicode emojis are supported. For an example, - * see [Add a reaction to a + * Creates a reaction and adds it to a message. For an example, see [Add a reaction to a * message](https://developers.google.com/workspace/chat/create-reactions). * *

Requires [user @@ -4392,8 +4389,7 @@ public final Reaction createReaction(CreateReactionRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a reaction and adds it to a message. Only unicode emojis are supported. For an example, - * see [Add a reaction to a + * Creates a reaction and adds it to a message. For an example, see [Add a reaction to a * message](https://developers.google.com/workspace/chat/create-reactions). * *

Requires [user @@ -4612,8 +4608,8 @@ 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). + * Deletes a reaction to a message. 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). @@ -4644,8 +4640,8 @@ 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). + * Deletes a reaction to a message. 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). @@ -4675,8 +4671,8 @@ 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). + * Deletes a reaction to a message. 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). @@ -4707,8 +4703,8 @@ 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). + * Deletes a reaction to a message. 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). 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 f493a17d1d1e..6662c0cc2b61 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 @@ -1691,6 +1691,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.chat.v1.CustomEmojiMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.CustomEmojiMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.chat.v1.DeleteMembershipRequest", "queryAllDeclaredConstructors": true, 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 4b7a128660f1..ca70d23dc1a3 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 @@ -1841,8 +1841,7 @@ default void deleteMembership( * * *

-     * Creates a reaction and adds it to a message. Only unicode emojis are
-     * supported. For an example, see
+     * Creates a reaction and adds it to a message. For an example, see
      * [Add a reaction to a
      * message](https://developers.google.com/workspace/chat/create-reactions).
      * Requires [user
@@ -1878,8 +1877,7 @@ default void listReactions(
      *
      *
      * 
-     * Deletes a reaction to a message. Only unicode emojis are supported.
-     * For an example, see
+     * Deletes a reaction to a message. For an example, see
      * [Delete a
      * reaction](https://developers.google.com/workspace/chat/delete-reactions).
      * Requires [user
@@ -2661,8 +2659,7 @@ public void deleteMembership(
      *
      *
      * 
-     * Creates a reaction and adds it to a message. Only unicode emojis are
-     * supported. For an example, see
+     * Creates a reaction and adds it to a message. For an example, see
      * [Add a reaction to a
      * message](https://developers.google.com/workspace/chat/create-reactions).
      * Requires [user
@@ -2702,8 +2699,7 @@ public void listReactions(
      *
      *
      * 
-     * Deletes a reaction to a message. Only unicode emojis are supported.
-     * For an example, see
+     * Deletes a reaction to a message. For an example, see
      * [Delete a
      * reaction](https://developers.google.com/workspace/chat/delete-reactions).
      * Requires [user
@@ -3419,8 +3415,7 @@ public com.google.chat.v1.Membership deleteMembership(
      *
      *
      * 
-     * Creates a reaction and adds it to a message. Only unicode emojis are
-     * supported. For an example, see
+     * Creates a reaction and adds it to a message. For an example, see
      * [Add a reaction to a
      * message](https://developers.google.com/workspace/chat/create-reactions).
      * Requires [user
@@ -3454,8 +3449,7 @@ public com.google.chat.v1.ListReactionsResponse listReactions(
      *
      *
      * 
-     * Deletes a reaction to a message. Only unicode emojis are supported.
-     * For an example, see
+     * Deletes a reaction to a message. For an example, see
      * [Delete a
      * reaction](https://developers.google.com/workspace/chat/delete-reactions).
      * Requires [user
@@ -4164,8 +4158,7 @@ public com.google.common.util.concurrent.ListenableFuture
-     * Creates a reaction and adds it to a message. Only unicode emojis are
-     * supported. For an example, see
+     * Creates a reaction and adds it to a message. For an example, see
      * [Add a reaction to a
      * message](https://developers.google.com/workspace/chat/create-reactions).
      * Requires [user
@@ -4200,8 +4193,7 @@ public com.google.common.util.concurrent.ListenableFuture
-     * Deletes a reaction to a message. Only unicode emojis are supported.
-     * For an example, see
+     * Deletes a reaction to a message. For an example, see
      * [Delete a
      * reaction](https://developers.google.com/workspace/chat/delete-reactions).
      * Requires [user
diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Annotation.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Annotation.java
index efd7102caf55..5fa3b9a2331b 100644
--- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Annotation.java
+++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Annotation.java
@@ -100,6 +100,7 @@ public enum MetadataCase
     USER_MENTION(4),
     SLASH_COMMAND(5),
     RICH_LINK_METADATA(6),
+    CUSTOM_EMOJI_METADATA(7),
     METADATA_NOT_SET(0);
     private final int value;
 
@@ -124,6 +125,8 @@ public static MetadataCase forNumber(int value) {
           return SLASH_COMMAND;
         case 6:
           return RICH_LINK_METADATA;
+        case 7:
+          return CUSTOM_EMOJI_METADATA;
         case 0:
           return METADATA_NOT_SET;
         default:
@@ -381,6 +384,57 @@ public com.google.chat.v1.RichLinkMetadataOrBuilder getRichLinkMetadataOrBuilder
     return com.google.chat.v1.RichLinkMetadata.getDefaultInstance();
   }
 
+  public static final int CUSTOM_EMOJI_METADATA_FIELD_NUMBER = 7;
+  /**
+   *
+   *
+   * 
+   * The metadata for a custom emoji.
+   * 
+ * + * .google.chat.v1.CustomEmojiMetadata custom_emoji_metadata = 7; + * + * @return Whether the customEmojiMetadata field is set. + */ + @java.lang.Override + public boolean hasCustomEmojiMetadata() { + return metadataCase_ == 7; + } + /** + * + * + *
+   * The metadata for a custom emoji.
+   * 
+ * + * .google.chat.v1.CustomEmojiMetadata custom_emoji_metadata = 7; + * + * @return The customEmojiMetadata. + */ + @java.lang.Override + public com.google.chat.v1.CustomEmojiMetadata getCustomEmojiMetadata() { + if (metadataCase_ == 7) { + return (com.google.chat.v1.CustomEmojiMetadata) metadata_; + } + return com.google.chat.v1.CustomEmojiMetadata.getDefaultInstance(); + } + /** + * + * + *
+   * The metadata for a custom emoji.
+   * 
+ * + * .google.chat.v1.CustomEmojiMetadata custom_emoji_metadata = 7; + */ + @java.lang.Override + public com.google.chat.v1.CustomEmojiMetadataOrBuilder getCustomEmojiMetadataOrBuilder() { + if (metadataCase_ == 7) { + return (com.google.chat.v1.CustomEmojiMetadata) metadata_; + } + return com.google.chat.v1.CustomEmojiMetadata.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -413,6 +467,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (metadataCase_ == 6) { output.writeMessage(6, (com.google.chat.v1.RichLinkMetadata) metadata_); } + if (metadataCase_ == 7) { + output.writeMessage(7, (com.google.chat.v1.CustomEmojiMetadata) metadata_); + } getUnknownFields().writeTo(output); } @@ -446,6 +503,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 6, (com.google.chat.v1.RichLinkMetadata) metadata_); } + if (metadataCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.chat.v1.CustomEmojiMetadata) metadata_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -478,6 +540,9 @@ public boolean equals(final java.lang.Object obj) { case 6: if (!getRichLinkMetadata().equals(other.getRichLinkMetadata())) return false; break; + case 7: + if (!getCustomEmojiMetadata().equals(other.getCustomEmojiMetadata())) return false; + break; case 0: default: } @@ -513,6 +578,10 @@ public int hashCode() { hash = (37 * hash) + RICH_LINK_METADATA_FIELD_NUMBER; hash = (53 * hash) + getRichLinkMetadata().hashCode(); break; + case 7: + hash = (37 * hash) + CUSTOM_EMOJI_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getCustomEmojiMetadata().hashCode(); + break; case 0: default: } @@ -691,6 +760,9 @@ public Builder clear() { if (richLinkMetadataBuilder_ != null) { richLinkMetadataBuilder_.clear(); } + if (customEmojiMetadataBuilder_ != null) { + customEmojiMetadataBuilder_.clear(); + } metadataCase_ = 0; metadata_ = null; return this; @@ -755,6 +827,9 @@ private void buildPartialOneofs(com.google.chat.v1.Annotation result) { if (metadataCase_ == 6 && richLinkMetadataBuilder_ != null) { result.metadata_ = richLinkMetadataBuilder_.build(); } + if (metadataCase_ == 7 && customEmojiMetadataBuilder_ != null) { + result.metadata_ = customEmojiMetadataBuilder_.build(); + } } @java.lang.Override @@ -827,6 +902,11 @@ public Builder mergeFrom(com.google.chat.v1.Annotation other) { mergeRichLinkMetadata(other.getRichLinkMetadata()); break; } + case CUSTOM_EMOJI_METADATA: + { + mergeCustomEmojiMetadata(other.getCustomEmojiMetadata()); + break; + } case METADATA_NOT_SET: { break; @@ -895,6 +975,13 @@ public Builder mergeFrom( metadataCase_ = 6; break; } // case 50 + case 58: + { + input.readMessage( + getCustomEmojiMetadataFieldBuilder().getBuilder(), extensionRegistry); + metadataCase_ = 7; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1769,6 +1856,215 @@ public com.google.chat.v1.RichLinkMetadataOrBuilder getRichLinkMetadataOrBuilder return richLinkMetadataBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.CustomEmojiMetadata, + com.google.chat.v1.CustomEmojiMetadata.Builder, + com.google.chat.v1.CustomEmojiMetadataOrBuilder> + customEmojiMetadataBuilder_; + /** + * + * + *
+     * The metadata for a custom emoji.
+     * 
+ * + * .google.chat.v1.CustomEmojiMetadata custom_emoji_metadata = 7; + * + * @return Whether the customEmojiMetadata field is set. + */ + @java.lang.Override + public boolean hasCustomEmojiMetadata() { + return metadataCase_ == 7; + } + /** + * + * + *
+     * The metadata for a custom emoji.
+     * 
+ * + * .google.chat.v1.CustomEmojiMetadata custom_emoji_metadata = 7; + * + * @return The customEmojiMetadata. + */ + @java.lang.Override + public com.google.chat.v1.CustomEmojiMetadata getCustomEmojiMetadata() { + if (customEmojiMetadataBuilder_ == null) { + if (metadataCase_ == 7) { + return (com.google.chat.v1.CustomEmojiMetadata) metadata_; + } + return com.google.chat.v1.CustomEmojiMetadata.getDefaultInstance(); + } else { + if (metadataCase_ == 7) { + return customEmojiMetadataBuilder_.getMessage(); + } + return com.google.chat.v1.CustomEmojiMetadata.getDefaultInstance(); + } + } + /** + * + * + *
+     * The metadata for a custom emoji.
+     * 
+ * + * .google.chat.v1.CustomEmojiMetadata custom_emoji_metadata = 7; + */ + public Builder setCustomEmojiMetadata(com.google.chat.v1.CustomEmojiMetadata value) { + if (customEmojiMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + customEmojiMetadataBuilder_.setMessage(value); + } + metadataCase_ = 7; + return this; + } + /** + * + * + *
+     * The metadata for a custom emoji.
+     * 
+ * + * .google.chat.v1.CustomEmojiMetadata custom_emoji_metadata = 7; + */ + public Builder setCustomEmojiMetadata( + com.google.chat.v1.CustomEmojiMetadata.Builder builderForValue) { + if (customEmojiMetadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + customEmojiMetadataBuilder_.setMessage(builderForValue.build()); + } + metadataCase_ = 7; + return this; + } + /** + * + * + *
+     * The metadata for a custom emoji.
+     * 
+ * + * .google.chat.v1.CustomEmojiMetadata custom_emoji_metadata = 7; + */ + public Builder mergeCustomEmojiMetadata(com.google.chat.v1.CustomEmojiMetadata value) { + if (customEmojiMetadataBuilder_ == null) { + if (metadataCase_ == 7 + && metadata_ != com.google.chat.v1.CustomEmojiMetadata.getDefaultInstance()) { + metadata_ = + com.google.chat.v1.CustomEmojiMetadata.newBuilder( + (com.google.chat.v1.CustomEmojiMetadata) metadata_) + .mergeFrom(value) + .buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + if (metadataCase_ == 7) { + customEmojiMetadataBuilder_.mergeFrom(value); + } else { + customEmojiMetadataBuilder_.setMessage(value); + } + } + metadataCase_ = 7; + return this; + } + /** + * + * + *
+     * The metadata for a custom emoji.
+     * 
+ * + * .google.chat.v1.CustomEmojiMetadata custom_emoji_metadata = 7; + */ + public Builder clearCustomEmojiMetadata() { + if (customEmojiMetadataBuilder_ == null) { + if (metadataCase_ == 7) { + metadataCase_ = 0; + metadata_ = null; + onChanged(); + } + } else { + if (metadataCase_ == 7) { + metadataCase_ = 0; + metadata_ = null; + } + customEmojiMetadataBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The metadata for a custom emoji.
+     * 
+ * + * .google.chat.v1.CustomEmojiMetadata custom_emoji_metadata = 7; + */ + public com.google.chat.v1.CustomEmojiMetadata.Builder getCustomEmojiMetadataBuilder() { + return getCustomEmojiMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The metadata for a custom emoji.
+     * 
+ * + * .google.chat.v1.CustomEmojiMetadata custom_emoji_metadata = 7; + */ + @java.lang.Override + public com.google.chat.v1.CustomEmojiMetadataOrBuilder getCustomEmojiMetadataOrBuilder() { + if ((metadataCase_ == 7) && (customEmojiMetadataBuilder_ != null)) { + return customEmojiMetadataBuilder_.getMessageOrBuilder(); + } else { + if (metadataCase_ == 7) { + return (com.google.chat.v1.CustomEmojiMetadata) metadata_; + } + return com.google.chat.v1.CustomEmojiMetadata.getDefaultInstance(); + } + } + /** + * + * + *
+     * The metadata for a custom emoji.
+     * 
+ * + * .google.chat.v1.CustomEmojiMetadata custom_emoji_metadata = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.CustomEmojiMetadata, + com.google.chat.v1.CustomEmojiMetadata.Builder, + com.google.chat.v1.CustomEmojiMetadataOrBuilder> + getCustomEmojiMetadataFieldBuilder() { + if (customEmojiMetadataBuilder_ == null) { + if (!(metadataCase_ == 7)) { + metadata_ = com.google.chat.v1.CustomEmojiMetadata.getDefaultInstance(); + } + customEmojiMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.CustomEmojiMetadata, + com.google.chat.v1.CustomEmojiMetadata.Builder, + com.google.chat.v1.CustomEmojiMetadataOrBuilder>( + (com.google.chat.v1.CustomEmojiMetadata) metadata_, + getParentForChildren(), + isClean()); + metadata_ = null; + } + metadataCase_ = 7; + onChanged(); + return customEmojiMetadataBuilder_; + } + @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/AnnotationOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AnnotationOrBuilder.java index 2af1f996835e..9e11f19b8fe3 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AnnotationOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AnnotationOrBuilder.java @@ -195,5 +195,40 @@ public interface AnnotationOrBuilder */ com.google.chat.v1.RichLinkMetadataOrBuilder getRichLinkMetadataOrBuilder(); + /** + * + * + *
+   * The metadata for a custom emoji.
+   * 
+ * + * .google.chat.v1.CustomEmojiMetadata custom_emoji_metadata = 7; + * + * @return Whether the customEmojiMetadata field is set. + */ + boolean hasCustomEmojiMetadata(); + /** + * + * + *
+   * The metadata for a custom emoji.
+   * 
+ * + * .google.chat.v1.CustomEmojiMetadata custom_emoji_metadata = 7; + * + * @return The customEmojiMetadata. + */ + com.google.chat.v1.CustomEmojiMetadata getCustomEmojiMetadata(); + /** + * + * + *
+   * The metadata for a custom emoji.
+   * 
+ * + * .google.chat.v1.CustomEmojiMetadata custom_emoji_metadata = 7; + */ + com.google.chat.v1.CustomEmojiMetadataOrBuilder getCustomEmojiMetadataOrBuilder(); + com.google.chat.v1.Annotation.MetadataCase getMetadataCase(); } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AnnotationProto.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AnnotationProto.java index 6e97c359da5c..d130dd715150 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AnnotationProto.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AnnotationProto.java @@ -44,6 +44,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_chat_v1_RichLinkMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_chat_v1_RichLinkMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_CustomEmojiMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_chat_v1_CustomEmojiMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_chat_v1_DriveLinkData_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -63,47 +67,52 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n\037google/chat/v1/annotation.proto\022\016googl" + "e.chat.v1\032\031google/api/resource.proto\032\037go" - + "ogle/chat/v1/attachment.proto\032\031google/ch" - + "at/v1/user.proto\"\274\002\n\nAnnotation\022,\n\004type\030" - + "\001 \001(\0162\036.google.chat.v1.AnnotationType\022\030\n" - + "\013start_index\030\002 \001(\005H\001\210\001\001\022\016\n\006length\030\003 \001(\005\022" - + ";\n\014user_mention\030\004 \001(\0132#.google.chat.v1.U" - + "serMentionMetadataH\000\022=\n\rslash_command\030\005 " - + "\001(\0132$.google.chat.v1.SlashCommandMetadat" - + "aH\000\022>\n\022rich_link_metadata\030\006 \001(\0132 .google" - + ".chat.v1.RichLinkMetadataH\000B\n\n\010metadataB" - + "\016\n\014_start_index\"\245\001\n\023UserMentionMetadata\022" - + "\"\n\004user\030\001 \001(\0132\024.google.chat.v1.User\0226\n\004t" - + "ype\030\002 \001(\0162(.google.chat.v1.UserMentionMe" - + "tadata.Type\"2\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020" - + "\000\022\007\n\003ADD\020\001\022\013\n\007MENTION\020\002\"\350\001\n\024SlashCommand" - + "Metadata\022!\n\003bot\030\001 \001(\0132\024.google.chat.v1.U" - + "ser\0227\n\004type\030\002 \001(\0162).google.chat.v1.Slash" - + "CommandMetadata.Type\022\024\n\014command_name\030\003 \001" - + "(\t\022\022\n\ncommand_id\030\004 \001(\003\022\027\n\017triggers_dialo" - + "g\030\005 \001(\010\"1\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\007\n" - + "\003ADD\020\001\022\n\n\006INVOKE\020\002\"\273\002\n\020RichLinkMetadata\022" - + "\013\n\003uri\030\001 \001(\t\022E\n\016rich_link_type\030\002 \001(\0162-.g" - + "oogle.chat.v1.RichLinkMetadata.RichLinkT" - + "ype\0228\n\017drive_link_data\030\003 \001(\0132\035.google.ch" - + "at.v1.DriveLinkDataH\000\022A\n\024chat_space_link" - + "_data\030\004 \001(\0132!.google.chat.v1.ChatSpaceLi" - + "nkDataH\000\"N\n\014RichLinkType\022\036\n\032RICH_LINK_TY" - + "PE_UNSPECIFIED\020\000\022\016\n\nDRIVE_FILE\020\001\022\016\n\nCHAT" - + "_SPACE\020\002B\006\n\004data\"X\n\rDriveLinkData\0224\n\016dri" - + "ve_data_ref\030\001 \001(\0132\034.google.chat.v1.Drive" - + "DataRef\022\021\n\tmime_type\030\002 \001(\t\"\246\001\n\021ChatSpace" - + "LinkData\022-\n\005space\030\001 \001(\tB\036\372A\033\n\031chat.googl" - + "eapis.com/Space\022/\n\006thread\030\002 \001(\tB\037\372A\034\n\032ch" - + "at.googleapis.com/Thread\0221\n\007message\030\003 \001(" - + "\tB \372A\035\n\033chat.googleapis.com/Message*e\n\016A" - + "nnotationType\022\037\n\033ANNOTATION_TYPE_UNSPECI" - + "FIED\020\000\022\020\n\014USER_MENTION\020\001\022\021\n\rSLASH_COMMAN" - + "D\020\002\022\r\n\tRICH_LINK\020\003B\250\001\n\022com.google.chat.v" - + "1B\017AnnotationProtoP\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" + + "ogle/chat/v1/attachment.proto\032\035google/ch" + + "at/v1/reaction.proto\032\031google/chat/v1/use" + + "r.proto\"\202\003\n\nAnnotation\022,\n\004type\030\001 \001(\0162\036.g" + + "oogle.chat.v1.AnnotationType\022\030\n\013start_in" + + "dex\030\002 \001(\005H\001\210\001\001\022\016\n\006length\030\003 \001(\005\022;\n\014user_m" + + "ention\030\004 \001(\0132#.google.chat.v1.UserMentio" + + "nMetadataH\000\022=\n\rslash_command\030\005 \001(\0132$.goo" + + "gle.chat.v1.SlashCommandMetadataH\000\022>\n\022ri" + + "ch_link_metadata\030\006 \001(\0132 .google.chat.v1." + + "RichLinkMetadataH\000\022D\n\025custom_emoji_metad" + + "ata\030\007 \001(\0132#.google.chat.v1.CustomEmojiMe" + + "tadataH\000B\n\n\010metadataB\016\n\014_start_index\"\245\001\n" + + "\023UserMentionMetadata\022\"\n\004user\030\001 \001(\0132\024.goo" + + "gle.chat.v1.User\0226\n\004type\030\002 \001(\0162(.google." + + "chat.v1.UserMentionMetadata.Type\"2\n\004Type" + + "\022\024\n\020TYPE_UNSPECIFIED\020\000\022\007\n\003ADD\020\001\022\013\n\007MENTI" + + "ON\020\002\"\350\001\n\024SlashCommandMetadata\022!\n\003bot\030\001 \001" + + "(\0132\024.google.chat.v1.User\0227\n\004type\030\002 \001(\0162)" + + ".google.chat.v1.SlashCommandMetadata.Typ" + + "e\022\024\n\014command_name\030\003 \001(\t\022\022\n\ncommand_id\030\004 " + + "\001(\003\022\027\n\017triggers_dialog\030\005 \001(\010\"1\n\004Type\022\024\n\020" + + "TYPE_UNSPECIFIED\020\000\022\007\n\003ADD\020\001\022\n\n\006INVOKE\020\002\"" + + "\273\002\n\020RichLinkMetadata\022\013\n\003uri\030\001 \001(\t\022E\n\016ric" + + "h_link_type\030\002 \001(\0162-.google.chat.v1.RichL" + + "inkMetadata.RichLinkType\0228\n\017drive_link_d" + + "ata\030\003 \001(\0132\035.google.chat.v1.DriveLinkData" + + "H\000\022A\n\024chat_space_link_data\030\004 \001(\0132!.googl" + + "e.chat.v1.ChatSpaceLinkDataH\000\"N\n\014RichLin" + + "kType\022\036\n\032RICH_LINK_TYPE_UNSPECIFIED\020\000\022\016\n" + + "\nDRIVE_FILE\020\001\022\016\n\nCHAT_SPACE\020\002B\006\n\004data\"H\n" + + "\023CustomEmojiMetadata\0221\n\014custom_emoji\030\001 \001" + + "(\0132\033.google.chat.v1.CustomEmoji\"X\n\rDrive" + + "LinkData\0224\n\016drive_data_ref\030\001 \001(\0132\034.googl" + + "e.chat.v1.DriveDataRef\022\021\n\tmime_type\030\002 \001(" + + "\t\"\246\001\n\021ChatSpaceLinkData\022-\n\005space\030\001 \001(\tB\036" + + "\372A\033\n\031chat.googleapis.com/Space\022/\n\006thread" + + "\030\002 \001(\tB\037\372A\034\n\032chat.googleapis.com/Thread\022" + + "1\n\007message\030\003 \001(\tB \372A\035\n\033chat.googleapis.c" + + "om/Message*w\n\016AnnotationType\022\037\n\033ANNOTATI" + + "ON_TYPE_UNSPECIFIED\020\000\022\020\n\014USER_MENTION\020\001\022" + + "\021\n\rSLASH_COMMAND\020\002\022\r\n\tRICH_LINK\020\003\022\020\n\014CUS" + + "TOM_EMOJI\020\004B\250\001\n\022com.google.chat.v1B\017Anno" + + "tationProtoP\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" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -111,6 +120,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.ResourceProto.getDescriptor(), com.google.chat.v1.AttachmentProto.getDescriptor(), + com.google.chat.v1.ReactionProto.getDescriptor(), com.google.chat.v1.UserProto.getDescriptor(), }); internal_static_google_chat_v1_Annotation_descriptor = getDescriptor().getMessageTypes().get(0); @@ -124,6 +134,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UserMention", "SlashCommand", "RichLinkMetadata", + "CustomEmojiMetadata", "Metadata", }); internal_static_google_chat_v1_UserMentionMetadata_descriptor = @@ -150,8 +161,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Uri", "RichLinkType", "DriveLinkData", "ChatSpaceLinkData", "Data", }); - internal_static_google_chat_v1_DriveLinkData_descriptor = + internal_static_google_chat_v1_CustomEmojiMetadata_descriptor = getDescriptor().getMessageTypes().get(4); + internal_static_google_chat_v1_CustomEmojiMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_chat_v1_CustomEmojiMetadata_descriptor, + new java.lang.String[] { + "CustomEmoji", + }); + internal_static_google_chat_v1_DriveLinkData_descriptor = + getDescriptor().getMessageTypes().get(5); internal_static_google_chat_v1_DriveLinkData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_chat_v1_DriveLinkData_descriptor, @@ -159,7 +178,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DriveDataRef", "MimeType", }); internal_static_google_chat_v1_ChatSpaceLinkData_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(6); internal_static_google_chat_v1_ChatSpaceLinkData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_chat_v1_ChatSpaceLinkData_descriptor, @@ -173,6 +192,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { descriptor, registry); com.google.api.ResourceProto.getDescriptor(); com.google.chat.v1.AttachmentProto.getDescriptor(); + com.google.chat.v1.ReactionProto.getDescriptor(); com.google.chat.v1.UserProto.getDescriptor(); } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AnnotationType.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AnnotationType.java index f79539161a84..86ec45c010df 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AnnotationType.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/AnnotationType.java @@ -69,6 +69,16 @@ public enum AnnotationType implements com.google.protobuf.ProtocolMessageEnum { * RICH_LINK = 3; */ RICH_LINK(3), + /** + * + * + *
+   * A custom emoji annotation.
+   * 
+ * + * CUSTOM_EMOJI = 4; + */ + CUSTOM_EMOJI(4), UNRECOGNIZED(-1), ; @@ -112,6 +122,16 @@ public enum AnnotationType implements com.google.protobuf.ProtocolMessageEnum { * RICH_LINK = 3; */ public static final int RICH_LINK_VALUE = 3; + /** + * + * + *
+   * A custom emoji annotation.
+   * 
+ * + * CUSTOM_EMOJI = 4; + */ + public static final int CUSTOM_EMOJI_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -145,6 +165,8 @@ public static AnnotationType forNumber(int value) { return SLASH_COMMAND; case 3: return RICH_LINK; + case 4: + return CUSTOM_EMOJI; default: return null; } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CustomEmojiMetadata.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CustomEmojiMetadata.java new file mode 100644 index 000000000000..78d0609e435e --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CustomEmojiMetadata.java @@ -0,0 +1,720 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/annotation.proto + +// Protobuf Java Version: 3.25.5 +package com.google.chat.v1; + +/** + * + * + *
+ * Annotation metadata for custom emoji.
+ * 
+ * + * Protobuf type {@code google.chat.v1.CustomEmojiMetadata} + */ +public final class CustomEmojiMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.CustomEmojiMetadata) + CustomEmojiMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomEmojiMetadata.newBuilder() to construct. + private CustomEmojiMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomEmojiMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CustomEmojiMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.AnnotationProto + .internal_static_google_chat_v1_CustomEmojiMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.AnnotationProto + .internal_static_google_chat_v1_CustomEmojiMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.CustomEmojiMetadata.class, + com.google.chat.v1.CustomEmojiMetadata.Builder.class); + } + + private int bitField0_; + public static final int CUSTOM_EMOJI_FIELD_NUMBER = 1; + private com.google.chat.v1.CustomEmoji customEmoji_; + /** + * + * + *
+   * The custom emoji.
+   * 
+ * + * .google.chat.v1.CustomEmoji custom_emoji = 1; + * + * @return Whether the customEmoji field is set. + */ + @java.lang.Override + public boolean hasCustomEmoji() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * The custom emoji.
+   * 
+ * + * .google.chat.v1.CustomEmoji custom_emoji = 1; + * + * @return The customEmoji. + */ + @java.lang.Override + public com.google.chat.v1.CustomEmoji getCustomEmoji() { + return customEmoji_ == null + ? com.google.chat.v1.CustomEmoji.getDefaultInstance() + : customEmoji_; + } + /** + * + * + *
+   * The custom emoji.
+   * 
+ * + * .google.chat.v1.CustomEmoji custom_emoji = 1; + */ + @java.lang.Override + public com.google.chat.v1.CustomEmojiOrBuilder getCustomEmojiOrBuilder() { + return customEmoji_ == null + ? com.google.chat.v1.CustomEmoji.getDefaultInstance() + : customEmoji_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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, getCustomEmoji()); + } + 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, getCustomEmoji()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.chat.v1.CustomEmojiMetadata)) { + return super.equals(obj); + } + com.google.chat.v1.CustomEmojiMetadata other = (com.google.chat.v1.CustomEmojiMetadata) obj; + + if (hasCustomEmoji() != other.hasCustomEmoji()) return false; + if (hasCustomEmoji()) { + if (!getCustomEmoji().equals(other.getCustomEmoji())) return false; + } + if (!getUnknownFields().equals(other.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 (hasCustomEmoji()) { + hash = (37 * hash) + CUSTOM_EMOJI_FIELD_NUMBER; + hash = (53 * hash) + getCustomEmoji().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.CustomEmojiMetadata parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.CustomEmojiMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.CustomEmojiMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.CustomEmojiMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.CustomEmojiMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.CustomEmojiMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.CustomEmojiMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.CustomEmojiMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.CustomEmojiMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.CustomEmojiMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.CustomEmojiMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.CustomEmojiMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.CustomEmojiMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Annotation metadata for custom emoji.
+   * 
+ * + * Protobuf type {@code google.chat.v1.CustomEmojiMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.CustomEmojiMetadata) + com.google.chat.v1.CustomEmojiMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.AnnotationProto + .internal_static_google_chat_v1_CustomEmojiMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.AnnotationProto + .internal_static_google_chat_v1_CustomEmojiMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.CustomEmojiMetadata.class, + com.google.chat.v1.CustomEmojiMetadata.Builder.class); + } + + // Construct using com.google.chat.v1.CustomEmojiMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCustomEmojiFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + customEmoji_ = null; + if (customEmojiBuilder_ != null) { + customEmojiBuilder_.dispose(); + customEmojiBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.AnnotationProto + .internal_static_google_chat_v1_CustomEmojiMetadata_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.CustomEmojiMetadata getDefaultInstanceForType() { + return com.google.chat.v1.CustomEmojiMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.CustomEmojiMetadata build() { + com.google.chat.v1.CustomEmojiMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.CustomEmojiMetadata buildPartial() { + com.google.chat.v1.CustomEmojiMetadata result = + new com.google.chat.v1.CustomEmojiMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.chat.v1.CustomEmojiMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.customEmoji_ = + customEmojiBuilder_ == null ? customEmoji_ : customEmojiBuilder_.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.chat.v1.CustomEmojiMetadata) { + return mergeFrom((com.google.chat.v1.CustomEmojiMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.CustomEmojiMetadata other) { + if (other == com.google.chat.v1.CustomEmojiMetadata.getDefaultInstance()) return this; + if (other.hasCustomEmoji()) { + mergeCustomEmoji(other.getCustomEmoji()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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(getCustomEmojiFieldBuilder().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.chat.v1.CustomEmoji customEmoji_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.CustomEmoji, + com.google.chat.v1.CustomEmoji.Builder, + com.google.chat.v1.CustomEmojiOrBuilder> + customEmojiBuilder_; + /** + * + * + *
+     * The custom emoji.
+     * 
+ * + * .google.chat.v1.CustomEmoji custom_emoji = 1; + * + * @return Whether the customEmoji field is set. + */ + public boolean hasCustomEmoji() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The custom emoji.
+     * 
+ * + * .google.chat.v1.CustomEmoji custom_emoji = 1; + * + * @return The customEmoji. + */ + public com.google.chat.v1.CustomEmoji getCustomEmoji() { + if (customEmojiBuilder_ == null) { + return customEmoji_ == null + ? com.google.chat.v1.CustomEmoji.getDefaultInstance() + : customEmoji_; + } else { + return customEmojiBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The custom emoji.
+     * 
+ * + * .google.chat.v1.CustomEmoji custom_emoji = 1; + */ + public Builder setCustomEmoji(com.google.chat.v1.CustomEmoji value) { + if (customEmojiBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customEmoji_ = value; + } else { + customEmojiBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The custom emoji.
+     * 
+ * + * .google.chat.v1.CustomEmoji custom_emoji = 1; + */ + public Builder setCustomEmoji(com.google.chat.v1.CustomEmoji.Builder builderForValue) { + if (customEmojiBuilder_ == null) { + customEmoji_ = builderForValue.build(); + } else { + customEmojiBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The custom emoji.
+     * 
+ * + * .google.chat.v1.CustomEmoji custom_emoji = 1; + */ + public Builder mergeCustomEmoji(com.google.chat.v1.CustomEmoji value) { + if (customEmojiBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && customEmoji_ != null + && customEmoji_ != com.google.chat.v1.CustomEmoji.getDefaultInstance()) { + getCustomEmojiBuilder().mergeFrom(value); + } else { + customEmoji_ = value; + } + } else { + customEmojiBuilder_.mergeFrom(value); + } + if (customEmoji_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * The custom emoji.
+     * 
+ * + * .google.chat.v1.CustomEmoji custom_emoji = 1; + */ + public Builder clearCustomEmoji() { + bitField0_ = (bitField0_ & ~0x00000001); + customEmoji_ = null; + if (customEmojiBuilder_ != null) { + customEmojiBuilder_.dispose(); + customEmojiBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The custom emoji.
+     * 
+ * + * .google.chat.v1.CustomEmoji custom_emoji = 1; + */ + public com.google.chat.v1.CustomEmoji.Builder getCustomEmojiBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCustomEmojiFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The custom emoji.
+     * 
+ * + * .google.chat.v1.CustomEmoji custom_emoji = 1; + */ + public com.google.chat.v1.CustomEmojiOrBuilder getCustomEmojiOrBuilder() { + if (customEmojiBuilder_ != null) { + return customEmojiBuilder_.getMessageOrBuilder(); + } else { + return customEmoji_ == null + ? com.google.chat.v1.CustomEmoji.getDefaultInstance() + : customEmoji_; + } + } + /** + * + * + *
+     * The custom emoji.
+     * 
+ * + * .google.chat.v1.CustomEmoji custom_emoji = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.CustomEmoji, + com.google.chat.v1.CustomEmoji.Builder, + com.google.chat.v1.CustomEmojiOrBuilder> + getCustomEmojiFieldBuilder() { + if (customEmojiBuilder_ == null) { + customEmojiBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.chat.v1.CustomEmoji, + com.google.chat.v1.CustomEmoji.Builder, + com.google.chat.v1.CustomEmojiOrBuilder>( + getCustomEmoji(), getParentForChildren(), isClean()); + customEmoji_ = null; + } + return customEmojiBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.CustomEmojiMetadata) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.CustomEmojiMetadata) + private static final com.google.chat.v1.CustomEmojiMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.CustomEmojiMetadata(); + } + + public static com.google.chat.v1.CustomEmojiMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomEmojiMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.CustomEmojiMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CustomEmojiMetadataOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CustomEmojiMetadataOrBuilder.java new file mode 100644 index 000000000000..0a048af9c3a0 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CustomEmojiMetadataOrBuilder.java @@ -0,0 +1,61 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/chat/v1/annotation.proto + +// Protobuf Java Version: 3.25.5 +package com.google.chat.v1; + +public interface CustomEmojiMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.CustomEmojiMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The custom emoji.
+   * 
+ * + * .google.chat.v1.CustomEmoji custom_emoji = 1; + * + * @return Whether the customEmoji field is set. + */ + boolean hasCustomEmoji(); + /** + * + * + *
+   * The custom emoji.
+   * 
+ * + * .google.chat.v1.CustomEmoji custom_emoji = 1; + * + * @return The customEmoji. + */ + com.google.chat.v1.CustomEmoji getCustomEmoji(); + /** + * + * + *
+   * The custom emoji.
+   * 
+ * + * .google.chat.v1.CustomEmoji custom_emoji = 1; + */ + com.google.chat.v1.CustomEmojiOrBuilder getCustomEmojiOrBuilder(); +} 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 d671b4da97dc..b4799c6536d3 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 @@ -182,12 +182,10 @@ public com.google.protobuf.ByteString getUnicodeBytes() { * * *
-   * Output only. A custom emoji.
+   * A custom emoji.
    * 
* - * - * .google.chat.v1.CustomEmoji custom_emoji = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.chat.v1.CustomEmoji custom_emoji = 2; * * @return Whether the customEmoji field is set. */ @@ -199,12 +197,10 @@ public boolean hasCustomEmoji() { * * *
-   * Output only. A custom emoji.
+   * A custom emoji.
    * 
* - * - * .google.chat.v1.CustomEmoji custom_emoji = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.chat.v1.CustomEmoji custom_emoji = 2; * * @return The customEmoji. */ @@ -219,12 +215,10 @@ public com.google.chat.v1.CustomEmoji getCustomEmoji() { * * *
-   * Output only. A custom emoji.
+   * A custom emoji.
    * 
* - * - * .google.chat.v1.CustomEmoji custom_emoji = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.chat.v1.CustomEmoji custom_emoji = 2; */ @java.lang.Override public com.google.chat.v1.CustomEmojiOrBuilder getCustomEmojiOrBuilder() { @@ -784,12 +778,10 @@ public Builder setUnicodeBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. A custom emoji.
+     * A custom emoji.
      * 
* - * - * .google.chat.v1.CustomEmoji custom_emoji = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.chat.v1.CustomEmoji custom_emoji = 2; * * @return Whether the customEmoji field is set. */ @@ -801,12 +793,10 @@ public boolean hasCustomEmoji() { * * *
-     * Output only. A custom emoji.
+     * A custom emoji.
      * 
* - * - * .google.chat.v1.CustomEmoji custom_emoji = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.chat.v1.CustomEmoji custom_emoji = 2; * * @return The customEmoji. */ @@ -828,12 +818,10 @@ public com.google.chat.v1.CustomEmoji getCustomEmoji() { * * *
-     * Output only. A custom emoji.
+     * A custom emoji.
      * 
* - * - * .google.chat.v1.CustomEmoji custom_emoji = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.chat.v1.CustomEmoji custom_emoji = 2; */ public Builder setCustomEmoji(com.google.chat.v1.CustomEmoji value) { if (customEmojiBuilder_ == null) { @@ -852,12 +840,10 @@ public Builder setCustomEmoji(com.google.chat.v1.CustomEmoji value) { * * *
-     * Output only. A custom emoji.
+     * A custom emoji.
      * 
* - * - * .google.chat.v1.CustomEmoji custom_emoji = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.chat.v1.CustomEmoji custom_emoji = 2; */ public Builder setCustomEmoji(com.google.chat.v1.CustomEmoji.Builder builderForValue) { if (customEmojiBuilder_ == null) { @@ -873,12 +859,10 @@ public Builder setCustomEmoji(com.google.chat.v1.CustomEmoji.Builder builderForV * * *
-     * Output only. A custom emoji.
+     * A custom emoji.
      * 
* - * - * .google.chat.v1.CustomEmoji custom_emoji = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.chat.v1.CustomEmoji custom_emoji = 2; */ public Builder mergeCustomEmoji(com.google.chat.v1.CustomEmoji value) { if (customEmojiBuilder_ == null) { @@ -905,12 +889,10 @@ public Builder mergeCustomEmoji(com.google.chat.v1.CustomEmoji value) { * * *
-     * Output only. A custom emoji.
+     * A custom emoji.
      * 
* - * - * .google.chat.v1.CustomEmoji custom_emoji = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.chat.v1.CustomEmoji custom_emoji = 2; */ public Builder clearCustomEmoji() { if (customEmojiBuilder_ == null) { @@ -932,12 +914,10 @@ public Builder clearCustomEmoji() { * * *
-     * Output only. A custom emoji.
+     * A custom emoji.
      * 
* - * - * .google.chat.v1.CustomEmoji custom_emoji = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.chat.v1.CustomEmoji custom_emoji = 2; */ public com.google.chat.v1.CustomEmoji.Builder getCustomEmojiBuilder() { return getCustomEmojiFieldBuilder().getBuilder(); @@ -946,12 +926,10 @@ public com.google.chat.v1.CustomEmoji.Builder getCustomEmojiBuilder() { * * *
-     * Output only. A custom emoji.
+     * A custom emoji.
      * 
* - * - * .google.chat.v1.CustomEmoji custom_emoji = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.chat.v1.CustomEmoji custom_emoji = 2; */ @java.lang.Override public com.google.chat.v1.CustomEmojiOrBuilder getCustomEmojiOrBuilder() { @@ -968,12 +946,10 @@ public com.google.chat.v1.CustomEmojiOrBuilder getCustomEmojiOrBuilder() { * * *
-     * Output only. A custom emoji.
+     * A custom emoji.
      * 
* - * - * .google.chat.v1.CustomEmoji custom_emoji = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.chat.v1.CustomEmoji custom_emoji = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.chat.v1.CustomEmoji, 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 4231449fb2ac..73b9e7f70aba 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 @@ -65,12 +65,10 @@ public interface EmojiOrBuilder * * *
-   * Output only. A custom emoji.
+   * A custom emoji.
    * 
* - * - * .google.chat.v1.CustomEmoji custom_emoji = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.chat.v1.CustomEmoji custom_emoji = 2; * * @return Whether the customEmoji field is set. */ @@ -79,12 +77,10 @@ public interface EmojiOrBuilder * * *
-   * Output only. A custom emoji.
+   * A custom emoji.
    * 
* - * - * .google.chat.v1.CustomEmoji custom_emoji = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.chat.v1.CustomEmoji custom_emoji = 2; * * @return The customEmoji. */ @@ -93,12 +89,10 @@ public interface EmojiOrBuilder * * *
-   * Output only. A custom emoji.
+   * A custom emoji.
    * 
* - * - * .google.chat.v1.CustomEmoji custom_emoji = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.chat.v1.CustomEmoji custom_emoji = 2; */ com.google.chat.v1.CustomEmojiOrBuilder getCustomEmojiOrBuilder(); 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 57147001a222..5fe23466c48a 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 @@ -78,29 +78,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "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" + + "{reaction}\"_\n\005Emoji\022\026\n\007unicode\030\001 \001(\tB\003\340A" + + "\001H\000\0223\n\014custom_emoji\030\002 \001(\0132\033.google.chat." + + "v1.CustomEmojiH\000B\t\n\007content\"\'\n\013CustomEmo" + + "ji\022\030\n\003uid\030\001 \001(\tB\013\340A\003\342\214\317\327\010\002\010\001\"v\n\024EmojiRea" + + "ctionSummary\022)\n\005emoji\030\001 \001(\0132\025.google.cha" + + "t.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\025CreateRe" + + "actionRequest\0224\n\006parent\030\001 \001(\tB$\340A\002\372A\036\022\034c" + + "hat.googleapis.com/Reaction\022/\n\010reaction\030" + + "\002 \001(\0132\030.google.chat.v1.ReactionB\003\340A\002\"\222\001\n" + + "\024ListReactionsRequest\0224\n\006parent\030\001 \001(\tB$\340" + + "A\002\372A\036\022\034chat.googleapis.com/Reaction\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\"]\n\025ListReactio" + + "nsResponse\022+\n\treactions\030\001 \003(\0132\030.google.c" + + "hat.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/ReactionB\246\001" + + "\n\022com.google.chat.v1B\rReactionProtoP\001Z,c" + + "loud.google.com/go/chat/apiv1/chatpb;cha" + + "tpb\242\002\013DYNAPIProto\252\002\023Google.Apps.Chat.V1\312" + + "\002\023Google\\Apps\\Chat\\V1\352\002\026Google::Apps::Ch" + + "at::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/annotation.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/annotation.proto index e7c721398445..4ebc23262a1c 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/annotation.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/annotation.proto @@ -18,6 +18,7 @@ package google.chat.v1; import "google/api/resource.proto"; import "google/chat/v1/attachment.proto"; +import "google/chat/v1/reaction.proto"; import "google/chat/v1/user.proto"; option csharp_namespace = "Google.Apps.Chat.V1"; @@ -78,6 +79,9 @@ message Annotation { // The metadata for a rich link. RichLinkMetadata rich_link_metadata = 6; + + // The metadata for a custom emoji. + CustomEmojiMetadata custom_emoji_metadata = 7; } } @@ -160,6 +164,12 @@ message RichLinkMetadata { } } +// Annotation metadata for custom emoji. +message CustomEmojiMetadata { + // The custom emoji. + CustomEmoji custom_emoji = 1; +} + // Data for Google Drive links. message DriveLinkData { // A @@ -207,4 +217,7 @@ enum AnnotationType { // A rich link annotation. RICH_LINK = 3; + + // A custom emoji annotation. + CUSTOM_EMOJI = 4; } 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 f051a885451a..03a3a9c43b78 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 @@ -611,8 +611,7 @@ service ChatService { option (google.api.method_signature) = "name"; } - // Creates a reaction and adds it to a message. Only unicode emojis are - // supported. For an example, see + // Creates a reaction and adds it to a message. For an example, see // [Add a reaction to a // message](https://developers.google.com/workspace/chat/create-reactions). // @@ -639,8 +638,7 @@ service ChatService { option (google.api.method_signature) = "parent"; } - // Deletes a reaction to a message. Only unicode emojis are supported. - // For an example, see + // Deletes a reaction to a message. For an example, see // [Delete a // reaction](https://developers.google.com/workspace/chat/delete-reactions). // 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 a08903bb1ef7..66f4195f6a89 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 @@ -56,8 +56,8 @@ message Emoji { // 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]; + // A custom emoji. + CustomEmoji custom_emoji = 2; } } diff --git a/java-cloudbuild/README.md b/java-cloudbuild/README.md index b6818bcf8fcb..e384e0474e1d 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.52.0 + 26.53.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.57.0 + 3.58.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-build:3.57.0' +implementation 'com.google.cloud:google-cloud-build:3.58.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-build" % "3.57.0" +libraryDependencies += "com.google.cloud" % "google-cloud-build" % "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-build.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-build/3.57.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-build/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-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptions.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptions.java index 5e80bbf91175..875663f6eb73 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptions.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptions.java @@ -2624,6 +2624,26 @@ public int getDefaultLogsBucketBehaviorValue() { : result; } + public static final int ENABLE_STRUCTURED_LOGGING_FIELD_NUMBER = 23; + private boolean enableStructuredLogging_ = false; + /** + * + * + *
+   * Optional. Option to specify whether structured logging is enabled.
+   *
+   * If true, JSON-formatted logs are parsed as structured logs.
+   * 
+ * + * bool enable_structured_logging = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableStructuredLogging. + */ + @java.lang.Override + public boolean getEnableStructuredLogging() { + return enableStructuredLogging_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2695,6 +2715,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (automapSubstitutions_ != false) { output.writeBool(22, automapSubstitutions_); } + if (enableStructuredLogging_ != false) { + output.writeBool(23, enableStructuredLogging_); + } getUnknownFields().writeTo(output); } @@ -2777,6 +2800,9 @@ public int getSerializedSize() { if (automapSubstitutions_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(22, automapSubstitutions_); } + if (enableStructuredLogging_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(23, enableStructuredLogging_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2810,6 +2836,7 @@ public boolean equals(final java.lang.Object obj) { if (!getSecretEnvList().equals(other.getSecretEnvList())) return false; if (!getVolumesList().equals(other.getVolumesList())) return false; if (defaultLogsBucketBehavior_ != other.defaultLogsBucketBehavior_) return false; + if (getEnableStructuredLogging() != other.getEnableStructuredLogging()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2861,6 +2888,8 @@ public int hashCode() { } hash = (37 * hash) + DEFAULT_LOGS_BUCKET_BEHAVIOR_FIELD_NUMBER; hash = (53 * hash) + defaultLogsBucketBehavior_; + hash = (37 * hash) + ENABLE_STRUCTURED_LOGGING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableStructuredLogging()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -3035,6 +3064,7 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00002000); defaultLogsBucketBehavior_ = 0; + enableStructuredLogging_ = false; return this; } @@ -3132,6 +3162,9 @@ private void buildPartial0(com.google.cloudbuild.v1.BuildOptions result) { if (((from_bitField0_ & 0x00004000) != 0)) { result.defaultLogsBucketBehavior_ = defaultLogsBucketBehavior_; } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.enableStructuredLogging_ = enableStructuredLogging_; + } result.bitField0_ |= to_bitField0_; } @@ -3272,6 +3305,9 @@ public Builder mergeFrom(com.google.cloudbuild.v1.BuildOptions other) { if (other.defaultLogsBucketBehavior_ != 0) { setDefaultLogsBucketBehaviorValue(other.getDefaultLogsBucketBehaviorValue()); } + if (other.getEnableStructuredLogging() != false) { + setEnableStructuredLogging(other.getEnableStructuredLogging()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3409,6 +3445,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 176 + case 184: + { + enableStructuredLogging_ = input.readBool(); + bitField0_ |= 0x00008000; + break; + } // case 184 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5741,6 +5783,65 @@ public Builder clearDefaultLogsBucketBehavior() { return this; } + private boolean enableStructuredLogging_; + /** + * + * + *
+     * Optional. Option to specify whether structured logging is enabled.
+     *
+     * If true, JSON-formatted logs are parsed as structured logs.
+     * 
+ * + * bool enable_structured_logging = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableStructuredLogging. + */ + @java.lang.Override + public boolean getEnableStructuredLogging() { + return enableStructuredLogging_; + } + /** + * + * + *
+     * Optional. Option to specify whether structured logging is enabled.
+     *
+     * If true, JSON-formatted logs are parsed as structured logs.
+     * 
+ * + * bool enable_structured_logging = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enableStructuredLogging to set. + * @return This builder for chaining. + */ + public Builder setEnableStructuredLogging(boolean value) { + + enableStructuredLogging_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Option to specify whether structured logging is enabled.
+     *
+     * If true, JSON-formatted logs are parsed as structured logs.
+     * 
+ * + * bool enable_structured_logging = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnableStructuredLogging() { + bitField0_ = (bitField0_ & ~0x00008000); + enableStructuredLogging_ = 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-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptionsOrBuilder.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptionsOrBuilder.java index d66ff18ac95c..675fe8fba56a 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptionsOrBuilder.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptionsOrBuilder.java @@ -616,4 +616,19 @@ public interface BuildOptionsOrBuilder * @return The defaultLogsBucketBehavior. */ com.google.cloudbuild.v1.BuildOptions.DefaultLogsBucketBehavior getDefaultLogsBucketBehavior(); + + /** + * + * + *
+   * Optional. Option to specify whether structured logging is enabled.
+   *
+   * If true, JSON-formatted logs are parsed as structured logs.
+   * 
+ * + * bool enable_structured_logging = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableStructuredLogging. + */ + boolean getEnableStructuredLogging(); } diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Cloudbuild.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Cloudbuild.java index 7737c1acc501..d0c5f685ba5f 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Cloudbuild.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Cloudbuild.java @@ -742,7 +742,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027\n\ntrigger_id\030\002 \001(\tB\003\340A\002\022A\n\007trigger\030\003 \001(" + "\0132+.google.devtools.cloudbuild.v1.BuildT" + "riggerB\003\340A\002\022/\n\013update_mask\030\005 \001(\0132\032.googl" - + "e.protobuf.FieldMask\"\372\013\n\014BuildOptions\022L\n" + + "e.protobuf.FieldMask\"\242\014\n\014BuildOptions\022L\n" + "\026source_provenance_hash\030\001 \003(\0162,.google.d" + "evtools.cloudbuild.v1.Hash.HashType\022Y\n\027r" + "equested_verify_option\030\002 \001(\01628.google.de" @@ -765,7 +765,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "loudbuild.v1.Volume\022p\n\034default_logs_buck" + "et_behavior\030\025 \001(\0162E.google.devtools.clou" + "dbuild.v1.BuildOptions.DefaultLogsBucket" - + "BehaviorB\003\340A\001\032E\n\nPoolOption\0227\n\004name\030\001 \001(" + + "BehaviorB\003\340A\001\022&\n\031enable_structured_loggi" + + "ng\030\027 \001(\010B\003\340A\001\032E\n\nPoolOption\0227\n\004name\030\001 \001(" + "\tB)\372A&\n$cloudbuild.googleapis.com/Worker" + "Pool\".\n\014VerifyOption\022\020\n\014NOT_VERIFIED\020\000\022\014" + "\n\010VERIFIED\020\001\"w\n\013MachineType\022\017\n\013UNSPECIFI" @@ -779,9 +780,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_ONLY\020\002\022\030\n\020STACKDRIVER_ONLY\020\003\032\002\010\001\022\026\n\022CLO" + "UD_LOGGING_ONLY\020\005\022\010\n\004NONE\020\004\"|\n\031DefaultLo" + "gsBucketBehavior\022,\n(DEFAULT_LOGS_BUCKET_" - + "BEHAVIOR_UNSPECIFIED\020\000\022\036\n\032REGIONAL_USER_" - + "OWNED_BUCKET\020\001\022\021\n\rLEGACY_BUCKET\020\002\"\205\001\n\034Re", - "ceiveTriggerWebhookRequest\022\014\n\004name\030\005 \001(\t" + + "BEHAVIOR_UNSPECIFIED\020\000\022\036\n\032REGIONAL_USER_", + "OWNED_BUCKET\020\001\022\021\n\rLEGACY_BUCKET\020\002\"\205\001\n\034Re" + + "ceiveTriggerWebhookRequest\022\014\n\004name\030\005 \001(\t" + "\022\"\n\004body\030\001 \001(\0132\024.google.api.HttpBody\022\022\n\n" + "project_id\030\002 \001(\t\022\017\n\007trigger\030\003 \001(\t\022\016\n\006sec" + "ret\030\004 \001(\t\"\037\n\035ReceiveTriggerWebhookRespon" @@ -1723,6 +1724,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SecretEnv", "Volumes", "DefaultLogsBucketBehavior", + "EnableStructuredLogging", }); internal_static_google_devtools_cloudbuild_v1_BuildOptions_PoolOption_descriptor = internal_static_google_devtools_cloudbuild_v1_BuildOptions_descriptor diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/proto/google/devtools/cloudbuild/v1/cloudbuild.proto b/java-cloudbuild/proto-google-cloud-build-v1/src/main/proto/google/devtools/cloudbuild/v1/cloudbuild.proto index 7c69fa7a8be2..efe98627bbe4 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/proto/google/devtools/cloudbuild/v1/cloudbuild.proto +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/proto/google/devtools/cloudbuild/v1/cloudbuild.proto @@ -2388,6 +2388,11 @@ message BuildOptions { // Optional. Option to specify how default logs buckets are setup. DefaultLogsBucketBehavior default_logs_bucket_behavior = 21 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Option to specify whether structured logging is enabled. + // + // If true, JSON-formatted logs are parsed as structured logs. + bool enable_structured_logging = 23 [(google.api.field_behavior) = OPTIONAL]; } // ReceiveTriggerWebhookRequest [Experimental] is the request object accepted by diff --git a/java-cloudcommerceconsumerprocurement/README.md b/java-cloudcommerceconsumerprocurement/README.md index d0d4c6392e86..9d6a77350263 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.52.0 + 26.53.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.53.0 + 0.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudcommerceconsumerprocurement:0.53.0' +implementation 'com.google.cloud:google-cloud-cloudcommerceconsumerprocurement:0.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudcommerceconsumerprocurement" % "0.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudcommerceconsumerprocurement" % "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-cloudcommerceconsumerprocurement.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement/0.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement/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-cloudcontrolspartner/README.md b/java-cloudcontrolspartner/README.md index b98a6c62bc62..8deeeb88d91a 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.52.0 + 26.53.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.19.0 + 0.20.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudcontrolspartner:0.19.0' +implementation 'com.google.cloud:google-cloud-cloudcontrolspartner:0.20.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudcontrolspartner" % "0.19.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudcontrolspartner" % "0.20.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.19.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcontrolspartner/0.20.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/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreClient.java b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreClient.java index 61a679003cc3..874cda3ea6ba 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreClient.java +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreClient.java @@ -28,6 +28,8 @@ import com.google.cloud.cloudcontrolspartner.v1beta.stub.CloudControlsPartnerCoreStub; import com.google.cloud.cloudcontrolspartner.v1beta.stub.CloudControlsPartnerCoreStubSettings; import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -220,6 +222,62 @@ * * * + * + *

CreateCustomer + *

Creates a new customer. + * + *

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

+ *
    + *
  • createCustomer(CreateCustomerRequest request) + *

+ *

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

+ *
    + *
  • createCustomer(OrganizationLocationName parent, Customer customer, String customerId) + *

  • createCustomer(String parent, Customer customer, String customerId) + *

+ *

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

+ *
    + *
  • createCustomerCallable() + *

+ * + * + * + *

UpdateCustomer + *

Update details of a single customer + * + *

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

+ *
    + *
  • updateCustomer(UpdateCustomerRequest request) + *

+ *

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

+ *
    + *
  • updateCustomer(Customer customer, 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.

+ *
    + *
  • updateCustomerCallable() + *

+ * + * + * + *

DeleteCustomer + *

Delete details of a single customer + * + *

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

+ *
    + *
  • deleteCustomer(DeleteCustomerRequest request) + *

+ *

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

+ *
    + *
  • deleteCustomer(CustomerName name) + *

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

+ *
    + *
  • deleteCustomerCallable() + *

+ * + * * * *

See the individual methods for example code. @@ -1495,6 +1553,355 @@ public final UnaryCallable getPartnerCallable() { return stub.getPartnerCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new customer. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
+   *     CloudControlsPartnerCoreClient.create()) {
+   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+   *   Customer customer = Customer.newBuilder().build();
+   *   String customerId = "customerId-1581184615";
+   *   Customer response =
+   *       cloudControlsPartnerCoreClient.createCustomer(parent, customer, customerId);
+   * }
+   * }
+ * + * @param parent Required. Parent resource Format: + * `organizations/{organization}/locations/{location}` + * @param customer Required. The customer to create. + * @param customerId Required. The customer id to use for the customer, which will become the + * final component of the customer's resource name. The specified value must be a valid Google + * cloud organization id. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Customer createCustomer( + OrganizationLocationName parent, Customer customer, String customerId) { + CreateCustomerRequest request = + CreateCustomerRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setCustomer(customer) + .setCustomerId(customerId) + .build(); + return createCustomer(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new customer. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
+   *     CloudControlsPartnerCoreClient.create()) {
+   *   String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString();
+   *   Customer customer = Customer.newBuilder().build();
+   *   String customerId = "customerId-1581184615";
+   *   Customer response =
+   *       cloudControlsPartnerCoreClient.createCustomer(parent, customer, customerId);
+   * }
+   * }
+ * + * @param parent Required. Parent resource Format: + * `organizations/{organization}/locations/{location}` + * @param customer Required. The customer to create. + * @param customerId Required. The customer id to use for the customer, which will become the + * final component of the customer's resource name. The specified value must be a valid Google + * cloud organization id. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Customer createCustomer(String parent, Customer customer, String customerId) { + CreateCustomerRequest request = + CreateCustomerRequest.newBuilder() + .setParent(parent) + .setCustomer(customer) + .setCustomerId(customerId) + .build(); + return createCustomer(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new customer. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
+   *     CloudControlsPartnerCoreClient.create()) {
+   *   CreateCustomerRequest request =
+   *       CreateCustomerRequest.newBuilder()
+   *           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
+   *           .setCustomer(Customer.newBuilder().build())
+   *           .setCustomerId("customerId-1581184615")
+   *           .build();
+   *   Customer response = cloudControlsPartnerCoreClient.createCustomer(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 Customer createCustomer(CreateCustomerRequest request) { + return createCustomerCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new customer. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
+   *     CloudControlsPartnerCoreClient.create()) {
+   *   CreateCustomerRequest request =
+   *       CreateCustomerRequest.newBuilder()
+   *           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
+   *           .setCustomer(Customer.newBuilder().build())
+   *           .setCustomerId("customerId-1581184615")
+   *           .build();
+   *   ApiFuture future =
+   *       cloudControlsPartnerCoreClient.createCustomerCallable().futureCall(request);
+   *   // Do something.
+   *   Customer response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createCustomerCallable() { + return stub.createCustomerCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update details of a single customer + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
+   *     CloudControlsPartnerCoreClient.create()) {
+   *   Customer customer = Customer.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Customer response = cloudControlsPartnerCoreClient.updateCustomer(customer, updateMask);
+   * }
+   * }
+ * + * @param customer Required. The customer to update Format: + * `organizations/{organization}/locations/{location}/customers/{customer}` + * @param updateMask Optional. The list of fields to update + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Customer updateCustomer(Customer customer, FieldMask updateMask) { + UpdateCustomerRequest request = + UpdateCustomerRequest.newBuilder().setCustomer(customer).setUpdateMask(updateMask).build(); + return updateCustomer(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update details of a single customer + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
+   *     CloudControlsPartnerCoreClient.create()) {
+   *   UpdateCustomerRequest request =
+   *       UpdateCustomerRequest.newBuilder()
+   *           .setCustomer(Customer.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Customer response = cloudControlsPartnerCoreClient.updateCustomer(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 Customer updateCustomer(UpdateCustomerRequest request) { + return updateCustomerCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update details of a single customer + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
+   *     CloudControlsPartnerCoreClient.create()) {
+   *   UpdateCustomerRequest request =
+   *       UpdateCustomerRequest.newBuilder()
+   *           .setCustomer(Customer.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       cloudControlsPartnerCoreClient.updateCustomerCallable().futureCall(request);
+   *   // Do something.
+   *   Customer response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateCustomerCallable() { + return stub.updateCustomerCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete details of a single customer + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
+   *     CloudControlsPartnerCoreClient.create()) {
+   *   CustomerName name = CustomerName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]");
+   *   cloudControlsPartnerCoreClient.deleteCustomer(name);
+   * }
+   * }
+ * + * @param name Required. name of the resource to be deleted format: + * name=organizations/*/locations/*/customers/* + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteCustomer(CustomerName name) { + DeleteCustomerRequest request = + DeleteCustomerRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteCustomer(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete details of a single customer + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
+   *     CloudControlsPartnerCoreClient.create()) {
+   *   String name = CustomerName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]").toString();
+   *   cloudControlsPartnerCoreClient.deleteCustomer(name);
+   * }
+   * }
+ * + * @param name Required. name of the resource to be deleted format: + * name=organizations/*/locations/*/customers/* + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteCustomer(String name) { + DeleteCustomerRequest request = DeleteCustomerRequest.newBuilder().setName(name).build(); + deleteCustomer(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete details of a single customer + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
+   *     CloudControlsPartnerCoreClient.create()) {
+   *   DeleteCustomerRequest request =
+   *       DeleteCustomerRequest.newBuilder()
+   *           .setName(CustomerName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]").toString())
+   *           .build();
+   *   cloudControlsPartnerCoreClient.deleteCustomer(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 void deleteCustomer(DeleteCustomerRequest request) { + deleteCustomerCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete details of a single customer + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
+   *     CloudControlsPartnerCoreClient.create()) {
+   *   DeleteCustomerRequest request =
+   *       DeleteCustomerRequest.newBuilder()
+   *           .setName(CustomerName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       cloudControlsPartnerCoreClient.deleteCustomerCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteCustomerCallable() { + return stub.deleteCustomerCallable(); + } + @Override public final void close() { stub.close(); diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreSettings.java b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreSettings.java index d23c7896235d..e1580300c21d 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreSettings.java +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreSettings.java @@ -33,6 +33,7 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.cloudcontrolspartner.v1beta.stub.CloudControlsPartnerCoreStubSettings; +import com.google.protobuf.Empty; import java.io.IOException; import java.util.List; import javax.annotation.Generated; @@ -148,6 +149,21 @@ public UnaryCallSettings getPartnerSettings() { return ((CloudControlsPartnerCoreStubSettings) getStubSettings()).getPartnerSettings(); } + /** Returns the object with the settings used for calls to createCustomer. */ + public UnaryCallSettings createCustomerSettings() { + return ((CloudControlsPartnerCoreStubSettings) getStubSettings()).createCustomerSettings(); + } + + /** Returns the object with the settings used for calls to updateCustomer. */ + public UnaryCallSettings updateCustomerSettings() { + return ((CloudControlsPartnerCoreStubSettings) getStubSettings()).updateCustomerSettings(); + } + + /** Returns the object with the settings used for calls to deleteCustomer. */ + public UnaryCallSettings deleteCustomerSettings() { + return ((CloudControlsPartnerCoreStubSettings) getStubSettings()).deleteCustomerSettings(); + } + public static final CloudControlsPartnerCoreSettings create( CloudControlsPartnerCoreStubSettings stub) throws IOException { return new CloudControlsPartnerCoreSettings.Builder(stub.toBuilder()).build(); @@ -316,6 +332,21 @@ public UnaryCallSettings.Builder getPartnerSettings( return getStubSettingsBuilder().getPartnerSettings(); } + /** Returns the builder for the settings used for calls to createCustomer. */ + public UnaryCallSettings.Builder createCustomerSettings() { + return getStubSettingsBuilder().createCustomerSettings(); + } + + /** Returns the builder for the settings used for calls to updateCustomer. */ + public UnaryCallSettings.Builder updateCustomerSettings() { + return getStubSettingsBuilder().updateCustomerSettings(); + } + + /** Returns the builder for the settings used for calls to deleteCustomer. */ + public UnaryCallSettings.Builder deleteCustomerSettings() { + return getStubSettingsBuilder().deleteCustomerSettings(); + } + @Override public CloudControlsPartnerCoreSettings build() throws IOException { return new CloudControlsPartnerCoreSettings(this); diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/gapic_metadata.json b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/gapic_metadata.json index a174a22cc2ac..c7d835730975 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/gapic_metadata.json +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/gapic_metadata.json @@ -10,6 +10,12 @@ "grpc": { "libraryClient": "CloudControlsPartnerCoreClient", "rpcs": { + "CreateCustomer": { + "methods": ["createCustomer", "createCustomer", "createCustomer", "createCustomerCallable"] + }, + "DeleteCustomer": { + "methods": ["deleteCustomer", "deleteCustomer", "deleteCustomer", "deleteCustomerCallable"] + }, "GetCustomer": { "methods": ["getCustomer", "getCustomer", "getCustomer", "getCustomerCallable"] }, @@ -33,6 +39,9 @@ }, "ListWorkloads": { "methods": ["listWorkloads", "listWorkloads", "listWorkloads", "listWorkloadsPagedCallable", "listWorkloadsCallable"] + }, + "UpdateCustomer": { + "methods": ["updateCustomer", "updateCustomer", "updateCustomerCallable"] } } } diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/CloudControlsPartnerCoreStub.java b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/CloudControlsPartnerCoreStub.java index ea38635976d8..959bfb58568b 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/CloudControlsPartnerCoreStub.java +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/CloudControlsPartnerCoreStub.java @@ -23,7 +23,9 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest; import com.google.cloud.cloudcontrolspartner.v1beta.Customer; +import com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest; import com.google.cloud.cloudcontrolspartner.v1beta.EkmConnections; import com.google.cloud.cloudcontrolspartner.v1beta.GetCustomerRequest; import com.google.cloud.cloudcontrolspartner.v1beta.GetEkmConnectionsRequest; @@ -38,7 +40,9 @@ import com.google.cloud.cloudcontrolspartner.v1beta.ListWorkloadsResponse; import com.google.cloud.cloudcontrolspartner.v1beta.Partner; import com.google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions; +import com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest; import com.google.cloud.cloudcontrolspartner.v1beta.Workload; +import com.google.protobuf.Empty; import javax.annotation.Generated; // AUTO-GENERATED DOCUMENTATION AND CLASS. @@ -104,6 +108,18 @@ public UnaryCallable getPartnerCallable() { throw new UnsupportedOperationException("Not implemented: getPartnerCallable()"); } + public UnaryCallable createCustomerCallable() { + throw new UnsupportedOperationException("Not implemented: createCustomerCallable()"); + } + + public UnaryCallable updateCustomerCallable() { + throw new UnsupportedOperationException("Not implemented: updateCustomerCallable()"); + } + + public UnaryCallable deleteCustomerCallable() { + throw new UnsupportedOperationException("Not implemented: deleteCustomerCallable()"); + } + @Override public abstract void close(); } diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/CloudControlsPartnerCoreStubSettings.java b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/CloudControlsPartnerCoreStubSettings.java index 364ff8345da0..0ff24d2ea9c5 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/CloudControlsPartnerCoreStubSettings.java +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/CloudControlsPartnerCoreStubSettings.java @@ -47,7 +47,9 @@ import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.cloudcontrolspartner.v1beta.AccessApprovalRequest; +import com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest; import com.google.cloud.cloudcontrolspartner.v1beta.Customer; +import com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest; import com.google.cloud.cloudcontrolspartner.v1beta.EkmConnections; import com.google.cloud.cloudcontrolspartner.v1beta.GetCustomerRequest; import com.google.cloud.cloudcontrolspartner.v1beta.GetEkmConnectionsRequest; @@ -62,11 +64,13 @@ import com.google.cloud.cloudcontrolspartner.v1beta.ListWorkloadsResponse; import com.google.cloud.cloudcontrolspartner.v1beta.Partner; import com.google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions; +import com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest; import com.google.cloud.cloudcontrolspartner.v1beta.Workload; 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.protobuf.Empty; import java.io.IOException; import java.time.Duration; import java.util.List; @@ -150,6 +154,9 @@ public class CloudControlsPartnerCoreStubSettings ListAccessApprovalRequestsPagedResponse> listAccessApprovalRequestsSettings; private final UnaryCallSettings getPartnerSettings; + private final UnaryCallSettings createCustomerSettings; + private final UnaryCallSettings updateCustomerSettings; + private final UnaryCallSettings deleteCustomerSettings; private static final PagedListDescriptor LIST_WORKLOADS_PAGE_STR_DESC = @@ -380,6 +387,21 @@ public UnaryCallSettings getPartnerSettings() { return getPartnerSettings; } + /** Returns the object with the settings used for calls to createCustomer. */ + public UnaryCallSettings createCustomerSettings() { + return createCustomerSettings; + } + + /** Returns the object with the settings used for calls to updateCustomer. */ + public UnaryCallSettings updateCustomerSettings() { + return updateCustomerSettings; + } + + /** Returns the object with the settings used for calls to deleteCustomer. */ + public UnaryCallSettings deleteCustomerSettings() { + return deleteCustomerSettings; + } + public CloudControlsPartnerCoreStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -500,6 +522,9 @@ protected CloudControlsPartnerCoreStubSettings(Builder settingsBuilder) throws I listAccessApprovalRequestsSettings = settingsBuilder.listAccessApprovalRequestsSettings().build(); getPartnerSettings = settingsBuilder.getPartnerSettings().build(); + createCustomerSettings = settingsBuilder.createCustomerSettings().build(); + updateCustomerSettings = settingsBuilder.updateCustomerSettings().build(); + deleteCustomerSettings = settingsBuilder.deleteCustomerSettings().build(); } /** Builder for CloudControlsPartnerCoreStubSettings. */ @@ -524,6 +549,9 @@ public static class Builder ListAccessApprovalRequestsPagedResponse> listAccessApprovalRequestsSettings; private final UnaryCallSettings.Builder getPartnerSettings; + private final UnaryCallSettings.Builder createCustomerSettings; + private final UnaryCallSettings.Builder updateCustomerSettings; + private final UnaryCallSettings.Builder deleteCustomerSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -574,6 +602,9 @@ protected Builder(ClientContext clientContext) { listAccessApprovalRequestsSettings = PagedCallSettings.newBuilder(LIST_ACCESS_APPROVAL_REQUESTS_PAGE_STR_FACT); getPartnerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createCustomerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateCustomerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteCustomerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -584,7 +615,10 @@ protected Builder(ClientContext clientContext) { getEkmConnectionsSettings, getPartnerPermissionsSettings, listAccessApprovalRequestsSettings, - getPartnerSettings); + getPartnerSettings, + createCustomerSettings, + updateCustomerSettings, + deleteCustomerSettings); initDefaults(this); } @@ -599,6 +633,9 @@ protected Builder(CloudControlsPartnerCoreStubSettings settings) { getPartnerPermissionsSettings = settings.getPartnerPermissionsSettings.toBuilder(); listAccessApprovalRequestsSettings = settings.listAccessApprovalRequestsSettings.toBuilder(); getPartnerSettings = settings.getPartnerSettings.toBuilder(); + createCustomerSettings = settings.createCustomerSettings.toBuilder(); + updateCustomerSettings = settings.updateCustomerSettings.toBuilder(); + deleteCustomerSettings = settings.deleteCustomerSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -609,7 +646,10 @@ protected Builder(CloudControlsPartnerCoreStubSettings settings) { getEkmConnectionsSettings, getPartnerPermissionsSettings, listAccessApprovalRequestsSettings, - getPartnerSettings); + getPartnerSettings, + createCustomerSettings, + updateCustomerSettings, + deleteCustomerSettings); } private static Builder createDefault() { @@ -677,6 +717,21 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .createCustomerSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateCustomerSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteCustomerSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + return builder; } @@ -750,6 +805,21 @@ public UnaryCallSettings.Builder getPartnerSettings( return getPartnerSettings; } + /** Returns the builder for the settings used for calls to createCustomer. */ + public UnaryCallSettings.Builder createCustomerSettings() { + return createCustomerSettings; + } + + /** Returns the builder for the settings used for calls to updateCustomer. */ + public UnaryCallSettings.Builder updateCustomerSettings() { + return updateCustomerSettings; + } + + /** Returns the builder for the settings used for calls to deleteCustomer. */ + public UnaryCallSettings.Builder deleteCustomerSettings() { + return deleteCustomerSettings; + } + @Override public CloudControlsPartnerCoreStubSettings build() throws IOException { return new CloudControlsPartnerCoreStubSettings(this); diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/GrpcCloudControlsPartnerCoreStub.java b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/GrpcCloudControlsPartnerCoreStub.java index d4a64a217597..fe39f4affc2d 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/GrpcCloudControlsPartnerCoreStub.java +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/GrpcCloudControlsPartnerCoreStub.java @@ -28,7 +28,9 @@ 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.cloudcontrolspartner.v1beta.CreateCustomerRequest; import com.google.cloud.cloudcontrolspartner.v1beta.Customer; +import com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest; import com.google.cloud.cloudcontrolspartner.v1beta.EkmConnections; import com.google.cloud.cloudcontrolspartner.v1beta.GetCustomerRequest; import com.google.cloud.cloudcontrolspartner.v1beta.GetEkmConnectionsRequest; @@ -43,8 +45,10 @@ import com.google.cloud.cloudcontrolspartner.v1beta.ListWorkloadsResponse; import com.google.cloud.cloudcontrolspartner.v1beta.Partner; import com.google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions; +import com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest; import com.google.cloud.cloudcontrolspartner.v1beta.Workload; import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; @@ -147,6 +151,39 @@ public class GrpcCloudControlsPartnerCoreStub extends CloudControlsPartnerCoreSt .setResponseMarshaller(ProtoUtils.marshaller(Partner.getDefaultInstance())) .build(); + private static final MethodDescriptor + createCustomerMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore/CreateCustomer") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateCustomerRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Customer.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateCustomerMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore/UpdateCustomer") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateCustomerRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Customer.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteCustomerMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore/DeleteCustomer") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteCustomerRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + private final UnaryCallable getWorkloadCallable; private final UnaryCallable listWorkloadsCallable; private final UnaryCallable @@ -164,6 +201,9 @@ public class GrpcCloudControlsPartnerCoreStub extends CloudControlsPartnerCoreSt ListAccessApprovalRequestsRequest, ListAccessApprovalRequestsPagedResponse> listAccessApprovalRequestsPagedCallable; private final UnaryCallable getPartnerCallable; + private final UnaryCallable createCustomerCallable; + private final UnaryCallable updateCustomerCallable; + private final UnaryCallable deleteCustomerCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -293,6 +333,36 @@ protected GrpcCloudControlsPartnerCoreStub( return builder.build(); }) .build(); + GrpcCallSettings createCustomerTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createCustomerMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateCustomerTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateCustomerMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("customer.name", String.valueOf(request.getCustomer().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteCustomerTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteCustomerMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); this.getWorkloadCallable = callableFactory.createUnaryCallable( @@ -335,6 +405,15 @@ protected GrpcCloudControlsPartnerCoreStub( this.getPartnerCallable = callableFactory.createUnaryCallable( getPartnerTransportSettings, settings.getPartnerSettings(), clientContext); + this.createCustomerCallable = + callableFactory.createUnaryCallable( + createCustomerTransportSettings, settings.createCustomerSettings(), clientContext); + this.updateCustomerCallable = + callableFactory.createUnaryCallable( + updateCustomerTransportSettings, settings.updateCustomerSettings(), clientContext); + this.deleteCustomerCallable = + callableFactory.createUnaryCallable( + deleteCustomerTransportSettings, settings.deleteCustomerSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -404,6 +483,21 @@ public UnaryCallable getPartnerCallable() { return getPartnerCallable; } + @Override + public UnaryCallable createCustomerCallable() { + return createCustomerCallable; + } + + @Override + public UnaryCallable updateCustomerCallable() { + return updateCustomerCallable; + } + + @Override + public UnaryCallable deleteCustomerCallable() { + return deleteCustomerCallable; + } + @Override public final void close() { try { diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/HttpJsonCloudControlsPartnerCoreStub.java b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/HttpJsonCloudControlsPartnerCoreStub.java index 355e16abc5b4..dea05fbfa94e 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/HttpJsonCloudControlsPartnerCoreStub.java +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/HttpJsonCloudControlsPartnerCoreStub.java @@ -33,7 +33,9 @@ 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.cloudcontrolspartner.v1beta.CreateCustomerRequest; import com.google.cloud.cloudcontrolspartner.v1beta.Customer; +import com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest; import com.google.cloud.cloudcontrolspartner.v1beta.EkmConnections; import com.google.cloud.cloudcontrolspartner.v1beta.GetCustomerRequest; import com.google.cloud.cloudcontrolspartner.v1beta.GetEkmConnectionsRequest; @@ -48,7 +50,9 @@ import com.google.cloud.cloudcontrolspartner.v1beta.ListWorkloadsResponse; import com.google.cloud.cloudcontrolspartner.v1beta.Partner; import com.google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions; +import com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest; import com.google.cloud.cloudcontrolspartner.v1beta.Workload; +import com.google.protobuf.Empty; import com.google.protobuf.TypeRegistry; import java.io.IOException; import java.util.ArrayList; @@ -362,6 +366,120 @@ public class HttpJsonCloudControlsPartnerCoreStub extends CloudControlsPartnerCo .build()) .build(); + private static final ApiMethodDescriptor + createCustomerMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore/CreateCustomer") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{parent=organizations/*/locations/*}/customers", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "customerId", request.getCustomerId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("customer", request.getCustomer(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Customer.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateCustomerMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore/UpdateCustomer") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{customer.name=organizations/*/locations/*/customers/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "customer.name", request.getCustomer().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("customer", request.getCustomer(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Customer.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteCustomerMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore/DeleteCustomer") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=organizations/*/locations/*/customers/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private final UnaryCallable getWorkloadCallable; private final UnaryCallable listWorkloadsCallable; private final UnaryCallable @@ -379,6 +497,9 @@ public class HttpJsonCloudControlsPartnerCoreStub extends CloudControlsPartnerCo ListAccessApprovalRequestsRequest, ListAccessApprovalRequestsPagedResponse> listAccessApprovalRequestsPagedCallable; private final UnaryCallable getPartnerCallable; + private final UnaryCallable createCustomerCallable; + private final UnaryCallable updateCustomerCallable; + private final UnaryCallable deleteCustomerCallable; private final BackgroundResource backgroundResources; private final HttpJsonStubCallableFactory callableFactory; @@ -519,6 +640,39 @@ protected HttpJsonCloudControlsPartnerCoreStub( return builder.build(); }) .build(); + HttpJsonCallSettings createCustomerTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createCustomerMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateCustomerTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateCustomerMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("customer.name", String.valueOf(request.getCustomer().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteCustomerTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteCustomerMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); this.getWorkloadCallable = callableFactory.createUnaryCallable( @@ -561,6 +715,15 @@ protected HttpJsonCloudControlsPartnerCoreStub( this.getPartnerCallable = callableFactory.createUnaryCallable( getPartnerTransportSettings, settings.getPartnerSettings(), clientContext); + this.createCustomerCallable = + callableFactory.createUnaryCallable( + createCustomerTransportSettings, settings.createCustomerSettings(), clientContext); + this.updateCustomerCallable = + callableFactory.createUnaryCallable( + updateCustomerTransportSettings, settings.updateCustomerSettings(), clientContext); + this.deleteCustomerCallable = + callableFactory.createUnaryCallable( + deleteCustomerTransportSettings, settings.deleteCustomerSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -577,6 +740,9 @@ public static List getMethodDescriptors() { methodDescriptors.add(getPartnerPermissionsMethodDescriptor); methodDescriptors.add(listAccessApprovalRequestsMethodDescriptor); methodDescriptors.add(getPartnerMethodDescriptor); + methodDescriptors.add(createCustomerMethodDescriptor); + methodDescriptors.add(updateCustomerMethodDescriptor); + methodDescriptors.add(deleteCustomerMethodDescriptor); return methodDescriptors; } @@ -640,6 +806,21 @@ public UnaryCallable getPartnerCallable() { return getPartnerCallable; } + @Override + public UnaryCallable createCustomerCallable() { + return createCustomerCallable; + } + + @Override + public UnaryCallable updateCustomerCallable() { + return updateCustomerCallable; + } + + @Override + public UnaryCallable deleteCustomerCallable() { + return deleteCustomerCallable; + } + @Override public final void close() { try { diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/resources/META-INF/native-image/com.google.cloud.cloudcontrolspartner.v1beta/reflect-config.json b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/resources/META-INF/native-image/com.google.cloud.cloudcontrolspartner.v1beta/reflect-config.json index 2d922c4d63ea..f5901f9cf454 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/resources/META-INF/native-image/com.google.cloud.cloudcontrolspartner.v1beta/reflect-config.json +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/resources/META-INF/native-image/com.google.cloud.cloudcontrolspartner.v1beta/reflect-config.json @@ -467,6 +467,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.cloudcontrolspartner.v1beta.Customer", "queryAllDeclaredConstructors": true, @@ -530,6 +548,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.cloudcontrolspartner.v1beta.EkmConnection", "queryAllDeclaredConstructors": true, @@ -953,6 +989,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.cloudcontrolspartner.v1beta.Violation", "queryAllDeclaredConstructors": true, @@ -1880,6 +1934,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.Empty", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.Timestamp", "queryAllDeclaredConstructors": true, diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/test/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreClientHttpJsonTest.java b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/test/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreClientHttpJsonTest.java index f89964b5dec2..1dbb92c35a40 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/test/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreClientHttpJsonTest.java +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/test/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreClientHttpJsonTest.java @@ -31,6 +31,8 @@ import com.google.api.gax.rpc.testing.FakeStatusCode; import com.google.cloud.cloudcontrolspartner.v1beta.stub.HttpJsonCloudControlsPartnerCoreStub; import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; import com.google.protobuf.Timestamp; import java.io.IOException; import java.util.ArrayList; @@ -298,6 +300,7 @@ public void getCustomerTest() throws Exception { .setDisplayName("displayName1714148973") .setCustomerOnboardingState(CustomerOnboardingState.newBuilder().build()) .setIsOnboarded(true) + .setOrganizationDomain("organizationDomain-1403667497") .build(); mockService.addResponse(expectedResponse); @@ -345,6 +348,7 @@ public void getCustomerTest2() throws Exception { .setDisplayName("displayName1714148973") .setCustomerOnboardingState(CustomerOnboardingState.newBuilder().build()) .setIsOnboarded(true) + .setOrganizationDomain("organizationDomain-1403667497") .build(); mockService.addResponse(expectedResponse); @@ -888,4 +892,253 @@ public void getPartnerExceptionTest2() throws Exception { // Expected exception. } } + + @Test + public void createCustomerTest() throws Exception { + Customer expectedResponse = + Customer.newBuilder() + .setName(CustomerName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]").toString()) + .setDisplayName("displayName1714148973") + .setCustomerOnboardingState(CustomerOnboardingState.newBuilder().build()) + .setIsOnboarded(true) + .setOrganizationDomain("organizationDomain-1403667497") + .build(); + mockService.addResponse(expectedResponse); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + Customer customer = Customer.newBuilder().build(); + String customerId = "customerId-1581184615"; + + Customer actualResponse = client.createCustomer(parent, customer, customerId); + 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 createCustomerExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + Customer customer = Customer.newBuilder().build(); + String customerId = "customerId-1581184615"; + client.createCustomer(parent, customer, customerId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCustomerTest2() throws Exception { + Customer expectedResponse = + Customer.newBuilder() + .setName(CustomerName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]").toString()) + .setDisplayName("displayName1714148973") + .setCustomerOnboardingState(CustomerOnboardingState.newBuilder().build()) + .setIsOnboarded(true) + .setOrganizationDomain("organizationDomain-1403667497") + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-9365/locations/location-9365"; + Customer customer = Customer.newBuilder().build(); + String customerId = "customerId-1581184615"; + + Customer actualResponse = client.createCustomer(parent, customer, customerId); + 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 createCustomerExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-9365/locations/location-9365"; + Customer customer = Customer.newBuilder().build(); + String customerId = "customerId-1581184615"; + client.createCustomer(parent, customer, customerId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateCustomerTest() throws Exception { + Customer expectedResponse = + Customer.newBuilder() + .setName(CustomerName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]").toString()) + .setDisplayName("displayName1714148973") + .setCustomerOnboardingState(CustomerOnboardingState.newBuilder().build()) + .setIsOnboarded(true) + .setOrganizationDomain("organizationDomain-1403667497") + .build(); + mockService.addResponse(expectedResponse); + + Customer customer = + Customer.newBuilder() + .setName(CustomerName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]").toString()) + .setDisplayName("displayName1714148973") + .setCustomerOnboardingState(CustomerOnboardingState.newBuilder().build()) + .setIsOnboarded(true) + .setOrganizationDomain("organizationDomain-1403667497") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Customer actualResponse = client.updateCustomer(customer, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateCustomerExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Customer customer = + Customer.newBuilder() + .setName(CustomerName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]").toString()) + .setDisplayName("displayName1714148973") + .setCustomerOnboardingState(CustomerOnboardingState.newBuilder().build()) + .setIsOnboarded(true) + .setOrganizationDomain("organizationDomain-1403667497") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateCustomer(customer, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteCustomerTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + CustomerName name = CustomerName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]"); + + client.deleteCustomer(name); + + 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 deleteCustomerExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CustomerName name = CustomerName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]"); + client.deleteCustomer(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteCustomerTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "organizations/organization-3989/locations/location-3989/customers/customer-3989"; + + client.deleteCustomer(name); + + 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 deleteCustomerExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "organizations/organization-3989/locations/location-3989/customers/customer-3989"; + client.deleteCustomer(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/test/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreClientTest.java b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/test/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreClientTest.java index 21cfe61ee466..474ea8e5409e 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/test/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreClientTest.java +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/test/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreClientTest.java @@ -29,6 +29,8 @@ import com.google.api.gax.rpc.InvalidArgumentException; import com.google.common.collect.Lists; import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; import com.google.protobuf.Timestamp; import io.grpc.StatusRuntimeException; import java.io.IOException; @@ -274,6 +276,7 @@ public void getCustomerTest() throws Exception { .setDisplayName("displayName1714148973") .setCustomerOnboardingState(CustomerOnboardingState.newBuilder().build()) .setIsOnboarded(true) + .setOrganizationDomain("organizationDomain-1403667497") .build(); mockCloudControlsPartnerCore.addResponse(expectedResponse); @@ -315,6 +318,7 @@ public void getCustomerTest2() throws Exception { .setDisplayName("displayName1714148973") .setCustomerOnboardingState(CustomerOnboardingState.newBuilder().build()) .setIsOnboarded(true) + .setOrganizationDomain("organizationDomain-1403667497") .build(); mockCloudControlsPartnerCore.addResponse(expectedResponse); @@ -789,4 +793,213 @@ public void getPartnerExceptionTest2() throws Exception { // Expected exception. } } + + @Test + public void createCustomerTest() throws Exception { + Customer expectedResponse = + Customer.newBuilder() + .setName(CustomerName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]").toString()) + .setDisplayName("displayName1714148973") + .setCustomerOnboardingState(CustomerOnboardingState.newBuilder().build()) + .setIsOnboarded(true) + .setOrganizationDomain("organizationDomain-1403667497") + .build(); + mockCloudControlsPartnerCore.addResponse(expectedResponse); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + Customer customer = Customer.newBuilder().build(); + String customerId = "customerId-1581184615"; + + Customer actualResponse = client.createCustomer(parent, customer, customerId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudControlsPartnerCore.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateCustomerRequest actualRequest = ((CreateCustomerRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(customer, actualRequest.getCustomer()); + Assert.assertEquals(customerId, actualRequest.getCustomerId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createCustomerExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudControlsPartnerCore.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + Customer customer = Customer.newBuilder().build(); + String customerId = "customerId-1581184615"; + client.createCustomer(parent, customer, customerId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCustomerTest2() throws Exception { + Customer expectedResponse = + Customer.newBuilder() + .setName(CustomerName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]").toString()) + .setDisplayName("displayName1714148973") + .setCustomerOnboardingState(CustomerOnboardingState.newBuilder().build()) + .setIsOnboarded(true) + .setOrganizationDomain("organizationDomain-1403667497") + .build(); + mockCloudControlsPartnerCore.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Customer customer = Customer.newBuilder().build(); + String customerId = "customerId-1581184615"; + + Customer actualResponse = client.createCustomer(parent, customer, customerId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudControlsPartnerCore.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateCustomerRequest actualRequest = ((CreateCustomerRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(customer, actualRequest.getCustomer()); + Assert.assertEquals(customerId, actualRequest.getCustomerId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createCustomerExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudControlsPartnerCore.addException(exception); + + try { + String parent = "parent-995424086"; + Customer customer = Customer.newBuilder().build(); + String customerId = "customerId-1581184615"; + client.createCustomer(parent, customer, customerId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateCustomerTest() throws Exception { + Customer expectedResponse = + Customer.newBuilder() + .setName(CustomerName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]").toString()) + .setDisplayName("displayName1714148973") + .setCustomerOnboardingState(CustomerOnboardingState.newBuilder().build()) + .setIsOnboarded(true) + .setOrganizationDomain("organizationDomain-1403667497") + .build(); + mockCloudControlsPartnerCore.addResponse(expectedResponse); + + Customer customer = Customer.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Customer actualResponse = client.updateCustomer(customer, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudControlsPartnerCore.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateCustomerRequest actualRequest = ((UpdateCustomerRequest) actualRequests.get(0)); + + Assert.assertEquals(customer, actualRequest.getCustomer()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateCustomerExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudControlsPartnerCore.addException(exception); + + try { + Customer customer = Customer.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateCustomer(customer, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteCustomerTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockCloudControlsPartnerCore.addResponse(expectedResponse); + + CustomerName name = CustomerName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]"); + + client.deleteCustomer(name); + + List actualRequests = mockCloudControlsPartnerCore.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteCustomerRequest actualRequest = ((DeleteCustomerRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteCustomerExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudControlsPartnerCore.addException(exception); + + try { + CustomerName name = CustomerName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]"); + client.deleteCustomer(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteCustomerTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockCloudControlsPartnerCore.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteCustomer(name); + + List actualRequests = mockCloudControlsPartnerCore.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteCustomerRequest actualRequest = ((DeleteCustomerRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteCustomerExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudControlsPartnerCore.addException(exception); + + try { + String name = "name3373707"; + client.deleteCustomer(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/test/java/com/google/cloud/cloudcontrolspartner/v1beta/MockCloudControlsPartnerCoreImpl.java b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/test/java/com/google/cloud/cloudcontrolspartner/v1beta/MockCloudControlsPartnerCoreImpl.java index 33c9730b3bab..374c5c998ad2 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/test/java/com/google/cloud/cloudcontrolspartner/v1beta/MockCloudControlsPartnerCoreImpl.java +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/test/java/com/google/cloud/cloudcontrolspartner/v1beta/MockCloudControlsPartnerCoreImpl.java @@ -19,6 +19,7 @@ import com.google.api.core.BetaApi; import com.google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreGrpc.CloudControlsPartnerCoreImplBase; import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; import io.grpc.stub.StreamObserver; import java.util.ArrayList; import java.util.LinkedList; @@ -223,4 +224,67 @@ public void getPartner(GetPartnerRequest request, StreamObserver respon Exception.class.getName()))); } } + + @Override + public void createCustomer( + CreateCustomerRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Customer) { + requests.add(request); + responseObserver.onNext(((Customer) 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 CreateCustomer, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Customer.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateCustomer( + UpdateCustomerRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Customer) { + requests.add(request); + responseObserver.onNext(((Customer) 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 UpdateCustomer, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Customer.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteCustomer( + DeleteCustomerRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) 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 DeleteCustomer, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreGrpc.java b/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreGrpc.java index d84b6ac604e9..2d114abc5e00 100644 --- a/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreGrpc.java +++ b/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreGrpc.java @@ -432,6 +432,149 @@ private CloudControlsPartnerCoreGrpc() {} return getGetPartnerMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest, + com.google.cloud.cloudcontrolspartner.v1beta.Customer> + getCreateCustomerMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCustomer", + requestType = com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest.class, + responseType = com.google.cloud.cloudcontrolspartner.v1beta.Customer.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest, + com.google.cloud.cloudcontrolspartner.v1beta.Customer> + getCreateCustomerMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest, + com.google.cloud.cloudcontrolspartner.v1beta.Customer> + getCreateCustomerMethod; + if ((getCreateCustomerMethod = CloudControlsPartnerCoreGrpc.getCreateCustomerMethod) == null) { + synchronized (CloudControlsPartnerCoreGrpc.class) { + if ((getCreateCustomerMethod = CloudControlsPartnerCoreGrpc.getCreateCustomerMethod) + == null) { + CloudControlsPartnerCoreGrpc.getCreateCustomerMethod = + getCreateCustomerMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCustomer")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.cloudcontrolspartner.v1beta.Customer + .getDefaultInstance())) + .setSchemaDescriptor( + new CloudControlsPartnerCoreMethodDescriptorSupplier("CreateCustomer")) + .build(); + } + } + } + return getCreateCustomerMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest, + com.google.cloud.cloudcontrolspartner.v1beta.Customer> + getUpdateCustomerMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCustomer", + requestType = com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest.class, + responseType = com.google.cloud.cloudcontrolspartner.v1beta.Customer.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest, + com.google.cloud.cloudcontrolspartner.v1beta.Customer> + getUpdateCustomerMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest, + com.google.cloud.cloudcontrolspartner.v1beta.Customer> + getUpdateCustomerMethod; + if ((getUpdateCustomerMethod = CloudControlsPartnerCoreGrpc.getUpdateCustomerMethod) == null) { + synchronized (CloudControlsPartnerCoreGrpc.class) { + if ((getUpdateCustomerMethod = CloudControlsPartnerCoreGrpc.getUpdateCustomerMethod) + == null) { + CloudControlsPartnerCoreGrpc.getUpdateCustomerMethod = + getUpdateCustomerMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCustomer")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.cloudcontrolspartner.v1beta.Customer + .getDefaultInstance())) + .setSchemaDescriptor( + new CloudControlsPartnerCoreMethodDescriptorSupplier("UpdateCustomer")) + .build(); + } + } + } + return getUpdateCustomerMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest, + com.google.protobuf.Empty> + getDeleteCustomerMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteCustomer", + requestType = com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest, + com.google.protobuf.Empty> + getDeleteCustomerMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest, + com.google.protobuf.Empty> + getDeleteCustomerMethod; + if ((getDeleteCustomerMethod = CloudControlsPartnerCoreGrpc.getDeleteCustomerMethod) == null) { + synchronized (CloudControlsPartnerCoreGrpc.class) { + if ((getDeleteCustomerMethod = CloudControlsPartnerCoreGrpc.getDeleteCustomerMethod) + == null) { + CloudControlsPartnerCoreGrpc.getDeleteCustomerMethod = + getDeleteCustomerMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCustomer")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new CloudControlsPartnerCoreMethodDescriptorSupplier("DeleteCustomer")) + .build(); + } + } + } + return getDeleteCustomerMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static CloudControlsPartnerCoreStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -605,6 +748,50 @@ default void getPartner( responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPartnerMethod(), responseObserver); } + + /** + * + * + *
+     * Creates a new customer.
+     * 
+ */ + default void createCustomer( + com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateCustomerMethod(), responseObserver); + } + + /** + * + * + *
+     * Update details of a single customer
+     * 
+ */ + default void updateCustomer( + com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateCustomerMethod(), responseObserver); + } + + /** + * + * + *
+     * Delete details of a single customer
+     * 
+ */ + default void deleteCustomer( + com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteCustomerMethod(), responseObserver); + } } /** @@ -780,6 +967,56 @@ public void getPartner( io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetPartnerMethod(), getCallOptions()), request, responseObserver); } + + /** + * + * + *
+     * Creates a new customer.
+     * 
+ */ + public void createCustomer( + com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCustomerMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update details of a single customer
+     * 
+ */ + public void updateCustomer( + com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCustomerMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Delete details of a single customer
+     * 
+ */ + public void deleteCustomer( + com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteCustomerMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -909,6 +1146,45 @@ public com.google.cloud.cloudcontrolspartner.v1beta.Partner getPartner( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetPartnerMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Creates a new customer.
+     * 
+ */ + public com.google.cloud.cloudcontrolspartner.v1beta.Customer createCustomer( + com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCustomerMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update details of a single customer
+     * 
+ */ + public com.google.cloud.cloudcontrolspartner.v1beta.Customer updateCustomer( + com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCustomerMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Delete details of a single customer
+     * 
+ */ + public com.google.protobuf.Empty deleteCustomer( + com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCustomerMethod(), getCallOptions(), request); + } } /** @@ -1049,6 +1325,47 @@ protected CloudControlsPartnerCoreFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetPartnerMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Creates a new customer.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.cloudcontrolspartner.v1beta.Customer> + createCustomer(com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCustomerMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update details of a single customer
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.cloudcontrolspartner.v1beta.Customer> + updateCustomer(com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCustomerMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Delete details of a single customer
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteCustomer(com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteCustomerMethod(), getCallOptions()), request); + } } private static final int METHODID_GET_WORKLOAD = 0; @@ -1059,6 +1376,9 @@ protected CloudControlsPartnerCoreFutureStub build( private static final int METHODID_GET_PARTNER_PERMISSIONS = 5; private static final int METHODID_LIST_ACCESS_APPROVAL_REQUESTS = 6; private static final int METHODID_GET_PARTNER = 7; + private static final int METHODID_CREATE_CUSTOMER = 8; + private static final int METHODID_UPDATE_CUSTOMER = 9; + private static final int METHODID_DELETE_CUSTOMER = 10; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1132,6 +1452,23 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_CREATE_CUSTOMER: + serviceImpl.createCustomer( + (com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_CUSTOMER: + serviceImpl.updateCustomer( + (com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_CUSTOMER: + serviceImpl.deleteCustomer( + (com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -1207,6 +1544,26 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.cloudcontrolspartner.v1beta.GetPartnerRequest, com.google.cloud.cloudcontrolspartner.v1beta.Partner>( service, METHODID_GET_PARTNER))) + .addMethod( + getCreateCustomerMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest, + com.google.cloud.cloudcontrolspartner.v1beta.Customer>( + service, METHODID_CREATE_CUSTOMER))) + .addMethod( + getUpdateCustomerMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest, + com.google.cloud.cloudcontrolspartner.v1beta.Customer>( + service, METHODID_UPDATE_CUSTOMER))) + .addMethod( + getDeleteCustomerMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_CUSTOMER))) .build(); } @@ -1266,6 +1623,9 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetPartnerPermissionsMethod()) .addMethod(getListAccessApprovalRequestsMethod()) .addMethod(getGetPartnerMethod()) + .addMethod(getCreateCustomerMethod()) + .addMethod(getUpdateCustomerMethod()) + .addMethod(getDeleteCustomerMethod()) .build(); } } diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CoreProto.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CoreProto.java index 07160a4ece90..35b3a8793dd4 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CoreProto.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CoreProto.java @@ -55,75 +55,92 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ner/v1beta/ekm_connections.proto\032Bgoogle" + "/cloud/cloudcontrolspartner/v1beta/partn" + "er_permissions.proto\0327google/cloud/cloud" - + "controlspartner/v1beta/partners.proto\032\037g" - + "oogle/protobuf/timestamp.proto\"\200\002\n\021Opera" - + "tionMetadata\0224\n\013create_time\030\001 \001(\0132\032.goog" - + "le.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\026requested_" - + "cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007" - + " \001(\tB\003\340A\0032\276\017\n\030CloudControlsPartnerCore\022\322" - + "\001\n\013GetWorkload\022<.google.cloud.cloudcontr" - + "olspartner.v1beta.GetWorkloadRequest\0322.g" - + "oogle.cloud.cloudcontrolspartner.v1beta." - + "Workload\"Q\332A\004name\202\323\344\223\002D\022B/v1beta/{name=o" - + "rganizations/*/locations/*/customers/*/w" - + "orkloads/*}\022\345\001\n\rListWorkloads\022>.google.c" - + "loud.cloudcontrolspartner.v1beta.ListWor" - + "kloadsRequest\032?.google.cloud.cloudcontro" - + "lspartner.v1beta.ListWorkloadsResponse\"S" - + "\332A\006parent\202\323\344\223\002D\022B/v1beta/{parent=organiz" - + "ations/*/locations/*/customers/*}/worklo" - + "ads\022\306\001\n\013GetCustomer\022<.google.cloud.cloud" - + "controlspartner.v1beta.GetCustomerReques" - + "t\0322.google.cloud.cloudcontrolspartner.v1" - + "beta.Customer\"E\332A\004name\202\323\344\223\0028\0226/v1beta/{n" - + "ame=organizations/*/locations/*/customer" - + "s/*}\022\331\001\n\rListCustomers\022>.google.cloud.cl" - + "oudcontrolspartner.v1beta.ListCustomersR" - + "equest\032?.google.cloud.cloudcontrolspartn" - + "er.v1beta.ListCustomersResponse\"G\332A\006pare" - + "nt\202\323\344\223\0028\0226/v1beta/{parent=organizations/" - + "*/locations/*}/customers\022\363\001\n\021GetEkmConne" - + "ctions\022B.google.cloud.cloudcontrolspartn" - + "er.v1beta.GetEkmConnectionsRequest\0328.goo" - + "gle.cloud.cloudcontrolspartner.v1beta.Ek" - + "mConnections\"`\332A\004name\202\323\344\223\002S\022Q/v1beta/{na" - + "me=organizations/*/locations/*/customers" - + "/*/workloads/*/ekmConnections}\022\203\002\n\025GetPa" - + "rtnerPermissions\022F.google.cloud.cloudcon" - + "trolspartner.v1beta.GetPartnerPermission" - + "sRequest\032<.google.cloud.cloudcontrolspar" - + "tner.v1beta.PartnerPermissions\"d\332A\004name\202" - + "\323\344\223\002W\022U/v1beta/{name=organizations/*/loc" - + "ations/*/customers/*/workloads/*/partner" - + "Permissions}\022\250\002\n\032ListAccessApprovalReque" - + "sts\022K.google.cloud.cloudcontrolspartner." - + "v1beta.ListAccessApprovalRequestsRequest" - + "\032L.google.cloud.cloudcontrolspartner.v1b" - + "eta.ListAccessApprovalRequestsResponse\"o" - + "\210\002\001\332A\006parent\202\323\344\223\002]\022[/v1beta/{parent=orga" - + "nizations/*/locations/*/customers/*/work" - + "loads/*}/accessApprovalRequests\022\277\001\n\nGetP" - + "artner\022;.google.cloud.cloudcontrolspartn" - + "er.v1beta.GetPartnerRequest\0321.google.clo" - + "ud.cloudcontrolspartner.v1beta.Partner\"A" - + "\332A\004name\202\323\344\223\0024\0222/v1beta/{name=organizatio" - + "ns/*/locations/*/partner}\032W\312A#cloudcontr" - + "olspartner.googleapis.com\322A.https://www." - + "googleapis.com/auth/cloud-platformB\221\003\n,c" - + "om.google.cloud.cloudcontrolspartner.v1b" - + "etaB\tCoreProtoP\001Z`cloud.google.com/go/cl" - + "oudcontrolspartner/apiv1beta/cloudcontro" - + "lspartnerpb;cloudcontrolspartnerpb\252\002(Goo" - + "gle.Cloud.CloudControlsPartner.V1Beta\312\002(" - + "Google\\Cloud\\CloudControlsPartner\\V1beta" - + "\352\002+Google::Cloud::CloudControlsPartner::" - + "V1beta\352Am\n8cloudcontrolspartner.googleap" - + "is.com/OrganizationLocation\0221organizatio" - + "ns/{organization}/locations/{location}b\006" - + "proto3" + + "controlspartner/v1beta/partners.proto\032\033g" + + "oogle/protobuf/empty.proto\032\037google/proto" + + "buf/timestamp.proto\"\200\002\n\021OperationMetadat" + + "a\0224\n\013create_time\030\001 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.goog" + + "le.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_mes" + + "sage\030\005 \001(\tB\003\340A\003\022#\n\026requested_cancellatio" + + "n\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\0032\323" + + "\024\n\030CloudControlsPartnerCore\022\322\001\n\013GetWorkl" + + "oad\022<.google.cloud.cloudcontrolspartner." + + "v1beta.GetWorkloadRequest\0322.google.cloud" + + ".cloudcontrolspartner.v1beta.Workload\"Q\332" + + "A\004name\202\323\344\223\002D\022B/v1beta/{name=organization" + + "s/*/locations/*/customers/*/workloads/*}" + + "\022\345\001\n\rListWorkloads\022>.google.cloud.cloudc" + + "ontrolspartner.v1beta.ListWorkloadsReque" + + "st\032?.google.cloud.cloudcontrolspartner.v" + + "1beta.ListWorkloadsResponse\"S\332A\006parent\202\323" + + "\344\223\002D\022B/v1beta/{parent=organizations/*/lo" + + "cations/*/customers/*}/workloads\022\306\001\n\013Get" + + "Customer\022<.google.cloud.cloudcontrolspar" + + "tner.v1beta.GetCustomerRequest\0322.google." + + "cloud.cloudcontrolspartner.v1beta.Custom" + + "er\"E\332A\004name\202\323\344\223\0028\0226/v1beta/{name=organiz" + + "ations/*/locations/*/customers/*}\022\331\001\n\rLi" + + "stCustomers\022>.google.cloud.cloudcontrols" + + "partner.v1beta.ListCustomersRequest\032?.go" + + "ogle.cloud.cloudcontrolspartner.v1beta.L" + + "istCustomersResponse\"G\332A\006parent\202\323\344\223\0028\0226/" + + "v1beta/{parent=organizations/*/locations" + + "/*}/customers\022\363\001\n\021GetEkmConnections\022B.go" + + "ogle.cloud.cloudcontrolspartner.v1beta.G" + + "etEkmConnectionsRequest\0328.google.cloud.c" + + "loudcontrolspartner.v1beta.EkmConnection" + + "s\"`\332A\004name\202\323\344\223\002S\022Q/v1beta/{name=organiza" + + "tions/*/locations/*/customers/*/workload" + + "s/*/ekmConnections}\022\203\002\n\025GetPartnerPermis" + + "sions\022F.google.cloud.cloudcontrolspartne" + + "r.v1beta.GetPartnerPermissionsRequest\032<." + + "google.cloud.cloudcontrolspartner.v1beta" + + ".PartnerPermissions\"d\332A\004name\202\323\344\223\002W\022U/v1b" + + "eta/{name=organizations/*/locations/*/cu" + + "stomers/*/workloads/*/partnerPermissions" + + "}\022\250\002\n\032ListAccessApprovalRequests\022K.googl" + + "e.cloud.cloudcontrolspartner.v1beta.List" + + "AccessApprovalRequestsRequest\032L.google.c" + + "loud.cloudcontrolspartner.v1beta.ListAcc" + + "essApprovalRequestsResponse\"o\210\002\001\332A\006paren" + + "t\202\323\344\223\002]\022[/v1beta/{parent=organizations/*" + + "/locations/*/customers/*/workloads/*}/ac" + + "cessApprovalRequests\022\277\001\n\nGetPartner\022;.go" + + "ogle.cloud.cloudcontrolspartner.v1beta.G" + + "etPartnerRequest\0321.google.cloud.cloudcon" + + "trolspartner.v1beta.Partner\"A\332A\004name\202\323\344\223" + + "\0024\0222/v1beta/{name=organizations/*/locati" + + "ons/*/partner}\022\355\001\n\016CreateCustomer\022?.goog" + + "le.cloud.cloudcontrolspartner.v1beta.Cre" + + "ateCustomerRequest\0322.google.cloud.cloudc" + + "ontrolspartner.v1beta.Customer\"f\332A\033paren" + + "t,customer,customer_id\202\323\344\223\002B\"6/v1beta/{p" + + "arent=organizations/*/locations/*}/custo" + + "mers:\010customer\022\357\001\n\016UpdateCustomer\022?.goog" + + "le.cloud.cloudcontrolspartner.v1beta.Upd" + + "ateCustomerRequest\0322.google.cloud.cloudc" + + "ontrolspartner.v1beta.Customer\"h\332A\024custo" + + "mer,update_mask\202\323\344\223\002K2?/v1beta/{customer" + + ".name=organizations/*/locations/*/custom" + + "ers/*}:\010customer\022\260\001\n\016DeleteCustomer\022?.go" + + "ogle.cloud.cloudcontrolspartner.v1beta.D" + + "eleteCustomerRequest\032\026.google.protobuf.E" + + "mpty\"E\332A\004name\202\323\344\223\0028*6/v1beta/{name=organ" + + "izations/*/locations/*/customers/*}\032W\312A#" + + "cloudcontrolspartner.googleapis.com\322A.ht" + + "tps://www.googleapis.com/auth/cloud-plat" + + "formB\221\003\n,com.google.cloud.cloudcontrolsp" + + "artner.v1betaB\tCoreProtoP\001Z`cloud.google" + + ".com/go/cloudcontrolspartner/apiv1beta/c" + + "loudcontrolspartnerpb;cloudcontrolspartn" + + "erpb\252\002(Google.Cloud.CloudControlsPartner" + + ".V1Beta\312\002(Google\\Cloud\\CloudControlsPart" + + "ner\\V1beta\352\002+Google::Cloud::CloudControl" + + "sPartner::V1beta\352Am\n8cloudcontrolspartne" + + "r.googleapis.com/OrganizationLocation\0221o" + + "rganizations/{organization}/locations/{l" + + "ocation}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -140,6 +157,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.cloudcontrolspartner.v1beta.EkmConnectionsProto.getDescriptor(), com.google.cloud.cloudcontrolspartner.v1beta.PartnerPermissionsProto.getDescriptor(), com.google.cloud.cloudcontrolspartner.v1beta.PartnersProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_cloudcontrolspartner_v1beta_OperationMetadata_descriptor = @@ -176,6 +194,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.cloudcontrolspartner.v1beta.EkmConnectionsProto.getDescriptor(); com.google.cloud.cloudcontrolspartner.v1beta.PartnerPermissionsProto.getDescriptor(); com.google.cloud.cloudcontrolspartner.v1beta.PartnersProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CreateCustomerRequest.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CreateCustomerRequest.java new file mode 100644 index 000000000000..01571a900d19 --- /dev/null +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CreateCustomerRequest.java @@ -0,0 +1,1159 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/cloudcontrolspartner/v1beta/customers.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.cloudcontrolspartner.v1beta; + +/** + * + * + *
+ * Request to create a customer
+ * 
+ * + * Protobuf type {@code google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest} + */ +public final class CreateCustomerRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest) + CreateCustomerRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateCustomerRequest.newBuilder() to construct. + private CreateCustomerRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateCustomerRequest() { + parent_ = ""; + customerId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateCustomerRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudcontrolspartner.v1beta.CustomersProto + .internal_static_google_cloud_cloudcontrolspartner_v1beta_CreateCustomerRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudcontrolspartner.v1beta.CustomersProto + .internal_static_google_cloud_cloudcontrolspartner_v1beta_CreateCustomerRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest.class, + com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Parent resource
+   * Format: `organizations/{organization}/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. Parent resource
+   * Format: `organizations/{organization}/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 CUSTOMER_FIELD_NUMBER = 2; + private com.google.cloud.cloudcontrolspartner.v1beta.Customer customer_; + /** + * + * + *
+   * Required. The customer to create.
+   * 
+ * + * + * .google.cloud.cloudcontrolspartner.v1beta.Customer customer = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customer field is set. + */ + @java.lang.Override + public boolean hasCustomer() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. The customer to create.
+   * 
+ * + * + * .google.cloud.cloudcontrolspartner.v1beta.Customer customer = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customer. + */ + @java.lang.Override + public com.google.cloud.cloudcontrolspartner.v1beta.Customer getCustomer() { + return customer_ == null + ? com.google.cloud.cloudcontrolspartner.v1beta.Customer.getDefaultInstance() + : customer_; + } + /** + * + * + *
+   * Required. The customer to create.
+   * 
+ * + * + * .google.cloud.cloudcontrolspartner.v1beta.Customer customer = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.cloudcontrolspartner.v1beta.CustomerOrBuilder getCustomerOrBuilder() { + return customer_ == null + ? com.google.cloud.cloudcontrolspartner.v1beta.Customer.getDefaultInstance() + : customer_; + } + + public static final int CUSTOMER_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object customerId_ = ""; + /** + * + * + *
+   * Required. The customer id to use for the customer, which will become the
+   * final component of the customer's resource name. The specified value must
+   * be a valid Google cloud organization id.
+   * 
+ * + * string customer_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The customerId. + */ + @java.lang.Override + public java.lang.String getCustomerId() { + java.lang.Object ref = customerId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customerId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The customer id to use for the customer, which will become the
+   * final component of the customer's resource name. The specified value must
+   * be a valid Google cloud organization id.
+   * 
+ * + * string customer_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for customerId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCustomerIdBytes() { + java.lang.Object ref = customerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customerId_ = 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCustomer()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customerId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, customerId_); + } + 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, getCustomer()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customerId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, customerId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest)) { + return super.equals(obj); + } + com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest other = + (com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasCustomer() != other.hasCustomer()) return false; + if (hasCustomer()) { + if (!getCustomer().equals(other.getCustomer())) return false; + } + if (!getCustomerId().equals(other.getCustomerId())) return false; + if (!getUnknownFields().equals(other.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 (hasCustomer()) { + hash = (37 * hash) + CUSTOMER_FIELD_NUMBER; + hash = (53 * hash) + getCustomer().hashCode(); + } + hash = (37 * hash) + CUSTOMER_ID_FIELD_NUMBER; + hash = (53 * hash) + getCustomerId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request to create a customer
+   * 
+ * + * Protobuf type {@code google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest) + com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudcontrolspartner.v1beta.CustomersProto + .internal_static_google_cloud_cloudcontrolspartner_v1beta_CreateCustomerRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudcontrolspartner.v1beta.CustomersProto + .internal_static_google_cloud_cloudcontrolspartner_v1beta_CreateCustomerRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest.class, + com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest.Builder.class); + } + + // Construct using + // com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCustomerFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + customer_ = null; + if (customerBuilder_ != null) { + customerBuilder_.dispose(); + customerBuilder_ = null; + } + customerId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudcontrolspartner.v1beta.CustomersProto + .internal_static_google_cloud_cloudcontrolspartner_v1beta_CreateCustomerRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest + getDefaultInstanceForType() { + return com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest build() { + com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest buildPartial() { + com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest result = + new com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.customer_ = customerBuilder_ == null ? customer_ : customerBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.customerId_ = customerId_; + } + 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.cloudcontrolspartner.v1beta.CreateCustomerRequest) { + return mergeFrom( + (com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest other) { + if (other + == com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCustomer()) { + mergeCustomer(other.getCustomer()); + } + if (!other.getCustomerId().isEmpty()) { + customerId_ = other.customerId_; + 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 18: + { + input.readMessage(getCustomerFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + customerId_ = 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. Parent resource
+     * Format: `organizations/{organization}/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. Parent resource
+     * Format: `organizations/{organization}/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. Parent resource
+     * Format: `organizations/{organization}/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. Parent resource
+     * Format: `organizations/{organization}/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. Parent resource
+     * Format: `organizations/{organization}/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.cloudcontrolspartner.v1beta.Customer customer_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudcontrolspartner.v1beta.Customer, + com.google.cloud.cloudcontrolspartner.v1beta.Customer.Builder, + com.google.cloud.cloudcontrolspartner.v1beta.CustomerOrBuilder> + customerBuilder_; + /** + * + * + *
+     * Required. The customer to create.
+     * 
+ * + * + * .google.cloud.cloudcontrolspartner.v1beta.Customer customer = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customer field is set. + */ + public boolean hasCustomer() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The customer to create.
+     * 
+ * + * + * .google.cloud.cloudcontrolspartner.v1beta.Customer customer = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customer. + */ + public com.google.cloud.cloudcontrolspartner.v1beta.Customer getCustomer() { + if (customerBuilder_ == null) { + return customer_ == null + ? com.google.cloud.cloudcontrolspartner.v1beta.Customer.getDefaultInstance() + : customer_; + } else { + return customerBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The customer to create.
+     * 
+ * + * + * .google.cloud.cloudcontrolspartner.v1beta.Customer customer = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCustomer(com.google.cloud.cloudcontrolspartner.v1beta.Customer value) { + if (customerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customer_ = value; + } else { + customerBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The customer to create.
+     * 
+ * + * + * .google.cloud.cloudcontrolspartner.v1beta.Customer customer = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCustomer( + com.google.cloud.cloudcontrolspartner.v1beta.Customer.Builder builderForValue) { + if (customerBuilder_ == null) { + customer_ = builderForValue.build(); + } else { + customerBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The customer to create.
+     * 
+ * + * + * .google.cloud.cloudcontrolspartner.v1beta.Customer customer = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeCustomer(com.google.cloud.cloudcontrolspartner.v1beta.Customer value) { + if (customerBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && customer_ != null + && customer_ + != com.google.cloud.cloudcontrolspartner.v1beta.Customer.getDefaultInstance()) { + getCustomerBuilder().mergeFrom(value); + } else { + customer_ = value; + } + } else { + customerBuilder_.mergeFrom(value); + } + if (customer_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. The customer to create.
+     * 
+ * + * + * .google.cloud.cloudcontrolspartner.v1beta.Customer customer = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCustomer() { + bitField0_ = (bitField0_ & ~0x00000002); + customer_ = null; + if (customerBuilder_ != null) { + customerBuilder_.dispose(); + customerBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The customer to create.
+     * 
+ * + * + * .google.cloud.cloudcontrolspartner.v1beta.Customer customer = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.cloudcontrolspartner.v1beta.Customer.Builder getCustomerBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCustomerFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The customer to create.
+     * 
+ * + * + * .google.cloud.cloudcontrolspartner.v1beta.Customer customer = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.cloudcontrolspartner.v1beta.CustomerOrBuilder getCustomerOrBuilder() { + if (customerBuilder_ != null) { + return customerBuilder_.getMessageOrBuilder(); + } else { + return customer_ == null + ? com.google.cloud.cloudcontrolspartner.v1beta.Customer.getDefaultInstance() + : customer_; + } + } + /** + * + * + *
+     * Required. The customer to create.
+     * 
+ * + * + * .google.cloud.cloudcontrolspartner.v1beta.Customer customer = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudcontrolspartner.v1beta.Customer, + com.google.cloud.cloudcontrolspartner.v1beta.Customer.Builder, + com.google.cloud.cloudcontrolspartner.v1beta.CustomerOrBuilder> + getCustomerFieldBuilder() { + if (customerBuilder_ == null) { + customerBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudcontrolspartner.v1beta.Customer, + com.google.cloud.cloudcontrolspartner.v1beta.Customer.Builder, + com.google.cloud.cloudcontrolspartner.v1beta.CustomerOrBuilder>( + getCustomer(), getParentForChildren(), isClean()); + customer_ = null; + } + return customerBuilder_; + } + + private java.lang.Object customerId_ = ""; + /** + * + * + *
+     * Required. The customer id to use for the customer, which will become the
+     * final component of the customer's resource name. The specified value must
+     * be a valid Google cloud organization id.
+     * 
+ * + * string customer_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The customerId. + */ + public java.lang.String getCustomerId() { + java.lang.Object ref = customerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The customer id to use for the customer, which will become the
+     * final component of the customer's resource name. The specified value must
+     * be a valid Google cloud organization id.
+     * 
+ * + * string customer_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for customerId. + */ + public com.google.protobuf.ByteString getCustomerIdBytes() { + java.lang.Object ref = customerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The customer id to use for the customer, which will become the
+     * final component of the customer's resource name. The specified value must
+     * be a valid Google cloud organization id.
+     * 
+ * + * string customer_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The customerId to set. + * @return This builder for chaining. + */ + public Builder setCustomerId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + customerId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The customer id to use for the customer, which will become the
+     * final component of the customer's resource name. The specified value must
+     * be a valid Google cloud organization id.
+     * 
+ * + * string customer_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearCustomerId() { + customerId_ = getDefaultInstance().getCustomerId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The customer id to use for the customer, which will become the
+     * final component of the customer's resource name. The specified value must
+     * be a valid Google cloud organization id.
+     * 
+ * + * string customer_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for customerId to set. + * @return This builder for chaining. + */ + public Builder setCustomerIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customerId_ = 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.cloudcontrolspartner.v1beta.CreateCustomerRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest) + private static final com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest(); + } + + public static com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCustomerRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CreateCustomerRequestOrBuilder.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CreateCustomerRequestOrBuilder.java new file mode 100644 index 000000000000..b544565f19dd --- /dev/null +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CreateCustomerRequestOrBuilder.java @@ -0,0 +1,127 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/cloudcontrolspartner/v1beta/customers.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.cloudcontrolspartner.v1beta; + +public interface CreateCustomerRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Parent resource
+   * Format: `organizations/{organization}/locations/{location}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Parent resource
+   * Format: `organizations/{organization}/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 customer to create.
+   * 
+ * + * + * .google.cloud.cloudcontrolspartner.v1beta.Customer customer = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customer field is set. + */ + boolean hasCustomer(); + /** + * + * + *
+   * Required. The customer to create.
+   * 
+ * + * + * .google.cloud.cloudcontrolspartner.v1beta.Customer customer = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customer. + */ + com.google.cloud.cloudcontrolspartner.v1beta.Customer getCustomer(); + /** + * + * + *
+   * Required. The customer to create.
+   * 
+ * + * + * .google.cloud.cloudcontrolspartner.v1beta.Customer customer = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.cloudcontrolspartner.v1beta.CustomerOrBuilder getCustomerOrBuilder(); + + /** + * + * + *
+   * Required. The customer id to use for the customer, which will become the
+   * final component of the customer's resource name. The specified value must
+   * be a valid Google cloud organization id.
+   * 
+ * + * string customer_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The customerId. + */ + java.lang.String getCustomerId(); + /** + * + * + *
+   * Required. The customer id to use for the customer, which will become the
+   * final component of the customer's resource name. The specified value must
+   * be a valid Google cloud organization id.
+   * 
+ * + * string customer_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for customerId. + */ + com.google.protobuf.ByteString getCustomerIdBytes(); +} diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/Customer.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/Customer.java index a0b199d36fd4..7022ce118415 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/Customer.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/Customer.java @@ -41,6 +41,7 @@ private Customer(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Customer() { name_ = ""; displayName_ = ""; + organizationDomain_ = ""; } @java.lang.Override @@ -246,6 +247,59 @@ public boolean getIsOnboarded() { return isOnboarded_; } + public static final int ORGANIZATION_DOMAIN_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object organizationDomain_ = ""; + /** + * + * + *
+   * Output only. The customer organization domain, extracted from
+   * CRM Organization’s display_name field. e.g. "google.com"
+   * 
+ * + * string organization_domain = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The organizationDomain. + */ + @java.lang.Override + public java.lang.String getOrganizationDomain() { + java.lang.Object ref = organizationDomain_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationDomain_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The customer organization domain, extracted from
+   * CRM Organization’s display_name field. e.g. "google.com"
+   * 
+ * + * string organization_domain = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for organizationDomain. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrganizationDomainBytes() { + java.lang.Object ref = organizationDomain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + organizationDomain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -272,6 +326,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (isOnboarded_ != false) { output.writeBool(4, isOnboarded_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organizationDomain_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, organizationDomain_); + } getUnknownFields().writeTo(output); } @@ -294,6 +351,9 @@ public int getSerializedSize() { if (isOnboarded_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, isOnboarded_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organizationDomain_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, organizationDomain_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -317,6 +377,7 @@ public boolean equals(final java.lang.Object obj) { if (!getCustomerOnboardingState().equals(other.getCustomerOnboardingState())) return false; } if (getIsOnboarded() != other.getIsOnboarded()) return false; + if (!getOrganizationDomain().equals(other.getOrganizationDomain())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -338,6 +399,8 @@ public int hashCode() { } hash = (37 * hash) + IS_ONBOARDED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsOnboarded()); + hash = (37 * hash) + ORGANIZATION_DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationDomain().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -495,6 +558,7 @@ public Builder clear() { customerOnboardingStateBuilder_ = null; } isOnboarded_ = false; + organizationDomain_ = ""; return this; } @@ -548,6 +612,9 @@ private void buildPartial0(com.google.cloud.cloudcontrolspartner.v1beta.Customer if (((from_bitField0_ & 0x00000008) != 0)) { result.isOnboarded_ = isOnboarded_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.organizationDomain_ = organizationDomain_; + } result.bitField0_ |= to_bitField0_; } @@ -613,6 +680,11 @@ public Builder mergeFrom(com.google.cloud.cloudcontrolspartner.v1beta.Customer o if (other.getIsOnboarded() != false) { setIsOnboarded(other.getIsOnboarded()); } + if (!other.getOrganizationDomain().isEmpty()) { + organizationDomain_ = other.organizationDomain_; + bitField0_ |= 0x00000010; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -664,6 +736,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 32 + case 42: + { + organizationDomain_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1168,6 +1246,117 @@ public Builder clearIsOnboarded() { return this; } + private java.lang.Object organizationDomain_ = ""; + /** + * + * + *
+     * Output only. The customer organization domain, extracted from
+     * CRM Organization’s display_name field. e.g. "google.com"
+     * 
+ * + * string organization_domain = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The organizationDomain. + */ + public java.lang.String getOrganizationDomain() { + java.lang.Object ref = organizationDomain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationDomain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The customer organization domain, extracted from
+     * CRM Organization’s display_name field. e.g. "google.com"
+     * 
+ * + * string organization_domain = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for organizationDomain. + */ + public com.google.protobuf.ByteString getOrganizationDomainBytes() { + java.lang.Object ref = organizationDomain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + organizationDomain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The customer organization domain, extracted from
+     * CRM Organization’s display_name field. e.g. "google.com"
+     * 
+ * + * string organization_domain = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The organizationDomain to set. + * @return This builder for chaining. + */ + public Builder setOrganizationDomain(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + organizationDomain_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The customer organization domain, extracted from
+     * CRM Organization’s display_name field. e.g. "google.com"
+     * 
+ * + * string organization_domain = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearOrganizationDomain() { + organizationDomain_ = getDefaultInstance().getOrganizationDomain(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The customer organization domain, extracted from
+     * CRM Organization’s display_name field. e.g. "google.com"
+     * 
+ * + * string organization_domain = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for organizationDomain to set. + * @return This builder for chaining. + */ + public Builder setOrganizationDomainBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + organizationDomain_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CustomerOrBuilder.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CustomerOrBuilder.java index bca9756cbde5..50be860b669c 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CustomerOrBuilder.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CustomerOrBuilder.java @@ -130,4 +130,31 @@ public interface CustomerOrBuilder * @return The isOnboarded. */ boolean getIsOnboarded(); + + /** + * + * + *
+   * Output only. The customer organization domain, extracted from
+   * CRM Organization’s display_name field. e.g. "google.com"
+   * 
+ * + * string organization_domain = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The organizationDomain. + */ + java.lang.String getOrganizationDomain(); + /** + * + * + *
+   * Output only. The customer organization domain, extracted from
+   * CRM Organization’s display_name field. e.g. "google.com"
+   * 
+ * + * string organization_domain = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for organizationDomain. + */ + com.google.protobuf.ByteString getOrganizationDomainBytes(); } diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CustomersProto.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CustomersProto.java index d2cbba18bc2d..a065838d533f 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CustomersProto.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CustomersProto.java @@ -40,6 +40,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_cloudcontrolspartner_v1beta_ListCustomersResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_cloudcontrolspartner_v1beta_ListCustomersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudcontrolspartner_v1beta_CreateCustomerRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudcontrolspartner_v1beta_CreateCustomerRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_cloudcontrolspartner_v1beta_GetCustomerRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -52,6 +56,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_cloudcontrolspartner_v1beta_CustomerOnboardingStep_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_cloudcontrolspartner_v1beta_CustomerOnboardingStep_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudcontrolspartner_v1beta_UpdateCustomerRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudcontrolspartner_v1beta_UpdateCustomerRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudcontrolspartner_v1beta_DeleteCustomerRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_cloudcontrolspartner_v1beta_DeleteCustomerRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -66,47 +78,60 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ntrolspartner.v1beta\032\037google/api/field_b" + "ehavior.proto\032\031google/api/resource.proto" + "\032?google/cloud/cloudcontrolspartner/v1be" - + "ta/completion_state.proto\032\037google/protob" - + "uf/timestamp.proto\"\320\002\n\010Customer\022\021\n\004name\030" - + "\001 \001(\tB\003\340A\010\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022i\n" - + "\031customer_onboarding_state\030\003 \001(\0132A.googl" - + "e.cloud.cloudcontrolspartner.v1beta.Cust" - + "omerOnboardingStateB\003\340A\003\022\031\n\014is_onboarded" - + "\030\004 \001(\010B\003\340A\003:\217\001\352A\213\001\n,cloudcontrolspartner" - + ".googleapis.com/Customer\022Forganizations/" - + "{organization}/locations/{location}/cust" - + "omers/{customer}*\tcustomers2\010customer\"\257\001" - + "\n\024ListCustomersRequest\022D\n\006parent\030\001 \001(\tB4" - + "\340A\002\372A.\022,cloudcontrolspartner.googleapis." - + "com/Customer\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_" - + "token\030\003 \001(\t\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010orde" - + "r_by\030\005 \001(\tB\003\340A\001\"\214\001\n\025ListCustomersRespons" - + "e\022E\n\tcustomers\030\001 \003(\01322.google.cloud.clou" - + "dcontrolspartner.v1beta.Customer\022\027\n\017next" - + "_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"X" - + "\n\022GetCustomerRequest\022B\n\004name\030\001 \001(\tB4\340A\002\372" - + "A.\n,cloudcontrolspartner.googleapis.com/" - + "Customer\"u\n\027CustomerOnboardingState\022Z\n\020o" - + "nboarding_steps\030\001 \003(\0132@.google.cloud.clo" - + "udcontrolspartner.v1beta.CustomerOnboard" - + "ingStep\"\370\002\n\026CustomerOnboardingStep\022S\n\004st" - + "ep\030\001 \001(\0162E.google.cloud.cloudcontrolspar" - + "tner.v1beta.CustomerOnboardingStep.Step\022" - + ".\n\nstart_time\030\002 \001(\0132\032.google.protobuf.Ti" - + "mestamp\0223\n\017completion_time\030\003 \001(\0132\032.googl" - + "e.protobuf.Timestamp\022X\n\020completion_state" - + "\030\004 \001(\01629.google.cloud.cloudcontrolspartn" - + "er.v1beta.CompletionStateB\003\340A\003\"J\n\004Step\022\024" - + "\n\020STEP_UNSPECIFIED\020\000\022\022\n\016KAJ_ENROLLMENT\020\001" - + "\022\030\n\024CUSTOMER_ENVIRONMENT\020\002B\246\002\n,com.googl" - + "e.cloud.cloudcontrolspartner.v1betaB\016Cus" - + "tomersProtoP\001Z`cloud.google.com/go/cloud" - + "controlspartner/apiv1beta/cloudcontrolsp" - + "artnerpb;cloudcontrolspartnerpb\252\002(Google" - + ".Cloud.CloudControlsPartner.V1Beta\312\002(Goo" - + "gle\\Cloud\\CloudControlsPartner\\V1beta\352\002+" - + "Google::Cloud::CloudControlsPartner::V1b" - + "etab\006proto3" + + "ta/completion_state.proto\032 google/protob" + + "uf/field_mask.proto\032\037google/protobuf/tim" + + "estamp.proto\"\362\002\n\010Customer\022\021\n\004name\030\001 \001(\tB" + + "\003\340A\010\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022i\n\031custo" + + "mer_onboarding_state\030\003 \001(\0132A.google.clou" + + "d.cloudcontrolspartner.v1beta.CustomerOn" + + "boardingStateB\003\340A\003\022\031\n\014is_onboarded\030\004 \001(\010" + + "B\003\340A\003\022 \n\023organization_domain\030\005 \001(\tB\003\340A\003:" + + "\217\001\352A\213\001\n,cloudcontrolspartner.googleapis." + + "com/Customer\022Forganizations/{organizatio" + + "n}/locations/{location}/customers/{custo" + + "mer}*\tcustomers2\010customer\"\257\001\n\024ListCustom" + + "ersRequest\022D\n\006parent\030\001 \001(\tB4\340A\002\372A.\022,clou" + + "dcontrolspartner.googleapis.com/Customer" + + "\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022" + + "\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003" + + "\340A\001\"\214\001\n\025ListCustomersResponse\022E\n\tcustome" + + "rs\030\001 \003(\01322.google.cloud.cloudcontrolspar" + + "tner.v1beta.Customer\022\027\n\017next_page_token\030" + + "\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\302\001\n\025CreateCus" + + "tomerRequest\022D\n\006parent\030\001 \001(\tB4\340A\002\372A.\022,cl" + + "oudcontrolspartner.googleapis.com/Custom" + + "er\022I\n\010customer\030\002 \001(\01322.google.cloud.clou" + + "dcontrolspartner.v1beta.CustomerB\003\340A\002\022\030\n" + + "\013customer_id\030\003 \001(\tB\003\340A\002\"X\n\022GetCustomerRe" + + "quest\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,cloudcontro" + + "lspartner.googleapis.com/Customer\"u\n\027Cus" + + "tomerOnboardingState\022Z\n\020onboarding_steps" + + "\030\001 \003(\0132@.google.cloud.cloudcontrolspartn" + + "er.v1beta.CustomerOnboardingStep\"\370\002\n\026Cus" + + "tomerOnboardingStep\022S\n\004step\030\001 \001(\0162E.goog" + + "le.cloud.cloudcontrolspartner.v1beta.Cus" + + "tomerOnboardingStep.Step\022.\n\nstart_time\030\002" + + " \001(\0132\032.google.protobuf.Timestamp\0223\n\017comp" + + "letion_time\030\003 \001(\0132\032.google.protobuf.Time" + + "stamp\022X\n\020completion_state\030\004 \001(\01629.google" + + ".cloud.cloudcontrolspartner.v1beta.Compl" + + "etionStateB\003\340A\003\"J\n\004Step\022\024\n\020STEP_UNSPECIF" + + "IED\020\000\022\022\n\016KAJ_ENROLLMENT\020\001\022\030\n\024CUSTOMER_EN" + + "VIRONMENT\020\002\"\230\001\n\025UpdateCustomerRequest\022I\n" + + "\010customer\030\001 \001(\01322.google.cloud.cloudcont" + + "rolspartner.v1beta.CustomerB\003\340A\002\0224\n\013upda" + + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" + + "kB\003\340A\001\"[\n\025DeleteCustomerRequest\022B\n\004name\030" + + "\001 \001(\tB4\340A\002\372A.\n,cloudcontrolspartner.goog" + + "leapis.com/CustomerB\246\002\n,com.google.cloud" + + ".cloudcontrolspartner.v1betaB\016CustomersP" + + "rotoP\001Z`cloud.google.com/go/cloudcontrol" + + "spartner/apiv1beta/cloudcontrolspartnerp" + + "b;cloudcontrolspartnerpb\252\002(Google.Cloud." + + "CloudControlsPartner.V1Beta\312\002(Google\\Clo" + + "ud\\CloudControlsPartner\\V1beta\352\002+Google:" + + ":Cloud::CloudControlsPartner::V1betab\006pr" + + "oto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -115,6 +140,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.cloudcontrolspartner.v1beta.CompletionStateProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_cloudcontrolspartner_v1beta_Customer_descriptor = @@ -123,7 +149,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_cloudcontrolspartner_v1beta_Customer_descriptor, new java.lang.String[] { - "Name", "DisplayName", "CustomerOnboardingState", "IsOnboarded", + "Name", "DisplayName", "CustomerOnboardingState", "IsOnboarded", "OrganizationDomain", }); internal_static_google_cloud_cloudcontrolspartner_v1beta_ListCustomersRequest_descriptor = getDescriptor().getMessageTypes().get(1); @@ -141,8 +167,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Customers", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_cloudcontrolspartner_v1beta_GetCustomerRequest_descriptor = + internal_static_google_cloud_cloudcontrolspartner_v1beta_CreateCustomerRequest_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_cloudcontrolspartner_v1beta_CreateCustomerRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_cloudcontrolspartner_v1beta_CreateCustomerRequest_descriptor, + new java.lang.String[] { + "Parent", "Customer", "CustomerId", + }); + internal_static_google_cloud_cloudcontrolspartner_v1beta_GetCustomerRequest_descriptor = + getDescriptor().getMessageTypes().get(4); internal_static_google_cloud_cloudcontrolspartner_v1beta_GetCustomerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_cloudcontrolspartner_v1beta_GetCustomerRequest_descriptor, @@ -150,7 +184,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_cloudcontrolspartner_v1beta_CustomerOnboardingState_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(5); internal_static_google_cloud_cloudcontrolspartner_v1beta_CustomerOnboardingState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_cloudcontrolspartner_v1beta_CustomerOnboardingState_descriptor, @@ -158,13 +192,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OnboardingSteps", }); internal_static_google_cloud_cloudcontrolspartner_v1beta_CustomerOnboardingStep_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(6); internal_static_google_cloud_cloudcontrolspartner_v1beta_CustomerOnboardingStep_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_cloudcontrolspartner_v1beta_CustomerOnboardingStep_descriptor, new java.lang.String[] { "Step", "StartTime", "CompletionTime", "CompletionState", }); + internal_static_google_cloud_cloudcontrolspartner_v1beta_UpdateCustomerRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_cloudcontrolspartner_v1beta_UpdateCustomerRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_cloudcontrolspartner_v1beta_UpdateCustomerRequest_descriptor, + new java.lang.String[] { + "Customer", "UpdateMask", + }); + internal_static_google_cloud_cloudcontrolspartner_v1beta_DeleteCustomerRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_cloudcontrolspartner_v1beta_DeleteCustomerRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_cloudcontrolspartner_v1beta_DeleteCustomerRequest_descriptor, + new java.lang.String[] { + "Name", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); @@ -175,6 +225,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.cloudcontrolspartner.v1beta.CompletionStateProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/DeleteCustomerRequest.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/DeleteCustomerRequest.java new file mode 100644 index 000000000000..98ccfc03beb4 --- /dev/null +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/DeleteCustomerRequest.java @@ -0,0 +1,658 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/cloudcontrolspartner/v1beta/customers.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.cloudcontrolspartner.v1beta; + +/** + * + * + *
+ * Message for deleting customer
+ * 
+ * + * Protobuf type {@code google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest} + */ +public final class DeleteCustomerRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest) + DeleteCustomerRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteCustomerRequest.newBuilder() to construct. + private DeleteCustomerRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteCustomerRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteCustomerRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudcontrolspartner.v1beta.CustomersProto + .internal_static_google_cloud_cloudcontrolspartner_v1beta_DeleteCustomerRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudcontrolspartner.v1beta.CustomersProto + .internal_static_google_cloud_cloudcontrolspartner_v1beta_DeleteCustomerRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest.class, + com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. name of the resource to be deleted
+   * format: name=organizations/*/locations/*/customers/*
+   * 
+ * + * + * 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 resource to be deleted
+   * format: name=organizations/*/locations/*/customers/*
+   * 
+ * + * + * 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.cloudcontrolspartner.v1beta.DeleteCustomerRequest)) { + return super.equals(obj); + } + com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest other = + (com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest) 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.cloudcontrolspartner.v1beta.DeleteCustomerRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Message for deleting customer
+   * 
+ * + * Protobuf type {@code google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest) + com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudcontrolspartner.v1beta.CustomersProto + .internal_static_google_cloud_cloudcontrolspartner_v1beta_DeleteCustomerRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudcontrolspartner.v1beta.CustomersProto + .internal_static_google_cloud_cloudcontrolspartner_v1beta_DeleteCustomerRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest.class, + com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest.Builder.class); + } + + // Construct using + // com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest.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.cloudcontrolspartner.v1beta.CustomersProto + .internal_static_google_cloud_cloudcontrolspartner_v1beta_DeleteCustomerRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest + getDefaultInstanceForType() { + return com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest build() { + com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest buildPartial() { + com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest result = + new com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest 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.cloudcontrolspartner.v1beta.DeleteCustomerRequest) { + return mergeFrom( + (com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest other) { + if (other + == com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest + .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. name of the resource to be deleted
+     * format: name=organizations/*/locations/*/customers/*
+     * 
+ * + * + * 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 resource to be deleted
+     * format: name=organizations/*/locations/*/customers/*
+     * 
+ * + * + * 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 resource to be deleted
+     * format: name=organizations/*/locations/*/customers/*
+     * 
+ * + * + * 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 resource to be deleted
+     * format: name=organizations/*/locations/*/customers/*
+     * 
+ * + * + * 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 resource to be deleted
+     * format: name=organizations/*/locations/*/customers/*
+     * 
+ * + * + * 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.cloudcontrolspartner.v1beta.DeleteCustomerRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest) + private static final com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest(); + } + + public static com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteCustomerRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/DeleteCustomerRequestOrBuilder.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/DeleteCustomerRequestOrBuilder.java new file mode 100644 index 000000000000..c0e593cd2c64 --- /dev/null +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/DeleteCustomerRequestOrBuilder.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/cloudcontrolspartner/v1beta/customers.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.cloudcontrolspartner.v1beta; + +public interface DeleteCustomerRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. name of the resource to be deleted
+   * format: name=organizations/*/locations/*/customers/*
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. name of the resource to be deleted
+   * format: name=organizations/*/locations/*/customers/*
+   * 
+ * + * + * 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-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/EkmMetadata.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/EkmMetadata.java index e8a2487661ac..9f04927a022e 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/EkmMetadata.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/EkmMetadata.java @@ -120,11 +120,12 @@ public enum EkmSolution implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * EKM Partner Virtu
+     * This enum value is never used.
      * 
* - * VIRTRU = 4; + * VIRTRU = 4 [deprecated = true]; */ + @java.lang.Deprecated VIRTRU(4), UNRECOGNIZED(-1), ; @@ -173,12 +174,12 @@ public enum EkmSolution implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * EKM Partner Virtu
+     * This enum value is never used.
      * 
* - * VIRTRU = 4; + * VIRTRU = 4 [deprecated = true]; */ - public static final int VIRTRU_VALUE = 4; + @java.lang.Deprecated public static final int VIRTRU_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/OperationMetadata.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/OperationMetadata.java index 349f421db603..941ddba75b1f 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/OperationMetadata.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/OperationMetadata.java @@ -326,7 +326,7 @@ 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
+   * have [Operation.error][google.longrunning.Operation.error] value with a
    * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
    * `Code.CANCELLED`.
    * 
@@ -1625,7 +1625,7 @@ 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
+     * have [Operation.error][google.longrunning.Operation.error] value with a
      * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
      * `Code.CANCELLED`.
      * 
@@ -1644,7 +1644,7 @@ 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
+     * have [Operation.error][google.longrunning.Operation.error] value with a
      * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
      * `Code.CANCELLED`.
      * 
@@ -1667,7 +1667,7 @@ 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
+     * have [Operation.error][google.longrunning.Operation.error] value with a
      * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
      * `Code.CANCELLED`.
      * 
diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/OperationMetadataOrBuilder.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/OperationMetadataOrBuilder.java index 7346d1b16b90..9bbffd873c8a 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/OperationMetadataOrBuilder.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/OperationMetadataOrBuilder.java @@ -181,7 +181,7 @@ 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
+   * have [Operation.error][google.longrunning.Operation.error] value with a
    * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
    * `Code.CANCELLED`.
    * 
diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/PartnersProto.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/PartnersProto.java index 8de00b40958c..4fcd71f6671e 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/PartnersProto.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/PartnersProto.java @@ -72,20 +72,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007partner\"V\n\021GetPartnerRequest\022A\n\004name\030\001 " + "\001(\tB3\340A\002\372A-\n+cloudcontrolspartner.google" + "apis.com/Partner\"\'\n\003Sku\022\n\n\002id\030\001 \001(\t\022\024\n\014d" - + "isplay_name\030\002 \001(\t\"\340\001\n\013EkmMetadata\022W\n\014ekm" + + "isplay_name\030\002 \001(\t\"\344\001\n\013EkmMetadata\022W\n\014ekm" + "_solution\030\001 \001(\0162A.google.cloud.cloudcont" + "rolspartner.v1beta.EkmMetadata.EkmSoluti" - + "on\022\030\n\020ekm_endpoint_uri\030\002 \001(\t\"^\n\013EkmSolut" + + "on\022\030\n\020ekm_endpoint_uri\030\002 \001(\t\"b\n\013EkmSolut" + "ion\022\034\n\030EKM_SOLUTION_UNSPECIFIED\020\000\022\014\n\010FOR" - + "TANIX\020\001\022\013\n\007FUTUREX\020\002\022\n\n\006THALES\020\003\022\n\n\006VIRT" - + "RU\020\004B\245\002\n,com.google.cloud.cloudcontrolsp" - + "artner.v1betaB\rPartnersProtoP\001Z`cloud.go" - + "ogle.com/go/cloudcontrolspartner/apiv1be" - + "ta/cloudcontrolspartnerpb;cloudcontrolsp" - + "artnerpb\252\002(Google.Cloud.CloudControlsPar" - + "tner.V1Beta\312\002(Google\\Cloud\\CloudControls" - + "Partner\\V1beta\352\002+Google::Cloud::CloudCon" - + "trolsPartner::V1betab\006proto3" + + "TANIX\020\001\022\013\n\007FUTUREX\020\002\022\n\n\006THALES\020\003\022\016\n\006VIRT" + + "RU\020\004\032\002\010\001B\245\002\n,com.google.cloud.cloudcontr" + + "olspartner.v1betaB\rPartnersProtoP\001Z`clou" + + "d.google.com/go/cloudcontrolspartner/api" + + "v1beta/cloudcontrolspartnerpb;cloudcontr" + + "olspartnerpb\252\002(Google.Cloud.CloudControl" + + "sPartner.V1Beta\312\002(Google\\Cloud\\CloudCont" + + "rolsPartner\\V1beta\352\002+Google::Cloud::Clou" + + "dControlsPartner::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/UpdateCustomerRequest.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/UpdateCustomerRequest.java new file mode 100644 index 000000000000..68ae230da5cc --- /dev/null +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/UpdateCustomerRequest.java @@ -0,0 +1,1059 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/cloudcontrolspartner/v1beta/customers.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.cloudcontrolspartner.v1beta; + +/** + * + * + *
+ * Request to update a customer
+ * 
+ * + * Protobuf type {@code google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest} + */ +public final class UpdateCustomerRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest) + UpdateCustomerRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateCustomerRequest.newBuilder() to construct. + private UpdateCustomerRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateCustomerRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateCustomerRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudcontrolspartner.v1beta.CustomersProto + .internal_static_google_cloud_cloudcontrolspartner_v1beta_UpdateCustomerRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudcontrolspartner.v1beta.CustomersProto + .internal_static_google_cloud_cloudcontrolspartner_v1beta_UpdateCustomerRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest.class, + com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest.Builder.class); + } + + private int bitField0_; + public static final int CUSTOMER_FIELD_NUMBER = 1; + private com.google.cloud.cloudcontrolspartner.v1beta.Customer customer_; + /** + * + * + *
+   * Required. The customer to update
+   * Format:
+   * `organizations/{organization}/locations/{location}/customers/{customer}`
+   * 
+ * + * + * .google.cloud.cloudcontrolspartner.v1beta.Customer customer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customer field is set. + */ + @java.lang.Override + public boolean hasCustomer() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. The customer to update
+   * Format:
+   * `organizations/{organization}/locations/{location}/customers/{customer}`
+   * 
+ * + * + * .google.cloud.cloudcontrolspartner.v1beta.Customer customer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customer. + */ + @java.lang.Override + public com.google.cloud.cloudcontrolspartner.v1beta.Customer getCustomer() { + return customer_ == null + ? com.google.cloud.cloudcontrolspartner.v1beta.Customer.getDefaultInstance() + : customer_; + } + /** + * + * + *
+   * Required. The customer to update
+   * Format:
+   * `organizations/{organization}/locations/{location}/customers/{customer}`
+   * 
+ * + * + * .google.cloud.cloudcontrolspartner.v1beta.Customer customer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.cloudcontrolspartner.v1beta.CustomerOrBuilder getCustomerOrBuilder() { + return customer_ == null + ? com.google.cloud.cloudcontrolspartner.v1beta.Customer.getDefaultInstance() + : customer_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Optional. The list of fields to update
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Optional. The list of fields to update
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.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. The list of fields to update
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getCustomer()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCustomer()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest)) { + return super.equals(obj); + } + com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest other = + (com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest) obj; + + if (hasCustomer() != other.hasCustomer()) return false; + if (hasCustomer()) { + if (!getCustomer().equals(other.getCustomer())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCustomer()) { + hash = (37 * hash) + CUSTOMER_FIELD_NUMBER; + hash = (53 * hash) + getCustomer().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request to update a customer
+   * 
+ * + * Protobuf type {@code google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest) + com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudcontrolspartner.v1beta.CustomersProto + .internal_static_google_cloud_cloudcontrolspartner_v1beta_UpdateCustomerRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudcontrolspartner.v1beta.CustomersProto + .internal_static_google_cloud_cloudcontrolspartner_v1beta_UpdateCustomerRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest.class, + com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest.Builder.class); + } + + // Construct using + // com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCustomerFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + customer_ = null; + if (customerBuilder_ != null) { + customerBuilder_.dispose(); + customerBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudcontrolspartner.v1beta.CustomersProto + .internal_static_google_cloud_cloudcontrolspartner_v1beta_UpdateCustomerRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest + getDefaultInstanceForType() { + return com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest build() { + com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest buildPartial() { + com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest result = + new com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.customer_ = customerBuilder_ == null ? customer_ : customerBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest) { + return mergeFrom( + (com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest other) { + if (other + == com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest + .getDefaultInstance()) return this; + if (other.hasCustomer()) { + mergeCustomer(other.getCustomer()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getCustomerFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.cloudcontrolspartner.v1beta.Customer customer_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudcontrolspartner.v1beta.Customer, + com.google.cloud.cloudcontrolspartner.v1beta.Customer.Builder, + com.google.cloud.cloudcontrolspartner.v1beta.CustomerOrBuilder> + customerBuilder_; + /** + * + * + *
+     * Required. The customer to update
+     * Format:
+     * `organizations/{organization}/locations/{location}/customers/{customer}`
+     * 
+ * + * + * .google.cloud.cloudcontrolspartner.v1beta.Customer customer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customer field is set. + */ + public boolean hasCustomer() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The customer to update
+     * Format:
+     * `organizations/{organization}/locations/{location}/customers/{customer}`
+     * 
+ * + * + * .google.cloud.cloudcontrolspartner.v1beta.Customer customer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customer. + */ + public com.google.cloud.cloudcontrolspartner.v1beta.Customer getCustomer() { + if (customerBuilder_ == null) { + return customer_ == null + ? com.google.cloud.cloudcontrolspartner.v1beta.Customer.getDefaultInstance() + : customer_; + } else { + return customerBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The customer to update
+     * Format:
+     * `organizations/{organization}/locations/{location}/customers/{customer}`
+     * 
+ * + * + * .google.cloud.cloudcontrolspartner.v1beta.Customer customer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCustomer(com.google.cloud.cloudcontrolspartner.v1beta.Customer value) { + if (customerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customer_ = value; + } else { + customerBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The customer to update
+     * Format:
+     * `organizations/{organization}/locations/{location}/customers/{customer}`
+     * 
+ * + * + * .google.cloud.cloudcontrolspartner.v1beta.Customer customer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCustomer( + com.google.cloud.cloudcontrolspartner.v1beta.Customer.Builder builderForValue) { + if (customerBuilder_ == null) { + customer_ = builderForValue.build(); + } else { + customerBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The customer to update
+     * Format:
+     * `organizations/{organization}/locations/{location}/customers/{customer}`
+     * 
+ * + * + * .google.cloud.cloudcontrolspartner.v1beta.Customer customer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeCustomer(com.google.cloud.cloudcontrolspartner.v1beta.Customer value) { + if (customerBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && customer_ != null + && customer_ + != com.google.cloud.cloudcontrolspartner.v1beta.Customer.getDefaultInstance()) { + getCustomerBuilder().mergeFrom(value); + } else { + customer_ = value; + } + } else { + customerBuilder_.mergeFrom(value); + } + if (customer_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. The customer to update
+     * Format:
+     * `organizations/{organization}/locations/{location}/customers/{customer}`
+     * 
+ * + * + * .google.cloud.cloudcontrolspartner.v1beta.Customer customer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCustomer() { + bitField0_ = (bitField0_ & ~0x00000001); + customer_ = null; + if (customerBuilder_ != null) { + customerBuilder_.dispose(); + customerBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The customer to update
+     * Format:
+     * `organizations/{organization}/locations/{location}/customers/{customer}`
+     * 
+ * + * + * .google.cloud.cloudcontrolspartner.v1beta.Customer customer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.cloudcontrolspartner.v1beta.Customer.Builder getCustomerBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCustomerFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The customer to update
+     * Format:
+     * `organizations/{organization}/locations/{location}/customers/{customer}`
+     * 
+ * + * + * .google.cloud.cloudcontrolspartner.v1beta.Customer customer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.cloudcontrolspartner.v1beta.CustomerOrBuilder getCustomerOrBuilder() { + if (customerBuilder_ != null) { + return customerBuilder_.getMessageOrBuilder(); + } else { + return customer_ == null + ? com.google.cloud.cloudcontrolspartner.v1beta.Customer.getDefaultInstance() + : customer_; + } + } + /** + * + * + *
+     * Required. The customer to update
+     * Format:
+     * `organizations/{organization}/locations/{location}/customers/{customer}`
+     * 
+ * + * + * .google.cloud.cloudcontrolspartner.v1beta.Customer customer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudcontrolspartner.v1beta.Customer, + com.google.cloud.cloudcontrolspartner.v1beta.Customer.Builder, + com.google.cloud.cloudcontrolspartner.v1beta.CustomerOrBuilder> + getCustomerFieldBuilder() { + if (customerBuilder_ == null) { + customerBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.cloudcontrolspartner.v1beta.Customer, + com.google.cloud.cloudcontrolspartner.v1beta.Customer.Builder, + com.google.cloud.cloudcontrolspartner.v1beta.CustomerOrBuilder>( + getCustomer(), getParentForChildren(), isClean()); + customer_ = null; + } + return customerBuilder_; + } + + 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. The list of fields to update
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Optional. The list of fields to update
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.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. The list of fields to update
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The list of fields to update
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The list of fields to update
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. The list of fields to update
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The list of fields to update
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. The list of fields to update
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.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. The list of fields to update
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest) + private static final com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest(); + } + + public static com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCustomerRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/UpdateCustomerRequestOrBuilder.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/UpdateCustomerRequestOrBuilder.java new file mode 100644 index 000000000000..027fd0d59cd4 --- /dev/null +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/UpdateCustomerRequestOrBuilder.java @@ -0,0 +1,111 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/cloudcontrolspartner/v1beta/customers.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.cloudcontrolspartner.v1beta; + +public interface UpdateCustomerRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The customer to update
+   * Format:
+   * `organizations/{organization}/locations/{location}/customers/{customer}`
+   * 
+ * + * + * .google.cloud.cloudcontrolspartner.v1beta.Customer customer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customer field is set. + */ + boolean hasCustomer(); + /** + * + * + *
+   * Required. The customer to update
+   * Format:
+   * `organizations/{organization}/locations/{location}/customers/{customer}`
+   * 
+ * + * + * .google.cloud.cloudcontrolspartner.v1beta.Customer customer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customer. + */ + com.google.cloud.cloudcontrolspartner.v1beta.Customer getCustomer(); + /** + * + * + *
+   * Required. The customer to update
+   * Format:
+   * `organizations/{organization}/locations/{location}/customers/{customer}`
+   * 
+ * + * + * .google.cloud.cloudcontrolspartner.v1beta.Customer customer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.cloudcontrolspartner.v1beta.CustomerOrBuilder getCustomerOrBuilder(); + + /** + * + * + *
+   * Optional. The list of fields to update
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Optional. The list of fields to update
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Optional. The list of fields to update
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/core.proto b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/core.proto index d3fd49f43a85..573ad1f3f6c8 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/core.proto +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/core.proto @@ -26,6 +26,7 @@ import "google/cloud/cloudcontrolspartner/v1beta/customers.proto"; import "google/cloud/cloudcontrolspartner/v1beta/ekm_connections.proto"; import "google/cloud/cloudcontrolspartner/v1beta/partner_permissions.proto"; import "google/cloud/cloudcontrolspartner/v1beta/partners.proto"; +import "google/protobuf/empty.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.CloudControlsPartner.V1Beta"; @@ -113,6 +114,32 @@ service CloudControlsPartnerCore { }; option (google.api.method_signature) = "name"; } + + // Creates a new customer. + rpc CreateCustomer(CreateCustomerRequest) returns (Customer) { + option (google.api.http) = { + post: "/v1beta/{parent=organizations/*/locations/*}/customers" + body: "customer" + }; + option (google.api.method_signature) = "parent,customer,customer_id"; + } + + // Update details of a single customer + rpc UpdateCustomer(UpdateCustomerRequest) returns (Customer) { + option (google.api.http) = { + patch: "/v1beta/{customer.name=organizations/*/locations/*/customers/*}" + body: "customer" + }; + option (google.api.method_signature) = "customer,update_mask"; + } + + // Delete details of a single customer + rpc DeleteCustomer(DeleteCustomerRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1beta/{name=organizations/*/locations/*/customers/*}" + }; + option (google.api.method_signature) = "name"; + } } // Represents the metadata of the long-running operation. @@ -136,7 +163,7 @@ 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 + // have [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-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/customers.proto b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/customers.proto index fc0c6fc66e6d..6b8e346ffb25 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/customers.proto +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/customers.proto @@ -19,6 +19,7 @@ package google.cloud.cloudcontrolspartner.v1beta; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/cloudcontrolspartner/v1beta/completion_state.proto"; +import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.CloudControlsPartner.V1Beta"; @@ -51,6 +52,10 @@ message Customer { // Output only. Indicates whether a customer is fully onboarded bool is_onboarded = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The customer organization domain, extracted from + // CRM Organization’s display_name field. e.g. "google.com" + string organization_domain = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Request to list customers @@ -92,6 +97,26 @@ message ListCustomersResponse { repeated string unreachable = 3; } +// Request to create a customer +message CreateCustomerRequest { + // Required. Parent resource + // Format: `organizations/{organization}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "cloudcontrolspartner.googleapis.com/Customer" + } + ]; + + // Required. The customer to create. + Customer customer = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The customer id to use for the customer, which will become the + // final component of the customer's resource name. The specified value must + // be a valid Google cloud organization id. + string customer_id = 3 [(google.api.field_behavior) = REQUIRED]; +} + // Message for getting a customer message GetCustomerRequest { // Required. Format: @@ -137,3 +162,27 @@ message CustomerOnboardingStep { CompletionState completion_state = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } + +// Request to update a customer +message UpdateCustomerRequest { + // Required. The customer to update + // Format: + // `organizations/{organization}/locations/{location}/customers/{customer}` + Customer customer = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The list of fields to update + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for deleting customer +message DeleteCustomerRequest { + // Required. name of the resource to be deleted + // format: name=organizations/*/locations/*/customers/* + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudcontrolspartner.googleapis.com/Customer" + } + ]; +} diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/partners.proto b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/partners.proto index 822370ad58bc..c27c45b24c8b 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/partners.proto +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/partners.proto @@ -108,8 +108,8 @@ message EkmMetadata { // EKM Partner Thales THALES = 3; - // EKM Partner Virtu - VIRTRU = 4; + // This enum value is never used. + VIRTRU = 4 [deprecated = true]; } // The Cloud EKM partner. diff --git a/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnercore/createcustomer/AsyncCreateCustomer.java b/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnercore/createcustomer/AsyncCreateCustomer.java new file mode 100644 index 000000000000..a3a6f9ab8a86 --- /dev/null +++ b/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnercore/createcustomer/AsyncCreateCustomer.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.cloudcontrolspartner.v1beta.samples; + +// [START cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_CreateCustomer_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreClient; +import com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest; +import com.google.cloud.cloudcontrolspartner.v1beta.Customer; +import com.google.cloud.cloudcontrolspartner.v1beta.OrganizationLocationName; + +public class AsyncCreateCustomer { + + public static void main(String[] args) throws Exception { + asyncCreateCustomer(); + } + + public static void asyncCreateCustomer() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = + CloudControlsPartnerCoreClient.create()) { + CreateCustomerRequest request = + CreateCustomerRequest.newBuilder() + .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setCustomer(Customer.newBuilder().build()) + .setCustomerId("customerId-1581184615") + .build(); + ApiFuture future = + cloudControlsPartnerCoreClient.createCustomerCallable().futureCall(request); + // Do something. + Customer response = future.get(); + } + } +} +// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_CreateCustomer_async] diff --git a/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnercore/createcustomer/SyncCreateCustomer.java b/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnercore/createcustomer/SyncCreateCustomer.java new file mode 100644 index 000000000000..0b494d2e7950 --- /dev/null +++ b/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnercore/createcustomer/SyncCreateCustomer.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.cloudcontrolspartner.v1beta.samples; + +// [START cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_CreateCustomer_sync] +import com.google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreClient; +import com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest; +import com.google.cloud.cloudcontrolspartner.v1beta.Customer; +import com.google.cloud.cloudcontrolspartner.v1beta.OrganizationLocationName; + +public class SyncCreateCustomer { + + public static void main(String[] args) throws Exception { + syncCreateCustomer(); + } + + public static void syncCreateCustomer() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = + CloudControlsPartnerCoreClient.create()) { + CreateCustomerRequest request = + CreateCustomerRequest.newBuilder() + .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setCustomer(Customer.newBuilder().build()) + .setCustomerId("customerId-1581184615") + .build(); + Customer response = cloudControlsPartnerCoreClient.createCustomer(request); + } + } +} +// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_CreateCustomer_sync] diff --git a/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnercore/createcustomer/SyncCreateCustomerOrganizationlocationnameCustomerString.java b/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnercore/createcustomer/SyncCreateCustomerOrganizationlocationnameCustomerString.java new file mode 100644 index 000000000000..a06f72b4dbf9 --- /dev/null +++ b/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnercore/createcustomer/SyncCreateCustomerOrganizationlocationnameCustomerString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.cloudcontrolspartner.v1beta.samples; + +// [START cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_CreateCustomer_OrganizationlocationnameCustomerString_sync] +import com.google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreClient; +import com.google.cloud.cloudcontrolspartner.v1beta.Customer; +import com.google.cloud.cloudcontrolspartner.v1beta.OrganizationLocationName; + +public class SyncCreateCustomerOrganizationlocationnameCustomerString { + + public static void main(String[] args) throws Exception { + syncCreateCustomerOrganizationlocationnameCustomerString(); + } + + public static void syncCreateCustomerOrganizationlocationnameCustomerString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = + CloudControlsPartnerCoreClient.create()) { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + Customer customer = Customer.newBuilder().build(); + String customerId = "customerId-1581184615"; + Customer response = + cloudControlsPartnerCoreClient.createCustomer(parent, customer, customerId); + } + } +} +// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_CreateCustomer_OrganizationlocationnameCustomerString_sync] diff --git a/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnercore/createcustomer/SyncCreateCustomerStringCustomerString.java b/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnercore/createcustomer/SyncCreateCustomerStringCustomerString.java new file mode 100644 index 000000000000..890a7ceb147f --- /dev/null +++ b/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnercore/createcustomer/SyncCreateCustomerStringCustomerString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.cloudcontrolspartner.v1beta.samples; + +// [START cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_CreateCustomer_StringCustomerString_sync] +import com.google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreClient; +import com.google.cloud.cloudcontrolspartner.v1beta.Customer; +import com.google.cloud.cloudcontrolspartner.v1beta.OrganizationLocationName; + +public class SyncCreateCustomerStringCustomerString { + + public static void main(String[] args) throws Exception { + syncCreateCustomerStringCustomerString(); + } + + public static void syncCreateCustomerStringCustomerString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = + CloudControlsPartnerCoreClient.create()) { + String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString(); + Customer customer = Customer.newBuilder().build(); + String customerId = "customerId-1581184615"; + Customer response = + cloudControlsPartnerCoreClient.createCustomer(parent, customer, customerId); + } + } +} +// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_CreateCustomer_StringCustomerString_sync] diff --git a/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnercore/deletecustomer/AsyncDeleteCustomer.java b/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnercore/deletecustomer/AsyncDeleteCustomer.java new file mode 100644 index 000000000000..e80171bd3db2 --- /dev/null +++ b/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnercore/deletecustomer/AsyncDeleteCustomer.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.cloudcontrolspartner.v1beta.samples; + +// [START cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_DeleteCustomer_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreClient; +import com.google.cloud.cloudcontrolspartner.v1beta.CustomerName; +import com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest; +import com.google.protobuf.Empty; + +public class AsyncDeleteCustomer { + + public static void main(String[] args) throws Exception { + asyncDeleteCustomer(); + } + + public static void asyncDeleteCustomer() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = + CloudControlsPartnerCoreClient.create()) { + DeleteCustomerRequest request = + DeleteCustomerRequest.newBuilder() + .setName(CustomerName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]").toString()) + .build(); + ApiFuture future = + cloudControlsPartnerCoreClient.deleteCustomerCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_DeleteCustomer_async] diff --git a/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnercore/deletecustomer/SyncDeleteCustomer.java b/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnercore/deletecustomer/SyncDeleteCustomer.java new file mode 100644 index 000000000000..e675126db991 --- /dev/null +++ b/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnercore/deletecustomer/SyncDeleteCustomer.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.cloudcontrolspartner.v1beta.samples; + +// [START cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_DeleteCustomer_sync] +import com.google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreClient; +import com.google.cloud.cloudcontrolspartner.v1beta.CustomerName; +import com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteCustomer { + + public static void main(String[] args) throws Exception { + syncDeleteCustomer(); + } + + public static void syncDeleteCustomer() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = + CloudControlsPartnerCoreClient.create()) { + DeleteCustomerRequest request = + DeleteCustomerRequest.newBuilder() + .setName(CustomerName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]").toString()) + .build(); + cloudControlsPartnerCoreClient.deleteCustomer(request); + } + } +} +// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_DeleteCustomer_sync] diff --git a/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnercore/deletecustomer/SyncDeleteCustomerCustomername.java b/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnercore/deletecustomer/SyncDeleteCustomerCustomername.java new file mode 100644 index 000000000000..a165dc5e54a0 --- /dev/null +++ b/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnercore/deletecustomer/SyncDeleteCustomerCustomername.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.cloudcontrolspartner.v1beta.samples; + +// [START cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_DeleteCustomer_Customername_sync] +import com.google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreClient; +import com.google.cloud.cloudcontrolspartner.v1beta.CustomerName; +import com.google.protobuf.Empty; + +public class SyncDeleteCustomerCustomername { + + public static void main(String[] args) throws Exception { + syncDeleteCustomerCustomername(); + } + + public static void syncDeleteCustomerCustomername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = + CloudControlsPartnerCoreClient.create()) { + CustomerName name = CustomerName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]"); + cloudControlsPartnerCoreClient.deleteCustomer(name); + } + } +} +// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_DeleteCustomer_Customername_sync] diff --git a/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnercore/deletecustomer/SyncDeleteCustomerString.java b/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnercore/deletecustomer/SyncDeleteCustomerString.java new file mode 100644 index 000000000000..d23d045d1020 --- /dev/null +++ b/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnercore/deletecustomer/SyncDeleteCustomerString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.cloudcontrolspartner.v1beta.samples; + +// [START cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_DeleteCustomer_String_sync] +import com.google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreClient; +import com.google.cloud.cloudcontrolspartner.v1beta.CustomerName; +import com.google.protobuf.Empty; + +public class SyncDeleteCustomerString { + + public static void main(String[] args) throws Exception { + syncDeleteCustomerString(); + } + + public static void syncDeleteCustomerString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = + CloudControlsPartnerCoreClient.create()) { + String name = CustomerName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]").toString(); + cloudControlsPartnerCoreClient.deleteCustomer(name); + } + } +} +// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_DeleteCustomer_String_sync] diff --git a/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnercore/updatecustomer/AsyncUpdateCustomer.java b/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnercore/updatecustomer/AsyncUpdateCustomer.java new file mode 100644 index 000000000000..7c36aa74f3a4 --- /dev/null +++ b/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnercore/updatecustomer/AsyncUpdateCustomer.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.cloudcontrolspartner.v1beta.samples; + +// [START cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_UpdateCustomer_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreClient; +import com.google.cloud.cloudcontrolspartner.v1beta.Customer; +import com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateCustomer { + + public static void main(String[] args) throws Exception { + asyncUpdateCustomer(); + } + + public static void asyncUpdateCustomer() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = + CloudControlsPartnerCoreClient.create()) { + UpdateCustomerRequest request = + UpdateCustomerRequest.newBuilder() + .setCustomer(Customer.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + cloudControlsPartnerCoreClient.updateCustomerCallable().futureCall(request); + // Do something. + Customer response = future.get(); + } + } +} +// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_UpdateCustomer_async] diff --git a/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnercore/updatecustomer/SyncUpdateCustomer.java b/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnercore/updatecustomer/SyncUpdateCustomer.java new file mode 100644 index 000000000000..93ad3fbae507 --- /dev/null +++ b/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnercore/updatecustomer/SyncUpdateCustomer.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.cloudcontrolspartner.v1beta.samples; + +// [START cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_UpdateCustomer_sync] +import com.google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreClient; +import com.google.cloud.cloudcontrolspartner.v1beta.Customer; +import com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCustomer { + + public static void main(String[] args) throws Exception { + syncUpdateCustomer(); + } + + public static void syncUpdateCustomer() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = + CloudControlsPartnerCoreClient.create()) { + UpdateCustomerRequest request = + UpdateCustomerRequest.newBuilder() + .setCustomer(Customer.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Customer response = cloudControlsPartnerCoreClient.updateCustomer(request); + } + } +} +// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_UpdateCustomer_sync] diff --git a/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnercore/updatecustomer/SyncUpdateCustomerCustomerFieldmask.java b/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnercore/updatecustomer/SyncUpdateCustomerCustomerFieldmask.java new file mode 100644 index 000000000000..3b3f70cbf957 --- /dev/null +++ b/java-cloudcontrolspartner/samples/snippets/generated/com/google/cloud/cloudcontrolspartner/v1beta/cloudcontrolspartnercore/updatecustomer/SyncUpdateCustomerCustomerFieldmask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.cloudcontrolspartner.v1beta.samples; + +// [START cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_UpdateCustomer_CustomerFieldmask_sync] +import com.google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreClient; +import com.google.cloud.cloudcontrolspartner.v1beta.Customer; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCustomerCustomerFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateCustomerCustomerFieldmask(); + } + + public static void syncUpdateCustomerCustomerFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient = + CloudControlsPartnerCoreClient.create()) { + Customer customer = Customer.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Customer response = cloudControlsPartnerCoreClient.updateCustomer(customer, updateMask); + } + } +} +// [END cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_UpdateCustomer_CustomerFieldmask_sync] diff --git a/java-cloudquotas/README.md b/java-cloudquotas/README.md index 1118a7cb5b95..0be3722a8d09 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.52.0 + 26.53.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.23.0 + 0.24.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudquotas:0.23.0' +implementation 'com.google.cloud:google-cloud-cloudquotas:0.24.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudquotas" % "0.23.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudquotas" % "0.24.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.23.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudquotas/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-cloudsupport/README.md b/java-cloudsupport/README.md index aa2171d541da..13509bdd1421 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.52.0 + 26.53.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.39.0 + 0.40.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudsupport:0.39.0' +implementation 'com.google.cloud:google-cloud-cloudsupport:0.40.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudsupport" % "0.39.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudsupport" % "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-cloudsupport.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsupport/0.39.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsupport/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-compute/README.md b/java-compute/README.md index 07b2217084aa..ab65fd3e74bc 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.52.0 + 26.53.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.65.0 + 1.66.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-compute:1.65.0' +implementation 'com.google.cloud:google-cloud-compute:1.66.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "1.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "1.66.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.65.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-compute/1.66.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/NetworkFirewallPoliciesClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkFirewallPoliciesClient.java index fa185f247a01..ba8ec688d36d 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkFirewallPoliciesClient.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkFirewallPoliciesClient.java @@ -31,6 +31,7 @@ import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; import java.util.List; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -105,6 +106,25 @@ * * * + *

AggregatedList + *

Retrieves an aggregated list of network firewall policies, listing network firewall policies from all applicable scopes (global and regional) and grouping the results per scope. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * + *

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

+ *
    + *
  • aggregatedList(AggregatedListNetworkFirewallPoliciesRequest request) + *

+ *

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

+ *
    + *
  • aggregatedList(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.

+ *
    + *
  • aggregatedListPagedCallable() + *

  • aggregatedListCallable() + *

+ * + * + * *

CloneRules *

Copies rules to the specified firewall policy. * @@ -747,6 +767,172 @@ public final UnaryCallable addRu return stub.addRuleCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves an aggregated list of network firewall policies, listing network firewall policies + * from all applicable scopes (global and regional) and grouping the results per scope. To prevent + * failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NetworkFirewallPoliciesClient networkFirewallPoliciesClient =
+   *     NetworkFirewallPoliciesClient.create()) {
+   *   String project = "project-309310695";
+   *   for (Map.Entry element :
+   *       networkFirewallPoliciesClient.aggregatedList(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 AggregatedListPagedResponse aggregatedList(String project) { + AggregatedListNetworkFirewallPoliciesRequest request = + AggregatedListNetworkFirewallPoliciesRequest.newBuilder().setProject(project).build(); + return aggregatedList(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves an aggregated list of network firewall policies, listing network firewall policies + * from all applicable scopes (global and regional) and grouping the results per scope. To prevent + * failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NetworkFirewallPoliciesClient networkFirewallPoliciesClient =
+   *     NetworkFirewallPoliciesClient.create()) {
+   *   AggregatedListNetworkFirewallPoliciesRequest request =
+   *       AggregatedListNetworkFirewallPoliciesRequest.newBuilder()
+   *           .setFilter("filter-1274492040")
+   *           .setIncludeAllScopes(true)
+   *           .setMaxResults(1128457243)
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setPageToken("pageToken873572522")
+   *           .setProject("project-309310695")
+   *           .setReturnPartialSuccess(true)
+   *           .setServiceProjectNumber(-1293855239)
+   *           .build();
+   *   for (Map.Entry element :
+   *       networkFirewallPoliciesClient.aggregatedList(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 AggregatedListPagedResponse aggregatedList( + AggregatedListNetworkFirewallPoliciesRequest request) { + return aggregatedListPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves an aggregated list of network firewall policies, listing network firewall policies + * from all applicable scopes (global and regional) and grouping the results per scope. To prevent + * failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NetworkFirewallPoliciesClient networkFirewallPoliciesClient =
+   *     NetworkFirewallPoliciesClient.create()) {
+   *   AggregatedListNetworkFirewallPoliciesRequest request =
+   *       AggregatedListNetworkFirewallPoliciesRequest.newBuilder()
+   *           .setFilter("filter-1274492040")
+   *           .setIncludeAllScopes(true)
+   *           .setMaxResults(1128457243)
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setPageToken("pageToken873572522")
+   *           .setProject("project-309310695")
+   *           .setReturnPartialSuccess(true)
+   *           .setServiceProjectNumber(-1293855239)
+   *           .build();
+   *   ApiFuture> future =
+   *       networkFirewallPoliciesClient.aggregatedListPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Map.Entry element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + AggregatedListNetworkFirewallPoliciesRequest, AggregatedListPagedResponse> + aggregatedListPagedCallable() { + return stub.aggregatedListPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves an aggregated list of network firewall policies, listing network firewall policies + * from all applicable scopes (global and regional) and grouping the results per scope. To prevent + * failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NetworkFirewallPoliciesClient networkFirewallPoliciesClient =
+   *     NetworkFirewallPoliciesClient.create()) {
+   *   AggregatedListNetworkFirewallPoliciesRequest request =
+   *       AggregatedListNetworkFirewallPoliciesRequest.newBuilder()
+   *           .setFilter("filter-1274492040")
+   *           .setIncludeAllScopes(true)
+   *           .setMaxResults(1128457243)
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setPageToken("pageToken873572522")
+   *           .setProject("project-309310695")
+   *           .setReturnPartialSuccess(true)
+   *           .setServiceProjectNumber(-1293855239)
+   *           .build();
+   *   while (true) {
+   *     NetworkFirewallPolicyAggregatedList response =
+   *         networkFirewallPoliciesClient.aggregatedListCallable().call(request);
+   *     for (Map.Entry element : response.getItemsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + AggregatedListNetworkFirewallPoliciesRequest, NetworkFirewallPolicyAggregatedList> + aggregatedListCallable() { + return stub.aggregatedListCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Copies rules to the specified firewall policy. @@ -2458,6 +2644,101 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted return stub.awaitTermination(duration, unit); } + public static class AggregatedListPagedResponse + extends AbstractPagedListResponse< + AggregatedListNetworkFirewallPoliciesRequest, + NetworkFirewallPolicyAggregatedList, + Map.Entry, + AggregatedListPage, + AggregatedListFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + AggregatedListNetworkFirewallPoliciesRequest, + NetworkFirewallPolicyAggregatedList, + Map.Entry> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + AggregatedListPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new AggregatedListPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private AggregatedListPagedResponse(AggregatedListPage page) { + super(page, AggregatedListFixedSizeCollection.createEmptyCollection()); + } + } + + public static class AggregatedListPage + extends AbstractPage< + AggregatedListNetworkFirewallPoliciesRequest, + NetworkFirewallPolicyAggregatedList, + Map.Entry, + AggregatedListPage> { + + private AggregatedListPage( + PageContext< + AggregatedListNetworkFirewallPoliciesRequest, + NetworkFirewallPolicyAggregatedList, + Map.Entry> + context, + NetworkFirewallPolicyAggregatedList response) { + super(context, response); + } + + private static AggregatedListPage createEmptyPage() { + return new AggregatedListPage(null, null); + } + + @Override + protected AggregatedListPage createPage( + PageContext< + AggregatedListNetworkFirewallPoliciesRequest, + NetworkFirewallPolicyAggregatedList, + Map.Entry> + context, + NetworkFirewallPolicyAggregatedList response) { + return new AggregatedListPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + AggregatedListNetworkFirewallPoliciesRequest, + NetworkFirewallPolicyAggregatedList, + Map.Entry> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class AggregatedListFixedSizeCollection + extends AbstractFixedSizeCollection< + AggregatedListNetworkFirewallPoliciesRequest, + NetworkFirewallPolicyAggregatedList, + Map.Entry, + AggregatedListPage, + AggregatedListFixedSizeCollection> { + + private AggregatedListFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static AggregatedListFixedSizeCollection createEmptyCollection() { + return new AggregatedListFixedSizeCollection(null, 0); + } + + @Override + protected AggregatedListFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new AggregatedListFixedSizeCollection(pages, collectionSize); + } + } + public static class ListPagedResponse extends AbstractPagedListResponse< ListNetworkFirewallPoliciesRequest, diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkFirewallPoliciesSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkFirewallPoliciesSettings.java index b48072cb3550..7cd62ef22fa9 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkFirewallPoliciesSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NetworkFirewallPoliciesSettings.java @@ -16,6 +16,7 @@ package com.google.cloud.compute.v1; +import static com.google.cloud.compute.v1.NetworkFirewallPoliciesClient.AggregatedListPagedResponse; import static com.google.cloud.compute.v1.NetworkFirewallPoliciesClient.ListPagedResponse; import com.google.api.core.ApiFunction; @@ -139,6 +140,15 @@ public UnaryCallSettings addRule return ((NetworkFirewallPoliciesStubSettings) getStubSettings()).addRuleOperationSettings(); } + /** Returns the object with the settings used for calls to aggregatedList. */ + public PagedCallSettings< + AggregatedListNetworkFirewallPoliciesRequest, + NetworkFirewallPolicyAggregatedList, + AggregatedListPagedResponse> + aggregatedListSettings() { + return ((NetworkFirewallPoliciesStubSettings) getStubSettings()).aggregatedListSettings(); + } + /** Returns the object with the settings used for calls to cloneRules. */ public UnaryCallSettings cloneRulesSettings() { return ((NetworkFirewallPoliciesStubSettings) getStubSettings()).cloneRulesSettings(); @@ -383,6 +393,15 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().addRuleOperationSettings(); } + /** Returns the builder for the settings used for calls to aggregatedList. */ + public PagedCallSettings.Builder< + AggregatedListNetworkFirewallPoliciesRequest, + NetworkFirewallPolicyAggregatedList, + AggregatedListPagedResponse> + aggregatedListSettings() { + return getStubSettingsBuilder().aggregatedListSettings(); + } + /** Returns the builder for the settings used for calls to cloneRules. */ public UnaryCallSettings.Builder cloneRulesSettings() { 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 611f8c6a6eca..be6f19fc2694 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 @@ -1324,6 +1324,9 @@ "AddRule": { "methods": ["addRuleAsync", "addRuleAsync", "addRuleOperationCallable", "addRuleCallable"] }, + "AggregatedList": { + "methods": ["aggregatedList", "aggregatedList", "aggregatedListPagedCallable", "aggregatedListCallable"] + }, "CloneRules": { "methods": ["cloneRulesAsync", "cloneRulesAsync", "cloneRulesOperationCallable", "cloneRulesCallable"] }, diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkFirewallPoliciesStub.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkFirewallPoliciesStub.java index 0e0a92363d81..c20d055e041e 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkFirewallPoliciesStub.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonNetworkFirewallPoliciesStub.java @@ -16,6 +16,7 @@ package com.google.cloud.compute.v1.stub; +import static com.google.cloud.compute.v1.NetworkFirewallPoliciesClient.AggregatedListPagedResponse; import static com.google.cloud.compute.v1.NetworkFirewallPoliciesClient.ListPagedResponse; import com.google.api.core.InternalApi; @@ -34,6 +35,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.AddAssociationNetworkFirewallPolicyRequest; import com.google.cloud.compute.v1.AddRuleNetworkFirewallPolicyRequest; +import com.google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest; import com.google.cloud.compute.v1.CloneRulesNetworkFirewallPolicyRequest; import com.google.cloud.compute.v1.DeleteNetworkFirewallPolicyRequest; import com.google.cloud.compute.v1.FirewallPolicy; @@ -46,6 +48,7 @@ import com.google.cloud.compute.v1.GetRuleNetworkFirewallPolicyRequest; import com.google.cloud.compute.v1.InsertNetworkFirewallPolicyRequest; import com.google.cloud.compute.v1.ListNetworkFirewallPoliciesRequest; +import com.google.cloud.compute.v1.NetworkFirewallPolicyAggregatedList; import com.google.cloud.compute.v1.Operation; import com.google.cloud.compute.v1.Operation.Status; import com.google.cloud.compute.v1.PatchNetworkFirewallPolicyRequest; @@ -203,6 +206,72 @@ public class HttpJsonNetworkFirewallPoliciesStub extends NetworkFirewallPolicies }) .build(); + private static final ApiMethodDescriptor< + AggregatedListNetworkFirewallPoliciesRequest, NetworkFirewallPolicyAggregatedList> + aggregatedListMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName("google.cloud.compute.v1.NetworkFirewallPolicies/AggregatedList") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/compute/v1/projects/{project}/aggregated/firewallPolicies", + 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.hasIncludeAllScopes()) { + serializer.putQueryParam( + fields, "includeAllScopes", request.getIncludeAllScopes()); + } + 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()); + } + if (request.hasServiceProjectNumber()) { + serializer.putQueryParam( + fields, + "serviceProjectNumber", + request.getServiceProjectNumber()); + } + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(NetworkFirewallPolicyAggregatedList.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor cloneRulesMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -885,6 +954,12 @@ public class HttpJsonNetworkFirewallPoliciesStub extends NetworkFirewallPolicies private final UnaryCallable addRuleCallable; private final OperationCallable addRuleOperationCallable; + private final UnaryCallable< + AggregatedListNetworkFirewallPoliciesRequest, NetworkFirewallPolicyAggregatedList> + aggregatedListCallable; + private final UnaryCallable< + AggregatedListNetworkFirewallPoliciesRequest, AggregatedListPagedResponse> + aggregatedListPagedCallable; private final UnaryCallable cloneRulesCallable; private final OperationCallable cloneRulesOperationCallable; @@ -995,6 +1070,21 @@ protected HttpJsonNetworkFirewallPoliciesStub( return builder.build(); }) .build(); + HttpJsonCallSettings< + AggregatedListNetworkFirewallPoliciesRequest, NetworkFirewallPolicyAggregatedList> + aggregatedListTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(aggregatedListMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + return builder.build(); + }) + .build(); HttpJsonCallSettings cloneRulesTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1196,6 +1286,12 @@ protected HttpJsonNetworkFirewallPoliciesStub( settings.addRuleOperationSettings(), clientContext, httpJsonOperationsStub); + this.aggregatedListCallable = + callableFactory.createUnaryCallable( + aggregatedListTransportSettings, settings.aggregatedListSettings(), clientContext); + this.aggregatedListPagedCallable = + callableFactory.createPagedCallable( + aggregatedListTransportSettings, settings.aggregatedListSettings(), clientContext); this.cloneRulesCallable = callableFactory.createUnaryCallable( cloneRulesTransportSettings, settings.cloneRulesSettings(), clientContext); @@ -1297,6 +1393,7 @@ public static List getMethodDescriptors() { List methodDescriptors = new ArrayList<>(); methodDescriptors.add(addAssociationMethodDescriptor); methodDescriptors.add(addRuleMethodDescriptor); + methodDescriptors.add(aggregatedListMethodDescriptor); methodDescriptors.add(cloneRulesMethodDescriptor); methodDescriptors.add(deleteMethodDescriptor); methodDescriptors.add(getMethodDescriptor); @@ -1337,6 +1434,19 @@ public UnaryCallable addRuleCall return addRuleOperationCallable; } + @Override + public UnaryCallable< + AggregatedListNetworkFirewallPoliciesRequest, NetworkFirewallPolicyAggregatedList> + aggregatedListCallable() { + return aggregatedListCallable; + } + + @Override + public UnaryCallable + aggregatedListPagedCallable() { + return aggregatedListPagedCallable; + } + @Override public UnaryCallable cloneRulesCallable() { return cloneRulesCallable; diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkFirewallPoliciesStub.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkFirewallPoliciesStub.java index fe7a83544d50..f6415ca70d06 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkFirewallPoliciesStub.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkFirewallPoliciesStub.java @@ -16,6 +16,7 @@ package com.google.cloud.compute.v1.stub; +import static com.google.cloud.compute.v1.NetworkFirewallPoliciesClient.AggregatedListPagedResponse; import static com.google.cloud.compute.v1.NetworkFirewallPoliciesClient.ListPagedResponse; import com.google.api.gax.core.BackgroundResource; @@ -23,6 +24,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.AddAssociationNetworkFirewallPolicyRequest; import com.google.cloud.compute.v1.AddRuleNetworkFirewallPolicyRequest; +import com.google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest; import com.google.cloud.compute.v1.CloneRulesNetworkFirewallPolicyRequest; import com.google.cloud.compute.v1.DeleteNetworkFirewallPolicyRequest; import com.google.cloud.compute.v1.FirewallPolicy; @@ -35,6 +37,7 @@ import com.google.cloud.compute.v1.GetRuleNetworkFirewallPolicyRequest; import com.google.cloud.compute.v1.InsertNetworkFirewallPolicyRequest; import com.google.cloud.compute.v1.ListNetworkFirewallPoliciesRequest; +import com.google.cloud.compute.v1.NetworkFirewallPolicyAggregatedList; import com.google.cloud.compute.v1.Operation; import com.google.cloud.compute.v1.PatchNetworkFirewallPolicyRequest; import com.google.cloud.compute.v1.PatchRuleNetworkFirewallPolicyRequest; @@ -74,6 +77,17 @@ public UnaryCallable addRuleCall throw new UnsupportedOperationException("Not implemented: addRuleCallable()"); } + public UnaryCallable + aggregatedListPagedCallable() { + throw new UnsupportedOperationException("Not implemented: aggregatedListPagedCallable()"); + } + + public UnaryCallable< + AggregatedListNetworkFirewallPoliciesRequest, NetworkFirewallPolicyAggregatedList> + aggregatedListCallable() { + throw new UnsupportedOperationException("Not implemented: aggregatedListCallable()"); + } + public OperationCallable cloneRulesOperationCallable() { throw new UnsupportedOperationException("Not implemented: cloneRulesOperationCallable()"); diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkFirewallPoliciesStubSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkFirewallPoliciesStubSettings.java index d52e9e33ad41..f05786f294f0 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkFirewallPoliciesStubSettings.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/NetworkFirewallPoliciesStubSettings.java @@ -16,6 +16,7 @@ package com.google.cloud.compute.v1.stub; +import static com.google.cloud.compute.v1.NetworkFirewallPoliciesClient.AggregatedListPagedResponse; import static com.google.cloud.compute.v1.NetworkFirewallPoliciesClient.ListPagedResponse; import com.google.api.core.ApiFunction; @@ -46,8 +47,10 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1.AddAssociationNetworkFirewallPolicyRequest; import com.google.cloud.compute.v1.AddRuleNetworkFirewallPolicyRequest; +import com.google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest; import com.google.cloud.compute.v1.CloneRulesNetworkFirewallPolicyRequest; import com.google.cloud.compute.v1.DeleteNetworkFirewallPolicyRequest; +import com.google.cloud.compute.v1.FirewallPoliciesScopedList; import com.google.cloud.compute.v1.FirewallPolicy; import com.google.cloud.compute.v1.FirewallPolicyAssociation; import com.google.cloud.compute.v1.FirewallPolicyList; @@ -58,6 +61,7 @@ import com.google.cloud.compute.v1.GetRuleNetworkFirewallPolicyRequest; import com.google.cloud.compute.v1.InsertNetworkFirewallPolicyRequest; import com.google.cloud.compute.v1.ListNetworkFirewallPoliciesRequest; +import com.google.cloud.compute.v1.NetworkFirewallPolicyAggregatedList; import com.google.cloud.compute.v1.Operation; import com.google.cloud.compute.v1.PatchNetworkFirewallPolicyRequest; import com.google.cloud.compute.v1.PatchRuleNetworkFirewallPolicyRequest; @@ -74,6 +78,7 @@ import java.io.IOException; import java.time.Duration; import java.util.List; +import java.util.Map; import javax.annotation.Generated; // AUTO-GENERATED DOCUMENTATION AND CLASS. @@ -171,6 +176,11 @@ public class NetworkFirewallPoliciesStubSettings private final UnaryCallSettings addRuleSettings; private final OperationCallSettings addRuleOperationSettings; + private final PagedCallSettings< + AggregatedListNetworkFirewallPoliciesRequest, + NetworkFirewallPolicyAggregatedList, + AggregatedListPagedResponse> + aggregatedListSettings; private final UnaryCallSettings cloneRulesSettings; private final OperationCallSettings @@ -214,6 +224,53 @@ public class NetworkFirewallPoliciesStubSettings TestIamPermissionsNetworkFirewallPolicyRequest, TestPermissionsResponse> testIamPermissionsSettings; + private static final PagedListDescriptor< + AggregatedListNetworkFirewallPoliciesRequest, + NetworkFirewallPolicyAggregatedList, + Map.Entry> + AGGREGATED_LIST_PAGE_STR_DESC = + new PagedListDescriptor< + AggregatedListNetworkFirewallPoliciesRequest, + NetworkFirewallPolicyAggregatedList, + Map.Entry>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public AggregatedListNetworkFirewallPoliciesRequest injectToken( + AggregatedListNetworkFirewallPoliciesRequest payload, String token) { + return AggregatedListNetworkFirewallPoliciesRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public AggregatedListNetworkFirewallPoliciesRequest injectPageSize( + AggregatedListNetworkFirewallPoliciesRequest payload, int pageSize) { + return AggregatedListNetworkFirewallPoliciesRequest.newBuilder(payload) + .setMaxResults(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(AggregatedListNetworkFirewallPoliciesRequest payload) { + return payload.getMaxResults(); + } + + @Override + public String extractNextToken(NetworkFirewallPolicyAggregatedList payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable> extractResources( + NetworkFirewallPolicyAggregatedList payload) { + return payload.getItemsMap().entrySet(); + } + }; + private static final PagedListDescriptor< ListNetworkFirewallPoliciesRequest, FirewallPolicyList, FirewallPolicy> LIST_PAGE_STR_DESC = @@ -256,6 +313,34 @@ public Iterable extractResources(FirewallPolicyList payload) { } }; + private static final PagedListResponseFactory< + AggregatedListNetworkFirewallPoliciesRequest, + NetworkFirewallPolicyAggregatedList, + AggregatedListPagedResponse> + AGGREGATED_LIST_PAGE_STR_FACT = + new PagedListResponseFactory< + AggregatedListNetworkFirewallPoliciesRequest, + NetworkFirewallPolicyAggregatedList, + AggregatedListPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + AggregatedListNetworkFirewallPoliciesRequest, + NetworkFirewallPolicyAggregatedList> + callable, + AggregatedListNetworkFirewallPoliciesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + AggregatedListNetworkFirewallPoliciesRequest, + NetworkFirewallPolicyAggregatedList, + Map.Entry> + pageContext = + PageContext.create(callable, AGGREGATED_LIST_PAGE_STR_DESC, request, context); + return AggregatedListPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListNetworkFirewallPoliciesRequest, FirewallPolicyList, ListPagedResponse> LIST_PAGE_STR_FACT = @@ -296,6 +381,15 @@ public UnaryCallSettings addRule return addRuleOperationSettings; } + /** Returns the object with the settings used for calls to aggregatedList. */ + public PagedCallSettings< + AggregatedListNetworkFirewallPoliciesRequest, + NetworkFirewallPolicyAggregatedList, + AggregatedListPagedResponse> + aggregatedListSettings() { + return aggregatedListSettings; + } + /** Returns the object with the settings used for calls to cloneRules. */ public UnaryCallSettings cloneRulesSettings() { return cloneRulesSettings; @@ -502,6 +596,7 @@ protected NetworkFirewallPoliciesStubSettings(Builder settingsBuilder) throws IO addAssociationOperationSettings = settingsBuilder.addAssociationOperationSettings().build(); addRuleSettings = settingsBuilder.addRuleSettings().build(); addRuleOperationSettings = settingsBuilder.addRuleOperationSettings().build(); + aggregatedListSettings = settingsBuilder.aggregatedListSettings().build(); cloneRulesSettings = settingsBuilder.cloneRulesSettings().build(); cloneRulesOperationSettings = settingsBuilder.cloneRulesOperationSettings().build(); deleteSettings = settingsBuilder.deleteSettings().build(); @@ -540,6 +635,11 @@ public static class Builder private final OperationCallSettings.Builder< AddRuleNetworkFirewallPolicyRequest, Operation, Operation> addRuleOperationSettings; + private final PagedCallSettings.Builder< + AggregatedListNetworkFirewallPoliciesRequest, + NetworkFirewallPolicyAggregatedList, + AggregatedListPagedResponse> + aggregatedListSettings; private final UnaryCallSettings.Builder cloneRulesSettings; private final OperationCallSettings.Builder< @@ -647,6 +747,7 @@ protected Builder(ClientContext clientContext) { addAssociationOperationSettings = OperationCallSettings.newBuilder(); addRuleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); addRuleOperationSettings = OperationCallSettings.newBuilder(); + aggregatedListSettings = PagedCallSettings.newBuilder(AGGREGATED_LIST_PAGE_STR_FACT); cloneRulesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); cloneRulesOperationSettings = OperationCallSettings.newBuilder(); deleteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -673,6 +774,7 @@ protected Builder(ClientContext clientContext) { ImmutableList.>of( addAssociationSettings, addRuleSettings, + aggregatedListSettings, cloneRulesSettings, deleteSettings, getSettings, @@ -697,6 +799,7 @@ protected Builder(NetworkFirewallPoliciesStubSettings settings) { addAssociationOperationSettings = settings.addAssociationOperationSettings.toBuilder(); addRuleSettings = settings.addRuleSettings.toBuilder(); addRuleOperationSettings = settings.addRuleOperationSettings.toBuilder(); + aggregatedListSettings = settings.aggregatedListSettings.toBuilder(); cloneRulesSettings = settings.cloneRulesSettings.toBuilder(); cloneRulesOperationSettings = settings.cloneRulesOperationSettings.toBuilder(); deleteSettings = settings.deleteSettings.toBuilder(); @@ -723,6 +826,7 @@ protected Builder(NetworkFirewallPoliciesStubSettings settings) { ImmutableList.>of( addAssociationSettings, addRuleSettings, + aggregatedListSettings, cloneRulesSettings, deleteSettings, getSettings, @@ -762,6 +866,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 + .aggregatedListSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .cloneRulesSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) @@ -1100,6 +1209,15 @@ public Builder applyToAllUnaryMethods( return addRuleOperationSettings; } + /** Returns the builder for the settings used for calls to aggregatedList. */ + public PagedCallSettings.Builder< + AggregatedListNetworkFirewallPoliciesRequest, + NetworkFirewallPolicyAggregatedList, + AggregatedListPagedResponse> + aggregatedListSettings() { + return aggregatedListSettings; + } + /** Returns the builder for the settings used for calls to cloneRules. */ public UnaryCallSettings.Builder cloneRulesSettings() { 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 34b7300d1db1..83c5355d20c9 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 @@ -1457,6 +1457,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.AggregatedListNodeGroupsRequest", "queryAllDeclaredConstructors": true, @@ -6713,6 +6731,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.FirewallPoliciesScopedList", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.FirewallPoliciesScopedList$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.FirewallPolicy", "queryAllDeclaredConstructors": true, @@ -17990,6 +18026,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.NetworkFirewallPolicyAggregatedList", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.compute.v1.NetworkFirewallPolicyAggregatedList$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.NetworkInterface", "queryAllDeclaredConstructors": true, @@ -18431,6 +18485,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.compute.v1.NetworkRoutingConfig$EffectiveBgpInterRegionCost", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.compute.v1.NetworkRoutingConfig$RoutingMode", "queryAllDeclaredConstructors": true, diff --git a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NetworkFirewallPoliciesClientTest.java b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NetworkFirewallPoliciesClientTest.java index b4049c5bd375..6548d5d24f1d 100644 --- a/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NetworkFirewallPoliciesClientTest.java +++ b/java-compute/google-cloud-compute/src/test/java/com/google/cloud/compute/v1/NetworkFirewallPoliciesClientTest.java @@ -16,6 +16,7 @@ package com.google.cloud.compute.v1; +import static com.google.cloud.compute.v1.NetworkFirewallPoliciesClient.AggregatedListPagedResponse; import static com.google.cloud.compute.v1.NetworkFirewallPoliciesClient.ListPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; @@ -33,7 +34,9 @@ import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; +import java.util.Collections; import java.util.List; +import java.util.Map; import java.util.concurrent.ExecutionException; import javax.annotation.Generated; import org.junit.After; @@ -232,6 +235,58 @@ public void addRuleExceptionTest() throws Exception { } } + @Test + public void aggregatedListTest() throws Exception { + FirewallPoliciesScopedList responsesElement = FirewallPoliciesScopedList.newBuilder().build(); + NetworkFirewallPolicyAggregatedList expectedResponse = + NetworkFirewallPolicyAggregatedList.newBuilder() + .setNextPageToken("") + .putAllItems(Collections.singletonMap("items", responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String project = "project-6911"; + + AggregatedListPagedResponse pagedListResponse = client.aggregatedList(project); + + List> resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getItemsMap().entrySet().iterator().next(), 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 aggregatedListExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "project-6911"; + client.aggregatedList(project); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void cloneRulesTest() throws Exception { Operation expectedResponse = diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/AccessConfig.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/AccessConfig.java index e75f6d97edaa..77e51436959f 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/AccessConfig.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/AccessConfig.java @@ -837,7 +837,7 @@ public com.google.protobuf.ByteString getPublicPtrDomainNameBytes() { * * *
-   * [Output Only] The resource URL for the security policy associated with this access config.
+   * The resource URL for the security policy associated with this access config.
    * 
* * optional string security_policy = 171082513; @@ -852,7 +852,7 @@ public boolean hasSecurityPolicy() { * * *
-   * [Output Only] The resource URL for the security policy associated with this access config.
+   * The resource URL for the security policy associated with this access config.
    * 
* * optional string security_policy = 171082513; @@ -875,7 +875,7 @@ public java.lang.String getSecurityPolicy() { * * *
-   * [Output Only] The resource URL for the security policy associated with this access config.
+   * The resource URL for the security policy associated with this access config.
    * 
* * optional string security_policy = 171082513; @@ -2413,7 +2413,7 @@ public Builder setPublicPtrDomainNameBytes(com.google.protobuf.ByteString value) * * *
-     * [Output Only] The resource URL for the security policy associated with this access config.
+     * The resource URL for the security policy associated with this access config.
      * 
* * optional string security_policy = 171082513; @@ -2427,7 +2427,7 @@ public boolean hasSecurityPolicy() { * * *
-     * [Output Only] The resource URL for the security policy associated with this access config.
+     * The resource URL for the security policy associated with this access config.
      * 
* * optional string security_policy = 171082513; @@ -2449,7 +2449,7 @@ public java.lang.String getSecurityPolicy() { * * *
-     * [Output Only] The resource URL for the security policy associated with this access config.
+     * The resource URL for the security policy associated with this access config.
      * 
* * optional string security_policy = 171082513; @@ -2471,7 +2471,7 @@ public com.google.protobuf.ByteString getSecurityPolicyBytes() { * * *
-     * [Output Only] The resource URL for the security policy associated with this access config.
+     * The resource URL for the security policy associated with this access config.
      * 
* * optional string security_policy = 171082513; @@ -2492,7 +2492,7 @@ public Builder setSecurityPolicy(java.lang.String value) { * * *
-     * [Output Only] The resource URL for the security policy associated with this access config.
+     * The resource URL for the security policy associated with this access config.
      * 
* * optional string security_policy = 171082513; @@ -2509,7 +2509,7 @@ public Builder clearSecurityPolicy() { * * *
-     * [Output Only] The resource URL for the security policy associated with this access config.
+     * The resource URL for the security policy associated with this access config.
      * 
* * optional string security_policy = 171082513; diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/AccessConfigOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/AccessConfigOrBuilder.java index 0d622a6dcb6e..fd933e1e9868 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/AccessConfigOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/AccessConfigOrBuilder.java @@ -278,7 +278,7 @@ public interface AccessConfigOrBuilder * * *
-   * [Output Only] The resource URL for the security policy associated with this access config.
+   * The resource URL for the security policy associated with this access config.
    * 
* * optional string security_policy = 171082513; @@ -290,7 +290,7 @@ public interface AccessConfigOrBuilder * * *
-   * [Output Only] The resource URL for the security policy associated with this access config.
+   * The resource URL for the security policy associated with this access config.
    * 
* * optional string security_policy = 171082513; @@ -302,7 +302,7 @@ public interface AccessConfigOrBuilder * * *
-   * [Output Only] The resource URL for the security policy associated with this access config.
+   * The resource URL for the security policy associated with this access config.
    * 
* * optional string security_policy = 171082513; diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/AggregatedListNetworkFirewallPoliciesRequest.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/AggregatedListNetworkFirewallPoliciesRequest.java new file mode 100644 index 000000000000..3190074683a6 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/AggregatedListNetworkFirewallPoliciesRequest.java @@ -0,0 +1,1819 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * A request message for NetworkFirewallPolicies.AggregatedList. See the method description for details.
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest} + */ +public final class AggregatedListNetworkFirewallPoliciesRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest) + AggregatedListNetworkFirewallPoliciesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use AggregatedListNetworkFirewallPoliciesRequest.newBuilder() to construct. + private AggregatedListNetworkFirewallPoliciesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AggregatedListNetworkFirewallPoliciesRequest() { + filter_ = ""; + orderBy_ = ""; + pageToken_ = ""; + project_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AggregatedListNetworkFirewallPoliciesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_AggregatedListNetworkFirewallPoliciesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_AggregatedListNetworkFirewallPoliciesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest.class, + com.google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest.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 INCLUDE_ALL_SCOPES_FIELD_NUMBER = 391327988; + private boolean includeAllScopes_ = false; + /** + * + * + *
+   * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
+   * 
+ * + * optional bool include_all_scopes = 391327988; + * + * @return Whether the includeAllScopes field is set. + */ + @java.lang.Override + public boolean hasIncludeAllScopes() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
+   * 
+ * + * optional bool include_all_scopes = 391327988; + * + * @return The includeAllScopes. + */ + @java.lang.Override + public boolean getIncludeAllScopes() { + return includeAllScopes_; + } + + 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_ & 0x00000004) != 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_ & 0x00000008) != 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_ & 0x00000010) != 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_ & 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_; + } + + public static final int SERVICE_PROJECT_NUMBER_FIELD_NUMBER = 316757497; + private long serviceProjectNumber_ = 0L; + /** + * + * + *
+   * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
+   * 
+ * + * optional int64 service_project_number = 316757497; + * + * @return Whether the serviceProjectNumber field is set. + */ + @java.lang.Override + public boolean hasServiceProjectNumber() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
+   * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
+   * 
+ * + * optional int64 service_project_number = 316757497; + * + * @return The serviceProjectNumber. + */ + @java.lang.Override + public long getServiceProjectNumber() { + return serviceProjectNumber_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 19994697, pageToken_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeUInt32(54715419, maxResults_); + } + if (((bitField0_ & 0x00000008) != 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_ & 0x00000040) != 0)) { + output.writeInt64(316757497, serviceProjectNumber_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 336120696, filter_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(391327988, includeAllScopes_); + } + if (((bitField0_ & 0x00000020) != 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_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19994697, pageToken_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(54715419, maxResults_); + } + if (((bitField0_ & 0x00000008) != 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_ & 0x00000040) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeInt64Size(316757497, serviceProjectNumber_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(336120696, filter_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(391327988, includeAllScopes_); + } + if (((bitField0_ & 0x00000020) != 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.AggregatedListNetworkFirewallPoliciesRequest)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest other = + (com.google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest) obj; + + if (hasFilter() != other.hasFilter()) return false; + if (hasFilter()) { + if (!getFilter().equals(other.getFilter())) return false; + } + if (hasIncludeAllScopes() != other.hasIncludeAllScopes()) return false; + if (hasIncludeAllScopes()) { + if (getIncludeAllScopes() != other.getIncludeAllScopes()) 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 (hasServiceProjectNumber() != other.hasServiceProjectNumber()) return false; + if (hasServiceProjectNumber()) { + if (getServiceProjectNumber() != other.getServiceProjectNumber()) return false; + } + if (!getUnknownFields().equals(other.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 (hasIncludeAllScopes()) { + hash = (37 * hash) + INCLUDE_ALL_SCOPES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeAllScopes()); + } + 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()); + } + if (hasServiceProjectNumber()) { + hash = (37 * hash) + SERVICE_PROJECT_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getServiceProjectNumber()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest parseFrom( + 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.AggregatedListNetworkFirewallPoliciesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest parseFrom( + com.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.AggregatedListNetworkFirewallPoliciesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest 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.AggregatedListNetworkFirewallPoliciesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest parseFrom( + java.io.InputStream 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.AggregatedListNetworkFirewallPoliciesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest + parseDelimitedFrom( + java.io.InputStream 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.AggregatedListNetworkFirewallPoliciesRequest 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.AggregatedListNetworkFirewallPoliciesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.AggregatedListNetworkFirewallPoliciesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 NetworkFirewallPolicies.AggregatedList. See the method description for details.
+   * 
+ * + * Protobuf type {@code google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest) + com.google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_AggregatedListNetworkFirewallPoliciesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_AggregatedListNetworkFirewallPoliciesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest.class, + com.google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + filter_ = ""; + includeAllScopes_ = false; + maxResults_ = 0; + orderBy_ = ""; + pageToken_ = ""; + project_ = ""; + returnPartialSuccess_ = false; + serviceProjectNumber_ = 0L; + 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_AggregatedListNetworkFirewallPoliciesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest build() { + com.google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest buildPartial() { + com.google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest result = + new com.google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest 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.includeAllScopes_ = includeAllScopes_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.maxResults_ = maxResults_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.orderBy_ = orderBy_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.pageToken_ = pageToken_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.returnPartialSuccess_ = returnPartialSuccess_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.serviceProjectNumber_ = serviceProjectNumber_; + to_bitField0_ |= 0x00000040; + } + 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.AggregatedListNetworkFirewallPoliciesRequest) { + return mergeFrom( + (com.google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest other) { + if (other + == com.google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest + .getDefaultInstance()) return this; + if (other.hasFilter()) { + filter_ = other.filter_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasIncludeAllScopes()) { + setIncludeAllScopes(other.getIncludeAllScopes()); + } + if (other.hasMaxResults()) { + setMaxResults(other.getMaxResults()); + } + if (other.hasOrderBy()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasPageToken()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasReturnPartialSuccess()) { + setReturnPartialSuccess(other.getReturnPartialSuccess()); + } + if (other.hasServiceProjectNumber()) { + setServiceProjectNumber(other.getServiceProjectNumber()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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_ |= 0x00000010; + break; + } // case 159957578 + case 437723352: + { + maxResults_ = input.readUInt32(); + bitField0_ |= 0x00000004; + break; + } // case 437723352 + case 1284503362: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 1284503362 + case 1820481738: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 1820481738 + case -1760907320: + { + serviceProjectNumber_ = input.readInt64(); + bitField0_ |= 0x00000080; + break; + } // case -1760907320 + case -1606001726: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case -1606001726 + case -1164343392: + { + includeAllScopes_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case -1164343392 + case -157380176: + { + returnPartialSuccess_ = input.readBool(); + bitField0_ |= 0x00000040; + 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 boolean includeAllScopes_; + /** + * + * + *
+     * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
+     * 
+ * + * optional bool include_all_scopes = 391327988; + * + * @return Whether the includeAllScopes field is set. + */ + @java.lang.Override + public boolean hasIncludeAllScopes() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
+     * 
+ * + * optional bool include_all_scopes = 391327988; + * + * @return The includeAllScopes. + */ + @java.lang.Override + public boolean getIncludeAllScopes() { + return includeAllScopes_; + } + /** + * + * + *
+     * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
+     * 
+ * + * optional bool include_all_scopes = 391327988; + * + * @param value The includeAllScopes to set. + * @return This builder for chaining. + */ + public Builder setIncludeAllScopes(boolean value) { + + includeAllScopes_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
+     * 
+ * + * optional bool include_all_scopes = 391327988; + * + * @return This builder for chaining. + */ + public Builder clearIncludeAllScopes() { + bitField0_ = (bitField0_ & ~0x00000002); + includeAllScopes_ = false; + 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_ & 0x00000004) != 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_ |= 0x00000004; + 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_ & ~0x00000004); + 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_ & 0x00000008) != 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_ |= 0x00000008; + 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_ & ~0x00000008); + 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_ |= 0x00000008; + 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_ & 0x00000010) != 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_ |= 0x00000010; + 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_ & ~0x00000010); + 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_ |= 0x00000010; + 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_ |= 0x00000020; + 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_ & ~0x00000020); + 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_ |= 0x00000020; + 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_ & 0x00000040) != 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_ |= 0x00000040; + 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_ & ~0x00000040); + returnPartialSuccess_ = false; + onChanged(); + return this; + } + + private long serviceProjectNumber_; + /** + * + * + *
+     * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
+     * 
+ * + * optional int64 service_project_number = 316757497; + * + * @return Whether the serviceProjectNumber field is set. + */ + @java.lang.Override + public boolean hasServiceProjectNumber() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
+     * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
+     * 
+ * + * optional int64 service_project_number = 316757497; + * + * @return The serviceProjectNumber. + */ + @java.lang.Override + public long getServiceProjectNumber() { + return serviceProjectNumber_; + } + /** + * + * + *
+     * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
+     * 
+ * + * optional int64 service_project_number = 316757497; + * + * @param value The serviceProjectNumber to set. + * @return This builder for chaining. + */ + public Builder setServiceProjectNumber(long value) { + + serviceProjectNumber_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
+     * 
+ * + * optional int64 service_project_number = 316757497; + * + * @return This builder for chaining. + */ + public Builder clearServiceProjectNumber() { + bitField0_ = (bitField0_ & ~0x00000080); + serviceProjectNumber_ = 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.compute.v1.AggregatedListNetworkFirewallPoliciesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest) + private static final com.google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest(); + } + + public static com.google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AggregatedListNetworkFirewallPoliciesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.AggregatedListNetworkFirewallPoliciesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/AggregatedListNetworkFirewallPoliciesRequestOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/AggregatedListNetworkFirewallPoliciesRequestOrBuilder.java new file mode 100644 index 000000000000..21a234ca3372 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/AggregatedListNetworkFirewallPoliciesRequestOrBuilder.java @@ -0,0 +1,262 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +public interface AggregatedListNetworkFirewallPoliciesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest) + 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(); + + /** + * + * + *
+   * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
+   * 
+ * + * optional bool include_all_scopes = 391327988; + * + * @return Whether the includeAllScopes field is set. + */ + boolean hasIncludeAllScopes(); + /** + * + * + *
+   * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
+   * 
+ * + * optional bool include_all_scopes = 391327988; + * + * @return The includeAllScopes. + */ + boolean getIncludeAllScopes(); + + /** + * + * + *
+   * 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(); + + /** + * + * + *
+   * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
+   * 
+ * + * optional int64 service_project_number = 316757497; + * + * @return Whether the serviceProjectNumber field is set. + */ + boolean hasServiceProjectNumber(); + /** + * + * + *
+   * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
+   * 
+ * + * optional int64 service_project_number = 316757497; + * + * @return The serviceProjectNumber. + */ + long getServiceProjectNumber(); +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/AttachedDiskInitializeParams.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/AttachedDiskInitializeParams.java index 0ff413ae2587..c75f4c8496b1 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/AttachedDiskInitializeParams.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/AttachedDiskInitializeParams.java @@ -1449,7 +1449,7 @@ public com.google.cloud.compute.v1.CustomerEncryptionKey getSourceImageEncryptio * * *
-   * The source snapshot to create this disk. When creating a new instance boot disk, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set.
+   * The source snapshot to create this disk. When creating a new instance boot disk, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set. Note: You cannot create VMs in bulk using a snapshot as the source. Use an image instead when you create VMs using the bulk insert method.
    * 
* * optional string source_snapshot = 126061928; @@ -1464,7 +1464,7 @@ public boolean hasSourceSnapshot() { * * *
-   * The source snapshot to create this disk. When creating a new instance boot disk, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set.
+   * The source snapshot to create this disk. When creating a new instance boot disk, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set. Note: You cannot create VMs in bulk using a snapshot as the source. Use an image instead when you create VMs using the bulk insert method.
    * 
* * optional string source_snapshot = 126061928; @@ -1487,7 +1487,7 @@ public java.lang.String getSourceSnapshot() { * * *
-   * The source snapshot to create this disk. When creating a new instance boot disk, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set.
+   * The source snapshot to create this disk. When creating a new instance boot disk, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set. Note: You cannot create VMs in bulk using a snapshot as the source. Use an image instead when you create VMs using the bulk insert method.
    * 
* * optional string source_snapshot = 126061928; @@ -4686,7 +4686,7 @@ public Builder clearSourceImageEncryptionKey() { * * *
-     * The source snapshot to create this disk. When creating a new instance boot disk, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set.
+     * The source snapshot to create this disk. When creating a new instance boot disk, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set. Note: You cannot create VMs in bulk using a snapshot as the source. Use an image instead when you create VMs using the bulk insert method.
      * 
* * optional string source_snapshot = 126061928; @@ -4700,7 +4700,7 @@ public boolean hasSourceSnapshot() { * * *
-     * The source snapshot to create this disk. When creating a new instance boot disk, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set.
+     * The source snapshot to create this disk. When creating a new instance boot disk, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set. Note: You cannot create VMs in bulk using a snapshot as the source. Use an image instead when you create VMs using the bulk insert method.
      * 
* * optional string source_snapshot = 126061928; @@ -4722,7 +4722,7 @@ public java.lang.String getSourceSnapshot() { * * *
-     * The source snapshot to create this disk. When creating a new instance boot disk, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set.
+     * The source snapshot to create this disk. When creating a new instance boot disk, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set. Note: You cannot create VMs in bulk using a snapshot as the source. Use an image instead when you create VMs using the bulk insert method.
      * 
* * optional string source_snapshot = 126061928; @@ -4744,7 +4744,7 @@ public com.google.protobuf.ByteString getSourceSnapshotBytes() { * * *
-     * The source snapshot to create this disk. When creating a new instance boot disk, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set.
+     * The source snapshot to create this disk. When creating a new instance boot disk, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set. Note: You cannot create VMs in bulk using a snapshot as the source. Use an image instead when you create VMs using the bulk insert method.
      * 
* * optional string source_snapshot = 126061928; @@ -4765,7 +4765,7 @@ public Builder setSourceSnapshot(java.lang.String value) { * * *
-     * The source snapshot to create this disk. When creating a new instance boot disk, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set.
+     * The source snapshot to create this disk. When creating a new instance boot disk, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set. Note: You cannot create VMs in bulk using a snapshot as the source. Use an image instead when you create VMs using the bulk insert method.
      * 
* * optional string source_snapshot = 126061928; @@ -4782,7 +4782,7 @@ public Builder clearSourceSnapshot() { * * *
-     * The source snapshot to create this disk. When creating a new instance boot disk, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set.
+     * The source snapshot to create this disk. When creating a new instance boot disk, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set. Note: You cannot create VMs in bulk using a snapshot as the source. Use an image instead when you create VMs using the bulk insert method.
      * 
* * optional string source_snapshot = 126061928; diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/AttachedDiskInitializeParamsOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/AttachedDiskInitializeParamsOrBuilder.java index 29b24808da11..1650f5e2edce 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/AttachedDiskInitializeParamsOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/AttachedDiskInitializeParamsOrBuilder.java @@ -666,7 +666,7 @@ java.lang.String getResourceManagerTagsOrDefault( * * *
-   * The source snapshot to create this disk. When creating a new instance boot disk, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set.
+   * The source snapshot to create this disk. When creating a new instance boot disk, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set. Note: You cannot create VMs in bulk using a snapshot as the source. Use an image instead when you create VMs using the bulk insert method.
    * 
* * optional string source_snapshot = 126061928; @@ -678,7 +678,7 @@ java.lang.String getResourceManagerTagsOrDefault( * * *
-   * The source snapshot to create this disk. When creating a new instance boot disk, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set.
+   * The source snapshot to create this disk. When creating a new instance boot disk, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set. Note: You cannot create VMs in bulk using a snapshot as the source. Use an image instead when you create VMs using the bulk insert method.
    * 
* * optional string source_snapshot = 126061928; @@ -690,7 +690,7 @@ java.lang.String getResourceManagerTagsOrDefault( * * *
-   * The source snapshot to create this disk. When creating a new instance boot disk, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set.
+   * The source snapshot to create this disk. When creating a new instance boot disk, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set. Note: You cannot create VMs in bulk using a snapshot as the source. Use an image instead when you create VMs using the bulk insert method.
    * 
* * optional string source_snapshot = 126061928; 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 874302ac9a31..e60a8be86b6a 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 @@ -252,6 +252,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_AggregatedListNetworkEndpointGroupsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_compute_v1_AggregatedListNetworkEndpointGroupsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_AggregatedListNetworkFirewallPoliciesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_compute_v1_AggregatedListNetworkFirewallPoliciesRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_AggregatedListNodeGroupsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -1384,6 +1388,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_FirewallPoliciesListAssociationsResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_compute_v1_FirewallPoliciesListAssociationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_FirewallPoliciesScopedList_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_compute_v1_FirewallPoliciesScopedList_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_FirewallPolicy_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -1526,21 +1534,21 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_GetForwardingRuleRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_GetFromFamilyImageRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_compute_v1_GetFromFamilyImageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor + static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_GetGlobalAddressRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_compute_v1_GetGlobalAddressRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor + static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_GetGlobalForwardingRuleRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_compute_v1_GetGlobalForwardingRuleRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor + static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_GetGlobalNetworkEndpointGroupRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_compute_v1_GetGlobalNetworkEndpointGroupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor + static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_GetGlobalOperationRequest_descriptor; static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_compute_v1_GetGlobalOperationRequest_fieldAccessorTable; @@ -3820,6 +3828,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_compute_v1_NetworkEndpointWithHealthStatus_descriptor; static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_compute_v1_NetworkEndpointWithHealthStatus_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_NetworkFirewallPolicyAggregatedList_descriptor; + static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_compute_v1_NetworkFirewallPolicyAggregatedList_fieldAccessorTable; + static com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_compute_v1_NetworkFirewallPolicyAggregatedList_ItemsEntry_descriptor; + static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_compute_v1_NetworkFirewallPolicyAggregatedList_ItemsEntry_fieldAccessorTable; static com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_compute_v1_NetworkInterface_descriptor; static com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -7044,135 +7060,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007_filterB\025\n\023_include_all_scopesB\016\n\014_max_" + "resultsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_" + "return_partial_successB\031\n\027_service_proje" - + "ct_number\"\241\003\n\037AggregatedListNodeGroupsRe" - + "quest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022#\n\022includ" - + "e_all_scopes\030\364\341\314\272\001 \001(\010H\001\210\001\001\022\033\n\013max_resul" - + "ts\030\233\310\213\032 \001(\rH\002\210\001\001\022\030\n\010order_by\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\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\005\210\001\001\022\'\n\026service_project_numb" - + "er\030\371\253\205\227\001 \001(\003H\006\210\001\001B\t\n\007_filterB\025\n\023_include" - + "_all_scopesB\016\n\014_max_resultsB\013\n\t_order_by" - + "B\r\n\013_page_tokenB\031\n\027_return_partial_succe" - + "ssB\031\n\027_service_project_number\"\244\003\n\"Aggreg" - + "atedListNodeTemplatesRequest\022\027\n\006filter\030\370" - + "\226\243\240\001 \001(\tH\000\210\001\001\022#\n\022include_all_scopes\030\364\341\314\272" - + "\001 \001(\010H\001\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\002\210\001\001\022" - + "\030\n\010order_by\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\'" - + "\n\026return_partial_success\030\266\244\317\366\001 \001(\010H\005\210\001\001\022" - + "\'\n\026service_project_number\030\371\253\205\227\001 \001(\003H\006\210\001\001" - + "B\t\n\007_filterB\025\n\023_include_all_scopesB\016\n\014_m" - + "ax_resultsB\013\n\t_order_byB\r\n\013_page_tokenB\031" - + "\n\027_return_partial_successB\031\n\027_service_pr" - + "oject_number\"\240\003\n\036AggregatedListNodeTypes" - + "Request\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022#\n\022incl" - + "ude_all_scopes\030\364\341\314\272\001 \001(\010H\001\210\001\001\022\033\n\013max_res" - + "ults\030\233\310\213\032 \001(\rH\002\210\001\001\022\030\n\010order_by\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\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\005\210\001\001\022\'\n\026service_project_nu" - + "mber\030\371\253\205\227\001 \001(\003H\006\210\001\001B\t\n\007_filterB\025\n\023_inclu" - + "de_all_scopesB\016\n\014_max_resultsB\013\n\t_order_" - + "byB\r\n\013_page_tokenB\031\n\027_return_partial_suc" - + "cessB\031\n\027_service_project_number\"\247\003\n%Aggr" - + "egatedListPacketMirroringsRequest\022\027\n\006fil" - + "ter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022#\n\022include_all_scopes" - + "\030\364\341\314\272\001 \001(\010H\001\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH" - + "\002\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\003\210\001\001\022\032\n\npage_t" - + "oken\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\'\n\026return_partial_success\030\266\244\317\366\001 \001(\010H" - + "\005\210\001\001\022\'\n\026service_project_number\030\371\253\205\227\001 \001(\003" - + "H\006\210\001\001B\t\n\007_filterB\025\n\023_include_all_scopesB" - + "\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_page_to" - + "kenB\031\n\027_return_partial_successB\031\n\027_servi" - + "ce_project_number\"\256\003\n,AggregatedListPubl" - + "icDelegatedPrefixesRequest\022\027\n\006filter\030\370\226\243" - + "\240\001 \001(\tH\000\210\001\001\022#\n\022include_all_scopes\030\364\341\314\272\001 " - + "\001(\010H\001\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\002\210\001\001\022\030\n" - + "\010order_by\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\'\n\026" - + "return_partial_success\030\266\244\317\366\001 \001(\010H\005\210\001\001\022\'\n" - + "\026service_project_number\030\371\253\205\227\001 \001(\003H\006\210\001\001B\t" - + "\n\007_filterB\025\n\023_include_all_scopesB\016\n\014_max" - + "_resultsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027" - + "_return_partial_successB\031\n\027_service_proj" - + "ect_number\"\250\003\n&AggregatedListRegionCommi" - + "tmentsRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022#" - + "\n\022include_all_scopes\030\364\341\314\272\001 \001(\010H\001\210\001\001\022\033\n\013m" - + "ax_results\030\233\310\213\032 \001(\rH\002\210\001\001\022\030\n\010order_by\030\350\375\307" - + "L \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\'\n\026return_partia" - + "l_success\030\266\244\317\366\001 \001(\010H\005\210\001\001\022\'\n\026service_proj" - + "ect_number\030\371\253\205\227\001 \001(\003H\006\210\001\001B\t\n\007_filterB\025\n\023" - + "_include_all_scopesB\016\n\014_max_resultsB\013\n\t_" - + "order_byB\r\n\013_page_tokenB\031\n\027_return_parti" - + "al_successB\031\n\027_service_project_number\"\243\003" - + "\n!AggregatedListReservationsRequest\022\027\n\006f" - + "ilter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022#\n\022include_all_scop" - + "es\030\364\341\314\272\001 \001(\010H\001\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(" - + "\rH\002\210\001\001\022\030\n\010order_by\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(\t" - + "B\003\340A\002\022\'\n\026return_partial_success\030\266\244\317\366\001 \001(" - + "\010H\005\210\001\001\022\'\n\026service_project_number\030\371\253\205\227\001 \001" - + "(\003H\006\210\001\001B\t\n\007_filterB\025\n\023_include_all_scope" - + "sB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_page_" - + "tokenB\031\n\027_return_partial_successB\031\n\027_ser" - + "vice_project_number\"\247\003\n%AggregatedListRe" - + "sourcePoliciesRequest\022\027\n\006filter\030\370\226\243\240\001 \001(" - + "\tH\000\210\001\001\022#\n\022include_all_scopes\030\364\341\314\272\001 \001(\010H\001" - + "\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\002\210\001\001\022\030\n\010orde" - + "r_by\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\'\n\026retur" - + "n_partial_success\030\266\244\317\366\001 \001(\010H\005\210\001\001\022\'\n\026serv" - + "ice_project_number\030\371\253\205\227\001 \001(\003H\006\210\001\001B\t\n\007_fi" - + "lterB\025\n\023_include_all_scopesB\016\n\014_max_resu" - + "ltsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_retu" - + "rn_partial_successB\031\n\027_service_project_n" - + "umber\"\236\003\n\034AggregatedListRoutersRequest\022\027" - + "\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022#\n\022include_all_s" - + "copes\030\364\341\314\272\001 \001(\010H\001\210\001\001\022\033\n\013max_results\030\233\310\213\032" - + " \001(\rH\002\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\003\210\001\001\022\032\n\np" - + "age_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\'\n\026return_partial_success\030\266\244\317\366\001" - + " \001(\010H\005\210\001\001\022\'\n\026service_project_number\030\371\253\205\227" - + "\001 \001(\003H\006\210\001\001B\t\n\007_filterB\025\n\023_include_all_sc" - + "opesB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_pa" - + "ge_tokenB\031\n\027_return_partial_successB\031\n\027_" - + "service_project_number\"\247\003\n%AggregatedLis" - + "tSecurityPoliciesRequest\022\027\n\006filter\030\370\226\243\240\001" - + " \001(\tH\000\210\001\001\022#\n\022include_all_scopes\030\364\341\314\272\001 \001(" - + "\010H\001\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\002\210\001\001\022\030\n\010o" - + "rder_by\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\'\n\026re" - + "turn_partial_success\030\266\244\317\366\001 \001(\010H\005\210\001\001\022\'\n\026s" - + "ervice_project_number\030\371\253\205\227\001 \001(\003H\006\210\001\001B\t\n\007" - + "_filterB\025\n\023_include_all_scopesB\016\n\014_max_r" - + "esultsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_r" - + "eturn_partial_successB\031\n\027_service_projec" - + "t_number\"\251\003\n\'AggregatedListServiceAttach" - + "mentsRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022#\n" - + "\022include_all_scopes\030\364\341\314\272\001 \001(\010H\001\210\001\001\022\033\n\013ma" - + "x_results\030\233\310\213\032 \001(\rH\002\210\001\001\022\030\n\010order_by\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\'\n\026return_partial" - + "_success\030\266\244\317\366\001 \001(\010H\005\210\001\001\022\'\n\026service_proje" - + "ct_number\030\371\253\205\227\001 \001(\003H\006\210\001\001B\t\n\007_filterB\025\n\023_" - + "include_all_scopesB\016\n\014_max_resultsB\013\n\t_o" - + "rder_byB\r\n\013_page_tokenB\031\n\027_return_partia" - + "l_successB\031\n\027_service_project_number\"\246\003\n" - + "$AggregatedListSslCertificatesRequest\022\027\n" - + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022#\n\022include_all_sc" - + "opes\030\364\341\314\272\001 \001(\010H\001\210\001\001\022\033\n\013max_results\030\233\310\213\032 " - + "\001(\rH\002\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\003\210\001\001\022\032\n\npa" - + "ge_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\'\n\026return_partial_success\030\266\244\317\366\001 " - + "\001(\010H\005\210\001\001\022\'\n\026service_project_number\030\371\253\205\227\001" - + " \001(\003H\006\210\001\001B\t\n\007_filterB\025\n\023_include_all_sco" - + "pesB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_pag" - + "e_tokenB\031\n\027_return_partial_successB\031\n\027_s" - + "ervice_project_number\"\242\003\n AggregatedList" - + "SslPoliciesRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000" + + "ct_number\"\256\003\n,AggregatedListNetworkFirew" + + "allPoliciesRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000" + "\210\001\001\022#\n\022include_all_scopes\030\364\341\314\272\001 \001(\010H\001\210\001\001" + "\022\033\n\013max_results\030\233\310\213\032 \001(\rH\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" @@ -7182,18 +7071,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "rB\025\n\023_include_all_scopesB\016\n\014_max_results" + "B\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_return_" + "partial_successB\031\n\027_service_project_numb" - + "er\"\247\003\n%AggregatedListStoragePoolTypesReq" - + "uest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022#\n\022include" - + "_all_scopes\030\364\341\314\272\001 \001(\010H\001\210\001\001\022\033\n\013max_result" - + "s\030\233\310\213\032 \001(\rH\002\210\001\001\022\030\n\010order_by\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\'\n\026return_partial_success" - + "\030\266\244\317\366\001 \001(\010H\005\210\001\001\022\'\n\026service_project_numbe" - + "r\030\371\253\205\227\001 \001(\003H\006\210\001\001B\t\n\007_filterB\025\n\023_include_" - + "all_scopesB\016\n\014_max_resultsB\013\n\t_order_byB" - + "\r\n\013_page_tokenB\031\n\027_return_partial_succes" - + "sB\031\n\027_service_project_number\"\243\003\n!Aggrega" - + "tedListStoragePoolsRequest\022\027\n\006filter\030\370\226\243" + + "er\"\241\003\n\037AggregatedListNodeGroupsRequest\022\027" + + "\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022#\n\022include_all_s" + + "copes\030\364\341\314\272\001 \001(\010H\001\210\001\001\022\033\n\013max_results\030\233\310\213\032" + + " \001(\rH\002\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\003\210\001\001\022\032\n\np" + + "age_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\'\n\026return_partial_success\030\266\244\317\366\001" + + " \001(\010H\005\210\001\001\022\'\n\026service_project_number\030\371\253\205\227" + + "\001 \001(\003H\006\210\001\001B\t\n\007_filterB\025\n\023_include_all_sc" + + "opesB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_pa" + + "ge_tokenB\031\n\027_return_partial_successB\031\n\027_" + + "service_project_number\"\244\003\n\"AggregatedLis" + + "tNodeTemplatesRequest\022\027\n\006filter\030\370\226\243\240\001 \001(" + + "\tH\000\210\001\001\022#\n\022include_all_scopes\030\364\341\314\272\001 \001(\010H\001" + + "\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\002\210\001\001\022\030\n\010orde" + + "r_by\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\'\n\026retur" + + "n_partial_success\030\266\244\317\366\001 \001(\010H\005\210\001\001\022\'\n\026serv" + + "ice_project_number\030\371\253\205\227\001 \001(\003H\006\210\001\001B\t\n\007_fi" + + "lterB\025\n\023_include_all_scopesB\016\n\014_max_resu" + + "ltsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_retu" + + "rn_partial_successB\031\n\027_service_project_n" + + "umber\"\240\003\n\036AggregatedListNodeTypesRequest" + + "\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022#\n\022include_all" + + "_scopes\030\364\341\314\272\001 \001(\010H\001\210\001\001\022\033\n\013max_results\030\233\310" + + "\213\032 \001(\rH\002\210\001\001\022\030\n\010order_by\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\301" + + "l \001(\tB\003\340A\002\022\'\n\026return_partial_success\030\266\244\317" + + "\366\001 \001(\010H\005\210\001\001\022\'\n\026service_project_number\030\371\253" + + "\205\227\001 \001(\003H\006\210\001\001B\t\n\007_filterB\025\n\023_include_all_" + + "scopesB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_" + + "page_tokenB\031\n\027_return_partial_successB\031\n" + + "\027_service_project_number\"\247\003\n%AggregatedL" + + "istPacketMirroringsRequest\022\027\n\006filter\030\370\226\243" + "\240\001 \001(\tH\000\210\001\001\022#\n\022include_all_scopes\030\364\341\314\272\001 " + "\001(\010H\001\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\002\210\001\001\022\030\n" + "\010order_by\030\350\375\307L \001(\tH\003\210\001\001\022\032\n\npage_token\030\311\260" @@ -7203,50 +7113,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\n\007_filterB\025\n\023_include_all_scopesB\016\n\014_max" + "_resultsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027" + "_return_partial_successB\031\n\027_service_proj" - + "ect_number\"\242\003\n AggregatedListSubnetworks" - + "Request\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022#\n\022incl" - + "ude_all_scopes\030\364\341\314\272\001 \001(\010H\001\210\001\001\022\033\n\013max_res" - + "ults\030\233\310\213\032 \001(\rH\002\210\001\001\022\030\n\010order_by\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\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\005\210\001\001\022\'\n\026service_project_nu" - + "mber\030\371\253\205\227\001 \001(\003H\006\210\001\001B\t\n\007_filterB\025\n\023_inclu" - + "de_all_scopesB\016\n\014_max_resultsB\013\n\t_order_" - + "byB\r\n\013_page_tokenB\031\n\027_return_partial_suc" - + "cessB\031\n\027_service_project_number\"\250\003\n&Aggr" - + "egatedListTargetHttpProxiesRequest\022\027\n\006fi" - + "lter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022#\n\022include_all_scope" - + "s\030\364\341\314\272\001 \001(\010H\001\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\r" - + "H\002\210\001\001\022\030\n\010order_by\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\'\n\026return_partial_success\030\266\244\317\366\001 \001(\010" - + "H\005\210\001\001\022\'\n\026service_project_number\030\371\253\205\227\001 \001(" - + "\003H\006\210\001\001B\t\n\007_filterB\025\n\023_include_all_scopes" - + "B\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_page_t" - + "okenB\031\n\027_return_partial_successB\031\n\027_serv" - + "ice_project_number\"\251\003\n\'AggregatedListTar" - + "getHttpsProxiesRequest\022\027\n\006filter\030\370\226\243\240\001 \001" - + "(\tH\000\210\001\001\022#\n\022include_all_scopes\030\364\341\314\272\001 \001(\010H" - + "\001\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\002\210\001\001\022\030\n\010ord" - + "er_by\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\'\n\026retu" - + "rn_partial_success\030\266\244\317\366\001 \001(\010H\005\210\001\001\022\'\n\026ser" - + "vice_project_number\030\371\253\205\227\001 \001(\003H\006\210\001\001B\t\n\007_f" - + "ilterB\025\n\023_include_all_scopesB\016\n\014_max_res" - + "ultsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_ret" - + "urn_partial_successB\031\n\027_service_project_" - + "number\"\246\003\n$AggregatedListTargetInstances" - + "Request\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022#\n\022incl" - + "ude_all_scopes\030\364\341\314\272\001 \001(\010H\001\210\001\001\022\033\n\013max_res" - + "ults\030\233\310\213\032 \001(\rH\002\210\001\001\022\030\n\010order_by\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\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\005\210\001\001\022\'\n\026service_project_nu" - + "mber\030\371\253\205\227\001 \001(\003H\006\210\001\001B\t\n\007_filterB\025\n\023_inclu" - + "de_all_scopesB\016\n\014_max_resultsB\013\n\t_order_" - + "byB\r\n\013_page_tokenB\031\n\027_return_partial_suc" - + "cessB\031\n\027_service_project_number\"\242\003\n Aggr" - + "egatedListTargetPoolsRequest\022\027\n\006filter\030\370" + + "ect_number\"\256\003\n,AggregatedListPublicDeleg" + + "atedPrefixesRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH" + + "\000\210\001\001\022#\n\022include_all_scopes\030\364\341\314\272\001 \001(\010H\001\210\001" + + "\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\002\210\001\001\022\030\n\010order_" + + "by\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\'\n\026return_" + + "partial_success\030\266\244\317\366\001 \001(\010H\005\210\001\001\022\'\n\026servic" + + "e_project_number\030\371\253\205\227\001 \001(\003H\006\210\001\001B\t\n\007_filt" + + "erB\025\n\023_include_all_scopesB\016\n\014_max_result" + + "sB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_return" + + "_partial_successB\031\n\027_service_project_num" + + "ber\"\250\003\n&AggregatedListRegionCommitmentsR" + + "equest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022#\n\022inclu" + + "de_all_scopes\030\364\341\314\272\001 \001(\010H\001\210\001\001\022\033\n\013max_resu" + + "lts\030\233\310\213\032 \001(\rH\002\210\001\001\022\030\n\010order_by\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\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\005\210\001\001\022\'\n\026service_project_num" + + "ber\030\371\253\205\227\001 \001(\003H\006\210\001\001B\t\n\007_filterB\025\n\023_includ" + + "e_all_scopesB\016\n\014_max_resultsB\013\n\t_order_b" + + "yB\r\n\013_page_tokenB\031\n\027_return_partial_succ" + + "essB\031\n\027_service_project_number\"\243\003\n!Aggre" + + "gatedListReservationsRequest\022\027\n\006filter\030\370" + "\226\243\240\001 \001(\tH\000\210\001\001\022#\n\022include_all_scopes\030\364\341\314\272" + "\001 \001(\010H\001\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\002\210\001\001\022" + "\030\n\010order_by\030\350\375\307L \001(\tH\003\210\001\001\022\032\n\npage_token\030" @@ -7256,8 +7145,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "B\t\n\007_filterB\025\n\023_include_all_scopesB\016\n\014_m" + "ax_resultsB\013\n\t_order_byB\r\n\013_page_tokenB\031" + "\n\027_return_partial_successB\031\n\027_service_pr" - + "oject_number\"\247\003\n%AggregatedListTargetTcp" - + "ProxiesRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022" + + "oject_number\"\247\003\n%AggregatedListResourceP" + + "oliciesRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022" + "#\n\022include_all_scopes\030\364\341\314\272\001 \001(\010H\001\210\001\001\022\033\n\013" + "max_results\030\233\310\213\032 \001(\rH\002\210\001\001\022\030\n\010order_by\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" @@ -7266,40 +7155,72 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ject_number\030\371\253\205\227\001 \001(\003H\006\210\001\001B\t\n\007_filterB\025\n" + "\023_include_all_scopesB\016\n\014_max_resultsB\013\n\t" + "_order_byB\r\n\013_page_tokenB\031\n\027_return_part" - + "ial_successB\031\n\027_service_project_number\"\250" - + "\003\n&AggregatedListTargetVpnGatewaysReques" - + "t\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022#\n\022include_al" - + "l_scopes\030\364\341\314\272\001 \001(\010H\001\210\001\001\022\033\n\013max_results\030\233" - + "\310\213\032 \001(\rH\002\210\001\001\022\030\n\010order_by\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\'\n\026return_partial_success\030\266\244" - + "\317\366\001 \001(\010H\005\210\001\001\022\'\n\026service_project_number\030\371" - + "\253\205\227\001 \001(\003H\006\210\001\001B\t\n\007_filterB\025\n\023_include_all" - + "_scopesB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013" - + "_page_tokenB\031\n\027_return_partial_successB\031" - + "\n\027_service_project_number\"\236\003\n\034Aggregated" - + "ListUrlMapsRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000" - + "\210\001\001\022#\n\022include_all_scopes\030\364\341\314\272\001 \001(\010H\001\210\001\001" - + "\022\033\n\013max_results\030\233\310\213\032 \001(\rH\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\'\n\026return_p" - + "artial_success\030\266\244\317\366\001 \001(\010H\005\210\001\001\022\'\n\026service" - + "_project_number\030\371\253\205\227\001 \001(\003H\006\210\001\001B\t\n\007_filte" - + "rB\025\n\023_include_all_scopesB\016\n\014_max_results" - + "B\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_return_" - + "partial_successB\031\n\027_service_project_numb" - + "er\"\242\003\n AggregatedListVpnGatewaysRequest\022" - + "\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022#\n\022include_all_" - + "scopes\030\364\341\314\272\001 \001(\010H\001\210\001\001\022\033\n\013max_results\030\233\310\213" - + "\032 \001(\rH\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\'\n\026return_partial_success\030\266\244\317\366" - + "\001 \001(\010H\005\210\001\001\022\'\n\026service_project_number\030\371\253\205" - + "\227\001 \001(\003H\006\210\001\001B\t\n\007_filterB\025\n\023_include_all_s" - + "copesB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_p" - + "age_tokenB\031\n\027_return_partial_successB\031\n\027" - + "_service_project_number\"\241\003\n\037AggregatedLi" - + "stVpnTunnelsRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH" + + "ial_successB\031\n\027_service_project_number\"\236" + + "\003\n\034AggregatedListRoutersRequest\022\027\n\006filte" + + "r\030\370\226\243\240\001 \001(\tH\000\210\001\001\022#\n\022include_all_scopes\030\364" + + "\341\314\272\001 \001(\010H\001\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\002\210" + + "\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\003\210\001\001\022\032\n\npage_tok" + + "en\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\'\n\026return_partial_success\030\266\244\317\366\001 \001(\010H\005\210" + + "\001\001\022\'\n\026service_project_number\030\371\253\205\227\001 \001(\003H\006" + + "\210\001\001B\t\n\007_filterB\025\n\023_include_all_scopesB\016\n" + + "\014_max_resultsB\013\n\t_order_byB\r\n\013_page_toke" + + "nB\031\n\027_return_partial_successB\031\n\027_service" + + "_project_number\"\247\003\n%AggregatedListSecuri" + + "tyPoliciesRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210" + + "\001\001\022#\n\022include_all_scopes\030\364\341\314\272\001 \001(\010H\001\210\001\001\022" + + "\033\n\013max_results\030\233\310\213\032 \001(\rH\002\210\001\001\022\030\n\010order_by" + + "\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\'\n\026return_pa" + + "rtial_success\030\266\244\317\366\001 \001(\010H\005\210\001\001\022\'\n\026service_" + + "project_number\030\371\253\205\227\001 \001(\003H\006\210\001\001B\t\n\007_filter" + + "B\025\n\023_include_all_scopesB\016\n\014_max_resultsB" + + "\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_return_p" + + "artial_successB\031\n\027_service_project_numbe" + + "r\"\251\003\n\'AggregatedListServiceAttachmentsRe" + + "quest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022#\n\022includ" + + "e_all_scopes\030\364\341\314\272\001 \001(\010H\001\210\001\001\022\033\n\013max_resul" + + "ts\030\233\310\213\032 \001(\rH\002\210\001\001\022\030\n\010order_by\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\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\005\210\001\001\022\'\n\026service_project_numb" + + "er\030\371\253\205\227\001 \001(\003H\006\210\001\001B\t\n\007_filterB\025\n\023_include" + + "_all_scopesB\016\n\014_max_resultsB\013\n\t_order_by" + + "B\r\n\013_page_tokenB\031\n\027_return_partial_succe" + + "ssB\031\n\027_service_project_number\"\246\003\n$Aggreg" + + "atedListSslCertificatesRequest\022\027\n\006filter" + + "\030\370\226\243\240\001 \001(\tH\000\210\001\001\022#\n\022include_all_scopes\030\364\341" + + "\314\272\001 \001(\010H\001\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\002\210\001" + + "\001\022\030\n\010order_by\030\350\375\307L \001(\tH\003\210\001\001\022\032\n\npage_toke" + + "n\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\'\n\026return_partial_success\030\266\244\317\366\001 \001(\010H\005\210\001" + + "\001\022\'\n\026service_project_number\030\371\253\205\227\001 \001(\003H\006\210" + + "\001\001B\t\n\007_filterB\025\n\023_include_all_scopesB\016\n\014" + + "_max_resultsB\013\n\t_order_byB\r\n\013_page_token" + + "B\031\n\027_return_partial_successB\031\n\027_service_" + + "project_number\"\242\003\n AggregatedListSslPoli" + + "ciesRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022#\n\022" + + "include_all_scopes\030\364\341\314\272\001 \001(\010H\001\210\001\001\022\033\n\013max" + + "_results\030\233\310\213\032 \001(\rH\002\210\001\001\022\030\n\010order_by\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\007" + + "project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_partial_" + + "success\030\266\244\317\366\001 \001(\010H\005\210\001\001\022\'\n\026service_projec" + + "t_number\030\371\253\205\227\001 \001(\003H\006\210\001\001B\t\n\007_filterB\025\n\023_i" + + "nclude_all_scopesB\016\n\014_max_resultsB\013\n\t_or" + + "der_byB\r\n\013_page_tokenB\031\n\027_return_partial" + + "_successB\031\n\027_service_project_number\"\247\003\n%" + + "AggregatedListStoragePoolTypesRequest\022\027\n" + + "\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022#\n\022include_all_sc" + + "opes\030\364\341\314\272\001 \001(\010H\001\210\001\001\022\033\n\013max_results\030\233\310\213\032 " + + "\001(\rH\002\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\003\210\001\001\022\032\n\npa" + + "ge_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\'\n\026return_partial_success\030\266\244\317\366\001 " + + "\001(\010H\005\210\001\001\022\'\n\026service_project_number\030\371\253\205\227\001" + + " \001(\003H\006\210\001\001B\t\n\007_filterB\025\n\023_include_all_sco" + + "pesB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_pag" + + "e_tokenB\031\n\027_return_partial_successB\031\n\027_s" + + "ervice_project_number\"\243\003\n!AggregatedList" + + "StoragePoolsRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH" + "\000\210\001\001\022#\n\022include_all_scopes\030\364\341\314\272\001 \001(\010H\001\210\001" + "\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\002\210\001\001\022\030\n\010order_" + "by\030\350\375\307L \001(\tH\003\210\001\001\022\032\n\npage_token\030\311\260\304\t \001(\tH" @@ -7309,5241 +7230,5307 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "erB\025\n\023_include_all_scopesB\016\n\014_max_result" + "sB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_return" + "_partial_successB\031\n\027_service_project_num" - + "ber\"\201\001\n\014AliasIpRange\022\035\n\rip_cidr_range\030\312\315" - + "\344. \001(\tH\000\210\001\001\022&\n\025subnetwork_range_name\030\276\262\201" - + "\271\001 \001(\tH\001\210\001\001B\020\n\016_ip_cidr_rangeB\030\n\026_subnet" - + "work_range_name\"\265\005\n\036AllocationAggregateR" - + "eservation\022i\n\020in_use_resources\030\323\367\203\303\001 \003(\013" - + "2K.google.cloud.compute.v1.AllocationAgg" - + "regateReservationReservedResourceInfo\022j\n" - + "\022reserved_resources\030\316\343\325e \003(\0132K.google.cl" - + "oud.compute.v1.AllocationAggregateReserv" - + "ationReservedResourceInfo\022\031\n\tvm_family\030\354" - + "\273\316; \001(\tH\000\210\001\001\022\036\n\rworkload_type\030\202\376\260\202\001 \001(\tH" - + "\001\210\001\001\"\200\002\n\010VmFamily\022\027\n\023UNDEFINED_VM_FAMILY" - + "\020\000\022%\n\036VM_FAMILY_CLOUD_TPU_DEVICE_CT3\020\374\215\267" - + "\024\022+\n$VM_FAMILY_CLOUD_TPU_LITE_DEVICE_CT5" - + "L\020\343\202\3013\022/\n(VM_FAMILY_CLOUD_TPU_LITE_POD_S" - + "LICE_CT5LP\020\363\326\365\010\022*\n\"VM_FAMILY_CLOUD_TPU_P" - + "OD_SLICE_CT3P\020\270\321\332\366\001\022*\n\"VM_FAMILY_CLOUD_T" - + "PU_POD_SLICE_CT4P\020\327\321\332\366\001\"^\n\014WorkloadType\022" - + "\033\n\027UNDEFINED_WORKLOAD_TYPE\020\000\022\014\n\005BATCH\020\232\276" - + "\203\036\022\016\n\007SERVING\020\354\247\275\010\022\023\n\013UNSPECIFIED\020\227\276\230\373\001B" - + "\014\n\n_vm_familyB\020\n\016_workload_type\"\272\001\n2Allo" - + "cationAggregateReservationReservedResour" - + "ceInfo\022t\n\013accelerator\030\353\304\253\312\001 \001(\0132V.google" - + ".cloud.compute.v1.AllocationAggregateRes" - + "ervationReservedResourceInfoAcceleratorH" - + "\000\210\001\001B\016\n\014_accelerator\"\260\001\n=AllocationAggre" - + "gateReservationReservedResourceInfoAccel" - + "erator\022\"\n\021accelerator_count\030\273\264\337\360\001 \001(\005H\000\210", - "\001\001\022 \n\020accelerator_type\030\216\341\350A \001(\tH\001\210\001\001B\024\n\022" - + "_accelerator_countB\023\n\021_accelerator_type\"" - + "\247\001\n\030AllocationResourceStatus\022o\n\027specific" - + "_sku_allocation\030\357\377\310] \001(\0132F.google.cloud." - + "compute.v1.AllocationResourceStatusSpeci" - + "ficSKUAllocationH\000\210\001\001B\032\n\030_specific_sku_a" - + "llocation\"|\n-AllocationResourceStatusSpe" - + "cificSKUAllocation\022+\n\033source_instance_te" - + "mplate_id\030\372\357\2025 \001(\tH\000\210\001\001B\036\n\034_source_insta" - + "nce_template_id\"\342\001\nFAllocationSpecificSK" - + "UAllocationAllocatedInstancePropertiesRe" - + "servedDisk\022\035\n\014disk_size_gb\030\267\232\347\226\001 \001(\003H\000\210\001" - + "\001\022\032\n\tinterface\030\271\332\325\357\001 \001(\tH\001\210\001\001\">\n\tInterfa" - + "ce\022\027\n\023UNDEFINED_INTERFACE\020\000\022\013\n\004NVME\020\340\202\223\001" - + "\022\013\n\004SCSI\020\246\201\233\001B\017\n\r_disk_size_gbB\014\n\n_inter" - + "face\"\227\003\n9AllocationSpecificSKUAllocation" - + "ReservedInstanceProperties\022J\n\022guest_acce" - + "lerators\030\357\314\207\335\001 \003(\0132*.google.cloud.comput" - + "e.v1.AcceleratorConfig\022v\n\nlocal_ssds\030\303\216\323" - + "m \003(\0132_.google.cloud.compute.v1.Allocati" - + "onSpecificSKUAllocationAllocatedInstance" - + "PropertiesReservedDisk\022\036\n\rlocation_hint\030" - + "\321\201\222\247\001 \001(\tH\000\210\001\001\022\034\n\014machine_type\030\262\260\312l \001(\tH" - + "\001\210\001\001\022 \n\020min_cpu_platform\030\367\233\352s \001(\tH\002\210\001\001B\020" - + "\n\016_location_hintB\017\n\r_machine_typeB\023\n\021_mi" - + "n_cpu_platform\"\376\002\n AllocationSpecificSKU" - + "Reservation\022\036\n\rassured_count\030\315\370\212\206\001 \001(\003H\000" - + "\210\001\001\022\025\n\005count\030\217\242\235- \001(\003H\001\210\001\001\022\035\n\014in_use_cou" - + "nt\030\275\253\246\353\001 \001(\003H\002\210\001\001\022w\n\023instance_properties" - + "\030\235\236\330f \001(\0132R.google.cloud.compute.v1.Allo" - + "cationSpecificSKUAllocationReservedInsta" - + "ncePropertiesH\003\210\001\001\022)\n\030source_instance_te" - + "mplate\030\300\303\301\236\001 \001(\tH\004\210\001\001B\020\n\016_assured_countB" - + "\010\n\006_countB\017\n\r_in_use_countB\026\n\024_instance_" - + "propertiesB\033\n\031_source_instance_template\"" - + "K\n\007Allowed\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\"\240\001\n" - + "&AnnouncePublicAdvertisedPrefixeRequest\022" - + "!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022(\n\030pu" - + "blic_advertised_prefix\030\236\367\3110 \001(\tB\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\"" - + "\277\001\n%AnnouncePublicDelegatedPrefixeReques" - + "t\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\'\n\027" - + "public_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\nreques" - + "t_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\250\002\n2Ap" - + "plyUpdatesToInstancesInstanceGroupManage" - + "rRequest\022&\n\026instance_group_manager\030\303\367\363v " - + "\001(\tB\003\340A\002\022\211\001\n6instance_group_managers_app" - + "ly_updates_request_resource\030\323\366\316{ \001(\0132A.g" - + "oogle.cloud.compute.v1.InstanceGroupMana" - + "gersApplyUpdatesRequestB\003\340A\002\022!\n\007project\030" - + "\231\226\301l \001(\tB\r\340A\002\362G\007project\022\033\n\004zone\030\254\307\344\001 \001(\t" - + "B\n\340A\002\362G\004zone\"\277\002\n8ApplyUpdatesToInstances" - + "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\226\001\n=region_instanc" - + "e_group_managers_apply_updates_request_r" - + "esource\030\376\351\255$ \001(\0132G.google.cloud.compute." - + "v1.RegionInstanceGroupManagersApplyUpdat" - + "esRequestB\003\340A\002\"\236\002\n\031AttachDiskInstanceReq" - + "uest\022M\n\026attached_disk_resource\030\225\222\232+ \001(\0132" - + "%.google.cloud.compute.v1.AttachedDiskB\003" - + "\340A\002\022\034\n\014force_attach\030\231\244\211D \001(\010H\000\210\001\001\022\030\n\010ins" - + "tance\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\001\210" - + "\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\017\n\r_forc" - + "e_attachB\r\n\013_request_id\"\317\002\n7AttachNetwor" - + "kEndpointsGlobalNetworkEndpointGroupRequ" - + "est\022\234\001\n@global_network_endpoint_groups_a" - + "ttach_endpoints_request_resource\030\353\241\321\016 \001(" - + "\0132J.google.cloud.compute.v1.GlobalNetwor" - + "kEndpointGroupsAttachEndpointsRequestB\003\340" - + "A\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\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_i" - + "d\"\330\002\n1AttachNetworkEndpointsNetworkEndpo" - + "intGroupRequest\022\'\n\026network_endpoint_grou" - + "p\030\206\313\363\316\001 \001(\tB\003\340A\002\022\216\001\n9network_endpoint_gr" - + "oups_attach_endpoints_request_resource\030\207" - + "\265 \001(\0132D.google.cloud.compute.v1.Network" - + "EndpointGroupsAttachEndpointsRequestB\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\"\361\002\n7AttachN" - + "etworkEndpointsRegionNetworkEndpointGrou" - + "pRequest\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\007pro" - + "ject\022\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\235\001" - + "\n@region_network_endpoint_groups_attach_" - + "endpoints_request_resource\030\374\371\335\237\001 \001(\0132J.g" - + "oogle.cloud.compute.v1.RegionNetworkEndp" - + "ointGroupsAttachEndpointsRequestB\003\340A\002\022\032\n" - + "\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id" - + "\"\334\n\n\014AttachedDisk\022\035\n\014architecture\030\323\322\261\220\001 " - + "\001(\tH\000\210\001\001\022\034\n\013auto_delete\030\273\344\316\335\001 \001(\010H\001\210\001\001\022\024" - + "\n\004boot\030\362\365\270\001 \001(\010H\002\210\001\001\022\033\n\013device_name\030\324\265\232 " - + " \001(\tH\003\210\001\001\022T\n\023disk_encryption_key\030\205\355\304\201\001 \001" - + "(\0132..google.cloud.compute.v1.CustomerEnc" - + "ryptionKeyH\004\210\001\001\022\035\n\014disk_size_gb\030\267\232\347\226\001 \001(" - + "\003H\005\210\001\001\022\034\n\014force_attach\030\231\244\211D \001(\010H\006\210\001\001\022E\n\021" - + "guest_os_features\030\321\340\347% \003(\0132\'.google.clou" - + "d.compute.v1.GuestOsFeature\022\025\n\005index\030\322\321\354" - + "/ \001(\005H\007\210\001\001\022X\n\021initialize_params\030\225\222\270\010 \001(\013" - + "25.google.cloud.compute.v1.AttachedDiskI" - + "nitializeParamsH\010\210\001\001\022\032\n\tinterface\030\271\332\325\357\001 " - + "\001(\tH\t\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\n\210\001\001\022\024\n\010licens" - + "es\030\322\210\200\241\001 \003(\t\022\024\n\004mode\030\243\363\314\001 \001(\tH\013\210\001\001\022\034\n\013sa" - + "ved_state\030\331\251\241\304\001 \001(\tH\014\210\001\001\022\\\n\037shielded_ins" - + "tance_initial_state\030\203\304\334[ \001(\0132+.google.cl" - + "oud.compute.v1.InitialStateConfigH\r\210\001\001\022\026" - + "\n\006source\030\233\320\301T \001(\tH\016\210\001\001\022\024\n\004type\030\272\236\332\001 \001(\tH" - + "\017\210\001\001\"j\n\014Architecture\022\032\n\026UNDEFINED_ARCHIT" - + "ECTURE\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\">\n\tInte" - + "rface\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_MO" - + "DE\020\000\022\020\n\tREAD_ONLY\020\265\231\354+\022\021\n\nREAD_WRITE\020\326\227\344" - + "R\"_\n\nSavedState\022\031\n\025UNDEFINED_SAVED_STATE" - + "\020\000\022$\n\034DISK_SAVED_STATE_UNSPECIFIED\020\317\277\312\272\001" - + "\022\020\n\tPRESERVED\020\370\326\230y\"?\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\017\n\r_architectureB\016\n\014_auto_deleteB\007\n\005" - + "_bootB\016\n\014_device_nameB\026\n\024_disk_encryptio" - + "n_keyB\017\n\r_disk_size_gbB\017\n\r_force_attachB" - + "\010\n\006_indexB\024\n\022_initialize_paramsB\014\n\n_inte" - + "rfaceB\007\n\005_kindB\007\n\005_modeB\016\n\014_saved_stateB" - + "\"\n _shielded_instance_initial_stateB\t\n\007_" - + "sourceB\007\n\005_type\"\217\014\n\034AttachedDiskInitiali" - + "zeParams\022\035\n\014architecture\030\323\322\261\220\001 \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\tdisk_na" - + "me\030\355\277\240, \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\031\n\tdisk_type\030\234\351\254, \001(\tH\004\210\001\001\022+\n\033en" - + "able_confidential_compute\030\274\353\3310 \001(\010H\005\210\001\001\022" - + "U\n\006labels\030\377\277\301\356\001 \003(\0132A.google.cloud.compu" - + "te.v1.AttachedDiskInitializeParams.Label" - + "sEntry\022\024\n\010licenses\030\322\210\200\241\001 \003(\t\022 \n\020on_updat" - + "e_action\030\214\330\304` \001(\tH\006\210\001\001\022 \n\020provisioned_io" - + "ps\030\324\275\207Y \001(\003H\007\210\001\001\022\'\n\026provisioned_throughp" - + "ut\030\225\276\210\373\001 \001(\003H\010\210\001\001\022\030\n\rreplica_zones\030\200\270\214\027 " - + "\003(\t\022q\n\025resource_manager_tags\030\374\233\213\264\001 \003(\0132N" - + ".google.cloud.compute.v1.AttachedDiskIni" - + "tializeParams.ResourceManagerTagsEntry\022\034" - + "\n\021resource_policies\030\341\234\314\n \003(\t\022\034\n\014source_i" - + "mage\030\267\350\206\030 \001(\tH\t\210\001\001\022\\\n\033source_image_encry" - + "ption_key\030\253\221\365\265\001 \001(\0132..google.cloud.compu" - + "te.v1.CustomerEncryptionKeyH\n\210\001\001\022\037\n\017sour" - + "ce_snapshot\030\350\232\216< \001(\tH\013\210\001\001\022_\n\036source_snap" - + "shot_encryption_key\030\332\216\347\220\001 \001(\0132..google.c" - + "loud.compute.v1.CustomerEncryptionKeyH\014\210" - + "\001\001\022\035\n\014storage_pool\030\340\306\361\253\001 \001(\tH\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\"j\n\014Architecture\022\032\n\026" - + "UNDEFINED_ARCHITECTURE\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\"\212\001\n\016OnUpdateAction\022\036\n\032UNDEFINED" - + "_ON_UPDATE_ACTION\020\000\022\025\n\rRECREATE_DISK\020\355\235\366" - + "\353\001\022\'\n\037RECREATE_DISK_IF_SOURCE_CHANGED\020\200\212" - + "\352\275\001\022\030\n\021USE_EXISTING_DISK\020\371\345\371nB\017\n\r_archit" - + "ectureB\016\n\014_descriptionB\014\n\n_disk_nameB\017\n\r" - + "_disk_size_gbB\014\n\n_disk_typeB\036\n\034_enable_c" - + "onfidential_computeB\023\n\021_on_update_action" - + "B\023\n\021_provisioned_iopsB\031\n\027_provisioned_th" - + "roughputB\017\n\r_source_imageB\036\n\034_source_ima" - + "ge_encryption_keyB\022\n\020_source_snapshotB!\n" - + "\037_source_snapshot_encryption_keyB\017\n\r_sto" - + "rage_pool\"\230\001\n\013AuditConfig\022F\n\021audit_log_c" - + "onfigs\030\222\352\362\350\001 \003(\0132\'.google.cloud.compute." - + "v1.AuditLogConfig\022\033\n\020exempted_members\030\230\335" - + "\365n \003(\t\022\030\n\007service\030\265\215\217\262\001 \001(\tH\000\210\001\001B\n\n\010_ser" - + "vice\"\224\002\n\016AuditLogConfig\022\033\n\020exempted_memb" - + "ers\030\230\335\365n \003(\t\022\'\n\027ignore_child_exemptions\030" - + "\232\217\271! \001(\010H\000\210\001\001\022\031\n\010log_type\030\325\236\234\300\001 \001(\tH\001\210\001\001" - + "\"x\n\007LogType\022\026\n\022UNDEFINED_LOG_TYPE\020\000\022\021\n\nA" - + "DMIN_READ\020\246\311\276=\022\021\n\tDATA_READ\020\213\272\305\221\001\022\022\n\nDAT" - + "A_WRITE\020\352\205\233\242\001\022\033\n\024LOG_TYPE_UNSPECIFIED\020\315\312" - + "\327IB\032\n\030_ignore_child_exemptionsB\013\n\t_log_t" - + "ype\"\235\007\n\nAutoscaler\022N\n\022autoscaling_policy" - + "\030\331\340\352i \001(\0132*.google.cloud.compute.v1.Auto" - + "scalingPolicyH\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\024\n\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022 \n\020recommende" - + "d_size\030\345\366\375z \001(\005H\006\210\001\001\022\026\n\006region\030\364\315\240B \001(\tH" - + "\007\210\001\001\022c\n\027scaling_schedule_status\030\342\253\227\336\001 \003(" - + "\0132>.google.cloud.compute.v1.Autoscaler.S" - + "calingScheduleStatusEntry\022\032\n\tself_link\030\215" - + "\222\305\331\001 \001(\tH\010\210\001\001\022\026\n\006status\030\362\237\267V \001(\tH\t\210\001\001\022L\n" - + "\016status_details\030\365\255\241\255\001 \003(\01320.google.cloud" - + ".compute.v1.AutoscalerStatusDetails\022\026\n\006t" - + "arget\030\221\343\371[ \001(\tH\n\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tH\013\210\001" - + "\001\032l\n\032ScalingScheduleStatusEntry\022\013\n\003key\030\001" - + " \001(\t\022=\n\005value\030\002 \001(\0132..google.cloud.compu" - + "te.v1.ScalingScheduleStatus:\0028\001\"^\n\006Statu" - + "s\022\024\n\020UNDEFINED_STATUS\020\000\022\016\n\006ACTIVE\020\206\346\211\226\001\022" - + "\020\n\010DELETING\020\250\247\207\374\001\022\014\n\005ERROR\020\350\263\313\037\022\016\n\007PENDI" - + "NG\020\367\252\360\020B\025\n\023_autoscaling_policyB\025\n\023_creat" - + "ion_timestampB\016\n\014_descriptionB\005\n\003_idB\007\n\005" - + "_kindB\007\n\005_nameB\023\n\021_recommended_sizeB\t\n\007_" - + "regionB\014\n\n_self_linkB\t\n\007_statusB\t\n\007_targ" - + "etB\007\n\005_zone\"\277\003\n\030AutoscalerAggregatedList" - + "\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022N\n\005items\030\300\317\367/ \003(\0132<.g" - + "oogle.cloud.compute.v1.AutoscalerAggrega" - + "tedList.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\tsel" - + "f_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.clou" - + "d.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.clo" - + "ud.compute.v1.AutoscalersScopedList:\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\016AutoscalerList" - + "\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0225\n\005items\030\300\317\367/ \003(\0132#.g" - + "oogle.cloud.compute.v1.Autoscaler\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\"\313\006" - + "\n\027AutoscalerStatusDetails\022\030\n\007message\030\207\200\254" - + "\307\001 \001(\tH\000\210\001\001\022\024\n\004type\030\272\236\332\001 \001(\tH\001\210\001\001\"\352\005\n\004Ty" - + "pe\022\022\n\016UNDEFINED_TYPE\020\000\022\037\n\027ALL_INSTANCES_" - + "UNHEALTHY\020\345\220\215\301\001\022%\n\036BACKEND_SERVICE_DOES_" - + "NOT_EXIST\020\232\232\243[\022 \n\032CAPPED_AT_MAX_NUM_REPL" - + "ICAS\020\331\323\037\022,\n$CUSTOM_METRIC_DATA_POINTS_TO" - + "O_SPARSE\020\263\264\356\234\001\022\034\n\025CUSTOM_METRIC_INVALID\020" - + "\326\271\275a\022\025\n\016MIN_EQUALS_MAX\020\361\231\254\001\022(\n!MISSING_C" - + "USTOM_METRIC_DATA_POINTS\020\336\251\237-\022*\n\"MISSING" - + "_LOAD_BALANCING_DATA_POINTS\020\322\250\217\363\001\022\017\n\010MOD" - + "E_OFF\020\263\221\244N\022\032\n\023MODE_ONLY_SCALE_OUT\020\342\267\352\001\022\023" - + "\n\014MODE_ONLY_UP\020\362\332\2220\022$\n\035MORE_THAN_ONE_BAC" - + "KEND_SERVICE\020\335\313\270H\022\"\n\032NOT_ENOUGH_QUOTA_AV" - + "AILABLE\020\277\257\233\300\001\022 \n\030REGION_RESOURCE_STOCKOU" - + "T\020\376\311\210\374\001\022$\n\035SCALING_TARGET_DOES_NOT_EXIST" - + "\020\233\223\275:\0226\n/SCHEDULED_INSTANCES_GREATER_THA" - + "N_AUTOSCALER_MAX\020\302\353\372\r\0224\n,SCHEDULED_INSTA" - + "NCES_LESS_THAN_AUTOSCALER_MIN\020\265\306\365\275\001\022\017\n\007U" - + "NKNOWN\020\252\360\304\316\001\0229\n1UNSUPPORTED_MAX_RATE_LOA" - + "D_BALANCING_CONFIGURATION\020\321\226\341\235\001\022\035\n\026ZONE_" - + "RESOURCE_STOCKOUT\020\266\317\235dB\n\n\010_messageB\007\n\005_t" - + "ype\"\234\001\n\025AutoscalersScopedList\022<\n\013autosca" - + "lers\030\374\270\214\336\001 \003(\0132#.google.cloud.compute.v1" - + ".Autoscaler\0229\n\007warning\030\234\337\226\030 \001(\0132 .google" - + ".cloud.compute.v1.WarningH\000\210\001\001B\n\n\010_warni" - + "ng\"\351\007\n\021AutoscalingPolicy\022$\n\024cool_down_pe" - + "riod_sec\030\232\207\2553 \001(\005H\000\210\001\001\022Z\n\017cpu_utilizatio" - + "n\030\213\244\343\265\001 \001(\01328.google.cloud.compute.v1.Au" - + "toscalingPolicyCpuUtilizationH\001\210\001\001\022h\n\032cu" - + "stom_metric_utilizations\030\362\375\366> \003(\0132A.goog" - + "le.cloud.compute.v1.AutoscalingPolicyCus" - + "tomMetricUtilization\022o\n\032load_balancing_u" - + "tilization\030\343\321\365\314\001 \001(\0132B.google.cloud.comp" - + "ute.v1.AutoscalingPolicyLoadBalancingUti" - + "lizationH\002\210\001\001\022 \n\020max_num_replicas\030\317\224\334\035 \001" - + "(\005H\003\210\001\001\022!\n\020min_num_replicas\030\241\370\241\377\001 \001(\005H\004\210" - + "\001\001\022\024\n\004mode\030\243\363\314\001 \001(\tH\005\210\001\001\022[\n\020scale_in_con" - + "trol\030\330\274\316\373\001 \001(\01328.google.cloud.compute.v1" - + ".AutoscalingPolicyScaleInControlH\006\210\001\001\022_\n" - + "\021scaling_schedules\030\204\364\274\251\001 \003(\0132@.google.cl" - + "oud.compute.v1.AutoscalingPolicy.Scaling" - + "SchedulesEntry\032r\n\025ScalingSchedulesEntry\022" - + "\013\n\003key\030\001 \001(\t\022H\n\005value\030\002 \001(\01329.google.clo" - + "ud.compute.v1.AutoscalingPolicyScalingSc" - + "hedule:\0028\001\"V\n\004Mode\022\022\n\016UNDEFINED_MODE\020\000\022\t" - + "\n\003OFF\020\317\342\004\022\007\n\002ON\020\337\023\022\025\n\016ONLY_SCALE_OUT\020\306\363\350" - + "H\022\017\n\007ONLY_UP\020\216\320\374\343\001B\027\n\025_cool_down_period_" - + "secB\022\n\020_cpu_utilizationB\035\n\033_load_balanci" - + "ng_utilizationB\023\n\021_max_num_replicasB\023\n\021_" - + "min_num_replicasB\007\n\005_modeB\023\n\021_scale_in_c" - + "ontrol\"\366\001\n\037AutoscalingPolicyCpuUtilizati" - + "on\022\"\n\021predictive_method\030\301\227\211\272\001 \001(\tH\000\210\001\001\022\"" - + "\n\022utilization_target\030\316\354\371f \001(\001H\001\210\001\001\"^\n\020Pr" - + "edictiveMethod\022\037\n\033UNDEFINED_PREDICTIVE_M" - + "ETHOD\020\000\022\013\n\004NONE\020\270\316\222\001\022\034\n\025OPTIMIZE_AVAILAB" - + "ILITY\020\375\346\305\005B\024\n\022_predictive_methodB\025\n\023_uti" - + "lization_target\"\277\003\n(AutoscalingPolicyCus" - + "tomMetricUtilization\022\027\n\006filter\030\370\226\243\240\001 \001(\t" - + "H\000\210\001\001\022\027\n\006metric\030\260\353\227\376\001 \001(\tH\001\210\001\001\022+\n\032single" - + "_instance_assignment\030\300\314\330\360\001 \001(\001H\002\210\001\001\022\"\n\022u" - + "tilization_target\030\316\354\371f \001(\001H\003\210\001\001\022(\n\027utili" - + "zation_target_type\030\213\245\232\242\001 \001(\tH\004\210\001\001\"~\n\025Uti" - + "lizationTargetType\022%\n!UNDEFINED_UTILIZAT" - + "ION_TARGET_TYPE\020\000\022\027\n\020DELTA_PER_MINUTE\020\235\275" - + "\330)\022\027\n\020DELTA_PER_SECOND\020\375\371\326y\022\014\n\005GAUGE\020\331\261\235" - + " B\t\n\007_filterB\t\n\007_metricB\035\n\033_single_insta" - + "nce_assignmentB\025\n\023_utilization_targetB\032\n" - + "\030_utilization_target_type\"f\n)Autoscaling" - + "PolicyLoadBalancingUtilization\022\"\n\022utiliz" - + "ation_target\030\316\354\371f \001(\001H\000\210\001\001B\025\n\023_utilizati" - + "on_target\"\302\001\n\037AutoscalingPolicyScaleInCo" - + "ntrol\022O\n\026max_scaled_in_replicas\030\353\325\225V \001(\013" - + "2\'.google.cloud.compute.v1.FixedOrPercen" - + "tH\000\210\001\001\022\037\n\017time_window_sec\030\264\200\256\021 \001(\005H\001\210\001\001B" - + "\031\n\027_max_scaled_in_replicasB\022\n\020_time_wind" - + "ow_sec\"\272\002\n AutoscalingPolicyScalingSched" - + "ule\022\034\n\013description\030\374\207\326\311\001 \001(\tH\000\210\001\001\022\031\n\010dis" - + "abled\030\374\364\230\201\001 \001(\010H\001\210\001\001\022\034\n\014duration_sec\030\246\236\241" - + "e \001(\005H\002\210\001\001\022&\n\025min_required_replicas\030\256\235\245\256" - + "\001 \001(\005H\003\210\001\001\022\031\n\010schedule\030\227\245\232\263\001 \001(\tH\004\210\001\001\022\031\n" - + "\ttime_zone\030\336\203\311\021 \001(\tH\005\210\001\001B\016\n\014_description" - + "B\013\n\t_disabledB\017\n\r_duration_secB\030\n\026_min_r" - + "equired_replicasB\013\n\t_scheduleB\014\n\n_time_z" - + "one\"\224\007\n\007Backend\022\037\n\016balancing_mode\030\211\313\226\315\001 " - + "\001(\tH\000\210\001\001\022 \n\017capacity_scaler\030\215\307\324\226\001 \001(\002H\001\210" - + "\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\030\n\010fail" - + "over\030\362\251\235B \001(\010H\003\210\001\001\022\025\n\005group\030\377\354\203/ \001(\tH\004\210\001" - + "\001\022\037\n\017max_connections\030\372\325\3414 \001(\005H\005\210\001\001\022,\n\034ma" - + "x_connections_per_endpoint\030\234\347\266g \001(\005H\006\210\001\001" - + "\022,\n\034max_connections_per_instance\030\234\325\3641 \001(" - + "\005H\007\210\001\001\022\031\n\010max_rate\030\333\275\310\302\001 \001(\005H\010\210\001\001\022%\n\025max" - + "_rate_per_endpoint\030\333\252\364= \001(\002H\t\210\001\001\022%\n\025max_" - + "rate_per_instance\030\333\230\262\010 \001(\002H\n\210\001\001\022\037\n\017max_u" - + "tilization\030\307\367\324F \001(\002H\013\210\001\001\022\032\n\npreference\030\333" - + "\371\362G \001(\tH\014\210\001\001\"a\n\rBalancingMode\022\034\n\030UNDEFIN" - + "ED_BALANCING_MODE\020\000\022\021\n\nCONNECTION\020\336\325\271u\022\013" - + "\n\004RATE\020\340\211\231\001\022\022\n\013UTILIZATION\020\202\204\357J\"i\n\nPrefe" - + "rence\022\030\n\024UNDEFINED_PREFERENCE\020\000\022\016\n\007DEFAU" - + "LT\020\241\304\3756\022\036\n\026PREFERENCE_UNSPECIFIED\020\263\353\316\354\001\022" - + "\021\n\tPREFERRED\020\341\270\334\307\001B\021\n\017_balancing_modeB\022\n" - + "\020_capacity_scalerB\016\n\014_descriptionB\013\n\t_fa" - + "iloverB\010\n\006_groupB\022\n\020_max_connectionsB\037\n\035" - + "_max_connections_per_endpointB\037\n\035_max_co" - + "nnections_per_instanceB\013\n\t_max_rateB\030\n\026_" - + "max_rate_per_endpointB\030\n\026_max_rate_per_i" - + "nstanceB\022\n\020_max_utilizationB\r\n\013_preferen" - + "ce\"\344\005\n\rBackendBucket\022\034\n\013bucket_name\030\300\227\236\207" - + "\001 \001(\tH\000\210\001\001\022K\n\ncdn_policy\030\204\213\204f \001(\0132/.goog" - + "le.cloud.compute.v1.BackendBucketCdnPoli" - + "cyH\001\210\001\001\022 \n\020compression_mode\030\334\221\306- \001(\tH\002\210\001" - + "\001\022\"\n\022creation_timestamp\030\266\217\307\016 \001(\tH\003\210\001\001\022#\n" - + "\027custom_response_headers\030\226\301\345\270\001 \003(\t\022\034\n\013de" - + "scription\030\374\207\326\311\001 \001(\tH\004\210\001\001\022$\n\024edge_securit" - + "y_policy\030\217\331\310\023 \001(\tH\005\210\001\001\022\033\n\nenable_cdn\030\361\266\365" - + "\206\001 \001(\010H\006\210\001\001\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\024\n\004name\030\213\365\315\001 \001(\tH\t\210\001\001\022\032\n\tsel" - + "f_link\030\215\222\305\331\001 \001(\tH\n\210\001\001\022A\n\007used_by\030\231\240\322\271\001 \003" - + "(\0132,.google.cloud.compute.v1.BackendBuck" - + "etUsedBy\"U\n\017CompressionMode\022\036\n\032UNDEFINED" - + "_COMPRESSION_MODE\020\000\022\020\n\tAUTOMATIC\020\213\204\351N\022\020\n" - + "\010DISABLED\020\374\324\260\366\001B\016\n\014_bucket_nameB\r\n\013_cdn_" - + "policyB\023\n\021_compression_modeB\025\n\023_creation" - + "_timestampB\016\n\014_descriptionB\027\n\025_edge_secu" - + "rity_policyB\r\n\013_enable_cdnB\005\n\003_idB\007\n\005_ki" - + "ndB\007\n\005_nameB\014\n\n_self_link\"\312\007\n\026BackendBuc" - + "ketCdnPolicy\022v\n\037bypass_cache_on_request_" - + "headers\030\312\275\353\347\001 \003(\0132I.google.cloud.compute" - + ".v1.BackendBucketCdnPolicyBypassCacheOnR" - + "equestHeader\022_\n\020cache_key_policy\030\357\327\370K \001(" - + "\0132=.google.cloud.compute.v1.BackendBucke" - + "tCdnPolicyCacheKeyPolicyH\000\210\001\001\022\032\n\ncache_m" - + "ode\030\300\310\342\r \001(\tH\001\210\001\001\022\032\n\nclient_ttl\030\370\216\354\r \001(\005" - + "H\002\210\001\001\022\033\n\013default_ttl\030\356\375\346/ \001(\005H\003\210\001\001\022\030\n\007ma" - + "x_ttl\030\221\211\325\222\001 \001(\005H\004\210\001\001\022!\n\020negative_caching" - + "\030\265\303\242\240\001 \001(\010H\005\210\001\001\022h\n\027negative_caching_poli" - + "cy\030\374\265\212J \003(\0132D.google.cloud.compute.v1.Ba" - + "ckendBucketCdnPolicyNegativeCachingPolic" - + "y\022#\n\022request_coalescing\030\324\204\210\376\001 \001(\010H\006\210\001\001\022!" - + "\n\021serve_while_stale\030\333\367\355p \001(\005H\007\210\001\001\022-\n\034sig" - + "ned_url_cache_max_age_sec\030\306\250\271\200\001 \001(\003H\010\210\001\001" - + "\022 \n\024signed_url_key_names\030\265\355\247\261\001 \003(\t\"\217\001\n\tC" - + "acheMode\022\030\n\024UNDEFINED_CACHE_MODE\020\000\022\030\n\020CA" - + "CHE_ALL_STATIC\020\351\227\245\251\001\022\027\n\017FORCE_CACHE_ALL\020" - + "\260\335\340\347\001\022\032\n\022INVALID_CACHE_MODE\020\310\267\350\265\001\022\031\n\022USE" - + "_ORIGIN_HEADERS\020\245\222\264\032B\023\n\021_cache_key_polic" - + "yB\r\n\013_cache_modeB\r\n\013_client_ttlB\016\n\014_defa" - + "ult_ttlB\n\n\010_max_ttlB\023\n\021_negative_caching" - + "B\025\n\023_request_coalescingB\024\n\022_serve_while_" - + "staleB\037\n\035_signed_url_cache_max_age_sec\"_" - + "\n0BackendBucketCdnPolicyBypassCacheOnReq" - + "uestHeader\022\033\n\013header_name\030\375\301\3074 \001(\tH\000\210\001\001B" - + "\016\n\014_header_name\"j\n$BackendBucketCdnPolic" - + "yCacheKeyPolicy\022\037\n\024include_http_headers\030" - + "\206\372\227\001 \003(\t\022!\n\026query_string_whitelist\030\260\330\201\031 " - + "\003(\t\"h\n+BackendBucketCdnPolicyNegativeCac" - + "hingPolicy\022\024\n\004code\030\355\333\272\001 \001(\005H\000\210\001\001\022\022\n\003ttl\030" - + "\354\203\007 \001(\005H\001\210\001\001B\007\n\005_codeB\006\n\004_ttl\"\253\002\n\021Backen" - + "dBucketList\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.Backen" - + "dBucket\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\">\n\023BackendBucketUsedBy\022\031\n\tre" - + "ference\030\313\376\354F \001(\tH\000\210\001\001B\014\n\n_reference\"\350\037\n\016" - + "BackendService\022(\n\027affinity_cookie_ttl_se" - + "c\030\232\351\266\260\001 \001(\005H\000\210\001\001\0226\n\010backends\030\337\230\313\363\001 \003(\0132 " - + ".google.cloud.compute.v1.Backend\022L\n\ncdn_" - + "policy\030\204\213\204f \001(\01320.google.cloud.compute.v" - + "1.BackendServiceCdnPolicyH\001\210\001\001\022K\n\020circui" - + "t_breakers\030\235\307\364\310\001 \001(\0132(.google.cloud.comp" - + "ute.v1.CircuitBreakersH\002\210\001\001\022 \n\020compressi" - + "on_mode\030\334\221\306- \001(\tH\003\210\001\001\022Q\n\023connection_drai" - + "ning\030\253\216\357\333\001 \001(\0132+.google.cloud.compute.v1" - + ".ConnectionDrainingH\004\210\001\001\022k\n\032connection_t" - + "racking_policy\030\331\340\324D \001(\0132?.google.cloud.c" - + "ompute.v1.BackendServiceConnectionTracki" - + "ngPolicyH\005\210\001\001\022[\n\017consistent_hash\030\233\2457 \001(\013", - "2;.google.cloud.compute.v1.ConsistentHas" - + "hLoadBalancerSettingsH\006\210\001\001\022\"\n\022creation_t" - + "imestamp\030\266\217\307\016 \001(\tH\007\210\001\001\022!\n\026custom_request" - + "_headers\030\210\322\253\r \003(\t\022#\n\027custom_response_hea" - + "ders\030\226\301\345\270\001 \003(\t\022\034\n\013description\030\374\207\326\311\001 \001(\tH" - + "\010\210\001\001\022$\n\024edge_security_policy\030\217\331\310\023 \001(\tH\t\210" - + "\001\001\022\034\n\014enable_c_d_n\030\273\307\307w \001(\010H\n\210\001\001\022V\n\017fail" - + "over_policy\030\237\362\2602 \001(\01325.google.cloud.comp" - + "ute.v1.BackendServiceFailoverPolicyH\013\210\001\001" - + "\022\033\n\013fingerprint\030\344\321\363o \001(\tH\014\210\001\001\022\031\n\rhealth_" - + "checks\030\256\257\346\325\001 \003(\t\022>\n\003iap\030\330\254\006 \001(\0132*.google" - + ".cloud.compute.v1.BackendServiceIAPH\r\210\001\001" - + "\022\020\n\002id\030\233\032 \001(\004H\016\210\001\001\022+\n\033ip_address_selecti" - + "on_policy\030\310\260\200% \001(\tH\017\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\t" - + "H\020\210\001\001\022&\n\025load_balancing_scheme\030\304\214\302\255\001 \001(\t" - + "H\021\210\001\001\022i\n\024locality_lb_policies\030\235\362\234C \003(\0132H" - + ".google.cloud.compute.v1.BackendServiceL" - + "ocalityLoadBalancingPolicyConfig\022\"\n\022loca" - + "lity_lb_policy\030\277\370\325> \001(\tH\022\210\001\001\022M\n\nlog_conf" - + "ig\030\235\321\301\247\001 \001(\01320.google.cloud.compute.v1.B" - + "ackendServiceLogConfigH\023\210\001\001\022F\n\023max_strea" - + "m_duration\030\230\245\245\035 \001(\0132!.google.cloud.compu" - + "te.v1.DurationH\024\210\001\001\022L\n\tmetadatas\030\244\326\207\004 \003(" - + "\01326.google.cloud.compute.v1.BackendServi" - + "ce.MetadatasEntry\022\024\n\004name\030\213\365\315\001 \001(\tH\025\210\001\001\022" - + "\027\n\007network\030\256\264\205o \001(\tH\026\210\001\001\022M\n\021outlier_dete" - + "ction\030\276\314\214\251\001 \001(\0132).google.cloud.compute.v" - + "1.OutlierDetectionH\027\210\001\001\022\024\n\004port\030\201\261\322\001 \001(\005" - + "H\030\210\001\001\022\031\n\tport_name\030\211\207\347\023 \001(\tH\031\210\001\001\022\030\n\010prot" - + "ocol\030\230\235\252( \001(\tH\032\210\001\001\022\026\n\006region\030\364\315\240B \001(\tH\033\210" - + "\001\001\022\037\n\017security_policy\030\221\206\312Q \001(\tH\034\210\001\001\022M\n\021s" - + "ecurity_settings\030\302\274\236\344\001 \001(\0132).google.clou" - + "d.compute.v1.SecuritySettingsH\035\210\001\001\022\032\n\tse" - + "lf_link\030\215\222\305\331\001 \001(\tH\036\210\001\001\022\033\n\020service_bindin" - + "gs\030\330\221\331? \003(\t\022!\n\021service_lb_policy\030\221\216\235- \001(" - + "\tH\037\210\001\001\022!\n\020session_affinity\030\261\301\231\335\001 \001(\tH \210\001" - + "\001\022a\n\036strong_session_affinity_cookie\030\212\250\312q" - + " \001(\01321.google.cloud.compute.v1.BackendSe" - + "rviceHttpCookieH!\210\001\001\022@\n\nsubsetting\030\220\220\333\326\001" - + " \001(\0132#.google.cloud.compute.v1.Subsettin" - + "gH\"\210\001\001\022\033\n\013timeout_sec\030\363\300\222& \001(\005H#\210\001\001\022B\n\007u" - + "sed_by\030\231\240\322\271\001 \003(\0132-.google.cloud.compute." - + "v1.BackendServiceUsedBy\0320\n\016MetadatasEntr" - + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"U\n\017Com" - + "pressionMode\022\036\n\032UNDEFINED_COMPRESSION_MO" - + "DE\020\000\022\020\n\tAUTOMATIC\020\213\204\351N\022\020\n\010DISABLED\020\374\324\260\366\001" - + "\"\256\001\n\030IpAddressSelectionPolicy\022)\n%UNDEFIN" - + "ED_IP_ADDRESS_SELECTION_POLICY\020\000\022\020\n\tIPV4" - + "_ONLY\020\246\313\325\n\022\020\n\tIPV6_ONLY\020\344\255\374%\022.\n\'IP_ADDRE" - + "SS_SELECTION_POLICY_UNSPECIFIED\020\340\213\242\021\022\023\n\013" - + "PREFER_IPV6\020\326\205\353\302\001\"\325\001\n\023LoadBalancingSchem" - + "e\022#\n\037UNDEFINED_LOAD_BALANCING_SCHEME\020\000\022\017" - + "\n\010EXTERNAL\020\313\247\375\020\022\030\n\020EXTERNAL_MANAGED\020\213\266\222\364" - + "\001\022\020\n\010INTERNAL\020\275\355\226\205\001\022\027\n\020INTERNAL_MANAGED\020" - + "\375\327\347\021\022\034\n\025INTERNAL_SELF_MANAGED\020\316\227\321p\022%\n\035IN" - + "VALID_LOAD_BALANCING_SCHEME\020\374\223\246\203\001\"\337\001\n\020Lo" - + "calityLbPolicy\022 \n\034UNDEFINED_LOCALITY_LB_" - + "POLICY\020\000\022\031\n\021INVALID_LB_POLICY\020\263\347\225\232\001\022\024\n\rL" - + "EAST_REQUEST\020\371\304\234\026\022\r\n\006MAGLEV\020\352\227\3528\022\033\n\024ORIG" - + "INAL_DESTINATION\020\200\375\245O\022\r\n\006RANDOM\020\303\261\227}\022\021\n\t" - + "RING_HASH\020\275\333\257\316\001\022\022\n\013ROUND_ROBIN\020\371\206\261I\022\026\n\017W" - + "EIGHTED_MAGLEV\020\222\340\307y\"\216\001\n\010Protocol\022\026\n\022UNDE" - + "FINED_PROTOCOL\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\t\n\003SSL\020\354\203" - + "\005\022\t\n\003TCP\020\301\207\005\022\t\n\003UDP\020\241\217\005\022\023\n\013UNSPECIFIED\020\227" - + "\276\230\373\001\"\213\002\n\017SessionAffinity\022\036\n\032UNDEFINED_SE" - + "SSION_AFFINITY\020\000\022\021\n\tCLIENT_IP\020\233\334\351\244\001\022\037\n\030C" - + "LIENT_IP_NO_DESTINATION\020\224\232\3152\022\033\n\024CLIENT_I" - + "P_PORT_PROTO\020\256\362\334i\022\026\n\017CLIENT_IP_PROTO\020\244\305\211" - + "\014\022\030\n\020GENERATED_COOKIE\020\264\316\312\260\001\022\023\n\014HEADER_FI" - + "ELD\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_AFFINITY\020\373\335\223\321\001B\032\n\030_a" - + "ffinity_cookie_ttl_secB\r\n\013_cdn_policyB\023\n" - + "\021_circuit_breakersB\023\n\021_compression_modeB" - + "\026\n\024_connection_drainingB\035\n\033_connection_t" - + "racking_policyB\022\n\020_consistent_hashB\025\n\023_c" - + "reation_timestampB\016\n\014_descriptionB\027\n\025_ed" - + "ge_security_policyB\017\n\r_enable_c_d_nB\022\n\020_" - + "failover_policyB\016\n\014_fingerprintB\006\n\004_iapB" - + "\005\n\003_idB\036\n\034_ip_address_selection_policyB\007" - + "\n\005_kindB\030\n\026_load_balancing_schemeB\025\n\023_lo" - + "cality_lb_policyB\r\n\013_log_configB\026\n\024_max_" - + "stream_durationB\007\n\005_nameB\n\n\010_networkB\024\n\022" - + "_outlier_detectionB\007\n\005_portB\014\n\n_port_nam" - + "eB\013\n\t_protocolB\t\n\007_regionB\022\n\020_security_p" - + "olicyB\024\n\022_security_settingsB\014\n\n_self_lin" - + "kB\024\n\022_service_lb_policyB\023\n\021_session_affi" - + "nityB!\n\037_strong_session_affinity_cookieB" - + "\r\n\013_subsettingB\016\n\014_timeout_sec\"\313\003\n\034Backe" - + "ndServiceAggregatedList\022\020\n\002id\030\233\032 \001(\tH\000\210\001" - + "\001\022R\n\005items\030\300\317\367/ \003(\0132@.google.cloud.compu" - + "te.v1.BackendServiceAggregatedList.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" - + "A\n\005value\030\002 \001(\01322.google.cloud.compute.v1" - + ".BackendServicesScopedList:\0028\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\"\267\007\n\027BackendServiceCdnPolicy" - + "\022w\n\037bypass_cache_on_request_headers\030\312\275\353\347" - + "\001 \003(\0132J.google.cloud.compute.v1.BackendS" - + "erviceCdnPolicyBypassCacheOnRequestHeade" - + "r\022I\n\020cache_key_policy\030\357\327\370K \001(\0132\'.google." - + "cloud.compute.v1.CacheKeyPolicyH\000\210\001\001\022\032\n\n" - + "cache_mode\030\300\310\342\r \001(\tH\001\210\001\001\022\032\n\nclient_ttl\030\370" - + "\216\354\r \001(\005H\002\210\001\001\022\033\n\013default_ttl\030\356\375\346/ \001(\005H\003\210\001" - + "\001\022\030\n\007max_ttl\030\221\211\325\222\001 \001(\005H\004\210\001\001\022!\n\020negative_" - + "caching\030\265\303\242\240\001 \001(\010H\005\210\001\001\022i\n\027negative_cachi" - + "ng_policy\030\374\265\212J \003(\0132E.google.cloud.comput" - + "e.v1.BackendServiceCdnPolicyNegativeCach" - + "ingPolicy\022#\n\022request_coalescing\030\324\204\210\376\001 \001(" - + "\010H\006\210\001\001\022!\n\021serve_while_stale\030\333\367\355p \001(\005H\007\210\001" - + "\001\022-\n\034signed_url_cache_max_age_sec\030\306\250\271\200\001 " - + "\001(\003H\010\210\001\001\022 \n\024signed_url_key_names\030\265\355\247\261\001 \003" - + "(\t\"\217\001\n\tCacheMode\022\030\n\024UNDEFINED_CACHE_MODE" - + "\020\000\022\030\n\020CACHE_ALL_STATIC\020\351\227\245\251\001\022\027\n\017FORCE_CA" - + "CHE_ALL\020\260\335\340\347\001\022\032\n\022INVALID_CACHE_MODE\020\310\267\350\265" - + "\001\022\031\n\022USE_ORIGIN_HEADERS\020\245\222\264\032B\023\n\021_cache_k" - + "ey_policyB\r\n\013_cache_modeB\r\n\013_client_ttlB" - + "\016\n\014_default_ttlB\n\n\010_max_ttlB\023\n\021_negative" - + "_cachingB\025\n\023_request_coalescingB\024\n\022_serv" - + "e_while_staleB\037\n\035_signed_url_cache_max_a" - + "ge_sec\"`\n1BackendServiceCdnPolicyBypassC" - + "acheOnRequestHeader\022\033\n\013header_name\030\375\301\3074 " - + "\001(\tH\000\210\001\001B\016\n\014_header_name\"i\n,BackendServi" - + "ceCdnPolicyNegativeCachingPolicy\022\024\n\004code" - + "\030\355\333\272\001 \001(\005H\000\210\001\001\022\022\n\003ttl\030\354\203\007 \001(\005H\001\210\001\001B\007\n\005_c" - + "odeB\006\n\004_ttl\"\353\004\n&BackendServiceConnection" - + "TrackingPolicy\022<\n,connection_persistence" - + "_on_unhealthy_backends\030\371\221\330H \001(\tH\000\210\001\001\022&\n\026" - + "enable_strong_affinity\030\224\346\331\013 \001(\010H\001\210\001\001\022 \n\020" - + "idle_timeout_sec\030\210\301\364\013 \001(\005H\002\210\001\001\022\035\n\rtracki" - + "ng_mode\030\253\334\365< \001(\tH\003\210\001\001\"\260\001\n(ConnectionPers" - + "istenceOnUnhealthyBackends\022:\n6UNDEFINED_" - + "CONNECTION_PERSISTENCE_ON_UNHEALTHY_BACK" - + "ENDS\020\000\022\025\n\016ALWAYS_PERSIST\020\204\347\247\022\022\033\n\024DEFAULT" - + "_FOR_PROTOCOL\020\314\245\242E\022\024\n\rNEVER_PERSIST\020\341\245\216B" - + "\"t\n\014TrackingMode\022\033\n\027UNDEFINED_TRACKING_M" - + "ODE\020\000\022\034\n\025INVALID_TRACKING_MODE\020\303\203\275\027\022\025\n\016P" - + "ER_CONNECTION\020\340\366\315(\022\022\n\013PER_SESSION\020\264\272\352VB/" - + "\n-_connection_persistence_on_unhealthy_b" - + "ackendsB\031\n\027_enable_strong_affinityB\023\n\021_i" - + "dle_timeout_secB\020\n\016_tracking_mode\"\371\001\n\034Ba" - + "ckendServiceFailoverPolicy\0224\n$disable_co" - + "nnection_drain_on_failover\030\341\314\355V \001(\010H\000\210\001\001" - + "\022)\n\031drop_traffic_if_unhealthy\030\224\315\3055 \001(\010H\001" - + "\210\001\001\022\036\n\016failover_ratio\030\376\224\264e \001(\002H\002\210\001\001B\'\n%_" - + "disable_connection_drain_on_failoverB\034\n\032" - + "_drop_traffic_if_unhealthyB\021\n\017_failover_" - + "ratio\"\215\002\n\031BackendServiceGroupHealth\022[\n\013a" - + "nnotations\030\244\366\2655 \003(\0132C.google.cloud.compu" - + "te.v1.BackendServiceGroupHealth.Annotati" - + "onsEntry\022@\n\rhealth_status\030\265\326\272\265\001 \003(\0132%.go" - + "ogle.cloud.compute.v1.HealthStatus\022\024\n\004ki" - + "nd\030\224\367\310\001 \001(\tH\000\210\001\001\0322\n\020AnnotationsEntry\022\013\n\003" - + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\007\n\005_kind\"\227\001" - + "\n\030BackendServiceHttpCookie\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.Duration" - + "H\002\210\001\001B\007\n\005_nameB\007\n\005_pathB\006\n\004_ttl\"\373\001\n\021Back" - + "endServiceIAP\022\026\n\007enabled\030\301\226> \001(\010H\000\210\001\001\022!\n" - + "\020oauth2_client_id\030\313\216\336\225\001 \001(\tH\001\210\001\001\022$\n\024oaut" - + "h2_client_secret\030\340\341\250\030 \001(\tH\002\210\001\001\022+\n\033oauth2" - + "_client_secret_sha256\030\346\214\3535 \001(\tH\003\210\001\001B\n\n\010_" - + "enabledB\023\n\021_oauth2_client_idB\027\n\025_oauth2_" - + "client_secretB\036\n\034_oauth2_client_secret_s" - + "ha256\"\255\002\n\022BackendServiceList\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.BackendService\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\"\263\002\n\030Backen" - + "dServiceListUsable\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0229\n\005" - + "items\030\300\317\367/ \003(\0132\'.google.cloud.compute.v1" - + ".BackendService\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\"\253\002\n/BackendServiceLo" - + "calityLoadBalancingPolicyConfig\022s\n\rcusto" - + "m_policy\030\300\213\246\002 \001(\0132T.google.cloud.compute" - + ".v1.BackendServiceLocalityLoadBalancingP" - + "olicyConfigCustomPolicyH\000\210\001\001\022f\n\006policy\030\262" - + "\312\266+ \001(\0132N.google.cloud.compute.v1.Backen" - + "dServiceLocalityLoadBalancingPolicyConfi" - + "gPolicyH\001\210\001\001B\020\n\016_custom_policyB\t\n\007_polic" - + "y\"{\n;BackendServiceLocalityLoadBalancing" - + "PolicyConfigCustomPolicy\022\024\n\004data\030\252\337\273\001 \001(" - + "\tH\000\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\001\210\001\001B\007\n\005_dataB\007\n" - + "\005_name\"\236\002\n5BackendServiceLocalityLoadBal" - + "ancingPolicyConfigPolicy\022\024\n\004name\030\213\365\315\001 \001(" - + "\tH\000\210\001\001\"\305\001\n\004Name\022\022\n\016UNDEFINED_NAME\020\000\022\031\n\021I" - + "NVALID_LB_POLICY\020\263\347\225\232\001\022\024\n\rLEAST_REQUEST\020" - + "\371\304\234\026\022\r\n\006MAGLEV\020\352\227\3528\022\033\n\024ORIGINAL_DESTINAT" - + "ION\020\200\375\245O\022\r\n\006RANDOM\020\303\261\227}\022\021\n\tRING_HASH\020\275\333\257" - + "\316\001\022\022\n\013ROUND_ROBIN\020\371\206\261I\022\026\n\017WEIGHTED_MAGLE" - + "V\020\222\340\307yB\007\n\005_name\"\260\002\n\027BackendServiceLogCon" - + "fig\022\027\n\006enable\030\203\313\324\224\001 \001(\010H\000\210\001\001\022\033\n\017optional" - + "_fields\030\370\310\206\374\001 \003(\t\022\035\n\roptional_mode\030\242\206\257= " - + "\001(\tH\001\210\001\001\022\033\n\013sample_rate\030\325\224\206I \001(\002H\002\210\001\001\"v\n" - + "\014OptionalMode\022\033\n\027UNDEFINED_OPTIONAL_MODE" - + "\020\000\022\016\n\006CUSTOM\020\361\376\245\271\001\022\033\n\024EXCLUDE_ALL_OPTION" - + "AL\020\303\335\264P\022\034\n\024INCLUDE_ALL_OPTIONAL\020\265\355\262\377\001B\t\n" - + "\007_enableB\020\n\016_optional_modeB\016\n\014_sample_ra" - + "te\"O\n\027BackendServiceReference\022 \n\017backend" - + "_service\030\212\300\256\222\001 \001(\tH\000\210\001\001B\022\n\020_backend_serv" - + "ice\"?\n\024BackendServiceUsedBy\022\031\n\treference" - + "\030\313\376\354F \001(\tH\000\210\001\001B\014\n\n_reference\"\251\001\n\031Backend" - + "ServicesScopedList\022E\n\020backend_services\030\251" - + "\303\241\271\001 \003(\0132\'.google.cloud.compute.v1.Backe" - + "ndService\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.c" - + "loud.compute.v1.WarningH\000\210\001\001B\n\n\010_warning" - + "\"\347\t\n\tBfdPacket\022&\n\026authentication_present" - + "\030\364\223\3042 \001(\010H\000\210\001\001\022)\n\031control_plane_independ" - + "ent\030\265\257\336\035 \001(\010H\001\210\001\001\022\027\n\006demand\030\313\324\233\203\001 \001(\010H\002\210" - + "\001\001\022\032\n\ndiagnostic\030\247\267\363\035 \001(\tH\003\210\001\001\022\025\n\005final\030" - + "\366\202\273. \001(\010H\004\210\001\001\022\027\n\006length\030\346\365\270\360\001 \001(\rH\005\210\001\001\022\'" - + "\n\027min_echo_rx_interval_ms\030\324\365\261. \001(\rH\006\210\001\001\022" - + "#\n\022min_rx_interval_ms\030\364\320\373\334\001 \001(\rH\007\210\001\001\022#\n\022" - + "min_tx_interval_ms\030\262\367\351\372\001 \001(\rH\010\210\001\001\022\032\n\nmul" - + "tiplier\030\301\373\235[ \001(\rH\t\210\001\001\022\032\n\nmultipoint\030\367\267\243[" - + " \001(\010H\n\210\001\001\022 \n\020my_discriminator\030\311\222\307$ \001(\rH\013" - + "\210\001\001\022\024\n\004poll\030\277\257\322\001 \001(\010H\014\210\001\001\022\025\n\005state\030\221\211\2534 " - + "\001(\tH\r\210\001\001\022\030\n\007version\030\330\271\324\247\001 \001(\rH\016\210\001\001\022#\n\022yo" - + "ur_discriminator\030\220\347\357\365\001 \001(\rH\017\210\001\001\"\336\002\n\nDiag" - + "nostic\022\030\n\024UNDEFINED_DIAGNOSTIC\020\000\022\034\n\025ADMI" - + "NISTRATIVELY_DOWN\020\246\216\203:\022\035\n\026CONCATENATED_P" - + "ATH_DOWN\020\214\251\276\014\022%\n\036CONTROL_DETECTION_TIME_" - + "EXPIRED\020\357\370\314@\022\035\n\026DIAGNOSTIC_UNSPECIFIED\020\377" - + "\204\200\034\022\033\n\024ECHO_FUNCTION_FAILED\020\352\330\235i\022\035\n\026FORW" - + "ARDING_PLANE_RESET\020\252\256\263\t\022&\n\036NEIGHBOR_SIGN" - + "ALED_SESSION_DOWN\020\266\376\270\262\001\022\024\n\rNO_DIAGNOSTIC" - + "\020\345\301\214j\022\021\n\tPATH_DOWN\020\374\220\311\212\001\022&\n\036REVERSE_CONC" - + "ATENATED_PATH_DOWN\020\251\265\310\344\001\"m\n\005State\022\023\n\017UND" - + "EFINED_STATE\020\000\022\021\n\nADMIN_DOWN\020\262\337\245=\022\013\n\004DOW" - + "N\020\242\271\200\001\022\013\n\004INIT\020\220\272\211\001\022\031\n\021STATE_UNSPECIFIED" - + "\020\311\320\274\340\001\022\007\n\002UP\020\233\025B\031\n\027_authentication_prese" - + "ntB\034\n\032_control_plane_independentB\t\n\007_dem" - + "andB\r\n\013_diagnosticB\010\n\006_finalB\t\n\007_lengthB" - + "\032\n\030_min_echo_rx_interval_msB\025\n\023_min_rx_i" - + "nterval_msB\025\n\023_min_tx_interval_msB\r\n\013_mu" - + "ltiplierB\r\n\013_multipointB\023\n\021_my_discrimin" - + "atorB\007\n\005_pollB\010\n\006_stateB\n\n\010_versionB\025\n\023_" - + "your_discriminator\"\354\n\n\tBfdStatus\022/\n\037bfd_" - + "session_initialization_mode\030\232\237\203h \001(\tH\000\210\001" - + "\001\022/\n\036config_update_timestamp_micros\030\261\200\201\332" - + "\001 \001(\003H\001\210\001\001\022U\n\025control_packet_counts\030\371\322\233?" - + " \001(\0132..google.cloud.compute.v1.BfdStatus" - + "PacketCountsH\002\210\001\001\022N\n\030control_packet_inte" - + "rvals\030\371\347\346\356\001 \003(\0132(.google.cloud.compute.v" - + "1.PacketIntervals\022!\n\020local_diagnostic\030\373\241" - + "\220\335\001 \001(\tH\003\210\001\001\022\033\n\013local_state\030\275\225\222G \001(\tH\004\210\001" - + "\001\0227\n\'negotiated_local_control_tx_interva" - + "l_ms\030\224\321\260\n \001(\rH\005\210\001\001\022>\n\trx_packet\030\241\201\353\360\001 \001(" - + "\0132\".google.cloud.compute.v1.BfdPacketH\006\210" - + "\001\001\022=\n\ttx_packet\030\243\275\2165 \001(\0132\".google.cloud." - + "compute.v1.BfdPacketH\007\210\001\001\022\031\n\tuptime_ms\030\335" - + "\332\345; \001(\003H\010\210\001\001\"\200\001\n\034BfdSessionInitializatio" - + "nMode\022-\n)UNDEFINED_BFD_SESSION_INITIALIZ" - + "ATION_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\001\"\351\002\n\017LocalDiagnos" - + "tic\022\036\n\032UNDEFINED_LOCAL_DIAGNOSTIC\020\000\022\034\n\025A" - + "DMINISTRATIVELY_DOWN\020\246\216\203:\022\035\n\026CONCATENATE" - + "D_PATH_DOWN\020\214\251\276\014\022%\n\036CONTROL_DETECTION_TI" - + "ME_EXPIRED\020\357\370\314@\022\035\n\026DIAGNOSTIC_UNSPECIFIE" - + "D\020\377\204\200\034\022\033\n\024ECHO_FUNCTION_FAILED\020\352\330\235i\022\035\n\026F" - + "ORWARDING_PLANE_RESET\020\252\256\263\t\022&\n\036NEIGHBOR_S" - + "IGNALED_SESSION_DOWN\020\266\376\270\262\001\022\024\n\rNO_DIAGNOS" - + "TIC\020\345\301\214j\022\021\n\tPATH_DOWN\020\374\220\311\212\001\022&\n\036REVERSE_C" - + "ONCATENATED_PATH_DOWN\020\251\265\310\344\001\"x\n\nLocalStat" - + "e\022\031\n\025UNDEFINED_LOCAL_STATE\020\000\022\021\n\nADMIN_DO" - + "WN\020\262\337\245=\022\013\n\004DOWN\020\242\271\200\001\022\013\n\004INIT\020\220\272\211\001\022\031\n\021STA" - + "TE_UNSPECIFIED\020\311\320\274\340\001\022\007\n\002UP\020\233\025B\"\n _bfd_se" - + "ssion_initialization_modeB!\n\037_config_upd" - + "ate_timestamp_microsB\030\n\026_control_packet_" - + "countsB\023\n\021_local_diagnosticB\016\n\014_local_st" - + "ateB*\n(_negotiated_local_control_tx_inte" - + "rval_msB\014\n\n_rx_packetB\014\n\n_tx_packetB\014\n\n_" - + "uptime_ms\"\315\001\n\025BfdStatusPacketCounts\022\026\n\006n" - + "um_rx\030\237\243\343\022 \001(\rH\000\210\001\001\022 \n\017num_rx_rejected\030\236" - + "\256\377\205\001 \001(\rH\001\210\001\001\022\"\n\021num_rx_successful\030\272\212\221\331\001" - + " \001(\rH\002\210\001\001\022\026\n\006num_tx\030\335\243\343\022 \001(\rH\003\210\001\001B\t\n\007_nu" - + "m_rxB\022\n\020_num_rx_rejectedB\024\n\022_num_rx_succ" - + "essfulB\t\n\007_num_tx\"\261\001\n\007Binding\022\033\n\nbinding" - + "_id\030\225\362\251\322\001 \001(\tH\000\210\001\001\0228\n\tcondition\030\233\332\245e \001(\013" - + "2\035.google.cloud.compute.v1.ExprH\001\210\001\001\022\023\n\007" - + "members\030\231\222\273\304\001 \003(\t\022\024\n\004role\030\366\200\326\001 \001(\tH\002\210\001\001B" - + "\r\n\013_binding_idB\014\n\n_conditionB\007\n\005_role\"\350\001" - + "\n\025BulkInsertDiskRequest\022d\n\"bulk_insert_d" - + "isk_resource_resource\030\326\371\227\212\001 \001(\0132/.google" - + ".cloud.compute.v1.BulkInsertDiskResource" - + "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\"m\n\026Bulk" - + "InsertDiskResource\022/\n\037source_consistency" - + "_group_policy\030\335\242\255\t \001(\tH\000\210\001\001B\"\n _source_c" - + "onsistency_group_policy\"\363\001\n\031BulkInsertIn" - + "stanceRequest\022k\n&bulk_insert_instance_re" - + "source_resource\030\316\302\340\023 \001(\01323.google.cloud." - + "compute.v1.BulkInsertInstanceResourceB\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\"\245\005\n\032BulkIn" - + "sertInstanceResource\022\025\n\005count\030\217\242\235- \001(\003H\000" - + "\210\001\001\022P\n\023instance_properties\030\235\236\330f \001(\0132+.go" - + "ogle.cloud.compute.v1.InstanceProperties" - + "H\001\210\001\001\022I\n\017location_policy\030\374\271\207\336\001 \001(\0132\'.goo" - + "gle.cloud.compute.v1.LocationPolicyH\002\210\001\001" - + "\022\032\n\tmin_count\030\342\251\277\371\001 \001(\003H\003\210\001\001\022\035\n\014name_pat" - + "tern\030\334\243\251\305\001 \001(\tH\004\210\001\001\022r\n\027per_instance_prop" - + "erties\030\373\271\3363 \003(\0132N.google.cloud.compute.v" - + "1.BulkInsertInstanceResource.PerInstance" - + "PropertiesEntry\022)\n\030source_instance_templ" - + "ate\030\300\303\301\236\001 \001(\tH\005\210\001\001\032\206\001\n\032PerInstanceProper" - + "tiesEntry\022\013\n\003key\030\001 \001(\t\022W\n\005value\030\002 \001(\0132H." - + "google.cloud.compute.v1.BulkInsertInstan" - + "ceResourcePerInstanceProperties:\0028\001B\010\n\006_" - + "countB\026\n\024_instance_propertiesB\022\n\020_locati" - + "on_policyB\014\n\n_min_countB\017\n\r_name_pattern" - + "B\033\n\031_source_instance_template\"w\n/BulkIns" - + "ertInstanceResourcePerInstanceProperties" - + "\022\030\n\010hostname\030\263\270\205q \001(\tH\000\210\001\001\022\024\n\004name\030\213\365\315\001 " - + "\001(\tH\001\210\001\001B\013\n\t_hostnameB\007\n\005_name\"\234\003\n\031BulkI" - + "nsertOperationStatus\022!\n\020created_vm_count" - + "\030\376\251\242\275\001 \001(\005H\000\210\001\001\022!\n\020deleted_vm_count\030\355\325\312\201" - + "\001 \001(\005H\001\210\001\001\022)\n\031failed_to_create_vm_count\030" - + "\350\275\353\033 \001(\005H\002\210\001\001\022\026\n\006status\030\362\237\267V \001(\tH\003\210\001\001\022 \n" - + "\017target_vm_count\030\365\240\222\376\001 \001(\005H\004\210\001\001\"m\n\006Statu" - + "s\022\024\n\020UNDEFINED_STATUS\020\000\022\020\n\010CREATING\020\271\275\235\331" - + "\001\022\013\n\004DONE\020\202\267\200\001\022\023\n\014ROLLING_BACK\020\301\235\331{\022\031\n\022S" - + "TATUS_UNSPECIFIED\020\312\314\213\024B\023\n\021_created_vm_co" - + "untB\023\n\021_deleted_vm_countB\034\n\032_failed_to_c" - + "reate_vm_countB\t\n\007_statusB\022\n\020_target_vm_" - + "count\"\362\001\n\033BulkInsertRegionDiskRequest\022d\n" - + "\"bulk_insert_disk_resource_resource\030\326\371\227\212" - + "\001 \001(\0132/.google.cloud.compute.v1.BulkInse" - + "rtDiskResourceB\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\"\375\001\n\037BulkInsertRegionInstanceR" + + "ber\"\242\003\n AggregatedListSubnetworksRequest" + + "\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022#\n\022include_all" + + "_scopes\030\364\341\314\272\001 \001(\010H\001\210\001\001\022\033\n\013max_results\030\233\310" + + "\213\032 \001(\rH\002\210\001\001\022\030\n\010order_by\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\301" + + "l \001(\tB\003\340A\002\022\'\n\026return_partial_success\030\266\244\317" + + "\366\001 \001(\010H\005\210\001\001\022\'\n\026service_project_number\030\371\253" + + "\205\227\001 \001(\003H\006\210\001\001B\t\n\007_filterB\025\n\023_include_all_" + + "scopesB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_" + + "page_tokenB\031\n\027_return_partial_successB\031\n" + + "\027_service_project_number\"\250\003\n&AggregatedL" + + "istTargetHttpProxiesRequest\022\027\n\006filter\030\370\226" + + "\243\240\001 \001(\tH\000\210\001\001\022#\n\022include_all_scopes\030\364\341\314\272\001" + + " \001(\010H\001\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\002\210\001\001\022\030" + + "\n\010order_by\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\'\n" + + "\026return_partial_success\030\266\244\317\366\001 \001(\010H\005\210\001\001\022\'" + + "\n\026service_project_number\030\371\253\205\227\001 \001(\003H\006\210\001\001B" + + "\t\n\007_filterB\025\n\023_include_all_scopesB\016\n\014_ma" + + "x_resultsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n" + + "\027_return_partial_successB\031\n\027_service_pro" + + "ject_number\"\251\003\n\'AggregatedListTargetHttp" + + "sProxiesRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001" + + "\022#\n\022include_all_scopes\030\364\341\314\272\001 \001(\010H\001\210\001\001\022\033\n" + + "\013max_results\030\233\310\213\032 \001(\rH\002\210\001\001\022\030\n\010order_by\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\'\n\026return_part" + + "ial_success\030\266\244\317\366\001 \001(\010H\005\210\001\001\022\'\n\026service_pr" + + "oject_number\030\371\253\205\227\001 \001(\003H\006\210\001\001B\t\n\007_filterB\025" + + "\n\023_include_all_scopesB\016\n\014_max_resultsB\013\n" + + "\t_order_byB\r\n\013_page_tokenB\031\n\027_return_par" + + "tial_successB\031\n\027_service_project_number\"" + + "\246\003\n$AggregatedListTargetInstancesRequest" + + "\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022#\n\022include_all" + + "_scopes\030\364\341\314\272\001 \001(\010H\001\210\001\001\022\033\n\013max_results\030\233\310" + + "\213\032 \001(\rH\002\210\001\001\022\030\n\010order_by\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\301" + + "l \001(\tB\003\340A\002\022\'\n\026return_partial_success\030\266\244\317" + + "\366\001 \001(\010H\005\210\001\001\022\'\n\026service_project_number\030\371\253" + + "\205\227\001 \001(\003H\006\210\001\001B\t\n\007_filterB\025\n\023_include_all_" + + "scopesB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_" + + "page_tokenB\031\n\027_return_partial_successB\031\n" + + "\027_service_project_number\"\242\003\n AggregatedL" + + "istTargetPoolsRequest\022\027\n\006filter\030\370\226\243\240\001 \001(" + + "\tH\000\210\001\001\022#\n\022include_all_scopes\030\364\341\314\272\001 \001(\010H\001" + + "\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\002\210\001\001\022\030\n\010orde" + + "r_by\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\'\n\026retur" + + "n_partial_success\030\266\244\317\366\001 \001(\010H\005\210\001\001\022\'\n\026serv" + + "ice_project_number\030\371\253\205\227\001 \001(\003H\006\210\001\001B\t\n\007_fi" + + "lterB\025\n\023_include_all_scopesB\016\n\014_max_resu" + + "ltsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_retu" + + "rn_partial_successB\031\n\027_service_project_n" + + "umber\"\247\003\n%AggregatedListTargetTcpProxies" + + "Request\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022#\n\022incl" + + "ude_all_scopes\030\364\341\314\272\001 \001(\010H\001\210\001\001\022\033\n\013max_res" + + "ults\030\233\310\213\032 \001(\rH\002\210\001\001\022\030\n\010order_by\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\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\005\210\001\001\022\'\n\026service_project_nu" + + "mber\030\371\253\205\227\001 \001(\003H\006\210\001\001B\t\n\007_filterB\025\n\023_inclu" + + "de_all_scopesB\016\n\014_max_resultsB\013\n\t_order_" + + "byB\r\n\013_page_tokenB\031\n\027_return_partial_suc" + + "cessB\031\n\027_service_project_number\"\250\003\n&Aggr" + + "egatedListTargetVpnGatewaysRequest\022\027\n\006fi" + + "lter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022#\n\022include_all_scope" + + "s\030\364\341\314\272\001 \001(\010H\001\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\r" + + "H\002\210\001\001\022\030\n\010order_by\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\'\n\026return_partial_success\030\266\244\317\366\001 \001(\010" + + "H\005\210\001\001\022\'\n\026service_project_number\030\371\253\205\227\001 \001(" + + "\003H\006\210\001\001B\t\n\007_filterB\025\n\023_include_all_scopes" + + "B\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_page_t" + + "okenB\031\n\027_return_partial_successB\031\n\027_serv" + + "ice_project_number\"\236\003\n\034AggregatedListUrl" + + "MapsRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022#\n\022" + + "include_all_scopes\030\364\341\314\272\001 \001(\010H\001\210\001\001\022\033\n\013max" + + "_results\030\233\310\213\032 \001(\rH\002\210\001\001\022\030\n\010order_by\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\007" + + "project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\026return_partial_" + + "success\030\266\244\317\366\001 \001(\010H\005\210\001\001\022\'\n\026service_projec" + + "t_number\030\371\253\205\227\001 \001(\003H\006\210\001\001B\t\n\007_filterB\025\n\023_i" + + "nclude_all_scopesB\016\n\014_max_resultsB\013\n\t_or" + + "der_byB\r\n\013_page_tokenB\031\n\027_return_partial" + + "_successB\031\n\027_service_project_number\"\242\003\n " + + "AggregatedListVpnGatewaysRequest\022\027\n\006filt" + + "er\030\370\226\243\240\001 \001(\tH\000\210\001\001\022#\n\022include_all_scopes\030" + + "\364\341\314\272\001 \001(\010H\001\210\001\001\022\033\n\013max_results\030\233\310\213\032 \001(\rH\002" + + "\210\001\001\022\030\n\010order_by\030\350\375\307L \001(\tH\003\210\001\001\022\032\n\npage_to" + + "ken\030\311\260\304\t \001(\tH\004\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\005" + + "\210\001\001\022\'\n\026service_project_number\030\371\253\205\227\001 \001(\003H" + + "\006\210\001\001B\t\n\007_filterB\025\n\023_include_all_scopesB\016" + + "\n\014_max_resultsB\013\n\t_order_byB\r\n\013_page_tok" + + "enB\031\n\027_return_partial_successB\031\n\027_servic" + + "e_project_number\"\241\003\n\037AggregatedListVpnTu" + + "nnelsRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022#\n" + + "\022include_all_scopes\030\364\341\314\272\001 \001(\010H\001\210\001\001\022\033\n\013ma" + + "x_results\030\233\310\213\032 \001(\rH\002\210\001\001\022\030\n\010order_by\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\'\n\026return_partial" + + "_success\030\266\244\317\366\001 \001(\010H\005\210\001\001\022\'\n\026service_proje" + + "ct_number\030\371\253\205\227\001 \001(\003H\006\210\001\001B\t\n\007_filterB\025\n\023_" + + "include_all_scopesB\016\n\014_max_resultsB\013\n\t_o" + + "rder_byB\r\n\013_page_tokenB\031\n\027_return_partia" + + "l_successB\031\n\027_service_project_number\"\201\001\n" + + "\014AliasIpRange\022\035\n\rip_cidr_range\030\312\315\344. \001(\tH" + + "\000\210\001\001\022&\n\025subnetwork_range_name\030\276\262\201\271\001 \001(\tH" + + "\001\210\001\001B\020\n\016_ip_cidr_rangeB\030\n\026_subnetwork_ra" + + "nge_name\"\265\005\n\036AllocationAggregateReservat" + + "ion\022i\n\020in_use_resources\030\323\367\203\303\001 \003(\0132K.goog" + + "le.cloud.compute.v1.AllocationAggregateR" + + "eservationReservedResourceInfo\022j\n\022reserv" + + "ed_resources\030\316\343\325e \003(\0132K.google.cloud.com" + + "pute.v1.AllocationAggregateReservationRe" + + "servedResourceInfo\022\031\n\tvm_family\030\354\273\316; \001(\t" + + "H\000\210\001\001\022\036\n\rworkload_type\030\202\376\260\202\001 \001(\tH\001\210\001\001\"\200\002" + + "\n\010VmFamily\022\027\n\023UNDEFINED_VM_FAMILY\020\000\022%\n\036V" + + "M_FAMILY_CLOUD_TPU_DEVICE_CT3\020\374\215\267\024\022+\n$VM" + + "_FAMILY_CLOUD_TPU_LITE_DEVICE_CT5L\020\343\202\3013\022" + + "/\n(VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT" + + "5LP\020\363\326\365\010\022*\n\"VM_FAMILY_CLOUD_TPU_POD_SLIC" + + "E_CT3P\020\270\321\332\366\001\022*\n\"VM_FAMILY_CLOUD_TPU_POD_", + "SLICE_CT4P\020\327\321\332\366\001\"^\n\014WorkloadType\022\033\n\027UNDE" + + "FINED_WORKLOAD_TYPE\020\000\022\014\n\005BATCH\020\232\276\203\036\022\016\n\007S" + + "ERVING\020\354\247\275\010\022\023\n\013UNSPECIFIED\020\227\276\230\373\001B\014\n\n_vm_" + + "familyB\020\n\016_workload_type\"\272\001\n2AllocationA" + + "ggregateReservationReservedResourceInfo\022" + + "t\n\013accelerator\030\353\304\253\312\001 \001(\0132V.google.cloud." + + "compute.v1.AllocationAggregateReservatio" + + "nReservedResourceInfoAcceleratorH\000\210\001\001B\016\n" + + "\014_accelerator\"\260\001\n=AllocationAggregateRes" + + "ervationReservedResourceInfoAccelerator\022" + + "\"\n\021accelerator_count\030\273\264\337\360\001 \001(\005H\000\210\001\001\022 \n\020a" + + "ccelerator_type\030\216\341\350A \001(\tH\001\210\001\001B\024\n\022_accele" + + "rator_countB\023\n\021_accelerator_type\"\247\001\n\030All" + + "ocationResourceStatus\022o\n\027specific_sku_al" + + "location\030\357\377\310] \001(\0132F.google.cloud.compute" + + ".v1.AllocationResourceStatusSpecificSKUA" + + "llocationH\000\210\001\001B\032\n\030_specific_sku_allocati" + + "on\"|\n-AllocationResourceStatusSpecificSK" + + "UAllocation\022+\n\033source_instance_template_" + + "id\030\372\357\2025 \001(\tH\000\210\001\001B\036\n\034_source_instance_tem" + + "plate_id\"\342\001\nFAllocationSpecificSKUAlloca" + + "tionAllocatedInstancePropertiesReservedD" + + "isk\022\035\n\014disk_size_gb\030\267\232\347\226\001 \001(\003H\000\210\001\001\022\032\n\tin" + + "terface\030\271\332\325\357\001 \001(\tH\001\210\001\001\">\n\tInterface\022\027\n\023U" + + "NDEFINED_INTERFACE\020\000\022\013\n\004NVME\020\340\202\223\001\022\013\n\004SCS" + + "I\020\246\201\233\001B\017\n\r_disk_size_gbB\014\n\n_interface\"\227\003" + + "\n9AllocationSpecificSKUAllocationReserve" + + "dInstanceProperties\022J\n\022guest_accelerator" + + "s\030\357\314\207\335\001 \003(\0132*.google.cloud.compute.v1.Ac" + + "celeratorConfig\022v\n\nlocal_ssds\030\303\216\323m \003(\0132_" + + ".google.cloud.compute.v1.AllocationSpeci" + + "ficSKUAllocationAllocatedInstancePropert" + + "iesReservedDisk\022\036\n\rlocation_hint\030\321\201\222\247\001 \001" + + "(\tH\000\210\001\001\022\034\n\014machine_type\030\262\260\312l \001(\tH\001\210\001\001\022 \n" + + "\020min_cpu_platform\030\367\233\352s \001(\tH\002\210\001\001B\020\n\016_loca" + + "tion_hintB\017\n\r_machine_typeB\023\n\021_min_cpu_p" + + "latform\"\376\002\n AllocationSpecificSKUReserva" + + "tion\022\036\n\rassured_count\030\315\370\212\206\001 \001(\003H\000\210\001\001\022\025\n\005" + + "count\030\217\242\235- \001(\003H\001\210\001\001\022\035\n\014in_use_count\030\275\253\246\353" + + "\001 \001(\003H\002\210\001\001\022w\n\023instance_properties\030\235\236\330f \001" + + "(\0132R.google.cloud.compute.v1.AllocationS" + + "pecificSKUAllocationReservedInstanceProp" + + "ertiesH\003\210\001\001\022)\n\030source_instance_template\030" + + "\300\303\301\236\001 \001(\tH\004\210\001\001B\020\n\016_assured_countB\010\n\006_cou" + + "ntB\017\n\r_in_use_countB\026\n\024_instance_propert" + + "iesB\033\n\031_source_instance_template\"K\n\007Allo" + + "wed\022\035\n\014I_p_protocol\030\275\366\336\350\001 \001(\tH\000\210\001\001\022\020\n\005po" + + "rts\030\222\360\3712 \003(\tB\017\n\r_I_p_protocol\"\240\001\n&Announ" + + "cePublicAdvertisedPrefixeRequest\022!\n\007proj" + + "ect\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022(\n\030public_ad" + + "vertised_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\"\277\001\n%Ann" + + "ouncePublicDelegatedPrefixeRequest\022!\n\007pr" + + "oject\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\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\"\250\002\n2ApplyUpda" + + "tesToInstancesInstanceGroupManagerReques" + + "t\022&\n\026instance_group_manager\030\303\367\363v \001(\tB\003\340A" + + "\002\022\211\001\n6instance_group_managers_apply_upda" + + "tes_request_resource\030\323\366\316{ \001(\0132A.google.c" + + "loud.compute.v1.InstanceGroupManagersApp" + + "lyUpdatesRequestB\003\340A\002\022!\n\007project\030\231\226\301l \001(" + + "\tB\r\340A\002\362G\007project\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G" + + "\004zone\"\277\002\n8ApplyUpdatesToInstancesRegionI" + + "nstanceGroupManagerRequest\022&\n\026instance_g" + + "roup_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(\t" + + "B\014\340A\002\362G\006region\022\226\001\n=region_instance_group" + + "_managers_apply_updates_request_resource" + + "\030\376\351\255$ \001(\0132G.google.cloud.compute.v1.Regi" + + "onInstanceGroupManagersApplyUpdatesReque" + + "stB\003\340A\002\"\236\002\n\031AttachDiskInstanceRequest\022M\n" + + "\026attached_disk_resource\030\225\222\232+ \001(\0132%.googl" + + "e.cloud.compute.v1.AttachedDiskB\003\340A\002\022\034\n\014" + + "force_attach\030\231\244\211D \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\007" + + "project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\001\210\001\001\022\033\n\004z" + + "one\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\017\n\r_force_attac" + + "hB\r\n\013_request_id\"\317\002\n7AttachNetworkEndpoi" + + "ntsGlobalNetworkEndpointGroupRequest\022\234\001\n" + + "@global_network_endpoint_groups_attach_e" + + "ndpoints_request_resource\030\353\241\321\016 \001(\0132J.goo" + + "gle.cloud.compute.v1.GlobalNetworkEndpoi" + + "ntGroupsAttachEndpointsRequestB\003\340A\002\022\'\n\026n" + + "etwork_endpoint_group\030\206\313\363\316\001 \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\001B\r\n\013_request_id\"\330\002\n1A" + + "ttachNetworkEndpointsNetworkEndpointGrou" + + "pRequest\022\'\n\026network_endpoint_group\030\206\313\363\316\001" + + " \001(\tB\003\340A\002\022\216\001\n9network_endpoint_groups_at" + + "tach_endpoints_request_resource\030\207\265 \001(\0132" + + "D.google.cloud.compute.v1.NetworkEndpoin" + + "tGroupsAttachEndpointsRequestB\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\"\361\002\n7AttachNetworkE" + + "ndpointsRegionNetworkEndpointGroupReques" + + "t\022\'\n\026network_endpoint_group\030\206\313\363\316\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\235\001\n@regio" + + "n_network_endpoint_groups_attach_endpoin" + + "ts_request_resource\030\374\371\335\237\001 \001(\0132J.google.c" + + "loud.compute.v1.RegionNetworkEndpointGro" + + "upsAttachEndpointsRequestB\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\"\334\n\n\014At" + + "tachedDisk\022\035\n\014architecture\030\323\322\261\220\001 \001(\tH\000\210\001" + + "\001\022\034\n\013auto_delete\030\273\344\316\335\001 \001(\010H\001\210\001\001\022\024\n\004boot\030" + + "\362\365\270\001 \001(\010H\002\210\001\001\022\033\n\013device_name\030\324\265\232 \001(\tH\003\210" + + "\001\001\022T\n\023disk_encryption_key\030\205\355\304\201\001 \001(\0132..go" + + "ogle.cloud.compute.v1.CustomerEncryption" + + "KeyH\004\210\001\001\022\035\n\014disk_size_gb\030\267\232\347\226\001 \001(\003H\005\210\001\001\022" + + "\034\n\014force_attach\030\231\244\211D \001(\010H\006\210\001\001\022E\n\021guest_o" + + "s_features\030\321\340\347% \003(\0132\'.google.cloud.compu" + + "te.v1.GuestOsFeature\022\025\n\005index\030\322\321\354/ \001(\005H\007" + + "\210\001\001\022X\n\021initialize_params\030\225\222\270\010 \001(\01325.goog" + + "le.cloud.compute.v1.AttachedDiskInitiali" + + "zeParamsH\010\210\001\001\022\032\n\tinterface\030\271\332\325\357\001 \001(\tH\t\210\001" + + "\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\n\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\013\210\001\001\022\034\n\013saved_sta" + + "te\030\331\251\241\304\001 \001(\tH\014\210\001\001\022\\\n\037shielded_instance_i" + + "nitial_state\030\203\304\334[ \001(\0132+.google.cloud.com" + + "pute.v1.InitialStateConfigH\r\210\001\001\022\026\n\006sourc" + + "e\030\233\320\301T \001(\tH\016\210\001\001\022\024\n\004type\030\272\236\332\001 \001(\tH\017\210\001\001\"j\n" + + "\014Architecture\022\032\n\026UNDEFINED_ARCHITECTURE\020" + + "\000\022 \n\030ARCHITECTURE_UNSPECIFIED\020\253\324\235\274\001\022\014\n\005A" + + "RM64\020\372\313\351\035\022\016\n\006X86_64\020\307\244\346\312\001\">\n\tInterface\022\027" + + "\n\023UNDEFINED_INTERFACE\020\000\022\013\n\004NVME\020\340\202\223\001\022\013\n\004" + + "SCSI\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\nSa" + + "vedState\022\031\n\025UNDEFINED_SAVED_STATE\020\000\022$\n\034D" + + "ISK_SAVED_STATE_UNSPECIFIED\020\317\277\312\272\001\022\020\n\tPRE" + + "SERVED\020\370\326\230y\"?\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\017\n\r" + + "_architectureB\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\017\n\r_force_attachB\010\n\006_ind" + + "exB\024\n\022_initialize_paramsB\014\n\n_interfaceB\007" + + "\n\005_kindB\007\n\005_modeB\016\n\014_saved_stateB\"\n _shi" + + "elded_instance_initial_stateB\t\n\007_sourceB" + + "\007\n\005_type\"\217\014\n\034AttachedDiskInitializeParam" + + "s\022\035\n\014architecture\030\323\322\261\220\001 \001(\tH\000\210\001\001\022\034\n\013desc" + + "ription\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\031\n\tdisk_name\030\355\277\240," + + " \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\031\n\tdisk_type\030\234\351\254, \001(\tH\004\210\001\001\022+\n\033enable_co" + + "nfidential_compute\030\274\353\3310 \001(\010H\005\210\001\001\022U\n\006labe" + + "ls\030\377\277\301\356\001 \003(\0132A.google.cloud.compute.v1.A" + + "ttachedDiskInitializeParams.LabelsEntry\022" + + "\024\n\010licenses\030\322\210\200\241\001 \003(\t\022 \n\020on_update_actio" + + "n\030\214\330\304` \001(\tH\006\210\001\001\022 \n\020provisioned_iops\030\324\275\207Y" + + " \001(\003H\007\210\001\001\022\'\n\026provisioned_throughput\030\225\276\210\373" + + "\001 \001(\003H\010\210\001\001\022\030\n\rreplica_zones\030\200\270\214\027 \003(\t\022q\n\025" + + "resource_manager_tags\030\374\233\213\264\001 \003(\0132N.google" + + ".cloud.compute.v1.AttachedDiskInitialize" + + "Params.ResourceManagerTagsEntry\022\034\n\021resou" + + "rce_policies\030\341\234\314\n \003(\t\022\034\n\014source_image\030\267\350" + + "\206\030 \001(\tH\t\210\001\001\022\\\n\033source_image_encryption_k" + + "ey\030\253\221\365\265\001 \001(\0132..google.cloud.compute.v1.C" + + "ustomerEncryptionKeyH\n\210\001\001\022\037\n\017source_snap" + + "shot\030\350\232\216< \001(\tH\013\210\001\001\022_\n\036source_snapshot_en" + + "cryption_key\030\332\216\347\220\001 \001(\0132..google.cloud.co" + + "mpute.v1.CustomerEncryptionKeyH\014\210\001\001\022\035\n\014s" + + "torage_pool\030\340\306\361\253\001 \001(\tH\r\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\032:\n\030Res" + + "ourceManagerTagsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001\"j\n\014Architecture\022\032\n\026UNDEFIN" + + "ED_ARCHITECTURE\020\000\022 \n\030ARCHITECTURE_UNSPEC" + + "IFIED\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\"\212\001\n\016OnUpdateAction\022\036\n\032UNDEFINED_ON_UPD" + + "ATE_ACTION\020\000\022\025\n\rRECREATE_DISK\020\355\235\366\353\001\022\'\n\037R" + + "ECREATE_DISK_IF_SOURCE_CHANGED\020\200\212\352\275\001\022\030\n\021" + + "USE_EXISTING_DISK\020\371\345\371nB\017\n\r_architectureB" + + "\016\n\014_descriptionB\014\n\n_disk_nameB\017\n\r_disk_s" + + "ize_gbB\014\n\n_disk_typeB\036\n\034_enable_confiden" + + "tial_computeB\023\n\021_on_update_actionB\023\n\021_pr" + + "ovisioned_iopsB\031\n\027_provisioned_throughpu" + + "tB\017\n\r_source_imageB\036\n\034_source_image_encr" + + "yption_keyB\022\n\020_source_snapshotB!\n\037_sourc" + + "e_snapshot_encryption_keyB\017\n\r_storage_po" + + "ol\"\230\001\n\013AuditConfig\022F\n\021audit_log_configs\030" + + "\222\352\362\350\001 \003(\0132\'.google.cloud.compute.v1.Audi" + + "tLogConfig\022\033\n\020exempted_members\030\230\335\365n \003(\t\022" + + "\030\n\007service\030\265\215\217\262\001 \001(\tH\000\210\001\001B\n\n\010_service\"\224\002" + + "\n\016AuditLogConfig\022\033\n\020exempted_members\030\230\335\365" + + "n \003(\t\022\'\n\027ignore_child_exemptions\030\232\217\271! \001(" + + "\010H\000\210\001\001\022\031\n\010log_type\030\325\236\234\300\001 \001(\tH\001\210\001\001\"x\n\007Log" + + "Type\022\026\n\022UNDEFINED_LOG_TYPE\020\000\022\021\n\nADMIN_RE" + + "AD\020\246\311\276=\022\021\n\tDATA_READ\020\213\272\305\221\001\022\022\n\nDATA_WRITE" + + "\020\352\205\233\242\001\022\033\n\024LOG_TYPE_UNSPECIFIED\020\315\312\327IB\032\n\030_" + + "ignore_child_exemptionsB\013\n\t_log_type\"\235\007\n" + + "\nAutoscaler\022N\n\022autoscaling_policy\030\331\340\352i \001" + + "(\0132*.google.cloud.compute.v1.Autoscaling" + + "PolicyH\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\024\n" + + "\004name\030\213\365\315\001 \001(\tH\005\210\001\001\022 \n\020recommended_size\030" + + "\345\366\375z \001(\005H\006\210\001\001\022\026\n\006region\030\364\315\240B \001(\tH\007\210\001\001\022c\n" + + "\027scaling_schedule_status\030\342\253\227\336\001 \003(\0132>.goo" + + "gle.cloud.compute.v1.Autoscaler.ScalingS" + + "cheduleStatusEntry\022\032\n\tself_link\030\215\222\305\331\001 \001(" + + "\tH\010\210\001\001\022\026\n\006status\030\362\237\267V \001(\tH\t\210\001\001\022L\n\016status" + + "_details\030\365\255\241\255\001 \003(\01320.google.cloud.comput" + + "e.v1.AutoscalerStatusDetails\022\026\n\006target\030\221" + + "\343\371[ \001(\tH\n\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tH\013\210\001\001\032l\n\032Sc" + + "alingScheduleStatusEntry\022\013\n\003key\030\001 \001(\t\022=\n" + + "\005value\030\002 \001(\0132..google.cloud.compute.v1.S" + + "calingScheduleStatus:\0028\001\"^\n\006Status\022\024\n\020UN" + + "DEFINED_STATUS\020\000\022\016\n\006ACTIVE\020\206\346\211\226\001\022\020\n\010DELE" + + "TING\020\250\247\207\374\001\022\014\n\005ERROR\020\350\263\313\037\022\016\n\007PENDING\020\367\252\360\020" + + "B\025\n\023_autoscaling_policyB\025\n\023_creation_tim" + + "estampB\016\n\014_descriptionB\005\n\003_idB\007\n\005_kindB\007" + + "\n\005_nameB\023\n\021_recommended_sizeB\t\n\007_regionB" + + "\014\n\n_self_linkB\t\n\007_statusB\t\n\007_targetB\007\n\005_" + + "zone\"\277\003\n\030AutoscalerAggregatedList\022\020\n\002id\030" + + "\233\032 \001(\tH\000\210\001\001\022N\n\005items\030\300\317\367/ \003(\0132<.google.c" + + "loud.compute.v1.AutoscalerAggregatedList" + + ".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\022=\n\005value\030\002 \001(\0132..google.cloud.comp" + + "ute.v1.AutoscalersScopedList:\0028\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\"\245\002\n\016AutoscalerList\022\020\n\002id\030" + + "\233\032 \001(\tH\000\210\001\001\0225\n\005items\030\300\317\367/ \003(\0132#.google.c" + + "loud.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.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\"\313\006\n\027Autos" + + "calerStatusDetails\022\030\n\007message\030\207\200\254\307\001 \001(\tH" + + "\000\210\001\001\022\024\n\004type\030\272\236\332\001 \001(\tH\001\210\001\001\"\352\005\n\004Type\022\022\n\016U" + + "NDEFINED_TYPE\020\000\022\037\n\027ALL_INSTANCES_UNHEALT" + + "HY\020\345\220\215\301\001\022%\n\036BACKEND_SERVICE_DOES_NOT_EXI" + + "ST\020\232\232\243[\022 \n\032CAPPED_AT_MAX_NUM_REPLICAS\020\331\323" + + "\037\022,\n$CUSTOM_METRIC_DATA_POINTS_TOO_SPARS" + + "E\020\263\264\356\234\001\022\034\n\025CUSTOM_METRIC_INVALID\020\326\271\275a\022\025\n" + + "\016MIN_EQUALS_MAX\020\361\231\254\001\022(\n!MISSING_CUSTOM_M" + + "ETRIC_DATA_POINTS\020\336\251\237-\022*\n\"MISSING_LOAD_B" + + "ALANCING_DATA_POINTS\020\322\250\217\363\001\022\017\n\010MODE_OFF\020\263" + + "\221\244N\022\032\n\023MODE_ONLY_SCALE_OUT\020\342\267\352\001\022\023\n\014MODE_" + + "ONLY_UP\020\362\332\2220\022$\n\035MORE_THAN_ONE_BACKEND_SE" + + "RVICE\020\335\313\270H\022\"\n\032NOT_ENOUGH_QUOTA_AVAILABLE" + + "\020\277\257\233\300\001\022 \n\030REGION_RESOURCE_STOCKOUT\020\376\311\210\374\001" + + "\022$\n\035SCALING_TARGET_DOES_NOT_EXIST\020\233\223\275:\0226" + + "\n/SCHEDULED_INSTANCES_GREATER_THAN_AUTOS" + + "CALER_MAX\020\302\353\372\r\0224\n,SCHEDULED_INSTANCES_LE" + + "SS_THAN_AUTOSCALER_MIN\020\265\306\365\275\001\022\017\n\007UNKNOWN\020" + + "\252\360\304\316\001\0229\n1UNSUPPORTED_MAX_RATE_LOAD_BALAN" + + "CING_CONFIGURATION\020\321\226\341\235\001\022\035\n\026ZONE_RESOURC" + + "E_STOCKOUT\020\266\317\235dB\n\n\010_messageB\007\n\005_type\"\234\001\n" + + "\025AutoscalersScopedList\022<\n\013autoscalers\030\374\270" + + "\214\336\001 \003(\0132#.google.cloud.compute.v1.Autosc" + + "aler\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud." + + "compute.v1.WarningH\000\210\001\001B\n\n\010_warning\"\351\007\n\021" + + "AutoscalingPolicy\022$\n\024cool_down_period_se" + + "c\030\232\207\2553 \001(\005H\000\210\001\001\022Z\n\017cpu_utilization\030\213\244\343\265\001" + + " \001(\01328.google.cloud.compute.v1.Autoscali" + + "ngPolicyCpuUtilizationH\001\210\001\001\022h\n\032custom_me" + + "tric_utilizations\030\362\375\366> \003(\0132A.google.clou" + + "d.compute.v1.AutoscalingPolicyCustomMetr" + + "icUtilization\022o\n\032load_balancing_utilizat" + + "ion\030\343\321\365\314\001 \001(\0132B.google.cloud.compute.v1." + + "AutoscalingPolicyLoadBalancingUtilizatio" + + "nH\002\210\001\001\022 \n\020max_num_replicas\030\317\224\334\035 \001(\005H\003\210\001\001" + + "\022!\n\020min_num_replicas\030\241\370\241\377\001 \001(\005H\004\210\001\001\022\024\n\004m" + + "ode\030\243\363\314\001 \001(\tH\005\210\001\001\022[\n\020scale_in_control\030\330\274" + + "\316\373\001 \001(\01328.google.cloud.compute.v1.Autosc" + + "alingPolicyScaleInControlH\006\210\001\001\022_\n\021scalin" + + "g_schedules\030\204\364\274\251\001 \003(\0132@.google.cloud.com" + + "pute.v1.AutoscalingPolicy.ScalingSchedul" + + "esEntry\032r\n\025ScalingSchedulesEntry\022\013\n\003key\030" + + "\001 \001(\t\022H\n\005value\030\002 \001(\01329.google.cloud.comp" + + "ute.v1.AutoscalingPolicyScalingSchedule:" + + "\0028\001\"V\n\004Mode\022\022\n\016UNDEFINED_MODE\020\000\022\t\n\003OFF\020\317" + + "\342\004\022\007\n\002ON\020\337\023\022\025\n\016ONLY_SCALE_OUT\020\306\363\350H\022\017\n\007ON" + + "LY_UP\020\216\320\374\343\001B\027\n\025_cool_down_period_secB\022\n\020" + + "_cpu_utilizationB\035\n\033_load_balancing_util" + + "izationB\023\n\021_max_num_replicasB\023\n\021_min_num" + + "_replicasB\007\n\005_modeB\023\n\021_scale_in_control\"" + + "\366\001\n\037AutoscalingPolicyCpuUtilization\022\"\n\021p" + + "redictive_method\030\301\227\211\272\001 \001(\tH\000\210\001\001\022\"\n\022utili" + + "zation_target\030\316\354\371f \001(\001H\001\210\001\001\"^\n\020Predictiv" + + "eMethod\022\037\n\033UNDEFINED_PREDICTIVE_METHOD\020\000" + + "\022\013\n\004NONE\020\270\316\222\001\022\034\n\025OPTIMIZE_AVAILABILITY\020\375" + + "\346\305\005B\024\n\022_predictive_methodB\025\n\023_utilizatio" + + "n_target\"\277\003\n(AutoscalingPolicyCustomMetr" + + "icUtilization\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\027" + + "\n\006metric\030\260\353\227\376\001 \001(\tH\001\210\001\001\022+\n\032single_instan" + + "ce_assignment\030\300\314\330\360\001 \001(\001H\002\210\001\001\022\"\n\022utilizat" + + "ion_target\030\316\354\371f \001(\001H\003\210\001\001\022(\n\027utilization_" + + "target_type\030\213\245\232\242\001 \001(\tH\004\210\001\001\"~\n\025Utilizatio" + + "nTargetType\022%\n!UNDEFINED_UTILIZATION_TAR" + + "GET_TYPE\020\000\022\027\n\020DELTA_PER_MINUTE\020\235\275\330)\022\027\n\020D" + + "ELTA_PER_SECOND\020\375\371\326y\022\014\n\005GAUGE\020\331\261\235 B\t\n\007_f" + + "ilterB\t\n\007_metricB\035\n\033_single_instance_ass" + + "ignmentB\025\n\023_utilization_targetB\032\n\030_utili" + + "zation_target_type\"f\n)AutoscalingPolicyL" + + "oadBalancingUtilization\022\"\n\022utilization_t" + + "arget\030\316\354\371f \001(\001H\000\210\001\001B\025\n\023_utilization_targ" + + "et\"\302\001\n\037AutoscalingPolicyScaleInControl\022O" + + "\n\026max_scaled_in_replicas\030\353\325\225V \001(\0132\'.goog" + + "le.cloud.compute.v1.FixedOrPercentH\000\210\001\001\022" + + "\037\n\017time_window_sec\030\264\200\256\021 \001(\005H\001\210\001\001B\031\n\027_max" + + "_scaled_in_replicasB\022\n\020_time_window_sec\"" + + "\272\002\n AutoscalingPolicyScalingSchedule\022\034\n\013" + + "description\030\374\207\326\311\001 \001(\tH\000\210\001\001\022\031\n\010disabled\030\374" + + "\364\230\201\001 \001(\010H\001\210\001\001\022\034\n\014duration_sec\030\246\236\241e \001(\005H\002" + + "\210\001\001\022&\n\025min_required_replicas\030\256\235\245\256\001 \001(\005H\003" + + "\210\001\001\022\031\n\010schedule\030\227\245\232\263\001 \001(\tH\004\210\001\001\022\031\n\ttime_z" + + "one\030\336\203\311\021 \001(\tH\005\210\001\001B\016\n\014_descriptionB\013\n\t_di" + + "sabledB\017\n\r_duration_secB\030\n\026_min_required" + + "_replicasB\013\n\t_scheduleB\014\n\n_time_zone\"\224\007\n" + + "\007Backend\022\037\n\016balancing_mode\030\211\313\226\315\001 \001(\tH\000\210\001" + + "\001\022 \n\017capacity_scaler\030\215\307\324\226\001 \001(\002H\001\210\001\001\022\034\n\013d" + + "escription\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\030\n\010failover\030\362\251" + + "\235B \001(\010H\003\210\001\001\022\025\n\005group\030\377\354\203/ \001(\tH\004\210\001\001\022\037\n\017ma" + + "x_connections\030\372\325\3414 \001(\005H\005\210\001\001\022,\n\034max_conne" + + "ctions_per_endpoint\030\234\347\266g \001(\005H\006\210\001\001\022,\n\034max" + + "_connections_per_instance\030\234\325\3641 \001(\005H\007\210\001\001\022" + + "\031\n\010max_rate\030\333\275\310\302\001 \001(\005H\010\210\001\001\022%\n\025max_rate_p" + + "er_endpoint\030\333\252\364= \001(\002H\t\210\001\001\022%\n\025max_rate_pe" + + "r_instance\030\333\230\262\010 \001(\002H\n\210\001\001\022\037\n\017max_utilizat" + + "ion\030\307\367\324F \001(\002H\013\210\001\001\022\032\n\npreference\030\333\371\362G \001(\t" + + "H\014\210\001\001\"a\n\rBalancingMode\022\034\n\030UNDEFINED_BALA" + + "NCING_MODE\020\000\022\021\n\nCONNECTION\020\336\325\271u\022\013\n\004RATE\020" + + "\340\211\231\001\022\022\n\013UTILIZATION\020\202\204\357J\"i\n\nPreference\022\030" + + "\n\024UNDEFINED_PREFERENCE\020\000\022\016\n\007DEFAULT\020\241\304\3756" + + "\022\036\n\026PREFERENCE_UNSPECIFIED\020\263\353\316\354\001\022\021\n\tPREF" + + "ERRED\020\341\270\334\307\001B\021\n\017_balancing_modeB\022\n\020_capac" + + "ity_scalerB\016\n\014_descriptionB\013\n\t_failoverB" + + "\010\n\006_groupB\022\n\020_max_connectionsB\037\n\035_max_co" + + "nnections_per_endpointB\037\n\035_max_connectio" + + "ns_per_instanceB\013\n\t_max_rateB\030\n\026_max_rat" + + "e_per_endpointB\030\n\026_max_rate_per_instance" + + "B\022\n\020_max_utilizationB\r\n\013_preference\"\344\005\n\r" + + "BackendBucket\022\034\n\013bucket_name\030\300\227\236\207\001 \001(\tH\000" + + "\210\001\001\022K\n\ncdn_policy\030\204\213\204f \001(\0132/.google.clou" + + "d.compute.v1.BackendBucketCdnPolicyH\001\210\001\001" + + "\022 \n\020compression_mode\030\334\221\306- \001(\tH\002\210\001\001\022\"\n\022cr" + + "eation_timestamp\030\266\217\307\016 \001(\tH\003\210\001\001\022#\n\027custom" + + "_response_headers\030\226\301\345\270\001 \003(\t\022\034\n\013descripti" + + "on\030\374\207\326\311\001 \001(\tH\004\210\001\001\022$\n\024edge_security_polic" + + "y\030\217\331\310\023 \001(\tH\005\210\001\001\022\033\n\nenable_cdn\030\361\266\365\206\001 \001(\010H" + + "\006\210\001\001\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\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\022A\n\007used_by\030\231\240\322\271\001 \003(\0132,.go" + + "ogle.cloud.compute.v1.BackendBucketUsedB" + + "y\"U\n\017CompressionMode\022\036\n\032UNDEFINED_COMPRE" + + "SSION_MODE\020\000\022\020\n\tAUTOMATIC\020\213\204\351N\022\020\n\010DISABL" + + "ED\020\374\324\260\366\001B\016\n\014_bucket_nameB\r\n\013_cdn_policyB" + + "\023\n\021_compression_modeB\025\n\023_creation_timest" + + "ampB\016\n\014_descriptionB\027\n\025_edge_security_po" + + "licyB\r\n\013_enable_cdnB\005\n\003_idB\007\n\005_kindB\007\n\005_" + + "nameB\014\n\n_self_link\"\312\007\n\026BackendBucketCdnP" + + "olicy\022v\n\037bypass_cache_on_request_headers" + + "\030\312\275\353\347\001 \003(\0132I.google.cloud.compute.v1.Bac" + + "kendBucketCdnPolicyBypassCacheOnRequestH" + + "eader\022_\n\020cache_key_policy\030\357\327\370K \001(\0132=.goo" + + "gle.cloud.compute.v1.BackendBucketCdnPol" + + "icyCacheKeyPolicyH\000\210\001\001\022\032\n\ncache_mode\030\300\310\342" + + "\r \001(\tH\001\210\001\001\022\032\n\nclient_ttl\030\370\216\354\r \001(\005H\002\210\001\001\022\033" + + "\n\013default_ttl\030\356\375\346/ \001(\005H\003\210\001\001\022\030\n\007max_ttl\030\221" + + "\211\325\222\001 \001(\005H\004\210\001\001\022!\n\020negative_caching\030\265\303\242\240\001 " + + "\001(\010H\005\210\001\001\022h\n\027negative_caching_policy\030\374\265\212J" + + " \003(\0132D.google.cloud.compute.v1.BackendBu" + + "cketCdnPolicyNegativeCachingPolicy\022#\n\022re" + + "quest_coalescing\030\324\204\210\376\001 \001(\010H\006\210\001\001\022!\n\021serve" + + "_while_stale\030\333\367\355p \001(\005H\007\210\001\001\022-\n\034signed_url" + + "_cache_max_age_sec\030\306\250\271\200\001 \001(\003H\010\210\001\001\022 \n\024sig" + + "ned_url_key_names\030\265\355\247\261\001 \003(\t\"\217\001\n\tCacheMod" + + "e\022\030\n\024UNDEFINED_CACHE_MODE\020\000\022\030\n\020CACHE_ALL" + + "_STATIC\020\351\227\245\251\001\022\027\n\017FORCE_CACHE_ALL\020\260\335\340\347\001\022\032" + + "\n\022INVALID_CACHE_MODE\020\310\267\350\265\001\022\031\n\022USE_ORIGIN" + + "_HEADERS\020\245\222\264\032B\023\n\021_cache_key_policyB\r\n\013_c" + + "ache_modeB\r\n\013_client_ttlB\016\n\014_default_ttl" + + "B\n\n\010_max_ttlB\023\n\021_negative_cachingB\025\n\023_re" + + "quest_coalescingB\024\n\022_serve_while_staleB\037" + + "\n\035_signed_url_cache_max_age_sec\"_\n0Backe" + + "ndBucketCdnPolicyBypassCacheOnRequestHea" + + "der\022\033\n\013header_name\030\375\301\3074 \001(\tH\000\210\001\001B\016\n\014_hea" + + "der_name\"j\n$BackendBucketCdnPolicyCacheK" + + "eyPolicy\022\037\n\024include_http_headers\030\206\372\227\001 \003(" + + "\t\022!\n\026query_string_whitelist\030\260\330\201\031 \003(\t\"h\n+" + + "BackendBucketCdnPolicyNegativeCachingPol" + + "icy\022\024\n\004code\030\355\333\272\001 \001(\005H\000\210\001\001\022\022\n\003ttl\030\354\203\007 \001(\005" + + "H\001\210\001\001B\007\n\005_codeB\006\n\004_ttl\"\253\002\n\021BackendBucket" + + "List\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0228\n\005items\030\300\317\367/ \003(\013" + + "2&.google.cloud.compute.v1.BackendBucket" + + "\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\">\n\023BackendBucketUsedBy\022\031\n\treference" + + "\030\313\376\354F \001(\tH\000\210\001\001B\014\n\n_reference\"\350\037\n\016Backend" + + "Service\022(\n\027affinity_cookie_ttl_sec\030\232\351\266\260\001" + + " \001(\005H\000\210\001\001\0226\n\010backends\030\337\230\313\363\001 \003(\0132 .google", + ".cloud.compute.v1.Backend\022L\n\ncdn_policy\030" + + "\204\213\204f \001(\01320.google.cloud.compute.v1.Backe" + + "ndServiceCdnPolicyH\001\210\001\001\022K\n\020circuit_break" + + "ers\030\235\307\364\310\001 \001(\0132(.google.cloud.compute.v1." + + "CircuitBreakersH\002\210\001\001\022 \n\020compression_mode" + + "\030\334\221\306- \001(\tH\003\210\001\001\022Q\n\023connection_draining\030\253\216" + + "\357\333\001 \001(\0132+.google.cloud.compute.v1.Connec" + + "tionDrainingH\004\210\001\001\022k\n\032connection_tracking" + + "_policy\030\331\340\324D \001(\0132?.google.cloud.compute." + + "v1.BackendServiceConnectionTrackingPolic" + + "yH\005\210\001\001\022[\n\017consistent_hash\030\233\2457 \001(\0132;.goog" + + "le.cloud.compute.v1.ConsistentHashLoadBa" + + "lancerSettingsH\006\210\001\001\022\"\n\022creation_timestam" + + "p\030\266\217\307\016 \001(\tH\007\210\001\001\022!\n\026custom_request_header" + + "s\030\210\322\253\r \003(\t\022#\n\027custom_response_headers\030\226\301" + + "\345\270\001 \003(\t\022\034\n\013description\030\374\207\326\311\001 \001(\tH\010\210\001\001\022$\n" + + "\024edge_security_policy\030\217\331\310\023 \001(\tH\t\210\001\001\022\034\n\014e" + + "nable_c_d_n\030\273\307\307w \001(\010H\n\210\001\001\022V\n\017failover_po" + + "licy\030\237\362\2602 \001(\01325.google.cloud.compute.v1." + + "BackendServiceFailoverPolicyH\013\210\001\001\022\033\n\013fin" + + "gerprint\030\344\321\363o \001(\tH\014\210\001\001\022\031\n\rhealth_checks\030" + + "\256\257\346\325\001 \003(\t\022>\n\003iap\030\330\254\006 \001(\0132*.google.cloud." + + "compute.v1.BackendServiceIAPH\r\210\001\001\022\020\n\002id\030" + + "\233\032 \001(\004H\016\210\001\001\022+\n\033ip_address_selection_poli" + + "cy\030\310\260\200% \001(\tH\017\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\020\210\001\001\022&" + + "\n\025load_balancing_scheme\030\304\214\302\255\001 \001(\tH\021\210\001\001\022i" + + "\n\024locality_lb_policies\030\235\362\234C \003(\0132H.google" + + ".cloud.compute.v1.BackendServiceLocality" + + "LoadBalancingPolicyConfig\022\"\n\022locality_lb" + + "_policy\030\277\370\325> \001(\tH\022\210\001\001\022M\n\nlog_config\030\235\321\301\247" + + "\001 \001(\01320.google.cloud.compute.v1.BackendS" + + "erviceLogConfigH\023\210\001\001\022F\n\023max_stream_durat" + + "ion\030\230\245\245\035 \001(\0132!.google.cloud.compute.v1.D" + + "urationH\024\210\001\001\022L\n\tmetadatas\030\244\326\207\004 \003(\01326.goo" + + "gle.cloud.compute.v1.BackendService.Meta" + + "datasEntry\022\024\n\004name\030\213\365\315\001 \001(\tH\025\210\001\001\022\027\n\007netw" + + "ork\030\256\264\205o \001(\tH\026\210\001\001\022M\n\021outlier_detection\030\276" + + "\314\214\251\001 \001(\0132).google.cloud.compute.v1.Outli" + + "erDetectionH\027\210\001\001\022\024\n\004port\030\201\261\322\001 \001(\005H\030\210\001\001\022\031" + + "\n\tport_name\030\211\207\347\023 \001(\tH\031\210\001\001\022\030\n\010protocol\030\230\235" + + "\252( \001(\tH\032\210\001\001\022\026\n\006region\030\364\315\240B \001(\tH\033\210\001\001\022\037\n\017s" + + "ecurity_policy\030\221\206\312Q \001(\tH\034\210\001\001\022M\n\021security" + + "_settings\030\302\274\236\344\001 \001(\0132).google.cloud.compu" + + "te.v1.SecuritySettingsH\035\210\001\001\022\032\n\tself_link" + + "\030\215\222\305\331\001 \001(\tH\036\210\001\001\022\033\n\020service_bindings\030\330\221\331?" + + " \003(\t\022!\n\021service_lb_policy\030\221\216\235- \001(\tH\037\210\001\001\022" + + "!\n\020session_affinity\030\261\301\231\335\001 \001(\tH \210\001\001\022a\n\036st" + + "rong_session_affinity_cookie\030\212\250\312q \001(\01321." + + "google.cloud.compute.v1.BackendServiceHt" + + "tpCookieH!\210\001\001\022@\n\nsubsetting\030\220\220\333\326\001 \001(\0132#." + + "google.cloud.compute.v1.SubsettingH\"\210\001\001\022" + + "\033\n\013timeout_sec\030\363\300\222& \001(\005H#\210\001\001\022B\n\007used_by\030" + + "\231\240\322\271\001 \003(\0132-.google.cloud.compute.v1.Back" + + "endServiceUsedBy\0320\n\016MetadatasEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"U\n\017Compressio" + + "nMode\022\036\n\032UNDEFINED_COMPRESSION_MODE\020\000\022\020\n" + + "\tAUTOMATIC\020\213\204\351N\022\020\n\010DISABLED\020\374\324\260\366\001\"\256\001\n\030Ip" + + "AddressSelectionPolicy\022)\n%UNDEFINED_IP_A" + + "DDRESS_SELECTION_POLICY\020\000\022\020\n\tIPV4_ONLY\020\246" + + "\313\325\n\022\020\n\tIPV6_ONLY\020\344\255\374%\022.\n\'IP_ADDRESS_SELE" + + "CTION_POLICY_UNSPECIFIED\020\340\213\242\021\022\023\n\013PREFER_" + + "IPV6\020\326\205\353\302\001\"\325\001\n\023LoadBalancingScheme\022#\n\037UN" + + "DEFINED_LOAD_BALANCING_SCHEME\020\000\022\017\n\010EXTER" + + "NAL\020\313\247\375\020\022\030\n\020EXTERNAL_MANAGED\020\213\266\222\364\001\022\020\n\010IN" + + "TERNAL\020\275\355\226\205\001\022\027\n\020INTERNAL_MANAGED\020\375\327\347\021\022\034\n" + + "\025INTERNAL_SELF_MANAGED\020\316\227\321p\022%\n\035INVALID_L" + + "OAD_BALANCING_SCHEME\020\374\223\246\203\001\"\337\001\n\020LocalityL" + + "bPolicy\022 \n\034UNDEFINED_LOCALITY_LB_POLICY\020" + + "\000\022\031\n\021INVALID_LB_POLICY\020\263\347\225\232\001\022\024\n\rLEAST_RE" + + "QUEST\020\371\304\234\026\022\r\n\006MAGLEV\020\352\227\3528\022\033\n\024ORIGINAL_DE" + + "STINATION\020\200\375\245O\022\r\n\006RANDOM\020\303\261\227}\022\021\n\tRING_HA" + + "SH\020\275\333\257\316\001\022\022\n\013ROUND_ROBIN\020\371\206\261I\022\026\n\017WEIGHTED" + + "_MAGLEV\020\222\340\307y\"\216\001\n\010Protocol\022\026\n\022UNDEFINED_P" + + "ROTOCOL\020\000\022\013\n\004GRPC\020\236\210\206\001\022\013\n\004HTTP\020\210\201\210\001\022\014\n\005H" + + "TTP2\020\252\241\370 \022\014\n\005HTTPS\020\313\241\370 \022\t\n\003SSL\020\354\203\005\022\t\n\003TC" + + "P\020\301\207\005\022\t\n\003UDP\020\241\217\005\022\023\n\013UNSPECIFIED\020\227\276\230\373\001\"\213\002" + + "\n\017SessionAffinity\022\036\n\032UNDEFINED_SESSION_A" + + "FFINITY\020\000\022\021\n\tCLIENT_IP\020\233\334\351\244\001\022\037\n\030CLIENT_I" + + "P_NO_DESTINATION\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\020GE" + + "NERATED_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\026S" + + "TRONG_COOKIE_AFFINITY\020\373\335\223\321\001B\032\n\030_affinity" + + "_cookie_ttl_secB\r\n\013_cdn_policyB\023\n\021_circu" + + "it_breakersB\023\n\021_compression_modeB\026\n\024_con" + + "nection_drainingB\035\n\033_connection_tracking" + + "_policyB\022\n\020_consistent_hashB\025\n\023_creation" + + "_timestampB\016\n\014_descriptionB\027\n\025_edge_secu" + + "rity_policyB\017\n\r_enable_c_d_nB\022\n\020_failove" + + "r_policyB\016\n\014_fingerprintB\006\n\004_iapB\005\n\003_idB" + + "\036\n\034_ip_address_selection_policyB\007\n\005_kind" + + "B\030\n\026_load_balancing_schemeB\025\n\023_locality_" + + "lb_policyB\r\n\013_log_configB\026\n\024_max_stream_" + + "durationB\007\n\005_nameB\n\n\010_networkB\024\n\022_outlie" + + "r_detectionB\007\n\005_portB\014\n\n_port_nameB\013\n\t_p" + + "rotocolB\t\n\007_regionB\022\n\020_security_policyB\024" + + "\n\022_security_settingsB\014\n\n_self_linkB\024\n\022_s" + + "ervice_lb_policyB\023\n\021_session_affinityB!\n" + + "\037_strong_session_affinity_cookieB\r\n\013_sub" + + "settingB\016\n\014_timeout_sec\"\313\003\n\034BackendServi" + + "ceAggregatedList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022R\n\005it" + + "ems\030\300\317\367/ \003(\0132@.google.cloud.compute.v1.B" + + "ackendServiceAggregatedList.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\022A\n\005valu" + + "e\030\002 \001(\01322.google.cloud.compute.v1.Backen" + + "dServicesScopedList:\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\"\267\007\n\027BackendServiceCdnPolicy\022w\n\037byp" + + "ass_cache_on_request_headers\030\312\275\353\347\001 \003(\0132J" + + ".google.cloud.compute.v1.BackendServiceC" + + "dnPolicyBypassCacheOnRequestHeader\022I\n\020ca" + + "che_key_policy\030\357\327\370K \001(\0132\'.google.cloud.c" + + "ompute.v1.CacheKeyPolicyH\000\210\001\001\022\032\n\ncache_m" + + "ode\030\300\310\342\r \001(\tH\001\210\001\001\022\032\n\nclient_ttl\030\370\216\354\r \001(\005" + + "H\002\210\001\001\022\033\n\013default_ttl\030\356\375\346/ \001(\005H\003\210\001\001\022\030\n\007ma" + + "x_ttl\030\221\211\325\222\001 \001(\005H\004\210\001\001\022!\n\020negative_caching" + + "\030\265\303\242\240\001 \001(\010H\005\210\001\001\022i\n\027negative_caching_poli" + + "cy\030\374\265\212J \003(\0132E.google.cloud.compute.v1.Ba" + + "ckendServiceCdnPolicyNegativeCachingPoli" + + "cy\022#\n\022request_coalescing\030\324\204\210\376\001 \001(\010H\006\210\001\001\022" + + "!\n\021serve_while_stale\030\333\367\355p \001(\005H\007\210\001\001\022-\n\034si" + + "gned_url_cache_max_age_sec\030\306\250\271\200\001 \001(\003H\010\210\001" + + "\001\022 \n\024signed_url_key_names\030\265\355\247\261\001 \003(\t\"\217\001\n\t" + + "CacheMode\022\030\n\024UNDEFINED_CACHE_MODE\020\000\022\030\n\020C" + + "ACHE_ALL_STATIC\020\351\227\245\251\001\022\027\n\017FORCE_CACHE_ALL" + + "\020\260\335\340\347\001\022\032\n\022INVALID_CACHE_MODE\020\310\267\350\265\001\022\031\n\022US" + + "E_ORIGIN_HEADERS\020\245\222\264\032B\023\n\021_cache_key_poli" + + "cyB\r\n\013_cache_modeB\r\n\013_client_ttlB\016\n\014_def" + + "ault_ttlB\n\n\010_max_ttlB\023\n\021_negative_cachin" + + "gB\025\n\023_request_coalescingB\024\n\022_serve_while" + + "_staleB\037\n\035_signed_url_cache_max_age_sec\"" + + "`\n1BackendServiceCdnPolicyBypassCacheOnR" + + "equestHeader\022\033\n\013header_name\030\375\301\3074 \001(\tH\000\210\001" + + "\001B\016\n\014_header_name\"i\n,BackendServiceCdnPo" + + "licyNegativeCachingPolicy\022\024\n\004code\030\355\333\272\001 \001" + + "(\005H\000\210\001\001\022\022\n\003ttl\030\354\203\007 \001(\005H\001\210\001\001B\007\n\005_codeB\006\n\004" + + "_ttl\"\353\004\n&BackendServiceConnectionTrackin" + + "gPolicy\022<\n,connection_persistence_on_unh" + + "ealthy_backends\030\371\221\330H \001(\tH\000\210\001\001\022&\n\026enable_" + + "strong_affinity\030\224\346\331\013 \001(\010H\001\210\001\001\022 \n\020idle_ti" + + "meout_sec\030\210\301\364\013 \001(\005H\002\210\001\001\022\035\n\rtracking_mode" + + "\030\253\334\365< \001(\tH\003\210\001\001\"\260\001\n(ConnectionPersistence" + + "OnUnhealthyBackends\022:\n6UNDEFINED_CONNECT" + + "ION_PERSISTENCE_ON_UNHEALTHY_BACKENDS\020\000\022" + + "\025\n\016ALWAYS_PERSIST\020\204\347\247\022\022\033\n\024DEFAULT_FOR_PR" + + "OTOCOL\020\314\245\242E\022\024\n\rNEVER_PERSIST\020\341\245\216B\"t\n\014Tra" + + "ckingMode\022\033\n\027UNDEFINED_TRACKING_MODE\020\000\022\034" + + "\n\025INVALID_TRACKING_MODE\020\303\203\275\027\022\025\n\016PER_CONN" + + "ECTION\020\340\366\315(\022\022\n\013PER_SESSION\020\264\272\352VB/\n-_conn" + + "ection_persistence_on_unhealthy_backends" + + "B\031\n\027_enable_strong_affinityB\023\n\021_idle_tim" + + "eout_secB\020\n\016_tracking_mode\"\371\001\n\034BackendSe" + + "rviceFailoverPolicy\0224\n$disable_connectio" + + "n_drain_on_failover\030\341\314\355V \001(\010H\000\210\001\001\022)\n\031dro" + + "p_traffic_if_unhealthy\030\224\315\3055 \001(\010H\001\210\001\001\022\036\n\016" + + "failover_ratio\030\376\224\264e \001(\002H\002\210\001\001B\'\n%_disable" + + "_connection_drain_on_failoverB\034\n\032_drop_t" + + "raffic_if_unhealthyB\021\n\017_failover_ratio\"\215" + + "\002\n\031BackendServiceGroupHealth\022[\n\013annotati" + + "ons\030\244\366\2655 \003(\0132C.google.cloud.compute.v1.B" + + "ackendServiceGroupHealth.AnnotationsEntr" + + "y\022@\n\rhealth_status\030\265\326\272\265\001 \003(\0132%.google.cl" + + "oud.compute.v1.HealthStatus\022\024\n\004kind\030\224\367\310\001" + + " \001(\tH\000\210\001\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\007\n\005_kind\"\227\001\n\030Backe" + + "ndServiceHttpCookie\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.DurationH\002\210\001\001B\007" + + "\n\005_nameB\007\n\005_pathB\006\n\004_ttl\"\373\001\n\021BackendServ" + + "iceIAP\022\026\n\007enabled\030\301\226> \001(\010H\000\210\001\001\022!\n\020oauth2" + + "_client_id\030\313\216\336\225\001 \001(\tH\001\210\001\001\022$\n\024oauth2_clie" + + "nt_secret\030\340\341\250\030 \001(\tH\002\210\001\001\022+\n\033oauth2_client" + + "_secret_sha256\030\346\214\3535 \001(\tH\003\210\001\001B\n\n\010_enabled" + + "B\023\n\021_oauth2_client_idB\027\n\025_oauth2_client_" + + "secretB\036\n\034_oauth2_client_secret_sha256\"\255" + + "\002\n\022BackendServiceList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022" + + "9\n\005items\030\300\317\367/ \003(\0132\'.google.cloud.compute" + + ".v1.BackendService\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\"\263\002\n\030BackendServic" + + "eListUsable\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.Backen" + + "dService\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\"\253\002\n/BackendServiceLocalityL" + + "oadBalancingPolicyConfig\022s\n\rcustom_polic" + + "y\030\300\213\246\002 \001(\0132T.google.cloud.compute.v1.Bac" + + "kendServiceLocalityLoadBalancingPolicyCo" + + "nfigCustomPolicyH\000\210\001\001\022f\n\006policy\030\262\312\266+ \001(\013" + + "2N.google.cloud.compute.v1.BackendServic" + + "eLocalityLoadBalancingPolicyConfigPolicy" + + "H\001\210\001\001B\020\n\016_custom_policyB\t\n\007_policy\"{\n;Ba" + + "ckendServiceLocalityLoadBalancingPolicyC" + + "onfigCustomPolicy\022\024\n\004data\030\252\337\273\001 \001(\tH\000\210\001\001\022" + + "\024\n\004name\030\213\365\315\001 \001(\tH\001\210\001\001B\007\n\005_dataB\007\n\005_name\"" + + "\236\002\n5BackendServiceLocalityLoadBalancingP" + + "olicyConfigPolicy\022\024\n\004name\030\213\365\315\001 \001(\tH\000\210\001\001\"" + + "\305\001\n\004Name\022\022\n\016UNDEFINED_NAME\020\000\022\031\n\021INVALID_" + + "LB_POLICY\020\263\347\225\232\001\022\024\n\rLEAST_REQUEST\020\371\304\234\026\022\r\n" + + "\006MAGLEV\020\352\227\3528\022\033\n\024ORIGINAL_DESTINATION\020\200\375\245" + + "O\022\r\n\006RANDOM\020\303\261\227}\022\021\n\tRING_HASH\020\275\333\257\316\001\022\022\n\013R" + + "OUND_ROBIN\020\371\206\261I\022\026\n\017WEIGHTED_MAGLEV\020\222\340\307yB" + + "\007\n\005_name\"\260\002\n\027BackendServiceLogConfig\022\027\n\006" + + "enable\030\203\313\324\224\001 \001(\010H\000\210\001\001\022\033\n\017optional_fields" + + "\030\370\310\206\374\001 \003(\t\022\035\n\roptional_mode\030\242\206\257= \001(\tH\001\210\001" + + "\001\022\033\n\013sample_rate\030\325\224\206I \001(\002H\002\210\001\001\"v\n\014Option" + + "alMode\022\033\n\027UNDEFINED_OPTIONAL_MODE\020\000\022\016\n\006C" + + "USTOM\020\361\376\245\271\001\022\033\n\024EXCLUDE_ALL_OPTIONAL\020\303\335\264P" + + "\022\034\n\024INCLUDE_ALL_OPTIONAL\020\265\355\262\377\001B\t\n\007_enabl" + + "eB\020\n\016_optional_modeB\016\n\014_sample_rate\"O\n\027B" + + "ackendServiceReference\022 \n\017backend_servic" + + "e\030\212\300\256\222\001 \001(\tH\000\210\001\001B\022\n\020_backend_service\"?\n\024" + + "BackendServiceUsedBy\022\031\n\treference\030\313\376\354F \001" + + "(\tH\000\210\001\001B\014\n\n_reference\"\251\001\n\031BackendService" + + "sScopedList\022E\n\020backend_services\030\251\303\241\271\001 \003(" + + "\0132\'.google.cloud.compute.v1.BackendServi" + + "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\"\347\t\n\tBf" + + "dPacket\022&\n\026authentication_present\030\364\223\3042 \001" + + "(\010H\000\210\001\001\022)\n\031control_plane_independent\030\265\257\336" + + "\035 \001(\010H\001\210\001\001\022\027\n\006demand\030\313\324\233\203\001 \001(\010H\002\210\001\001\022\032\n\nd" + + "iagnostic\030\247\267\363\035 \001(\tH\003\210\001\001\022\025\n\005final\030\366\202\273. \001(" + + "\010H\004\210\001\001\022\027\n\006length\030\346\365\270\360\001 \001(\rH\005\210\001\001\022\'\n\027min_e" + + "cho_rx_interval_ms\030\324\365\261. \001(\rH\006\210\001\001\022#\n\022min_" + + "rx_interval_ms\030\364\320\373\334\001 \001(\rH\007\210\001\001\022#\n\022min_tx_" + + "interval_ms\030\262\367\351\372\001 \001(\rH\010\210\001\001\022\032\n\nmultiplier" + + "\030\301\373\235[ \001(\rH\t\210\001\001\022\032\n\nmultipoint\030\367\267\243[ \001(\010H\n\210" + + "\001\001\022 \n\020my_discriminator\030\311\222\307$ \001(\rH\013\210\001\001\022\024\n\004" + + "poll\030\277\257\322\001 \001(\010H\014\210\001\001\022\025\n\005state\030\221\211\2534 \001(\tH\r\210\001" + + "\001\022\030\n\007version\030\330\271\324\247\001 \001(\rH\016\210\001\001\022#\n\022your_disc" + + "riminator\030\220\347\357\365\001 \001(\rH\017\210\001\001\"\336\002\n\nDiagnostic\022" + + "\030\n\024UNDEFINED_DIAGNOSTIC\020\000\022\034\n\025ADMINISTRAT" + + "IVELY_DOWN\020\246\216\203:\022\035\n\026CONCATENATED_PATH_DOW" + + "N\020\214\251\276\014\022%\n\036CONTROL_DETECTION_TIME_EXPIRED" + + "\020\357\370\314@\022\035\n\026DIAGNOSTIC_UNSPECIFIED\020\377\204\200\034\022\033\n\024" + + "ECHO_FUNCTION_FAILED\020\352\330\235i\022\035\n\026FORWARDING_" + + "PLANE_RESET\020\252\256\263\t\022&\n\036NEIGHBOR_SIGNALED_SE" + + "SSION_DOWN\020\266\376\270\262\001\022\024\n\rNO_DIAGNOSTIC\020\345\301\214j\022\021" + + "\n\tPATH_DOWN\020\374\220\311\212\001\022&\n\036REVERSE_CONCATENATE" + + "D_PATH_DOWN\020\251\265\310\344\001\"m\n\005State\022\023\n\017UNDEFINED_" + + "STATE\020\000\022\021\n\nADMIN_DOWN\020\262\337\245=\022\013\n\004DOWN\020\242\271\200\001\022" + + "\013\n\004INIT\020\220\272\211\001\022\031\n\021STATE_UNSPECIFIED\020\311\320\274\340\001\022" + + "\007\n\002UP\020\233\025B\031\n\027_authentication_presentB\034\n\032_" + + "control_plane_independentB\t\n\007_demandB\r\n\013" + + "_diagnosticB\010\n\006_finalB\t\n\007_lengthB\032\n\030_min" + + "_echo_rx_interval_msB\025\n\023_min_rx_interval" + + "_msB\025\n\023_min_tx_interval_msB\r\n\013_multiplie" + + "rB\r\n\013_multipointB\023\n\021_my_discriminatorB\007\n" + + "\005_pollB\010\n\006_stateB\n\n\010_versionB\025\n\023_your_di" + + "scriminator\"\354\n\n\tBfdStatus\022/\n\037bfd_session" + + "_initialization_mode\030\232\237\203h \001(\tH\000\210\001\001\022/\n\036co" + + "nfig_update_timestamp_micros\030\261\200\201\332\001 \001(\003H\001" + + "\210\001\001\022U\n\025control_packet_counts\030\371\322\233? \001(\0132.." + + "google.cloud.compute.v1.BfdStatusPacketC" + + "ountsH\002\210\001\001\022N\n\030control_packet_intervals\030\371" + + "\347\346\356\001 \003(\0132(.google.cloud.compute.v1.Packe" + + "tIntervals\022!\n\020local_diagnostic\030\373\241\220\335\001 \001(\t" + + "H\003\210\001\001\022\033\n\013local_state\030\275\225\222G \001(\tH\004\210\001\001\0227\n\'ne" + + "gotiated_local_control_tx_interval_ms\030\224\321" + + "\260\n \001(\rH\005\210\001\001\022>\n\trx_packet\030\241\201\353\360\001 \001(\0132\".goo" + + "gle.cloud.compute.v1.BfdPacketH\006\210\001\001\022=\n\tt" + + "x_packet\030\243\275\2165 \001(\0132\".google.cloud.compute" + + ".v1.BfdPacketH\007\210\001\001\022\031\n\tuptime_ms\030\335\332\345; \001(\003" + + "H\010\210\001\001\"\200\001\n\034BfdSessionInitializationMode\022-" + + "\n)UNDEFINED_BFD_SESSION_INITIALIZATION_M" + + "ODE\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\001\"\351\002\n\017LocalDiagnostic\022\036\n\032" + + "UNDEFINED_LOCAL_DIAGNOSTIC\020\000\022\034\n\025ADMINIST" + + "RATIVELY_DOWN\020\246\216\203:\022\035\n\026CONCATENATED_PATH_" + + "DOWN\020\214\251\276\014\022%\n\036CONTROL_DETECTION_TIME_EXPI" + + "RED\020\357\370\314@\022\035\n\026DIAGNOSTIC_UNSPECIFIED\020\377\204\200\034\022" + + "\033\n\024ECHO_FUNCTION_FAILED\020\352\330\235i\022\035\n\026FORWARDI" + + "NG_PLANE_RESET\020\252\256\263\t\022&\n\036NEIGHBOR_SIGNALED" + + "_SESSION_DOWN\020\266\376\270\262\001\022\024\n\rNO_DIAGNOSTIC\020\345\301\214" + + "j\022\021\n\tPATH_DOWN\020\374\220\311\212\001\022&\n\036REVERSE_CONCATEN" + + "ATED_PATH_DOWN\020\251\265\310\344\001\"x\n\nLocalState\022\031\n\025UN" + + "DEFINED_LOCAL_STATE\020\000\022\021\n\nADMIN_DOWN\020\262\337\245=" + + "\022\013\n\004DOWN\020\242\271\200\001\022\013\n\004INIT\020\220\272\211\001\022\031\n\021STATE_UNSP" + + "ECIFIED\020\311\320\274\340\001\022\007\n\002UP\020\233\025B\"\n _bfd_session_i" + + "nitialization_modeB!\n\037_config_update_tim" + + "estamp_microsB\030\n\026_control_packet_countsB" + + "\023\n\021_local_diagnosticB\016\n\014_local_stateB*\n(" + + "_negotiated_local_control_tx_interval_ms" + + "B\014\n\n_rx_packetB\014\n\n_tx_packetB\014\n\n_uptime_" + + "ms\"\315\001\n\025BfdStatusPacketCounts\022\026\n\006num_rx\030\237" + + "\243\343\022 \001(\rH\000\210\001\001\022 \n\017num_rx_rejected\030\236\256\377\205\001 \001(" + + "\rH\001\210\001\001\022\"\n\021num_rx_successful\030\272\212\221\331\001 \001(\rH\002\210" + + "\001\001\022\026\n\006num_tx\030\335\243\343\022 \001(\rH\003\210\001\001B\t\n\007_num_rxB\022\n" + + "\020_num_rx_rejectedB\024\n\022_num_rx_successfulB" + + "\t\n\007_num_tx\"\261\001\n\007Binding\022\033\n\nbinding_id\030\225\362\251" + + "\322\001 \001(\tH\000\210\001\001\0228\n\tcondition\030\233\332\245e \001(\0132\035.goog" + + "le.cloud.compute.v1.ExprH\001\210\001\001\022\023\n\007members" + + "\030\231\222\273\304\001 \003(\t\022\024\n\004role\030\366\200\326\001 \001(\tH\002\210\001\001B\r\n\013_bin" + + "ding_idB\014\n\n_conditionB\007\n\005_role\"\350\001\n\025BulkI" + + "nsertDiskRequest\022d\n\"bulk_insert_disk_res" + + "ource_resource\030\326\371\227\212\001 \001(\0132/.google.cloud." + + "compute.v1.BulkInsertDiskResourceB\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\"m\n\026BulkInsertD" + + "iskResource\022/\n\037source_consistency_group_" + + "policy\030\335\242\255\t \001(\tH\000\210\001\001B\"\n _source_consiste" + + "ncy_group_policy\"\363\001\n\031BulkInsertInstanceR" + "equest\022k\n&bulk_insert_instance_resource_" + "resource\030\316\302\340\023 \001(\01323.google.cloud.compute" + ".v1.BulkInsertInstanceResourceB\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\"U\n\025CacheInval" - + "idationRule\022\024\n\004host\030\250\353\303\001 \001(\tH\000\210\001\001\022\024\n\004pat" - + "h\030\245\310\321\001 \001(\tH\001\210\001\001B\007\n\005_hostB\007\n\005_path\"\302\002\n\016Ca" - + "cheKeyPolicy\022\035\n\014include_host\030\337\205\224\350\001 \001(\010H\000" - + "\210\001\001\022\037\n\024include_http_headers\030\206\372\227\001 \003(\t\022 \n\025" - + "include_named_cookies\030\262\260\321) \003(\t\022!\n\020includ" - + "e_protocol\030\317\320\334\220\001 \001(\010H\001\210\001\001\022%\n\024include_que" - + "ry_string\030\237\363\204\342\001 \001(\010H\002\210\001\001\022\"\n\026query_string" - + "_blacklist\030\206\252\241\251\001 \003(\t\022!\n\026query_string_whi" - + "telist\030\260\330\201\031 \003(\tB\017\n\r_include_hostB\023\n\021_inc" - + "lude_protocolB\027\n\025_include_query_string\"\343" - + "\001\n.CancelInstanceGroupManagerResizeReque" - + "stRequest\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\007pro" - + "ject\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\036\n\016resi" - + "ze_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\"\260\002\n\017Circuit" - + "Breakers\022\037\n\017max_connections\030\372\325\3414 \001(\005H\000\210\001" - + "\001\022%\n\024max_pending_requests\030\347\245\212\263\001 \001(\005H\001\210\001\001" - + "\022\034\n\014max_requests\030\277\370\262\r \001(\005H\002\210\001\001\022,\n\033max_re" - + "quests_per_connection\030\300\226\270\254\001 \001(\005H\003\210\001\001\022\033\n\013" - + "max_retries\030\353\242\276\032 \001(\005H\004\210\001\001B\022\n\020_max_connec" - + "tionsB\027\n\025_max_pending_requestsB\017\n\r_max_r" - + "equestsB\036\n\034_max_requests_per_connectionB" - + "\016\n\014_max_retries\"\261\001\n\037CloneRulesFirewallPo" - + "licyRequest\022 \n\017firewall_policy\030\321\212\306\355\001 \001(\t" - + "B\003\340A\002\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022&\n\026sou" - + "rce_firewall_policy\030\255\332\366\013 \001(\tH\001\210\001\001B\r\n\013_re" - + "quest_idB\031\n\027_source_firewall_policy\"\333\001\n&" - + "CloneRulesNetworkFirewallPolicyRequest\022 " - + "\n\017firewall_policy\030\321\212\306\355\001 \001(\tB\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&\n\026source_firewall_polic" - + "y\030\255\332\366\013 \001(\tH\001\210\001\001B\r\n\013_request_idB\031\n\027_sourc" - + "e_firewall_policy\"\202\002\n,CloneRulesRegionNe" - + "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\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\"\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" - + "\326\311\001 \001(\tH\004\210\001\001\022\036\n\rend_timestamp\030\262\255\232\337\001 \001(\tH" - + "\005\210\001\001\022!\n\025existing_reservations\030\333\210\214\353\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" - + "U\n\020license_resource\030\314\324\352\320\001 \001(\01322.google.c" - + "loud.compute.v1.LicenseResourceCommitmen", - "tH\010\210\001\001\022#\n\030merge_source_commitments\030\301\252\330Y " - + "\003(\t\022\024\n\004name\030\213\365\315\001 \001(\tH\t\210\001\001\022\024\n\004plan\030\251\226\322\001 \001" - + "(\tH\n\210\001\001\022\026\n\006region\030\364\315\240B \001(\tH\013\210\001\001\022>\n\014reser" - + "vations\030\247\354\314\276\001 \003(\0132$.google.cloud.compute" - + ".v1.Reservation\022R\n\017resource_status\030\303\372\367v " - + "\001(\01321.google.cloud.compute.v1.Commitment" - + "ResourceStatusH\014\210\001\001\022A\n\tresources\030\245\374\262N \003(" - + "\0132+.google.cloud.compute.v1.ResourceComm" - + "itment\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\r\210\001\001\022(\n\027sp" - + "lit_source_commitment\030\324\267\375\277\001 \001(\tH\016\210\001\001\022\037\n\017" - + "start_timestamp\030\371\252\361\' \001(\tH\017\210\001\001\022\026\n\006status\030" - + "\362\237\267V \001(\tH\020\210\001\001\022\037\n\016status_message\030\272\311\351\215\001 \001(" - + "\tH\021\210\001\001\022\024\n\004type\030\272\236\332\001 \001(\tH\022\210\001\001\"b\n\010Category" - + "\022\026\n\022UNDEFINED_CATEGORY\020\000\022\034\n\024CATEGORY_UNS" - + "PECIFIED\020\326\272\346\362\001\022\017\n\007LICENSE\020\241\240\360\245\001\022\017\n\007MACHI" - + "NE\020\247\240\363\337\001\"Y\n\004Plan\022\022\n\016UNDEFINED_PLAN\020\000\022\017\n\007" - + "INVALID\020\327\373\355\374\001\022\027\n\020THIRTY_SIX_MONTH\020\206\265\375~\022\023" - + "\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\"\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" - + "MPUTE_OPTIMIZED\020\337\355\300K\022\035\n\025COMPUTE_OPTIMIZE" - + "D_C2D\020\365\300\337\266\001\022\034\n\024COMPUTE_OPTIMIZED_C3\020\260\253\213\314" - + "\001\022\035\n\025COMPUTE_OPTIMIZED_C3D\020\224\301\337\266\001\022\034\n\024COMP" - + "UTE_OPTIMIZED_H3\020\313\254\213\314\001\022\027\n\017GENERAL_PURPOS" - + "E\020\207\371\371\216\001\022\032\n\022GENERAL_PURPOSE_C4\020\211\236\373\217\001\022\032\n\023G" - + "ENERAL_PURPOSE_C4A\020\330\244\354n\022\032\n\022GENERAL_PURPO" - + "SE_E2\020\305\236\373\217\001\022\032\n\022GENERAL_PURPOSE_N2\020\334\240\373\217\001\022" - + "\032\n\023GENERAL_PURPOSE_N2D\020\350\366\354n\022\032\n\022GENERAL_P" - + "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\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\"\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" + + "\362G\004zoneB\r\n\013_request_id\"\245\005\n\032BulkInsertIns" + + "tanceResource\022\025\n\005count\030\217\242\235- \001(\003H\000\210\001\001\022P\n\023" + + "instance_properties\030\235\236\330f \001(\0132+.google.cl" + + "oud.compute.v1.InstancePropertiesH\001\210\001\001\022I" + + "\n\017location_policy\030\374\271\207\336\001 \001(\0132\'.google.clo" + + "ud.compute.v1.LocationPolicyH\002\210\001\001\022\032\n\tmin" + + "_count\030\342\251\277\371\001 \001(\003H\003\210\001\001\022\035\n\014name_pattern\030\334\243" + + "\251\305\001 \001(\tH\004\210\001\001\022r\n\027per_instance_properties\030" + + "\373\271\3363 \003(\0132N.google.cloud.compute.v1.BulkI" + + "nsertInstanceResource.PerInstancePropert" + + "iesEntry\022)\n\030source_instance_template\030\300\303\301" + + "\236\001 \001(\tH\005\210\001\001\032\206\001\n\032PerInstancePropertiesEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022W\n\005value\030\002 \001(\0132H.google." + + "cloud.compute.v1.BulkInsertInstanceResou" + + "rcePerInstanceProperties:\0028\001B\010\n\006_countB\026" + + "\n\024_instance_propertiesB\022\n\020_location_poli" + + "cyB\014\n\n_min_countB\017\n\r_name_patternB\033\n\031_so" + + "urce_instance_template\"w\n/BulkInsertInst" + + "anceResourcePerInstanceProperties\022\030\n\010hos" + + "tname\030\263\270\205q \001(\tH\000\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\001\210\001" + + "\001B\013\n\t_hostnameB\007\n\005_name\"\234\003\n\031BulkInsertOp" + + "erationStatus\022!\n\020created_vm_count\030\376\251\242\275\001 " + + "\001(\005H\000\210\001\001\022!\n\020deleted_vm_count\030\355\325\312\201\001 \001(\005H\001" + + "\210\001\001\022)\n\031failed_to_create_vm_count\030\350\275\353\033 \001(" + + "\005H\002\210\001\001\022\026\n\006status\030\362\237\267V \001(\tH\003\210\001\001\022 \n\017target" + + "_vm_count\030\365\240\222\376\001 \001(\005H\004\210\001\001\"m\n\006Status\022\024\n\020UN" + + "DEFINED_STATUS\020\000\022\020\n\010CREATING\020\271\275\235\331\001\022\013\n\004DO" + + "NE\020\202\267\200\001\022\023\n\014ROLLING_BACK\020\301\235\331{\022\031\n\022STATUS_U" + + "NSPECIFIED\020\312\314\213\024B\023\n\021_created_vm_countB\023\n\021" + + "_deleted_vm_countB\034\n\032_failed_to_create_v" + + "m_countB\t\n\007_statusB\022\n\020_target_vm_count\"\362" + + "\001\n\033BulkInsertRegionDiskRequest\022d\n\"bulk_i" + + "nsert_disk_resource_resource\030\326\371\227\212\001 \001(\0132/" + + ".google.cloud.compute.v1.BulkInsertDiskR" + + "esourceB\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\"\375\001\n\037BulkInsertRegionInstanceRequest\022" + + "k\n&bulk_insert_instance_resource_resourc" + + "e\030\316\302\340\023 \001(\01323.google.cloud.compute.v1.Bul" + + "kInsertInstanceResourceB\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\"U\n\025CacheInvalidation" + + "Rule\022\024\n\004host\030\250\353\303\001 \001(\tH\000\210\001\001\022\024\n\004path\030\245\310\321\001 " + + "\001(\tH\001\210\001\001B\007\n\005_hostB\007\n\005_path\"\302\002\n\016CacheKeyP" + + "olicy\022\035\n\014include_host\030\337\205\224\350\001 \001(\010H\000\210\001\001\022\037\n\024" + + "include_http_headers\030\206\372\227\001 \003(\t\022 \n\025include" + + "_named_cookies\030\262\260\321) \003(\t\022!\n\020include_proto" + + "col\030\317\320\334\220\001 \001(\010H\001\210\001\001\022%\n\024include_query_stri" + + "ng\030\237\363\204\342\001 \001(\010H\002\210\001\001\022\"\n\026query_string_blackl" + + "ist\030\206\252\241\251\001 \003(\t\022!\n\026query_string_whitelist\030" + + "\260\330\201\031 \003(\tB\017\n\r_include_hostB\023\n\021_include_pr" + + "otocolB\027\n\025_include_query_string\"\343\001\n.Canc" + + "elInstanceGroupManagerResizeRequestReque" + + "st\022&\n\026instance_group_manager\030\303\367\363v \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\022\036\n\016resize_requ" + + "est\030\204\204\271g \001(\tB\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\"\260\002\n\017CircuitBreaker" + + "s\022\037\n\017max_connections\030\372\325\3414 \001(\005H\000\210\001\001\022%\n\024ma" + + "x_pending_requests\030\347\245\212\263\001 \001(\005H\001\210\001\001\022\034\n\014max" + + "_requests\030\277\370\262\r \001(\005H\002\210\001\001\022,\n\033max_requests_" + + "per_connection\030\300\226\270\254\001 \001(\005H\003\210\001\001\022\033\n\013max_ret" + + "ries\030\353\242\276\032 \001(\005H\004\210\001\001B\022\n\020_max_connectionsB\027" + + "\n\025_max_pending_requestsB\017\n\r_max_requests" + + "B\036\n\034_max_requests_per_connectionB\016\n\014_max" + + "_retries\"\261\001\n\037CloneRulesFirewallPolicyReq" + + "uest\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\001\022&\n\026source_fir" + + "ewall_policy\030\255\332\366\013 \001(\tH\001\210\001\001B\r\n\013_request_i" + + "dB\031\n\027_source_firewall_policy\"\333\001\n&CloneRu" + + "lesNetworkFirewallPolicyRequest\022 \n\017firew" + + "all_policy\030\321\212\306\355\001 \001(\tB\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&\n\026source_firewall_policy\030\255\332\366\013 " + + "\001(\tH\001\210\001\001B\r\n\013_request_idB\031\n\027_source_firew" + + "all_policy\"\202\002\n,CloneRulesRegionNetworkFi" + + "rewallPolicyRequest\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\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\022&\n\026source_", + "firewall_policy\030\255\332\366\013 \001(\tH\001\210\001\001B\r\n\013_reques" + + "t_idB\031\n\027_source_firewall_policy\"\250\021\n\nComm" + + "itment\022\033\n\nauto_renew\030\375\227\244\354\001 \001(\010H\000\210\001\001\022\030\n\010c" + + "ategory\030\376\371\212\030 \001(\tH\001\210\001\001\022\"\n\022creation_timest" + + "amp\030\266\217\307\016 \001(\tH\002\210\001\001\022$\n\024custom_end_timestam" + + "p\030\344\264\326V \001(\tH\003\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\t" + + "H\004\210\001\001\022\036\n\rend_timestamp\030\262\255\232\337\001 \001(\tH\005\210\001\001\022!\n" + + "\025existing_reservations\030\333\210\214\353\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\022U\n\020lice" + + "nse_resource\030\314\324\352\320\001 \001(\01322.google.cloud.co" + + "mpute.v1.LicenseResourceCommitmentH\010\210\001\001\022" + + "#\n\030merge_source_commitments\030\301\252\330Y \003(\t\022\024\n\004" + + "name\030\213\365\315\001 \001(\tH\t\210\001\001\022\024\n\004plan\030\251\226\322\001 \001(\tH\n\210\001\001" + + "\022\026\n\006region\030\364\315\240B \001(\tH\013\210\001\001\022>\n\014reservations" + + "\030\247\354\314\276\001 \003(\0132$.google.cloud.compute.v1.Res" + + "ervation\022R\n\017resource_status\030\303\372\367v \001(\01321.g" + + "oogle.cloud.compute.v1.CommitmentResourc" + + "eStatusH\014\210\001\001\022A\n\tresources\030\245\374\262N \003(\0132+.goo" + + "gle.cloud.compute.v1.ResourceCommitment\022" + + "\032\n\tself_link\030\215\222\305\331\001 \001(\tH\r\210\001\001\022(\n\027split_sou" + + "rce_commitment\030\324\267\375\277\001 \001(\tH\016\210\001\001\022\037\n\017start_t" + + "imestamp\030\371\252\361\' \001(\tH\017\210\001\001\022\026\n\006status\030\362\237\267V \001(" + + "\tH\020\210\001\001\022\037\n\016status_message\030\272\311\351\215\001 \001(\tH\021\210\001\001\022" + + "\024\n\004type\030\272\236\332\001 \001(\tH\022\210\001\001\"b\n\010Category\022\026\n\022UND" + + "EFINED_CATEGORY\020\000\022\034\n\024CATEGORY_UNSPECIFIE" + + "D\020\326\272\346\362\001\022\017\n\007LICENSE\020\241\240\360\245\001\022\017\n\007MACHINE\020\247\240\363\337" + + "\001\"Y\n\004Plan\022\022\n\016UNDEFINED_PLAN\020\000\022\017\n\007INVALID" + + "\020\327\373\355\374\001\022\027\n\020THIRTY_SIX_MONTH\020\206\265\375~\022\023\n\014TWELV" + + "E_MONTH\020\272\232\304R\"z\n\006Status\022\024\n\020UNDEFINED_STAT" + + "US\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\"\336\005\n\004Type\022\022\n\016UNDEFINED_T" + + "YPE\020\000\022\035\n\025ACCELERATOR_OPTIMIZED\020\223\320\365\205\001\022\037\n\030" + + "ACCELERATOR_OPTIMIZED_A3\020\276\317\316K\022$\n\035ACCELER" + + "ATOR_OPTIMIZED_A3_MEGA\020\323\210\321J\022\030\n\021COMPUTE_O" + + "PTIMIZED\020\337\355\300K\022\035\n\025COMPUTE_OPTIMIZED_C2D\020\365" + + "\300\337\266\001\022\034\n\024COMPUTE_OPTIMIZED_C3\020\260\253\213\314\001\022\035\n\025CO" + + "MPUTE_OPTIMIZED_C3D\020\224\301\337\266\001\022\034\n\024COMPUTE_OPT" + + "IMIZED_H3\020\313\254\213\314\001\022\027\n\017GENERAL_PURPOSE\020\207\371\371\216\001" + + "\022\032\n\022GENERAL_PURPOSE_C4\020\211\236\373\217\001\022\032\n\023GENERAL_" + + "PURPOSE_C4A\020\330\244\354n\022\032\n\022GENERAL_PURPOSE_E2\020\305" + + "\236\373\217\001\022\032\n\022GENERAL_PURPOSE_N2\020\334\240\373\217\001\022\032\n\023GENE" + + "RAL_PURPOSE_N2D\020\350\366\354n\022\032\n\022GENERAL_PURPOSE_" + + "N4\020\336\240\373\217\001\022\032\n\023GENERAL_PURPOSE_T2D\020\356\243\355n\022\031\n\022" + + "GRAPHICS_OPTIMIZED\020\323\370\324 \022\030\n\020MEMORY_OPTIMI" + + "ZED\020\311\356\254\206\001\022\033\n\023MEMORY_OPTIMIZED_M3\020\274\214\340\203\001\022\037" + + "\n\030MEMORY_OPTIMIZED_X4_16TB\020\340\357\246W\022\037\n\030MEMOR" + + "Y_OPTIMIZED_X4_24TB\020\275\311\250W\022\037\n\030MEMORY_OPTIM" + + "IZED_X4_32TB\020\232\243\252W\022\034\n\024STORAGE_OPTIMIZED_Z" + + "3\020\265\331\207\227\001\022\030\n\020TYPE_UNSPECIFIED\020\222\373\333\320\001B\r\n\013_au" + + "to_renewB\013\n\t_categoryB\025\n\023_creation_times" + + "tampB\027\n\025_custom_end_timestampB\016\n\014_descri" + + "ptionB\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_l" + + "inkB\032\n\030_split_source_commitmentB\022\n\020_star" + + "t_timestampB\t\n\007_statusB\021\n\017_status_messag" + + "eB\007\n\005_type\"\277\003\n\030CommitmentAggregatedList\022" + + "\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022N\n\005items\030\300\317\367/ \003(\0132<.go" + + "ogle.cloud.compute.v1.CommitmentAggregat" + + "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.CommitmentsScopedList:\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\"\245\002\n\016CommitmentList\022" + + "\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0225\n\005items\030\300\317\367/ \003(\0132#.go" + + "ogle.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\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\"|\n\030" + + "CommitmentResourceStatus\0226\n%custom_term_" + + "eligibility_end_timestamp\030\373\253\307\255\001 \001(\tH\000\210\001\001" + + "B(\n&_custom_term_eligibility_end_timesta" + + "mp\"\234\001\n\025CommitmentsScopedList\022<\n\013commitme" + + "nts\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.compute.v1.WarningH\000\210\001\001B\n\n\010_warnin" + + "g\"\320\002\n\032ConfidentialInstanceConfig\022*\n\032conf" + + "idential_instance_type\030\255\214\336\024 \001(\tH\000\210\001\001\022+\n\033" + + "enable_confidential_compute\030\274\353\3310 \001(\010H\001\210\001" + + "\001\"\231\001\n\030ConfidentialInstanceType\022(\n$UNDEFI" + + "NED_CONFIDENTIAL_INSTANCE_TYPE\020\000\022-\n&CONF" + + "IDENTIAL_INSTANCE_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_confidential_instance_typeB\036\n\034_enable_" + + "confidential_compute\"S\n\022ConnectionDraini" + + "ng\022$\n\024draining_timeout_sec\030\236\325\254k \001(\005H\000\210\001\001" + + "B\027\n\025_draining_timeout_sec\"\210\002\n\"Consistent" + + "HashLoadBalancerSettings\022b\n\013http_cookie\030" + + "\373\253\227\003 \001(\0132E.google.cloud.compute.v1.Consi" + + "stentHashLoadBalancerSettingsHttpCookieH" + + "\000\210\001\001\022 \n\020http_header_name\030\306\367\372o \001(\tH\001\210\001\001\022!" + + "\n\021minimum_ring_size\030\277\273\341o \001(\003H\002\210\001\001B\016\n\014_ht" + + "tp_cookieB\023\n\021_http_header_nameB\024\n\022_minim" + + "um_ring_size\"\253\001\n,ConsistentHashLoadBalan" + + "cerSettingsHttpCookie\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(\013" + + "2!.google.cloud.compute.v1.DurationH\002\210\001\001" + + "B\007\n\005_nameB\007\n\005_pathB\006\n\004_ttl\"\236\002\n\nCorsPolic" + + "y\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\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_age\030\244\367\323\222\001 \001(\005H\002\210\001\001B\024\n\022_allow_c" + + "redentialsB\013\n\t_disabledB\n\n\010_max_age\"\321\002\n*" + + "CreateInstancesInstanceGroupManagerReque" + + "st\022&\n\026instance_group_manager\030\303\367\363v \001(\tB\003\340" + + "A\002\022\217\001\n9instance_group_managers_create_in" + + "stances_request_resource\030\223\372\332\013 \001(\0132D.goog" + + "le.cloud.compute.v1.InstanceGroupManager" + + "sCreateInstancesRequestB\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\"\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\"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\"\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\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\"\351\002\n0Delet" - + "eInstancesRegionInstanceGroupManagerRequ" - + "est\022&\n\026instance_group_manager\030\303\367\363v \001(\tB\003" + + "\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\"\351\002\n0CreateInstancesRegio" + + "nInstanceGroupManagerRequest\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@region_instance_gro" + + "up_managers_create_instances_request_res" + + "ource\030\210\277\230\253\001 \001(\0132J.google.cloud.compute.v" + + "1.RegionInstanceGroupManagersCreateInsta" + + "ncesRequestB\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\031CreateSnapshotDi" + + "skRequest\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!.go" + + "ogle.cloud.compute.v1.SnapshotB\003\340A\002\022\033\n\004z" + + "one\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\016\n\014_guest_flush" + + "B\r\n\013_request_id\"\355\001\n\037CreateSnapshotRegion" + + "DiskRequest\022\024\n\004disk\030\235\233\274\001 \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\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(\013" + + "2!.google.cloud.compute.v1.SnapshotB\003\340A\002" + + "B\r\n\013_request_id\"\270\001\n\031CustomErrorResponseP" + + "olicy\022j\n\024error_response_rules\030\220\255\374\006 \003(\0132I" + + ".google.cloud.compute.v1.CustomErrorResp" + + "onsePolicyCustomErrorResponseRule\022\035\n\rerr" + + "or_service\030\376\356\246N \001(\tH\000\210\001\001B\020\n\016_error_servi" + + "ce\"\266\001\n0CustomErrorResponsePolicyCustomEr" + + "rorResponseRule\022\037\n\024match_response_codes\030" + + "\342\210\2072 \003(\t\022\'\n\026override_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_over" + + "ride_response_codeB\007\n\005_path\"\217\002\n\025Customer" + + "EncryptionKey\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(\t" + + "H\001\210\001\001\022\030\n\007raw_key\030\310\343\230\326\001 \001(\tH\002\210\001\001\022\"\n\021rsa_e" + + "ncrypted_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_accountB\n\n\010_raw_keyB\024\n\022_rsa_enc" + + "rypted_keyB\t\n\007_sha256\"\265\001\n\"CustomerEncryp" + + "tionKeyProtectedDisk\022T\n\023disk_encryption_" + + "key\030\205\355\304\201\001 \001(\0132..google.cloud.compute.v1." + + "CustomerEncryptionKeyH\000\210\001\001\022\026\n\006source\030\233\320\301" + + "T \001(\tH\001\210\001\001B\026\n\024_disk_encryption_keyB\t\n\007_s" + + "ource\"C\n\004Data\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\"\353\001\n!D" + + "eleteAccessConfigInstanceRequest\022\035\n\racce" + + "ss_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(\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\"\237\001\n\024Del" + + "eteAddressRequest\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\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" + + "\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\"\241\001\n\027D" + + "eleteAutoscalerRequest\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\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\"\212" + + "\001\n\032DeleteBackendBucketRequest\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\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\033DeleteBackendSer" + + "viceRequest\022 \n\017backend_service\030\212\300\256\222\001 \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\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\362G\007proje" + + "ct\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\"\225\001\n\037D" + + "eleteExternalVpnGatewayRequest\022$\n\024extern" + + "al_vpn_gateway\030\205\327\2634 \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\033DeleteFire" + + "wallPolicyRequest\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\033DeleteForw" + + "ardingRuleRequest\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\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" + + "id\"\204\001\n\032DeleteGlobalAddressRequest\022\030\n\007add" + + "ress\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!DeleteGlobalForwar" + + "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\001B\r\n\013_req" + + "uest_id\"\240\001\n\'DeleteGlobalNetworkEndpointG" + + "roupRequest\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\007" + + "project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_" + + "request_id\"R\n\034DeleteGlobalOperationReque" + + "st\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\"\037\n\035DeleteGlobalOperationR" + + "esponse\"o\n(DeleteGlobalOrganizationOpera" + + "tionRequest\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)DeleteGlobalOrganizationOperationRes" + + "ponse\"\242\001\n)DeleteGlobalPublicDelegatedPre" + + "fixeRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007p" + + "roject\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\030DeleteHealthCheckRequest\022" + + "\035\n\014health_check\030\345\252\244\223\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\"y\n\022DeleteIm" + + "ageRequest\022\025\n\005image\030\333\322\352/ \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\"\266\001\n!Dele" + + "teInstanceGroupManagerRequest\022&\n\026instanc" + + "e_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\032\n\nrequest_id\030\313" - + "\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" + + "\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\"\343\001\n.DeleteInstanceGroup" + + "ManagerResizeRequestRequest\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\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\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\"\247\001\n\032DeleteInstanceGroupRequest\022\036\n" + + "\016instance_group\030\325\324\325& \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" + + "eB\r\n\013_request_id\"\234\001\n\025DeleteInstanceReque" + + "st\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\004zone" + + "B\r\n\013_request_id\"\221\001\n\035DeleteInstanceTempla" + + "teRequest\022\"\n\021instance_template\030\344\201\273\223\001 \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\001B\r\n\013_request" + + "_id\"\321\002\n*DeleteInstancesInstanceGroupMana" + + "gerRequest\022&\n\026instance_group_manager\030\303\367\363" + + "v \001(\tB\003\340A\002\022\217\001\n9instance_group_managers_d" + + "elete_instances_request_resource\030\204\306\255O \001(" + + "\0132D.google.cloud.compute.v1.InstanceGrou" + + "pManagersDeleteInstancesRequestB\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\"\351\002\n0DeleteInstan" + + "cesRegionInstanceGroupManagerRequest\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\037\n\006regio" + + "n\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022\235\001\n@region_inst" + + "ance_group_managers_delete_instances_req" + + "uest_resource\030\371\212\353\356\001 \001(\0132J.google.cloud.c" + + "ompute.v1.RegionInstanceGroupManagersDel" + + "eteInstancesRequestB\003\340A\002\022\032\n\nrequest_id\030\313" + + "\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\254\001\n\034DeleteIn" + + "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" + + "\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#DeleteInterconnectAttachmentReque" + + "st\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\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\001B\r\n\013_request_id\"\207\001\n\031" + + "DeleteInterconnectRequest\022\034\n\014interconnec" + + "t\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_id\"}\n\024DeleteLicenseRequest\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(\t" + + "H\000\210\001\001B\r\n\013_request_id\"\210\001\n\031DeleteMachineIm" + + "ageRequest\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\007project\022\032\n\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"" + + "\263\001\n\036DeleteNetworkAttachmentRequest\022\"\n\022ne" + + "twork_attachment\030\324\227\217k \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\"\307\001\n\'DeleteNetworkE" + + "dgeSecurityServiceRequest\022-\n\035network_edg" + + "e_security_service\030\247\237\357J \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\"\267\001\n!DeleteNetwor" + + "kEndpointGroupRequest\022\'\n\026network_endpoin" + + "t_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(\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\"\224\001\n\"DeleteNetworkFirewallPolic" + + "yRequest\022 \n\017firewall_policy\030\321\212\306\355\001 \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\001B\r\n\013_request_id" + + "\"}\n\024DeleteNetworkRequest\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\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\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\"\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" + + "uest_id\"\240\001\n\026DeleteNodeGroupRequest\022\033\n\nno" + + "de_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\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\"\252\001\n\031DeleteNodeTemplateRequest" + + "\022\036\n\rnode_template\030\227\344\213\232\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\"\227\002\n\033DeleteNodesN" + + "odeGroupRequest\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.comput" + + "e.v1.NodeGroupsDeleteNodesRequestB\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\"\257\001\n\034DeletePack" + + "etMirroringRequest\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\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\"\274\002\n3DeletePerInstanceConfigsInstance" + + "GroupManagerRequest\022&\n\026instance_group_ma" + + "nager\030\303\367\363v \001(\tB\003\340A\002\022\234\001\n@instance_group_m" + + "anagers_delete_per_instance_configs_req_" + + "resource\030\240\352\350\254\001 \001(\0132I.google.cloud.comput" + + "e.v1.InstanceGroupManagersDeletePerInsta" + + "nceConfigsReqB\003\340A\002\022!\n\007project\030\231\226\301l \001(\tB\r" + + "\340A\002\362G\007project\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zo" + + "ne\"\306\002\n9DeletePerInstanceConfigsRegionIns" + + "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\234\001\nAregion_instance_group_m" + + "anager_delete_instance_config_req_resour" + + "ce\030\205\233- \001(\0132J.google.cloud.compute.v1.Reg" + + "ionInstanceGroupManagerDeleteInstanceCon" + + "figReqB\003\340A\002\"\236\001\n$DeletePublicAdvertisedPr" + + "efixeRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007" + + "project\022(\n\030public_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#DeletePublicDelegatedPr" + + "efixeRequest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007" + + "project\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\006regio" + + "n\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_reques" + + "t_id\"\253\001\n\035DeleteRegionAutoscalerRequest\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\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\"\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" + + "\210\001\001B\r\n\013_request_id\"\264\001\n!DeleteRegionBacke" + + "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\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\"\236\001\n\027DeleteRegionDiskRequest\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\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\"\256\001\n\036DeleteRegionHealthCheckRequest\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\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%DeleteRegionHeal" + + "thCheckServiceRequest\022%\n\024health_check_se" + + "rvice\030\333\233\335\302\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" + + "_request_id\"\300\001\n\'DeleteRegionInstanceGrou" + + "pManagerRequest\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\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\"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\017security_policy\030\221\206\312Q \001(\tB\003\340A\002B\r\n\013_r" - + "equest_id\"\263\001\n!DeleteRegionSslCertificate" + + "est_id\"\270\001\n#DeleteRegionInstanceTemplateR" + + "equest\022\"\n\021instance_template\030\344\201\273\223\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\032\n\nreques" + + "t_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\266\001\n\"De" + + "leteRegionInstantSnapshotRequest\022!\n\020inst" + + "ant_snapshot\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\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\'DeleteRegionNetwo" + + "rkEndpointGroupRequest\022\'\n\026network_endpoi" + + "nt_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\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\"\273\001\n(DeleteRegionNetworkFi", + "rewallPolicyRequest\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\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\"\300\001\n\'DeleteRegionNotificationEndpoin" + + "tRequest\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\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\"" + + "j\n\034DeleteRegionOperationRequest\022\031\n\topera" + + "tion\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\"\037\n\035DeleteReg" + + "ionOperationResponse\"\263\001\n!DeleteRegionSec" + + "urityPolicyRequest\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\037\n\017se" + + "curity_policy\030\221\206\312Q \001(\tB\003\340A\002B\r\n\013_request_" + + "id\"\263\001\n!DeleteRegionSslCertificateRequest" + + "\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\037\n\017ssl_certificate\030\344\327\222\026" + + " \001(\tB\003\340A\002B\r\n\013_request_id\"\252\001\n\034DeleteRegio" + + "nSslPolicyRequest\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\022\033\n\nssl" + + "_policy\030\305\375\340\214\001 \001(\tB\003\340A\002B\r\n\013_request_id\"\266\001" + + "\n\"DeleteRegionTargetHttpProxyRequest\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\021target_http_proxy\030\345\276\322b \001" + + "(\tB\003\340A\002B\r\n\013_request_id\"\270\001\n#DeleteRegionT" + + "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\002B\r\n\013_r" + + "equest_id\"\265\001\n!DeleteRegionTargetTcpProxy" + "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\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\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\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" + + "equest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022!\n\020target_tcp_pr" + + "oxy\030\342\326\360\357\001 \001(\tB\003\340A\002B\r\n\013_request_id\"\244\001\n\031De" + + "leteRegionUrlMapRequest\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" + + "\030\n\007url_map\030\214\225\201\257\001 \001(\tB\003\340A\002B\r\n\013_request_id" + + "\"\242\001\n\030DeleteReservationRequest\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\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_reque" + + "st_id\"\255\001\n\033DeleteResourcePolicyRequest\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\001\022\037\n\017resource_policy\030\203\245\367K \001(" + + "\tB\003\340A\002B\r\n\013_request_id\"y\n\022DeleteRouteRequ" + + "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\025\n\005route\030\311\344\3523" + + " \001(\tB\003\340A\002B\r\n\013_request_id\"\234\001\n\023DeleteRoute" + + "rRequest\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" + + "request_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\033DeleteSecuri" + + "tyPolicyRequest\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\002B\r\n\013_requ" + + "est_id\"\264\001\n\036DeleteServiceAttachmentReques" + + "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\022#\n\022service_attachment\030" + + "\355\251\320\241\001 \001(\tB\003\340A\002B\r\n\013_request_id\"\261\001\n&Delete" + + "SignedUrlKeyBackendBucketRequest\022\036\n\016back" + + "end_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\007p" + + "roject\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_r" + + "equest_id\"\264\001\n\'DeleteSignedUrlKeyBackendS" + + "erviceRequest\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\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\"\200\001\n\025Del" + + "eteSnapshotRequest\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\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" + + "\001\022\031\n\010snapshot\030\304\253\353\207\001 \001(\tB\003\340A\002B\r\n\013_request" + + "_id\"\214\001\n\033DeleteSslCertificateRequest\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\037\n\017ssl_certificate\030\344\327" + + "\222\026 \001(\tB\003\340A\002B\r\n\013_request_id\"\203\001\n\026DeleteSsl" + + "PolicyRequest\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\n" + + "ssl_policy\030\305\375\340\214\001 \001(\tB\003\340A\002B\r\n\013_request_id" + + "\"\244\001\n\030DeleteStoragePoolRequest\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\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_req" + + "uest_id\"\245\001\n\027DeleteSubnetworkRequest\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\033\n\nsubnetwork\030\356\247\344\222\001 \001(\tB\003\340A\002" + + "B\r\n\013_request_id\"\217\001\n\034DeleteTargetGrpcProx" + + "yRequest\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\022!\n\021targe" + + "t_grpc_proxy\030\373\264\262\002 \001(\tB\003\340A\002B\r\n\013_request_i" + + "d\"\217\001\n\034DeleteTargetHttpProxyRequest\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!\n\021target_http_proxy\030\345" + + "\276\322b \001(\tB\003\340A\002B\r\n\013_request_id\"\221\001\n\035DeleteTa" + + "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\"\n\022target_https_proxy\030\354\260\372\030 \001(\tB\003\340A\002" + + "B\r\n\013_request_id\"\252\001\n\033DeleteTargetInstance" + + "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 \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\027DeleteT" + + "argetPoolRequest\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\001\022\033\n\013targ" + + "et_pool\030\212\344\370\035 \001(\tB\003\340A\002B\r\n\013_request_id\"\216\001\n" + + "\033DeleteTargetSslProxyRequest\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\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 " + + "\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\033DeleteTargetTc" + + "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!\n\020" + + "target_tcp_proxy\030\342\326\360\357\001 \001(\tB\003\340A\002B\r\n\013_requ" + + "est_id\"\263\001\n\035DeleteTargetVpnGatewayRequest" + + "\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\022target_vpn_gateway\030\313" + + "\200\366\375\001 \001(\tB\003\340A\002B\r\n\013_request_id\"}\n\023DeleteUr" + + "lMapRequest\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\030\n\007ur" + + "l_map\030\214\225\201\257\001 \001(\tB\003\340A\002B\r\n\013_request_id\"\246\001\n\027" + + "DeleteVpnGatewayRequest\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" + + "\034\n\013vpn_gateway\030\371\203\366\301\001 \001(\tB\003\340A\002B\r\n\013_reques" + + "t_id\"\243\001\n\026DeleteVpnTunnelRequest\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\032\n\nvpn_tunnel\030\223\224\312D \001(\tB\003\340A\002B\r\n\013_" + + "request_id\"f\n\032DeleteZoneOperationRequest" + + "\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\"\035\n\033De" + + "leteZoneOperationResponse\"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\025DeprecateImage" + + "Request\022X\n\033deprecation_status_resource\030\360" + + "\211\345\236\001 \001(\0132*.google.cloud.compute.v1.Depre" + + "cationStatusB\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\007project\022\032\n\nr" + + "equest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_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\010o" + + "bsolete\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\005S" + + "tate\022\023\n\017UNDEFINED_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_deprecate" + + "dB\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(\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\"\317\002\n7Det" + + "achNetworkEndpointsGlobalNetworkEndpoint" + + "GroupRequest\022\234\001\n@global_network_endpoint" + + "_groups_detach_endpoints_request_resourc" + + "e\030\335\215\237\004 \001(\0132J.google.cloud.compute.v1.Glo" + + "balNetworkEndpointGroupsDetachEndpointsR" + + "equestB\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\007" + + "project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_" + + "request_id\"\332\002\n1DetachNetworkEndpointsNet" + + "workEndpointGroupRequest\022\'\n\026network_endp" + + "oint_group\030\206\313\363\316\001 \001(\tB\003\340A\002\022\220\001\n9network_en" + + "dpoint_groups_detach_endpoints_request_r" + + "esource\030\371\240\356\365\001 \001(\0132D.google.cloud.compute" + + ".v1.NetworkEndpointGroupsDetachEndpoints" + + "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\"" - + "\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\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." + + "\361\002\n7DetachNetworkEndpointsRegionNetworkE" + + "ndpointGroupRequest\022\'\n\026network_endpoint_" + + "group\030\206\313\363\316\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\235\001\n@region_network_endpoint_gro" + + "ups_detach_endpoints_request_resource\030\356\345" + + "\253\225\001 \001(\0132J.google.cloud.compute.v1.Region" + + "NetworkEndpointGroupsDetachEndpointsRequ" + + "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\"l\n\034DisableXpnHostProjectRequ" + + "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\001B\r\n\013_request_i" + + "d\"\354\001\n DisableXpnResourceProjectRequest\022!" + + "\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022z\n.pro" + + "jects_disable_xpn_resource_request_resou" + + "rce\030\252\324\334c \001(\0132:.google.cloud.compute.v1.P" + + "rojectsDisableXpnResourceRequestB\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\014architecture\030\323\322\261\220\001 \001(\tH\001\210\001\001\022Q\n\022async_p" + + "rimary_disk\030\235\365\211V \001(\0132-.google.cloud.comp" + + "ute.v1.DiskAsyncReplicationH\002\210\001\001\022Y\n\025asyn" + + "c_secondary_disks\030\250\350\375\231\001 \003(\01326.google.clo" + + "ud.compute.v1.Disk.AsyncSecondaryDisksEn" + + "try\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\023disk_en" + + "cryption_key\030\205\355\304\201\001 \001(\0132..google.cloud.co" + + "mpute.v1.CustomerEncryptionKeyH\005\210\001\001\022+\n\033e" + + "nable_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\006labels\030\377\277\301" + + "\356\001 \003(\0132).google.cloud.compute.v1.Disk.La" + + "belsEntry\022%\n\025last_attach_timestamp\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\010lic" + + "enses\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\007options" + + "\030\236\215\232\254\001 \001(\tH\016\210\001\001\022;\n\006params\030\206\363\253% \001(\0132#.goo" + + "gle.cloud.compute.v1.DiskParamsH\017\210\001\001\022*\n\031" + + "physical_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\026pr" + + "ovisioned_throughput\030\225\276\210\373\001 \001(\003H\022\210\001\001\022\026\n\006r" + + "egion\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\021resource_policies\030\341\234\314\n \003(\t\022L\n\017r" + + "esource_status\030\303\372\367v \001(\0132+.google.cloud.c" + + "ompute.v1.DiskResourceStatusH\024\210\001\001\022\036\n\rsat" + + "isfies_pzi\030\241\335\253\345\001 \001(\010H\025\210\001\001\022\036\n\rsatisfies_p" + + "zs\030\253\335\253\345\001 \001(\010H\026\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\t" + + "H\027\210\001\001\022\030\n\007size_gb\030\331\213\200\354\001 \001(\003H\030\210\001\001\022/\n\037sourc" + + "e_consistency_group_policy\030\335\242\255\t \001(\tH\031\210\001\001" + + "\0222\n\"source_consistency_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\014s" + + "ource_image\030\267\350\206\030 \001(\tH\035\210\001\001\022\\\n\033source_imag" + + "e_encryption_key\030\253\221\365\265\001 \001(\0132..google.clou" + + "d.compute.v1.CustomerEncryptionKeyH\036\210\001\001\022" + + "\037\n\017source_image_id\030\243\374\260\032 \001(\tH\037\210\001\001\022\'\n\027sour" + + "ce_instant_snapshot\030\206\204\303h \001(\tH \210\001\001\022+\n\032sou" + + "rce_instant_snapshot_id\030\364\323\220\211\001 \001(\tH!\210\001\001\022\037" + + "\n\017source_snapshot\030\350\232\216< \001(\tH\"\210\001\001\022_\n\036sourc" + + "e_snapshot_encryption_key\030\332\216\347\220\001 \001(\0132..go" + + "ogle.cloud.compute.v1.CustomerEncryption" + + "KeyH#\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\220o \001(\tH%" + + "\210\001\001\022\026\n\006status\030\362\237\267V \001(\tH&\210\001\001\022\035\n\014storage_p" + + "ool\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\003key\030\001 \001(" + + "\t\022@\n\005value\030\002 \001(\01321.google.cloud.compute." + + "v1.DiskAsyncReplicationList:\0028\001\032-\n\013Label" + + "sEntry\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_WRITE_MAN" + + "Y\020\250\302\206\351\001\022\030\n\021READ_WRITE_SINGLE\020\321\231\256/\"j\n\014Arc" + + "hitecture\022\032\n\026UNDEFINED_ARCHITECTURE\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\020UNDE" + + "FINED_STATUS\020\000\022\020\n\010CREATING\020\271\275\235\331\001\022\020\n\010DELE" + + "TING\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\tRESTORING\020\253\247\342\300\001\022\023\n\013UNAVAILABLE\020\260\330\245\305\001" + + "B\016\n\014_access_modeB\017\n\r_architectureB\025\n\023_as" + + "ync_primary_diskB\025\n\023_creation_timestampB" + + "\016\n\014_descriptionB\026\n\024_disk_encryption_keyB" + + "\036\n\034_enable_confidential_computeB\005\n\003_idB\007" + + "\n\005_kindB\024\n\022_label_fingerprintB\030\n\026_last_a" + + "ttach_timestampB\030\n\026_last_detach_timestam" + + "pB\020\n\016_location_hintB\007\n\005_nameB\n\n\010_options" + + "B\t\n\007_paramsB\034\n\032_physical_block_size_byte" + + "sB\023\n\021_provisioned_iopsB\031\n\027_provisioned_t" + + "hroughputB\t\n\007_regionB\022\n\020_resource_status" + + "B\020\n\016_satisfies_pziB\020\n\016_satisfies_pzsB\014\n\n" + + "_self_linkB\n\n\010_size_gbB\"\n _source_consis" + + "tency_group_policyB%\n#_source_consistenc" + + "y_group_policy_idB\016\n\014_source_diskB\021\n\017_so" + + "urce_disk_idB\017\n\r_source_imageB\036\n\034_source" + + "_image_encryption_keyB\022\n\020_source_image_i" + + "dB\032\n\030_source_instant_snapshotB\035\n\033_source" + + "_instant_snapshot_idB\022\n\020_source_snapshot" + + "B!\n\037_source_snapshot_encryption_keyB\025\n\023_" + + "source_snapshot_idB\030\n\026_source_storage_ob" + + "jectB\t\n\007_statusB\017\n\r_storage_poolB\007\n\005_typ" + + "eB\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.google.c" + + "loud.compute.v1.DiskAggregatedList.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\032V\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022" + + "7\n\005value\030\002 \001(\0132(.google.cloud.compute.v1" + + ".DisksScopedList:\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\"\355\001\n\024DiskAsyncReplication\022\'\n\030consisten" + + "cy_group_policy\030\271\303y \001(\tH\000\210\001\001\022+\n\033consiste" + + "ncy_group_policy_id\030\341\222\276| \001(\tH\001\210\001\001\022\024\n\004dis" + + "k\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\001" + + "B\033\n\031_consistency_group_policyB\036\n\034_consis" + + "tency_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-.google.clou" + + "d.compute.v1.DiskAsyncReplicationH\000\210\001\001B\031" + + "\n\027_async_replication_disk\"\244\003\n\027DiskInstan" + + "tiationConfig\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\013dev" + + "ice_name\030\324\265\232 \001(\tH\002\210\001\001\022!\n\020instantiate_fr" + + "om\030\337\237\312\273\001 \001(\tH\003\210\001\001\"\306\001\n\017InstantiateFrom\022\036\n" + + "\032UNDEFINED_INSTANTIATE_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_INC" + + "LUDE\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_deleteB\017\n\r_c" + + "ustom_imageB\016\n\014_device_nameB\023\n\021_instanti" + + "ate_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_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\"u\n\017DiskMoveRequest\022 \n\020desti" + + "nation_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_m" + + "anager_tags\030\374\233\213\264\001 \003(\0132<.google.cloud.com" + + "pute.v1.DiskParams.ResourceManagerTagsEn" + + "try\032:\n\030ResourceManagerTagsEntry\022\013\n\003key\030\001" + + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\372\002\n\022DiskResource" + + "Status\022e\n\022async_primary_disk\030\235\365\211V \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\"\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" - + "\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" + + "usAsyncReplicationStatusH\000\210\001\001\022g\n\025async_s" + + "econdary_disks\030\250\350\375\231\001 \003(\0132D.google.cloud." + + "compute.v1.DiskResourceStatus.AsyncSecon" + + "daryDisksEntry\032}\n\030AsyncSecondaryDisksEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022P\n\005value\030\002 \001(\0132A.google." + + "cloud.compute.v1.DiskResourceStatusAsync" + + "ReplicationStatus:\0028\001B\025\n\023_async_primary_" + + "disk\"\332\001\n(DiskResourceStatusAsyncReplicat" + + "ionStatus\022\025\n\005state\030\221\211\2534 \001(\tH\000\210\001\001\"\214\001\n\005Sta" + + "te\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\021STA" + + "TE_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\010DiskType\022\"" + + "\n\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022%\n\024de" + + "fault_disk_size_gb\030\365\244\205\201\001 \001(\003H\001\210\001\001\022G\n\ndep" + + "recated\030\263\313\321\365\001 \001(\0132*.google.cloud.compute" + + ".v1.DeprecationStatusH\002\210\001\001\022\034\n\013descriptio" + + "n\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\004ki" + + "nd\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\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_d" + + "eprecatedB\016\n\014_descriptionB\005\n\003_idB\007\n\005_kin" + + "dB\007\n\005_nameB\t\n\007_regionB\014\n\n_self_linkB\022\n\020_" + + "valid_disk_sizeB\007\n\005_zone\"\271\003\n\026DiskTypeAgg" + + "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.DiskTy" + + "peAggregatedList.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.DiskTypesScopedLi" + + "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\"\241\002\n\014DiskTyp" + + "eList\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.DiskType\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" + + "\"\226\001\n\023DiskTypesScopedList\0228\n\ndisk_types\030\327" + + "\276\355^ \003(\0132!.google.cloud.compute.v1.DiskTy" + + "pe\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.co" + + "mpute.v1.WarningH\000\210\001\001B\n\n\010_warning\"?\n\037Dis" + + "ksAddResourcePoliciesRequest\022\034\n\021resource" + + "_policies\030\341\234\314\n \003(\t\"B\n\"DisksRemoveResourc" + + "ePoliciesRequest\022\034\n\021resource_policies\030\341\234" + + "\314\n \003(\t\":\n\022DisksResizeRequest\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\017DisksScop" + + "edList\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 .go" + + "ogle.cloud.compute.v1.WarningH\000\210\001\001B\n\n\010_w" + + "arning\"b\n!DisksStartAsyncReplicationRequ" + + "est\022$\n\024async_secondary_disk\030\253\203\343> \001(\tH\000\210\001" + + "\001B\027\n\025_async_secondary_disk\"]\n&DisksStopG" + + "roupAsyncReplicationResource\022\037\n\017resource" + + "_policy\030\203\245\367K \001(\tH\000\210\001\001B\022\n\020_resource_polic" + + "y\"B\n\rDisplayDevice\022\036\n\016enable_display\030\206\344\346" + + "\006 \001(\010H\000\210\001\001B\021\n\017_enable_display\"\201\002\n\022Distri" + + "butionPolicy\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.com" + + "pute.v1.DistributionPolicyZoneConfigurat" + + "ion\"k\n\013TargetShape\022\032\n\026UNDEFINED_TARGET_S" + + "HAPE\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\001\022\013\n\004EVEN\020\232\322\202\001B\017\n\r_tar" + + "get_shape\"D\n#DistributionPolicyZoneConfi", + "guration\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\007se" + + "conds\030\377\224\265\253\001 \001(\003H\001\210\001\001B\010\n\006_nanosB\n\n\010_secon" + + "ds\"k\n\033EnableXpnHostProjectRequest\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\"\352\001\n\037Enab" + + "leXpnResourceProjectRequest\022!\n\007project\030\231" + + "\226\301l \001(\tB\r\340A\002\362G\007project\022y\n-projects_enabl" + + "e_xpn_resource_request_resource\030\257\320\233\311\001 \001(" + + "\01329.google.cloud.compute.v1.ProjectsEnab" + + "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\"<\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_inf" + + "o\030\205\241\205\014 \001(\0132\".google.cloud.compute.v1.Err" + + "orInfoH\000\210\001\001\0223\n\004help\030\301\236\303\001 \001(\0132\035.google.cl" + + "oud.compute.v1.HelpH\001\210\001\001\022M\n\021localized_me" + + "ssage\030\303\376\362\300\001 \001(\0132).google.cloud.compute.v" + + "1.LocalizedMessageH\002\210\001\001\022F\n\nquota_info\030\225\324" + + "\344, \001(\0132*.google.cloud.compute.v1.QuotaEx" + + "ceededInfoH\003\210\001\001B\r\n\013_error_infoB\007\n\005_helpB" + + "\024\n\022_localized_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\tm" + + "etadatas\030\244\326\207\004 \003(\01321.google.cloud.compute" + + ".v1.ErrorInfo.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_re" + + "ason\"\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\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_locationB\n\n\010_message\"\335\002\n\025Excha" + + "ngedPeeringRoute\022\033\n\ndest_range\030\340\262\352\265\001 \001(\t" + + "H\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\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\004Typ" + + "e\022\022\n\016UNDEFINED_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_des" + + "t_rangeB\013\n\t_importedB\022\n\020_next_hop_region" + + "B\013\n\t_priorityB\007\n\005_type\"\274\002\n\032ExchangedPeer" + + "ingRoutesList\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.Exch" + + "angedPeeringRoute\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(\013" + + "2 .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\"\263\002\n\"ExpandIpCidrRa" + + "ngeSubnetworkRequest\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\033\n\n" + + "subnetwork\030\356\247\344\222\001 \001(\tB\003\340A\002\022\200\001\n1subnetwork" + + "s_expand_ip_cidr_range_request_resource\030" + + "\336\320\272\343\001 \001(\0132<.google.cloud.compute.v1.Subn" + + "etworksExpandIpCidrRangeRequestB\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_expression" + + "B\013\n\t_locationB\010\n\006_title\"\310\005\n\022ExternalVpnG" + + "ateway\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(\01324.goog" + + "le.cloud.compute.v1.ExternalVpnGatewayIn" + + "terface\022\024\n\004kind\030\224\367\310\001 \001(\tH\003\210\001\001\022!\n\021label_f" + + "ingerprint\030\231\360\367T \001(\tH\004\210\001\001\022K\n\006labels\030\377\277\301\356\001" + + " \003(\01327.google.cloud.compute.v1.ExternalV" + + "pnGateway.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\013LabelsEntry" + + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\217\001\n\016Red" + + "undancyType\022\035\n\031UNDEFINED_REDUNDANCY_TYPE" + + "\020\000\022\033\n\023FOUR_IPS_REDUNDANCY\020\351\322\377\367\001\022%\n\036SINGL" + + "E_IP_INTERNALLY_REDUNDANT\020\371\301\355?\022\032\n\022TWO_IP" + + "S_REDUNDANCY\020\243\367\202\257\001B\025\n\023_creation_timestam" + + "pB\016\n\014_descriptionB\005\n\003_idB\007\n\005_kindB\024\n\022_la" + + "bel_fingerprintB\007\n\005_nameB\022\n\020_redundancy_" + + "typeB\014\n\n_self_link\"\222\001\n\033ExternalVpnGatewa" + + "yInterface\022\020\n\002id\030\233\032 \001(\rH\000\210\001\001\022\033\n\nip_addre" + + "ss\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\026ExternalVpnGatewayList\022\024\n\004et" + + "ag\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\005it" + + "ems\030\300\317\367/ \003(\0132+.google.cloud.compute.v1.E" + + "xternalVpnGateway\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(\013" + + "2 .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_t" + + "okenB\014\n\n_self_linkB\n\n\010_warning\"\262\001\n\021FileC" + + "ontentBuffer\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\tUN" + + "DEFINED\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 .google.cloud.compute.v1.Allowed\022\"" + + "\n\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\0223\n\006de" + + "nied\030\233\367\235\203\001 \003(\0132\037.google.cloud.compute.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\tdirecti" + + "on\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*.google.clo" + + "ud.compute.v1.FirewallLogConfigH\006\210\001\001\022\024\n\004" + + "name\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\010priority\030\244\363\241\324\001 \001(\005H\t\210\001\001\022\032\n\tself_l" + + "ink\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\027source_service_accounts\030\324\353\2162 \003(\t" + + "\022\027\n\013source_tags\030\275\273\321\327\001 \003(\t\022#\n\027target_serv" + + "ice_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_DIRECTI" + + "ON\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_descriptionB\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_networkB\013\n\t_" + + "priorityB\014\n\n_self_link\"\241\002\n\014FirewallList\022" + + "\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0223\n\005items\030\300\317\367/ \003(\0132!.go" + + "ogle.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(\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\"\275\001\n\021F" + + "irewallLogConfig\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\010Metadata\022" + + "\026\n\022UNDEFINED_METADATA\020\000\022\034\n\024EXCLUDE_ALL_M" + + "ETADATA\020\222\275\301\237\001\022\033\n\024INCLUDE_ALL_METADATA\020\204\315" + + "\277NB\t\n\007_enableB\013\n\t_metadata\"\227\001\n(FirewallP" + + "oliciesListAssociationsResponse\022L\n\014assoc" + + "iations\030\222\350\312\362\001 \003(\01322.google.cloud.compute" + + ".v1.FirewallPolicyAssociation\022\024\n\004kind\030\224\367" + + "\310\001 \001(\tH\000\210\001\001B\007\n\005_kind\"\253\001\n\032FirewallPolicie" + + "sScopedList\022F\n\021firewall_policies\030\257\213\225\273\001 \003" + + "(\0132\'.google.cloud.compute.v1.FirewallPol" + + "icy\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.c" + + "ompute.v1.WarningH\000\210\001\001B\n\n\010_warning\"\306\005\n\016F" + + "irewallPolicy\022L\n\014associations\030\222\350\312\362\001 \003(\0132" + + "2.google.cloud.compute.v1.FirewallPolicy" + + "Association\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" + + "\014display_name\030\350\207\221\002 \001(\tH\002\210\001\001\022\033\n\013fingerpri" + + "nt\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\004ki" + + "nd\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\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\005rules\030\367\221\3653 \003(\0132+.google.cloud.compu" + + "te.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_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_tuple_countB\014\n\n_self_linkB\024\n\022_self_" + + "link_with_idB\r\n\013_short_name\"\212\002\n\031Firewall" + + "PolicyAssociation\022!\n\021attachment_target\030\255" + + "\260\350S \001(\tH\000\210\001\001\022\034\n\014display_name\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\nshort_name\030\356\270\320\352" + + "\001 \001(\tH\004\210\001\001B\024\n\022_attachment_targetB\017\n\r_dis" + + "play_nameB\025\n\023_firewall_policy_idB\007\n\005_nam" + + "eB\r\n\013_short_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\'.go" + + "ogle.cloud.compute.v1.FirewallPolicy\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\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\022FirewallPolicyRule\022\026\n\006action\030\266\374\275Y \001(\t" + + "H\000\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\031\n\td" + + "irection\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\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.FirewallPol" + + "icyRuleMatcherH\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\020rul" + + "e_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_r" + + "esources\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.Fir" + + "ewallPolicyRuleSecureTag\022#\n\027target_servi" + + "ce_accounts\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_DIR" + + "ECTION\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_descriptionB\014\n\n_directi" + + "onB\013\n\t_disabledB\021\n\017_enable_loggingB\007\n\005_k" + + "indB\010\n\006_matchB\013\n\t_priorityB\014\n\n_rule_name" + + "B\023\n\021_rule_tuple_countB\031\n\027_security_profi" + + "le_groupB\016\n\014_tls_inspect\"\370\003\n\031FirewallPol" + + "icyRuleMatcher\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_ranges\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>.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" + + "MatcherLayer4Config\022\036\n\022src_address_group" + + "s\030\272\230\215\320\001 \003(\t\022\025\n\tsrc_fqdns\030\343\314\355\317\001 \003(\t\022\031\n\rsr" + + "c_ip_ranges\030\323\200\207\316\001 \003(\t\022\033\n\020src_region_code" + + "s\030\226\343\237/ \003(\t\022Q\n\017src_secure_tags\030\206\224\316\362\001 \003(\0132" + + "4.google.cloud.compute.v1.FirewallPolicy" + + "RuleSecureTag\022$\n\030src_threat_intelligence" + + "s\030\252\357\250\232\001 \003(\t\"g\n%FirewallPolicyRuleMatcher" + + "Layer4Config\022\034\n\013ip_protocol\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_ip_protocol\"\242\001\n" + + "\033FirewallPolicyRuleSecureTag\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\005Sta" + + "te\022\023\n\017UNDEFINED_STATE\020\000\022\020\n\tEFFECTIVE\020\207\363\270" + + "t\022\023\n\013INEFFECTIVE\020\202\324\226\221\001B\007\n\005_nameB\010\n\006_stat" + + "e\"\203\001\n\016FixedOrPercent\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\007perc" + + "ent\030\305\310\241\274\001 \001(\005H\002\210\001\001B\r\n\013_calculatedB\010\n\006_fi" + + "xedB\n\n\010_percent\"\236\024\n\016ForwardingRule\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_ports\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_access\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\024b" + + "ase_forwarding_rule\030\220\333\243\372\001 \001(\tH\006\210\001\001\022\"\n\022cr" + + "eation_timestamp\030\266\217\307\016 \001(\tH\007\210\001\001\022\034\n\013descri" + + "ption\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_collec" + + "tion\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_f" + + "ingerprint\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.Forwardin" + + "gRule.LabelsEntry\022&\n\025load_balancing_sche" + + "me\030\304\214\302\255\001 \001(\tH\020\210\001\001\022E\n\020metadata_filters\030\353\315" + + "\314\335\001 \003(\0132\'.google.cloud.compute.v1.Metada" + + "taFilter\022\024\n\004name\030\213\365\315\001 \001(\tH\021\210\001\001\022\027\n\007networ" + + "k\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\005port" + + "s\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(\t" + + "H\027\210\001\001\022\026\n\006region\030\364\315\240B \001(\tH\030\210\001\001\022\032\n\tself_li" + + "nk\030\215\222\305\331\001 \001(\tH\031\210\001\001\022o\n\037service_directory_r" + + "egistrations\030\376\261\314j \003(\0132C.google.cloud.com" + + "pute.v1.ForwardingRuleServiceDirectoryRe" + + "gistration\022\036\n\rservice_label\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\020sou" + + "rce_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\013L" + + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + + "8\001\"\210\001\n\016IPProtocolEnum\022\037\n\033UNDEFINED_I_P_P" + + "ROTOCOL_ENUM\020\000\022\007\n\002AH\020\247\020\022\t\n\003ESP\020\342\232\004\022\013\n\004IC" + + "MP\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\024UN" + + "DEFINED_IP_VERSION\020\000\022\013\n\004IPV4\020\205\314\211\001\022\013\n\004IPV" + + "6\020\207\314\211\001\022\032\n\023UNSPECIFIED_VERSION\020\220\317\265\n\"\277\001\n\023L" + + "oadBalancingScheme\022#\n\037UNDEFINED_LOAD_BAL" + + "ANCING_SCHEME\020\000\022\017\n\010EXTERNAL\020\313\247\375\020\022\030\n\020EXTE" + + "RNAL_MANAGED\020\213\266\222\364\001\022\020\n\010INTERNAL\020\275\355\226\205\001\022\027\n\020" + + "INTERNAL_MANAGED\020\375\327\347\021\022\034\n\025INTERNAL_SELF_M" + + "ANAGED\020\316\227\321p\022\017\n\007INVALID\020\327\373\355\374\001\"\217\001\n\013Network" + + "Tier\022\032\n\026UNDEFINED_NETWORK_TIER\020\000\022\026\n\016FIXE" + + "D_STANDARD\020\310\236\205\224\001\022\017\n\007PREMIUM\020\267\264\301\276\001\022\020\n\010STA" + + "NDARD\020\275\235\214\347\001\022)\n!STANDARD_OVERRIDES_FIXED_" + + "STANDARD\020\302\207\221\336\001\"\260\001\n\023PscConnectionStatus\022#" + + "\n\037UNDEFINED_PSC_CONNECTION_STATUS\020\000\022\017\n\010A" + + "CCEPTED\020\247\237\322u\022\016\n\006CLOSED\020\354\252\243\265\001\022\027\n\017NEEDS_AT" + + "TENTION\020\274\213\242\244\001\022\016\n\007PENDING\020\367\252\360\020\022\017\n\010REJECTE" + + "D\020\376\210\204S\022\031\n\022STATUS_UNSPECIFIED\020\312\314\213\024B\016\n\014_I_" + + "p_addressB\017\n\r_I_p_protocolB\014\n\n_all_ports" + + "B\026\n\024_allow_global_accessB\032\n\030_allow_psc_g" + + "lobal_accessB\022\n\020_backend_serviceB\027\n\025_bas" + + "e_forwarding_ruleB\025\n\023_creation_timestamp" + + "B\016\n\014_descriptionB\016\n\014_fingerprintB\005\n\003_idB" + + "\020\n\016_ip_collectionB\r\n\013_ip_versionB\031\n\027_is_" + + "mirroring_collectorB\007\n\005_kindB\024\n\022_label_f" + + "ingerprintB\030\n\026_load_balancing_schemeB\007\n\005" + + "_nameB\n\n\010_networkB\017\n\r_network_tierB\027\n\025_n" + + "o_automate_dns_zoneB\r\n\013_port_rangeB\024\n\022_p" + + "sc_connection_idB\030\n\026_psc_connection_stat" + + "usB\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_target\"\313\003\n\034ForwardingRuleAggregatedLis" + + "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.ForwardingRuleAg" + + "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\032`\n\nItemsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022A\n\005value\030\002 \001(\01322.googl" + + "e.cloud.compute.v1.ForwardingRulesScoped" + + "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\"\255\002\n\022Forwa" + + "rdingRuleList\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.Forw" + + "ardingRule\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\"O\n\027ForwardingRuleReferenc" + + "e\022 \n\017forwarding_rule\030\376\245\335\200\001 \001(\tH\000\210\001\001B\022\n\020_" + + "forwarding_rule\"\302\001\n*ForwardingRuleServic" + + "eDirectoryRegistration\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\030s" + + "ervice_directory_region\030\320\272\246# \001(\tH\002\210\001\001B\014\n" + + "\n_namespaceB\n\n\010_serviceB\033\n\031_service_dire" + + "ctory_region\"\251\001\n\031ForwardingRulesScopedLi" + + "st\022E\n\020forwarding_rules\030\265\232\314\226\001 \003(\0132\'.googl" + + "e.cloud.compute.v1.ForwardingRule\0229\n\007war" + + "ning\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1." + + "WarningH\000\210\001\001B\n\n\010_warning\"\315\002\n\017GRPCHealthC" + + "heck\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_P" + + "ORT_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_SERVIN" + + "G_PORT\020\314\321\365\254\001B\024\n\022_grpc_service_nameB\007\n\005_p" + + "ortB\014\n\n_port_nameB\025\n\023_port_specification" + + "\"l\n\031GetAcceleratorTypeRequest\022 \n\020acceler" + + "ator_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\021GetAdd" + + "ressRequest\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\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\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\002B#\n!_op" - + "tions_requested_policy_version\"\272\001\n\027GetIa" - + "mPolicyDiskRequest\0221\n options_requested_" + + "\tB\003\340A\002\"f\n#GetAssociationFirewallPolicyRe" + + "quest\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*GetAs" + + "sociationNetworkFirewallPolicyRequest\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\002B\007" + + "\n\005_name\"\244\001\n0GetAssociationRegionNetworkF" + + "irewallPolicyRequest\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\007" + + "project\030\231\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\t" + + "B\003\340A\002B\007\n\005_name\"b\n\024GetAutoscalerRequest\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\027Ge" + + "tBackendBucketRequest\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\030GetBackendServiceRequest\022 \n\017backend_se" + + "rvice\030\212\300\256\222\001 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\t" + + "B\003\340A\002\"Z\n!GetDiagnosticsInterconnectReque" + + "st\022\034\n\014interconnect\030\216\311\214k \001(\tB\003\340A\002\022\027\n\007proj" + + "ect\030\231\226\301l \001(\tB\003\340A\002\"U\n\016GetDiskRequest\022\024\n\004d" + + "isk\030\235\233\274\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\022GetDiskTypeR" + + "equest\022\031\n\tdisk_type\030\234\351\254, \001(\tB\003\340A\002\022\027\n\007pro" + + "ject\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$GetEffectiveFirewallsInstanceReques" + + "t\022\030\n\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022\"\n\021network_i" + + "nterface\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#GetEff" + + "ectiveFirewallsNetworkRequest\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\n7GetEffectiveFirewallsRegionNetworkFi" + + "rewallPolicyRequest\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\034GetExternalVpnGatewayRe" + + "quest\022$\n\024external_vpn_gateway\030\205\327\2634 \001(\tB\003" + + "\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\"<\n\030GetFirew" + + "allPolicyRequest\022 \n\017firewall_policy\030\321\212\306\355" + + "\001 \001(\tB\003\340A\002\"H\n\022GetFirewallRequest\022\031\n\010fire" + + "wall\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\017forw" + + "arding_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\031G" + + "etFromFamilyImageRequest\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\027Ge" + + "tGlobalAddressRequest\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\036GetG" + + "lobalForwardingRuleRequest\022 \n\017forwarding" + + "_rule\030\376\245\335\200\001 \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\t" + + "B\003\340A\002\"h\n$GetGlobalNetworkEndpointGroupRe" + + "quest\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\031GetGl" + + "obalOperationRequest\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%GetGlobalOrganizationOperationRequest" + + "\022 \n\toperation\030\347\252\353\030 \001(\tB\n\340A\002\372G\004name\022\032\n\tpa" + + "rent_id\030\320\341\232\333\001 \001(\tH\000\210\001\001B\014\n\n_parent_id\"j\n&" + + "GetGlobalPublicDelegatedPrefixeRequest\022\027" + + "\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\027public_delega" + + "ted_prefix\030\350\334\261a \001(\tB\003\340A\002\"\307\001\n!GetGuestAtt" + + "ributesInstanceRequest\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\033\n\nque" + + "ry_path\030\274\202\341\257\001 \001(\tH\000\210\001\001\022\034\n\014variable_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_q" + + "uery_pathB\017\n\r_variable_key\"\277\001\n\036GetHealth" + + "BackendServiceRequest\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!resource_group_reference_resource\030\323\376" + + "\3555 \001(\0132/.google.cloud.compute.v1.Resourc" + + "eGroupReferenceB\003\340A\002\"O\n\025GetHealthCheckRe" + + "quest\022\035\n\014health_check\030\345\252\244\223\001 \001(\tB\003\340A\002\022\027\n\007" + + "project\030\231\226\301l \001(\tB\003\340A\002\"\335\001\n$GetHealthRegio" + + "nBackendServiceRequest\022 \n\017backend_servic" + + "e\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\006region\030\364\315\240B \001(\tB\003\340A\002\022b\n!resource_gr" + + "oup_reference_resource\030\323\376\3555 \001(\0132/.google" + + ".cloud.compute.v1.ResourceGroupReference" + + "B\003\340A\002\"\304\001\n\032GetHealthTargetPoolRequest\022X\n\033" + + "instance_reference_resource\030\354\344\326\213\001 \001(\0132*." + + "google.cloud.compute.v1.InstanceReferenc" + + "eB\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\022\033\n\013target_pool\030\212\344\370\035 \001(\tB" + + "\003\340A\002\"\255\001\n GetIamPolicyBackendBucketReques" + + "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\030\n" + + "\010resource\030\216\210\257] \001(\tB\003\340A\002B#\n!_options_requ" + + "ested_policy_version\"\256\001\n!GetIamPolicyBac" + + "kendServiceRequest\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\"\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\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" + + "B#\n!_options_requested_policy_version\"\272\001" + + "\n\027GetIamPolicyDiskRequest\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" + + "(\tB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002B#\n!_option" + + "s_requested_policy_version\"\225\001\n!GetIamPol" + + "icyFirewallPolicyRequest\0221\n options_requ" + + "ested_policy_version\030\275\374\205\356\001 \001(\005H\000\210\001\001\022\030\n\010r" + + "esource\030\216\210\257] \001(\tB\003\340A\002B#\n!_options_reques" + + "ted_policy_version\"\245\001\n\030GetIamPolicyImage" + + "Request\0221\n options_requested_policy_vers" + + "ion\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!_option" + + "s_requested_policy_version\"\276\001\n\033GetIamPol" + + "icyInstanceRequest\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\"\260\001\n#GetIamPolicyInst" + + "anceTemplateRequest\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\030\n\010resource\030\216\210\257] \001(\tB\003\340A" + + "\002B#\n!_options_requested_policy_version\"\305" + + "\001\n\"GetIamPolicyInstantSnapshotRequest\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" + + "\002B#\n!_options_requested_policy_version\"\247" + + "\001\n\032GetIamPolicyLicenseRequest\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_requested_policy" + + "_version\"\254\001\n\037GetIamPolicyMachineImageReq" + + "uest\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_r" + + "equested_policy_version\"\311\001\n$GetIamPolicy" + + "NetworkAttachmentRequest\0221\n options_requ" + + "ested_policy_version\030\275\374\205\356\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\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002B#\n!_optio" + + "ns_requested_policy_version\"\265\001\n(GetIamPo" + + "licyNetworkFirewallPolicyRequest\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\"\277\001\n\034GetIamPolicyNodeGroupReq" + + "uest\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_requested_policy_ve" + + "rsion\"\304\001\n\037GetIamPolicyNodeTemplateReques" + "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\"\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\"\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\"\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" + + "sion\"\314\001\n\'GetIamPolicyRegionBackendServic" + + "eRequest\0221\n options_requested_policy_ver" + + "sion\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_pol" + + "icy_version\"\302\001\n\035GetIamPolicyRegionDiskRe" + + "quest\0221\n options_requested_policy_versio" + + "n\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" + + "_version\"\315\001\n(GetIamPolicyRegionInstantSn" + + "apshotRequest\0221\n options_requested_polic" + + "y_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\010res" + + "ource\030\216\210\257] \001(\tB\003\340A\002B#\n!_options_requeste" + + "d_policy_version\"\323\001\n.GetIamPolicyRegionN" + + "etworkFirewallPolicyRequest\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\"\301\001\n\036GetIa" + + "mPolicyReservationRequest\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" + + "project\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!_option" + + "s_requested_policy_version\"\306\001\n!GetIamPol" + + "icyResourcePolicyRequest\0221\n options_requ" + + "ested_policy_version\030\275\374\205\356\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\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002B#\n!_optio" + + "ns_requested_policy_version\"\311\001\n$GetIamPo" + + "licyServiceAttachmentRequest\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\"\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" + + "\001(\tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002B#\n!_o" + + "ptions_requested_policy_version\"\250\001\n\033GetI" + + "amPolicySnapshotRequest\0221\n options_reque" + + "sted_policy_version\030\275\374\205\356\001 \001(\005H\000\210\001\001\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\002B#\n!_options_requested_policy_versi" + + "on\"\301\001\n\036GetIamPolicyStoragePoolRequest\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\"\302" + + "\001\n\035GetIamPolicySubnetworkRequest\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\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\"c\n\031G" + + "etImageFamilyViewRequest\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\004zo" + + "ne\030\254\307\344\001 \001(\tB\003\340A\002\"A\n\017GetImageRequest\022\025\n\005i" + + "mage\030\333\322\352/ \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003" + + "\340A\002\"w\n\036GetInstanceGroupManagerRequest\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\004zone\030\254\307\344\001 \001(\tB" + + "\003\340A\002\"\244\001\n+GetInstanceGroupManagerResizeRe" + + "questRequest\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\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\016instance_group\030\325\324\325& \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\"]\n" + + "\022GetInstanceRequest\022\030\n\010instance\030\225\251\332\010 \001(\t" + + "B\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\031GetInstanceSettingReques" + + "t\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\032GetInstanceTemplateRequest\022\"" + + "\n\021instance_template\030\344\201\273\223\001 \001(\tB\003\340A\002\022\027\n\007pr" + + "oject\030\231\226\301l \001(\tB\003\340A\002\"m\n\031GetInstantSnapsho" + + "tRequest\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\024\n\004zone\030\254\307\344" + + "\001 \001(\tB\003\340A\002\"}\n GetInterconnectAttachmentR" + + "equest\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\006reg" + + "ion\030\364\315\240B \001(\tB\003\340A\002\"a\n\036GetInterconnectLoca" + + "tionRequest\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$" + + "GetInterconnectRemoteLocationRequest\022-\n\034" + + "interconnect_remote_location\030\335\313\255\212\001 \001(\tB\003" + + "\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\"O\n\026GetInter" + + "connectRequest\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\025GetLice" + + "nseCodeRequest\022\033\n\014license_code\030\253\306Y \001(\tB\003" + + "\340A\002\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\"E\n\021GetLicen" + + "seRequest\022\027\n\007license\030\301\210\302O \001(\tB\003\340A\002\022\027\n\007pr" + + "oject\030\231\226\301l \001(\tB\003\340A\002\"P\n\026GetMachineImageRe" + + "quest\022\035\n\rmachine_image\030\343\376\376 \001(\tB\003\340A\002\022\027\n\007" + + "project\030\231\226\301l \001(\tB\003\340A\002\"d\n\025GetMachineTypeR" + + "equest\022\034\n\014machine_type\030\262\260\312l \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\"GetMacsecConfigInterconnectReques" + + "t\022\034\n\014interconnect\030\216\311\214k \001(\tB\003\340A\002\022\027\n\007proje" + + "ct\030\231\226\301l \001(\tB\003\340A\002\"\214\001\n\031GetNatIpInfoRouterR" + + "equest\022\031\n\010nat_name\030\351\255\370\312\001 \001(\tH\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\026\n\006router\030\311\256\356F \001(\tB\003\340A\002B\013\n\t_nat_name\"" + + "\371\002\n\037GetNatMappingInfoRoutersRequest\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\031\n\010nat_name\030\351\255\370\312\001 \001(\tH\002\210\001\001\022\030\n\010" + + "order_by\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\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\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_ret" + + "urn_partial_success\"r\n\033GetNetworkAttachm" + + "entRequest\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\006regio" + + "n\030\364\315\240B \001(\tB\003\340A\002\"\206\001\n$GetNetworkEdgeSecuri" + + "tyServiceRequest\022-\n\035network_edge_securit" + + "y_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\036GetN" + + "etworkEndpointGroupRequest\022\'\n\026network_en" + + "dpoint_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\037Ge" + + "tNetworkFirewallPolicyRequest\022 \n\017firewal" + + "l_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\"T\n\030GetNetworkProfileRequest\022\037\n\017" + + "network_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\007n" + + "etwork\030\256\264\205o \001(\tB\003\340A\002\022\027\n\007project\030\231\226\301l \001(\t" + + "B\003\340A\002\"a\n\023GetNodeGroupRequest\022\033\n\nnode_gro" + + "up\030\202\374\213\340\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\"i\n\026GetNodeTempl" + + "ateRequest\022\036\n\rnode_template\030\227\344\213\232\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\"_\n\022GetNodeTypeRequest\022\032\n\tnod" + + "e_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\031GetPacke" + + "tMirroringRequest\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\006" + + "region\030\364\315\240B \001(\tB\003\340A\002\",\n\021GetProjectReques" + + "t\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\"f\n!GetPublicA" + + "dvertisedPrefixeRequest\022\027\n\007project\030\231\226\301l " + + "\001(\tB\003\340A\002\022(\n\030public_advertised_prefix\030\236\367\311" + + "0 \001(\tB\003\340A\002\"|\n GetPublicDelegatedPrefixeR" + + "equest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\'\n\027publi" + + "c_delegated_prefix\030\350\334\261a \001(\tB\003\340A\002\022\026\n\006regi" + + "on\030\364\315\240B \001(\tB\003\340A\002\"j\n\032GetRegionAutoscalerR" + + "equest\022\033\n\nautoscaler\030\327\375\322\366\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" + + "\003\340A\002\"s\n\036GetRegionBackendServiceRequest\022 " + + "\n\017backend_service\030\212\300\256\222\001 \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\"j\n\032GetRegionCommitmentRequest\022\033\n\ncommi" + + "tment\030\225\226\363\345\001 \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\"]\n\024GetRegi" + + "onDiskRequest\022\024\n\004disk\030\235\233\274\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\"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\033GetRegio" + + "nHealthCheckRequest\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\006r" + + "egion\030\364\315\240B \001(\tB\003\340A\002\"|\n\"GetRegionHealthCh" + + "eckServiceRequest\022%\n\024health_check_servic" + + "e\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$GetRegionIn" + + "stanceGroupManagerRequest\022&\n\026instance_gr" + + "oup_manager\030\303\367\363v \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\"p\n\035Ge" + + "tRegionInstanceGroupRequest\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 GetRegio" + + "nInstanceTemplateRequest\022\"\n\021instance_tem" + + "plate\030\344\201\273\223\001 \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\"u\n\037GetRegi" + + "onInstantSnapshotRequest\022!\n\020instant_snap" + + "shot\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$GetRegi" + + "onNetworkEndpointGroupRequest\022\'\n\026network" + + "_endpoint_group\030\206\313\363\316\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\"" + + "z\n%GetRegionNetworkFirewallPolicyRequest" + + "\022 \n\017firewall_policy\030\321\212\306\355\001 \001(\tB\003\340A\002\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\"\177\n$GetRegionNotificationEndpointRequ" + + "est\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\006region\030\364" - + "\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" + + "\315\240B \001(\tB\003\340A\002\"n\n\031GetRegionOperationReques" + + "t\022 \n\toperation\030\347\252\353\030 \001(\tB\n\340A\002\372G\004name\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\"C\n\020GetRegionRequest\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\"r\n\036Get" + + "RegionSecurityPolicyRequest\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\017" + + "security_policy\030\221\206\312Q \001(\tB\003\340A\002\"r\n\036GetRegi" + + "onSslCertificateRequest\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_" + + "certificate\030\344\327\222\026 \001(\tB\003\340A\002\"i\n\031GetRegionSs" + + "lPolicyRequest\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_policy\030\305\375" + + "\340\214\001 \001(\tB\003\340A\002\"u\n\037GetRegionTargetHttpProxy" + "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\022!\n\021target_http_proxy\030\345\276\322b \001(\tB" - + "\003\340A\002\"w\n GetRegionTargetHttpsProxyRequest" + + "on\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 GetRegionTargetHttpsProxy" + + "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\"\n\022target_https_proxy\030\354" + + "\260\372\030 \001(\tB\003\340A\002\"t\n\036GetRegionTargetTcpProxyR" + + "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!\n\020target_tcp_proxy\030\342\326\360\357" + + "\001 \001(\tB\003\340A\002\"c\n\026GetRegionUrlMapRequest\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\007url_map\030\214\225\201\257\001 \001(\tB\003\340A\002\"c\n\025GetRe" + + "servationRequest\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\030GetResourcePolicyRequest" + "\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\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\"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" + + " \001(\tB\003\340A\002\022\037\n\017resource_policy\030\203\245\367K \001(\tB\003\340" + + "A\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\020GetRout" + + "erRequest\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\026\n\006router\030\311\256\356F \001(\tB\003\340" + + "A\002\"g\n\034GetRouterStatusRouterRequest\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\026\n\006router\030\311\256\356F \001(\tB\003\340A\002\"h\n\034GetRuleFi" + + "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" + + "B\013\n\t_priority\"\210\001\n#GetRuleNetworkFirewall" + + "PolicyRequest\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\007pr" + + "oject\030\231\226\301l \001(\tB\003\340A\002B\013\n\t_priority\"\246\001\n)Get" + + "RuleRegionNetworkFirewallPolicyRequest\022 " + + "\n\017firewall_policy\030\321\212\306\355\001 \001(\tB\003\340A\002\022\031\n\010prio" + + "rity\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_priorit" + + "y\"\236\001\n\"GetRuleRegionSecurityPolicyRequest" + "\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)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\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\"\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" + + "\226\301l \001(\tB\003\340A\002\022\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\037\n\017" + + "security_policy\030\221\206\312Q \001(\tB\003\340A\002B\013\n\t_priori" + + "ty\"\200\001\n\034GetRuleSecurityPolicyRequest\022\031\n\010p" + + "riority\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\002" + + "B\013\n\t_priority\"g\n\034GetScreenshotInstanceRe" + + "quest\022\030\n\010instance\030\225\251\332\010 \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\"T" + + "\n\030GetSecurityPolicyRequest\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\"GetSerialPortOutputInstanceRequ" + + "est\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\005" + + "start\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\033GetServiceAttach" + + "mentRequest\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\022service_attachme" + + "nt\030\355\251\320\241\001 \001(\tB\003\340A\002\"u\n*GetShieldedInstance" + + "IdentityInstanceRequest\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\004zo" + + "ne\030\254\307\344\001 \001(\tB\003\340A\002\"H\n\022GetSnapshotRequest\022\027" + + "\n\007project\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\007project\030\231\226\301l \001(\tB\003\340A\002\"T\n\030GetSslCertif" + + "icateRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\037\n" + + "\017ssl_certificate\030\344\327\222\026 \001(\tB\003\340A\002\"K\n\023GetSsl" + + "PolicyRequest\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\032GetStatus" + + "VpnGatewayRequest\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\034\n\013vpn_gatewa" + + "y\030\371\203\366\301\001 \001(\tB\003\340A\002\"e\n\025GetStoragePoolReques" + + "t\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\035\n\014storage_po" + + "ol\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\007project\030" + + "\231\226\301l \001(\tB\003\340A\002\022\"\n\021storage_pool_type\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\024GetSu" + + "bnetworkRequest\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\nsubnetwork\030\356" + + "\247\344\222\001 \001(\tB\003\340A\002\"W\n\031GetTargetGrpcProxyReque" + + "st\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022!\n\021target_gr" + + "pc_proxy\030\373\264\262\002 \001(\tB\003\340A\002\"W\n\031GetTargetHttpP" + + "roxyRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022!\n\021" + + "target_http_proxy\030\345\276\322b \001(\tB\003\340A\002\"Y\n\032GetTa" + + "rgetHttpsProxyRequest\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\340" + + "A\002\"k\n\030GetTargetInstanceRequest\022\027\n\007projec" + + "t\030\231\226\301l \001(\tB\003\340A\002\022 \n\017target_instance\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\024GetTa" + + "rgetPoolRequest\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\"V\n\030GetTargetSslProxyReques" + + "t\022\027\n\007project\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\030GetTargetTcpPro" + + "xyRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022!\n\020ta" + + "rget_tcp_proxy\030\342\326\360\357\001 \001(\tB\003\340A\002\"r\n\032GetTarg" + + "etVpnGatewayRequest\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_v" + + "pn_gateway\030\313\200\366\375\001 \001(\tB\003\340A\002\"E\n\020GetUrlMapRe" + + "quest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n\007url_ma" + + "p\030\214\225\201\257\001 \001(\tB\003\340A\002\"e\n\024GetVpnGatewayRequest" + + "\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\034\n\013vpn_gateway\030\371\203\366\301\001 \001(\tB\003\340A\002\"" + + "b\n\023GetVpnTunnelRequest\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_t" + + "unnel\030\223\224\312D \001(\tB\003\340A\002\"3\n\030GetXpnHostProject" + + "Request\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\"\240\002\n\036Get" + + "XpnResourcesProjectsRequest\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\"j\n\027GetZoneOperationRequest\022 \n\toperat" + + "ion\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\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"?\n\016GetZo" + + "neRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\024\n\004zo" + + "ne\030\254\307\344\001 \001(\tB\003\340A\002\"\210\001\n\032GlobalAddressesMove" + + "Request\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_address\"{\n1G" + + "lobalNetworkEndpointGroupsAttachEndpoint" + + "sRequest\022F\n\021network_endpoints\030\255\221\272G \003(\0132(" + + ".google.cloud.compute.v1.NetworkEndpoint" + + "\"{\n1GlobalNetworkEndpointGroupsDetachEnd" + + "pointsRequest\022F\n\021network_endpoints\030\255\221\272G " + + "\003(\0132(.google.cloud.compute.v1.NetworkEnd" + + "point\"\277\001\n\"GlobalOrganizationSetPolicyReq" + + "uest\0226\n\010bindings\030\216\305\244\300\001 \003(\0132 .google.clou" + + "d.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.com" + + "pute.v1.PolicyH\001\210\001\001B\007\n\005_etagB\t\n\007_policy\"" + + "\321\001\n\026GlobalSetLabelsRequest\022!\n\021label_fing" + + "erprint\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.GlobalSetLab" + + "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\"\263\001\n\026GlobalSetPolicyRequest\0226" + + "\n\010bindings\030\216\305\244\300\001 \003(\0132 .google.cloud.comp" + + "ute.v1.Binding\022\024\n\004etag\030\225\322\276\001 \001(\tH\000\210\001\001\0227\n\006" + + "policy\030\262\312\266+ \001(\0132\037.google.cloud.compute.v" + + "1.PolicyH\001\210\001\001B\007\n\005_etagB\t\n\007_policy\"\304\002\n\017Gu" + + "estAttributes\022\024\n\004kind\030\224\367\310\001 \001(\tH\000\210\001\001\022\033\n\nq" + + "uery_path\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.Guest", + "AttributesValueH\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\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_variable_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_namespaceB\010\n\006" + + "_value\"W\n\024GuestAttributesValue\022?\n\005items\030" + + "\300\317\367/ \003(\0132-.google.cloud.compute.v1.Guest" + + "AttributesEntry\"\371\002\n\016GuestOsFeature\022\024\n\004ty" + + "pe\030\272\236\332\001 \001(\tH\000\210\001\001\"\307\002\n\004Type\022\022\n\016UNDEFINED_T" + + "YPE\020\000\022 \n\030FEATURE_TYPE_UNSPECIFIED\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\017MULTI_IP_S" + + "UBNET\020\317\333\257H\022\023\n\013SECURE_BOOT\020\272\335\326\263\001\022\022\n\013SEV_C" + + "APABLE\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_S" + + "NP_CAPABLE\020\247\207\032\022\022\n\013TDX_CAPABLE\020\265\325\323r\022\026\n\017UE" + + "FI_COMPATIBLE\020\300\326\262]\022\035\n\026VIRTIO_SCSI_MULTIQ" + + "UEUE\020\215\301\220`\022\017\n\007WINDOWS\020\343\334\354\331\001B\007\n\005_type\"\203\004\n\020" + + "HTTP2HealthCheck\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\014req" + + "uest_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\034UNDEFI" + + "NED_PORT_SPECIFICATION\020\000\022\025\n\016USE_FIXED_PO" + + "RT\020\344\210\333Z\022\026\n\016USE_NAMED_PORT\020\277\317\307\246\001\022\030\n\020USE_S" + + "ERVING_PORT\020\314\321\365\254\001\"H\n\013ProxyHeader\022\032\n\026UNDE" + + "FINED_PROXY_HEADER\020\000\022\013\n\004NONE\020\270\316\222\001\022\020\n\010PRO" + + "XY_V1\020\254\244\267\237\001B\007\n\005_hostB\007\n\005_portB\014\n\n_port_n" + + "ameB\025\n\023_port_specificationB\017\n\r_proxy_hea" + + "derB\017\n\r_request_pathB\013\n\t_response\"\202\004\n\017HT" + + "TPHealthCheck\022\024\n\004host\030\250\353\303\001 \001(\tH\000\210\001\001\022\024\n\004p" + + "ort\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\014reques" + + "t_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_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_SERV" + + "ING_PORT\020\314\321\365\254\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\007\n\005_hostB\007\n\005_portB\014\n\n_port_name" + + "B\025\n\023_port_specificationB\017\n\r_proxy_header" + + "B\017\n\r_request_pathB\013\n\t_response\"\203\004\n\020HTTPS" + + "HealthCheck\022\024\n\004host\030\250\353\303\001 \001(\tH\000\210\001\001\022\024\n\004por" + + "t\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\034UNDEFINED_P" + + "ORT_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_SERVIN" + + "G_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_request_pathB\013\n\t_response\"\337\n\n\013HealthC" + + "heck\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(\tH\001\210\001\001\022\034\n" + + "\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022K\n\021grpc_heal" + + "th_check\030\346\247\344( \001(\0132(.google.cloud.compute" + + ".v1.GRPCHealthCheckH\003\210\001\001\022\"\n\021healthy_thre" + + "shold\030\311\220\242\300\001 \001(\005H\004\210\001\001\022M\n\022http2_health_che" + + "ck\030\332\265\265\005 \001(\0132).google.cloud.compute.v1.HT" + + "TP2HealthCheckH\005\210\001\001\022L\n\021http_health_check" + + "\030\274\247\336\304\001 \001(\0132(.google.cloud.compute.v1.HTT" + + "PHealthCheckH\006\210\001\001\022N\n\022https_health_check\030" + + "\271\230\366\317\001 \001(\0132).google.cloud.compute.v1.HTTP" + + "SHealthCheckH\007\210\001\001\022\020\n\002id\030\233\032 \001(\004H\010\210\001\001\022\024\n\004k" + + "ind\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.HealthCheckL" + + "ogConfigH\n\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\013\210\001\001\022\026\n\006r" + + "egion\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\020s" + + "sl_health_check\030\270\351\303\205\001 \001(\0132\'.google.cloud" + + ".compute.v1.SSLHealthCheckH\016\210\001\001\022J\n\020tcp_h" + + "ealth_check\030\203\252\215\340\001 \001(\0132\'.google.cloud.com" + + "pute.v1.TCPHealthCheckH\017\210\001\001\022\033\n\013timeout_s" + + "ec\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\004T" + + "ype\022\022\n\016UNDEFINED_TYPE\020\000\022\013\n\004GRPC\020\236\210\206\001\022\013\n\004" + + "HTTP\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_timesta" + + "mpB\016\n\014_descriptionB\024\n\022_grpc_health_check" + + "B\024\n\022_healthy_thresholdB\025\n\023_http2_health_" + + "checkB\024\n\022_http_health_checkB\025\n\023_https_he" + + "alth_checkB\005\n\003_idB\007\n\005_kindB\r\n\013_log_confi" + + "gB\007\n\005_nameB\t\n\007_regionB\014\n\n_self_linkB\023\n\021_" + + "ssl_health_checkB\023\n\021_tcp_health_checkB\016\n" + + "\014_timeout_secB\007\n\005_typeB\026\n\024_unhealthy_thr" + + "eshold\"\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.co" + + "mpute.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\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\024HealthCheckL" + + "ogConfig\022\027\n\006enable\030\203\313\324\224\001 \001(\010H\000\210\001\001B\t\n\007_en" + + "able\"F\n\024HealthCheckReference\022\035\n\014health_c" + + "heck\030\345\252\244\223\001 \001(\tH\000\210\001\001B\017\n\r_health_check\"\374\004\n" + + "\022HealthCheckService\022\"\n\022creation_timestam" + + "p\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\t" + + "H\001\210\001\001\022\033\n\013fingerprint\030\344\321\363o \001(\tH\002\210\001\001\022\031\n\rhe" + + "alth_checks\030\256\257\346\325\001 \003(\t\0220\n health_status_a" + + "ggregation_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_li" + + "nk\030\215\222\305\331\001 \001(\tH\010\210\001\001\"r\n\035HealthStatusAggrega" + + "tionPolicy\022.\n*UNDEFINED_HEALTH_STATUS_AG" + + "GREGATION_POLICY\020\000\022\t\n\003AND\020\267\373\003\022\026\n\016NO_AGGR" + + "EGATION\020\304\222\254\313\001B\025\n\023_creation_timestampB\016\n\014" + + "_descriptionB\016\n\014_fingerprintB#\n!_health_" + + "status_aggregation_policyB\005\n\003_idB\007\n\005_kin" + + "dB\007\n\005_nameB\t\n\007_regionB\014\n\n_self_link\"]\n\033H" + + "ealthCheckServiceReference\022%\n\024health_che" + + "ck_service\030\333\233\335\302\001 \001(\tH\000\210\001\001B\027\n\025_health_che" + + "ck_service\"\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+.goo" + + "gle.cloud.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\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\"\304\003\n\032HealthChecksAggregatedList\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.HealthChecksAggregatedL" + + "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.HealthChecksScopedList:\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\"\240\001\n\026HealthChecksScope" + + "dList\022?\n\rhealth_checks\030\256\257\346\325\001 \003(\0132$.googl" + + "e.cloud.compute.v1.HealthCheck\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\"\362\006\n\014HealthStatus\022N" + + "\n\013annotations\030\244\366\2655 \003(\01326.google.cloud.co" + + "mpute.v1.HealthStatus.AnnotationsEntry\022 " + + "\n\017forwarding_rule\030\376\245\335\200\001 \001(\tH\000\210\001\001\022\"\n\022forw" + + "arding_rule_ip\030\210\254\221R \001(\tH\001\210\001\001\022\035\n\014health_s" + + "tate\030\356\351\277\232\001 \001(\tH\002\210\001\001\022\030\n\010instance\030\225\251\332\010 \001(\t" + + "H\003\210\001\001\022\033\n\nip_address\030\334\361\334\301\001 \001(\tH\004\210\001\001\022\035\n\014ip" + + "v6_address\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\006weight\030\370\204\305\206\001 \001(\tH\010\210\001\001\022\035\n\014weight_er" + + "ror\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\013Health" + + "State\022\032\n\026UNDEFINED_HEALTH_STATE\020\000\022\017\n\007HEA" + + "LTHY\020\375\252\333\321\001\022\021\n\tUNHEALTHY\020\304\271\255\334\001\"2\n\017Ipv6Hea" + + "lthState\022\037\n\033UNDEFINED_IPV6_HEALTH_STATE\020" + + "\000\"\212\001\n\013WeightError\022\032\n\026UNDEFINED_WEIGHT_ER" + + "ROR\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\013WEIGHT_NONE\020\237\351\311\357\001B\022\n\020_forwarding_ru" + + "leB\025\n\023_forwarding_rule_ipB\017\n\r_health_sta" + + "teB\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\036HealthSta" + + "tusForNetworkEndpoint\022R\n\017backend_service" + + "\030\212\300\256\222\001 \001(\01320.google.cloud.compute.v1.Bac" + + "kendServiceReferenceH\000\210\001\001\022R\n\017forwarding_" + + "rule\030\376\245\335\200\001 \001(\01320.google.cloud.compute.v1" + + ".ForwardingRuleReferenceH\001\210\001\001\022L\n\014health_" + + "check\030\345\252\244\223\001 \001(\0132-.google.cloud.compute.v" + + "1.HealthCheckReferenceH\002\210\001\001\022[\n\024health_ch" + + "eck_service\030\333\233\335\302\001 \001(\01324.google.cloud.com" + + "pute.v1.HealthCheckServiceReferenceH\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\013HealthStat" + + "e\022\032\n\026UNDEFINED_HEALTH_STATE\020\000\022\020\n\010DRAININ" + + "G\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\007UNKNOWN\020\252\360\304\316\001\"2\n\017Ipv6HealthState\022" + + "\037\n\033UNDEFINED_IPV6_HEALTH_STATE\020\000B\022\n\020_bac" + + "kend_serviceB\022\n\020_forwarding_ruleB\017\n\r_hea" + + "lth_checkB\027\n\025_health_check_serviceB\017\n\r_h" + + "ealth_stateB\024\n\022_ipv6_health_state\";\n\004Hel" + + "p\0223\n\005links\030\271\237\2151 \003(\0132!.google.cloud.compu" + + "te.v1.HelpLink\"T\n\010HelpLink\022\034\n\013descriptio" + + "n\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\013desc" + + "ription\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_desc" + + "riptionB\017\n\r_path_matcher\"i\n\016HttpFaultAbo" + + "rt\022\034\n\013http_status\030\211\267\316\337\001 \001(\rH\000\210\001\001\022\032\n\nperc" + + "entage\030\232\345\267H \001(\001H\001\210\001\001B\016\n\014_http_statusB\r\n\013" + + "_percentage\"\214\001\n\016HttpFaultDelay\022?\n\013fixed_" + + "delay\030\370\271\226\227\001 \001(\0132!.google.cloud.compute.v" + + "1.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_percentage\"\250\001\n\022H" + + "ttpFaultInjection\022>\n\005abort\030\260\306\224, \001(\0132\'.go" + + "ogle.cloud.compute.v1.HttpFaultAbortH\000\210\001" + + "\001\022>\n\005delay\030\203\363\302- \001(\0132\'.google.cloud.compu" + + "te.v1.HttpFaultDelayH\001\210\001\001B\010\n\006_abortB\010\n\006_" + + "delay\"\374\001\n\020HttpHeaderAction\022L\n\026request_he" + + "aders_to_add\030\346\256\261\" \003(\0132).google.cloud.com" + + "pute.v1.HttpHeaderOption\022$\n\031request_head" + + "ers_to_remove\030\237\317\223h \003(\t\022M\n\027response_heade" + + "rs_to_add\030\364\266\251\017 \003(\0132).google.cloud.comput" + + "e.v1.HttpHeaderOption\022%\n\032response_header" + + "s_to_remove\030\321\201\373# \003(\t\"\260\003\n\017HttpHeaderMatch" + + "\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_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\rpresent_match\030\301\372\223 \001(\010H\004\210\001\001\022E\n\013range" + + "_match\030\303\250\257. \001(\0132(.google.cloud.compute.v" + + "1.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_nameB\017\n\r_i" + + "nvert_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\020HttpHeaderOption\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\001\022\027\n\007replace\030\264\345\362\t \001(\010H\002\210\001\001" + + "B\016\n\014_header_nameB\017\n\r_header_valueB\n\n\010_re" + + "place\"\304\001\n\027HttpQueryParameterMatch\022\034\n\013exa" + + "ct_match\030\205\231\234\332\001 \001(\tH\000\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\t" + + "H\001\210\001\001\022\035\n\rpresent_match\030\301\372\223 \001(\010H\002\210\001\001\022\033\n\013" + + "regex_match\030\315\267\2323 \001(\tH\003\210\001\001B\016\n\014_exact_matc" + + "hB\007\n\005_nameB\020\n\016_present_matchB\016\n\014_regex_m" + + "atch\"\214\004\n\022HttpRedirectAction\022\035\n\rhost_redi" + + "rect\030\223\241\2343 \001(\tH\000\210\001\001\022\036\n\016https_redirect\030\260\361\227" + + "Q \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\026" + + "redirect_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\024RedirectR" + + "esponseCode\022$\n UNDEFINED_REDIRECT_RESPON" + + "SE_CODE\020\000\022\014\n\005FOUND\020\342\276\376\037\022!\n\031MOVED_PERMANE" + + "NTLY_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\022TEMPORARY_R" + + "EDIRECT\020\252\344\267\351\001B\020\n\016_host_redirectB\021\n\017_http" + + "s_redirectB\020\n\016_path_redirectB\022\n\020_prefix_" + + "redirectB\031\n\027_redirect_response_codeB\016\n\014_" + + "strip_query\"\264\001\n\017HttpRetryPolicy\022\033\n\013num_r" + + "etries\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.Dura" + + "tionH\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\017H" + + "ttpRouteAction\022A\n\013cors_policy\030\204\314\235\276\001 \001(\0132" + + "#.google.cloud.compute.v1.CorsPolicyH\000\210\001" + + "\001\022T\n\026fault_injection_policy\030\227\224\352\304\001 \001(\0132+." + + "google.cloud.compute.v1.HttpFaultInjecti" + + "onH\001\210\001\001\022F\n\023max_stream_duration\030\230\245\245\035 \001(\0132" + + "!.google.cloud.compute.v1.DurationH\002\210\001\001\022" + + "S\n\025request_mirror_policy\030\202\340\377h \001(\0132,.goog" + + "le.cloud.compute.v1.RequestMirrorPolicyH" + + "\003\210\001\001\022F\n\014retry_policy\030\251\345\212\033 \001(\0132(.google.c" + + "loud.compute.v1.HttpRetryPolicyH\004\210\001\001\022;\n\007" + + "timeout\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.UrlRewriteH" + + "\006\210\001\001\022V\n\031weighted_backend_services\030\321\307\332\240\001 " + + "\003(\0132/.google.cloud.compute.v1.WeightedBa" + + "ckendServiceB\016\n\014_cors_policyB\031\n\027_fault_i" + + "njection_policyB\026\n\024_max_stream_durationB" + + "\030\n\026_request_mirror_policyB\017\n\r_retry_poli" + + "cyB\n\n\010_timeoutB\016\n\014_url_rewrite\"\350\004\n\rHttpR" + + "outeRule\022`\n\034custom_error_response_policy" + + "\030\353\370\332` \001(\01322.google.cloud.compute.v1.Cust" + + "omErrorResponsePolicyH\000\210\001\001\022\034\n\013descriptio" + + "n\030\374\207\326\311\001 \001(\tH\001\210\001\001\022I\n\rheader_action\030\250\240\270\234\001 " + + "\001(\0132).google.cloud.compute.v1.HttpHeader" + + "ActionH\002\210\001\001\022D\n\013match_rules\030\375\273\261\263\001 \003(\0132+.g" + + "oogle.cloud.compute.v1.HttpRouteRuleMatc" + + "h\022\031\n\010priority\030\244\363\241\324\001 \001(\005H\003\210\001\001\022G\n\014route_ac" + + "tion\030\354\251\271\312\001 \001(\0132(.google.cloud.compute.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+.goog" + + "le.cloud.compute.v1.HttpRedirectActionH\006" + + "\210\001\001B\037\n\035_custom_error_response_policyB\016\n\014" + + "_descriptionB\020\n\016_header_actionB\013\n\t_prior" + + "ityB\017\n\r_route_actionB\n\n\010_serviceB\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\016header_matc" + + "hes\030\201\353\310\254\001 \003(\0132(.google.cloud.compute.v1." + + "HttpHeaderMatch\022\034\n\013ignore_case\030\375\222\264\335\001 \001(\010" + + "H\001\210\001\001\022E\n\020metadata_filters\030\353\315\314\335\001 \003(\0132\'.go" + + "ogle.cloud.compute.v1.MetadataFilter\022$\n\023" + + "path_template_match\030\232\302\263\213\001 \001(\tH\002\210\001\001\022\034\n\014pr" + + "efix_match\030\330\363\374z \001(\tH\003\210\001\001\022U\n\027query_parame" + + "ter_matches\030\346\225\276\210\001 \003(\01320.google.cloud.com" + + "pute.v1.HttpQueryParameterMatch\022\033\n\013regex" + + "_match\030\315\267\2323 \001(\tH\004\210\001\001B\022\n\020_full_path_match" + + "B\016\n\014_ignore_caseB\026\n\024_path_template_match" + + "B\017\n\r_prefix_matchB\016\n\014_regex_match\"\271\022\n\005Im" + + "age\022\035\n\014architecture\030\323\322\261\220\001 \001(\tH\000\210\001\001\022#\n\022ar" + + "chive_size_bytes\030\312\214\334\265\001 \001(\003H\001\210\001\001\022\"\n\022creat" + + "ion_timestamp\030\266\217\307\016 \001(\tH\002\210\001\001\022G\n\ndeprecate" + + "d\030\263\313\321\365\001 \001(\0132*.google.cloud.compute.v1.De" + + "precationStatusH\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\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\022E\n\021guest" + + "_os_features\030\321\340\347% \003(\0132\'.google.cloud.com" + + "pute.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..goo" + + "gle.cloud.compute.v1.CustomerEncryptionK" + + "eyH\t\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\n\210\001\001\022!\n\021label_f" + + "ingerprint\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.Lab" + + "elsEntry\022\030\n\rlicense_codes\030\250\205\330\025 \003(\003\022\024\n\010li" + + "censes\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.cloud.comp" + + "ute.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\037shiel" + + "ded_instance_initial_state\030\203\304\334[ \001(\0132+.go" + + "ogle.cloud.compute.v1.InitialStateConfig" + + "H\021\210\001\001\022\034\n\013source_disk\030\301\356\264\327\001 \001(\tH\022\210\001\001\022[\n\032s" + + "ource_disk_encryption_key\030\341\240\270\375\001 \001(\0132..go" + + "ogle.cloud.compute.v1.CustomerEncryption" + + "KeyH\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\033sourc" + + "e_image_encryption_key\030\253\221\365\265\001 \001(\0132..googl" + + "e.cloud.compute.v1.CustomerEncryptionKey" + + "H\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\036sourc" + + "e_snapshot_encryption_key\030\332\216\347\220\001 \001(\0132..go" + + "ogle.cloud.compute.v1.CustomerEncryption" + + "KeyH\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\006st" + + "atus\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\026UNDE" + + "FINED_ARCHITECTURE\020\000\022 \n\030ARCHITECTURE_UNS" + + "PECIFIED\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_T" + + "YPE\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\007PENDING\020\367\252\360\020\022\014\n\005READY\020\203\303\217%B\017\n\r_arc" + + "hitectureB\025\n\023_archive_size_bytesB\025\n\023_cre" + + "ation_timestampB\r\n\013_deprecatedB\016\n\014_descr" + + "iptionB\017\n\r_disk_size_gbB\036\n\034_enable_confi" + + "dential_computeB\t\n\007_familyB\005\n\003_idB\027\n\025_im" + + "age_encryption_keyB\007\n\005_kindB\024\n\022_label_fi" + + "ngerprintB\007\n\005_nameB\013\n\t_raw_diskB\020\n\016_sati" + + "sfies_pziB\020\n\016_satisfies_pzsB\014\n\n_self_lin" + + "kB\"\n _shielded_instance_initial_stateB\016\n" + + "\014_source_diskB\035\n\033_source_disk_encryption" + + "_keyB\021\n\017_source_disk_idB\017\n\r_source_image" + + "B\036\n\034_source_image_encryption_keyB\022\n\020_sou" + + "rce_image_idB\022\n\020_source_snapshotB!\n\037_sou" + + "rce_snapshot_encryption_keyB\025\n\023_source_s" + + "napshot_idB\016\n\014_source_typeB\t\n\007_status\"R\n" + + "\017ImageFamilyView\0225\n\005image\030\333\322\352/ \001(\0132\036.goo" + + "gle.cloud.compute.v1.ImageH\000\210\001\001B\010\n\006_imag" + + "e\"\233\002\n\tImageList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0220\n\005ite" + + "ms\030\300\317\367/ \003(\0132\036.google.cloud.compute.v1.Im" + + "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\"\216\002\n\022InitialStateConfig\0229\n\003dbs\030\265\207" + + "\006 \003(\0132*.google.cloud.compute.v1.FileCont" + + "entBuffer\022;\n\004dbxs\030\371\347\273\001 \003(\0132*.google.clou" + + "d.compute.v1.FileContentBuffer\022;\n\004keks\030\302" + + "\330\310\001 \003(\0132*.google.cloud.compute.v1.FileCo" + + "ntentBuffer\022<\n\002pk\030\373\033 \001(\0132*.google.cloud." + + "compute.v1.FileContentBufferH\000\210\001\001B\005\n\003_pk" + + "\"\312\001\n\024InsertAddressRequest\022C\n\020address_res" + + "ource\030\371\227\336\346\001 \001(\0132 .google.cloud.compute.v" + + "1.AddressB\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\"\316\001\n\027InsertAutoscalerRequest\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\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\"\274\001\n\032InsertBackendBucketRe" + + "quest\022P\n\027backend_bucket_resource\030\230\316\307\265\001 \001" + + "(\0132&.google.cloud.compute.v1.BackendBuck" + + "etB\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\001\n\033InsertBackendServiceRequest\022R\n" + + "\030backend_service_resource\030\243\201\337\245\001 \001(\0132\'.go" + + "ogle.cloud.compute.v1.BackendServiceB\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\"" + + "\353\001\n\021InsertDiskRequest\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\032" + + "\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\034\n\014source_ima" + + "ge\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\037InsertExternalVpnGatewayRequest\022[\n\035ext" + + "ernal_vpn_gateway_resource\030\210\337\220\350\001 \001(\0132+.g" + + "oogle.cloud.compute.v1.ExternalVpnGatewa" + + "yB\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\"\304\001\n\033InsertFirewallPolicyRequest\022R\n\030" + + "firewall_policy_resource\030\274\266\207\354\001 \001(\0132\'.goo" + + "gle.cloud.compute.v1.FirewallPolicyB\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\"\253\001\n\025InsertFirewallRequest\022D\n\021firewal" + + "l_resource\030\355\260\340\023 \001(\0132!.google.cloud.compu" + + "te.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\033InsertForwardingRu" + + "leRequest\022R\n\030forwarding_rule_resource\030\257\300" + + "\320\217\001 \001(\0132\'.google.cloud.compute.v1.Forwar" + + "dingRuleB\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\"\257\001\n\032InsertGlobalAddressRequest\022C\n\020a" + + "ddress_resource\030\371\227\336\346\001 \001(\0132 .google.cloud" + + ".compute.v1.AddressB\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\"\305\001\n!InsertGlobalF" + + "orwardingRuleRequest\022R\n\030forwarding_rule_" + + "resource\030\257\300\320\217\001 \001(\0132\'.google.cloud.comput" + + "e.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\"\330\001\n\'InsertGlobalN" + + "etworkEndpointGroupRequest\022_\n\037network_en" + + "dpoint_group_resource\030\247\315\333\372\001 \001(\0132-.google" + + ".cloud.compute.v1.NetworkEndpointGroupB\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\"\333\001\n)InsertGlobalPublicDelegatedPrefixe" + + "Request\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007proje" + + "ct\022`\n public_delegated_prefix_resource\030\205" + + "\370\330\026 \001(\0132..google.cloud.compute.v1.Public" + + "DelegatedPrefixB\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\030InsertHealth" + + "CheckRequest\022K\n\025health_check_resource\030\250\303" + + "\244` \001(\0132$.google.cloud.compute.v1.HealthC" + + "heckB\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\"\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.Image" + + "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\001\210\001\001B\017\n\r_force_c" + + "reateB\r\n\013_request_id\"\356\001\n!InsertInstanceG" + + "roupManagerRequest\022^\n\037instance_group_man" + + "ager_resource\030\212\212\276| \001(\0132-.google.cloud.co" + + "mpute.v1.InstanceGroupManagerB\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\"\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" + + "_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\"\300\002\n.InsertInstance" + + "GroupManagerResizeRequestRequest\022&\n\026inst" + + "ance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022{\n.inst" + + "ance_group_manager_resize_request_resour" + + "ce\030\355\276\265\337\001 \001(\0132:.google.cloud.compute.v1.I" + + "nstanceGroupManagerResizeRequestB\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\"\331\001\n\032InsertInsta" + + "nceGroupRequest\022P\n\027instance_group_resour" + + "ce\030\270\265\325\210\001 \001(\0132&.google.cloud.compute.v1.I" + + "nstanceGroupB\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\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\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" + + "\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_reques" + + "t_id\"\317\002\n\025InsertInstanceRequest\022D\n\021instan" + + "ce_resource\030\370\360\376f \001(\0132!.google.cloud.comp" + + "ute.v1.InstanceB\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)\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\004zoneB\r\n\013_re" + + "quest_idB\033\n\031_source_instance_templateB\027\n" + + "\025_source_machine_image\"\304\001\n\035InsertInstanc" + + "eTemplateRequest\022U\n\032instance_template_re" + + "source\030\211\352\213\005 \001(\0132).google.cloud.compute.v" + + "1.InstanceTemplateB\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\034InsertInstantS" + + "napshotRequest\022T\n\031instant_snapshot_resou" + + "rce\030\313\252\210\267\001 \001(\0132(.google.cloud.compute.v1." + + "InstantSnapshotB\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\"\250\002\n#InsertInterconnectAttachment" + + "Request\022a\n interconnect_attachment_resou" + + "rce\030\371\244\240e \001(\0132/.google.cloud.compute.v1.I" + + "nterconnectAttachmentB\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\001\022\035\n\rvalidate_only\030\265\372\337s \001(\010H\001\210\001\001B\r\n\013_re" + + "quest_idB\020\n\016_validate_only\"\270\001\n\031InsertInt" + + "erconnectRequest\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\"\251\001\n\024InsertLicenseRequest\022C" + + "\n\020license_resource\030\314\324\352\320\001 \001(\0132 .google.cl" + + "oud.compute.v1.LicenseB\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" + + "\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\356\001\n\031InsertMach" + + "ineImageRequest\022M\n\026machine_image_resourc" + + "e\030\352\252\373\034 \001(\0132%.google.cloud.compute.v1.Mac" + + "hineImageB\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 \n" + + "\017source_instance\030\271\230\375\274\001 \001(\tH\001\210\001\001B\r\n\013_requ" + + "est_idB\022\n\020_source_instance\"\350\001\n\036InsertNet" + + "workAttachmentRequest\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\"\267\002\n\'InsertNetworkE" + + "dgeSecurityServiceRequest\022l\n&network_edg" + + "e_security_service_resource\030\246\243\333\343\001 \001(\01323." + + "google.cloud.compute.v1.NetworkEdgeSecur" + + "ityServiceB\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\001\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\"\357\001\n!InsertNetworkEndpoin" + + "tGroupRequest\022_\n\037network_endpoint_group_" + + "resource\030\247\315\333\372\001 \001(\0132-.google.cloud.comput" + + "e.v1.NetworkEndpointGroupB\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" - + "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" + + "neB\r\n\013_request_id\"\306\001\n\"InsertNetworkFirew" + + "allPolicyRequest\022R\n\030firewall_policy_reso" + + "urce\030\274\266\207\354\001 \001(\0132\'.google.cloud.compute.v1" + + ".FirewallPolicyB\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\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" + + "\210\001\001B\r\n\013_request_id\"\250\001\n\024InsertNetworkRequ" + + "est\022B\n\020network_resource\030\377\335\234: \001(\0132 .googl" + + "e.cloud.compute.v1.NetworkB\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\"\361\001\n\026Insert" + + "NodeGroupRequest\022\"\n\022initial_node_count\030\355" + + "\310\247\" \001(\005B\003\340A\002\022H\n\023node_group_resource\030\253\263\372\360" + + "\001 \001(\0132\".google.cloud.compute.v1.NodeGrou" + + "pB\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\"\331\001\n\031In" + + "sertNodeTemplateRequest\022M\n\026node_template" + + "_resource\030\266\332\335< \001(\0132%.google.cloud.comput" + + "e.v1.NodeTemplateB\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\"\343\001\n\034InsertPacketMirroringR" + + "equest\022T\n\031packet_mirroring_resource\030\241\374\250\353" + + "\001 \001(\0132(.google.cloud.compute.v1.PacketMi" + + "rroringB\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\"\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\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" + + "_id\"\330\001\n$InsertPublicAdvertisedPrefixeReq" + + "uest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022" + + "b\n!public_advertised_prefix_resource\030\217\327\262" + + "o \001(\0132/.google.cloud.compute.v1.PublicAd" + + "vertisedPrefixB\003\340A\002\022\032\n\nrequest_id\030\313\201\331\021 \001" + + "(\tH\000\210\001\001B\r\n\013_request_id\"\366\001\n#InsertPublicD" + + "elegatedPrefixeRequest\022!\n\007project\030\231\226\301l \001" + + "(\tB\r\340A\002\362G\007project\022`\n public_delegated_pr" + + "efix_resource\030\205\370\330\026 \001(\0132..google.cloud.co" + + "mpute.v1.PublicDelegatedPrefixB\003\340A\002\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\"\330\001\n\035Inse" + + "rtRegionAutoscalerRequest\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\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!InsertRegionBackendServic" + + "eRequest\022R\n\030backend_service_resource\030\243\201\337" + + "\245\001 \001(\0132\'.google.cloud.compute.v1.Backend" + + "ServiceB\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\"\330\001\n\035InsertRegionCommitmentRequest\022H\n" + + "\023commitment_resource\030\370\243\273t \001(\0132#.google.c" + + "loud.compute.v1.CommitmentB\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\"\365\001\n\027InsertRegionD" + + "iskRequest\022<\n\rdisk_resource\030\360\320\253\014 \001(\0132\035.g" + + "oogle.cloud.compute.v1.DiskB\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" + + "\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\036Inser" + + "tRegionHealthCheckRequest\022K\n\025health_chec" + + "k_resource\030\250\303\244` \001(\0132$.google.cloud.compu" + + "te.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(\tH\000\210\001\001B\r" + + "\n\013_request_id\"\363\001\n%InsertRegionHealthChec" + + "kServiceRequest\022[\n\035health_check_service_" + + "resource\030\362\233\320\343\001 \001(\0132+.google.cloud.comput" + + "e.v1.HealthCheckServiceB\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\'InsertRegionInst" + + "anceGroupManagerRequest\022^\n\037instance_grou" + + "p_manager_resource\030\212\212\276| \001(\0132-.google.clo" + + "ud.compute.v1.InstanceGroupManagerB\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\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" + + "d\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\353\001\n#Inser" + + "tRegionInstanceTemplateRequest\022U\n\032instan" + + "ce_template_resource\030\211\352\213\005 \001(\0132).google.c" + + "loud.compute.v1.InstanceTemplateB\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\"\351\001\n\"InsertR" + + "egionInstantSnapshotRequest\022T\n\031instant_s" + + "napshot_resource\030\313\252\210\267\001 \001(\0132(.google.clou" + + "d.compute.v1.InstantSnapshotB\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\"\371\001\n\'InsertRegio" + + "nNetworkEndpointGroupRequest\022_\n\037network_" + + "endpoint_group_resource\030\247\315\333\372\001 \001(\0132-.goog" + + "le.cloud.compute.v1.NetworkEndpointGroup" + + "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\"\355\001\n" + + "(InsertRegionNetworkFirewallPolicyReques" + + "t\022R\n\030firewall_policy_resource\030\274\266\207\354\001 \001(\0132" + + "\'.google.cloud.compute.v1.FirewallPolicy" + + "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\"\370\001\n" + + "\'InsertRegionNotificationEndpointRequest" + + "\022^\n\036notification_endpoint_resource\030\244\372\261\241\001" + + " \001(\0132-.google.cloud.compute.v1.Notificat" + + "ionEndpointB\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\"\226\002\n!InsertRegionSecurityPolicyRe" + "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\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" + + "uest_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.comput" + + "e.v1.SecurityPolicyB\003\340A\002\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\"\345\001\n!InsertRegionSslCertificateR" + + "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\022Q\n\030ssl_certificat" + + "e_resource\030\211\324\225V \001(\0132\'.google.cloud.compu" + + "te.v1.SslCertificateB\003\340A\002B\r\n\013_request_id" + + "\"\327\001\n\034InsertRegionSslPolicyRequest\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\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\"\351\001\n\"InsertRegionTarge" + + "tHttpProxyRequest\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\032tar" + + "get_http_proxy_resource\030\250\257\343\013 \001(\0132(.googl" + + "e.cloud.compute.v1.TargetHttpProxyB\003\340A\002B" + + "\r\n\013_request_id\"\355\001\n#InsertRegionTargetHtt" + + "psProxyRequest\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\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_request_id\"\346\001\n!InsertRegionTargetTcp" + + "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\022R\n\031target_t" + + "cp_proxy_resource\030\313\360\311E \001(\0132\'.google.clou" + + "d.compute.v1.TargetTcpProxyB\003\340A\002B\r\n\013_req" + + "uest_id\"\315\001\n\031InsertRegionUrlMapRequest\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\001\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\"\322\001\n\030InsertReservationReq" + + "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\022K\n\024reservati" + + "on_resource\030\241\356\364\207\001 \001(\0132$.google.cloud.com" + + "pute.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\033InsertR" + + "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\022Q\n\030" + + "resource_policy_resource\030\312\214\321$ \001(\0132\'.goog" + + "le.cloud.compute.v1.ResourcePolicyB\003\340A\002B" + + "\r\n\013_request_id\"\242\001\n\022InsertRouteRequest\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" + + "est_id\030\313\201\331\021 \001(\tH\000\210\001\001\022>\n\016route_resource\030\304" + + "\212\277k \001(\0132\036.google.cloud.compute.v1.RouteB" + + "\003\340A\002B\r\n\013_request_id\"\306\001\n\023InsertRouterRequ" + + "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\017router_resource\030\304" + + "\200\202J \001(\0132\037.google.cloud.compute.v1.Router" + + "B\003\340A\002B\r\n\013_request_id\"\357\001\n\033InsertSecurityP" + + "olicyRequest\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\022Q\n\030s" + + "ecurity_policy_resource\030\374\252\211g \001(\0132\'.googl" + + "e.cloud.compute.v1.SecurityPolicyB\003\340A\002\022\035" + + "\n\rvalidate_only\030\265\372\337s \001(\010H\001\210\001\001B\r\n\013_reques" + + "t_idB\020\n\016_validate_only\"\351\001\n\036InsertService" + + "AttachmentRequest\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\022X\n\033ser" + + "vice_attachment_resource\030\240\266\304\341\001 \001(\0132*.goo" + + "gle.cloud.compute.v1.ServiceAttachmentB\003" + + "\340A\002B\r\n\013_request_id\"\254\001\n\025InsertSnapshotReq" + + "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\022E\n\021snapshot_" + + "resource\030\251\270\301\345\001 \001(\0132!.google.cloud.comput" + + "e.v1.SnapshotB\003\340A\002B\r\n\013_request_id\"\276\001\n\033In" + + "sertSslCertificateRequest\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\022Q\n\030ssl_certificate_resource\030\211\324\225" + + "V \001(\0132\'.google.cloud.compute.v1.SslCerti" + + "ficateB\003\340A\002B\r\n\013_request_id\"\260\001\n\026InsertSsl" + "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\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\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" + + "\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022H\n\023" + + "ssl_policy_resource\030\310\210\212\203\001 \001(\0132\".google.c" + + "loud.compute.v1.SslPolicyB\003\340A\002B\r\n\013_reque" + + "st_id\"\322\001\n\030InsertStoragePoolRequest\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\022K\n\025storage_pool_resour" + + "ce\030\215\274\371J \001(\0132$.google.cloud.compute.v1.St" + + "oragePoolB\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\"\322\001\n\027InsertSubnetworkR" + "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\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@" + + "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\022H\n\023subnetwork_res" + + "ource\030\277\332\221\024 \001(\0132#.google.cloud.compute.v1" + + ".SubnetworkB\003\340A\002B\r\n\013_request_id\"\303\001\n\034Inse" + + "rtTargetGrpcProxyRequest\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\022U\n\032target_grpc_proxy_resource\030\322\352" + + "\353\234\001 \001(\0132(.google.cloud.compute.v1.Target" + + "GrpcProxyB\003\340A\002B\r\n\013_request_id\"\302\001\n\034Insert" + + "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\022T\n\032target_http_proxy_resource\030\250\257\343\013" + + " \001(\0132(.google.cloud.compute.v1.TargetHtt" + + "pProxyB\003\340A\002B\r\n\013_request_id\"\306\001\n\035InsertTar" + + "getHttpsProxyRequest\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\022W\n\033target_https_proxy_resource\030\201\255\344\316\001" + + " \001(\0132).google.cloud.compute.v1.TargetHtt" + + "psProxyB\003\340A\002B\r\n\013_request_id\"\334\001\n\033InsertTa" + + "rgetInstanceRequest\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(\013" + + "2\'.google.cloud.compute.v1.TargetInstanc" + + "eB\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\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\022I\n\024target_pool_resource\030\243" + + "\335\2450 \001(\0132#.google.cloud.compute.v1.Target" + + "PoolB\003\340A\002B\r\n\013_request_id\"\277\001\n\033InsertTarge" + + "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" + + "R\n\031target_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\033InsertTargetTcpPr" + + "oxyRequest\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\022R\n\031tar" + + "get_tcp_proxy_resource\030\313\360\311E \001(\0132\'.google" + + ".cloud.compute.v1.TargetTcpProxyB\003\340A\002B\r\n" + + "\013_request_id\"\345\001\n\035InsertTargetVpnGatewayR" + + "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\022U\n\033target_vpn_gat" + + "eway_resource\030\202\263\036 \001(\0132).google.cloud.com" + + "pute.v1.TargetVpnGatewayB\003\340A\002B\r\n\013_reques" + + "t_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(\013" + + "2\037.google.cloud.compute.v1.UrlMapB\003\340A\002B\r" + + "\n\013_request_id\"\323\001\n\027InsertVpnGatewayReques" + + "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\022I\n\024vpn_gateway_resourc" + + "e\030\224\267\216W \001(\0132#.google.cloud.compute.v1.Vpn" + + "GatewayB\003\340A\002B\r\n\013_request_id\"\320\001\n\026InsertVp" + + "nTunnelRequest\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\022G\n\023vpn_tu" + + "nnel_resource\030\272\241\264) \001(\0132\".google.cloud.co" + + "mpute.v1.VpnTunnelB\003\340A\002B\r\n\013_request_id\"\347" + + "\035\n\010Instance\022\\\n\031advanced_machine_features" + + "\030\262\347\252\303\001 \001(\01320.google.cloud.compute.v1.Adv" + + "ancedMachineFeaturesH\000\210\001\001\022\037\n\016can_ip_forw" + + "ard\030\374\206\204\337\001 \001(\010H\001\210\001\001\022b\n\034confidential_insta" + + "nce_config\030\365\222\372\351\001 \001(\01323.google.cloud.comp" + + "ute.v1.ConfidentialInstanceConfigH\002\210\001\001\022\035" + + "\n\014cpu_platform\030\252\352\321\303\001 \001(\tH\003\210\001\001\022\"\n\022creatio" + + "n_timestamp\030\266\217\307\016 \001(\tH\004\210\001\001\022$\n\023deletion_pr" + + "otection\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\016displa" + + "y_device\030\363\210\274{ \001(\0132&.google.cloud.compute" + + ".v1.DisplayDeviceH\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*.google.cloud.compute.v1.Accelerato" + + "rConfig\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(\0132..google.cloud.compute.v1.Custom" + + "erEncryptionKeyH\013\210\001\001\022*\n\032key_revocation_a" + + "ction_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.cloud.com" + + "pute.v1.Instance.LabelsEntry\022%\n\024last_sta" + + "rt_timestamp\030\320\243\321\323\001 \001(\tH\017\210\001\001\022$\n\023last_stop" + + "_timestamp\030\342\333\354\304\001 \001(\tH\020\210\001\001\022)\n\030last_suspen" + + "ded_timestamp\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" + + "!.google.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\004nam" + + "e\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.Network" + + "Interface\022^\n\032network_performance_config\030" + + "\342\227\370\275\001 \001(\01321.google.cloud.compute.v1.Netw" + + "orkPerformanceConfigH\026\210\001\001\022?\n\006params\030\206\363\253%" + + " \001(\0132\'.google.cloud.compute.v1.InstanceP" + + "aramsH\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(\0132,.google.cloud.compute.v1.Reserv" + + "ationAffinityH\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\'.g" + + "oogle.cloud.compute.v1.ResourceStatusH\032\210" + + "\001\001\022\036\n\rsatisfies_pzi\030\241\335\253\345\001 \001(\010H\033\210\001\001\022\036\n\rsa" + + "tisfies_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.Sch" + + "edulingH\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\022Y\n\030shiel" + + "ded_instance_config\030\265\213\221\006 \001(\0132/.google.cl" + + "oud.compute.v1.ShieldedInstanceConfigH\037\210" + + "\001\001\022l\n\"shielded_instance_integrity_policy" + + "\030\227\242\207N \001(\01328.google.cloud.compute.v1.Shie" + + "ldedInstanceIntegrityPolicyH \210\001\001\022$\n\024sour" + + "ce_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.CustomerEncrypt" + + "ionKeyH\"\210\001\001\022 \n\020start_restricted\030\330\320\375: \001(\010" + + "H#\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\004z" + + "one\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\027KeyRevocati" + + "onActionType\022(\n$UNDEFINED_KEY_REVOCATION" + + "_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\004S" + + "TOP\020\202\200\234\001\"\300\001\n\027PrivateIpv6GoogleAccess\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_OUTBOUND_VM_ACCESS_TO_GO" + + "OGLE\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\016" + + "DEPROVISIONING\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\010STOPP" + + "ING\020\364\320\242\247\001\022\020\n\tSUSPENDED\020\273\273\266\030\022\022\n\nSUSPENDIN" + + "G\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_" + + "confidential_instance_configB\017\n\r_cpu_pla" + + "tformB\025\n\023_creation_timestampB\026\n\024_deletio" + + "n_protectionB\016\n\014_descriptionB\021\n\017_display" + + "_deviceB\016\n\014_fingerprintB\013\n\t_hostnameB\005\n\003" + + "_idB\032\n\030_instance_encryption_keyB\035\n\033_key_" + + "revocation_action_typeB\007\n\005_kindB\024\n\022_labe" + + "l_fingerprintB\027\n\025_last_start_timestampB\026" + + "\n\024_last_stop_timestampB\033\n\031_last_suspende" + + "d_timestampB\017\n\r_machine_typeB\013\n\t_metadat" + + "aB\023\n\021_min_cpu_platformB\007\n\005_nameB\035\n\033_netw" + + "ork_performance_configB\t\n\007_paramsB\035\n\033_pr" + + "ivate_ipv6_google_accessB\027\n\025_reservation" + + "_affinityB\022\n\020_resource_statusB\020\n\016_satisf" + + "ies_pziB\020\n\016_satisfies_pzsB\r\n\013_scheduling" + + "B\014\n\n_self_linkB\033\n\031_shielded_instance_con" + + "figB%\n#_shielded_instance_integrity_poli" + + "cyB\027\n\025_source_machine_imageB&\n$_source_m" + + "achine_image_encryption_keyB\023\n\021_start_re" + + "strictedB\t\n\007_statusB\021\n\017_status_messageB\007" + + "\n\005_tagsB\007\n\005_zone\"\271\003\n\026InstanceAggregatedL" + + "ist\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.InstanceAggreg" + + "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\032Z\n\nItemsEntry" + + "\022\013\n\003key\030\001 \001(\t\022;\n\005value\030\002 \001(\0132,.google.cl" + + "oud.compute.v1.InstancesScopedList:\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\"\251\001\n\027InstanceConsump" + + "tionData\022R\n\020consumption_info\030\322\345\344E \001(\01320." + + "google.cloud.compute.v1.InstanceConsumpt" + + "ionInfoH\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\027Ins" + + "tanceConsumptionInfo\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\tmemory_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_l" + + "ocal_ssd_gbB\014\n\n_memory_mbB\020\n\016_min_node_c" + + "pus\"\225\004\n\rInstanceGroup\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\033\n\013fingerprint\030\344\321\363o \001(\tH\002\210\001\001\022\020\n\002" + + "id\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\004" + + "name\030\213\365\315\001 \001(\tH\005\210\001\001\022;\n\013named_ports\030\214\307\362\313\001 " + + "\003(\0132\".google.cloud.compute.v1.NamedPort\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\024\n\004" + + "size\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_creati" + + "on_timestampB\016\n\014_descriptionB\016\n\014_fingerp" + + "rintB\005\n\003_idB\007\n\005_kindB\007\n\005_nameB\n\n\010_networ" + + "kB\t\n\007_regionB\014\n\n_self_linkB\007\n\005_sizeB\r\n\013_" + + "subnetworkB\007\n\005_zone\"\310\003\n\033InstanceGroupAgg" + + "regatedList\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.v1.Instan" + + "ceGroupAggregatedList.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\014u" + + "nreachables\030\237\240\206t \003(\t\0229\n\007warning\030\234\337\226\030 \001(\013" + + "2 .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(" + + "\01321.google.cloud.compute.v1.InstanceGrou" + + "psScopedList:\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\"\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.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\"\205\022\n\024InstanceGroupMa" + + "nager\022e\n\024all_instances_config\030\201\256\3305 \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" + + "nagerAllInstancesConfigH\000\210\001\001\022a\n\025auto_hea" + + "ling_policies\030\205\347\350\331\001 \003(\0132>.google.cloud.c" + + "ompute.v1.InstanceGroupManagerAutoHealin" + + "gPolicy\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;.google.cl" + + "oud.compute.v1.InstanceGroupManagerActio" + + "nsSummaryH\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.DistributionPoli" + + "cyH\005\210\001\001\022\033\n\013fingerprint\030\344\321\363o \001(\tH\006\210\001\001\022\020\n\002" + + "id\030\233\032 \001(\004H\007\210\001\001\022s\n\033instance_flexibility_p" + + "olicy\030\202\216\354\014 \001(\0132F.google.cloud.compute.v1" + + ".InstanceGroupManagerInstanceFlexibility" + + "PolicyH\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.InstanceGro" + + "upManagerInstanceLifecyclePolicyH\n\210\001\001\022\"\n" + + "\021instance_template\030\344\201\273\223\001 \001(\tH\013\210\001\001\022\024\n\004kin" + + "d\030\224\367\310\001 \001(\tH\014\210\001\001\022/\n\036list_managed_instance" + + "s_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\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\rsatisfies_pzs\030\253\335\253\345\001 \001(\010H\021\210\001\001\022\032\n\ts" + + "elf_link\030\215\222\305\331\001 \001(\tH\022\210\001\001\022[\n\016standby_polic" + + "y\030\204\206\216\356\001 \001(\0132:.google.cloud.compute.v1.In" + + "stanceGroupManagerStandbyPolicyH\023\210\001\001\022H\n\017" + + "stateful_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.Inst" + + "anceGroupManagerStatusH\025\210\001\001\022\030\n\014target_po" + + "ols\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\023target_stopped_size\030\241\326\223\001 \001(\005H\027\210\001\001\022" + + "&\n\025target_suspended_size\030\323\210\364\222\001 \001(\005H\030\210\001\001\022" + + "X\n\rupdate_policy\030\350\312\352S \001(\01329.google.cloud" + + ".compute.v1.InstanceGroupManagerUpdatePo" + + "licyH\031\210\001\001\022I\n\010versions\030\233\375\271M \003(\01324.google." + + "cloud.compute.v1.InstanceGroupManagerVer" + + "sion\022\024\n\004zone\030\254\307\344\001 \001(\tH\032\210\001\001\"n\n\033ListManage" + + "dInstancesResults\022,\n(UNDEFINED_LIST_MANA" + + "GED_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_con" + + "figB\025\n\023_base_instance_nameB\025\n\023_creation_" + + "timestampB\022\n\020_current_actionsB\016\n\014_descri" + + "ptionB\026\n\024_distribution_policyB\016\n\014_finger" + + "printB\005\n\003_idB\036\n\034_instance_flexibility_po" + + "licyB\021\n\017_instance_groupB\034\n\032_instance_lif" + + "ecycle_policyB\024\n\022_instance_templateB\007\n\005_" + + "kindB!\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\021\n\017_standb" + + "y_policyB\022\n\020_stateful_policyB\t\n\007_statusB" + + "\016\n\014_target_sizeB\026\n\024_target_stopped_sizeB" + + "\030\n\026_target_suspended_sizeB\020\n\016_update_pol" + + "icyB\007\n\005_zone\"\323\004\n\"InstanceGroupManagerAct" + + "ionsSummary\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\030creating_w" + + "ithout_retries\030\311\366\261\260\001 \001(\005H\002\210\001\001\022\031\n\010deletin" + + "g\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\nrefreshin" + + "g\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\010starti" + + "ng\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\tverify" + + "ing\030\311\241\254\327\001 \001(\005H\014\210\001\001B\r\n\013_abandoningB\013\n\t_cr" + + "eatingB\033\n\031_creating_without_retriesB\013\n\t_" + + "deletingB\007\n\005_noneB\r\n\013_recreatingB\r\n\013_ref" + + "reshingB\r\n\013_restartingB\013\n\t_resumingB\013\n\t_" + + "startingB\013\n\t_stoppingB\r\n\013_suspendingB\014\n\n" + + "_verifying\"\335\003\n\"InstanceGroupManagerAggre" + + "gatedList\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.Instance" + + "GroupManagerAggregatedList.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" - + "\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_" + + "\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.Instanc" + + "eGroupManagersScopedList:\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\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\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\"\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\"\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\"\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\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\'\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" + + "\n\010_warning\"\205\001\n&InstanceGroupManagerAllIn" + + "stancesConfig\022L\n\nproperties\030\263\232\266F \001(\01320.g" + + "oogle.cloud.compute.v1.InstancePropertie" + + "sPatchH\000\210\001\001B\r\n\013_properties\"\220\001\n%InstanceG" + + "roupManagerAutoHealingPolicy\022\035\n\014health_c" + + "heck\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_init" + + "ial_delay_sec\"\304\002\n-InstanceGroupManagerIn" + + "stanceFlexibilityPolicy\022~\n\023instance_sele" + + "ctions\030\321\204\371\n \003(\0132^.google.cloud.compute.v" + + "1.InstanceGroupManagerInstanceFlexibilit" + + "yPolicy.InstanceSelectionsEntry\032\222\001\n\027Inst" + + "anceSelectionsEntry\022\013\n\003key\030\001 \001(\t\022f\n\005valu" + + "e\030\002 \001(\0132W.google.cloud.compute.v1.Instan" + + "ceGroupManagerInstanceFlexibilityPolicyI" + + "nstanceSelection:\0028\001\"y\n>InstanceGroupMan" + + "agerInstanceFlexibilityPolicyInstanceSel" + + "ection\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+InstanceGrou" + + "pManagerInstanceLifecyclePolicy\022)\n\031defau" + + "lt_action_on_failure\030\325\304\242\035 \001(\tH\000\210\001\001\022\'\n\026fo" + + "rce_update_on_repair\030\313\371\362\251\001 \001(\tH\001\210\001\001\"d\n\026D" + + "efaultActionOnFailure\022\'\n#UNDEFINED_DEFAU" + + "LT_ACTION_ON_FAILURE\020\000\022\022\n\nDO_NOTHING\020\371\317\231" + + "\327\001\022\r\n\006REPAIR\020\215\247\374~\"O\n\023ForceUpdateOnRepair" + + "\022$\n UNDEFINED_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" + + "_failureB\031\n\027_force_update_on_repair\"\271\002\n\030" + + "InstanceGroupManagerList\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.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\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\"\215\006\n!Inst" + + "anceGroupManagerResizeRequest\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\022I\n" + + "\026requested_run_duration\030\371\213\331n \001(\0132!.googl" + + "e.cloud.compute.v1.DurationH\005\210\001\001\022\032\n\tresi" + + "ze_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\005state\030\221\211\2534 \001(\tH\t\210\001\001\022X\n\006status\030\362\237\267" + + "V \001(\0132@.google.cloud.compute.v1.Instance" + + "GroupManagerResizeRequestStatusH\n\210\001\001\022\024\n\004" + + "zone\030\254\307\344\001 \001(\tH\013\210\001\001\"\217\001\n\005State\022\023\n\017UNDEFINE" + + "D_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_descript" + + "ionB\005\n\003_idB\007\n\005_kindB\007\n\005_nameB\031\n\027_request" + + "ed_run_durationB\014\n\n_resize_byB\014\n\n_self_l" + + "inkB\024\n\022_self_link_with_idB\010\n\006_stateB\t\n\007_" + + "statusB\007\n\005_zone\"\347\001\n\'InstanceGroupManager" + + "ResizeRequestStatus\0225\n\005error\030\210\244\223. \001(\0132\036." + + "google.cloud.compute.v1.ErrorH\000\210\001\001\022j\n\014la" + + "st_attempt\030\244\254\250\317\001 \001(\0132K.google.cloud.comp" + + "ute.v1.InstanceGroupManagerResizeRequest" + + "StatusLastAttemptH\001\210\001\001B\010\n\006_errorB\017\n\r_las" + + "t_attempt\"u\n2InstanceGroupManagerResizeR" + + "equestStatusLastAttempt\0225\n\005error\030\210\244\223. \001(" + + "\0132\036.google.cloud.compute.v1.ErrorH\000\210\001\001B\010" + + "\n\006_error\"\334\002\n.InstanceGroupManagerResizeR" + + "equestsListResponse\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.v" + + "1.InstanceGroupManagerResizeRequest\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\"" + + "\274\001\n!InstanceGroupManagerStandbyPolicy\022!\n" + + "\021initial_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\006MANUAL\020\306\267\3678\022\024\n\016SCALE_OUT_POOL\020\202\344&B" + + "\024\n\022_initial_delay_secB\007\n\005_mode\"\321\003\n\032Insta" + + "nceGroupManagerStatus\022k\n\024all_instances_c" + + "onfig\030\201\256\3305 \001(\0132E.google.cloud.compute.v1" + + ".InstanceGroupManagerStatusAllInstancesC" + + "onfigH\000\210\001\001\022\033\n\nautoscaler\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.Instan" + + "ceGroupManagerStatusStatefulH\003\210\001\001\022a\n\016ver" + + "sion_target\030\330\335\376\211\001 \001(\0132@.google.cloud.com" + + "pute.v1.InstanceGroupManagerStatusVersio" + + "nTargetH\004\210\001\001B\027\n\025_all_instances_configB\r\n" + + "\013_autoscalerB\014\n\n_is_stableB\013\n\t_statefulB" + + "\021\n\017_version_target\"\216\001\n,InstanceGroupMana" + + "gerStatusAllInstancesConfig\022 \n\020current_r" + + "evision\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_effect" + + "ive\"\360\001\n\"InstanceGroupManagerStatusStatef" + + "ul\022#\n\023has_stateful_config\030\360\347\3264 \001(\010H\000\210\001\001\022" + + "t\n\024per_instance_configs\030\251\325\370\372\001 \001(\0132M.goog" + + "le.cloud.compute.v1.InstanceGroupManager" + + "StatusStatefulPerInstanceConfigsH\001\210\001\001B\026\n" + + "\024_has_stateful_configB\027\n\025_per_instance_c" + + "onfigs\"h\n4InstanceGroupManagerStatusStat" + + "efulPerInstanceConfigs\022\036\n\rall_effective\030" + + "\211\221\247\366\001 \001(\010H\000\210\001\001B\020\n\016_all_effective\"U\n\'Inst" + + "anceGroupManagerStatusVersionTarget\022\033\n\ni" + + "s_reached\030\275\376\310\316\001 \001(\010H\000\210\001\001B\r\n\013_is_reached\"" + + "\334\006\n InstanceGroupManagerUpdatePolicy\022-\n\034" + + "instance_redistribution_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.clou" + + "d.compute.v1.FixedOrPercentH\001\210\001\001\022I\n\017max_" + + "unavailable\030\365\313\213\301\001 \001(\0132\'.google.cloud.com" + + "pute.v1.FixedOrPercentH\002\210\001\001\022\037\n\016minimal_a" + + "ction\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\022replacem" + + "ent_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\032InstanceRedistributionType\022*\n" + + "&UNDEFINED_INSTANCE_REDISTRIBUTION_TYPE\020" + + "\000\"-\n\rMinimalAction\022\034\n\030UNDEFINED_MINIMAL_" + + "ACTION\020\000\"K\n\033MostDisruptiveAllowedAction\022" + + ",\n(UNDEFINED_MOST_DISRUPTIVE_ALLOWED_ACT" + + "ION\020\000\"[\n\021ReplacementMethod\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\004Type\022\022\n\016UNDEFINED_" + + "TYPE\020\000\022\025\n\rOPPORTUNISTIC\020\351\267\350\314\001B\037\n\035_instan" + + "ce_redistribution_typeB\014\n\n_max_surgeB\022\n\020" + + "_max_unavailableB\021\n\017_minimal_actionB!\n\037_" + + "most_disruptive_allowed_actionB\025\n\023_repla" + + "cement_methodB\007\n\005_type\"\314\001\n\033InstanceGroup" + + "ManagerVersion\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\013targ" + + "et_size\030\357\363\375\035 \001(\0132\'.google.cloud.compute." + + "v1.FixedOrPercentH\002\210\001\001B\024\n\022_instance_temp" + + "lateB\007\n\005_nameB\016\n\014_target_size\"D\n,Instanc" + + "eGroupManagersAbandonInstancesRequest\022\024\n" + + "\tinstances\030\376\374\357\r \003(\t\"\365\002\n(InstanceGroupMan" + + "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\"o\n+I" + + "nstanceGroupManagersCreateInstancesReque" + + "st\022@\n\tinstances\030\376\374\357\r \003(\0132*.google.cloud." + + "compute.v1.PerInstanceConfig\"\236\001\n+Instanc" + + "eGroupManagersDeleteInstancesRequest\022\024\n\t" + + "instances\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_validation_error\"D\n0Instanc" + + "eGroupManagersDeletePerInstanceConfigsRe" + + "q\022\020\n\005names\030\310\256\3571 \003(\t\"\244\001\n\'InstanceGroupMan" + + "agersListErrorsResponse\022D\n\005items\030\300\317\367/ \003(" + + "\01322.google.cloud.compute.v1.InstanceMana" + + "gedByIgmError\022\037\n\017next_page_token\030\225\272\206& \001(" + + "\tH\000\210\001\001B\022\n\020_next_page_token\"\261\001\n1InstanceG" + + "roupManagersListManagedInstancesResponse" + + "\022G\n\021managed_instances\030\336\233\251\240\001 \003(\0132(.google" + + ".cloud.compute.v1.ManagedInstance\022\037\n\017nex" + + "t_page_token\030\225\272\206& \001(\tH\000\210\001\001B\022\n\020_next_page" + + "_token\"\353\001\n/InstanceGroupManagersListPerI" + + "nstanceConfigsResp\022<\n\005items\030\300\317\367/ \003(\0132*.g" + + "oogle.cloud.compute.v1.PerInstanceConfig" + + "\022\037\n\017next_page_token\030\225\272\206& \001(\tH\000\210\001\001\0229\n\007war" + + "ning\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_war" + + "ning\"\177\n/InstanceGroupManagersPatchPerIns" + + "tanceConfigsReq\022L\n\024per_instance_configs\030" + + "\251\325\370\372\001 \003(\0132*.google.cloud.compute.v1.PerI" + + "nstanceConfig\"E\n-InstanceGroupManagersRe" + + "createInstancesRequest\022\024\n\tinstances\030\376\374\357\r" + + " \003(\t\"C\n+InstanceGroupManagersResumeInsta" + + "ncesRequest\022\024\n\tinstances\030\376\374\357\r \003(\t\"\273\001\n\037In" + + "stanceGroupManagersScopedList\022Q\n\027instanc" + + "e_group_managers\030\220\372\211f \003(\0132-.google.cloud" + + ".compute.v1.InstanceGroupManager\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\"k\n/InstanceGroup", + "ManagersSetInstanceTemplateRequest\022\"\n\021in" + + "stance_template\030\344\201\273\223\001 \001(\tH\000\210\001\001B\024\n\022_insta" + + "nce_template\"s\n*InstanceGroupManagersSet" + + "TargetPoolsRequest\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_fi" + + "ngerprint\"B\n*InstanceGroupManagersStartI" + + "nstancesRequest\022\024\n\tinstances\030\376\374\357\r \003(\t\"l\n" + + ")InstanceGroupManagersStopInstancesReque" + + "st\022\032\n\nforce_stop\030\326\241\241@ \001(\010H\000\210\001\001\022\024\n\tinstan" + + "ces\030\376\374\357\r \003(\tB\r\n\013_force_stop\"u\n,InstanceG" + + "roupManagersSuspendInstancesRequest\022\035\n\rf" + + "orce_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_suspend\"\200\001\n0InstanceG" + + "roupManagersUpdatePerInstanceConfigsReq\022" + + "L\n\024per_instance_configs\030\251\325\370\372\001 \003(\0132*.goog" + + "le.cloud.compute.v1.PerInstanceConfig\"e\n" + + "!InstanceGroupsAddInstancesRequest\022@\n\tin" + + "stances\030\376\374\357\r \003(\0132*.google.cloud.compute." + + "v1.InstanceReference\"\276\002\n\033InstanceGroupsL" + + "istInstances\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.Insta" + + "nceWithNamedPorts\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(\013" + + "2 .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\"\241\001\n\"InstanceGroups" + + "ListInstancesRequest\022\036\n\016instance_state\030\347" + + "\360\374+ \001(\tH\000\210\001\001\"H\n\rInstanceState\022\034\n\030UNDEFIN" + + "ED_INSTANCE_STATE\020\000\022\t\n\003ALL\020\201\373\003\022\016\n\007RUNNIN" + + "G\020\237\303\3529B\021\n\017_instance_state\"h\n$InstanceGro" + + "upsRemoveInstancesRequest\022@\n\tinstances\030\376" + + "\374\357\r \003(\0132*.google.cloud.compute.v1.Instan" + + "ceReference\"\246\001\n\030InstanceGroupsScopedList" + + "\022C\n\017instance_groups\030\276\301\337\256\001 \003(\0132&.google.c" + + "loud.compute.v1.InstanceGroup\0229\n\007warning" + + "\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1.Warn" + + "ingH\000\210\001\001B\n\n\010_warning\"\216\001\n\"InstanceGroupsS" + + "etNamedPortsRequest\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\".goog" + + "le.cloud.compute.v1.NamedPortB\016\n\014_finger" + + "print\"\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.comput" + + "e.v1.Instance\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\"\253\002\n\025InstanceListReferr" + + "ers\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.Reference\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\"" + + "\274\002\n\031InstanceManagedByIgmError\022]\n\005error\030\210" + + "\244\223. \001(\0132F.google.cloud.compute.v1.Instan" + + "ceManagedByIgmErrorManagedInstanceErrorH" + + "\000\210\001\001\022q\n\027instance_action_details\030\243\374\253\213\001 \001(" + + "\0132G.google.cloud.compute.v1.InstanceMana" + + "gedByIgmErrorInstanceActionDetailsH\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.InstanceManagedByIgmErrorInstanceActi" + + "onDetails\022\026\n\006action\030\266\374\275Y \001(\tH\000\210\001\001\022\030\n\010ins" + + "tance\030\225\251\332\010 \001(\tH\001\210\001\001\022I\n\007version\030\330\271\324\247\001 \001(\013" + + "2/.google.cloud.compute.v1.ManagedInstan" + + "ceVersionH\002\210\001\001\"\234\002\n\006Action\022\024\n\020UNDEFINED_A" + + "CTION\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\nRECREA" + + "TING\020\354\213\376\210\001\022\021\n\nREFRESHING\020\247\376\354M\022\022\n\nRESTART" + + "ING\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\tVERIFYING\020\251\301\214\010B\t\n\007_actionB\013\n\t_ins" + + "tanceB\n\n\010_version\"t\n-InstanceManagedByIg" + + "mErrorManagedInstanceError\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_c" + + "odeB\n\n\010_message\"\202\001\n\023InstanceMoveRequest\022" + + " \n\020destination_zone\030\275\342\357> \001(\tH\000\210\001\001\022 \n\017tar" + + "get_instance\030\203\217\226\212\001 \001(\tH\001\210\001\001B\023\n\021_destinat" + + "ion_zoneB\022\n\020_target_instance\"\261\001\n\016Instanc" + + "eParams\022c\n\025resource_manager_tags\030\374\233\213\264\001 \003" + + "(\0132@.google.cloud.compute.v1.InstancePar" + + "ams.ResourceManagerTagsEntry\032:\n\030Resource" + + "ManagerTagsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + + " \001(\t:\0028\001\"\330\020\n\022InstanceProperties\022\\\n\031advan" + + "ced_machine_features\030\262\347\252\303\001 \001(\01320.google." + + "cloud.compute.v1.AdvancedMachineFeatures" + + "H\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_config\030\365\222\372\351\001 \001(\013" + + "23.google.cloud.compute.v1.ConfidentialI" + + "nstanceConfigH\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.clou" + + "d.compute.v1.AttachedDisk\022J\n\022guest_accel" + + "erators\030\357\314\207\335\001 \003(\0132*.google.cloud.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.Instance" + + "Properties.LabelsEntry\022\034\n\014machine_type\030\262" + + "\260\312l \001(\tH\005\210\001\001\022;\n\010metadata\030\257\366\265) \001(\0132!.goog" + + "le.cloud.compute.v1.MetadataH\006\210\001\001\022 \n\020min" + + "_cpu_platform\030\367\233\352s \001(\tH\007\210\001\001\022H\n\022network_i" + + "nterfaces\030\213\332\222\031 \003(\0132).google.cloud.comput" + + "e.v1.NetworkInterface\022^\n\032network_perform" + + "ance_config\030\342\227\370\275\001 \001(\01321.google.cloud.com" + + "pute.v1.NetworkPerformanceConfigH\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,.goo" + + "gle.cloud.compute.v1.ReservationAffinity" + + "H\n\210\001\001\022g\n\025resource_manager_tags\030\374\233\213\264\001 \003(\013" + + "2D.google.cloud.compute.v1.InstancePrope" + + "rties.ResourceManagerTagsEntry\022\034\n\021resour" + + "ce_policies\030\341\234\314\n \003(\t\022@\n\nscheduling\030\224\313\261\270\001" + + " \001(\0132#.google.cloud.compute.v1.Schedulin" + + "gH\013\210\001\001\022E\n\020service_accounts\030\260\304\253\204\001 \003(\0132\'.g" + + "oogle.cloud.compute.v1.ServiceAccount\022Y\n" + + "\030shielded_instance_config\030\265\213\221\006 \001(\0132/.goo" + + "gle.cloud.compute.v1.ShieldedInstanceCon" + + "figH\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\013LabelsEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032:\n\030Resource" + + "ManagerTagsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + + " \001(\t:\0028\001\"\215\001\n\027KeyRevocationActionType\022(\n$" + + "UNDEFINED_KEY_REVOCATION_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\027Pri" + + "vateIpv6GoogleAccess\022(\n$UNDEFINED_PRIVAT" + + "E_IPV6_GOOGLE_ACCESS\020\000\022-\n%ENABLE_BIDIREC" + + "TIONAL_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\027IN" + + "HERIT_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_configB\016\n\014_descri" + + "ptionB\035\n\033_key_revocation_action_typeB\017\n\r" + + "_machine_typeB\013\n\t_metadataB\023\n\021_min_cpu_p" + + "latformB\035\n\033_network_performance_configB\035" + + "\n\033_private_ipv6_google_accessB\027\n\025_reserv" + + "ation_affinityB\r\n\013_schedulingB\033\n\031_shield" + + "ed_instance_configB\007\n\005_tags\"\240\002\n\027Instance" + + "PropertiesPatch\022P\n\006labels\030\377\277\301\356\001 \003(\0132<.go" + + "ogle.cloud.compute.v1.InstanceProperties" + + "Patch.LabelsEntry\022S\n\010metadata\030\257\366\265) \003(\0132>" + + ".google.cloud.compute.v1.InstancePropert" + + "iesPatch.MetadataEntry\032-\n\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032/\n\rMetadat" + + "aEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\":" + + "\n\021InstanceReference\022\030\n\010instance\030\225\251\332\010 \001(\t" + + "H\000\210\001\001B\013\n\t_instance\"\327\001\n\020InstanceSettings\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.InstanceSettingsMetada" + + "taH\002\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tH\003\210\001\001B\016\n\014_finger" + + "printB\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.v1.InstanceSe" + + "ttingsMetadata.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\005va" + + "lue\030\002 \001(\t:\0028\001B\007\n\005_kind\"\237\004\n\020InstanceTempl" + + "ate\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+.goo" + + "gle.cloud.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_lin" + + "k\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.SourceIn" + + "stanceParamsH\t\210\001\001B\025\n\023_creation_timestamp" + + "B\016\n\014_descriptionB\005\n\003_idB\007\n\005_kindB\007\n\005_nam" + + "eB\r\n\013_propertiesB\t\n\007_regionB\014\n\n_self_lin" + + "kB\022\n\020_source_instanceB\031\n\027_source_instanc" + + "e_params\"\270\003\n\036InstanceTemplateAggregatedL" + + "ist\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022T\n\005items\030\300\317\367/ \003(\0132" + + "B.google.cloud.compute.v1.InstanceTempla" + + "teAggregatedList.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\007warnin" + + "g\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1.War" + + "ningH\004\210\001\001\032b\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022C\n\005" + + "value\030\002 \001(\01324.google.cloud.compute.v1.In" + + "stanceTemplatesScopedList:\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\024InstanceTemplateList\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.InstanceTemplate\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\"" + + "\257\001\n\033InstanceTemplatesScopedList\022I\n\022insta" + + "nce_templates\030\217\270\245\333\001 \003(\0132).google.cloud.c" + + "ompute.v1.InstanceTemplate\0229\n\007warning\030\234\337" + + "\226\030 \001(\0132 .google.cloud.compute.v1.Warning" + + "H\000\210\001\001B\n\n\010_warning\"\376\002\n\026InstanceWithNamedP" + + "orts\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.v" + + "1.NamedPort\022\026\n\006status\030\362\237\267V \001(\tH\001\210\001\001\"\334\001\n\006" + + "Status\022\024\n\020UNDEFINED_STATUS\020\000\022\026\n\016DEPROVIS" + + "IONING\020\356\223\304\314\001\022\024\n\014PROVISIONING\020\355\365\332\212\001\022\021\n\tRE" + + "PAIRING\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\nSUSPENDING\020\246\324\230\365\001\022" + + "\021\n\nTERMINATED\020\243\364\233wB\013\n\t_instanceB\t\n\007_stat" + + "us\"C\n#InstancesAddResourcePoliciesReques" + + "t\022\034\n\021resource_policies\030\341\234\314\n \003(\t\"\212\002\n$Inst" + + "ancesBulkInsertOperationMetadata\022t\n\023per_" + + "location_status\030\232\351\204P \003(\0132T.google.cloud." + + "compute.v1.InstancesBulkInsertOperationM" + + "etadata.PerLocationStatusEntry\032l\n\026PerLoc" + + "ationStatusEntry\022\013\n\003key\030\001 \001(\t\022A\n\005value\030\002" + + " \001(\01322.google.cloud.compute.v1.BulkInser" + + "tOperationStatus:\0028\001\"\330\001\n&InstancesGetEff" + + "ectiveFirewallsResponse\022t\n\020firewall_poli" + + "cys\030\302\312\374\303\001 \003(\0132V.google.cloud.compute.v1." + + "InstancesGetEffectiveFirewallsResponseEf" + + "fectiveFirewallPolicy\0228\n\tfirewalls\030\363\306\350\201\001" + + " \003(\0132!.google.cloud.compute.v1.Firewall\"" + + "\333\003\n=InstancesGetEffectiveFirewallsRespon" + + "seEffectiveFirewallPolicy\022\034\n\014display_nam" + + "e\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\005rules\030\367\221\3653 \003" + + "(\0132+.google.cloud.compute.v1.FirewallPol" + + "icyRule\022\033\n\nshort_name\030\356\270\320\352\001 \001(\tH\003\210\001\001\022\024\n\004" + + "type\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_GL" + + "OBAL\020\263\227\324\034\022\026\n\017SYSTEM_REGIONAL\020\257\214\222M\022\023\n\013UNS" + + "PECIFIED\020\227\276\230\373\001B\017\n\r_display_nameB\007\n\005_name" + + "B\013\n\t_priorityB\r\n\013_short_nameB\007\n\005_type\"F\n" + + "&InstancesRemoveResourcePoliciesRequest\022" + + "\034\n\021resource_policies\030\341\234\314\n \003(\t\"\225\001\n\023Instan" + + "cesScopedList\0227\n\tinstances\030\376\374\357\r \003(\0132!.go" + + "ogle.cloud.compute.v1.Instance\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\"\327\001\n\031InstancesSetLa" + + "belsRequest\022!\n\021label_fingerprint\030\231\360\367T \001(" + + "\tH\000\210\001\001\022R\n\006labels\030\377\277\301\356\001 \003(\0132>.google.clou" + + "d.compute.v1.InstancesSetLabelsRequest.L" + + "abelsEntry\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#InstancesSetMachineResourcesRequest\022J" + + "\n\022guest_accelerators\030\357\314\207\335\001 \003(\0132*.google." + + "cloud.compute.v1.AcceleratorConfig\"O\n\036In" + + "stancesSetMachineTypeRequest\022\034\n\014machine_" + + "type\030\262\260\312l \001(\tH\000\210\001\001B\017\n\r_machine_type\"Z\n!I" + + "nstancesSetMinCpuPlatformRequest\022 \n\020min_" + + "cpu_platform\030\367\233\352s \001(\tH\000\210\001\001B\023\n\021_min_cpu_p" + + "latform\"h\n\027InstancesSetNameRequest\022\035\n\014cu" + + "rrent_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!Ins" + + "tancesSetSecurityPolicyRequest\022\035\n\022networ" + + "k_interfaces\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!In" + + "stancesSetServiceAccountRequest\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_em" + + "ail\"w\n&InstancesStartWithEncryptionKeyRe" + + "quest\022M\n\005disks\030\366\314\312- \003(\0132;.google.cloud.c" + + "ompute.v1.CustomerEncryptionKeyProtected" + + "Disk\"\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\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\021labe" + + "l_fingerprint\030\231\360\367T \001(\tH\006\210\001\001\022H\n\006labels\030\377\277" + + "\301\356\001 \003(\01324.google.cloud.compute.v1.Instan" + + "tSnapshot.LabelsEntry\022\024\n\004name\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\022W\n\017resource_" + + "status\030\303\372\367v \001(\01326.google.cloud.compute.v" + + "1.InstantSnapshotResourceStatusH\t\210\001\001\022\036\n\r" + + "satisfies_pzi\030\241\335\253\345\001 \001(\010H\n\210\001\001\022\036\n\rsatisfie" + + "s_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\013source_disk\030\301\356\264\327\001 \001(\tH\016\210\001\001\022\037\n\016sou" + + "rce_disk_id\030\331\315\311\330\001 \001(\tH\017\210\001\001\022\026\n\006status\030\362\237\267" + + "V \001(\tH\020\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(\tH\021\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\"" + + "j\n\014Architecture\022\032\n\026UNDEFINED_ARCHITECTUR" + + "E\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\"u\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\023\n\013UNAVAILABLE\020\260\330\245\305\001B\017\n\r_architect" + + "ureB\025\n\023_creation_timestampB\016\n\014_descripti" + + "onB\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_satisfies_pziB\020\n\016_" + + "satisfies_pzsB\014\n\n_self_linkB\024\n\022_self_lin" + + "k_with_idB\016\n\014_source_diskB\021\n\017_source_dis" + + "k_idB\t\n\007_statusB\007\n\005_zone\"\316\003\n\035InstantSnap" + + "shotAggregatedList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022S\n\005" + + "items\030\300\317\367/ \003(\0132A.google.cloud.compute.v1" + + ".InstantSnapshotAggregatedList.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\022\027\n\014unreachables\030\237\240\206t \003(\t\0229\n\007warning" + + "\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1.Warn" + + "ingH\004\210\001\001\032a\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022B\n\005v" + + "alue\030\002 \001(\01323.google.cloud.compute.v1.Ins" + + "tantSnapshotsScopedList:\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\"\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.c" + + "loud.compute.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\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\"[\n\035I" + + "nstantSnapshotResourceStatus\022#\n\022storage_" + + "size_bytes\030\361\215\346\270\001 \001(\003H\000\210\001\001B\025\n\023_storage_si" + + "ze_bytes\"\254\001\n\032InstantSnapshotsScopedList\022" + + "G\n\021instant_snapshots\030\321\274\227\235\001 \003(\0132(.google." + + "cloud.compute.v1.InstantSnapshot\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\"h\n\017Int64RangeMat" + + "ch\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_range_endB\016\n\014_ra" + + "nge_start\"\273\020\n\014Interconnect\022\036\n\radmin_enab" + + "led\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.g" + + "oogle.cloud.compute.v1.InterconnectCircu" + + "itInfo\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(\tH\002\210\001\001\022\034\n\013des" + + "cription\030\374\207\326\311\001 \001(\tH\003\210\001\001\022T\n\020expected_outa" + + "ges\030\233\352\216~ \003(\01327.google.cloud.compute.v1.I" + + "nterconnectOutageNotification\022\"\n\021google_" + + "ip_address\030\242\205\245\323\001 \001(\tH\004\210\001\001\022$\n\023google_refe" + + "rence_id\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\030interconnect_attachments\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\004k" + + "ind\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\022E\n\006labels\030\377\277\301\356\001 \003(\01321.googl" + + "e.cloud.compute.v1.Interconnect.LabelsEn" + + "try\022\032\n\tlink_type\030\337\210\276\371\001 \001(\tH\n\210\001\001\022\031\n\010locat" + + "ion\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.InterconnectMac" + + "secH\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\021noc_contact_em" + + "ail\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\022requested_features\030\356\363\367\333\001 \003(\t\022$\n\024req" + + "uested_link_count\030\373\333\275\025 \001(\005H\024\210\001\001\022\036\n\rsatis" + + "fies_pzs\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\013La" + + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\"5\n\021AvailableFeatures\022 \n\034UNDEFINED_AVAI" + + "LABLE_FEATURES\020\000\"j\n\020InterconnectType\022\037\n\033" + + "UNDEFINED_INTERCONNECT_TYPE\020\000\022\020\n\tDEDICAT" + + "ED\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\032LINK_TYPE_ETHERNET_100G_LR\020\347\362\201\241\001\022 \n" + + "\031LINK_TYPE_ETHERNET_10G_LR\020\245\271\361p\"`\n\021Opera" + + "tionalStatus\022 \n\034UNDEFINED_OPERATIONAL_ST" + + "ATUS\020\000\022\020\n\tOS_ACTIVE\020\301\373\310\032\022\027\n\020OS_UNPROVISI" + + "ONED\020\300\301\252r\"5\n\021RequestedFeatures\022 \n\034UNDEFI" + + "NED_REQUESTED_FEATURES\020\000\"C\n\005State\022\023\n\017UND" + + "EFINED_STATE\020\000\022\016\n\006ACTIVE\020\206\346\211\226\001\022\025\n\rUNPROV" + + "ISIONED\020\333\307\327\366\001B\020\n\016_admin_enabledB\025\n\023_crea" + + "tion_timestampB\020\n\016_customer_nameB\016\n\014_des" + + "criptionB\024\n\022_google_ip_addressB\026\n\024_googl" + + "e_reference_idB\005\n\003_idB\024\n\022_interconnect_t" + + "ypeB\007\n\005_kindB\024\n\022_label_fingerprintB\014\n\n_l" + + "ink_typeB\013\n\t_locationB\t\n\007_macsecB\021\n\017_mac" + + "sec_enabledB\007\n\005_nameB\024\n\022_noc_contact_ema" + + "ilB\025\n\023_operational_statusB\022\n\020_peer_ip_ad" + + "dressB\031\n\027_provisioned_link_countB\022\n\020_rem" + + "ote_locationB\027\n\025_requested_link_countB\020\n" + + "\016_satisfies_pzsB\014\n\n_self_linkB\010\n\006_state\"" + + "\334\031\n\026InterconnectAttachment\022\036\n\radmin_enab" + + "led\030\321\354\301\324\001 \001(\010H\000\210\001\001\022\031\n\tbandwidth\030\261\201\323V \001(\t" + + "H\001\210\001\001\022!\n\026candidate_ipv6_subnets\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\031clou" + + "d_router_ipv6_address\030\310\223\277\327\001 \001(\tH\003\210\001\001\022/\n\036" + + "cloud_router_ipv6_interface_id\030\215\311\310\370\001 \001(\t" + + "H\004\210\001\001\022r\n\031configuration_constraints\030\355\360\326U " + + "\001(\0132G.google.cloud.compute.v1.Interconne" + + "ctAttachmentConfigurationConstraintsH\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_address\030\361\371\253\212\001" + + " \001(\tH\010\210\001\001\0222\n!customer_router_ipv6_interf" + + "ace_id\030\204\206\326\265\001 \001(\tH\t\210\001\001\022!\n\021dataplane_versi" + + "on\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\023" + + "google_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_addresses\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\021label_fingerpr" + + "int\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.InterconnectAtta" + + "chment.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_stat" + + "us\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\020" + + "partner_metadata\030\306\341\266\037 \001(\0132>.google.cloud" + + ".compute.v1.InterconnectAttachmentPartne" + + "rMetadataH\030\210\001\001\022e\n\031private_interconnect_i" + + "nfo\030\203\354\221q \001(\0132:.google.cloud.compute.v1.I" + + "nterconnectAttachmentPrivateInfoH\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\rsatisfies_pzs\030\253\335\253\345\001 \001(\010H\035\210\001\001\022\032\n\tself_l" + + "ink\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\013L" + + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + + "8\001\"\376\001\n\tBandwidth\022\027\n\023UNDEFINED_BANDWIDTH\020" + + "\000\022\017\n\010BPS_100G\020\260\225\320\027\022\017\n\010BPS_100M\020\266\225\320\027\022\017\n\007B" + + "PS_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_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\026EdgeAvailability" + + "Domain\022&\n\"UNDEFINED_EDGE_AVAILABILITY_DO" + + "MAIN\020\000\022\035\n\025AVAILABILITY_DOMAIN_1\020\332\373\326\246\001\022\035\n" + + "\025AVAILABILITY_DOMAIN_2\020\333\373\326\246\001\022\037\n\027AVAILABI" + + "LITY_DOMAIN_ANY\020\265\352\367\262\001\"A\n\nEncryption\022\030\n\024U" + + "NDEFINED_ENCRYPTION\020\000\022\014\n\005IPSEC\020\252\243\251!\022\013\n\004N" + + "ONE\020\270\316\222\001\"`\n\021OperationalStatus\022 \n\034UNDEFIN" + + "ED_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\017UNDEF" + + "INED_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_PARTN" + + "ER\020\340\373\372\270\001\022\031\n\021STATE_UNSPECIFIED\020\311\320\274\340\001\022\025\n\rU" + + "NPROVISIONED\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\020PARTNER_PROVIDER\020\250\367\267\346\001B\020\n\016_admin_en" + + "abledB\014\n\n_bandwidthB\032\n\030_cloud_router_ip_" + + "addressB\034\n\032_cloud_router_ipv6_addressB!\n" + + "\037_cloud_router_ipv6_interface_idB\034\n\032_con" + + "figuration_constraintsB\025\n\023_creation_time" + + "stampB\035\n\033_customer_router_ip_addressB\037\n\035" + + "_customer_router_ipv6_addressB$\n\"_custom" + + "er_router_ipv6_interface_idB\024\n\022_dataplan" + + "e_versionB\016\n\014_descriptionB\033\n\031_edge_avail" + + "ability_domainB\r\n\013_encryptionB\026\n\024_google" + + "_reference_idB\005\n\003_idB\017\n\r_interconnectB\007\n" + + "\005_kindB\024\n\022_label_fingerprintB\006\n\004_mtuB\007\n\005" + + "_nameB\025\n\023_operational_statusB\016\n\014_pairing" + + "_keyB\016\n\014_partner_asnB\023\n\021_partner_metadat" + + "aB\034\n\032_private_interconnect_infoB\t\n\007_regi" + + "onB\021\n\017_remote_serviceB\t\n\007_routerB\020\n\016_sat" + + "isfies_pzsB\014\n\n_self_linkB\r\n\013_stack_typeB" + + "\010\n\006_stateB\020\n\016_subnet_lengthB\007\n\005_typeB\020\n\016" + + "_vlan_tag8021q\"\343\003\n$InterconnectAttachmen" + + "tAggregatedList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022Z\n\005ite" + + "ms\030\300\317\367/ \003(\0132H.google.cloud.compute.v1.In" + + "terconnectAttachmentAggregatedList.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\032h\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022" + + "I\n\005value\030\002 \001(\0132:.google.cloud.compute.v1" + + ".InterconnectAttachmentsScopedList:\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\"\263\002\n.InterconnectAtt" + + "achmentConfigurationConstraints\022\030\n\007bgp_m" + + "d5\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.Int" + + "erconnectAttachmentConfigurationConstrai" + + "ntsBgpPeerASNRange\"b\n\006BgpMd5\022\025\n\021UNDEFINE" + + "D_BGP_MD5\020\000\022\024\n\014MD5_OPTIONAL\020\201\242\340\375\001\022\023\n\014MD5" + + "_REQUIRED\020\300\342\373g\022\026\n\017MD5_UNSUPPORTED\020\324\341\273)B\n" + + "\n\010_bgp_md5\"w\n=InterconnectAttachmentConf" + + "igurationConstraintsBgpPeerASNRange\022\022\n\003m" + + "ax\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\032InterconnectAttachmentLi" + + "st\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.InterconnectAtt" + + "achment\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\001\n%InterconnectAttachmentPa" + + "rtnerMetadata\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\nportal_url\030\234\316\255\200\001 \001(\tH\002\210\001\001B\024\n\022_interco" + + "nnect_nameB\017\n\r_partner_nameB\r\n\013_portal_u" + + "rl\"K\n!InterconnectAttachmentPrivateInfo\022" + + "\031\n\010tag8021q\030\300\321\316\201\001 \001(\rH\000\210\001\001B\013\n\t_tag8021q\"" + + "\301\001\n!InterconnectAttachmentsScopedList\022U\n" + + "\030interconnect_attachments\030\377\322\353\312\001 \003(\0132/.go" + + "ogle.cloud.compute.v1.InterconnectAttach" + + "ment\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud." + + "compute.v1.WarningH\000\210\001\001B\n\n\010_warning\"\305\001\n\027" + + "InterconnectCircuitInfo\022\"\n\022customer_dema" + + "rc_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_goo" + + "gle_circuit_idB\023\n\021_google_demarc_id\"\225\005\n\027" + + "InterconnectDiagnostics\022P\n\narp_caches\030\221\326" + + "\330\305\001 \003(\01328.google.cloud.compute.v1.Interc" + + "onnectDiagnosticsARPEntry\022(\n\027bundle_aggr" + + "egation_type\030\224\311\262\317\001 \001(\tH\000\210\001\001\022)\n\031bundle_op" + + "erational_status\030\334\227\3402 \001(\tH\001\210\001\001\022L\n\005links\030" + + "\271\237\2151 \003(\0132:.google.cloud.compute.v1.Inter" + + "connectDiagnosticsLinkStatus\022\034\n\013mac_addr" + + "ess\030\204\322\310\236\001 \001(\tH\002\210\001\001\"\212\001\n\025BundleAggregation" + + "Type\022%\n!UNDEFINED_BUNDLE_AGGREGATION_TYP" + + "E\020\000\022#\n\034BUNDLE_AGGREGATION_TYPE_LACP\020\315\242\236\r" + + "\022%\n\036BUNDLE_AGGREGATION_TYPE_STATIC\020\331\230\225\030\"" + + "\217\001\n\027BundleOperationalStatus\022\'\n#UNDEFINED" + + "_BUNDLE_OPERATIONAL_STATUS\020\000\022&\n\036BUNDLE_O" + + "PERATIONAL_STATUS_DOWN\020\205\256\264\330\001\022#\n\034BUNDLE_O" + + "PERATIONAL_STATUS_UP\020\276\203\371LB\032\n\030_bundle_agg" + + "regation_typeB\034\n\032_bundle_operational_sta" + + "tusB\016\n\014_mac_address\"{\n\037InterconnectDiagn" + + "osticsARPEntry\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" + + "_addressB\016\n\014_mac_address\"\372\001\n%Interconnec" + + "tDiagnosticsLinkLACPStatus\022 \n\020google_sys" + + "tem_id\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\005State\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_syste" + + "m_idB\025\n\023_neighbor_system_idB\010\n\006_state\"\343\001" + + "\n\'InterconnectDiagnosticsLinkOpticalPowe" + + "r\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\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!Intercon" + + "nectDiagnosticsLinkStatus\022P\n\narp_caches\030" + + "\221\326\330\305\001 \003(\01328.google.cloud.compute.v1.Inte" + + "rconnectDiagnosticsARPEntry\022\032\n\ncircuit_i" + + "d\030\261\372\257k \001(\tH\000\210\001\001\022\034\n\rgoogle_demarc\030\214\217\003 \001(\t" + + "H\001\210\001\001\022\\\n\013lacp_status\030\257\304\236\254\001 \001(\0132>.google." + + "cloud.compute.v1.InterconnectDiagnostics" + + "LinkLACPStatusH\002\210\001\001\022U\n\006macsec\030\242\301\227\374\001 \001(\0132" + + "<.google.cloud.compute.v1.InterconnectDi" + + "agnosticsMacsecStatusH\003\210\001\001\022\"\n\022operationa" + + "l_status\030\377\261\360_ \001(\tH\004\210\001\001\022i\n\027receiving_opti" + + "cal_power\030\337\255\330t \001(\0132@.google.cloud.comput" + + "e.v1.InterconnectDiagnosticsLinkOpticalP" + + "owerH\005\210\001\001\022m\n\032transmitting_optical_power\030" + + "\235\272\211\333\001 \001(\0132@.google.cloud.compute.v1.Inte" + + "rconnectDiagnosticsLinkOpticalPowerH\006\210\001\001" + + "\"\177\n\021OperationalStatus\022 \n\034UNDEFINED_OPERA" + + "TIONAL_STATUS\020\000\022$\n\034LINK_OPERATIONAL_STAT" + + "US_DOWN\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_dema" + + "rcB\016\n\014_lacp_statusB\t\n\007_macsecB\025\n\023_operat" + + "ional_statusB\032\n\030_receiving_optical_power" + + "B\035\n\033_transmitting_optical_power\"n\n#Inter" + + "connectDiagnosticsMacsecStatus\022\022\n\003ckn\030\206\202" + + "\006 \001(\tH\000\210\001\001\022\033\n\013operational\030\322\307\354= \001(\010H\001\210\001\001B" + + "\006\n\004_cknB\016\n\014_operational\"\251\002\n\020Interconnect" + + "List\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0227\n\005items\030\300\317\367/ \003(\013" + + "2%.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_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\"\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\024available_link_types\030\252\326\371\362\001 \003(\t\022\024\n\004c" + + "ity\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\013description\030\374\207\326\311\001 \001(\tH\005\210\001\001\022\"\n\021facili" + + "ty_provider\030\215\240\246\376\001 \001(\tH\006\210\001\001\022-\n\035facility_p" + + "rovider_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\004nam" + + "e\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.google.cloud.compute.v1.Interconnect" + + "LocationRegionInfo\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\014suppor" + + "ts_pzs\030\356\366\205( \001(\010H\016\210\001\001\"H\n\021AvailableFeature" + + "s\022 \n\034UNDEFINED_AVAILABLE_FEATURES\020\000\022\021\n\tI" + + "F_MACSEC\020\204\374\372\274\001\"~\n\022AvailableLinkTypes\022\"\n\036" + + "UNDEFINED_AVAILABLE_LINK_TYPES\020\000\022\"\n\032LINK" + + "_TYPE_ETHERNET_100G_LR\020\347\362\201\241\001\022 \n\031LINK_TYP" + + "E_ETHERNET_10G_LR\020\245\271\361p\"\352\001\n\tContinent\022\027\n\023" + + "UNDEFINED_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_ASI" + + "A_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\006Status\022\024\n\020UNDEFIN" + + "ED_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_availability_zone" + + "B\007\n\005_cityB\014\n\n_continentB\025\n\023_creation_tim" + + "estampB\016\n\014_descriptionB\024\n\022_facility_prov" + + "iderB \n\036_facility_provider_facility_idB\005" + + "\n\003_idB\007\n\005_kindB\007\n\005_nameB\030\n\026_peeringdb_fa" + + "cility_idB\014\n\n_self_linkB\t\n\007_statusB\017\n\r_s" + + "upports_pzs\"\271\002\n\030InterconnectLocationList" + + "\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022?\n\005items\030\300\317\367/ \003(\0132-.g" + + "oogle.cloud.compute.v1.InterconnectLocat" + + "ion\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\"\272\002\n\036InterconnectLocationRegionIn" + + "fo\022 \n\017expected_rtt_ms\030\372\203\276\311\001 \001(\003H\000\210\001\001\022!\n\021" + + "location_presence\030\305\224\2640 \001(\tH\001\210\001\001\022\026\n\006regio" + + "n\030\364\315\240B \001(\tH\002\210\001\001\"\205\001\n\020LocationPresence\022\037\n\033" + + "UNDEFINED_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_expe" + + "cted_rtt_msB\024\n\022_location_presenceB\t\n\007_re" + + "gion\"\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(\01327.google.cloud.compute.v1.Interconn" + + "ectMacsecPreSharedKeyB\014\n\n_fail_open\"v\n\030I" + + "nterconnectMacsecConfig\022Z\n\017pre_shared_ke" + + "ys\030\362\313\265\310\001 \003(\0132=.google.cloud.compute.v1.I" + + "nterconnectMacsecConfigPreSharedKey\"\250\001\n$" + + "InterconnectMacsecConfigPreSharedKey\022\022\n\003" + + "cak\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\004" + + "name\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_star" + + "t_time\"j\n\036InterconnectMacsecPreSharedKey" + + "\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\036I" + + "nterconnectOutageNotification\022\034\n\021affecte" + + "d_circuits\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\ni" + + "ssue_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\tIssueType\022\030\n\024UNDEFINED_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\016PARTIAL_OUTAGE\020\217\267" + + "\217F\"C\n\006Source\022\024\n\020UNDEFINED_SOURCE\020\000\022\016\n\006GO" + + "OGLE\020\271\244\231\355\001\022\023\n\013NSRC_GOOGLE\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\tCOMPLETED\020\253\214\344\223\001\022\020\n\tNS" + + "_ACTIVE\020\300\235\267x\022\023\n\013NS_CANCELED\020\323\223\307\361\001B\016\n\014_de" + + "scriptionB\013\n\t_end_timeB\r\n\013_issue_typeB\007\n" + + "\005_nameB\t\n\007_sourceB\r\n\013_start_timeB\010\n\006_sta" + + "te\"\313\013\n\032InterconnectRemoteLocation\022\030\n\007add" + + "ress\030\364\267\336\334\001 \001(\tH\000\210\001\001\022~\n$attachment_config" + + "uration_constraints\030\321\350\353\233\001 \001(\0132G.google.c" + + "loud.compute.v1.InterconnectAttachmentCo" + + "nfigurationConstraintsH\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>.goog" + + "le.cloud.compute.v1.InterconnectRemoteLo" + + "cationConstraintsH\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(\t" + + "H\005\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\006\210\001\001\022\"\n\021f" + + "acility_provider\030\215\240\246\376\001 \001(\tH\007\210\001\001\022-\n\035facil" + + "ity_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\024max_lag_size100_" + + "gbps\030\265\377\366t \001(\005H\014\210\001\001\022$\n\023max_lag_size10_gbp" + + "s\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.goog" + + "le.cloud.compute.v1.InterconnectRemoteLo" + + "cationPermittedConnections\022\037\n\016remote_ser" + + "vice\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\tCont" + + "inent\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\rNORTH_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" + + "_SUPPORTED\020\261\212\366\241\001\022\027\n\020LACP_UNSUPPORTED\020\370\363\236" + + "a\"A\n\006Status\022\024\n\020UNDEFINED_STATUS\020\000\022\021\n\tAVA" + + "ILABLE\020\251\265\346\322\001\022\016\n\006CLOSED\020\354\252\243\265\001B\n\n\010_address" + + "B\'\n%_attachment_configuration_constraint" + + "sB\007\n\005_cityB\016\n\014_constraintsB\014\n\n_continent" + + "B\025\n\023_creation_timestampB\016\n\014_descriptionB" + + "\024\n\022_facility_providerB \n\036_facility_provi" + + "der_facility_idB\005\n\003_idB\007\n\005_kindB\007\n\005_lacp" + + "B\027\n\025_max_lag_size100_gbpsB\026\n\024_max_lag_si" + + "ze10_gbpsB\007\n\005_nameB\030\n\026_peeringdb_facilit" + + "y_idB\021\n\017_remote_serviceB\014\n\n_self_linkB\t\n" + + "\007_status\"\305\004\n%InterconnectRemoteLocationC" + + "onstraints\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(\0132" + + "O.google.cloud.compute.v1.InterconnectRe" + + "moteLocationConstraintsSubnetLengthRange" + + "H\002\210\001\001\"\234\001\n\026PortPairRemoteLocation\022\'\n#UNDE" + + "FINED_PORT_PAIR_REMOTE_LOCATION\020\000\022)\n\"POR" + + "T_PAIR_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_P" + + "AIR_VLAN\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_port_pair_remote_locationB\021\n\017_port_p" + + "air_vlanB\026\n\024_subnet_length_range\"p\n6Inte" + + "rconnectRemoteLocationConstraintsSubnetL" + + "engthRange\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_min\"\305\002\n\036Interconn" + + "ectRemoteLocationList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022" + + "E\n\005items\030\300\317\367/ \003(\01323.google.cloud.compute" + + ".v1.InterconnectRemoteLocation\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\"r\n.In" + + "terconnectRemoteLocationPermittedConnect" + + "ions\022&\n\025interconnect_location\030\306\330\333\352\001 \001(\tH" + + "\000\210\001\001B\030\n\026_interconnect_location\"z\n#Interc" + + "onnectsGetDiagnosticsResponse\022H\n\006result\030" + + "\235\220\267B \001(\01320.google.cloud.compute.v1.Inter" + + "connectDiagnosticsH\000\210\001\001B\t\n\007_result\"\233\001\n$I" + + "nterconnectsGetMacsecConfigResponse\022\024\n\004e" + + "tag\030\225\322\276\001 \001(\tH\000\210\001\001\022I\n\006result\030\235\220\267B \001(\01321.g" + + "oogle.cloud.compute.v1.InterconnectMacse" + + "cConfigH\001\210\001\001B\007\n\005_etagB\t\n\007_result\"\351\001\n\034Inv" + + "alidateCacheUrlMapRequest\022a\n cache_inval" + + "idation_rule_resource\030\255\303\223\225\001 \001(\0132..google" + + ".cloud.compute.v1.CacheInvalidationRuleB" + + "\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\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\001" + + "B\006\n\004_keyB\010\n\006_value\"\375\003\n\007License\022 \n\017charge" + + "s_use_fee\030\316\241\312\261\001 \001(\010H\000\210\001\001\022\"\n\022creation_tim" + + "estamp\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\033\n\014license_code\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_requir" + + "ements\030\241\262\227f \001(\01324.google.cloud.compute.v" + + "1.LicenseResourceRequirementsH\007\210\001\001\022\032\n\tse" + + "lf_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_cre" + + "ation_timestampB\016\n\014_descriptionB\005\n\003_idB\007" + + "\n\005_kindB\017\n\r_license_codeB\007\n\005_nameB\030\n\026_re" + + "source_requirementsB\014\n\n_self_linkB\017\n\r_tr" + + "ansferable\"\224\004\n\013LicenseCode\022\"\n\022creation_t" + + "imestamp\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.LicenseCodeLice" + + "nseAlias\022\024\n\004name\030\213\365\315\001 \001(\tH\004\210\001\001\022\032\n\tself_l" + + "ink\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\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\nRESTRICTED\020\333\350\333|\022\031\n\021ST" + + "ATE_UNSPECIFIED\020\311\320\274\340\001\022\021\n\nTERMINATED\020\243\364\233w" + + "B\025\n\023_creation_timestampB\016\n\014_descriptionB" + + "\005\n\003_idB\007\n\005_kindB\007\n\005_nameB\014\n\n_self_linkB\010" + + "\n\006_stateB\017\n\r_transferable\"q\n\027LicenseCode" + + "LicenseAlias\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_descr" + + "iptionB\014\n\n_self_link\"\234\001\n\031LicenseResource" + + "Commitment\022\026\n\006amount\030\330\240\351] \001(\003H\000\210\001\001\022!\n\021co" + + "res_per_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_" + + "licenseB\n\n\010_license\"\215\001\n\033LicenseResourceR" + + "equirements\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." + + "compute.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\022" + + "9\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.compu" + + "te.v1.WarningH\003\210\001\001B\005\n\003_idB\022\n\020_next_page_" + + "tokenB\014\n\n_self_linkB\n\n\010_warning\"\263\002\n\033List" + + "AcceleratorTypesRequest\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" + + "esultsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_r" + + "eturn_partial_success\"\256\002\n\024ListAddressesR" + + "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\"\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" + + "uccess\"]\n%ListAssociationsFirewallPolicy" + + "Request\022 \n\017target_resource\030\374\355\352\336\001 \001(\tH\000\210\001" + + "\001B\022\n\020_target_resource\"\256\002\n\026ListAutoscaler" + + "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\"\307\002\n-ListAvailableFeaturesRegionSs" + + "lPoliciesRequest\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" + + "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\"\251\002\n\'ListAvailableFeatur" + + "esSslPoliciesRequest\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" + + "age_tokenB\031\n\027_return_partial_success\"\233\002\n" + + "\031ListBackendBucketsRequest\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" + "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\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\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" + + "ss\"\234\002\n\032ListBackendServicesRequest\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\"\254\002\n\024ListDiskTypesRequest\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\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\"\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" + + "tokenB\031\n\027_return_partial_success\"\250\002\n\020Lis" + + "tDisksRequest\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\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_part" - + "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\"\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\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" + + "ial_success\"\323\002\n\034ListDisksStoragePoolsReq" + + "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\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_filt" + + "erB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_page" + + "_tokenB\031\n\027_return_partial_success\"\346\002\n&Li" + + "stErrorsInstanceGroupManagersRequest\022\027\n\006" + + "filter\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\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\"\356\002\n,L" + + "istErrorsRegionInstanceGroupManagersRequ" + + "est\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_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\"\240\002\n\036ListExternalVpnGatewaysRequest\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\"\256\002\n\033ListFirewallPoliciesR" + + "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\032\n\tpa" + + "rent_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_m" + + "ax_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_resultsB\013\n\t_order_byB\r" + + "\n\013_page_tokenB\031\n\027_return_partial_success" + + "\"\264\002\n\032ListForwardingRulesRequest\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\"\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\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\"\244\002\n" - + "\"ListNetworkFirewallPoliciesRequest\022\027\n\006f" + + "okenB\031\n\027_return_partial_success\"\234\002\n\032List" + + "GlobalAddressesRequest\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\"\242" + + "\002\n ListGlobalForwardingRulesRequest\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\"\234\002\n\032ListNetworkProfilesReque" + + "ial_success\"\250\002\n&ListGlobalNetworkEndpoin" + + "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\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\"\235\002\n\033ListG" + + "lobalOperationsRequest\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\"\272" + + "\002\n\'ListGlobalOrganizationOperationsReque" + + "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\032\n\tparent" + + "_id\030\320\341\232\333\001 \001(\tH\004\210\001\001\022\'\n\026return_partial_suc" + + "cess\030\266\244\317\366\001 \001(\010H\005\210\001\001B\t\n\007_filterB\016\n\014_max_r" + + "esultsB\013\n\t_order_byB\r\n\013_page_tokenB\014\n\n_p" + + "arent_idB\031\n\027_return_partial_success\"\252\002\n(" + + "ListGlobalPublicDelegatedPrefixesRequest" + + "\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\"\231\002\n\027ListHealthChecksReq" + + "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\"\223\002\n\021ListImagesReque" + "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" + + "rn_partial_success\"\355\002\n-ListInstanceGroup" + + "ManagerResizeRequestsRequest\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_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\"\270\002\n ListInsta" + + "nceGroupManagersRequest\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" + + "esultsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_r" + + "eturn_partial_success\"\261\002\n\031ListInstanceGr" + + "oupsRequest\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\"\236\002\n\034ListInstanceTemplatesReque" + "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" + + "rn_partial_success\"\331\003\n\"ListInstancesInst" + + "anceGroupsRequest\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/in" + + "stance_groups_list_instances_request_res" + + "ource\030\237\250\214\343\001 \001(\0132;.google.cloud.compute.v" + + "1.InstanceGroupsListInstancesRequestB\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_p" + + "artial_success\"\356\003\n(ListInstancesRegionIn" + + "stanceGroupsRequest\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\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\211\001\n6region_instance_groups_list" + + "_instances_request_resource\030\324\251\200\027 \001(\0132A.g" + + "oogle.cloud.compute.v1.RegionInstanceGro" + + "upsListInstancesRequestB\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" + + "InstancesRequest\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\"\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\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" + + "artial_success\"\263\002\n\033ListInstantSnapshotsR" + + "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\"\274\002\n\"ListInterconnectAttachmentsRequ" + + "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\"\242\002\n ListInterconnectLocationsRequest" + + "\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\"\250\002\n&ListInterconnectRem" + + "oteLocationsRequest\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" + + "ListInterconnectsRequest\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" + + "\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" + + "\"\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_resultsB\013\n\t_order_byB\r" + + "\n\013_page_tokenB\031\n\027_return_partial_success" + + "\"\232\002\n\030ListMachineImagesRequest\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\"\257\002\n\027ListMachineTypesRequest\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\001\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002B\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" + + "okenB\031\n\027_return_partial_success\"\360\002\n0List" + + "ManagedInstancesInstanceGroupManagersReq" + + "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\"\370\002\n6ListManagedInstancesRegionInstanc" + + "eGroupManagersRequest\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\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\"\267\002\n\035ListNetworkAtt" + + "achmentsRequest\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\"\270\002\n ListNetworkEndpointG" + + "roupsRequest\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\"\341\002\n6ListNetworkEndpointsGloba" + + "lNetworkEndpointGroupsRequest\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_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\"\377\003\n0ListNetworkEndpointsNetworkEn" + + "dpointGroupsRequest\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\026net" + + "work_endpoint_group\030\206\313\363\316\001 \001(\tB\003\340A\002\022\213\001\n7n" + + "etwork_endpoint_groups_list_endpoints_re" + + "quest_resource\030\216\230\257\034 \001(\0132B.google.cloud.c" + + "ompute.v1.NetworkEndpointGroupsListEndpo" + + "intsRequestB\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\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" + + "\"\371\002\n6ListNetworkEndpointsRegionNetworkEn" + + "dpointGroupsRequest\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\026net" + + "work_endpoint_group\030\206\313\363\316\001 \001(\tB\003\340A\002\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\026\n\006reg" + + "ion\030\364\315\240B \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\"\244\002\n\"ListNetworkFire" + + "wallPoliciesRequest\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\"\234\002\n\032" + + "ListNetworkProfilesRequest\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" + + "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\"\225\002\n\023ListNetworksRequest\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" + + "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\"\255\002\n\025ListNodeGroupsRequest\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\"\262\002\n\030ListNodeT" + + "emplatesRequest\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\"\254\002\n\024ListNodeTypesRequest" + + "\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\"\317" + + "\002\n\032ListNodesNodeGroupsRequest\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\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\"\265\002\n\033ListPacketMirroring" + + "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\"\200\004\n ListPeeringRoutesNetworksRe" + + "quest\022\031\n\tdirection\030\377\216\2005 \001(\tH\000\210\001\001\022\027\n\006filt" + + "er\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\npage_token\030\311\260\304\t \001(\t" + + "H\004\210\001\001\022\034\n\014peering_name\030\252\320\200w \001(\tH\005\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(\tH" + + "\006\210\001\001\022\'\n\026return_partial_success\030\266\244\317\366\001 \001(\010" + + "H\007\210\001\001\"H\n\tDirection\022\027\n\023UNDEFINED_DIRECTIO" + + "N\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_filterB\016\n\014_max_results" + + "B\013\n\t_order_byB\r\n\013_page_tokenB\017\n\r_peering" + + "_nameB\t\n\007_regionB\031\n\027_return_partial_succ" + + "ess\"\362\002\n2ListPerInstanceConfigsInstanceGr" + + "oupManagersRequest\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\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\"\372\002\n8ListPerInstanceConf" + + "igsRegionInstanceGroupManagersRequest\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\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\"\270\002" + + "\n6ListPreconfiguredExpressionSetsSecurit" + + "yPoliciesRequest\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\"\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\"\270\002\n6ListPreconfiguredExpre" - + "ssionSetsSecurityPoliciesRequest\022\027\n\006filt" + + "tokenB\031\n\027_return_partial_success\"\245\002\n#Lis" + + "tPublicAdvertisedPrefixesRequest\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\"\245\002\n#ListPublicAdvertisedPrefixe" + + "_success\"\274\002\n\"ListPublicDelegatedPrefixes" + + "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\"\317\002\n\035ListReferrersInstancesReques" + + "t\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_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\"\266\002\n\034ListRegion" + + "AutoscalersRequest\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\026\n\006regio" + + "n\030\364\315\240B \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\"\272\002\n ListRegionBackend" + + "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\"\266\002\n\034ListRegionCommitment" + "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" + + "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\"\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_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\"" + + "\260\002\n\026ListRegionDisksRequest\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\"\276\002\n$ListRegio" + + "nHealthCheckServicesRequest\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\"\267\002\n\035ListRegi" + + "onHealthChecksRequest\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\"\300\002\n&ListRegionInst" + + "anceGroupManagersRequest\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" + + "\027_return_partial_success\"\271\002\n\037ListRegionI" + + "nstanceGroupsRequest\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\026\n\006reg" + + "ion\030\364\315\240B \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\"\274\002\n\"ListRegionInsta" + + "nceTemplatesRequest\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\"\273\002\n!ListRegionInstan" + + "tSnapshotsRequest\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\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_resul" + + "tsB\013\n\t_order_byB\r\n\013_page_tokenB\031\n\027_retur" + + "n_partial_success\"\300\002\n&ListRegionNetworkE" + + "ndpointGroupsRequest\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\026\n\006reg" + + "ion\030\364\315\240B \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\"\302\002\n(ListRegionNetwo" + + "rkFirewallPoliciesRequest\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_m" + + "ax_resultsB\013\n\t_order_byB\r\n\013_page_tokenB\031" + + "\n\027_return_partial_success\"\300\002\n&ListRegion" + + "NotificationEndpointsRequest\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\026\n\006region\030\364\315\240B \001(\tB\003\340A\002\022\'\n\026return_part" + + "ial_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_toke" + + "nB\031\n\027_return_partial_success\"\265\002\n\033ListReg" + + "ionOperationsRequest\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\026\n\006reg" + + "ion\030\364\315\240B \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\"\273\002\n!ListRegionSecur" + + "ityPoliciesRequest\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\026\n\006regio" + + "n\030\364\315\240B \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\"\272\002\n ListRegionSslCert" + + "ificatesRequest\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" - + "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\"\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" - + " \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\"\274\002\n" - + "\"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 " - + "\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\"\273\002\n!" - + "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\"\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\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\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\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\"\273\002\n" - + "!ListRegionSecurityPoliciesRequest\022\027\n\006fi" + + "partial_success\"\266\002\n\034ListRegionSslPolicie" + + "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\"ListRegionTargetHttpProxies" + + "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\"\275\002\n#ListRegionTargetHttpsProxies" + + "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!ListRegionTargetTcpProxiesRe" + + "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\"\262\002\n\030ListRegionUrlMapsRequest\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\"\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(" + + "e_tokenB\031\n\027_return_partial_success\"\260\002\n\026L" + + "istRegionZonesRequest\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" - + "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\"\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\"\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\034ListTargetGrpcProxiesReq" + + "eturn_partial_success\"\224\002\n\022ListRegionsReq" + "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\"\236\002\n\034ListTargetHttpP" - + "roxiesRequest\022\027\n\006filter\030\370\226\243\240\001 \001(\tH\000\210\001\001\022\033" + + "turn_partial_success\"\257\002\n\027ListReservation" + + "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\"\265\002\n\033ListResourcePoliciesRequest\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\"\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\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\"\223\002\n\021ListRoutesRequ" + + "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\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\"\235\002\n\033ListSecurityPoli" + + "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\'\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\"\267\002\n\035ListServ" + + "iceAttachmentsRequest\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\"\226\002\n\024ListSnapshotsR" + + "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\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\032ListSslCertif" + + "icatesRequest\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\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" + + "enB\031\n\027_return_partial_success\"\230\002\n\026ListSs" + + "lPoliciesRequest\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\"\263\002\n\033Lis" + + "tStoragePoolTypesRequest\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" + + "\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\027ListStoragePo" + + "olsRequest\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\"\260\002\n\026ListSubnetworksRequest\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\"\236\002\n\034" + + "ListTargetGrpcProxiesRequest\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\"\236\002\n\034ListTargetHttpProxiesRequest\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\"\237\002\n\035ListTargetHttpsProxies" + "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" + + "_return_partial_success\"\262\002\n\032ListTargetIn" + + "stancesRequest\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\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_par" + + "tial_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_token\030\311\260\304\t \001(\tH\003\210\001\001\022\027\n\007project\030\231" @@ -12551,11096 +12538,11164 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "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" + + "\235\002\n\033ListTargetSslProxiesRequest\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\033ListTargetTcpProxiesRequest\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\"\266\002\n\034ListTargetVpnGateway", + "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\"\260\002\n\026ListVpnGatewaysRequest\022\027\n\006f" + + "_success\"\224\002\n\022ListUrlMapsRequest\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\"\242\002\n ListUsableBackendServicesReq" + + "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\"\300\002\n&ListUsableRegio" + + "nBackendServicesRequest\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\034ListUsableSu" + + "bnetworksRequest\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\"\260\002\n\026Lis" + + "tVpnGatewaysRequest\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\"\257\002\n\025ListVpnTunnelsRe" + + "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\"\215\003\n\033ListXpnHostsProjectsRequest\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\022n\n(projects_list_xpn_hosts_re" + + "quest_resource\030\227\320\316q \001(\01324.google.cloud.c" + + "ompute.v1.ProjectsListXpnHostsRequestB\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\"\261\002\n\031ListZoneOperationsRequest\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\"\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\"\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\"\244\001\n)" - + "NetworkEndpointGroupsListEndpointsReques" - + "t\022\036\n\rhealth_status\030\265\326\272\265\001 \001(\tH\000\210\001\001\"E\n\014Hea" - + "lthStatus\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_stat" - + "us\"\253\002\n)NetworkEndpointGroupsListNetworkE" - + "ndpoints\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.NetworkEn" - + "dpointWithHealthStatus\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_nex" - + "t_page_tokenB\n\n\010_warning\"\273\001\n\037NetworkEndp" - + "ointGroupsScopedList\022Q\n\027network_endpoint" - + "_groups\030\255\227\377\r \003(\0132-.google.cloud.compute." - + "v1.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\037NetworkEndpointWithHe" - + "althStatus\022K\n\007healths\030\227\223\255{ \003(\01327.google." - + "cloud.compute.v1.HealthStatusForNetworkE" - + "ndpoint\022J\n\020network_endpoint\030\206\221\212\033 \001(\0132(.g" - + "oogle.cloud.compute.v1.NetworkEndpointH\000" - + "\210\001\001B\023\n\021_network_endpoint\"\275\t\n\020NetworkInte" - + "rface\022@\n\016access_configs\030\226\273\3724 \003(\0132%.googl" - + "e.cloud.compute.v1.AccessConfig\022A\n\017alias" - + "_ip_ranges\030\277\203\334N \003(\0132%.google.cloud.compu" - + "te.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.AccessCo" - + "nfig\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\007ne" - + "twork\030\256\264\205o \001(\tH\006\210\001\001\022\"\n\022network_attachmen" - + "t\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_" - + "count\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_ACCES" - + "S_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\"\211\001\n\007NicType\022\026\n\022UNDEFINED_NIC_TYPE\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\nVIRTIO_NET\020\331\266\313\327\001\"{\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\022\020\n\tIPV6_ONLY\020\344\255\374%\022\036\n\026UN" - + "SPECIFIED_STACK_TYPE\020\331\321\221\216\001B\016\n\014_fingerpri" - + "ntB\036\n\034_internal_ipv6_prefix_lengthB\023\n\021_i" - + "pv6_access_typeB\017\n\r_ipv6_addressB\007\n\005_kin" - + "dB\007\n\005_nameB\n\n\010_networkB\025\n\023_network_attac" - + "hmentB\016\n\014_network_i_pB\013\n\t_nic_typeB\016\n\014_q" - + "ueue_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\005it" - + "ems\030\300\317\367/ \003(\0132 .google.cloud.compute.v1.N" - + "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\"\272\006\n\016NetworkPeering\022\"\n\022auto_cr" - + "eate_routes\030\335\342\262\033 \001(\010H\000\210\001\001\022&\n\026exchange_su" - + "bnet_routes\030\320\312\306\014 \001(\010H\001\210\001\001\022$\n\024export_cust" - + "om_routes\030\215\245\337\034 \001(\010H\002\210\001\001\0223\n#export_subnet" - + "_routes_with_public_ip\030\342\352\331. \001(\010H\003\210\001\001\022$\n\024" - + "import_custom_routes\030\276\361\263^ \001(\010H\004\210\001\001\0223\n#im" - + "port_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_ONLY\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_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(\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_filt" + + "erB\016\n\014_max_resultsB\013\n\t_order_byB\r\n\013_page" + + "_tokenB\031\n\027_return_partial_success\"\222\002\n\020Li" + + "stZonesRequest\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\"\217\001\n\tLocal" + + "Disk\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\006" + + "locale\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\016Locat" + + "ionPolicy\022M\n\tlocations\030\336\256\221\305\001 \003(\01326.googl" + + "e.cloud.compute.v1.LocationPolicy.Locati" + + "onsEntry\022\035\n\014target_shape\030\363\346\273\241\001 \001(\tH\000\210\001\001\032" + + "a\n\016LocationsEntry\022\013\n\003key\030\001 \001(\t\022>\n\005value\030" + + "\002 \001(\0132/.google.cloud.compute.v1.Location" + + "PolicyLocation:\0028\001\"^\n\013TargetShape\022\032\n\026UND" + + "EFINED_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\010BALANCED\020\210\272\255\337\001B\017\n\r_t" + + "arget_shape\"\216\002\n\026LocationPolicyLocation\022W" + + "\n\013constraints\030\266\314\356\001 \001(\0132:.google.cloud.co" + + "mpute.v1.LocationPolicyLocationConstrain" + + "tsH\000\210\001\001\022\032\n\npreference\030\333\371\362G \001(\tH\001\210\001\001\"`\n\nP" + + "reference\022\030\n\024UNDEFINED_PREFERENCE\020\000\022\014\n\005A" + + "LLOW\020\251\326\336\035\022\n\n\004DENY\020\214\354\177\022\036\n\026PREFERENCE_UNSP" + + "ECIFIED\020\263\353\316\354\001B\016\n\014_constraintsB\r\n\013_prefer" + + "ence\"M\n!LocationPolicyLocationConstraint" + + "s\022\032\n\tmax_count\030\364\374\222\211\001 \001(\005H\000\210\001\001B\014\n\n_max_co" + + "unt\"\265\t\n\014MachineImage\022\"\n\022creation_timesta" + + "mp\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\013guest_flush\030\335\223\354\267\001 \001(\010H\002\210\001\001\022\020\n\002" + + "id\030\233\032 \001(\004H\003\210\001\001\022P\n\023instance_properties\030\235\236" + + "\330f \001(\0132+.google.cloud.compute.v1.Instanc" + + "ePropertiesH\004\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022]" + + "\n\034machine_image_encryption_key\030\377\377\347\373\001 \001(\013" + + "2..google.cloud.compute.v1.CustomerEncry" + + "ptionKeyH\006\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\007\210\001\001\022\036\n\rs" + + "atisfies_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\".google.cloud.compute.v1.SavedDisk" + + "\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\n\210\001\001\022Y\n\033source_d" + + "isk_encryption_keys\030\262\370\317\260\001 \003(\01320.google.c" + + "loud.compute.v1.SourceDiskEncryptionKey\022" + + " \n\017source_instance\030\271\230\375\274\001 \001(\tH\013\210\001\001\022^\n\032sou" + + "rce_instance_properties\030\371\321\313\342\001 \001(\01321.goog" + + "le.cloud.compute.v1.SourceInstanceProper" + + "tiesH\014\210\001\001\022\026\n\006status\030\362\237\267V \001(\tH\r\210\001\001\022\035\n\021sto" + + "rage_locations\030\232\355\263\234\001 \003(\t\022#\n\023total_storag" + + "e_bytes\030\354\207\204\' \001(\003H\016\210\001\001\"s\n\006Status\022\024\n\020UNDEF" + + "INED_STATUS\020\000\022\020\n\010CREATING\020\271\275\235\331\001\022\020\n\010DELET" + + "ING\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_creation_timestam" + + "pB\016\n\014_descriptionB\016\n\014_guest_flushB\005\n\003_id" + + "B\026\n\024_instance_propertiesB\007\n\005_kindB\037\n\035_ma" + + "chine_image_encryption_keyB\007\n\005_nameB\020\n\016_" + + "satisfies_pziB\020\n\016_satisfies_pzsB\014\n\n_self" + + "_linkB\022\n\020_source_instanceB\035\n\033_source_ins" + + "tance_propertiesB\t\n\007_statusB\026\n\024_total_st" + + "orage_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.cl" + + "oud.compute.v1.MachineImage\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\"\346\007\n\013Mach" + + "ineType\022?\n\014accelerators\030\350\326\305\200\001 \003(\0132%.goog" + + "le.cloud.compute.v1.Accelerators\022\035\n\014arch" + + "itecture\030\323\322\261\220\001 \001(\tH\000\210\001\001\022\"\n\022creation_time" + + "stamp\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.Deprecatio" + + "nStatusH\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_shared_cpu\030\203\332\317\370\001 \001(\010H\007\210\001\001\022\024\n\004kin" + + "d\030\224\367\310\001 \001(\tH\010\210\001\001\022)\n\030maximum_persistent_di" + + "sks\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_m" + + "b\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(\0132%.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\014Arc" + + "hitecture\022\032\n\026UNDEFINED_ARCHITECTURE\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\001B\017\n\r_architectureB\025" + + "\n\023_creation_timestampB\r\n\013_deprecatedB\016\n\014" + + "_descriptionB\r\n\013_guest_cpusB\005\n\003_idB\021\n\017_i" + + "mage_space_gbB\020\n\016_is_shared_cpuB\007\n\005_kind" + + "B\033\n\031_maximum_persistent_disksB#\n!_maximu" + + "m_persistent_disks_size_gbB\014\n\n_memory_mb" + + "B\007\n\005_nameB\014\n\n_self_linkB\007\n\005_zone\"\302\003\n\031Mac" + + "hineTypeAggregatedList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001" + + "\022O\n\005items\030\300\317\367/ \003(\0132=.google.cloud.comput" + + "e.v1.MachineTypeAggregatedList.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\022\027\n\014unreachables\030\237\240\206t \003(\t\0229\n\007warning" + + "\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1.Warn" + + "ingH\004\210\001\001\032]\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022>\n\005v" + + "alue\030\002 \001(\0132/.google.cloud.compute.v1.Mac" + + "hineTypesScopedList:\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\"\247\002\n\017MachineTypeList\022\020\n\002id\030\233\032 \001(\tH\000" + + "\210\001\001\0226\n\005items\030\300\317\367/ \003(\0132$.google.cloud.com" + + "pute.v1.MachineType\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\"\237\001\n\026MachineTypes" + + "ScopedList\022>\n\rmachine_types\030\201\335\201& \003(\0132$.g" + + "oogle.cloud.compute.v1.MachineType\0229\n\007wa" + + "rning\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1" + + ".WarningH\000\210\001\001B\n\n\010_warning\"\362\n\n\017ManagedIns" + + "tance\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\010instance\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.ManagedInstanceInstance" + + "Health\022\037\n\017instance_status\030\334\255\237S \001(\tH\003\210\001\001\022" + + "R\n\014last_attempt\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_s" + + "tate_from_config\030\342\353\205/ \001(\0132\'.google.cloud" + + ".compute.v1.PreservedStateH\006\210\001\001\022U\n\033prese" + + "rved_state_from_policy\030\322\257\276\340\001 \001(\0132\'.googl" + + "e.cloud.compute.v1.PreservedStateH\007\210\001\001\022{" + + "\n\"properties_from_flexibility_policy\030\301\305\224" + + "J \001(\0132G.google.cloud.compute.v1.ManagedI" + + "nstancePropertiesFromFlexibilityPolicyH\010" + + "\210\001\001\022I\n\007version\030\330\271\324\247\001 \001(\0132/.google.cloud." + + "compute.v1.ManagedInstanceVersionH\t\210\001\001\"\205" + + "\002\n\rCurrentAction\022\034\n\030UNDEFINED_CURRENT_AC" + + "TION\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\nRECREAT" + + "ING\020\354\213\376\210\001\022\021\n\nREFRESHING\020\247\376\354M\022\022\n\nRESTARTI" + + "NG\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\016InstanceStatu" + + "s\022\035\n\031UNDEFINED_INSTANCE_STATUS\020\000\022\026\n\016DEPR" + + "OVISIONING\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\007STA" + + "GING\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_actio" + + "nB\005\n\003_idB\013\n\t_instanceB\022\n\020_instance_statu" + + "sB\017\n\r_last_attemptB\007\n\005_nameB\036\n\034_preserve" + + "d_state_from_configB\036\n\034_preserved_state_" + + "from_policyB%\n#_properties_from_flexibil" + + "ity_policyB\n\n\010_version\"\246\002\n\035ManagedInstan" + + "ceInstanceHealth\022&\n\025detailed_health_stat" + + "e\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\023DetailedHealthState\022#\n\037UNDEF" + + "INED_DETAILED_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\017\n\007TIMEOUT\020\301\262\353\343\001" + + "\022\021\n\tUNHEALTHY\020\304\271\255\334\001\022\017\n\007UNKNOWN\020\252\360\304\316\001B\030\n\026" + + "_detailed_health_stateB\017\n\r_health_check\"" + + "a\n\032ManagedInstanceLastAttempt\0228\n\006errors\030" + + "\353\336\325\226\001 \001(\0132\037.google.cloud.compute.v1.Erro" + + "rsH\000\210\001\001B\t\n\007_errors\"_\n.ManagedInstancePro" + + "pertiesFromFlexibilityPolicy\022\034\n\014machine_" + + "type\030\262\260\312l \001(\tH\000\210\001\001B\017\n\r_machine_type\"q\n\026M" + + "anagedInstanceVersion\022\"\n\021instance_templa" + + "te\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\001B" + + "\024\n\022_instance_templateB\007\n\005_name\"\210\001\n\010Metad" + + "ata\022\033\n\013fingerprint\030\344\321\363o \001(\tH\000\210\001\001\0220\n\005item" + + "s\030\300\317\367/ \003(\0132\036.google.cloud.compute.v1.Ite" + + "ms\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001B\016\n\014_fingerprint" + + "B\007\n\005_kind\"\217\002\n\016MetadataFilter\022L\n\rfilter_l" + + "abels\030\246\365\350\222\001 \003(\01321.google.cloud.compute.v" + + "1.MetadataFilterLabelMatch\022%\n\025filter_mat" + + "ch_criteria\030\300\320\266r \001(\tH\000\210\001\001\"n\n\023FilterMatch" + + "Criteria\022#\n\037UNDEFINED_FILTER_MATCH_CRITE" + + "RIA\020\000\022\020\n\tMATCH_ALL\020\347\347\222V\022\020\n\tMATCH_ANY\020\262\350\222" + + "V\022\016\n\007NOT_SET\020\266\231\204NB\030\n\026_filter_match_crite" + + "ria\"Z\n\030MetadataFilterLabelMatch\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\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\007project\022\037\n\006region\030\364\315\240B \001(\tB\014" + + "\340A\002\362G\006region\022l\n®ion_addresses_move_re" + + "quest_resource\030\304\260\210\303\001 \001(\01323.google.cloud." + + "compute.v1.RegionAddressesMoveRequestB\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\"\275\001\n\026MoveDiskProjectRequest\022U\n\032disk" + + "_move_request_resource\030\312\302\240\225\001 \001(\0132(.googl" + + "e.cloud.compute.v1.DiskMoveRequestB\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\"\220\001" + + "\n\031MoveFirewallPolicyRequest\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\030MoveGlobalA" + + "ddressRequest\022\030\n\007address\030\364\267\336\334\001 \001(\tB\003\340A\002\022" + + "l\n&global_addresses_move_request_resourc" + + "e\030\363\361\261\220\001 \001(\01323.google.cloud.compute.v1.Gl" + + "obalAddressesMoveRequestB\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\032MoveInst" + + "anceProjectRequest\022]\n\036instance_move_requ" + + "est_resource\030\302\274\316\224\001 \001(\0132,.google.cloud.co" + + "mpute.v1.InstanceMoveRequestB\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\"I\n\tNamed" + + "Port\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_info_mappings\030\234\200\216s \003(\01322.goog" + + "le.cloud.compute.v1.NatIpInfoNatIpInfoMa" + + "pping\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\031NatIpInfoNatIpInfoMapping\022\024\n\004m" + + "ode\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\016UNDE" + + "FINED_MODE\020\000\022\n\n\004AUTO\020\257\253{\022\r\n\006MANUAL\020\306\267\3678\"" + + ";\n\005Usage\022\023\n\017UNDEFINED_USAGE\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_ip" + + "B\010\n\006_usage\"J\n\021NatIpInfoResponse\0225\n\006resul" + + "t\030\235\220\267B \003(\0132\".google.cloud.compute.v1.Nat" + + "IpInfo\"\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_subnetworks\030\222\310\222z " + + "\001(\010H\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)\n\030en" + + "able_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\rgatew" + + "ay_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\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_firewa" + + "ll_policy_enforcement_order\030\320\202\215\003 \001(\tH\014\210\001" + + "\001\022\037\n\017network_profile\030\230\371\305R \001(\tH\r\210\001\001\022<\n\010pe" + + "erings\030\263\252\251! \003(\0132\'.google.cloud.compute.v" + + "1.NetworkPeering\022N\n\016routing_config\030\333\251\323\371\001" + + " \001(\0132-.google.cloud.compute.v1.NetworkRo" + + "utingConfigH\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_id\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%NetworkFire" + + "wallPolicyEnforcementOrder\0227\n3UNDEFINED_" + + "NETWORK_FIREWALL_POLICY_ENFORCEMENT_ORDE" + + "R\020\000\022\035\n\026AFTER_CLASSIC_FIREWALL\020\320\374\332I\022\037\n\027BE" + + "FORE_CLASSIC_FIREWALL\020\355\355\261\241\001B\016\n\014_I_pv4_ra" + + "ngeB\032\n\030_auto_create_subnetworksB\025\n\023_crea" + + "tion_timestampB\016\n\014_descriptionB\033\n\031_enabl" + + "e_ula_internal_ipv6B\022\n\020_firewall_policyB" + + "\020\n\016_gateway_i_pv4B\005\n\003_idB\026\n\024_internal_ip" + + "v6_rangeB\007\n\005_kindB\006\n\004_mtuB\007\n\005_nameB,\n*_n" + + "etwork_firewall_policy_enforcement_order" + + "B\022\n\020_network_profileB\021\n\017_routing_configB" + + "\014\n\n_self_linkB\024\n\022_self_link_with_id\"\247\006\n\021" + + "NetworkAttachment\022]\n\024connection_endpoint" + + "s\030\335\242\276\233\001 \003(\0132;.google.cloud.compute.v1.Ne" + + "tworkAttachmentConnectedEndpoint\022&\n\025conn" + + "ection_preference\030\334\371\244\210\001 \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\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\027\n\007network" + + "\030\256\264\205o \001(\tH\007\210\001\001\022 \n\025producer_accept_lists\030" + + "\253\232\332` \003(\t\022 \n\025producer_reject_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_link_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\024Co" + + "nnectionPreference\022#\n\037UNDEFINED_CONNECTI" + + "ON_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\001" + + "B\030\n\026_connection_preferenceB\025\n\023_creation_" + + "timestampB\016\n\014_descriptionB\016\n\014_fingerprin" + + "tB\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\024\n\022_self_link_wi" + + "th_id\"\273\003\n\037NetworkAttachmentAggregatedLis" + + "t\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.NetworkAttachmen" + + "tAggregatedList.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.Warn" + + "ingH\004\210\001\001\032c\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022D\n\005v" + + "alue\030\002 \001(\01325.google.cloud.compute.v1.Net" + + "workAttachmentsScopedList:\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\"\207\004\n\"NetworkAttachmentConnect" + + "edEndpoint\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\021projec" + + "t_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\025" + + "subnetwork_cidr_range\030\243\333\337\266\001 \001(\tH\005\210\001\001\"\224\001\n" + + "\006Status\022\024\n\020UNDEFINED_STATUS\020\000\022\017\n\010ACCEPTE" + + "D\020\247\237\322u\022\016\n\006CLOSED\020\354\252\243\265\001\022\027\n\017NEEDS_ATTENTIO" + + "N\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_addre" + + "ssB\017\n\r_ipv6_addressB\024\n\022_project_id_or_nu" + + "mB\t\n\007_statusB\r\n\013_subnetworkB\030\n\026_subnetwo" + + "rk_cidr_range\"\263\002\n\025NetworkAttachmentList\022" + + "\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022<\n\005items\030\300\317\367/ \003(\0132*.go" + + "ogle.cloud.compute.v1.NetworkAttachment\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\"\262\001\n\034NetworkAttachmentsScopedList\022K\n\023" + + "network_attachments\030\237\336\326\370\001 \003(\0132*.google.c" + + "loud.compute.v1.NetworkAttachment\0229\n\007war" + + "ning\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1." + + "WarningH\000\210\001\001B\n\n\010_warning\"\304\003\n\032NetworkEdge" + + "SecurityService\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\026\n\006region\030\364\315\240B \001(\tH\006\210\001\001\022\037\n\017" + + "security_policy\030\221\206\312Q \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\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_fingerprintB\005\n\003_idB\007\n\005_k" + + "indB\007\n\005_nameB\t\n\007_regionB\022\n\020_security_pol" + + "icyB\014\n\n_self_linkB\024\n\022_self_link_with_id\"" + + "\216\004\n(NetworkEdgeSecurityServiceAggregated" + + "List\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.co" + + "mpute.v1.NetworkEdgeSecurityServiceAggre" + + "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\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" + + "oud.compute.v1.WarningH\005\210\001\001\032l\n\nItemsEntr" + + "y\022\013\n\003key\030\001 \001(\t\022M\n\005value\030\002 \001(\0132>.google.c" + + "loud.compute.v1.NetworkEdgeSecurityServi" + + "cesScopedList:\0028\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\"\316\001\n%NetworkEdgeSecurityServices", + "ScopedList\022^\n\036network_edge_security_serv" + + "ices\030\254\313\370\020 \003(\01323.google.cloud.compute.v1." + + "NetworkEdgeSecurityService\0229\n\007warning\030\234\337" + + "\226\030 \001(\0132 .google.cloud.compute.v1.Warning" + + "H\000\210\001\001B\n\n\010_warning\"\236\003\n\017NetworkEndpoint\022Q\n" + + "\013annotations\030\244\366\2655 \003(\01329.google.cloud.com" + + "pute.v1.NetworkEndpoint.AnnotationsEntry" + + "\022\'\n\027client_destination_port\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\020AnnotationsEntry\022\013\n\003key\030\001" + + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\032\n\030_client_desti" + + "nation_portB\007\n\005_fqdnB\013\n\t_instanceB\r\n\013_ip" + + "_addressB\017\n\r_ipv6_addressB\007\n\005_port\"\211\013\n\024N" + + "etworkEndpointGroup\022V\n\013annotations\030\244\366\2655 " + + "\003(\0132>.google.cloud.compute.v1.NetworkEnd" + + "pointGroup.AnnotationsEntry\022S\n\napp_engin" + + "e\030\240\214\300\242\001 \001(\01326.google.cloud.compute.v1.Ne" + + "tworkEndpointGroupAppEngineH\000\210\001\001\022[\n\016clou" + + "d_function\030\242\345\363\367\001 \001(\0132:.google.cloud.comp" + + "ute.v1.NetworkEndpointGroupCloudFunction" + + "H\001\210\001\001\022P\n\tcloud_run\030\201\313\3724 \001(\01325.google.clo" + + "ud.compute.v1.NetworkEndpointGroupCloudR" + + "unH\002\210\001\001\022\"\n\022creation_timestamp\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\013de" + + "scription\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\025netwo" + + "rk_endpoint_type\030\323\306\2648 \001(\tH\n\210\001\001\022N\n\010psc_da" + + "ta\030\311\333\246\" \001(\01324.google.cloud.compute.v1.Ne" + + "tworkEndpointGroupPscDataH\013\210\001\001\022#\n\022psc_ta" + + "rget_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\020Anno" + + "tationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + ":\0028\001\"\212\002\n\023NetworkEndpointType\022#\n\037UNDEFINE" + + "D_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_I" + + "P_PORTMAP\020\265\343\360\n\022\032\n\022INTERNET_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\nSERVERLESS\020\334\306\375\200\001B\r\n\013_ap" + + "p_engineB\021\n\017_cloud_functionB\014\n\n_cloud_ru" + + "nB\025\n\023_creation_timestampB\017\n\r_default_por" + + "tB\016\n\014_descriptionB\005\n\003_idB\007\n\005_kindB\007\n\005_na" + + "meB\n\n\010_networkB\030\n\026_network_endpoint_type" + + "B\013\n\t_psc_dataB\025\n\023_psc_target_serviceB\t\n\007" + + "_regionB\014\n\n_self_linkB\007\n\005_sizeB\r\n\013_subne" + + "tworkB\007\n\005_zone\"\335\003\n\"NetworkEndpointGroupA" + + "ggregatedList\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.Netw" + + "orkEndpointGroupAggregatedList.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\022\027\n\014unreachables\030\237\240\206t \003(\t\0229\n\007warning" + + "\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1.Warn" + + "ingH\004\210\001\001\032f\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022G\n\005v" + + "alue\030\002 \001(\01328.google.cloud.compute.v1.Net" + + "workEndpointGroupsScopedList:\0028\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\"\222\001\n\035NetworkEndpointGroupA" + + "ppEngine\022\030\n\007service\030\265\215\217\262\001 \001(\tH\000\210\001\001\022\030\n\010ur" + + "l_mask\030\274\217\2441 \001(\tH\001\210\001\001\022\030\n\007version\030\330\271\324\247\001 \001(" + + "\tH\002\210\001\001B\n\n\010_serviceB\013\n\t_url_maskB\n\n\010_vers" + + "ion\"r\n!NetworkEndpointGroupCloudFunction" + + "\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_functionB\013\n\t_url_mask\"" + + "\207\001\n\034NetworkEndpointGroupCloudRun\022\030\n\007serv" + + "ice\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\030NetworkEndpointGro" + + "upList\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.NetworkEndp" + + "ointGroup\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\"\275\003\n\033NetworkEndpointGroupPs" + + "cData\022%\n\024consumer_psc_address\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\021" + + "psc_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\023PscC" + + "onnectionStatus\022#\n\037UNDEFINED_PSC_CONNECT" + + "ION_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\007PENDIN" + + "G\020\367\252\360\020\022\017\n\010REJECTED\020\376\210\204S\022\031\n\022STATUS_UNSPEC" + + "IFIED\020\312\314\213\024B\027\n\025_consumer_psc_addressB\020\n\016_" + + "producer_portB\024\n\022_psc_connection_idB\030\n\026_" + + "psc_connection_status\"u\n+NetworkEndpoint" + + "GroupsAttachEndpointsRequest\022F\n\021network_" + + "endpoints\030\255\221\272G \003(\0132(.google.cloud.comput" + + "e.v1.NetworkEndpoint\"u\n+NetworkEndpointG" + + "roupsDetachEndpointsRequest\022F\n\021network_e" + + "ndpoints\030\255\221\272G \003(\0132(.google.cloud.compute" + + ".v1.NetworkEndpoint\"\244\001\n)NetworkEndpointG" + + "roupsListEndpointsRequest\022\036\n\rhealth_stat" + + "us\030\265\326\272\265\001 \001(\tH\000\210\001\001\"E\n\014HealthStatus\022\033\n\027UND" + + "EFINED_HEALTH_STATUS\020\000\022\013\n\004SHOW\020\375\245\233\001\022\013\n\004S" + + "KIP\020\377\272\233\001B\020\n\016_health_status\"\253\002\n)NetworkEn" + + "dpointGroupsListNetworkEndpoints\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.NetworkEndpointWithHealth" + + "Status\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\0229\n\007warning\030\234\337\226\030 \001(" + + "\0132 .google.cloud.compute.v1.WarningH\003\210\001\001" + + "B\005\n\003_idB\007\n\005_kindB\022\n\020_next_page_tokenB\n\n\010" + + "_warning\"\273\001\n\037NetworkEndpointGroupsScoped" + + "List\022Q\n\027network_endpoint_groups\030\255\227\377\r \003(\013" + + "2-.google.cloud.compute.v1.NetworkEndpoi" + + "ntGroup\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.clo" + + "ud.compute.v1.WarningH\000\210\001\001B\n\n\010_warning\"\317" + + "\001\n\037NetworkEndpointWithHealthStatus\022K\n\007he" + + "alths\030\227\223\255{ \003(\01327.google.cloud.compute.v1" + + ".HealthStatusForNetworkEndpoint\022J\n\020netwo" + + "rk_endpoint\030\206\221\212\033 \001(\0132(.google.cloud.comp" + + "ute.v1.NetworkEndpointH\000\210\001\001B\023\n\021_network_" + + "endpoint\"\332\003\n#NetworkFirewallPolicyAggreg" + + "atedList\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.NetworkFi" + + "rewallPolicyAggregatedList.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\032a\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022B\n\005value" + + "\030\002 \001(\01323.google.cloud.compute.v1.Firewal" + + "lPoliciesScopedList:\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\"\275\t\n\020NetworkInterface\022@\n\016access_con" + + "figs\030\226\273\3724 \003(\0132%.google.cloud.compute.v1." + + "AccessConfig\022A\n\017alias_ip_ranges\030\277\203\334N \003(\013" + + "2%.google.cloud.compute.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\023ipv" + + "6_access_configs\030\356\345\304\346\001 \003(\0132%.google.clou" + + "d.compute.v1.AccessConfig\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\004nam" + + "e\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\022network_attachment\030\324\227\217k \001(\tH\007\210\001\001\022\033\n\013" + + "network_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_count\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\nsubnet" + + "work\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\010EXTERNA" + + "L\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\"\211\001\n\007NicType\022\026\n\022UN" + + "DEFINED_NIC_TYPE\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\024UNS" + + "PECIFIED_NIC_TYPE\020\331\276\222 \022\022\n\nVIRTIO_NET\020\331\266\313" + + "\327\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%\022\036\n\026UNSPECIFIED_STACK_TYP" + + "E\020\331\321\221\216\001B\016\n\014_fingerprintB\036\n\034_internal_ipv" + + "6_prefix_lengthB\023\n\021_ipv6_access_typeB\017\n\r" + + "_ipv6_addressB\007\n\005_kindB\007\n\005_nameB\n\n\010_netw" + + "orkB\025\n\023_network_attachmentB\016\n\014_network_i" + + "_pB\013\n\t_nic_typeB\016\n\014_queue_countB\r\n\013_stac" + + "k_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 .goog" + + "le.cloud.compute.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\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\"\272\006\n\016Netw" + + "orkPeering\022\"\n\022auto_create_routes\030\335\342\262\033 \001(" + + "\010H\000\210\001\001\022&\n\026exchange_subnet_routes\030\320\312\306\014 \001(" + + "\010H\001\210\001\001\022$\n\024export_custom_routes\030\215\245\337\034 \001(\010H" + + "\002\210\001\001\0223\n#export_subnet_routes_with_public" + + "_ip\030\342\352\331. \001(\010H\003\210\001\001\022$\n\024import_custom_route" + + "s\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\010p" + + "eer_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\rsta" + + "te_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_ONLY\020\246\313\325\n\">\n\005State\022\023\n\017UNDEFINE" + + "D_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_routesB\031\n\027_exchange_" + + "subnet_routesB\027\n\025_export_custom_routesB&" + + "\n$_export_subnet_routes_with_public_ipB\027" + + "\n\025_import_custom_routesB&\n$_import_subne" + + "t_routes_with_public_ipB\007\n\005_nameB\n\n\010_net" + + "workB\013\n\t_peer_mtuB\r\n\013_stack_typeB\010\n\006_sta" + + "teB\020\n\016_state_details\"\316\001\n\030NetworkPerforma" + + "nceConfig\022+\n\033total_egress_bandwidth_tier" + + "\030\377\237\205> \001(\tH\000\210\001\001\"e\n\030TotalEgressBandwidthTi" + + "er\022)\n%UNDEFINED_TOTAL_EGRESS_BANDWIDTH_T" + + "IER\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_bandwidth_tier\"\212\004\n\016Networ" + + "kProfile\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\010fe" + + "atures\030\275\310\263u \001(\01326.google.cloud.compute.v" + + "1.NetworkProfileNetworkFeaturesH\002\210\001\001\022\020\n\002" + + "id\030\233\032 \001(\004H\003\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\tH\004\210\001\001\022J\n\010" + + "location\030\265\277\276\212\001 \001(\0132/.google.cloud.comput" + + "e.v1.NetworkProfileLocationH\005\210\001\001\022\024\n\004name" + + "\030\213\365\315\001 \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\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_timesta" + + "mpB\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_l" + + "inkB\024\n\022_self_link_with_idB\007\n\005_zone\"\222\001\n\026N" + + "etworkProfileLocation\022\024\n\004name\030\213\365\315\001 \001(\tH\000" + + "\210\001\001\022\025\n\005scope\030\324\374\2144 \001(\tH\001\210\001\001\"8\n\005Scope\022\023\n\017U" + + "NDEFINED_SCOPE\020\000\022\r\n\006REGION\020\364\265\354~\022\013\n\004ZONE\020" + + "\254\267\250\001B\007\n\005_nameB\010\n\006_scope\"\364\037\n\035NetworkProfi" + + "leNetworkFeatures\022\034\n\020address_purposes\030\200\336" + + "\275\316\001 \003(\t\022&\n\025allow_alias_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_class_d_firewalls\030\233\343\340> " + + "\001(\tH\002\210\001\001\022\037\n\017allow_cloud_nat\030\241\325\301y \001(\tH\003\210\001" + + "\001\022#\n\022allow_cloud_router\030\311\313\215\327\001 \001(\tH\004\210\001\001\022(" + + "\n\030allow_external_ip_access\030\276\271\334> \001(\tH\005\210\001\001" + + "\022#\n\022allow_interconnect\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\037a" + + "llow_multi_nic_in_same_network\030\374\264\212* \001(\tH" + + "\010\210\001\001\022\'\n\026allow_packet_mirroring\030\202\356\237\364\001 \001(\t" + + "H\t\210\001\001\022,\n\033allow_private_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_routes\030\305\237\253X \001(\tH\r\210\001\001" + + "\022$\n\024allow_sub_interfaces\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\tall" + + "ow_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_purposes\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\007unicas" + + "t\030\257\220\221w \001(\tH\021\210\001\001\"\363\001\n\017AddressPurposes\022\036\n\032U" + + "NDEFINED_ADDRESS_PURPOSES\020\000\022\024\n\014DNS_RESOL" + + "VER\020\374\334\203\343\001\022\023\n\014GCE_ENDPOINT\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\027P" + + "RIVATE_SERVICE_CONNECT\020\304\364\371\026\022\022\n\nSERVERLES" + + "S\020\334\306\375\200\001\022\037\n\027SHARED_LOADBALANCER_VIP\020\324\323\263\214\001" + + "\022\023\n\013VPC_PEERING\020\252\363\216\277\001\"{\n\022AllowAliasIpRan" + + "ges\022#\n\037UNDEFINED_ALLOW_ALIAS_IP_RANGES\020\000" + + "\022\037\n\027ALIAS_IP_RANGES_ALLOWED\020\350\235\325\335\001\022\037\n\027ALI" + + "AS_IP_RANGES_BLOCKED\020\254\336\200\206\001\"~\n\023AllowAutoM" + + "odeSubnet\022$\n UNDEFINED_ALLOW_AUTO_MODE_S" + + "UBNET\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\024A" + + "llowClassDFirewalls\022%\n!UNDEFINED_ALLOW_C" + + "LASS_D_FIREWALLS\020\000\022!\n\031CLASS_D_FIREWALLS_" + + "ALLOWED\020\372\317\205\246\001\022 \n\031CLASS_D_FIREWALLS_BLOCK" + + "ED\020\276\220\261N\"b\n\rAllowCloudNat\022\035\n\031UNDEFINED_AL" + + "LOW_CLOUD_NAT\020\000\022\030\n\021CLOUD_NAT_ALLOWED\020\240\272\242" + + "u\022\030\n\021CLOUD_NAT_BLOCKED\020\344\372\315\035\"o\n\020AllowClou" + + "dRouter\022 \n\034UNDEFINED_ALLOW_CLOUD_ROUTER\020" + + "\000\022\034\n\024CLOUD_ROUTER_ALLOWED\020\374\303\235\256\001\022\033\n\024CLOUD" + + "_ROUTER_BLOCKED\020\300\204\311V\"\206\001\n\025AllowExternalIp" + + "Access\022&\n\"UNDEFINED_ALLOW_EXTERNAL_IP_AC" + + "CESS\020\000\022!\n\032EXTERNAL_IP_ACCESS_ALLOWED\020\321\230\235" + + "4\022\"\n\032EXTERNAL_IP_ACCESS_BLOCKED\020\225\331\310\334\001\"p\n" + + "\021AllowInterconnect\022 \n\034UNDEFINED_ALLOW_IN" + + "TERCONNECT\020\000\022\033\n\024INTERCONNECT_ALLOWED\020\327\245\323" + + "M\022\034\n\024INTERCONNECT_BLOCKED\020\233\346\376\365\001\"w\n\022Allow" + + "LoadBalancing\022\"\n\036UNDEFINED_ALLOW_LOAD_BA" + + "LANCING\020\000\022\035\n\026LOAD_BALANCING_ALLOWED\020\251\361\305\r" + + "\022\036\n\026LOAD_BALANCING_BLOCKED\020\355\261\361\265\001\"\241\001\n\032All" + + "owMultiNicInSameNetwork\022-\n)UNDEFINED_ALL" + + "OW_MULTI_NIC_IN_SAME_NETWORK\020\000\022)\n!MULTI_" + + "NIC_IN_SAME_NETWORK_ALLOWED\020\333\373\226\332\001\022)\n!MUL" + + "TI_NIC_IN_SAME_NETWORK_BLOCKED\020\237\274\302\202\001\"\177\n\024" + + "AllowPacketMirroring\022$\n UNDEFINED_ALLOW_" + + "PACKET_MIRRORING\020\000\022\037\n\030PACKET_MIRRORING_A" + + "LLOWED\020\365\321\210,\022 \n\030PACKET_MIRRORING_BLOCKED\020" + + "\271\222\264\324\001\"\221\001\n\030AllowPrivateGoogleAccess\022)\n%UN" + + "DEFINED_ALLOW_PRIVATE_GOOGLE_ACCESS\020\000\022$\n" + + "\035PRIVATE_GOOGLE_ACCESS_ALLOWED\020\227\345\243i\022$\n\035P" + + "RIVATE_GOOGLE_ACCESS_BLOCKED\020\333\245\317\021\"L\n\010All" + + "owPsc\022\027\n\023UNDEFINED_ALLOW_PSC\020\000\022\022\n\013PSC_AL" + + "LOWED\020\351\225\347Q\022\023\n\013PSC_BLOCKED\020\255\326\222\372\001\"\216\001\n\027Allo" + + "wSameNetworkUnicast\022(\n$UNDEFINED_ALLOW_S" + + "AME_NETWORK_UNICAST\020\000\022#\n\034SAME_NETWORK_UN" + + "ICAST_ALLOWED\020\316\250\225L\022$\n\034SAME_NETWORK_UNICA" + + "ST_BLOCKED\020\222\351\300\364\001\"s\n\021AllowStaticRoutes\022!\n" + + "\035UNDEFINED_ALLOW_STATIC_ROUTES\020\000\022\035\n\025STAT" + + "IC_ROUTES_ALLOWED\020\204\257\206\303\001\022\034\n\025STATIC_ROUTES" + + "_BLOCKED\020\310\357\261k\"u\n\022AllowSubInterfaces\022\"\n\036U" + + "NDEFINED_ALLOW_SUB_INTERFACES\020\000\022\034\n\025SUBIN" + + "TERFACES_ALLOWED\020\303\265\325K\022\035\n\025SUBINTERFACES_B" + + "LOCKED\020\207\366\200\364\001\"j\n\017AllowVpcPeering\022\037\n\033UNDEF" + + "INED_ALLOW_VPC_PEERING\020\000\022\032\n\023VPC_PEERING_" + + "ALLOWED\020\363\307\326|\022\032\n\023VPC_PEERING_BLOCKED\020\267\210\202%" + + "\"L\n\010AllowVpn\022\027\n\023UNDEFINED_ALLOW_VPN\020\000\022\022\n" + + "\013VPN_ALLOWED\020\235\332\251M\022\023\n\013VPN_BLOCKED\020\341\232\325\365\001\"\227" + + "\001\n\016InterfaceTypes\022\035\n\031UNDEFINED_INTERFACE" + + "_TYPES\020\000\022\014\n\005GVNIC\020\231\225\303 \022\013\n\004IDPF\020\321\360\210\001\022\014\n\005I" + + "RDMA\020\217\206\254!\022\014\n\005MRDMA\020\223\302\215#\022\033\n\024UNSPECIFIED_N" + + "IC_TYPE\020\331\276\222 \022\022\n\nVIRTIO_NET\020\331\266\313\327\001\"w\n\016Subn" + + "etPurposes\022\035\n\031UNDEFINED_SUBNET_PURPOSES\020" + + "\000\022&\n\036SUBNET_PURPOSE_CUSTOM_HARDWARE\020\323\335\202\207" + + "\001\022\036\n\026SUBNET_PURPOSE_PRIVATE\020\300\354\350\300\001\"\240\001\n\020Su" + + "bnetStackTypes\022 \n\034UNDEFINED_SUBNET_STACK" + + "_TYPES\020\000\022\"\n\033SUBNET_STACK_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\007" + + "Unicast\022\025\n\021UNDEFINED_UNICAST\020\000\022\023\n\013UNICAS" + + "T_SDN\020\355\307\226\265\001\022\023\n\013UNICAST_ULL\020\345\330\226\265\001B\030\n\026_all" + + "ow_alias_ip_rangesB\031\n\027_allow_auto_mode_s" + + "ubnetB\032\n\030_allow_class_d_firewallsB\022\n\020_al" + + "low_cloud_natB\025\n\023_allow_cloud_routerB\033\n\031" + + "_allow_external_ip_accessB\025\n\023_allow_inte" + + "rconnectB\027\n\025_allow_load_balancingB\"\n _al" + + "low_multi_nic_in_same_networkB\031\n\027_allow_" + + "packet_mirroringB\036\n\034_allow_private_googl" + + "e_accessB\014\n\n_allow_pscB\035\n\033_allow_same_ne" + + "twork_unicastB\026\n\024_allow_static_routesB\027\n" + + "\025_allow_sub_interfacesB\024\n\022_allow_vpc_pee" + + "ringB\014\n\n_allow_vpnB\n\n\010_unicast\"\356\002\n\033Netwo" + + "rkProfilesListResponse\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(\013" + + "2\'.google.cloud.compute.v1.NetworkProfil" + + "e\022\024\n\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n\017next_page_tok" + + "en\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.Warn" + + "ingH\005\210\001\001B\007\n\005_etagB\005\n\003_idB\007\n\005_kindB\022\n\020_ne" + + "xt_page_tokenB\014\n\n_self_linkB\n\n\010_warning\"" + + "\256\006\n\024NetworkRoutingConfig\022&\n\026bgp_always_c" + + "ompare_med\030\266\342\316e \001(\010H\000\210\001\001\022-\n\034bgp_best_pat" + + "h_selection_mode\030\351\373\305\227\001 \001(\tH\001\210\001\001\022&\n\025bgp_i" + + "nter_region_cost\030\341\371\256\334\001 \001(\tH\002\210\001\001\0220\n effec" + + "tive_bgp_always_compare_med\030\316\365\255f \001(\010H\003\210\001" + + "\001\022/\n\037effective_bgp_inter_region_cost\030\311\300\241" + + "X \001(\tH\004\210\001\001\022\035\n\014routing_mode\030\374\272\310\342\001 \001(\tH\005\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(\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" + + "\014\n\n_self_linkB\n\n\010_warning\"\252\001\n\032NodeGroupM" + + "aintenanceWindow\022H\n\024maintenance_duration" + + "\030\300\242\275\372\001 \001(\0132!.google.cloud.compute.v1.Dur" + + "ationH\000\210\001\001\022\032\n\nstart_time\030\212\351\356\021 \001(\tH\001\210\001\001B\027" + + "\n\025_maintenance_durationB\r\n\013_start_time\"\217" + + "\t\n\rNodeGroupNode\022D\n\014accelerators\030\350\326\305\200\001 \003" + + "(\0132*.google.cloud.compute.v1.Accelerator" + + "Config\022U\n\022consumed_resources\030\216\365\301\237\001 \001(\01320" + + ".google.cloud.compute.v1.InstanceConsump" + + "tionInfoH\000\210\001\001\022#\n\023cpu_overcommit_type\030\327\216\220" + + "v \001(\tH\001\210\001\001\0224\n\005disks\030\366\314\312- \003(\0132\".google.cl" + + "oud.compute.v1.LocalDisk\022V\n\031instance_con" + + "sumption_data\030\270\320\262( \003(\01320.google.cloud.co" + + "mpute.v1.InstanceConsumptionData\022\024\n\tinst" + + "ances\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\t" + + "node_type\030\327\226\220\336\001 \001(\tH\003\210\001\001\022\036\n\rsatisfies_pz" + + "s\030\253\335\253\345\001 \001(\010H\004\210\001\001\022F\n\016server_binding\030\211\243\242c " + + "\001(\0132&.google.cloud.compute.v1.ServerBind" + + "ingH\005\210\001\001\022\032\n\tserver_id\030\227\257\355\241\001 \001(\tH\006\210\001\001\022\026\n\006" + + "status\030\362\237\267V \001(\tH\007\210\001\001\022Q\n\017total_resources\030" + + "\352\235\271. \001(\01320.google.cloud.compute.v1.Insta" + + "nceConsumptionInfoH\010\210\001\001\022R\n\024upcoming_main" + + "tenance\030\360\240\264l \001(\0132,.google.cloud.compute." + + "v1.UpcomingMaintenanceH\t\210\001\001\"|\n\021CpuOverco" + + "mmitType\022!\n\035UNDEFINED_CPU_OVERCOMMIT_TYP" + + "E\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\"t\n\006Sta" + + "tus\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\021\n\tREPAIRING\020\225\202\225\305\001B\025\n\023_cons" + + "umed_resourcesB\026\n\024_cpu_overcommit_typeB\007" + + "\n\005_nameB\014\n\n_node_typeB\020\n\016_satisfies_pzsB" + + "\021\n\017_server_bindingB\014\n\n_server_idB\t\n\007_sta" + + "tusB\022\n\020_total_resourcesB\027\n\025_upcoming_mai" + + "ntenance\"\\\n\031NodeGroupsAddNodesRequest\022%\n" + + "\025additional_node_count\030\252\317\257@ \001(\005H\000\210\001\001B\030\n\026" + + "_additional_node_count\"0\n\034NodeGroupsDele" + + "teNodesRequest\022\020\n\005nodes\030\261\245\2102 \003(\t\"\255\002\n\023Nod" + + "eGroupsListNodes\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0228\n\005it" + + "ems\030\300\317\367/ \003(\0132&.google.cloud.compute.v1.N" + + "odeGroupNode\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\"\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_" + + "linkB\n\n\010_warning\"b\n#NodeGroupsPerformMai" + + "ntenanceRequest\022\020\n\005nodes\030\261\245\2102 \003(\t\022\032\n\nsta" + + "rt_time\030\212\351\356\021 \001(\tH\000\210\001\001B\r\n\013_start_time\"\231\001\n" + + "\024NodeGroupsScopedList\022:\n\013node_groups\030\261\205\363" + + "\" \003(\0132\".google.cloud.compute.v1.NodeGrou" + + "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\"T\n Node" + + "GroupsSetNodeTemplateRequest\022\036\n\rnode_tem" + + "plate\030\227\344\213\232\001 \001(\tH\000\210\001\001B\020\n\016_node_template\"=" + + "\n)NodeGroupsSimulateMaintenanceEventRequ" + + "est\022\020\n\005nodes\030\261\245\2102 \003(\t\"\251\t\n\014NodeTemplate\022D" + + "\n\014accelerators\030\350\326\305\200\001 \003(\0132*.google.cloud." + + "compute.v1.AcceleratorConfig\022#\n\023cpu_over" + + "commit_type\030\327\216\220v \001(\tH\000\210\001\001\022\"\n\022creation_ti" + + "mestamp\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.c" + + "loud.compute.v1.LocalDisk\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\024node_affinity_labels\030\271\255\323\241\001 \003(" + + "\0132=.google.cloud.compute.v1.NodeTemplate" + + ".NodeAffinityLabelsEntry\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.NodeTe" + + "mplateNodeTypeFlexibilityH\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\022F\n\016server_binding\030\211\243\242c \001(\0132&.google.c" + + "loud.compute.v1.ServerBindingH\n\210\001\001\022\026\n\006st" + + "atus\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\021CpuOve" + + "rcommitType\022!\n\035UNDEFINED_CPU_OVERCOMMIT_" + + "TYPE\020\000\022\'\n\037CPU_OVERCOMMIT_TYPE_UNSPECIFIE" + + "D\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\006" + + "Status\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%B\026\n\024_cpu_overcommit_typeB" + + "\025\n\023_creation_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_type_flexibilityB\t\n\007_regionB\014\n\n_s" + + "elf_linkB\021\n\017_server_bindingB\t\n\007_statusB\021" + + "\n\017_status_message\"\305\003\n\032NodeTemplateAggreg" + + "atedList\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.NodeTempl" + + "ateAggregatedList.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\032^\n\nI" + + "temsEntry\022\013\n\003key\030\001 \001(\t\022?\n\005value\030\002 \001(\01320." + + "google.cloud.compute.v1.NodeTemplatesSco" + + "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\"\251\002\n\020No" + + "deTemplateList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0227\n\005item" + + "s\030\300\317\367/ \003(\0132%.google.cloud.compute.v1.Nod" + + "eTemplate\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\"\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\"\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\"\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" - + "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\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\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\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\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!\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" + + "kB\n\n\010_warning\"\216\001\n\037NodeTemplateNodeTypeFl" + + "exibility\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\016node_templ" + + "ates\030\274\242\355\250\001 \003(\0132%.google.cloud.compute.v1" + + ".NodeTemplate\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\004\n\010NodeType\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\ndeprecated\030\263\313\321\365\001 \001(\0132*.google.cl" + + "oud.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_cpu" + + "s\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\004ki" + + "nd\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\004na" + + "me\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_platf" + + "ormB\025\n\023_creation_timestampB\r\n\013_deprecate" + + "dB\016\n\014_descriptionB\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\026Node" + + "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" + + ".NodeTypeAggregatedList.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\"\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" + + " \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.NodeTypesS" + + "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" + + "NodeTypeList\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.NodeT" + + "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\"\227\001\n\023NodeTypesScopedList\0229\n\nnode_" + + "types\030\374\277\365\345\001 \003(\0132!.google.cloud.compute.v" + + "1.NodeType\0229\n\007warning\030\234\337\226\030 \001(\0132 .google." + + "cloud.compute.v1.WarningH\000\210\001\001B\n\n\010_warnin" + + "g\"\220\003\n\024NotificationEndpoint\022\"\n\022creation_t" + + "imestamp\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(\0132" + + "9.google.cloud.compute.v1.NotificationEn" + + "dpointGrpcSettingsH\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(\t" + + "H\005\210\001\001\022\026\n\006region\030\364\315\240B \001(\tH\006\210\001\001\022\032\n\tself_li" + + "nk\030\215\222\305\331\001 \001(\tH\007\210\001\001B\025\n\023_creation_timestamp" + + "B\016\n\014_descriptionB\020\n\016_grpc_settingsB\005\n\003_i" + + "dB\007\n\005_kindB\007\n\005_nameB\t\n\007_regionB\014\n\n_self_" + + "link\"\267\002\n NotificationEndpointGrpcSetting" + + "s\022\032\n\tauthority\030\303\216\320\277\001 \001(\tH\000\210\001\001\022\030\n\010endpoin" + + "t\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!.go" + + "ogle.cloud.compute.v1.DurationH\003\210\001\001\022\"\n\022r" + + "etry_duration_sec\030\335\316\2247 \001(\rH\004\210\001\001B\014\n\n_auth" + + "orityB\013\n\t_endpointB\017\n\r_payload_nameB\022\n\020_" + + "resend_intervalB\025\n\023_retry_duration_sec\"\271" + + "\002\n\030NotificationEndpointList\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" + + "ompute.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(\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\"\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" - + "_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\"\320\001\n(RegionInstanceGroupsListIn" - + "stancesRequest\022\036\n\016instance_state\030\347\360\374+ \001(" - + "\tH\000\210\001\001\022\031\n\tport_name\030\211\207\347\023 \001(\tH\001\210\001\001\"H\n\rIns" - + "tanceState\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" - + "_stateB\014\n\n_port_name\"\224\001\n(RegionInstanceG" - + "roupsSetNamedPortsRequest\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.cloud.compute.v1.NamedPortB\016\n\014_" - + "fingerprint\"\235\002\n\nRegionList\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.co" - + "mpute.v1.Region\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\"{\n1RegionNetworkEndp" - + "ointGroupsAttachEndpointsRequest\022F\n\021netw" - + "ork_endpoints\030\255\221\272G \003(\0132(.google.cloud.co" - + "mpute.v1.NetworkEndpoint\"{\n1RegionNetwor" - + "kEndpointGroupsDetachEndpointsRequest\022F\n" - + "\021network_endpoints\030\255\221\272G \003(\0132(.google.clo" - + "ud.compute.v1.NetworkEndpoint\"\201\002\n:Region" - + "NetworkFirewallPoliciesGetEffectiveFirew" - + "allsResponse\022\210\001\n\020firewall_policys\030\302\312\374\303\001 " - + "\003(\0132j.google.cloud.compute.v1.RegionNetw" - + "orkFirewallPoliciesGetEffectiveFirewalls" - + "ResponseEffectiveFirewallPolicy\0228\n\tfirew" - + "alls\030\363\306\350\201\001 \003(\0132!.google.cloud.compute.v1" - + ".Firewall\"\354\002\nQRegionNetworkFirewallPolic" - + "iesGetEffectiveFirewallsResponseEffectiv" - + "eFirewallPolicy\022\034\n\014display_name\030\350\207\221\002 \001(\t" - + "H\000\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\001\210\001\001\022=\n\005rules\030\367\221\365" - + "3 \003(\0132+.google.cloud.compute.v1.Firewall" - + "PolicyRule\022\024\n\004type\030\272\236\332\001 \001(\tH\002\210\001\001\"k\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\023\n\013UNSPECIFIED\020\227\276\230\373\001B\017\n\r_display_nameB\007" - + "\n\005_nameB\007\n\005_type\"\321\001\n\026RegionSetLabelsRequ" - + "est\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;.google.cloud.comput" - + "e.v1.RegionSetLabelsRequest.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\"\263\001\n\026RegionS" - + "etPolicyRequest\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.googl" - + "e.cloud.compute.v1.PolicyH\001\210\001\001B\007\n\005_etagB" - + "\t\n\007_policy\"Q\n1RegionTargetHttpsProxiesSe" - + "tSslCertificatesRequest\022\034\n\020ssl_certifica" - + "tes\030\217\242\303\256\001 \003(\t\"f\n\034RegionUrlMapsValidateRe" - + "quest\0229\n\010resource\030\216\210\257] \001(\0132\037.google.clou" - + "d.compute.v1.UrlMapH\000\210\001\001B\013\n\t_resource\"\224\001" - + "\n&RemoveAssociationFirewallPolicyRequest" - + "\022 \n\017firewall_policy\030\321\212\306\355\001 \001(\tB\003\340A\002\022\024\n\004na" - + "me\030\213\365\315\001 \001(\tH\000\210\001\001\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH" - + "\001\210\001\001B\007\n\005_nameB\r\n\013_request_id\"\276\001\n-RemoveA" - + "ssociationNetworkFirewallPolicyRequest\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!\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\001\210\001\001B\007\n" - + "\005_nameB\r\n\013_request_id\"\345\001\n3RemoveAssociat" - + "ionRegionNetworkFirewallPolicyRequest\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!\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\001\210\001\001B\007\n\005_nameB\r" - + "\n\013_request_id\"\263\002\n\"RemoveHealthCheckTarge" - + "tPoolRequest\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\013target_p" - + "ool\030\212\344\370\035 \001(\tB\003\340A\002\022\200\001\n1target_pools_remov" - + "e_health_check_request_resource\030\263\347\266\221\001 \001(" - + "\0132<.google.cloud.compute.v1.TargetPoolsR" - + "emoveHealthCheckRequestB\003\340A\002B\r\n\013_request" - + "_id\"\247\002\n\037RemoveInstanceTargetPoolRequest\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\022\033\n\013target_pool\030\212\344\370\035 \001(\tB" - + "\003\340A\002\022x\n-target_pools_remove_instance_req" - + "uest_resource\030\203\300\213\016 \001(\01329.google.cloud.co" - + "mpute.v1.TargetPoolsRemoveInstanceReques" - + "tB\003\340A\002B\r\n\013_request_id\"\264\002\n#RemoveInstance" - + "sInstanceGroupRequest\022\036\n\016instance_group\030" - + "\325\324\325& \001(\tB\003\340A\002\022\201\001\n1instance_groups_remove" - + "_instances_request_resource\030\271\321\267\272\001 \001(\0132=." - + "google.cloud.compute.v1.InstanceGroupsRe" - + "moveInstancesRequestB\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\"\366\001\n\033RemovePeeringNetworkReq" - + "uest\022\027\n\007network\030\256\264\205o \001(\tB\003\340A\002\022p\n(network" - + "s_remove_peering_request_resource\030\376\333\351\310\001 " - + "\001(\01325.google.cloud.compute.v1.NetworksRe" - + "movePeeringRequestB\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\"\243\002\n!RemoveResource" - + "PoliciesDiskRequest\022\024\n\004disk\030\235\233\274\001 \001(\tB\003\340A" - + "\002\022}\n/disks_remove_resource_policies_requ" - + "est_resource\030\356\301\241\320\001 \001(\0132;.google.cloud.co" - + "mpute.v1.DisksRemoveResourcePoliciesRequ" - + "estB\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\022\033\n\004zone\030" - + "\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id\"\263\002\n%" - + "RemoveResourcePoliciesInstanceRequest\022\030\n" - + "\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022\204\001\n3instances_re" - + "move_resource_policies_request_resource\030" - + "\366\335\274\027 \001(\0132?.google.cloud.compute.v1.Insta" - + "ncesRemoveResourcePoliciesRequestB\003\340A\002\022!" + + "ge_tokenB\014\n\n_self_linkB\n\n\010_warning\"\275\014\n\tO" + + "peration\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.g" + + "oogle.cloud.compute.v1.ErrorH\004\210\001\001\022\'\n\022htt" + + "p_error_message\030\331\372\310` \001(\tB\003\350G\004H\005\210\001\001\022,\n\026ht" + + "tp_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\022w\n(instances_bulk_insert_operat" + + "ion_metadata\030\301\206\301* \001(\0132=.google.cloud.com" + + "pute.v1.InstancesBulkInsertOperationMeta" + + "dataH\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_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\006regi" + + "on\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_op" + + "eration_metadata\030\344\255\352\351\001 \001(\0132C.google.clou" + + "d.compute.v1.SetCommonInstanceMetadataOp" + + "erationMetadataH\021\210\001\001\022\032\n\nstart_time\030\212\351\356\021 " + + "\001(\tH\022\210\001\001\022F\n\006status\030\362\237\267V \001(\0162).google.clo" + + "ud.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\ttar" + + "get_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\010warni" + + "ngs\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\020UNDEFINED_STATUS\020\000\022\013\n\004DONE\020\202\267\200\001\022\016\n\007P" + + "ENDING\020\367\252\360\020\022\016\n\007RUNNING\020\237\303\3529B\026\n\024_client_o" + + "peration_idB\025\n\023_creation_timestampB\016\n\014_d" + + "escriptionB\013\n\t_end_timeB\010\n\006_errorB\025\n\023_ht" + + "tp_error_messageB\031\n\027_http_error_status_c" + + "odeB\005\n\003_idB\016\n\014_insert_timeB+\n)_instances" + + "_bulk_insert_operation_metadataB\007\n\005_kind" + + "B\007\n\005_nameB\025\n\023_operation_group_idB\021\n\017_ope" + + "ration_typeB\013\n\t_progressB\t\n\007_regionB\014\n\n_" + + "self_linkB2\n0_set_common_instance_metada" + + "ta_operation_metadataB\r\n\013_start_timeB\t\n\007" + + "_statusB\021\n\017_status_messageB\014\n\n_target_id" + + "B\016\n\014_target_linkB\007\n\005_userB\007\n\005_zone\"\274\003\n\027O" + + "perationAggregatedList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001" + + "\022M\n\005items\030\300\317\367/ \003(\0132;.google.cloud.comput" + + "e.v1.OperationAggregatedList.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\032[\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022<\n\005val" + + "ue\030\002 \001(\0132-.google.cloud.compute.v1.Opera" + + "tionsScopedList:\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\"\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.v" + + "1.Operation\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\"\230\001\n\024OperationsScopedList" + + "\0229\n\noperations\030\354\257\377\001 \003(\0132\".google.cloud.c" + + "ompute.v1.Operation\0229\n\007warning\030\234\337\226\030 \001(\0132" + + " .google.cloud.compute.v1.WarningH\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.co" + + "mpute.v1.DurationH\000\210\001\001\022#\n\022consecutive_er" + + "rors\030\240\263\320\270\001 \001(\005H\001\210\001\001\022,\n\033consecutive_gatew" + + "ay_failure\030\372\267\212\307\001 \001(\005H\002\210\001\001\022,\n\034enforcing_c" + + "onsecutive_errors\030\300\323\320e \001(\005H\003\210\001\001\0226\n%enfor" + + "cing_consecutive_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.cl" + + "oud.compute.v1.DurationH\006\210\001\001\022$\n\024max_ejec" + + "tion_percent\030\230\246\345\010 \001(\005H\007\210\001\001\022+\n\032success_ra" + + "te_minimum_hosts\030\367\241\332\372\001 \001(\005H\010\210\001\001\022,\n\033succe" + + "ss_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\001" + + "B\025\n\023_base_ejection_timeB\025\n\023_consecutive_" + + "errorsB\036\n\034_consecutive_gateway_failureB\037" + + "\n\035_enforcing_consecutive_errorsB(\n&_enfo" + + "rcing_consecutive_gateway_failureB\031\n\027_en" + + "forcing_success_rateB\013\n\t_intervalB\027\n\025_ma" + + "x_ejection_percentB\035\n\033_success_rate_mini" + + "mum_hostsB\036\n\034_success_rate_request_volum" + + "eB\034\n\032_success_rate_stdev_factor\"\306\003\n\017Pack" + + "etIntervals\022\026\n\006avg_ms\030\263\334\324a \001(\003H\000\210\001\001\022\030\n\010d" + + "uration\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_i" + + "ntervals\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_DURATION\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\007R" + + "ECEIVE\020\303\375\267Z\022\020\n\010TRANSMIT\020\260\205\373\327\001\022\030\n\020TYPE_UN" + + "SPECIFIED\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_intervalsB" + + "\007\n\005_type\"\272\006\n\017PacketMirroring\022Z\n\rcollecto" + + "r_ilb\030\355\211\266\313\001 \001(\0132:.google.cloud.compute.v" + + "1.PacketMirroringForwardingRuleInfoH\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\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.compute.v1.PacketMirroringFilterH" + + "\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<.go" + + "ogle.cloud.compute.v1.PacketMirroringMir" + + "roredResourceInfoH\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.google.cloud." + + "compute.v1.PacketMirroringNetworkInfoH\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\005FAL" + + "SE\020\203\302\344\037\022\013\n\004TRUE\020\216\333\235\001B\020\n\016_collector_ilbB\025" + + "\n\023_creation_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_priorityB\t\n\007_regionB\014\n\n_self_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.google.clo" + + "ud.compute.v1.PacketMirroringAggregatedL" + + "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\032a\n\nItemsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022B\n\005value\030\002 \001(\01323.google.cloud.c" + + "ompute.v1.PacketMirroringsScopedList:\0028\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\"\306\001\n\025PacketMirrori" + + "ngFilter\022\030\n\rI_p_protocols\030\326\331\376. \003(\t\022\027\n\013ci" + + "dr_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_DIRECTI" + + "ON\020\000\022\n\n\004BOTH\020\201\347|\022\016\n\006EGRESS\020\365\366\264\316\001\022\017\n\007INGR" + + "ESS\020\225\375\276\366\001B\014\n\n_direction\"q\n!PacketMirrori" + + "ngForwardingRuleInfo\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_can" + + "onical_urlB\006\n\004_url\"\257\002\n\023PacketMirroringLi" + + "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.PacketMirroring" + + "\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\"\367\001\n#PacketMirroringMirroredResource" + + "Info\022^\n\tinstances\030\376\374\357\r \003(\0132H.google.clou" + + "d.compute.v1.PacketMirroringMirroredReso" + + "urceInfoInstanceInfo\022_\n\013subnetworks\030\305\324\245\306" + + "\001 \003(\0132F.google.cloud.compute.v1.PacketMi" + + "rroringMirroredResourceInfoSubnetInfo\022\017\n" + + "\004tags\030\231\350\330\001 \003(\t\"\177\n/PacketMirroringMirrore" + + "dResourceInfoInstanceInfo\022\036\n\rcanonical_u" + + "rl\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-PacketMirrori" + + "ngMirroredResourceInfoSubnetInfo\022\036\n\rcano" + + "nical_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\032Packet" + + "MirroringNetworkInfo\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_can" + + "onical_urlB\006\n\004_url\"\253\001\n\032PacketMirroringsS" + + "copedList\022F\n\021packet_mirrorings\030\247\372\334I \003(\0132" + + "(.google.cloud.compute.v1.PacketMirrorin" + + "g\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.com" + + "pute.v1.WarningH\000\210\001\001B\n\n\010_warning\"\371\001\n\026Pat" + + "chAutoscalerRequest\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(\013" + + "2#.google.cloud.compute.v1.AutoscalerB\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\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_reques" + + "t_id\"\333\001\n\031PatchBackendBucketRequest\022\036\n\016ba" + + "ckend_bucket\030\365\343\335+ \001(\tB\003\340A\002\022P\n\027backend_bu" + + "cket_resource\030\230\316\307\265\001 \001(\0132&.google.cloud.c" + + "ompute.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\032PatchBack" + + "endServiceRequest\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.Back" + + "endServiceB\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\"\275\001\n\032PatchFirewallPolicyReq" + + "uest\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\'.g" + + "oogle.cloud.compute.v1.FirewallPolicyB\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\"\305\001\n\024PatchFirewallRequest\022\031\n\010firewa" + + "ll\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.Firewa" + + "llB\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\"\201\002\n\032PatchForwardingRuleRequest\022 \n\017" + + "forwarding_rule\030\376\245\335\200\001 \001(\tB\003\340A\002\022R\n\030forwar" + + "ding_rule_resource\030\257\300\320\217\001 \001(\0132\'.google.cl" + + "oud.compute.v1.ForwardingRuleB\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\"\346\001\n PatchGloba" + + "lForwardingRuleRequest\022 \n\017forwarding_rul" + + "e\030\376\245\335\200\001 \001(\tB\003\340A\002\022R\n\030forwarding_rule_reso", + "urce\030\257\300\320\217\001 \001(\0132\'.google.cloud.compute.v1" + + ".ForwardingRuleB\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\"\203\002\n(PatchGlobalPublic" + + "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`\n public_delegated_" + + "prefix_resource\030\205\370\330\026 \001(\0132..google.cloud." + + "compute.v1.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\027PatchHealthCheckRequest\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\"\271\001\n\021PatchImageRequest\022\025\n\005" + + "image\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\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 PatchInstanceGroupManagerRequest\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.InstanceGr" + + "oupManagerB\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\033PatchInstanceSettingRequest\022V\n\032in" + + "stance_settings_resource\030\200\247\316\212\001 \001(\0132).goo" + + "gle.cloud.compute.v1.InstanceSettingsB\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\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\004" + + "zoneB\r\n\013_request_idB\016\n\014_update_mask\"\240\002\n\"" + + "PatchInterconnectAttachmentRequest\022(\n\027in" + + "terconnect_attachment\030\364\212\367\222\001 \001(\tB\003\340A\002\022a\n " + + "interconnect_attachment_resource\030\371\244\240e \001(" + + "\0132/.google.cloud.compute.v1.Interconnect" + + "AttachmentB\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\"\325\001\n\030PatchInterconnectRequest\022\034\n\014i" + + "nterconnect\030\216\311\214k \001(\tB\003\340A\002\022M\n\025interconnec" + + "t_resource\030\237\241\314\275\001 \001(\0132%.google.cloud.comp" + + "ute.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\"\213\002\n\035PatchNetworkA" + + "ttachmentRequest\022\"\n\022network_attachment\030\324" + + "\227\217k \001(\tB\003\340A\002\022W\n\033network_attachment_resou" + + "rce\030\231\360\314d \001(\0132*.google.cloud.compute.v1.N" + + "etworkAttachmentB\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\"\203\003\n&PatchNetworkEdgeSecurit" + + "yServiceRequest\022-\n\035network_edge_security" + + "_service\030\247\237\357J \001(\tB\003\340A\002\022l\n&network_edge_s" + + "ecurity_service_resource\030\246\243\333\343\001 \001(\01323.goo" + + "gle.cloud.compute.v1.NetworkEdgeSecurity" + + "ServiceB\003\340A\002\022\025\n\005paths\030\356\301\3402 \001(\tH\000\210\001\001\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\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_ma" + + "sk\"\347\001\n!PatchNetworkFirewallPolicyRequest" + + "\022 \n\017firewall_policy\030\321\212\306\355\001 \001(\tB\003\340A\002\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\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\"\272\002\n\'RemoveReso" - + "urcePoliciesRegionDiskRequest\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\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022" - + "\211\001\n6region_disks_remove_resource_policie" - + "s_request_resource\030\243\303\225\004 \001(\0132A.google.clo" - + "ud.compute.v1.RegionDisksRemoveResourceP" - + "oliciesRequestB\003\340A\002\022\032\n\nrequest_id\030\313\201\331\021 \001" - + "(\tH\000\210\001\001B\r\n\013_request_id\"\226\001\n\037RemoveRuleFir" - + "ewallPolicyRequest\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" - + "\032\n\nrequest_id\030\313\201\331\021 \001(\tH\001\210\001\001B\013\n\t_priority" - + "B\r\n\013_request_id\"\300\001\n&RemoveRuleNetworkFir" - + "ewallPolicyRequest\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\032\n\nre" - + "quest_id\030\313\201\331\021 \001(\tH\001\210\001\001B\013\n\t_priorityB\r\n\013_" - + "request_id\"\347\001\n,RemoveRuleRegionNetworkFi" - + "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" - + "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" + + "uest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\300\001\n" + + "\023PatchNetworkRequest\022\027\n\007network\030\256\264\205o \001(\t" + + "B\003\340A\002\022B\n\020network_resource\030\377\335\234: \001(\0132 .goo" + + "gle.cloud.compute.v1.NetworkB\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\"\351\001\n\025Patc" + + "hNodeGroupRequest\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\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\"\204\002\n\033PatchPac" + + "ketMirroringRequest\022 \n\020packet_mirroring\030" + + "\314\271\321\n \001(\tB\003\340A\002\022T\n\031packet_mirroring_resour" + + "ce\030\241\374\250\353\001 \001(\0132(.google.cloud.compute.v1.P" + + "acketMirroringB\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\n2PatchPerInstanceConfigsIn" + + "stanceGroupManagerRequest\022&\n\026instance_gr" + + "oup_manager\030\303\367\363v \001(\tB\003\340A\002\022\232\001\n?instance_g" + + "roup_managers_patch_per_instance_configs" + + "_req_resource\030\377\233\210\252\001 \001(\0132H.google.cloud.c" + + "ompute.v1.InstanceGroupManagersPatchPerI" + + "nstanceConfigsReqB\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\"\357\002\n8PatchPerInstanceConfigsReg" + + "ionInstanceGroupManagerRequest\022&\n\026instan" + + "ce_group_manager\030\303\367\363v \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\233\001\n@region_instance_g" + + "roup_manager_patch_instance_config_req_r" + + "esource\030\312\315\241^ \001(\0132I.google.cloud.compute." + + "v1.RegionInstanceGroupManagerPatchInstan" + + "ceConfigReqB\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#PatchPublicAdver" + + "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\022b\n!public_advertised_pr" + + "efix_resource\030\217\327\262o \001(\0132/.google.cloud.co" + + "mpute.v1.PublicAdvertisedPrefixB\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\"" + + "\236\002\n\"PatchPublicDelegatedPrefixeRequest\022!" + + "\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\'\n\027pub" + + "lic_delegated_prefix\030\350\334\261a \001(\tB\003\340A\002\022`\n pu" + + "blic_delegated_prefix_resource\030\205\370\330\026 \001(\0132" + + "..google.cloud.compute.v1.PublicDelegate" + + "dPrefixB\003\340A\002\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\"\203\002\n\034PatchRegionAutoscalerReques" + + "t\022\033\n\nautoscaler\030\327\375\322\366\001 \001(\tH\000\210\001\001\022H\n\023autosc" + + "aler_resource\030\366\360\377b \001(\0132#.google.cloud.co" + + "mpute.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\001\210\001\001" + + "B\r\n\013_autoscalerB\r\n\013_request_id\"\207\002\n Patch" + + "RegionBackendServiceRequest\022 \n\017backend_s" + + "ervice\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.compu" + + "te.v1.BackendServiceB\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\"\372\001\n\035PatchRegionHealthCh" + + "eckRequest\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$.go" + + "ogle.cloud.compute.v1.HealthCheckB\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\"\231\002\n$PatchR" + + "egionHealthCheckServiceRequest\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+.googl" + + "e.cloud.compute.v1.HealthCheckServiceB\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\"\237\002\n&Pa" + + "tchRegionInstanceGroupManagerRequest\022&\n\026" + + "instance_group_manager\030\303\367\363v \001(\tB\003\340A\002\022^\n\037" + + "instance_group_manager_resource\030\212\212\276| \001(\013" + + "2-.google.cloud.compute.v1.InstanceGroup" + + "ManagerB\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\"\216\002\n\'PatchRegionNetworkFirewallPolicy" + + "Request\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.FirewallPolicy" + + "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\"\263\002\n" + + " PatchRegionSecurityPolicyRequest\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\037\n\017security_policy" - + "\030\221\206\312Q \001(\tB\003\340A\002B\013\n\t_priority\"\215\001\n\037RemoveRu" - + "leSecurityPolicyRequest\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\007pr" - + "oject\022\037\n\017security_policy\030\221\206\312Q \001(\tB\003\340A\002B\013" - + "\n\t_priority\"K\n\023RequestMirrorPolicy\022 \n\017ba" - + "ckend_service\030\212\300\256\222\001 \001(\tH\000\210\001\001B\022\n\020_backend" - + "_service\"\251\t\n\013Reservation\022_\n\025aggregate_re" - + "servation\030\314\362\203\213\001 \001(\01327.google.cloud.compu" - + "te.v1.AllocationAggregateReservationH\000\210\001" - + "\001\022\033\n\ncommitment\030\225\226\363\345\001 \001(\tH\001\210\001\001\022\"\n\022creati" - + "on_timestamp\030\266\217\307\016 \001(\tH\002\210\001\001\022\034\n\013descriptio" - + "n\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\004ki" - + "nd\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\022X" - + "\n\021resource_policies\030\341\234\314\n \003(\0132:.google.cl" - + "oud.compute.v1.Reservation.ResourcePolic" - + "iesEntry\022R\n\017resource_status\030\303\372\367v \001(\01321.g" - + "oogle.cloud.compute.v1.AllocationResourc" - + "eStatusH\007\210\001\001\022\036\n\rsatisfies_pzs\030\253\335\253\345\001 \001(\010H" - + "\010\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\t\210\001\001\022F\n\016shar" - + "e_settings\030\203\221\224\177 \001(\0132&.google.cloud.compu" - + "te.v1.ShareSettingsH\n\210\001\001\022`\n\024specific_res" - + "ervation\030\277\240\211\301\001 \001(\01329.google.cloud.comput" - + "e.v1.AllocationSpecificSKUReservationH\013\210" - + "\001\001\022-\n\035specific_reservation_required\030\237\307\203l" - + " \001(\010H\014\210\001\001\022\026\n\006status\030\362\237\267V \001(\tH\r\210\001\001\022\024\n\004zon" - + "e\030\254\307\344\001 \001(\tH\016\210\001\001\0327\n\025ResourcePoliciesEntry" - + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"s\n\006Stat" - + "us\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\010UPDATING\020\306\356\354\353\001B\030\n\026_aggreg" - + "ate_reservationB\r\n\013_commitmentB\025\n\023_creat" - + "ion_timestampB\016\n\014_descriptionB\005\n\003_idB\007\n\005" - + "_kindB\007\n\005_nameB\022\n\020_resource_statusB\020\n\016_s" - + "atisfies_pzsB\014\n\n_self_linkB\021\n\017_share_set" - + "tingsB\027\n\025_specific_reservationB \n\036_speci" - + "fic_reservation_requiredB\t\n\007_statusB\007\n\005_" - + "zone\"\260\002\n\023ReservationAffinity\022)\n\030consume_" - + "reservation_type\030\260\303\263\217\001 \001(\tH\000\210\001\001\022\022\n\003key\030\337" - + "\274\006 \001(\tH\001\210\001\001\022\021\n\006values\030\242\272\226w \003(\t\"\241\001\n\026Consu" - + "meReservationType\022&\n\"UNDEFINED_CONSUME_R" - + "ESERVATION_TYPE\020\000\022\026\n\017ANY_RESERVATION\020\271\303\257" - + "_\022\025\n\016NO_RESERVATION\020\256\314\336P\022\033\n\024SPECIFIC_RES" - + "ERVATION\020\237\250\317m\022\023\n\013UNSPECIFIED\020\227\276\230\373\001B\033\n\031_c" - + "onsume_reservation_typeB\006\n\004_key\"\302\003\n\031Rese" - + "rvationAggregatedList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022" - + "O\n\005items\030\300\317\367/ \003(\0132=.google.cloud.compute" - + ".v1.ReservationAggregatedList.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(\0132/.google.cloud.compute.v1.Rese" - + "rvationsScopedList:\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\"\247\002\n\017ReservationList\022\020\n\002id\030\233\032 \001(\tH\000\210" - + "\001\001\0226\n\005items\030\300\317\367/ \003(\0132$.google.cloud.comp" - + "ute.v1.Reservation\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\"V\n\031ReservationsRe" - + "sizeRequest\022\"\n\022specific_sku_count\030\240\351\317\006 \001" - + "(\003H\000\210\001\001B\025\n\023_specific_sku_count\"\237\001\n\026Reser" - + "vationsScopedList\022>\n\014reservations\030\247\354\314\276\001 " - + "\003(\0132$.google.cloud.compute.v1.Reservatio" - + "n\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud.com" - + "pute.v1.WarningH\000\210\001\001B\n\n\010_warning\"\233\001\n\024Res" - + "etInstanceRequest\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\"\360\001\n\021Resiz" - + "eDiskRequest\022\024\n\004disk\030\235\233\274\001 \001(\tB\003\340A\002\022Z\n\035di" - + "sks_resize_request_resource\030\240\302\253% \001(\0132+.g" - + "oogle.cloud.compute.v1.DisksResizeReques" - + "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\"\314\001\n!Re" - + "sizeInstanceGroupManagerRequest\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\032\n\nrequest_id" - + "\030\313\201\331\021 \001(\tH\000\210\001\001\022\024\n\004size\030\201\300\327\001 \001(\005B\003\340A\002\022\033\n\004" - + "zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id" - + "\"\210\002\n\027ResizeRegionDiskRequest\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\037\n\006region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022h" - + "\n$region_disks_resize_request_resource\030\225" - + "\252\374\324\001 \001(\01321.google.cloud.compute.v1.Regio" - + "nDisksResizeRequestB\003\340A\002\022\032\n\nrequest_id\030\313" - + "\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\326\001\n\'ResizeRe" - + "gionInstanceGroupManagerRequest\022&\n\026insta" - + "nce_group_manager\030\303\367\363v \001(\tB\003\340A\002\022!\n\007proje" + + "\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\340" + + "A\002\022Q\n\030security_policy_resource\030\374\252\211g \001(\0132" + + "\'.google.cloud.compute.v1.SecurityPolicy" + + "B\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\033PatchRegi" + + "onSslPolicyRequest\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\033\n\nss" + + "l_policy\030\305\375\340\214\001 \001(\tB\003\340A\002\022H\n\023ssl_policy_re" + + "source\030\310\210\212\203\001 \001(\0132\".google.cloud.compute." + + "v1.SslPolicyB\003\340A\002B\r\n\013_request_id\"\220\002\n\"Pat" + + "chRegionTargetHttpsProxyRequest\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\024\n\004size\030\201\300\327\001 \001(\005B\003\340A\002B\r\n\013_reques" - + "t_id\"\215\002\n\030ResizeReservationRequest\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\013reservation\030\314\207\325\026 \001(\t" - + "B\003\340A\002\022i\n$reservations_resize_request_res" - + "ource\030\321\333\316\271\001 \001(\01322.google.cloud.compute.v" - + "1.ReservationsResizeRequestB\003\340A\002\022\033\n\004zone" - + "\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id\"\202\002\n" - + "\022ResourceCommitment\022 \n\020accelerator_type\030" - + "\216\341\350A \001(\tH\000\210\001\001\022\026\n\006amount\030\330\240\351] \001(\003H\001\210\001\001\022\024\n" - + "\004type\030\272\236\332\001 \001(\tH\002\210\001\001\"s\n\004Type\022\022\n\016UNDEFINED" - + "_TYPE\020\000\022\023\n\013ACCELERATOR\020\313\354\371\314\001\022\021\n\tLOCAL_SS" - + "D\020\360\365\326\362\001\022\r\n\006MEMORY\020\201\342\326:\022\023\n\013UNSPECIFIED\020\227\276" - + "\230\373\001\022\013\n\004VCPU\020\362\272\240\001B\023\n\021_accelerator_typeB\t\n" - + "\007_amountB\007\n\005_type\"9\n\026ResourceGroupRefere" - + "nce\022\025\n\005group\030\377\354\203/ \001(\tH\000\210\001\001B\010\n\006_group\"\252\001\n" - + "\032ResourcePoliciesScopedList\022E\n\021resource_" - + "policies\030\341\234\314\n \003(\0132\'.google.cloud.compute" - + ".v1.ResourcePolicy\0229\n\007warning\030\234\337\226\030 \001(\0132 " - + ".google.cloud.compute.v1.WarningH\000\210\001\001B\n\n" - + "\010_warning\"\302\010\n\016ResourcePolicy\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\022q\n\035disk_consistency_group" - + "_policy\030\233\204\362\341\001 \001(\0132A.google.cloud.compute" - + ".v1.ResourcePolicyDiskConsistencyGroupPo" - + "licyH\002\210\001\001\022c\n\026group_placement_policy\030\214\233\233\005" - + " \001(\0132;.google.cloud.compute.v1.ResourceP" - + "olicyGroupPlacementPolicyH\003\210\001\001\022\020\n\002id\030\233\032 " - + "\001(\004H\004\210\001\001\022h\n\030instance_schedule_policy\030\260\320\271" - + "\244\001 \001(\0132=.google.cloud.compute.v1.Resourc" - + "ePolicyInstanceSchedulePolicyH\005\210\001\001\022\024\n\004ki" - + "nd\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\026" - + "\n\006region\030\364\315\240B \001(\tH\010\210\001\001\022V\n\017resource_statu" - + "s\030\303\372\367v \001(\01325.google.cloud.compute.v1.Res" - + "ourcePolicyResourceStatusH\t\210\001\001\022\032\n\tself_l" - + "ink\030\215\222\305\331\001 \001(\tH\n\210\001\001\022g\n\030snapshot_schedule_" - + "policy\030\337\326\201h \001(\0132=.google.cloud.compute.v" - + "1.ResourcePolicySnapshotSchedulePolicyH\013" - + "\210\001\001\022\026\n\006status\030\362\237\267V \001(\tH\014\210\001\001\"r\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\007EXPIRED\020\205\346\210\346\001\022\017\n\007INVA" - + "LID\020\327\373\355\374\001\022\014\n\005READY\020\203\303\217%B\025\n\023_creation_tim" - + "estampB\016\n\014_descriptionB \n\036_disk_consiste" - + "ncy_group_policyB\031\n\027_group_placement_pol" - + "icyB\005\n\003_idB\033\n\031_instance_schedule_policyB" - + "\007\n\005_kindB\007\n\005_nameB\t\n\007_regionB\022\n\020_resourc" - + "e_statusB\014\n\n_self_linkB\033\n\031_snapshot_sche" - + "dule_policyB\t\n\007_status\"\353\003\n\034ResourcePolic" - + "yAggregatedList\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\022R\n\005items\030\300\317\367/ \003(\0132@.goog" - + "le.cloud.compute.v1.ResourcePolicyAggreg" - + "atedList.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\tse" - + "lf_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.clo" - + "ud.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.cl" - + "oud.compute.v1.ResourcePoliciesScopedLis" - + "t:\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\"\236\001\n" - + "\030ResourcePolicyDailyCycle\022\036\n\rdays_in_cyc" - + "le\030\264\230\252\260\001 \001(\005H\000\210\001\001\022\030\n\010duration\030\224\233\221J \001(\tH\001" - + "\210\001\001\022\032\n\nstart_time\030\212\351\356\021 \001(\tH\002\210\001\001B\020\n\016_days" - + "_in_cycleB\013\n\t_durationB\r\n\013_start_time\"*\n" - + "(ResourcePolicyDiskConsistencyGroupPolic" - + "y\"\240\002\n\"ResourcePolicyGroupPlacementPolicy" - + "\022)\n\031availability_domain_count\030\270\214\370\005 \001(\005H\000" - + "\210\001\001\022\034\n\013collocation\030\265\302\336\363\001 \001(\tH\001\210\001\001\022\030\n\010vm_" - + "count\030\207\273\326| \001(\005H\002\210\001\001\"\\\n\013Collocation\022\031\n\025UN" - + "DEFINED_COLLOCATION\020\000\022\021\n\nCOLLOCATED\020\322\253\2361" - + "\022\037\n\027UNSPECIFIED_COLLOCATION\020\355\217\263\335\001B\034\n\032_av" - + "ailability_domain_countB\016\n\014_collocationB" - + "\013\n\t_vm_count\"\241\001\n\031ResourcePolicyHourlyCyc" - + "le\022\030\n\010duration\030\224\233\221J \001(\tH\000\210\001\001\022\037\n\016hours_in" - + "_cycle\030\374\210\227\373\001 \001(\005H\001\210\001\001\022\032\n\nstart_time\030\212\351\356\021" - + " \001(\tH\002\210\001\001B\013\n\t_durationB\021\n\017_hours_in_cycl" - + "eB\r\n\013_start_time\"\256\003\n$ResourcePolicyInsta" - + "nceSchedulePolicy\022\037\n\017expiration_time\030\335\254\350" - + "m \001(\tH\000\210\001\001\022\032\n\nstart_time\030\212\351\356\021 \001(\tH\001\210\001\001\022\031" - + "\n\ttime_zone\030\336\203\311\021 \001(\tH\002\210\001\001\022h\n\021vm_start_sc" - + "hedule\030\334\220\274\010 \001(\0132E.google.cloud.compute.v" - + "1.ResourcePolicyInstanceSchedulePolicySc" - + "heduleH\003\210\001\001\022h\n\020vm_stop_schedule\030\254\345\237\313\001 \001(" - + "\0132E.google.cloud.compute.v1.ResourcePoli" - + "cyInstanceSchedulePolicyScheduleH\004\210\001\001B\022\n" - + "\020_expiration_timeB\r\n\013_start_timeB\014\n\n_tim" - + "e_zoneB\024\n\022_vm_start_scheduleB\023\n\021_vm_stop" - + "_schedule\"V\n,ResourcePolicyInstanceSched" - + "ulePolicySchedule\022\031\n\010schedule\030\227\245\232\263\001 \001(\tH" - + "\000\210\001\001B\013\n\t_schedule\"\314\002\n\022ResourcePolicyList" - + "\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.comput" - + "e.v1.ResourcePolicy\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\tse" - + "lf_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.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\"\271\001\n\034Res" - + "ourcePolicyResourceStatus\022|\n\030instance_sc" - + "hedule_policy\030\260\320\271\244\001 \001(\0132Q.google.cloud.c" - + "ompute.v1.ResourcePolicyResourceStatusIn" - + "stanceSchedulePolicyStatusH\000\210\001\001B\033\n\031_inst" - + "ance_schedule_policy\"\266\001\n8ResourcePolicyR" - + "esourceStatusInstanceSchedulePolicyStatu" - + "s\022$\n\023last_run_start_time\030\207\357\301\220\001 \001(\tH\000\210\001\001\022" - + "$\n\023next_run_start_time\030\212\263\370\227\001 \001(\tH\001\210\001\001B\026\n" - + "\024_last_run_start_timeB\026\n\024_next_run_start" - + "_time\"\250\003\n$ResourcePolicySnapshotSchedule" - + "Policy\022n\n\020retention_policy\030\363\312\334 \001(\0132L.go" - + "ogle.cloud.compute.v1.ResourcePolicySnap" - + "shotSchedulePolicyRetentionPolicyH\000\210\001\001\022`" - + "\n\010schedule\030\227\245\232\263\001 \001(\0132E.google.cloud.comp" - + "ute.v1.ResourcePolicySnapshotSchedulePol" - + "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" - + "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" - + "H\001\210\001\001\"\237\001\n\022OnSourceDiskDelete\022#\n\037UNDEFINE" - + "D_ON_SOURCE_DISK_DELETE\020\000\022\036\n\026APPLY_RETEN" - + "TION_POLICY\020\344\224\222\377\001\022\032\n\023KEEP_AUTO_SNAPSHOTS" - + "\020\371\310\273{\022(\n!UNSPECIFIED_ON_SOURCE_DISK_DELE" - + "TE\020\241\377\203rB\025\n\023_max_retention_daysB\030\n\026_on_so" - + "urce_disk_delete\"\347\002\n,ResourcePolicySnaps" - + "hotSchedulePolicySchedule\022Q\n\016daily_sched" - + "ule\030\375\343\212) \001(\01321.google.cloud.compute.v1.R" - + "esourcePolicyDailyCycleH\000\210\001\001\022S\n\017hourly_s" - + "chedule\030\245\261\243\022 \001(\01322.google.cloud.compute." - + "v1.ResourcePolicyHourlyCycleH\001\210\001\001\022T\n\017wee" - + "kly_schedule\030\225\211\271\253\001 \001(\01322.google.cloud.co" - + "mpute.v1.ResourcePolicyWeeklyCycleH\002\210\001\001B" - + "\021\n\017_daily_scheduleB\022\n\020_hourly_scheduleB\022" - + "\n\020_weekly_schedule\"\320\002\n6ResourcePolicySna" - + "pshotSchedulePolicySnapshotProperties\022\032\n" - + "\nchain_name\030\311\332\335 \001(\tH\000\210\001\001\022\034\n\013guest_flush" - + "\030\335\223\354\267\001 \001(\010H\001\210\001\001\022o\n\006labels\030\377\277\301\356\001 \003(\0132[.go" - + "ogle.cloud.compute.v1.ResourcePolicySnap" - + "shotSchedulePolicySnapshotProperties.Lab" - + "elsEntry\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\001B\r\n\013_chain_nameB\016\n\014_guest_flush\"q\n" - + "\031ResourcePolicyWeeklyCycle\022T\n\014day_of_wee" - + "ks\030\332\237\373z \003(\0132;.google.cloud.compute.v1.Re" - + "sourcePolicyWeeklyCycleDayOfWeek\"\264\002\n\"Res" - + "ourcePolicyWeeklyCycleDayOfWeek\022\022\n\003day\030\234" - + "\207\006 \001(\tH\000\210\001\001\022\030\n\010duration\030\224\233\221J \001(\tH\001\210\001\001\022\032\n" - + "\nstart_time\030\212\351\356\021 \001(\tH\002\210\001\001\"\237\001\n\003Day\022\021\n\rUND" - + "EFINED_DAY\020\000\022\016\n\006FRIDAY\020\337\362\343\340\001\022\017\n\007INVALID\020" - + "\327\373\355\374\001\022\r\n\006MONDAY\020\220\312\213?\022\020\n\010SATURDAY\020\271\217\207\205\001\022\016" - + "\n\006SUNDAY\020\320\213\322\223\001\022\017\n\010THURSDAY\020\332\263\346b\022\017\n\007TUESD" - + "AY\020\255\354\251\204\001\022\021\n\tWEDNESDAY\020\266\316\236\311\001B\006\n\004_dayB\013\n\t_" - + "durationB\r\n\013_start_time\"\216\002\n\016ResourceStat" - + "us\022\036\n\rphysical_host\030\220\370\266\335\001 \001(\tH\000\210\001\001\022N\n\nsc" - + "heduling\030\224\313\261\270\001 \001(\01321.google.cloud.comput" - + "e.v1.ResourceStatusSchedulingH\001\210\001\001\022R\n\024up" - + "coming_maintenance\030\360\240\264l \001(\0132,.google.clo" - + "ud.compute.v1.UpcomingMaintenanceH\002\210\001\001B\020" - + "\n\016_physical_hostB\r\n\013_schedulingB\027\n\025_upco" - + "ming_maintenance\"W\n\030ResourceStatusSchedu" - + "ling\022#\n\023availability_domain\030\250\240\264x \001(\005H\000\210\001" - + "\001B\026\n\024_availability_domain\"\234\001\n\025ResumeInst" - + "anceRequest\022\030\n\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022!\n" + + "(\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.TargetHtt" + + "psProxyB\003\340A\002B\r\n\013_request_id\"\346\001\n\030PatchReg" + + "ionUrlMapRequest\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\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.UrlMap" + + "B\003\340A\002B\r\n\013_request_id\"\255\002\n\032PatchResourcePo" + + "licyRequest\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\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.ResourcePolicyB\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\022PatchRouterRequest\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\026\n\006router\030\311\256\356F \001(\tB\003\340A\002\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\"\361\001\n\036PatchRu" + + "leFirewallPolicyRequest\022 \n\017firewall_poli" + + "cy\030\321\212\306\355\001 \001(\tB\003\340A\002\022Z\n\035firewall_policy_rul" + + "e_resource\030\203\337\272w \001(\0132+.google.cloud.compu" + + "te.v1.FirewallPolicyRuleB\003\340A\002\022\031\n\010priorit" + + "y\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%Pat" + + "chRuleNetworkFirewallPolicyRequest\022 \n\017fi" + + "rewall_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.FirewallPolicyRuleB\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\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+PatchRuleRegionNetworkFirewallPolicyR" + + "equest\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.FirewallPol" + + "icyRuleB\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\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\001\210\001\001B\013\n\t_priorityB\r\n\013_request" + + "_id\"\357\002\n$PatchRuleRegionSecurityPolicyReq" + + "uest\022\031\n\010priority\030\244\363\241\324\001 \001(\005H\000\210\001\001\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\037\n\017security_policy\030\221" + + "\206\312Q \001(\tB\003\340A\002\022[\n\035security_policy_rule_res" + + "ource\030\303\272\202\300\001 \001(\0132+.google.cloud.compute.v" + + "1.SecurityPolicyRuleB\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\036PatchRuleSecurityPolic" + + "yRequest\022\031\n\010priority\030\244\363\241\324\001 \001(\005H\000\210\001\001\022!\n\007p" + + "roject\030\231\226\301l \001(\tB\r\340A\002\362G\007project\022\037\n\017securi" + + "ty_policy\030\221\206\312Q \001(\tB\003\340A\002\022[\n\035security_poli" + + "cy_rule_resource\030\303\272\202\300\001 \001(\0132+.google.clou" + + "d.compute.v1.SecurityPolicyRuleB\003\340A\002\022\034\n\013" + + "update_mask\030\242\271\272\356\001 \001(\tH\001\210\001\001\022\035\n\rvalidate_o" + + "nly\030\265\372\337s \001(\010H\002\210\001\001B\013\n\t_priorityB\016\n\014_updat" + + "e_maskB\020\n\016_validate_only\"\214\002\n\032PatchSecuri" + + "tyPolicyRequest\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\030secur" + + "ity_policy_resource\030\374\252\211g \001(\0132\'.google.cl" + + "oud.compute.v1.SecurityPolicyB\003\340A\002\022\034\n\013up" + + "date_mask\030\242\271\272\356\001 \001(\tH\001\210\001\001B\r\n\013_request_idB" + + "\016\n\014_update_mask\"\215\002\n\035PatchServiceAttachme" + + "ntRequest\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#\n\022service_att" + + "achment\030\355\251\320\241\001 \001(\tB\003\340A\002\022X\n\033service_attach" + + "ment_resource\030\240\266\304\341\001 \001(\0132*.google.cloud.c" + + "ompute.v1.ServiceAttachmentB\003\340A\002B\r\n\013_req" + + "uest_id\"\361\001\n\033PatchSnapshotSettingRequest\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\022V\n\032snapshot_setti" + + "ngs_resource\030\357\215\306\252\001 \001(\0132).google.cloud.co" + + "mpute.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_mask\"\314\001\n\025PatchSslPolicyRequest\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\"\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" + + "est_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_id\"\260\002\n\026PatchSubnetworkRe" + + "quest\022&\n\025drain_timeout_seconds\030\332\332\310\252\001 \001(\005" + + "H\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\nreq" + + "uest_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#.google.cloud.compute.v1.SubnetworkB" + + "\003\340A\002B\030\n\026_drain_timeout_secondsB\r\n\013_reque" + + "st_id\"\345\001\n\033PatchTargetGrpcProxyRequest\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!\n\021target_grpc_prox" + + "y\030\373\264\262\002 \001(\tB\003\340A\002\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\"\344\001" + + "\n\033PatchTargetHttpProxyRequest\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\022T\n\032target_http_proxy_resource\030\250\257" + + "\343\013 \001(\0132(.google.cloud.compute.v1.TargetH" + + "ttpProxyB\003\340A\002B\r\n\013_request_id\"\351\001\n\034PatchTa" + + "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\"\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.TargetHttpsP" + + "roxyB\003\340A\002B\r\n\013_request_id\"\277\001\n\022PatchUrlMap" + + "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\030\n\007url_ma" + + "p\030\214\225\201\257\001 \001(\tB\003\340A\002\022A\n\020url_map_resource\030\341\220\267" + + "P \001(\0132\037.google.cloud.compute.v1.UrlMapB\003" + + "\340A\002B\r\n\013_request_id\"\322\005\n\013PathMatcher\022h\n$de" + + "fault_custom_error_response_policy\030\251\213\340& " + + "\001(\01322.google.cloud.compute.v1.CustomErro" + + "rResponsePolicyH\000\210\001\001\022O\n\024default_route_ac" + + "tion\030\252\264\327\264\001 \001(\0132(.google.cloud.compute.v1" + + ".HttpRouteActionH\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(\0132+.google.cloud.compute.v1.Http" + + "RedirectActionH\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).g" + + "oogle.cloud.compute.v1.HttpHeaderActionH" + + "\005\210\001\001\022\024\n\004name\030\213\365\315\001 \001(\tH\006\210\001\001\0228\n\npath_rules" + + "\030\335\300\3461 \003(\0132!.google.cloud.compute.v1.Path" + + "Rule\022?\n\013route_rules\030\201\207\267\263\001 \003(\0132&.google.c" + + "loud.compute.v1.HttpRouteRuleB\'\n%_defaul" + + "t_custom_error_response_policyB\027\n\025_defau" + + "lt_route_actionB\022\n\020_default_serviceB\027\n\025_" + + "default_url_redirectB\016\n\014_descriptionB\020\n\016" + + "_header_actionB\007\n\005_name\"\374\002\n\010PathRule\022`\n\034" + + "custom_error_response_policy\030\353\370\332` \001(\01322." + + "google.cloud.compute.v1.CustomErrorRespo" + + "nsePolicyH\000\210\001\001\022\020\n\005paths\030\356\301\3402 \003(\t\022G\n\014rout" + + "e_action\030\354\251\271\312\001 \001(\0132(.google.cloud.comput" + + "e.v1.HttpRouteActionH\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.cloud.compute.v1.HttpRedirectActi" + + "onH\003\210\001\001B\037\n\035_custom_error_response_policy" + + "B\017\n\r_route_actionB\n\n\010_serviceB\017\n\r_url_re" + + "direct\"\363\002\n\021PerInstanceConfig\022\033\n\013fingerpr" + + "int\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\022" + + "H\n\017preserved_state\030\252\342\240\001 \001(\0132\'.google.clo" + + "ud.compute.v1.PreservedStateH\002\210\001\001\022\026\n\006sta" + + "tus\030\362\237\267V \001(\tH\003\210\001\001\"\220\001\n\006Status\022\024\n\020UNDEFINE" + + "D_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" + + "\tUNAPPLIED\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_preser" + + "ved_stateB\t\n\007_status\"\250\001\n!PerformMaintena" + + "nceInstanceRequest\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\"\254\002\n\"Perf" + + "ormMaintenanceNodeGroupRequest\022\033\n\nnode_g" + + "roup\030\202\374\213\340\001 \001(\tB\003\340A\002\022~\n0node_groups_perfo" + + "rm_maintenance_request_resource\030\326\270\256X \001(\013" + + "2<.google.cloud.compute.v1.NodeGroupsPer" + + "formMaintenanceRequestB\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\"\360\001\n\006Policy\022?\n\raudit_confi" + + "gs\030\215\272\270\234\001 \003(\0132$.google.cloud.compute.v1.A" + + "uditConfig\0226\n\010bindings\030\216\305\244\300\001 \003(\0132 .googl" + + "e.cloud.compute.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\007" + + "version\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\017expression_sets\030\230\253\203\342\001 \003(\0132).google.c" + + "loud.compute.v1.WafExpressionSet\"\276\005\n\016Pre" + + "servedState\022D\n\005disks\030\366\314\312- \003(\01322.google.c" + + "loud.compute.v1.PreservedState.DisksEntr" + + "y\022S\n\rexternal_i_ps\030\215\323\200\376\001 \003(\01328.google.cl" + + "oud.compute.v1.PreservedState.ExternalIP" + + "sEntry\022R\n\rinternal_i_ps\030\333\233\357f \003(\01328.googl" + + "e.cloud.compute.v1.PreservedState.Intern" + + "alIPsEntry\022J\n\010metadata\030\257\366\265) \003(\01325.google" + + ".cloud.compute.v1.PreservedState.Metadat" + + "aEntry\032b\n\nDisksEntry\022\013\n\003key\030\001 \001(\t\022C\n\005val" + + "ue\030\002 \001(\01324.google.cloud.compute.v1.Prese" + + "rvedStatePreservedDisk:\0028\001\032m\n\020ExternalIP" + + "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\032m\n\020InternalIPsEntry\022\013\n" + + "\003key\030\001 \001(\t\022H\n\005value\030\002 \001(\01329.google.cloud" + + ".compute.v1.PreservedStatePreservedNetwo" + + "rkIp:\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\033PreservedStatePres" + + "ervedDisk\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(\t" + + "H\002\210\001\001\"\\\n\nAutoDelete\022\031\n\025UNDEFINED_AUTO_DE" + + "LETE\020\000\022\014\n\005NEVER\020\354\244\257#\022%\n\036ON_PERMANENT_INS" + + "TANCE_DELETION\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 PreservedStatePreservedNetworkIp\022\034\n" + + "\013auto_delete\030\273\344\316\335\001 \001(\tH\000\210\001\001\022_\n\nip_addres" + + "s\030\334\361\334\301\001 \001(\0132B.google.cloud.compute.v1.Pr" + + "eservedStatePreservedNetworkIpIpAddressH" + + "\001\210\001\001\"\\\n\nAutoDelete\022\031\n\025UNDEFINED_AUTO_DEL" + + "ETE\020\000\022\014\n\005NEVER\020\354\244\257#\022%\n\036ON_PERMANENT_INST" + + "ANCE_DELETION\020\347\340\322-B\016\n\014_auto_deleteB\r\n\013_i" + + "p_address\"v\n)PreservedStatePreservedNetw" + + "orkIpIpAddress\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_addressB\n\n" + + "\010_literal\"\241\001\n\024PreviewRouterRequest\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\026\n\006router\030\311\256\356F \001(\tB\003\340A\002\022@\n\017router_re" + + "source\030\304\200\202J \001(\0132\037.google.cloud.compute.v" + + "1.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_m" + + "etadata\030\305\374\313X \001(\0132!.google.cloud.compute." + + "v1.MetadataH\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\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\004nam" + + "e\030\213\365\315\001 \001(\tH\010\210\001\001\0221\n\006quotas\030\373\241\342; \003(\0132\036.goo" + + "gle.cloud.compute.v1.Quota\022\032\n\tself_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.compute.v1.Usag" + + "eExportLocationH\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_ARMOR_TIER\020\000\022\033\n\024CA_ENTERPRISE_ANNU" + + "AL\020\334\365\356h\022\033\n\023CA_ENTERPRISE_PAYGO\020\323\245\241\330\001\022\022\n\013" + + "CA_STANDARD\020\376\202\243\006\"\236\001\n\022DefaultNetworkTier\022" + + "\"\n\036UNDEFINED_DEFAULT_NETWORK_TIER\020\000\022\026\n\016F" + + "IXED_STANDARD\020\310\236\205\224\001\022\017\n\007PREMIUM\020\267\264\301\276\001\022\020\n\010" + + "STANDARD\020\275\235\214\347\001\022)\n!STANDARD_OVERRIDES_FIX" + + "ED_STANDARD\020\302\207\221\336\001\"\222\001\n\014VmDnsSetting\022\034\n\030UN" + + "DEFINED_VM_DNS_SETTING\020\000\022\026\n\016GLOBAL_DEFAU" + + "LT\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\nZONAL_ONLY" + + "\020\347\272\303\370\001\"i\n\020XpnProjectStatus\022 \n\034UNDEFINED_" + + "XPN_PROJECT_STATUS\020\000\022\013\n\004HOST\020\250\333\207\001\022&\n\036UNS" + + "PECIFIED_XPN_PROJECT_STATUS\020\251\372\247\242\001B\023\n\021_cl" + + "oud_armor_tierB\033\n\031_common_instance_metad" + + "ataB\025\n\023_creation_timestampB\027\n\025_default_n" + + "etwork_tierB\032\n\030_default_service_accountB" + + "\016\n\014_descriptionB\005\n\003_idB\007\n\005_kindB\007\n\005_name" + + "B\014\n\n_self_linkB\030\n\026_usage_export_location" + + "B\021\n\017_vm_dns_settingB\025\n\023_xpn_project_stat" + + "us\"z\n!ProjectsDisableXpnResourceRequest\022" + + "D\n\014xpn_resource\030\267\223\315? \001(\0132&.google.cloud." + + "compute.v1.XpnResourceIdH\000\210\001\001B\017\n\r_xpn_re" + + "source\"y\n ProjectsEnableXpnResourceReque" + + "st\022D\n\014xpn_resource\030\267\223\315? \001(\0132&.google.clo" + + "ud.compute.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&.goo" + + "gle.cloud.compute.v1.XpnResourceIdB\007\n\005_k" + + "indB\022\n\020_next_page_token\"L\n\033ProjectsListX" + + "pnHostsRequest\022\034\n\014organization\030\263\332\2232 \001(\tH" + + "\000\210\001\001B\017\n\r_organization\"\331\001\n ProjectsSetClo" + + "udArmorTierRequest\022 \n\020cloud_armor_tier\030\254" + + "\232\216\002 \001(\tH\000\210\001\001\"~\n\016CloudArmorTier\022\036\n\032UNDEFI" + + "NED_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_STANDARD\020\376\202\243\006B\023\n\021_cloud_armor_tie" + + "r\"\350\001\n$ProjectsSetDefaultNetworkTierReque" + + "st\022\035\n\014network_tier\030\323\272\333\366\001 \001(\tH\000\210\001\001\"\217\001\n\013Ne" + + "tworkTier\022\032\n\026UNDEFINED_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_OVERRIDES_F" + + "IXED_STANDARD\020\302\207\221\336\001B\017\n\r_network_tier\"\226\t\n" + + "\026PublicAdvertisedPrefix\022!\n\021byoip_api_ver" + + "sion\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\366r \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\030publi" + + "c_delegated_prefixs\030\213\276\205\313\001 \003(\0132D.google.c" + + "loud.compute.v1.PublicAdvertisedPrefixPu" + + "blicDelegatedPrefix\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\017ByoipApiVersi" + + "on\022\037\n\033UNDEFINED_BYOIP_API_VERSION\020\000\022\007\n\002V" + + "1\020\233\025\022\007\n\002V2\020\234\025\"a\n\010PdpScope\022\027\n\023UNDEFINED_P" + + "DP_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\006Sta" + + "tus\022\024\n\020UNDEFINED_STATUS\020\000\022\034\n\025ANNOUNCED_T" + + "O_INTERNET\020\301\376\350T\022\017\n\007INITIAL\020\244\306\263\367\001\022%\n\035PREF" + + "IX_CONFIGURATION_COMPLETE\020\317\225\247\345\001\022(\n PREFI" + + "X_CONFIGURATION_IN_PROGRESS\020\261\365\300\264\001\022\"\n\032PRE" + + "FIX_REMOVAL_IN_PROGRESS\020\347\365\314\207\001\022\026\n\016PTR_CON" + + "FIGURED\020\317\260\355\364\001\022\030\n\021READY_TO_ANNOUNCE\020\361\261\351\036\022" + + "!\n\031REVERSE_DNS_LOOKUP_FAILED\020\257\273\203\215\001\022\020\n\tVA" + + "LIDATED\020\356\263\310\037B\024\n\022_byoip_api_versionB\025\n\023_c" + + "reation_timestampB\016\n\014_descriptionB\026\n\024_dn" + + "s_verification_ipB\016\n\014_fingerprintB\005\n\003_id" + + "B\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_shared_secr" + + "etB\t\n\007_status\"\275\002\n\032PublicAdvertisedPrefix" + + "List\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022A\n\005items\030\300\317\367/ \003(\013" + + "2/.google.cloud.compute.v1.PublicAdverti" + + "sedPrefix\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\"\336\001\n+PublicAdvertisedPrefix" + + "PublicDelegatedPrefix\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(\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_rangeB\007\n\005_" + + "nameB\n\n\010_projectB\t\n\007_regionB\t\n\007_status\"\370" + + "\010\n\025PublicDelegatedPrefix\022)\n\031allocatable_" + + "prefix_length\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_times" + + "tamp\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\004kind\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_p" + + "refix\030\307\347\241\007 \001(\tH\013\210\001\001\022o\n\034public_delegated_" + + "sub_prefixs\030\214\376\213Z \003(\0132F.google.cloud.comp" + + "ute.v1.PublicDelegatedPrefixPublicDelega" + + "tedSubPrefix\022\026\n\006region\030\364\315\240B \001(\tH\014\210\001\001\022\032\n\t" + + "self_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_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\nDELEGATION" + + "\020\250\262\372}\022.\n&EXTERNAL_IPV6_FORWARDING_RULE_C" + + "REATION\020\304\341\215\276\001\"\256\001\n\006Status\022\024\n\020UNDEFINED_ST" + + "ATUS\020\000\022\021\n\tANNOUNCED\020\373\221\214\256\001\022\033\n\023ANNOUNCED_T" + + "O_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\014INITIALIZING\020\315" + + "\330\230\222\001\022\030\n\021READY_TO_ANNOUNCE\020\361\261\351\036B\034\n\032_alloc" + + "atable_prefix_lengthB\024\n\022_byoip_api_versi" + + "onB\025\n\023_creation_timestampB\016\n\014_descriptio" + + "nB\016\n\014_fingerprintB\005\n\003_idB\020\n\016_ip_cidr_ran" + + "geB\024\n\022_is_live_migrationB\007\n\005_kindB\007\n\005_mo" + + "deB\007\n\005_nameB\020\n\016_parent_prefixB\t\n\007_region" + + "B\014\n\n_self_linkB\t\n\007_status\"\341\003\n#PublicDele" + + "gatedPrefixAggregatedList\022\020\n\002id\030\233\032 \001(\tH\000" + + "\210\001\001\022Y\n\005items\030\300\317\367/ \003(\0132G.google.cloud.com" + + "pute.v1.PublicDelegatedPrefixAggregatedL" + "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" + + "mpute.v1.WarningH\004\210\001\001\032h\n\nItemsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022I\n\005value\030\002 \001(\0132:.google.cloud.c" + + "ompute.v1.PublicDelegatedPrefixesScopedL" + + "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\"\273\002\n\031Public" + + "DelegatedPrefixList\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.v" + + "1.PublicDelegatedPrefix\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\"\342\004\n-PublicDe" + + "legatedPrefixPublicDelegatedSubPrefix\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(\tH\001\210\001\001\022\034\n\013" + + "description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\035\n\rip_cidr_ra" + + "nge\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\006st" + + "atus\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_IP" + + "V6_FORWARDING_RULE_CREATION\020\304\341\215\276\001\"@\n\006Sta" + + "tus\022\024\n\020UNDEFINED_STATUS\020\000\022\016\n\006ACTIVE\020\206\346\211\226" + + "\001\022\020\n\010INACTIVE\020\353\230\371\200\001B\034\n\032_allocatable_pref" + + "ix_lengthB\024\n\022_delegatee_projectB\016\n\014_desc" + + "riptionB\020\n\016_ip_cidr_rangeB\r\n\013_is_address" + + "B\007\n\005_modeB\007\n\005_nameB\t\n\007_regionB\t\n\007_status" + + "\"\301\001\n!PublicDelegatedPrefixesScopedList\022U" + + "\n\031public_delegated_prefixes\030\226\202\252\226\001 \003(\0132.." + + "google.cloud.compute.v1.PublicDelegatedP" + + "refix\0229\n\007warning\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(\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\020UNDEF" + + "INED_METRIC\020\000\022\016\n\007A2_CPUS\020\271\376\206I\022\026\n\017AFFINIT" + + "Y_GROUPS\020\313\251\3223\022\023\n\013AUTOSCALERS\020\334\340\332\340\001\022\026\n\017BA" + + "CKEND_BUCKETS\020\336\211\320A\022\030\n\020BACKEND_SERVICES\020\311" + + "\303\310\200\001\022\020\n\010C2D_CPUS\020\365\377\250\362\001\022\017\n\007C2_CPUS\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\022COMMITTED_C2D" + + "_CPUS\020\370\342\323\206\001\022\030\n\021COMMITTED_C2_CPUS\020\330\217\327j\022\030\n" + + "\021COMMITTED_C3_CPUS\020\367\300\252x\022\026\n\016COMMITTED_CPU" + + "S\020\316\255\266\213\001\022\031\n\021COMMITTED_E2_CPUS\020\332\374\210\271\001\022\032\n\022CO" + + "MMITTED_LICENSES\020\325\313\302\252\001\022$\n\034COMMITTED_LOCA" + + "L_SSD_TOTAL_GB\020\210\354\206\223\001\022\027\n\021COMMITTED_M3_CPU" + + "S\020\201\342#\022\'\n\037COMMITTED_MEMORY_OPTIMIZED_CPUS" + + "\020\336\334\231\351\001\022\031\n\022COMMITTED_N2A_CPUS\020\260\252\215\023\022\031\n\022COM" + + "MITTED_N2D_CPUS\020\215\276\207<\022\031\n\021COMMITTED_N2_CPU" + + "S\020\243\247\351\231\001\022\'\n\037COMMITTED_NVIDIA_A100_80GB_GP" + + "US\020\245\237\264\335\001\022\"\n\032COMMITTED_NVIDIA_A100_GPUS\020\225" + + "\375\230\263\001\022!\n\032COMMITTED_NVIDIA_H100_GPUS\020\234\217\225\"\022" + + " \n\031COMMITTED_NVIDIA_K80_GPUS\020\244\266\353\001\022\037\n\030COM" + + "MITTED_NVIDIA_L4_GPUS\020\375\323\221\t\022!\n\032COMMITTED_" + + "NVIDIA_P100_GPUS\020\244\377\2423\022 \n\030COMMITTED_NVIDI" + + "A_P4_GPUS\020\201\256\365\245\001\022\037\n\030COMMITTED_NVIDIA_T4_G" + + "PUS\020\205\210\331B\022 \n\032COMMITTED_NVIDIA_V100_GPUS\020\252" + + "\263\r\022\032\n\022COMMITTED_T2A_CPUS\020\352\304\251\215\001\022\032\n\022COMMIT" + + "TED_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_REGIONS\020\255\221\306" + + "\340\001\022\026\n\016DISKS_TOTAL_GB\020\237\227\311\250\001\022\017\n\007E2_CPUS\020\275\330" + + "\352\345\001\022(\n!EXTERNAL_MANAGED_FORWARDING_RULES" + + "\020\311\277\363G\022,\n$EXTERNAL_NETWORK_LB_FORWARDING_" + + "RULES\020\231\255\275\262\001\022)\n\"EXTERNAL_PROTOCOL_FORWARD" + + "ING_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\020FORWARDING_R" + + "ULES\020\225\202\250\316\001\022/\n(GLOBAL_EXTERNAL_MANAGED_BA" + + "CKEND_SERVICES\020\341\255\274N\0220\n(GLOBAL_EXTERNAL_M" + + "ANAGED_FORWARDING_RULES\020\255\354\233\234\001\0221\n)GLOBAL_" + + "EXTERNAL_PROXY_LB_BACKEND_SERVICES\020\251\331\355\276\001" + + "\022 \n\031GLOBAL_INTERNAL_ADDRESSES\020\234\305\260\024\022/\n(GL" + + "OBAL_INTERNAL_MANAGED_BACKEND_SERVICES\020\257" + + "\220\256z\0229\n1GLOBAL_INTERNAL_TRAFFIC_DIRECTOR_" + + "BACKEND_SERVICES\020\324\336\241\232\001\022\027\n\020GPUS_ALL_REGIO" + + "NS\020\251\200\344\022\022\024\n\014HDB_TOTAL_GB\020\257\302\241\230\001\022\026\n\016HDB_TOT" + + "AL_IOPS\020\375\351\327\223\001\022\033\n\024HDB_TOTAL_THROUGHPUT\020\376\314" + + "\200\n\022\025\n\rHEALTH_CHECKS\020\256\257\374\211\001\022\r\n\006IMAGES\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\022I" + + "NSTANCE_TEMPLATES\020\357\267\355k\022\025\n\rINTERCONNECTS\020" + + "\205\213\376\305\001\022*\n#INTERCONNECT_ATTACHMENTS_PER_RE" + + "GION\020\326\326\243L\022+\n#INTERCONNECT_ATTACHMENTS_TO" + + "TAL_MBPS\020\363\272\331\312\001\022\037\n\027INTERCONNECT_TOTAL_GBP" + + "S\020\252\361\207\210\001\022\031\n\022INTERNAL_ADDRESSES\020\200\351\256^\0221\n*IN" + + "TERNAL_TRAFFIC_DIRECTOR_FORWARDING_RULES" + + "\020\204\351\205\177\022\031\n\022IN_PLACE_SNAPSHOTS\020\235\235\226H\022\030\n\020IN_U" + + "SE_ADDRESSES\020\220\342\337\277\001\022\036\n\027IN_USE_BACKUP_SCHE" + + "DULES\020\221\222\321\017\022!\n\031IN_USE_SNAPSHOT_SCHEDULES\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\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\027NETWORK_ENDPOINT_GROUPS\020\215\267\3320\022 \n\031N" + + "ETWORK_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_REGION\020\263\210\346" + + "\251\001\0229\n1NET_LB_SECURITY_POLICY_RULE_ATTRIB" + + "UTES_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_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\016NVIDIA_L4_" + + "GPUS\020\272\315\310\352\001\022\027\n\020NVIDIA_P100_GPUS\020\241\202\351p\022\033\n\024N" + + "VIDIA_P100_VWS_GPUS\020\216\335\203f\022\026\n\016NVIDIA_P4_GP" + + "US\020\276\247\254\207\001\022\032\n\022NVIDIA_P4_VWS_GPUS\020\253\325\364\373\001\022\025\n\016" + + "NVIDIA_T4_GPUS\020\302\201\220$\022\032\n\022NVIDIA_T4_VWS_GPU" + + "S\020\257\353\277\230\001\022\027\n\020NVIDIA_V100_GPUS\020\247\266\323=\022\030\n\021PACK" + + "ET_MIRRORINGS\020\247\352\266\007\022(\n!PD_EXTREME_TOTAL_P" + + "ROVISIONED_IOPS\020\355\326\227!\022\027\n\020PREEMPTIBLE_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_GPUS\020\220\234\351 \022$\n" + + "\034PREEMPTIBLE_NVIDIA_H100_GPUS\020\227\256\345\217\001\022#\n\033P" + + "REEMPTIBLE_NVIDIA_K80_GPUS\020\311\340\345\262\001\022!\n\032PREE" + + "MPTIBLE_NVIDIA_L4_GPUS\020\270\270\360/\022$\n\034PREEMPTIB" + + "LE_NVIDIA_P100_GPUS\020\237\236\363\240\001\022(\n PREEMPTIBLE" + + "_NVIDIA_P100_VWS_GPUS\020\214\233\301\225\001\022\"\n\032PREEMPTIB" + + "LE_NVIDIA_P4_GPUS\020\274\222\324\314\001\022%\n\036PREEMPTIBLE_N" + + "VIDIA_P4_VWS_GPUS\020\251\342\320x\022!\n\032PREEMPTIBLE_NV" + + "IDIA_T4_GPUS\020\300\354\267i\022%\n\036PREEMPTIBLE_NVIDIA_" + + "T4_VWS_GPUS\020\255\370\233\025\022#\n\034PREEMPTIBLE_NVIDIA_V" + + "100_GPUS\020\245\322\335m\022%\n\036PREEMPTIBLE_TPU_LITE_DE" + + "VICE_V5\020\373\221\214S\022\'\n PREEMPTIBLE_TPU_LITE_POD" + + "SLICE_V5\020\304\221\3055\022#\n\033PREEMPTIBLE_TPU_PODSLIC" + + "E_V4\020\214\374\364\312\001\022=\n6PSC_ILB_CONSUMER_FORWARDIN" + + "G_RULES_PER_PRODUCER_NETWORK\020\203\223\235n\022\'\n PSC" + + "_INTERNAL_LB_FORWARDING_RULES\020\373\242\313P\022\"\n\032PU" + + "BLIC_ADVERTISED_PREFIXES\020\314\241\342\340\001\022!\n\031PUBLIC" + + "_DELEGATED_PREFIXES\020\266\222\363\375\001\022\033\n\024REGIONAL_AU" + + "TOSCALERS\020\274\234\200\016\0221\n*REGIONAL_EXTERNAL_MANA" + + "GED_BACKEND_SERVICES\020\335\354\202\002\0225\n-REGIONAL_EX" + + "TERNAL_NETWORK_LB_BACKEND_SERVICES\020\355\352\245\303\001" + + "\022\'\n REGIONAL_INSTANCE_GROUP_MANAGERS\020\220\276\363" + + "\021\022,\n%REGIONAL_INTERNAL_LB_BACKEND_SERVIC" + + "ES\020\220\356\345A\0221\n*REGIONAL_INTERNAL_MANAGED_BAC" + + "KEND_SERVICES\020\253\317\364-\022;\n3REGIONAL_INTERNAL_" + + "TRAFFIC_DIRECTOR_BACKEND_SERVICES\020\330\366\261\346\001\022" + + "\023\n\014RESERVATIONS\020\247\274\310\017\022\030\n\021RESOURCE_POLICIE" + + "S\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\021SECURITY_POLICIES\020\357\246\257Z\022#\n\034SECURITY_PO" + + "LICIES_PER_REGION\020\306\246\340v\0221\n)SECURITY_POLIC" + + "Y_ADVANCED_RULES_PER_REGION\020\255\347\245\261\001\022#\n\033SEC" + + "URITY_POLICY_CEVAL_RULES\020\311\247\300\340\001\022\034\n\025SECURI" + + "TY_POLICY_RULES\020\251\324\207a\022\'\n SECURITY_POLICY_" + + "RULES_PER_REGION\020\314\310\251<\022\033\n\023SERVICE_ATTACHM" + + "ENTS\020\346\261\353\340\001\022\021\n\tSNAPSHOTS\020\217\346\337\243\001\022\023\n\014SSD_TOT" + + "AL_GB\020\321\257\217M\022\030\n\020SSL_CERTIFICATES\020\257\202\266\264\001\022\024\n\014" + + "SSL_POLICIES\020\303\364\300\371\001\022\027\n\020STATIC_ADDRESSES\020\361" + + "\255\322,\022\036\n\026STATIC_BYOIP_ADDRESSES\020\361\212\302\203\001\022+\n#S" + + "TATIC_EXTERNAL_IPV6_ADDRESS_RANGES\020\226\341\235\341\001" + + "\022\023\n\013SUBNETWORKS\020\245\374\363\310\001\022\020\n\010T2A_CPUS\020\347\341\376\370\001\022" + + "\017\n\010T2D_CPUS\020\304\365\370!\022\033\n\024TARGET_HTTPS_PROXIES" + + "\020\312\313\326h\022\032\n\023TARGET_HTTP_PROXIES\020\243\365\240N\022\030\n\020TAR" + + "GET_INSTANCES\020\260\332\325\207\001\022\024\n\014TARGET_POOLS\020\211\227\210\246" + + "\001\022\031\n\022TARGET_SSL_PROXIES\020\353\344\365K\022\031\n\022TARGET_T" + + "CP_PROXIES\020\300\236\363V\022\032\n\023TARGET_VPN_GATEWAYS\020\250" + + "\273\343#\022\032\n\022TPU_LITE_DEVICE_V5\020\375\204\260\326\001\022\033\n\024TPU_L" + + "ITE_PODSLICE_V5\020\306\323\207\006\022\026\n\017TPU_PODSLICE_V4\020" + + "\312\207\242f\022\020\n\010URL_MAPS\020\207\317\307\264\001\022.\n\'VARIABLE_IPV6_" + + "PUBLIC_DELEGATED_PREFIXES\020\241\366\234=\022\023\n\014VPN_GA" + + "TEWAYS\020\272\213\376\020\022\022\n\013VPN_TUNNELS\020\200\321\3371\022\033\n\024XPN_S" + + "ERVICE_PROJECTS\020\255\207\262-B\010\n\006_limitB\t\n\007_metri" + + "cB\010\n\006_ownerB\010\n\006_usage\"\340\003\n\021QuotaExceededI" + + "nfo\022R\n\ndimensions\030\315\377\310\305\001 \003(\0132:.google.clo" + + "ud.compute.v1.QuotaExceededInfo.Dimensio" + + "nsEntry\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\017Dim" + + "ensionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + ":\0028\001\"e\n\rRolloutStatus\022\034\n\030UNDEFINED_ROLLO" + + "UT_STATUS\020\000\022\023\n\013IN_PROGRESS\020\207\250\335\337\001\022!\n\032ROLL" + + "OUT_STATUS_UNSPECIFIED\020\270\327\347\014B\017\n\r_future_l" + + "imitB\010\n\006_limitB\r\n\013_limit_nameB\016\n\014_metric" + + "_nameB\021\n\017_rollout_status\"\210\t\n\022QuotaStatus" + + "Warning\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\"\374\007\n\004Code\022\022\n\016UNDE" + + "FINED_CODE\020\000\022\025\n\016CLEANUP_FAILED\020\330\214\326G\022 \n\030D" + + "EPRECATED_RESOURCE_USED\020\302\337\353\272\001\022\034\n\024DEPRECA" + + "TED_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_TY" + + "PE_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\033INJ" + + "ECTED_KERNELS_DEPRECATED\020\213\331\202\307\001\0224\n,INVALI" + + "D_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB\020\316" + + "\233\274\277\001\022 \n\030LARGE_DEPLOYMENT_WARNING\020\246\347\310\345\001\022!" + + "\n\032LIST_OVERHEAD_QUOTA_EXCEED\020\305\260\332\026\022\037\n\027MIS" + + "SING_TYPE_DEPENDENCY\020\367\370\242\244\001\022%\n\035NEXT_HOP_A" + + "DDRESS_NOT_ASSIGNED\020\207\245\372\232\001\022\"\n\032NEXT_HOP_CA" + + "NNOT_IP_FORWARD\020\347\352\347\266\001\022.\n\'NEXT_HOP_INSTAN" + + "CE_HAS_NO_IPV6_INTERFACE\020\222\350\374E\022#\n\033NEXT_HO" + + "P_INSTANCE_NOT_FOUND\020\316\314\257\335\001\022\'\n NEXT_HOP_I" + + "NSTANCE_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\017PARTI" + + "AL_SUCCESS\020\205\256\207\023\022\036\n\026QUOTA_INFO_UNAVAILABL" + + "E\020\246\322\214\221\001\022\035\n\026REQUIRED_TOS_AGREEMENT\020\203\316\344\001\0221" + + "\n)RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARN" + + "ING\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!SIN" + + "GLE_INSTANCE_PROPERTY_TEMPLATE\020\321\211\370\177\022\035\n\025U" + + "NDECLARED_PROPERTIES\020\237\206\233\272\001\022\022\n\013UNREACHABL" + + "E\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_C" + + "ONTAINER_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,R" + + "ecreateInstancesInstanceGroupManagerRequ" + + "est\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.g" + + "oogle.cloud.compute.v1.InstanceGroupMana" + + "gersRecreateInstancesRequestB\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\"\333\002\n2RecreateInstanc" + + "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\215\001\n8region_insta" + + "nce_group_managers_recreate_request_reso" + + "urce\030\224\374\304Q \001(\0132C.google.cloud.compute.v1." + + "RegionInstanceGroupManagersRecreateReque" + + "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\"\250\001\n\tReference\022\024\n\004kind\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\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\022crea" + + "tion_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022G\n\ndeprecat" + + "ed\030\263\313\321\365\001 \001(\0132*.google.cloud.compute.v1.D" + + "eprecationStatusH\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\024quo" + + "ta_status_warning\030\366\211\272\220\001 \001(\0132+.google.clo" + + "ud.compute.v1.QuotaStatusWarningH\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(\tH\007\210\001\001\022\026\n\006" + + "status\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_deprecated" + + "B\016\n\014_descriptionB\005\n\003_idB\007\n\005_kindB\007\n\005_nam" + + "eB\027\n\025_quota_status_warningB\014\n\n_self_link" + + "B\t\n\007_statusB\017\n\r_supports_pzs\"\210\001\n\032RegionA" + + "ddressesMoveRequest\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_" + + "address\"\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.cl" + + "oud.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.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\"\247\002\n\022Region" + + "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\"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" + + "warning\"E\n%RegionDisksAddResourcePolicie" + + "sRequest\022\034\n\021resource_policies\030\341\234\314\n \003(\t\"H" + + "\n(RegionDisksRemoveResourcePoliciesReque" + + "st\022\034\n\021resource_policies\030\341\234\314\n \003(\t\"@\n\030Regi" + + "onDisksResizeRequest\022\030\n\007size_gb\030\331\213\200\354\001 \001(" + + "\003H\000\210\001\001B\n\n\010_size_gb\"h\n\'RegionDisksStartAs" + + "yncReplicationRequest\022$\n\024async_secondary", + "_disk\030\253\203\343> \001(\tH\000\210\001\001B\027\n\025_async_secondary_" + + "disk\"\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.cl" + + "oud.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\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\"E\n1Regi" + + "onInstanceGroupManagerDeleteInstanceConf" + + "igReq\022\020\n\005names\030\310\256\3571 \003(\t\"\277\002\n\036RegionInstan" + + "ceGroupManagerList\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" + + ".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\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\"\200\001\n0RegionInst" + + "anceGroupManagerPatchInstanceConfigReq\022L" + + "\n\024per_instance_configs\030\251\325\370\372\001 \003(\0132*.googl" + + "e.cloud.compute.v1.PerInstanceConfig\"\201\001\n" + + "1RegionInstanceGroupManagerUpdateInstanc" + + "eConfigReq\022L\n\024per_instance_configs\030\251\325\370\372\001" + + " \003(\0132*.google.cloud.compute.v1.PerInstan" + + "ceConfig\"J\n2RegionInstanceGroupManagersA" + + "bandonInstancesRequest\022\024\n\tinstances\030\376\374\357\r" + + " \003(\t\"\373\002\n.RegionInstanceGroupManagersAppl" + + "yUpdatesRequest\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_disruptiv" + + "e_allowed_action\030\215\316\302\037 \001(\tH\002\210\001\001\"-\n\rMinima" + + "lAction\022\034\n\030UNDEFINED_MINIMAL_ACTION\020\000\"K\n" + + "\033MostDisruptiveAllowedAction\022,\n(UNDEFINE" + + "D_MOST_DISRUPTIVE_ALLOWED_ACTION\020\000B\020\n\016_a" + + "ll_instancesB\021\n\017_minimal_actionB!\n\037_most" + + "_disruptive_allowed_action\"u\n1RegionInst" + + "anceGroupManagersCreateInstancesRequest\022" + + "@\n\tinstances\030\376\374\357\r \003(\0132*.google.cloud.com" + + "pute.v1.PerInstanceConfig\"\244\001\n1RegionInst" + + "anceGroupManagersDeleteInstancesRequest\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#_sk" + + "ip_instances_on_validation_error\"\252\001\n-Reg" + + "ionInstanceGroupManagersListErrorsRespon" + + "se\022D\n\005items\030\300\317\367/ \003(\01322.google.cloud.comp" + + "ute.v1.InstanceManagedByIgmError\022\037\n\017next" + + "_page_token\030\225\272\206& \001(\tH\000\210\001\001B\022\n\020_next_page_" + + "token\"\356\001\n2RegionInstanceGroupManagersLis" + + "tInstanceConfigsResp\022<\n\005items\030\300\317\367/ \003(\0132*" + + ".google.cloud.compute.v1.PerInstanceConf" + + "ig\022\037\n\017next_page_token\030\225\272\206& \001(\tH\000\210\001\001\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." + + "1.WarningH\001\210\001\001B\022\n\020_next_page_tokenB\n\n\010_w" + + "arning\"\260\001\n0RegionInstanceGroupManagersLi" + + "stInstancesResponse\022G\n\021managed_instances" + + "\030\336\233\251\240\001 \003(\0132(.google.cloud.compute.v1.Man" + + "agedInstance\022\037\n\017next_page_token\030\225\272\206& \001(\t" + + "H\000\210\001\001B\022\n\020_next_page_token\"B\n*RegionInsta" + + "nceGroupManagersRecreateRequest\022\024\n\tinsta" + + "nces\030\376\374\357\r \003(\t\"I\n1RegionInstanceGroupMana" + + "gersResumeInstancesRequest\022\024\n\tinstances\030" + + "\376\374\357\r \003(\t\"y\n0RegionInstanceGroupManagersS" + + "etTargetPoolsRequest\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-RegionInstanceGroupManage" + + "rsSetTemplateRequest\022\"\n\021instance_templat" + + "e\030\344\201\273\223\001 \001(\tH\000\210\001\001B\024\n\022_instance_template\"H" + + "\n0RegionInstanceGroupManagersStartInstan" + + "cesRequest\022\024\n\tinstances\030\376\374\357\r \003(\t\"r\n/Regi" + + "onInstanceGroupManagersStopInstancesRequ" + + "est\022\032\n\nforce_stop\030\326\241\241@ \001(\010H\000\210\001\001\022\024\n\tinsta" + + "nces\030\376\374\357\r \003(\tB\r\n\013_force_stop\"{\n2RegionIn" + + "stanceGroupManagersSuspendInstancesReque" + + "st\022\035\n\rforce_suspend\030\350\355\226\r \001(\010H\000\210\001\001\022\024\n\tins" + + "tances\030\376\374\357\r \003(\tB\020\n\016_force_suspend\"\304\002\n!Re" + + "gionInstanceGroupsListInstances\022\020\n\002id\030\233\032" + + " \001(\tH\000\210\001\001\022A\n\005items\030\300\317\367/ \003(\0132/.google.clo" + + "ud.compute.v1.InstanceWithNamedPorts\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" + + "\"\320\001\n(RegionInstanceGroupsListInstancesRe" + + "quest\022\036\n\016instance_state\030\347\360\374+ \001(\tH\000\210\001\001\022\031\n" + + "\tport_name\030\211\207\347\023 \001(\tH\001\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_stateB\014\n" + + "\n_port_name\"\224\001\n(RegionInstanceGroupsSetN" + + "amedPortsRequest\022\033\n\013fingerprint\030\344\321\363o \001(\t" + + "H\000\210\001\001\022;\n\013named_ports\030\214\307\362\313\001 \003(\0132\".google." + + "cloud.compute.v1.NamedPortB\016\n\014_fingerpri" + + "nt\"\235\002\n\nRegionList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0221\n\005i" + + "tems\030\300\317\367/ \003(\0132\037.google.cloud.compute.v1." + + "Region\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\"{\n1RegionNetworkEndpointGroup" + + "sAttachEndpointsRequest\022F\n\021network_endpo" + + "ints\030\255\221\272G \003(\0132(.google.cloud.compute.v1." + + "NetworkEndpoint\"{\n1RegionNetworkEndpoint" + + "GroupsDetachEndpointsRequest\022F\n\021network_" + + "endpoints\030\255\221\272G \003(\0132(.google.cloud.comput" + + "e.v1.NetworkEndpoint\"\201\002\n:RegionNetworkFi" + + "rewallPoliciesGetEffectiveFirewallsRespo" + + "nse\022\210\001\n\020firewall_policys\030\302\312\374\303\001 \003(\0132j.goo" + + "gle.cloud.compute.v1.RegionNetworkFirewa" + + "llPoliciesGetEffectiveFirewallsResponseE" + + "ffectiveFirewallPolicy\0228\n\tfirewalls\030\363\306\350\201" + + "\001 \003(\0132!.google.cloud.compute.v1.Firewall" + + "\"\354\002\nQRegionNetworkFirewallPoliciesGetEff" + + "ectiveFirewallsResponseEffectiveFirewall" + + "Policy\022\034\n\014display_name\030\350\207\221\002 \001(\tH\000\210\001\001\022\024\n\004" + + "name\030\213\365\315\001 \001(\tH\001\210\001\001\022=\n\005rules\030\367\221\3653 \003(\0132+.g" + + "oogle.cloud.compute.v1.FirewallPolicyRul" + + "e\022\024\n\004type\030\272\236\332\001 \001(\tH\002\210\001\001\"k\n\004Type\022\022\n\016UNDEF" + + "INED_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\023\n\013UNSPE" + + "CIFIED\020\227\276\230\373\001B\017\n\r_display_nameB\007\n\005_nameB\007" + + "\n\005_type\"\321\001\n\026RegionSetLabelsRequest\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.Regi" + + "onSetLabelsRequest.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\026RegionSetPolicyR" + + "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\"Q\n1RegionTargetHttpsProxiesSetSslCerti" + + "ficatesRequest\022\034\n\020ssl_certificates\030\217\242\303\256\001" + + " \003(\t\"f\n\034RegionUrlMapsValidateRequest\0229\n\010" + + "resource\030\216\210\257] \001(\0132\037.google.cloud.compute" + + ".v1.UrlMapH\000\210\001\001B\013\n\t_resource\"\224\001\n&RemoveA" + + "ssociationFirewallPolicyRequest\022 \n\017firew" + + "all_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\032\n\nrequest_id\030\313\201\331\021 \001(\tH\001\210\001\001B\007\n\005_" + + "nameB\r\n\013_request_id\"\276\001\n-RemoveAssociatio" + + "nNetworkFirewallPolicyRequest\022 \n\017firewal" + + "l_policy\030\321\212\306\355\001 \001(\tB\003\340A\002\022\024\n\004name\030\213\365\315\001 \001(\t" + + "H\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\007\n\005_nameB\r\n" + + "\013_request_id\"\345\001\n3RemoveAssociationRegion" + + "NetworkFirewallPolicyRequest\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!\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\001B\007\n\005_nameB\r\n\013_reques" + + "t_id\"\263\002\n\"RemoveHealthCheckTargetPoolRequ" + + "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\033\n\013target_pool\030\212\344\370\035 " + + "\001(\tB\003\340A\002\022\200\001\n1target_pools_remove_health_" + + "check_request_resource\030\263\347\266\221\001 \001(\0132<.googl" + + "e.cloud.compute.v1.TargetPoolsRemoveHeal" + + "thCheckRequestB\003\340A\002B\r\n\013_request_id\"\247\002\n\037R" + + "emoveInstanceTargetPoolRequest\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\033\n\013target_pool\030\212\344\370\035 \001(\tB\003\340A\002\022x\n-t" + + "arget_pools_remove_instance_request_reso" + + "urce\030\203\300\213\016 \001(\01329.google.cloud.compute.v1." + + "TargetPoolsRemoveInstanceRequestB\003\340A\002B\r\n" + + "\013_request_id\"\264\002\n#RemoveInstancesInstance" + + "GroupRequest\022\036\n\016instance_group\030\325\324\325& \001(\tB" + + "\003\340A\002\022\201\001\n1instance_groups_remove_instance" + + "s_request_resource\030\271\321\267\272\001 \001(\0132=.google.cl" + + "oud.compute.v1.InstanceGroupsRemoveInsta" + + "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\"\366\001\n\033RemovePeeringNetworkRequest\022\027\n\007n" + + "etwork\030\256\264\205o \001(\tB\003\340A\002\022p\n(networks_remove_" + + "peering_request_resource\030\376\333\351\310\001 \001(\01325.goo" + + "gle.cloud.compute.v1.NetworksRemovePeeri" + + "ngRequestB\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\"\243\002\n!RemoveResourcePoliciesD" + + "iskRequest\022\024\n\004disk\030\235\233\274\001 \001(\tB\003\340A\002\022}\n/disk" + + "s_remove_resource_policies_request_resou" + + "rce\030\356\301\241\320\001 \001(\0132;.google.cloud.compute.v1." + + "DisksRemoveResourcePoliciesRequestB\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\"\263\002\n%RemoveRes" + + "ourcePoliciesInstanceRequest\022\030\n\010instance" + + "\030\225\251\332\010 \001(\tB\003\340A\002\022\204\001\n3instances_remove_reso" + + "urce_policies_request_resource\030\366\335\274\027 \001(\0132" + + "?.google.cloud.compute.v1.InstancesRemov" + + "eResourcePoliciesRequestB\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\"\272\002\n\'RemoveResourcePolic" + + "iesRegionDiskRequest\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\211\001\n6regio" + + "n_disks_remove_resource_policies_request" + + "_resource\030\243\303\225\004 \001(\0132A.google.cloud.comput" + + "e.v1.RegionDisksRemoveResourcePoliciesRe" + + "questB\003\340A\002\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r" + + "\n\013_request_id\"\226\001\n\037RemoveRuleFirewallPoli" + + "cyRequest\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\032\n\nreques" + + "t_id\030\313\201\331\021 \001(\tH\001\210\001\001B\013\n\t_priorityB\r\n\013_requ" + + "est_id\"\300\001\n&RemoveRuleNetworkFirewallPoli" + + "cyRequest\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\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\001\210\001\001B\013\n\t_priorityB\r\n\013_request_i" + + "d\"\347\001\n,RemoveRuleRegionNetworkFirewallPol" + + "icyRequest\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\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\001\210\001\001B\013\n\t_priorityB\r\n\013_request_id\"\264\001\n%" + + "RemoveRuleRegionSecurityPolicyRequest\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\006region\030\364\315\240B \001(\tB\014" + + "\340A\002\362G\006region\022\037\n\017security_policy\030\221\206\312Q \001(\t" + + "B\003\340A\002B\013\n\t_priority\"\215\001\n\037RemoveRuleSecurit" + + "yPolicyRequest\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\017" + + "security_policy\030\221\206\312Q \001(\tB\003\340A\002B\013\n\t_priori" + + "ty\"K\n\023RequestMirrorPolicy\022 \n\017backend_ser" + + "vice\030\212\300\256\222\001 \001(\tH\000\210\001\001B\022\n\020_backend_service\"" + + "\251\t\n\013Reservation\022_\n\025aggregate_reservation" + + "\030\314\362\203\213\001 \001(\01327.google.cloud.compute.v1.All" + + "ocationAggregateReservationH\000\210\001\001\022\033\n\ncomm" + + "itment\030\225\226\363\345\001 \001(\tH\001\210\001\001\022\"\n\022creation_timest" + + "amp\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\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\022X\n\021resourc" + + "e_policies\030\341\234\314\n \003(\0132:.google.cloud.compu" + + "te.v1.Reservation.ResourcePoliciesEntry\022" + + "R\n\017resource_status\030\303\372\367v \001(\01321.google.clo" + + "ud.compute.v1.AllocationResourceStatusH\007" + + "\210\001\001\022\036\n\rsatisfies_pzs\030\253\335\253\345\001 \001(\010H\010\210\001\001\022\032\n\ts" + + "elf_link\030\215\222\305\331\001 \001(\tH\t\210\001\001\022F\n\016share_setting" + + "s\030\203\221\224\177 \001(\0132&.google.cloud.compute.v1.Sha" + + "reSettingsH\n\210\001\001\022`\n\024specific_reservation\030" + + "\277\240\211\301\001 \001(\01329.google.cloud.compute.v1.Allo" + + "cationSpecificSKUReservationH\013\210\001\001\022-\n\035spe" + + "cific_reservation_required\030\237\307\203l \001(\010H\014\210\001\001" + + "\022\026\n\006status\030\362\237\267V \001(\tH\r\210\001\001\022\024\n\004zone\030\254\307\344\001 \001(" + + "\tH\016\210\001\001\0327\n\025ResourcePoliciesEntry\022\013\n\003key\030\001" + + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"s\n\006Status\022\024\n\020UND" + + "EFINED_STATUS\020\000\022\020\n\010CREATING\020\271\275\235\331\001\022\020\n\010DEL" + + "ETING\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\010UPDATING\020\306\356\354\353\001B\030\n\026_aggregate_reser" + + "vationB\r\n\013_commitmentB\025\n\023_creation_times" + + "tampB\016\n\014_descriptionB\005\n\003_idB\007\n\005_kindB\007\n\005" + + "_nameB\022\n\020_resource_statusB\020\n\016_satisfies_" + + "pzsB\014\n\n_self_linkB\021\n\017_share_settingsB\027\n\025" + + "_specific_reservationB \n\036_specific_reser" + + "vation_requiredB\t\n\007_statusB\007\n\005_zone\"\260\002\n\023" + + "ReservationAffinity\022)\n\030consume_reservati" + + "on_type\030\260\303\263\217\001 \001(\tH\000\210\001\001\022\022\n\003key\030\337\274\006 \001(\tH\001\210" + + "\001\001\022\021\n\006values\030\242\272\226w \003(\t\"\241\001\n\026ConsumeReserva" + + "tionType\022&\n\"UNDEFINED_CONSUME_RESERVATIO" + + "N_TYPE\020\000\022\026\n\017ANY_RESERVATION\020\271\303\257_\022\025\n\016NO_R" + + "ESERVATION\020\256\314\336P\022\033\n\024SPECIFIC_RESERVATION\020" + + "\237\250\317m\022\023\n\013UNSPECIFIED\020\227\276\230\373\001B\033\n\031_consume_re" + + "servation_typeB\006\n\004_key\"\302\003\n\031ReservationAg" + + "gregatedList\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.Reser" + + "vationAggregatedList.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\014un" + + "reachables\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(\013" + + "2/.google.cloud.compute.v1.ReservationsS" + + "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\"\247\002\n\017" + + "ReservationList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0226\n\005ite" + + "ms\030\300\317\367/ \003(\0132$.google.cloud.compute.v1.Re" + + "servation\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\"V\n\031ReservationsResizeReque" + + "st\022\"\n\022specific_sku_count\030\240\351\317\006 \001(\003H\000\210\001\001B\025" + + "\n\023_specific_sku_count\"\237\001\n\026ReservationsSc" + + "opedList\022>\n\014reservations\030\247\354\314\276\001 \003(\0132$.goo" + + "gle.cloud.compute.v1.Reservation\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\"\233\001\n\024ResetInstanc" + + "eRequest\022\030\n\010instance\030\225\251\332\010 \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\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362" + + "G\004zoneB\r\n\013_request_id\"\360\001\n\021ResizeDiskRequ" + + "est\022\024\n\004disk\030\235\233\274\001 \001(\tB\003\340A\002\022Z\n\035disks_resiz" + + "e_request_resource\030\240\302\253% \001(\0132+.google.clo" + + "ud.compute.v1.DisksResizeRequestB\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\"\314\001\n!ResizeInsta" + + "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\032\n\nrequest_id\030\313\201\331\021 \001(\t" + + "H\000\210\001\001\022\024\n\004size\030\201\300\327\001 \001(\005B\003\340A\002\022\033\n\004zone\030\254\307\344\001" + + " \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id\"\210\002\n\027Resi" + + "zeRegionDiskRequest\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\006" + + "region\030\364\315\240B \001(\tB\014\340A\002\362G\006region\022h\n$region_" + + "disks_resize_request_resource\030\225\252\374\324\001 \001(\0132" + + "1.google.cloud.compute.v1.RegionDisksRes" + + "izeRequestB\003\340A\002\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000" + + "\210\001\001B\r\n\013_request_id\"\326\001\n\'ResizeRegionInsta" + + "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\001\022\024" + + "\n\004size\030\201\300\327\001 \001(\005B\003\340A\002B\r\n\013_request_id\"\215\002\n\030" + + "ResizeReservationRequest\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\013reservation\030\314\207\325\026 \001(\tB\003\340A\002\022i\n$" + + "reservations_resize_request_resource\030\321\333\316" + + "\271\001 \001(\01322.google.cloud.compute.v1.Reserva" + + "tionsResizeRequestB\003\340A\002\022\033\n\004zone\030\254\307\344\001 \001(\t" + + "B\n\340A\002\362G\004zoneB\r\n\013_request_id\"\202\002\n\022Resource" + + "Commitment\022 \n\020accelerator_type\030\216\341\350A \001(\tH" + + "\000\210\001\001\022\026\n\006amount\030\330\240\351] \001(\003H\001\210\001\001\022\024\n\004type\030\272\236\332" + + "\001 \001(\tH\002\210\001\001\"s\n\004Type\022\022\n\016UNDEFINED_TYPE\020\000\022\023" + + "\n\013ACCELERATOR\020\313\354\371\314\001\022\021\n\tLOCAL_SSD\020\360\365\326\362\001\022\r" + + "\n\006MEMORY\020\201\342\326:\022\023\n\013UNSPECIFIED\020\227\276\230\373\001\022\013\n\004VC" + + "PU\020\362\272\240\001B\023\n\021_accelerator_typeB\t\n\007_amountB" + + "\007\n\005_type\"9\n\026ResourceGroupReference\022\025\n\005gr" + + "oup\030\377\354\203/ \001(\tH\000\210\001\001B\010\n\006_group\"\252\001\n\032Resource" + + "PoliciesScopedList\022E\n\021resource_policies\030" + + "\341\234\314\n \003(\0132\'.google.cloud.compute.v1.Resou" + + "rcePolicy\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.c" + + "loud.compute.v1.WarningH\000\210\001\001B\n\n\010_warning" + + "\"\302\010\n\016ResourcePolicy\022\"\n\022creation_timestam" + + "p\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\t" + + "H\001\210\001\001\022q\n\035disk_consistency_group_policy\030\233" + + "\204\362\341\001 \001(\0132A.google.cloud.compute.v1.Resou" + + "rcePolicyDiskConsistencyGroupPolicyH\002\210\001\001" + + "\022c\n\026group_placement_policy\030\214\233\233\005 \001(\0132;.go" + + "ogle.cloud.compute.v1.ResourcePolicyGrou" + + "pPlacementPolicyH\003\210\001\001\022\020\n\002id\030\233\032 \001(\004H\004\210\001\001\022" + + "h\n\030instance_schedule_policy\030\260\320\271\244\001 \001(\0132=." + + "google.cloud.compute.v1.ResourcePolicyIn" + + "stanceSchedulePolicyH\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\026\n\006region\030" + + "\364\315\240B \001(\tH\010\210\001\001\022V\n\017resource_status\030\303\372\367v \001(" + + "\01325.google.cloud.compute.v1.ResourcePoli" + + "cyResourceStatusH\t\210\001\001\022\032\n\tself_link\030\215\222\305\331\001" + + " \001(\tH\n\210\001\001\022g\n\030snapshot_schedule_policy\030\337\326" + + "\201h \001(\0132=.google.cloud.compute.v1.Resourc" + + "ePolicySnapshotSchedulePolicyH\013\210\001\001\022\026\n\006st" + + "atus\030\362\237\267V \001(\tH\014\210\001\001\"r\n\006Status\022\024\n\020UNDEFINE" + + "D_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\007EXPIRED\020\205\346\210\346\001\022\017\n\007INVALID\020\327\373\355\374\001" + + "\022\014\n\005READY\020\203\303\217%B\025\n\023_creation_timestampB\016\n" + + "\014_descriptionB \n\036_disk_consistency_group" + + "_policyB\031\n\027_group_placement_policyB\005\n\003_i" + + "dB\033\n\031_instance_schedule_policyB\007\n\005_kindB" + + "\007\n\005_nameB\t\n\007_regionB\022\n\020_resource_statusB" + + "\014\n\n_self_linkB\033\n\031_snapshot_schedule_poli" + + "cyB\t\n\007_status\"\353\003\n\034ResourcePolicyAggregat" + + "edList\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\022R\n\005items\030\300\317\367/ \003(\0132@.google.cloud." + + "compute.v1.ResourcePolicyAggregatedList." + + "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.comput" + + "e.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.compu" + + "te.v1.ResourcePoliciesScopedList:\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\"\236\001\n\030Resource" + + "PolicyDailyCycle\022\036\n\rdays_in_cycle\030\264\230\252\260\001 " + + "\001(\005H\000\210\001\001\022\030\n\010duration\030\224\233\221J \001(\tH\001\210\001\001\022\032\n\nst" + + "art_time\030\212\351\356\021 \001(\tH\002\210\001\001B\020\n\016_days_in_cycle" + + "B\013\n\t_durationB\r\n\013_start_time\"*\n(Resource" + + "PolicyDiskConsistencyGroupPolicy\"\240\002\n\"Res" + + "ourcePolicyGroupPlacementPolicy\022)\n\031avail" + + "ability_domain_count\030\270\214\370\005 \001(\005H\000\210\001\001\022\034\n\013co" + + "llocation\030\265\302\336\363\001 \001(\tH\001\210\001\001\022\030\n\010vm_count\030\207\273\326" + + "| \001(\005H\002\210\001\001\"\\\n\013Collocation\022\031\n\025UNDEFINED_C" + + "OLLOCATION\020\000\022\021\n\nCOLLOCATED\020\322\253\2361\022\037\n\027UNSPE" + + "CIFIED_COLLOCATION\020\355\217\263\335\001B\034\n\032_availabilit" + + "y_domain_countB\016\n\014_collocationB\013\n\t_vm_co" + + "unt\"\241\001\n\031ResourcePolicyHourlyCycle\022\030\n\010dur" + + "ation\030\224\233\221J \001(\tH\000\210\001\001\022\037\n\016hours_in_cycle\030\374\210" + + "\227\373\001 \001(\005H\001\210\001\001\022\032\n\nstart_time\030\212\351\356\021 \001(\tH\002\210\001\001" + + "B\013\n\t_durationB\021\n\017_hours_in_cycleB\r\n\013_sta" + + "rt_time\"\256\003\n$ResourcePolicyInstanceSchedu" + + "lePolicy\022\037\n\017expiration_time\030\335\254\350m \001(\tH\000\210\001" + + "\001\022\032\n\nstart_time\030\212\351\356\021 \001(\tH\001\210\001\001\022\031\n\ttime_zo" + + "ne\030\336\203\311\021 \001(\tH\002\210\001\001\022h\n\021vm_start_schedule\030\334\220" + + "\274\010 \001(\0132E.google.cloud.compute.v1.Resourc" + + "ePolicyInstanceSchedulePolicyScheduleH\003\210" + + "\001\001\022h\n\020vm_stop_schedule\030\254\345\237\313\001 \001(\0132E.googl", + "e.cloud.compute.v1.ResourcePolicyInstanc" + + "eSchedulePolicyScheduleH\004\210\001\001B\022\n\020_expirat" + + "ion_timeB\r\n\013_start_timeB\014\n\n_time_zoneB\024\n" + + "\022_vm_start_scheduleB\023\n\021_vm_stop_schedule" + + "\"V\n,ResourcePolicyInstanceSchedulePolicy" + + "Schedule\022\031\n\010schedule\030\227\245\232\263\001 \001(\tH\000\210\001\001B\013\n\t_" + + "schedule\"\314\002\n\022ResourcePolicyList\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.compute.v1.Reso" + + "urcePolicy\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 .goog" + + "le.cloud.compute.v1.WarningH\005\210\001\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\"\271\001\n\034ResourcePoli" + + "cyResourceStatus\022|\n\030instance_schedule_po" + + "licy\030\260\320\271\244\001 \001(\0132Q.google.cloud.compute.v1" + + ".ResourcePolicyResourceStatusInstanceSch" + + "edulePolicyStatusH\000\210\001\001B\033\n\031_instance_sche" + + "dule_policy\"\266\001\n8ResourcePolicyResourceSt" + + "atusInstanceSchedulePolicyStatus\022$\n\023last" + + "_run_start_time\030\207\357\301\220\001 \001(\tH\000\210\001\001\022$\n\023next_r" + + "un_start_time\030\212\263\370\227\001 \001(\tH\001\210\001\001B\026\n\024_last_ru" + + "n_start_timeB\026\n\024_next_run_start_time\"\250\003\n" + + "$ResourcePolicySnapshotSchedulePolicy\022n\n" + + "\020retention_policy\030\363\312\334 \001(\0132L.google.clou" + + "d.compute.v1.ResourcePolicySnapshotSched" + + "ulePolicyRetentionPolicyH\000\210\001\001\022`\n\010schedul" + + "e\030\227\245\232\263\001 \001(\0132E.google.cloud.compute.v1.Re" + + "sourcePolicySnapshotSchedulePolicySchedu" + + "leH\001\210\001\001\022t\n\023snapshot_properties\030\216\225\262X \001(\0132" + + "O.google.cloud.compute.v1.ResourcePolicy" + + "SnapshotSchedulePolicySnapshotProperties" + + "H\002\210\001\001B\023\n\021_retention_policyB\013\n\t_scheduleB" + + "\026\n\024_snapshot_properties\"\325\002\n3ResourcePoli" + + "cySnapshotSchedulePolicyRetentionPolicy\022" + + "#\n\022max_retention_days\030\223\302\321\232\001 \001(\005H\000\210\001\001\022&\n\025" + + "on_source_disk_delete\030\311\315\302\231\001 \001(\tH\001\210\001\001\"\237\001\n" + + "\022OnSourceDiskDelete\022#\n\037UNDEFINED_ON_SOUR" + + "CE_DISK_DELETE\020\000\022\036\n\026APPLY_RETENTION_POLI" + + "CY\020\344\224\222\377\001\022\032\n\023KEEP_AUTO_SNAPSHOTS\020\371\310\273{\022(\n!" + + "UNSPECIFIED_ON_SOURCE_DISK_DELETE\020\241\377\203rB\025" + + "\n\023_max_retention_daysB\030\n\026_on_source_disk" + + "_delete\"\347\002\n,ResourcePolicySnapshotSchedu" + + "lePolicySchedule\022Q\n\016daily_schedule\030\375\343\212) " + + "\001(\01321.google.cloud.compute.v1.ResourcePo" + + "licyDailyCycleH\000\210\001\001\022S\n\017hourly_schedule\030\245" + + "\261\243\022 \001(\01322.google.cloud.compute.v1.Resour" + + "cePolicyHourlyCycleH\001\210\001\001\022T\n\017weekly_sched" + + "ule\030\225\211\271\253\001 \001(\01322.google.cloud.compute.v1." + + "ResourcePolicyWeeklyCycleH\002\210\001\001B\021\n\017_daily" + + "_scheduleB\022\n\020_hourly_scheduleB\022\n\020_weekly" + + "_schedule\"\320\002\n6ResourcePolicySnapshotSche" + + "dulePolicySnapshotProperties\022\032\n\nchain_na" + + "me\030\311\332\335 \001(\tH\000\210\001\001\022\034\n\013guest_flush\030\335\223\354\267\001 \001(" + + "\010H\001\210\001\001\022o\n\006labels\030\377\277\301\356\001 \003(\0132[.google.clou" + + "d.compute.v1.ResourcePolicySnapshotSched" + + "ulePolicySnapshotProperties.LabelsEntry\022" + + "\035\n\021storage_locations\030\232\355\263\234\001 \003(\t\032-\n\013Labels" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\r\n" + + "\013_chain_nameB\016\n\014_guest_flush\"q\n\031Resource" + + "PolicyWeeklyCycle\022T\n\014day_of_weeks\030\332\237\373z \003" + + "(\0132;.google.cloud.compute.v1.ResourcePol" + + "icyWeeklyCycleDayOfWeek\"\264\002\n\"ResourcePoli" + + "cyWeeklyCycleDayOfWeek\022\022\n\003day\030\234\207\006 \001(\tH\000\210" + + "\001\001\022\030\n\010duration\030\224\233\221J \001(\tH\001\210\001\001\022\032\n\nstart_ti" + + "me\030\212\351\356\021 \001(\tH\002\210\001\001\"\237\001\n\003Day\022\021\n\rUNDEFINED_DA" + + "Y\020\000\022\016\n\006FRIDAY\020\337\362\343\340\001\022\017\n\007INVALID\020\327\373\355\374\001\022\r\n\006" + + "MONDAY\020\220\312\213?\022\020\n\010SATURDAY\020\271\217\207\205\001\022\016\n\006SUNDAY\020" + + "\320\213\322\223\001\022\017\n\010THURSDAY\020\332\263\346b\022\017\n\007TUESDAY\020\255\354\251\204\001\022" + + "\021\n\tWEDNESDAY\020\266\316\236\311\001B\006\n\004_dayB\013\n\t_durationB" + + "\r\n\013_start_time\"\216\002\n\016ResourceStatus\022\036\n\rphy" + + "sical_host\030\220\370\266\335\001 \001(\tH\000\210\001\001\022N\n\nscheduling\030" + + "\224\313\261\270\001 \001(\01321.google.cloud.compute.v1.Reso" + + "urceStatusSchedulingH\001\210\001\001\022R\n\024upcoming_ma" + + "intenance\030\360\240\264l \001(\0132,.google.cloud.comput" + + "e.v1.UpcomingMaintenanceH\002\210\001\001B\020\n\016_physic" + + "al_hostB\r\n\013_schedulingB\027\n\025_upcoming_main" + + "tenance\"W\n\030ResourceStatusScheduling\022#\n\023a" + + "vailability_domain\030\250\240\264x \001(\005H\000\210\001\001B\026\n\024_ava" + + "ilability_domain\"\234\001\n\025ResumeInstanceReque" + + "st\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\004zone" + + "B\r\n\013_request_id\"\321\002\n*ResumeInstancesInsta" + + "nceGroupManagerRequest\022&\n\026instance_group" + + "_manager\030\303\367\363v \001(\tB\003\340A\002\022\217\001\n9instance_grou" + + "p_managers_resume_instances_request_reso" + + "urce\030\302\276\302= \001(\0132D.google.cloud.compute.v1." + + "InstanceGroupManagersResumeInstancesRequ" + + "estB\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\022\033\n\004zone\030" + + "\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id\"\351\002\n0" + + "ResumeInstancesRegionInstanceGroupManage" + + "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\235\001\n" + + "@region_instance_group_managers_resume_i" + + "nstances_request_resource\030\267\203\200\335\001 \001(\0132J.go" + + "ogle.cloud.compute.v1.RegionInstanceGrou" + + "pManagersResumeInstancesRequestB\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\"" + + "\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\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\205" + + "o \001(\tH\006\210\001\001\022!\n\020next_hop_gateway\030\202\372\354\263\001 \001(\t" + + "H\007\210\001\001\022\034\n\014next_hop_hub\030\263\265\336^ \001(\tH\010\210\001\001\022\034\n\014n" + + "ext_hop_ilb\030\335\272\336^ \001(\tH\t\210\001\001\022\"\n\021next_hop_in" + + "stance\030\227\353\321\273\001 \001(\tH\n\210\001\001\022*\n\032next_hop_inter_" + + "region_cost\030\223\351\323\013 \001(\rH\013\210\001\001\022\033\n\013next_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\023next_hop_v" + + "pn_tunnel\030\225\345\360\367\001 \001(\tH\021\210\001\001\022\031\n\010priority\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\010" + + "warnings\030\327\210\301\355\001 \003(\0132!.google.cloud.comput" + + "e.v1.Warnings\"W\n\rNextHopOrigin\022\035\n\031UNDEFI" + + "NED_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\013RouteStatus\022\032\n" + + "\026UNDEFINED_ROUTE_STATUS\020\000\022\016\n\006ACTIVE\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\007" + + "PENDING\020\367\252\360\020\"`\n\tRouteType\022\030\n\024UNDEFINED_R" + + "OUTE_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_creat" + + "ion_timestampB\016\n\014_descriptionB\r\n\013_dest_r" + + "angeB\005\n\003_idB\007\n\005_kindB\007\n\005_nameB\n\n\010_networ" + + "kB\023\n\021_next_hop_gatewayB\017\n\r_next_hop_hubB" + + "\017\n\r_next_hop_ilbB\024\n\022_next_hop_instanceB\035" + + "\n\033_next_hop_inter_region_costB\016\n\014_next_h" + + "op_ipB\017\n\r_next_hop_medB\023\n\021_next_hop_netw" + + "orkB\022\n\020_next_hop_originB\023\n\021_next_hop_pee" + + "ringB\026\n\024_next_hop_vpn_tunnelB\013\n\t_priorit" + + "yB\017\n\r_route_statusB\r\n\013_route_typeB\014\n\n_se" + + "lf_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_S" + + "EGMENT_TYPE\020\000\022\031\n\022AS_CONFED_SEQUENCE\020\260\217\367i" + + "\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_typ" + + "e\"\233\002\n\tRouteList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0220\n\005ite" + + "ms\030\300\317\367/ \003(\0132\036.google.cloud.compute.v1.Ro" + + "ute\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\"\332\005\n\006Router\0226\n\003bgp\030\313\371\005 \001(\0132\".goog" + + "le.cloud.compute.v1.RouterBgpH\000\210\001\001\022=\n\tbg" + + "p_peers\030\335\255\356\327\001 \003(\0132&.google.cloud.compute" + + ".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\ninterfa" + + "ces\030\332\364\340\005 \003(\0132(.google.cloud.compute.v1.R" + + "outerInterface\022\024\n\004kind\030\224\367\310\001 \001(\tH\005\210\001\001\022W\n\027" + + "md5_authentication_keys\030\232\256\361! \003(\01323.googl" + + "e.cloud.compute.v1.RouterMd5Authenticati" + + "onKey\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.RouterNat" + + "\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\001B\006\n" + + "\004_bgpB\025\n\023_creation_timestampB\016\n\014_descrip" + + "tionB \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\027RouterAdvertised" + + "IpRange\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.clo" + + "ud.compute.v1.RouterAggregatedList.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\032X\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022" + + "9\n\005value\030\002 \001(\0132*.google.cloud.compute.v1" + + ".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_war" + + "ning\"\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.goo" + + "gle.cloud.compute.v1.RouterAdvertisedIpR" + + "ange\022\022\n\003asn\030\374\364\005 \001(\rH\001\210\001\001\022!\n\020identifier_r" + + "ange\030\247\314\225\357\001 \001(\tH\002\210\001\001\022#\n\022keepalive_interva" + + "l\030\274\345\374\203\001 \001(\rH\003\210\001\001\"M\n\rAdvertiseMode\022\034\n\030UND" + + "EFINED_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\033U" + + "NDEFINED_ADVERTISED_GROUPS\020\000\022\022\n\013ALL_SUBN" + + "ETS\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.goog" + + "le.cloud.compute.v1.RouterAdvertisedIpRa" + + "nge\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.com" + + "pute.v1.RouterBgpPeerBfdH\002\210\001\001\022`\n\030custom_" + + "learned_ip_ranges\030\304\210\304\345\001 \003(\0132:.google.clo" + + "ud.compute.v1.RouterBgpPeerCustomLearned" + + "IpRange\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_policies\030\373\362" + + "\367? \003(\t\022\033\n\017import_policies\030\252\361\217\327\001 \003(\t\022\037\n\016i" + + "nterface_name\030\321\303\344\320\001 \001(\tH\007\210\001\001\022\033\n\nip_addre" + + "ss\030\334\361\334\301\001 \001(\tH\010\210\001\001\022$\n\024ipv4_nexthop_addres" + + "s\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\010pe" + + "er_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_addre" + + "ss\030\216\203\337\337\001 \001(\tH\020\210\001\001\022*\n\031peer_ipv6_nexthop_a" + + "ddress\030\220\373\255\352\001 \001(\tH\021\210\001\001\022*\n\031router_applianc" + + "e_instance\030\235\307\247\337\001 \001(\tH\022\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\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\001\"g\n\016" + + "ManagementType\022\035\n\031UNDEFINED_MANAGEMENT_T" + + "YPE\020\000\022\035\n\025MANAGED_BY_ATTACHMENT\020\313\322\352\332\001\022\027\n\017" + + "MANAGED_BY_USER\020\363\213\246\227\001B\021\n\017_advertise_mode" + + "B\034\n\032_advertised_route_priorityB\006\n\004_bfdB " + + "\n\036_custom_learned_route_priorityB\t\n\007_ena" + + "bleB\016\n\014_enable_ipv4B\016\n\014_enable_ipv6B\021\n\017_" + + "interface_nameB\r\n\013_ip_addressB\027\n\025_ipv4_n" + + "exthop_addressB\027\n\025_ipv6_nexthop_addressB" + + "\022\n\020_management_typeB\036\n\034_md5_authenticati" + + "on_key_nameB\007\n\005_nameB\013\n\t_peer_asnB\022\n\020_pe" + + "er_ip_addressB\034\n\032_peer_ipv4_nexthop_addr" + + "essB\034\n\032_peer_ipv6_nexthop_addressB\034\n\032_ro" + + "uter_appliance_instance\"\206\003\n\020RouterBgpPee" + + "rBfd\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\033sessio" + + "n_initialization_mode\030\271\215\3032 \001(\tH\003\210\001\001\"y\n\031S" + + "essionInitializationMode\022)\n%UNDEFINED_SE" + + "SSION_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_transmit" + + "_intervalB\r\n\013_multiplierB\036\n\034_session_ini" + + "tialization_mode\"D\n!RouterBgpPeerCustomL" + + "earnedIpRange\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_addr" + + "ess\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_VERSIO" + + "N\020\000\022\013\n\004IPV4\020\205\314\211\001\022\013\n\004IPV6\020\207\314\211\001\"g\n\016Managem" + + "entType\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_versi" + + "onB!\n\037_linked_interconnect_attachmentB\024\n" + + "\022_linked_vpn_tunnelB\022\n\020_management_typeB" + + "\007\n\005_nameB\025\n\023_private_ip_addressB\026\n\024_redu" + + "ndant_interfaceB\r\n\013_subnetwork\"\235\002\n\nRoute" + + "rList\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\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\"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_ti" + + "er\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_indepen" + + "dent_mapping\030\233\211\333{ \001(\010H\002\210\001\001\022\032\n\016endpoint_t" + + "ypes\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.RouterNatLogConf" + + "igH\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\004n" + + "ame\030\213\365\315\001 \001(\tH\007\210\001\001\022\'\n\026nat_ip_allocate_opt" + + "ion\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_subnetwork_ip" + + "_ranges_to_nat\030\333\357\241x \001(\tH\t\210\001\001\022J\n\013subnetwo" + + "rks\030\305\324\245\306\001 \003(\01321.google.cloud.compute.v1." + + "RouterNatSubnetworkToNat\0220\n tcp_establis" + + "hed_idle_timeout_sec\030\355\353\260j \001(\005H\n\210\001\001\022*\n\031tc" + + "p_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_idl" + + "e_timeout_sec\030\306\262\372\036 \001(\005H\016\210\001\001\"\230\001\n\017AutoNetw" + + "orkTier\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_OVERRIDE" + + "S_FIXED_STANDARD\020\302\207\221\336\001\"\210\001\n\rEndpointTypes" + + "\022\034\n\030UNDEFINED_ENDPOINT_TYPES\020\000\022&\n\036ENDPOI" + + "NT_TYPE_MANAGED_PROXY_LB\020\202\272\266\321\001\022\030\n\021ENDPOI" + + "NT_TYPE_SWG\020\310\316\375K\022\027\n\020ENDPOINT_TYPE_VM\020\262\352\234" + + "\033\"a\n\023NatIpAllocateOption\022$\n UNDEFINED_NA" + + "T_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\035SourceSubnetwor" + + "kIpRangesToNat\0220\n,UNDEFINED_SOURCE_SUBNE" + + "TWORK_IP_RANGES_TO_NAT\020\000\022$\n\035ALL_SUBNETWO" + + "RKS_ALL_IP_RANGES\020\330\223\350U\022,\n%ALL_SUBNETWORK" + + "S_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_T" + + "YPE\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_p" + + "ort_allocationB&\n$_enable_endpoint_indep" + + "endent_mappingB\030\n\026_icmp_idle_timeout_sec" + + "B\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_al" + + "locate_optionB%\n#_source_subnetwork_ip_r" + + "anges_to_natB#\n!_tcp_established_idle_ti" + + "meout_secB\034\n\032_tcp_time_wait_timeout_secB" + + "\"\n _tcp_transitory_idle_timeout_secB\007\n\005_" + + "typeB\027\n\025_udp_idle_timeout_sec\"\267\001\n\022Router" + + "NatLogConfig\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\020UNDE" + + "FINED_FILTER\020\000\022\t\n\003ALL\020\201\373\003\022\023\n\013ERRORS_ONLY" + + "\020\200\260\317\222\001\022\031\n\021TRANSLATIONS_ONLY\020\351\303\252\252\001B\t\n\007_en" + + "ableB\t\n\007_filter\"\335\001\n\rRouterNatRule\022D\n\006act" + + "ion\030\266\374\275Y \001(\0132,.google.cloud.compute.v1.R" + + "outerNatRuleActionH\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\013" + + "rule_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_ac" + + "tive_ips\030\365\273\250d \003(\t\022#\n\030source_nat_active_r" + + "anges\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\004nam" + + "e\030\213\365\315\001 \001(\tH\000\210\001\001\022#\n\030secondary_ip_range_na" + + "mes\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!UND" + + "EFINED_SOURCE_IP_RANGES_TO_NAT\020\000\022\024\n\rALL_" + + "IP_RANGES\020\260\257\375\020\022\"\n\033LIST_OF_SECONDARY_IP_R" + + "ANGES\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\022" + + "A\n\026best_routes_for_router\030\371\373\3668 \003(\0132\036.goo" + + "gle.cloud.compute.v1.Route\022N\n\017bgp_peer_s" + + "tatus\030\373\327\225h \003(\01322.google.cloud.compute.v1" + + ".RouterStatusBgpPeerStatus\022E\n\nnat_status" + + "\030\320\231\213\036 \003(\0132..google.cloud.compute.v1.Rout" + + "erStatusNatStatus\022\027\n\007network\030\256\264\205o \001(\tH\000\210" + + "\001\001B\n\n\010_network\"\351\n\n\031RouterStatusBgpPeerSt" + + "atus\022=\n\021advertised_routes\030\254\331\374\236\001 \003(\0132\036.go" + + "ogle.cloud.compute.v1.Route\022?\n\nbfd_statu" + + "s\030\361\270\323\274\001 \001(\0132\".google.cloud.compute.v1.Bf" + + "dStatusH\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_add" + + "ress\030\334\361\334\301\001 \001(\tH\003\210\001\001\022$\n\024ipv4_nexthop_addr" + + "ess\030\321\215\334\002 \001(\tH\004\210\001\001\022$\n\024ipv6_nexthop_addres" + + "s\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_lear" + + "ned_routes\030\377\325\313@ \001(\rH\t\210\001\001\022\037\n\017peer_ip_addr" + + "ess\030\331\227\207c \001(\tH\n\210\001\001\022*\n\031peer_ipv4_nexthop_a" + + "ddress\030\216\203\337\337\001 \001(\tH\013\210\001\001\022*\n\031peer_ipv6_nexth" + + "op_address\030\220\373\255\352\001 \001(\tH\014\210\001\001\022*\n\031router_appl" + + "iance_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\r" + + "status_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_STATUS\020\000\022\013\n\004" + + "DOWN\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\014" + + "StatusReason\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_CONNECTIO" + + "N\020\322\361\205\320\001\022 \n\031MD5_AUTH_INTERNAL_PROBLEM\020\263\221\375" + + "B\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_i" + + "pv6B\r\n\013_ip_addressB\027\n\025_ipv4_nexthop_addr" + + "essB\027\n\025_ipv6_nexthop_addressB\024\n\022_linked_" + + "vpn_tunnelB\023\n\021_md5_auth_enabledB\007\n\005_name" + + "B\025\n\023_num_learned_routesB\022\n\020_peer_ip_addr" + + "essB\034\n\032_peer_ipv4_nexthop_addressB\034\n\032_pe" + + "er_ipv6_nexthop_addressB\034\n\032_router_appli" + + "ance_instanceB\010\n\006_stateB\t\n\007_statusB\020\n\016_s" + + "tatus_reasonB\t\n\007_uptimeB\021\n\017_uptime_secon" + + "ds\"\367\003\n\025RouterStatusNatStatus\022\"\n\026auto_all" + + "ocated_nat_ips\030\206\264\310\363\001 \003(\t\022(\n\034drain_auto_a" + + "llocated_nat_ips\030\255\220\267\223\001 \003(\t\022(\n\034drain_user" + + "_allocated_nat_ips\030\311\216\310\221\001 \003(\t\022)\n\030min_extr" + + "a_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_n" + + "at_mappings\030\354\266\250\364\001 \001(\005H\002\210\001\001\022S\n\013rule_statu" + + "s\030\225\305\356B \003(\0132;.google.cloud.compute.v1.Rou" + + "terStatusNatStatusNatRuleStatus\022*\n\037user_" + + "allocated_nat_ip_resources\030\327\351\272e \003(\t\022\"\n\026u" + + "ser_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_vm", + "_endpoints_with_nat_mappings\"\244\002\n\"RouterS" + + "tatusNatStatusNatRuleStatus\022\031\n\016active_na" + + "t_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_num" + + "ber\"\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.cl" + + "oud.compute.v1.RouterStatusH\001\210\001\001B\007\n\005_kin" + + "dB\t\n\007_result\"`\n\026RoutersPreviewResponse\0229" + + "\n\010resource\030\216\210\257] \001(\0132\037.google.cloud.compu" + + "te.v1.RouterH\000\210\001\001B\013\n\t_resource\"\220\001\n\021Route" + + "rsScopedList\0224\n\007routers\030\312\244\335\224\001 \003(\0132\037.goog" + + "le.cloud.compute.v1.Router\0229\n\007warning\030\234\337" + + "\226\030 \001(\0132 .google.cloud.compute.v1.Warning" + + "H\000\210\001\001B\n\n\010_warning\"\330\003\n\016SSLHealthCheck\022\024\n\004" + + "port\030\201\261\322\001 \001(\005H\000\210\001\001\022\031\n\tport_name\030\211\207\347\023 \001(\t" + + "H\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\007reque" + + "st\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_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_portB\014\n\n_port_nameB\025\n\023_port_spe" + + "cificationB\017\n\r_proxy_headerB\n\n\010_requestB" + + "\013\n\t_response\"\217\010\n\021SavedAttachedDisk\022\034\n\013au" + + "to_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\023d" + + "isk_encryption_key\030\205\355\304\201\001 \001(\0132..google.cl" + + "oud.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\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.compute.v1.Gues" + + "tOsFeature\022\025\n\005index\030\322\321\354/ \001(\005H\006\210\001\001\022\032\n\tint" + + "erface\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\rstora" + + "ge_bytes\030\247\273\275\312\001 \001(\003H\013\210\001\001\022%\n\024storage_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\016" + + "UNDEFINED_MODE\020\000\022\020\n\tREAD_ONLY\020\265\231\354+\022\021\n\nRE" + + "AD_WRITE\020\326\227\344R\"]\n\022StorageBytesStatus\022\"\n\036U" + + "NDEFINED_STORAGE_BYTES_STATUS\020\000\022\020\n\010UPDAT" + + "ING\020\306\356\354\353\001\022\021\n\nUP_TO_DATE\020\316\242\2470\"?\n\004Type\022\022\n\016" + + "UNDEFINED_TYPE\020\000\022\022\n\nPERSISTENT\020\227\365\325\333\001\022\017\n\007" + + "SCRATCH\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_indexB" + + "\014\n\n_interfaceB\007\n\005_kindB\007\n\005_modeB\t\n\007_sour" + + "ceB\020\n\016_storage_bytesB\027\n\025_storage_bytes_s" + + "tatusB\007\n\005_type\"\305\003\n\tSavedDisk\022\035\n\014architec" + + "ture\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\rstora" + + "ge_bytes\030\247\273\275\312\001 \001(\003H\003\210\001\001\022%\n\024storage_bytes" + + "_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\030ARCHITECTU" + + "RE_UNSPECIFIED\020\253\324\235\274\001\022\014\n\005ARM64\020\372\313\351\035\022\016\n\006X8" + + "6_64\020\307\244\346\312\001\"]\n\022StorageBytesStatus\022\"\n\036UNDE" + + "FINED_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_architectu" + + "reB\007\n\005_kindB\016\n\014_source_diskB\020\n\016_storage_" + + "bytesB\027\n\025_storage_bytes_status\"\201\002\n\025Scali" + + "ngScheduleStatus\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\017UN" + + "DEFINED_STATE\020\000\022\016\n\006ACTIVE\020\206\346\211\226\001\022\020\n\010DISAB" + + "LED\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_time" + + "B\010\n\006_state\"\356\t\n\nScheduling\022\"\n\021automatic_r" + + "estart\030\373\267\244\247\001 \001(\010H\000\210\001\001\022#\n\023availability_do" + + "main\030\250\240\264x \001(\005H\001\210\001\001\022+\n\033instance_terminati" + + "on_action\030\273\377\2313 \001(\tH\002\210\001\001\022M\n\032local_ssd_rec" + + "overy_timeout\030\346\257\346\177 \001(\0132!.google.cloud.co" + + "mpute.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.DurationH" + + "\005\210\001\001\022\036\n\rmin_node_cpus\030\273\244\242\227\001 \001(\005H\006\210\001\001\022L\n\017" + + "node_affinities\030\243\204\232\334\001 \003(\0132/.google.cloud" + + ".compute.v1.SchedulingNodeAffinity\022#\n\023on" + + "_host_maintenance\030\334\362\347\036 \001(\tH\007\210\001\001\022a\n\027on_in" + + "stance_stop_action\030\311\215\325\374\001 \001(\01327.google.cl" + + "oud.compute.v1.SchedulingOnInstanceStopA" + + "ctionH\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\020t" + + "ermination_time\030\250\216\220\314\001 \001(\tH\013\210\001\001\"\223\001\n\031Insta" + + "nceTerminationAction\022)\n%UNDEFINED_INSTAN" + + "CE_TERMINATION_ACTION\020\000\022\016\n\006DELETE\020\253\363\345\277\001\022" + + ".\n\'INSTANCE_TERMINATION_ACTION_UNSPECIFI" + + "ED\020\263\301\251,\022\013\n\004STOP\020\202\200\234\001\"Y\n\021OnHostMaintenanc" + + "e\022!\n\035UNDEFINED_ON_HOST_MAINTENANCE\020\000\022\016\n\007" + + "MIGRATE\020\213\303\201O\022\021\n\tTERMINATE\020\301\234\313\373\001\"T\n\021Provi" + + "sioningModel\022 \n\034UNDEFINED_PROVISIONING_M" + + "ODEL\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_dom" + + "ainB\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_c" + + "pusB\026\n\024_on_host_maintenanceB\032\n\030_on_insta" + + "nce_stop_actionB\016\n\014_preemptibleB\025\n\023_prov" + + "isioning_modelB\023\n\021_termination_time\"\307\001\n\026" + + "SchedulingNodeAffinity\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_OPERATO" + + "R\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\021disca" + + "rd_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\010" + + "contents\030\232\266\275\361\001 \001(\tH\000\210\001\001\022\024\n\004kind\030\224\367\310\001 \001(\t" + + "H\001\210\001\001B\013\n\t_contentsB\007\n\005_kind\"\357\003\n\036Security" + + "PoliciesAggregatedList\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(\013" + + "2B.google.cloud.compute.v1.SecurityPolic" + + "iesAggregatedList.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\014unrea" + + "chables\030\237\240\206t \003(\t\0229\n\007warning\030\234\337\226\030 \001(\0132 .g" + + "oogle.cloud.compute.v1.WarningH\005\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.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" + + "ScopedList:\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_wa" + + "rning\"\277\001\n7SecurityPoliciesListPreconfigu" + + "redExpressionSetsResponse\022b\n\035preconfigur" + + "ed_expression_sets\030\372\214\327\377\001 \001(\01322.google.cl" + + "oud.compute.v1.SecurityPoliciesWafConfig" + + "H\000\210\001\001B \n\036_preconfigured_expression_sets\"" + + "\252\001\n\032SecurityPoliciesScopedList\022E\n\021securi" + + "ty_policies\030\357\246\367< \003(\0132\'.google.cloud.comp" + + "ute.v1.SecurityPolicy\0229\n\007warning\030\234\337\226\030 \001(" + + "\0132 .google.cloud.compute.v1.WarningH\000\210\001\001" + + "B\n\n\010_warning\"r\n\031SecurityPoliciesWafConfi" + + "g\022G\n\twaf_rules\030\324\303\333# \001(\0132,.google.cloud.c" + + "ompute.v1.PreconfiguredWafSetH\000\210\001\001B\014\n\n_w" + + "af_rules\"\257\n\n\016SecurityPolicy\022k\n\032adaptive_" + + "protection_config\030\337\373\321G \001(\0132?.google.clou" + + "d.compute.v1.SecurityPolicyAdaptiveProte" + + "ctionConfigH\000\210\001\001\022f\n\027advanced_options_con" + + "fig\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\026" + + "ddos_protection_config\030\315\204\377\027 \001(\0132;.google" + + ".cloud.compute.v1.SecurityPolicyDdosProt" + + "ectionConfigH\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\002" + + "id\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\021" + + "label_fingerprint\030\231\360\367T \001(\tH\010\210\001\001\022G\n\006label" + + "s\030\377\277\301\356\001 \003(\01323.google.cloud.compute.v1.Se" + + "curityPolicy.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.SecurityP" + + "olicyRecaptchaOptionsConfigH\n\210\001\001\022\026\n\006regi" + + "on\030\364\315\240B \001(\tH\013\210\001\001\022=\n\005rules\030\367\221\3653 \003(\0132+.goo" + + "gle.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.SecurityPoli" + + "cyUserDefinedField\032-\n\013LabelsEntry\022\013\n\003key" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"d\n\004Type\022\022\n\016UND" + + "EFINED_TYPE\020\000\022\022\n\013CLOUD_ARMOR\020\365\234\244|\022\027\n\020CLO" + + "UD_ARMOR_EDGE\020\307\242\307w\022\033\n\023CLOUD_ARMOR_NETWOR" + + "K\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&SecurityPolicyAda" + + "ptiveProtectionConfig\022\203\001\n\032layer7_ddos_de" + + "fense_config\030\243\331\303\320\001 \001(\0132V.google.cloud.co" + + "mpute.v1.SecurityPolicyAdaptiveProtectio" + + "nConfigLayer7DdosDefenseConfigH\000\210\001\001B\035\n\033_" + + "layer7_ddos_defense_config\"\363\002\n=SecurityP" + + "olicyAdaptiveProtectionConfigLayer7DdosD" + + "efenseConfig\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\021thre" + + "shold_configs\030\235\253\343\034 \003(\0132e.google.cloud.co" + + "mpute.v1.SecurityPolicyAdaptiveProtectio" + + "nConfigLayer7DdosDefenseConfigThresholdC" + + "onfig\"R\n\016RuleVisibility\022\035\n\031UNDEFINED_RUL" + + "E_VISIBILITY\020\000\022\017\n\007PREMIUM\020\267\264\301\276\001\022\020\n\010STAND" + + "ARD\020\275\235\214\347\001B\t\n\007_enableB\022\n\020_rule_visibility" + + "\"\321\006\nLSecurityPolicyAdaptiveProtectionCon" + + "figLayer7DdosDefenseConfigThresholdConfi" + + "g\0220\n auto_deploy_confidence_threshold\030\276\355" + + "\231( \001(\002H\000\210\001\001\022*\n\032auto_deploy_expiration_se" + + "c\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\032aut" + + "o_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_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.SecurityPolicyA" + + "daptiveProtectionConfigLayer7DdosDefense" + + "ConfigThresholdConfigTrafficGranularityC" + + "onfigB#\n!_auto_deploy_confidence_thresho" + + "ldB\035\n\033_auto_deploy_expiration_secB*\n(_au" + + "to_deploy_impacted_baseline_thresholdB\035\n" + + "\033_auto_deploy_load_thresholdB\031\n\027_detecti" + + "on_absolute_qpsB\033\n\031_detection_load_thres" + + "holdB%\n#_detection_relative_to_baseline_" + + "qpsB\007\n\005_name\"\320\002\ndSecurityPolicyAdaptiveP" + + "rotectionConfigLayer7DdosDefenseConfigTh" + + "resholdConfigTrafficGranularityConfig\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(\t" + + "H\002\210\001\001\"`\n\004Type\022\022\n\016UNDEFINED_TYPE\020\000\022\030\n\020HTT" + + "P_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#Secu" + + "rityPolicyAdvancedOptionsConfig\022p\n\022json_" + + "custom_config\030\271\331\2315 \001(\0132L.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" + + "nfigJsonCustomConfigH\000\210\001\001\022\035\n\014json_parsin" + + "g\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_PARSIN" + + "G\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\010LogLeve" + + "l\022\027\n\023UNDEFINED_LOG_LEVEL\020\000\022\r\n\006NORMAL\020\347\341\346" + + "L\022\017\n\007VERBOSE\020\342\212\344\375\001B\025\n\023_json_custom_confi" + + "gB\017\n\r_json_parsingB\014\n\n_log_level\"O\n3Secu" + + "rityPolicyAdvancedOptionsConfigJsonCusto" + + "mConfig\022\030\n\rcontent_types\030\263\342\247\010 \003(\t\"\256\001\n\"Se" + + "curityPolicyDdosProtectionConfig\022 \n\017ddos" + + "_protection\030\224\237\233\203\001 \001(\tH\000\210\001\001\"R\n\016DdosProtec" + + "tion\022\035\n\031UNDEFINED_DDOS_PROTECTION\020\000\022\017\n\010A" + + "DVANCED\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.c" + + "loud.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(\t" + + "H\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_kind" + + "B\022\n\020_next_page_tokenB\n\n\010_warning\"`\n$Secu" + + "rityPolicyRecaptchaOptionsConfig\022\"\n\021redi" + + "rect_site_key\030\352\204\274\325\001 \001(\tH\000\210\001\001B\024\n\022_redirec" + + "t_site_key\"N\n\027SecurityPolicyReference\022\037\n" + + "\017security_policy\030\221\206\312Q \001(\tH\000\210\001\001B\022\n\020_secur" + + "ity_policy\"\367\006\n\022SecurityPolicyRule\022\026\n\006act" + + "ion\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;.goo" + + "gle.cloud.compute.v1.SecurityPolicyRuleH" + + "ttpHeaderActionH\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.comp" + + "ute.v1.SecurityPolicyRuleMatcherH\004\210\001\001\022Y\n" + + "\rnetwork_match\030\364\370\372\334\001 \001(\01329.google.cloud." + + "compute.v1.SecurityPolicyRuleNetworkMatc" + + "herH\005\210\001\001\022k\n\030preconfigured_waf_config\030\343\237\226" + + "8 \001(\0132A.google.cloud.compute.v1.Security" + + "PolicyRulePreconfiguredWafConfigH\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(\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" - + "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" + + "yRuleRateLimitOptionsH\t\210\001\001\022\\\n\020redirect_o" + + "ptions\030\273\222\356M \001(\0132:.google.cloud.compute.v" + + "1.SecurityPolicyRuleRedirectOptionsH\n\210\001\001" + + "B\t\n\007_actionB\016\n\014_descriptionB\020\n\016_header_a" + + "ctionB\007\n\005_kindB\010\n\006_matchB\020\n\016_network_mat" + + "chB\033\n\031_preconfigured_waf_configB\n\n\010_prev" + + "iewB\013\n\t_priorityB\025\n\023_rate_limit_optionsB" + + "\023\n\021_redirect_options\"\225\001\n\"SecurityPolicyR" + + "uleHttpHeaderAction\022o\n\027request_headers_t" + + "o_adds\030\315\253\372) \003(\0132K.google.cloud.compute.v" + + "1.SecurityPolicyRuleHttpHeaderActionHttp" + + "HeaderOption\"\220\001\n2SecurityPolicyRuleHttpH" + + "eaderActionHttpHeaderOption\022\033\n\013header_na" + + "me\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.Secur" + + "ityPolicyRuleMatcherConfigH\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.SecurityPolicyRuleMatch" + + "erExprOptionsH\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\030UNDEFINE" + + "D_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_v" + + "ersioned_expr\"<\n\037SecurityPolicyRuleMatch" + + "erConfig\022\031\n\rsrc_ip_ranges\030\323\200\207\316\001 \003(\t\"\257\001\n$" + + "SecurityPolicyRuleMatcherExprOptions\022q\n\021" + + "recaptcha_options\030\306\366\307\271\001 \001(\0132M.google.clo" + + "ud.compute.v1.SecurityPolicyRuleMatcherE" + + "xprOptionsRecaptchaOptionsH\000\210\001\001B\024\n\022_reca" + + "ptcha_options\"~\n4SecurityPolicyRuleMatch" + + "erExprOptionsRecaptchaOptions\022!\n\026action_" + + "token_site_keys\030\235\352\311\034 \003(\t\022#\n\027session_toke" + + "n_site_keys\030\375\362\372\236\001 \003(\t\"\303\002\n SecurityPolicy" + + "RuleNetworkMatcher\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_pro" + + "tocols\030\303\217\315{ \003(\t\022\023\n\010src_asns\030\362\275\2278 \003(\r\022\031\n\r" + + "src_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\023u" + + "ser_defined_fields\030\243\211\300\r \003(\0132N.google.clo" + + "ud.compute.v1.SecurityPolicyRuleNetworkM" + + "atcherUserDefinedFieldMatch\"i\n5SecurityP" + + "olicyRuleNetworkMatcherUserDefinedFieldM" + + "atch\022\024\n\004name\030\213\365\315\001 \001(\tH\000\210\001\001\022\021\n\006values\030\242\272\226" + + "w \003(\tB\007\n\005_name\"\215\001\n(SecurityPolicyRulePre" + + "configuredWafConfig\022a\n\nexclusions\030\345\370\277c \003" + + "(\0132J.google.cloud.compute.v1.SecurityPol" + + "icyRulePreconfiguredWafConfigExclusion\"\202" + + "\005\n1SecurityPolicyRulePreconfiguredWafCon" + + "figExclusion\022|\n\032request_cookies_to_exclu" + + "de\030\366\336\337J \003(\0132U.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\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" + + "clusionFieldParams\022|\n\032request_headers_to" + + "_exclude\030\237\244\223\036 \003(\0132U.google.cloud.compute" + + ".v1.SecurityPolicyRulePreconfiguredWafCo" + + "nfigExclusionFieldParams\022\202\001\n\037request_que" + + "ry_params_to_exclude\030\210\236\272\242\001 \003(\0132U.google." + + "cloud.compute.v1.SecurityPolicyRulePreco" + + "nfiguredWafConfigExclusionFieldParams\022y\n" + + "\027request_uris_to_exclude\030\236\252\237+ \003(\0132U.goog" + + "le.cloud.compute.v1.SecurityPolicyRulePr" + + "econfiguredWafConfigExclusionFieldParams" + + "\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.google.cloud.compute.v1.Serv" + + "iceAttachmentConsumerProjectLimit\022 \n\025con" + + "sumer_reject_lists\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(\004" + + "H\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\013nat_subnets\030\230\217\333\262\001 \003(\t\022(\n\030pr" + + "oducer_forwarding_rule\030\321\250\234v \001(\tH\010\210\001\001\022,\n\033" + + "propagated_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.Uint128H\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\037UNDEFINED" + + "_CONNECTION_PREFERENCE\020\000\022\027\n\020ACCEPT_AUTOM" + + "ATIC\020\224\367\360#\022\025\n\rACCEPT_MANUAL\020\335\355\361\261\001\022(\n!CONN" + + "ECTION_PREFERENCE_UNSPECIFIED\020\264\240\277\020B\030\n\026_c" + + "onnection_preferenceB\025\n\023_creation_timest" + + "ampB\016\n\014_descriptionB\030\n\026_enable_proxy_pro" + + "tocolB\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_serv" + + "ice_attachment_idB\030\n\026_reconcile_connecti" + + "onsB\t\n\007_regionB\014\n\n_self_linkB\021\n\017_target_" + + "service\"\324\003\n\037ServiceAttachmentAggregatedL" + + "ist\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022U\n\005items\030\300\317\367/ \003(\0132" + + "C.google.cloud.compute.v1.ServiceAttachm" + + "entAggregatedList.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\032c\n\nI" + + "temsEntry\022\013\n\003key\030\001 \001(\t\022D\n\005value\030\002 \001(\01325." + + "google.cloud.compute.v1.ServiceAttachmen" + + "tsScopedList:\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\"\304" + + "\003\n\"ServiceAttachmentConnectedEndpoint\022 \n" + + "\020consumer_network\030\345\335\244y \001(\tH\000\210\001\001\022\030\n\010endpo" + + "int\030\225\273\234> \001(\tH\001\210\001\001\022,\n\033propagated_connecti" + + "on_count\030\322\323\343\232\001 \001(\rH\002\210\001\001\022\"\n\021psc_connectio" + + "n_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\010" + + "ACCEPTED\020\247\237\322u\022\016\n\006CLOSED\020\354\252\243\265\001\022\027\n\017NEEDS_A" + + "TTENTION\020\274\213\242\244\001\022\016\n\007PENDING\020\367\252\360\020\022\017\n\010REJECT" + + "ED\020\376\210\204S\022\031\n\022STATUS_UNSPECIFIED\020\312\314\213\024B\023\n\021_c" + + "onsumer_networkB\013\n\t_endpointB\036\n\034_propaga" + + "ted_connection_countB\024\n\022_psc_connection_" + + "idB\t\n\007_status\"\305\001\n%ServiceAttachmentConsu" + + "merProjectLimit\022 \n\020connection_limit\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_c" + + "onnection_limitB\016\n\014_network_urlB\024\n\022_proj" + + "ect_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*.go" + + "ogle.cloud.compute.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.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\"\262\001\n\034ServiceAttachmentsScopedList\022K\n\023" + + "service_attachments\030\246\222\272\222\001 \003(\0132*.google.c" + + "loud.compute.v1.ServiceAttachment\0229\n\007war" + + "ning\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1." + + "WarningH\000\210\001\001B\n\n\010_warning\"\246\002\n&SetBackendS" + + "erviceTargetSslProxyRequest\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\212\001\n7target_ssl_proxies_set_ba" + + "ckend_service_request_resource\030\244\351\250B \001(\0132" + + "A.google.cloud.compute.v1.TargetSslProxi" + + "esSetBackendServiceRequestB\003\340A\002\022!\n\020targe" + + "t_ssl_proxy\030\315\272\306\241\001 \001(\tB\003\340A\002B\r\n\013_request_i" + + "d\"\247\002\n&SetBackendServiceTargetTcpProxyReq" + "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" + + "\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022\213\001\n7target_t" + + "cp_proxies_set_backend_service_request_r" + + "esource\030\357\321\302\202\001 \001(\0132A.google.cloud.compute" + + ".v1.TargetTcpProxiesSetBackendServiceReq" + + "uestB\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\032SetBackupTargetP" + + "oolRequest\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\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\001\210\001\001\022\033\n\013target_pool\030\212\344\370\035 \001" + + "(\tB\003\340A\002\022T\n\031target_reference_resource\030\360\267\335" + + "\371\001 \001(\0132(.google.cloud.compute.v1.TargetR" + + "eferenceB\003\340A\002B\021\n\017_failover_ratioB\r\n\013_req" + + "uest_id\"\256\002\n(SetCertificateMapTargetHttps" + + "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\217\001\n9" + + "target_https_proxies_set_certificate_map" + + "_request_resource\030\273\266\376\336\001 \001(\0132C.google.clo" + + "ud.compute.v1.TargetHttpsProxiesSetCerti" + + "ficateMapRequestB\003\340A\002\022\"\n\022target_https_pr" + + "oxy\030\354\260\372\030 \001(\tB\003\340A\002B\r\n\013_request_id\"\247\002\n&Set" + + "CertificateMapTargetSslProxyRequest\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\213\001\n7target_ssl_proxie" + + "s_set_certificate_map_request_resource\030\272" + + "\226\203\244\001 \001(\0132A.google.cloud.compute.v1.Targe" + + "tSslProxiesSetCertificateMapRequestB\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\037SetCloudArmorTierProjectR" + + "equest\022!\n\007project\030\231\226\301l \001(\tB\r\340A\002\362G\007projec" + + "t\022y\n.projects_set_cloud_armor_tier_reque" + + "st_resource\030\317\373\336$ \001(\01329.google.cloud.comp" + + "ute.v1.ProjectsSetCloudArmorTierRequestB" + "\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" + + "uest_id\"\214\003\n*SetCommonInstanceMetadataOpe" + + "rationMetadata\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^.google.cloud.compute.v1.Set" + + "CommonInstanceMetadataOperationMetadata." + + "PerLocationOperationsEntry\032\231\001\n\032PerLocati" + + "onOperationsEntry\022\013\n\003key\030\001 \001(\t\022j\n\005value\030" + + "\002 \001(\0132[.google.cloud.compute.v1.SetCommo" + + "nInstanceMetadataOperationMetadataPerLoc" + + "ationOperationInfo:\0028\001B\026\n\024_client_operat" + + "ion_id\"\262\002\nBSetCommonInstanceMetadataOper" + + "ationMetadataPerLocationOperationInfo\0226\n" + + "\005error\030\210\244\223. \001(\0132\037.google.cloud.compute.v" + + "1.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\017UNDEFINED_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\nPR" + + "OPAGATED\020\333\264\202\362\001\022\022\n\013PROPAGATING\020\206\203\313N\022\023\n\013UN" + + "SPECIFIED\020\227\276\230\373\001B\010\n\006_errorB\010\n\006_state\"\276\001\n\'" + + "SetCommonInstanceMetadataProjectRequest\022" + + "E\n\021metadata_resource\030\236\276\346\212\001 \001(\0132!.google." + + "cloud.compute.v1.MetadataB\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" + + "\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_request_id\"\367\001\n#SetDefa" + + "ultNetworkTierProjectRequest\022!\n\007project\030" + + "\231\226\301l \001(\tB\r\340A\002\362G\007project\022\201\001\n2projects_set" + + "_default_network_tier_request_resource\030\212" + + "\300\243< \001(\0132=.google.cloud.compute.v1.Projec" + + "tsSetDefaultNetworkTierRequestB\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\"\351" + + "\001\n$SetDeletionProtectionInstanceRequest\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\007project\022\032\n\nrequ" + + "est_id\030\313\201\331\021 \001(\tH\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_protectionB\r\n\013_request_id\"\342\001\n S" + + "etDiskAutoDeleteInstanceRequest\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(\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\"\377\001\n)SetEdgeSecur" + + "ityPolicyBackendBucketRequest\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\007project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH" + + "\000\210\001\001\022d\n\"security_policy_reference_resour" + + "ce\030\360\264\253a \001(\01320.google.cloud.compute.v1.Se" + + "curityPolicyReferenceB\003\340A\002B\r\n\013_request_i" + + "d\"\202\002\n*SetEdgeSecurityPolicyBackendServic" + + "eRequest\022 \n\017backend_service\030\212\300\256\222\001 \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\022d\n\"security_po" + + "licy_reference_resource\030\360\264\253a \001(\01320.googl" + + "e.cloud.compute.v1.SecurityPolicyReferen" + + "ceB\003\340A\002B\r\n\013_request_id\"\273\001\n SetIamPolicyB" + + "ackendBucketRequest\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\"\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\"\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" + + "\210\257] \001(\tB\003\340A\002\"\274\001\n!SetIamPolicyBackendServ" + + "iceRequest\022d\n\"global_set_policy_request_" + + "resource\030\262\347\333\240\001 \001(\0132/.google.cloud.comput" + + "e.v1.GlobalSetPolicyRequestB\003\340A\002\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\"\324\001\n!SetIamPolicyResourcePolicyReques" + + "\340A\002\"\304\001\n\027SetIamPolicyDiskRequest\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\"\273\001\n!SetIamPolicyFirewallPolicyRequest" + + "\022|\n/global_organization_set_policy_reque" + + "st_resource\030\336\224\314T \001(\0132;.google.cloud.comp" + + "ute.v1.GlobalOrganizationSetPolicyReques" + + "tB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\"\263\001\n\030Set" + + "IamPolicyImageRequest\022d\n\"global_set_poli" + + "cy_request_resource\030\262\347\333\240\001 \001(\0132/.google.c" + + "loud.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\033SetIamPolicyInstanceR" + + "equest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\030\n\010resou" + + "rce\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.ZoneSetP" + + "olicyRequestB\003\340A\002\"\276\001\n#SetIamPolicyInstan" + + "ceTemplateRequest\022d\n\"global_set_policy_r" + + "equest_resource\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\"\317\001\n\"SetIamPolicyInstantSnapsh" + + "otRequest\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\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340" + + "A\002\022`\n zone_set_policy_request_resource\030\273" + + "\270\230\266\001 \001(\0132-.google.cloud.compute.v1.ZoneS" + + "etPolicyRequestB\003\340A\002\"\265\001\n\032SetIamPolicyLic" + + "enseRequest\022d\n\"global_set_policy_request" + + "_resource\030\262\347\333\240\001 \001(\0132/.google.cloud.compu" + + "te.v1.GlobalSetPolicyRequestB\003\340A\002\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\"\272\001\n\037SetIamPolicyMachineImageRequest" + + "\022d\n\"global_set_policy_request_resource\030\262" + + "\347\333\240\001 \001(\0132/.google.cloud.compute.v1.Globa" + + "lSetPolicyRequestB\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\"\327\001\n$Se" + + "tIamPolicyNetworkAttachmentRequest\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\"\303\001\n(SetIamPolicyNetworkFirew" + + "allPolicyRequest\022d\n\"global_set_policy_re" + + "quest_resource\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\"\311\001\n\034SetIamPolicyNodeGroupReque" + + "st\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 z" + + "one_set_policy_request_resource\030\273\270\230\266\001 \001(" + + "\0132-.google.cloud.compute.v1.ZoneSetPolic" + + "yRequestB\003\340A\002\"\322\001\n\037SetIamPolicyNodeTempla" + + "teRequest\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\022d\n\"region_set_policy_" + + "request_resource\030\203\307\353\203\001 \001(\0132/.google.clou" + + "d.compute.v1.RegionSetPolicyRequestB\003\340A\002" + + "\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\"\332\001\n\'SetIamPol" + + "icyRegionBackendServiceRequest\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" + + "d\n\"region_set_policy_request_resource\030\203\307" + + "\353\203\001 \001(\0132/.google.cloud.compute.v1.Region" + + "SetPolicyRequestB\003\340A\002\022\030\n\010resource\030\216\210\257] \001" + + "(\tB\003\340A\002\"\320\001\n\035SetIamPolicyRegionDiskReques" + "t\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\022d\n\"region_set_policy_request_" + "resource\030\203\307\353\203\001 \001(\0132/.google.cloud.comput" + "e.v1.RegionSetPolicyRequestB\003\340A\002\022\030\n\010reso" - + "urce\030\216\210\257] \001(\tB\003\340A\002\"\327\001\n$SetIamPolicyServi" - + "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\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\"\266\001\n" - + "\033SetIamPolicySnapshotRequest\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\"\313\001\n\036SetIamPolicySt" - + "oragePoolRequest\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\"\320\001\n\035SetIamPo" - + "licySubnetworkRequest\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_resource\030\203\307\353\203\001 \001(\0132/" - + ".google.cloud.compute.v1.RegionSetPolicy" - + "RequestB\003\340A\002\022\030\n\010resource\030\216\210\257] \001(\tB\003\340A\002\"\336" - + "\002\n.SetInstanceTemplateInstanceGroupManag" - + "erRequest\022&\n\026instance_group_manager\030\303\367\363v" - + " \001(\tB\003\340A\002\022\230\001\n>instance_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" - + "instance_group_managers_set_instanc" + + "e_template_request_resource\030\305\331\326\004 \001(\0132H.g" + + "oogle.cloud.compute.v1.InstanceGroupMana" + + "gersSetInstanceTemplateRequestB\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\"\344\002\n4SetInstanceTe" + + "mplateRegionInstanceGroupManagerRequest\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\224\001\n.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\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" + + "est_id\"\205\002\n\026SetNameInstanceRequest\022\030\n\010ins" + + "tance\030\225\251\332\010 \001(\tB\003\340A\002\022f\n#instances_set_nam" + + "e_request_resource\030\324\300\336\201\001 \001(\01320.google.cl" + + "oud.compute.v1.InstancesSetNameRequestB\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\"\256\002\n!SetNa" + + "medPortsInstanceGroupRequest\022\036\n\016instance" + + "_group\030\325\324\325& \001(\tB\003\340A\002\022~\n0instance_groups_" + + "set_named_ports_request_resource\030\257\344\323\267\001 \001" + + "(\0132;.google.cloud.compute.v1.InstanceGro" + + "upsSetNamedPortsRequestB\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\"\304\002\n\'SetNamedPortsRegionI" + + "nstanceGroupRequest\022\036\n\016instance_group\030\325\324" + + "\325& \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" + + "\211\001\n7region_instance_groups_set_named_por" + + "ts_request_resource\030\232\220` \001(\0132A.google.clo" + + "ud.compute.v1.RegionInstanceGroupsSetNam" + + "edPortsRequestB\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\037SetNodeTempla" + + "teNodeGroupRequest\022\033\n\nnode_group\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.google.clou" + + "d.compute.v1.NodeGroupsSetNodeTemplateRe" + + "questB\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\"\311\002" + + "\n)SetPrivateIpGoogleAccessSubnetworkRequ" + + "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\033\n\nsubnetwork\030\356\247\344\222\001 " + + "\001(\tB\003\340A\002\022\217\001\n9subnetworks_set_private_ip_" + + "google_access_request_resource\030\370\316\235\200\001 \001(\013" + + "2C.google.cloud.compute.v1.SubnetworksSe" + + "tPrivateIpGoogleAccessRequestB\003\340A\002B\r\n\013_r" + + "equest_id\"\235\002\n#SetProxyHeaderTargetSslPro" + + "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\204\001\n4tar" + + "get_ssl_proxies_set_proxy_header_request" + + "_resource\030\256\311\361a \001(\0132>.google.cloud.comput" + + "e.v1.TargetSslProxiesSetProxyHeaderReque" + + "stB\003\340A\002\022!\n\020target_ssl_proxy\030\315\272\306\241\001 \001(\tB\003\340" + + "A\002B\r\n\013_request_id\"\235\002\n#SetProxyHeaderTarg" + + "etTcpProxyRequest\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\204\001\n4target_tcp_proxies_set_proxy_header" + + "_request_resource\030\303\230\361h \001(\0132>.google.clou" + + "d.compute.v1.TargetTcpProxiesSetProxyHea" + + "derRequestB\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&SetQuicOve" + + "rrideTargetHttpsProxyRequest\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\212\001\n7target_https_proxies_set" + + "_quic_override_request_resource\030\342\365\343\" \001(\013" + + "2A.google.cloud.compute.v1.TargetHttpsPr" + + "oxiesSetQuicOverrideRequestB\003\340A\002\022\"\n\022targ" + + "et_https_proxy\030\354\260\372\030 \001(\tB\003\340A\002B\r\n\013_request" + + "_id\"\356\001\n\034SetSchedulingInstanceRequest\022\030\n\010" + + "instance\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(\t" + + "H\000\210\001\001\022I\n\023scheduling_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_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\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\"\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\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_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\"\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\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" + + "t_id\"\376\001\n&SetSecurityPolicyBackendService" + + "Request\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\032\n\n" + + "request_id\030\313\201\331\021 \001(\tH\000\210\001\001\022d\n\"security_pol" + + "icy_reference_resource\030\360\264\253a \001(\01320.google" + + ".cloud.compute.v1.SecurityPolicyReferenc" + + "eB\003\340A\002B\r\n\013_request_id\"\243\002\n SetSecurityPol" + + "icyInstanceRequest\022\030\n\010instance\030\225\251\332\010 \001(\tB" + + "\003\340A\002\022z\n.instances_set_security_policy_re" + + "quest_resource\030\212\321\272v \001(\0132:.google.cloud.c" + + "ompute.v1.InstancesSetSecurityPolicyRequ" + + "estB\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\022\033\n\004zone\030" + + "\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id\"\245\002\n," + + "SetSecurityPolicyRegionBackendServiceReq" + + "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\001\022d\n\"security_policy_refere" + + "nce_resource\030\360\264\253a \001(\01320.google.cloud.com" + + "pute.v1.SecurityPolicyReferenceB\003\340A\002B\r\n\013" + + "_request_id\"\233\002\n&SetSecurityPolicyTargetI" + + "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\022d\n" + + "\"security_policy_reference_resource\030\360\264\253a" + + " \001(\01320.google.cloud.compute.v1.SecurityP" + + "olicyReferenceB\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\004zo" + + "neB\r\n\013_request_id\"\226\002\n\"SetSecurityPolicyT" + + "argetPoolRequest\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\001\022d\n\"secu" + + "rity_policy_reference_resource\030\360\264\253a \001(\0132" + + "0.google.cloud.compute.v1.SecurityPolicy" + + "ReferenceB\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 SetServiceAccount" + + "InstanceRequest\022\030\n\010instance\030\225\251\332\010 \001(\tB\003\340A" + + "\002\022{\n.instances_set_service_account_reque" + + "st_resource\030\270\236\262\203\001 \001(\0132:.google.cloud.com" + + "pute.v1.InstancesSetServiceAccountReques" + + "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\"\260\002\n1Se" + + "tShieldedInstanceIntegrityPolicyInstance" + + "Request\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\022v\n+shielded_instance_in" + + "tegrity_policy_resource\030\266\334\215\303\001 \001(\01328.goog" + + "le.cloud.compute.v1.ShieldedInstanceInte" + + "grityPolicyB\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/SetSslCertifica" + + "tesRegionTargetHttpsProxyRequest\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\236\001\nAregion_target_h" + + "ttps_proxies_set_ssl_certificates_reques" + + "t_resource\030\207\204\246\272\001 \001(\0132J.google.cloud.comp" + + "ute.v1.RegionTargetHttpsProxiesSetSslCer" + + "tificatesRequestB\003\340A\002\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(\t" + + "B\003\340A\002B\r\n\013_request_id\"\260\002\n)SetSslCertifica" + + "tesTargetHttpsProxyRequest\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\220\001\n:target_https_proxies_set_s" + + "sl_certificates_request_resource\030\334\253\262j \001(" + + "\0132D.google.cloud.compute.v1.TargetHttpsP" + + "roxiesSetSslCertificatesRequestB\003\340A\002\022\"\n\022" + + "target_https_proxy\030\354\260\372\030 \001(\tB\003\340A\002B\r\n\013_req" + + "uest_id\"\251\002\n\'SetSslCertificatesTargetSslP" + + "roxyRequest\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\214\001\n8t" + + "arget_ssl_proxies_set_ssl_certificates_r" + + "equest_resource\030\275\313\305F \001(\0132B.google.cloud." + + "compute.v1.TargetSslProxiesSetSslCertifi" + + "catesRequestB\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#SetSslPo" + + "licyTargetHttpsProxyRequest\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" + + "\021 \001(\tH\000\210\001\001\022Z\n\035ssl_policy_reference_resou" + + "rce\030\274\364\237p \001(\0132+.google.cloud.compute.v1.S" + + "slPolicyReferenceB\003\340A\002\022\"\n\022target_https_p" + + "roxy\030\354\260\372\030 \001(\tB\003\340A\002B\r\n\013_request_id\"\360\001\n!Se" + + "tSslPolicyTargetSslProxyRequest\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\022Z\n\035ssl_policy_reference_r" + + "esource\030\274\364\237p \001(\0132+.google.cloud.compute." + + "v1.SslPolicyReferenceB\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" + + "\026SetTagsInstanceRequest\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\007pro" + + "ject\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.cloud.compu" + + "te.v1.TagsB\003\340A\002\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004" + + "zoneB\r\n\013_request_id\"\207\002\n\036SetTargetForward" + + "ingRuleRequest\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\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\022T\n\031target_refer" + + "ence_resource\030\360\267\335\371\001 \001(\0132(.google.cloud.c" + + "ompute.v1.TargetReferenceB\003\340A\002B\r\n\013_reque" + + "st_id\"\354\001\n$SetTargetGlobalForwardingRuleR" + + "equest\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\032\n\nr" + + "equest_id\030\313\201\331\021 \001(\tH\000\210\001\001\022T\n\031target_refere" + + "nce_resource\030\360\267\335\371\001 \001(\0132(.google.cloud.co" + + "mpute.v1.TargetReferenceB\003\340A\002B\r\n\013_reques" + + "t_id\"\320\002\n)SetTargetPoolsInstanceGroupMana" + + "gerRequest\022&\n\026instance_group_manager\030\303\367\363" + + "v \001(\tB\003\340A\002\022\217\001\n9instance_group_managers_s" + + "et_target_pools_request_resource\030\210\206\210\206\001 \001" + + "(\0132C.google.cloud.compute.v1.InstanceGro" + + "upManagersSetTargetPoolsRequestB\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\"\346\002\n/SetTargetPoo" + + "lsRegionInstanceGroupManagerRequest\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\233\001\n@region_insta" + + "nce_group_managers_set_target_pools_requ" + + "est_resource\030\375\312\305% \001(\0132I.google.cloud.com" + + "pute.v1.RegionInstanceGroupManagersSetTa" + + "rgetPoolsRequestB\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%SetUrlMapRe" + + "gionTargetHttpProxyRequest\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!\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.UrlMapReferenceB" + + "\003\340A\002B\r\n\013_request_id\"\222\002\n&SetUrlMapRegionT" + + "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\022U\n\032ur" + + "l_map_reference_resource\030\225\346\216\276\001 \001(\0132(.goo" + + "gle.cloud.compute.v1.UrlMapReferenceB\003\340A" + + "\002B\r\n\013_request_id\"\351\001\n\037SetUrlMapTargetHttp" + + "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\021t" + + "arget_http_proxy\030\345\276\322b \001(\tB\003\340A\002\022U\n\032url_ma" + + "p_reference_resource\030\225\346\216\276\001 \001(\0132(.google." + + "cloud.compute.v1.UrlMapReferenceB\003\340A\002B\r\n" + + "\013_request_id\"\353\001\n SetUrlMapTargetHttpsPro" + + "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\002\022U\n\032url_map_" + + "reference_resource\030\225\346\216\276\001 \001(\0132(.google.cl" + + "oud.compute.v1.UrlMapReferenceB\003\340A\002B\r\n\013_" + + "request_id\"\320\001\n\"SetUsageExportBucketProje" + + "ctRequest\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\036usag" + + "e_export_location_resource\030\353\314\324\t \001(\0132,.go" + + "ogle.cloud.compute.v1.UsageExportLocatio" + + "nB\003\340A\002B\r\n\013_request_id\"\372\002\n\rShareSettings\022" + + "N\n\013project_map\030\266\326\377? \003(\01326.google.cloud.c" + + "ompute.v1.ShareSettings.ProjectMapEntry\022" + + "\033\n\nshare_type\030\232\227\270\253\001 \001(\tH\000\210\001\001\032f\n\017ProjectM" + + "apEntry\022\013\n\003key\030\001 \001(\t\022B\n\005value\030\002 \001(\01323.go" + + "ogle.cloud.compute.v1.ShareSettingsProje" + + "ctConfig:\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\014ORGANIZATI" + + "ON\020\263\252\217\203\001\022\036\n\026SHARE_TYPE_UNSPECIFIED\020\222\274\366\353\001" + + "\022\031\n\021SPECIFIC_PROJECTS\020\347\261\356\245\001B\r\n\013_share_ty" + + "pe\"G\n\032ShareSettingsProjectConfig\022\032\n\nproj" + + "ect_id\030\201\310\322T \001(\tH\000\210\001\001B\r\n\013_project_id\"\316\001\n\026" + + "ShieldedInstanceConfig\022,\n\033enable_integri" + + "ty_monitoring\030\266\333\207\303\001 \001(\010H\000\210\001\001\022\"\n\022enable_s" + + "ecure_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_monit" + + "oringB\025\n\023_enable_secure_bootB\016\n\014_enable_" + + "vtpm\"\213\002\n\030ShieldedInstanceIdentity\022W\n\016enc" + + "ryption_key\030\243\307\351\350\001 \001(\01326.google.cloud.com" + + "pute.v1.ShieldedInstanceIdentityEntryH\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.google.cloud.compute.v1.Shie" + + "ldedInstanceIdentityEntryH\002\210\001\001B\021\n\017_encry" + + "ption_keyB\007\n\005_kindB\016\n\014_signing_key\"i\n\035Sh" + + "ieldedInstanceIdentityEntry\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\037ShieldedInstanc" + + "eIntegrityPolicy\022(\n\030update_auto_learn_po" + + "licy\030\247\304\207u \001(\010H\000\210\001\001B\033\n\031_update_auto_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\'SimulateMa" + + "intenanceEventInstanceRequest\022\030\n\010instanc" + + "e\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\004zoneB\r\n\013_re" + + "quest_idB\036\n\034_with_extended_notifications" + + "\"\301\002\n(SimulateMaintenanceEventNodeGroupRe" + + "quest\022\033\n\nnode_group\030\202\374\213\340\001 \001(\tB\003\340A\002\022\214\001\n7n" + + "ode_groups_simulate_maintenance_event_re" + + "quest_resource\030\334\371\313\247\001 \001(\0132B.google.cloud." + + "compute.v1.NodeGroupsSimulateMaintenance" + + "EventRequestB\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\"\237\024\n\010Snapshot\022\035\n\014architecture\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\023creation_" + + "size_bytes\030\215\350\345; \001(\003H\003\210\001\001\022\"\n\022creation_tim" + + "estamp\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\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\033en" + + "able_confidential_compute\030\274\353\3310 \001(\010H\010\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\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\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\rsa" + + "tisfies_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\027snapshot_encryption_key\030\376\366\324\024 \001" + + "(\0132..google.cloud.compute.v1.CustomerEnc" + + "ryptionKeyH\021\210\001\001\022\035\n\rsnapshot_type\030\325\331\245; \001(" + + "\tH\022\210\001\001\022\034\n\013source_disk\030\301\356\264\327\001 \001(\tH\023\210\001\001\022[\n\032" + + "source_disk_encryption_key\030\341\240\270\375\001 \001(\0132..g" + + "oogle.cloud.compute.v1.CustomerEncryptio" + + "nKeyH\024\210\001\001\0224\n#source_disk_for_recovery_ch" + + "eckpoint\030\376\341\312\253\001 \001(\tH\025\210\001\001\022\037\n\016source_disk_i" + + "d\030\331\315\311\330\001 \001(\tH\026\210\001\001\022\'\n\027source_instant_snaps" + + "hot\030\206\204\303h \001(\tH\027\210\001\001\022g\n&source_instant_snap" + + "shot_encryption_key\030\374\205\224\320\001 \001(\0132..google.c" + + "loud.compute.v1.CustomerEncryptionKeyH\030\210" + + "\001\001\022+\n\032source_instant_snapshot_id\030\364\323\220\211\001 \001" + + "(\tH\031\210\001\001\022/\n\037source_snapshot_schedule_poli" + + "cy\030\203\266\265p \001(\tH\032\210\001\001\0222\n\"source_snapshot_sche" + + "dule_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\013La" + + "belsEntry\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_ARCHITECT" + + "URE\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\"N\n\014Snapsho" + + "tType\022\033\n\027UNDEFINED_SNAPSHOT_TYPE\020\000\022\017\n\007AR" + + "CHIVE\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\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\020\n\tUPLOADING\020\241\234\315\177\"]\n\022StorageByte" + + "sStatus\022\"\n\036UNDEFINED_STORAGE_BYTES_STATU" + + "S\020\000\022\020\n\010UPDATING\020\306\356\354\353\001\022\021\n\nUP_TO_DATE\020\316\242\2470" + + "B\017\n\r_architectureB\017\n\r_auto_createdB\r\n\013_c" + + "hain_nameB\026\n\024_creation_size_bytesB\025\n\023_cr" + + "eation_timestampB\016\n\014_descriptionB\017\n\r_dis" + + "k_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_satisfies_pz" + + "sB\014\n\n_self_linkB\032\n\030_snapshot_encryption_" + + "keyB\020\n\016_snapshot_typeB\016\n\014_source_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_snapshotB)\n\'_" + + "source_instant_snapshot_encryption_keyB\035" + + "\n\033_source_instant_snapshot_idB\"\n _source" + + "_snapshot_schedule_policyB%\n#_source_sna" + + "pshot_schedule_policy_idB\t\n\007_statusB\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\005ite" + + "ms\030\300\317\367/ \003(\0132!.google.cloud.compute.v1.Sn" + + "apshot\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\"\214\001\n\020SnapshotSettings\022c\n\020stora" + + "ge_location\030\371\321\340\333\001 \001(\0132@.google.cloud.com" + + "pute.v1.SnapshotSettingsStorageLocationS" + + "ettingsH\000\210\001\001B\023\n\021_storage_location\"\336\003\n\'Sn" + + "apshotSettingsStorageLocationSettings\022f\n", + "\tlocations\030\336\256\221\305\001 \003(\0132O.google.cloud.comp" + + "ute.v1.SnapshotSettingsStorageLocationSe" + + "ttings.LocationsEntry\022\026\n\006policy\030\262\312\266+ \001(\t" + + "H\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.compute.v1.S" + + "napshotSettingsStorageLocationSettingsSt" + + "orageLocationPreference:\0028\001\"\231\001\n\006Policy\022\024" + + "\n\020UNDEFINED_POLICY\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\022SPECI" + + "FIC_LOCATIONS\020\361\310\307\205\001\022*\n#STORAGE_LOCATION_" + + "POLICY_UNSPECIFIED\020\360\220\302wB\t\n\007_policy\"a\n@Sn" + + "apshotSettingsStorageLocationSettingsSto" + + "rageLocationPreference\022\024\n\004name\030\213\365\315\001 \001(\tH" + + "\000\210\001\001B\007\n\005_name\"\265\001\n\027SourceDiskEncryptionKe" + + "y\022T\n\023disk_encryption_key\030\205\355\304\201\001 \001(\0132..goo" + + "gle.cloud.compute.v1.CustomerEncryptionK" + + "eyH\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_source_disk\"a\n" + + "\024SourceInstanceParams\022I\n\014disk_configs\030\317\331" + + "\252p \003(\01320.google.cloud.compute.v1.DiskIns" + + "tantiationConfig\"\361\010\n\030SourceInstancePrope" + + "rties\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(\010H\001\210\001\001\022\034\n\013" + + "description\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.SavedAtta" + + "chedDisk\022J\n\022guest_accelerators\030\357\314\207\335\001 \003(\013" + + "2*.google.cloud.compute.v1.AcceleratorCo" + + "nfig\022*\n\032key_revocation_action_type\030\342\334\300p " + + "\001(\tH\003\210\001\001\022Q\n\006labels\030\377\277\301\356\001 \003(\0132=.google.cl" + + "oud.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.co" + + "mpute.v1.MetadataH\005\210\001\001\022 \n\020min_cpu_platfo" + + "rm\030\367\233\352s \001(\tH\006\210\001\001\022H\n\022network_interfaces\030\213" + + "\332\222\031 \003(\0132).google.cloud.compute.v1.Networ" + + "kInterface\022@\n\nscheduling\030\224\313\261\270\001 \001(\0132#.goo" + + "gle.cloud.compute.v1.SchedulingH\007\210\001\001\022E\n\020" + + "service_accounts\030\260\304\253\204\001 \003(\0132\'.google.clou" + + "d.compute.v1.ServiceAccount\0223\n\004tags\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\027KeyRevocationActionType\022(\n$U" + + "NDEFINED_KEY_REVOCATION_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\001B\021\n\017_can_" + + "ip_forwardB\026\n\024_deletion_protectionB\016\n\014_d" + + "escriptionB\035\n\033_key_revocation_action_typ" + + "eB\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" + + "\016SslCertificate\022\034\n\013certificate\030\227\203\375\242\001 \001(\t" + + "H\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\013expir" + + "e_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.cloud.compute.v1.SslCertific" + + "ateManagedSslCertificateH\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.SslCertificate" + + "SelfManagedSslCertificateH\013\210\001\001\022%\n\031subjec" + + "t_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_UNSPECIFIED\020\222\373\333\320\001B\016\n\014_certificate" + + "B\025\n\023_creation_timestampB\016\n\014_descriptionB" + + "\016\n\014_expire_timeB\005\n\003_idB\007\n\005_kindB\n\n\010_mana" + + "gedB\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\034SslCertificateAggregatedList\022\020\n\002id\030\233" + + "\032 \001(\tH\000\210\001\001\022R\n\005items\030\300\317\367/ \003(\0132@.google.cl" + + "oud.compute.v1.SslCertificateAggregatedL" + + "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\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\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.TargetHttpsProx" - + "y\022\024\n\004kind\030\224\367\310\001 \001(\tH\001\210\001\001\022\037\n\017next_page_tok" + + "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\022A\n\005value\030\002 \001(\01322.google.cloud.c" + + "ompute.v1.SslCertificatesScopedList:\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\022SslCertificate" + + "List\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0229\n\005items\030\300\317\367/ \003(\013" + + "2\'.google.cloud.compute.v1.SslCertificat" + + "e\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\"\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" + + "rning\"\320\003\n#SslCertificateManagedSslCertif" + + "icate\022i\n\rdomain_status\030\315\247\347\253\001 \003(\0132N.googl" + + "e.cloud.compute.v1.SslCertificateManaged" + + "SslCertificate.DomainStatusEntry\022\022\n\007doma" + + "ins\030\257\210\233l \003(\t\022\026\n\006status\030\362\237\267V \001(\tH\000\210\001\001\0323\n\021" + + "DomainStatusEntry\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\020UNDEFINED_STATUS" + + "\020\000\022\016\n\006ACTIVE\020\206\346\211\226\001\022.\n&MANAGED_CERTIFICAT" + + "E_STATUS_UNSPECIFIED\020\322\305\263\342\001\022\024\n\014PROVISIONI" + + "NG\020\355\365\332\212\001\022\032\n\023PROVISIONING_FAILED\020\317\253\320$\022\'\n\037" + + "PROVISIONING_FAILED_PERMANENTLY\020\253\360\222\203\001\022\026\n" + + "\016RENEWAL_FAILED\020\204\276\241\317\001B\t\n\007_status\"\205\001\n\'Ssl" + + "CertificateSelfManagedSslCertificate\022\034\n\013" + + "certificate\030\227\203\375\242\001 \001(\tH\000\210\001\001\022\034\n\013private_ke" + + "y\030\243\363\245\254\001 \001(\tH\001\210\001\001B\016\n\014_certificateB\016\n\014_pri" + + "vate_key\"\251\001\n\031SslCertificatesScopedList\022E" + + "\n\020ssl_certificates\030\217\242\303\256\001 \003(\0132\'.google.cl" + + "oud.compute.v1.SslCertificate\0229\n\007warning" + + "\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1.Warn" + + "ingH\000\210\001\001B\n\n\010_warning\"\340\003\n\031SslPoliciesAggr" + + "egatedList\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.cl" + + "oud.compute.v1.SslPoliciesAggregatedList" + + ".ItemsEntry\022\024\n\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n\017nex" + + "t_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\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" + + "te.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.comp" + + "ute.v1.SslPoliciesScopedList:\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\"\245\002\n\017SslPoliciesL" + + "ist\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\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\"" + + "?\n(SslPoliciesListAvailableFeaturesRespo" + + "nse\022\023\n\010features\030\275\310\263u \003(\t\"\233\001\n\025SslPolicies" + + "ScopedList\022;\n\014ssl_policies\030\243\344\215d \003(\0132\".go" + + "ogle.cloud.compute.v1.SslPolicy\0229\n\007warni" + + "ng\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1.Wa" + + "rningH\000\210\001\001B\n\n\010_warning\"\331\005\n\tSslPolicy\022\"\n\022" + + "creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\032\n\017cust" + + "om_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\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!.google.cloud.c" + + "ompute.v1.Warnings\"^\n\rMinTlsVersion\022\035\n\031U" + + "NDEFINED_MIN_TLS_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\007Pr" + + "ofile\022\025\n\021UNDEFINED_PROFILE\020\000\022\021\n\nCOMPATIB" + + "LE\020\324\215\303U\022\016\n\006CUSTOM\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_timestamp" + + "B\016\n\014_descriptionB\016\n\014_fingerprintB\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_link\"@\n\022Ss" + + "lPolicyReference\022\033\n\nssl_policy\030\305\375\340\214\001 \001(\t" + + "H\000\210\001\001B\r\n\013_ssl_policy\"\240\002\n StartAsyncRepli" + + "cationDiskRequest\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.compu" + + "te.v1.DisksStartAsyncReplicationRequestB" + + "\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\"\270\002\n&Star" + + "tAsyncReplicationRegionDiskRequest\022\024\n\004di" + + "sk\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\006re" + + "gion\022\210\001\n5region_disks_start_async_replic" + + "ation_request_resource\030\205\310\226\342\001 \001(\0132@.googl" + + "e.cloud.compute.v1.RegionDisksStartAsync" + + "ReplicationRequestB\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\024StartInst" + + "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\"\316\002\n)StartInstan" + + "cesInstanceGroupManagerRequest\022&\n\026instan" + + "ce_group_manager\030\303\367\363v \001(\tB\003\340A\002\022\215\001\n8insta" + + "nce_group_managers_start_instances_reque" + + "st_resource\030\253\245\277| \001(\0132C.google.cloud.comp" + + "ute.v1.InstanceGroupManagersStartInstanc" + + "esRequestB\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\"\346\002\n/StartInstancesRegionInstanceGroupM" + + "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\233\001\n?region_instance_group_managers_sta" + + "rt_instances_request_resource\030\226\233\377\354\001 \001(\0132" + + "I.google.cloud.compute.v1.RegionInstance" + + "GroupManagersStartInstancesRequestB\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%StartWithEncryptionKeyInstanceReq" + + "uest\022\030\n\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022\206\001\n4insta" + + "nces_start_with_encryption_key_request_r" + + "esource\030\377\376\317\322\001 \001(\0132?.google.cloud.compute" + + ".v1.InstancesStartWithEncryptionKeyReque" + + "stB\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\033\n\004zone\030\254" + + "\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id\"|\n\016St" + + "atefulPolicy\022V\n\017preserved_state\030\252\342\240\001 \001(\013" + + "25.google.cloud.compute.v1.StatefulPolic" + + "yPreservedStateH\000\210\001\001B\022\n\020_preserved_state" + + "\"\216\005\n\034StatefulPolicyPreservedState\022R\n\005dis" + + "ks\030\366\314\312- \003(\0132@.google.cloud.compute.v1.St" + + "atefulPolicyPreservedState.DisksEntry\022a\n" + + "\rexternal_i_ps\030\215\323\200\376\001 \003(\0132F.google.cloud." + + "compute.v1.StatefulPolicyPreservedState." + + "ExternalIPsEntry\022`\n\rinternal_i_ps\030\333\233\357f \003" + + "(\0132F.google.cloud.compute.v1.StatefulPol" + + "icyPreservedState.InternalIPsEntry\032m\n\nDi" + + "sksEntry\022\013\n\003key\030\001 \001(\t\022N\n\005value\030\002 \001(\0132?.g" + + "oogle.cloud.compute.v1.StatefulPolicyPre" + + "servedStateDiskDevice:\0028\001\032r\n\020ExternalIPs" + + "Entry\022\013\n\003key\030\001 \001(\t\022M\n\005value\030\002 \001(\0132>.goog" + + "le.cloud.compute.v1.StatefulPolicyPreser" + + "vedStateNetworkIp:\0028\001\032r\n\020InternalIPsEntr" + + "y\022\013\n\003key\030\001 \001(\t\022M\n\005value\030\002 \001(\0132>.google.c" + + "loud.compute.v1.StatefulPolicyPreservedS" + + "tateNetworkIp:\0028\001\"\264\001\n&StatefulPolicyPres" + + "ervedStateDiskDevice\022\034\n\013auto_delete\030\273\344\316\335" + + "\001 \001(\tH\000\210\001\001\"\\\n\nAutoDelete\022\031\n\025UNDEFINED_AU" + + "TO_DELETE\020\000\022\014\n\005NEVER\020\354\244\257#\022%\n\036ON_PERMANEN" + + "T_INSTANCE_DELETION\020\347\340\322-B\016\n\014_auto_delete" + + "\"\263\001\n%StatefulPolicyPreservedStateNetwork" + + "Ip\022\034\n\013auto_delete\030\273\344\316\335\001 \001(\tH\000\210\001\001\"\\\n\nAuto" + + "Delete\022\031\n\025UNDEFINED_AUTO_DELETE\020\000\022\014\n\005NEV" + + "ER\020\354\244\257#\022%\n\036ON_PERMANENT_INSTANCE_DELETIO" + + "N\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.go" + + "ogle.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\037StopAsyncRe" + + "plicationDiskRequest\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\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\"\254\001\n%StopAs" + + "yncReplicationRegionDiskRequest\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\006regio" + + "n\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\000\210\001\001B\r\n\013_reques" + + "t_id\"\232\002\n$StopGroupAsyncReplicationDiskRe" + + "quest\022\206\001\n4disks_stop_group_async_replica" + + "tion_resource_resource\030\225\370\257\245\001 \001(\0132?.googl" + + "e.cloud.compute.v1.DisksStopGroupAsyncRe" + + "plicationResourceB\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\"\244\002\n*StopGroupAsyncReplicationR" + + "egionDiskRequest\022\206\001\n4disks_stop_group_as" + + "ync_replication_resource_resource\030\225\370\257\245\001 " + + "\001(\0132?.google.cloud.compute.v1.DisksStopG" + + "roupAsyncReplicationResourceB\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\"\324\001\n\023StopInstanc" + + "eRequest\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\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\001\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zo" + + "neB\024\n\022_discard_local_ssdB\r\n\013_request_id\"" + + "\313\002\n(StopInstancesInstanceGroupManagerReq" + + "uest\022&\n\026instance_group_manager\030\303\367\363v \001(\tB" + + "\003\340A\002\022\213\001\n7instance_group_managers_stop_in" + + "stances_request_resource\030\215\245\364\021 \001(\0132B.goog" + + "le.cloud.compute.v1.InstanceGroupManager" + + "sStopInstancesRequestB\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\"\343\002\n.StopInstancesRegionIns" + + "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\231\001\n>region_instance_group_m" + + "anagers_stop_instances_request_resource\030" + + "\302\234\362\200\001 \001(\0132H.google.cloud.compute.v1.Regi" + + "onInstanceGroupManagersStopInstancesRequ" + + "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\"\205\013\n\013StoragePool\022*\n\032capacity_" + + "provisioning_type\030\207\212\375w \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\020\n\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n\004k" + + "ind\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.googl" + + "e.cloud.compute.v1.StoragePool.LabelsEnt" + + "ry\022\024\n\004name\030\213\365\315\001 \001(\tH\006\210\001\001\022.\n\035performance_" + + "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(\01322.google" + + ".cloud.compute.v1.StoragePoolResourceSta" + + "tusH\013\210\001\001\022\032\n\tself_link\030\215\222\305\331\001 \001(\tH\014\210\001\001\022!\n\021" + + "self_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.goog" + + "le.cloud.compute.v1.StoragePoolResourceS" + + "tatusH\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\013LabelsEn" + + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"D\n\030C" + + "apacityProvisioningType\022(\n$UNDEFINED_CAP" + + "ACITY_PROVISIONING_TYPE\020\000\"J\n\033Performance" + + "ProvisioningType\022+\n\'UNDEFINED_PERFORMANC" + + "E_PROVISIONING_TYPE\020\000\"^\n\005State\022\023\n\017UNDEFI" + + "NED_STATE\020\000\022\020\n\010CREATING\020\271\275\235\331\001\022\020\n\010DELETIN" + + "G\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_capacity_provisioning_typeB\025\n\023_creatio" + + "n_timestampB\016\n\014_descriptionB\005\n\003_idB\007\n\005_k" + + "indB\024\n\022_label_fingerprintB\007\n\005_nameB \n\036_p" + + "erformance_provisioning_typeB\037\n\035_pool_pr" + + "ovisioned_capacity_gbB\030\n\026_pool_provision" + + "ed_iopsB\036\n\034_pool_provisioned_throughputB" + + "\022\n\020_resource_statusB\014\n\n_self_linkB\024\n\022_se" + + "lf_link_with_idB\010\n\006_stateB\t\n\007_statusB\024\n\022" + + "_storage_pool_typeB\007\n\005_zone\"\341\003\n\031StorageP" + + "oolAggregatedList\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=.go" + + "ogle.cloud.compute.v1.StoragePoolAggrega" + + "tedList.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\tsel" + + "f_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.clou" + + "d.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.clo" + + "ud.compute.v1.StoragePoolsScopedList:\0028\001" + + "B\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\"\340\004\n\017Stor" + + "agePoolDisk\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\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(\003H\003\210\001\001\022\'\n\026" + + "provisioned_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\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" + + "\004type\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\010CREATING\020\271\275\235\331\001\022\020\n\010DELETING\020\250\247\207\374\001\022\016\n\006" + + "FAILED\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_" + + "timestampB\007\n\005_diskB\007\n\005_nameB\023\n\021_provisio" + + "ned_iopsB\031\n\027_provisioned_throughputB\n\n\010_" + + "size_gbB\t\n\007_statusB\007\n\005_typeB\r\n\013_used_byt" + + "es\"\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(\013" + + "2$.google.cloud.compute.v1.StoragePool\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.Warning" + + "H\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" + + "\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.StoragePoolDis" + + "k\022\024\n\004kind\030\224\367\310\001 \001(\tH\002\210\001\001\022\037\n\017next_page_tok" + + "en\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.Warn" + + "ingH\005\210\001\001B\007\n\005_etagB\005\n\003_idB\007\n\005_kindB\022\n\020_ne" + + "xt_page_tokenB\014\n\n_self_linkB\n\n\010_warning\"" + + "\355\005\n\031StoragePoolResourceStatus\022\032\n\ndisk_co" + + "unt\030\355\257\235W \001(\003H\000\210\001\001\022&\n\025last_resize_timesta" + + "mp\030\324\373\347\356\001 \001(\tH\001\210\001\001\0226\n&max_total_provision" + + "ed_disk_capacity_gb\030\337\336\210O \001(\003H\002\210\001\001\022)\n\030poo" + + "l_used_capacity_bytes\030\305\351\260\363\001 \001(\003H\003\210\001\001\022\036\n\016" + + "pool_used_iops\030\210\311\274/ \001(\003H\004\210\001\001\022$\n\024pool_use" + + "d_throughput\030\311\233\245b \001(\003H\005\210\001\001\022\'\n\027pool_user_" + + "written_bytes\030\322\355\226m \001(\003H\006\210\001\001\0223\n\"total_pro" + + "visioned_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(\003" + + "H\010\210\001\001\0222\n!total_provisioned_disk_throughp" + + "ut\030\206\213\274\325\001 \001(\003H\t\210\001\001B\r\n\013_disk_countB\030\n\026_las" + + "t_resize_timestampB)\n\'_max_total_provisi" + + "oned_disk_capacity_gbB\033\n\031_pool_used_capa" + + "city_bytesB\021\n\017_pool_used_iopsB\027\n\025_pool_u" + + "sed_throughputB\032\n\030_pool_user_written_byt" + + "esB%\n#_total_provisioned_disk_capacity_g" + + "bB\036\n\034_total_provisioned_disk_iopsB$\n\"_to" + + "tal_provisioned_disk_throughput\"\347\007\n\017Stor" + + "agePoolType\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\0220\n max_po" + + "ol_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_throughput\030" + + "\275\324\224m \001(\003H\007\210\001\001\0220\n min_pool_provisioned_ca" + + "pacity_gb\030\237\215\213[ \001(\003H\010\210\001\001\022*\n\031min_pool_prov" + + "isioned_iops\030\352\304\313\306\001 \001(\003H\t\210\001\001\0220\n\037min_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\004name\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\024supp" + + "orted_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_depre" + + "catedB\016\n\014_descriptionB\005\n\003_idB\007\n\005_kindB#\n" + + "!_max_pool_provisioned_capacity_gbB\034\n\032_m" + + "ax_pool_provisioned_iopsB\"\n _max_pool_pr" + + "ovisioned_throughputB#\n!_min_pool_provis" + + "ioned_capacity_gbB\034\n\032_min_pool_provision" + + "ed_iopsB\"\n _min_pool_provisioned_through" + + "putB\016\n\014_min_size_gbB\007\n\005_nameB\014\n\n_self_li" + + "nkB\024\n\022_self_link_with_idB\007\n\005_zone\"\265\003\n\035St" + + "oragePoolTypeAggregatedList\022\020\n\002id\030\233\032 \001(\t", + "H\000\210\001\001\022S\n\005items\030\300\317\367/ \003(\0132A.google.cloud.c" + + "ompute.v1.StoragePoolTypeAggregatedList." + + "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 .goog" + + "le.cloud.compute.v1.WarningH\004\210\001\001\032a\n\nItem" + + "sEntry\022\013\n\003key\030\001 \001(\t\022B\n\005value\030\002 \001(\01323.goo" + + "gle.cloud.compute.v1.StoragePoolTypesSco" + + "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\"\257\002\n\023St" + + "oragePoolTypeList\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." + + "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_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\"\255\001\n\032StoragePoolTypes" + + "ScopedList\022H\n\022storage_pool_types\030\332\255\320\203\001 \003" + + "(\0132(.google.cloud.compute.v1.StoragePool" + + "Type\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud." + + "compute.v1.WarningH\000\210\001\001B\n\n\010_warning\"\240\001\n\026" + + "StoragePoolsScopedList\022?\n\rstorage_pools\030" + + "\223\222\300\320\001 \003(\0132$.google.cloud.compute.v1.Stor" + + "agePool\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.clo" + + "ud.compute.v1.WarningH\000\210\001\001B\n\n\010_warning\"\274" + + "\020\n\nSubnetwork\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\020enable_flow_logs\030\344\304\241H \001(\010H\002\210\001\001\022$\n\024ext" + + "ernal_ipv6_prefix\030\366\222\266B \001(\tH\003\210\001\001\022\033\n\013finge" + + "rprint\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\024inte" + + "rnal_ipv6_prefix\030\350\242\264\361\001 \001(\tH\007\210\001\001\022\035\n\rip_ci" + + "dr_range\030\312\315\344. \001(\tH\010\210\001\001\022!\n\020ipv6_access_ty" + + "pe\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.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\030p" + + "rivate_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_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\023" + + "secondary_ip_ranges\030\343\377\224A \003(\01321.google.cl" + + "oud.compute.v1.SubnetworkSecondaryRange\022" + + "\032\n\tself_link\030\215\222\305\331\001 \001(\tH\025\210\001\001\022\033\n\nstack_typ" + + "e\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_ACCE" + + "SS_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\"\276\001\n\027PrivateIpv6GoogleAccess\022(\n$UNDEFI" + + "NED_PRIVATE_IPV6_GOOGLE_ACCESS\020\000\022\035\n\025DISA" + + "BLE_GOOGLE_ACCESS\020\363\251\204\327\001\022-\n%ENABLE_BIDIRE" + + "CTIONAL_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\007" + + "Purpose\022\025\n\021UNDEFINED_PURPOSE\020\000\022\033\n\024GLOBAL" + + "_MANAGED_PROXY\020\362\313\340p\022#\n\034INTERNAL_HTTPS_LO" + + "AD_BALANCER\020\331\266\316v\022\026\n\016PEER_MIGRATION\020\221\252\307\352\001" + + "\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_SERVI" + + "CE_CONNECT\020\304\364\371\026\022\035\n\026REGIONAL_MANAGED_PROX" + + "Y\020\356\266\375H\":\n\004Role\022\022\n\016UNDEFINED_ROLE\020\000\022\016\n\006AC" + + "TIVE\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\tIPV6_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\010DRAINING\020\352\325\214\345\001\022" + + "\014\n\005READY\020\203\303\217%B\025\n\023_creation_timestampB\016\n\014" + + "_descriptionB\023\n\021_enable_flow_logsB\027\n\025_ex" + + "ternal_ipv6_prefixB\016\n\014_fingerprintB\022\n\020_g" + + "ateway_addressB\005\n\003_idB\027\n\025_internal_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_l" + + "og_configB\007\n\005_nameB\n\n\010_networkB\033\n\031_priva" + + "te_ip_google_accessB\035\n\033_private_ipv6_goo" + + "gle_accessB\n\n\010_purposeB\t\n\007_regionB\032\n\030_re" + + "served_internal_rangeB\007\n\005_roleB\014\n\n_self_" + + "linkB\r\n\013_stack_typeB\010\n\006_state\"\277\003\n\030Subnet" + + "workAggregatedList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022N\n\005" + + "items\030\300\317\367/ \003(\0132<.google.cloud.compute.v1" + + ".SubnetworkAggregatedList.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\032\\\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022=\n\005value\030" + + "\002 \001(\0132..google.cloud.compute.v1.Subnetwo" + + "rksScopedList:\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\"" + + "\245\002\n\016SubnetworkList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0225\n\005" + + "items\030\300\317\367/ \003(\0132#.google.cloud.compute.v1" + + ".Subnetwork\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\"\335\004\n\023SubnetworkLogConfig\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\013filter_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\017metadat" + + "a_fields\030\311\273\273\264\001 \003(\t\"\310\001\n\023AggregationInterv" + + "al\022\"\n\036UNDEFINED_AGGREGATION_INTERVAL\020\000\022\027" + + "\n\017INTERVAL_10_MIN\020\314\321\245\350\001\022\027\n\017INTERVAL_15_M" + + "IN\020\321\274\277\352\001\022\025\n\016INTERVAL_1_MIN\020\252\322\366 \022\026\n\017INTER" + + "VAL_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\010Metadata\022\026\n\022UND" + + "EFINED_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\024INCLU" + + "DE_ALL_METADATA\020\204\315\277NB\027\n\025_aggregation_int" + + "ervalB\t\n\007_enableB\016\n\014_filter_exprB\020\n\016_flo" + + "w_samplingB\013\n\t_metadata\"\275\001\n\030SubnetworkSe" + + "condaryRange\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\027rese" + + "rved_internal_range\030\262\236\277\210\001 \001(\tH\002\210\001\001B\020\n\016_i" + + "p_cidr_rangeB\r\n\013_range_nameB\032\n\030_reserved" + + "_internal_range\"V\n#SubnetworksExpandIpCi" + + "drRangeRequest\022\035\n\rip_cidr_range\030\312\315\344. \001(\t" + + "H\000\210\001\001B\020\n\016_ip_cidr_range\"\234\001\n\025SubnetworksS" + + "copedList\022<\n\013subnetworks\030\305\324\245\306\001 \003(\0132#.goo" + + "gle.cloud.compute.v1.Subnetwork\0229\n\007warni" + + "ng\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1.Wa" + + "rningH\000\210\001\001B\n\n\010_warning\"t\n*SubnetworksSet" + + "PrivateIpGoogleAccessRequest\022)\n\030private_" + + "ip_google_access\030\316\350\375\310\001 \001(\010H\000\210\001\001B\033\n\031_priv" + + "ate_ip_google_access\"\177\n\nSubsetting\022\026\n\006po" + + "licy\030\262\312\266+ \001(\tH\000\210\001\001\"N\n\006Policy\022\024\n\020UNDEFINE" + + "D_POLICY\020\000\022!\n\032CONSISTENT_HASH_SUBSETTING" + + "\020\264\230\3743\022\013\n\004NONE\020\270\316\222\001B\t\n\007_policy\"\327\001\n\026Suspen" + + "dInstanceRequest\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\"\324\002\n+SuspendInstancesInstanceGrou" + + "pManagerRequest\022&\n\026instance_group_manage" + + "r\030\303\367\363v \001(\tB\003\340A\002\022\221\001\n:instance_group_manag" + + "ers_suspend_instances_request_resource\030\321" + + "\215\241\026 \001(\0132E.google.cloud.compute.v1.Instan" + + "ceGroupManagersSuspendInstancesRequestB\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\"\353\002\n1Suspe" + + "ndInstancesRegionInstanceGroupManagerReq" + + "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\236\001\nAreg" + + "ion_instance_group_managers_suspend_inst" + + "ances_request_resource\030\374\345\224f \001(\0132K.google" + + ".cloud.compute.v1.RegionInstanceGroupMan" + + "agersSuspendInstancesRequestB\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\"\211\001\n" + + " SwitchToCustomModeNetworkRequest\022\027\n\007net" + + "work\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\016TCPHealthCheck\022\024\n\004p" + + "ort\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\007reques" + + "t\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_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_P" + + "ORT\020\314\321\365\254\001\"H\n\013ProxyHeader\022\032\n\026UNDEFINED_PR" + + "OXY_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_spec" + + "ificationB\017\n\r_proxy_headerB\n\n\010_requestB\013" + + "\n\t_response\"E\n\004Tags\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_fingerpri" + + "nt\"\312\003\n\017TargetGrpcProxy\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\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_link\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_creatio" + + "n_timestampB\016\n\014_descriptionB\016\n\014_fingerpr" + + "intB\005\n\003_idB\007\n\005_kindB\007\n\005_nameB\014\n\n_self_li" + + "nkB\024\n\022_self_link_with_idB\n\n\010_url_mapB\031\n\027" + + "_validate_for_proxyless\"\257\002\n\023TargetGrpcPr" + + "oxyList\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.TargetGrpc" + + "Proxy\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\"\256\001\n\033TargetHttpProxiesScopedLis" + + "t\022H\n\023target_http_proxies\030\303\325\250M \003(\0132(.goog" + + "le.cloud.compute.v1.TargetHttpProxy\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\"\353\003\n\017TargetHtt" + + "pProxy\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\013fing" + + "erprint\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(\004" + + "H\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\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(\tH\n\210\001\001B\025\n\023" + + "_creation_timestampB\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_b" + + "indB\t\n\007_regionB\014\n\n_self_linkB\n\n\010_url_map" + + "\"\210\003\n\035TargetHttpProxyAggregatedList\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.TargetHttpProxyAggregat" + + "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\032b\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022C\n\005valu" + + "e\030\002 \001(\01324.google.cloud.compute.v1.Target" + + "HttpProxiesScopedList:\0028\001B\005\n\003_idB\007\n\005_kin" + + "dB\022\n\020_next_page_tokenB\014\n\n_self_link\"\257\002\n\023" + + "TargetHttpProxyList\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.v" + + "1.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(\013" + + "2 .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\"\262\001\n\034TargetHttpsPro" + + "xiesScopedList\022K\n\024target_https_proxies\030\212" + + "\374\347\256\001 \003(\0132).google.cloud.compute.v1.Targe" + + "tHttpsProxy\0229\n\007warning\030\234\337\226\030 \001(\0132 .google" + + ".cloud.compute.v1.WarningH\000\210\001\001B\n\n\010_warni" + + "ng\"a\n*TargetHttpsProxiesSetCertificateMa" + + "pRequest\022\037\n\017certificate_map\030\264\345\315J \001(\tH\000\210\001" + + "\001B\022\n\020_certificate_map\"\266\001\n(TargetHttpsPro" + + "xiesSetQuicOverrideRequest\022\036\n\rquic_overr" + + "ide\030\255\241\333\331\001 \001(\tH\000\210\001\001\"X\n\014QuicOverride\022\033\n\027UN" + + "DEFINED_QUIC_OVERRIDE\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_ov" + + "erride\"K\n+TargetHttpsProxiesSetSslCertif" + + "icatesRequest\022\034\n\020ssl_certificates\030\217\242\303\256\001 " + + "\003(\t\"\235\010\n\020TargetHttpsProxy\022$\n\024authorizatio" + + "n_policy\030\270\357\227\020 \001(\tH\000\210\001\001\022\037\n\017certificate_ma" + + "p\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\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_k" + + "eep_alive_timeout_sec\030\336\316\246\325\001 \001(\005H\005\210\001\001\022\020\n\002" + + "id\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\004" + + "name\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_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_policy\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\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\014QuicOverride\022\033\n\027UNDEFINED_QUIC_O" + + "VERRIDE\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\001\"x\n\014TlsEarlyData\022\034\n\030UNDEFI" + + "NED_TLS_EARLY_DATA\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\001\022\024\n\014UN" + + "RESTRICTED\020\264\247\205\332\001B\027\n\025_authorization_polic" + + "yB\022\n\020_certificate_mapB\025\n\023_creation_times" + + "tampB\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_ov" + + "errideB\t\n\007_regionB\014\n\n_self_linkB\024\n\022_serv" + + "er_tls_policyB\r\n\013_ssl_policyB\021\n\017_tls_ear" + + "ly_dataB\n\n\010_url_map\"\322\003\n\036TargetHttpsProxy" + + "AggregatedList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\022T\n\005item" + + "s\030\300\317\367/ \003(\0132B.google.cloud.compute.v1.Tar" + + "getHttpsProxyAggregatedList.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.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" + + "\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\032c\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022D\n\005valu" + + "e\030\002 \001(\01325.google.cloud.compute.v1.Target" + + "HttpsProxiesScopedList:\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\"\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.c" + + "loud.compute.v1.TargetHttpsProxy\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\"\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(\t" + + "H\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_poli" + + "cy\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\tNatPolicy\022" + + "\030\n\024UNDEFINED_NAT_POLICY\020\000\022\r\n\006NO_NAT\020\203\273\376L" + + "B\025\n\023_creation_timestampB\016\n\014_descriptionB" + + "\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_po" + + "licyB\014\n\n_self_linkB\007\n\005_zone\"\313\003\n\034TargetIn" + + "stanceAggregatedList\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.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\032`\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022A\n\005" + + "value\030\002 \001(\01322.google.cloud.compute.v1.Ta" + + "rgetInstancesScopedList:\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\"\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.cl" + + "oud.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\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" + + "\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\"\251\001\n\031Ta" + + "rgetInstancesScopedList\022E\n\020target_instan" + + "ces\030\320\322\255\273\001 \003(\0132\'.google.cloud.compute.v1." + + "TargetInstance\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\"\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(\t" + + "H\001\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\002\210\001\001\022\036\n\016f" + + "ailover_ratio\030\376\224\264e \001(\002H\003\210\001\001\022\031\n\rhealth_ch" + + "ecks\030\256\257\346\325\001 \003(\t\022\020\n\002id\030\233\032 \001(\004H\004\210\001\001\022\024\n\tinst" + + "ances\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\004" + + "name\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\ts" + + "elf_link\030\215\222\305\331\001 \001(\tH\t\210\001\001\022!\n\020session_affin" + + "ity\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\tCLIENT" + + "_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\017CLIEN" + + "T_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_AFFINI" + + "TY\020\373\335\223\321\001B\016\n\014_backup_poolB\025\n\023_creation_ti" + + "mestampB\016\n\014_descriptionB\021\n\017_failover_rat" + + "ioB\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_ses" + + "sion_affinity\"\277\003\n\030TargetPoolAggregatedLi" + + "st\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.TargetPoolAggre" + + "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\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\004\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.TargetPoolsScopedList:\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\030TargetPoolIns" + + "tanceHealth\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\016TargetP" + + "oolList\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.TargetPool" + + "\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\"l\n TargetPoolsAddHealthCheckRequest" + + "\022H\n\rhealth_checks\030\256\257\346\325\001 \003(\0132-.google.clo" + + "ud.compute.v1.HealthCheckReference\"a\n\035Ta" + + "rgetPoolsAddInstanceRequest\022@\n\tinstances" + + "\030\376\374\357\r \003(\0132*.google.cloud.compute.v1.Inst" + + "anceReference\"o\n#TargetPoolsRemoveHealth" + + "CheckRequest\022H\n\rhealth_checks\030\256\257\346\325\001 \003(\0132" + + "-.google.cloud.compute.v1.HealthCheckRef" + + "erence\"d\n TargetPoolsRemoveInstanceReque" + + "st\022@\n\tinstances\030\376\374\357\r \003(\0132*.google.cloud." + + "compute.v1.InstanceReference\"\235\001\n\025TargetP" + + "oolsScopedList\022=\n\014target_pools\030\251\237\240\240\001 \003(\013" + + "2#.google.cloud.compute.v1.TargetPool\0229\n" + + "\007warning\030\234\337\226\030 \001(\0132 .google.cloud.compute" + + ".v1.WarningH\000\210\001\001B\n\n\010_warning\"4\n\017TargetRe" + + "ference\022\026\n\006target\030\221\343\371[ \001(\tH\000\210\001\001B\t\n\007_targ" + + "et\"P\n(TargetSslProxiesSetBackendServiceR" + + "equest\022\030\n\007service\030\265\215\217\262\001 \001(\tH\000\210\001\001B\n\n\010_ser" + + "vice\"_\n(TargetSslProxiesSetCertificateMa" + + "pRequest\022\037\n\017certificate_map\030\264\345\315J \001(\tH\000\210\001" + + "\001B\022\n\020_certificate_map\"\240\001\n%TargetSslProxi" + + "esSetProxyHeaderRequest\022\034\n\014proxy_header\030" + + "\376\272\274L \001(\tH\000\210\001\001\"H\n\013ProxyHeader\022\032\n\026UNDEFINE" + + "D_PROXY_HEADER\020\000\022\013\n\004NONE\020\270\316\222\001\022\020\n\010PROXY_V" + + "1\020\254\244\267\237\001B\017\n\r_proxy_header\"I\n)TargetSslPro" + + "xiesSetSslCertificatesRequest\022\034\n\020ssl_cer" + + "tificates\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\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\020\n\002id\030\233\032 \001(\004H\003\210\001\001\022\024\n\004k" + + "ind\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_li" + + "nk\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\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" + + "\n\010PROXY_V1\020\254\244\267\237\001B\022\n\020_certificate_mapB\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\022" + + "9\n\005items\030\300\317\367/ \003(\0132\'.google.cloud.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\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\"\253\001\n\032TargetTcpProx" + + "iesScopedList\022F\n\022target_tcp_proxies\030\200\327\372|" + + " \003(\0132\'.google.cloud.compute.v1.TargetTcp" + + "Proxy\0229\n\007warning\030\234\337\226\030 \001(\0132 .google.cloud" + + ".compute.v1.WarningH\000\210\001\001B\n\n\010_warning\"P\n(" + + "TargetTcpProxiesSetBackendServiceRequest" + + "\022\030\n\007service\030\265\215\217\262\001 \001(\tH\000\210\001\001B\n\n\010_service\"\240" + + "\001\n%TargetTcpProxiesSetProxyHeaderRequest" + + "\022\034\n\014proxy_header\030\376\272\274L \001(\tH\000\210\001\001\"H\n\013ProxyH" + + "eader\022\032\n\026UNDEFINED_PROXY_HEADER\020\000\022\013\n\004NON" + + "E\020\270\316\222\001\022\020\n\010PROXY_V1\020\254\244\267\237\001B\017\n\r_proxy_heade" + + "r\"\350\003\n\016TargetTcpProxy\022\"\n\022creation_timesta" + + "mp\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_bi" + + "nd\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(\t" + + "H\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" + + "\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_link" + + "B\n\n\010_service\"\314\003\n\034TargetTcpProxyAggregate" + + "dList\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.TargetTcpPro" + + "xyAggregatedList.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\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" + + "\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\032a\n\nIt" + + "emsEntry\022\013\n\003key\030\001 \001(\t\022B\n\005value\030\002 \001(\01323.g" + + "oogle.cloud.compute.v1.TargetTcpProxiesS" + + "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\"\255\002\n\022" + + "TargetTcpProxyList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\0229\n\005" + + "items\030\300\317\367/ \003(\0132\'.google.cloud.compute.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_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\"\256\005\n\020TargetVpnGateway" + + "\022\"\n\022creation_timestamp\030\266\217\307\016 \001(\tH\000\210\001\001\022\034\n\013" + + "description\030\374\207\326\311\001 \001(\tH\001\210\001\001\022\034\n\020forwarding" + + "_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\004ki" + + "nd\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.google" + + ".cloud.compute.v1.TargetVpnGateway.Label" + + "sEntry\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\267V" + + " \001(\tH\t\210\001\001\022\022\n\007tunnels\030\213\372\3551 \003(\t\032-\n\013LabelsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"`\n\006" + + "Status\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%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_reg" + + "ionB\014\n\n_self_linkB\t\n\007_status\"\321\003\n\036TargetV" + + "pnGatewayAggregatedList\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.TargetVpnGatewayAggregatedList.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\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_i" + + "dB\007\n\005_kindB\022\n\020_next_page_tokenB\014\n\n_self_" + + "linkB\n\n\010_warning\"\261\002\n\024TargetVpnGatewayLis" + + "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.TargetVpnGateway" + + "\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\"\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\"\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\"\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\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" + + "ning\"\260\001\n\033TargetVpnGatewaysScopedList\022J\n\023" + + "target_vpn_gateways\030\210\223\312\277\001 \003(\0132).google.c" + + "loud.compute.v1.TargetVpnGateway\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\"\223\004\n\013TestFailure\022" + + "\"\n\021actual_output_url\030\202\331\361\210\001 \001(\tH\000\210\001\001\022-\n\035a" + + "ctual_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\023e" + + "xpected_output_url\030\230\242\367\316\001 \001(\tH\003\210\001\001\022/\n\037exp" + + "ected_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\007" + + "headers\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_outpu" + + "t_urlB \n\036_actual_redirect_response_codeB" + + "\021\n\017_actual_serviceB\026\n\024_expected_output_u" + + "rlB\"\n _expected_redirect_response_codeB\023" + + "\n\021_expected_serviceB\007\n\005_hostB\007\n\005_path\"\300\001" + + "\n&TestIamPermissionsBackendBucketRequest" + + "\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.comput" + + "e.v1.TestPermissionsRequestB\003\340A\002\"\301\001\n\'Tes" + + "tIamPermissionsBackendServiceRequest\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\002\022c\n!test_permissions_request_reso" + + "urce\030\246\305\267\321\001 \001(\0132/.google.cloud.compute.v1" + + ".TestPermissionsRequestB\003\340A\002\"\315\001\n\035TestIam" + + "PermissionsDiskRequest\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\"\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" + + "nsRequestB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\305\001\n" + + "+TestIamPermissionsExternalVpnGatewayReq" + + "uest\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\002\022c\n!test_permissions_requ" + + "est_resource\030\246\305\267\321\001 \001(\0132/.google.cloud.co" + + "mpute.v1.TestPermissionsRequestB\003\340A\002\"\250\001\n" + + "\'TestIamPermissionsFirewallPolicyRequest" + + "\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\"\270\001\n\036TestIamPermissionsImageReque" + + "st\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_reques" + + "t_resource\030\246\305\267\321\001 \001(\0132/.google.cloud.comp" + + "ute.v1.TestPermissionsRequestB\003\340A\002\"\321\001\n!T" + + "estIamPermissionsInstanceRequest\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\022c\n!test_permissions_request_resource" + + "\030\246\305\267\321\001 \001(\0132/.google.cloud.compute.v1.Tes" + + "tPermissionsRequestB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(" + + "\tB\003\340A\002\"\303\001\n)TestIamPermissionsInstanceTem" + + "plateRequest\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_permissi" + + "ons_request_resource\030\246\305\267\321\001 \001(\0132/.google." + + "cloud.compute.v1.TestPermissionsRequestB" + + "\003\340A\002\"\330\001\n(TestIamPermissionsInstantSnapsh" + + "otRequest\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\"\276\001\n$TestIamPermi" + + "ssionsLicenseCodeRequest\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!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$TestIamPermissionsReser" - + "vationRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340A\002\022\030" + + "(\0132/.google.cloud.compute.v1.TestPermiss" + + "ionsRequestB\003\340A\002\"\272\001\n TestIamPermissionsL" + + "icenseRequest\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\"\331\001\n\'TestIamP" - + "ermissionsResourcePolicyRequest\022\027\n\007proje" + + "B\003\340A\002\"\277\001\n%TestIamPermissionsMachineImage" + + "Request\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\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*TestIamPermissionsNetworkAttachmentR" + + "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\"\335\001\n-TestIamPermis" + + "sionsNetworkEndpointGroupRequest\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\022c\n!test_permissions_request_resource" + + "\030\246\305\267\321\001 \001(\0132/.google.cloud.compute.v1.Tes" + + "tPermissionsRequestB\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(" + + "\tB\003\340A\002\"\310\001\n.TestIamPermissionsNetworkFire" + + "wallPolicyRequest\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\"\322\001\n\"TestIamPermissionsNodeGrou" + + "pRequest\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" + + "\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\327\001\n%TestIamPermis" + + "sionsNodeTemplateRequest\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\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" + + "\"\332\001\n(TestIamPermissionsPacketMirroringRe" + + "quest\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.TestPe" + + "rmissionsRequestB\003\340A\002\"\337\001\n-TestIamPermiss" + + "ionsRegionBackendServiceRequest\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" + + "stB\003\340A\002\"\325\001\n#TestIamPermissionsRegionDisk" + + "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\"\340\001\n.TestIamPermi" + + "ssionsRegionInstantSnapshotRequest\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\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\"\346\001\n4TestIamPermissionsRegionN" + + "etworkFirewallPolicyRequest\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\"\324\001\n$TestIamPermissionsReservationReq" + + "uest\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\002\022c\n!test_permissions_requ" + + "est_resource\030\246\305\267\321\001 \001(\0132/.google.cloud.co" + + "mpute.v1.TestPermissionsRequestB\003\340A\002\022\024\n\004" + + "zone\030\254\307\344\001 \001(\tB\003\340A\002\"\331\001\n\'TestIamPermission" + + "sResourcePolicyRequest\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\010resou" + + "rce\030\216\210\257] \001(\tB\003\340A\002\022c\n!test_permissions_re" + + "quest_resource\030\246\305\267\321\001 \001(\0132/.google.cloud." + + "compute.v1.TestPermissionsRequestB\003\340A\002\"\334" + + "\001\n*TestIamPermissionsServiceAttachmentRe" + + "quest\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.TestPe" + + "rmissionsRequestB\003\340A\002\"\273\001\n!TestIamPermiss" + + "ionsSnapshotRequest\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_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\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\"" - + "\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" + + "equestB\003\340A\002\"\324\001\n$TestIamPermissionsStorag" + + "ePoolRequest\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_permissi" + + "ons_request_resource\030\246\305\267\321\001 \001(\0132/.google." + + "cloud.compute.v1.TestPermissionsRequestB" + + "\003\340A\002\022\024\n\004zone\030\254\307\344\001 \001(\tB\003\340A\002\"\325\001\n#TestIamPe" + + "rmissionsSubnetworkRequest\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\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\"\325\001\n#TestIamPermissionsVpnGatewayReque" + + "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\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\"0\n\026TestPermissionsReq" + + "uest\022\026\n\013permissions\030\204\351\313\034 \003(\t\"1\n\027TestPerm" + + "issionsResponse\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\023Upcomi" + + "ngMaintenance\022\036\n\016can_reschedule\030\231\243\342- \001(\010" + + "H\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_time" + + "\030\271\260\311\341\001 \001(\tH\005\210\001\001\"g\n\021MaintenanceStatus\022 \n\034" + + "UNDEFINED_MAINTENANCE_STATUS\020\000\022\017\n\007ONGOIN" + + "G\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\tSCHEDULE" + + "D\020\215\241\217\344\001\022\024\n\014UNKNOWN_TYPE\020\257\244\376\351\001\022\023\n\013UNSCHED" + + "ULED\020\224\304\316\326\001B\021\n\017_can_rescheduleB\033\n\031_latest" + + "_window_start_timeB\025\n\023_maintenance_statu" + + "sB\007\n\005_typeB\022\n\020_window_end_timeB\024\n\022_windo" + + "w_start_time\"\234\002\n!UpdateAccessConfigInsta" + + "nceRequest\022N\n\026access_config_resource\030\220\377\366" + + "\270\001 \001(\0132%.google.cloud.compute.v1.AccessC" + + "onfigB\003\340A\002\022\030\n\010instance\030\225\251\332\010 \001(\tB\003\340A\002\022\"\n\021" + + "network_interface\030\350\300\235\256\001 \001(\tB\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\"\372\001\n\027UpdateAutoscaler" + + "Request\022\033\n\nautoscaler\030\327\375\322\366\001 \001(\tH\000\210\001\001\022H\n\023" + + "autoscaler_resource\030\366\360\377b \001(\0132#.google.cl" + + "oud.compute.v1.AutoscalerB\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\001\210\001\001\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zo" + + "neB\r\n\013_autoscalerB\r\n\013_request_id\"\334\001\n\032Upd" + + "ateBackendBucketRequest\022\036\n\016backend_bucke" + + "t\030\365\343\335+ \001(\tB\003\340A\002\022P\n\027backend_bucket_resour" + + "ce\030\230\316\307\265\001 \001(\0132&.google.cloud.compute.v1.B" + + "ackendBucketB\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\"\341\001\n\033UpdateBackendService" + + "Request\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.BackendService" + + "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\"\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.goog" + + "le.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\007" + + "project\022\032\n\nrequest_id\030\313\201\331\021 \001(\tH\001\210\001\001\022\034\n\013u" + + "pdate_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_idB" + + "\016\n\014_update_mask\"\373\001\n\"UpdateDisplayDeviceI" + + "nstanceRequest\022P\n\027display_device_resourc" + + "e\030\332\204\221\212\001 \001(\0132&.google.cloud.compute.v1.Di" + + "splayDeviceB\003\340A\002\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\022\033\n\004zone\030\254\307\344\001 \001" + + "(\tB\n\340A\002\362G\004zoneB\r\n\013_request_id\"\306\001\n\025Update" + + "FirewallRequest\022\031\n\010firewall\030\200\372\325\363\001 \001(\tB\003\340" + + "A\002\022D\n\021firewall_resource\030\355\260\340\023 \001(\0132!.googl" + + "e.cloud.compute.v1.FirewallB\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\"\324\001\n\030Updat" + + "eHealthCheckRequest\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\"\345\003\n\025UpdateInstanceRequest\022\030\n\010insta" + + "nce\030\225\251\332\010 \001(\tB\003\340A\002\022D\n\021instance_resource\030\370" + + "\360\376f \001(\0132!.google.cloud.compute.v1.Instan" + + "ceB\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\007proj" + + "ect\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\033MostDisru" + + "ptiveAllowedAction\022,\n(UNDEFINED_MOST_DIS" + + "RUPTIVE_ALLOWED_ACTION\020\000B\021\n\017_minimal_act" + + "ionB!\n\037_most_disruptive_allowed_actionB\r" + + "\n\013_request_id\"\250\002\n%UpdateNetworkInterface" + + "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\022V\n" + + "\032network_interface_resource\030\205\224\256\233\001 \001(\0132)." + + "google.cloud.compute.v1.NetworkInterface" + + "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\"\365\001\n\033Upd" + + "atePeeringNetworkRequest\022\027\n\007network\030\256\264\205o" + + " \001(\tB\003\340A\002\022o\n(networks_update_peering_req" + + "uest_resource\030\331\252\202k \001(\01325.google.cloud.co" + + "mpute.v1.NetworksUpdatePeeringRequestB\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" + + "\"\346\002\n3UpdatePerInstanceConfigsInstanceGro" + + "upManagerRequest\022&\n\026instance_group_manag" + + "er\030\303\367\363v \001(\tB\003\340A\002\022\233\001\n@instance_group_mana" + + "gers_update_per_instance_configs_req_res" + + "ource\030\276\301\266C \001(\0132I.google.cloud.compute.v1" + + ".InstanceGroupManagersUpdatePerInstanceC" + + "onfigsReqB\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" + + "d\"\362\002\n9UpdatePerInstanceConfigsRegionInst" + + "anceGroupManagerRequest\022&\n\026instance_grou" + + "p_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\340" + + "A\002\362G\006region\022\235\001\nAregion_instance_group_ma" + + "nager_update_instance_config_req_resourc" + + "e\030\247\256\272* \001(\0132J.google.cloud.compute.v1.Reg" + + "ionInstanceGroupManagerUpdateInstanceCon" + + "figReqB\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\035UpdateRegionAutoscale" + + "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\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\001\210\001\001B\r\n\013_autoscalerB\r\n\013_request_id\"\210\002" + + "\n!UpdateRegionBackendServiceRequest\022 \n\017b" + + "ackend_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.clo" + + "ud.compute.v1.BackendServiceB\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\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\"\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" + + " \001(\tH\000\210\001\001B\r\n\013_request_id\"\304\002\n\035UpdateRegio" + + "nCommitmentRequest\022\033\n\ncommitment\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.CommitmentB\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\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_paths" + + "B\r\n\013_request_idB\016\n\014_update_mask\"\253\002\n\027Upda" + + "teRegionDiskRequest\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.google.clo" + + "ud.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\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\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\036UpdateRegionHealthChec" + + "kRequest\022\035\n\014health_check\030\345\252\244\223\001 \001(\tB\003\340A\002\022" + + "K\n\025health_check_resource\030\250\303\244` \001(\0132$.goog" + + "le.cloud.compute.v1.HealthCheckB\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\"\347\001\n\031UpdateRe" + + "gionUrlMapRequest\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\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.UrlMa" + + "pB\003\340A\002B\r\n\013_request_id\"\276\002\n\030UpdateReservat" + + "ionRequest\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\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(\t" + + "B\003\340A\002\022K\n\024reservation_resource\030\241\356\364\207\001 \001(\0132" + + "$.google.cloud.compute.v1.ReservationB\003\340" + + "A\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_pathsB\r\n\013_requ" + + "est_idB\016\n\014_update_mask\"\336\001\n\023UpdateRouterR" + + "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\026\n\006router\030\311\256\356F \001(" + + "\tB\003\340A\002\022@\n\017router_resource\030\304\200\202J \001(\0132\037.goo" + + "gle.cloud.compute.v1.RouterB\003\340A\002B\r\n\013_req" + + "uest_id\"\227\002\n+UpdateShieldedInstanceConfig" + + "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\022c\n!shielded_ins" + + "tance_config_resource\030\330\226\335\201\001 \001(\0132/.google" + + ".cloud.compute.v1.ShieldedInstanceConfig" + + "B\003\340A\002\022\033\n\004zone\030\254\307\344\001 \001(\tB\n\340A\002\362G\004zoneB\r\n\013_r" + + "equest_id\"\237\002\n\030UpdateStoragePoolRequest\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\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.Storage" + + "PoolB\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\023UpdateUrlMapRequ" + + "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\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\"\362\007\n\006UrlMap\022\"\n\022creation_ti" + + "mestamp\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.CustomErrorResponsePoli" + + "cyH\001\210\001\001\022O\n\024default_route_action\030\252\264\327\264\001 \001(" + + "\0132(.google.cloud.compute.v1.HttpRouteAct" + + "ionH\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+.g" + + "oogle.cloud.compute.v1.HttpRedirectActio" + + "nH\004\210\001\001\022\034\n\013description\030\374\207\326\311\001 \001(\tH\005\210\001\001\022\033\n\013" + + "fingerprint\030\344\321\363o \001(\tH\006\210\001\001\022I\n\rheader_acti" + + "on\030\250\240\270\234\001 \001(\0132).google.cloud.compute.v1.H" + + "ttpHeaderActionH\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.PathM" + + "atcher\022\026\n\006region\030\364\315\240B \001(\tH\013\210\001\001\022\032\n\tself_l" + + "ink\030\215\222\305\331\001 \001(\tH\014\210\001\001\0225\n\005tests\030\241\234\3114 \003(\0132#.g" + + "oogle.cloud.compute.v1.UrlMapTestB\025\n\023_cr" + + "eation_timestampB\'\n%_default_custom_erro" + + "r_response_policyB\027\n\025_default_route_acti" + + "onB\022\n\020_default_serviceB\027\n\025_default_url_r" + + "edirectB\016\n\014_descriptionB\016\n\014_fingerprintB" + + "\020\n\016_header_actionB\005\n\003_idB\007\n\005_kindB\007\n\005_na" + + "meB\t\n\007_regionB\014\n\n_self_link\"\235\002\n\nUrlMapLi" + + "st\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\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\"7\n\017U" + + "rlMapReference\022\030\n\007url_map\030\214\225\201\257\001 \001(\tH\000\210\001\001" + + "B\n\n\010_url_map\"\360\002\n\nUrlMapTest\022\034\n\013descripti" + + "on\030\374\207\326\311\001 \001(\tH\000\210\001\001\022$\n\023expected_output_url" + + "\030\230\242\367\316\001 \001(\tH\001\210\001\001\022/\n\037expected_redirect_res" + + "ponse_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.UrlMapTes" + + "tHeader\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_ho" + + "stB\007\n\005_pathB\n\n\010_service\"R\n\020UrlMapTestHea" + + "der\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\026UrlMapVa" + + "lidationResult\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.comput" + + "e.v1.TestFailure\022\033\n\013test_passed\030\275\201\362[ \001(\010" + + "H\001\210\001\001B\021\n\017_load_succeededB\016\n\014_test_passed" + + "\"\265\003\n\025UrlMapsAggregatedList\022\020\n\002id\030\233\032 \001(\tH" + + "\000\210\001\001\022K\n\005items\030\300\317\367/ \003(\01329.google.cloud.co" + + "mpute.v1.UrlMapsAggregatedList.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\022\027\n\014unreachables\030\237\240\206t \003(\t\0229\n\007warning" + + "\030\234\337\226\030 \001(\0132 .google.cloud.compute.v1.Warn" + + "ingH\004\210\001\001\032X\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\0229\n\005v" + + "alue\030\002 \001(\0132*.google.cloud.compute.v1.Url" + + "MapsScopedList:\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" + + "\"\220\001\n\021UrlMapsScopedList\0224\n\010url_maps\030\347\216\2441 " + + "\003(\0132\037.google.cloud.compute.v1.UrlMap\0229\n\007" + + "warning\030\234\337\226\030 \001(\0132 .google.cloud.compute." + + "v1.WarningH\000\210\001\001B\n\n\010_warning\"\230\002\n\026UrlMapsV" + + "alidateRequest\022!\n\026load_balancing_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\024LoadBal" + + "ancingSchemes\022$\n UNDEFINED_LOAD_BALANCIN" + + "G_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_BALANCING_SCHEME_" + + "UNSPECIFIED\020\274\273\207\373\001B\013\n\t_resource\"m\n\027UrlMap" + + "sValidateResponse\022G\n\006result\030\235\220\267B \001(\0132/.g" + + "oogle.cloud.compute.v1.UrlMapValidationR" + + "esultH\000\210\001\001B\t\n\007_result\"\272\001\n\nUrlRewrite\022\034\n\014" + + "host_rewrite\030\365\313\232L \001(\tH\000\210\001\001\022#\n\023path_prefi" + + "x_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_host_rewrite" + + "B\026\n\024_path_prefix_rewriteB\030\n\026_path_templa" + + "te_rewrite\"\376\007\n\020UsableSubnetwork\022$\n\024exter" + + "nal_ipv6_prefix\030\366\222\266B \001(\tH\000\210\001\001\022%\n\024interna" + + "l_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(\0132" + + "7.google.cloud.compute.v1.UsableSubnetwo" + + "rkSecondaryRange\022\033\n\nstack_type\030\221\265\213\313\001 \001(\t" + + "H\007\210\001\001\022\033\n\nsubnetwork\030\356\247\344\222\001 \001(\tH\010\210\001\001\"S\n\016Ip" + + "v6AccessType\022\036\n\032UNDEFINED_IPV6_ACCESS_TY" + + "PE\020\000\022\017\n\010EXTERNAL\020\313\247\375\020\022\020\n\010INTERNAL\020\275\355\226\205\001\"" + + "\370\001\n\007Purpose\022\025\n\021UNDEFINED_PURPOSE\020\000\022\033\n\024GL" + + "OBAL_MANAGED_PROXY\020\362\313\340p\022#\n\034INTERNAL_HTTP" + + "S_LOAD_BALANCER\020\331\266\316v\022\026\n\016PEER_MIGRATION\020\221" + + "\252\307\352\001\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_S" + + "ERVICE_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\tStackT" + + "ype\022\030\n\024UNDEFINED_STACK_TYPE\020\000\022\020\n\tIPV4_IP" + + "V6\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_prefixB\027\n\025_interna" + + "l_ipv6_prefixB\020\n\016_ip_cidr_rangeB\023\n\021_ipv6" + + "_access_typeB\n\n\010_networkB\n\n\010_purposeB\007\n\005" + + "_roleB\r\n\013_stack_typeB\r\n\013_subnetwork\"}\n\036U" + + "sableSubnetworkSecondaryRange\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_rangeB\r\n\013_range_na" + + "me\"\274\002\n\037UsableSubnetworksAggregatedList\022\020" + + "\n\002id\030\233\032 \001(\tH\000\210\001\001\022;\n\005items\030\300\317\367/ \003(\0132).goo" + + "gle.cloud.compute.v1.UsableSubnetwork\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\"\177\n\023UsageExportLocation\022\034\n\013bucket_name\030" + + "\300\227\236\207\001 \001(\tH\000\210\001\001\022#\n\022report_name_prefix\030\273\260\327" + + "\230\001 \001(\tH\001\210\001\001B\016\n\014_bucket_nameB\025\n\023_report_n" + + "ame_prefix\"\332\001\n\033ValidateRegionUrlMapReque" + + "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\022p\n)region_url_maps_validate_" + + "request_resource\030\232\314\200\033 \001(\01325.google.cloud" + + ".compute.v1.RegionUrlMapsValidateRequest" + + "B\003\340A\002\022\030\n\007url_map\030\214\225\201\257\001 \001(\tB\003\340A\002\"\260\001\n\025Vali" + + "dateUrlMapRequest\022\027\n\007project\030\231\226\301l \001(\tB\003\340" + + "A\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/.g" + + "oogle.cloud.compute.v1.UrlMapsValidateRe" + + "questB\003\340A\002\"\257\001\n\025VmEndpointNatMappings\022\035\n\r" + + "instance_name\030\365\347\330l \001(\tH\000\210\001\001\022e\n\026interface" + + "_nat_mappings\030\211\200\225z \003(\0132B.google.cloud.co" + + "mpute.v1.VmEndpointNatMappingsInterfaceN" + + "atMappingsB\020\n\016_instance_name\"\342\003\n)VmEndpo" + + "intNatMappingsInterfaceNatMappings\022$\n\030dr" + + "ain_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_dr" + + "ain_nat_ports\030\371\245\377\237\001 \001(\005H\000\210\001\001\022$\n\023num_tota" + + "l_nat_ports\030\200\333\200\217\001 \001(\005H\001\210\001\001\022l\n\rrule_mappi" + + "ngs\030\310\356\352\347\001 \003(\0132Q.google.cloud.compute.v1." + + "VmEndpointNatMappingsInterfaceNatMapping" + + "sNatRuleMappings\022&\n\025source_alias_ip_rang" + + "e\030\330\243\374\321\001 \001(\tH\002\210\001\001\022!\n\021source_virtual_ip\030\377\242" + + "\271G \001(\tH\003\210\001\001B\034\n\032_num_total_drain_nat_port" + + "sB\026\n\024_num_total_nat_portsB\030\n\026_source_ali" + + "as_ip_rangeB\024\n\022_source_virtual_ip\"\266\002\n8Vm" + + "EndpointNatMappingsInterfaceNatMappingsN" + + "atRuleMappings\022$\n\030drain_nat_ip_port_rang" + + "es\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\022\034\n\013rule_number\030\354\333\232\377\001 \001(\005H\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\031VmEndpoin" + + "tNatMappingsList\022\020\n\002id\030\233\032 \001(\tH\000\210\001\001\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\022A\n\006result\030\235\220\267B \003(\0132..google.cl" + + "oud.compute.v1.VmEndpointNatMappings\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.google.cloud.c" + + "ompute.v1.AggregatedListAcceleratorTypes" + + "Request\0326.google.cloud.compute.v1.Accele" + + "ratorTypeAggregatedList\"L\332A\007project\202\323\344\223\002" + + "<\022:/compute/v1/projects/{project}/aggreg" + + "ated/acceleratorTypes\022\334\001\n\003Get\0222.google.c" + + "loud.compute.v1.GetAcceleratorTypeReques" + + "t\032(.google.cloud.compute.v1.AcceleratorT" + + "ype\"w\332A\035project,zone,accelerator_type\202\323\344" + + "\223\002Q\022O/compute/v1/projects/{project}/zone" + + "s/{zone}/acceleratorTypes/{accelerator_t" + + "ype}\022\277\001\n\004List\0224.google.cloud.compute.v1." + + "ListAcceleratorTypesRequest\032,.google.clo" + + "ud.compute.v1.AcceleratorTypeList\"S\332A\014pr" + + "oject,zone\202\323\344\223\002>\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,disk,disks_add_resource_policies_re" + + "quest_resource\212N\016ZoneOperations\202\323\344\223\002|\"L/" + + "compute/v1/projects/{project}/zones/{zon" + + "e}/disks/{disk}/addResourcePolicies:,dis" + + "ks_add_resource_policies_request_resourc" + + "e\022\265\001\n\016AggregatedList\0223.google.cloud.comp" + + "ute.v1.AggregatedListDisksRequest\032+.goog" + + "le.cloud.compute.v1.DiskAggregatedList\"A" + + "\332A\007project\202\323\344\223\0021\022//compute/v1/projects/{" + + "project}/aggregated/disks\022\216\002\n\nBulkInsert" + + "\022..google.cloud.compute.v1.BulkInsertDis" + + "kRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\253\001\332A/project,zone,bulk_insert_disk_", + "resource_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}/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" - + "/{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" + + "ne}/disks/{disk}/removeResourcePolicies:" + + "/disks_remove_resource_policies_request_" + + "resource\022\204\002\n\006Resize\022*.google.cloud.compu" + + "te.v1.ResizeDiskRequest\032\".google.cloud.c" + + "ompute.v1.Operation\"\251\001\332A/project,zone,di" + + "sk,disks_resize_request_resource\212N\016ZoneO" + + "perations\202\323\344\223\002`\"?/compute/v1/projects/{p" + + "roject}/zones/{zone}/disks/{disk}/resize" + + ":\035disks_resize_request_resource\022\220\002\n\014SetI" + + "amPolicy\0220.google.cloud.compute.v1.SetIa" + + "mPolicyDiskRequest\032\037.google.cloud.comput" + + "e.v1.Policy\"\254\001\332A6project,zone,resource,z" + + "one_set_policy_request_resource\202\323\344\223\002m\"I/" + + "compute/v1/projects/{project}/zones/{zon" + + "e}/disks/{resource}/setIamPolicy: zone_s" + + "et_policy_request_resource\022\233\002\n\tSetLabels" + + "\022-.google.cloud.compute.v1.SetLabelsDisk" + "Request\032\".google.cloud.compute.v1.Operat" - + "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" - + "\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" + + "ion\"\272\001\332A6project,zone,resource,zone_set_" + + "labels_request_resource\212N\016ZoneOperations" + + "\202\323\344\223\002j\"F/compute/v1/projects/{project}/z" + + "ones/{zone}/disks/{resource}/setLabels: " + + "zone_set_labels_request_resource\022\324\002\n\025Sta" + + "rtAsyncReplication\0229.google.cloud.comput" + + "e.v1.StartAsyncReplicationDiskRequest\032\"." + + "google.cloud.compute.v1.Operation\"\333\001\332A@p" + + "roject,zone,disk,disks_start_async_repli" + + "cation_request_resource\212N\016ZoneOperations" + + "\202\323\344\223\002\200\001\"N/compute/v1/projects/{project}/" + + "zones/{zone}/disks/{disk}/startAsyncRepl" + + "ication:.disks_start_async_replication_r" + + "equest_resource\022\360\001\n\024StopAsyncReplication" + + "\0228.google.cloud.compute.v1.StopAsyncRepl" + + "icationDiskRequest\032\".google.cloud.comput" + + "e.v1.Operation\"z\332A\021project,zone,disk\212N\016Z" + + "oneOperations\202\323\344\223\002O\"M/compute/v1/project" + + "s/{project}/zones/{zone}/disks/{disk}/st" + + "opAsyncReplication\022\340\002\n\031StopGroupAsyncRep" + + "lication\022=.google.cloud.compute.v1.StopG" + + "roupAsyncReplicationDiskRequest\032\".google" + + ".cloud.compute.v1.Operation\"\337\001\332AAproject" + + ",zone,disks_stop_group_async_replication" + + "_resource_resource\212N\016ZoneOperations\202\323\344\223\002" + + "\203\001\"K/compute/v1/projects/{project}/zones" + + "/{zone}/disks/stopGroupAsyncReplication:" + + "4disks_stop_group_async_replication_reso" + + "urce_resource\022\265\002\n\022TestIamPermissions\0226.g" + + "oogle.cloud.compute.v1.TestIamPermission" + + "sDiskRequest\0320.google.cloud.compute.v1.T" + + "estPermissionsResponse\"\264\001\332A7project,zone" + + ",resource,test_permissions_request_resou" + + "rce\202\323\344\223\002t\"O/compute/v1/projects/{project" + + "}/zones/{zone}/disks/{resource}/testIamP" + + "ermissions:!test_permissions_request_res" + + "ource\022\335\001\n\006Update\022*.google.cloud.compute." + + "v1.UpdateDiskRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\202\001\332A\037project,zone,disk," + + "disk_resource\212N\016ZoneOperations\202\323\344\223\002I28/c" + + "ompute/v1/projects/{project}/zones/{zone" + + "}/disks/{disk}:\rdisk_resource\032r\312A\026comput" + + "e.googleapis.com\322AVhttps://www.googleapi" + + "s.com/auth/compute,https://www.googleapi" + + "s.com/auth/cloud-platform2\251\r\n\023ExternalVp" + + "nGateways\022\363\001\n\006Delete\0228.google.cloud.comp" + + "ute.v1.DeleteExternalVpnGatewayRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\212\001\332A\034" + + "project,external_vpn_gateway\212N\020GlobalOpe" + + "rations\202\323\344\223\002R*P/compute/v1/projects/{pro" + + "ject}/global/externalVpnGateways/{extern" + + "al_vpn_gateway}\022\342\001\n\003Get\0225.google.cloud.c" + + "ompute.v1.GetExternalVpnGatewayRequest\032+" + + ".google.cloud.compute.v1.ExternalVpnGate" + + "way\"w\332A\034project,external_vpn_gateway\202\323\344\223" + + "\002R\022P/compute/v1/projects/{project}/globa" + + "l/externalVpnGateways/{external_vpn_gate" + + "way}\022\204\002\n\006Insert\0228.google.cloud.compute.v" + + "1.InsertExternalVpnGatewayRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\233\001\332A%proje" + + "ct,external_vpn_gateway_resource\212N\020Globa" + + "lOperations\202\323\344\223\002Z\"9/compute/v1/projects/" + + "{project}/global/externalVpnGateways:\035ex" + + "ternal_vpn_gateway_resource\022\275\001\n\004List\0227.g" + + "oogle.cloud.compute.v1.ListExternalVpnGa" + + "tewaysRequest\032/.google.cloud.compute.v1." + + "ExternalVpnGatewayList\"K\332A\007project\202\323\344\223\002;" + + "\0229/compute/v1/projects/{project}/global/" + + "externalVpnGateways\022\262\002\n\tSetLabels\022;.goog" + + "le.cloud.compute.v1.SetLabelsExternalVpn" + + "GatewayRequest\032\".google.cloud.compute.v1" + + ".Operation\"\303\001\332A3project,resource,global_" + + "set_labels_request_resource\212N\020GlobalOper" + + "ations\202\323\344\223\002t\"N/compute/v1/projects/{proj" + + "ect}/global/externalVpnGateways/{resourc" + + "e}/setLabels:\"global_set_labels_request_" + + "resource\022\306\002\n\022TestIamPermissions\022D.google" + + ".cloud.compute.v1.TestIamPermissionsExte" + + "rnalVpnGatewayRequest\0320.google.cloud.com" + + "pute.v1.TestPermissionsResponse\"\267\001\332A2pro" + + "ject,resource,test_permissions_request_r" + + "esource\202\323\344\223\002|\"W/compute/v1/projects/{pro" + + "ject}/global/externalVpnGateways/{resour" + + "ce}/testIamPermissions:!test_permissions" + + "_request_resource\032r\312A\026compute.googleapis" + + ".com\322AVhttps://www.googleapis.com/auth/c" + + "ompute,https://www.googleapis.com/auth/c" + + "loud-platform2\225$\n\020FirewallPolicies\022\307\002\n\016A" + + "ddAssociation\022<.google.cloud.compute.v1." + + "AddAssociationFirewallPolicyRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\322\001\332A4fir" + + "ewall_policy,firewall_policy_association" + + "_resource\212N\034GlobalOrganizationOperations" + + "\202\323\344\223\002v\"N/compute/v1/locations/global/fir" + + "ewallPolicies/{firewall_policy}/addAssoc" + + "iation:$firewall_policy_association_reso" + + "urce\022\244\002\n\007AddRule\0225.google.cloud.compute." + + "v1.AddRuleFirewallPolicyRequest\032\".google" + + ".cloud.compute.v1.Operation\"\275\001\332A-firewal" + + "l_policy,firewall_policy_rule_resource\212N" + + "\034GlobalOrganizationOperations\202\323\344\223\002h\"G/co" + + "mpute/v1/locations/global/firewallPolici" + + "es/{firewall_policy}/addRule:\035firewall_p" + + "olicy_rule_resource\022\360\001\n\nCloneRules\0228.goo" + + "gle.cloud.compute.v1.CloneRulesFirewallP" + + "olicyRequest\032\".google.cloud.compute.v1.O" + + "peration\"\203\001\332A\017firewall_policy\212N\034GlobalOr" + + "ganizationOperations\202\323\344\223\002L\"J/compute/v1/" + + "locations/global/firewallPolicies/{firew" + + "all_policy}/cloneRules\022\334\001\n\006Delete\0224.goog" + + "le.cloud.compute.v1.DeleteFirewallPolicy" + + "Request\032\".google.cloud.compute.v1.Operat" + + "ion\"x\332A\017firewall_policy\212N\034GlobalOrganiza" + + "tionOperations\202\323\344\223\002A*?/compute/v1/locati" + + "ons/global/firewallPolicies/{firewall_po" + + "licy}\022\274\001\n\003Get\0221.google.cloud.compute.v1." + + "GetFirewallPolicyRequest\032\'.google.cloud." + + "compute.v1.FirewallPolicy\"Y\332A\017firewall_p" + + "olicy\202\323\344\223\002A\022?/compute/v1/locations/globa" + + "l/firewallPolicies/{firewall_policy}\022\354\001\n" + + "\016GetAssociation\022<.google.cloud.compute.v" + + "1.GetAssociationFirewallPolicyRequest\0322." + + "google.cloud.compute.v1.FirewallPolicyAs" + + "sociation\"h\332A\017firewall_policy\202\323\344\223\002P\022N/co" + + "mpute/v1/locations/global/firewallPolici" + + "es/{firewall_policy}/getAssociation\022\305\001\n\014" + + "GetIamPolicy\022:.google.cloud.compute.v1.G" + + "etIamPolicyFirewallPolicyRequest\032\037.googl" + + "e.cloud.compute.v1.Policy\"X\332A\010resource\202\323" + + "\344\223\002G\022E/compute/v1/locations/global/firew" + + "allPolicies/{resource}/getIamPolicy\022\320\001\n\007" + + "GetRule\0225.google.cloud.compute.v1.GetRul" + + "eFirewallPolicyRequest\032+.google.cloud.co" + + "mpute.v1.FirewallPolicyRule\"a\332A\017firewall" + + "_policy\202\323\344\223\002I\022G/compute/v1/locations/glo" + + "bal/firewallPolicies/{firewall_policy}/g" + + "etRule\022\370\001\n\006Insert\0224.google.cloud.compute" + + ".v1.InsertFirewallPolicyRequest\032\".google" + + ".cloud.compute.v1.Operation\"\223\001\332A\"parent_" + + "id,firewall_policy_resource\212N\034GlobalOrga" + + "nizationOperations\202\323\344\223\002I\"-/compute/v1/lo" + + "cations/global/firewallPolicies:\030firewal" + + "l_policy_resource\022\243\001\n\004List\0224.google.clou" + + "d.compute.v1.ListFirewallPoliciesRequest" + + "\032+.google.cloud.compute.v1.FirewallPolic" + + "yList\"8\332A\000\202\323\344\223\002/\022-/compute/v1/locations/" + + "global/firewallPolicies\022\340\001\n\020ListAssociat" + + "ions\022>.google.cloud.compute.v1.ListAssoc" + + "iationsFirewallPolicyRequest\032A.google.cl" + + "oud.compute.v1.FirewallPoliciesListAssoc" + + "iationsResponse\"I\332A\000\202\323\344\223\002@\022>/compute/v1/" + + "locations/global/firewallPolicies/listAs" + + "sociations\022\350\001\n\004Move\0222.google.cloud.compu" + + "te.v1.MoveFirewallPolicyRequest\032\".google" + + ".cloud.compute.v1.Operation\"\207\001\332A\031firewal" + + "l_policy,parent_id\212N\034GlobalOrganizationO" + + "perations\202\323\344\223\002F\"D/compute/v1/locations/g" + + "lobal/firewallPolicies/{firewall_policy}" + + "/move\022\216\002\n\005Patch\0223.google.cloud.compute.v" + + "1.PatchFirewallPolicyRequest\032\".google.cl" + + "oud.compute.v1.Operation\"\253\001\332A(firewall_p" + + "olicy,firewall_policy_resource\212N\034GlobalO" + + "rganizationOperations\202\323\344\223\002[2?/compute/v1" + + "/locations/global/firewallPolicies/{fire" + + "wall_policy}:\030firewall_policy_resource\022\252" + + "\002\n\tPatchRule\0227.google.cloud.compute.v1.P" + + "atchRuleFirewallPolicyRequest\032\".google.c" + + "loud.compute.v1.Operation\"\277\001\332A-firewall_" + + "policy,firewall_policy_rule_resource\212N\034G" + + "lobalOrganizationOperations\202\323\344\223\002j\"I/comp" + + "ute/v1/locations/global/firewallPolicies" + + "/{firewall_policy}/patchRule:\035firewall_p" + + "olicy_rule_resource\022\205\002\n\021RemoveAssociatio" + + "n\022?.google.cloud.compute.v1.RemoveAssoci" + + "ationFirewallPolicyRequest\032\".google.clou" + + "d.compute.v1.Operation\"\212\001\332A\017firewall_pol" + + "icy\212N\034GlobalOrganizationOperations\202\323\344\223\002S" + + "\"Q/compute/v1/locations/global/firewallP" + + "olicies/{firewall_policy}/removeAssociat" + + "ion\022\360\001\n\nRemoveRule\0228.google.cloud.comput" + + "e.v1.RemoveRuleFirewallPolicyRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"\203\001\332A\017fi" + + "rewall_policy\212N\034GlobalOrganizationOperat" + + "ions\202\323\344\223\002L\"J/compute/v1/locations/global" + + "/firewallPolicies/{firewall_policy}/remo" + + "veRule\022\247\002\n\014SetIamPolicy\022:.google.cloud.c" + + "ompute.v1.SetIamPolicyFirewallPolicyRequ" + + "est\032\037.google.cloud.compute.v1.Policy\"\271\001\332" + + "A8resource,global_organization_set_polic" + + "y_request_resource\202\323\344\223\002x\"E/compute/v1/lo" + + "cations/global/firewallPolicies/{resourc" + + "e}/setIamPolicy:/global_organization_set" + + "_policy_request_resource\022\256\002\n\022TestIamPerm" + + "issions\022@.google.cloud.compute.v1.TestIa" + + "mPermissionsFirewallPolicyRequest\0320.goog" + + "le.cloud.compute.v1.TestPermissionsRespo" + + "nse\"\243\001\332A*resource,test_permissions_reque" + + "st_resource\202\323\344\223\002p\"K/compute/v1/locations" + + "/global/firewallPolicies/{resource}/test" + + "IamPermissions:!test_permissions_request" + + "_resource\032r\312A\026compute.googleapis.com\322AVh" + + "ttps://www.googleapis.com/auth/compute,h" + + "ttps://www.googleapis.com/auth/cloud-pla" + + "tform2\317\n\n\tFirewalls\022\306\001\n\006Delete\022..google." + + "cloud.compute.v1.DeleteFirewallRequest\032\"" + + ".google.cloud.compute.v1.Operation\"h\332A\020p" + + "roject,firewall\212N\020GlobalOperations\202\323\344\223\002<" + + "*:/compute/v1/projects/{project}/global/" + + "firewalls/{firewall}\022\254\001\n\003Get\022+.google.cl" + + "oud.compute.v1.GetFirewallRequest\032!.goog" + + "le.cloud.compute.v1.Firewall\"U\332A\020project" + + ",firewall\202\323\344\223\002<\022:/compute/v1/projects/{p" + + "roject}/global/firewalls/{firewall}\022\327\001\n\006" + + "Insert\022..google.cloud.compute.v1.InsertF" + + "irewallRequest\032\".google.cloud.compute.v1" + + ".Operation\"y\332A\031project,firewall_resource" + + "\212N\020GlobalOperations\202\323\344\223\002D\"//compute/v1/p" + + "rojects/{project}/global/firewalls:\021fire" + + "wall_resource\022\237\001\n\004List\022-.google.cloud.co" + + "mpute.v1.ListFirewallsRequest\032%.google.c" + + "loud.compute.v1.FirewallList\"A\332A\007project" + + "\202\323\344\223\0021\022//compute/v1/projects/{project}/g" + + "lobal/firewalls\022\352\001\n\005Patch\022-.google.cloud" + + ".compute.v1.PatchFirewallRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\215\001\332A\"projec" + + "t,firewall,firewall_resource\212N\020GlobalOpe" + + "rations\202\323\344\223\002O2:/compute/v1/projects/{pro" + + "ject}/global/firewalls/{firewall}:\021firew" + + "all_resource\022\354\001\n\006Update\022..google.cloud.c" + + "ompute.v1.UpdateFirewallRequest\032\".google" + + ".cloud.compute.v1.Operation\"\215\001\332A\"project" + + ",firewall,firewall_resource\212N\020GlobalOper" + + "ations\202\323\344\223\002O\032:/compute/v1/projects/{proj" + + "ect}/global/firewalls/{firewall}:\021firewa" + + "ll_resource\032r\312A\026compute.googleapis.com\322A" + + "Vhttps://www.googleapis.com/auth/compute" + + ",https://www.googleapis.com/auth/cloud-p" + + "latform2\231\021\n\017ForwardingRules\022\323\001\n\016Aggregat" + + "edList\022=.google.cloud.compute.v1.Aggrega" + + "tedListForwardingRulesRequest\0325.google.c" + + "loud.compute.v1.ForwardingRuleAggregated" + + "List\"K\332A\007project\202\323\344\223\002;\0229/compute/v1/proj" + + "ects/{project}/aggregated/forwardingRule" + + "s\022\362\001\n\006Delete\0224.google.cloud.compute.v1.D" + + "eleteForwardingRuleRequest\032\".google.clou" + + "d.compute.v1.Operation\"\215\001\332A\036project,regi" + + "on,forwarding_rule\212N\020RegionOperations\202\323\344" + + "\223\002S*Q/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" + + "_rule}\022\335\001\n\003Get\0221.google.cloud.compute.v1" + + ".GetForwardingRuleRequest\032\'.google.cloud" + + ".compute.v1.ForwardingRule\"z\332A\036project,r" + + "egion,forwarding_rule\202\323\344\223\002S\022Q/compute/v1" + + "/projects/{project}/regions/{region}/for" + + "wardingRules/{forwarding_rule}\022\203\002\n\006Inser" + + "t\0224.google.cloud.compute.v1.InsertForwar" + + "dingRuleRequest\032\".google.cloud.compute.v" + + "1.Operation\"\236\001\332A\'project,region,forwardi" + + "ng_rule_resource\212N\020RegionOperations\202\323\344\223\002" + + "[\"?/compute/v1/projects/{project}/region" + + "s/{region}/forwardingRules:\030forwarding_r" + + "ule_resource\022\302\001\n\004List\0223.google.cloud.com" + + "pute.v1.ListForwardingRulesRequest\032+.goo" + + "gle.cloud.compute.v1.ForwardingRuleList\"" + + "X\332A\016project,region\202\323\344\223\002A\022?/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\"w\332A\030project,address_resource\212N\020GlobalO" - + "perations\202\323\344\223\002C\"//compute/v1/projects/{p" - + "roject}/global/addresses:\020address_resour" - + "ce\022\244\001\n\004List\0223.google.cloud.compute.v1.Li" - + "stGlobalAddressesRequest\032$.google.cloud." - + "compute.v1.AddressList\"A\332A\007project\202\323\344\223\0021" - + "\022//compute/v1/projects/{project}/global/" - + "addresses\022\232\002\n\004Move\0221.google.cloud.comput" - + "e.v1.MoveGlobalAddressRequest\032\".google.c" - + "loud.compute.v1.Operation\"\272\001\332A6project,a" - + "ddress,global_addresses_move_request_res" - + "ource\212N\020GlobalOperations\202\323\344\223\002h\">/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" + + "dingRules\022\243\002\n\005Patch\0223.google.cloud.compu" + + "te.v1.PatchForwardingRuleRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\300\001\332A7projec" + + "t,region,forwarding_rule,forwarding_rule" + + "_resource\212N\020RegionOperations\202\323\344\223\002m2Q/com" + + "pute/v1/projects/{project}/regions/{regi" + + "on}/forwardingRules/{forwarding_rule}:\030f" + + "orwarding_rule_resource\022\273\002\n\tSetLabels\0227." + + "google.cloud.compute.v1.SetLabelsForward" + + "ingRuleRequest\032\".google.cloud.compute.v1" + + ".Operation\"\320\001\332A:project,region,resource," + + "region_set_labels_request_resource\212N\020Reg" + + "ionOperations\202\323\344\223\002z\"T/compute/v1/project" + + "s/{project}/regions/{region}/forwardingR" + + "ules/{resource}/setLabels:\"region_set_la" + + "bels_request_resource\022\267\002\n\tSetTarget\0227.go" + + "ogle.cloud.compute.v1.SetTargetForwardin" + + "gRuleRequest\032\".google.cloud.compute.v1.O" + + "peration\"\314\001\332A8project,region,forwarding_" + + "rule,target_reference_resource\212N\020RegionO" + + "perations\202\323\344\223\002x\"[/compute/v1/projects/{p" + + "roject}/regions/{region}/forwardingRules" + + "/{forwarding_rule}/setTarget:\031target_ref" + + "erence_resource\032r\312A\026compute.googleapis.c" + + "om\322AVhttps://www.googleapis.com/auth/com" + + "pute,https://www.googleapis.com/auth/clo" + + "ud-platform2\311\013\n\017GlobalAddresses\022\311\001\n\006Dele" + + "te\0223.google.cloud.compute.v1.DeleteGloba" + + "lAddressRequest\032\".google.cloud.compute.v" + + "1.Operation\"f\332A\017project,address\212N\020Global" + + "Operations\202\323\344\223\002;*9/compute/v1/projects/{" + + "project}/global/addresses/{address}\022\256\001\n\003" + + "Get\0220.google.cloud.compute.v1.GetGlobalA" + + "ddressRequest\032 .google.cloud.compute.v1." + + "Address\"S\332A\017project,address\202\323\344\223\002;\0229/comp" + + "ute/v1/projects/{project}/global/address" + + "es/{address}\022\332\001\n\006Insert\0223.google.cloud.c" + + "ompute.v1.InsertGlobalAddressRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"w\332A\030pro" + + "ject,address_resource\212N\020GlobalOperations" + + "\202\323\344\223\002C\"//compute/v1/projects/{project}/g" + + "lobal/addresses:\020address_resource\022\244\001\n\004Li" + + "st\0223.google.cloud.compute.v1.ListGlobalA" + + "ddressesRequest\032$.google.cloud.compute.v" + + "1.AddressList\"A\332A\007project\202\323\344\223\0021\022//comput" + + "e/v1/projects/{project}/global/addresses" + + "\022\232\002\n\004Move\0221.google.cloud.compute.v1.Move" + + "GlobalAddressRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\272\001\332A6project,address,gl" + + "obal_addresses_move_request_resource\212N\020G" + + "lobalOperations\202\323\344\223\002h\">/compute/v1/proje" + + "cts/{project}/global/addresses/{address}" + + "/move:&global_addresses_move_request_res" + + "ource\022\243\002\n\tSetLabels\0226.google.cloud.compu" + + "te.v1.SetLabelsGlobalAddressRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\271\001\332A3pro" + + "ject,resource,global_set_labels_request_" + + "resource\212N\020GlobalOperations\202\323\344\223\002j\"D/comp" + + "ute/v1/projects/{project}/global/address" + + "es/{resource}/setLabels:\"global_set_labe" + + "ls_request_resource\032r\312A\026compute.googleap" + + "is.com\322AVhttps://www.googleapis.com/auth" + + "/compute,https://www.googleapis.com/auth" + + "/cloud-platform2\373\016\n\025GlobalForwardingRule" + + "s\022\346\001\n\006Delete\022:.google.cloud.compute.v1.D" + + "eleteGlobalForwardingRuleRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"|\332A\027project" + + ",forwarding_rule\212N\020GlobalOperations\202\323\344\223\002" + + "I*G/compute/v1/projects/{project}/global" + + "/forwardingRules/{forwarding_rule}\022\322\001\n\003G" + + "et\0227.google.cloud.compute.v1.GetGlobalFo" + + "rwardingRuleRequest\032\'.google.cloud.compu" + + "te.v1.ForwardingRule\"i\332A\027project,forward" + + "ing_rule\202\323\344\223\002I\022G/compute/v1/projects/{pr" + + "oject}/global/forwardingRules/{forwardin" + + "g_rule}\022\370\001\n\006Insert\022:.google.cloud.comput", + "e.v1.InsertGlobalForwardingRuleRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\215\001\332A " + + "project,forwarding_rule_resource\212N\020Globa" + + "lOperations\202\323\344\223\002Q\"5/compute/v1/projects/" + + "{project}/global/forwardingRules:\030forwar" + + "ding_rule_resource\022\267\001\n\004List\0229.google.clo" + + "ud.compute.v1.ListGlobalForwardingRulesR" + + "equest\032+.google.cloud.compute.v1.Forward" + + "ingRuleList\"G\332A\007project\202\323\344\223\0027\0225/compute/" + + "v1/projects/{project}/global/forwardingR" + + "ules\022\230\002\n\005Patch\0229.google.cloud.compute.v1" + + ".PatchGlobalForwardingRuleRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\257\001\332A0proje" + + "ct,forwarding_rule,forwarding_rule_resou" + + "rce\212N\020GlobalOperations\202\323\344\223\002c2G/compute/v" + + "1/projects/{project}/global/forwardingRu" + + "les/{forwarding_rule}:\030forwarding_rule_r" + + "esource\022\260\002\n\tSetLabels\022=.google.cloud.com" + + "pute.v1.SetLabelsGlobalForwardingRuleReq" + "uest\032\".google.cloud.compute.v1.Operation" - + "\"\271\001\332A3project,resource,global_set_labels" + + "\"\277\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\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\"\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\"" - + "\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" + + "\002p\"J/compute/v1/projects/{project}/globa" + + "l/forwardingRules/{resource}/setLabels:\"" + + "global_set_labels_request_resource\022\254\002\n\tS" + + "etTarget\022=.google.cloud.compute.v1.SetTa" + + "rgetGlobalForwardingRuleRequest\032\".google" + + ".cloud.compute.v1.Operation\"\273\001\332A1project" + + ",forwarding_rule,target_reference_resour" + + "ce\212N\020GlobalOperations\202\323\344\223\002n\"Q/compute/v1" + + "/projects/{project}/global/forwardingRul" + + "es/{forwarding_rule}/setTarget:\031target_r" + + "eference_resource\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" + + "loud-platform2\254\022\n\033GlobalNetworkEndpointG" + + "roups\022\274\003\n\026AttachNetworkEndpoints\022P.googl" + + "e.cloud.compute.v1.AttachNetworkEndpoint" + + "sGlobalNetworkEndpointGroupRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\253\002\332A_proj" + + "ect,network_endpoint_group,global_networ" + + "k_endpoint_groups_attach_endpoints_reque" + + "st_resource\212N\020GlobalOperations\202\323\344\223\002\257\001\"k/" + + "compute/v1/projects/{project}/global/net" + + "workEndpointGroups/{network_endpoint_gro" + + "up}/attachNetworkEndpoints:@global_netwo" + + "rk_endpoint_groups_attach_endpoints_requ" + + "est_resource\022\201\002\n\006Delete\022@.google.cloud.c" + + "ompute.v1.DeleteGlobalNetworkEndpointGro" + + "upRequest\032\".google.cloud.compute.v1.Oper" + + "ation\"\220\001\332A\036project,network_endpoint_grou" + + "p\212N\020GlobalOperations\202\323\344\223\002V*T/compute/v1/" + + "projects/{project}/global/networkEndpoin" + + "tGroups/{network_endpoint_group}\022\274\003\n\026Det" + + "achNetworkEndpoints\022P.google.cloud.compu" + + "te.v1.DetachNetworkEndpointsGlobalNetwor" + + "kEndpointGroupRequest\032\".google.cloud.com" + + "pute.v1.Operation\"\253\002\332A_project,network_e" + + "ndpoint_group,global_network_endpoint_gr" + + "oups_detach_endpoints_request_resource\212N" + + "\020GlobalOperations\202\323\344\223\002\257\001\"k/compute/v1/pr" + + "ojects/{project}/global/networkEndpointG" + + "roups/{network_endpoint_group}/detachNet" + + "workEndpoints:@global_network_endpoint_g" + + "roups_detach_endpoints_request_resource\022" + + "\362\001\n\003Get\022=.google.cloud.compute.v1.GetGlo" + + "balNetworkEndpointGroupRequest\032-.google." + + "cloud.compute.v1.NetworkEndpointGroup\"}\332" + + "A\036project,network_endpoint_group\202\323\344\223\002V\022T" + + "/compute/v1/projects/{project}/global/ne" + + "tworkEndpointGroups/{network_endpoint_gr" + + "oup}\022\222\002\n\006Insert\022@.google.cloud.compute.v" + + "1.InsertGlobalNetworkEndpointGroupReques" + + "t\032\".google.cloud.compute.v1.Operation\"\241\001" + + "\332A\'project,network_endpoint_group_resour" + + "ce\212N\020GlobalOperations\202\323\344\223\002^\";/compute/v1" + + "/projects/{project}/global/networkEndpoi" + + "ntGroups:\037network_endpoint_group_resourc" + + "e\022\311\001\n\004List\022?.google.cloud.compute.v1.Lis" + + "tGlobalNetworkEndpointGroupsRequest\0321.go" + + "ogle.cloud.compute.v1.NetworkEndpointGro" + + "upList\"M\332A\007project\202\323\344\223\002=\022;/compute/v1/pr" + + "ojects/{project}/global/networkEndpointG" + + "roups\022\300\002\n\024ListNetworkEndpoints\022O.google." + + "cloud.compute.v1.ListNetworkEndpointsGlo" + + "balNetworkEndpointGroupsRequest\032B.google" + + ".cloud.compute.v1.NetworkEndpointGroupsL" + + "istNetworkEndpoints\"\222\001\332A\036project,network" + + "_endpoint_group\202\323\344\223\002k\"i/compute/v1/proje" + + "cts/{project}/global/networkEndpointGrou" + + "ps/{network_endpoint_group}/listNetworkE" + + "ndpoints\032r\312A\026compute.googleapis.com\322AVht" + + "tps://www.googleapis.com/auth/compute,ht" + + "tps://www.googleapis.com/auth/cloud-plat" + + "form2\320\010\n\020GlobalOperations\022\312\001\n\016Aggregated" + + "List\022>.google.cloud.compute.v1.Aggregate" + + "dListGlobalOperationsRequest\0320.google.cl" + + "oud.compute.v1.OperationAggregatedList\"F" + + "\332A\007project\202\323\344\223\0026\0224/compute/v1/projects/{" + + "project}/aggregated/operations\022\321\001\n\006Delet" + + "e\0225.google.cloud.compute.v1.DeleteGlobal" + + "OperationRequest\0326.google.cloud.compute." + + "v1.DeleteGlobalOperationResponse\"X\332A\021pro" + + "ject,operation\202\323\344\223\002>*\022.google.cloud.compute.v1.Ge" + + "tGlobalOrganizationOperationRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"J\332A\toper" + + "ation\220N\001\202\323\344\223\0025\0223/compute/v1/locations/gl" + + "obal/operations/{operation}\022\244\001\n\004List\022@.g" + + "oogle.cloud.compute.v1.ListGlobalOrganiz" + + "ationOperationsRequest\032&.google.cloud.co" + + "mpute.v1.OperationList\"2\332A\000\202\323\344\223\002)\022\'/comp" + + "ute/v1/locations/global/operations\032r\312A\026c" + + "ompute.googleapis.com\322AVhttps://www.goog" + + "leapis.com/auth/compute,https://www.goog" + + "leapis.com/auth/cloud-platform2\321\013\n\035Globa" + + "lPublicDelegatedPrefixes\022\207\002\n\006Delete\022B.go" + + "ogle.cloud.compute.v1.DeleteGlobalPublic" + + "DelegatedPrefixeRequest\032\".google.cloud.c" + + "ompute.v1.Operation\"\224\001\332A\037project,public_" + + "delegated_prefix\212N\020GlobalOperations\202\323\344\223\002" + + "Y*W/compute/v1/projects/{project}/global" + + "/publicDelegatedPrefixes/{public_delegat" + + "ed_prefix}\022\372\001\n\003Get\022?.google.cloud.comput" + + "e.v1.GetGlobalPublicDelegatedPrefixeRequ" + + "est\032..google.cloud.compute.v1.PublicDele" + + "gatedPrefix\"\201\001\332A\037project,public_delegate" + + "d_prefix\202\323\344\223\002Y\022W/compute/v1/projects/{pr" + + "oject}/global/publicDelegatedPrefixes/{p" + + "ublic_delegated_prefix}\022\230\002\n\006Insert\022B.goo" + + "gle.cloud.compute.v1.InsertGlobalPublicD" + + "elegatedPrefixeRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\245\001\332A(project,public_d" + + "elegated_prefix_resource\212N\020GlobalOperati" + + "ons\202\323\344\223\002a\"=/compute/v1/projects/{project" + + "}/global/publicDelegatedPrefixes: public" + + "_delegated_prefix_resource\022\316\001\n\004List\022A.go" + + "ogle.cloud.compute.v1.ListGlobalPublicDe" + + "legatedPrefixesRequest\0322.google.cloud.co" + + "mpute.v1.PublicDelegatedPrefixList\"O\332A\007p" + + "roject\202\323\344\223\002?\022=/compute/v1/projects/{proj" + + "ect}/global/publicDelegatedPrefixes\022\310\002\n\005" + + "Patch\022A.google.cloud.compute.v1.PatchGlo" + "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" + + "e.cloud.compute.v1.Operation\"\327\001\332A@projec" + + "t,public_delegated_prefix,public_delegat" + + "ed_prefix_resource\212N\020GlobalOperations\202\323\344" + + "\223\002{2W/compute/v1/projects/{project}/glob" + + "al/publicDelegatedPrefixes/{public_deleg" + + "ated_prefix}: public_delegated_prefix_re" + + "source\032r\312A\026compute.googleapis.com\322AVhttp" + + "s://www.googleapis.com/auth/compute,http" + + "s://www.googleapis.com/auth/cloud-platfo" + + "rm2\203\r\n\014HealthChecks\022\313\001\n\016AggregatedList\022:" + + ".google.cloud.compute.v1.AggregatedListH" + + "ealthChecksRequest\0323.google.cloud.comput" + + "e.v1.HealthChecksAggregatedList\"H\332A\007proj" + + "ect\202\323\344\223\0028\0226/compute/v1/projects/{project" + + "}/aggregated/healthChecks\022\324\001\n\006Delete\0221.g" + + "oogle.cloud.compute.v1.DeleteHealthCheck" + + "Request\032\".google.cloud.compute.v1.Operat" + + "ion\"s\332A\024project,health_check\212N\020GlobalOpe" + + "rations\202\323\344\223\002C*A/compute/v1/projects/{pro" + + "ject}/global/healthChecks/{health_check}" + + "\022\275\001\n\003Get\022..google.cloud.compute.v1.GetHe" + + "althCheckRequest\032$.google.cloud.compute." + + "v1.HealthCheck\"`\332A\024project,health_check\202" + + "\323\344\223\002C\022A/compute/v1/projects/{project}/gl" + + "obal/healthChecks/{health_check}\022\346\001\n\006Ins" + + "ert\0221.google.cloud.compute.v1.InsertHeal" + + "thCheckRequest\032\".google.cloud.compute.v1" + + ".Operation\"\204\001\332A\035project,health_check_res" + + "ource\212N\020GlobalOperations\202\323\344\223\002K\"2/compute" + + "/v1/projects/{project}/global/healthChec" + + "ks:\025health_check_resource\022\250\001\n\004List\0220.goo" + + "gle.cloud.compute.v1.ListHealthChecksReq" + + "uest\032(.google.cloud.compute.v1.HealthChe" + + "ckList\"D\332A\007project\202\323\344\223\0024\0222/compute/v1/pr" + + "ojects/{project}/global/healthChecks\022\200\002\n" + + "\005Patch\0220.google.cloud.compute.v1.PatchHe" + "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" + + "v1.Operation\"\240\001\332A*project,health_check,h" + + "ealth_check_resource\212N\020GlobalOperations\202" + + "\323\344\223\002Z2A/compute/v1/projects/{project}/gl" + + "obal/healthChecks/{health_check}:\025health" + + "_check_resource\022\202\002\n\006Update\0221.google.clou" + + "d.compute.v1.UpdateHealthCheckRequest\032\"." + + "google.cloud.compute.v1.Operation\"\240\001\332A*p" + + "roject,health_check,health_check_resourc" + + "e\212N\020GlobalOperations\202\323\344\223\002Z\032A/compute/v1/" + + "projects/{project}/global/healthChecks/{" + + "health_check}:\025health_check_resource\032r\312A" + + "\026compute.googleapis.com\322AVhttps://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" + + "ogleapis.com/auth/cloud-platform2\204\003\n\020Ima" + + "geFamilyViews\022\310\001\n\003Get\0222.google.cloud.com" + + "pute.v1.GetImageFamilyViewRequest\032(.goog" + + "le.cloud.compute.v1.ImageFamilyView\"c\332A\023" + + "project,zone,family\202\323\344\223\002G\022E/compute/v1/p" + + "rojects/{project}/zones/{zone}/imageFami" + + "lyViews/{family}\032\244\001\312A\026compute.googleapis" + + ".com\322A\207\001https://www.googleapis.com/auth/" + + "compute.readonly,https://www.googleapis." + + "com/auth/compute,https://www.googleapis." + + "com/auth/cloud-platform2\374\023\n\006Images\022\272\001\n\006D" + + "elete\022+.google.cloud.compute.v1.DeleteIm" + + "ageRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"_\332A\rproject,image\212N\020GlobalOperati" + + "ons\202\323\344\223\0026*4/compute/v1/projects/{project" + + "}/global/images/{image}\022\204\002\n\tDeprecate\022.." + + "google.cloud.compute.v1.DeprecateImageRe" + + "quest\032\".google.cloud.compute.v1.Operatio" + + "n\"\242\001\332A)project,image,deprecation_status_" + + "resource\212N\020GlobalOperations\202\323\344\223\002]\">/comp" + + "ute/v1/projects/{project}/global/images/" + + "{image}/deprecate:\033deprecation_status_re" + + "source\022\235\001\n\003Get\022(.google.cloud.compute.v1" + + ".GetImageRequest\032\036.google.cloud.compute." + + "v1.Image\"L\332A\rproject,image\202\323\344\223\0026\0224/compu" + + "te/v1/projects/{project}/global/images/{" + + "image}\022\272\001\n\rGetFromFamily\0222.google.cloud." + + "compute.v1.GetFromFamilyImageRequest\032\036.g" + + "oogle.cloud.compute.v1.Image\"U\332A\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.ListI" + + "magesRequest\032\".google.cloud.compute.v1.I" + + "mageList\">\332A\007project\202\323\344\223\002.\022,/compute/v1/" + + "projects/{project}/global/images\022\327\001\n\005Pat" + + "ch\022*.google.cloud.compute.v1.PatchImageR" + "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" + + "on\"~\332A\034project,image,image_resource\212N\020Gl" + + "obalOperations\202\323\344\223\002F24/compute/v1/projec" + + "ts/{project}/global/images/{image}:\016imag" + + "e_resource\022\213\002\n\014SetIamPolicy\0221.google.clo" + + "ud.compute.v1.SetIamPolicyImageRequest\032\037" + + ".google.cloud.compute.v1.Policy\"\246\001\332A3pro" + + "ject,resource,global_set_policy_request_" + + "resource\202\323\344\223\002j\"D/compute/v1/projects/{pr" + + "oject}/global/images/{resource}/setIamPo" + + "licy:\"global_set_policy_request_resource" + + "\022\230\002\n\tSetLabels\022..google.cloud.compute.v1" + + ".SetLabelsImageRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\266\001\332A3project,resource" + + ",global_set_labels_request_resource\212N\020Gl" + + "obalOperations\202\323\344\223\002g\"A/compute/v1/projec" + + "ts/{project}/global/images/{resource}/se" + + "tLabels:\"global_set_labels_request_resou" + + "rce\022\254\002\n\022TestIamPermissions\0227.google.clou" + + "d.compute.v1.TestIamPermissionsImageRequ" + + "est\0320.google.cloud.compute.v1.TestPermis" + + "sionsResponse\"\252\001\332A2project,resource,test" + + "_permissions_request_resource\202\323\344\223\002o\"J/co" + + "mpute/v1/projects/{project}/global/image" + + "s/{resource}/testIamPermissions:!test_pe" + + "rmissions_request_resource\032r\312A\026compute.g" + + "oogleapis.com\322AVhttps://www.googleapis.c" + + "om/auth/compute,https://www.googleapis.c" + + "om/auth/cloud-platform2\242\016\n\"InstanceGroup" + + "ManagerResizeRequests\022\311\002\n\006Cancel\022G.googl" + + "e.cloud.compute.v1.CancelInstanceGroupMa" + + "nagerResizeRequestRequest\032\".google.cloud" + + ".compute.v1.Operation\"\321\001\332A2project,zone," + + "instance_group_manager,resize_request\212N\016" + + "ZoneOperations\202\323\344\223\002\204\001\"\201\001/compute/v1/proj" + + "ects/{project}/zones/{zone}/instanceGrou" + + "pManagers/{instance_group_manager}/resiz" + + "eRequests/{resize_request}/cancel\022\300\002\n\006De" + + "lete\022G.google.cloud.compute.v1.DeleteIns" + + "tanceGroupManagerResizeRequestRequest\032\"." + + "google.cloud.compute.v1.Operation\"\310\001\332A2p" + + "roject,zone,instance_group_manager,resiz" + + "e_request\212N\016ZoneOperations\202\323\344\223\002|*z/compu" + + "te/v1/projects/{project}/zones/{zone}/in" + + "stanceGroupManagers/{instance_group_mana" + + "ger}/resizeRequests/{resize_request}\022\301\002\n" + + "\003Get\022D.google.cloud.compute.v1.GetInstan" + + "ceGroupManagerResizeRequestRequest\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" - + "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" + + "rResizeRequest\"\267\001\332A2project,zone,instanc" + + "e_group_manager,resize_request\202\323\344\223\002|\022z/c" + + "ompute/v1/projects/{project}/zones/{zone" + + "}/instanceGroupManagers/{instance_group_" + + "manager}/resizeRequests/{resize_request}" + + "\022\200\003\n\006Insert\022G.google.cloud.compute.v1.In" + + "sertInstanceGroupManagerResizeRequestReq" + + "uest\032\".google.cloud.compute.v1.Operation" + + "\"\210\002\332ARproject,zone,instance_group_manage" + + "r,instance_group_manager_resize_request_" + + "resource\212N\016ZoneOperations\202\323\344\223\002\233\001\"i/compu" + + "te/v1/projects/{project}/zones/{zone}/in" + + "stanceGroupManagers/{instance_group_mana" + + "ger}/resizeRequests:.instance_group_mana" + + "ger_resize_request_resource\022\261\002\n\004List\022F.g" + + "oogle.cloud.compute.v1.ListInstanceGroup" + + "ManagerResizeRequestsRequest\032G.google.cl" + + "oud.compute.v1.InstanceGroupManagerResiz" + + "eRequestsListResponse\"\227\001\332A#project,zone," + + "instance_group_manager\202\323\344\223\002k\022i/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" + + "/resizeRequests\032r\312A\026compute.googleapis.c" + + "om\322AVhttps://www.googleapis.com/auth/com" + + "pute,https://www.googleapis.com/auth/clo" + + "ud-platform2\325E\n\025InstanceGroupManagers\022\241\003" + + "\n\020AbandonInstances\022D.google.cloud.comput" + + "e.v1.AbandonInstancesInstanceGroupManage" + + "rRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\242\002\332A^project,zone,instance_group_ma" + + "nager,instance_group_managers_abandon_in" + + "stances_request_resource\212N\016ZoneOperation" + + "s\202\323\344\223\002\251\001\"k/compute/v1/projects/{project}" + + "/zones/{zone}/instanceGroupManagers/{ins" + + "tance_group_manager}/abandonInstances::i" + + "nstance_group_managers_abandon_instances" + + "_request_resource\022\345\001\n\016AggregatedList\022C.g" + + "oogle.cloud.compute.v1.AggregatedListIns" + + "tanceGroupManagersRequest\032;.google.cloud" + + ".compute.v1.InstanceGroupManagerAggregat" + + "edList\"Q\332A\007project\202\323\344\223\002A\022?/compute/v1/pr" + + "ojects/{project}/aggregated/instanceGrou" + + "pManagers\022\256\003\n\027ApplyUpdatesToInstances\022K." + + "google.cloud.compute.v1.ApplyUpdatesToIn" + + "stancesInstanceGroupManagerRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\241\002\332AZproj" + + "ect,zone,instance_group_manager,instance" + + "_group_managers_apply_updates_request_re" + + "source\212N\016ZoneOperations\202\323\344\223\002\254\001\"r/compute" + + "/v1/projects/{project}/zones/{zone}/inst" + + "anceGroupManagers/{instance_group_manage" + + "r}/applyUpdatesToInstances:6instance_gro" + + "up_managers_apply_updates_request_resour" + + "ce\022\234\003\n\017CreateInstances\022C.google.cloud.co" + + "mpute.v1.CreateInstancesInstanceGroupMan" + + "agerRequest\032\".google.cloud.compute.v1.Op" + + "eration\"\237\002\332A]project,zone,instance_group" + + "_manager,instance_group_managers_create_" + + "instances_request_resource\212N\016ZoneOperati" + + "ons\202\323\344\223\002\247\001\"j/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}/se" - + "tInstanceTemplate:>instance_group_manage" - + "rs_set_instance_template_request_resourc" - + "e\022\231\003\n\016SetTargetPools\022B.google.cloud.comp" - + "ute.v1.SetTargetPoolsInstanceGroupManage" + + "nstance_group_manager}/createInstances:9" + + "instance_group_managers_create_instances" + + "_request_resource\022\204\002\n\006Delete\022:.google.cl" + + "oud.compute.v1.DeleteInstanceGroupManage" + "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}/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_update_per_instance_con" - + "figs_req_resource\212N\016ZoneOperations\202\323\344\223\002\267" - + "\001\"s/compute/v1/projects/{project}/zones/" + + "tion\"\231\001\332A#project,zone,instance_group_ma" + + "nager\212N\016ZoneOperations\202\323\344\223\002\\*Z/compute/v" + + "1/projects/{project}/zones/{zone}/instan" + + "ceGroupManagers/{instance_group_manager}" + + "\022\234\003\n\017DeleteInstances\022C.google.cloud.comp" + + "ute.v1.DeleteInstancesInstanceGroupManag" + + "erRequest\032\".google.cloud.compute.v1.Oper" + + "ation\"\237\002\332A]project,zone,instance_group_m" + + "anager,instance_group_managers_delete_in" + + "stances_request_resource\212N\016ZoneOperation" + + "s\202\323\344\223\002\247\001\"j/compute/v1/projects/{project}" + + "/zones/{zone}/instanceGroupManagers/{ins" + + "tance_group_manager}/deleteInstances:9in" + + "stance_group_managers_delete_instances_r" + + "equest_resource\022\305\003\n\030DeletePerInstanceCon" + + "figs\022L.google.cloud.compute.v1.DeletePer" + + "InstanceConfigsInstanceGroupManagerReque" + + "st\032\".google.cloud.compute.v1.Operation\"\266" + + "\002\332Adproject,zone,instance_group_manager," + + "instance_group_managers_delete_per_insta" + + "nce_configs_req_resource\212N\016ZoneOperation", + "s\202\323\344\223\002\267\001\"s/compute/v1/projects/{project}" + + "/zones/{zone}/instanceGroupManagers/{ins" + + "tance_group_manager}/deletePerInstanceCo" + + "nfigs:@instance_group_managers_delete_pe" + + "r_instance_configs_req_resource\022\370\001\n\003Get\022" + + "7.google.cloud.compute.v1.GetInstanceGro" + + "upManagerRequest\032-.google.cloud.compute." + + "v1.InstanceGroupManager\"\210\001\332A#project,zon" + + "e,instance_group_manager\202\323\344\223\002\\\022Z/compute" + + "/v1/projects/{project}/zones/{zone}/inst" + + "anceGroupManagers/{instance_group_manage" + + "r}\022\225\002\n\006Insert\022:.google.cloud.compute.v1." + + "InsertInstanceGroupManagerRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\252\001\332A,proje" + + "ct,zone,instance_group_manager_resource\212" + + "N\016ZoneOperations\202\323\344\223\002d\"A/compute/v1/proj" + + "ects/{project}/zones/{zone}/instanceGrou" + + "pManagers:\037instance_group_manager_resour" + + "ce\022\316\001\n\004List\0229.google.cloud.compute.v1.Li" + + "stInstanceGroupManagersRequest\0321.google." + + "cloud.compute.v1.InstanceGroupManagerLis" + + "t\"X\332A\014project,zone\202\323\344\223\002C\022A/compute/v1/pr" + + "ojects/{project}/zones/{zone}/instanceGr" + + "oupManagers\022\245\002\n\nListErrors\022?.google.clou" + + "d.compute.v1.ListErrorsInstanceGroupMana" + + "gersRequest\032@.google.cloud.compute.v1.In" + + "stanceGroupManagersListErrorsResponse\"\223\001" + + "\332A#project,zone,instance_group_manager\202\323" + + "\344\223\002g\022e/compute/v1/projects/{project}/zon" + + "es/{zone}/instanceGroupManagers/{instanc" + + "e_group_manager}/listErrors\022\315\002\n\024ListMana" + + "gedInstances\022I.google.cloud.compute.v1.L" + + "istManagedInstancesInstanceGroupManagers" + + "Request\032J.google.cloud.compute.v1.Instan" + + "ceGroupManagersListManagedInstancesRespo" + + "nse\"\235\001\332A#project,zone,instance_group_man" + + "ager\202\323\344\223\002q\"o/compute/v1/projects/{projec" + + "t}/zones/{zone}/instanceGroupManagers/{i" + + "nstance_group_manager}/listManagedInstan" + + "ces\022\321\002\n\026ListPerInstanceConfigs\022K.google." + + "cloud.compute.v1.ListPerInstanceConfigsI" + + "nstanceGroupManagersRequest\032H.google.clo" + + "ud.compute.v1.InstanceGroupManagersListP" + + "erInstanceConfigsResp\"\237\001\332A#project,zone," + + "instance_group_manager\202\323\344\223\002s\"q/compute/v" + + "1/projects/{project}/zones/{zone}/instan" + + "ceGroupManagers/{instance_group_manager}" + + "/listPerInstanceConfigs\022\303\002\n\005Patch\0229.goog" + + "le.cloud.compute.v1.PatchInstanceGroupMa" + + "nagerRequest\032\".google.cloud.compute.v1.O" + + "peration\"\332\001\332ACproject,zone,instance_grou" + + "p_manager,instance_group_manager_resourc" + + "e\212N\016ZoneOperations\202\323\344\223\002}2Z/compute/v1/pr" + + "ojects/{project}/zones/{zone}/instanceGr" + + "oupManagers/{instance_group_manager}:\037in" + + "stance_group_manager_resource\022\300\003\n\027PatchP" + + "erInstanceConfigs\022K.google.cloud.compute" + + ".v1.PatchPerInstanceConfigsInstanceGroup" + + "ManagerRequest\032\".google.cloud.compute.v1" + + ".Operation\"\263\002\332Acproject,zone,instance_gr" + + "oup_manager,instance_group_managers_patc" + + "h_per_instance_configs_req_resource\212N\016Zo" + + "neOperations\202\323\344\223\002\265\001\"r/compute/v1/project" + + "s/{project}/zones/{zone}/instanceGroupMa" + + "nagers/{instance_group_manager}/patchPer" + + "InstanceConfigs:?instance_group_managers" + + "_patch_per_instance_configs_req_resource" + + "\022\246\003\n\021RecreateInstances\022E.google.cloud.co" + + "mpute.v1.RecreateInstancesInstanceGroupM" + + "anagerRequest\032\".google.cloud.compute.v1." + + "Operation\"\245\002\332A_project,zone,instance_gro" + + "up_manager,instance_group_managers_recre" + + "ate_instances_request_resource\212N\016ZoneOpe" + + "rations\202\323\344\223\002\253\001\"l/compute/v1/projects/{pr" + + "oject}/zones/{zone}/instanceGroupManager" + + "s/{instance_group_manager}/recreateInsta" + + "nces:;instance_group_managers_recreate_i" + + "nstances_request_resource\022\220\002\n\006Resize\022:.g" + + "oogle.cloud.compute.v1.ResizeInstanceGro" + + "upManagerRequest\032\".google.cloud.compute." + + "v1.Operation\"\245\001\332A(project,zone,instance_" + + "group_manager,size\212N\016ZoneOperations\202\323\344\223\002" + + "c\"a/compute/v1/projects/{project}/zones/" + "{zone}/instanceGroupManagers/{instance_g" - + "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" + + "roup_manager}/resize\022\234\003\n\017ResumeInstances" + + "\022C.google.cloud.compute.v1.ResumeInstanc" + + "esInstanceGroupManagerRequest\032\".google.c" + + "loud.compute.v1.Operation\"\237\002\332A]project,z" + + "one,instance_group_manager,instance_grou" + + "p_managers_resume_instances_request_reso" + + "urce\212N\016ZoneOperations\202\323\344\223\002\247\001\"j/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" + + "ceGroupManagers/{instance_group_manager}" + + "/resumeInstances:9instance_group_manager" + + "s_resume_instances_request_resource\022\262\003\n\023" + + "SetInstanceTemplate\022G.google.cloud.compu" + + "te.v1.SetInstanceTemplateInstanceGroupMa" + + "nagerRequest\032\".google.cloud.compute.v1.O" + + "peration\"\255\002\332Abproject,zone,instance_grou" + + "p_manager,instance_group_managers_set_in" + + "stance_template_request_resource\212N\016ZoneO" + + "perations\202\323\344\223\002\260\001\"n/compute/v1/projects/{" + + "project}/zones/{zone}/instanceGroupManag" + + "ers/{instance_group_manager}/setInstance" + + "Template:>instance_group_managers_set_in" + + "stance_template_request_resource\022\231\003\n\016Set" + + "TargetPools\022B.google.cloud.compute.v1.Se" + + "tTargetPoolsInstanceGroupManagerRequest\032" + + "\".google.cloud.compute.v1.Operation\"\236\002\332A" + + "]project,zone,instance_group_manager,ins" + + "tance_group_managers_set_target_pools_re" + + "quest_resource\212N\016ZoneOperations\202\323\344\223\002\246\001\"i" + "/compute/v1/projects/{project}/zones/{zo" - + "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" + + "ne}/instanceGroupManagers/{instance_grou" + + "p_manager}/setTargetPools:9instance_grou" + + "p_managers_set_target_pools_request_reso" + + "urce\022\227\003\n\016StartInstances\022B.google.cloud.c" + + "ompute.v1.StartInstancesInstanceGroupMan" + + "agerRequest\032\".google.cloud.compute.v1.Op" + + "eration\"\234\002\332A\\project,zone,instance_group" + + "_manager,instance_group_managers_start_i" + + "nstances_request_resource\212N\016ZoneOperatio" + + "ns\202\323\344\223\002\245\001\"i/compute/v1/projects/{project" + + "}/zones/{zone}/instanceGroupManagers/{in" + + "stance_group_manager}/startInstances:8in" + + "stance_group_managers_start_instances_re" + + "quest_resource\022\222\003\n\rStopInstances\022A.googl" + + "e.cloud.compute.v1.StopInstancesInstance" + + "GroupManagerRequest\032\".google.cloud.compu" + + "te.v1.Operation\"\231\002\332A[project,zone,instan" + + "ce_group_manager,instance_group_managers" + + "_stop_instances_request_resource\212N\016ZoneO" + + "perations\202\323\344\223\002\243\001\"h/compute/v1/projects/{" + + "project}/zones/{zone}/instanceGroupManag" + + "ers/{instance_group_manager}/stopInstanc" + + "es:7instance_group_managers_stop_instanc" + + "es_request_resource\022\241\003\n\020SuspendInstances" + + "\022D.google.cloud.compute.v1.SuspendInstan" + + "cesInstanceGroupManagerRequest\032\".google." + + "cloud.compute.v1.Operation\"\242\002\332A^project," + + "zone,instance_group_manager,instance_gro" + + "up_managers_suspend_instances_request_re" + + "source\212N\016ZoneOperations\202\323\344\223\002\251\001\"k/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}/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}/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" + + "anceGroupManagers/{instance_group_manage" + + "r}/suspendInstances::instance_group_mana" + + "gers_suspend_instances_request_resource\022" + + "\305\003\n\030UpdatePerInstanceConfigs\022L.google.cl" + + "oud.compute.v1.UpdatePerInstanceConfigsI" + + "nstanceGroupManagerRequest\032\".google.clou" + + "d.compute.v1.Operation\"\266\002\332Adproject,zone" + + ",instance_group_manager,instance_group_m" + + "anagers_update_per_instance_configs_req_" + + "resource\212N\016ZoneOperations\202\323\344\223\002\267\001\"s/compu" + + "te/v1/projects/{project}/zones/{zone}/in" + + "stanceGroupManagers/{instance_group_mana" + + "ger}/updatePerInstanceConfigs:@instance_" + + "group_managers_update_per_instance_confi" + + "gs_req_resource\032r\312A\026compute.googleapis.c" + + "om\322AVhttps://www.googleapis.com/auth/com" + + "pute,https://www.googleapis.com/auth/clo" + + "ud-platform2\360\024\n\016InstanceGroups\022\337\002\n\014AddIn" + + "stances\0229.google.cloud.compute.v1.AddIns" + + "tancesInstanceGroupRequest\032\".google.clou" + + "d.compute.v1.Operation\"\357\001\332AJproject,zone" + + ",instance_group,instance_groups_add_inst" + + "ances_request_resource\212N\016ZoneOperations\202" + + "\323\344\223\002\212\001\"X/compute/v1/projects/{project}/z" + + "ones/{zone}/instanceGroups/{instance_gro" + + "up}/addInstances:.instance_groups_add_in" + + "stances_request_resource\022\320\001\n\016AggregatedL" + + "ist\022<.google.cloud.compute.v1.Aggregated" + + "ListInstanceGroupsRequest\0324.google.cloud" + + ".compute.v1.InstanceGroupAggregatedList\"" + + "J\332A\007project\202\323\344\223\002:\0228/compute/v1/projects/" + + "{project}/aggregated/instanceGroups\022\346\001\n\006" + + "Delete\0223.google.cloud.compute.v1.DeleteI" + + "nstanceGroupRequest\032\".google.cloud.compu" + + "te.v1.Operation\"\202\001\332A\033project,zone,instan" + + "ce_group\212N\016ZoneOperations\202\323\344\223\002M*K/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" + + "tanceGroups/{instance_group}\022\322\001\n\003Get\0220.g" + + "oogle.cloud.compute.v1.GetInstanceGroupR" + + "equest\032&.google.cloud.compute.v1.Instanc" + + "eGroup\"q\332A\033project,zone,instance_group\202\323" + + "\344\223\002M\022K/compute/v1/projects/{project}/zon" + + "es/{zone}/instanceGroups/{instance_group" + + "}\022\367\001\n\006Insert\0223.google.cloud.compute.v1.I" + + "nsertInstanceGroupRequest\032\".google.cloud" + + ".compute.v1.Operation\"\223\001\332A$project,zone," + + "instance_group_resource\212N\016ZoneOperations" + + "\202\323\344\223\002U\":/compute/v1/projects/{project}/z" + + "ones/{zone}/instanceGroups:\027instance_gro" + + "up_resource\022\271\001\n\004List\0222.google.cloud.comp" + + "ute.v1.ListInstanceGroupsRequest\032*.googl" + + "e.cloud.compute.v1.InstanceGroupList\"Q\332A" + + "\014project,zone\202\323\344\223\002<\022:/compute/v1/project" + + "s/{project}/zones/{zone}/instanceGroups\022" + + "\346\002\n\rListInstances\022;.google.cloud.compute" + + ".v1.ListInstancesInstanceGroupsRequest\0324" + + ".google.cloud.compute.v1.InstanceGroupsL" + + "istInstances\"\341\001\332AKproject,zone,instance_" + + "group,instance_groups_list_instances_req" + + "uest_resource\202\323\344\223\002\214\001\"Y/compute/v1/projec" + + "ts/{project}/zones/{zone}/instanceGroups" + + "/{instance_group}/listInstances:/instanc" + + "e_groups_list_instances_request_resource" + + "\022\356\002\n\017RemoveInstances\022<.google.cloud.comp" + + "ute.v1.RemoveInstancesInstanceGroupReque" + + "st\032\".google.cloud.compute.v1.Operation\"\370" + + "\001\332AMproject,zone,instance_group,instance" + + "_groups_remove_instances_request_resourc" + + "e\212N\016ZoneOperations\202\323\344\223\002\220\001\"[/compute/v1/p" + + "rojects/{project}/zones/{zone}/instanceG" + + "roups/{instance_group}/removeInstances:1" + + "instance_groups_remove_instances_request" + + "_resource\022\346\002\n\rSetNamedPorts\022:.google.clo" + + "ud.compute.v1.SetNamedPortsInstanceGroup" + + "Request\032\".google.cloud.compute.v1.Operat" + + "ion\"\364\001\332ALproject,zone,instance_group,ins" + + "tance_groups_set_named_ports_request_res" + + "ource\212N\016ZoneOperations\202\323\344\223\002\215\001\"Y/compute/" + + "v1/projects/{project}/zones/{zone}/insta" + + "nceGroups/{instance_group}/setNamedPorts" + + ":0instance_groups_set_named_ports_reques" + + "t_resource\032r\312A\026compute.googleapis.com\322AV" + + "https://www.googleapis.com/auth/compute," + + "https://www.googleapis.com/auth/cloud-pl" + + "atform2\313\004\n\027InstanceSettingsService\022\271\001\n\003G" + + "et\0222.google.cloud.compute.v1.GetInstance" + + "SettingRequest\032).google.cloud.compute.v1" + + ".InstanceSettings\"S\332A\014project,zone\202\323\344\223\002>" + + "\022project,zone,instance,ne" + + "twork_interface,access_config_resource\212N" + + "\016ZoneOperations\202\323\344\223\002j\"P/compute/v1/proje" + + "cts/{project}/zones/{zone}/instances/{in" + + "stance}/addAccessConfig:\026access_config_r" + + "esource\022\342\002\n\023AddResourcePolicies\022;.google" + + ".cloud.compute.v1.AddResourcePoliciesIns" + + "tanceRequest\032\".google.cloud.compute.v1.O" + + "peration\"\351\001\332AFproject,zone,instance,inst" + + "ances_add_resource_policies_request_reso" + + "urce\212N\016ZoneOperations\202\323\344\223\002\210\001\"T/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\"\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/" + + "ces/{instance}/addResourcePolicies:0inst" + + "ances_add_resource_policies_request_reso" + + "urce\022\301\001\n\016AggregatedList\0227.google.cloud.c" + + "ompute.v1.AggregatedListInstancesRequest" + + "\032/.google.cloud.compute.v1.InstanceAggre" + + "gatedList\"E\332A\007project\202\323\344\223\0025\0223/compute/v1" + + "/projects/{project}/aggregated/instances" + + "\022\222\002\n\nAttachDisk\0222.google.cloud.compute.v" + + "1.AttachDiskInstanceRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\253\001\332A,project,zon" + + "e,instance,attached_disk_resource\212N\016Zone" + + "Operations\202\323\344\223\002e\"K/compute/v1/projects/{" + + "project}/zones/{zone}/instances/{instanc" + + "e}/attachDisk:\026attached_disk_resource\022\236\002" + + "\n\nBulkInsert\0222.google.cloud.compute.v1.B" + + "ulkInsertInstanceRequest\032\".google.cloud." + + "compute.v1.Operation\"\267\001\332A3project,zone,b" + + "ulk_insert_instance_resource_resource\212N\016" + + "ZoneOperations\202\323\344\223\002j\"@/compute/v1/projec" + + "ts/{project}/zones/{zone}/instances/bulk" + + "Insert:&bulk_insert_instance_resource_re" + + "source\022\317\001\n\006Delete\022..google.cloud.compute" + + ".v1.DeleteInstanceRequest\032\".google.cloud" + + ".compute.v1.Operation\"q\332A\025project,zone,i" + + "nstance\212N\016ZoneOperations\202\323\344\223\002B*@/compute" + + "/v1/projects/{project}/zones/{zone}/inst" + + "ances/{instance}\022\233\002\n\022DeleteAccessConfig\022" + + ":.google.cloud.compute.v1.DeleteAccessCo" + + "nfigInstanceRequest\032\".google.cloud.compu" + + "te.v1.Operation\"\244\001\332A5project,zone,instan" + + "ce,access_config,network_interface\212N\016Zon" + + "eOperations\202\323\344\223\002U\"S/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" + + "ce}/deleteAccessConfig\022\357\001\n\nDetachDisk\0222." + + "google.cloud.compute.v1.DetachDiskInstan" + + "ceRequest\032\".google.cloud.compute.v1.Oper" + + "ation\"\210\001\332A!project,zone,instance,device_" + + "name\212N\016ZoneOperations\202\323\344\223\002M\"K/compute/v1" + + "/projects/{project}/zones/{zone}/instanc" + + "es/{instance}/detachDisk\022\267\001\n\003Get\022+.googl" + + "e.cloud.compute.v1.GetInstanceRequest\032!." + + "google.cloud.compute.v1.Instance\"`\332A\025pro" + + "ject,zone,instance\202\323\344\223\002B\022@/compute/v1/pr" + + "ojects/{project}/zones/{zone}/instances/" + + "{instance}\022\242\002\n\025GetEffectiveFirewalls\022=.g" + + "oogle.cloud.compute.v1.GetEffectiveFirew" + + "allsInstanceRequest\032?.google.cloud.compu" + + "te.v1.InstancesGetEffectiveFirewallsResp" + + "onse\"\210\001\332A\'project,zone,instance,network_" + + "interface\202\323\344\223\002X\022V/compute/v1/projects/{p" + + "roject}/zones/{zone}/instances/{instance" + + "}/getEffectiveFirewalls\022\357\001\n\022GetGuestAttr" + + "ibutes\022:.google.cloud.compute.v1.GetGues" + + "tAttributesInstanceRequest\032(.google.clou" + + "d.compute.v1.GuestAttributes\"s\332A\025project" + + ",zone,instance\202\323\344\223\002U\022S/compute/v1/projec" + + "ts/{project}/zones/{zone}/instances/{ins" + + "tance}/getGuestAttributes\022\324\001\n\014GetIamPoli" + + "cy\0224.google.cloud.compute.v1.GetIamPolic" + + "yInstanceRequest\032\037.google.cloud.compute." + + "v1.Policy\"m\332A\025project,zone,resource\202\323\344\223\002" + + "O\022M/compute/v1/projects/{project}/zones/" + + "{zone}/instances/{resource}/getIamPolicy" + + "\022\330\001\n\rGetScreenshot\0225.google.cloud.comput" + + "e.v1.GetScreenshotInstanceRequest\032#.goog" + + "le.cloud.compute.v1.Screenshot\"k\332A\025proje" + + "ct,zone,instance\202\323\344\223\002M\022K/compute/v1/proj" + + "ects/{project}/zones/{zone}/instances/{i" + + "nstance}/screenshot\022\352\001\n\023GetSerialPortOut" + + "put\022;.google.cloud.compute.v1.GetSerialP" + + "ortOutputInstanceRequest\032).google.cloud." + + "compute.v1.SerialPortOutput\"k\332A\025project," + + "zone,instance\202\323\344\223\002M\022K/compute/v1/project" + + "s/{project}/zones/{zone}/instances/{inst" + + "ance}/serialPort\022\223\002\n\033GetShieldedInstance" + + "Identity\022C.google.cloud.compute.v1.GetSh" + + "ieldedInstanceIdentityInstanceRequest\0321." + + "google.cloud.compute.v1.ShieldedInstance" + + "Identity\"|\332A\025project,zone,instance\202\323\344\223\002^" + + "\022\\/compute/v1/projects/{project}/zones/{" + + "zone}/instances/{instance}/getShieldedIn" + + "stanceIdentity\022\341\001\n\006Insert\022..google.cloud" + + ".compute.v1.InsertInstanceRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\202\001\332A\036proje" + + "ct,zone,instance_resource\212N\016ZoneOperatio" + + "ns\202\323\344\223\002J\"5/compute/v1/projects/{project}" + + "/zones/{zone}/instances:\021instance_resour" + + "ce\022\252\001\n\004List\022-.google.cloud.compute.v1.Li" + + "stInstancesRequest\032%.google.cloud.comput" + + "e.v1.InstanceList\"L\332A\014project,zone\202\323\344\223\0027", + "\0225/compute/v1/projects/{project}/zones/{" + + "zone}/instances\022\343\001\n\rListReferrers\0226.goog" + + "le.cloud.compute.v1.ListReferrersInstanc" + + "esRequest\032..google.cloud.compute.v1.Inst" + + "anceListReferrers\"j\332A\025project,zone,insta" + + "nce\202\323\344\223\002L\022J/compute/v1/projects/{project" + + "}/zones/{zone}/instances/{instance}/refe" + + "rrers\022\373\001\n\022PerformMaintenance\022:.google.cl" + + "oud.compute.v1.PerformMaintenanceInstanc" + + "eRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\204\001\332A\025project,zone,instance\212N\016ZoneOp" + + "erations\202\323\344\223\002U\"S/compute/v1/projects/{pr" + + "oject}/zones/{zone}/instances/{instance}" + + "/performMaintenance\022\361\002\n\026RemoveResourcePo" + + "licies\022>.google.cloud.compute.v1.RemoveR" + + "esourcePoliciesInstanceRequest\032\".google." + + "cloud.compute.v1.Operation\"\362\001\332AIproject," + + "zone,instance,instances_remove_resource_" + + "policies_request_resource\212N\016ZoneOperatio" + + "ns\202\323\344\223\002\216\001\"W/compute/v1/projects/{project" + + "}/zones/{zone}/instances/{instance}/remo" + + "veResourcePolicies:3instances_remove_res" + + "ource_policies_request_resource\022\323\001\n\005Rese" + + "t\022-.google.cloud.compute.v1.ResetInstanc" + + "eRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"w\332A\025project,zone,instance\212N\016ZoneOpe" + + "rations\202\323\344\223\002H\"F/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" + + "reset\022\326\001\n\006Resume\022..google.cloud.compute." + + "v1.ResumeInstanceRequest\032\".google.cloud." + + "compute.v1.Operation\"x\332A\025project,zone,in" + + "stance\212N\016ZoneOperations\202\323\344\223\002I\"G/compute/" + + "v1/projects/{project}/zones/{zone}/insta" + + "nces/{instance}/resume\022\226\002\n\027SendDiagnosti" + + "cInterrupt\022?.google.cloud.compute.v1.Sen" + + "dDiagnosticInterruptInstanceRequest\032@.go" + + "ogle.cloud.compute.v1.SendDiagnosticInte" + + "rruptInstanceResponse\"x\332A\025project,zone,i" + + "nstance\202\323\344\223\002Z\"X/compute/v1/projects/{pro" + + "ject}/zones/{zone}/instances/{instance}/" + + "sendDiagnosticInterrupt\022\204\002\n\025SetDeletionP" + + "rotection\022=.google.cloud.compute.v1.SetD" + + "eletionProtectionInstanceRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\207\001\332A\025projec" + + "t,zone,resource\212N\016ZoneOperations\202\323\344\223\002X\"V" + + "/compute/v1/projects/{project}/zones/{zo" + + "ne}/instances/{resource}/setDeletionProt" + + "ection\022\220\002\n\021SetDiskAutoDelete\0229.google.cl" + + "oud.compute.v1.SetDiskAutoDeleteInstance" + "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" + + "ion\"\233\001\332A-project,zone,instance,auto_dele" + + "te,device_name\212N\016ZoneOperations\202\323\344\223\002T\"R/" + + "compute/v1/projects/{project}/zones/{zon" + + "e}/instances/{instance}/setDiskAutoDelet" + + "e\022\230\002\n\014SetIamPolicy\0224.google.cloud.comput" + + "e.v1.SetIamPolicyInstanceRequest\032\037.googl" + + "e.cloud.compute.v1.Policy\"\260\001\332A6project,z" + + "one,resource,zone_set_policy_request_res" + + "ource\202\323\344\223\002q\"M/compute/v1/projects/{proje" + + "ct}/zones/{zone}/instances/{resource}/se" + + "tIamPolicy: zone_set_policy_request_reso" + + "urce\022\255\002\n\tSetLabels\0221.google.cloud.comput" + + "e.v1.SetLabelsInstanceRequest\032\".google.c" + + "loud.compute.v1.Operation\"\310\001\332A;project,z" + + "one,instance,instances_set_labels_reques" + + "t_resource\212N\016ZoneOperations\202\323\344\223\002s\"J/comp" + + "ute/v1/projects/{project}/zones/{zone}/i" + + "nstances/{instance}/setLabels:%instances" + + "_set_labels_request_resource\022\342\002\n\023SetMach" + + "ineResources\022;.google.cloud.compute.v1.S" + + "etMachineResourcesInstanceRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\351\001\332AFproje" + + "ct,zone,instance,instances_set_machine_r" + + "esources_request_resource\212N\016ZoneOperatio" + + "ns\202\323\344\223\002\210\001\"T/compute/v1/projects/{project" + + "}/zones/{zone}/instances/{instance}/setM" + + "achineResources:0instances_set_machine_r" + + "esources_request_resource\022\310\002\n\016SetMachine" + + "Type\0226.google.cloud.compute.v1.SetMachin" + + "eTypeInstanceRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\331\001\332AAproject,zone,insta" + + "nce,instances_set_machine_type_request_r" + + "esource\212N\016ZoneOperations\202\323\344\223\002~\"O/compute" + + "/v1/projects/{project}/zones/{zone}/inst" + + "ances/{instance}/setMachineType:+instanc" + + "es_set_machine_type_request_resource\022\213\002\n" + + "\013SetMetadata\0223.google.cloud.compute.v1.S" + + "etMetadataInstanceRequest\032\".google.cloud" + + ".compute.v1.Operation\"\242\001\332A\'project,zone," + + "instance,metadata_resource\212N\016ZoneOperati" + + "ons\202\323\344\223\002a\"L/compute/v1/projects/{project" + + "}/zones/{zone}/instances/{instance}/setM" + + "etadata:\021metadata_resource\022\332\002\n\021SetMinCpu" + + "Platform\0229.google.cloud.compute.v1.SetMi" + + "nCpuPlatformInstanceRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\345\001\332AEproject,zon" + + "e,instance,instances_set_min_cpu_platfor" + + "m_request_resource\212N\016ZoneOperations\202\323\344\223\002" + + "\205\001\"R/compute/v1/projects/{project}/zones" + + "/{zone}/instances/{instance}/setMinCpuPl" + + "atform:/instances_set_min_cpu_platform_r" + + "equest_resource\022\243\002\n\007SetName\022/.google.clo" + + "ud.compute.v1.SetNameInstanceRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"\302\001\332A9pr" + + "oject,zone,instance,instances_set_name_r" + + "equest_resource\212N\016ZoneOperations\202\323\344\223\002o\"H" + + "/compute/v1/projects/{project}/zones/{zo" + + "ne}/instances/{instance}/setName:#instan" + + "ces_set_name_request_resource\022\225\002\n\rSetSch" + + "eduling\0225.google.cloud.compute.v1.SetSch" + + "edulingInstanceRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\250\001\332A)project,zone,ins" + + "tance,scheduling_resource\212N\016ZoneOperatio" + + "ns\202\323\344\223\002e\"N/compute/v1/projects/{project}" + + "/zones/{zone}/instances/{instance}/setSc" + + "heduling:\023scheduling_resource\022\330\002\n\021SetSec" + + "urityPolicy\0229.google.cloud.compute.v1.Se" + + "tSecurityPolicyInstanceRequest\032\".google." + + "cloud.compute.v1.Operation\"\343\001\332ADproject," + + "zone,instance,instances_set_security_pol" + + "icy_request_resource\212N\016ZoneOperations\202\323\344" + + "\223\002\204\001\"R/compute/v1/projects/{project}/zon" + + "es/{zone}/instances/{instance}/setSecuri" + + "tyPolicy:.instances_set_security_policy_" + + "request_resource\022\330\002\n\021SetServiceAccount\0229" + + ".google.cloud.compute.v1.SetServiceAccou" + + "ntInstanceRequest\032\".google.cloud.compute" + + ".v1.Operation\"\343\001\332ADproject,zone,instance" + + ",instances_set_service_account_request_r" + + "esource\212N\016ZoneOperations\202\323\344\223\002\204\001\"R/comput" + + "e/v1/projects/{project}/zones/{zone}/ins" + + "tances/{instance}/setServiceAccount:.ins" + + "tances_set_service_account_request_resou" + + "rce\022\205\003\n\"SetShieldedInstanceIntegrityPoli" + + "cy\022J.google.cloud.compute.v1.SetShielded" + + "InstanceIntegrityPolicyInstanceRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\356\001\332AA" + + "project,zone,instance,shielded_instance_" + + "integrity_policy_resource\212N\016ZoneOperatio" + + "ns\202\323\344\223\002\222\0012c/compute/v1/projects/{project" + + "}/zones/{zone}/instances/{instance}/setS" + + "hieldedInstanceIntegrityPolicy:+shielded" + + "_instance_integrity_policy_resource\022\367\001\n\007" + + "SetTags\022/.google.cloud.compute.v1.SetTag" + + "sInstanceRequest\032\".google.cloud.compute." + + "v1.Operation\"\226\001\332A#project,zone,instance," + + "tags_resource\212N\016ZoneOperations\202\323\344\223\002Y\"H/c" + + "ompute/v1/projects/{project}/zones/{zone" + + "}/instances/{instance}/setTags:\rtags_res" + + "ource\022\215\002\n\030SimulateMaintenanceEvent\022@.goo" + + "gle.cloud.compute.v1.SimulateMaintenance" + + "EventInstanceRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\212\001\332A\025project,zone,insta" + + "nce\212N\016ZoneOperations\202\323\344\223\002[\"Y/compute/v1/" + + "projects/{project}/zones/{zone}/instance" + + "s/{instance}/simulateMaintenanceEvent\022\323\001" + + "\n\005Start\022-.google.cloud.compute.v1.StartI" + + "nstanceRequest\032\".google.cloud.compute.v1" + + ".Operation\"w\332A\025project,zone,instance\212N\016Z" + + "oneOperations\202\323\344\223\002H\"F/compute/v1/project" + + "s/{project}/zones/{zone}/instances/{inst" + + "ance}/start\022\363\002\n\026StartWithEncryptionKey\022>" + + ".google.cloud.compute.v1.StartWithEncryp" + + "tionKeyInstanceRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\364\001\332AJproject,zone,ins" + + "tance,instances_start_with_encryption_ke" + + "y_request_resource\212N\016ZoneOperations\202\323\344\223\002" + + "\217\001\"W/compute/v1/projects/{project}/zones" + + "/{zone}/instances/{instance}/startWithEn" + + "cryptionKey:4instances_start_with_encryp" + + "tion_key_request_resource\022\320\001\n\004Stop\022,.goo" + + "gle.cloud.compute.v1.StopInstanceRequest" + + "\032\".google.cloud.compute.v1.Operation\"v\332A" + + "\025project,zone,instance\212N\016ZoneOperations\202" + + "\323\344\223\002G\"E/compute/v1/projects/{project}/zo" + + "nes/{zone}/instances/{instance}/stop\022\331\001\n" + + "\007Suspend\022/.google.cloud.compute.v1.Suspe" + + "ndInstanceRequest\032\".google.cloud.compute" + + ".v1.Operation\"y\332A\025project,zone,instance\212" + + "N\016ZoneOperations\202\323\344\223\002J\"H/compute/v1/proj" + + "ects/{project}/zones/{zone}/instances/{i" + + "nstance}/suspend\022\275\002\n\022TestIamPermissions\022" + + ":.google.cloud.compute.v1.TestIamPermiss" + + "ionsInstanceRequest\0320.google.cloud.compu" + + "te.v1.TestPermissionsResponse\"\270\001\332A7proje" + + "ct,zone,resource,test_permissions_reques" + + "t_resource\202\323\344\223\002x\"S/compute/v1/projects/{" + + "project}/zones/{zone}/instances/{resourc" + + "e}/testIamPermissions:!test_permissions_" + + "request_resource\022\365\001\n\006Update\022..google.clo" + + "ud.compute.v1.UpdateInstanceRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\226\001\332A\'pro" + + "ject,zone,instance,instance_resource\212N\016Z" + + "oneOperations\202\323\344\223\002U\032@/compute/v1/project" + + "s/{project}/zones/{zone}/instances/{inst" + + "ance}:\021instance_resource\022\274\002\n\022UpdateAcces" + + "sConfig\022:.google.cloud.compute.v1.Update" + + "AccessConfigInstanceRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\305\001\332A>project,zon" + + "e,instance,network_interface,access_conf" + + "ig_resource\212N\016ZoneOperations\202\323\344\223\002m\"S/com" + + "pute/v1/projects/{project}/zones/{zone}/" + + "instances/{instance}/updateAccessConfig:" + + "\026access_config_resource\022\257\002\n\023UpdateDispla" + + "yDevice\022;.google.cloud.compute.v1.Update" + + "DisplayDeviceInstanceRequest\032\".google.cl" + + "oud.compute.v1.Operation\"\266\001\332A-project,zo" + + "ne,instance,display_device_resource\212N\016Zo" + + "neOperations\202\323\344\223\002o2T/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" + + "nce}/updateDisplayDevice:\027display_device" + + "_resource\022\320\002\n\026UpdateNetworkInterface\022>.g" + + "oogle.cloud.compute.v1.UpdateNetworkInte" + + "rfaceInstanceRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\321\001\332ABproject,zone,insta" + + "nce,network_interface,network_interface_" + + "resource\212N\016ZoneOperations\202\323\344\223\002u2W/comput" + "e/v1/projects/{project}/zones/{zone}/ins" - + "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}/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" - + "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\"\022.google.cloud.comput" + + "e.v1.AggregatedListInstantSnapshotsReque" + + "st\0326.google.cloud.compute.v1.InstantSnap" + + "shotAggregatedList\"L\332A\007project\202\323\344\223\002<\022:/c" + + "ompute/v1/projects/{project}/aggregated/" + + "instantSnapshots\022\356\001\n\006Delete\0225.google.clo" + + "ud.compute.v1.DeleteInstantSnapshotReque" + + "st\032\".google.cloud.compute.v1.Operation\"\210" + + "\001\332A\035project,zone,instant_snapshot\212N\016Zone" + + "Operations\202\323\344\223\002Q*O/compute/v1/projects/{" + + "project}/zones/{zone}/instantSnapshots/{" + + "instant_snapshot}\022\334\001\n\003Get\0222.google.cloud" + + ".compute.v1.GetInstantSnapshotRequest\032(." + + "google.cloud.compute.v1.InstantSnapshot\"" + + "w\332A\035project,zone,instant_snapshot\202\323\344\223\002Q\022" + + "O/compute/v1/projects/{project}/zones/{z" + + "one}/instantSnapshots/{instant_snapshot}" + + "\022\342\001\n\014GetIamPolicy\022;.google.cloud.compute" + + ".v1.GetIamPolicyInstantSnapshotRequest\032\037" + + ".google.cloud.compute.v1.Policy\"t\332A\025proj" + + "ect,zone,resource\202\323\344\223\002V\022T/compute/v1/pro" + + "jects/{project}/zones/{zone}/instantSnap" + + "shots/{resource}/getIamPolicy\022\377\001\n\006Insert" + + "\0225.google.cloud.compute.v1.InsertInstant" + + "SnapshotRequest\032\".google.cloud.compute.v" + + "1.Operation\"\231\001\332A&project,zone,instant_sn" + + "apshot_resource\212N\016ZoneOperations\202\323\344\223\002Y\"<" + + "/compute/v1/projects/{project}/zones/{zo" + + "ne}/instantSnapshots:\031instant_snapshot_r" + + "esource\022\277\001\n\004List\0224.google.cloud.compute." + + "v1.ListInstantSnapshotsRequest\032,.google." + + "cloud.compute.v1.InstantSnapshotList\"S\332A" + + "\014project,zone\202\323\344\223\002>\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\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\360\023\n\022NetworkAttach" - + "ments\022\334\001\n\016AggregatedList\022@.google.cloud." - + "compute.v1.AggregatedListNetworkAttachme" - + "ntsRequest\0328.google.cloud.compute.v1.Net" - + "workAttachmentAggregatedList\"N\332A\007project" - + "\202\323\344\223\002>\022.google.c" + + "loud.compute.v1.TestIamPermissionsMachin" + + "eImageRequest\0320.google.cloud.compute.v1." + + "TestPermissionsResponse\"\261\001\332A2project,res" + + "ource,test_permissions_request_resource\202" + + "\323\344\223\002v\"Q/compute/v1/projects/{project}/gl" + + "obal/machineImages/{resource}/testIamPer" + + "missions:!test_permissions_request_resou" + + "rce\032r\312A\026compute.googleapis.com\322AVhttps:/" + + "/www.googleapis.com/auth/compute,https:/" + + "/www.googleapis.com/auth/cloud-platform2" + + "\203\006\n\014MachineTypes\022\312\001\n\016AggregatedList\022:.go" + + "ogle.cloud.compute.v1.AggregatedListMach" + + "ineTypesRequest\0322.google.cloud.compute.v" + + "1.MachineTypeAggregatedList\"H\332A\007project\202" + + "\323\344\223\0028\0226/compute/v1/projects/{project}/ag" + + "gregated/machineTypes\022\310\001\n\003Get\022..google.c" + + "loud.compute.v1.GetMachineTypeRequest\032$." + + "google.cloud.compute.v1.MachineType\"k\332A\031" + + "project,zone,machine_type\202\323\344\223\002I\022G/comput" + + "e/v1/projects/{project}/zones/{zone}/mac" + + "hineTypes/{machine_type}\022\263\001\n\004List\0220.goog" + + "le.cloud.compute.v1.ListMachineTypesRequ" + + "est\032(.google.cloud.compute.v1.MachineTyp" + + "eList\"O\332A\014project,zone\202\323\344\223\002:\0228/compute/v" + + "1/projects/{project}/zones/{zone}/machin" + + "eTypes\032\244\001\312A\026compute.googleapis.com\322A\207\001ht" + + "tps://www.googleapis.com/auth/compute.re" + + "adonly,https://www.googleapis.com/auth/c" + + "ompute,https://www.googleapis.com/auth/c" + + "loud-platform2\360\023\n\022NetworkAttachments\022\334\001\n" + + "\016AggregatedList\022@.google.cloud.compute.v" + + "1.AggregatedListNetworkAttachmentsReques" + + "t\0328.google.cloud.compute.v1.NetworkAttac" + + "hmentAggregatedList\"N\332A\007project\202\323\344\223\002>\022.google.cloud." + + "compute.v1.PatchRuleNetworkFirewallPolic" + + "yRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\304\001\332A5project,firewall_policy,firewa" + + "ll_policy_rule_resource\212N\020GlobalOperatio" + + "ns\202\323\344\223\002s\"R/compute/v1/projects/{project}" + + "/global/firewallPolicies/{firewall_polic" + + "y}/patchRule:\035firewall_policy_rule_resou" + + "rce\022\221\002\n\021RemoveAssociation\022F.google.cloud" + + ".compute.v1.RemoveAssociationNetworkFire" + + "wallPolicyRequest\032\".google.cloud.compute" + + ".v1.Operation\"\217\001\332A\027project,firewall_poli" + + "cy\212N\020GlobalOperations\202\323\344\223\002\\\"Z/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}/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" + + "ies/{firewall_policy}/removeAssociation\022" + + "\374\001\n\nRemoveRule\022?.google.cloud.compute.v1" + + ".RemoveRuleNetworkFirewallPolicyRequest\032" + + "\".google.cloud.compute.v1.Operation\"\210\001\332A" + + "\027project,firewall_policy\212N\020GlobalOperati" + + "ons\202\323\344\223\002U\"S/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/{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\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" + + "cy}/removeRule\022\245\002\n\014SetIamPolicy\022A.google" + + ".cloud.compute.v1.SetIamPolicyNetworkFir" + + "ewallPolicyRequest\032\037.google.cloud.comput" + + "e.v1.Policy\"\260\001\332A3project,resource,global" + + "_set_policy_request_resource\202\323\344\223\002t\"N/com" + + "pute/v1/projects/{project}/global/firewa" + + "llPolicies/{resource}/setIamPolicy:\"glob" + + "al_set_policy_request_resource\022\306\002\n\022TestI" + + "amPermissions\022G.google.cloud.compute.v1." + + "TestIamPermissionsNetworkFirewallPolicyR" + + "equest\0320.google.cloud.compute.v1.TestPer" + + "missionsResponse\"\264\001\332A2project,resource,t" + + "est_permissions_request_resource\202\323\344\223\002y\"T" + + "/compute/v1/projects/{project}/global/fi" + + "rewallPolicies/{resource}/testIamPermiss" + + "ions:!test_permissions_request_resource\032" + + "r\312A\026compute.googleapis.com\322AVhttps://www" + + ".googleapis.com/auth/compute,https://www" + + ".googleapis.com/auth/cloud-platform2\304\004\n\017" + + "NetworkProfiles\022\314\001\n\003Get\0221.google.cloud.c" + + "ompute.v1.GetNetworkProfileRequest\032\'.goo" + + "gle.cloud.compute.v1.NetworkProfile\"i\332A\027" + + "project,network_profile\202\323\344\223\002I\022G/compute/" + + "v1/projects/{project}/global/networkProf" + + "iles/{network_profile}\022\272\001\n\004List\0223.google" + + ".cloud.compute.v1.ListNetworkProfilesReq" + + "uest\0324.google.cloud.compute.v1.NetworkPr" + + "ofilesListResponse\"G\332A\007project\202\323\344\223\0027\0225/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" + + "orkProfiles\032\244\001\312A\026compute.googleapis.com\322" + + "A\207\001https://www.googleapis.com/auth/compu" + + "te.readonly,https://www.googleapis.com/a" + + "uth/compute,https://www.googleapis.com/a" + + "uth/cloud-platform2\267\025\n\010Networks\022\243\002\n\nAddP" + + "eering\0221.google.cloud.compute.v1.AddPeer" + + "ingNetworkRequest\032\".google.cloud.compute" + + ".v1.Operation\"\275\001\332A5project,network,netwo" + + "rks_add_peering_request_resource\212N\020Globa" + + "lOperations\202\323\344\223\002l\"C/compute/v1/projects/" + + "{project}/global/networks/{network}/addP" + + "eering:%networks_add_peering_request_res" + + "ource\022\302\001\n\006Delete\022-.google.cloud.compute." + + "v1.DeleteNetworkRequest\032\".google.cloud.c" + + "ompute.v1.Operation\"e\332A\017project,network\212" + + "N\020GlobalOperations\202\323\344\223\002:*8/compute/v1/pr" + + "ojects/{project}/global/networks/{networ" + + "k}\022\247\001\n\003Get\022*.google.cloud.compute.v1.Get" + + "NetworkRequest\032 .google.cloud.compute.v1" + + ".Network\"R\332A\017project,network\202\323\344\223\002:\0228/com" + + "pute/v1/projects/{project}/global/networ" + + "ks/{network}\022\377\001\n\025GetEffectiveFirewalls\022<" + + ".google.cloud.compute.v1.GetEffectiveFir" + + "ewallsNetworkRequest\032>.google.cloud.comp" + + "ute.v1.NetworksGetEffectiveFirewallsResp" + + "onse\"h\332A\017project,network\202\323\344\223\002P\022N/compute" + + "/v1/projects/{project}/global/networks/{" + + "network}/getEffectiveFirewalls\022\323\001\n\006Inser" + + "t\022-.google.cloud.compute.v1.InsertNetwor" + + "kRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"v\332A\030project,network_resource\212N\020Glob" + + "alOperations\202\323\344\223\002B\"./compute/v1/projects" + + "/{project}/global/networks:\020network_reso" + + "urce\022\234\001\n\004List\022,.google.cloud.compute.v1." + + "ListNetworksRequest\032$.google.cloud.compu" + + "te.v1.NetworkList\"@\332A\007project\202\323\344\223\0020\022./co" + + "mpute/v1/projects/{project}/global/netwo" + + "rks\022\351\001\n\021ListPeeringRoutes\0229.google.cloud" + + ".compute.v1.ListPeeringRoutesNetworksReq" + + "uest\0323.google.cloud.compute.v1.Exchanged" + + "PeeringRoutesList\"d\332A\017project,network\202\323\344" + + "\223\002L\022J/compute/v1/projects/{project}/glob" + + "al/networks/{network}/listPeeringRoutes\022" + + "\344\001\n\005Patch\022,.google.cloud.compute.v1.Patc" + + "hNetworkRequest\032\".google.cloud.compute.v" + + "1.Operation\"\210\001\332A project,network,network" + + "_resource\212N\020GlobalOperations\202\323\344\223\002L28/com" + + "pute/v1/projects/{project}/global/networ" + + "ks/{network}:\020network_resource\022\262\002\n\rRemov" + + "ePeering\0224.google.cloud.compute.v1.Remov" + + "ePeeringNetworkRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\306\001\332A8project,network," + + "networks_remove_peering_request_resource" + + "\212N\020GlobalOperations\202\323\344\223\002r\"F/compute/v1/p" + + "rojects/{project}/global/networks/{netwo" + + "rk}/removePeering:(networks_remove_peeri" + + "ng_request_resource\022\355\001\n\022SwitchToCustomMo" + + "de\0229.google.cloud.compute.v1.SwitchToCus" + + "tomModeNetworkRequest\032\".google.cloud.com" + + "pute.v1.Operation\"x\332A\017project,network\212N\020" + + "GlobalOperations\202\323\344\223\002M\"K/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\"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/" + + "/switchToCustomMode\022\262\002\n\rUpdatePeering\0224." + + "google.cloud.compute.v1.UpdatePeeringNet" + + "workRequest\032\".google.cloud.compute.v1.Op" + + "eration\"\306\001\332A8project,network,networks_up" + + "date_peering_request_resource\212N\020GlobalOp" + + "erations\202\323\344\223\002r2F/compute/v1/projects/{pr" + + "oject}/global/networks/{network}/updateP" + + "eering:(networks_update_peering_request_" + + "resource\032r\312A\026compute.googleapis.com\322AVht" + + "tps://www.googleapis.com/auth/compute,ht" + + "tps://www.googleapis.com/auth/cloud-plat" + + "form2\353 \n\nNodeGroups\022\262\002\n\010AddNodes\0221.googl" + + "e.cloud.compute.v1.AddNodesNodeGroupRequ" + + "est\032\".google.cloud.compute.v1.Operation\"" + + "\316\001\332A>project,zone,node_group,node_groups" + + "_add_nodes_request_resource\212N\016ZoneOperat" + + "ions\202\323\344\223\002v\"L/compute/v1/projects/{projec" + + "t}/zones/{zone}/nodeGroups/{node_group}/" + + "addNodes:&node_groups_add_nodes_request_" + + "resource\022\304\001\n\016AggregatedList\0228.google.clo" + + "ud.compute.v1.AggregatedListNodeGroupsRe" + + "quest\0320.google.cloud.compute.v1.NodeGrou" + + "pAggregatedList\"F\332A\007project\202\323\344\223\0026\0224/comp" + + "ute/v1/projects/{project}/aggregated/nod" + + "eGroups\022\325\001\n\006Delete\022/.google.cloud.comput" + + "e.v1.DeleteNodeGroupRequest\032\".google.clo" + + "ud.compute.v1.Operation\"v\332A\027project,zone" + + ",node_group\212N\016ZoneOperations\202\323\344\223\002E*C/com" + + "pute/v1/projects/{project}/zones/{zone}/" + + "nodeGroups/{node_group}\022\301\002\n\013DeleteNodes\022" + + "4.google.cloud.compute.v1.DeleteNodesNod" + + "eGroupRequest\032\".google.cloud.compute.v1." + + "Operation\"\327\001\332AAproject,zone,node_group,n" + + "ode_groups_delete_nodes_request_resource" + + "\212N\016ZoneOperations\202\323\344\223\002|\"O/compute/v1/pro" + + "jects/{project}/zones/{zone}/nodeGroups/" + + "{node_group}/deleteNodes:)node_groups_de" + + "lete_nodes_request_resource\022\276\001\n\003Get\022,.go" + + "ogle.cloud.compute.v1.GetNodeGroupReques" + + "t\032\".google.cloud.compute.v1.NodeGroup\"e\332" + + "A\027project,zone,node_group\202\323\344\223\002E\022C/comput" + + "e/v1/projects/{project}/zones/{zone}/nod" + + "eGroups/{node_group}\022\326\001\n\014GetIamPolicy\0225." + + "google.cloud.compute.v1.GetIamPolicyNode" + + "GroupRequest\032\037.google.cloud.compute.v1.P" + + "olicy\"n\332A\025project,zone,resource\202\323\344\223\002P\022N/" + "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." + + "e}/nodeGroups/{resource}/getIamPolicy\022\372\001" + + "\n\006Insert\022/.google.cloud.compute.v1.Inser" + + "tNodeGroupRequest\032\".google.cloud.compute" + + ".v1.Operation\"\232\001\332A3project,zone,initial_" + + "node_count,node_group_resource\212N\016ZoneOpe" + + "rations\202\323\344\223\002M\"6/compute/v1/projects/{pro" + + "ject}/zones/{zone}/nodeGroups:\023node_grou" + + "p_resource\022\255\001\n\004List\022..google.cloud.compu" + + "te.v1.ListNodeGroupsRequest\032&.google.clo" + + "ud.compute.v1.NodeGroupList\"M\332A\014project," + + "zone\202\323\344\223\0028\0226/compute/v1/projects/{projec" + + "t}/zones/{zone}/nodeGroups\022\337\001\n\tListNodes" + + "\0223.google.cloud.compute.v1.ListNodesNode" + + "GroupsRequest\032,.google.cloud.compute.v1." + + "NodeGroupsListNodes\"o\332A\027project,zone,nod" + + "e_group\202\323\344\223\002O\"M/compute/v1/projects/{pro" + + "ject}/zones/{zone}/nodeGroups/{node_grou" + + "p}/listNodes\022\375\001\n\005Patch\022..google.cloud.co" + + "mpute.v1.PatchNodeGroupRequest\032\".google." + + "cloud.compute.v1.Operation\"\237\001\332A+project," + + "zone,node_group,node_group_resource\212N\016Zo" + + "neOperations\202\323\344\223\002Z2C/compute/v1/projects" + + "/{project}/zones/{zone}/nodeGroups/{node" + + "_group}:\023node_group_resource\022\345\002\n\022Perform" + + "Maintenance\022;.google.cloud.compute.v1.Pe" + + "rformMaintenanceNodeGroupRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\355\001\332AHprojec" + + "t,zone,node_group,node_groups_perform_ma" + + "intenance_request_resource\212N\016ZoneOperati" + + "ons\202\323\344\223\002\212\001\"V/compute/v1/projects/{projec" + + "t}/zones/{zone}/nodeGroups/{node_group}/" + + "performMaintenance:0node_groups_perform_" + + "maintenance_request_resource\022\232\002\n\014SetIamP" + + "olicy\0225.google.cloud.compute.v1.SetIamPo" + + "licyNodeGroupRequest\032\037.google.cloud.comp" + + "ute.v1.Policy\"\261\001\332A6project,zone,resource" + + ",zone_set_policy_request_resource\202\323\344\223\002r\"" + + "N/compute/v1/projects/{project}/zones/{z" + + "one}/nodeGroups/{resource}/setIamPolicy:" + + " zone_set_policy_request_resource\022\330\002\n\017Se" + + "tNodeTemplate\0228.google.cloud.compute.v1." + + "SetNodeTemplateNodeGroupRequest\032\".google" + + ".cloud.compute.v1.Operation\"\346\001\332AFproject" + + ",zone,node_group,node_groups_set_node_te" + + "mplate_request_resource\212N\016ZoneOperations" + + "\202\323\344\223\002\205\001\"S/compute/v1/projects/{project}/" + + "zones/{zone}/nodeGroups/{node_group}/set" + + "NodeTemplate:.node_groups_set_node_templ" + + "ate_request_resource\022\205\003\n\030SimulateMainten" + + "anceEvent\022A.google.cloud.compute.v1.Simu" + + "lateMaintenanceEventNodeGroupRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"\201\002\332AOpr" + + "oject,zone,node_group,node_groups_simula" + + "te_maintenance_event_request_resource\212N\016" + + "ZoneOperations\202\323\344\223\002\227\001\"\\/compute/v1/proje" + + "cts/{project}/zones/{zone}/nodeGroups/{n" + + "ode_group}/simulateMaintenanceEvent:7nod" + + "e_groups_simulate_maintenance_event_requ" + + "est_resource\022\277\002\n\022TestIamPermissions\022;.go" + + "ogle.cloud.compute.v1.TestIamPermissions" + + "NodeGroupRequest\0320.google.cloud.compute." + + "v1.TestPermissionsResponse\"\271\001\332A7project," + + "zone,resource,test_permissions_request_r" + + "esource\202\323\344\223\002y\"T/compute/v1/projects/{pro" + + "ject}/zones/{zone}/nodeGroups/{resource}" + + "/testIamPermissions:!test_permissions_re" + + "quest_resource\032r\312A\026compute.googleapis.co" + + "m\322AVhttps://www.googleapis.com/auth/comp" + + "ute,https://www.googleapis.com/auth/clou" + + "d-platform2\264\020\n\rNodeTemplates\022\315\001\n\016Aggrega" + + "tedList\022;.google.cloud.compute.v1.Aggreg" + + "atedListNodeTemplatesRequest\0323.google.cl" + + "oud.compute.v1.NodeTemplateAggregatedLis" + + "t\"I\332A\007project\202\323\344\223\0029\0227/compute/v1/project" + + "s/{project}/aggregated/nodeTemplates\022\352\001\n" + + "\006Delete\0222.google.cloud.compute.v1.Delete" + + "NodeTemplateRequest\032\".google.cloud.compu" + + "te.v1.Operation\"\207\001\332A\034project,region,node" + + "_template\212N\020RegionOperations\202\323\344\223\002O*M/com" + + "pute/v1/projects/{project}/regions/{regi" + + "on}/nodeTemplates/{node_template}\022\323\001\n\003Ge" + + "t\022/.google.cloud.compute.v1.GetNodeTempl" + + "ateRequest\032%.google.cloud.compute.v1.Nod" + + "eTemplate\"t\332A\034project,region,node_templa" + + "te\202\323\344\223\002O\022M/compute/v1/projects/{project}" + + "/regions/{region}/nodeTemplates/{node_te" + + "mplate}\022\342\001\n\014GetIamPolicy\0228.google.cloud." + + "compute.v1.GetIamPolicyNodeTemplateReque" + + "st\032\037.google.cloud.compute.v1.Policy\"w\332A\027" + + "project,region,resource\202\323\344\223\002W\022U/compute/" + + "v1/projects/{project}/regions/{region}/n" + + "odeTemplates/{resource}/getIamPolicy\022\373\001\n" + + "\006Insert\0222.google.cloud.compute.v1.Insert" + + "NodeTemplateRequest\032\".google.cloud.compu" + + "te.v1.Operation\"\230\001\332A%project,region,node" + + "_template_resource\212N\020RegionOperations\202\323\344" + + "\223\002W\"=/compute/v1/projects/{project}/regi" + + "ons/{region}/nodeTemplates:\026node_templat" + + "e_resource\022\274\001\n\004List\0221.google.cloud.compu" + + "te.v1.ListNodeTemplatesRequest\032).google." + + "cloud.compute.v1.NodeTemplateList\"V\332A\016pr" + + "oject,region\202\323\344\223\002?\022=/compute/v1/projects" + + "/{project}/regions/{region}/nodeTemplate" + + "s\022\252\002\n\014SetIamPolicy\0228.google.cloud.comput" + + "e.v1.SetIamPolicyNodeTemplateRequest\032\037.g" + + "oogle.cloud.compute.v1.Policy\"\276\001\332A:proje" + + "ct,region,resource,region_set_policy_req" + + "uest_resource\202\323\344\223\002{\"U/compute/v1/project" + + "s/{project}/regions/{region}/nodeTemplat" + + "es/{resource}/setIamPolicy:\"region_set_p" + + "olicy_request_resource\022\314\002\n\022TestIamPermis" + + "sions\022>.google.cloud.compute.v1.TestIamP" + + "ermissionsNodeTemplateRequest\0320.google.c" + + "loud.compute.v1.TestPermissionsResponse\"" + + "\303\001\332A9project,region,resource,test_permis" + + "sions_request_resource\202\323\344\223\002\200\001\"[/compute/" + + "v1/projects/{project}/regions/{region}/n" + + "odeTemplates/{resource}/testIamPermissio" + + "ns:!test_permissions_request_resource\032r\312" + + "A\026compute.googleapis.com\322AVhttps://www.g" + + "oogleapis.com/auth/compute,https://www.g" + + "oogleapis.com/auth/cloud-platform2\337\005\n\tNo" + + "deTypes\022\301\001\n\016AggregatedList\0227.google.clou" + + "d.compute.v1.AggregatedListNodeTypesRequ" + + "est\032/.google.cloud.compute.v1.NodeTypeAg" + + "gregatedList\"E\332A\007project\202\323\344\223\0025\0223/compute" + + "/v1/projects/{project}/aggregated/nodeTy" + + "pes\022\271\001\n\003Get\022+.google.cloud.compute.v1.Ge" + + "tNodeTypeRequest\032!.google.cloud.compute." + + "v1.NodeType\"b\332A\026project,zone,node_type\202\323" + + "\344\223\002C\022A/compute/v1/projects/{project}/zon" + + "es/{zone}/nodeTypes/{node_type}\022\252\001\n\004List" + + "\022-.google.cloud.compute.v1.ListNodeTypes" + + "Request\032%.google.cloud.compute.v1.NodeTy" + + "peList\"L\332A\014project,zone\202\323\344\223\0027\0225/compute/" + + "v1/projects/{project}/zones/{zone}/nodeT" + + "ypes\032\244\001\312A\026compute.googleapis.com\322A\207\001http" + + "s://www.googleapis.com/auth/compute.read" + + "only,https://www.googleapis.com/auth/com" + + "pute,https://www.googleapis.com/auth/clo" + + "ud-platform2\220\017\n\020PacketMirrorings\022\326\001\n\016Agg" + + "regatedList\022>.google.cloud.compute.v1.Ag" + + "gregatedListPacketMirroringsRequest\0326.go" + + "ogle.cloud.compute.v1.PacketMirroringAgg" + + "regatedList\"L\332A\007project\202\323\344\223\002<\022:/compute/" + + "v1/projects/{project}/aggregated/packetM" + + "irrorings\022\366\001\n\006Delete\0225.google.cloud.comp" + + "ute.v1.DeletePacketMirroringRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\220\001\332A\037pro" + + "ject,region,packet_mirroring\212N\020RegionOpe" + + "rations\202\323\344\223\002U*S/compute/v1/projects/{pro" + + "ject}/regions/{region}/packetMirrorings/" + + "{packet_mirroring}\022\342\001\n\003Get\0222.google.clou" + + "d.compute.v1.GetPacketMirroringRequest\032(" + + ".google.cloud.compute.v1.PacketMirroring" + + "\"}\332A\037project,region,packet_mirroring\202\323\344\223" + + "\002U\022S/compute/v1/projects/{project}/regio" + + "ns/{region}/packetMirrorings/{packet_mir" + + "roring}\022\207\002\n\006Insert\0225.google.cloud.comput" + + "e.v1.InsertPacketMirroringRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\241\001\332A(proje" + + "ct,region,packet_mirroring_resource\212N\020Re" + + "gionOperations\202\323\344\223\002]\"@/compute/v1/projec" + + "ts/{project}/regions/{region}/packetMirr" + + "orings:\031packet_mirroring_resource\022\305\001\n\004Li" + + "st\0224.google.cloud.compute.v1.ListPacketM" + + "irroringsRequest\032,.google.cloud.compute." + + "v1.PacketMirroringList\"Y\332A\016project,regio" + + "n\202\323\344\223\002B\022@/compute/v1/projects/{project}/" + + "regions/{region}/packetMirrorings\022\251\002\n\005Pa" + + "tch\0224.google.cloud.compute.v1.PatchPacke" + + "tMirroringRequest\032\".google.cloud.compute" + + ".v1.Operation\"\305\001\332A9project,region,packet" + + "_mirroring,packet_mirroring_resource\212N\020R" + + "egionOperations\202\323\344\223\002p2S/compute/v1/proje" + + "cts/{project}/regions/{region}/packetMir" + + "rorings/{packet_mirroring}:\031packet_mirro" + + "ring_resource\022\322\002\n\022TestIamPermissions\022A.g" + + "oogle.cloud.compute.v1.TestIamPermission" + + "sPacketMirroringRequest\0320.google.cloud.c" + + "ompute.v1.TestPermissionsResponse\"\306\001\332A9p" + + "roject,region,resource,test_permissions_" + + "request_resource\202\323\344\223\002\203\001\"^/compute/v1/pro" + + "jects/{project}/regions/{region}/packetM" + + "irrorings/{resource}/testIamPermissions:" + + "!test_permissions_request_resource\032r\312A\026c" + + "ompute.googleapis.com\322AVhttps://www.goog" + + "leapis.com/auth/compute,https://www.goog" + + "leapis.com/auth/cloud-platform2\253\033\n\010Proje" + + "cts\022\277\001\n\016DisableXpnHost\0225.google.cloud.co" + + "mpute.v1.DisableXpnHostProjectRequest\032\"." + + "google.cloud.compute.v1.Operation\"R\332A\007pr" + + "oject\212N\020GlobalOperations\202\323\344\223\002/\"-/compute" + + "/v1/projects/{project}/disableXpnHost\022\253\002" + + "\n\022DisableXpnResource\0229.google.cloud.comp" + + "ute.v1.DisableXpnResourceProjectRequest\032" + + "\".google.cloud.compute.v1.Operation\"\265\001\332A" + + "6project,projects_disable_xpn_resource_r" + + "equest_resource\212N\020GlobalOperations\202\323\344\223\002c" + + "\"1/compute/v1/projects/{project}/disable" + + "XpnResource:.projects_disable_xpn_resour" + + "ce_request_resource\022\274\001\n\rEnableXpnHost\0224." + + "google.cloud.compute.v1.EnableXpnHostPro" + + "jectRequest\032\".google.cloud.compute.v1.Op" + + "eration\"Q\332A\007project\212N\020GlobalOperations\202\323" + + "\344\223\002.\",/compute/v1/projects/{project}/ena" + + "bleXpnHost\022\246\002\n\021EnableXpnResource\0228.googl" + + "e.cloud.compute.v1.EnableXpnResourceProj" + + "ectRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"\262\001\332A5project,projects_enable_xpn_" + + "resource_request_resource\212N\020GlobalOperat" + + "ions\202\323\344\223\002a\"0/compute/v1/projects/{projec" + + "t}/enableXpnResource:-projects_enable_xp" + + "n_resource_request_resource\022\205\001\n\003Get\022*.go" + + "ogle.cloud.compute.v1.GetProjectRequest\032" + + " .google.cloud.compute.v1.Project\"0\332A\007pr" + + "oject\202\323\344\223\002 \022\036/compute/v1/projects/{proje" + + "ct}\022\236\001\n\nGetXpnHost\0221.google.cloud.comput" + + "e.v1.GetXpnHostProjectRequest\032 .google.c" + + "loud.compute.v1.Project\";\332A\007project\202\323\344\223\002" + + "+\022)/compute/v1/projects/{project}/getXpn" + + "Host\022\276\001\n\017GetXpnResources\0227.google.cloud." + + "compute.v1.GetXpnResourcesProjectsReques" + + "t\0320.google.cloud.compute.v1.ProjectsGetX" + + "pnResources\"@\332A\007project\202\323\344\223\0020\022./compute/" + + "v1/projects/{project}/getXpnResources\022\375\001" + + "\n\014ListXpnHosts\0224.google.cloud.compute.v1" + + ".ListXpnHostsProjectsRequest\032$.google.cl" + + "oud.compute.v1.XpnHostList\"\220\001\332A0project," + + "projects_list_xpn_hosts_request_resource" + + "\202\323\344\223\002W\"+/compute/v1/projects/{project}/l" + + "istXpnHosts:(projects_list_xpn_hosts_req", + "uest_resource\022\345\001\n\010MoveDisk\022/.google.clou" + + "d.compute.v1.MoveDiskProjectRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\203\001\332A\"pro" + + "ject,disk_move_request_resource\212N\020Global" + + "Operations\202\323\344\223\002E\"\'/compute/v1/projects/{" + + "project}/moveDisk:\032disk_move_request_res" + + "ource\022\371\001\n\014MoveInstance\0223.google.cloud.co" + + "mpute.v1.MoveInstanceProjectRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\217\001\332A&pro" + + "ject,instance_move_request_resource\212N\020Gl" + + "obalOperations\202\323\344\223\002M\"+/compute/v1/projec" + + "ts/{project}/moveInstance:\036instance_move" + + "_request_resource\022\250\002\n\021SetCloudArmorTier\022" + + "8.google.cloud.compute.v1.SetCloudArmorT" + + "ierProjectRequest\032\".google.cloud.compute" + + ".v1.Operation\"\264\001\332A6project,projects_set_" + + "cloud_armor_tier_request_resource\212N\020Glob" + + "alOperations\202\323\344\223\002b\"0/compute/v1/projects" + + "/{project}/setCloudArmorTier:.projects_s" + + "et_cloud_armor_tier_request_resource\022\206\002\n" + + "\031SetCommonInstanceMetadata\022@.google.clou" + + "d.compute.v1.SetCommonInstanceMetadataPr" + + "ojectRequest\032\".google.cloud.compute.v1.O" + + "peration\"\202\001\332A\031project,metadata_resource\212" + + "N\020GlobalOperations\202\323\344\223\002M\"8/compute/v1/pr" + + "ojects/{project}/setCommonInstanceMetada" + + "ta:\021metadata_resource\022\274\002\n\025SetDefaultNetw" + + "orkTier\022<.google.cloud.compute.v1.SetDef" + + "aultNetworkTierProjectRequest\032\".google.c" + + "loud.compute.v1.Operation\"\300\001\332A:project,p" + + "rojects_set_default_network_tier_request" + + "_resource\212N\020GlobalOperations\202\323\344\223\002j\"4/com" + + "pute/v1/projects/{project}/setDefaultNet" + + "workTier:2projects_set_default_network_t" + + "ier_request_resource\022\221\002\n\024SetUsageExportB" + + "ucket\022;.google.cloud.compute.v1.SetUsage" + + "ExportBucketProjectRequest\032\".google.clou" + + "d.compute.v1.Operation\"\227\001\332A&project,usag" + + "e_export_location_resource\212N\020GlobalOpera" + + "tions\202\323\344\223\002U\"3/compute/v1/projects/{proje" + + "ct}/setUsageExportBucket:\036usage_export_l" + + "ocation_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\"\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" + + "oud-platform2\356\017\n\030PublicAdvertisedPrefixe" + + "s\022\222\002\n\010Announce\022?.google.cloud.compute.v1" + + ".AnnouncePublicAdvertisedPrefixeRequest\032" + + "\".google.cloud.compute.v1.Operation\"\240\001\332A" + + " project,public_advertised_prefix\212N\020Glob" + + "alOperations\202\323\344\223\002d\"b/compute/v1/projects" + + "/{project}/global/publicAdvertisedPrefix" + + "es/{public_advertised_prefix}/announce\022\205" + + "\002\n\006Delete\022=.google.cloud.compute.v1.Dele" + + "tePublicAdvertisedPrefixeRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\227\001\332A projec" + + "t,public_advertised_prefix\212N\020GlobalOpera" + + "tions\202\323\344\223\002[*Y/compute/v1/projects/{proje" + + "ct}/global/publicAdvertisedPrefixes/{pub" + + "lic_advertised_prefix}\022\371\001\n\003Get\022:.google." + + "cloud.compute.v1.GetPublicAdvertisedPref" + + "ixeRequest\032/.google.cloud.compute.v1.Pub" + + "licAdvertisedPrefix\"\204\001\332A project,public_" + + "advertised_prefix\202\323\344\223\002[\022Y/compute/v1/pro" + + "jects/{project}/global/publicAdvertisedP" + + "refixes/{public_advertised_prefix}\022\226\002\n\006I" + + "nsert\022=.google.cloud.compute.v1.InsertPu" + + "blicAdvertisedPrefixeRequest\032\".google.cl" + + "oud.compute.v1.Operation\"\250\001\332A)project,pu" + + "blic_advertised_prefix_resource\212N\020Global" + + "Operations\202\323\344\223\002c\">/compute/v1/projects/{" + + "project}/global/publicAdvertisedPrefixes" + + ":!public_advertised_prefix_resource\022\313\001\n\004" + + "List\022<.google.cloud.compute.v1.ListPubli" + + "cAdvertisedPrefixesRequest\0323.google.clou" + + "d.compute.v1.PublicAdvertisedPrefixList\"" + + "P\332A\007project\202\323\344\223\002@\022>/compute/v1/projects/" + + "{project}/global/publicAdvertisedPrefixe" + + "s\022\310\002\n\005Patch\022<.google.cloud.compute.v1.Pa" + + "tchPublicAdvertisedPrefixeRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\334\001\332ABproje" + + "ct,public_advertised_prefix,public_adver" + + "tised_prefix_resource\212N\020GlobalOperations" + + "\202\323\344\223\002~2Y/compute/v1/projects/{project}/g" + + "lobal/publicAdvertisedPrefixes/{public_a" + + "dvertised_prefix}:!public_advertised_pre" + + "fix_resource\022\222\002\n\010Withdraw\022?.google.cloud" + + ".compute.v1.WithdrawPublicAdvertisedPref" + + "ixeRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"\240\001\332A project,public_advertised_pr" + + "efix\212N\020GlobalOperations\202\323\344\223\002d\"b/compute/" + + "v1/projects/{project}/global/publicAdver" + + "tisedPrefixes/{public_advertised_prefix}" + + "/withdraw\032r\312A\026compute.googleapis.com\322AVh" + + "ttps://www.googleapis.com/auth/compute,h" + + "ttps://www.googleapis.com/auth/cloud-pla" + + "tform2\264\022\n\027PublicDelegatedPrefixes\022\352\001\n\016Ag" + + "gregatedList\022E.google.cloud.compute.v1.A" + + "ggregatedListPublicDelegatedPrefixesRequ" + + "est\032<.google.cloud.compute.v1.PublicDele" + + "gatedPrefixAggregatedList\"S\332A\007project\202\323\344" + + "\223\002C\022A/compute/v1/projects/{project}/aggr" + + "egated/publicDelegatedPrefixes\022\237\002\n\010Annou" + + "nce\022>.google.cloud.compute.v1.AnnouncePu" + + "blicDelegatedPrefixeRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\256\001\332A&project,reg" + + "ion,public_delegated_prefix\212N\020RegionOper" + + "ations\202\323\344\223\002l\"j/compute/v1/projects/{proj" + + "ect}/regions/{region}/publicDelegatedPre" + + "fixes/{public_delegated_prefix}/announce" + + "\022\222\002\n\006Delete\022<.google.cloud.compute.v1.De" + + "letePublicDelegatedPrefixeRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\245\001\332A&proje" + + "ct,region,public_delegated_prefix\212N\020Regi" + + "onOperations\202\323\344\223\002c*a/compute/v1/projects" + + "/{project}/regions/{region}/publicDelega" + + "tedPrefixes/{public_delegated_prefix}\022\205\002" + + "\n\003Get\0229.google.cloud.compute.v1.GetPubli" + + "cDelegatedPrefixeRequest\032..google.cloud." + + "compute.v1.PublicDelegatedPrefix\"\222\001\332A&pr" + + "oject,region,public_delegated_prefix\202\323\344\223" + + "\002c\022a/compute/v1/projects/{project}/regio" + + "ns/{region}/publicDelegatedPrefixes/{pub" + + "lic_delegated_prefix}\022\243\002\n\006Insert\022<.googl" + + "e.cloud.compute.v1.InsertPublicDelegated" + + "PrefixeRequest\032\".google.cloud.compute.v1" + + ".Operation\"\266\001\332A/project,region,public_de" + + "legated_prefix_resource\212N\020RegionOperatio" + + "ns\202\323\344\223\002k\"G/compute/v1/projects/{project}" + + "/regions/{region}/publicDelegatedPrefixe" + + "s: public_delegated_prefix_resource\022\331\001\n\004" + + "List\022;.google.cloud.compute.v1.ListPubli" + + "cDelegatedPrefixesRequest\0322.google.cloud" + + ".compute.v1.PublicDelegatedPrefixList\"`\332" + + "A\016project,region\202\323\344\223\002I\022G/compute/v1/proj" + + "ects/{project}/regions/{region}/publicDe" + + "legatedPrefixes\022\324\002\n\005Patch\022;.google.cloud" + + ".compute.v1.PatchPublicDelegatedPrefixeR" + "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" + + "on\"\351\001\332AGproject,region,public_delegated_" + + "prefix,public_delegated_prefix_resource\212" + + "N\020RegionOperations\202\323\344\223\002\205\0012a/compute/v1/p" + + "rojects/{project}/regions/{region}/publi" + + "cDelegatedPrefixes/{public_delegated_pre" + + "fix}: public_delegated_prefix_resource\022\237" + + "\002\n\010Withdraw\022>.google.cloud.compute.v1.Wi" + + "thdrawPublicDelegatedPrefixeRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\256\001\332A&pro" + + "ject,region,public_delegated_prefix\212N\020Re" + + "gionOperations\202\323\344\223\002l\"j/compute/v1/projec" + + "ts/{project}/regions/{region}/publicDele" + + "gatedPrefixes/{public_delegated_prefix}/" + + "withdraw\032r\312A\026compute.googleapis.com\322AVht" + + "tps://www.googleapis.com/auth/compute,ht" + + "tps://www.googleapis.com/auth/cloud-plat" + + "form2\360\013\n\021RegionAutoscalers\022\345\001\n\006Delete\0226." + + "google.cloud.compute.v1.DeleteRegionAuto" + + "scalerRequest\032\".google.cloud.compute.v1." + + "Operation\"\177\332A\031project,region,autoscaler\212" + + "N\020RegionOperations\202\323\344\223\002J*H/compute/v1/pr" + + "ojects/{project}/regions/{region}/autosc" + + "alers/{autoscaler}\022\315\001\n\003Get\0223.google.clou" + + "d.compute.v1.GetRegionAutoscalerRequest\032" + + "#.google.cloud.compute.v1.Autoscaler\"l\332A" + + "\031project,region,autoscaler\202\323\344\223\002J\022H/compu" + + "te/v1/projects/{project}/regions/{region" + + "}/autoscalers/{autoscaler}\022\367\001\n\006Insert\0226." + + "google.cloud.compute.v1.InsertRegionAuto" + + "scalerRequest\032\".google.cloud.compute.v1." + + "Operation\"\220\001\332A\"project,region,autoscaler" + + "_resource\212N\020RegionOperations\202\323\344\223\002R\";/com" + + "pute/v1/projects/{project}/regions/{regi" + + "on}/autoscalers:\023autoscaler_resource\022\302\001\n" + + "\004List\0225.google.cloud.compute.v1.ListRegi" + + "onAutoscalersRequest\032-.google.cloud.comp" + + "ute.v1.RegionAutoscalerList\"T\332A\016project," + + "region\202\323\344\223\002=\022;/compute/v1/projects/{proj" + + "ect}/regions/{region}/autoscalers\022\365\001\n\005Pa" + + "tch\0225.google.cloud.compute.v1.PatchRegio" + + "nAutoscalerRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\220\001\332A\"project,region,autos" + + "caler_resource\212N\020RegionOperations\202\323\344\223\002R2" + + ";/compute/v1/projects/{project}/regions/" + + "{region}/autoscalers:\023autoscaler_resourc" + + "e\022\367\001\n\006Update\0226.google.cloud.compute.v1.U" + + "pdateRegionAutoscalerRequest\032\".google.cl" + + "oud.compute.v1.Operation\"\220\001\332A\"project,re" + + "gion,autoscaler_resource\212N\020RegionOperati" + + "ons\202\323\344\223\002R\032;/compute/v1/projects/{project" + + "}/regions/{region}/autoscalers:\023autoscal" + + "er_resource\032r\312A\026compute.googleapis.com\322A" + + "Vhttps://www.googleapis.com/auth/compute" + + ",https://www.googleapis.com/auth/cloud-p" + + "latform2\275\033\n\025RegionBackendServices\022\370\001\n\006De" + + "lete\022:.google.cloud.compute.v1.DeleteReg" + + "ionBackendServiceRequest\032\".google.cloud." + + "compute.v1.Operation\"\215\001\332A\036project,region" + + ",backend_service\212N\020RegionOperations\202\323\344\223\002" + + "S*Q/compute/v1/projects/{project}/region" + + "s/{region}/backendServices/{backend_serv" + + "ice}\022\343\001\n\003Get\0227.google.cloud.compute.v1.G" + + "etRegionBackendServiceRequest\032\'.google.c" + + "loud.compute.v1.BackendService\"z\332A\036proje" + + "ct,region,backend_service\202\323\344\223\002S\022Q/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" + + "/backendServices/{backend_service}\022\313\002\n\tG" + + "etHealth\022=.google.cloud.compute.v1.GetHe" + + "althRegionBackendServiceRequest\0322.google" + + ".cloud.compute.v1.BackendServiceGroupHea" + + "lth\"\312\001\332A@project,region,backend_service," + + "resource_group_reference_resource\202\323\344\223\002\200\001" + + "\"[/compute/v1/projects/{project}/regions" + + "/{region}/backendServices/{backend_servi" + + "ce}/getHealth:!resource_group_reference_" + + "resource\022\354\001\n\014GetIamPolicy\022@.google.cloud" + + ".compute.v1.GetIamPolicyRegionBackendSer" + + "viceRequest\032\037.google.cloud.compute.v1.Po" + + "licy\"y\332A\027project,region,resource\202\323\344\223\002Y\022W" + + "/compute/v1/projects/{project}/regions/{" + + "region}/backendServices/{resource}/getIa" + + "mPolicy\022\211\002\n\006Insert\022:.google.cloud.comput" + + "e.v1.InsertRegionBackendServiceRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\236\001\332A\'" + + "project,region,backend_service_resource\212" + + "N\020RegionOperations\202\323\344\223\002[\"?/compute/v1/pr" + + "ojects/{project}/regions/{region}/backen" + + "dServices:\030backend_service_resource\022\310\001\n\004" + + "List\0229.google.cloud.compute.v1.ListRegio" + + "nBackendServicesRequest\032+.google.cloud.c" + + "ompute.v1.BackendServiceList\"X\332A\016project" + + ",region\202\323\344\223\002A\022?/compute/v1/projects/{pro" + + "ject}/regions/{region}/backendServices\022\345" + + "\001\n\nListUsable\022?.google.cloud.compute.v1." + + "ListUsableRegionBackendServicesRequest\0321" + + ".google.cloud.compute.v1.BackendServiceL" + + "istUsable\"c\332A\016project,region\202\323\344\223\002L\022J/com" + + "pute/v1/projects/{project}/regions/{regi" + + "on}/backendServices/listUsable\022\251\002\n\005Patch" + + "\0229.google.cloud.compute.v1.PatchRegionBa" + + "ckendServiceRequest\032\".google.cloud.compu" + + "te.v1.Operation\"\300\001\332A7project,region,back" + + "end_service,backend_service_resource\212N\020R" + + "egionOperations\202\323\344\223\002m2Q/compute/v1/proje" + + "cts/{project}/regions/{region}/backendSe" + + "rvices/{backend_service}:\030backend_servic" + + "e_resource\022\264\002\n\014SetIamPolicy\022@.google.clo" + + "ud.compute.v1.SetIamPolicyRegionBackendS" + + "erviceRequest\032\037.google.cloud.compute.v1." + + "Policy\"\300\001\332A:project,region,resource,regi" + + "on_set_policy_request_resource\202\323\344\223\002}\"W/c" + + "ompute/v1/projects/{project}/regions/{re" + + "gion}/backendServices/{resource}/setIamP" + + "olicy:\"region_set_policy_request_resourc" + + "e\022\350\002\n\021SetSecurityPolicy\022E.google.cloud.c" + + "ompute.v1.SetSecurityPolicyRegionBackend" + + "ServiceRequest\032\".google.cloud.compute.v1" + + ".Operation\"\347\001\332AAproject,region,backend_s" + + "ervice,security_policy_reference_resourc" + + "e\212N\020RegionOperations\202\323\344\223\002\211\001\"c/compute/v1" + + "/projects/{project}/regions/{region}/bac" + + "kendServices/{backend_service}/setSecuri" + + "tyPolicy:\"security_policy_reference_reso" + + "urce\022\326\002\n\022TestIamPermissions\022F.google.clo" + + "ud.compute.v1.TestIamPermissionsRegionBa" + + "ckendServiceRequest\0320.google.cloud.compu" + + "te.v1.TestPermissionsResponse\"\305\001\332A9proje" + + "ct,region,resource,test_permissions_requ" + + "est_resource\202\323\344\223\002\202\001\"]/compute/v1/project" + + "s/{project}/regions/{region}/backendServ" + + "ices/{resource}/testIamPermissions:!test" + + "_permissions_request_resource\022\253\002\n\006Update" + + "\022:.google.cloud.compute.v1.UpdateRegionB" + + "ackendServiceRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\300\001\332A7project,region,bac" + + "kend_service,backend_service_resource\212N\020" + + "RegionOperations\202\323\344\223\002m\032Q/compute/v1/proj" + + "ects/{project}/regions/{region}/backendS" + + "ervices/{backend_service}:\030backend_servi" + + "ce_resource\032r\312A\026compute.googleapis.com\322A" + + "Vhttps://www.googleapis.com/auth/compute" + + ",https://www.googleapis.com/auth/cloud-p" + + "latform2\362\t\n\021RegionCommitments\022\315\001\n\016Aggreg" + + "atedList\022?.google.cloud.compute.v1.Aggre" + + "gatedListRegionCommitmentsRequest\0321.goog" + + "le.cloud.compute.v1.CommitmentAggregated" + + "List\"G\332A\007project\202\323\344\223\0027\0225/compute/v1/proj" + + "ects/{project}/aggregated/commitments\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" + + "nCommitmentRequest\032#.google.cloud.comput" + + "e.v1.Commitment\"l\332A\031project,region,commi" + + "tment\202\323\344\223\002J\022H/compute/v1/projects/{proje" + + "ct}/regions/{region}/commitments/{commit" + + "ment}\022\367\001\n\006Insert\0226.google.cloud.compute." + + "v1.InsertRegionCommitmentRequest\032\".googl" + "e.cloud.compute.v1.Operation\"\220\001\332A\"projec" - + "t,region,autoscaler_resource\212N\020RegionOpe" + + "t,region,commitment_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}" - + "/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\"\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\"" - + "\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" - + "}/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}:\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" - + "}/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" + + "ject}/regions/{region}/commitments:\023comm" + + "itment_resource\022\274\001\n\004List\0225.google.cloud." + + "compute.v1.ListRegionCommitmentsRequest\032" + + "\'.google.cloud.compute.v1.CommitmentList" + + "\"T\332A\016project,region\202\323\344\223\002=\022;/compute/v1/p" + + "rojects/{project}/regions/{region}/commi" + + "tments\022\217\002\n\006Update\0226.google.cloud.compute" + + ".v1.UpdateRegionCommitmentRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\250\001\332A-proje" + + "ct,region,commitment,commitment_resource" + + "\212N\020RegionOperations\202\323\344\223\002_2H/compute/v1/p" + + "rojects/{project}/regions/{region}/commi" + + "tments/{commitment}:\023commitment_resource" + + "\032r\312A\026compute.googleapis.com\322AVhttps://ww" + + "w.googleapis.com/auth/compute,https://ww" + + "w.googleapis.com/auth/cloud-platform2\277\004\n" + + "\017RegionDiskTypes\022\305\001\n\003Get\0221.google.cloud." + + "compute.v1.GetRegionDiskTypeRequest\032!.go" + + "ogle.cloud.compute.v1.DiskType\"h\332A\030proje" + + "ct,region,disk_type\202\323\344\223\002G\022E/compute/v1/p" + + "rojects/{project}/regions/{region}/diskT" + + "ypes/{disk_type}\022\274\001\n\004List\0223.google.cloud" + + ".compute.v1.ListRegionDiskTypesRequest\032+" + + ".google.cloud.compute.v1.RegionDiskTypeL" + + "ist\"R\332A\016project,region\202\323\344\223\002;\0229/compute/v" + + "1/projects/{project}/regions/{region}/di" + + "skTypes\032\244\001\312A\026compute.googleapis.com\322A\207\001h" + + "ttps://www.googleapis.com/auth/compute.r" + + "eadonly,https://www.googleapis.com/auth/" + + "compute,https://www.googleapis.com/auth/" + + "cloud-platform2\217&\n\013RegionDisks\022\346\002\n\023AddRe" + + "sourcePolicies\022=.google.cloud.compute.v1" + + ".AddResourcePoliciesRegionDiskRequest\032\"." + + "google.cloud.compute.v1.Operation\"\353\001\332AGp" + + "roject,region,disk,region_disks_add_reso" + + "urce_policies_request_resource\212N\020RegionO" + + "perations\202\323\344\223\002\207\001\"P/compute/v1/projects/{" + + "project}/regions/{region}/disks/{disk}/a" + + "ddResourcePolicies:3region_disks_add_res" + + "ource_policies_request_resource\022\234\002\n\nBulk" + + "Insert\0224.google.cloud.compute.v1.BulkIns" + + "ertRegionDiskRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\263\001\332A1project,region,bul" + + "k_insert_disk_resource_resource\212N\020Region" + + "Operations\202\323\344\223\002f\"@/compute/v1/projects/{" + + "project}/regions/{region}/disks/bulkInse" + + "rt:\"bulk_insert_disk_resource_resource\022\222" + + "\002\n\016CreateSnapshot\0228.google.cloud.compute" + + ".v1.CreateSnapshotRegionDiskRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\241\001\332A%pro" + + "ject,region,disk,snapshot_resource\212N\020Reg" + + "ionOperations\202\323\344\223\002`\"K/compute/v1/project" + + "s/{project}/regions/{region}/disks/{disk" + + "}/createSnapshot:\021snapshot_resource\022\315\001\n\006" + + "Delete\0220.google.cloud.compute.v1.DeleteR" + "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" + + "v1.Operation\"m\332A\023project,region,disk\212N\020R" + + "egionOperations\202\323\344\223\002>*\022" + + "" - + "*\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\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<" + + "ion}/disks:\rdisk_resource\022\252\001\n\004List\022/.goo" + + "gle.cloud.compute.v1.ListRegionDisksRequ" + + "est\032!.google.cloud.compute.v1.DiskList\"N" + + "\332A\016project,region\202\323\344\223\0027\0225/compute/v1/pro" + + "jects/{project}/regions/{region}/disks\022\365" + + "\002\n\026RemoveResourcePolicies\022@.google.cloud" + + ".compute.v1.RemoveResourcePoliciesRegion" + + "DiskRequest\032\".google.cloud.compute.v1.Op" + + "eration\"\364\001\332AJproject,region,disk,region_" + + "disks_remove_resource_policies_request_r" + + "esource\212N\020RegionOperations\202\323\344\223\002\215\001\"S/comp" + + "ute/v1/projects/{project}/regions/{regio" + + "n}/disks/{disk}/removeResourcePolicies:6" + + "region_disks_remove_resource_policies_re" + + "quest_resource\022\240\002\n\006Resize\0220.google.cloud" + + ".compute.v1.ResizeRegionDiskRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\277\001\332A8pro" + + "ject,region,disk,region_disks_resize_req" + + "uest_resource\212N\020RegionOperations\202\323\344\223\002k\"C" + "/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}/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}/createInstances:@region_instance_gr" - + "oup_managers_create_instances_request_re" - + "source\022\222\002\n\006Delete\022@.google.cloud.compute" - + ".v1.DeleteRegionInstanceGroupManagerRequ" + + "region}/disks/{disk}/resize:$region_disk" + + "s_resize_request_resource\022\240\002\n\014SetIamPoli" + + "cy\0226.google.cloud.compute.v1.SetIamPolic" + + "yRegionDiskRequest\032\037.google.cloud.comput" + + "e.v1.Policy\"\266\001\332A:project,region,resource" + + ",region_set_policy_request_resource\202\323\344\223\002" + + "s\"M/compute/v1/projects/{project}/region" + + "s/{region}/disks/{resource}/setIamPolicy" + + ":\"region_set_policy_request_resource\022\255\002\n" + + "\tSetLabels\0223.google.cloud.compute.v1.Set", + "LabelsRegionDiskRequest\032\".google.cloud.c" + + "ompute.v1.Operation\"\306\001\332A:project,region," + + "resource,region_set_labels_request_resou" + + "rce\212N\020RegionOperations\202\323\344\223\002p\"J/compute/v" + + "1/projects/{project}/regions/{region}/di" + + "sks/{resource}/setLabels:\"region_set_lab" + + "els_request_resource\022\360\002\n\025StartAsyncRepli" + + "cation\022?.google.cloud.compute.v1.StartAs" + + "yncReplicationRegionDiskRequest\032\".google" + + ".cloud.compute.v1.Operation\"\361\001\332AIproject" + + ",region,disk,region_disks_start_async_re" + + "plication_request_resource\212N\020RegionOpera" + + "tions\202\323\344\223\002\213\001\"R/compute/v1/projects/{proj" + + "ect}/regions/{region}/disks/{disk}/start" + + "AsyncReplication:5region_disks_start_asy" + + "nc_replication_request_resource\022\377\001\n\024Stop" + + "AsyncReplication\022>.google.cloud.compute." + + "v1.StopAsyncReplicationRegionDiskRequest" + + "\032\".google.cloud.compute.v1.Operation\"\202\001\332" + + "A\023project,region,disk\212N\020RegionOperations" + + "\202\323\344\223\002S\"Q/compute/v1/projects/{project}/r" + + "egions/{region}/disks/{disk}/stopAsyncRe" + + "plication\022\356\002\n\031StopGroupAsyncReplication\022" + + "C.google.cloud.compute.v1.StopGroupAsync" + + "ReplicationRegionDiskRequest\032\".google.cl" + + "oud.compute.v1.Operation\"\347\001\332ACproject,re" + + "gion,disks_stop_group_async_replication_" + + "resource_resource\212N\020RegionOperations\202\323\344\223" + + "\002\207\001\"O/compute/v1/projects/{project}/regi" + + "ons/{region}/disks/stopGroupAsyncReplica" + + "tion:4disks_stop_group_async_replication" + + "_resource_resource\022\301\002\n\022TestIamPermission" + + "s\022<.google.cloud.compute.v1.TestIamPermi" + + "ssionsRegionDiskRequest\0320.google.cloud.c" + + "ompute.v1.TestPermissionsResponse\"\272\001\332A9p" + + "roject,region,resource,test_permissions_" + + "request_resource\202\323\344\223\002x\"S/compute/v1/proj" + + "ects/{project}/regions/{region}/disks/{r" + + "esource}/testIamPermissions:!test_permis" + + "sions_request_resource\022\353\001\n\006Update\0220.goog" + + "le.cloud.compute.v1.UpdateRegionDiskRequ" + "est\032\".google.cloud.compute.v1.Operation\"" - + "\241\001\332A%project,region,instance_group_manag" - + "er\212N\020RegionOperations\202\323\344\223\002`*^/compute/v1" - + "/projects/{project}/regions/{region}/ins" - + "tanceGroupManagers/{instance_group_manag" - + "er}\022\270\003\n\017DeleteInstances\022I.google.cloud.c" - + "ompute.v1.DeleteInstancesRegionInstanceG" - + "roupManagerRequest\032\".google.cloud.comput" - + "e.v1.Operation\"\265\002\332Afproject,region,insta" - + "nce_group_manager,region_instance_group_" - + "managers_delete_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}/deleteInstances:@region_instance_gr" - + "oup_managers_delete_instances_request_re" - + "source\022\325\003\n\030DeletePerInstanceConfigs\022R.go" - + "ogle.cloud.compute.v1.DeletePerInstanceC" - + "onfigsRegionInstanceGroupManagerRequest\032" - + "\".google.cloud.compute.v1.Operation\"\300\002\332A" - + "gproject,region,instance_group_manager,r" - + "egion_instance_group_manager_delete_inst" - + "ance_config_req_resource\212N\020RegionOperati" - + "ons\202\323\344\223\002\274\001\"w/compute/v1/projects/{projec" - + "t}/regions/{region}/instanceGroupManager" - + "s/{instance_group_manager}/deletePerInst" - + "anceConfigs:Aregion_instance_group_manag" - + "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" + + "\212\001\332A!project,region,disk,disk_resource\212N" + + "\020RegionOperations\202\323\344\223\002M2.google.cloud.compute" + + ".v1.DeleteRegionHealthCheckServiceReques" + + "t\032\".google.cloud.compute.v1.Operation\"\233\001" + + "\332A#project,region,health_check_service\212N" + + "\020RegionOperations\202\323\344\223\002\\*Z/compute/v1/pro" + + "jects/{project}/regions/{region}/healthC" + + "heckServices/{health_check_service}\022\372\001\n\003" + + "Get\022;.google.cloud.compute.v1.GetRegionH" + + "ealthCheckServiceRequest\032+.google.cloud." + + "compute.v1.HealthCheckService\"\210\001\332A#proje" + + "ct,region,health_check_service\202\323\344\223\002\\\022Z/c" + + "ompute/v1/projects/{project}/regions/{re" + + "gion}/healthCheckServices/{health_check_" + + "service}\022\233\002\n\006Insert\022>.google.cloud.compu" + + "te.v1.InsertRegionHealthCheckServiceRequ" + + "est\032\".google.cloud.compute.v1.Operation\"" + + "\254\001\332A,project,region,health_check_service" + + "_resource\212N\020RegionOperations\202\323\344\223\002d\"C/com" + + "pute/v1/projects/{project}/regions/{regi" + + "on}/healthCheckServices:\035health_check_se" + + "rvice_resource\022\325\001\n\004List\022=.google.cloud.c" + + "ompute.v1.ListRegionHealthCheckServicesR" + + "equest\0320.google.cloud.compute.v1.HealthC" + + "heckServicesList\"\\\332A\016project,region\202\323\344\223\002" + + "E\022C/compute/v1/projects/{project}/region" + + "s/{region}/healthCheckServices\022\305\002\n\005Patch" + + "\022=.google.cloud.compute.v1.PatchRegionHe" + + "althCheckServiceRequest\032\".google.cloud.c" + + "ompute.v1.Operation\"\330\001\332AAproject,region," + + "health_check_service,health_check_servic" + + "e_resource\212N\020RegionOperations\202\323\344\223\002{2Z/co" + + "mpute/v1/projects/{project}/regions/{reg" + + "ion}/healthCheckServices/{health_check_s" + + "ervice}:\035health_check_service_resource\032r" + + "\312A\026compute.googleapis.com\322AVhttps://www." + + "googleapis.com/auth/compute,https://www." + + "googleapis.com/auth/cloud-platform2\306\014\n\022R" + + "egionHealthChecks\022\354\001\n\006Delete\0227.google.cl" + + "oud.compute.v1.DeleteRegionHealthCheckRe" + + "quest\032\".google.cloud.compute.v1.Operatio" + + "n\"\204\001\332A\033project,region,health_check\212N\020Reg" + + "ionOperations\202\323\344\223\002M*K/compute/v1/project" + + "s/{project}/regions/{region}/healthCheck" + + "s/{health_check}\022\324\001\n\003Get\0224.google.cloud." + + "compute.v1.GetRegionHealthCheckRequest\032$" + + ".google.cloud.compute.v1.HealthCheck\"q\332A" + + "\033project,region,health_check\202\323\344\223\002M\022K/com" + + "pute/v1/projects/{project}/regions/{regi" + + "on}/healthChecks/{health_check}\022\375\001\n\006Inse" + + "rt\0227.google.cloud.compute.v1.InsertRegio" + + "nHealthCheckRequest\032\".google.cloud.compu" + + "te.v1.Operation\"\225\001\332A$project,region,heal" + + "th_check_resource\212N\020RegionOperations\202\323\344\223" + + "\002U\"\022region_instance_group_managers_s" + + "top_instances_request_resource\022\275\003\n\020Suspe" + + "ndInstances\022J.google.cloud.compute.v1.Su" + + "spendInstancesRegionInstanceGroupManager" + + "Request\032\".google.cloud.compute.v1.Operat" + + "ion\"\270\002\332Agproject,region,instance_group_m" + + "anager,region_instance_group_managers_su" + + "spend_instances_request_resource\212N\020Regio" + + "nOperations\202\323\344\223\002\264\001\"o/compute/v1/projects" + + "/{project}/regions/{region}/instanceGrou" + + "pManagers/{instance_group_manager}/suspe" + + "ndInstances:Aregion_instance_group_manag" + + "ers_suspend_instances_request_resource\022\325" + + "\003\n\030UpdatePerInstanceConfigs\022R.google.clo" + + "ud.compute.v1.UpdatePerInstanceConfigsRe" + "gionInstanceGroupManagerRequest\032\".google" - + ".cloud.compute.v1.Operation\"\262\002\332Aeproject" + + ".cloud.compute.v1.Operation\"\300\002\332Agproject" + ",region,instance_group_manager,region_in" - + "stance_group_managers_start_instances_re" - + "quest_resource\212N\020RegionOperations\202\323\344\223\002\260\001" - + "\"m/compute/v1/projects/{project}/regions" - + "/{region}/instanceGroupManagers/{instanc" - + "e_group_manager}/startInstances:?region_" - + "instance_group_managers_start_instances_" - + "request_resource\022\256\003\n\rStopInstances\022G.goo" - + "gle.cloud.compute.v1.StopInstancesRegion" - + "InstanceGroupManagerRequest\032\".google.clo" - + "ud.compute.v1.Operation\"\257\002\332Adproject,reg" - + "ion,instance_group_manager,region_instan" - + "ce_group_managers_stop_instances_request" - + "_resource\212N\020RegionOperations\202\323\344\223\002\256\001\"l/co" + + "stance_group_manager_update_instance_con" + + "fig_req_resource\212N\020RegionOperations\202\323\344\223\002" + + "\274\001\"w/compute/v1/projects/{project}/regio" + + "ns/{region}/instanceGroupManagers/{insta" + + "nce_group_manager}/updatePerInstanceConf" + + "igs:Aregion_instance_group_manager_updat" + + "e_instance_config_req_resource\032r\312A\026compu" + + "te.googleapis.com\322AVhttps://www.googleap" + + "is.com/auth/compute,https://www.googleap" + + "is.com/auth/cloud-platform2\307\n\n\024RegionIns" + + "tanceGroups\022\336\001\n\003Get\0226.google.cloud.compu" + + "te.v1.GetRegionInstanceGroupRequest\032&.go" + + "ogle.cloud.compute.v1.InstanceGroup\"w\332A\035" + + "project,region,instance_group\202\323\344\223\002Q\022O/co" + "mpute/v1/projects/{project}/regions/{reg" - + "ion}/instanceGroupManagers/{instance_gro" - + "up_manager}/stopInstances:>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" - + "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" + + "ion}/instanceGroups/{instance_group}\022\313\001\n" + + "\004List\0228.google.cloud.compute.v1.ListRegi" + + "onInstanceGroupsRequest\0320.google.cloud.c" + + "ompute.v1.RegionInstanceGroupList\"W\332A\016pr" + + "oject,region\202\323\344\223\002@\022>/compute/v1/projects" + + "/{project}/regions/{region}/instanceGrou" + + "ps\022\206\003\n\rListInstances\022A.google.cloud.comp" + + "ute.v1.ListInstancesRegionInstanceGroups" + + "Request\032:.google.cloud.compute.v1.Region" + + "InstanceGroupsListInstances\"\365\001\332ATproject" + + ",region,instance_group,region_instance_g" + + "roups_list_instances_request_resource\202\323\344" + + "\223\002\227\001\"]/compute/v1/projects/{project}/reg" + + "ions/{region}/instanceGroups/{instance_g" + + "roup}/listInstances:6region_instance_gro" + + "ups_list_instances_request_resource\022\202\003\n\r" + + "SetNamedPorts\022@.google.cloud.compute.v1." + + "SetNamedPortsRegionInstanceGroupRequest\032" + + "\".google.cloud.compute.v1.Operation\"\212\002\332A" + + "Uproject,region,instance_group,region_in" + + "stance_groups_set_named_ports_request_re" + + "source\212N\020RegionOperations\202\323\344\223\002\230\001\"]/compu" + + "te/v1/projects/{project}/regions/{region" + + "}/instanceGroups/{instance_group}/setNam" + + "edPorts:7region_instance_groups_set_name" + + "d_ports_request_resource\032r\312A\026compute.goo" + + "gleapis.com\322AVhttps://www.googleapis.com" + + "/auth/compute,https://www.googleapis.com" + + "/auth/cloud-platform2\346\010\n\027RegionInstanceT" + + "emplates\022\200\002\n\006Delete\022<.google.cloud.compu" + + "te.v1.DeleteRegionInstanceTemplateReques" + + "t\032\".google.cloud.compute.v1.Operation\"\223\001" + + "\332A project,region,instance_template\212N\020Re" + + "gionOperations\202\323\344\223\002W*U/compute/v1/projec" + + "ts/{project}/regions/{region}/instanceTe" + + "mplates/{instance_template}\022\356\001\n\003Get\0229.go" + + "ogle.cloud.compute.v1.GetRegionInstanceT" + + "emplateRequest\032).google.cloud.compute.v1" + + ".InstanceTemplate\"\200\001\332A project,region,in" + + "stance_template\202\323\344\223\002W\022U/compute/v1/proje", + "cts/{project}/regions/{region}/instanceT" + + "emplates/{instance_template}\022\221\002\n\006Insert\022" + + "<.google.cloud.compute.v1.InsertRegionIn" + + "stanceTemplateRequest\032\".google.cloud.com" + + "pute.v1.Operation\"\244\001\332A)project,region,in" + + "stance_template_resource\212N\020RegionOperati" + + "ons\202\323\344\223\002_\"A/compute/v1/projects/{project" + + "}/regions/{region}/instanceTemplates:\032in" + + "stance_template_resource\022\316\001\n\004List\022;.goog" + + "le.cloud.compute.v1.ListRegionInstanceTe" + + "mplatesRequest\032-.google.cloud.compute.v1" + + ".InstanceTemplateList\"Z\332A\016project,region" + + "\202\323\344\223\002C\022A/compute/v1/projects/{project}/r" + + "egions/{region}/instanceTemplates\032r\312A\026co" + + "mpute.googleapis.com\322AVhttps://www.googl" + + "eapis.com/auth/compute,https://www.googl" + + "eapis.com/auth/cloud-platform2\264\003\n\017Region" + + "Instances\022\254\002\n\nBulkInsert\0228.google.cloud." + + "compute.v1.BulkInsertRegionInstanceReque" + + "st\032\".google.cloud.compute.v1.Operation\"\277" + + "\001\332A5project,region,bulk_insert_instance_" + + "resource_resource\212N\020RegionOperations\202\323\344\223" + + "\002n\"D/compute/v1/projects/{project}/regio" + + "ns/{region}/instances/bulkInsert:&bulk_i" + + "nsert_instance_resource_resource\032r\312A\026com" + + "pute.googleapis.com\322AVhttps://www.google" + + "apis.com/auth/compute,https://www.google" + + "apis.com/auth/cloud-platform2\237\022\n\026RegionI" + + "nstantSnapshots\022\374\001\n\006Delete\022;.google.clou" + + "d.compute.v1.DeleteRegionInstantSnapshot" + + "Request\032\".google.cloud.compute.v1.Operat" + + "ion\"\220\001\332A\037project,region,instant_snapshot" + + "\212N\020RegionOperations\202\323\344\223\002U*S/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\"\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" + + "ntSnapshots/{instant_snapshot}\022\350\001\n\003Get\0228" + + ".google.cloud.compute.v1.GetRegionInstan" + + "tSnapshotRequest\032(.google.cloud.compute." + + "v1.InstantSnapshot\"}\332A\037project,region,in" + + "stant_snapshot\202\323\344\223\002U\022S/compute/v1/projec" + + "ts/{project}/regions/{region}/instantSna" + + "pshots/{instant_snapshot}\022\356\001\n\014GetIamPoli" + + "cy\022A.google.cloud.compute.v1.GetIamPolic" + + "yRegionInstantSnapshotRequest\032\037.google.c" + + "loud.compute.v1.Policy\"z\332A\027project,regio" + + "n,resource\202\323\344\223\002Z\022X/compute/v1/projects/{" + + "project}/regions/{region}/instantSnapsho" + + "ts/{resource}/getIamPolicy\022\215\002\n\006Insert\022;." + + "google.cloud.compute.v1.InsertRegionInst" + + "antSnapshotRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\241\001\332A(project,region,insta" + + "nt_snapshot_resource\212N\020RegionOperations\202" + + "\323\344\223\002]\"@/compute/v1/projects/{project}/re" + + "gions/{region}/instantSnapshots:\031instant" + + "_snapshot_resource\022\313\001\n\004List\022:.google.clo" + + "ud.compute.v1.ListRegionInstantSnapshots" + + "Request\032,.google.cloud.compute.v1.Instan" + + "tSnapshotList\"Y\332A\016project,region\202\323\344\223\002B\022@" + + "/compute/v1/projects/{project}/regions/{" + + "region}/instantSnapshots\022\266\002\n\014SetIamPolic" + + "y\022A.google.cloud.compute.v1.SetIamPolicy" + + "RegionInstantSnapshotRequest\032\037.google.cl" + + "oud.compute.v1.Policy\"\301\001\332A:project,regio" + + "n,resource,region_set_policy_request_res" + + "ource\202\323\344\223\002~\"X/compute/v1/projects/{proje" + + "ct}/regions/{region}/instantSnapshots/{r" + + "esource}/setIamPolicy:\"region_set_policy" + + "_request_resource\022\303\002\n\tSetLabels\022>.google" + + ".cloud.compute.v1.SetLabelsRegionInstant" + + "SnapshotRequest\032\".google.cloud.compute.v" + + "1.Operation\"\321\001\332A:project,region,resource" + + ",region_set_labels_request_resource\212N\020Re" + + "gionOperations\202\323\344\223\002{\"U/compute/v1/projec" + + "ts/{project}/regions/{region}/instantSna" + + "pshots/{resource}/setLabels:\"region_set_" + + "labels_request_resource\022\330\002\n\022TestIamPermi" + + "ssions\022G.google.cloud.compute.v1.TestIam" + + "PermissionsRegionInstantSnapshotRequest\032" + + "0.google.cloud.compute.v1.TestPermission" + + "sResponse\"\306\001\332A9project,region,resource,t" + + "est_permissions_request_resource\202\323\344\223\002\203\001\"" + + "^/compute/v1/projects/{project}/regions/" + + "{region}/instantSnapshots/{resource}/tes" + + "tIamPermissions:!test_permissions_reques" + + "t_resource\032r\312A\026compute.googleapis.com\322AV" + + "https://www.googleapis.com/auth/compute," + + "https://www.googleapis.com/auth/cloud-pl" + + "atform2\244\023\n\033RegionNetworkEndpointGroups\022\315" + + "\003\n\026AttachNetworkEndpoints\022P.google.cloud" + + ".compute.v1.AttachNetworkEndpointsRegion" + "NetworkEndpointGroupRequest\032\".google.clo" + "ud.compute.v1.Operation\"\274\002\332Afproject,reg" + "ion,network_endpoint_group,region_networ" - + "k_endpoint_groups_detach_endpoints_reque" + + "k_endpoint_groups_attach_endpoints_reque" + "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/" + + "dpoint_group}/attachNetworkEndpoints:@re" + + "gion_network_endpoint_groups_attach_endp" + + "oints_request_resource\022\222\002\n\006Delete\022@.goog" + + "le.cloud.compute.v1.DeleteRegionNetworkE" + + "ndpointGroupRequest\032\".google.cloud.compu" + + "te.v1.Operation\"\241\001\332A%project,region,netw" + + "ork_endpoint_group\212N\020RegionOperations\202\323\344" + + "\223\002`*^/compute/v1/projects/{project}/regi" + + "ons/{region}/networkEndpointGroups/{netw" + + "ork_endpoint_group}\022\315\003\n\026DetachNetworkEnd" + + "points\022P.google.cloud.compute.v1.DetachN" + + "etworkEndpointsRegionNetworkEndpointGrou" + + "pRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\274\002\332Afproject,region,network_endpoin" + + "t_group,region_network_endpoint_groups_d" + + "etach_endpoints_request_resource\212N\020Regio" + + "nOperations\202\323\344\223\002\271\001\"u/compute/v1/projects" + + "/{project}/regions/{region}/networkEndpo" + + "intGroups/{network_endpoint_group}/detac" + + "hNetworkEndpoints:@region_network_endpoi" + + "nt_groups_detach_endpoints_request_resou" + + "rce\022\204\002\n\003Get\022=.google.cloud.compute.v1.Ge" + + "tRegionNetworkEndpointGroupRequest\032-.goo" + + "gle.cloud.compute.v1.NetworkEndpointGrou" + + "p\"\216\001\332A%project,region,network_endpoint_g" + + "roup\202\323\344\223\002`\022^/compute/v1/projects/{projec" + + "t}/regions/{region}/networkEndpointGroup" + + "s/{network_endpoint_group}\022\243\002\n\006Insert\022@." + + "google.cloud.compute.v1.InsertRegionNetw" + + "orkEndpointGroupRequest\032\".google.cloud.c" + + "ompute.v1.Operation\"\262\001\332A.project,region," + + "network_endpoint_group_resource\212N\020Region" + + "Operations\202\323\344\223\002h\"E/compute/v1/projects/{" + + "project}/regions/{region}/networkEndpoin" + + "tGroups:\037network_endpoint_group_resource" + + "\022\332\001\n\004List\022?.google.cloud.compute.v1.List" + + "RegionNetworkEndpointGroupsRequest\0321.goo" + + "gle.cloud.compute.v1.NetworkEndpointGrou" + + "pList\"^\332A\016project,region\202\323\344\223\002G\022E/compute" + + "/v1/projects/{project}/regions/{region}/" + + "networkEndpointGroups\022\321\002\n\024ListNetworkEnd" + + "points\022O.google.cloud.compute.v1.ListNet" + + "workEndpointsRegionNetworkEndpointGroups" + + "Request\032B.google.cloud.compute.v1.Networ" + + "kEndpointGroupsListNetworkEndpoints\"\243\001\332A" + + "%project,region,network_endpoint_group\202\323" + + "\344\223\002u\"s/compute/v1/projects/{project}/reg" + + "ions/{region}/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\362\'" + + "\n\035RegionNetworkFirewallPolicies\022\353\002\n\016AddA" + + "ssociation\022I.google.cloud.compute.v1.Add" + + "AssociationRegionNetworkFirewallPolicyRe" + + "quest\032\".google.cloud.compute.v1.Operatio" + + "n\"\351\001\332ACproject,region,firewall_policy,fi" + + "rewall_policy_association_resource\212N\020Reg" + + "ionOperations\202\323\344\223\002\211\001\"a/compute/v1/projec" + + "ts/{project}/regions/{region}/firewallPo" + + "licies/{firewall_policy}/addAssociation:" + + "$firewall_policy_association_resource\022\307\002" + + "\n\007AddRule\022B.google.cloud.compute.v1.AddR" + + "uleRegionNetworkFirewallPolicyRequest\032\"." + + "google.cloud.compute.v1.Operation\"\323\001\332A.googl" + + "e.cloud.compute.v1.GetRegionNetworkFirew" + + "allPolicyRequest\032\'.google.cloud.compute." + + "v1.FirewallPolicy\"{\332A\036project,region,fir" + + "ewall_policy\202\323\344\223\002T\022R/compute/v1/projects" + + "/{project}/regions/{region}/firewallPoli" + + "cies/{firewall_policy}\022\234\002\n\016GetAssociatio" + + "n\022I.google.cloud.compute.v1.GetAssociati" + + "onRegionNetworkFirewallPolicyRequest\0322.g" + + "oogle.cloud.compute.v1.FirewallPolicyAss" + + "ociation\"\212\001\332A\036project,region,firewall_po" + + "licy\202\323\344\223\002c\022a/compute/v1/projects/{projec" + + "t}/regions/{region}/firewallPolicies/{fi" + + "rewall_policy}/getAssociation\022\267\002\n\025GetEff" + + "ectiveFirewalls\022P.google.cloud.compute.v" + + "1.GetEffectiveFirewallsRegionNetworkFire" + + "wallPolicyRequest\032S.google.cloud.compute" + + ".v1.RegionNetworkFirewallPoliciesGetEffe" + + "ctiveFirewallsResponse\"w\332A\026project,regio" + + "n,network\202\323\344\223\002X\022V/compute/v1/projects/{p" + + "roject}/regions/{region}/firewallPolicie" + + "s/getEffectiveFirewalls\022\364\001\n\014GetIamPolicy" + + "\022G.google.cloud.compute.v1.GetIamPolicyR" + + "egionNetworkFirewallPolicyRequest\032\037.goog" + + "le.cloud.compute.v1.Policy\"z\332A\027project,r" + + "egion,resource\202\323\344\223\002Z\022X/compute/v1/projec" + + "ts/{project}/regions/{region}/firewallPo" + + "licies/{resource}/getIamPolicy\022\200\002\n\007GetRu" + + "le\022B.google.cloud.compute.v1.GetRuleRegi" + + "onNetworkFirewallPolicyRequest\032+.google." + + "cloud.compute.v1.FirewallPolicyRule\"\203\001\332A" + + "\036project,region,firewall_policy\202\323\344\223\002\\\022Z/" + "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}/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}/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/{" + + "}/getRule\022\221\002\n\006Insert\022A.google.cloud.comp" + + "ute.v1.InsertRegionNetworkFirewallPolicy" + + "Request\032\".google.cloud.compute.v1.Operat" + + "ion\"\237\001\332A\'project,region,firewall_policy_" + + "resource\212N\020RegionOperations\202\323\344\223\002\\\"@/comp" + + "ute/v1/projects/{project}/regions/{regio" + + "n}/firewallPolicies:\030firewall_policy_res" + + "ource\022\321\001\n\004List\022A.google.cloud.compute.v1" + + ".ListRegionNetworkFirewallPoliciesReques" + + "t\032+.google.cloud.compute.v1.FirewallPoli" + + "cyList\"Y\332A\016project,region\202\323\344\223\002B\022@/comput" + + "e/v1/projects/{project}/regions/{region}" + + "/firewallPolicies\022\261\002\n\005Patch\022@.google.clo" + + "ud.compute.v1.PatchRegionNetworkFirewall" + + "PolicyRequest\032\".google.cloud.compute.v1." + + "Operation\"\301\001\332A7project,region,firewall_p" + + "olicy,firewall_policy_resource\212N\020RegionO" + + "perations\202\323\344\223\002n2R/compute/v1/projects/{p" + + "roject}/regions/{region}/firewallPolicie" + + "s/{firewall_policy}:\030firewall_policy_res" + + "ource\022\315\002\n\tPatchRule\022D.google.cloud.compu" + + "te.v1.PatchRuleRegionNetworkFirewallPoli" + + "cyRequest\032\".google.cloud.compute.v1.Oper" + + "ation\"\325\001\332A.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" + + "gion}/notificationEndpoints\032r\312A\026compute." + + "googleapis.com\322AVhttps://www.googleapis." + + "com/auth/compute,https://www.googleapis." + + "com/auth/cloud-platform2\307\007\n\020RegionOperat" + + "ions\022\342\001\n\006Delete\0225.google.cloud.compute.v" + + "1.DeleteRegionOperationRequest\0326.google." + + "cloud.compute.v1.DeleteRegionOperationRe" + + "sponse\"i\332A\030project,region,operation\202\323\344\223\002" + + "H*F/compute/v1/projects/{project}/region" + + "s/{region}/operations/{operation}\022\313\001\n\003Ge" + + "t\0222.google.cloud.compute.v1.GetRegionOpe" + + "rationRequest\032\".google.cloud.compute.v1." + + "Operation\"l\332A\030project,region,operation\220N" + + "\001\202\323\344\223\002H\022F/compute/v1/projects/{project}/" + + "regions/{region}/operations/{operation}\022" + + "\271\001\n\004List\0224.google.cloud.compute.v1.ListR" + + "egionOperationsRequest\032&.google.cloud.co" + + "mpute.v1.OperationList\"S\332A\016project,regio" + + "n\202\323\344\223\002<\022:/compute/v1/projects/{project}/" + + "regions/{region}/operations\022\317\001\n\004Wait\0223.g" + + "oogle.cloud.compute.v1.WaitRegionOperati" + + "onRequest\032\".google.cloud.compute.v1.Oper" + + "ation\"n\332A\030project,region,operation\202\323\344\223\002M" + + "\"K/compute/v1/projects/{project}/regions" + + "/{region}/operations/{operation}/wait\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" + + "oogleapis.com/auth/cloud-platform2\322\026\n\026Re" + + "gionSecurityPolicies\022\300\002\n\007AddRule\022;.googl" + + "e.cloud.compute.v1.AddRuleRegionSecurity" + + "PolicyRequest\032\".google.cloud.compute.v1." + + "Operation\"\323\001\332A." + + "google.cloud.compute.v1.RemoveRuleRegion" + + "SecurityPolicyRequest\032\".google.cloud.com" + + "pute.v1.Operation\"\231\001\332A\036project,region,se" + + "curity_policy\212N\020RegionOperations\202\323\344\223\002_\"]" + + "/compute/v1/projects/{project}/regions/{" + + "region}/securityPolicies/{security_polic" + + "y}/removeRule\022\302\002\n\tSetLabels\022=.google.clo" + + "ud.compute.v1.SetLabelsRegionSecurityPol" + + "icyRequest\032\".google.cloud.compute.v1.Ope" + + "ration\"\321\001\332A:project,region,resource,regi" + + "on_set_labels_request_resource\212N\020RegionO" + + "perations\202\323\344\223\002{\"U/compute/v1/projects/{p" + + "roject}/regions/{region}/securityPolicie" + + "s/{resource}/setLabels:\"region_set_label" + + "s_request_resource\032r\312A\026compute.googleapi", + "s.com\322AVhttps://www.googleapis.com/auth/" + + "compute,https://www.googleapis.com/auth/" + + "cloud-platform2\303\010\n\025RegionSslCertificates" + + "\022\370\001\n\006Delete\022:.google.cloud.compute.v1.De" + + "leteRegionSslCertificateRequest\032\".google" + + ".cloud.compute.v1.Operation\"\215\001\332A\036project" + + ",region,ssl_certificate\212N\020RegionOperatio" + + "ns\202\323\344\223\002S*Q/compute/v1/projects/{project}" + + "/regions/{region}/sslCertificates/{ssl_c" + + "ertificate}\022\343\001\n\003Get\0227.google.cloud.compu" + + "te.v1.GetRegionSslCertificateRequest\032\'.g" + + "oogle.cloud.compute.v1.SslCertificate\"z\332" + + "A\036project,region,ssl_certificate\202\323\344\223\002S\022Q" + + "/compute/v1/projects/{project}/regions/{" + + "region}/sslCertificates/{ssl_certificate" + + "}\022\211\002\n\006Insert\022:.google.cloud.compute.v1.I" + + "nsertRegionSslCertificateRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\236\001\332A\'projec" + + "t,region,ssl_certificate_resource\212N\020Regi" + + "onOperations\202\323\344\223\002[\"?/compute/v1/projects" + + "/{project}/regions/{region}/sslCertifica" + + "tes:\030ssl_certificate_resource\022\310\001\n\004List\0229" + + ".google.cloud.compute.v1.ListRegionSslCe" + + "rtificatesRequest\032+.google.cloud.compute" + + ".v1.SslCertificateList\"X\332A\016project,regio" + + "n\202\323\344\223\002A\022?/compute/v1/projects/{project}/" + + "regions/{region}/sslCertificates\032r\312A\026com" + + "pute.googleapis.com\322AVhttps://www.google" + + "apis.com/auth/compute,https://www.google" + + "apis.com/auth/cloud-platform2\225\014\n\021RegionS" + + "slPolicies\022\344\001\n\006Delete\0225.google.cloud.com" + + "pute.v1.DeleteRegionSslPolicyRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"\177\332A\031pro" + + "ject,region,ssl_policy\212N\020RegionOperation" + + "s\202\323\344\223\002J*H/compute/v1/projects/{project}/" + + "regions/{region}/sslPolicies/{ssl_policy" + + "}\022\313\001\n\003Get\0222.google.cloud.compute.v1.GetR" + + "egionSslPolicyRequest\032\".google.cloud.com" + + "pute.v1.SslPolicy\"l\332A\031project,region,ssl" + + "_policy\202\323\344\223\002J\022H/compute/v1/projects/{pro" + + "ject}/regions/{region}/sslPolicies/{ssl_" + + "policy}\022\366\001\n\006Insert\0225.google.cloud.comput" + + "e.v1.InsertRegionSslPolicyRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\220\001\332A\"proje" + + "ct,region,ssl_policy_resource\212N\020RegionOp" + + "erations\202\323\344\223\002R\";/compute/v1/projects/{pr" + + "oject}/regions/{region}/sslPolicies:\023ssl" + + "_policy_resource\022\275\001\n\004List\0225.google.cloud" + + ".compute.v1.ListRegionSslPoliciesRequest" + + "\032(.google.cloud.compute.v1.SslPoliciesLi" + + "st\"T\332A\016project,region\202\323\344\223\002=\022;/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}/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" - + "}/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/" + + "Policies\022\216\002\n\025ListAvailableFeatures\022F.goo" + + "gle.cloud.compute.v1.ListAvailableFeatur" + + "esRegionSslPoliciesRequest\032A.google.clou" + + "d.compute.v1.SslPoliciesListAvailableFea" + + "turesResponse\"j\332A\016project,region\202\323\344\223\002S\022Q" + + "/compute/v1/projects/{project}/regions/{" + + "region}/sslPolicies/listAvailableFeature" + + "s\022\214\002\n\005Patch\0224.google.cloud.compute.v1.Pa" + + "tchRegionSslPolicyRequest\032\".google.cloud" + + ".compute.v1.Operation\"\250\001\332A-project,regio" + + "n,ssl_policy,ssl_policy_resource\212N\020Regio" + + "nOperations\202\323\344\223\002_2H/compute/v1/projects/" + + "{project}/regions/{region}/sslPolicies/{" + + "ssl_policy}:\023ssl_policy_resource\032r\312A\026com" + + "pute.googleapis.com\322AVhttps://www.google" + + "apis.com/auth/compute,https://www.google" + + "apis.com/auth/cloud-platform2\252\013\n\027RegionT" + + "argetHttpProxies\022\377\001\n\006Delete\022;.google.clo" + + "ud.compute.v1.DeleteRegionTargetHttpProx" + + "yRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\223\001\332A project,region,target_http_pro" + + "xy\212N\020RegionOperations\202\323\344\223\002W*U/compute/v1" + + "/projects/{project}/regions/{region}/tar" + + "getHttpProxies/{target_http_proxy}\022\354\001\n\003G" + + "et\0228.google.cloud.compute.v1.GetRegionTa" + + "rgetHttpProxyRequest\032(.google.cloud.comp" + + "ute.v1.TargetHttpProxy\"\200\001\332A project,regi" + + "on,target_http_proxy\202\323\344\223\002W\022U/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.Set" + + "UrlMapRegionTargetHttpProxyRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\324\001\332A;proj" + + "ect,region,target_http_proxy,url_map_ref" + + "erence_resource\212N\020RegionOperations\202\323\344\223\002}" + + "\"_/compute/v1/projects/{project}/regions" + + "/{region}/targetHttpProxies/{target_http" + + "_proxy}/setUrlMap:\032url_map_reference_res" + + "ource\032r\312A\026compute.googleapis.com\322AVhttps" + + "://www.googleapis.com/auth/compute,https" + + "://www.googleapis.com/auth/cloud-platfor" + + "m2\263\021\n\030RegionTargetHttpsProxies\022\203\002\n\006Delet" + + "e\022<.google.cloud.compute.v1.DeleteRegion" + + "TargetHttpsProxyRequest\032\".google.cloud.c" + + "ompute.v1.Operation\"\226\001\332A!project,region," + + "target_https_proxy\212N\020RegionOperations\202\323\344" + + "\223\002Y*W/compute/v1/projects/{project}/regi" + + "ons/{region}/targetHttpsProxies/{target_" + + "https_proxy}\022\361\001\n\003Get\0229.google.cloud.comp" + + "ute.v1.GetRegionTargetHttpsProxyRequest\032" + + ").google.cloud.compute.v1.TargetHttpsPro" + + "xy\"\203\001\332A!project,region,target_https_prox" + + "y\202\323\344\223\002Y\022W/compute/v1/projects/{project}/" + "regions/{region}/targetHttpsProxies/{tar" - + "get_https_proxy}/setUrlMap:\032url_map_refe" - + "rence_resource\032r\312A\026compute.googleapis.co" - + "m\322AVhttps://www.googleapis.com/auth/comp" - + "ute,https://www.googleapis.com/auth/clou" - + "d-platform2\317\010\n\026RegionTargetTcpProxies\022\373\001" - + "\n\006Delete\022:.google.cloud.compute.v1.Delet" - + "eRegionTargetTcpProxyRequest\032\".google.cl" - + "oud.compute.v1.Operation\"\220\001\332A\037project,re" - + "gion,target_tcp_proxy\212N\020RegionOperations" - + "\202\323\344\223\002U*S/compute/v1/projects/{project}/r" - + "egions/{region}/targetTcpProxies/{target" - + "_tcp_proxy}\022\346\001\n\003Get\0227.google.cloud.compu" - + "te.v1.GetRegionTargetTcpProxyRequest\032\'.g" - + "oogle.cloud.compute.v1.TargetTcpProxy\"}\332" - + "A\037project,region,target_tcp_proxy\202\323\344\223\002U\022" - + "S/compute/v1/projects/{project}/regions/" - + "{region}/targetTcpProxies/{target_tcp_pr" - + "oxy}\022\214\002\n\006Insert\022:.google.cloud.compute.v" - + "1.InsertRegionTargetTcpProxyRequest\032\".go" - + "ogle.cloud.compute.v1.Operation\"\241\001\332A(pro" - + "ject,region,target_tcp_proxy_resource\212N\020" - + "RegionOperations\202\323\344\223\002]\"@/compute/v1/proj" - + "ects/{project}/regions/{region}/targetTc" - + "pProxies:\031target_tcp_proxy_resource\022\312\001\n\004" - + "List\022:.google.cloud.compute.v1.ListRegio" - + "nTargetTcpProxiesRequest\032+.google.cloud." - + "compute.v1.TargetTcpProxyList\"Y\332A\016projec" - + "t,region\202\323\344\223\002B\022@/compute/v1/projects/{pr" - + "oject}/regions/{region}/targetTcpProxies" - + "\032r\312A\026compute.googleapis.com\322AVhttps://ww" - + "w.googleapis.com/auth/compute,https://ww" - + "w.googleapis.com/auth/cloud-platform2\354\r\n" - + "\rRegionUrlMaps\022\327\001\n\006Delete\0222.google.cloud" - + ".compute.v1.DeleteRegionUrlMapRequest\032\"." - + "google.cloud.compute.v1.Operation\"u\332A\026pr" - + "oject,region,url_map\212N\020RegionOperations\202" - + "\323\344\223\002C*A/compute/v1/projects/{project}/re" - + "gions/{region}/urlMaps/{url_map}\022\273\001\n\003Get" - + "\022/.google.cloud.compute.v1.GetRegionUrlM" - + "apRequest\032\037.google.cloud.compute.v1.UrlM" - + "ap\"b\332A\026project,region,url_map\202\323\344\223\002C\022A/co" + + "get_https_proxy}\022\224\002\n\006Insert\022<.google.clo" + + "ud.compute.v1.InsertRegionTargetHttpsPro" + + "xyRequest\032\".google.cloud.compute.v1.Oper" + + "ation\"\247\001\332A*project,region,target_https_p" + + "roxy_resource\212N\020RegionOperations\202\323\344\223\002a\"B" + + "/compute/v1/projects/{project}/regions/{" + + "region}/targetHttpsProxies:\033target_https" + + "_proxy_resource\022\320\001\n\004List\022<.google.cloud." + + "compute.v1.ListRegionTargetHttpsProxiesR" + + "equest\032-.google.cloud.compute.v1.TargetH" + + "ttpsProxyList\"[\332A\016project,region\202\323\344\223\002D\022B" + + "/compute/v1/projects/{project}/regions/{" + + "region}/targetHttpsProxies\022\272\002\n\005Patch\022;.g" + + "oogle.cloud.compute.v1.PatchRegionTarget" + + "HttpsProxyRequest\032\".google.cloud.compute" + + ".v1.Operation\"\317\001\332A=project,region,target" + + "_https_proxy,target_https_proxy_resource" + + "\212N\020RegionOperations\202\323\344\223\002v2W/compute/v1/p" + + "rojects/{project}/regions/{region}/targe" + + "tHttpsProxies/{target_https_proxy}:\033targ" + + "et_https_proxy_resource\022\264\003\n\022SetSslCertif" + + "icates\022H.google.cloud.compute.v1.SetSslC" + + "ertificatesRegionTargetHttpsProxyRequest" + + "\032\".google.cloud.compute.v1.Operation\"\257\002\332" + + "Acproject,region,target_https_proxy,regi" + + "on_target_https_proxies_set_ssl_certific" + + "ates_request_resource\212N\020RegionOperations" + + "\202\323\344\223\002\257\001\"j/compute/v1/projects/{project}/" + + "regions/{region}/targetHttpsProxies/{tar" + + "get_https_proxy}/setSslCertificates:Areg" + + "ion_target_https_proxies_set_ssl_certifi" + + "cates_request_resource\022\312\002\n\tSetUrlMap\022?.g" + + "oogle.cloud.compute.v1.SetUrlMapRegionTa" + + "rgetHttpsProxyRequest\032\".google.cloud.com" + + "pute.v1.Operation\"\327\001\332A.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" + + "source}/getIamPolicy\022\355\001\n\006Insert\0221.google" + + ".cloud.compute.v1.InsertReservationReque" + + "st\032\".google.cloud.compute.v1.Operation\"\213" + + "\001\332A!project,zone,reservation_resource\212N\016" + + "ZoneOperations\202\323\344\223\002P\"8/compute/v1/projec" + + "ts/{project}/zones/{zone}/reservations:\024" + + "reservation_resource\022\263\001\n\004List\0220.google.c" + + "loud.compute.v1.ListReservationsRequest\032" + + "(.google.cloud.compute.v1.ReservationLis" + + "t\"O\332A\014project,zone\202\323\344\223\002:\0228/compute/v1/pr" + + "ojects/{project}/zones/{zone}/reservatio" + + "ns\022\256\002\n\006Resize\0221.google.cloud.compute.v1." + + "ResizeReservationRequest\032\".google.cloud." + + "compute.v1.Operation\"\314\001\332A=project,zone,r" + + "eservation,reservations_resize_request_r" + + "esource\212N\016ZoneOperations\202\323\344\223\002u\"M/compute" + + "/v1/projects/{project}/zones/{zone}/rese" + + "rvations/{reservation}/resize:$reservati" + + "ons_resize_request_resource\022\236\002\n\014SetIamPo" + + "licy\0227.google.cloud.compute.v1.SetIamPol" + + "icyReservationRequest\032\037.google.cloud.com" + + "pute.v1.Policy\"\263\001\332A6project,zone,resourc" + + "e,zone_set_policy_request_resource\202\323\344\223\002t" + + "\"P/compute/v1/projects/{project}/zones/{" + + "zone}/reservations/{resource}/setIamPoli" + + "cy: zone_set_policy_request_resource\022\303\002\n" + + "\022TestIamPermissions\022=.google.cloud.compu" + + "te.v1.TestIamPermissionsReservationReque" + + "st\0320.google.cloud.compute.v1.TestPermiss" + + "ionsResponse\"\273\001\332A7project,zone,resource," + + "test_permissions_request_resource\202\323\344\223\002{\"" + + "V/compute/v1/projects/{project}/zones/{z" + + "one}/reservations/{resource}/testIamPerm" + + "issions:!test_permissions_request_resour" + + "ce\022\207\002\n\006Update\0221.google.cloud.compute.v1." + + "UpdateReservationRequest\032\".google.cloud." + + "compute.v1.Operation\"\245\001\332A-project,zone,r" + + "eservation,reservation_resource\212N\016ZoneOp" + + "erations\202\323\344\223\002^2F/compute/v1/projects/{pr" + + "oject}/zones/{zone}/reservations/{reserv" + + "ation}:\024reservation_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\"" - + "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\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" + + ".com/auth/cloud-platform2\232\023\n\020ResourcePol" + + "icies\022\325\001\n\016AggregatedList\022>.google.cloud." + + "compute.v1.AggregatedListResourcePolicie" + + "sRequest\0325.google.cloud.compute.v1.Resou" + + "rcePolicyAggregatedList\"L\332A\007project\202\323\344\223\002" + + "<\022:/compute/v1/projects/{project}/aggreg" + + "ated/resourcePolicies\022\363\001\n\006Delete\0224.googl" + + "e.cloud.compute.v1.DeleteResourcePolicyR" + + "equest\032\".google.cloud.compute.v1.Operati" + + "on\"\216\001\332A\036project,region,resource_policy\212N" + + "\020RegionOperations\202\323\344\223\002T*R/compute/v1/pro" + + "jects/{project}/regions/{region}/resourc" + + "ePolicies/{resource_policy}\022\336\001\n\003Get\0221.go" + + "ogle.cloud.compute.v1.GetResourcePolicyR" + + "equest\032\'.google.cloud.compute.v1.Resourc" + + "ePolicy\"{\332A\036project,region,resource_poli" + + "cy\202\323\344\223\002T\022R/compute/v1/projects/{project}" + + "/regions/{region}/resourcePolicies/{reso" + + "urce_policy}\022\347\001\n\014GetIamPolicy\022:.google.c" + + "loud.compute.v1.GetIamPolicyResourcePoli" + + "cyRequest\032\037.google.cloud.compute.v1.Poli" + + "cy\"z\332A\027project,region,resource\202\323\344\223\002Z\022X/c" + + "ompute/v1/projects/{project}/regions/{re" + + "gion}/resourcePolicies/{resource}/getIam" + + "Policy\022\204\002\n\006Insert\0224.google.cloud.compute" + + ".v1.InsertResourcePolicyRequest\032\".google" + + ".cloud.compute.v1.Operation\"\237\001\332A\'project" + + ",region,resource_policy_resource\212N\020Regio" + + "nOperations\202\323\344\223\002\\\"@/compute/v1/projects/" + + "{project}/regions/{region}/resourcePolic" + + "ies:\030resource_policy_resource\022\304\001\n\004List\0224" + + ".google.cloud.compute.v1.ListResourcePol" + + "iciesRequest\032+.google.cloud.compute.v1.R" + + "esourcePolicyList\"Y\332A\016project,region\202\323\344\223" + + "\002B\022@/compute/v1/projects/{project}/regio" + + "ns/{region}/resourcePolicies\022\244\002\n\005Patch\0223" + + ".google.cloud.compute.v1.PatchResourcePo" + "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" + + "eration\"\301\001\332A7project,region,resource_pol" + + "icy,resource_policy_resource\212N\020RegionOpe" + + "rations\202\323\344\223\002n2R/compute/v1/projects/{pro" + + "ject}/regions/{region}/resourcePolicies/" + + "{resource_policy}:\030resource_policy_resou" + + "rce\022\257\002\n\014SetIamPolicy\022:.google.cloud.comp" + + "ute.v1.SetIamPolicyResourcePolicyRequest" + + "\032\037.google.cloud.compute.v1.Policy\"\301\001\332A:p" + + "roject,region,resource,region_set_policy" + + "_request_resource\202\323\344\223\002~\"X/compute/v1/pro" + + "jects/{project}/regions/{region}/resourc" + + "ePolicies/{resource}/setIamPolicy:\"regio" + + "n_set_policy_request_resource\022\321\002\n\022TestIa" + + "mPermissions\022@.google.cloud.compute.v1.T" + + "estIamPermissionsResourcePolicyRequest\0320" + + ".google.cloud.compute.v1.TestPermissions" + + "Response\"\306\001\332A9project,region,resource,te" + + "st_permissions_request_resource\202\323\344\223\002\203\001\"^" + + "/compute/v1/projects/{project}/regions/{" + + "region}/resourcePolicies/{resource}/test" + + "IamPermissions:!test_permissions_request" + + "_resource\032r\312A\026compute.googleapis.com\322AVh" + + "ttps://www.googleapis.com/auth/compute,h" + + "ttps://www.googleapis.com/auth/cloud-pla" + + "tform2\366\023\n\007Routers\022\273\001\n\016AggregatedList\0225.g" + + "oogle.cloud.compute.v1.AggregatedListRou" + + "tersRequest\032-.google.cloud.compute.v1.Ro" + + "uterAggregatedList\"C\332A\007project\202\323\344\223\0023\0221/c" + + "ompute/v1/projects/{project}/aggregated/" + + "routers\022\317\001\n\006Delete\022,.google.cloud.comput" + + "e.v1.DeleteRouterRequest\032\".google.cloud." + + "compute.v1.Operation\"s\332A\025project,region," + + "router\212N\020RegionOperations\202\323\344\223\002B*@/comput" + + "e/v1/projects/{project}/regions/{region}" + + "/routers/{router}\022\263\001\n\003Get\022).google.cloud" + + ".compute.v1.GetRouterRequest\032\037.google.cl" + + "oud.compute.v1.Router\"`\332A\025project,region" + + ",router\202\323\344\223\002B\022@/compute/v1/projects/{pro" + + "ject}/regions/{region}/routers/{router}\022" + + "\335\001\n\014GetNatIpInfo\0222.google.cloud.compute." + + "v1.GetNatIpInfoRouterRequest\032*.google.cl" + + "oud.compute.v1.NatIpInfoResponse\"m\332A\025pro" + + "ject,region,router\202\323\344\223\002O\022M/compute/v1/pr" + + "ojects/{project}/regions/{region}/router", + "s/{router}/getNatIpInfo\022\365\001\n\021GetNatMappin" + + "gInfo\0228.google.cloud.compute.v1.GetNatMa" + + "ppingInfoRoutersRequest\0322.google.cloud.c" + + "ompute.v1.VmEndpointNatMappingsList\"r\332A\025" + + "project,region,router\202\323\344\223\002T\022R/compute/v1" + + "/projects/{project}/regions/{region}/rou" + + "ters/{router}/getNatMappingInfo\022\351\001\n\017GetR" + + "outerStatus\0225.google.cloud.compute.v1.Ge" + + "tRouterStatusRouterRequest\032-.google.clou" + + "d.compute.v1.RouterStatusResponse\"p\332A\025pr" + + "oject,region,router\202\323\344\223\002R\022P/compute/v1/p" + + "rojects/{project}/regions/{region}/route" + + "rs/{router}/getRouterStatus\022\341\001\n\006Insert\022," + + ".google.cloud.compute.v1.InsertRouterReq" + + "uest\032\".google.cloud.compute.v1.Operation" + + "\"\204\001\332A\036project,region,router_resource\212N\020R" + + "egionOperations\202\323\344\223\002J\"7/compute/v1/proje" + + "cts/{project}/regions/{region}/routers:\017" + + "router_resource\022\252\001\n\004List\022+.google.cloud." + + "compute.v1.ListRoutersRequest\032#.google.c" + + "loud.compute.v1.RouterList\"P\332A\016project,r" + + "egion\202\323\344\223\0029\0227/compute/v1/projects/{proje" + + "ct}/regions/{region}/routers\022\357\001\n\005Patch\022+" + + ".google.cloud.compute.v1.PatchRouterRequ" + + "est\032\".google.cloud.compute.v1.Operation\"" + + "\224\001\332A%project,region,router,router_resour" + + "ce\212N\020RegionOperations\202\323\344\223\002S2@/compute/v1" + + "/projects/{project}/regions/{region}/rou" + + "ters/{router}:\017router_resource\022\365\001\n\007Previ" + + "ew\022-.google.cloud.compute.v1.PreviewRout" + + "erRequest\032/.google.cloud.compute.v1.Rout" + + "ersPreviewResponse\"\211\001\332A%project,region,r" + + "outer,router_resource\202\323\344\223\002[\"H/compute/v1" + + "/projects/{project}/regions/{region}/rou" + + "ters/{router}/preview:\017router_resource\022\361" + + "\001\n\006Update\022,.google.cloud.compute.v1.Upda" + + "teRouterRequest\032\".google.cloud.compute.v" + + "1.Operation\"\224\001\332A%project,region,router,r" + + "outer_resource\212N\020RegionOperations\202\323\344\223\002S\032" + + "@/compute/v1/projects/{project}/regions/" + + "{region}/routers/{router}:\017router_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/proj" + + "ects/{project}/global/routes:\016route_reso" + + "urce\022\226\001\n\004List\022*.google.cloud.compute.v1." + + "ListRoutesRequest\032\".google.cloud.compute" + + ".v1.RouteList\">\332A\007project\202\323\344\223\002.\022,/comput" + + "e/v1/projects/{project}/global/routes\032r\312" + + "A\026compute.googleapis.com\322AVhttps://www.g" + + "oogleapis.com/auth/compute,https://www.g" + + "oogleapis.com/auth/cloud-platform2\357\030\n\020Se" + + "curityPolicies\022\251\002\n\007AddRule\0225.google.clou" + + "d.compute.v1.AddRuleSecurityPolicyReques" + + "t\032\".google.cloud.compute.v1.Operation\"\302\001" + + "\332A5project,security_policy,security_poli" + + "cy_rule_resource\212N\020GlobalOperations\202\323\344\223\002" + + "q\"P/compute/v1/projects/{project}/global" + + "/securityPolicies/{security_policy}/addR" + + "ule:\035security_policy_rule_resource\022\327\001\n\016A" + + "ggregatedList\022>.google.cloud.compute.v1." + + "AggregatedListSecurityPoliciesRequest\0327." + + "google.cloud.compute.v1.SecurityPolicies" + + "AggregatedList\"L\332A\007project\202\323\344\223\002<\022:/compu" + + "te/v1/projects/{project}/aggregated/secu" + + "rityPolicies\022\341\001\n\006Delete\0224.google.cloud.c" + + "ompute.v1.DeleteSecurityPolicyRequest\032\"." + + "google.cloud.compute.v1.Operation\"}\332A\027pr" + + "oject,security_policy\212N\020GlobalOperations" + + "\202\323\344\223\002J*H/compute/v1/projects/{project}/g" + + "lobal/securityPolicies/{security_policy}" + + "\022\315\001\n\003Get\0221.google.cloud.compute.v1.GetSe" + + "curityPolicyRequest\032\'.google.cloud.compu" + + "te.v1.SecurityPolicy\"j\332A\027project,securit" + + "y_policy\202\323\344\223\002J\022H/compute/v1/projects/{pr" + + "oject}/global/securityPolicies/{security" + + "_policy}\022\341\001\n\007GetRule\0225.google.cloud.comp" + + "ute.v1.GetRuleSecurityPolicyRequest\032+.go" + + "ogle.cloud.compute.v1.SecurityPolicyRule" + + "\"r\332A\027project,security_policy\202\323\344\223\002R\022P/com" + + "pute/v1/projects/{project}/global/securi" + + "tyPolicies/{security_policy}/getRule\022\363\001\n" + + "\006Insert\0224.google.cloud.compute.v1.Insert" + + "SecurityPolicyRequest\032\".google.cloud.com" + + "pute.v1.Operation\"\216\001\332A project,security_" + + "policy_resource\212N\020GlobalOperations\202\323\344\223\002R" + + "\"6/compute/v1/projects/{project}/global/" + + "securityPolicies:\030security_policy_resour" + + "ce\022\263\001\n\004List\0224.google.cloud.compute.v1.Li" + + "stSecurityPoliciesRequest\032+.google.cloud" + + ".compute.v1.SecurityPolicyList\"H\332A\007proje" + + "ct\202\323\344\223\0028\0226/compute/v1/projects/{project}" + + "/global/securityPolicies\022\256\002\n\037ListPreconf" + + "iguredExpressionSets\022O.google.cloud.comp" + + "ute.v1.ListPreconfiguredExpressionSetsSe" + + "curityPoliciesRequest\032P.google.cloud.com" + + "pute.v1.SecurityPoliciesListPreconfigure" + + "dExpressionSetsResponse\"h\332A\007project\202\323\344\223\002" + + "X\022V/compute/v1/projects/{project}/global" + + "/securityPolicies/listPreconfiguredExpre" + + "ssionSets\022\223\002\n\005Patch\0223.google.cloud.compu" + + "te.v1.PatchSecurityPolicyRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\260\001\332A0projec" + + "t,security_policy,security_policy_resour" + + "ce\212N\020GlobalOperations\202\323\344\223\002d2H/compute/v1" + + "/projects/{project}/global/securityPolic" + + "ies/{security_policy}:\030security_policy_r" + + "esource\022\257\002\n\tPatchRule\0227.google.cloud.com" + + "pute.v1.PatchRuleSecurityPolicyRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\304\001\332A5" + + "project,security_policy,security_policy_" + + "rule_resource\212N\020GlobalOperations\202\323\344\223\002s\"R" + + "/compute/v1/projects/{project}/global/se" + + "curityPolicies/{security_policy}/patchRu" + + "le:\035security_policy_rule_resource\022\365\001\n\nRe" + + "moveRule\0228.google.cloud.compute.v1.Remov" + + "eRuleSecurityPolicyRequest\032\".google.clou" + + "d.compute.v1.Operation\"\210\001\332A\027project,secu" + + "rity_policy\212N\020GlobalOperations\202\323\344\223\002U\"S/c" + + "ompute/v1/projects/{project}/global/secu" + + "rityPolicies/{security_policy}/removeRul" + + "e\022\253\002\n\tSetLabels\0227.google.cloud.compute.v" + + "1.SetLabelsSecurityPolicyRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\300\001\332A3projec" + + "t,resource,global_set_labels_request_res" + + "ource\212N\020GlobalOperations\202\323\344\223\002q\"K/compute" + + "/v1/projects/{project}/global/securityPo" + + "licies/{resource}/setLabels:\"global_set_" + + "labels_request_resource\032r\312A\026compute.goog" + + "leapis.com\322AVhttps://www.googleapis.com/" + + "auth/compute,https://www.googleapis.com/" + + "auth/cloud-platform2\360\023\n\022ServiceAttachmen" + + "ts\022\334\001\n\016AggregatedList\022@.google.cloud.com" + + "pute.v1.AggregatedListServiceAttachments" + + "Request\0328.google.cloud.compute.v1.Servic" + + "eAttachmentAggregatedList\"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/compu" + + "te/v1/projects/{project}/global/sslPolic" + + "ies/{ssl_policy}\022\264\001\n\003Get\022,.google.cloud." + + "compute.v1.GetSslPolicyRequest\032\".google." + + "cloud.compute.v1.SslPolicy\"[\332A\022project,s" + + "sl_policy\202\323\344\223\002@\022>/compute/v1/projects/{p" + + "roject}/global/sslPolicies/{ssl_policy}\022" + + "\336\001\n\006Insert\022/.google.cloud.compute.v1.Ins" + + "ertSslPolicyRequest\032\".google.cloud.compu" + + "te.v1.Operation\"\177\332A\033project,ssl_policy_r" + + "esource\212N\020GlobalOperations\202\323\344\223\002H\"1/compu" + + "te/v1/projects/{project}/global/sslPolic" + + "ies:\023ssl_policy_resource\022\246\001\n\004List\022/.goog" + + "le.cloud.compute.v1.ListSslPoliciesReque" + + "st\032(.google.cloud.compute.v1.SslPolicies" + + "List\"C\332A\007project\202\323\344\223\0023\0221/compute/v1/proj" + + "ects/{project}/global/sslPolicies\022\367\001\n\025Li" + + "stAvailableFeatures\022@.google.cloud.compu" + + "te.v1.ListAvailableFeaturesSslPoliciesRe" + + "quest\032A.google.cloud.compute.v1.SslPolic" + + "iesListAvailableFeaturesResponse\"Y\332A\007pro" + + "ject\202\323\344\223\002I\022G/compute/v1/projects/{projec" + + "t}/global/sslPolicies/listAvailableFeatu" + + "res\022\365\001\n\005Patch\022..google.cloud.compute.v1." + + "PatchSslPolicyRequest\032\".google.cloud.com" + + "pute.v1.Operation\"\227\001\332A&project,ssl_polic" + + "y,ssl_policy_resource\212N\020GlobalOperations" + + "\202\323\344\223\002U2>/compute/v1/projects/{project}/g" + + "lobal/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\265\006\n\020StoragePoolTypes\022\326\001\n\016Aggrega" + + "tedList\022>.google.cloud.compute.v1.Aggreg" + + "atedListStoragePoolTypesRequest\0326.google" + + ".cloud.compute.v1.StoragePoolTypeAggrega" + + "tedList\"L\332A\007project\202\323\344\223\002<\022:/compute/v1/p" + + "rojects/{project}/aggregated/storagePool" + + "Types\022\336\001\n\003Get\0222.google.cloud.compute.v1." + + "GetStoragePoolTypeRequest\032(.google.cloud" + + ".compute.v1.StoragePoolType\"y\332A\036project," + + "zone,storage_pool_type\202\323\344\223\002R\022P/compute/v" + + "1/projects/{project}/zones/{zone}/storag" + + "ePoolTypes/{storage_pool_type}\022\277\001\n\004List\022" + + "4.google.cloud.compute.v1.ListStoragePoo" + + "lTypesRequest\032,.google.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" + + "\022\200\003\n\017SetQuicOverride\022?.google.cloud.comp" + + "ute.v1.SetQuicOverrideTargetHttpsProxyRe" + + "quest\032\".google.cloud.compute.v1.Operatio" + + "n\"\207\002\332ARproject,target_https_proxy,target" + + "_https_proxies_set_quic_override_request" + + "_resource\212N\020GlobalOperations\202\323\344\223\002\230\001\"]/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" + + "tHttpsProxies/{target_https_proxy}/setQu" + + "icOverride:7target_https_proxies_set_qui" + + "c_override_request_resource\022\210\003\n\022SetSslCe" + + "rtificates\022B.google.cloud.compute.v1.Set" + + "SslCertificatesTargetHttpsProxyRequest\032\"" + + ".google.cloud.compute.v1.Operation\"\211\002\332AU" + + "project,target_https_proxy,target_https_" + + "proxies_set_ssl_certificates_request_res" + + "ource\212N\020GlobalOperations\202\323\344\223\002\227\001\"Y/comput" + + "e/v1/projects/{project}/targetHttpsProxi" + + "es/{target_https_proxy}/setSslCertificat" + + "es::target_https_proxies_set_ssl_certifi" + + "cates_request_resource\022\302\002\n\014SetSslPolicy\022" + + "<.google.cloud.compute.v1.SetSslPolicyTa" + + "rgetHttpsProxyRequest\032\".google.cloud.com" + + "pute.v1.Operation\"\317\001\332A8project,target_ht" + + "tps_proxy,ssl_policy_reference_resource\212" + + "N\020GlobalOperations\202\323\344\223\002{\"Z/compute/v1/pr" + + "ojects/{project}/global/targetHttpsProxi" + + "es/{target_https_proxy}/setSslPolicy:\035ss" + + "l_policy_reference_resource\022\254\002\n\tSetUrlMa" + + "p\0229.google.cloud.compute.v1.SetUrlMapTar" + + "getHttpsProxyRequest\032\".google.cloud.comp" + + "ute.v1.Operation\"\277\001\332A5project,target_htt" + + "ps_proxy,url_map_reference_resource\212N\020Gl" + + "obalOperations\202\323\344\223\002n\"P/compute/v1/projec" + + "ts/{project}/targetHttpsProxies/{target_" + + "https_proxy}/setUrlMap:\032url_map_referenc" + + "e_resource\032r\312A\026compute.googleapis.com\322AV" + + "https://www.googleapis.com/auth/compute," + + "https://www.googleapis.com/auth/cloud-pl" + + "atform2\274\014\n\017TargetInstances\022\323\001\n\016Aggregate" + + "dList\022=.google.cloud.compute.v1.Aggregat" + + "edListTargetInstancesRequest\0325.google.cl" + + "oud.compute.v1.TargetInstanceAggregatedL" + + "ist\"K\332A\007project\202\323\344\223\002;\0229/compute/v1/proje" + + "cts/{project}/aggregated/targetInstances" + + "\022\352\001\n\006Delete\0224.google.cloud.compute.v1.De" + + "leteTargetInstanceRequest\032\".google.cloud" + + ".compute.v1.Operation\"\205\001\332A\034project,zone," + + "target_instance\212N\016ZoneOperations\202\323\344\223\002O*M" + + "/compute/v1/projects/{project}/zones/{zo" + + "ne}/targetInstances/{target_instance}\022\327\001" + + "\n\003Get\0221.google.cloud.compute.v1.GetTarge" + + "tInstanceRequest\032\'.google.cloud.compute." + + "v1.TargetInstance\"t\332A\034project,zone,targe" + + "t_instance\202\323\344\223\002O\022M/compute/v1/projects/{" + + "project}/zones/{zone}/targetInstances/{t" + + "arget_instance}\022\373\001\n\006Insert\0224.google.clou" + + "d.compute.v1.InsertTargetInstanceRequest" + + "\032\".google.cloud.compute.v1.Operation\"\226\001\332" + + "A%project,zone,target_instance_resource\212" + + "N\016ZoneOperations\202\323\344\223\002W\";/compute/v1/proj" + + "ects/{project}/zones/{zone}/targetInstan" + + "ces:\030target_instance_resource\022\274\001\n\004List\0223" + + ".google.cloud.compute.v1.ListTargetInsta" + + "ncesRequest\032+.google.cloud.compute.v1.Ta" + + "rgetInstanceList\"R\332A\014project,zone\202\323\344\223\002=\022" + + ";/compute/v1/projects/{project}/zones/{z" + + "one}/targetInstances\022\332\002\n\021SetSecurityPoli" + + "cy\022?.google.cloud.compute.v1.SetSecurity" + + "PolicyTargetInstanceRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\337\001\332A?project,zon" + + "e,target_instance,security_policy_refere" + + "nce_resource\212N\016ZoneOperations\202\323\344\223\002\205\001\"_/c" + + "ompute/v1/projects/{project}/zones/{zone" + + "}/targetInstances/{target_instance}/setS" + + "ecurityPolicy:\"security_policy_reference" + + "_resource\032r\312A\026compute.googleapis.com\322AVh" + + "ttps://www.googleapis.com/auth/compute,h" + + "ttps://www.googleapis.com/auth/cloud-pla" + + "tform2\340\033\n\013TargetPools\022\341\002\n\016AddHealthCheck" + + "\0228.google.cloud.compute.v1.AddHealthChec" + + "kTargetPoolRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\360\001\332AIproject,region,targe" + + "t_pool,target_pools_add_health_check_req" + + "uest_resource\212N\020RegionOperations\202\323\344\223\002\212\001\"" + + "X/compute/v1/projects/{project}/regions/" + + "{region}/targetPools/{target_pool}/addHe" + + "althCheck:.target_pools_add_health_check" + + "_request_resource\022\320\002\n\013AddInstance\0225.goog" + + "le.cloud.compute.v1.AddInstanceTargetPoo" + + "lRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\345\001\332AEproject,region,target_pool,tar" + + "get_pools_add_instance_request_resource\212" + + "N\020RegionOperations\202\323\344\223\002\203\001\"U/compute/v1/p" + + "rojects/{project}/regions/{region}/targe" + + "tPools/{target_pool}/addInstance:*target" + + "_pools_add_instance_request_resource\022\307\001\n" + + "\016AggregatedList\0229.google.cloud.compute.v" + + "1.AggregatedListTargetPoolsRequest\0321.goo" + + "gle.cloud.compute.v1.TargetPoolAggregate" + + "dList\"G\332A\007project\202\323\344\223\0027\0225/compute/v1/pro" + + "jects/{project}/aggregated/targetPools\022\342" + + "\001\n\006Delete\0220.google.cloud.compute.v1.Dele" + + "teTargetPoolRequest\032\".google.cloud.compu" + + "te.v1.Operation\"\201\001\332A\032project,region,targ" + + "et_pool\212N\020RegionOperations\202\323\344\223\002K*I/compu" + + "te/v1/projects/{project}/regions/{region" + + "}/targetPools/{target_pool}\022\311\001\n\003Get\022-.go" + + "ogle.cloud.compute.v1.GetTargetPoolReque" + + "st\032#.google.cloud.compute.v1.TargetPool\"" + + "n\332A\032project,region,target_pool\202\323\344\223\002K\022I/c" + + "ompute/v1/projects/{project}/regions/{re" + + "gion}/targetPools/{target_pool}\022\247\002\n\tGetH" + + "ealth\0223.google.cloud.compute.v1.GetHealt" + + "hTargetPoolRequest\0321.google.cloud.comput" + + "e.v1.TargetPoolInstanceHealth\"\261\001\332A6proje" + + "ct,region,target_pool,instance_reference" + + "_resource\202\323\344\223\002r\"S/compute/v1/projects/{p" + + "roject}/regions/{region}/targetPools/{ta" + + "rget_pool}/getHealth:\033instance_reference" + + "_resource\022\363\001\n\006Insert\0220.google.cloud.comp" + + "ute.v1.InsertTargetPoolRequest\032\".google." + + "cloud.compute.v1.Operation\"\222\001\332A#project," + + "region,target_pool_resource\212N\020RegionOper" + + "ations\202\323\344\223\002S\";/compute/v1/projects/{proj" + + "ect}/regions/{region}/targetPools:\024targe" + + "t_pool_resource\022\266\001\n\004List\022/.google.cloud." + + "compute.v1.ListTargetPoolsRequest\032\'.goog" + + "le.cloud.compute.v1.TargetPoolList\"T\332A\016p" + + "roject,region\202\323\344\223\002=\022;/compute/v1/project" + + "s/{project}/regions/{region}/targetPools" + + "\022\360\002\n\021RemoveHealthCheck\022;.google.cloud.co" + + "mpute.v1.RemoveHealthCheckTargetPoolRequ" + + "est\032\".google.cloud.compute.v1.Operation\"" + + "\371\001\332ALproject,region,target_pool,target_p" + + "ools_remove_health_check_request_resourc" + + "e\212N\020RegionOperations\202\323\344\223\002\220\001\"[/compute/v1" + + "/projects/{project}/regions/{region}/tar" + + "getPools/{target_pool}/removeHealthCheck" + + ":1target_pools_remove_health_check_reque" + + "st_resource\022\337\002\n\016RemoveInstance\0228.google." + + "cloud.compute.v1.RemoveInstanceTargetPoo" + + "lRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\356\001\332AHproject,region,target_pool,tar" + + "get_pools_remove_instance_request_resour" + + "ce\212N\020RegionOperations\202\323\344\223\002\211\001\"X/compute/v" + + "1/projects/{project}/regions/{region}/ta" + + "rgetPools/{target_pool}/removeInstance:-" + + "target_pools_remove_instance_request_res" + + "ource\022\247\002\n\tSetBackup\0223.google.cloud.compu" + + "te.v1.SetBackupTargetPoolRequest\032\".googl" + + "e.cloud.compute.v1.Operation\"\300\001\332A4projec" + + "t,region,target_pool,target_reference_re" + + "source\212N\020RegionOperations\202\323\344\223\002p\"S/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" + + "/targetPools/{target_pool}/setBackup:\031ta" + + "rget_reference_resource\022\322\002\n\021SetSecurityP" + + "olicy\022;.google.cloud.compute.v1.SetSecur" + + "ityPolicyTargetPoolRequest\032\".google.clou" + + "d.compute.v1.Operation\"\333\001\332A=project,regi" + + "on,target_pool,security_policy_reference" + + "_resource\212N\020RegionOperations\202\323\344\223\002\201\001\"[/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:" + + "ion}/targetPools/{target_pool}/setSecuri" + + "tyPolicy:\"security_policy_reference_reso" + + "urce\032r\312A\026compute.googleapis.com\322AVhttps:" + + "//www.googleapis.com/auth/compute,https:" + + "//www.googleapis.com/auth/cloud-platform", + "2\243\026\n\020TargetSslProxies\022\343\001\n\006Delete\0224.googl" + + "e.cloud.compute.v1.DeleteTargetSslProxyR" + + "equest\032\".google.cloud.compute.v1.Operati" + + "on\"\177\332A\030project,target_ssl_proxy\212N\020Global" + + "Operations\202\323\344\223\002K*I/compute/v1/projects/{" + + "project}/global/targetSslProxies/{target" + + "_ssl_proxy}\022\317\001\n\003Get\0221.google.cloud.compu" + + "te.v1.GetTargetSslProxyRequest\032\'.google." + + "cloud.compute.v1.TargetSslProxy\"l\332A\030proj" + + "ect,target_ssl_proxy\202\323\344\223\002K\022I/compute/v1/" + + "projects/{project}/global/targetSslProxi" + + "es/{target_ssl_proxy}\022\365\001\n\006Insert\0224.googl" + + "e.cloud.compute.v1.InsertTargetSslProxyR" + + "equest\032\".google.cloud.compute.v1.Operati" + + "on\"\220\001\332A!project,target_ssl_proxy_resourc" + + "e\212N\020GlobalOperations\202\323\344\223\002S\"6/compute/v1/" + + "projects/{project}/global/targetSslProxi" + + "es:\031target_ssl_proxy_resource\022\263\001\n\004List\0224" + + ".google.cloud.compute.v1.ListTargetSslPr" + + "oxiesRequest\032+.google.cloud.compute.v1.T" + + "argetSslProxyList\"H\332A\007project\202\323\344\223\0028\0226/co" + + "mpute/v1/projects/{project}/global/targe" + + "tSslProxies\022\376\002\n\021SetBackendService\022?.goog" + + "le.cloud.compute.v1.SetBackendServiceTar" + + "getSslProxyRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\203\002\332APproject,target_ssl_p" + + "roxy,target_ssl_proxies_set_backend_serv" + + "ice_request_resource\212N\020GlobalOperations\202" + + "\323\344\223\002\226\001\"[/compute/v1/projects/{project}/g" + + "lobal/targetSslProxies/{target_ssl_proxy" + + "}/setBackendService:7target_ssl_proxies_" + + "set_backend_service_request_resource\022\376\002\n" + + "\021SetCertificateMap\022?.google.cloud.comput" + + "e.v1.SetCertificateMapTargetSslProxyRequ" + + "est\032\".google.cloud.compute.v1.Operation\"" + + "\203\002\332APproject,target_ssl_proxy,target_ssl" + + "_proxies_set_certificate_map_request_res" + + "ource\212N\020GlobalOperations\202\323\344\223\002\226\001\"[/comput" + + "e/v1/projects/{project}/global/targetSsl" + + "Proxies/{target_ssl_proxy}/setCertificat" + + "eMap:7target_ssl_proxies_set_certificate" + + "_map_request_resource\022\357\002\n\016SetProxyHeader" + + "\022<.google.cloud.compute.v1.SetProxyHeade" + + "rTargetSslProxyRequest\032\".google.cloud.co" + + "mpute.v1.Operation\"\372\001\332AMproject,target_s" + + "sl_proxy,target_ssl_proxies_set_proxy_he" + + "ader_request_resource\212N\020GlobalOperations" + + "\202\323\344\223\002\220\001\"X/compute/v1/projects/{project}/" + + "global/targetSslProxies/{target_ssl_prox" + + "y}/setProxyHeader:4target_ssl_proxies_se" + + "t_proxy_header_request_resource\022\203\003\n\022SetS" + + "slCertificates\022@.google.cloud.compute.v1" + + ".SetSslCertificatesTargetSslProxyRequest" + + "\032\".google.cloud.compute.v1.Operation\"\206\002\332" + + "AQproject,target_ssl_proxy,target_ssl_pr" + + "oxies_set_ssl_certificates_request_resou" + + "rce\212N\020GlobalOperations\202\323\344\223\002\230\001\"\\/compute/" + + "v1/projects/{project}/global/targetSslPr" + + "oxies/{target_ssl_proxy}/setSslCertifica" + + "tes:8target_ssl_proxies_set_ssl_certific" + + "ates_request_resource\022\272\002\n\014SetSslPolicy\022:" + + ".google.cloud.compute.v1.SetSslPolicyTar" + + "getSslProxyRequest\032\".google.cloud.comput" + + "e.v1.Operation\"\311\001\332A6project,target_ssl_p" + + "roxy,ssl_policy_reference_resource\212N\020Glo" + + "balOperations\202\323\344\223\002w\"V/compute/v1/project" + + "s/{project}/global/targetSslProxies/{tar" + + "get_ssl_proxy}/setSslPolicy:\035ssl_policy_" + + "reference_resource\032r\312A\026compute.googleapi" + + "s.com\322AVhttps://www.googleapis.com/auth/" + + "compute,https://www.googleapis.com/auth/" + + "cloud-platform2\267\017\n\020TargetTcpProxies\022\325\001\n\016" + + "AggregatedList\022>.google.cloud.compute.v1" + + ".AggregatedListTargetTcpProxiesRequest\0325" + + ".google.cloud.compute.v1.TargetTcpProxyA" + + "ggregatedList\"L\332A\007project\202\323\344\223\002<\022:/comput" + + "e/v1/projects/{project}/aggregated/targe" + + "tTcpProxies\022\343\001\n\006Delete\0224.google.cloud.co" + + "mpute.v1.DeleteTargetTcpProxyRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"\177\332A\030pro" + + "ject,target_tcp_proxy\212N\020GlobalOperations" + + "\202\323\344\223\002K*I/compute/v1/projects/{project}/g" + + "lobal/targetTcpProxies/{target_tcp_proxy" + + "}\022\317\001\n\003Get\0221.google.cloud.compute.v1.GetT" + + "argetTcpProxyRequest\032\'.google.cloud.comp" + + "ute.v1.TargetTcpProxy\"l\332A\030project,target" + + "_tcp_proxy\202\323\344\223\002K\022I/compute/v1/projects/{" + + "project}/global/targetTcpProxies/{target" + + "_tcp_proxy}\022\365\001\n\006Insert\0224.google.cloud.co" + + "mpute.v1.InsertTargetTcpProxyRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"\220\001\332A!pr" + + "oject,target_tcp_proxy_resource\212N\020Global" + + "Operations\202\323\344\223\002S\"6/compute/v1/projects/{" + + "project}/global/targetTcpProxies:\031target" + + "_tcp_proxy_resource\022\263\001\n\004List\0224.google.cl" + + "oud.compute.v1.ListTargetTcpProxiesReque" + + "st\032+.google.cloud.compute.v1.TargetTcpPr" + + "oxyList\"H\332A\007project\202\323\344\223\0028\0226/compute/v1/p" + + "rojects/{project}/global/targetTcpProxie" + + "s\022\376\002\n\021SetBackendService\022?.google.cloud.c" + + "ompute.v1.SetBackendServiceTargetTcpProx" + + "yRequest\032\".google.cloud.compute.v1.Opera" + + "tion\"\203\002\332APproject,target_tcp_proxy,targe" + + "t_tcp_proxies_set_backend_service_reques" + + "t_resource\212N\020GlobalOperations\202\323\344\223\002\226\001\"[/c" + + "ompute/v1/projects/{project}/global/targ" + + "etTcpProxies/{target_tcp_proxy}/setBacke" + + "ndService:7target_tcp_proxies_set_backen" + + "d_service_request_resource\022\357\002\n\016SetProxyH" + + "eader\022<.google.cloud.compute.v1.SetProxy" + + "HeaderTargetTcpProxyRequest\032\".google.clo" + + "ud.compute.v1.Operation\"\372\001\332AMproject,tar" + + "get_tcp_proxy,target_tcp_proxies_set_pro" + + "xy_header_request_resource\212N\020GlobalOpera" + + "tions\202\323\344\223\002\220\001\"X/compute/v1/projects/{proj" + + "ect}/global/targetTcpProxies/{target_tcp" + + "_proxy}/setProxyHeader:4target_tcp_proxi" + + "es_set_proxy_header_request_resource\032r\312A" + + "\026compute.googleapis.com\322AVhttps://www.go" + + "ogleapis.com/auth/compute,https://www.go" + + "ogleapis.com/auth/cloud-platform2\354\014\n\021Tar" + + "getVpnGateways\022\331\001\n\016AggregatedList\022?.goog" + + "le.cloud.compute.v1.AggregatedListTarget" + + "VpnGatewaysRequest\0327.google.cloud.comput" + + "e.v1.TargetVpnGatewayAggregatedList\"M\332A\007" + + "project\202\323\344\223\002=\022;/compute/v1/projects/{pro" + + "ject}/aggregated/targetVpnGateways\022\374\001\n\006D" + + "elete\0226.google.cloud.compute.v1.DeleteTa" + + "rgetVpnGatewayRequest\032\".google.cloud.com" + + "pute.v1.Operation\"\225\001\332A!project,region,ta" + + "rget_vpn_gateway\212N\020RegionOperations\202\323\344\223\002" + + "X*V/compute/v1/projects/{project}/region" + + "s/{region}/targetVpnGateways/{target_vpn" + + "_gateway}\022\352\001\n\003Get\0223.google.cloud.compute" + + ".v1.GetTargetVpnGatewayRequest\032).google." + + "cloud.compute.v1.TargetVpnGateway\"\202\001\332A!p" + + "roject,region,target_vpn_gateway\202\323\344\223\002X\022V" + + "/compute/v1/projects/{project}/regions/{" + + "region}/targetVpnGateways/{target_vpn_ga" + + "teway}\022\215\002\n\006Insert\0226.google.cloud.compute" + + ".v1.InsertTargetVpnGatewayRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\246\001\332A*proje" + + "ct,region,target_vpn_gateway_resource\212N\020" + + "RegionOperations\202\323\344\223\002`\"A/compute/v1/proj" + + "ects/{project}/regions/{region}/targetVp" + + "nGateways:\033target_vpn_gateway_resource\022\310" + + "\001\n\004List\0225.google.cloud.compute.v1.ListTa" + + "rgetVpnGatewaysRequest\032-.google.cloud.co" + + "mpute.v1.TargetVpnGatewayList\"Z\332A\016projec" + + "t,region\202\323\344\223\002C\022A/compute/v1/projects/{pr" + + "oject}/regions/{region}/targetVpnGateway" + + "s\022\277\002\n\tSetLabels\0229.google.cloud.compute.v" + + "1.SetLabelsTargetVpnGatewayRequest\032\".goo" + + "gle.cloud.compute.v1.Operation\"\322\001\332A:proj" + + "ect,region,resource,region_set_labels_re" + + "quest_resource\212N\020RegionOperations\202\323\344\223\002|\"" + + "V/compute/v1/projects/{project}/regions/" + + "{region}/targetVpnGateways/{resource}/se" + + "tLabels:\"region_set_labels_request_resou" + + "rce\032r\312A\026compute.googleapis.com\322AVhttps:/" + + "/www.googleapis.com/auth/compute,https:/" + + "/www.googleapis.com/auth/cloud-platform2" + + "\236\020\n\007UrlMaps\022\274\001\n\016AggregatedList\0225.google." + + "cloud.compute.v1.AggregatedListUrlMapsRe" + + "quest\032..google.cloud.compute.v1.UrlMapsA" + + "ggregatedList\"C\332A\007project\202\323\344\223\0023\0221/comput" + + "e/v1/projects/{project}/aggregated/urlMa" + + "ps\022\300\001\n\006Delete\022,.google.cloud.compute.v1." + + "DeleteUrlMapRequest\032\".google.cloud.compu" + + "te.v1.Operation\"d\332A\017project,url_map\212N\020Gl" + + "obalOperations\202\323\344\223\0029*7/compute/v1/projec" + + "ts/{project}/global/urlMaps/{url_map}\022\244\001" + + "\n\003Get\022).google.cloud.compute.v1.GetUrlMa" + + "pRequest\032\037.google.cloud.compute.v1.UrlMa" + + "p\"Q\332A\017project,url_map\202\323\344\223\0029\0227/compute/v1" + + "/projects/{project}/global/urlMaps/{url_" + + "map}\022\321\001\n\006Insert\022,.google.cloud.compute.v" + + "1.InsertUrlMapRequest\032\".google.cloud.com" + + "pute.v1.Operation\"u\332A\030project,url_map_re" + + "source\212N\020GlobalOperations\202\323\344\223\002A\"-/comput" + + "e/v1/projects/{project}/global/urlMaps:\020" + + "url_map_resource\022\246\002\n\017InvalidateCache\0225.g" + + "oogle.cloud.compute.v1.InvalidateCacheUr" + + "lMapRequest\032\".google.cloud.compute.v1.Op" + + "eration\"\267\001\332A0project,url_map,cache_inval" + + "idation_rule_resource\212N\020GlobalOperations" + + "\202\323\344\223\002k\"G/compute/v1/projects/{project}/g" + + "lobal/urlMaps/{url_map}/invalidateCache:" + + " cache_invalidation_rule_resource\022\231\001\n\004Li" + + "st\022+.google.cloud.compute.v1.ListUrlMaps" + + "Request\032#.google.cloud.compute.v1.UrlMap" + + "List\"?\332A\007project\202\323\344\223\002/\022-/compute/v1/proj" + + "ects/{project}/global/urlMaps\022\342\001\n\005Patch\022" + + "+.google.cloud.compute.v1.PatchUrlMapReq" + + "uest\032\".google.cloud.compute.v1.Operation" + + "\"\207\001\332A project,url_map,url_map_resource\212N" + + "\020GlobalOperations\202\323\344\223\002K27/compute/v1/pro" + + "jects/{project}/global/urlMaps/{url_map}" + + ":\020url_map_resource\022\344\001\n\006Update\022,.google.c" + + "loud.compute.v1.UpdateUrlMapRequest\032\".go" + + "ogle.cloud.compute.v1.Operation\"\207\001\332A pro" + + "ject,url_map,url_map_resource\212N\020GlobalOp" + + "erations\202\323\344\223\002K\0327/compute/v1/projects/{pr" + + "oject}/global/urlMaps/{url_map}:\020url_map" + + "_resource\022\220\002\n\010Validate\022..google.cloud.co" + + "mpute.v1.ValidateUrlMapRequest\0320.google." + + "cloud.compute.v1.UrlMapsValidateResponse" + + "\"\241\001\332A2project,url_map,url_maps_validate_" + + "request_resource\202\323\344\223\002f\"@/compute/v1/proj" + + "ects/{project}/global/urlMaps/{url_map}/" + + "validate:\"url_maps_validate_request_reso" + + "urce\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" + + "2\237\020\n\013VpnGateways\022\307\001\n\016AggregatedList\0229.go" + + "ogle.cloud.compute.v1.AggregatedListVpnG" + + "atewaysRequest\0321.google.cloud.compute.v1" + + ".VpnGatewayAggregatedList\"G\332A\007project\202\323\344" + + "\223\0027\0225/compute/v1/projects/{project}/aggr" + + "egated/vpnGateways\022\342\001\n\006Delete\0220.google.c" + + "loud.compute.v1.DeleteVpnGatewayRequest\032" + + "\".google.cloud.compute.v1.Operation\"\201\001\332A" + + "\032project,region,vpn_gateway\212N\020RegionOper" + + "ations\202\323\344\223\002K*I/compute/v1/projects/{proj" + + "ect}/regions/{region}/vpnGateways/{vpn_g" + + "ateway}\022\311\001\n\003Get\022-.google.cloud.compute.v" + + "1.GetVpnGatewayRequest\032#.google.cloud.co" + + "mpute.v1.VpnGateway\"n\332A\032project,region,v" + + "pn_gateway\202\323\344\223\002K\022I/compute/v1/projects/{" + + "project}/regions/{region}/vpnGateways/{v" + + "pn_gateway}\022\361\001\n\tGetStatus\0223.google.cloud" + + ".compute.v1.GetStatusVpnGatewayRequest\0325" + + ".google.cloud.compute.v1.VpnGatewaysGetS" + + "tatusResponse\"x\332A\032project,region,vpn_gat" + + "eway\202\323\344\223\002U\022S/compute/v1/projects/{projec" + + "t}/regions/{region}/vpnGateways/{vpn_gat" + + "eway}/getStatus\022\363\001\n\006Insert\0220.google.clou" + + "d.compute.v1.InsertVpnGatewayRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"\222\001\332A#pr" + + "oject,region,vpn_gateway_resource\212N\020Regi" + + "onOperations\202\323\344\223\002S\";/compute/v1/projects" + + "/{project}/regions/{region}/vpnGateways:" + + "\024vpn_gateway_resource\022\266\001\n\004List\022/.google." + + "cloud.compute.v1.ListVpnGatewaysRequest\032" + + "\'.google.cloud.compute.v1.VpnGatewayList" + + "\"T\332A\016project,region\202\323\344\223\002=\022;/compute/v1/p" + + "rojects/{project}/regions/{region}/vpnGa" + + "teways\022\263\002\n\tSetLabels\0223.google.cloud.comp" + + "ute.v1.SetLabelsVpnGatewayRequest\032\".goog" + + "le.cloud.compute.v1.Operation\"\314\001\332A:proje" + + "ct,region,resource,region_set_labels_req" + + "uest_resource\212N\020RegionOperations\202\323\344\223\002v\"P" + + "/compute/v1/projects/{project}/regions/{" + + "region}/vpnGateways/{resource}/setLabels" + + ":\"region_set_labels_request_resource\022\307\002\n" + + "\022TestIamPermissions\022<.google.cloud.compu" + + "te.v1.TestIamPermissionsVpnGatewayReques" + + "t\0320.google.cloud.compute.v1.TestPermissi" + + "onsResponse\"\300\001\332A9project,region,resource" + + ",test_permissions_request_resource\202\323\344\223\002~" + + "\"Y/compute/v1/projects/{project}/regions" + + "/{region}/vpnGateways/{resource}/testIam" + + "Permissions:!test_permissions_request_re" + + "source\032r\312A\026compute.googleapis.com\322AVhttp" + + "s://www.googleapis.com/auth/compute,http" + + "s://www.googleapis.com/auth/cloud-platfo" + + "rm2\312\013\n\nVpnTunnels\022\304\001\n\016AggregatedList\0228.g" + + "oogle.cloud.compute.v1.AggregatedListVpn" + + "TunnelsRequest\0320.google.cloud.compute.v1" + + ".VpnTunnelAggregatedList\"F\332A\007project\202\323\344\223" + + "\0026\0224/compute/v1/projects/{project}/aggre" + + "gated/vpnTunnels\022\335\001\n\006Delete\022/.google.clo" + + "ud.compute.v1.DeleteVpnTunnelRequest\032\".g" + + "oogle.cloud.compute.v1.Operation\"~\332A\031pro" + + "ject,region,vpn_tunnel\212N\020RegionOperation" + + "s\202\323\344\223\002I*G/compute/v1/projects/{project}/" + + "regions/{region}/vpnTunnels/{vpn_tunnel}" + + "\022\304\001\n\003Get\022,.google.cloud.compute.v1.GetVp" + + "nTunnelRequest\032\".google.cloud.compute.v1" + + ".VpnTunnel\"k\332A\031project,region,vpn_tunnel" + + "\202\323\344\223\002I\022G/compute/v1/projects/{project}/r" + + "egions/{region}/vpnTunnels/{vpn_tunnel}\022" + + "\357\001\n\006Insert\022/.google.cloud.compute.v1.Ins" + + "ertVpnTunnelRequest\032\".google.cloud.compu" + + "te.v1.Operation\"\217\001\332A\"project,region,vpn_" + + "tunnel_resource\212N\020RegionOperations\202\323\344\223\002Q" + + "\":/compute/v1/projects/{project}/regions" + + "/{region}/vpnTunnels:\023vpn_tunnel_resourc" + + "e\022\263\001\n\004List\022..google.cloud.compute.v1.Lis" + + "tVpnTunnelsRequest\032&.google.cloud.comput" + + "e.v1.VpnTunnelList\"S\332A\016project,region\202\323\344" + + "\223\002<\022:/compute/v1/projects/{project}/regi" + + "ons/{region}/vpnTunnels\022\261\002\n\tSetLabels\0222." + + "google.cloud.compute.v1.SetLabelsVpnTunn" + + "elRequest\032\".google.cloud.compute.v1.Oper" + + "ation\"\313\001\332A:project,region,resource,regio" + + "n_set_labels_request_resource\212N\020RegionOp" + + "erations\202\323\344\223\002u\"O/compute/v1/projects/{pr" + + "oject}/regions/{region}/vpnTunnels/{reso" + + "urce}/setLabels:\"region_set_labels_reque" + + "st_resource\032r\312A\026compute.googleapis.com\322A" + + "Vhttps://www.googleapis.com/auth/compute" + + ",https://www.googleapis.com/auth/cloud-p" + + "latform2\243\007\n\016ZoneOperations\022\330\001\n\006Delete\0223." + + "google.cloud.compute.v1.DeleteZoneOperat" + + "ionRequest\0324.google.cloud.compute.v1.Del" + + "eteZoneOperationResponse\"c\332A\026project,zon" + + "e,operation\202\323\344\223\002D*B/compute/v1/projects/" + + "{project}/zones/{zone}/operations/{opera" + + "tion}\022\303\001\n\003Get\0220.google.cloud.compute.v1." + + "GetZoneOperationRequest\032\".google.cloud.c" + + "ompute.v1.Operation\"f\332A\026project,zone,ope" + + "ration\220N\001\202\323\344\223\002D\022B/compute/v1/projects/{p" + + "roject}/zones/{zone}/operations/{operati" + + "on}\022\261\001\n\004List\0222.google.cloud.compute.v1.L" + + "istZoneOperationsRequest\032&.google.cloud." + + "compute.v1.OperationList\"M\332A\014project,zon" + + "e\202\323\344\223\0028\0226/compute/v1/projects/{project}/" + + "zones/{zone}/operations\022\307\001\n\004Wait\0221.googl" + + "e.cloud.compute.v1.WaitZoneOperationRequ" + + "est\032\".google.cloud.compute.v1.Operation\"" + + "h\332A\026project,zone,operation\202\323\344\223\002I\"G/compu" + + "te/v1/projects/{project}/zones/{zone}/op" + + "erations/{operation}/wait\032r\312A\026compute.go" + + "ogleapis.com\322AVhttps://www.googleapis.co" + + "m/auth/compute,https://www.googleapis.co" + + "m/auth/cloud-platform2\321\003\n\005Zones\022\221\001\n\003Get\022" + + "\'.google.cloud.compute.v1.GetZoneRequest" + + "\032\035.google.cloud.compute.v1.Zone\"B\332A\014proj" + + "ect,zone\202\323\344\223\002-\022+/compute/v1/projects/{pr" + + "oject}/zones/{zone}\022\214\001\n\004List\022).google.cl" + + "oud.compute.v1.ListZonesRequest\032!.google" + + ".cloud.compute.v1.ZoneList\"6\332A\007project\202\323" + + "\344\223\002&\022$/compute/v1/projects/{project}/zon" + + "es\032\244\001\312A\026compute.googleapis.com\322A\207\001https:" + + "//www.googleapis.com/auth/compute.readon" + + "ly,https://www.googleapis.com/auth/compu" + + "te,https://www.googleapis.com/auth/cloud" + + "-platformB\247\001\n\033com.google.cloud.compute.v" + + "1P\001Z5cloud.google.com/go/compute/apiv1/c" + + "omputepb;computepb\252\002\027Google.Cloud.Comput" + + "e.V1\312\002\027Google\\Cloud\\Compute\\V1\352\002\032Google:" + + ":Cloud::Compute::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -24335,8 +24390,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ReturnPartialSuccess", "ServiceProjectNumber", }); - internal_static_google_cloud_compute_v1_AggregatedListNodeGroupsRequest_descriptor = + internal_static_google_cloud_compute_v1_AggregatedListNetworkFirewallPoliciesRequest_descriptor = getDescriptor().getMessageTypes().get(53); + internal_static_google_cloud_compute_v1_AggregatedListNetworkFirewallPoliciesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_compute_v1_AggregatedListNetworkFirewallPoliciesRequest_descriptor, + new java.lang.String[] { + "Filter", + "IncludeAllScopes", + "MaxResults", + "OrderBy", + "PageToken", + "Project", + "ReturnPartialSuccess", + "ServiceProjectNumber", + }); + internal_static_google_cloud_compute_v1_AggregatedListNodeGroupsRequest_descriptor = + getDescriptor().getMessageTypes().get(54); internal_static_google_cloud_compute_v1_AggregatedListNodeGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListNodeGroupsRequest_descriptor, @@ -24351,7 +24421,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListNodeTemplatesRequest_descriptor = - getDescriptor().getMessageTypes().get(54); + getDescriptor().getMessageTypes().get(55); internal_static_google_cloud_compute_v1_AggregatedListNodeTemplatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListNodeTemplatesRequest_descriptor, @@ -24366,7 +24436,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListNodeTypesRequest_descriptor = - getDescriptor().getMessageTypes().get(55); + getDescriptor().getMessageTypes().get(56); internal_static_google_cloud_compute_v1_AggregatedListNodeTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListNodeTypesRequest_descriptor, @@ -24381,7 +24451,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListPacketMirroringsRequest_descriptor = - getDescriptor().getMessageTypes().get(56); + getDescriptor().getMessageTypes().get(57); internal_static_google_cloud_compute_v1_AggregatedListPacketMirroringsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListPacketMirroringsRequest_descriptor, @@ -24396,7 +24466,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListPublicDelegatedPrefixesRequest_descriptor = - getDescriptor().getMessageTypes().get(57); + getDescriptor().getMessageTypes().get(58); internal_static_google_cloud_compute_v1_AggregatedListPublicDelegatedPrefixesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListPublicDelegatedPrefixesRequest_descriptor, @@ -24411,7 +24481,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListRegionCommitmentsRequest_descriptor = - getDescriptor().getMessageTypes().get(58); + getDescriptor().getMessageTypes().get(59); internal_static_google_cloud_compute_v1_AggregatedListRegionCommitmentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListRegionCommitmentsRequest_descriptor, @@ -24426,7 +24496,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListReservationsRequest_descriptor = - getDescriptor().getMessageTypes().get(59); + getDescriptor().getMessageTypes().get(60); internal_static_google_cloud_compute_v1_AggregatedListReservationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListReservationsRequest_descriptor, @@ -24441,7 +24511,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListResourcePoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(60); + getDescriptor().getMessageTypes().get(61); internal_static_google_cloud_compute_v1_AggregatedListResourcePoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListResourcePoliciesRequest_descriptor, @@ -24456,7 +24526,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListRoutersRequest_descriptor = - getDescriptor().getMessageTypes().get(61); + getDescriptor().getMessageTypes().get(62); internal_static_google_cloud_compute_v1_AggregatedListRoutersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListRoutersRequest_descriptor, @@ -24471,7 +24541,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListSecurityPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(62); + getDescriptor().getMessageTypes().get(63); internal_static_google_cloud_compute_v1_AggregatedListSecurityPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListSecurityPoliciesRequest_descriptor, @@ -24486,7 +24556,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListServiceAttachmentsRequest_descriptor = - getDescriptor().getMessageTypes().get(63); + getDescriptor().getMessageTypes().get(64); internal_static_google_cloud_compute_v1_AggregatedListServiceAttachmentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListServiceAttachmentsRequest_descriptor, @@ -24501,7 +24571,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListSslCertificatesRequest_descriptor = - getDescriptor().getMessageTypes().get(64); + getDescriptor().getMessageTypes().get(65); internal_static_google_cloud_compute_v1_AggregatedListSslCertificatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListSslCertificatesRequest_descriptor, @@ -24516,7 +24586,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListSslPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(65); + getDescriptor().getMessageTypes().get(66); internal_static_google_cloud_compute_v1_AggregatedListSslPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListSslPoliciesRequest_descriptor, @@ -24531,7 +24601,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListStoragePoolTypesRequest_descriptor = - getDescriptor().getMessageTypes().get(66); + getDescriptor().getMessageTypes().get(67); internal_static_google_cloud_compute_v1_AggregatedListStoragePoolTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListStoragePoolTypesRequest_descriptor, @@ -24546,7 +24616,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListStoragePoolsRequest_descriptor = - getDescriptor().getMessageTypes().get(67); + getDescriptor().getMessageTypes().get(68); internal_static_google_cloud_compute_v1_AggregatedListStoragePoolsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListStoragePoolsRequest_descriptor, @@ -24561,7 +24631,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListSubnetworksRequest_descriptor = - getDescriptor().getMessageTypes().get(68); + getDescriptor().getMessageTypes().get(69); internal_static_google_cloud_compute_v1_AggregatedListSubnetworksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListSubnetworksRequest_descriptor, @@ -24576,7 +24646,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListTargetHttpProxiesRequest_descriptor = - getDescriptor().getMessageTypes().get(69); + getDescriptor().getMessageTypes().get(70); internal_static_google_cloud_compute_v1_AggregatedListTargetHttpProxiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListTargetHttpProxiesRequest_descriptor, @@ -24591,7 +24661,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListTargetHttpsProxiesRequest_descriptor = - getDescriptor().getMessageTypes().get(70); + getDescriptor().getMessageTypes().get(71); internal_static_google_cloud_compute_v1_AggregatedListTargetHttpsProxiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListTargetHttpsProxiesRequest_descriptor, @@ -24606,7 +24676,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListTargetInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(71); + getDescriptor().getMessageTypes().get(72); internal_static_google_cloud_compute_v1_AggregatedListTargetInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListTargetInstancesRequest_descriptor, @@ -24621,7 +24691,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListTargetPoolsRequest_descriptor = - getDescriptor().getMessageTypes().get(72); + getDescriptor().getMessageTypes().get(73); internal_static_google_cloud_compute_v1_AggregatedListTargetPoolsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListTargetPoolsRequest_descriptor, @@ -24636,7 +24706,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListTargetTcpProxiesRequest_descriptor = - getDescriptor().getMessageTypes().get(73); + getDescriptor().getMessageTypes().get(74); internal_static_google_cloud_compute_v1_AggregatedListTargetTcpProxiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListTargetTcpProxiesRequest_descriptor, @@ -24651,7 +24721,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListTargetVpnGatewaysRequest_descriptor = - getDescriptor().getMessageTypes().get(74); + getDescriptor().getMessageTypes().get(75); internal_static_google_cloud_compute_v1_AggregatedListTargetVpnGatewaysRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListTargetVpnGatewaysRequest_descriptor, @@ -24666,7 +24736,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListUrlMapsRequest_descriptor = - getDescriptor().getMessageTypes().get(75); + getDescriptor().getMessageTypes().get(76); internal_static_google_cloud_compute_v1_AggregatedListUrlMapsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListUrlMapsRequest_descriptor, @@ -24681,7 +24751,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListVpnGatewaysRequest_descriptor = - getDescriptor().getMessageTypes().get(76); + getDescriptor().getMessageTypes().get(77); internal_static_google_cloud_compute_v1_AggregatedListVpnGatewaysRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListVpnGatewaysRequest_descriptor, @@ -24696,7 +24766,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AggregatedListVpnTunnelsRequest_descriptor = - getDescriptor().getMessageTypes().get(77); + getDescriptor().getMessageTypes().get(78); internal_static_google_cloud_compute_v1_AggregatedListVpnTunnelsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AggregatedListVpnTunnelsRequest_descriptor, @@ -24711,7 +24781,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceProjectNumber", }); internal_static_google_cloud_compute_v1_AliasIpRange_descriptor = - getDescriptor().getMessageTypes().get(78); + getDescriptor().getMessageTypes().get(79); internal_static_google_cloud_compute_v1_AliasIpRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AliasIpRange_descriptor, @@ -24719,7 +24789,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IpCidrRange", "SubnetworkRangeName", }); internal_static_google_cloud_compute_v1_AllocationAggregateReservation_descriptor = - getDescriptor().getMessageTypes().get(79); + getDescriptor().getMessageTypes().get(80); internal_static_google_cloud_compute_v1_AllocationAggregateReservation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AllocationAggregateReservation_descriptor, @@ -24727,7 +24797,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InUseResources", "ReservedResources", "VmFamily", "WorkloadType", }); internal_static_google_cloud_compute_v1_AllocationAggregateReservationReservedResourceInfo_descriptor = - getDescriptor().getMessageTypes().get(80); + getDescriptor().getMessageTypes().get(81); internal_static_google_cloud_compute_v1_AllocationAggregateReservationReservedResourceInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AllocationAggregateReservationReservedResourceInfo_descriptor, @@ -24735,7 +24805,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Accelerator", }); internal_static_google_cloud_compute_v1_AllocationAggregateReservationReservedResourceInfoAccelerator_descriptor = - getDescriptor().getMessageTypes().get(81); + getDescriptor().getMessageTypes().get(82); internal_static_google_cloud_compute_v1_AllocationAggregateReservationReservedResourceInfoAccelerator_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AllocationAggregateReservationReservedResourceInfoAccelerator_descriptor, @@ -24743,7 +24813,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AcceleratorCount", "AcceleratorType", }); internal_static_google_cloud_compute_v1_AllocationResourceStatus_descriptor = - getDescriptor().getMessageTypes().get(82); + getDescriptor().getMessageTypes().get(83); internal_static_google_cloud_compute_v1_AllocationResourceStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AllocationResourceStatus_descriptor, @@ -24751,7 +24821,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SpecificSkuAllocation", }); internal_static_google_cloud_compute_v1_AllocationResourceStatusSpecificSKUAllocation_descriptor = - getDescriptor().getMessageTypes().get(83); + getDescriptor().getMessageTypes().get(84); internal_static_google_cloud_compute_v1_AllocationResourceStatusSpecificSKUAllocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AllocationResourceStatusSpecificSKUAllocation_descriptor, @@ -24759,7 +24829,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SourceInstanceTemplateId", }); internal_static_google_cloud_compute_v1_AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk_descriptor = - getDescriptor().getMessageTypes().get(84); + getDescriptor().getMessageTypes().get(85); internal_static_google_cloud_compute_v1_AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk_descriptor, @@ -24767,7 +24837,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DiskSizeGb", "Interface", }); internal_static_google_cloud_compute_v1_AllocationSpecificSKUAllocationReservedInstanceProperties_descriptor = - getDescriptor().getMessageTypes().get(85); + getDescriptor().getMessageTypes().get(86); internal_static_google_cloud_compute_v1_AllocationSpecificSKUAllocationReservedInstanceProperties_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AllocationSpecificSKUAllocationReservedInstanceProperties_descriptor, @@ -24775,7 +24845,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GuestAccelerators", "LocalSsds", "LocationHint", "MachineType", "MinCpuPlatform", }); internal_static_google_cloud_compute_v1_AllocationSpecificSKUReservation_descriptor = - getDescriptor().getMessageTypes().get(86); + getDescriptor().getMessageTypes().get(87); internal_static_google_cloud_compute_v1_AllocationSpecificSKUReservation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AllocationSpecificSKUReservation_descriptor, @@ -24783,7 +24853,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AssuredCount", "Count", "InUseCount", "InstanceProperties", "SourceInstanceTemplate", }); internal_static_google_cloud_compute_v1_Allowed_descriptor = - getDescriptor().getMessageTypes().get(87); + getDescriptor().getMessageTypes().get(88); internal_static_google_cloud_compute_v1_Allowed_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Allowed_descriptor, @@ -24791,7 +24861,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IPProtocol", "Ports", }); internal_static_google_cloud_compute_v1_AnnouncePublicAdvertisedPrefixeRequest_descriptor = - getDescriptor().getMessageTypes().get(88); + getDescriptor().getMessageTypes().get(89); internal_static_google_cloud_compute_v1_AnnouncePublicAdvertisedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AnnouncePublicAdvertisedPrefixeRequest_descriptor, @@ -24799,7 +24869,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PublicAdvertisedPrefix", "RequestId", }); internal_static_google_cloud_compute_v1_AnnouncePublicDelegatedPrefixeRequest_descriptor = - getDescriptor().getMessageTypes().get(89); + getDescriptor().getMessageTypes().get(90); internal_static_google_cloud_compute_v1_AnnouncePublicDelegatedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AnnouncePublicDelegatedPrefixeRequest_descriptor, @@ -24807,7 +24877,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PublicDelegatedPrefix", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_ApplyUpdatesToInstancesInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(90); + getDescriptor().getMessageTypes().get(91); internal_static_google_cloud_compute_v1_ApplyUpdatesToInstancesInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ApplyUpdatesToInstancesInstanceGroupManagerRequest_descriptor, @@ -24818,7 +24888,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Zone", }); internal_static_google_cloud_compute_v1_ApplyUpdatesToInstancesRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(91); + getDescriptor().getMessageTypes().get(92); internal_static_google_cloud_compute_v1_ApplyUpdatesToInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ApplyUpdatesToInstancesRegionInstanceGroupManagerRequest_descriptor, @@ -24829,7 +24899,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RegionInstanceGroupManagersApplyUpdatesRequestResource", }); internal_static_google_cloud_compute_v1_AttachDiskInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(92); + getDescriptor().getMessageTypes().get(93); internal_static_google_cloud_compute_v1_AttachDiskInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AttachDiskInstanceRequest_descriptor, @@ -24837,7 +24907,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AttachedDiskResource", "ForceAttach", "Instance", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(93); + getDescriptor().getMessageTypes().get(94); internal_static_google_cloud_compute_v1_AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest_descriptor, @@ -24848,7 +24918,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequestId", }); internal_static_google_cloud_compute_v1_AttachNetworkEndpointsNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(94); + getDescriptor().getMessageTypes().get(95); internal_static_google_cloud_compute_v1_AttachNetworkEndpointsNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AttachNetworkEndpointsNetworkEndpointGroupRequest_descriptor, @@ -24860,7 +24930,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Zone", }); internal_static_google_cloud_compute_v1_AttachNetworkEndpointsRegionNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(95); + getDescriptor().getMessageTypes().get(96); internal_static_google_cloud_compute_v1_AttachNetworkEndpointsRegionNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AttachNetworkEndpointsRegionNetworkEndpointGroupRequest_descriptor, @@ -24872,7 +24942,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequestId", }); internal_static_google_cloud_compute_v1_AttachedDisk_descriptor = - getDescriptor().getMessageTypes().get(96); + getDescriptor().getMessageTypes().get(97); internal_static_google_cloud_compute_v1_AttachedDisk_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AttachedDisk_descriptor, @@ -24897,7 +24967,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Type", }); internal_static_google_cloud_compute_v1_AttachedDiskInitializeParams_descriptor = - getDescriptor().getMessageTypes().get(97); + getDescriptor().getMessageTypes().get(98); internal_static_google_cloud_compute_v1_AttachedDiskInitializeParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AttachedDiskInitializeParams_descriptor, @@ -24943,7 +25013,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_AuditConfig_descriptor = - getDescriptor().getMessageTypes().get(98); + getDescriptor().getMessageTypes().get(99); internal_static_google_cloud_compute_v1_AuditConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AuditConfig_descriptor, @@ -24951,7 +25021,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AuditLogConfigs", "ExemptedMembers", "Service", }); internal_static_google_cloud_compute_v1_AuditLogConfig_descriptor = - getDescriptor().getMessageTypes().get(99); + getDescriptor().getMessageTypes().get(100); internal_static_google_cloud_compute_v1_AuditLogConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AuditLogConfig_descriptor, @@ -24959,7 +25029,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExemptedMembers", "IgnoreChildExemptions", "LogType", }); internal_static_google_cloud_compute_v1_Autoscaler_descriptor = - getDescriptor().getMessageTypes().get(100); + getDescriptor().getMessageTypes().get(101); internal_static_google_cloud_compute_v1_Autoscaler_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Autoscaler_descriptor, @@ -24988,7 +25058,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_AutoscalerAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(101); + getDescriptor().getMessageTypes().get(102); internal_static_google_cloud_compute_v1_AutoscalerAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AutoscalerAggregatedList_descriptor, @@ -25006,7 +25076,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_AutoscalerList_descriptor = - getDescriptor().getMessageTypes().get(102); + getDescriptor().getMessageTypes().get(103); internal_static_google_cloud_compute_v1_AutoscalerList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AutoscalerList_descriptor, @@ -25014,7 +25084,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_AutoscalerStatusDetails_descriptor = - getDescriptor().getMessageTypes().get(103); + getDescriptor().getMessageTypes().get(104); internal_static_google_cloud_compute_v1_AutoscalerStatusDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AutoscalerStatusDetails_descriptor, @@ -25022,7 +25092,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Message", "Type", }); internal_static_google_cloud_compute_v1_AutoscalersScopedList_descriptor = - getDescriptor().getMessageTypes().get(104); + getDescriptor().getMessageTypes().get(105); internal_static_google_cloud_compute_v1_AutoscalersScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AutoscalersScopedList_descriptor, @@ -25030,7 +25100,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Autoscalers", "Warning", }); internal_static_google_cloud_compute_v1_AutoscalingPolicy_descriptor = - getDescriptor().getMessageTypes().get(105); + getDescriptor().getMessageTypes().get(106); internal_static_google_cloud_compute_v1_AutoscalingPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AutoscalingPolicy_descriptor, @@ -25056,7 +25126,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_AutoscalingPolicyCpuUtilization_descriptor = - getDescriptor().getMessageTypes().get(106); + getDescriptor().getMessageTypes().get(107); internal_static_google_cloud_compute_v1_AutoscalingPolicyCpuUtilization_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AutoscalingPolicyCpuUtilization_descriptor, @@ -25064,7 +25134,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PredictiveMethod", "UtilizationTarget", }); internal_static_google_cloud_compute_v1_AutoscalingPolicyCustomMetricUtilization_descriptor = - getDescriptor().getMessageTypes().get(107); + getDescriptor().getMessageTypes().get(108); internal_static_google_cloud_compute_v1_AutoscalingPolicyCustomMetricUtilization_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AutoscalingPolicyCustomMetricUtilization_descriptor, @@ -25076,7 +25146,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UtilizationTargetType", }); internal_static_google_cloud_compute_v1_AutoscalingPolicyLoadBalancingUtilization_descriptor = - getDescriptor().getMessageTypes().get(108); + getDescriptor().getMessageTypes().get(109); internal_static_google_cloud_compute_v1_AutoscalingPolicyLoadBalancingUtilization_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AutoscalingPolicyLoadBalancingUtilization_descriptor, @@ -25084,7 +25154,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UtilizationTarget", }); internal_static_google_cloud_compute_v1_AutoscalingPolicyScaleInControl_descriptor = - getDescriptor().getMessageTypes().get(109); + getDescriptor().getMessageTypes().get(110); internal_static_google_cloud_compute_v1_AutoscalingPolicyScaleInControl_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AutoscalingPolicyScaleInControl_descriptor, @@ -25092,7 +25162,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MaxScaledInReplicas", "TimeWindowSec", }); internal_static_google_cloud_compute_v1_AutoscalingPolicyScalingSchedule_descriptor = - getDescriptor().getMessageTypes().get(110); + getDescriptor().getMessageTypes().get(111); internal_static_google_cloud_compute_v1_AutoscalingPolicyScalingSchedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_AutoscalingPolicyScalingSchedule_descriptor, @@ -25105,7 +25175,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TimeZone", }); internal_static_google_cloud_compute_v1_Backend_descriptor = - getDescriptor().getMessageTypes().get(111); + getDescriptor().getMessageTypes().get(112); internal_static_google_cloud_compute_v1_Backend_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Backend_descriptor, @@ -25125,7 +25195,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Preference", }); internal_static_google_cloud_compute_v1_BackendBucket_descriptor = - getDescriptor().getMessageTypes().get(112); + getDescriptor().getMessageTypes().get(113); internal_static_google_cloud_compute_v1_BackendBucket_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendBucket_descriptor, @@ -25145,7 +25215,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UsedBy", }); internal_static_google_cloud_compute_v1_BackendBucketCdnPolicy_descriptor = - getDescriptor().getMessageTypes().get(113); + getDescriptor().getMessageTypes().get(114); internal_static_google_cloud_compute_v1_BackendBucketCdnPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendBucketCdnPolicy_descriptor, @@ -25164,7 +25234,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SignedUrlKeyNames", }); internal_static_google_cloud_compute_v1_BackendBucketCdnPolicyBypassCacheOnRequestHeader_descriptor = - getDescriptor().getMessageTypes().get(114); + getDescriptor().getMessageTypes().get(115); internal_static_google_cloud_compute_v1_BackendBucketCdnPolicyBypassCacheOnRequestHeader_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendBucketCdnPolicyBypassCacheOnRequestHeader_descriptor, @@ -25172,7 +25242,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HeaderName", }); internal_static_google_cloud_compute_v1_BackendBucketCdnPolicyCacheKeyPolicy_descriptor = - getDescriptor().getMessageTypes().get(115); + getDescriptor().getMessageTypes().get(116); internal_static_google_cloud_compute_v1_BackendBucketCdnPolicyCacheKeyPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendBucketCdnPolicyCacheKeyPolicy_descriptor, @@ -25180,7 +25250,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IncludeHttpHeaders", "QueryStringWhitelist", }); internal_static_google_cloud_compute_v1_BackendBucketCdnPolicyNegativeCachingPolicy_descriptor = - getDescriptor().getMessageTypes().get(116); + getDescriptor().getMessageTypes().get(117); internal_static_google_cloud_compute_v1_BackendBucketCdnPolicyNegativeCachingPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendBucketCdnPolicyNegativeCachingPolicy_descriptor, @@ -25188,7 +25258,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Code", "Ttl", }); internal_static_google_cloud_compute_v1_BackendBucketList_descriptor = - getDescriptor().getMessageTypes().get(117); + getDescriptor().getMessageTypes().get(118); internal_static_google_cloud_compute_v1_BackendBucketList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendBucketList_descriptor, @@ -25196,7 +25266,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_BackendBucketUsedBy_descriptor = - getDescriptor().getMessageTypes().get(118); + getDescriptor().getMessageTypes().get(119); internal_static_google_cloud_compute_v1_BackendBucketUsedBy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendBucketUsedBy_descriptor, @@ -25204,7 +25274,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Reference", }); internal_static_google_cloud_compute_v1_BackendService_descriptor = - getDescriptor().getMessageTypes().get(119); + getDescriptor().getMessageTypes().get(120); internal_static_google_cloud_compute_v1_BackendService_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendService_descriptor, @@ -25263,7 +25333,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_BackendServiceAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(120); + getDescriptor().getMessageTypes().get(121); internal_static_google_cloud_compute_v1_BackendServiceAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceAggregatedList_descriptor, @@ -25281,7 +25351,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_BackendServiceCdnPolicy_descriptor = - getDescriptor().getMessageTypes().get(121); + getDescriptor().getMessageTypes().get(122); internal_static_google_cloud_compute_v1_BackendServiceCdnPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceCdnPolicy_descriptor, @@ -25300,7 +25370,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SignedUrlKeyNames", }); internal_static_google_cloud_compute_v1_BackendServiceCdnPolicyBypassCacheOnRequestHeader_descriptor = - getDescriptor().getMessageTypes().get(122); + getDescriptor().getMessageTypes().get(123); internal_static_google_cloud_compute_v1_BackendServiceCdnPolicyBypassCacheOnRequestHeader_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceCdnPolicyBypassCacheOnRequestHeader_descriptor, @@ -25308,7 +25378,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HeaderName", }); internal_static_google_cloud_compute_v1_BackendServiceCdnPolicyNegativeCachingPolicy_descriptor = - getDescriptor().getMessageTypes().get(123); + getDescriptor().getMessageTypes().get(124); internal_static_google_cloud_compute_v1_BackendServiceCdnPolicyNegativeCachingPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceCdnPolicyNegativeCachingPolicy_descriptor, @@ -25316,7 +25386,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Code", "Ttl", }); internal_static_google_cloud_compute_v1_BackendServiceConnectionTrackingPolicy_descriptor = - getDescriptor().getMessageTypes().get(124); + getDescriptor().getMessageTypes().get(125); internal_static_google_cloud_compute_v1_BackendServiceConnectionTrackingPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceConnectionTrackingPolicy_descriptor, @@ -25327,7 +25397,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TrackingMode", }); internal_static_google_cloud_compute_v1_BackendServiceFailoverPolicy_descriptor = - getDescriptor().getMessageTypes().get(125); + getDescriptor().getMessageTypes().get(126); internal_static_google_cloud_compute_v1_BackendServiceFailoverPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceFailoverPolicy_descriptor, @@ -25335,7 +25405,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisableConnectionDrainOnFailover", "DropTrafficIfUnhealthy", "FailoverRatio", }); internal_static_google_cloud_compute_v1_BackendServiceGroupHealth_descriptor = - getDescriptor().getMessageTypes().get(126); + getDescriptor().getMessageTypes().get(127); internal_static_google_cloud_compute_v1_BackendServiceGroupHealth_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceGroupHealth_descriptor, @@ -25353,7 +25423,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_BackendServiceHttpCookie_descriptor = - getDescriptor().getMessageTypes().get(127); + getDescriptor().getMessageTypes().get(128); internal_static_google_cloud_compute_v1_BackendServiceHttpCookie_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceHttpCookie_descriptor, @@ -25361,7 +25431,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Path", "Ttl", }); internal_static_google_cloud_compute_v1_BackendServiceIAP_descriptor = - getDescriptor().getMessageTypes().get(128); + getDescriptor().getMessageTypes().get(129); internal_static_google_cloud_compute_v1_BackendServiceIAP_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceIAP_descriptor, @@ -25369,7 +25439,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Enabled", "Oauth2ClientId", "Oauth2ClientSecret", "Oauth2ClientSecretSha256", }); internal_static_google_cloud_compute_v1_BackendServiceList_descriptor = - getDescriptor().getMessageTypes().get(129); + getDescriptor().getMessageTypes().get(130); internal_static_google_cloud_compute_v1_BackendServiceList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceList_descriptor, @@ -25377,7 +25447,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_BackendServiceListUsable_descriptor = - getDescriptor().getMessageTypes().get(130); + getDescriptor().getMessageTypes().get(131); internal_static_google_cloud_compute_v1_BackendServiceListUsable_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceListUsable_descriptor, @@ -25385,7 +25455,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_BackendServiceLocalityLoadBalancingPolicyConfig_descriptor = - getDescriptor().getMessageTypes().get(131); + getDescriptor().getMessageTypes().get(132); internal_static_google_cloud_compute_v1_BackendServiceLocalityLoadBalancingPolicyConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceLocalityLoadBalancingPolicyConfig_descriptor, @@ -25393,7 +25463,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CustomPolicy", "Policy", }); internal_static_google_cloud_compute_v1_BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy_descriptor = - getDescriptor().getMessageTypes().get(132); + getDescriptor().getMessageTypes().get(133); internal_static_google_cloud_compute_v1_BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy_descriptor, @@ -25401,7 +25471,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Data", "Name", }); internal_static_google_cloud_compute_v1_BackendServiceLocalityLoadBalancingPolicyConfigPolicy_descriptor = - getDescriptor().getMessageTypes().get(133); + getDescriptor().getMessageTypes().get(134); internal_static_google_cloud_compute_v1_BackendServiceLocalityLoadBalancingPolicyConfigPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceLocalityLoadBalancingPolicyConfigPolicy_descriptor, @@ -25409,7 +25479,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_compute_v1_BackendServiceLogConfig_descriptor = - getDescriptor().getMessageTypes().get(134); + getDescriptor().getMessageTypes().get(135); internal_static_google_cloud_compute_v1_BackendServiceLogConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceLogConfig_descriptor, @@ -25417,7 +25487,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Enable", "OptionalFields", "OptionalMode", "SampleRate", }); internal_static_google_cloud_compute_v1_BackendServiceReference_descriptor = - getDescriptor().getMessageTypes().get(135); + getDescriptor().getMessageTypes().get(136); internal_static_google_cloud_compute_v1_BackendServiceReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceReference_descriptor, @@ -25425,7 +25495,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackendService", }); internal_static_google_cloud_compute_v1_BackendServiceUsedBy_descriptor = - getDescriptor().getMessageTypes().get(136); + getDescriptor().getMessageTypes().get(137); internal_static_google_cloud_compute_v1_BackendServiceUsedBy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServiceUsedBy_descriptor, @@ -25433,7 +25503,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Reference", }); internal_static_google_cloud_compute_v1_BackendServicesScopedList_descriptor = - getDescriptor().getMessageTypes().get(137); + getDescriptor().getMessageTypes().get(138); internal_static_google_cloud_compute_v1_BackendServicesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BackendServicesScopedList_descriptor, @@ -25441,7 +25511,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackendServices", "Warning", }); internal_static_google_cloud_compute_v1_BfdPacket_descriptor = - getDescriptor().getMessageTypes().get(138); + getDescriptor().getMessageTypes().get(139); internal_static_google_cloud_compute_v1_BfdPacket_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BfdPacket_descriptor, @@ -25464,7 +25534,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "YourDiscriminator", }); internal_static_google_cloud_compute_v1_BfdStatus_descriptor = - getDescriptor().getMessageTypes().get(139); + getDescriptor().getMessageTypes().get(140); internal_static_google_cloud_compute_v1_BfdStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BfdStatus_descriptor, @@ -25481,7 +25551,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UptimeMs", }); internal_static_google_cloud_compute_v1_BfdStatusPacketCounts_descriptor = - getDescriptor().getMessageTypes().get(140); + getDescriptor().getMessageTypes().get(141); internal_static_google_cloud_compute_v1_BfdStatusPacketCounts_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BfdStatusPacketCounts_descriptor, @@ -25489,7 +25559,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NumRx", "NumRxRejected", "NumRxSuccessful", "NumTx", }); internal_static_google_cloud_compute_v1_Binding_descriptor = - getDescriptor().getMessageTypes().get(141); + getDescriptor().getMessageTypes().get(142); internal_static_google_cloud_compute_v1_Binding_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Binding_descriptor, @@ -25497,7 +25567,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BindingId", "Condition", "Members", "Role", }); internal_static_google_cloud_compute_v1_BulkInsertDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(142); + getDescriptor().getMessageTypes().get(143); internal_static_google_cloud_compute_v1_BulkInsertDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BulkInsertDiskRequest_descriptor, @@ -25505,7 +25575,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BulkInsertDiskResourceResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_BulkInsertDiskResource_descriptor = - getDescriptor().getMessageTypes().get(143); + getDescriptor().getMessageTypes().get(144); internal_static_google_cloud_compute_v1_BulkInsertDiskResource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BulkInsertDiskResource_descriptor, @@ -25513,7 +25583,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SourceConsistencyGroupPolicy", }); internal_static_google_cloud_compute_v1_BulkInsertInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(144); + getDescriptor().getMessageTypes().get(145); internal_static_google_cloud_compute_v1_BulkInsertInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BulkInsertInstanceRequest_descriptor, @@ -25521,7 +25591,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BulkInsertInstanceResourceResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_BulkInsertInstanceResource_descriptor = - getDescriptor().getMessageTypes().get(145); + getDescriptor().getMessageTypes().get(146); internal_static_google_cloud_compute_v1_BulkInsertInstanceResource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BulkInsertInstanceResource_descriptor, @@ -25545,7 +25615,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_BulkInsertInstanceResourcePerInstanceProperties_descriptor = - getDescriptor().getMessageTypes().get(146); + getDescriptor().getMessageTypes().get(147); internal_static_google_cloud_compute_v1_BulkInsertInstanceResourcePerInstanceProperties_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BulkInsertInstanceResourcePerInstanceProperties_descriptor, @@ -25553,7 +25623,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Hostname", "Name", }); internal_static_google_cloud_compute_v1_BulkInsertOperationStatus_descriptor = - getDescriptor().getMessageTypes().get(147); + getDescriptor().getMessageTypes().get(148); internal_static_google_cloud_compute_v1_BulkInsertOperationStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BulkInsertOperationStatus_descriptor, @@ -25565,7 +25635,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TargetVmCount", }); internal_static_google_cloud_compute_v1_BulkInsertRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(148); + getDescriptor().getMessageTypes().get(149); internal_static_google_cloud_compute_v1_BulkInsertRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BulkInsertRegionDiskRequest_descriptor, @@ -25573,7 +25643,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BulkInsertDiskResourceResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_BulkInsertRegionInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(149); + getDescriptor().getMessageTypes().get(150); internal_static_google_cloud_compute_v1_BulkInsertRegionInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_BulkInsertRegionInstanceRequest_descriptor, @@ -25581,7 +25651,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BulkInsertInstanceResourceResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_CacheInvalidationRule_descriptor = - getDescriptor().getMessageTypes().get(150); + getDescriptor().getMessageTypes().get(151); internal_static_google_cloud_compute_v1_CacheInvalidationRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_CacheInvalidationRule_descriptor, @@ -25589,7 +25659,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Host", "Path", }); internal_static_google_cloud_compute_v1_CacheKeyPolicy_descriptor = - getDescriptor().getMessageTypes().get(151); + getDescriptor().getMessageTypes().get(152); internal_static_google_cloud_compute_v1_CacheKeyPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_CacheKeyPolicy_descriptor, @@ -25603,7 +25673,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "QueryStringWhitelist", }); internal_static_google_cloud_compute_v1_CancelInstanceGroupManagerResizeRequestRequest_descriptor = - getDescriptor().getMessageTypes().get(152); + getDescriptor().getMessageTypes().get(153); internal_static_google_cloud_compute_v1_CancelInstanceGroupManagerResizeRequestRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_CancelInstanceGroupManagerResizeRequestRequest_descriptor, @@ -25611,7 +25681,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceGroupManager", "Project", "RequestId", "ResizeRequest", "Zone", }); internal_static_google_cloud_compute_v1_CircuitBreakers_descriptor = - getDescriptor().getMessageTypes().get(153); + getDescriptor().getMessageTypes().get(154); internal_static_google_cloud_compute_v1_CircuitBreakers_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_CircuitBreakers_descriptor, @@ -25623,7 +25693,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MaxRetries", }); internal_static_google_cloud_compute_v1_CloneRulesFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(154); + getDescriptor().getMessageTypes().get(155); internal_static_google_cloud_compute_v1_CloneRulesFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_CloneRulesFirewallPolicyRequest_descriptor, @@ -25631,7 +25701,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", "RequestId", "SourceFirewallPolicy", }); internal_static_google_cloud_compute_v1_CloneRulesNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(155); + getDescriptor().getMessageTypes().get(156); internal_static_google_cloud_compute_v1_CloneRulesNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_CloneRulesNetworkFirewallPolicyRequest_descriptor, @@ -25639,7 +25709,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", "Project", "RequestId", "SourceFirewallPolicy", }); internal_static_google_cloud_compute_v1_CloneRulesRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(156); + getDescriptor().getMessageTypes().get(157); internal_static_google_cloud_compute_v1_CloneRulesRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_CloneRulesRegionNetworkFirewallPolicyRequest_descriptor, @@ -25647,7 +25717,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", "Project", "Region", "RequestId", "SourceFirewallPolicy", }); internal_static_google_cloud_compute_v1_Commitment_descriptor = - getDescriptor().getMessageTypes().get(157); + getDescriptor().getMessageTypes().get(158); internal_static_google_cloud_compute_v1_Commitment_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Commitment_descriptor, @@ -25677,7 +25747,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Type", }); internal_static_google_cloud_compute_v1_CommitmentAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(158); + getDescriptor().getMessageTypes().get(159); internal_static_google_cloud_compute_v1_CommitmentAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_CommitmentAggregatedList_descriptor, @@ -25695,7 +25765,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_CommitmentList_descriptor = - getDescriptor().getMessageTypes().get(159); + getDescriptor().getMessageTypes().get(160); internal_static_google_cloud_compute_v1_CommitmentList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_CommitmentList_descriptor, @@ -25703,7 +25773,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_CommitmentResourceStatus_descriptor = - getDescriptor().getMessageTypes().get(160); + getDescriptor().getMessageTypes().get(161); internal_static_google_cloud_compute_v1_CommitmentResourceStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_CommitmentResourceStatus_descriptor, @@ -25711,7 +25781,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CustomTermEligibilityEndTimestamp", }); internal_static_google_cloud_compute_v1_CommitmentsScopedList_descriptor = - getDescriptor().getMessageTypes().get(161); + getDescriptor().getMessageTypes().get(162); internal_static_google_cloud_compute_v1_CommitmentsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_CommitmentsScopedList_descriptor, @@ -25719,7 +25789,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Commitments", "Warning", }); internal_static_google_cloud_compute_v1_ConfidentialInstanceConfig_descriptor = - getDescriptor().getMessageTypes().get(162); + getDescriptor().getMessageTypes().get(163); internal_static_google_cloud_compute_v1_ConfidentialInstanceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ConfidentialInstanceConfig_descriptor, @@ -25727,7 +25797,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConfidentialInstanceType", "EnableConfidentialCompute", }); internal_static_google_cloud_compute_v1_ConnectionDraining_descriptor = - getDescriptor().getMessageTypes().get(163); + getDescriptor().getMessageTypes().get(164); internal_static_google_cloud_compute_v1_ConnectionDraining_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ConnectionDraining_descriptor, @@ -25735,7 +25805,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DrainingTimeoutSec", }); internal_static_google_cloud_compute_v1_ConsistentHashLoadBalancerSettings_descriptor = - getDescriptor().getMessageTypes().get(164); + getDescriptor().getMessageTypes().get(165); internal_static_google_cloud_compute_v1_ConsistentHashLoadBalancerSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ConsistentHashLoadBalancerSettings_descriptor, @@ -25743,7 +25813,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HttpCookie", "HttpHeaderName", "MinimumRingSize", }); internal_static_google_cloud_compute_v1_ConsistentHashLoadBalancerSettingsHttpCookie_descriptor = - getDescriptor().getMessageTypes().get(165); + getDescriptor().getMessageTypes().get(166); internal_static_google_cloud_compute_v1_ConsistentHashLoadBalancerSettingsHttpCookie_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ConsistentHashLoadBalancerSettingsHttpCookie_descriptor, @@ -25751,7 +25821,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Path", "Ttl", }); internal_static_google_cloud_compute_v1_CorsPolicy_descriptor = - getDescriptor().getMessageTypes().get(166); + getDescriptor().getMessageTypes().get(167); internal_static_google_cloud_compute_v1_CorsPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_CorsPolicy_descriptor, @@ -25766,7 +25836,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MaxAge", }); internal_static_google_cloud_compute_v1_CreateInstancesInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(167); + getDescriptor().getMessageTypes().get(168); internal_static_google_cloud_compute_v1_CreateInstancesInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_CreateInstancesInstanceGroupManagerRequest_descriptor, @@ -25778,7 +25848,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Zone", }); internal_static_google_cloud_compute_v1_CreateInstancesRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(168); + getDescriptor().getMessageTypes().get(169); internal_static_google_cloud_compute_v1_CreateInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_CreateInstancesRegionInstanceGroupManagerRequest_descriptor, @@ -25790,7 +25860,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequestId", }); internal_static_google_cloud_compute_v1_CreateSnapshotDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(169); + getDescriptor().getMessageTypes().get(170); internal_static_google_cloud_compute_v1_CreateSnapshotDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_CreateSnapshotDiskRequest_descriptor, @@ -25798,7 +25868,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Disk", "GuestFlush", "Project", "RequestId", "SnapshotResource", "Zone", }); internal_static_google_cloud_compute_v1_CreateSnapshotRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(170); + getDescriptor().getMessageTypes().get(171); internal_static_google_cloud_compute_v1_CreateSnapshotRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_CreateSnapshotRegionDiskRequest_descriptor, @@ -25806,7 +25876,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Disk", "Project", "Region", "RequestId", "SnapshotResource", }); internal_static_google_cloud_compute_v1_CustomErrorResponsePolicy_descriptor = - getDescriptor().getMessageTypes().get(171); + getDescriptor().getMessageTypes().get(172); internal_static_google_cloud_compute_v1_CustomErrorResponsePolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_CustomErrorResponsePolicy_descriptor, @@ -25814,7 +25884,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ErrorResponseRules", "ErrorService", }); internal_static_google_cloud_compute_v1_CustomErrorResponsePolicyCustomErrorResponseRule_descriptor = - getDescriptor().getMessageTypes().get(172); + getDescriptor().getMessageTypes().get(173); internal_static_google_cloud_compute_v1_CustomErrorResponsePolicyCustomErrorResponseRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_CustomErrorResponsePolicyCustomErrorResponseRule_descriptor, @@ -25822,7 +25892,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MatchResponseCodes", "OverrideResponseCode", "Path", }); internal_static_google_cloud_compute_v1_CustomerEncryptionKey_descriptor = - getDescriptor().getMessageTypes().get(173); + getDescriptor().getMessageTypes().get(174); internal_static_google_cloud_compute_v1_CustomerEncryptionKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_CustomerEncryptionKey_descriptor, @@ -25830,7 +25900,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "KmsKeyName", "KmsKeyServiceAccount", "RawKey", "RsaEncryptedKey", "Sha256", }); internal_static_google_cloud_compute_v1_CustomerEncryptionKeyProtectedDisk_descriptor = - getDescriptor().getMessageTypes().get(174); + getDescriptor().getMessageTypes().get(175); internal_static_google_cloud_compute_v1_CustomerEncryptionKeyProtectedDisk_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_CustomerEncryptionKeyProtectedDisk_descriptor, @@ -25838,7 +25908,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DiskEncryptionKey", "Source", }); internal_static_google_cloud_compute_v1_Data_descriptor = - getDescriptor().getMessageTypes().get(175); + getDescriptor().getMessageTypes().get(176); internal_static_google_cloud_compute_v1_Data_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Data_descriptor, @@ -25846,7 +25916,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_DeleteAccessConfigInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(176); + getDescriptor().getMessageTypes().get(177); internal_static_google_cloud_compute_v1_DeleteAccessConfigInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteAccessConfigInstanceRequest_descriptor, @@ -25854,7 +25924,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AccessConfig", "Instance", "NetworkInterface", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_DeleteAddressRequest_descriptor = - getDescriptor().getMessageTypes().get(177); + getDescriptor().getMessageTypes().get(178); internal_static_google_cloud_compute_v1_DeleteAddressRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteAddressRequest_descriptor, @@ -25862,7 +25932,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Address", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteAutoscalerRequest_descriptor = - getDescriptor().getMessageTypes().get(178); + getDescriptor().getMessageTypes().get(179); internal_static_google_cloud_compute_v1_DeleteAutoscalerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteAutoscalerRequest_descriptor, @@ -25870,7 +25940,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Autoscaler", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_DeleteBackendBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(179); + getDescriptor().getMessageTypes().get(180); internal_static_google_cloud_compute_v1_DeleteBackendBucketRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteBackendBucketRequest_descriptor, @@ -25878,7 +25948,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackendBucket", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(180); + getDescriptor().getMessageTypes().get(181); internal_static_google_cloud_compute_v1_DeleteBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteBackendServiceRequest_descriptor, @@ -25886,7 +25956,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackendService", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(181); + getDescriptor().getMessageTypes().get(182); internal_static_google_cloud_compute_v1_DeleteDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteDiskRequest_descriptor, @@ -25894,7 +25964,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Disk", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_DeleteExternalVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(182); + getDescriptor().getMessageTypes().get(183); internal_static_google_cloud_compute_v1_DeleteExternalVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteExternalVpnGatewayRequest_descriptor, @@ -25902,7 +25972,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExternalVpnGateway", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(183); + getDescriptor().getMessageTypes().get(184); internal_static_google_cloud_compute_v1_DeleteFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteFirewallPolicyRequest_descriptor, @@ -25910,7 +25980,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteFirewallRequest_descriptor = - getDescriptor().getMessageTypes().get(184); + getDescriptor().getMessageTypes().get(185); internal_static_google_cloud_compute_v1_DeleteFirewallRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteFirewallRequest_descriptor, @@ -25918,7 +25988,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Firewall", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteForwardingRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(185); + getDescriptor().getMessageTypes().get(186); internal_static_google_cloud_compute_v1_DeleteForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteForwardingRuleRequest_descriptor, @@ -25926,7 +25996,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ForwardingRule", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteGlobalAddressRequest_descriptor = - getDescriptor().getMessageTypes().get(186); + getDescriptor().getMessageTypes().get(187); internal_static_google_cloud_compute_v1_DeleteGlobalAddressRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteGlobalAddressRequest_descriptor, @@ -25934,7 +26004,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Address", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteGlobalForwardingRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(187); + getDescriptor().getMessageTypes().get(188); internal_static_google_cloud_compute_v1_DeleteGlobalForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteGlobalForwardingRuleRequest_descriptor, @@ -25942,7 +26012,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ForwardingRule", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteGlobalNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(188); + getDescriptor().getMessageTypes().get(189); internal_static_google_cloud_compute_v1_DeleteGlobalNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteGlobalNetworkEndpointGroupRequest_descriptor, @@ -25950,7 +26020,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkEndpointGroup", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteGlobalOperationRequest_descriptor = - getDescriptor().getMessageTypes().get(189); + getDescriptor().getMessageTypes().get(190); internal_static_google_cloud_compute_v1_DeleteGlobalOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteGlobalOperationRequest_descriptor, @@ -25958,13 +26028,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Operation", "Project", }); internal_static_google_cloud_compute_v1_DeleteGlobalOperationResponse_descriptor = - getDescriptor().getMessageTypes().get(190); + getDescriptor().getMessageTypes().get(191); internal_static_google_cloud_compute_v1_DeleteGlobalOperationResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteGlobalOperationResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_compute_v1_DeleteGlobalOrganizationOperationRequest_descriptor = - getDescriptor().getMessageTypes().get(191); + getDescriptor().getMessageTypes().get(192); internal_static_google_cloud_compute_v1_DeleteGlobalOrganizationOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteGlobalOrganizationOperationRequest_descriptor, @@ -25972,13 +26042,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Operation", "ParentId", }); internal_static_google_cloud_compute_v1_DeleteGlobalOrganizationOperationResponse_descriptor = - getDescriptor().getMessageTypes().get(192); + getDescriptor().getMessageTypes().get(193); internal_static_google_cloud_compute_v1_DeleteGlobalOrganizationOperationResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteGlobalOrganizationOperationResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_compute_v1_DeleteGlobalPublicDelegatedPrefixeRequest_descriptor = - getDescriptor().getMessageTypes().get(193); + getDescriptor().getMessageTypes().get(194); internal_static_google_cloud_compute_v1_DeleteGlobalPublicDelegatedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteGlobalPublicDelegatedPrefixeRequest_descriptor, @@ -25986,7 +26056,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PublicDelegatedPrefix", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteHealthCheckRequest_descriptor = - getDescriptor().getMessageTypes().get(194); + getDescriptor().getMessageTypes().get(195); internal_static_google_cloud_compute_v1_DeleteHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteHealthCheckRequest_descriptor, @@ -25994,7 +26064,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HealthCheck", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteImageRequest_descriptor = - getDescriptor().getMessageTypes().get(195); + getDescriptor().getMessageTypes().get(196); internal_static_google_cloud_compute_v1_DeleteImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteImageRequest_descriptor, @@ -26002,7 +26072,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Image", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(196); + getDescriptor().getMessageTypes().get(197); internal_static_google_cloud_compute_v1_DeleteInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteInstanceGroupManagerRequest_descriptor, @@ -26010,7 +26080,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceGroupManager", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_DeleteInstanceGroupManagerResizeRequestRequest_descriptor = - getDescriptor().getMessageTypes().get(197); + getDescriptor().getMessageTypes().get(198); internal_static_google_cloud_compute_v1_DeleteInstanceGroupManagerResizeRequestRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteInstanceGroupManagerResizeRequestRequest_descriptor, @@ -26018,7 +26088,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceGroupManager", "Project", "RequestId", "ResizeRequest", "Zone", }); internal_static_google_cloud_compute_v1_DeleteInstanceGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(198); + getDescriptor().getMessageTypes().get(199); internal_static_google_cloud_compute_v1_DeleteInstanceGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteInstanceGroupRequest_descriptor, @@ -26026,7 +26096,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceGroup", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_DeleteInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(199); + getDescriptor().getMessageTypes().get(200); internal_static_google_cloud_compute_v1_DeleteInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteInstanceRequest_descriptor, @@ -26034,7 +26104,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Instance", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_DeleteInstanceTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(200); + getDescriptor().getMessageTypes().get(201); internal_static_google_cloud_compute_v1_DeleteInstanceTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteInstanceTemplateRequest_descriptor, @@ -26042,7 +26112,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceTemplate", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteInstancesInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(201); + getDescriptor().getMessageTypes().get(202); internal_static_google_cloud_compute_v1_DeleteInstancesInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteInstancesInstanceGroupManagerRequest_descriptor, @@ -26054,7 +26124,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Zone", }); internal_static_google_cloud_compute_v1_DeleteInstancesRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(202); + getDescriptor().getMessageTypes().get(203); internal_static_google_cloud_compute_v1_DeleteInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteInstancesRegionInstanceGroupManagerRequest_descriptor, @@ -26066,7 +26136,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequestId", }); internal_static_google_cloud_compute_v1_DeleteInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(203); + getDescriptor().getMessageTypes().get(204); internal_static_google_cloud_compute_v1_DeleteInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteInstantSnapshotRequest_descriptor, @@ -26074,7 +26144,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstantSnapshot", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_DeleteInterconnectAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(204); + getDescriptor().getMessageTypes().get(205); internal_static_google_cloud_compute_v1_DeleteInterconnectAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteInterconnectAttachmentRequest_descriptor, @@ -26082,7 +26152,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InterconnectAttachment", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteInterconnectRequest_descriptor = - getDescriptor().getMessageTypes().get(205); + getDescriptor().getMessageTypes().get(206); internal_static_google_cloud_compute_v1_DeleteInterconnectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteInterconnectRequest_descriptor, @@ -26090,7 +26160,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Interconnect", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteLicenseRequest_descriptor = - getDescriptor().getMessageTypes().get(206); + getDescriptor().getMessageTypes().get(207); internal_static_google_cloud_compute_v1_DeleteLicenseRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteLicenseRequest_descriptor, @@ -26098,7 +26168,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "License", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteMachineImageRequest_descriptor = - getDescriptor().getMessageTypes().get(207); + getDescriptor().getMessageTypes().get(208); internal_static_google_cloud_compute_v1_DeleteMachineImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteMachineImageRequest_descriptor, @@ -26106,7 +26176,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MachineImage", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteNetworkAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(208); + getDescriptor().getMessageTypes().get(209); internal_static_google_cloud_compute_v1_DeleteNetworkAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteNetworkAttachmentRequest_descriptor, @@ -26114,7 +26184,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkAttachment", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteNetworkEdgeSecurityServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(209); + getDescriptor().getMessageTypes().get(210); internal_static_google_cloud_compute_v1_DeleteNetworkEdgeSecurityServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteNetworkEdgeSecurityServiceRequest_descriptor, @@ -26122,7 +26192,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkEdgeSecurityService", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(210); + getDescriptor().getMessageTypes().get(211); internal_static_google_cloud_compute_v1_DeleteNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteNetworkEndpointGroupRequest_descriptor, @@ -26130,7 +26200,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkEndpointGroup", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_DeleteNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(211); + getDescriptor().getMessageTypes().get(212); internal_static_google_cloud_compute_v1_DeleteNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteNetworkFirewallPolicyRequest_descriptor, @@ -26138,7 +26208,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteNetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(212); + getDescriptor().getMessageTypes().get(213); internal_static_google_cloud_compute_v1_DeleteNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteNetworkRequest_descriptor, @@ -26146,7 +26216,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Network", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteNodeGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(213); + getDescriptor().getMessageTypes().get(214); internal_static_google_cloud_compute_v1_DeleteNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteNodeGroupRequest_descriptor, @@ -26154,7 +26224,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NodeGroup", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_DeleteNodeTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(214); + getDescriptor().getMessageTypes().get(215); internal_static_google_cloud_compute_v1_DeleteNodeTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteNodeTemplateRequest_descriptor, @@ -26162,7 +26232,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NodeTemplate", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteNodesNodeGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(215); + getDescriptor().getMessageTypes().get(216); internal_static_google_cloud_compute_v1_DeleteNodesNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteNodesNodeGroupRequest_descriptor, @@ -26170,7 +26240,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NodeGroup", "NodeGroupsDeleteNodesRequestResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_DeletePacketMirroringRequest_descriptor = - getDescriptor().getMessageTypes().get(216); + getDescriptor().getMessageTypes().get(217); internal_static_google_cloud_compute_v1_DeletePacketMirroringRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeletePacketMirroringRequest_descriptor, @@ -26178,7 +26248,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PacketMirroring", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeletePerInstanceConfigsInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(217); + getDescriptor().getMessageTypes().get(218); internal_static_google_cloud_compute_v1_DeletePerInstanceConfigsInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeletePerInstanceConfigsInstanceGroupManagerRequest_descriptor, @@ -26189,7 +26259,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Zone", }); internal_static_google_cloud_compute_v1_DeletePerInstanceConfigsRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(218); + getDescriptor().getMessageTypes().get(219); internal_static_google_cloud_compute_v1_DeletePerInstanceConfigsRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeletePerInstanceConfigsRegionInstanceGroupManagerRequest_descriptor, @@ -26200,7 +26270,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RegionInstanceGroupManagerDeleteInstanceConfigReqResource", }); internal_static_google_cloud_compute_v1_DeletePublicAdvertisedPrefixeRequest_descriptor = - getDescriptor().getMessageTypes().get(219); + getDescriptor().getMessageTypes().get(220); internal_static_google_cloud_compute_v1_DeletePublicAdvertisedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeletePublicAdvertisedPrefixeRequest_descriptor, @@ -26208,7 +26278,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PublicAdvertisedPrefix", "RequestId", }); internal_static_google_cloud_compute_v1_DeletePublicDelegatedPrefixeRequest_descriptor = - getDescriptor().getMessageTypes().get(220); + getDescriptor().getMessageTypes().get(221); internal_static_google_cloud_compute_v1_DeletePublicDelegatedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeletePublicDelegatedPrefixeRequest_descriptor, @@ -26216,7 +26286,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PublicDelegatedPrefix", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteRegionAutoscalerRequest_descriptor = - getDescriptor().getMessageTypes().get(221); + getDescriptor().getMessageTypes().get(222); internal_static_google_cloud_compute_v1_DeleteRegionAutoscalerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionAutoscalerRequest_descriptor, @@ -26224,7 +26294,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Autoscaler", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteRegionBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(222); + getDescriptor().getMessageTypes().get(223); internal_static_google_cloud_compute_v1_DeleteRegionBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionBackendServiceRequest_descriptor, @@ -26232,7 +26302,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackendService", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(223); + getDescriptor().getMessageTypes().get(224); internal_static_google_cloud_compute_v1_DeleteRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionDiskRequest_descriptor, @@ -26240,7 +26310,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Disk", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteRegionHealthCheckRequest_descriptor = - getDescriptor().getMessageTypes().get(224); + getDescriptor().getMessageTypes().get(225); internal_static_google_cloud_compute_v1_DeleteRegionHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionHealthCheckRequest_descriptor, @@ -26248,7 +26318,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HealthCheck", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteRegionHealthCheckServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(225); + getDescriptor().getMessageTypes().get(226); internal_static_google_cloud_compute_v1_DeleteRegionHealthCheckServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionHealthCheckServiceRequest_descriptor, @@ -26256,7 +26326,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HealthCheckService", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(226); + getDescriptor().getMessageTypes().get(227); internal_static_google_cloud_compute_v1_DeleteRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionInstanceGroupManagerRequest_descriptor, @@ -26264,7 +26334,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceGroupManager", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteRegionInstanceTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(227); + getDescriptor().getMessageTypes().get(228); internal_static_google_cloud_compute_v1_DeleteRegionInstanceTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionInstanceTemplateRequest_descriptor, @@ -26272,7 +26342,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceTemplate", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteRegionInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(228); + getDescriptor().getMessageTypes().get(229); internal_static_google_cloud_compute_v1_DeleteRegionInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionInstantSnapshotRequest_descriptor, @@ -26280,7 +26350,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstantSnapshot", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteRegionNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(229); + getDescriptor().getMessageTypes().get(230); internal_static_google_cloud_compute_v1_DeleteRegionNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionNetworkEndpointGroupRequest_descriptor, @@ -26288,7 +26358,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkEndpointGroup", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(230); + getDescriptor().getMessageTypes().get(231); internal_static_google_cloud_compute_v1_DeleteRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionNetworkFirewallPolicyRequest_descriptor, @@ -26296,7 +26366,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteRegionNotificationEndpointRequest_descriptor = - getDescriptor().getMessageTypes().get(231); + getDescriptor().getMessageTypes().get(232); internal_static_google_cloud_compute_v1_DeleteRegionNotificationEndpointRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionNotificationEndpointRequest_descriptor, @@ -26304,7 +26374,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NotificationEndpoint", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteRegionOperationRequest_descriptor = - getDescriptor().getMessageTypes().get(232); + getDescriptor().getMessageTypes().get(233); internal_static_google_cloud_compute_v1_DeleteRegionOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionOperationRequest_descriptor, @@ -26312,13 +26382,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Operation", "Project", "Region", }); internal_static_google_cloud_compute_v1_DeleteRegionOperationResponse_descriptor = - getDescriptor().getMessageTypes().get(233); + getDescriptor().getMessageTypes().get(234); internal_static_google_cloud_compute_v1_DeleteRegionOperationResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionOperationResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_compute_v1_DeleteRegionSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(234); + getDescriptor().getMessageTypes().get(235); internal_static_google_cloud_compute_v1_DeleteRegionSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionSecurityPolicyRequest_descriptor, @@ -26326,7 +26396,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "SecurityPolicy", }); internal_static_google_cloud_compute_v1_DeleteRegionSslCertificateRequest_descriptor = - getDescriptor().getMessageTypes().get(235); + getDescriptor().getMessageTypes().get(236); internal_static_google_cloud_compute_v1_DeleteRegionSslCertificateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionSslCertificateRequest_descriptor, @@ -26334,7 +26404,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "SslCertificate", }); internal_static_google_cloud_compute_v1_DeleteRegionSslPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(236); + getDescriptor().getMessageTypes().get(237); internal_static_google_cloud_compute_v1_DeleteRegionSslPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionSslPolicyRequest_descriptor, @@ -26342,7 +26412,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "SslPolicy", }); internal_static_google_cloud_compute_v1_DeleteRegionTargetHttpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(237); + getDescriptor().getMessageTypes().get(238); internal_static_google_cloud_compute_v1_DeleteRegionTargetHttpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionTargetHttpProxyRequest_descriptor, @@ -26350,7 +26420,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "TargetHttpProxy", }); internal_static_google_cloud_compute_v1_DeleteRegionTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(238); + getDescriptor().getMessageTypes().get(239); internal_static_google_cloud_compute_v1_DeleteRegionTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionTargetHttpsProxyRequest_descriptor, @@ -26358,7 +26428,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "TargetHttpsProxy", }); internal_static_google_cloud_compute_v1_DeleteRegionTargetTcpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(239); + getDescriptor().getMessageTypes().get(240); internal_static_google_cloud_compute_v1_DeleteRegionTargetTcpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionTargetTcpProxyRequest_descriptor, @@ -26366,7 +26436,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "TargetTcpProxy", }); internal_static_google_cloud_compute_v1_DeleteRegionUrlMapRequest_descriptor = - getDescriptor().getMessageTypes().get(240); + getDescriptor().getMessageTypes().get(241); internal_static_google_cloud_compute_v1_DeleteRegionUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRegionUrlMapRequest_descriptor, @@ -26374,7 +26444,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "UrlMap", }); internal_static_google_cloud_compute_v1_DeleteReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(241); + getDescriptor().getMessageTypes().get(242); internal_static_google_cloud_compute_v1_DeleteReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteReservationRequest_descriptor, @@ -26382,7 +26452,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", "Reservation", "Zone", }); internal_static_google_cloud_compute_v1_DeleteResourcePolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(242); + getDescriptor().getMessageTypes().get(243); internal_static_google_cloud_compute_v1_DeleteResourcePolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteResourcePolicyRequest_descriptor, @@ -26390,7 +26460,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "ResourcePolicy", }); internal_static_google_cloud_compute_v1_DeleteRouteRequest_descriptor = - getDescriptor().getMessageTypes().get(243); + getDescriptor().getMessageTypes().get(244); internal_static_google_cloud_compute_v1_DeleteRouteRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRouteRequest_descriptor, @@ -26398,7 +26468,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", "Route", }); internal_static_google_cloud_compute_v1_DeleteRouterRequest_descriptor = - getDescriptor().getMessageTypes().get(244); + getDescriptor().getMessageTypes().get(245); internal_static_google_cloud_compute_v1_DeleteRouterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteRouterRequest_descriptor, @@ -26406,7 +26476,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "Router", }); internal_static_google_cloud_compute_v1_DeleteSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(245); + getDescriptor().getMessageTypes().get(246); internal_static_google_cloud_compute_v1_DeleteSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteSecurityPolicyRequest_descriptor, @@ -26414,7 +26484,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", "SecurityPolicy", }); internal_static_google_cloud_compute_v1_DeleteServiceAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(246); + getDescriptor().getMessageTypes().get(247); internal_static_google_cloud_compute_v1_DeleteServiceAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteServiceAttachmentRequest_descriptor, @@ -26422,7 +26492,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "ServiceAttachment", }); internal_static_google_cloud_compute_v1_DeleteSignedUrlKeyBackendBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(247); + getDescriptor().getMessageTypes().get(248); internal_static_google_cloud_compute_v1_DeleteSignedUrlKeyBackendBucketRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteSignedUrlKeyBackendBucketRequest_descriptor, @@ -26430,7 +26500,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackendBucket", "KeyName", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteSignedUrlKeyBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(248); + getDescriptor().getMessageTypes().get(249); internal_static_google_cloud_compute_v1_DeleteSignedUrlKeyBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteSignedUrlKeyBackendServiceRequest_descriptor, @@ -26438,7 +26508,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackendService", "KeyName", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeleteSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(249); + getDescriptor().getMessageTypes().get(250); internal_static_google_cloud_compute_v1_DeleteSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteSnapshotRequest_descriptor, @@ -26446,7 +26516,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", "Snapshot", }); internal_static_google_cloud_compute_v1_DeleteSslCertificateRequest_descriptor = - getDescriptor().getMessageTypes().get(250); + getDescriptor().getMessageTypes().get(251); internal_static_google_cloud_compute_v1_DeleteSslCertificateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteSslCertificateRequest_descriptor, @@ -26454,7 +26524,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", "SslCertificate", }); internal_static_google_cloud_compute_v1_DeleteSslPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(251); + getDescriptor().getMessageTypes().get(252); internal_static_google_cloud_compute_v1_DeleteSslPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteSslPolicyRequest_descriptor, @@ -26462,7 +26532,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", "SslPolicy", }); internal_static_google_cloud_compute_v1_DeleteStoragePoolRequest_descriptor = - getDescriptor().getMessageTypes().get(252); + getDescriptor().getMessageTypes().get(253); internal_static_google_cloud_compute_v1_DeleteStoragePoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteStoragePoolRequest_descriptor, @@ -26470,7 +26540,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", "StoragePool", "Zone", }); internal_static_google_cloud_compute_v1_DeleteSubnetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(253); + getDescriptor().getMessageTypes().get(254); internal_static_google_cloud_compute_v1_DeleteSubnetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteSubnetworkRequest_descriptor, @@ -26478,7 +26548,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "Subnetwork", }); internal_static_google_cloud_compute_v1_DeleteTargetGrpcProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(254); + getDescriptor().getMessageTypes().get(255); internal_static_google_cloud_compute_v1_DeleteTargetGrpcProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteTargetGrpcProxyRequest_descriptor, @@ -26486,7 +26556,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", "TargetGrpcProxy", }); internal_static_google_cloud_compute_v1_DeleteTargetHttpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(255); + getDescriptor().getMessageTypes().get(256); internal_static_google_cloud_compute_v1_DeleteTargetHttpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteTargetHttpProxyRequest_descriptor, @@ -26494,7 +26564,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", "TargetHttpProxy", }); internal_static_google_cloud_compute_v1_DeleteTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(256); + getDescriptor().getMessageTypes().get(257); internal_static_google_cloud_compute_v1_DeleteTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteTargetHttpsProxyRequest_descriptor, @@ -26502,7 +26572,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", "TargetHttpsProxy", }); internal_static_google_cloud_compute_v1_DeleteTargetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(257); + getDescriptor().getMessageTypes().get(258); internal_static_google_cloud_compute_v1_DeleteTargetInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteTargetInstanceRequest_descriptor, @@ -26510,7 +26580,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", "TargetInstance", "Zone", }); internal_static_google_cloud_compute_v1_DeleteTargetPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(258); + getDescriptor().getMessageTypes().get(259); internal_static_google_cloud_compute_v1_DeleteTargetPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteTargetPoolRequest_descriptor, @@ -26518,7 +26588,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "TargetPool", }); internal_static_google_cloud_compute_v1_DeleteTargetSslProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(259); + getDescriptor().getMessageTypes().get(260); internal_static_google_cloud_compute_v1_DeleteTargetSslProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteTargetSslProxyRequest_descriptor, @@ -26526,7 +26596,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", "TargetSslProxy", }); internal_static_google_cloud_compute_v1_DeleteTargetTcpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(260); + getDescriptor().getMessageTypes().get(261); internal_static_google_cloud_compute_v1_DeleteTargetTcpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteTargetTcpProxyRequest_descriptor, @@ -26534,7 +26604,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", "TargetTcpProxy", }); internal_static_google_cloud_compute_v1_DeleteTargetVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(261); + getDescriptor().getMessageTypes().get(262); internal_static_google_cloud_compute_v1_DeleteTargetVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteTargetVpnGatewayRequest_descriptor, @@ -26542,7 +26612,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "TargetVpnGateway", }); internal_static_google_cloud_compute_v1_DeleteUrlMapRequest_descriptor = - getDescriptor().getMessageTypes().get(262); + getDescriptor().getMessageTypes().get(263); internal_static_google_cloud_compute_v1_DeleteUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteUrlMapRequest_descriptor, @@ -26550,7 +26620,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", "UrlMap", }); internal_static_google_cloud_compute_v1_DeleteVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(263); + getDescriptor().getMessageTypes().get(264); internal_static_google_cloud_compute_v1_DeleteVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteVpnGatewayRequest_descriptor, @@ -26558,7 +26628,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "VpnGateway", }); internal_static_google_cloud_compute_v1_DeleteVpnTunnelRequest_descriptor = - getDescriptor().getMessageTypes().get(264); + getDescriptor().getMessageTypes().get(265); internal_static_google_cloud_compute_v1_DeleteVpnTunnelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteVpnTunnelRequest_descriptor, @@ -26566,7 +26636,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "RequestId", "VpnTunnel", }); internal_static_google_cloud_compute_v1_DeleteZoneOperationRequest_descriptor = - getDescriptor().getMessageTypes().get(265); + getDescriptor().getMessageTypes().get(266); internal_static_google_cloud_compute_v1_DeleteZoneOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteZoneOperationRequest_descriptor, @@ -26574,13 +26644,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Operation", "Project", "Zone", }); internal_static_google_cloud_compute_v1_DeleteZoneOperationResponse_descriptor = - getDescriptor().getMessageTypes().get(266); + getDescriptor().getMessageTypes().get(267); internal_static_google_cloud_compute_v1_DeleteZoneOperationResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeleteZoneOperationResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_compute_v1_Denied_descriptor = - getDescriptor().getMessageTypes().get(267); + getDescriptor().getMessageTypes().get(268); internal_static_google_cloud_compute_v1_Denied_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Denied_descriptor, @@ -26588,7 +26658,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IPProtocol", "Ports", }); internal_static_google_cloud_compute_v1_DeprecateImageRequest_descriptor = - getDescriptor().getMessageTypes().get(268); + getDescriptor().getMessageTypes().get(269); internal_static_google_cloud_compute_v1_DeprecateImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeprecateImageRequest_descriptor, @@ -26596,7 +26666,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DeprecationStatusResource", "Image", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DeprecationStatus_descriptor = - getDescriptor().getMessageTypes().get(269); + getDescriptor().getMessageTypes().get(270); internal_static_google_cloud_compute_v1_DeprecationStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DeprecationStatus_descriptor, @@ -26604,7 +26674,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Deleted", "Deprecated", "Obsolete", "Replacement", "State", }); internal_static_google_cloud_compute_v1_DetachDiskInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(270); + getDescriptor().getMessageTypes().get(271); internal_static_google_cloud_compute_v1_DetachDiskInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DetachDiskInstanceRequest_descriptor, @@ -26612,7 +26682,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DeviceName", "Instance", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(271); + getDescriptor().getMessageTypes().get(272); internal_static_google_cloud_compute_v1_DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest_descriptor, @@ -26623,7 +26693,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequestId", }); internal_static_google_cloud_compute_v1_DetachNetworkEndpointsNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(272); + getDescriptor().getMessageTypes().get(273); internal_static_google_cloud_compute_v1_DetachNetworkEndpointsNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DetachNetworkEndpointsNetworkEndpointGroupRequest_descriptor, @@ -26635,7 +26705,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Zone", }); internal_static_google_cloud_compute_v1_DetachNetworkEndpointsRegionNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(273); + getDescriptor().getMessageTypes().get(274); internal_static_google_cloud_compute_v1_DetachNetworkEndpointsRegionNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DetachNetworkEndpointsRegionNetworkEndpointGroupRequest_descriptor, @@ -26647,7 +26717,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequestId", }); internal_static_google_cloud_compute_v1_DisableXpnHostProjectRequest_descriptor = - getDescriptor().getMessageTypes().get(274); + getDescriptor().getMessageTypes().get(275); internal_static_google_cloud_compute_v1_DisableXpnHostProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DisableXpnHostProjectRequest_descriptor, @@ -26655,7 +26725,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", }); internal_static_google_cloud_compute_v1_DisableXpnResourceProjectRequest_descriptor = - getDescriptor().getMessageTypes().get(275); + getDescriptor().getMessageTypes().get(276); internal_static_google_cloud_compute_v1_DisableXpnResourceProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DisableXpnResourceProjectRequest_descriptor, @@ -26663,7 +26733,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "ProjectsDisableXpnResourceRequestResource", "RequestId", }); internal_static_google_cloud_compute_v1_Disk_descriptor = - getDescriptor().getMessageTypes().get(276); + getDescriptor().getMessageTypes().get(277); internal_static_google_cloud_compute_v1_Disk_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Disk_descriptor, @@ -26736,7 +26806,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_DiskAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(277); + getDescriptor().getMessageTypes().get(278); internal_static_google_cloud_compute_v1_DiskAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DiskAggregatedList_descriptor, @@ -26754,7 +26824,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_DiskAsyncReplication_descriptor = - getDescriptor().getMessageTypes().get(278); + getDescriptor().getMessageTypes().get(279); internal_static_google_cloud_compute_v1_DiskAsyncReplication_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DiskAsyncReplication_descriptor, @@ -26762,7 +26832,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConsistencyGroupPolicy", "ConsistencyGroupPolicyId", "Disk", "DiskId", }); internal_static_google_cloud_compute_v1_DiskAsyncReplicationList_descriptor = - getDescriptor().getMessageTypes().get(279); + getDescriptor().getMessageTypes().get(280); internal_static_google_cloud_compute_v1_DiskAsyncReplicationList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DiskAsyncReplicationList_descriptor, @@ -26770,7 +26840,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AsyncReplicationDisk", }); internal_static_google_cloud_compute_v1_DiskInstantiationConfig_descriptor = - getDescriptor().getMessageTypes().get(280); + getDescriptor().getMessageTypes().get(281); internal_static_google_cloud_compute_v1_DiskInstantiationConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DiskInstantiationConfig_descriptor, @@ -26778,7 +26848,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AutoDelete", "CustomImage", "DeviceName", "InstantiateFrom", }); internal_static_google_cloud_compute_v1_DiskList_descriptor = - getDescriptor().getMessageTypes().get(281); + getDescriptor().getMessageTypes().get(282); internal_static_google_cloud_compute_v1_DiskList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DiskList_descriptor, @@ -26786,7 +26856,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_DiskMoveRequest_descriptor = - getDescriptor().getMessageTypes().get(282); + getDescriptor().getMessageTypes().get(283); internal_static_google_cloud_compute_v1_DiskMoveRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DiskMoveRequest_descriptor, @@ -26794,7 +26864,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DestinationZone", "TargetDisk", }); internal_static_google_cloud_compute_v1_DiskParams_descriptor = - getDescriptor().getMessageTypes().get(283); + getDescriptor().getMessageTypes().get(284); internal_static_google_cloud_compute_v1_DiskParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DiskParams_descriptor, @@ -26810,7 +26880,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_DiskResourceStatus_descriptor = - getDescriptor().getMessageTypes().get(284); + getDescriptor().getMessageTypes().get(285); internal_static_google_cloud_compute_v1_DiskResourceStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DiskResourceStatus_descriptor, @@ -26828,7 +26898,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_DiskResourceStatusAsyncReplicationStatus_descriptor = - getDescriptor().getMessageTypes().get(285); + getDescriptor().getMessageTypes().get(286); internal_static_google_cloud_compute_v1_DiskResourceStatusAsyncReplicationStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DiskResourceStatusAsyncReplicationStatus_descriptor, @@ -26836,7 +26906,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "State", }); internal_static_google_cloud_compute_v1_DiskType_descriptor = - getDescriptor().getMessageTypes().get(286); + getDescriptor().getMessageTypes().get(287); internal_static_google_cloud_compute_v1_DiskType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DiskType_descriptor, @@ -26854,7 +26924,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Zone", }); internal_static_google_cloud_compute_v1_DiskTypeAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(287); + getDescriptor().getMessageTypes().get(288); internal_static_google_cloud_compute_v1_DiskTypeAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DiskTypeAggregatedList_descriptor, @@ -26872,7 +26942,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_DiskTypeList_descriptor = - getDescriptor().getMessageTypes().get(288); + getDescriptor().getMessageTypes().get(289); internal_static_google_cloud_compute_v1_DiskTypeList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DiskTypeList_descriptor, @@ -26880,7 +26950,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_DiskTypesScopedList_descriptor = - getDescriptor().getMessageTypes().get(289); + getDescriptor().getMessageTypes().get(290); internal_static_google_cloud_compute_v1_DiskTypesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DiskTypesScopedList_descriptor, @@ -26888,7 +26958,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DiskTypes", "Warning", }); internal_static_google_cloud_compute_v1_DisksAddResourcePoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(290); + getDescriptor().getMessageTypes().get(291); internal_static_google_cloud_compute_v1_DisksAddResourcePoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DisksAddResourcePoliciesRequest_descriptor, @@ -26896,7 +26966,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ResourcePolicies", }); internal_static_google_cloud_compute_v1_DisksRemoveResourcePoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(291); + getDescriptor().getMessageTypes().get(292); internal_static_google_cloud_compute_v1_DisksRemoveResourcePoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DisksRemoveResourcePoliciesRequest_descriptor, @@ -26904,7 +26974,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ResourcePolicies", }); internal_static_google_cloud_compute_v1_DisksResizeRequest_descriptor = - getDescriptor().getMessageTypes().get(292); + getDescriptor().getMessageTypes().get(293); internal_static_google_cloud_compute_v1_DisksResizeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DisksResizeRequest_descriptor, @@ -26912,7 +26982,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SizeGb", }); internal_static_google_cloud_compute_v1_DisksScopedList_descriptor = - getDescriptor().getMessageTypes().get(293); + getDescriptor().getMessageTypes().get(294); internal_static_google_cloud_compute_v1_DisksScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DisksScopedList_descriptor, @@ -26920,7 +26990,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Disks", "Warning", }); internal_static_google_cloud_compute_v1_DisksStartAsyncReplicationRequest_descriptor = - getDescriptor().getMessageTypes().get(294); + getDescriptor().getMessageTypes().get(295); internal_static_google_cloud_compute_v1_DisksStartAsyncReplicationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DisksStartAsyncReplicationRequest_descriptor, @@ -26928,7 +26998,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AsyncSecondaryDisk", }); internal_static_google_cloud_compute_v1_DisksStopGroupAsyncReplicationResource_descriptor = - getDescriptor().getMessageTypes().get(295); + getDescriptor().getMessageTypes().get(296); internal_static_google_cloud_compute_v1_DisksStopGroupAsyncReplicationResource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DisksStopGroupAsyncReplicationResource_descriptor, @@ -26936,7 +27006,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ResourcePolicy", }); internal_static_google_cloud_compute_v1_DisplayDevice_descriptor = - getDescriptor().getMessageTypes().get(296); + getDescriptor().getMessageTypes().get(297); internal_static_google_cloud_compute_v1_DisplayDevice_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DisplayDevice_descriptor, @@ -26944,7 +27014,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableDisplay", }); internal_static_google_cloud_compute_v1_DistributionPolicy_descriptor = - getDescriptor().getMessageTypes().get(297); + getDescriptor().getMessageTypes().get(298); internal_static_google_cloud_compute_v1_DistributionPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DistributionPolicy_descriptor, @@ -26952,7 +27022,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TargetShape", "Zones", }); internal_static_google_cloud_compute_v1_DistributionPolicyZoneConfiguration_descriptor = - getDescriptor().getMessageTypes().get(298); + getDescriptor().getMessageTypes().get(299); internal_static_google_cloud_compute_v1_DistributionPolicyZoneConfiguration_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_DistributionPolicyZoneConfiguration_descriptor, @@ -26960,7 +27030,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Zone", }); internal_static_google_cloud_compute_v1_Duration_descriptor = - getDescriptor().getMessageTypes().get(299); + getDescriptor().getMessageTypes().get(300); internal_static_google_cloud_compute_v1_Duration_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Duration_descriptor, @@ -26968,7 +27038,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Nanos", "Seconds", }); internal_static_google_cloud_compute_v1_EnableXpnHostProjectRequest_descriptor = - getDescriptor().getMessageTypes().get(300); + getDescriptor().getMessageTypes().get(301); internal_static_google_cloud_compute_v1_EnableXpnHostProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_EnableXpnHostProjectRequest_descriptor, @@ -26976,7 +27046,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "RequestId", }); internal_static_google_cloud_compute_v1_EnableXpnResourceProjectRequest_descriptor = - getDescriptor().getMessageTypes().get(301); + getDescriptor().getMessageTypes().get(302); internal_static_google_cloud_compute_v1_EnableXpnResourceProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_EnableXpnResourceProjectRequest_descriptor, @@ -26984,7 +27054,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "ProjectsEnableXpnResourceRequestResource", "RequestId", }); internal_static_google_cloud_compute_v1_Error_descriptor = - getDescriptor().getMessageTypes().get(302); + getDescriptor().getMessageTypes().get(303); internal_static_google_cloud_compute_v1_Error_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Error_descriptor, @@ -26992,7 +27062,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Errors", }); internal_static_google_cloud_compute_v1_ErrorDetails_descriptor = - getDescriptor().getMessageTypes().get(303); + getDescriptor().getMessageTypes().get(304); internal_static_google_cloud_compute_v1_ErrorDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ErrorDetails_descriptor, @@ -27000,7 +27070,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ErrorInfo", "Help", "LocalizedMessage", "QuotaInfo", }); internal_static_google_cloud_compute_v1_ErrorInfo_descriptor = - getDescriptor().getMessageTypes().get(304); + getDescriptor().getMessageTypes().get(305); internal_static_google_cloud_compute_v1_ErrorInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ErrorInfo_descriptor, @@ -27016,7 +27086,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_Errors_descriptor = - getDescriptor().getMessageTypes().get(305); + getDescriptor().getMessageTypes().get(306); internal_static_google_cloud_compute_v1_Errors_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Errors_descriptor, @@ -27024,7 +27094,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Code", "ErrorDetails", "Location", "Message", }); internal_static_google_cloud_compute_v1_ExchangedPeeringRoute_descriptor = - getDescriptor().getMessageTypes().get(306); + getDescriptor().getMessageTypes().get(307); internal_static_google_cloud_compute_v1_ExchangedPeeringRoute_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ExchangedPeeringRoute_descriptor, @@ -27032,7 +27102,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DestRange", "Imported", "NextHopRegion", "Priority", "Type", }); internal_static_google_cloud_compute_v1_ExchangedPeeringRoutesList_descriptor = - getDescriptor().getMessageTypes().get(307); + getDescriptor().getMessageTypes().get(308); internal_static_google_cloud_compute_v1_ExchangedPeeringRoutesList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ExchangedPeeringRoutesList_descriptor, @@ -27040,7 +27110,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_ExpandIpCidrRangeSubnetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(308); + getDescriptor().getMessageTypes().get(309); internal_static_google_cloud_compute_v1_ExpandIpCidrRangeSubnetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ExpandIpCidrRangeSubnetworkRequest_descriptor, @@ -27052,7 +27122,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SubnetworksExpandIpCidrRangeRequestResource", }); internal_static_google_cloud_compute_v1_Expr_descriptor = - getDescriptor().getMessageTypes().get(309); + getDescriptor().getMessageTypes().get(310); internal_static_google_cloud_compute_v1_Expr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Expr_descriptor, @@ -27060,7 +27130,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Description", "Expression", "Location", "Title", }); internal_static_google_cloud_compute_v1_ExternalVpnGateway_descriptor = - getDescriptor().getMessageTypes().get(310); + getDescriptor().getMessageTypes().get(311); internal_static_google_cloud_compute_v1_ExternalVpnGateway_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ExternalVpnGateway_descriptor, @@ -27087,7 +27157,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ExternalVpnGatewayInterface_descriptor = - getDescriptor().getMessageTypes().get(311); + getDescriptor().getMessageTypes().get(312); internal_static_google_cloud_compute_v1_ExternalVpnGatewayInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ExternalVpnGatewayInterface_descriptor, @@ -27095,7 +27165,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Id", "IpAddress", "Ipv6Address", }); internal_static_google_cloud_compute_v1_ExternalVpnGatewayList_descriptor = - getDescriptor().getMessageTypes().get(312); + getDescriptor().getMessageTypes().get(313); internal_static_google_cloud_compute_v1_ExternalVpnGatewayList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ExternalVpnGatewayList_descriptor, @@ -27103,7 +27173,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Etag", "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_FileContentBuffer_descriptor = - getDescriptor().getMessageTypes().get(313); + getDescriptor().getMessageTypes().get(314); internal_static_google_cloud_compute_v1_FileContentBuffer_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_FileContentBuffer_descriptor, @@ -27111,7 +27181,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Content", "FileType", }); internal_static_google_cloud_compute_v1_Firewall_descriptor = - getDescriptor().getMessageTypes().get(314); + getDescriptor().getMessageTypes().get(315); internal_static_google_cloud_compute_v1_Firewall_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Firewall_descriptor, @@ -27137,7 +27207,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TargetTags", }); internal_static_google_cloud_compute_v1_FirewallList_descriptor = - getDescriptor().getMessageTypes().get(315); + getDescriptor().getMessageTypes().get(316); internal_static_google_cloud_compute_v1_FirewallList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_FirewallList_descriptor, @@ -27145,7 +27215,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_FirewallLogConfig_descriptor = - getDescriptor().getMessageTypes().get(316); + getDescriptor().getMessageTypes().get(317); internal_static_google_cloud_compute_v1_FirewallLogConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_FirewallLogConfig_descriptor, @@ -27153,15 +27223,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Enable", "Metadata", }); internal_static_google_cloud_compute_v1_FirewallPoliciesListAssociationsResponse_descriptor = - getDescriptor().getMessageTypes().get(317); + getDescriptor().getMessageTypes().get(318); internal_static_google_cloud_compute_v1_FirewallPoliciesListAssociationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_FirewallPoliciesListAssociationsResponse_descriptor, new java.lang.String[] { "Associations", "Kind", }); + internal_static_google_cloud_compute_v1_FirewallPoliciesScopedList_descriptor = + getDescriptor().getMessageTypes().get(319); + internal_static_google_cloud_compute_v1_FirewallPoliciesScopedList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_compute_v1_FirewallPoliciesScopedList_descriptor, + new java.lang.String[] { + "FirewallPolicies", "Warning", + }); internal_static_google_cloud_compute_v1_FirewallPolicy_descriptor = - getDescriptor().getMessageTypes().get(318); + getDescriptor().getMessageTypes().get(320); internal_static_google_cloud_compute_v1_FirewallPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_FirewallPolicy_descriptor, @@ -27183,7 +27261,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ShortName", }); internal_static_google_cloud_compute_v1_FirewallPolicyAssociation_descriptor = - getDescriptor().getMessageTypes().get(319); + getDescriptor().getMessageTypes().get(321); internal_static_google_cloud_compute_v1_FirewallPolicyAssociation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_FirewallPolicyAssociation_descriptor, @@ -27191,7 +27269,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AttachmentTarget", "DisplayName", "FirewallPolicyId", "Name", "ShortName", }); internal_static_google_cloud_compute_v1_FirewallPolicyList_descriptor = - getDescriptor().getMessageTypes().get(320); + getDescriptor().getMessageTypes().get(322); internal_static_google_cloud_compute_v1_FirewallPolicyList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_FirewallPolicyList_descriptor, @@ -27199,7 +27277,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Id", "Items", "Kind", "NextPageToken", "Warning", }); internal_static_google_cloud_compute_v1_FirewallPolicyRule_descriptor = - getDescriptor().getMessageTypes().get(321); + getDescriptor().getMessageTypes().get(323); internal_static_google_cloud_compute_v1_FirewallPolicyRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_FirewallPolicyRule_descriptor, @@ -27221,7 +27299,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TlsInspect", }); internal_static_google_cloud_compute_v1_FirewallPolicyRuleMatcher_descriptor = - getDescriptor().getMessageTypes().get(322); + getDescriptor().getMessageTypes().get(324); internal_static_google_cloud_compute_v1_FirewallPolicyRuleMatcher_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_FirewallPolicyRuleMatcher_descriptor, @@ -27240,7 +27318,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SrcThreatIntelligences", }); internal_static_google_cloud_compute_v1_FirewallPolicyRuleMatcherLayer4Config_descriptor = - getDescriptor().getMessageTypes().get(323); + getDescriptor().getMessageTypes().get(325); internal_static_google_cloud_compute_v1_FirewallPolicyRuleMatcherLayer4Config_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_FirewallPolicyRuleMatcherLayer4Config_descriptor, @@ -27248,7 +27326,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IpProtocol", "Ports", }); internal_static_google_cloud_compute_v1_FirewallPolicyRuleSecureTag_descriptor = - getDescriptor().getMessageTypes().get(324); + getDescriptor().getMessageTypes().get(326); internal_static_google_cloud_compute_v1_FirewallPolicyRuleSecureTag_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_FirewallPolicyRuleSecureTag_descriptor, @@ -27256,7 +27334,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "State", }); internal_static_google_cloud_compute_v1_FixedOrPercent_descriptor = - getDescriptor().getMessageTypes().get(325); + getDescriptor().getMessageTypes().get(327); internal_static_google_cloud_compute_v1_FixedOrPercent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_FixedOrPercent_descriptor, @@ -27264,7 +27342,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Calculated", "Fixed", "Percent", }); internal_static_google_cloud_compute_v1_ForwardingRule_descriptor = - getDescriptor().getMessageTypes().get(326); + getDescriptor().getMessageTypes().get(328); internal_static_google_cloud_compute_v1_ForwardingRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ForwardingRule_descriptor, @@ -27314,7 +27392,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ForwardingRuleAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(327); + getDescriptor().getMessageTypes().get(329); internal_static_google_cloud_compute_v1_ForwardingRuleAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ForwardingRuleAggregatedList_descriptor, @@ -27332,7 +27410,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ForwardingRuleList_descriptor = - getDescriptor().getMessageTypes().get(328); + getDescriptor().getMessageTypes().get(330); internal_static_google_cloud_compute_v1_ForwardingRuleList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ForwardingRuleList_descriptor, @@ -27340,7 +27418,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_ForwardingRuleReference_descriptor = - getDescriptor().getMessageTypes().get(329); + getDescriptor().getMessageTypes().get(331); internal_static_google_cloud_compute_v1_ForwardingRuleReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ForwardingRuleReference_descriptor, @@ -27348,7 +27426,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ForwardingRule", }); internal_static_google_cloud_compute_v1_ForwardingRuleServiceDirectoryRegistration_descriptor = - getDescriptor().getMessageTypes().get(330); + getDescriptor().getMessageTypes().get(332); internal_static_google_cloud_compute_v1_ForwardingRuleServiceDirectoryRegistration_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ForwardingRuleServiceDirectoryRegistration_descriptor, @@ -27356,7 +27434,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Namespace", "Service", "ServiceDirectoryRegion", }); internal_static_google_cloud_compute_v1_ForwardingRulesScopedList_descriptor = - getDescriptor().getMessageTypes().get(331); + getDescriptor().getMessageTypes().get(333); internal_static_google_cloud_compute_v1_ForwardingRulesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ForwardingRulesScopedList_descriptor, @@ -27364,7 +27442,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ForwardingRules", "Warning", }); internal_static_google_cloud_compute_v1_GRPCHealthCheck_descriptor = - getDescriptor().getMessageTypes().get(332); + getDescriptor().getMessageTypes().get(334); internal_static_google_cloud_compute_v1_GRPCHealthCheck_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GRPCHealthCheck_descriptor, @@ -27372,7 +27450,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GrpcServiceName", "Port", "PortName", "PortSpecification", }); internal_static_google_cloud_compute_v1_GetAcceleratorTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(333); + getDescriptor().getMessageTypes().get(335); internal_static_google_cloud_compute_v1_GetAcceleratorTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetAcceleratorTypeRequest_descriptor, @@ -27380,7 +27458,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AcceleratorType", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetAddressRequest_descriptor = - getDescriptor().getMessageTypes().get(334); + getDescriptor().getMessageTypes().get(336); internal_static_google_cloud_compute_v1_GetAddressRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetAddressRequest_descriptor, @@ -27388,7 +27466,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Address", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetAssociationFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(335); + getDescriptor().getMessageTypes().get(337); internal_static_google_cloud_compute_v1_GetAssociationFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetAssociationFirewallPolicyRequest_descriptor, @@ -27396,7 +27474,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", "Name", }); internal_static_google_cloud_compute_v1_GetAssociationNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(336); + getDescriptor().getMessageTypes().get(338); internal_static_google_cloud_compute_v1_GetAssociationNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetAssociationNetworkFirewallPolicyRequest_descriptor, @@ -27404,7 +27482,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", "Name", "Project", }); internal_static_google_cloud_compute_v1_GetAssociationRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(337); + getDescriptor().getMessageTypes().get(339); internal_static_google_cloud_compute_v1_GetAssociationRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetAssociationRegionNetworkFirewallPolicyRequest_descriptor, @@ -27412,7 +27490,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", "Name", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetAutoscalerRequest_descriptor = - getDescriptor().getMessageTypes().get(338); + getDescriptor().getMessageTypes().get(340); internal_static_google_cloud_compute_v1_GetAutoscalerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetAutoscalerRequest_descriptor, @@ -27420,7 +27498,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Autoscaler", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetBackendBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(339); + getDescriptor().getMessageTypes().get(341); internal_static_google_cloud_compute_v1_GetBackendBucketRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetBackendBucketRequest_descriptor, @@ -27428,7 +27506,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackendBucket", "Project", }); internal_static_google_cloud_compute_v1_GetBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(340); + getDescriptor().getMessageTypes().get(342); internal_static_google_cloud_compute_v1_GetBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetBackendServiceRequest_descriptor, @@ -27436,7 +27514,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackendService", "Project", }); internal_static_google_cloud_compute_v1_GetDiagnosticsInterconnectRequest_descriptor = - getDescriptor().getMessageTypes().get(341); + getDescriptor().getMessageTypes().get(343); internal_static_google_cloud_compute_v1_GetDiagnosticsInterconnectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetDiagnosticsInterconnectRequest_descriptor, @@ -27444,7 +27522,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Interconnect", "Project", }); internal_static_google_cloud_compute_v1_GetDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(342); + getDescriptor().getMessageTypes().get(344); internal_static_google_cloud_compute_v1_GetDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetDiskRequest_descriptor, @@ -27452,7 +27530,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Disk", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetDiskTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(343); + getDescriptor().getMessageTypes().get(345); internal_static_google_cloud_compute_v1_GetDiskTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetDiskTypeRequest_descriptor, @@ -27460,7 +27538,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DiskType", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetEffectiveFirewallsInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(344); + getDescriptor().getMessageTypes().get(346); internal_static_google_cloud_compute_v1_GetEffectiveFirewallsInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetEffectiveFirewallsInstanceRequest_descriptor, @@ -27468,7 +27546,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Instance", "NetworkInterface", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetEffectiveFirewallsNetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(345); + getDescriptor().getMessageTypes().get(347); internal_static_google_cloud_compute_v1_GetEffectiveFirewallsNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetEffectiveFirewallsNetworkRequest_descriptor, @@ -27476,7 +27554,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Network", "Project", }); internal_static_google_cloud_compute_v1_GetEffectiveFirewallsRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(346); + getDescriptor().getMessageTypes().get(348); internal_static_google_cloud_compute_v1_GetEffectiveFirewallsRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetEffectiveFirewallsRegionNetworkFirewallPolicyRequest_descriptor, @@ -27484,7 +27562,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Network", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetExternalVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(347); + getDescriptor().getMessageTypes().get(349); internal_static_google_cloud_compute_v1_GetExternalVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetExternalVpnGatewayRequest_descriptor, @@ -27492,7 +27570,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExternalVpnGateway", "Project", }); internal_static_google_cloud_compute_v1_GetFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(348); + getDescriptor().getMessageTypes().get(350); internal_static_google_cloud_compute_v1_GetFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetFirewallPolicyRequest_descriptor, @@ -27500,7 +27578,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", }); internal_static_google_cloud_compute_v1_GetFirewallRequest_descriptor = - getDescriptor().getMessageTypes().get(349); + getDescriptor().getMessageTypes().get(351); internal_static_google_cloud_compute_v1_GetFirewallRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetFirewallRequest_descriptor, @@ -27508,7 +27586,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Firewall", "Project", }); internal_static_google_cloud_compute_v1_GetForwardingRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(350); + getDescriptor().getMessageTypes().get(352); internal_static_google_cloud_compute_v1_GetForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetForwardingRuleRequest_descriptor, @@ -27516,7 +27594,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ForwardingRule", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetFromFamilyImageRequest_descriptor = - getDescriptor().getMessageTypes().get(351); + getDescriptor().getMessageTypes().get(353); internal_static_google_cloud_compute_v1_GetFromFamilyImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetFromFamilyImageRequest_descriptor, @@ -27524,7 +27602,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Family", "Project", }); internal_static_google_cloud_compute_v1_GetGlobalAddressRequest_descriptor = - getDescriptor().getMessageTypes().get(352); + getDescriptor().getMessageTypes().get(354); internal_static_google_cloud_compute_v1_GetGlobalAddressRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetGlobalAddressRequest_descriptor, @@ -27532,7 +27610,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Address", "Project", }); internal_static_google_cloud_compute_v1_GetGlobalForwardingRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(353); + getDescriptor().getMessageTypes().get(355); internal_static_google_cloud_compute_v1_GetGlobalForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetGlobalForwardingRuleRequest_descriptor, @@ -27540,7 +27618,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ForwardingRule", "Project", }); internal_static_google_cloud_compute_v1_GetGlobalNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(354); + getDescriptor().getMessageTypes().get(356); internal_static_google_cloud_compute_v1_GetGlobalNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetGlobalNetworkEndpointGroupRequest_descriptor, @@ -27548,7 +27626,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkEndpointGroup", "Project", }); internal_static_google_cloud_compute_v1_GetGlobalOperationRequest_descriptor = - getDescriptor().getMessageTypes().get(355); + getDescriptor().getMessageTypes().get(357); internal_static_google_cloud_compute_v1_GetGlobalOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetGlobalOperationRequest_descriptor, @@ -27556,7 +27634,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Operation", "Project", }); internal_static_google_cloud_compute_v1_GetGlobalOrganizationOperationRequest_descriptor = - getDescriptor().getMessageTypes().get(356); + getDescriptor().getMessageTypes().get(358); internal_static_google_cloud_compute_v1_GetGlobalOrganizationOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetGlobalOrganizationOperationRequest_descriptor, @@ -27564,7 +27642,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Operation", "ParentId", }); internal_static_google_cloud_compute_v1_GetGlobalPublicDelegatedPrefixeRequest_descriptor = - getDescriptor().getMessageTypes().get(357); + getDescriptor().getMessageTypes().get(359); internal_static_google_cloud_compute_v1_GetGlobalPublicDelegatedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetGlobalPublicDelegatedPrefixeRequest_descriptor, @@ -27572,7 +27650,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PublicDelegatedPrefix", }); internal_static_google_cloud_compute_v1_GetGuestAttributesInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(358); + getDescriptor().getMessageTypes().get(360); internal_static_google_cloud_compute_v1_GetGuestAttributesInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetGuestAttributesInstanceRequest_descriptor, @@ -27580,7 +27658,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Instance", "Project", "QueryPath", "VariableKey", "Zone", }); internal_static_google_cloud_compute_v1_GetHealthBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(359); + getDescriptor().getMessageTypes().get(361); internal_static_google_cloud_compute_v1_GetHealthBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetHealthBackendServiceRequest_descriptor, @@ -27588,7 +27666,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackendService", "Project", "ResourceGroupReferenceResource", }); internal_static_google_cloud_compute_v1_GetHealthCheckRequest_descriptor = - getDescriptor().getMessageTypes().get(360); + getDescriptor().getMessageTypes().get(362); internal_static_google_cloud_compute_v1_GetHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetHealthCheckRequest_descriptor, @@ -27596,7 +27674,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HealthCheck", "Project", }); internal_static_google_cloud_compute_v1_GetHealthRegionBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(361); + getDescriptor().getMessageTypes().get(363); internal_static_google_cloud_compute_v1_GetHealthRegionBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetHealthRegionBackendServiceRequest_descriptor, @@ -27604,7 +27682,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackendService", "Project", "Region", "ResourceGroupReferenceResource", }); internal_static_google_cloud_compute_v1_GetHealthTargetPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(362); + getDescriptor().getMessageTypes().get(364); internal_static_google_cloud_compute_v1_GetHealthTargetPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetHealthTargetPoolRequest_descriptor, @@ -27612,7 +27690,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceReferenceResource", "Project", "Region", "TargetPool", }); internal_static_google_cloud_compute_v1_GetIamPolicyBackendBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(363); + getDescriptor().getMessageTypes().get(365); internal_static_google_cloud_compute_v1_GetIamPolicyBackendBucketRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyBackendBucketRequest_descriptor, @@ -27620,7 +27698,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(364); + getDescriptor().getMessageTypes().get(366); internal_static_google_cloud_compute_v1_GetIamPolicyBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyBackendServiceRequest_descriptor, @@ -27628,7 +27706,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(365); + getDescriptor().getMessageTypes().get(367); internal_static_google_cloud_compute_v1_GetIamPolicyDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyDiskRequest_descriptor, @@ -27636,7 +27714,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Resource", "Zone", }); internal_static_google_cloud_compute_v1_GetIamPolicyFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(366); + getDescriptor().getMessageTypes().get(368); internal_static_google_cloud_compute_v1_GetIamPolicyFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyFirewallPolicyRequest_descriptor, @@ -27644,7 +27722,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyImageRequest_descriptor = - getDescriptor().getMessageTypes().get(367); + getDescriptor().getMessageTypes().get(369); internal_static_google_cloud_compute_v1_GetIamPolicyImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyImageRequest_descriptor, @@ -27652,7 +27730,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(368); + getDescriptor().getMessageTypes().get(370); internal_static_google_cloud_compute_v1_GetIamPolicyInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyInstanceRequest_descriptor, @@ -27660,7 +27738,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Resource", "Zone", }); internal_static_google_cloud_compute_v1_GetIamPolicyInstanceTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(369); + getDescriptor().getMessageTypes().get(371); internal_static_google_cloud_compute_v1_GetIamPolicyInstanceTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyInstanceTemplateRequest_descriptor, @@ -27668,7 +27746,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(370); + getDescriptor().getMessageTypes().get(372); internal_static_google_cloud_compute_v1_GetIamPolicyInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyInstantSnapshotRequest_descriptor, @@ -27676,7 +27754,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Resource", "Zone", }); internal_static_google_cloud_compute_v1_GetIamPolicyLicenseRequest_descriptor = - getDescriptor().getMessageTypes().get(371); + getDescriptor().getMessageTypes().get(373); internal_static_google_cloud_compute_v1_GetIamPolicyLicenseRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyLicenseRequest_descriptor, @@ -27684,7 +27762,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyMachineImageRequest_descriptor = - getDescriptor().getMessageTypes().get(372); + getDescriptor().getMessageTypes().get(374); internal_static_google_cloud_compute_v1_GetIamPolicyMachineImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyMachineImageRequest_descriptor, @@ -27692,7 +27770,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyNetworkAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(373); + getDescriptor().getMessageTypes().get(375); internal_static_google_cloud_compute_v1_GetIamPolicyNetworkAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyNetworkAttachmentRequest_descriptor, @@ -27700,7 +27778,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Region", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(374); + getDescriptor().getMessageTypes().get(376); internal_static_google_cloud_compute_v1_GetIamPolicyNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyNetworkFirewallPolicyRequest_descriptor, @@ -27708,7 +27786,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyNodeGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(375); + getDescriptor().getMessageTypes().get(377); internal_static_google_cloud_compute_v1_GetIamPolicyNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyNodeGroupRequest_descriptor, @@ -27716,7 +27794,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Resource", "Zone", }); internal_static_google_cloud_compute_v1_GetIamPolicyNodeTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(376); + getDescriptor().getMessageTypes().get(378); internal_static_google_cloud_compute_v1_GetIamPolicyNodeTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyNodeTemplateRequest_descriptor, @@ -27724,7 +27802,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Region", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyRegionBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(377); + getDescriptor().getMessageTypes().get(379); internal_static_google_cloud_compute_v1_GetIamPolicyRegionBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyRegionBackendServiceRequest_descriptor, @@ -27732,7 +27810,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Region", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(378); + getDescriptor().getMessageTypes().get(380); internal_static_google_cloud_compute_v1_GetIamPolicyRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyRegionDiskRequest_descriptor, @@ -27740,7 +27818,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Region", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyRegionInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(379); + getDescriptor().getMessageTypes().get(381); internal_static_google_cloud_compute_v1_GetIamPolicyRegionInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyRegionInstantSnapshotRequest_descriptor, @@ -27748,7 +27826,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Region", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(380); + getDescriptor().getMessageTypes().get(382); internal_static_google_cloud_compute_v1_GetIamPolicyRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyRegionNetworkFirewallPolicyRequest_descriptor, @@ -27756,7 +27834,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Region", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(381); + getDescriptor().getMessageTypes().get(383); internal_static_google_cloud_compute_v1_GetIamPolicyReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyReservationRequest_descriptor, @@ -27764,7 +27842,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Resource", "Zone", }); internal_static_google_cloud_compute_v1_GetIamPolicyResourcePolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(382); + getDescriptor().getMessageTypes().get(384); internal_static_google_cloud_compute_v1_GetIamPolicyResourcePolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyResourcePolicyRequest_descriptor, @@ -27772,7 +27850,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Region", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyServiceAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(383); + getDescriptor().getMessageTypes().get(385); internal_static_google_cloud_compute_v1_GetIamPolicyServiceAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyServiceAttachmentRequest_descriptor, @@ -27780,7 +27858,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Region", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicySnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(384); + getDescriptor().getMessageTypes().get(386); internal_static_google_cloud_compute_v1_GetIamPolicySnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicySnapshotRequest_descriptor, @@ -27788,7 +27866,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Resource", }); internal_static_google_cloud_compute_v1_GetIamPolicyStoragePoolRequest_descriptor = - getDescriptor().getMessageTypes().get(385); + getDescriptor().getMessageTypes().get(387); internal_static_google_cloud_compute_v1_GetIamPolicyStoragePoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicyStoragePoolRequest_descriptor, @@ -27796,7 +27874,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Resource", "Zone", }); internal_static_google_cloud_compute_v1_GetIamPolicySubnetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(386); + getDescriptor().getMessageTypes().get(388); internal_static_google_cloud_compute_v1_GetIamPolicySubnetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetIamPolicySubnetworkRequest_descriptor, @@ -27804,7 +27882,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptionsRequestedPolicyVersion", "Project", "Region", "Resource", }); internal_static_google_cloud_compute_v1_GetImageFamilyViewRequest_descriptor = - getDescriptor().getMessageTypes().get(387); + getDescriptor().getMessageTypes().get(389); internal_static_google_cloud_compute_v1_GetImageFamilyViewRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetImageFamilyViewRequest_descriptor, @@ -27812,7 +27890,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Family", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetImageRequest_descriptor = - getDescriptor().getMessageTypes().get(388); + getDescriptor().getMessageTypes().get(390); internal_static_google_cloud_compute_v1_GetImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetImageRequest_descriptor, @@ -27820,7 +27898,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Image", "Project", }); internal_static_google_cloud_compute_v1_GetInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(389); + getDescriptor().getMessageTypes().get(391); internal_static_google_cloud_compute_v1_GetInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetInstanceGroupManagerRequest_descriptor, @@ -27828,7 +27906,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceGroupManager", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetInstanceGroupManagerResizeRequestRequest_descriptor = - getDescriptor().getMessageTypes().get(390); + getDescriptor().getMessageTypes().get(392); internal_static_google_cloud_compute_v1_GetInstanceGroupManagerResizeRequestRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetInstanceGroupManagerResizeRequestRequest_descriptor, @@ -27836,7 +27914,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceGroupManager", "Project", "ResizeRequest", "Zone", }); internal_static_google_cloud_compute_v1_GetInstanceGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(391); + getDescriptor().getMessageTypes().get(393); internal_static_google_cloud_compute_v1_GetInstanceGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetInstanceGroupRequest_descriptor, @@ -27844,7 +27922,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceGroup", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(392); + getDescriptor().getMessageTypes().get(394); internal_static_google_cloud_compute_v1_GetInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetInstanceRequest_descriptor, @@ -27852,7 +27930,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Instance", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetInstanceSettingRequest_descriptor = - getDescriptor().getMessageTypes().get(393); + getDescriptor().getMessageTypes().get(395); internal_static_google_cloud_compute_v1_GetInstanceSettingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetInstanceSettingRequest_descriptor, @@ -27860,7 +27938,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetInstanceTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(394); + getDescriptor().getMessageTypes().get(396); internal_static_google_cloud_compute_v1_GetInstanceTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetInstanceTemplateRequest_descriptor, @@ -27868,7 +27946,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceTemplate", "Project", }); internal_static_google_cloud_compute_v1_GetInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(395); + getDescriptor().getMessageTypes().get(397); internal_static_google_cloud_compute_v1_GetInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetInstantSnapshotRequest_descriptor, @@ -27876,7 +27954,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstantSnapshot", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetInterconnectAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(396); + getDescriptor().getMessageTypes().get(398); internal_static_google_cloud_compute_v1_GetInterconnectAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetInterconnectAttachmentRequest_descriptor, @@ -27884,7 +27962,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InterconnectAttachment", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetInterconnectLocationRequest_descriptor = - getDescriptor().getMessageTypes().get(397); + getDescriptor().getMessageTypes().get(399); internal_static_google_cloud_compute_v1_GetInterconnectLocationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetInterconnectLocationRequest_descriptor, @@ -27892,7 +27970,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InterconnectLocation", "Project", }); internal_static_google_cloud_compute_v1_GetInterconnectRemoteLocationRequest_descriptor = - getDescriptor().getMessageTypes().get(398); + getDescriptor().getMessageTypes().get(400); internal_static_google_cloud_compute_v1_GetInterconnectRemoteLocationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetInterconnectRemoteLocationRequest_descriptor, @@ -27900,7 +27978,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InterconnectRemoteLocation", "Project", }); internal_static_google_cloud_compute_v1_GetInterconnectRequest_descriptor = - getDescriptor().getMessageTypes().get(399); + getDescriptor().getMessageTypes().get(401); internal_static_google_cloud_compute_v1_GetInterconnectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetInterconnectRequest_descriptor, @@ -27908,7 +27986,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Interconnect", "Project", }); internal_static_google_cloud_compute_v1_GetLicenseCodeRequest_descriptor = - getDescriptor().getMessageTypes().get(400); + getDescriptor().getMessageTypes().get(402); internal_static_google_cloud_compute_v1_GetLicenseCodeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetLicenseCodeRequest_descriptor, @@ -27916,7 +27994,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LicenseCode", "Project", }); internal_static_google_cloud_compute_v1_GetLicenseRequest_descriptor = - getDescriptor().getMessageTypes().get(401); + getDescriptor().getMessageTypes().get(403); internal_static_google_cloud_compute_v1_GetLicenseRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetLicenseRequest_descriptor, @@ -27924,7 +28002,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "License", "Project", }); internal_static_google_cloud_compute_v1_GetMachineImageRequest_descriptor = - getDescriptor().getMessageTypes().get(402); + getDescriptor().getMessageTypes().get(404); internal_static_google_cloud_compute_v1_GetMachineImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetMachineImageRequest_descriptor, @@ -27932,7 +28010,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MachineImage", "Project", }); internal_static_google_cloud_compute_v1_GetMachineTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(403); + getDescriptor().getMessageTypes().get(405); internal_static_google_cloud_compute_v1_GetMachineTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetMachineTypeRequest_descriptor, @@ -27940,7 +28018,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MachineType", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetMacsecConfigInterconnectRequest_descriptor = - getDescriptor().getMessageTypes().get(404); + getDescriptor().getMessageTypes().get(406); internal_static_google_cloud_compute_v1_GetMacsecConfigInterconnectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetMacsecConfigInterconnectRequest_descriptor, @@ -27948,7 +28026,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Interconnect", "Project", }); internal_static_google_cloud_compute_v1_GetNatIpInfoRouterRequest_descriptor = - getDescriptor().getMessageTypes().get(405); + getDescriptor().getMessageTypes().get(407); internal_static_google_cloud_compute_v1_GetNatIpInfoRouterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetNatIpInfoRouterRequest_descriptor, @@ -27956,7 +28034,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NatName", "Project", "Region", "Router", }); internal_static_google_cloud_compute_v1_GetNatMappingInfoRoutersRequest_descriptor = - getDescriptor().getMessageTypes().get(406); + getDescriptor().getMessageTypes().get(408); internal_static_google_cloud_compute_v1_GetNatMappingInfoRoutersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetNatMappingInfoRoutersRequest_descriptor, @@ -27972,7 +28050,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Router", }); internal_static_google_cloud_compute_v1_GetNetworkAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(407); + getDescriptor().getMessageTypes().get(409); internal_static_google_cloud_compute_v1_GetNetworkAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetNetworkAttachmentRequest_descriptor, @@ -27980,7 +28058,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkAttachment", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetNetworkEdgeSecurityServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(408); + getDescriptor().getMessageTypes().get(410); internal_static_google_cloud_compute_v1_GetNetworkEdgeSecurityServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetNetworkEdgeSecurityServiceRequest_descriptor, @@ -27988,7 +28066,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkEdgeSecurityService", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(409); + getDescriptor().getMessageTypes().get(411); internal_static_google_cloud_compute_v1_GetNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetNetworkEndpointGroupRequest_descriptor, @@ -27996,7 +28074,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkEndpointGroup", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(410); + getDescriptor().getMessageTypes().get(412); internal_static_google_cloud_compute_v1_GetNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetNetworkFirewallPolicyRequest_descriptor, @@ -28004,7 +28082,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", "Project", }); internal_static_google_cloud_compute_v1_GetNetworkProfileRequest_descriptor = - getDescriptor().getMessageTypes().get(411); + getDescriptor().getMessageTypes().get(413); internal_static_google_cloud_compute_v1_GetNetworkProfileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetNetworkProfileRequest_descriptor, @@ -28012,7 +28090,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkProfile", "Project", }); internal_static_google_cloud_compute_v1_GetNetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(412); + getDescriptor().getMessageTypes().get(414); internal_static_google_cloud_compute_v1_GetNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetNetworkRequest_descriptor, @@ -28020,7 +28098,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Network", "Project", }); internal_static_google_cloud_compute_v1_GetNodeGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(413); + getDescriptor().getMessageTypes().get(415); internal_static_google_cloud_compute_v1_GetNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetNodeGroupRequest_descriptor, @@ -28028,7 +28106,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NodeGroup", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetNodeTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(414); + getDescriptor().getMessageTypes().get(416); internal_static_google_cloud_compute_v1_GetNodeTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetNodeTemplateRequest_descriptor, @@ -28036,7 +28114,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NodeTemplate", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetNodeTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(415); + getDescriptor().getMessageTypes().get(417); internal_static_google_cloud_compute_v1_GetNodeTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetNodeTypeRequest_descriptor, @@ -28044,7 +28122,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NodeType", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetPacketMirroringRequest_descriptor = - getDescriptor().getMessageTypes().get(416); + getDescriptor().getMessageTypes().get(418); internal_static_google_cloud_compute_v1_GetPacketMirroringRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetPacketMirroringRequest_descriptor, @@ -28052,7 +28130,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PacketMirroring", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetProjectRequest_descriptor = - getDescriptor().getMessageTypes().get(417); + getDescriptor().getMessageTypes().get(419); internal_static_google_cloud_compute_v1_GetProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetProjectRequest_descriptor, @@ -28060,7 +28138,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", }); internal_static_google_cloud_compute_v1_GetPublicAdvertisedPrefixeRequest_descriptor = - getDescriptor().getMessageTypes().get(418); + getDescriptor().getMessageTypes().get(420); internal_static_google_cloud_compute_v1_GetPublicAdvertisedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetPublicAdvertisedPrefixeRequest_descriptor, @@ -28068,7 +28146,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PublicAdvertisedPrefix", }); internal_static_google_cloud_compute_v1_GetPublicDelegatedPrefixeRequest_descriptor = - getDescriptor().getMessageTypes().get(419); + getDescriptor().getMessageTypes().get(421); internal_static_google_cloud_compute_v1_GetPublicDelegatedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetPublicDelegatedPrefixeRequest_descriptor, @@ -28076,7 +28154,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PublicDelegatedPrefix", "Region", }); internal_static_google_cloud_compute_v1_GetRegionAutoscalerRequest_descriptor = - getDescriptor().getMessageTypes().get(420); + getDescriptor().getMessageTypes().get(422); internal_static_google_cloud_compute_v1_GetRegionAutoscalerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionAutoscalerRequest_descriptor, @@ -28084,7 +28162,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Autoscaler", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(421); + getDescriptor().getMessageTypes().get(423); internal_static_google_cloud_compute_v1_GetRegionBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionBackendServiceRequest_descriptor, @@ -28092,7 +28170,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackendService", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionCommitmentRequest_descriptor = - getDescriptor().getMessageTypes().get(422); + getDescriptor().getMessageTypes().get(424); internal_static_google_cloud_compute_v1_GetRegionCommitmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionCommitmentRequest_descriptor, @@ -28100,7 +28178,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Commitment", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(423); + getDescriptor().getMessageTypes().get(425); internal_static_google_cloud_compute_v1_GetRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionDiskRequest_descriptor, @@ -28108,7 +28186,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Disk", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionDiskTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(424); + getDescriptor().getMessageTypes().get(426); internal_static_google_cloud_compute_v1_GetRegionDiskTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionDiskTypeRequest_descriptor, @@ -28116,7 +28194,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DiskType", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionHealthCheckRequest_descriptor = - getDescriptor().getMessageTypes().get(425); + getDescriptor().getMessageTypes().get(427); internal_static_google_cloud_compute_v1_GetRegionHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionHealthCheckRequest_descriptor, @@ -28124,7 +28202,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HealthCheck", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionHealthCheckServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(426); + getDescriptor().getMessageTypes().get(428); internal_static_google_cloud_compute_v1_GetRegionHealthCheckServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionHealthCheckServiceRequest_descriptor, @@ -28132,7 +28210,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HealthCheckService", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(427); + getDescriptor().getMessageTypes().get(429); internal_static_google_cloud_compute_v1_GetRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionInstanceGroupManagerRequest_descriptor, @@ -28140,7 +28218,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceGroupManager", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionInstanceGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(428); + getDescriptor().getMessageTypes().get(430); internal_static_google_cloud_compute_v1_GetRegionInstanceGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionInstanceGroupRequest_descriptor, @@ -28148,7 +28226,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceGroup", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionInstanceTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(429); + getDescriptor().getMessageTypes().get(431); internal_static_google_cloud_compute_v1_GetRegionInstanceTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionInstanceTemplateRequest_descriptor, @@ -28156,7 +28234,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceTemplate", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(430); + getDescriptor().getMessageTypes().get(432); internal_static_google_cloud_compute_v1_GetRegionInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionInstantSnapshotRequest_descriptor, @@ -28164,7 +28242,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstantSnapshot", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(431); + getDescriptor().getMessageTypes().get(433); internal_static_google_cloud_compute_v1_GetRegionNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionNetworkEndpointGroupRequest_descriptor, @@ -28172,7 +28250,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkEndpointGroup", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(432); + getDescriptor().getMessageTypes().get(434); internal_static_google_cloud_compute_v1_GetRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionNetworkFirewallPolicyRequest_descriptor, @@ -28180,7 +28258,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionNotificationEndpointRequest_descriptor = - getDescriptor().getMessageTypes().get(433); + getDescriptor().getMessageTypes().get(435); internal_static_google_cloud_compute_v1_GetRegionNotificationEndpointRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionNotificationEndpointRequest_descriptor, @@ -28188,7 +28266,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NotificationEndpoint", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionOperationRequest_descriptor = - getDescriptor().getMessageTypes().get(434); + getDescriptor().getMessageTypes().get(436); internal_static_google_cloud_compute_v1_GetRegionOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionOperationRequest_descriptor, @@ -28196,7 +28274,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Operation", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionRequest_descriptor = - getDescriptor().getMessageTypes().get(435); + getDescriptor().getMessageTypes().get(437); internal_static_google_cloud_compute_v1_GetRegionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionRequest_descriptor, @@ -28204,7 +28282,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRegionSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(436); + getDescriptor().getMessageTypes().get(438); internal_static_google_cloud_compute_v1_GetRegionSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionSecurityPolicyRequest_descriptor, @@ -28212,7 +28290,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "SecurityPolicy", }); internal_static_google_cloud_compute_v1_GetRegionSslCertificateRequest_descriptor = - getDescriptor().getMessageTypes().get(437); + getDescriptor().getMessageTypes().get(439); internal_static_google_cloud_compute_v1_GetRegionSslCertificateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionSslCertificateRequest_descriptor, @@ -28220,7 +28298,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "SslCertificate", }); internal_static_google_cloud_compute_v1_GetRegionSslPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(438); + getDescriptor().getMessageTypes().get(440); internal_static_google_cloud_compute_v1_GetRegionSslPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionSslPolicyRequest_descriptor, @@ -28228,7 +28306,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "SslPolicy", }); internal_static_google_cloud_compute_v1_GetRegionTargetHttpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(439); + getDescriptor().getMessageTypes().get(441); internal_static_google_cloud_compute_v1_GetRegionTargetHttpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionTargetHttpProxyRequest_descriptor, @@ -28236,7 +28314,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "TargetHttpProxy", }); internal_static_google_cloud_compute_v1_GetRegionTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(440); + getDescriptor().getMessageTypes().get(442); internal_static_google_cloud_compute_v1_GetRegionTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionTargetHttpsProxyRequest_descriptor, @@ -28244,7 +28322,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "TargetHttpsProxy", }); internal_static_google_cloud_compute_v1_GetRegionTargetTcpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(441); + getDescriptor().getMessageTypes().get(443); internal_static_google_cloud_compute_v1_GetRegionTargetTcpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionTargetTcpProxyRequest_descriptor, @@ -28252,7 +28330,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "TargetTcpProxy", }); internal_static_google_cloud_compute_v1_GetRegionUrlMapRequest_descriptor = - getDescriptor().getMessageTypes().get(442); + getDescriptor().getMessageTypes().get(444); internal_static_google_cloud_compute_v1_GetRegionUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRegionUrlMapRequest_descriptor, @@ -28260,7 +28338,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "UrlMap", }); internal_static_google_cloud_compute_v1_GetReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(443); + getDescriptor().getMessageTypes().get(445); internal_static_google_cloud_compute_v1_GetReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetReservationRequest_descriptor, @@ -28268,7 +28346,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Reservation", "Zone", }); internal_static_google_cloud_compute_v1_GetResourcePolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(444); + getDescriptor().getMessageTypes().get(446); internal_static_google_cloud_compute_v1_GetResourcePolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetResourcePolicyRequest_descriptor, @@ -28276,7 +28354,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "ResourcePolicy", }); internal_static_google_cloud_compute_v1_GetRouteRequest_descriptor = - getDescriptor().getMessageTypes().get(445); + getDescriptor().getMessageTypes().get(447); internal_static_google_cloud_compute_v1_GetRouteRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRouteRequest_descriptor, @@ -28284,7 +28362,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Route", }); internal_static_google_cloud_compute_v1_GetRouterRequest_descriptor = - getDescriptor().getMessageTypes().get(446); + getDescriptor().getMessageTypes().get(448); internal_static_google_cloud_compute_v1_GetRouterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRouterRequest_descriptor, @@ -28292,7 +28370,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "Router", }); internal_static_google_cloud_compute_v1_GetRouterStatusRouterRequest_descriptor = - getDescriptor().getMessageTypes().get(447); + getDescriptor().getMessageTypes().get(449); internal_static_google_cloud_compute_v1_GetRouterStatusRouterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRouterStatusRouterRequest_descriptor, @@ -28300,7 +28378,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "Router", }); internal_static_google_cloud_compute_v1_GetRuleFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(448); + getDescriptor().getMessageTypes().get(450); internal_static_google_cloud_compute_v1_GetRuleFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRuleFirewallPolicyRequest_descriptor, @@ -28308,7 +28386,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", "Priority", }); internal_static_google_cloud_compute_v1_GetRuleNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(449); + getDescriptor().getMessageTypes().get(451); internal_static_google_cloud_compute_v1_GetRuleNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRuleNetworkFirewallPolicyRequest_descriptor, @@ -28316,7 +28394,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", "Priority", "Project", }); internal_static_google_cloud_compute_v1_GetRuleRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(450); + getDescriptor().getMessageTypes().get(452); internal_static_google_cloud_compute_v1_GetRuleRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRuleRegionNetworkFirewallPolicyRequest_descriptor, @@ -28324,7 +28402,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", "Priority", "Project", "Region", }); internal_static_google_cloud_compute_v1_GetRuleRegionSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(451); + getDescriptor().getMessageTypes().get(453); internal_static_google_cloud_compute_v1_GetRuleRegionSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRuleRegionSecurityPolicyRequest_descriptor, @@ -28332,7 +28410,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Priority", "Project", "Region", "SecurityPolicy", }); internal_static_google_cloud_compute_v1_GetRuleSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(452); + getDescriptor().getMessageTypes().get(454); internal_static_google_cloud_compute_v1_GetRuleSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetRuleSecurityPolicyRequest_descriptor, @@ -28340,7 +28418,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Priority", "Project", "SecurityPolicy", }); internal_static_google_cloud_compute_v1_GetScreenshotInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(453); + getDescriptor().getMessageTypes().get(455); internal_static_google_cloud_compute_v1_GetScreenshotInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetScreenshotInstanceRequest_descriptor, @@ -28348,7 +28426,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Instance", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(454); + getDescriptor().getMessageTypes().get(456); internal_static_google_cloud_compute_v1_GetSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetSecurityPolicyRequest_descriptor, @@ -28356,7 +28434,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "SecurityPolicy", }); internal_static_google_cloud_compute_v1_GetSerialPortOutputInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(455); + getDescriptor().getMessageTypes().get(457); internal_static_google_cloud_compute_v1_GetSerialPortOutputInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetSerialPortOutputInstanceRequest_descriptor, @@ -28364,7 +28442,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(456); + getDescriptor().getMessageTypes().get(458); internal_static_google_cloud_compute_v1_GetServiceAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetServiceAttachmentRequest_descriptor, @@ -28372,7 +28450,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "ServiceAttachment", }); internal_static_google_cloud_compute_v1_GetShieldedInstanceIdentityInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(457); + getDescriptor().getMessageTypes().get(459); internal_static_google_cloud_compute_v1_GetShieldedInstanceIdentityInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetShieldedInstanceIdentityInstanceRequest_descriptor, @@ -28380,7 +28458,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Instance", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(458); + getDescriptor().getMessageTypes().get(460); internal_static_google_cloud_compute_v1_GetSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetSnapshotRequest_descriptor, @@ -28388,7 +28466,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Snapshot", }); internal_static_google_cloud_compute_v1_GetSnapshotSettingRequest_descriptor = - getDescriptor().getMessageTypes().get(459); + getDescriptor().getMessageTypes().get(461); internal_static_google_cloud_compute_v1_GetSnapshotSettingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetSnapshotSettingRequest_descriptor, @@ -28396,7 +28474,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", }); internal_static_google_cloud_compute_v1_GetSslCertificateRequest_descriptor = - getDescriptor().getMessageTypes().get(460); + getDescriptor().getMessageTypes().get(462); internal_static_google_cloud_compute_v1_GetSslCertificateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetSslCertificateRequest_descriptor, @@ -28404,7 +28482,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "SslCertificate", }); internal_static_google_cloud_compute_v1_GetSslPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(461); + getDescriptor().getMessageTypes().get(463); internal_static_google_cloud_compute_v1_GetSslPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetSslPolicyRequest_descriptor, @@ -28412,7 +28490,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "SslPolicy", }); internal_static_google_cloud_compute_v1_GetStatusVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(462); + getDescriptor().getMessageTypes().get(464); internal_static_google_cloud_compute_v1_GetStatusVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetStatusVpnGatewayRequest_descriptor, @@ -28420,7 +28498,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "VpnGateway", }); internal_static_google_cloud_compute_v1_GetStoragePoolRequest_descriptor = - getDescriptor().getMessageTypes().get(463); + getDescriptor().getMessageTypes().get(465); internal_static_google_cloud_compute_v1_GetStoragePoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetStoragePoolRequest_descriptor, @@ -28428,7 +28506,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "StoragePool", "Zone", }); internal_static_google_cloud_compute_v1_GetStoragePoolTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(464); + getDescriptor().getMessageTypes().get(466); internal_static_google_cloud_compute_v1_GetStoragePoolTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetStoragePoolTypeRequest_descriptor, @@ -28436,7 +28514,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "StoragePoolType", "Zone", }); internal_static_google_cloud_compute_v1_GetSubnetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(465); + getDescriptor().getMessageTypes().get(467); internal_static_google_cloud_compute_v1_GetSubnetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetSubnetworkRequest_descriptor, @@ -28444,7 +28522,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "Subnetwork", }); internal_static_google_cloud_compute_v1_GetTargetGrpcProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(466); + getDescriptor().getMessageTypes().get(468); internal_static_google_cloud_compute_v1_GetTargetGrpcProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetTargetGrpcProxyRequest_descriptor, @@ -28452,7 +28530,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "TargetGrpcProxy", }); internal_static_google_cloud_compute_v1_GetTargetHttpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(467); + getDescriptor().getMessageTypes().get(469); internal_static_google_cloud_compute_v1_GetTargetHttpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetTargetHttpProxyRequest_descriptor, @@ -28460,7 +28538,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "TargetHttpProxy", }); internal_static_google_cloud_compute_v1_GetTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(468); + getDescriptor().getMessageTypes().get(470); internal_static_google_cloud_compute_v1_GetTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetTargetHttpsProxyRequest_descriptor, @@ -28468,15 +28546,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "TargetHttpsProxy", }); internal_static_google_cloud_compute_v1_GetTargetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(469); + getDescriptor().getMessageTypes().get(471); internal_static_google_cloud_compute_v1_GetTargetInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetTargetInstanceRequest_descriptor, new java.lang.String[] { "Project", "TargetInstance", "Zone", }); + _clinit_autosplit_dinit_1(); + } + + private static void _clinit_autosplit_dinit_1() { internal_static_google_cloud_compute_v1_GetTargetPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(470); + getDescriptor().getMessageTypes().get(472); internal_static_google_cloud_compute_v1_GetTargetPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetTargetPoolRequest_descriptor, @@ -28484,19 +28566,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "Region", "TargetPool", }); internal_static_google_cloud_compute_v1_GetTargetSslProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(471); + getDescriptor().getMessageTypes().get(473); 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(472); + getDescriptor().getMessageTypes().get(474); internal_static_google_cloud_compute_v1_GetTargetTcpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetTargetTcpProxyRequest_descriptor, @@ -28504,7 +28582,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "TargetTcpProxy", }); internal_static_google_cloud_compute_v1_GetTargetVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(473); + getDescriptor().getMessageTypes().get(475); internal_static_google_cloud_compute_v1_GetTargetVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetTargetVpnGatewayRequest_descriptor, @@ -28512,7 +28590,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "TargetVpnGateway", }); internal_static_google_cloud_compute_v1_GetUrlMapRequest_descriptor = - getDescriptor().getMessageTypes().get(474); + getDescriptor().getMessageTypes().get(476); internal_static_google_cloud_compute_v1_GetUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetUrlMapRequest_descriptor, @@ -28520,7 +28598,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "UrlMap", }); internal_static_google_cloud_compute_v1_GetVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(475); + getDescriptor().getMessageTypes().get(477); internal_static_google_cloud_compute_v1_GetVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetVpnGatewayRequest_descriptor, @@ -28528,7 +28606,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "VpnGateway", }); internal_static_google_cloud_compute_v1_GetVpnTunnelRequest_descriptor = - getDescriptor().getMessageTypes().get(476); + getDescriptor().getMessageTypes().get(478); internal_static_google_cloud_compute_v1_GetVpnTunnelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetVpnTunnelRequest_descriptor, @@ -28536,7 +28614,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "VpnTunnel", }); internal_static_google_cloud_compute_v1_GetXpnHostProjectRequest_descriptor = - getDescriptor().getMessageTypes().get(477); + getDescriptor().getMessageTypes().get(479); internal_static_google_cloud_compute_v1_GetXpnHostProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetXpnHostProjectRequest_descriptor, @@ -28544,7 +28622,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", }); internal_static_google_cloud_compute_v1_GetXpnResourcesProjectsRequest_descriptor = - getDescriptor().getMessageTypes().get(478); + getDescriptor().getMessageTypes().get(480); internal_static_google_cloud_compute_v1_GetXpnResourcesProjectsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetXpnResourcesProjectsRequest_descriptor, @@ -28552,7 +28630,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(479); + getDescriptor().getMessageTypes().get(481); internal_static_google_cloud_compute_v1_GetZoneOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetZoneOperationRequest_descriptor, @@ -28560,7 +28638,7 @@ private static void _clinit_autosplit_dinit_1() { "Operation", "Project", "Zone", }); internal_static_google_cloud_compute_v1_GetZoneRequest_descriptor = - getDescriptor().getMessageTypes().get(480); + getDescriptor().getMessageTypes().get(482); internal_static_google_cloud_compute_v1_GetZoneRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GetZoneRequest_descriptor, @@ -28568,7 +28646,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Zone", }); internal_static_google_cloud_compute_v1_GlobalAddressesMoveRequest_descriptor = - getDescriptor().getMessageTypes().get(481); + getDescriptor().getMessageTypes().get(483); internal_static_google_cloud_compute_v1_GlobalAddressesMoveRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GlobalAddressesMoveRequest_descriptor, @@ -28576,7 +28654,7 @@ private static void _clinit_autosplit_dinit_1() { "Description", "DestinationAddress", }); internal_static_google_cloud_compute_v1_GlobalNetworkEndpointGroupsAttachEndpointsRequest_descriptor = - getDescriptor().getMessageTypes().get(482); + getDescriptor().getMessageTypes().get(484); internal_static_google_cloud_compute_v1_GlobalNetworkEndpointGroupsAttachEndpointsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GlobalNetworkEndpointGroupsAttachEndpointsRequest_descriptor, @@ -28584,7 +28662,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkEndpoints", }); internal_static_google_cloud_compute_v1_GlobalNetworkEndpointGroupsDetachEndpointsRequest_descriptor = - getDescriptor().getMessageTypes().get(483); + getDescriptor().getMessageTypes().get(485); internal_static_google_cloud_compute_v1_GlobalNetworkEndpointGroupsDetachEndpointsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GlobalNetworkEndpointGroupsDetachEndpointsRequest_descriptor, @@ -28592,7 +28670,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkEndpoints", }); internal_static_google_cloud_compute_v1_GlobalOrganizationSetPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(484); + getDescriptor().getMessageTypes().get(486); internal_static_google_cloud_compute_v1_GlobalOrganizationSetPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GlobalOrganizationSetPolicyRequest_descriptor, @@ -28600,7 +28678,7 @@ private static void _clinit_autosplit_dinit_1() { "Bindings", "Etag", "Policy", }); internal_static_google_cloud_compute_v1_GlobalSetLabelsRequest_descriptor = - getDescriptor().getMessageTypes().get(485); + getDescriptor().getMessageTypes().get(487); internal_static_google_cloud_compute_v1_GlobalSetLabelsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GlobalSetLabelsRequest_descriptor, @@ -28618,7 +28696,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_GlobalSetPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(486); + getDescriptor().getMessageTypes().get(488); internal_static_google_cloud_compute_v1_GlobalSetPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GlobalSetPolicyRequest_descriptor, @@ -28626,7 +28704,7 @@ private static void _clinit_autosplit_dinit_1() { "Bindings", "Etag", "Policy", }); internal_static_google_cloud_compute_v1_GuestAttributes_descriptor = - getDescriptor().getMessageTypes().get(487); + getDescriptor().getMessageTypes().get(489); internal_static_google_cloud_compute_v1_GuestAttributes_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GuestAttributes_descriptor, @@ -28634,7 +28712,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(488); + getDescriptor().getMessageTypes().get(490); internal_static_google_cloud_compute_v1_GuestAttributesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GuestAttributesEntry_descriptor, @@ -28642,7 +28720,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Namespace", "Value", }); internal_static_google_cloud_compute_v1_GuestAttributesValue_descriptor = - getDescriptor().getMessageTypes().get(489); + getDescriptor().getMessageTypes().get(491); internal_static_google_cloud_compute_v1_GuestAttributesValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GuestAttributesValue_descriptor, @@ -28650,7 +28728,7 @@ private static void _clinit_autosplit_dinit_1() { "Items", }); internal_static_google_cloud_compute_v1_GuestOsFeature_descriptor = - getDescriptor().getMessageTypes().get(490); + getDescriptor().getMessageTypes().get(492); internal_static_google_cloud_compute_v1_GuestOsFeature_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_GuestOsFeature_descriptor, @@ -28658,7 +28736,7 @@ private static void _clinit_autosplit_dinit_1() { "Type", }); internal_static_google_cloud_compute_v1_HTTP2HealthCheck_descriptor = - getDescriptor().getMessageTypes().get(491); + getDescriptor().getMessageTypes().get(493); internal_static_google_cloud_compute_v1_HTTP2HealthCheck_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HTTP2HealthCheck_descriptor, @@ -28672,7 +28750,7 @@ private static void _clinit_autosplit_dinit_1() { "Response", }); internal_static_google_cloud_compute_v1_HTTPHealthCheck_descriptor = - getDescriptor().getMessageTypes().get(492); + getDescriptor().getMessageTypes().get(494); internal_static_google_cloud_compute_v1_HTTPHealthCheck_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HTTPHealthCheck_descriptor, @@ -28686,7 +28764,7 @@ private static void _clinit_autosplit_dinit_1() { "Response", }); internal_static_google_cloud_compute_v1_HTTPSHealthCheck_descriptor = - getDescriptor().getMessageTypes().get(493); + getDescriptor().getMessageTypes().get(495); internal_static_google_cloud_compute_v1_HTTPSHealthCheck_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HTTPSHealthCheck_descriptor, @@ -28700,7 +28778,7 @@ private static void _clinit_autosplit_dinit_1() { "Response", }); internal_static_google_cloud_compute_v1_HealthCheck_descriptor = - getDescriptor().getMessageTypes().get(494); + getDescriptor().getMessageTypes().get(496); internal_static_google_cloud_compute_v1_HealthCheck_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthCheck_descriptor, @@ -28727,7 +28805,7 @@ private static void _clinit_autosplit_dinit_1() { "UnhealthyThreshold", }); internal_static_google_cloud_compute_v1_HealthCheckList_descriptor = - getDescriptor().getMessageTypes().get(495); + getDescriptor().getMessageTypes().get(497); internal_static_google_cloud_compute_v1_HealthCheckList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthCheckList_descriptor, @@ -28735,7 +28813,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(496); + getDescriptor().getMessageTypes().get(498); internal_static_google_cloud_compute_v1_HealthCheckLogConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthCheckLogConfig_descriptor, @@ -28743,7 +28821,7 @@ private static void _clinit_autosplit_dinit_1() { "Enable", }); internal_static_google_cloud_compute_v1_HealthCheckReference_descriptor = - getDescriptor().getMessageTypes().get(497); + getDescriptor().getMessageTypes().get(499); internal_static_google_cloud_compute_v1_HealthCheckReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthCheckReference_descriptor, @@ -28751,7 +28829,7 @@ private static void _clinit_autosplit_dinit_1() { "HealthCheck", }); internal_static_google_cloud_compute_v1_HealthCheckService_descriptor = - getDescriptor().getMessageTypes().get(498); + getDescriptor().getMessageTypes().get(500); internal_static_google_cloud_compute_v1_HealthCheckService_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthCheckService_descriptor, @@ -28770,7 +28848,7 @@ private static void _clinit_autosplit_dinit_1() { "SelfLink", }); internal_static_google_cloud_compute_v1_HealthCheckServiceReference_descriptor = - getDescriptor().getMessageTypes().get(499); + getDescriptor().getMessageTypes().get(501); internal_static_google_cloud_compute_v1_HealthCheckServiceReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthCheckServiceReference_descriptor, @@ -28778,7 +28856,7 @@ private static void _clinit_autosplit_dinit_1() { "HealthCheckService", }); internal_static_google_cloud_compute_v1_HealthCheckServicesList_descriptor = - getDescriptor().getMessageTypes().get(500); + getDescriptor().getMessageTypes().get(502); internal_static_google_cloud_compute_v1_HealthCheckServicesList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthCheckServicesList_descriptor, @@ -28786,7 +28864,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(501); + getDescriptor().getMessageTypes().get(503); internal_static_google_cloud_compute_v1_HealthChecksAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthChecksAggregatedList_descriptor, @@ -28804,7 +28882,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_HealthChecksScopedList_descriptor = - getDescriptor().getMessageTypes().get(502); + getDescriptor().getMessageTypes().get(504); internal_static_google_cloud_compute_v1_HealthChecksScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthChecksScopedList_descriptor, @@ -28812,7 +28890,7 @@ private static void _clinit_autosplit_dinit_1() { "HealthChecks", "Warning", }); internal_static_google_cloud_compute_v1_HealthStatus_descriptor = - getDescriptor().getMessageTypes().get(503); + getDescriptor().getMessageTypes().get(505); internal_static_google_cloud_compute_v1_HealthStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthStatus_descriptor, @@ -28838,7 +28916,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_HealthStatusForNetworkEndpoint_descriptor = - getDescriptor().getMessageTypes().get(504); + getDescriptor().getMessageTypes().get(506); internal_static_google_cloud_compute_v1_HealthStatusForNetworkEndpoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HealthStatusForNetworkEndpoint_descriptor, @@ -28851,7 +28929,7 @@ private static void _clinit_autosplit_dinit_1() { "Ipv6HealthState", }); internal_static_google_cloud_compute_v1_Help_descriptor = - getDescriptor().getMessageTypes().get(505); + getDescriptor().getMessageTypes().get(507); internal_static_google_cloud_compute_v1_Help_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Help_descriptor, @@ -28859,7 +28937,7 @@ private static void _clinit_autosplit_dinit_1() { "Links", }); internal_static_google_cloud_compute_v1_HelpLink_descriptor = - getDescriptor().getMessageTypes().get(506); + getDescriptor().getMessageTypes().get(508); internal_static_google_cloud_compute_v1_HelpLink_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HelpLink_descriptor, @@ -28867,7 +28945,7 @@ private static void _clinit_autosplit_dinit_1() { "Description", "Url", }); internal_static_google_cloud_compute_v1_HostRule_descriptor = - getDescriptor().getMessageTypes().get(507); + getDescriptor().getMessageTypes().get(509); internal_static_google_cloud_compute_v1_HostRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HostRule_descriptor, @@ -28875,7 +28953,7 @@ private static void _clinit_autosplit_dinit_1() { "Description", "Hosts", "PathMatcher", }); internal_static_google_cloud_compute_v1_HttpFaultAbort_descriptor = - getDescriptor().getMessageTypes().get(508); + getDescriptor().getMessageTypes().get(510); internal_static_google_cloud_compute_v1_HttpFaultAbort_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpFaultAbort_descriptor, @@ -28883,7 +28961,7 @@ private static void _clinit_autosplit_dinit_1() { "HttpStatus", "Percentage", }); internal_static_google_cloud_compute_v1_HttpFaultDelay_descriptor = - getDescriptor().getMessageTypes().get(509); + getDescriptor().getMessageTypes().get(511); internal_static_google_cloud_compute_v1_HttpFaultDelay_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpFaultDelay_descriptor, @@ -28891,7 +28969,7 @@ private static void _clinit_autosplit_dinit_1() { "FixedDelay", "Percentage", }); internal_static_google_cloud_compute_v1_HttpFaultInjection_descriptor = - getDescriptor().getMessageTypes().get(510); + getDescriptor().getMessageTypes().get(512); internal_static_google_cloud_compute_v1_HttpFaultInjection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpFaultInjection_descriptor, @@ -28899,7 +28977,7 @@ private static void _clinit_autosplit_dinit_1() { "Abort", "Delay", }); internal_static_google_cloud_compute_v1_HttpHeaderAction_descriptor = - getDescriptor().getMessageTypes().get(511); + getDescriptor().getMessageTypes().get(513); internal_static_google_cloud_compute_v1_HttpHeaderAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpHeaderAction_descriptor, @@ -28910,7 +28988,7 @@ private static void _clinit_autosplit_dinit_1() { "ResponseHeadersToRemove", }); internal_static_google_cloud_compute_v1_HttpHeaderMatch_descriptor = - getDescriptor().getMessageTypes().get(512); + getDescriptor().getMessageTypes().get(514); internal_static_google_cloud_compute_v1_HttpHeaderMatch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpHeaderMatch_descriptor, @@ -28925,7 +29003,7 @@ private static void _clinit_autosplit_dinit_1() { "SuffixMatch", }); internal_static_google_cloud_compute_v1_HttpHeaderOption_descriptor = - getDescriptor().getMessageTypes().get(513); + getDescriptor().getMessageTypes().get(515); internal_static_google_cloud_compute_v1_HttpHeaderOption_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpHeaderOption_descriptor, @@ -28933,7 +29011,7 @@ private static void _clinit_autosplit_dinit_1() { "HeaderName", "HeaderValue", "Replace", }); internal_static_google_cloud_compute_v1_HttpQueryParameterMatch_descriptor = - getDescriptor().getMessageTypes().get(514); + getDescriptor().getMessageTypes().get(516); internal_static_google_cloud_compute_v1_HttpQueryParameterMatch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpQueryParameterMatch_descriptor, @@ -28941,7 +29019,7 @@ private static void _clinit_autosplit_dinit_1() { "ExactMatch", "Name", "PresentMatch", "RegexMatch", }); internal_static_google_cloud_compute_v1_HttpRedirectAction_descriptor = - getDescriptor().getMessageTypes().get(515); + getDescriptor().getMessageTypes().get(517); internal_static_google_cloud_compute_v1_HttpRedirectAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpRedirectAction_descriptor, @@ -28954,7 +29032,7 @@ private static void _clinit_autosplit_dinit_1() { "StripQuery", }); internal_static_google_cloud_compute_v1_HttpRetryPolicy_descriptor = - getDescriptor().getMessageTypes().get(516); + getDescriptor().getMessageTypes().get(518); internal_static_google_cloud_compute_v1_HttpRetryPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpRetryPolicy_descriptor, @@ -28962,7 +29040,7 @@ private static void _clinit_autosplit_dinit_1() { "NumRetries", "PerTryTimeout", "RetryConditions", }); internal_static_google_cloud_compute_v1_HttpRouteAction_descriptor = - getDescriptor().getMessageTypes().get(517); + getDescriptor().getMessageTypes().get(519); internal_static_google_cloud_compute_v1_HttpRouteAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpRouteAction_descriptor, @@ -28977,7 +29055,7 @@ private static void _clinit_autosplit_dinit_1() { "WeightedBackendServices", }); internal_static_google_cloud_compute_v1_HttpRouteRule_descriptor = - getDescriptor().getMessageTypes().get(518); + getDescriptor().getMessageTypes().get(520); internal_static_google_cloud_compute_v1_HttpRouteRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpRouteRule_descriptor, @@ -28992,7 +29070,7 @@ private static void _clinit_autosplit_dinit_1() { "UrlRedirect", }); internal_static_google_cloud_compute_v1_HttpRouteRuleMatch_descriptor = - getDescriptor().getMessageTypes().get(519); + getDescriptor().getMessageTypes().get(521); internal_static_google_cloud_compute_v1_HttpRouteRuleMatch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_HttpRouteRuleMatch_descriptor, @@ -29007,7 +29085,7 @@ private static void _clinit_autosplit_dinit_1() { "RegexMatch", }); internal_static_google_cloud_compute_v1_Image_descriptor = - getDescriptor().getMessageTypes().get(520); + getDescriptor().getMessageTypes().get(522); internal_static_google_cloud_compute_v1_Image_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Image_descriptor, @@ -29056,7 +29134,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ImageFamilyView_descriptor = - getDescriptor().getMessageTypes().get(521); + getDescriptor().getMessageTypes().get(523); internal_static_google_cloud_compute_v1_ImageFamilyView_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ImageFamilyView_descriptor, @@ -29064,7 +29142,7 @@ private static void _clinit_autosplit_dinit_1() { "Image", }); internal_static_google_cloud_compute_v1_ImageList_descriptor = - getDescriptor().getMessageTypes().get(522); + getDescriptor().getMessageTypes().get(524); internal_static_google_cloud_compute_v1_ImageList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ImageList_descriptor, @@ -29072,7 +29150,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(523); + getDescriptor().getMessageTypes().get(525); internal_static_google_cloud_compute_v1_InitialStateConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InitialStateConfig_descriptor, @@ -29080,7 +29158,7 @@ private static void _clinit_autosplit_dinit_1() { "Dbs", "Dbxs", "Keks", "Pk", }); internal_static_google_cloud_compute_v1_InsertAddressRequest_descriptor = - getDescriptor().getMessageTypes().get(524); + getDescriptor().getMessageTypes().get(526); internal_static_google_cloud_compute_v1_InsertAddressRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertAddressRequest_descriptor, @@ -29088,7 +29166,7 @@ private static void _clinit_autosplit_dinit_1() { "AddressResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertAutoscalerRequest_descriptor = - getDescriptor().getMessageTypes().get(525); + getDescriptor().getMessageTypes().get(527); internal_static_google_cloud_compute_v1_InsertAutoscalerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertAutoscalerRequest_descriptor, @@ -29096,7 +29174,7 @@ private static void _clinit_autosplit_dinit_1() { "AutoscalerResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_InsertBackendBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(526); + getDescriptor().getMessageTypes().get(528); internal_static_google_cloud_compute_v1_InsertBackendBucketRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertBackendBucketRequest_descriptor, @@ -29104,7 +29182,7 @@ private static void _clinit_autosplit_dinit_1() { "BackendBucketResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(527); + getDescriptor().getMessageTypes().get(529); internal_static_google_cloud_compute_v1_InsertBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertBackendServiceRequest_descriptor, @@ -29112,7 +29190,7 @@ private static void _clinit_autosplit_dinit_1() { "BackendServiceResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(528); + getDescriptor().getMessageTypes().get(530); internal_static_google_cloud_compute_v1_InsertDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertDiskRequest_descriptor, @@ -29120,7 +29198,7 @@ private static void _clinit_autosplit_dinit_1() { "DiskResource", "Project", "RequestId", "SourceImage", "Zone", }); internal_static_google_cloud_compute_v1_InsertExternalVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(529); + getDescriptor().getMessageTypes().get(531); internal_static_google_cloud_compute_v1_InsertExternalVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertExternalVpnGatewayRequest_descriptor, @@ -29128,7 +29206,7 @@ private static void _clinit_autosplit_dinit_1() { "ExternalVpnGatewayResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(530); + getDescriptor().getMessageTypes().get(532); internal_static_google_cloud_compute_v1_InsertFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertFirewallPolicyRequest_descriptor, @@ -29136,7 +29214,7 @@ private static void _clinit_autosplit_dinit_1() { "FirewallPolicyResource", "ParentId", "RequestId", }); internal_static_google_cloud_compute_v1_InsertFirewallRequest_descriptor = - getDescriptor().getMessageTypes().get(531); + getDescriptor().getMessageTypes().get(533); internal_static_google_cloud_compute_v1_InsertFirewallRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertFirewallRequest_descriptor, @@ -29144,7 +29222,7 @@ private static void _clinit_autosplit_dinit_1() { "FirewallResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertForwardingRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(532); + getDescriptor().getMessageTypes().get(534); internal_static_google_cloud_compute_v1_InsertForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertForwardingRuleRequest_descriptor, @@ -29152,7 +29230,7 @@ private static void _clinit_autosplit_dinit_1() { "ForwardingRuleResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertGlobalAddressRequest_descriptor = - getDescriptor().getMessageTypes().get(533); + getDescriptor().getMessageTypes().get(535); internal_static_google_cloud_compute_v1_InsertGlobalAddressRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertGlobalAddressRequest_descriptor, @@ -29160,7 +29238,7 @@ private static void _clinit_autosplit_dinit_1() { "AddressResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertGlobalForwardingRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(534); + getDescriptor().getMessageTypes().get(536); internal_static_google_cloud_compute_v1_InsertGlobalForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertGlobalForwardingRuleRequest_descriptor, @@ -29168,7 +29246,7 @@ private static void _clinit_autosplit_dinit_1() { "ForwardingRuleResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertGlobalNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(535); + getDescriptor().getMessageTypes().get(537); internal_static_google_cloud_compute_v1_InsertGlobalNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertGlobalNetworkEndpointGroupRequest_descriptor, @@ -29176,7 +29254,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkEndpointGroupResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertGlobalPublicDelegatedPrefixeRequest_descriptor = - getDescriptor().getMessageTypes().get(536); + getDescriptor().getMessageTypes().get(538); internal_static_google_cloud_compute_v1_InsertGlobalPublicDelegatedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertGlobalPublicDelegatedPrefixeRequest_descriptor, @@ -29184,7 +29262,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "PublicDelegatedPrefixResource", "RequestId", }); internal_static_google_cloud_compute_v1_InsertHealthCheckRequest_descriptor = - getDescriptor().getMessageTypes().get(537); + getDescriptor().getMessageTypes().get(539); internal_static_google_cloud_compute_v1_InsertHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertHealthCheckRequest_descriptor, @@ -29192,7 +29270,7 @@ private static void _clinit_autosplit_dinit_1() { "HealthCheckResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertImageRequest_descriptor = - getDescriptor().getMessageTypes().get(538); + getDescriptor().getMessageTypes().get(540); internal_static_google_cloud_compute_v1_InsertImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertImageRequest_descriptor, @@ -29200,7 +29278,7 @@ private static void _clinit_autosplit_dinit_1() { "ForceCreate", "ImageResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(539); + getDescriptor().getMessageTypes().get(541); internal_static_google_cloud_compute_v1_InsertInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertInstanceGroupManagerRequest_descriptor, @@ -29208,7 +29286,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceGroupManagerResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_InsertInstanceGroupManagerResizeRequestRequest_descriptor = - getDescriptor().getMessageTypes().get(540); + getDescriptor().getMessageTypes().get(542); internal_static_google_cloud_compute_v1_InsertInstanceGroupManagerResizeRequestRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertInstanceGroupManagerResizeRequestRequest_descriptor, @@ -29220,7 +29298,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_InsertInstanceGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(541); + getDescriptor().getMessageTypes().get(543); internal_static_google_cloud_compute_v1_InsertInstanceGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertInstanceGroupRequest_descriptor, @@ -29228,7 +29306,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceGroupResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_InsertInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(542); + getDescriptor().getMessageTypes().get(544); internal_static_google_cloud_compute_v1_InsertInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertInstanceRequest_descriptor, @@ -29241,7 +29319,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_InsertInstanceTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(543); + getDescriptor().getMessageTypes().get(545); internal_static_google_cloud_compute_v1_InsertInstanceTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertInstanceTemplateRequest_descriptor, @@ -29249,7 +29327,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceTemplateResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(544); + getDescriptor().getMessageTypes().get(546); internal_static_google_cloud_compute_v1_InsertInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertInstantSnapshotRequest_descriptor, @@ -29257,7 +29335,7 @@ private static void _clinit_autosplit_dinit_1() { "InstantSnapshotResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_InsertInterconnectAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(545); + getDescriptor().getMessageTypes().get(547); internal_static_google_cloud_compute_v1_InsertInterconnectAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertInterconnectAttachmentRequest_descriptor, @@ -29265,7 +29343,7 @@ private static void _clinit_autosplit_dinit_1() { "InterconnectAttachmentResource", "Project", "Region", "RequestId", "ValidateOnly", }); internal_static_google_cloud_compute_v1_InsertInterconnectRequest_descriptor = - getDescriptor().getMessageTypes().get(546); + getDescriptor().getMessageTypes().get(548); internal_static_google_cloud_compute_v1_InsertInterconnectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertInterconnectRequest_descriptor, @@ -29273,7 +29351,7 @@ private static void _clinit_autosplit_dinit_1() { "InterconnectResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertLicenseRequest_descriptor = - getDescriptor().getMessageTypes().get(547); + getDescriptor().getMessageTypes().get(549); internal_static_google_cloud_compute_v1_InsertLicenseRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertLicenseRequest_descriptor, @@ -29281,7 +29359,7 @@ private static void _clinit_autosplit_dinit_1() { "LicenseResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertMachineImageRequest_descriptor = - getDescriptor().getMessageTypes().get(548); + getDescriptor().getMessageTypes().get(550); internal_static_google_cloud_compute_v1_InsertMachineImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertMachineImageRequest_descriptor, @@ -29289,7 +29367,7 @@ private static void _clinit_autosplit_dinit_1() { "MachineImageResource", "Project", "RequestId", "SourceInstance", }); internal_static_google_cloud_compute_v1_InsertNetworkAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(549); + getDescriptor().getMessageTypes().get(551); internal_static_google_cloud_compute_v1_InsertNetworkAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertNetworkAttachmentRequest_descriptor, @@ -29297,7 +29375,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkAttachmentResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertNetworkEdgeSecurityServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(550); + getDescriptor().getMessageTypes().get(552); internal_static_google_cloud_compute_v1_InsertNetworkEdgeSecurityServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertNetworkEdgeSecurityServiceRequest_descriptor, @@ -29309,7 +29387,7 @@ private static void _clinit_autosplit_dinit_1() { "ValidateOnly", }); internal_static_google_cloud_compute_v1_InsertNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(551); + getDescriptor().getMessageTypes().get(553); internal_static_google_cloud_compute_v1_InsertNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertNetworkEndpointGroupRequest_descriptor, @@ -29317,7 +29395,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkEndpointGroupResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_InsertNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(552); + getDescriptor().getMessageTypes().get(554); internal_static_google_cloud_compute_v1_InsertNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertNetworkFirewallPolicyRequest_descriptor, @@ -29325,7 +29403,7 @@ private static void _clinit_autosplit_dinit_1() { "FirewallPolicyResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertNetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(553); + getDescriptor().getMessageTypes().get(555); internal_static_google_cloud_compute_v1_InsertNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertNetworkRequest_descriptor, @@ -29333,7 +29411,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_InsertNodeGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(554); + getDescriptor().getMessageTypes().get(556); internal_static_google_cloud_compute_v1_InsertNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertNodeGroupRequest_descriptor, @@ -29341,7 +29419,7 @@ private static void _clinit_autosplit_dinit_1() { "InitialNodeCount", "NodeGroupResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_InsertNodeTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(555); + getDescriptor().getMessageTypes().get(557); internal_static_google_cloud_compute_v1_InsertNodeTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertNodeTemplateRequest_descriptor, @@ -29349,7 +29427,7 @@ private static void _clinit_autosplit_dinit_1() { "NodeTemplateResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertPacketMirroringRequest_descriptor = - getDescriptor().getMessageTypes().get(556); + getDescriptor().getMessageTypes().get(558); internal_static_google_cloud_compute_v1_InsertPacketMirroringRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertPacketMirroringRequest_descriptor, @@ -29357,7 +29435,7 @@ private static void _clinit_autosplit_dinit_1() { "PacketMirroringResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertPublicAdvertisedPrefixeRequest_descriptor = - getDescriptor().getMessageTypes().get(557); + getDescriptor().getMessageTypes().get(559); internal_static_google_cloud_compute_v1_InsertPublicAdvertisedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertPublicAdvertisedPrefixeRequest_descriptor, @@ -29365,7 +29443,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "PublicAdvertisedPrefixResource", "RequestId", }); internal_static_google_cloud_compute_v1_InsertPublicDelegatedPrefixeRequest_descriptor = - getDescriptor().getMessageTypes().get(558); + getDescriptor().getMessageTypes().get(560); internal_static_google_cloud_compute_v1_InsertPublicDelegatedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertPublicDelegatedPrefixeRequest_descriptor, @@ -29373,7 +29451,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "PublicDelegatedPrefixResource", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionAutoscalerRequest_descriptor = - getDescriptor().getMessageTypes().get(559); + getDescriptor().getMessageTypes().get(561); internal_static_google_cloud_compute_v1_InsertRegionAutoscalerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionAutoscalerRequest_descriptor, @@ -29381,7 +29459,7 @@ private static void _clinit_autosplit_dinit_1() { "AutoscalerResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(560); + getDescriptor().getMessageTypes().get(562); internal_static_google_cloud_compute_v1_InsertRegionBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionBackendServiceRequest_descriptor, @@ -29389,7 +29467,7 @@ private static void _clinit_autosplit_dinit_1() { "BackendServiceResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionCommitmentRequest_descriptor = - getDescriptor().getMessageTypes().get(561); + getDescriptor().getMessageTypes().get(563); internal_static_google_cloud_compute_v1_InsertRegionCommitmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionCommitmentRequest_descriptor, @@ -29397,7 +29475,7 @@ private static void _clinit_autosplit_dinit_1() { "CommitmentResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(562); + getDescriptor().getMessageTypes().get(564); internal_static_google_cloud_compute_v1_InsertRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionDiskRequest_descriptor, @@ -29405,7 +29483,7 @@ private static void _clinit_autosplit_dinit_1() { "DiskResource", "Project", "Region", "RequestId", "SourceImage", }); internal_static_google_cloud_compute_v1_InsertRegionHealthCheckRequest_descriptor = - getDescriptor().getMessageTypes().get(563); + getDescriptor().getMessageTypes().get(565); internal_static_google_cloud_compute_v1_InsertRegionHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionHealthCheckRequest_descriptor, @@ -29413,7 +29491,7 @@ private static void _clinit_autosplit_dinit_1() { "HealthCheckResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionHealthCheckServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(564); + getDescriptor().getMessageTypes().get(566); internal_static_google_cloud_compute_v1_InsertRegionHealthCheckServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionHealthCheckServiceRequest_descriptor, @@ -29421,7 +29499,7 @@ private static void _clinit_autosplit_dinit_1() { "HealthCheckServiceResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(565); + getDescriptor().getMessageTypes().get(567); internal_static_google_cloud_compute_v1_InsertRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionInstanceGroupManagerRequest_descriptor, @@ -29429,7 +29507,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceGroupManagerResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionInstanceTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(566); + getDescriptor().getMessageTypes().get(568); internal_static_google_cloud_compute_v1_InsertRegionInstanceTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionInstanceTemplateRequest_descriptor, @@ -29437,7 +29515,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceTemplateResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(567); + getDescriptor().getMessageTypes().get(569); internal_static_google_cloud_compute_v1_InsertRegionInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionInstantSnapshotRequest_descriptor, @@ -29445,7 +29523,7 @@ private static void _clinit_autosplit_dinit_1() { "InstantSnapshotResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(568); + getDescriptor().getMessageTypes().get(570); internal_static_google_cloud_compute_v1_InsertRegionNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionNetworkEndpointGroupRequest_descriptor, @@ -29453,7 +29531,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkEndpointGroupResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(569); + getDescriptor().getMessageTypes().get(571); internal_static_google_cloud_compute_v1_InsertRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionNetworkFirewallPolicyRequest_descriptor, @@ -29461,7 +29539,7 @@ private static void _clinit_autosplit_dinit_1() { "FirewallPolicyResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionNotificationEndpointRequest_descriptor = - getDescriptor().getMessageTypes().get(570); + getDescriptor().getMessageTypes().get(572); internal_static_google_cloud_compute_v1_InsertRegionNotificationEndpointRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionNotificationEndpointRequest_descriptor, @@ -29469,7 +29547,7 @@ private static void _clinit_autosplit_dinit_1() { "NotificationEndpointResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_InsertRegionSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(571); + getDescriptor().getMessageTypes().get(573); internal_static_google_cloud_compute_v1_InsertRegionSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionSecurityPolicyRequest_descriptor, @@ -29477,7 +29555,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "SecurityPolicyResource", "ValidateOnly", }); internal_static_google_cloud_compute_v1_InsertRegionSslCertificateRequest_descriptor = - getDescriptor().getMessageTypes().get(572); + getDescriptor().getMessageTypes().get(574); internal_static_google_cloud_compute_v1_InsertRegionSslCertificateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionSslCertificateRequest_descriptor, @@ -29485,7 +29563,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "SslCertificateResource", }); internal_static_google_cloud_compute_v1_InsertRegionSslPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(573); + getDescriptor().getMessageTypes().get(575); internal_static_google_cloud_compute_v1_InsertRegionSslPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionSslPolicyRequest_descriptor, @@ -29493,7 +29571,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "SslPolicyResource", }); internal_static_google_cloud_compute_v1_InsertRegionTargetHttpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(574); + getDescriptor().getMessageTypes().get(576); internal_static_google_cloud_compute_v1_InsertRegionTargetHttpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionTargetHttpProxyRequest_descriptor, @@ -29501,7 +29579,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "TargetHttpProxyResource", }); internal_static_google_cloud_compute_v1_InsertRegionTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(575); + getDescriptor().getMessageTypes().get(577); internal_static_google_cloud_compute_v1_InsertRegionTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionTargetHttpsProxyRequest_descriptor, @@ -29509,7 +29587,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "TargetHttpsProxyResource", }); internal_static_google_cloud_compute_v1_InsertRegionTargetTcpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(576); + getDescriptor().getMessageTypes().get(578); internal_static_google_cloud_compute_v1_InsertRegionTargetTcpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionTargetTcpProxyRequest_descriptor, @@ -29517,7 +29595,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "TargetTcpProxyResource", }); internal_static_google_cloud_compute_v1_InsertRegionUrlMapRequest_descriptor = - getDescriptor().getMessageTypes().get(577); + getDescriptor().getMessageTypes().get(579); internal_static_google_cloud_compute_v1_InsertRegionUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRegionUrlMapRequest_descriptor, @@ -29525,7 +29603,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "UrlMapResource", }); internal_static_google_cloud_compute_v1_InsertReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(578); + getDescriptor().getMessageTypes().get(580); internal_static_google_cloud_compute_v1_InsertReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertReservationRequest_descriptor, @@ -29533,7 +29611,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "ReservationResource", "Zone", }); internal_static_google_cloud_compute_v1_InsertResourcePolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(579); + getDescriptor().getMessageTypes().get(581); internal_static_google_cloud_compute_v1_InsertResourcePolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertResourcePolicyRequest_descriptor, @@ -29541,7 +29619,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "ResourcePolicyResource", }); internal_static_google_cloud_compute_v1_InsertRouteRequest_descriptor = - getDescriptor().getMessageTypes().get(580); + getDescriptor().getMessageTypes().get(582); internal_static_google_cloud_compute_v1_InsertRouteRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRouteRequest_descriptor, @@ -29549,7 +29627,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "RouteResource", }); internal_static_google_cloud_compute_v1_InsertRouterRequest_descriptor = - getDescriptor().getMessageTypes().get(581); + getDescriptor().getMessageTypes().get(583); internal_static_google_cloud_compute_v1_InsertRouterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertRouterRequest_descriptor, @@ -29557,7 +29635,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "RouterResource", }); internal_static_google_cloud_compute_v1_InsertSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(582); + getDescriptor().getMessageTypes().get(584); internal_static_google_cloud_compute_v1_InsertSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertSecurityPolicyRequest_descriptor, @@ -29565,7 +29643,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "SecurityPolicyResource", "ValidateOnly", }); internal_static_google_cloud_compute_v1_InsertServiceAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(583); + getDescriptor().getMessageTypes().get(585); internal_static_google_cloud_compute_v1_InsertServiceAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertServiceAttachmentRequest_descriptor, @@ -29573,7 +29651,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "ServiceAttachmentResource", }); internal_static_google_cloud_compute_v1_InsertSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(584); + getDescriptor().getMessageTypes().get(586); internal_static_google_cloud_compute_v1_InsertSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertSnapshotRequest_descriptor, @@ -29581,7 +29659,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "SnapshotResource", }); internal_static_google_cloud_compute_v1_InsertSslCertificateRequest_descriptor = - getDescriptor().getMessageTypes().get(585); + getDescriptor().getMessageTypes().get(587); internal_static_google_cloud_compute_v1_InsertSslCertificateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertSslCertificateRequest_descriptor, @@ -29589,7 +29667,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "SslCertificateResource", }); internal_static_google_cloud_compute_v1_InsertSslPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(586); + getDescriptor().getMessageTypes().get(588); internal_static_google_cloud_compute_v1_InsertSslPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertSslPolicyRequest_descriptor, @@ -29597,7 +29675,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "SslPolicyResource", }); internal_static_google_cloud_compute_v1_InsertStoragePoolRequest_descriptor = - getDescriptor().getMessageTypes().get(587); + getDescriptor().getMessageTypes().get(589); internal_static_google_cloud_compute_v1_InsertStoragePoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertStoragePoolRequest_descriptor, @@ -29605,7 +29683,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "StoragePoolResource", "Zone", }); internal_static_google_cloud_compute_v1_InsertSubnetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(588); + getDescriptor().getMessageTypes().get(590); internal_static_google_cloud_compute_v1_InsertSubnetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertSubnetworkRequest_descriptor, @@ -29613,7 +29691,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "SubnetworkResource", }); internal_static_google_cloud_compute_v1_InsertTargetGrpcProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(589); + getDescriptor().getMessageTypes().get(591); internal_static_google_cloud_compute_v1_InsertTargetGrpcProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertTargetGrpcProxyRequest_descriptor, @@ -29621,7 +29699,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "TargetGrpcProxyResource", }); internal_static_google_cloud_compute_v1_InsertTargetHttpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(590); + getDescriptor().getMessageTypes().get(592); internal_static_google_cloud_compute_v1_InsertTargetHttpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertTargetHttpProxyRequest_descriptor, @@ -29629,7 +29707,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "TargetHttpProxyResource", }); internal_static_google_cloud_compute_v1_InsertTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(591); + getDescriptor().getMessageTypes().get(593); internal_static_google_cloud_compute_v1_InsertTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertTargetHttpsProxyRequest_descriptor, @@ -29637,7 +29715,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "TargetHttpsProxyResource", }); internal_static_google_cloud_compute_v1_InsertTargetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(592); + getDescriptor().getMessageTypes().get(594); internal_static_google_cloud_compute_v1_InsertTargetInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertTargetInstanceRequest_descriptor, @@ -29645,7 +29723,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "TargetInstanceResource", "Zone", }); internal_static_google_cloud_compute_v1_InsertTargetPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(593); + getDescriptor().getMessageTypes().get(595); internal_static_google_cloud_compute_v1_InsertTargetPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertTargetPoolRequest_descriptor, @@ -29653,7 +29731,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "TargetPoolResource", }); internal_static_google_cloud_compute_v1_InsertTargetSslProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(594); + getDescriptor().getMessageTypes().get(596); internal_static_google_cloud_compute_v1_InsertTargetSslProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertTargetSslProxyRequest_descriptor, @@ -29661,7 +29739,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "TargetSslProxyResource", }); internal_static_google_cloud_compute_v1_InsertTargetTcpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(595); + getDescriptor().getMessageTypes().get(597); internal_static_google_cloud_compute_v1_InsertTargetTcpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertTargetTcpProxyRequest_descriptor, @@ -29669,7 +29747,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "TargetTcpProxyResource", }); internal_static_google_cloud_compute_v1_InsertTargetVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(596); + getDescriptor().getMessageTypes().get(598); internal_static_google_cloud_compute_v1_InsertTargetVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertTargetVpnGatewayRequest_descriptor, @@ -29677,7 +29755,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "TargetVpnGatewayResource", }); internal_static_google_cloud_compute_v1_InsertUrlMapRequest_descriptor = - getDescriptor().getMessageTypes().get(597); + getDescriptor().getMessageTypes().get(599); internal_static_google_cloud_compute_v1_InsertUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertUrlMapRequest_descriptor, @@ -29685,7 +29763,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "RequestId", "UrlMapResource", }); internal_static_google_cloud_compute_v1_InsertVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(598); + getDescriptor().getMessageTypes().get(600); internal_static_google_cloud_compute_v1_InsertVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertVpnGatewayRequest_descriptor, @@ -29693,7 +29771,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "VpnGatewayResource", }); internal_static_google_cloud_compute_v1_InsertVpnTunnelRequest_descriptor = - getDescriptor().getMessageTypes().get(599); + getDescriptor().getMessageTypes().get(601); internal_static_google_cloud_compute_v1_InsertVpnTunnelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InsertVpnTunnelRequest_descriptor, @@ -29701,7 +29779,7 @@ private static void _clinit_autosplit_dinit_1() { "Project", "Region", "RequestId", "VpnTunnelResource", }); internal_static_google_cloud_compute_v1_Instance_descriptor = - getDescriptor().getMessageTypes().get(600); + getDescriptor().getMessageTypes().get(602); internal_static_google_cloud_compute_v1_Instance_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Instance_descriptor, @@ -29762,7 +29840,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstanceAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(601); + getDescriptor().getMessageTypes().get(603); internal_static_google_cloud_compute_v1_InstanceAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceAggregatedList_descriptor, @@ -29780,7 +29858,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstanceConsumptionData_descriptor = - getDescriptor().getMessageTypes().get(602); + getDescriptor().getMessageTypes().get(604); internal_static_google_cloud_compute_v1_InstanceConsumptionData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceConsumptionData_descriptor, @@ -29788,7 +29866,7 @@ private static void _clinit_autosplit_dinit_1() { "ConsumptionInfo", "Instance", }); internal_static_google_cloud_compute_v1_InstanceConsumptionInfo_descriptor = - getDescriptor().getMessageTypes().get(603); + getDescriptor().getMessageTypes().get(605); internal_static_google_cloud_compute_v1_InstanceConsumptionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceConsumptionInfo_descriptor, @@ -29796,7 +29874,7 @@ private static void _clinit_autosplit_dinit_1() { "GuestCpus", "LocalSsdGb", "MemoryMb", "MinNodeCpus", }); internal_static_google_cloud_compute_v1_InstanceGroup_descriptor = - getDescriptor().getMessageTypes().get(604); + getDescriptor().getMessageTypes().get(606); internal_static_google_cloud_compute_v1_InstanceGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroup_descriptor, @@ -29816,7 +29894,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_InstanceGroupAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(605); + getDescriptor().getMessageTypes().get(607); internal_static_google_cloud_compute_v1_InstanceGroupAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupAggregatedList_descriptor, @@ -29834,7 +29912,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstanceGroupList_descriptor = - getDescriptor().getMessageTypes().get(606); + getDescriptor().getMessageTypes().get(608); internal_static_google_cloud_compute_v1_InstanceGroupList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupList_descriptor, @@ -29842,7 +29920,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(607); + getDescriptor().getMessageTypes().get(609); internal_static_google_cloud_compute_v1_InstanceGroupManager_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManager_descriptor, @@ -29880,7 +29958,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerActionsSummary_descriptor = - getDescriptor().getMessageTypes().get(608); + getDescriptor().getMessageTypes().get(610); internal_static_google_cloud_compute_v1_InstanceGroupManagerActionsSummary_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerActionsSummary_descriptor, @@ -29900,7 +29978,7 @@ private static void _clinit_autosplit_dinit_1() { "Verifying", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(609); + getDescriptor().getMessageTypes().get(611); internal_static_google_cloud_compute_v1_InstanceGroupManagerAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerAggregatedList_descriptor, @@ -29918,7 +29996,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerAllInstancesConfig_descriptor = - getDescriptor().getMessageTypes().get(610); + getDescriptor().getMessageTypes().get(612); internal_static_google_cloud_compute_v1_InstanceGroupManagerAllInstancesConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerAllInstancesConfig_descriptor, @@ -29926,7 +30004,7 @@ private static void _clinit_autosplit_dinit_1() { "Properties", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerAutoHealingPolicy_descriptor = - getDescriptor().getMessageTypes().get(611); + getDescriptor().getMessageTypes().get(613); internal_static_google_cloud_compute_v1_InstanceGroupManagerAutoHealingPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerAutoHealingPolicy_descriptor, @@ -29934,7 +30012,7 @@ private static void _clinit_autosplit_dinit_1() { "HealthCheck", "InitialDelaySec", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerInstanceFlexibilityPolicy_descriptor = - getDescriptor().getMessageTypes().get(612); + getDescriptor().getMessageTypes().get(614); internal_static_google_cloud_compute_v1_InstanceGroupManagerInstanceFlexibilityPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerInstanceFlexibilityPolicy_descriptor, @@ -29952,7 +30030,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection_descriptor = - getDescriptor().getMessageTypes().get(613); + getDescriptor().getMessageTypes().get(615); internal_static_google_cloud_compute_v1_InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection_descriptor, @@ -29960,7 +30038,7 @@ private static void _clinit_autosplit_dinit_1() { "MachineTypes", "Rank", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerInstanceLifecyclePolicy_descriptor = - getDescriptor().getMessageTypes().get(614); + getDescriptor().getMessageTypes().get(616); internal_static_google_cloud_compute_v1_InstanceGroupManagerInstanceLifecyclePolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerInstanceLifecyclePolicy_descriptor, @@ -29968,7 +30046,7 @@ private static void _clinit_autosplit_dinit_1() { "DefaultActionOnFailure", "ForceUpdateOnRepair", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerList_descriptor = - getDescriptor().getMessageTypes().get(615); + getDescriptor().getMessageTypes().get(617); internal_static_google_cloud_compute_v1_InstanceGroupManagerList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerList_descriptor, @@ -29976,7 +30054,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(616); + getDescriptor().getMessageTypes().get(618); internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequest_descriptor, @@ -29995,7 +30073,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequestStatus_descriptor = - getDescriptor().getMessageTypes().get(617); + getDescriptor().getMessageTypes().get(619); internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequestStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequestStatus_descriptor, @@ -30003,7 +30081,7 @@ private static void _clinit_autosplit_dinit_1() { "Error", "LastAttempt", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequestStatusLastAttempt_descriptor = - getDescriptor().getMessageTypes().get(618); + getDescriptor().getMessageTypes().get(620); internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequestStatusLastAttempt_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequestStatusLastAttempt_descriptor, @@ -30011,7 +30089,7 @@ private static void _clinit_autosplit_dinit_1() { "Error", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequestsListResponse_descriptor = - getDescriptor().getMessageTypes().get(619); + getDescriptor().getMessageTypes().get(621); internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequestsListResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerResizeRequestsListResponse_descriptor, @@ -30019,7 +30097,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerStandbyPolicy_descriptor = - getDescriptor().getMessageTypes().get(620); + getDescriptor().getMessageTypes().get(622); internal_static_google_cloud_compute_v1_InstanceGroupManagerStandbyPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerStandbyPolicy_descriptor, @@ -30027,7 +30105,7 @@ private static void _clinit_autosplit_dinit_1() { "InitialDelaySec", "Mode", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatus_descriptor = - getDescriptor().getMessageTypes().get(621); + getDescriptor().getMessageTypes().get(623); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerStatus_descriptor, @@ -30035,7 +30113,7 @@ private static void _clinit_autosplit_dinit_1() { "AllInstancesConfig", "Autoscaler", "IsStable", "Stateful", "VersionTarget", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusAllInstancesConfig_descriptor = - getDescriptor().getMessageTypes().get(622); + getDescriptor().getMessageTypes().get(624); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusAllInstancesConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusAllInstancesConfig_descriptor, @@ -30043,7 +30121,7 @@ private static void _clinit_autosplit_dinit_1() { "CurrentRevision", "Effective", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusStateful_descriptor = - getDescriptor().getMessageTypes().get(623); + getDescriptor().getMessageTypes().get(625); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusStateful_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusStateful_descriptor, @@ -30051,7 +30129,7 @@ private static void _clinit_autosplit_dinit_1() { "HasStatefulConfig", "PerInstanceConfigs", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusStatefulPerInstanceConfigs_descriptor = - getDescriptor().getMessageTypes().get(624); + getDescriptor().getMessageTypes().get(626); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusStatefulPerInstanceConfigs_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusStatefulPerInstanceConfigs_descriptor, @@ -30059,7 +30137,7 @@ private static void _clinit_autosplit_dinit_1() { "AllEffective", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusVersionTarget_descriptor = - getDescriptor().getMessageTypes().get(625); + getDescriptor().getMessageTypes().get(627); internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusVersionTarget_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerStatusVersionTarget_descriptor, @@ -30067,7 +30145,7 @@ private static void _clinit_autosplit_dinit_1() { "IsReached", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerUpdatePolicy_descriptor = - getDescriptor().getMessageTypes().get(626); + getDescriptor().getMessageTypes().get(628); internal_static_google_cloud_compute_v1_InstanceGroupManagerUpdatePolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerUpdatePolicy_descriptor, @@ -30081,7 +30159,7 @@ private static void _clinit_autosplit_dinit_1() { "Type", }); internal_static_google_cloud_compute_v1_InstanceGroupManagerVersion_descriptor = - getDescriptor().getMessageTypes().get(627); + getDescriptor().getMessageTypes().get(629); internal_static_google_cloud_compute_v1_InstanceGroupManagerVersion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagerVersion_descriptor, @@ -30089,7 +30167,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceTemplate", "Name", "TargetSize", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersAbandonInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(628); + getDescriptor().getMessageTypes().get(630); internal_static_google_cloud_compute_v1_InstanceGroupManagersAbandonInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersAbandonInstancesRequest_descriptor, @@ -30097,7 +30175,7 @@ private static void _clinit_autosplit_dinit_1() { "Instances", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersApplyUpdatesRequest_descriptor = - getDescriptor().getMessageTypes().get(629); + getDescriptor().getMessageTypes().get(631); internal_static_google_cloud_compute_v1_InstanceGroupManagersApplyUpdatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersApplyUpdatesRequest_descriptor, @@ -30105,7 +30183,7 @@ private static void _clinit_autosplit_dinit_1() { "AllInstances", "Instances", "MinimalAction", "MostDisruptiveAllowedAction", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersCreateInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(630); + getDescriptor().getMessageTypes().get(632); internal_static_google_cloud_compute_v1_InstanceGroupManagersCreateInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersCreateInstancesRequest_descriptor, @@ -30113,7 +30191,7 @@ private static void _clinit_autosplit_dinit_1() { "Instances", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersDeleteInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(631); + getDescriptor().getMessageTypes().get(633); internal_static_google_cloud_compute_v1_InstanceGroupManagersDeleteInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersDeleteInstancesRequest_descriptor, @@ -30121,7 +30199,7 @@ private static void _clinit_autosplit_dinit_1() { "Instances", "SkipInstancesOnValidationError", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersDeletePerInstanceConfigsReq_descriptor = - getDescriptor().getMessageTypes().get(632); + getDescriptor().getMessageTypes().get(634); internal_static_google_cloud_compute_v1_InstanceGroupManagersDeletePerInstanceConfigsReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersDeletePerInstanceConfigsReq_descriptor, @@ -30129,7 +30207,7 @@ private static void _clinit_autosplit_dinit_1() { "Names", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersListErrorsResponse_descriptor = - getDescriptor().getMessageTypes().get(633); + getDescriptor().getMessageTypes().get(635); internal_static_google_cloud_compute_v1_InstanceGroupManagersListErrorsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersListErrorsResponse_descriptor, @@ -30137,7 +30215,7 @@ private static void _clinit_autosplit_dinit_1() { "Items", "NextPageToken", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersListManagedInstancesResponse_descriptor = - getDescriptor().getMessageTypes().get(634); + getDescriptor().getMessageTypes().get(636); internal_static_google_cloud_compute_v1_InstanceGroupManagersListManagedInstancesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersListManagedInstancesResponse_descriptor, @@ -30145,7 +30223,7 @@ private static void _clinit_autosplit_dinit_1() { "ManagedInstances", "NextPageToken", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersListPerInstanceConfigsResp_descriptor = - getDescriptor().getMessageTypes().get(635); + getDescriptor().getMessageTypes().get(637); internal_static_google_cloud_compute_v1_InstanceGroupManagersListPerInstanceConfigsResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersListPerInstanceConfigsResp_descriptor, @@ -30153,7 +30231,7 @@ private static void _clinit_autosplit_dinit_1() { "Items", "NextPageToken", "Warning", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersPatchPerInstanceConfigsReq_descriptor = - getDescriptor().getMessageTypes().get(636); + getDescriptor().getMessageTypes().get(638); internal_static_google_cloud_compute_v1_InstanceGroupManagersPatchPerInstanceConfigsReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersPatchPerInstanceConfigsReq_descriptor, @@ -30161,7 +30239,7 @@ private static void _clinit_autosplit_dinit_1() { "PerInstanceConfigs", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersRecreateInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(637); + getDescriptor().getMessageTypes().get(639); internal_static_google_cloud_compute_v1_InstanceGroupManagersRecreateInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersRecreateInstancesRequest_descriptor, @@ -30169,7 +30247,7 @@ private static void _clinit_autosplit_dinit_1() { "Instances", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersResumeInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(638); + getDescriptor().getMessageTypes().get(640); internal_static_google_cloud_compute_v1_InstanceGroupManagersResumeInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersResumeInstancesRequest_descriptor, @@ -30177,7 +30255,7 @@ private static void _clinit_autosplit_dinit_1() { "Instances", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersScopedList_descriptor = - getDescriptor().getMessageTypes().get(639); + getDescriptor().getMessageTypes().get(641); internal_static_google_cloud_compute_v1_InstanceGroupManagersScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersScopedList_descriptor, @@ -30185,7 +30263,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceGroupManagers", "Warning", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersSetInstanceTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(640); + getDescriptor().getMessageTypes().get(642); internal_static_google_cloud_compute_v1_InstanceGroupManagersSetInstanceTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersSetInstanceTemplateRequest_descriptor, @@ -30193,7 +30271,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceTemplate", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersSetTargetPoolsRequest_descriptor = - getDescriptor().getMessageTypes().get(641); + getDescriptor().getMessageTypes().get(643); internal_static_google_cloud_compute_v1_InstanceGroupManagersSetTargetPoolsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersSetTargetPoolsRequest_descriptor, @@ -30201,7 +30279,7 @@ private static void _clinit_autosplit_dinit_1() { "Fingerprint", "TargetPools", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersStartInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(642); + getDescriptor().getMessageTypes().get(644); internal_static_google_cloud_compute_v1_InstanceGroupManagersStartInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersStartInstancesRequest_descriptor, @@ -30209,7 +30287,7 @@ private static void _clinit_autosplit_dinit_1() { "Instances", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersStopInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(643); + getDescriptor().getMessageTypes().get(645); internal_static_google_cloud_compute_v1_InstanceGroupManagersStopInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersStopInstancesRequest_descriptor, @@ -30217,7 +30295,7 @@ private static void _clinit_autosplit_dinit_1() { "ForceStop", "Instances", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersSuspendInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(644); + getDescriptor().getMessageTypes().get(646); internal_static_google_cloud_compute_v1_InstanceGroupManagersSuspendInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersSuspendInstancesRequest_descriptor, @@ -30225,7 +30303,7 @@ private static void _clinit_autosplit_dinit_1() { "ForceSuspend", "Instances", }); internal_static_google_cloud_compute_v1_InstanceGroupManagersUpdatePerInstanceConfigsReq_descriptor = - getDescriptor().getMessageTypes().get(645); + getDescriptor().getMessageTypes().get(647); internal_static_google_cloud_compute_v1_InstanceGroupManagersUpdatePerInstanceConfigsReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupManagersUpdatePerInstanceConfigsReq_descriptor, @@ -30233,7 +30311,7 @@ private static void _clinit_autosplit_dinit_1() { "PerInstanceConfigs", }); internal_static_google_cloud_compute_v1_InstanceGroupsAddInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(646); + getDescriptor().getMessageTypes().get(648); internal_static_google_cloud_compute_v1_InstanceGroupsAddInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupsAddInstancesRequest_descriptor, @@ -30241,7 +30319,7 @@ private static void _clinit_autosplit_dinit_1() { "Instances", }); internal_static_google_cloud_compute_v1_InstanceGroupsListInstances_descriptor = - getDescriptor().getMessageTypes().get(647); + getDescriptor().getMessageTypes().get(649); internal_static_google_cloud_compute_v1_InstanceGroupsListInstances_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupsListInstances_descriptor, @@ -30249,7 +30327,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(648); + getDescriptor().getMessageTypes().get(650); internal_static_google_cloud_compute_v1_InstanceGroupsListInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupsListInstancesRequest_descriptor, @@ -30257,7 +30335,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceState", }); internal_static_google_cloud_compute_v1_InstanceGroupsRemoveInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(649); + getDescriptor().getMessageTypes().get(651); internal_static_google_cloud_compute_v1_InstanceGroupsRemoveInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupsRemoveInstancesRequest_descriptor, @@ -30265,7 +30343,7 @@ private static void _clinit_autosplit_dinit_1() { "Instances", }); internal_static_google_cloud_compute_v1_InstanceGroupsScopedList_descriptor = - getDescriptor().getMessageTypes().get(650); + getDescriptor().getMessageTypes().get(652); internal_static_google_cloud_compute_v1_InstanceGroupsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupsScopedList_descriptor, @@ -30273,7 +30351,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceGroups", "Warning", }); internal_static_google_cloud_compute_v1_InstanceGroupsSetNamedPortsRequest_descriptor = - getDescriptor().getMessageTypes().get(651); + getDescriptor().getMessageTypes().get(653); internal_static_google_cloud_compute_v1_InstanceGroupsSetNamedPortsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceGroupsSetNamedPortsRequest_descriptor, @@ -30281,7 +30359,7 @@ private static void _clinit_autosplit_dinit_1() { "Fingerprint", "NamedPorts", }); internal_static_google_cloud_compute_v1_InstanceList_descriptor = - getDescriptor().getMessageTypes().get(652); + getDescriptor().getMessageTypes().get(654); internal_static_google_cloud_compute_v1_InstanceList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceList_descriptor, @@ -30289,7 +30367,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(653); + getDescriptor().getMessageTypes().get(655); internal_static_google_cloud_compute_v1_InstanceListReferrers_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceListReferrers_descriptor, @@ -30297,7 +30375,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(654); + getDescriptor().getMessageTypes().get(656); internal_static_google_cloud_compute_v1_InstanceManagedByIgmError_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceManagedByIgmError_descriptor, @@ -30305,7 +30383,7 @@ private static void _clinit_autosplit_dinit_1() { "Error", "InstanceActionDetails", "Timestamp", }); internal_static_google_cloud_compute_v1_InstanceManagedByIgmErrorInstanceActionDetails_descriptor = - getDescriptor().getMessageTypes().get(655); + getDescriptor().getMessageTypes().get(657); internal_static_google_cloud_compute_v1_InstanceManagedByIgmErrorInstanceActionDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceManagedByIgmErrorInstanceActionDetails_descriptor, @@ -30313,7 +30391,7 @@ private static void _clinit_autosplit_dinit_1() { "Action", "Instance", "Version", }); internal_static_google_cloud_compute_v1_InstanceManagedByIgmErrorManagedInstanceError_descriptor = - getDescriptor().getMessageTypes().get(656); + getDescriptor().getMessageTypes().get(658); internal_static_google_cloud_compute_v1_InstanceManagedByIgmErrorManagedInstanceError_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceManagedByIgmErrorManagedInstanceError_descriptor, @@ -30321,7 +30399,7 @@ private static void _clinit_autosplit_dinit_1() { "Code", "Message", }); internal_static_google_cloud_compute_v1_InstanceMoveRequest_descriptor = - getDescriptor().getMessageTypes().get(657); + getDescriptor().getMessageTypes().get(659); internal_static_google_cloud_compute_v1_InstanceMoveRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceMoveRequest_descriptor, @@ -30329,7 +30407,7 @@ private static void _clinit_autosplit_dinit_1() { "DestinationZone", "TargetInstance", }); internal_static_google_cloud_compute_v1_InstanceParams_descriptor = - getDescriptor().getMessageTypes().get(658); + getDescriptor().getMessageTypes().get(660); internal_static_google_cloud_compute_v1_InstanceParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceParams_descriptor, @@ -30345,7 +30423,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstanceProperties_descriptor = - getDescriptor().getMessageTypes().get(659); + getDescriptor().getMessageTypes().get(661); internal_static_google_cloud_compute_v1_InstanceProperties_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceProperties_descriptor, @@ -30393,7 +30471,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstancePropertiesPatch_descriptor = - getDescriptor().getMessageTypes().get(660); + getDescriptor().getMessageTypes().get(662); internal_static_google_cloud_compute_v1_InstancePropertiesPatch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancePropertiesPatch_descriptor, @@ -30421,7 +30499,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstanceReference_descriptor = - getDescriptor().getMessageTypes().get(661); + getDescriptor().getMessageTypes().get(663); internal_static_google_cloud_compute_v1_InstanceReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceReference_descriptor, @@ -30429,7 +30507,7 @@ private static void _clinit_autosplit_dinit_1() { "Instance", }); internal_static_google_cloud_compute_v1_InstanceSettings_descriptor = - getDescriptor().getMessageTypes().get(662); + getDescriptor().getMessageTypes().get(664); internal_static_google_cloud_compute_v1_InstanceSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceSettings_descriptor, @@ -30437,7 +30515,7 @@ private static void _clinit_autosplit_dinit_1() { "Fingerprint", "Kind", "Metadata", "Zone", }); internal_static_google_cloud_compute_v1_InstanceSettingsMetadata_descriptor = - getDescriptor().getMessageTypes().get(663); + getDescriptor().getMessageTypes().get(665); internal_static_google_cloud_compute_v1_InstanceSettingsMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceSettingsMetadata_descriptor, @@ -30455,7 +30533,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstanceTemplate_descriptor = - getDescriptor().getMessageTypes().get(664); + getDescriptor().getMessageTypes().get(666); internal_static_google_cloud_compute_v1_InstanceTemplate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceTemplate_descriptor, @@ -30472,7 +30550,7 @@ private static void _clinit_autosplit_dinit_1() { "SourceInstanceParams", }); internal_static_google_cloud_compute_v1_InstanceTemplateAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(665); + getDescriptor().getMessageTypes().get(667); internal_static_google_cloud_compute_v1_InstanceTemplateAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceTemplateAggregatedList_descriptor, @@ -30490,7 +30568,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstanceTemplateList_descriptor = - getDescriptor().getMessageTypes().get(666); + getDescriptor().getMessageTypes().get(668); internal_static_google_cloud_compute_v1_InstanceTemplateList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceTemplateList_descriptor, @@ -30498,7 +30576,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(667); + getDescriptor().getMessageTypes().get(669); internal_static_google_cloud_compute_v1_InstanceTemplatesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceTemplatesScopedList_descriptor, @@ -30506,7 +30584,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceTemplates", "Warning", }); internal_static_google_cloud_compute_v1_InstanceWithNamedPorts_descriptor = - getDescriptor().getMessageTypes().get(668); + getDescriptor().getMessageTypes().get(670); internal_static_google_cloud_compute_v1_InstanceWithNamedPorts_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstanceWithNamedPorts_descriptor, @@ -30514,7 +30592,7 @@ private static void _clinit_autosplit_dinit_1() { "Instance", "NamedPorts", "Status", }); internal_static_google_cloud_compute_v1_InstancesAddResourcePoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(669); + getDescriptor().getMessageTypes().get(671); internal_static_google_cloud_compute_v1_InstancesAddResourcePoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesAddResourcePoliciesRequest_descriptor, @@ -30522,7 +30600,7 @@ private static void _clinit_autosplit_dinit_1() { "ResourcePolicies", }); internal_static_google_cloud_compute_v1_InstancesBulkInsertOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(670); + getDescriptor().getMessageTypes().get(672); internal_static_google_cloud_compute_v1_InstancesBulkInsertOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesBulkInsertOperationMetadata_descriptor, @@ -30540,7 +30618,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstancesGetEffectiveFirewallsResponse_descriptor = - getDescriptor().getMessageTypes().get(671); + getDescriptor().getMessageTypes().get(673); internal_static_google_cloud_compute_v1_InstancesGetEffectiveFirewallsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesGetEffectiveFirewallsResponse_descriptor, @@ -30548,7 +30626,7 @@ private static void _clinit_autosplit_dinit_1() { "FirewallPolicys", "Firewalls", }); internal_static_google_cloud_compute_v1_InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy_descriptor = - getDescriptor().getMessageTypes().get(672); + getDescriptor().getMessageTypes().get(674); internal_static_google_cloud_compute_v1_InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy_descriptor, @@ -30556,7 +30634,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(673); + getDescriptor().getMessageTypes().get(675); internal_static_google_cloud_compute_v1_InstancesRemoveResourcePoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesRemoveResourcePoliciesRequest_descriptor, @@ -30564,7 +30642,7 @@ private static void _clinit_autosplit_dinit_1() { "ResourcePolicies", }); internal_static_google_cloud_compute_v1_InstancesScopedList_descriptor = - getDescriptor().getMessageTypes().get(674); + getDescriptor().getMessageTypes().get(676); internal_static_google_cloud_compute_v1_InstancesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesScopedList_descriptor, @@ -30572,7 +30650,7 @@ private static void _clinit_autosplit_dinit_1() { "Instances", "Warning", }); internal_static_google_cloud_compute_v1_InstancesSetLabelsRequest_descriptor = - getDescriptor().getMessageTypes().get(675); + getDescriptor().getMessageTypes().get(677); internal_static_google_cloud_compute_v1_InstancesSetLabelsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesSetLabelsRequest_descriptor, @@ -30590,7 +30668,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstancesSetMachineResourcesRequest_descriptor = - getDescriptor().getMessageTypes().get(676); + getDescriptor().getMessageTypes().get(678); internal_static_google_cloud_compute_v1_InstancesSetMachineResourcesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesSetMachineResourcesRequest_descriptor, @@ -30598,7 +30676,7 @@ private static void _clinit_autosplit_dinit_1() { "GuestAccelerators", }); internal_static_google_cloud_compute_v1_InstancesSetMachineTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(677); + getDescriptor().getMessageTypes().get(679); internal_static_google_cloud_compute_v1_InstancesSetMachineTypeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesSetMachineTypeRequest_descriptor, @@ -30606,7 +30684,7 @@ private static void _clinit_autosplit_dinit_1() { "MachineType", }); internal_static_google_cloud_compute_v1_InstancesSetMinCpuPlatformRequest_descriptor = - getDescriptor().getMessageTypes().get(678); + getDescriptor().getMessageTypes().get(680); internal_static_google_cloud_compute_v1_InstancesSetMinCpuPlatformRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesSetMinCpuPlatformRequest_descriptor, @@ -30614,7 +30692,7 @@ private static void _clinit_autosplit_dinit_1() { "MinCpuPlatform", }); internal_static_google_cloud_compute_v1_InstancesSetNameRequest_descriptor = - getDescriptor().getMessageTypes().get(679); + getDescriptor().getMessageTypes().get(681); internal_static_google_cloud_compute_v1_InstancesSetNameRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesSetNameRequest_descriptor, @@ -30622,7 +30700,7 @@ private static void _clinit_autosplit_dinit_1() { "CurrentName", "Name", }); internal_static_google_cloud_compute_v1_InstancesSetSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(680); + getDescriptor().getMessageTypes().get(682); internal_static_google_cloud_compute_v1_InstancesSetSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesSetSecurityPolicyRequest_descriptor, @@ -30630,7 +30708,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkInterfaces", "SecurityPolicy", }); internal_static_google_cloud_compute_v1_InstancesSetServiceAccountRequest_descriptor = - getDescriptor().getMessageTypes().get(681); + getDescriptor().getMessageTypes().get(683); internal_static_google_cloud_compute_v1_InstancesSetServiceAccountRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesSetServiceAccountRequest_descriptor, @@ -30638,7 +30716,7 @@ private static void _clinit_autosplit_dinit_1() { "Email", "Scopes", }); internal_static_google_cloud_compute_v1_InstancesStartWithEncryptionKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(682); + getDescriptor().getMessageTypes().get(684); internal_static_google_cloud_compute_v1_InstancesStartWithEncryptionKeyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstancesStartWithEncryptionKeyRequest_descriptor, @@ -30646,7 +30724,7 @@ private static void _clinit_autosplit_dinit_1() { "Disks", }); internal_static_google_cloud_compute_v1_InstantSnapshot_descriptor = - getDescriptor().getMessageTypes().get(683); + getDescriptor().getMessageTypes().get(685); internal_static_google_cloud_compute_v1_InstantSnapshot_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstantSnapshot_descriptor, @@ -30680,7 +30758,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstantSnapshotAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(684); + getDescriptor().getMessageTypes().get(686); internal_static_google_cloud_compute_v1_InstantSnapshotAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstantSnapshotAggregatedList_descriptor, @@ -30698,7 +30776,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InstantSnapshotList_descriptor = - getDescriptor().getMessageTypes().get(685); + getDescriptor().getMessageTypes().get(687); internal_static_google_cloud_compute_v1_InstantSnapshotList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstantSnapshotList_descriptor, @@ -30706,7 +30784,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(686); + getDescriptor().getMessageTypes().get(688); internal_static_google_cloud_compute_v1_InstantSnapshotResourceStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstantSnapshotResourceStatus_descriptor, @@ -30714,7 +30792,7 @@ private static void _clinit_autosplit_dinit_1() { "StorageSizeBytes", }); internal_static_google_cloud_compute_v1_InstantSnapshotsScopedList_descriptor = - getDescriptor().getMessageTypes().get(687); + getDescriptor().getMessageTypes().get(689); internal_static_google_cloud_compute_v1_InstantSnapshotsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InstantSnapshotsScopedList_descriptor, @@ -30722,7 +30800,7 @@ private static void _clinit_autosplit_dinit_1() { "InstantSnapshots", "Warning", }); internal_static_google_cloud_compute_v1_Int64RangeMatch_descriptor = - getDescriptor().getMessageTypes().get(688); + getDescriptor().getMessageTypes().get(690); internal_static_google_cloud_compute_v1_Int64RangeMatch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Int64RangeMatch_descriptor, @@ -30730,7 +30808,7 @@ private static void _clinit_autosplit_dinit_1() { "RangeEnd", "RangeStart", }); internal_static_google_cloud_compute_v1_Interconnect_descriptor = - getDescriptor().getMessageTypes().get(689); + getDescriptor().getMessageTypes().get(691); internal_static_google_cloud_compute_v1_Interconnect_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Interconnect_descriptor, @@ -30775,7 +30853,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InterconnectAttachment_descriptor = - getDescriptor().getMessageTypes().get(690); + getDescriptor().getMessageTypes().get(692); internal_static_google_cloud_compute_v1_InterconnectAttachment_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachment_descriptor, @@ -30832,7 +30910,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(691); + getDescriptor().getMessageTypes().get(693); internal_static_google_cloud_compute_v1_InterconnectAttachmentAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentAggregatedList_descriptor, @@ -30850,7 +30928,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentConfigurationConstraints_descriptor = - getDescriptor().getMessageTypes().get(692); + getDescriptor().getMessageTypes().get(694); internal_static_google_cloud_compute_v1_InterconnectAttachmentConfigurationConstraints_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentConfigurationConstraints_descriptor, @@ -30858,7 +30936,7 @@ private static void _clinit_autosplit_dinit_1() { "BgpMd5", "BgpPeerAsnRanges", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange_descriptor = - getDescriptor().getMessageTypes().get(693); + getDescriptor().getMessageTypes().get(695); internal_static_google_cloud_compute_v1_InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange_descriptor, @@ -30866,7 +30944,7 @@ private static void _clinit_autosplit_dinit_1() { "Max", "Min", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentList_descriptor = - getDescriptor().getMessageTypes().get(694); + getDescriptor().getMessageTypes().get(696); internal_static_google_cloud_compute_v1_InterconnectAttachmentList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentList_descriptor, @@ -30874,7 +30952,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(695); + getDescriptor().getMessageTypes().get(697); internal_static_google_cloud_compute_v1_InterconnectAttachmentPartnerMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentPartnerMetadata_descriptor, @@ -30882,7 +30960,7 @@ private static void _clinit_autosplit_dinit_1() { "InterconnectName", "PartnerName", "PortalUrl", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentPrivateInfo_descriptor = - getDescriptor().getMessageTypes().get(696); + getDescriptor().getMessageTypes().get(698); internal_static_google_cloud_compute_v1_InterconnectAttachmentPrivateInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentPrivateInfo_descriptor, @@ -30890,7 +30968,7 @@ private static void _clinit_autosplit_dinit_1() { "Tag8021Q", }); internal_static_google_cloud_compute_v1_InterconnectAttachmentsScopedList_descriptor = - getDescriptor().getMessageTypes().get(697); + getDescriptor().getMessageTypes().get(699); internal_static_google_cloud_compute_v1_InterconnectAttachmentsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectAttachmentsScopedList_descriptor, @@ -30898,7 +30976,7 @@ private static void _clinit_autosplit_dinit_1() { "InterconnectAttachments", "Warning", }); internal_static_google_cloud_compute_v1_InterconnectCircuitInfo_descriptor = - getDescriptor().getMessageTypes().get(698); + getDescriptor().getMessageTypes().get(700); internal_static_google_cloud_compute_v1_InterconnectCircuitInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectCircuitInfo_descriptor, @@ -30906,7 +30984,7 @@ private static void _clinit_autosplit_dinit_1() { "CustomerDemarcId", "GoogleCircuitId", "GoogleDemarcId", }); internal_static_google_cloud_compute_v1_InterconnectDiagnostics_descriptor = - getDescriptor().getMessageTypes().get(699); + getDescriptor().getMessageTypes().get(701); internal_static_google_cloud_compute_v1_InterconnectDiagnostics_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectDiagnostics_descriptor, @@ -30918,7 +30996,7 @@ private static void _clinit_autosplit_dinit_1() { "MacAddress", }); internal_static_google_cloud_compute_v1_InterconnectDiagnosticsARPEntry_descriptor = - getDescriptor().getMessageTypes().get(700); + getDescriptor().getMessageTypes().get(702); internal_static_google_cloud_compute_v1_InterconnectDiagnosticsARPEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectDiagnosticsARPEntry_descriptor, @@ -30926,7 +31004,7 @@ private static void _clinit_autosplit_dinit_1() { "IpAddress", "MacAddress", }); internal_static_google_cloud_compute_v1_InterconnectDiagnosticsLinkLACPStatus_descriptor = - getDescriptor().getMessageTypes().get(701); + getDescriptor().getMessageTypes().get(703); internal_static_google_cloud_compute_v1_InterconnectDiagnosticsLinkLACPStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectDiagnosticsLinkLACPStatus_descriptor, @@ -30934,7 +31012,7 @@ private static void _clinit_autosplit_dinit_1() { "GoogleSystemId", "NeighborSystemId", "State", }); internal_static_google_cloud_compute_v1_InterconnectDiagnosticsLinkOpticalPower_descriptor = - getDescriptor().getMessageTypes().get(702); + getDescriptor().getMessageTypes().get(704); internal_static_google_cloud_compute_v1_InterconnectDiagnosticsLinkOpticalPower_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectDiagnosticsLinkOpticalPower_descriptor, @@ -30942,7 +31020,7 @@ private static void _clinit_autosplit_dinit_1() { "State", "Value", }); internal_static_google_cloud_compute_v1_InterconnectDiagnosticsLinkStatus_descriptor = - getDescriptor().getMessageTypes().get(703); + getDescriptor().getMessageTypes().get(705); internal_static_google_cloud_compute_v1_InterconnectDiagnosticsLinkStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectDiagnosticsLinkStatus_descriptor, @@ -30957,7 +31035,7 @@ private static void _clinit_autosplit_dinit_1() { "TransmittingOpticalPower", }); internal_static_google_cloud_compute_v1_InterconnectDiagnosticsMacsecStatus_descriptor = - getDescriptor().getMessageTypes().get(704); + getDescriptor().getMessageTypes().get(706); internal_static_google_cloud_compute_v1_InterconnectDiagnosticsMacsecStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectDiagnosticsMacsecStatus_descriptor, @@ -30965,7 +31043,7 @@ private static void _clinit_autosplit_dinit_1() { "Ckn", "Operational", }); internal_static_google_cloud_compute_v1_InterconnectList_descriptor = - getDescriptor().getMessageTypes().get(705); + getDescriptor().getMessageTypes().get(707); internal_static_google_cloud_compute_v1_InterconnectList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectList_descriptor, @@ -30973,7 +31051,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(706); + getDescriptor().getMessageTypes().get(708); internal_static_google_cloud_compute_v1_InterconnectLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectLocation_descriptor, @@ -30998,7 +31076,7 @@ private static void _clinit_autosplit_dinit_1() { "SupportsPzs", }); internal_static_google_cloud_compute_v1_InterconnectLocationList_descriptor = - getDescriptor().getMessageTypes().get(707); + getDescriptor().getMessageTypes().get(709); internal_static_google_cloud_compute_v1_InterconnectLocationList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectLocationList_descriptor, @@ -31006,7 +31084,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(708); + getDescriptor().getMessageTypes().get(710); internal_static_google_cloud_compute_v1_InterconnectLocationRegionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectLocationRegionInfo_descriptor, @@ -31014,7 +31092,7 @@ private static void _clinit_autosplit_dinit_1() { "ExpectedRttMs", "LocationPresence", "Region", }); internal_static_google_cloud_compute_v1_InterconnectMacsec_descriptor = - getDescriptor().getMessageTypes().get(709); + getDescriptor().getMessageTypes().get(711); internal_static_google_cloud_compute_v1_InterconnectMacsec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectMacsec_descriptor, @@ -31022,7 +31100,7 @@ private static void _clinit_autosplit_dinit_1() { "FailOpen", "PreSharedKeys", }); internal_static_google_cloud_compute_v1_InterconnectMacsecConfig_descriptor = - getDescriptor().getMessageTypes().get(710); + getDescriptor().getMessageTypes().get(712); internal_static_google_cloud_compute_v1_InterconnectMacsecConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectMacsecConfig_descriptor, @@ -31030,7 +31108,7 @@ private static void _clinit_autosplit_dinit_1() { "PreSharedKeys", }); internal_static_google_cloud_compute_v1_InterconnectMacsecConfigPreSharedKey_descriptor = - getDescriptor().getMessageTypes().get(711); + getDescriptor().getMessageTypes().get(713); internal_static_google_cloud_compute_v1_InterconnectMacsecConfigPreSharedKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectMacsecConfigPreSharedKey_descriptor, @@ -31038,7 +31116,7 @@ private static void _clinit_autosplit_dinit_1() { "Cak", "Ckn", "Name", "StartTime", }); internal_static_google_cloud_compute_v1_InterconnectMacsecPreSharedKey_descriptor = - getDescriptor().getMessageTypes().get(712); + getDescriptor().getMessageTypes().get(714); internal_static_google_cloud_compute_v1_InterconnectMacsecPreSharedKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectMacsecPreSharedKey_descriptor, @@ -31046,7 +31124,7 @@ private static void _clinit_autosplit_dinit_1() { "Name", "StartTime", }); internal_static_google_cloud_compute_v1_InterconnectOutageNotification_descriptor = - getDescriptor().getMessageTypes().get(713); + getDescriptor().getMessageTypes().get(715); internal_static_google_cloud_compute_v1_InterconnectOutageNotification_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectOutageNotification_descriptor, @@ -31061,7 +31139,7 @@ private static void _clinit_autosplit_dinit_1() { "State", }); internal_static_google_cloud_compute_v1_InterconnectRemoteLocation_descriptor = - getDescriptor().getMessageTypes().get(714); + getDescriptor().getMessageTypes().get(716); internal_static_google_cloud_compute_v1_InterconnectRemoteLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectRemoteLocation_descriptor, @@ -31088,7 +31166,7 @@ private static void _clinit_autosplit_dinit_1() { "Status", }); internal_static_google_cloud_compute_v1_InterconnectRemoteLocationConstraints_descriptor = - getDescriptor().getMessageTypes().get(715); + getDescriptor().getMessageTypes().get(717); internal_static_google_cloud_compute_v1_InterconnectRemoteLocationConstraints_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectRemoteLocationConstraints_descriptor, @@ -31096,7 +31174,7 @@ private static void _clinit_autosplit_dinit_1() { "PortPairRemoteLocation", "PortPairVlan", "SubnetLengthRange", }); internal_static_google_cloud_compute_v1_InterconnectRemoteLocationConstraintsSubnetLengthRange_descriptor = - getDescriptor().getMessageTypes().get(716); + getDescriptor().getMessageTypes().get(718); internal_static_google_cloud_compute_v1_InterconnectRemoteLocationConstraintsSubnetLengthRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectRemoteLocationConstraintsSubnetLengthRange_descriptor, @@ -31104,7 +31182,7 @@ private static void _clinit_autosplit_dinit_1() { "Max", "Min", }); internal_static_google_cloud_compute_v1_InterconnectRemoteLocationList_descriptor = - getDescriptor().getMessageTypes().get(717); + getDescriptor().getMessageTypes().get(719); internal_static_google_cloud_compute_v1_InterconnectRemoteLocationList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectRemoteLocationList_descriptor, @@ -31112,7 +31190,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(718); + getDescriptor().getMessageTypes().get(720); internal_static_google_cloud_compute_v1_InterconnectRemoteLocationPermittedConnections_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectRemoteLocationPermittedConnections_descriptor, @@ -31120,7 +31198,7 @@ private static void _clinit_autosplit_dinit_1() { "InterconnectLocation", }); internal_static_google_cloud_compute_v1_InterconnectsGetDiagnosticsResponse_descriptor = - getDescriptor().getMessageTypes().get(719); + getDescriptor().getMessageTypes().get(721); internal_static_google_cloud_compute_v1_InterconnectsGetDiagnosticsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectsGetDiagnosticsResponse_descriptor, @@ -31128,7 +31206,7 @@ private static void _clinit_autosplit_dinit_1() { "Result", }); internal_static_google_cloud_compute_v1_InterconnectsGetMacsecConfigResponse_descriptor = - getDescriptor().getMessageTypes().get(720); + getDescriptor().getMessageTypes().get(722); internal_static_google_cloud_compute_v1_InterconnectsGetMacsecConfigResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InterconnectsGetMacsecConfigResponse_descriptor, @@ -31136,7 +31214,7 @@ private static void _clinit_autosplit_dinit_1() { "Etag", "Result", }); internal_static_google_cloud_compute_v1_InvalidateCacheUrlMapRequest_descriptor = - getDescriptor().getMessageTypes().get(721); + getDescriptor().getMessageTypes().get(723); internal_static_google_cloud_compute_v1_InvalidateCacheUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_InvalidateCacheUrlMapRequest_descriptor, @@ -31144,7 +31222,7 @@ private static void _clinit_autosplit_dinit_1() { "CacheInvalidationRuleResource", "Project", "RequestId", "UrlMap", }); internal_static_google_cloud_compute_v1_Items_descriptor = - getDescriptor().getMessageTypes().get(722); + getDescriptor().getMessageTypes().get(724); internal_static_google_cloud_compute_v1_Items_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Items_descriptor, @@ -31152,7 +31230,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_License_descriptor = - getDescriptor().getMessageTypes().get(723); + getDescriptor().getMessageTypes().get(725); internal_static_google_cloud_compute_v1_License_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_License_descriptor, @@ -31169,7 +31247,7 @@ private static void _clinit_autosplit_dinit_1() { "Transferable", }); internal_static_google_cloud_compute_v1_LicenseCode_descriptor = - getDescriptor().getMessageTypes().get(724); + getDescriptor().getMessageTypes().get(726); internal_static_google_cloud_compute_v1_LicenseCode_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_LicenseCode_descriptor, @@ -31185,7 +31263,7 @@ private static void _clinit_autosplit_dinit_1() { "Transferable", }); internal_static_google_cloud_compute_v1_LicenseCodeLicenseAlias_descriptor = - getDescriptor().getMessageTypes().get(725); + getDescriptor().getMessageTypes().get(727); internal_static_google_cloud_compute_v1_LicenseCodeLicenseAlias_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_LicenseCodeLicenseAlias_descriptor, @@ -31193,7 +31271,7 @@ private static void _clinit_autosplit_dinit_1() { "Description", "SelfLink", }); internal_static_google_cloud_compute_v1_LicenseResourceCommitment_descriptor = - getDescriptor().getMessageTypes().get(726); + getDescriptor().getMessageTypes().get(728); internal_static_google_cloud_compute_v1_LicenseResourceCommitment_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_LicenseResourceCommitment_descriptor, @@ -31201,7 +31279,7 @@ private static void _clinit_autosplit_dinit_1() { "Amount", "CoresPerLicense", "License", }); internal_static_google_cloud_compute_v1_LicenseResourceRequirements_descriptor = - getDescriptor().getMessageTypes().get(727); + getDescriptor().getMessageTypes().get(729); internal_static_google_cloud_compute_v1_LicenseResourceRequirements_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_LicenseResourceRequirements_descriptor, @@ -31209,7 +31287,7 @@ private static void _clinit_autosplit_dinit_1() { "MinGuestCpuCount", "MinMemoryMb", }); internal_static_google_cloud_compute_v1_LicensesListResponse_descriptor = - getDescriptor().getMessageTypes().get(728); + getDescriptor().getMessageTypes().get(730); internal_static_google_cloud_compute_v1_LicensesListResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_LicensesListResponse_descriptor, @@ -31217,7 +31295,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_ListAcceleratorTypesRequest_descriptor = - getDescriptor().getMessageTypes().get(729); + getDescriptor().getMessageTypes().get(731); internal_static_google_cloud_compute_v1_ListAcceleratorTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListAcceleratorTypesRequest_descriptor, @@ -31231,7 +31309,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListAddressesRequest_descriptor = - getDescriptor().getMessageTypes().get(730); + getDescriptor().getMessageTypes().get(732); internal_static_google_cloud_compute_v1_ListAddressesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListAddressesRequest_descriptor, @@ -31245,7 +31323,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListAssociationsFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(731); + getDescriptor().getMessageTypes().get(733); internal_static_google_cloud_compute_v1_ListAssociationsFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListAssociationsFirewallPolicyRequest_descriptor, @@ -31253,7 +31331,7 @@ private static void _clinit_autosplit_dinit_1() { "TargetResource", }); internal_static_google_cloud_compute_v1_ListAutoscalersRequest_descriptor = - getDescriptor().getMessageTypes().get(732); + getDescriptor().getMessageTypes().get(734); internal_static_google_cloud_compute_v1_ListAutoscalersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListAutoscalersRequest_descriptor, @@ -31267,7 +31345,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListAvailableFeaturesRegionSslPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(733); + getDescriptor().getMessageTypes().get(735); internal_static_google_cloud_compute_v1_ListAvailableFeaturesRegionSslPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListAvailableFeaturesRegionSslPoliciesRequest_descriptor, @@ -31281,7 +31359,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListAvailableFeaturesSslPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(734); + getDescriptor().getMessageTypes().get(736); internal_static_google_cloud_compute_v1_ListAvailableFeaturesSslPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListAvailableFeaturesSslPoliciesRequest_descriptor, @@ -31289,7 +31367,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(735); + getDescriptor().getMessageTypes().get(737); internal_static_google_cloud_compute_v1_ListBackendBucketsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListBackendBucketsRequest_descriptor, @@ -31297,7 +31375,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(736); + getDescriptor().getMessageTypes().get(738); internal_static_google_cloud_compute_v1_ListBackendServicesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListBackendServicesRequest_descriptor, @@ -31305,7 +31383,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(737); + getDescriptor().getMessageTypes().get(739); internal_static_google_cloud_compute_v1_ListDiskTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListDiskTypesRequest_descriptor, @@ -31319,7 +31397,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListDisksRequest_descriptor = - getDescriptor().getMessageTypes().get(738); + getDescriptor().getMessageTypes().get(740); internal_static_google_cloud_compute_v1_ListDisksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListDisksRequest_descriptor, @@ -31333,7 +31411,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListDisksStoragePoolsRequest_descriptor = - getDescriptor().getMessageTypes().get(739); + getDescriptor().getMessageTypes().get(741); internal_static_google_cloud_compute_v1_ListDisksStoragePoolsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListDisksStoragePoolsRequest_descriptor, @@ -31348,7 +31426,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListErrorsInstanceGroupManagersRequest_descriptor = - getDescriptor().getMessageTypes().get(740); + getDescriptor().getMessageTypes().get(742); internal_static_google_cloud_compute_v1_ListErrorsInstanceGroupManagersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListErrorsInstanceGroupManagersRequest_descriptor, @@ -31363,7 +31441,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListErrorsRegionInstanceGroupManagersRequest_descriptor = - getDescriptor().getMessageTypes().get(741); + getDescriptor().getMessageTypes().get(743); internal_static_google_cloud_compute_v1_ListErrorsRegionInstanceGroupManagersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListErrorsRegionInstanceGroupManagersRequest_descriptor, @@ -31378,7 +31456,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListExternalVpnGatewaysRequest_descriptor = - getDescriptor().getMessageTypes().get(742); + getDescriptor().getMessageTypes().get(744); internal_static_google_cloud_compute_v1_ListExternalVpnGatewaysRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListExternalVpnGatewaysRequest_descriptor, @@ -31386,7 +31464,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(743); + getDescriptor().getMessageTypes().get(745); internal_static_google_cloud_compute_v1_ListFirewallPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListFirewallPoliciesRequest_descriptor, @@ -31394,7 +31472,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(744); + getDescriptor().getMessageTypes().get(746); internal_static_google_cloud_compute_v1_ListFirewallsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListFirewallsRequest_descriptor, @@ -31402,7 +31480,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(745); + getDescriptor().getMessageTypes().get(747); internal_static_google_cloud_compute_v1_ListForwardingRulesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListForwardingRulesRequest_descriptor, @@ -31416,7 +31494,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListGlobalAddressesRequest_descriptor = - getDescriptor().getMessageTypes().get(746); + getDescriptor().getMessageTypes().get(748); internal_static_google_cloud_compute_v1_ListGlobalAddressesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListGlobalAddressesRequest_descriptor, @@ -31424,7 +31502,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(747); + getDescriptor().getMessageTypes().get(749); internal_static_google_cloud_compute_v1_ListGlobalForwardingRulesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListGlobalForwardingRulesRequest_descriptor, @@ -31432,7 +31510,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(748); + getDescriptor().getMessageTypes().get(750); internal_static_google_cloud_compute_v1_ListGlobalNetworkEndpointGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListGlobalNetworkEndpointGroupsRequest_descriptor, @@ -31440,7 +31518,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(749); + getDescriptor().getMessageTypes().get(751); internal_static_google_cloud_compute_v1_ListGlobalOperationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListGlobalOperationsRequest_descriptor, @@ -31448,7 +31526,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(750); + getDescriptor().getMessageTypes().get(752); internal_static_google_cloud_compute_v1_ListGlobalOrganizationOperationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListGlobalOrganizationOperationsRequest_descriptor, @@ -31456,7 +31534,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(751); + getDescriptor().getMessageTypes().get(753); internal_static_google_cloud_compute_v1_ListGlobalPublicDelegatedPrefixesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListGlobalPublicDelegatedPrefixesRequest_descriptor, @@ -31464,7 +31542,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(752); + getDescriptor().getMessageTypes().get(754); internal_static_google_cloud_compute_v1_ListHealthChecksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListHealthChecksRequest_descriptor, @@ -31472,7 +31550,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(753); + getDescriptor().getMessageTypes().get(755); internal_static_google_cloud_compute_v1_ListImagesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListImagesRequest_descriptor, @@ -31480,7 +31558,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(754); + getDescriptor().getMessageTypes().get(756); internal_static_google_cloud_compute_v1_ListInstanceGroupManagerResizeRequestsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInstanceGroupManagerResizeRequestsRequest_descriptor, @@ -31495,7 +31573,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListInstanceGroupManagersRequest_descriptor = - getDescriptor().getMessageTypes().get(755); + getDescriptor().getMessageTypes().get(757); internal_static_google_cloud_compute_v1_ListInstanceGroupManagersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInstanceGroupManagersRequest_descriptor, @@ -31509,7 +31587,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListInstanceGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(756); + getDescriptor().getMessageTypes().get(758); internal_static_google_cloud_compute_v1_ListInstanceGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInstanceGroupsRequest_descriptor, @@ -31523,7 +31601,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListInstanceTemplatesRequest_descriptor = - getDescriptor().getMessageTypes().get(757); + getDescriptor().getMessageTypes().get(759); internal_static_google_cloud_compute_v1_ListInstanceTemplatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInstanceTemplatesRequest_descriptor, @@ -31531,7 +31609,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(758); + getDescriptor().getMessageTypes().get(760); internal_static_google_cloud_compute_v1_ListInstancesInstanceGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInstancesInstanceGroupsRequest_descriptor, @@ -31547,7 +31625,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListInstancesRegionInstanceGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(759); + getDescriptor().getMessageTypes().get(761); internal_static_google_cloud_compute_v1_ListInstancesRegionInstanceGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInstancesRegionInstanceGroupsRequest_descriptor, @@ -31563,7 +31641,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(760); + getDescriptor().getMessageTypes().get(762); internal_static_google_cloud_compute_v1_ListInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInstancesRequest_descriptor, @@ -31577,7 +31655,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListInstantSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(761); + getDescriptor().getMessageTypes().get(763); internal_static_google_cloud_compute_v1_ListInstantSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInstantSnapshotsRequest_descriptor, @@ -31591,7 +31669,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListInterconnectAttachmentsRequest_descriptor = - getDescriptor().getMessageTypes().get(762); + getDescriptor().getMessageTypes().get(764); internal_static_google_cloud_compute_v1_ListInterconnectAttachmentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInterconnectAttachmentsRequest_descriptor, @@ -31605,7 +31683,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListInterconnectLocationsRequest_descriptor = - getDescriptor().getMessageTypes().get(763); + getDescriptor().getMessageTypes().get(765); internal_static_google_cloud_compute_v1_ListInterconnectLocationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInterconnectLocationsRequest_descriptor, @@ -31613,7 +31691,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(764); + getDescriptor().getMessageTypes().get(766); internal_static_google_cloud_compute_v1_ListInterconnectRemoteLocationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInterconnectRemoteLocationsRequest_descriptor, @@ -31621,7 +31699,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(765); + getDescriptor().getMessageTypes().get(767); internal_static_google_cloud_compute_v1_ListInterconnectsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListInterconnectsRequest_descriptor, @@ -31629,7 +31707,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(766); + getDescriptor().getMessageTypes().get(768); internal_static_google_cloud_compute_v1_ListLicensesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListLicensesRequest_descriptor, @@ -31637,7 +31715,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(767); + getDescriptor().getMessageTypes().get(769); internal_static_google_cloud_compute_v1_ListMachineImagesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListMachineImagesRequest_descriptor, @@ -31645,7 +31723,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(768); + getDescriptor().getMessageTypes().get(770); internal_static_google_cloud_compute_v1_ListMachineTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListMachineTypesRequest_descriptor, @@ -31659,7 +31737,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListManagedInstancesInstanceGroupManagersRequest_descriptor = - getDescriptor().getMessageTypes().get(769); + getDescriptor().getMessageTypes().get(771); internal_static_google_cloud_compute_v1_ListManagedInstancesInstanceGroupManagersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListManagedInstancesInstanceGroupManagersRequest_descriptor, @@ -31674,7 +31752,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListManagedInstancesRegionInstanceGroupManagersRequest_descriptor = - getDescriptor().getMessageTypes().get(770); + getDescriptor().getMessageTypes().get(772); internal_static_google_cloud_compute_v1_ListManagedInstancesRegionInstanceGroupManagersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListManagedInstancesRegionInstanceGroupManagersRequest_descriptor, @@ -31689,7 +31767,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListNetworkAttachmentsRequest_descriptor = - getDescriptor().getMessageTypes().get(771); + getDescriptor().getMessageTypes().get(773); internal_static_google_cloud_compute_v1_ListNetworkAttachmentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNetworkAttachmentsRequest_descriptor, @@ -31703,7 +31781,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListNetworkEndpointGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(772); + getDescriptor().getMessageTypes().get(774); internal_static_google_cloud_compute_v1_ListNetworkEndpointGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNetworkEndpointGroupsRequest_descriptor, @@ -31717,7 +31795,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(773); + getDescriptor().getMessageTypes().get(775); internal_static_google_cloud_compute_v1_ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest_descriptor, @@ -31731,7 +31809,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListNetworkEndpointsNetworkEndpointGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(774); + getDescriptor().getMessageTypes().get(776); internal_static_google_cloud_compute_v1_ListNetworkEndpointsNetworkEndpointGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNetworkEndpointsNetworkEndpointGroupsRequest_descriptor, @@ -31747,7 +31825,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListNetworkEndpointsRegionNetworkEndpointGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(775); + getDescriptor().getMessageTypes().get(777); internal_static_google_cloud_compute_v1_ListNetworkEndpointsRegionNetworkEndpointGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNetworkEndpointsRegionNetworkEndpointGroupsRequest_descriptor, @@ -31762,7 +31840,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListNetworkFirewallPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(776); + getDescriptor().getMessageTypes().get(778); internal_static_google_cloud_compute_v1_ListNetworkFirewallPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNetworkFirewallPoliciesRequest_descriptor, @@ -31770,7 +31848,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListNetworkProfilesRequest_descriptor = - getDescriptor().getMessageTypes().get(777); + getDescriptor().getMessageTypes().get(779); internal_static_google_cloud_compute_v1_ListNetworkProfilesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNetworkProfilesRequest_descriptor, @@ -31778,7 +31856,7 @@ private static void _clinit_autosplit_dinit_1() { "Filter", "MaxResults", "OrderBy", "PageToken", "Project", "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListNetworksRequest_descriptor = - getDescriptor().getMessageTypes().get(778); + getDescriptor().getMessageTypes().get(780); internal_static_google_cloud_compute_v1_ListNetworksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNetworksRequest_descriptor, @@ -31786,7 +31864,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(779); + getDescriptor().getMessageTypes().get(781); internal_static_google_cloud_compute_v1_ListNodeGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNodeGroupsRequest_descriptor, @@ -31800,7 +31878,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListNodeTemplatesRequest_descriptor = - getDescriptor().getMessageTypes().get(780); + getDescriptor().getMessageTypes().get(782); internal_static_google_cloud_compute_v1_ListNodeTemplatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNodeTemplatesRequest_descriptor, @@ -31814,7 +31892,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListNodeTypesRequest_descriptor = - getDescriptor().getMessageTypes().get(781); + getDescriptor().getMessageTypes().get(783); internal_static_google_cloud_compute_v1_ListNodeTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNodeTypesRequest_descriptor, @@ -31828,7 +31906,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListNodesNodeGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(782); + getDescriptor().getMessageTypes().get(784); internal_static_google_cloud_compute_v1_ListNodesNodeGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListNodesNodeGroupsRequest_descriptor, @@ -31843,7 +31921,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListPacketMirroringsRequest_descriptor = - getDescriptor().getMessageTypes().get(783); + getDescriptor().getMessageTypes().get(785); internal_static_google_cloud_compute_v1_ListPacketMirroringsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListPacketMirroringsRequest_descriptor, @@ -31857,7 +31935,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListPeeringRoutesNetworksRequest_descriptor = - getDescriptor().getMessageTypes().get(784); + getDescriptor().getMessageTypes().get(786); internal_static_google_cloud_compute_v1_ListPeeringRoutesNetworksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListPeeringRoutesNetworksRequest_descriptor, @@ -31874,7 +31952,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListPerInstanceConfigsInstanceGroupManagersRequest_descriptor = - getDescriptor().getMessageTypes().get(785); + getDescriptor().getMessageTypes().get(787); internal_static_google_cloud_compute_v1_ListPerInstanceConfigsInstanceGroupManagersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListPerInstanceConfigsInstanceGroupManagersRequest_descriptor, @@ -31889,7 +31967,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListPerInstanceConfigsRegionInstanceGroupManagersRequest_descriptor = - getDescriptor().getMessageTypes().get(786); + getDescriptor().getMessageTypes().get(788); internal_static_google_cloud_compute_v1_ListPerInstanceConfigsRegionInstanceGroupManagersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListPerInstanceConfigsRegionInstanceGroupManagersRequest_descriptor, @@ -31904,7 +31982,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListPreconfiguredExpressionSetsSecurityPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(787); + getDescriptor().getMessageTypes().get(789); internal_static_google_cloud_compute_v1_ListPreconfiguredExpressionSetsSecurityPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListPreconfiguredExpressionSetsSecurityPoliciesRequest_descriptor, @@ -31912,7 +31990,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(788); + getDescriptor().getMessageTypes().get(790); internal_static_google_cloud_compute_v1_ListPublicAdvertisedPrefixesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListPublicAdvertisedPrefixesRequest_descriptor, @@ -31920,7 +31998,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(789); + getDescriptor().getMessageTypes().get(791); internal_static_google_cloud_compute_v1_ListPublicDelegatedPrefixesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListPublicDelegatedPrefixesRequest_descriptor, @@ -31934,7 +32012,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListReferrersInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(790); + getDescriptor().getMessageTypes().get(792); internal_static_google_cloud_compute_v1_ListReferrersInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListReferrersInstancesRequest_descriptor, @@ -31949,7 +32027,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListRegionAutoscalersRequest_descriptor = - getDescriptor().getMessageTypes().get(791); + getDescriptor().getMessageTypes().get(793); internal_static_google_cloud_compute_v1_ListRegionAutoscalersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionAutoscalersRequest_descriptor, @@ -31963,7 +32041,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionBackendServicesRequest_descriptor = - getDescriptor().getMessageTypes().get(792); + getDescriptor().getMessageTypes().get(794); internal_static_google_cloud_compute_v1_ListRegionBackendServicesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionBackendServicesRequest_descriptor, @@ -31977,7 +32055,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionCommitmentsRequest_descriptor = - getDescriptor().getMessageTypes().get(793); + getDescriptor().getMessageTypes().get(795); internal_static_google_cloud_compute_v1_ListRegionCommitmentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionCommitmentsRequest_descriptor, @@ -31991,7 +32069,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionDiskTypesRequest_descriptor = - getDescriptor().getMessageTypes().get(794); + getDescriptor().getMessageTypes().get(796); internal_static_google_cloud_compute_v1_ListRegionDiskTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionDiskTypesRequest_descriptor, @@ -32005,7 +32083,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionDisksRequest_descriptor = - getDescriptor().getMessageTypes().get(795); + getDescriptor().getMessageTypes().get(797); internal_static_google_cloud_compute_v1_ListRegionDisksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionDisksRequest_descriptor, @@ -32019,7 +32097,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionHealthCheckServicesRequest_descriptor = - getDescriptor().getMessageTypes().get(796); + getDescriptor().getMessageTypes().get(798); internal_static_google_cloud_compute_v1_ListRegionHealthCheckServicesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionHealthCheckServicesRequest_descriptor, @@ -32033,7 +32111,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionHealthChecksRequest_descriptor = - getDescriptor().getMessageTypes().get(797); + getDescriptor().getMessageTypes().get(799); internal_static_google_cloud_compute_v1_ListRegionHealthChecksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionHealthChecksRequest_descriptor, @@ -32047,7 +32125,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionInstanceGroupManagersRequest_descriptor = - getDescriptor().getMessageTypes().get(798); + getDescriptor().getMessageTypes().get(800); internal_static_google_cloud_compute_v1_ListRegionInstanceGroupManagersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionInstanceGroupManagersRequest_descriptor, @@ -32061,7 +32139,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionInstanceGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(799); + getDescriptor().getMessageTypes().get(801); internal_static_google_cloud_compute_v1_ListRegionInstanceGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionInstanceGroupsRequest_descriptor, @@ -32075,7 +32153,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionInstanceTemplatesRequest_descriptor = - getDescriptor().getMessageTypes().get(800); + getDescriptor().getMessageTypes().get(802); internal_static_google_cloud_compute_v1_ListRegionInstanceTemplatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionInstanceTemplatesRequest_descriptor, @@ -32089,7 +32167,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionInstantSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(801); + getDescriptor().getMessageTypes().get(803); internal_static_google_cloud_compute_v1_ListRegionInstantSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionInstantSnapshotsRequest_descriptor, @@ -32103,7 +32181,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionNetworkEndpointGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(802); + getDescriptor().getMessageTypes().get(804); internal_static_google_cloud_compute_v1_ListRegionNetworkEndpointGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionNetworkEndpointGroupsRequest_descriptor, @@ -32117,7 +32195,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionNetworkFirewallPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(803); + getDescriptor().getMessageTypes().get(805); internal_static_google_cloud_compute_v1_ListRegionNetworkFirewallPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionNetworkFirewallPoliciesRequest_descriptor, @@ -32131,7 +32209,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionNotificationEndpointsRequest_descriptor = - getDescriptor().getMessageTypes().get(804); + getDescriptor().getMessageTypes().get(806); internal_static_google_cloud_compute_v1_ListRegionNotificationEndpointsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionNotificationEndpointsRequest_descriptor, @@ -32145,7 +32223,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionOperationsRequest_descriptor = - getDescriptor().getMessageTypes().get(805); + getDescriptor().getMessageTypes().get(807); internal_static_google_cloud_compute_v1_ListRegionOperationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionOperationsRequest_descriptor, @@ -32159,7 +32237,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionSecurityPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(806); + getDescriptor().getMessageTypes().get(808); internal_static_google_cloud_compute_v1_ListRegionSecurityPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionSecurityPoliciesRequest_descriptor, @@ -32173,7 +32251,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionSslCertificatesRequest_descriptor = - getDescriptor().getMessageTypes().get(807); + getDescriptor().getMessageTypes().get(809); internal_static_google_cloud_compute_v1_ListRegionSslCertificatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionSslCertificatesRequest_descriptor, @@ -32187,7 +32265,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionSslPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(808); + getDescriptor().getMessageTypes().get(810); internal_static_google_cloud_compute_v1_ListRegionSslPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionSslPoliciesRequest_descriptor, @@ -32201,7 +32279,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionTargetHttpProxiesRequest_descriptor = - getDescriptor().getMessageTypes().get(809); + getDescriptor().getMessageTypes().get(811); internal_static_google_cloud_compute_v1_ListRegionTargetHttpProxiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionTargetHttpProxiesRequest_descriptor, @@ -32215,7 +32293,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionTargetHttpsProxiesRequest_descriptor = - getDescriptor().getMessageTypes().get(810); + getDescriptor().getMessageTypes().get(812); internal_static_google_cloud_compute_v1_ListRegionTargetHttpsProxiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionTargetHttpsProxiesRequest_descriptor, @@ -32229,7 +32307,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionTargetTcpProxiesRequest_descriptor = - getDescriptor().getMessageTypes().get(811); + getDescriptor().getMessageTypes().get(813); internal_static_google_cloud_compute_v1_ListRegionTargetTcpProxiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionTargetTcpProxiesRequest_descriptor, @@ -32243,7 +32321,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionUrlMapsRequest_descriptor = - getDescriptor().getMessageTypes().get(812); + getDescriptor().getMessageTypes().get(814); internal_static_google_cloud_compute_v1_ListRegionUrlMapsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionUrlMapsRequest_descriptor, @@ -32257,7 +32335,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionZonesRequest_descriptor = - getDescriptor().getMessageTypes().get(813); + getDescriptor().getMessageTypes().get(815); internal_static_google_cloud_compute_v1_ListRegionZonesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionZonesRequest_descriptor, @@ -32271,7 +32349,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRegionsRequest_descriptor = - getDescriptor().getMessageTypes().get(814); + getDescriptor().getMessageTypes().get(816); internal_static_google_cloud_compute_v1_ListRegionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRegionsRequest_descriptor, @@ -32279,7 +32357,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(815); + getDescriptor().getMessageTypes().get(817); internal_static_google_cloud_compute_v1_ListReservationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListReservationsRequest_descriptor, @@ -32293,7 +32371,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListResourcePoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(816); + getDescriptor().getMessageTypes().get(818); internal_static_google_cloud_compute_v1_ListResourcePoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListResourcePoliciesRequest_descriptor, @@ -32307,7 +32385,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRoutersRequest_descriptor = - getDescriptor().getMessageTypes().get(817); + getDescriptor().getMessageTypes().get(819); internal_static_google_cloud_compute_v1_ListRoutersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRoutersRequest_descriptor, @@ -32321,7 +32399,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListRoutesRequest_descriptor = - getDescriptor().getMessageTypes().get(818); + getDescriptor().getMessageTypes().get(820); internal_static_google_cloud_compute_v1_ListRoutesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListRoutesRequest_descriptor, @@ -32329,7 +32407,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(819); + getDescriptor().getMessageTypes().get(821); internal_static_google_cloud_compute_v1_ListSecurityPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListSecurityPoliciesRequest_descriptor, @@ -32337,7 +32415,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(820); + getDescriptor().getMessageTypes().get(822); internal_static_google_cloud_compute_v1_ListServiceAttachmentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListServiceAttachmentsRequest_descriptor, @@ -32351,7 +32429,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(821); + getDescriptor().getMessageTypes().get(823); internal_static_google_cloud_compute_v1_ListSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListSnapshotsRequest_descriptor, @@ -32359,7 +32437,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(822); + getDescriptor().getMessageTypes().get(824); internal_static_google_cloud_compute_v1_ListSslCertificatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListSslCertificatesRequest_descriptor, @@ -32367,7 +32445,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(823); + getDescriptor().getMessageTypes().get(825); internal_static_google_cloud_compute_v1_ListSslPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListSslPoliciesRequest_descriptor, @@ -32375,7 +32453,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(824); + getDescriptor().getMessageTypes().get(826); internal_static_google_cloud_compute_v1_ListStoragePoolTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListStoragePoolTypesRequest_descriptor, @@ -32389,7 +32467,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListStoragePoolsRequest_descriptor = - getDescriptor().getMessageTypes().get(825); + getDescriptor().getMessageTypes().get(827); internal_static_google_cloud_compute_v1_ListStoragePoolsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListStoragePoolsRequest_descriptor, @@ -32403,7 +32481,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListSubnetworksRequest_descriptor = - getDescriptor().getMessageTypes().get(826); + getDescriptor().getMessageTypes().get(828); internal_static_google_cloud_compute_v1_ListSubnetworksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListSubnetworksRequest_descriptor, @@ -32417,7 +32495,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListTargetGrpcProxiesRequest_descriptor = - getDescriptor().getMessageTypes().get(827); + getDescriptor().getMessageTypes().get(829); internal_static_google_cloud_compute_v1_ListTargetGrpcProxiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListTargetGrpcProxiesRequest_descriptor, @@ -32425,7 +32503,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(828); + getDescriptor().getMessageTypes().get(830); internal_static_google_cloud_compute_v1_ListTargetHttpProxiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListTargetHttpProxiesRequest_descriptor, @@ -32433,7 +32511,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(829); + getDescriptor().getMessageTypes().get(831); internal_static_google_cloud_compute_v1_ListTargetHttpsProxiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListTargetHttpsProxiesRequest_descriptor, @@ -32441,7 +32519,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(830); + getDescriptor().getMessageTypes().get(832); internal_static_google_cloud_compute_v1_ListTargetInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListTargetInstancesRequest_descriptor, @@ -32455,7 +32533,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListTargetPoolsRequest_descriptor = - getDescriptor().getMessageTypes().get(831); + getDescriptor().getMessageTypes().get(833); internal_static_google_cloud_compute_v1_ListTargetPoolsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListTargetPoolsRequest_descriptor, @@ -32469,7 +32547,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListTargetSslProxiesRequest_descriptor = - getDescriptor().getMessageTypes().get(832); + getDescriptor().getMessageTypes().get(834); internal_static_google_cloud_compute_v1_ListTargetSslProxiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListTargetSslProxiesRequest_descriptor, @@ -32477,7 +32555,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(833); + getDescriptor().getMessageTypes().get(835); internal_static_google_cloud_compute_v1_ListTargetTcpProxiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListTargetTcpProxiesRequest_descriptor, @@ -32485,7 +32563,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(834); + getDescriptor().getMessageTypes().get(836); internal_static_google_cloud_compute_v1_ListTargetVpnGatewaysRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListTargetVpnGatewaysRequest_descriptor, @@ -32499,7 +32577,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListUrlMapsRequest_descriptor = - getDescriptor().getMessageTypes().get(835); + getDescriptor().getMessageTypes().get(837); internal_static_google_cloud_compute_v1_ListUrlMapsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListUrlMapsRequest_descriptor, @@ -32507,7 +32585,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(836); + getDescriptor().getMessageTypes().get(838); internal_static_google_cloud_compute_v1_ListUsableBackendServicesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListUsableBackendServicesRequest_descriptor, @@ -32515,7 +32593,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(837); + getDescriptor().getMessageTypes().get(839); internal_static_google_cloud_compute_v1_ListUsableRegionBackendServicesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListUsableRegionBackendServicesRequest_descriptor, @@ -32529,7 +32607,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListUsableSubnetworksRequest_descriptor = - getDescriptor().getMessageTypes().get(838); + getDescriptor().getMessageTypes().get(840); internal_static_google_cloud_compute_v1_ListUsableSubnetworksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListUsableSubnetworksRequest_descriptor, @@ -32537,7 +32615,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(839); + getDescriptor().getMessageTypes().get(841); internal_static_google_cloud_compute_v1_ListVpnGatewaysRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListVpnGatewaysRequest_descriptor, @@ -32551,7 +32629,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListVpnTunnelsRequest_descriptor = - getDescriptor().getMessageTypes().get(840); + getDescriptor().getMessageTypes().get(842); internal_static_google_cloud_compute_v1_ListVpnTunnelsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListVpnTunnelsRequest_descriptor, @@ -32565,7 +32643,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListXpnHostsProjectsRequest_descriptor = - getDescriptor().getMessageTypes().get(841); + getDescriptor().getMessageTypes().get(843); internal_static_google_cloud_compute_v1_ListXpnHostsProjectsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListXpnHostsProjectsRequest_descriptor, @@ -32579,7 +32657,7 @@ private static void _clinit_autosplit_dinit_1() { "ReturnPartialSuccess", }); internal_static_google_cloud_compute_v1_ListZoneOperationsRequest_descriptor = - getDescriptor().getMessageTypes().get(842); + getDescriptor().getMessageTypes().get(844); internal_static_google_cloud_compute_v1_ListZoneOperationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListZoneOperationsRequest_descriptor, @@ -32593,7 +32671,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_ListZonesRequest_descriptor = - getDescriptor().getMessageTypes().get(843); + getDescriptor().getMessageTypes().get(845); internal_static_google_cloud_compute_v1_ListZonesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ListZonesRequest_descriptor, @@ -32601,7 +32679,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(844); + getDescriptor().getMessageTypes().get(846); internal_static_google_cloud_compute_v1_LocalDisk_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_LocalDisk_descriptor, @@ -32609,7 +32687,7 @@ private static void _clinit_autosplit_dinit_1() { "DiskCount", "DiskSizeGb", "DiskType", }); internal_static_google_cloud_compute_v1_LocalizedMessage_descriptor = - getDescriptor().getMessageTypes().get(845); + getDescriptor().getMessageTypes().get(847); internal_static_google_cloud_compute_v1_LocalizedMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_LocalizedMessage_descriptor, @@ -32617,7 +32695,7 @@ private static void _clinit_autosplit_dinit_1() { "Locale", "Message", }); internal_static_google_cloud_compute_v1_LocationPolicy_descriptor = - getDescriptor().getMessageTypes().get(846); + getDescriptor().getMessageTypes().get(848); internal_static_google_cloud_compute_v1_LocationPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_LocationPolicy_descriptor, @@ -32633,7 +32711,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_LocationPolicyLocation_descriptor = - getDescriptor().getMessageTypes().get(847); + getDescriptor().getMessageTypes().get(849); internal_static_google_cloud_compute_v1_LocationPolicyLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_LocationPolicyLocation_descriptor, @@ -32641,7 +32719,7 @@ private static void _clinit_autosplit_dinit_1() { "Constraints", "Preference", }); internal_static_google_cloud_compute_v1_LocationPolicyLocationConstraints_descriptor = - getDescriptor().getMessageTypes().get(848); + getDescriptor().getMessageTypes().get(850); internal_static_google_cloud_compute_v1_LocationPolicyLocationConstraints_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_LocationPolicyLocationConstraints_descriptor, @@ -32649,7 +32727,7 @@ private static void _clinit_autosplit_dinit_1() { "MaxCount", }); internal_static_google_cloud_compute_v1_MachineImage_descriptor = - getDescriptor().getMessageTypes().get(849); + getDescriptor().getMessageTypes().get(851); internal_static_google_cloud_compute_v1_MachineImage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_MachineImage_descriptor, @@ -32674,7 +32752,7 @@ private static void _clinit_autosplit_dinit_1() { "TotalStorageBytes", }); internal_static_google_cloud_compute_v1_MachineImageList_descriptor = - getDescriptor().getMessageTypes().get(850); + getDescriptor().getMessageTypes().get(852); internal_static_google_cloud_compute_v1_MachineImageList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_MachineImageList_descriptor, @@ -32682,7 +32760,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(851); + getDescriptor().getMessageTypes().get(853); internal_static_google_cloud_compute_v1_MachineType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_MachineType_descriptor, @@ -32706,7 +32784,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_MachineTypeAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(852); + getDescriptor().getMessageTypes().get(854); internal_static_google_cloud_compute_v1_MachineTypeAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_MachineTypeAggregatedList_descriptor, @@ -32724,7 +32802,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_MachineTypeList_descriptor = - getDescriptor().getMessageTypes().get(853); + getDescriptor().getMessageTypes().get(855); internal_static_google_cloud_compute_v1_MachineTypeList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_MachineTypeList_descriptor, @@ -32732,7 +32810,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(854); + getDescriptor().getMessageTypes().get(856); internal_static_google_cloud_compute_v1_MachineTypesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_MachineTypesScopedList_descriptor, @@ -32740,7 +32818,7 @@ private static void _clinit_autosplit_dinit_1() { "MachineTypes", "Warning", }); internal_static_google_cloud_compute_v1_ManagedInstance_descriptor = - getDescriptor().getMessageTypes().get(855); + getDescriptor().getMessageTypes().get(857); internal_static_google_cloud_compute_v1_ManagedInstance_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ManagedInstance_descriptor, @@ -32758,7 +32836,7 @@ private static void _clinit_autosplit_dinit_1() { "Version", }); internal_static_google_cloud_compute_v1_ManagedInstanceInstanceHealth_descriptor = - getDescriptor().getMessageTypes().get(856); + getDescriptor().getMessageTypes().get(858); internal_static_google_cloud_compute_v1_ManagedInstanceInstanceHealth_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ManagedInstanceInstanceHealth_descriptor, @@ -32766,7 +32844,7 @@ private static void _clinit_autosplit_dinit_1() { "DetailedHealthState", "HealthCheck", }); internal_static_google_cloud_compute_v1_ManagedInstanceLastAttempt_descriptor = - getDescriptor().getMessageTypes().get(857); + getDescriptor().getMessageTypes().get(859); internal_static_google_cloud_compute_v1_ManagedInstanceLastAttempt_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ManagedInstanceLastAttempt_descriptor, @@ -32774,7 +32852,7 @@ private static void _clinit_autosplit_dinit_1() { "Errors", }); internal_static_google_cloud_compute_v1_ManagedInstancePropertiesFromFlexibilityPolicy_descriptor = - getDescriptor().getMessageTypes().get(858); + getDescriptor().getMessageTypes().get(860); internal_static_google_cloud_compute_v1_ManagedInstancePropertiesFromFlexibilityPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ManagedInstancePropertiesFromFlexibilityPolicy_descriptor, @@ -32782,7 +32860,7 @@ private static void _clinit_autosplit_dinit_1() { "MachineType", }); internal_static_google_cloud_compute_v1_ManagedInstanceVersion_descriptor = - getDescriptor().getMessageTypes().get(859); + getDescriptor().getMessageTypes().get(861); internal_static_google_cloud_compute_v1_ManagedInstanceVersion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ManagedInstanceVersion_descriptor, @@ -32790,7 +32868,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceTemplate", "Name", }); internal_static_google_cloud_compute_v1_Metadata_descriptor = - getDescriptor().getMessageTypes().get(860); + getDescriptor().getMessageTypes().get(862); internal_static_google_cloud_compute_v1_Metadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Metadata_descriptor, @@ -32798,7 +32876,7 @@ private static void _clinit_autosplit_dinit_1() { "Fingerprint", "Items", "Kind", }); internal_static_google_cloud_compute_v1_MetadataFilter_descriptor = - getDescriptor().getMessageTypes().get(861); + getDescriptor().getMessageTypes().get(863); internal_static_google_cloud_compute_v1_MetadataFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_MetadataFilter_descriptor, @@ -32806,7 +32884,7 @@ private static void _clinit_autosplit_dinit_1() { "FilterLabels", "FilterMatchCriteria", }); internal_static_google_cloud_compute_v1_MetadataFilterLabelMatch_descriptor = - getDescriptor().getMessageTypes().get(862); + getDescriptor().getMessageTypes().get(864); internal_static_google_cloud_compute_v1_MetadataFilterLabelMatch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_MetadataFilterLabelMatch_descriptor, @@ -32814,7 +32892,7 @@ private static void _clinit_autosplit_dinit_1() { "Name", "Value", }); internal_static_google_cloud_compute_v1_MoveAddressRequest_descriptor = - getDescriptor().getMessageTypes().get(863); + getDescriptor().getMessageTypes().get(865); internal_static_google_cloud_compute_v1_MoveAddressRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_MoveAddressRequest_descriptor, @@ -32822,7 +32900,7 @@ private static void _clinit_autosplit_dinit_1() { "Address", "Project", "Region", "RegionAddressesMoveRequestResource", "RequestId", }); internal_static_google_cloud_compute_v1_MoveDiskProjectRequest_descriptor = - getDescriptor().getMessageTypes().get(864); + getDescriptor().getMessageTypes().get(866); internal_static_google_cloud_compute_v1_MoveDiskProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_MoveDiskProjectRequest_descriptor, @@ -32830,7 +32908,7 @@ private static void _clinit_autosplit_dinit_1() { "DiskMoveRequestResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_MoveFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(865); + getDescriptor().getMessageTypes().get(867); internal_static_google_cloud_compute_v1_MoveFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_MoveFirewallPolicyRequest_descriptor, @@ -32838,7 +32916,7 @@ private static void _clinit_autosplit_dinit_1() { "FirewallPolicy", "ParentId", "RequestId", }); internal_static_google_cloud_compute_v1_MoveGlobalAddressRequest_descriptor = - getDescriptor().getMessageTypes().get(866); + getDescriptor().getMessageTypes().get(868); internal_static_google_cloud_compute_v1_MoveGlobalAddressRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_MoveGlobalAddressRequest_descriptor, @@ -32846,7 +32924,7 @@ private static void _clinit_autosplit_dinit_1() { "Address", "GlobalAddressesMoveRequestResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_MoveInstanceProjectRequest_descriptor = - getDescriptor().getMessageTypes().get(867); + getDescriptor().getMessageTypes().get(869); internal_static_google_cloud_compute_v1_MoveInstanceProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_MoveInstanceProjectRequest_descriptor, @@ -32854,7 +32932,7 @@ private static void _clinit_autosplit_dinit_1() { "InstanceMoveRequestResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_NamedPort_descriptor = - getDescriptor().getMessageTypes().get(868); + getDescriptor().getMessageTypes().get(870); internal_static_google_cloud_compute_v1_NamedPort_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NamedPort_descriptor, @@ -32862,7 +32940,7 @@ private static void _clinit_autosplit_dinit_1() { "Name", "Port", }); internal_static_google_cloud_compute_v1_NatIpInfo_descriptor = - getDescriptor().getMessageTypes().get(869); + getDescriptor().getMessageTypes().get(871); internal_static_google_cloud_compute_v1_NatIpInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NatIpInfo_descriptor, @@ -32870,7 +32948,7 @@ private static void _clinit_autosplit_dinit_1() { "NatIpInfoMappings", "NatName", }); internal_static_google_cloud_compute_v1_NatIpInfoNatIpInfoMapping_descriptor = - getDescriptor().getMessageTypes().get(870); + getDescriptor().getMessageTypes().get(872); internal_static_google_cloud_compute_v1_NatIpInfoNatIpInfoMapping_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NatIpInfoNatIpInfoMapping_descriptor, @@ -32878,7 +32956,7 @@ private static void _clinit_autosplit_dinit_1() { "Mode", "NatIp", "Usage", }); internal_static_google_cloud_compute_v1_NatIpInfoResponse_descriptor = - getDescriptor().getMessageTypes().get(871); + getDescriptor().getMessageTypes().get(873); internal_static_google_cloud_compute_v1_NatIpInfoResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NatIpInfoResponse_descriptor, @@ -32886,7 +32964,7 @@ private static void _clinit_autosplit_dinit_1() { "Result", }); internal_static_google_cloud_compute_v1_Network_descriptor = - getDescriptor().getMessageTypes().get(872); + getDescriptor().getMessageTypes().get(874); internal_static_google_cloud_compute_v1_Network_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Network_descriptor, @@ -32912,7 +32990,7 @@ private static void _clinit_autosplit_dinit_1() { "Subnetworks", }); internal_static_google_cloud_compute_v1_NetworkAttachment_descriptor = - getDescriptor().getMessageTypes().get(873); + getDescriptor().getMessageTypes().get(875); internal_static_google_cloud_compute_v1_NetworkAttachment_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkAttachment_descriptor, @@ -32934,7 +33012,7 @@ private static void _clinit_autosplit_dinit_1() { "Subnetworks", }); internal_static_google_cloud_compute_v1_NetworkAttachmentAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(874); + getDescriptor().getMessageTypes().get(876); internal_static_google_cloud_compute_v1_NetworkAttachmentAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkAttachmentAggregatedList_descriptor, @@ -32952,7 +33030,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_NetworkAttachmentConnectedEndpoint_descriptor = - getDescriptor().getMessageTypes().get(875); + getDescriptor().getMessageTypes().get(877); internal_static_google_cloud_compute_v1_NetworkAttachmentConnectedEndpoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkAttachmentConnectedEndpoint_descriptor, @@ -32966,7 +33044,7 @@ private static void _clinit_autosplit_dinit_1() { "SubnetworkCidrRange", }); internal_static_google_cloud_compute_v1_NetworkAttachmentList_descriptor = - getDescriptor().getMessageTypes().get(876); + getDescriptor().getMessageTypes().get(878); internal_static_google_cloud_compute_v1_NetworkAttachmentList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkAttachmentList_descriptor, @@ -32974,7 +33052,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(877); + getDescriptor().getMessageTypes().get(879); internal_static_google_cloud_compute_v1_NetworkAttachmentsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkAttachmentsScopedList_descriptor, @@ -32982,7 +33060,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkAttachments", "Warning", }); internal_static_google_cloud_compute_v1_NetworkEdgeSecurityService_descriptor = - getDescriptor().getMessageTypes().get(878); + getDescriptor().getMessageTypes().get(880); internal_static_google_cloud_compute_v1_NetworkEdgeSecurityService_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEdgeSecurityService_descriptor, @@ -32999,7 +33077,7 @@ private static void _clinit_autosplit_dinit_1() { "SelfLinkWithId", }); internal_static_google_cloud_compute_v1_NetworkEdgeSecurityServiceAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(879); + getDescriptor().getMessageTypes().get(881); internal_static_google_cloud_compute_v1_NetworkEdgeSecurityServiceAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEdgeSecurityServiceAggregatedList_descriptor, @@ -33017,7 +33095,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_NetworkEdgeSecurityServicesScopedList_descriptor = - getDescriptor().getMessageTypes().get(880); + getDescriptor().getMessageTypes().get(882); internal_static_google_cloud_compute_v1_NetworkEdgeSecurityServicesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEdgeSecurityServicesScopedList_descriptor, @@ -33025,7 +33103,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkEdgeSecurityServices", "Warning", }); internal_static_google_cloud_compute_v1_NetworkEndpoint_descriptor = - getDescriptor().getMessageTypes().get(881); + getDescriptor().getMessageTypes().get(883); internal_static_google_cloud_compute_v1_NetworkEndpoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpoint_descriptor, @@ -33047,7 +33125,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroup_descriptor = - getDescriptor().getMessageTypes().get(882); + getDescriptor().getMessageTypes().get(884); internal_static_google_cloud_compute_v1_NetworkEndpointGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroup_descriptor, @@ -33083,7 +33161,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(883); + getDescriptor().getMessageTypes().get(885); internal_static_google_cloud_compute_v1_NetworkEndpointGroupAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupAggregatedList_descriptor, @@ -33101,7 +33179,7 @@ private static void _clinit_autosplit_dinit_1() { "Key", "Value", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupAppEngine_descriptor = - getDescriptor().getMessageTypes().get(884); + getDescriptor().getMessageTypes().get(886); internal_static_google_cloud_compute_v1_NetworkEndpointGroupAppEngine_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupAppEngine_descriptor, @@ -33109,7 +33187,7 @@ private static void _clinit_autosplit_dinit_1() { "Service", "UrlMask", "Version", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupCloudFunction_descriptor = - getDescriptor().getMessageTypes().get(885); + getDescriptor().getMessageTypes().get(887); internal_static_google_cloud_compute_v1_NetworkEndpointGroupCloudFunction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupCloudFunction_descriptor, @@ -33117,7 +33195,7 @@ private static void _clinit_autosplit_dinit_1() { "Function", "UrlMask", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupCloudRun_descriptor = - getDescriptor().getMessageTypes().get(886); + getDescriptor().getMessageTypes().get(888); internal_static_google_cloud_compute_v1_NetworkEndpointGroupCloudRun_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupCloudRun_descriptor, @@ -33125,7 +33203,7 @@ private static void _clinit_autosplit_dinit_1() { "Service", "Tag", "UrlMask", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupList_descriptor = - getDescriptor().getMessageTypes().get(887); + getDescriptor().getMessageTypes().get(889); internal_static_google_cloud_compute_v1_NetworkEndpointGroupList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupList_descriptor, @@ -33133,7 +33211,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(888); + getDescriptor().getMessageTypes().get(890); internal_static_google_cloud_compute_v1_NetworkEndpointGroupPscData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupPscData_descriptor, @@ -33141,7 +33219,7 @@ private static void _clinit_autosplit_dinit_1() { "ConsumerPscAddress", "ProducerPort", "PscConnectionId", "PscConnectionStatus", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupsAttachEndpointsRequest_descriptor = - getDescriptor().getMessageTypes().get(889); + getDescriptor().getMessageTypes().get(891); internal_static_google_cloud_compute_v1_NetworkEndpointGroupsAttachEndpointsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupsAttachEndpointsRequest_descriptor, @@ -33149,7 +33227,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkEndpoints", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupsDetachEndpointsRequest_descriptor = - getDescriptor().getMessageTypes().get(890); + getDescriptor().getMessageTypes().get(892); internal_static_google_cloud_compute_v1_NetworkEndpointGroupsDetachEndpointsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupsDetachEndpointsRequest_descriptor, @@ -33157,7 +33235,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkEndpoints", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupsListEndpointsRequest_descriptor = - getDescriptor().getMessageTypes().get(891); + getDescriptor().getMessageTypes().get(893); internal_static_google_cloud_compute_v1_NetworkEndpointGroupsListEndpointsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupsListEndpointsRequest_descriptor, @@ -33165,7 +33243,7 @@ private static void _clinit_autosplit_dinit_1() { "HealthStatus", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupsListNetworkEndpoints_descriptor = - getDescriptor().getMessageTypes().get(892); + getDescriptor().getMessageTypes().get(894); internal_static_google_cloud_compute_v1_NetworkEndpointGroupsListNetworkEndpoints_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupsListNetworkEndpoints_descriptor, @@ -33173,7 +33251,7 @@ private static void _clinit_autosplit_dinit_1() { "Id", "Items", "Kind", "NextPageToken", "Warning", }); internal_static_google_cloud_compute_v1_NetworkEndpointGroupsScopedList_descriptor = - getDescriptor().getMessageTypes().get(893); + getDescriptor().getMessageTypes().get(895); internal_static_google_cloud_compute_v1_NetworkEndpointGroupsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointGroupsScopedList_descriptor, @@ -33181,15 +33259,33 @@ private static void _clinit_autosplit_dinit_1() { "NetworkEndpointGroups", "Warning", }); internal_static_google_cloud_compute_v1_NetworkEndpointWithHealthStatus_descriptor = - getDescriptor().getMessageTypes().get(894); + getDescriptor().getMessageTypes().get(896); internal_static_google_cloud_compute_v1_NetworkEndpointWithHealthStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkEndpointWithHealthStatus_descriptor, new java.lang.String[] { "Healths", "NetworkEndpoint", }); + internal_static_google_cloud_compute_v1_NetworkFirewallPolicyAggregatedList_descriptor = + getDescriptor().getMessageTypes().get(897); + internal_static_google_cloud_compute_v1_NetworkFirewallPolicyAggregatedList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_compute_v1_NetworkFirewallPolicyAggregatedList_descriptor, + new java.lang.String[] { + "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Unreachables", "Warning", + }); + internal_static_google_cloud_compute_v1_NetworkFirewallPolicyAggregatedList_ItemsEntry_descriptor = + internal_static_google_cloud_compute_v1_NetworkFirewallPolicyAggregatedList_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_compute_v1_NetworkFirewallPolicyAggregatedList_ItemsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_compute_v1_NetworkFirewallPolicyAggregatedList_ItemsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); internal_static_google_cloud_compute_v1_NetworkInterface_descriptor = - getDescriptor().getMessageTypes().get(895); + getDescriptor().getMessageTypes().get(898); internal_static_google_cloud_compute_v1_NetworkInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkInterface_descriptor, @@ -33212,7 +33308,7 @@ private static void _clinit_autosplit_dinit_1() { "Subnetwork", }); internal_static_google_cloud_compute_v1_NetworkList_descriptor = - getDescriptor().getMessageTypes().get(896); + getDescriptor().getMessageTypes().get(899); internal_static_google_cloud_compute_v1_NetworkList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkList_descriptor, @@ -33220,7 +33316,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(897); + getDescriptor().getMessageTypes().get(900); internal_static_google_cloud_compute_v1_NetworkPeering_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkPeering_descriptor, @@ -33239,7 +33335,7 @@ private static void _clinit_autosplit_dinit_1() { "StateDetails", }); internal_static_google_cloud_compute_v1_NetworkPerformanceConfig_descriptor = - getDescriptor().getMessageTypes().get(898); + getDescriptor().getMessageTypes().get(901); internal_static_google_cloud_compute_v1_NetworkPerformanceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkPerformanceConfig_descriptor, @@ -33247,7 +33343,7 @@ private static void _clinit_autosplit_dinit_1() { "TotalEgressBandwidthTier", }); internal_static_google_cloud_compute_v1_NetworkProfile_descriptor = - getDescriptor().getMessageTypes().get(899); + getDescriptor().getMessageTypes().get(902); internal_static_google_cloud_compute_v1_NetworkProfile_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkProfile_descriptor, @@ -33264,7 +33360,7 @@ private static void _clinit_autosplit_dinit_1() { "Zone", }); internal_static_google_cloud_compute_v1_NetworkProfileLocation_descriptor = - getDescriptor().getMessageTypes().get(900); + getDescriptor().getMessageTypes().get(903); internal_static_google_cloud_compute_v1_NetworkProfileLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkProfileLocation_descriptor, @@ -33272,7 +33368,7 @@ private static void _clinit_autosplit_dinit_1() { "Name", "Scope", }); internal_static_google_cloud_compute_v1_NetworkProfileNetworkFeatures_descriptor = - getDescriptor().getMessageTypes().get(901); + getDescriptor().getMessageTypes().get(904); internal_static_google_cloud_compute_v1_NetworkProfileNetworkFeatures_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkProfileNetworkFeatures_descriptor, @@ -33301,7 +33397,7 @@ private static void _clinit_autosplit_dinit_1() { "Unicast", }); internal_static_google_cloud_compute_v1_NetworkProfilesListResponse_descriptor = - getDescriptor().getMessageTypes().get(902); + getDescriptor().getMessageTypes().get(905); internal_static_google_cloud_compute_v1_NetworkProfilesListResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkProfilesListResponse_descriptor, @@ -33309,7 +33405,7 @@ private static void _clinit_autosplit_dinit_1() { "Etag", "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Unreachables", "Warning", }); internal_static_google_cloud_compute_v1_NetworkRoutingConfig_descriptor = - getDescriptor().getMessageTypes().get(903); + getDescriptor().getMessageTypes().get(906); internal_static_google_cloud_compute_v1_NetworkRoutingConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworkRoutingConfig_descriptor, @@ -33317,18 +33413,24 @@ private static void _clinit_autosplit_dinit_1() { "BgpAlwaysCompareMed", "BgpBestPathSelectionMode", "BgpInterRegionCost", + "EffectiveBgpAlwaysCompareMed", + "EffectiveBgpInterRegionCost", "RoutingMode", }); internal_static_google_cloud_compute_v1_NetworksAddPeeringRequest_descriptor = - getDescriptor().getMessageTypes().get(904); + getDescriptor().getMessageTypes().get(907); internal_static_google_cloud_compute_v1_NetworksAddPeeringRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworksAddPeeringRequest_descriptor, new java.lang.String[] { "AutoCreateRoutes", "Name", "NetworkPeering", "PeerNetwork", }); + _clinit_autosplit_dinit_2(); + } + + private static void _clinit_autosplit_dinit_2() { internal_static_google_cloud_compute_v1_NetworksGetEffectiveFirewallsResponse_descriptor = - getDescriptor().getMessageTypes().get(905); + getDescriptor().getMessageTypes().get(908); internal_static_google_cloud_compute_v1_NetworksGetEffectiveFirewallsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworksGetEffectiveFirewallsResponse_descriptor, @@ -33336,7 +33438,7 @@ private static void _clinit_autosplit_dinit_1() { "FirewallPolicys", "Firewalls", }); internal_static_google_cloud_compute_v1_NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy_descriptor = - getDescriptor().getMessageTypes().get(906); + getDescriptor().getMessageTypes().get(909); internal_static_google_cloud_compute_v1_NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy_descriptor, @@ -33344,7 +33446,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(907); + getDescriptor().getMessageTypes().get(910); internal_static_google_cloud_compute_v1_NetworksRemovePeeringRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworksRemovePeeringRequest_descriptor, @@ -33352,7 +33454,7 @@ private static void _clinit_autosplit_dinit_1() { "Name", }); internal_static_google_cloud_compute_v1_NetworksUpdatePeeringRequest_descriptor = - getDescriptor().getMessageTypes().get(908); + getDescriptor().getMessageTypes().get(911); internal_static_google_cloud_compute_v1_NetworksUpdatePeeringRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NetworksUpdatePeeringRequest_descriptor, @@ -33360,7 +33462,7 @@ private static void _clinit_autosplit_dinit_1() { "NetworkPeering", }); internal_static_google_cloud_compute_v1_NodeGroup_descriptor = - getDescriptor().getMessageTypes().get(909); + getDescriptor().getMessageTypes().get(912); internal_static_google_cloud_compute_v1_NodeGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroup_descriptor, @@ -33383,12 +33485,8 @@ 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(910); + getDescriptor().getMessageTypes().get(913); internal_static_google_cloud_compute_v1_NodeGroupAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupAggregatedList_descriptor, @@ -33406,7 +33504,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_NodeGroupAutoscalingPolicy_descriptor = - getDescriptor().getMessageTypes().get(911); + getDescriptor().getMessageTypes().get(914); internal_static_google_cloud_compute_v1_NodeGroupAutoscalingPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupAutoscalingPolicy_descriptor, @@ -33414,7 +33512,7 @@ private static void _clinit_autosplit_dinit_2() { "MaxNodes", "MinNodes", "Mode", }); internal_static_google_cloud_compute_v1_NodeGroupList_descriptor = - getDescriptor().getMessageTypes().get(912); + getDescriptor().getMessageTypes().get(915); internal_static_google_cloud_compute_v1_NodeGroupList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupList_descriptor, @@ -33422,7 +33520,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_NodeGroupMaintenanceWindow_descriptor = - getDescriptor().getMessageTypes().get(913); + getDescriptor().getMessageTypes().get(916); internal_static_google_cloud_compute_v1_NodeGroupMaintenanceWindow_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupMaintenanceWindow_descriptor, @@ -33430,7 +33528,7 @@ private static void _clinit_autosplit_dinit_2() { "MaintenanceDuration", "StartTime", }); internal_static_google_cloud_compute_v1_NodeGroupNode_descriptor = - getDescriptor().getMessageTypes().get(914); + getDescriptor().getMessageTypes().get(917); internal_static_google_cloud_compute_v1_NodeGroupNode_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupNode_descriptor, @@ -33451,7 +33549,7 @@ private static void _clinit_autosplit_dinit_2() { "UpcomingMaintenance", }); internal_static_google_cloud_compute_v1_NodeGroupsAddNodesRequest_descriptor = - getDescriptor().getMessageTypes().get(915); + getDescriptor().getMessageTypes().get(918); internal_static_google_cloud_compute_v1_NodeGroupsAddNodesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupsAddNodesRequest_descriptor, @@ -33459,7 +33557,7 @@ private static void _clinit_autosplit_dinit_2() { "AdditionalNodeCount", }); internal_static_google_cloud_compute_v1_NodeGroupsDeleteNodesRequest_descriptor = - getDescriptor().getMessageTypes().get(916); + getDescriptor().getMessageTypes().get(919); internal_static_google_cloud_compute_v1_NodeGroupsDeleteNodesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupsDeleteNodesRequest_descriptor, @@ -33467,7 +33565,7 @@ private static void _clinit_autosplit_dinit_2() { "Nodes", }); internal_static_google_cloud_compute_v1_NodeGroupsListNodes_descriptor = - getDescriptor().getMessageTypes().get(917); + getDescriptor().getMessageTypes().get(920); internal_static_google_cloud_compute_v1_NodeGroupsListNodes_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupsListNodes_descriptor, @@ -33475,7 +33573,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_NodeGroupsPerformMaintenanceRequest_descriptor = - getDescriptor().getMessageTypes().get(918); + getDescriptor().getMessageTypes().get(921); internal_static_google_cloud_compute_v1_NodeGroupsPerformMaintenanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupsPerformMaintenanceRequest_descriptor, @@ -33483,7 +33581,7 @@ private static void _clinit_autosplit_dinit_2() { "Nodes", "StartTime", }); internal_static_google_cloud_compute_v1_NodeGroupsScopedList_descriptor = - getDescriptor().getMessageTypes().get(919); + getDescriptor().getMessageTypes().get(922); internal_static_google_cloud_compute_v1_NodeGroupsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupsScopedList_descriptor, @@ -33491,7 +33589,7 @@ private static void _clinit_autosplit_dinit_2() { "NodeGroups", "Warning", }); internal_static_google_cloud_compute_v1_NodeGroupsSetNodeTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(920); + getDescriptor().getMessageTypes().get(923); internal_static_google_cloud_compute_v1_NodeGroupsSetNodeTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupsSetNodeTemplateRequest_descriptor, @@ -33499,7 +33597,7 @@ private static void _clinit_autosplit_dinit_2() { "NodeTemplate", }); internal_static_google_cloud_compute_v1_NodeGroupsSimulateMaintenanceEventRequest_descriptor = - getDescriptor().getMessageTypes().get(921); + getDescriptor().getMessageTypes().get(924); internal_static_google_cloud_compute_v1_NodeGroupsSimulateMaintenanceEventRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeGroupsSimulateMaintenanceEventRequest_descriptor, @@ -33507,7 +33605,7 @@ private static void _clinit_autosplit_dinit_2() { "Nodes", }); internal_static_google_cloud_compute_v1_NodeTemplate_descriptor = - getDescriptor().getMessageTypes().get(922); + getDescriptor().getMessageTypes().get(925); internal_static_google_cloud_compute_v1_NodeTemplate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeTemplate_descriptor, @@ -33538,7 +33636,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_NodeTemplateAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(923); + getDescriptor().getMessageTypes().get(926); internal_static_google_cloud_compute_v1_NodeTemplateAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeTemplateAggregatedList_descriptor, @@ -33556,7 +33654,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_NodeTemplateList_descriptor = - getDescriptor().getMessageTypes().get(924); + getDescriptor().getMessageTypes().get(927); internal_static_google_cloud_compute_v1_NodeTemplateList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeTemplateList_descriptor, @@ -33564,7 +33662,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(925); + getDescriptor().getMessageTypes().get(928); internal_static_google_cloud_compute_v1_NodeTemplateNodeTypeFlexibility_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeTemplateNodeTypeFlexibility_descriptor, @@ -33572,7 +33670,7 @@ private static void _clinit_autosplit_dinit_2() { "Cpus", "LocalSsd", "Memory", }); internal_static_google_cloud_compute_v1_NodeTemplatesScopedList_descriptor = - getDescriptor().getMessageTypes().get(926); + getDescriptor().getMessageTypes().get(929); internal_static_google_cloud_compute_v1_NodeTemplatesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeTemplatesScopedList_descriptor, @@ -33580,7 +33678,7 @@ private static void _clinit_autosplit_dinit_2() { "NodeTemplates", "Warning", }); internal_static_google_cloud_compute_v1_NodeType_descriptor = - getDescriptor().getMessageTypes().get(927); + getDescriptor().getMessageTypes().get(930); internal_static_google_cloud_compute_v1_NodeType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeType_descriptor, @@ -33599,7 +33697,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_NodeTypeAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(928); + getDescriptor().getMessageTypes().get(931); internal_static_google_cloud_compute_v1_NodeTypeAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeTypeAggregatedList_descriptor, @@ -33617,7 +33715,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_NodeTypeList_descriptor = - getDescriptor().getMessageTypes().get(929); + getDescriptor().getMessageTypes().get(932); internal_static_google_cloud_compute_v1_NodeTypeList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeTypeList_descriptor, @@ -33625,7 +33723,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(930); + getDescriptor().getMessageTypes().get(933); internal_static_google_cloud_compute_v1_NodeTypesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NodeTypesScopedList_descriptor, @@ -33633,7 +33731,7 @@ private static void _clinit_autosplit_dinit_2() { "NodeTypes", "Warning", }); internal_static_google_cloud_compute_v1_NotificationEndpoint_descriptor = - getDescriptor().getMessageTypes().get(931); + getDescriptor().getMessageTypes().get(934); internal_static_google_cloud_compute_v1_NotificationEndpoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NotificationEndpoint_descriptor, @@ -33648,7 +33746,7 @@ private static void _clinit_autosplit_dinit_2() { "SelfLink", }); internal_static_google_cloud_compute_v1_NotificationEndpointGrpcSettings_descriptor = - getDescriptor().getMessageTypes().get(932); + getDescriptor().getMessageTypes().get(935); internal_static_google_cloud_compute_v1_NotificationEndpointGrpcSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NotificationEndpointGrpcSettings_descriptor, @@ -33656,7 +33754,7 @@ private static void _clinit_autosplit_dinit_2() { "Authority", "Endpoint", "PayloadName", "ResendInterval", "RetryDurationSec", }); internal_static_google_cloud_compute_v1_NotificationEndpointList_descriptor = - getDescriptor().getMessageTypes().get(933); + getDescriptor().getMessageTypes().get(936); internal_static_google_cloud_compute_v1_NotificationEndpointList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_NotificationEndpointList_descriptor, @@ -33664,7 +33762,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(934); + getDescriptor().getMessageTypes().get(937); internal_static_google_cloud_compute_v1_Operation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Operation_descriptor, @@ -33697,7 +33795,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_OperationAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(935); + getDescriptor().getMessageTypes().get(938); internal_static_google_cloud_compute_v1_OperationAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_OperationAggregatedList_descriptor, @@ -33715,7 +33813,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_OperationList_descriptor = - getDescriptor().getMessageTypes().get(936); + getDescriptor().getMessageTypes().get(939); internal_static_google_cloud_compute_v1_OperationList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_OperationList_descriptor, @@ -33723,7 +33821,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(937); + getDescriptor().getMessageTypes().get(940); internal_static_google_cloud_compute_v1_OperationsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_OperationsScopedList_descriptor, @@ -33731,7 +33829,7 @@ private static void _clinit_autosplit_dinit_2() { "Operations", "Warning", }); internal_static_google_cloud_compute_v1_OutlierDetection_descriptor = - getDescriptor().getMessageTypes().get(938); + getDescriptor().getMessageTypes().get(941); internal_static_google_cloud_compute_v1_OutlierDetection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_OutlierDetection_descriptor, @@ -33749,7 +33847,7 @@ private static void _clinit_autosplit_dinit_2() { "SuccessRateStdevFactor", }); internal_static_google_cloud_compute_v1_PacketIntervals_descriptor = - getDescriptor().getMessageTypes().get(939); + getDescriptor().getMessageTypes().get(942); internal_static_google_cloud_compute_v1_PacketIntervals_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketIntervals_descriptor, @@ -33757,7 +33855,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(940); + getDescriptor().getMessageTypes().get(943); internal_static_google_cloud_compute_v1_PacketMirroring_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketMirroring_descriptor, @@ -33777,7 +33875,7 @@ private static void _clinit_autosplit_dinit_2() { "SelfLink", }); internal_static_google_cloud_compute_v1_PacketMirroringAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(941); + getDescriptor().getMessageTypes().get(944); internal_static_google_cloud_compute_v1_PacketMirroringAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketMirroringAggregatedList_descriptor, @@ -33795,7 +33893,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_PacketMirroringFilter_descriptor = - getDescriptor().getMessageTypes().get(942); + getDescriptor().getMessageTypes().get(945); internal_static_google_cloud_compute_v1_PacketMirroringFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketMirroringFilter_descriptor, @@ -33803,7 +33901,7 @@ private static void _clinit_autosplit_dinit_2() { "IPProtocols", "CidrRanges", "Direction", }); internal_static_google_cloud_compute_v1_PacketMirroringForwardingRuleInfo_descriptor = - getDescriptor().getMessageTypes().get(943); + getDescriptor().getMessageTypes().get(946); internal_static_google_cloud_compute_v1_PacketMirroringForwardingRuleInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketMirroringForwardingRuleInfo_descriptor, @@ -33811,7 +33909,7 @@ private static void _clinit_autosplit_dinit_2() { "CanonicalUrl", "Url", }); internal_static_google_cloud_compute_v1_PacketMirroringList_descriptor = - getDescriptor().getMessageTypes().get(944); + getDescriptor().getMessageTypes().get(947); internal_static_google_cloud_compute_v1_PacketMirroringList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketMirroringList_descriptor, @@ -33819,7 +33917,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(945); + getDescriptor().getMessageTypes().get(948); internal_static_google_cloud_compute_v1_PacketMirroringMirroredResourceInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketMirroringMirroredResourceInfo_descriptor, @@ -33827,7 +33925,7 @@ private static void _clinit_autosplit_dinit_2() { "Instances", "Subnetworks", "Tags", }); internal_static_google_cloud_compute_v1_PacketMirroringMirroredResourceInfoInstanceInfo_descriptor = - getDescriptor().getMessageTypes().get(946); + getDescriptor().getMessageTypes().get(949); internal_static_google_cloud_compute_v1_PacketMirroringMirroredResourceInfoInstanceInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketMirroringMirroredResourceInfoInstanceInfo_descriptor, @@ -33835,7 +33933,7 @@ private static void _clinit_autosplit_dinit_2() { "CanonicalUrl", "Url", }); internal_static_google_cloud_compute_v1_PacketMirroringMirroredResourceInfoSubnetInfo_descriptor = - getDescriptor().getMessageTypes().get(947); + getDescriptor().getMessageTypes().get(950); internal_static_google_cloud_compute_v1_PacketMirroringMirroredResourceInfoSubnetInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketMirroringMirroredResourceInfoSubnetInfo_descriptor, @@ -33843,7 +33941,7 @@ private static void _clinit_autosplit_dinit_2() { "CanonicalUrl", "Url", }); internal_static_google_cloud_compute_v1_PacketMirroringNetworkInfo_descriptor = - getDescriptor().getMessageTypes().get(948); + getDescriptor().getMessageTypes().get(951); internal_static_google_cloud_compute_v1_PacketMirroringNetworkInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketMirroringNetworkInfo_descriptor, @@ -33851,7 +33949,7 @@ private static void _clinit_autosplit_dinit_2() { "CanonicalUrl", "Url", }); internal_static_google_cloud_compute_v1_PacketMirroringsScopedList_descriptor = - getDescriptor().getMessageTypes().get(949); + getDescriptor().getMessageTypes().get(952); internal_static_google_cloud_compute_v1_PacketMirroringsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PacketMirroringsScopedList_descriptor, @@ -33859,7 +33957,7 @@ private static void _clinit_autosplit_dinit_2() { "PacketMirrorings", "Warning", }); internal_static_google_cloud_compute_v1_PatchAutoscalerRequest_descriptor = - getDescriptor().getMessageTypes().get(950); + getDescriptor().getMessageTypes().get(953); internal_static_google_cloud_compute_v1_PatchAutoscalerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchAutoscalerRequest_descriptor, @@ -33867,7 +33965,7 @@ private static void _clinit_autosplit_dinit_2() { "Autoscaler", "AutoscalerResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_PatchBackendBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(951); + getDescriptor().getMessageTypes().get(954); internal_static_google_cloud_compute_v1_PatchBackendBucketRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchBackendBucketRequest_descriptor, @@ -33875,7 +33973,7 @@ private static void _clinit_autosplit_dinit_2() { "BackendBucket", "BackendBucketResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_PatchBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(952); + getDescriptor().getMessageTypes().get(955); internal_static_google_cloud_compute_v1_PatchBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchBackendServiceRequest_descriptor, @@ -33883,7 +33981,7 @@ private static void _clinit_autosplit_dinit_2() { "BackendService", "BackendServiceResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_PatchFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(953); + getDescriptor().getMessageTypes().get(956); internal_static_google_cloud_compute_v1_PatchFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchFirewallPolicyRequest_descriptor, @@ -33891,7 +33989,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "FirewallPolicyResource", "RequestId", }); internal_static_google_cloud_compute_v1_PatchFirewallRequest_descriptor = - getDescriptor().getMessageTypes().get(954); + getDescriptor().getMessageTypes().get(957); internal_static_google_cloud_compute_v1_PatchFirewallRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchFirewallRequest_descriptor, @@ -33899,7 +33997,7 @@ private static void _clinit_autosplit_dinit_2() { "Firewall", "FirewallResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_PatchForwardingRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(955); + getDescriptor().getMessageTypes().get(958); internal_static_google_cloud_compute_v1_PatchForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchForwardingRuleRequest_descriptor, @@ -33907,7 +34005,7 @@ private static void _clinit_autosplit_dinit_2() { "ForwardingRule", "ForwardingRuleResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_PatchGlobalForwardingRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(956); + getDescriptor().getMessageTypes().get(959); internal_static_google_cloud_compute_v1_PatchGlobalForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchGlobalForwardingRuleRequest_descriptor, @@ -33915,7 +34013,7 @@ private static void _clinit_autosplit_dinit_2() { "ForwardingRule", "ForwardingRuleResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_PatchGlobalPublicDelegatedPrefixeRequest_descriptor = - getDescriptor().getMessageTypes().get(957); + getDescriptor().getMessageTypes().get(960); internal_static_google_cloud_compute_v1_PatchGlobalPublicDelegatedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchGlobalPublicDelegatedPrefixeRequest_descriptor, @@ -33923,7 +34021,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "PublicDelegatedPrefix", "PublicDelegatedPrefixResource", "RequestId", }); internal_static_google_cloud_compute_v1_PatchHealthCheckRequest_descriptor = - getDescriptor().getMessageTypes().get(958); + getDescriptor().getMessageTypes().get(961); internal_static_google_cloud_compute_v1_PatchHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchHealthCheckRequest_descriptor, @@ -33931,7 +34029,7 @@ private static void _clinit_autosplit_dinit_2() { "HealthCheck", "HealthCheckResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_PatchImageRequest_descriptor = - getDescriptor().getMessageTypes().get(959); + getDescriptor().getMessageTypes().get(962); internal_static_google_cloud_compute_v1_PatchImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchImageRequest_descriptor, @@ -33939,7 +34037,7 @@ private static void _clinit_autosplit_dinit_2() { "Image", "ImageResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_PatchInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(960); + getDescriptor().getMessageTypes().get(963); internal_static_google_cloud_compute_v1_PatchInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchInstanceGroupManagerRequest_descriptor, @@ -33951,7 +34049,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_PatchInstanceSettingRequest_descriptor = - getDescriptor().getMessageTypes().get(961); + getDescriptor().getMessageTypes().get(964); internal_static_google_cloud_compute_v1_PatchInstanceSettingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchInstanceSettingRequest_descriptor, @@ -33959,7 +34057,7 @@ private static void _clinit_autosplit_dinit_2() { "InstanceSettingsResource", "Project", "RequestId", "UpdateMask", "Zone", }); internal_static_google_cloud_compute_v1_PatchInterconnectAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(962); + getDescriptor().getMessageTypes().get(965); internal_static_google_cloud_compute_v1_PatchInterconnectAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchInterconnectAttachmentRequest_descriptor, @@ -33971,7 +34069,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_PatchInterconnectRequest_descriptor = - getDescriptor().getMessageTypes().get(963); + getDescriptor().getMessageTypes().get(966); internal_static_google_cloud_compute_v1_PatchInterconnectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchInterconnectRequest_descriptor, @@ -33979,7 +34077,7 @@ private static void _clinit_autosplit_dinit_2() { "Interconnect", "InterconnectResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_PatchNetworkAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(964); + getDescriptor().getMessageTypes().get(967); internal_static_google_cloud_compute_v1_PatchNetworkAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchNetworkAttachmentRequest_descriptor, @@ -33987,7 +34085,7 @@ private static void _clinit_autosplit_dinit_2() { "NetworkAttachment", "NetworkAttachmentResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_PatchNetworkEdgeSecurityServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(965); + getDescriptor().getMessageTypes().get(968); internal_static_google_cloud_compute_v1_PatchNetworkEdgeSecurityServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchNetworkEdgeSecurityServiceRequest_descriptor, @@ -34001,7 +34099,7 @@ private static void _clinit_autosplit_dinit_2() { "UpdateMask", }); internal_static_google_cloud_compute_v1_PatchNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(966); + getDescriptor().getMessageTypes().get(969); internal_static_google_cloud_compute_v1_PatchNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchNetworkFirewallPolicyRequest_descriptor, @@ -34009,7 +34107,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "FirewallPolicyResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_PatchNetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(967); + getDescriptor().getMessageTypes().get(970); internal_static_google_cloud_compute_v1_PatchNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchNetworkRequest_descriptor, @@ -34017,7 +34115,7 @@ private static void _clinit_autosplit_dinit_2() { "Network", "NetworkResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_PatchNodeGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(968); + getDescriptor().getMessageTypes().get(971); internal_static_google_cloud_compute_v1_PatchNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchNodeGroupRequest_descriptor, @@ -34025,7 +34123,7 @@ private static void _clinit_autosplit_dinit_2() { "NodeGroup", "NodeGroupResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_PatchPacketMirroringRequest_descriptor = - getDescriptor().getMessageTypes().get(969); + getDescriptor().getMessageTypes().get(972); internal_static_google_cloud_compute_v1_PatchPacketMirroringRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchPacketMirroringRequest_descriptor, @@ -34033,7 +34131,7 @@ private static void _clinit_autosplit_dinit_2() { "PacketMirroring", "PacketMirroringResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_PatchPerInstanceConfigsInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(970); + getDescriptor().getMessageTypes().get(973); internal_static_google_cloud_compute_v1_PatchPerInstanceConfigsInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchPerInstanceConfigsInstanceGroupManagerRequest_descriptor, @@ -34045,7 +34143,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_PatchPerInstanceConfigsRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(971); + getDescriptor().getMessageTypes().get(974); internal_static_google_cloud_compute_v1_PatchPerInstanceConfigsRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchPerInstanceConfigsRegionInstanceGroupManagerRequest_descriptor, @@ -34057,7 +34155,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_PatchPublicAdvertisedPrefixeRequest_descriptor = - getDescriptor().getMessageTypes().get(972); + getDescriptor().getMessageTypes().get(975); internal_static_google_cloud_compute_v1_PatchPublicAdvertisedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchPublicAdvertisedPrefixeRequest_descriptor, @@ -34065,7 +34163,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "PublicAdvertisedPrefix", "PublicAdvertisedPrefixResource", "RequestId", }); internal_static_google_cloud_compute_v1_PatchPublicDelegatedPrefixeRequest_descriptor = - getDescriptor().getMessageTypes().get(973); + getDescriptor().getMessageTypes().get(976); internal_static_google_cloud_compute_v1_PatchPublicDelegatedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchPublicDelegatedPrefixeRequest_descriptor, @@ -34077,7 +34175,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_PatchRegionAutoscalerRequest_descriptor = - getDescriptor().getMessageTypes().get(974); + getDescriptor().getMessageTypes().get(977); internal_static_google_cloud_compute_v1_PatchRegionAutoscalerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionAutoscalerRequest_descriptor, @@ -34085,7 +34183,7 @@ private static void _clinit_autosplit_dinit_2() { "Autoscaler", "AutoscalerResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_PatchRegionBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(975); + getDescriptor().getMessageTypes().get(978); internal_static_google_cloud_compute_v1_PatchRegionBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionBackendServiceRequest_descriptor, @@ -34093,7 +34191,7 @@ private static void _clinit_autosplit_dinit_2() { "BackendService", "BackendServiceResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_PatchRegionHealthCheckRequest_descriptor = - getDescriptor().getMessageTypes().get(976); + getDescriptor().getMessageTypes().get(979); internal_static_google_cloud_compute_v1_PatchRegionHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionHealthCheckRequest_descriptor, @@ -34101,7 +34199,7 @@ private static void _clinit_autosplit_dinit_2() { "HealthCheck", "HealthCheckResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_PatchRegionHealthCheckServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(977); + getDescriptor().getMessageTypes().get(980); internal_static_google_cloud_compute_v1_PatchRegionHealthCheckServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionHealthCheckServiceRequest_descriptor, @@ -34109,7 +34207,7 @@ private static void _clinit_autosplit_dinit_2() { "HealthCheckService", "HealthCheckServiceResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_PatchRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(978); + getDescriptor().getMessageTypes().get(981); internal_static_google_cloud_compute_v1_PatchRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionInstanceGroupManagerRequest_descriptor, @@ -34121,7 +34219,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_PatchRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(979); + getDescriptor().getMessageTypes().get(982); internal_static_google_cloud_compute_v1_PatchRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionNetworkFirewallPolicyRequest_descriptor, @@ -34129,7 +34227,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "FirewallPolicyResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_PatchRegionSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(980); + getDescriptor().getMessageTypes().get(983); internal_static_google_cloud_compute_v1_PatchRegionSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionSecurityPolicyRequest_descriptor, @@ -34142,7 +34240,7 @@ private static void _clinit_autosplit_dinit_2() { "UpdateMask", }); internal_static_google_cloud_compute_v1_PatchRegionSslPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(981); + getDescriptor().getMessageTypes().get(984); internal_static_google_cloud_compute_v1_PatchRegionSslPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionSslPolicyRequest_descriptor, @@ -34150,7 +34248,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RequestId", "SslPolicy", "SslPolicyResource", }); internal_static_google_cloud_compute_v1_PatchRegionTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(982); + getDescriptor().getMessageTypes().get(985); internal_static_google_cloud_compute_v1_PatchRegionTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionTargetHttpsProxyRequest_descriptor, @@ -34158,7 +34256,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RequestId", "TargetHttpsProxy", "TargetHttpsProxyResource", }); internal_static_google_cloud_compute_v1_PatchRegionUrlMapRequest_descriptor = - getDescriptor().getMessageTypes().get(983); + getDescriptor().getMessageTypes().get(986); internal_static_google_cloud_compute_v1_PatchRegionUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRegionUrlMapRequest_descriptor, @@ -34166,7 +34264,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RequestId", "UrlMap", "UrlMapResource", }); internal_static_google_cloud_compute_v1_PatchResourcePolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(984); + getDescriptor().getMessageTypes().get(987); internal_static_google_cloud_compute_v1_PatchResourcePolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchResourcePolicyRequest_descriptor, @@ -34179,7 +34277,7 @@ private static void _clinit_autosplit_dinit_2() { "UpdateMask", }); internal_static_google_cloud_compute_v1_PatchRouterRequest_descriptor = - getDescriptor().getMessageTypes().get(985); + getDescriptor().getMessageTypes().get(988); internal_static_google_cloud_compute_v1_PatchRouterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRouterRequest_descriptor, @@ -34187,7 +34285,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RequestId", "Router", "RouterResource", }); internal_static_google_cloud_compute_v1_PatchRuleFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(986); + getDescriptor().getMessageTypes().get(989); internal_static_google_cloud_compute_v1_PatchRuleFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRuleFirewallPolicyRequest_descriptor, @@ -34195,7 +34293,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "FirewallPolicyRuleResource", "Priority", "RequestId", }); internal_static_google_cloud_compute_v1_PatchRuleNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(987); + getDescriptor().getMessageTypes().get(990); internal_static_google_cloud_compute_v1_PatchRuleNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRuleNetworkFirewallPolicyRequest_descriptor, @@ -34203,7 +34301,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "FirewallPolicyRuleResource", "Priority", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_PatchRuleRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(988); + getDescriptor().getMessageTypes().get(991); internal_static_google_cloud_compute_v1_PatchRuleRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRuleRegionNetworkFirewallPolicyRequest_descriptor, @@ -34216,7 +34314,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_PatchRuleRegionSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(989); + getDescriptor().getMessageTypes().get(992); internal_static_google_cloud_compute_v1_PatchRuleRegionSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRuleRegionSecurityPolicyRequest_descriptor, @@ -34230,7 +34328,7 @@ private static void _clinit_autosplit_dinit_2() { "ValidateOnly", }); internal_static_google_cloud_compute_v1_PatchRuleSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(990); + getDescriptor().getMessageTypes().get(993); internal_static_google_cloud_compute_v1_PatchRuleSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchRuleSecurityPolicyRequest_descriptor, @@ -34243,7 +34341,7 @@ private static void _clinit_autosplit_dinit_2() { "ValidateOnly", }); internal_static_google_cloud_compute_v1_PatchSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(991); + getDescriptor().getMessageTypes().get(994); internal_static_google_cloud_compute_v1_PatchSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchSecurityPolicyRequest_descriptor, @@ -34251,7 +34349,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "SecurityPolicy", "SecurityPolicyResource", "UpdateMask", }); internal_static_google_cloud_compute_v1_PatchServiceAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(992); + getDescriptor().getMessageTypes().get(995); internal_static_google_cloud_compute_v1_PatchServiceAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchServiceAttachmentRequest_descriptor, @@ -34259,7 +34357,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RequestId", "ServiceAttachment", "ServiceAttachmentResource", }); internal_static_google_cloud_compute_v1_PatchSnapshotSettingRequest_descriptor = - getDescriptor().getMessageTypes().get(993); + getDescriptor().getMessageTypes().get(996); internal_static_google_cloud_compute_v1_PatchSnapshotSettingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchSnapshotSettingRequest_descriptor, @@ -34267,7 +34365,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "SnapshotSettingsResource", "UpdateMask", }); internal_static_google_cloud_compute_v1_PatchSslPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(994); + getDescriptor().getMessageTypes().get(997); internal_static_google_cloud_compute_v1_PatchSslPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchSslPolicyRequest_descriptor, @@ -34275,7 +34373,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "SslPolicy", "SslPolicyResource", }); internal_static_google_cloud_compute_v1_PatchSubnetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(995); + getDescriptor().getMessageTypes().get(998); internal_static_google_cloud_compute_v1_PatchSubnetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchSubnetworkRequest_descriptor, @@ -34288,7 +34386,7 @@ private static void _clinit_autosplit_dinit_2() { "SubnetworkResource", }); internal_static_google_cloud_compute_v1_PatchTargetGrpcProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(996); + getDescriptor().getMessageTypes().get(999); internal_static_google_cloud_compute_v1_PatchTargetGrpcProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchTargetGrpcProxyRequest_descriptor, @@ -34296,7 +34394,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "TargetGrpcProxy", "TargetGrpcProxyResource", }); internal_static_google_cloud_compute_v1_PatchTargetHttpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(997); + getDescriptor().getMessageTypes().get(1000); internal_static_google_cloud_compute_v1_PatchTargetHttpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchTargetHttpProxyRequest_descriptor, @@ -34304,7 +34402,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "TargetHttpProxy", "TargetHttpProxyResource", }); internal_static_google_cloud_compute_v1_PatchTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(998); + getDescriptor().getMessageTypes().get(1001); internal_static_google_cloud_compute_v1_PatchTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchTargetHttpsProxyRequest_descriptor, @@ -34312,7 +34410,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "TargetHttpsProxy", "TargetHttpsProxyResource", }); internal_static_google_cloud_compute_v1_PatchUrlMapRequest_descriptor = - getDescriptor().getMessageTypes().get(999); + getDescriptor().getMessageTypes().get(1002); internal_static_google_cloud_compute_v1_PatchUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PatchUrlMapRequest_descriptor, @@ -34320,7 +34418,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "UrlMap", "UrlMapResource", }); internal_static_google_cloud_compute_v1_PathMatcher_descriptor = - getDescriptor().getMessageTypes().get(1000); + getDescriptor().getMessageTypes().get(1003); internal_static_google_cloud_compute_v1_PathMatcher_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PathMatcher_descriptor, @@ -34336,7 +34434,7 @@ private static void _clinit_autosplit_dinit_2() { "RouteRules", }); internal_static_google_cloud_compute_v1_PathRule_descriptor = - getDescriptor().getMessageTypes().get(1001); + getDescriptor().getMessageTypes().get(1004); internal_static_google_cloud_compute_v1_PathRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PathRule_descriptor, @@ -34344,7 +34442,7 @@ private static void _clinit_autosplit_dinit_2() { "CustomErrorResponsePolicy", "Paths", "RouteAction", "Service", "UrlRedirect", }); internal_static_google_cloud_compute_v1_PerInstanceConfig_descriptor = - getDescriptor().getMessageTypes().get(1002); + getDescriptor().getMessageTypes().get(1005); internal_static_google_cloud_compute_v1_PerInstanceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PerInstanceConfig_descriptor, @@ -34352,7 +34450,7 @@ private static void _clinit_autosplit_dinit_2() { "Fingerprint", "Name", "PreservedState", "Status", }); internal_static_google_cloud_compute_v1_PerformMaintenanceInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1003); + getDescriptor().getMessageTypes().get(1006); internal_static_google_cloud_compute_v1_PerformMaintenanceInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PerformMaintenanceInstanceRequest_descriptor, @@ -34360,7 +34458,7 @@ private static void _clinit_autosplit_dinit_2() { "Instance", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_PerformMaintenanceNodeGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1004); + getDescriptor().getMessageTypes().get(1007); internal_static_google_cloud_compute_v1_PerformMaintenanceNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PerformMaintenanceNodeGroupRequest_descriptor, @@ -34372,7 +34470,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_Policy_descriptor = - getDescriptor().getMessageTypes().get(1005); + getDescriptor().getMessageTypes().get(1008); internal_static_google_cloud_compute_v1_Policy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Policy_descriptor, @@ -34380,7 +34478,7 @@ private static void _clinit_autosplit_dinit_2() { "AuditConfigs", "Bindings", "Etag", "IamOwned", "Version", }); internal_static_google_cloud_compute_v1_PreconfiguredWafSet_descriptor = - getDescriptor().getMessageTypes().get(1006); + getDescriptor().getMessageTypes().get(1009); internal_static_google_cloud_compute_v1_PreconfiguredWafSet_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PreconfiguredWafSet_descriptor, @@ -34388,7 +34486,7 @@ private static void _clinit_autosplit_dinit_2() { "ExpressionSets", }); internal_static_google_cloud_compute_v1_PreservedState_descriptor = - getDescriptor().getMessageTypes().get(1007); + getDescriptor().getMessageTypes().get(1010); internal_static_google_cloud_compute_v1_PreservedState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PreservedState_descriptor, @@ -34428,7 +34526,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_PreservedStatePreservedDisk_descriptor = - getDescriptor().getMessageTypes().get(1008); + getDescriptor().getMessageTypes().get(1011); internal_static_google_cloud_compute_v1_PreservedStatePreservedDisk_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PreservedStatePreservedDisk_descriptor, @@ -34436,7 +34534,7 @@ private static void _clinit_autosplit_dinit_2() { "AutoDelete", "Mode", "Source", }); internal_static_google_cloud_compute_v1_PreservedStatePreservedNetworkIp_descriptor = - getDescriptor().getMessageTypes().get(1009); + getDescriptor().getMessageTypes().get(1012); internal_static_google_cloud_compute_v1_PreservedStatePreservedNetworkIp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PreservedStatePreservedNetworkIp_descriptor, @@ -34444,7 +34542,7 @@ private static void _clinit_autosplit_dinit_2() { "AutoDelete", "IpAddress", }); internal_static_google_cloud_compute_v1_PreservedStatePreservedNetworkIpIpAddress_descriptor = - getDescriptor().getMessageTypes().get(1010); + getDescriptor().getMessageTypes().get(1013); internal_static_google_cloud_compute_v1_PreservedStatePreservedNetworkIpIpAddress_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PreservedStatePreservedNetworkIpIpAddress_descriptor, @@ -34452,7 +34550,7 @@ private static void _clinit_autosplit_dinit_2() { "Address", "Literal", }); internal_static_google_cloud_compute_v1_PreviewRouterRequest_descriptor = - getDescriptor().getMessageTypes().get(1011); + getDescriptor().getMessageTypes().get(1014); internal_static_google_cloud_compute_v1_PreviewRouterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PreviewRouterRequest_descriptor, @@ -34460,7 +34558,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "Router", "RouterResource", }); internal_static_google_cloud_compute_v1_Project_descriptor = - getDescriptor().getMessageTypes().get(1012); + getDescriptor().getMessageTypes().get(1015); internal_static_google_cloud_compute_v1_Project_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Project_descriptor, @@ -34482,7 +34580,7 @@ private static void _clinit_autosplit_dinit_2() { "XpnProjectStatus", }); internal_static_google_cloud_compute_v1_ProjectsDisableXpnResourceRequest_descriptor = - getDescriptor().getMessageTypes().get(1013); + getDescriptor().getMessageTypes().get(1016); internal_static_google_cloud_compute_v1_ProjectsDisableXpnResourceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ProjectsDisableXpnResourceRequest_descriptor, @@ -34490,7 +34588,7 @@ private static void _clinit_autosplit_dinit_2() { "XpnResource", }); internal_static_google_cloud_compute_v1_ProjectsEnableXpnResourceRequest_descriptor = - getDescriptor().getMessageTypes().get(1014); + getDescriptor().getMessageTypes().get(1017); internal_static_google_cloud_compute_v1_ProjectsEnableXpnResourceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ProjectsEnableXpnResourceRequest_descriptor, @@ -34498,7 +34596,7 @@ private static void _clinit_autosplit_dinit_2() { "XpnResource", }); internal_static_google_cloud_compute_v1_ProjectsGetXpnResources_descriptor = - getDescriptor().getMessageTypes().get(1015); + getDescriptor().getMessageTypes().get(1018); internal_static_google_cloud_compute_v1_ProjectsGetXpnResources_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ProjectsGetXpnResources_descriptor, @@ -34506,7 +34604,7 @@ private static void _clinit_autosplit_dinit_2() { "Kind", "NextPageToken", "Resources", }); internal_static_google_cloud_compute_v1_ProjectsListXpnHostsRequest_descriptor = - getDescriptor().getMessageTypes().get(1016); + getDescriptor().getMessageTypes().get(1019); internal_static_google_cloud_compute_v1_ProjectsListXpnHostsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ProjectsListXpnHostsRequest_descriptor, @@ -34514,7 +34612,7 @@ private static void _clinit_autosplit_dinit_2() { "Organization", }); internal_static_google_cloud_compute_v1_ProjectsSetCloudArmorTierRequest_descriptor = - getDescriptor().getMessageTypes().get(1017); + getDescriptor().getMessageTypes().get(1020); internal_static_google_cloud_compute_v1_ProjectsSetCloudArmorTierRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ProjectsSetCloudArmorTierRequest_descriptor, @@ -34522,7 +34620,7 @@ private static void _clinit_autosplit_dinit_2() { "CloudArmorTier", }); internal_static_google_cloud_compute_v1_ProjectsSetDefaultNetworkTierRequest_descriptor = - getDescriptor().getMessageTypes().get(1018); + getDescriptor().getMessageTypes().get(1021); internal_static_google_cloud_compute_v1_ProjectsSetDefaultNetworkTierRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ProjectsSetDefaultNetworkTierRequest_descriptor, @@ -34530,7 +34628,7 @@ private static void _clinit_autosplit_dinit_2() { "NetworkTier", }); internal_static_google_cloud_compute_v1_PublicAdvertisedPrefix_descriptor = - getDescriptor().getMessageTypes().get(1019); + getDescriptor().getMessageTypes().get(1022); internal_static_google_cloud_compute_v1_PublicAdvertisedPrefix_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PublicAdvertisedPrefix_descriptor, @@ -34551,7 +34649,7 @@ private static void _clinit_autosplit_dinit_2() { "Status", }); internal_static_google_cloud_compute_v1_PublicAdvertisedPrefixList_descriptor = - getDescriptor().getMessageTypes().get(1020); + getDescriptor().getMessageTypes().get(1023); internal_static_google_cloud_compute_v1_PublicAdvertisedPrefixList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PublicAdvertisedPrefixList_descriptor, @@ -34559,7 +34657,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(1021); + getDescriptor().getMessageTypes().get(1024); internal_static_google_cloud_compute_v1_PublicAdvertisedPrefixPublicDelegatedPrefix_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PublicAdvertisedPrefixPublicDelegatedPrefix_descriptor, @@ -34567,7 +34665,7 @@ private static void _clinit_autosplit_dinit_2() { "IpRange", "Name", "Project", "Region", "Status", }); internal_static_google_cloud_compute_v1_PublicDelegatedPrefix_descriptor = - getDescriptor().getMessageTypes().get(1022); + getDescriptor().getMessageTypes().get(1025); internal_static_google_cloud_compute_v1_PublicDelegatedPrefix_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PublicDelegatedPrefix_descriptor, @@ -34590,7 +34688,7 @@ private static void _clinit_autosplit_dinit_2() { "Status", }); internal_static_google_cloud_compute_v1_PublicDelegatedPrefixAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1023); + getDescriptor().getMessageTypes().get(1026); internal_static_google_cloud_compute_v1_PublicDelegatedPrefixAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PublicDelegatedPrefixAggregatedList_descriptor, @@ -34608,7 +34706,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_PublicDelegatedPrefixList_descriptor = - getDescriptor().getMessageTypes().get(1024); + getDescriptor().getMessageTypes().get(1027); internal_static_google_cloud_compute_v1_PublicDelegatedPrefixList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PublicDelegatedPrefixList_descriptor, @@ -34616,7 +34714,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(1025); + getDescriptor().getMessageTypes().get(1028); internal_static_google_cloud_compute_v1_PublicDelegatedPrefixPublicDelegatedSubPrefix_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PublicDelegatedPrefixPublicDelegatedSubPrefix_descriptor, @@ -34632,7 +34730,7 @@ private static void _clinit_autosplit_dinit_2() { "Status", }); internal_static_google_cloud_compute_v1_PublicDelegatedPrefixesScopedList_descriptor = - getDescriptor().getMessageTypes().get(1026); + getDescriptor().getMessageTypes().get(1029); internal_static_google_cloud_compute_v1_PublicDelegatedPrefixesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_PublicDelegatedPrefixesScopedList_descriptor, @@ -34640,7 +34738,7 @@ private static void _clinit_autosplit_dinit_2() { "PublicDelegatedPrefixes", "Warning", }); internal_static_google_cloud_compute_v1_Quota_descriptor = - getDescriptor().getMessageTypes().get(1027); + getDescriptor().getMessageTypes().get(1030); internal_static_google_cloud_compute_v1_Quota_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Quota_descriptor, @@ -34648,7 +34746,7 @@ private static void _clinit_autosplit_dinit_2() { "Limit", "Metric", "Owner", "Usage", }); internal_static_google_cloud_compute_v1_QuotaExceededInfo_descriptor = - getDescriptor().getMessageTypes().get(1028); + getDescriptor().getMessageTypes().get(1031); internal_static_google_cloud_compute_v1_QuotaExceededInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_QuotaExceededInfo_descriptor, @@ -34666,7 +34764,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_QuotaStatusWarning_descriptor = - getDescriptor().getMessageTypes().get(1029); + getDescriptor().getMessageTypes().get(1032); internal_static_google_cloud_compute_v1_QuotaStatusWarning_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_QuotaStatusWarning_descriptor, @@ -34674,7 +34772,7 @@ private static void _clinit_autosplit_dinit_2() { "Code", "Data", "Message", }); internal_static_google_cloud_compute_v1_RawDisk_descriptor = - getDescriptor().getMessageTypes().get(1030); + getDescriptor().getMessageTypes().get(1033); internal_static_google_cloud_compute_v1_RawDisk_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RawDisk_descriptor, @@ -34682,7 +34780,7 @@ private static void _clinit_autosplit_dinit_2() { "ContainerType", "Sha1Checksum", "Source", }); internal_static_google_cloud_compute_v1_RecreateInstancesInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1031); + getDescriptor().getMessageTypes().get(1034); internal_static_google_cloud_compute_v1_RecreateInstancesInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RecreateInstancesInstanceGroupManagerRequest_descriptor, @@ -34694,7 +34792,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_RecreateInstancesRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1032); + getDescriptor().getMessageTypes().get(1035); internal_static_google_cloud_compute_v1_RecreateInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RecreateInstancesRegionInstanceGroupManagerRequest_descriptor, @@ -34706,7 +34804,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_Reference_descriptor = - getDescriptor().getMessageTypes().get(1033); + getDescriptor().getMessageTypes().get(1036); internal_static_google_cloud_compute_v1_Reference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Reference_descriptor, @@ -34714,7 +34812,7 @@ private static void _clinit_autosplit_dinit_2() { "Kind", "ReferenceType", "Referrer", "Target", }); internal_static_google_cloud_compute_v1_Region_descriptor = - getDescriptor().getMessageTypes().get(1034); + getDescriptor().getMessageTypes().get(1037); internal_static_google_cloud_compute_v1_Region_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Region_descriptor, @@ -34733,7 +34831,7 @@ private static void _clinit_autosplit_dinit_2() { "Zones", }); internal_static_google_cloud_compute_v1_RegionAddressesMoveRequest_descriptor = - getDescriptor().getMessageTypes().get(1035); + getDescriptor().getMessageTypes().get(1038); internal_static_google_cloud_compute_v1_RegionAddressesMoveRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionAddressesMoveRequest_descriptor, @@ -34741,7 +34839,7 @@ private static void _clinit_autosplit_dinit_2() { "Description", "DestinationAddress", }); internal_static_google_cloud_compute_v1_RegionAutoscalerList_descriptor = - getDescriptor().getMessageTypes().get(1036); + getDescriptor().getMessageTypes().get(1039); internal_static_google_cloud_compute_v1_RegionAutoscalerList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionAutoscalerList_descriptor, @@ -34749,7 +34847,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(1037); + getDescriptor().getMessageTypes().get(1040); internal_static_google_cloud_compute_v1_RegionDiskTypeList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionDiskTypeList_descriptor, @@ -34757,7 +34855,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(1038); + getDescriptor().getMessageTypes().get(1041); internal_static_google_cloud_compute_v1_RegionDisksAddResourcePoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionDisksAddResourcePoliciesRequest_descriptor, @@ -34765,7 +34863,7 @@ private static void _clinit_autosplit_dinit_2() { "ResourcePolicies", }); internal_static_google_cloud_compute_v1_RegionDisksRemoveResourcePoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(1039); + getDescriptor().getMessageTypes().get(1042); internal_static_google_cloud_compute_v1_RegionDisksRemoveResourcePoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionDisksRemoveResourcePoliciesRequest_descriptor, @@ -34773,7 +34871,7 @@ private static void _clinit_autosplit_dinit_2() { "ResourcePolicies", }); internal_static_google_cloud_compute_v1_RegionDisksResizeRequest_descriptor = - getDescriptor().getMessageTypes().get(1040); + getDescriptor().getMessageTypes().get(1043); internal_static_google_cloud_compute_v1_RegionDisksResizeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionDisksResizeRequest_descriptor, @@ -34781,7 +34879,7 @@ private static void _clinit_autosplit_dinit_2() { "SizeGb", }); internal_static_google_cloud_compute_v1_RegionDisksStartAsyncReplicationRequest_descriptor = - getDescriptor().getMessageTypes().get(1041); + getDescriptor().getMessageTypes().get(1044); internal_static_google_cloud_compute_v1_RegionDisksStartAsyncReplicationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionDisksStartAsyncReplicationRequest_descriptor, @@ -34789,7 +34887,7 @@ private static void _clinit_autosplit_dinit_2() { "AsyncSecondaryDisk", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupList_descriptor = - getDescriptor().getMessageTypes().get(1042); + getDescriptor().getMessageTypes().get(1045); internal_static_google_cloud_compute_v1_RegionInstanceGroupList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupList_descriptor, @@ -34797,7 +34895,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(1043); + getDescriptor().getMessageTypes().get(1046); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerDeleteInstanceConfigReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerDeleteInstanceConfigReq_descriptor, @@ -34805,7 +34903,7 @@ private static void _clinit_autosplit_dinit_2() { "Names", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerList_descriptor = - getDescriptor().getMessageTypes().get(1044); + getDescriptor().getMessageTypes().get(1047); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerList_descriptor, @@ -34813,7 +34911,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(1045); + getDescriptor().getMessageTypes().get(1048); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerPatchInstanceConfigReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerPatchInstanceConfigReq_descriptor, @@ -34821,7 +34919,7 @@ private static void _clinit_autosplit_dinit_2() { "PerInstanceConfigs", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerUpdateInstanceConfigReq_descriptor = - getDescriptor().getMessageTypes().get(1046); + getDescriptor().getMessageTypes().get(1049); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerUpdateInstanceConfigReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagerUpdateInstanceConfigReq_descriptor, @@ -34829,7 +34927,7 @@ private static void _clinit_autosplit_dinit_2() { "PerInstanceConfigs", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersAbandonInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(1047); + getDescriptor().getMessageTypes().get(1050); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersAbandonInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersAbandonInstancesRequest_descriptor, @@ -34837,7 +34935,7 @@ private static void _clinit_autosplit_dinit_2() { "Instances", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersApplyUpdatesRequest_descriptor = - getDescriptor().getMessageTypes().get(1048); + getDescriptor().getMessageTypes().get(1051); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersApplyUpdatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersApplyUpdatesRequest_descriptor, @@ -34845,7 +34943,7 @@ private static void _clinit_autosplit_dinit_2() { "AllInstances", "Instances", "MinimalAction", "MostDisruptiveAllowedAction", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersCreateInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(1049); + getDescriptor().getMessageTypes().get(1052); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersCreateInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersCreateInstancesRequest_descriptor, @@ -34853,7 +34951,7 @@ private static void _clinit_autosplit_dinit_2() { "Instances", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersDeleteInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(1050); + getDescriptor().getMessageTypes().get(1053); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersDeleteInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersDeleteInstancesRequest_descriptor, @@ -34861,7 +34959,7 @@ private static void _clinit_autosplit_dinit_2() { "Instances", "SkipInstancesOnValidationError", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersListErrorsResponse_descriptor = - getDescriptor().getMessageTypes().get(1051); + getDescriptor().getMessageTypes().get(1054); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersListErrorsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersListErrorsResponse_descriptor, @@ -34869,7 +34967,7 @@ private static void _clinit_autosplit_dinit_2() { "Items", "NextPageToken", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersListInstanceConfigsResp_descriptor = - getDescriptor().getMessageTypes().get(1052); + getDescriptor().getMessageTypes().get(1055); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersListInstanceConfigsResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersListInstanceConfigsResp_descriptor, @@ -34877,7 +34975,7 @@ private static void _clinit_autosplit_dinit_2() { "Items", "NextPageToken", "Warning", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersListInstancesResponse_descriptor = - getDescriptor().getMessageTypes().get(1053); + getDescriptor().getMessageTypes().get(1056); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersListInstancesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersListInstancesResponse_descriptor, @@ -34885,7 +34983,7 @@ private static void _clinit_autosplit_dinit_2() { "ManagedInstances", "NextPageToken", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersRecreateRequest_descriptor = - getDescriptor().getMessageTypes().get(1054); + getDescriptor().getMessageTypes().get(1057); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersRecreateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersRecreateRequest_descriptor, @@ -34893,7 +34991,7 @@ private static void _clinit_autosplit_dinit_2() { "Instances", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersResumeInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(1055); + getDescriptor().getMessageTypes().get(1058); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersResumeInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersResumeInstancesRequest_descriptor, @@ -34901,7 +34999,7 @@ private static void _clinit_autosplit_dinit_2() { "Instances", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSetTargetPoolsRequest_descriptor = - getDescriptor().getMessageTypes().get(1056); + getDescriptor().getMessageTypes().get(1059); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSetTargetPoolsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSetTargetPoolsRequest_descriptor, @@ -34909,7 +35007,7 @@ private static void _clinit_autosplit_dinit_2() { "Fingerprint", "TargetPools", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSetTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(1057); + getDescriptor().getMessageTypes().get(1060); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSetTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSetTemplateRequest_descriptor, @@ -34917,7 +35015,7 @@ private static void _clinit_autosplit_dinit_2() { "InstanceTemplate", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersStartInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(1058); + getDescriptor().getMessageTypes().get(1061); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersStartInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersStartInstancesRequest_descriptor, @@ -34925,7 +35023,7 @@ private static void _clinit_autosplit_dinit_2() { "Instances", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersStopInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(1059); + getDescriptor().getMessageTypes().get(1062); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersStopInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersStopInstancesRequest_descriptor, @@ -34933,7 +35031,7 @@ private static void _clinit_autosplit_dinit_2() { "ForceStop", "Instances", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSuspendInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(1060); + getDescriptor().getMessageTypes().get(1063); internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSuspendInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupManagersSuspendInstancesRequest_descriptor, @@ -34941,7 +35039,7 @@ private static void _clinit_autosplit_dinit_2() { "ForceSuspend", "Instances", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupsListInstances_descriptor = - getDescriptor().getMessageTypes().get(1061); + getDescriptor().getMessageTypes().get(1064); internal_static_google_cloud_compute_v1_RegionInstanceGroupsListInstances_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupsListInstances_descriptor, @@ -34949,7 +35047,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(1062); + getDescriptor().getMessageTypes().get(1065); internal_static_google_cloud_compute_v1_RegionInstanceGroupsListInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupsListInstancesRequest_descriptor, @@ -34957,7 +35055,7 @@ private static void _clinit_autosplit_dinit_2() { "InstanceState", "PortName", }); internal_static_google_cloud_compute_v1_RegionInstanceGroupsSetNamedPortsRequest_descriptor = - getDescriptor().getMessageTypes().get(1063); + getDescriptor().getMessageTypes().get(1066); internal_static_google_cloud_compute_v1_RegionInstanceGroupsSetNamedPortsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionInstanceGroupsSetNamedPortsRequest_descriptor, @@ -34965,7 +35063,7 @@ private static void _clinit_autosplit_dinit_2() { "Fingerprint", "NamedPorts", }); internal_static_google_cloud_compute_v1_RegionList_descriptor = - getDescriptor().getMessageTypes().get(1064); + getDescriptor().getMessageTypes().get(1067); internal_static_google_cloud_compute_v1_RegionList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionList_descriptor, @@ -34973,7 +35071,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(1065); + getDescriptor().getMessageTypes().get(1068); internal_static_google_cloud_compute_v1_RegionNetworkEndpointGroupsAttachEndpointsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionNetworkEndpointGroupsAttachEndpointsRequest_descriptor, @@ -34981,7 +35079,7 @@ private static void _clinit_autosplit_dinit_2() { "NetworkEndpoints", }); internal_static_google_cloud_compute_v1_RegionNetworkEndpointGroupsDetachEndpointsRequest_descriptor = - getDescriptor().getMessageTypes().get(1066); + getDescriptor().getMessageTypes().get(1069); internal_static_google_cloud_compute_v1_RegionNetworkEndpointGroupsDetachEndpointsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionNetworkEndpointGroupsDetachEndpointsRequest_descriptor, @@ -34989,7 +35087,7 @@ private static void _clinit_autosplit_dinit_2() { "NetworkEndpoints", }); internal_static_google_cloud_compute_v1_RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse_descriptor = - getDescriptor().getMessageTypes().get(1067); + getDescriptor().getMessageTypes().get(1070); internal_static_google_cloud_compute_v1_RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse_descriptor, @@ -34997,7 +35095,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicys", "Firewalls", }); internal_static_google_cloud_compute_v1_RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy_descriptor = - getDescriptor().getMessageTypes().get(1068); + getDescriptor().getMessageTypes().get(1071); internal_static_google_cloud_compute_v1_RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy_descriptor, @@ -35005,7 +35103,7 @@ private static void _clinit_autosplit_dinit_2() { "DisplayName", "Name", "Rules", "Type", }); internal_static_google_cloud_compute_v1_RegionSetLabelsRequest_descriptor = - getDescriptor().getMessageTypes().get(1069); + getDescriptor().getMessageTypes().get(1072); internal_static_google_cloud_compute_v1_RegionSetLabelsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionSetLabelsRequest_descriptor, @@ -35023,7 +35121,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_RegionSetPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1070); + getDescriptor().getMessageTypes().get(1073); internal_static_google_cloud_compute_v1_RegionSetPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionSetPolicyRequest_descriptor, @@ -35031,7 +35129,7 @@ private static void _clinit_autosplit_dinit_2() { "Bindings", "Etag", "Policy", }); internal_static_google_cloud_compute_v1_RegionTargetHttpsProxiesSetSslCertificatesRequest_descriptor = - getDescriptor().getMessageTypes().get(1071); + getDescriptor().getMessageTypes().get(1074); internal_static_google_cloud_compute_v1_RegionTargetHttpsProxiesSetSslCertificatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionTargetHttpsProxiesSetSslCertificatesRequest_descriptor, @@ -35039,7 +35137,7 @@ private static void _clinit_autosplit_dinit_2() { "SslCertificates", }); internal_static_google_cloud_compute_v1_RegionUrlMapsValidateRequest_descriptor = - getDescriptor().getMessageTypes().get(1072); + getDescriptor().getMessageTypes().get(1075); internal_static_google_cloud_compute_v1_RegionUrlMapsValidateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RegionUrlMapsValidateRequest_descriptor, @@ -35047,7 +35145,7 @@ private static void _clinit_autosplit_dinit_2() { "Resource", }); internal_static_google_cloud_compute_v1_RemoveAssociationFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1073); + getDescriptor().getMessageTypes().get(1076); internal_static_google_cloud_compute_v1_RemoveAssociationFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveAssociationFirewallPolicyRequest_descriptor, @@ -35055,7 +35153,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "Name", "RequestId", }); internal_static_google_cloud_compute_v1_RemoveAssociationNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1074); + getDescriptor().getMessageTypes().get(1077); internal_static_google_cloud_compute_v1_RemoveAssociationNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveAssociationNetworkFirewallPolicyRequest_descriptor, @@ -35063,7 +35161,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "Name", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_RemoveAssociationRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1075); + getDescriptor().getMessageTypes().get(1078); internal_static_google_cloud_compute_v1_RemoveAssociationRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveAssociationRegionNetworkFirewallPolicyRequest_descriptor, @@ -35071,7 +35169,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "Name", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_RemoveHealthCheckTargetPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(1076); + getDescriptor().getMessageTypes().get(1079); internal_static_google_cloud_compute_v1_RemoveHealthCheckTargetPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveHealthCheckTargetPoolRequest_descriptor, @@ -35083,7 +35181,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetPoolsRemoveHealthCheckRequestResource", }); internal_static_google_cloud_compute_v1_RemoveInstanceTargetPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(1077); + getDescriptor().getMessageTypes().get(1080); internal_static_google_cloud_compute_v1_RemoveInstanceTargetPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveInstanceTargetPoolRequest_descriptor, @@ -35095,7 +35193,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetPoolsRemoveInstanceRequestResource", }); internal_static_google_cloud_compute_v1_RemoveInstancesInstanceGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1078); + getDescriptor().getMessageTypes().get(1081); internal_static_google_cloud_compute_v1_RemoveInstancesInstanceGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveInstancesInstanceGroupRequest_descriptor, @@ -35107,7 +35205,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_RemovePeeringNetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(1079); + getDescriptor().getMessageTypes().get(1082); internal_static_google_cloud_compute_v1_RemovePeeringNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemovePeeringNetworkRequest_descriptor, @@ -35115,7 +35213,7 @@ private static void _clinit_autosplit_dinit_2() { "Network", "NetworksRemovePeeringRequestResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_RemoveResourcePoliciesDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1080); + getDescriptor().getMessageTypes().get(1083); internal_static_google_cloud_compute_v1_RemoveResourcePoliciesDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveResourcePoliciesDiskRequest_descriptor, @@ -35123,7 +35221,7 @@ private static void _clinit_autosplit_dinit_2() { "Disk", "DisksRemoveResourcePoliciesRequestResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_RemoveResourcePoliciesInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1081); + getDescriptor().getMessageTypes().get(1084); internal_static_google_cloud_compute_v1_RemoveResourcePoliciesInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveResourcePoliciesInstanceRequest_descriptor, @@ -35135,7 +35233,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_RemoveResourcePoliciesRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1082); + getDescriptor().getMessageTypes().get(1085); internal_static_google_cloud_compute_v1_RemoveResourcePoliciesRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveResourcePoliciesRegionDiskRequest_descriptor, @@ -35147,7 +35245,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_RemoveRuleFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1083); + getDescriptor().getMessageTypes().get(1086); internal_static_google_cloud_compute_v1_RemoveRuleFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveRuleFirewallPolicyRequest_descriptor, @@ -35155,7 +35253,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "Priority", "RequestId", }); internal_static_google_cloud_compute_v1_RemoveRuleNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1084); + getDescriptor().getMessageTypes().get(1087); internal_static_google_cloud_compute_v1_RemoveRuleNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveRuleNetworkFirewallPolicyRequest_descriptor, @@ -35163,7 +35261,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "Priority", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_RemoveRuleRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1085); + getDescriptor().getMessageTypes().get(1088); internal_static_google_cloud_compute_v1_RemoveRuleRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveRuleRegionNetworkFirewallPolicyRequest_descriptor, @@ -35171,7 +35269,7 @@ private static void _clinit_autosplit_dinit_2() { "FirewallPolicy", "Priority", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_RemoveRuleRegionSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1086); + getDescriptor().getMessageTypes().get(1089); internal_static_google_cloud_compute_v1_RemoveRuleRegionSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveRuleRegionSecurityPolicyRequest_descriptor, @@ -35179,7 +35277,7 @@ private static void _clinit_autosplit_dinit_2() { "Priority", "Project", "Region", "SecurityPolicy", }); internal_static_google_cloud_compute_v1_RemoveRuleSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1087); + getDescriptor().getMessageTypes().get(1090); internal_static_google_cloud_compute_v1_RemoveRuleSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RemoveRuleSecurityPolicyRequest_descriptor, @@ -35187,7 +35285,7 @@ private static void _clinit_autosplit_dinit_2() { "Priority", "Project", "SecurityPolicy", }); internal_static_google_cloud_compute_v1_RequestMirrorPolicy_descriptor = - getDescriptor().getMessageTypes().get(1088); + getDescriptor().getMessageTypes().get(1091); internal_static_google_cloud_compute_v1_RequestMirrorPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RequestMirrorPolicy_descriptor, @@ -35195,7 +35293,7 @@ private static void _clinit_autosplit_dinit_2() { "BackendService", }); internal_static_google_cloud_compute_v1_Reservation_descriptor = - getDescriptor().getMessageTypes().get(1089); + getDescriptor().getMessageTypes().get(1092); internal_static_google_cloud_compute_v1_Reservation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Reservation_descriptor, @@ -35226,7 +35324,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ReservationAffinity_descriptor = - getDescriptor().getMessageTypes().get(1090); + getDescriptor().getMessageTypes().get(1093); internal_static_google_cloud_compute_v1_ReservationAffinity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationAffinity_descriptor, @@ -35234,7 +35332,7 @@ private static void _clinit_autosplit_dinit_2() { "ConsumeReservationType", "Key", "Values", }); internal_static_google_cloud_compute_v1_ReservationAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1091); + getDescriptor().getMessageTypes().get(1094); internal_static_google_cloud_compute_v1_ReservationAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationAggregatedList_descriptor, @@ -35252,7 +35350,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ReservationList_descriptor = - getDescriptor().getMessageTypes().get(1092); + getDescriptor().getMessageTypes().get(1095); internal_static_google_cloud_compute_v1_ReservationList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationList_descriptor, @@ -35260,7 +35358,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(1093); + getDescriptor().getMessageTypes().get(1096); internal_static_google_cloud_compute_v1_ReservationsResizeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationsResizeRequest_descriptor, @@ -35268,7 +35366,7 @@ private static void _clinit_autosplit_dinit_2() { "SpecificSkuCount", }); internal_static_google_cloud_compute_v1_ReservationsScopedList_descriptor = - getDescriptor().getMessageTypes().get(1094); + getDescriptor().getMessageTypes().get(1097); internal_static_google_cloud_compute_v1_ReservationsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ReservationsScopedList_descriptor, @@ -35276,7 +35374,7 @@ private static void _clinit_autosplit_dinit_2() { "Reservations", "Warning", }); internal_static_google_cloud_compute_v1_ResetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1095); + getDescriptor().getMessageTypes().get(1098); internal_static_google_cloud_compute_v1_ResetInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResetInstanceRequest_descriptor, @@ -35284,7 +35382,7 @@ private static void _clinit_autosplit_dinit_2() { "Instance", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_ResizeDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1096); + getDescriptor().getMessageTypes().get(1099); internal_static_google_cloud_compute_v1_ResizeDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResizeDiskRequest_descriptor, @@ -35292,7 +35390,7 @@ private static void _clinit_autosplit_dinit_2() { "Disk", "DisksResizeRequestResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_ResizeInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1097); + getDescriptor().getMessageTypes().get(1100); internal_static_google_cloud_compute_v1_ResizeInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResizeInstanceGroupManagerRequest_descriptor, @@ -35300,7 +35398,7 @@ private static void _clinit_autosplit_dinit_2() { "InstanceGroupManager", "Project", "RequestId", "Size", "Zone", }); internal_static_google_cloud_compute_v1_ResizeRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1098); + getDescriptor().getMessageTypes().get(1101); internal_static_google_cloud_compute_v1_ResizeRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResizeRegionDiskRequest_descriptor, @@ -35308,7 +35406,7 @@ private static void _clinit_autosplit_dinit_2() { "Disk", "Project", "Region", "RegionDisksResizeRequestResource", "RequestId", }); internal_static_google_cloud_compute_v1_ResizeRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1099); + getDescriptor().getMessageTypes().get(1102); internal_static_google_cloud_compute_v1_ResizeRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResizeRegionInstanceGroupManagerRequest_descriptor, @@ -35316,7 +35414,7 @@ private static void _clinit_autosplit_dinit_2() { "InstanceGroupManager", "Project", "Region", "RequestId", "Size", }); internal_static_google_cloud_compute_v1_ResizeReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(1100); + getDescriptor().getMessageTypes().get(1103); internal_static_google_cloud_compute_v1_ResizeReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResizeReservationRequest_descriptor, @@ -35324,7 +35422,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "Reservation", "ReservationsResizeRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_ResourceCommitment_descriptor = - getDescriptor().getMessageTypes().get(1101); + getDescriptor().getMessageTypes().get(1104); internal_static_google_cloud_compute_v1_ResourceCommitment_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourceCommitment_descriptor, @@ -35332,7 +35430,7 @@ private static void _clinit_autosplit_dinit_2() { "AcceleratorType", "Amount", "Type", }); internal_static_google_cloud_compute_v1_ResourceGroupReference_descriptor = - getDescriptor().getMessageTypes().get(1102); + getDescriptor().getMessageTypes().get(1105); internal_static_google_cloud_compute_v1_ResourceGroupReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourceGroupReference_descriptor, @@ -35340,7 +35438,7 @@ private static void _clinit_autosplit_dinit_2() { "Group", }); internal_static_google_cloud_compute_v1_ResourcePoliciesScopedList_descriptor = - getDescriptor().getMessageTypes().get(1103); + getDescriptor().getMessageTypes().get(1106); internal_static_google_cloud_compute_v1_ResourcePoliciesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePoliciesScopedList_descriptor, @@ -35348,7 +35446,7 @@ private static void _clinit_autosplit_dinit_2() { "ResourcePolicies", "Warning", }); internal_static_google_cloud_compute_v1_ResourcePolicy_descriptor = - getDescriptor().getMessageTypes().get(1104); + getDescriptor().getMessageTypes().get(1107); internal_static_google_cloud_compute_v1_ResourcePolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicy_descriptor, @@ -35368,7 +35466,7 @@ private static void _clinit_autosplit_dinit_2() { "Status", }); internal_static_google_cloud_compute_v1_ResourcePolicyAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1105); + getDescriptor().getMessageTypes().get(1108); internal_static_google_cloud_compute_v1_ResourcePolicyAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyAggregatedList_descriptor, @@ -35386,7 +35484,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ResourcePolicyDailyCycle_descriptor = - getDescriptor().getMessageTypes().get(1106); + getDescriptor().getMessageTypes().get(1109); internal_static_google_cloud_compute_v1_ResourcePolicyDailyCycle_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyDailyCycle_descriptor, @@ -35394,13 +35492,13 @@ private static void _clinit_autosplit_dinit_2() { "DaysInCycle", "Duration", "StartTime", }); internal_static_google_cloud_compute_v1_ResourcePolicyDiskConsistencyGroupPolicy_descriptor = - getDescriptor().getMessageTypes().get(1107); + getDescriptor().getMessageTypes().get(1110); 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(1108); + getDescriptor().getMessageTypes().get(1111); internal_static_google_cloud_compute_v1_ResourcePolicyGroupPlacementPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyGroupPlacementPolicy_descriptor, @@ -35408,7 +35506,7 @@ private static void _clinit_autosplit_dinit_2() { "AvailabilityDomainCount", "Collocation", "VmCount", }); internal_static_google_cloud_compute_v1_ResourcePolicyHourlyCycle_descriptor = - getDescriptor().getMessageTypes().get(1109); + getDescriptor().getMessageTypes().get(1112); internal_static_google_cloud_compute_v1_ResourcePolicyHourlyCycle_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyHourlyCycle_descriptor, @@ -35416,7 +35514,7 @@ private static void _clinit_autosplit_dinit_2() { "Duration", "HoursInCycle", "StartTime", }); internal_static_google_cloud_compute_v1_ResourcePolicyInstanceSchedulePolicy_descriptor = - getDescriptor().getMessageTypes().get(1110); + getDescriptor().getMessageTypes().get(1113); internal_static_google_cloud_compute_v1_ResourcePolicyInstanceSchedulePolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyInstanceSchedulePolicy_descriptor, @@ -35424,7 +35522,7 @@ private static void _clinit_autosplit_dinit_2() { "ExpirationTime", "StartTime", "TimeZone", "VmStartSchedule", "VmStopSchedule", }); internal_static_google_cloud_compute_v1_ResourcePolicyInstanceSchedulePolicySchedule_descriptor = - getDescriptor().getMessageTypes().get(1111); + getDescriptor().getMessageTypes().get(1114); internal_static_google_cloud_compute_v1_ResourcePolicyInstanceSchedulePolicySchedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyInstanceSchedulePolicySchedule_descriptor, @@ -35432,7 +35530,7 @@ private static void _clinit_autosplit_dinit_2() { "Schedule", }); internal_static_google_cloud_compute_v1_ResourcePolicyList_descriptor = - getDescriptor().getMessageTypes().get(1112); + getDescriptor().getMessageTypes().get(1115); internal_static_google_cloud_compute_v1_ResourcePolicyList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyList_descriptor, @@ -35440,7 +35538,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(1113); + getDescriptor().getMessageTypes().get(1116); internal_static_google_cloud_compute_v1_ResourcePolicyResourceStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyResourceStatus_descriptor, @@ -35448,7 +35546,7 @@ private static void _clinit_autosplit_dinit_2() { "InstanceSchedulePolicy", }); internal_static_google_cloud_compute_v1_ResourcePolicyResourceStatusInstanceSchedulePolicyStatus_descriptor = - getDescriptor().getMessageTypes().get(1114); + getDescriptor().getMessageTypes().get(1117); internal_static_google_cloud_compute_v1_ResourcePolicyResourceStatusInstanceSchedulePolicyStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyResourceStatusInstanceSchedulePolicyStatus_descriptor, @@ -35456,7 +35554,7 @@ private static void _clinit_autosplit_dinit_2() { "LastRunStartTime", "NextRunStartTime", }); internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicy_descriptor = - getDescriptor().getMessageTypes().get(1115); + getDescriptor().getMessageTypes().get(1118); internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicy_descriptor, @@ -35464,7 +35562,7 @@ private static void _clinit_autosplit_dinit_2() { "RetentionPolicy", "Schedule", "SnapshotProperties", }); internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicyRetentionPolicy_descriptor = - getDescriptor().getMessageTypes().get(1116); + getDescriptor().getMessageTypes().get(1119); internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicyRetentionPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicyRetentionPolicy_descriptor, @@ -35472,7 +35570,7 @@ private static void _clinit_autosplit_dinit_2() { "MaxRetentionDays", "OnSourceDiskDelete", }); internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicySchedule_descriptor = - getDescriptor().getMessageTypes().get(1117); + getDescriptor().getMessageTypes().get(1120); internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicySchedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicySchedule_descriptor, @@ -35480,7 +35578,7 @@ private static void _clinit_autosplit_dinit_2() { "DailySchedule", "HourlySchedule", "WeeklySchedule", }); internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicySnapshotProperties_descriptor = - getDescriptor().getMessageTypes().get(1118); + getDescriptor().getMessageTypes().get(1121); internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicySnapshotProperties_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicySnapshotSchedulePolicySnapshotProperties_descriptor, @@ -35498,7 +35596,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ResourcePolicyWeeklyCycle_descriptor = - getDescriptor().getMessageTypes().get(1119); + getDescriptor().getMessageTypes().get(1122); internal_static_google_cloud_compute_v1_ResourcePolicyWeeklyCycle_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyWeeklyCycle_descriptor, @@ -35506,7 +35604,7 @@ private static void _clinit_autosplit_dinit_2() { "DayOfWeeks", }); internal_static_google_cloud_compute_v1_ResourcePolicyWeeklyCycleDayOfWeek_descriptor = - getDescriptor().getMessageTypes().get(1120); + getDescriptor().getMessageTypes().get(1123); internal_static_google_cloud_compute_v1_ResourcePolicyWeeklyCycleDayOfWeek_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourcePolicyWeeklyCycleDayOfWeek_descriptor, @@ -35514,7 +35612,7 @@ private static void _clinit_autosplit_dinit_2() { "Day", "Duration", "StartTime", }); internal_static_google_cloud_compute_v1_ResourceStatus_descriptor = - getDescriptor().getMessageTypes().get(1121); + getDescriptor().getMessageTypes().get(1124); internal_static_google_cloud_compute_v1_ResourceStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourceStatus_descriptor, @@ -35522,7 +35620,7 @@ private static void _clinit_autosplit_dinit_2() { "PhysicalHost", "Scheduling", "UpcomingMaintenance", }); internal_static_google_cloud_compute_v1_ResourceStatusScheduling_descriptor = - getDescriptor().getMessageTypes().get(1122); + getDescriptor().getMessageTypes().get(1125); internal_static_google_cloud_compute_v1_ResourceStatusScheduling_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResourceStatusScheduling_descriptor, @@ -35530,7 +35628,7 @@ private static void _clinit_autosplit_dinit_2() { "AvailabilityDomain", }); internal_static_google_cloud_compute_v1_ResumeInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1123); + getDescriptor().getMessageTypes().get(1126); internal_static_google_cloud_compute_v1_ResumeInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResumeInstanceRequest_descriptor, @@ -35538,7 +35636,7 @@ private static void _clinit_autosplit_dinit_2() { "Instance", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_ResumeInstancesInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1124); + getDescriptor().getMessageTypes().get(1127); internal_static_google_cloud_compute_v1_ResumeInstancesInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResumeInstancesInstanceGroupManagerRequest_descriptor, @@ -35550,7 +35648,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_ResumeInstancesRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1125); + getDescriptor().getMessageTypes().get(1128); internal_static_google_cloud_compute_v1_ResumeInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ResumeInstancesRegionInstanceGroupManagerRequest_descriptor, @@ -35562,7 +35660,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_Route_descriptor = - getDescriptor().getMessageTypes().get(1126); + getDescriptor().getMessageTypes().get(1129); internal_static_google_cloud_compute_v1_Route_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Route_descriptor, @@ -35594,7 +35692,7 @@ private static void _clinit_autosplit_dinit_2() { "Warnings", }); internal_static_google_cloud_compute_v1_RouteAsPath_descriptor = - getDescriptor().getMessageTypes().get(1127); + getDescriptor().getMessageTypes().get(1130); internal_static_google_cloud_compute_v1_RouteAsPath_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouteAsPath_descriptor, @@ -35602,7 +35700,7 @@ private static void _clinit_autosplit_dinit_2() { "AsLists", "PathSegmentType", }); internal_static_google_cloud_compute_v1_RouteList_descriptor = - getDescriptor().getMessageTypes().get(1128); + getDescriptor().getMessageTypes().get(1131); internal_static_google_cloud_compute_v1_RouteList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouteList_descriptor, @@ -35610,7 +35708,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(1129); + getDescriptor().getMessageTypes().get(1132); internal_static_google_cloud_compute_v1_Router_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Router_descriptor, @@ -35631,7 +35729,7 @@ private static void _clinit_autosplit_dinit_2() { "SelfLink", }); internal_static_google_cloud_compute_v1_RouterAdvertisedIpRange_descriptor = - getDescriptor().getMessageTypes().get(1130); + getDescriptor().getMessageTypes().get(1133); internal_static_google_cloud_compute_v1_RouterAdvertisedIpRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterAdvertisedIpRange_descriptor, @@ -35639,7 +35737,7 @@ private static void _clinit_autosplit_dinit_2() { "Description", "Range", }); internal_static_google_cloud_compute_v1_RouterAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1131); + getDescriptor().getMessageTypes().get(1134); internal_static_google_cloud_compute_v1_RouterAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterAggregatedList_descriptor, @@ -35657,7 +35755,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_RouterBgp_descriptor = - getDescriptor().getMessageTypes().get(1132); + getDescriptor().getMessageTypes().get(1135); internal_static_google_cloud_compute_v1_RouterBgp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterBgp_descriptor, @@ -35670,7 +35768,7 @@ private static void _clinit_autosplit_dinit_2() { "KeepaliveInterval", }); internal_static_google_cloud_compute_v1_RouterBgpPeer_descriptor = - getDescriptor().getMessageTypes().get(1133); + getDescriptor().getMessageTypes().get(1136); internal_static_google_cloud_compute_v1_RouterBgpPeer_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterBgpPeer_descriptor, @@ -35701,7 +35799,7 @@ private static void _clinit_autosplit_dinit_2() { "RouterApplianceInstance", }); internal_static_google_cloud_compute_v1_RouterBgpPeerBfd_descriptor = - getDescriptor().getMessageTypes().get(1134); + getDescriptor().getMessageTypes().get(1137); internal_static_google_cloud_compute_v1_RouterBgpPeerBfd_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterBgpPeerBfd_descriptor, @@ -35712,7 +35810,7 @@ private static void _clinit_autosplit_dinit_2() { "SessionInitializationMode", }); internal_static_google_cloud_compute_v1_RouterBgpPeerCustomLearnedIpRange_descriptor = - getDescriptor().getMessageTypes().get(1135); + getDescriptor().getMessageTypes().get(1138); internal_static_google_cloud_compute_v1_RouterBgpPeerCustomLearnedIpRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterBgpPeerCustomLearnedIpRange_descriptor, @@ -35720,7 +35818,7 @@ private static void _clinit_autosplit_dinit_2() { "Range", }); internal_static_google_cloud_compute_v1_RouterInterface_descriptor = - getDescriptor().getMessageTypes().get(1136); + getDescriptor().getMessageTypes().get(1139); internal_static_google_cloud_compute_v1_RouterInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterInterface_descriptor, @@ -35736,7 +35834,7 @@ private static void _clinit_autosplit_dinit_2() { "Subnetwork", }); internal_static_google_cloud_compute_v1_RouterList_descriptor = - getDescriptor().getMessageTypes().get(1137); + getDescriptor().getMessageTypes().get(1140); internal_static_google_cloud_compute_v1_RouterList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterList_descriptor, @@ -35744,7 +35842,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(1138); + getDescriptor().getMessageTypes().get(1141); internal_static_google_cloud_compute_v1_RouterMd5AuthenticationKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterMd5AuthenticationKey_descriptor, @@ -35752,7 +35850,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Name", }); internal_static_google_cloud_compute_v1_RouterNat_descriptor = - getDescriptor().getMessageTypes().get(1139); + getDescriptor().getMessageTypes().get(1142); internal_static_google_cloud_compute_v1_RouterNat_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterNat_descriptor, @@ -35779,7 +35877,7 @@ private static void _clinit_autosplit_dinit_2() { "UdpIdleTimeoutSec", }); internal_static_google_cloud_compute_v1_RouterNatLogConfig_descriptor = - getDescriptor().getMessageTypes().get(1140); + getDescriptor().getMessageTypes().get(1143); internal_static_google_cloud_compute_v1_RouterNatLogConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterNatLogConfig_descriptor, @@ -35787,7 +35885,7 @@ private static void _clinit_autosplit_dinit_2() { "Enable", "Filter", }); internal_static_google_cloud_compute_v1_RouterNatRule_descriptor = - getDescriptor().getMessageTypes().get(1141); + getDescriptor().getMessageTypes().get(1144); internal_static_google_cloud_compute_v1_RouterNatRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterNatRule_descriptor, @@ -35795,7 +35893,7 @@ private static void _clinit_autosplit_dinit_2() { "Action", "Description", "Match", "RuleNumber", }); internal_static_google_cloud_compute_v1_RouterNatRuleAction_descriptor = - getDescriptor().getMessageTypes().get(1142); + getDescriptor().getMessageTypes().get(1145); internal_static_google_cloud_compute_v1_RouterNatRuleAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterNatRuleAction_descriptor, @@ -35806,7 +35904,7 @@ private static void _clinit_autosplit_dinit_2() { "SourceNatDrainRanges", }); internal_static_google_cloud_compute_v1_RouterNatSubnetworkToNat_descriptor = - getDescriptor().getMessageTypes().get(1143); + getDescriptor().getMessageTypes().get(1146); internal_static_google_cloud_compute_v1_RouterNatSubnetworkToNat_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterNatSubnetworkToNat_descriptor, @@ -35814,7 +35912,7 @@ private static void _clinit_autosplit_dinit_2() { "Name", "SecondaryIpRangeNames", "SourceIpRangesToNat", }); internal_static_google_cloud_compute_v1_RouterStatus_descriptor = - getDescriptor().getMessageTypes().get(1144); + getDescriptor().getMessageTypes().get(1147); internal_static_google_cloud_compute_v1_RouterStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterStatus_descriptor, @@ -35822,7 +35920,7 @@ private static void _clinit_autosplit_dinit_2() { "BestRoutes", "BestRoutesForRouter", "BgpPeerStatus", "NatStatus", "Network", }); internal_static_google_cloud_compute_v1_RouterStatusBgpPeerStatus_descriptor = - getDescriptor().getMessageTypes().get(1145); + getDescriptor().getMessageTypes().get(1148); internal_static_google_cloud_compute_v1_RouterStatusBgpPeerStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterStatusBgpPeerStatus_descriptor, @@ -35849,7 +35947,7 @@ private static void _clinit_autosplit_dinit_2() { "UptimeSeconds", }); internal_static_google_cloud_compute_v1_RouterStatusNatStatus_descriptor = - getDescriptor().getMessageTypes().get(1146); + getDescriptor().getMessageTypes().get(1149); internal_static_google_cloud_compute_v1_RouterStatusNatStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterStatusNatStatus_descriptor, @@ -35865,7 +35963,7 @@ private static void _clinit_autosplit_dinit_2() { "UserAllocatedNatIps", }); internal_static_google_cloud_compute_v1_RouterStatusNatStatusNatRuleStatus_descriptor = - getDescriptor().getMessageTypes().get(1147); + getDescriptor().getMessageTypes().get(1150); internal_static_google_cloud_compute_v1_RouterStatusNatStatusNatRuleStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterStatusNatStatusNatRuleStatus_descriptor, @@ -35877,7 +35975,7 @@ private static void _clinit_autosplit_dinit_2() { "RuleNumber", }); internal_static_google_cloud_compute_v1_RouterStatusResponse_descriptor = - getDescriptor().getMessageTypes().get(1148); + getDescriptor().getMessageTypes().get(1151); internal_static_google_cloud_compute_v1_RouterStatusResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RouterStatusResponse_descriptor, @@ -35885,7 +35983,7 @@ private static void _clinit_autosplit_dinit_2() { "Kind", "Result", }); internal_static_google_cloud_compute_v1_RoutersPreviewResponse_descriptor = - getDescriptor().getMessageTypes().get(1149); + getDescriptor().getMessageTypes().get(1152); internal_static_google_cloud_compute_v1_RoutersPreviewResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RoutersPreviewResponse_descriptor, @@ -35893,7 +35991,7 @@ private static void _clinit_autosplit_dinit_2() { "Resource", }); internal_static_google_cloud_compute_v1_RoutersScopedList_descriptor = - getDescriptor().getMessageTypes().get(1150); + getDescriptor().getMessageTypes().get(1153); internal_static_google_cloud_compute_v1_RoutersScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_RoutersScopedList_descriptor, @@ -35901,7 +35999,7 @@ private static void _clinit_autosplit_dinit_2() { "Routers", "Warning", }); internal_static_google_cloud_compute_v1_SSLHealthCheck_descriptor = - getDescriptor().getMessageTypes().get(1151); + getDescriptor().getMessageTypes().get(1154); internal_static_google_cloud_compute_v1_SSLHealthCheck_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SSLHealthCheck_descriptor, @@ -35909,7 +36007,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(1152); + getDescriptor().getMessageTypes().get(1155); internal_static_google_cloud_compute_v1_SavedAttachedDisk_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SavedAttachedDisk_descriptor, @@ -35932,7 +36030,7 @@ private static void _clinit_autosplit_dinit_2() { "Type", }); internal_static_google_cloud_compute_v1_SavedDisk_descriptor = - getDescriptor().getMessageTypes().get(1153); + getDescriptor().getMessageTypes().get(1156); internal_static_google_cloud_compute_v1_SavedDisk_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SavedDisk_descriptor, @@ -35940,7 +36038,7 @@ private static void _clinit_autosplit_dinit_2() { "Architecture", "Kind", "SourceDisk", "StorageBytes", "StorageBytesStatus", }); internal_static_google_cloud_compute_v1_ScalingScheduleStatus_descriptor = - getDescriptor().getMessageTypes().get(1154); + getDescriptor().getMessageTypes().get(1157); internal_static_google_cloud_compute_v1_ScalingScheduleStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ScalingScheduleStatus_descriptor, @@ -35948,7 +36046,7 @@ private static void _clinit_autosplit_dinit_2() { "LastStartTime", "NextStartTime", "State", }); internal_static_google_cloud_compute_v1_Scheduling_descriptor = - getDescriptor().getMessageTypes().get(1155); + getDescriptor().getMessageTypes().get(1158); internal_static_google_cloud_compute_v1_Scheduling_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Scheduling_descriptor, @@ -35968,7 +36066,7 @@ private static void _clinit_autosplit_dinit_2() { "TerminationTime", }); internal_static_google_cloud_compute_v1_SchedulingNodeAffinity_descriptor = - getDescriptor().getMessageTypes().get(1156); + getDescriptor().getMessageTypes().get(1159); internal_static_google_cloud_compute_v1_SchedulingNodeAffinity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SchedulingNodeAffinity_descriptor, @@ -35976,7 +36074,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Operator", "Values", }); internal_static_google_cloud_compute_v1_SchedulingOnInstanceStopAction_descriptor = - getDescriptor().getMessageTypes().get(1157); + getDescriptor().getMessageTypes().get(1160); internal_static_google_cloud_compute_v1_SchedulingOnInstanceStopAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SchedulingOnInstanceStopAction_descriptor, @@ -35984,7 +36082,7 @@ private static void _clinit_autosplit_dinit_2() { "DiscardLocalSsd", }); internal_static_google_cloud_compute_v1_ScratchDisks_descriptor = - getDescriptor().getMessageTypes().get(1158); + getDescriptor().getMessageTypes().get(1161); internal_static_google_cloud_compute_v1_ScratchDisks_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ScratchDisks_descriptor, @@ -35992,7 +36090,7 @@ private static void _clinit_autosplit_dinit_2() { "DiskGb", }); internal_static_google_cloud_compute_v1_Screenshot_descriptor = - getDescriptor().getMessageTypes().get(1159); + getDescriptor().getMessageTypes().get(1162); internal_static_google_cloud_compute_v1_Screenshot_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Screenshot_descriptor, @@ -36000,7 +36098,7 @@ private static void _clinit_autosplit_dinit_2() { "Contents", "Kind", }); internal_static_google_cloud_compute_v1_SecurityPoliciesAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1160); + getDescriptor().getMessageTypes().get(1163); internal_static_google_cloud_compute_v1_SecurityPoliciesAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPoliciesAggregatedList_descriptor, @@ -36018,7 +36116,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SecurityPoliciesListPreconfiguredExpressionSetsResponse_descriptor = - getDescriptor().getMessageTypes().get(1161); + getDescriptor().getMessageTypes().get(1164); internal_static_google_cloud_compute_v1_SecurityPoliciesListPreconfiguredExpressionSetsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPoliciesListPreconfiguredExpressionSetsResponse_descriptor, @@ -36026,7 +36124,7 @@ private static void _clinit_autosplit_dinit_2() { "PreconfiguredExpressionSets", }); internal_static_google_cloud_compute_v1_SecurityPoliciesScopedList_descriptor = - getDescriptor().getMessageTypes().get(1162); + getDescriptor().getMessageTypes().get(1165); internal_static_google_cloud_compute_v1_SecurityPoliciesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPoliciesScopedList_descriptor, @@ -36034,7 +36132,7 @@ private static void _clinit_autosplit_dinit_2() { "SecurityPolicies", "Warning", }); internal_static_google_cloud_compute_v1_SecurityPoliciesWafConfig_descriptor = - getDescriptor().getMessageTypes().get(1163); + getDescriptor().getMessageTypes().get(1166); internal_static_google_cloud_compute_v1_SecurityPoliciesWafConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPoliciesWafConfig_descriptor, @@ -36042,7 +36140,7 @@ private static void _clinit_autosplit_dinit_2() { "WafRules", }); internal_static_google_cloud_compute_v1_SecurityPolicy_descriptor = - getDescriptor().getMessageTypes().get(1164); + getDescriptor().getMessageTypes().get(1167); internal_static_google_cloud_compute_v1_SecurityPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicy_descriptor, @@ -36074,7 +36172,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfig_descriptor = - getDescriptor().getMessageTypes().get(1165); + getDescriptor().getMessageTypes().get(1168); internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfig_descriptor, @@ -36082,7 +36180,7 @@ private static void _clinit_autosplit_dinit_2() { "Layer7DdosDefenseConfig", }); internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig_descriptor = - getDescriptor().getMessageTypes().get(1166); + getDescriptor().getMessageTypes().get(1169); internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig_descriptor, @@ -36090,7 +36188,7 @@ private static void _clinit_autosplit_dinit_2() { "Enable", "RuleVisibility", "ThresholdConfigs", }); internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig_descriptor = - getDescriptor().getMessageTypes().get(1167); + getDescriptor().getMessageTypes().get(1170); internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig_descriptor, @@ -36106,7 +36204,7 @@ private static void _clinit_autosplit_dinit_2() { "TrafficGranularityConfigs", }); internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig_descriptor = - getDescriptor().getMessageTypes().get(1168); + getDescriptor().getMessageTypes().get(1171); internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig_descriptor, @@ -36114,7 +36212,7 @@ private static void _clinit_autosplit_dinit_2() { "EnableEachUniqueValue", "Type", "Value", }); internal_static_google_cloud_compute_v1_SecurityPolicyAdvancedOptionsConfig_descriptor = - getDescriptor().getMessageTypes().get(1169); + getDescriptor().getMessageTypes().get(1172); internal_static_google_cloud_compute_v1_SecurityPolicyAdvancedOptionsConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyAdvancedOptionsConfig_descriptor, @@ -36122,7 +36220,7 @@ private static void _clinit_autosplit_dinit_2() { "JsonCustomConfig", "JsonParsing", "LogLevel", "UserIpRequestHeaders", }); internal_static_google_cloud_compute_v1_SecurityPolicyAdvancedOptionsConfigJsonCustomConfig_descriptor = - getDescriptor().getMessageTypes().get(1170); + getDescriptor().getMessageTypes().get(1173); internal_static_google_cloud_compute_v1_SecurityPolicyAdvancedOptionsConfigJsonCustomConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyAdvancedOptionsConfigJsonCustomConfig_descriptor, @@ -36130,7 +36228,7 @@ private static void _clinit_autosplit_dinit_2() { "ContentTypes", }); internal_static_google_cloud_compute_v1_SecurityPolicyDdosProtectionConfig_descriptor = - getDescriptor().getMessageTypes().get(1171); + getDescriptor().getMessageTypes().get(1174); internal_static_google_cloud_compute_v1_SecurityPolicyDdosProtectionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyDdosProtectionConfig_descriptor, @@ -36138,7 +36236,7 @@ private static void _clinit_autosplit_dinit_2() { "DdosProtection", }); internal_static_google_cloud_compute_v1_SecurityPolicyList_descriptor = - getDescriptor().getMessageTypes().get(1172); + getDescriptor().getMessageTypes().get(1175); internal_static_google_cloud_compute_v1_SecurityPolicyList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyList_descriptor, @@ -36146,7 +36244,7 @@ private static void _clinit_autosplit_dinit_2() { "Id", "Items", "Kind", "NextPageToken", "Warning", }); internal_static_google_cloud_compute_v1_SecurityPolicyRecaptchaOptionsConfig_descriptor = - getDescriptor().getMessageTypes().get(1173); + getDescriptor().getMessageTypes().get(1176); internal_static_google_cloud_compute_v1_SecurityPolicyRecaptchaOptionsConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRecaptchaOptionsConfig_descriptor, @@ -36154,7 +36252,7 @@ private static void _clinit_autosplit_dinit_2() { "RedirectSiteKey", }); internal_static_google_cloud_compute_v1_SecurityPolicyReference_descriptor = - getDescriptor().getMessageTypes().get(1174); + getDescriptor().getMessageTypes().get(1177); internal_static_google_cloud_compute_v1_SecurityPolicyReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyReference_descriptor, @@ -36162,7 +36260,7 @@ private static void _clinit_autosplit_dinit_2() { "SecurityPolicy", }); internal_static_google_cloud_compute_v1_SecurityPolicyRule_descriptor = - getDescriptor().getMessageTypes().get(1175); + getDescriptor().getMessageTypes().get(1178); internal_static_google_cloud_compute_v1_SecurityPolicyRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRule_descriptor, @@ -36180,7 +36278,7 @@ private static void _clinit_autosplit_dinit_2() { "RedirectOptions", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleHttpHeaderAction_descriptor = - getDescriptor().getMessageTypes().get(1176); + getDescriptor().getMessageTypes().get(1179); internal_static_google_cloud_compute_v1_SecurityPolicyRuleHttpHeaderAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleHttpHeaderAction_descriptor, @@ -36188,7 +36286,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestHeadersToAdds", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleHttpHeaderActionHttpHeaderOption_descriptor = - getDescriptor().getMessageTypes().get(1177); + getDescriptor().getMessageTypes().get(1180); internal_static_google_cloud_compute_v1_SecurityPolicyRuleHttpHeaderActionHttpHeaderOption_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleHttpHeaderActionHttpHeaderOption_descriptor, @@ -36196,7 +36294,7 @@ private static void _clinit_autosplit_dinit_2() { "HeaderName", "HeaderValue", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcher_descriptor = - getDescriptor().getMessageTypes().get(1178); + getDescriptor().getMessageTypes().get(1181); internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcher_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcher_descriptor, @@ -36204,7 +36302,7 @@ private static void _clinit_autosplit_dinit_2() { "Config", "Expr", "ExprOptions", "VersionedExpr", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherConfig_descriptor = - getDescriptor().getMessageTypes().get(1179); + getDescriptor().getMessageTypes().get(1182); internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherConfig_descriptor, @@ -36212,7 +36310,7 @@ private static void _clinit_autosplit_dinit_2() { "SrcIpRanges", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherExprOptions_descriptor = - getDescriptor().getMessageTypes().get(1180); + getDescriptor().getMessageTypes().get(1183); internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherExprOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherExprOptions_descriptor, @@ -36220,7 +36318,7 @@ private static void _clinit_autosplit_dinit_2() { "RecaptchaOptions", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions_descriptor = - getDescriptor().getMessageTypes().get(1181); + getDescriptor().getMessageTypes().get(1184); internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions_descriptor, @@ -36228,7 +36326,7 @@ private static void _clinit_autosplit_dinit_2() { "ActionTokenSiteKeys", "SessionTokenSiteKeys", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleNetworkMatcher_descriptor = - getDescriptor().getMessageTypes().get(1182); + getDescriptor().getMessageTypes().get(1185); internal_static_google_cloud_compute_v1_SecurityPolicyRuleNetworkMatcher_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleNetworkMatcher_descriptor, @@ -36243,7 +36341,7 @@ private static void _clinit_autosplit_dinit_2() { "UserDefinedFields", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch_descriptor = - getDescriptor().getMessageTypes().get(1183); + getDescriptor().getMessageTypes().get(1186); internal_static_google_cloud_compute_v1_SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch_descriptor, @@ -36251,7 +36349,7 @@ private static void _clinit_autosplit_dinit_2() { "Name", "Values", }); internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfig_descriptor = - getDescriptor().getMessageTypes().get(1184); + getDescriptor().getMessageTypes().get(1187); internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfig_descriptor, @@ -36259,7 +36357,7 @@ private static void _clinit_autosplit_dinit_2() { "Exclusions", }); internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfigExclusion_descriptor = - getDescriptor().getMessageTypes().get(1185); + getDescriptor().getMessageTypes().get(1188); internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfigExclusion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfigExclusion_descriptor, @@ -36272,7 +36370,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetRuleSet", }); internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams_descriptor = - getDescriptor().getMessageTypes().get(1186); + getDescriptor().getMessageTypes().get(1189); internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams_descriptor, @@ -36280,7 +36378,7 @@ private static void _clinit_autosplit_dinit_2() { "Op", "Val", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptions_descriptor = - getDescriptor().getMessageTypes().get(1187); + getDescriptor().getMessageTypes().get(1190); internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptions_descriptor, @@ -36296,7 +36394,7 @@ private static void _clinit_autosplit_dinit_2() { "RateLimitThreshold", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig_descriptor = - getDescriptor().getMessageTypes().get(1188); + getDescriptor().getMessageTypes().get(1191); internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig_descriptor, @@ -36304,7 +36402,7 @@ private static void _clinit_autosplit_dinit_2() { "EnforceOnKeyName", "EnforceOnKeyType", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptionsThreshold_descriptor = - getDescriptor().getMessageTypes().get(1189); + getDescriptor().getMessageTypes().get(1192); internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptionsThreshold_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleRateLimitOptionsThreshold_descriptor, @@ -36312,7 +36410,7 @@ private static void _clinit_autosplit_dinit_2() { "Count", "IntervalSec", }); internal_static_google_cloud_compute_v1_SecurityPolicyRuleRedirectOptions_descriptor = - getDescriptor().getMessageTypes().get(1190); + getDescriptor().getMessageTypes().get(1193); internal_static_google_cloud_compute_v1_SecurityPolicyRuleRedirectOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyRuleRedirectOptions_descriptor, @@ -36320,7 +36418,7 @@ private static void _clinit_autosplit_dinit_2() { "Target", "Type", }); internal_static_google_cloud_compute_v1_SecurityPolicyUserDefinedField_descriptor = - getDescriptor().getMessageTypes().get(1191); + getDescriptor().getMessageTypes().get(1194); internal_static_google_cloud_compute_v1_SecurityPolicyUserDefinedField_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecurityPolicyUserDefinedField_descriptor, @@ -36328,7 +36426,7 @@ private static void _clinit_autosplit_dinit_2() { "Base", "Mask", "Name", "Offset", "Size", }); internal_static_google_cloud_compute_v1_SecuritySettings_descriptor = - getDescriptor().getMessageTypes().get(1192); + getDescriptor().getMessageTypes().get(1195); internal_static_google_cloud_compute_v1_SecuritySettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SecuritySettings_descriptor, @@ -36336,7 +36434,7 @@ private static void _clinit_autosplit_dinit_2() { "AwsV4Authentication", "ClientTlsPolicy", "SubjectAltNames", }); internal_static_google_cloud_compute_v1_SendDiagnosticInterruptInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1193); + getDescriptor().getMessageTypes().get(1196); internal_static_google_cloud_compute_v1_SendDiagnosticInterruptInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SendDiagnosticInterruptInstanceRequest_descriptor, @@ -36344,13 +36442,13 @@ private static void _clinit_autosplit_dinit_2() { "Instance", "Project", "Zone", }); internal_static_google_cloud_compute_v1_SendDiagnosticInterruptInstanceResponse_descriptor = - getDescriptor().getMessageTypes().get(1194); + getDescriptor().getMessageTypes().get(1197); 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(1195); + getDescriptor().getMessageTypes().get(1198); internal_static_google_cloud_compute_v1_SerialPortOutput_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SerialPortOutput_descriptor, @@ -36358,7 +36456,7 @@ private static void _clinit_autosplit_dinit_2() { "Contents", "Kind", "Next", "SelfLink", "Start", }); internal_static_google_cloud_compute_v1_ServerBinding_descriptor = - getDescriptor().getMessageTypes().get(1196); + getDescriptor().getMessageTypes().get(1199); internal_static_google_cloud_compute_v1_ServerBinding_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ServerBinding_descriptor, @@ -36366,7 +36464,7 @@ private static void _clinit_autosplit_dinit_2() { "Type", }); internal_static_google_cloud_compute_v1_ServiceAccount_descriptor = - getDescriptor().getMessageTypes().get(1197); + getDescriptor().getMessageTypes().get(1200); internal_static_google_cloud_compute_v1_ServiceAccount_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ServiceAccount_descriptor, @@ -36374,7 +36472,7 @@ private static void _clinit_autosplit_dinit_2() { "Email", "Scopes", }); internal_static_google_cloud_compute_v1_ServiceAttachment_descriptor = - getDescriptor().getMessageTypes().get(1198); + getDescriptor().getMessageTypes().get(1201); internal_static_google_cloud_compute_v1_ServiceAttachment_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ServiceAttachment_descriptor, @@ -36401,7 +36499,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetService", }); internal_static_google_cloud_compute_v1_ServiceAttachmentAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1199); + getDescriptor().getMessageTypes().get(1202); internal_static_google_cloud_compute_v1_ServiceAttachmentAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ServiceAttachmentAggregatedList_descriptor, @@ -36419,7 +36517,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ServiceAttachmentConnectedEndpoint_descriptor = - getDescriptor().getMessageTypes().get(1200); + getDescriptor().getMessageTypes().get(1203); internal_static_google_cloud_compute_v1_ServiceAttachmentConnectedEndpoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ServiceAttachmentConnectedEndpoint_descriptor, @@ -36431,7 +36529,7 @@ private static void _clinit_autosplit_dinit_2() { "Status", }); internal_static_google_cloud_compute_v1_ServiceAttachmentConsumerProjectLimit_descriptor = - getDescriptor().getMessageTypes().get(1201); + getDescriptor().getMessageTypes().get(1204); internal_static_google_cloud_compute_v1_ServiceAttachmentConsumerProjectLimit_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ServiceAttachmentConsumerProjectLimit_descriptor, @@ -36439,7 +36537,7 @@ private static void _clinit_autosplit_dinit_2() { "ConnectionLimit", "NetworkUrl", "ProjectIdOrNum", }); internal_static_google_cloud_compute_v1_ServiceAttachmentList_descriptor = - getDescriptor().getMessageTypes().get(1202); + getDescriptor().getMessageTypes().get(1205); internal_static_google_cloud_compute_v1_ServiceAttachmentList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ServiceAttachmentList_descriptor, @@ -36447,7 +36545,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(1203); + getDescriptor().getMessageTypes().get(1206); internal_static_google_cloud_compute_v1_ServiceAttachmentsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ServiceAttachmentsScopedList_descriptor, @@ -36455,7 +36553,7 @@ private static void _clinit_autosplit_dinit_2() { "ServiceAttachments", "Warning", }); internal_static_google_cloud_compute_v1_SetBackendServiceTargetSslProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1204); + getDescriptor().getMessageTypes().get(1207); internal_static_google_cloud_compute_v1_SetBackendServiceTargetSslProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetBackendServiceTargetSslProxyRequest_descriptor, @@ -36466,7 +36564,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetSslProxy", }); internal_static_google_cloud_compute_v1_SetBackendServiceTargetTcpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1205); + getDescriptor().getMessageTypes().get(1208); internal_static_google_cloud_compute_v1_SetBackendServiceTargetTcpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetBackendServiceTargetTcpProxyRequest_descriptor, @@ -36477,7 +36575,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetTcpProxy", }); internal_static_google_cloud_compute_v1_SetBackupTargetPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(1206); + getDescriptor().getMessageTypes().get(1209); internal_static_google_cloud_compute_v1_SetBackupTargetPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetBackupTargetPoolRequest_descriptor, @@ -36490,7 +36588,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetReferenceResource", }); internal_static_google_cloud_compute_v1_SetCertificateMapTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1207); + getDescriptor().getMessageTypes().get(1210); internal_static_google_cloud_compute_v1_SetCertificateMapTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetCertificateMapTargetHttpsProxyRequest_descriptor, @@ -36501,7 +36599,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetHttpsProxy", }); internal_static_google_cloud_compute_v1_SetCertificateMapTargetSslProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1208); + getDescriptor().getMessageTypes().get(1211); internal_static_google_cloud_compute_v1_SetCertificateMapTargetSslProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetCertificateMapTargetSslProxyRequest_descriptor, @@ -36512,7 +36610,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetSslProxy", }); internal_static_google_cloud_compute_v1_SetCloudArmorTierProjectRequest_descriptor = - getDescriptor().getMessageTypes().get(1209); + getDescriptor().getMessageTypes().get(1212); internal_static_google_cloud_compute_v1_SetCloudArmorTierProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetCloudArmorTierProjectRequest_descriptor, @@ -36520,7 +36618,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "ProjectsSetCloudArmorTierRequestResource", "RequestId", }); internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(1210); + getDescriptor().getMessageTypes().get(1213); internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataOperationMetadata_descriptor, @@ -36538,7 +36636,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo_descriptor = - getDescriptor().getMessageTypes().get(1211); + getDescriptor().getMessageTypes().get(1214); internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo_descriptor, @@ -36546,7 +36644,7 @@ private static void _clinit_autosplit_dinit_2() { "Error", "State", }); internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataProjectRequest_descriptor = - getDescriptor().getMessageTypes().get(1212); + getDescriptor().getMessageTypes().get(1215); internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetCommonInstanceMetadataProjectRequest_descriptor, @@ -36554,7 +36652,7 @@ private static void _clinit_autosplit_dinit_2() { "MetadataResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_SetDefaultNetworkTierProjectRequest_descriptor = - getDescriptor().getMessageTypes().get(1213); + getDescriptor().getMessageTypes().get(1216); internal_static_google_cloud_compute_v1_SetDefaultNetworkTierProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetDefaultNetworkTierProjectRequest_descriptor, @@ -36562,7 +36660,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "ProjectsSetDefaultNetworkTierRequestResource", "RequestId", }); internal_static_google_cloud_compute_v1_SetDeletionProtectionInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1214); + getDescriptor().getMessageTypes().get(1217); internal_static_google_cloud_compute_v1_SetDeletionProtectionInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetDeletionProtectionInstanceRequest_descriptor, @@ -36570,7 +36668,7 @@ private static void _clinit_autosplit_dinit_2() { "DeletionProtection", "Project", "RequestId", "Resource", "Zone", }); internal_static_google_cloud_compute_v1_SetDiskAutoDeleteInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1215); + getDescriptor().getMessageTypes().get(1218); internal_static_google_cloud_compute_v1_SetDiskAutoDeleteInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetDiskAutoDeleteInstanceRequest_descriptor, @@ -36578,7 +36676,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(1216); + getDescriptor().getMessageTypes().get(1219); internal_static_google_cloud_compute_v1_SetEdgeSecurityPolicyBackendBucketRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetEdgeSecurityPolicyBackendBucketRequest_descriptor, @@ -36586,7 +36684,7 @@ private static void _clinit_autosplit_dinit_2() { "BackendBucket", "Project", "RequestId", "SecurityPolicyReferenceResource", }); internal_static_google_cloud_compute_v1_SetEdgeSecurityPolicyBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1217); + getDescriptor().getMessageTypes().get(1220); internal_static_google_cloud_compute_v1_SetEdgeSecurityPolicyBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetEdgeSecurityPolicyBackendServiceRequest_descriptor, @@ -36594,7 +36692,7 @@ private static void _clinit_autosplit_dinit_2() { "BackendService", "Project", "RequestId", "SecurityPolicyReferenceResource", }); internal_static_google_cloud_compute_v1_SetIamPolicyBackendBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(1218); + getDescriptor().getMessageTypes().get(1221); internal_static_google_cloud_compute_v1_SetIamPolicyBackendBucketRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyBackendBucketRequest_descriptor, @@ -36602,7 +36700,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1219); + getDescriptor().getMessageTypes().get(1222); internal_static_google_cloud_compute_v1_SetIamPolicyBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyBackendServiceRequest_descriptor, @@ -36610,7 +36708,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1220); + getDescriptor().getMessageTypes().get(1223); internal_static_google_cloud_compute_v1_SetIamPolicyDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyDiskRequest_descriptor, @@ -36618,7 +36716,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Resource", "Zone", "ZoneSetPolicyRequestResource", }); internal_static_google_cloud_compute_v1_SetIamPolicyFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1221); + getDescriptor().getMessageTypes().get(1224); internal_static_google_cloud_compute_v1_SetIamPolicyFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyFirewallPolicyRequest_descriptor, @@ -36626,7 +36724,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalOrganizationSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyImageRequest_descriptor = - getDescriptor().getMessageTypes().get(1222); + getDescriptor().getMessageTypes().get(1225); internal_static_google_cloud_compute_v1_SetIamPolicyImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyImageRequest_descriptor, @@ -36634,7 +36732,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1223); + getDescriptor().getMessageTypes().get(1226); internal_static_google_cloud_compute_v1_SetIamPolicyInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyInstanceRequest_descriptor, @@ -36642,7 +36740,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Resource", "Zone", "ZoneSetPolicyRequestResource", }); internal_static_google_cloud_compute_v1_SetIamPolicyInstanceTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(1224); + getDescriptor().getMessageTypes().get(1227); internal_static_google_cloud_compute_v1_SetIamPolicyInstanceTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyInstanceTemplateRequest_descriptor, @@ -36650,7 +36748,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(1225); + getDescriptor().getMessageTypes().get(1228); internal_static_google_cloud_compute_v1_SetIamPolicyInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyInstantSnapshotRequest_descriptor, @@ -36658,7 +36756,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Resource", "Zone", "ZoneSetPolicyRequestResource", }); internal_static_google_cloud_compute_v1_SetIamPolicyLicenseRequest_descriptor = - getDescriptor().getMessageTypes().get(1226); + getDescriptor().getMessageTypes().get(1229); internal_static_google_cloud_compute_v1_SetIamPolicyLicenseRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyLicenseRequest_descriptor, @@ -36666,7 +36764,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyMachineImageRequest_descriptor = - getDescriptor().getMessageTypes().get(1227); + getDescriptor().getMessageTypes().get(1230); internal_static_google_cloud_compute_v1_SetIamPolicyMachineImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyMachineImageRequest_descriptor, @@ -36674,7 +36772,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyNetworkAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(1228); + getDescriptor().getMessageTypes().get(1231); internal_static_google_cloud_compute_v1_SetIamPolicyNetworkAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyNetworkAttachmentRequest_descriptor, @@ -36682,7 +36780,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1229); + getDescriptor().getMessageTypes().get(1232); internal_static_google_cloud_compute_v1_SetIamPolicyNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyNetworkFirewallPolicyRequest_descriptor, @@ -36690,7 +36788,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyNodeGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1230); + getDescriptor().getMessageTypes().get(1233); internal_static_google_cloud_compute_v1_SetIamPolicyNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyNodeGroupRequest_descriptor, @@ -36698,7 +36796,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Resource", "Zone", "ZoneSetPolicyRequestResource", }); internal_static_google_cloud_compute_v1_SetIamPolicyNodeTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(1231); + getDescriptor().getMessageTypes().get(1234); internal_static_google_cloud_compute_v1_SetIamPolicyNodeTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyNodeTemplateRequest_descriptor, @@ -36706,7 +36804,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyRegionBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1232); + getDescriptor().getMessageTypes().get(1235); internal_static_google_cloud_compute_v1_SetIamPolicyRegionBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyRegionBackendServiceRequest_descriptor, @@ -36714,7 +36812,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1233); + getDescriptor().getMessageTypes().get(1236); internal_static_google_cloud_compute_v1_SetIamPolicyRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyRegionDiskRequest_descriptor, @@ -36722,7 +36820,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyRegionInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(1234); + getDescriptor().getMessageTypes().get(1237); internal_static_google_cloud_compute_v1_SetIamPolicyRegionInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyRegionInstantSnapshotRequest_descriptor, @@ -36730,7 +36828,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1235); + getDescriptor().getMessageTypes().get(1238); internal_static_google_cloud_compute_v1_SetIamPolicyRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyRegionNetworkFirewallPolicyRequest_descriptor, @@ -36738,7 +36836,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(1236); + getDescriptor().getMessageTypes().get(1239); internal_static_google_cloud_compute_v1_SetIamPolicyReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyReservationRequest_descriptor, @@ -36746,7 +36844,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Resource", "Zone", "ZoneSetPolicyRequestResource", }); internal_static_google_cloud_compute_v1_SetIamPolicyResourcePolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1237); + getDescriptor().getMessageTypes().get(1240); internal_static_google_cloud_compute_v1_SetIamPolicyResourcePolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyResourcePolicyRequest_descriptor, @@ -36754,7 +36852,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyServiceAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(1238); + getDescriptor().getMessageTypes().get(1241); internal_static_google_cloud_compute_v1_SetIamPolicyServiceAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyServiceAttachmentRequest_descriptor, @@ -36762,7 +36860,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicySnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(1239); + getDescriptor().getMessageTypes().get(1242); internal_static_google_cloud_compute_v1_SetIamPolicySnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicySnapshotRequest_descriptor, @@ -36770,7 +36868,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetPolicyRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetIamPolicyStoragePoolRequest_descriptor = - getDescriptor().getMessageTypes().get(1240); + getDescriptor().getMessageTypes().get(1243); internal_static_google_cloud_compute_v1_SetIamPolicyStoragePoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicyStoragePoolRequest_descriptor, @@ -36778,7 +36876,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Resource", "Zone", "ZoneSetPolicyRequestResource", }); internal_static_google_cloud_compute_v1_SetIamPolicySubnetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(1241); + getDescriptor().getMessageTypes().get(1244); internal_static_google_cloud_compute_v1_SetIamPolicySubnetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetIamPolicySubnetworkRequest_descriptor, @@ -36786,7 +36884,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetPolicyRequestResource", "Resource", }); internal_static_google_cloud_compute_v1_SetInstanceTemplateInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1242); + getDescriptor().getMessageTypes().get(1245); internal_static_google_cloud_compute_v1_SetInstanceTemplateInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetInstanceTemplateInstanceGroupManagerRequest_descriptor, @@ -36798,7 +36896,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_SetInstanceTemplateRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1243); + getDescriptor().getMessageTypes().get(1246); internal_static_google_cloud_compute_v1_SetInstanceTemplateRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetInstanceTemplateRegionInstanceGroupManagerRequest_descriptor, @@ -36810,7 +36908,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_SetLabelsAddressRequest_descriptor = - getDescriptor().getMessageTypes().get(1244); + getDescriptor().getMessageTypes().get(1247); internal_static_google_cloud_compute_v1_SetLabelsAddressRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsAddressRequest_descriptor, @@ -36818,7 +36916,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1245); + getDescriptor().getMessageTypes().get(1248); internal_static_google_cloud_compute_v1_SetLabelsDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsDiskRequest_descriptor, @@ -36826,7 +36924,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "Resource", "Zone", "ZoneSetLabelsRequestResource", }); internal_static_google_cloud_compute_v1_SetLabelsExternalVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(1246); + getDescriptor().getMessageTypes().get(1249); internal_static_google_cloud_compute_v1_SetLabelsExternalVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsExternalVpnGatewayRequest_descriptor, @@ -36834,7 +36932,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetLabelsRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsForwardingRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(1247); + getDescriptor().getMessageTypes().get(1250); internal_static_google_cloud_compute_v1_SetLabelsForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsForwardingRuleRequest_descriptor, @@ -36842,7 +36940,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsGlobalAddressRequest_descriptor = - getDescriptor().getMessageTypes().get(1248); + getDescriptor().getMessageTypes().get(1251); internal_static_google_cloud_compute_v1_SetLabelsGlobalAddressRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsGlobalAddressRequest_descriptor, @@ -36850,7 +36948,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetLabelsRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsGlobalForwardingRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(1249); + getDescriptor().getMessageTypes().get(1252); internal_static_google_cloud_compute_v1_SetLabelsGlobalForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsGlobalForwardingRuleRequest_descriptor, @@ -36858,7 +36956,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetLabelsRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsImageRequest_descriptor = - getDescriptor().getMessageTypes().get(1250); + getDescriptor().getMessageTypes().get(1253); internal_static_google_cloud_compute_v1_SetLabelsImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsImageRequest_descriptor, @@ -36866,7 +36964,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetLabelsRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1251); + getDescriptor().getMessageTypes().get(1254); internal_static_google_cloud_compute_v1_SetLabelsInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsInstanceRequest_descriptor, @@ -36874,7 +36972,7 @@ private static void _clinit_autosplit_dinit_2() { "Instance", "InstancesSetLabelsRequestResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_SetLabelsInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(1252); + getDescriptor().getMessageTypes().get(1255); internal_static_google_cloud_compute_v1_SetLabelsInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsInstantSnapshotRequest_descriptor, @@ -36882,7 +36980,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "Resource", "Zone", "ZoneSetLabelsRequestResource", }); internal_static_google_cloud_compute_v1_SetLabelsInterconnectAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(1253); + getDescriptor().getMessageTypes().get(1256); internal_static_google_cloud_compute_v1_SetLabelsInterconnectAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsInterconnectAttachmentRequest_descriptor, @@ -36890,7 +36988,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsInterconnectRequest_descriptor = - getDescriptor().getMessageTypes().get(1254); + getDescriptor().getMessageTypes().get(1257); internal_static_google_cloud_compute_v1_SetLabelsInterconnectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsInterconnectRequest_descriptor, @@ -36898,7 +36996,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetLabelsRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1255); + getDescriptor().getMessageTypes().get(1258); internal_static_google_cloud_compute_v1_SetLabelsRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsRegionDiskRequest_descriptor, @@ -36906,7 +37004,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsRegionInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(1256); + getDescriptor().getMessageTypes().get(1259); internal_static_google_cloud_compute_v1_SetLabelsRegionInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsRegionInstantSnapshotRequest_descriptor, @@ -36914,7 +37012,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsRegionSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1257); + getDescriptor().getMessageTypes().get(1260); internal_static_google_cloud_compute_v1_SetLabelsRegionSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsRegionSecurityPolicyRequest_descriptor, @@ -36922,7 +37020,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsSecurityPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1258); + getDescriptor().getMessageTypes().get(1261); internal_static_google_cloud_compute_v1_SetLabelsSecurityPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsSecurityPolicyRequest_descriptor, @@ -36930,7 +37028,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetLabelsRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(1259); + getDescriptor().getMessageTypes().get(1262); internal_static_google_cloud_compute_v1_SetLabelsSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsSnapshotRequest_descriptor, @@ -36938,7 +37036,7 @@ private static void _clinit_autosplit_dinit_2() { "GlobalSetLabelsRequestResource", "Project", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsTargetVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(1260); + getDescriptor().getMessageTypes().get(1263); internal_static_google_cloud_compute_v1_SetLabelsTargetVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsTargetVpnGatewayRequest_descriptor, @@ -36946,7 +37044,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(1261); + getDescriptor().getMessageTypes().get(1264); internal_static_google_cloud_compute_v1_SetLabelsVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsVpnGatewayRequest_descriptor, @@ -36954,7 +37052,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); internal_static_google_cloud_compute_v1_SetLabelsVpnTunnelRequest_descriptor = - getDescriptor().getMessageTypes().get(1262); + getDescriptor().getMessageTypes().get(1265); internal_static_google_cloud_compute_v1_SetLabelsVpnTunnelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetLabelsVpnTunnelRequest_descriptor, @@ -36962,7 +37060,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RegionSetLabelsRequestResource", "RequestId", "Resource", }); internal_static_google_cloud_compute_v1_SetMachineResourcesInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1263); + getDescriptor().getMessageTypes().get(1266); internal_static_google_cloud_compute_v1_SetMachineResourcesInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetMachineResourcesInstanceRequest_descriptor, @@ -36974,7 +37072,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_SetMachineTypeInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1264); + getDescriptor().getMessageTypes().get(1267); internal_static_google_cloud_compute_v1_SetMachineTypeInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetMachineTypeInstanceRequest_descriptor, @@ -36982,7 +37080,7 @@ private static void _clinit_autosplit_dinit_2() { "Instance", "InstancesSetMachineTypeRequestResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_SetMetadataInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1265); + getDescriptor().getMessageTypes().get(1268); internal_static_google_cloud_compute_v1_SetMetadataInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetMetadataInstanceRequest_descriptor, @@ -36990,7 +37088,7 @@ private static void _clinit_autosplit_dinit_2() { "Instance", "MetadataResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_SetMinCpuPlatformInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1266); + getDescriptor().getMessageTypes().get(1269); internal_static_google_cloud_compute_v1_SetMinCpuPlatformInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetMinCpuPlatformInstanceRequest_descriptor, @@ -37002,7 +37100,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_SetNameInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1267); + getDescriptor().getMessageTypes().get(1270); internal_static_google_cloud_compute_v1_SetNameInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetNameInstanceRequest_descriptor, @@ -37010,7 +37108,7 @@ private static void _clinit_autosplit_dinit_2() { "Instance", "InstancesSetNameRequestResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_SetNamedPortsInstanceGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1268); + getDescriptor().getMessageTypes().get(1271); internal_static_google_cloud_compute_v1_SetNamedPortsInstanceGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetNamedPortsInstanceGroupRequest_descriptor, @@ -37022,7 +37120,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_SetNamedPortsRegionInstanceGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1269); + getDescriptor().getMessageTypes().get(1272); internal_static_google_cloud_compute_v1_SetNamedPortsRegionInstanceGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetNamedPortsRegionInstanceGroupRequest_descriptor, @@ -37034,7 +37132,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_SetNodeTemplateNodeGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1270); + getDescriptor().getMessageTypes().get(1273); internal_static_google_cloud_compute_v1_SetNodeTemplateNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetNodeTemplateNodeGroupRequest_descriptor, @@ -37046,7 +37144,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_SetPrivateIpGoogleAccessSubnetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(1271); + getDescriptor().getMessageTypes().get(1274); internal_static_google_cloud_compute_v1_SetPrivateIpGoogleAccessSubnetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetPrivateIpGoogleAccessSubnetworkRequest_descriptor, @@ -37058,7 +37156,7 @@ private static void _clinit_autosplit_dinit_2() { "SubnetworksSetPrivateIpGoogleAccessRequestResource", }); internal_static_google_cloud_compute_v1_SetProxyHeaderTargetSslProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1272); + getDescriptor().getMessageTypes().get(1275); internal_static_google_cloud_compute_v1_SetProxyHeaderTargetSslProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetProxyHeaderTargetSslProxyRequest_descriptor, @@ -37069,7 +37167,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetSslProxy", }); internal_static_google_cloud_compute_v1_SetProxyHeaderTargetTcpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1273); + getDescriptor().getMessageTypes().get(1276); internal_static_google_cloud_compute_v1_SetProxyHeaderTargetTcpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetProxyHeaderTargetTcpProxyRequest_descriptor, @@ -37080,7 +37178,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetTcpProxy", }); internal_static_google_cloud_compute_v1_SetQuicOverrideTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1274); + getDescriptor().getMessageTypes().get(1277); internal_static_google_cloud_compute_v1_SetQuicOverrideTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetQuicOverrideTargetHttpsProxyRequest_descriptor, @@ -37091,7 +37189,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetHttpsProxy", }); internal_static_google_cloud_compute_v1_SetSchedulingInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1275); + getDescriptor().getMessageTypes().get(1278); internal_static_google_cloud_compute_v1_SetSchedulingInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSchedulingInstanceRequest_descriptor, @@ -37099,7 +37197,7 @@ private static void _clinit_autosplit_dinit_2() { "Instance", "Project", "RequestId", "SchedulingResource", "Zone", }); internal_static_google_cloud_compute_v1_SetSecurityPolicyBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1276); + getDescriptor().getMessageTypes().get(1279); internal_static_google_cloud_compute_v1_SetSecurityPolicyBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSecurityPolicyBackendServiceRequest_descriptor, @@ -37107,7 +37205,7 @@ private static void _clinit_autosplit_dinit_2() { "BackendService", "Project", "RequestId", "SecurityPolicyReferenceResource", }); internal_static_google_cloud_compute_v1_SetSecurityPolicyInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1277); + getDescriptor().getMessageTypes().get(1280); internal_static_google_cloud_compute_v1_SetSecurityPolicyInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSecurityPolicyInstanceRequest_descriptor, @@ -37119,7 +37217,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_SetSecurityPolicyRegionBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1278); + getDescriptor().getMessageTypes().get(1281); internal_static_google_cloud_compute_v1_SetSecurityPolicyRegionBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSecurityPolicyRegionBackendServiceRequest_descriptor, @@ -37127,7 +37225,7 @@ private static void _clinit_autosplit_dinit_2() { "BackendService", "Project", "Region", "RequestId", "SecurityPolicyReferenceResource", }); internal_static_google_cloud_compute_v1_SetSecurityPolicyTargetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1279); + getDescriptor().getMessageTypes().get(1282); internal_static_google_cloud_compute_v1_SetSecurityPolicyTargetInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSecurityPolicyTargetInstanceRequest_descriptor, @@ -37135,7 +37233,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "SecurityPolicyReferenceResource", "TargetInstance", "Zone", }); internal_static_google_cloud_compute_v1_SetSecurityPolicyTargetPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(1280); + getDescriptor().getMessageTypes().get(1283); internal_static_google_cloud_compute_v1_SetSecurityPolicyTargetPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSecurityPolicyTargetPoolRequest_descriptor, @@ -37143,7 +37241,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RequestId", "SecurityPolicyReferenceResource", "TargetPool", }); internal_static_google_cloud_compute_v1_SetServiceAccountInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1281); + getDescriptor().getMessageTypes().get(1284); internal_static_google_cloud_compute_v1_SetServiceAccountInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetServiceAccountInstanceRequest_descriptor, @@ -37155,7 +37253,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_SetShieldedInstanceIntegrityPolicyInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1282); + getDescriptor().getMessageTypes().get(1285); internal_static_google_cloud_compute_v1_SetShieldedInstanceIntegrityPolicyInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetShieldedInstanceIntegrityPolicyInstanceRequest_descriptor, @@ -37163,7 +37261,7 @@ private static void _clinit_autosplit_dinit_2() { "Instance", "Project", "RequestId", "ShieldedInstanceIntegrityPolicyResource", "Zone", }); internal_static_google_cloud_compute_v1_SetSslCertificatesRegionTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1283); + getDescriptor().getMessageTypes().get(1286); internal_static_google_cloud_compute_v1_SetSslCertificatesRegionTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSslCertificatesRegionTargetHttpsProxyRequest_descriptor, @@ -37175,7 +37273,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetHttpsProxy", }); internal_static_google_cloud_compute_v1_SetSslCertificatesTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1284); + getDescriptor().getMessageTypes().get(1287); internal_static_google_cloud_compute_v1_SetSslCertificatesTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSslCertificatesTargetHttpsProxyRequest_descriptor, @@ -37186,7 +37284,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetHttpsProxy", }); internal_static_google_cloud_compute_v1_SetSslCertificatesTargetSslProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1285); + getDescriptor().getMessageTypes().get(1288); internal_static_google_cloud_compute_v1_SetSslCertificatesTargetSslProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSslCertificatesTargetSslProxyRequest_descriptor, @@ -37197,7 +37295,7 @@ private static void _clinit_autosplit_dinit_2() { "TargetSslProxy", }); internal_static_google_cloud_compute_v1_SetSslPolicyTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1286); + getDescriptor().getMessageTypes().get(1289); internal_static_google_cloud_compute_v1_SetSslPolicyTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSslPolicyTargetHttpsProxyRequest_descriptor, @@ -37205,7 +37303,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "SslPolicyReferenceResource", "TargetHttpsProxy", }); internal_static_google_cloud_compute_v1_SetSslPolicyTargetSslProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1287); + getDescriptor().getMessageTypes().get(1290); internal_static_google_cloud_compute_v1_SetSslPolicyTargetSslProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetSslPolicyTargetSslProxyRequest_descriptor, @@ -37213,7 +37311,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "SslPolicyReferenceResource", "TargetSslProxy", }); internal_static_google_cloud_compute_v1_SetTagsInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1288); + getDescriptor().getMessageTypes().get(1291); internal_static_google_cloud_compute_v1_SetTagsInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetTagsInstanceRequest_descriptor, @@ -37221,7 +37319,7 @@ private static void _clinit_autosplit_dinit_2() { "Instance", "Project", "RequestId", "TagsResource", "Zone", }); internal_static_google_cloud_compute_v1_SetTargetForwardingRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(1289); + getDescriptor().getMessageTypes().get(1292); internal_static_google_cloud_compute_v1_SetTargetForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetTargetForwardingRuleRequest_descriptor, @@ -37229,7 +37327,7 @@ private static void _clinit_autosplit_dinit_2() { "ForwardingRule", "Project", "Region", "RequestId", "TargetReferenceResource", }); internal_static_google_cloud_compute_v1_SetTargetGlobalForwardingRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(1290); + getDescriptor().getMessageTypes().get(1293); internal_static_google_cloud_compute_v1_SetTargetGlobalForwardingRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetTargetGlobalForwardingRuleRequest_descriptor, @@ -37237,7 +37335,7 @@ private static void _clinit_autosplit_dinit_2() { "ForwardingRule", "Project", "RequestId", "TargetReferenceResource", }); internal_static_google_cloud_compute_v1_SetTargetPoolsInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1291); + getDescriptor().getMessageTypes().get(1294); internal_static_google_cloud_compute_v1_SetTargetPoolsInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetTargetPoolsInstanceGroupManagerRequest_descriptor, @@ -37249,7 +37347,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_SetTargetPoolsRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1292); + getDescriptor().getMessageTypes().get(1295); internal_static_google_cloud_compute_v1_SetTargetPoolsRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetTargetPoolsRegionInstanceGroupManagerRequest_descriptor, @@ -37261,7 +37359,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_SetUrlMapRegionTargetHttpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1293); + getDescriptor().getMessageTypes().get(1296); internal_static_google_cloud_compute_v1_SetUrlMapRegionTargetHttpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetUrlMapRegionTargetHttpProxyRequest_descriptor, @@ -37269,7 +37367,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RequestId", "TargetHttpProxy", "UrlMapReferenceResource", }); internal_static_google_cloud_compute_v1_SetUrlMapRegionTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1294); + getDescriptor().getMessageTypes().get(1297); internal_static_google_cloud_compute_v1_SetUrlMapRegionTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetUrlMapRegionTargetHttpsProxyRequest_descriptor, @@ -37277,7 +37375,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "Region", "RequestId", "TargetHttpsProxy", "UrlMapReferenceResource", }); internal_static_google_cloud_compute_v1_SetUrlMapTargetHttpProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1295); + getDescriptor().getMessageTypes().get(1298); internal_static_google_cloud_compute_v1_SetUrlMapTargetHttpProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetUrlMapTargetHttpProxyRequest_descriptor, @@ -37285,7 +37383,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "TargetHttpProxy", "UrlMapReferenceResource", }); internal_static_google_cloud_compute_v1_SetUrlMapTargetHttpsProxyRequest_descriptor = - getDescriptor().getMessageTypes().get(1296); + getDescriptor().getMessageTypes().get(1299); internal_static_google_cloud_compute_v1_SetUrlMapTargetHttpsProxyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetUrlMapTargetHttpsProxyRequest_descriptor, @@ -37293,7 +37391,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "TargetHttpsProxy", "UrlMapReferenceResource", }); internal_static_google_cloud_compute_v1_SetUsageExportBucketProjectRequest_descriptor = - getDescriptor().getMessageTypes().get(1297); + getDescriptor().getMessageTypes().get(1300); internal_static_google_cloud_compute_v1_SetUsageExportBucketProjectRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SetUsageExportBucketProjectRequest_descriptor, @@ -37301,7 +37399,7 @@ private static void _clinit_autosplit_dinit_2() { "Project", "RequestId", "UsageExportLocationResource", }); internal_static_google_cloud_compute_v1_ShareSettings_descriptor = - getDescriptor().getMessageTypes().get(1298); + getDescriptor().getMessageTypes().get(1301); internal_static_google_cloud_compute_v1_ShareSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ShareSettings_descriptor, @@ -37317,7 +37415,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ShareSettingsProjectConfig_descriptor = - getDescriptor().getMessageTypes().get(1299); + getDescriptor().getMessageTypes().get(1302); internal_static_google_cloud_compute_v1_ShareSettingsProjectConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ShareSettingsProjectConfig_descriptor, @@ -37325,7 +37423,7 @@ private static void _clinit_autosplit_dinit_2() { "ProjectId", }); internal_static_google_cloud_compute_v1_ShieldedInstanceConfig_descriptor = - getDescriptor().getMessageTypes().get(1300); + getDescriptor().getMessageTypes().get(1303); internal_static_google_cloud_compute_v1_ShieldedInstanceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ShieldedInstanceConfig_descriptor, @@ -37333,7 +37431,7 @@ private static void _clinit_autosplit_dinit_2() { "EnableIntegrityMonitoring", "EnableSecureBoot", "EnableVtpm", }); internal_static_google_cloud_compute_v1_ShieldedInstanceIdentity_descriptor = - getDescriptor().getMessageTypes().get(1301); + getDescriptor().getMessageTypes().get(1304); internal_static_google_cloud_compute_v1_ShieldedInstanceIdentity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ShieldedInstanceIdentity_descriptor, @@ -37341,7 +37439,7 @@ private static void _clinit_autosplit_dinit_2() { "EncryptionKey", "Kind", "SigningKey", }); internal_static_google_cloud_compute_v1_ShieldedInstanceIdentityEntry_descriptor = - getDescriptor().getMessageTypes().get(1302); + getDescriptor().getMessageTypes().get(1305); internal_static_google_cloud_compute_v1_ShieldedInstanceIdentityEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ShieldedInstanceIdentityEntry_descriptor, @@ -37349,7 +37447,7 @@ private static void _clinit_autosplit_dinit_2() { "EkCert", "EkPub", }); internal_static_google_cloud_compute_v1_ShieldedInstanceIntegrityPolicy_descriptor = - getDescriptor().getMessageTypes().get(1303); + getDescriptor().getMessageTypes().get(1306); internal_static_google_cloud_compute_v1_ShieldedInstanceIntegrityPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ShieldedInstanceIntegrityPolicy_descriptor, @@ -37357,7 +37455,7 @@ private static void _clinit_autosplit_dinit_2() { "UpdateAutoLearnPolicy", }); internal_static_google_cloud_compute_v1_SignedUrlKey_descriptor = - getDescriptor().getMessageTypes().get(1304); + getDescriptor().getMessageTypes().get(1307); internal_static_google_cloud_compute_v1_SignedUrlKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SignedUrlKey_descriptor, @@ -37365,7 +37463,7 @@ private static void _clinit_autosplit_dinit_2() { "KeyName", "KeyValue", }); internal_static_google_cloud_compute_v1_SimulateMaintenanceEventInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1305); + getDescriptor().getMessageTypes().get(1308); internal_static_google_cloud_compute_v1_SimulateMaintenanceEventInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SimulateMaintenanceEventInstanceRequest_descriptor, @@ -37373,7 +37471,7 @@ private static void _clinit_autosplit_dinit_2() { "Instance", "Project", "RequestId", "WithExtendedNotifications", "Zone", }); internal_static_google_cloud_compute_v1_SimulateMaintenanceEventNodeGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1306); + getDescriptor().getMessageTypes().get(1309); internal_static_google_cloud_compute_v1_SimulateMaintenanceEventNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SimulateMaintenanceEventNodeGroupRequest_descriptor, @@ -37385,7 +37483,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_Snapshot_descriptor = - getDescriptor().getMessageTypes().get(1307); + getDescriptor().getMessageTypes().get(1310); internal_static_google_cloud_compute_v1_Snapshot_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Snapshot_descriptor, @@ -37436,7 +37534,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SnapshotList_descriptor = - getDescriptor().getMessageTypes().get(1308); + getDescriptor().getMessageTypes().get(1311); internal_static_google_cloud_compute_v1_SnapshotList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SnapshotList_descriptor, @@ -37444,7 +37542,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(1309); + getDescriptor().getMessageTypes().get(1312); internal_static_google_cloud_compute_v1_SnapshotSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SnapshotSettings_descriptor, @@ -37452,7 +37550,7 @@ private static void _clinit_autosplit_dinit_2() { "StorageLocation", }); internal_static_google_cloud_compute_v1_SnapshotSettingsStorageLocationSettings_descriptor = - getDescriptor().getMessageTypes().get(1310); + getDescriptor().getMessageTypes().get(1313); internal_static_google_cloud_compute_v1_SnapshotSettingsStorageLocationSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SnapshotSettingsStorageLocationSettings_descriptor, @@ -37470,7 +37568,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SnapshotSettingsStorageLocationSettingsStorageLocationPreference_descriptor = - getDescriptor().getMessageTypes().get(1311); + getDescriptor().getMessageTypes().get(1314); internal_static_google_cloud_compute_v1_SnapshotSettingsStorageLocationSettingsStorageLocationPreference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SnapshotSettingsStorageLocationSettingsStorageLocationPreference_descriptor, @@ -37478,7 +37576,7 @@ private static void _clinit_autosplit_dinit_2() { "Name", }); internal_static_google_cloud_compute_v1_SourceDiskEncryptionKey_descriptor = - getDescriptor().getMessageTypes().get(1312); + getDescriptor().getMessageTypes().get(1315); internal_static_google_cloud_compute_v1_SourceDiskEncryptionKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SourceDiskEncryptionKey_descriptor, @@ -37486,7 +37584,7 @@ private static void _clinit_autosplit_dinit_2() { "DiskEncryptionKey", "SourceDisk", }); internal_static_google_cloud_compute_v1_SourceInstanceParams_descriptor = - getDescriptor().getMessageTypes().get(1313); + getDescriptor().getMessageTypes().get(1316); internal_static_google_cloud_compute_v1_SourceInstanceParams_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SourceInstanceParams_descriptor, @@ -37494,7 +37592,7 @@ private static void _clinit_autosplit_dinit_2() { "DiskConfigs", }); internal_static_google_cloud_compute_v1_SourceInstanceProperties_descriptor = - getDescriptor().getMessageTypes().get(1314); + getDescriptor().getMessageTypes().get(1317); internal_static_google_cloud_compute_v1_SourceInstanceProperties_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SourceInstanceProperties_descriptor, @@ -37525,7 +37623,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SslCertificate_descriptor = - getDescriptor().getMessageTypes().get(1315); + getDescriptor().getMessageTypes().get(1318); internal_static_google_cloud_compute_v1_SslCertificate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslCertificate_descriptor, @@ -37546,7 +37644,7 @@ private static void _clinit_autosplit_dinit_2() { "Type", }); internal_static_google_cloud_compute_v1_SslCertificateAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1316); + getDescriptor().getMessageTypes().get(1319); internal_static_google_cloud_compute_v1_SslCertificateAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslCertificateAggregatedList_descriptor, @@ -37564,7 +37662,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SslCertificateList_descriptor = - getDescriptor().getMessageTypes().get(1317); + getDescriptor().getMessageTypes().get(1320); internal_static_google_cloud_compute_v1_SslCertificateList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslCertificateList_descriptor, @@ -37572,7 +37670,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(1318); + getDescriptor().getMessageTypes().get(1321); internal_static_google_cloud_compute_v1_SslCertificateManagedSslCertificate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslCertificateManagedSslCertificate_descriptor, @@ -37590,7 +37688,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SslCertificateSelfManagedSslCertificate_descriptor = - getDescriptor().getMessageTypes().get(1319); + getDescriptor().getMessageTypes().get(1322); internal_static_google_cloud_compute_v1_SslCertificateSelfManagedSslCertificate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslCertificateSelfManagedSslCertificate_descriptor, @@ -37598,7 +37696,7 @@ private static void _clinit_autosplit_dinit_2() { "Certificate", "PrivateKey", }); internal_static_google_cloud_compute_v1_SslCertificatesScopedList_descriptor = - getDescriptor().getMessageTypes().get(1320); + getDescriptor().getMessageTypes().get(1323); internal_static_google_cloud_compute_v1_SslCertificatesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslCertificatesScopedList_descriptor, @@ -37606,7 +37704,7 @@ private static void _clinit_autosplit_dinit_2() { "SslCertificates", "Warning", }); internal_static_google_cloud_compute_v1_SslPoliciesAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1321); + getDescriptor().getMessageTypes().get(1324); internal_static_google_cloud_compute_v1_SslPoliciesAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslPoliciesAggregatedList_descriptor, @@ -37624,7 +37722,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SslPoliciesList_descriptor = - getDescriptor().getMessageTypes().get(1322); + getDescriptor().getMessageTypes().get(1325); internal_static_google_cloud_compute_v1_SslPoliciesList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslPoliciesList_descriptor, @@ -37632,7 +37730,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(1323); + getDescriptor().getMessageTypes().get(1326); internal_static_google_cloud_compute_v1_SslPoliciesListAvailableFeaturesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslPoliciesListAvailableFeaturesResponse_descriptor, @@ -37640,7 +37738,7 @@ private static void _clinit_autosplit_dinit_2() { "Features", }); internal_static_google_cloud_compute_v1_SslPoliciesScopedList_descriptor = - getDescriptor().getMessageTypes().get(1324); + getDescriptor().getMessageTypes().get(1327); internal_static_google_cloud_compute_v1_SslPoliciesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslPoliciesScopedList_descriptor, @@ -37648,7 +37746,7 @@ private static void _clinit_autosplit_dinit_2() { "SslPolicies", "Warning", }); internal_static_google_cloud_compute_v1_SslPolicy_descriptor = - getDescriptor().getMessageTypes().get(1325); + getDescriptor().getMessageTypes().get(1328); internal_static_google_cloud_compute_v1_SslPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslPolicy_descriptor, @@ -37668,7 +37766,7 @@ private static void _clinit_autosplit_dinit_2() { "Warnings", }); internal_static_google_cloud_compute_v1_SslPolicyReference_descriptor = - getDescriptor().getMessageTypes().get(1326); + getDescriptor().getMessageTypes().get(1329); internal_static_google_cloud_compute_v1_SslPolicyReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SslPolicyReference_descriptor, @@ -37676,7 +37774,7 @@ private static void _clinit_autosplit_dinit_2() { "SslPolicy", }); internal_static_google_cloud_compute_v1_StartAsyncReplicationDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1327); + getDescriptor().getMessageTypes().get(1330); internal_static_google_cloud_compute_v1_StartAsyncReplicationDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StartAsyncReplicationDiskRequest_descriptor, @@ -37684,7 +37782,7 @@ private static void _clinit_autosplit_dinit_2() { "Disk", "DisksStartAsyncReplicationRequestResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_StartAsyncReplicationRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1328); + getDescriptor().getMessageTypes().get(1331); internal_static_google_cloud_compute_v1_StartAsyncReplicationRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StartAsyncReplicationRegionDiskRequest_descriptor, @@ -37696,7 +37794,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_StartInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1329); + getDescriptor().getMessageTypes().get(1332); internal_static_google_cloud_compute_v1_StartInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StartInstanceRequest_descriptor, @@ -37704,7 +37802,7 @@ private static void _clinit_autosplit_dinit_2() { "Instance", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_StartInstancesInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1330); + getDescriptor().getMessageTypes().get(1333); internal_static_google_cloud_compute_v1_StartInstancesInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StartInstancesInstanceGroupManagerRequest_descriptor, @@ -37716,7 +37814,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_StartInstancesRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1331); + getDescriptor().getMessageTypes().get(1334); internal_static_google_cloud_compute_v1_StartInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StartInstancesRegionInstanceGroupManagerRequest_descriptor, @@ -37728,7 +37826,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_StartWithEncryptionKeyInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1332); + getDescriptor().getMessageTypes().get(1335); internal_static_google_cloud_compute_v1_StartWithEncryptionKeyInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StartWithEncryptionKeyInstanceRequest_descriptor, @@ -37740,7 +37838,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_StatefulPolicy_descriptor = - getDescriptor().getMessageTypes().get(1333); + getDescriptor().getMessageTypes().get(1336); internal_static_google_cloud_compute_v1_StatefulPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StatefulPolicy_descriptor, @@ -37748,7 +37846,7 @@ private static void _clinit_autosplit_dinit_2() { "PreservedState", }); internal_static_google_cloud_compute_v1_StatefulPolicyPreservedState_descriptor = - getDescriptor().getMessageTypes().get(1334); + getDescriptor().getMessageTypes().get(1337); internal_static_google_cloud_compute_v1_StatefulPolicyPreservedState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StatefulPolicyPreservedState_descriptor, @@ -37786,7 +37884,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_StatefulPolicyPreservedStateDiskDevice_descriptor = - getDescriptor().getMessageTypes().get(1335); + getDescriptor().getMessageTypes().get(1338); internal_static_google_cloud_compute_v1_StatefulPolicyPreservedStateDiskDevice_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StatefulPolicyPreservedStateDiskDevice_descriptor, @@ -37794,7 +37892,7 @@ private static void _clinit_autosplit_dinit_2() { "AutoDelete", }); internal_static_google_cloud_compute_v1_StatefulPolicyPreservedStateNetworkIp_descriptor = - getDescriptor().getMessageTypes().get(1336); + getDescriptor().getMessageTypes().get(1339); internal_static_google_cloud_compute_v1_StatefulPolicyPreservedStateNetworkIp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StatefulPolicyPreservedStateNetworkIp_descriptor, @@ -37802,7 +37900,7 @@ private static void _clinit_autosplit_dinit_2() { "AutoDelete", }); internal_static_google_cloud_compute_v1_Status_descriptor = - getDescriptor().getMessageTypes().get(1337); + getDescriptor().getMessageTypes().get(1340); internal_static_google_cloud_compute_v1_Status_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Status_descriptor, @@ -37810,7 +37908,7 @@ private static void _clinit_autosplit_dinit_2() { "Code", "Details", "Message", }); internal_static_google_cloud_compute_v1_StopAsyncReplicationDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1338); + getDescriptor().getMessageTypes().get(1341); internal_static_google_cloud_compute_v1_StopAsyncReplicationDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StopAsyncReplicationDiskRequest_descriptor, @@ -37818,7 +37916,7 @@ private static void _clinit_autosplit_dinit_2() { "Disk", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_StopAsyncReplicationRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1339); + getDescriptor().getMessageTypes().get(1342); internal_static_google_cloud_compute_v1_StopAsyncReplicationRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StopAsyncReplicationRegionDiskRequest_descriptor, @@ -37826,7 +37924,7 @@ private static void _clinit_autosplit_dinit_2() { "Disk", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_StopGroupAsyncReplicationDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1340); + getDescriptor().getMessageTypes().get(1343); internal_static_google_cloud_compute_v1_StopGroupAsyncReplicationDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StopGroupAsyncReplicationDiskRequest_descriptor, @@ -37834,7 +37932,7 @@ private static void _clinit_autosplit_dinit_2() { "DisksStopGroupAsyncReplicationResourceResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_StopGroupAsyncReplicationRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1341); + getDescriptor().getMessageTypes().get(1344); internal_static_google_cloud_compute_v1_StopGroupAsyncReplicationRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StopGroupAsyncReplicationRegionDiskRequest_descriptor, @@ -37842,7 +37940,7 @@ private static void _clinit_autosplit_dinit_2() { "DisksStopGroupAsyncReplicationResourceResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_StopInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1342); + getDescriptor().getMessageTypes().get(1345); internal_static_google_cloud_compute_v1_StopInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StopInstanceRequest_descriptor, @@ -37850,7 +37948,7 @@ private static void _clinit_autosplit_dinit_2() { "DiscardLocalSsd", "Instance", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_StopInstancesInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1343); + getDescriptor().getMessageTypes().get(1346); internal_static_google_cloud_compute_v1_StopInstancesInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StopInstancesInstanceGroupManagerRequest_descriptor, @@ -37862,7 +37960,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_StopInstancesRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1344); + getDescriptor().getMessageTypes().get(1347); internal_static_google_cloud_compute_v1_StopInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StopInstancesRegionInstanceGroupManagerRequest_descriptor, @@ -37874,7 +37972,7 @@ private static void _clinit_autosplit_dinit_2() { "RequestId", }); internal_static_google_cloud_compute_v1_StoragePool_descriptor = - getDescriptor().getMessageTypes().get(1345); + getDescriptor().getMessageTypes().get(1348); internal_static_google_cloud_compute_v1_StoragePool_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePool_descriptor, @@ -37908,7 +38006,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_StoragePoolAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1346); + getDescriptor().getMessageTypes().get(1349); internal_static_google_cloud_compute_v1_StoragePoolAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolAggregatedList_descriptor, @@ -37926,7 +38024,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_StoragePoolDisk_descriptor = - getDescriptor().getMessageTypes().get(1347); + getDescriptor().getMessageTypes().get(1350); internal_static_google_cloud_compute_v1_StoragePoolDisk_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolDisk_descriptor, @@ -37944,7 +38042,7 @@ private static void _clinit_autosplit_dinit_2() { "UsedBytes", }); internal_static_google_cloud_compute_v1_StoragePoolList_descriptor = - getDescriptor().getMessageTypes().get(1348); + getDescriptor().getMessageTypes().get(1351); internal_static_google_cloud_compute_v1_StoragePoolList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolList_descriptor, @@ -37952,7 +38050,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(1349); + getDescriptor().getMessageTypes().get(1352); internal_static_google_cloud_compute_v1_StoragePoolListDisks_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolListDisks_descriptor, @@ -37960,7 +38058,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(1350); + getDescriptor().getMessageTypes().get(1353); internal_static_google_cloud_compute_v1_StoragePoolResourceStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolResourceStatus_descriptor, @@ -37977,7 +38075,7 @@ private static void _clinit_autosplit_dinit_2() { "TotalProvisionedDiskThroughput", }); internal_static_google_cloud_compute_v1_StoragePoolType_descriptor = - getDescriptor().getMessageTypes().get(1351); + getDescriptor().getMessageTypes().get(1354); internal_static_google_cloud_compute_v1_StoragePoolType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolType_descriptor, @@ -38001,7 +38099,7 @@ private static void _clinit_autosplit_dinit_2() { "Zone", }); internal_static_google_cloud_compute_v1_StoragePoolTypeAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1352); + getDescriptor().getMessageTypes().get(1355); internal_static_google_cloud_compute_v1_StoragePoolTypeAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolTypeAggregatedList_descriptor, @@ -38019,7 +38117,7 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_StoragePoolTypeList_descriptor = - getDescriptor().getMessageTypes().get(1353); + getDescriptor().getMessageTypes().get(1356); internal_static_google_cloud_compute_v1_StoragePoolTypeList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolTypeList_descriptor, @@ -38027,7 +38125,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(1354); + getDescriptor().getMessageTypes().get(1357); internal_static_google_cloud_compute_v1_StoragePoolTypesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolTypesScopedList_descriptor, @@ -38035,7 +38133,7 @@ private static void _clinit_autosplit_dinit_2() { "StoragePoolTypes", "Warning", }); internal_static_google_cloud_compute_v1_StoragePoolsScopedList_descriptor = - getDescriptor().getMessageTypes().get(1355); + getDescriptor().getMessageTypes().get(1358); internal_static_google_cloud_compute_v1_StoragePoolsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_StoragePoolsScopedList_descriptor, @@ -38043,7 +38141,7 @@ private static void _clinit_autosplit_dinit_2() { "StoragePools", "Warning", }); internal_static_google_cloud_compute_v1_Subnetwork_descriptor = - getDescriptor().getMessageTypes().get(1356); + getDescriptor().getMessageTypes().get(1359); internal_static_google_cloud_compute_v1_Subnetwork_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Subnetwork_descriptor, @@ -38075,7 +38173,7 @@ private static void _clinit_autosplit_dinit_2() { "State", }); internal_static_google_cloud_compute_v1_SubnetworkAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1357); + getDescriptor().getMessageTypes().get(1360); internal_static_google_cloud_compute_v1_SubnetworkAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworkAggregatedList_descriptor, @@ -38093,15 +38191,19 @@ private static void _clinit_autosplit_dinit_2() { "Key", "Value", }); internal_static_google_cloud_compute_v1_SubnetworkList_descriptor = - getDescriptor().getMessageTypes().get(1358); + getDescriptor().getMessageTypes().get(1361); internal_static_google_cloud_compute_v1_SubnetworkList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworkList_descriptor, new java.lang.String[] { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); + _clinit_autosplit_dinit_3(); + } + + private static void _clinit_autosplit_dinit_3() { internal_static_google_cloud_compute_v1_SubnetworkLogConfig_descriptor = - getDescriptor().getMessageTypes().get(1359); + getDescriptor().getMessageTypes().get(1362); internal_static_google_cloud_compute_v1_SubnetworkLogConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworkLogConfig_descriptor, @@ -38114,7 +38216,7 @@ private static void _clinit_autosplit_dinit_2() { "MetadataFields", }); internal_static_google_cloud_compute_v1_SubnetworkSecondaryRange_descriptor = - getDescriptor().getMessageTypes().get(1360); + getDescriptor().getMessageTypes().get(1363); internal_static_google_cloud_compute_v1_SubnetworkSecondaryRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworkSecondaryRange_descriptor, @@ -38122,7 +38224,7 @@ private static void _clinit_autosplit_dinit_2() { "IpCidrRange", "RangeName", "ReservedInternalRange", }); internal_static_google_cloud_compute_v1_SubnetworksExpandIpCidrRangeRequest_descriptor = - getDescriptor().getMessageTypes().get(1361); + getDescriptor().getMessageTypes().get(1364); internal_static_google_cloud_compute_v1_SubnetworksExpandIpCidrRangeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworksExpandIpCidrRangeRequest_descriptor, @@ -38130,7 +38232,7 @@ private static void _clinit_autosplit_dinit_2() { "IpCidrRange", }); internal_static_google_cloud_compute_v1_SubnetworksScopedList_descriptor = - getDescriptor().getMessageTypes().get(1362); + getDescriptor().getMessageTypes().get(1365); internal_static_google_cloud_compute_v1_SubnetworksScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworksScopedList_descriptor, @@ -38138,7 +38240,7 @@ private static void _clinit_autosplit_dinit_2() { "Subnetworks", "Warning", }); internal_static_google_cloud_compute_v1_SubnetworksSetPrivateIpGoogleAccessRequest_descriptor = - getDescriptor().getMessageTypes().get(1363); + getDescriptor().getMessageTypes().get(1366); internal_static_google_cloud_compute_v1_SubnetworksSetPrivateIpGoogleAccessRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SubnetworksSetPrivateIpGoogleAccessRequest_descriptor, @@ -38146,19 +38248,15 @@ private static void _clinit_autosplit_dinit_2() { "PrivateIpGoogleAccess", }); internal_static_google_cloud_compute_v1_Subsetting_descriptor = - getDescriptor().getMessageTypes().get(1364); + getDescriptor().getMessageTypes().get(1367); 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(1365); + getDescriptor().getMessageTypes().get(1368); internal_static_google_cloud_compute_v1_SuspendInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SuspendInstanceRequest_descriptor, @@ -38166,7 +38264,7 @@ private static void _clinit_autosplit_dinit_3() { "DiscardLocalSsd", "Instance", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_SuspendInstancesInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1366); + getDescriptor().getMessageTypes().get(1369); internal_static_google_cloud_compute_v1_SuspendInstancesInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SuspendInstancesInstanceGroupManagerRequest_descriptor, @@ -38178,7 +38276,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_SuspendInstancesRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1367); + getDescriptor().getMessageTypes().get(1370); internal_static_google_cloud_compute_v1_SuspendInstancesRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SuspendInstancesRegionInstanceGroupManagerRequest_descriptor, @@ -38190,7 +38288,7 @@ private static void _clinit_autosplit_dinit_3() { "RequestId", }); internal_static_google_cloud_compute_v1_SwitchToCustomModeNetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(1368); + getDescriptor().getMessageTypes().get(1371); internal_static_google_cloud_compute_v1_SwitchToCustomModeNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_SwitchToCustomModeNetworkRequest_descriptor, @@ -38198,7 +38296,7 @@ private static void _clinit_autosplit_dinit_3() { "Network", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_TCPHealthCheck_descriptor = - getDescriptor().getMessageTypes().get(1369); + getDescriptor().getMessageTypes().get(1372); internal_static_google_cloud_compute_v1_TCPHealthCheck_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TCPHealthCheck_descriptor, @@ -38206,7 +38304,7 @@ private static void _clinit_autosplit_dinit_3() { "Port", "PortName", "PortSpecification", "ProxyHeader", "Request", "Response", }); internal_static_google_cloud_compute_v1_Tags_descriptor = - getDescriptor().getMessageTypes().get(1370); + getDescriptor().getMessageTypes().get(1373); internal_static_google_cloud_compute_v1_Tags_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Tags_descriptor, @@ -38214,7 +38312,7 @@ private static void _clinit_autosplit_dinit_3() { "Fingerprint", "Items", }); internal_static_google_cloud_compute_v1_TargetGrpcProxy_descriptor = - getDescriptor().getMessageTypes().get(1371); + getDescriptor().getMessageTypes().get(1374); internal_static_google_cloud_compute_v1_TargetGrpcProxy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetGrpcProxy_descriptor, @@ -38231,7 +38329,7 @@ private static void _clinit_autosplit_dinit_3() { "ValidateForProxyless", }); internal_static_google_cloud_compute_v1_TargetGrpcProxyList_descriptor = - getDescriptor().getMessageTypes().get(1372); + getDescriptor().getMessageTypes().get(1375); internal_static_google_cloud_compute_v1_TargetGrpcProxyList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetGrpcProxyList_descriptor, @@ -38239,7 +38337,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_TargetHttpProxiesScopedList_descriptor = - getDescriptor().getMessageTypes().get(1373); + getDescriptor().getMessageTypes().get(1376); internal_static_google_cloud_compute_v1_TargetHttpProxiesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpProxiesScopedList_descriptor, @@ -38247,7 +38345,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetHttpProxies", "Warning", }); internal_static_google_cloud_compute_v1_TargetHttpProxy_descriptor = - getDescriptor().getMessageTypes().get(1374); + getDescriptor().getMessageTypes().get(1377); internal_static_google_cloud_compute_v1_TargetHttpProxy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpProxy_descriptor, @@ -38265,7 +38363,7 @@ private static void _clinit_autosplit_dinit_3() { "UrlMap", }); internal_static_google_cloud_compute_v1_TargetHttpProxyAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1375); + getDescriptor().getMessageTypes().get(1378); internal_static_google_cloud_compute_v1_TargetHttpProxyAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpProxyAggregatedList_descriptor, @@ -38283,7 +38381,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_TargetHttpProxyList_descriptor = - getDescriptor().getMessageTypes().get(1376); + getDescriptor().getMessageTypes().get(1379); internal_static_google_cloud_compute_v1_TargetHttpProxyList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpProxyList_descriptor, @@ -38291,7 +38389,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_TargetHttpsProxiesScopedList_descriptor = - getDescriptor().getMessageTypes().get(1377); + getDescriptor().getMessageTypes().get(1380); internal_static_google_cloud_compute_v1_TargetHttpsProxiesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpsProxiesScopedList_descriptor, @@ -38299,7 +38397,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetHttpsProxies", "Warning", }); internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetCertificateMapRequest_descriptor = - getDescriptor().getMessageTypes().get(1378); + getDescriptor().getMessageTypes().get(1381); internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetCertificateMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetCertificateMapRequest_descriptor, @@ -38307,7 +38405,7 @@ private static void _clinit_autosplit_dinit_3() { "CertificateMap", }); internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetQuicOverrideRequest_descriptor = - getDescriptor().getMessageTypes().get(1379); + getDescriptor().getMessageTypes().get(1382); internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetQuicOverrideRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetQuicOverrideRequest_descriptor, @@ -38315,7 +38413,7 @@ private static void _clinit_autosplit_dinit_3() { "QuicOverride", }); internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetSslCertificatesRequest_descriptor = - getDescriptor().getMessageTypes().get(1380); + getDescriptor().getMessageTypes().get(1383); internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetSslCertificatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpsProxiesSetSslCertificatesRequest_descriptor, @@ -38323,7 +38421,7 @@ private static void _clinit_autosplit_dinit_3() { "SslCertificates", }); internal_static_google_cloud_compute_v1_TargetHttpsProxy_descriptor = - getDescriptor().getMessageTypes().get(1381); + getDescriptor().getMessageTypes().get(1384); internal_static_google_cloud_compute_v1_TargetHttpsProxy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpsProxy_descriptor, @@ -38348,7 +38446,7 @@ private static void _clinit_autosplit_dinit_3() { "UrlMap", }); internal_static_google_cloud_compute_v1_TargetHttpsProxyAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1382); + getDescriptor().getMessageTypes().get(1385); internal_static_google_cloud_compute_v1_TargetHttpsProxyAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpsProxyAggregatedList_descriptor, @@ -38366,7 +38464,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_TargetHttpsProxyList_descriptor = - getDescriptor().getMessageTypes().get(1383); + getDescriptor().getMessageTypes().get(1386); internal_static_google_cloud_compute_v1_TargetHttpsProxyList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetHttpsProxyList_descriptor, @@ -38374,7 +38472,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Items", "Kind", "NextPageToken", "SelfLink", "Warning", }); internal_static_google_cloud_compute_v1_TargetInstance_descriptor = - getDescriptor().getMessageTypes().get(1384); + getDescriptor().getMessageTypes().get(1387); internal_static_google_cloud_compute_v1_TargetInstance_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetInstance_descriptor, @@ -38392,7 +38490,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_TargetInstanceAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1385); + getDescriptor().getMessageTypes().get(1388); internal_static_google_cloud_compute_v1_TargetInstanceAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetInstanceAggregatedList_descriptor, @@ -38410,7 +38508,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_TargetInstanceList_descriptor = - getDescriptor().getMessageTypes().get(1386); + getDescriptor().getMessageTypes().get(1389); internal_static_google_cloud_compute_v1_TargetInstanceList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetInstanceList_descriptor, @@ -38418,7 +38516,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(1387); + getDescriptor().getMessageTypes().get(1390); internal_static_google_cloud_compute_v1_TargetInstancesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetInstancesScopedList_descriptor, @@ -38426,7 +38524,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetInstances", "Warning", }); internal_static_google_cloud_compute_v1_TargetPool_descriptor = - getDescriptor().getMessageTypes().get(1388); + getDescriptor().getMessageTypes().get(1391); internal_static_google_cloud_compute_v1_TargetPool_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPool_descriptor, @@ -38446,7 +38544,7 @@ private static void _clinit_autosplit_dinit_3() { "SessionAffinity", }); internal_static_google_cloud_compute_v1_TargetPoolAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1389); + getDescriptor().getMessageTypes().get(1392); internal_static_google_cloud_compute_v1_TargetPoolAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPoolAggregatedList_descriptor, @@ -38464,7 +38562,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_TargetPoolInstanceHealth_descriptor = - getDescriptor().getMessageTypes().get(1390); + getDescriptor().getMessageTypes().get(1393); internal_static_google_cloud_compute_v1_TargetPoolInstanceHealth_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPoolInstanceHealth_descriptor, @@ -38472,7 +38570,7 @@ private static void _clinit_autosplit_dinit_3() { "HealthStatus", "Kind", }); internal_static_google_cloud_compute_v1_TargetPoolList_descriptor = - getDescriptor().getMessageTypes().get(1391); + getDescriptor().getMessageTypes().get(1394); internal_static_google_cloud_compute_v1_TargetPoolList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPoolList_descriptor, @@ -38480,7 +38578,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(1392); + getDescriptor().getMessageTypes().get(1395); internal_static_google_cloud_compute_v1_TargetPoolsAddHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPoolsAddHealthCheckRequest_descriptor, @@ -38488,7 +38586,7 @@ private static void _clinit_autosplit_dinit_3() { "HealthChecks", }); internal_static_google_cloud_compute_v1_TargetPoolsAddInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1393); + getDescriptor().getMessageTypes().get(1396); internal_static_google_cloud_compute_v1_TargetPoolsAddInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPoolsAddInstanceRequest_descriptor, @@ -38496,7 +38594,7 @@ private static void _clinit_autosplit_dinit_3() { "Instances", }); internal_static_google_cloud_compute_v1_TargetPoolsRemoveHealthCheckRequest_descriptor = - getDescriptor().getMessageTypes().get(1394); + getDescriptor().getMessageTypes().get(1397); internal_static_google_cloud_compute_v1_TargetPoolsRemoveHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPoolsRemoveHealthCheckRequest_descriptor, @@ -38504,7 +38602,7 @@ private static void _clinit_autosplit_dinit_3() { "HealthChecks", }); internal_static_google_cloud_compute_v1_TargetPoolsRemoveInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1395); + getDescriptor().getMessageTypes().get(1398); internal_static_google_cloud_compute_v1_TargetPoolsRemoveInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPoolsRemoveInstanceRequest_descriptor, @@ -38512,7 +38610,7 @@ private static void _clinit_autosplit_dinit_3() { "Instances", }); internal_static_google_cloud_compute_v1_TargetPoolsScopedList_descriptor = - getDescriptor().getMessageTypes().get(1396); + getDescriptor().getMessageTypes().get(1399); internal_static_google_cloud_compute_v1_TargetPoolsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetPoolsScopedList_descriptor, @@ -38520,7 +38618,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetPools", "Warning", }); internal_static_google_cloud_compute_v1_TargetReference_descriptor = - getDescriptor().getMessageTypes().get(1397); + getDescriptor().getMessageTypes().get(1400); internal_static_google_cloud_compute_v1_TargetReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetReference_descriptor, @@ -38528,7 +38626,7 @@ private static void _clinit_autosplit_dinit_3() { "Target", }); internal_static_google_cloud_compute_v1_TargetSslProxiesSetBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1398); + getDescriptor().getMessageTypes().get(1401); internal_static_google_cloud_compute_v1_TargetSslProxiesSetBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetSslProxiesSetBackendServiceRequest_descriptor, @@ -38536,7 +38634,7 @@ private static void _clinit_autosplit_dinit_3() { "Service", }); internal_static_google_cloud_compute_v1_TargetSslProxiesSetCertificateMapRequest_descriptor = - getDescriptor().getMessageTypes().get(1399); + getDescriptor().getMessageTypes().get(1402); internal_static_google_cloud_compute_v1_TargetSslProxiesSetCertificateMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetSslProxiesSetCertificateMapRequest_descriptor, @@ -38544,7 +38642,7 @@ private static void _clinit_autosplit_dinit_3() { "CertificateMap", }); internal_static_google_cloud_compute_v1_TargetSslProxiesSetProxyHeaderRequest_descriptor = - getDescriptor().getMessageTypes().get(1400); + getDescriptor().getMessageTypes().get(1403); internal_static_google_cloud_compute_v1_TargetSslProxiesSetProxyHeaderRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetSslProxiesSetProxyHeaderRequest_descriptor, @@ -38552,7 +38650,7 @@ private static void _clinit_autosplit_dinit_3() { "ProxyHeader", }); internal_static_google_cloud_compute_v1_TargetSslProxiesSetSslCertificatesRequest_descriptor = - getDescriptor().getMessageTypes().get(1401); + getDescriptor().getMessageTypes().get(1404); internal_static_google_cloud_compute_v1_TargetSslProxiesSetSslCertificatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetSslProxiesSetSslCertificatesRequest_descriptor, @@ -38560,7 +38658,7 @@ private static void _clinit_autosplit_dinit_3() { "SslCertificates", }); internal_static_google_cloud_compute_v1_TargetSslProxy_descriptor = - getDescriptor().getMessageTypes().get(1402); + getDescriptor().getMessageTypes().get(1405); internal_static_google_cloud_compute_v1_TargetSslProxy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetSslProxy_descriptor, @@ -38578,7 +38676,7 @@ private static void _clinit_autosplit_dinit_3() { "SslPolicy", }); internal_static_google_cloud_compute_v1_TargetSslProxyList_descriptor = - getDescriptor().getMessageTypes().get(1403); + getDescriptor().getMessageTypes().get(1406); internal_static_google_cloud_compute_v1_TargetSslProxyList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetSslProxyList_descriptor, @@ -38586,7 +38684,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(1404); + getDescriptor().getMessageTypes().get(1407); internal_static_google_cloud_compute_v1_TargetTcpProxiesScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetTcpProxiesScopedList_descriptor, @@ -38594,7 +38692,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetTcpProxies", "Warning", }); internal_static_google_cloud_compute_v1_TargetTcpProxiesSetBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1405); + getDescriptor().getMessageTypes().get(1408); internal_static_google_cloud_compute_v1_TargetTcpProxiesSetBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetTcpProxiesSetBackendServiceRequest_descriptor, @@ -38602,7 +38700,7 @@ private static void _clinit_autosplit_dinit_3() { "Service", }); internal_static_google_cloud_compute_v1_TargetTcpProxiesSetProxyHeaderRequest_descriptor = - getDescriptor().getMessageTypes().get(1406); + getDescriptor().getMessageTypes().get(1409); internal_static_google_cloud_compute_v1_TargetTcpProxiesSetProxyHeaderRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetTcpProxiesSetProxyHeaderRequest_descriptor, @@ -38610,7 +38708,7 @@ private static void _clinit_autosplit_dinit_3() { "ProxyHeader", }); internal_static_google_cloud_compute_v1_TargetTcpProxy_descriptor = - getDescriptor().getMessageTypes().get(1407); + getDescriptor().getMessageTypes().get(1410); internal_static_google_cloud_compute_v1_TargetTcpProxy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetTcpProxy_descriptor, @@ -38627,7 +38725,7 @@ private static void _clinit_autosplit_dinit_3() { "Service", }); internal_static_google_cloud_compute_v1_TargetTcpProxyAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1408); + getDescriptor().getMessageTypes().get(1411); internal_static_google_cloud_compute_v1_TargetTcpProxyAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetTcpProxyAggregatedList_descriptor, @@ -38645,7 +38743,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_TargetTcpProxyList_descriptor = - getDescriptor().getMessageTypes().get(1409); + getDescriptor().getMessageTypes().get(1412); internal_static_google_cloud_compute_v1_TargetTcpProxyList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetTcpProxyList_descriptor, @@ -38653,7 +38751,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(1410); + getDescriptor().getMessageTypes().get(1413); internal_static_google_cloud_compute_v1_TargetVpnGateway_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetVpnGateway_descriptor, @@ -38681,7 +38779,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_TargetVpnGatewayAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1411); + getDescriptor().getMessageTypes().get(1414); internal_static_google_cloud_compute_v1_TargetVpnGatewayAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetVpnGatewayAggregatedList_descriptor, @@ -38699,7 +38797,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_TargetVpnGatewayList_descriptor = - getDescriptor().getMessageTypes().get(1412); + getDescriptor().getMessageTypes().get(1415); internal_static_google_cloud_compute_v1_TargetVpnGatewayList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetVpnGatewayList_descriptor, @@ -38707,7 +38805,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(1413); + getDescriptor().getMessageTypes().get(1416); internal_static_google_cloud_compute_v1_TargetVpnGatewaysScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TargetVpnGatewaysScopedList_descriptor, @@ -38715,7 +38813,7 @@ private static void _clinit_autosplit_dinit_3() { "TargetVpnGateways", "Warning", }); internal_static_google_cloud_compute_v1_TestFailure_descriptor = - getDescriptor().getMessageTypes().get(1414); + getDescriptor().getMessageTypes().get(1417); internal_static_google_cloud_compute_v1_TestFailure_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestFailure_descriptor, @@ -38731,7 +38829,7 @@ private static void _clinit_autosplit_dinit_3() { "Path", }); internal_static_google_cloud_compute_v1_TestIamPermissionsBackendBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(1415); + getDescriptor().getMessageTypes().get(1418); internal_static_google_cloud_compute_v1_TestIamPermissionsBackendBucketRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsBackendBucketRequest_descriptor, @@ -38739,7 +38837,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1416); + getDescriptor().getMessageTypes().get(1419); internal_static_google_cloud_compute_v1_TestIamPermissionsBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsBackendServiceRequest_descriptor, @@ -38747,7 +38845,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1417); + getDescriptor().getMessageTypes().get(1420); internal_static_google_cloud_compute_v1_TestIamPermissionsDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsDiskRequest_descriptor, @@ -38755,7 +38853,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_TestIamPermissionsExternalVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(1418); + getDescriptor().getMessageTypes().get(1421); internal_static_google_cloud_compute_v1_TestIamPermissionsExternalVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsExternalVpnGatewayRequest_descriptor, @@ -38763,7 +38861,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1419); + getDescriptor().getMessageTypes().get(1422); internal_static_google_cloud_compute_v1_TestIamPermissionsFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsFirewallPolicyRequest_descriptor, @@ -38771,7 +38869,7 @@ private static void _clinit_autosplit_dinit_3() { "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsImageRequest_descriptor = - getDescriptor().getMessageTypes().get(1420); + getDescriptor().getMessageTypes().get(1423); internal_static_google_cloud_compute_v1_TestIamPermissionsImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsImageRequest_descriptor, @@ -38779,7 +38877,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1421); + getDescriptor().getMessageTypes().get(1424); internal_static_google_cloud_compute_v1_TestIamPermissionsInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsInstanceRequest_descriptor, @@ -38787,7 +38885,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_TestIamPermissionsInstanceTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(1422); + getDescriptor().getMessageTypes().get(1425); internal_static_google_cloud_compute_v1_TestIamPermissionsInstanceTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsInstanceTemplateRequest_descriptor, @@ -38795,7 +38893,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(1423); + getDescriptor().getMessageTypes().get(1426); internal_static_google_cloud_compute_v1_TestIamPermissionsInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsInstantSnapshotRequest_descriptor, @@ -38803,7 +38901,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_TestIamPermissionsLicenseCodeRequest_descriptor = - getDescriptor().getMessageTypes().get(1424); + getDescriptor().getMessageTypes().get(1427); internal_static_google_cloud_compute_v1_TestIamPermissionsLicenseCodeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsLicenseCodeRequest_descriptor, @@ -38811,7 +38909,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsLicenseRequest_descriptor = - getDescriptor().getMessageTypes().get(1425); + getDescriptor().getMessageTypes().get(1428); internal_static_google_cloud_compute_v1_TestIamPermissionsLicenseRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsLicenseRequest_descriptor, @@ -38819,7 +38917,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsMachineImageRequest_descriptor = - getDescriptor().getMessageTypes().get(1426); + getDescriptor().getMessageTypes().get(1429); internal_static_google_cloud_compute_v1_TestIamPermissionsMachineImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsMachineImageRequest_descriptor, @@ -38827,7 +38925,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(1427); + getDescriptor().getMessageTypes().get(1430); internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkAttachmentRequest_descriptor, @@ -38835,7 +38933,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkEndpointGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1428); + getDescriptor().getMessageTypes().get(1431); internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkEndpointGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkEndpointGroupRequest_descriptor, @@ -38843,7 +38941,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1429); + getDescriptor().getMessageTypes().get(1432); internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsNetworkFirewallPolicyRequest_descriptor, @@ -38851,7 +38949,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsNodeGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(1430); + getDescriptor().getMessageTypes().get(1433); internal_static_google_cloud_compute_v1_TestIamPermissionsNodeGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsNodeGroupRequest_descriptor, @@ -38859,7 +38957,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_TestIamPermissionsNodeTemplateRequest_descriptor = - getDescriptor().getMessageTypes().get(1431); + getDescriptor().getMessageTypes().get(1434); internal_static_google_cloud_compute_v1_TestIamPermissionsNodeTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsNodeTemplateRequest_descriptor, @@ -38867,7 +38965,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsPacketMirroringRequest_descriptor = - getDescriptor().getMessageTypes().get(1432); + getDescriptor().getMessageTypes().get(1435); internal_static_google_cloud_compute_v1_TestIamPermissionsPacketMirroringRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsPacketMirroringRequest_descriptor, @@ -38875,7 +38973,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1433); + getDescriptor().getMessageTypes().get(1436); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsRegionBackendServiceRequest_descriptor, @@ -38883,7 +38981,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1434); + getDescriptor().getMessageTypes().get(1437); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsRegionDiskRequest_descriptor, @@ -38891,7 +38989,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionInstantSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(1435); + getDescriptor().getMessageTypes().get(1438); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionInstantSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsRegionInstantSnapshotRequest_descriptor, @@ -38899,7 +38997,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionNetworkFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1436); + getDescriptor().getMessageTypes().get(1439); internal_static_google_cloud_compute_v1_TestIamPermissionsRegionNetworkFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsRegionNetworkFirewallPolicyRequest_descriptor, @@ -38907,7 +39005,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(1437); + getDescriptor().getMessageTypes().get(1440); internal_static_google_cloud_compute_v1_TestIamPermissionsReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsReservationRequest_descriptor, @@ -38915,7 +39013,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_TestIamPermissionsResourcePolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1438); + getDescriptor().getMessageTypes().get(1441); internal_static_google_cloud_compute_v1_TestIamPermissionsResourcePolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsResourcePolicyRequest_descriptor, @@ -38923,7 +39021,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsServiceAttachmentRequest_descriptor = - getDescriptor().getMessageTypes().get(1439); + getDescriptor().getMessageTypes().get(1442); internal_static_google_cloud_compute_v1_TestIamPermissionsServiceAttachmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsServiceAttachmentRequest_descriptor, @@ -38931,7 +39029,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(1440); + getDescriptor().getMessageTypes().get(1443); internal_static_google_cloud_compute_v1_TestIamPermissionsSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsSnapshotRequest_descriptor, @@ -38939,7 +39037,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsStoragePoolRequest_descriptor = - getDescriptor().getMessageTypes().get(1441); + getDescriptor().getMessageTypes().get(1444); internal_static_google_cloud_compute_v1_TestIamPermissionsStoragePoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsStoragePoolRequest_descriptor, @@ -38947,7 +39045,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Resource", "TestPermissionsRequestResource", "Zone", }); internal_static_google_cloud_compute_v1_TestIamPermissionsSubnetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(1442); + getDescriptor().getMessageTypes().get(1445); internal_static_google_cloud_compute_v1_TestIamPermissionsSubnetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsSubnetworkRequest_descriptor, @@ -38955,7 +39053,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestIamPermissionsVpnGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(1443); + getDescriptor().getMessageTypes().get(1446); internal_static_google_cloud_compute_v1_TestIamPermissionsVpnGatewayRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestIamPermissionsVpnGatewayRequest_descriptor, @@ -38963,7 +39061,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "Resource", "TestPermissionsRequestResource", }); internal_static_google_cloud_compute_v1_TestPermissionsRequest_descriptor = - getDescriptor().getMessageTypes().get(1444); + getDescriptor().getMessageTypes().get(1447); internal_static_google_cloud_compute_v1_TestPermissionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestPermissionsRequest_descriptor, @@ -38971,7 +39069,7 @@ private static void _clinit_autosplit_dinit_3() { "Permissions", }); internal_static_google_cloud_compute_v1_TestPermissionsResponse_descriptor = - getDescriptor().getMessageTypes().get(1445); + getDescriptor().getMessageTypes().get(1448); internal_static_google_cloud_compute_v1_TestPermissionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_TestPermissionsResponse_descriptor, @@ -38979,7 +39077,7 @@ private static void _clinit_autosplit_dinit_3() { "Permissions", }); internal_static_google_cloud_compute_v1_Uint128_descriptor = - getDescriptor().getMessageTypes().get(1446); + getDescriptor().getMessageTypes().get(1449); internal_static_google_cloud_compute_v1_Uint128_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Uint128_descriptor, @@ -38987,7 +39085,7 @@ private static void _clinit_autosplit_dinit_3() { "High", "Low", }); internal_static_google_cloud_compute_v1_UpcomingMaintenance_descriptor = - getDescriptor().getMessageTypes().get(1447); + getDescriptor().getMessageTypes().get(1450); internal_static_google_cloud_compute_v1_UpcomingMaintenance_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpcomingMaintenance_descriptor, @@ -39000,7 +39098,7 @@ private static void _clinit_autosplit_dinit_3() { "WindowStartTime", }); internal_static_google_cloud_compute_v1_UpdateAccessConfigInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1448); + getDescriptor().getMessageTypes().get(1451); internal_static_google_cloud_compute_v1_UpdateAccessConfigInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateAccessConfigInstanceRequest_descriptor, @@ -39013,7 +39111,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_UpdateAutoscalerRequest_descriptor = - getDescriptor().getMessageTypes().get(1449); + getDescriptor().getMessageTypes().get(1452); internal_static_google_cloud_compute_v1_UpdateAutoscalerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateAutoscalerRequest_descriptor, @@ -39021,7 +39119,7 @@ private static void _clinit_autosplit_dinit_3() { "Autoscaler", "AutoscalerResource", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_UpdateBackendBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(1450); + getDescriptor().getMessageTypes().get(1453); internal_static_google_cloud_compute_v1_UpdateBackendBucketRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateBackendBucketRequest_descriptor, @@ -39029,7 +39127,7 @@ private static void _clinit_autosplit_dinit_3() { "BackendBucket", "BackendBucketResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_UpdateBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1451); + getDescriptor().getMessageTypes().get(1454); internal_static_google_cloud_compute_v1_UpdateBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateBackendServiceRequest_descriptor, @@ -39037,7 +39135,7 @@ private static void _clinit_autosplit_dinit_3() { "BackendService", "BackendServiceResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_UpdateDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1452); + getDescriptor().getMessageTypes().get(1455); internal_static_google_cloud_compute_v1_UpdateDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateDiskRequest_descriptor, @@ -39045,7 +39143,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(1453); + getDescriptor().getMessageTypes().get(1456); internal_static_google_cloud_compute_v1_UpdateDisplayDeviceInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateDisplayDeviceInstanceRequest_descriptor, @@ -39053,7 +39151,7 @@ private static void _clinit_autosplit_dinit_3() { "DisplayDeviceResource", "Instance", "Project", "RequestId", "Zone", }); internal_static_google_cloud_compute_v1_UpdateFirewallRequest_descriptor = - getDescriptor().getMessageTypes().get(1454); + getDescriptor().getMessageTypes().get(1457); internal_static_google_cloud_compute_v1_UpdateFirewallRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateFirewallRequest_descriptor, @@ -39061,7 +39159,7 @@ private static void _clinit_autosplit_dinit_3() { "Firewall", "FirewallResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_UpdateHealthCheckRequest_descriptor = - getDescriptor().getMessageTypes().get(1455); + getDescriptor().getMessageTypes().get(1458); internal_static_google_cloud_compute_v1_UpdateHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateHealthCheckRequest_descriptor, @@ -39069,7 +39167,7 @@ private static void _clinit_autosplit_dinit_3() { "HealthCheck", "HealthCheckResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_UpdateInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1456); + getDescriptor().getMessageTypes().get(1459); internal_static_google_cloud_compute_v1_UpdateInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateInstanceRequest_descriptor, @@ -39083,7 +39181,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_UpdateNetworkInterfaceInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1457); + getDescriptor().getMessageTypes().get(1460); internal_static_google_cloud_compute_v1_UpdateNetworkInterfaceInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateNetworkInterfaceInstanceRequest_descriptor, @@ -39096,7 +39194,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_UpdatePeeringNetworkRequest_descriptor = - getDescriptor().getMessageTypes().get(1458); + getDescriptor().getMessageTypes().get(1461); internal_static_google_cloud_compute_v1_UpdatePeeringNetworkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdatePeeringNetworkRequest_descriptor, @@ -39104,7 +39202,7 @@ private static void _clinit_autosplit_dinit_3() { "Network", "NetworksUpdatePeeringRequestResource", "Project", "RequestId", }); internal_static_google_cloud_compute_v1_UpdatePerInstanceConfigsInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1459); + getDescriptor().getMessageTypes().get(1462); internal_static_google_cloud_compute_v1_UpdatePerInstanceConfigsInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdatePerInstanceConfigsInstanceGroupManagerRequest_descriptor, @@ -39116,7 +39214,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest_descriptor = - getDescriptor().getMessageTypes().get(1460); + getDescriptor().getMessageTypes().get(1463); internal_static_google_cloud_compute_v1_UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest_descriptor, @@ -39128,7 +39226,7 @@ private static void _clinit_autosplit_dinit_3() { "RequestId", }); internal_static_google_cloud_compute_v1_UpdateRegionAutoscalerRequest_descriptor = - getDescriptor().getMessageTypes().get(1461); + getDescriptor().getMessageTypes().get(1464); internal_static_google_cloud_compute_v1_UpdateRegionAutoscalerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateRegionAutoscalerRequest_descriptor, @@ -39136,7 +39234,7 @@ private static void _clinit_autosplit_dinit_3() { "Autoscaler", "AutoscalerResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_UpdateRegionBackendServiceRequest_descriptor = - getDescriptor().getMessageTypes().get(1462); + getDescriptor().getMessageTypes().get(1465); internal_static_google_cloud_compute_v1_UpdateRegionBackendServiceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateRegionBackendServiceRequest_descriptor, @@ -39144,7 +39242,7 @@ private static void _clinit_autosplit_dinit_3() { "BackendService", "BackendServiceResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_UpdateRegionCommitmentRequest_descriptor = - getDescriptor().getMessageTypes().get(1463); + getDescriptor().getMessageTypes().get(1466); internal_static_google_cloud_compute_v1_UpdateRegionCommitmentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateRegionCommitmentRequest_descriptor, @@ -39158,7 +39256,7 @@ private static void _clinit_autosplit_dinit_3() { "UpdateMask", }); internal_static_google_cloud_compute_v1_UpdateRegionDiskRequest_descriptor = - getDescriptor().getMessageTypes().get(1464); + getDescriptor().getMessageTypes().get(1467); internal_static_google_cloud_compute_v1_UpdateRegionDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateRegionDiskRequest_descriptor, @@ -39166,7 +39264,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(1465); + getDescriptor().getMessageTypes().get(1468); internal_static_google_cloud_compute_v1_UpdateRegionHealthCheckRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateRegionHealthCheckRequest_descriptor, @@ -39174,7 +39272,7 @@ private static void _clinit_autosplit_dinit_3() { "HealthCheck", "HealthCheckResource", "Project", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_UpdateRegionUrlMapRequest_descriptor = - getDescriptor().getMessageTypes().get(1466); + getDescriptor().getMessageTypes().get(1469); internal_static_google_cloud_compute_v1_UpdateRegionUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateRegionUrlMapRequest_descriptor, @@ -39182,7 +39280,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RequestId", "UrlMap", "UrlMapResource", }); internal_static_google_cloud_compute_v1_UpdateReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(1467); + getDescriptor().getMessageTypes().get(1470); internal_static_google_cloud_compute_v1_UpdateReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateReservationRequest_descriptor, @@ -39196,7 +39294,7 @@ private static void _clinit_autosplit_dinit_3() { "Zone", }); internal_static_google_cloud_compute_v1_UpdateRouterRequest_descriptor = - getDescriptor().getMessageTypes().get(1468); + getDescriptor().getMessageTypes().get(1471); internal_static_google_cloud_compute_v1_UpdateRouterRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateRouterRequest_descriptor, @@ -39204,7 +39302,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RequestId", "Router", "RouterResource", }); internal_static_google_cloud_compute_v1_UpdateShieldedInstanceConfigInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(1469); + getDescriptor().getMessageTypes().get(1472); internal_static_google_cloud_compute_v1_UpdateShieldedInstanceConfigInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateShieldedInstanceConfigInstanceRequest_descriptor, @@ -39212,7 +39310,7 @@ private static void _clinit_autosplit_dinit_3() { "Instance", "Project", "RequestId", "ShieldedInstanceConfigResource", "Zone", }); internal_static_google_cloud_compute_v1_UpdateStoragePoolRequest_descriptor = - getDescriptor().getMessageTypes().get(1470); + getDescriptor().getMessageTypes().get(1473); internal_static_google_cloud_compute_v1_UpdateStoragePoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateStoragePoolRequest_descriptor, @@ -39220,7 +39318,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(1471); + getDescriptor().getMessageTypes().get(1474); internal_static_google_cloud_compute_v1_UpdateUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UpdateUrlMapRequest_descriptor, @@ -39228,7 +39326,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "RequestId", "UrlMap", "UrlMapResource", }); internal_static_google_cloud_compute_v1_UrlMap_descriptor = - getDescriptor().getMessageTypes().get(1472); + getDescriptor().getMessageTypes().get(1475); internal_static_google_cloud_compute_v1_UrlMap_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMap_descriptor, @@ -39251,7 +39349,7 @@ private static void _clinit_autosplit_dinit_3() { "Tests", }); internal_static_google_cloud_compute_v1_UrlMapList_descriptor = - getDescriptor().getMessageTypes().get(1473); + getDescriptor().getMessageTypes().get(1476); internal_static_google_cloud_compute_v1_UrlMapList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapList_descriptor, @@ -39259,7 +39357,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(1474); + getDescriptor().getMessageTypes().get(1477); internal_static_google_cloud_compute_v1_UrlMapReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapReference_descriptor, @@ -39267,7 +39365,7 @@ private static void _clinit_autosplit_dinit_3() { "UrlMap", }); internal_static_google_cloud_compute_v1_UrlMapTest_descriptor = - getDescriptor().getMessageTypes().get(1475); + getDescriptor().getMessageTypes().get(1478); internal_static_google_cloud_compute_v1_UrlMapTest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapTest_descriptor, @@ -39281,7 +39379,7 @@ private static void _clinit_autosplit_dinit_3() { "Service", }); internal_static_google_cloud_compute_v1_UrlMapTestHeader_descriptor = - getDescriptor().getMessageTypes().get(1476); + getDescriptor().getMessageTypes().get(1479); internal_static_google_cloud_compute_v1_UrlMapTestHeader_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapTestHeader_descriptor, @@ -39289,7 +39387,7 @@ private static void _clinit_autosplit_dinit_3() { "Name", "Value", }); internal_static_google_cloud_compute_v1_UrlMapValidationResult_descriptor = - getDescriptor().getMessageTypes().get(1477); + getDescriptor().getMessageTypes().get(1480); internal_static_google_cloud_compute_v1_UrlMapValidationResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapValidationResult_descriptor, @@ -39297,7 +39395,7 @@ private static void _clinit_autosplit_dinit_3() { "LoadErrors", "LoadSucceeded", "TestFailures", "TestPassed", }); internal_static_google_cloud_compute_v1_UrlMapsAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1478); + getDescriptor().getMessageTypes().get(1481); internal_static_google_cloud_compute_v1_UrlMapsAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapsAggregatedList_descriptor, @@ -39315,7 +39413,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_UrlMapsScopedList_descriptor = - getDescriptor().getMessageTypes().get(1479); + getDescriptor().getMessageTypes().get(1482); internal_static_google_cloud_compute_v1_UrlMapsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapsScopedList_descriptor, @@ -39323,7 +39421,7 @@ private static void _clinit_autosplit_dinit_3() { "UrlMaps", "Warning", }); internal_static_google_cloud_compute_v1_UrlMapsValidateRequest_descriptor = - getDescriptor().getMessageTypes().get(1480); + getDescriptor().getMessageTypes().get(1483); internal_static_google_cloud_compute_v1_UrlMapsValidateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapsValidateRequest_descriptor, @@ -39331,7 +39429,7 @@ private static void _clinit_autosplit_dinit_3() { "LoadBalancingSchemes", "Resource", }); internal_static_google_cloud_compute_v1_UrlMapsValidateResponse_descriptor = - getDescriptor().getMessageTypes().get(1481); + getDescriptor().getMessageTypes().get(1484); internal_static_google_cloud_compute_v1_UrlMapsValidateResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlMapsValidateResponse_descriptor, @@ -39339,7 +39437,7 @@ private static void _clinit_autosplit_dinit_3() { "Result", }); internal_static_google_cloud_compute_v1_UrlRewrite_descriptor = - getDescriptor().getMessageTypes().get(1482); + getDescriptor().getMessageTypes().get(1485); internal_static_google_cloud_compute_v1_UrlRewrite_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UrlRewrite_descriptor, @@ -39347,7 +39445,7 @@ private static void _clinit_autosplit_dinit_3() { "HostRewrite", "PathPrefixRewrite", "PathTemplateRewrite", }); internal_static_google_cloud_compute_v1_UsableSubnetwork_descriptor = - getDescriptor().getMessageTypes().get(1483); + getDescriptor().getMessageTypes().get(1486); internal_static_google_cloud_compute_v1_UsableSubnetwork_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UsableSubnetwork_descriptor, @@ -39364,7 +39462,7 @@ private static void _clinit_autosplit_dinit_3() { "Subnetwork", }); internal_static_google_cloud_compute_v1_UsableSubnetworkSecondaryRange_descriptor = - getDescriptor().getMessageTypes().get(1484); + getDescriptor().getMessageTypes().get(1487); internal_static_google_cloud_compute_v1_UsableSubnetworkSecondaryRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UsableSubnetworkSecondaryRange_descriptor, @@ -39372,7 +39470,7 @@ private static void _clinit_autosplit_dinit_3() { "IpCidrRange", "RangeName", }); internal_static_google_cloud_compute_v1_UsableSubnetworksAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1485); + getDescriptor().getMessageTypes().get(1488); internal_static_google_cloud_compute_v1_UsableSubnetworksAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UsableSubnetworksAggregatedList_descriptor, @@ -39380,7 +39478,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(1486); + getDescriptor().getMessageTypes().get(1489); internal_static_google_cloud_compute_v1_UsageExportLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_UsageExportLocation_descriptor, @@ -39388,7 +39486,7 @@ private static void _clinit_autosplit_dinit_3() { "BucketName", "ReportNamePrefix", }); internal_static_google_cloud_compute_v1_ValidateRegionUrlMapRequest_descriptor = - getDescriptor().getMessageTypes().get(1487); + getDescriptor().getMessageTypes().get(1490); internal_static_google_cloud_compute_v1_ValidateRegionUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ValidateRegionUrlMapRequest_descriptor, @@ -39396,7 +39494,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "Region", "RegionUrlMapsValidateRequestResource", "UrlMap", }); internal_static_google_cloud_compute_v1_ValidateUrlMapRequest_descriptor = - getDescriptor().getMessageTypes().get(1488); + getDescriptor().getMessageTypes().get(1491); internal_static_google_cloud_compute_v1_ValidateUrlMapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ValidateUrlMapRequest_descriptor, @@ -39404,7 +39502,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "UrlMap", "UrlMapsValidateRequestResource", }); internal_static_google_cloud_compute_v1_VmEndpointNatMappings_descriptor = - getDescriptor().getMessageTypes().get(1489); + getDescriptor().getMessageTypes().get(1492); internal_static_google_cloud_compute_v1_VmEndpointNatMappings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VmEndpointNatMappings_descriptor, @@ -39412,7 +39510,7 @@ private static void _clinit_autosplit_dinit_3() { "InstanceName", "InterfaceNatMappings", }); internal_static_google_cloud_compute_v1_VmEndpointNatMappingsInterfaceNatMappings_descriptor = - getDescriptor().getMessageTypes().get(1490); + getDescriptor().getMessageTypes().get(1493); internal_static_google_cloud_compute_v1_VmEndpointNatMappingsInterfaceNatMappings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VmEndpointNatMappingsInterfaceNatMappings_descriptor, @@ -39426,7 +39524,7 @@ private static void _clinit_autosplit_dinit_3() { "SourceVirtualIp", }); internal_static_google_cloud_compute_v1_VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings_descriptor = - getDescriptor().getMessageTypes().get(1491); + getDescriptor().getMessageTypes().get(1494); internal_static_google_cloud_compute_v1_VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings_descriptor, @@ -39438,7 +39536,7 @@ private static void _clinit_autosplit_dinit_3() { "RuleNumber", }); internal_static_google_cloud_compute_v1_VmEndpointNatMappingsList_descriptor = - getDescriptor().getMessageTypes().get(1492); + getDescriptor().getMessageTypes().get(1495); internal_static_google_cloud_compute_v1_VmEndpointNatMappingsList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VmEndpointNatMappingsList_descriptor, @@ -39446,7 +39544,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(1493); + getDescriptor().getMessageTypes().get(1496); internal_static_google_cloud_compute_v1_VpnGateway_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGateway_descriptor, @@ -39474,7 +39572,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_VpnGatewayAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1494); + getDescriptor().getMessageTypes().get(1497); internal_static_google_cloud_compute_v1_VpnGatewayAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewayAggregatedList_descriptor, @@ -39492,7 +39590,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_VpnGatewayList_descriptor = - getDescriptor().getMessageTypes().get(1495); + getDescriptor().getMessageTypes().get(1498); internal_static_google_cloud_compute_v1_VpnGatewayList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewayList_descriptor, @@ -39500,7 +39598,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(1496); + getDescriptor().getMessageTypes().get(1499); internal_static_google_cloud_compute_v1_VpnGatewayStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewayStatus_descriptor, @@ -39508,7 +39606,7 @@ private static void _clinit_autosplit_dinit_3() { "VpnConnections", }); internal_static_google_cloud_compute_v1_VpnGatewayStatusHighAvailabilityRequirementState_descriptor = - getDescriptor().getMessageTypes().get(1497); + getDescriptor().getMessageTypes().get(1500); internal_static_google_cloud_compute_v1_VpnGatewayStatusHighAvailabilityRequirementState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewayStatusHighAvailabilityRequirementState_descriptor, @@ -39516,7 +39614,7 @@ private static void _clinit_autosplit_dinit_3() { "State", "UnsatisfiedReason", }); internal_static_google_cloud_compute_v1_VpnGatewayStatusTunnel_descriptor = - getDescriptor().getMessageTypes().get(1498); + getDescriptor().getMessageTypes().get(1501); internal_static_google_cloud_compute_v1_VpnGatewayStatusTunnel_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewayStatusTunnel_descriptor, @@ -39524,7 +39622,7 @@ private static void _clinit_autosplit_dinit_3() { "LocalGatewayInterface", "PeerGatewayInterface", "TunnelUrl", }); internal_static_google_cloud_compute_v1_VpnGatewayStatusVpnConnection_descriptor = - getDescriptor().getMessageTypes().get(1499); + getDescriptor().getMessageTypes().get(1502); internal_static_google_cloud_compute_v1_VpnGatewayStatusVpnConnection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewayStatusVpnConnection_descriptor, @@ -39532,7 +39630,7 @@ private static void _clinit_autosplit_dinit_3() { "PeerExternalGateway", "PeerGcpGateway", "State", "Tunnels", }); internal_static_google_cloud_compute_v1_VpnGatewayVpnGatewayInterface_descriptor = - getDescriptor().getMessageTypes().get(1500); + getDescriptor().getMessageTypes().get(1503); internal_static_google_cloud_compute_v1_VpnGatewayVpnGatewayInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewayVpnGatewayInterface_descriptor, @@ -39540,7 +39638,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "InterconnectAttachment", "IpAddress", "Ipv6Address", }); internal_static_google_cloud_compute_v1_VpnGatewaysGetStatusResponse_descriptor = - getDescriptor().getMessageTypes().get(1501); + getDescriptor().getMessageTypes().get(1504); internal_static_google_cloud_compute_v1_VpnGatewaysGetStatusResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewaysGetStatusResponse_descriptor, @@ -39548,7 +39646,7 @@ private static void _clinit_autosplit_dinit_3() { "Result", }); internal_static_google_cloud_compute_v1_VpnGatewaysScopedList_descriptor = - getDescriptor().getMessageTypes().get(1502); + getDescriptor().getMessageTypes().get(1505); internal_static_google_cloud_compute_v1_VpnGatewaysScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnGatewaysScopedList_descriptor, @@ -39556,7 +39654,7 @@ private static void _clinit_autosplit_dinit_3() { "VpnGateways", "Warning", }); internal_static_google_cloud_compute_v1_VpnTunnel_descriptor = - getDescriptor().getMessageTypes().get(1503); + getDescriptor().getMessageTypes().get(1506); internal_static_google_cloud_compute_v1_VpnTunnel_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnTunnel_descriptor, @@ -39595,7 +39693,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_VpnTunnelAggregatedList_descriptor = - getDescriptor().getMessageTypes().get(1504); + getDescriptor().getMessageTypes().get(1507); internal_static_google_cloud_compute_v1_VpnTunnelAggregatedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnTunnelAggregatedList_descriptor, @@ -39613,7 +39711,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_VpnTunnelList_descriptor = - getDescriptor().getMessageTypes().get(1505); + getDescriptor().getMessageTypes().get(1508); internal_static_google_cloud_compute_v1_VpnTunnelList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnTunnelList_descriptor, @@ -39621,7 +39719,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(1506); + getDescriptor().getMessageTypes().get(1509); internal_static_google_cloud_compute_v1_VpnTunnelsScopedList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_VpnTunnelsScopedList_descriptor, @@ -39629,7 +39727,7 @@ private static void _clinit_autosplit_dinit_3() { "VpnTunnels", "Warning", }); internal_static_google_cloud_compute_v1_WafExpressionSet_descriptor = - getDescriptor().getMessageTypes().get(1507); + getDescriptor().getMessageTypes().get(1510); internal_static_google_cloud_compute_v1_WafExpressionSet_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_WafExpressionSet_descriptor, @@ -39637,7 +39735,7 @@ private static void _clinit_autosplit_dinit_3() { "Aliases", "Expressions", "Id", }); internal_static_google_cloud_compute_v1_WafExpressionSetExpression_descriptor = - getDescriptor().getMessageTypes().get(1508); + getDescriptor().getMessageTypes().get(1511); internal_static_google_cloud_compute_v1_WafExpressionSetExpression_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_WafExpressionSetExpression_descriptor, @@ -39645,7 +39743,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Sensitivity", }); internal_static_google_cloud_compute_v1_WaitGlobalOperationRequest_descriptor = - getDescriptor().getMessageTypes().get(1509); + getDescriptor().getMessageTypes().get(1512); internal_static_google_cloud_compute_v1_WaitGlobalOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_WaitGlobalOperationRequest_descriptor, @@ -39653,7 +39751,7 @@ private static void _clinit_autosplit_dinit_3() { "Operation", "Project", }); internal_static_google_cloud_compute_v1_WaitRegionOperationRequest_descriptor = - getDescriptor().getMessageTypes().get(1510); + getDescriptor().getMessageTypes().get(1513); internal_static_google_cloud_compute_v1_WaitRegionOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_WaitRegionOperationRequest_descriptor, @@ -39661,7 +39759,7 @@ private static void _clinit_autosplit_dinit_3() { "Operation", "Project", "Region", }); internal_static_google_cloud_compute_v1_WaitZoneOperationRequest_descriptor = - getDescriptor().getMessageTypes().get(1511); + getDescriptor().getMessageTypes().get(1514); internal_static_google_cloud_compute_v1_WaitZoneOperationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_WaitZoneOperationRequest_descriptor, @@ -39669,7 +39767,7 @@ private static void _clinit_autosplit_dinit_3() { "Operation", "Project", "Zone", }); internal_static_google_cloud_compute_v1_Warning_descriptor = - getDescriptor().getMessageTypes().get(1512); + getDescriptor().getMessageTypes().get(1515); internal_static_google_cloud_compute_v1_Warning_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Warning_descriptor, @@ -39677,7 +39775,7 @@ private static void _clinit_autosplit_dinit_3() { "Code", "Data", "Message", }); internal_static_google_cloud_compute_v1_Warnings_descriptor = - getDescriptor().getMessageTypes().get(1513); + getDescriptor().getMessageTypes().get(1516); internal_static_google_cloud_compute_v1_Warnings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Warnings_descriptor, @@ -39685,7 +39783,7 @@ private static void _clinit_autosplit_dinit_3() { "Code", "Data", "Message", }); internal_static_google_cloud_compute_v1_WeightedBackendService_descriptor = - getDescriptor().getMessageTypes().get(1514); + getDescriptor().getMessageTypes().get(1517); internal_static_google_cloud_compute_v1_WeightedBackendService_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_WeightedBackendService_descriptor, @@ -39693,7 +39791,7 @@ private static void _clinit_autosplit_dinit_3() { "BackendService", "HeaderAction", "Weight", }); internal_static_google_cloud_compute_v1_WithdrawPublicAdvertisedPrefixeRequest_descriptor = - getDescriptor().getMessageTypes().get(1515); + getDescriptor().getMessageTypes().get(1518); internal_static_google_cloud_compute_v1_WithdrawPublicAdvertisedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_WithdrawPublicAdvertisedPrefixeRequest_descriptor, @@ -39701,7 +39799,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "PublicAdvertisedPrefix", "RequestId", }); internal_static_google_cloud_compute_v1_WithdrawPublicDelegatedPrefixeRequest_descriptor = - getDescriptor().getMessageTypes().get(1516); + getDescriptor().getMessageTypes().get(1519); internal_static_google_cloud_compute_v1_WithdrawPublicDelegatedPrefixeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_WithdrawPublicDelegatedPrefixeRequest_descriptor, @@ -39709,7 +39807,7 @@ private static void _clinit_autosplit_dinit_3() { "Project", "PublicDelegatedPrefix", "Region", "RequestId", }); internal_static_google_cloud_compute_v1_XpnHostList_descriptor = - getDescriptor().getMessageTypes().get(1517); + getDescriptor().getMessageTypes().get(1520); internal_static_google_cloud_compute_v1_XpnHostList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_XpnHostList_descriptor, @@ -39717,7 +39815,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(1518); + getDescriptor().getMessageTypes().get(1521); internal_static_google_cloud_compute_v1_XpnResourceId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_XpnResourceId_descriptor, @@ -39725,7 +39823,7 @@ private static void _clinit_autosplit_dinit_3() { "Id", "Type", }); internal_static_google_cloud_compute_v1_Zone_descriptor = - getDescriptor().getMessageTypes().get(1519); + getDescriptor().getMessageTypes().get(1522); internal_static_google_cloud_compute_v1_Zone_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_Zone_descriptor, @@ -39743,7 +39841,7 @@ private static void _clinit_autosplit_dinit_3() { "SupportsPzs", }); internal_static_google_cloud_compute_v1_ZoneList_descriptor = - getDescriptor().getMessageTypes().get(1520); + getDescriptor().getMessageTypes().get(1523); internal_static_google_cloud_compute_v1_ZoneList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ZoneList_descriptor, @@ -39751,7 +39849,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(1521); + getDescriptor().getMessageTypes().get(1524); internal_static_google_cloud_compute_v1_ZoneSetLabelsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ZoneSetLabelsRequest_descriptor, @@ -39769,7 +39867,7 @@ private static void _clinit_autosplit_dinit_3() { "Key", "Value", }); internal_static_google_cloud_compute_v1_ZoneSetPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(1522); + getDescriptor().getMessageTypes().get(1525); internal_static_google_cloud_compute_v1_ZoneSetPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_compute_v1_ZoneSetPolicyRequest_descriptor, diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ErrorInfo.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ErrorInfo.java index 6692cdc68461..aaa01e9f440f 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ErrorInfo.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ErrorInfo.java @@ -173,7 +173,7 @@ public int getMetadatasCount() { * * *
-   * Additional structured details about this error. Keys must match /a-z+/ but should ideally be lowerCamelCase. Also they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than {"instanceLimit": "100/request"}, should be returned as, {"instanceLimitPerRequest": "100"}, if the client exceeds the number of instances that can be created in a single (batch) request.
+   * Additional structured details about this error. Keys must match a regular expression of `a-z+` but should ideally be lowerCamelCase. Also, they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than `{"instanceLimit": "100/request"}`, should be returned as, `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of instances that can be created in a single (batch) request.
    * 
* * map<string, string> metadatas = 8514340; @@ -195,7 +195,7 @@ public java.util.Map getMetadatas() { * * *
-   * Additional structured details about this error. Keys must match /a-z+/ but should ideally be lowerCamelCase. Also they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than {"instanceLimit": "100/request"}, should be returned as, {"instanceLimitPerRequest": "100"}, if the client exceeds the number of instances that can be created in a single (batch) request.
+   * Additional structured details about this error. Keys must match a regular expression of `a-z+` but should ideally be lowerCamelCase. Also, they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than `{"instanceLimit": "100/request"}`, should be returned as, `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of instances that can be created in a single (batch) request.
    * 
* * map<string, string> metadatas = 8514340; @@ -208,7 +208,7 @@ public java.util.Map getMetadatasMap() { * * *
-   * Additional structured details about this error. Keys must match /a-z+/ but should ideally be lowerCamelCase. Also they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than {"instanceLimit": "100/request"}, should be returned as, {"instanceLimitPerRequest": "100"}, if the client exceeds the number of instances that can be created in a single (batch) request.
+   * Additional structured details about this error. Keys must match a regular expression of `a-z+` but should ideally be lowerCamelCase. Also, they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than `{"instanceLimit": "100/request"}`, should be returned as, `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of instances that can be created in a single (batch) request.
    * 
* * map<string, string> metadatas = 8514340; @@ -228,7 +228,7 @@ public java.util.Map getMetadatasMap() { * * *
-   * Additional structured details about this error. Keys must match /a-z+/ but should ideally be lowerCamelCase. Also they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than {"instanceLimit": "100/request"}, should be returned as, {"instanceLimitPerRequest": "100"}, if the client exceeds the number of instances that can be created in a single (batch) request.
+   * Additional structured details about this error. Keys must match a regular expression of `a-z+` but should ideally be lowerCamelCase. Also, they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than `{"instanceLimit": "100/request"}`, should be returned as, `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of instances that can be created in a single (batch) request.
    * 
* * map<string, string> metadatas = 8514340; @@ -897,7 +897,7 @@ public int getMetadatasCount() { * * *
-     * Additional structured details about this error. Keys must match /a-z+/ but should ideally be lowerCamelCase. Also they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than {"instanceLimit": "100/request"}, should be returned as, {"instanceLimitPerRequest": "100"}, if the client exceeds the number of instances that can be created in a single (batch) request.
+     * Additional structured details about this error. Keys must match a regular expression of `a-z+` but should ideally be lowerCamelCase. Also, they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than `{"instanceLimit": "100/request"}`, should be returned as, `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of instances that can be created in a single (batch) request.
      * 
* * map<string, string> metadatas = 8514340; @@ -919,7 +919,7 @@ public java.util.Map getMetadatas() { * * *
-     * Additional structured details about this error. Keys must match /a-z+/ but should ideally be lowerCamelCase. Also they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than {"instanceLimit": "100/request"}, should be returned as, {"instanceLimitPerRequest": "100"}, if the client exceeds the number of instances that can be created in a single (batch) request.
+     * Additional structured details about this error. Keys must match a regular expression of `a-z+` but should ideally be lowerCamelCase. Also, they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than `{"instanceLimit": "100/request"}`, should be returned as, `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of instances that can be created in a single (batch) request.
      * 
* * map<string, string> metadatas = 8514340; @@ -932,7 +932,7 @@ public java.util.Map getMetadatasMap() { * * *
-     * Additional structured details about this error. Keys must match /a-z+/ but should ideally be lowerCamelCase. Also they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than {"instanceLimit": "100/request"}, should be returned as, {"instanceLimitPerRequest": "100"}, if the client exceeds the number of instances that can be created in a single (batch) request.
+     * Additional structured details about this error. Keys must match a regular expression of `a-z+` but should ideally be lowerCamelCase. Also, they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than `{"instanceLimit": "100/request"}`, should be returned as, `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of instances that can be created in a single (batch) request.
      * 
* * map<string, string> metadatas = 8514340; @@ -952,7 +952,7 @@ public java.util.Map getMetadatasMap() { * * *
-     * Additional structured details about this error. Keys must match /a-z+/ but should ideally be lowerCamelCase. Also they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than {"instanceLimit": "100/request"}, should be returned as, {"instanceLimitPerRequest": "100"}, if the client exceeds the number of instances that can be created in a single (batch) request.
+     * Additional structured details about this error. Keys must match a regular expression of `a-z+` but should ideally be lowerCamelCase. Also, they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than `{"instanceLimit": "100/request"}`, should be returned as, `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of instances that can be created in a single (batch) request.
      * 
* * map<string, string> metadatas = 8514340; @@ -978,7 +978,7 @@ public Builder clearMetadatas() { * * *
-     * Additional structured details about this error. Keys must match /a-z+/ but should ideally be lowerCamelCase. Also they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than {"instanceLimit": "100/request"}, should be returned as, {"instanceLimitPerRequest": "100"}, if the client exceeds the number of instances that can be created in a single (batch) request.
+     * Additional structured details about this error. Keys must match a regular expression of `a-z+` but should ideally be lowerCamelCase. Also, they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than `{"instanceLimit": "100/request"}`, should be returned as, `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of instances that can be created in a single (batch) request.
      * 
* * map<string, string> metadatas = 8514340; @@ -1000,7 +1000,7 @@ public java.util.Map getMutableMetadatas() { * * *
-     * Additional structured details about this error. Keys must match /a-z+/ but should ideally be lowerCamelCase. Also they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than {"instanceLimit": "100/request"}, should be returned as, {"instanceLimitPerRequest": "100"}, if the client exceeds the number of instances that can be created in a single (batch) request.
+     * Additional structured details about this error. Keys must match a regular expression of `a-z+` but should ideally be lowerCamelCase. Also, they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than `{"instanceLimit": "100/request"}`, should be returned as, `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of instances that can be created in a single (batch) request.
      * 
* * map<string, string> metadatas = 8514340; @@ -1020,7 +1020,7 @@ public Builder putMetadatas(java.lang.String key, java.lang.String value) { * * *
-     * Additional structured details about this error. Keys must match /a-z+/ but should ideally be lowerCamelCase. Also they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than {"instanceLimit": "100/request"}, should be returned as, {"instanceLimitPerRequest": "100"}, if the client exceeds the number of instances that can be created in a single (batch) request.
+     * Additional structured details about this error. Keys must match a regular expression of `a-z+` but should ideally be lowerCamelCase. Also, they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than `{"instanceLimit": "100/request"}`, should be returned as, `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of instances that can be created in a single (batch) request.
      * 
* * map<string, string> metadatas = 8514340; diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ErrorInfoOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ErrorInfoOrBuilder.java index e5128d148bf0..99a25049a02a 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ErrorInfoOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/ErrorInfoOrBuilder.java @@ -65,7 +65,7 @@ public interface ErrorInfoOrBuilder * * *
-   * Additional structured details about this error. Keys must match /a-z+/ but should ideally be lowerCamelCase. Also they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than {"instanceLimit": "100/request"}, should be returned as, {"instanceLimitPerRequest": "100"}, if the client exceeds the number of instances that can be created in a single (batch) request.
+   * Additional structured details about this error. Keys must match a regular expression of `a-z+` but should ideally be lowerCamelCase. Also, they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than `{"instanceLimit": "100/request"}`, should be returned as, `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of instances that can be created in a single (batch) request.
    * 
* * map<string, string> metadatas = 8514340; @@ -75,7 +75,7 @@ public interface ErrorInfoOrBuilder * * *
-   * Additional structured details about this error. Keys must match /a-z+/ but should ideally be lowerCamelCase. Also they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than {"instanceLimit": "100/request"}, should be returned as, {"instanceLimitPerRequest": "100"}, if the client exceeds the number of instances that can be created in a single (batch) request.
+   * Additional structured details about this error. Keys must match a regular expression of `a-z+` but should ideally be lowerCamelCase. Also, they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than `{"instanceLimit": "100/request"}`, should be returned as, `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of instances that can be created in a single (batch) request.
    * 
* * map<string, string> metadatas = 8514340; @@ -88,7 +88,7 @@ public interface ErrorInfoOrBuilder * * *
-   * Additional structured details about this error. Keys must match /a-z+/ but should ideally be lowerCamelCase. Also they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than {"instanceLimit": "100/request"}, should be returned as, {"instanceLimitPerRequest": "100"}, if the client exceeds the number of instances that can be created in a single (batch) request.
+   * Additional structured details about this error. Keys must match a regular expression of `a-z+` but should ideally be lowerCamelCase. Also, they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than `{"instanceLimit": "100/request"}`, should be returned as, `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of instances that can be created in a single (batch) request.
    * 
* * map<string, string> metadatas = 8514340; @@ -98,7 +98,7 @@ public interface ErrorInfoOrBuilder * * *
-   * Additional structured details about this error. Keys must match /a-z+/ but should ideally be lowerCamelCase. Also they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than {"instanceLimit": "100/request"}, should be returned as, {"instanceLimitPerRequest": "100"}, if the client exceeds the number of instances that can be created in a single (batch) request.
+   * Additional structured details about this error. Keys must match a regular expression of `a-z+` but should ideally be lowerCamelCase. Also, they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than `{"instanceLimit": "100/request"}`, should be returned as, `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of instances that can be created in a single (batch) request.
    * 
* * map<string, string> metadatas = 8514340; @@ -112,7 +112,7 @@ java.lang.String getMetadatasOrDefault( * * *
-   * Additional structured details about this error. Keys must match /a-z+/ but should ideally be lowerCamelCase. Also they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than {"instanceLimit": "100/request"}, should be returned as, {"instanceLimitPerRequest": "100"}, if the client exceeds the number of instances that can be created in a single (batch) request.
+   * Additional structured details about this error. Keys must match a regular expression of `a-z+` but should ideally be lowerCamelCase. Also, they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than `{"instanceLimit": "100/request"}`, should be returned as, `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of instances that can be created in a single (batch) request.
    * 
* * map<string, string> metadatas = 8514340; diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/FirewallPoliciesScopedList.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/FirewallPoliciesScopedList.java new file mode 100644 index 000000000000..0a3671816165 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/FirewallPoliciesScopedList.java @@ -0,0 +1,1224 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.FirewallPoliciesScopedList} + */ +public final class FirewallPoliciesScopedList extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.FirewallPoliciesScopedList) + FirewallPoliciesScopedListOrBuilder { + private static final long serialVersionUID = 0L; + // Use FirewallPoliciesScopedList.newBuilder() to construct. + private FirewallPoliciesScopedList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FirewallPoliciesScopedList() { + firewallPolicies_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FirewallPoliciesScopedList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_FirewallPoliciesScopedList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_FirewallPoliciesScopedList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.FirewallPoliciesScopedList.class, + com.google.cloud.compute.v1.FirewallPoliciesScopedList.Builder.class); + } + + private int bitField0_; + public static final int FIREWALL_POLICIES_FIELD_NUMBER = 392512943; + + @SuppressWarnings("serial") + private java.util.List firewallPolicies_; + /** + * + * + *
+   * A list of firewall policies contained in this scope.
+   * 
+ * + * repeated .google.cloud.compute.v1.FirewallPolicy firewall_policies = 392512943; + */ + @java.lang.Override + public java.util.List getFirewallPoliciesList() { + return firewallPolicies_; + } + /** + * + * + *
+   * A list of firewall policies contained in this scope.
+   * 
+ * + * repeated .google.cloud.compute.v1.FirewallPolicy firewall_policies = 392512943; + */ + @java.lang.Override + public java.util.List + getFirewallPoliciesOrBuilderList() { + return firewallPolicies_; + } + /** + * + * + *
+   * A list of firewall policies contained in this scope.
+   * 
+ * + * repeated .google.cloud.compute.v1.FirewallPolicy firewall_policies = 392512943; + */ + @java.lang.Override + public int getFirewallPoliciesCount() { + return firewallPolicies_.size(); + } + /** + * + * + *
+   * A list of firewall policies contained in this scope.
+   * 
+ * + * repeated .google.cloud.compute.v1.FirewallPolicy firewall_policies = 392512943; + */ + @java.lang.Override + public com.google.cloud.compute.v1.FirewallPolicy getFirewallPolicies(int index) { + return firewallPolicies_.get(index); + } + /** + * + * + *
+   * A list of firewall policies contained in this scope.
+   * 
+ * + * repeated .google.cloud.compute.v1.FirewallPolicy firewall_policies = 392512943; + */ + @java.lang.Override + public com.google.cloud.compute.v1.FirewallPolicyOrBuilder getFirewallPoliciesOrBuilder( + int index) { + return firewallPolicies_.get(index); + } + + public static final int WARNING_FIELD_NUMBER = 50704284; + private com.google.cloud.compute.v1.Warning warning_; + /** + * + * + *
+   * Informational warning which replaces the list of firewall policies when the list is empty.
+   * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return Whether the warning field is set. + */ + @java.lang.Override + public boolean hasWarning() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Informational warning which replaces the list of firewall policies when the list is empty.
+   * 
+ * + * 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_; + } + /** + * + * + *
+   * Informational warning which replaces the list of firewall policies when the list is empty.
+   * 
+ * + * 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_ & 0x00000001) != 0)) { + output.writeMessage(50704284, getWarning()); + } + for (int i = 0; i < firewallPolicies_.size(); i++) { + output.writeMessage(392512943, firewallPolicies_.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(50704284, getWarning()); + } + for (int i = 0; i < firewallPolicies_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 392512943, firewallPolicies_.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.compute.v1.FirewallPoliciesScopedList)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.FirewallPoliciesScopedList other = + (com.google.cloud.compute.v1.FirewallPoliciesScopedList) obj; + + if (!getFirewallPoliciesList().equals(other.getFirewallPoliciesList())) 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 (getFirewallPoliciesCount() > 0) { + hash = (37 * hash) + FIREWALL_POLICIES_FIELD_NUMBER; + hash = (53 * hash) + getFirewallPoliciesList().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.FirewallPoliciesScopedList parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.FirewallPoliciesScopedList parseFrom( + 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.FirewallPoliciesScopedList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.FirewallPoliciesScopedList parseFrom( + com.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.FirewallPoliciesScopedList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.FirewallPoliciesScopedList 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.FirewallPoliciesScopedList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.FirewallPoliciesScopedList parseFrom( + java.io.InputStream 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.FirewallPoliciesScopedList parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.FirewallPoliciesScopedList parseDelimitedFrom( + java.io.InputStream 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.FirewallPoliciesScopedList 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.FirewallPoliciesScopedList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.FirewallPoliciesScopedList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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.FirewallPoliciesScopedList} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.FirewallPoliciesScopedList) + com.google.cloud.compute.v1.FirewallPoliciesScopedListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_FirewallPoliciesScopedList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_FirewallPoliciesScopedList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.FirewallPoliciesScopedList.class, + com.google.cloud.compute.v1.FirewallPoliciesScopedList.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.FirewallPoliciesScopedList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFirewallPoliciesFieldBuilder(); + getWarningFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (firewallPoliciesBuilder_ == null) { + firewallPolicies_ = java.util.Collections.emptyList(); + } else { + firewallPolicies_ = null; + firewallPoliciesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + 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_FirewallPoliciesScopedList_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.FirewallPoliciesScopedList getDefaultInstanceForType() { + return com.google.cloud.compute.v1.FirewallPoliciesScopedList.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.FirewallPoliciesScopedList build() { + com.google.cloud.compute.v1.FirewallPoliciesScopedList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.FirewallPoliciesScopedList buildPartial() { + com.google.cloud.compute.v1.FirewallPoliciesScopedList result = + new com.google.cloud.compute.v1.FirewallPoliciesScopedList(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.compute.v1.FirewallPoliciesScopedList result) { + if (firewallPoliciesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + firewallPolicies_ = java.util.Collections.unmodifiableList(firewallPolicies_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.firewallPolicies_ = firewallPolicies_; + } else { + result.firewallPolicies_ = firewallPoliciesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.compute.v1.FirewallPoliciesScopedList result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.warning_ = warningBuilder_ == null ? warning_ : warningBuilder_.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.compute.v1.FirewallPoliciesScopedList) { + return mergeFrom((com.google.cloud.compute.v1.FirewallPoliciesScopedList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.compute.v1.FirewallPoliciesScopedList other) { + if (other == com.google.cloud.compute.v1.FirewallPoliciesScopedList.getDefaultInstance()) + return this; + if (firewallPoliciesBuilder_ == null) { + if (!other.firewallPolicies_.isEmpty()) { + if (firewallPolicies_.isEmpty()) { + firewallPolicies_ = other.firewallPolicies_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFirewallPoliciesIsMutable(); + firewallPolicies_.addAll(other.firewallPolicies_); + } + onChanged(); + } + } else { + if (!other.firewallPolicies_.isEmpty()) { + if (firewallPoliciesBuilder_.isEmpty()) { + firewallPoliciesBuilder_.dispose(); + firewallPoliciesBuilder_ = null; + firewallPolicies_ = other.firewallPolicies_; + bitField0_ = (bitField0_ & ~0x00000001); + firewallPoliciesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFirewallPoliciesFieldBuilder() + : null; + } else { + firewallPoliciesBuilder_.addAllMessages(other.firewallPolicies_); + } + } + } + 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 405634274: + { + input.readMessage(getWarningFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 405634274 + case -1154863750: + { + com.google.cloud.compute.v1.FirewallPolicy m = + input.readMessage( + com.google.cloud.compute.v1.FirewallPolicy.parser(), extensionRegistry); + if (firewallPoliciesBuilder_ == null) { + ensureFirewallPoliciesIsMutable(); + firewallPolicies_.add(m); + } else { + firewallPoliciesBuilder_.addMessage(m); + } + break; + } // case -1154863750 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + 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 firewallPolicies_ = + java.util.Collections.emptyList(); + + private void ensureFirewallPoliciesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + firewallPolicies_ = + new java.util.ArrayList(firewallPolicies_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.compute.v1.FirewallPolicy, + com.google.cloud.compute.v1.FirewallPolicy.Builder, + com.google.cloud.compute.v1.FirewallPolicyOrBuilder> + firewallPoliciesBuilder_; + + /** + * + * + *
+     * A list of firewall policies contained in this scope.
+     * 
+ * + * repeated .google.cloud.compute.v1.FirewallPolicy firewall_policies = 392512943; + */ + public java.util.List getFirewallPoliciesList() { + if (firewallPoliciesBuilder_ == null) { + return java.util.Collections.unmodifiableList(firewallPolicies_); + } else { + return firewallPoliciesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of firewall policies contained in this scope.
+     * 
+ * + * repeated .google.cloud.compute.v1.FirewallPolicy firewall_policies = 392512943; + */ + public int getFirewallPoliciesCount() { + if (firewallPoliciesBuilder_ == null) { + return firewallPolicies_.size(); + } else { + return firewallPoliciesBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of firewall policies contained in this scope.
+     * 
+ * + * repeated .google.cloud.compute.v1.FirewallPolicy firewall_policies = 392512943; + */ + public com.google.cloud.compute.v1.FirewallPolicy getFirewallPolicies(int index) { + if (firewallPoliciesBuilder_ == null) { + return firewallPolicies_.get(index); + } else { + return firewallPoliciesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of firewall policies contained in this scope.
+     * 
+ * + * repeated .google.cloud.compute.v1.FirewallPolicy firewall_policies = 392512943; + */ + public Builder setFirewallPolicies( + int index, com.google.cloud.compute.v1.FirewallPolicy value) { + if (firewallPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFirewallPoliciesIsMutable(); + firewallPolicies_.set(index, value); + onChanged(); + } else { + firewallPoliciesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of firewall policies contained in this scope.
+     * 
+ * + * repeated .google.cloud.compute.v1.FirewallPolicy firewall_policies = 392512943; + */ + public Builder setFirewallPolicies( + int index, com.google.cloud.compute.v1.FirewallPolicy.Builder builderForValue) { + if (firewallPoliciesBuilder_ == null) { + ensureFirewallPoliciesIsMutable(); + firewallPolicies_.set(index, builderForValue.build()); + onChanged(); + } else { + firewallPoliciesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of firewall policies contained in this scope.
+     * 
+ * + * repeated .google.cloud.compute.v1.FirewallPolicy firewall_policies = 392512943; + */ + public Builder addFirewallPolicies(com.google.cloud.compute.v1.FirewallPolicy value) { + if (firewallPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFirewallPoliciesIsMutable(); + firewallPolicies_.add(value); + onChanged(); + } else { + firewallPoliciesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of firewall policies contained in this scope.
+     * 
+ * + * repeated .google.cloud.compute.v1.FirewallPolicy firewall_policies = 392512943; + */ + public Builder addFirewallPolicies( + int index, com.google.cloud.compute.v1.FirewallPolicy value) { + if (firewallPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFirewallPoliciesIsMutable(); + firewallPolicies_.add(index, value); + onChanged(); + } else { + firewallPoliciesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of firewall policies contained in this scope.
+     * 
+ * + * repeated .google.cloud.compute.v1.FirewallPolicy firewall_policies = 392512943; + */ + public Builder addFirewallPolicies( + com.google.cloud.compute.v1.FirewallPolicy.Builder builderForValue) { + if (firewallPoliciesBuilder_ == null) { + ensureFirewallPoliciesIsMutable(); + firewallPolicies_.add(builderForValue.build()); + onChanged(); + } else { + firewallPoliciesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of firewall policies contained in this scope.
+     * 
+ * + * repeated .google.cloud.compute.v1.FirewallPolicy firewall_policies = 392512943; + */ + public Builder addFirewallPolicies( + int index, com.google.cloud.compute.v1.FirewallPolicy.Builder builderForValue) { + if (firewallPoliciesBuilder_ == null) { + ensureFirewallPoliciesIsMutable(); + firewallPolicies_.add(index, builderForValue.build()); + onChanged(); + } else { + firewallPoliciesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of firewall policies contained in this scope.
+     * 
+ * + * repeated .google.cloud.compute.v1.FirewallPolicy firewall_policies = 392512943; + */ + public Builder addAllFirewallPolicies( + java.lang.Iterable values) { + if (firewallPoliciesBuilder_ == null) { + ensureFirewallPoliciesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, firewallPolicies_); + onChanged(); + } else { + firewallPoliciesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of firewall policies contained in this scope.
+     * 
+ * + * repeated .google.cloud.compute.v1.FirewallPolicy firewall_policies = 392512943; + */ + public Builder clearFirewallPolicies() { + if (firewallPoliciesBuilder_ == null) { + firewallPolicies_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + firewallPoliciesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of firewall policies contained in this scope.
+     * 
+ * + * repeated .google.cloud.compute.v1.FirewallPolicy firewall_policies = 392512943; + */ + public Builder removeFirewallPolicies(int index) { + if (firewallPoliciesBuilder_ == null) { + ensureFirewallPoliciesIsMutable(); + firewallPolicies_.remove(index); + onChanged(); + } else { + firewallPoliciesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of firewall policies contained in this scope.
+     * 
+ * + * repeated .google.cloud.compute.v1.FirewallPolicy firewall_policies = 392512943; + */ + public com.google.cloud.compute.v1.FirewallPolicy.Builder getFirewallPoliciesBuilder( + int index) { + return getFirewallPoliciesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of firewall policies contained in this scope.
+     * 
+ * + * repeated .google.cloud.compute.v1.FirewallPolicy firewall_policies = 392512943; + */ + public com.google.cloud.compute.v1.FirewallPolicyOrBuilder getFirewallPoliciesOrBuilder( + int index) { + if (firewallPoliciesBuilder_ == null) { + return firewallPolicies_.get(index); + } else { + return firewallPoliciesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of firewall policies contained in this scope.
+     * 
+ * + * repeated .google.cloud.compute.v1.FirewallPolicy firewall_policies = 392512943; + */ + public java.util.List + getFirewallPoliciesOrBuilderList() { + if (firewallPoliciesBuilder_ != null) { + return firewallPoliciesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(firewallPolicies_); + } + } + /** + * + * + *
+     * A list of firewall policies contained in this scope.
+     * 
+ * + * repeated .google.cloud.compute.v1.FirewallPolicy firewall_policies = 392512943; + */ + public com.google.cloud.compute.v1.FirewallPolicy.Builder addFirewallPoliciesBuilder() { + return getFirewallPoliciesFieldBuilder() + .addBuilder(com.google.cloud.compute.v1.FirewallPolicy.getDefaultInstance()); + } + /** + * + * + *
+     * A list of firewall policies contained in this scope.
+     * 
+ * + * repeated .google.cloud.compute.v1.FirewallPolicy firewall_policies = 392512943; + */ + public com.google.cloud.compute.v1.FirewallPolicy.Builder addFirewallPoliciesBuilder( + int index) { + return getFirewallPoliciesFieldBuilder() + .addBuilder(index, com.google.cloud.compute.v1.FirewallPolicy.getDefaultInstance()); + } + /** + * + * + *
+     * A list of firewall policies contained in this scope.
+     * 
+ * + * repeated .google.cloud.compute.v1.FirewallPolicy firewall_policies = 392512943; + */ + public java.util.List + getFirewallPoliciesBuilderList() { + return getFirewallPoliciesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.compute.v1.FirewallPolicy, + com.google.cloud.compute.v1.FirewallPolicy.Builder, + com.google.cloud.compute.v1.FirewallPolicyOrBuilder> + getFirewallPoliciesFieldBuilder() { + if (firewallPoliciesBuilder_ == null) { + firewallPoliciesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.compute.v1.FirewallPolicy, + com.google.cloud.compute.v1.FirewallPolicy.Builder, + com.google.cloud.compute.v1.FirewallPolicyOrBuilder>( + firewallPolicies_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + firewallPolicies_ = null; + } + return firewallPoliciesBuilder_; + } + + 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_; + /** + * + * + *
+     * Informational warning which replaces the list of firewall policies when the list is empty.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return Whether the warning field is set. + */ + public boolean hasWarning() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Informational warning which replaces the list of firewall policies when the list is empty.
+     * 
+ * + * 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(); + } + } + /** + * + * + *
+     * Informational warning which replaces the list of firewall policies when the list is empty.
+     * 
+ * + * 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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Informational warning which replaces the list of firewall policies when the list is empty.
+     * 
+ * + * 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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Informational warning which replaces the list of firewall policies when the list is empty.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public Builder mergeWarning(com.google.cloud.compute.v1.Warning value) { + if (warningBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 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_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Informational warning which replaces the list of firewall policies when the list is empty.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public Builder clearWarning() { + bitField0_ = (bitField0_ & ~0x00000002); + warning_ = null; + if (warningBuilder_ != null) { + warningBuilder_.dispose(); + warningBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Informational warning which replaces the list of firewall policies when the list is empty.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public com.google.cloud.compute.v1.Warning.Builder getWarningBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getWarningFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Informational warning which replaces the list of firewall policies when the list is empty.
+     * 
+ * + * 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_; + } + } + /** + * + * + *
+     * Informational warning which replaces the list of firewall policies when the list is empty.
+     * 
+ * + * 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.FirewallPoliciesScopedList) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.FirewallPoliciesScopedList) + private static final com.google.cloud.compute.v1.FirewallPoliciesScopedList DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.FirewallPoliciesScopedList(); + } + + public static com.google.cloud.compute.v1.FirewallPoliciesScopedList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FirewallPoliciesScopedList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.FirewallPoliciesScopedList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/FirewallPoliciesScopedListOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/FirewallPoliciesScopedListOrBuilder.java new file mode 100644 index 000000000000..38564b2c1690 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/FirewallPoliciesScopedListOrBuilder.java @@ -0,0 +1,113 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +public interface FirewallPoliciesScopedListOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.FirewallPoliciesScopedList) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of firewall policies contained in this scope.
+   * 
+ * + * repeated .google.cloud.compute.v1.FirewallPolicy firewall_policies = 392512943; + */ + java.util.List getFirewallPoliciesList(); + /** + * + * + *
+   * A list of firewall policies contained in this scope.
+   * 
+ * + * repeated .google.cloud.compute.v1.FirewallPolicy firewall_policies = 392512943; + */ + com.google.cloud.compute.v1.FirewallPolicy getFirewallPolicies(int index); + /** + * + * + *
+   * A list of firewall policies contained in this scope.
+   * 
+ * + * repeated .google.cloud.compute.v1.FirewallPolicy firewall_policies = 392512943; + */ + int getFirewallPoliciesCount(); + /** + * + * + *
+   * A list of firewall policies contained in this scope.
+   * 
+ * + * repeated .google.cloud.compute.v1.FirewallPolicy firewall_policies = 392512943; + */ + java.util.List + getFirewallPoliciesOrBuilderList(); + /** + * + * + *
+   * A list of firewall policies contained in this scope.
+   * 
+ * + * repeated .google.cloud.compute.v1.FirewallPolicy firewall_policies = 392512943; + */ + com.google.cloud.compute.v1.FirewallPolicyOrBuilder getFirewallPoliciesOrBuilder(int index); + + /** + * + * + *
+   * Informational warning which replaces the list of firewall policies when the list is empty.
+   * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return Whether the warning field is set. + */ + boolean hasWarning(); + /** + * + * + *
+   * Informational warning which replaces the list of firewall policies when the list is empty.
+   * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + * + * @return The warning. + */ + com.google.cloud.compute.v1.Warning getWarning(); + /** + * + * + *
+   * Informational warning which replaces the list of firewall policies when the list is empty.
+   * 
+ * + * 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/InstanceGroup.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroup.java index 6807a2032146..921d523da865 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroup.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroup.java @@ -445,7 +445,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
+   *  Optional. Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
    * 
* * repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732; @@ -458,7 +458,7 @@ public java.util.List getNamedPortsList() * * *
-   *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
+   *  Optional. Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
    * 
* * repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732; @@ -472,7 +472,7 @@ public java.util.List getNamedPortsList() * * *
-   *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
+   *  Optional. Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
    * 
* * repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732; @@ -485,7 +485,7 @@ public int getNamedPortsCount() { * * *
-   *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
+   *  Optional. Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
    * 
* * repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732; @@ -498,7 +498,7 @@ public com.google.cloud.compute.v1.NamedPort getNamedPorts(int index) { * * *
-   *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
+   *  Optional. Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
    * 
* * repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732; @@ -2307,7 +2307,7 @@ private void ensureNamedPortsIsMutable() { * * *
-     *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
+     *  Optional. Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
      * 
* * repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732; @@ -2323,7 +2323,7 @@ public java.util.List getNamedPortsList() * * *
-     *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
+     *  Optional. Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
      * 
* * repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732; @@ -2339,7 +2339,7 @@ public int getNamedPortsCount() { * * *
-     *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
+     *  Optional. Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
      * 
* * repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732; @@ -2355,7 +2355,7 @@ public com.google.cloud.compute.v1.NamedPort getNamedPorts(int index) { * * *
-     *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
+     *  Optional. Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
      * 
* * repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732; @@ -2377,7 +2377,7 @@ public Builder setNamedPorts(int index, com.google.cloud.compute.v1.NamedPort va * * *
-     *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
+     *  Optional. Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
      * 
* * repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732; @@ -2397,7 +2397,7 @@ public Builder setNamedPorts( * * *
-     *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
+     *  Optional. Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
      * 
* * repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732; @@ -2419,7 +2419,7 @@ public Builder addNamedPorts(com.google.cloud.compute.v1.NamedPort value) { * * *
-     *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
+     *  Optional. Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
      * 
* * repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732; @@ -2441,7 +2441,7 @@ public Builder addNamedPorts(int index, com.google.cloud.compute.v1.NamedPort va * * *
-     *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
+     *  Optional. Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
      * 
* * repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732; @@ -2460,7 +2460,7 @@ public Builder addNamedPorts(com.google.cloud.compute.v1.NamedPort.Builder build * * *
-     *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
+     *  Optional. Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
      * 
* * repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732; @@ -2480,7 +2480,7 @@ public Builder addNamedPorts( * * *
-     *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
+     *  Optional. Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
      * 
* * repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732; @@ -2500,7 +2500,7 @@ public Builder addAllNamedPorts( * * *
-     *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
+     *  Optional. Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
      * 
* * repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732; @@ -2519,7 +2519,7 @@ public Builder clearNamedPorts() { * * *
-     *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
+     *  Optional. Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
      * 
* * repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732; @@ -2538,7 +2538,7 @@ public Builder removeNamedPorts(int index) { * * *
-     *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
+     *  Optional. Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
      * 
* * repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732; @@ -2550,7 +2550,7 @@ public com.google.cloud.compute.v1.NamedPort.Builder getNamedPortsBuilder(int in * * *
-     *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
+     *  Optional. Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
      * 
* * repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732; @@ -2566,7 +2566,7 @@ public com.google.cloud.compute.v1.NamedPortOrBuilder getNamedPortsOrBuilder(int * * *
-     *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
+     *  Optional. Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
      * 
* * repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732; @@ -2583,7 +2583,7 @@ public com.google.cloud.compute.v1.NamedPortOrBuilder getNamedPortsOrBuilder(int * * *
-     *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
+     *  Optional. Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
      * 
* * repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732; @@ -2596,7 +2596,7 @@ public com.google.cloud.compute.v1.NamedPort.Builder addNamedPortsBuilder() { * * *
-     *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
+     *  Optional. Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
      * 
* * repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732; @@ -2609,7 +2609,7 @@ public com.google.cloud.compute.v1.NamedPort.Builder addNamedPortsBuilder(int in * * *
-     *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
+     *  Optional. Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
      * 
* * repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732; diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupOrBuilder.java index 5666e24df60e..e034863d1feb 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InstanceGroupOrBuilder.java @@ -238,7 +238,7 @@ public interface InstanceGroupOrBuilder * * *
-   *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
+   *  Optional. Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
    * 
* * repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732; @@ -248,7 +248,7 @@ public interface InstanceGroupOrBuilder * * *
-   *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
+   *  Optional. Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
    * 
* * repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732; @@ -258,7 +258,7 @@ public interface InstanceGroupOrBuilder * * *
-   *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
+   *  Optional. Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
    * 
* * repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732; @@ -268,7 +268,7 @@ public interface InstanceGroupOrBuilder * * *
-   *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
+   *  Optional. Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
    * 
* * repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732; @@ -279,7 +279,7 @@ public interface InstanceGroupOrBuilder * * *
-   *  Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
+   *  Optional. Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
    * 
* * repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732; diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InterconnectAttachment.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InterconnectAttachment.java index 361e64e54743..cc28001ef4b0 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InterconnectAttachment.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InterconnectAttachment.java @@ -106,7 +106,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * * *
-   * Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s
+   * Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s - BPS_100G: 100 Gbit/s
    * 
* * Protobuf enum {@code google.cloud.compute.v1.InterconnectAttachment.Bandwidth} @@ -122,6 +122,16 @@ public enum Bandwidth implements com.google.protobuf.ProtocolMessageEnum { * UNDEFINED_BANDWIDTH = 0; */ UNDEFINED_BANDWIDTH(0), + /** + * + * + *
+     * 100 Gbit/s
+     * 
+ * + * BPS_100G = 49547952; + */ + BPS_100G(49547952), /** * * @@ -255,6 +265,16 @@ public enum Bandwidth implements com.google.protobuf.ProtocolMessageEnum { * UNDEFINED_BANDWIDTH = 0; */ public static final int UNDEFINED_BANDWIDTH_VALUE = 0; + /** + * + * + *
+     * 100 Gbit/s
+     * 
+ * + * BPS_100G = 49547952; + */ + public static final int BPS_100G_VALUE = 49547952; /** * * @@ -402,6 +422,8 @@ public static Bandwidth forNumber(int value) { switch (value) { case 0: return UNDEFINED_BANDWIDTH; + case 49547952: + return BPS_100G; case 49547958: return BPS_100M; case 278693006: @@ -485,7 +507,7 @@ private Bandwidth(int value) { * * *
-   * Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY.
+   * Input only. Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY.
    * 
* * Protobuf enum {@code google.cloud.compute.v1.InterconnectAttachment.EdgeAvailabilityDomain} @@ -1574,7 +1596,7 @@ public boolean getAdminEnabled() { * * *
-   * Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s
+   * Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s - BPS_100G: 100 Gbit/s
    * Check the Bandwidth enum for the list of possible values.
    * 
* @@ -1590,7 +1612,7 @@ public boolean hasBandwidth() { * * *
-   * Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s
+   * Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s - BPS_100G: 100 Gbit/s
    * Check the Bandwidth enum for the list of possible values.
    * 
* @@ -1614,7 +1636,7 @@ public java.lang.String getBandwidth() { * * *
-   * Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s
+   * Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s - BPS_100G: 100 Gbit/s
    * Check the Bandwidth enum for the list of possible values.
    * 
* @@ -1708,7 +1730,7 @@ public com.google.protobuf.ByteString getCandidateIpv6SubnetsBytes(int index) { * * *
-   * Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space.
+   * Input only. Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space.
    * 
* * repeated string candidate_subnets = 237842938; @@ -1722,7 +1744,7 @@ public com.google.protobuf.ProtocolStringList getCandidateSubnetsList() { * * *
-   * Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space.
+   * Input only. Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space.
    * 
* * repeated string candidate_subnets = 237842938; @@ -1736,7 +1758,7 @@ public int getCandidateSubnetsCount() { * * *
-   * Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space.
+   * Input only. Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space.
    * 
* * repeated string candidate_subnets = 237842938; @@ -1751,7 +1773,7 @@ public java.lang.String getCandidateSubnets(int index) { * * *
-   * Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space.
+   * Input only. Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space.
    * 
* * repeated string candidate_subnets = 237842938; @@ -2393,7 +2415,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
-   * Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY.
+   * Input only. Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY.
    * Check the EdgeAvailabilityDomain enum for the list of possible values.
    * 
* @@ -2409,7 +2431,7 @@ public boolean hasEdgeAvailabilityDomain() { * * *
-   * Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY.
+   * Input only. Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY.
    * Check the EdgeAvailabilityDomain enum for the list of possible values.
    * 
* @@ -2433,7 +2455,7 @@ public java.lang.String getEdgeAvailabilityDomain() { * * *
-   * Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY.
+   * Input only. Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY.
    * Check the EdgeAvailabilityDomain enum for the list of possible values.
    * 
* @@ -3809,7 +3831,7 @@ public com.google.protobuf.ByteString getStateBytes() { * * *
-   * Length of the IPv4 subnet mask. Allowed values: - 29 (default) - 30 The default value is 29, except for Cross-Cloud Interconnect connections that use an InterconnectRemoteLocation with a constraints.subnetLengthRange.min equal to 30. For example, connections that use an Azure remote location fall into this category. In these cases, the default value is 30, and requesting 29 returns an error. Where both 29 and 30 are allowed, 29 is preferred, because it gives Google Cloud Support more debugging visibility.
+   * Input only. Length of the IPv4 subnet mask. Allowed values: - 29 (default) - 30 The default value is 29, except for Cross-Cloud Interconnect connections that use an InterconnectRemoteLocation with a constraints.subnetLengthRange.min equal to 30. For example, connections that use an Azure remote location fall into this category. In these cases, the default value is 30, and requesting 29 returns an error. Where both 29 and 30 are allowed, 29 is preferred, because it gives Google Cloud Support more debugging visibility.
    * 
* * optional int32 subnet_length = 279831048; @@ -3824,7 +3846,7 @@ public boolean hasSubnetLength() { * * *
-   * Length of the IPv4 subnet mask. Allowed values: - 29 (default) - 30 The default value is 29, except for Cross-Cloud Interconnect connections that use an InterconnectRemoteLocation with a constraints.subnetLengthRange.min equal to 30. For example, connections that use an Azure remote location fall into this category. In these cases, the default value is 30, and requesting 29 returns an error. Where both 29 and 30 are allowed, 29 is preferred, because it gives Google Cloud Support more debugging visibility.
+   * Input only. Length of the IPv4 subnet mask. Allowed values: - 29 (default) - 30 The default value is 29, except for Cross-Cloud Interconnect connections that use an InterconnectRemoteLocation with a constraints.subnetLengthRange.min equal to 30. For example, connections that use an Azure remote location fall into this category. In these cases, the default value is 30, and requesting 29 returns an error. Where both 29 and 30 are allowed, 29 is preferred, because it gives Google Cloud Support more debugging visibility.
    * 
* * optional int32 subnet_length = 279831048; @@ -5642,7 +5664,7 @@ public Builder clearAdminEnabled() { * * *
-     * Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s
+     * Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s - BPS_100G: 100 Gbit/s
      * Check the Bandwidth enum for the list of possible values.
      * 
* @@ -5657,7 +5679,7 @@ public boolean hasBandwidth() { * * *
-     * Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s
+     * Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s - BPS_100G: 100 Gbit/s
      * Check the Bandwidth enum for the list of possible values.
      * 
* @@ -5680,7 +5702,7 @@ public java.lang.String getBandwidth() { * * *
-     * Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s
+     * Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s - BPS_100G: 100 Gbit/s
      * Check the Bandwidth enum for the list of possible values.
      * 
* @@ -5703,7 +5725,7 @@ public com.google.protobuf.ByteString getBandwidthBytes() { * * *
-     * Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s
+     * Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s - BPS_100G: 100 Gbit/s
      * Check the Bandwidth enum for the list of possible values.
      * 
* @@ -5725,7 +5747,7 @@ public Builder setBandwidth(java.lang.String value) { * * *
-     * Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s
+     * Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s - BPS_100G: 100 Gbit/s
      * Check the Bandwidth enum for the list of possible values.
      * 
* @@ -5743,7 +5765,7 @@ public Builder clearBandwidth() { * * *
-     * Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s
+     * Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s - BPS_100G: 100 Gbit/s
      * Check the Bandwidth enum for the list of possible values.
      * 
* @@ -5950,7 +5972,7 @@ private void ensureCandidateSubnetsIsMutable() { * * *
-     * Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space.
+     * Input only. Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space.
      * 
* * repeated string candidate_subnets = 237842938; @@ -5965,7 +5987,7 @@ public com.google.protobuf.ProtocolStringList getCandidateSubnetsList() { * * *
-     * Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space.
+     * Input only. Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space.
      * 
* * repeated string candidate_subnets = 237842938; @@ -5979,7 +6001,7 @@ public int getCandidateSubnetsCount() { * * *
-     * Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space.
+     * Input only. Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space.
      * 
* * repeated string candidate_subnets = 237842938; @@ -5994,7 +6016,7 @@ public java.lang.String getCandidateSubnets(int index) { * * *
-     * Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space.
+     * Input only. Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space.
      * 
* * repeated string candidate_subnets = 237842938; @@ -6009,7 +6031,7 @@ public com.google.protobuf.ByteString getCandidateSubnetsBytes(int index) { * * *
-     * Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space.
+     * Input only. Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space.
      * 
* * repeated string candidate_subnets = 237842938; @@ -6032,7 +6054,7 @@ public Builder setCandidateSubnets(int index, java.lang.String value) { * * *
-     * Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space.
+     * Input only. Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space.
      * 
* * repeated string candidate_subnets = 237842938; @@ -6054,7 +6076,7 @@ public Builder addCandidateSubnets(java.lang.String value) { * * *
-     * Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space.
+     * Input only. Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space.
      * 
* * repeated string candidate_subnets = 237842938; @@ -6073,7 +6095,7 @@ public Builder addAllCandidateSubnets(java.lang.Iterable value * * *
-     * Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space.
+     * Input only. Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space.
      * 
* * repeated string candidate_subnets = 237842938; @@ -6091,7 +6113,7 @@ public Builder clearCandidateSubnets() { * * *
-     * Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space.
+     * Input only. Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space.
      * 
* * repeated string candidate_subnets = 237842938; @@ -7360,7 +7382,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * * *
-     * Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY.
+     * Input only. Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY.
      * Check the EdgeAvailabilityDomain enum for the list of possible values.
      * 
* @@ -7375,7 +7397,7 @@ public boolean hasEdgeAvailabilityDomain() { * * *
-     * Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY.
+     * Input only. Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY.
      * Check the EdgeAvailabilityDomain enum for the list of possible values.
      * 
* @@ -7398,7 +7420,7 @@ public java.lang.String getEdgeAvailabilityDomain() { * * *
-     * Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY.
+     * Input only. Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY.
      * Check the EdgeAvailabilityDomain enum for the list of possible values.
      * 
* @@ -7421,7 +7443,7 @@ public com.google.protobuf.ByteString getEdgeAvailabilityDomainBytes() { * * *
-     * Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY.
+     * Input only. Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY.
      * Check the EdgeAvailabilityDomain enum for the list of possible values.
      * 
* @@ -7443,7 +7465,7 @@ public Builder setEdgeAvailabilityDomain(java.lang.String value) { * * *
-     * Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY.
+     * Input only. Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY.
      * Check the EdgeAvailabilityDomain enum for the list of possible values.
      * 
* @@ -7461,7 +7483,7 @@ public Builder clearEdgeAvailabilityDomain() { * * *
-     * Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY.
+     * Input only. Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY.
      * Check the EdgeAvailabilityDomain enum for the list of possible values.
      * 
* @@ -10221,7 +10243,7 @@ public Builder setStateBytes(com.google.protobuf.ByteString value) { * * *
-     * Length of the IPv4 subnet mask. Allowed values: - 29 (default) - 30 The default value is 29, except for Cross-Cloud Interconnect connections that use an InterconnectRemoteLocation with a constraints.subnetLengthRange.min equal to 30. For example, connections that use an Azure remote location fall into this category. In these cases, the default value is 30, and requesting 29 returns an error. Where both 29 and 30 are allowed, 29 is preferred, because it gives Google Cloud Support more debugging visibility.
+     * Input only. Length of the IPv4 subnet mask. Allowed values: - 29 (default) - 30 The default value is 29, except for Cross-Cloud Interconnect connections that use an InterconnectRemoteLocation with a constraints.subnetLengthRange.min equal to 30. For example, connections that use an Azure remote location fall into this category. In these cases, the default value is 30, and requesting 29 returns an error. Where both 29 and 30 are allowed, 29 is preferred, because it gives Google Cloud Support more debugging visibility.
      * 
* * optional int32 subnet_length = 279831048; @@ -10236,7 +10258,7 @@ public boolean hasSubnetLength() { * * *
-     * Length of the IPv4 subnet mask. Allowed values: - 29 (default) - 30 The default value is 29, except for Cross-Cloud Interconnect connections that use an InterconnectRemoteLocation with a constraints.subnetLengthRange.min equal to 30. For example, connections that use an Azure remote location fall into this category. In these cases, the default value is 30, and requesting 29 returns an error. Where both 29 and 30 are allowed, 29 is preferred, because it gives Google Cloud Support more debugging visibility.
+     * Input only. Length of the IPv4 subnet mask. Allowed values: - 29 (default) - 30 The default value is 29, except for Cross-Cloud Interconnect connections that use an InterconnectRemoteLocation with a constraints.subnetLengthRange.min equal to 30. For example, connections that use an Azure remote location fall into this category. In these cases, the default value is 30, and requesting 29 returns an error. Where both 29 and 30 are allowed, 29 is preferred, because it gives Google Cloud Support more debugging visibility.
      * 
* * optional int32 subnet_length = 279831048; @@ -10251,7 +10273,7 @@ public int getSubnetLength() { * * *
-     * Length of the IPv4 subnet mask. Allowed values: - 29 (default) - 30 The default value is 29, except for Cross-Cloud Interconnect connections that use an InterconnectRemoteLocation with a constraints.subnetLengthRange.min equal to 30. For example, connections that use an Azure remote location fall into this category. In these cases, the default value is 30, and requesting 29 returns an error. Where both 29 and 30 are allowed, 29 is preferred, because it gives Google Cloud Support more debugging visibility.
+     * Input only. Length of the IPv4 subnet mask. Allowed values: - 29 (default) - 30 The default value is 29, except for Cross-Cloud Interconnect connections that use an InterconnectRemoteLocation with a constraints.subnetLengthRange.min equal to 30. For example, connections that use an Azure remote location fall into this category. In these cases, the default value is 30, and requesting 29 returns an error. Where both 29 and 30 are allowed, 29 is preferred, because it gives Google Cloud Support more debugging visibility.
      * 
* * optional int32 subnet_length = 279831048; @@ -10270,7 +10292,7 @@ public Builder setSubnetLength(int value) { * * *
-     * Length of the IPv4 subnet mask. Allowed values: - 29 (default) - 30 The default value is 29, except for Cross-Cloud Interconnect connections that use an InterconnectRemoteLocation with a constraints.subnetLengthRange.min equal to 30. For example, connections that use an Azure remote location fall into this category. In these cases, the default value is 30, and requesting 29 returns an error. Where both 29 and 30 are allowed, 29 is preferred, because it gives Google Cloud Support more debugging visibility.
+     * Input only. Length of the IPv4 subnet mask. Allowed values: - 29 (default) - 30 The default value is 29, except for Cross-Cloud Interconnect connections that use an InterconnectRemoteLocation with a constraints.subnetLengthRange.min equal to 30. For example, connections that use an Azure remote location fall into this category. In these cases, the default value is 30, and requesting 29 returns an error. Where both 29 and 30 are allowed, 29 is preferred, because it gives Google Cloud Support more debugging visibility.
      * 
* * optional int32 subnet_length = 279831048; diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentOrBuilder.java index b93fac19c22a..fce23c97b6b9 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/InterconnectAttachmentOrBuilder.java @@ -53,7 +53,7 @@ public interface InterconnectAttachmentOrBuilder * * *
-   * Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s
+   * Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s - BPS_100G: 100 Gbit/s
    * Check the Bandwidth enum for the list of possible values.
    * 
* @@ -66,7 +66,7 @@ public interface InterconnectAttachmentOrBuilder * * *
-   * Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s
+   * Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s - BPS_100G: 100 Gbit/s
    * Check the Bandwidth enum for the list of possible values.
    * 
* @@ -79,7 +79,7 @@ public interface InterconnectAttachmentOrBuilder * * *
-   * Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s
+   * Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s - BPS_100G: 100 Gbit/s
    * Check the Bandwidth enum for the list of possible values.
    * 
* @@ -144,7 +144,7 @@ public interface InterconnectAttachmentOrBuilder * * *
-   * Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space.
+   * Input only. Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space.
    * 
* * repeated string candidate_subnets = 237842938; @@ -156,7 +156,7 @@ public interface InterconnectAttachmentOrBuilder * * *
-   * Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space.
+   * Input only. Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space.
    * 
* * repeated string candidate_subnets = 237842938; @@ -168,7 +168,7 @@ public interface InterconnectAttachmentOrBuilder * * *
-   * Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space.
+   * Input only. Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space.
    * 
* * repeated string candidate_subnets = 237842938; @@ -181,7 +181,7 @@ public interface InterconnectAttachmentOrBuilder * * *
-   * Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space.
+   * Input only. Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space.
    * 
* * repeated string candidate_subnets = 237842938; @@ -559,7 +559,7 @@ public interface InterconnectAttachmentOrBuilder * * *
-   * Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY.
+   * Input only. Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY.
    * Check the EdgeAvailabilityDomain enum for the list of possible values.
    * 
* @@ -572,7 +572,7 @@ public interface InterconnectAttachmentOrBuilder * * *
-   * Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY.
+   * Input only. Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY.
    * Check the EdgeAvailabilityDomain enum for the list of possible values.
    * 
* @@ -585,7 +585,7 @@ public interface InterconnectAttachmentOrBuilder * * *
-   * Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY.
+   * Input only. Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY.
    * Check the EdgeAvailabilityDomain enum for the list of possible values.
    * 
* @@ -1422,7 +1422,7 @@ java.lang.String getLabelsOrDefault( * * *
-   * Length of the IPv4 subnet mask. Allowed values: - 29 (default) - 30 The default value is 29, except for Cross-Cloud Interconnect connections that use an InterconnectRemoteLocation with a constraints.subnetLengthRange.min equal to 30. For example, connections that use an Azure remote location fall into this category. In these cases, the default value is 30, and requesting 29 returns an error. Where both 29 and 30 are allowed, 29 is preferred, because it gives Google Cloud Support more debugging visibility.
+   * Input only. Length of the IPv4 subnet mask. Allowed values: - 29 (default) - 30 The default value is 29, except for Cross-Cloud Interconnect connections that use an InterconnectRemoteLocation with a constraints.subnetLengthRange.min equal to 30. For example, connections that use an Azure remote location fall into this category. In these cases, the default value is 30, and requesting 29 returns an error. Where both 29 and 30 are allowed, 29 is preferred, because it gives Google Cloud Support more debugging visibility.
    * 
* * optional int32 subnet_length = 279831048; @@ -1434,7 +1434,7 @@ java.lang.String getLabelsOrDefault( * * *
-   * Length of the IPv4 subnet mask. Allowed values: - 29 (default) - 30 The default value is 29, except for Cross-Cloud Interconnect connections that use an InterconnectRemoteLocation with a constraints.subnetLengthRange.min equal to 30. For example, connections that use an Azure remote location fall into this category. In these cases, the default value is 30, and requesting 29 returns an error. Where both 29 and 30 are allowed, 29 is preferred, because it gives Google Cloud Support more debugging visibility.
+   * Input only. Length of the IPv4 subnet mask. Allowed values: - 29 (default) - 30 The default value is 29, except for Cross-Cloud Interconnect connections that use an InterconnectRemoteLocation with a constraints.subnetLengthRange.min equal to 30. For example, connections that use an Azure remote location fall into this category. In these cases, the default value is 30, and requesting 29 returns an error. Where both 29 and 30 are allowed, 29 is preferred, because it gives Google Cloud Support more debugging visibility.
    * 
* * optional int32 subnet_length = 279831048; diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkEndpoint.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkEndpoint.java index 677ddb808af1..e4a54f4f48d7 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkEndpoint.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkEndpoint.java @@ -110,7 +110,7 @@ public int getAnnotationsCount() { * * *
-   * Metadata defined as annotations on the network endpoint.
+   * Optional metadata defined as annotations on the network endpoint.
    * 
* * map<string, string> annotations = 112032548; @@ -132,7 +132,7 @@ public java.util.Map getAnnotations() { * * *
-   * Metadata defined as annotations on the network endpoint.
+   * Optional metadata defined as annotations on the network endpoint.
    * 
* * map<string, string> annotations = 112032548; @@ -145,7 +145,7 @@ public java.util.Map getAnnotationsMap() { * * *
-   * Metadata defined as annotations on the network endpoint.
+   * Optional metadata defined as annotations on the network endpoint.
    * 
* * map<string, string> annotations = 112032548; @@ -165,7 +165,7 @@ public java.util.Map getAnnotationsMap() { * * *
-   * Metadata defined as annotations on the network endpoint.
+   * Optional metadata defined as annotations on the network endpoint.
    * 
* * map<string, string> annotations = 112032548; @@ -188,7 +188,7 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) { * * *
-   * Represents the port number to which PSC consumer sends packets. Only valid for network endpoint groups created with GCE_VM_IP_PORTMAP endpoint type.
+   * Represents the port number to which PSC consumer sends packets. Optional. Only valid for network endpoint groups created with GCE_VM_IP_PORTMAP endpoint type.
    * 
* * optional int32 client_destination_port = 123765766; @@ -203,7 +203,7 @@ public boolean hasClientDestinationPort() { * * *
-   * Represents the port number to which PSC consumer sends packets. Only valid for network endpoint groups created with GCE_VM_IP_PORTMAP endpoint type.
+   * Represents the port number to which PSC consumer sends packets. Optional. Only valid for network endpoint groups created with GCE_VM_IP_PORTMAP endpoint type.
    * 
* * optional int32 client_destination_port = 123765766; @@ -289,7 +289,7 @@ public com.google.protobuf.ByteString getFqdnBytes() { * * *
-   * The name or a URL of VM instance of this network endpoint. This field is required for network endpoints of type GCE_VM_IP and GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group (for zonal NEGs) or in the zone within the region of the NEG (for regional NEGs). If the ipAddress is specified, it must belongs to the VM instance. The name must be 1-63 characters long, and comply with RFC1035 or be a valid URL pointing to an existing instance.
+   * The name or a URL of VM instance of this network endpoint. Optional, the field presence depends on the network endpoint type. The field is required for network endpoints of type GCE_VM_IP and GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group (for zonal NEGs) or in the zone within the region of the NEG (for regional NEGs). If the ipAddress is specified, it must belongs to the VM instance. The name must be 1-63 characters long, and comply with RFC1035 or be a valid URL pointing to an existing instance.
    * 
* * optional string instance = 18257045; @@ -304,7 +304,7 @@ public boolean hasInstance() { * * *
-   * The name or a URL of VM instance of this network endpoint. This field is required for network endpoints of type GCE_VM_IP and GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group (for zonal NEGs) or in the zone within the region of the NEG (for regional NEGs). If the ipAddress is specified, it must belongs to the VM instance. The name must be 1-63 characters long, and comply with RFC1035 or be a valid URL pointing to an existing instance.
+   * The name or a URL of VM instance of this network endpoint. Optional, the field presence depends on the network endpoint type. The field is required for network endpoints of type GCE_VM_IP and GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group (for zonal NEGs) or in the zone within the region of the NEG (for regional NEGs). If the ipAddress is specified, it must belongs to the VM instance. The name must be 1-63 characters long, and comply with RFC1035 or be a valid URL pointing to an existing instance.
    * 
* * optional string instance = 18257045; @@ -327,7 +327,7 @@ public java.lang.String getInstance() { * * *
-   * The name or a URL of VM instance of this network endpoint. This field is required for network endpoints of type GCE_VM_IP and GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group (for zonal NEGs) or in the zone within the region of the NEG (for regional NEGs). If the ipAddress is specified, it must belongs to the VM instance. The name must be 1-63 characters long, and comply with RFC1035 or be a valid URL pointing to an existing instance.
+   * The name or a URL of VM instance of this network endpoint. Optional, the field presence depends on the network endpoint type. The field is required for network endpoints of type GCE_VM_IP and GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group (for zonal NEGs) or in the zone within the region of the NEG (for regional NEGs). If the ipAddress is specified, it must belongs to the VM instance. The name must be 1-63 characters long, and comply with RFC1035 or be a valid URL pointing to an existing instance.
    * 
* * optional string instance = 18257045; @@ -1098,7 +1098,7 @@ public int getAnnotationsCount() { * * *
-     * Metadata defined as annotations on the network endpoint.
+     * Optional metadata defined as annotations on the network endpoint.
      * 
* * map<string, string> annotations = 112032548; @@ -1120,7 +1120,7 @@ public java.util.Map getAnnotations() { * * *
-     * Metadata defined as annotations on the network endpoint.
+     * Optional metadata defined as annotations on the network endpoint.
      * 
* * map<string, string> annotations = 112032548; @@ -1133,7 +1133,7 @@ public java.util.Map getAnnotationsMap() { * * *
-     * Metadata defined as annotations on the network endpoint.
+     * Optional metadata defined as annotations on the network endpoint.
      * 
* * map<string, string> annotations = 112032548; @@ -1153,7 +1153,7 @@ public java.util.Map getAnnotationsMap() { * * *
-     * Metadata defined as annotations on the network endpoint.
+     * Optional metadata defined as annotations on the network endpoint.
      * 
* * map<string, string> annotations = 112032548; @@ -1179,7 +1179,7 @@ public Builder clearAnnotations() { * * *
-     * Metadata defined as annotations on the network endpoint.
+     * Optional metadata defined as annotations on the network endpoint.
      * 
* * map<string, string> annotations = 112032548; @@ -1201,7 +1201,7 @@ public java.util.Map getMutableAnnotations() * * *
-     * Metadata defined as annotations on the network endpoint.
+     * Optional metadata defined as annotations on the network endpoint.
      * 
* * map<string, string> annotations = 112032548; @@ -1221,7 +1221,7 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) { * * *
-     * Metadata defined as annotations on the network endpoint.
+     * Optional metadata defined as annotations on the network endpoint.
      * 
* * map<string, string> annotations = 112032548; @@ -1237,7 +1237,7 @@ public Builder putAllAnnotations(java.util.Map - * Represents the port number to which PSC consumer sends packets. Only valid for network endpoint groups created with GCE_VM_IP_PORTMAP endpoint type. + * Represents the port number to which PSC consumer sends packets. Optional. Only valid for network endpoint groups created with GCE_VM_IP_PORTMAP endpoint type. *
* * optional int32 client_destination_port = 123765766; @@ -1252,7 +1252,7 @@ public boolean hasClientDestinationPort() { * * *
-     * Represents the port number to which PSC consumer sends packets. Only valid for network endpoint groups created with GCE_VM_IP_PORTMAP endpoint type.
+     * Represents the port number to which PSC consumer sends packets. Optional. Only valid for network endpoint groups created with GCE_VM_IP_PORTMAP endpoint type.
      * 
* * optional int32 client_destination_port = 123765766; @@ -1267,7 +1267,7 @@ public int getClientDestinationPort() { * * *
-     * Represents the port number to which PSC consumer sends packets. Only valid for network endpoint groups created with GCE_VM_IP_PORTMAP endpoint type.
+     * Represents the port number to which PSC consumer sends packets. Optional. Only valid for network endpoint groups created with GCE_VM_IP_PORTMAP endpoint type.
      * 
* * optional int32 client_destination_port = 123765766; @@ -1286,7 +1286,7 @@ public Builder setClientDestinationPort(int value) { * * *
-     * Represents the port number to which PSC consumer sends packets. Only valid for network endpoint groups created with GCE_VM_IP_PORTMAP endpoint type.
+     * Represents the port number to which PSC consumer sends packets. Optional. Only valid for network endpoint groups created with GCE_VM_IP_PORTMAP endpoint type.
      * 
* * optional int32 client_destination_port = 123765766; @@ -1425,7 +1425,7 @@ public Builder setFqdnBytes(com.google.protobuf.ByteString value) { * * *
-     * The name or a URL of VM instance of this network endpoint. This field is required for network endpoints of type GCE_VM_IP and GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group (for zonal NEGs) or in the zone within the region of the NEG (for regional NEGs). If the ipAddress is specified, it must belongs to the VM instance. The name must be 1-63 characters long, and comply with RFC1035 or be a valid URL pointing to an existing instance.
+     * The name or a URL of VM instance of this network endpoint. Optional, the field presence depends on the network endpoint type. The field is required for network endpoints of type GCE_VM_IP and GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group (for zonal NEGs) or in the zone within the region of the NEG (for regional NEGs). If the ipAddress is specified, it must belongs to the VM instance. The name must be 1-63 characters long, and comply with RFC1035 or be a valid URL pointing to an existing instance.
      * 
* * optional string instance = 18257045; @@ -1439,7 +1439,7 @@ public boolean hasInstance() { * * *
-     * The name or a URL of VM instance of this network endpoint. This field is required for network endpoints of type GCE_VM_IP and GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group (for zonal NEGs) or in the zone within the region of the NEG (for regional NEGs). If the ipAddress is specified, it must belongs to the VM instance. The name must be 1-63 characters long, and comply with RFC1035 or be a valid URL pointing to an existing instance.
+     * The name or a URL of VM instance of this network endpoint. Optional, the field presence depends on the network endpoint type. The field is required for network endpoints of type GCE_VM_IP and GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group (for zonal NEGs) or in the zone within the region of the NEG (for regional NEGs). If the ipAddress is specified, it must belongs to the VM instance. The name must be 1-63 characters long, and comply with RFC1035 or be a valid URL pointing to an existing instance.
      * 
* * optional string instance = 18257045; @@ -1461,7 +1461,7 @@ public java.lang.String getInstance() { * * *
-     * The name or a URL of VM instance of this network endpoint. This field is required for network endpoints of type GCE_VM_IP and GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group (for zonal NEGs) or in the zone within the region of the NEG (for regional NEGs). If the ipAddress is specified, it must belongs to the VM instance. The name must be 1-63 characters long, and comply with RFC1035 or be a valid URL pointing to an existing instance.
+     * The name or a URL of VM instance of this network endpoint. Optional, the field presence depends on the network endpoint type. The field is required for network endpoints of type GCE_VM_IP and GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group (for zonal NEGs) or in the zone within the region of the NEG (for regional NEGs). If the ipAddress is specified, it must belongs to the VM instance. The name must be 1-63 characters long, and comply with RFC1035 or be a valid URL pointing to an existing instance.
      * 
* * optional string instance = 18257045; @@ -1483,7 +1483,7 @@ public com.google.protobuf.ByteString getInstanceBytes() { * * *
-     * The name or a URL of VM instance of this network endpoint. This field is required for network endpoints of type GCE_VM_IP and GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group (for zonal NEGs) or in the zone within the region of the NEG (for regional NEGs). If the ipAddress is specified, it must belongs to the VM instance. The name must be 1-63 characters long, and comply with RFC1035 or be a valid URL pointing to an existing instance.
+     * The name or a URL of VM instance of this network endpoint. Optional, the field presence depends on the network endpoint type. The field is required for network endpoints of type GCE_VM_IP and GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group (for zonal NEGs) or in the zone within the region of the NEG (for regional NEGs). If the ipAddress is specified, it must belongs to the VM instance. The name must be 1-63 characters long, and comply with RFC1035 or be a valid URL pointing to an existing instance.
      * 
* * optional string instance = 18257045; @@ -1504,7 +1504,7 @@ public Builder setInstance(java.lang.String value) { * * *
-     * The name or a URL of VM instance of this network endpoint. This field is required for network endpoints of type GCE_VM_IP and GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group (for zonal NEGs) or in the zone within the region of the NEG (for regional NEGs). If the ipAddress is specified, it must belongs to the VM instance. The name must be 1-63 characters long, and comply with RFC1035 or be a valid URL pointing to an existing instance.
+     * The name or a URL of VM instance of this network endpoint. Optional, the field presence depends on the network endpoint type. The field is required for network endpoints of type GCE_VM_IP and GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group (for zonal NEGs) or in the zone within the region of the NEG (for regional NEGs). If the ipAddress is specified, it must belongs to the VM instance. The name must be 1-63 characters long, and comply with RFC1035 or be a valid URL pointing to an existing instance.
      * 
* * optional string instance = 18257045; @@ -1521,7 +1521,7 @@ public Builder clearInstance() { * * *
-     * The name or a URL of VM instance of this network endpoint. This field is required for network endpoints of type GCE_VM_IP and GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group (for zonal NEGs) or in the zone within the region of the NEG (for regional NEGs). If the ipAddress is specified, it must belongs to the VM instance. The name must be 1-63 characters long, and comply with RFC1035 or be a valid URL pointing to an existing instance.
+     * The name or a URL of VM instance of this network endpoint. Optional, the field presence depends on the network endpoint type. The field is required for network endpoints of type GCE_VM_IP and GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group (for zonal NEGs) or in the zone within the region of the NEG (for regional NEGs). If the ipAddress is specified, it must belongs to the VM instance. The name must be 1-63 characters long, and comply with RFC1035 or be a valid URL pointing to an existing instance.
      * 
* * optional string instance = 18257045; diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkEndpointGroup.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkEndpointGroup.java index b13918aec4fe..9c1bae27331c 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkEndpointGroup.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkEndpointGroup.java @@ -409,7 +409,7 @@ public int getAnnotationsCount() { * * *
-   * Metadata defined as annotations on the network endpoint group.
+   * Optional. Metadata defined as annotations on the network endpoint group.
    * 
* * map<string, string> annotations = 112032548; @@ -431,7 +431,7 @@ public java.util.Map getAnnotations() { * * *
-   * Metadata defined as annotations on the network endpoint group.
+   * Optional. Metadata defined as annotations on the network endpoint group.
    * 
* * map<string, string> annotations = 112032548; @@ -444,7 +444,7 @@ public java.util.Map getAnnotationsMap() { * * *
-   * Metadata defined as annotations on the network endpoint group.
+   * Optional. Metadata defined as annotations on the network endpoint group.
    * 
* * map<string, string> annotations = 112032548; @@ -464,7 +464,7 @@ public java.util.Map getAnnotationsMap() { * * *
-   * Metadata defined as annotations on the network endpoint group.
+   * Optional. Metadata defined as annotations on the network endpoint group.
    * 
* * map<string, string> annotations = 112032548; @@ -487,7 +487,7 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) { * * *
-   * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+   * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
    * 
* * optional .google.cloud.compute.v1.NetworkEndpointGroupAppEngine app_engine = 340788768; @@ -503,7 +503,7 @@ public boolean hasAppEngine() { * * *
-   * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+   * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
    * 
* * optional .google.cloud.compute.v1.NetworkEndpointGroupAppEngine app_engine = 340788768; @@ -521,7 +521,7 @@ public com.google.cloud.compute.v1.NetworkEndpointGroupAppEngine getAppEngine() * * *
-   * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+   * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
    * 
* * optional .google.cloud.compute.v1.NetworkEndpointGroupAppEngine app_engine = 340788768; @@ -541,7 +541,7 @@ public com.google.cloud.compute.v1.NetworkEndpointGroupAppEngine getAppEngine() * * *
-   * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+   * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
    * 
* * @@ -558,7 +558,7 @@ public boolean hasCloudFunction() { * * *
-   * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+   * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
    * 
* * @@ -577,7 +577,7 @@ public com.google.cloud.compute.v1.NetworkEndpointGroupCloudFunction getCloudFun * * *
-   * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+   * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
    * 
* * @@ -598,7 +598,7 @@ public com.google.cloud.compute.v1.NetworkEndpointGroupCloudFunction getCloudFun * * *
-   * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+   * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
    * 
* * optional .google.cloud.compute.v1.NetworkEndpointGroupCloudRun cloud_run = 111060353; @@ -614,7 +614,7 @@ public boolean hasCloudRun() { * * *
-   * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+   * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
    * 
* * optional .google.cloud.compute.v1.NetworkEndpointGroupCloudRun cloud_run = 111060353; @@ -632,7 +632,7 @@ public com.google.cloud.compute.v1.NetworkEndpointGroupCloudRun getCloudRun() { * * *
-   * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+   * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
    * 
* * optional .google.cloud.compute.v1.NetworkEndpointGroupCloudRun cloud_run = 111060353; @@ -717,7 +717,7 @@ public com.google.protobuf.ByteString getCreationTimestampBytes() { * * *
-   * The default port used if the port number is not specified in the network endpoint. If the network endpoint type is either GCE_VM_IP, SERVERLESS or PRIVATE_SERVICE_CONNECT, this field must not be specified.
+   * The default port used if the port number is not specified in the network endpoint. Optional. If the network endpoint type is either GCE_VM_IP, SERVERLESS or PRIVATE_SERVICE_CONNECT, this field must not be specified.
    * 
* * optional int32 default_port = 423377855; @@ -732,7 +732,7 @@ public boolean hasDefaultPort() { * * *
-   * The default port used if the port number is not specified in the network endpoint. If the network endpoint type is either GCE_VM_IP, SERVERLESS or PRIVATE_SERVICE_CONNECT, this field must not be specified.
+   * The default port used if the port number is not specified in the network endpoint. Optional. If the network endpoint type is either GCE_VM_IP, SERVERLESS or PRIVATE_SERVICE_CONNECT, this field must not be specified.
    * 
* * optional int32 default_port = 423377855; @@ -1113,6 +1113,12 @@ public com.google.protobuf.ByteString getNetworkEndpointTypeBytes() { public static final int PSC_DATA_FIELD_NUMBER = 71937481; private com.google.cloud.compute.v1.NetworkEndpointGroupPscData pscData_; /** + * + * + *
+   * Optional. Only valid when networkEndpointType is PRIVATE_SERVICE_CONNECT.
+   * 
+ * * optional .google.cloud.compute.v1.NetworkEndpointGroupPscData psc_data = 71937481; * * @return Whether the pscData field is set. @@ -1122,6 +1128,12 @@ public boolean hasPscData() { return ((bitField0_ & 0x00000800) != 0); } /** + * + * + *
+   * Optional. Only valid when networkEndpointType is PRIVATE_SERVICE_CONNECT.
+   * 
+ * * optional .google.cloud.compute.v1.NetworkEndpointGroupPscData psc_data = 71937481; * * @return The pscData. @@ -1133,6 +1145,12 @@ public com.google.cloud.compute.v1.NetworkEndpointGroupPscData getPscData() { : pscData_; } /** + * + * + *
+   * Optional. Only valid when networkEndpointType is PRIVATE_SERVICE_CONNECT.
+   * 
+ * * optional .google.cloud.compute.v1.NetworkEndpointGroupPscData psc_data = 71937481; */ @java.lang.Override @@ -1150,7 +1168,7 @@ public com.google.cloud.compute.v1.NetworkEndpointGroupPscDataOrBuilder getPscDa * * *
-   * The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment. An example value is: asia-northeast3-cloudkms.googleapis.com
+   * The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment. An example value is: asia-northeast3-cloudkms.googleapis.com. Optional. Only valid when networkEndpointType is PRIVATE_SERVICE_CONNECT.
    * 
* * optional string psc_target_service = 269132134; @@ -1165,7 +1183,7 @@ public boolean hasPscTargetService() { * * *
-   * The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment. An example value is: asia-northeast3-cloudkms.googleapis.com
+   * The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment. An example value is: asia-northeast3-cloudkms.googleapis.com. Optional. Only valid when networkEndpointType is PRIVATE_SERVICE_CONNECT.
    * 
* * optional string psc_target_service = 269132134; @@ -1188,7 +1206,7 @@ public java.lang.String getPscTargetService() { * * *
-   * The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment. An example value is: asia-northeast3-cloudkms.googleapis.com
+   * The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment. An example value is: asia-northeast3-cloudkms.googleapis.com. Optional. Only valid when networkEndpointType is PRIVATE_SERVICE_CONNECT.
    * 
* * optional string psc_target_service = 269132134; @@ -2474,7 +2492,7 @@ public int getAnnotationsCount() { * * *
-     * Metadata defined as annotations on the network endpoint group.
+     * Optional. Metadata defined as annotations on the network endpoint group.
      * 
* * map<string, string> annotations = 112032548; @@ -2496,7 +2514,7 @@ public java.util.Map getAnnotations() { * * *
-     * Metadata defined as annotations on the network endpoint group.
+     * Optional. Metadata defined as annotations on the network endpoint group.
      * 
* * map<string, string> annotations = 112032548; @@ -2509,7 +2527,7 @@ public java.util.Map getAnnotationsMap() { * * *
-     * Metadata defined as annotations on the network endpoint group.
+     * Optional. Metadata defined as annotations on the network endpoint group.
      * 
* * map<string, string> annotations = 112032548; @@ -2529,7 +2547,7 @@ public java.util.Map getAnnotationsMap() { * * *
-     * Metadata defined as annotations on the network endpoint group.
+     * Optional. Metadata defined as annotations on the network endpoint group.
      * 
* * map<string, string> annotations = 112032548; @@ -2555,7 +2573,7 @@ public Builder clearAnnotations() { * * *
-     * Metadata defined as annotations on the network endpoint group.
+     * Optional. Metadata defined as annotations on the network endpoint group.
      * 
* * map<string, string> annotations = 112032548; @@ -2577,7 +2595,7 @@ public java.util.Map getMutableAnnotations() * * *
-     * Metadata defined as annotations on the network endpoint group.
+     * Optional. Metadata defined as annotations on the network endpoint group.
      * 
* * map<string, string> annotations = 112032548; @@ -2597,7 +2615,7 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) { * * *
-     * Metadata defined as annotations on the network endpoint group.
+     * Optional. Metadata defined as annotations on the network endpoint group.
      * 
* * map<string, string> annotations = 112032548; @@ -2618,7 +2636,7 @@ public Builder putAllAnnotations(java.util.Map - * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set. + * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set. *
* * optional .google.cloud.compute.v1.NetworkEndpointGroupAppEngine app_engine = 340788768; @@ -2633,7 +2651,7 @@ public boolean hasAppEngine() { * * *
-     * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+     * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
      * 
* * optional .google.cloud.compute.v1.NetworkEndpointGroupAppEngine app_engine = 340788768; @@ -2654,7 +2672,7 @@ public com.google.cloud.compute.v1.NetworkEndpointGroupAppEngine getAppEngine() * * *
-     * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+     * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
      * 
* * optional .google.cloud.compute.v1.NetworkEndpointGroupAppEngine app_engine = 340788768; @@ -2677,7 +2695,7 @@ public Builder setAppEngine(com.google.cloud.compute.v1.NetworkEndpointGroupAppE * * *
-     * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+     * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
      * 
* * optional .google.cloud.compute.v1.NetworkEndpointGroupAppEngine app_engine = 340788768; @@ -2698,7 +2716,7 @@ public Builder setAppEngine( * * *
-     * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+     * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
      * 
* * optional .google.cloud.compute.v1.NetworkEndpointGroupAppEngine app_engine = 340788768; @@ -2727,7 +2745,7 @@ public Builder mergeAppEngine(com.google.cloud.compute.v1.NetworkEndpointGroupAp * * *
-     * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+     * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
      * 
* * optional .google.cloud.compute.v1.NetworkEndpointGroupAppEngine app_engine = 340788768; @@ -2747,7 +2765,7 @@ public Builder clearAppEngine() { * * *
-     * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+     * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
      * 
* * optional .google.cloud.compute.v1.NetworkEndpointGroupAppEngine app_engine = 340788768; @@ -2762,7 +2780,7 @@ public com.google.cloud.compute.v1.NetworkEndpointGroupAppEngine.Builder getAppE * * *
-     * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+     * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
      * 
* * optional .google.cloud.compute.v1.NetworkEndpointGroupAppEngine app_engine = 340788768; @@ -2782,7 +2800,7 @@ public com.google.cloud.compute.v1.NetworkEndpointGroupAppEngine.Builder getAppE * * *
-     * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+     * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
      * 
* * optional .google.cloud.compute.v1.NetworkEndpointGroupAppEngine app_engine = 340788768; @@ -2815,7 +2833,7 @@ public com.google.cloud.compute.v1.NetworkEndpointGroupAppEngine.Builder getAppE * * *
-     * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+     * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
      * 
* * @@ -2831,7 +2849,7 @@ public boolean hasCloudFunction() { * * *
-     * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+     * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
      * 
* * @@ -2853,7 +2871,7 @@ public com.google.cloud.compute.v1.NetworkEndpointGroupCloudFunction getCloudFun * * *
-     * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+     * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
      * 
* * @@ -2878,7 +2896,7 @@ public Builder setCloudFunction( * * *
-     * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+     * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
      * 
* * @@ -2900,7 +2918,7 @@ public Builder setCloudFunction( * * *
-     * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+     * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
      * 
* * @@ -2932,7 +2950,7 @@ public Builder mergeCloudFunction( * * *
-     * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+     * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
      * 
* * @@ -2953,7 +2971,7 @@ public Builder clearCloudFunction() { * * *
-     * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+     * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
      * 
* * @@ -2970,7 +2988,7 @@ public Builder clearCloudFunction() { * * *
-     * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+     * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
      * 
* * @@ -2991,7 +3009,7 @@ public Builder clearCloudFunction() { * * *
-     * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+     * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
      * 
* * @@ -3025,7 +3043,7 @@ public Builder clearCloudFunction() { * * *
-     * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+     * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
      * 
* * optional .google.cloud.compute.v1.NetworkEndpointGroupCloudRun cloud_run = 111060353; @@ -3040,7 +3058,7 @@ public boolean hasCloudRun() { * * *
-     * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+     * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
      * 
* * optional .google.cloud.compute.v1.NetworkEndpointGroupCloudRun cloud_run = 111060353; @@ -3061,7 +3079,7 @@ public com.google.cloud.compute.v1.NetworkEndpointGroupCloudRun getCloudRun() { * * *
-     * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+     * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
      * 
* * optional .google.cloud.compute.v1.NetworkEndpointGroupCloudRun cloud_run = 111060353; @@ -3084,7 +3102,7 @@ public Builder setCloudRun(com.google.cloud.compute.v1.NetworkEndpointGroupCloud * * *
-     * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+     * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
      * 
* * optional .google.cloud.compute.v1.NetworkEndpointGroupCloudRun cloud_run = 111060353; @@ -3105,7 +3123,7 @@ public Builder setCloudRun( * * *
-     * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+     * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
      * 
* * optional .google.cloud.compute.v1.NetworkEndpointGroupCloudRun cloud_run = 111060353; @@ -3134,7 +3152,7 @@ public Builder mergeCloudRun(com.google.cloud.compute.v1.NetworkEndpointGroupClo * * *
-     * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+     * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
      * 
* * optional .google.cloud.compute.v1.NetworkEndpointGroupCloudRun cloud_run = 111060353; @@ -3154,7 +3172,7 @@ public Builder clearCloudRun() { * * *
-     * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+     * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
      * 
* * optional .google.cloud.compute.v1.NetworkEndpointGroupCloudRun cloud_run = 111060353; @@ -3169,7 +3187,7 @@ public com.google.cloud.compute.v1.NetworkEndpointGroupCloudRun.Builder getCloud * * *
-     * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+     * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
      * 
* * optional .google.cloud.compute.v1.NetworkEndpointGroupCloudRun cloud_run = 111060353; @@ -3189,7 +3207,7 @@ public com.google.cloud.compute.v1.NetworkEndpointGroupCloudRun.Builder getCloud * * *
-     * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+     * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
      * 
* * optional .google.cloud.compute.v1.NetworkEndpointGroupCloudRun cloud_run = 111060353; @@ -3337,7 +3355,7 @@ public Builder setCreationTimestampBytes(com.google.protobuf.ByteString value) { * * *
-     * The default port used if the port number is not specified in the network endpoint. If the network endpoint type is either GCE_VM_IP, SERVERLESS or PRIVATE_SERVICE_CONNECT, this field must not be specified.
+     * The default port used if the port number is not specified in the network endpoint. Optional. If the network endpoint type is either GCE_VM_IP, SERVERLESS or PRIVATE_SERVICE_CONNECT, this field must not be specified.
      * 
* * optional int32 default_port = 423377855; @@ -3352,7 +3370,7 @@ public boolean hasDefaultPort() { * * *
-     * The default port used if the port number is not specified in the network endpoint. If the network endpoint type is either GCE_VM_IP, SERVERLESS or PRIVATE_SERVICE_CONNECT, this field must not be specified.
+     * The default port used if the port number is not specified in the network endpoint. Optional. If the network endpoint type is either GCE_VM_IP, SERVERLESS or PRIVATE_SERVICE_CONNECT, this field must not be specified.
      * 
* * optional int32 default_port = 423377855; @@ -3367,7 +3385,7 @@ public int getDefaultPort() { * * *
-     * The default port used if the port number is not specified in the network endpoint. If the network endpoint type is either GCE_VM_IP, SERVERLESS or PRIVATE_SERVICE_CONNECT, this field must not be specified.
+     * The default port used if the port number is not specified in the network endpoint. Optional. If the network endpoint type is either GCE_VM_IP, SERVERLESS or PRIVATE_SERVICE_CONNECT, this field must not be specified.
      * 
* * optional int32 default_port = 423377855; @@ -3386,7 +3404,7 @@ public Builder setDefaultPort(int value) { * * *
-     * The default port used if the port number is not specified in the network endpoint. If the network endpoint type is either GCE_VM_IP, SERVERLESS or PRIVATE_SERVICE_CONNECT, this field must not be specified.
+     * The default port used if the port number is not specified in the network endpoint. Optional. If the network endpoint type is either GCE_VM_IP, SERVERLESS or PRIVATE_SERVICE_CONNECT, this field must not be specified.
      * 
* * optional int32 default_port = 423377855; @@ -4081,6 +4099,12 @@ public Builder setNetworkEndpointTypeBytes(com.google.protobuf.ByteString value) com.google.cloud.compute.v1.NetworkEndpointGroupPscDataOrBuilder> pscDataBuilder_; /** + * + * + *
+     * Optional. Only valid when networkEndpointType is PRIVATE_SERVICE_CONNECT.
+     * 
+ * * optional .google.cloud.compute.v1.NetworkEndpointGroupPscData psc_data = 71937481; * * @@ -4090,6 +4114,12 @@ public boolean hasPscData() { return ((bitField0_ & 0x00001000) != 0); } /** + * + * + *
+     * Optional. Only valid when networkEndpointType is PRIVATE_SERVICE_CONNECT.
+     * 
+ * * optional .google.cloud.compute.v1.NetworkEndpointGroupPscData psc_data = 71937481; * * @@ -4105,6 +4135,12 @@ public com.google.cloud.compute.v1.NetworkEndpointGroupPscData getPscData() { } } /** + * + * + *
+     * Optional. Only valid when networkEndpointType is PRIVATE_SERVICE_CONNECT.
+     * 
+ * * optional .google.cloud.compute.v1.NetworkEndpointGroupPscData psc_data = 71937481; * */ @@ -4122,6 +4158,12 @@ public Builder setPscData(com.google.cloud.compute.v1.NetworkEndpointGroupPscDat return this; } /** + * + * + *
+     * Optional. Only valid when networkEndpointType is PRIVATE_SERVICE_CONNECT.
+     * 
+ * * optional .google.cloud.compute.v1.NetworkEndpointGroupPscData psc_data = 71937481; * */ @@ -4137,6 +4179,12 @@ public Builder setPscData( return this; } /** + * + * + *
+     * Optional. Only valid when networkEndpointType is PRIVATE_SERVICE_CONNECT.
+     * 
+ * * optional .google.cloud.compute.v1.NetworkEndpointGroupPscData psc_data = 71937481; * */ @@ -4160,6 +4208,12 @@ public Builder mergePscData(com.google.cloud.compute.v1.NetworkEndpointGroupPscD return this; } /** + * + * + *
+     * Optional. Only valid when networkEndpointType is PRIVATE_SERVICE_CONNECT.
+     * 
+ * * optional .google.cloud.compute.v1.NetworkEndpointGroupPscData psc_data = 71937481; * */ @@ -4174,6 +4228,12 @@ public Builder clearPscData() { return this; } /** + * + * + *
+     * Optional. Only valid when networkEndpointType is PRIVATE_SERVICE_CONNECT.
+     * 
+ * * optional .google.cloud.compute.v1.NetworkEndpointGroupPscData psc_data = 71937481; * */ @@ -4183,6 +4243,12 @@ public com.google.cloud.compute.v1.NetworkEndpointGroupPscData.Builder getPscDat return getPscDataFieldBuilder().getBuilder(); } /** + * + * + *
+     * Optional. Only valid when networkEndpointType is PRIVATE_SERVICE_CONNECT.
+     * 
+ * * optional .google.cloud.compute.v1.NetworkEndpointGroupPscData psc_data = 71937481; * */ @@ -4196,6 +4262,12 @@ public com.google.cloud.compute.v1.NetworkEndpointGroupPscDataOrBuilder getPscDa } } /** + * + * + *
+     * Optional. Only valid when networkEndpointType is PRIVATE_SERVICE_CONNECT.
+     * 
+ * * optional .google.cloud.compute.v1.NetworkEndpointGroupPscData psc_data = 71937481; * */ @@ -4221,7 +4293,7 @@ public com.google.cloud.compute.v1.NetworkEndpointGroupPscDataOrBuilder getPscDa * * *
-     * The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment. An example value is: asia-northeast3-cloudkms.googleapis.com
+     * The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment. An example value is: asia-northeast3-cloudkms.googleapis.com. Optional. Only valid when networkEndpointType is PRIVATE_SERVICE_CONNECT.
      * 
* * optional string psc_target_service = 269132134; @@ -4235,7 +4307,7 @@ public boolean hasPscTargetService() { * * *
-     * The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment. An example value is: asia-northeast3-cloudkms.googleapis.com
+     * The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment. An example value is: asia-northeast3-cloudkms.googleapis.com. Optional. Only valid when networkEndpointType is PRIVATE_SERVICE_CONNECT.
      * 
* * optional string psc_target_service = 269132134; @@ -4257,7 +4329,7 @@ public java.lang.String getPscTargetService() { * * *
-     * The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment. An example value is: asia-northeast3-cloudkms.googleapis.com
+     * The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment. An example value is: asia-northeast3-cloudkms.googleapis.com. Optional. Only valid when networkEndpointType is PRIVATE_SERVICE_CONNECT.
      * 
* * optional string psc_target_service = 269132134; @@ -4279,7 +4351,7 @@ public com.google.protobuf.ByteString getPscTargetServiceBytes() { * * *
-     * The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment. An example value is: asia-northeast3-cloudkms.googleapis.com
+     * The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment. An example value is: asia-northeast3-cloudkms.googleapis.com. Optional. Only valid when networkEndpointType is PRIVATE_SERVICE_CONNECT.
      * 
* * optional string psc_target_service = 269132134; @@ -4300,7 +4372,7 @@ public Builder setPscTargetService(java.lang.String value) { * * *
-     * The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment. An example value is: asia-northeast3-cloudkms.googleapis.com
+     * The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment. An example value is: asia-northeast3-cloudkms.googleapis.com. Optional. Only valid when networkEndpointType is PRIVATE_SERVICE_CONNECT.
      * 
* * optional string psc_target_service = 269132134; @@ -4317,7 +4389,7 @@ public Builder clearPscTargetService() { * * *
-     * The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment. An example value is: asia-northeast3-cloudkms.googleapis.com
+     * The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment. An example value is: asia-northeast3-cloudkms.googleapis.com. Optional. Only valid when networkEndpointType is PRIVATE_SERVICE_CONNECT.
      * 
* * optional string psc_target_service = 269132134; diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkEndpointGroupOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkEndpointGroupOrBuilder.java index 960d19dba727..5eef245e7a14 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkEndpointGroupOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkEndpointGroupOrBuilder.java @@ -28,7 +28,7 @@ public interface NetworkEndpointGroupOrBuilder * * *
-   * Metadata defined as annotations on the network endpoint group.
+   * Optional. Metadata defined as annotations on the network endpoint group.
    * 
* * map<string, string> annotations = 112032548; @@ -38,7 +38,7 @@ public interface NetworkEndpointGroupOrBuilder * * *
-   * Metadata defined as annotations on the network endpoint group.
+   * Optional. Metadata defined as annotations on the network endpoint group.
    * 
* * map<string, string> annotations = 112032548; @@ -51,7 +51,7 @@ public interface NetworkEndpointGroupOrBuilder * * *
-   * Metadata defined as annotations on the network endpoint group.
+   * Optional. Metadata defined as annotations on the network endpoint group.
    * 
* * map<string, string> annotations = 112032548; @@ -61,7 +61,7 @@ public interface NetworkEndpointGroupOrBuilder * * *
-   * Metadata defined as annotations on the network endpoint group.
+   * Optional. Metadata defined as annotations on the network endpoint group.
    * 
* * map<string, string> annotations = 112032548; @@ -75,7 +75,7 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * Metadata defined as annotations on the network endpoint group.
+   * Optional. Metadata defined as annotations on the network endpoint group.
    * 
* * map<string, string> annotations = 112032548; @@ -86,7 +86,7 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+   * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
    * 
* * optional .google.cloud.compute.v1.NetworkEndpointGroupAppEngine app_engine = 340788768; @@ -99,7 +99,7 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+   * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
    * 
* * optional .google.cloud.compute.v1.NetworkEndpointGroupAppEngine app_engine = 340788768; @@ -112,7 +112,7 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+   * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
    * 
* * optional .google.cloud.compute.v1.NetworkEndpointGroupAppEngine app_engine = 340788768; @@ -124,7 +124,7 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+   * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
    * 
* * @@ -138,7 +138,7 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+   * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
    * 
* * @@ -152,7 +152,7 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+   * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
    * 
* * @@ -166,7 +166,7 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+   * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
    * 
* * optional .google.cloud.compute.v1.NetworkEndpointGroupCloudRun cloud_run = 111060353; @@ -179,7 +179,7 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+   * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
    * 
* * optional .google.cloud.compute.v1.NetworkEndpointGroupCloudRun cloud_run = 111060353; @@ -192,7 +192,7 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
+   * Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set.
    * 
* * optional .google.cloud.compute.v1.NetworkEndpointGroupCloudRun cloud_run = 111060353; @@ -241,7 +241,7 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * The default port used if the port number is not specified in the network endpoint. If the network endpoint type is either GCE_VM_IP, SERVERLESS or PRIVATE_SERVICE_CONNECT, this field must not be specified.
+   * The default port used if the port number is not specified in the network endpoint. Optional. If the network endpoint type is either GCE_VM_IP, SERVERLESS or PRIVATE_SERVICE_CONNECT, this field must not be specified.
    * 
* * optional int32 default_port = 423377855; @@ -253,7 +253,7 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * The default port used if the port number is not specified in the network endpoint. If the network endpoint type is either GCE_VM_IP, SERVERLESS or PRIVATE_SERVICE_CONNECT, this field must not be specified.
+   * The default port used if the port number is not specified in the network endpoint. Optional. If the network endpoint type is either GCE_VM_IP, SERVERLESS or PRIVATE_SERVICE_CONNECT, this field must not be specified.
    * 
* * optional int32 default_port = 423377855; @@ -476,18 +476,36 @@ java.lang.String getAnnotationsOrDefault( com.google.protobuf.ByteString getNetworkEndpointTypeBytes(); /** + * + * + *
+   * Optional. Only valid when networkEndpointType is PRIVATE_SERVICE_CONNECT.
+   * 
+ * * optional .google.cloud.compute.v1.NetworkEndpointGroupPscData psc_data = 71937481; * * @return Whether the pscData field is set. */ boolean hasPscData(); /** + * + * + *
+   * Optional. Only valid when networkEndpointType is PRIVATE_SERVICE_CONNECT.
+   * 
+ * * optional .google.cloud.compute.v1.NetworkEndpointGroupPscData psc_data = 71937481; * * @return The pscData. */ com.google.cloud.compute.v1.NetworkEndpointGroupPscData getPscData(); /** + * + * + *
+   * Optional. Only valid when networkEndpointType is PRIVATE_SERVICE_CONNECT.
+   * 
+ * * optional .google.cloud.compute.v1.NetworkEndpointGroupPscData psc_data = 71937481; */ com.google.cloud.compute.v1.NetworkEndpointGroupPscDataOrBuilder getPscDataOrBuilder(); @@ -496,7 +514,7 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment. An example value is: asia-northeast3-cloudkms.googleapis.com
+   * The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment. An example value is: asia-northeast3-cloudkms.googleapis.com. Optional. Only valid when networkEndpointType is PRIVATE_SERVICE_CONNECT.
    * 
* * optional string psc_target_service = 269132134; @@ -508,7 +526,7 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment. An example value is: asia-northeast3-cloudkms.googleapis.com
+   * The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment. An example value is: asia-northeast3-cloudkms.googleapis.com. Optional. Only valid when networkEndpointType is PRIVATE_SERVICE_CONNECT.
    * 
* * optional string psc_target_service = 269132134; @@ -520,7 +538,7 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment. An example value is: asia-northeast3-cloudkms.googleapis.com
+   * The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment. An example value is: asia-northeast3-cloudkms.googleapis.com. Optional. Only valid when networkEndpointType is PRIVATE_SERVICE_CONNECT.
    * 
* * optional string psc_target_service = 269132134; diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkEndpointOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkEndpointOrBuilder.java index e41d3e62715f..86c05dba8729 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkEndpointOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkEndpointOrBuilder.java @@ -28,7 +28,7 @@ public interface NetworkEndpointOrBuilder * * *
-   * Metadata defined as annotations on the network endpoint.
+   * Optional metadata defined as annotations on the network endpoint.
    * 
* * map<string, string> annotations = 112032548; @@ -38,7 +38,7 @@ public interface NetworkEndpointOrBuilder * * *
-   * Metadata defined as annotations on the network endpoint.
+   * Optional metadata defined as annotations on the network endpoint.
    * 
* * map<string, string> annotations = 112032548; @@ -51,7 +51,7 @@ public interface NetworkEndpointOrBuilder * * *
-   * Metadata defined as annotations on the network endpoint.
+   * Optional metadata defined as annotations on the network endpoint.
    * 
* * map<string, string> annotations = 112032548; @@ -61,7 +61,7 @@ public interface NetworkEndpointOrBuilder * * *
-   * Metadata defined as annotations on the network endpoint.
+   * Optional metadata defined as annotations on the network endpoint.
    * 
* * map<string, string> annotations = 112032548; @@ -75,7 +75,7 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * Metadata defined as annotations on the network endpoint.
+   * Optional metadata defined as annotations on the network endpoint.
    * 
* * map<string, string> annotations = 112032548; @@ -86,7 +86,7 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * Represents the port number to which PSC consumer sends packets. Only valid for network endpoint groups created with GCE_VM_IP_PORTMAP endpoint type.
+   * Represents the port number to which PSC consumer sends packets. Optional. Only valid for network endpoint groups created with GCE_VM_IP_PORTMAP endpoint type.
    * 
* * optional int32 client_destination_port = 123765766; @@ -98,7 +98,7 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * Represents the port number to which PSC consumer sends packets. Only valid for network endpoint groups created with GCE_VM_IP_PORTMAP endpoint type.
+   * Represents the port number to which PSC consumer sends packets. Optional. Only valid for network endpoint groups created with GCE_VM_IP_PORTMAP endpoint type.
    * 
* * optional int32 client_destination_port = 123765766; @@ -148,7 +148,7 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * The name or a URL of VM instance of this network endpoint. This field is required for network endpoints of type GCE_VM_IP and GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group (for zonal NEGs) or in the zone within the region of the NEG (for regional NEGs). If the ipAddress is specified, it must belongs to the VM instance. The name must be 1-63 characters long, and comply with RFC1035 or be a valid URL pointing to an existing instance.
+   * The name or a URL of VM instance of this network endpoint. Optional, the field presence depends on the network endpoint type. The field is required for network endpoints of type GCE_VM_IP and GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group (for zonal NEGs) or in the zone within the region of the NEG (for regional NEGs). If the ipAddress is specified, it must belongs to the VM instance. The name must be 1-63 characters long, and comply with RFC1035 or be a valid URL pointing to an existing instance.
    * 
* * optional string instance = 18257045; @@ -160,7 +160,7 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * The name or a URL of VM instance of this network endpoint. This field is required for network endpoints of type GCE_VM_IP and GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group (for zonal NEGs) or in the zone within the region of the NEG (for regional NEGs). If the ipAddress is specified, it must belongs to the VM instance. The name must be 1-63 characters long, and comply with RFC1035 or be a valid URL pointing to an existing instance.
+   * The name or a URL of VM instance of this network endpoint. Optional, the field presence depends on the network endpoint type. The field is required for network endpoints of type GCE_VM_IP and GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group (for zonal NEGs) or in the zone within the region of the NEG (for regional NEGs). If the ipAddress is specified, it must belongs to the VM instance. The name must be 1-63 characters long, and comply with RFC1035 or be a valid URL pointing to an existing instance.
    * 
* * optional string instance = 18257045; @@ -172,7 +172,7 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * The name or a URL of VM instance of this network endpoint. This field is required for network endpoints of type GCE_VM_IP and GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group (for zonal NEGs) or in the zone within the region of the NEG (for regional NEGs). If the ipAddress is specified, it must belongs to the VM instance. The name must be 1-63 characters long, and comply with RFC1035 or be a valid URL pointing to an existing instance.
+   * The name or a URL of VM instance of this network endpoint. Optional, the field presence depends on the network endpoint type. The field is required for network endpoints of type GCE_VM_IP and GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group (for zonal NEGs) or in the zone within the region of the NEG (for regional NEGs). If the ipAddress is specified, it must belongs to the VM instance. The name must be 1-63 characters long, and comply with RFC1035 or be a valid URL pointing to an existing instance.
    * 
* * optional string instance = 18257045; diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkEndpointWithHealthStatus.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkEndpointWithHealthStatus.java index 101061e9584d..f78b446daef0 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkEndpointWithHealthStatus.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkEndpointWithHealthStatus.java @@ -72,7 +72,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * [Output only] The health status of network endpoint;
+   * [Output only] The health status of network endpoint. Optional. Displayed only if the network endpoint has centralized health checking configured.
    * 
* * repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431; @@ -87,7 +87,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * [Output only] The health status of network endpoint;
+   * [Output only] The health status of network endpoint. Optional. Displayed only if the network endpoint has centralized health checking configured.
    * 
* * repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431; @@ -103,7 +103,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * [Output only] The health status of network endpoint;
+   * [Output only] The health status of network endpoint. Optional. Displayed only if the network endpoint has centralized health checking configured.
    * 
* * repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431; @@ -117,7 +117,7 @@ public int getHealthsCount() { * * *
-   * [Output only] The health status of network endpoint;
+   * [Output only] The health status of network endpoint. Optional. Displayed only if the network endpoint has centralized health checking configured.
    * 
* * repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431; @@ -131,7 +131,7 @@ public com.google.cloud.compute.v1.HealthStatusForNetworkEndpoint getHealths(int * * *
-   * [Output only] The health status of network endpoint;
+   * [Output only] The health status of network endpoint. Optional. Displayed only if the network endpoint has centralized health checking configured.
    * 
* * repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431; @@ -149,7 +149,7 @@ public com.google.cloud.compute.v1.HealthStatusForNetworkEndpointOrBuilder getHe * * *
-   * [Output only] The network endpoint;
+   * [Output only] The network endpoint.
    * 
* * optional .google.cloud.compute.v1.NetworkEndpoint network_endpoint = 56789126; @@ -164,7 +164,7 @@ public boolean hasNetworkEndpoint() { * * *
-   * [Output only] The network endpoint;
+   * [Output only] The network endpoint.
    * 
* * optional .google.cloud.compute.v1.NetworkEndpoint network_endpoint = 56789126; @@ -181,7 +181,7 @@ public com.google.cloud.compute.v1.NetworkEndpoint getNetworkEndpoint() { * * *
-   * [Output only] The network endpoint;
+   * [Output only] The network endpoint.
    * 
* * optional .google.cloud.compute.v1.NetworkEndpoint network_endpoint = 56789126; @@ -652,7 +652,7 @@ private void ensureHealthsIsMutable() { * * *
-     * [Output only] The health status of network endpoint;
+     * [Output only] The health status of network endpoint. Optional. Displayed only if the network endpoint has centralized health checking configured.
      * 
* * repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431; @@ -670,7 +670,7 @@ private void ensureHealthsIsMutable() { * * *
-     * [Output only] The health status of network endpoint;
+     * [Output only] The health status of network endpoint. Optional. Displayed only if the network endpoint has centralized health checking configured.
      * 
* * repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431; @@ -687,7 +687,7 @@ public int getHealthsCount() { * * *
-     * [Output only] The health status of network endpoint;
+     * [Output only] The health status of network endpoint. Optional. Displayed only if the network endpoint has centralized health checking configured.
      * 
* * repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431; @@ -704,7 +704,7 @@ public com.google.cloud.compute.v1.HealthStatusForNetworkEndpoint getHealths(int * * *
-     * [Output only] The health status of network endpoint;
+     * [Output only] The health status of network endpoint. Optional. Displayed only if the network endpoint has centralized health checking configured.
      * 
* * repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431; @@ -728,7 +728,7 @@ public Builder setHealths( * * *
-     * [Output only] The health status of network endpoint;
+     * [Output only] The health status of network endpoint. Optional. Displayed only if the network endpoint has centralized health checking configured.
      * 
* * repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431; @@ -750,7 +750,7 @@ public Builder setHealths( * * *
-     * [Output only] The health status of network endpoint;
+     * [Output only] The health status of network endpoint. Optional. Displayed only if the network endpoint has centralized health checking configured.
      * 
* * repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431; @@ -773,7 +773,7 @@ public Builder addHealths(com.google.cloud.compute.v1.HealthStatusForNetworkEndp * * *
-     * [Output only] The health status of network endpoint;
+     * [Output only] The health status of network endpoint. Optional. Displayed only if the network endpoint has centralized health checking configured.
      * 
* * repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431; @@ -797,7 +797,7 @@ public Builder addHealths( * * *
-     * [Output only] The health status of network endpoint;
+     * [Output only] The health status of network endpoint. Optional. Displayed only if the network endpoint has centralized health checking configured.
      * 
* * repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431; @@ -818,7 +818,7 @@ public Builder addHealths( * * *
-     * [Output only] The health status of network endpoint;
+     * [Output only] The health status of network endpoint. Optional. Displayed only if the network endpoint has centralized health checking configured.
      * 
* * repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431; @@ -840,7 +840,7 @@ public Builder addHealths( * * *
-     * [Output only] The health status of network endpoint;
+     * [Output only] The health status of network endpoint. Optional. Displayed only if the network endpoint has centralized health checking configured.
      * 
* * repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431; @@ -862,7 +862,7 @@ public Builder addAllHealths( * * *
-     * [Output only] The health status of network endpoint;
+     * [Output only] The health status of network endpoint. Optional. Displayed only if the network endpoint has centralized health checking configured.
      * 
* * repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431; @@ -882,7 +882,7 @@ public Builder clearHealths() { * * *
-     * [Output only] The health status of network endpoint;
+     * [Output only] The health status of network endpoint. Optional. Displayed only if the network endpoint has centralized health checking configured.
      * 
* * repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431; @@ -902,7 +902,7 @@ public Builder removeHealths(int index) { * * *
-     * [Output only] The health status of network endpoint;
+     * [Output only] The health status of network endpoint. Optional. Displayed only if the network endpoint has centralized health checking configured.
      * 
* * repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431; @@ -916,7 +916,7 @@ public com.google.cloud.compute.v1.HealthStatusForNetworkEndpoint.Builder getHea * * *
-     * [Output only] The health status of network endpoint;
+     * [Output only] The health status of network endpoint. Optional. Displayed only if the network endpoint has centralized health checking configured.
      * 
* * repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431; @@ -934,7 +934,7 @@ public com.google.cloud.compute.v1.HealthStatusForNetworkEndpointOrBuilder getHe * * *
-     * [Output only] The health status of network endpoint;
+     * [Output only] The health status of network endpoint. Optional. Displayed only if the network endpoint has centralized health checking configured.
      * 
* * repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431; @@ -953,7 +953,7 @@ public com.google.cloud.compute.v1.HealthStatusForNetworkEndpointOrBuilder getHe * * *
-     * [Output only] The health status of network endpoint;
+     * [Output only] The health status of network endpoint. Optional. Displayed only if the network endpoint has centralized health checking configured.
      * 
* * repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431; @@ -968,7 +968,7 @@ public com.google.cloud.compute.v1.HealthStatusForNetworkEndpoint.Builder addHea * * *
-     * [Output only] The health status of network endpoint;
+     * [Output only] The health status of network endpoint. Optional. Displayed only if the network endpoint has centralized health checking configured.
      * 
* * repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431; @@ -985,7 +985,7 @@ public com.google.cloud.compute.v1.HealthStatusForNetworkEndpoint.Builder addHea * * *
-     * [Output only] The health status of network endpoint;
+     * [Output only] The health status of network endpoint. Optional. Displayed only if the network endpoint has centralized health checking configured.
      * 
* * repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431; @@ -1023,7 +1023,7 @@ public com.google.cloud.compute.v1.HealthStatusForNetworkEndpoint.Builder addHea * * *
-     * [Output only] The network endpoint;
+     * [Output only] The network endpoint.
      * 
* * optional .google.cloud.compute.v1.NetworkEndpoint network_endpoint = 56789126; @@ -1037,7 +1037,7 @@ public boolean hasNetworkEndpoint() { * * *
-     * [Output only] The network endpoint;
+     * [Output only] The network endpoint.
      * 
* * optional .google.cloud.compute.v1.NetworkEndpoint network_endpoint = 56789126; @@ -1057,7 +1057,7 @@ public com.google.cloud.compute.v1.NetworkEndpoint getNetworkEndpoint() { * * *
-     * [Output only] The network endpoint;
+     * [Output only] The network endpoint.
      * 
* * optional .google.cloud.compute.v1.NetworkEndpoint network_endpoint = 56789126; @@ -1079,7 +1079,7 @@ public Builder setNetworkEndpoint(com.google.cloud.compute.v1.NetworkEndpoint va * * *
-     * [Output only] The network endpoint;
+     * [Output only] The network endpoint.
      * 
* * optional .google.cloud.compute.v1.NetworkEndpoint network_endpoint = 56789126; @@ -1099,7 +1099,7 @@ public Builder setNetworkEndpoint( * * *
-     * [Output only] The network endpoint;
+     * [Output only] The network endpoint.
      * 
* * optional .google.cloud.compute.v1.NetworkEndpoint network_endpoint = 56789126; @@ -1127,7 +1127,7 @@ public Builder mergeNetworkEndpoint(com.google.cloud.compute.v1.NetworkEndpoint * * *
-     * [Output only] The network endpoint;
+     * [Output only] The network endpoint.
      * 
* * optional .google.cloud.compute.v1.NetworkEndpoint network_endpoint = 56789126; @@ -1146,7 +1146,7 @@ public Builder clearNetworkEndpoint() { * * *
-     * [Output only] The network endpoint;
+     * [Output only] The network endpoint.
      * 
* * optional .google.cloud.compute.v1.NetworkEndpoint network_endpoint = 56789126; @@ -1160,7 +1160,7 @@ public com.google.cloud.compute.v1.NetworkEndpoint.Builder getNetworkEndpointBui * * *
-     * [Output only] The network endpoint;
+     * [Output only] The network endpoint.
      * 
* * optional .google.cloud.compute.v1.NetworkEndpoint network_endpoint = 56789126; @@ -1178,7 +1178,7 @@ public com.google.cloud.compute.v1.NetworkEndpointOrBuilder getNetworkEndpointOr * * *
-     * [Output only] The network endpoint;
+     * [Output only] The network endpoint.
      * 
* * optional .google.cloud.compute.v1.NetworkEndpoint network_endpoint = 56789126; diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkEndpointWithHealthStatusOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkEndpointWithHealthStatusOrBuilder.java index a617025f2b58..d25e0365b4a8 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkEndpointWithHealthStatusOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkEndpointWithHealthStatusOrBuilder.java @@ -28,7 +28,7 @@ public interface NetworkEndpointWithHealthStatusOrBuilder * * *
-   * [Output only] The health status of network endpoint;
+   * [Output only] The health status of network endpoint. Optional. Displayed only if the network endpoint has centralized health checking configured.
    * 
* * repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431; @@ -39,7 +39,7 @@ public interface NetworkEndpointWithHealthStatusOrBuilder * * *
-   * [Output only] The health status of network endpoint;
+   * [Output only] The health status of network endpoint. Optional. Displayed only if the network endpoint has centralized health checking configured.
    * 
* * repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431; @@ -50,7 +50,7 @@ public interface NetworkEndpointWithHealthStatusOrBuilder * * *
-   * [Output only] The health status of network endpoint;
+   * [Output only] The health status of network endpoint. Optional. Displayed only if the network endpoint has centralized health checking configured.
    * 
* * repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431; @@ -61,7 +61,7 @@ public interface NetworkEndpointWithHealthStatusOrBuilder * * *
-   * [Output only] The health status of network endpoint;
+   * [Output only] The health status of network endpoint. Optional. Displayed only if the network endpoint has centralized health checking configured.
    * 
* * repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431; @@ -73,7 +73,7 @@ public interface NetworkEndpointWithHealthStatusOrBuilder * * *
-   * [Output only] The health status of network endpoint;
+   * [Output only] The health status of network endpoint. Optional. Displayed only if the network endpoint has centralized health checking configured.
    * 
* * repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431; @@ -86,7 +86,7 @@ com.google.cloud.compute.v1.HealthStatusForNetworkEndpointOrBuilder getHealthsOr * * *
-   * [Output only] The network endpoint;
+   * [Output only] The network endpoint.
    * 
* * optional .google.cloud.compute.v1.NetworkEndpoint network_endpoint = 56789126; @@ -98,7 +98,7 @@ com.google.cloud.compute.v1.HealthStatusForNetworkEndpointOrBuilder getHealthsOr * * *
-   * [Output only] The network endpoint;
+   * [Output only] The network endpoint.
    * 
* * optional .google.cloud.compute.v1.NetworkEndpoint network_endpoint = 56789126; @@ -110,7 +110,7 @@ com.google.cloud.compute.v1.HealthStatusForNetworkEndpointOrBuilder getHealthsOr * * *
-   * [Output only] The network endpoint;
+   * [Output only] The network endpoint.
    * 
* * optional .google.cloud.compute.v1.NetworkEndpoint network_endpoint = 56789126; diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkFirewallPolicyAggregatedList.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkFirewallPolicyAggregatedList.java new file mode 100644 index 000000000000..e556a7ecfade --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkFirewallPolicyAggregatedList.java @@ -0,0 +1,2323 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +/** + * + * + *
+ * 
+ * + * Protobuf type {@code google.cloud.compute.v1.NetworkFirewallPolicyAggregatedList} + */ +public final class NetworkFirewallPolicyAggregatedList + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.NetworkFirewallPolicyAggregatedList) + NetworkFirewallPolicyAggregatedListOrBuilder { + private static final long serialVersionUID = 0L; + // Use NetworkFirewallPolicyAggregatedList.newBuilder() to construct. + private NetworkFirewallPolicyAggregatedList( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NetworkFirewallPolicyAggregatedList() { + id_ = ""; + kind_ = ""; + nextPageToken_ = ""; + selfLink_ = ""; + unreachables_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NetworkFirewallPolicyAggregatedList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_NetworkFirewallPolicyAggregatedList_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 100526016: + return internalGetItems(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_NetworkFirewallPolicyAggregatedList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.NetworkFirewallPolicyAggregatedList.class, + com.google.cloud.compute.v1.NetworkFirewallPolicyAggregatedList.Builder.class); + } + + private int bitField0_; + 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_ & 0x00000001) != 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; + + private static final class ItemsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.compute.v1.FirewallPoliciesScopedList> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_NetworkFirewallPolicyAggregatedList_ItemsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.compute.v1.FirewallPoliciesScopedList + .getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.compute.v1.FirewallPoliciesScopedList> + items_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.compute.v1.FirewallPoliciesScopedList> + internalGetItems() { + if (items_ == null) { + return com.google.protobuf.MapField.emptyMapField(ItemsDefaultEntryHolder.defaultEntry); + } + return items_; + } + + public int getItemsCount() { + return internalGetItems().getMap().size(); + } + /** + * + * + *
+   * A list of FirewallPoliciesScopedList resources.
+   * 
+ * + * map<string, .google.cloud.compute.v1.FirewallPoliciesScopedList> items = 100526016; + * + */ + @java.lang.Override + public boolean containsItems(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetItems().getMap().containsKey(key); + } + /** Use {@link #getItemsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getItems() { + return getItemsMap(); + } + /** + * + * + *
+   * A list of FirewallPoliciesScopedList resources.
+   * 
+ * + * map<string, .google.cloud.compute.v1.FirewallPoliciesScopedList> items = 100526016; + * + */ + @java.lang.Override + public java.util.Map + getItemsMap() { + return internalGetItems().getMap(); + } + /** + * + * + *
+   * A list of FirewallPoliciesScopedList resources.
+   * 
+ * + * map<string, .google.cloud.compute.v1.FirewallPoliciesScopedList> items = 100526016; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.compute.v1.FirewallPoliciesScopedList getItemsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.compute.v1.FirewallPoliciesScopedList defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetItems().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * A list of FirewallPoliciesScopedList resources.
+   * 
+ * + * map<string, .google.cloud.compute.v1.FirewallPoliciesScopedList> items = 100526016; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.FirewallPoliciesScopedList getItemsOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetItems().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int KIND_FIELD_NUMBER = 3292052; + + @SuppressWarnings("serial") + private volatile java.lang.Object kind_ = ""; + /** + * + * + *
+   * [Output Only] Type of resource. Always compute#networkFirewallPoliciesAggregatedList for lists of network firewall policies.
+   * 
+ * + * optional string kind = 3292052; + * + * @return Whether the kind field is set. + */ + @java.lang.Override + public boolean hasKind() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * [Output Only] Type of resource. Always compute#networkFirewallPoliciesAggregatedList for lists of network firewall policies.
+   * 
+ * + * 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#networkFirewallPoliciesAggregatedList for lists of network firewall policies.
+   * 
+ * + * 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_ & 0x00000004) != 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_ & 0x00000008) != 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.
+   * 
+ * + * repeated string unreachables = 243372063; + * + * @return A list containing the unreachables. + */ + public com.google.protobuf.ProtocolStringList getUnreachablesList() { + return unreachables_; + } + /** + * + * + *
+   * [Output Only] Unreachable resources.
+   * 
+ * + * repeated string unreachables = 243372063; + * + * @return The count of unreachables. + */ + public int getUnreachablesCount() { + return unreachables_.size(); + } + /** + * + * + *
+   * [Output Only] Unreachable resources.
+   * 
+ * + * 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.
+   * 
+ * + * 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_ & 0x00000010) != 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_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3355, id_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3292052, kind_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(50704284, getWarning()); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 79797525, nextPageToken_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetItems(), ItemsDefaultEntryHolder.defaultEntry, 100526016); + for (int i = 0; i < unreachables_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 243372063, unreachables_.getRaw(i)); + } + if (((bitField0_ & 0x00000008) != 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_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3355, id_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3292052, kind_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(50704284, getWarning()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(79797525, nextPageToken_); + } + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.compute.v1.FirewallPoliciesScopedList> + entry : internalGetItems().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.compute.v1.FirewallPoliciesScopedList> + items__ = + ItemsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(100526016, items__); + } + { + int dataSize = 0; + for (int i = 0; i < unreachables_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachables_.getRaw(i)); + } + size += dataSize; + size += 5 * getUnreachablesList().size(); + } + if (((bitField0_ & 0x00000008) != 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.NetworkFirewallPolicyAggregatedList)) { + return super.equals(obj); + } + com.google.cloud.compute.v1.NetworkFirewallPolicyAggregatedList other = + (com.google.cloud.compute.v1.NetworkFirewallPolicyAggregatedList) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId().equals(other.getId())) return false; + } + if (!internalGetItems().equals(other.internalGetItems())) 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 (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (!internalGetItems().getMap().isEmpty()) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + internalGetItems().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.NetworkFirewallPolicyAggregatedList parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.NetworkFirewallPolicyAggregatedList parseFrom( + 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.NetworkFirewallPolicyAggregatedList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.NetworkFirewallPolicyAggregatedList parseFrom( + com.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.NetworkFirewallPolicyAggregatedList parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.compute.v1.NetworkFirewallPolicyAggregatedList 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.NetworkFirewallPolicyAggregatedList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.NetworkFirewallPolicyAggregatedList parseFrom( + java.io.InputStream 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.NetworkFirewallPolicyAggregatedList parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.compute.v1.NetworkFirewallPolicyAggregatedList parseDelimitedFrom( + java.io.InputStream 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.NetworkFirewallPolicyAggregatedList 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.NetworkFirewallPolicyAggregatedList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.NetworkFirewallPolicyAggregatedList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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.NetworkFirewallPolicyAggregatedList} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.NetworkFirewallPolicyAggregatedList) + com.google.cloud.compute.v1.NetworkFirewallPolicyAggregatedListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_NetworkFirewallPolicyAggregatedList_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 100526016: + return internalGetItems(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 100526016: + return internalGetMutableItems(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.compute.v1.Compute + .internal_static_google_cloud_compute_v1_NetworkFirewallPolicyAggregatedList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.compute.v1.NetworkFirewallPolicyAggregatedList.class, + com.google.cloud.compute.v1.NetworkFirewallPolicyAggregatedList.Builder.class); + } + + // Construct using com.google.cloud.compute.v1.NetworkFirewallPolicyAggregatedList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getWarningFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + internalGetMutableItems().clear(); + 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_NetworkFirewallPolicyAggregatedList_descriptor; + } + + @java.lang.Override + public com.google.cloud.compute.v1.NetworkFirewallPolicyAggregatedList + getDefaultInstanceForType() { + return com.google.cloud.compute.v1.NetworkFirewallPolicyAggregatedList.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.compute.v1.NetworkFirewallPolicyAggregatedList build() { + com.google.cloud.compute.v1.NetworkFirewallPolicyAggregatedList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.compute.v1.NetworkFirewallPolicyAggregatedList buildPartial() { + com.google.cloud.compute.v1.NetworkFirewallPolicyAggregatedList result = + new com.google.cloud.compute.v1.NetworkFirewallPolicyAggregatedList(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.compute.v1.NetworkFirewallPolicyAggregatedList result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.items_ = internalGetItems().build(ItemsDefaultEntryHolder.defaultEntry); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.kind_ = kind_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.nextPageToken_ = nextPageToken_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.selfLink_ = selfLink_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + unreachables_.makeImmutable(); + result.unreachables_ = unreachables_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.warning_ = warningBuilder_ == null ? warning_ : warningBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.compute.v1.NetworkFirewallPolicyAggregatedList) { + return mergeFrom((com.google.cloud.compute.v1.NetworkFirewallPolicyAggregatedList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.compute.v1.NetworkFirewallPolicyAggregatedList other) { + if (other + == com.google.cloud.compute.v1.NetworkFirewallPolicyAggregatedList.getDefaultInstance()) + return this; + if (other.hasId()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + internalGetMutableItems().mergeFrom(other.internalGetItems()); + bitField0_ |= 0x00000002; + if (other.hasKind()) { + kind_ = other.kind_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasNextPageToken()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasSelfLink()) { + selfLink_ = other.selfLink_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.unreachables_.isEmpty()) { + if (unreachables_.isEmpty()) { + unreachables_ = other.unreachables_; + bitField0_ |= 0x00000020; + } 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_ |= 0x00000001; + break; + } // case 26842 + case 26336418: + { + kind_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26336418 + case 405634274: + { + input.readMessage(getWarningFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 405634274 + case 638380202: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 638380202 + case 804208130: + { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.compute.v1.FirewallPoliciesScopedList> + items__ = + input.readMessage( + ItemsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableItems() + .ensureBuilderMap() + .put(items__.getKey(), items__.getValue()); + bitField0_ |= 0x00000002; + break; + } // case 804208130 + case 1946976506: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachablesIsMutable(); + unreachables_.add(s); + break; + } // case 1946976506 + case -645248918: + { + selfLink_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + 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 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_ & 0x00000001) != 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_ |= 0x00000001; + 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_ & ~0x00000001); + 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_ |= 0x00000001; + onChanged(); + return this; + } + + private static final class ItemsConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.compute.v1.FirewallPoliciesScopedListOrBuilder, + com.google.cloud.compute.v1.FirewallPoliciesScopedList> { + @java.lang.Override + public com.google.cloud.compute.v1.FirewallPoliciesScopedList build( + com.google.cloud.compute.v1.FirewallPoliciesScopedListOrBuilder val) { + if (val instanceof com.google.cloud.compute.v1.FirewallPoliciesScopedList) { + return (com.google.cloud.compute.v1.FirewallPoliciesScopedList) val; + } + return ((com.google.cloud.compute.v1.FirewallPoliciesScopedList.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.compute.v1.FirewallPoliciesScopedList> + defaultEntry() { + return ItemsDefaultEntryHolder.defaultEntry; + } + }; + + private static final ItemsConverter itemsConverter = new ItemsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.compute.v1.FirewallPoliciesScopedListOrBuilder, + com.google.cloud.compute.v1.FirewallPoliciesScopedList, + com.google.cloud.compute.v1.FirewallPoliciesScopedList.Builder> + items_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.compute.v1.FirewallPoliciesScopedListOrBuilder, + com.google.cloud.compute.v1.FirewallPoliciesScopedList, + com.google.cloud.compute.v1.FirewallPoliciesScopedList.Builder> + internalGetItems() { + if (items_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(itemsConverter); + } + return items_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.compute.v1.FirewallPoliciesScopedListOrBuilder, + com.google.cloud.compute.v1.FirewallPoliciesScopedList, + com.google.cloud.compute.v1.FirewallPoliciesScopedList.Builder> + internalGetMutableItems() { + if (items_ == null) { + items_ = new com.google.protobuf.MapFieldBuilder<>(itemsConverter); + } + bitField0_ |= 0x00000002; + onChanged(); + return items_; + } + + public int getItemsCount() { + return internalGetItems().ensureBuilderMap().size(); + } + /** + * + * + *
+     * A list of FirewallPoliciesScopedList resources.
+     * 
+ * + * + * map<string, .google.cloud.compute.v1.FirewallPoliciesScopedList> items = 100526016; + * + */ + @java.lang.Override + public boolean containsItems(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetItems().ensureBuilderMap().containsKey(key); + } + /** Use {@link #getItemsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getItems() { + return getItemsMap(); + } + /** + * + * + *
+     * A list of FirewallPoliciesScopedList resources.
+     * 
+ * + * + * map<string, .google.cloud.compute.v1.FirewallPoliciesScopedList> items = 100526016; + * + */ + @java.lang.Override + public java.util.Map + getItemsMap() { + return internalGetItems().getImmutableMap(); + } + /** + * + * + *
+     * A list of FirewallPoliciesScopedList resources.
+     * 
+ * + * + * map<string, .google.cloud.compute.v1.FirewallPoliciesScopedList> items = 100526016; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.compute.v1.FirewallPoliciesScopedList getItemsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.compute.v1.FirewallPoliciesScopedList defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.compute.v1.FirewallPoliciesScopedListOrBuilder> + map = internalGetMutableItems().ensureBuilderMap(); + return map.containsKey(key) ? itemsConverter.build(map.get(key)) : defaultValue; + } + /** + * + * + *
+     * A list of FirewallPoliciesScopedList resources.
+     * 
+ * + * + * map<string, .google.cloud.compute.v1.FirewallPoliciesScopedList> items = 100526016; + * + */ + @java.lang.Override + public com.google.cloud.compute.v1.FirewallPoliciesScopedList getItemsOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.compute.v1.FirewallPoliciesScopedListOrBuilder> + map = internalGetMutableItems().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return itemsConverter.build(map.get(key)); + } + + public Builder clearItems() { + bitField0_ = (bitField0_ & ~0x00000002); + internalGetMutableItems().clear(); + return this; + } + /** + * + * + *
+     * A list of FirewallPoliciesScopedList resources.
+     * 
+ * + * + * map<string, .google.cloud.compute.v1.FirewallPoliciesScopedList> items = 100526016; + * + */ + public Builder removeItems(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableItems().ensureBuilderMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableItems() { + bitField0_ |= 0x00000002; + return internalGetMutableItems().ensureMessageMap(); + } + /** + * + * + *
+     * A list of FirewallPoliciesScopedList resources.
+     * 
+ * + * + * map<string, .google.cloud.compute.v1.FirewallPoliciesScopedList> items = 100526016; + * + */ + public Builder putItems( + java.lang.String key, com.google.cloud.compute.v1.FirewallPoliciesScopedList value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableItems().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000002; + return this; + } + /** + * + * + *
+     * A list of FirewallPoliciesScopedList resources.
+     * 
+ * + * + * map<string, .google.cloud.compute.v1.FirewallPoliciesScopedList> items = 100526016; + * + */ + public Builder putAllItems( + java.util.Map + values) { + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.compute.v1.FirewallPoliciesScopedList> + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableItems().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000002; + return this; + } + /** + * + * + *
+     * A list of FirewallPoliciesScopedList resources.
+     * 
+ * + * + * map<string, .google.cloud.compute.v1.FirewallPoliciesScopedList> items = 100526016; + * + */ + public com.google.cloud.compute.v1.FirewallPoliciesScopedList.Builder putItemsBuilderIfAbsent( + java.lang.String key) { + java.util.Map< + java.lang.String, com.google.cloud.compute.v1.FirewallPoliciesScopedListOrBuilder> + builderMap = internalGetMutableItems().ensureBuilderMap(); + com.google.cloud.compute.v1.FirewallPoliciesScopedListOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.compute.v1.FirewallPoliciesScopedList.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.cloud.compute.v1.FirewallPoliciesScopedList) { + entry = ((com.google.cloud.compute.v1.FirewallPoliciesScopedList) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.compute.v1.FirewallPoliciesScopedList.Builder) entry; + } + + private java.lang.Object kind_ = ""; + /** + * + * + *
+     * [Output Only] Type of resource. Always compute#networkFirewallPoliciesAggregatedList for lists of network firewall policies.
+     * 
+ * + * optional string kind = 3292052; + * + * @return Whether the kind field is set. + */ + public boolean hasKind() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * [Output Only] Type of resource. Always compute#networkFirewallPoliciesAggregatedList for lists of network firewall policies.
+     * 
+ * + * 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#networkFirewallPoliciesAggregatedList for lists of network firewall policies.
+     * 
+ * + * 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#networkFirewallPoliciesAggregatedList for lists of network firewall policies.
+     * 
+ * + * 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_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output Only] Type of resource. Always compute#networkFirewallPoliciesAggregatedList for lists of network firewall policies.
+     * 
+ * + * optional string kind = 3292052; + * + * @return This builder for chaining. + */ + public Builder clearKind() { + kind_ = getDefaultInstance().getKind(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output Only] Type of resource. Always compute#networkFirewallPoliciesAggregatedList for lists of network firewall policies.
+     * 
+ * + * 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_ |= 0x00000004; + 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_ & 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. + */ + 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_ |= 0x00000008; + 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_ & ~0x00000008); + 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_ |= 0x00000008; + 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_ & 0x00000010) != 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_ |= 0x00000010; + 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_ & ~0x00000010); + 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_ |= 0x00000010; + 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_ |= 0x00000020; + } + /** + * + * + *
+     * [Output Only] Unreachable resources.
+     * 
+ * + * repeated string unreachables = 243372063; + * + * @return A list containing the unreachables. + */ + public com.google.protobuf.ProtocolStringList getUnreachablesList() { + unreachables_.makeImmutable(); + return unreachables_; + } + /** + * + * + *
+     * [Output Only] Unreachable resources.
+     * 
+ * + * repeated string unreachables = 243372063; + * + * @return The count of unreachables. + */ + public int getUnreachablesCount() { + return unreachables_.size(); + } + /** + * + * + *
+     * [Output Only] Unreachable resources.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * 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_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output Only] Unreachable resources.
+     * 
+ * + * 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_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output Only] Unreachable resources.
+     * 
+ * + * 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_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output Only] Unreachable resources.
+     * 
+ * + * repeated string unreachables = 243372063; + * + * @return This builder for chaining. + */ + public Builder clearUnreachables() { + unreachables_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output Only] Unreachable resources.
+     * 
+ * + * 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_ |= 0x00000020; + 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_ & 0x00000040) != 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_ |= 0x00000040; + 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_ |= 0x00000040; + 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_ & 0x00000040) != 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_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + * + * + *
+     * [Output Only] Informational warning message.
+     * 
+ * + * optional .google.cloud.compute.v1.Warning warning = 50704284; + */ + public Builder clearWarning() { + bitField0_ = (bitField0_ & ~0x00000040); + 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_ |= 0x00000040; + 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.NetworkFirewallPolicyAggregatedList) + } + + // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.NetworkFirewallPolicyAggregatedList) + private static final com.google.cloud.compute.v1.NetworkFirewallPolicyAggregatedList + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.compute.v1.NetworkFirewallPolicyAggregatedList(); + } + + public static com.google.cloud.compute.v1.NetworkFirewallPolicyAggregatedList + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkFirewallPolicyAggregatedList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.NetworkFirewallPolicyAggregatedList + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkFirewallPolicyAggregatedListOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkFirewallPolicyAggregatedListOrBuilder.java new file mode 100644 index 000000000000..ee4fcf11c8a7 --- /dev/null +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/NetworkFirewallPolicyAggregatedListOrBuilder.java @@ -0,0 +1,325 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/compute/v1/compute.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.compute.v1; + +public interface NetworkFirewallPolicyAggregatedListOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.NetworkFirewallPolicyAggregatedList) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * [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 FirewallPoliciesScopedList resources.
+   * 
+ * + * map<string, .google.cloud.compute.v1.FirewallPoliciesScopedList> items = 100526016; + * + */ + int getItemsCount(); + /** + * + * + *
+   * A list of FirewallPoliciesScopedList resources.
+   * 
+ * + * map<string, .google.cloud.compute.v1.FirewallPoliciesScopedList> items = 100526016; + * + */ + boolean containsItems(java.lang.String key); + /** Use {@link #getItemsMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getItems(); + /** + * + * + *
+   * A list of FirewallPoliciesScopedList resources.
+   * 
+ * + * map<string, .google.cloud.compute.v1.FirewallPoliciesScopedList> items = 100526016; + * + */ + java.util.Map + getItemsMap(); + /** + * + * + *
+   * A list of FirewallPoliciesScopedList resources.
+   * 
+ * + * map<string, .google.cloud.compute.v1.FirewallPoliciesScopedList> items = 100526016; + * + */ + /* nullable */ + com.google.cloud.compute.v1.FirewallPoliciesScopedList getItemsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.compute.v1.FirewallPoliciesScopedList defaultValue); + /** + * + * + *
+   * A list of FirewallPoliciesScopedList resources.
+   * 
+ * + * map<string, .google.cloud.compute.v1.FirewallPoliciesScopedList> items = 100526016; + * + */ + com.google.cloud.compute.v1.FirewallPoliciesScopedList getItemsOrThrow(java.lang.String key); + + /** + * + * + *
+   * [Output Only] Type of resource. Always compute#networkFirewallPoliciesAggregatedList for lists of network firewall policies.
+   * 
+ * + * optional string kind = 3292052; + * + * @return Whether the kind field is set. + */ + boolean hasKind(); + /** + * + * + *
+   * [Output Only] Type of resource. Always compute#networkFirewallPoliciesAggregatedList for lists of network firewall policies.
+   * 
+ * + * optional string kind = 3292052; + * + * @return The kind. + */ + java.lang.String getKind(); + /** + * + * + *
+   * [Output Only] Type of resource. Always compute#networkFirewallPoliciesAggregatedList for lists of network firewall policies.
+   * 
+ * + * 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.
+   * 
+ * + * repeated string unreachables = 243372063; + * + * @return A list containing the unreachables. + */ + java.util.List getUnreachablesList(); + /** + * + * + *
+   * [Output Only] Unreachable resources.
+   * 
+ * + * repeated string unreachables = 243372063; + * + * @return The count of unreachables. + */ + int getUnreachablesCount(); + /** + * + * + *
+   * [Output Only] Unreachable resources.
+   * 
+ * + * 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.
+   * 
+ * + * 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 306ec876f4d0..95d5b7e7853a 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 @@ -41,6 +41,7 @@ private NetworkRoutingConfig(com.google.protobuf.GeneratedMessageV3.Builder b private NetworkRoutingConfig() { bgpBestPathSelectionMode_ = ""; bgpInterRegionCost_ = ""; + effectiveBgpInterRegionCost_ = ""; routingMode_ = ""; } @@ -198,6 +199,9 @@ private BgpBestPathSelectionMode(int value) { * *
    * 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.
+   * Additional supported values which may be not listed in the enum directly due to technical reasons:
+   * ADD_COST_TO_MED
+   * DEFAULT
    * 
* * Protobuf enum {@code google.cloud.compute.v1.NetworkRoutingConfig.BgpInterRegionCost} @@ -321,6 +325,125 @@ private BgpInterRegionCost(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.NetworkRoutingConfig.BgpInterRegionCost) } + /** + * + * + *
+   * [Output Only] Effective value of the bgp_inter_region_cost field.
+   * Additional supported values which may be not listed in the enum directly due to technical reasons:
+   * ADD_COST_TO_MED
+   * DEFAULT
+   * 
+ * + * Protobuf enum {@code google.cloud.compute.v1.NetworkRoutingConfig.EffectiveBgpInterRegionCost} + */ + public enum EffectiveBgpInterRegionCost implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * A value indicating that the enum field is not set.
+     * 
+ * + * UNDEFINED_EFFECTIVE_BGP_INTER_REGION_COST = 0; + */ + UNDEFINED_EFFECTIVE_BGP_INTER_REGION_COST(0), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * A value indicating that the enum field is not set.
+     * 
+ * + * UNDEFINED_EFFECTIVE_BGP_INTER_REGION_COST = 0; + */ + public static final int UNDEFINED_EFFECTIVE_BGP_INTER_REGION_COST_VALUE = 0; + + 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 EffectiveBgpInterRegionCost 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 EffectiveBgpInterRegionCost forNumber(int value) { + switch (value) { + case 0: + return UNDEFINED_EFFECTIVE_BGP_INTER_REGION_COST; + 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 EffectiveBgpInterRegionCost findValueByNumber(int number) { + return EffectiveBgpInterRegionCost.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(2); + } + + private static final EffectiveBgpInterRegionCost[] VALUES = values(); + + public static EffectiveBgpInterRegionCost 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 EffectiveBgpInterRegionCost(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.NetworkRoutingConfig.EffectiveBgpInterRegionCost) + } + /** * * @@ -422,7 +545,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(2); + return com.google.cloud.compute.v1.NetworkRoutingConfig.getDescriptor().getEnumTypes().get(3); } private static final RoutingMode[] VALUES = values(); @@ -618,6 +741,108 @@ public com.google.protobuf.ByteString getBgpInterRegionCostBytes() { } } + public static final int EFFECTIVE_BGP_ALWAYS_COMPARE_MED_FIELD_NUMBER = 214661838; + private boolean effectiveBgpAlwaysCompareMed_ = false; + /** + * + * + *
+   * [Output Only] Effective value of the bgp_always_compare_med field.
+   * 
+ * + * optional bool effective_bgp_always_compare_med = 214661838; + * + * @return Whether the effectiveBgpAlwaysCompareMed field is set. + */ + @java.lang.Override + public boolean hasEffectiveBgpAlwaysCompareMed() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+   * [Output Only] Effective value of the bgp_always_compare_med field.
+   * 
+ * + * optional bool effective_bgp_always_compare_med = 214661838; + * + * @return The effectiveBgpAlwaysCompareMed. + */ + @java.lang.Override + public boolean getEffectiveBgpAlwaysCompareMed() { + return effectiveBgpAlwaysCompareMed_; + } + + public static final int EFFECTIVE_BGP_INTER_REGION_COST_FIELD_NUMBER = 185098313; + + @SuppressWarnings("serial") + private volatile java.lang.Object effectiveBgpInterRegionCost_ = ""; + /** + * + * + *
+   * [Output Only] Effective value of the bgp_inter_region_cost field.
+   * Check the EffectiveBgpInterRegionCost enum for the list of possible values.
+   * 
+ * + * optional string effective_bgp_inter_region_cost = 185098313; + * + * @return Whether the effectiveBgpInterRegionCost field is set. + */ + @java.lang.Override + public boolean hasEffectiveBgpInterRegionCost() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+   * [Output Only] Effective value of the bgp_inter_region_cost field.
+   * Check the EffectiveBgpInterRegionCost enum for the list of possible values.
+   * 
+ * + * optional string effective_bgp_inter_region_cost = 185098313; + * + * @return The effectiveBgpInterRegionCost. + */ + @java.lang.Override + public java.lang.String getEffectiveBgpInterRegionCost() { + java.lang.Object ref = effectiveBgpInterRegionCost_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + effectiveBgpInterRegionCost_ = s; + return s; + } + } + /** + * + * + *
+   * [Output Only] Effective value of the bgp_inter_region_cost field.
+   * Check the EffectiveBgpInterRegionCost enum for the list of possible values.
+   * 
+ * + * optional string effective_bgp_inter_region_cost = 185098313; + * + * @return The bytes for effectiveBgpInterRegionCost. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEffectiveBgpInterRegionCostBytes() { + java.lang.Object ref = effectiveBgpInterRegionCost_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + effectiveBgpInterRegionCost_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int ROUTING_MODE_FIELD_NUMBER = 475143548; @SuppressWarnings("serial") @@ -636,7 +861,7 @@ public com.google.protobuf.ByteString getBgpInterRegionCostBytes() { */ @java.lang.Override public boolean hasRoutingMode() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -701,9 +926,16 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 185098313, effectiveBgpInterRegionCost_); + } if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(213102902, bgpAlwaysCompareMed_); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeBool(214661838, effectiveBgpAlwaysCompareMed_); + } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString( output, 317816297, bgpBestPathSelectionMode_); @@ -711,7 +943,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 462142689, bgpInterRegionCost_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 475143548, routingMode_); } getUnknownFields().writeTo(output); @@ -723,10 +955,20 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 185098313, effectiveBgpInterRegionCost_); + } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(213102902, bgpAlwaysCompareMed_); } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 214661838, effectiveBgpAlwaysCompareMed_); + } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize( @@ -736,7 +978,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(462142689, bgpInterRegionCost_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(475143548, routingMode_); } size += getUnknownFields().getSerializedSize(); @@ -767,6 +1009,16 @@ public boolean equals(final java.lang.Object obj) { if (hasBgpInterRegionCost()) { if (!getBgpInterRegionCost().equals(other.getBgpInterRegionCost())) return false; } + if (hasEffectiveBgpAlwaysCompareMed() != other.hasEffectiveBgpAlwaysCompareMed()) return false; + if (hasEffectiveBgpAlwaysCompareMed()) { + if (getEffectiveBgpAlwaysCompareMed() != other.getEffectiveBgpAlwaysCompareMed()) + return false; + } + if (hasEffectiveBgpInterRegionCost() != other.hasEffectiveBgpInterRegionCost()) return false; + if (hasEffectiveBgpInterRegionCost()) { + if (!getEffectiveBgpInterRegionCost().equals(other.getEffectiveBgpInterRegionCost())) + return false; + } if (hasRoutingMode() != other.hasRoutingMode()) return false; if (hasRoutingMode()) { if (!getRoutingMode().equals(other.getRoutingMode())) return false; @@ -794,6 +1046,15 @@ public int hashCode() { hash = (37 * hash) + BGP_INTER_REGION_COST_FIELD_NUMBER; hash = (53 * hash) + getBgpInterRegionCost().hashCode(); } + if (hasEffectiveBgpAlwaysCompareMed()) { + hash = (37 * hash) + EFFECTIVE_BGP_ALWAYS_COMPARE_MED_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEffectiveBgpAlwaysCompareMed()); + } + if (hasEffectiveBgpInterRegionCost()) { + hash = (37 * hash) + EFFECTIVE_BGP_INTER_REGION_COST_FIELD_NUMBER; + hash = (53 * hash) + getEffectiveBgpInterRegionCost().hashCode(); + } if (hasRoutingMode()) { hash = (37 * hash) + ROUTING_MODE_FIELD_NUMBER; hash = (53 * hash) + getRoutingMode().hashCode(); @@ -940,6 +1201,8 @@ public Builder clear() { bgpAlwaysCompareMed_ = false; bgpBestPathSelectionMode_ = ""; bgpInterRegionCost_ = ""; + effectiveBgpAlwaysCompareMed_ = false; + effectiveBgpInterRegionCost_ = ""; routingMode_ = ""; return this; } @@ -991,9 +1254,17 @@ private void buildPartial0(com.google.cloud.compute.v1.NetworkRoutingConfig resu to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.routingMode_ = routingMode_; + result.effectiveBgpAlwaysCompareMed_ = effectiveBgpAlwaysCompareMed_; to_bitField0_ |= 0x00000008; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.effectiveBgpInterRegionCost_ = effectiveBgpInterRegionCost_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.routingMode_ = routingMode_; + to_bitField0_ |= 0x00000020; + } result.bitField0_ |= to_bitField0_; } @@ -1056,9 +1327,17 @@ public Builder mergeFrom(com.google.cloud.compute.v1.NetworkRoutingConfig other) bitField0_ |= 0x00000004; onChanged(); } + if (other.hasEffectiveBgpAlwaysCompareMed()) { + setEffectiveBgpAlwaysCompareMed(other.getEffectiveBgpAlwaysCompareMed()); + } + if (other.hasEffectiveBgpInterRegionCost()) { + effectiveBgpInterRegionCost_ = other.effectiveBgpInterRegionCost_; + bitField0_ |= 0x00000010; + onChanged(); + } if (other.hasRoutingMode()) { routingMode_ = other.routingMode_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1087,12 +1366,24 @@ public Builder mergeFrom( case 0: done = true; break; + case 1480786506: + { + effectiveBgpInterRegionCost_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 1480786506 case 1704823216: { bgpAlwaysCompareMed_ = input.readBool(); bitField0_ |= 0x00000001; break; } // case 1704823216 + case 1717294704: + { + effectiveBgpAlwaysCompareMed_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 1717294704 case -1752436918: { bgpBestPathSelectionMode_ = input.readStringRequireUtf8(); @@ -1108,7 +1399,7 @@ public Builder mergeFrom( case -493818910: { routingMode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; break; } // case -493818910 default: @@ -1450,6 +1741,200 @@ public Builder setBgpInterRegionCostBytes(com.google.protobuf.ByteString value) return this; } + private boolean effectiveBgpAlwaysCompareMed_; + /** + * + * + *
+     * [Output Only] Effective value of the bgp_always_compare_med field.
+     * 
+ * + * optional bool effective_bgp_always_compare_med = 214661838; + * + * @return Whether the effectiveBgpAlwaysCompareMed field is set. + */ + @java.lang.Override + public boolean hasEffectiveBgpAlwaysCompareMed() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * [Output Only] Effective value of the bgp_always_compare_med field.
+     * 
+ * + * optional bool effective_bgp_always_compare_med = 214661838; + * + * @return The effectiveBgpAlwaysCompareMed. + */ + @java.lang.Override + public boolean getEffectiveBgpAlwaysCompareMed() { + return effectiveBgpAlwaysCompareMed_; + } + /** + * + * + *
+     * [Output Only] Effective value of the bgp_always_compare_med field.
+     * 
+ * + * optional bool effective_bgp_always_compare_med = 214661838; + * + * @param value The effectiveBgpAlwaysCompareMed to set. + * @return This builder for chaining. + */ + public Builder setEffectiveBgpAlwaysCompareMed(boolean value) { + + effectiveBgpAlwaysCompareMed_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output Only] Effective value of the bgp_always_compare_med field.
+     * 
+ * + * optional bool effective_bgp_always_compare_med = 214661838; + * + * @return This builder for chaining. + */ + public Builder clearEffectiveBgpAlwaysCompareMed() { + bitField0_ = (bitField0_ & ~0x00000008); + effectiveBgpAlwaysCompareMed_ = false; + onChanged(); + return this; + } + + private java.lang.Object effectiveBgpInterRegionCost_ = ""; + /** + * + * + *
+     * [Output Only] Effective value of the bgp_inter_region_cost field.
+     * Check the EffectiveBgpInterRegionCost enum for the list of possible values.
+     * 
+ * + * optional string effective_bgp_inter_region_cost = 185098313; + * + * @return Whether the effectiveBgpInterRegionCost field is set. + */ + public boolean hasEffectiveBgpInterRegionCost() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * [Output Only] Effective value of the bgp_inter_region_cost field.
+     * Check the EffectiveBgpInterRegionCost enum for the list of possible values.
+     * 
+ * + * optional string effective_bgp_inter_region_cost = 185098313; + * + * @return The effectiveBgpInterRegionCost. + */ + public java.lang.String getEffectiveBgpInterRegionCost() { + java.lang.Object ref = effectiveBgpInterRegionCost_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + effectiveBgpInterRegionCost_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output Only] Effective value of the bgp_inter_region_cost field.
+     * Check the EffectiveBgpInterRegionCost enum for the list of possible values.
+     * 
+ * + * optional string effective_bgp_inter_region_cost = 185098313; + * + * @return The bytes for effectiveBgpInterRegionCost. + */ + public com.google.protobuf.ByteString getEffectiveBgpInterRegionCostBytes() { + java.lang.Object ref = effectiveBgpInterRegionCost_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + effectiveBgpInterRegionCost_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output Only] Effective value of the bgp_inter_region_cost field.
+     * Check the EffectiveBgpInterRegionCost enum for the list of possible values.
+     * 
+ * + * optional string effective_bgp_inter_region_cost = 185098313; + * + * @param value The effectiveBgpInterRegionCost to set. + * @return This builder for chaining. + */ + public Builder setEffectiveBgpInterRegionCost(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + effectiveBgpInterRegionCost_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output Only] Effective value of the bgp_inter_region_cost field.
+     * Check the EffectiveBgpInterRegionCost enum for the list of possible values.
+     * 
+ * + * optional string effective_bgp_inter_region_cost = 185098313; + * + * @return This builder for chaining. + */ + public Builder clearEffectiveBgpInterRegionCost() { + effectiveBgpInterRegionCost_ = getDefaultInstance().getEffectiveBgpInterRegionCost(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output Only] Effective value of the bgp_inter_region_cost field.
+     * Check the EffectiveBgpInterRegionCost enum for the list of possible values.
+     * 
+ * + * optional string effective_bgp_inter_region_cost = 185098313; + * + * @param value The bytes for effectiveBgpInterRegionCost to set. + * @return This builder for chaining. + */ + public Builder setEffectiveBgpInterRegionCostBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + effectiveBgpInterRegionCost_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + private java.lang.Object routingMode_ = ""; /** * @@ -1464,7 +1949,7 @@ public Builder setBgpInterRegionCostBytes(com.google.protobuf.ByteString value) * @return Whether the routingMode field is set. */ public boolean hasRoutingMode() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -1530,7 +2015,7 @@ public Builder setRoutingMode(java.lang.String value) { throw new NullPointerException(); } routingMode_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1548,7 +2033,7 @@ public Builder setRoutingMode(java.lang.String value) { */ public Builder clearRoutingMode() { routingMode_ = getDefaultInstance().getRoutingMode(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -1571,7 +2056,7 @@ public Builder setRoutingModeBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); routingMode_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; 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 6a7fa708e417..a53247ee49dd 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 @@ -129,6 +129,71 @@ public interface NetworkRoutingConfigOrBuilder */ com.google.protobuf.ByteString getBgpInterRegionCostBytes(); + /** + * + * + *
+   * [Output Only] Effective value of the bgp_always_compare_med field.
+   * 
+ * + * optional bool effective_bgp_always_compare_med = 214661838; + * + * @return Whether the effectiveBgpAlwaysCompareMed field is set. + */ + boolean hasEffectiveBgpAlwaysCompareMed(); + /** + * + * + *
+   * [Output Only] Effective value of the bgp_always_compare_med field.
+   * 
+ * + * optional bool effective_bgp_always_compare_med = 214661838; + * + * @return The effectiveBgpAlwaysCompareMed. + */ + boolean getEffectiveBgpAlwaysCompareMed(); + + /** + * + * + *
+   * [Output Only] Effective value of the bgp_inter_region_cost field.
+   * Check the EffectiveBgpInterRegionCost enum for the list of possible values.
+   * 
+ * + * optional string effective_bgp_inter_region_cost = 185098313; + * + * @return Whether the effectiveBgpInterRegionCost field is set. + */ + boolean hasEffectiveBgpInterRegionCost(); + /** + * + * + *
+   * [Output Only] Effective value of the bgp_inter_region_cost field.
+   * Check the EffectiveBgpInterRegionCost enum for the list of possible values.
+   * 
+ * + * optional string effective_bgp_inter_region_cost = 185098313; + * + * @return The effectiveBgpInterRegionCost. + */ + java.lang.String getEffectiveBgpInterRegionCost(); + /** + * + * + *
+   * [Output Only] Effective value of the bgp_inter_region_cost field.
+   * Check the EffectiveBgpInterRegionCost enum for the list of possible values.
+   * 
+ * + * optional string effective_bgp_inter_region_cost = 185098313; + * + * @return The bytes for effectiveBgpInterRegionCost. + */ + com.google.protobuf.ByteString getEffectiveBgpInterRegionCostBytes(); + /** * * 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 b0cf62714d3e..02b256de5785 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 @@ -1295,7 +1295,7 @@ public com.google.protobuf.ByteString getServerTlsPolicyBytes() { * * *
-   * URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. Certificate Manager Certificates must include the certificatemanager API. Certificate Manager Certificates are not supported by Global external Application Load Balancer or Classic Application Load Balancer, use certificate_map instead. Currently, you may specify up to 15 Classic SSL Certificates. Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis.com/projects/{project}/locations/{ location}/certificates/{resourceName}. - https://certificatemanager.googleapis.com/v1alpha1/projects/{project }/locations/{location}/certificates/{resourceName}.
+   * URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. Certificate Manager Certificates must include the certificatemanager API namespace. Using Certificate Manager Certificates in this field is not supported by Global external Application Load Balancer or Classic Application Load Balancer, use certificate_map instead. Currently, you may specify up to 15 Classic SSL Certificates or up to 100 Certificate Manager Certificates. Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis.com/projects/{project}/locations/{ location}/certificates/{resourceName}. - https://certificatemanager.googleapis.com/v1alpha1/projects/{project }/locations/{location}/certificates/{resourceName}.
    * 
* * repeated string ssl_certificates = 366006543; @@ -1309,7 +1309,7 @@ public com.google.protobuf.ProtocolStringList getSslCertificatesList() { * * *
-   * URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. Certificate Manager Certificates must include the certificatemanager API. Certificate Manager Certificates are not supported by Global external Application Load Balancer or Classic Application Load Balancer, use certificate_map instead. Currently, you may specify up to 15 Classic SSL Certificates. Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis.com/projects/{project}/locations/{ location}/certificates/{resourceName}. - https://certificatemanager.googleapis.com/v1alpha1/projects/{project }/locations/{location}/certificates/{resourceName}.
+   * URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. Certificate Manager Certificates must include the certificatemanager API namespace. Using Certificate Manager Certificates in this field is not supported by Global external Application Load Balancer or Classic Application Load Balancer, use certificate_map instead. Currently, you may specify up to 15 Classic SSL Certificates or up to 100 Certificate Manager Certificates. Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis.com/projects/{project}/locations/{ location}/certificates/{resourceName}. - https://certificatemanager.googleapis.com/v1alpha1/projects/{project }/locations/{location}/certificates/{resourceName}.
    * 
* * repeated string ssl_certificates = 366006543; @@ -1323,7 +1323,7 @@ public int getSslCertificatesCount() { * * *
-   * URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. Certificate Manager Certificates must include the certificatemanager API. Certificate Manager Certificates are not supported by Global external Application Load Balancer or Classic Application Load Balancer, use certificate_map instead. Currently, you may specify up to 15 Classic SSL Certificates. Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis.com/projects/{project}/locations/{ location}/certificates/{resourceName}. - https://certificatemanager.googleapis.com/v1alpha1/projects/{project }/locations/{location}/certificates/{resourceName}.
+   * URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. Certificate Manager Certificates must include the certificatemanager API namespace. Using Certificate Manager Certificates in this field is not supported by Global external Application Load Balancer or Classic Application Load Balancer, use certificate_map instead. Currently, you may specify up to 15 Classic SSL Certificates or up to 100 Certificate Manager Certificates. Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis.com/projects/{project}/locations/{ location}/certificates/{resourceName}. - https://certificatemanager.googleapis.com/v1alpha1/projects/{project }/locations/{location}/certificates/{resourceName}.
    * 
* * repeated string ssl_certificates = 366006543; @@ -1338,7 +1338,7 @@ public java.lang.String getSslCertificates(int index) { * * *
-   * URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. Certificate Manager Certificates must include the certificatemanager API. Certificate Manager Certificates are not supported by Global external Application Load Balancer or Classic Application Load Balancer, use certificate_map instead. Currently, you may specify up to 15 Classic SSL Certificates. Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis.com/projects/{project}/locations/{ location}/certificates/{resourceName}. - https://certificatemanager.googleapis.com/v1alpha1/projects/{project }/locations/{location}/certificates/{resourceName}.
+   * URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. Certificate Manager Certificates must include the certificatemanager API namespace. Using Certificate Manager Certificates in this field is not supported by Global external Application Load Balancer or Classic Application Load Balancer, use certificate_map instead. Currently, you may specify up to 15 Classic SSL Certificates or up to 100 Certificate Manager Certificates. Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis.com/projects/{project}/locations/{ location}/certificates/{resourceName}. - https://certificatemanager.googleapis.com/v1alpha1/projects/{project }/locations/{location}/certificates/{resourceName}.
    * 
* * repeated string ssl_certificates = 366006543; @@ -3960,7 +3960,7 @@ private void ensureSslCertificatesIsMutable() { * * *
-     * URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. Certificate Manager Certificates must include the certificatemanager API. Certificate Manager Certificates are not supported by Global external Application Load Balancer or Classic Application Load Balancer, use certificate_map instead. Currently, you may specify up to 15 Classic SSL Certificates. Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis.com/projects/{project}/locations/{ location}/certificates/{resourceName}. - https://certificatemanager.googleapis.com/v1alpha1/projects/{project }/locations/{location}/certificates/{resourceName}.
+     * URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. Certificate Manager Certificates must include the certificatemanager API namespace. Using Certificate Manager Certificates in this field is not supported by Global external Application Load Balancer or Classic Application Load Balancer, use certificate_map instead. Currently, you may specify up to 15 Classic SSL Certificates or up to 100 Certificate Manager Certificates. Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis.com/projects/{project}/locations/{ location}/certificates/{resourceName}. - https://certificatemanager.googleapis.com/v1alpha1/projects/{project }/locations/{location}/certificates/{resourceName}.
      * 
* * repeated string ssl_certificates = 366006543; @@ -3975,7 +3975,7 @@ public com.google.protobuf.ProtocolStringList getSslCertificatesList() { * * *
-     * URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. Certificate Manager Certificates must include the certificatemanager API. Certificate Manager Certificates are not supported by Global external Application Load Balancer or Classic Application Load Balancer, use certificate_map instead. Currently, you may specify up to 15 Classic SSL Certificates. Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis.com/projects/{project}/locations/{ location}/certificates/{resourceName}. - https://certificatemanager.googleapis.com/v1alpha1/projects/{project }/locations/{location}/certificates/{resourceName}.
+     * URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. Certificate Manager Certificates must include the certificatemanager API namespace. Using Certificate Manager Certificates in this field is not supported by Global external Application Load Balancer or Classic Application Load Balancer, use certificate_map instead. Currently, you may specify up to 15 Classic SSL Certificates or up to 100 Certificate Manager Certificates. Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis.com/projects/{project}/locations/{ location}/certificates/{resourceName}. - https://certificatemanager.googleapis.com/v1alpha1/projects/{project }/locations/{location}/certificates/{resourceName}.
      * 
* * repeated string ssl_certificates = 366006543; @@ -3989,7 +3989,7 @@ public int getSslCertificatesCount() { * * *
-     * URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. Certificate Manager Certificates must include the certificatemanager API. Certificate Manager Certificates are not supported by Global external Application Load Balancer or Classic Application Load Balancer, use certificate_map instead. Currently, you may specify up to 15 Classic SSL Certificates. Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis.com/projects/{project}/locations/{ location}/certificates/{resourceName}. - https://certificatemanager.googleapis.com/v1alpha1/projects/{project }/locations/{location}/certificates/{resourceName}.
+     * URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. Certificate Manager Certificates must include the certificatemanager API namespace. Using Certificate Manager Certificates in this field is not supported by Global external Application Load Balancer or Classic Application Load Balancer, use certificate_map instead. Currently, you may specify up to 15 Classic SSL Certificates or up to 100 Certificate Manager Certificates. Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis.com/projects/{project}/locations/{ location}/certificates/{resourceName}. - https://certificatemanager.googleapis.com/v1alpha1/projects/{project }/locations/{location}/certificates/{resourceName}.
      * 
* * repeated string ssl_certificates = 366006543; @@ -4004,7 +4004,7 @@ public java.lang.String getSslCertificates(int index) { * * *
-     * URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. Certificate Manager Certificates must include the certificatemanager API. Certificate Manager Certificates are not supported by Global external Application Load Balancer or Classic Application Load Balancer, use certificate_map instead. Currently, you may specify up to 15 Classic SSL Certificates. Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis.com/projects/{project}/locations/{ location}/certificates/{resourceName}. - https://certificatemanager.googleapis.com/v1alpha1/projects/{project }/locations/{location}/certificates/{resourceName}.
+     * URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. Certificate Manager Certificates must include the certificatemanager API namespace. Using Certificate Manager Certificates in this field is not supported by Global external Application Load Balancer or Classic Application Load Balancer, use certificate_map instead. Currently, you may specify up to 15 Classic SSL Certificates or up to 100 Certificate Manager Certificates. Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis.com/projects/{project}/locations/{ location}/certificates/{resourceName}. - https://certificatemanager.googleapis.com/v1alpha1/projects/{project }/locations/{location}/certificates/{resourceName}.
      * 
* * repeated string ssl_certificates = 366006543; @@ -4019,7 +4019,7 @@ public com.google.protobuf.ByteString getSslCertificatesBytes(int index) { * * *
-     * URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. Certificate Manager Certificates must include the certificatemanager API. Certificate Manager Certificates are not supported by Global external Application Load Balancer or Classic Application Load Balancer, use certificate_map instead. Currently, you may specify up to 15 Classic SSL Certificates. Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis.com/projects/{project}/locations/{ location}/certificates/{resourceName}. - https://certificatemanager.googleapis.com/v1alpha1/projects/{project }/locations/{location}/certificates/{resourceName}.
+     * URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. Certificate Manager Certificates must include the certificatemanager API namespace. Using Certificate Manager Certificates in this field is not supported by Global external Application Load Balancer or Classic Application Load Balancer, use certificate_map instead. Currently, you may specify up to 15 Classic SSL Certificates or up to 100 Certificate Manager Certificates. Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis.com/projects/{project}/locations/{ location}/certificates/{resourceName}. - https://certificatemanager.googleapis.com/v1alpha1/projects/{project }/locations/{location}/certificates/{resourceName}.
      * 
* * repeated string ssl_certificates = 366006543; @@ -4042,7 +4042,7 @@ public Builder setSslCertificates(int index, java.lang.String value) { * * *
-     * URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. Certificate Manager Certificates must include the certificatemanager API. Certificate Manager Certificates are not supported by Global external Application Load Balancer or Classic Application Load Balancer, use certificate_map instead. Currently, you may specify up to 15 Classic SSL Certificates. Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis.com/projects/{project}/locations/{ location}/certificates/{resourceName}. - https://certificatemanager.googleapis.com/v1alpha1/projects/{project }/locations/{location}/certificates/{resourceName}.
+     * URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. Certificate Manager Certificates must include the certificatemanager API namespace. Using Certificate Manager Certificates in this field is not supported by Global external Application Load Balancer or Classic Application Load Balancer, use certificate_map instead. Currently, you may specify up to 15 Classic SSL Certificates or up to 100 Certificate Manager Certificates. Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis.com/projects/{project}/locations/{ location}/certificates/{resourceName}. - https://certificatemanager.googleapis.com/v1alpha1/projects/{project }/locations/{location}/certificates/{resourceName}.
      * 
* * repeated string ssl_certificates = 366006543; @@ -4064,7 +4064,7 @@ public Builder addSslCertificates(java.lang.String value) { * * *
-     * URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. Certificate Manager Certificates must include the certificatemanager API. Certificate Manager Certificates are not supported by Global external Application Load Balancer or Classic Application Load Balancer, use certificate_map instead. Currently, you may specify up to 15 Classic SSL Certificates. Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis.com/projects/{project}/locations/{ location}/certificates/{resourceName}. - https://certificatemanager.googleapis.com/v1alpha1/projects/{project }/locations/{location}/certificates/{resourceName}.
+     * URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. Certificate Manager Certificates must include the certificatemanager API namespace. Using Certificate Manager Certificates in this field is not supported by Global external Application Load Balancer or Classic Application Load Balancer, use certificate_map instead. Currently, you may specify up to 15 Classic SSL Certificates or up to 100 Certificate Manager Certificates. Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis.com/projects/{project}/locations/{ location}/certificates/{resourceName}. - https://certificatemanager.googleapis.com/v1alpha1/projects/{project }/locations/{location}/certificates/{resourceName}.
      * 
* * repeated string ssl_certificates = 366006543; @@ -4083,7 +4083,7 @@ public Builder addAllSslCertificates(java.lang.Iterable values * * *
-     * URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. Certificate Manager Certificates must include the certificatemanager API. Certificate Manager Certificates are not supported by Global external Application Load Balancer or Classic Application Load Balancer, use certificate_map instead. Currently, you may specify up to 15 Classic SSL Certificates. Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis.com/projects/{project}/locations/{ location}/certificates/{resourceName}. - https://certificatemanager.googleapis.com/v1alpha1/projects/{project }/locations/{location}/certificates/{resourceName}.
+     * URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. Certificate Manager Certificates must include the certificatemanager API namespace. Using Certificate Manager Certificates in this field is not supported by Global external Application Load Balancer or Classic Application Load Balancer, use certificate_map instead. Currently, you may specify up to 15 Classic SSL Certificates or up to 100 Certificate Manager Certificates. Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis.com/projects/{project}/locations/{ location}/certificates/{resourceName}. - https://certificatemanager.googleapis.com/v1alpha1/projects/{project }/locations/{location}/certificates/{resourceName}.
      * 
* * repeated string ssl_certificates = 366006543; @@ -4101,7 +4101,7 @@ public Builder clearSslCertificates() { * * *
-     * URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. Certificate Manager Certificates must include the certificatemanager API. Certificate Manager Certificates are not supported by Global external Application Load Balancer or Classic Application Load Balancer, use certificate_map instead. Currently, you may specify up to 15 Classic SSL Certificates. Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis.com/projects/{project}/locations/{ location}/certificates/{resourceName}. - https://certificatemanager.googleapis.com/v1alpha1/projects/{project }/locations/{location}/certificates/{resourceName}.
+     * URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. Certificate Manager Certificates must include the certificatemanager API namespace. Using Certificate Manager Certificates in this field is not supported by Global external Application Load Balancer or Classic Application Load Balancer, use certificate_map instead. Currently, you may specify up to 15 Classic SSL Certificates or up to 100 Certificate Manager Certificates. Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis.com/projects/{project}/locations/{ location}/certificates/{resourceName}. - https://certificatemanager.googleapis.com/v1alpha1/projects/{project }/locations/{location}/certificates/{resourceName}.
      * 
* * repeated string ssl_certificates = 366006543; diff --git a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxyOrBuilder.java b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxyOrBuilder.java index cce8bed0cada..fc7cb95d095c 100644 --- a/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxyOrBuilder.java +++ b/java-compute/proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/TargetHttpsProxyOrBuilder.java @@ -513,7 +513,7 @@ public interface TargetHttpsProxyOrBuilder * * *
-   * URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. Certificate Manager Certificates must include the certificatemanager API. Certificate Manager Certificates are not supported by Global external Application Load Balancer or Classic Application Load Balancer, use certificate_map instead. Currently, you may specify up to 15 Classic SSL Certificates. Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis.com/projects/{project}/locations/{ location}/certificates/{resourceName}. - https://certificatemanager.googleapis.com/v1alpha1/projects/{project }/locations/{location}/certificates/{resourceName}.
+   * URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. Certificate Manager Certificates must include the certificatemanager API namespace. Using Certificate Manager Certificates in this field is not supported by Global external Application Load Balancer or Classic Application Load Balancer, use certificate_map instead. Currently, you may specify up to 15 Classic SSL Certificates or up to 100 Certificate Manager Certificates. Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis.com/projects/{project}/locations/{ location}/certificates/{resourceName}. - https://certificatemanager.googleapis.com/v1alpha1/projects/{project }/locations/{location}/certificates/{resourceName}.
    * 
* * repeated string ssl_certificates = 366006543; @@ -525,7 +525,7 @@ public interface TargetHttpsProxyOrBuilder * * *
-   * URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. Certificate Manager Certificates must include the certificatemanager API. Certificate Manager Certificates are not supported by Global external Application Load Balancer or Classic Application Load Balancer, use certificate_map instead. Currently, you may specify up to 15 Classic SSL Certificates. Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis.com/projects/{project}/locations/{ location}/certificates/{resourceName}. - https://certificatemanager.googleapis.com/v1alpha1/projects/{project }/locations/{location}/certificates/{resourceName}.
+   * URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. Certificate Manager Certificates must include the certificatemanager API namespace. Using Certificate Manager Certificates in this field is not supported by Global external Application Load Balancer or Classic Application Load Balancer, use certificate_map instead. Currently, you may specify up to 15 Classic SSL Certificates or up to 100 Certificate Manager Certificates. Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis.com/projects/{project}/locations/{ location}/certificates/{resourceName}. - https://certificatemanager.googleapis.com/v1alpha1/projects/{project }/locations/{location}/certificates/{resourceName}.
    * 
* * repeated string ssl_certificates = 366006543; @@ -537,7 +537,7 @@ public interface TargetHttpsProxyOrBuilder * * *
-   * URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. Certificate Manager Certificates must include the certificatemanager API. Certificate Manager Certificates are not supported by Global external Application Load Balancer or Classic Application Load Balancer, use certificate_map instead. Currently, you may specify up to 15 Classic SSL Certificates. Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis.com/projects/{project}/locations/{ location}/certificates/{resourceName}. - https://certificatemanager.googleapis.com/v1alpha1/projects/{project }/locations/{location}/certificates/{resourceName}.
+   * URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. Certificate Manager Certificates must include the certificatemanager API namespace. Using Certificate Manager Certificates in this field is not supported by Global external Application Load Balancer or Classic Application Load Balancer, use certificate_map instead. Currently, you may specify up to 15 Classic SSL Certificates or up to 100 Certificate Manager Certificates. Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis.com/projects/{project}/locations/{ location}/certificates/{resourceName}. - https://certificatemanager.googleapis.com/v1alpha1/projects/{project }/locations/{location}/certificates/{resourceName}.
    * 
* * repeated string ssl_certificates = 366006543; @@ -550,7 +550,7 @@ public interface TargetHttpsProxyOrBuilder * * *
-   * URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. Certificate Manager Certificates must include the certificatemanager API. Certificate Manager Certificates are not supported by Global external Application Load Balancer or Classic Application Load Balancer, use certificate_map instead. Currently, you may specify up to 15 Classic SSL Certificates. Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis.com/projects/{project}/locations/{ location}/certificates/{resourceName}. - https://certificatemanager.googleapis.com/v1alpha1/projects/{project }/locations/{location}/certificates/{resourceName}.
+   * URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. Certificate Manager Certificates must include the certificatemanager API namespace. Using Certificate Manager Certificates in this field is not supported by Global external Application Load Balancer or Classic Application Load Balancer, use certificate_map instead. Currently, you may specify up to 15 Classic SSL Certificates or up to 100 Certificate Manager Certificates. Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis.com/projects/{project}/locations/{ location}/certificates/{resourceName}. - https://certificatemanager.googleapis.com/v1alpha1/projects/{project }/locations/{location}/certificates/{resourceName}.
    * 
* * repeated string ssl_certificates = 366006543; 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 093ddb17e92f..09d9f868e6d6 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 @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ // Generated by the disco-to-proto3-converter. DO NOT EDIT! // Source Discovery file: compute.v1.json -// Source file revision: 20241201 +// Source file revision: 20250107 // API name: compute // API version: v1 @@ -270,7 +270,7 @@ message AccessConfig { // The DNS domain name for the public PTR record. You can set this field only if the `setPublicPtr` field is enabled in accessConfig. If this field is unspecified in ipv6AccessConfig, a default PTR record will be created for first IP in associated external IPv6 range. optional string public_ptr_domain_name = 316599167; - // [Output Only] The resource URL for the security policy associated with this access config. + // The resource URL for the security policy associated with this access config. optional string security_policy = 171082513; // Specifies whether a public DNS 'PTR' record should be created to map the external IP address of the instance to a DNS domain name. This field is not used in ipv6AccessConfig. A default PTR record will be created if the VM has external IPv6 range associated. @@ -1528,6 +1528,34 @@ message AggregatedListNetworkEndpointGroupsRequest { } +// A request message for NetworkFirewallPolicies.AggregatedList. See the method description for details. +message AggregatedListNetworkFirewallPoliciesRequest { + // 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; + + // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. + optional bool include_all_scopes = 391327988; + + // 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; + + // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. + optional int64 service_project_number = 316757497; + +} + // A request message for NodeGroups.AggregatedList. See the method description for details. message AggregatedListNodeGroupsRequest { // 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. @@ -2779,7 +2807,7 @@ message AttachedDiskInitializeParams { // The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key. InstanceTemplate and InstancePropertiesPatch do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys. optional CustomerEncryptionKey source_image_encryption_key = 381503659; - // The source snapshot to create this disk. When creating a new instance boot disk, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set. + // The source snapshot to create this disk. When creating a new instance boot disk, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set. Note: You cannot create VMs in bulk using a snapshot as the source. Use an image instead when you create VMs using the bulk insert method. optional string source_snapshot = 126061928; // The customer-supplied encryption key of the source snapshot. @@ -7637,7 +7665,7 @@ message ErrorInfo { // The logical grouping to which the "reason" belongs. The error domain is typically the registered service name of the tool or product that generates the error. Example: "pubsub.googleapis.com". If the error is generated by some common infrastructure, the error domain must be a globally unique value that identifies the infrastructure. For Google API infrastructure, the error domain is "googleapis.com". optional string domain = 284415172; - // Additional structured details about this error. Keys must match /a-z+/ but should ideally be lowerCamelCase. Also they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than {"instanceLimit": "100/request"}, should be returned as, {"instanceLimitPerRequest": "100"}, if the client exceeds the number of instances that can be created in a single (batch) request. + // Additional structured details about this error. Keys must match a regular expression of `a-z+` but should ideally be lowerCamelCase. Also, they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than `{"instanceLimit": "100/request"}`, should be returned as, `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of instances that can be created in a single (batch) request. map metadatas = 8514340; // The reason of the error. This is a constant value that identifies the proximate cause of the error. Error reasons are unique within a particular domain of errors. This should be at most 63 characters and match a regular expression of `A-Z+[A-Z0-9]`, which represents UPPER_SNAKE_CASE. @@ -8001,6 +8029,16 @@ message FirewallPoliciesListAssociationsResponse { } +// +message FirewallPoliciesScopedList { + // A list of firewall policies contained in this scope. + repeated FirewallPolicy firewall_policies = 392512943; + + // Informational warning which replaces the list of firewall policies when the list is empty. + optional Warning warning = 50704284; + +} + // Represents a Firewall Policy resource. message FirewallPolicy { // A list of associations that belong to this firewall policy. @@ -13400,7 +13438,7 @@ message InstanceGroup { // The name of the instance group. The name must be 1-63 characters long, and comply with RFC1035. optional string name = 3373707; - // Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group. + // Optional. Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group. repeated NamedPort named_ports = 427598732; // [Output Only] The URL of the network to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0). @@ -15217,11 +15255,14 @@ message Interconnect { // Represents an Interconnect Attachment (VLAN) resource. You can use Interconnect attachments (VLANS) to connect your Virtual Private Cloud networks to your on-premises networks through an Interconnect. For more information, read Creating VLAN Attachments. message InterconnectAttachment { - // Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s + // Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s - BPS_100G: 100 Gbit/s enum Bandwidth { // A value indicating that the enum field is not set. UNDEFINED_BANDWIDTH = 0; + // 100 Gbit/s + BPS_100G = 49547952; + // 100 Mbit/s BPS_100M = 49547958; @@ -15260,7 +15301,7 @@ message InterconnectAttachment { } - // Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY. + // Input only. Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY. enum EdgeAvailabilityDomain { // A value indicating that the enum field is not set. UNDEFINED_EDGE_AVAILABILITY_DOMAIN = 0; @@ -15358,14 +15399,14 @@ message InterconnectAttachment { // Determines whether this Attachment will carry packets. Not present for PARTNER_PROVIDER. optional bool admin_enabled = 445675089; - // Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s + // Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s - BPS_100G: 100 Gbit/s // Check the Bandwidth enum for the list of possible values. optional string bandwidth = 181715121; // This field is not available. repeated string candidate_ipv6_subnets = 70682522; - // Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space. + // Input only. Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space. repeated string candidate_subnets = 237842938; // [Output Only] IPv4 address + prefix length to be configured on Cloud Router Interface for this interconnect attachment. @@ -15398,7 +15439,7 @@ message InterconnectAttachment { // An optional description of this resource. optional string description = 422937596; - // Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY. + // Input only. Desired availability domain for the attachment. Only available for type PARTNER, at creation time, and can take one of the following values: - AVAILABILITY_DOMAIN_ANY - AVAILABILITY_DOMAIN_1 - AVAILABILITY_DOMAIN_2 For improved reliability, customers should configure a pair of attachments, one per availability domain. The selected availability domain will be provided to the Partner via the pairing key, so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY. // Check the EdgeAvailabilityDomain enum for the list of possible values. optional string edge_availability_domain = 71289510; @@ -15472,7 +15513,7 @@ message InterconnectAttachment { // Check the State enum for the list of possible values. optional string state = 109757585; - // Length of the IPv4 subnet mask. Allowed values: - 29 (default) - 30 The default value is 29, except for Cross-Cloud Interconnect connections that use an InterconnectRemoteLocation with a constraints.subnetLengthRange.min equal to 30. For example, connections that use an Azure remote location fall into this category. In these cases, the default value is 30, and requesting 29 returns an error. Where both 29 and 30 are allowed, 29 is preferred, because it gives Google Cloud Support more debugging visibility. + // Input only. Length of the IPv4 subnet mask. Allowed values: - 29 (default) - 30 The default value is 29, except for Cross-Cloud Interconnect connections that use an InterconnectRemoteLocation with a constraints.subnetLengthRange.min equal to 30. For example, connections that use an Azure remote location fall into this category. In these cases, the default value is 30, and requesting 29 returns an error. Where both 29 and 30 are allowed, 29 is preferred, because it gives Google Cloud Support more debugging visibility. optional int32 subnet_length = 279831048; // The type of interconnect attachment this is, which can take one of the following values: - DEDICATED: an attachment to a Dedicated Interconnect. - PARTNER: an attachment to a Partner Interconnect, created by the customer. - PARTNER_PROVIDER: an attachment to a Partner Interconnect, created by the partner. @@ -20294,16 +20335,16 @@ message NetworkEdgeSecurityServicesScopedList { // The network endpoint. message NetworkEndpoint { - // Metadata defined as annotations on the network endpoint. + // Optional metadata defined as annotations on the network endpoint. map annotations = 112032548; - // Represents the port number to which PSC consumer sends packets. Only valid for network endpoint groups created with GCE_VM_IP_PORTMAP endpoint type. + // Represents the port number to which PSC consumer sends packets. Optional. Only valid for network endpoint groups created with GCE_VM_IP_PORTMAP endpoint type. optional int32 client_destination_port = 123765766; // Optional fully qualified domain name of network endpoint. This can only be specified when NetworkEndpointGroup.network_endpoint_type is NON_GCP_FQDN_PORT. optional string fqdn = 3150485; - // The name or a URL of VM instance of this network endpoint. This field is required for network endpoints of type GCE_VM_IP and GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group (for zonal NEGs) or in the zone within the region of the NEG (for regional NEGs). If the ipAddress is specified, it must belongs to the VM instance. The name must be 1-63 characters long, and comply with RFC1035 or be a valid URL pointing to an existing instance. + // The name or a URL of VM instance of this network endpoint. Optional, the field presence depends on the network endpoint type. The field is required for network endpoints of type GCE_VM_IP and GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group (for zonal NEGs) or in the zone within the region of the NEG (for regional NEGs). If the ipAddress is specified, it must belongs to the VM instance. The name must be 1-63 characters long, and comply with RFC1035 or be a valid URL pointing to an existing instance. optional string instance = 18257045; // Optional IPv4 address of network endpoint. The IP address must belong to a VM in Compute Engine (either the primary IP or as part of an aliased IP range). If the IP address is not specified, then the primary IP address for the VM instance in the network that the network endpoint group belongs to will be used. This field is redundant and need not be set for network endpoints of type GCE_VM_IP. If set, it must be set to the primary internal IP address of the attached VM instance that matches the subnetwork of the NEG. The primary internal IP address from any NIC of a multi-NIC VM instance can be added to a NEG as long as it matches the NEG subnetwork. @@ -20350,22 +20391,22 @@ message NetworkEndpointGroup { } - // Metadata defined as annotations on the network endpoint group. + // Optional. Metadata defined as annotations on the network endpoint group. map annotations = 112032548; - // Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set. + // Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set. optional NetworkEndpointGroupAppEngine app_engine = 340788768; - // Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set. + // Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set. optional NetworkEndpointGroupCloudFunction cloud_function = 519893666; - // Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set. + // Optional. Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set. optional NetworkEndpointGroupCloudRun cloud_run = 111060353; // [Output Only] Creation timestamp in RFC3339 text format. optional string creation_timestamp = 30525366; - // The default port used if the port number is not specified in the network endpoint. If the network endpoint type is either GCE_VM_IP, SERVERLESS or PRIVATE_SERVICE_CONNECT, this field must not be specified. + // The default port used if the port number is not specified in the network endpoint. Optional. If the network endpoint type is either GCE_VM_IP, SERVERLESS or PRIVATE_SERVICE_CONNECT, this field must not be specified. optional int32 default_port = 423377855; // An optional description of this resource. Provide this property when you create the resource. @@ -20387,9 +20428,10 @@ message NetworkEndpointGroup { // Check the NetworkEndpointType enum for the list of possible values. optional string network_endpoint_type = 118301523; + // Optional. Only valid when networkEndpointType is PRIVATE_SERVICE_CONNECT. optional NetworkEndpointGroupPscData psc_data = 71937481; - // The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment. An example value is: asia-northeast3-cloudkms.googleapis.com + // The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment. An example value is: asia-northeast3-cloudkms.googleapis.com. Optional. Only valid when networkEndpointType is PRIVATE_SERVICE_CONNECT. optional string psc_target_service = 269132134; // [Output Only] The URL of the region where the network endpoint group is located. @@ -20599,14 +20641,39 @@ message NetworkEndpointGroupsScopedList { // message NetworkEndpointWithHealthStatus { - // [Output only] The health status of network endpoint; + // [Output only] The health status of network endpoint. Optional. Displayed only if the network endpoint has centralized health checking configured. repeated HealthStatusForNetworkEndpoint healths = 258689431; - // [Output only] The network endpoint; + // [Output only] The network endpoint. optional NetworkEndpoint network_endpoint = 56789126; } +// +message NetworkFirewallPolicyAggregatedList { + // [Output Only] Unique identifier for the resource; defined by the server. + optional string id = 3355; + + // A list of FirewallPoliciesScopedList resources. + map items = 100526016; + + // [Output Only] Type of resource. Always compute#networkFirewallPoliciesAggregatedList for lists of network firewall policies. + 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. + repeated string unreachables = 243372063; + + // [Output Only] Informational warning message. + optional Warning warning = 50704284; + +} + // A network interface resource attached to an instance. message NetworkInterface { // [Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork. Valid only if stackType is IPV4_IPV6. @@ -21295,6 +21362,9 @@ message NetworkRoutingConfig { } // 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. + // Additional supported values which may be not listed in the enum directly due to technical reasons: + // ADD_COST_TO_MED + // DEFAULT enum BgpInterRegionCost { // A value indicating that the enum field is not set. UNDEFINED_BGP_INTER_REGION_COST = 0; @@ -21305,6 +21375,16 @@ message NetworkRoutingConfig { } + // [Output Only] Effective value of the bgp_inter_region_cost field. + // Additional supported values which may be not listed in the enum directly due to technical reasons: + // ADD_COST_TO_MED + // DEFAULT + enum EffectiveBgpInterRegionCost { + // A value indicating that the enum field is not set. + UNDEFINED_EFFECTIVE_BGP_INTER_REGION_COST = 0; + + } + // 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. @@ -21327,6 +21407,13 @@ message NetworkRoutingConfig { // Check the BgpInterRegionCost enum for the list of possible values. optional string bgp_inter_region_cost = 462142689; + // [Output Only] Effective value of the bgp_always_compare_med field. + optional bool effective_bgp_always_compare_med = 214661838; + + // [Output Only] Effective value of the bgp_inter_region_cost field. + // Check the EffectiveBgpInterRegionCost enum for the list of possible values. + optional string effective_bgp_inter_region_cost = 185098313; + // 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; @@ -33245,7 +33332,7 @@ message TargetHttpsProxy { // Optional. A URL referring to a networksecurity.ServerTlsPolicy resource that describes how the proxy should authenticate inbound traffic. serverTlsPolicy only applies to a global TargetHttpsProxy attached to globalForwardingRules with the loadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL or EXTERNAL_MANAGED. For details which ServerTlsPolicy resources are accepted with INTERNAL_SELF_MANAGED and which with EXTERNAL, EXTERNAL_MANAGED loadBalancingScheme consult ServerTlsPolicy documentation. If left blank, communications are not encrypted. optional string server_tls_policy = 295825266; - // URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. Certificate Manager Certificates must include the certificatemanager API. Certificate Manager Certificates are not supported by Global external Application Load Balancer or Classic Application Load Balancer, use certificate_map instead. Currently, you may specify up to 15 Classic SSL Certificates. Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis.com/projects/{project}/locations/{ location}/certificates/{resourceName}. - https://certificatemanager.googleapis.com/v1alpha1/projects/{project }/locations/{location}/certificates/{resourceName}. + // URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. SslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. The URLs should refer to a SSL Certificate resource or Certificate Manager Certificate resource. Mixing Classic Certificates and Certificate Manager Certificates is not allowed. Certificate Manager Certificates must include the certificatemanager API namespace. Using Certificate Manager Certificates in this field is not supported by Global external Application Load Balancer or Classic Application Load Balancer, use certificate_map instead. Currently, you may specify up to 15 Classic SSL Certificates or up to 100 Certificate Manager Certificates. Certificate Manager Certificates accepted formats are: - //certificatemanager.googleapis.com/projects/{project}/locations/{ location}/certificates/{resourceName}. - https://certificatemanager.googleapis.com/v1alpha1/projects/{project }/locations/{location}/certificates/{resourceName}. repeated string ssl_certificates = 366006543; // URL of SslPolicy resource that will be associated with the TargetHttpsProxy resource. If not set, the TargetHttpsProxy resource has no SSL policy configured. @@ -39799,6 +39886,14 @@ service NetworkFirewallPolicies { option (google.cloud.operation_service) = "GlobalOperations"; } + // Retrieves an aggregated list of network firewall policies, listing network firewall policies from all applicable scopes (global and regional) and grouping the results per scope. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. + rpc AggregatedList(AggregatedListNetworkFirewallPoliciesRequest) returns (NetworkFirewallPolicyAggregatedList) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/aggregated/firewallPolicies" + }; + option (google.api.method_signature) = "project"; + } + // Copies rules to the specified firewall policy. rpc CloneRules(CloneRulesNetworkFirewallPolicyRequest) returns (Operation) { option (google.api.http) = { diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/networkfirewallpolicies/aggregatedlist/AsyncAggregatedList.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/networkfirewallpolicies/aggregatedlist/AsyncAggregatedList.java new file mode 100644 index 000000000000..a3557062bf52 --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/networkfirewallpolicies/aggregatedlist/AsyncAggregatedList.java @@ -0,0 +1,60 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_NetworkFirewallPolicies_AggregatedList_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest; +import com.google.cloud.compute.v1.FirewallPoliciesScopedList; +import com.google.cloud.compute.v1.NetworkFirewallPoliciesClient; +import java.util.Map; + +public class AsyncAggregatedList { + + public static void main(String[] args) throws Exception { + asyncAggregatedList(); + } + + public static void asyncAggregatedList() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkFirewallPoliciesClient networkFirewallPoliciesClient = + NetworkFirewallPoliciesClient.create()) { + AggregatedListNetworkFirewallPoliciesRequest request = + AggregatedListNetworkFirewallPoliciesRequest.newBuilder() + .setFilter("filter-1274492040") + .setIncludeAllScopes(true) + .setMaxResults(1128457243) + .setOrderBy("orderBy-1207110587") + .setPageToken("pageToken873572522") + .setProject("project-309310695") + .setReturnPartialSuccess(true) + .setServiceProjectNumber(-1293855239) + .build(); + ApiFuture> future = + networkFirewallPoliciesClient.aggregatedListPagedCallable().futureCall(request); + // Do something. + for (Map.Entry element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END compute_v1_generated_NetworkFirewallPolicies_AggregatedList_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/networkfirewallpolicies/aggregatedlist/AsyncAggregatedListPaged.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/networkfirewallpolicies/aggregatedlist/AsyncAggregatedListPaged.java new file mode 100644 index 000000000000..632d02099c6f --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/networkfirewallpolicies/aggregatedlist/AsyncAggregatedListPaged.java @@ -0,0 +1,68 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_NetworkFirewallPolicies_AggregatedList_Paged_async] +import com.google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest; +import com.google.cloud.compute.v1.FirewallPoliciesScopedList; +import com.google.cloud.compute.v1.NetworkFirewallPoliciesClient; +import com.google.cloud.compute.v1.NetworkFirewallPolicyAggregatedList; +import com.google.common.base.Strings; +import java.util.Map; + +public class AsyncAggregatedListPaged { + + public static void main(String[] args) throws Exception { + asyncAggregatedListPaged(); + } + + public static void asyncAggregatedListPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkFirewallPoliciesClient networkFirewallPoliciesClient = + NetworkFirewallPoliciesClient.create()) { + AggregatedListNetworkFirewallPoliciesRequest request = + AggregatedListNetworkFirewallPoliciesRequest.newBuilder() + .setFilter("filter-1274492040") + .setIncludeAllScopes(true) + .setMaxResults(1128457243) + .setOrderBy("orderBy-1207110587") + .setPageToken("pageToken873572522") + .setProject("project-309310695") + .setReturnPartialSuccess(true) + .setServiceProjectNumber(-1293855239) + .build(); + while (true) { + NetworkFirewallPolicyAggregatedList response = + networkFirewallPoliciesClient.aggregatedListCallable().call(request); + for (Map.Entry 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_NetworkFirewallPolicies_AggregatedList_Paged_async] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/networkfirewallpolicies/aggregatedlist/SyncAggregatedList.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/networkfirewallpolicies/aggregatedlist/SyncAggregatedList.java new file mode 100644 index 000000000000..20943862363a --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/networkfirewallpolicies/aggregatedlist/SyncAggregatedList.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_NetworkFirewallPolicies_AggregatedList_sync] +import com.google.cloud.compute.v1.AggregatedListNetworkFirewallPoliciesRequest; +import com.google.cloud.compute.v1.FirewallPoliciesScopedList; +import com.google.cloud.compute.v1.NetworkFirewallPoliciesClient; +import java.util.Map; + +public class SyncAggregatedList { + + public static void main(String[] args) throws Exception { + syncAggregatedList(); + } + + public static void syncAggregatedList() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkFirewallPoliciesClient networkFirewallPoliciesClient = + NetworkFirewallPoliciesClient.create()) { + AggregatedListNetworkFirewallPoliciesRequest request = + AggregatedListNetworkFirewallPoliciesRequest.newBuilder() + .setFilter("filter-1274492040") + .setIncludeAllScopes(true) + .setMaxResults(1128457243) + .setOrderBy("orderBy-1207110587") + .setPageToken("pageToken873572522") + .setProject("project-309310695") + .setReturnPartialSuccess(true) + .setServiceProjectNumber(-1293855239) + .build(); + for (Map.Entry element : + networkFirewallPoliciesClient.aggregatedList(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END compute_v1_generated_NetworkFirewallPolicies_AggregatedList_sync] diff --git a/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/networkfirewallpolicies/aggregatedlist/SyncAggregatedListString.java b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/networkfirewallpolicies/aggregatedlist/SyncAggregatedListString.java new file mode 100644 index 000000000000..21d91e9e218d --- /dev/null +++ b/java-compute/samples/snippets/generated/com/google/cloud/compute/v1/networkfirewallpolicies/aggregatedlist/SyncAggregatedListString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.compute.v1.samples; + +// [START compute_v1_generated_NetworkFirewallPolicies_AggregatedList_String_sync] +import com.google.cloud.compute.v1.FirewallPoliciesScopedList; +import com.google.cloud.compute.v1.NetworkFirewallPoliciesClient; +import java.util.Map; + +public class SyncAggregatedListString { + + public static void main(String[] args) throws Exception { + syncAggregatedListString(); + } + + public static void syncAggregatedListString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkFirewallPoliciesClient networkFirewallPoliciesClient = + NetworkFirewallPoliciesClient.create()) { + String project = "project-309310695"; + for (Map.Entry element : + networkFirewallPoliciesClient.aggregatedList(project).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END compute_v1_generated_NetworkFirewallPolicies_AggregatedList_String_sync] diff --git a/java-confidentialcomputing/README.md b/java-confidentialcomputing/README.md index 41d47f479517..c11214a81b4f 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.52.0 + 26.53.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.41.0 + 0.42.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-confidentialcomputing:0.41.0' +implementation 'com.google.cloud:google-cloud-confidentialcomputing:0.42.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-confidentialcomputing" % "0.41.0" +libraryDependencies += "com.google.cloud" % "google-cloud-confidentialcomputing" % "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-confidentialcomputing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-confidentialcomputing/0.41.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-confidentialcomputing/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-connectgateway/README.md b/java-connectgateway/README.md index df77782df2bc..d080e7e0c30e 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.52.0 + 26.53.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.7.0 + 0.8.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-connectgateway:0.7.0' +implementation 'com.google.cloud:google-cloud-connectgateway:0.8.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-connectgateway" % "0.7.0" +libraryDependencies += "com.google.cloud" % "google-cloud-connectgateway" % "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-connectgateway.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-connectgateway/0.7.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-connectgateway/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-contact-center-insights/README.md b/java-contact-center-insights/README.md index 97d25286c7c3..7ae83e712218 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.52.0 + 26.53.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.55.0 + 2.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-contact-center-insights:2.55.0' +implementation 'com.google.cloud:google-cloud-contact-center-insights:2.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-contact-center-insights" % "2.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-contact-center-insights" % "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-contact-center-insights.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contact-center-insights/2.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contact-center-insights/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-container/README.md b/java-container/README.md index d9d2e74220db..e646d5401f56 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.52.0 + 26.53.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.58.0 + 2.59.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-container:2.58.0' +implementation 'com.google.cloud:google-cloud-container:2.59.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-container" % "2.58.0" +libraryDependencies += "com.google.cloud" % "google-cloud-container" % "2.59.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.58.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-container/2.59.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/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java index 8efefa2e3eee..3098c15af32d 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java @@ -925,7 +925,7 @@ public com.google.protobuf.Parser getParserForT * *
    * Output only. The relative name of the Google Compute Engine
-   * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+   * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
    * to which the cluster is connected. Example:
    * projects/my-project/global/networks/my-network
    * 
@@ -951,7 +951,7 @@ public java.lang.String getNetwork() { * *
    * Output only. The relative name of the Google Compute Engine
-   * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+   * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
    * to which the cluster is connected. Example:
    * projects/my-project/global/networks/my-network
    * 
@@ -2394,7 +2394,7 @@ public Builder mergeFrom( * *
      * Output only. The relative name of the Google Compute Engine
-     * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
      * to which the cluster is connected. Example:
      * projects/my-project/global/networks/my-network
      * 
@@ -2419,7 +2419,7 @@ public java.lang.String getNetwork() { * *
      * Output only. The relative name of the Google Compute Engine
-     * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
      * to which the cluster is connected. Example:
      * projects/my-project/global/networks/my-network
      * 
@@ -2444,7 +2444,7 @@ public com.google.protobuf.ByteString getNetworkBytes() { * *
      * Output only. The relative name of the Google Compute Engine
-     * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
      * to which the cluster is connected. Example:
      * projects/my-project/global/networks/my-network
      * 
@@ -2468,7 +2468,7 @@ public Builder setNetwork(java.lang.String value) { * *
      * Output only. The relative name of the Google Compute Engine
-     * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
      * to which the cluster is connected. Example:
      * projects/my-project/global/networks/my-network
      * 
@@ -2488,7 +2488,7 @@ public Builder clearNetwork() { * *
      * Output only. The relative name of the Google Compute Engine
-     * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
      * to which the cluster is connected. Example:
      * projects/my-project/global/networks/my-network
      * 
diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.java index edd9f2e39154..362463e9c820 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.java @@ -29,7 +29,7 @@ public interface NetworkConfigOrBuilder * *
    * Output only. The relative name of the Google Compute Engine
-   * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+   * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
    * to which the cluster is connected. Example:
    * projects/my-project/global/networks/my-network
    * 
@@ -44,7 +44,7 @@ public interface NetworkConfigOrBuilder * *
    * Output only. The relative name of the Google Compute Engine
-   * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+   * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
    * to which the cluster is connected. Example:
    * projects/my-project/global/networks/my-network
    * 
diff --git a/java-container/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto b/java-container/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto index 2013c15fe8c5..289f7a7c29dd 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto +++ b/java-container/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto @@ -4784,7 +4784,7 @@ message NetworkConfig { } // Output only. The relative name of the Google Compute Engine - // [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) + // [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) // to which the cluster is connected. Example: // projects/my-project/global/networks/my-network string network = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfig.java index 1fece920ad23..0020ff38cf69 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfig.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfig.java @@ -936,7 +936,7 @@ public com.google.protobuf.Parser getParserForT * *
    * Output only. The relative name of the Google Compute Engine
-   * [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+   * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
    * to which the cluster is connected. Example:
    * projects/my-project/global/networks/my-network
    * 
@@ -962,7 +962,7 @@ public java.lang.String getNetwork() { * *
    * Output only. The relative name of the Google Compute Engine
-   * [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+   * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
    * to which the cluster is connected. Example:
    * projects/my-project/global/networks/my-network
    * 
@@ -2353,7 +2353,7 @@ public Builder mergeFrom( * *
      * Output only. The relative name of the Google Compute Engine
-     * [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
      * to which the cluster is connected. Example:
      * projects/my-project/global/networks/my-network
      * 
@@ -2378,7 +2378,7 @@ public java.lang.String getNetwork() { * *
      * Output only. The relative name of the Google Compute Engine
-     * [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
      * to which the cluster is connected. Example:
      * projects/my-project/global/networks/my-network
      * 
@@ -2403,7 +2403,7 @@ public com.google.protobuf.ByteString getNetworkBytes() { * *
      * Output only. The relative name of the Google Compute Engine
-     * [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
      * to which the cluster is connected. Example:
      * projects/my-project/global/networks/my-network
      * 
@@ -2427,7 +2427,7 @@ public Builder setNetwork(java.lang.String value) { * *
      * Output only. The relative name of the Google Compute Engine
-     * [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
      * to which the cluster is connected. Example:
      * projects/my-project/global/networks/my-network
      * 
@@ -2447,7 +2447,7 @@ public Builder clearNetwork() { * *
      * Output only. The relative name of the Google Compute Engine
-     * [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
      * to which the cluster is connected. Example:
      * projects/my-project/global/networks/my-network
      * 
diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfigOrBuilder.java index e10bf9c52a62..43c7b81fa119 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfigOrBuilder.java @@ -29,7 +29,7 @@ public interface NetworkConfigOrBuilder * *
    * Output only. The relative name of the Google Compute Engine
-   * [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+   * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
    * to which the cluster is connected. Example:
    * projects/my-project/global/networks/my-network
    * 
@@ -44,7 +44,7 @@ public interface NetworkConfigOrBuilder * *
    * Output only. The relative name of the Google Compute Engine
-   * [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
+   * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
    * to which the cluster is connected. Example:
    * projects/my-project/global/networks/my-network
    * 
diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/proto/google/container/v1beta1/cluster_service.proto b/java-container/proto-google-cloud-container-v1beta1/src/main/proto/google/container/v1beta1/cluster_service.proto index 5db56b0c13c9..a5b23da72bba 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/proto/google/container/v1beta1/cluster_service.proto +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/proto/google/container/v1beta1/cluster_service.proto @@ -5123,7 +5123,7 @@ message NetworkConfig { } // Output only. The relative name of the Google Compute Engine - // [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) + // [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) // to which the cluster is connected. Example: // projects/my-project/global/networks/my-network string network = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-containeranalysis/README.md b/java-containeranalysis/README.md index 7bf4e74f62c0..e6cf85661294 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.52.0 + 26.53.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.56.0 + 2.57.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-containeranalysis:2.56.0' +implementation 'com.google.cloud:google-cloud-containeranalysis:2.57.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "2.56.0" +libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "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-containeranalysis.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-containeranalysis/2.56.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-containeranalysis/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-contentwarehouse/README.md b/java-contentwarehouse/README.md index 784deb1cd7cd..80ed588fcbe9 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.52.0 + 26.53.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.51.0 + 0.52.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-contentwarehouse:0.51.0' +implementation 'com.google.cloud:google-cloud-contentwarehouse:0.52.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-contentwarehouse" % "0.51.0" +libraryDependencies += "com.google.cloud" % "google-cloud-contentwarehouse" % "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-contentwarehouse.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contentwarehouse/0.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contentwarehouse/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-data-fusion/README.md b/java-data-fusion/README.md index 3c883133479b..195dc8ecf631 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.52.0 + 26.53.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.55.0 + 1.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-data-fusion:1.55.0' +implementation 'com.google.cloud:google-cloud-data-fusion:1.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-data-fusion" % "1.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-data-fusion" % "1.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-data-fusion.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-data-fusion/1.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-data-fusion/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-datacatalog/README.md b/java-datacatalog/README.md index 6b62bb53898b..e95658692cf4 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.52.0 + 26.53.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.61.0 + 1.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datacatalog:1.61.0' +implementation 'com.google.cloud:google-cloud-datacatalog:1.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datacatalog" % "1.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datacatalog" % "1.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-datacatalog.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datacatalog/1.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datacatalog/1.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-dataflow/README.md b/java-dataflow/README.md index 4ca92f6b95b6..7b420545402c 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.52.0 + 26.53.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.59.0 + 0.60.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataflow:0.59.0' +implementation 'com.google.cloud:google-cloud-dataflow:0.60.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataflow" % "0.59.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataflow" % "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-dataflow.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataflow/0.59.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataflow/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-dataform/README.md b/java-dataform/README.md index ecbf8faf2a5e..b3ae66336aae 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.52.0 + 26.53.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.54.0 + 0.55.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataform:0.54.0' +implementation 'com.google.cloud:google-cloud-dataform:0.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataform" % "0.54.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataform" % "0.55.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.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataform/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-datalabeling/README.md b/java-datalabeling/README.md index dd859a8f422d..89c17e994023 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.52.0 + 26.53.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.175.0 + 0.176.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datalabeling:0.175.0' +implementation 'com.google.cloud:google-cloud-datalabeling:0.176.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datalabeling" % "0.175.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datalabeling" % "0.176.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.175.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalabeling/0.176.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 53fc1e289e6e..828f3df93183 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.52.0 + 26.53.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.47.0 + 0.48.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datalineage:0.47.0' +implementation 'com.google.cloud:google-cloud-datalineage:0.48.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datalineage" % "0.47.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datalineage" % "0.48.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.47.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalineage/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-dataplex/README.md b/java-dataplex/README.md index 1a42f8a383e3..313bb4ebb396 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.52.0 + 26.53.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.53.0 + 1.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataplex:1.53.0' +implementation 'com.google.cloud:google-cloud-dataplex:1.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataplex" % "1.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataplex" % "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-dataplex.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataplex/1.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataplex/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-dataproc-metastore/README.md b/java-dataproc-metastore/README.md index 1b740b6f91c2..4cc54377a247 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.52.0 + 26.53.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.56.0 + 2.57.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc-metastore:2.56.0' +implementation 'com.google.cloud:google-cloud-dataproc-metastore:2.57.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc-metastore" % "2.56.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc-metastore" % "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-dataproc-metastore.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc-metastore/2.56.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc-metastore/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-dataproc/README.md b/java-dataproc/README.md index b7056ccdc733..e2cf951a32bc 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.52.0 + 26.53.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.52.0 + 4.53.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:4.52.0' +implementation 'com.google.cloud:google-cloud-dataproc:4.53.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.52.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.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-dataproc.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc/4.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc/4.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/README.md b/java-datastream/README.md index 85ce9acfdf96..a0ec0bfedc19 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.52.0 + 26.53.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.54.0 + 1.55.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datastream:1.54.0' +implementation 'com.google.cloud:google-cloud-datastream:1.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datastream" % "1.54.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datastream" % "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-datastream.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastream/1.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastream/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-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 46206ac0832a..435dfed38a77 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 @@ -1871,6 +1871,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.datastream.v1.PostgresqlSslConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.PostgresqlSslConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.PostgresqlSslConfig$ServerAndClientVerification", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.PostgresqlSslConfig$ServerAndClientVerification$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.PostgresqlSslConfig$ServerVerification", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.datastream.v1.PostgresqlSslConfig$ServerVerification$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.datastream.v1.PostgresqlTable", "queryAllDeclaredConstructors": true, 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 fb9e14934466..273b63f442ef 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 @@ -199,10 +199,12 @@ public ConnectivityCase getConnectivityCase() { * * *
-   * Output only. The resource's name.
+   * Output only. Identifier. The resource's name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The name. */ @@ -222,10 +224,12 @@ public java.lang.String getName() { * * *
-   * Output only. The resource's name.
+   * Output only. Identifier. The resource's name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The bytes for name. */ @@ -1837,10 +1841,12 @@ public Builder clearConnectivity() { * * *
-     * Output only. The resource's name.
+     * Output only. Identifier. The resource's name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The name. */ @@ -1859,10 +1865,12 @@ public java.lang.String getName() { * * *
-     * Output only. The resource's name.
+     * Output only. Identifier. The resource's name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The bytes for name. */ @@ -1881,10 +1889,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. The resource's name.
+     * Output only. Identifier. The resource's name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The name to set. * @return This builder for chaining. @@ -1902,10 +1912,12 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. The resource's name.
+     * Output only. Identifier. The resource's name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ @@ -1919,10 +1931,12 @@ public Builder clearName() { * * *
-     * Output only. The resource's name.
+     * Output only. Identifier. The resource's name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The bytes for name 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/ConnectionProfileOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileOrBuilder.java index 5e72092a2506..399c2490a9d8 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 @@ -28,10 +28,12 @@ public interface ConnectionProfileOrBuilder * * *
-   * Output only. The resource's name.
+   * Output only. Identifier. The resource's name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The name. */ @@ -40,10 +42,12 @@ public interface ConnectionProfileOrBuilder * * *
-   * Output only. The resource's name.
+   * Output only. Identifier. The resource's name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The bytes for name. */ 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 83d16889d366..b94614ec54e5 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 @@ -104,6 +104,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r 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_PostgresqlSslConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_PostgresqlSslConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_PostgresqlSslConfig_ServerVerification_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_PostgresqlSslConfig_ServerVerification_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_PostgresqlSslConfig_ServerAndClientVerification_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_PostgresqlSslConfig_ServerAndClientVerification_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_datastream_v1_ConnectionProfile_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -401,7 +413,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\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" + + "\001(\tB\003\340A\001\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" @@ -412,383 +424,396 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\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" + + "Config\"\307\001\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\010datab" + + "ase\030\005 \001(\tB\003\340A\002\022H\n\nssl_config\030\007 \001(\0132/.goo" + + "gle.cloud.datastream.v1.PostgresqlSslCon" + + "figB\003\340A\001\"|\n\020SqlServerProfile\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\010datab" + + "ase\030\005 \001(\tB\003\340A\002\"4\n\nGcsProfile\022\023\n\006bucket\030\001" + + " \001(\tB\003\340A\002\022\021\n\troot_path\030\002 \001(\t\"\021\n\017BigQuery" + + "Profile\"\035\n\033StaticServiceIpConnectivity\"\250" + + "\001\n\034ForwardSshTunnelConnectivity\022\025\n\010hostn" + + "ame\030\001 \001(\tB\003\340A\002\022\025\n\010username\030\002 \001(\tB\003\340A\002\022\014\n" + + "\004port\030\003 \001(\005\022\027\n\010password\030d \001(\tB\003\340A\004H\000\022\032\n\013" + + "private_key\030e \001(\tB\003\340A\004H\000B\027\n\025authenticati" + + "on_method\"]\n\020VpcPeeringConfig\0224\n\003vpc\030\001 \001" + + "(\tB\'\340A\002\372A!\n\037compute.googleapis.com/Netwo" + + "rks\022\023\n\006subnet\030\002 \001(\tB\003\340A\002\"\343\005\n\021PrivateConn" + + "ection\022\024\n\004name\030\001 \001(\tB\006\340A\010\340A\003\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\022I\n\006labels\030\004 \003(\01329.googl" + + "e.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.StateB\003\340A\003\0225\n\005error" + + "\030\007 \001(\0132!.google.cloud.datastream.v1.Erro" + + "rB\003\340A\003\022H\n\022vpc_peering_config\030d \001(\0132,.goo" + + "gle.cloud.datastream.v1.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\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\352A~" + + "\n+datastream.googleapis.com/PrivateConne" + + "ction\022Oprojects/{project}/locations/{loc" + + "ation}/privateConnections/{private_conne" + + "ction}\"f\n\023PrivateConnectivity\022O\n\022private" + + "_connection\030\001 \001(\tB3\340A\002\372A-\n+datastream.go" + + "ogleapis.com/PrivateConnection\"\326\003\n\005Route" + + "\022\024\n\004name\030\001 \001(\tB\006\340A\010\340A\003\0224\n\013create_time\030\002 " + + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013" + + "update_time\030\003 \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\022=\n\006labels\030\004 \003(\0132-.google.clou" + + "d.datastream.v1.Route.LabelsEntry\022\031\n\014dis" + + "play_name\030\005 \001(\tB\003\340A\002\022 \n\023destination_addr" + + "ess\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.co" + + "m/Route\022^projects/{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\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" + + "nection}/routes/{route}\"\312\001\n\016MysqlSslConf" + + "ig\022\027\n\nclient_key\030\001 \001(\tB\003\340A\004\022\033\n\016client_ke" + + "y_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(" + + "\010B\003\340A\003\022\033\n\016ca_certificate\030\005 \001(\tB\003\340A\004\022\037\n\022c" + + "a_certificate_set\030\006 \001(\010B\003\340A\003\"O\n\017OracleSs" + + "lConfig\022\033\n\016ca_certificate\030\001 \001(\tB\003\340A\004\022\037\n\022" + + "ca_certificate_set\030\002 \001(\010B\003\340A\003\"\272\003\n\023Postgr" + + "esqlSslConfig\022a\n\023server_verification\030\001 \001" + + "(\0132B.google.cloud.datastream.v1.Postgres" + + "qlSslConfig.ServerVerificationH\000\022u\n\036serv" + + "er_and_client_verification\030\002 \001(\0132K.googl" + + "e.cloud.datastream.v1.PostgresqlSslConfi" + + "g.ServerAndClientVerificationH\000\0324\n\022Serve" + + "rVerification\022\036\n\016ca_certificate\030\001 \001(\tB\006\340" + + "A\004\340A\002\032}\n\033ServerAndClientVerification\022\"\n\022" + + "client_certificate\030\001 \001(\tB\006\340A\004\340A\002\022\032\n\nclie" + + "nt_key\030\002 \001(\tB\006\340A\004\340A\002\022\036\n\016ca_certificate\030\003" + + " \001(\tB\006\340A\004\340A\002B\024\n\022encryption_setting\"\207\t\n\021C" + + "onnectionProfile\022\024\n\004name\030\001 \001(\tB\006\340A\010\340A\003\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\022I\n\006labels\030\004 \003" + + "(\01329.google.cloud.datastream.v1.Connecti" + + "onProfile.LabelsEntry\022\031\n\014display_name\030\005 " + + "\001(\tB\003\340A\002\022C\n\016oracle_profile\030d \001(\0132).googl" + + "e.cloud.datastream.v1.OracleProfileH\000\022=\n" + + "\013gcs_profile\030e \001(\0132&.google.cloud.datast" + + "ream.v1.GcsProfileH\000\022A\n\rmysql_profile\030f " + + "\001(\0132(.google.cloud.datastream.v1.MysqlPr" + + "ofileH\000\022G\n\020bigquery_profile\030g \001(\0132+.goog" + + "le.cloud.datastream.v1.BigQueryProfileH\000" + + "\022K\n\022postgresql_profile\030h \001(\0132-.google.cl" + + "oud.datastream.v1.PostgresqlProfileH\000\022J\n" + + "\022sql_server_profile\030i \001(\0132,.google.cloud" + + ".datastream.v1.SqlServerProfileH\000\022b\n\036sta" + + "tic_service_ip_connectivity\030\310\001 \001(\01327.goo" + + "gle.cloud.datastream.v1.StaticServiceIpC" + + "onnectivityH\001\022]\n\030forward_ssh_connectivit" + + "y\030\311\001 \001(\01328.google.cloud.datastream.v1.Fo" + + "rwardSshTunnelConnectivityH\001\022P\n\024private_" + + "connectivity\030\312\001 \001(\0132/.google.cloud.datas" + + "tream.v1.PrivateConnectivityH\001\032-\n\013Labels" + + "Entry\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/Connectio" + + "nProfile\022Oprojects/{project}/locations/{" + + "location}/connectionProfiles/{connection" + + "_profile}B\t\n\007profileB\016\n\014connectivity\"\266\001\n" + + "\014OracleColumn\022\016\n\006column\030\001 \001(\t\022\021\n\tdata_ty" + + "pe\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\020\n\010encoding\030\006 \001(\t\022\023\n\013" + + "primary_key\030\007 \001(\010\022\020\n\010nullable\030\010 \001(\010\022\030\n\020o" + + "rdinal_position\030\t \001(\005\"^\n\013OracleTable\022\r\n\005" + + "table\030\001 \001(\t\022@\n\016oracle_columns\030\002 \003(\0132(.go" + + "ogle.cloud.datastream.v1.OracleColumn\"^\n" + + "\014OracleSchema\022\016\n\006schema\030\001 \001(\t\022>\n\roracle_" + + "tables\030\002 \003(\0132\'.google.cloud.datastream.v" + + "1.OracleTable\"O\n\013OracleRdbms\022@\n\016oracle_s" + + "chemas\030\001 \003(\0132(.google.cloud.datastream.v" + + "1.OracleSchema\"\273\010\n\022OracleSourceConfig\022@\n" + + "\017include_objects\030\001 \001(\0132\'.google.cloud.da" + + "tastream.v1.OracleRdbms\022@\n\017exclude_objec" + + "ts\030\002 \001(\0132\'.google.cloud.datastream.v1.Or" + + "acleRdbms\022 \n\030max_concurrent_cdc_tasks\030\003 " + + "\001(\005\022%\n\035max_concurrent_backfill_tasks\030\004 \001" + + "(\005\022]\n\022drop_large_objects\030d \001(\0132?.google." + + "cloud.datastream.v1.OracleSourceConfig.D" + + "ropLargeObjectsH\000\022a\n\024stream_large_object" + + "s\030f \001(\0132A.google.cloud.datastream.v1.Ora" + + "cleSourceConfig.StreamLargeObjectsH\000\022L\n\t" + + "log_miner\030g \001(\01327.google.cloud.datastrea" + + "m.v1.OracleSourceConfig.LogMinerH\001\022[\n\021bi" + + "nary_log_parser\030h \001(\0132>.google.cloud.dat" + + "astream.v1.OracleSourceConfig.BinaryLogP" + + "arserH\001\032\022\n\020DropLargeObjects\032\024\n\022StreamLar" + + "geObjects\032\n\n\010LogMiner\032\214\003\n\017BinaryLogParse" + + "r\022{\n\032oracle_asm_log_file_access\030\001 \001(\0132U." + + "google.cloud.datastream.v1.OracleSourceC" + + "onfig.BinaryLogParser.OracleAsmLogFileAc" + + "cessH\000\022q\n\024log_file_directories\030\002 \001(\0132Q.g" + + "oogle.cloud.datastream.v1.OracleSourceCo" + + "nfig.BinaryLogParser.LogFileDirectoriesH" + + "\000\032\030\n\026OracleAsmLogFileAccess\032\\\n\022LogFileDi" + + "rectories\022!\n\024online_log_directory\030\001 \001(\tB" + + "\003\340A\002\022#\n\026archived_log_directory\030\002 \001(\tB\003\340A" + + "\002B\021\n\017log_file_accessB\030\n\026large_objects_ha" + + "ndlingB\014\n\ncdc_method\"\250\001\n\020PostgresqlColum" + + "n\022\016\n\006column\030\001 \001(\t\022\021\n\tdata_type\030\002 \001(\t\022\016\n\006" + + "length\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\017Postg" + + "resqlTable\022\r\n\005table\030\001 \001(\t\022H\n\022postgresql_" + + "columns\030\002 \003(\0132,.google.cloud.datastream." + + "v1.PostgresqlColumn\"j\n\020PostgresqlSchema\022" + + "\016\n\006schema\030\001 \001(\t\022F\n\021postgresql_tables\030\002 \003" + + "(\0132+.google.cloud.datastream.v1.Postgres" + + "qlTable\"[\n\017PostgresqlRdbms\022H\n\022postgresql" + + "_schemas\030\001 \003(\0132,.google.cloud.datastream" + + ".v1.PostgresqlSchema\"\207\002\n\026PostgresqlSourc" + + "eConfig\022D\n\017include_objects\030\001 \001(\0132+.googl" + + "e.cloud.datastream.v1.PostgresqlRdbms\022D\n" + + "\017exclude_objects\030\002 \001(\0132+.google.cloud.da" + + "tastream.v1.PostgresqlRdbms\022 \n\020replicati" + + "on_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\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\013prima" + + "ry_key\030\006 \001(\010\022\020\n\010nullable\030\007 \001(\010\022\030\n\020ordina" + + "l_position\030\010 \001(\005\"]\n\016SqlServerTable\022\r\n\005ta" + + "ble\030\001 \001(\t\022<\n\007columns\030\002 \003(\0132+.google.clou" + + "d.datastream.v1.SqlServerColumn\"]\n\017SqlSe" + + "rverSchema\022\016\n\006schema\030\001 \001(\t\022:\n\006tables\030\002 \003" + + "(\0132*.google.cloud.datastream.v1.SqlServe" + + "rTable\"N\n\016SqlServerRdbms\022<\n\007schemas\030\001 \003(" + + "\0132+.google.cloud.datastream.v1.SqlServer" + + "Schema\"\226\003\n\025SqlServerSourceConfig\022C\n\017incl" + + "ude_objects\030\001 \001(\0132*.google.cloud.datastr" + + "eam.v1.SqlServerRdbms\022C\n\017exclude_objects" + + "\030\002 \001(\0132*.google.cloud.datastream.v1.SqlS" + + "erverRdbms\022 \n\030max_concurrent_cdc_tasks\030\003" + + " \001(\005\022%\n\035max_concurrent_backfill_tasks\030\004 " + + "\001(\005\022P\n\020transaction_logs\030e \001(\01324.google.c" + + "loud.datastream.v1.SqlServerTransactionL" + + "ogsH\000\022J\n\rchange_tables\030f \001(\01321.google.cl" + + "oud.datastream.v1.SqlServerChangeTablesH" + + "\000B\014\n\ncdc_method\"\032\n\030SqlServerTransactionL" + + "ogs\"\027\n\025SqlServerChangeTables\"\266\001\n\013MysqlCo" + "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_" + + "\016\n\006length\030\003 \001(\005\022\021\n\tcollation\030\004 \001(\t\022\023\n\013pr" + + "imary_key\030\005 \001(\010\022\020\n\010nullable\030\006 \001(\010\022\030\n\020ord" + + "inal_position\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\rmysql_columns\030\002 \003(\0132\'.google.cloud" + + ".datastream.v1.MysqlColumn\"_\n\rMysqlDatab" + + "ase\022\020\n\010database\030\001 \001(\t\022<\n\014mysql_tables\030\002 " + + "\003(\0132&.google.cloud.datastream.v1.MysqlTa" + + "ble\"P\n\nMysqlRdbms\022B\n\017mysql_databases\030\001 \003" + + "(\0132).google.cloud.datastream.v1.MysqlDat" + + "abase\"\255\003\n\021MysqlSourceConfig\022?\n\017include_o" + + "bjects\030\001 \001(\0132&.google.cloud.datastream.v" + + "1.MysqlRdbms\022?\n\017exclude_objects\030\002 \001(\0132&." + + "google.cloud.datastream.v1.MysqlRdbms\022 \n" + + "\030max_concurrent_cdc_tasks\030\003 \001(\005\022%\n\035max_c" + + "oncurrent_backfill_tasks\030\004 \001(\005\022^\n\023binary" + + "_log_position\030e \001(\0132?.google.cloud.datas" + + "tream.v1.MysqlSourceConfig.BinaryLogPosi" + + "tionH\000\022B\n\004gtid\030f \001(\01322.google.cloud.data" + + "stream.v1.MysqlSourceConfig.GtidH\000\032\023\n\021Bi" + + "naryLogPosition\032\006\n\004GtidB\014\n\ncdc_method\"\313\003" + + "\n\014SourceConfig\022V\n\031source_connection_prof" + + "ile\030\001 \001(\tB3\340A\002\372A-\n+datastream.googleapis" + + ".com/ConnectionProfile\022N\n\024oracle_source_" + + "config\030d \001(\0132..google.cloud.datastream.v" + + "1.OracleSourceConfigH\000\022L\n\023mysql_source_c" + + "onfig\030e \001(\0132-.google.cloud.datastream.v1" + + ".MysqlSourceConfigH\000\022V\n\030postgresql_sourc" + + "e_config\030f \001(\01322.google.cloud.datastream" + + ".v1.PostgresqlSourceConfigH\000\022U\n\030sql_serv" + + "er_source_config\030g \001(\01321.google.cloud.da" + + "tastream.v1.SqlServerSourceConfigH\000B\026\n\024s" + + "ource_stream_config\"\020\n\016AvroFileFormat\"\357\002" + + "\n\016JsonFileFormat\022W\n\022schema_file_format\030\001" + + " \001(\0162;.google.cloud.datastream.v1.JsonFi" + + "leFormat.SchemaFileFormat\022O\n\013compression" + + "\030\002 \001(\0162:.google.cloud.datastream.v1.Json" + + "FileFormat.JsonCompression\"`\n\020SchemaFile" + + "Format\022\"\n\036SCHEMA_FILE_FORMAT_UNSPECIFIED" + + "\020\000\022\022\n\016NO_SCHEMA_FILE\020\001\022\024\n\020AVRO_SCHEMA_FI" + + "LE\020\002\"Q\n\017JsonCompression\022 \n\034JSON_COMPRESS" + + "ION_UNSPECIFIED\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.protob" + + "uf.Duration\022F\n\020avro_file_format\030d \001(\0132*." + + "google.cloud.datastream.v1.AvroFileForma" + + "tH\000\022F\n\020json_file_format\030e \001(\0132*.google.c" + + "loud.datastream.v1.JsonFileFormatH\000B\r\n\013f" + + "ile_format\"\254\006\n\031BigQueryDestinationConfig" + + "\022k\n\025single_target_dataset\030\311\001 \001(\0132I.googl" + + "e.cloud.datastream.v1.BigQueryDestinatio" + + "nConfig.SingleTargetDatasetH\000\022s\n\031source_" + + "hierarchy_datasets\030\312\001 \001(\0132M.google.cloud" + + ".datastream.v1.BigQueryDestinationConfig" + + ".SourceHierarchyDatasetsH\000\0222\n\016data_fresh" + + "ness\030\254\002 \001(\0132\031.google.protobuf.Duration\022M" + + "\n\005merge\030\255\002 \001(\0132;.google.cloud.datastream" + + ".v1.BigQueryDestinationConfig.MergeH\001\022X\n" + + "\013append_only\030\256\002 \001(\0132@.google.cloud.datas" + + "tream.v1.BigQueryDestinationConfig.Appen" + + "dOnlyH\001\032)\n\023SingleTargetDataset\022\022\n\ndatase" + + "t_id\030\001 \001(\t\032\355\001\n\027SourceHierarchyDatasets\022w" + + "\n\020dataset_template\030\002 \001(\0132].google.cloud." + + "datastream.v1.BigQueryDestinationConfig." + + "SourceHierarchyDatasets.DatasetTemplate\032" + + "Y\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(\t\032\014\n\nAppendOnly\032\007\n\005MergeB\020\n\016dat" + + "aset_configB\014\n\nwrite_mode\"\277\002\n\021Destinatio" + + "nConfig\022[\n\036destination_connection_profil" + + "e\030\001 \001(\tB3\340A\002\372A-\n+datastream.googleapis.c" + + "om/ConnectionProfile\022R\n\026gcs_destination_" + + "config\030d \001(\01320.google.cloud.datastream.v" + + "1.GcsDestinationConfigH\000\022\\\n\033bigquery_des" + + "tination_config\030e \001(\01325.google.cloud.dat" + + "astream.v1.BigQueryDestinationConfigH\000B\033" + + "\n\031destination_stream_config\"\344\013\n\006Stream\022\024" + + "\n\004name\030\001 \001(\tB\006\340A\010\340A\003\0224\n\013create_time\030\002 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013up" + + "date_time\030\003 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\022>\n\006labels\030\004 \003(\0132..google.cloud." + + "datastream.v1.Stream.LabelsEntry\022\031\n\014disp" + + "lay_name\030\005 \001(\tB\003\340A\002\022D\n\rsource_config\030\006 \001" + + "(\0132(.google.cloud.datastream.v1.SourceCo" + + "nfigB\003\340A\002\022N\n\022destination_config\030\007 \001(\0132-." + + "google.cloud.datastream.v1.DestinationCo" + + "nfigB\003\340A\002\0227\n\005state\030\010 \001(\0162(.google.cloud." + + "datastream.v1.Stream.State\022N\n\014backfill_a" + + "ll\030e \001(\01326.google.cloud.datastream.v1.St" + + "ream.BackfillAllStrategyH\000\022P\n\rbackfill_n" + + "one\030f \001(\01327.google.cloud.datastream.v1.S" + + "tream.BackfillNoneStrategyH\000\0226\n\006errors\030\t" + + " \003(\0132!.google.cloud.datastream.v1.ErrorB" + + "\003\340A\003\0221\n\037customer_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" + + "\023BackfillAllStrategy\022J\n\027oracle_excluded_" + "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\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" + + "v1.OracleRdbmsH\000\022H\n\026mysql_excluded_objec" + + "ts\030\002 \001(\0132&.google.cloud.datastream.v1.My" + + "sqlRdbmsH\000\022R\n\033postgresql_excluded_object" + + "s\030\003 \001(\0132+.google.cloud.datastream.v1.Pos" + + "tgresqlRdbmsH\000\022Q\n\033sql_server_excluded_ob" + + "jects\030\004 \001(\0132*.google.cloud.datastream.v1" + + ".SqlServerRdbmsH\000B\022\n\020excluded_objects\032\026\n" + + "\024BackfillNoneStrategy\032-\n\013LabelsEntry\022\013\n\003" + + "key\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\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\010" + + "STARTING\020\007\022\014\n\010DRAINING\020\010:_\352A\\\n datastrea" + + "m.googleapis.com/Stream\0228projects/{proje" + + "ct}/locations/{location}/streams/{stream" + + "}B\023\n\021backfill_strategyB\"\n _customer_mana" + + "ged_encryption_key\"\345\003\n\014StreamObject\022\024\n\004n" + + "ame\030\001 \001(\tB\006\340A\010\340A\003\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\022\031\n\014display_name\030\005 \001(\tB\003\340A\002\0226\n\006erro" + + "rs\030\006 \003(\0132!.google.cloud.datastream.v1.Er" + + "rorB\003\340A\003\022=\n\014backfill_job\030\007 \001(\0132\'.google." + + "cloud.datastream.v1.BackfillJob\022I\n\rsourc" + + "e_object\030\010 \001(\01322.google.cloud.datastream" + + ".v1.SourceObjectIdentifier:v\352As\n&datastr" + + "eam.googleapis.com/StreamObject\022Iproject" + + "s/{project}/locations/{location}/streams" + + "/{stream}/objects/{object}\"\356\005\n\026SourceObj" + + "ectIdentifier\022f\n\021oracle_identifier\030\001 \001(\013" + + "2I.google.cloud.datastream.v1.SourceObje" + + "ctIdentifier.OracleObjectIdentifierH\000\022d\n" + + "\020mysql_identifier\030\002 \001(\0132H.google.cloud.d" + + "atastream.v1.SourceObjectIdentifier.Mysq" + + "lObjectIdentifierH\000\022n\n\025postgresql_identi" + + "fier\030\003 \001(\0132M.google.cloud.datastream.v1." + + "SourceObjectIdentifier.PostgresqlObjectI" + + "dentifierH\000\022m\n\025sql_server_identifier\030\004 \001" + + "(\0132L.google.cloud.datastream.v1.SourceOb" + + "jectIdentifier.SqlServerObjectIdentifier" + + "H\000\032A\n\026OracleObjectIdentifier\022\023\n\006schema\030\001" + + " \001(\tB\003\340A\002\022\022\n\005table\030\002 \001(\tB\003\340A\002\032E\n\032Postgre" + + "sqlObjectIdentifier\022\023\n\006schema\030\001 \001(\tB\003\340A\002" + + "\022\022\n\005table\030\002 \001(\tB\003\340A\002\032B\n\025MysqlObjectIdent" + + "ifier\022\025\n\010database\030\001 \001(\tB\003\340A\002\022\022\n\005table\030\002 " + + "\001(\tB\003\340A\002\032D\n\031SqlServerObjectIdentifier\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_identifier\"\377\003\n\013BackfillJob\022A\n\005s" + + "tate\030\001 \001(\0162-.google.cloud.datastream.v1." + + "BackfillJob.StateB\003\340A\003\022@\n\007trigger\030\002 \001(\0162" + + "/.google.cloud.datastream.v1.BackfillJob" + + ".Trigger\0228\n\017last_start_time\030\003 \001(\0132\032.goog" + + "le.protobuf.TimestampB\003\340A\003\0226\n\rlast_end_t" + + "ime\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\0226\n\006errors\030\005 \003(\0132!.google.cloud.datast" + + "ream.v1.ErrorB\003\340A\003\"\201\001\n\005State\022\025\n\021STATE_UN" + + "SPECIFIED\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\tCOMPLETED\020\006\022\017\n\013UNSUPPORTED\020\007\"=\n\007Trigge" + + "r\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\nerror_uuid\030\002 \001(\t\022\017\n\007message\030\003 \001(\t\022.\n\n" + + "error_time\030\004 \001(\0132\032.google.protobuf.Times" + + "tamp\022?\n\007details\030\005 \003(\0132..google.cloud.dat" + + "astream.v1.Error.DetailsEntry\032.\n\014Details" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"O\n" + + "\020ValidationResult\022;\n\013validations\030\001 \003(\0132&" + + ".google.cloud.datastream.v1.Validation\"\210" + + "\002\n\nValidation\022\023\n\013description\030\001 \001(\t\022@\n\005st" + + "ate\030\002 \001(\0162,.google.cloud.datastream.v1.V" + + "alidation.StateB\003\340A\003\022>\n\007message\030\003 \003(\0132-." + + "google.cloud.datastream.v1.ValidationMes" + + "sage\022\014\n\004code\030\004 \001(\t\"U\n\005State\022\025\n\021STATE_UNS" + + "PECIFIED\020\000\022\020\n\014NOT_EXECUTED\020\001\022\n\n\006FAILED\020\002" + + "\022\n\n\006PASSED\020\003\022\013\n\007WARNING\020\004\"\256\002\n\021Validation" + + "Message\022\017\n\007message\030\001 \001(\t\022B\n\005level\030\002 \001(\0162" + + "3.google.cloud.datastream.v1.ValidationM" + + "essage.Level\022M\n\010metadata\030\003 \003(\0132;.google." + + "cloud.datastream.v1.ValidationMessage.Me" + + "tadataEntry\022\014\n\004code\030\004 \001(\t\032/\n\rMetadataEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"6\n\005Le" + + "vel\022\025\n\021LEVEL_UNSPECIFIED\020\000\022\013\n\007WARNING\020\001\022" + + "\t\n\005ERROR\020\002\"\262\005\n\013CdcStrategy\022j\n\032most_recen" + + "t_start_position\030e \001(\0132?.google.cloud.da" + + "tastream.v1.CdcStrategy.MostRecentStartP" + + "ositionB\003\340A\001H\000\022p\n\035next_available_start_p" + + "osition\030f \001(\0132B.google.cloud.datastream." + + "v1.CdcStrategy.NextAvailableStartPositio" + + "nB\003\340A\001H\000\022e\n\027specific_start_position\030g \001(" + + "\0132=.google.cloud.datastream.v1.CdcStrate" + + "gy.SpecificStartPositionB\003\340A\001H\000\032\031\n\027MostR", + "ecentStartPosition\032\034\n\032NextAvailableStart" + + "Position\032\222\002\n\025SpecificStartPosition\022J\n\022my" + + "sql_log_position\030e \001(\0132,.google.cloud.da" + + "tastream.v1.MysqlLogPositionH\000\022L\n\023oracle" + + "_scn_position\030f \001(\0132-.google.cloud.datas" + + "tream.v1.OracleScnPositionH\000\022S\n\027sql_serv" + + "er_lsn_position\030g \001(\01320.google.cloud.dat" + + "astream.v1.SqlServerLsnPositionH\000B\n\n\010pos" + + "itionB\020\n\016start_position\"(\n\024SqlServerLsnP" + + "osition\022\020\n\003lsn\030\001 \001(\tB\003\340A\002\"%\n\021OracleScnPo" + + "sition\022\020\n\003scn\030\001 \001(\003B\003\340A\002\"Z\n\020MysqlLogPosi" + + "tion\022\025\n\010log_file\030\001 \001(\tB\003\340A\002\022\036\n\014log_posit" + + "ion\030\002 \001(\005B\003\340A\001H\000\210\001\001B\017\n\r_log_positionB\250\002\n" + + "\036com.google.cloud.datastream.v1B\030Datastr" + + "eamResourcesProtoP\001Z>cloud.google.com/go" + + "/datastream/apiv1/datastreampb;datastrea" + + "mpb\252\002\032Google.Cloud.Datastream.V1\312\002\032Googl" + + "e\\Cloud\\Datastream\\V1\352\002\035Google::Cloud::D" + + "atastream::V1\352AO\n\037compute.googleapis.com" + + "/Networks\022,projects/{project}/global/net" + + "works/{network}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -861,7 +886,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_PostgresqlProfile_descriptor, new java.lang.String[] { - "Hostname", "Port", "Username", "Password", "Database", + "Hostname", "Port", "Username", "Password", "Database", "SslConfig", }); internal_static_google_cloud_datastream_v1_SqlServerProfile_descriptor = getDescriptor().getMessageTypes().get(4); @@ -983,8 +1008,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "CaCertificate", "CaCertificateSet", }); - internal_static_google_cloud_datastream_v1_ConnectionProfile_descriptor = + internal_static_google_cloud_datastream_v1_PostgresqlSslConfig_descriptor = getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_datastream_v1_PostgresqlSslConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_PostgresqlSslConfig_descriptor, + new java.lang.String[] { + "ServerVerification", "ServerAndClientVerification", "EncryptionSetting", + }); + internal_static_google_cloud_datastream_v1_PostgresqlSslConfig_ServerVerification_descriptor = + internal_static_google_cloud_datastream_v1_PostgresqlSslConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_datastream_v1_PostgresqlSslConfig_ServerVerification_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_PostgresqlSslConfig_ServerVerification_descriptor, + new java.lang.String[] { + "CaCertificate", + }); + internal_static_google_cloud_datastream_v1_PostgresqlSslConfig_ServerAndClientVerification_descriptor = + internal_static_google_cloud_datastream_v1_PostgresqlSslConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_datastream_v1_PostgresqlSslConfig_ServerAndClientVerification_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_PostgresqlSslConfig_ServerAndClientVerification_descriptor, + new java.lang.String[] { + "ClientCertificate", "ClientKey", "CaCertificate", + }); + internal_static_google_cloud_datastream_v1_ConnectionProfile_descriptor = + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_datastream_v1_ConnectionProfile_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_ConnectionProfile_descriptor, @@ -1017,7 +1070,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_datastream_v1_OracleColumn_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_datastream_v1_OracleColumn_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_OracleColumn_descriptor, @@ -1033,7 +1086,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OrdinalPosition", }); internal_static_google_cloud_datastream_v1_OracleTable_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_datastream_v1_OracleTable_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_OracleTable_descriptor, @@ -1041,7 +1094,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Table", "OracleColumns", }); internal_static_google_cloud_datastream_v1_OracleSchema_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_datastream_v1_OracleSchema_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_OracleSchema_descriptor, @@ -1049,7 +1102,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Schema", "OracleTables", }); internal_static_google_cloud_datastream_v1_OracleRdbms_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_datastream_v1_OracleRdbms_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_OracleRdbms_descriptor, @@ -1057,7 +1110,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OracleSchemas", }); internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_datastream_v1_OracleSourceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor, @@ -1126,7 +1179,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OnlineLogDirectory", "ArchivedLogDirectory", }); internal_static_google_cloud_datastream_v1_PostgresqlColumn_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_datastream_v1_PostgresqlColumn_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_PostgresqlColumn_descriptor, @@ -1141,7 +1194,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OrdinalPosition", }); internal_static_google_cloud_datastream_v1_PostgresqlTable_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_datastream_v1_PostgresqlTable_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_PostgresqlTable_descriptor, @@ -1149,7 +1202,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Table", "PostgresqlColumns", }); internal_static_google_cloud_datastream_v1_PostgresqlSchema_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_datastream_v1_PostgresqlSchema_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_PostgresqlSchema_descriptor, @@ -1157,7 +1210,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Schema", "PostgresqlTables", }); internal_static_google_cloud_datastream_v1_PostgresqlRdbms_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_datastream_v1_PostgresqlRdbms_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_PostgresqlRdbms_descriptor, @@ -1165,7 +1218,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PostgresqlSchemas", }); internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_descriptor, @@ -1177,7 +1230,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MaxConcurrentBackfillTasks", }); internal_static_google_cloud_datastream_v1_SqlServerColumn_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_datastream_v1_SqlServerColumn_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_SqlServerColumn_descriptor, @@ -1192,7 +1245,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OrdinalPosition", }); internal_static_google_cloud_datastream_v1_SqlServerTable_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_datastream_v1_SqlServerTable_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_SqlServerTable_descriptor, @@ -1200,7 +1253,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Table", "Columns", }); internal_static_google_cloud_datastream_v1_SqlServerSchema_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_datastream_v1_SqlServerSchema_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_SqlServerSchema_descriptor, @@ -1208,7 +1261,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Schema", "Tables", }); internal_static_google_cloud_datastream_v1_SqlServerRdbms_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_datastream_v1_SqlServerRdbms_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_SqlServerRdbms_descriptor, @@ -1216,7 +1269,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Schemas", }); internal_static_google_cloud_datastream_v1_SqlServerSourceConfig_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_datastream_v1_SqlServerSourceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_SqlServerSourceConfig_descriptor, @@ -1230,19 +1283,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CdcMethod", }); internal_static_google_cloud_datastream_v1_SqlServerTransactionLogs_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(32); 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); + getDescriptor().getMessageTypes().get(33); 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(33); + getDescriptor().getMessageTypes().get(34); internal_static_google_cloud_datastream_v1_MysqlColumn_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_MysqlColumn_descriptor, @@ -1258,7 +1311,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Scale", }); internal_static_google_cloud_datastream_v1_MysqlTable_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(35); internal_static_google_cloud_datastream_v1_MysqlTable_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_MysqlTable_descriptor, @@ -1266,7 +1319,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Table", "MysqlColumns", }); internal_static_google_cloud_datastream_v1_MysqlDatabase_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(36); internal_static_google_cloud_datastream_v1_MysqlDatabase_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_MysqlDatabase_descriptor, @@ -1274,7 +1327,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Database", "MysqlTables", }); internal_static_google_cloud_datastream_v1_MysqlRdbms_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(37); internal_static_google_cloud_datastream_v1_MysqlRdbms_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_MysqlRdbms_descriptor, @@ -1282,7 +1335,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MysqlDatabases", }); internal_static_google_cloud_datastream_v1_MysqlSourceConfig_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(38); internal_static_google_cloud_datastream_v1_MysqlSourceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_MysqlSourceConfig_descriptor, @@ -1312,7 +1365,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_datastream_v1_MysqlSourceConfig_Gtid_descriptor, new java.lang.String[] {}); internal_static_google_cloud_datastream_v1_SourceConfig_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(39); internal_static_google_cloud_datastream_v1_SourceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_SourceConfig_descriptor, @@ -1325,13 +1378,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SourceStreamConfig", }); internal_static_google_cloud_datastream_v1_AvroFileFormat_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(40); 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(40); + getDescriptor().getMessageTypes().get(41); internal_static_google_cloud_datastream_v1_JsonFileFormat_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_JsonFileFormat_descriptor, @@ -1339,7 +1392,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SchemaFileFormat", "Compression", }); internal_static_google_cloud_datastream_v1_GcsDestinationConfig_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(42); internal_static_google_cloud_datastream_v1_GcsDestinationConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_GcsDestinationConfig_descriptor, @@ -1352,7 +1405,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FileFormat", }); internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(43); internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor, @@ -1412,7 +1465,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_Merge_descriptor, new java.lang.String[] {}); internal_static_google_cloud_datastream_v1_DestinationConfig_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(44); internal_static_google_cloud_datastream_v1_DestinationConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_DestinationConfig_descriptor, @@ -1423,7 +1476,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DestinationStreamConfig", }); internal_static_google_cloud_datastream_v1_Stream_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(45); internal_static_google_cloud_datastream_v1_Stream_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_Stream_descriptor, @@ -1470,7 +1523,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_datastream_v1_StreamObject_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(46); internal_static_google_cloud_datastream_v1_StreamObject_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_StreamObject_descriptor, @@ -1484,7 +1537,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SourceObject", }); internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor = - getDescriptor().getMessageTypes().get(46); + getDescriptor().getMessageTypes().get(47); internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor, @@ -1536,7 +1589,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Schema", "Table", }); internal_static_google_cloud_datastream_v1_BackfillJob_descriptor = - getDescriptor().getMessageTypes().get(47); + getDescriptor().getMessageTypes().get(48); internal_static_google_cloud_datastream_v1_BackfillJob_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_BackfillJob_descriptor, @@ -1544,7 +1597,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(48); + getDescriptor().getMessageTypes().get(49); internal_static_google_cloud_datastream_v1_Error_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_Error_descriptor, @@ -1560,7 +1613,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_datastream_v1_ValidationResult_descriptor = - getDescriptor().getMessageTypes().get(49); + getDescriptor().getMessageTypes().get(50); internal_static_google_cloud_datastream_v1_ValidationResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_ValidationResult_descriptor, @@ -1568,7 +1621,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Validations", }); internal_static_google_cloud_datastream_v1_Validation_descriptor = - getDescriptor().getMessageTypes().get(50); + getDescriptor().getMessageTypes().get(51); internal_static_google_cloud_datastream_v1_Validation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_Validation_descriptor, @@ -1576,7 +1629,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Description", "State", "Message", "Code", }); internal_static_google_cloud_datastream_v1_ValidationMessage_descriptor = - getDescriptor().getMessageTypes().get(51); + getDescriptor().getMessageTypes().get(52); internal_static_google_cloud_datastream_v1_ValidationMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_ValidationMessage_descriptor, @@ -1594,7 +1647,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_datastream_v1_CdcStrategy_descriptor = - getDescriptor().getMessageTypes().get(52); + getDescriptor().getMessageTypes().get(53); internal_static_google_cloud_datastream_v1_CdcStrategy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_CdcStrategy_descriptor, @@ -1625,7 +1678,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MysqlLogPosition", "OracleScnPosition", "SqlServerLsnPosition", "Position", }); internal_static_google_cloud_datastream_v1_SqlServerLsnPosition_descriptor = - getDescriptor().getMessageTypes().get(53); + getDescriptor().getMessageTypes().get(54); internal_static_google_cloud_datastream_v1_SqlServerLsnPosition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_SqlServerLsnPosition_descriptor, @@ -1633,7 +1686,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Lsn", }); internal_static_google_cloud_datastream_v1_OracleScnPosition_descriptor = - getDescriptor().getMessageTypes().get(54); + getDescriptor().getMessageTypes().get(55); internal_static_google_cloud_datastream_v1_OracleScnPosition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_OracleScnPosition_descriptor, @@ -1641,7 +1694,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Scn", }); internal_static_google_cloud_datastream_v1_MysqlLogPosition_descriptor = - getDescriptor().getMessageTypes().get(55); + getDescriptor().getMessageTypes().get(56); internal_static_google_cloud_datastream_v1_MysqlLogPosition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_MysqlLogPosition_descriptor, 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 index 27e6ac5056ea..ae75d751e98a 100644 --- 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 @@ -24,6 +24,7 @@ * *
  * Configuration for Oracle Automatic Storage Management (ASM) connection.
+ * .
  * 
* * Protobuf type {@code google.cloud.datastream.v1.OracleAsmConfig} @@ -207,10 +208,10 @@ public com.google.protobuf.ByteString getUsernameBytes() { * * *
-   * Required. Password for the Oracle ASM connection.
+   * Optional. Password for the Oracle ASM connection.
    * 
* - * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * string password = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The password. */ @@ -230,10 +231,10 @@ public java.lang.String getPassword() { * * *
-   * Required. Password for the Oracle ASM connection.
+   * Optional. Password for the Oracle ASM connection.
    * 
* - * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * string password = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for password. */ @@ -706,6 +707,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * Configuration for Oracle Automatic Storage Management (ASM) connection.
+   * .
    * 
* * Protobuf type {@code google.cloud.datastream.v1.OracleAsmConfig} @@ -1283,10 +1285,10 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. Password for the Oracle ASM connection.
+     * Optional. Password for the Oracle ASM connection.
      * 
* - * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * string password = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The password. */ @@ -1305,10 +1307,10 @@ public java.lang.String getPassword() { * * *
-     * Required. Password for the Oracle ASM connection.
+     * Optional. Password for the Oracle ASM connection.
      * 
* - * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * string password = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for password. */ @@ -1327,10 +1329,10 @@ public com.google.protobuf.ByteString getPasswordBytes() { * * *
-     * Required. Password for the Oracle ASM connection.
+     * Optional. Password for the Oracle ASM connection.
      * 
* - * 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. @@ -1348,10 +1350,10 @@ public Builder setPassword(java.lang.String value) { * * *
-     * Required. Password for the Oracle ASM connection.
+     * Optional. Password for the Oracle ASM connection.
      * 
* - * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * string password = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1365,10 +1367,10 @@ public Builder clearPassword() { * * *
-     * Required. Password for the Oracle ASM connection.
+     * Optional. Password for the Oracle ASM connection.
      * 
* - * 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/OracleAsmConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleAsmConfigOrBuilder.java index fc4414c4ca84..d12f0814db8f 100644 --- 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 @@ -91,10 +91,10 @@ public interface OracleAsmConfigOrBuilder * * *
-   * Required. Password for the Oracle ASM connection.
+   * Optional. Password for the Oracle ASM connection.
    * 
* - * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * string password = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The password. */ @@ -103,10 +103,10 @@ public interface OracleAsmConfigOrBuilder * * *
-   * Required. Password for the Oracle ASM connection.
+   * Optional. Password for the Oracle ASM connection.
    * 
* - * 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/PostgresqlProfile.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfile.java index 9c65eda294dc..9e093239c9fa 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 @@ -66,6 +66,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.datastream.v1.PostgresqlProfile.Builder.class); } + private int bitField0_; public static final int HOSTNAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -290,6 +291,71 @@ public com.google.protobuf.ByteString getDatabaseBytes() { } } + public static final int SSL_CONFIG_FIELD_NUMBER = 7; + private com.google.cloud.datastream.v1.PostgresqlSslConfig sslConfig_; + /** + * + * + *
+   * Optional. SSL configuration for the PostgreSQL connection.
+   * In case PostgresqlSslConfig is not set, the connection will use the default
+   * SSL mode, which is `prefer` (i.e. this mode will only use encryption if
+   * enabled from database side, otherwise will use unencrypted communication)
+   * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sslConfig field is set. + */ + @java.lang.Override + public boolean hasSslConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. SSL configuration for the PostgreSQL connection.
+   * In case PostgresqlSslConfig is not set, the connection will use the default
+   * SSL mode, which is `prefer` (i.e. this mode will only use encryption if
+   * enabled from database side, otherwise will use unencrypted communication)
+   * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sslConfig. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlSslConfig getSslConfig() { + return sslConfig_ == null + ? com.google.cloud.datastream.v1.PostgresqlSslConfig.getDefaultInstance() + : sslConfig_; + } + /** + * + * + *
+   * Optional. SSL configuration for the PostgreSQL connection.
+   * In case PostgresqlSslConfig is not set, the connection will use the default
+   * SSL mode, which is `prefer` (i.e. this mode will only use encryption if
+   * enabled from database side, otherwise will use unencrypted communication)
+   * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlSslConfigOrBuilder getSslConfigOrBuilder() { + return sslConfig_ == null + ? com.google.cloud.datastream.v1.PostgresqlSslConfig.getDefaultInstance() + : sslConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -319,6 +385,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, database_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(7, getSslConfig()); + } getUnknownFields().writeTo(output); } @@ -343,6 +412,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, database_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSslConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -364,6 +436,10 @@ public boolean equals(final java.lang.Object obj) { if (!getUsername().equals(other.getUsername())) return false; if (!getPassword().equals(other.getPassword())) return false; if (!getDatabase().equals(other.getDatabase())) return false; + if (hasSslConfig() != other.hasSslConfig()) return false; + if (hasSslConfig()) { + if (!getSslConfig().equals(other.getSslConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -385,6 +461,10 @@ public int hashCode() { hash = (53 * hash) + getPassword().hashCode(); hash = (37 * hash) + DATABASE_FIELD_NUMBER; hash = (53 * hash) + getDatabase().hashCode(); + if (hasSslConfig()) { + hash = (37 * hash) + SSL_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSslConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -514,10 +594,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.datastream.v1.PostgresqlProfile.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) { + getSslConfigFieldBuilder(); + } } @java.lang.Override @@ -529,6 +618,11 @@ public Builder clear() { username_ = ""; password_ = ""; database_ = ""; + sslConfig_ = null; + if (sslConfigBuilder_ != null) { + sslConfigBuilder_.dispose(); + sslConfigBuilder_ = null; + } return this; } @@ -580,6 +674,12 @@ private void buildPartial0(com.google.cloud.datastream.v1.PostgresqlProfile resu if (((from_bitField0_ & 0x00000010) != 0)) { result.database_ = database_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.sslConfig_ = sslConfigBuilder_ == null ? sslConfig_ : sslConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -651,6 +751,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.PostgresqlProfile other) bitField0_ |= 0x00000010; onChanged(); } + if (other.hasSslConfig()) { + mergeSslConfig(other.getSslConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -707,6 +810,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 42 + case 58: + { + input.readMessage(getSslConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1208,6 +1317,238 @@ public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.datastream.v1.PostgresqlSslConfig sslConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlSslConfig, + com.google.cloud.datastream.v1.PostgresqlSslConfig.Builder, + com.google.cloud.datastream.v1.PostgresqlSslConfigOrBuilder> + sslConfigBuilder_; + /** + * + * + *
+     * Optional. SSL configuration for the PostgreSQL connection.
+     * In case PostgresqlSslConfig is not set, the connection will use the default
+     * SSL mode, which is `prefer` (i.e. this mode will only use encryption if
+     * enabled from database side, otherwise will use unencrypted communication)
+     * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sslConfig field is set. + */ + public boolean hasSslConfig() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+     * Optional. SSL configuration for the PostgreSQL connection.
+     * In case PostgresqlSslConfig is not set, the connection will use the default
+     * SSL mode, which is `prefer` (i.e. this mode will only use encryption if
+     * enabled from database side, otherwise will use unencrypted communication)
+     * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sslConfig. + */ + public com.google.cloud.datastream.v1.PostgresqlSslConfig getSslConfig() { + if (sslConfigBuilder_ == null) { + return sslConfig_ == null + ? com.google.cloud.datastream.v1.PostgresqlSslConfig.getDefaultInstance() + : sslConfig_; + } else { + return sslConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. SSL configuration for the PostgreSQL connection.
+     * In case PostgresqlSslConfig is not set, the connection will use the default
+     * SSL mode, which is `prefer` (i.e. this mode will only use encryption if
+     * enabled from database side, otherwise will use unencrypted communication)
+     * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSslConfig(com.google.cloud.datastream.v1.PostgresqlSslConfig value) { + if (sslConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sslConfig_ = value; + } else { + sslConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. SSL configuration for the PostgreSQL connection.
+     * In case PostgresqlSslConfig is not set, the connection will use the default
+     * SSL mode, which is `prefer` (i.e. this mode will only use encryption if
+     * enabled from database side, otherwise will use unencrypted communication)
+     * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSslConfig( + com.google.cloud.datastream.v1.PostgresqlSslConfig.Builder builderForValue) { + if (sslConfigBuilder_ == null) { + sslConfig_ = builderForValue.build(); + } else { + sslConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. SSL configuration for the PostgreSQL connection.
+     * In case PostgresqlSslConfig is not set, the connection will use the default
+     * SSL mode, which is `prefer` (i.e. this mode will only use encryption if
+     * enabled from database side, otherwise will use unencrypted communication)
+     * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSslConfig(com.google.cloud.datastream.v1.PostgresqlSslConfig value) { + if (sslConfigBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && sslConfig_ != null + && sslConfig_ + != com.google.cloud.datastream.v1.PostgresqlSslConfig.getDefaultInstance()) { + getSslConfigBuilder().mergeFrom(value); + } else { + sslConfig_ = value; + } + } else { + sslConfigBuilder_.mergeFrom(value); + } + if (sslConfig_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. SSL configuration for the PostgreSQL connection.
+     * In case PostgresqlSslConfig is not set, the connection will use the default
+     * SSL mode, which is `prefer` (i.e. this mode will only use encryption if
+     * enabled from database side, otherwise will use unencrypted communication)
+     * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSslConfig() { + bitField0_ = (bitField0_ & ~0x00000020); + sslConfig_ = null; + if (sslConfigBuilder_ != null) { + sslConfigBuilder_.dispose(); + sslConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. SSL configuration for the PostgreSQL connection.
+     * In case PostgresqlSslConfig is not set, the connection will use the default
+     * SSL mode, which is `prefer` (i.e. this mode will only use encryption if
+     * enabled from database side, otherwise will use unencrypted communication)
+     * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.PostgresqlSslConfig.Builder getSslConfigBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getSslConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. SSL configuration for the PostgreSQL connection.
+     * In case PostgresqlSslConfig is not set, the connection will use the default
+     * SSL mode, which is `prefer` (i.e. this mode will only use encryption if
+     * enabled from database side, otherwise will use unencrypted communication)
+     * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.datastream.v1.PostgresqlSslConfigOrBuilder getSslConfigOrBuilder() { + if (sslConfigBuilder_ != null) { + return sslConfigBuilder_.getMessageOrBuilder(); + } else { + return sslConfig_ == null + ? com.google.cloud.datastream.v1.PostgresqlSslConfig.getDefaultInstance() + : sslConfig_; + } + } + /** + * + * + *
+     * Optional. SSL configuration for the PostgreSQL connection.
+     * In case PostgresqlSslConfig is not set, the connection will use the default
+     * SSL mode, which is `prefer` (i.e. this mode will only use encryption if
+     * enabled from database side, otherwise will use unencrypted communication)
+     * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlSslConfig, + com.google.cloud.datastream.v1.PostgresqlSslConfig.Builder, + com.google.cloud.datastream.v1.PostgresqlSslConfigOrBuilder> + getSslConfigFieldBuilder() { + if (sslConfigBuilder_ == null) { + sslConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlSslConfig, + com.google.cloud.datastream.v1.PostgresqlSslConfig.Builder, + com.google.cloud.datastream.v1.PostgresqlSslConfigOrBuilder>( + getSslConfig(), getParentForChildren(), isClean()); + sslConfig_ = null; + } + return sslConfigBuilder_; + } + @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/PostgresqlProfileOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfileOrBuilder.java index f866fb4b6437..928ccfe6da2c 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 @@ -138,4 +138,54 @@ public interface PostgresqlProfileOrBuilder * @return The bytes for database. */ com.google.protobuf.ByteString getDatabaseBytes(); + + /** + * + * + *
+   * Optional. SSL configuration for the PostgreSQL connection.
+   * In case PostgresqlSslConfig is not set, the connection will use the default
+   * SSL mode, which is `prefer` (i.e. this mode will only use encryption if
+   * enabled from database side, otherwise will use unencrypted communication)
+   * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sslConfig field is set. + */ + boolean hasSslConfig(); + /** + * + * + *
+   * Optional. SSL configuration for the PostgreSQL connection.
+   * In case PostgresqlSslConfig is not set, the connection will use the default
+   * SSL mode, which is `prefer` (i.e. this mode will only use encryption if
+   * enabled from database side, otherwise will use unencrypted communication)
+   * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sslConfig. + */ + com.google.cloud.datastream.v1.PostgresqlSslConfig getSslConfig(); + /** + * + * + *
+   * Optional. SSL configuration for the PostgreSQL connection.
+   * In case PostgresqlSslConfig is not set, the connection will use the default
+   * SSL mode, which is `prefer` (i.e. this mode will only use encryption if
+   * enabled from database side, otherwise will use unencrypted communication)
+   * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig ssl_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.datastream.v1.PostgresqlSslConfigOrBuilder getSslConfigOrBuilder(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSslConfig.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSslConfig.java new file mode 100644 index 000000000000..f309d8cfc453 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSslConfig.java @@ -0,0 +1,3159 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream_resources.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datastream.v1; + +/** + * + * + *
+ * PostgreSQL SSL configuration information.
+ * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.PostgresqlSslConfig} + */ +public final class PostgresqlSslConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.PostgresqlSslConfig) + PostgresqlSslConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use PostgresqlSslConfig.newBuilder() to construct. + private PostgresqlSslConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PostgresqlSslConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PostgresqlSslConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlSslConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlSslConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.PostgresqlSslConfig.class, + com.google.cloud.datastream.v1.PostgresqlSslConfig.Builder.class); + } + + public interface ServerVerificationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. Input only. PEM-encoded server root CA certificate.
+     * 
+ * + * + * string ca_certificate = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The caCertificate. + */ + java.lang.String getCaCertificate(); + /** + * + * + *
+     * Required. Input only. PEM-encoded server root CA certificate.
+     * 
+ * + * + * string ca_certificate = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for caCertificate. + */ + com.google.protobuf.ByteString getCaCertificateBytes(); + } + /** + * + * + *
+   * Message represents the option where Datastream will enforce the encryption
+   * and authenticate the server identity. ca_certificate must be set if user
+   * selects this option.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification} + */ + public static final class ServerVerification extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification) + ServerVerificationOrBuilder { + private static final long serialVersionUID = 0L; + // Use ServerVerification.newBuilder() to construct. + private ServerVerification(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ServerVerification() { + caCertificate_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ServerVerification(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlSslConfig_ServerVerification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlSslConfig_ServerVerification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification.class, + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification.Builder.class); + } + + public static final int CA_CERTIFICATE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object caCertificate_ = ""; + /** + * + * + *
+     * Required. Input only. PEM-encoded server root CA certificate.
+     * 
+ * + * + * string ca_certificate = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @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; + } + } + /** + * + * + *
+     * Required. Input only. PEM-encoded server root CA certificate.
+     * 
+ * + * + * string ca_certificate = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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_); + } + 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_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.PostgresqlSslConfig.ServerVerification)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification other = + (com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification) obj; + + if (!getCaCertificate().equals(other.getCaCertificate())) return false; + if (!getUnknownFields().equals(other.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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification parseFrom( + 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.PostgresqlSslConfig.ServerVerification parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification parseFrom( + com.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.PostgresqlSslConfig.ServerVerification parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification 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.PostgresqlSslConfig.ServerVerification parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification parseFrom( + java.io.InputStream 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.PostgresqlSslConfig.ServerVerification + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification + parseDelimitedFrom( + java.io.InputStream 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.PostgresqlSslConfig.ServerVerification 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.PostgresqlSslConfig.ServerVerification parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.PostgresqlSslConfig.ServerVerification prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Message represents the option where Datastream will enforce the encryption
+     * and authenticate the server identity. ca_certificate must be set if user
+     * selects this option.
+     * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification) + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerificationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlSslConfig_ServerVerification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlSslConfig_ServerVerification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification.class, + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification.Builder + .class); + } + + // Construct using + // com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + caCertificate_ = ""; + 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_PostgresqlSslConfig_ServerVerification_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification build() { + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification buildPartial() { + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification result = + new com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.caCertificate_ = caCertificate_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.PostgresqlSslConfig.ServerVerification) { + return mergeFrom( + (com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification other) { + if (other + == com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification + .getDefaultInstance()) return this; + if (!other.getCaCertificate().isEmpty()) { + caCertificate_ = other.caCertificate_; + 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: + { + caCertificate_ = 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 caCertificate_ = ""; + /** + * + * + *
+       * Required. Input only. PEM-encoded server root CA certificate.
+       * 
+ * + * + * string ca_certificate = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @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; + } + } + /** + * + * + *
+       * Required. Input only. PEM-encoded server root CA certificate.
+       * 
+ * + * + * string ca_certificate = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @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; + } + } + /** + * + * + *
+       * Required. Input only. PEM-encoded server root CA certificate.
+       * 
+ * + * + * string ca_certificate = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @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; + } + /** + * + * + *
+       * Required. Input only. PEM-encoded server root CA certificate.
+       * 
+ * + * + * string ca_certificate = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearCaCertificate() { + caCertificate_ = getDefaultInstance().getCaCertificate(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Input only. PEM-encoded server root CA certificate.
+       * 
+ * + * + * string ca_certificate = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @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; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @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.PostgresqlSslConfig.ServerVerification) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification) + private static final com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification(); + } + + public static com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServerVerification parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.PostgresqlSslConfig.ServerVerification + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ServerAndClientVerificationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. Input only. PEM-encoded certificate used by the source database
+     * to authenticate the client identity (i.e., the Datastream's identity).
+     * This certificate is signed by either a root certificate trusted by the
+     * server or one or more intermediate certificates (which is stored with the
+     * leaf certificate) to link the this certificate to the trusted root
+     * certificate.
+     * 
+ * + * + * string client_certificate = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clientCertificate. + */ + java.lang.String getClientCertificate(); + /** + * + * + *
+     * Required. Input only. PEM-encoded certificate used by the source database
+     * to authenticate the client identity (i.e., the Datastream's identity).
+     * This certificate is signed by either a root certificate trusted by the
+     * server or one or more intermediate certificates (which is stored with the
+     * leaf certificate) to link the this certificate to the trusted root
+     * certificate.
+     * 
+ * + * + * string client_certificate = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clientCertificate. + */ + com.google.protobuf.ByteString getClientCertificateBytes(); + + /** + * + * + *
+     * Required. Input only. PEM-encoded private key associated with the client
+     * certificate. This value will be used during the SSL/TLS handshake,
+     * allowing the PostgreSQL server to authenticate the client's identity,
+     * i.e. identity of the Datastream.
+     * 
+ * + * + * string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clientKey. + */ + java.lang.String getClientKey(); + /** + * + * + *
+     * Required. Input only. PEM-encoded private key associated with the client
+     * certificate. This value will be used during the SSL/TLS handshake,
+     * allowing the PostgreSQL server to authenticate the client's identity,
+     * i.e. identity of the Datastream.
+     * 
+ * + * + * string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clientKey. + */ + com.google.protobuf.ByteString getClientKeyBytes(); + + /** + * + * + *
+     * Required. Input only. PEM-encoded server root CA certificate.
+     * 
+ * + * + * string ca_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The caCertificate. + */ + java.lang.String getCaCertificate(); + /** + * + * + *
+     * Required. Input only. PEM-encoded server root CA certificate.
+     * 
+ * + * + * string ca_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for caCertificate. + */ + com.google.protobuf.ByteString getCaCertificateBytes(); + } + /** + * + * + *
+   * Message represents the option where Datastream will enforce the encryption
+   * and authenticate the server identity as well as the client identity.
+   * ca_certificate, client_certificate and client_key must be set if user
+   * selects this option.
+   * 
+ * + * Protobuf type {@code + * google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification} + */ + public static final class ServerAndClientVerification + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification) + ServerAndClientVerificationOrBuilder { + private static final long serialVersionUID = 0L; + // Use ServerAndClientVerification.newBuilder() to construct. + private ServerAndClientVerification(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ServerAndClientVerification() { + clientCertificate_ = ""; + clientKey_ = ""; + caCertificate_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ServerAndClientVerification(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlSslConfig_ServerAndClientVerification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlSslConfig_ServerAndClientVerification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification.class, + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification.Builder + .class); + } + + public static final int CLIENT_CERTIFICATE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object clientCertificate_ = ""; + /** + * + * + *
+     * Required. Input only. PEM-encoded certificate used by the source database
+     * to authenticate the client identity (i.e., the Datastream's identity).
+     * This certificate is signed by either a root certificate trusted by the
+     * server or one or more intermediate certificates (which is stored with the
+     * leaf certificate) to link the this certificate to the trusted root
+     * certificate.
+     * 
+ * + * + * string client_certificate = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clientCertificate. + */ + @java.lang.Override + public java.lang.String getClientCertificate() { + java.lang.Object ref = clientCertificate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientCertificate_ = s; + return s; + } + } + /** + * + * + *
+     * Required. Input only. PEM-encoded certificate used by the source database
+     * to authenticate the client identity (i.e., the Datastream's identity).
+     * This certificate is signed by either a root certificate trusted by the
+     * server or one or more intermediate certificates (which is stored with the
+     * leaf certificate) to link the this certificate to the trusted root
+     * certificate.
+     * 
+ * + * + * string client_certificate = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clientCertificate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClientCertificateBytes() { + java.lang.Object ref = clientCertificate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientCertificate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIENT_KEY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object clientKey_ = ""; + /** + * + * + *
+     * Required. Input only. PEM-encoded private key associated with the client
+     * certificate. This value will be used during the SSL/TLS handshake,
+     * allowing the PostgreSQL server to authenticate the client's identity,
+     * i.e. identity of the Datastream.
+     * 
+ * + * + * string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clientKey. + */ + @java.lang.Override + public java.lang.String getClientKey() { + java.lang.Object ref = clientKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientKey_ = s; + return s; + } + } + /** + * + * + *
+     * Required. Input only. PEM-encoded private key associated with the client
+     * certificate. This value will be used during the SSL/TLS handshake,
+     * allowing the PostgreSQL server to authenticate the client's identity,
+     * i.e. identity of the Datastream.
+     * 
+ * + * + * string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clientKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClientKeyBytes() { + java.lang.Object ref = clientKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CA_CERTIFICATE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object caCertificate_ = ""; + /** + * + * + *
+     * Required. Input only. PEM-encoded server root CA certificate.
+     * 
+ * + * + * string ca_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @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; + } + } + /** + * + * + *
+     * Required. Input only. PEM-encoded server root CA certificate.
+     * 
+ * + * + * string ca_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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(clientCertificate_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientCertificate_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clientKey_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(caCertificate_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, caCertificate_); + } + 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(clientCertificate_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientCertificate_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientKey_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clientKey_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(caCertificate_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, caCertificate_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.PostgresqlSslConfig.ServerAndClientVerification)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification other = + (com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification) obj; + + if (!getClientCertificate().equals(other.getClientCertificate())) return false; + if (!getClientKey().equals(other.getClientKey())) return false; + if (!getCaCertificate().equals(other.getCaCertificate())) return false; + if (!getUnknownFields().equals(other.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_CERTIFICATE_FIELD_NUMBER; + hash = (53 * hash) + getClientCertificate().hashCode(); + hash = (37 * hash) + CLIENT_KEY_FIELD_NUMBER; + hash = (53 * hash) + getClientKey().hashCode(); + hash = (37 * hash) + CA_CERTIFICATE_FIELD_NUMBER; + hash = (53 * hash) + getCaCertificate().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification + parseFrom( + 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.PostgresqlSslConfig.ServerAndClientVerification + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification + parseFrom( + com.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.PostgresqlSslConfig.ServerAndClientVerification + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification + 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.PostgresqlSslConfig.ServerAndClientVerification + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification + parseFrom( + java.io.InputStream 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.PostgresqlSslConfig.ServerAndClientVerification + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification + parseDelimitedFrom( + java.io.InputStream 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.PostgresqlSslConfig.ServerAndClientVerification + 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.PostgresqlSslConfig.ServerAndClientVerification + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.PostgresqlSslConfig.ServerAndClientVerification prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Message represents the option where Datastream will enforce the encryption
+     * and authenticate the server identity as well as the client identity.
+     * ca_certificate, client_certificate and client_key must be set if user
+     * selects this option.
+     * 
+ * + * Protobuf type {@code + * google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification) + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerificationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlSslConfig_ServerAndClientVerification_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlSslConfig_ServerAndClientVerification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification + .class, + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification + .Builder.class); + } + + // Construct using + // com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + clientCertificate_ = ""; + clientKey_ = ""; + caCertificate_ = ""; + 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_PostgresqlSslConfig_ServerAndClientVerification_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification + build() { + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification + buildPartial() { + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification result = + new com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.clientCertificate_ = clientCertificate_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.clientKey_ = clientKey_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.caCertificate_ = caCertificate_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.PostgresqlSslConfig.ServerAndClientVerification) { + return mergeFrom( + (com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification other) { + if (other + == com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification + .getDefaultInstance()) return this; + if (!other.getClientCertificate().isEmpty()) { + clientCertificate_ = other.clientCertificate_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getClientKey().isEmpty()) { + clientKey_ = other.clientKey_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getCaCertificate().isEmpty()) { + caCertificate_ = other.caCertificate_; + 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: + { + clientCertificate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + clientKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + caCertificate_ = 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 clientCertificate_ = ""; + /** + * + * + *
+       * Required. Input only. PEM-encoded certificate used by the source database
+       * to authenticate the client identity (i.e., the Datastream's identity).
+       * This certificate is signed by either a root certificate trusted by the
+       * server or one or more intermediate certificates (which is stored with the
+       * leaf certificate) to link the this certificate to the trusted root
+       * certificate.
+       * 
+ * + * + * string client_certificate = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clientCertificate. + */ + public java.lang.String getClientCertificate() { + java.lang.Object ref = clientCertificate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientCertificate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. Input only. PEM-encoded certificate used by the source database
+       * to authenticate the client identity (i.e., the Datastream's identity).
+       * This certificate is signed by either a root certificate trusted by the
+       * server or one or more intermediate certificates (which is stored with the
+       * leaf certificate) to link the this certificate to the trusted root
+       * certificate.
+       * 
+ * + * + * string client_certificate = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clientCertificate. + */ + public com.google.protobuf.ByteString getClientCertificateBytes() { + java.lang.Object ref = clientCertificate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientCertificate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. Input only. PEM-encoded certificate used by the source database
+       * to authenticate the client identity (i.e., the Datastream's identity).
+       * This certificate is signed by either a root certificate trusted by the
+       * server or one or more intermediate certificates (which is stored with the
+       * leaf certificate) to link the this certificate to the trusted root
+       * certificate.
+       * 
+ * + * + * string client_certificate = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The clientCertificate to set. + * @return This builder for chaining. + */ + public Builder setClientCertificate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clientCertificate_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Input only. PEM-encoded certificate used by the source database
+       * to authenticate the client identity (i.e., the Datastream's identity).
+       * This certificate is signed by either a root certificate trusted by the
+       * server or one or more intermediate certificates (which is stored with the
+       * leaf certificate) to link the this certificate to the trusted root
+       * certificate.
+       * 
+ * + * + * string client_certificate = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearClientCertificate() { + clientCertificate_ = getDefaultInstance().getClientCertificate(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Input only. PEM-encoded certificate used by the source database
+       * to authenticate the client identity (i.e., the Datastream's identity).
+       * This certificate is signed by either a root certificate trusted by the
+       * server or one or more intermediate certificates (which is stored with the
+       * leaf certificate) to link the this certificate to the trusted root
+       * certificate.
+       * 
+ * + * + * string client_certificate = 1 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for clientCertificate to set. + * @return This builder for chaining. + */ + public Builder setClientCertificateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientCertificate_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object clientKey_ = ""; + /** + * + * + *
+       * Required. Input only. PEM-encoded private key associated with the client
+       * certificate. This value will be used during the SSL/TLS handshake,
+       * allowing the PostgreSQL server to authenticate the client's identity,
+       * i.e. identity of the Datastream.
+       * 
+ * + * + * string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clientKey. + */ + public java.lang.String getClientKey() { + java.lang.Object ref = clientKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. Input only. PEM-encoded private key associated with the client
+       * certificate. This value will be used during the SSL/TLS handshake,
+       * allowing the PostgreSQL server to authenticate the client's identity,
+       * i.e. identity of the Datastream.
+       * 
+ * + * + * string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clientKey. + */ + public com.google.protobuf.ByteString getClientKeyBytes() { + java.lang.Object ref = clientKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. Input only. PEM-encoded private key associated with the client
+       * certificate. This value will be used during the SSL/TLS handshake,
+       * allowing the PostgreSQL server to authenticate the client's identity,
+       * i.e. identity of the Datastream.
+       * 
+ * + * + * string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The clientKey to set. + * @return This builder for chaining. + */ + public Builder setClientKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clientKey_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Input only. PEM-encoded private key associated with the client
+       * certificate. This value will be used during the SSL/TLS handshake,
+       * allowing the PostgreSQL server to authenticate the client's identity,
+       * i.e. identity of the Datastream.
+       * 
+ * + * + * string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearClientKey() { + clientKey_ = getDefaultInstance().getClientKey(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Input only. PEM-encoded private key associated with the client
+       * certificate. This value will be used during the SSL/TLS handshake,
+       * allowing the PostgreSQL server to authenticate the client's identity,
+       * i.e. identity of the Datastream.
+       * 
+ * + * + * string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for clientKey to set. + * @return This builder for chaining. + */ + public Builder setClientKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientKey_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object caCertificate_ = ""; + /** + * + * + *
+       * Required. Input only. PEM-encoded server root CA certificate.
+       * 
+ * + * + * string ca_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @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; + } + } + /** + * + * + *
+       * Required. Input only. PEM-encoded server root CA certificate.
+       * 
+ * + * + * string ca_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @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; + } + } + /** + * + * + *
+       * Required. Input only. PEM-encoded server root CA certificate.
+       * 
+ * + * + * string ca_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Input only. PEM-encoded server root CA certificate.
+       * 
+ * + * + * string ca_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearCaCertificate() { + caCertificate_ = getDefaultInstance().getCaCertificate(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Input only. PEM-encoded server root CA certificate.
+       * 
+ * + * + * string ca_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED]; + * + * + * @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_ |= 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.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification) + private static final com.google.cloud.datastream.v1.PostgresqlSslConfig + .ServerAndClientVerification + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification(); + } + + public static com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServerAndClientVerification parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.PostgresqlSslConfig.ServerAndClientVerification + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int encryptionSettingCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object encryptionSetting_; + + public enum EncryptionSettingCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SERVER_VERIFICATION(1), + SERVER_AND_CLIENT_VERIFICATION(2), + ENCRYPTIONSETTING_NOT_SET(0); + private final int value; + + private EncryptionSettingCase(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 EncryptionSettingCase valueOf(int value) { + return forNumber(value); + } + + public static EncryptionSettingCase forNumber(int value) { + switch (value) { + case 1: + return SERVER_VERIFICATION; + case 2: + return SERVER_AND_CLIENT_VERIFICATION; + case 0: + return ENCRYPTIONSETTING_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EncryptionSettingCase getEncryptionSettingCase() { + return EncryptionSettingCase.forNumber(encryptionSettingCase_); + } + + public static final int SERVER_VERIFICATION_FIELD_NUMBER = 1; + /** + * + * + *
+   *  If this field is set, the communication will be encrypted with TLS
+   *  encryption and the server identity will be authenticated.
+   * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification server_verification = 1; + * + * + * @return Whether the serverVerification field is set. + */ + @java.lang.Override + public boolean hasServerVerification() { + return encryptionSettingCase_ == 1; + } + /** + * + * + *
+   *  If this field is set, the communication will be encrypted with TLS
+   *  encryption and the server identity will be authenticated.
+   * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification server_verification = 1; + * + * + * @return The serverVerification. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification + getServerVerification() { + if (encryptionSettingCase_ == 1) { + return (com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification) + encryptionSetting_; + } + return com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification + .getDefaultInstance(); + } + /** + * + * + *
+   *  If this field is set, the communication will be encrypted with TLS
+   *  encryption and the server identity will be authenticated.
+   * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification server_verification = 1; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerificationOrBuilder + getServerVerificationOrBuilder() { + if (encryptionSettingCase_ == 1) { + return (com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification) + encryptionSetting_; + } + return com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification + .getDefaultInstance(); + } + + public static final int SERVER_AND_CLIENT_VERIFICATION_FIELD_NUMBER = 2; + /** + * + * + *
+   * If this field is set, the communication will be encrypted with TLS
+   * encryption and both the server identity and the client identity will be
+   * authenticated.
+   * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification server_and_client_verification = 2; + * + * + * @return Whether the serverAndClientVerification field is set. + */ + @java.lang.Override + public boolean hasServerAndClientVerification() { + return encryptionSettingCase_ == 2; + } + /** + * + * + *
+   * If this field is set, the communication will be encrypted with TLS
+   * encryption and both the server identity and the client identity will be
+   * authenticated.
+   * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification server_and_client_verification = 2; + * + * + * @return The serverAndClientVerification. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification + getServerAndClientVerification() { + if (encryptionSettingCase_ == 2) { + return (com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification) + encryptionSetting_; + } + return com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification + .getDefaultInstance(); + } + /** + * + * + *
+   * If this field is set, the communication will be encrypted with TLS
+   * encryption and both the server identity and the client identity will be
+   * authenticated.
+   * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification server_and_client_verification = 2; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerificationOrBuilder + getServerAndClientVerificationOrBuilder() { + if (encryptionSettingCase_ == 2) { + return (com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification) + encryptionSetting_; + } + return com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification + .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 (encryptionSettingCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification) + encryptionSetting_); + } + if (encryptionSettingCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification) + encryptionSetting_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (encryptionSettingCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification) + encryptionSetting_); + } + if (encryptionSettingCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification) + encryptionSetting_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + 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.PostgresqlSslConfig)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.PostgresqlSslConfig other = + (com.google.cloud.datastream.v1.PostgresqlSslConfig) obj; + + if (!getEncryptionSettingCase().equals(other.getEncryptionSettingCase())) return false; + switch (encryptionSettingCase_) { + case 1: + if (!getServerVerification().equals(other.getServerVerification())) return false; + break; + case 2: + if (!getServerAndClientVerification().equals(other.getServerAndClientVerification())) + 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 (encryptionSettingCase_) { + case 1: + hash = (37 * hash) + SERVER_VERIFICATION_FIELD_NUMBER; + hash = (53 * hash) + getServerVerification().hashCode(); + break; + case 2: + hash = (37 * hash) + SERVER_AND_CLIENT_VERIFICATION_FIELD_NUMBER; + hash = (53 * hash) + getServerAndClientVerification().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.PostgresqlSslConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.PostgresqlSslConfig parseFrom( + 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.PostgresqlSslConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.PostgresqlSslConfig parseFrom( + com.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.PostgresqlSslConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.PostgresqlSslConfig 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.PostgresqlSslConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.PostgresqlSslConfig parseFrom( + java.io.InputStream 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.PostgresqlSslConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.PostgresqlSslConfig parseDelimitedFrom( + java.io.InputStream 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.PostgresqlSslConfig 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.PostgresqlSslConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.PostgresqlSslConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * PostgreSQL SSL configuration information.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.PostgresqlSslConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.PostgresqlSslConfig) + com.google.cloud.datastream.v1.PostgresqlSslConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlSslConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlSslConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.PostgresqlSslConfig.class, + com.google.cloud.datastream.v1.PostgresqlSslConfig.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.PostgresqlSslConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (serverVerificationBuilder_ != null) { + serverVerificationBuilder_.clear(); + } + if (serverAndClientVerificationBuilder_ != null) { + serverAndClientVerificationBuilder_.clear(); + } + encryptionSettingCase_ = 0; + encryptionSetting_ = 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_PostgresqlSslConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlSslConfig getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.PostgresqlSslConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlSslConfig build() { + com.google.cloud.datastream.v1.PostgresqlSslConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlSslConfig buildPartial() { + com.google.cloud.datastream.v1.PostgresqlSslConfig result = + new com.google.cloud.datastream.v1.PostgresqlSslConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.datastream.v1.PostgresqlSslConfig result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.datastream.v1.PostgresqlSslConfig result) { + result.encryptionSettingCase_ = encryptionSettingCase_; + result.encryptionSetting_ = this.encryptionSetting_; + if (encryptionSettingCase_ == 1 && serverVerificationBuilder_ != null) { + result.encryptionSetting_ = serverVerificationBuilder_.build(); + } + if (encryptionSettingCase_ == 2 && serverAndClientVerificationBuilder_ != null) { + result.encryptionSetting_ = serverAndClientVerificationBuilder_.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.PostgresqlSslConfig) { + return mergeFrom((com.google.cloud.datastream.v1.PostgresqlSslConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.PostgresqlSslConfig other) { + if (other == com.google.cloud.datastream.v1.PostgresqlSslConfig.getDefaultInstance()) + return this; + switch (other.getEncryptionSettingCase()) { + case SERVER_VERIFICATION: + { + mergeServerVerification(other.getServerVerification()); + break; + } + case SERVER_AND_CLIENT_VERIFICATION: + { + mergeServerAndClientVerification(other.getServerAndClientVerification()); + break; + } + case ENCRYPTIONSETTING_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( + getServerVerificationFieldBuilder().getBuilder(), extensionRegistry); + encryptionSettingCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + getServerAndClientVerificationFieldBuilder().getBuilder(), extensionRegistry); + encryptionSettingCase_ = 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 encryptionSettingCase_ = 0; + private java.lang.Object encryptionSetting_; + + public EncryptionSettingCase getEncryptionSettingCase() { + return EncryptionSettingCase.forNumber(encryptionSettingCase_); + } + + public Builder clearEncryptionSetting() { + encryptionSettingCase_ = 0; + encryptionSetting_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification, + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification.Builder, + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerificationOrBuilder> + serverVerificationBuilder_; + /** + * + * + *
+     *  If this field is set, the communication will be encrypted with TLS
+     *  encryption and the server identity will be authenticated.
+     * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification server_verification = 1; + * + * + * @return Whether the serverVerification field is set. + */ + @java.lang.Override + public boolean hasServerVerification() { + return encryptionSettingCase_ == 1; + } + /** + * + * + *
+     *  If this field is set, the communication will be encrypted with TLS
+     *  encryption and the server identity will be authenticated.
+     * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification server_verification = 1; + * + * + * @return The serverVerification. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification + getServerVerification() { + if (serverVerificationBuilder_ == null) { + if (encryptionSettingCase_ == 1) { + return (com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification) + encryptionSetting_; + } + return com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification + .getDefaultInstance(); + } else { + if (encryptionSettingCase_ == 1) { + return serverVerificationBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification + .getDefaultInstance(); + } + } + /** + * + * + *
+     *  If this field is set, the communication will be encrypted with TLS
+     *  encryption and the server identity will be authenticated.
+     * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification server_verification = 1; + * + */ + public Builder setServerVerification( + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification value) { + if (serverVerificationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encryptionSetting_ = value; + onChanged(); + } else { + serverVerificationBuilder_.setMessage(value); + } + encryptionSettingCase_ = 1; + return this; + } + /** + * + * + *
+     *  If this field is set, the communication will be encrypted with TLS
+     *  encryption and the server identity will be authenticated.
+     * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification server_verification = 1; + * + */ + public Builder setServerVerification( + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification.Builder + builderForValue) { + if (serverVerificationBuilder_ == null) { + encryptionSetting_ = builderForValue.build(); + onChanged(); + } else { + serverVerificationBuilder_.setMessage(builderForValue.build()); + } + encryptionSettingCase_ = 1; + return this; + } + /** + * + * + *
+     *  If this field is set, the communication will be encrypted with TLS
+     *  encryption and the server identity will be authenticated.
+     * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification server_verification = 1; + * + */ + public Builder mergeServerVerification( + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification value) { + if (serverVerificationBuilder_ == null) { + if (encryptionSettingCase_ == 1 + && encryptionSetting_ + != com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification + .getDefaultInstance()) { + encryptionSetting_ = + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification.newBuilder( + (com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification) + encryptionSetting_) + .mergeFrom(value) + .buildPartial(); + } else { + encryptionSetting_ = value; + } + onChanged(); + } else { + if (encryptionSettingCase_ == 1) { + serverVerificationBuilder_.mergeFrom(value); + } else { + serverVerificationBuilder_.setMessage(value); + } + } + encryptionSettingCase_ = 1; + return this; + } + /** + * + * + *
+     *  If this field is set, the communication will be encrypted with TLS
+     *  encryption and the server identity will be authenticated.
+     * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification server_verification = 1; + * + */ + public Builder clearServerVerification() { + if (serverVerificationBuilder_ == null) { + if (encryptionSettingCase_ == 1) { + encryptionSettingCase_ = 0; + encryptionSetting_ = null; + onChanged(); + } + } else { + if (encryptionSettingCase_ == 1) { + encryptionSettingCase_ = 0; + encryptionSetting_ = null; + } + serverVerificationBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     *  If this field is set, the communication will be encrypted with TLS
+     *  encryption and the server identity will be authenticated.
+     * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification server_verification = 1; + * + */ + public com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification.Builder + getServerVerificationBuilder() { + return getServerVerificationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     *  If this field is set, the communication will be encrypted with TLS
+     *  encryption and the server identity will be authenticated.
+     * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification server_verification = 1; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerificationOrBuilder + getServerVerificationOrBuilder() { + if ((encryptionSettingCase_ == 1) && (serverVerificationBuilder_ != null)) { + return serverVerificationBuilder_.getMessageOrBuilder(); + } else { + if (encryptionSettingCase_ == 1) { + return (com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification) + encryptionSetting_; + } + return com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification + .getDefaultInstance(); + } + } + /** + * + * + *
+     *  If this field is set, the communication will be encrypted with TLS
+     *  encryption and the server identity will be authenticated.
+     * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification server_verification = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification, + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification.Builder, + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerificationOrBuilder> + getServerVerificationFieldBuilder() { + if (serverVerificationBuilder_ == null) { + if (!(encryptionSettingCase_ == 1)) { + encryptionSetting_ = + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification + .getDefaultInstance(); + } + serverVerificationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification, + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification.Builder, + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerificationOrBuilder>( + (com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification) + encryptionSetting_, + getParentForChildren(), + isClean()); + encryptionSetting_ = null; + } + encryptionSettingCase_ = 1; + onChanged(); + return serverVerificationBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification, + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification.Builder, + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerificationOrBuilder> + serverAndClientVerificationBuilder_; + /** + * + * + *
+     * If this field is set, the communication will be encrypted with TLS
+     * encryption and both the server identity and the client identity will be
+     * authenticated.
+     * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification server_and_client_verification = 2; + * + * + * @return Whether the serverAndClientVerification field is set. + */ + @java.lang.Override + public boolean hasServerAndClientVerification() { + return encryptionSettingCase_ == 2; + } + /** + * + * + *
+     * If this field is set, the communication will be encrypted with TLS
+     * encryption and both the server identity and the client identity will be
+     * authenticated.
+     * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification server_and_client_verification = 2; + * + * + * @return The serverAndClientVerification. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification + getServerAndClientVerification() { + if (serverAndClientVerificationBuilder_ == null) { + if (encryptionSettingCase_ == 2) { + return (com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification) + encryptionSetting_; + } + return com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification + .getDefaultInstance(); + } else { + if (encryptionSettingCase_ == 2) { + return serverAndClientVerificationBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification + .getDefaultInstance(); + } + } + /** + * + * + *
+     * If this field is set, the communication will be encrypted with TLS
+     * encryption and both the server identity and the client identity will be
+     * authenticated.
+     * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification server_and_client_verification = 2; + * + */ + public Builder setServerAndClientVerification( + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification value) { + if (serverAndClientVerificationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encryptionSetting_ = value; + onChanged(); + } else { + serverAndClientVerificationBuilder_.setMessage(value); + } + encryptionSettingCase_ = 2; + return this; + } + /** + * + * + *
+     * If this field is set, the communication will be encrypted with TLS
+     * encryption and both the server identity and the client identity will be
+     * authenticated.
+     * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification server_and_client_verification = 2; + * + */ + public Builder setServerAndClientVerification( + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification.Builder + builderForValue) { + if (serverAndClientVerificationBuilder_ == null) { + encryptionSetting_ = builderForValue.build(); + onChanged(); + } else { + serverAndClientVerificationBuilder_.setMessage(builderForValue.build()); + } + encryptionSettingCase_ = 2; + return this; + } + /** + * + * + *
+     * If this field is set, the communication will be encrypted with TLS
+     * encryption and both the server identity and the client identity will be
+     * authenticated.
+     * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification server_and_client_verification = 2; + * + */ + public Builder mergeServerAndClientVerification( + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification value) { + if (serverAndClientVerificationBuilder_ == null) { + if (encryptionSettingCase_ == 2 + && encryptionSetting_ + != com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification + .getDefaultInstance()) { + encryptionSetting_ = + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification + .newBuilder( + (com.google.cloud.datastream.v1.PostgresqlSslConfig + .ServerAndClientVerification) + encryptionSetting_) + .mergeFrom(value) + .buildPartial(); + } else { + encryptionSetting_ = value; + } + onChanged(); + } else { + if (encryptionSettingCase_ == 2) { + serverAndClientVerificationBuilder_.mergeFrom(value); + } else { + serverAndClientVerificationBuilder_.setMessage(value); + } + } + encryptionSettingCase_ = 2; + return this; + } + /** + * + * + *
+     * If this field is set, the communication will be encrypted with TLS
+     * encryption and both the server identity and the client identity will be
+     * authenticated.
+     * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification server_and_client_verification = 2; + * + */ + public Builder clearServerAndClientVerification() { + if (serverAndClientVerificationBuilder_ == null) { + if (encryptionSettingCase_ == 2) { + encryptionSettingCase_ = 0; + encryptionSetting_ = null; + onChanged(); + } + } else { + if (encryptionSettingCase_ == 2) { + encryptionSettingCase_ = 0; + encryptionSetting_ = null; + } + serverAndClientVerificationBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * If this field is set, the communication will be encrypted with TLS
+     * encryption and both the server identity and the client identity will be
+     * authenticated.
+     * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification server_and_client_verification = 2; + * + */ + public com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification.Builder + getServerAndClientVerificationBuilder() { + return getServerAndClientVerificationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * If this field is set, the communication will be encrypted with TLS
+     * encryption and both the server identity and the client identity will be
+     * authenticated.
+     * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification server_and_client_verification = 2; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerificationOrBuilder + getServerAndClientVerificationOrBuilder() { + if ((encryptionSettingCase_ == 2) && (serverAndClientVerificationBuilder_ != null)) { + return serverAndClientVerificationBuilder_.getMessageOrBuilder(); + } else { + if (encryptionSettingCase_ == 2) { + return (com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification) + encryptionSetting_; + } + return com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification + .getDefaultInstance(); + } + } + /** + * + * + *
+     * If this field is set, the communication will be encrypted with TLS
+     * encryption and both the server identity and the client identity will be
+     * authenticated.
+     * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification server_and_client_verification = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification, + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification.Builder, + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerificationOrBuilder> + getServerAndClientVerificationFieldBuilder() { + if (serverAndClientVerificationBuilder_ == null) { + if (!(encryptionSettingCase_ == 2)) { + encryptionSetting_ = + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification + .getDefaultInstance(); + } + serverAndClientVerificationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification, + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification + .Builder, + com.google.cloud.datastream.v1.PostgresqlSslConfig + .ServerAndClientVerificationOrBuilder>( + (com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification) + encryptionSetting_, + getParentForChildren(), + isClean()); + encryptionSetting_ = null; + } + encryptionSettingCase_ = 2; + onChanged(); + return serverAndClientVerificationBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @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.PostgresqlSslConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.PostgresqlSslConfig) + private static final com.google.cloud.datastream.v1.PostgresqlSslConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.PostgresqlSslConfig(); + } + + public static com.google.cloud.datastream.v1.PostgresqlSslConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PostgresqlSslConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.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.PostgresqlSslConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSslConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSslConfigOrBuilder.java new file mode 100644 index 000000000000..11b7b2b01aa8 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSslConfigOrBuilder.java @@ -0,0 +1,123 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream_resources.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.datastream.v1; + +public interface PostgresqlSslConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.PostgresqlSslConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   *  If this field is set, the communication will be encrypted with TLS
+   *  encryption and the server identity will be authenticated.
+   * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification server_verification = 1; + * + * + * @return Whether the serverVerification field is set. + */ + boolean hasServerVerification(); + /** + * + * + *
+   *  If this field is set, the communication will be encrypted with TLS
+   *  encryption and the server identity will be authenticated.
+   * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification server_verification = 1; + * + * + * @return The serverVerification. + */ + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification getServerVerification(); + /** + * + * + *
+   *  If this field is set, the communication will be encrypted with TLS
+   *  encryption and the server identity will be authenticated.
+   * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerification server_verification = 1; + * + */ + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerVerificationOrBuilder + getServerVerificationOrBuilder(); + + /** + * + * + *
+   * If this field is set, the communication will be encrypted with TLS
+   * encryption and both the server identity and the client identity will be
+   * authenticated.
+   * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification server_and_client_verification = 2; + * + * + * @return Whether the serverAndClientVerification field is set. + */ + boolean hasServerAndClientVerification(); + /** + * + * + *
+   * If this field is set, the communication will be encrypted with TLS
+   * encryption and both the server identity and the client identity will be
+   * authenticated.
+   * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification server_and_client_verification = 2; + * + * + * @return The serverAndClientVerification. + */ + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification + getServerAndClientVerification(); + /** + * + * + *
+   * If this field is set, the communication will be encrypted with TLS
+   * encryption and both the server identity and the client identity will be
+   * authenticated.
+   * 
+ * + * + * .google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerification server_and_client_verification = 2; + * + */ + com.google.cloud.datastream.v1.PostgresqlSslConfig.ServerAndClientVerificationOrBuilder + getServerAndClientVerificationOrBuilder(); + + com.google.cloud.datastream.v1.PostgresqlSslConfig.EncryptionSettingCase + getEncryptionSettingCase(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnection.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnection.java index 872a8b6afc2d..af905bca7b69 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnection.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnection.java @@ -310,10 +310,12 @@ private State(int value) { * * *
-   * Output only. The resource's name.
+   * Output only. Identifier. The resource's name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The name. */ @@ -333,10 +335,12 @@ public java.lang.String getName() { * * *
-   * Output only. The resource's name.
+   * Output only. Identifier. The resource's name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The bytes for name. */ @@ -1345,10 +1349,12 @@ public Builder mergeFrom( * * *
-     * Output only. The resource's name.
+     * Output only. Identifier. The resource's name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The name. */ @@ -1367,10 +1373,12 @@ public java.lang.String getName() { * * *
-     * Output only. The resource's name.
+     * Output only. Identifier. The resource's name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The bytes for name. */ @@ -1389,10 +1397,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. The resource's name.
+     * Output only. Identifier. The resource's name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The name to set. * @return This builder for chaining. @@ -1410,10 +1420,12 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. The resource's name.
+     * Output only. Identifier. The resource's name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ @@ -1427,10 +1439,12 @@ public Builder clearName() { * * *
-     * Output only. The resource's name.
+     * Output only. Identifier. The resource's name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The bytes for name 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/PrivateConnectionOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionOrBuilder.java index cea622e3da4b..9e174ce0c0b0 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionOrBuilder.java @@ -28,10 +28,12 @@ public interface PrivateConnectionOrBuilder * * *
-   * Output only. The resource's name.
+   * Output only. Identifier. The resource's name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The name. */ @@ -40,10 +42,12 @@ public interface PrivateConnectionOrBuilder * * *
-   * Output only. The resource's name.
+   * Output only. Identifier. The resource's name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The bytes for name. */ diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Route.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Route.java index a42e49b3379c..7ad5bdc5189a 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Route.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Route.java @@ -87,10 +87,12 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * * *
-   * Output only. The resource's name.
+   * Output only. Identifier. The resource's name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The name. */ @@ -110,10 +112,12 @@ public java.lang.String getName() { * * *
-   * Output only. The resource's name.
+   * Output only. Identifier. The resource's name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The bytes for name. */ @@ -998,10 +1002,12 @@ public Builder mergeFrom( * * *
-     * Output only. The resource's name.
+     * Output only. Identifier. The resource's name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The name. */ @@ -1020,10 +1026,12 @@ public java.lang.String getName() { * * *
-     * Output only. The resource's name.
+     * Output only. Identifier. The resource's name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The bytes for name. */ @@ -1042,10 +1050,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. The resource's name.
+     * Output only. Identifier. The resource's name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The name to set. * @return This builder for chaining. @@ -1063,10 +1073,12 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. The resource's name.
+     * Output only. Identifier. The resource's name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ @@ -1080,10 +1092,12 @@ public Builder clearName() { * * *
-     * Output only. The resource's name.
+     * Output only. Identifier. The resource's name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The bytes for name 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/RouteOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteOrBuilder.java index 146999692f1b..ae593d29a2f5 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteOrBuilder.java @@ -28,10 +28,12 @@ public interface RouteOrBuilder * * *
-   * Output only. The resource's name.
+   * Output only. Identifier. The resource's name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The name. */ @@ -40,10 +42,12 @@ public interface RouteOrBuilder * * *
-   * Output only. The resource's name.
+   * Output only. Identifier. The resource's name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The bytes for name. */ 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 a3d8c6ebdca9..aa59ecc81504 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 @@ -2721,10 +2721,12 @@ public BackfillStrategyCase getBackfillStrategyCase() { * * *
-   * Output only. The stream's name.
+   * Output only. Identifier. The stream's name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The name. */ @@ -2744,10 +2746,12 @@ public java.lang.String getName() { * * *
-   * Output only. The stream's name.
+   * Output only. Identifier. The stream's name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The bytes for name. */ @@ -4328,10 +4332,12 @@ public Builder clearBackfillStrategy() { * * *
-     * Output only. The stream's name.
+     * Output only. Identifier. The stream's name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The name. */ @@ -4350,10 +4356,12 @@ public java.lang.String getName() { * * *
-     * Output only. The stream's name.
+     * Output only. Identifier. The stream's name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The bytes for name. */ @@ -4372,10 +4380,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. The stream's name.
+     * Output only. Identifier. The stream's name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The name to set. * @return This builder for chaining. @@ -4393,10 +4403,12 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. The stream's name.
+     * Output only. Identifier. The stream's name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ @@ -4410,10 +4422,12 @@ public Builder clearName() { * * *
-     * Output only. The stream's name.
+     * Output only. Identifier. The stream's name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The bytes for name 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/StreamObject.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObject.java index 6b91832dd668..081af2c6bcf6 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObject.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObject.java @@ -74,10 +74,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. The object resource's name.
+   * Output only. Identifier. The object resource's name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The name. */ @@ -97,10 +99,12 @@ public java.lang.String getName() { * * *
-   * Output only. The object resource's name.
+   * Output only. Identifier. The object resource's name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The bytes for name. */ @@ -1033,10 +1037,12 @@ public Builder mergeFrom( * * *
-     * Output only. The object resource's name.
+     * Output only. Identifier. The object resource's name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The name. */ @@ -1055,10 +1061,12 @@ public java.lang.String getName() { * * *
-     * Output only. The object resource's name.
+     * Output only. Identifier. The object resource's name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The bytes for name. */ @@ -1077,10 +1085,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. The object resource's name.
+     * Output only. Identifier. The object resource's name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The name to set. * @return This builder for chaining. @@ -1098,10 +1108,12 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. The object resource's name.
+     * Output only. Identifier. The object resource's name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ @@ -1115,10 +1127,12 @@ public Builder clearName() { * * *
-     * Output only. The object resource's name.
+     * Output only. Identifier. The object resource's name.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The bytes for name 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/StreamObjectOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectOrBuilder.java index d8fb755c97fb..13665bfddcff 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectOrBuilder.java @@ -28,10 +28,12 @@ public interface StreamObjectOrBuilder * * *
-   * Output only. The object resource's name.
+   * Output only. Identifier. The object resource's name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The name. */ @@ -40,10 +42,12 @@ public interface StreamObjectOrBuilder * * *
-   * Output only. The object resource's name.
+   * Output only. Identifier. The object resource's name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The bytes for name. */ 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 43ff3343ae53..7e9bf75b7c37 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 @@ -28,10 +28,12 @@ public interface StreamOrBuilder * * *
-   * Output only. The stream's name.
+   * Output only. Identifier. The stream's name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The name. */ @@ -40,10 +42,12 @@ public interface StreamOrBuilder * * *
-   * Output only. The stream's name.
+   * Output only. Identifier. The stream's name.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The bytes for name. */ 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 7c6669aaeda3..26118064528c 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 @@ -70,6 +70,7 @@ message OracleProfile { } // 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]; @@ -80,8 +81,8 @@ message OracleAsmConfig { // 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]; + // Optional. Password for the Oracle ASM connection. + string password = 4 [(google.api.field_behavior) = OPTIONAL]; // Required. ASM service name for the Oracle ASM connection. string asm_service = 5 [(google.api.field_behavior) = REQUIRED]; @@ -135,6 +136,12 @@ message PostgresqlProfile { // Required. Database for the PostgreSQL connection. string database = 5 [(google.api.field_behavior) = REQUIRED]; + + // Optional. SSL configuration for the PostgreSQL connection. + // In case PostgresqlSslConfig is not set, the connection will use the default + // SSL mode, which is `prefer` (i.e. this mode will only use encryption if + // enabled from database side, otherwise will use unencrypted communication) + PostgresqlSslConfig ssl_config = 7 [(google.api.field_behavior) = OPTIONAL]; } // SQLServer database profile. @@ -239,8 +246,11 @@ message PrivateConnection { FAILED_TO_DELETE = 5; } - // Output only. The resource's name. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Identifier. The resource's name. + string name = 1 [ + (google.api.field_behavior) = IDENTIFIER, + (google.api.field_behavior) = OUTPUT_ONLY + ]; // Output only. The create time of the resource. google.protobuf.Timestamp create_time = 2 @@ -287,8 +297,11 @@ message Route { pattern: "projects/{project}/locations/{location}/privateConnections/{private_connection}/routes/{route}" }; - // Output only. The resource's name. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Identifier. The resource's name. + string name = 1 [ + (google.api.field_behavior) = IDENTIFIER, + (google.api.field_behavior) = OUTPUT_ONLY + ]; // Output only. The create time of the resource. google.protobuf.Timestamp create_time = 2 @@ -348,6 +361,67 @@ message OracleSslConfig { bool ca_certificate_set = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } +// PostgreSQL SSL configuration information. +message PostgresqlSslConfig { + // Message represents the option where Datastream will enforce the encryption + // and authenticate the server identity. ca_certificate must be set if user + // selects this option. + message ServerVerification { + // Required. Input only. PEM-encoded server root CA certificate. + string ca_certificate = 1 [ + (google.api.field_behavior) = INPUT_ONLY, + (google.api.field_behavior) = REQUIRED + ]; + } + + // Message represents the option where Datastream will enforce the encryption + // and authenticate the server identity as well as the client identity. + // ca_certificate, client_certificate and client_key must be set if user + // selects this option. + message ServerAndClientVerification { + // Required. Input only. PEM-encoded certificate used by the source database + // to authenticate the client identity (i.e., the Datastream's identity). + // This certificate is signed by either a root certificate trusted by the + // server or one or more intermediate certificates (which is stored with the + // leaf certificate) to link the this certificate to the trusted root + // certificate. + string client_certificate = 1 [ + (google.api.field_behavior) = INPUT_ONLY, + (google.api.field_behavior) = REQUIRED + ]; + + // Required. Input only. PEM-encoded private key associated with the client + // certificate. This value will be used during the SSL/TLS handshake, + // allowing the PostgreSQL server to authenticate the client's identity, + // i.e. identity of the Datastream. + string client_key = 2 [ + (google.api.field_behavior) = INPUT_ONLY, + (google.api.field_behavior) = REQUIRED + ]; + + // Required. Input only. PEM-encoded server root CA certificate. + string ca_certificate = 3 [ + (google.api.field_behavior) = INPUT_ONLY, + (google.api.field_behavior) = REQUIRED + ]; + } + + // The encryption settings available for PostgreSQL connection profiles. + // This captures various SSL mode supported by PostgreSQL, which includes + // TLS encryption with server verification, TLS encryption with both server + // and client verification and no TLS encryption. + oneof encryption_setting { + //  If this field is set, the communication will be encrypted with TLS + // encryption and the server identity will be authenticated. + ServerVerification server_verification = 1; + + // If this field is set, the communication will be encrypted with TLS + // encryption and both the server identity and the client identity will be + // authenticated. + ServerAndClientVerification server_and_client_verification = 2; + } +} + // A set of reusable connection configurations to be used as a source or // destination for a stream. message ConnectionProfile { @@ -356,8 +430,11 @@ message ConnectionProfile { pattern: "projects/{project}/locations/{location}/connectionProfiles/{connection_profile}" }; - // Output only. The resource's name. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Identifier. The resource's name. + string name = 1 [ + (google.api.field_behavior) = IDENTIFIER, + (google.api.field_behavior) = OUTPUT_ONLY + ]; // Output only. The create time of the resource. google.protobuf.Timestamp create_time = 2 @@ -1024,8 +1101,11 @@ message Stream { // Backfill strategy to disable automatic backfill for the Stream's objects. message BackfillNoneStrategy {} - // Output only. The stream's name. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Identifier. The stream's name. + string name = 1 [ + (google.api.field_behavior) = IDENTIFIER, + (google.api.field_behavior) = OUTPUT_ONLY + ]; // Output only. The creation time of the stream. google.protobuf.Timestamp create_time = 2 @@ -1084,8 +1164,11 @@ message StreamObject { pattern: "projects/{project}/locations/{location}/streams/{stream}/objects/{object}" }; - // Output only. The object resource's name. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Identifier. The object resource's name. + string name = 1 [ + (google.api.field_behavior) = IDENTIFIER, + (google.api.field_behavior) = OUTPUT_ONLY + ]; // Output only. The creation time of the object. google.protobuf.Timestamp create_time = 2 diff --git a/java-debugger-client/README.md b/java-debugger-client/README.md index b3fe100b6267..d33e95355c96 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.52.0 + 26.53.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.55.0 + 1.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-debugger-client:1.55.0' +implementation 'com.google.cloud:google-cloud-debugger-client:1.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-debugger-client" % "1.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-debugger-client" % "1.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-debugger-client.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-debugger-client/1.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-debugger-client/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-deploy/README.md b/java-deploy/README.md index 9cbd7159c73a..f5442f984efd 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.52.0 + 26.53.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.53.0 + 1.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-deploy:1.53.0' +implementation 'com.google.cloud:google-cloud-deploy:1.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-deploy" % "1.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-deploy" % "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-deploy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-deploy/1.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-deploy/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-developerconnect/README.md b/java-developerconnect/README.md index 36e462e41c27..8d14ded53738 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.52.0 + 26.53.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.12.0 + 0.13.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-developerconnect:0.12.0' +implementation 'com.google.cloud:google-cloud-developerconnect:0.13.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-developerconnect" % "0.12.0" +libraryDependencies += "com.google.cloud" % "google-cloud-developerconnect" % "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.cloud/google-cloud-developerconnect.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-developerconnect/0.12.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-developerconnect/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-dialogflow-cx/README.md b/java-dialogflow-cx/README.md index 847abc1c9ec8..48038022b13a 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.52.0 + 26.53.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.66.0 + 0.67.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.66.0' +implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.67.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.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/0.67.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 693ccc52d616..fe4bb4d54b7a 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.52.0 + 26.53.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.61.0 + 4.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dialogflow:4.61.0' +implementation 'com.google.cloud:google-cloud-dialogflow:4.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "4.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "4.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-dialogflow.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow/4.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow/4.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-discoveryengine/README.md b/java-discoveryengine/README.md index d0b757e61738..630d69877fd3 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.52.0 + 26.53.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.51.0 + 0.52.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-discoveryengine:0.51.0' +implementation 'com.google.cloud:google-cloud-discoveryengine:0.52.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-discoveryengine" % "0.51.0" +libraryDependencies += "com.google.cloud" % "google-cloud-discoveryengine" % "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-discoveryengine.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-discoveryengine/0.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-discoveryengine/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-distributedcloudedge/README.md b/java-distributedcloudedge/README.md index 6f0ba8c7b0e6..9d7b6fccc4a3 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.52.0 + 26.53.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.52.0 + 0.53.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-distributedcloudedge:0.52.0' +implementation 'com.google.cloud:google-cloud-distributedcloudedge:0.53.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-distributedcloudedge" % "0.52.0" +libraryDependencies += "com.google.cloud" % "google-cloud-distributedcloudedge" % "0.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-distributedcloudedge.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-distributedcloudedge/0.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-distributedcloudedge/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-dlp/README.md b/java-dlp/README.md index e55d92faffd8..8452f1905b5b 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.52.0 + 26.53.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.59.0 + 3.60.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dlp:3.59.0' +implementation 'com.google.cloud:google-cloud-dlp:3.60.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dlp" % "3.59.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dlp" % "3.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-dlp.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dlp/3.59.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dlp/3.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-dms/README.md b/java-dms/README.md index e4a2e53c3c42..5370cca0530a 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.52.0 + 26.53.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.54.0 + 2.55.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dms:2.54.0' +implementation 'com.google.cloud:google-cloud-dms:2.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dms" % "2.54.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dms" % "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-dms.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dms/2.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dms/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-document-ai/README.md b/java-document-ai/README.md index 497792722c14..de26e708906c 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.52.0 + 26.53.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.59.0 + 2.60.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-document-ai:2.59.0' +implementation 'com.google.cloud:google-cloud-document-ai:2.60.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-document-ai" % "2.59.0" +libraryDependencies += "com.google.cloud" % "google-cloud-document-ai" % "2.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-document-ai.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-document-ai/2.59.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-document-ai/2.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-domains/README.md b/java-domains/README.md index 7b0d5bc221f5..ad3ff826b225 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.52.0 + 26.53.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.52.0 + 1.53.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-domains:1.52.0' +implementation 'com.google.cloud:google-cloud-domains:1.53.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-domains" % "1.52.0" +libraryDependencies += "com.google.cloud" % "google-cloud-domains" % "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-domains.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-domains/1.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-domains/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-edgenetwork/README.md b/java-edgenetwork/README.md index bf5a86e9915b..789ed7e1d2ba 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.52.0 + 26.53.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.23.0 + 0.24.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-edgenetwork:0.23.0' +implementation 'com.google.cloud:google-cloud-edgenetwork:0.24.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-edgenetwork" % "0.23.0" +libraryDependencies += "com.google.cloud" % "google-cloud-edgenetwork" % "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-edgenetwork.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-edgenetwork/0.23.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-edgenetwork/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-enterpriseknowledgegraph/README.md b/java-enterpriseknowledgegraph/README.md index 573ccea4f84d..6c0c022654d9 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.52.0 + 26.53.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.51.0 + 0.52.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-enterpriseknowledgegraph:0.51.0' +implementation 'com.google.cloud:google-cloud-enterpriseknowledgegraph:0.52.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-enterpriseknowledgegraph" % "0.51.0" +libraryDependencies += "com.google.cloud" % "google-cloud-enterpriseknowledgegraph" % "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-enterpriseknowledgegraph.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-enterpriseknowledgegraph/0.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-enterpriseknowledgegraph/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-errorreporting/README.md b/java-errorreporting/README.md index fe13d47de141..9dad25cab052 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.52.0 + 26.53.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.176.0-beta + 0.177.0-beta ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-errorreporting:0.176.0-beta' +implementation 'com.google.cloud:google-cloud-errorreporting:0.177.0-beta' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-errorreporting" % "0.176.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-errorreporting" % "0.177.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.176.0-beta +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-errorreporting/0.177.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 4430a73a6639..5321779b2597 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.52.0 + 26.53.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.55.0 + 2.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-essential-contacts:2.55.0' +implementation 'com.google.cloud:google-cloud-essential-contacts:2.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-essential-contacts" % "2.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-essential-contacts" % "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-essential-contacts.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-essential-contacts/2.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-essential-contacts/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-eventarc-publishing/README.md b/java-eventarc-publishing/README.md index a461f5d9b045..b50d43998699 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.52.0 + 26.53.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.55.0 + 0.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-eventarc-publishing:0.55.0' +implementation 'com.google.cloud:google-cloud-eventarc-publishing:0.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-eventarc-publishing" % "0.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-eventarc-publishing" % "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-eventarc-publishing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc-publishing/0.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc-publishing/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-eventarc/README.md b/java-eventarc/README.md index 844c18055dae..ef1ab338403d 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.52.0 + 26.53.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.55.0 + 1.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-eventarc:1.55.0' +implementation 'com.google.cloud:google-cloud-eventarc:1.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-eventarc" % "1.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-eventarc" % "1.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-eventarc.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc/1.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc/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-filestore/README.md b/java-filestore/README.md index 3f352e820829..30cbc45d67e3 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.52.0 + 26.53.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.56.0 + 1.57.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-filestore:1.56.0' +implementation 'com.google.cloud:google-cloud-filestore:1.57.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-filestore" % "1.56.0" +libraryDependencies += "com.google.cloud" % "google-cloud-filestore" % "1.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-filestore.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-filestore/1.56.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-filestore/1.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-functions/README.md b/java-functions/README.md index 651cf60d9738..f307a44eb84f 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.52.0 + 26.53.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.57.0 + 2.58.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-functions:2.57.0' +implementation 'com.google.cloud:google-cloud-functions:2.58.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-functions" % "2.57.0" +libraryDependencies += "com.google.cloud" % "google-cloud-functions" % "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-functions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-functions/2.57.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-functions/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-gdchardwaremanagement/README.md b/java-gdchardwaremanagement/README.md index fd0befef7f19..ae9e22f18496 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.52.0 + 26.53.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.10.0 + 0.11.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gdchardwaremanagement:0.10.0' +implementation 'com.google.cloud:google-cloud-gdchardwaremanagement:0.11.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gdchardwaremanagement" % "0.10.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gdchardwaremanagement" % "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-gdchardwaremanagement.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gdchardwaremanagement/0.10.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gdchardwaremanagement/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-gke-backup/README.md b/java-gke-backup/README.md index 73f241e41c4b..4797ab9f4fb5 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.52.0 + 26.53.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.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-backup:0.54.0' +implementation 'com.google.cloud:google-cloud-gke-backup:0.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-backup" % "0.54.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-backup" % "0.55.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.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-backup/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-connect-gateway/README.md b/java-gke-connect-gateway/README.md index 43062e79d622..64b0031c95eb 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.52.0 + 26.53.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.56.0 + 0.57.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-connect-gateway:0.56.0' +implementation 'com.google.cloud:google-cloud-gke-connect-gateway:0.57.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-connect-gateway" % "0.56.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-connect-gateway" % "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-gke-connect-gateway.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-connect-gateway/0.56.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-connect-gateway/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-gke-multi-cloud/README.md b/java-gke-multi-cloud/README.md index 25dc1825ae68..70556840ae2f 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.52.0 + 26.53.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.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-multi-cloud:0.54.0' +implementation 'com.google.cloud:google-cloud-gke-multi-cloud:0.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-multi-cloud" % "0.54.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-multi-cloud" % "0.55.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.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-multi-cloud/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-gkehub/README.md b/java-gkehub/README.md index d5342177a2eb..1aba8f2cdb9c 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.52.0 + 26.53.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.55.0 + 1.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gkehub:1.55.0' +implementation 'com.google.cloud:google-cloud-gkehub:1.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gkehub" % "1.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gkehub" % "1.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-gkehub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gkehub/1.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gkehub/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-grafeas/README.md b/java-grafeas/README.md index abe431fdac30..6599c4746561 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.52.0 + 26.53.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: io.grafeas grafeas - 2.56.0 + 2.57.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'io.grafeas:grafeas:2.56.0' +implementation 'io.grafeas:grafeas:2.57.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "io.grafeas" % "grafeas" % "2.56.0" +libraryDependencies += "io.grafeas" % "grafeas" % "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/io.grafeas/grafeas.svg -[maven-version-link]: https://central.sonatype.com/artifact/io.grafeas/grafeas/2.56.0 +[maven-version-link]: https://central.sonatype.com/artifact/io.grafeas/grafeas/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-gsuite-addons/README.md b/java-gsuite-addons/README.md index 13db4a899aa7..26c3c6ddf258 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.52.0 + 26.53.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.55.0 + 2.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gsuite-addons:2.55.0' +implementation 'com.google.cloud:google-cloud-gsuite-addons:2.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gsuite-addons" % "2.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gsuite-addons" % "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-gsuite-addons.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gsuite-addons/2.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gsuite-addons/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-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsClient.java b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsClient.java index de3c25f444f5..549e79abd0e7 100644 --- a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsClient.java +++ b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsClient.java @@ -35,26 +35,26 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * Service Description: A service for managing Google Workspace Add-ons deployments. + * Service Description: A service for managing Google Workspace add-ons deployments. * - *

A Google Workspace Add-on is a third-party embedded component that can be installed in Google + *

A Google Workspace add-on is a third-party embedded component that can be installed in Google * Workspace Applications like Gmail, Calendar, Drive, and the Google Docs, Sheets, and Slides - * editors. Google Workspace Add-ons can display UI cards, receive contextual information from the + * editors. Google Workspace add-ons can display UI cards, receive contextual information from the * host application, and perform actions in the host application (See: * https://developers.google.com/gsuite/add-ons/overview for more information). * - *

A Google Workspace Add-on deployment resource specifies metadata about the add-on, including a + *

A Google Workspace add-on deployment resource specifies metadata about the add-on, including a * specification of the entry points in the host application that trigger add-on executions (see: * https://developers.google.com/gsuite/add-ons/concepts/gsuite-manifests). Add-on deployments - * defined via the Google Workspace Add-ons API define their entrypoints using HTTPS URLs (See: + * defined via the Google Workspace add-ons API define their entrypoints using HTTPS URLs (See: * https://developers.google.com/gsuite/add-ons/guides/alternate-runtimes), * - *

A Google Workspace Add-on deployment can be installed in developer mode, which allows an + *

A Google Workspace add-on deployment can be installed in developer mode, which allows an * add-on developer to test the experience an end-user would see when installing and running the * add-on in their G Suite applications. When running in developer mode, more detailed error * messages are exposed in the add-on UI to aid in debugging. * - *

A Google Workspace Add-on deployment can be published to Google Workspace Marketplace, which + *

A Google Workspace add-on deployment can be published to Google Workspace Marketplace, which * allows other Google Workspace users to discover and install the add-on. See: * https://developers.google.com/gsuite/add-ons/how-tos/publish-add-on-overview for details. * @@ -375,7 +375,7 @@ public GSuiteAddOnsStub getStub() { * } * }

* - * @param name Required. Name of the project for which to get the Google Workspace Add-ons + * @param name Required. Name of the project for which to get the Google Workspace add-ons * authorization information. *

Example: `projects/my_project/authorization`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -404,7 +404,7 @@ public final Authorization getAuthorization(AuthorizationName name) { * } * }

* - * @param name Required. Name of the project for which to get the Google Workspace Add-ons + * @param name Required. Name of the project for which to get the Google Workspace add-ons * authorization information. *

Example: `projects/my_project/authorization`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails diff --git a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/package-info.java b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/package-info.java index 99ce455db41c..c4b70a93970d 100644 --- a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/package-info.java +++ b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/package-info.java @@ -15,32 +15,32 @@ */ /** - * A client to Google Workspace Add-ons API + * A client to Google Workspace add-ons API * *

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

======================= GSuiteAddOnsClient ======================= * - *

Service Description: A service for managing Google Workspace Add-ons deployments. + *

Service Description: A service for managing Google Workspace add-ons deployments. * - *

A Google Workspace Add-on is a third-party embedded component that can be installed in Google + *

A Google Workspace add-on is a third-party embedded component that can be installed in Google * Workspace Applications like Gmail, Calendar, Drive, and the Google Docs, Sheets, and Slides - * editors. Google Workspace Add-ons can display UI cards, receive contextual information from the + * editors. Google Workspace add-ons can display UI cards, receive contextual information from the * host application, and perform actions in the host application (See: * https://developers.google.com/gsuite/add-ons/overview for more information). * - *

A Google Workspace Add-on deployment resource specifies metadata about the add-on, including a + *

A Google Workspace add-on deployment resource specifies metadata about the add-on, including a * specification of the entry points in the host application that trigger add-on executions (see: * https://developers.google.com/gsuite/add-ons/concepts/gsuite-manifests). Add-on deployments - * defined via the Google Workspace Add-ons API define their entrypoints using HTTPS URLs (See: + * defined via the Google Workspace add-ons API define their entrypoints using HTTPS URLs (See: * https://developers.google.com/gsuite/add-ons/guides/alternate-runtimes), * - *

A Google Workspace Add-on deployment can be installed in developer mode, which allows an + *

A Google Workspace add-on deployment can be installed in developer mode, which allows an * add-on developer to test the experience an end-user would see when installing and running the * add-on in their G Suite applications. When running in developer mode, more detailed error * messages are exposed in the add-on UI to aid in debugging. * - *

A Google Workspace Add-on deployment can be published to Google Workspace Marketplace, which + *

A Google Workspace add-on deployment can be published to Google Workspace Marketplace, which * allows other Google Workspace users to discover and install the add-on. See: * https://developers.google.com/gsuite/add-ons/how-tos/publish-add-on-overview for details. * diff --git a/java-gsuite-addons/grpc-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsGrpc.java b/java-gsuite-addons/grpc-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsGrpc.java index 03b1ae214251..d1d1b34f2e17 100644 --- a/java-gsuite-addons/grpc-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsGrpc.java +++ b/java-gsuite-addons/grpc-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/GSuiteAddOnsGrpc.java @@ -21,26 +21,26 @@ * * *

- * A service for managing Google Workspace Add-ons deployments.
- * A Google Workspace Add-on is a third-party embedded component that can be
+ * A service for managing Google Workspace add-ons deployments.
+ * A Google Workspace add-on is a third-party embedded component that can be
  * installed in Google Workspace Applications like Gmail, Calendar, Drive, and
- * the Google Docs, Sheets, and Slides editors. Google Workspace Add-ons can
+ * the Google Docs, Sheets, and Slides editors. Google Workspace add-ons can
  * display UI cards, receive contextual information from the host application,
  * and perform actions in the host application (See:
  * https://developers.google.com/gsuite/add-ons/overview for more information).
- * A Google Workspace Add-on deployment resource specifies metadata about the
+ * A Google Workspace add-on deployment resource specifies metadata about the
  * add-on, including a specification of the entry points in the host application
  * that trigger add-on executions (see:
  * https://developers.google.com/gsuite/add-ons/concepts/gsuite-manifests).
- * Add-on deployments defined via the Google Workspace Add-ons API define their
+ * Add-on deployments defined via the Google Workspace add-ons API define their
  * entrypoints using HTTPS URLs (See:
  * https://developers.google.com/gsuite/add-ons/guides/alternate-runtimes),
- * A Google Workspace Add-on deployment can be installed in developer mode,
+ * A Google Workspace add-on deployment can be installed in developer mode,
  * which allows an add-on developer to test the experience an end-user would see
  * when installing and running the add-on in their G Suite applications.  When
  * running in developer mode, more detailed error messages are exposed in the
  * add-on UI to aid in debugging.
- * A Google Workspace Add-on deployment can be published to Google Workspace
+ * A Google Workspace add-on deployment can be published to Google Workspace
  * Marketplace, which allows other Google Workspace users to discover and
  * install the add-on.  See:
  * https://developers.google.com/gsuite/add-ons/how-tos/publish-add-on-overview
@@ -511,26 +511,26 @@ public GSuiteAddOnsFutureStub newStub(
    *
    *
    * 
-   * A service for managing Google Workspace Add-ons deployments.
-   * A Google Workspace Add-on is a third-party embedded component that can be
+   * A service for managing Google Workspace add-ons deployments.
+   * A Google Workspace add-on is a third-party embedded component that can be
    * installed in Google Workspace Applications like Gmail, Calendar, Drive, and
-   * the Google Docs, Sheets, and Slides editors. Google Workspace Add-ons can
+   * the Google Docs, Sheets, and Slides editors. Google Workspace add-ons can
    * display UI cards, receive contextual information from the host application,
    * and perform actions in the host application (See:
    * https://developers.google.com/gsuite/add-ons/overview for more information).
-   * A Google Workspace Add-on deployment resource specifies metadata about the
+   * A Google Workspace add-on deployment resource specifies metadata about the
    * add-on, including a specification of the entry points in the host application
    * that trigger add-on executions (see:
    * https://developers.google.com/gsuite/add-ons/concepts/gsuite-manifests).
-   * Add-on deployments defined via the Google Workspace Add-ons API define their
+   * Add-on deployments defined via the Google Workspace add-ons API define their
    * entrypoints using HTTPS URLs (See:
    * https://developers.google.com/gsuite/add-ons/guides/alternate-runtimes),
-   * A Google Workspace Add-on deployment can be installed in developer mode,
+   * A Google Workspace add-on deployment can be installed in developer mode,
    * which allows an add-on developer to test the experience an end-user would see
    * when installing and running the add-on in their G Suite applications.  When
    * running in developer mode, more detailed error messages are exposed in the
    * add-on UI to aid in debugging.
-   * A Google Workspace Add-on deployment can be published to Google Workspace
+   * A Google Workspace add-on deployment can be published to Google Workspace
    * Marketplace, which allows other Google Workspace users to discover and
    * install the add-on.  See:
    * https://developers.google.com/gsuite/add-ons/how-tos/publish-add-on-overview
@@ -677,26 +677,26 @@ default void getInstallStatus(
    * Base class for the server implementation of the service GSuiteAddOns.
    *
    * 
-   * A service for managing Google Workspace Add-ons deployments.
-   * A Google Workspace Add-on is a third-party embedded component that can be
+   * A service for managing Google Workspace add-ons deployments.
+   * A Google Workspace add-on is a third-party embedded component that can be
    * installed in Google Workspace Applications like Gmail, Calendar, Drive, and
-   * the Google Docs, Sheets, and Slides editors. Google Workspace Add-ons can
+   * the Google Docs, Sheets, and Slides editors. Google Workspace add-ons can
    * display UI cards, receive contextual information from the host application,
    * and perform actions in the host application (See:
    * https://developers.google.com/gsuite/add-ons/overview for more information).
-   * A Google Workspace Add-on deployment resource specifies metadata about the
+   * A Google Workspace add-on deployment resource specifies metadata about the
    * add-on, including a specification of the entry points in the host application
    * that trigger add-on executions (see:
    * https://developers.google.com/gsuite/add-ons/concepts/gsuite-manifests).
-   * Add-on deployments defined via the Google Workspace Add-ons API define their
+   * Add-on deployments defined via the Google Workspace add-ons API define their
    * entrypoints using HTTPS URLs (See:
    * https://developers.google.com/gsuite/add-ons/guides/alternate-runtimes),
-   * A Google Workspace Add-on deployment can be installed in developer mode,
+   * A Google Workspace add-on deployment can be installed in developer mode,
    * which allows an add-on developer to test the experience an end-user would see
    * when installing and running the add-on in their G Suite applications.  When
    * running in developer mode, more detailed error messages are exposed in the
    * add-on UI to aid in debugging.
-   * A Google Workspace Add-on deployment can be published to Google Workspace
+   * A Google Workspace add-on deployment can be published to Google Workspace
    * Marketplace, which allows other Google Workspace users to discover and
    * install the add-on.  See:
    * https://developers.google.com/gsuite/add-ons/how-tos/publish-add-on-overview
@@ -716,26 +716,26 @@ public final io.grpc.ServerServiceDefinition bindService() {
    * A stub to allow clients to do asynchronous rpc calls to service GSuiteAddOns.
    *
    * 
-   * A service for managing Google Workspace Add-ons deployments.
-   * A Google Workspace Add-on is a third-party embedded component that can be
+   * A service for managing Google Workspace add-ons deployments.
+   * A Google Workspace add-on is a third-party embedded component that can be
    * installed in Google Workspace Applications like Gmail, Calendar, Drive, and
-   * the Google Docs, Sheets, and Slides editors. Google Workspace Add-ons can
+   * the Google Docs, Sheets, and Slides editors. Google Workspace add-ons can
    * display UI cards, receive contextual information from the host application,
    * and perform actions in the host application (See:
    * https://developers.google.com/gsuite/add-ons/overview for more information).
-   * A Google Workspace Add-on deployment resource specifies metadata about the
+   * A Google Workspace add-on deployment resource specifies metadata about the
    * add-on, including a specification of the entry points in the host application
    * that trigger add-on executions (see:
    * https://developers.google.com/gsuite/add-ons/concepts/gsuite-manifests).
-   * Add-on deployments defined via the Google Workspace Add-ons API define their
+   * Add-on deployments defined via the Google Workspace add-ons API define their
    * entrypoints using HTTPS URLs (See:
    * https://developers.google.com/gsuite/add-ons/guides/alternate-runtimes),
-   * A Google Workspace Add-on deployment can be installed in developer mode,
+   * A Google Workspace add-on deployment can be installed in developer mode,
    * which allows an add-on developer to test the experience an end-user would see
    * when installing and running the add-on in their G Suite applications.  When
    * running in developer mode, more detailed error messages are exposed in the
    * add-on UI to aid in debugging.
-   * A Google Workspace Add-on deployment can be published to Google Workspace
+   * A Google Workspace add-on deployment can be published to Google Workspace
    * Marketplace, which allows other Google Workspace users to discover and
    * install the add-on.  See:
    * https://developers.google.com/gsuite/add-ons/how-tos/publish-add-on-overview
@@ -909,26 +909,26 @@ public void getInstallStatus(
    * A stub to allow clients to do synchronous rpc calls to service GSuiteAddOns.
    *
    * 
-   * A service for managing Google Workspace Add-ons deployments.
-   * A Google Workspace Add-on is a third-party embedded component that can be
+   * A service for managing Google Workspace add-ons deployments.
+   * A Google Workspace add-on is a third-party embedded component that can be
    * installed in Google Workspace Applications like Gmail, Calendar, Drive, and
-   * the Google Docs, Sheets, and Slides editors. Google Workspace Add-ons can
+   * the Google Docs, Sheets, and Slides editors. Google Workspace add-ons can
    * display UI cards, receive contextual information from the host application,
    * and perform actions in the host application (See:
    * https://developers.google.com/gsuite/add-ons/overview for more information).
-   * A Google Workspace Add-on deployment resource specifies metadata about the
+   * A Google Workspace add-on deployment resource specifies metadata about the
    * add-on, including a specification of the entry points in the host application
    * that trigger add-on executions (see:
    * https://developers.google.com/gsuite/add-ons/concepts/gsuite-manifests).
-   * Add-on deployments defined via the Google Workspace Add-ons API define their
+   * Add-on deployments defined via the Google Workspace add-ons API define their
    * entrypoints using HTTPS URLs (See:
    * https://developers.google.com/gsuite/add-ons/guides/alternate-runtimes),
-   * A Google Workspace Add-on deployment can be installed in developer mode,
+   * A Google Workspace add-on deployment can be installed in developer mode,
    * which allows an add-on developer to test the experience an end-user would see
    * when installing and running the add-on in their G Suite applications.  When
    * running in developer mode, more detailed error messages are exposed in the
    * add-on UI to aid in debugging.
-   * A Google Workspace Add-on deployment can be published to Google Workspace
+   * A Google Workspace add-on deployment can be published to Google Workspace
    * Marketplace, which allows other Google Workspace users to discover and
    * install the add-on.  See:
    * https://developers.google.com/gsuite/add-ons/how-tos/publish-add-on-overview
@@ -1073,26 +1073,26 @@ public com.google.cloud.gsuiteaddons.v1.InstallStatus getInstallStatus(
    * A stub to allow clients to do ListenableFuture-style rpc calls to service GSuiteAddOns.
    *
    * 
-   * A service for managing Google Workspace Add-ons deployments.
-   * A Google Workspace Add-on is a third-party embedded component that can be
+   * A service for managing Google Workspace add-ons deployments.
+   * A Google Workspace add-on is a third-party embedded component that can be
    * installed in Google Workspace Applications like Gmail, Calendar, Drive, and
-   * the Google Docs, Sheets, and Slides editors. Google Workspace Add-ons can
+   * the Google Docs, Sheets, and Slides editors. Google Workspace add-ons can
    * display UI cards, receive contextual information from the host application,
    * and perform actions in the host application (See:
    * https://developers.google.com/gsuite/add-ons/overview for more information).
-   * A Google Workspace Add-on deployment resource specifies metadata about the
+   * A Google Workspace add-on deployment resource specifies metadata about the
    * add-on, including a specification of the entry points in the host application
    * that trigger add-on executions (see:
    * https://developers.google.com/gsuite/add-ons/concepts/gsuite-manifests).
-   * Add-on deployments defined via the Google Workspace Add-ons API define their
+   * Add-on deployments defined via the Google Workspace add-ons API define their
    * entrypoints using HTTPS URLs (See:
    * https://developers.google.com/gsuite/add-ons/guides/alternate-runtimes),
-   * A Google Workspace Add-on deployment can be installed in developer mode,
+   * A Google Workspace add-on deployment can be installed in developer mode,
    * which allows an add-on developer to test the experience an end-user would see
    * when installing and running the add-on in their G Suite applications.  When
    * running in developer mode, more detailed error messages are exposed in the
    * add-on UI to aid in debugging.
-   * A Google Workspace Add-on deployment can be published to Google Workspace
+   * A Google Workspace add-on deployment can be published to Google Workspace
    * Marketplace, which allows other Google Workspace users to discover and
    * install the add-on.  See:
    * https://developers.google.com/gsuite/add-ons/how-tos/publish-add-on-overview
diff --git a/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/java/com/google/apps/script/type/HttpAuthorizationHeader.java b/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/java/com/google/apps/script/type/HttpAuthorizationHeader.java
index 5888176961d6..dbc4393beeb2 100644
--- a/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/java/com/google/apps/script/type/HttpAuthorizationHeader.java
+++ b/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/java/com/google/apps/script/type/HttpAuthorizationHeader.java
@@ -43,7 +43,7 @@ public enum HttpAuthorizationHeader implements com.google.protobuf.ProtocolMessa
    *
    *
    * 
-   * Send an ID token for the project-specific Google Workspace Add-ons system
+   * Send an ID token for the project-specific Google Workspace add-ons system
    * service account (default)
    * 
* @@ -87,7 +87,7 @@ public enum HttpAuthorizationHeader implements com.google.protobuf.ProtocolMessa * * *
-   * Send an ID token for the project-specific Google Workspace Add-ons system
+   * Send an ID token for the project-specific Google Workspace add-ons system
    * service account (default)
    * 
* diff --git a/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/proto/google/apps/script/type/calendar/calendar_addon_manifest.proto b/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/proto/google/apps/script/type/calendar/calendar_addon_manifest.proto index 021d31874089..461dd09f1805 100644 --- a/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/proto/google/apps/script/type/calendar/calendar_addon_manifest.proto +++ b/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/proto/google/apps/script/type/calendar/calendar_addon_manifest.proto @@ -27,7 +27,7 @@ option java_package = "com.google.apps.script.type.calendar"; option php_namespace = "Google\\Apps\\Script\\Type\\Calendar"; option ruby_package = "Google::Apps::Script::Type::Calendar"; -// Manifest section specific to Calendar Add-ons. +// Manifest section specific to Calendar add-ons. // Calendar add-on manifest. message CalendarAddOnManifest { diff --git a/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/proto/google/apps/script/type/docs/docs_addon_manifest.proto b/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/proto/google/apps/script/type/docs/docs_addon_manifest.proto index 5ded7c0f413a..4bfff092a449 100644 --- a/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/proto/google/apps/script/type/docs/docs_addon_manifest.proto +++ b/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/proto/google/apps/script/type/docs/docs_addon_manifest.proto @@ -27,7 +27,7 @@ option java_package = "com.google.apps.script.type.docs"; option php_namespace = "Google\\Apps\\Script\\Type\\Docs"; option ruby_package = "Google::Apps::Script::Type::Docs"; -// Manifest section specific to Docs Add-ons. +// Manifest section specific to Docs add-ons. // Docs add-on manifest. message DocsAddOnManifest { diff --git a/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/proto/google/apps/script/type/drive/drive_addon_manifest.proto b/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/proto/google/apps/script/type/drive/drive_addon_manifest.proto index e6e6cfaed4b0..9aca6ab95c09 100644 --- a/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/proto/google/apps/script/type/drive/drive_addon_manifest.proto +++ b/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/proto/google/apps/script/type/drive/drive_addon_manifest.proto @@ -26,7 +26,7 @@ option java_package = "com.google.apps.script.type.drive"; option php_namespace = "Google\\Apps\\Script\\Type\\Drive"; option ruby_package = "Google::Apps::Script::Type::Drive"; -// Manifest section specific to Drive Add-ons. +// Manifest section specific to Drive add-ons. // Drive add-on manifest. message DriveAddOnManifest { diff --git a/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/proto/google/apps/script/type/script_manifest.proto b/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/proto/google/apps/script/type/script_manifest.proto index f4baca73988b..ef55da27cb8a 100644 --- a/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/proto/google/apps/script/type/script_manifest.proto +++ b/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/proto/google/apps/script/type/script_manifest.proto @@ -93,7 +93,7 @@ enum HttpAuthorizationHeader { // Default value, equivalent to `SYSTEM_ID_TOKEN` HTTP_AUTHORIZATION_HEADER_UNSPECIFIED = 0; - // Send an ID token for the project-specific Google Workspace Add-ons system + // Send an ID token for the project-specific Google Workspace add-ons system // service account (default) SYSTEM_ID_TOKEN = 1; diff --git a/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/proto/google/apps/script/type/sheets/sheets_addon_manifest.proto b/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/proto/google/apps/script/type/sheets/sheets_addon_manifest.proto index 7bedf73dbf7f..2d38547d5c21 100644 --- a/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/proto/google/apps/script/type/sheets/sheets_addon_manifest.proto +++ b/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/proto/google/apps/script/type/sheets/sheets_addon_manifest.proto @@ -27,7 +27,7 @@ option java_package = "com.google.apps.script.type.sheets"; option php_namespace = "Google\\Apps\\Script\\Type\\Sheets"; option ruby_package = "Google::Apps::Script::Type::Sheets"; -// Manifest section specific to Sheets Add-ons. +// Manifest section specific to Sheets add-ons. // Sheets add-on manifest. message SheetsAddOnManifest { diff --git a/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/proto/google/apps/script/type/slides/slides_addon_manifest.proto b/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/proto/google/apps/script/type/slides/slides_addon_manifest.proto index d3d81e4b7299..7e621f28cc08 100644 --- a/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/proto/google/apps/script/type/slides/slides_addon_manifest.proto +++ b/java-gsuite-addons/proto-google-apps-script-type-protos/src/main/proto/google/apps/script/type/slides/slides_addon_manifest.proto @@ -27,7 +27,7 @@ option java_package = "com.google.apps.script.type.slides"; option php_namespace = "Google\\Apps\\Script\\Type\\Slides"; option ruby_package = "Google::Apps::Script::Type::Slides"; -// Manifest section specific to Slides Add-ons. +// Manifest section specific to Slides add-ons. // Slides add-on manifest. message SlidesAddOnManifest { diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/AddOns.java b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/AddOns.java index c308ced1af08..a2457c19efb6 100644 --- a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/AddOns.java +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/AddOns.java @@ -23,7 +23,7 @@ * * *
- * A Google Workspace Add-on configuration.
+ * A Google Workspace add-on configuration.
  * 
* * Protobuf type {@code google.cloud.gsuiteaddons.v1.AddOns} @@ -68,7 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Configuration that is common across all Google Workspace Add-ons.
+   * Configuration that is common across all Google Workspace add-ons.
    * 
* * .google.apps.script.type.CommonAddOnManifest common = 1; @@ -83,7 +83,7 @@ public boolean hasCommon() { * * *
-   * Configuration that is common across all Google Workspace Add-ons.
+   * Configuration that is common across all Google Workspace add-ons.
    * 
* * .google.apps.script.type.CommonAddOnManifest common = 1; @@ -100,7 +100,7 @@ public com.google.apps.script.type.CommonAddOnManifest getCommon() { * * *
-   * Configuration that is common across all Google Workspace Add-ons.
+   * Configuration that is common across all Google Workspace add-ons.
    * 
* * .google.apps.script.type.CommonAddOnManifest common = 1; @@ -728,7 +728,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * A Google Workspace Add-on configuration.
+   * A Google Workspace add-on configuration.
    * 
* * Protobuf type {@code google.cloud.gsuiteaddons.v1.AddOns} @@ -1064,7 +1064,7 @@ public Builder mergeFrom( * * *
-     * Configuration that is common across all Google Workspace Add-ons.
+     * Configuration that is common across all Google Workspace add-ons.
      * 
* * .google.apps.script.type.CommonAddOnManifest common = 1; @@ -1078,7 +1078,7 @@ public boolean hasCommon() { * * *
-     * Configuration that is common across all Google Workspace Add-ons.
+     * Configuration that is common across all Google Workspace add-ons.
      * 
* * .google.apps.script.type.CommonAddOnManifest common = 1; @@ -1098,7 +1098,7 @@ public com.google.apps.script.type.CommonAddOnManifest getCommon() { * * *
-     * Configuration that is common across all Google Workspace Add-ons.
+     * Configuration that is common across all Google Workspace add-ons.
      * 
* * .google.apps.script.type.CommonAddOnManifest common = 1; @@ -1120,7 +1120,7 @@ public Builder setCommon(com.google.apps.script.type.CommonAddOnManifest value) * * *
-     * Configuration that is common across all Google Workspace Add-ons.
+     * Configuration that is common across all Google Workspace add-ons.
      * 
* * .google.apps.script.type.CommonAddOnManifest common = 1; @@ -1140,7 +1140,7 @@ public Builder setCommon( * * *
-     * Configuration that is common across all Google Workspace Add-ons.
+     * Configuration that is common across all Google Workspace add-ons.
      * 
* * .google.apps.script.type.CommonAddOnManifest common = 1; @@ -1167,7 +1167,7 @@ public Builder mergeCommon(com.google.apps.script.type.CommonAddOnManifest value * * *
-     * Configuration that is common across all Google Workspace Add-ons.
+     * Configuration that is common across all Google Workspace add-ons.
      * 
* * .google.apps.script.type.CommonAddOnManifest common = 1; @@ -1186,7 +1186,7 @@ public Builder clearCommon() { * * *
-     * Configuration that is common across all Google Workspace Add-ons.
+     * Configuration that is common across all Google Workspace add-ons.
      * 
* * .google.apps.script.type.CommonAddOnManifest common = 1; @@ -1200,7 +1200,7 @@ public com.google.apps.script.type.CommonAddOnManifest.Builder getCommonBuilder( * * *
-     * Configuration that is common across all Google Workspace Add-ons.
+     * Configuration that is common across all Google Workspace add-ons.
      * 
* * .google.apps.script.type.CommonAddOnManifest common = 1; @@ -1218,7 +1218,7 @@ public com.google.apps.script.type.CommonAddOnManifestOrBuilder getCommonOrBuild * * *
-     * Configuration that is common across all Google Workspace Add-ons.
+     * Configuration that is common across all Google Workspace add-ons.
      * 
* * .google.apps.script.type.CommonAddOnManifest common = 1; diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/AddOnsOrBuilder.java b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/AddOnsOrBuilder.java index 0b105f34cb44..2eb8fb70ef62 100644 --- a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/AddOnsOrBuilder.java +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/AddOnsOrBuilder.java @@ -28,7 +28,7 @@ public interface AddOnsOrBuilder * * *
-   * Configuration that is common across all Google Workspace Add-ons.
+   * Configuration that is common across all Google Workspace add-ons.
    * 
* * .google.apps.script.type.CommonAddOnManifest common = 1; @@ -40,7 +40,7 @@ public interface AddOnsOrBuilder * * *
-   * Configuration that is common across all Google Workspace Add-ons.
+   * Configuration that is common across all Google Workspace add-ons.
    * 
* * .google.apps.script.type.CommonAddOnManifest common = 1; @@ -52,7 +52,7 @@ public interface AddOnsOrBuilder * * *
-   * Configuration that is common across all Google Workspace Add-ons.
+   * Configuration that is common across all Google Workspace add-ons.
    * 
* * .google.apps.script.type.CommonAddOnManifest common = 1; diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/Deployment.java b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/Deployment.java index 3c63a0ef27f8..9be83367a303 100644 --- a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/Deployment.java +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/Deployment.java @@ -23,7 +23,7 @@ * * *
- * A Google Workspace Add-on deployment
+ * A Google Workspace add-on deployment
  * 
* * Protobuf type {@code google.cloud.gsuiteaddons.v1.Deployment} @@ -193,7 +193,7 @@ public com.google.protobuf.ByteString getOauthScopesBytes(int index) { * * *
-   * The Google Workspace Add-on configuration.
+   * The Google Workspace add-on configuration.
    * 
* * .google.cloud.gsuiteaddons.v1.AddOns add_ons = 3; @@ -208,7 +208,7 @@ public boolean hasAddOns() { * * *
-   * The Google Workspace Add-on configuration.
+   * The Google Workspace add-on configuration.
    * 
* * .google.cloud.gsuiteaddons.v1.AddOns add_ons = 3; @@ -223,7 +223,7 @@ public com.google.cloud.gsuiteaddons.v1.AddOns getAddOns() { * * *
-   * The Google Workspace Add-on configuration.
+   * The Google Workspace add-on configuration.
    * 
* * .google.cloud.gsuiteaddons.v1.AddOns add_ons = 3; @@ -490,7 +490,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * A Google Workspace Add-on deployment
+   * A Google Workspace add-on deployment
    * 
* * Protobuf type {@code google.cloud.gsuiteaddons.v1.Deployment} @@ -1038,7 +1038,7 @@ public Builder addOauthScopesBytes(com.google.protobuf.ByteString value) { * * *
-     * The Google Workspace Add-on configuration.
+     * The Google Workspace add-on configuration.
      * 
* * .google.cloud.gsuiteaddons.v1.AddOns add_ons = 3; @@ -1052,7 +1052,7 @@ public boolean hasAddOns() { * * *
-     * The Google Workspace Add-on configuration.
+     * The Google Workspace add-on configuration.
      * 
* * .google.cloud.gsuiteaddons.v1.AddOns add_ons = 3; @@ -1072,7 +1072,7 @@ public com.google.cloud.gsuiteaddons.v1.AddOns getAddOns() { * * *
-     * The Google Workspace Add-on configuration.
+     * The Google Workspace add-on configuration.
      * 
* * .google.cloud.gsuiteaddons.v1.AddOns add_ons = 3; @@ -1094,7 +1094,7 @@ public Builder setAddOns(com.google.cloud.gsuiteaddons.v1.AddOns value) { * * *
-     * The Google Workspace Add-on configuration.
+     * The Google Workspace add-on configuration.
      * 
* * .google.cloud.gsuiteaddons.v1.AddOns add_ons = 3; @@ -1113,7 +1113,7 @@ public Builder setAddOns(com.google.cloud.gsuiteaddons.v1.AddOns.Builder builder * * *
-     * The Google Workspace Add-on configuration.
+     * The Google Workspace add-on configuration.
      * 
* * .google.cloud.gsuiteaddons.v1.AddOns add_ons = 3; @@ -1140,7 +1140,7 @@ public Builder mergeAddOns(com.google.cloud.gsuiteaddons.v1.AddOns value) { * * *
-     * The Google Workspace Add-on configuration.
+     * The Google Workspace add-on configuration.
      * 
* * .google.cloud.gsuiteaddons.v1.AddOns add_ons = 3; @@ -1159,7 +1159,7 @@ public Builder clearAddOns() { * * *
-     * The Google Workspace Add-on configuration.
+     * The Google Workspace add-on configuration.
      * 
* * .google.cloud.gsuiteaddons.v1.AddOns add_ons = 3; @@ -1173,7 +1173,7 @@ public com.google.cloud.gsuiteaddons.v1.AddOns.Builder getAddOnsBuilder() { * * *
-     * The Google Workspace Add-on configuration.
+     * The Google Workspace add-on configuration.
      * 
* * .google.cloud.gsuiteaddons.v1.AddOns add_ons = 3; @@ -1191,7 +1191,7 @@ public com.google.cloud.gsuiteaddons.v1.AddOnsOrBuilder getAddOnsOrBuilder() { * * *
-     * The Google Workspace Add-on configuration.
+     * The Google Workspace add-on configuration.
      * 
* * .google.cloud.gsuiteaddons.v1.AddOns add_ons = 3; diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/DeploymentOrBuilder.java b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/DeploymentOrBuilder.java index e4ead463ad44..097c1651357e 100644 --- a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/DeploymentOrBuilder.java +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/DeploymentOrBuilder.java @@ -110,7 +110,7 @@ public interface DeploymentOrBuilder * * *
-   * The Google Workspace Add-on configuration.
+   * The Google Workspace add-on configuration.
    * 
* * .google.cloud.gsuiteaddons.v1.AddOns add_ons = 3; @@ -122,7 +122,7 @@ public interface DeploymentOrBuilder * * *
-   * The Google Workspace Add-on configuration.
+   * The Google Workspace add-on configuration.
    * 
* * .google.cloud.gsuiteaddons.v1.AddOns add_ons = 3; @@ -134,7 +134,7 @@ public interface DeploymentOrBuilder * * *
-   * The Google Workspace Add-on configuration.
+   * The Google Workspace add-on configuration.
    * 
* * .google.cloud.gsuiteaddons.v1.AddOns add_ons = 3; diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/GetAuthorizationRequest.java b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/GetAuthorizationRequest.java index 7b8eb87f0ff0..c0db6c46a895 100644 --- a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/GetAuthorizationRequest.java +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/GetAuthorizationRequest.java @@ -23,7 +23,7 @@ * * *
- * Request message to get Google Workspace Add-ons authorization information.
+ * Request message to get Google Workspace add-ons authorization information.
  * 
* * Protobuf type {@code google.cloud.gsuiteaddons.v1.GetAuthorizationRequest} @@ -71,7 +71,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. Name of the project for which to get the Google Workspace Add-ons
+   * Required. Name of the project for which to get the Google Workspace add-ons
    * authorization information.
    *
    * Example: `projects/my_project/authorization`.
@@ -99,7 +99,7 @@ public java.lang.String getName() {
    *
    *
    * 
-   * Required. Name of the project for which to get the Google Workspace Add-ons
+   * Required. Name of the project for which to get the Google Workspace add-ons
    * authorization information.
    *
    * Example: `projects/my_project/authorization`.
@@ -288,7 +288,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    *
    * 
-   * Request message to get Google Workspace Add-ons authorization information.
+   * Request message to get Google Workspace add-ons authorization information.
    * 
* * Protobuf type {@code google.cloud.gsuiteaddons.v1.GetAuthorizationRequest} @@ -472,7 +472,7 @@ public Builder mergeFrom( * * *
-     * Required. Name of the project for which to get the Google Workspace Add-ons
+     * Required. Name of the project for which to get the Google Workspace add-ons
      * authorization information.
      *
      * Example: `projects/my_project/authorization`.
@@ -499,7 +499,7 @@ public java.lang.String getName() {
      *
      *
      * 
-     * Required. Name of the project for which to get the Google Workspace Add-ons
+     * Required. Name of the project for which to get the Google Workspace add-ons
      * authorization information.
      *
      * Example: `projects/my_project/authorization`.
@@ -526,7 +526,7 @@ public com.google.protobuf.ByteString getNameBytes() {
      *
      *
      * 
-     * Required. Name of the project for which to get the Google Workspace Add-ons
+     * Required. Name of the project for which to get the Google Workspace add-ons
      * authorization information.
      *
      * Example: `projects/my_project/authorization`.
@@ -552,7 +552,7 @@ public Builder setName(java.lang.String value) {
      *
      *
      * 
-     * Required. Name of the project for which to get the Google Workspace Add-ons
+     * Required. Name of the project for which to get the Google Workspace add-ons
      * authorization information.
      *
      * Example: `projects/my_project/authorization`.
@@ -574,7 +574,7 @@ public Builder clearName() {
      *
      *
      * 
-     * Required. Name of the project for which to get the Google Workspace Add-ons
+     * Required. Name of the project for which to get the Google Workspace add-ons
      * authorization information.
      *
      * Example: `projects/my_project/authorization`.
diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/GetAuthorizationRequestOrBuilder.java b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/GetAuthorizationRequestOrBuilder.java
index b16ebc733086..a28ae54b6386 100644
--- a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/GetAuthorizationRequestOrBuilder.java
+++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/java/com/google/cloud/gsuiteaddons/v1/GetAuthorizationRequestOrBuilder.java
@@ -28,7 +28,7 @@ public interface GetAuthorizationRequestOrBuilder
    *
    *
    * 
-   * Required. Name of the project for which to get the Google Workspace Add-ons
+   * Required. Name of the project for which to get the Google Workspace add-ons
    * authorization information.
    *
    * Example: `projects/my_project/authorization`.
@@ -45,7 +45,7 @@ public interface GetAuthorizationRequestOrBuilder
    *
    *
    * 
-   * Required. Name of the project for which to get the Google Workspace Add-ons
+   * Required. Name of the project for which to get the Google Workspace add-ons
    * authorization information.
    *
    * Example: `projects/my_project/authorization`.
diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/proto/google/cloud/gsuiteaddons/v1/gsuiteaddons.proto b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/proto/google/cloud/gsuiteaddons/v1/gsuiteaddons.proto
index 70dc975a4e74..8eefac599a3e 100644
--- a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/proto/google/cloud/gsuiteaddons/v1/gsuiteaddons.proto
+++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/src/main/proto/google/cloud/gsuiteaddons/v1/gsuiteaddons.proto
@@ -38,30 +38,30 @@ option java_package = "com.google.cloud.gsuiteaddons.v1";
 option php_namespace = "Google\\Cloud\\GSuiteAddOns\\V1";
 option ruby_package = "Google::Cloud::GSuiteAddOns::V1";
 
-// A service for managing Google Workspace Add-ons deployments.
+// A service for managing Google Workspace add-ons deployments.
 //
-// A Google Workspace Add-on is a third-party embedded component that can be
+// A Google Workspace add-on is a third-party embedded component that can be
 // installed in Google Workspace Applications like Gmail, Calendar, Drive, and
-// the Google Docs, Sheets, and Slides editors. Google Workspace Add-ons can
+// the Google Docs, Sheets, and Slides editors. Google Workspace add-ons can
 // display UI cards, receive contextual information from the host application,
 // and perform actions in the host application (See:
 // https://developers.google.com/gsuite/add-ons/overview for more information).
 //
-// A Google Workspace Add-on deployment resource specifies metadata about the
+// A Google Workspace add-on deployment resource specifies metadata about the
 // add-on, including a specification of the entry points in the host application
 // that trigger add-on executions (see:
 // https://developers.google.com/gsuite/add-ons/concepts/gsuite-manifests).
-// Add-on deployments defined via the Google Workspace Add-ons API define their
+// Add-on deployments defined via the Google Workspace add-ons API define their
 // entrypoints using HTTPS URLs (See:
 // https://developers.google.com/gsuite/add-ons/guides/alternate-runtimes),
 //
-// A Google Workspace Add-on deployment can be installed in developer mode,
+// A Google Workspace add-on deployment can be installed in developer mode,
 // which allows an add-on developer to test the experience an end-user would see
 // when installing and running the add-on in their G Suite applications.  When
 // running in developer mode, more detailed error messages are exposed in the
 // add-on UI to aid in debugging.
 //
-// A Google Workspace Add-on deployment can be published to Google Workspace
+// A Google Workspace add-on deployment can be published to Google Workspace
 // Marketplace, which allows other Google Workspace users to discover and
 // install the add-on.  See:
 // https://developers.google.com/gsuite/add-ons/how-tos/publish-add-on-overview
@@ -156,9 +156,9 @@ service GSuiteAddOns {
   }
 }
 
-// Request message to get Google Workspace Add-ons authorization information.
+// Request message to get Google Workspace add-ons authorization information.
 message GetAuthorizationRequest {
-  // Required. Name of the project for which to get the Google Workspace Add-ons
+  // Required. Name of the project for which to get the Google Workspace add-ons
   // authorization information.
   //
   // Example: `projects/my_project/authorization`.
@@ -337,7 +337,7 @@ message InstallStatus {
   google.protobuf.BoolValue installed = 2;
 }
 
-// A Google Workspace Add-on deployment
+// A Google Workspace add-on deployment
 message Deployment {
   option (google.api.resource) = {
     type: "gsuiteaddons.googleapis.com/Deployment"
@@ -352,7 +352,7 @@ message Deployment {
   // user before executing an add-on endpoint.
   repeated string oauth_scopes = 2;
 
-  // The Google Workspace Add-on configuration.
+  // The Google Workspace add-on configuration.
   AddOns add_ons = 3;
 
   // This value is computed by the server based on the version of the
@@ -361,9 +361,9 @@ message Deployment {
   string etag = 5;
 }
 
-// A Google Workspace Add-on configuration.
+// A Google Workspace add-on configuration.
 message AddOns {
-  // Configuration that is common across all Google Workspace Add-ons.
+  // Configuration that is common across all Google Workspace add-ons.
   google.apps.script.type.CommonAddOnManifest common = 1;
 
   // Gmail add-on configuration.
diff --git a/java-iam-admin/README.md b/java-iam-admin/README.md
index 1597fef3492a..1cc8cc566bb9 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.52.0
+      26.53.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.50.0
+  3.51.0
 
 ```
 
 If you are using Gradle without BOM, add this to your dependencies:
 
 ```Groovy
-implementation 'com.google.cloud:google-iam-admin:3.50.0'
+implementation 'com.google.cloud:google-iam-admin:3.51.0'
 ```
 
 If you are using SBT, add this to your dependencies:
 
 ```Scala
-libraryDependencies += "com.google.cloud" % "google-iam-admin" % "3.50.0"
+libraryDependencies += "com.google.cloud" % "google-iam-admin" % "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-iam-admin.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-admin/3.50.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-admin/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-iam/README.md b/java-iam/README.md
index 78480be8e071..ca2a855e8a8b 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.52.0
+      26.53.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.53.0
+  1.54.0
 
 ```
 
 If you are using Gradle without BOM, add this to your dependencies:
 
 ```Groovy
-implementation 'com.google.cloud:google-iam-policy:1.53.0'
+implementation 'com.google.cloud:google-iam-policy:1.54.0'
 ```
 
 If you are using SBT, add this to your dependencies:
 
 ```Scala
-libraryDependencies += "com.google.cloud" % "google-iam-policy" % "1.53.0"
+libraryDependencies += "com.google.cloud" % "google-iam-policy" % "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-iam-policy.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-policy/1.53.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-policy/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-iamcredentials/README.md b/java-iamcredentials/README.md
index 2c22d05ccce3..07e758e524a7 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.52.0
+      26.53.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.55.0
+  2.56.0
 
 ```
 
 If you are using Gradle without BOM, add this to your dependencies:
 
 ```Groovy
-implementation 'com.google.cloud:google-cloud-iamcredentials:2.55.0'
+implementation 'com.google.cloud:google-cloud-iamcredentials:2.56.0'
 ```
 
 If you are using SBT, add this to your dependencies:
 
 ```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-iamcredentials" % "2.55.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-iamcredentials" % "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-iamcredentials.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iamcredentials/2.55.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iamcredentials/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-iap/README.md b/java-iap/README.md
index a1c9021da17d..83fb89da6d35 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.52.0
+      26.53.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.11.0
+  0.12.0
 
 ```
 
 If you are using Gradle without BOM, add this to your dependencies:
 
 ```Groovy
-implementation 'com.google.cloud:google-cloud-iap:0.11.0'
+implementation 'com.google.cloud:google-cloud-iap:0.12.0'
 ```
 
 If you are using SBT, add this to your dependencies:
 
 ```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-iap" % "0.11.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-iap" % "0.12.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.11.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iap/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-ids/README.md b/java-ids/README.md
index c0f1fca0d94a..f3b4df37be61 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.52.0
+      26.53.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.54.0
+  1.55.0
 
 ```
 
 If you are using Gradle without BOM, add this to your dependencies:
 
 ```Groovy
-implementation 'com.google.cloud:google-cloud-ids:1.54.0'
+implementation 'com.google.cloud:google-cloud-ids:1.55.0'
 ```
 
 If you are using SBT, add this to your dependencies:
 
 ```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-ids" % "1.54.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-ids" % "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-ids.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ids/1.54.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ids/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-infra-manager/README.md b/java-infra-manager/README.md
index 6dc8d896dd03..b6a9b6b5d2c8 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.52.0
+      26.53.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.32.0
+  0.33.0
 
 ```
 
 If you are using Gradle without BOM, add this to your dependencies:
 
 ```Groovy
-implementation 'com.google.cloud:google-cloud-infra-manager:0.32.0'
+implementation 'com.google.cloud:google-cloud-infra-manager:0.33.0'
 ```
 
 If you are using SBT, add this to your dependencies:
 
 ```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-infra-manager" % "0.32.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-infra-manager" % "0.33.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.32.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-infra-manager/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-iot/README.md b/java-iot/README.md
index db52a3fd0593..f4d55bab6d57 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.52.0
+      26.53.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.55.0
+  2.56.0
 
 ```
 
 If you are using Gradle without BOM, add this to your dependencies:
 
 ```Groovy
-implementation 'com.google.cloud:google-cloud-iot:2.55.0'
+implementation 'com.google.cloud:google-cloud-iot:2.56.0'
 ```
 
 If you are using SBT, add this to your dependencies:
 
 ```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-iot" % "2.55.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-iot" % "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-iot.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iot/2.55.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iot/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-kms/README.md b/java-kms/README.md
index a2c81f7983b9..87a3638ccfba 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.52.0
+      26.53.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.58.0
+  2.59.0
 
 ```
 
 If you are using Gradle without BOM, add this to your dependencies:
 
 ```Groovy
-implementation 'com.google.cloud:google-cloud-kms:2.58.0'
+implementation 'com.google.cloud:google-cloud-kms:2.59.0'
 ```
 
 If you are using SBT, add this to your dependencies:
 
 ```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-kms" % "2.58.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-kms" % "2.59.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.58.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kms/2.59.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-kmsinventory/README.md b/java-kmsinventory/README.md
index 24754b35a87b..d535144ccd4a 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.52.0
+      26.53.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.44.0
+  0.45.0
 
 ```
 
 If you are using Gradle without BOM, add this to your dependencies:
 
 ```Groovy
-implementation 'com.google.cloud:google-cloud-kmsinventory:0.44.0'
+implementation 'com.google.cloud:google-cloud-kmsinventory:0.45.0'
 ```
 
 If you are using SBT, add this to your dependencies:
 
 ```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-kmsinventory" % "0.44.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-kmsinventory" % "0.45.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.44.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kmsinventory/0.45.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 a7e59f9a7ae9..b7dbc35681f8 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.52.0
+      26.53.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.56.0
+  2.57.0
 
 ```
 
 If you are using Gradle without BOM, add this to your dependencies:
 
 ```Groovy
-implementation 'com.google.cloud:google-cloud-language:2.56.0'
+implementation 'com.google.cloud:google-cloud-language:2.57.0'
 ```
 
 If you are using SBT, add this to your dependencies:
 
 ```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-language" % "2.56.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-language" % "2.57.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.56.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-language/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-life-sciences/README.md b/java-life-sciences/README.md
index 00e48d57194c..8fcde351cb50 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.52.0
+      26.53.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.57.0
+  0.58.0
 
 ```
 
 If you are using Gradle without BOM, add this to your dependencies:
 
 ```Groovy
-implementation 'com.google.cloud:google-cloud-life-sciences:0.57.0'
+implementation 'com.google.cloud:google-cloud-life-sciences:0.58.0'
 ```
 
 If you are using SBT, add this to your dependencies:
 
 ```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-life-sciences" % "0.57.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-life-sciences" % "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-life-sciences.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-life-sciences/0.57.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-life-sciences/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-managed-identities/README.md b/java-managed-identities/README.md
index b57b6b1ef2ca..4f8a16885cf9 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.52.0
+      26.53.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.53.0
+  1.54.0
 
 ```
 
 If you are using Gradle without BOM, add this to your dependencies:
 
 ```Groovy
-implementation 'com.google.cloud:google-cloud-managed-identities:1.53.0'
+implementation 'com.google.cloud:google-cloud-managed-identities:1.54.0'
 ```
 
 If you are using SBT, add this to your dependencies:
 
 ```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-managed-identities" % "1.53.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-managed-identities" % "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-managed-identities.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managed-identities/1.53.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managed-identities/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-managedkafka/README.md b/java-managedkafka/README.md
index fc615f7804f0..c0c3c45e8819 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.52.0
+      26.53.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.11.0
+  0.12.0
 
 ```
 
 If you are using Gradle without BOM, add this to your dependencies:
 
 ```Groovy
-implementation 'com.google.cloud:google-cloud-managedkafka:0.11.0'
+implementation 'com.google.cloud:google-cloud-managedkafka:0.12.0'
 ```
 
 If you are using SBT, add this to your dependencies:
 
 ```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-managedkafka" % "0.11.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-managedkafka" % "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.cloud/google-cloud-managedkafka.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managedkafka/0.11.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managedkafka/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-addressvalidation/README.md b/java-maps-addressvalidation/README.md
index a8342a4ee3e2..fe7cb2010563 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.52.0
+      26.53.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.49.0
+  0.50.0
 
 ```
 
 If you are using Gradle without BOM, add this to your dependencies:
 
 ```Groovy
-implementation 'com.google.maps:google-maps-addressvalidation:0.49.0'
+implementation 'com.google.maps:google-maps-addressvalidation:0.50.0'
 ```
 
 If you are using SBT, add this to your dependencies:
 
 ```Scala
-libraryDependencies += "com.google.maps" % "google-maps-addressvalidation" % "0.49.0"
+libraryDependencies += "com.google.maps" % "google-maps-addressvalidation" % "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.maps/google-maps-addressvalidation.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-addressvalidation/0.49.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-addressvalidation/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-maps-area-insights/README.md b/java-maps-area-insights/README.md
index 3a045d7d159d..3280088b7428 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.52.0
+      26.53.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.6.0
+  0.7.0
 
 ```
 
 If you are using Gradle without BOM, add this to your dependencies:
 
 ```Groovy
-implementation 'com.google.maps:google-maps-area-insights:0.6.0'
+implementation 'com.google.maps:google-maps-area-insights:0.7.0'
 ```
 
 If you are using SBT, add this to your dependencies:
 
 ```Scala
-libraryDependencies += "com.google.maps" % "google-maps-area-insights" % "0.6.0"
+libraryDependencies += "com.google.maps" % "google-maps-area-insights" % "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.maps/google-maps-area-insights.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-area-insights/0.6.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-area-insights/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-maps-fleetengine-delivery/README.md b/java-maps-fleetengine-delivery/README.md
index b82b51a1f5a0..d58483a6b273 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.52.0
+      26.53.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.2.0
+  0.3.0
 
 ```
 
 If you are using Gradle without BOM, add this to your dependencies:
 
 ```Groovy
-implementation 'com.google.maps:google-maps-fleetengine-delivery:0.2.0'
+implementation 'com.google.maps:google-maps-fleetengine-delivery:0.3.0'
 ```
 
 If you are using SBT, add this to your dependencies:
 
 ```Scala
-libraryDependencies += "com.google.maps" % "google-maps-fleetengine-delivery" % "0.2.0"
+libraryDependencies += "com.google.maps" % "google-maps-fleetengine-delivery" % "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.maps/google-maps-fleetengine-delivery.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine-delivery/0.2.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine-delivery/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-maps-fleetengine/README.md b/java-maps-fleetengine/README.md
index fb210a1eea5e..2e82a3bb9bde 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.52.0
+      26.53.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.2.0
+  0.3.0
 
 ```
 
 If you are using Gradle without BOM, add this to your dependencies:
 
 ```Groovy
-implementation 'com.google.maps:google-maps-fleetengine:0.2.0'
+implementation 'com.google.maps:google-maps-fleetengine:0.3.0'
 ```
 
 If you are using SBT, add this to your dependencies:
 
 ```Scala
-libraryDependencies += "com.google.maps" % "google-maps-fleetengine" % "0.2.0"
+libraryDependencies += "com.google.maps" % "google-maps-fleetengine" % "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.maps/google-maps-fleetengine.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine/0.2.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine/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-maps-mapsplatformdatasets/README.md b/java-maps-mapsplatformdatasets/README.md
index 3ab699780de4..0cde85e4e0ef 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.52.0
+      26.53.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.44.0
+  0.45.0
 
 ```
 
 If you are using Gradle without BOM, add this to your dependencies:
 
 ```Groovy
-implementation 'com.google.maps:google-maps-mapsplatformdatasets:0.44.0'
+implementation 'com.google.maps:google-maps-mapsplatformdatasets:0.45.0'
 ```
 
 If you are using SBT, add this to your dependencies:
 
 ```Scala
-libraryDependencies += "com.google.maps" % "google-maps-mapsplatformdatasets" % "0.44.0"
+libraryDependencies += "com.google.maps" % "google-maps-mapsplatformdatasets" % "0.45.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.44.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-mapsplatformdatasets/0.45.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 0aac31a89952..d8e17f52873a 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.52.0
+      26.53.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.26.0
+  0.27.0
 
 ```
 
 If you are using Gradle without BOM, add this to your dependencies:
 
 ```Groovy
-implementation 'com.google.maps:google-maps-places:0.26.0'
+implementation 'com.google.maps:google-maps-places:0.27.0'
 ```
 
 If you are using SBT, add this to your dependencies:
 
 ```Scala
-libraryDependencies += "com.google.maps" % "google-maps-places" % "0.26.0"
+libraryDependencies += "com.google.maps" % "google-maps-places" % "0.27.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.26.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-places/0.27.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/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/FuelOptions.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/FuelOptions.java
index c8555af6cca7..23e49dccf459 100644
--- a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/FuelOptions.java
+++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/FuelOptions.java
@@ -238,6 +238,16 @@ public enum FuelType implements com.google.protobuf.ProtocolMessageEnum {
        * DIESEL = 1;
        */
       DIESEL(1),
+      /**
+       *
+       *
+       * 
+       * Diesel plus fuel.
+       * 
+ * + * DIESEL_PLUS = 19; + */ + DIESEL_PLUS(19), /** * * @@ -352,7 +362,7 @@ public enum FuelType implements com.google.protobuf.ProtocolMessageEnum { * * *
-       * LPG.
+       * Liquefied Petroleum Gas.
        * 
* * LPG = 13; @@ -378,6 +388,16 @@ public enum FuelType implements com.google.protobuf.ProtocolMessageEnum { * E85 = 15; */ E85(15), + /** + * + * + *
+       * E 100.
+       * 
+ * + * E100 = 20; + */ + E100(20), /** * * @@ -431,6 +451,16 @@ public enum FuelType implements com.google.protobuf.ProtocolMessageEnum { * DIESEL = 1; */ public static final int DIESEL_VALUE = 1; + /** + * + * + *
+       * Diesel plus fuel.
+       * 
+ * + * DIESEL_PLUS = 19; + */ + public static final int DIESEL_PLUS_VALUE = 19; /** * * @@ -545,7 +575,7 @@ public enum FuelType implements com.google.protobuf.ProtocolMessageEnum { * * *
-       * LPG.
+       * Liquefied Petroleum Gas.
        * 
* * LPG = 13; @@ -571,6 +601,16 @@ public enum FuelType implements com.google.protobuf.ProtocolMessageEnum { * E85 = 15; */ public static final int E85_VALUE = 15; + /** + * + * + *
+       * E 100.
+       * 
+ * + * E100 = 20; + */ + public static final int E100_VALUE = 20; /** * * @@ -630,6 +670,8 @@ public static FuelType forNumber(int value) { return FUEL_TYPE_UNSPECIFIED; case 1: return DIESEL; + case 19: + return DIESEL_PLUS; case 2: return REGULAR_UNLEADED; case 3: @@ -658,6 +700,8 @@ public static FuelType forNumber(int value) { return E80; case 15: return E85; + case 20: + return E100; case 16: return METHANE; case 17: diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/FuelOptionsProto.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/FuelOptionsProto.java index 361bf23f409e..f2e211b2e4c0 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/FuelOptionsProto.java +++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/FuelOptionsProto.java @@ -48,24 +48,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n(google/maps/places/v1/fuel_options.pro" + "to\022\025google.maps.places.v1\032\037google/protob" + "uf/timestamp.proto\032\027google/type/money.pr" - + "oto\"\377\003\n\013FuelOptions\022A\n\013fuel_prices\030\001 \003(\013" + + "oto\"\232\004\n\013FuelOptions\022A\n\013fuel_prices\030\001 \003(\013" + "2,.google.maps.places.v1.FuelOptions.Fue" - + "lPrice\032\254\003\n\tFuelPrice\022C\n\004type\030\001 \001(\01625.goo" + + "lPrice\032\307\003\n\tFuelPrice\022C\n\004type\030\001 \001(\01625.goo" + "gle.maps.places.v1.FuelOptions.FuelPrice" + ".FuelType\022!\n\005price\030\002 \001(\0132\022.google.type.M" + "oney\022/\n\013update_time\030\003 \001(\0132\032.google.proto" - + "buf.Timestamp\"\205\002\n\010FuelType\022\031\n\025FUEL_TYPE_" - + "UNSPECIFIED\020\000\022\n\n\006DIESEL\020\001\022\024\n\020REGULAR_UNL" - + "EADED\020\002\022\014\n\010MIDGRADE\020\003\022\013\n\007PREMIUM\020\004\022\010\n\004SP" - + "91\020\005\022\014\n\010SP91_E10\020\006\022\010\n\004SP92\020\007\022\010\n\004SP95\020\010\022\014" - + "\n\010SP95_E10\020\t\022\010\n\004SP98\020\n\022\010\n\004SP99\020\013\022\t\n\005SP10" - + "0\020\014\022\007\n\003LPG\020\r\022\007\n\003E80\020\016\022\007\n\003E85\020\017\022\013\n\007METHAN" - + "E\020\020\022\016\n\nBIO_DIESEL\020\021\022\020\n\014TRUCK_DIESEL\020\022B\241\001" - + "\n\031com.google.maps.places.v1B\020FuelOptions" - + "ProtoP\001Z7cloud.google.com/go/maps/places" - + "/apiv1/placespb;placespb\242\002\006GMPSV1\252\002\025Goog" - + "le.Maps.Places.V1\312\002\025Google\\Maps\\Places\\V" - + "1b\006proto3" + + "buf.Timestamp\"\240\002\n\010FuelType\022\031\n\025FUEL_TYPE_" + + "UNSPECIFIED\020\000\022\n\n\006DIESEL\020\001\022\017\n\013DIESEL_PLUS" + + "\020\023\022\024\n\020REGULAR_UNLEADED\020\002\022\014\n\010MIDGRADE\020\003\022\013" + + "\n\007PREMIUM\020\004\022\010\n\004SP91\020\005\022\014\n\010SP91_E10\020\006\022\010\n\004S" + + "P92\020\007\022\010\n\004SP95\020\010\022\014\n\010SP95_E10\020\t\022\010\n\004SP98\020\n\022" + + "\010\n\004SP99\020\013\022\t\n\005SP100\020\014\022\007\n\003LPG\020\r\022\007\n\003E80\020\016\022\007" + + "\n\003E85\020\017\022\010\n\004E100\020\024\022\013\n\007METHANE\020\020\022\016\n\nBIO_DI" + + "ESEL\020\021\022\020\n\014TRUCK_DIESEL\020\022B\241\001\n\031com.google." + + "maps.places.v1B\020FuelOptionsProtoP\001Z7clou" + + "d.google.com/go/maps/places/apiv1/places" + + "pb;placespb\242\002\006GMPSV1\252\002\025Google.Maps.Place" + + "s.V1\312\002\025Google\\Maps\\Places\\V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/fuel_options.proto b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/fuel_options.proto index 20d2c7995ea2..fe23a40435ba 100644 --- a/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/fuel_options.proto +++ b/java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/fuel_options.proto @@ -40,6 +40,9 @@ message FuelOptions { // Diesel fuel. DIESEL = 1; + // Diesel plus fuel. + DIESEL_PLUS = 19; + // Regular unleaded. REGULAR_UNLEADED = 2; @@ -73,7 +76,7 @@ message FuelOptions { // SP 100. SP100 = 12; - // LPG. + // Liquefied Petroleum Gas. LPG = 13; // E 80. @@ -82,6 +85,9 @@ message FuelOptions { // E 85. E85 = 15; + // E 100. + E100 = 20; + // Methane. METHANE = 16; diff --git a/java-maps-routeoptimization/README.md b/java-maps-routeoptimization/README.md index b03e944b3c06..b07368358c73 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.52.0 + 26.53.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.13.0 + 0.14.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-routeoptimization:0.13.0' +implementation 'com.google.maps:google-maps-routeoptimization:0.14.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-routeoptimization" % "0.13.0" +libraryDependencies += "com.google.maps" % "google-maps-routeoptimization" % "0.14.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.13.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routeoptimization/0.14.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 73398c771164..a995aeb022fc 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.52.0 + 26.53.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.40.0 + 1.41.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-routing:1.40.0' +implementation 'com.google.maps:google-maps-routing:1.41.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-routing" % "1.40.0" +libraryDependencies += "com.google.maps" % "google-maps-routing" % "1.41.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.40.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routing/1.41.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-solar/README.md b/java-maps-solar/README.md index c3adff2181d5..c605968bcb51 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.52.0 + 26.53.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.14.0 + 0.15.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-solar:0.14.0' +implementation 'com.google.maps:google-maps-solar:0.15.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-solar" % "0.14.0" +libraryDependencies += "com.google.maps" % "google-maps-solar" % "0.15.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.14.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-solar/0.15.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 326d47803e01..18b6f5840fb9 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.52.0 + 26.53.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.4.0 + 0.5.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.ads-marketingplatform:admin:0.4.0' +implementation 'com.google.ads-marketingplatform:admin:0.5.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.ads-marketingplatform" % "admin" % "0.4.0" +libraryDependencies += "com.google.ads-marketingplatform" % "admin" % "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.ads-marketingplatform/admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.ads-marketingplatform/admin/0.4.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.ads-marketingplatform/admin/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-mediatranslation/README.md b/java-mediatranslation/README.md index 14d3dfb25f80..957e0a11f1f4 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.52.0 + 26.53.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.61.0 + 0.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-mediatranslation:0.61.0' +implementation 'com.google.cloud:google-cloud-mediatranslation:0.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-mediatranslation" % "0.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-mediatranslation" % "0.62.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.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-mediatranslation/0.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-meet/README.md b/java-meet/README.md index cd7264970a74..c3687dc2da49 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.52.0 + 26.53.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.22.0 + 0.23.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-meet:0.22.0' +implementation 'com.google.cloud:google-cloud-meet:0.23.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-meet" % "0.22.0" +libraryDependencies += "com.google.cloud" % "google-cloud-meet" % "0.23.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.22.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-meet/0.23.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/google-cloud-meet/src/main/java/com/google/apps/meet/v2/SpacesServiceClient.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/SpacesServiceClient.java index 318588ca112a..b55ae631ac64 100644 --- a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/SpacesServiceClient.java +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/SpacesServiceClient.java @@ -75,7 +75,8 @@ * * *

GetSpace - *

Gets a space by `space_id` or `meeting_code`. + *

Gets details about a meeting space. + *

For an example, see [Get a meeting space](https://developers.google.com/meet/api/guides/meeting-spaces#get-meeting-space). * *

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

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

    UpdateSpace - *

    Updates a space. + *

    Updates details about a meeting space. + *

    For an example, see [Update a meeting space](https://developers.google.com/meet/api/guides/meeting-spaces#update-meeting-space). * *

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

    *
      @@ -112,7 +114,8 @@ * * *

      EndActiveConference - *

      Ends an active conference (if there's one). + *

      Ends an active conference (if there's one). + *

      For an example, see [End active conference](https://developers.google.com/meet/api/guides/meeting-spaces#end-active-conference). * *

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

      *
        @@ -314,7 +317,10 @@ public final UnaryCallable createSpaceCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a space by `space_id` or `meeting_code`. + * Gets details about a meeting space. + * + *

        For an example, see [Get a meeting + * space](https://developers.google.com/meet/api/guides/meeting-spaces#get-meeting-space). * *

        Sample code: * @@ -331,6 +337,17 @@ public final UnaryCallable createSpaceCallable() { * }

* * @param name Required. Resource name of the space. + *

Format: `spaces/{space}` or `spaces/{meetingCode}`. + *

`{space}` is the resource identifier for the space. It's a unique, server-generated ID + * and is case sensitive. For example, `jQCFfuBOdN5z`. + *

`{meetingCode}` is an alias for the space. It's a typeable, unique character string and + * is non-case sensitive. For example, `abc-mnop-xyz`. The maximum length is 128 characters. + *

A `meetingCode` shouldn't be stored long term as it can become dissociated from a + * meeting space and can be reused for different meeting spaces in the future. Generally, a + * `meetingCode` expires 365 days after last use. For more information, see [Learn about + * meeting codes in Google Meet](https://support.google.com/meet/answer/10710509). + *

For more information, see [How Meet identifies a meeting + * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Space getSpace(SpaceName name) { @@ -341,7 +358,10 @@ public final Space getSpace(SpaceName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a space by `space_id` or `meeting_code`. + * Gets details about a meeting space. + * + *

For an example, see [Get a meeting + * space](https://developers.google.com/meet/api/guides/meeting-spaces#get-meeting-space). * *

Sample code: * @@ -358,6 +378,17 @@ public final Space getSpace(SpaceName name) { * }

* * @param name Required. Resource name of the space. + *

Format: `spaces/{space}` or `spaces/{meetingCode}`. + *

`{space}` is the resource identifier for the space. It's a unique, server-generated ID + * and is case sensitive. For example, `jQCFfuBOdN5z`. + *

`{meetingCode}` is an alias for the space. It's a typeable, unique character string and + * is non-case sensitive. For example, `abc-mnop-xyz`. The maximum length is 128 characters. + *

A `meetingCode` shouldn't be stored long term as it can become dissociated from a + * meeting space and can be reused for different meeting spaces in the future. Generally, a + * `meetingCode` expires 365 days after last use. For more information, see [Learn about + * meeting codes in Google Meet](https://support.google.com/meet/answer/10710509). + *

For more information, see [How Meet identifies a meeting + * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Space getSpace(String name) { @@ -367,7 +398,10 @@ public final Space getSpace(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a space by `space_id` or `meeting_code`. + * Gets details about a meeting space. + * + *

For an example, see [Get a meeting + * space](https://developers.google.com/meet/api/guides/meeting-spaces#get-meeting-space). * *

Sample code: * @@ -393,7 +427,10 @@ public final Space getSpace(GetSpaceRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a space by `space_id` or `meeting_code`. + * Gets details about a meeting space. + * + *

For an example, see [Get a meeting + * space](https://developers.google.com/meet/api/guides/meeting-spaces#get-meeting-space). * *

Sample code: * @@ -418,7 +455,10 @@ public final UnaryCallable getSpaceCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a space. + * Updates details about a meeting space. + * + *

For an example, see [Update a meeting + * space](https://developers.google.com/meet/api/guides/meeting-spaces#update-meeting-space). * *

Sample code: * @@ -437,8 +477,9 @@ public final UnaryCallable getSpaceCallable() { * * @param space Required. Space to be updated. * @param updateMask Optional. Field mask used to specify the fields to be updated in the space. - * If update_mask isn't provided, it defaults to '*' and updates all fields provided in - * the request, including deleting fields not set in the request. + * If update_mask isn't provided(not set, set with empty paths, or only has "" as paths), it + * defaults to update all fields provided with values in the request. Using "*" as + * update_mask will update all fields, including deleting fields not set in the request. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Space updateSpace(Space space, FieldMask updateMask) { @@ -449,7 +490,10 @@ public final Space updateSpace(Space space, FieldMask updateMask) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a space. + * Updates details about a meeting space. + * + *

For an example, see [Update a meeting + * space](https://developers.google.com/meet/api/guides/meeting-spaces#update-meeting-space). * *

Sample code: * @@ -478,7 +522,10 @@ public final Space updateSpace(UpdateSpaceRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a space. + * Updates details about a meeting space. + * + *

For an example, see [Update a meeting + * space](https://developers.google.com/meet/api/guides/meeting-spaces#update-meeting-space). * *

Sample code: * @@ -508,6 +555,9 @@ public final UnaryCallable updateSpaceCallable() { /** * Ends an active conference (if there's one). * + *

For an example, see [End active + * conference](https://developers.google.com/meet/api/guides/meeting-spaces#end-active-conference). + * *

Sample code: * *

{@code
@@ -523,6 +573,11 @@ public final UnaryCallable updateSpaceCallable() {
    * }
* * @param name Required. Resource name of the space. + *

Format: `spaces/{space}`. + *

`{space}` is the resource identifier for the space. It's a unique, server-generated ID + * and is case sensitive. For example, `jQCFfuBOdN5z`. + *

For more information, see [How Meet identifies a meeting + * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void endActiveConference(SpaceName name) { @@ -537,6 +592,9 @@ public final void endActiveConference(SpaceName name) { /** * Ends an active conference (if there's one). * + *

For an example, see [End active + * conference](https://developers.google.com/meet/api/guides/meeting-spaces#end-active-conference). + * *

Sample code: * *

{@code
@@ -552,6 +610,11 @@ public final void endActiveConference(SpaceName name) {
    * }
* * @param name Required. Resource name of the space. + *

Format: `spaces/{space}`. + *

`{space}` is the resource identifier for the space. It's a unique, server-generated ID + * and is case sensitive. For example, `jQCFfuBOdN5z`. + *

For more information, see [How Meet identifies a meeting + * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void endActiveConference(String name) { @@ -564,6 +627,9 @@ public final void endActiveConference(String name) { /** * Ends an active conference (if there's one). * + *

For an example, see [End active + * conference](https://developers.google.com/meet/api/guides/meeting-spaces#end-active-conference). + * *

Sample code: * *

{@code
@@ -592,6 +658,9 @@ public final void endActiveConference(EndActiveConferenceRequest request) {
   /**
    * Ends an active conference (if there's one).
    *
+   * 

For an example, see [End active + * conference](https://developers.google.com/meet/api/guides/meeting-spaces#end-active-conference). + * *

Sample code: * *

{@code
diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/SpacesServiceStubSettings.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/SpacesServiceStubSettings.java
index 14be1ed6d6dc..e2cafc0b8e7d 100644
--- a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/SpacesServiceStubSettings.java
+++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/SpacesServiceStubSettings.java
@@ -107,6 +107,7 @@ public class SpacesServiceStubSettings extends StubSettingsbuilder()
           .add("https://www.googleapis.com/auth/meetings.space.created")
           .add("https://www.googleapis.com/auth/meetings.space.readonly")
+          .add("https://www.googleapis.com/auth/meetings.space.settings")
           .build();
 
   private final UnaryCallSettings createSpaceSettings;
diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/ConferenceRecordsServiceClient.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/ConferenceRecordsServiceClient.java
index a498975c31c3..eaa68c0b95d4 100644
--- a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/ConferenceRecordsServiceClient.java
+++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/ConferenceRecordsServiceClient.java
@@ -66,7 +66,7 @@
  *    
  *    
  *      

GetConferenceRecord - *

[Developer Preview](https://developers.google.com/workspace/preview). Gets a conference record by conference ID. + *

Gets a conference record by conference ID. * *

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

*
    @@ -85,7 +85,7 @@ * * *

    ListConferenceRecords - *

    [Developer Preview](https://developers.google.com/workspace/preview). Lists the conference records by start time and in descending order. + *

    Lists the conference records. By default, ordered by start time and in descending order. * *

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

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

      GetParticipant - *

      [Developer Preview](https://developers.google.com/workspace/preview). Gets a participant by participant ID. + *

      Gets a participant by participant ID. * *

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

      *
        @@ -119,7 +119,7 @@ * * *

        ListParticipants - *

        [Developer Preview](https://developers.google.com/workspace/preview). Lists the participants in a conference record, by default ordered by join time and in descending order. This API supports `fields` as standard parameters like every other API. However, when the `fields` request parameter is omitted, this API defaults to `'participants/*, next_page_token'`. + *

        Lists the participants in a conference record. By default, ordered by join time and in descending order. This API supports `fields` as standard parameters like every other API. However, when the `fields` request parameter is omitted, this API defaults to `'participants/*, next_page_token'`. * *

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

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

          GetParticipantSession - *

          [Developer Preview](https://developers.google.com/workspace/preview). Gets a participant session by participant session ID. + *

          Gets a participant session by participant session ID. * *

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

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

            ListParticipantSessions - *

            [Developer Preview](https://developers.google.com/workspace/preview). Lists the participant sessions of a participant in a conference record, by default ordered by join time and in descending order. This API supports `fields` as standard parameters like every other API. However, when the `fields` request parameter is omitted this API defaults to `'participantsessions/*, next_page_token'`. + *

            Lists the participant sessions of a participant in a conference record. By default, ordered by join time and in descending order. This API supports `fields` as standard parameters like every other API. However, when the `fields` request parameter is omitted this API defaults to `'participantsessions/*, next_page_token'`. * *

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

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

              GetRecording - *

              [Developer Preview](https://developers.google.com/workspace/preview). Gets a recording by recording ID. + *

              Gets a recording by recording ID. * *

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

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

                ListRecordings - *

                [Developer Preview](https://developers.google.com/workspace/preview). Lists the recording resources from the conference record. + *

                Lists the recording resources from the conference record. By default, ordered by start time and in ascending order. * *

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

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

                  GetTranscript - *

                  [Developer Preview](https://developers.google.com/workspace/preview). Gets a transcript by transcript ID. + *

                  Gets a transcript by transcript ID. * *

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

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

                    ListTranscripts - *

                    [Developer Preview](https://developers.google.com/workspace/preview). Lists the set of transcripts from the conference record. + *

                    Lists the set of transcripts from the conference record. By default, ordered by start time and in ascending order. * *

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

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

                      GetTranscriptEntry - *

                      [Developer Preview](https://developers.google.com/workspace/preview). Gets a `TranscriptEntry` resource by entry ID. + *

                      Gets a `TranscriptEntry` resource by entry ID. *

                      Note: The transcript entries returned by the Google Meet API might not match the transcription found in the Google Docs transcript file. This can occur when the Google Docs transcript file is modified after generation. * *

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

                      @@ -276,7 +276,7 @@ * * *

                      ListTranscriptEntries - *

                      [Developer Preview](https://developers.google.com/workspace/preview). Lists the structured transcript entries per transcript. By default, ordered by start time and in ascending order. + *

                      Lists the structured transcript entries per transcript. By default, ordered by start time and in ascending order. *

                      Note: The transcript entries returned by the Google Meet API might not match the transcription found in the Google Docs transcript file. This can occur when the Google Docs transcript file is modified after generation. * *

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

                      @@ -408,8 +408,7 @@ public ConferenceRecordsServiceStub getStub() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Gets a conference record - * by conference ID. + * Gets a conference record by conference ID. * *

                      Sample code: * @@ -439,8 +438,7 @@ public final ConferenceRecord getConferenceRecord(ConferenceRecordName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Gets a conference record - * by conference ID. + * Gets a conference record by conference ID. * *

                      Sample code: * @@ -468,8 +466,7 @@ public final ConferenceRecord getConferenceRecord(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Gets a conference record - * by conference ID. + * Gets a conference record by conference ID. * *

                      Sample code: * @@ -498,8 +495,7 @@ public final ConferenceRecord getConferenceRecord(GetConferenceRecordRequest req // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Gets a conference record - * by conference ID. + * Gets a conference record by conference ID. * *

                      Sample code: * @@ -529,8 +525,7 @@ public final ConferenceRecord getConferenceRecord(GetConferenceRecordRequest req // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Lists the conference - * records by start time and in descending order. + * Lists the conference records. By default, ordered by start time and in descending order. * *

                      Sample code: * @@ -565,8 +560,7 @@ public final ListConferenceRecordsPagedResponse listConferenceRecords( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Lists the conference - * records by start time and in descending order. + * Lists the conference records. By default, ordered by start time and in descending order. * *

                      Sample code: * @@ -600,8 +594,7 @@ public final ListConferenceRecordsPagedResponse listConferenceRecords( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Lists the conference - * records by start time and in descending order. + * Lists the conference records. By default, ordered by start time and in descending order. * *

                      Sample code: * @@ -642,8 +635,7 @@ public final ListConferenceRecordsPagedResponse listConferenceRecords( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Gets a participant by - * participant ID. + * Gets a participant by participant ID. * *

                      Sample code: * @@ -671,8 +663,7 @@ public final Participant getParticipant(ParticipantName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Gets a participant by - * participant ID. + * Gets a participant by participant ID. * *

                      Sample code: * @@ -699,8 +690,7 @@ public final Participant getParticipant(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Gets a participant by - * participant ID. + * Gets a participant by participant ID. * *

                      Sample code: * @@ -729,8 +719,7 @@ public final Participant getParticipant(GetParticipantRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Gets a participant by - * participant ID. + * Gets a participant by participant ID. * *

                      Sample code: * @@ -759,10 +748,10 @@ public final UnaryCallable getParticipantCal // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Lists the participants in - * a conference record, by default ordered by join time and in descending order. This API supports - * `fields` as standard parameters like every other API. However, when the `fields` request - * parameter is omitted, this API defaults to `'participants/*, next_page_token'`. + * Lists the participants in a conference record. By default, ordered by join time and in + * descending order. This API supports `fields` as standard parameters like every other API. + * However, when the `fields` request parameter is omitted, this API defaults to + * `'participants/*, next_page_token'`. * *

                      Sample code: * @@ -795,10 +784,10 @@ public final ListParticipantsPagedResponse listParticipants(ConferenceRecordName // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Lists the participants in - * a conference record, by default ordered by join time and in descending order. This API supports - * `fields` as standard parameters like every other API. However, when the `fields` request - * parameter is omitted, this API defaults to `'participants/*, next_page_token'`. + * Lists the participants in a conference record. By default, ordered by join time and in + * descending order. This API supports `fields` as standard parameters like every other API. + * However, when the `fields` request parameter is omitted, this API defaults to + * `'participants/*, next_page_token'`. * *

                      Sample code: * @@ -829,10 +818,10 @@ public final ListParticipantsPagedResponse listParticipants(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Lists the participants in - * a conference record, by default ordered by join time and in descending order. This API supports - * `fields` as standard parameters like every other API. However, when the `fields` request - * parameter is omitted, this API defaults to `'participants/*, next_page_token'`. + * Lists the participants in a conference record. By default, ordered by join time and in + * descending order. This API supports `fields` as standard parameters like every other API. + * However, when the `fields` request parameter is omitted, this API defaults to + * `'participants/*, next_page_token'`. * *

                      Sample code: * @@ -867,10 +856,10 @@ public final ListParticipantsPagedResponse listParticipants(ListParticipantsRequ // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Lists the participants in - * a conference record, by default ordered by join time and in descending order. This API supports - * `fields` as standard parameters like every other API. However, when the `fields` request - * parameter is omitted, this API defaults to `'participants/*, next_page_token'`. + * Lists the participants in a conference record. By default, ordered by join time and in + * descending order. This API supports `fields` as standard parameters like every other API. + * However, when the `fields` request parameter is omitted, this API defaults to + * `'participants/*, next_page_token'`. * *

                      Sample code: * @@ -905,10 +894,10 @@ public final ListParticipantsPagedResponse listParticipants(ListParticipantsRequ // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Lists the participants in - * a conference record, by default ordered by join time and in descending order. This API supports - * `fields` as standard parameters like every other API. However, when the `fields` request - * parameter is omitted, this API defaults to `'participants/*, next_page_token'`. + * Lists the participants in a conference record. By default, ordered by join time and in + * descending order. This API supports `fields` as standard parameters like every other API. + * However, when the `fields` request parameter is omitted, this API defaults to + * `'participants/*, next_page_token'`. * *

                      Sample code: * @@ -950,8 +939,7 @@ public final ListParticipantsPagedResponse listParticipants(ListParticipantsRequ // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Gets a participant - * session by participant session ID. + * Gets a participant session by participant session ID. * *

                      Sample code: * @@ -983,8 +971,7 @@ public final ParticipantSession getParticipantSession(ParticipantSessionName nam // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Gets a participant - * session by participant session ID. + * Gets a participant session by participant session ID. * *

                      Sample code: * @@ -1014,8 +1001,7 @@ public final ParticipantSession getParticipantSession(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Gets a participant - * session by participant session ID. + * Gets a participant session by participant session ID. * *

                      Sample code: * @@ -1047,8 +1033,7 @@ public final ParticipantSession getParticipantSession(GetParticipantSessionReque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Gets a participant - * session by participant session ID. + * Gets a participant session by participant session ID. * *

                      Sample code: * @@ -1081,10 +1066,9 @@ public final ParticipantSession getParticipantSession(GetParticipantSessionReque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Lists the participant - * sessions of a participant in a conference record, by default ordered by join time and in - * descending order. This API supports `fields` as standard parameters like every other API. - * However, when the `fields` request parameter is omitted this API defaults to + * Lists the participant sessions of a participant in a conference record. By default, ordered by + * join time and in descending order. This API supports `fields` as standard parameters like every + * other API. However, when the `fields` request parameter is omitted this API defaults to * `'participantsessions/*, next_page_token'`. * *

                      Sample code: @@ -1120,10 +1104,9 @@ public final ListParticipantSessionsPagedResponse listParticipantSessions( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Lists the participant - * sessions of a participant in a conference record, by default ordered by join time and in - * descending order. This API supports `fields` as standard parameters like every other API. - * However, when the `fields` request parameter is omitted this API defaults to + * Lists the participant sessions of a participant in a conference record. By default, ordered by + * join time and in descending order. This API supports `fields` as standard parameters like every + * other API. However, when the `fields` request parameter is omitted this API defaults to * `'participantsessions/*, next_page_token'`. * *

                      Sample code: @@ -1156,10 +1139,9 @@ public final ListParticipantSessionsPagedResponse listParticipantSessions(String // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Lists the participant - * sessions of a participant in a conference record, by default ordered by join time and in - * descending order. This API supports `fields` as standard parameters like every other API. - * However, when the `fields` request parameter is omitted this API defaults to + * Lists the participant sessions of a participant in a conference record. By default, ordered by + * join time and in descending order. This API supports `fields` as standard parameters like every + * other API. However, when the `fields` request parameter is omitted this API defaults to * `'participantsessions/*, next_page_token'`. * *

                      Sample code: @@ -1196,10 +1178,9 @@ public final ListParticipantSessionsPagedResponse listParticipantSessions( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Lists the participant - * sessions of a participant in a conference record, by default ordered by join time and in - * descending order. This API supports `fields` as standard parameters like every other API. - * However, when the `fields` request parameter is omitted this API defaults to + * Lists the participant sessions of a participant in a conference record. By default, ordered by + * join time and in descending order. This API supports `fields` as standard parameters like every + * other API. However, when the `fields` request parameter is omitted this API defaults to * `'participantsessions/*, next_page_token'`. * *

                      Sample code: @@ -1235,10 +1216,9 @@ public final ListParticipantSessionsPagedResponse listParticipantSessions( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Lists the participant - * sessions of a participant in a conference record, by default ordered by join time and in - * descending order. This API supports `fields` as standard parameters like every other API. - * However, when the `fields` request parameter is omitted this API defaults to + * Lists the participant sessions of a participant in a conference record. By default, ordered by + * join time and in descending order. This API supports `fields` as standard parameters like every + * other API. However, when the `fields` request parameter is omitted this API defaults to * `'participantsessions/*, next_page_token'`. * *

                      Sample code: @@ -1281,8 +1261,7 @@ public final ListParticipantSessionsPagedResponse listParticipantSessions( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Gets a recording by - * recording ID. + * Gets a recording by recording ID. * *

                      Sample code: * @@ -1310,8 +1289,7 @@ public final Recording getRecording(RecordingName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Gets a recording by - * recording ID. + * Gets a recording by recording ID. * *

                      Sample code: * @@ -1338,8 +1316,7 @@ public final Recording getRecording(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Gets a recording by - * recording ID. + * Gets a recording by recording ID. * *

                      Sample code: * @@ -1368,8 +1345,7 @@ public final Recording getRecording(GetRecordingRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Gets a recording by - * recording ID. + * Gets a recording by recording ID. * *

                      Sample code: * @@ -1398,8 +1374,8 @@ public final UnaryCallable getRecordingCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Lists the recording - * resources from the conference record. + * Lists the recording resources from the conference record. By default, ordered by start time and + * in ascending order. * *

                      Sample code: * @@ -1431,8 +1407,8 @@ public final ListRecordingsPagedResponse listRecordings(ConferenceRecordName par // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Lists the recording - * resources from the conference record. + * Lists the recording resources from the conference record. By default, ordered by start time and + * in ascending order. * *

                      Sample code: * @@ -1461,8 +1437,8 @@ public final ListRecordingsPagedResponse listRecordings(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Lists the recording - * resources from the conference record. + * Lists the recording resources from the conference record. By default, ordered by start time and + * in ascending order. * *

                      Sample code: * @@ -1496,8 +1472,8 @@ public final ListRecordingsPagedResponse listRecordings(ListRecordingsRequest re // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Lists the recording - * resources from the conference record. + * Lists the recording resources from the conference record. By default, ordered by start time and + * in ascending order. * *

                      Sample code: * @@ -1531,8 +1507,8 @@ public final ListRecordingsPagedResponse listRecordings(ListRecordingsRequest re // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Lists the recording - * resources from the conference record. + * Lists the recording resources from the conference record. By default, ordered by start time and + * in ascending order. * *

                      Sample code: * @@ -1573,8 +1549,7 @@ public final ListRecordingsPagedResponse listRecordings(ListRecordingsRequest re // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Gets a transcript by - * transcript ID. + * Gets a transcript by transcript ID. * *

                      Sample code: * @@ -1602,8 +1577,7 @@ public final Transcript getTranscript(TranscriptName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Gets a transcript by - * transcript ID. + * Gets a transcript by transcript ID. * *

                      Sample code: * @@ -1630,8 +1604,7 @@ public final Transcript getTranscript(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Gets a transcript by - * transcript ID. + * Gets a transcript by transcript ID. * *

                      Sample code: * @@ -1660,8 +1633,7 @@ public final Transcript getTranscript(GetTranscriptRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Gets a transcript by - * transcript ID. + * Gets a transcript by transcript ID. * *

                      Sample code: * @@ -1690,8 +1662,8 @@ public final UnaryCallable getTranscriptCallab // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Lists the set of - * transcripts from the conference record. + * Lists the set of transcripts from the conference record. By default, ordered by start time and + * in ascending order. * *

                      Sample code: * @@ -1724,8 +1696,8 @@ public final ListTranscriptsPagedResponse listTranscripts(ConferenceRecordName p // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Lists the set of - * transcripts from the conference record. + * Lists the set of transcripts from the conference record. By default, ordered by start time and + * in ascending order. * *

                      Sample code: * @@ -1755,8 +1727,8 @@ public final ListTranscriptsPagedResponse listTranscripts(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Lists the set of - * transcripts from the conference record. + * Lists the set of transcripts from the conference record. By default, ordered by start time and + * in ascending order. * *

                      Sample code: * @@ -1790,8 +1762,8 @@ public final ListTranscriptsPagedResponse listTranscripts(ListTranscriptsRequest // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Lists the set of - * transcripts from the conference record. + * Lists the set of transcripts from the conference record. By default, ordered by start time and + * in ascending order. * *

                      Sample code: * @@ -1825,8 +1797,8 @@ public final ListTranscriptsPagedResponse listTranscripts(ListTranscriptsRequest // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Lists the set of - * transcripts from the conference record. + * Lists the set of transcripts from the conference record. By default, ordered by start time and + * in ascending order. * *

                      Sample code: * @@ -1867,8 +1839,7 @@ public final ListTranscriptsPagedResponse listTranscripts(ListTranscriptsRequest // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Gets a `TranscriptEntry` - * resource by entry ID. + * Gets a `TranscriptEntry` resource by entry ID. * *

                      Note: The transcript entries returned by the Google Meet API might not match the * transcription found in the Google Docs transcript file. This can occur when the Google Docs @@ -1903,8 +1874,7 @@ public final TranscriptEntry getTranscriptEntry(TranscriptEntryName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Gets a `TranscriptEntry` - * resource by entry ID. + * Gets a `TranscriptEntry` resource by entry ID. * *

                      Note: The transcript entries returned by the Google Meet API might not match the * transcription found in the Google Docs transcript file. This can occur when the Google Docs @@ -1937,8 +1907,7 @@ public final TranscriptEntry getTranscriptEntry(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Gets a `TranscriptEntry` - * resource by entry ID. + * Gets a `TranscriptEntry` resource by entry ID. * *

                      Note: The transcript entries returned by the Google Meet API might not match the * transcription found in the Google Docs transcript file. This can occur when the Google Docs @@ -1973,8 +1942,7 @@ public final TranscriptEntry getTranscriptEntry(GetTranscriptEntryRequest reques // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Gets a `TranscriptEntry` - * resource by entry ID. + * Gets a `TranscriptEntry` resource by entry ID. * *

                      Note: The transcript entries returned by the Google Meet API might not match the * transcription found in the Google Docs transcript file. This can occur when the Google Docs @@ -2010,8 +1978,8 @@ public final TranscriptEntry getTranscriptEntry(GetTranscriptEntryRequest reques // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Lists the structured - * transcript entries per transcript. By default, ordered by start time and in ascending order. + * Lists the structured transcript entries per transcript. By default, ordered by start time and + * in ascending order. * *

                      Note: The transcript entries returned by the Google Meet API might not match the * transcription found in the Google Docs transcript file. This can occur when the Google Docs @@ -2049,8 +2017,8 @@ public final ListTranscriptEntriesPagedResponse listTranscriptEntries(Transcript // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Lists the structured - * transcript entries per transcript. By default, ordered by start time and in ascending order. + * Lists the structured transcript entries per transcript. By default, ordered by start time and + * in ascending order. * *

                      Note: The transcript entries returned by the Google Meet API might not match the * transcription found in the Google Docs transcript file. This can occur when the Google Docs @@ -2086,8 +2054,8 @@ public final ListTranscriptEntriesPagedResponse listTranscriptEntries(String par // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Lists the structured - * transcript entries per transcript. By default, ordered by start time and in ascending order. + * Lists the structured transcript entries per transcript. By default, ordered by start time and + * in ascending order. * *

                      Note: The transcript entries returned by the Google Meet API might not match the * transcription found in the Google Docs transcript file. This can occur when the Google Docs @@ -2126,8 +2094,8 @@ public final ListTranscriptEntriesPagedResponse listTranscriptEntries( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Lists the structured - * transcript entries per transcript. By default, ordered by start time and in ascending order. + * Lists the structured transcript entries per transcript. By default, ordered by start time and + * in ascending order. * *

                      Note: The transcript entries returned by the Google Meet API might not match the * transcription found in the Google Docs transcript file. This can occur when the Google Docs @@ -2165,8 +2133,8 @@ public final ListTranscriptEntriesPagedResponse listTranscriptEntries( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Lists the structured - * transcript entries per transcript. By default, ordered by start time and in ascending order. + * Lists the structured transcript entries per transcript. By default, ordered by start time and + * in ascending order. * *

                      Note: The transcript entries returned by the Google Meet API might not match the * transcription found in the Google Docs transcript file. This can occur when the Google Docs diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/SpacesServiceClient.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/SpacesServiceClient.java index d147965b3e45..5a4cce9f6188 100644 --- a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/SpacesServiceClient.java +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/SpacesServiceClient.java @@ -16,14 +16,22 @@ package com.google.apps.meet.v2beta; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.UnaryCallable; import com.google.apps.meet.v2beta.stub.SpacesServiceStub; import com.google.apps.meet.v2beta.stub.SpacesServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import java.io.IOException; +import java.util.List; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -58,7 +66,7 @@ * * *

                      CreateSpace - *

                      [Developer Preview](https://developers.google.com/workspace/preview). Creates a space. + *

                      Creates a space. * *

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

                      *
                        @@ -76,7 +84,8 @@ * * *

                        GetSpace - *

                        [Developer Preview](https://developers.google.com/workspace/preview). Gets a space by `space_id` or `meeting_code`. + *

                        Gets details about a meeting space. + *

                        For an example, see [Get a meeting space](https://developers.google.com/meet/api/guides/meeting-spaces#get-meeting-space). * *

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

                        *
                          @@ -95,7 +104,8 @@ * * *

                          UpdateSpace - *

                          [Developer Preview](https://developers.google.com/workspace/preview). Updates a space. + *

                          Updates details about a meeting space. + *

                          For an example, see [Update a meeting space](https://developers.google.com/meet/api/guides/meeting-spaces#update-meeting-space). * *

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

                          *
                            @@ -113,7 +123,8 @@ * * *

                            EndActiveConference - *

                            [Developer Preview](https://developers.google.com/workspace/preview). Ends an active conference (if there is one). + *

                            Ends an active conference (if there's one). + *

                            For an example, see [End active conference](https://developers.google.com/meet/api/guides/meeting-spaces#end-active-conference). * *

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

                            *
                              @@ -130,6 +141,86 @@ *
                            * * + * + *

                            CreateMember + *

                            [Developer Preview](https://developers.google.com/workspace/preview): Create a member. + *

                            This API supports the `fields` parameter in [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters). When the `fields` parameter is omitted, this API response will default to "name,email,role,user". + * + *

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

                            + *
                              + *
                            • createMember(CreateMemberRequest request) + *

                            + *

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

                            + *
                              + *
                            • createMember(SpaceName parent, Member member) + *

                            • createMember(String parent, Member member) + *

                            + *

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

                            + *
                              + *
                            • createMemberCallable() + *

                            + * + * + * + *

                            GetMember + *

                            [Developer Preview](https://developers.google.com/workspace/preview): Get a member. + *

                            This API supports the `fields` parameter in [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters). When the `fields` parameter is omitted, this API response will default to "name,email,role,user". + * + *

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

                            + *
                              + *
                            • getMember(GetMemberRequest request) + *

                            + *

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

                            + *
                              + *
                            • getMember(MemberName name) + *

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

                            + *
                              + *
                            • getMemberCallable() + *

                            + * + * + * + *

                            ListMembers + *

                            [Developer Preview](https://developers.google.com/workspace/preview): List members. + *

                            This API supports the `fields` parameter in [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters). When the `fields` parameter is omitted this API response will default to "name,email,role,user". + * + *

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

                            + *
                              + *
                            • listMembers(ListMembersRequest request) + *

                            + *

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

                            + *
                              + *
                            • listMembers(SpaceName parent) + *

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

                            + *
                              + *
                            • listMembersPagedCallable() + *

                            • listMembersCallable() + *

                            + * + * + * + *

                            DeleteMember + *

                            [Developer Preview](https://developers.google.com/workspace/preview): Delete the member who was previously assigned roles in the space. + * + *

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

                            + *
                              + *
                            • deleteMember(DeleteMemberRequest request) + *

                            + *

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

                            + *
                              + *
                            • deleteMember(MemberName name) + *

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

                            + *
                              + *
                            • deleteMemberCallable() + *

                            + * + * * * *

                            See the individual methods for example code. @@ -238,7 +329,7 @@ public SpacesServiceStub getStub() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Creates a space. + * Creates a space. * *

                            Sample code: * @@ -265,7 +356,7 @@ public final Space createSpace(Space space) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Creates a space. + * Creates a space. * *

                            Sample code: * @@ -291,7 +382,7 @@ public final Space createSpace(CreateSpaceRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Creates a space. + * Creates a space. * *

                            Sample code: * @@ -316,8 +407,10 @@ public final UnaryCallable createSpaceCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Gets a space by - * `space_id` or `meeting_code`. + * Gets details about a meeting space. + * + *

                            For an example, see [Get a meeting + * space](https://developers.google.com/meet/api/guides/meeting-spaces#get-meeting-space). * *

                            Sample code: * @@ -334,6 +427,17 @@ public final UnaryCallable createSpaceCallable() { * }

* * @param name Required. Resource name of the space. + *

Format: `spaces/{space}` or `spaces/{meetingCode}`. + *

`{space}` is the resource identifier for the space. It's a unique, server-generated ID + * and is case sensitive. For example, `jQCFfuBOdN5z`. + *

`{meetingCode}` is an alias for the space. It's a typeable, unique character string and + * is non-case sensitive. For example, `abc-mnop-xyz`. The maximum length is 128 characters. + *

A `meetingCode` shouldn't be stored long term as it can become dissociated from a + * meeting space and can be reused for different meeting spaces in the future. Generally, a + * `meetingCode` expires 365 days after last use. For more information, see [Learn about + * meeting codes in Google Meet](https://support.google.com/meet/answer/10710509). + *

For more information, see [How Meet identifies a meeting + * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Space getSpace(SpaceName name) { @@ -344,8 +448,10 @@ public final Space getSpace(SpaceName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Gets a space by - * `space_id` or `meeting_code`. + * Gets details about a meeting space. + * + *

For an example, see [Get a meeting + * space](https://developers.google.com/meet/api/guides/meeting-spaces#get-meeting-space). * *

Sample code: * @@ -362,6 +468,17 @@ public final Space getSpace(SpaceName name) { * }

* * @param name Required. Resource name of the space. + *

Format: `spaces/{space}` or `spaces/{meetingCode}`. + *

`{space}` is the resource identifier for the space. It's a unique, server-generated ID + * and is case sensitive. For example, `jQCFfuBOdN5z`. + *

`{meetingCode}` is an alias for the space. It's a typeable, unique character string and + * is non-case sensitive. For example, `abc-mnop-xyz`. The maximum length is 128 characters. + *

A `meetingCode` shouldn't be stored long term as it can become dissociated from a + * meeting space and can be reused for different meeting spaces in the future. Generally, a + * `meetingCode` expires 365 days after last use. For more information, see [Learn about + * meeting codes in Google Meet](https://support.google.com/meet/answer/10710509). + *

For more information, see [How Meet identifies a meeting + * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Space getSpace(String name) { @@ -371,8 +488,10 @@ public final Space getSpace(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Gets a space by - * `space_id` or `meeting_code`. + * Gets details about a meeting space. + * + *

For an example, see [Get a meeting + * space](https://developers.google.com/meet/api/guides/meeting-spaces#get-meeting-space). * *

Sample code: * @@ -398,8 +517,10 @@ public final Space getSpace(GetSpaceRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Gets a space by - * `space_id` or `meeting_code`. + * Gets details about a meeting space. + * + *

For an example, see [Get a meeting + * space](https://developers.google.com/meet/api/guides/meeting-spaces#get-meeting-space). * *

Sample code: * @@ -424,7 +545,10 @@ public final UnaryCallable getSpaceCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Updates a space. + * Updates details about a meeting space. + * + *

For an example, see [Update a meeting + * space](https://developers.google.com/meet/api/guides/meeting-spaces#update-meeting-space). * *

Sample code: * @@ -443,8 +567,9 @@ public final UnaryCallable getSpaceCallable() { * * @param space Required. Space to be updated. * @param updateMask Optional. Field mask used to specify the fields to be updated in the space. - * If update_mask isn't provided, it defaults to '*' and updates all fields provided in - * the request, including deleting fields not set in the request. + * If update_mask isn't provided(not set, set with empty paths, or only has "" as paths), it + * defaults to update all fields provided with values in the request. Using "*" as + * update_mask will update all fields, including deleting fields not set in the request. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Space updateSpace(Space space, FieldMask updateMask) { @@ -455,7 +580,10 @@ public final Space updateSpace(Space space, FieldMask updateMask) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Updates a space. + * Updates details about a meeting space. + * + *

For an example, see [Update a meeting + * space](https://developers.google.com/meet/api/guides/meeting-spaces#update-meeting-space). * *

Sample code: * @@ -484,7 +612,10 @@ public final Space updateSpace(UpdateSpaceRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Updates a space. + * Updates details about a meeting space. + * + *

For an example, see [Update a meeting + * space](https://developers.google.com/meet/api/guides/meeting-spaces#update-meeting-space). * *

Sample code: * @@ -512,8 +643,10 @@ public final UnaryCallable updateSpaceCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Ends an active conference - * (if there is one). + * Ends an active conference (if there's one). + * + *

For an example, see [End active + * conference](https://developers.google.com/meet/api/guides/meeting-spaces#end-active-conference). * *

Sample code: * @@ -530,6 +663,11 @@ public final UnaryCallable updateSpaceCallable() { * }

* * @param name Required. Resource name of the space. + *

Format: `spaces/{space}`. + *

`{space}` is the resource identifier for the space. It's a unique, server-generated ID + * and is case sensitive. For example, `jQCFfuBOdN5z`. + *

For more information, see [How Meet identifies a meeting + * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void endActiveConference(SpaceName name) { @@ -542,8 +680,10 @@ public final void endActiveConference(SpaceName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Ends an active conference - * (if there is one). + * Ends an active conference (if there's one). + * + *

For an example, see [End active + * conference](https://developers.google.com/meet/api/guides/meeting-spaces#end-active-conference). * *

Sample code: * @@ -560,6 +700,11 @@ public final void endActiveConference(SpaceName name) { * }

* * @param name Required. Resource name of the space. + *

Format: `spaces/{space}`. + *

`{space}` is the resource identifier for the space. It's a unique, server-generated ID + * and is case sensitive. For example, `jQCFfuBOdN5z`. + *

For more information, see [How Meet identifies a meeting + * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void endActiveConference(String name) { @@ -570,8 +715,10 @@ public final void endActiveConference(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Ends an active conference - * (if there is one). + * Ends an active conference (if there's one). + * + *

For an example, see [End active + * conference](https://developers.google.com/meet/api/guides/meeting-spaces#end-active-conference). * *

Sample code: * @@ -599,8 +746,10 @@ public final void endActiveConference(EndActiveConferenceRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * [Developer Preview](https://developers.google.com/workspace/preview). Ends an active conference - * (if there is one). + * Ends an active conference (if there's one). + * + *

For an example, see [End active + * conference](https://developers.google.com/meet/api/guides/meeting-spaces#end-active-conference). * *

Sample code: * @@ -626,6 +775,557 @@ public final UnaryCallable endActiveConferenc return stub.endActiveConferenceCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview): Create a member. + * + *

This API supports the `fields` parameter in + * [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters). When the + * `fields` parameter is omitted, this API response will default to "name,email,role,user". + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+   *   SpaceName parent = SpaceName.of("[SPACE]");
+   *   Member member = Member.newBuilder().build();
+   *   Member response = spacesServiceClient.createMember(parent, member);
+   * }
+   * }
+ * + * @param parent Required. Format: spaces/{space} + * @param member Required. The member to be created. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Member createMember(SpaceName parent, Member member) { + CreateMemberRequest request = + CreateMemberRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setMember(member) + .build(); + return createMember(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview): Create a member. + * + *

This API supports the `fields` parameter in + * [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters). When the + * `fields` parameter is omitted, this API response will default to "name,email,role,user". + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+   *   String parent = SpaceName.of("[SPACE]").toString();
+   *   Member member = Member.newBuilder().build();
+   *   Member response = spacesServiceClient.createMember(parent, member);
+   * }
+   * }
+ * + * @param parent Required. Format: spaces/{space} + * @param member Required. The member to be created. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Member createMember(String parent, Member member) { + CreateMemberRequest request = + CreateMemberRequest.newBuilder().setParent(parent).setMember(member).build(); + return createMember(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview): Create a member. + * + *

This API supports the `fields` parameter in + * [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters). When the + * `fields` parameter is omitted, this API response will default to "name,email,role,user". + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+   *   CreateMemberRequest request =
+   *       CreateMemberRequest.newBuilder()
+   *           .setParent(SpaceName.of("[SPACE]").toString())
+   *           .setMember(Member.newBuilder().build())
+   *           .build();
+   *   Member response = spacesServiceClient.createMember(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 Member createMember(CreateMemberRequest request) { + return createMemberCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview): Create a member. + * + *

This API supports the `fields` parameter in + * [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters). When the + * `fields` parameter is omitted, this API response will default to "name,email,role,user". + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+   *   CreateMemberRequest request =
+   *       CreateMemberRequest.newBuilder()
+   *           .setParent(SpaceName.of("[SPACE]").toString())
+   *           .setMember(Member.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = spacesServiceClient.createMemberCallable().futureCall(request);
+   *   // Do something.
+   *   Member response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createMemberCallable() { + return stub.createMemberCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview): Get a member. + * + *

This API supports the `fields` parameter in + * [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters). When the + * `fields` parameter is omitted, this API response will default to "name,email,role,user". + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+   *   MemberName name = MemberName.of("[SPACE]", "[MEMBER]");
+   *   Member response = spacesServiceClient.getMember(name);
+   * }
+   * }
+ * + * @param name Required. Format: “spaces/{space}/members/{member}” + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Member getMember(MemberName name) { + GetMemberRequest request = + GetMemberRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getMember(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview): Get a member. + * + *

This API supports the `fields` parameter in + * [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters). When the + * `fields` parameter is omitted, this API response will default to "name,email,role,user". + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+   *   String name = MemberName.of("[SPACE]", "[MEMBER]").toString();
+   *   Member response = spacesServiceClient.getMember(name);
+   * }
+   * }
+ * + * @param name Required. Format: “spaces/{space}/members/{member}” + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Member getMember(String name) { + GetMemberRequest request = GetMemberRequest.newBuilder().setName(name).build(); + return getMember(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview): Get a member. + * + *

This API supports the `fields` parameter in + * [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters). When the + * `fields` parameter is omitted, this API response will default to "name,email,role,user". + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+   *   GetMemberRequest request =
+   *       GetMemberRequest.newBuilder()
+   *           .setName(MemberName.of("[SPACE]", "[MEMBER]").toString())
+   *           .build();
+   *   Member response = spacesServiceClient.getMember(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 Member getMember(GetMemberRequest request) { + return getMemberCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview): Get a member. + * + *

This API supports the `fields` parameter in + * [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters). When the + * `fields` parameter is omitted, this API response will default to "name,email,role,user". + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+   *   GetMemberRequest request =
+   *       GetMemberRequest.newBuilder()
+   *           .setName(MemberName.of("[SPACE]", "[MEMBER]").toString())
+   *           .build();
+   *   ApiFuture future = spacesServiceClient.getMemberCallable().futureCall(request);
+   *   // Do something.
+   *   Member response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getMemberCallable() { + return stub.getMemberCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview): List members. + * + *

This API supports the `fields` parameter in + * [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters). When the + * `fields` parameter is omitted this API response will default to "name,email,role,user". + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+   *   SpaceName parent = SpaceName.of("[SPACE]");
+   *   for (Member element : spacesServiceClient.listMembers(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Format: spaces/{space} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMembersPagedResponse listMembers(SpaceName parent) { + ListMembersRequest request = + ListMembersRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listMembers(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview): List members. + * + *

This API supports the `fields` parameter in + * [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters). When the + * `fields` parameter is omitted this API response will default to "name,email,role,user". + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+   *   String parent = SpaceName.of("[SPACE]").toString();
+   *   for (Member element : spacesServiceClient.listMembers(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Format: spaces/{space} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMembersPagedResponse listMembers(String parent) { + ListMembersRequest request = ListMembersRequest.newBuilder().setParent(parent).build(); + return listMembers(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview): List members. + * + *

This API supports the `fields` parameter in + * [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters). When the + * `fields` parameter is omitted this API response will default to "name,email,role,user". + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+   *   ListMembersRequest request =
+   *       ListMembersRequest.newBuilder()
+   *           .setParent(SpaceName.of("[SPACE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Member element : spacesServiceClient.listMembers(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 ListMembersPagedResponse listMembers(ListMembersRequest request) { + return listMembersPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview): List members. + * + *

This API supports the `fields` parameter in + * [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters). When the + * `fields` parameter is omitted this API response will default to "name,email,role,user". + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+   *   ListMembersRequest request =
+   *       ListMembersRequest.newBuilder()
+   *           .setParent(SpaceName.of("[SPACE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future = spacesServiceClient.listMembersPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Member element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listMembersPagedCallable() { + return stub.listMembersPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview): List members. + * + *

This API supports the `fields` parameter in + * [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters). When the + * `fields` parameter is omitted this API response will default to "name,email,role,user". + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+   *   ListMembersRequest request =
+   *       ListMembersRequest.newBuilder()
+   *           .setParent(SpaceName.of("[SPACE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListMembersResponse response = spacesServiceClient.listMembersCallable().call(request);
+   *     for (Member element : response.getMembersList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listMembersCallable() { + return stub.listMembersCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview): Delete the member who was + * previously assigned roles in the space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+   *   MemberName name = MemberName.of("[SPACE]", "[MEMBER]");
+   *   spacesServiceClient.deleteMember(name);
+   * }
+   * }
+ * + * @param name Required. Format: “spaces/{space}/members/{member}” + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteMember(MemberName name) { + DeleteMemberRequest request = + DeleteMemberRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteMember(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview): Delete the member who was + * previously assigned roles in the space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+   *   String name = MemberName.of("[SPACE]", "[MEMBER]").toString();
+   *   spacesServiceClient.deleteMember(name);
+   * }
+   * }
+ * + * @param name Required. Format: “spaces/{space}/members/{member}” + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteMember(String name) { + DeleteMemberRequest request = DeleteMemberRequest.newBuilder().setName(name).build(); + deleteMember(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview): Delete the member who was + * previously assigned roles in the space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+   *   DeleteMemberRequest request =
+   *       DeleteMemberRequest.newBuilder()
+   *           .setName(MemberName.of("[SPACE]", "[MEMBER]").toString())
+   *           .build();
+   *   spacesServiceClient.deleteMember(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 void deleteMember(DeleteMemberRequest request) { + deleteMemberCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * [Developer Preview](https://developers.google.com/workspace/preview): Delete the member who was + * previously assigned roles in the space. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) {
+   *   DeleteMemberRequest request =
+   *       DeleteMemberRequest.newBuilder()
+   *           .setName(MemberName.of("[SPACE]", "[MEMBER]").toString())
+   *           .build();
+   *   ApiFuture future = spacesServiceClient.deleteMemberCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteMemberCallable() { + return stub.deleteMemberCallable(); + } + @Override public final void close() { stub.close(); @@ -655,4 +1355,77 @@ public void shutdownNow() { public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { return stub.awaitTermination(duration, unit); } + + public static class ListMembersPagedResponse + extends AbstractPagedListResponse< + ListMembersRequest, + ListMembersResponse, + Member, + ListMembersPage, + ListMembersFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListMembersPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListMembersPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListMembersPagedResponse(ListMembersPage page) { + super(page, ListMembersFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListMembersPage + extends AbstractPage { + + private ListMembersPage( + PageContext context, + ListMembersResponse response) { + super(context, response); + } + + private static ListMembersPage createEmptyPage() { + return new ListMembersPage(null, null); + } + + @Override + protected ListMembersPage createPage( + PageContext context, + ListMembersResponse response) { + return new ListMembersPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListMembersFixedSizeCollection + extends AbstractFixedSizeCollection< + ListMembersRequest, + ListMembersResponse, + Member, + ListMembersPage, + ListMembersFixedSizeCollection> { + + private ListMembersFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListMembersFixedSizeCollection createEmptyCollection() { + return new ListMembersFixedSizeCollection(null, 0); + } + + @Override + protected ListMembersFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListMembersFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/SpacesServiceSettings.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/SpacesServiceSettings.java index 8ad39b524cc9..7ae9067fa4dc 100644 --- a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/SpacesServiceSettings.java +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/SpacesServiceSettings.java @@ -16,6 +16,8 @@ package com.google.apps.meet.v2beta; +import static com.google.apps.meet.v2beta.SpacesServiceClient.ListMembersPagedResponse; + import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; @@ -25,6 +27,7 @@ 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.apps.meet.v2beta.stub.SpacesServiceStubSettings; @@ -106,6 +109,27 @@ public UnaryCallSettings endActiveConferenceS return ((SpacesServiceStubSettings) getStubSettings()).endActiveConferenceSettings(); } + /** Returns the object with the settings used for calls to createMember. */ + public UnaryCallSettings createMemberSettings() { + return ((SpacesServiceStubSettings) getStubSettings()).createMemberSettings(); + } + + /** Returns the object with the settings used for calls to getMember. */ + public UnaryCallSettings getMemberSettings() { + return ((SpacesServiceStubSettings) getStubSettings()).getMemberSettings(); + } + + /** Returns the object with the settings used for calls to listMembers. */ + public PagedCallSettings + listMembersSettings() { + return ((SpacesServiceStubSettings) getStubSettings()).listMembersSettings(); + } + + /** Returns the object with the settings used for calls to deleteMember. */ + public UnaryCallSettings deleteMemberSettings() { + return ((SpacesServiceStubSettings) getStubSettings()).deleteMemberSettings(); + } + public static final SpacesServiceSettings create(SpacesServiceStubSettings stub) throws IOException { return new SpacesServiceSettings.Builder(stub.toBuilder()).build(); @@ -239,6 +263,28 @@ public UnaryCallSettings.Builder updateSpaceSettings( return getStubSettingsBuilder().endActiveConferenceSettings(); } + /** Returns the builder for the settings used for calls to createMember. */ + public UnaryCallSettings.Builder createMemberSettings() { + return getStubSettingsBuilder().createMemberSettings(); + } + + /** Returns the builder for the settings used for calls to getMember. */ + public UnaryCallSettings.Builder getMemberSettings() { + return getStubSettingsBuilder().getMemberSettings(); + } + + /** Returns the builder for the settings used for calls to listMembers. */ + public PagedCallSettings.Builder< + ListMembersRequest, ListMembersResponse, ListMembersPagedResponse> + listMembersSettings() { + return getStubSettingsBuilder().listMembersSettings(); + } + + /** Returns the builder for the settings used for calls to deleteMember. */ + public UnaryCallSettings.Builder deleteMemberSettings() { + return getStubSettingsBuilder().deleteMemberSettings(); + } + @Override public SpacesServiceSettings build() throws IOException { return new SpacesServiceSettings(this); diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/gapic_metadata.json b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/gapic_metadata.json index c5e46d2327e3..430a17e0d566 100644 --- a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/gapic_metadata.json +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/gapic_metadata.json @@ -10,15 +10,27 @@ "grpc": { "libraryClient": "SpacesServiceClient", "rpcs": { + "CreateMember": { + "methods": ["createMember", "createMember", "createMember", "createMemberCallable"] + }, "CreateSpace": { "methods": ["createSpace", "createSpace", "createSpaceCallable"] }, + "DeleteMember": { + "methods": ["deleteMember", "deleteMember", "deleteMember", "deleteMemberCallable"] + }, "EndActiveConference": { "methods": ["endActiveConference", "endActiveConference", "endActiveConference", "endActiveConferenceCallable"] }, + "GetMember": { + "methods": ["getMember", "getMember", "getMember", "getMemberCallable"] + }, "GetSpace": { "methods": ["getSpace", "getSpace", "getSpace", "getSpaceCallable"] }, + "ListMembers": { + "methods": ["listMembers", "listMembers", "listMembers", "listMembersPagedCallable", "listMembersCallable"] + }, "UpdateSpace": { "methods": ["updateSpace", "updateSpace", "updateSpaceCallable"] } diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/ConferenceRecordsServiceStubSettings.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/ConferenceRecordsServiceStubSettings.java index 5f7a1b478c9b..49a7e1a9a7d9 100644 --- a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/ConferenceRecordsServiceStubSettings.java +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/ConferenceRecordsServiceStubSettings.java @@ -139,7 +139,10 @@ public class ConferenceRecordsServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/meetings.space.created") + .add("https://www.googleapis.com/auth/meetings.space.readonly") + .build(); private final UnaryCallSettings getConferenceRecordSettings; diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/GrpcSpacesServiceStub.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/GrpcSpacesServiceStub.java index 82c8323ae37a..cf49ffde3737 100644 --- a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/GrpcSpacesServiceStub.java +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/GrpcSpacesServiceStub.java @@ -16,6 +16,8 @@ package com.google.apps.meet.v2beta.stub; +import static com.google.apps.meet.v2beta.SpacesServiceClient.ListMembersPagedResponse; + import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -24,9 +26,15 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.UnaryCallable; +import com.google.apps.meet.v2beta.CreateMemberRequest; import com.google.apps.meet.v2beta.CreateSpaceRequest; +import com.google.apps.meet.v2beta.DeleteMemberRequest; import com.google.apps.meet.v2beta.EndActiveConferenceRequest; +import com.google.apps.meet.v2beta.GetMemberRequest; import com.google.apps.meet.v2beta.GetSpaceRequest; +import com.google.apps.meet.v2beta.ListMembersRequest; +import com.google.apps.meet.v2beta.ListMembersResponse; +import com.google.apps.meet.v2beta.Member; import com.google.apps.meet.v2beta.Space; import com.google.apps.meet.v2beta.UpdateSpaceRequest; import com.google.longrunning.stub.GrpcOperationsStub; @@ -80,10 +88,50 @@ public class GrpcSpacesServiceStub extends SpacesServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); + private static final MethodDescriptor createMemberMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.apps.meet.v2beta.SpacesService/CreateMember") + .setRequestMarshaller(ProtoUtils.marshaller(CreateMemberRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Member.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getMemberMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.apps.meet.v2beta.SpacesService/GetMember") + .setRequestMarshaller(ProtoUtils.marshaller(GetMemberRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Member.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listMembersMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.apps.meet.v2beta.SpacesService/ListMembers") + .setRequestMarshaller(ProtoUtils.marshaller(ListMembersRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListMembersResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor deleteMemberMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.apps.meet.v2beta.SpacesService/DeleteMember") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteMemberRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + private final UnaryCallable createSpaceCallable; private final UnaryCallable getSpaceCallable; private final UnaryCallable updateSpaceCallable; private final UnaryCallable endActiveConferenceCallable; + private final UnaryCallable createMemberCallable; + private final UnaryCallable getMemberCallable; + private final UnaryCallable listMembersCallable; + private final UnaryCallable + listMembersPagedCallable; + private final UnaryCallable deleteMemberCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -161,6 +209,46 @@ protected GrpcSpacesServiceStub( return builder.build(); }) .build(); + GrpcCallSettings createMemberTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createMemberMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getMemberTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getMemberMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listMembersTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listMembersMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteMemberTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteMemberMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); this.createSpaceCallable = callableFactory.createUnaryCallable( @@ -176,6 +264,21 @@ protected GrpcSpacesServiceStub( endActiveConferenceTransportSettings, settings.endActiveConferenceSettings(), clientContext); + this.createMemberCallable = + callableFactory.createUnaryCallable( + createMemberTransportSettings, settings.createMemberSettings(), clientContext); + this.getMemberCallable = + callableFactory.createUnaryCallable( + getMemberTransportSettings, settings.getMemberSettings(), clientContext); + this.listMembersCallable = + callableFactory.createUnaryCallable( + listMembersTransportSettings, settings.listMembersSettings(), clientContext); + this.listMembersPagedCallable = + callableFactory.createPagedCallable( + listMembersTransportSettings, settings.listMembersSettings(), clientContext); + this.deleteMemberCallable = + callableFactory.createUnaryCallable( + deleteMemberTransportSettings, settings.deleteMemberSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -205,6 +308,31 @@ public UnaryCallable endActiveConferenceCalla return endActiveConferenceCallable; } + @Override + public UnaryCallable createMemberCallable() { + return createMemberCallable; + } + + @Override + public UnaryCallable getMemberCallable() { + return getMemberCallable; + } + + @Override + public UnaryCallable listMembersCallable() { + return listMembersCallable; + } + + @Override + public UnaryCallable listMembersPagedCallable() { + return listMembersPagedCallable; + } + + @Override + public UnaryCallable deleteMemberCallable() { + return deleteMemberCallable; + } + @Override public final void close() { try { diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/HttpJsonSpacesServiceStub.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/HttpJsonSpacesServiceStub.java index c4d125026f1e..7f209e672733 100644 --- a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/HttpJsonSpacesServiceStub.java +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/HttpJsonSpacesServiceStub.java @@ -16,6 +16,8 @@ package com.google.apps.meet.v2beta.stub; +import static com.google.apps.meet.v2beta.SpacesServiceClient.ListMembersPagedResponse; + import com.google.api.core.BetaApi; import com.google.api.core.InternalApi; import com.google.api.gax.core.BackgroundResource; @@ -29,9 +31,15 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.UnaryCallable; +import com.google.apps.meet.v2beta.CreateMemberRequest; import com.google.apps.meet.v2beta.CreateSpaceRequest; +import com.google.apps.meet.v2beta.DeleteMemberRequest; import com.google.apps.meet.v2beta.EndActiveConferenceRequest; +import com.google.apps.meet.v2beta.GetMemberRequest; import com.google.apps.meet.v2beta.GetSpaceRequest; +import com.google.apps.meet.v2beta.ListMembersRequest; +import com.google.apps.meet.v2beta.ListMembersResponse; +import com.google.apps.meet.v2beta.Member; import com.google.apps.meet.v2beta.Space; import com.google.apps.meet.v2beta.UpdateSpaceRequest; import com.google.protobuf.Empty; @@ -195,10 +203,156 @@ public class HttpJsonSpacesServiceStub extends SpacesServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + createMemberMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.apps.meet.v2beta.SpacesService/CreateMember") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta/{parent=spaces/*}/members", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + 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("member", request.getMember(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Member.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getMemberMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.apps.meet.v2beta.SpacesService/GetMember") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta/{name=spaces/*/members/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Member.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listMembersMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.apps.meet.v2beta.SpacesService/ListMembers") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta/{parent=spaces/*}/members", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListMembersResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteMemberMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.apps.meet.v2beta.SpacesService/DeleteMember") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta/{name=spaces/*/members/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private final UnaryCallable createSpaceCallable; private final UnaryCallable getSpaceCallable; private final UnaryCallable updateSpaceCallable; private final UnaryCallable endActiveConferenceCallable; + private final UnaryCallable createMemberCallable; + private final UnaryCallable getMemberCallable; + private final UnaryCallable listMembersCallable; + private final UnaryCallable + listMembersPagedCallable; + private final UnaryCallable deleteMemberCallable; private final BackgroundResource backgroundResources; private final HttpJsonStubCallableFactory callableFactory; @@ -280,6 +434,50 @@ protected HttpJsonSpacesServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings createMemberTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createMemberMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getMemberTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getMemberMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings listMembersTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listMembersMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteMemberTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteMemberMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); this.createSpaceCallable = callableFactory.createUnaryCallable( @@ -295,6 +493,21 @@ protected HttpJsonSpacesServiceStub( endActiveConferenceTransportSettings, settings.endActiveConferenceSettings(), clientContext); + this.createMemberCallable = + callableFactory.createUnaryCallable( + createMemberTransportSettings, settings.createMemberSettings(), clientContext); + this.getMemberCallable = + callableFactory.createUnaryCallable( + getMemberTransportSettings, settings.getMemberSettings(), clientContext); + this.listMembersCallable = + callableFactory.createUnaryCallable( + listMembersTransportSettings, settings.listMembersSettings(), clientContext); + this.listMembersPagedCallable = + callableFactory.createPagedCallable( + listMembersTransportSettings, settings.listMembersSettings(), clientContext); + this.deleteMemberCallable = + callableFactory.createUnaryCallable( + deleteMemberTransportSettings, settings.deleteMemberSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -307,6 +520,10 @@ public static List getMethodDescriptors() { methodDescriptors.add(getSpaceMethodDescriptor); methodDescriptors.add(updateSpaceMethodDescriptor); methodDescriptors.add(endActiveConferenceMethodDescriptor); + methodDescriptors.add(createMemberMethodDescriptor); + methodDescriptors.add(getMemberMethodDescriptor); + methodDescriptors.add(listMembersMethodDescriptor); + methodDescriptors.add(deleteMemberMethodDescriptor); return methodDescriptors; } @@ -330,6 +547,31 @@ public UnaryCallable endActiveConferenceCalla return endActiveConferenceCallable; } + @Override + public UnaryCallable createMemberCallable() { + return createMemberCallable; + } + + @Override + public UnaryCallable getMemberCallable() { + return getMemberCallable; + } + + @Override + public UnaryCallable listMembersCallable() { + return listMembersCallable; + } + + @Override + public UnaryCallable listMembersPagedCallable() { + return listMembersPagedCallable; + } + + @Override + public UnaryCallable deleteMemberCallable() { + return deleteMemberCallable; + } + @Override public final void close() { try { diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/SpacesServiceStub.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/SpacesServiceStub.java index 9f0b5842278f..447b3cbd6ca1 100644 --- a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/SpacesServiceStub.java +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/SpacesServiceStub.java @@ -16,12 +16,20 @@ package com.google.apps.meet.v2beta.stub; +import static com.google.apps.meet.v2beta.SpacesServiceClient.ListMembersPagedResponse; + import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.UnaryCallable; +import com.google.apps.meet.v2beta.CreateMemberRequest; import com.google.apps.meet.v2beta.CreateSpaceRequest; +import com.google.apps.meet.v2beta.DeleteMemberRequest; import com.google.apps.meet.v2beta.EndActiveConferenceRequest; +import com.google.apps.meet.v2beta.GetMemberRequest; import com.google.apps.meet.v2beta.GetSpaceRequest; +import com.google.apps.meet.v2beta.ListMembersRequest; +import com.google.apps.meet.v2beta.ListMembersResponse; +import com.google.apps.meet.v2beta.Member; import com.google.apps.meet.v2beta.Space; import com.google.apps.meet.v2beta.UpdateSpaceRequest; import com.google.protobuf.Empty; @@ -53,6 +61,26 @@ public UnaryCallable endActiveConferenceCalla throw new UnsupportedOperationException("Not implemented: endActiveConferenceCallable()"); } + public UnaryCallable createMemberCallable() { + throw new UnsupportedOperationException("Not implemented: createMemberCallable()"); + } + + public UnaryCallable getMemberCallable() { + throw new UnsupportedOperationException("Not implemented: getMemberCallable()"); + } + + public UnaryCallable listMembersPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listMembersPagedCallable()"); + } + + public UnaryCallable listMembersCallable() { + throw new UnsupportedOperationException("Not implemented: listMembersCallable()"); + } + + public UnaryCallable deleteMemberCallable() { + throw new UnsupportedOperationException("Not implemented: deleteMemberCallable()"); + } + @Override public abstract void close(); } diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/SpacesServiceStubSettings.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/SpacesServiceStubSettings.java index 2c4944119ee1..ee5906e9c65a 100644 --- a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/SpacesServiceStubSettings.java +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/SpacesServiceStubSettings.java @@ -16,7 +16,10 @@ package com.google.apps.meet.v2beta.stub; +import static com.google.apps.meet.v2beta.SpacesServiceClient.ListMembersPagedResponse; + import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; import com.google.api.core.BetaApi; import com.google.api.core.ObsoleteApi; import com.google.api.gax.core.GaxProperties; @@ -29,15 +32,27 @@ 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.apps.meet.v2beta.CreateMemberRequest; import com.google.apps.meet.v2beta.CreateSpaceRequest; +import com.google.apps.meet.v2beta.DeleteMemberRequest; import com.google.apps.meet.v2beta.EndActiveConferenceRequest; +import com.google.apps.meet.v2beta.GetMemberRequest; import com.google.apps.meet.v2beta.GetSpaceRequest; +import com.google.apps.meet.v2beta.ListMembersRequest; +import com.google.apps.meet.v2beta.ListMembersResponse; +import com.google.apps.meet.v2beta.Member; import com.google.apps.meet.v2beta.Space; import com.google.apps.meet.v2beta.UpdateSpaceRequest; import com.google.common.collect.ImmutableList; @@ -105,12 +120,72 @@ public class SpacesServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/meetings.space.created") + .add("https://www.googleapis.com/auth/meetings.space.readonly") + .add("https://www.googleapis.com/auth/meetings.space.settings") + .build(); private final UnaryCallSettings createSpaceSettings; private final UnaryCallSettings getSpaceSettings; private final UnaryCallSettings updateSpaceSettings; private final UnaryCallSettings endActiveConferenceSettings; + private final UnaryCallSettings createMemberSettings; + private final UnaryCallSettings getMemberSettings; + private final PagedCallSettings + listMembersSettings; + private final UnaryCallSettings deleteMemberSettings; + + private static final PagedListDescriptor + LIST_MEMBERS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListMembersRequest injectToken(ListMembersRequest payload, String token) { + return ListMembersRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListMembersRequest injectPageSize(ListMembersRequest payload, int pageSize) { + return ListMembersRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListMembersRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListMembersResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListMembersResponse payload) { + return payload.getMembersList(); + } + }; + + private static final PagedListResponseFactory< + ListMembersRequest, ListMembersResponse, ListMembersPagedResponse> + LIST_MEMBERS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListMembersRequest, ListMembersResponse, ListMembersPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListMembersRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_MEMBERS_PAGE_STR_DESC, request, context); + return ListMembersPagedResponse.createAsync(pageContext, futureResponse); + } + }; /** Returns the object with the settings used for calls to createSpace. */ public UnaryCallSettings createSpaceSettings() { @@ -132,6 +207,27 @@ public UnaryCallSettings endActiveConferenceS return endActiveConferenceSettings; } + /** Returns the object with the settings used for calls to createMember. */ + public UnaryCallSettings createMemberSettings() { + return createMemberSettings; + } + + /** Returns the object with the settings used for calls to getMember. */ + public UnaryCallSettings getMemberSettings() { + return getMemberSettings; + } + + /** Returns the object with the settings used for calls to listMembers. */ + public PagedCallSettings + listMembersSettings() { + return listMembersSettings; + } + + /** Returns the object with the settings used for calls to deleteMember. */ + public UnaryCallSettings deleteMemberSettings() { + return deleteMemberSettings; + } + public SpacesServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -247,6 +343,10 @@ protected SpacesServiceStubSettings(Builder settingsBuilder) throws IOException getSpaceSettings = settingsBuilder.getSpaceSettings().build(); updateSpaceSettings = settingsBuilder.updateSpaceSettings().build(); endActiveConferenceSettings = settingsBuilder.endActiveConferenceSettings().build(); + createMemberSettings = settingsBuilder.createMemberSettings().build(); + getMemberSettings = settingsBuilder.getMemberSettings().build(); + listMembersSettings = settingsBuilder.listMembersSettings().build(); + deleteMemberSettings = settingsBuilder.deleteMemberSettings().build(); } /** Builder for SpacesServiceStubSettings. */ @@ -257,6 +357,12 @@ public static class Builder extends StubSettings.Builder updateSpaceSettings; private final UnaryCallSettings.Builder endActiveConferenceSettings; + private final UnaryCallSettings.Builder createMemberSettings; + private final UnaryCallSettings.Builder getMemberSettings; + private final PagedCallSettings.Builder< + ListMembersRequest, ListMembersResponse, ListMembersPagedResponse> + listMembersSettings; + private final UnaryCallSettings.Builder deleteMemberSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -309,13 +415,21 @@ protected Builder(ClientContext clientContext) { getSpaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateSpaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); endActiveConferenceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createMemberSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getMemberSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listMembersSettings = PagedCallSettings.newBuilder(LIST_MEMBERS_PAGE_STR_FACT); + deleteMemberSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( createSpaceSettings, getSpaceSettings, updateSpaceSettings, - endActiveConferenceSettings); + endActiveConferenceSettings, + createMemberSettings, + getMemberSettings, + listMembersSettings, + deleteMemberSettings); initDefaults(this); } @@ -326,13 +440,21 @@ protected Builder(SpacesServiceStubSettings settings) { getSpaceSettings = settings.getSpaceSettings.toBuilder(); updateSpaceSettings = settings.updateSpaceSettings.toBuilder(); endActiveConferenceSettings = settings.endActiveConferenceSettings.toBuilder(); + createMemberSettings = settings.createMemberSettings.toBuilder(); + getMemberSettings = settings.getMemberSettings.toBuilder(); + listMembersSettings = settings.listMembersSettings.toBuilder(); + deleteMemberSettings = settings.deleteMemberSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( createSpaceSettings, getSpaceSettings, updateSpaceSettings, - endActiveConferenceSettings); + endActiveConferenceSettings, + createMemberSettings, + getMemberSettings, + listMembersSettings, + deleteMemberSettings); } private static Builder createDefault() { @@ -380,6 +502,26 @@ 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 + .createMemberSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .getMemberSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listMembersSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteMemberSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + return builder; } @@ -419,6 +561,28 @@ public UnaryCallSettings.Builder updateSpaceSettings( return endActiveConferenceSettings; } + /** Returns the builder for the settings used for calls to createMember. */ + public UnaryCallSettings.Builder createMemberSettings() { + return createMemberSettings; + } + + /** Returns the builder for the settings used for calls to getMember. */ + public UnaryCallSettings.Builder getMemberSettings() { + return getMemberSettings; + } + + /** Returns the builder for the settings used for calls to listMembers. */ + public PagedCallSettings.Builder< + ListMembersRequest, ListMembersResponse, ListMembersPagedResponse> + listMembersSettings() { + return listMembersSettings; + } + + /** Returns the builder for the settings used for calls to deleteMember. */ + public UnaryCallSettings.Builder deleteMemberSettings() { + return deleteMemberSettings; + } + @Override public SpacesServiceStubSettings build() throws IOException { return new SpacesServiceStubSettings(this); diff --git a/java-meet/google-cloud-meet/src/main/resources/META-INF/native-image/com.google.apps.meet.v2beta/reflect-config.json b/java-meet/google-cloud-meet/src/main/resources/META-INF/native-image/com.google.apps.meet.v2beta/reflect-config.json index c999c8a281a7..992bfc57f26f 100644 --- a/java-meet/google-cloud-meet/src/main/resources/META-INF/native-image/com.google.apps.meet.v2beta/reflect-config.json +++ b/java-meet/google-cloud-meet/src/main/resources/META-INF/native-image/com.google.apps.meet.v2beta/reflect-config.json @@ -467,6 +467,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.apps.meet.v2beta.CreateMemberRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2beta.CreateMemberRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.apps.meet.v2beta.CreateSpaceRequest", "queryAllDeclaredConstructors": true, @@ -485,6 +503,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.apps.meet.v2beta.DeleteMemberRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2beta.DeleteMemberRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.apps.meet.v2beta.DocsDestination", "queryAllDeclaredConstructors": true, @@ -557,6 +593,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.apps.meet.v2beta.GetMemberRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2beta.GetMemberRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.apps.meet.v2beta.GetParticipantRequest", "queryAllDeclaredConstructors": true, @@ -701,6 +755,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.apps.meet.v2beta.ListMembersRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2beta.ListMembersRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2beta.ListMembersResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2beta.ListMembersResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.apps.meet.v2beta.ListParticipantSessionsRequest", "queryAllDeclaredConstructors": true, @@ -881,6 +971,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.apps.meet.v2beta.Member", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2beta.Member$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2beta.Member$Role", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.apps.meet.v2beta.Participant", "queryAllDeclaredConstructors": true, @@ -1016,6 +1133,96 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.apps.meet.v2beta.SpaceConfig$ArtifactConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2beta.SpaceConfig$ArtifactConfig$AutoGenerationType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2beta.SpaceConfig$ArtifactConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2beta.SpaceConfig$ArtifactConfig$RecordingConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2beta.SpaceConfig$ArtifactConfig$RecordingConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2beta.SpaceConfig$ArtifactConfig$SmartNotesConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2beta.SpaceConfig$ArtifactConfig$SmartNotesConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2beta.SpaceConfig$ArtifactConfig$TranscriptionConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2beta.SpaceConfig$ArtifactConfig$TranscriptionConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2beta.SpaceConfig$AttendanceReportGenerationType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.apps.meet.v2beta.SpaceConfig$Builder", "queryAllDeclaredConstructors": true, @@ -1034,6 +1241,51 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.apps.meet.v2beta.SpaceConfig$Moderation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2beta.SpaceConfig$ModerationRestrictions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2beta.SpaceConfig$ModerationRestrictions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2beta.SpaceConfig$ModerationRestrictions$DefaultJoinAsViewerType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.apps.meet.v2beta.SpaceConfig$ModerationRestrictions$RestrictionType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.apps.meet.v2beta.Transcript", "queryAllDeclaredConstructors": true, diff --git a/java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2beta/MockSpacesServiceImpl.java b/java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2beta/MockSpacesServiceImpl.java index 5f0905ca2af1..9242a469f5a9 100644 --- a/java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2beta/MockSpacesServiceImpl.java +++ b/java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2beta/MockSpacesServiceImpl.java @@ -139,4 +139,85 @@ public void endActiveConference( Exception.class.getName()))); } } + + @Override + public void createMember(CreateMemberRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Member) { + requests.add(request); + responseObserver.onNext(((Member) 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 CreateMember, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Member.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getMember(GetMemberRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Member) { + requests.add(request); + responseObserver.onNext(((Member) 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 GetMember, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Member.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listMembers( + ListMembersRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListMembersResponse) { + requests.add(request); + responseObserver.onNext(((ListMembersResponse) 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 ListMembers, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListMembersResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteMember(DeleteMemberRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) 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 DeleteMember, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2beta/SpacesServiceClientHttpJsonTest.java b/java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2beta/SpacesServiceClientHttpJsonTest.java index 0c4ca5cb2153..d8a7ecb87609 100644 --- a/java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2beta/SpacesServiceClientHttpJsonTest.java +++ b/java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2beta/SpacesServiceClientHttpJsonTest.java @@ -16,6 +16,8 @@ package com.google.apps.meet.v2beta; +import static com.google.apps.meet.v2beta.SpacesServiceClient.ListMembersPagedResponse; + import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.httpjson.GaxHttpJsonProperties; import com.google.api.gax.httpjson.testing.MockHttpService; @@ -26,9 +28,11 @@ import com.google.api.gax.rpc.StatusCode; import com.google.api.gax.rpc.testing.FakeStatusCode; import com.google.apps.meet.v2beta.stub.HttpJsonSpacesServiceStub; +import com.google.common.collect.Lists; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import java.io.IOException; +import java.util.Arrays; import java.util.List; import javax.annotation.Generated; import org.junit.After; @@ -360,4 +364,372 @@ public void endActiveConferenceExceptionTest2() throws Exception { // Expected exception. } } + + @Test + public void createMemberTest() throws Exception { + Member expectedResponse = + Member.newBuilder() + .setName(MemberName.of("[SPACE]", "[MEMBER]").toString()) + .setEmail("email96619420") + .setUser("user3599307") + .build(); + mockService.addResponse(expectedResponse); + + SpaceName parent = SpaceName.of("[SPACE]"); + Member member = Member.newBuilder().build(); + + Member actualResponse = client.createMember(parent, member); + 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 createMemberExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SpaceName parent = SpaceName.of("[SPACE]"); + Member member = Member.newBuilder().build(); + client.createMember(parent, member); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createMemberTest2() throws Exception { + Member expectedResponse = + Member.newBuilder() + .setName(MemberName.of("[SPACE]", "[MEMBER]").toString()) + .setEmail("email96619420") + .setUser("user3599307") + .build(); + mockService.addResponse(expectedResponse); + + String parent = "spaces/space-3870"; + Member member = Member.newBuilder().build(); + + Member actualResponse = client.createMember(parent, member); + 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 createMemberExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "spaces/space-3870"; + Member member = Member.newBuilder().build(); + client.createMember(parent, member); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMemberTest() throws Exception { + Member expectedResponse = + Member.newBuilder() + .setName(MemberName.of("[SPACE]", "[MEMBER]").toString()) + .setEmail("email96619420") + .setUser("user3599307") + .build(); + mockService.addResponse(expectedResponse); + + MemberName name = MemberName.of("[SPACE]", "[MEMBER]"); + + Member actualResponse = client.getMember(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getMemberExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + MemberName name = MemberName.of("[SPACE]", "[MEMBER]"); + client.getMember(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMemberTest2() throws Exception { + Member expectedResponse = + Member.newBuilder() + .setName(MemberName.of("[SPACE]", "[MEMBER]").toString()) + .setEmail("email96619420") + .setUser("user3599307") + .build(); + mockService.addResponse(expectedResponse); + + String name = "spaces/space-6456/members/member-6456"; + + Member actualResponse = client.getMember(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getMemberExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "spaces/space-6456/members/member-6456"; + client.getMember(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMembersTest() throws Exception { + Member responsesElement = Member.newBuilder().build(); + ListMembersResponse expectedResponse = + ListMembersResponse.newBuilder() + .setNextPageToken("") + .addAllMembers(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + SpaceName parent = SpaceName.of("[SPACE]"); + + ListMembersPagedResponse pagedListResponse = client.listMembers(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMembersList().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 listMembersExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SpaceName parent = SpaceName.of("[SPACE]"); + client.listMembers(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMembersTest2() throws Exception { + Member responsesElement = Member.newBuilder().build(); + ListMembersResponse expectedResponse = + ListMembersResponse.newBuilder() + .setNextPageToken("") + .addAllMembers(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "spaces/space-3870"; + + ListMembersPagedResponse pagedListResponse = client.listMembers(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMembersList().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 listMembersExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "spaces/space-3870"; + client.listMembers(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteMemberTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + MemberName name = MemberName.of("[SPACE]", "[MEMBER]"); + + client.deleteMember(name); + + 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 deleteMemberExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + MemberName name = MemberName.of("[SPACE]", "[MEMBER]"); + client.deleteMember(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteMemberTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "spaces/space-6456/members/member-6456"; + + client.deleteMember(name); + + 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 deleteMemberExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "spaces/space-6456/members/member-6456"; + client.deleteMember(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2beta/SpacesServiceClientTest.java b/java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2beta/SpacesServiceClientTest.java index 5a40dba5872a..deec96cd6a94 100644 --- a/java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2beta/SpacesServiceClientTest.java +++ b/java-meet/google-cloud-meet/src/test/java/com/google/apps/meet/v2beta/SpacesServiceClientTest.java @@ -16,6 +16,8 @@ package com.google.apps.meet.v2beta; +import static com.google.apps.meet.v2beta.SpacesServiceClient.ListMembersPagedResponse; + import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.testing.LocalChannelProvider; @@ -23,6 +25,7 @@ import com.google.api.gax.grpc.testing.MockServiceHelper; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.common.collect.Lists; import com.google.protobuf.AbstractMessage; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; @@ -315,4 +318,326 @@ public void endActiveConferenceExceptionTest2() throws Exception { // Expected exception. } } + + @Test + public void createMemberTest() throws Exception { + Member expectedResponse = + Member.newBuilder() + .setName(MemberName.of("[SPACE]", "[MEMBER]").toString()) + .setEmail("email96619420") + .setUser("user3599307") + .build(); + mockSpacesService.addResponse(expectedResponse); + + SpaceName parent = SpaceName.of("[SPACE]"); + Member member = Member.newBuilder().build(); + + Member actualResponse = client.createMember(parent, member); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSpacesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateMemberRequest actualRequest = ((CreateMemberRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(member, actualRequest.getMember()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createMemberExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSpacesService.addException(exception); + + try { + SpaceName parent = SpaceName.of("[SPACE]"); + Member member = Member.newBuilder().build(); + client.createMember(parent, member); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createMemberTest2() throws Exception { + Member expectedResponse = + Member.newBuilder() + .setName(MemberName.of("[SPACE]", "[MEMBER]").toString()) + .setEmail("email96619420") + .setUser("user3599307") + .build(); + mockSpacesService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Member member = Member.newBuilder().build(); + + Member actualResponse = client.createMember(parent, member); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSpacesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateMemberRequest actualRequest = ((CreateMemberRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(member, actualRequest.getMember()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createMemberExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSpacesService.addException(exception); + + try { + String parent = "parent-995424086"; + Member member = Member.newBuilder().build(); + client.createMember(parent, member); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMemberTest() throws Exception { + Member expectedResponse = + Member.newBuilder() + .setName(MemberName.of("[SPACE]", "[MEMBER]").toString()) + .setEmail("email96619420") + .setUser("user3599307") + .build(); + mockSpacesService.addResponse(expectedResponse); + + MemberName name = MemberName.of("[SPACE]", "[MEMBER]"); + + Member actualResponse = client.getMember(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSpacesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetMemberRequest actualRequest = ((GetMemberRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getMemberExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSpacesService.addException(exception); + + try { + MemberName name = MemberName.of("[SPACE]", "[MEMBER]"); + client.getMember(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMemberTest2() throws Exception { + Member expectedResponse = + Member.newBuilder() + .setName(MemberName.of("[SPACE]", "[MEMBER]").toString()) + .setEmail("email96619420") + .setUser("user3599307") + .build(); + mockSpacesService.addResponse(expectedResponse); + + String name = "name3373707"; + + Member actualResponse = client.getMember(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSpacesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetMemberRequest actualRequest = ((GetMemberRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getMemberExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSpacesService.addException(exception); + + try { + String name = "name3373707"; + client.getMember(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMembersTest() throws Exception { + Member responsesElement = Member.newBuilder().build(); + ListMembersResponse expectedResponse = + ListMembersResponse.newBuilder() + .setNextPageToken("") + .addAllMembers(Arrays.asList(responsesElement)) + .build(); + mockSpacesService.addResponse(expectedResponse); + + SpaceName parent = SpaceName.of("[SPACE]"); + + ListMembersPagedResponse pagedListResponse = client.listMembers(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMembersList().get(0), resources.get(0)); + + List actualRequests = mockSpacesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMembersRequest actualRequest = ((ListMembersRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMembersExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSpacesService.addException(exception); + + try { + SpaceName parent = SpaceName.of("[SPACE]"); + client.listMembers(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMembersTest2() throws Exception { + Member responsesElement = Member.newBuilder().build(); + ListMembersResponse expectedResponse = + ListMembersResponse.newBuilder() + .setNextPageToken("") + .addAllMembers(Arrays.asList(responsesElement)) + .build(); + mockSpacesService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListMembersPagedResponse pagedListResponse = client.listMembers(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMembersList().get(0), resources.get(0)); + + List actualRequests = mockSpacesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMembersRequest actualRequest = ((ListMembersRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMembersExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSpacesService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listMembers(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteMemberTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockSpacesService.addResponse(expectedResponse); + + MemberName name = MemberName.of("[SPACE]", "[MEMBER]"); + + client.deleteMember(name); + + List actualRequests = mockSpacesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteMemberRequest actualRequest = ((DeleteMemberRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteMemberExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSpacesService.addException(exception); + + try { + MemberName name = MemberName.of("[SPACE]", "[MEMBER]"); + client.deleteMember(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteMemberTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockSpacesService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteMember(name); + + List actualRequests = mockSpacesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteMemberRequest actualRequest = ((DeleteMemberRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteMemberExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSpacesService.addException(exception); + + try { + String name = "name3373707"; + client.deleteMember(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-meet/grpc-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SpacesServiceGrpc.java b/java-meet/grpc-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SpacesServiceGrpc.java index 31708ccff96f..309ff9e8aba1 100644 --- a/java-meet/grpc-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SpacesServiceGrpc.java +++ b/java-meet/grpc-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SpacesServiceGrpc.java @@ -267,7 +267,9 @@ default void createSpace( * * *
-     * Gets a space by `space_id` or `meeting_code`.
+     * Gets details about a meeting space.
+     * For an example, see [Get a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#get-meeting-space).
      * 
*/ default void getSpace( @@ -280,7 +282,9 @@ default void getSpace( * * *
-     * Updates a space.
+     * Updates details about a meeting space.
+     * For an example, see [Update a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#update-meeting-space).
      * 
*/ default void updateSpace( @@ -295,6 +299,8 @@ default void updateSpace( * *
      * Ends an active conference (if there's one).
+     * For an example, see [End active
+     * conference](https://developers.google.com/meet/api/guides/meeting-spaces#end-active-conference).
      * 
*/ default void endActiveConference( @@ -359,7 +365,9 @@ public void createSpace( * * *
-     * Gets a space by `space_id` or `meeting_code`.
+     * Gets details about a meeting space.
+     * For an example, see [Get a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#get-meeting-space).
      * 
*/ public void getSpace( @@ -373,7 +381,9 @@ public void getSpace( * * *
-     * Updates a space.
+     * Updates details about a meeting space.
+     * For an example, see [Update a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#update-meeting-space).
      * 
*/ public void updateSpace( @@ -390,6 +400,8 @@ public void updateSpace( * *
      * Ends an active conference (if there's one).
+     * For an example, see [End active
+     * conference](https://developers.google.com/meet/api/guides/meeting-spaces#end-active-conference).
      * 
*/ public void endActiveConference( @@ -438,7 +450,9 @@ public com.google.apps.meet.v2.Space createSpace( * * *
-     * Gets a space by `space_id` or `meeting_code`.
+     * Gets details about a meeting space.
+     * For an example, see [Get a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#get-meeting-space).
      * 
*/ public com.google.apps.meet.v2.Space getSpace(com.google.apps.meet.v2.GetSpaceRequest request) { @@ -450,7 +464,9 @@ public com.google.apps.meet.v2.Space getSpace(com.google.apps.meet.v2.GetSpaceRe * * *
-     * Updates a space.
+     * Updates details about a meeting space.
+     * For an example, see [Update a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#update-meeting-space).
      * 
*/ public com.google.apps.meet.v2.Space updateSpace( @@ -464,6 +480,8 @@ public com.google.apps.meet.v2.Space updateSpace( * *
      * Ends an active conference (if there's one).
+     * For an example, see [End active
+     * conference](https://developers.google.com/meet/api/guides/meeting-spaces#end-active-conference).
      * 
*/ public com.google.protobuf.Empty endActiveConference( @@ -509,7 +527,9 @@ protected SpacesServiceFutureStub build( * * *
-     * Gets a space by `space_id` or `meeting_code`.
+     * Gets details about a meeting space.
+     * For an example, see [Get a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#get-meeting-space).
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -522,7 +542,9 @@ protected SpacesServiceFutureStub build( * * *
-     * Updates a space.
+     * Updates details about a meeting space.
+     * For an example, see [Update a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#update-meeting-space).
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -536,6 +558,8 @@ protected SpacesServiceFutureStub build( * *
      * Ends an active conference (if there's one).
+     * For an example, see [End active
+     * conference](https://developers.google.com/meet/api/guides/meeting-spaces#end-active-conference).
      * 
*/ public com.google.common.util.concurrent.ListenableFuture diff --git a/java-meet/grpc-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ConferenceRecordsServiceGrpc.java b/java-meet/grpc-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ConferenceRecordsServiceGrpc.java index 5e575ae3cc2f..a245342d0a59 100644 --- a/java-meet/grpc-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ConferenceRecordsServiceGrpc.java +++ b/java-meet/grpc-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ConferenceRecordsServiceGrpc.java @@ -681,7 +681,6 @@ public interface AsyncService { * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
      * Gets a conference record by conference ID.
      * 
*/ @@ -697,8 +696,8 @@ default void getConferenceRecord( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
-     * Lists the conference records by start time and in descending order.
+     * Lists the conference records. By default, ordered by start time and in
+     * descending order.
      * 
*/ default void listConferenceRecords( @@ -713,7 +712,6 @@ default void listConferenceRecords( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
      * Gets a participant by participant ID.
      * 
*/ @@ -728,8 +726,7 @@ default void getParticipant( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
-     * Lists the participants in a conference record, by default ordered by join
+     * Lists the participants in a conference record. By default, ordered by join
      * time and in descending order. This API supports `fields` as standard
      * parameters like every other API. However, when the `fields` request
      * parameter is omitted, this API defaults to `'participants/*,
@@ -748,7 +745,6 @@ default void listParticipants(
      *
      *
      * 
-     * [Developer Preview](https://developers.google.com/workspace/preview).
      * Gets a participant session by participant session ID.
      * 
*/ @@ -764,9 +760,8 @@ default void getParticipantSession( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
-     * Lists the participant sessions of a participant in a conference record, by
-     * default ordered by join time and in descending order. This API supports
+     * Lists the participant sessions of a participant in a conference record. By
+     * default, ordered by join time and in descending order. This API supports
      * `fields` as standard parameters like every other API. However, when the
      * `fields` request parameter is omitted this API defaults to
      * `'participantsessions/*, next_page_token'`.
@@ -784,7 +779,6 @@ default void listParticipantSessions(
      *
      *
      * 
-     * [Developer Preview](https://developers.google.com/workspace/preview).
      * Gets a recording by recording ID.
      * 
*/ @@ -799,8 +793,8 @@ default void getRecording( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
-     * Lists the recording resources from the conference record.
+     * Lists the recording resources from the conference record. By default,
+     * ordered by start time and in ascending order.
      * 
*/ default void listRecordings( @@ -815,7 +809,6 @@ default void listRecordings( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
      * Gets a transcript by transcript ID.
      * 
*/ @@ -830,8 +823,8 @@ default void getTranscript( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
-     * Lists the set of transcripts from the conference record.
+     * Lists the set of transcripts from the conference record. By default,
+     * ordered by start time and in ascending order.
      * 
*/ default void listTranscripts( @@ -846,7 +839,6 @@ default void listTranscripts( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
      * Gets a `TranscriptEntry` resource by entry ID.
      * Note: The transcript entries returned by the Google Meet API might not
      * match the transcription found in the Google Docs transcript file. This can
@@ -864,7 +856,6 @@ default void getTranscriptEntry(
      *
      *
      * 
-     * [Developer Preview](https://developers.google.com/workspace/preview).
      * Lists the structured transcript entries per transcript. By default, ordered
      * by start time and in ascending order.
      * Note: The transcript entries returned by the Google Meet API might not
@@ -920,7 +911,6 @@ protected ConferenceRecordsServiceStub build(
      *
      *
      * 
-     * [Developer Preview](https://developers.google.com/workspace/preview).
      * Gets a conference record by conference ID.
      * 
*/ @@ -938,8 +928,8 @@ public void getConferenceRecord( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
-     * Lists the conference records by start time and in descending order.
+     * Lists the conference records. By default, ordered by start time and in
+     * descending order.
      * 
*/ public void listConferenceRecords( @@ -956,7 +946,6 @@ public void listConferenceRecords( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
      * Gets a participant by participant ID.
      * 
*/ @@ -973,8 +962,7 @@ public void getParticipant( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
-     * Lists the participants in a conference record, by default ordered by join
+     * Lists the participants in a conference record. By default, ordered by join
      * time and in descending order. This API supports `fields` as standard
      * parameters like every other API. However, when the `fields` request
      * parameter is omitted, this API defaults to `'participants/*,
@@ -995,7 +983,6 @@ public void listParticipants(
      *
      *
      * 
-     * [Developer Preview](https://developers.google.com/workspace/preview).
      * Gets a participant session by participant session ID.
      * 
*/ @@ -1013,9 +1000,8 @@ public void getParticipantSession( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
-     * Lists the participant sessions of a participant in a conference record, by
-     * default ordered by join time and in descending order. This API supports
+     * Lists the participant sessions of a participant in a conference record. By
+     * default, ordered by join time and in descending order. This API supports
      * `fields` as standard parameters like every other API. However, when the
      * `fields` request parameter is omitted this API defaults to
      * `'participantsessions/*, next_page_token'`.
@@ -1035,7 +1021,6 @@ public void listParticipantSessions(
      *
      *
      * 
-     * [Developer Preview](https://developers.google.com/workspace/preview).
      * Gets a recording by recording ID.
      * 
*/ @@ -1052,8 +1037,8 @@ public void getRecording( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
-     * Lists the recording resources from the conference record.
+     * Lists the recording resources from the conference record. By default,
+     * ordered by start time and in ascending order.
      * 
*/ public void listRecordings( @@ -1070,7 +1055,6 @@ public void listRecordings( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
      * Gets a transcript by transcript ID.
      * 
*/ @@ -1087,8 +1071,8 @@ public void getTranscript( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
-     * Lists the set of transcripts from the conference record.
+     * Lists the set of transcripts from the conference record. By default,
+     * ordered by start time and in ascending order.
      * 
*/ public void listTranscripts( @@ -1105,7 +1089,6 @@ public void listTranscripts( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
      * Gets a `TranscriptEntry` resource by entry ID.
      * Note: The transcript entries returned by the Google Meet API might not
      * match the transcription found in the Google Docs transcript file. This can
@@ -1125,7 +1108,6 @@ public void getTranscriptEntry(
      *
      *
      * 
-     * [Developer Preview](https://developers.google.com/workspace/preview).
      * Lists the structured transcript entries per transcript. By default, ordered
      * by start time and in ascending order.
      * Note: The transcript entries returned by the Google Meet API might not
@@ -1168,7 +1150,6 @@ protected ConferenceRecordsServiceBlockingStub build(
      *
      *
      * 
-     * [Developer Preview](https://developers.google.com/workspace/preview).
      * Gets a conference record by conference ID.
      * 
*/ @@ -1182,8 +1163,8 @@ public com.google.apps.meet.v2beta.ConferenceRecord getConferenceRecord( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
-     * Lists the conference records by start time and in descending order.
+     * Lists the conference records. By default, ordered by start time and in
+     * descending order.
      * 
*/ public com.google.apps.meet.v2beta.ListConferenceRecordsResponse listConferenceRecords( @@ -1196,7 +1177,6 @@ public com.google.apps.meet.v2beta.ListConferenceRecordsResponse listConferenceR * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
      * Gets a participant by participant ID.
      * 
*/ @@ -1210,8 +1190,7 @@ public com.google.apps.meet.v2beta.Participant getParticipant( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
-     * Lists the participants in a conference record, by default ordered by join
+     * Lists the participants in a conference record. By default, ordered by join
      * time and in descending order. This API supports `fields` as standard
      * parameters like every other API. However, when the `fields` request
      * parameter is omitted, this API defaults to `'participants/*,
@@ -1228,7 +1207,6 @@ public com.google.apps.meet.v2beta.ListParticipantsResponse listParticipants(
      *
      *
      * 
-     * [Developer Preview](https://developers.google.com/workspace/preview).
      * Gets a participant session by participant session ID.
      * 
*/ @@ -1242,9 +1220,8 @@ public com.google.apps.meet.v2beta.ParticipantSession getParticipantSession( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
-     * Lists the participant sessions of a participant in a conference record, by
-     * default ordered by join time and in descending order. This API supports
+     * Lists the participant sessions of a participant in a conference record. By
+     * default, ordered by join time and in descending order. This API supports
      * `fields` as standard parameters like every other API. However, when the
      * `fields` request parameter is omitted this API defaults to
      * `'participantsessions/*, next_page_token'`.
@@ -1260,7 +1237,6 @@ public com.google.apps.meet.v2beta.ListParticipantSessionsResponse listParticipa
      *
      *
      * 
-     * [Developer Preview](https://developers.google.com/workspace/preview).
      * Gets a recording by recording ID.
      * 
*/ @@ -1274,8 +1250,8 @@ public com.google.apps.meet.v2beta.Recording getRecording( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
-     * Lists the recording resources from the conference record.
+     * Lists the recording resources from the conference record. By default,
+     * ordered by start time and in ascending order.
      * 
*/ public com.google.apps.meet.v2beta.ListRecordingsResponse listRecordings( @@ -1288,7 +1264,6 @@ public com.google.apps.meet.v2beta.ListRecordingsResponse listRecordings( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
      * Gets a transcript by transcript ID.
      * 
*/ @@ -1302,8 +1277,8 @@ public com.google.apps.meet.v2beta.Transcript getTranscript( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
-     * Lists the set of transcripts from the conference record.
+     * Lists the set of transcripts from the conference record. By default,
+     * ordered by start time and in ascending order.
      * 
*/ public com.google.apps.meet.v2beta.ListTranscriptsResponse listTranscripts( @@ -1316,7 +1291,6 @@ public com.google.apps.meet.v2beta.ListTranscriptsResponse listTranscripts( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
      * Gets a `TranscriptEntry` resource by entry ID.
      * Note: The transcript entries returned by the Google Meet API might not
      * match the transcription found in the Google Docs transcript file. This can
@@ -1333,7 +1307,6 @@ public com.google.apps.meet.v2beta.TranscriptEntry getTranscriptEntry(
      *
      *
      * 
-     * [Developer Preview](https://developers.google.com/workspace/preview).
      * Lists the structured transcript entries per transcript. By default, ordered
      * by start time and in ascending order.
      * Note: The transcript entries returned by the Google Meet API might not
@@ -1373,7 +1346,6 @@ protected ConferenceRecordsServiceFutureStub build(
      *
      *
      * 
-     * [Developer Preview](https://developers.google.com/workspace/preview).
      * Gets a conference record by conference ID.
      * 
*/ @@ -1388,8 +1360,8 @@ protected ConferenceRecordsServiceFutureStub build( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
-     * Lists the conference records by start time and in descending order.
+     * Lists the conference records. By default, ordered by start time and in
+     * descending order.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -1403,7 +1375,6 @@ protected ConferenceRecordsServiceFutureStub build( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
      * Gets a participant by participant ID.
      * 
*/ @@ -1418,8 +1389,7 @@ protected ConferenceRecordsServiceFutureStub build( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
-     * Lists the participants in a conference record, by default ordered by join
+     * Lists the participants in a conference record. By default, ordered by join
      * time and in descending order. This API supports `fields` as standard
      * parameters like every other API. However, when the `fields` request
      * parameter is omitted, this API defaults to `'participants/*,
@@ -1437,7 +1407,6 @@ protected ConferenceRecordsServiceFutureStub build(
      *
      *
      * 
-     * [Developer Preview](https://developers.google.com/workspace/preview).
      * Gets a participant session by participant session ID.
      * 
*/ @@ -1452,9 +1421,8 @@ protected ConferenceRecordsServiceFutureStub build( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
-     * Lists the participant sessions of a participant in a conference record, by
-     * default ordered by join time and in descending order. This API supports
+     * Lists the participant sessions of a participant in a conference record. By
+     * default, ordered by join time and in descending order. This API supports
      * `fields` as standard parameters like every other API. However, when the
      * `fields` request parameter is omitted this API defaults to
      * `'participantsessions/*, next_page_token'`.
@@ -1472,7 +1440,6 @@ protected ConferenceRecordsServiceFutureStub build(
      *
      *
      * 
-     * [Developer Preview](https://developers.google.com/workspace/preview).
      * Gets a recording by recording ID.
      * 
*/ @@ -1486,8 +1453,8 @@ protected ConferenceRecordsServiceFutureStub build( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
-     * Lists the recording resources from the conference record.
+     * Lists the recording resources from the conference record. By default,
+     * ordered by start time and in ascending order.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -1501,7 +1468,6 @@ protected ConferenceRecordsServiceFutureStub build( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
      * Gets a transcript by transcript ID.
      * 
*/ @@ -1516,8 +1482,8 @@ protected ConferenceRecordsServiceFutureStub build( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
-     * Lists the set of transcripts from the conference record.
+     * Lists the set of transcripts from the conference record. By default,
+     * ordered by start time and in ascending order.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -1531,7 +1497,6 @@ protected ConferenceRecordsServiceFutureStub build( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
      * Gets a `TranscriptEntry` resource by entry ID.
      * Note: The transcript entries returned by the Google Meet API might not
      * match the transcription found in the Google Docs transcript file. This can
@@ -1549,7 +1514,6 @@ protected ConferenceRecordsServiceFutureStub build(
      *
      *
      * 
-     * [Developer Preview](https://developers.google.com/workspace/preview).
      * Lists the structured transcript entries per transcript. By default, ordered
      * by start time and in ascending order.
      * Note: The transcript entries returned by the Google Meet API might not
diff --git a/java-meet/grpc-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SpacesServiceGrpc.java b/java-meet/grpc-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SpacesServiceGrpc.java
index 5ab156d5f0e5..34ed445d74be 100644
--- a/java-meet/grpc-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SpacesServiceGrpc.java
+++ b/java-meet/grpc-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SpacesServiceGrpc.java
@@ -203,6 +203,174 @@ private SpacesServiceGrpc() {}
     return getEndActiveConferenceMethod;
   }
 
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.apps.meet.v2beta.CreateMemberRequest, com.google.apps.meet.v2beta.Member>
+      getCreateMemberMethod;
+
+  @io.grpc.stub.annotations.RpcMethod(
+      fullMethodName = SERVICE_NAME + '/' + "CreateMember",
+      requestType = com.google.apps.meet.v2beta.CreateMemberRequest.class,
+      responseType = com.google.apps.meet.v2beta.Member.class,
+      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+  public static io.grpc.MethodDescriptor<
+          com.google.apps.meet.v2beta.CreateMemberRequest, com.google.apps.meet.v2beta.Member>
+      getCreateMemberMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.apps.meet.v2beta.CreateMemberRequest, com.google.apps.meet.v2beta.Member>
+        getCreateMemberMethod;
+    if ((getCreateMemberMethod = SpacesServiceGrpc.getCreateMemberMethod) == null) {
+      synchronized (SpacesServiceGrpc.class) {
+        if ((getCreateMemberMethod = SpacesServiceGrpc.getCreateMemberMethod) == null) {
+          SpacesServiceGrpc.getCreateMemberMethod =
+              getCreateMemberMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateMember"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.apps.meet.v2beta.CreateMemberRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.apps.meet.v2beta.Member.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new SpacesServiceMethodDescriptorSupplier("CreateMember"))
+                      .build();
+        }
+      }
+    }
+    return getCreateMemberMethod;
+  }
+
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.apps.meet.v2beta.GetMemberRequest, com.google.apps.meet.v2beta.Member>
+      getGetMemberMethod;
+
+  @io.grpc.stub.annotations.RpcMethod(
+      fullMethodName = SERVICE_NAME + '/' + "GetMember",
+      requestType = com.google.apps.meet.v2beta.GetMemberRequest.class,
+      responseType = com.google.apps.meet.v2beta.Member.class,
+      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+  public static io.grpc.MethodDescriptor<
+          com.google.apps.meet.v2beta.GetMemberRequest, com.google.apps.meet.v2beta.Member>
+      getGetMemberMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.apps.meet.v2beta.GetMemberRequest, com.google.apps.meet.v2beta.Member>
+        getGetMemberMethod;
+    if ((getGetMemberMethod = SpacesServiceGrpc.getGetMemberMethod) == null) {
+      synchronized (SpacesServiceGrpc.class) {
+        if ((getGetMemberMethod = SpacesServiceGrpc.getGetMemberMethod) == null) {
+          SpacesServiceGrpc.getGetMemberMethod =
+              getGetMemberMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMember"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.apps.meet.v2beta.GetMemberRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.apps.meet.v2beta.Member.getDefaultInstance()))
+                      .setSchemaDescriptor(new SpacesServiceMethodDescriptorSupplier("GetMember"))
+                      .build();
+        }
+      }
+    }
+    return getGetMemberMethod;
+  }
+
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.apps.meet.v2beta.ListMembersRequest,
+          com.google.apps.meet.v2beta.ListMembersResponse>
+      getListMembersMethod;
+
+  @io.grpc.stub.annotations.RpcMethod(
+      fullMethodName = SERVICE_NAME + '/' + "ListMembers",
+      requestType = com.google.apps.meet.v2beta.ListMembersRequest.class,
+      responseType = com.google.apps.meet.v2beta.ListMembersResponse.class,
+      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+  public static io.grpc.MethodDescriptor<
+          com.google.apps.meet.v2beta.ListMembersRequest,
+          com.google.apps.meet.v2beta.ListMembersResponse>
+      getListMembersMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.apps.meet.v2beta.ListMembersRequest,
+            com.google.apps.meet.v2beta.ListMembersResponse>
+        getListMembersMethod;
+    if ((getListMembersMethod = SpacesServiceGrpc.getListMembersMethod) == null) {
+      synchronized (SpacesServiceGrpc.class) {
+        if ((getListMembersMethod = SpacesServiceGrpc.getListMembersMethod) == null) {
+          SpacesServiceGrpc.getListMembersMethod =
+              getListMembersMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMembers"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.apps.meet.v2beta.ListMembersRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.apps.meet.v2beta.ListMembersResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(new SpacesServiceMethodDescriptorSupplier("ListMembers"))
+                      .build();
+        }
+      }
+    }
+    return getListMembersMethod;
+  }
+
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.apps.meet.v2beta.DeleteMemberRequest, com.google.protobuf.Empty>
+      getDeleteMemberMethod;
+
+  @io.grpc.stub.annotations.RpcMethod(
+      fullMethodName = SERVICE_NAME + '/' + "DeleteMember",
+      requestType = com.google.apps.meet.v2beta.DeleteMemberRequest.class,
+      responseType = com.google.protobuf.Empty.class,
+      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+  public static io.grpc.MethodDescriptor<
+          com.google.apps.meet.v2beta.DeleteMemberRequest, com.google.protobuf.Empty>
+      getDeleteMemberMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.apps.meet.v2beta.DeleteMemberRequest, com.google.protobuf.Empty>
+        getDeleteMemberMethod;
+    if ((getDeleteMemberMethod = SpacesServiceGrpc.getDeleteMemberMethod) == null) {
+      synchronized (SpacesServiceGrpc.class) {
+        if ((getDeleteMemberMethod = SpacesServiceGrpc.getDeleteMemberMethod) == null) {
+          SpacesServiceGrpc.getDeleteMemberMethod =
+              getDeleteMemberMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteMember"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.apps.meet.v2beta.DeleteMemberRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.protobuf.Empty.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new SpacesServiceMethodDescriptorSupplier("DeleteMember"))
+                      .build();
+        }
+      }
+    }
+    return getDeleteMemberMethod;
+  }
+
   /** Creates a new async stub that supports all call types for the service */
   public static SpacesServiceStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
@@ -257,7 +425,6 @@ public interface AsyncService {
      *
      *
      * 
-     * [Developer Preview](https://developers.google.com/workspace/preview).
      * Creates a space.
      * 
*/ @@ -272,8 +439,9 @@ default void createSpace( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
-     * Gets a space by `space_id` or `meeting_code`.
+     * Gets details about a meeting space.
+     * For an example, see [Get a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#get-meeting-space).
      * 
*/ default void getSpace( @@ -286,8 +454,9 @@ default void getSpace( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
-     * Updates a space.
+     * Updates details about a meeting space.
+     * For an example, see [Update a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#update-meeting-space).
      * 
*/ default void updateSpace( @@ -301,8 +470,9 @@ default void updateSpace( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
-     * Ends an active conference (if there is one).
+     * Ends an active conference (if there's one).
+     * For an example, see [End active
+     * conference](https://developers.google.com/meet/api/guides/meeting-spaces#end-active-conference).
      * 
*/ default void endActiveConference( @@ -311,6 +481,78 @@ default void endActiveConference( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getEndActiveConferenceMethod(), responseObserver); } + + /** + * + * + *
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * Create a member.
+     * This API supports the `fields` parameter in
+     * [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters).
+     * When the `fields` parameter is omitted, this API response will default to
+     * "name,email,role,user".
+     * 
+ */ + default void createMember( + com.google.apps.meet.v2beta.CreateMemberRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateMemberMethod(), responseObserver); + } + + /** + * + * + *
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * Get a member.
+     * This API supports the `fields` parameter in
+     * [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters).
+     * When the `fields` parameter is omitted, this API response will default to
+     * "name,email,role,user".
+     * 
+ */ + default void getMember( + com.google.apps.meet.v2beta.GetMemberRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMemberMethod(), responseObserver); + } + + /** + * + * + *
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * List members.
+     * This API supports the `fields` parameter in
+     * [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters).
+     * When the `fields` parameter is omitted this API response will default to
+     * "name,email,role,user".
+     * 
+ */ + default void listMembers( + com.google.apps.meet.v2beta.ListMembersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListMembersMethod(), responseObserver); + } + + /** + * + * + *
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * Delete the member who was previously assigned roles in the space.
+     * 
+ */ + default void deleteMember( + com.google.apps.meet.v2beta.DeleteMemberRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteMemberMethod(), responseObserver); + } } /** @@ -351,7 +593,6 @@ protected SpacesServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions c * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
      * Creates a space.
      * 
*/ @@ -368,8 +609,9 @@ public void createSpace( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
-     * Gets a space by `space_id` or `meeting_code`.
+     * Gets details about a meeting space.
+     * For an example, see [Get a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#get-meeting-space).
      * 
*/ public void getSpace( @@ -383,8 +625,9 @@ public void getSpace( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
-     * Updates a space.
+     * Updates details about a meeting space.
+     * For an example, see [Update a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#update-meeting-space).
      * 
*/ public void updateSpace( @@ -400,8 +643,9 @@ public void updateSpace( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
-     * Ends an active conference (if there is one).
+     * Ends an active conference (if there's one).
+     * For an example, see [End active
+     * conference](https://developers.google.com/meet/api/guides/meeting-spaces#end-active-conference).
      * 
*/ public void endActiveConference( @@ -412,6 +656,85 @@ public void endActiveConference( request, responseObserver); } + + /** + * + * + *
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * Create a member.
+     * This API supports the `fields` parameter in
+     * [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters).
+     * When the `fields` parameter is omitted, this API response will default to
+     * "name,email,role,user".
+     * 
+ */ + public void createMember( + com.google.apps.meet.v2beta.CreateMemberRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateMemberMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * Get a member.
+     * This API supports the `fields` parameter in
+     * [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters).
+     * When the `fields` parameter is omitted, this API response will default to
+     * "name,email,role,user".
+     * 
+ */ + public void getMember( + com.google.apps.meet.v2beta.GetMemberRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMemberMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * List members.
+     * This API supports the `fields` parameter in
+     * [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters).
+     * When the `fields` parameter is omitted this API response will default to
+     * "name,email,role,user".
+     * 
+ */ + public void listMembers( + com.google.apps.meet.v2beta.ListMembersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMembersMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * Delete the member who was previously assigned roles in the space.
+     * 
+ */ + public void deleteMember( + com.google.apps.meet.v2beta.DeleteMemberRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteMemberMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -437,7 +760,6 @@ protected SpacesServiceBlockingStub build( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
      * Creates a space.
      * 
*/ @@ -451,8 +773,9 @@ public com.google.apps.meet.v2beta.Space createSpace( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
-     * Gets a space by `space_id` or `meeting_code`.
+     * Gets details about a meeting space.
+     * For an example, see [Get a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#get-meeting-space).
      * 
*/ public com.google.apps.meet.v2beta.Space getSpace( @@ -465,8 +788,9 @@ public com.google.apps.meet.v2beta.Space getSpace( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
-     * Updates a space.
+     * Updates details about a meeting space.
+     * For an example, see [Update a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#update-meeting-space).
      * 
*/ public com.google.apps.meet.v2beta.Space updateSpace( @@ -479,8 +803,9 @@ public com.google.apps.meet.v2beta.Space updateSpace( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
-     * Ends an active conference (if there is one).
+     * Ends an active conference (if there's one).
+     * For an example, see [End active
+     * conference](https://developers.google.com/meet/api/guides/meeting-spaces#end-active-conference).
      * 
*/ public com.google.protobuf.Empty endActiveConference( @@ -488,6 +813,74 @@ public com.google.protobuf.Empty endActiveConference( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getEndActiveConferenceMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * Create a member.
+     * This API supports the `fields` parameter in
+     * [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters).
+     * When the `fields` parameter is omitted, this API response will default to
+     * "name,email,role,user".
+     * 
+ */ + public com.google.apps.meet.v2beta.Member createMember( + com.google.apps.meet.v2beta.CreateMemberRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateMemberMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * Get a member.
+     * This API supports the `fields` parameter in
+     * [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters).
+     * When the `fields` parameter is omitted, this API response will default to
+     * "name,email,role,user".
+     * 
+ */ + public com.google.apps.meet.v2beta.Member getMember( + com.google.apps.meet.v2beta.GetMemberRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMemberMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * List members.
+     * This API supports the `fields` parameter in
+     * [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters).
+     * When the `fields` parameter is omitted this API response will default to
+     * "name,email,role,user".
+     * 
+ */ + public com.google.apps.meet.v2beta.ListMembersResponse listMembers( + com.google.apps.meet.v2beta.ListMembersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMembersMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * Delete the member who was previously assigned roles in the space.
+     * 
+ */ + public com.google.protobuf.Empty deleteMember( + com.google.apps.meet.v2beta.DeleteMemberRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteMemberMethod(), getCallOptions(), request); + } } /** @@ -513,7 +906,6 @@ protected SpacesServiceFutureStub build( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
      * Creates a space.
      * 
*/ @@ -527,8 +919,9 @@ protected SpacesServiceFutureStub build( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
-     * Gets a space by `space_id` or `meeting_code`.
+     * Gets details about a meeting space.
+     * For an example, see [Get a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#get-meeting-space).
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -541,8 +934,9 @@ protected SpacesServiceFutureStub build( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
-     * Updates a space.
+     * Updates details about a meeting space.
+     * For an example, see [Update a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#update-meeting-space).
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -555,8 +949,9 @@ protected SpacesServiceFutureStub build( * * *
-     * [Developer Preview](https://developers.google.com/workspace/preview).
-     * Ends an active conference (if there is one).
+     * Ends an active conference (if there's one).
+     * For an example, see [End active
+     * conference](https://developers.google.com/meet/api/guides/meeting-spaces#end-active-conference).
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -564,12 +959,85 @@ protected SpacesServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getEndActiveConferenceMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * Create a member.
+     * This API supports the `fields` parameter in
+     * [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters).
+     * When the `fields` parameter is omitted, this API response will default to
+     * "name,email,role,user".
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createMember(com.google.apps.meet.v2beta.CreateMemberRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateMemberMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * Get a member.
+     * This API supports the `fields` parameter in
+     * [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters).
+     * When the `fields` parameter is omitted, this API response will default to
+     * "name,email,role,user".
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getMember(com.google.apps.meet.v2beta.GetMemberRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetMemberMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * List members.
+     * This API supports the `fields` parameter in
+     * [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters).
+     * When the `fields` parameter is omitted this API response will default to
+     * "name,email,role,user".
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.apps.meet.v2beta.ListMembersResponse> + listMembers(com.google.apps.meet.v2beta.ListMembersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListMembersMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * Delete the member who was previously assigned roles in the space.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteMember(com.google.apps.meet.v2beta.DeleteMemberRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteMemberMethod(), getCallOptions()), request); + } } private static final int METHODID_CREATE_SPACE = 0; private static final int METHODID_GET_SPACE = 1; private static final int METHODID_UPDATE_SPACE = 2; private static final int METHODID_END_ACTIVE_CONFERENCE = 3; + private static final int METHODID_CREATE_MEMBER = 4; + private static final int METHODID_GET_MEMBER = 5; + private static final int METHODID_LIST_MEMBERS = 6; + private static final int METHODID_DELETE_MEMBER = 7; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -608,6 +1076,27 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.apps.meet.v2beta.EndActiveConferenceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_CREATE_MEMBER: + serviceImpl.createMember( + (com.google.apps.meet.v2beta.CreateMemberRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_MEMBER: + serviceImpl.getMember( + (com.google.apps.meet.v2beta.GetMemberRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_MEMBERS: + serviceImpl.listMembers( + (com.google.apps.meet.v2beta.ListMembersRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_MEMBER: + serviceImpl.deleteMember( + (com.google.apps.meet.v2beta.DeleteMemberRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -650,6 +1139,31 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.apps.meet.v2beta.EndActiveConferenceRequest, com.google.protobuf.Empty>(service, METHODID_END_ACTIVE_CONFERENCE))) + .addMethod( + getCreateMemberMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.apps.meet.v2beta.CreateMemberRequest, + com.google.apps.meet.v2beta.Member>(service, METHODID_CREATE_MEMBER))) + .addMethod( + getGetMemberMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.apps.meet.v2beta.GetMemberRequest, + com.google.apps.meet.v2beta.Member>(service, METHODID_GET_MEMBER))) + .addMethod( + getListMembersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.apps.meet.v2beta.ListMembersRequest, + com.google.apps.meet.v2beta.ListMembersResponse>( + service, METHODID_LIST_MEMBERS))) + .addMethod( + getDeleteMemberMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.apps.meet.v2beta.DeleteMemberRequest, com.google.protobuf.Empty>( + service, METHODID_DELETE_MEMBER))) .build(); } @@ -705,6 +1219,10 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetSpaceMethod()) .addMethod(getUpdateSpaceMethod()) .addMethod(getEndActiveConferenceMethod()) + .addMethod(getCreateMemberMethod()) + .addMethod(getGetMemberMethod()) + .addMethod(getListMembersMethod()) + .addMethod(getDeleteMemberMethod()) .build(); } } diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/EndActiveConferenceRequest.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/EndActiveConferenceRequest.java index ac44c9abda11..adbff39a2ac3 100644 --- a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/EndActiveConferenceRequest.java +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/EndActiveConferenceRequest.java @@ -72,6 +72,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. Resource name of the space.
+   *
+   * Format: `spaces/{space}`.
+   *
+   * `{space}` is the resource identifier for the space. It's a unique,
+   * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+   *
+   * For more information, see [How Meet identifies a meeting
+   * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
    * 
* * @@ -97,6 +105,14 @@ public java.lang.String getName() { * *
    * Required. Resource name of the space.
+   *
+   * Format: `spaces/{space}`.
+   *
+   * `{space}` is the resource identifier for the space. It's a unique,
+   * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+   *
+   * For more information, see [How Meet identifies a meeting
+   * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
    * 
* * @@ -466,6 +482,14 @@ public Builder mergeFrom( * *
      * Required. Resource name of the space.
+     *
+     * Format: `spaces/{space}`.
+     *
+     * `{space}` is the resource identifier for the space. It's a unique,
+     * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+     *
+     * For more information, see [How Meet identifies a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
      * 
* * @@ -490,6 +514,14 @@ public java.lang.String getName() { * *
      * Required. Resource name of the space.
+     *
+     * Format: `spaces/{space}`.
+     *
+     * `{space}` is the resource identifier for the space. It's a unique,
+     * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+     *
+     * For more information, see [How Meet identifies a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
      * 
* * @@ -514,6 +546,14 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. Resource name of the space.
+     *
+     * Format: `spaces/{space}`.
+     *
+     * `{space}` is the resource identifier for the space. It's a unique,
+     * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+     *
+     * For more information, see [How Meet identifies a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
      * 
* * @@ -537,6 +577,14 @@ public Builder setName(java.lang.String value) { * *
      * Required. Resource name of the space.
+     *
+     * Format: `spaces/{space}`.
+     *
+     * `{space}` is the resource identifier for the space. It's a unique,
+     * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+     *
+     * For more information, see [How Meet identifies a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
      * 
* * @@ -556,6 +604,14 @@ public Builder clearName() { * *
      * Required. Resource name of the space.
+     *
+     * Format: `spaces/{space}`.
+     *
+     * `{space}` is the resource identifier for the space. It's a unique,
+     * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+     *
+     * For more information, see [How Meet identifies a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
      * 
* * diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/EndActiveConferenceRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/EndActiveConferenceRequestOrBuilder.java index caa31ec41431..43f048f7f1af 100644 --- a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/EndActiveConferenceRequestOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/EndActiveConferenceRequestOrBuilder.java @@ -29,6 +29,14 @@ public interface EndActiveConferenceRequestOrBuilder * *
    * Required. Resource name of the space.
+   *
+   * Format: `spaces/{space}`.
+   *
+   * `{space}` is the resource identifier for the space. It's a unique,
+   * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+   *
+   * For more information, see [How Meet identifies a meeting
+   * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
    * 
* * @@ -43,6 +51,14 @@ public interface EndActiveConferenceRequestOrBuilder * *
    * Required. Resource name of the space.
+   *
+   * Format: `spaces/{space}`.
+   *
+   * `{space}` is the resource identifier for the space. It's a unique,
+   * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+   *
+   * For more information, see [How Meet identifies a meeting
+   * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
    * 
* * diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetSpaceRequest.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetSpaceRequest.java index f1daff9b2775..a5dd385c7cbd 100644 --- a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetSpaceRequest.java +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetSpaceRequest.java @@ -72,6 +72,24 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. Resource name of the space.
+   *
+   * Format: `spaces/{space}` or `spaces/{meetingCode}`.
+   *
+   * `{space}` is the resource identifier for the space. It's a unique,
+   * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+   *
+   * `{meetingCode}` is an alias for the space. It's a typeable, unique
+   * character string and is non-case sensitive. For example, `abc-mnop-xyz`.
+   * The maximum length is 128 characters.
+   *
+   * A `meetingCode` shouldn't be stored long term as it can become
+   * dissociated from a meeting space and can be reused for different meeting
+   * spaces in the future. Generally, a `meetingCode` expires 365 days after
+   * last use. For more information, see [Learn about meeting codes in Google
+   * Meet](https://support.google.com/meet/answer/10710509).
+   *
+   * For more information, see [How Meet identifies a meeting
+   * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
    * 
* * @@ -97,6 +115,24 @@ public java.lang.String getName() { * *
    * Required. Resource name of the space.
+   *
+   * Format: `spaces/{space}` or `spaces/{meetingCode}`.
+   *
+   * `{space}` is the resource identifier for the space. It's a unique,
+   * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+   *
+   * `{meetingCode}` is an alias for the space. It's a typeable, unique
+   * character string and is non-case sensitive. For example, `abc-mnop-xyz`.
+   * The maximum length is 128 characters.
+   *
+   * A `meetingCode` shouldn't be stored long term as it can become
+   * dissociated from a meeting space and can be reused for different meeting
+   * spaces in the future. Generally, a `meetingCode` expires 365 days after
+   * last use. For more information, see [Learn about meeting codes in Google
+   * Meet](https://support.google.com/meet/answer/10710509).
+   *
+   * For more information, see [How Meet identifies a meeting
+   * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
    * 
* * @@ -464,6 +500,24 @@ public Builder mergeFrom( * *
      * Required. Resource name of the space.
+     *
+     * Format: `spaces/{space}` or `spaces/{meetingCode}`.
+     *
+     * `{space}` is the resource identifier for the space. It's a unique,
+     * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+     *
+     * `{meetingCode}` is an alias for the space. It's a typeable, unique
+     * character string and is non-case sensitive. For example, `abc-mnop-xyz`.
+     * The maximum length is 128 characters.
+     *
+     * A `meetingCode` shouldn't be stored long term as it can become
+     * dissociated from a meeting space and can be reused for different meeting
+     * spaces in the future. Generally, a `meetingCode` expires 365 days after
+     * last use. For more information, see [Learn about meeting codes in Google
+     * Meet](https://support.google.com/meet/answer/10710509).
+     *
+     * For more information, see [How Meet identifies a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
      * 
* * @@ -488,6 +542,24 @@ public java.lang.String getName() { * *
      * Required. Resource name of the space.
+     *
+     * Format: `spaces/{space}` or `spaces/{meetingCode}`.
+     *
+     * `{space}` is the resource identifier for the space. It's a unique,
+     * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+     *
+     * `{meetingCode}` is an alias for the space. It's a typeable, unique
+     * character string and is non-case sensitive. For example, `abc-mnop-xyz`.
+     * The maximum length is 128 characters.
+     *
+     * A `meetingCode` shouldn't be stored long term as it can become
+     * dissociated from a meeting space and can be reused for different meeting
+     * spaces in the future. Generally, a `meetingCode` expires 365 days after
+     * last use. For more information, see [Learn about meeting codes in Google
+     * Meet](https://support.google.com/meet/answer/10710509).
+     *
+     * For more information, see [How Meet identifies a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
      * 
* * @@ -512,6 +584,24 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. Resource name of the space.
+     *
+     * Format: `spaces/{space}` or `spaces/{meetingCode}`.
+     *
+     * `{space}` is the resource identifier for the space. It's a unique,
+     * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+     *
+     * `{meetingCode}` is an alias for the space. It's a typeable, unique
+     * character string and is non-case sensitive. For example, `abc-mnop-xyz`.
+     * The maximum length is 128 characters.
+     *
+     * A `meetingCode` shouldn't be stored long term as it can become
+     * dissociated from a meeting space and can be reused for different meeting
+     * spaces in the future. Generally, a `meetingCode` expires 365 days after
+     * last use. For more information, see [Learn about meeting codes in Google
+     * Meet](https://support.google.com/meet/answer/10710509).
+     *
+     * For more information, see [How Meet identifies a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
      * 
* * @@ -535,6 +625,24 @@ public Builder setName(java.lang.String value) { * *
      * Required. Resource name of the space.
+     *
+     * Format: `spaces/{space}` or `spaces/{meetingCode}`.
+     *
+     * `{space}` is the resource identifier for the space. It's a unique,
+     * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+     *
+     * `{meetingCode}` is an alias for the space. It's a typeable, unique
+     * character string and is non-case sensitive. For example, `abc-mnop-xyz`.
+     * The maximum length is 128 characters.
+     *
+     * A `meetingCode` shouldn't be stored long term as it can become
+     * dissociated from a meeting space and can be reused for different meeting
+     * spaces in the future. Generally, a `meetingCode` expires 365 days after
+     * last use. For more information, see [Learn about meeting codes in Google
+     * Meet](https://support.google.com/meet/answer/10710509).
+     *
+     * For more information, see [How Meet identifies a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
      * 
* * @@ -554,6 +662,24 @@ public Builder clearName() { * *
      * Required. Resource name of the space.
+     *
+     * Format: `spaces/{space}` or `spaces/{meetingCode}`.
+     *
+     * `{space}` is the resource identifier for the space. It's a unique,
+     * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+     *
+     * `{meetingCode}` is an alias for the space. It's a typeable, unique
+     * character string and is non-case sensitive. For example, `abc-mnop-xyz`.
+     * The maximum length is 128 characters.
+     *
+     * A `meetingCode` shouldn't be stored long term as it can become
+     * dissociated from a meeting space and can be reused for different meeting
+     * spaces in the future. Generally, a `meetingCode` expires 365 days after
+     * last use. For more information, see [Learn about meeting codes in Google
+     * Meet](https://support.google.com/meet/answer/10710509).
+     *
+     * For more information, see [How Meet identifies a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
      * 
* * diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetSpaceRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetSpaceRequestOrBuilder.java index 44a2db2154b2..420c06950dde 100644 --- a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetSpaceRequestOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/GetSpaceRequestOrBuilder.java @@ -29,6 +29,24 @@ public interface GetSpaceRequestOrBuilder * *
    * Required. Resource name of the space.
+   *
+   * Format: `spaces/{space}` or `spaces/{meetingCode}`.
+   *
+   * `{space}` is the resource identifier for the space. It's a unique,
+   * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+   *
+   * `{meetingCode}` is an alias for the space. It's a typeable, unique
+   * character string and is non-case sensitive. For example, `abc-mnop-xyz`.
+   * The maximum length is 128 characters.
+   *
+   * A `meetingCode` shouldn't be stored long term as it can become
+   * dissociated from a meeting space and can be reused for different meeting
+   * spaces in the future. Generally, a `meetingCode` expires 365 days after
+   * last use. For more information, see [Learn about meeting codes in Google
+   * Meet](https://support.google.com/meet/answer/10710509).
+   *
+   * For more information, see [How Meet identifies a meeting
+   * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
    * 
* * @@ -43,6 +61,24 @@ public interface GetSpaceRequestOrBuilder * *
    * Required. Resource name of the space.
+   *
+   * Format: `spaces/{space}` or `spaces/{meetingCode}`.
+   *
+   * `{space}` is the resource identifier for the space. It's a unique,
+   * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+   *
+   * `{meetingCode}` is an alias for the space. It's a typeable, unique
+   * character string and is non-case sensitive. For example, `abc-mnop-xyz`.
+   * The maximum length is 128 characters.
+   *
+   * A `meetingCode` shouldn't be stored long term as it can become
+   * dissociated from a meeting space and can be reused for different meeting
+   * spaces in the future. Generally, a `meetingCode` expires 365 days after
+   * last use. For more information, see [Learn about meeting codes in Google
+   * Meet](https://support.google.com/meet/answer/10710509).
+   *
+   * For more information, see [How Meet identifies a meeting
+   * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
    * 
* * diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListConferenceRecordsRequest.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListConferenceRecordsRequest.java index 21915fe28b6f..53733758ecea 100644 --- a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListConferenceRecordsRequest.java +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListConferenceRecordsRequest.java @@ -153,7 +153,13 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * `start_time` * * `end_time` * - * For example, `space.meeting_code = "abc-mnop-xyz"`. + * For example, consider the following filters: + * + * * `space.name = "spaces/NAME"` + * * `space.meeting_code = "abc-mnop-xyz"` + * * `start_time>="2024-01-01T00:00:00.000Z" AND + * start_time<="2024-01-02T00:00:00.000Z"` + * * `end_time IS NULL` *
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -185,7 +191,13 @@ public java.lang.String getFilter() { * * `start_time` * * `end_time` * - * For example, `space.meeting_code = "abc-mnop-xyz"`. + * For example, consider the following filters: + * + * * `space.name = "spaces/NAME"` + * * `space.meeting_code = "abc-mnop-xyz"` + * * `start_time>="2024-01-01T00:00:00.000Z" AND + * start_time<="2024-01-02T00:00:00.000Z"` + * * `end_time IS NULL` *
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -775,7 +787,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * `start_time` * * `end_time` * - * For example, `space.meeting_code = "abc-mnop-xyz"`. + * For example, consider the following filters: + * + * * `space.name = "spaces/NAME"` + * * `space.meeting_code = "abc-mnop-xyz"` + * * `start_time>="2024-01-01T00:00:00.000Z" AND + * start_time<="2024-01-02T00:00:00.000Z"` + * * `end_time IS NULL` *
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -806,7 +824,13 @@ public java.lang.String getFilter() { * * `start_time` * * `end_time` * - * For example, `space.meeting_code = "abc-mnop-xyz"`. + * For example, consider the following filters: + * + * * `space.name = "spaces/NAME"` + * * `space.meeting_code = "abc-mnop-xyz"` + * * `start_time>="2024-01-01T00:00:00.000Z" AND + * start_time<="2024-01-02T00:00:00.000Z"` + * * `end_time IS NULL` *
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -837,7 +861,13 @@ public com.google.protobuf.ByteString getFilterBytes() { * * `start_time` * * `end_time` * - * For example, `space.meeting_code = "abc-mnop-xyz"`. + * For example, consider the following filters: + * + * * `space.name = "spaces/NAME"` + * * `space.meeting_code = "abc-mnop-xyz"` + * * `start_time>="2024-01-01T00:00:00.000Z" AND + * start_time<="2024-01-02T00:00:00.000Z"` + * * `end_time IS NULL` *
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -867,7 +897,13 @@ public Builder setFilter(java.lang.String value) { * * `start_time` * * `end_time` * - * For example, `space.meeting_code = "abc-mnop-xyz"`. + * For example, consider the following filters: + * + * * `space.name = "spaces/NAME"` + * * `space.meeting_code = "abc-mnop-xyz"` + * * `start_time>="2024-01-01T00:00:00.000Z" AND + * start_time<="2024-01-02T00:00:00.000Z"` + * * `end_time IS NULL` *
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -893,7 +929,13 @@ public Builder clearFilter() { * * `start_time` * * `end_time` * - * For example, `space.meeting_code = "abc-mnop-xyz"`. + * For example, consider the following filters: + * + * * `space.name = "spaces/NAME"` + * * `space.meeting_code = "abc-mnop-xyz"` + * * `start_time>="2024-01-01T00:00:00.000Z" AND + * start_time<="2024-01-02T00:00:00.000Z"` + * * `end_time IS NULL` *
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListConferenceRecordsRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListConferenceRecordsRequestOrBuilder.java index 75ad538f482f..ccafca92ef11 100644 --- a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListConferenceRecordsRequestOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ListConferenceRecordsRequestOrBuilder.java @@ -78,7 +78,13 @@ public interface ListConferenceRecordsRequestOrBuilder * * `start_time` * * `end_time` * - * For example, `space.meeting_code = "abc-mnop-xyz"`. + * For example, consider the following filters: + * + * * `space.name = "spaces/NAME"` + * * `space.meeting_code = "abc-mnop-xyz"` + * * `start_time>="2024-01-01T00:00:00.000Z" AND + * start_time<="2024-01-02T00:00:00.000Z"` + * * `end_time IS NULL` *
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -99,7 +105,13 @@ public interface ListConferenceRecordsRequestOrBuilder * * `start_time` * * `end_time` * - * For example, `space.meeting_code = "abc-mnop-xyz"`. + * For example, consider the following filters: + * + * * `space.name = "spaces/NAME"` + * * `space.meeting_code = "abc-mnop-xyz"` + * * `start_time>="2024-01-01T00:00:00.000Z" AND + * start_time<="2024-01-02T00:00:00.000Z"` + * * `end_time IS NULL` *
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ServiceProto.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ServiceProto.java index 7cdd3db5ecd9..0aaa3868f21f 100644 --- a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ServiceProto.java +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/ServiceProto.java @@ -190,7 +190,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "page_token\030\003 \001(\t\"z\n\035ListTranscriptEntrie" + "sResponse\022@\n\022transcript_entries\030\001 \003(\0132$." + "google.apps.meet.v2.TranscriptEntry\022\027\n\017n" - + "ext_page_token\030\002 \001(\t2\261\005\n\rSpacesService\022u" + + "ext_page_token\030\002 \001(\t2\352\005\n\rSpacesService\022u" + "\n\013CreateSpace\022\'.google.apps.meet.v2.Crea" + "teSpaceRequest\032\032.google.apps.meet.v2.Spa" + "ce\"!\332A\005space\202\323\344\223\002\023\"\n/v2/spaces:\005space\022p\n" @@ -204,72 +204,73 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ce\022/.google.apps.meet.v2.EndActiveConfer" + "enceRequest\032\026.google.protobuf.Empty\"9\332A\004" + "name\202\323\344\223\002,\"\'/v2/{name=spaces/*}:endActiv" - + "eConference:\001*\032\207\001\312A\023meet.googleapis.com\322" - + "Anhttps://www.googleapis.com/auth/meetin" - + "gs.space.created,https://www.googleapis." - + "com/auth/meetings.space.readonly2\343\021\n\030Con" - + "ferenceRecordsService\022\234\001\n\023GetConferenceR" - + "ecord\022/.google.apps.meet.v2.GetConferenc" - + "eRecordRequest\032%.google.apps.meet.v2.Con" - + "ferenceRecord\"-\332A\004name\202\323\344\223\002 \022\036/v2/{name=" - + "conferenceRecords/*}\022\235\001\n\025ListConferenceR" - + "ecords\0221.google.apps.meet.v2.ListConfere" - + "nceRecordsRequest\0322.google.apps.meet.v2." - + "ListConferenceRecordsResponse\"\035\202\323\344\223\002\027\022\025/" - + "v2/conferenceRecords\022\234\001\n\016GetParticipant\022" - + "*.google.apps.meet.v2.GetParticipantRequ" - + "est\032 .google.apps.meet.v2.Participant\"<\332" - + "A\004name\202\323\344\223\002/\022-/v2/{name=conferenceRecord" - + "s/*/participants/*}\022\257\001\n\020ListParticipants" - + "\022,.google.apps.meet.v2.ListParticipantsR" - + "equest\032-.google.apps.meet.v2.ListPartici" - + "pantsResponse\">\332A\006parent\202\323\344\223\002/\022-/v2/{par" - + "ent=conferenceRecords/*}/participants\022\307\001" - + "\n\025GetParticipantSession\0221.google.apps.me" - + "et.v2.GetParticipantSessionRequest\032\'.goo" - + "gle.apps.meet.v2.ParticipantSession\"R\332A\004" - + "name\202\323\344\223\002E\022C/v2/{name=conferenceRecords/" - + "*/participants/*/participantSessions/*}\022" - + "\332\001\n\027ListParticipantSessions\0223.google.app" - + "s.meet.v2.ListParticipantSessionsRequest" - + "\0324.google.apps.meet.v2.ListParticipantSe" - + "ssionsResponse\"T\332A\006parent\202\323\344\223\002E\022C/v2/{pa" - + "rent=conferenceRecords/*/participants/*}" - + "/participantSessions\022\224\001\n\014GetRecording\022(." - + "google.apps.meet.v2.GetRecordingRequest\032" - + "\036.google.apps.meet.v2.Recording\":\332A\004name" - + "\202\323\344\223\002-\022+/v2/{name=conferenceRecords/*/re" - + "cordings/*}\022\247\001\n\016ListRecordings\022*.google." - + "apps.meet.v2.ListRecordingsRequest\032+.goo" - + "gle.apps.meet.v2.ListRecordingsResponse\"" - + "<\332A\006parent\202\323\344\223\002-\022+/v2/{parent=conference" - + "Records/*}/recordings\022\230\001\n\rGetTranscript\022" - + ").google.apps.meet.v2.GetTranscriptReque" - + "st\032\037.google.apps.meet.v2.Transcript\";\332A\004" - + "name\202\323\344\223\002.\022,/v2/{name=conferenceRecords/" - + "*/transcripts/*}\022\253\001\n\017ListTranscripts\022+.g" - + "oogle.apps.meet.v2.ListTranscriptsReques" - + "t\032,.google.apps.meet.v2.ListTranscriptsR" - + "esponse\"=\332A\006parent\202\323\344\223\002.\022,/v2/{parent=co" - + "nferenceRecords/*}/transcripts\022\261\001\n\022GetTr" - + "anscriptEntry\022..google.apps.meet.v2.GetT" - + "ranscriptEntryRequest\032$.google.apps.meet" - + ".v2.TranscriptEntry\"E\332A\004name\202\323\344\223\0028\0226/v2/" - + "{name=conferenceRecords/*/transcripts/*/" - + "entries/*}\022\307\001\n\025ListTranscriptEntries\0221.g" - + "oogle.apps.meet.v2.ListTranscriptEntries" - + "Request\0322.google.apps.meet.v2.ListTransc" - + "riptEntriesResponse\"G\332A\006parent\202\323\344\223\0028\0226/v" - + "2/{parent=conferenceRecords/*/transcript" - + "s/*}/entries\032\207\001\312A\023meet.googleapis.com\322An" - + "https://www.googleapis.com/auth/meetings" - + ".space.created,https://www.googleapis.co" - + "m/auth/meetings.space.readonlyB\241\001\n\027com.g" - + "oogle.apps.meet.v2B\014ServiceProtoP\001Z1clou" - + "d.google.com/go/apps/meet/apiv2/meetpb;m" - + "eetpb\252\002\023Google.Apps.Meet.V2\312\002\023Google\\App" - + "s\\Meet\\V2\352\002\026Google::Apps::Meet::V2b\006prot" - + "o3" + + "eConference:\001*\032\300\001\312A\023meet.googleapis.com\322" + + "A\246\001https://www.googleapis.com/auth/meeti" + + "ngs.space.created,https://www.googleapis" + + ".com/auth/meetings.space.readonly,https:" + + "//www.googleapis.com/auth/meetings.space" + + ".settings2\343\021\n\030ConferenceRecordsService\022\234" + + "\001\n\023GetConferenceRecord\022/.google.apps.mee" + + "t.v2.GetConferenceRecordRequest\032%.google" + + ".apps.meet.v2.ConferenceRecord\"-\332A\004name\202" + + "\323\344\223\002 \022\036/v2/{name=conferenceRecords/*}\022\235\001" + + "\n\025ListConferenceRecords\0221.google.apps.me" + + "et.v2.ListConferenceRecordsRequest\0322.goo" + + "gle.apps.meet.v2.ListConferenceRecordsRe" + + "sponse\"\035\202\323\344\223\002\027\022\025/v2/conferenceRecords\022\234\001" + + "\n\016GetParticipant\022*.google.apps.meet.v2.G" + + "etParticipantRequest\032 .google.apps.meet." + + "v2.Participant\"<\332A\004name\202\323\344\223\002/\022-/v2/{name" + + "=conferenceRecords/*/participants/*}\022\257\001\n" + + "\020ListParticipants\022,.google.apps.meet.v2." + + "ListParticipantsRequest\032-.google.apps.me" + + "et.v2.ListParticipantsResponse\">\332A\006paren" + + "t\202\323\344\223\002/\022-/v2/{parent=conferenceRecords/*" + + "}/participants\022\307\001\n\025GetParticipantSession" + + "\0221.google.apps.meet.v2.GetParticipantSes" + + "sionRequest\032\'.google.apps.meet.v2.Partic" + + "ipantSession\"R\332A\004name\202\323\344\223\002E\022C/v2/{name=c" + + "onferenceRecords/*/participants/*/partic" + + "ipantSessions/*}\022\332\001\n\027ListParticipantSess" + + "ions\0223.google.apps.meet.v2.ListParticipa" + + "ntSessionsRequest\0324.google.apps.meet.v2." + + "ListParticipantSessionsResponse\"T\332A\006pare" + + "nt\202\323\344\223\002E\022C/v2/{parent=conferenceRecords/" + + "*/participants/*}/participantSessions\022\224\001" + + "\n\014GetRecording\022(.google.apps.meet.v2.Get" + + "RecordingRequest\032\036.google.apps.meet.v2.R" + + "ecording\":\332A\004name\202\323\344\223\002-\022+/v2/{name=confe" + + "renceRecords/*/recordings/*}\022\247\001\n\016ListRec" + + "ordings\022*.google.apps.meet.v2.ListRecord" + + "ingsRequest\032+.google.apps.meet.v2.ListRe" + + "cordingsResponse\"<\332A\006parent\202\323\344\223\002-\022+/v2/{" + + "parent=conferenceRecords/*}/recordings\022\230" + + "\001\n\rGetTranscript\022).google.apps.meet.v2.G" + + "etTranscriptRequest\032\037.google.apps.meet.v" + + "2.Transcript\";\332A\004name\202\323\344\223\002.\022,/v2/{name=c" + + "onferenceRecords/*/transcripts/*}\022\253\001\n\017Li" + + "stTranscripts\022+.google.apps.meet.v2.List" + + "TranscriptsRequest\032,.google.apps.meet.v2" + + ".ListTranscriptsResponse\"=\332A\006parent\202\323\344\223\002" + + ".\022,/v2/{parent=conferenceRecords/*}/tran" + + "scripts\022\261\001\n\022GetTranscriptEntry\022..google." + + "apps.meet.v2.GetTranscriptEntryRequest\032$" + + ".google.apps.meet.v2.TranscriptEntry\"E\332A" + + "\004name\202\323\344\223\0028\0226/v2/{name=conferenceRecords" + + "/*/transcripts/*/entries/*}\022\307\001\n\025ListTran" + + "scriptEntries\0221.google.apps.meet.v2.List" + + "TranscriptEntriesRequest\0322.google.apps.m" + + "eet.v2.ListTranscriptEntriesResponse\"G\332A" + + "\006parent\202\323\344\223\0028\0226/v2/{parent=conferenceRec" + + "ords/*/transcripts/*}/entries\032\207\001\312A\023meet." + + "googleapis.com\322Anhttps://www.googleapis." + + "com/auth/meetings.space.created,https://" + + "www.googleapis.com/auth/meetings.space.r" + + "eadonlyB\241\001\n\027com.google.apps.meet.v2B\014Ser" + + "viceProtoP\001Z1cloud.google.com/go/apps/me" + + "et/apiv2/meetpb;meetpb\252\002\023Google.Apps.Mee" + + "t.V2\312\002\023Google\\Apps\\Meet\\V2\352\002\026Google::App" + + "s::Meet::V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/Space.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/Space.java index ec9f2a16181f..996eb1599df5 100644 --- a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/Space.java +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/Space.java @@ -75,7 +75,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Immutable. Resource name of the space.
-   * Format: `spaces/{space}`
+   *
+   * Format: `spaces/{space}`.
+   *
+   * `{space}` is the resource identifier for the space. It's a unique,
+   * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+   *
+   * For more information, see [How Meet identifies a meeting
+   * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -99,7 +106,14 @@ public java.lang.String getName() { * *
    * Immutable. Resource name of the space.
-   * Format: `spaces/{space}`
+   *
+   * Format: `spaces/{space}`.
+   *
+   * `{space}` is the resource identifier for the space. It's a unique,
+   * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+   *
+   * For more information, see [How Meet identifies a meeting
+   * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -127,7 +141,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * Output only. URI used to join meetings, such as
+   * Output only. URI used to join meetings consisting of
+   * `https://meet.google.com/` followed by the `meeting_code`. For example,
    * `https://meet.google.com/abc-mnop-xyz`.
    * 
* @@ -151,7 +166,8 @@ public java.lang.String getMeetingUri() { * * *
-   * Output only. URI used to join meetings, such as
+   * Output only. URI used to join meetings consisting of
+   * `https://meet.google.com/` followed by the `meeting_code`. For example,
    * `https://meet.google.com/abc-mnop-xyz`.
    * 
* @@ -180,9 +196,13 @@ public com.google.protobuf.ByteString getMeetingUriBytes() { * * *
-   * Output only. Type friendly code to join the meeting. Format:
-   * `[a-z]+-[a-z]+-[a-z]+` such as `abc-mnop-xyz`. The maximum length is 128
-   * characters. Can only be used as an alias of the space ID to get the space.
+   * Output only. Type friendly unique string used to join the meeting.
+   *
+   * Format: `[a-z]+-[a-z]+-[a-z]+`. For example, `abc-mnop-xyz`.
+   *
+   * The maximum length is 128 characters.
+   *
+   * Can only be used as an alias of the space name to get the space.
    * 
* * string meeting_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -205,9 +225,13 @@ public java.lang.String getMeetingCode() { * * *
-   * Output only. Type friendly code to join the meeting. Format:
-   * `[a-z]+-[a-z]+-[a-z]+` such as `abc-mnop-xyz`. The maximum length is 128
-   * characters. Can only be used as an alias of the space ID to get the space.
+   * Output only. Type friendly unique string used to join the meeting.
+   *
+   * Format: `[a-z]+-[a-z]+-[a-z]+`. For example, `abc-mnop-xyz`.
+   *
+   * The maximum length is 128 characters.
+   *
+   * Can only be used as an alias of the space name to get the space.
    * 
* * string meeting_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -793,7 +817,14 @@ public Builder mergeFrom( * *
      * Immutable. Resource name of the space.
-     * Format: `spaces/{space}`
+     *
+     * Format: `spaces/{space}`.
+     *
+     * `{space}` is the resource identifier for the space. It's a unique,
+     * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+     *
+     * For more information, see [How Meet identifies a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -816,7 +847,14 @@ public java.lang.String getName() { * *
      * Immutable. Resource name of the space.
-     * Format: `spaces/{space}`
+     *
+     * Format: `spaces/{space}`.
+     *
+     * `{space}` is the resource identifier for the space. It's a unique,
+     * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+     *
+     * For more information, see [How Meet identifies a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -839,7 +877,14 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Immutable. Resource name of the space.
-     * Format: `spaces/{space}`
+     *
+     * Format: `spaces/{space}`.
+     *
+     * `{space}` is the resource identifier for the space. It's a unique,
+     * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+     *
+     * For more information, see [How Meet identifies a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -861,7 +906,14 @@ public Builder setName(java.lang.String value) { * *
      * Immutable. Resource name of the space.
-     * Format: `spaces/{space}`
+     *
+     * Format: `spaces/{space}`.
+     *
+     * `{space}` is the resource identifier for the space. It's a unique,
+     * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+     *
+     * For more information, see [How Meet identifies a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -879,7 +931,14 @@ public Builder clearName() { * *
      * Immutable. Resource name of the space.
-     * Format: `spaces/{space}`
+     *
+     * Format: `spaces/{space}`.
+     *
+     * `{space}` is the resource identifier for the space. It's a unique,
+     * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+     *
+     * For more information, see [How Meet identifies a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -903,7 +962,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. URI used to join meetings, such as
+     * Output only. URI used to join meetings consisting of
+     * `https://meet.google.com/` followed by the `meeting_code`. For example,
      * `https://meet.google.com/abc-mnop-xyz`.
      * 
* @@ -926,7 +986,8 @@ public java.lang.String getMeetingUri() { * * *
-     * Output only. URI used to join meetings, such as
+     * Output only. URI used to join meetings consisting of
+     * `https://meet.google.com/` followed by the `meeting_code`. For example,
      * `https://meet.google.com/abc-mnop-xyz`.
      * 
* @@ -949,7 +1010,8 @@ public com.google.protobuf.ByteString getMeetingUriBytes() { * * *
-     * Output only. URI used to join meetings, such as
+     * Output only. URI used to join meetings consisting of
+     * `https://meet.google.com/` followed by the `meeting_code`. For example,
      * `https://meet.google.com/abc-mnop-xyz`.
      * 
* @@ -971,7 +1033,8 @@ public Builder setMeetingUri(java.lang.String value) { * * *
-     * Output only. URI used to join meetings, such as
+     * Output only. URI used to join meetings consisting of
+     * `https://meet.google.com/` followed by the `meeting_code`. For example,
      * `https://meet.google.com/abc-mnop-xyz`.
      * 
* @@ -989,7 +1052,8 @@ public Builder clearMeetingUri() { * * *
-     * Output only. URI used to join meetings, such as
+     * Output only. URI used to join meetings consisting of
+     * `https://meet.google.com/` followed by the `meeting_code`. For example,
      * `https://meet.google.com/abc-mnop-xyz`.
      * 
* @@ -1014,9 +1078,13 @@ public Builder setMeetingUriBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. Type friendly code to join the meeting. Format:
-     * `[a-z]+-[a-z]+-[a-z]+` such as `abc-mnop-xyz`. The maximum length is 128
-     * characters. Can only be used as an alias of the space ID to get the space.
+     * Output only. Type friendly unique string used to join the meeting.
+     *
+     * Format: `[a-z]+-[a-z]+-[a-z]+`. For example, `abc-mnop-xyz`.
+     *
+     * The maximum length is 128 characters.
+     *
+     * Can only be used as an alias of the space name to get the space.
      * 
* * string meeting_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1038,9 +1106,13 @@ public java.lang.String getMeetingCode() { * * *
-     * Output only. Type friendly code to join the meeting. Format:
-     * `[a-z]+-[a-z]+-[a-z]+` such as `abc-mnop-xyz`. The maximum length is 128
-     * characters. Can only be used as an alias of the space ID to get the space.
+     * Output only. Type friendly unique string used to join the meeting.
+     *
+     * Format: `[a-z]+-[a-z]+-[a-z]+`. For example, `abc-mnop-xyz`.
+     *
+     * The maximum length is 128 characters.
+     *
+     * Can only be used as an alias of the space name to get the space.
      * 
* * string meeting_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1062,9 +1134,13 @@ public com.google.protobuf.ByteString getMeetingCodeBytes() { * * *
-     * Output only. Type friendly code to join the meeting. Format:
-     * `[a-z]+-[a-z]+-[a-z]+` such as `abc-mnop-xyz`. The maximum length is 128
-     * characters. Can only be used as an alias of the space ID to get the space.
+     * Output only. Type friendly unique string used to join the meeting.
+     *
+     * Format: `[a-z]+-[a-z]+-[a-z]+`. For example, `abc-mnop-xyz`.
+     *
+     * The maximum length is 128 characters.
+     *
+     * Can only be used as an alias of the space name to get the space.
      * 
* * string meeting_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1085,9 +1161,13 @@ public Builder setMeetingCode(java.lang.String value) { * * *
-     * Output only. Type friendly code to join the meeting. Format:
-     * `[a-z]+-[a-z]+-[a-z]+` such as `abc-mnop-xyz`. The maximum length is 128
-     * characters. Can only be used as an alias of the space ID to get the space.
+     * Output only. Type friendly unique string used to join the meeting.
+     *
+     * Format: `[a-z]+-[a-z]+-[a-z]+`. For example, `abc-mnop-xyz`.
+     *
+     * The maximum length is 128 characters.
+     *
+     * Can only be used as an alias of the space name to get the space.
      * 
* * string meeting_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1104,9 +1184,13 @@ public Builder clearMeetingCode() { * * *
-     * Output only. Type friendly code to join the meeting. Format:
-     * `[a-z]+-[a-z]+-[a-z]+` such as `abc-mnop-xyz`. The maximum length is 128
-     * characters. Can only be used as an alias of the space ID to get the space.
+     * Output only. Type friendly unique string used to join the meeting.
+     *
+     * Format: `[a-z]+-[a-z]+-[a-z]+`. For example, `abc-mnop-xyz`.
+     *
+     * The maximum length is 128 characters.
+     *
+     * Can only be used as an alias of the space name to get the space.
      * 
* * string meeting_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SpaceOrBuilder.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SpaceOrBuilder.java index 42b0d7eea581..4ef2a6a0d5c1 100644 --- a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SpaceOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/SpaceOrBuilder.java @@ -29,7 +29,14 @@ public interface SpaceOrBuilder * *
    * Immutable. Resource name of the space.
-   * Format: `spaces/{space}`
+   *
+   * Format: `spaces/{space}`.
+   *
+   * `{space}` is the resource identifier for the space. It's a unique,
+   * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+   *
+   * For more information, see [How Meet identifies a meeting
+   * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -42,7 +49,14 @@ public interface SpaceOrBuilder * *
    * Immutable. Resource name of the space.
-   * Format: `spaces/{space}`
+   *
+   * Format: `spaces/{space}`.
+   *
+   * `{space}` is the resource identifier for the space. It's a unique,
+   * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+   *
+   * For more information, see [How Meet identifies a meeting
+   * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -55,7 +69,8 @@ public interface SpaceOrBuilder * * *
-   * Output only. URI used to join meetings, such as
+   * Output only. URI used to join meetings consisting of
+   * `https://meet.google.com/` followed by the `meeting_code`. For example,
    * `https://meet.google.com/abc-mnop-xyz`.
    * 
* @@ -68,7 +83,8 @@ public interface SpaceOrBuilder * * *
-   * Output only. URI used to join meetings, such as
+   * Output only. URI used to join meetings consisting of
+   * `https://meet.google.com/` followed by the `meeting_code`. For example,
    * `https://meet.google.com/abc-mnop-xyz`.
    * 
* @@ -82,9 +98,13 @@ public interface SpaceOrBuilder * * *
-   * Output only. Type friendly code to join the meeting. Format:
-   * `[a-z]+-[a-z]+-[a-z]+` such as `abc-mnop-xyz`. The maximum length is 128
-   * characters. Can only be used as an alias of the space ID to get the space.
+   * Output only. Type friendly unique string used to join the meeting.
+   *
+   * Format: `[a-z]+-[a-z]+-[a-z]+`. For example, `abc-mnop-xyz`.
+   *
+   * The maximum length is 128 characters.
+   *
+   * Can only be used as an alias of the space name to get the space.
    * 
* * string meeting_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -96,9 +116,13 @@ public interface SpaceOrBuilder * * *
-   * Output only. Type friendly code to join the meeting. Format:
-   * `[a-z]+-[a-z]+-[a-z]+` such as `abc-mnop-xyz`. The maximum length is 128
-   * characters. Can only be used as an alias of the space ID to get the space.
+   * Output only. Type friendly unique string used to join the meeting.
+   *
+   * Format: `[a-z]+-[a-z]+-[a-z]+`. For example, `abc-mnop-xyz`.
+   *
+   * The maximum length is 128 characters.
+   *
+   * Can only be used as an alias of the space name to get the space.
    * 
* * string meeting_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/UpdateSpaceRequest.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/UpdateSpaceRequest.java index 17f911707309..ff852a3ef1ad 100644 --- a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/UpdateSpaceRequest.java +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/UpdateSpaceRequest.java @@ -115,9 +115,11 @@ public com.google.apps.meet.v2.SpaceOrBuilder getSpaceOrBuilder() { * *
    * Optional. Field mask used to specify the fields to be updated in the space.
-   * If update_mask isn't provided, it defaults to '*' and updates all
-   * fields provided in the request, including deleting fields not set in the
+   * If update_mask isn't provided(not set, set with empty paths, or only has ""
+   * as paths), it defaults to update all fields provided with values in the
    * request.
+   * Using "*" as update_mask will update all fields, including deleting fields
+   * not set in the request.
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -134,9 +136,11 @@ public boolean hasUpdateMask() { * *
    * Optional. Field mask used to specify the fields to be updated in the space.
-   * If update_mask isn't provided, it defaults to '*' and updates all
-   * fields provided in the request, including deleting fields not set in the
+   * If update_mask isn't provided(not set, set with empty paths, or only has ""
+   * as paths), it defaults to update all fields provided with values in the
    * request.
+   * Using "*" as update_mask will update all fields, including deleting fields
+   * not set in the request.
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -153,9 +157,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { * *
    * Optional. Field mask used to specify the fields to be updated in the space.
-   * If update_mask isn't provided, it defaults to '*' and updates all
-   * fields provided in the request, including deleting fields not set in the
+   * If update_mask isn't provided(not set, set with empty paths, or only has ""
+   * as paths), it defaults to update all fields provided with values in the
    * request.
+   * Using "*" as update_mask will update all fields, including deleting fields
+   * not set in the request.
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -751,9 +757,11 @@ public com.google.apps.meet.v2.SpaceOrBuilder getSpaceOrBuilder() { * *
      * Optional. Field mask used to specify the fields to be updated in the space.
-     * If update_mask isn't provided, it defaults to '*' and updates all
-     * fields provided in the request, including deleting fields not set in the
+     * If update_mask isn't provided(not set, set with empty paths, or only has ""
+     * as paths), it defaults to update all fields provided with values in the
      * request.
+     * Using "*" as update_mask will update all fields, including deleting fields
+     * not set in the request.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -769,9 +777,11 @@ public boolean hasUpdateMask() { * *
      * Optional. Field mask used to specify the fields to be updated in the space.
-     * If update_mask isn't provided, it defaults to '*' and updates all
-     * fields provided in the request, including deleting fields not set in the
+     * If update_mask isn't provided(not set, set with empty paths, or only has ""
+     * as paths), it defaults to update all fields provided with values in the
      * request.
+     * Using "*" as update_mask will update all fields, including deleting fields
+     * not set in the request.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -793,9 +803,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { * *
      * Optional. Field mask used to specify the fields to be updated in the space.
-     * If update_mask isn't provided, it defaults to '*' and updates all
-     * fields provided in the request, including deleting fields not set in the
+     * If update_mask isn't provided(not set, set with empty paths, or only has ""
+     * as paths), it defaults to update all fields provided with values in the
      * request.
+     * Using "*" as update_mask will update all fields, including deleting fields
+     * not set in the request.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -819,9 +831,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * *
      * Optional. Field mask used to specify the fields to be updated in the space.
-     * If update_mask isn't provided, it defaults to '*' and updates all
-     * fields provided in the request, including deleting fields not set in the
+     * If update_mask isn't provided(not set, set with empty paths, or only has ""
+     * as paths), it defaults to update all fields provided with values in the
      * request.
+     * Using "*" as update_mask will update all fields, including deleting fields
+     * not set in the request.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -842,9 +856,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * *
      * Optional. Field mask used to specify the fields to be updated in the space.
-     * If update_mask isn't provided, it defaults to '*' and updates all
-     * fields provided in the request, including deleting fields not set in the
+     * If update_mask isn't provided(not set, set with empty paths, or only has ""
+     * as paths), it defaults to update all fields provided with values in the
      * request.
+     * Using "*" as update_mask will update all fields, including deleting fields
+     * not set in the request.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -873,9 +889,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * *
      * Optional. Field mask used to specify the fields to be updated in the space.
-     * If update_mask isn't provided, it defaults to '*' and updates all
-     * fields provided in the request, including deleting fields not set in the
+     * If update_mask isn't provided(not set, set with empty paths, or only has ""
+     * as paths), it defaults to update all fields provided with values in the
      * request.
+     * Using "*" as update_mask will update all fields, including deleting fields
+     * not set in the request.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -896,9 +914,11 @@ public Builder clearUpdateMask() { * *
      * Optional. Field mask used to specify the fields to be updated in the space.
-     * If update_mask isn't provided, it defaults to '*' and updates all
-     * fields provided in the request, including deleting fields not set in the
+     * If update_mask isn't provided(not set, set with empty paths, or only has ""
+     * as paths), it defaults to update all fields provided with values in the
      * request.
+     * Using "*" as update_mask will update all fields, including deleting fields
+     * not set in the request.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -914,9 +934,11 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * *
      * Optional. Field mask used to specify the fields to be updated in the space.
-     * If update_mask isn't provided, it defaults to '*' and updates all
-     * fields provided in the request, including deleting fields not set in the
+     * If update_mask isn't provided(not set, set with empty paths, or only has ""
+     * as paths), it defaults to update all fields provided with values in the
      * request.
+     * Using "*" as update_mask will update all fields, including deleting fields
+     * not set in the request.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -936,9 +958,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * *
      * Optional. Field mask used to specify the fields to be updated in the space.
-     * If update_mask isn't provided, it defaults to '*' and updates all
-     * fields provided in the request, including deleting fields not set in the
+     * If update_mask isn't provided(not set, set with empty paths, or only has ""
+     * as paths), it defaults to update all fields provided with values in the
      * request.
+     * Using "*" as update_mask will update all fields, including deleting fields
+     * not set in the request.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/UpdateSpaceRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/UpdateSpaceRequestOrBuilder.java index 79d32cd83916..7ccb6fbcdfae 100644 --- a/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/UpdateSpaceRequestOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2/src/main/java/com/google/apps/meet/v2/UpdateSpaceRequestOrBuilder.java @@ -64,9 +64,11 @@ public interface UpdateSpaceRequestOrBuilder * *
    * Optional. Field mask used to specify the fields to be updated in the space.
-   * If update_mask isn't provided, it defaults to '*' and updates all
-   * fields provided in the request, including deleting fields not set in the
+   * If update_mask isn't provided(not set, set with empty paths, or only has ""
+   * as paths), it defaults to update all fields provided with values in the
    * request.
+   * Using "*" as update_mask will update all fields, including deleting fields
+   * not set in the request.
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -80,9 +82,11 @@ public interface UpdateSpaceRequestOrBuilder * *
    * Optional. Field mask used to specify the fields to be updated in the space.
-   * If update_mask isn't provided, it defaults to '*' and updates all
-   * fields provided in the request, including deleting fields not set in the
+   * If update_mask isn't provided(not set, set with empty paths, or only has ""
+   * as paths), it defaults to update all fields provided with values in the
    * request.
+   * Using "*" as update_mask will update all fields, including deleting fields
+   * not set in the request.
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -96,9 +100,11 @@ public interface UpdateSpaceRequestOrBuilder * *
    * Optional. Field mask used to specify the fields to be updated in the space.
-   * If update_mask isn't provided, it defaults to '*' and updates all
-   * fields provided in the request, including deleting fields not set in the
+   * If update_mask isn't provided(not set, set with empty paths, or only has ""
+   * as paths), it defaults to update all fields provided with values in the
    * request.
+   * Using "*" as update_mask will update all fields, including deleting fields
+   * not set in the request.
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/proto/google/apps/meet/v2/resource.proto b/java-meet/proto-google-cloud-meet-v2/src/main/proto/google/apps/meet/v2/resource.proto index 4b4abcf5b9f9..a8bb5ab554ab 100644 --- a/java-meet/proto-google-cloud-meet-v2/src/main/proto/google/apps/meet/v2/resource.proto +++ b/java-meet/proto-google-cloud-meet-v2/src/main/proto/google/apps/meet/v2/resource.proto @@ -37,16 +37,28 @@ message Space { }; // Immutable. Resource name of the space. - // Format: `spaces/{space}` + // + // Format: `spaces/{space}`. + // + // `{space}` is the resource identifier for the space. It's a unique, + // server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`. + // + // For more information, see [How Meet identifies a meeting + // space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space). string name = 1 [(google.api.field_behavior) = IMMUTABLE]; - // Output only. URI used to join meetings, such as + // Output only. URI used to join meetings consisting of + // `https://meet.google.com/` followed by the `meeting_code`. For example, // `https://meet.google.com/abc-mnop-xyz`. string meeting_uri = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Type friendly code to join the meeting. Format: - // `[a-z]+-[a-z]+-[a-z]+` such as `abc-mnop-xyz`. The maximum length is 128 - // characters. Can only be used as an alias of the space ID to get the space. + // Output only. Type friendly unique string used to join the meeting. + // + // Format: `[a-z]+-[a-z]+-[a-z]+`. For example, `abc-mnop-xyz`. + // + // The maximum length is 128 characters. + // + // Can only be used as an alias of the space name to get the space. string meeting_code = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Configuration pertaining to the meeting space. diff --git a/java-meet/proto-google-cloud-meet-v2/src/main/proto/google/apps/meet/v2/service.proto b/java-meet/proto-google-cloud-meet-v2/src/main/proto/google/apps/meet/v2/service.proto index 2a5f9d30caf5..eeb26230179f 100644 --- a/java-meet/proto-google-cloud-meet-v2/src/main/proto/google/apps/meet/v2/service.proto +++ b/java-meet/proto-google-cloud-meet-v2/src/main/proto/google/apps/meet/v2/service.proto @@ -37,7 +37,8 @@ service SpacesService { option (google.api.default_host) = "meet.googleapis.com"; option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/meetings.space.created," - "https://www.googleapis.com/auth/meetings.space.readonly"; + "https://www.googleapis.com/auth/meetings.space.readonly," + "https://www.googleapis.com/auth/meetings.space.settings"; // Creates a space. rpc CreateSpace(CreateSpaceRequest) returns (Space) { @@ -48,7 +49,10 @@ service SpacesService { option (google.api.method_signature) = "space"; } - // Gets a space by `space_id` or `meeting_code`. + // Gets details about a meeting space. + // + // For an example, see [Get a meeting + // space](https://developers.google.com/meet/api/guides/meeting-spaces#get-meeting-space). rpc GetSpace(GetSpaceRequest) returns (Space) { option (google.api.http) = { get: "/v2/{name=spaces/*}" @@ -56,7 +60,10 @@ service SpacesService { option (google.api.method_signature) = "name"; } - // Updates a space. + // Updates details about a meeting space. + // + // For an example, see [Update a meeting + // space](https://developers.google.com/meet/api/guides/meeting-spaces#update-meeting-space). rpc UpdateSpace(UpdateSpaceRequest) returns (Space) { option (google.api.http) = { patch: "/v2/{space.name=spaces/*}" @@ -66,6 +73,9 @@ service SpacesService { } // Ends an active conference (if there's one). + // + // For an example, see [End active + // conference](https://developers.google.com/meet/api/guides/meeting-spaces#end-active-conference). rpc EndActiveConference(EndActiveConferenceRequest) returns (google.protobuf.Empty) { option (google.api.http) = { @@ -216,6 +226,24 @@ message CreateSpaceRequest { // Request to get a space. message GetSpaceRequest { // Required. Resource name of the space. + // + // Format: `spaces/{space}` or `spaces/{meetingCode}`. + // + // `{space}` is the resource identifier for the space. It's a unique, + // server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`. + // + // `{meetingCode}` is an alias for the space. It's a typeable, unique + // character string and is non-case sensitive. For example, `abc-mnop-xyz`. + // The maximum length is 128 characters. + // + // A `meetingCode` shouldn't be stored long term as it can become + // dissociated from a meeting space and can be reused for different meeting + // spaces in the future. Generally, a `meetingCode` expires 365 days after + // last use. For more information, see [Learn about meeting codes in Google + // Meet](https://support.google.com/meet/answer/10710509). + // + // For more information, see [How Meet identifies a meeting + // space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space). string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { type: "meet.googleapis.com/Space" } @@ -228,9 +256,11 @@ message UpdateSpaceRequest { Space space = 1 [(google.api.field_behavior) = REQUIRED]; // Optional. Field mask used to specify the fields to be updated in the space. - // If update_mask isn't provided, it defaults to '*' and updates all - // fields provided in the request, including deleting fields not set in the + // If update_mask isn't provided(not set, set with empty paths, or only has "" + // as paths), it defaults to update all fields provided with values in the // request. + // Using "*" as update_mask will update all fields, including deleting fields + // not set in the request. google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = OPTIONAL]; } @@ -238,6 +268,14 @@ message UpdateSpaceRequest { // Request to end an ongoing conference of a space. message EndActiveConferenceRequest { // Required. Resource name of the space. + // + // Format: `spaces/{space}`. + // + // `{space}` is the resource identifier for the space. It's a unique, + // server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`. + // + // For more information, see [How Meet identifies a meeting + // space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space). string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { type: "meet.googleapis.com/Space" } @@ -275,7 +313,13 @@ message ListConferenceRecordsRequest { // * `start_time` // * `end_time` // - // For example, `space.meeting_code = "abc-mnop-xyz"`. + // For example, consider the following filters: + // + // * `space.name = "spaces/NAME"` + // * `space.meeting_code = "abc-mnop-xyz"` + // * `start_time>="2024-01-01T00:00:00.000Z" AND + // start_time<="2024-01-02T00:00:00.000Z"` + // * `end_time IS NULL` string filter = 3 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ActiveConference.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ActiveConference.java index 8381756db436..c78d1dc6d937 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ActiveConference.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ActiveConference.java @@ -73,7 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Output only. Reference to 'ConferenceRecord' resource.
    * Format: `conferenceRecords/{conference_record}` where `{conference_record}`
-   * is a unique id for each instance of a call within a space.
+   * is a unique ID for each instance of a call within a space.
    * 
* * @@ -100,7 +100,7 @@ public java.lang.String getConferenceRecord() { *
    * Output only. Reference to 'ConferenceRecord' resource.
    * Format: `conferenceRecords/{conference_record}` where `{conference_record}`
-   * is a unique id for each instance of a call within a space.
+   * is a unique ID for each instance of a call within a space.
    * 
* * @@ -470,7 +470,7 @@ public Builder mergeFrom( *
      * Output only. Reference to 'ConferenceRecord' resource.
      * Format: `conferenceRecords/{conference_record}` where `{conference_record}`
-     * is a unique id for each instance of a call within a space.
+     * is a unique ID for each instance of a call within a space.
      * 
* * @@ -496,7 +496,7 @@ public java.lang.String getConferenceRecord() { *
      * Output only. Reference to 'ConferenceRecord' resource.
      * Format: `conferenceRecords/{conference_record}` where `{conference_record}`
-     * is a unique id for each instance of a call within a space.
+     * is a unique ID for each instance of a call within a space.
      * 
* * @@ -522,7 +522,7 @@ public com.google.protobuf.ByteString getConferenceRecordBytes() { *
      * Output only. Reference to 'ConferenceRecord' resource.
      * Format: `conferenceRecords/{conference_record}` where `{conference_record}`
-     * is a unique id for each instance of a call within a space.
+     * is a unique ID for each instance of a call within a space.
      * 
* * @@ -547,7 +547,7 @@ public Builder setConferenceRecord(java.lang.String value) { *
      * Output only. Reference to 'ConferenceRecord' resource.
      * Format: `conferenceRecords/{conference_record}` where `{conference_record}`
-     * is a unique id for each instance of a call within a space.
+     * is a unique ID for each instance of a call within a space.
      * 
* * @@ -568,7 +568,7 @@ public Builder clearConferenceRecord() { *
      * Output only. Reference to 'ConferenceRecord' resource.
      * Format: `conferenceRecords/{conference_record}` where `{conference_record}`
-     * is a unique id for each instance of a call within a space.
+     * is a unique ID for each instance of a call within a space.
      * 
* * diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ActiveConferenceOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ActiveConferenceOrBuilder.java index 17f727fa6fad..a647f83b2194 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ActiveConferenceOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ActiveConferenceOrBuilder.java @@ -30,7 +30,7 @@ public interface ActiveConferenceOrBuilder *
    * Output only. Reference to 'ConferenceRecord' resource.
    * Format: `conferenceRecords/{conference_record}` where `{conference_record}`
-   * is a unique id for each instance of a call within a space.
+   * is a unique ID for each instance of a call within a space.
    * 
* * @@ -46,7 +46,7 @@ public interface ActiveConferenceOrBuilder *
    * Output only. Reference to 'ConferenceRecord' resource.
    * Format: `conferenceRecords/{conference_record}` where `{conference_record}`
-   * is a unique id for each instance of a call within a space.
+   * is a unique ID for each instance of a call within a space.
    * 
* * diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ConferenceRecord.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ConferenceRecord.java index 0e538c01588d..6e65c71419e8 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ConferenceRecord.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ConferenceRecord.java @@ -23,7 +23,6 @@ * * *
- * [Developer Preview](https://developers.google.com/workspace/preview).
  * Single instance of a meeting held in a space.
  * 
* @@ -76,7 +75,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Identifier. Resource name of the conference record.
    * Format: `conferenceRecords/{conference_record}` where `{conference_record}`
-   * is a unique id for each instance of a call within a space.
+   * is a unique ID for each instance of a call within a space.
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -101,7 +100,7 @@ public java.lang.String getName() { *
    * Identifier. Resource name of the conference record.
    * Format: `conferenceRecords/{conference_record}` where `{conference_record}`
-   * is a unique id for each instance of a call within a space.
+   * is a unique ID for each instance of a call within a space.
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -127,7 +126,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * Output only. Timestamp when the conference started, always set.
+   * Output only. Timestamp when the conference started. Always set.
    * 
* * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -143,7 +142,7 @@ public boolean hasStartTime() { * * *
-   * Output only. Timestamp when the conference started, always set.
+   * Output only. Timestamp when the conference started. Always set.
    * 
* * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -159,7 +158,7 @@ public com.google.protobuf.Timestamp getStartTime() { * * *
-   * Output only. Timestamp when the conference started, always set.
+   * Output only. Timestamp when the conference started. Always set.
    * 
* * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -228,9 +227,9 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * * *
-   * Output only. Server enforced expire time for when this conference record
-   * resource is deleted. The resource is deleted 30 days after the conference
-   * ends.
+   * Output only. Server enforced expiration time for when this conference
+   * record resource is deleted. The resource is deleted 30 days after the
+   * conference ends.
    * 
* * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -246,9 +245,9 @@ public boolean hasExpireTime() { * * *
-   * Output only. Server enforced expire time for when this conference record
-   * resource is deleted. The resource is deleted 30 days after the conference
-   * ends.
+   * Output only. Server enforced expiration time for when this conference
+   * record resource is deleted. The resource is deleted 30 days after the
+   * conference ends.
    * 
* * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -264,9 +263,9 @@ public com.google.protobuf.Timestamp getExpireTime() { * * *
-   * Output only. Server enforced expire time for when this conference record
-   * resource is deleted. The resource is deleted 30 days after the conference
-   * ends.
+   * Output only. Server enforced expiration time for when this conference
+   * record resource is deleted. The resource is deleted 30 days after the
+   * conference ends.
    * 
* * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -546,7 +545,6 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * [Developer Preview](https://developers.google.com/workspace/preview).
    * Single instance of a meeting held in a space.
    * 
* @@ -814,7 +812,7 @@ public Builder mergeFrom( *
      * Identifier. Resource name of the conference record.
      * Format: `conferenceRecords/{conference_record}` where `{conference_record}`
-     * is a unique id for each instance of a call within a space.
+     * is a unique ID for each instance of a call within a space.
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -838,7 +836,7 @@ public java.lang.String getName() { *
      * Identifier. Resource name of the conference record.
      * Format: `conferenceRecords/{conference_record}` where `{conference_record}`
-     * is a unique id for each instance of a call within a space.
+     * is a unique ID for each instance of a call within a space.
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -862,7 +860,7 @@ public com.google.protobuf.ByteString getNameBytes() { *
      * Identifier. Resource name of the conference record.
      * Format: `conferenceRecords/{conference_record}` where `{conference_record}`
-     * is a unique id for each instance of a call within a space.
+     * is a unique ID for each instance of a call within a space.
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -885,7 +883,7 @@ public Builder setName(java.lang.String value) { *
      * Identifier. Resource name of the conference record.
      * Format: `conferenceRecords/{conference_record}` where `{conference_record}`
-     * is a unique id for each instance of a call within a space.
+     * is a unique ID for each instance of a call within a space.
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -904,7 +902,7 @@ public Builder clearName() { *
      * Identifier. Resource name of the conference record.
      * Format: `conferenceRecords/{conference_record}` where `{conference_record}`
-     * is a unique id for each instance of a call within a space.
+     * is a unique ID for each instance of a call within a space.
      * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -933,7 +931,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. Timestamp when the conference started, always set.
+     * Output only. Timestamp when the conference started. Always set.
      * 
* * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -948,7 +946,7 @@ public boolean hasStartTime() { * * *
-     * Output only. Timestamp when the conference started, always set.
+     * Output only. Timestamp when the conference started. Always set.
      * 
* * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -967,7 +965,7 @@ public com.google.protobuf.Timestamp getStartTime() { * * *
-     * Output only. Timestamp when the conference started, always set.
+     * Output only. Timestamp when the conference started. Always set.
      * 
* * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -990,7 +988,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. Timestamp when the conference started, always set.
+     * Output only. Timestamp when the conference started. Always set.
      * 
* * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1010,7 +1008,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu * * *
-     * Output only. Timestamp when the conference started, always set.
+     * Output only. Timestamp when the conference started. Always set.
      * 
* * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1038,7 +1036,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. Timestamp when the conference started, always set.
+     * Output only. Timestamp when the conference started. Always set.
      * 
* * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1058,7 +1056,7 @@ public Builder clearStartTime() { * * *
-     * Output only. Timestamp when the conference started, always set.
+     * Output only. Timestamp when the conference started. Always set.
      * 
* * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1073,7 +1071,7 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { * * *
-     * Output only. Timestamp when the conference started, always set.
+     * Output only. Timestamp when the conference started. Always set.
      * 
* * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1090,7 +1088,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * *
-     * Output only. Timestamp when the conference started, always set.
+     * Output only. Timestamp when the conference started. Always set.
      * 
* * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1322,9 +1320,9 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * * *
-     * Output only. Server enforced expire time for when this conference record
-     * resource is deleted. The resource is deleted 30 days after the conference
-     * ends.
+     * Output only. Server enforced expiration time for when this conference
+     * record resource is deleted. The resource is deleted 30 days after the
+     * conference ends.
      * 
* * @@ -1340,9 +1338,9 @@ public boolean hasExpireTime() { * * *
-     * Output only. Server enforced expire time for when this conference record
-     * resource is deleted. The resource is deleted 30 days after the conference
-     * ends.
+     * Output only. Server enforced expiration time for when this conference
+     * record resource is deleted. The resource is deleted 30 days after the
+     * conference ends.
      * 
* * @@ -1364,9 +1362,9 @@ public com.google.protobuf.Timestamp getExpireTime() { * * *
-     * Output only. Server enforced expire time for when this conference record
-     * resource is deleted. The resource is deleted 30 days after the conference
-     * ends.
+     * Output only. Server enforced expiration time for when this conference
+     * record resource is deleted. The resource is deleted 30 days after the
+     * conference ends.
      * 
* * @@ -1390,9 +1388,9 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. Server enforced expire time for when this conference record
-     * resource is deleted. The resource is deleted 30 days after the conference
-     * ends.
+     * Output only. Server enforced expiration time for when this conference
+     * record resource is deleted. The resource is deleted 30 days after the
+     * conference ends.
      * 
* * @@ -1413,9 +1411,9 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
-     * Output only. Server enforced expire time for when this conference record
-     * resource is deleted. The resource is deleted 30 days after the conference
-     * ends.
+     * Output only. Server enforced expiration time for when this conference
+     * record resource is deleted. The resource is deleted 30 days after the
+     * conference ends.
      * 
* * @@ -1444,9 +1442,9 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. Server enforced expire time for when this conference record
-     * resource is deleted. The resource is deleted 30 days after the conference
-     * ends.
+     * Output only. Server enforced expiration time for when this conference
+     * record resource is deleted. The resource is deleted 30 days after the
+     * conference ends.
      * 
* * @@ -1467,9 +1465,9 @@ public Builder clearExpireTime() { * * *
-     * Output only. Server enforced expire time for when this conference record
-     * resource is deleted. The resource is deleted 30 days after the conference
-     * ends.
+     * Output only. Server enforced expiration time for when this conference
+     * record resource is deleted. The resource is deleted 30 days after the
+     * conference ends.
      * 
* * @@ -1485,9 +1483,9 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { * * *
-     * Output only. Server enforced expire time for when this conference record
-     * resource is deleted. The resource is deleted 30 days after the conference
-     * ends.
+     * Output only. Server enforced expiration time for when this conference
+     * record resource is deleted. The resource is deleted 30 days after the
+     * conference ends.
      * 
* * @@ -1507,9 +1505,9 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { * * *
-     * Output only. Server enforced expire time for when this conference record
-     * resource is deleted. The resource is deleted 30 days after the conference
-     * ends.
+     * Output only. Server enforced expiration time for when this conference
+     * record resource is deleted. The resource is deleted 30 days after the
+     * conference ends.
      * 
* * diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ConferenceRecordOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ConferenceRecordOrBuilder.java index 430fa236fcc4..378149a5eac9 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ConferenceRecordOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ConferenceRecordOrBuilder.java @@ -30,7 +30,7 @@ public interface ConferenceRecordOrBuilder *
    * Identifier. Resource name of the conference record.
    * Format: `conferenceRecords/{conference_record}` where `{conference_record}`
-   * is a unique id for each instance of a call within a space.
+   * is a unique ID for each instance of a call within a space.
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -44,7 +44,7 @@ public interface ConferenceRecordOrBuilder *
    * Identifier. Resource name of the conference record.
    * Format: `conferenceRecords/{conference_record}` where `{conference_record}`
-   * is a unique id for each instance of a call within a space.
+   * is a unique ID for each instance of a call within a space.
    * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -57,7 +57,7 @@ public interface ConferenceRecordOrBuilder * * *
-   * Output only. Timestamp when the conference started, always set.
+   * Output only. Timestamp when the conference started. Always set.
    * 
* * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -70,7 +70,7 @@ public interface ConferenceRecordOrBuilder * * *
-   * Output only. Timestamp when the conference started, always set.
+   * Output only. Timestamp when the conference started. Always set.
    * 
* * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -83,7 +83,7 @@ public interface ConferenceRecordOrBuilder * * *
-   * Output only. Timestamp when the conference started, always set.
+   * Output only. Timestamp when the conference started. Always set.
    * 
* * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -136,9 +136,9 @@ public interface ConferenceRecordOrBuilder * * *
-   * Output only. Server enforced expire time for when this conference record
-   * resource is deleted. The resource is deleted 30 days after the conference
-   * ends.
+   * Output only. Server enforced expiration time for when this conference
+   * record resource is deleted. The resource is deleted 30 days after the
+   * conference ends.
    * 
* * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -151,9 +151,9 @@ public interface ConferenceRecordOrBuilder * * *
-   * Output only. Server enforced expire time for when this conference record
-   * resource is deleted. The resource is deleted 30 days after the conference
-   * ends.
+   * Output only. Server enforced expiration time for when this conference
+   * record resource is deleted. The resource is deleted 30 days after the
+   * conference ends.
    * 
* * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -166,9 +166,9 @@ public interface ConferenceRecordOrBuilder * * *
-   * Output only. Server enforced expire time for when this conference record
-   * resource is deleted. The resource is deleted 30 days after the conference
-   * ends.
+   * Output only. Server enforced expiration time for when this conference
+   * record resource is deleted. The resource is deleted 30 days after the
+   * conference ends.
    * 
* * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/CreateMemberRequest.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/CreateMemberRequest.java new file mode 100644 index 000000000000..d56296f54640 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/CreateMemberRequest.java @@ -0,0 +1,922 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2beta/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.apps.meet.v2beta; + +/** + * + * + *
+ * Request to create a member for a space.
+ * 
+ * + * Protobuf type {@code google.apps.meet.v2beta.CreateMemberRequest} + */ +public final class CreateMemberRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2beta.CreateMemberRequest) + CreateMemberRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateMemberRequest.newBuilder() to construct. + private CreateMemberRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateMemberRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateMemberRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2beta.ServiceProto + .internal_static_google_apps_meet_v2beta_CreateMemberRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2beta.ServiceProto + .internal_static_google_apps_meet_v2beta_CreateMemberRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2beta.CreateMemberRequest.class, + com.google.apps.meet.v2beta.CreateMemberRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Format: spaces/{space}
+   * 
+ * + * + * 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. Format: spaces/{space}
+   * 
+ * + * + * 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 MEMBER_FIELD_NUMBER = 2; + private com.google.apps.meet.v2beta.Member member_; + /** + * + * + *
+   * Required. The member to be created.
+   * 
+ * + * .google.apps.meet.v2beta.Member member = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the member field is set. + */ + @java.lang.Override + public boolean hasMember() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. The member to be created.
+   * 
+ * + * .google.apps.meet.v2beta.Member member = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The member. + */ + @java.lang.Override + public com.google.apps.meet.v2beta.Member getMember() { + return member_ == null ? com.google.apps.meet.v2beta.Member.getDefaultInstance() : member_; + } + /** + * + * + *
+   * Required. The member to be created.
+   * 
+ * + * .google.apps.meet.v2beta.Member member = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.apps.meet.v2beta.MemberOrBuilder getMemberOrBuilder() { + return member_ == null ? com.google.apps.meet.v2beta.Member.getDefaultInstance() : member_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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, getMember()); + } + 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, getMember()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.apps.meet.v2beta.CreateMemberRequest)) { + return super.equals(obj); + } + com.google.apps.meet.v2beta.CreateMemberRequest other = + (com.google.apps.meet.v2beta.CreateMemberRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasMember() != other.hasMember()) return false; + if (hasMember()) { + if (!getMember().equals(other.getMember())) return false; + } + if (!getUnknownFields().equals(other.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 (hasMember()) { + hash = (37 * hash) + MEMBER_FIELD_NUMBER; + hash = (53 * hash) + getMember().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2beta.CreateMemberRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2beta.CreateMemberRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.CreateMemberRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2beta.CreateMemberRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.CreateMemberRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2beta.CreateMemberRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.CreateMemberRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2beta.CreateMemberRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.CreateMemberRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2beta.CreateMemberRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.CreateMemberRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2beta.CreateMemberRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.apps.meet.v2beta.CreateMemberRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request to create a member for a space.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2beta.CreateMemberRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2beta.CreateMemberRequest) + com.google.apps.meet.v2beta.CreateMemberRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2beta.ServiceProto + .internal_static_google_apps_meet_v2beta_CreateMemberRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2beta.ServiceProto + .internal_static_google_apps_meet_v2beta_CreateMemberRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2beta.CreateMemberRequest.class, + com.google.apps.meet.v2beta.CreateMemberRequest.Builder.class); + } + + // Construct using com.google.apps.meet.v2beta.CreateMemberRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMemberFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + member_ = null; + if (memberBuilder_ != null) { + memberBuilder_.dispose(); + memberBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2beta.ServiceProto + .internal_static_google_apps_meet_v2beta_CreateMemberRequest_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2beta.CreateMemberRequest getDefaultInstanceForType() { + return com.google.apps.meet.v2beta.CreateMemberRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2beta.CreateMemberRequest build() { + com.google.apps.meet.v2beta.CreateMemberRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2beta.CreateMemberRequest buildPartial() { + com.google.apps.meet.v2beta.CreateMemberRequest result = + new com.google.apps.meet.v2beta.CreateMemberRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.apps.meet.v2beta.CreateMemberRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.member_ = memberBuilder_ == null ? member_ : memberBuilder_.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.apps.meet.v2beta.CreateMemberRequest) { + return mergeFrom((com.google.apps.meet.v2beta.CreateMemberRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2beta.CreateMemberRequest other) { + if (other == com.google.apps.meet.v2beta.CreateMemberRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasMember()) { + mergeMember(other.getMember()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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(getMemberFieldBuilder().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. Format: spaces/{space}
+     * 
+ * + * + * 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. Format: spaces/{space}
+     * 
+ * + * + * 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. Format: spaces/{space}
+     * 
+ * + * + * 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. Format: spaces/{space}
+     * 
+ * + * + * 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. Format: spaces/{space}
+     * 
+ * + * + * 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.apps.meet.v2beta.Member member_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2beta.Member, + com.google.apps.meet.v2beta.Member.Builder, + com.google.apps.meet.v2beta.MemberOrBuilder> + memberBuilder_; + /** + * + * + *
+     * Required. The member to be created.
+     * 
+ * + * .google.apps.meet.v2beta.Member member = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the member field is set. + */ + public boolean hasMember() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The member to be created.
+     * 
+ * + * .google.apps.meet.v2beta.Member member = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The member. + */ + public com.google.apps.meet.v2beta.Member getMember() { + if (memberBuilder_ == null) { + return member_ == null ? com.google.apps.meet.v2beta.Member.getDefaultInstance() : member_; + } else { + return memberBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The member to be created.
+     * 
+ * + * .google.apps.meet.v2beta.Member member = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMember(com.google.apps.meet.v2beta.Member value) { + if (memberBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + member_ = value; + } else { + memberBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The member to be created.
+     * 
+ * + * .google.apps.meet.v2beta.Member member = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMember(com.google.apps.meet.v2beta.Member.Builder builderForValue) { + if (memberBuilder_ == null) { + member_ = builderForValue.build(); + } else { + memberBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The member to be created.
+     * 
+ * + * .google.apps.meet.v2beta.Member member = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMember(com.google.apps.meet.v2beta.Member value) { + if (memberBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && member_ != null + && member_ != com.google.apps.meet.v2beta.Member.getDefaultInstance()) { + getMemberBuilder().mergeFrom(value); + } else { + member_ = value; + } + } else { + memberBuilder_.mergeFrom(value); + } + if (member_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. The member to be created.
+     * 
+ * + * .google.apps.meet.v2beta.Member member = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMember() { + bitField0_ = (bitField0_ & ~0x00000002); + member_ = null; + if (memberBuilder_ != null) { + memberBuilder_.dispose(); + memberBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The member to be created.
+     * 
+ * + * .google.apps.meet.v2beta.Member member = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.apps.meet.v2beta.Member.Builder getMemberBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getMemberFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The member to be created.
+     * 
+ * + * .google.apps.meet.v2beta.Member member = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.apps.meet.v2beta.MemberOrBuilder getMemberOrBuilder() { + if (memberBuilder_ != null) { + return memberBuilder_.getMessageOrBuilder(); + } else { + return member_ == null ? com.google.apps.meet.v2beta.Member.getDefaultInstance() : member_; + } + } + /** + * + * + *
+     * Required. The member to be created.
+     * 
+ * + * .google.apps.meet.v2beta.Member member = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2beta.Member, + com.google.apps.meet.v2beta.Member.Builder, + com.google.apps.meet.v2beta.MemberOrBuilder> + getMemberFieldBuilder() { + if (memberBuilder_ == null) { + memberBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2beta.Member, + com.google.apps.meet.v2beta.Member.Builder, + com.google.apps.meet.v2beta.MemberOrBuilder>( + getMember(), getParentForChildren(), isClean()); + member_ = null; + } + return memberBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.apps.meet.v2beta.CreateMemberRequest) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2beta.CreateMemberRequest) + private static final com.google.apps.meet.v2beta.CreateMemberRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2beta.CreateMemberRequest(); + } + + public static com.google.apps.meet.v2beta.CreateMemberRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateMemberRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2beta.CreateMemberRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/CreateMemberRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/CreateMemberRequestOrBuilder.java new file mode 100644 index 000000000000..712ec5441152 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/CreateMemberRequestOrBuilder.java @@ -0,0 +1,93 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2beta/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.apps.meet.v2beta; + +public interface CreateMemberRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2beta.CreateMemberRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Format: spaces/{space}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Format: spaces/{space}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The member to be created.
+   * 
+ * + * .google.apps.meet.v2beta.Member member = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the member field is set. + */ + boolean hasMember(); + /** + * + * + *
+   * Required. The member to be created.
+   * 
+ * + * .google.apps.meet.v2beta.Member member = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The member. + */ + com.google.apps.meet.v2beta.Member getMember(); + /** + * + * + *
+   * Required. The member to be created.
+   * 
+ * + * .google.apps.meet.v2beta.Member member = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.apps.meet.v2beta.MemberOrBuilder getMemberOrBuilder(); +} diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/DeleteMemberRequest.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/DeleteMemberRequest.java new file mode 100644 index 000000000000..5ba5890dbe44 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/DeleteMemberRequest.java @@ -0,0 +1,639 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2beta/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.apps.meet.v2beta; + +/** + * + * + *
+ * Request to delete a member from a space.
+ * 
+ * + * Protobuf type {@code google.apps.meet.v2beta.DeleteMemberRequest} + */ +public final class DeleteMemberRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2beta.DeleteMemberRequest) + DeleteMemberRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteMemberRequest.newBuilder() to construct. + private DeleteMemberRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteMemberRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteMemberRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2beta.ServiceProto + .internal_static_google_apps_meet_v2beta_DeleteMemberRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2beta.ServiceProto + .internal_static_google_apps_meet_v2beta_DeleteMemberRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2beta.DeleteMemberRequest.class, + com.google.apps.meet.v2beta.DeleteMemberRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Format: “spaces/{space}/members/{member}”
+   * 
+ * + * + * 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. Format: “spaces/{space}/members/{member}”
+   * 
+ * + * + * 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.apps.meet.v2beta.DeleteMemberRequest)) { + return super.equals(obj); + } + com.google.apps.meet.v2beta.DeleteMemberRequest other = + (com.google.apps.meet.v2beta.DeleteMemberRequest) 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.apps.meet.v2beta.DeleteMemberRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2beta.DeleteMemberRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.DeleteMemberRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2beta.DeleteMemberRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.DeleteMemberRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2beta.DeleteMemberRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.DeleteMemberRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2beta.DeleteMemberRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.DeleteMemberRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2beta.DeleteMemberRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.DeleteMemberRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2beta.DeleteMemberRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.apps.meet.v2beta.DeleteMemberRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request to delete a member from a space.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2beta.DeleteMemberRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2beta.DeleteMemberRequest) + com.google.apps.meet.v2beta.DeleteMemberRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2beta.ServiceProto + .internal_static_google_apps_meet_v2beta_DeleteMemberRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2beta.ServiceProto + .internal_static_google_apps_meet_v2beta_DeleteMemberRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2beta.DeleteMemberRequest.class, + com.google.apps.meet.v2beta.DeleteMemberRequest.Builder.class); + } + + // Construct using com.google.apps.meet.v2beta.DeleteMemberRequest.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.apps.meet.v2beta.ServiceProto + .internal_static_google_apps_meet_v2beta_DeleteMemberRequest_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2beta.DeleteMemberRequest getDefaultInstanceForType() { + return com.google.apps.meet.v2beta.DeleteMemberRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2beta.DeleteMemberRequest build() { + com.google.apps.meet.v2beta.DeleteMemberRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2beta.DeleteMemberRequest buildPartial() { + com.google.apps.meet.v2beta.DeleteMemberRequest result = + new com.google.apps.meet.v2beta.DeleteMemberRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.apps.meet.v2beta.DeleteMemberRequest 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.apps.meet.v2beta.DeleteMemberRequest) { + return mergeFrom((com.google.apps.meet.v2beta.DeleteMemberRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2beta.DeleteMemberRequest other) { + if (other == com.google.apps.meet.v2beta.DeleteMemberRequest.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. Format: “spaces/{space}/members/{member}”
+     * 
+ * + * + * 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. Format: “spaces/{space}/members/{member}”
+     * 
+ * + * + * 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. Format: “spaces/{space}/members/{member}”
+     * 
+ * + * + * 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. Format: “spaces/{space}/members/{member}”
+     * 
+ * + * + * 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. Format: “spaces/{space}/members/{member}”
+     * 
+ * + * + * 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.apps.meet.v2beta.DeleteMemberRequest) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2beta.DeleteMemberRequest) + private static final com.google.apps.meet.v2beta.DeleteMemberRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2beta.DeleteMemberRequest(); + } + + public static com.google.apps.meet.v2beta.DeleteMemberRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteMemberRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2beta.DeleteMemberRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/DeleteMemberRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/DeleteMemberRequestOrBuilder.java new file mode 100644 index 000000000000..0af2c616ff01 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/DeleteMemberRequestOrBuilder.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2beta/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.apps.meet.v2beta; + +public interface DeleteMemberRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2beta.DeleteMemberRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Format: “spaces/{space}/members/{member}”
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Format: “spaces/{space}/members/{member}”
+   * 
+ * + * + * 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-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/EndActiveConferenceRequest.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/EndActiveConferenceRequest.java index 6f1f8e07dcb9..7b3caf544aec 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/EndActiveConferenceRequest.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/EndActiveConferenceRequest.java @@ -72,6 +72,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. Resource name of the space.
+   *
+   * Format: `spaces/{space}`.
+   *
+   * `{space}` is the resource identifier for the space. It's a unique,
+   * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+   *
+   * For more information, see [How Meet identifies a meeting
+   * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
    * 
* * @@ -97,6 +105,14 @@ public java.lang.String getName() { * *
    * Required. Resource name of the space.
+   *
+   * Format: `spaces/{space}`.
+   *
+   * `{space}` is the resource identifier for the space. It's a unique,
+   * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+   *
+   * For more information, see [How Meet identifies a meeting
+   * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
    * 
* * @@ -467,6 +483,14 @@ public Builder mergeFrom( * *
      * Required. Resource name of the space.
+     *
+     * Format: `spaces/{space}`.
+     *
+     * `{space}` is the resource identifier for the space. It's a unique,
+     * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+     *
+     * For more information, see [How Meet identifies a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
      * 
* * @@ -491,6 +515,14 @@ public java.lang.String getName() { * *
      * Required. Resource name of the space.
+     *
+     * Format: `spaces/{space}`.
+     *
+     * `{space}` is the resource identifier for the space. It's a unique,
+     * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+     *
+     * For more information, see [How Meet identifies a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
      * 
* * @@ -515,6 +547,14 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. Resource name of the space.
+     *
+     * Format: `spaces/{space}`.
+     *
+     * `{space}` is the resource identifier for the space. It's a unique,
+     * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+     *
+     * For more information, see [How Meet identifies a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
      * 
* * @@ -538,6 +578,14 @@ public Builder setName(java.lang.String value) { * *
      * Required. Resource name of the space.
+     *
+     * Format: `spaces/{space}`.
+     *
+     * `{space}` is the resource identifier for the space. It's a unique,
+     * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+     *
+     * For more information, see [How Meet identifies a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
      * 
* * @@ -557,6 +605,14 @@ public Builder clearName() { * *
      * Required. Resource name of the space.
+     *
+     * Format: `spaces/{space}`.
+     *
+     * `{space}` is the resource identifier for the space. It's a unique,
+     * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+     *
+     * For more information, see [How Meet identifies a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
      * 
* * diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/EndActiveConferenceRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/EndActiveConferenceRequestOrBuilder.java index 468b6ca3a5ab..b9f97522e6f4 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/EndActiveConferenceRequestOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/EndActiveConferenceRequestOrBuilder.java @@ -29,6 +29,14 @@ public interface EndActiveConferenceRequestOrBuilder * *
    * Required. Resource name of the space.
+   *
+   * Format: `spaces/{space}`.
+   *
+   * `{space}` is the resource identifier for the space. It's a unique,
+   * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+   *
+   * For more information, see [How Meet identifies a meeting
+   * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
    * 
* * @@ -43,6 +51,14 @@ public interface EndActiveConferenceRequestOrBuilder * *
    * Required. Resource name of the space.
+   *
+   * Format: `spaces/{space}`.
+   *
+   * `{space}` is the resource identifier for the space. It's a unique,
+   * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+   *
+   * For more information, see [How Meet identifies a meeting
+   * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
    * 
* * diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetMemberRequest.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetMemberRequest.java new file mode 100644 index 000000000000..8d213eb7aae7 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetMemberRequest.java @@ -0,0 +1,638 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2beta/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.apps.meet.v2beta; + +/** + * + * + *
+ * Request to get a member from a space.
+ * 
+ * + * Protobuf type {@code google.apps.meet.v2beta.GetMemberRequest} + */ +public final class GetMemberRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2beta.GetMemberRequest) + GetMemberRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetMemberRequest.newBuilder() to construct. + private GetMemberRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetMemberRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetMemberRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2beta.ServiceProto + .internal_static_google_apps_meet_v2beta_GetMemberRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2beta.ServiceProto + .internal_static_google_apps_meet_v2beta_GetMemberRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2beta.GetMemberRequest.class, + com.google.apps.meet.v2beta.GetMemberRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Format: “spaces/{space}/members/{member}”
+   * 
+ * + * + * 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. Format: “spaces/{space}/members/{member}”
+   * 
+ * + * + * 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.apps.meet.v2beta.GetMemberRequest)) { + return super.equals(obj); + } + com.google.apps.meet.v2beta.GetMemberRequest other = + (com.google.apps.meet.v2beta.GetMemberRequest) 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.apps.meet.v2beta.GetMemberRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2beta.GetMemberRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.GetMemberRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2beta.GetMemberRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.GetMemberRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2beta.GetMemberRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.GetMemberRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2beta.GetMemberRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.GetMemberRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2beta.GetMemberRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.GetMemberRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2beta.GetMemberRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.apps.meet.v2beta.GetMemberRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request to get a member from a space.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2beta.GetMemberRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2beta.GetMemberRequest) + com.google.apps.meet.v2beta.GetMemberRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2beta.ServiceProto + .internal_static_google_apps_meet_v2beta_GetMemberRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2beta.ServiceProto + .internal_static_google_apps_meet_v2beta_GetMemberRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2beta.GetMemberRequest.class, + com.google.apps.meet.v2beta.GetMemberRequest.Builder.class); + } + + // Construct using com.google.apps.meet.v2beta.GetMemberRequest.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.apps.meet.v2beta.ServiceProto + .internal_static_google_apps_meet_v2beta_GetMemberRequest_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2beta.GetMemberRequest getDefaultInstanceForType() { + return com.google.apps.meet.v2beta.GetMemberRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2beta.GetMemberRequest build() { + com.google.apps.meet.v2beta.GetMemberRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2beta.GetMemberRequest buildPartial() { + com.google.apps.meet.v2beta.GetMemberRequest result = + new com.google.apps.meet.v2beta.GetMemberRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.apps.meet.v2beta.GetMemberRequest 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.apps.meet.v2beta.GetMemberRequest) { + return mergeFrom((com.google.apps.meet.v2beta.GetMemberRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2beta.GetMemberRequest other) { + if (other == com.google.apps.meet.v2beta.GetMemberRequest.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. Format: “spaces/{space}/members/{member}”
+     * 
+ * + * + * 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. Format: “spaces/{space}/members/{member}”
+     * 
+ * + * + * 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. Format: “spaces/{space}/members/{member}”
+     * 
+ * + * + * 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. Format: “spaces/{space}/members/{member}”
+     * 
+ * + * + * 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. Format: “spaces/{space}/members/{member}”
+     * 
+ * + * + * 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.apps.meet.v2beta.GetMemberRequest) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2beta.GetMemberRequest) + private static final com.google.apps.meet.v2beta.GetMemberRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2beta.GetMemberRequest(); + } + + public static com.google.apps.meet.v2beta.GetMemberRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMemberRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2beta.GetMemberRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetMemberRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetMemberRequestOrBuilder.java new file mode 100644 index 000000000000..fc23369f58ac --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetMemberRequestOrBuilder.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2beta/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.apps.meet.v2beta; + +public interface GetMemberRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2beta.GetMemberRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Format: “spaces/{space}/members/{member}”
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Format: “spaces/{space}/members/{member}”
+   * 
+ * + * + * 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-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetParticipantRequest.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetParticipantRequest.java index 37f9fa4365cb..92c47e191957 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetParticipantRequest.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetParticipantRequest.java @@ -23,7 +23,7 @@ * * *
- * Request to get a Participant.
+ * Request to get a participant.
  * 
* * Protobuf type {@code google.apps.meet.v2beta.GetParticipantRequest} @@ -281,7 +281,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request to get a Participant.
+   * Request to get a participant.
    * 
* * Protobuf type {@code google.apps.meet.v2beta.GetParticipantRequest} diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetSpaceRequest.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetSpaceRequest.java index 207630245fad..3f2c3f3360e6 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetSpaceRequest.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetSpaceRequest.java @@ -72,6 +72,24 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. Resource name of the space.
+   *
+   * Format: `spaces/{space}` or `spaces/{meetingCode}`.
+   *
+   * `{space}` is the resource identifier for the space. It's a unique,
+   * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+   *
+   * `{meetingCode}` is an alias for the space. It's a typeable, unique
+   * character string and is non-case sensitive. For example, `abc-mnop-xyz`.
+   * The maximum length is 128 characters.
+   *
+   * A `meetingCode` shouldn't be stored long term as it can become
+   * dissociated from a meeting space and can be reused for different meeting
+   * spaces in the future. Generally, a `meetingCode` expires 365 days after
+   * last use. For more information, see [Learn about meeting codes in Google
+   * Meet](https://support.google.com/meet/answer/10710509).
+   *
+   * For more information, see [How Meet identifies a meeting
+   * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
    * 
* * @@ -97,6 +115,24 @@ public java.lang.String getName() { * *
    * Required. Resource name of the space.
+   *
+   * Format: `spaces/{space}` or `spaces/{meetingCode}`.
+   *
+   * `{space}` is the resource identifier for the space. It's a unique,
+   * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+   *
+   * `{meetingCode}` is an alias for the space. It's a typeable, unique
+   * character string and is non-case sensitive. For example, `abc-mnop-xyz`.
+   * The maximum length is 128 characters.
+   *
+   * A `meetingCode` shouldn't be stored long term as it can become
+   * dissociated from a meeting space and can be reused for different meeting
+   * spaces in the future. Generally, a `meetingCode` expires 365 days after
+   * last use. For more information, see [Learn about meeting codes in Google
+   * Meet](https://support.google.com/meet/answer/10710509).
+   *
+   * For more information, see [How Meet identifies a meeting
+   * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
    * 
* * @@ -465,6 +501,24 @@ public Builder mergeFrom( * *
      * Required. Resource name of the space.
+     *
+     * Format: `spaces/{space}` or `spaces/{meetingCode}`.
+     *
+     * `{space}` is the resource identifier for the space. It's a unique,
+     * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+     *
+     * `{meetingCode}` is an alias for the space. It's a typeable, unique
+     * character string and is non-case sensitive. For example, `abc-mnop-xyz`.
+     * The maximum length is 128 characters.
+     *
+     * A `meetingCode` shouldn't be stored long term as it can become
+     * dissociated from a meeting space and can be reused for different meeting
+     * spaces in the future. Generally, a `meetingCode` expires 365 days after
+     * last use. For more information, see [Learn about meeting codes in Google
+     * Meet](https://support.google.com/meet/answer/10710509).
+     *
+     * For more information, see [How Meet identifies a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
      * 
* * @@ -489,6 +543,24 @@ public java.lang.String getName() { * *
      * Required. Resource name of the space.
+     *
+     * Format: `spaces/{space}` or `spaces/{meetingCode}`.
+     *
+     * `{space}` is the resource identifier for the space. It's a unique,
+     * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+     *
+     * `{meetingCode}` is an alias for the space. It's a typeable, unique
+     * character string and is non-case sensitive. For example, `abc-mnop-xyz`.
+     * The maximum length is 128 characters.
+     *
+     * A `meetingCode` shouldn't be stored long term as it can become
+     * dissociated from a meeting space and can be reused for different meeting
+     * spaces in the future. Generally, a `meetingCode` expires 365 days after
+     * last use. For more information, see [Learn about meeting codes in Google
+     * Meet](https://support.google.com/meet/answer/10710509).
+     *
+     * For more information, see [How Meet identifies a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
      * 
* * @@ -513,6 +585,24 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. Resource name of the space.
+     *
+     * Format: `spaces/{space}` or `spaces/{meetingCode}`.
+     *
+     * `{space}` is the resource identifier for the space. It's a unique,
+     * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+     *
+     * `{meetingCode}` is an alias for the space. It's a typeable, unique
+     * character string and is non-case sensitive. For example, `abc-mnop-xyz`.
+     * The maximum length is 128 characters.
+     *
+     * A `meetingCode` shouldn't be stored long term as it can become
+     * dissociated from a meeting space and can be reused for different meeting
+     * spaces in the future. Generally, a `meetingCode` expires 365 days after
+     * last use. For more information, see [Learn about meeting codes in Google
+     * Meet](https://support.google.com/meet/answer/10710509).
+     *
+     * For more information, see [How Meet identifies a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
      * 
* * @@ -536,6 +626,24 @@ public Builder setName(java.lang.String value) { * *
      * Required. Resource name of the space.
+     *
+     * Format: `spaces/{space}` or `spaces/{meetingCode}`.
+     *
+     * `{space}` is the resource identifier for the space. It's a unique,
+     * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+     *
+     * `{meetingCode}` is an alias for the space. It's a typeable, unique
+     * character string and is non-case sensitive. For example, `abc-mnop-xyz`.
+     * The maximum length is 128 characters.
+     *
+     * A `meetingCode` shouldn't be stored long term as it can become
+     * dissociated from a meeting space and can be reused for different meeting
+     * spaces in the future. Generally, a `meetingCode` expires 365 days after
+     * last use. For more information, see [Learn about meeting codes in Google
+     * Meet](https://support.google.com/meet/answer/10710509).
+     *
+     * For more information, see [How Meet identifies a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
      * 
* * @@ -555,6 +663,24 @@ public Builder clearName() { * *
      * Required. Resource name of the space.
+     *
+     * Format: `spaces/{space}` or `spaces/{meetingCode}`.
+     *
+     * `{space}` is the resource identifier for the space. It's a unique,
+     * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+     *
+     * `{meetingCode}` is an alias for the space. It's a typeable, unique
+     * character string and is non-case sensitive. For example, `abc-mnop-xyz`.
+     * The maximum length is 128 characters.
+     *
+     * A `meetingCode` shouldn't be stored long term as it can become
+     * dissociated from a meeting space and can be reused for different meeting
+     * spaces in the future. Generally, a `meetingCode` expires 365 days after
+     * last use. For more information, see [Learn about meeting codes in Google
+     * Meet](https://support.google.com/meet/answer/10710509).
+     *
+     * For more information, see [How Meet identifies a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
      * 
* * diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetSpaceRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetSpaceRequestOrBuilder.java index f01ad31efe55..1dd5f1afecb2 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetSpaceRequestOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/GetSpaceRequestOrBuilder.java @@ -29,6 +29,24 @@ public interface GetSpaceRequestOrBuilder * *
    * Required. Resource name of the space.
+   *
+   * Format: `spaces/{space}` or `spaces/{meetingCode}`.
+   *
+   * `{space}` is the resource identifier for the space. It's a unique,
+   * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+   *
+   * `{meetingCode}` is an alias for the space. It's a typeable, unique
+   * character string and is non-case sensitive. For example, `abc-mnop-xyz`.
+   * The maximum length is 128 characters.
+   *
+   * A `meetingCode` shouldn't be stored long term as it can become
+   * dissociated from a meeting space and can be reused for different meeting
+   * spaces in the future. Generally, a `meetingCode` expires 365 days after
+   * last use. For more information, see [Learn about meeting codes in Google
+   * Meet](https://support.google.com/meet/answer/10710509).
+   *
+   * For more information, see [How Meet identifies a meeting
+   * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
    * 
* * @@ -43,6 +61,24 @@ public interface GetSpaceRequestOrBuilder * *
    * Required. Resource name of the space.
+   *
+   * Format: `spaces/{space}` or `spaces/{meetingCode}`.
+   *
+   * `{space}` is the resource identifier for the space. It's a unique,
+   * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+   *
+   * `{meetingCode}` is an alias for the space. It's a typeable, unique
+   * character string and is non-case sensitive. For example, `abc-mnop-xyz`.
+   * The maximum length is 128 characters.
+   *
+   * A `meetingCode` shouldn't be stored long term as it can become
+   * dissociated from a meeting space and can be reused for different meeting
+   * spaces in the future. Generally, a `meetingCode` expires 365 days after
+   * last use. For more information, see [Learn about meeting codes in Google
+   * Meet](https://support.google.com/meet/answer/10710509).
+   *
+   * For more information, see [How Meet identifies a meeting
+   * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
    * 
* * diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListConferenceRecordsRequest.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListConferenceRecordsRequest.java index 98e51d5d3c38..2a7996bc0f73 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListConferenceRecordsRequest.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListConferenceRecordsRequest.java @@ -144,15 +144,22 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-   * Optional. User specified filtering condition in EBNF format. The following
-   * are the filterable fields:
+   * Optional. User specified filtering condition in [EBNF
+   * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+   * The following are the filterable fields:
    *
    * * `space.meeting_code`
    * * `space.name`
    * * `start_time`
    * * `end_time`
    *
-   * For example, `space.meeting_code = "abc-mnop-xyz"`.
+   * For example, consider the following filters:
+   *
+   * * `space.name = "spaces/NAME"`
+   * * `space.meeting_code = "abc-mnop-xyz"`
+   * * `start_time>="2024-01-01T00:00:00.000Z" AND
+   * start_time<="2024-01-02T00:00:00.000Z"`
+   * * `end_time IS NULL`
    * 
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -175,15 +182,22 @@ public java.lang.String getFilter() { * * *
-   * Optional. User specified filtering condition in EBNF format. The following
-   * are the filterable fields:
+   * Optional. User specified filtering condition in [EBNF
+   * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+   * The following are the filterable fields:
    *
    * * `space.meeting_code`
    * * `space.name`
    * * `start_time`
    * * `end_time`
    *
-   * For example, `space.meeting_code = "abc-mnop-xyz"`.
+   * For example, consider the following filters:
+   *
+   * * `space.name = "spaces/NAME"`
+   * * `space.meeting_code = "abc-mnop-xyz"`
+   * * `start_time>="2024-01-01T00:00:00.000Z" AND
+   * start_time<="2024-01-02T00:00:00.000Z"`
+   * * `end_time IS NULL`
    * 
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -765,15 +779,22 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. User specified filtering condition in EBNF format. The following
-     * are the filterable fields:
+     * Optional. User specified filtering condition in [EBNF
+     * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+     * The following are the filterable fields:
      *
      * * `space.meeting_code`
      * * `space.name`
      * * `start_time`
      * * `end_time`
      *
-     * For example, `space.meeting_code = "abc-mnop-xyz"`.
+     * For example, consider the following filters:
+     *
+     * * `space.name = "spaces/NAME"`
+     * * `space.meeting_code = "abc-mnop-xyz"`
+     * * `start_time>="2024-01-01T00:00:00.000Z" AND
+     * start_time<="2024-01-02T00:00:00.000Z"`
+     * * `end_time IS NULL`
      * 
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -795,15 +816,22 @@ public java.lang.String getFilter() { * * *
-     * Optional. User specified filtering condition in EBNF format. The following
-     * are the filterable fields:
+     * Optional. User specified filtering condition in [EBNF
+     * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+     * The following are the filterable fields:
      *
      * * `space.meeting_code`
      * * `space.name`
      * * `start_time`
      * * `end_time`
      *
-     * For example, `space.meeting_code = "abc-mnop-xyz"`.
+     * For example, consider the following filters:
+     *
+     * * `space.name = "spaces/NAME"`
+     * * `space.meeting_code = "abc-mnop-xyz"`
+     * * `start_time>="2024-01-01T00:00:00.000Z" AND
+     * start_time<="2024-01-02T00:00:00.000Z"`
+     * * `end_time IS NULL`
      * 
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -825,15 +853,22 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
-     * Optional. User specified filtering condition in EBNF format. The following
-     * are the filterable fields:
+     * Optional. User specified filtering condition in [EBNF
+     * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+     * The following are the filterable fields:
      *
      * * `space.meeting_code`
      * * `space.name`
      * * `start_time`
      * * `end_time`
      *
-     * For example, `space.meeting_code = "abc-mnop-xyz"`.
+     * For example, consider the following filters:
+     *
+     * * `space.name = "spaces/NAME"`
+     * * `space.meeting_code = "abc-mnop-xyz"`
+     * * `start_time>="2024-01-01T00:00:00.000Z" AND
+     * start_time<="2024-01-02T00:00:00.000Z"`
+     * * `end_time IS NULL`
      * 
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -854,15 +889,22 @@ public Builder setFilter(java.lang.String value) { * * *
-     * Optional. User specified filtering condition in EBNF format. The following
-     * are the filterable fields:
+     * Optional. User specified filtering condition in [EBNF
+     * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+     * The following are the filterable fields:
      *
      * * `space.meeting_code`
      * * `space.name`
      * * `start_time`
      * * `end_time`
      *
-     * For example, `space.meeting_code = "abc-mnop-xyz"`.
+     * For example, consider the following filters:
+     *
+     * * `space.name = "spaces/NAME"`
+     * * `space.meeting_code = "abc-mnop-xyz"`
+     * * `start_time>="2024-01-01T00:00:00.000Z" AND
+     * start_time<="2024-01-02T00:00:00.000Z"`
+     * * `end_time IS NULL`
      * 
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -879,15 +921,22 @@ public Builder clearFilter() { * * *
-     * Optional. User specified filtering condition in EBNF format. The following
-     * are the filterable fields:
+     * Optional. User specified filtering condition in [EBNF
+     * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+     * The following are the filterable fields:
      *
      * * `space.meeting_code`
      * * `space.name`
      * * `start_time`
      * * `end_time`
      *
-     * For example, `space.meeting_code = "abc-mnop-xyz"`.
+     * For example, consider the following filters:
+     *
+     * * `space.name = "spaces/NAME"`
+     * * `space.meeting_code = "abc-mnop-xyz"`
+     * * `start_time>="2024-01-01T00:00:00.000Z" AND
+     * start_time<="2024-01-02T00:00:00.000Z"`
+     * * `end_time IS NULL`
      * 
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListConferenceRecordsRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListConferenceRecordsRequestOrBuilder.java index 595831370856..ee5118f165ba 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListConferenceRecordsRequestOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListConferenceRecordsRequestOrBuilder.java @@ -69,15 +69,22 @@ public interface ListConferenceRecordsRequestOrBuilder * * *
-   * Optional. User specified filtering condition in EBNF format. The following
-   * are the filterable fields:
+   * Optional. User specified filtering condition in [EBNF
+   * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+   * The following are the filterable fields:
    *
    * * `space.meeting_code`
    * * `space.name`
    * * `start_time`
    * * `end_time`
    *
-   * For example, `space.meeting_code = "abc-mnop-xyz"`.
+   * For example, consider the following filters:
+   *
+   * * `space.name = "spaces/NAME"`
+   * * `space.meeting_code = "abc-mnop-xyz"`
+   * * `start_time>="2024-01-01T00:00:00.000Z" AND
+   * start_time<="2024-01-02T00:00:00.000Z"`
+   * * `end_time IS NULL`
    * 
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -89,15 +96,22 @@ public interface ListConferenceRecordsRequestOrBuilder * * *
-   * Optional. User specified filtering condition in EBNF format. The following
-   * are the filterable fields:
+   * Optional. User specified filtering condition in [EBNF
+   * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+   * The following are the filterable fields:
    *
    * * `space.meeting_code`
    * * `space.name`
    * * `start_time`
    * * `end_time`
    *
-   * For example, `space.meeting_code = "abc-mnop-xyz"`.
+   * For example, consider the following filters:
+   *
+   * * `space.name = "spaces/NAME"`
+   * * `space.meeting_code = "abc-mnop-xyz"`
+   * * `start_time>="2024-01-01T00:00:00.000Z" AND
+   * start_time<="2024-01-02T00:00:00.000Z"`
+   * * `end_time IS NULL`
    * 
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListMembersRequest.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListMembersRequest.java new file mode 100644 index 000000000000..8aba6df89061 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListMembersRequest.java @@ -0,0 +1,925 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2beta/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.apps.meet.v2beta; + +/** + * + * + *
+ * Request to list all members of a space.
+ * 
+ * + * Protobuf type {@code google.apps.meet.v2beta.ListMembersRequest} + */ +public final class ListMembersRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2beta.ListMembersRequest) + ListMembersRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListMembersRequest.newBuilder() to construct. + private ListMembersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListMembersRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListMembersRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2beta.ServiceProto + .internal_static_google_apps_meet_v2beta_ListMembersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2beta.ServiceProto + .internal_static_google_apps_meet_v2beta_ListMembersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2beta.ListMembersRequest.class, + com.google.apps.meet.v2beta.ListMembersRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Format: spaces/{space}
+   * 
+ * + * + * 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. Format: spaces/{space}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * Optional. Maximum number of members to return. The service might return
+   * fewer than this value. If unspecified, at most 25 members are returned. The
+   * maximum value is 100; values above 100 are coerced to 100. Maximum might
+   * change in the future.
+   * 
+ * + * 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. Page token returned from previous List 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. Page token returned from previous List 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.apps.meet.v2beta.ListMembersRequest)) { + return super.equals(obj); + } + com.google.apps.meet.v2beta.ListMembersRequest other = + (com.google.apps.meet.v2beta.ListMembersRequest) 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.apps.meet.v2beta.ListMembersRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2beta.ListMembersRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.ListMembersRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2beta.ListMembersRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.ListMembersRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2beta.ListMembersRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.ListMembersRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2beta.ListMembersRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.ListMembersRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2beta.ListMembersRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.ListMembersRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2beta.ListMembersRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.apps.meet.v2beta.ListMembersRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request to list all members of a space.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2beta.ListMembersRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2beta.ListMembersRequest) + com.google.apps.meet.v2beta.ListMembersRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2beta.ServiceProto + .internal_static_google_apps_meet_v2beta_ListMembersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2beta.ServiceProto + .internal_static_google_apps_meet_v2beta_ListMembersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2beta.ListMembersRequest.class, + com.google.apps.meet.v2beta.ListMembersRequest.Builder.class); + } + + // Construct using com.google.apps.meet.v2beta.ListMembersRequest.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.apps.meet.v2beta.ServiceProto + .internal_static_google_apps_meet_v2beta_ListMembersRequest_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2beta.ListMembersRequest getDefaultInstanceForType() { + return com.google.apps.meet.v2beta.ListMembersRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2beta.ListMembersRequest build() { + com.google.apps.meet.v2beta.ListMembersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2beta.ListMembersRequest buildPartial() { + com.google.apps.meet.v2beta.ListMembersRequest result = + new com.google.apps.meet.v2beta.ListMembersRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.apps.meet.v2beta.ListMembersRequest 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.apps.meet.v2beta.ListMembersRequest) { + return mergeFrom((com.google.apps.meet.v2beta.ListMembersRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2beta.ListMembersRequest other) { + if (other == com.google.apps.meet.v2beta.ListMembersRequest.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. Format: spaces/{space}
+     * 
+ * + * + * 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. Format: spaces/{space}
+     * 
+ * + * + * 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. Format: spaces/{space}
+     * 
+ * + * + * 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. Format: spaces/{space}
+     * 
+ * + * + * 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. Format: spaces/{space}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional. Maximum number of members to return. The service might return
+     * fewer than this value. If unspecified, at most 25 members are returned. The
+     * maximum value is 100; values above 100 are coerced to 100. Maximum might
+     * change in the future.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. Maximum number of members to return. The service might return
+     * fewer than this value. If unspecified, at most 25 members are returned. The
+     * maximum value is 100; values above 100 are coerced to 100. Maximum might
+     * change in the future.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Maximum number of members to return. The service might return
+     * fewer than this value. If unspecified, at most 25 members are returned. The
+     * maximum value is 100; values above 100 are coerced to 100. Maximum might
+     * change in the future.
+     * 
+ * + * 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. Page token returned from previous List 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. Page token returned from previous List 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. Page token returned from previous List 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. Page token returned from previous List 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. Page token returned from previous List 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.apps.meet.v2beta.ListMembersRequest) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2beta.ListMembersRequest) + private static final com.google.apps.meet.v2beta.ListMembersRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2beta.ListMembersRequest(); + } + + public static com.google.apps.meet.v2beta.ListMembersRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMembersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2beta.ListMembersRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListMembersRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListMembersRequestOrBuilder.java new file mode 100644 index 000000000000..1fdbf38afc87 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListMembersRequestOrBuilder.java @@ -0,0 +1,96 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2beta/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.apps.meet.v2beta; + +public interface ListMembersRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2beta.ListMembersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Format: spaces/{space}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Format: spaces/{space}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. Maximum number of members to return. The service might return
+   * fewer than this value. If unspecified, at most 25 members are returned. The
+   * maximum value is 100; values above 100 are coerced to 100. Maximum might
+   * change in the future.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. Page token returned from previous List Call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. Page token returned from previous List Call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListMembersResponse.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListMembersResponse.java new file mode 100644 index 000000000000..a860622c634c --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListMembersResponse.java @@ -0,0 +1,1124 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2beta/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.apps.meet.v2beta; + +/** + * + * + *
+ * Response of list members.
+ * 
+ * + * Protobuf type {@code google.apps.meet.v2beta.ListMembersResponse} + */ +public final class ListMembersResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2beta.ListMembersResponse) + ListMembersResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListMembersResponse.newBuilder() to construct. + private ListMembersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListMembersResponse() { + members_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListMembersResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2beta.ServiceProto + .internal_static_google_apps_meet_v2beta_ListMembersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2beta.ServiceProto + .internal_static_google_apps_meet_v2beta_ListMembersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2beta.ListMembersResponse.class, + com.google.apps.meet.v2beta.ListMembersResponse.Builder.class); + } + + public static final int MEMBERS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List members_; + /** + * + * + *
+   * The list of members for the current page.
+   * 
+ * + * repeated .google.apps.meet.v2beta.Member members = 1; + */ + @java.lang.Override + public java.util.List getMembersList() { + return members_; + } + /** + * + * + *
+   * The list of members for the current page.
+   * 
+ * + * repeated .google.apps.meet.v2beta.Member members = 1; + */ + @java.lang.Override + public java.util.List + getMembersOrBuilderList() { + return members_; + } + /** + * + * + *
+   * The list of members for the current page.
+   * 
+ * + * repeated .google.apps.meet.v2beta.Member members = 1; + */ + @java.lang.Override + public int getMembersCount() { + return members_.size(); + } + /** + * + * + *
+   * The list of members for the current page.
+   * 
+ * + * repeated .google.apps.meet.v2beta.Member members = 1; + */ + @java.lang.Override + public com.google.apps.meet.v2beta.Member getMembers(int index) { + return members_.get(index); + } + /** + * + * + *
+   * The list of members for the current page.
+   * 
+ * + * repeated .google.apps.meet.v2beta.Member members = 1; + */ + @java.lang.Override + public com.google.apps.meet.v2beta.MemberOrBuilder getMembersOrBuilder(int index) { + return members_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * Token to be circulated back for further list call if current list doesn't
+   * include all the members. Unset if all members are returned.
+   * 
+ * + * 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; + } + } + /** + * + * + *
+   * Token to be circulated back for further list call if current list doesn't
+   * include all the members. Unset if all members are returned.
+   * 
+ * + * 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 < members_.size(); i++) { + output.writeMessage(1, members_.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 < members_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, members_.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.apps.meet.v2beta.ListMembersResponse)) { + return super.equals(obj); + } + com.google.apps.meet.v2beta.ListMembersResponse other = + (com.google.apps.meet.v2beta.ListMembersResponse) obj; + + if (!getMembersList().equals(other.getMembersList())) 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 (getMembersCount() > 0) { + hash = (37 * hash) + MEMBERS_FIELD_NUMBER; + hash = (53 * hash) + getMembersList().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.apps.meet.v2beta.ListMembersResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2beta.ListMembersResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.ListMembersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2beta.ListMembersResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.ListMembersResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2beta.ListMembersResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.ListMembersResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2beta.ListMembersResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.ListMembersResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2beta.ListMembersResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.ListMembersResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2beta.ListMembersResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.apps.meet.v2beta.ListMembersResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response of list members.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2beta.ListMembersResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2beta.ListMembersResponse) + com.google.apps.meet.v2beta.ListMembersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2beta.ServiceProto + .internal_static_google_apps_meet_v2beta_ListMembersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2beta.ServiceProto + .internal_static_google_apps_meet_v2beta_ListMembersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2beta.ListMembersResponse.class, + com.google.apps.meet.v2beta.ListMembersResponse.Builder.class); + } + + // Construct using com.google.apps.meet.v2beta.ListMembersResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (membersBuilder_ == null) { + members_ = java.util.Collections.emptyList(); + } else { + members_ = null; + membersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2beta.ServiceProto + .internal_static_google_apps_meet_v2beta_ListMembersResponse_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2beta.ListMembersResponse getDefaultInstanceForType() { + return com.google.apps.meet.v2beta.ListMembersResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2beta.ListMembersResponse build() { + com.google.apps.meet.v2beta.ListMembersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2beta.ListMembersResponse buildPartial() { + com.google.apps.meet.v2beta.ListMembersResponse result = + new com.google.apps.meet.v2beta.ListMembersResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.apps.meet.v2beta.ListMembersResponse result) { + if (membersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + members_ = java.util.Collections.unmodifiableList(members_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.members_ = members_; + } else { + result.members_ = membersBuilder_.build(); + } + } + + private void buildPartial0(com.google.apps.meet.v2beta.ListMembersResponse 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.apps.meet.v2beta.ListMembersResponse) { + return mergeFrom((com.google.apps.meet.v2beta.ListMembersResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2beta.ListMembersResponse other) { + if (other == com.google.apps.meet.v2beta.ListMembersResponse.getDefaultInstance()) + return this; + if (membersBuilder_ == null) { + if (!other.members_.isEmpty()) { + if (members_.isEmpty()) { + members_ = other.members_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMembersIsMutable(); + members_.addAll(other.members_); + } + onChanged(); + } + } else { + if (!other.members_.isEmpty()) { + if (membersBuilder_.isEmpty()) { + membersBuilder_.dispose(); + membersBuilder_ = null; + members_ = other.members_; + bitField0_ = (bitField0_ & ~0x00000001); + membersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMembersFieldBuilder() + : null; + } else { + membersBuilder_.addAllMessages(other.members_); + } + } + } + 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.apps.meet.v2beta.Member m = + input.readMessage( + com.google.apps.meet.v2beta.Member.parser(), extensionRegistry); + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + members_.add(m); + } else { + membersBuilder_.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 members_ = + java.util.Collections.emptyList(); + + private void ensureMembersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + members_ = new java.util.ArrayList(members_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.apps.meet.v2beta.Member, + com.google.apps.meet.v2beta.Member.Builder, + com.google.apps.meet.v2beta.MemberOrBuilder> + membersBuilder_; + + /** + * + * + *
+     * The list of members for the current page.
+     * 
+ * + * repeated .google.apps.meet.v2beta.Member members = 1; + */ + public java.util.List getMembersList() { + if (membersBuilder_ == null) { + return java.util.Collections.unmodifiableList(members_); + } else { + return membersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of members for the current page.
+     * 
+ * + * repeated .google.apps.meet.v2beta.Member members = 1; + */ + public int getMembersCount() { + if (membersBuilder_ == null) { + return members_.size(); + } else { + return membersBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of members for the current page.
+     * 
+ * + * repeated .google.apps.meet.v2beta.Member members = 1; + */ + public com.google.apps.meet.v2beta.Member getMembers(int index) { + if (membersBuilder_ == null) { + return members_.get(index); + } else { + return membersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of members for the current page.
+     * 
+ * + * repeated .google.apps.meet.v2beta.Member members = 1; + */ + public Builder setMembers(int index, com.google.apps.meet.v2beta.Member value) { + if (membersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembersIsMutable(); + members_.set(index, value); + onChanged(); + } else { + membersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of members for the current page.
+     * 
+ * + * repeated .google.apps.meet.v2beta.Member members = 1; + */ + public Builder setMembers( + int index, com.google.apps.meet.v2beta.Member.Builder builderForValue) { + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + members_.set(index, builderForValue.build()); + onChanged(); + } else { + membersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of members for the current page.
+     * 
+ * + * repeated .google.apps.meet.v2beta.Member members = 1; + */ + public Builder addMembers(com.google.apps.meet.v2beta.Member value) { + if (membersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembersIsMutable(); + members_.add(value); + onChanged(); + } else { + membersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of members for the current page.
+     * 
+ * + * repeated .google.apps.meet.v2beta.Member members = 1; + */ + public Builder addMembers(int index, com.google.apps.meet.v2beta.Member value) { + if (membersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembersIsMutable(); + members_.add(index, value); + onChanged(); + } else { + membersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of members for the current page.
+     * 
+ * + * repeated .google.apps.meet.v2beta.Member members = 1; + */ + public Builder addMembers(com.google.apps.meet.v2beta.Member.Builder builderForValue) { + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + members_.add(builderForValue.build()); + onChanged(); + } else { + membersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of members for the current page.
+     * 
+ * + * repeated .google.apps.meet.v2beta.Member members = 1; + */ + public Builder addMembers( + int index, com.google.apps.meet.v2beta.Member.Builder builderForValue) { + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + members_.add(index, builderForValue.build()); + onChanged(); + } else { + membersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of members for the current page.
+     * 
+ * + * repeated .google.apps.meet.v2beta.Member members = 1; + */ + public Builder addAllMembers( + java.lang.Iterable values) { + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, members_); + onChanged(); + } else { + membersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of members for the current page.
+     * 
+ * + * repeated .google.apps.meet.v2beta.Member members = 1; + */ + public Builder clearMembers() { + if (membersBuilder_ == null) { + members_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + membersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of members for the current page.
+     * 
+ * + * repeated .google.apps.meet.v2beta.Member members = 1; + */ + public Builder removeMembers(int index) { + if (membersBuilder_ == null) { + ensureMembersIsMutable(); + members_.remove(index); + onChanged(); + } else { + membersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of members for the current page.
+     * 
+ * + * repeated .google.apps.meet.v2beta.Member members = 1; + */ + public com.google.apps.meet.v2beta.Member.Builder getMembersBuilder(int index) { + return getMembersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of members for the current page.
+     * 
+ * + * repeated .google.apps.meet.v2beta.Member members = 1; + */ + public com.google.apps.meet.v2beta.MemberOrBuilder getMembersOrBuilder(int index) { + if (membersBuilder_ == null) { + return members_.get(index); + } else { + return membersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of members for the current page.
+     * 
+ * + * repeated .google.apps.meet.v2beta.Member members = 1; + */ + public java.util.List + getMembersOrBuilderList() { + if (membersBuilder_ != null) { + return membersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(members_); + } + } + /** + * + * + *
+     * The list of members for the current page.
+     * 
+ * + * repeated .google.apps.meet.v2beta.Member members = 1; + */ + public com.google.apps.meet.v2beta.Member.Builder addMembersBuilder() { + return getMembersFieldBuilder() + .addBuilder(com.google.apps.meet.v2beta.Member.getDefaultInstance()); + } + /** + * + * + *
+     * The list of members for the current page.
+     * 
+ * + * repeated .google.apps.meet.v2beta.Member members = 1; + */ + public com.google.apps.meet.v2beta.Member.Builder addMembersBuilder(int index) { + return getMembersFieldBuilder() + .addBuilder(index, com.google.apps.meet.v2beta.Member.getDefaultInstance()); + } + /** + * + * + *
+     * The list of members for the current page.
+     * 
+ * + * repeated .google.apps.meet.v2beta.Member members = 1; + */ + public java.util.List getMembersBuilderList() { + return getMembersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.apps.meet.v2beta.Member, + com.google.apps.meet.v2beta.Member.Builder, + com.google.apps.meet.v2beta.MemberOrBuilder> + getMembersFieldBuilder() { + if (membersBuilder_ == null) { + membersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.apps.meet.v2beta.Member, + com.google.apps.meet.v2beta.Member.Builder, + com.google.apps.meet.v2beta.MemberOrBuilder>( + members_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + members_ = null; + } + return membersBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * Token to be circulated back for further list call if current list doesn't
+     * include all the members. Unset if all members are returned.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Token to be circulated back for further list call if current list doesn't
+     * include all the members. Unset if all members are returned.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Token to be circulated back for further list call if current list doesn't
+     * include all the members. Unset if all members are returned.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * Token to be circulated back for further list call if current list doesn't
+     * include all the members. Unset if all members are returned.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Token to be circulated back for further list call if current list doesn't
+     * include all the members. Unset if all members are returned.
+     * 
+ * + * 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.apps.meet.v2beta.ListMembersResponse) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2beta.ListMembersResponse) + private static final com.google.apps.meet.v2beta.ListMembersResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2beta.ListMembersResponse(); + } + + public static com.google.apps.meet.v2beta.ListMembersResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMembersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2beta.ListMembersResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListMembersResponseOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListMembersResponseOrBuilder.java new file mode 100644 index 000000000000..a6de3a306adc --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListMembersResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2beta/service.proto + +// Protobuf Java Version: 3.25.5 +package com.google.apps.meet.v2beta; + +public interface ListMembersResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2beta.ListMembersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of members for the current page.
+   * 
+ * + * repeated .google.apps.meet.v2beta.Member members = 1; + */ + java.util.List getMembersList(); + /** + * + * + *
+   * The list of members for the current page.
+   * 
+ * + * repeated .google.apps.meet.v2beta.Member members = 1; + */ + com.google.apps.meet.v2beta.Member getMembers(int index); + /** + * + * + *
+   * The list of members for the current page.
+   * 
+ * + * repeated .google.apps.meet.v2beta.Member members = 1; + */ + int getMembersCount(); + /** + * + * + *
+   * The list of members for the current page.
+   * 
+ * + * repeated .google.apps.meet.v2beta.Member members = 1; + */ + java.util.List getMembersOrBuilderList(); + /** + * + * + *
+   * The list of members for the current page.
+   * 
+ * + * repeated .google.apps.meet.v2beta.Member members = 1; + */ + com.google.apps.meet.v2beta.MemberOrBuilder getMembersOrBuilder(int index); + + /** + * + * + *
+   * Token to be circulated back for further list call if current list doesn't
+   * include all the members. Unset if all members are returned.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * Token to be circulated back for further list call if current list doesn't
+   * include all the members. Unset if all members are returned.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantSessionsRequest.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantSessionsRequest.java index dc15d7d600c6..6801a36a6b2e 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantSessionsRequest.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantSessionsRequest.java @@ -23,7 +23,7 @@ * * *
- * Request to fetch list of participant sessions per conference record per
+ * Request to fetch list of participant sessions per conference record, per
  * participant.
  * 
* @@ -204,8 +204,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-   * Optional. User specified filtering condition in EBNF format. The following
-   * are the filterable fields:
+   * Optional. User specified filtering condition in [EBNF
+   * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+   * The following are the filterable fields:
    *
    * * `start_time`
    * * `end_time`
@@ -234,8 +235,9 @@ public java.lang.String getFilter() {
    *
    *
    * 
-   * Optional. User specified filtering condition in EBNF format. The following
-   * are the filterable fields:
+   * Optional. User specified filtering condition in [EBNF
+   * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+   * The following are the filterable fields:
    *
    * * `start_time`
    * * `end_time`
@@ -452,7 +454,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    *
    * 
-   * Request to fetch list of participant sessions per conference record per
+   * Request to fetch list of participant sessions per conference record, per
    * participant.
    * 
* @@ -969,8 +971,9 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. User specified filtering condition in EBNF format. The following
-     * are the filterable fields:
+     * Optional. User specified filtering condition in [EBNF
+     * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+     * The following are the filterable fields:
      *
      * * `start_time`
      * * `end_time`
@@ -998,8 +1001,9 @@ public java.lang.String getFilter() {
      *
      *
      * 
-     * Optional. User specified filtering condition in EBNF format. The following
-     * are the filterable fields:
+     * Optional. User specified filtering condition in [EBNF
+     * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+     * The following are the filterable fields:
      *
      * * `start_time`
      * * `end_time`
@@ -1027,8 +1031,9 @@ public com.google.protobuf.ByteString getFilterBytes() {
      *
      *
      * 
-     * Optional. User specified filtering condition in EBNF format. The following
-     * are the filterable fields:
+     * Optional. User specified filtering condition in [EBNF
+     * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+     * The following are the filterable fields:
      *
      * * `start_time`
      * * `end_time`
@@ -1055,8 +1060,9 @@ public Builder setFilter(java.lang.String value) {
      *
      *
      * 
-     * Optional. User specified filtering condition in EBNF format. The following
-     * are the filterable fields:
+     * Optional. User specified filtering condition in [EBNF
+     * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+     * The following are the filterable fields:
      *
      * * `start_time`
      * * `end_time`
@@ -1079,8 +1085,9 @@ public Builder clearFilter() {
      *
      *
      * 
-     * Optional. User specified filtering condition in EBNF format. The following
-     * are the filterable fields:
+     * Optional. User specified filtering condition in [EBNF
+     * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+     * The following are the filterable fields:
      *
      * * `start_time`
      * * `end_time`
diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantSessionsRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantSessionsRequestOrBuilder.java
index 99f0b9639b14..d71eb243f15e 100644
--- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantSessionsRequestOrBuilder.java
+++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantSessionsRequestOrBuilder.java
@@ -100,8 +100,9 @@ public interface ListParticipantSessionsRequestOrBuilder
    *
    *
    * 
-   * Optional. User specified filtering condition in EBNF format. The following
-   * are the filterable fields:
+   * Optional. User specified filtering condition in [EBNF
+   * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+   * The following are the filterable fields:
    *
    * * `start_time`
    * * `end_time`
@@ -119,8 +120,9 @@ public interface ListParticipantSessionsRequestOrBuilder
    *
    *
    * 
-   * Optional. User specified filtering condition in EBNF format. The following
-   * are the filterable fields:
+   * Optional. User specified filtering condition in [EBNF
+   * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+   * The following are the filterable fields:
    *
    * * `start_time`
    * * `end_time`
diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantsRequest.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantsRequest.java
index 67aed6894bbc..5373b4e42ba9 100644
--- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantsRequest.java
+++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantsRequest.java
@@ -23,7 +23,7 @@
  *
  *
  * 
- * Request to fetch list of participant per conference.
+ * Request to fetch list of participants per conference.
  * 
* * Protobuf type {@code google.apps.meet.v2beta.ListParticipantsRequest} @@ -201,8 +201,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-   * Optional. User specified filtering condition in EBNF format. The following
-   * are the filterable fields:
+   * Optional. User specified filtering condition in [EBNF
+   * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+   * The following are the filterable fields:
    *
    * * `earliest_start_time`
    * * `latest_end_time`
@@ -231,8 +232,9 @@ public java.lang.String getFilter() {
    *
    *
    * 
-   * Optional. User specified filtering condition in EBNF format. The following
-   * are the filterable fields:
+   * Optional. User specified filtering condition in [EBNF
+   * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+   * The following are the filterable fields:
    *
    * * `earliest_start_time`
    * * `latest_end_time`
@@ -448,7 +450,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    *
    * 
-   * Request to fetch list of participant per conference.
+   * Request to fetch list of participants per conference.
    * 
* * Protobuf type {@code google.apps.meet.v2beta.ListParticipantsRequest} @@ -962,8 +964,9 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. User specified filtering condition in EBNF format. The following
-     * are the filterable fields:
+     * Optional. User specified filtering condition in [EBNF
+     * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+     * The following are the filterable fields:
      *
      * * `earliest_start_time`
      * * `latest_end_time`
@@ -991,8 +994,9 @@ public java.lang.String getFilter() {
      *
      *
      * 
-     * Optional. User specified filtering condition in EBNF format. The following
-     * are the filterable fields:
+     * Optional. User specified filtering condition in [EBNF
+     * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+     * The following are the filterable fields:
      *
      * * `earliest_start_time`
      * * `latest_end_time`
@@ -1020,8 +1024,9 @@ public com.google.protobuf.ByteString getFilterBytes() {
      *
      *
      * 
-     * Optional. User specified filtering condition in EBNF format. The following
-     * are the filterable fields:
+     * Optional. User specified filtering condition in [EBNF
+     * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+     * The following are the filterable fields:
      *
      * * `earliest_start_time`
      * * `latest_end_time`
@@ -1048,8 +1053,9 @@ public Builder setFilter(java.lang.String value) {
      *
      *
      * 
-     * Optional. User specified filtering condition in EBNF format. The following
-     * are the filterable fields:
+     * Optional. User specified filtering condition in [EBNF
+     * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+     * The following are the filterable fields:
      *
      * * `earliest_start_time`
      * * `latest_end_time`
@@ -1072,8 +1078,9 @@ public Builder clearFilter() {
      *
      *
      * 
-     * Optional. User specified filtering condition in EBNF format. The following
-     * are the filterable fields:
+     * Optional. User specified filtering condition in [EBNF
+     * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+     * The following are the filterable fields:
      *
      * * `earliest_start_time`
      * * `latest_end_time`
diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantsRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantsRequestOrBuilder.java
index d6f7518ea971..aa335eca6ebd 100644
--- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantsRequestOrBuilder.java
+++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListParticipantsRequestOrBuilder.java
@@ -99,8 +99,9 @@ public interface ListParticipantsRequestOrBuilder
    *
    *
    * 
-   * Optional. User specified filtering condition in EBNF format. The following
-   * are the filterable fields:
+   * Optional. User specified filtering condition in [EBNF
+   * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+   * The following are the filterable fields:
    *
    * * `earliest_start_time`
    * * `latest_end_time`
@@ -118,8 +119,9 @@ public interface ListParticipantsRequestOrBuilder
    *
    *
    * 
-   * Optional. User specified filtering condition in EBNF format. The following
-   * are the filterable fields:
+   * Optional. User specified filtering condition in [EBNF
+   * format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
+   * The following are the filterable fields:
    *
    * * `earliest_start_time`
    * * `latest_end_time`
diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListTranscriptEntriesResponse.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListTranscriptEntriesResponse.java
index 29e6ce5cac71..0412e1ec271e 100644
--- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListTranscriptEntriesResponse.java
+++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ListTranscriptEntriesResponse.java
@@ -23,7 +23,7 @@
  *
  *
  * 
- * Response for ListTranscriptEntries method
+ * Response for ListTranscriptEntries method.
  * 
* * Protobuf type {@code google.apps.meet.v2beta.ListTranscriptEntriesResponse} @@ -365,7 +365,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Response for ListTranscriptEntries method
+   * Response for ListTranscriptEntries method.
    * 
* * Protobuf type {@code google.apps.meet.v2beta.ListTranscriptEntriesResponse} diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/Member.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/Member.java new file mode 100644 index 000000000000..cd9d7d9196c8 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/Member.java @@ -0,0 +1,1306 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2beta/resource.proto + +// Protobuf Java Version: 3.25.5 +package com.google.apps.meet.v2beta; + +/** + * + * + *
+ * Users who are configured to have a role in the space. These users can
+ * join the space without knocking.
+ * 
+ * + * Protobuf type {@code google.apps.meet.v2beta.Member} + */ +public final class Member extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2beta.Member) + MemberOrBuilder { + private static final long serialVersionUID = 0L; + // Use Member.newBuilder() to construct. + private Member(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Member() { + name_ = ""; + email_ = ""; + role_ = 0; + user_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Member(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2beta.ResourceProto + .internal_static_google_apps_meet_v2beta_Member_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2beta.ResourceProto + .internal_static_google_apps_meet_v2beta_Member_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2beta.Member.class, + com.google.apps.meet.v2beta.Member.Builder.class); + } + + /** + * + * + *
+   * Role of this member in the space.
+   * 
+ * + * Protobuf enum {@code google.apps.meet.v2beta.Member.Role} + */ + public enum Role implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * This is used to indicate the user hasn't specified any value and the
+     * user’s role will be determined upon joining the meetings between
+     * 'contributor' and 'viewer' role depending on meeting configuration. More
+     * details about viewer role
+     * https://support.google.com/meet/answer/13658394?hl=en.
+     * 
+ * + * ROLE_UNSPECIFIED = 0; + */ + ROLE_UNSPECIFIED(0), + /** + * + * + *
+     * Co-host role.
+     * 
+ * + * COHOST = 1; + */ + COHOST(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * This is used to indicate the user hasn't specified any value and the
+     * user’s role will be determined upon joining the meetings between
+     * 'contributor' and 'viewer' role depending on meeting configuration. More
+     * details about viewer role
+     * https://support.google.com/meet/answer/13658394?hl=en.
+     * 
+ * + * ROLE_UNSPECIFIED = 0; + */ + public static final int ROLE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Co-host role.
+     * 
+ * + * COHOST = 1; + */ + public static final int COHOST_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 Role 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 Role forNumber(int value) { + switch (value) { + case 0: + return ROLE_UNSPECIFIED; + case 1: + return COHOST; + 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 Role findValueByNumber(int number) { + return Role.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.apps.meet.v2beta.Member.getDescriptor().getEnumTypes().get(0); + } + + private static final Role[] VALUES = values(); + + public static Role 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 Role(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.apps.meet.v2beta.Member.Role) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Identifier. Resource name of the member.
+   * Format: spaces/{space}/members/{member}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + /** + * + * + *
+   * Identifier. Resource name of the member.
+   * Format: spaces/{space}/members/{member}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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 EMAIL_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object email_ = ""; + /** + * + * + *
+   * Email for the member. This is required for creating the member.
+   * 
+ * + * string email = 2; + * + * @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; + } + } + /** + * + * + *
+   * Email for the member. This is required for creating the member.
+   * 
+ * + * string email = 2; + * + * @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 ROLE_FIELD_NUMBER = 3; + private int role_ = 0; + /** + * + * + *
+   * The meeting role assigned to the member.
+   * 
+ * + * .google.apps.meet.v2beta.Member.Role role = 3; + * + * @return The enum numeric value on the wire for role. + */ + @java.lang.Override + public int getRoleValue() { + return role_; + } + /** + * + * + *
+   * The meeting role assigned to the member.
+   * 
+ * + * .google.apps.meet.v2beta.Member.Role role = 3; + * + * @return The role. + */ + @java.lang.Override + public com.google.apps.meet.v2beta.Member.Role getRole() { + com.google.apps.meet.v2beta.Member.Role result = + com.google.apps.meet.v2beta.Member.Role.forNumber(role_); + return result == null ? com.google.apps.meet.v2beta.Member.Role.UNRECOGNIZED : result; + } + + public static final int USER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object user_ = ""; + /** + * + * + *
+   * [Developer Preview](https://developers.google.com/workspace/preview):
+   * Unique name for the user. Interoperable with Admin SDK API and People API.
+   * This will be empty for non google users. Setting both user and email in
+   * request will result in error. Format: `users/{user}`
+   * 
+ * + * string user = 4; + * + * @return The user. + */ + @java.lang.Override + public java.lang.String getUser() { + java.lang.Object ref = user_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + user_ = s; + return s; + } + } + /** + * + * + *
+   * [Developer Preview](https://developers.google.com/workspace/preview):
+   * Unique name for the user. Interoperable with Admin SDK API and People API.
+   * This will be empty for non google users. Setting both user and email in
+   * request will result in error. Format: `users/{user}`
+   * 
+ * + * string user = 4; + * + * @return The bytes for user. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserBytes() { + java.lang.Object ref = user_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + user_ = 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(email_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, email_); + } + if (role_ != com.google.apps.meet.v2beta.Member.Role.ROLE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, role_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(user_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, user_); + } + 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(email_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, email_); + } + if (role_ != com.google.apps.meet.v2beta.Member.Role.ROLE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, role_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(user_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, user_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.apps.meet.v2beta.Member)) { + return super.equals(obj); + } + com.google.apps.meet.v2beta.Member other = (com.google.apps.meet.v2beta.Member) obj; + + if (!getName().equals(other.getName())) return false; + if (!getEmail().equals(other.getEmail())) return false; + if (role_ != other.role_) return false; + if (!getUser().equals(other.getUser())) return false; + if (!getUnknownFields().equals(other.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) + EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getEmail().hashCode(); + hash = (37 * hash) + ROLE_FIELD_NUMBER; + hash = (53 * hash) + role_; + hash = (37 * hash) + USER_FIELD_NUMBER; + hash = (53 * hash) + getUser().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2beta.Member parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2beta.Member parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.Member parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2beta.Member parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.Member parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2beta.Member parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.Member parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2beta.Member parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.Member parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2beta.Member parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.Member parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2beta.Member parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.apps.meet.v2beta.Member prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Users who are configured to have a role in the space. These users can
+   * join the space without knocking.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2beta.Member} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2beta.Member) + com.google.apps.meet.v2beta.MemberOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2beta.ResourceProto + .internal_static_google_apps_meet_v2beta_Member_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2beta.ResourceProto + .internal_static_google_apps_meet_v2beta_Member_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2beta.Member.class, + com.google.apps.meet.v2beta.Member.Builder.class); + } + + // Construct using com.google.apps.meet.v2beta.Member.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + email_ = ""; + role_ = 0; + user_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2beta.ResourceProto + .internal_static_google_apps_meet_v2beta_Member_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2beta.Member getDefaultInstanceForType() { + return com.google.apps.meet.v2beta.Member.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2beta.Member build() { + com.google.apps.meet.v2beta.Member result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2beta.Member buildPartial() { + com.google.apps.meet.v2beta.Member result = new com.google.apps.meet.v2beta.Member(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.apps.meet.v2beta.Member result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.email_ = email_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.role_ = role_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.user_ = user_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.apps.meet.v2beta.Member) { + return mergeFrom((com.google.apps.meet.v2beta.Member) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2beta.Member other) { + if (other == com.google.apps.meet.v2beta.Member.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEmail().isEmpty()) { + email_ = other.email_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.role_ != 0) { + setRoleValue(other.getRoleValue()); + } + if (!other.getUser().isEmpty()) { + user_ = other.user_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + email_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + role_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + user_ = 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 name_ = ""; + /** + * + * + *
+     * Identifier. Resource name of the member.
+     * Format: spaces/{space}/members/{member}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + /** + * + * + *
+     * Identifier. Resource name of the member.
+     * Format: spaces/{space}/members/{member}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + /** + * + * + *
+     * Identifier. Resource name of the member.
+     * Format: spaces/{space}/members/{member}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + /** + * + * + *
+     * Identifier. Resource name of the member.
+     * Format: spaces/{space}/members/{member}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Identifier. Resource name of the member.
+     * Format: spaces/{space}/members/{member}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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 email_ = ""; + /** + * + * + *
+     * Email for the member. This is required for creating the member.
+     * 
+ * + * string email = 2; + * + * @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; + } + } + /** + * + * + *
+     * Email for the member. This is required for creating the member.
+     * 
+ * + * string email = 2; + * + * @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; + } + } + /** + * + * + *
+     * Email for the member. This is required for creating the member.
+     * 
+ * + * string email = 2; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Email for the member. This is required for creating the member.
+     * 
+ * + * string email = 2; + * + * @return This builder for chaining. + */ + public Builder clearEmail() { + email_ = getDefaultInstance().getEmail(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Email for the member. This is required for creating the member.
+     * 
+ * + * string email = 2; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private int role_ = 0; + /** + * + * + *
+     * The meeting role assigned to the member.
+     * 
+ * + * .google.apps.meet.v2beta.Member.Role role = 3; + * + * @return The enum numeric value on the wire for role. + */ + @java.lang.Override + public int getRoleValue() { + return role_; + } + /** + * + * + *
+     * The meeting role assigned to the member.
+     * 
+ * + * .google.apps.meet.v2beta.Member.Role role = 3; + * + * @param value The enum numeric value on the wire for role to set. + * @return This builder for chaining. + */ + public Builder setRoleValue(int value) { + role_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The meeting role assigned to the member.
+     * 
+ * + * .google.apps.meet.v2beta.Member.Role role = 3; + * + * @return The role. + */ + @java.lang.Override + public com.google.apps.meet.v2beta.Member.Role getRole() { + com.google.apps.meet.v2beta.Member.Role result = + com.google.apps.meet.v2beta.Member.Role.forNumber(role_); + return result == null ? com.google.apps.meet.v2beta.Member.Role.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The meeting role assigned to the member.
+     * 
+ * + * .google.apps.meet.v2beta.Member.Role role = 3; + * + * @param value The role to set. + * @return This builder for chaining. + */ + public Builder setRole(com.google.apps.meet.v2beta.Member.Role value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + role_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The meeting role assigned to the member.
+     * 
+ * + * .google.apps.meet.v2beta.Member.Role role = 3; + * + * @return This builder for chaining. + */ + public Builder clearRole() { + bitField0_ = (bitField0_ & ~0x00000004); + role_ = 0; + onChanged(); + return this; + } + + private java.lang.Object user_ = ""; + /** + * + * + *
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * Unique name for the user. Interoperable with Admin SDK API and People API.
+     * This will be empty for non google users. Setting both user and email in
+     * request will result in error. Format: `users/{user}`
+     * 
+ * + * string user = 4; + * + * @return The user. + */ + public java.lang.String getUser() { + java.lang.Object ref = user_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + user_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * Unique name for the user. Interoperable with Admin SDK API and People API.
+     * This will be empty for non google users. Setting both user and email in
+     * request will result in error. Format: `users/{user}`
+     * 
+ * + * string user = 4; + * + * @return The bytes for user. + */ + public com.google.protobuf.ByteString getUserBytes() { + java.lang.Object ref = user_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + user_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * Unique name for the user. Interoperable with Admin SDK API and People API.
+     * This will be empty for non google users. Setting both user and email in
+     * request will result in error. Format: `users/{user}`
+     * 
+ * + * string user = 4; + * + * @param value The user to set. + * @return This builder for chaining. + */ + public Builder setUser(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + user_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * Unique name for the user. Interoperable with Admin SDK API and People API.
+     * This will be empty for non google users. Setting both user and email in
+     * request will result in error. Format: `users/{user}`
+     * 
+ * + * string user = 4; + * + * @return This builder for chaining. + */ + public Builder clearUser() { + user_ = getDefaultInstance().getUser(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * Unique name for the user. Interoperable with Admin SDK API and People API.
+     * This will be empty for non google users. Setting both user and email in
+     * request will result in error. Format: `users/{user}`
+     * 
+ * + * string user = 4; + * + * @param value The bytes for user to set. + * @return This builder for chaining. + */ + public Builder setUserBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + user_ = 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.apps.meet.v2beta.Member) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2beta.Member) + private static final com.google.apps.meet.v2beta.Member DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2beta.Member(); + } + + public static com.google.apps.meet.v2beta.Member getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Member parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2beta.Member getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/MemberName.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/MemberName.java new file mode 100644 index 000000000000..efd89fe4374c --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/MemberName.java @@ -0,0 +1,191 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.apps.meet.v2beta; + +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 MemberName implements ResourceName { + private static final PathTemplate SPACE_MEMBER = + PathTemplate.createWithoutUrlEncoding("spaces/{space}/members/{member}"); + private volatile Map fieldValuesMap; + private final String space; + private final String member; + + @Deprecated + protected MemberName() { + space = null; + member = null; + } + + private MemberName(Builder builder) { + space = Preconditions.checkNotNull(builder.getSpace()); + member = Preconditions.checkNotNull(builder.getMember()); + } + + public String getSpace() { + return space; + } + + public String getMember() { + return member; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static MemberName of(String space, String member) { + return newBuilder().setSpace(space).setMember(member).build(); + } + + public static String format(String space, String member) { + return newBuilder().setSpace(space).setMember(member).build().toString(); + } + + public static MemberName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + SPACE_MEMBER.validatedMatch( + formattedString, "MemberName.parse: formattedString not in valid format"); + return of(matchMap.get("space"), matchMap.get("member")); + } + + 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 (MemberName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return SPACE_MEMBER.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (space != null) { + fieldMapBuilder.put("space", space); + } + if (member != null) { + fieldMapBuilder.put("member", member); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return SPACE_MEMBER.instantiate("space", space, "member", member); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + MemberName that = ((MemberName) o); + return Objects.equals(this.space, that.space) && Objects.equals(this.member, that.member); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(space); + h *= 1000003; + h ^= Objects.hashCode(member); + return h; + } + + /** Builder for spaces/{space}/members/{member}. */ + public static class Builder { + private String space; + private String member; + + protected Builder() {} + + public String getSpace() { + return space; + } + + public String getMember() { + return member; + } + + public Builder setSpace(String space) { + this.space = space; + return this; + } + + public Builder setMember(String member) { + this.member = member; + return this; + } + + private Builder(MemberName memberName) { + this.space = memberName.space; + this.member = memberName.member; + } + + public MemberName build() { + return new MemberName(this); + } + } +} diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/MemberOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/MemberOrBuilder.java new file mode 100644 index 000000000000..d70e20c6c784 --- /dev/null +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/MemberOrBuilder.java @@ -0,0 +1,134 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/apps/meet/v2beta/resource.proto + +// Protobuf Java Version: 3.25.5 +package com.google.apps.meet.v2beta; + +public interface MemberOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2beta.Member) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. Resource name of the member.
+   * Format: spaces/{space}/members/{member}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Identifier. Resource name of the member.
+   * Format: spaces/{space}/members/{member}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Email for the member. This is required for creating the member.
+   * 
+ * + * string email = 2; + * + * @return The email. + */ + java.lang.String getEmail(); + /** + * + * + *
+   * Email for the member. This is required for creating the member.
+   * 
+ * + * string email = 2; + * + * @return The bytes for email. + */ + com.google.protobuf.ByteString getEmailBytes(); + + /** + * + * + *
+   * The meeting role assigned to the member.
+   * 
+ * + * .google.apps.meet.v2beta.Member.Role role = 3; + * + * @return The enum numeric value on the wire for role. + */ + int getRoleValue(); + /** + * + * + *
+   * The meeting role assigned to the member.
+   * 
+ * + * .google.apps.meet.v2beta.Member.Role role = 3; + * + * @return The role. + */ + com.google.apps.meet.v2beta.Member.Role getRole(); + + /** + * + * + *
+   * [Developer Preview](https://developers.google.com/workspace/preview):
+   * Unique name for the user. Interoperable with Admin SDK API and People API.
+   * This will be empty for non google users. Setting both user and email in
+   * request will result in error. Format: `users/{user}`
+   * 
+ * + * string user = 4; + * + * @return The user. + */ + java.lang.String getUser(); + /** + * + * + *
+   * [Developer Preview](https://developers.google.com/workspace/preview):
+   * Unique name for the user. Interoperable with Admin SDK API and People API.
+   * This will be empty for non google users. Setting both user and email in
+   * request will result in error. Format: `users/{user}`
+   * 
+ * + * string user = 4; + * + * @return The bytes for user. + */ + com.google.protobuf.ByteString getUserBytes(); +} diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/Participant.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/Participant.java index 4f6251991875..9e3515c608da 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/Participant.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/Participant.java @@ -23,7 +23,6 @@ * * *
- * [Developer Preview](https://developers.google.com/workspace/preview).
  * User who attended or is attending a conference.
  * 
* @@ -224,7 +223,7 @@ public com.google.apps.meet.v2beta.AnonymousUserOrBuilder getAnonymousUserOrBuil * * *
-   * User who calls in from their phone.
+   * User calling from their phone.
    * 
* * .google.apps.meet.v2beta.PhoneUser phone_user = 6; @@ -239,7 +238,7 @@ public boolean hasPhoneUser() { * * *
-   * User who calls in from their phone.
+   * User calling from their phone.
    * 
* * .google.apps.meet.v2beta.PhoneUser phone_user = 6; @@ -257,7 +256,7 @@ public com.google.apps.meet.v2beta.PhoneUser getPhoneUser() { * * *
-   * User who calls in from their phone.
+   * User calling from their phone.
    * 
* * .google.apps.meet.v2beta.PhoneUser phone_user = 6; @@ -329,8 +328,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * Output only. Time when the participant joined the meeting for the first
-   * time.
+   * Output only. Time when the participant first joined the meeting.
    * 
* * @@ -347,8 +345,7 @@ public boolean hasEarliestStartTime() { * * *
-   * Output only. Time when the participant joined the meeting for the first
-   * time.
+   * Output only. Time when the participant first joined the meeting.
    * 
* * @@ -367,8 +364,7 @@ public com.google.protobuf.Timestamp getEarliestStartTime() { * * *
-   * Output only. Time when the participant joined the meeting for the first
-   * time.
+   * Output only. Time when the participant first joined the meeting.
    * 
* * @@ -389,7 +385,7 @@ public com.google.protobuf.TimestampOrBuilder getEarliestStartTimeOrBuilder() { * *
    * Output only. Time when the participant left the meeting for the last time.
-   * This can be null if it is an active meeting.
+   * This can be null if it's an active meeting.
    * 
* * @@ -407,7 +403,7 @@ public boolean hasLatestEndTime() { * *
    * Output only. Time when the participant left the meeting for the last time.
-   * This can be null if it is an active meeting.
+   * This can be null if it's an active meeting.
    * 
* * @@ -427,7 +423,7 @@ public com.google.protobuf.Timestamp getLatestEndTime() { * *
    * Output only. Time when the participant left the meeting for the last time.
-   * This can be null if it is an active meeting.
+   * This can be null if it's an active meeting.
    * 
* * @@ -685,7 +681,6 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * [Developer Preview](https://developers.google.com/workspace/preview).
    * User who attended or is attending a conference.
    * 
* @@ -1423,7 +1418,7 @@ public com.google.apps.meet.v2beta.AnonymousUserOrBuilder getAnonymousUserOrBuil * * *
-     * User who calls in from their phone.
+     * User calling from their phone.
      * 
* * .google.apps.meet.v2beta.PhoneUser phone_user = 6; @@ -1438,7 +1433,7 @@ public boolean hasPhoneUser() { * * *
-     * User who calls in from their phone.
+     * User calling from their phone.
      * 
* * .google.apps.meet.v2beta.PhoneUser phone_user = 6; @@ -1463,7 +1458,7 @@ public com.google.apps.meet.v2beta.PhoneUser getPhoneUser() { * * *
-     * User who calls in from their phone.
+     * User calling from their phone.
      * 
* * .google.apps.meet.v2beta.PhoneUser phone_user = 6; @@ -1485,7 +1480,7 @@ public Builder setPhoneUser(com.google.apps.meet.v2beta.PhoneUser value) { * * *
-     * User who calls in from their phone.
+     * User calling from their phone.
      * 
* * .google.apps.meet.v2beta.PhoneUser phone_user = 6; @@ -1504,7 +1499,7 @@ public Builder setPhoneUser(com.google.apps.meet.v2beta.PhoneUser.Builder builde * * *
-     * User who calls in from their phone.
+     * User calling from their phone.
      * 
* * .google.apps.meet.v2beta.PhoneUser phone_user = 6; @@ -1535,7 +1530,7 @@ public Builder mergePhoneUser(com.google.apps.meet.v2beta.PhoneUser value) { * * *
-     * User who calls in from their phone.
+     * User calling from their phone.
      * 
* * .google.apps.meet.v2beta.PhoneUser phone_user = 6; @@ -1560,7 +1555,7 @@ public Builder clearPhoneUser() { * * *
-     * User who calls in from their phone.
+     * User calling from their phone.
      * 
* * .google.apps.meet.v2beta.PhoneUser phone_user = 6; @@ -1572,7 +1567,7 @@ public com.google.apps.meet.v2beta.PhoneUser.Builder getPhoneUserBuilder() { * * *
-     * User who calls in from their phone.
+     * User calling from their phone.
      * 
* * .google.apps.meet.v2beta.PhoneUser phone_user = 6; @@ -1592,7 +1587,7 @@ public com.google.apps.meet.v2beta.PhoneUserOrBuilder getPhoneUserOrBuilder() { * * *
-     * User who calls in from their phone.
+     * User calling from their phone.
      * 
* * .google.apps.meet.v2beta.PhoneUser phone_user = 6; @@ -1740,8 +1735,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. Time when the participant joined the meeting for the first
-     * time.
+     * Output only. Time when the participant first joined the meeting.
      * 
* * @@ -1757,8 +1751,7 @@ public boolean hasEarliestStartTime() { * * *
-     * Output only. Time when the participant joined the meeting for the first
-     * time.
+     * Output only. Time when the participant first joined the meeting.
      * 
* * @@ -1780,8 +1773,7 @@ public com.google.protobuf.Timestamp getEarliestStartTime() { * * *
-     * Output only. Time when the participant joined the meeting for the first
-     * time.
+     * Output only. Time when the participant first joined the meeting.
      * 
* * @@ -1805,8 +1797,7 @@ public Builder setEarliestStartTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. Time when the participant joined the meeting for the first
-     * time.
+     * Output only. Time when the participant first joined the meeting.
      * 
* * @@ -1827,8 +1818,7 @@ public Builder setEarliestStartTime(com.google.protobuf.Timestamp.Builder builde * * *
-     * Output only. Time when the participant joined the meeting for the first
-     * time.
+     * Output only. Time when the participant first joined the meeting.
      * 
* * @@ -1857,8 +1847,7 @@ public Builder mergeEarliestStartTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. Time when the participant joined the meeting for the first
-     * time.
+     * Output only. Time when the participant first joined the meeting.
      * 
* * @@ -1879,8 +1868,7 @@ public Builder clearEarliestStartTime() { * * *
-     * Output only. Time when the participant joined the meeting for the first
-     * time.
+     * Output only. Time when the participant first joined the meeting.
      * 
* * @@ -1896,8 +1884,7 @@ public com.google.protobuf.Timestamp.Builder getEarliestStartTimeBuilder() { * * *
-     * Output only. Time when the participant joined the meeting for the first
-     * time.
+     * Output only. Time when the participant first joined the meeting.
      * 
* * @@ -1917,8 +1904,7 @@ public com.google.protobuf.TimestampOrBuilder getEarliestStartTimeOrBuilder() { * * *
-     * Output only. Time when the participant joined the meeting for the first
-     * time.
+     * Output only. Time when the participant first joined the meeting.
      * 
* * @@ -1953,7 +1939,7 @@ public com.google.protobuf.TimestampOrBuilder getEarliestStartTimeOrBuilder() { * *
      * Output only. Time when the participant left the meeting for the last time.
-     * This can be null if it is an active meeting.
+     * This can be null if it's an active meeting.
      * 
* * @@ -1970,7 +1956,7 @@ public boolean hasLatestEndTime() { * *
      * Output only. Time when the participant left the meeting for the last time.
-     * This can be null if it is an active meeting.
+     * This can be null if it's an active meeting.
      * 
* * @@ -1993,7 +1979,7 @@ public com.google.protobuf.Timestamp getLatestEndTime() { * *
      * Output only. Time when the participant left the meeting for the last time.
-     * This can be null if it is an active meeting.
+     * This can be null if it's an active meeting.
      * 
* * @@ -2018,7 +2004,7 @@ public Builder setLatestEndTime(com.google.protobuf.Timestamp value) { * *
      * Output only. Time when the participant left the meeting for the last time.
-     * This can be null if it is an active meeting.
+     * This can be null if it's an active meeting.
      * 
* * @@ -2040,7 +2026,7 @@ public Builder setLatestEndTime(com.google.protobuf.Timestamp.Builder builderFor * *
      * Output only. Time when the participant left the meeting for the last time.
-     * This can be null if it is an active meeting.
+     * This can be null if it's an active meeting.
      * 
* * @@ -2070,7 +2056,7 @@ public Builder mergeLatestEndTime(com.google.protobuf.Timestamp value) { * *
      * Output only. Time when the participant left the meeting for the last time.
-     * This can be null if it is an active meeting.
+     * This can be null if it's an active meeting.
      * 
* * @@ -2092,7 +2078,7 @@ public Builder clearLatestEndTime() { * *
      * Output only. Time when the participant left the meeting for the last time.
-     * This can be null if it is an active meeting.
+     * This can be null if it's an active meeting.
      * 
* * @@ -2109,7 +2095,7 @@ public com.google.protobuf.Timestamp.Builder getLatestEndTimeBuilder() { * *
      * Output only. Time when the participant left the meeting for the last time.
-     * This can be null if it is an active meeting.
+     * This can be null if it's an active meeting.
      * 
* * @@ -2130,7 +2116,7 @@ public com.google.protobuf.TimestampOrBuilder getLatestEndTimeOrBuilder() { * *
      * Output only. Time when the participant left the meeting for the last time.
-     * This can be null if it is an active meeting.
+     * This can be null if it's an active meeting.
      * 
* * diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ParticipantOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ParticipantOrBuilder.java index 352b732646e0..42da3404d49a 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ParticipantOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ParticipantOrBuilder.java @@ -98,7 +98,7 @@ public interface ParticipantOrBuilder * * *
-   * User who calls in from their phone.
+   * User calling from their phone.
    * 
* * .google.apps.meet.v2beta.PhoneUser phone_user = 6; @@ -110,7 +110,7 @@ public interface ParticipantOrBuilder * * *
-   * User who calls in from their phone.
+   * User calling from their phone.
    * 
* * .google.apps.meet.v2beta.PhoneUser phone_user = 6; @@ -122,7 +122,7 @@ public interface ParticipantOrBuilder * * *
-   * User who calls in from their phone.
+   * User calling from their phone.
    * 
* * .google.apps.meet.v2beta.PhoneUser phone_user = 6; @@ -160,8 +160,7 @@ public interface ParticipantOrBuilder * * *
-   * Output only. Time when the participant joined the meeting for the first
-   * time.
+   * Output only. Time when the participant first joined the meeting.
    * 
* * @@ -175,8 +174,7 @@ public interface ParticipantOrBuilder * * *
-   * Output only. Time when the participant joined the meeting for the first
-   * time.
+   * Output only. Time when the participant first joined the meeting.
    * 
* * @@ -190,8 +188,7 @@ public interface ParticipantOrBuilder * * *
-   * Output only. Time when the participant joined the meeting for the first
-   * time.
+   * Output only. Time when the participant first joined the meeting.
    * 
* * @@ -205,7 +202,7 @@ public interface ParticipantOrBuilder * *
    * Output only. Time when the participant left the meeting for the last time.
-   * This can be null if it is an active meeting.
+   * This can be null if it's an active meeting.
    * 
* * @@ -220,7 +217,7 @@ public interface ParticipantOrBuilder * *
    * Output only. Time when the participant left the meeting for the last time.
-   * This can be null if it is an active meeting.
+   * This can be null if it's an active meeting.
    * 
* * @@ -235,7 +232,7 @@ public interface ParticipantOrBuilder * *
    * Output only. Time when the participant left the meeting for the last time.
-   * This can be null if it is an active meeting.
+   * This can be null if it's an active meeting.
    * 
* * diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ParticipantSession.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ParticipantSession.java index 0c620d684953..68f73ad16c66 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ParticipantSession.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ParticipantSession.java @@ -23,10 +23,9 @@ * * *
- * [Developer Preview](https://developers.google.com/workspace/preview).
- * Refers to each unique join/leave session when a user joins a conference from
- * a device. Note that any time a user joins the conference a new unique ID is
- * assigned. That means if a user joins a space multiple times from the same
+ * Refers to each unique join or leave session when a user joins a conference
+ * from a device. Note that any time a user joins the conference a new unique ID
+ * is assigned. That means if a user joins a space multiple times from the same
  * device, they're assigned different IDs, and are also be treated as different
  * participant sessions.
  * 
@@ -126,7 +125,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * Output only. Timestamp when the user session started.
+   * Output only. Timestamp when the user session starts.
    * 
* * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -142,7 +141,7 @@ public boolean hasStartTime() { * * *
-   * Output only. Timestamp when the user session started.
+   * Output only. Timestamp when the user session starts.
    * 
* * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -158,7 +157,7 @@ public com.google.protobuf.Timestamp getStartTime() { * * *
-   * Output only. Timestamp when the user session started.
+   * Output only. Timestamp when the user session starts.
    * 
* * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -175,7 +174,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * *
-   * Output only. Timestamp when the user session ended. Unset if the user
+   * Output only. Timestamp when the user session ends. Unset if the user
    * session hasn’t ended.
    * 
* @@ -192,7 +191,7 @@ public boolean hasEndTime() { * * *
-   * Output only. Timestamp when the user session ended. Unset if the user
+   * Output only. Timestamp when the user session ends. Unset if the user
    * session hasn’t ended.
    * 
* @@ -209,7 +208,7 @@ public com.google.protobuf.Timestamp getEndTime() { * * *
-   * Output only. Timestamp when the user session ended. Unset if the user
+   * Output only. Timestamp when the user session ends. Unset if the user
    * session hasn’t ended.
    * 
* @@ -412,10 +411,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * [Developer Preview](https://developers.google.com/workspace/preview).
-   * Refers to each unique join/leave session when a user joins a conference from
-   * a device. Note that any time a user joins the conference a new unique ID is
-   * assigned. That means if a user joins a space multiple times from the same
+   * Refers to each unique join or leave session when a user joins a conference
+   * from a device. Note that any time a user joins the conference a new unique ID
+   * is assigned. That means if a user joins a space multiple times from the same
    * device, they're assigned different IDs, and are also be treated as different
    * participant sessions.
    * 
@@ -759,7 +757,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. Timestamp when the user session started.
+     * Output only. Timestamp when the user session starts.
      * 
* * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -774,7 +772,7 @@ public boolean hasStartTime() { * * *
-     * Output only. Timestamp when the user session started.
+     * Output only. Timestamp when the user session starts.
      * 
* * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -793,7 +791,7 @@ public com.google.protobuf.Timestamp getStartTime() { * * *
-     * Output only. Timestamp when the user session started.
+     * Output only. Timestamp when the user session starts.
      * 
* * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -816,7 +814,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. Timestamp when the user session started.
+     * Output only. Timestamp when the user session starts.
      * 
* * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -836,7 +834,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu * * *
-     * Output only. Timestamp when the user session started.
+     * Output only. Timestamp when the user session starts.
      * 
* * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -864,7 +862,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. Timestamp when the user session started.
+     * Output only. Timestamp when the user session starts.
      * 
* * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -884,7 +882,7 @@ public Builder clearStartTime() { * * *
-     * Output only. Timestamp when the user session started.
+     * Output only. Timestamp when the user session starts.
      * 
* * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -899,7 +897,7 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { * * *
-     * Output only. Timestamp when the user session started.
+     * Output only. Timestamp when the user session starts.
      * 
* * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -916,7 +914,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * *
-     * Output only. Timestamp when the user session started.
+     * Output only. Timestamp when the user session starts.
      * 
* * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -949,7 +947,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * *
-     * Output only. Timestamp when the user session ended. Unset if the user
+     * Output only. Timestamp when the user session ends. Unset if the user
      * session hasn’t ended.
      * 
* @@ -965,7 +963,7 @@ public boolean hasEndTime() { * * *
-     * Output only. Timestamp when the user session ended. Unset if the user
+     * Output only. Timestamp when the user session ends. Unset if the user
      * session hasn’t ended.
      * 
* @@ -985,7 +983,7 @@ public com.google.protobuf.Timestamp getEndTime() { * * *
-     * Output only. Timestamp when the user session ended. Unset if the user
+     * Output only. Timestamp when the user session ends. Unset if the user
      * session hasn’t ended.
      * 
* @@ -1009,7 +1007,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. Timestamp when the user session ended. Unset if the user
+     * Output only. Timestamp when the user session ends. Unset if the user
      * session hasn’t ended.
      * 
* @@ -1030,7 +1028,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) * * *
-     * Output only. Timestamp when the user session ended. Unset if the user
+     * Output only. Timestamp when the user session ends. Unset if the user
      * session hasn’t ended.
      * 
* @@ -1059,7 +1057,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. Timestamp when the user session ended. Unset if the user
+     * Output only. Timestamp when the user session ends. Unset if the user
      * session hasn’t ended.
      * 
* @@ -1080,7 +1078,7 @@ public Builder clearEndTime() { * * *
-     * Output only. Timestamp when the user session ended. Unset if the user
+     * Output only. Timestamp when the user session ends. Unset if the user
      * session hasn’t ended.
      * 
* @@ -1096,7 +1094,7 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { * * *
-     * Output only. Timestamp when the user session ended. Unset if the user
+     * Output only. Timestamp when the user session ends. Unset if the user
      * session hasn’t ended.
      * 
* @@ -1114,7 +1112,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * * *
-     * Output only. Timestamp when the user session ended. Unset if the user
+     * Output only. Timestamp when the user session ends. Unset if the user
      * session hasn’t ended.
      * 
* diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ParticipantSessionOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ParticipantSessionOrBuilder.java index 94b0695454e8..a4e1641779d5 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ParticipantSessionOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ParticipantSessionOrBuilder.java @@ -53,7 +53,7 @@ public interface ParticipantSessionOrBuilder * * *
-   * Output only. Timestamp when the user session started.
+   * Output only. Timestamp when the user session starts.
    * 
* * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -66,7 +66,7 @@ public interface ParticipantSessionOrBuilder * * *
-   * Output only. Timestamp when the user session started.
+   * Output only. Timestamp when the user session starts.
    * 
* * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -79,7 +79,7 @@ public interface ParticipantSessionOrBuilder * * *
-   * Output only. Timestamp when the user session started.
+   * Output only. Timestamp when the user session starts.
    * 
* * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -91,7 +91,7 @@ public interface ParticipantSessionOrBuilder * * *
-   * Output only. Timestamp when the user session ended. Unset if the user
+   * Output only. Timestamp when the user session ends. Unset if the user
    * session hasn’t ended.
    * 
* @@ -105,7 +105,7 @@ public interface ParticipantSessionOrBuilder * * *
-   * Output only. Timestamp when the user session ended. Unset if the user
+   * Output only. Timestamp when the user session ends. Unset if the user
    * session hasn’t ended.
    * 
* @@ -119,7 +119,7 @@ public interface ParticipantSessionOrBuilder * * *
-   * Output only. Timestamp when the user session ended. Unset if the user
+   * Output only. Timestamp when the user session ends. Unset if the user
    * session hasn’t ended.
    * 
* diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/PhoneUser.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/PhoneUser.java index 8ec3a45f95e2..04369227c572 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/PhoneUser.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/PhoneUser.java @@ -72,7 +72,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. Partially redacted user's phone number when they call in.
+   * Output only. Partially redacted user's phone number when calling.
    * 
* * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -95,7 +95,7 @@ public java.lang.String getDisplayName() { * * *
-   * Output only. Partially redacted user's phone number when they call in.
+   * Output only. Partially redacted user's phone number when calling.
    * 
* * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -460,7 +460,7 @@ public Builder mergeFrom( * * *
-     * Output only. Partially redacted user's phone number when they call in.
+     * Output only. Partially redacted user's phone number when calling.
      * 
* * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -482,7 +482,7 @@ public java.lang.String getDisplayName() { * * *
-     * Output only. Partially redacted user's phone number when they call in.
+     * Output only. Partially redacted user's phone number when calling.
      * 
* * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -504,7 +504,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-     * Output only. Partially redacted user's phone number when they call in.
+     * Output only. Partially redacted user's phone number when calling.
      * 
* * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -525,7 +525,7 @@ public Builder setDisplayName(java.lang.String value) { * * *
-     * Output only. Partially redacted user's phone number when they call in.
+     * Output only. Partially redacted user's phone number when calling.
      * 
* * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -542,7 +542,7 @@ public Builder clearDisplayName() { * * *
-     * Output only. Partially redacted user's phone number when they call in.
+     * Output only. Partially redacted user's phone number when calling.
      * 
* * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/PhoneUserOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/PhoneUserOrBuilder.java index 80130858f248..d4bdc5633c3a 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/PhoneUserOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/PhoneUserOrBuilder.java @@ -28,7 +28,7 @@ public interface PhoneUserOrBuilder * * *
-   * Output only. Partially redacted user's phone number when they call in.
+   * Output only. Partially redacted user's phone number when calling.
    * 
* * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -40,7 +40,7 @@ public interface PhoneUserOrBuilder * * *
-   * Output only. Partially redacted user's phone number when they call in.
+   * Output only. Partially redacted user's phone number when calling.
    * 
* * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/Recording.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/Recording.java index 06229a0b034b..b3af0d9c85d0 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/Recording.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/Recording.java @@ -23,7 +23,6 @@ * * *
- * [Developer Preview](https://developers.google.com/workspace/preview).
  * Metadata about a recording created during a conference.
  * 
* @@ -298,7 +297,7 @@ public DestinationCase getDestinationCase() { * * *
-   * Output only. Recording is saved to Google Drive as an mp4 file. The
+   * Output only. Recording is saved to Google Drive as an MP4 file. The
    * `drive_destination` includes the Drive `fileId` that can be used to
    * download the file using the `files.get` method of the Drive API.
    * 
@@ -317,7 +316,7 @@ public boolean hasDriveDestination() { * * *
-   * Output only. Recording is saved to Google Drive as an mp4 file. The
+   * Output only. Recording is saved to Google Drive as an MP4 file. The
    * `drive_destination` includes the Drive `fileId` that can be used to
    * download the file using the `files.get` method of the Drive API.
    * 
@@ -339,7 +338,7 @@ public com.google.apps.meet.v2beta.DriveDestination getDriveDestination() { * * *
-   * Output only. Recording is saved to Google Drive as an mp4 file. The
+   * Output only. Recording is saved to Google Drive as an MP4 file. The
    * `drive_destination` includes the Drive `fileId` that can be used to
    * download the file using the `files.get` method of the Drive API.
    * 
@@ -772,7 +771,6 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * [Developer Preview](https://developers.google.com/workspace/preview).
    * Metadata about a recording created during a conference.
    * 
* @@ -1067,7 +1065,7 @@ public Builder clearDestination() { * * *
-     * Output only. Recording is saved to Google Drive as an mp4 file. The
+     * Output only. Recording is saved to Google Drive as an MP4 file. The
      * `drive_destination` includes the Drive `fileId` that can be used to
      * download the file using the `files.get` method of the Drive API.
      * 
@@ -1086,7 +1084,7 @@ public boolean hasDriveDestination() { * * *
-     * Output only. Recording is saved to Google Drive as an mp4 file. The
+     * Output only. Recording is saved to Google Drive as an MP4 file. The
      * `drive_destination` includes the Drive `fileId` that can be used to
      * download the file using the `files.get` method of the Drive API.
      * 
@@ -1115,7 +1113,7 @@ public com.google.apps.meet.v2beta.DriveDestination getDriveDestination() { * * *
-     * Output only. Recording is saved to Google Drive as an mp4 file. The
+     * Output only. Recording is saved to Google Drive as an MP4 file. The
      * `drive_destination` includes the Drive `fileId` that can be used to
      * download the file using the `files.get` method of the Drive API.
      * 
@@ -1141,7 +1139,7 @@ public Builder setDriveDestination(com.google.apps.meet.v2beta.DriveDestination * * *
-     * Output only. Recording is saved to Google Drive as an mp4 file. The
+     * Output only. Recording is saved to Google Drive as an MP4 file. The
      * `drive_destination` includes the Drive `fileId` that can be used to
      * download the file using the `files.get` method of the Drive API.
      * 
@@ -1165,7 +1163,7 @@ public Builder setDriveDestination( * * *
-     * Output only. Recording is saved to Google Drive as an mp4 file. The
+     * Output only. Recording is saved to Google Drive as an MP4 file. The
      * `drive_destination` includes the Drive `fileId` that can be used to
      * download the file using the `files.get` method of the Drive API.
      * 
@@ -1201,7 +1199,7 @@ public Builder mergeDriveDestination(com.google.apps.meet.v2beta.DriveDestinatio * * *
-     * Output only. Recording is saved to Google Drive as an mp4 file. The
+     * Output only. Recording is saved to Google Drive as an MP4 file. The
      * `drive_destination` includes the Drive `fileId` that can be used to
      * download the file using the `files.get` method of the Drive API.
      * 
@@ -1230,7 +1228,7 @@ public Builder clearDriveDestination() { * * *
-     * Output only. Recording is saved to Google Drive as an mp4 file. The
+     * Output only. Recording is saved to Google Drive as an MP4 file. The
      * `drive_destination` includes the Drive `fileId` that can be used to
      * download the file using the `files.get` method of the Drive API.
      * 
@@ -1246,7 +1244,7 @@ public com.google.apps.meet.v2beta.DriveDestination.Builder getDriveDestinationB * * *
-     * Output only. Recording is saved to Google Drive as an mp4 file. The
+     * Output only. Recording is saved to Google Drive as an MP4 file. The
      * `drive_destination` includes the Drive `fileId` that can be used to
      * download the file using the `files.get` method of the Drive API.
      * 
@@ -1270,7 +1268,7 @@ public com.google.apps.meet.v2beta.DriveDestinationOrBuilder getDriveDestination * * *
-     * Output only. Recording is saved to Google Drive as an mp4 file. The
+     * Output only. Recording is saved to Google Drive as an MP4 file. The
      * `drive_destination` includes the Drive `fileId` that can be used to
      * download the file using the `files.get` method of the Drive API.
      * 
diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/RecordingOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/RecordingOrBuilder.java index 4d6ed0815599..4656222055a5 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/RecordingOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/RecordingOrBuilder.java @@ -28,7 +28,7 @@ public interface RecordingOrBuilder * * *
-   * Output only. Recording is saved to Google Drive as an mp4 file. The
+   * Output only. Recording is saved to Google Drive as an MP4 file. The
    * `drive_destination` includes the Drive `fileId` that can be used to
    * download the file using the `files.get` method of the Drive API.
    * 
@@ -44,7 +44,7 @@ public interface RecordingOrBuilder * * *
-   * Output only. Recording is saved to Google Drive as an mp4 file. The
+   * Output only. Recording is saved to Google Drive as an MP4 file. The
    * `drive_destination` includes the Drive `fileId` that can be used to
    * download the file using the `files.get` method of the Drive API.
    * 
@@ -60,7 +60,7 @@ public interface RecordingOrBuilder * * *
-   * Output only. Recording is saved to Google Drive as an mp4 file. The
+   * Output only. Recording is saved to Google Drive as an MP4 file. The
    * `drive_destination` includes the Drive `fileId` that can be used to
    * download the file using the `files.get` method of the Drive API.
    * 
diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ResourceProto.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ResourceProto.java index 02d9bacc9ad3..ce54fe0dfc4f 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ResourceProto.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ResourceProto.java @@ -40,6 +40,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_apps_meet_v2beta_SpaceConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_apps_meet_v2beta_SpaceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2beta_SpaceConfig_ModerationRestrictions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2beta_SpaceConfig_ModerationRestrictions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_RecordingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_RecordingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_TranscriptionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_TranscriptionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_SmartNotesConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_SmartNotesConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2beta_Member_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2beta_Member_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_apps_meet_v2beta_ConferenceRecord_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -105,16 +129,71 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ence:.\352A+\n\031meet.googleapis.com/Space\022\016sp" + "aces/{space}\"[\n\020ActiveConference\022G\n\021conf" + "erence_record\030\001 \001(\tB,\340A\003\372A&\n$meet.google" - + "apis.com/ConferenceRecord\"\317\002\n\013SpaceConfi" + + "apis.com/ConferenceRecord\"\373\021\n\013SpaceConfi" + "g\022D\n\013access_type\030\001 \001(\0162/.google.apps.mee" + "t.v2beta.SpaceConfig.AccessType\022Q\n\022entry" + "_point_access\030\002 \001(\01625.google.apps.meet.v" - + "2beta.SpaceConfig.EntryPointAccess\"P\n\nAc" - + "cessType\022\033\n\027ACCESS_TYPE_UNSPECIFIED\020\000\022\010\n" - + "\004OPEN\020\001\022\013\n\007TRUSTED\020\002\022\016\n\nRESTRICTED\020\003\"U\n\020" - + "EntryPointAccess\022\"\n\036ENTRY_POINT_ACCESS_U" - + "NSPECIFIED\020\000\022\007\n\003ALL\020\001\022\024\n\020CREATOR_APP_ONL" - + "Y\020\002\"\354\002\n\020ConferenceRecord\022\021\n\004name\030\001 \001(\tB\003" + + "2beta.SpaceConfig.EntryPointAccess\022C\n\nmo" + + "deration\030\003 \001(\0162/.google.apps.meet.v2beta" + + ".SpaceConfig.Moderation\022\\\n\027moderation_re" + + "strictions\030\004 \001(\0132;.google.apps.meet.v2be" + + "ta.SpaceConfig.ModerationRestrictions\022n\n" + + "!attendance_report_generation_type\030\006 \001(\016" + + "2C.google.apps.meet.v2beta.SpaceConfig.A" + + "ttendanceReportGenerationType\022L\n\017artifac" + + "t_config\030\007 \001(\01323.google.apps.meet.v2beta" + + ".SpaceConfig.ArtifactConfig\032\200\005\n\026Moderati" + + "onRestrictions\022e\n\020chat_restriction\030\001 \001(\016" + + "2K.google.apps.meet.v2beta.SpaceConfig.M" + + "oderationRestrictions.RestrictionType\022i\n" + + "\024reaction_restriction\030\002 \001(\0162K.google.app" + + "s.meet.v2beta.SpaceConfig.ModerationRest" + + "rictions.RestrictionType\022h\n\023present_rest" + + "riction\030\003 \001(\0162K.google.apps.meet.v2beta." + + "SpaceConfig.ModerationRestrictions.Restr" + + "ictionType\022x\n\033default_join_as_viewer_typ" + + "e\030\004 \001(\0162S.google.apps.meet.v2beta.SpaceC" + + "onfig.ModerationRestrictions.DefaultJoin" + + "AsViewerType\"W\n\017RestrictionType\022 \n\034RESTR" + + "ICTION_TYPE_UNSPECIFIED\020\000\022\016\n\nHOSTS_ONLY\020" + + "\001\022\022\n\016NO_RESTRICTION\020\002\"W\n\027DefaultJoinAsVi" + + "ewerType\022+\n\'DEFAULT_JOIN_AS_VIEWER_TYPE_" + + "UNSPECIFIED\020\000\022\006\n\002ON\020\001\022\007\n\003OFF\020\002\032\213\006\n\016Artif" + + "actConfig\022]\n\020recording_config\030\001 \001(\0132C.go" + + "ogle.apps.meet.v2beta.SpaceConfig.Artifa" + + "ctConfig.RecordingConfig\022e\n\024transcriptio" + + "n_config\030\002 \001(\0132G.google.apps.meet.v2beta" + + ".SpaceConfig.ArtifactConfig.Transcriptio" + + "nConfig\022`\n\022smart_notes_config\030\003 \001(\0132D.go" + + "ogle.apps.meet.v2beta.SpaceConfig.Artifa" + + "ctConfig.SmartNotesConfig\032|\n\017RecordingCo" + + "nfig\022i\n\031auto_recording_generation\030\002 \001(\0162" + + "F.google.apps.meet.v2beta.SpaceConfig.Ar" + + "tifactConfig.AutoGenerationType\032\204\001\n\023Tran" + + "scriptionConfig\022m\n\035auto_transcription_ge" + + "neration\030\002 \001(\0162F.google.apps.meet.v2beta" + + ".SpaceConfig.ArtifactConfig.AutoGenerati" + + "onType\032\177\n\020SmartNotesConfig\022k\n\033auto_smart" + + "_notes_generation\030\002 \001(\0162F.google.apps.me" + + "et.v2beta.SpaceConfig.ArtifactConfig.Aut" + + "oGenerationType\"K\n\022AutoGenerationType\022$\n" + + " AUTO_GENERATION_TYPE_UNSPECIFIED\020\000\022\006\n\002O" + + "N\020\001\022\007\n\003OFF\020\002\"P\n\nAccessType\022\033\n\027ACCESS_TYP" + + "E_UNSPECIFIED\020\000\022\010\n\004OPEN\020\001\022\013\n\007TRUSTED\020\002\022\016" + + "\n\nRESTRICTED\020\003\"U\n\020EntryPointAccess\022\"\n\036EN" + + "TRY_POINT_ACCESS_UNSPECIFIED\020\000\022\007\n\003ALL\020\001\022" + + "\024\n\020CREATOR_APP_ONLY\020\002\"9\n\nModeration\022\032\n\026M" + + "ODERATION_UNSPECIFIED\020\000\022\007\n\003OFF\020\001\022\006\n\002ON\020\002" + + "\"}\n\036AttendanceReportGenerationType\0221\n-AT" + + "TENDANCE_REPORT_GENERATION_TYPE_UNSPECIF" + + "IED\020\000\022\023\n\017GENERATE_REPORT\020\001\022\023\n\017DO_NOT_GEN" + + "ERATE\020\002\"\351\001\n\006Member\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\r\n" + + "\005email\030\002 \001(\t\0222\n\004role\030\003 \001(\0162$.google.apps" + + ".meet.v2beta.Member.Role\022\014\n\004user\030\004 \001(\t\"(" + + "\n\004Role\022\024\n\020ROLE_UNSPECIFIED\020\000\022\n\n\006COHOST\020\001" + + ":Q\352AN\n\032meet.googleapis.com/Member\022\037space" + + "s/{space}/members/{member}*\007members2\006mem" + + "ber\"\354\002\n\020ConferenceRecord\022\021\n\004name\030\001 \001(\tB\003" + "\340A\010\0223\n\nstart_time\030\002 \001(\0132\032.google.protobu" + "f.TimestampB\003\340A\003\0221\n\010end_time\030\003 \001(\0132\032.goo" + "gle.protobuf.TimestampB\003\340A\003\0224\n\013expire_ti" @@ -222,10 +301,72 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_apps_meet_v2beta_SpaceConfig_descriptor, new java.lang.String[] { - "AccessType", "EntryPointAccess", + "AccessType", + "EntryPointAccess", + "Moderation", + "ModerationRestrictions", + "AttendanceReportGenerationType", + "ArtifactConfig", }); - internal_static_google_apps_meet_v2beta_ConferenceRecord_descriptor = + internal_static_google_apps_meet_v2beta_SpaceConfig_ModerationRestrictions_descriptor = + internal_static_google_apps_meet_v2beta_SpaceConfig_descriptor.getNestedTypes().get(0); + internal_static_google_apps_meet_v2beta_SpaceConfig_ModerationRestrictions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2beta_SpaceConfig_ModerationRestrictions_descriptor, + new java.lang.String[] { + "ChatRestriction", + "ReactionRestriction", + "PresentRestriction", + "DefaultJoinAsViewerType", + }); + internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_descriptor = + internal_static_google_apps_meet_v2beta_SpaceConfig_descriptor.getNestedTypes().get(1); + internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_descriptor, + new java.lang.String[] { + "RecordingConfig", "TranscriptionConfig", "SmartNotesConfig", + }); + internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_RecordingConfig_descriptor = + internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_RecordingConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_RecordingConfig_descriptor, + new java.lang.String[] { + "AutoRecordingGeneration", + }); + internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_TranscriptionConfig_descriptor = + internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_TranscriptionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_TranscriptionConfig_descriptor, + new java.lang.String[] { + "AutoTranscriptionGeneration", + }); + internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_SmartNotesConfig_descriptor = + internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_descriptor + .getNestedTypes() + .get(2); + internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_SmartNotesConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_SmartNotesConfig_descriptor, + new java.lang.String[] { + "AutoSmartNotesGeneration", + }); + internal_static_google_apps_meet_v2beta_Member_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_google_apps_meet_v2beta_Member_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2beta_Member_descriptor, + new java.lang.String[] { + "Name", "Email", "Role", "User", + }); + internal_static_google_apps_meet_v2beta_ConferenceRecord_descriptor = + getDescriptor().getMessageTypes().get(4); internal_static_google_apps_meet_v2beta_ConferenceRecord_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_apps_meet_v2beta_ConferenceRecord_descriptor, @@ -233,7 +374,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "StartTime", "EndTime", "ExpireTime", "Space", }); internal_static_google_apps_meet_v2beta_Participant_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(5); internal_static_google_apps_meet_v2beta_Participant_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_apps_meet_v2beta_Participant_descriptor, @@ -247,7 +388,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "User", }); internal_static_google_apps_meet_v2beta_ParticipantSession_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(6); internal_static_google_apps_meet_v2beta_ParticipantSession_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_apps_meet_v2beta_ParticipantSession_descriptor, @@ -255,7 +396,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "StartTime", "EndTime", }); internal_static_google_apps_meet_v2beta_SignedinUser_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(7); internal_static_google_apps_meet_v2beta_SignedinUser_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_apps_meet_v2beta_SignedinUser_descriptor, @@ -263,7 +404,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "User", "DisplayName", }); internal_static_google_apps_meet_v2beta_AnonymousUser_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(8); internal_static_google_apps_meet_v2beta_AnonymousUser_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_apps_meet_v2beta_AnonymousUser_descriptor, @@ -271,7 +412,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayName", }); internal_static_google_apps_meet_v2beta_PhoneUser_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(9); internal_static_google_apps_meet_v2beta_PhoneUser_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_apps_meet_v2beta_PhoneUser_descriptor, @@ -279,7 +420,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayName", }); internal_static_google_apps_meet_v2beta_Recording_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(10); internal_static_google_apps_meet_v2beta_Recording_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_apps_meet_v2beta_Recording_descriptor, @@ -287,7 +428,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DriveDestination", "Name", "State", "StartTime", "EndTime", "Destination", }); internal_static_google_apps_meet_v2beta_DriveDestination_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_google_apps_meet_v2beta_DriveDestination_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_apps_meet_v2beta_DriveDestination_descriptor, @@ -295,7 +436,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "File", "ExportUri", }); internal_static_google_apps_meet_v2beta_Transcript_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_google_apps_meet_v2beta_Transcript_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_apps_meet_v2beta_Transcript_descriptor, @@ -303,7 +444,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DocsDestination", "Name", "State", "StartTime", "EndTime", "Destination", }); internal_static_google_apps_meet_v2beta_DocsDestination_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(13); internal_static_google_apps_meet_v2beta_DocsDestination_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_apps_meet_v2beta_DocsDestination_descriptor, @@ -311,7 +452,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Document", "ExportUri", }); internal_static_google_apps_meet_v2beta_TranscriptEntry_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(14); internal_static_google_apps_meet_v2beta_TranscriptEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_apps_meet_v2beta_TranscriptEntry_descriptor, diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ServiceProto.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ServiceProto.java index 6d69bdae1514..c95ab4762b5b 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ServiceProto.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/ServiceProto.java @@ -44,6 +44,26 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_apps_meet_v2beta_EndActiveConferenceRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_apps_meet_v2beta_EndActiveConferenceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2beta_CreateMemberRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2beta_CreateMemberRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2beta_GetMemberRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2beta_GetMemberRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2beta_ListMembersRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2beta_ListMembersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2beta_ListMembersResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2beta_ListMembersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_apps_meet_v2beta_DeleteMemberRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_apps_meet_v2beta_DeleteMemberRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_apps_meet_v2beta_GetConferenceRecordRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -140,136 +160,171 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ta.SpaceB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.goo" + "gle.protobuf.FieldMaskB\003\340A\001\"M\n\032EndActive" + "ConferenceRequest\022/\n\004name\030\001 \001(\tB!\340A\002\372A\033\n" - + "\031meet.googleapis.com/Space\"X\n\032GetConfere" - + "nceRecordRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$" - + "meet.googleapis.com/ConferenceRecord\"d\n\034" - + "ListConferenceRecordsRequest\022\026\n\tpage_siz" - + "e\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\"\177\n\035ListConferenceReco" - + "rdsResponse\022E\n\022conference_records\030\001 \003(\0132" - + ").google.apps.meet.v2beta.ConferenceReco" - + "rd\022\027\n\017next_page_token\030\002 \001(\t\"N\n\025GetPartic" - + "ipantRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037meet" - + ".googleapis.com/Participant\"\216\001\n\027ListPart" - + "icipantsRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022" - + "\037meet.googleapis.com/Participant\022\021\n\tpage" - + "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\023\n\006filte" - + "r\030\004 \001(\tB\003\340A\001\"\203\001\n\030ListParticipantsRespons" - + "e\022:\n\014participants\030\001 \003(\0132$.google.apps.me" - + "et.v2beta.Participant\022\027\n\017next_page_token" - + "\030\002 \001(\t\022\022\n\ntotal_size\030\003 \001(\005\"\\\n\034GetPartici" - + "pantSessionRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(" - + "\n&meet.googleapis.com/ParticipantSession" - + "\"\246\001\n\036ListParticipantSessionsRequest\022>\n\006p" - + "arent\030\001 \001(\tB.\340A\002\372A(\022&meet.googleapis.com" - + "/ParticipantSession\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\"\205\001\n\037ListParticipantSessionsRes" - + "ponse\022I\n\024participant_sessions\030\001 \003(\0132+.go" - + "ogle.apps.meet.v2beta.ParticipantSession" - + "\022\027\n\017next_page_token\030\002 \001(\t\"J\n\023GetRecordin" - + "gRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035meet.goo" - + "gleapis.com/Recording\"u\n\025ListRecordingsR" - + "equest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\022\035meet.goo" - + "gleapis.com/Recording\022\021\n\tpage_size\030\002 \001(\005" - + "\022\022\n\npage_token\030\003 \001(\t\"i\n\026ListRecordingsRe" - + "sponse\0226\n\nrecordings\030\001 \003(\0132\".google.apps" - + ".meet.v2beta.Recording\022\027\n\017next_page_toke" - + "n\030\002 \001(\t\"L\n\024GetTranscriptRequest\0224\n\004name\030" - + "\001 \001(\tB&\340A\002\372A \n\036meet.googleapis.com/Trans" - + "cript\"w\n\026ListTranscriptsRequest\0226\n\006paren" - + "t\030\001 \001(\tB&\340A\002\372A \022\036meet.googleapis.com/Tra" - + "nscript\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" - + "\030\003 \001(\t\"l\n\027ListTranscriptsResponse\0228\n\013tra" - + "nscripts\030\001 \003(\0132#.google.apps.meet.v2beta" - + ".Transcript\022\027\n\017next_page_token\030\002 \001(\t\"V\n\031" - + "GetTranscriptEntryRequest\0229\n\004name\030\001 \001(\tB" - + "+\340A\002\372A%\n#meet.googleapis.com/TranscriptE" - + "ntry\"\202\001\n\034ListTranscriptEntriesRequest\022;\n" - + "\006parent\030\001 \001(\tB+\340A\002\372A%\022#meet.googleapis.c" - + "om/TranscriptEntry\022\021\n\tpage_size\030\002 \001(\005\022\022\n" - + "\npage_token\030\003 \001(\t\"~\n\035ListTranscriptEntri" - + "esResponse\022D\n\022transcript_entries\030\001 \003(\0132(" - + ".google.apps.meet.v2beta.TranscriptEntry" - + "\022\027\n\017next_page_token\030\002 \001(\t2\354\004\n\rSpacesServ" - + "ice\022\201\001\n\013CreateSpace\022+.google.apps.meet.v" - + "2beta.CreateSpaceRequest\032\036.google.apps.m" - + "eet.v2beta.Space\"%\332A\005space\202\323\344\223\002\027\"\016/v2bet" - + "a/spaces:\005space\022|\n\010GetSpace\022(.google.app" - + "s.meet.v2beta.GetSpaceRequest\032\036.google.a" - + "pps.meet.v2beta.Space\"&\332A\004name\202\323\344\223\002\031\022\027/v" - + "2beta/{name=spaces/*}\022\234\001\n\013UpdateSpace\022+." - + "google.apps.meet.v2beta.UpdateSpaceReque" - + "st\032\036.google.apps.meet.v2beta.Space\"@\332A\021s" - + "pace,update_mask\202\323\344\223\002&2\035/v2beta/{space.n" - + "ame=spaces/*}:\005space\022\241\001\n\023EndActiveConfer" - + "ence\0223.google.apps.meet.v2beta.EndActive" - + "ConferenceRequest\032\026.google.protobuf.Empt" - + "y\"=\332A\004name\202\323\344\223\0020\"+/v2beta/{name=spaces/*" - + "}:endActiveConference:\001*\032\026\312A\023meet.google" - + "apis.com2\201\022\n\030ConferenceRecordsService\022\250\001" - + "\n\023GetConferenceRecord\0223.google.apps.meet" - + ".v2beta.GetConferenceRecordRequest\032).goo" - + "gle.apps.meet.v2beta.ConferenceRecord\"1\332" - + "A\004name\202\323\344\223\002$\022\"/v2beta/{name=conferenceRe" - + "cords/*}\022\251\001\n\025ListConferenceRecords\0225.goo" - + "gle.apps.meet.v2beta.ListConferenceRecor" - + "dsRequest\0326.google.apps.meet.v2beta.List" - + "ConferenceRecordsResponse\"!\202\323\344\223\002\033\022\031/v2be" - + "ta/conferenceRecords\022\250\001\n\016GetParticipant\022" - + "..google.apps.meet.v2beta.GetParticipant" - + "Request\032$.google.apps.meet.v2beta.Partic" - + "ipant\"@\332A\004name\202\323\344\223\0023\0221/v2beta/{name=conf" - + "erenceRecords/*/participants/*}\022\273\001\n\020List" - + "Participants\0220.google.apps.meet.v2beta.L" - + "istParticipantsRequest\0321.google.apps.mee" - + "t.v2beta.ListParticipantsResponse\"B\332A\006pa" - + "rent\202\323\344\223\0023\0221/v2beta/{parent=conferenceRe" - + "cords/*}/participants\022\323\001\n\025GetParticipant" - + "Session\0225.google.apps.meet.v2beta.GetPar" - + "ticipantSessionRequest\032+.google.apps.mee" - + "t.v2beta.ParticipantSession\"V\332A\004name\202\323\344\223" - + "\002I\022G/v2beta/{name=conferenceRecords/*/pa" - + "rticipants/*/participantSessions/*}\022\346\001\n\027" - + "ListParticipantSessions\0227.google.apps.me" - + "et.v2beta.ListParticipantSessionsRequest" - + "\0328.google.apps.meet.v2beta.ListParticipa" - + "ntSessionsResponse\"X\332A\006parent\202\323\344\223\002I\022G/v2" - + "beta/{parent=conferenceRecords/*/partici" - + "pants/*}/participantSessions\022\240\001\n\014GetReco" - + "rding\022,.google.apps.meet.v2beta.GetRecor" - + "dingRequest\032\".google.apps.meet.v2beta.Re" - + "cording\">\332A\004name\202\323\344\223\0021\022//v2beta/{name=co" - + "nferenceRecords/*/recordings/*}\022\263\001\n\016List" - + "Recordings\022..google.apps.meet.v2beta.Lis" - + "tRecordingsRequest\032/.google.apps.meet.v2" - + "beta.ListRecordingsResponse\"@\332A\006parent\202\323" - + "\344\223\0021\022//v2beta/{parent=conferenceRecords/" - + "*}/recordings\022\244\001\n\rGetTranscript\022-.google" - + ".apps.meet.v2beta.GetTranscriptRequest\032#" - + ".google.apps.meet.v2beta.Transcript\"?\332A\004" - + "name\202\323\344\223\0022\0220/v2beta/{name=conferenceReco" - + "rds/*/transcripts/*}\022\267\001\n\017ListTranscripts" - + "\022/.google.apps.meet.v2beta.ListTranscrip" - + "tsRequest\0320.google.apps.meet.v2beta.List" - + "TranscriptsResponse\"A\332A\006parent\202\323\344\223\0022\0220/v" - + "2beta/{parent=conferenceRecords/*}/trans" - + "cripts\022\275\001\n\022GetTranscriptEntry\0222.google.a" - + "pps.meet.v2beta.GetTranscriptEntryReques" - + "t\032(.google.apps.meet.v2beta.TranscriptEn" - + "try\"I\332A\004name\202\323\344\223\002<\022:/v2beta/{name=confer" - + "enceRecords/*/transcripts/*/entries/*}\022\323" - + "\001\n\025ListTranscriptEntries\0225.google.apps.m" - + "eet.v2beta.ListTranscriptEntriesRequest\032" - + "6.google.apps.meet.v2beta.ListTranscript" - + "EntriesResponse\"K\332A\006parent\202\323\344\223\002<\022:/v2bet" - + "a/{parent=conferenceRecords/*/transcript" - + "s/*}/entries\032\026\312A\023meet.googleapis.comB\265\001\n" - + "\033com.google.apps.meet.v2betaB\014ServicePro" - + "toP\001Z5cloud.google.com/go/apps/meet/apiv" - + "2beta/meetpb;meetpb\252\002\027Google.Apps.Meet.V" - + "2Beta\312\002\027Google\\Apps\\Meet\\V2beta\352\002\032Google" - + "::Apps::Meet::V2betab\006proto3" + + "\031meet.googleapis.com/Space\"\177\n\023CreateMemb" + + "erRequest\0222\n\006parent\030\001 \001(\tB\"\340A\002\372A\034\022\032meet." + + "googleapis.com/Member\0224\n\006member\030\002 \001(\0132\037." + + "google.apps.meet.v2beta.MemberB\003\340A\002\"D\n\020G" + + "etMemberRequest\0220\n\004name\030\001 \001(\tB\"\340A\002\372A\034\n\032m" + + "eet.googleapis.com/Member\"y\n\022ListMembers" + + "Request\0222\n\006parent\030\001 \001(\tB\"\340A\002\372A\034\022\032meet.go" + + "ogleapis.com/Member\022\026\n\tpage_size\030\002 \001(\005B\003" + + "\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"`\n\023ListMemb" + + "ersResponse\0220\n\007members\030\001 \003(\0132\037.google.ap" + + "ps.meet.v2beta.Member\022\027\n\017next_page_token" + + "\030\002 \001(\t\"G\n\023DeleteMemberRequest\0220\n\004name\030\001 " + + "\001(\tB\"\340A\002\372A\034\n\032meet.googleapis.com/Member\"" + + "X\n\032GetConferenceRecordRequest\022:\n\004name\030\001 " + + "\001(\tB,\340A\002\372A&\n$meet.googleapis.com/Confere" + + "nceRecord\"d\n\034ListConferenceRecordsReques" + + "t\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\"\177\n\035ListC" + + "onferenceRecordsResponse\022E\n\022conference_r" + + "ecords\030\001 \003(\0132).google.apps.meet.v2beta.C" + + "onferenceRecord\022\027\n\017next_page_token\030\002 \001(\t" + + "\"N\n\025GetParticipantRequest\0225\n\004name\030\001 \001(\tB" + + "\'\340A\002\372A!\n\037meet.googleapis.com/Participant" + + "\"\216\001\n\027ListParticipantsRequest\0227\n\006parent\030\001" + + " \001(\tB\'\340A\002\372A!\022\037meet.googleapis.com/Partic" + + "ipant\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003" + + " \001(\t\022\023\n\006filter\030\004 \001(\tB\003\340A\001\"\203\001\n\030ListPartic" + + "ipantsResponse\022:\n\014participants\030\001 \003(\0132$.g" + + "oogle.apps.meet.v2beta.Participant\022\027\n\017ne" + + "xt_page_token\030\002 \001(\t\022\022\n\ntotal_size\030\003 \001(\005\"" + + "\\\n\034GetParticipantSessionRequest\022<\n\004name\030" + + "\001 \001(\tB.\340A\002\372A(\n&meet.googleapis.com/Parti" + + "cipantSession\"\246\001\n\036ListParticipantSession" + + "sRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&meet.g" + + "oogleapis.com/ParticipantSession\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\"\205\001\n\037ListParticipa" + + "ntSessionsResponse\022I\n\024participant_sessio" + + "ns\030\001 \003(\0132+.google.apps.meet.v2beta.Parti" + + "cipantSession\022\027\n\017next_page_token\030\002 \001(\t\"J" + + "\n\023GetRecordingRequest\0223\n\004name\030\001 \001(\tB%\340A\002" + + "\372A\037\n\035meet.googleapis.com/Recording\"u\n\025Li" + + "stRecordingsRequest\0225\n\006parent\030\001 \001(\tB%\340A\002" + + "\372A\037\022\035meet.googleapis.com/Recording\022\021\n\tpa" + + "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"i\n\026Lis" + + "tRecordingsResponse\0226\n\nrecordings\030\001 \003(\0132" + + "\".google.apps.meet.v2beta.Recording\022\027\n\017n" + + "ext_page_token\030\002 \001(\t\"L\n\024GetTranscriptReq" + + "uest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036meet.googlea" + + "pis.com/Transcript\"w\n\026ListTranscriptsReq" + + "uest\0226\n\006parent\030\001 \001(\tB&\340A\002\372A \022\036meet.googl" + + "eapis.com/Transcript\022\021\n\tpage_size\030\002 \001(\005\022" + + "\022\n\npage_token\030\003 \001(\t\"l\n\027ListTranscriptsRe" + + "sponse\0228\n\013transcripts\030\001 \003(\0132#.google.app" + + "s.meet.v2beta.Transcript\022\027\n\017next_page_to" + + "ken\030\002 \001(\t\"V\n\031GetTranscriptEntryRequest\0229" + + "\n\004name\030\001 \001(\tB+\340A\002\372A%\n#meet.googleapis.co" + + "m/TranscriptEntry\"\202\001\n\034ListTranscriptEntr" + + "iesRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\022#meet" + + ".googleapis.com/TranscriptEntry\022\021\n\tpage_" + + "size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"~\n\035ListTr" + + "anscriptEntriesResponse\022D\n\022transcript_en" + + "tries\030\001 \003(\0132(.google.apps.meet.v2beta.Tr" + + "anscriptEntry\022\027\n\017next_page_token\030\002 \001(\t2\356" + + "\n\n\rSpacesService\022\201\001\n\013CreateSpace\022+.googl" + + "e.apps.meet.v2beta.CreateSpaceRequest\032\036." + + "google.apps.meet.v2beta.Space\"%\332A\005space\202" + + "\323\344\223\002\027\"\016/v2beta/spaces:\005space\022|\n\010GetSpace" + + "\022(.google.apps.meet.v2beta.GetSpaceReque" + + "st\032\036.google.apps.meet.v2beta.Space\"&\332A\004n" + + "ame\202\323\344\223\002\031\022\027/v2beta/{name=spaces/*}\022\234\001\n\013U" + + "pdateSpace\022+.google.apps.meet.v2beta.Upd" + + "ateSpaceRequest\032\036.google.apps.meet.v2bet" + + "a.Space\"@\332A\021space,update_mask\202\323\344\223\002&2\035/v2" + + "beta/{space.name=spaces/*}:\005space\022\241\001\n\023En" + + "dActiveConference\0223.google.apps.meet.v2b" + + "eta.EndActiveConferenceRequest\032\026.google." + + "protobuf.Empty\"=\332A\004name\202\323\344\223\0020\"+/v2beta/{" + + "name=spaces/*}:endActiveConference:\001*\022\240\001" + + "\n\014CreateMember\022,.google.apps.meet.v2beta" + + ".CreateMemberRequest\032\037.google.apps.meet." + + "v2beta.Member\"A\332A\rparent,member\202\323\344\223\002+\"!/" + + "v2beta/{parent=spaces/*}/members:\006member" + + "\022\211\001\n\tGetMember\022).google.apps.meet.v2beta" + + ".GetMemberRequest\032\037.google.apps.meet.v2b" + + "eta.Member\"0\332A\004name\202\323\344\223\002#\022!/v2beta/{name" + + "=spaces/*/members/*}\022\234\001\n\013ListMembers\022+.g" + + "oogle.apps.meet.v2beta.ListMembersReques" + + "t\032,.google.apps.meet.v2beta.ListMembersR" + + "esponse\"2\332A\006parent\202\323\344\223\002#\022!/v2beta/{paren" + + "t=spaces/*}/members\022\206\001\n\014DeleteMember\022,.g" + + "oogle.apps.meet.v2beta.DeleteMemberReque" + + "st\032\026.google.protobuf.Empty\"0\332A\004name\202\323\344\223\002" + + "#*!/v2beta/{name=spaces/*/members/*}\032\300\001\312" + + "A\023meet.googleapis.com\322A\246\001https://www.goo" + + "gleapis.com/auth/meetings.space.created," + + "https://www.googleapis.com/auth/meetings" + + ".space.readonly,https://www.googleapis.c" + + "om/auth/meetings.space.settings2\363\022\n\030Conf" + + "erenceRecordsService\022\250\001\n\023GetConferenceRe" + + "cord\0223.google.apps.meet.v2beta.GetConfer" + + "enceRecordRequest\032).google.apps.meet.v2b" + + "eta.ConferenceRecord\"1\332A\004name\202\323\344\223\002$\022\"/v2" + + "beta/{name=conferenceRecords/*}\022\251\001\n\025List" + + "ConferenceRecords\0225.google.apps.meet.v2b" + + "eta.ListConferenceRecordsRequest\0326.googl" + + "e.apps.meet.v2beta.ListConferenceRecords" + + "Response\"!\202\323\344\223\002\033\022\031/v2beta/conferenceReco" + + "rds\022\250\001\n\016GetParticipant\022..google.apps.mee" + + "t.v2beta.GetParticipantRequest\032$.google." + + "apps.meet.v2beta.Participant\"@\332A\004name\202\323\344" + + "\223\0023\0221/v2beta/{name=conferenceRecords/*/p" + + "articipants/*}\022\273\001\n\020ListParticipants\0220.go" + + "ogle.apps.meet.v2beta.ListParticipantsRe" + + "quest\0321.google.apps.meet.v2beta.ListPart" + + "icipantsResponse\"B\332A\006parent\202\323\344\223\0023\0221/v2be" + + "ta/{parent=conferenceRecords/*}/particip" + + "ants\022\323\001\n\025GetParticipantSession\0225.google." + + "apps.meet.v2beta.GetParticipantSessionRe" + + "quest\032+.google.apps.meet.v2beta.Particip" + + "antSession\"V\332A\004name\202\323\344\223\002I\022G/v2beta/{name" + + "=conferenceRecords/*/participants/*/part" + + "icipantSessions/*}\022\346\001\n\027ListParticipantSe" + + "ssions\0227.google.apps.meet.v2beta.ListPar" + + "ticipantSessionsRequest\0328.google.apps.me" + + "et.v2beta.ListParticipantSessionsRespons" + + "e\"X\332A\006parent\202\323\344\223\002I\022G/v2beta/{parent=conf" + + "erenceRecords/*/participants/*}/particip" + + "antSessions\022\240\001\n\014GetRecording\022,.google.ap" + + "ps.meet.v2beta.GetRecordingRequest\032\".goo" + + "gle.apps.meet.v2beta.Recording\">\332A\004name\202" + + "\323\344\223\0021\022//v2beta/{name=conferenceRecords/*" + + "/recordings/*}\022\263\001\n\016ListRecordings\022..goog" + + "le.apps.meet.v2beta.ListRecordingsReques" + + "t\032/.google.apps.meet.v2beta.ListRecordin" + + "gsResponse\"@\332A\006parent\202\323\344\223\0021\022//v2beta/{pa" + + "rent=conferenceRecords/*}/recordings\022\244\001\n" + + "\rGetTranscript\022-.google.apps.meet.v2beta" + + ".GetTranscriptRequest\032#.google.apps.meet" + + ".v2beta.Transcript\"?\332A\004name\202\323\344\223\0022\0220/v2be" + + "ta/{name=conferenceRecords/*/transcripts" + + "/*}\022\267\001\n\017ListTranscripts\022/.google.apps.me" + + "et.v2beta.ListTranscriptsRequest\0320.googl" + + "e.apps.meet.v2beta.ListTranscriptsRespon" + + "se\"A\332A\006parent\202\323\344\223\0022\0220/v2beta/{parent=con" + + "ferenceRecords/*}/transcripts\022\275\001\n\022GetTra" + + "nscriptEntry\0222.google.apps.meet.v2beta.G" + + "etTranscriptEntryRequest\032(.google.apps.m" + + "eet.v2beta.TranscriptEntry\"I\332A\004name\202\323\344\223\002" + + "<\022:/v2beta/{name=conferenceRecords/*/tra" + + "nscripts/*/entries/*}\022\323\001\n\025ListTranscript" + + "Entries\0225.google.apps.meet.v2beta.ListTr" + + "anscriptEntriesRequest\0326.google.apps.mee" + + "t.v2beta.ListTranscriptEntriesResponse\"K" + + "\332A\006parent\202\323\344\223\002<\022:/v2beta/{parent=confere" + + "nceRecords/*/transcripts/*}/entries\032\207\001\312A" + + "\023meet.googleapis.com\322Anhttps://www.googl" + + "eapis.com/auth/meetings.space.created,ht" + + "tps://www.googleapis.com/auth/meetings.s" + + "pace.readonlyB\265\001\n\033com.google.apps.meet.v" + + "2betaB\014ServiceProtoP\001Z5cloud.google.com/" + + "go/apps/meet/apiv2beta/meetpb;meetpb\252\002\027G" + + "oogle.Apps.Meet.V2Beta\312\002\027Google\\Apps\\Mee" + + "t\\V2beta\352\002\032Google::Apps::Meet::V2betab\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -315,8 +370,48 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", }); - internal_static_google_apps_meet_v2beta_GetConferenceRecordRequest_descriptor = + internal_static_google_apps_meet_v2beta_CreateMemberRequest_descriptor = getDescriptor().getMessageTypes().get(4); + internal_static_google_apps_meet_v2beta_CreateMemberRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2beta_CreateMemberRequest_descriptor, + new java.lang.String[] { + "Parent", "Member", + }); + internal_static_google_apps_meet_v2beta_GetMemberRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_apps_meet_v2beta_GetMemberRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2beta_GetMemberRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_apps_meet_v2beta_ListMembersRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_apps_meet_v2beta_ListMembersRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2beta_ListMembersRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_apps_meet_v2beta_ListMembersResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_apps_meet_v2beta_ListMembersResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2beta_ListMembersResponse_descriptor, + new java.lang.String[] { + "Members", "NextPageToken", + }); + internal_static_google_apps_meet_v2beta_DeleteMemberRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_apps_meet_v2beta_DeleteMemberRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_apps_meet_v2beta_DeleteMemberRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_apps_meet_v2beta_GetConferenceRecordRequest_descriptor = + getDescriptor().getMessageTypes().get(9); internal_static_google_apps_meet_v2beta_GetConferenceRecordRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_apps_meet_v2beta_GetConferenceRecordRequest_descriptor, @@ -324,7 +419,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_apps_meet_v2beta_ListConferenceRecordsRequest_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(10); internal_static_google_apps_meet_v2beta_ListConferenceRecordsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_apps_meet_v2beta_ListConferenceRecordsRequest_descriptor, @@ -332,7 +427,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PageSize", "PageToken", "Filter", }); internal_static_google_apps_meet_v2beta_ListConferenceRecordsResponse_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(11); internal_static_google_apps_meet_v2beta_ListConferenceRecordsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_apps_meet_v2beta_ListConferenceRecordsResponse_descriptor, @@ -340,7 +435,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConferenceRecords", "NextPageToken", }); internal_static_google_apps_meet_v2beta_GetParticipantRequest_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(12); internal_static_google_apps_meet_v2beta_GetParticipantRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_apps_meet_v2beta_GetParticipantRequest_descriptor, @@ -348,7 +443,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_apps_meet_v2beta_ListParticipantsRequest_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(13); internal_static_google_apps_meet_v2beta_ListParticipantsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_apps_meet_v2beta_ListParticipantsRequest_descriptor, @@ -356,7 +451,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", }); internal_static_google_apps_meet_v2beta_ListParticipantsResponse_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(14); internal_static_google_apps_meet_v2beta_ListParticipantsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_apps_meet_v2beta_ListParticipantsResponse_descriptor, @@ -364,7 +459,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Participants", "NextPageToken", "TotalSize", }); internal_static_google_apps_meet_v2beta_GetParticipantSessionRequest_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(15); internal_static_google_apps_meet_v2beta_GetParticipantSessionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_apps_meet_v2beta_GetParticipantSessionRequest_descriptor, @@ -372,7 +467,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_apps_meet_v2beta_ListParticipantSessionsRequest_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(16); internal_static_google_apps_meet_v2beta_ListParticipantSessionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_apps_meet_v2beta_ListParticipantSessionsRequest_descriptor, @@ -380,7 +475,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", }); internal_static_google_apps_meet_v2beta_ListParticipantSessionsResponse_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(17); internal_static_google_apps_meet_v2beta_ListParticipantSessionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_apps_meet_v2beta_ListParticipantSessionsResponse_descriptor, @@ -388,7 +483,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ParticipantSessions", "NextPageToken", }); internal_static_google_apps_meet_v2beta_GetRecordingRequest_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(18); internal_static_google_apps_meet_v2beta_GetRecordingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_apps_meet_v2beta_GetRecordingRequest_descriptor, @@ -396,7 +491,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_apps_meet_v2beta_ListRecordingsRequest_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(19); internal_static_google_apps_meet_v2beta_ListRecordingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_apps_meet_v2beta_ListRecordingsRequest_descriptor, @@ -404,7 +499,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_apps_meet_v2beta_ListRecordingsResponse_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(20); internal_static_google_apps_meet_v2beta_ListRecordingsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_apps_meet_v2beta_ListRecordingsResponse_descriptor, @@ -412,7 +507,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Recordings", "NextPageToken", }); internal_static_google_apps_meet_v2beta_GetTranscriptRequest_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(21); internal_static_google_apps_meet_v2beta_GetTranscriptRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_apps_meet_v2beta_GetTranscriptRequest_descriptor, @@ -420,7 +515,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_apps_meet_v2beta_ListTranscriptsRequest_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(22); internal_static_google_apps_meet_v2beta_ListTranscriptsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_apps_meet_v2beta_ListTranscriptsRequest_descriptor, @@ -428,7 +523,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_apps_meet_v2beta_ListTranscriptsResponse_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(23); internal_static_google_apps_meet_v2beta_ListTranscriptsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_apps_meet_v2beta_ListTranscriptsResponse_descriptor, @@ -436,7 +531,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Transcripts", "NextPageToken", }); internal_static_google_apps_meet_v2beta_GetTranscriptEntryRequest_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(24); internal_static_google_apps_meet_v2beta_GetTranscriptEntryRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_apps_meet_v2beta_GetTranscriptEntryRequest_descriptor, @@ -444,7 +539,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_apps_meet_v2beta_ListTranscriptEntriesRequest_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(25); internal_static_google_apps_meet_v2beta_ListTranscriptEntriesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_apps_meet_v2beta_ListTranscriptEntriesRequest_descriptor, @@ -452,7 +547,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_apps_meet_v2beta_ListTranscriptEntriesResponse_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(26); internal_static_google_apps_meet_v2beta_ListTranscriptEntriesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_apps_meet_v2beta_ListTranscriptEntriesResponse_descriptor, @@ -465,6 +560,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { 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); diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SignedinUser.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SignedinUser.java index dbd32c740113..cdc91bf8d4a9 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SignedinUser.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SignedinUser.java @@ -128,9 +128,9 @@ public com.google.protobuf.ByteString getUserBytes() { * * *
-   * Output only. For a personal device, it's the user's first and last name.
-   * For a robot account, it's the admin specified device name. For example,
-   * "Altostrat Room".
+   * Output only. For a personal device, it's the user's first name and last
+   * name. For a robot account, it's the administrator-specified device name.
+   * For example, "Altostrat Room".
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -153,9 +153,9 @@ public java.lang.String getDisplayName() { * * *
-   * Output only. For a personal device, it's the user's first and last name.
-   * For a robot account, it's the admin specified device name. For example,
-   * "Altostrat Room".
+   * Output only. For a personal device, it's the user's first name and last
+   * name. For a robot account, it's the administrator-specified device name.
+   * For example, "Altostrat Room".
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -658,9 +658,9 @@ public Builder setUserBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. For a personal device, it's the user's first and last name.
-     * For a robot account, it's the admin specified device name. For example,
-     * "Altostrat Room".
+     * Output only. For a personal device, it's the user's first name and last
+     * name. For a robot account, it's the administrator-specified device name.
+     * For example, "Altostrat Room".
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -682,9 +682,9 @@ public java.lang.String getDisplayName() { * * *
-     * Output only. For a personal device, it's the user's first and last name.
-     * For a robot account, it's the admin specified device name. For example,
-     * "Altostrat Room".
+     * Output only. For a personal device, it's the user's first name and last
+     * name. For a robot account, it's the administrator-specified device name.
+     * For example, "Altostrat Room".
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -706,9 +706,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-     * Output only. For a personal device, it's the user's first and last name.
-     * For a robot account, it's the admin specified device name. For example,
-     * "Altostrat Room".
+     * Output only. For a personal device, it's the user's first name and last
+     * name. For a robot account, it's the administrator-specified device name.
+     * For example, "Altostrat Room".
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -729,9 +729,9 @@ public Builder setDisplayName(java.lang.String value) { * * *
-     * Output only. For a personal device, it's the user's first and last name.
-     * For a robot account, it's the admin specified device name. For example,
-     * "Altostrat Room".
+     * Output only. For a personal device, it's the user's first name and last
+     * name. For a robot account, it's the administrator-specified device name.
+     * For example, "Altostrat Room".
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -748,9 +748,9 @@ public Builder clearDisplayName() { * * *
-     * Output only. For a personal device, it's the user's first and last name.
-     * For a robot account, it's the admin specified device name. For example,
-     * "Altostrat Room".
+     * Output only. For a personal device, it's the user's first name and last
+     * name. For a robot account, it's the administrator-specified device name.
+     * For example, "Altostrat Room".
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SignedinUserOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SignedinUserOrBuilder.java index eb82c33cd673..0a08b6960ec2 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SignedinUserOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SignedinUserOrBuilder.java @@ -55,9 +55,9 @@ public interface SignedinUserOrBuilder * * *
-   * Output only. For a personal device, it's the user's first and last name.
-   * For a robot account, it's the admin specified device name. For example,
-   * "Altostrat Room".
+   * Output only. For a personal device, it's the user's first name and last
+   * name. For a robot account, it's the administrator-specified device name.
+   * For example, "Altostrat Room".
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -69,9 +69,9 @@ public interface SignedinUserOrBuilder * * *
-   * Output only. For a personal device, it's the user's first and last name.
-   * For a robot account, it's the admin specified device name. For example,
-   * "Altostrat Room".
+   * Output only. For a personal device, it's the user's first name and last
+   * name. For a robot account, it's the administrator-specified device name.
+   * For example, "Altostrat Room".
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/Space.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/Space.java index 554f6ccc5482..93693c44dcf0 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/Space.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/Space.java @@ -23,7 +23,6 @@ * * *
- * [Developer Preview](https://developers.google.com/workspace/preview).
  * Virtual place where conferences are held. Only one active conference can be
  * held in one space at any given time.
  * 
@@ -77,7 +76,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Immutable. Resource name of the space.
-   * Format: `spaces/{space}`
+   *
+   * Format: `spaces/{space}`.
+   *
+   * `{space}` is the resource identifier for the space. It's a unique,
+   * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+   *
+   * For more information, see [How Meet identifies a meeting
+   * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -101,7 +107,14 @@ public java.lang.String getName() { * *
    * Immutable. Resource name of the space.
-   * Format: `spaces/{space}`
+   *
+   * Format: `spaces/{space}`.
+   *
+   * `{space}` is the resource identifier for the space. It's a unique,
+   * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+   *
+   * For more information, see [How Meet identifies a meeting
+   * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -129,7 +142,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * Output only. URI used to join meeting, such as
+   * Output only. URI used to join meetings consisting of
+   * `https://meet.google.com/` followed by the `meeting_code`. For example,
    * `https://meet.google.com/abc-mnop-xyz`.
    * 
* @@ -153,7 +167,8 @@ public java.lang.String getMeetingUri() { * * *
-   * Output only. URI used to join meeting, such as
+   * Output only. URI used to join meetings consisting of
+   * `https://meet.google.com/` followed by the `meeting_code`. For example,
    * `https://meet.google.com/abc-mnop-xyz`.
    * 
* @@ -182,9 +197,13 @@ public com.google.protobuf.ByteString getMeetingUriBytes() { * * *
-   * Output only. Type friendly code to join the meeting. Format:
-   * `[a-z]+-[a-z]+-[a-z]+` such as `abc-mnop-xyz`. The maximum length is 128
-   * characters. Can ONLY be used as alias of the space ID to get the space.
+   * Output only. Type friendly unique string used to join the meeting.
+   *
+   * Format: `[a-z]+-[a-z]+-[a-z]+`. For example, `abc-mnop-xyz`.
+   *
+   * The maximum length is 128 characters.
+   *
+   * Can only be used as an alias of the space name to get the space.
    * 
* * string meeting_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -207,9 +226,13 @@ public java.lang.String getMeetingCode() { * * *
-   * Output only. Type friendly code to join the meeting. Format:
-   * `[a-z]+-[a-z]+-[a-z]+` such as `abc-mnop-xyz`. The maximum length is 128
-   * characters. Can ONLY be used as alias of the space ID to get the space.
+   * Output only. Type friendly unique string used to join the meeting.
+   *
+   * Format: `[a-z]+-[a-z]+-[a-z]+`. For example, `abc-mnop-xyz`.
+   *
+   * The maximum length is 128 characters.
+   *
+   * Can only be used as an alias of the space name to get the space.
    * 
* * string meeting_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -281,7 +304,7 @@ public com.google.apps.meet.v2beta.SpaceConfigOrBuilder getConfigOrBuilder() { * * *
-   * Active conference if it exists.
+   * Active conference, if it exists.
    * 
* * .google.apps.meet.v2beta.ActiveConference active_conference = 6; @@ -296,7 +319,7 @@ public boolean hasActiveConference() { * * *
-   * Active conference if it exists.
+   * Active conference, if it exists.
    * 
* * .google.apps.meet.v2beta.ActiveConference active_conference = 6; @@ -313,7 +336,7 @@ public com.google.apps.meet.v2beta.ActiveConference getActiveConference() { * * *
-   * Active conference if it exists.
+   * Active conference, if it exists.
    * 
* * .google.apps.meet.v2beta.ActiveConference active_conference = 6; @@ -532,7 +555,6 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * [Developer Preview](https://developers.google.com/workspace/preview).
    * Virtual place where conferences are held. Only one active conference can be
    * held in one space at any given time.
    * 
@@ -797,7 +819,14 @@ public Builder mergeFrom( * *
      * Immutable. Resource name of the space.
-     * Format: `spaces/{space}`
+     *
+     * Format: `spaces/{space}`.
+     *
+     * `{space}` is the resource identifier for the space. It's a unique,
+     * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+     *
+     * For more information, see [How Meet identifies a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -820,7 +849,14 @@ public java.lang.String getName() { * *
      * Immutable. Resource name of the space.
-     * Format: `spaces/{space}`
+     *
+     * Format: `spaces/{space}`.
+     *
+     * `{space}` is the resource identifier for the space. It's a unique,
+     * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+     *
+     * For more information, see [How Meet identifies a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -843,7 +879,14 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Immutable. Resource name of the space.
-     * Format: `spaces/{space}`
+     *
+     * Format: `spaces/{space}`.
+     *
+     * `{space}` is the resource identifier for the space. It's a unique,
+     * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+     *
+     * For more information, see [How Meet identifies a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -865,7 +908,14 @@ public Builder setName(java.lang.String value) { * *
      * Immutable. Resource name of the space.
-     * Format: `spaces/{space}`
+     *
+     * Format: `spaces/{space}`.
+     *
+     * `{space}` is the resource identifier for the space. It's a unique,
+     * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+     *
+     * For more information, see [How Meet identifies a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -883,7 +933,14 @@ public Builder clearName() { * *
      * Immutable. Resource name of the space.
-     * Format: `spaces/{space}`
+     *
+     * Format: `spaces/{space}`.
+     *
+     * `{space}` is the resource identifier for the space. It's a unique,
+     * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+     *
+     * For more information, see [How Meet identifies a meeting
+     * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
      * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -907,7 +964,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. URI used to join meeting, such as
+     * Output only. URI used to join meetings consisting of
+     * `https://meet.google.com/` followed by the `meeting_code`. For example,
      * `https://meet.google.com/abc-mnop-xyz`.
      * 
* @@ -930,7 +988,8 @@ public java.lang.String getMeetingUri() { * * *
-     * Output only. URI used to join meeting, such as
+     * Output only. URI used to join meetings consisting of
+     * `https://meet.google.com/` followed by the `meeting_code`. For example,
      * `https://meet.google.com/abc-mnop-xyz`.
      * 
* @@ -953,7 +1012,8 @@ public com.google.protobuf.ByteString getMeetingUriBytes() { * * *
-     * Output only. URI used to join meeting, such as
+     * Output only. URI used to join meetings consisting of
+     * `https://meet.google.com/` followed by the `meeting_code`. For example,
      * `https://meet.google.com/abc-mnop-xyz`.
      * 
* @@ -975,7 +1035,8 @@ public Builder setMeetingUri(java.lang.String value) { * * *
-     * Output only. URI used to join meeting, such as
+     * Output only. URI used to join meetings consisting of
+     * `https://meet.google.com/` followed by the `meeting_code`. For example,
      * `https://meet.google.com/abc-mnop-xyz`.
      * 
* @@ -993,7 +1054,8 @@ public Builder clearMeetingUri() { * * *
-     * Output only. URI used to join meeting, such as
+     * Output only. URI used to join meetings consisting of
+     * `https://meet.google.com/` followed by the `meeting_code`. For example,
      * `https://meet.google.com/abc-mnop-xyz`.
      * 
* @@ -1018,9 +1080,13 @@ public Builder setMeetingUriBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. Type friendly code to join the meeting. Format:
-     * `[a-z]+-[a-z]+-[a-z]+` such as `abc-mnop-xyz`. The maximum length is 128
-     * characters. Can ONLY be used as alias of the space ID to get the space.
+     * Output only. Type friendly unique string used to join the meeting.
+     *
+     * Format: `[a-z]+-[a-z]+-[a-z]+`. For example, `abc-mnop-xyz`.
+     *
+     * The maximum length is 128 characters.
+     *
+     * Can only be used as an alias of the space name to get the space.
      * 
* * string meeting_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1042,9 +1108,13 @@ public java.lang.String getMeetingCode() { * * *
-     * Output only. Type friendly code to join the meeting. Format:
-     * `[a-z]+-[a-z]+-[a-z]+` such as `abc-mnop-xyz`. The maximum length is 128
-     * characters. Can ONLY be used as alias of the space ID to get the space.
+     * Output only. Type friendly unique string used to join the meeting.
+     *
+     * Format: `[a-z]+-[a-z]+-[a-z]+`. For example, `abc-mnop-xyz`.
+     *
+     * The maximum length is 128 characters.
+     *
+     * Can only be used as an alias of the space name to get the space.
      * 
* * string meeting_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1066,9 +1136,13 @@ public com.google.protobuf.ByteString getMeetingCodeBytes() { * * *
-     * Output only. Type friendly code to join the meeting. Format:
-     * `[a-z]+-[a-z]+-[a-z]+` such as `abc-mnop-xyz`. The maximum length is 128
-     * characters. Can ONLY be used as alias of the space ID to get the space.
+     * Output only. Type friendly unique string used to join the meeting.
+     *
+     * Format: `[a-z]+-[a-z]+-[a-z]+`. For example, `abc-mnop-xyz`.
+     *
+     * The maximum length is 128 characters.
+     *
+     * Can only be used as an alias of the space name to get the space.
      * 
* * string meeting_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1089,9 +1163,13 @@ public Builder setMeetingCode(java.lang.String value) { * * *
-     * Output only. Type friendly code to join the meeting. Format:
-     * `[a-z]+-[a-z]+-[a-z]+` such as `abc-mnop-xyz`. The maximum length is 128
-     * characters. Can ONLY be used as alias of the space ID to get the space.
+     * Output only. Type friendly unique string used to join the meeting.
+     *
+     * Format: `[a-z]+-[a-z]+-[a-z]+`. For example, `abc-mnop-xyz`.
+     *
+     * The maximum length is 128 characters.
+     *
+     * Can only be used as an alias of the space name to get the space.
      * 
* * string meeting_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1108,9 +1186,13 @@ public Builder clearMeetingCode() { * * *
-     * Output only. Type friendly code to join the meeting. Format:
-     * `[a-z]+-[a-z]+-[a-z]+` such as `abc-mnop-xyz`. The maximum length is 128
-     * characters. Can ONLY be used as alias of the space ID to get the space.
+     * Output only. Type friendly unique string used to join the meeting.
+     *
+     * Format: `[a-z]+-[a-z]+-[a-z]+`. For example, `abc-mnop-xyz`.
+     *
+     * The maximum length is 128 characters.
+     *
+     * Can only be used as an alias of the space name to get the space.
      * 
* * string meeting_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1324,7 +1406,7 @@ public com.google.apps.meet.v2beta.SpaceConfigOrBuilder getConfigOrBuilder() { * * *
-     * Active conference if it exists.
+     * Active conference, if it exists.
      * 
* * .google.apps.meet.v2beta.ActiveConference active_conference = 6; @@ -1338,7 +1420,7 @@ public boolean hasActiveConference() { * * *
-     * Active conference if it exists.
+     * Active conference, if it exists.
      * 
* * .google.apps.meet.v2beta.ActiveConference active_conference = 6; @@ -1358,7 +1440,7 @@ public com.google.apps.meet.v2beta.ActiveConference getActiveConference() { * * *
-     * Active conference if it exists.
+     * Active conference, if it exists.
      * 
* * .google.apps.meet.v2beta.ActiveConference active_conference = 6; @@ -1380,7 +1462,7 @@ public Builder setActiveConference(com.google.apps.meet.v2beta.ActiveConference * * *
-     * Active conference if it exists.
+     * Active conference, if it exists.
      * 
* * .google.apps.meet.v2beta.ActiveConference active_conference = 6; @@ -1400,7 +1482,7 @@ public Builder setActiveConference( * * *
-     * Active conference if it exists.
+     * Active conference, if it exists.
      * 
* * .google.apps.meet.v2beta.ActiveConference active_conference = 6; @@ -1428,7 +1510,7 @@ public Builder mergeActiveConference(com.google.apps.meet.v2beta.ActiveConferenc * * *
-     * Active conference if it exists.
+     * Active conference, if it exists.
      * 
* * .google.apps.meet.v2beta.ActiveConference active_conference = 6; @@ -1447,7 +1529,7 @@ public Builder clearActiveConference() { * * *
-     * Active conference if it exists.
+     * Active conference, if it exists.
      * 
* * .google.apps.meet.v2beta.ActiveConference active_conference = 6; @@ -1461,7 +1543,7 @@ public com.google.apps.meet.v2beta.ActiveConference.Builder getActiveConferenceB * * *
-     * Active conference if it exists.
+     * Active conference, if it exists.
      * 
* * .google.apps.meet.v2beta.ActiveConference active_conference = 6; @@ -1479,7 +1561,7 @@ public com.google.apps.meet.v2beta.ActiveConferenceOrBuilder getActiveConference * * *
-     * Active conference if it exists.
+     * Active conference, if it exists.
      * 
* * .google.apps.meet.v2beta.ActiveConference active_conference = 6; diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SpaceConfig.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SpaceConfig.java index 97af28fd266b..3e3570509f75 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SpaceConfig.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SpaceConfig.java @@ -41,6 +41,8 @@ private SpaceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { private SpaceConfig() { accessType_ = 0; entryPointAccess_ = 0; + moderation_ = 0; + attendanceReportGenerationType_ = 0; } @java.lang.Override @@ -256,7 +258,7 @@ private AccessType(int value) { * *
    * Entry points that can be used to join a meeting.  Example:
-   * `meet.google.com`, the Embed SDK Web, or a mobile application.
+   * `meet.google.com`, the Meet Embed SDK Web, or a mobile application.
    * 
* * Protobuf enum {@code google.apps.meet.v2beta.SpaceConfig.EntryPointAccess} @@ -287,8 +289,8 @@ public enum EntryPointAccess implements com.google.protobuf.ProtocolMessageEnum * *
      * Only entry points owned by the Google Cloud project that created the
-     * space can be used to join meetings in this space.  Apps can use the Embed
-     * SDK Web or mobile Meet SDKs to create owned entry points.
+     * space can be used to join meetings in this space. Apps can use the Meet
+     * Embed SDK Web or mobile Meet SDKs to create owned entry points.
      * 
* * CREATOR_APP_ONLY = 2; @@ -322,8 +324,8 @@ public enum EntryPointAccess implements com.google.protobuf.ProtocolMessageEnum * *
      * Only entry points owned by the Google Cloud project that created the
-     * space can be used to join meetings in this space.  Apps can use the Embed
-     * SDK Web or mobile Meet SDKs to create owned entry points.
+     * space can be used to join meetings in this space. Apps can use the Meet
+     * Embed SDK Web or mobile Meet SDKs to create owned entry points.
      * 
* * CREATOR_APP_ONLY = 2; @@ -415,489 +417,7038 @@ private EntryPointAccess(int value) { // @@protoc_insertion_point(enum_scope:google.apps.meet.v2beta.SpaceConfig.EntryPointAccess) } - public static final int ACCESS_TYPE_FIELD_NUMBER = 1; - private int accessType_ = 0; - /** - * - * - *
-   * Access type of the meeting space that determines who can join without
-   * knocking. Default: The user's default access settings.  Controlled by the
-   * user's admin for enterprise users or RESTRICTED.
-   * 
- * - * .google.apps.meet.v2beta.SpaceConfig.AccessType access_type = 1; - * - * @return The enum numeric value on the wire for accessType. - */ - @java.lang.Override - public int getAccessTypeValue() { - return accessType_; - } - /** - * - * - *
-   * Access type of the meeting space that determines who can join without
-   * knocking. Default: The user's default access settings.  Controlled by the
-   * user's admin for enterprise users or RESTRICTED.
-   * 
- * - * .google.apps.meet.v2beta.SpaceConfig.AccessType access_type = 1; - * - * @return The accessType. - */ - @java.lang.Override - public com.google.apps.meet.v2beta.SpaceConfig.AccessType getAccessType() { - com.google.apps.meet.v2beta.SpaceConfig.AccessType result = - com.google.apps.meet.v2beta.SpaceConfig.AccessType.forNumber(accessType_); - return result == null - ? com.google.apps.meet.v2beta.SpaceConfig.AccessType.UNRECOGNIZED - : result; - } - - public static final int ENTRY_POINT_ACCESS_FIELD_NUMBER = 2; - private int entryPointAccess_ = 0; - /** - * - * - *
-   * Defines the entry points that can be used to join meetings hosted in this
-   * meeting space.
-   * Default: EntryPointAccess.ALL
-   * 
- * - * .google.apps.meet.v2beta.SpaceConfig.EntryPointAccess entry_point_access = 2; - * - * @return The enum numeric value on the wire for entryPointAccess. - */ - @java.lang.Override - public int getEntryPointAccessValue() { - return entryPointAccess_; - } /** * * *
-   * Defines the entry points that can be used to join meetings hosted in this
-   * meeting space.
-   * Default: EntryPointAccess.ALL
+   * The moderation mode for a meeting. When the moderation mode is on, the
+   * meeting owner has more control over the meeting with features such as
+   * co-host management (see message Member) and feature restrictions (see
+   * message ModerationRestrictions).
    * 
* - * .google.apps.meet.v2beta.SpaceConfig.EntryPointAccess entry_point_access = 2; - * - * @return The entryPointAccess. + * Protobuf enum {@code google.apps.meet.v2beta.SpaceConfig.Moderation} */ - @java.lang.Override - public com.google.apps.meet.v2beta.SpaceConfig.EntryPointAccess getEntryPointAccess() { - com.google.apps.meet.v2beta.SpaceConfig.EntryPointAccess result = - com.google.apps.meet.v2beta.SpaceConfig.EntryPointAccess.forNumber(entryPointAccess_); - return result == null - ? com.google.apps.meet.v2beta.SpaceConfig.EntryPointAccess.UNRECOGNIZED - : result; - } + public enum Moderation implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Moderation type is not specified. This is used to indicate the user
+     * hasn't specified any value as the user does not intend to update the
+     * state. Users are not allowed to set the value as unspecified.
+     * 
+ * + * MODERATION_UNSPECIFIED = 0; + */ + MODERATION_UNSPECIFIED(0), + /** + * + * + *
+     * Moderation is off.
+     * 
+ * + * OFF = 1; + */ + OFF(1), + /** + * + * + *
+     * Moderation is on.
+     * 
+ * + * ON = 2; + */ + ON(2), + UNRECOGNIZED(-1), + ; - private byte memoizedIsInitialized = -1; + /** + * + * + *
+     * Moderation type is not specified. This is used to indicate the user
+     * hasn't specified any value as the user does not intend to update the
+     * state. Users are not allowed to set the value as unspecified.
+     * 
+ * + * MODERATION_UNSPECIFIED = 0; + */ + public static final int MODERATION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Moderation is off.
+     * 
+ * + * OFF = 1; + */ + public static final int OFF_VALUE = 1; + /** + * + * + *
+     * Moderation is on.
+     * 
+ * + * ON = 2; + */ + public static final int ON_VALUE = 2; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } - memoizedIsInitialized = 1; - return true; - } + /** + * @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 Moderation valueOf(int value) { + return forNumber(value); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (accessType_ - != com.google.apps.meet.v2beta.SpaceConfig.AccessType.ACCESS_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(1, accessType_); + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Moderation forNumber(int value) { + switch (value) { + case 0: + return MODERATION_UNSPECIFIED; + case 1: + return OFF; + case 2: + return ON; + default: + return null; + } } - if (entryPointAccess_ - != com.google.apps.meet.v2beta.SpaceConfig.EntryPointAccess.ENTRY_POINT_ACCESS_UNSPECIFIED - .getNumber()) { - output.writeEnum(2, entryPointAccess_); + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; } - getUnknownFields().writeTo(output); - } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Moderation findValueByNumber(int number) { + return Moderation.forNumber(number); + } + }; - size = 0; - if (accessType_ - != com.google.apps.meet.v2beta.SpaceConfig.AccessType.ACCESS_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, accessType_); - } - if (entryPointAccess_ - != com.google.apps.meet.v2beta.SpaceConfig.EntryPointAccess.ENTRY_POINT_ACCESS_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, entryPointAccess_); + 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()); } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.apps.meet.v2beta.SpaceConfig)) { - return super.equals(obj); + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); } - com.google.apps.meet.v2beta.SpaceConfig other = (com.google.apps.meet.v2beta.SpaceConfig) obj; - - if (accessType_ != other.accessType_) return false; - if (entryPointAccess_ != other.entryPointAccess_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.apps.meet.v2beta.SpaceConfig.getDescriptor().getEnumTypes().get(2); } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ACCESS_TYPE_FIELD_NUMBER; - hash = (53 * hash) + accessType_; - hash = (37 * hash) + ENTRY_POINT_ACCESS_FIELD_NUMBER; - hash = (53 * hash) + entryPointAccess_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - public static com.google.apps.meet.v2beta.SpaceConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private static final Moderation[] VALUES = values(); - public static com.google.apps.meet.v2beta.SpaceConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static Moderation 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()]; + } - public static com.google.apps.meet.v2beta.SpaceConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private final int value; - public static com.google.apps.meet.v2beta.SpaceConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + private Moderation(int value) { + this.value = value; + } - public static com.google.apps.meet.v2beta.SpaceConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + // @@protoc_insertion_point(enum_scope:google.apps.meet.v2beta.SpaceConfig.Moderation) } - public static com.google.apps.meet.v2beta.SpaceConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
+   * Possible states of whether attendance report is enabled for the meeting
+   * space.
+   * 
+ * + * Protobuf enum {@code google.apps.meet.v2beta.SpaceConfig.AttendanceReportGenerationType} + */ + public enum AttendanceReportGenerationType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value specified by user policy.
+     * This should never be returned.
+     * 
+ * + * ATTENDANCE_REPORT_GENERATION_TYPE_UNSPECIFIED = 0; + */ + ATTENDANCE_REPORT_GENERATION_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Attendance report will be generated and sent to drive/email.
+     * 
+ * + * GENERATE_REPORT = 1; + */ + GENERATE_REPORT(1), + /** + * + * + *
+     * Attendance report will not be generated.
+     * 
+ * + * DO_NOT_GENERATE = 2; + */ + DO_NOT_GENERATE(2), + UNRECOGNIZED(-1), + ; - public static com.google.apps.meet.v2beta.SpaceConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + /** + * + * + *
+     * Default value specified by user policy.
+     * This should never be returned.
+     * 
+ * + * ATTENDANCE_REPORT_GENERATION_TYPE_UNSPECIFIED = 0; + */ + public static final int ATTENDANCE_REPORT_GENERATION_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Attendance report will be generated and sent to drive/email.
+     * 
+ * + * GENERATE_REPORT = 1; + */ + public static final int GENERATE_REPORT_VALUE = 1; + /** + * + * + *
+     * Attendance report will not be generated.
+     * 
+ * + * DO_NOT_GENERATE = 2; + */ + public static final int DO_NOT_GENERATE_VALUE = 2; - public static com.google.apps.meet.v2beta.SpaceConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } - public static com.google.apps.meet.v2beta.SpaceConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } + /** + * @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 AttendanceReportGenerationType valueOf(int value) { + return forNumber(value); + } - public static com.google.apps.meet.v2beta.SpaceConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static AttendanceReportGenerationType forNumber(int value) { + switch (value) { + case 0: + return ATTENDANCE_REPORT_GENERATION_TYPE_UNSPECIFIED; + case 1: + return GENERATE_REPORT; + case 2: + return DO_NOT_GENERATE; + default: + return null; + } + } - public static com.google.apps.meet.v2beta.SpaceConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } - public static com.google.apps.meet.v2beta.SpaceConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AttendanceReportGenerationType findValueByNumber(int number) { + return AttendanceReportGenerationType.forNumber(number); + } + }; - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + 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 static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } - public static Builder newBuilder(com.google.apps.meet.v2beta.SpaceConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.apps.meet.v2beta.SpaceConfig.getDescriptor().getEnumTypes().get(3); + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + private static final AttendanceReportGenerationType[] VALUES = values(); + + public static AttendanceReportGenerationType 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 AttendanceReportGenerationType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.apps.meet.v2beta.SpaceConfig.AttendanceReportGenerationType) } - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + public interface ModerationRestrictionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Defines who has permission to send chat messages in the meeting space.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType chat_restriction = 1; + * + * + * @return The enum numeric value on the wire for chatRestriction. + */ + int getChatRestrictionValue(); + /** + * + * + *
+     * Defines who has permission to send chat messages in the meeting space.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType chat_restriction = 1; + * + * + * @return The chatRestriction. + */ + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType + getChatRestriction(); + + /** + * + * + *
+     * Defines who has permission to send reactions in the meeting space.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType reaction_restriction = 2; + * + * + * @return The enum numeric value on the wire for reactionRestriction. + */ + int getReactionRestrictionValue(); + /** + * + * + *
+     * Defines who has permission to send reactions in the meeting space.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType reaction_restriction = 2; + * + * + * @return The reactionRestriction. + */ + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType + getReactionRestriction(); + + /** + * + * + *
+     * Defines who has permission to share their screen in the meeting space.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType present_restriction = 3; + * + * + * @return The enum numeric value on the wire for presentRestriction. + */ + int getPresentRestrictionValue(); + /** + * + * + *
+     * Defines who has permission to share their screen in the meeting space.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType present_restriction = 3; + * + * + * @return The presentRestriction. + */ + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType + getPresentRestriction(); + + /** + * + * + *
+     * Defines whether to restrict the default role assigned to users as viewer.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.DefaultJoinAsViewerType default_join_as_viewer_type = 4; + * + * + * @return The enum numeric value on the wire for defaultJoinAsViewerType. + */ + int getDefaultJoinAsViewerTypeValue(); + /** + * + * + *
+     * Defines whether to restrict the default role assigned to users as viewer.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.DefaultJoinAsViewerType default_join_as_viewer_type = 4; + * + * + * @return The defaultJoinAsViewerType. + */ + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.DefaultJoinAsViewerType + getDefaultJoinAsViewerType(); } /** * * *
-   * The configuration pertaining to a meeting space.
+   * Defines restrictions for features when the meeting is moderated.
    * 
* - * Protobuf type {@code google.apps.meet.v2beta.SpaceConfig} + * Protobuf type {@code google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class ModerationRestrictions extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(builder_implements:google.apps.meet.v2beta.SpaceConfig) - com.google.apps.meet.v2beta.SpaceConfigOrBuilder { + // @@protoc_insertion_point(message_implements:google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions) + ModerationRestrictionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use ModerationRestrictions.newBuilder() to construct. + private ModerationRestrictions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ModerationRestrictions() { + chatRestriction_ = 0; + reactionRestriction_ = 0; + presentRestriction_ = 0; + defaultJoinAsViewerType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ModerationRestrictions(); + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apps.meet.v2beta.ResourceProto - .internal_static_google_apps_meet_v2beta_SpaceConfig_descriptor; + .internal_static_google_apps_meet_v2beta_SpaceConfig_ModerationRestrictions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apps.meet.v2beta.ResourceProto - .internal_static_google_apps_meet_v2beta_SpaceConfig_fieldAccessorTable + .internal_static_google_apps_meet_v2beta_SpaceConfig_ModerationRestrictions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.apps.meet.v2beta.SpaceConfig.class, - com.google.apps.meet.v2beta.SpaceConfig.Builder.class); + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.class, + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.Builder.class); } - // Construct using com.google.apps.meet.v2beta.SpaceConfig.newBuilder() - private Builder() {} + /** + * + * + *
+     * Determines who has permission to use a particular feature.
+     * 
+ * + * Protobuf enum {@code + * google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType} + */ + public enum RestrictionType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Default value specified by user policy.
+       * This should never be returned.
+       * 
+ * + * RESTRICTION_TYPE_UNSPECIFIED = 0; + */ + RESTRICTION_TYPE_UNSPECIFIED(0), + /** + * + * + *
+       * Meeting owner and co-host have the permission.
+       * 
+ * + * HOSTS_ONLY = 1; + */ + HOSTS_ONLY(1), + /** + * + * + *
+       * All Participants have permissions.
+       * 
+ * + * NO_RESTRICTION = 2; + */ + NO_RESTRICTION(2), + UNRECOGNIZED(-1), + ; - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); + /** + * + * + *
+       * Default value specified by user policy.
+       * This should never be returned.
+       * 
+ * + * RESTRICTION_TYPE_UNSPECIFIED = 0; + */ + public static final int RESTRICTION_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * Meeting owner and co-host have the permission.
+       * 
+ * + * HOSTS_ONLY = 1; + */ + public static final int HOSTS_ONLY_VALUE = 1; + /** + * + * + *
+       * All Participants have permissions.
+       * 
+ * + * NO_RESTRICTION = 2; + */ + public static final int NO_RESTRICTION_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 RestrictionType 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 RestrictionType forNumber(int value) { + switch (value) { + case 0: + return RESTRICTION_TYPE_UNSPECIFIED; + case 1: + return HOSTS_ONLY; + case 2: + return NO_RESTRICTION; + 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 RestrictionType findValueByNumber(int number) { + return RestrictionType.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.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final RestrictionType[] VALUES = values(); + + public static RestrictionType 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 RestrictionType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType) + } + + /** + * + * + *
+     * By default users will join as contributors. Hosts can restrict users to
+     * join as viewers.
+     * Note: If an explicit role is set for a users in the Member resource, the
+     * user will join as that role.
+     * 
+ * + * Protobuf enum {@code + * google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.DefaultJoinAsViewerType} + */ + public enum DefaultJoinAsViewerType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Default value specified by user policy.
+       * This should never be returned.
+       * 
+ * + * DEFAULT_JOIN_AS_VIEWER_TYPE_UNSPECIFIED = 0; + */ + DEFAULT_JOIN_AS_VIEWER_TYPE_UNSPECIFIED(0), + /** + * + * + *
+       * Users will by default join as viewers.
+       * 
+ * + * ON = 1; + */ + ON(1), + /** + * + * + *
+       * Users will by default join as contributors.
+       * 
+ * + * OFF = 2; + */ + OFF(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * Default value specified by user policy.
+       * This should never be returned.
+       * 
+ * + * DEFAULT_JOIN_AS_VIEWER_TYPE_UNSPECIFIED = 0; + */ + public static final int DEFAULT_JOIN_AS_VIEWER_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * Users will by default join as viewers.
+       * 
+ * + * ON = 1; + */ + public static final int ON_VALUE = 1; + /** + * + * + *
+       * Users will by default join as contributors.
+       * 
+ * + * OFF = 2; + */ + public static final int OFF_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 DefaultJoinAsViewerType 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 DefaultJoinAsViewerType forNumber(int value) { + switch (value) { + case 0: + return DEFAULT_JOIN_AS_VIEWER_TYPE_UNSPECIFIED; + case 1: + return ON; + case 2: + return OFF; + 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 DefaultJoinAsViewerType findValueByNumber(int number) { + return DefaultJoinAsViewerType.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.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final DefaultJoinAsViewerType[] VALUES = values(); + + public static DefaultJoinAsViewerType 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 DefaultJoinAsViewerType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.DefaultJoinAsViewerType) } + public static final int CHAT_RESTRICTION_FIELD_NUMBER = 1; + private int chatRestriction_ = 0; + /** + * + * + *
+     * Defines who has permission to send chat messages in the meeting space.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType chat_restriction = 1; + * + * + * @return The enum numeric value on the wire for chatRestriction. + */ @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - accessType_ = 0; - entryPointAccess_ = 0; - return this; + public int getChatRestrictionValue() { + return chatRestriction_; + } + /** + * + * + *
+     * Defines who has permission to send chat messages in the meeting space.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType chat_restriction = 1; + * + * + * @return The chatRestriction. + */ + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType + getChatRestriction() { + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType result = + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType.forNumber( + chatRestriction_); + return result == null + ? com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType + .UNRECOGNIZED + : result; } + public static final int REACTION_RESTRICTION_FIELD_NUMBER = 2; + private int reactionRestriction_ = 0; + /** + * + * + *
+     * Defines who has permission to send reactions in the meeting space.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType reaction_restriction = 2; + * + * + * @return The enum numeric value on the wire for reactionRestriction. + */ @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.apps.meet.v2beta.ResourceProto - .internal_static_google_apps_meet_v2beta_SpaceConfig_descriptor; + public int getReactionRestrictionValue() { + return reactionRestriction_; + } + /** + * + * + *
+     * Defines who has permission to send reactions in the meeting space.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType reaction_restriction = 2; + * + * + * @return The reactionRestriction. + */ + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType + getReactionRestriction() { + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType result = + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType.forNumber( + reactionRestriction_); + return result == null + ? com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType + .UNRECOGNIZED + : result; } + public static final int PRESENT_RESTRICTION_FIELD_NUMBER = 3; + private int presentRestriction_ = 0; + /** + * + * + *
+     * Defines who has permission to share their screen in the meeting space.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType present_restriction = 3; + * + * + * @return The enum numeric value on the wire for presentRestriction. + */ @java.lang.Override - public com.google.apps.meet.v2beta.SpaceConfig getDefaultInstanceForType() { - return com.google.apps.meet.v2beta.SpaceConfig.getDefaultInstance(); + public int getPresentRestrictionValue() { + return presentRestriction_; + } + /** + * + * + *
+     * Defines who has permission to share their screen in the meeting space.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType present_restriction = 3; + * + * + * @return The presentRestriction. + */ + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType + getPresentRestriction() { + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType result = + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType.forNumber( + presentRestriction_); + return result == null + ? com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType + .UNRECOGNIZED + : result; } + public static final int DEFAULT_JOIN_AS_VIEWER_TYPE_FIELD_NUMBER = 4; + private int defaultJoinAsViewerType_ = 0; + /** + * + * + *
+     * Defines whether to restrict the default role assigned to users as viewer.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.DefaultJoinAsViewerType default_join_as_viewer_type = 4; + * + * + * @return The enum numeric value on the wire for defaultJoinAsViewerType. + */ @java.lang.Override - public com.google.apps.meet.v2beta.SpaceConfig build() { - com.google.apps.meet.v2beta.SpaceConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + public int getDefaultJoinAsViewerTypeValue() { + return defaultJoinAsViewerType_; + } + /** + * + * + *
+     * Defines whether to restrict the default role assigned to users as viewer.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.DefaultJoinAsViewerType default_join_as_viewer_type = 4; + * + * + * @return The defaultJoinAsViewerType. + */ + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.DefaultJoinAsViewerType + getDefaultJoinAsViewerType() { + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.DefaultJoinAsViewerType + result = + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.DefaultJoinAsViewerType + .forNumber(defaultJoinAsViewerType_); + return result == null + ? com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.DefaultJoinAsViewerType + .UNRECOGNIZED + : result; } + private byte memoizedIsInitialized = -1; + @java.lang.Override - public com.google.apps.meet.v2beta.SpaceConfig buildPartial() { - com.google.apps.meet.v2beta.SpaceConfig result = - new com.google.apps.meet.v2beta.SpaceConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } - private void buildPartial0(com.google.apps.meet.v2beta.SpaceConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.accessType_ = accessType_; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (chatRestriction_ + != com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType + .RESTRICTION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, chatRestriction_); } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.entryPointAccess_ = entryPointAccess_; + if (reactionRestriction_ + != com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType + .RESTRICTION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, reactionRestriction_); } + if (presentRestriction_ + != com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType + .RESTRICTION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, presentRestriction_); + } + if (defaultJoinAsViewerType_ + != com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.DefaultJoinAsViewerType + .DEFAULT_JOIN_AS_VIEWER_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, defaultJoinAsViewerType_); + } + getUnknownFields().writeTo(output); } @java.lang.Override - public Builder clone() { - return super.clone(); + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (chatRestriction_ + != com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType + .RESTRICTION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, chatRestriction_); + } + if (reactionRestriction_ + != com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType + .RESTRICTION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, reactionRestriction_); + } + if (presentRestriction_ + != com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType + .RESTRICTION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, presentRestriction_); + } + if (defaultJoinAsViewerType_ + != com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.DefaultJoinAsViewerType + .DEFAULT_JOIN_AS_VIEWER_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, defaultJoinAsViewerType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; } @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions)) { + return super.equals(obj); + } + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions other = + (com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions) obj; + + if (chatRestriction_ != other.chatRestriction_) return false; + if (reactionRestriction_ != other.reactionRestriction_) return false; + if (presentRestriction_ != other.presentRestriction_) return false; + if (defaultJoinAsViewerType_ != other.defaultJoinAsViewerType_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CHAT_RESTRICTION_FIELD_NUMBER; + hash = (53 * hash) + chatRestriction_; + hash = (37 * hash) + REACTION_RESTRICTION_FIELD_NUMBER; + hash = (53 * hash) + reactionRestriction_; + hash = (37 * hash) + PRESENT_RESTRICTION_FIELD_NUMBER; + hash = (53 * hash) + presentRestriction_; + hash = (37 * hash) + DEFAULT_JOIN_AS_VIEWER_TYPE_FIELD_NUMBER; + hash = (53 * hash) + defaultJoinAsViewerType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + public static com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.apps.meet.v2beta.SpaceConfig) { - return mergeFrom((com.google.apps.meet.v2beta.SpaceConfig) other); + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Defines restrictions for features when the meeting is moderated.
+     * 
+ * + * Protobuf type {@code google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions) + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2beta.ResourceProto + .internal_static_google_apps_meet_v2beta_SpaceConfig_ModerationRestrictions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2beta.ResourceProto + .internal_static_google_apps_meet_v2beta_SpaceConfig_ModerationRestrictions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.class, + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.Builder.class); + } + + // Construct using com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + chatRestriction_ = 0; + reactionRestriction_ = 0; + presentRestriction_ = 0; + defaultJoinAsViewerType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2beta.ResourceProto + .internal_static_google_apps_meet_v2beta_SpaceConfig_ModerationRestrictions_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions + getDefaultInstanceForType() { + return com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions build() { + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions buildPartial() { + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions result = + new com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.chatRestriction_ = chatRestriction_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.reactionRestriction_ = reactionRestriction_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.presentRestriction_ = presentRestriction_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.defaultJoinAsViewerType_ = defaultJoinAsViewerType_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions) { + return mergeFrom((com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions other) { + if (other + == com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.getDefaultInstance()) + return this; + if (other.chatRestriction_ != 0) { + setChatRestrictionValue(other.getChatRestrictionValue()); + } + if (other.reactionRestriction_ != 0) { + setReactionRestrictionValue(other.getReactionRestrictionValue()); + } + if (other.presentRestriction_ != 0) { + setPresentRestrictionValue(other.getPresentRestrictionValue()); + } + if (other.defaultJoinAsViewerType_ != 0) { + setDefaultJoinAsViewerTypeValue(other.getDefaultJoinAsViewerTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + chatRestriction_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + reactionRestriction_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + presentRestriction_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + defaultJoinAsViewerType_ = input.readEnum(); + 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 int chatRestriction_ = 0; + /** + * + * + *
+       * Defines who has permission to send chat messages in the meeting space.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType chat_restriction = 1; + * + * + * @return The enum numeric value on the wire for chatRestriction. + */ + @java.lang.Override + public int getChatRestrictionValue() { + return chatRestriction_; + } + /** + * + * + *
+       * Defines who has permission to send chat messages in the meeting space.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType chat_restriction = 1; + * + * + * @param value The enum numeric value on the wire for chatRestriction to set. + * @return This builder for chaining. + */ + public Builder setChatRestrictionValue(int value) { + chatRestriction_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Defines who has permission to send chat messages in the meeting space.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType chat_restriction = 1; + * + * + * @return The chatRestriction. + */ + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType + getChatRestriction() { + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType result = + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType + .forNumber(chatRestriction_); + return result == null + ? com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType + .UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Defines who has permission to send chat messages in the meeting space.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType chat_restriction = 1; + * + * + * @param value The chatRestriction to set. + * @return This builder for chaining. + */ + public Builder setChatRestriction( + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + chatRestriction_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Defines who has permission to send chat messages in the meeting space.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType chat_restriction = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearChatRestriction() { + bitField0_ = (bitField0_ & ~0x00000001); + chatRestriction_ = 0; + onChanged(); + return this; + } + + private int reactionRestriction_ = 0; + /** + * + * + *
+       * Defines who has permission to send reactions in the meeting space.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType reaction_restriction = 2; + * + * + * @return The enum numeric value on the wire for reactionRestriction. + */ + @java.lang.Override + public int getReactionRestrictionValue() { + return reactionRestriction_; + } + /** + * + * + *
+       * Defines who has permission to send reactions in the meeting space.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType reaction_restriction = 2; + * + * + * @param value The enum numeric value on the wire for reactionRestriction to set. + * @return This builder for chaining. + */ + public Builder setReactionRestrictionValue(int value) { + reactionRestriction_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Defines who has permission to send reactions in the meeting space.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType reaction_restriction = 2; + * + * + * @return The reactionRestriction. + */ + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType + getReactionRestriction() { + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType result = + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType + .forNumber(reactionRestriction_); + return result == null + ? com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType + .UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Defines who has permission to send reactions in the meeting space.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType reaction_restriction = 2; + * + * + * @param value The reactionRestriction to set. + * @return This builder for chaining. + */ + public Builder setReactionRestriction( + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + reactionRestriction_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Defines who has permission to send reactions in the meeting space.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType reaction_restriction = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearReactionRestriction() { + bitField0_ = (bitField0_ & ~0x00000002); + reactionRestriction_ = 0; + onChanged(); + return this; + } + + private int presentRestriction_ = 0; + /** + * + * + *
+       * Defines who has permission to share their screen in the meeting space.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType present_restriction = 3; + * + * + * @return The enum numeric value on the wire for presentRestriction. + */ + @java.lang.Override + public int getPresentRestrictionValue() { + return presentRestriction_; + } + /** + * + * + *
+       * Defines who has permission to share their screen in the meeting space.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType present_restriction = 3; + * + * + * @param value The enum numeric value on the wire for presentRestriction to set. + * @return This builder for chaining. + */ + public Builder setPresentRestrictionValue(int value) { + presentRestriction_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Defines who has permission to share their screen in the meeting space.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType present_restriction = 3; + * + * + * @return The presentRestriction. + */ + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType + getPresentRestriction() { + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType result = + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType + .forNumber(presentRestriction_); + return result == null + ? com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType + .UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Defines who has permission to share their screen in the meeting space.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType present_restriction = 3; + * + * + * @param value The presentRestriction to set. + * @return This builder for chaining. + */ + public Builder setPresentRestriction( + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + presentRestriction_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Defines who has permission to share their screen in the meeting space.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.RestrictionType present_restriction = 3; + * + * + * @return This builder for chaining. + */ + public Builder clearPresentRestriction() { + bitField0_ = (bitField0_ & ~0x00000004); + presentRestriction_ = 0; + onChanged(); + return this; + } + + private int defaultJoinAsViewerType_ = 0; + /** + * + * + *
+       * Defines whether to restrict the default role assigned to users as viewer.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.DefaultJoinAsViewerType default_join_as_viewer_type = 4; + * + * + * @return The enum numeric value on the wire for defaultJoinAsViewerType. + */ + @java.lang.Override + public int getDefaultJoinAsViewerTypeValue() { + return defaultJoinAsViewerType_; + } + /** + * + * + *
+       * Defines whether to restrict the default role assigned to users as viewer.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.DefaultJoinAsViewerType default_join_as_viewer_type = 4; + * + * + * @param value The enum numeric value on the wire for defaultJoinAsViewerType to set. + * @return This builder for chaining. + */ + public Builder setDefaultJoinAsViewerTypeValue(int value) { + defaultJoinAsViewerType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Defines whether to restrict the default role assigned to users as viewer.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.DefaultJoinAsViewerType default_join_as_viewer_type = 4; + * + * + * @return The defaultJoinAsViewerType. + */ + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.DefaultJoinAsViewerType + getDefaultJoinAsViewerType() { + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.DefaultJoinAsViewerType + result = + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions + .DefaultJoinAsViewerType.forNumber(defaultJoinAsViewerType_); + return result == null + ? com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.DefaultJoinAsViewerType + .UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Defines whether to restrict the default role assigned to users as viewer.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.DefaultJoinAsViewerType default_join_as_viewer_type = 4; + * + * + * @param value The defaultJoinAsViewerType to set. + * @return This builder for chaining. + */ + public Builder setDefaultJoinAsViewerType( + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.DefaultJoinAsViewerType + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + defaultJoinAsViewerType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Defines whether to restrict the default role assigned to users as viewer.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.DefaultJoinAsViewerType default_join_as_viewer_type = 4; + * + * + * @return This builder for chaining. + */ + public Builder clearDefaultJoinAsViewerType() { + bitField0_ = (bitField0_ & ~0x00000008); + defaultJoinAsViewerType_ = 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.apps.meet.v2beta.SpaceConfig.ModerationRestrictions) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions) + private static final com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions(); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModerationRestrictions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ArtifactConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2beta.SpaceConfig.ArtifactConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Configuration for recording.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig recording_config = 1; + * + * + * @return Whether the recordingConfig field is set. + */ + boolean hasRecordingConfig(); + /** + * + * + *
+     * Configuration for recording.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig recording_config = 1; + * + * + * @return The recordingConfig. + */ + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig getRecordingConfig(); + /** + * + * + *
+     * Configuration for recording.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig recording_config = 1; + * + */ + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfigOrBuilder + getRecordingConfigOrBuilder(); + + /** + * + * + *
+     * Configuration for auto-transcript.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig transcription_config = 2; + * + * + * @return Whether the transcriptionConfig field is set. + */ + boolean hasTranscriptionConfig(); + /** + * + * + *
+     * Configuration for auto-transcript.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig transcription_config = 2; + * + * + * @return The transcriptionConfig. + */ + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig + getTranscriptionConfig(); + /** + * + * + *
+     * Configuration for auto-transcript.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig transcription_config = 2; + * + */ + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfigOrBuilder + getTranscriptionConfigOrBuilder(); + + /** + * + * + *
+     * Configuration for auto-smart-notes.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig smart_notes_config = 3; + * + * + * @return Whether the smartNotesConfig field is set. + */ + boolean hasSmartNotesConfig(); + /** + * + * + *
+     * Configuration for auto-smart-notes.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig smart_notes_config = 3; + * + * + * @return The smartNotesConfig. + */ + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig getSmartNotesConfig(); + /** + * + * + *
+     * Configuration for auto-smart-notes.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig smart_notes_config = 3; + * + */ + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfigOrBuilder + getSmartNotesConfigOrBuilder(); + } + /** + * + * + *
+   * Configuration related to meeting artifacts potentially generated by this
+   * meeting space.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2beta.SpaceConfig.ArtifactConfig} + */ + public static final class ArtifactConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2beta.SpaceConfig.ArtifactConfig) + ArtifactConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ArtifactConfig.newBuilder() to construct. + private ArtifactConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ArtifactConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ArtifactConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2beta.ResourceProto + .internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2beta.ResourceProto + .internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.class, + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.Builder.class); + } + + /** + * + * + *
+     * Determines whether an artifact can be automatically generated in the
+     * meeting space.
+     * 
+ * + * Protobuf enum {@code google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType} + */ + public enum AutoGenerationType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Default value specified by user policy.
+       * This should never be returned.
+       * 
+ * + * AUTO_GENERATION_TYPE_UNSPECIFIED = 0; + */ + AUTO_GENERATION_TYPE_UNSPECIFIED(0), + /** + * + * + *
+       * The artifact is generated automatically.
+       * 
+ * + * ON = 1; + */ + ON(1), + /** + * + * + *
+       * The artifact is not generated automatically.
+       * 
+ * + * OFF = 2; + */ + OFF(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * Default value specified by user policy.
+       * This should never be returned.
+       * 
+ * + * AUTO_GENERATION_TYPE_UNSPECIFIED = 0; + */ + public static final int AUTO_GENERATION_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * The artifact is generated automatically.
+       * 
+ * + * ON = 1; + */ + public static final int ON_VALUE = 1; + /** + * + * + *
+       * The artifact is not generated automatically.
+       * 
+ * + * OFF = 2; + */ + public static final int OFF_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 AutoGenerationType 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 AutoGenerationType forNumber(int value) { + switch (value) { + case 0: + return AUTO_GENERATION_TYPE_UNSPECIFIED; + case 1: + return ON; + case 2: + return OFF; + 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 AutoGenerationType findValueByNumber(int number) { + return AutoGenerationType.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.apps.meet.v2beta.SpaceConfig.ArtifactConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final AutoGenerationType[] VALUES = values(); + + public static AutoGenerationType 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 AutoGenerationType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType) + } + + public interface RecordingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Defines whether a meeting space is automatically recorded when someone
+       * with the privilege to record joins the meeting.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType auto_recording_generation = 2; + * + * + * @return The enum numeric value on the wire for autoRecordingGeneration. + */ + int getAutoRecordingGenerationValue(); + /** + * + * + *
+       * Defines whether a meeting space is automatically recorded when someone
+       * with the privilege to record joins the meeting.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType auto_recording_generation = 2; + * + * + * @return The autoRecordingGeneration. + */ + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType + getAutoRecordingGeneration(); + } + /** + * + * + *
+     * Configuration related to recording in a meeting space.
+     * 
+ * + * Protobuf type {@code google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig} + */ + public static final class RecordingConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig) + RecordingConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use RecordingConfig.newBuilder() to construct. + private RecordingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RecordingConfig() { + autoRecordingGeneration_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RecordingConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2beta.ResourceProto + .internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_RecordingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2beta.ResourceProto + .internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_RecordingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig.class, + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig.Builder + .class); + } + + public static final int AUTO_RECORDING_GENERATION_FIELD_NUMBER = 2; + private int autoRecordingGeneration_ = 0; + /** + * + * + *
+       * Defines whether a meeting space is automatically recorded when someone
+       * with the privilege to record joins the meeting.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType auto_recording_generation = 2; + * + * + * @return The enum numeric value on the wire for autoRecordingGeneration. + */ + @java.lang.Override + public int getAutoRecordingGenerationValue() { + return autoRecordingGeneration_; + } + /** + * + * + *
+       * Defines whether a meeting space is automatically recorded when someone
+       * with the privilege to record joins the meeting.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType auto_recording_generation = 2; + * + * + * @return The autoRecordingGeneration. + */ + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType + getAutoRecordingGeneration() { + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType result = + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType.forNumber( + autoRecordingGeneration_); + return result == null + ? com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType.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 (autoRecordingGeneration_ + != com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType + .AUTO_GENERATION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, autoRecordingGeneration_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (autoRecordingGeneration_ + != com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType + .AUTO_GENERATION_TYPE_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(2, autoRecordingGeneration_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig)) { + return super.equals(obj); + } + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig other = + (com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig) obj; + + if (autoRecordingGeneration_ != other.autoRecordingGeneration_) return false; + if (!getUnknownFields().equals(other.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) + AUTO_RECORDING_GENERATION_FIELD_NUMBER; + hash = (53 * hash) + autoRecordingGeneration_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 related to recording in a meeting space.
+       * 
+ * + * Protobuf type {@code google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig) + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2beta.ResourceProto + .internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_RecordingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2beta.ResourceProto + .internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_RecordingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig.class, + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig.Builder + .class); + } + + // Construct using + // com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + autoRecordingGeneration_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2beta.ResourceProto + .internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_RecordingConfig_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig + getDefaultInstanceForType() { + return com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig build() { + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig + buildPartial() { + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig result = + new com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.autoRecordingGeneration_ = autoRecordingGeneration_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig) { + return mergeFrom( + (com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig other) { + if (other + == com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig + .getDefaultInstance()) return this; + if (other.autoRecordingGeneration_ != 0) { + setAutoRecordingGenerationValue(other.getAutoRecordingGenerationValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + autoRecordingGeneration_ = input.readEnum(); + 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; + } + + private int bitField0_; + + private int autoRecordingGeneration_ = 0; + /** + * + * + *
+         * Defines whether a meeting space is automatically recorded when someone
+         * with the privilege to record joins the meeting.
+         * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType auto_recording_generation = 2; + * + * + * @return The enum numeric value on the wire for autoRecordingGeneration. + */ + @java.lang.Override + public int getAutoRecordingGenerationValue() { + return autoRecordingGeneration_; + } + /** + * + * + *
+         * Defines whether a meeting space is automatically recorded when someone
+         * with the privilege to record joins the meeting.
+         * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType auto_recording_generation = 2; + * + * + * @param value The enum numeric value on the wire for autoRecordingGeneration to set. + * @return This builder for chaining. + */ + public Builder setAutoRecordingGenerationValue(int value) { + autoRecordingGeneration_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * Defines whether a meeting space is automatically recorded when someone
+         * with the privilege to record joins the meeting.
+         * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType auto_recording_generation = 2; + * + * + * @return The autoRecordingGeneration. + */ + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType + getAutoRecordingGeneration() { + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType result = + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType.forNumber( + autoRecordingGeneration_); + return result == null + ? com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType + .UNRECOGNIZED + : result; + } + /** + * + * + *
+         * Defines whether a meeting space is automatically recorded when someone
+         * with the privilege to record joins the meeting.
+         * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType auto_recording_generation = 2; + * + * + * @param value The autoRecordingGeneration to set. + * @return This builder for chaining. + */ + public Builder setAutoRecordingGeneration( + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + autoRecordingGeneration_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+         * Defines whether a meeting space is automatically recorded when someone
+         * with the privilege to record joins the meeting.
+         * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType auto_recording_generation = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearAutoRecordingGeneration() { + bitField0_ = (bitField0_ & ~0x00000001); + autoRecordingGeneration_ = 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.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig) + private static final com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig(); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecordingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface TranscriptionConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Defines whether the content of a meeting is automatically transcribed
+       * when someone with the privilege to transcribe joins the meeting.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType auto_transcription_generation = 2; + * + * + * @return The enum numeric value on the wire for autoTranscriptionGeneration. + */ + int getAutoTranscriptionGenerationValue(); + /** + * + * + *
+       * Defines whether the content of a meeting is automatically transcribed
+       * when someone with the privilege to transcribe joins the meeting.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType auto_transcription_generation = 2; + * + * + * @return The autoTranscriptionGeneration. + */ + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType + getAutoTranscriptionGeneration(); + } + /** + * + * + *
+     * Configuration related to transcription in a meeting space.
+     * 
+ * + * Protobuf type {@code google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig} + */ + public static final class TranscriptionConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig) + TranscriptionConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use TranscriptionConfig.newBuilder() to construct. + private TranscriptionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TranscriptionConfig() { + autoTranscriptionGeneration_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TranscriptionConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2beta.ResourceProto + .internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_TranscriptionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2beta.ResourceProto + .internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_TranscriptionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig.class, + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig.Builder + .class); + } + + public static final int AUTO_TRANSCRIPTION_GENERATION_FIELD_NUMBER = 2; + private int autoTranscriptionGeneration_ = 0; + /** + * + * + *
+       * Defines whether the content of a meeting is automatically transcribed
+       * when someone with the privilege to transcribe joins the meeting.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType auto_transcription_generation = 2; + * + * + * @return The enum numeric value on the wire for autoTranscriptionGeneration. + */ + @java.lang.Override + public int getAutoTranscriptionGenerationValue() { + return autoTranscriptionGeneration_; + } + /** + * + * + *
+       * Defines whether the content of a meeting is automatically transcribed
+       * when someone with the privilege to transcribe joins the meeting.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType auto_transcription_generation = 2; + * + * + * @return The autoTranscriptionGeneration. + */ + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType + getAutoTranscriptionGeneration() { + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType result = + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType.forNumber( + autoTranscriptionGeneration_); + return result == null + ? com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType.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 (autoTranscriptionGeneration_ + != com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType + .AUTO_GENERATION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, autoTranscriptionGeneration_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (autoTranscriptionGeneration_ + != com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType + .AUTO_GENERATION_TYPE_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 2, autoTranscriptionGeneration_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig)) { + return super.equals(obj); + } + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig other = + (com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig) obj; + + if (autoTranscriptionGeneration_ != other.autoTranscriptionGeneration_) return false; + if (!getUnknownFields().equals(other.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) + AUTO_TRANSCRIPTION_GENERATION_FIELD_NUMBER; + hash = (53 * hash) + autoTranscriptionGeneration_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 related to transcription in a meeting space.
+       * 
+ * + * Protobuf type {@code + * google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig) + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2beta.ResourceProto + .internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_TranscriptionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2beta.ResourceProto + .internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_TranscriptionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig.class, + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig.Builder + .class); + } + + // Construct using + // com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + autoTranscriptionGeneration_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2beta.ResourceProto + .internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_TranscriptionConfig_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig + getDefaultInstanceForType() { + return com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig build() { + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig + buildPartial() { + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig result = + new com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.autoTranscriptionGeneration_ = autoTranscriptionGeneration_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig) { + return mergeFrom( + (com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig other) { + if (other + == com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig + .getDefaultInstance()) return this; + if (other.autoTranscriptionGeneration_ != 0) { + setAutoTranscriptionGenerationValue(other.getAutoTranscriptionGenerationValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + autoTranscriptionGeneration_ = input.readEnum(); + 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; + } + + private int bitField0_; + + private int autoTranscriptionGeneration_ = 0; + /** + * + * + *
+         * Defines whether the content of a meeting is automatically transcribed
+         * when someone with the privilege to transcribe joins the meeting.
+         * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType auto_transcription_generation = 2; + * + * + * @return The enum numeric value on the wire for autoTranscriptionGeneration. + */ + @java.lang.Override + public int getAutoTranscriptionGenerationValue() { + return autoTranscriptionGeneration_; + } + /** + * + * + *
+         * Defines whether the content of a meeting is automatically transcribed
+         * when someone with the privilege to transcribe joins the meeting.
+         * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType auto_transcription_generation = 2; + * + * + * @param value The enum numeric value on the wire for autoTranscriptionGeneration to set. + * @return This builder for chaining. + */ + public Builder setAutoTranscriptionGenerationValue(int value) { + autoTranscriptionGeneration_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * Defines whether the content of a meeting is automatically transcribed
+         * when someone with the privilege to transcribe joins the meeting.
+         * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType auto_transcription_generation = 2; + * + * + * @return The autoTranscriptionGeneration. + */ + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType + getAutoTranscriptionGeneration() { + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType result = + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType.forNumber( + autoTranscriptionGeneration_); + return result == null + ? com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType + .UNRECOGNIZED + : result; + } + /** + * + * + *
+         * Defines whether the content of a meeting is automatically transcribed
+         * when someone with the privilege to transcribe joins the meeting.
+         * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType auto_transcription_generation = 2; + * + * + * @param value The autoTranscriptionGeneration to set. + * @return This builder for chaining. + */ + public Builder setAutoTranscriptionGeneration( + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + autoTranscriptionGeneration_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+         * Defines whether the content of a meeting is automatically transcribed
+         * when someone with the privilege to transcribe joins the meeting.
+         * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType auto_transcription_generation = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearAutoTranscriptionGeneration() { + bitField0_ = (bitField0_ & ~0x00000001); + autoTranscriptionGeneration_ = 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.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig) + private static final com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig + .TranscriptionConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig(); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranscriptionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SmartNotesConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Defines whether to automatically generate a summary and recap of the
+       * meeting for all invitees in the organization when someone with the
+       * privilege to enable smart notes joins the meeting.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType auto_smart_notes_generation = 2; + * + * + * @return The enum numeric value on the wire for autoSmartNotesGeneration. + */ + int getAutoSmartNotesGenerationValue(); + /** + * + * + *
+       * Defines whether to automatically generate a summary and recap of the
+       * meeting for all invitees in the organization when someone with the
+       * privilege to enable smart notes joins the meeting.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType auto_smart_notes_generation = 2; + * + * + * @return The autoSmartNotesGeneration. + */ + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType + getAutoSmartNotesGeneration(); + } + /** + * + * + *
+     * Configuration related to smart notes in a meeting space. More
+     * details about smart notes
+     * https://support.google.com/meet/answer/14754931?hl=en.
+     * 
+ * + * Protobuf type {@code google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig} + */ + public static final class SmartNotesConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig) + SmartNotesConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use SmartNotesConfig.newBuilder() to construct. + private SmartNotesConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SmartNotesConfig() { + autoSmartNotesGeneration_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SmartNotesConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2beta.ResourceProto + .internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_SmartNotesConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2beta.ResourceProto + .internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_SmartNotesConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig.class, + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig.Builder + .class); + } + + public static final int AUTO_SMART_NOTES_GENERATION_FIELD_NUMBER = 2; + private int autoSmartNotesGeneration_ = 0; + /** + * + * + *
+       * Defines whether to automatically generate a summary and recap of the
+       * meeting for all invitees in the organization when someone with the
+       * privilege to enable smart notes joins the meeting.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType auto_smart_notes_generation = 2; + * + * + * @return The enum numeric value on the wire for autoSmartNotesGeneration. + */ + @java.lang.Override + public int getAutoSmartNotesGenerationValue() { + return autoSmartNotesGeneration_; + } + /** + * + * + *
+       * Defines whether to automatically generate a summary and recap of the
+       * meeting for all invitees in the organization when someone with the
+       * privilege to enable smart notes joins the meeting.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType auto_smart_notes_generation = 2; + * + * + * @return The autoSmartNotesGeneration. + */ + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType + getAutoSmartNotesGeneration() { + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType result = + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType.forNumber( + autoSmartNotesGeneration_); + return result == null + ? com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType.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 (autoSmartNotesGeneration_ + != com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType + .AUTO_GENERATION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, autoSmartNotesGeneration_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (autoSmartNotesGeneration_ + != com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType + .AUTO_GENERATION_TYPE_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(2, autoSmartNotesGeneration_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig)) { + return super.equals(obj); + } + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig other = + (com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig) obj; + + if (autoSmartNotesGeneration_ != other.autoSmartNotesGeneration_) return false; + if (!getUnknownFields().equals(other.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) + AUTO_SMART_NOTES_GENERATION_FIELD_NUMBER; + hash = (53 * hash) + autoSmartNotesGeneration_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 related to smart notes in a meeting space. More
+       * details about smart notes
+       * https://support.google.com/meet/answer/14754931?hl=en.
+       * 
+ * + * Protobuf type {@code google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig) + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2beta.ResourceProto + .internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_SmartNotesConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2beta.ResourceProto + .internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_SmartNotesConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig.class, + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig.Builder + .class); + } + + // Construct using + // com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + autoSmartNotesGeneration_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2beta.ResourceProto + .internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_SmartNotesConfig_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig + getDefaultInstanceForType() { + return com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig build() { + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig + buildPartial() { + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig result = + new com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.autoSmartNotesGeneration_ = autoSmartNotesGeneration_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig) { + return mergeFrom( + (com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig other) { + if (other + == com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig + .getDefaultInstance()) return this; + if (other.autoSmartNotesGeneration_ != 0) { + setAutoSmartNotesGenerationValue(other.getAutoSmartNotesGenerationValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + autoSmartNotesGeneration_ = input.readEnum(); + 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; + } + + private int bitField0_; + + private int autoSmartNotesGeneration_ = 0; + /** + * + * + *
+         * Defines whether to automatically generate a summary and recap of the
+         * meeting for all invitees in the organization when someone with the
+         * privilege to enable smart notes joins the meeting.
+         * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType auto_smart_notes_generation = 2; + * + * + * @return The enum numeric value on the wire for autoSmartNotesGeneration. + */ + @java.lang.Override + public int getAutoSmartNotesGenerationValue() { + return autoSmartNotesGeneration_; + } + /** + * + * + *
+         * Defines whether to automatically generate a summary and recap of the
+         * meeting for all invitees in the organization when someone with the
+         * privilege to enable smart notes joins the meeting.
+         * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType auto_smart_notes_generation = 2; + * + * + * @param value The enum numeric value on the wire for autoSmartNotesGeneration to set. + * @return This builder for chaining. + */ + public Builder setAutoSmartNotesGenerationValue(int value) { + autoSmartNotesGeneration_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * Defines whether to automatically generate a summary and recap of the
+         * meeting for all invitees in the organization when someone with the
+         * privilege to enable smart notes joins the meeting.
+         * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType auto_smart_notes_generation = 2; + * + * + * @return The autoSmartNotesGeneration. + */ + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType + getAutoSmartNotesGeneration() { + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType result = + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType.forNumber( + autoSmartNotesGeneration_); + return result == null + ? com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType + .UNRECOGNIZED + : result; + } + /** + * + * + *
+         * Defines whether to automatically generate a summary and recap of the
+         * meeting for all invitees in the organization when someone with the
+         * privilege to enable smart notes joins the meeting.
+         * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType auto_smart_notes_generation = 2; + * + * + * @param value The autoSmartNotesGeneration to set. + * @return This builder for chaining. + */ + public Builder setAutoSmartNotesGeneration( + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + autoSmartNotesGeneration_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+         * Defines whether to automatically generate a summary and recap of the
+         * meeting for all invitees in the organization when someone with the
+         * privilege to enable smart notes joins the meeting.
+         * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.AutoGenerationType auto_smart_notes_generation = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearAutoSmartNotesGeneration() { + bitField0_ = (bitField0_ & ~0x00000001); + autoSmartNotesGeneration_ = 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.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig) + private static final com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig(); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SmartNotesConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int RECORDING_CONFIG_FIELD_NUMBER = 1; + private com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig recordingConfig_; + /** + * + * + *
+     * Configuration for recording.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig recording_config = 1; + * + * + * @return Whether the recordingConfig field is set. + */ + @java.lang.Override + public boolean hasRecordingConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Configuration for recording.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig recording_config = 1; + * + * + * @return The recordingConfig. + */ + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig + getRecordingConfig() { + return recordingConfig_ == null + ? com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig + .getDefaultInstance() + : recordingConfig_; + } + /** + * + * + *
+     * Configuration for recording.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig recording_config = 1; + * + */ + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfigOrBuilder + getRecordingConfigOrBuilder() { + return recordingConfig_ == null + ? com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig + .getDefaultInstance() + : recordingConfig_; + } + + public static final int TRANSCRIPTION_CONFIG_FIELD_NUMBER = 2; + private com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig + transcriptionConfig_; + /** + * + * + *
+     * Configuration for auto-transcript.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig transcription_config = 2; + * + * + * @return Whether the transcriptionConfig field is set. + */ + @java.lang.Override + public boolean hasTranscriptionConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Configuration for auto-transcript.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig transcription_config = 2; + * + * + * @return The transcriptionConfig. + */ + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig + getTranscriptionConfig() { + return transcriptionConfig_ == null + ? com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig + .getDefaultInstance() + : transcriptionConfig_; + } + /** + * + * + *
+     * Configuration for auto-transcript.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig transcription_config = 2; + * + */ + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfigOrBuilder + getTranscriptionConfigOrBuilder() { + return transcriptionConfig_ == null + ? com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig + .getDefaultInstance() + : transcriptionConfig_; + } + + public static final int SMART_NOTES_CONFIG_FIELD_NUMBER = 3; + private com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig + smartNotesConfig_; + /** + * + * + *
+     * Configuration for auto-smart-notes.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig smart_notes_config = 3; + * + * + * @return Whether the smartNotesConfig field is set. + */ + @java.lang.Override + public boolean hasSmartNotesConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Configuration for auto-smart-notes.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig smart_notes_config = 3; + * + * + * @return The smartNotesConfig. + */ + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig + getSmartNotesConfig() { + return smartNotesConfig_ == null + ? com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig + .getDefaultInstance() + : smartNotesConfig_; + } + /** + * + * + *
+     * Configuration for auto-smart-notes.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig smart_notes_config = 3; + * + */ + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfigOrBuilder + getSmartNotesConfigOrBuilder() { + return smartNotesConfig_ == null + ? com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig + .getDefaultInstance() + : smartNotesConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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, getRecordingConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getTranscriptionConfig()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getSmartNotesConfig()); + } + 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, getRecordingConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTranscriptionConfig()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSmartNotesConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig)) { + return super.equals(obj); + } + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig other = + (com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig) obj; + + if (hasRecordingConfig() != other.hasRecordingConfig()) return false; + if (hasRecordingConfig()) { + if (!getRecordingConfig().equals(other.getRecordingConfig())) return false; + } + if (hasTranscriptionConfig() != other.hasTranscriptionConfig()) return false; + if (hasTranscriptionConfig()) { + if (!getTranscriptionConfig().equals(other.getTranscriptionConfig())) return false; + } + if (hasSmartNotesConfig() != other.hasSmartNotesConfig()) return false; + if (hasSmartNotesConfig()) { + if (!getSmartNotesConfig().equals(other.getSmartNotesConfig())) return false; + } + if (!getUnknownFields().equals(other.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 (hasRecordingConfig()) { + hash = (37 * hash) + RECORDING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRecordingConfig().hashCode(); + } + if (hasTranscriptionConfig()) { + hash = (37 * hash) + TRANSCRIPTION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getTranscriptionConfig().hashCode(); + } + if (hasSmartNotesConfig()) { + hash = (37 * hash) + SMART_NOTES_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSmartNotesConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 related to meeting artifacts potentially generated by this
+     * meeting space.
+     * 
+ * + * Protobuf type {@code google.apps.meet.v2beta.SpaceConfig.ArtifactConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2beta.SpaceConfig.ArtifactConfig) + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2beta.ResourceProto + .internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2beta.ResourceProto + .internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.class, + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.Builder.class); + } + + // Construct using com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRecordingConfigFieldBuilder(); + getTranscriptionConfigFieldBuilder(); + getSmartNotesConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + recordingConfig_ = null; + if (recordingConfigBuilder_ != null) { + recordingConfigBuilder_.dispose(); + recordingConfigBuilder_ = null; + } + transcriptionConfig_ = null; + if (transcriptionConfigBuilder_ != null) { + transcriptionConfigBuilder_.dispose(); + transcriptionConfigBuilder_ = null; + } + smartNotesConfig_ = null; + if (smartNotesConfigBuilder_ != null) { + smartNotesConfigBuilder_.dispose(); + smartNotesConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2beta.ResourceProto + .internal_static_google_apps_meet_v2beta_SpaceConfig_ArtifactConfig_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig getDefaultInstanceForType() { + return com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig build() { + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig buildPartial() { + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig result = + new com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.recordingConfig_ = + recordingConfigBuilder_ == null ? recordingConfig_ : recordingConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.transcriptionConfig_ = + transcriptionConfigBuilder_ == null + ? transcriptionConfig_ + : transcriptionConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.smartNotesConfig_ = + smartNotesConfigBuilder_ == null + ? smartNotesConfig_ + : smartNotesConfigBuilder_.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.apps.meet.v2beta.SpaceConfig.ArtifactConfig) { + return mergeFrom((com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig other) { + if (other == com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.getDefaultInstance()) + return this; + if (other.hasRecordingConfig()) { + mergeRecordingConfig(other.getRecordingConfig()); + } + if (other.hasTranscriptionConfig()) { + mergeTranscriptionConfig(other.getTranscriptionConfig()); + } + if (other.hasSmartNotesConfig()) { + mergeSmartNotesConfig(other.getSmartNotesConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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( + getRecordingConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getTranscriptionConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getSmartNotesConfigFieldBuilder().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.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig + recordingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig, + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig.Builder, + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfigOrBuilder> + recordingConfigBuilder_; + /** + * + * + *
+       * Configuration for recording.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig recording_config = 1; + * + * + * @return Whether the recordingConfig field is set. + */ + public boolean hasRecordingConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * Configuration for recording.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig recording_config = 1; + * + * + * @return The recordingConfig. + */ + public com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig + getRecordingConfig() { + if (recordingConfigBuilder_ == null) { + return recordingConfig_ == null + ? com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig + .getDefaultInstance() + : recordingConfig_; + } else { + return recordingConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Configuration for recording.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig recording_config = 1; + * + */ + public Builder setRecordingConfig( + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig value) { + if (recordingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + recordingConfig_ = value; + } else { + recordingConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Configuration for recording.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig recording_config = 1; + * + */ + public Builder setRecordingConfig( + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig.Builder + builderForValue) { + if (recordingConfigBuilder_ == null) { + recordingConfig_ = builderForValue.build(); + } else { + recordingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Configuration for recording.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig recording_config = 1; + * + */ + public Builder mergeRecordingConfig( + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig value) { + if (recordingConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && recordingConfig_ != null + && recordingConfig_ + != com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig + .getDefaultInstance()) { + getRecordingConfigBuilder().mergeFrom(value); + } else { + recordingConfig_ = value; + } + } else { + recordingConfigBuilder_.mergeFrom(value); + } + if (recordingConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+       * Configuration for recording.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig recording_config = 1; + * + */ + public Builder clearRecordingConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + recordingConfig_ = null; + if (recordingConfigBuilder_ != null) { + recordingConfigBuilder_.dispose(); + recordingConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Configuration for recording.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig recording_config = 1; + * + */ + public com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig.Builder + getRecordingConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getRecordingConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Configuration for recording.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig recording_config = 1; + * + */ + public com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfigOrBuilder + getRecordingConfigOrBuilder() { + if (recordingConfigBuilder_ != null) { + return recordingConfigBuilder_.getMessageOrBuilder(); + } else { + return recordingConfig_ == null + ? com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig + .getDefaultInstance() + : recordingConfig_; + } + } + /** + * + * + *
+       * Configuration for recording.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig recording_config = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig, + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig.Builder, + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfigOrBuilder> + getRecordingConfigFieldBuilder() { + if (recordingConfigBuilder_ == null) { + recordingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig, + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfig.Builder, + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.RecordingConfigOrBuilder>( + getRecordingConfig(), getParentForChildren(), isClean()); + recordingConfig_ = null; + } + return recordingConfigBuilder_; + } + + private com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig + transcriptionConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig, + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig.Builder, + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfigOrBuilder> + transcriptionConfigBuilder_; + /** + * + * + *
+       * Configuration for auto-transcript.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig transcription_config = 2; + * + * + * @return Whether the transcriptionConfig field is set. + */ + public boolean hasTranscriptionConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+       * Configuration for auto-transcript.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig transcription_config = 2; + * + * + * @return The transcriptionConfig. + */ + public com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig + getTranscriptionConfig() { + if (transcriptionConfigBuilder_ == null) { + return transcriptionConfig_ == null + ? com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig + .getDefaultInstance() + : transcriptionConfig_; + } else { + return transcriptionConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Configuration for auto-transcript.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig transcription_config = 2; + * + */ + public Builder setTranscriptionConfig( + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig value) { + if (transcriptionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + transcriptionConfig_ = value; + } else { + transcriptionConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Configuration for auto-transcript.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig transcription_config = 2; + * + */ + public Builder setTranscriptionConfig( + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig.Builder + builderForValue) { + if (transcriptionConfigBuilder_ == null) { + transcriptionConfig_ = builderForValue.build(); + } else { + transcriptionConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Configuration for auto-transcript.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig transcription_config = 2; + * + */ + public Builder mergeTranscriptionConfig( + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig value) { + if (transcriptionConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && transcriptionConfig_ != null + && transcriptionConfig_ + != com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig + .getDefaultInstance()) { + getTranscriptionConfigBuilder().mergeFrom(value); + } else { + transcriptionConfig_ = value; + } + } else { + transcriptionConfigBuilder_.mergeFrom(value); + } + if (transcriptionConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+       * Configuration for auto-transcript.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig transcription_config = 2; + * + */ + public Builder clearTranscriptionConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + transcriptionConfig_ = null; + if (transcriptionConfigBuilder_ != null) { + transcriptionConfigBuilder_.dispose(); + transcriptionConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Configuration for auto-transcript.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig transcription_config = 2; + * + */ + public com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig.Builder + getTranscriptionConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getTranscriptionConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Configuration for auto-transcript.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig transcription_config = 2; + * + */ + public com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfigOrBuilder + getTranscriptionConfigOrBuilder() { + if (transcriptionConfigBuilder_ != null) { + return transcriptionConfigBuilder_.getMessageOrBuilder(); + } else { + return transcriptionConfig_ == null + ? com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig + .getDefaultInstance() + : transcriptionConfig_; + } + } + /** + * + * + *
+       * Configuration for auto-transcript.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig transcription_config = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig, + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig.Builder, + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfigOrBuilder> + getTranscriptionConfigFieldBuilder() { + if (transcriptionConfigBuilder_ == null) { + transcriptionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig, + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.TranscriptionConfig + .Builder, + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig + .TranscriptionConfigOrBuilder>( + getTranscriptionConfig(), getParentForChildren(), isClean()); + transcriptionConfig_ = null; + } + return transcriptionConfigBuilder_; + } + + private com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig + smartNotesConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig, + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig.Builder, + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfigOrBuilder> + smartNotesConfigBuilder_; + /** + * + * + *
+       * Configuration for auto-smart-notes.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig smart_notes_config = 3; + * + * + * @return Whether the smartNotesConfig field is set. + */ + public boolean hasSmartNotesConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+       * Configuration for auto-smart-notes.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig smart_notes_config = 3; + * + * + * @return The smartNotesConfig. + */ + public com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig + getSmartNotesConfig() { + if (smartNotesConfigBuilder_ == null) { + return smartNotesConfig_ == null + ? com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig + .getDefaultInstance() + : smartNotesConfig_; + } else { + return smartNotesConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Configuration for auto-smart-notes.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig smart_notes_config = 3; + * + */ + public Builder setSmartNotesConfig( + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig value) { + if (smartNotesConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + smartNotesConfig_ = value; + } else { + smartNotesConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Configuration for auto-smart-notes.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig smart_notes_config = 3; + * + */ + public Builder setSmartNotesConfig( + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig.Builder + builderForValue) { + if (smartNotesConfigBuilder_ == null) { + smartNotesConfig_ = builderForValue.build(); + } else { + smartNotesConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Configuration for auto-smart-notes.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig smart_notes_config = 3; + * + */ + public Builder mergeSmartNotesConfig( + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig value) { + if (smartNotesConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && smartNotesConfig_ != null + && smartNotesConfig_ + != com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig + .getDefaultInstance()) { + getSmartNotesConfigBuilder().mergeFrom(value); + } else { + smartNotesConfig_ = value; + } + } else { + smartNotesConfigBuilder_.mergeFrom(value); + } + if (smartNotesConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+       * Configuration for auto-smart-notes.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig smart_notes_config = 3; + * + */ + public Builder clearSmartNotesConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + smartNotesConfig_ = null; + if (smartNotesConfigBuilder_ != null) { + smartNotesConfigBuilder_.dispose(); + smartNotesConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Configuration for auto-smart-notes.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig smart_notes_config = 3; + * + */ + public com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig.Builder + getSmartNotesConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getSmartNotesConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Configuration for auto-smart-notes.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig smart_notes_config = 3; + * + */ + public com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfigOrBuilder + getSmartNotesConfigOrBuilder() { + if (smartNotesConfigBuilder_ != null) { + return smartNotesConfigBuilder_.getMessageOrBuilder(); + } else { + return smartNotesConfig_ == null + ? com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig + .getDefaultInstance() + : smartNotesConfig_; + } + } + /** + * + * + *
+       * Configuration for auto-smart-notes.
+       * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig smart_notes_config = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig, + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig.Builder, + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfigOrBuilder> + getSmartNotesConfigFieldBuilder() { + if (smartNotesConfigBuilder_ == null) { + smartNotesConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig, + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfig.Builder, + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.SmartNotesConfigOrBuilder>( + getSmartNotesConfig(), getParentForChildren(), isClean()); + smartNotesConfig_ = null; + } + return smartNotesConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.apps.meet.v2beta.SpaceConfig.ArtifactConfig) + } + + // @@protoc_insertion_point(class_scope:google.apps.meet.v2beta.SpaceConfig.ArtifactConfig) + private static final com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig(); + } + + public static com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArtifactConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int ACCESS_TYPE_FIELD_NUMBER = 1; + private int accessType_ = 0; + /** + * + * + *
+   * Access type of the meeting space that determines who can join without
+   * knocking. Default: The user's default access settings.  Controlled by the
+   * user's admin for enterprise users or RESTRICTED.
+   * 
+ * + * .google.apps.meet.v2beta.SpaceConfig.AccessType access_type = 1; + * + * @return The enum numeric value on the wire for accessType. + */ + @java.lang.Override + public int getAccessTypeValue() { + return accessType_; + } + /** + * + * + *
+   * Access type of the meeting space that determines who can join without
+   * knocking. Default: The user's default access settings.  Controlled by the
+   * user's admin for enterprise users or RESTRICTED.
+   * 
+ * + * .google.apps.meet.v2beta.SpaceConfig.AccessType access_type = 1; + * + * @return The accessType. + */ + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.AccessType getAccessType() { + com.google.apps.meet.v2beta.SpaceConfig.AccessType result = + com.google.apps.meet.v2beta.SpaceConfig.AccessType.forNumber(accessType_); + return result == null + ? com.google.apps.meet.v2beta.SpaceConfig.AccessType.UNRECOGNIZED + : result; + } + + public static final int ENTRY_POINT_ACCESS_FIELD_NUMBER = 2; + private int entryPointAccess_ = 0; + /** + * + * + *
+   * Defines the entry points that can be used to join meetings hosted in this
+   * meeting space.
+   * Default: EntryPointAccess.ALL
+   * 
+ * + * .google.apps.meet.v2beta.SpaceConfig.EntryPointAccess entry_point_access = 2; + * + * @return The enum numeric value on the wire for entryPointAccess. + */ + @java.lang.Override + public int getEntryPointAccessValue() { + return entryPointAccess_; + } + /** + * + * + *
+   * Defines the entry points that can be used to join meetings hosted in this
+   * meeting space.
+   * Default: EntryPointAccess.ALL
+   * 
+ * + * .google.apps.meet.v2beta.SpaceConfig.EntryPointAccess entry_point_access = 2; + * + * @return The entryPointAccess. + */ + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.EntryPointAccess getEntryPointAccess() { + com.google.apps.meet.v2beta.SpaceConfig.EntryPointAccess result = + com.google.apps.meet.v2beta.SpaceConfig.EntryPointAccess.forNumber(entryPointAccess_); + return result == null + ? com.google.apps.meet.v2beta.SpaceConfig.EntryPointAccess.UNRECOGNIZED + : result; + } + + public static final int MODERATION_FIELD_NUMBER = 3; + private int moderation_ = 0; + /** + * + * + *
+   * [Developer Preview](https://developers.google.com/workspace/preview):
+   * The pre-configured moderation mode for the Meeting.
+   * Default: Controlled by the user's policies.
+   * 
+ * + * .google.apps.meet.v2beta.SpaceConfig.Moderation moderation = 3; + * + * @return The enum numeric value on the wire for moderation. + */ + @java.lang.Override + public int getModerationValue() { + return moderation_; + } + /** + * + * + *
+   * [Developer Preview](https://developers.google.com/workspace/preview):
+   * The pre-configured moderation mode for the Meeting.
+   * Default: Controlled by the user's policies.
+   * 
+ * + * .google.apps.meet.v2beta.SpaceConfig.Moderation moderation = 3; + * + * @return The moderation. + */ + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.Moderation getModeration() { + com.google.apps.meet.v2beta.SpaceConfig.Moderation result = + com.google.apps.meet.v2beta.SpaceConfig.Moderation.forNumber(moderation_); + return result == null + ? com.google.apps.meet.v2beta.SpaceConfig.Moderation.UNRECOGNIZED + : result; + } + + public static final int MODERATION_RESTRICTIONS_FIELD_NUMBER = 4; + private com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions moderationRestrictions_; + /** + * + * + *
+   * [Developer Preview](https://developers.google.com/workspace/preview):
+   * When moderation.ON, these restrictions go into effect for the meeting.
+   * When moderation.OFF, will be reset to default ModerationRestrictions.
+   * 
+ * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions moderation_restrictions = 4; + * + * + * @return Whether the moderationRestrictions field is set. + */ + @java.lang.Override + public boolean hasModerationRestrictions() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * [Developer Preview](https://developers.google.com/workspace/preview):
+   * When moderation.ON, these restrictions go into effect for the meeting.
+   * When moderation.OFF, will be reset to default ModerationRestrictions.
+   * 
+ * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions moderation_restrictions = 4; + * + * + * @return The moderationRestrictions. + */ + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions + getModerationRestrictions() { + return moderationRestrictions_ == null + ? com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.getDefaultInstance() + : moderationRestrictions_; + } + /** + * + * + *
+   * [Developer Preview](https://developers.google.com/workspace/preview):
+   * When moderation.ON, these restrictions go into effect for the meeting.
+   * When moderation.OFF, will be reset to default ModerationRestrictions.
+   * 
+ * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions moderation_restrictions = 4; + * + */ + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictionsOrBuilder + getModerationRestrictionsOrBuilder() { + return moderationRestrictions_ == null + ? com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.getDefaultInstance() + : moderationRestrictions_; + } + + public static final int ATTENDANCE_REPORT_GENERATION_TYPE_FIELD_NUMBER = 6; + private int attendanceReportGenerationType_ = 0; + /** + * + * + *
+   * [Developer Preview](https://developers.google.com/workspace/preview):
+   * Whether attendance report is enabled for the meeting space.
+   * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.AttendanceReportGenerationType attendance_report_generation_type = 6; + * + * + * @return The enum numeric value on the wire for attendanceReportGenerationType. + */ + @java.lang.Override + public int getAttendanceReportGenerationTypeValue() { + return attendanceReportGenerationType_; + } + /** + * + * + *
+   * [Developer Preview](https://developers.google.com/workspace/preview):
+   * Whether attendance report is enabled for the meeting space.
+   * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.AttendanceReportGenerationType attendance_report_generation_type = 6; + * + * + * @return The attendanceReportGenerationType. + */ + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.AttendanceReportGenerationType + getAttendanceReportGenerationType() { + com.google.apps.meet.v2beta.SpaceConfig.AttendanceReportGenerationType result = + com.google.apps.meet.v2beta.SpaceConfig.AttendanceReportGenerationType.forNumber( + attendanceReportGenerationType_); + return result == null + ? com.google.apps.meet.v2beta.SpaceConfig.AttendanceReportGenerationType.UNRECOGNIZED + : result; + } + + public static final int ARTIFACT_CONFIG_FIELD_NUMBER = 7; + private com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig artifactConfig_; + /** + * + * + *
+   * [Developer Preview](https://developers.google.com/workspace/preview):
+   * Configuration pertaining to the auto-generated artifacts that the meeting
+   * supports.
+   * 
+ * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig artifact_config = 7; + * + * @return Whether the artifactConfig field is set. + */ + @java.lang.Override + public boolean hasArtifactConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * [Developer Preview](https://developers.google.com/workspace/preview):
+   * Configuration pertaining to the auto-generated artifacts that the meeting
+   * supports.
+   * 
+ * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig artifact_config = 7; + * + * @return The artifactConfig. + */ + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig getArtifactConfig() { + return artifactConfig_ == null + ? com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.getDefaultInstance() + : artifactConfig_; + } + /** + * + * + *
+   * [Developer Preview](https://developers.google.com/workspace/preview):
+   * Configuration pertaining to the auto-generated artifacts that the meeting
+   * supports.
+   * 
+ * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig artifact_config = 7; + */ + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfigOrBuilder + getArtifactConfigOrBuilder() { + return artifactConfig_ == null + ? com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.getDefaultInstance() + : artifactConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (accessType_ + != com.google.apps.meet.v2beta.SpaceConfig.AccessType.ACCESS_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, accessType_); + } + if (entryPointAccess_ + != com.google.apps.meet.v2beta.SpaceConfig.EntryPointAccess.ENTRY_POINT_ACCESS_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, entryPointAccess_); + } + if (moderation_ + != com.google.apps.meet.v2beta.SpaceConfig.Moderation.MODERATION_UNSPECIFIED.getNumber()) { + output.writeEnum(3, moderation_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getModerationRestrictions()); + } + if (attendanceReportGenerationType_ + != com.google.apps.meet.v2beta.SpaceConfig.AttendanceReportGenerationType + .ATTENDANCE_REPORT_GENERATION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, attendanceReportGenerationType_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getArtifactConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (accessType_ + != com.google.apps.meet.v2beta.SpaceConfig.AccessType.ACCESS_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, accessType_); + } + if (entryPointAccess_ + != com.google.apps.meet.v2beta.SpaceConfig.EntryPointAccess.ENTRY_POINT_ACCESS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, entryPointAccess_); + } + if (moderation_ + != com.google.apps.meet.v2beta.SpaceConfig.Moderation.MODERATION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, moderation_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getModerationRestrictions()); + } + if (attendanceReportGenerationType_ + != com.google.apps.meet.v2beta.SpaceConfig.AttendanceReportGenerationType + .ATTENDANCE_REPORT_GENERATION_TYPE_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(6, attendanceReportGenerationType_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getArtifactConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.apps.meet.v2beta.SpaceConfig)) { + return super.equals(obj); + } + com.google.apps.meet.v2beta.SpaceConfig other = (com.google.apps.meet.v2beta.SpaceConfig) obj; + + if (accessType_ != other.accessType_) return false; + if (entryPointAccess_ != other.entryPointAccess_) return false; + if (moderation_ != other.moderation_) return false; + if (hasModerationRestrictions() != other.hasModerationRestrictions()) return false; + if (hasModerationRestrictions()) { + if (!getModerationRestrictions().equals(other.getModerationRestrictions())) return false; + } + if (attendanceReportGenerationType_ != other.attendanceReportGenerationType_) return false; + if (hasArtifactConfig() != other.hasArtifactConfig()) return false; + if (hasArtifactConfig()) { + if (!getArtifactConfig().equals(other.getArtifactConfig())) return false; + } + if (!getUnknownFields().equals(other.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) + ACCESS_TYPE_FIELD_NUMBER; + hash = (53 * hash) + accessType_; + hash = (37 * hash) + ENTRY_POINT_ACCESS_FIELD_NUMBER; + hash = (53 * hash) + entryPointAccess_; + hash = (37 * hash) + MODERATION_FIELD_NUMBER; + hash = (53 * hash) + moderation_; + if (hasModerationRestrictions()) { + hash = (37 * hash) + MODERATION_RESTRICTIONS_FIELD_NUMBER; + hash = (53 * hash) + getModerationRestrictions().hashCode(); + } + hash = (37 * hash) + ATTENDANCE_REPORT_GENERATION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + attendanceReportGenerationType_; + if (hasArtifactConfig()) { + hash = (37 * hash) + ARTIFACT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getArtifactConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.apps.meet.v2beta.SpaceConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2beta.SpaceConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.SpaceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2beta.SpaceConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.SpaceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.apps.meet.v2beta.SpaceConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.SpaceConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2beta.SpaceConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.SpaceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2beta.SpaceConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.apps.meet.v2beta.SpaceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.apps.meet.v2beta.SpaceConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.apps.meet.v2beta.SpaceConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 pertaining to a meeting space.
+   * 
+ * + * Protobuf type {@code google.apps.meet.v2beta.SpaceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.apps.meet.v2beta.SpaceConfig) + com.google.apps.meet.v2beta.SpaceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.apps.meet.v2beta.ResourceProto + .internal_static_google_apps_meet_v2beta_SpaceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.apps.meet.v2beta.ResourceProto + .internal_static_google_apps_meet_v2beta_SpaceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.apps.meet.v2beta.SpaceConfig.class, + com.google.apps.meet.v2beta.SpaceConfig.Builder.class); + } + + // Construct using com.google.apps.meet.v2beta.SpaceConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getModerationRestrictionsFieldBuilder(); + getArtifactConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + accessType_ = 0; + entryPointAccess_ = 0; + moderation_ = 0; + moderationRestrictions_ = null; + if (moderationRestrictionsBuilder_ != null) { + moderationRestrictionsBuilder_.dispose(); + moderationRestrictionsBuilder_ = null; + } + attendanceReportGenerationType_ = 0; + artifactConfig_ = null; + if (artifactConfigBuilder_ != null) { + artifactConfigBuilder_.dispose(); + artifactConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.apps.meet.v2beta.ResourceProto + .internal_static_google_apps_meet_v2beta_SpaceConfig_descriptor; + } + + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig getDefaultInstanceForType() { + return com.google.apps.meet.v2beta.SpaceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig build() { + com.google.apps.meet.v2beta.SpaceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig buildPartial() { + com.google.apps.meet.v2beta.SpaceConfig result = + new com.google.apps.meet.v2beta.SpaceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.apps.meet.v2beta.SpaceConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.accessType_ = accessType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.entryPointAccess_ = entryPointAccess_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.moderation_ = moderation_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.moderationRestrictions_ = + moderationRestrictionsBuilder_ == null + ? moderationRestrictions_ + : moderationRestrictionsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.attendanceReportGenerationType_ = attendanceReportGenerationType_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.artifactConfig_ = + artifactConfigBuilder_ == null ? artifactConfig_ : artifactConfigBuilder_.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.apps.meet.v2beta.SpaceConfig) { + return mergeFrom((com.google.apps.meet.v2beta.SpaceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.apps.meet.v2beta.SpaceConfig other) { + if (other == com.google.apps.meet.v2beta.SpaceConfig.getDefaultInstance()) return this; + if (other.accessType_ != 0) { + setAccessTypeValue(other.getAccessTypeValue()); + } + if (other.entryPointAccess_ != 0) { + setEntryPointAccessValue(other.getEntryPointAccessValue()); + } + if (other.moderation_ != 0) { + setModerationValue(other.getModerationValue()); + } + if (other.hasModerationRestrictions()) { + mergeModerationRestrictions(other.getModerationRestrictions()); + } + if (other.attendanceReportGenerationType_ != 0) { + setAttendanceReportGenerationTypeValue(other.getAttendanceReportGenerationTypeValue()); + } + if (other.hasArtifactConfig()) { + mergeArtifactConfig(other.getArtifactConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + accessType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + entryPointAccess_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + moderation_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage( + getModerationRestrictionsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 48: + { + attendanceReportGenerationType_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 58: + { + input.readMessage(getArtifactConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int accessType_ = 0; + /** + * + * + *
+     * Access type of the meeting space that determines who can join without
+     * knocking. Default: The user's default access settings.  Controlled by the
+     * user's admin for enterprise users or RESTRICTED.
+     * 
+ * + * .google.apps.meet.v2beta.SpaceConfig.AccessType access_type = 1; + * + * @return The enum numeric value on the wire for accessType. + */ + @java.lang.Override + public int getAccessTypeValue() { + return accessType_; + } + /** + * + * + *
+     * Access type of the meeting space that determines who can join without
+     * knocking. Default: The user's default access settings.  Controlled by the
+     * user's admin for enterprise users or RESTRICTED.
+     * 
+ * + * .google.apps.meet.v2beta.SpaceConfig.AccessType access_type = 1; + * + * @param value The enum numeric value on the wire for accessType to set. + * @return This builder for chaining. + */ + public Builder setAccessTypeValue(int value) { + accessType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Access type of the meeting space that determines who can join without
+     * knocking. Default: The user's default access settings.  Controlled by the
+     * user's admin for enterprise users or RESTRICTED.
+     * 
+ * + * .google.apps.meet.v2beta.SpaceConfig.AccessType access_type = 1; + * + * @return The accessType. + */ + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.AccessType getAccessType() { + com.google.apps.meet.v2beta.SpaceConfig.AccessType result = + com.google.apps.meet.v2beta.SpaceConfig.AccessType.forNumber(accessType_); + return result == null + ? com.google.apps.meet.v2beta.SpaceConfig.AccessType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Access type of the meeting space that determines who can join without
+     * knocking. Default: The user's default access settings.  Controlled by the
+     * user's admin for enterprise users or RESTRICTED.
+     * 
+ * + * .google.apps.meet.v2beta.SpaceConfig.AccessType access_type = 1; + * + * @param value The accessType to set. + * @return This builder for chaining. + */ + public Builder setAccessType(com.google.apps.meet.v2beta.SpaceConfig.AccessType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + accessType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Access type of the meeting space that determines who can join without
+     * knocking. Default: The user's default access settings.  Controlled by the
+     * user's admin for enterprise users or RESTRICTED.
+     * 
+ * + * .google.apps.meet.v2beta.SpaceConfig.AccessType access_type = 1; + * + * @return This builder for chaining. + */ + public Builder clearAccessType() { + bitField0_ = (bitField0_ & ~0x00000001); + accessType_ = 0; + onChanged(); + return this; + } + + private int entryPointAccess_ = 0; + /** + * + * + *
+     * Defines the entry points that can be used to join meetings hosted in this
+     * meeting space.
+     * Default: EntryPointAccess.ALL
+     * 
+ * + * .google.apps.meet.v2beta.SpaceConfig.EntryPointAccess entry_point_access = 2; + * + * @return The enum numeric value on the wire for entryPointAccess. + */ + @java.lang.Override + public int getEntryPointAccessValue() { + return entryPointAccess_; + } + /** + * + * + *
+     * Defines the entry points that can be used to join meetings hosted in this
+     * meeting space.
+     * Default: EntryPointAccess.ALL
+     * 
+ * + * .google.apps.meet.v2beta.SpaceConfig.EntryPointAccess entry_point_access = 2; + * + * @param value The enum numeric value on the wire for entryPointAccess to set. + * @return This builder for chaining. + */ + public Builder setEntryPointAccessValue(int value) { + entryPointAccess_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Defines the entry points that can be used to join meetings hosted in this
+     * meeting space.
+     * Default: EntryPointAccess.ALL
+     * 
+ * + * .google.apps.meet.v2beta.SpaceConfig.EntryPointAccess entry_point_access = 2; + * + * @return The entryPointAccess. + */ + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.EntryPointAccess getEntryPointAccess() { + com.google.apps.meet.v2beta.SpaceConfig.EntryPointAccess result = + com.google.apps.meet.v2beta.SpaceConfig.EntryPointAccess.forNumber(entryPointAccess_); + return result == null + ? com.google.apps.meet.v2beta.SpaceConfig.EntryPointAccess.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Defines the entry points that can be used to join meetings hosted in this
+     * meeting space.
+     * Default: EntryPointAccess.ALL
+     * 
+ * + * .google.apps.meet.v2beta.SpaceConfig.EntryPointAccess entry_point_access = 2; + * + * @param value The entryPointAccess to set. + * @return This builder for chaining. + */ + public Builder setEntryPointAccess( + com.google.apps.meet.v2beta.SpaceConfig.EntryPointAccess value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + entryPointAccess_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Defines the entry points that can be used to join meetings hosted in this
+     * meeting space.
+     * Default: EntryPointAccess.ALL
+     * 
+ * + * .google.apps.meet.v2beta.SpaceConfig.EntryPointAccess entry_point_access = 2; + * + * @return This builder for chaining. + */ + public Builder clearEntryPointAccess() { + bitField0_ = (bitField0_ & ~0x00000002); + entryPointAccess_ = 0; + onChanged(); + return this; + } + + private int moderation_ = 0; + /** + * + * + *
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * The pre-configured moderation mode for the Meeting.
+     * Default: Controlled by the user's policies.
+     * 
+ * + * .google.apps.meet.v2beta.SpaceConfig.Moderation moderation = 3; + * + * @return The enum numeric value on the wire for moderation. + */ + @java.lang.Override + public int getModerationValue() { + return moderation_; + } + /** + * + * + *
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * The pre-configured moderation mode for the Meeting.
+     * Default: Controlled by the user's policies.
+     * 
+ * + * .google.apps.meet.v2beta.SpaceConfig.Moderation moderation = 3; + * + * @param value The enum numeric value on the wire for moderation to set. + * @return This builder for chaining. + */ + public Builder setModerationValue(int value) { + moderation_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * The pre-configured moderation mode for the Meeting.
+     * Default: Controlled by the user's policies.
+     * 
+ * + * .google.apps.meet.v2beta.SpaceConfig.Moderation moderation = 3; + * + * @return The moderation. + */ + @java.lang.Override + public com.google.apps.meet.v2beta.SpaceConfig.Moderation getModeration() { + com.google.apps.meet.v2beta.SpaceConfig.Moderation result = + com.google.apps.meet.v2beta.SpaceConfig.Moderation.forNumber(moderation_); + return result == null + ? com.google.apps.meet.v2beta.SpaceConfig.Moderation.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * The pre-configured moderation mode for the Meeting.
+     * Default: Controlled by the user's policies.
+     * 
+ * + * .google.apps.meet.v2beta.SpaceConfig.Moderation moderation = 3; + * + * @param value The moderation to set. + * @return This builder for chaining. + */ + public Builder setModeration(com.google.apps.meet.v2beta.SpaceConfig.Moderation value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + moderation_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * The pre-configured moderation mode for the Meeting.
+     * Default: Controlled by the user's policies.
+     * 
+ * + * .google.apps.meet.v2beta.SpaceConfig.Moderation moderation = 3; + * + * @return This builder for chaining. + */ + public Builder clearModeration() { + bitField0_ = (bitField0_ & ~0x00000004); + moderation_ = 0; + onChanged(); + return this; + } + + private com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions moderationRestrictions_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions, + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.Builder, + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictionsOrBuilder> + moderationRestrictionsBuilder_; + /** + * + * + *
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * When moderation.ON, these restrictions go into effect for the meeting.
+     * When moderation.OFF, will be reset to default ModerationRestrictions.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions moderation_restrictions = 4; + * + * + * @return Whether the moderationRestrictions field is set. + */ + public boolean hasModerationRestrictions() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * When moderation.ON, these restrictions go into effect for the meeting.
+     * When moderation.OFF, will be reset to default ModerationRestrictions.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions moderation_restrictions = 4; + * + * + * @return The moderationRestrictions. + */ + public com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions + getModerationRestrictions() { + if (moderationRestrictionsBuilder_ == null) { + return moderationRestrictions_ == null + ? com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.getDefaultInstance() + : moderationRestrictions_; + } else { + return moderationRestrictionsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * When moderation.ON, these restrictions go into effect for the meeting.
+     * When moderation.OFF, will be reset to default ModerationRestrictions.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions moderation_restrictions = 4; + * + */ + public Builder setModerationRestrictions( + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions value) { + if (moderationRestrictionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + moderationRestrictions_ = value; + } else { + moderationRestrictionsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * When moderation.ON, these restrictions go into effect for the meeting.
+     * When moderation.OFF, will be reset to default ModerationRestrictions.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions moderation_restrictions = 4; + * + */ + public Builder setModerationRestrictions( + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.Builder builderForValue) { + if (moderationRestrictionsBuilder_ == null) { + moderationRestrictions_ = builderForValue.build(); } else { - super.mergeFrom(other); - return this; + moderationRestrictionsBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000008; + onChanged(); + return this; } - - public Builder mergeFrom(com.google.apps.meet.v2beta.SpaceConfig other) { - if (other == com.google.apps.meet.v2beta.SpaceConfig.getDefaultInstance()) return this; - if (other.accessType_ != 0) { - setAccessTypeValue(other.getAccessTypeValue()); + /** + * + * + *
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * When moderation.ON, these restrictions go into effect for the meeting.
+     * When moderation.OFF, will be reset to default ModerationRestrictions.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions moderation_restrictions = 4; + * + */ + public Builder mergeModerationRestrictions( + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions value) { + if (moderationRestrictionsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && moderationRestrictions_ != null + && moderationRestrictions_ + != com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions + .getDefaultInstance()) { + getModerationRestrictionsBuilder().mergeFrom(value); + } else { + moderationRestrictions_ = value; + } + } else { + moderationRestrictionsBuilder_.mergeFrom(value); } - if (other.entryPointAccess_ != 0) { - setEntryPointAccessValue(other.getEntryPointAccessValue()); + if (moderationRestrictions_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * When moderation.ON, these restrictions go into effect for the meeting.
+     * When moderation.OFF, will be reset to default ModerationRestrictions.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions moderation_restrictions = 4; + * + */ + public Builder clearModerationRestrictions() { + bitField0_ = (bitField0_ & ~0x00000008); + moderationRestrictions_ = null; + if (moderationRestrictionsBuilder_ != null) { + moderationRestrictionsBuilder_.dispose(); + moderationRestrictionsBuilder_ = null; } - this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } - - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * When moderation.ON, these restrictions go into effect for the meeting.
+     * When moderation.OFF, will be reset to default ModerationRestrictions.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions moderation_restrictions = 4; + * + */ + public com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.Builder + getModerationRestrictionsBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getModerationRestrictionsFieldBuilder().getBuilder(); } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + /** + * + * + *
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * When moderation.ON, these restrictions go into effect for the meeting.
+     * When moderation.OFF, will be reset to default ModerationRestrictions.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions moderation_restrictions = 4; + * + */ + public com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictionsOrBuilder + getModerationRestrictionsOrBuilder() { + if (moderationRestrictionsBuilder_ != null) { + return moderationRestrictionsBuilder_.getMessageOrBuilder(); + } else { + return moderationRestrictions_ == null + ? com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.getDefaultInstance() + : moderationRestrictions_; } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - accessType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - entryPointAccess_ = 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; + } + /** + * + * + *
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * When moderation.ON, these restrictions go into effect for the meeting.
+     * When moderation.OFF, will be reset to default ModerationRestrictions.
+     * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions moderation_restrictions = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions, + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.Builder, + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictionsOrBuilder> + getModerationRestrictionsFieldBuilder() { + if (moderationRestrictionsBuilder_ == null) { + moderationRestrictionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions, + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions.Builder, + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictionsOrBuilder>( + getModerationRestrictions(), getParentForChildren(), isClean()); + moderationRestrictions_ = null; + } + return moderationRestrictionsBuilder_; } - private int bitField0_; - - private int accessType_ = 0; + private int attendanceReportGenerationType_ = 0; /** * * *
-     * Access type of the meeting space that determines who can join without
-     * knocking. Default: The user's default access settings.  Controlled by the
-     * user's admin for enterprise users or RESTRICTED.
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * Whether attendance report is enabled for the meeting space.
      * 
* - * .google.apps.meet.v2beta.SpaceConfig.AccessType access_type = 1; + * + * .google.apps.meet.v2beta.SpaceConfig.AttendanceReportGenerationType attendance_report_generation_type = 6; + * * - * @return The enum numeric value on the wire for accessType. + * @return The enum numeric value on the wire for attendanceReportGenerationType. */ @java.lang.Override - public int getAccessTypeValue() { - return accessType_; + public int getAttendanceReportGenerationTypeValue() { + return attendanceReportGenerationType_; } /** * * *
-     * Access type of the meeting space that determines who can join without
-     * knocking. Default: The user's default access settings.  Controlled by the
-     * user's admin for enterprise users or RESTRICTED.
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * Whether attendance report is enabled for the meeting space.
      * 
* - * .google.apps.meet.v2beta.SpaceConfig.AccessType access_type = 1; + * + * .google.apps.meet.v2beta.SpaceConfig.AttendanceReportGenerationType attendance_report_generation_type = 6; + * * - * @param value The enum numeric value on the wire for accessType to set. + * @param value The enum numeric value on the wire for attendanceReportGenerationType to set. * @return This builder for chaining. */ - public Builder setAccessTypeValue(int value) { - accessType_ = value; - bitField0_ |= 0x00000001; + public Builder setAttendanceReportGenerationTypeValue(int value) { + attendanceReportGenerationType_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -905,43 +7456,48 @@ public Builder setAccessTypeValue(int value) { * * *
-     * Access type of the meeting space that determines who can join without
-     * knocking. Default: The user's default access settings.  Controlled by the
-     * user's admin for enterprise users or RESTRICTED.
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * Whether attendance report is enabled for the meeting space.
      * 
* - * .google.apps.meet.v2beta.SpaceConfig.AccessType access_type = 1; + * + * .google.apps.meet.v2beta.SpaceConfig.AttendanceReportGenerationType attendance_report_generation_type = 6; + * * - * @return The accessType. + * @return The attendanceReportGenerationType. */ @java.lang.Override - public com.google.apps.meet.v2beta.SpaceConfig.AccessType getAccessType() { - com.google.apps.meet.v2beta.SpaceConfig.AccessType result = - com.google.apps.meet.v2beta.SpaceConfig.AccessType.forNumber(accessType_); + public com.google.apps.meet.v2beta.SpaceConfig.AttendanceReportGenerationType + getAttendanceReportGenerationType() { + com.google.apps.meet.v2beta.SpaceConfig.AttendanceReportGenerationType result = + com.google.apps.meet.v2beta.SpaceConfig.AttendanceReportGenerationType.forNumber( + attendanceReportGenerationType_); return result == null - ? com.google.apps.meet.v2beta.SpaceConfig.AccessType.UNRECOGNIZED + ? com.google.apps.meet.v2beta.SpaceConfig.AttendanceReportGenerationType.UNRECOGNIZED : result; } /** * * *
-     * Access type of the meeting space that determines who can join without
-     * knocking. Default: The user's default access settings.  Controlled by the
-     * user's admin for enterprise users or RESTRICTED.
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * Whether attendance report is enabled for the meeting space.
      * 
* - * .google.apps.meet.v2beta.SpaceConfig.AccessType access_type = 1; + * + * .google.apps.meet.v2beta.SpaceConfig.AttendanceReportGenerationType attendance_report_generation_type = 6; + * * - * @param value The accessType to set. + * @param value The attendanceReportGenerationType to set. * @return This builder for chaining. */ - public Builder setAccessType(com.google.apps.meet.v2beta.SpaceConfig.AccessType value) { + public Builder setAttendanceReportGenerationType( + com.google.apps.meet.v2beta.SpaceConfig.AttendanceReportGenerationType value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000001; - accessType_ = value.getNumber(); + bitField0_ |= 0x00000010; + attendanceReportGenerationType_ = value.getNumber(); onChanged(); return this; } @@ -949,57 +7505,88 @@ public Builder setAccessType(com.google.apps.meet.v2beta.SpaceConfig.AccessType * * *
-     * Access type of the meeting space that determines who can join without
-     * knocking. Default: The user's default access settings.  Controlled by the
-     * user's admin for enterprise users or RESTRICTED.
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * Whether attendance report is enabled for the meeting space.
      * 
* - * .google.apps.meet.v2beta.SpaceConfig.AccessType access_type = 1; + * + * .google.apps.meet.v2beta.SpaceConfig.AttendanceReportGenerationType attendance_report_generation_type = 6; + * * * @return This builder for chaining. */ - public Builder clearAccessType() { - bitField0_ = (bitField0_ & ~0x00000001); - accessType_ = 0; + public Builder clearAttendanceReportGenerationType() { + bitField0_ = (bitField0_ & ~0x00000010); + attendanceReportGenerationType_ = 0; onChanged(); return this; } - private int entryPointAccess_ = 0; + private com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig artifactConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig, + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.Builder, + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfigOrBuilder> + artifactConfigBuilder_; /** * * *
-     * Defines the entry points that can be used to join meetings hosted in this
-     * meeting space.
-     * Default: EntryPointAccess.ALL
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * Configuration pertaining to the auto-generated artifacts that the meeting
+     * supports.
      * 
* - * .google.apps.meet.v2beta.SpaceConfig.EntryPointAccess entry_point_access = 2; + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig artifact_config = 7; * - * @return The enum numeric value on the wire for entryPointAccess. + * @return Whether the artifactConfig field is set. */ - @java.lang.Override - public int getEntryPointAccessValue() { - return entryPointAccess_; + public boolean hasArtifactConfig() { + return ((bitField0_ & 0x00000020) != 0); } /** * * *
-     * Defines the entry points that can be used to join meetings hosted in this
-     * meeting space.
-     * Default: EntryPointAccess.ALL
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * Configuration pertaining to the auto-generated artifacts that the meeting
+     * supports.
      * 
* - * .google.apps.meet.v2beta.SpaceConfig.EntryPointAccess entry_point_access = 2; + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig artifact_config = 7; * - * @param value The enum numeric value on the wire for entryPointAccess to set. - * @return This builder for chaining. + * @return The artifactConfig. */ - public Builder setEntryPointAccessValue(int value) { - entryPointAccess_ = value; - bitField0_ |= 0x00000002; + public com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig getArtifactConfig() { + if (artifactConfigBuilder_ == null) { + return artifactConfig_ == null + ? com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.getDefaultInstance() + : artifactConfig_; + } else { + return artifactConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * Configuration pertaining to the auto-generated artifacts that the meeting
+     * supports.
+     * 
+ * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig artifact_config = 7; + */ + public Builder setArtifactConfig(com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig value) { + if (artifactConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + artifactConfig_ = value; + } else { + artifactConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1007,44 +7594,73 @@ public Builder setEntryPointAccessValue(int value) { * * *
-     * Defines the entry points that can be used to join meetings hosted in this
-     * meeting space.
-     * Default: EntryPointAccess.ALL
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * Configuration pertaining to the auto-generated artifacts that the meeting
+     * supports.
      * 
* - * .google.apps.meet.v2beta.SpaceConfig.EntryPointAccess entry_point_access = 2; - * - * @return The entryPointAccess. + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig artifact_config = 7; */ - @java.lang.Override - public com.google.apps.meet.v2beta.SpaceConfig.EntryPointAccess getEntryPointAccess() { - com.google.apps.meet.v2beta.SpaceConfig.EntryPointAccess result = - com.google.apps.meet.v2beta.SpaceConfig.EntryPointAccess.forNumber(entryPointAccess_); - return result == null - ? com.google.apps.meet.v2beta.SpaceConfig.EntryPointAccess.UNRECOGNIZED - : result; + public Builder setArtifactConfig( + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.Builder builderForValue) { + if (artifactConfigBuilder_ == null) { + artifactConfig_ = builderForValue.build(); + } else { + artifactConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; } /** * * *
-     * Defines the entry points that can be used to join meetings hosted in this
-     * meeting space.
-     * Default: EntryPointAccess.ALL
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * Configuration pertaining to the auto-generated artifacts that the meeting
+     * supports.
      * 
* - * .google.apps.meet.v2beta.SpaceConfig.EntryPointAccess entry_point_access = 2; + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig artifact_config = 7; + */ + public Builder mergeArtifactConfig( + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig value) { + if (artifactConfigBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && artifactConfig_ != null + && artifactConfig_ + != com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.getDefaultInstance()) { + getArtifactConfigBuilder().mergeFrom(value); + } else { + artifactConfig_ = value; + } + } else { + artifactConfigBuilder_.mergeFrom(value); + } + if (artifactConfig_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** * - * @param value The entryPointAccess to set. - * @return This builder for chaining. + * + *
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * Configuration pertaining to the auto-generated artifacts that the meeting
+     * supports.
+     * 
+ * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig artifact_config = 7; */ - public Builder setEntryPointAccess( - com.google.apps.meet.v2beta.SpaceConfig.EntryPointAccess value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearArtifactConfig() { + bitField0_ = (bitField0_ & ~0x00000020); + artifactConfig_ = null; + if (artifactConfigBuilder_ != null) { + artifactConfigBuilder_.dispose(); + artifactConfigBuilder_ = null; } - bitField0_ |= 0x00000002; - entryPointAccess_ = value.getNumber(); onChanged(); return this; } @@ -1052,20 +7668,66 @@ public Builder setEntryPointAccess( * * *
-     * Defines the entry points that can be used to join meetings hosted in this
-     * meeting space.
-     * Default: EntryPointAccess.ALL
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * Configuration pertaining to the auto-generated artifacts that the meeting
+     * supports.
      * 
* - * .google.apps.meet.v2beta.SpaceConfig.EntryPointAccess entry_point_access = 2; - * - * @return This builder for chaining. + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig artifact_config = 7; */ - public Builder clearEntryPointAccess() { - bitField0_ = (bitField0_ & ~0x00000002); - entryPointAccess_ = 0; + public com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.Builder + getArtifactConfigBuilder() { + bitField0_ |= 0x00000020; onChanged(); - return this; + return getArtifactConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * Configuration pertaining to the auto-generated artifacts that the meeting
+     * supports.
+     * 
+ * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig artifact_config = 7; + */ + public com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfigOrBuilder + getArtifactConfigOrBuilder() { + if (artifactConfigBuilder_ != null) { + return artifactConfigBuilder_.getMessageOrBuilder(); + } else { + return artifactConfig_ == null + ? com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.getDefaultInstance() + : artifactConfig_; + } + } + /** + * + * + *
+     * [Developer Preview](https://developers.google.com/workspace/preview):
+     * Configuration pertaining to the auto-generated artifacts that the meeting
+     * supports.
+     * 
+ * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig artifact_config = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig, + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.Builder, + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfigOrBuilder> + getArtifactConfigFieldBuilder() { + if (artifactConfigBuilder_ == null) { + artifactConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig, + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig.Builder, + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfigOrBuilder>( + getArtifactConfig(), getParentForChildren(), isClean()); + artifactConfig_ = null; + } + return artifactConfigBuilder_; } @java.lang.Override diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SpaceConfigOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SpaceConfigOrBuilder.java index 928919f63483..361ceb49d0e6 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SpaceConfigOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SpaceConfigOrBuilder.java @@ -81,4 +81,151 @@ public interface SpaceConfigOrBuilder * @return The entryPointAccess. */ com.google.apps.meet.v2beta.SpaceConfig.EntryPointAccess getEntryPointAccess(); + + /** + * + * + *
+   * [Developer Preview](https://developers.google.com/workspace/preview):
+   * The pre-configured moderation mode for the Meeting.
+   * Default: Controlled by the user's policies.
+   * 
+ * + * .google.apps.meet.v2beta.SpaceConfig.Moderation moderation = 3; + * + * @return The enum numeric value on the wire for moderation. + */ + int getModerationValue(); + /** + * + * + *
+   * [Developer Preview](https://developers.google.com/workspace/preview):
+   * The pre-configured moderation mode for the Meeting.
+   * Default: Controlled by the user's policies.
+   * 
+ * + * .google.apps.meet.v2beta.SpaceConfig.Moderation moderation = 3; + * + * @return The moderation. + */ + com.google.apps.meet.v2beta.SpaceConfig.Moderation getModeration(); + + /** + * + * + *
+   * [Developer Preview](https://developers.google.com/workspace/preview):
+   * When moderation.ON, these restrictions go into effect for the meeting.
+   * When moderation.OFF, will be reset to default ModerationRestrictions.
+   * 
+ * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions moderation_restrictions = 4; + * + * + * @return Whether the moderationRestrictions field is set. + */ + boolean hasModerationRestrictions(); + /** + * + * + *
+   * [Developer Preview](https://developers.google.com/workspace/preview):
+   * When moderation.ON, these restrictions go into effect for the meeting.
+   * When moderation.OFF, will be reset to default ModerationRestrictions.
+   * 
+ * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions moderation_restrictions = 4; + * + * + * @return The moderationRestrictions. + */ + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions getModerationRestrictions(); + /** + * + * + *
+   * [Developer Preview](https://developers.google.com/workspace/preview):
+   * When moderation.ON, these restrictions go into effect for the meeting.
+   * When moderation.OFF, will be reset to default ModerationRestrictions.
+   * 
+ * + * .google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions moderation_restrictions = 4; + * + */ + com.google.apps.meet.v2beta.SpaceConfig.ModerationRestrictionsOrBuilder + getModerationRestrictionsOrBuilder(); + + /** + * + * + *
+   * [Developer Preview](https://developers.google.com/workspace/preview):
+   * Whether attendance report is enabled for the meeting space.
+   * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.AttendanceReportGenerationType attendance_report_generation_type = 6; + * + * + * @return The enum numeric value on the wire for attendanceReportGenerationType. + */ + int getAttendanceReportGenerationTypeValue(); + /** + * + * + *
+   * [Developer Preview](https://developers.google.com/workspace/preview):
+   * Whether attendance report is enabled for the meeting space.
+   * 
+ * + * + * .google.apps.meet.v2beta.SpaceConfig.AttendanceReportGenerationType attendance_report_generation_type = 6; + * + * + * @return The attendanceReportGenerationType. + */ + com.google.apps.meet.v2beta.SpaceConfig.AttendanceReportGenerationType + getAttendanceReportGenerationType(); + + /** + * + * + *
+   * [Developer Preview](https://developers.google.com/workspace/preview):
+   * Configuration pertaining to the auto-generated artifacts that the meeting
+   * supports.
+   * 
+ * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig artifact_config = 7; + * + * @return Whether the artifactConfig field is set. + */ + boolean hasArtifactConfig(); + /** + * + * + *
+   * [Developer Preview](https://developers.google.com/workspace/preview):
+   * Configuration pertaining to the auto-generated artifacts that the meeting
+   * supports.
+   * 
+ * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig artifact_config = 7; + * + * @return The artifactConfig. + */ + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfig getArtifactConfig(); + /** + * + * + *
+   * [Developer Preview](https://developers.google.com/workspace/preview):
+   * Configuration pertaining to the auto-generated artifacts that the meeting
+   * supports.
+   * 
+ * + * .google.apps.meet.v2beta.SpaceConfig.ArtifactConfig artifact_config = 7; + */ + com.google.apps.meet.v2beta.SpaceConfig.ArtifactConfigOrBuilder getArtifactConfigOrBuilder(); } diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SpaceOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SpaceOrBuilder.java index 3879c6e93804..01d1b6f64a6b 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SpaceOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/SpaceOrBuilder.java @@ -29,7 +29,14 @@ public interface SpaceOrBuilder * *
    * Immutable. Resource name of the space.
-   * Format: `spaces/{space}`
+   *
+   * Format: `spaces/{space}`.
+   *
+   * `{space}` is the resource identifier for the space. It's a unique,
+   * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+   *
+   * For more information, see [How Meet identifies a meeting
+   * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -42,7 +49,14 @@ public interface SpaceOrBuilder * *
    * Immutable. Resource name of the space.
-   * Format: `spaces/{space}`
+   *
+   * Format: `spaces/{space}`.
+   *
+   * `{space}` is the resource identifier for the space. It's a unique,
+   * server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`.
+   *
+   * For more information, see [How Meet identifies a meeting
+   * space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space).
    * 
* * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -55,7 +69,8 @@ public interface SpaceOrBuilder * * *
-   * Output only. URI used to join meeting, such as
+   * Output only. URI used to join meetings consisting of
+   * `https://meet.google.com/` followed by the `meeting_code`. For example,
    * `https://meet.google.com/abc-mnop-xyz`.
    * 
* @@ -68,7 +83,8 @@ public interface SpaceOrBuilder * * *
-   * Output only. URI used to join meeting, such as
+   * Output only. URI used to join meetings consisting of
+   * `https://meet.google.com/` followed by the `meeting_code`. For example,
    * `https://meet.google.com/abc-mnop-xyz`.
    * 
* @@ -82,9 +98,13 @@ public interface SpaceOrBuilder * * *
-   * Output only. Type friendly code to join the meeting. Format:
-   * `[a-z]+-[a-z]+-[a-z]+` such as `abc-mnop-xyz`. The maximum length is 128
-   * characters. Can ONLY be used as alias of the space ID to get the space.
+   * Output only. Type friendly unique string used to join the meeting.
+   *
+   * Format: `[a-z]+-[a-z]+-[a-z]+`. For example, `abc-mnop-xyz`.
+   *
+   * The maximum length is 128 characters.
+   *
+   * Can only be used as an alias of the space name to get the space.
    * 
* * string meeting_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -96,9 +116,13 @@ public interface SpaceOrBuilder * * *
-   * Output only. Type friendly code to join the meeting. Format:
-   * `[a-z]+-[a-z]+-[a-z]+` such as `abc-mnop-xyz`. The maximum length is 128
-   * characters. Can ONLY be used as alias of the space ID to get the space.
+   * Output only. Type friendly unique string used to join the meeting.
+   *
+   * Format: `[a-z]+-[a-z]+-[a-z]+`. For example, `abc-mnop-xyz`.
+   *
+   * The maximum length is 128 characters.
+   *
+   * Can only be used as an alias of the space name to get the space.
    * 
* * string meeting_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -146,7 +170,7 @@ public interface SpaceOrBuilder * * *
-   * Active conference if it exists.
+   * Active conference, if it exists.
    * 
* * .google.apps.meet.v2beta.ActiveConference active_conference = 6; @@ -158,7 +182,7 @@ public interface SpaceOrBuilder * * *
-   * Active conference if it exists.
+   * Active conference, if it exists.
    * 
* * .google.apps.meet.v2beta.ActiveConference active_conference = 6; @@ -170,7 +194,7 @@ public interface SpaceOrBuilder * * *
-   * Active conference if it exists.
+   * Active conference, if it exists.
    * 
* * .google.apps.meet.v2beta.ActiveConference active_conference = 6; diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/Transcript.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/Transcript.java index d60dfae5b52d..8c02d874b2c0 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/Transcript.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/Transcript.java @@ -23,7 +23,6 @@ * * *
- * [Developer Preview](https://developers.google.com/workspace/preview).
  * Metadata for a transcript generated from a conference. It refers to the ASR
  * (Automatic Speech Recognition) result of user's speech during the conference.
  * 
@@ -768,7 +767,6 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * [Developer Preview](https://developers.google.com/workspace/preview).
    * Metadata for a transcript generated from a conference. It refers to the ASR
    * (Automatic Speech Recognition) result of user's speech during the conference.
    * 
diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/TranscriptEntry.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/TranscriptEntry.java index 10e6e21ad31e..e9ddaea11aeb 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/TranscriptEntry.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/TranscriptEntry.java @@ -23,7 +23,6 @@ * * *
- * [Developer Preview](https://developers.google.com/workspace/preview).
  * Single entry for one user’s speech during a transcript session.
  * 
* @@ -129,7 +128,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * Output only. Refer to the participant who speaks.
+   * Output only. Refers to the participant who speaks.
    * 
* * @@ -154,7 +153,7 @@ public java.lang.String getParticipant() { * * *
-   * Output only. Refer to the participant who speaks.
+   * Output only. Refers to the participant who speaks.
    * 
* * @@ -598,7 +597,6 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * [Developer Preview](https://developers.google.com/workspace/preview).
    * Single entry for one user’s speech during a transcript session.
    * 
* @@ -986,7 +984,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. Refer to the participant who speaks.
+     * Output only. Refers to the participant who speaks.
      * 
* * @@ -1010,7 +1008,7 @@ public java.lang.String getParticipant() { * * *
-     * Output only. Refer to the participant who speaks.
+     * Output only. Refers to the participant who speaks.
      * 
* * @@ -1034,7 +1032,7 @@ public com.google.protobuf.ByteString getParticipantBytes() { * * *
-     * Output only. Refer to the participant who speaks.
+     * Output only. Refers to the participant who speaks.
      * 
* * @@ -1057,7 +1055,7 @@ public Builder setParticipant(java.lang.String value) { * * *
-     * Output only. Refer to the participant who speaks.
+     * Output only. Refers to the participant who speaks.
      * 
* * @@ -1076,7 +1074,7 @@ public Builder clearParticipant() { * * *
-     * Output only. Refer to the participant who speaks.
+     * Output only. Refers to the participant who speaks.
      * 
* * diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/TranscriptEntryOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/TranscriptEntryOrBuilder.java index c7400490049d..b41d79a7e703 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/TranscriptEntryOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/TranscriptEntryOrBuilder.java @@ -55,7 +55,7 @@ public interface TranscriptEntryOrBuilder * * *
-   * Output only. Refer to the participant who speaks.
+   * Output only. Refers to the participant who speaks.
    * 
* * @@ -69,7 +69,7 @@ public interface TranscriptEntryOrBuilder * * *
-   * Output only. Refer to the participant who speaks.
+   * Output only. Refers to the participant who speaks.
    * 
* * diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/UpdateSpaceRequest.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/UpdateSpaceRequest.java index 42774eeb932c..ae6570481b8e 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/UpdateSpaceRequest.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/UpdateSpaceRequest.java @@ -118,9 +118,11 @@ public com.google.apps.meet.v2beta.SpaceOrBuilder getSpaceOrBuilder() { * *
    * Optional. Field mask used to specify the fields to be updated in the space.
-   * If update_mask isn't provided, it defaults to '*' and updates all
-   * fields provided in the request, including deleting fields not set in the
+   * If update_mask isn't provided(not set, set with empty paths, or only has ""
+   * as paths), it defaults to update all fields provided with values in the
    * request.
+   * Using "*" as update_mask will update all fields, including deleting fields
+   * not set in the request.
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -137,9 +139,11 @@ public boolean hasUpdateMask() { * *
    * Optional. Field mask used to specify the fields to be updated in the space.
-   * If update_mask isn't provided, it defaults to '*' and updates all
-   * fields provided in the request, including deleting fields not set in the
+   * If update_mask isn't provided(not set, set with empty paths, or only has ""
+   * as paths), it defaults to update all fields provided with values in the
    * request.
+   * Using "*" as update_mask will update all fields, including deleting fields
+   * not set in the request.
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -156,9 +160,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { * *
    * Optional. Field mask used to specify the fields to be updated in the space.
-   * If update_mask isn't provided, it defaults to '*' and updates all
-   * fields provided in the request, including deleting fields not set in the
+   * If update_mask isn't provided(not set, set with empty paths, or only has ""
+   * as paths), it defaults to update all fields provided with values in the
    * request.
+   * Using "*" as update_mask will update all fields, including deleting fields
+   * not set in the request.
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -763,9 +769,11 @@ public com.google.apps.meet.v2beta.SpaceOrBuilder getSpaceOrBuilder() { * *
      * Optional. Field mask used to specify the fields to be updated in the space.
-     * If update_mask isn't provided, it defaults to '*' and updates all
-     * fields provided in the request, including deleting fields not set in the
+     * If update_mask isn't provided(not set, set with empty paths, or only has ""
+     * as paths), it defaults to update all fields provided with values in the
      * request.
+     * Using "*" as update_mask will update all fields, including deleting fields
+     * not set in the request.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -781,9 +789,11 @@ public boolean hasUpdateMask() { * *
      * Optional. Field mask used to specify the fields to be updated in the space.
-     * If update_mask isn't provided, it defaults to '*' and updates all
-     * fields provided in the request, including deleting fields not set in the
+     * If update_mask isn't provided(not set, set with empty paths, or only has ""
+     * as paths), it defaults to update all fields provided with values in the
      * request.
+     * Using "*" as update_mask will update all fields, including deleting fields
+     * not set in the request.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -805,9 +815,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { * *
      * Optional. Field mask used to specify the fields to be updated in the space.
-     * If update_mask isn't provided, it defaults to '*' and updates all
-     * fields provided in the request, including deleting fields not set in the
+     * If update_mask isn't provided(not set, set with empty paths, or only has ""
+     * as paths), it defaults to update all fields provided with values in the
      * request.
+     * Using "*" as update_mask will update all fields, including deleting fields
+     * not set in the request.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -831,9 +843,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * *
      * Optional. Field mask used to specify the fields to be updated in the space.
-     * If update_mask isn't provided, it defaults to '*' and updates all
-     * fields provided in the request, including deleting fields not set in the
+     * If update_mask isn't provided(not set, set with empty paths, or only has ""
+     * as paths), it defaults to update all fields provided with values in the
      * request.
+     * Using "*" as update_mask will update all fields, including deleting fields
+     * not set in the request.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -854,9 +868,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * *
      * Optional. Field mask used to specify the fields to be updated in the space.
-     * If update_mask isn't provided, it defaults to '*' and updates all
-     * fields provided in the request, including deleting fields not set in the
+     * If update_mask isn't provided(not set, set with empty paths, or only has ""
+     * as paths), it defaults to update all fields provided with values in the
      * request.
+     * Using "*" as update_mask will update all fields, including deleting fields
+     * not set in the request.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -885,9 +901,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * *
      * Optional. Field mask used to specify the fields to be updated in the space.
-     * If update_mask isn't provided, it defaults to '*' and updates all
-     * fields provided in the request, including deleting fields not set in the
+     * If update_mask isn't provided(not set, set with empty paths, or only has ""
+     * as paths), it defaults to update all fields provided with values in the
      * request.
+     * Using "*" as update_mask will update all fields, including deleting fields
+     * not set in the request.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -908,9 +926,11 @@ public Builder clearUpdateMask() { * *
      * Optional. Field mask used to specify the fields to be updated in the space.
-     * If update_mask isn't provided, it defaults to '*' and updates all
-     * fields provided in the request, including deleting fields not set in the
+     * If update_mask isn't provided(not set, set with empty paths, or only has ""
+     * as paths), it defaults to update all fields provided with values in the
      * request.
+     * Using "*" as update_mask will update all fields, including deleting fields
+     * not set in the request.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -926,9 +946,11 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * *
      * Optional. Field mask used to specify the fields to be updated in the space.
-     * If update_mask isn't provided, it defaults to '*' and updates all
-     * fields provided in the request, including deleting fields not set in the
+     * If update_mask isn't provided(not set, set with empty paths, or only has ""
+     * as paths), it defaults to update all fields provided with values in the
      * request.
+     * Using "*" as update_mask will update all fields, including deleting fields
+     * not set in the request.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -948,9 +970,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * *
      * Optional. Field mask used to specify the fields to be updated in the space.
-     * If update_mask isn't provided, it defaults to '*' and updates all
-     * fields provided in the request, including deleting fields not set in the
+     * If update_mask isn't provided(not set, set with empty paths, or only has ""
+     * as paths), it defaults to update all fields provided with values in the
      * request.
+     * Using "*" as update_mask will update all fields, including deleting fields
+     * not set in the request.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/UpdateSpaceRequestOrBuilder.java b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/UpdateSpaceRequestOrBuilder.java index c7a4b4cd760b..69f7c6e04f1e 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/UpdateSpaceRequestOrBuilder.java +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/java/com/google/apps/meet/v2beta/UpdateSpaceRequestOrBuilder.java @@ -67,9 +67,11 @@ public interface UpdateSpaceRequestOrBuilder * *
    * Optional. Field mask used to specify the fields to be updated in the space.
-   * If update_mask isn't provided, it defaults to '*' and updates all
-   * fields provided in the request, including deleting fields not set in the
+   * If update_mask isn't provided(not set, set with empty paths, or only has ""
+   * as paths), it defaults to update all fields provided with values in the
    * request.
+   * Using "*" as update_mask will update all fields, including deleting fields
+   * not set in the request.
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -83,9 +85,11 @@ public interface UpdateSpaceRequestOrBuilder * *
    * Optional. Field mask used to specify the fields to be updated in the space.
-   * If update_mask isn't provided, it defaults to '*' and updates all
-   * fields provided in the request, including deleting fields not set in the
+   * If update_mask isn't provided(not set, set with empty paths, or only has ""
+   * as paths), it defaults to update all fields provided with values in the
    * request.
+   * Using "*" as update_mask will update all fields, including deleting fields
+   * not set in the request.
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -99,9 +103,11 @@ public interface UpdateSpaceRequestOrBuilder * *
    * Optional. Field mask used to specify the fields to be updated in the space.
-   * If update_mask isn't provided, it defaults to '*' and updates all
-   * fields provided in the request, including deleting fields not set in the
+   * If update_mask isn't provided(not set, set with empty paths, or only has ""
+   * as paths), it defaults to update all fields provided with values in the
    * request.
+   * Using "*" as update_mask will update all fields, including deleting fields
+   * not set in the request.
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/proto/google/apps/meet/v2beta/resource.proto b/java-meet/proto-google-cloud-meet-v2beta/src/main/proto/google/apps/meet/v2beta/resource.proto index 69ae99b139f2..2fd131d0b279 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/proto/google/apps/meet/v2beta/resource.proto +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/proto/google/apps/meet/v2beta/resource.proto @@ -28,7 +28,6 @@ option java_package = "com.google.apps.meet.v2beta"; option php_namespace = "Google\\Apps\\Meet\\V2beta"; option ruby_package = "Google::Apps::Meet::V2beta"; -// [Developer Preview](https://developers.google.com/workspace/preview). // Virtual place where conferences are held. Only one active conference can be // held in one space at any given time. message Space { @@ -38,22 +37,34 @@ message Space { }; // Immutable. Resource name of the space. - // Format: `spaces/{space}` + // + // Format: `spaces/{space}`. + // + // `{space}` is the resource identifier for the space. It's a unique, + // server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`. + // + // For more information, see [How Meet identifies a meeting + // space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space). string name = 1 [(google.api.field_behavior) = IMMUTABLE]; - // Output only. URI used to join meeting, such as + // Output only. URI used to join meetings consisting of + // `https://meet.google.com/` followed by the `meeting_code`. For example, // `https://meet.google.com/abc-mnop-xyz`. string meeting_uri = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Type friendly code to join the meeting. Format: - // `[a-z]+-[a-z]+-[a-z]+` such as `abc-mnop-xyz`. The maximum length is 128 - // characters. Can ONLY be used as alias of the space ID to get the space. + // Output only. Type friendly unique string used to join the meeting. + // + // Format: `[a-z]+-[a-z]+-[a-z]+`. For example, `abc-mnop-xyz`. + // + // The maximum length is 128 characters. + // + // Can only be used as an alias of the space name to get the space. string meeting_code = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Configuration pertaining to the meeting space. SpaceConfig config = 5; - // Active conference if it exists. + // Active conference, if it exists. ActiveConference active_conference = 6; } @@ -61,7 +72,7 @@ message Space { message ActiveConference { // Output only. Reference to 'ConferenceRecord' resource. // Format: `conferenceRecords/{conference_record}` where `{conference_record}` - // is a unique id for each instance of a call within a space. + // is a unique ID for each instance of a call within a space. string conference_record = 1 [ (google.api.field_behavior) = OUTPUT_ONLY, (google.api.resource_reference) = { @@ -72,6 +83,101 @@ message ActiveConference { // The configuration pertaining to a meeting space. message SpaceConfig { + // Defines restrictions for features when the meeting is moderated. + message ModerationRestrictions { + // Determines who has permission to use a particular feature. + enum RestrictionType { + // Default value specified by user policy. + // This should never be returned. + RESTRICTION_TYPE_UNSPECIFIED = 0; + + // Meeting owner and co-host have the permission. + HOSTS_ONLY = 1; + + // All Participants have permissions. + NO_RESTRICTION = 2; + } + + // By default users will join as contributors. Hosts can restrict users to + // join as viewers. + // Note: If an explicit role is set for a users in the Member resource, the + // user will join as that role. + enum DefaultJoinAsViewerType { + // Default value specified by user policy. + // This should never be returned. + DEFAULT_JOIN_AS_VIEWER_TYPE_UNSPECIFIED = 0; + + // Users will by default join as viewers. + ON = 1; + + // Users will by default join as contributors. + OFF = 2; + } + + // Defines who has permission to send chat messages in the meeting space. + RestrictionType chat_restriction = 1; + + // Defines who has permission to send reactions in the meeting space. + RestrictionType reaction_restriction = 2; + + // Defines who has permission to share their screen in the meeting space. + RestrictionType present_restriction = 3; + + // Defines whether to restrict the default role assigned to users as viewer. + DefaultJoinAsViewerType default_join_as_viewer_type = 4; + } + + // Configuration related to meeting artifacts potentially generated by this + // meeting space. + message ArtifactConfig { + // Configuration related to recording in a meeting space. + message RecordingConfig { + // Defines whether a meeting space is automatically recorded when someone + // with the privilege to record joins the meeting. + AutoGenerationType auto_recording_generation = 2; + } + + // Configuration related to transcription in a meeting space. + message TranscriptionConfig { + // Defines whether the content of a meeting is automatically transcribed + // when someone with the privilege to transcribe joins the meeting. + AutoGenerationType auto_transcription_generation = 2; + } + + // Configuration related to smart notes in a meeting space. More + // details about smart notes + // https://support.google.com/meet/answer/14754931?hl=en. + message SmartNotesConfig { + // Defines whether to automatically generate a summary and recap of the + // meeting for all invitees in the organization when someone with the + // privilege to enable smart notes joins the meeting. + AutoGenerationType auto_smart_notes_generation = 2; + } + + // Determines whether an artifact can be automatically generated in the + // meeting space. + enum AutoGenerationType { + // Default value specified by user policy. + // This should never be returned. + AUTO_GENERATION_TYPE_UNSPECIFIED = 0; + + // The artifact is generated automatically. + ON = 1; + + // The artifact is not generated automatically. + OFF = 2; + } + + // Configuration for recording. + RecordingConfig recording_config = 1; + + // Configuration for auto-transcript. + TranscriptionConfig transcription_config = 2; + + // Configuration for auto-smart-notes. + SmartNotesConfig smart_notes_config = 3; + } + // Possible access types for a meeting space. enum AccessType { // Default value specified by the user's organization. @@ -92,7 +198,7 @@ message SpaceConfig { } // Entry points that can be used to join a meeting. Example: - // `meet.google.com`, the Embed SDK Web, or a mobile application. + // `meet.google.com`, the Meet Embed SDK Web, or a mobile application. enum EntryPointAccess { // Unused. ENTRY_POINT_ACCESS_UNSPECIFIED = 0; @@ -101,11 +207,42 @@ message SpaceConfig { ALL = 1; // Only entry points owned by the Google Cloud project that created the - // space can be used to join meetings in this space. Apps can use the Embed - // SDK Web or mobile Meet SDKs to create owned entry points. + // space can be used to join meetings in this space. Apps can use the Meet + // Embed SDK Web or mobile Meet SDKs to create owned entry points. CREATOR_APP_ONLY = 2; } + // The moderation mode for a meeting. When the moderation mode is on, the + // meeting owner has more control over the meeting with features such as + // co-host management (see message Member) and feature restrictions (see + // message ModerationRestrictions). + enum Moderation { + // Moderation type is not specified. This is used to indicate the user + // hasn't specified any value as the user does not intend to update the + // state. Users are not allowed to set the value as unspecified. + MODERATION_UNSPECIFIED = 0; + + // Moderation is off. + OFF = 1; + + // Moderation is on. + ON = 2; + } + + // Possible states of whether attendance report is enabled for the meeting + // space. + enum AttendanceReportGenerationType { + // Default value specified by user policy. + // This should never be returned. + ATTENDANCE_REPORT_GENERATION_TYPE_UNSPECIFIED = 0; + + // Attendance report will be generated and sent to drive/email. + GENERATE_REPORT = 1; + + // Attendance report will not be generated. + DO_NOT_GENERATE = 2; + } + // Access type of the meeting space that determines who can join without // knocking. Default: The user's default access settings. Controlled by the // user's admin for enterprise users or RESTRICTED. @@ -115,9 +252,67 @@ message SpaceConfig { // meeting space. // Default: EntryPointAccess.ALL EntryPointAccess entry_point_access = 2; + + // [Developer Preview](https://developers.google.com/workspace/preview): + // The pre-configured moderation mode for the Meeting. + // Default: Controlled by the user's policies. + Moderation moderation = 3; + + // [Developer Preview](https://developers.google.com/workspace/preview): + // When moderation.ON, these restrictions go into effect for the meeting. + // When moderation.OFF, will be reset to default ModerationRestrictions. + ModerationRestrictions moderation_restrictions = 4; + + // [Developer Preview](https://developers.google.com/workspace/preview): + // Whether attendance report is enabled for the meeting space. + AttendanceReportGenerationType attendance_report_generation_type = 6; + + // [Developer Preview](https://developers.google.com/workspace/preview): + // Configuration pertaining to the auto-generated artifacts that the meeting + // supports. + ArtifactConfig artifact_config = 7; +} + +// Users who are configured to have a role in the space. These users can +// join the space without knocking. +message Member { + option (google.api.resource) = { + type: "meet.googleapis.com/Member" + pattern: "spaces/{space}/members/{member}" + plural: "members" + singular: "member" + }; + + // Role of this member in the space. + enum Role { + // This is used to indicate the user hasn't specified any value and the + // user’s role will be determined upon joining the meetings between + // 'contributor' and 'viewer' role depending on meeting configuration. More + // details about viewer role + // https://support.google.com/meet/answer/13658394?hl=en. + ROLE_UNSPECIFIED = 0; + + // Co-host role. + COHOST = 1; + } + + // Identifier. Resource name of the member. + // Format: spaces/{space}/members/{member} + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Email for the member. This is required for creating the member. + string email = 2; + + // The meeting role assigned to the member. + Role role = 3; + + // [Developer Preview](https://developers.google.com/workspace/preview): + // Unique name for the user. Interoperable with Admin SDK API and People API. + // This will be empty for non google users. Setting both user and email in + // request will result in error. Format: `users/{user}` + string user = 4; } -// [Developer Preview](https://developers.google.com/workspace/preview). // Single instance of a meeting held in a space. message ConferenceRecord { option (google.api.resource) = { @@ -129,10 +324,10 @@ message ConferenceRecord { // Identifier. Resource name of the conference record. // Format: `conferenceRecords/{conference_record}` where `{conference_record}` - // is a unique id for each instance of a call within a space. + // is a unique ID for each instance of a call within a space. string name = 1 [(google.api.field_behavior) = IDENTIFIER]; - // Output only. Timestamp when the conference started, always set. + // Output only. Timestamp when the conference started. Always set. google.protobuf.Timestamp start_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -141,9 +336,9 @@ message ConferenceRecord { google.protobuf.Timestamp end_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Server enforced expire time for when this conference record - // resource is deleted. The resource is deleted 30 days after the conference - // ends. + // Output only. Server enforced expiration time for when this conference + // record resource is deleted. The resource is deleted 30 days after the + // conference ends. google.protobuf.Timestamp expire_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -154,7 +349,6 @@ message ConferenceRecord { ]; } -// [Developer Preview](https://developers.google.com/workspace/preview). // User who attended or is attending a conference. message Participant { option (google.api.resource) = { @@ -171,7 +365,7 @@ message Participant { // Anonymous user. AnonymousUser anonymous_user = 5; - // User who calls in from their phone. + // User calling from their phone. PhoneUser phone_user = 6; } @@ -179,21 +373,19 @@ message Participant { // Format: `conferenceRecords/{conference_record}/participants/{participant}` string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Time when the participant joined the meeting for the first - // time. + // Output only. Time when the participant first joined the meeting. google.protobuf.Timestamp earliest_start_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Time when the participant left the meeting for the last time. - // This can be null if it is an active meeting. + // This can be null if it's an active meeting. google.protobuf.Timestamp latest_end_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; } -// [Developer Preview](https://developers.google.com/workspace/preview). -// Refers to each unique join/leave session when a user joins a conference from -// a device. Note that any time a user joins the conference a new unique ID is -// assigned. That means if a user joins a space multiple times from the same +// Refers to each unique join or leave session when a user joins a conference +// from a device. Note that any time a user joins the conference a new unique ID +// is assigned. That means if a user joins a space multiple times from the same // device, they're assigned different IDs, and are also be treated as different // participant sessions. message ParticipantSession { @@ -207,11 +399,11 @@ message ParticipantSession { // Identifier. Session id. string name = 1 [(google.api.field_behavior) = IDENTIFIER]; - // Output only. Timestamp when the user session started. + // Output only. Timestamp when the user session starts. google.protobuf.Timestamp start_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Timestamp when the user session ended. Unset if the user + // Output only. Timestamp when the user session ends. Unset if the user // session hasn’t ended. google.protobuf.Timestamp end_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -226,9 +418,9 @@ message SignedinUser { // People API. Format: `users/{user}` string user = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. For a personal device, it's the user's first and last name. - // For a robot account, it's the admin specified device name. For example, - // "Altostrat Room". + // Output only. For a personal device, it's the user's first name and last + // name. For a robot account, it's the administrator-specified device name. + // For example, "Altostrat Room". string display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } @@ -241,11 +433,10 @@ message AnonymousUser { // User dialing in from a phone where the user's identity is unknown because // they haven't signed in with a Google Account. message PhoneUser { - // Output only. Partially redacted user's phone number when they call in. + // Output only. Partially redacted user's phone number when calling. string display_name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; } -// [Developer Preview](https://developers.google.com/workspace/preview). // Metadata about a recording created during a conference. message Recording { option (google.api.resource) = { @@ -272,7 +463,7 @@ message Recording { } oneof destination { - // Output only. Recording is saved to Google Drive as an mp4 file. The + // Output only. Recording is saved to Google Drive as an MP4 file. The // `drive_destination` includes the Drive `fileId` that can be used to // download the file using the `files.get` method of the Drive API. DriveDestination drive_destination = 6 @@ -311,7 +502,6 @@ message DriveDestination { string export_uri = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } -// [Developer Preview](https://developers.google.com/workspace/preview). // Metadata for a transcript generated from a conference. It refers to the ASR // (Automatic Speech Recognition) result of user's speech during the conference. message Transcript { @@ -377,7 +567,6 @@ message DocsDestination { string export_uri = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } -// [Developer Preview](https://developers.google.com/workspace/preview). // Single entry for one user’s speech during a transcript session. message TranscriptEntry { option (google.api.resource) = { @@ -391,7 +580,7 @@ message TranscriptEntry { // "conferenceRecords/{conference_record}/transcripts/{transcript}/entries/{entry}" string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Refer to the participant who speaks. + // Output only. Refers to the participant who speaks. string participant = 2 [ (google.api.field_behavior) = OUTPUT_ONLY, (google.api.resource_reference) = { diff --git a/java-meet/proto-google-cloud-meet-v2beta/src/main/proto/google/apps/meet/v2beta/service.proto b/java-meet/proto-google-cloud-meet-v2beta/src/main/proto/google/apps/meet/v2beta/service.proto index 970585033ef7..a30eb3f5fd91 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/src/main/proto/google/apps/meet/v2beta/service.proto +++ b/java-meet/proto-google-cloud-meet-v2beta/src/main/proto/google/apps/meet/v2beta/service.proto @@ -35,8 +35,11 @@ option ruby_package = "Google::Apps::Meet::V2beta"; // REST API for services dealing with spaces. service SpacesService { option (google.api.default_host) = "meet.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/meetings.space.created," + "https://www.googleapis.com/auth/meetings.space.readonly," + "https://www.googleapis.com/auth/meetings.space.settings"; - // [Developer Preview](https://developers.google.com/workspace/preview). // Creates a space. rpc CreateSpace(CreateSpaceRequest) returns (Space) { option (google.api.http) = { @@ -46,8 +49,10 @@ service SpacesService { option (google.api.method_signature) = "space"; } - // [Developer Preview](https://developers.google.com/workspace/preview). - // Gets a space by `space_id` or `meeting_code`. + // Gets details about a meeting space. + // + // For an example, see [Get a meeting + // space](https://developers.google.com/meet/api/guides/meeting-spaces#get-meeting-space). rpc GetSpace(GetSpaceRequest) returns (Space) { option (google.api.http) = { get: "/v2beta/{name=spaces/*}" @@ -55,8 +60,10 @@ service SpacesService { option (google.api.method_signature) = "name"; } - // [Developer Preview](https://developers.google.com/workspace/preview). - // Updates a space. + // Updates details about a meeting space. + // + // For an example, see [Update a meeting + // space](https://developers.google.com/meet/api/guides/meeting-spaces#update-meeting-space). rpc UpdateSpace(UpdateSpaceRequest) returns (Space) { option (google.api.http) = { patch: "/v2beta/{space.name=spaces/*}" @@ -65,8 +72,10 @@ service SpacesService { option (google.api.method_signature) = "space,update_mask"; } - // [Developer Preview](https://developers.google.com/workspace/preview). - // Ends an active conference (if there is one). + // Ends an active conference (if there's one). + // + // For an example, see [End active + // conference](https://developers.google.com/meet/api/guides/meeting-spaces#end-active-conference). rpc EndActiveConference(EndActiveConferenceRequest) returns (google.protobuf.Empty) { option (google.api.http) = { @@ -75,13 +84,67 @@ service SpacesService { }; option (google.api.method_signature) = "name"; } + + // [Developer Preview](https://developers.google.com/workspace/preview): + // Create a member. + // + // This API supports the `fields` parameter in + // [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters). + // When the `fields` parameter is omitted, this API response will default to + // "name,email,role,user". + rpc CreateMember(CreateMemberRequest) returns (Member) { + option (google.api.http) = { + post: "/v2beta/{parent=spaces/*}/members" + body: "member" + }; + option (google.api.method_signature) = "parent,member"; + } + + // [Developer Preview](https://developers.google.com/workspace/preview): + // Get a member. + // + // This API supports the `fields` parameter in + // [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters). + // When the `fields` parameter is omitted, this API response will default to + // "name,email,role,user". + rpc GetMember(GetMemberRequest) returns (Member) { + option (google.api.http) = { + get: "/v2beta/{name=spaces/*/members/*}" + }; + option (google.api.method_signature) = "name"; + } + + // [Developer Preview](https://developers.google.com/workspace/preview): + // List members. + // + // This API supports the `fields` parameter in + // [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters). + // When the `fields` parameter is omitted this API response will default to + // "name,email,role,user". + rpc ListMembers(ListMembersRequest) returns (ListMembersResponse) { + option (google.api.http) = { + get: "/v2beta/{parent=spaces/*}/members" + }; + option (google.api.method_signature) = "parent"; + } + + // [Developer Preview](https://developers.google.com/workspace/preview): + // Delete the member who was previously assigned roles in the space. + rpc DeleteMember(DeleteMemberRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v2beta/{name=spaces/*/members/*}" + }; + option (google.api.method_signature) = "name"; + } } // REST API for services dealing with conference records. service ConferenceRecordsService { option (google.api.default_host) = "meet.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/meetings.space.created," + "https://www.googleapis.com/auth/meetings.space.readonly"; - // [Developer Preview](https://developers.google.com/workspace/preview). // Gets a conference record by conference ID. rpc GetConferenceRecord(GetConferenceRecordRequest) returns (ConferenceRecord) { @@ -91,8 +154,8 @@ service ConferenceRecordsService { option (google.api.method_signature) = "name"; } - // [Developer Preview](https://developers.google.com/workspace/preview). - // Lists the conference records by start time and in descending order. + // Lists the conference records. By default, ordered by start time and in + // descending order. rpc ListConferenceRecords(ListConferenceRecordsRequest) returns (ListConferenceRecordsResponse) { option (google.api.http) = { @@ -100,7 +163,6 @@ service ConferenceRecordsService { }; } - // [Developer Preview](https://developers.google.com/workspace/preview). // Gets a participant by participant ID. rpc GetParticipant(GetParticipantRequest) returns (Participant) { option (google.api.http) = { @@ -109,8 +171,7 @@ service ConferenceRecordsService { option (google.api.method_signature) = "name"; } - // [Developer Preview](https://developers.google.com/workspace/preview). - // Lists the participants in a conference record, by default ordered by join + // Lists the participants in a conference record. By default, ordered by join // time and in descending order. This API supports `fields` as standard // parameters like every other API. However, when the `fields` request // parameter is omitted, this API defaults to `'participants/*, @@ -123,7 +184,6 @@ service ConferenceRecordsService { option (google.api.method_signature) = "parent"; } - // [Developer Preview](https://developers.google.com/workspace/preview). // Gets a participant session by participant session ID. rpc GetParticipantSession(GetParticipantSessionRequest) returns (ParticipantSession) { @@ -133,9 +193,8 @@ service ConferenceRecordsService { option (google.api.method_signature) = "name"; } - // [Developer Preview](https://developers.google.com/workspace/preview). - // Lists the participant sessions of a participant in a conference record, by - // default ordered by join time and in descending order. This API supports + // Lists the participant sessions of a participant in a conference record. By + // default, ordered by join time and in descending order. This API supports // `fields` as standard parameters like every other API. However, when the // `fields` request parameter is omitted this API defaults to // `'participantsessions/*, next_page_token'`. @@ -147,7 +206,6 @@ service ConferenceRecordsService { option (google.api.method_signature) = "parent"; } - // [Developer Preview](https://developers.google.com/workspace/preview). // Gets a recording by recording ID. rpc GetRecording(GetRecordingRequest) returns (Recording) { option (google.api.http) = { @@ -156,8 +214,8 @@ service ConferenceRecordsService { option (google.api.method_signature) = "name"; } - // [Developer Preview](https://developers.google.com/workspace/preview). - // Lists the recording resources from the conference record. + // Lists the recording resources from the conference record. By default, + // ordered by start time and in ascending order. rpc ListRecordings(ListRecordingsRequest) returns (ListRecordingsResponse) { option (google.api.http) = { get: "/v2beta/{parent=conferenceRecords/*}/recordings" @@ -165,7 +223,6 @@ service ConferenceRecordsService { option (google.api.method_signature) = "parent"; } - // [Developer Preview](https://developers.google.com/workspace/preview). // Gets a transcript by transcript ID. rpc GetTranscript(GetTranscriptRequest) returns (Transcript) { option (google.api.http) = { @@ -174,8 +231,8 @@ service ConferenceRecordsService { option (google.api.method_signature) = "name"; } - // [Developer Preview](https://developers.google.com/workspace/preview). - // Lists the set of transcripts from the conference record. + // Lists the set of transcripts from the conference record. By default, + // ordered by start time and in ascending order. rpc ListTranscripts(ListTranscriptsRequest) returns (ListTranscriptsResponse) { option (google.api.http) = { @@ -184,7 +241,6 @@ service ConferenceRecordsService { option (google.api.method_signature) = "parent"; } - // [Developer Preview](https://developers.google.com/workspace/preview). // Gets a `TranscriptEntry` resource by entry ID. // // Note: The transcript entries returned by the Google Meet API might not @@ -197,7 +253,6 @@ service ConferenceRecordsService { option (google.api.method_signature) = "name"; } - // [Developer Preview](https://developers.google.com/workspace/preview). // Lists the structured transcript entries per transcript. By default, ordered // by start time and in ascending order. // @@ -223,6 +278,24 @@ message CreateSpaceRequest { // Request to get a space. message GetSpaceRequest { // Required. Resource name of the space. + // + // Format: `spaces/{space}` or `spaces/{meetingCode}`. + // + // `{space}` is the resource identifier for the space. It's a unique, + // server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`. + // + // `{meetingCode}` is an alias for the space. It's a typeable, unique + // character string and is non-case sensitive. For example, `abc-mnop-xyz`. + // The maximum length is 128 characters. + // + // A `meetingCode` shouldn't be stored long term as it can become + // dissociated from a meeting space and can be reused for different meeting + // spaces in the future. Generally, a `meetingCode` expires 365 days after + // last use. For more information, see [Learn about meeting codes in Google + // Meet](https://support.google.com/meet/answer/10710509). + // + // For more information, see [How Meet identifies a meeting + // space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space). string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { type: "meet.googleapis.com/Space" } @@ -235,9 +308,11 @@ message UpdateSpaceRequest { Space space = 1 [(google.api.field_behavior) = REQUIRED]; // Optional. Field mask used to specify the fields to be updated in the space. - // If update_mask isn't provided, it defaults to '*' and updates all - // fields provided in the request, including deleting fields not set in the + // If update_mask isn't provided(not set, set with empty paths, or only has "" + // as paths), it defaults to update all fields provided with values in the // request. + // Using "*" as update_mask will update all fields, including deleting fields + // not set in the request. google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = OPTIONAL]; } @@ -245,12 +320,82 @@ message UpdateSpaceRequest { // Request to end an ongoing conference of a space. message EndActiveConferenceRequest { // Required. Resource name of the space. + // + // Format: `spaces/{space}`. + // + // `{space}` is the resource identifier for the space. It's a unique, + // server-generated ID and is case sensitive. For example, `jQCFfuBOdN5z`. + // + // For more information, see [How Meet identifies a meeting + // space](https://developers.google.com/meet/api/guides/meeting-spaces#identify-meeting-space). string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { type: "meet.googleapis.com/Space" } ]; } +// Request to create a member for a space. +message CreateMemberRequest { + // Required. Format: spaces/{space} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "meet.googleapis.com/Member" + } + ]; + + // Required. The member to be created. + Member member = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request to get a member from a space. +message GetMemberRequest { + // Required. Format: “spaces/{space}/members/{member}” + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "meet.googleapis.com/Member" } + ]; +} + +// Request to list all members of a space. +message ListMembersRequest { + // Required. Format: spaces/{space} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "meet.googleapis.com/Member" + } + ]; + + // Optional. Maximum number of members to return. The service might return + // fewer than this value. If unspecified, at most 25 members are returned. The + // maximum value is 100; values above 100 are coerced to 100. Maximum might + // change in the future. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Page token returned from previous List Call. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response of list members. +message ListMembersResponse { + // The list of members for the current page. + repeated Member members = 1; + + // Token to be circulated back for further list call if current list doesn't + // include all the members. Unset if all members are returned. + string next_page_token = 2; +} + +// Request to delete a member from a space. +message DeleteMemberRequest { + // Required. Format: “spaces/{space}/members/{member}” + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "meet.googleapis.com/Member" } + ]; +} + // Request to get a conference record. message GetConferenceRecordRequest { // Required. Resource name of the conference. @@ -273,15 +418,22 @@ message ListConferenceRecordsRequest { // Optional. Page token returned from previous List Call. string page_token = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. User specified filtering condition in EBNF format. The following - // are the filterable fields: + // Optional. User specified filtering condition in [EBNF + // format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form). + // The following are the filterable fields: // // * `space.meeting_code` // * `space.name` // * `start_time` // * `end_time` // - // For example, `space.meeting_code = "abc-mnop-xyz"`. + // For example, consider the following filters: + // + // * `space.name = "spaces/NAME"` + // * `space.meeting_code = "abc-mnop-xyz"` + // * `start_time>="2024-01-01T00:00:00.000Z" AND + // start_time<="2024-01-02T00:00:00.000Z"` + // * `end_time IS NULL` string filter = 3 [(google.api.field_behavior) = OPTIONAL]; } @@ -295,7 +447,7 @@ message ListConferenceRecordsResponse { string next_page_token = 2; } -// Request to get a Participant. +// Request to get a participant. message GetParticipantRequest { // Required. Resource name of the participant. string name = 1 [ @@ -306,7 +458,7 @@ message GetParticipantRequest { ]; } -// Request to fetch list of participant per conference. +// Request to fetch list of participants per conference. message ListParticipantsRequest { // Required. Format: `conferenceRecords/{conference_record}` string parent = 1 [ @@ -326,8 +478,9 @@ message ListParticipantsRequest { // Page token returned from previous List Call. string page_token = 3; - // Optional. User specified filtering condition in EBNF format. The following - // are the filterable fields: + // Optional. User specified filtering condition in [EBNF + // format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form). + // The following are the filterable fields: // // * `earliest_start_time` // * `latest_end_time` @@ -364,7 +517,7 @@ message GetParticipantSessionRequest { ]; } -// Request to fetch list of participant sessions per conference record per +// Request to fetch list of participant sessions per conference record, per // participant. message ListParticipantSessionsRequest { // Required. Format: @@ -385,8 +538,9 @@ message ListParticipantSessionsRequest { // Optional. Page token returned from previous List Call. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. User specified filtering condition in EBNF format. The following - // are the filterable fields: + // Optional. User specified filtering condition in [EBNF + // format](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form). + // The following are the filterable fields: // // * `start_time` // * `end_time` @@ -519,7 +673,7 @@ message ListTranscriptEntriesRequest { string page_token = 3; } -// Response for ListTranscriptEntries method +// Response for ListTranscriptEntries method. message ListTranscriptEntriesResponse { // List of TranscriptEntries in one page. repeated TranscriptEntry transcript_entries = 1; diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/createmember/AsyncCreateMember.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/createmember/AsyncCreateMember.java new file mode 100644 index 000000000000..3999bbf978d8 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/createmember/AsyncCreateMember.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.apps.meet.v2beta.samples; + +// [START meet_v2beta_generated_SpacesService_CreateMember_async] +import com.google.api.core.ApiFuture; +import com.google.apps.meet.v2beta.CreateMemberRequest; +import com.google.apps.meet.v2beta.Member; +import com.google.apps.meet.v2beta.SpaceName; +import com.google.apps.meet.v2beta.SpacesServiceClient; + +public class AsyncCreateMember { + + public static void main(String[] args) throws Exception { + asyncCreateMember(); + } + + public static void asyncCreateMember() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) { + CreateMemberRequest request = + CreateMemberRequest.newBuilder() + .setParent(SpaceName.of("[SPACE]").toString()) + .setMember(Member.newBuilder().build()) + .build(); + ApiFuture future = spacesServiceClient.createMemberCallable().futureCall(request); + // Do something. + Member response = future.get(); + } + } +} +// [END meet_v2beta_generated_SpacesService_CreateMember_async] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/createmember/SyncCreateMember.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/createmember/SyncCreateMember.java new file mode 100644 index 000000000000..eaf3a25288fe --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/createmember/SyncCreateMember.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.apps.meet.v2beta.samples; + +// [START meet_v2beta_generated_SpacesService_CreateMember_sync] +import com.google.apps.meet.v2beta.CreateMemberRequest; +import com.google.apps.meet.v2beta.Member; +import com.google.apps.meet.v2beta.SpaceName; +import com.google.apps.meet.v2beta.SpacesServiceClient; + +public class SyncCreateMember { + + public static void main(String[] args) throws Exception { + syncCreateMember(); + } + + public static void syncCreateMember() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) { + CreateMemberRequest request = + CreateMemberRequest.newBuilder() + .setParent(SpaceName.of("[SPACE]").toString()) + .setMember(Member.newBuilder().build()) + .build(); + Member response = spacesServiceClient.createMember(request); + } + } +} +// [END meet_v2beta_generated_SpacesService_CreateMember_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/createmember/SyncCreateMemberSpacenameMember.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/createmember/SyncCreateMemberSpacenameMember.java new file mode 100644 index 000000000000..0a2a000902ec --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/createmember/SyncCreateMemberSpacenameMember.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.apps.meet.v2beta.samples; + +// [START meet_v2beta_generated_SpacesService_CreateMember_SpacenameMember_sync] +import com.google.apps.meet.v2beta.Member; +import com.google.apps.meet.v2beta.SpaceName; +import com.google.apps.meet.v2beta.SpacesServiceClient; + +public class SyncCreateMemberSpacenameMember { + + public static void main(String[] args) throws Exception { + syncCreateMemberSpacenameMember(); + } + + public static void syncCreateMemberSpacenameMember() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) { + SpaceName parent = SpaceName.of("[SPACE]"); + Member member = Member.newBuilder().build(); + Member response = spacesServiceClient.createMember(parent, member); + } + } +} +// [END meet_v2beta_generated_SpacesService_CreateMember_SpacenameMember_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/createmember/SyncCreateMemberStringMember.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/createmember/SyncCreateMemberStringMember.java new file mode 100644 index 000000000000..90109563462c --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/createmember/SyncCreateMemberStringMember.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.apps.meet.v2beta.samples; + +// [START meet_v2beta_generated_SpacesService_CreateMember_StringMember_sync] +import com.google.apps.meet.v2beta.Member; +import com.google.apps.meet.v2beta.SpaceName; +import com.google.apps.meet.v2beta.SpacesServiceClient; + +public class SyncCreateMemberStringMember { + + public static void main(String[] args) throws Exception { + syncCreateMemberStringMember(); + } + + public static void syncCreateMemberStringMember() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) { + String parent = SpaceName.of("[SPACE]").toString(); + Member member = Member.newBuilder().build(); + Member response = spacesServiceClient.createMember(parent, member); + } + } +} +// [END meet_v2beta_generated_SpacesService_CreateMember_StringMember_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/deletemember/AsyncDeleteMember.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/deletemember/AsyncDeleteMember.java new file mode 100644 index 000000000000..e87ed5d9dc8e --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/deletemember/AsyncDeleteMember.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.apps.meet.v2beta.samples; + +// [START meet_v2beta_generated_SpacesService_DeleteMember_async] +import com.google.api.core.ApiFuture; +import com.google.apps.meet.v2beta.DeleteMemberRequest; +import com.google.apps.meet.v2beta.MemberName; +import com.google.apps.meet.v2beta.SpacesServiceClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteMember { + + public static void main(String[] args) throws Exception { + asyncDeleteMember(); + } + + public static void asyncDeleteMember() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) { + DeleteMemberRequest request = + DeleteMemberRequest.newBuilder() + .setName(MemberName.of("[SPACE]", "[MEMBER]").toString()) + .build(); + ApiFuture future = spacesServiceClient.deleteMemberCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END meet_v2beta_generated_SpacesService_DeleteMember_async] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/deletemember/SyncDeleteMember.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/deletemember/SyncDeleteMember.java new file mode 100644 index 000000000000..8cfe19a5052d --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/deletemember/SyncDeleteMember.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.apps.meet.v2beta.samples; + +// [START meet_v2beta_generated_SpacesService_DeleteMember_sync] +import com.google.apps.meet.v2beta.DeleteMemberRequest; +import com.google.apps.meet.v2beta.MemberName; +import com.google.apps.meet.v2beta.SpacesServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteMember { + + public static void main(String[] args) throws Exception { + syncDeleteMember(); + } + + public static void syncDeleteMember() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) { + DeleteMemberRequest request = + DeleteMemberRequest.newBuilder() + .setName(MemberName.of("[SPACE]", "[MEMBER]").toString()) + .build(); + spacesServiceClient.deleteMember(request); + } + } +} +// [END meet_v2beta_generated_SpacesService_DeleteMember_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/deletemember/SyncDeleteMemberMembername.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/deletemember/SyncDeleteMemberMembername.java new file mode 100644 index 000000000000..208eafe3cb31 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/deletemember/SyncDeleteMemberMembername.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.apps.meet.v2beta.samples; + +// [START meet_v2beta_generated_SpacesService_DeleteMember_Membername_sync] +import com.google.apps.meet.v2beta.MemberName; +import com.google.apps.meet.v2beta.SpacesServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteMemberMembername { + + public static void main(String[] args) throws Exception { + syncDeleteMemberMembername(); + } + + public static void syncDeleteMemberMembername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) { + MemberName name = MemberName.of("[SPACE]", "[MEMBER]"); + spacesServiceClient.deleteMember(name); + } + } +} +// [END meet_v2beta_generated_SpacesService_DeleteMember_Membername_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/deletemember/SyncDeleteMemberString.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/deletemember/SyncDeleteMemberString.java new file mode 100644 index 000000000000..b7931ceeabd3 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/deletemember/SyncDeleteMemberString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.apps.meet.v2beta.samples; + +// [START meet_v2beta_generated_SpacesService_DeleteMember_String_sync] +import com.google.apps.meet.v2beta.MemberName; +import com.google.apps.meet.v2beta.SpacesServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteMemberString { + + public static void main(String[] args) throws Exception { + syncDeleteMemberString(); + } + + public static void syncDeleteMemberString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) { + String name = MemberName.of("[SPACE]", "[MEMBER]").toString(); + spacesServiceClient.deleteMember(name); + } + } +} +// [END meet_v2beta_generated_SpacesService_DeleteMember_String_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/getmember/AsyncGetMember.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/getmember/AsyncGetMember.java new file mode 100644 index 000000000000..2c3e8cb4ae7e --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/getmember/AsyncGetMember.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.apps.meet.v2beta.samples; + +// [START meet_v2beta_generated_SpacesService_GetMember_async] +import com.google.api.core.ApiFuture; +import com.google.apps.meet.v2beta.GetMemberRequest; +import com.google.apps.meet.v2beta.Member; +import com.google.apps.meet.v2beta.MemberName; +import com.google.apps.meet.v2beta.SpacesServiceClient; + +public class AsyncGetMember { + + public static void main(String[] args) throws Exception { + asyncGetMember(); + } + + public static void asyncGetMember() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) { + GetMemberRequest request = + GetMemberRequest.newBuilder() + .setName(MemberName.of("[SPACE]", "[MEMBER]").toString()) + .build(); + ApiFuture future = spacesServiceClient.getMemberCallable().futureCall(request); + // Do something. + Member response = future.get(); + } + } +} +// [END meet_v2beta_generated_SpacesService_GetMember_async] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/getmember/SyncGetMember.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/getmember/SyncGetMember.java new file mode 100644 index 000000000000..c1f3205b8397 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/getmember/SyncGetMember.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.apps.meet.v2beta.samples; + +// [START meet_v2beta_generated_SpacesService_GetMember_sync] +import com.google.apps.meet.v2beta.GetMemberRequest; +import com.google.apps.meet.v2beta.Member; +import com.google.apps.meet.v2beta.MemberName; +import com.google.apps.meet.v2beta.SpacesServiceClient; + +public class SyncGetMember { + + public static void main(String[] args) throws Exception { + syncGetMember(); + } + + public static void syncGetMember() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) { + GetMemberRequest request = + GetMemberRequest.newBuilder() + .setName(MemberName.of("[SPACE]", "[MEMBER]").toString()) + .build(); + Member response = spacesServiceClient.getMember(request); + } + } +} +// [END meet_v2beta_generated_SpacesService_GetMember_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/getmember/SyncGetMemberMembername.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/getmember/SyncGetMemberMembername.java new file mode 100644 index 000000000000..b76eaec928bd --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/getmember/SyncGetMemberMembername.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.apps.meet.v2beta.samples; + +// [START meet_v2beta_generated_SpacesService_GetMember_Membername_sync] +import com.google.apps.meet.v2beta.Member; +import com.google.apps.meet.v2beta.MemberName; +import com.google.apps.meet.v2beta.SpacesServiceClient; + +public class SyncGetMemberMembername { + + public static void main(String[] args) throws Exception { + syncGetMemberMembername(); + } + + public static void syncGetMemberMembername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) { + MemberName name = MemberName.of("[SPACE]", "[MEMBER]"); + Member response = spacesServiceClient.getMember(name); + } + } +} +// [END meet_v2beta_generated_SpacesService_GetMember_Membername_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/getmember/SyncGetMemberString.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/getmember/SyncGetMemberString.java new file mode 100644 index 000000000000..d51f9e66ebd0 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/getmember/SyncGetMemberString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.apps.meet.v2beta.samples; + +// [START meet_v2beta_generated_SpacesService_GetMember_String_sync] +import com.google.apps.meet.v2beta.Member; +import com.google.apps.meet.v2beta.MemberName; +import com.google.apps.meet.v2beta.SpacesServiceClient; + +public class SyncGetMemberString { + + public static void main(String[] args) throws Exception { + syncGetMemberString(); + } + + public static void syncGetMemberString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) { + String name = MemberName.of("[SPACE]", "[MEMBER]").toString(); + Member response = spacesServiceClient.getMember(name); + } + } +} +// [END meet_v2beta_generated_SpacesService_GetMember_String_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/listmembers/AsyncListMembers.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/listmembers/AsyncListMembers.java new file mode 100644 index 000000000000..d3cd133c0a73 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/listmembers/AsyncListMembers.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.apps.meet.v2beta.samples; + +// [START meet_v2beta_generated_SpacesService_ListMembers_async] +import com.google.api.core.ApiFuture; +import com.google.apps.meet.v2beta.ListMembersRequest; +import com.google.apps.meet.v2beta.Member; +import com.google.apps.meet.v2beta.SpaceName; +import com.google.apps.meet.v2beta.SpacesServiceClient; + +public class AsyncListMembers { + + public static void main(String[] args) throws Exception { + asyncListMembers(); + } + + public static void asyncListMembers() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) { + ListMembersRequest request = + ListMembersRequest.newBuilder() + .setParent(SpaceName.of("[SPACE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = spacesServiceClient.listMembersPagedCallable().futureCall(request); + // Do something. + for (Member element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END meet_v2beta_generated_SpacesService_ListMembers_async] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/listmembers/AsyncListMembersPaged.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/listmembers/AsyncListMembersPaged.java new file mode 100644 index 000000000000..534783f961d7 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/listmembers/AsyncListMembersPaged.java @@ -0,0 +1,61 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.apps.meet.v2beta.samples; + +// [START meet_v2beta_generated_SpacesService_ListMembers_Paged_async] +import com.google.apps.meet.v2beta.ListMembersRequest; +import com.google.apps.meet.v2beta.ListMembersResponse; +import com.google.apps.meet.v2beta.Member; +import com.google.apps.meet.v2beta.SpaceName; +import com.google.apps.meet.v2beta.SpacesServiceClient; +import com.google.common.base.Strings; + +public class AsyncListMembersPaged { + + public static void main(String[] args) throws Exception { + asyncListMembersPaged(); + } + + public static void asyncListMembersPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) { + ListMembersRequest request = + ListMembersRequest.newBuilder() + .setParent(SpaceName.of("[SPACE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListMembersResponse response = spacesServiceClient.listMembersCallable().call(request); + for (Member element : response.getMembersList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END meet_v2beta_generated_SpacesService_ListMembers_Paged_async] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/listmembers/SyncListMembers.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/listmembers/SyncListMembers.java new file mode 100644 index 000000000000..e172372914d0 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/listmembers/SyncListMembers.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.apps.meet.v2beta.samples; + +// [START meet_v2beta_generated_SpacesService_ListMembers_sync] +import com.google.apps.meet.v2beta.ListMembersRequest; +import com.google.apps.meet.v2beta.Member; +import com.google.apps.meet.v2beta.SpaceName; +import com.google.apps.meet.v2beta.SpacesServiceClient; + +public class SyncListMembers { + + public static void main(String[] args) throws Exception { + syncListMembers(); + } + + public static void syncListMembers() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) { + ListMembersRequest request = + ListMembersRequest.newBuilder() + .setParent(SpaceName.of("[SPACE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Member element : spacesServiceClient.listMembers(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END meet_v2beta_generated_SpacesService_ListMembers_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/listmembers/SyncListMembersSpacename.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/listmembers/SyncListMembersSpacename.java new file mode 100644 index 000000000000..d0ca69da53fb --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/listmembers/SyncListMembersSpacename.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.apps.meet.v2beta.samples; + +// [START meet_v2beta_generated_SpacesService_ListMembers_Spacename_sync] +import com.google.apps.meet.v2beta.Member; +import com.google.apps.meet.v2beta.SpaceName; +import com.google.apps.meet.v2beta.SpacesServiceClient; + +public class SyncListMembersSpacename { + + public static void main(String[] args) throws Exception { + syncListMembersSpacename(); + } + + public static void syncListMembersSpacename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) { + SpaceName parent = SpaceName.of("[SPACE]"); + for (Member element : spacesServiceClient.listMembers(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END meet_v2beta_generated_SpacesService_ListMembers_Spacename_sync] diff --git a/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/listmembers/SyncListMembersString.java b/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/listmembers/SyncListMembersString.java new file mode 100644 index 000000000000..595c794e2c86 --- /dev/null +++ b/java-meet/samples/snippets/generated/com/google/apps/meet/v2beta/spacesservice/listmembers/SyncListMembersString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.apps.meet.v2beta.samples; + +// [START meet_v2beta_generated_SpacesService_ListMembers_String_sync] +import com.google.apps.meet.v2beta.Member; +import com.google.apps.meet.v2beta.SpaceName; +import com.google.apps.meet.v2beta.SpacesServiceClient; + +public class SyncListMembersString { + + public static void main(String[] args) throws Exception { + syncListMembersString(); + } + + public static void syncListMembersString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SpacesServiceClient spacesServiceClient = SpacesServiceClient.create()) { + String parent = SpaceName.of("[SPACE]").toString(); + for (Member element : spacesServiceClient.listMembers(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END meet_v2beta_generated_SpacesService_ListMembers_String_sync] diff --git a/java-memcache/README.md b/java-memcache/README.md index ae977685e426..54ad7dcdb532 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.52.0 + 26.53.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.55.0 + 2.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-memcache:2.55.0' +implementation 'com.google.cloud:google-cloud-memcache:2.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-memcache" % "2.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-memcache" % "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-memcache.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-memcache/2.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-memcache/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-migrationcenter/README.md b/java-migrationcenter/README.md index 655d33657e88..b8747f878c7d 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.52.0 + 26.53.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.37.0 + 0.38.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-migrationcenter:0.37.0' +implementation 'com.google.cloud:google-cloud-migrationcenter:0.38.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-migrationcenter" % "0.37.0" +libraryDependencies += "com.google.cloud" % "google-cloud-migrationcenter" % "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-migrationcenter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-migrationcenter/0.37.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-migrationcenter/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-monitoring-dashboards/README.md b/java-monitoring-dashboards/README.md index 0929d8ef20ba..10e60ecbfbf2 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.52.0 + 26.53.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.57.0 + 2.58.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-monitoring-dashboard:2.57.0' +implementation 'com.google.cloud:google-cloud-monitoring-dashboard:2.58.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-dashboard" % "2.57.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-dashboard" % "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-monitoring-dashboard.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-dashboard/2.57.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-dashboard/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-monitoring-metricsscope/README.md b/java-monitoring-metricsscope/README.md index 1de019e01b33..cf1898b0d15d 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.52.0 + 26.53.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.49.0 + 0.50.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-monitoring-metricsscope:0.49.0' +implementation 'com.google.cloud:google-cloud-monitoring-metricsscope:0.50.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-metricsscope" % "0.49.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-metricsscope" % "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-monitoring-metricsscope.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-metricsscope/0.49.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-metricsscope/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-monitoring/README.md b/java-monitoring/README.md index e201b0d75ad2..76596230ec59 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.52.0 + 26.53.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.56.0 + 3.57.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-monitoring:3.56.0' +implementation 'com.google.cloud:google-cloud-monitoring:3.57.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "3.56.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "3.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-monitoring.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring/3.56.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring/3.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-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java index 8f5527db4d2f..aa73016891e4 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java @@ -895,6 +895,7 @@ public final ListMetricDescriptorsPagedResponse listMetricDescriptors(String nam * .setFilter("filter-1274492040") * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setActiveOnly(true) * .build(); * for (MetricDescriptor element : * metricServiceClient.listMetricDescriptors(request).iterateAll()) { @@ -930,6 +931,7 @@ public final ListMetricDescriptorsPagedResponse listMetricDescriptors( * .setFilter("filter-1274492040") * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setActiveOnly(true) * .build(); * ApiFuture future = * metricServiceClient.listMetricDescriptorsPagedCallable().futureCall(request); @@ -964,6 +966,7 @@ public final ListMetricDescriptorsPagedResponse listMetricDescriptors( * .setFilter("filter-1274492040") * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setActiveOnly(true) * .build(); * while (true) { * ListMetricDescriptorsResponse response = diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesError.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesError.java index b5d2fdfde3e0..cea8c34ac167 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesError.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesError.java @@ -74,7 +74,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * .google.monitoring.v3.TimeSeries time_series = 1 [deprecated = true]; * * @deprecated google.monitoring.v3.CreateTimeSeriesError.time_series is deprecated. See - * google/monitoring/v3/metric_service.proto;l=465 + * google/monitoring/v3/metric_service.proto;l=477 * @return Whether the timeSeries field is set. */ @java.lang.Override @@ -92,7 +92,7 @@ public boolean hasTimeSeries() { * .google.monitoring.v3.TimeSeries time_series = 1 [deprecated = true]; * * @deprecated google.monitoring.v3.CreateTimeSeriesError.time_series is deprecated. See - * google/monitoring/v3/metric_service.proto;l=465 + * google/monitoring/v3/metric_service.proto;l=477 * @return The timeSeries. */ @java.lang.Override @@ -131,7 +131,7 @@ public com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder() { * .google.rpc.Status status = 2 [deprecated = true]; * * @deprecated google.monitoring.v3.CreateTimeSeriesError.status is deprecated. See - * google/monitoring/v3/metric_service.proto;l=468 + * google/monitoring/v3/metric_service.proto;l=480 * @return Whether the status field is set. */ @java.lang.Override @@ -149,7 +149,7 @@ public boolean hasStatus() { * .google.rpc.Status status = 2 [deprecated = true]; * * @deprecated google.monitoring.v3.CreateTimeSeriesError.status is deprecated. See - * google/monitoring/v3/metric_service.proto;l=468 + * google/monitoring/v3/metric_service.proto;l=480 * @return The status. */ @java.lang.Override @@ -581,7 +581,7 @@ public Builder mergeFrom( * .google.monitoring.v3.TimeSeries time_series = 1 [deprecated = true]; * * @deprecated google.monitoring.v3.CreateTimeSeriesError.time_series is deprecated. See - * google/monitoring/v3/metric_service.proto;l=465 + * google/monitoring/v3/metric_service.proto;l=477 * @return Whether the timeSeries field is set. */ @java.lang.Deprecated @@ -598,7 +598,7 @@ public boolean hasTimeSeries() { * .google.monitoring.v3.TimeSeries time_series = 1 [deprecated = true]; * * @deprecated google.monitoring.v3.CreateTimeSeriesError.time_series is deprecated. See - * google/monitoring/v3/metric_service.proto;l=465 + * google/monitoring/v3/metric_service.proto;l=477 * @return The timeSeries. */ @java.lang.Deprecated @@ -776,7 +776,7 @@ public com.google.monitoring.v3.TimeSeriesOrBuilder getTimeSeriesOrBuilder() { * .google.rpc.Status status = 2 [deprecated = true]; * * @deprecated google.monitoring.v3.CreateTimeSeriesError.status is deprecated. See - * google/monitoring/v3/metric_service.proto;l=468 + * google/monitoring/v3/metric_service.proto;l=480 * @return Whether the status field is set. */ @java.lang.Deprecated @@ -793,7 +793,7 @@ public boolean hasStatus() { * .google.rpc.Status status = 2 [deprecated = true]; * * @deprecated google.monitoring.v3.CreateTimeSeriesError.status is deprecated. See - * google/monitoring/v3/metric_service.proto;l=468 + * google/monitoring/v3/metric_service.proto;l=480 * @return The status. */ @java.lang.Deprecated diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesErrorOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesErrorOrBuilder.java index 027f64351fc3..057890f7c691 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesErrorOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/CreateTimeSeriesErrorOrBuilder.java @@ -34,7 +34,7 @@ public interface CreateTimeSeriesErrorOrBuilder * .google.monitoring.v3.TimeSeries time_series = 1 [deprecated = true]; * * @deprecated google.monitoring.v3.CreateTimeSeriesError.time_series is deprecated. See - * google/monitoring/v3/metric_service.proto;l=465 + * google/monitoring/v3/metric_service.proto;l=477 * @return Whether the timeSeries field is set. */ @java.lang.Deprecated @@ -49,7 +49,7 @@ public interface CreateTimeSeriesErrorOrBuilder * .google.monitoring.v3.TimeSeries time_series = 1 [deprecated = true]; * * @deprecated google.monitoring.v3.CreateTimeSeriesError.time_series is deprecated. See - * google/monitoring/v3/metric_service.proto;l=465 + * google/monitoring/v3/metric_service.proto;l=477 * @return The timeSeries. */ @java.lang.Deprecated @@ -76,7 +76,7 @@ public interface CreateTimeSeriesErrorOrBuilder * .google.rpc.Status status = 2 [deprecated = true]; * * @deprecated google.monitoring.v3.CreateTimeSeriesError.status is deprecated. See - * google/monitoring/v3/metric_service.proto;l=468 + * google/monitoring/v3/metric_service.proto;l=480 * @return Whether the status field is set. */ @java.lang.Deprecated @@ -91,7 +91,7 @@ public interface CreateTimeSeriesErrorOrBuilder * .google.rpc.Status status = 2 [deprecated = true]; * * @deprecated google.monitoring.v3.CreateTimeSeriesError.status is deprecated. See - * google/monitoring/v3/metric_service.proto;l=468 + * google/monitoring/v3/metric_service.proto;l=480 * @return The status. */ @java.lang.Deprecated diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequest.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequest.java index c7bf9de4748e..e3f1f8e13ee3 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequest.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequest.java @@ -270,6 +270,33 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } + public static final int ACTIVE_ONLY_FIELD_NUMBER = 6; + private boolean activeOnly_ = false; + /** + * + * + *
+   * Optional. If true, only metrics and monitored resource types that have
+   * recent data (within roughly 25 hours) will be included in the response.
+   *  - If a metric descriptor enumerates monitored resource types, only the
+   *    monitored resource types for which the metric type has recent data will
+   *    be included in the returned metric descriptor, and if none of them have
+   *    recent data, the metric descriptor will not be returned.
+   *  - If a metric descriptor does not enumerate the compatible monitored
+   *    resource types, it will be returned only if the metric type has recent
+   *    data for some monitored resource type. The returned descriptor will not
+   *    enumerate any monitored resource types.
+   * 
+ * + * bool active_only = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The activeOnly. + */ + @java.lang.Override + public boolean getActiveOnly() { + return activeOnly_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -296,6 +323,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); } + if (activeOnly_ != false) { + output.writeBool(6, activeOnly_); + } getUnknownFields().writeTo(output); } @@ -317,6 +347,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); } + if (activeOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, activeOnly_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -337,6 +370,7 @@ public boolean equals(final java.lang.Object obj) { if (!getFilter().equals(other.getFilter())) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; + if (getActiveOnly() != other.getActiveOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -356,6 +390,8 @@ public int hashCode() { hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + ACTIVE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getActiveOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -500,6 +536,7 @@ public Builder clear() { filter_ = ""; pageSize_ = 0; pageToken_ = ""; + activeOnly_ = false; return this; } @@ -548,6 +585,9 @@ private void buildPartial0(com.google.monitoring.v3.ListMetricDescriptorsRequest if (((from_bitField0_ & 0x00000008) != 0)) { result.pageToken_ = pageToken_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.activeOnly_ = activeOnly_; + } } @java.lang.Override @@ -614,6 +654,9 @@ public Builder mergeFrom(com.google.monitoring.v3.ListMetricDescriptorsRequest o bitField0_ |= 0x00000008; onChanged(); } + if (other.getActiveOnly() != false) { + setActiveOnly(other.getActiveOnly()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -664,6 +707,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 42 + case 48: + { + activeOnly_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1140,6 +1189,86 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { return this; } + private boolean activeOnly_; + /** + * + * + *
+     * Optional. If true, only metrics and monitored resource types that have
+     * recent data (within roughly 25 hours) will be included in the response.
+     *  - If a metric descriptor enumerates monitored resource types, only the
+     *    monitored resource types for which the metric type has recent data will
+     *    be included in the returned metric descriptor, and if none of them have
+     *    recent data, the metric descriptor will not be returned.
+     *  - If a metric descriptor does not enumerate the compatible monitored
+     *    resource types, it will be returned only if the metric type has recent
+     *    data for some monitored resource type. The returned descriptor will not
+     *    enumerate any monitored resource types.
+     * 
+ * + * bool active_only = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The activeOnly. + */ + @java.lang.Override + public boolean getActiveOnly() { + return activeOnly_; + } + /** + * + * + *
+     * Optional. If true, only metrics and monitored resource types that have
+     * recent data (within roughly 25 hours) will be included in the response.
+     *  - If a metric descriptor enumerates monitored resource types, only the
+     *    monitored resource types for which the metric type has recent data will
+     *    be included in the returned metric descriptor, and if none of them have
+     *    recent data, the metric descriptor will not be returned.
+     *  - If a metric descriptor does not enumerate the compatible monitored
+     *    resource types, it will be returned only if the metric type has recent
+     *    data for some monitored resource type. The returned descriptor will not
+     *    enumerate any monitored resource types.
+     * 
+ * + * bool active_only = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The activeOnly to set. + * @return This builder for chaining. + */ + public Builder setActiveOnly(boolean value) { + + activeOnly_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If true, only metrics and monitored resource types that have
+     * recent data (within roughly 25 hours) will be included in the response.
+     *  - If a metric descriptor enumerates monitored resource types, only the
+     *    monitored resource types for which the metric type has recent data will
+     *    be included in the returned metric descriptor, and if none of them have
+     *    recent data, the metric descriptor will not be returned.
+     *  - If a metric descriptor does not enumerate the compatible monitored
+     *    resource types, it will be returned only if the metric type has recent
+     *    data for some monitored resource type. The returned descriptor will not
+     *    enumerate any monitored resource types.
+     * 
+ * + * bool active_only = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearActiveOnly() { + bitField0_ = (bitField0_ & ~0x00000010); + activeOnly_ = 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-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequestOrBuilder.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequestOrBuilder.java index cc718154fe04..d8cd73ecf822 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequestOrBuilder.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/ListMetricDescriptorsRequestOrBuilder.java @@ -145,4 +145,26 @@ public interface ListMetricDescriptorsRequestOrBuilder * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. If true, only metrics and monitored resource types that have
+   * recent data (within roughly 25 hours) will be included in the response.
+   *  - If a metric descriptor enumerates monitored resource types, only the
+   *    monitored resource types for which the metric type has recent data will
+   *    be included in the returned metric descriptor, and if none of them have
+   *    recent data, the metric descriptor will not be returned.
+   *  - If a metric descriptor does not enumerate the compatible monitored
+   *    resource types, it will be returned only if the metric type has recent
+   *    data for some monitored resource type. The returned descriptor will not
+   *    enumerate any monitored resource types.
+   * 
+ * + * bool active_only = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The activeOnly. + */ + boolean getActiveOnly(); } diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceProto.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceProto.java index 518cf96b0729..fd7d8df138b2 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceProto.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/MetricServiceProto.java @@ -125,137 +125,138 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\001(\t\"t\n%GetMonitoredResourceDescriptorReq" + "uest\022K\n\004name\030\003 \001(\tB=\340A\002\372A7\n5monitoring.g" + "oogleapis.com/MonitoredResourceDescripto" - + "r\"\246\001\n\034ListMetricDescriptorsRequest\022@\n\004na" + + "r\"\300\001\n\034ListMetricDescriptorsRequest\022@\n\004na" + "me\030\005 \001(\tB2\340A\002\372A,\022*monitoring.googleapis." + "com/MetricDescriptor\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\"r\n\035ListMetricDescriptorsRespo" - + "nse\0228\n\022metric_descriptors\030\001 \003(\0132\034.google" - + ".api.MetricDescriptor\022\027\n\017next_page_token" - + "\030\002 \001(\t\"^\n\032GetMetricDescriptorRequest\022@\n\004" - + "name\030\003 \001(\tB2\340A\002\372A,\n*monitoring.googleapi" - + "s.com/MetricDescriptor\"\237\001\n\035CreateMetricD" - + "escriptorRequest\022@\n\004name\030\003 \001(\tB2\340A\002\372A,\022*" - + "monitoring.googleapis.com/MetricDescript" - + "or\022<\n\021metric_descriptor\030\002 \001(\0132\034.google.a" - + "pi.MetricDescriptorB\003\340A\002\"a\n\035DeleteMetric" - + "DescriptorRequest\022@\n\004name\030\003 \001(\tB2\340A\002\372A,\n" - + "*monitoring.googleapis.com/MetricDescrip" - + "tor\"\316\003\n\025ListTimeSeriesRequest\022:\n\004name\030\n " - + "\001(\tB,\340A\002\372A&\022$monitoring.googleapis.com/T" - + "imeSeries\022\023\n\006filter\030\002 \001(\tB\003\340A\002\0229\n\010interv" - + "al\030\004 \001(\0132\".google.monitoring.v3.TimeInte" - + "rvalB\003\340A\002\0226\n\013aggregation\030\005 \001(\0132!.google." - + "monitoring.v3.Aggregation\022@\n\025secondary_a" - + "ggregation\030\013 \001(\0132!.google.monitoring.v3." - + "Aggregation\022\020\n\010order_by\030\006 \001(\t\022M\n\004view\030\007 " - + "\001(\0162:.google.monitoring.v3.ListTimeSerie" - + "sRequest.TimeSeriesViewB\003\340A\002\022\021\n\tpage_siz" - + "e\030\010 \001(\005\022\022\n\npage_token\030\t \001(\t\"\'\n\016TimeSerie" - + "sView\022\010\n\004FULL\020\000\022\013\n\007HEADERS\020\001\"\244\001\n\026ListTim" - + "eSeriesResponse\0225\n\013time_series\030\001 \003(\0132 .g" - + "oogle.monitoring.v3.TimeSeries\022\027\n\017next_p" - + "age_token\030\002 \001(\t\022,\n\020execution_errors\030\003 \003(" - + "\0132\022.google.rpc.Status\022\014\n\004unit\030\005 \001(\t\"\230\001\n\027" - + "CreateTimeSeriesRequest\022A\n\004name\030\003 \001(\tB3\340" - + "A\002\372A-\n+cloudresourcemanager.googleapis.c" - + "om/Project\022:\n\013time_series\030\002 \003(\0132 .google" - + ".monitoring.v3.TimeSeriesB\003\340A\002\"z\n\025Create" - + "TimeSeriesError\0229\n\013time_series\030\001 \001(\0132 .g" - + "oogle.monitoring.v3.TimeSeriesB\002\030\001\022&\n\006st" - + "atus\030\002 \001(\0132\022.google.rpc.StatusB\002\030\001\"\330\001\n\027C" - + "reateTimeSeriesSummary\022\031\n\021total_point_co" - + "unt\030\001 \001(\005\022\033\n\023success_point_count\030\002 \001(\005\022C" - + "\n\006errors\030\003 \003(\01323.google.monitoring.v3.Cr" - + "eateTimeSeriesSummary.Error\032@\n\005Error\022\"\n\006" - + "status\030\001 \001(\0132\022.google.rpc.Status\022\023\n\013poin" - + "t_count\030\002 \001(\005\"j\n\026QueryTimeSeriesRequest\022" - + "\021\n\004name\030\001 \001(\tB\003\340A\002\022\022\n\005query\030\007 \001(\tB\003\340A\002\022\021" - + "\n\tpage_size\030\t \001(\005\022\022\n\npage_token\030\n \001(\t:\002\030" - + "\001\"\356\001\n\027QueryTimeSeriesResponse\022J\n\026time_se" - + "ries_descriptor\030\010 \001(\0132*.google.monitorin" - + "g.v3.TimeSeriesDescriptor\022>\n\020time_series" - + "_data\030\t \003(\0132$.google.monitoring.v3.TimeS" - + "eriesData\022\027\n\017next_page_token\030\n \001(\t\022*\n\016pa" - + "rtial_errors\030\013 \003(\0132\022.google.rpc.Status:\002" - + "\030\001\"Y\n\016QueryErrorList\0220\n\006errors\030\001 \003(\0132 .g" - + "oogle.monitoring.v3.QueryError\022\025\n\rerror_" - + "summary\030\002 \001(\t2\274\017\n\rMetricService\022\344\001\n List" - + "MonitoredResourceDescriptors\022=.google.mo" - + "nitoring.v3.ListMonitoredResourceDescrip" - + "torsRequest\032>.google.monitoring.v3.ListM" - + "onitoredResourceDescriptorsResponse\"A\332A\004" - + "name\202\323\344\223\0024\0222/v3/{name=projects/*}/monito" - + "redResourceDescriptors\022\314\001\n\036GetMonitoredR" - + "esourceDescriptor\022;.google.monitoring.v3" - + ".GetMonitoredResourceDescriptorRequest\032\'" - + ".google.api.MonitoredResourceDescriptor\"" - + "D\332A\004name\202\323\344\223\0027\0225/v3/{name=projects/*/mon" - + "itoredResourceDescriptors/**}\022\270\001\n\025ListMe" - + "tricDescriptors\0222.google.monitoring.v3.L" - + "istMetricDescriptorsRequest\0323.google.mon" - + "itoring.v3.ListMetricDescriptorsResponse" - + "\"6\332A\004name\202\323\344\223\002)\022\'/v3/{name=projects/*}/m" - + "etricDescriptors\022\240\001\n\023GetMetricDescriptor" - + "\0220.google.monitoring.v3.GetMetricDescrip" - + "torRequest\032\034.google.api.MetricDescriptor" - + "\"9\332A\004name\202\323\344\223\002,\022*/v3/{name=projects/*/me" - + "tricDescriptors/**}\022\310\001\n\026CreateMetricDesc" - + "riptor\0223.google.monitoring.v3.CreateMetr" - + "icDescriptorRequest\032\034.google.api.MetricD" - + "escriptor\"[\332A\026name,metric_descriptor\202\323\344\223" - + "\002<\"\'/v3/{name=projects/*}/metricDescript" - + "ors:\021metric_descriptor\022\240\001\n\026DeleteMetricD" - + "escriptor\0223.google.monitoring.v3.DeleteM" - + "etricDescriptorRequest\032\026.google.protobuf" - + ".Empty\"9\332A\004name\202\323\344\223\002,**/v3/{name=project" - + "s/*/metricDescriptors/**}\022\376\001\n\016ListTimeSe" - + "ries\022+.google.monitoring.v3.ListTimeSeri" - + "esRequest\032,.google.monitoring.v3.ListTim" - + "eSeriesResponse\"\220\001\332A\031name,filter,interva" - + "l,view\202\323\344\223\002n\022 /v3/{name=projects/*}/time" - + "SeriesZ\'\022%/v3/{name=organizations/*}/tim" - + "eSeriesZ!\022\037/v3/{name=folders/*}/timeSeri" - + "es\022\231\001\n\020CreateTimeSeries\022-.google.monitor" - + "ing.v3.CreateTimeSeriesRequest\032\026.google." - + "protobuf.Empty\">\332A\020name,time_series\202\323\344\223\002" - + "%\" /v3/{name=projects/*}/timeSeries:\001*\022\256" - + "\001\n\027CreateServiceTimeSeries\022-.google.moni" - + "toring.v3.CreateTimeSeriesRequest\032\026.goog" - + "le.protobuf.Empty\"L\332A\020name,time_series\202\323" - + "\344\223\0023\"./v3/{name=projects/*}/timeSeries:c" - + "reateService:\001*\032\332\001\312A\031monitoring.googleap" - + "is.com\322A\272\001https://www.googleapis.com/aut" - + "h/cloud-platform,https://www.googleapis." - + "com/auth/monitoring,https://www.googleap" - + "is.com/auth/monitoring.read,https://www." - + "googleapis.com/auth/monitoring.writeB\211\010\n" - + "\030com.google.monitoring.v3B\022MetricService" - + "ProtoP\001ZAcloud.google.com/go/monitoring/" - + "apiv3/v2/monitoringpb;monitoringpb\252\002\032Goo" - + "gle.Cloud.Monitoring.V3\312\002\032Google\\Cloud\\M" - + "onitoring\\V3\352\002\035Google::Cloud::Monitoring" - + "::V3\352A\360\001\n*monitoring.googleapis.com/Metr" - + "icDescriptor\022;projects/{project}/metricD" - + "escriptors/{metric_descriptor=**}\022Eorgan" - + "izations/{organization}/metricDescriptor" - + "s/{metric_descriptor=**}\0229folders/{folde" - + "r}/metricDescriptors/{metric_descriptor=" - + "**}\022\001* \001\352A\267\002\n5monitoring.googleapis.com/" - + "MonitoredResourceDescriptor\022Oprojects/{p" - + "roject}/monitoredResourceDescriptors/{mo" - + "nitored_resource_descriptor}\022Yorganizati" - + "ons/{organization}/monitoredResourceDesc" - + "riptors/{monitored_resource_descriptor}\022" - + "Mfolders/{folder}/monitoredResourceDescr" - + "iptors/{monitored_resource_descriptor}\022\001" - + "* \001\352AQ\n#monitoring.googleapis.com/Worksp" - + "ace\022\022projects/{project}\022\026workspaces/{wor" - + "kspace}\352A\265\001\n$monitoring.googleapis.com/T" - + "imeSeries\022+projects/{project}/timeSeries" - + "/{time_series}\0225organizations/{organizat" - + "ion}/timeSeries/{time_series}\022)folders/{" - + "folder}/timeSeries/{time_series}b\006proto3" + + "\004 \001(\tB\003\340A\001\022\030\n\013active_only\030\006 \001(\010B\003\340A\001\"r\n\035" + + "ListMetricDescriptorsResponse\0228\n\022metric_" + + "descriptors\030\001 \003(\0132\034.google.api.MetricDes" + + "criptor\022\027\n\017next_page_token\030\002 \001(\t\"^\n\032GetM" + + "etricDescriptorRequest\022@\n\004name\030\003 \001(\tB2\340A" + + "\002\372A,\n*monitoring.googleapis.com/MetricDe" + + "scriptor\"\237\001\n\035CreateMetricDescriptorReque" + + "st\022@\n\004name\030\003 \001(\tB2\340A\002\372A,\022*monitoring.goo" + + "gleapis.com/MetricDescriptor\022<\n\021metric_d" + + "escriptor\030\002 \001(\0132\034.google.api.MetricDescr" + + "iptorB\003\340A\002\"a\n\035DeleteMetricDescriptorRequ" + + "est\022@\n\004name\030\003 \001(\tB2\340A\002\372A,\n*monitoring.go" + + "ogleapis.com/MetricDescriptor\"\316\003\n\025ListTi" + + "meSeriesRequest\022:\n\004name\030\n \001(\tB,\340A\002\372A&\022$m" + + "onitoring.googleapis.com/TimeSeries\022\023\n\006f" + + "ilter\030\002 \001(\tB\003\340A\002\0229\n\010interval\030\004 \001(\0132\".goo" + + "gle.monitoring.v3.TimeIntervalB\003\340A\002\0226\n\013a" + + "ggregation\030\005 \001(\0132!.google.monitoring.v3." + + "Aggregation\022@\n\025secondary_aggregation\030\013 \001" + + "(\0132!.google.monitoring.v3.Aggregation\022\020\n" + + "\010order_by\030\006 \001(\t\022M\n\004view\030\007 \001(\0162:.google.m" + + "onitoring.v3.ListTimeSeriesRequest.TimeS" + + "eriesViewB\003\340A\002\022\021\n\tpage_size\030\010 \001(\005\022\022\n\npag" + + "e_token\030\t \001(\t\"\'\n\016TimeSeriesView\022\010\n\004FULL\020" + + "\000\022\013\n\007HEADERS\020\001\"\244\001\n\026ListTimeSeriesRespons" + + "e\0225\n\013time_series\030\001 \003(\0132 .google.monitori" + + "ng.v3.TimeSeries\022\027\n\017next_page_token\030\002 \001(" + + "\t\022,\n\020execution_errors\030\003 \003(\0132\022.google.rpc" + + ".Status\022\014\n\004unit\030\005 \001(\t\"\230\001\n\027CreateTimeSeri" + + "esRequest\022A\n\004name\030\003 \001(\tB3\340A\002\372A-\n+cloudre" + + "sourcemanager.googleapis.com/Project\022:\n\013" + + "time_series\030\002 \003(\0132 .google.monitoring.v3" + + ".TimeSeriesB\003\340A\002\"z\n\025CreateTimeSeriesErro" + + "r\0229\n\013time_series\030\001 \001(\0132 .google.monitori" + + "ng.v3.TimeSeriesB\002\030\001\022&\n\006status\030\002 \001(\0132\022.g" + + "oogle.rpc.StatusB\002\030\001\"\330\001\n\027CreateTimeSerie" + + "sSummary\022\031\n\021total_point_count\030\001 \001(\005\022\033\n\023s" + + "uccess_point_count\030\002 \001(\005\022C\n\006errors\030\003 \003(\013" + + "23.google.monitoring.v3.CreateTimeSeries" + + "Summary.Error\032@\n\005Error\022\"\n\006status\030\001 \001(\0132\022" + + ".google.rpc.Status\022\023\n\013point_count\030\002 \001(\005\"" + + "j\n\026QueryTimeSeriesRequest\022\021\n\004name\030\001 \001(\tB" + + "\003\340A\002\022\022\n\005query\030\007 \001(\tB\003\340A\002\022\021\n\tpage_size\030\t " + + "\001(\005\022\022\n\npage_token\030\n \001(\t:\002\030\001\"\356\001\n\027QueryTim" + + "eSeriesResponse\022J\n\026time_series_descripto" + + "r\030\010 \001(\0132*.google.monitoring.v3.TimeSerie" + + "sDescriptor\022>\n\020time_series_data\030\t \003(\0132$." + + "google.monitoring.v3.TimeSeriesData\022\027\n\017n" + + "ext_page_token\030\n \001(\t\022*\n\016partial_errors\030\013" + + " \003(\0132\022.google.rpc.Status:\002\030\001\"Y\n\016QueryErr" + + "orList\0220\n\006errors\030\001 \003(\0132 .google.monitori" + + "ng.v3.QueryError\022\025\n\rerror_summary\030\002 \001(\t2" + + "\274\017\n\rMetricService\022\344\001\n ListMonitoredResou" + + "rceDescriptors\022=.google.monitoring.v3.Li" + + "stMonitoredResourceDescriptorsRequest\032>." + + "google.monitoring.v3.ListMonitoredResour" + + "ceDescriptorsResponse\"A\332A\004name\202\323\344\223\0024\0222/v" + + "3/{name=projects/*}/monitoredResourceDes" + + "criptors\022\314\001\n\036GetMonitoredResourceDescrip" + + "tor\022;.google.monitoring.v3.GetMonitoredR" + + "esourceDescriptorRequest\032\'.google.api.Mo" + + "nitoredResourceDescriptor\"D\332A\004name\202\323\344\223\0027" + + "\0225/v3/{name=projects/*/monitoredResource" + + "Descriptors/**}\022\270\001\n\025ListMetricDescriptor" + + "s\0222.google.monitoring.v3.ListMetricDescr" + + "iptorsRequest\0323.google.monitoring.v3.Lis" + + "tMetricDescriptorsResponse\"6\332A\004name\202\323\344\223\002" + + ")\022\'/v3/{name=projects/*}/metricDescripto" + + "rs\022\240\001\n\023GetMetricDescriptor\0220.google.moni" + + "toring.v3.GetMetricDescriptorRequest\032\034.g" + + "oogle.api.MetricDescriptor\"9\332A\004name\202\323\344\223\002" + + ",\022*/v3/{name=projects/*/metricDescriptor" + + "s/**}\022\310\001\n\026CreateMetricDescriptor\0223.googl" + + "e.monitoring.v3.CreateMetricDescriptorRe" + + "quest\032\034.google.api.MetricDescriptor\"[\332A\026" + + "name,metric_descriptor\202\323\344\223\002<\"\'/v3/{name=" + + "projects/*}/metricDescriptors:\021metric_de" + + "scriptor\022\240\001\n\026DeleteMetricDescriptor\0223.go" + + "ogle.monitoring.v3.DeleteMetricDescripto" + + "rRequest\032\026.google.protobuf.Empty\"9\332A\004nam" + + "e\202\323\344\223\002,**/v3/{name=projects/*/metricDesc" + + "riptors/**}\022\376\001\n\016ListTimeSeries\022+.google." + + "monitoring.v3.ListTimeSeriesRequest\032,.go" + + "ogle.monitoring.v3.ListTimeSeriesRespons" + + "e\"\220\001\332A\031name,filter,interval,view\202\323\344\223\002n\022 " + + "/v3/{name=projects/*}/timeSeriesZ\'\022%/v3/" + + "{name=organizations/*}/timeSeriesZ!\022\037/v3" + + "/{name=folders/*}/timeSeries\022\231\001\n\020CreateT" + + "imeSeries\022-.google.monitoring.v3.CreateT" + + "imeSeriesRequest\032\026.google.protobuf.Empty" + + "\">\332A\020name,time_series\202\323\344\223\002%\" /v3/{name=p" + + "rojects/*}/timeSeries:\001*\022\256\001\n\027CreateServi" + + "ceTimeSeries\022-.google.monitoring.v3.Crea" + + "teTimeSeriesRequest\032\026.google.protobuf.Em" + + "pty\"L\332A\020name,time_series\202\323\344\223\0023\"./v3/{nam" + + "e=projects/*}/timeSeries:createService:\001" + + "*\032\332\001\312A\031monitoring.googleapis.com\322A\272\001http" + + "s://www.googleapis.com/auth/cloud-platfo" + + "rm,https://www.googleapis.com/auth/monit" + + "oring,https://www.googleapis.com/auth/mo" + + "nitoring.read,https://www.googleapis.com" + + "/auth/monitoring.writeB\211\010\n\030com.google.mo" + + "nitoring.v3B\022MetricServiceProtoP\001ZAcloud" + + ".google.com/go/monitoring/apiv3/v2/monit" + + "oringpb;monitoringpb\252\002\032Google.Cloud.Moni" + + "toring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002" + + "\035Google::Cloud::Monitoring::V3\352A\360\001\n*moni" + + "toring.googleapis.com/MetricDescriptor\022;" + + "projects/{project}/metricDescriptors/{me" + + "tric_descriptor=**}\022Eorganizations/{orga" + + "nization}/metricDescriptors/{metric_desc" + + "riptor=**}\0229folders/{folder}/metricDescr" + + "iptors/{metric_descriptor=**}\022\001* \001\352A\267\002\n5" + + "monitoring.googleapis.com/MonitoredResou" + + "rceDescriptor\022Oprojects/{project}/monito" + + "redResourceDescriptors/{monitored_resour" + + "ce_descriptor}\022Yorganizations/{organizat" + + "ion}/monitoredResourceDescriptors/{monit" + + "ored_resource_descriptor}\022Mfolders/{fold" + + "er}/monitoredResourceDescriptors/{monito" + + "red_resource_descriptor}\022\001* \001\352AQ\n#monito" + + "ring.googleapis.com/Workspace\022\022projects/" + + "{project}\022\026workspaces/{workspace}\352A\265\001\n$m" + + "onitoring.googleapis.com/TimeSeries\022+pro" + + "jects/{project}/timeSeries/{time_series}" + + "\0225organizations/{organization}/timeSerie" + + "s/{time_series}\022)folders/{folder}/timeSe" + + "ries/{time_series}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -302,7 +303,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_monitoring_v3_ListMetricDescriptorsRequest_descriptor, new java.lang.String[] { - "Name", "Filter", "PageSize", "PageToken", + "Name", "Filter", "PageSize", "PageToken", "ActiveOnly", }); internal_static_google_monitoring_v3_ListMetricDescriptorsResponse_descriptor = getDescriptor().getMessageTypes().get(4); diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/metric_service.proto b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/metric_service.proto index 137a4ba35ea0..41b23c1ddafc 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/metric_service.proto +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/metric_service.proto @@ -272,6 +272,18 @@ message ListMetricDescriptorsRequest { // this field causes the method to return additional results from the previous // method call. string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, only metrics and monitored resource types that have + // recent data (within roughly 25 hours) will be included in the response. + // - If a metric descriptor enumerates monitored resource types, only the + // monitored resource types for which the metric type has recent data will + // be included in the returned metric descriptor, and if none of them have + // recent data, the metric descriptor will not be returned. + // - If a metric descriptor does not enumerate the compatible monitored + // resource types, it will be returned only if the metric type has recent + // data for some monitored resource type. The returned descriptor will not + // enumerate any monitored resource types. + bool active_only = 6 [(google.api.field_behavior) = OPTIONAL]; } // The `ListMetricDescriptors` response. diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/AsyncListMetricDescriptors.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/AsyncListMetricDescriptors.java index 276dbcb624ce..9ffe19c0f51a 100644 --- a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/AsyncListMetricDescriptors.java +++ b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/AsyncListMetricDescriptors.java @@ -42,6 +42,7 @@ public static void asyncListMetricDescriptors() throws Exception { .setFilter("filter-1274492040") .setPageSize(883849137) .setPageToken("pageToken873572522") + .setActiveOnly(true) .build(); ApiFuture future = metricServiceClient.listMetricDescriptorsPagedCallable().futureCall(request); diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/AsyncListMetricDescriptorsPaged.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/AsyncListMetricDescriptorsPaged.java index b0b44737e809..96e97715ed52 100644 --- a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/AsyncListMetricDescriptorsPaged.java +++ b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/AsyncListMetricDescriptorsPaged.java @@ -43,6 +43,7 @@ public static void asyncListMetricDescriptorsPaged() throws Exception { .setFilter("filter-1274492040") .setPageSize(883849137) .setPageToken("pageToken873572522") + .setActiveOnly(true) .build(); while (true) { ListMetricDescriptorsResponse response = diff --git a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptors.java b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptors.java index b6bfd090c7f4..f0367c7d2bb4 100644 --- a/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptors.java +++ b/java-monitoring/samples/snippets/generated/com/google/cloud/monitoring/v3/metricservice/listmetricdescriptors/SyncListMetricDescriptors.java @@ -41,6 +41,7 @@ public static void syncListMetricDescriptors() throws Exception { .setFilter("filter-1274492040") .setPageSize(883849137) .setPageToken("pageToken873572522") + .setActiveOnly(true) .build(); for (MetricDescriptor element : metricServiceClient.listMetricDescriptors(request).iterateAll()) { diff --git a/java-netapp/README.md b/java-netapp/README.md index f30ece4d5c9c..8f498e998d21 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.52.0 + 26.53.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.34.0 + 0.35.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-netapp:0.34.0' +implementation 'com.google.cloud:google-cloud-netapp:0.35.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-netapp" % "0.34.0" +libraryDependencies += "com.google.cloud" % "google-cloud-netapp" % "0.35.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.34.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-netapp/0.35.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-management/README.md b/java-network-management/README.md index 289b345338af..af68e98022ee 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.52.0 + 26.53.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.56.0 + 1.57.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-network-management:1.56.0' +implementation 'com.google.cloud:google-cloud-network-management:1.57.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-network-management" % "1.56.0" +libraryDependencies += "com.google.cloud" % "google-cloud-network-management" % "1.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-management.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-management/1.56.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-management/1.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-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceClient.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceClient.java new file mode 100644 index 000000000000..ba3f62385a89 --- /dev/null +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceClient.java @@ -0,0 +1,1853 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +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.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networkmanagement.v1.stub.VpcFlowLogsServiceStub; +import com.google.cloud.networkmanagement.v1.stub.VpcFlowLogsServiceStubSettings; +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.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: The VPC Flow Logs service in the Google Cloud Network Management API + * provides configurations that generate Flow Logs. The service and the configuration resources + * created using this service are global. + * + *

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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
+ *   VpcFlowLogsConfigName name =
+ *       VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]");
+ *   VpcFlowLogsConfig response = vpcFlowLogsServiceClient.getVpcFlowLogsConfig(name);
+ * }
+ * }
+ * + *

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

ListVpcFlowLogsConfigs

Lists all `VpcFlowLogsConfigs` in a given project.

+ *

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

+ *
    + *
  • listVpcFlowLogsConfigs(ListVpcFlowLogsConfigsRequest request) + *

+ *

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

+ *
    + *
  • listVpcFlowLogsConfigs(LocationName parent) + *

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

+ *
    + *
  • listVpcFlowLogsConfigsPagedCallable() + *

  • listVpcFlowLogsConfigsCallable() + *

+ *

GetVpcFlowLogsConfig

Gets the details of a specific `VpcFlowLogsConfig`.

+ *

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

+ *
    + *
  • getVpcFlowLogsConfig(GetVpcFlowLogsConfigRequest request) + *

+ *

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

+ *
    + *
  • getVpcFlowLogsConfig(VpcFlowLogsConfigName name) + *

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

+ *
    + *
  • getVpcFlowLogsConfigCallable() + *

+ *

CreateVpcFlowLogsConfig

Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already exists (even if the ID is different), the creation fails. Notes: + *

1. Creating a configuration with state=DISABLED will fail 2. The following fields are not considered as `settings` for the purpose of the check mentioned above, therefore - creating another configuration with the same fields but different values for the following fields will fail as well: * name * create_time * update_time * labels * description

+ *

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

+ *
    + *
  • createVpcFlowLogsConfigAsync(CreateVpcFlowLogsConfigRequest request) + *

+ *

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

+ *
    + *
  • createVpcFlowLogsConfigAsync(LocationName parent, VpcFlowLogsConfig vpcFlowLogsConfig, VpcFlowLogsConfigName vpcFlowLogsConfigId) + *

  • createVpcFlowLogsConfigAsync(LocationName parent, VpcFlowLogsConfig vpcFlowLogsConfig, String vpcFlowLogsConfigId) + *

  • createVpcFlowLogsConfigAsync(String parent, VpcFlowLogsConfig vpcFlowLogsConfig, VpcFlowLogsConfigName vpcFlowLogsConfigId) + *

  • createVpcFlowLogsConfigAsync(String parent, VpcFlowLogsConfig vpcFlowLogsConfig, String vpcFlowLogsConfigId) + *

+ *

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

+ *
    + *
  • createVpcFlowLogsConfigOperationCallable() + *

  • createVpcFlowLogsConfigCallable() + *

+ *

UpdateVpcFlowLogsConfig

Updates an existing `VpcFlowLogsConfig`. If a configuration with the exact same settings already exists (even if the ID is different), the creation fails. Notes: + *

1. Updating a configuration with state=DISABLED will fail. 2. The following fields are not considered as `settings` for the purpose of the check mentioned above, therefore - updating another configuration with the same fields but different values for the following fields will fail as well: * name * create_time * update_time * labels * description

+ *

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

+ *
    + *
  • updateVpcFlowLogsConfigAsync(UpdateVpcFlowLogsConfigRequest request) + *

+ *

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

+ *
    + *
  • updateVpcFlowLogsConfigAsync(VpcFlowLogsConfig vpcFlowLogsConfig, 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.

+ *
    + *
  • updateVpcFlowLogsConfigOperationCallable() + *

  • updateVpcFlowLogsConfigCallable() + *

+ *

DeleteVpcFlowLogsConfig

Deletes a specific `VpcFlowLogsConfig`.

+ *

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

+ *
    + *
  • deleteVpcFlowLogsConfigAsync(DeleteVpcFlowLogsConfigRequest request) + *

+ *

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

+ *
    + *
  • deleteVpcFlowLogsConfigAsync(VpcFlowLogsConfigName name) + *

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

+ *
    + *
  • deleteVpcFlowLogsConfigOperationCallable() + *

  • deleteVpcFlowLogsConfigCallable() + *

+ *

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 VpcFlowLogsServiceSettings 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
+ * VpcFlowLogsServiceSettings vpcFlowLogsServiceSettings =
+ *     VpcFlowLogsServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * VpcFlowLogsServiceClient vpcFlowLogsServiceClient =
+ *     VpcFlowLogsServiceClient.create(vpcFlowLogsServiceSettings);
+ * }
+ * + *

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
+ * VpcFlowLogsServiceSettings vpcFlowLogsServiceSettings =
+ *     VpcFlowLogsServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * VpcFlowLogsServiceClient vpcFlowLogsServiceClient =
+ *     VpcFlowLogsServiceClient.create(vpcFlowLogsServiceSettings);
+ * }
+ * + *

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * VpcFlowLogsServiceSettings vpcFlowLogsServiceSettings =
+ *     VpcFlowLogsServiceSettings.newHttpJsonBuilder().build();
+ * VpcFlowLogsServiceClient vpcFlowLogsServiceClient =
+ *     VpcFlowLogsServiceClient.create(vpcFlowLogsServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class VpcFlowLogsServiceClient implements BackgroundResource { + private final VpcFlowLogsServiceSettings settings; + private final VpcFlowLogsServiceStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of VpcFlowLogsServiceClient with default settings. */ + public static final VpcFlowLogsServiceClient create() throws IOException { + return create(VpcFlowLogsServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of VpcFlowLogsServiceClient, 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 VpcFlowLogsServiceClient create(VpcFlowLogsServiceSettings settings) + throws IOException { + return new VpcFlowLogsServiceClient(settings); + } + + /** + * Constructs an instance of VpcFlowLogsServiceClient, using the given stub for making calls. This + * is for advanced usage - prefer using create(VpcFlowLogsServiceSettings). + */ + public static final VpcFlowLogsServiceClient create(VpcFlowLogsServiceStub stub) { + return new VpcFlowLogsServiceClient(stub); + } + + /** + * Constructs an instance of VpcFlowLogsServiceClient, 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 VpcFlowLogsServiceClient(VpcFlowLogsServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((VpcFlowLogsServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected VpcFlowLogsServiceClient(VpcFlowLogsServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final VpcFlowLogsServiceSettings getSettings() { + return settings; + } + + public VpcFlowLogsServiceStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all `VpcFlowLogsConfigs` in a given 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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (VpcFlowLogsConfig element :
+   *       vpcFlowLogsServiceClient.listVpcFlowLogsConfigs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource of the VpcFlowLogsConfig: + * `projects/{project_id}/locations/global` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs(LocationName parent) { + ListVpcFlowLogsConfigsRequest request = + ListVpcFlowLogsConfigsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listVpcFlowLogsConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all `VpcFlowLogsConfigs` in a given 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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (VpcFlowLogsConfig element :
+   *       vpcFlowLogsServiceClient.listVpcFlowLogsConfigs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource of the VpcFlowLogsConfig: + * `projects/{project_id}/locations/global` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs(String parent) { + ListVpcFlowLogsConfigsRequest request = + ListVpcFlowLogsConfigsRequest.newBuilder().setParent(parent).build(); + return listVpcFlowLogsConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all `VpcFlowLogsConfigs` in a given 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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
+   *   ListVpcFlowLogsConfigsRequest request =
+   *       ListVpcFlowLogsConfigsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (VpcFlowLogsConfig element :
+   *       vpcFlowLogsServiceClient.listVpcFlowLogsConfigs(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 ListVpcFlowLogsConfigsPagedResponse listVpcFlowLogsConfigs( + ListVpcFlowLogsConfigsRequest request) { + return listVpcFlowLogsConfigsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all `VpcFlowLogsConfigs` in a given 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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
+   *   ListVpcFlowLogsConfigsRequest request =
+   *       ListVpcFlowLogsConfigsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       vpcFlowLogsServiceClient.listVpcFlowLogsConfigsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (VpcFlowLogsConfig element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listVpcFlowLogsConfigsPagedCallable() { + return stub.listVpcFlowLogsConfigsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all `VpcFlowLogsConfigs` in a given 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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
+   *   ListVpcFlowLogsConfigsRequest request =
+   *       ListVpcFlowLogsConfigsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListVpcFlowLogsConfigsResponse response =
+   *         vpcFlowLogsServiceClient.listVpcFlowLogsConfigsCallable().call(request);
+   *     for (VpcFlowLogsConfig element : response.getVpcFlowLogsConfigsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listVpcFlowLogsConfigsCallable() { + return stub.listVpcFlowLogsConfigsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific `VpcFlowLogsConfig`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
+   *   VpcFlowLogsConfigName name =
+   *       VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]");
+   *   VpcFlowLogsConfig response = vpcFlowLogsServiceClient.getVpcFlowLogsConfig(name);
+   * }
+   * }
+ * + * @param name Required. `VpcFlowLogsConfig` resource name using the form: + * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final VpcFlowLogsConfig getVpcFlowLogsConfig(VpcFlowLogsConfigName name) { + GetVpcFlowLogsConfigRequest request = + GetVpcFlowLogsConfigRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getVpcFlowLogsConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific `VpcFlowLogsConfig`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
+   *   String name =
+   *       VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]").toString();
+   *   VpcFlowLogsConfig response = vpcFlowLogsServiceClient.getVpcFlowLogsConfig(name);
+   * }
+   * }
+ * + * @param name Required. `VpcFlowLogsConfig` resource name using the form: + * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final VpcFlowLogsConfig getVpcFlowLogsConfig(String name) { + GetVpcFlowLogsConfigRequest request = + GetVpcFlowLogsConfigRequest.newBuilder().setName(name).build(); + return getVpcFlowLogsConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific `VpcFlowLogsConfig`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
+   *   GetVpcFlowLogsConfigRequest request =
+   *       GetVpcFlowLogsConfigRequest.newBuilder()
+   *           .setName(
+   *               VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]")
+   *                   .toString())
+   *           .build();
+   *   VpcFlowLogsConfig response = vpcFlowLogsServiceClient.getVpcFlowLogsConfig(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 VpcFlowLogsConfig getVpcFlowLogsConfig(GetVpcFlowLogsConfigRequest request) { + return getVpcFlowLogsConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific `VpcFlowLogsConfig`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
+   *   GetVpcFlowLogsConfigRequest request =
+   *       GetVpcFlowLogsConfigRequest.newBuilder()
+   *           .setName(
+   *               VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       vpcFlowLogsServiceClient.getVpcFlowLogsConfigCallable().futureCall(request);
+   *   // Do something.
+   *   VpcFlowLogsConfig response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getVpcFlowLogsConfigCallable() { + return stub.getVpcFlowLogsConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already + * exists (even if the ID is different), the creation fails. Notes: + * + *

1. Creating a configuration with state=DISABLED will fail 2. The following fields are not + * considered as `settings` for the purpose of the check mentioned above, therefore - creating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build();
+   *   VpcFlowLogsConfigName vpcFlowLogsConfigId =
+   *       VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]");
+   *   VpcFlowLogsConfig response =
+   *       vpcFlowLogsServiceClient
+   *           .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent resource of the VPC Flow Logs configuration to create: + * `projects/{project_id}/locations/global` + * @param vpcFlowLogsConfig Required. A `VpcFlowLogsConfig` resource + * @param vpcFlowLogsConfigId Required. ID of the `VpcFlowLogsConfig`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createVpcFlowLogsConfigAsync( + LocationName parent, + VpcFlowLogsConfig vpcFlowLogsConfig, + VpcFlowLogsConfigName vpcFlowLogsConfigId) { + CreateVpcFlowLogsConfigRequest request = + CreateVpcFlowLogsConfigRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setVpcFlowLogsConfig(vpcFlowLogsConfig) + .setVpcFlowLogsConfigId( + vpcFlowLogsConfigId == null ? null : vpcFlowLogsConfigId.toString()) + .build(); + return createVpcFlowLogsConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already + * exists (even if the ID is different), the creation fails. Notes: + * + *

1. Creating a configuration with state=DISABLED will fail 2. The following fields are not + * considered as `settings` for the purpose of the check mentioned above, therefore - creating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build();
+   *   String vpcFlowLogsConfigId =
+   *       VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]").toString();
+   *   VpcFlowLogsConfig response =
+   *       vpcFlowLogsServiceClient
+   *           .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent resource of the VPC Flow Logs configuration to create: + * `projects/{project_id}/locations/global` + * @param vpcFlowLogsConfig Required. A `VpcFlowLogsConfig` resource + * @param vpcFlowLogsConfigId Required. ID of the `VpcFlowLogsConfig`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createVpcFlowLogsConfigAsync( + LocationName parent, VpcFlowLogsConfig vpcFlowLogsConfig, String vpcFlowLogsConfigId) { + CreateVpcFlowLogsConfigRequest request = + CreateVpcFlowLogsConfigRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setVpcFlowLogsConfig(vpcFlowLogsConfig) + .setVpcFlowLogsConfigId(vpcFlowLogsConfigId) + .build(); + return createVpcFlowLogsConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already + * exists (even if the ID is different), the creation fails. Notes: + * + *

1. Creating a configuration with state=DISABLED will fail 2. The following fields are not + * considered as `settings` for the purpose of the check mentioned above, therefore - creating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build();
+   *   VpcFlowLogsConfigName vpcFlowLogsConfigId =
+   *       VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]");
+   *   VpcFlowLogsConfig response =
+   *       vpcFlowLogsServiceClient
+   *           .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent resource of the VPC Flow Logs configuration to create: + * `projects/{project_id}/locations/global` + * @param vpcFlowLogsConfig Required. A `VpcFlowLogsConfig` resource + * @param vpcFlowLogsConfigId Required. ID of the `VpcFlowLogsConfig`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createVpcFlowLogsConfigAsync( + String parent, + VpcFlowLogsConfig vpcFlowLogsConfig, + VpcFlowLogsConfigName vpcFlowLogsConfigId) { + CreateVpcFlowLogsConfigRequest request = + CreateVpcFlowLogsConfigRequest.newBuilder() + .setParent(parent) + .setVpcFlowLogsConfig(vpcFlowLogsConfig) + .setVpcFlowLogsConfigId( + vpcFlowLogsConfigId == null ? null : vpcFlowLogsConfigId.toString()) + .build(); + return createVpcFlowLogsConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already + * exists (even if the ID is different), the creation fails. Notes: + * + *

1. Creating a configuration with state=DISABLED will fail 2. The following fields are not + * considered as `settings` for the purpose of the check mentioned above, therefore - creating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build();
+   *   String vpcFlowLogsConfigId =
+   *       VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]").toString();
+   *   VpcFlowLogsConfig response =
+   *       vpcFlowLogsServiceClient
+   *           .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent resource of the VPC Flow Logs configuration to create: + * `projects/{project_id}/locations/global` + * @param vpcFlowLogsConfig Required. A `VpcFlowLogsConfig` resource + * @param vpcFlowLogsConfigId Required. ID of the `VpcFlowLogsConfig`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createVpcFlowLogsConfigAsync( + String parent, VpcFlowLogsConfig vpcFlowLogsConfig, String vpcFlowLogsConfigId) { + CreateVpcFlowLogsConfigRequest request = + CreateVpcFlowLogsConfigRequest.newBuilder() + .setParent(parent) + .setVpcFlowLogsConfig(vpcFlowLogsConfig) + .setVpcFlowLogsConfigId(vpcFlowLogsConfigId) + .build(); + return createVpcFlowLogsConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already + * exists (even if the ID is different), the creation fails. Notes: + * + *

1. Creating a configuration with state=DISABLED will fail 2. The following fields are not + * considered as `settings` for the purpose of the check mentioned above, therefore - creating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
+   *   CreateVpcFlowLogsConfigRequest request =
+   *       CreateVpcFlowLogsConfigRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setVpcFlowLogsConfigId(
+   *               VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]")
+   *                   .toString())
+   *           .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build())
+   *           .build();
+   *   VpcFlowLogsConfig response =
+   *       vpcFlowLogsServiceClient.createVpcFlowLogsConfigAsync(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 createVpcFlowLogsConfigAsync( + CreateVpcFlowLogsConfigRequest request) { + return createVpcFlowLogsConfigOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already + * exists (even if the ID is different), the creation fails. Notes: + * + *

1. Creating a configuration with state=DISABLED will fail 2. The following fields are not + * considered as `settings` for the purpose of the check mentioned above, therefore - creating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
+   *   CreateVpcFlowLogsConfigRequest request =
+   *       CreateVpcFlowLogsConfigRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setVpcFlowLogsConfigId(
+   *               VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]")
+   *                   .toString())
+   *           .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       vpcFlowLogsServiceClient.createVpcFlowLogsConfigOperationCallable().futureCall(request);
+   *   // Do something.
+   *   VpcFlowLogsConfig response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + CreateVpcFlowLogsConfigRequest, VpcFlowLogsConfig, OperationMetadata> + createVpcFlowLogsConfigOperationCallable() { + return stub.createVpcFlowLogsConfigOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already + * exists (even if the ID is different), the creation fails. Notes: + * + *

1. Creating a configuration with state=DISABLED will fail 2. The following fields are not + * considered as `settings` for the purpose of the check mentioned above, therefore - creating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
+   *   CreateVpcFlowLogsConfigRequest request =
+   *       CreateVpcFlowLogsConfigRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setVpcFlowLogsConfigId(
+   *               VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]")
+   *                   .toString())
+   *           .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       vpcFlowLogsServiceClient.createVpcFlowLogsConfigCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createVpcFlowLogsConfigCallable() { + return stub.createVpcFlowLogsConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing `VpcFlowLogsConfig`. If a configuration with the exact same settings + * already exists (even if the ID is different), the creation fails. Notes: + * + *

1. Updating a configuration with state=DISABLED will fail. 2. The following fields are not + * considered as `settings` for the purpose of the check mentioned above, therefore - updating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
+   *   VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   VpcFlowLogsConfig response =
+   *       vpcFlowLogsServiceClient
+   *           .updateVpcFlowLogsConfigAsync(vpcFlowLogsConfig, updateMask)
+   *           .get();
+   * }
+   * }
+ * + * @param vpcFlowLogsConfig Required. Only fields specified in update_mask are updated. + * @param updateMask Required. Mask of fields to update. At least one path must be supplied in + * this field. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateVpcFlowLogsConfigAsync( + VpcFlowLogsConfig vpcFlowLogsConfig, FieldMask updateMask) { + UpdateVpcFlowLogsConfigRequest request = + UpdateVpcFlowLogsConfigRequest.newBuilder() + .setVpcFlowLogsConfig(vpcFlowLogsConfig) + .setUpdateMask(updateMask) + .build(); + return updateVpcFlowLogsConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing `VpcFlowLogsConfig`. If a configuration with the exact same settings + * already exists (even if the ID is different), the creation fails. Notes: + * + *

1. Updating a configuration with state=DISABLED will fail. 2. The following fields are not + * considered as `settings` for the purpose of the check mentioned above, therefore - updating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
+   *   UpdateVpcFlowLogsConfigRequest request =
+   *       UpdateVpcFlowLogsConfigRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build())
+   *           .build();
+   *   VpcFlowLogsConfig response =
+   *       vpcFlowLogsServiceClient.updateVpcFlowLogsConfigAsync(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 updateVpcFlowLogsConfigAsync( + UpdateVpcFlowLogsConfigRequest request) { + return updateVpcFlowLogsConfigOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing `VpcFlowLogsConfig`. If a configuration with the exact same settings + * already exists (even if the ID is different), the creation fails. Notes: + * + *

1. Updating a configuration with state=DISABLED will fail. 2. The following fields are not + * considered as `settings` for the purpose of the check mentioned above, therefore - updating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
+   *   UpdateVpcFlowLogsConfigRequest request =
+   *       UpdateVpcFlowLogsConfigRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       vpcFlowLogsServiceClient.updateVpcFlowLogsConfigOperationCallable().futureCall(request);
+   *   // Do something.
+   *   VpcFlowLogsConfig response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + UpdateVpcFlowLogsConfigRequest, VpcFlowLogsConfig, OperationMetadata> + updateVpcFlowLogsConfigOperationCallable() { + return stub.updateVpcFlowLogsConfigOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing `VpcFlowLogsConfig`. If a configuration with the exact same settings + * already exists (even if the ID is different), the creation fails. Notes: + * + *

1. Updating a configuration with state=DISABLED will fail. 2. The following fields are not + * considered as `settings` for the purpose of the check mentioned above, therefore - updating + * another configuration with the same fields but different values for the following fields will + * fail as well: * name * create_time * update_time * labels * description + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
+   *   UpdateVpcFlowLogsConfigRequest request =
+   *       UpdateVpcFlowLogsConfigRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       vpcFlowLogsServiceClient.updateVpcFlowLogsConfigCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateVpcFlowLogsConfigCallable() { + return stub.updateVpcFlowLogsConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific `VpcFlowLogsConfig`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
+   *   VpcFlowLogsConfigName name =
+   *       VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]");
+   *   vpcFlowLogsServiceClient.deleteVpcFlowLogsConfigAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. `VpcFlowLogsConfig` resource name using the form: + * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteVpcFlowLogsConfigAsync( + VpcFlowLogsConfigName name) { + DeleteVpcFlowLogsConfigRequest request = + DeleteVpcFlowLogsConfigRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteVpcFlowLogsConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific `VpcFlowLogsConfig`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
+   *   String name =
+   *       VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]").toString();
+   *   vpcFlowLogsServiceClient.deleteVpcFlowLogsConfigAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. `VpcFlowLogsConfig` resource name using the form: + * `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteVpcFlowLogsConfigAsync(String name) { + DeleteVpcFlowLogsConfigRequest request = + DeleteVpcFlowLogsConfigRequest.newBuilder().setName(name).build(); + return deleteVpcFlowLogsConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific `VpcFlowLogsConfig`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
+   *   DeleteVpcFlowLogsConfigRequest request =
+   *       DeleteVpcFlowLogsConfigRequest.newBuilder()
+   *           .setName(
+   *               VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]")
+   *                   .toString())
+   *           .build();
+   *   vpcFlowLogsServiceClient.deleteVpcFlowLogsConfigAsync(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 deleteVpcFlowLogsConfigAsync( + DeleteVpcFlowLogsConfigRequest request) { + return deleteVpcFlowLogsConfigOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific `VpcFlowLogsConfig`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
+   *   DeleteVpcFlowLogsConfigRequest request =
+   *       DeleteVpcFlowLogsConfigRequest.newBuilder()
+   *           .setName(
+   *               VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]")
+   *                   .toString())
+   *           .build();
+   *   OperationFuture future =
+   *       vpcFlowLogsServiceClient.deleteVpcFlowLogsConfigOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteVpcFlowLogsConfigOperationCallable() { + return stub.deleteVpcFlowLogsConfigOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific `VpcFlowLogsConfig`. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
+   *   DeleteVpcFlowLogsConfigRequest request =
+   *       DeleteVpcFlowLogsConfigRequest.newBuilder()
+   *           .setName(
+   *               VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       vpcFlowLogsServiceClient.deleteVpcFlowLogsConfigCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteVpcFlowLogsConfigCallable() { + return stub.deleteVpcFlowLogsConfigCallable(); + } + + // 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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : vpcFlowLogsServiceClient.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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       vpcFlowLogsServiceClient.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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         vpcFlowLogsServiceClient.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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = vpcFlowLogsServiceClient.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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future =
+   *       vpcFlowLogsServiceClient.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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = vpcFlowLogsServiceClient.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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       vpcFlowLogsServiceClient.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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = vpcFlowLogsServiceClient.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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       vpcFlowLogsServiceClient.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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = vpcFlowLogsServiceClient.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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       vpcFlowLogsServiceClient.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 ListVpcFlowLogsConfigsPagedResponse + extends AbstractPagedListResponse< + ListVpcFlowLogsConfigsRequest, + ListVpcFlowLogsConfigsResponse, + VpcFlowLogsConfig, + ListVpcFlowLogsConfigsPage, + ListVpcFlowLogsConfigsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListVpcFlowLogsConfigsRequest, ListVpcFlowLogsConfigsResponse, VpcFlowLogsConfig> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListVpcFlowLogsConfigsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListVpcFlowLogsConfigsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListVpcFlowLogsConfigsPagedResponse(ListVpcFlowLogsConfigsPage page) { + super(page, ListVpcFlowLogsConfigsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListVpcFlowLogsConfigsPage + extends AbstractPage< + ListVpcFlowLogsConfigsRequest, + ListVpcFlowLogsConfigsResponse, + VpcFlowLogsConfig, + ListVpcFlowLogsConfigsPage> { + + private ListVpcFlowLogsConfigsPage( + PageContext< + ListVpcFlowLogsConfigsRequest, ListVpcFlowLogsConfigsResponse, VpcFlowLogsConfig> + context, + ListVpcFlowLogsConfigsResponse response) { + super(context, response); + } + + private static ListVpcFlowLogsConfigsPage createEmptyPage() { + return new ListVpcFlowLogsConfigsPage(null, null); + } + + @Override + protected ListVpcFlowLogsConfigsPage createPage( + PageContext< + ListVpcFlowLogsConfigsRequest, ListVpcFlowLogsConfigsResponse, VpcFlowLogsConfig> + context, + ListVpcFlowLogsConfigsResponse response) { + return new ListVpcFlowLogsConfigsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListVpcFlowLogsConfigsRequest, ListVpcFlowLogsConfigsResponse, VpcFlowLogsConfig> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListVpcFlowLogsConfigsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListVpcFlowLogsConfigsRequest, + ListVpcFlowLogsConfigsResponse, + VpcFlowLogsConfig, + ListVpcFlowLogsConfigsPage, + ListVpcFlowLogsConfigsFixedSizeCollection> { + + private ListVpcFlowLogsConfigsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListVpcFlowLogsConfigsFixedSizeCollection createEmptyCollection() { + return new ListVpcFlowLogsConfigsFixedSizeCollection(null, 0); + } + + @Override + protected ListVpcFlowLogsConfigsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListVpcFlowLogsConfigsFixedSizeCollection(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-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceSettings.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceSettings.java new file mode 100644 index 000000000000..886285a0123f --- /dev/null +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceSettings.java @@ -0,0 +1,411 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1; + +import static com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient.ListVpcFlowLogsConfigsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +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.cloud.networkmanagement.v1.stub.VpcFlowLogsServiceStubSettings; +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 VpcFlowLogsServiceClient}. + * + *

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

    + *
  • The default service address (networkmanagement.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 getVpcFlowLogsConfig: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * VpcFlowLogsServiceSettings.Builder vpcFlowLogsServiceSettingsBuilder =
+ *     VpcFlowLogsServiceSettings.newBuilder();
+ * vpcFlowLogsServiceSettingsBuilder
+ *     .getVpcFlowLogsConfigSettings()
+ *     .setRetrySettings(
+ *         vpcFlowLogsServiceSettingsBuilder
+ *             .getVpcFlowLogsConfigSettings()
+ *             .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());
+ * VpcFlowLogsServiceSettings vpcFlowLogsServiceSettings =
+ *     vpcFlowLogsServiceSettingsBuilder.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 createVpcFlowLogsConfig: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * VpcFlowLogsServiceSettings.Builder vpcFlowLogsServiceSettingsBuilder =
+ *     VpcFlowLogsServiceSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * vpcFlowLogsServiceSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class VpcFlowLogsServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to listVpcFlowLogsConfigs. */ + public PagedCallSettings< + ListVpcFlowLogsConfigsRequest, + ListVpcFlowLogsConfigsResponse, + ListVpcFlowLogsConfigsPagedResponse> + listVpcFlowLogsConfigsSettings() { + return ((VpcFlowLogsServiceStubSettings) getStubSettings()).listVpcFlowLogsConfigsSettings(); + } + + /** Returns the object with the settings used for calls to getVpcFlowLogsConfig. */ + public UnaryCallSettings + getVpcFlowLogsConfigSettings() { + return ((VpcFlowLogsServiceStubSettings) getStubSettings()).getVpcFlowLogsConfigSettings(); + } + + /** Returns the object with the settings used for calls to createVpcFlowLogsConfig. */ + public UnaryCallSettings + createVpcFlowLogsConfigSettings() { + return ((VpcFlowLogsServiceStubSettings) getStubSettings()).createVpcFlowLogsConfigSettings(); + } + + /** Returns the object with the settings used for calls to createVpcFlowLogsConfig. */ + public OperationCallSettings + createVpcFlowLogsConfigOperationSettings() { + return ((VpcFlowLogsServiceStubSettings) getStubSettings()) + .createVpcFlowLogsConfigOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateVpcFlowLogsConfig. */ + public UnaryCallSettings + updateVpcFlowLogsConfigSettings() { + return ((VpcFlowLogsServiceStubSettings) getStubSettings()).updateVpcFlowLogsConfigSettings(); + } + + /** Returns the object with the settings used for calls to updateVpcFlowLogsConfig. */ + public OperationCallSettings + updateVpcFlowLogsConfigOperationSettings() { + return ((VpcFlowLogsServiceStubSettings) getStubSettings()) + .updateVpcFlowLogsConfigOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteVpcFlowLogsConfig. */ + public UnaryCallSettings + deleteVpcFlowLogsConfigSettings() { + return ((VpcFlowLogsServiceStubSettings) getStubSettings()).deleteVpcFlowLogsConfigSettings(); + } + + /** Returns the object with the settings used for calls to deleteVpcFlowLogsConfig. */ + public OperationCallSettings + deleteVpcFlowLogsConfigOperationSettings() { + return ((VpcFlowLogsServiceStubSettings) getStubSettings()) + .deleteVpcFlowLogsConfigOperationSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((VpcFlowLogsServiceStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((VpcFlowLogsServiceStubSettings) getStubSettings()).getLocationSettings(); + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((VpcFlowLogsServiceStubSettings) getStubSettings()).setIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((VpcFlowLogsServiceStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return ((VpcFlowLogsServiceStubSettings) getStubSettings()).testIamPermissionsSettings(); + } + + public static final VpcFlowLogsServiceSettings create(VpcFlowLogsServiceStubSettings stub) + throws IOException { + return new VpcFlowLogsServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return VpcFlowLogsServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return VpcFlowLogsServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return VpcFlowLogsServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return VpcFlowLogsServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return VpcFlowLogsServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return VpcFlowLogsServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return VpcFlowLogsServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return VpcFlowLogsServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected VpcFlowLogsServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for VpcFlowLogsServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(VpcFlowLogsServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(VpcFlowLogsServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(VpcFlowLogsServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(VpcFlowLogsServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(VpcFlowLogsServiceStubSettings.newHttpJsonBuilder()); + } + + public VpcFlowLogsServiceStubSettings.Builder getStubSettingsBuilder() { + return ((VpcFlowLogsServiceStubSettings.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 listVpcFlowLogsConfigs. */ + public PagedCallSettings.Builder< + ListVpcFlowLogsConfigsRequest, + ListVpcFlowLogsConfigsResponse, + ListVpcFlowLogsConfigsPagedResponse> + listVpcFlowLogsConfigsSettings() { + return getStubSettingsBuilder().listVpcFlowLogsConfigsSettings(); + } + + /** Returns the builder for the settings used for calls to getVpcFlowLogsConfig. */ + public UnaryCallSettings.Builder + getVpcFlowLogsConfigSettings() { + return getStubSettingsBuilder().getVpcFlowLogsConfigSettings(); + } + + /** Returns the builder for the settings used for calls to createVpcFlowLogsConfig. */ + public UnaryCallSettings.Builder + createVpcFlowLogsConfigSettings() { + return getStubSettingsBuilder().createVpcFlowLogsConfigSettings(); + } + + /** Returns the builder for the settings used for calls to createVpcFlowLogsConfig. */ + public OperationCallSettings.Builder< + CreateVpcFlowLogsConfigRequest, VpcFlowLogsConfig, OperationMetadata> + createVpcFlowLogsConfigOperationSettings() { + return getStubSettingsBuilder().createVpcFlowLogsConfigOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateVpcFlowLogsConfig. */ + public UnaryCallSettings.Builder + updateVpcFlowLogsConfigSettings() { + return getStubSettingsBuilder().updateVpcFlowLogsConfigSettings(); + } + + /** Returns the builder for the settings used for calls to updateVpcFlowLogsConfig. */ + public OperationCallSettings.Builder< + UpdateVpcFlowLogsConfigRequest, VpcFlowLogsConfig, OperationMetadata> + updateVpcFlowLogsConfigOperationSettings() { + return getStubSettingsBuilder().updateVpcFlowLogsConfigOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteVpcFlowLogsConfig. */ + public UnaryCallSettings.Builder + deleteVpcFlowLogsConfigSettings() { + return getStubSettingsBuilder().deleteVpcFlowLogsConfigSettings(); + } + + /** Returns the builder for the settings used for calls to deleteVpcFlowLogsConfig. */ + public OperationCallSettings.Builder + deleteVpcFlowLogsConfigOperationSettings() { + return getStubSettingsBuilder().deleteVpcFlowLogsConfigOperationSettings(); + } + + /** 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 VpcFlowLogsServiceSettings build() throws IOException { + return new VpcFlowLogsServiceSettings(this); + } + } +} diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/gapic_metadata.json b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/gapic_metadata.json index 8569b59aff0e..8e1992017e46 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/gapic_metadata.json +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/gapic_metadata.json @@ -46,6 +46,45 @@ } } } + }, + "VpcFlowLogsService": { + "clients": { + "grpc": { + "libraryClient": "VpcFlowLogsServiceClient", + "rpcs": { + "CreateVpcFlowLogsConfig": { + "methods": ["createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigAsync", "createVpcFlowLogsConfigOperationCallable", "createVpcFlowLogsConfigCallable"] + }, + "DeleteVpcFlowLogsConfig": { + "methods": ["deleteVpcFlowLogsConfigAsync", "deleteVpcFlowLogsConfigAsync", "deleteVpcFlowLogsConfigAsync", "deleteVpcFlowLogsConfigOperationCallable", "deleteVpcFlowLogsConfigCallable"] + }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicyCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "GetVpcFlowLogsConfig": { + "methods": ["getVpcFlowLogsConfig", "getVpcFlowLogsConfig", "getVpcFlowLogsConfig", "getVpcFlowLogsConfigCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "ListVpcFlowLogsConfigs": { + "methods": ["listVpcFlowLogsConfigs", "listVpcFlowLogsConfigs", "listVpcFlowLogsConfigs", "listVpcFlowLogsConfigsPagedCallable", "listVpcFlowLogsConfigsCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicyCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissionsCallable"] + }, + "UpdateVpcFlowLogsConfig": { + "methods": ["updateVpcFlowLogsConfigAsync", "updateVpcFlowLogsConfigAsync", "updateVpcFlowLogsConfigOperationCallable", "updateVpcFlowLogsConfigCallable"] + } + } + } + } } } } \ No newline at end of file diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/package-info.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/package-info.java index 9aed0dbc4430..5023fcfbe6bb 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/package-info.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/package-info.java @@ -43,6 +43,27 @@ * ConnectivityTest response = reachabilityServiceClient.getConnectivityTest(name); * } * }

+ * + *

======================= VpcFlowLogsServiceClient ======================= + * + *

Service Description: The VPC Flow Logs service in the Google Cloud Network Management API + * provides configurations that generate Flow Logs. The service and the configuration resources + * created using this service are global. + * + *

Sample for VpcFlowLogsServiceClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) {
+ *   VpcFlowLogsConfigName name =
+ *       VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]");
+ *   VpcFlowLogsConfig response = vpcFlowLogsServiceClient.getVpcFlowLogsConfig(name);
+ * }
+ * }
*/ @Generated("by gapic-generator-java") package com.google.cloud.networkmanagement.v1; diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/GrpcVpcFlowLogsServiceCallableFactory.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/GrpcVpcFlowLogsServiceCallableFactory.java new file mode 100644 index 000000000000..8da2d4a63c1c --- /dev/null +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/GrpcVpcFlowLogsServiceCallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.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 VpcFlowLogsService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcVpcFlowLogsServiceCallableFactory 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-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/GrpcVpcFlowLogsServiceStub.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/GrpcVpcFlowLogsServiceStub.java new file mode 100644 index 000000000000..3c8e9e47c570 --- /dev/null +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/GrpcVpcFlowLogsServiceStub.java @@ -0,0 +1,549 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.stub; + +import static com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient.ListVpcFlowLogsConfigsPagedResponse; + +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.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse; +import com.google.cloud.networkmanagement.v1.OperationMetadata; +import com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +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 VpcFlowLogsService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcVpcFlowLogsServiceStub extends VpcFlowLogsServiceStub { + private static final MethodDescriptor< + ListVpcFlowLogsConfigsRequest, ListVpcFlowLogsConfigsResponse> + listVpcFlowLogsConfigsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkmanagement.v1.VpcFlowLogsService/ListVpcFlowLogsConfigs") + .setRequestMarshaller( + ProtoUtils.marshaller(ListVpcFlowLogsConfigsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListVpcFlowLogsConfigsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getVpcFlowLogsConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkmanagement.v1.VpcFlowLogsService/GetVpcFlowLogsConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(GetVpcFlowLogsConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(VpcFlowLogsConfig.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createVpcFlowLogsConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkmanagement.v1.VpcFlowLogsService/CreateVpcFlowLogsConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateVpcFlowLogsConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateVpcFlowLogsConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkmanagement.v1.VpcFlowLogsService/UpdateVpcFlowLogsConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateVpcFlowLogsConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteVpcFlowLogsConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkmanagement.v1.VpcFlowLogsService/DeleteVpcFlowLogsConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteVpcFlowLogsConfigRequest.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 + listVpcFlowLogsConfigsCallable; + private final UnaryCallable + listVpcFlowLogsConfigsPagedCallable; + private final UnaryCallable + getVpcFlowLogsConfigCallable; + private final UnaryCallable + createVpcFlowLogsConfigCallable; + private final OperationCallable< + CreateVpcFlowLogsConfigRequest, VpcFlowLogsConfig, OperationMetadata> + createVpcFlowLogsConfigOperationCallable; + private final UnaryCallable + updateVpcFlowLogsConfigCallable; + private final OperationCallable< + UpdateVpcFlowLogsConfigRequest, VpcFlowLogsConfig, OperationMetadata> + updateVpcFlowLogsConfigOperationCallable; + private final UnaryCallable + deleteVpcFlowLogsConfigCallable; + private final OperationCallable + deleteVpcFlowLogsConfigOperationCallable; + 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 GrpcVpcFlowLogsServiceStub create(VpcFlowLogsServiceStubSettings settings) + throws IOException { + return new GrpcVpcFlowLogsServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcVpcFlowLogsServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcVpcFlowLogsServiceStub( + VpcFlowLogsServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcVpcFlowLogsServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcVpcFlowLogsServiceStub( + VpcFlowLogsServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcVpcFlowLogsServiceStub, 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 GrpcVpcFlowLogsServiceStub( + VpcFlowLogsServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcVpcFlowLogsServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcVpcFlowLogsServiceStub, 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 GrpcVpcFlowLogsServiceStub( + VpcFlowLogsServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + listVpcFlowLogsConfigsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listVpcFlowLogsConfigsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getVpcFlowLogsConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getVpcFlowLogsConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createVpcFlowLogsConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createVpcFlowLogsConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateVpcFlowLogsConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateVpcFlowLogsConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "vpc_flow_logs_config.name", + String.valueOf(request.getVpcFlowLogsConfig().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteVpcFlowLogsConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteVpcFlowLogsConfigMethodDescriptor) + .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.listVpcFlowLogsConfigsCallable = + callableFactory.createUnaryCallable( + listVpcFlowLogsConfigsTransportSettings, + settings.listVpcFlowLogsConfigsSettings(), + clientContext); + this.listVpcFlowLogsConfigsPagedCallable = + callableFactory.createPagedCallable( + listVpcFlowLogsConfigsTransportSettings, + settings.listVpcFlowLogsConfigsSettings(), + clientContext); + this.getVpcFlowLogsConfigCallable = + callableFactory.createUnaryCallable( + getVpcFlowLogsConfigTransportSettings, + settings.getVpcFlowLogsConfigSettings(), + clientContext); + this.createVpcFlowLogsConfigCallable = + callableFactory.createUnaryCallable( + createVpcFlowLogsConfigTransportSettings, + settings.createVpcFlowLogsConfigSettings(), + clientContext); + this.createVpcFlowLogsConfigOperationCallable = + callableFactory.createOperationCallable( + createVpcFlowLogsConfigTransportSettings, + settings.createVpcFlowLogsConfigOperationSettings(), + clientContext, + operationsStub); + this.updateVpcFlowLogsConfigCallable = + callableFactory.createUnaryCallable( + updateVpcFlowLogsConfigTransportSettings, + settings.updateVpcFlowLogsConfigSettings(), + clientContext); + this.updateVpcFlowLogsConfigOperationCallable = + callableFactory.createOperationCallable( + updateVpcFlowLogsConfigTransportSettings, + settings.updateVpcFlowLogsConfigOperationSettings(), + clientContext, + operationsStub); + this.deleteVpcFlowLogsConfigCallable = + callableFactory.createUnaryCallable( + deleteVpcFlowLogsConfigTransportSettings, + settings.deleteVpcFlowLogsConfigSettings(), + clientContext); + this.deleteVpcFlowLogsConfigOperationCallable = + callableFactory.createOperationCallable( + deleteVpcFlowLogsConfigTransportSettings, + settings.deleteVpcFlowLogsConfigOperationSettings(), + 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 + listVpcFlowLogsConfigsCallable() { + return listVpcFlowLogsConfigsCallable; + } + + @Override + public UnaryCallable + listVpcFlowLogsConfigsPagedCallable() { + return listVpcFlowLogsConfigsPagedCallable; + } + + @Override + public UnaryCallable + getVpcFlowLogsConfigCallable() { + return getVpcFlowLogsConfigCallable; + } + + @Override + public UnaryCallable + createVpcFlowLogsConfigCallable() { + return createVpcFlowLogsConfigCallable; + } + + @Override + public OperationCallable + createVpcFlowLogsConfigOperationCallable() { + return createVpcFlowLogsConfigOperationCallable; + } + + @Override + public UnaryCallable + updateVpcFlowLogsConfigCallable() { + return updateVpcFlowLogsConfigCallable; + } + + @Override + public OperationCallable + updateVpcFlowLogsConfigOperationCallable() { + return updateVpcFlowLogsConfigOperationCallable; + } + + @Override + public UnaryCallable + deleteVpcFlowLogsConfigCallable() { + return deleteVpcFlowLogsConfigCallable; + } + + @Override + public OperationCallable + deleteVpcFlowLogsConfigOperationCallable() { + return deleteVpcFlowLogsConfigOperationCallable; + } + + @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-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/HttpJsonVpcFlowLogsServiceCallableFactory.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/HttpJsonVpcFlowLogsServiceCallableFactory.java new file mode 100644 index 000000000000..15ef952b35db --- /dev/null +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/HttpJsonVpcFlowLogsServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.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 VpcFlowLogsService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonVpcFlowLogsServiceCallableFactory + 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-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/HttpJsonVpcFlowLogsServiceStub.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/HttpJsonVpcFlowLogsServiceStub.java new file mode 100644 index 000000000000..3e24c9029161 --- /dev/null +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/HttpJsonVpcFlowLogsServiceStub.java @@ -0,0 +1,898 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.stub; + +import static com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient.ListVpcFlowLogsConfigsPagedResponse; + +import com.google.api.HttpRule; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse; +import com.google.cloud.networkmanagement.v1.OperationMetadata; +import com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.common.collect.ImmutableMap; +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 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 VpcFlowLogsService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonVpcFlowLogsServiceStub extends VpcFlowLogsServiceStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(Empty.getDescriptor()) + .add(OperationMetadata.getDescriptor()) + .add(VpcFlowLogsConfig.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor< + ListVpcFlowLogsConfigsRequest, ListVpcFlowLogsConfigsResponse> + listVpcFlowLogsConfigsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.networkmanagement.v1.VpcFlowLogsService/ListVpcFlowLogsConfigs") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/vpcFlowLogsConfigs", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListVpcFlowLogsConfigsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getVpcFlowLogsConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.networkmanagement.v1.VpcFlowLogsService/GetVpcFlowLogsConfig") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/vpcFlowLogsConfigs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(VpcFlowLogsConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createVpcFlowLogsConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.networkmanagement.v1.VpcFlowLogsService/CreateVpcFlowLogsConfig") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/vpcFlowLogsConfigs", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "vpcFlowLogsConfigId", request.getVpcFlowLogsConfigId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "vpcFlowLogsConfig", request.getVpcFlowLogsConfig(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateVpcFlowLogsConfigRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateVpcFlowLogsConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.networkmanagement.v1.VpcFlowLogsService/UpdateVpcFlowLogsConfig") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{vpcFlowLogsConfig.name=projects/*/locations/*/vpcFlowLogsConfigs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "vpcFlowLogsConfig.name", + request.getVpcFlowLogsConfig().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "vpcFlowLogsConfig", request.getVpcFlowLogsConfig(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateVpcFlowLogsConfigRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteVpcFlowLogsConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.networkmanagement.v1.VpcFlowLogsService/DeleteVpcFlowLogsConfig") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/vpcFlowLogsConfigs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteVpcFlowLogsConfigRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listLocationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*}/locations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListLocationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getLocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Location.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/locations/global/connectivityTests/*}:setIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + 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().clearResource().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/locations/global/connectivityTests/*}:getIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + testIamPermissionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/locations/global/connectivityTests/*}:testIamPermissions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + 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().clearResource().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TestIamPermissionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + listVpcFlowLogsConfigsCallable; + private final UnaryCallable + listVpcFlowLogsConfigsPagedCallable; + private final UnaryCallable + getVpcFlowLogsConfigCallable; + private final UnaryCallable + createVpcFlowLogsConfigCallable; + private final OperationCallable< + CreateVpcFlowLogsConfigRequest, VpcFlowLogsConfig, OperationMetadata> + createVpcFlowLogsConfigOperationCallable; + private final UnaryCallable + updateVpcFlowLogsConfigCallable; + private final OperationCallable< + UpdateVpcFlowLogsConfigRequest, VpcFlowLogsConfig, OperationMetadata> + updateVpcFlowLogsConfigOperationCallable; + private final UnaryCallable + deleteVpcFlowLogsConfigCallable; + private final OperationCallable + deleteVpcFlowLogsConfigOperationCallable; + 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 HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonVpcFlowLogsServiceStub create(VpcFlowLogsServiceStubSettings settings) + throws IOException { + return new HttpJsonVpcFlowLogsServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonVpcFlowLogsServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonVpcFlowLogsServiceStub( + VpcFlowLogsServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonVpcFlowLogsServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonVpcFlowLogsServiceStub( + VpcFlowLogsServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonVpcFlowLogsServiceStub, 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 HttpJsonVpcFlowLogsServiceStub( + VpcFlowLogsServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonVpcFlowLogsServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonVpcFlowLogsServiceStub, 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 HttpJsonVpcFlowLogsServiceStub( + VpcFlowLogsServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.CancelOperation", + HttpRule.newBuilder() + .setPost("/v1/{name=projects/*/locations/global/operations/*}:cancel") + .build()) + .put( + "google.longrunning.Operations.DeleteOperation", + HttpRule.newBuilder() + .setDelete("/v1/{name=projects/*/locations/global/operations/*}") + .build()) + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/locations/global/operations/*}") + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/locations/global}/operations") + .build()) + .build()); + + HttpJsonCallSettings + listVpcFlowLogsConfigsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listVpcFlowLogsConfigsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getVpcFlowLogsConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getVpcFlowLogsConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createVpcFlowLogsConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createVpcFlowLogsConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + updateVpcFlowLogsConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateVpcFlowLogsConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "vpc_flow_logs_config.name", + String.valueOf(request.getVpcFlowLogsConfig().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + deleteVpcFlowLogsConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteVpcFlowLogsConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listLocationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getLocationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings setIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + testIamPermissionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .build(); + + this.listVpcFlowLogsConfigsCallable = + callableFactory.createUnaryCallable( + listVpcFlowLogsConfigsTransportSettings, + settings.listVpcFlowLogsConfigsSettings(), + clientContext); + this.listVpcFlowLogsConfigsPagedCallable = + callableFactory.createPagedCallable( + listVpcFlowLogsConfigsTransportSettings, + settings.listVpcFlowLogsConfigsSettings(), + clientContext); + this.getVpcFlowLogsConfigCallable = + callableFactory.createUnaryCallable( + getVpcFlowLogsConfigTransportSettings, + settings.getVpcFlowLogsConfigSettings(), + clientContext); + this.createVpcFlowLogsConfigCallable = + callableFactory.createUnaryCallable( + createVpcFlowLogsConfigTransportSettings, + settings.createVpcFlowLogsConfigSettings(), + clientContext); + this.createVpcFlowLogsConfigOperationCallable = + callableFactory.createOperationCallable( + createVpcFlowLogsConfigTransportSettings, + settings.createVpcFlowLogsConfigOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateVpcFlowLogsConfigCallable = + callableFactory.createUnaryCallable( + updateVpcFlowLogsConfigTransportSettings, + settings.updateVpcFlowLogsConfigSettings(), + clientContext); + this.updateVpcFlowLogsConfigOperationCallable = + callableFactory.createOperationCallable( + updateVpcFlowLogsConfigTransportSettings, + settings.updateVpcFlowLogsConfigOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteVpcFlowLogsConfigCallable = + callableFactory.createUnaryCallable( + deleteVpcFlowLogsConfigTransportSettings, + settings.deleteVpcFlowLogsConfigSettings(), + clientContext); + this.deleteVpcFlowLogsConfigOperationCallable = + callableFactory.createOperationCallable( + deleteVpcFlowLogsConfigTransportSettings, + settings.deleteVpcFlowLogsConfigOperationSettings(), + clientContext, + httpJsonOperationsStub); + 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()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(listVpcFlowLogsConfigsMethodDescriptor); + methodDescriptors.add(getVpcFlowLogsConfigMethodDescriptor); + methodDescriptors.add(createVpcFlowLogsConfigMethodDescriptor); + methodDescriptors.add(updateVpcFlowLogsConfigMethodDescriptor); + methodDescriptors.add(deleteVpcFlowLogsConfigMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); + methodDescriptors.add(getLocationMethodDescriptor); + methodDescriptors.add(setIamPolicyMethodDescriptor); + methodDescriptors.add(getIamPolicyMethodDescriptor); + methodDescriptors.add(testIamPermissionsMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable + listVpcFlowLogsConfigsCallable() { + return listVpcFlowLogsConfigsCallable; + } + + @Override + public UnaryCallable + listVpcFlowLogsConfigsPagedCallable() { + return listVpcFlowLogsConfigsPagedCallable; + } + + @Override + public UnaryCallable + getVpcFlowLogsConfigCallable() { + return getVpcFlowLogsConfigCallable; + } + + @Override + public UnaryCallable + createVpcFlowLogsConfigCallable() { + return createVpcFlowLogsConfigCallable; + } + + @Override + public OperationCallable + createVpcFlowLogsConfigOperationCallable() { + return createVpcFlowLogsConfigOperationCallable; + } + + @Override + public UnaryCallable + updateVpcFlowLogsConfigCallable() { + return updateVpcFlowLogsConfigCallable; + } + + @Override + public OperationCallable + updateVpcFlowLogsConfigOperationCallable() { + return updateVpcFlowLogsConfigOperationCallable; + } + + @Override + public UnaryCallable + deleteVpcFlowLogsConfigCallable() { + return deleteVpcFlowLogsConfigCallable; + } + + @Override + public OperationCallable + deleteVpcFlowLogsConfigOperationCallable() { + return deleteVpcFlowLogsConfigOperationCallable; + } + + @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-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/VpcFlowLogsServiceStub.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/VpcFlowLogsServiceStub.java new file mode 100644 index 000000000000..4f3e6c7f43a4 --- /dev/null +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/VpcFlowLogsServiceStub.java @@ -0,0 +1,141 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.stub; + +import static com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient.ListVpcFlowLogsConfigsPagedResponse; + +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.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse; +import com.google.cloud.networkmanagement.v1.OperationMetadata; +import com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +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 VpcFlowLogsService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class VpcFlowLogsServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public UnaryCallable + listVpcFlowLogsConfigsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listVpcFlowLogsConfigsPagedCallable()"); + } + + public UnaryCallable + listVpcFlowLogsConfigsCallable() { + throw new UnsupportedOperationException("Not implemented: listVpcFlowLogsConfigsCallable()"); + } + + public UnaryCallable + getVpcFlowLogsConfigCallable() { + throw new UnsupportedOperationException("Not implemented: getVpcFlowLogsConfigCallable()"); + } + + public OperationCallable + createVpcFlowLogsConfigOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createVpcFlowLogsConfigOperationCallable()"); + } + + public UnaryCallable + createVpcFlowLogsConfigCallable() { + throw new UnsupportedOperationException("Not implemented: createVpcFlowLogsConfigCallable()"); + } + + public OperationCallable + updateVpcFlowLogsConfigOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateVpcFlowLogsConfigOperationCallable()"); + } + + public UnaryCallable + updateVpcFlowLogsConfigCallable() { + throw new UnsupportedOperationException("Not implemented: updateVpcFlowLogsConfigCallable()"); + } + + public OperationCallable + deleteVpcFlowLogsConfigOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteVpcFlowLogsConfigOperationCallable()"); + } + + public UnaryCallable + deleteVpcFlowLogsConfigCallable() { + throw new UnsupportedOperationException("Not implemented: deleteVpcFlowLogsConfigCallable()"); + } + + 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-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/VpcFlowLogsServiceStubSettings.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/VpcFlowLogsServiceStubSettings.java new file mode 100644 index 000000000000..251314af429d --- /dev/null +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/VpcFlowLogsServiceStubSettings.java @@ -0,0 +1,896 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.stub; + +import static com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient.ListVpcFlowLogsConfigsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +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.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.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.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse; +import com.google.cloud.networkmanagement.v1.OperationMetadata; +import com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +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 VpcFlowLogsServiceStub}. + * + *

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

    + *
  • The default service address (networkmanagement.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 getVpcFlowLogsConfig: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * VpcFlowLogsServiceStubSettings.Builder vpcFlowLogsServiceSettingsBuilder =
+ *     VpcFlowLogsServiceStubSettings.newBuilder();
+ * vpcFlowLogsServiceSettingsBuilder
+ *     .getVpcFlowLogsConfigSettings()
+ *     .setRetrySettings(
+ *         vpcFlowLogsServiceSettingsBuilder
+ *             .getVpcFlowLogsConfigSettings()
+ *             .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());
+ * VpcFlowLogsServiceStubSettings vpcFlowLogsServiceSettings =
+ *     vpcFlowLogsServiceSettingsBuilder.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 createVpcFlowLogsConfig: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * VpcFlowLogsServiceStubSettings.Builder vpcFlowLogsServiceSettingsBuilder =
+ *     VpcFlowLogsServiceStubSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * vpcFlowLogsServiceSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class VpcFlowLogsServiceStubSettings 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 PagedCallSettings< + ListVpcFlowLogsConfigsRequest, + ListVpcFlowLogsConfigsResponse, + ListVpcFlowLogsConfigsPagedResponse> + listVpcFlowLogsConfigsSettings; + private final UnaryCallSettings + getVpcFlowLogsConfigSettings; + private final UnaryCallSettings + createVpcFlowLogsConfigSettings; + private final OperationCallSettings< + CreateVpcFlowLogsConfigRequest, VpcFlowLogsConfig, OperationMetadata> + createVpcFlowLogsConfigOperationSettings; + private final UnaryCallSettings + updateVpcFlowLogsConfigSettings; + private final OperationCallSettings< + UpdateVpcFlowLogsConfigRequest, VpcFlowLogsConfig, OperationMetadata> + updateVpcFlowLogsConfigOperationSettings; + private final UnaryCallSettings + deleteVpcFlowLogsConfigSettings; + private final OperationCallSettings + deleteVpcFlowLogsConfigOperationSettings; + 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< + ListVpcFlowLogsConfigsRequest, ListVpcFlowLogsConfigsResponse, VpcFlowLogsConfig> + LIST_VPC_FLOW_LOGS_CONFIGS_PAGE_STR_DESC = + new PagedListDescriptor< + ListVpcFlowLogsConfigsRequest, ListVpcFlowLogsConfigsResponse, VpcFlowLogsConfig>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListVpcFlowLogsConfigsRequest injectToken( + ListVpcFlowLogsConfigsRequest payload, String token) { + return ListVpcFlowLogsConfigsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListVpcFlowLogsConfigsRequest injectPageSize( + ListVpcFlowLogsConfigsRequest payload, int pageSize) { + return ListVpcFlowLogsConfigsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListVpcFlowLogsConfigsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListVpcFlowLogsConfigsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListVpcFlowLogsConfigsResponse payload) { + return payload.getVpcFlowLogsConfigsList(); + } + }; + + 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< + ListVpcFlowLogsConfigsRequest, + ListVpcFlowLogsConfigsResponse, + ListVpcFlowLogsConfigsPagedResponse> + LIST_VPC_FLOW_LOGS_CONFIGS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListVpcFlowLogsConfigsRequest, + ListVpcFlowLogsConfigsResponse, + ListVpcFlowLogsConfigsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListVpcFlowLogsConfigsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListVpcFlowLogsConfigsRequest, + ListVpcFlowLogsConfigsResponse, + VpcFlowLogsConfig> + pageContext = + PageContext.create( + callable, LIST_VPC_FLOW_LOGS_CONFIGS_PAGE_STR_DESC, request, context); + return ListVpcFlowLogsConfigsPagedResponse.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 listVpcFlowLogsConfigs. */ + public PagedCallSettings< + ListVpcFlowLogsConfigsRequest, + ListVpcFlowLogsConfigsResponse, + ListVpcFlowLogsConfigsPagedResponse> + listVpcFlowLogsConfigsSettings() { + return listVpcFlowLogsConfigsSettings; + } + + /** Returns the object with the settings used for calls to getVpcFlowLogsConfig. */ + public UnaryCallSettings + getVpcFlowLogsConfigSettings() { + return getVpcFlowLogsConfigSettings; + } + + /** Returns the object with the settings used for calls to createVpcFlowLogsConfig. */ + public UnaryCallSettings + createVpcFlowLogsConfigSettings() { + return createVpcFlowLogsConfigSettings; + } + + /** Returns the object with the settings used for calls to createVpcFlowLogsConfig. */ + public OperationCallSettings + createVpcFlowLogsConfigOperationSettings() { + return createVpcFlowLogsConfigOperationSettings; + } + + /** Returns the object with the settings used for calls to updateVpcFlowLogsConfig. */ + public UnaryCallSettings + updateVpcFlowLogsConfigSettings() { + return updateVpcFlowLogsConfigSettings; + } + + /** Returns the object with the settings used for calls to updateVpcFlowLogsConfig. */ + public OperationCallSettings + updateVpcFlowLogsConfigOperationSettings() { + return updateVpcFlowLogsConfigOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteVpcFlowLogsConfig. */ + public UnaryCallSettings + deleteVpcFlowLogsConfigSettings() { + return deleteVpcFlowLogsConfigSettings; + } + + /** Returns the object with the settings used for calls to deleteVpcFlowLogsConfig. */ + public OperationCallSettings + deleteVpcFlowLogsConfigOperationSettings() { + return deleteVpcFlowLogsConfigOperationSettings; + } + + /** 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 VpcFlowLogsServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcVpcFlowLogsServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonVpcFlowLogsServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "networkmanagement"; + } + + /** 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 "networkmanagement.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "networkmanagement.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(VpcFlowLogsServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(VpcFlowLogsServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return VpcFlowLogsServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected VpcFlowLogsServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + listVpcFlowLogsConfigsSettings = settingsBuilder.listVpcFlowLogsConfigsSettings().build(); + getVpcFlowLogsConfigSettings = settingsBuilder.getVpcFlowLogsConfigSettings().build(); + createVpcFlowLogsConfigSettings = settingsBuilder.createVpcFlowLogsConfigSettings().build(); + createVpcFlowLogsConfigOperationSettings = + settingsBuilder.createVpcFlowLogsConfigOperationSettings().build(); + updateVpcFlowLogsConfigSettings = settingsBuilder.updateVpcFlowLogsConfigSettings().build(); + updateVpcFlowLogsConfigOperationSettings = + settingsBuilder.updateVpcFlowLogsConfigOperationSettings().build(); + deleteVpcFlowLogsConfigSettings = settingsBuilder.deleteVpcFlowLogsConfigSettings().build(); + deleteVpcFlowLogsConfigOperationSettings = + settingsBuilder.deleteVpcFlowLogsConfigOperationSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); + } + + /** Builder for VpcFlowLogsServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final PagedCallSettings.Builder< + ListVpcFlowLogsConfigsRequest, + ListVpcFlowLogsConfigsResponse, + ListVpcFlowLogsConfigsPagedResponse> + listVpcFlowLogsConfigsSettings; + private final UnaryCallSettings.Builder + getVpcFlowLogsConfigSettings; + private final UnaryCallSettings.Builder + createVpcFlowLogsConfigSettings; + private final OperationCallSettings.Builder< + CreateVpcFlowLogsConfigRequest, VpcFlowLogsConfig, OperationMetadata> + createVpcFlowLogsConfigOperationSettings; + private final UnaryCallSettings.Builder + updateVpcFlowLogsConfigSettings; + private final OperationCallSettings.Builder< + UpdateVpcFlowLogsConfigRequest, VpcFlowLogsConfig, OperationMetadata> + updateVpcFlowLogsConfigOperationSettings; + private final UnaryCallSettings.Builder + deleteVpcFlowLogsConfigSettings; + private final OperationCallSettings.Builder< + DeleteVpcFlowLogsConfigRequest, Empty, OperationMetadata> + deleteVpcFlowLogsConfigOperationSettings; + 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); + + listVpcFlowLogsConfigsSettings = + PagedCallSettings.newBuilder(LIST_VPC_FLOW_LOGS_CONFIGS_PAGE_STR_FACT); + getVpcFlowLogsConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createVpcFlowLogsConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createVpcFlowLogsConfigOperationSettings = OperationCallSettings.newBuilder(); + updateVpcFlowLogsConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateVpcFlowLogsConfigOperationSettings = OperationCallSettings.newBuilder(); + deleteVpcFlowLogsConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteVpcFlowLogsConfigOperationSettings = 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( + listVpcFlowLogsConfigsSettings, + getVpcFlowLogsConfigSettings, + createVpcFlowLogsConfigSettings, + updateVpcFlowLogsConfigSettings, + deleteVpcFlowLogsConfigSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + initDefaults(this); + } + + protected Builder(VpcFlowLogsServiceStubSettings settings) { + super(settings); + + listVpcFlowLogsConfigsSettings = settings.listVpcFlowLogsConfigsSettings.toBuilder(); + getVpcFlowLogsConfigSettings = settings.getVpcFlowLogsConfigSettings.toBuilder(); + createVpcFlowLogsConfigSettings = settings.createVpcFlowLogsConfigSettings.toBuilder(); + createVpcFlowLogsConfigOperationSettings = + settings.createVpcFlowLogsConfigOperationSettings.toBuilder(); + updateVpcFlowLogsConfigSettings = settings.updateVpcFlowLogsConfigSettings.toBuilder(); + updateVpcFlowLogsConfigOperationSettings = + settings.updateVpcFlowLogsConfigOperationSettings.toBuilder(); + deleteVpcFlowLogsConfigSettings = settings.deleteVpcFlowLogsConfigSettings.toBuilder(); + deleteVpcFlowLogsConfigOperationSettings = + settings.deleteVpcFlowLogsConfigOperationSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listVpcFlowLogsConfigsSettings, + getVpcFlowLogsConfigSettings, + createVpcFlowLogsConfigSettings, + updateVpcFlowLogsConfigSettings, + deleteVpcFlowLogsConfigSettings, + 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 createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .listVpcFlowLogsConfigsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getVpcFlowLogsConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createVpcFlowLogsConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateVpcFlowLogsConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteVpcFlowLogsConfigSettings() + .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 + .createVpcFlowLogsConfigOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(VpcFlowLogsConfig.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 + .updateVpcFlowLogsConfigOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(VpcFlowLogsConfig.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 + .deleteVpcFlowLogsConfigOperationSettings() + .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(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; + } + + /** + * 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 listVpcFlowLogsConfigs. */ + public PagedCallSettings.Builder< + ListVpcFlowLogsConfigsRequest, + ListVpcFlowLogsConfigsResponse, + ListVpcFlowLogsConfigsPagedResponse> + listVpcFlowLogsConfigsSettings() { + return listVpcFlowLogsConfigsSettings; + } + + /** Returns the builder for the settings used for calls to getVpcFlowLogsConfig. */ + public UnaryCallSettings.Builder + getVpcFlowLogsConfigSettings() { + return getVpcFlowLogsConfigSettings; + } + + /** Returns the builder for the settings used for calls to createVpcFlowLogsConfig. */ + public UnaryCallSettings.Builder + createVpcFlowLogsConfigSettings() { + return createVpcFlowLogsConfigSettings; + } + + /** Returns the builder for the settings used for calls to createVpcFlowLogsConfig. */ + public OperationCallSettings.Builder< + CreateVpcFlowLogsConfigRequest, VpcFlowLogsConfig, OperationMetadata> + createVpcFlowLogsConfigOperationSettings() { + return createVpcFlowLogsConfigOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateVpcFlowLogsConfig. */ + public UnaryCallSettings.Builder + updateVpcFlowLogsConfigSettings() { + return updateVpcFlowLogsConfigSettings; + } + + /** Returns the builder for the settings used for calls to updateVpcFlowLogsConfig. */ + public OperationCallSettings.Builder< + UpdateVpcFlowLogsConfigRequest, VpcFlowLogsConfig, OperationMetadata> + updateVpcFlowLogsConfigOperationSettings() { + return updateVpcFlowLogsConfigOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteVpcFlowLogsConfig. */ + public UnaryCallSettings.Builder + deleteVpcFlowLogsConfigSettings() { + return deleteVpcFlowLogsConfigSettings; + } + + /** Returns the builder for the settings used for calls to deleteVpcFlowLogsConfig. */ + public OperationCallSettings.Builder + deleteVpcFlowLogsConfigOperationSettings() { + return deleteVpcFlowLogsConfigOperationSettings; + } + + /** 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 VpcFlowLogsServiceStubSettings build() throws IOException { + return new VpcFlowLogsServiceStubSettings(this); + } + } +} diff --git a/java-network-management/google-cloud-network-management/src/main/resources/META-INF/native-image/com.google.cloud.networkmanagement.v1/reflect-config.json b/java-network-management/google-cloud-network-management/src/main/resources/META-INF/native-image/com.google.cloud.networkmanagement.v1/reflect-config.json index dde50ae9957d..e8dcfca081dd 100644 --- a/java-network-management/google-cloud-network-management/src/main/resources/META-INF/native-image/com.google.cloud.networkmanagement.v1/reflect-config.json +++ b/java-network-management/google-cloud-network-management/src/main/resources/META-INF/native-image/com.google.cloud.networkmanagement.v1/reflect-config.json @@ -665,6 +665,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkmanagement.v1.DeleteConnectivityTestRequest", "queryAllDeclaredConstructors": true, @@ -683,6 +701,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkmanagement.v1.DeliverInfo", "queryAllDeclaredConstructors": true, @@ -953,6 +989,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkmanagement.v1.GoogleServiceInfo", "queryAllDeclaredConstructors": true, @@ -1070,6 +1124,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkmanagement.v1.LoadBalancerBackend", "queryAllDeclaredConstructors": true, @@ -1529,6 +1619,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkmanagement.v1.VpcConnectorInfo", "queryAllDeclaredConstructors": true, @@ -1547,6 +1655,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig$AggregationInterval", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig$Metadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig$TargetResourceState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkmanagement.v1.VpnGatewayInfo", "queryAllDeclaredConstructors": true, diff --git a/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/MockVpcFlowLogsService.java b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/MockVpcFlowLogsService.java new file mode 100644 index 000000000000..9b384e2f2c21 --- /dev/null +++ b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/MockVpcFlowLogsService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.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 MockVpcFlowLogsService implements MockGrpcService { + private final MockVpcFlowLogsServiceImpl serviceImpl; + + public MockVpcFlowLogsService() { + serviceImpl = new MockVpcFlowLogsServiceImpl(); + } + + @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-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/MockVpcFlowLogsServiceImpl.java b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/MockVpcFlowLogsServiceImpl.java new file mode 100644 index 000000000000..b8b4977bbefd --- /dev/null +++ b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/MockVpcFlowLogsServiceImpl.java @@ -0,0 +1,167 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceGrpc.VpcFlowLogsServiceImplBase; +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 MockVpcFlowLogsServiceImpl extends VpcFlowLogsServiceImplBase { + private List requests; + private Queue responses; + + public MockVpcFlowLogsServiceImpl() { + 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 listVpcFlowLogsConfigs( + ListVpcFlowLogsConfigsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListVpcFlowLogsConfigsResponse) { + requests.add(request); + responseObserver.onNext(((ListVpcFlowLogsConfigsResponse) 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 ListVpcFlowLogsConfigs, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListVpcFlowLogsConfigsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getVpcFlowLogsConfig( + GetVpcFlowLogsConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof VpcFlowLogsConfig) { + requests.add(request); + responseObserver.onNext(((VpcFlowLogsConfig) 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 GetVpcFlowLogsConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + VpcFlowLogsConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createVpcFlowLogsConfig( + CreateVpcFlowLogsConfigRequest 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 CreateVpcFlowLogsConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateVpcFlowLogsConfig( + UpdateVpcFlowLogsConfigRequest 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 UpdateVpcFlowLogsConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteVpcFlowLogsConfig( + DeleteVpcFlowLogsConfigRequest 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 DeleteVpcFlowLogsConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceClientHttpJsonTest.java b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..a14ce9eb958d --- /dev/null +++ b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceClientHttpJsonTest.java @@ -0,0 +1,1022 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1; + +import static com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient.ListVpcFlowLogsConfigsPagedResponse; + +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.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networkmanagement.v1.stub.HttpJsonVpcFlowLogsServiceStub; +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.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class VpcFlowLogsServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static VpcFlowLogsServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonVpcFlowLogsServiceStub.getMethodDescriptors(), + VpcFlowLogsServiceSettings.getDefaultEndpoint()); + VpcFlowLogsServiceSettings settings = + VpcFlowLogsServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + VpcFlowLogsServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = VpcFlowLogsServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void listVpcFlowLogsConfigsTest() throws Exception { + VpcFlowLogsConfig responsesElement = VpcFlowLogsConfig.newBuilder().build(); + ListVpcFlowLogsConfigsResponse expectedResponse = + ListVpcFlowLogsConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllVpcFlowLogsConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListVpcFlowLogsConfigsPagedResponse pagedListResponse = client.listVpcFlowLogsConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getVpcFlowLogsConfigsList().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 listVpcFlowLogsConfigsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listVpcFlowLogsConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listVpcFlowLogsConfigsTest2() throws Exception { + VpcFlowLogsConfig responsesElement = VpcFlowLogsConfig.newBuilder().build(); + ListVpcFlowLogsConfigsResponse expectedResponse = + ListVpcFlowLogsConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllVpcFlowLogsConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListVpcFlowLogsConfigsPagedResponse pagedListResponse = client.listVpcFlowLogsConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getVpcFlowLogsConfigsList().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 listVpcFlowLogsConfigsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listVpcFlowLogsConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getVpcFlowLogsConfigTest() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + VpcFlowLogsConfigName name = + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + + VpcFlowLogsConfig actualResponse = client.getVpcFlowLogsConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getVpcFlowLogsConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + VpcFlowLogsConfigName name = + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + client.getVpcFlowLogsConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getVpcFlowLogsConfigTest2() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-91/locations/location-91/vpcFlowLogsConfigs/vpcFlowLogsConfig-91"; + + VpcFlowLogsConfig actualResponse = client.getVpcFlowLogsConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getVpcFlowLogsConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-91/locations/location-91/vpcFlowLogsConfigs/vpcFlowLogsConfig-91"; + client.getVpcFlowLogsConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createVpcFlowLogsConfigTest() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + + VpcFlowLogsConfig actualResponse = + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).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 createVpcFlowLogsConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createVpcFlowLogsConfigTest2() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = "vpcFlowLogsConfigId649763"; + + VpcFlowLogsConfig actualResponse = + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).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 createVpcFlowLogsConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = "vpcFlowLogsConfigId649763"; + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createVpcFlowLogsConfigTest3() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + + VpcFlowLogsConfig actualResponse = + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).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 createVpcFlowLogsConfigExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createVpcFlowLogsConfigTest4() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = "vpcFlowLogsConfigId649763"; + + VpcFlowLogsConfig actualResponse = + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).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 createVpcFlowLogsConfigExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = "vpcFlowLogsConfigId649763"; + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateVpcFlowLogsConfigTest() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + VpcFlowLogsConfig vpcFlowLogsConfig = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + VpcFlowLogsConfig actualResponse = + client.updateVpcFlowLogsConfigAsync(vpcFlowLogsConfig, updateMask).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 updateVpcFlowLogsConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + VpcFlowLogsConfig vpcFlowLogsConfig = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateVpcFlowLogsConfigAsync(vpcFlowLogsConfig, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteVpcFlowLogsConfigTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + VpcFlowLogsConfigName name = + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + + client.deleteVpcFlowLogsConfigAsync(name).get(); + + 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 deleteVpcFlowLogsConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + VpcFlowLogsConfigName name = + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + client.deleteVpcFlowLogsConfigAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteVpcFlowLogsConfigTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-91/locations/location-91/vpcFlowLogsConfigs/vpcFlowLogsConfig-91"; + + client.deleteVpcFlowLogsConfigAsync(name).get(); + + 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 deleteVpcFlowLogsConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-91/locations/location-91/vpcFlowLogsConfigs/vpcFlowLogsConfig-91"; + client.deleteVpcFlowLogsConfigAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .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 = 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 listLocationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .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(); + mockService.addResponse(expectedResponse); + + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + + Location actualResponse = client.getLocation(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 getLocationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .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(); + mockService.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(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 setIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").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(); + mockService.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(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 getIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").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(); + mockService.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(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 testIamPermissionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceClientTest.java b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceClientTest.java new file mode 100644 index 000000000000..a100644e0a11 --- /dev/null +++ b/java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceClientTest.java @@ -0,0 +1,949 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1; + +import static com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient.ListVpcFlowLogsConfigsPagedResponse; + +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 VpcFlowLogsServiceClientTest { + private static MockIAMPolicy mockIAMPolicy; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private static MockVpcFlowLogsService mockVpcFlowLogsService; + private LocalChannelProvider channelProvider; + private VpcFlowLogsServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockVpcFlowLogsService = new MockVpcFlowLogsService(); + mockLocations = new MockLocations(); + mockIAMPolicy = new MockIAMPolicy(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockVpcFlowLogsService, mockLocations, mockIAMPolicy)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + VpcFlowLogsServiceSettings settings = + VpcFlowLogsServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = VpcFlowLogsServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listVpcFlowLogsConfigsTest() throws Exception { + VpcFlowLogsConfig responsesElement = VpcFlowLogsConfig.newBuilder().build(); + ListVpcFlowLogsConfigsResponse expectedResponse = + ListVpcFlowLogsConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllVpcFlowLogsConfigs(Arrays.asList(responsesElement)) + .build(); + mockVpcFlowLogsService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListVpcFlowLogsConfigsPagedResponse pagedListResponse = client.listVpcFlowLogsConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getVpcFlowLogsConfigsList().get(0), resources.get(0)); + + List actualRequests = mockVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListVpcFlowLogsConfigsRequest actualRequest = + ((ListVpcFlowLogsConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listVpcFlowLogsConfigsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVpcFlowLogsService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listVpcFlowLogsConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listVpcFlowLogsConfigsTest2() throws Exception { + VpcFlowLogsConfig responsesElement = VpcFlowLogsConfig.newBuilder().build(); + ListVpcFlowLogsConfigsResponse expectedResponse = + ListVpcFlowLogsConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllVpcFlowLogsConfigs(Arrays.asList(responsesElement)) + .build(); + mockVpcFlowLogsService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListVpcFlowLogsConfigsPagedResponse pagedListResponse = client.listVpcFlowLogsConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getVpcFlowLogsConfigsList().get(0), resources.get(0)); + + List actualRequests = mockVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListVpcFlowLogsConfigsRequest actualRequest = + ((ListVpcFlowLogsConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listVpcFlowLogsConfigsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVpcFlowLogsService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listVpcFlowLogsConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getVpcFlowLogsConfigTest() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockVpcFlowLogsService.addResponse(expectedResponse); + + VpcFlowLogsConfigName name = + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + + VpcFlowLogsConfig actualResponse = client.getVpcFlowLogsConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetVpcFlowLogsConfigRequest actualRequest = + ((GetVpcFlowLogsConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getVpcFlowLogsConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVpcFlowLogsService.addException(exception); + + try { + VpcFlowLogsConfigName name = + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + client.getVpcFlowLogsConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getVpcFlowLogsConfigTest2() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockVpcFlowLogsService.addResponse(expectedResponse); + + String name = "name3373707"; + + VpcFlowLogsConfig actualResponse = client.getVpcFlowLogsConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetVpcFlowLogsConfigRequest actualRequest = + ((GetVpcFlowLogsConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getVpcFlowLogsConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVpcFlowLogsService.addException(exception); + + try { + String name = "name3373707"; + client.getVpcFlowLogsConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createVpcFlowLogsConfigTest() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVpcFlowLogsService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + + VpcFlowLogsConfig actualResponse = + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateVpcFlowLogsConfigRequest actualRequest = + ((CreateVpcFlowLogsConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(vpcFlowLogsConfig, actualRequest.getVpcFlowLogsConfig()); + Assert.assertEquals(vpcFlowLogsConfigId.toString(), actualRequest.getVpcFlowLogsConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createVpcFlowLogsConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVpcFlowLogsService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).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 createVpcFlowLogsConfigTest2() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVpcFlowLogsService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = "vpcFlowLogsConfigId649763"; + + VpcFlowLogsConfig actualResponse = + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateVpcFlowLogsConfigRequest actualRequest = + ((CreateVpcFlowLogsConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(vpcFlowLogsConfig, actualRequest.getVpcFlowLogsConfig()); + Assert.assertEquals(vpcFlowLogsConfigId, actualRequest.getVpcFlowLogsConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createVpcFlowLogsConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVpcFlowLogsService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = "vpcFlowLogsConfigId649763"; + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).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 createVpcFlowLogsConfigTest3() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVpcFlowLogsService.addResponse(resultOperation); + + String parent = "parent-995424086"; + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + + VpcFlowLogsConfig actualResponse = + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateVpcFlowLogsConfigRequest actualRequest = + ((CreateVpcFlowLogsConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(vpcFlowLogsConfig, actualRequest.getVpcFlowLogsConfig()); + Assert.assertEquals(vpcFlowLogsConfigId.toString(), actualRequest.getVpcFlowLogsConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createVpcFlowLogsConfigExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVpcFlowLogsService.addException(exception); + + try { + String parent = "parent-995424086"; + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).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 createVpcFlowLogsConfigTest4() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVpcFlowLogsService.addResponse(resultOperation); + + String parent = "parent-995424086"; + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = "vpcFlowLogsConfigId649763"; + + VpcFlowLogsConfig actualResponse = + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateVpcFlowLogsConfigRequest actualRequest = + ((CreateVpcFlowLogsConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(vpcFlowLogsConfig, actualRequest.getVpcFlowLogsConfig()); + Assert.assertEquals(vpcFlowLogsConfigId, actualRequest.getVpcFlowLogsConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createVpcFlowLogsConfigExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVpcFlowLogsService.addException(exception); + + try { + String parent = "parent-995424086"; + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = "vpcFlowLogsConfigId649763"; + client.createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId).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 updateVpcFlowLogsConfigTest() throws Exception { + VpcFlowLogsConfig expectedResponse = + VpcFlowLogsConfig.newBuilder() + .setName( + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setDescription("description-1724546052") + .setFlowSampling(-543591464) + .addAllMetadataFields(new ArrayList()) + .setFilterExpr("filterExpr-1553498739") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVpcFlowLogsService.addResponse(resultOperation); + + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + VpcFlowLogsConfig actualResponse = + client.updateVpcFlowLogsConfigAsync(vpcFlowLogsConfig, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateVpcFlowLogsConfigRequest actualRequest = + ((UpdateVpcFlowLogsConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(vpcFlowLogsConfig, actualRequest.getVpcFlowLogsConfig()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateVpcFlowLogsConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVpcFlowLogsService.addException(exception); + + try { + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateVpcFlowLogsConfigAsync(vpcFlowLogsConfig, 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 deleteVpcFlowLogsConfigTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVpcFlowLogsService.addResponse(resultOperation); + + VpcFlowLogsConfigName name = + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + + client.deleteVpcFlowLogsConfigAsync(name).get(); + + List actualRequests = mockVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteVpcFlowLogsConfigRequest actualRequest = + ((DeleteVpcFlowLogsConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteVpcFlowLogsConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVpcFlowLogsService.addException(exception); + + try { + VpcFlowLogsConfigName name = + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + client.deleteVpcFlowLogsConfigAsync(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 deleteVpcFlowLogsConfigTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteVpcFlowLogsConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockVpcFlowLogsService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteVpcFlowLogsConfigAsync(name).get(); + + List actualRequests = mockVpcFlowLogsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteVpcFlowLogsConfigRequest actualRequest = + ((DeleteVpcFlowLogsConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteVpcFlowLogsConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockVpcFlowLogsService.addException(exception); + + try { + String name = "name3373707"; + client.deleteVpcFlowLogsConfigAsync(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(ConnectivityTestName.of("[PROJECT]", "[TEST]").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(ConnectivityTestName.of("[PROJECT]", "[TEST]").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(ConnectivityTestName.of("[PROJECT]", "[TEST]").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(ConnectivityTestName.of("[PROJECT]", "[TEST]").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(ConnectivityTestName.of("[PROJECT]", "[TEST]").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(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-network-management/grpc-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceGrpc.java b/java-network-management/grpc-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceGrpc.java new file mode 100644 index 000000000000..b5a2c2b74ec0 --- /dev/null +++ b/java-network-management/grpc-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceGrpc.java @@ -0,0 +1,994 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.networkmanagement.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * The VPC Flow Logs service in the Google Cloud Network Management API provides
+ * configurations that generate Flow Logs. The service and the configuration
+ * resources created using this service are global.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/networkmanagement/v1/vpc_flow_logs.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class VpcFlowLogsServiceGrpc { + + private VpcFlowLogsServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.networkmanagement.v1.VpcFlowLogsService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest, + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse> + getListVpcFlowLogsConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListVpcFlowLogsConfigs", + requestType = com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest.class, + responseType = com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest, + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse> + getListVpcFlowLogsConfigsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest, + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse> + getListVpcFlowLogsConfigsMethod; + if ((getListVpcFlowLogsConfigsMethod = VpcFlowLogsServiceGrpc.getListVpcFlowLogsConfigsMethod) + == null) { + synchronized (VpcFlowLogsServiceGrpc.class) { + if ((getListVpcFlowLogsConfigsMethod = + VpcFlowLogsServiceGrpc.getListVpcFlowLogsConfigsMethod) + == null) { + VpcFlowLogsServiceGrpc.getListVpcFlowLogsConfigsMethod = + getListVpcFlowLogsConfigsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListVpcFlowLogsConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new VpcFlowLogsServiceMethodDescriptorSupplier("ListVpcFlowLogsConfigs")) + .build(); + } + } + } + return getListVpcFlowLogsConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest, + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig> + getGetVpcFlowLogsConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetVpcFlowLogsConfig", + requestType = com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest.class, + responseType = com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest, + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig> + getGetVpcFlowLogsConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest, + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig> + getGetVpcFlowLogsConfigMethod; + if ((getGetVpcFlowLogsConfigMethod = VpcFlowLogsServiceGrpc.getGetVpcFlowLogsConfigMethod) + == null) { + synchronized (VpcFlowLogsServiceGrpc.class) { + if ((getGetVpcFlowLogsConfigMethod = VpcFlowLogsServiceGrpc.getGetVpcFlowLogsConfigMethod) + == null) { + VpcFlowLogsServiceGrpc.getGetVpcFlowLogsConfigMethod = + getGetVpcFlowLogsConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetVpcFlowLogsConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new VpcFlowLogsServiceMethodDescriptorSupplier("GetVpcFlowLogsConfig")) + .build(); + } + } + } + return getGetVpcFlowLogsConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest, + com.google.longrunning.Operation> + getCreateVpcFlowLogsConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateVpcFlowLogsConfig", + requestType = com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest, + com.google.longrunning.Operation> + getCreateVpcFlowLogsConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest, + com.google.longrunning.Operation> + getCreateVpcFlowLogsConfigMethod; + if ((getCreateVpcFlowLogsConfigMethod = VpcFlowLogsServiceGrpc.getCreateVpcFlowLogsConfigMethod) + == null) { + synchronized (VpcFlowLogsServiceGrpc.class) { + if ((getCreateVpcFlowLogsConfigMethod = + VpcFlowLogsServiceGrpc.getCreateVpcFlowLogsConfigMethod) + == null) { + VpcFlowLogsServiceGrpc.getCreateVpcFlowLogsConfigMethod = + getCreateVpcFlowLogsConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateVpcFlowLogsConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VpcFlowLogsServiceMethodDescriptorSupplier("CreateVpcFlowLogsConfig")) + .build(); + } + } + } + return getCreateVpcFlowLogsConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest, + com.google.longrunning.Operation> + getUpdateVpcFlowLogsConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateVpcFlowLogsConfig", + requestType = com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest, + com.google.longrunning.Operation> + getUpdateVpcFlowLogsConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest, + com.google.longrunning.Operation> + getUpdateVpcFlowLogsConfigMethod; + if ((getUpdateVpcFlowLogsConfigMethod = VpcFlowLogsServiceGrpc.getUpdateVpcFlowLogsConfigMethod) + == null) { + synchronized (VpcFlowLogsServiceGrpc.class) { + if ((getUpdateVpcFlowLogsConfigMethod = + VpcFlowLogsServiceGrpc.getUpdateVpcFlowLogsConfigMethod) + == null) { + VpcFlowLogsServiceGrpc.getUpdateVpcFlowLogsConfigMethod = + getUpdateVpcFlowLogsConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateVpcFlowLogsConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VpcFlowLogsServiceMethodDescriptorSupplier("UpdateVpcFlowLogsConfig")) + .build(); + } + } + } + return getUpdateVpcFlowLogsConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest, + com.google.longrunning.Operation> + getDeleteVpcFlowLogsConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteVpcFlowLogsConfig", + requestType = com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest, + com.google.longrunning.Operation> + getDeleteVpcFlowLogsConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest, + com.google.longrunning.Operation> + getDeleteVpcFlowLogsConfigMethod; + if ((getDeleteVpcFlowLogsConfigMethod = VpcFlowLogsServiceGrpc.getDeleteVpcFlowLogsConfigMethod) + == null) { + synchronized (VpcFlowLogsServiceGrpc.class) { + if ((getDeleteVpcFlowLogsConfigMethod = + VpcFlowLogsServiceGrpc.getDeleteVpcFlowLogsConfigMethod) + == null) { + VpcFlowLogsServiceGrpc.getDeleteVpcFlowLogsConfigMethod = + getDeleteVpcFlowLogsConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteVpcFlowLogsConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new VpcFlowLogsServiceMethodDescriptorSupplier("DeleteVpcFlowLogsConfig")) + .build(); + } + } + } + return getDeleteVpcFlowLogsConfigMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static VpcFlowLogsServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public VpcFlowLogsServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VpcFlowLogsServiceStub(channel, callOptions); + } + }; + return VpcFlowLogsServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static VpcFlowLogsServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public VpcFlowLogsServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VpcFlowLogsServiceBlockingStub(channel, callOptions); + } + }; + return VpcFlowLogsServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static VpcFlowLogsServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public VpcFlowLogsServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VpcFlowLogsServiceFutureStub(channel, callOptions); + } + }; + return VpcFlowLogsServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * The VPC Flow Logs service in the Google Cloud Network Management API provides
+   * configurations that generate Flow Logs. The service and the configuration
+   * resources created using this service are global.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Lists all `VpcFlowLogsConfigs` in a given project.
+     * 
+ */ + default void listVpcFlowLogsConfigs( + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListVpcFlowLogsConfigsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the details of a specific `VpcFlowLogsConfig`.
+     * 
+ */ + default void getVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetVpcFlowLogsConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new `VpcFlowLogsConfig`.
+     * If a configuration with the exact same settings already exists (even if the
+     * ID is different), the creation fails.
+     * Notes:
+     *   1. Creating a configuration with state=DISABLED will fail
+     *   2. The following fields are not considered as `settings` for the purpose
+     *   of the check mentioned above, therefore - creating another configuration
+     *   with the same fields but different values for the following fields will
+     *   fail as well:
+     *       * name
+     *       * create_time
+     *       * update_time
+     *       * labels
+     *       * description
+     * 
+ */ + default void createVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateVpcFlowLogsConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an existing `VpcFlowLogsConfig`.
+     * If a configuration with the exact same settings already exists (even if the
+     * ID is different), the creation fails.
+     * Notes:
+     *   1. Updating a configuration with state=DISABLED will fail.
+     *   2. The following fields are not considered as `settings` for the purpose
+     *   of the check mentioned above, therefore - updating another configuration
+     *   with the same fields but different values for the following fields will
+     *   fail as well:
+     *       * name
+     *       * create_time
+     *       * update_time
+     *       * labels
+     *       * description
+     * 
+ */ + default void updateVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateVpcFlowLogsConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a specific `VpcFlowLogsConfig`.
+     * 
+ */ + default void deleteVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteVpcFlowLogsConfigMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service VpcFlowLogsService. + * + *
+   * The VPC Flow Logs service in the Google Cloud Network Management API provides
+   * configurations that generate Flow Logs. The service and the configuration
+   * resources created using this service are global.
+   * 
+ */ + public abstract static class VpcFlowLogsServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return VpcFlowLogsServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service VpcFlowLogsService. + * + *
+   * The VPC Flow Logs service in the Google Cloud Network Management API provides
+   * configurations that generate Flow Logs. The service and the configuration
+   * resources created using this service are global.
+   * 
+ */ + public static final class VpcFlowLogsServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private VpcFlowLogsServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected VpcFlowLogsServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VpcFlowLogsServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists all `VpcFlowLogsConfigs` in a given project.
+     * 
+ */ + public void listVpcFlowLogsConfigs( + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListVpcFlowLogsConfigsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the details of a specific `VpcFlowLogsConfig`.
+     * 
+ */ + public void getVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetVpcFlowLogsConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new `VpcFlowLogsConfig`.
+     * If a configuration with the exact same settings already exists (even if the
+     * ID is different), the creation fails.
+     * Notes:
+     *   1. Creating a configuration with state=DISABLED will fail
+     *   2. The following fields are not considered as `settings` for the purpose
+     *   of the check mentioned above, therefore - creating another configuration
+     *   with the same fields but different values for the following fields will
+     *   fail as well:
+     *       * name
+     *       * create_time
+     *       * update_time
+     *       * labels
+     *       * description
+     * 
+ */ + public void createVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateVpcFlowLogsConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an existing `VpcFlowLogsConfig`.
+     * If a configuration with the exact same settings already exists (even if the
+     * ID is different), the creation fails.
+     * Notes:
+     *   1. Updating a configuration with state=DISABLED will fail.
+     *   2. The following fields are not considered as `settings` for the purpose
+     *   of the check mentioned above, therefore - updating another configuration
+     *   with the same fields but different values for the following fields will
+     *   fail as well:
+     *       * name
+     *       * create_time
+     *       * update_time
+     *       * labels
+     *       * description
+     * 
+ */ + public void updateVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateVpcFlowLogsConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a specific `VpcFlowLogsConfig`.
+     * 
+ */ + public void deleteVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteVpcFlowLogsConfigMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service VpcFlowLogsService. + * + *
+   * The VPC Flow Logs service in the Google Cloud Network Management API provides
+   * configurations that generate Flow Logs. The service and the configuration
+   * resources created using this service are global.
+   * 
+ */ + public static final class VpcFlowLogsServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private VpcFlowLogsServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected VpcFlowLogsServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VpcFlowLogsServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists all `VpcFlowLogsConfigs` in a given project.
+     * 
+ */ + public com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse + listVpcFlowLogsConfigs( + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListVpcFlowLogsConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the details of a specific `VpcFlowLogsConfig`.
+     * 
+ */ + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig getVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetVpcFlowLogsConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new `VpcFlowLogsConfig`.
+     * If a configuration with the exact same settings already exists (even if the
+     * ID is different), the creation fails.
+     * Notes:
+     *   1. Creating a configuration with state=DISABLED will fail
+     *   2. The following fields are not considered as `settings` for the purpose
+     *   of the check mentioned above, therefore - creating another configuration
+     *   with the same fields but different values for the following fields will
+     *   fail as well:
+     *       * name
+     *       * create_time
+     *       * update_time
+     *       * labels
+     *       * description
+     * 
+ */ + public com.google.longrunning.Operation createVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateVpcFlowLogsConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an existing `VpcFlowLogsConfig`.
+     * If a configuration with the exact same settings already exists (even if the
+     * ID is different), the creation fails.
+     * Notes:
+     *   1. Updating a configuration with state=DISABLED will fail.
+     *   2. The following fields are not considered as `settings` for the purpose
+     *   of the check mentioned above, therefore - updating another configuration
+     *   with the same fields but different values for the following fields will
+     *   fail as well:
+     *       * name
+     *       * create_time
+     *       * update_time
+     *       * labels
+     *       * description
+     * 
+ */ + public com.google.longrunning.Operation updateVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateVpcFlowLogsConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a specific `VpcFlowLogsConfig`.
+     * 
+ */ + public com.google.longrunning.Operation deleteVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteVpcFlowLogsConfigMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service VpcFlowLogsService. + * + *
+   * The VPC Flow Logs service in the Google Cloud Network Management API provides
+   * configurations that generate Flow Logs. The service and the configuration
+   * resources created using this service are global.
+   * 
+ */ + public static final class VpcFlowLogsServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private VpcFlowLogsServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected VpcFlowLogsServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new VpcFlowLogsServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists all `VpcFlowLogsConfigs` in a given project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse> + listVpcFlowLogsConfigs( + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListVpcFlowLogsConfigsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the details of a specific `VpcFlowLogsConfig`.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig> + getVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetVpcFlowLogsConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new `VpcFlowLogsConfig`.
+     * If a configuration with the exact same settings already exists (even if the
+     * ID is different), the creation fails.
+     * Notes:
+     *   1. Creating a configuration with state=DISABLED will fail
+     *   2. The following fields are not considered as `settings` for the purpose
+     *   of the check mentioned above, therefore - creating another configuration
+     *   with the same fields but different values for the following fields will
+     *   fail as well:
+     *       * name
+     *       * create_time
+     *       * update_time
+     *       * labels
+     *       * description
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateVpcFlowLogsConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an existing `VpcFlowLogsConfig`.
+     * If a configuration with the exact same settings already exists (even if the
+     * ID is different), the creation fails.
+     * Notes:
+     *   1. Updating a configuration with state=DISABLED will fail.
+     *   2. The following fields are not considered as `settings` for the purpose
+     *   of the check mentioned above, therefore - updating another configuration
+     *   with the same fields but different values for the following fields will
+     *   fail as well:
+     *       * name
+     *       * create_time
+     *       * update_time
+     *       * labels
+     *       * description
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateVpcFlowLogsConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a specific `VpcFlowLogsConfig`.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteVpcFlowLogsConfigMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_VPC_FLOW_LOGS_CONFIGS = 0; + private static final int METHODID_GET_VPC_FLOW_LOGS_CONFIG = 1; + private static final int METHODID_CREATE_VPC_FLOW_LOGS_CONFIG = 2; + private static final int METHODID_UPDATE_VPC_FLOW_LOGS_CONFIG = 3; + private static final int METHODID_DELETE_VPC_FLOW_LOGS_CONFIG = 4; + + 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_LIST_VPC_FLOW_LOGS_CONFIGS: + serviceImpl.listVpcFlowLogsConfigs( + (com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse>) + responseObserver); + break; + case METHODID_GET_VPC_FLOW_LOGS_CONFIG: + serviceImpl.getVpcFlowLogsConfig( + (com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_VPC_FLOW_LOGS_CONFIG: + serviceImpl.createVpcFlowLogsConfig( + (com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_VPC_FLOW_LOGS_CONFIG: + serviceImpl.updateVpcFlowLogsConfig( + (com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_VPC_FLOW_LOGS_CONFIG: + serviceImpl.deleteVpcFlowLogsConfig( + (com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest) 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( + getListVpcFlowLogsConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest, + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse>( + service, METHODID_LIST_VPC_FLOW_LOGS_CONFIGS))) + .addMethod( + getGetVpcFlowLogsConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest, + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig>( + service, METHODID_GET_VPC_FLOW_LOGS_CONFIG))) + .addMethod( + getCreateVpcFlowLogsConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_VPC_FLOW_LOGS_CONFIG))) + .addMethod( + getUpdateVpcFlowLogsConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_VPC_FLOW_LOGS_CONFIG))) + .addMethod( + getDeleteVpcFlowLogsConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_VPC_FLOW_LOGS_CONFIG))) + .build(); + } + + private abstract static class VpcFlowLogsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + VpcFlowLogsServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("VpcFlowLogsService"); + } + } + + private static final class VpcFlowLogsServiceFileDescriptorSupplier + extends VpcFlowLogsServiceBaseDescriptorSupplier { + VpcFlowLogsServiceFileDescriptorSupplier() {} + } + + private static final class VpcFlowLogsServiceMethodDescriptorSupplier + extends VpcFlowLogsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + VpcFlowLogsServiceMethodDescriptorSupplier(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 (VpcFlowLogsServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new VpcFlowLogsServiceFileDescriptorSupplier()) + .addMethod(getListVpcFlowLogsConfigsMethod()) + .addMethod(getGetVpcFlowLogsConfigMethod()) + .addMethod(getCreateVpcFlowLogsConfigMethod()) + .addMethod(getUpdateVpcFlowLogsConfigMethod()) + .addMethod(getDeleteVpcFlowLogsConfigMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/CreateVpcFlowLogsConfigRequest.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/CreateVpcFlowLogsConfigRequest.java new file mode 100644 index 000000000000..6fe878b6bc41 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/CreateVpcFlowLogsConfigRequest.java @@ -0,0 +1,1169 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkmanagement/v1/vpc_flow_logs.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkmanagement.v1; + +/** + * + * + *
+ * Request for the `CreateVpcFlowLogsConfig` method.
+ * 
+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest} + */ +public final class CreateVpcFlowLogsConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest) + CreateVpcFlowLogsConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateVpcFlowLogsConfigRequest.newBuilder() to construct. + private CreateVpcFlowLogsConfigRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateVpcFlowLogsConfigRequest() { + parent_ = ""; + vpcFlowLogsConfigId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateVpcFlowLogsConfigRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_CreateVpcFlowLogsConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_CreateVpcFlowLogsConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest.class, + com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The parent resource of the VPC Flow Logs configuration to create:
+   *     `projects/{project_id}/locations/global`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The parent resource of the VPC Flow Logs configuration to create:
+   *     `projects/{project_id}/locations/global`
+   * 
+ * + * + * 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 VPC_FLOW_LOGS_CONFIG_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object vpcFlowLogsConfigId_ = ""; + /** + * + * + *
+   * Required. ID of the `VpcFlowLogsConfig`.
+   * 
+ * + * + * string vpc_flow_logs_config_id = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The vpcFlowLogsConfigId. + */ + @java.lang.Override + public java.lang.String getVpcFlowLogsConfigId() { + java.lang.Object ref = vpcFlowLogsConfigId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vpcFlowLogsConfigId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. ID of the `VpcFlowLogsConfig`.
+   * 
+ * + * + * string vpc_flow_logs_config_id = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for vpcFlowLogsConfigId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVpcFlowLogsConfigIdBytes() { + java.lang.Object ref = vpcFlowLogsConfigId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vpcFlowLogsConfigId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VPC_FLOW_LOGS_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpcFlowLogsConfig_; + /** + * + * + *
+   * Required. A `VpcFlowLogsConfig` resource
+   * 
+ * + * + * .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the vpcFlowLogsConfig field is set. + */ + @java.lang.Override + public boolean hasVpcFlowLogsConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. A `VpcFlowLogsConfig` resource
+   * 
+ * + * + * .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The vpcFlowLogsConfig. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig getVpcFlowLogsConfig() { + return vpcFlowLogsConfig_ == null + ? com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.getDefaultInstance() + : vpcFlowLogsConfig_; + } + /** + * + * + *
+   * Required. A `VpcFlowLogsConfig` resource
+   * 
+ * + * + * .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigOrBuilder + getVpcFlowLogsConfigOrBuilder() { + return vpcFlowLogsConfig_ == null + ? com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.getDefaultInstance() + : vpcFlowLogsConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcFlowLogsConfigId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, vpcFlowLogsConfigId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getVpcFlowLogsConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcFlowLogsConfigId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, vpcFlowLogsConfigId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getVpcFlowLogsConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest other = + (com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getVpcFlowLogsConfigId().equals(other.getVpcFlowLogsConfigId())) return false; + if (hasVpcFlowLogsConfig() != other.hasVpcFlowLogsConfig()) return false; + if (hasVpcFlowLogsConfig()) { + if (!getVpcFlowLogsConfig().equals(other.getVpcFlowLogsConfig())) return false; + } + if (!getUnknownFields().equals(other.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) + VPC_FLOW_LOGS_CONFIG_ID_FIELD_NUMBER; + hash = (53 * hash) + getVpcFlowLogsConfigId().hashCode(); + if (hasVpcFlowLogsConfig()) { + hash = (37 * hash) + VPC_FLOW_LOGS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getVpcFlowLogsConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 the `CreateVpcFlowLogsConfig` method.
+   * 
+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest) + com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_CreateVpcFlowLogsConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_CreateVpcFlowLogsConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest.class, + com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getVpcFlowLogsConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + vpcFlowLogsConfigId_ = ""; + vpcFlowLogsConfig_ = null; + if (vpcFlowLogsConfigBuilder_ != null) { + vpcFlowLogsConfigBuilder_.dispose(); + vpcFlowLogsConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_CreateVpcFlowLogsConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest build() { + com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest buildPartial() { + com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest result = + new com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.vpcFlowLogsConfigId_ = vpcFlowLogsConfigId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.vpcFlowLogsConfig_ = + vpcFlowLogsConfigBuilder_ == null + ? vpcFlowLogsConfig_ + : vpcFlowLogsConfigBuilder_.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.networkmanagement.v1.CreateVpcFlowLogsConfigRequest) { + return mergeFrom( + (com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest other) { + if (other + == com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getVpcFlowLogsConfigId().isEmpty()) { + vpcFlowLogsConfigId_ = other.vpcFlowLogsConfigId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasVpcFlowLogsConfig()) { + mergeVpcFlowLogsConfig(other.getVpcFlowLogsConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + vpcFlowLogsConfigId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getVpcFlowLogsConfigFieldBuilder().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 parent_ = ""; + /** + * + * + *
+     * Required. The parent resource of the VPC Flow Logs configuration to create:
+     *     `projects/{project_id}/locations/global`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The parent resource of the VPC Flow Logs configuration to create:
+     *     `projects/{project_id}/locations/global`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The parent resource of the VPC Flow Logs configuration to create:
+     *     `projects/{project_id}/locations/global`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent resource of the VPC Flow Logs configuration to create:
+     *     `projects/{project_id}/locations/global`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent resource of the VPC Flow Logs configuration to create:
+     *     `projects/{project_id}/locations/global`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object vpcFlowLogsConfigId_ = ""; + /** + * + * + *
+     * Required. ID of the `VpcFlowLogsConfig`.
+     * 
+ * + * + * string vpc_flow_logs_config_id = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The vpcFlowLogsConfigId. + */ + public java.lang.String getVpcFlowLogsConfigId() { + java.lang.Object ref = vpcFlowLogsConfigId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vpcFlowLogsConfigId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. ID of the `VpcFlowLogsConfig`.
+     * 
+ * + * + * string vpc_flow_logs_config_id = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for vpcFlowLogsConfigId. + */ + public com.google.protobuf.ByteString getVpcFlowLogsConfigIdBytes() { + java.lang.Object ref = vpcFlowLogsConfigId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vpcFlowLogsConfigId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. ID of the `VpcFlowLogsConfig`.
+     * 
+ * + * + * string vpc_flow_logs_config_id = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The vpcFlowLogsConfigId to set. + * @return This builder for chaining. + */ + public Builder setVpcFlowLogsConfigId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + vpcFlowLogsConfigId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. ID of the `VpcFlowLogsConfig`.
+     * 
+ * + * + * string vpc_flow_logs_config_id = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearVpcFlowLogsConfigId() { + vpcFlowLogsConfigId_ = getDefaultInstance().getVpcFlowLogsConfigId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. ID of the `VpcFlowLogsConfig`.
+     * 
+ * + * + * string vpc_flow_logs_config_id = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for vpcFlowLogsConfigId to set. + * @return This builder for chaining. + */ + public Builder setVpcFlowLogsConfigIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vpcFlowLogsConfigId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpcFlowLogsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig, + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Builder, + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigOrBuilder> + vpcFlowLogsConfigBuilder_; + /** + * + * + *
+     * Required. A `VpcFlowLogsConfig` resource
+     * 
+ * + * + * .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the vpcFlowLogsConfig field is set. + */ + public boolean hasVpcFlowLogsConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Required. A `VpcFlowLogsConfig` resource
+     * 
+ * + * + * .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The vpcFlowLogsConfig. + */ + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig getVpcFlowLogsConfig() { + if (vpcFlowLogsConfigBuilder_ == null) { + return vpcFlowLogsConfig_ == null + ? com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.getDefaultInstance() + : vpcFlowLogsConfig_; + } else { + return vpcFlowLogsConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. A `VpcFlowLogsConfig` resource
+     * 
+ * + * + * .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig value) { + if (vpcFlowLogsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + vpcFlowLogsConfig_ = value; + } else { + vpcFlowLogsConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A `VpcFlowLogsConfig` resource
+     * 
+ * + * + * .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Builder builderForValue) { + if (vpcFlowLogsConfigBuilder_ == null) { + vpcFlowLogsConfig_ = builderForValue.build(); + } else { + vpcFlowLogsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A `VpcFlowLogsConfig` resource
+     * 
+ * + * + * .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig value) { + if (vpcFlowLogsConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && vpcFlowLogsConfig_ != null + && vpcFlowLogsConfig_ + != com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.getDefaultInstance()) { + getVpcFlowLogsConfigBuilder().mergeFrom(value); + } else { + vpcFlowLogsConfig_ = value; + } + } else { + vpcFlowLogsConfigBuilder_.mergeFrom(value); + } + if (vpcFlowLogsConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. A `VpcFlowLogsConfig` resource
+     * 
+ * + * + * .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearVpcFlowLogsConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + vpcFlowLogsConfig_ = null; + if (vpcFlowLogsConfigBuilder_ != null) { + vpcFlowLogsConfigBuilder_.dispose(); + vpcFlowLogsConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. A `VpcFlowLogsConfig` resource
+     * 
+ * + * + * .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Builder + getVpcFlowLogsConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getVpcFlowLogsConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. A `VpcFlowLogsConfig` resource
+     * 
+ * + * + * .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigOrBuilder + getVpcFlowLogsConfigOrBuilder() { + if (vpcFlowLogsConfigBuilder_ != null) { + return vpcFlowLogsConfigBuilder_.getMessageOrBuilder(); + } else { + return vpcFlowLogsConfig_ == null + ? com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.getDefaultInstance() + : vpcFlowLogsConfig_; + } + } + /** + * + * + *
+     * Required. A `VpcFlowLogsConfig` resource
+     * 
+ * + * + * .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig, + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Builder, + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigOrBuilder> + getVpcFlowLogsConfigFieldBuilder() { + if (vpcFlowLogsConfigBuilder_ == null) { + vpcFlowLogsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig, + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Builder, + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigOrBuilder>( + getVpcFlowLogsConfig(), getParentForChildren(), isClean()); + vpcFlowLogsConfig_ = null; + } + return vpcFlowLogsConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest) + private static final com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest(); + } + + public static com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateVpcFlowLogsConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/CreateVpcFlowLogsConfigRequestOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/CreateVpcFlowLogsConfigRequestOrBuilder.java new file mode 100644 index 000000000000..419e8dfa0ff9 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/CreateVpcFlowLogsConfigRequestOrBuilder.java @@ -0,0 +1,127 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkmanagement/v1/vpc_flow_logs.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkmanagement.v1; + +public interface CreateVpcFlowLogsConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource of the VPC Flow Logs configuration to create:
+   *     `projects/{project_id}/locations/global`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent resource of the VPC Flow Logs configuration to create:
+   *     `projects/{project_id}/locations/global`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. ID of the `VpcFlowLogsConfig`.
+   * 
+ * + * + * string vpc_flow_logs_config_id = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The vpcFlowLogsConfigId. + */ + java.lang.String getVpcFlowLogsConfigId(); + /** + * + * + *
+   * Required. ID of the `VpcFlowLogsConfig`.
+   * 
+ * + * + * string vpc_flow_logs_config_id = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for vpcFlowLogsConfigId. + */ + com.google.protobuf.ByteString getVpcFlowLogsConfigIdBytes(); + + /** + * + * + *
+   * Required. A `VpcFlowLogsConfig` resource
+   * 
+ * + * + * .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the vpcFlowLogsConfig field is set. + */ + boolean hasVpcFlowLogsConfig(); + /** + * + * + *
+   * Required. A `VpcFlowLogsConfig` resource
+   * 
+ * + * + * .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The vpcFlowLogsConfig. + */ + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig getVpcFlowLogsConfig(); + /** + * + * + *
+   * Required. A `VpcFlowLogsConfig` resource
+   * 
+ * + * + * .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigOrBuilder getVpcFlowLogsConfigOrBuilder(); +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeleteVpcFlowLogsConfigRequest.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeleteVpcFlowLogsConfigRequest.java new file mode 100644 index 000000000000..b116f189334e --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeleteVpcFlowLogsConfigRequest.java @@ -0,0 +1,659 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkmanagement/v1/vpc_flow_logs.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkmanagement.v1; + +/** + * + * + *
+ * Request for the `DeleteVpcFlowLogsConfig` method.
+ * 
+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest} + */ +public final class DeleteVpcFlowLogsConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest) + DeleteVpcFlowLogsConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteVpcFlowLogsConfigRequest.newBuilder() to construct. + private DeleteVpcFlowLogsConfigRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteVpcFlowLogsConfigRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteVpcFlowLogsConfigRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_DeleteVpcFlowLogsConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_DeleteVpcFlowLogsConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest.class, + com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. `VpcFlowLogsConfig` resource name using the form:
+   *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
+   * 
+ * + * + * 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. `VpcFlowLogsConfig` resource name using the form:
+   *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
+   * 
+ * + * + * 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.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest other = + (com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest) 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.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 the `DeleteVpcFlowLogsConfig` method.
+   * 
+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest) + com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_DeleteVpcFlowLogsConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_DeleteVpcFlowLogsConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest.class, + com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest.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.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_DeleteVpcFlowLogsConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest build() { + com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest buildPartial() { + com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest result = + new com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest 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.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest) { + return mergeFrom( + (com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest other) { + if (other + == com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest + .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. `VpcFlowLogsConfig` resource name using the form:
+     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
+     * 
+ * + * + * 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. `VpcFlowLogsConfig` resource name using the form:
+     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
+     * 
+ * + * + * 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. `VpcFlowLogsConfig` resource name using the form:
+     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
+     * 
+ * + * + * 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. `VpcFlowLogsConfig` resource name using the form:
+     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
+     * 
+ * + * + * 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. `VpcFlowLogsConfig` resource name using the form:
+     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
+     * 
+ * + * + * 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.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest) + private static final com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest(); + } + + public static com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteVpcFlowLogsConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeleteVpcFlowLogsConfigRequestOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeleteVpcFlowLogsConfigRequestOrBuilder.java new file mode 100644 index 000000000000..bf3eaf566539 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeleteVpcFlowLogsConfigRequestOrBuilder.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkmanagement/v1/vpc_flow_logs.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkmanagement.v1; + +public interface DeleteVpcFlowLogsConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. `VpcFlowLogsConfig` resource name using the form:
+   *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. `VpcFlowLogsConfig` resource name using the form:
+   *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
+   * 
+ * + * + * 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-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/GetVpcFlowLogsConfigRequest.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/GetVpcFlowLogsConfigRequest.java new file mode 100644 index 000000000000..abe76558f2cb --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/GetVpcFlowLogsConfigRequest.java @@ -0,0 +1,656 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkmanagement/v1/vpc_flow_logs.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkmanagement.v1; + +/** + * + * + *
+ * Request for the `GetVpcFlowLogsConfig` method.
+ * 
+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest} + */ +public final class GetVpcFlowLogsConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest) + GetVpcFlowLogsConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetVpcFlowLogsConfigRequest.newBuilder() to construct. + private GetVpcFlowLogsConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetVpcFlowLogsConfigRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetVpcFlowLogsConfigRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_GetVpcFlowLogsConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_GetVpcFlowLogsConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest.class, + com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. `VpcFlowLogsConfig` resource name using the form:
+   *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
+   * 
+ * + * + * 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. `VpcFlowLogsConfig` resource name using the form:
+   *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
+   * 
+ * + * + * 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.networkmanagement.v1.GetVpcFlowLogsConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest other = + (com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest) 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.networkmanagement.v1.GetVpcFlowLogsConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 the `GetVpcFlowLogsConfig` method.
+   * 
+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest) + com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_GetVpcFlowLogsConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_GetVpcFlowLogsConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest.class, + com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest.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.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_GetVpcFlowLogsConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest build() { + com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest buildPartial() { + com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest result = + new com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest 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.networkmanagement.v1.GetVpcFlowLogsConfigRequest) { + return mergeFrom((com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest other) { + if (other + == com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest.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. `VpcFlowLogsConfig` resource name using the form:
+     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
+     * 
+ * + * + * 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. `VpcFlowLogsConfig` resource name using the form:
+     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
+     * 
+ * + * + * 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. `VpcFlowLogsConfig` resource name using the form:
+     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
+     * 
+ * + * + * 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. `VpcFlowLogsConfig` resource name using the form:
+     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
+     * 
+ * + * + * 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. `VpcFlowLogsConfig` resource name using the form:
+     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
+     * 
+ * + * + * 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.networkmanagement.v1.GetVpcFlowLogsConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest) + private static final com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest(); + } + + public static com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetVpcFlowLogsConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/GetVpcFlowLogsConfigRequestOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/GetVpcFlowLogsConfigRequestOrBuilder.java new file mode 100644 index 000000000000..90b0bce09d35 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/GetVpcFlowLogsConfigRequestOrBuilder.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkmanagement/v1/vpc_flow_logs.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkmanagement.v1; + +public interface GetVpcFlowLogsConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. `VpcFlowLogsConfig` resource name using the form:
+   *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. `VpcFlowLogsConfig` resource name using the form:
+   *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`
+   * 
+ * + * + * 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-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ListVpcFlowLogsConfigsRequest.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ListVpcFlowLogsConfigsRequest.java new file mode 100644 index 000000000000..3d91d5946e5a --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ListVpcFlowLogsConfigsRequest.java @@ -0,0 +1,1318 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkmanagement/v1/vpc_flow_logs.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkmanagement.v1; + +/** + * + * + *
+ * Request for the `ListVpcFlowLogsConfigs` method.
+ * 
+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest} + */ +public final class ListVpcFlowLogsConfigsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest) + ListVpcFlowLogsConfigsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListVpcFlowLogsConfigsRequest.newBuilder() to construct. + private ListVpcFlowLogsConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListVpcFlowLogsConfigsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListVpcFlowLogsConfigsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_ListVpcFlowLogsConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_ListVpcFlowLogsConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest.class, + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The parent resource of the VpcFlowLogsConfig:
+   *     `projects/{project_id}/locations/global`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The parent resource of the VpcFlowLogsConfig:
+   *     `projects/{project_id}/locations/global`
+   * 
+ * + * + * 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. Number of `VpcFlowLogsConfigs` to return.
+   * 
+ * + * 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. Page token from an earlier query, as returned in
+   * `next_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. Page token from an earlier query, as returned in
+   * `next_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. Lists the `VpcFlowLogsConfigs` that match the filter expression.
+   * A filter expression must use the supported [CEL logic operators]
+   * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
+   * 
+ * + * 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. Lists the `VpcFlowLogsConfigs` that match the filter expression.
+   * A filter expression must use the supported [CEL logic operators]
+   * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
+   * 
+ * + * 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. Field to use to sort the list.
+   * 
+ * + * 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. Field to use to sort the list.
+   * 
+ * + * 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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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_); + } + 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_); + } + 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_); + } + 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_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest)) { + return super.equals(obj); + } + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest other = + (com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest) obj; + + if (!getParent().equals(other.getParent())) 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 (!getUnknownFields().equals(other.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 = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 the `ListVpcFlowLogsConfigs` method.
+   * 
+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest) + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_ListVpcFlowLogsConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_ListVpcFlowLogsConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest.class, + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest.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_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_ListVpcFlowLogsConfigsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest + getDefaultInstanceForType() { + return com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest build() { + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest buildPartial() { + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest result = + new com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest 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_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest) { + return mergeFrom( + (com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest other) { + if (other + == com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest + .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(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 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 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The parent resource of the VpcFlowLogsConfig:
+     *     `projects/{project_id}/locations/global`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The parent resource of the VpcFlowLogsConfig:
+     *     `projects/{project_id}/locations/global`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The parent resource of the VpcFlowLogsConfig:
+     *     `projects/{project_id}/locations/global`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent resource of the VpcFlowLogsConfig:
+     *     `projects/{project_id}/locations/global`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent resource of the VpcFlowLogsConfig:
+     *     `projects/{project_id}/locations/global`
+     * 
+ * + * + * 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. Number of `VpcFlowLogsConfigs` to return.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. Number of `VpcFlowLogsConfigs` to return.
+     * 
+ * + * 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. Number of `VpcFlowLogsConfigs` to return.
+     * 
+ * + * 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. Page token from an earlier query, as returned in
+     * `next_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. Page token from an earlier query, as returned in
+     * `next_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. Page token from an earlier query, as returned in
+     * `next_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. Page token from an earlier query, as returned in
+     * `next_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. Page token from an earlier query, as returned in
+     * `next_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. Lists the `VpcFlowLogsConfigs` that match the filter expression.
+     * A filter expression must use the supported [CEL logic operators]
+     * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
+     * 
+ * + * 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. Lists the `VpcFlowLogsConfigs` that match the filter expression.
+     * A filter expression must use the supported [CEL logic operators]
+     * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
+     * 
+ * + * 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. Lists the `VpcFlowLogsConfigs` that match the filter expression.
+     * A filter expression must use the supported [CEL logic operators]
+     * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
+     * 
+ * + * 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. Lists the `VpcFlowLogsConfigs` that match the filter expression.
+     * A filter expression must use the supported [CEL logic operators]
+     * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
+     * 
+ * + * 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. Lists the `VpcFlowLogsConfigs` that match the filter expression.
+     * A filter expression must use the supported [CEL logic operators]
+     * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
+     * 
+ * + * 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. Field to use to sort the list.
+     * 
+ * + * 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. Field to use to sort the list.
+     * 
+ * + * 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. Field to use to sort the list.
+     * 
+ * + * 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. Field to use to sort the list.
+     * 
+ * + * 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. Field to use to sort the list.
+     * 
+ * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest) + private static final com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest(); + } + + public static com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListVpcFlowLogsConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ListVpcFlowLogsConfigsRequestOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ListVpcFlowLogsConfigsRequestOrBuilder.java new file mode 100644 index 000000000000..248d0938135d --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ListVpcFlowLogsConfigsRequestOrBuilder.java @@ -0,0 +1,151 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkmanagement/v1/vpc_flow_logs.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkmanagement.v1; + +public interface ListVpcFlowLogsConfigsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource of the VpcFlowLogsConfig:
+   *     `projects/{project_id}/locations/global`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent resource of the VpcFlowLogsConfig:
+   *     `projects/{project_id}/locations/global`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. Number of `VpcFlowLogsConfigs` to return.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. Page token from an earlier query, as returned in
+   * `next_page_token`.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. Page token from an earlier query, as returned in
+   * `next_page_token`.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression.
+   * A filter expression must use the supported [CEL logic operators]
+   * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression.
+   * A filter expression must use the supported [CEL logic operators]
+   * (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. Field to use to sort the list.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
+   * Optional. Field to use to sort the list.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ListVpcFlowLogsConfigsResponse.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ListVpcFlowLogsConfigsResponse.java new file mode 100644 index 000000000000..0e9221160013 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ListVpcFlowLogsConfigsResponse.java @@ -0,0 +1,1474 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkmanagement/v1/vpc_flow_logs.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkmanagement.v1; + +/** + * + * + *
+ * Response for the `ListVpcFlowLogsConfigs` method.
+ * 
+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse} + */ +public final class ListVpcFlowLogsConfigsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse) + ListVpcFlowLogsConfigsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListVpcFlowLogsConfigsResponse.newBuilder() to construct. + private ListVpcFlowLogsConfigsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListVpcFlowLogsConfigsResponse() { + vpcFlowLogsConfigs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListVpcFlowLogsConfigsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_ListVpcFlowLogsConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_ListVpcFlowLogsConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse.class, + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse.Builder.class); + } + + public static final int VPC_FLOW_LOGS_CONFIGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + vpcFlowLogsConfigs_; + /** + * + * + *
+   * List of VPC Flow Log configurations.
+   * 
+ * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + @java.lang.Override + public java.util.List + getVpcFlowLogsConfigsList() { + return vpcFlowLogsConfigs_; + } + /** + * + * + *
+   * List of VPC Flow Log configurations.
+   * 
+ * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + @java.lang.Override + public java.util.List + getVpcFlowLogsConfigsOrBuilderList() { + return vpcFlowLogsConfigs_; + } + /** + * + * + *
+   * List of VPC Flow Log configurations.
+   * 
+ * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + @java.lang.Override + public int getVpcFlowLogsConfigsCount() { + return vpcFlowLogsConfigs_.size(); + } + /** + * + * + *
+   * List of VPC Flow Log configurations.
+   * 
+ * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig getVpcFlowLogsConfigs(int index) { + return vpcFlowLogsConfigs_.get(index); + } + /** + * + * + *
+   * List of VPC Flow Log configurations.
+   * 
+ * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigOrBuilder + getVpcFlowLogsConfigsOrBuilder(int index) { + return vpcFlowLogsConfigs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * Page token to fetch the next set of configurations.
+   * 
+ * + * 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; + } + } + /** + * + * + *
+   * Page token to fetch the next set of configurations.
+   * 
+ * + * 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; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Locations that could not be reached (when querying all locations with `-`).
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + /** + * + * + *
+   * Locations that could not be reached (when querying all locations with `-`).
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+   * Locations that could not be reached (when querying all locations with `-`).
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+   * Locations that could not be reached (when querying all locations with `-`).
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.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 < vpcFlowLogsConfigs_.size(); i++) { + output.writeMessage(1, vpcFlowLogsConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(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 < vpcFlowLogsConfigs_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, vpcFlowLogsConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().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.networkmanagement.v1.ListVpcFlowLogsConfigsResponse)) { + return super.equals(obj); + } + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse other = + (com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse) obj; + + if (!getVpcFlowLogsConfigsList().equals(other.getVpcFlowLogsConfigsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.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 (getVpcFlowLogsConfigsCount() > 0) { + hash = (37 * hash) + VPC_FLOW_LOGS_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getVpcFlowLogsConfigsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response for the `ListVpcFlowLogsConfigs` method.
+   * 
+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse) + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_ListVpcFlowLogsConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_ListVpcFlowLogsConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse.class, + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (vpcFlowLogsConfigsBuilder_ == null) { + vpcFlowLogsConfigs_ = java.util.Collections.emptyList(); + } else { + vpcFlowLogsConfigs_ = null; + vpcFlowLogsConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_ListVpcFlowLogsConfigsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse + getDefaultInstanceForType() { + return com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse build() { + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse buildPartial() { + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse result = + new com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse result) { + if (vpcFlowLogsConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + vpcFlowLogsConfigs_ = java.util.Collections.unmodifiableList(vpcFlowLogsConfigs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.vpcFlowLogsConfigs_ = vpcFlowLogsConfigs_; + } else { + result.vpcFlowLogsConfigs_ = vpcFlowLogsConfigsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse) { + return mergeFrom( + (com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse other) { + if (other + == com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse + .getDefaultInstance()) return this; + if (vpcFlowLogsConfigsBuilder_ == null) { + if (!other.vpcFlowLogsConfigs_.isEmpty()) { + if (vpcFlowLogsConfigs_.isEmpty()) { + vpcFlowLogsConfigs_ = other.vpcFlowLogsConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureVpcFlowLogsConfigsIsMutable(); + vpcFlowLogsConfigs_.addAll(other.vpcFlowLogsConfigs_); + } + onChanged(); + } + } else { + if (!other.vpcFlowLogsConfigs_.isEmpty()) { + if (vpcFlowLogsConfigsBuilder_.isEmpty()) { + vpcFlowLogsConfigsBuilder_.dispose(); + vpcFlowLogsConfigsBuilder_ = null; + vpcFlowLogsConfigs_ = other.vpcFlowLogsConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + vpcFlowLogsConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getVpcFlowLogsConfigsFieldBuilder() + : null; + } else { + vpcFlowLogsConfigsBuilder_.addAllMessages(other.vpcFlowLogsConfigs_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + 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.networkmanagement.v1.VpcFlowLogsConfig m = + input.readMessage( + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.parser(), + extensionRegistry); + if (vpcFlowLogsConfigsBuilder_ == null) { + ensureVpcFlowLogsConfigsIsMutable(); + vpcFlowLogsConfigs_.add(m); + } else { + vpcFlowLogsConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + 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 + vpcFlowLogsConfigs_ = java.util.Collections.emptyList(); + + private void ensureVpcFlowLogsConfigsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + vpcFlowLogsConfigs_ = + new java.util.ArrayList( + vpcFlowLogsConfigs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig, + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Builder, + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigOrBuilder> + vpcFlowLogsConfigsBuilder_; + + /** + * + * + *
+     * List of VPC Flow Log configurations.
+     * 
+ * + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public java.util.List + getVpcFlowLogsConfigsList() { + if (vpcFlowLogsConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(vpcFlowLogsConfigs_); + } else { + return vpcFlowLogsConfigsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of VPC Flow Log configurations.
+     * 
+ * + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public int getVpcFlowLogsConfigsCount() { + if (vpcFlowLogsConfigsBuilder_ == null) { + return vpcFlowLogsConfigs_.size(); + } else { + return vpcFlowLogsConfigsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of VPC Flow Log configurations.
+     * 
+ * + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig getVpcFlowLogsConfigs( + int index) { + if (vpcFlowLogsConfigsBuilder_ == null) { + return vpcFlowLogsConfigs_.get(index); + } else { + return vpcFlowLogsConfigsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of VPC Flow Log configurations.
+     * 
+ * + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public Builder setVpcFlowLogsConfigs( + int index, com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig value) { + if (vpcFlowLogsConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVpcFlowLogsConfigsIsMutable(); + vpcFlowLogsConfigs_.set(index, value); + onChanged(); + } else { + vpcFlowLogsConfigsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of VPC Flow Log configurations.
+     * 
+ * + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public Builder setVpcFlowLogsConfigs( + int index, + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Builder builderForValue) { + if (vpcFlowLogsConfigsBuilder_ == null) { + ensureVpcFlowLogsConfigsIsMutable(); + vpcFlowLogsConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + vpcFlowLogsConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of VPC Flow Log configurations.
+     * 
+ * + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public Builder addVpcFlowLogsConfigs( + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig value) { + if (vpcFlowLogsConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVpcFlowLogsConfigsIsMutable(); + vpcFlowLogsConfigs_.add(value); + onChanged(); + } else { + vpcFlowLogsConfigsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of VPC Flow Log configurations.
+     * 
+ * + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public Builder addVpcFlowLogsConfigs( + int index, com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig value) { + if (vpcFlowLogsConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVpcFlowLogsConfigsIsMutable(); + vpcFlowLogsConfigs_.add(index, value); + onChanged(); + } else { + vpcFlowLogsConfigsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of VPC Flow Log configurations.
+     * 
+ * + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public Builder addVpcFlowLogsConfigs( + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Builder builderForValue) { + if (vpcFlowLogsConfigsBuilder_ == null) { + ensureVpcFlowLogsConfigsIsMutable(); + vpcFlowLogsConfigs_.add(builderForValue.build()); + onChanged(); + } else { + vpcFlowLogsConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of VPC Flow Log configurations.
+     * 
+ * + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public Builder addVpcFlowLogsConfigs( + int index, + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Builder builderForValue) { + if (vpcFlowLogsConfigsBuilder_ == null) { + ensureVpcFlowLogsConfigsIsMutable(); + vpcFlowLogsConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + vpcFlowLogsConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of VPC Flow Log configurations.
+     * 
+ * + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public Builder addAllVpcFlowLogsConfigs( + java.lang.Iterable + values) { + if (vpcFlowLogsConfigsBuilder_ == null) { + ensureVpcFlowLogsConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, vpcFlowLogsConfigs_); + onChanged(); + } else { + vpcFlowLogsConfigsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of VPC Flow Log configurations.
+     * 
+ * + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public Builder clearVpcFlowLogsConfigs() { + if (vpcFlowLogsConfigsBuilder_ == null) { + vpcFlowLogsConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + vpcFlowLogsConfigsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of VPC Flow Log configurations.
+     * 
+ * + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public Builder removeVpcFlowLogsConfigs(int index) { + if (vpcFlowLogsConfigsBuilder_ == null) { + ensureVpcFlowLogsConfigsIsMutable(); + vpcFlowLogsConfigs_.remove(index); + onChanged(); + } else { + vpcFlowLogsConfigsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of VPC Flow Log configurations.
+     * 
+ * + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Builder + getVpcFlowLogsConfigsBuilder(int index) { + return getVpcFlowLogsConfigsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of VPC Flow Log configurations.
+     * 
+ * + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigOrBuilder + getVpcFlowLogsConfigsOrBuilder(int index) { + if (vpcFlowLogsConfigsBuilder_ == null) { + return vpcFlowLogsConfigs_.get(index); + } else { + return vpcFlowLogsConfigsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of VPC Flow Log configurations.
+     * 
+ * + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigOrBuilder> + getVpcFlowLogsConfigsOrBuilderList() { + if (vpcFlowLogsConfigsBuilder_ != null) { + return vpcFlowLogsConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(vpcFlowLogsConfigs_); + } + } + /** + * + * + *
+     * List of VPC Flow Log configurations.
+     * 
+ * + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Builder + addVpcFlowLogsConfigsBuilder() { + return getVpcFlowLogsConfigsFieldBuilder() + .addBuilder(com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.getDefaultInstance()); + } + /** + * + * + *
+     * List of VPC Flow Log configurations.
+     * 
+ * + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Builder + addVpcFlowLogsConfigsBuilder(int index) { + return getVpcFlowLogsConfigsFieldBuilder() + .addBuilder( + index, com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.getDefaultInstance()); + } + /** + * + * + *
+     * List of VPC Flow Log configurations.
+     * 
+ * + * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + public java.util.List + getVpcFlowLogsConfigsBuilderList() { + return getVpcFlowLogsConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig, + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Builder, + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigOrBuilder> + getVpcFlowLogsConfigsFieldBuilder() { + if (vpcFlowLogsConfigsBuilder_ == null) { + vpcFlowLogsConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig, + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Builder, + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigOrBuilder>( + vpcFlowLogsConfigs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + vpcFlowLogsConfigs_ = null; + } + return vpcFlowLogsConfigsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * Page token to fetch the next set of configurations.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Page token to fetch the next set of configurations.
+     * 
+ * + * 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; + } + } + /** + * + * + *
+     * Page token to fetch the next set of configurations.
+     * 
+ * + * 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; + } + /** + * + * + *
+     * Page token to fetch the next set of configurations.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Page token to fetch the next set of configurations.
+     * 
+ * + * 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; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + /** + * + * + *
+     * Locations that could not be reached (when querying all locations with `-`).
+     * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + /** + * + * + *
+     * Locations that could not be reached (when querying all locations with `-`).
+     * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+     * Locations that could not be reached (when querying all locations with `-`).
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+     * Locations that could not be reached (when querying all locations with `-`).
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + * + * + *
+     * Locations that could not be reached (when querying all locations with `-`).
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached (when querying all locations with `-`).
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached (when querying all locations with `-`).
+     * 
+ * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached (when querying all locations with `-`).
+     * 
+ * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached (when querying all locations with `-`).
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(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.networkmanagement.v1.ListVpcFlowLogsConfigsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse) + private static final com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse(); + } + + public static com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListVpcFlowLogsConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ListVpcFlowLogsConfigsResponseOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ListVpcFlowLogsConfigsResponseOrBuilder.java new file mode 100644 index 000000000000..8f7cab86a296 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ListVpcFlowLogsConfigsResponseOrBuilder.java @@ -0,0 +1,161 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkmanagement/v1/vpc_flow_logs.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkmanagement.v1; + +public interface ListVpcFlowLogsConfigsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of VPC Flow Log configurations.
+   * 
+ * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + java.util.List + getVpcFlowLogsConfigsList(); + /** + * + * + *
+   * List of VPC Flow Log configurations.
+   * 
+ * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig getVpcFlowLogsConfigs(int index); + /** + * + * + *
+   * List of VPC Flow Log configurations.
+   * 
+ * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + int getVpcFlowLogsConfigsCount(); + /** + * + * + *
+   * List of VPC Flow Log configurations.
+   * 
+ * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + java.util.List + getVpcFlowLogsConfigsOrBuilderList(); + /** + * + * + *
+   * List of VPC Flow Log configurations.
+   * 
+ * + * repeated .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_configs = 1; + * + */ + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigOrBuilder getVpcFlowLogsConfigsOrBuilder( + int index); + + /** + * + * + *
+   * Page token to fetch the next set of configurations.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * Page token to fetch the next set of configurations.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Locations that could not be reached (when querying all locations with `-`).
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + /** + * + * + *
+   * Locations that could not be reached (when querying all locations with `-`).
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + * + * + *
+   * Locations that could not be reached (when querying all locations with `-`).
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + * + * + *
+   * Locations that could not be reached (when querying all locations with `-`).
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LocationName.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LocationName.java new file mode 100644 index 000000000000..e3b27ad3f993 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LocationName.java @@ -0,0 +1,192 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.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 LocationName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + + @Deprecated + protected LocationName() { + project = null; + location = null; + } + + private LocationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static LocationName of(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build(); + } + + public static String format(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build().toString(); + } + + public static LocationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION.validatedMatch( + formattedString, "LocationName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (LocationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION.instantiate("project", project, "location", location); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + LocationName that = ((LocationName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + return h; + } + + /** Builder for projects/{project}/locations/{location}. */ + public static class Builder { + private String project; + private String location; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + private Builder(LocationName locationName) { + this.project = locationName.project; + this.location = locationName.location; + } + + public LocationName build() { + return new LocationName(this); + } + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/UpdateVpcFlowLogsConfigRequest.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/UpdateVpcFlowLogsConfigRequest.java new file mode 100644 index 000000000000..4cd6e247763f --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/UpdateVpcFlowLogsConfigRequest.java @@ -0,0 +1,1057 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkmanagement/v1/vpc_flow_logs.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkmanagement.v1; + +/** + * + * + *
+ * Request for the `UpdateVpcFlowLogsConfig` method.
+ * 
+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest} + */ +public final class UpdateVpcFlowLogsConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest) + UpdateVpcFlowLogsConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateVpcFlowLogsConfigRequest.newBuilder() to construct. + private UpdateVpcFlowLogsConfigRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateVpcFlowLogsConfigRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateVpcFlowLogsConfigRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_UpdateVpcFlowLogsConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_UpdateVpcFlowLogsConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest.class, + com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. Mask of fields to update. At least one path must be supplied in
+   * this field.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. Mask of fields to update. At least one path must be supplied in
+   * this field.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. Mask of fields to update. At least one path must be supplied in
+   * this field.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int VPC_FLOW_LOGS_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpcFlowLogsConfig_; + /** + * + * + *
+   * Required. Only fields specified in update_mask are updated.
+   * 
+ * + * + * .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the vpcFlowLogsConfig field is set. + */ + @java.lang.Override + public boolean hasVpcFlowLogsConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Required. Only fields specified in update_mask are updated.
+   * 
+ * + * + * .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The vpcFlowLogsConfig. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig getVpcFlowLogsConfig() { + return vpcFlowLogsConfig_ == null + ? com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.getDefaultInstance() + : vpcFlowLogsConfig_; + } + /** + * + * + *
+   * Required. Only fields specified in update_mask are updated.
+   * 
+ * + * + * .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigOrBuilder + getVpcFlowLogsConfigOrBuilder() { + return vpcFlowLogsConfig_ == null + ? com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.getDefaultInstance() + : vpcFlowLogsConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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, getVpcFlowLogsConfig()); + } + 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, getVpcFlowLogsConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest other = + (com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasVpcFlowLogsConfig() != other.hasVpcFlowLogsConfig()) return false; + if (hasVpcFlowLogsConfig()) { + if (!getVpcFlowLogsConfig().equals(other.getVpcFlowLogsConfig())) return false; + } + if (!getUnknownFields().equals(other.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 (hasVpcFlowLogsConfig()) { + hash = (37 * hash) + VPC_FLOW_LOGS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getVpcFlowLogsConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 the `UpdateVpcFlowLogsConfig` method.
+   * 
+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest) + com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_UpdateVpcFlowLogsConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_UpdateVpcFlowLogsConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest.class, + com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest.Builder.class); + } + + // Construct using + // com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest.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(); + getVpcFlowLogsConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + vpcFlowLogsConfig_ = null; + if (vpcFlowLogsConfigBuilder_ != null) { + vpcFlowLogsConfigBuilder_.dispose(); + vpcFlowLogsConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsProto + .internal_static_google_cloud_networkmanagement_v1_UpdateVpcFlowLogsConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest build() { + com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest buildPartial() { + com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest result = + new com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest 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.vpcFlowLogsConfig_ = + vpcFlowLogsConfigBuilder_ == null + ? vpcFlowLogsConfig_ + : vpcFlowLogsConfigBuilder_.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.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest) { + return mergeFrom( + (com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest other) { + if (other + == com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest + .getDefaultInstance()) return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasVpcFlowLogsConfig()) { + mergeVpcFlowLogsConfig(other.getVpcFlowLogsConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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( + getVpcFlowLogsConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. Mask of fields to update. At least one path must be supplied in
+     * this field.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. Mask of fields to update. At least one path must be supplied in
+     * this field.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @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(); + } + } + /** + * + * + *
+     * Required. Mask of fields to update. At least one path must be supplied in
+     * this field.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + 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; + } + /** + * + * + *
+     * Required. Mask of fields to update. At least one path must be supplied in
+     * this field.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + 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; + } + /** + * + * + *
+     * Required. Mask of fields to update. At least one path must be supplied in
+     * this field.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + 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; + } + /** + * + * + *
+     * Required. Mask of fields to update. At least one path must be supplied in
+     * this field.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Mask of fields to update. At least one path must be supplied in
+     * this field.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Mask of fields to update. At least one path must be supplied in
+     * this field.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. Mask of fields to update. At least one path must be supplied in
+     * this field.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + 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.networkmanagement.v1.VpcFlowLogsConfig vpcFlowLogsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig, + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Builder, + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigOrBuilder> + vpcFlowLogsConfigBuilder_; + /** + * + * + *
+     * Required. Only fields specified in update_mask are updated.
+     * 
+ * + * + * .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the vpcFlowLogsConfig field is set. + */ + public boolean hasVpcFlowLogsConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. Only fields specified in update_mask are updated.
+     * 
+ * + * + * .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The vpcFlowLogsConfig. + */ + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig getVpcFlowLogsConfig() { + if (vpcFlowLogsConfigBuilder_ == null) { + return vpcFlowLogsConfig_ == null + ? com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.getDefaultInstance() + : vpcFlowLogsConfig_; + } else { + return vpcFlowLogsConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Only fields specified in update_mask are updated.
+     * 
+ * + * + * .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig value) { + if (vpcFlowLogsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + vpcFlowLogsConfig_ = value; + } else { + vpcFlowLogsConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Only fields specified in update_mask are updated.
+     * 
+ * + * + * .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Builder builderForValue) { + if (vpcFlowLogsConfigBuilder_ == null) { + vpcFlowLogsConfig_ = builderForValue.build(); + } else { + vpcFlowLogsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Only fields specified in update_mask are updated.
+     * 
+ * + * + * .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeVpcFlowLogsConfig( + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig value) { + if (vpcFlowLogsConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && vpcFlowLogsConfig_ != null + && vpcFlowLogsConfig_ + != com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.getDefaultInstance()) { + getVpcFlowLogsConfigBuilder().mergeFrom(value); + } else { + vpcFlowLogsConfig_ = value; + } + } else { + vpcFlowLogsConfigBuilder_.mergeFrom(value); + } + if (vpcFlowLogsConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. Only fields specified in update_mask are updated.
+     * 
+ * + * + * .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearVpcFlowLogsConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + vpcFlowLogsConfig_ = null; + if (vpcFlowLogsConfigBuilder_ != null) { + vpcFlowLogsConfigBuilder_.dispose(); + vpcFlowLogsConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Only fields specified in update_mask are updated.
+     * 
+ * + * + * .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Builder + getVpcFlowLogsConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getVpcFlowLogsConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Only fields specified in update_mask are updated.
+     * 
+ * + * + * .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigOrBuilder + getVpcFlowLogsConfigOrBuilder() { + if (vpcFlowLogsConfigBuilder_ != null) { + return vpcFlowLogsConfigBuilder_.getMessageOrBuilder(); + } else { + return vpcFlowLogsConfig_ == null + ? com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.getDefaultInstance() + : vpcFlowLogsConfig_; + } + } + /** + * + * + *
+     * Required. Only fields specified in update_mask are updated.
+     * 
+ * + * + * .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig, + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Builder, + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigOrBuilder> + getVpcFlowLogsConfigFieldBuilder() { + if (vpcFlowLogsConfigBuilder_ == null) { + vpcFlowLogsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig, + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Builder, + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigOrBuilder>( + getVpcFlowLogsConfig(), getParentForChildren(), isClean()); + vpcFlowLogsConfig_ = null; + } + return vpcFlowLogsConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest) + private static final com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest(); + } + + public static com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateVpcFlowLogsConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/UpdateVpcFlowLogsConfigRequestOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/UpdateVpcFlowLogsConfigRequestOrBuilder.java new file mode 100644 index 000000000000..cb4e9f751f38 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/UpdateVpcFlowLogsConfigRequestOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkmanagement/v1/vpc_flow_logs.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkmanagement.v1; + +public interface UpdateVpcFlowLogsConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Mask of fields to update. At least one path must be supplied in
+   * this field.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. Mask of fields to update. At least one path must be supplied in
+   * this field.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. Mask of fields to update. At least one path must be supplied in
+   * this field.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * Required. Only fields specified in update_mask are updated.
+   * 
+ * + * + * .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the vpcFlowLogsConfig field is set. + */ + boolean hasVpcFlowLogsConfig(); + /** + * + * + *
+   * Required. Only fields specified in update_mask are updated.
+   * 
+ * + * + * .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The vpcFlowLogsConfig. + */ + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig getVpcFlowLogsConfig(); + /** + * + * + *
+   * Required. Only fields specified in update_mask are updated.
+   * 
+ * + * + * .google.cloud.networkmanagement.v1.VpcFlowLogsConfig vpc_flow_logs_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigOrBuilder getVpcFlowLogsConfigOrBuilder(); +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsConfig.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsConfig.java new file mode 100644 index 000000000000..385521fbc373 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsConfig.java @@ -0,0 +1,4649 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkmanagement/v1/vpc_flow_logs_config.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkmanagement.v1; + +/** + * + * + *
+ * A configuration to generate VPC Flow Logs.
+ * 
+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.VpcFlowLogsConfig} + */ +public final class VpcFlowLogsConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1.VpcFlowLogsConfig) + VpcFlowLogsConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use VpcFlowLogsConfig.newBuilder() to construct. + private VpcFlowLogsConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VpcFlowLogsConfig() { + name_ = ""; + description_ = ""; + state_ = 0; + aggregationInterval_ = 0; + metadata_ = 0; + metadataFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + filterExpr_ = ""; + targetResourceState_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VpcFlowLogsConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigProto + .internal_static_google_cloud_networkmanagement_v1_VpcFlowLogsConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 11: + 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.networkmanagement.v1.VpcFlowLogsConfigProto + .internal_static_google_cloud_networkmanagement_v1_VpcFlowLogsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.class, + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Builder.class); + } + + /** + * + * + *
+   * Determines whether this configuration will be generating logs.
+   * Setting state=DISABLED will pause the log generation for this config.
+   * 
+ * + * Protobuf enum {@code google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * If not specified, will default to ENABLED.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * When ENABLED, this configuration will generate logs.
+     * 
+ * + * ENABLED = 1; + */ + ENABLED(1), + /** + * + * + *
+     * When DISABLED, this configuration will not generate logs.
+     * 
+ * + * DISABLED = 2; + */ + DISABLED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * If not specified, will default to ENABLED.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * When ENABLED, this configuration will generate logs.
+     * 
+ * + * ENABLED = 1; + */ + public static final int ENABLED_VALUE = 1; + /** + * + * + *
+     * When DISABLED, this configuration will not generate logs.
+     * 
+ * + * DISABLED = 2; + */ + public static final int 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 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 ENABLED; + case 2: + return 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 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.networkmanagement.v1.VpcFlowLogsConfig.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.networkmanagement.v1.VpcFlowLogsConfig.State) + } + + /** + * + * + *
+   * Toggles the aggregation interval for collecting flow logs by 5-tuple.
+   * 
+ * + * Protobuf enum {@code google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval} + */ + public enum AggregationInterval implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * If not specified, will default to INTERVAL_5_SEC.
+     * 
+ * + * AGGREGATION_INTERVAL_UNSPECIFIED = 0; + */ + AGGREGATION_INTERVAL_UNSPECIFIED(0), + /** + * + * + *
+     * Aggregate logs in 5s intervals.
+     * 
+ * + * INTERVAL_5_SEC = 1; + */ + INTERVAL_5_SEC(1), + /** + * + * + *
+     * Aggregate logs in 30s intervals.
+     * 
+ * + * INTERVAL_30_SEC = 2; + */ + INTERVAL_30_SEC(2), + /** + * + * + *
+     * Aggregate logs in 1m intervals.
+     * 
+ * + * INTERVAL_1_MIN = 3; + */ + INTERVAL_1_MIN(3), + /** + * + * + *
+     * Aggregate logs in 5m intervals.
+     * 
+ * + * INTERVAL_5_MIN = 4; + */ + INTERVAL_5_MIN(4), + /** + * + * + *
+     * Aggregate logs in 10m intervals.
+     * 
+ * + * INTERVAL_10_MIN = 5; + */ + INTERVAL_10_MIN(5), + /** + * + * + *
+     * Aggregate logs in 15m intervals.
+     * 
+ * + * INTERVAL_15_MIN = 6; + */ + INTERVAL_15_MIN(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * If not specified, will default to INTERVAL_5_SEC.
+     * 
+ * + * AGGREGATION_INTERVAL_UNSPECIFIED = 0; + */ + public static final int AGGREGATION_INTERVAL_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Aggregate logs in 5s intervals.
+     * 
+ * + * INTERVAL_5_SEC = 1; + */ + public static final int INTERVAL_5_SEC_VALUE = 1; + /** + * + * + *
+     * Aggregate logs in 30s intervals.
+     * 
+ * + * INTERVAL_30_SEC = 2; + */ + public static final int INTERVAL_30_SEC_VALUE = 2; + /** + * + * + *
+     * Aggregate logs in 1m intervals.
+     * 
+ * + * INTERVAL_1_MIN = 3; + */ + public static final int INTERVAL_1_MIN_VALUE = 3; + /** + * + * + *
+     * Aggregate logs in 5m intervals.
+     * 
+ * + * INTERVAL_5_MIN = 4; + */ + public static final int INTERVAL_5_MIN_VALUE = 4; + /** + * + * + *
+     * Aggregate logs in 10m intervals.
+     * 
+ * + * INTERVAL_10_MIN = 5; + */ + public static final int INTERVAL_10_MIN_VALUE = 5; + /** + * + * + *
+     * Aggregate logs in 15m intervals.
+     * 
+ * + * INTERVAL_15_MIN = 6; + */ + public static final int INTERVAL_15_MIN_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 AggregationInterval 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 AggregationInterval forNumber(int value) { + switch (value) { + case 0: + return AGGREGATION_INTERVAL_UNSPECIFIED; + case 1: + return INTERVAL_5_SEC; + case 2: + return INTERVAL_30_SEC; + case 3: + return INTERVAL_1_MIN; + case 4: + return INTERVAL_5_MIN; + case 5: + return INTERVAL_10_MIN; + case 6: + return INTERVAL_15_MIN; + 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 AggregationInterval findValueByNumber(int number) { + return AggregationInterval.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final AggregationInterval[] VALUES = values(); + + public static AggregationInterval 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 AggregationInterval(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval) + } + + /** + * + * + *
+   * Configures which log fields would be included.
+   * 
+ * + * Protobuf enum {@code google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata} + */ + public enum Metadata implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * If not specified, will default to INCLUDE_ALL_METADATA.
+     * 
+ * + * METADATA_UNSPECIFIED = 0; + */ + METADATA_UNSPECIFIED(0), + /** + * + * + *
+     * Include all metadata fields.
+     * 
+ * + * INCLUDE_ALL_METADATA = 1; + */ + INCLUDE_ALL_METADATA(1), + /** + * + * + *
+     * Exclude all metadata fields.
+     * 
+ * + * EXCLUDE_ALL_METADATA = 2; + */ + EXCLUDE_ALL_METADATA(2), + /** + * + * + *
+     * Include only custom fields (specified in metadata_fields).
+     * 
+ * + * CUSTOM_METADATA = 3; + */ + CUSTOM_METADATA(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * If not specified, will default to INCLUDE_ALL_METADATA.
+     * 
+ * + * METADATA_UNSPECIFIED = 0; + */ + public static final int METADATA_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Include all metadata fields.
+     * 
+ * + * INCLUDE_ALL_METADATA = 1; + */ + public static final int INCLUDE_ALL_METADATA_VALUE = 1; + /** + * + * + *
+     * Exclude all metadata fields.
+     * 
+ * + * EXCLUDE_ALL_METADATA = 2; + */ + public static final int EXCLUDE_ALL_METADATA_VALUE = 2; + /** + * + * + *
+     * Include only custom fields (specified in metadata_fields).
+     * 
+ * + * CUSTOM_METADATA = 3; + */ + public static final int CUSTOM_METADATA_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 Metadata 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 Metadata forNumber(int value) { + switch (value) { + case 0: + return METADATA_UNSPECIFIED; + case 1: + return INCLUDE_ALL_METADATA; + case 2: + return EXCLUDE_ALL_METADATA; + case 3: + return CUSTOM_METADATA; + 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 Metadata findValueByNumber(int number) { + return Metadata.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.getDescriptor() + .getEnumTypes() + .get(2); + } + + private static final Metadata[] VALUES = values(); + + public static Metadata 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 Metadata(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata) + } + + /** + * + * + *
+   * Optional states of the target resource that are used as part of the
+   * diagnostic bit.
+   * 
+ * + * Protobuf enum {@code google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceState} + */ + public enum TargetResourceState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified target resource state.
+     * 
+ * + * TARGET_RESOURCE_STATE_UNSPECIFIED = 0; + */ + TARGET_RESOURCE_STATE_UNSPECIFIED(0), + /** + * + * + *
+     * Indicates that the target resource exists.
+     * 
+ * + * TARGET_RESOURCE_EXISTS = 1; + */ + TARGET_RESOURCE_EXISTS(1), + /** + * + * + *
+     * Indicates that the target resource does not exist.
+     * 
+ * + * TARGET_RESOURCE_DOES_NOT_EXIST = 2; + */ + TARGET_RESOURCE_DOES_NOT_EXIST(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified target resource state.
+     * 
+ * + * TARGET_RESOURCE_STATE_UNSPECIFIED = 0; + */ + public static final int TARGET_RESOURCE_STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Indicates that the target resource exists.
+     * 
+ * + * TARGET_RESOURCE_EXISTS = 1; + */ + public static final int TARGET_RESOURCE_EXISTS_VALUE = 1; + /** + * + * + *
+     * Indicates that the target resource does not exist.
+     * 
+ * + * TARGET_RESOURCE_DOES_NOT_EXIST = 2; + */ + public static final int TARGET_RESOURCE_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 TargetResourceState 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 TargetResourceState forNumber(int value) { + switch (value) { + case 0: + return TARGET_RESOURCE_STATE_UNSPECIFIED; + case 1: + return TARGET_RESOURCE_EXISTS; + case 2: + return TARGET_RESOURCE_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 TargetResourceState findValueByNumber(int number) { + return TargetResourceState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.getDescriptor() + .getEnumTypes() + .get(3); + } + + private static final TargetResourceState[] VALUES = values(); + + public static TargetResourceState 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 TargetResourceState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceState) + } + + private int bitField0_; + private int targetResourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object targetResource_; + + public enum TargetResourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + INTERCONNECT_ATTACHMENT(102), + VPN_TUNNEL(103), + TARGETRESOURCE_NOT_SET(0); + private final int value; + + private TargetResourceCase(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 TargetResourceCase valueOf(int value) { + return forNumber(value); + } + + public static TargetResourceCase forNumber(int value) { + switch (value) { + case 102: + return INTERCONNECT_ATTACHMENT; + case 103: + return VPN_TUNNEL; + case 0: + return TARGETRESOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TargetResourceCase getTargetResourceCase() { + return TargetResourceCase.forNumber(targetResourceCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Identifier. Unique name of the configuration using the form:
+   *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + /** + * + * + *
+   * Identifier. Unique name of the configuration using the form:
+   *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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 DESCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + * + * + *
+   * Optional. The user-supplied description of the VPC Flow Logs configuration.
+   * Maximum of 512 characters.
+   * 
+ * + * optional string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the description field is set. + */ + @java.lang.Override + public boolean hasDescription() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. The user-supplied description of the VPC Flow Logs configuration.
+   * Maximum of 512 characters.
+   * 
+ * + * optional string description = 2 [(.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 user-supplied description of the VPC Flow Logs configuration.
+   * Maximum of 512 characters.
+   * 
+ * + * optional string description = 2 [(.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 STATE_FIELD_NUMBER = 3; + private int state_ = 0; + /** + * + * + *
+   * Optional. The state of the VPC Flow Log configuration. Default value is
+   * ENABLED. When creating a new configuration, it must be enabled.
+   * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the state field is set. + */ + @java.lang.Override + public boolean hasState() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Optional. The state of the VPC Flow Log configuration. Default value is
+   * ENABLED. When creating a new configuration, it must be enabled.
+   * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Optional. The state of the VPC Flow Log configuration. Default value is
+   * ENABLED. When creating a new configuration, it must be enabled.
+   * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State getState() { + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State result = + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State.forNumber(state_); + return result == null + ? com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State.UNRECOGNIZED + : result; + } + + public static final int AGGREGATION_INTERVAL_FIELD_NUMBER = 4; + private int aggregationInterval_ = 0; + /** + * + * + *
+   * Optional. The aggregation interval for the logs. Default value is
+   * INTERVAL_5_SEC.
+   * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the aggregationInterval field is set. + */ + @java.lang.Override + public boolean hasAggregationInterval() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+   * Optional. The aggregation interval for the logs. Default value is
+   * INTERVAL_5_SEC.
+   * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for aggregationInterval. + */ + @java.lang.Override + public int getAggregationIntervalValue() { + return aggregationInterval_; + } + /** + * + * + *
+   * Optional. The aggregation interval for the logs. Default value is
+   * INTERVAL_5_SEC.
+   * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The aggregationInterval. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval + getAggregationInterval() { + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval result = + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval.forNumber( + aggregationInterval_); + return result == null + ? com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval.UNRECOGNIZED + : result; + } + + public static final int FLOW_SAMPLING_FIELD_NUMBER = 5; + private float flowSampling_ = 0F; + /** + * + * + *
+   * Optional. The value of the field must be in (0, 1]. The sampling rate of
+   * VPC Flow Logs where 1.0 means all collected logs are reported. Setting the
+   * sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs,
+   * use the state field instead. Default value is 1.0.
+   * 
+ * + * optional float flow_sampling = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the flowSampling field is set. + */ + @java.lang.Override + public boolean hasFlowSampling() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+   * Optional. The value of the field must be in (0, 1]. The sampling rate of
+   * VPC Flow Logs where 1.0 means all collected logs are reported. Setting the
+   * sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs,
+   * use the state field instead. Default value is 1.0.
+   * 
+ * + * optional float flow_sampling = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The flowSampling. + */ + @java.lang.Override + public float getFlowSampling() { + return flowSampling_; + } + + public static final int METADATA_FIELD_NUMBER = 6; + private int metadata_ = 0; + /** + * + * + *
+   * Optional. Configures whether all, none or a subset of metadata fields
+   * should be added to the reported VPC flow logs. Default value is
+   * INCLUDE_ALL_METADATA.
+   * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+   * Optional. Configures whether all, none or a subset of metadata fields
+   * should be added to the reported VPC flow logs. Default value is
+   * INCLUDE_ALL_METADATA.
+   * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for metadata. + */ + @java.lang.Override + public int getMetadataValue() { + return metadata_; + } + /** + * + * + *
+   * Optional. Configures whether all, none or a subset of metadata fields
+   * should be added to the reported VPC flow logs. Default value is
+   * INCLUDE_ALL_METADATA.
+   * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The metadata. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata getMetadata() { + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata result = + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata.forNumber(metadata_); + return result == null + ? com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata.UNRECOGNIZED + : result; + } + + public static final int METADATA_FIELDS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList metadataFields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Optional. Custom metadata fields to include in the reported VPC flow logs.
+   * Can only be specified if "metadata" was set to CUSTOM_METADATA.
+   * 
+ * + * repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the metadataFields. + */ + public com.google.protobuf.ProtocolStringList getMetadataFieldsList() { + return metadataFields_; + } + /** + * + * + *
+   * Optional. Custom metadata fields to include in the reported VPC flow logs.
+   * Can only be specified if "metadata" was set to CUSTOM_METADATA.
+   * 
+ * + * repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of metadataFields. + */ + public int getMetadataFieldsCount() { + return metadataFields_.size(); + } + /** + * + * + *
+   * Optional. Custom metadata fields to include in the reported VPC flow logs.
+   * Can only be specified if "metadata" was set to CUSTOM_METADATA.
+   * 
+ * + * repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The metadataFields at the given index. + */ + public java.lang.String getMetadataFields(int index) { + return metadataFields_.get(index); + } + /** + * + * + *
+   * Optional. Custom metadata fields to include in the reported VPC flow logs.
+   * Can only be specified if "metadata" was set to CUSTOM_METADATA.
+   * 
+ * + * repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the metadataFields at the given index. + */ + public com.google.protobuf.ByteString getMetadataFieldsBytes(int index) { + return metadataFields_.getByteString(index); + } + + public static final int FILTER_EXPR_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object filterExpr_ = ""; + /** + * + * + *
+   * Optional. Export filter used to define which VPC Flow Logs should be
+   * logged.
+   * 
+ * + * optional string filter_expr = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the filterExpr field is set. + */ + @java.lang.Override + public boolean hasFilterExpr() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+   * Optional. Export filter used to define which VPC Flow Logs should be
+   * logged.
+   * 
+ * + * optional string filter_expr = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filterExpr. + */ + @java.lang.Override + public java.lang.String getFilterExpr() { + java.lang.Object ref = filterExpr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filterExpr_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Export filter used to define which VPC Flow Logs should be
+   * logged.
+   * 
+ * + * optional string filter_expr = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filterExpr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterExprBytes() { + java.lang.Object ref = filterExpr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filterExpr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_RESOURCE_STATE_FIELD_NUMBER = 12; + private int targetResourceState_ = 0; + /** + * + * + *
+   * Output only. A diagnostic bit - describes the state of the configured
+   * target resource for diagnostic purposes.
+   * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceState target_resource_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the targetResourceState field is set. + */ + @java.lang.Override + public boolean hasTargetResourceState() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
+   * Output only. A diagnostic bit - describes the state of the configured
+   * target resource for diagnostic purposes.
+   * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceState target_resource_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for targetResourceState. + */ + @java.lang.Override + public int getTargetResourceStateValue() { + return targetResourceState_; + } + /** + * + * + *
+   * Output only. A diagnostic bit - describes the state of the configured
+   * target resource for diagnostic purposes.
+   * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceState target_resource_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The targetResourceState. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceState + getTargetResourceState() { + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceState result = + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceState.forNumber( + targetResourceState_); + return result == null + ? com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceState.UNRECOGNIZED + : result; + } + + public static final int INTERCONNECT_ATTACHMENT_FIELD_NUMBER = 102; + /** + * + * + *
+   * Traffic will be logged from the Interconnect Attachment.
+   * Format:
+   * projects/{project_id}/regions/{region}/interconnectAttachments/{name}
+   * 
+ * + * string interconnect_attachment = 102; + * + * @return Whether the interconnectAttachment field is set. + */ + public boolean hasInterconnectAttachment() { + return targetResourceCase_ == 102; + } + /** + * + * + *
+   * Traffic will be logged from the Interconnect Attachment.
+   * Format:
+   * projects/{project_id}/regions/{region}/interconnectAttachments/{name}
+   * 
+ * + * string interconnect_attachment = 102; + * + * @return The interconnectAttachment. + */ + public java.lang.String getInterconnectAttachment() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 102) { + ref = targetResource_; + } + if (ref instanceof java.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 (targetResourceCase_ == 102) { + targetResource_ = s; + } + return s; + } + } + /** + * + * + *
+   * Traffic will be logged from the Interconnect Attachment.
+   * Format:
+   * projects/{project_id}/regions/{region}/interconnectAttachments/{name}
+   * 
+ * + * string interconnect_attachment = 102; + * + * @return The bytes for interconnectAttachment. + */ + public com.google.protobuf.ByteString getInterconnectAttachmentBytes() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 102) { + ref = targetResource_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetResourceCase_ == 102) { + targetResource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VPN_TUNNEL_FIELD_NUMBER = 103; + /** + * + * + *
+   * Traffic will be logged from the VPN Tunnel.
+   * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
+   * 
+ * + * string vpn_tunnel = 103; + * + * @return Whether the vpnTunnel field is set. + */ + public boolean hasVpnTunnel() { + return targetResourceCase_ == 103; + } + /** + * + * + *
+   * Traffic will be logged from the VPN Tunnel.
+   * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
+   * 
+ * + * string vpn_tunnel = 103; + * + * @return The vpnTunnel. + */ + public java.lang.String getVpnTunnel() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 103) { + ref = targetResource_; + } + if (ref instanceof java.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 (targetResourceCase_ == 103) { + targetResource_ = s; + } + return s; + } + } + /** + * + * + *
+   * Traffic will be logged from the VPN Tunnel.
+   * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
+   * 
+ * + * string vpn_tunnel = 103; + * + * @return The bytes for vpnTunnel. + */ + public com.google.protobuf.ByteString getVpnTunnelBytes() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 103) { + ref = targetResource_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetResourceCase_ == 103) { + targetResource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABELS_FIELD_NUMBER = 11; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigProto + .internal_static_google_cloud_networkmanagement_v1_VpcFlowLogsConfig_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. Resource labels to represent user-provided metadata.
+   * 
+ * + * map<string, string> labels = 11 [(.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. Resource labels to represent user-provided metadata.
+   * 
+ * + * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * Optional. Resource labels to represent user-provided metadata.
+   * 
+ * + * map<string, string> labels = 11 [(.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. Resource labels to represent user-provided metadata.
+   * 
+ * + * map<string, string> labels = 11 [(.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 static final int CREATE_TIME_FIELD_NUMBER = 9; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. The time the config was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
+   * Output only. The time the config was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 9 [(.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. The time the config was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 9 [(.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 = 10; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. The time the config was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * + * + *
+   * Output only. The time the config was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10 [(.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. The time the config was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(3, state_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeEnum(4, aggregationInterval_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeFloat(5, flowSampling_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeEnum(6, metadata_); + } + for (int i = 0; i < metadataFields_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, metadataFields_.getRaw(i)); + } + if (((bitField0_ & 0x00000020) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, filterExpr_); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(9, getCreateTime()); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(10, getUpdateTime()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 11); + if (((bitField0_ & 0x00000040) != 0)) { + output.writeEnum(12, targetResourceState_); + } + if (targetResourceCase_ == 102) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 102, targetResource_); + } + if (targetResourceCase_ == 103) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 103, targetResource_); + } + 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.GeneratedMessageV3.computeStringSize(2, description_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, aggregationInterval_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, flowSampling_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, metadata_); + } + { + int dataSize = 0; + for (int i = 0; i < metadataFields_.size(); i++) { + dataSize += computeStringSizeNoTag(metadataFields_.getRaw(i)); + } + size += dataSize; + size += 1 * getMetadataFieldsList().size(); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, filterExpr_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCreateTime()); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getUpdateTime()); + } + 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(11, labels__); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, targetResourceState_); + } + if (targetResourceCase_ == 102) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(102, targetResource_); + } + if (targetResourceCase_ == 103) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(103, targetResource_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig)) { + return super.equals(obj); + } + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig other = + (com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig) obj; + + if (!getName().equals(other.getName())) return false; + if (hasDescription() != other.hasDescription()) return false; + if (hasDescription()) { + if (!getDescription().equals(other.getDescription())) return false; + } + if (hasState() != other.hasState()) return false; + if (hasState()) { + if (state_ != other.state_) return false; + } + if (hasAggregationInterval() != other.hasAggregationInterval()) return false; + if (hasAggregationInterval()) { + if (aggregationInterval_ != other.aggregationInterval_) return false; + } + if (hasFlowSampling() != other.hasFlowSampling()) return false; + if (hasFlowSampling()) { + if (java.lang.Float.floatToIntBits(getFlowSampling()) + != java.lang.Float.floatToIntBits(other.getFlowSampling())) return false; + } + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (metadata_ != other.metadata_) return false; + } + if (!getMetadataFieldsList().equals(other.getMetadataFieldsList())) return false; + if (hasFilterExpr() != other.hasFilterExpr()) return false; + if (hasFilterExpr()) { + if (!getFilterExpr().equals(other.getFilterExpr())) return false; + } + if (hasTargetResourceState() != other.hasTargetResourceState()) return false; + if (hasTargetResourceState()) { + if (targetResourceState_ != other.targetResourceState_) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) 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 (!getTargetResourceCase().equals(other.getTargetResourceCase())) return false; + switch (targetResourceCase_) { + case 102: + if (!getInterconnectAttachment().equals(other.getInterconnectAttachment())) return false; + break; + case 103: + if (!getVpnTunnel().equals(other.getVpnTunnel())) 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(); + if (hasDescription()) { + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + } + if (hasState()) { + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + } + if (hasAggregationInterval()) { + hash = (37 * hash) + AGGREGATION_INTERVAL_FIELD_NUMBER; + hash = (53 * hash) + aggregationInterval_; + } + if (hasFlowSampling()) { + hash = (37 * hash) + FLOW_SAMPLING_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getFlowSampling()); + } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + metadata_; + } + if (getMetadataFieldsCount() > 0) { + hash = (37 * hash) + METADATA_FIELDS_FIELD_NUMBER; + hash = (53 * hash) + getMetadataFieldsList().hashCode(); + } + if (hasFilterExpr()) { + hash = (37 * hash) + FILTER_EXPR_FIELD_NUMBER; + hash = (53 * hash) + getFilterExpr().hashCode(); + } + if (hasTargetResourceState()) { + hash = (37 * hash) + TARGET_RESOURCE_STATE_FIELD_NUMBER; + hash = (53 * hash) + targetResourceState_; + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().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(); + } + switch (targetResourceCase_) { + case 102: + hash = (37 * hash) + INTERCONNECT_ATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getInterconnectAttachment().hashCode(); + break; + case 103: + hash = (37 * hash) + VPN_TUNNEL_FIELD_NUMBER; + hash = (53 * hash) + getVpnTunnel().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 configuration to generate VPC Flow Logs.
+   * 
+ * + * Protobuf type {@code google.cloud.networkmanagement.v1.VpcFlowLogsConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1.VpcFlowLogsConfig) + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigProto + .internal_static_google_cloud_networkmanagement_v1_VpcFlowLogsConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 11: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 11: + 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.networkmanagement.v1.VpcFlowLogsConfigProto + .internal_static_google_cloud_networkmanagement_v1_VpcFlowLogsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.class, + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Builder.class); + } + + // Construct using com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + description_ = ""; + state_ = 0; + aggregationInterval_ = 0; + flowSampling_ = 0F; + metadata_ = 0; + metadataFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + filterExpr_ = ""; + targetResourceState_ = 0; + internalGetMutableLabels().clear(); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + targetResourceCase_ = 0; + targetResource_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigProto + .internal_static_google_cloud_networkmanagement_v1_VpcFlowLogsConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig getDefaultInstanceForType() { + return com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig build() { + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig buildPartial() { + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig result = + new com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.state_ = state_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.aggregationInterval_ = aggregationInterval_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.flowSampling_ = flowSampling_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.metadata_ = metadata_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + metadataFields_.makeImmutable(); + result.metadataFields_ = metadataFields_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.filterExpr_ = filterExpr_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.targetResourceState_ = targetResourceState_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig result) { + result.targetResourceCase_ = targetResourceCase_; + result.targetResource_ = this.targetResource_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig) { + return mergeFrom((com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig other) { + if (other == com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDescription()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasState()) { + setState(other.getState()); + } + if (other.hasAggregationInterval()) { + setAggregationInterval(other.getAggregationInterval()); + } + if (other.hasFlowSampling()) { + setFlowSampling(other.getFlowSampling()); + } + if (other.hasMetadata()) { + setMetadata(other.getMetadata()); + } + if (!other.metadataFields_.isEmpty()) { + if (metadataFields_.isEmpty()) { + metadataFields_ = other.metadataFields_; + bitField0_ |= 0x00000040; + } else { + ensureMetadataFieldsIsMutable(); + metadataFields_.addAll(other.metadataFields_); + } + onChanged(); + } + if (other.hasFilterExpr()) { + filterExpr_ = other.filterExpr_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (other.hasTargetResourceState()) { + setTargetResourceState(other.getTargetResourceState()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000800; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + switch (other.getTargetResourceCase()) { + case INTERCONNECT_ATTACHMENT: + { + targetResourceCase_ = 102; + targetResource_ = other.targetResource_; + onChanged(); + break; + } + case VPN_TUNNEL: + { + targetResourceCase_ = 103; + targetResource_ = other.targetResource_; + onChanged(); + break; + } + case TARGETRESOURCE_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: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + aggregationInterval_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 45: + { + flowSampling_ = input.readFloat(); + bitField0_ |= 0x00000010; + break; + } // case 45 + case 48: + { + metadata_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureMetadataFieldsIsMutable(); + metadataFields_.add(s); + break; + } // case 58 + case 66: + { + filterExpr_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 74 + case 82: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 82 + case 90: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000800; + break; + } // case 90 + case 96: + { + targetResourceState_ = input.readEnum(); + bitField0_ |= 0x00000100; + break; + } // case 96 + case 818: + { + java.lang.String s = input.readStringRequireUtf8(); + targetResourceCase_ = 102; + targetResource_ = s; + break; + } // case 818 + case 826: + { + java.lang.String s = input.readStringRequireUtf8(); + targetResourceCase_ = 103; + targetResource_ = s; + 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 targetResourceCase_ = 0; + private java.lang.Object targetResource_; + + public TargetResourceCase getTargetResourceCase() { + return TargetResourceCase.forNumber(targetResourceCase_); + } + + public Builder clearTargetResource() { + targetResourceCase_ = 0; + targetResource_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Identifier. Unique name of the configuration using the form:
+     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + /** + * + * + *
+     * Identifier. Unique name of the configuration using the form:
+     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + /** + * + * + *
+     * Identifier. Unique name of the configuration using the form:
+     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + /** + * + * + *
+     * Identifier. Unique name of the configuration using the form:
+     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Identifier. Unique name of the configuration using the form:
+     *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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 description_ = ""; + /** + * + * + *
+     * Optional. The user-supplied description of the VPC Flow Logs configuration.
+     * Maximum of 512 characters.
+     * 
+ * + * optional string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the description field is set. + */ + public boolean hasDescription() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Optional. The user-supplied description of the VPC Flow Logs configuration.
+     * Maximum of 512 characters.
+     * 
+ * + * optional string description = 2 [(.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 user-supplied description of the VPC Flow Logs configuration.
+     * Maximum of 512 characters.
+     * 
+ * + * optional string description = 2 [(.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 user-supplied description of the VPC Flow Logs configuration.
+     * Maximum of 512 characters.
+     * 
+ * + * optional string description = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The user-supplied description of the VPC Flow Logs configuration.
+     * Maximum of 512 characters.
+     * 
+ * + * optional string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The user-supplied description of the VPC Flow Logs configuration.
+     * Maximum of 512 characters.
+     * 
+ * + * optional string description = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
+     * Optional. The state of the VPC Flow Log configuration. Default value is
+     * ENABLED. When creating a new configuration, it must be enabled.
+     * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the state field is set. + */ + @java.lang.Override + public boolean hasState() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Optional. The state of the VPC Flow Log configuration. Default value is
+     * ENABLED. When creating a new configuration, it must be enabled.
+     * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Optional. The state of the VPC Flow Log configuration. Default value is
+     * ENABLED. When creating a new configuration, it must be enabled.
+     * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The state of the VPC Flow Log configuration. Default value is
+     * ENABLED. When creating a new configuration, it must be enabled.
+     * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State getState() { + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State result = + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State.forNumber(state_); + return result == null + ? com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. The state of the VPC Flow Log configuration. Default value is
+     * ENABLED. When creating a new configuration, it must be enabled.
+     * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The state of the VPC Flow Log configuration. Default value is
+     * ENABLED. When creating a new configuration, it must be enabled.
+     * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000004); + state_ = 0; + onChanged(); + return this; + } + + private int aggregationInterval_ = 0; + /** + * + * + *
+     * Optional. The aggregation interval for the logs. Default value is
+     * INTERVAL_5_SEC.
+     * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the aggregationInterval field is set. + */ + @java.lang.Override + public boolean hasAggregationInterval() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Optional. The aggregation interval for the logs. Default value is
+     * INTERVAL_5_SEC.
+     * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for aggregationInterval. + */ + @java.lang.Override + public int getAggregationIntervalValue() { + return aggregationInterval_; + } + /** + * + * + *
+     * Optional. The aggregation interval for the logs. Default value is
+     * INTERVAL_5_SEC.
+     * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for aggregationInterval to set. + * @return This builder for chaining. + */ + public Builder setAggregationIntervalValue(int value) { + aggregationInterval_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The aggregation interval for the logs. Default value is
+     * INTERVAL_5_SEC.
+     * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The aggregationInterval. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval + getAggregationInterval() { + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval result = + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval.forNumber( + aggregationInterval_); + return result == null + ? com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. The aggregation interval for the logs. Default value is
+     * INTERVAL_5_SEC.
+     * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The aggregationInterval to set. + * @return This builder for chaining. + */ + public Builder setAggregationInterval( + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + aggregationInterval_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The aggregation interval for the logs. Default value is
+     * INTERVAL_5_SEC.
+     * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAggregationInterval() { + bitField0_ = (bitField0_ & ~0x00000008); + aggregationInterval_ = 0; + onChanged(); + return this; + } + + private float flowSampling_; + /** + * + * + *
+     * Optional. The value of the field must be in (0, 1]. The sampling rate of
+     * VPC Flow Logs where 1.0 means all collected logs are reported. Setting the
+     * sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs,
+     * use the state field instead. Default value is 1.0.
+     * 
+ * + * optional float flow_sampling = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the flowSampling field is set. + */ + @java.lang.Override + public boolean hasFlowSampling() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Optional. The value of the field must be in (0, 1]. The sampling rate of
+     * VPC Flow Logs where 1.0 means all collected logs are reported. Setting the
+     * sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs,
+     * use the state field instead. Default value is 1.0.
+     * 
+ * + * optional float flow_sampling = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The flowSampling. + */ + @java.lang.Override + public float getFlowSampling() { + return flowSampling_; + } + /** + * + * + *
+     * Optional. The value of the field must be in (0, 1]. The sampling rate of
+     * VPC Flow Logs where 1.0 means all collected logs are reported. Setting the
+     * sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs,
+     * use the state field instead. Default value is 1.0.
+     * 
+ * + * optional float flow_sampling = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The flowSampling to set. + * @return This builder for chaining. + */ + public Builder setFlowSampling(float value) { + + flowSampling_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The value of the field must be in (0, 1]. The sampling rate of
+     * VPC Flow Logs where 1.0 means all collected logs are reported. Setting the
+     * sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs,
+     * use the state field instead. Default value is 1.0.
+     * 
+ * + * optional float flow_sampling = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFlowSampling() { + bitField0_ = (bitField0_ & ~0x00000010); + flowSampling_ = 0F; + onChanged(); + return this; + } + + private int metadata_ = 0; + /** + * + * + *
+     * Optional. Configures whether all, none or a subset of metadata fields
+     * should be added to the reported VPC flow logs. Default value is
+     * INCLUDE_ALL_METADATA.
+     * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+     * Optional. Configures whether all, none or a subset of metadata fields
+     * should be added to the reported VPC flow logs. Default value is
+     * INCLUDE_ALL_METADATA.
+     * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for metadata. + */ + @java.lang.Override + public int getMetadataValue() { + return metadata_; + } + /** + * + * + *
+     * Optional. Configures whether all, none or a subset of metadata fields
+     * should be added to the reported VPC flow logs. Default value is
+     * INCLUDE_ALL_METADATA.
+     * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for metadata to set. + * @return This builder for chaining. + */ + public Builder setMetadataValue(int value) { + metadata_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Configures whether all, none or a subset of metadata fields
+     * should be added to the reported VPC flow logs. Default value is
+     * INCLUDE_ALL_METADATA.
+     * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The metadata. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata getMetadata() { + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata result = + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata.forNumber(metadata_); + return result == null + ? com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. Configures whether all, none or a subset of metadata fields
+     * should be added to the reported VPC flow logs. Default value is
+     * INCLUDE_ALL_METADATA.
+     * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The metadata to set. + * @return This builder for chaining. + */ + public Builder setMetadata( + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + metadata_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Configures whether all, none or a subset of metadata fields
+     * should be added to the reported VPC flow logs. Default value is
+     * INCLUDE_ALL_METADATA.
+     * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000020); + metadata_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList metadataFields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureMetadataFieldsIsMutable() { + if (!metadataFields_.isModifiable()) { + metadataFields_ = new com.google.protobuf.LazyStringArrayList(metadataFields_); + } + bitField0_ |= 0x00000040; + } + /** + * + * + *
+     * Optional. Custom metadata fields to include in the reported VPC flow logs.
+     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
+     * 
+ * + * repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the metadataFields. + */ + public com.google.protobuf.ProtocolStringList getMetadataFieldsList() { + metadataFields_.makeImmutable(); + return metadataFields_; + } + /** + * + * + *
+     * Optional. Custom metadata fields to include in the reported VPC flow logs.
+     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
+     * 
+ * + * repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of metadataFields. + */ + public int getMetadataFieldsCount() { + return metadataFields_.size(); + } + /** + * + * + *
+     * Optional. Custom metadata fields to include in the reported VPC flow logs.
+     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
+     * 
+ * + * repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The metadataFields at the given index. + */ + public java.lang.String getMetadataFields(int index) { + return metadataFields_.get(index); + } + /** + * + * + *
+     * Optional. Custom metadata fields to include in the reported VPC flow logs.
+     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
+     * 
+ * + * repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the metadataFields at the given index. + */ + public com.google.protobuf.ByteString getMetadataFieldsBytes(int index) { + return metadataFields_.getByteString(index); + } + /** + * + * + *
+     * Optional. Custom metadata fields to include in the reported VPC flow logs.
+     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
+     * 
+ * + * repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The metadataFields to set. + * @return This builder for chaining. + */ + public Builder setMetadataFields(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetadataFieldsIsMutable(); + metadataFields_.set(index, value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Custom metadata fields to include in the reported VPC flow logs.
+     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
+     * 
+ * + * repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The metadataFields to add. + * @return This builder for chaining. + */ + public Builder addMetadataFields(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetadataFieldsIsMutable(); + metadataFields_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Custom metadata fields to include in the reported VPC flow logs.
+     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
+     * 
+ * + * repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The metadataFields to add. + * @return This builder for chaining. + */ + public Builder addAllMetadataFields(java.lang.Iterable values) { + ensureMetadataFieldsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metadataFields_); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Custom metadata fields to include in the reported VPC flow logs.
+     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
+     * 
+ * + * repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMetadataFields() { + metadataFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Custom metadata fields to include in the reported VPC flow logs.
+     * Can only be specified if "metadata" was set to CUSTOM_METADATA.
+     * 
+ * + * repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the metadataFields to add. + * @return This builder for chaining. + */ + public Builder addMetadataFieldsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureMetadataFieldsIsMutable(); + metadataFields_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object filterExpr_ = ""; + /** + * + * + *
+     * Optional. Export filter used to define which VPC Flow Logs should be
+     * logged.
+     * 
+ * + * optional string filter_expr = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the filterExpr field is set. + */ + public boolean hasFilterExpr() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
+     * Optional. Export filter used to define which VPC Flow Logs should be
+     * logged.
+     * 
+ * + * optional string filter_expr = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filterExpr. + */ + public java.lang.String getFilterExpr() { + java.lang.Object ref = filterExpr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filterExpr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Export filter used to define which VPC Flow Logs should be
+     * logged.
+     * 
+ * + * optional string filter_expr = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filterExpr. + */ + public com.google.protobuf.ByteString getFilterExprBytes() { + java.lang.Object ref = filterExpr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filterExpr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Export filter used to define which VPC Flow Logs should be
+     * logged.
+     * 
+ * + * optional string filter_expr = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filterExpr to set. + * @return This builder for chaining. + */ + public Builder setFilterExpr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filterExpr_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Export filter used to define which VPC Flow Logs should be
+     * logged.
+     * 
+ * + * optional string filter_expr = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilterExpr() { + filterExpr_ = getDefaultInstance().getFilterExpr(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Export filter used to define which VPC Flow Logs should be
+     * logged.
+     * 
+ * + * optional string filter_expr = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filterExpr to set. + * @return This builder for chaining. + */ + public Builder setFilterExprBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filterExpr_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private int targetResourceState_ = 0; + /** + * + * + *
+     * Output only. A diagnostic bit - describes the state of the configured
+     * target resource for diagnostic purposes.
+     * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceState target_resource_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the targetResourceState field is set. + */ + @java.lang.Override + public boolean hasTargetResourceState() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * + * + *
+     * Output only. A diagnostic bit - describes the state of the configured
+     * target resource for diagnostic purposes.
+     * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceState target_resource_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for targetResourceState. + */ + @java.lang.Override + public int getTargetResourceStateValue() { + return targetResourceState_; + } + /** + * + * + *
+     * Output only. A diagnostic bit - describes the state of the configured
+     * target resource for diagnostic purposes.
+     * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceState target_resource_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for targetResourceState to set. + * @return This builder for chaining. + */ + public Builder setTargetResourceStateValue(int value) { + targetResourceState_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. A diagnostic bit - describes the state of the configured
+     * target resource for diagnostic purposes.
+     * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceState target_resource_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The targetResourceState. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceState + getTargetResourceState() { + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceState result = + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceState.forNumber( + targetResourceState_); + return result == null + ? com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceState.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. A diagnostic bit - describes the state of the configured
+     * target resource for diagnostic purposes.
+     * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceState target_resource_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The targetResourceState to set. + * @return This builder for chaining. + */ + public Builder setTargetResourceState( + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; + targetResourceState_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. A diagnostic bit - describes the state of the configured
+     * target resource for diagnostic purposes.
+     * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceState target_resource_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearTargetResourceState() { + bitField0_ = (bitField0_ & ~0x00000100); + targetResourceState_ = 0; + onChanged(); + return this; + } + + /** + * + * + *
+     * Traffic will be logged from the Interconnect Attachment.
+     * Format:
+     * projects/{project_id}/regions/{region}/interconnectAttachments/{name}
+     * 
+ * + * string interconnect_attachment = 102; + * + * @return Whether the interconnectAttachment field is set. + */ + @java.lang.Override + public boolean hasInterconnectAttachment() { + return targetResourceCase_ == 102; + } + /** + * + * + *
+     * Traffic will be logged from the Interconnect Attachment.
+     * Format:
+     * projects/{project_id}/regions/{region}/interconnectAttachments/{name}
+     * 
+ * + * string interconnect_attachment = 102; + * + * @return The interconnectAttachment. + */ + @java.lang.Override + public java.lang.String getInterconnectAttachment() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 102) { + ref = targetResource_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (targetResourceCase_ == 102) { + targetResource_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Traffic will be logged from the Interconnect Attachment.
+     * Format:
+     * projects/{project_id}/regions/{region}/interconnectAttachments/{name}
+     * 
+ * + * string interconnect_attachment = 102; + * + * @return The bytes for interconnectAttachment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInterconnectAttachmentBytes() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 102) { + ref = targetResource_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetResourceCase_ == 102) { + targetResource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Traffic will be logged from the Interconnect Attachment.
+     * Format:
+     * projects/{project_id}/regions/{region}/interconnectAttachments/{name}
+     * 
+ * + * string interconnect_attachment = 102; + * + * @param value The interconnectAttachment to set. + * @return This builder for chaining. + */ + public Builder setInterconnectAttachment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetResourceCase_ = 102; + targetResource_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Traffic will be logged from the Interconnect Attachment.
+     * Format:
+     * projects/{project_id}/regions/{region}/interconnectAttachments/{name}
+     * 
+ * + * string interconnect_attachment = 102; + * + * @return This builder for chaining. + */ + public Builder clearInterconnectAttachment() { + if (targetResourceCase_ == 102) { + targetResourceCase_ = 0; + targetResource_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Traffic will be logged from the Interconnect Attachment.
+     * Format:
+     * projects/{project_id}/regions/{region}/interconnectAttachments/{name}
+     * 
+ * + * string interconnect_attachment = 102; + * + * @param value The bytes for interconnectAttachment to set. + * @return This builder for chaining. + */ + public Builder setInterconnectAttachmentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetResourceCase_ = 102; + targetResource_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Traffic will be logged from the VPN Tunnel.
+     * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
+     * 
+ * + * string vpn_tunnel = 103; + * + * @return Whether the vpnTunnel field is set. + */ + @java.lang.Override + public boolean hasVpnTunnel() { + return targetResourceCase_ == 103; + } + /** + * + * + *
+     * Traffic will be logged from the VPN Tunnel.
+     * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
+     * 
+ * + * string vpn_tunnel = 103; + * + * @return The vpnTunnel. + */ + @java.lang.Override + public java.lang.String getVpnTunnel() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 103) { + ref = targetResource_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (targetResourceCase_ == 103) { + targetResource_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Traffic will be logged from the VPN Tunnel.
+     * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
+     * 
+ * + * string vpn_tunnel = 103; + * + * @return The bytes for vpnTunnel. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVpnTunnelBytes() { + java.lang.Object ref = ""; + if (targetResourceCase_ == 103) { + ref = targetResource_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetResourceCase_ == 103) { + targetResource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Traffic will be logged from the VPN Tunnel.
+     * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
+     * 
+ * + * string vpn_tunnel = 103; + * + * @param value The vpnTunnel to set. + * @return This builder for chaining. + */ + public Builder setVpnTunnel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetResourceCase_ = 103; + targetResource_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Traffic will be logged from the VPN Tunnel.
+     * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
+     * 
+ * + * string vpn_tunnel = 103; + * + * @return This builder for chaining. + */ + public Builder clearVpnTunnel() { + if (targetResourceCase_ == 103) { + targetResourceCase_ = 0; + targetResource_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Traffic will be logged from the VPN Tunnel.
+     * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
+     * 
+ * + * string vpn_tunnel = 103; + * + * @param value The bytes for vpnTunnel to set. + * @return This builder for chaining. + */ + public Builder setVpnTunnelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetResourceCase_ = 103; + targetResource_ = value; + 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_ |= 0x00000800; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+     * Optional. Resource labels to represent user-provided metadata.
+     * 
+ * + * map<string, string> labels = 11 [(.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. Resource labels to represent user-provided metadata.
+     * 
+ * + * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * Optional. Resource labels to represent user-provided metadata.
+     * 
+ * + * map<string, string> labels = 11 [(.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. Resource labels to represent user-provided metadata.
+     * 
+ * + * map<string, string> labels = 11 [(.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_ & ~0x00000800); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Optional. Resource labels to represent user-provided metadata.
+     * 
+ * + * map<string, string> labels = 11 [(.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_ |= 0x00000800; + return internalGetMutableLabels().getMutableMap(); + } + /** + * + * + *
+     * Optional. Resource labels to represent user-provided metadata.
+     * 
+ * + * map<string, string> labels = 11 [(.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_ |= 0x00000800; + return this; + } + /** + * + * + *
+     * Optional. Resource labels to represent user-provided metadata.
+     * 
+ * + * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000800; + 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. The time the config was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * + * + *
+     * Output only. The time the config was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 9 [(.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. The time the config was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 9 [(.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_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time the config was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 9 [(.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_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time the config was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. The time the config was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00001000); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time the config was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The time the config was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 9 [(.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. The time the config was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + 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. The time the config was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + * + * + *
+     * Output only. The time the config was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10 [(.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. The time the config was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10 [(.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_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time the config was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10 [(.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_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time the config was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. The time the config was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00002000); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time the config was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00002000; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The time the config was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10 [(.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. The time the config was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10 [(.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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1.VpcFlowLogsConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1.VpcFlowLogsConfig) + private static final com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig(); + } + + public static com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VpcFlowLogsConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsConfigName.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsConfigName.java new file mode 100644 index 000000000000..925e4a85e89d --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsConfigName.java @@ -0,0 +1,231 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.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 VpcFlowLogsConfigName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_VPC_FLOW_LOGS_CONFIG = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/vpcFlowLogsConfigs/{vpc_flow_logs_config}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String vpcFlowLogsConfig; + + @Deprecated + protected VpcFlowLogsConfigName() { + project = null; + location = null; + vpcFlowLogsConfig = null; + } + + private VpcFlowLogsConfigName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + vpcFlowLogsConfig = Preconditions.checkNotNull(builder.getVpcFlowLogsConfig()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getVpcFlowLogsConfig() { + return vpcFlowLogsConfig; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static VpcFlowLogsConfigName of( + String project, String location, String vpcFlowLogsConfig) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setVpcFlowLogsConfig(vpcFlowLogsConfig) + .build(); + } + + public static String format(String project, String location, String vpcFlowLogsConfig) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setVpcFlowLogsConfig(vpcFlowLogsConfig) + .build() + .toString(); + } + + public static VpcFlowLogsConfigName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_VPC_FLOW_LOGS_CONFIG.validatedMatch( + formattedString, "VpcFlowLogsConfigName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), matchMap.get("location"), matchMap.get("vpc_flow_logs_config")); + } + + 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 (VpcFlowLogsConfigName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_VPC_FLOW_LOGS_CONFIG.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 (vpcFlowLogsConfig != null) { + fieldMapBuilder.put("vpc_flow_logs_config", vpcFlowLogsConfig); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_VPC_FLOW_LOGS_CONFIG.instantiate( + "project", project, "location", location, "vpc_flow_logs_config", vpcFlowLogsConfig); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + VpcFlowLogsConfigName that = ((VpcFlowLogsConfigName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.vpcFlowLogsConfig, that.vpcFlowLogsConfig); + } + 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(vpcFlowLogsConfig); + return h; + } + + /** + * Builder for projects/{project}/locations/{location}/vpcFlowLogsConfigs/{vpc_flow_logs_config}. + */ + public static class Builder { + private String project; + private String location; + private String vpcFlowLogsConfig; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getVpcFlowLogsConfig() { + return vpcFlowLogsConfig; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setVpcFlowLogsConfig(String vpcFlowLogsConfig) { + this.vpcFlowLogsConfig = vpcFlowLogsConfig; + return this; + } + + private Builder(VpcFlowLogsConfigName vpcFlowLogsConfigName) { + this.project = vpcFlowLogsConfigName.project; + this.location = vpcFlowLogsConfigName.location; + this.vpcFlowLogsConfig = vpcFlowLogsConfigName.vpcFlowLogsConfig; + } + + public VpcFlowLogsConfigName build() { + return new VpcFlowLogsConfigName(this); + } + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsConfigOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsConfigOrBuilder.java new file mode 100644 index 000000000000..a914ff2c7d27 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsConfigOrBuilder.java @@ -0,0 +1,628 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkmanagement/v1/vpc_flow_logs_config.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkmanagement.v1; + +public interface VpcFlowLogsConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkmanagement.v1.VpcFlowLogsConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. Unique name of the configuration using the form:
+   *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Identifier. Unique name of the configuration using the form:
+   *     `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The user-supplied description of the VPC Flow Logs configuration.
+   * Maximum of 512 characters.
+   * 
+ * + * optional string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the description field is set. + */ + boolean hasDescription(); + /** + * + * + *
+   * Optional. The user-supplied description of the VPC Flow Logs configuration.
+   * Maximum of 512 characters.
+   * 
+ * + * optional string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Optional. The user-supplied description of the VPC Flow Logs configuration.
+   * Maximum of 512 characters.
+   * 
+ * + * optional string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Optional. The state of the VPC Flow Log configuration. Default value is
+   * ENABLED. When creating a new configuration, it must be enabled.
+   * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the state field is set. + */ + boolean hasState(); + /** + * + * + *
+   * Optional. The state of the VPC Flow Log configuration. Default value is
+   * ENABLED. When creating a new configuration, it must be enabled.
+   * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Optional. The state of the VPC Flow Log configuration. Default value is
+   * ENABLED. When creating a new configuration, it must be enabled.
+   * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State state = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The state. + */ + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.State getState(); + + /** + * + * + *
+   * Optional. The aggregation interval for the logs. Default value is
+   * INTERVAL_5_SEC.
+   * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the aggregationInterval field is set. + */ + boolean hasAggregationInterval(); + /** + * + * + *
+   * Optional. The aggregation interval for the logs. Default value is
+   * INTERVAL_5_SEC.
+   * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for aggregationInterval. + */ + int getAggregationIntervalValue(); + /** + * + * + *
+   * Optional. The aggregation interval for the logs. Default value is
+   * INTERVAL_5_SEC.
+   * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval aggregation_interval = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The aggregationInterval. + */ + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.AggregationInterval + getAggregationInterval(); + + /** + * + * + *
+   * Optional. The value of the field must be in (0, 1]. The sampling rate of
+   * VPC Flow Logs where 1.0 means all collected logs are reported. Setting the
+   * sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs,
+   * use the state field instead. Default value is 1.0.
+   * 
+ * + * optional float flow_sampling = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the flowSampling field is set. + */ + boolean hasFlowSampling(); + /** + * + * + *
+   * Optional. The value of the field must be in (0, 1]. The sampling rate of
+   * VPC Flow Logs where 1.0 means all collected logs are reported. Setting the
+   * sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs,
+   * use the state field instead. Default value is 1.0.
+   * 
+ * + * optional float flow_sampling = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The flowSampling. + */ + float getFlowSampling(); + + /** + * + * + *
+   * Optional. Configures whether all, none or a subset of metadata fields
+   * should be added to the reported VPC flow logs. Default value is
+   * INCLUDE_ALL_METADATA.
+   * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + /** + * + * + *
+   * Optional. Configures whether all, none or a subset of metadata fields
+   * should be added to the reported VPC flow logs. Default value is
+   * INCLUDE_ALL_METADATA.
+   * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for metadata. + */ + int getMetadataValue(); + /** + * + * + *
+   * Optional. Configures whether all, none or a subset of metadata fields
+   * should be added to the reported VPC flow logs. Default value is
+   * INCLUDE_ALL_METADATA.
+   * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The metadata. + */ + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.Metadata getMetadata(); + + /** + * + * + *
+   * Optional. Custom metadata fields to include in the reported VPC flow logs.
+   * Can only be specified if "metadata" was set to CUSTOM_METADATA.
+   * 
+ * + * repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the metadataFields. + */ + java.util.List getMetadataFieldsList(); + /** + * + * + *
+   * Optional. Custom metadata fields to include in the reported VPC flow logs.
+   * Can only be specified if "metadata" was set to CUSTOM_METADATA.
+   * 
+ * + * repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of metadataFields. + */ + int getMetadataFieldsCount(); + /** + * + * + *
+   * Optional. Custom metadata fields to include in the reported VPC flow logs.
+   * Can only be specified if "metadata" was set to CUSTOM_METADATA.
+   * 
+ * + * repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The metadataFields at the given index. + */ + java.lang.String getMetadataFields(int index); + /** + * + * + *
+   * Optional. Custom metadata fields to include in the reported VPC flow logs.
+   * Can only be specified if "metadata" was set to CUSTOM_METADATA.
+   * 
+ * + * repeated string metadata_fields = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the metadataFields at the given index. + */ + com.google.protobuf.ByteString getMetadataFieldsBytes(int index); + + /** + * + * + *
+   * Optional. Export filter used to define which VPC Flow Logs should be
+   * logged.
+   * 
+ * + * optional string filter_expr = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the filterExpr field is set. + */ + boolean hasFilterExpr(); + /** + * + * + *
+   * Optional. Export filter used to define which VPC Flow Logs should be
+   * logged.
+   * 
+ * + * optional string filter_expr = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filterExpr. + */ + java.lang.String getFilterExpr(); + /** + * + * + *
+   * Optional. Export filter used to define which VPC Flow Logs should be
+   * logged.
+   * 
+ * + * optional string filter_expr = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filterExpr. + */ + com.google.protobuf.ByteString getFilterExprBytes(); + + /** + * + * + *
+   * Output only. A diagnostic bit - describes the state of the configured
+   * target resource for diagnostic purposes.
+   * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceState target_resource_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the targetResourceState field is set. + */ + boolean hasTargetResourceState(); + /** + * + * + *
+   * Output only. A diagnostic bit - describes the state of the configured
+   * target resource for diagnostic purposes.
+   * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceState target_resource_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for targetResourceState. + */ + int getTargetResourceStateValue(); + /** + * + * + *
+   * Output only. A diagnostic bit - describes the state of the configured
+   * target resource for diagnostic purposes.
+   * 
+ * + * + * optional .google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceState target_resource_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The targetResourceState. + */ + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceState + getTargetResourceState(); + + /** + * + * + *
+   * Traffic will be logged from the Interconnect Attachment.
+   * Format:
+   * projects/{project_id}/regions/{region}/interconnectAttachments/{name}
+   * 
+ * + * string interconnect_attachment = 102; + * + * @return Whether the interconnectAttachment field is set. + */ + boolean hasInterconnectAttachment(); + /** + * + * + *
+   * Traffic will be logged from the Interconnect Attachment.
+   * Format:
+   * projects/{project_id}/regions/{region}/interconnectAttachments/{name}
+   * 
+ * + * string interconnect_attachment = 102; + * + * @return The interconnectAttachment. + */ + java.lang.String getInterconnectAttachment(); + /** + * + * + *
+   * Traffic will be logged from the Interconnect Attachment.
+   * Format:
+   * projects/{project_id}/regions/{region}/interconnectAttachments/{name}
+   * 
+ * + * string interconnect_attachment = 102; + * + * @return The bytes for interconnectAttachment. + */ + com.google.protobuf.ByteString getInterconnectAttachmentBytes(); + + /** + * + * + *
+   * Traffic will be logged from the VPN Tunnel.
+   * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
+   * 
+ * + * string vpn_tunnel = 103; + * + * @return Whether the vpnTunnel field is set. + */ + boolean hasVpnTunnel(); + /** + * + * + *
+   * Traffic will be logged from the VPN Tunnel.
+   * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
+   * 
+ * + * string vpn_tunnel = 103; + * + * @return The vpnTunnel. + */ + java.lang.String getVpnTunnel(); + /** + * + * + *
+   * Traffic will be logged from the VPN Tunnel.
+   * Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
+   * 
+ * + * string vpn_tunnel = 103; + * + * @return The bytes for vpnTunnel. + */ + com.google.protobuf.ByteString getVpnTunnelBytes(); + + /** + * + * + *
+   * Optional. Resource labels to represent user-provided metadata.
+   * 
+ * + * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + /** + * + * + *
+   * Optional. Resource labels to represent user-provided metadata.
+   * 
+ * + * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
+   * Optional. Resource labels to represent user-provided metadata.
+   * 
+ * + * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * Optional. Resource labels to represent user-provided metadata.
+   * 
+ * + * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+   * Optional. Resource labels to represent user-provided metadata.
+   * 
+ * + * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. The time the config was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. The time the config was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. The time the config was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The time the config was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. The time the config was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. The time the config was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig.TargetResourceCase + getTargetResourceCase(); +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsConfigProto.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsConfigProto.java new file mode 100644 index 000000000000..e34773084027 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsConfigProto.java @@ -0,0 +1,155 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/networkmanagement/v1/vpc_flow_logs_config.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.networkmanagement.v1; + +public final class VpcFlowLogsConfigProto { + private VpcFlowLogsConfigProto() {} + + 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_networkmanagement_v1_VpcFlowLogsConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkmanagement_v1_VpcFlowLogsConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkmanagement_v1_VpcFlowLogsConfig_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkmanagement_v1_VpcFlowLogsConfig_LabelsEntry_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.go" + + "ogle.cloud.networkmanagement.v1.GetVpcFl" + + "owLogsConfigRequest\0324.google.cloud.netwo" + + "rkmanagement.v1.VpcFlowLogsConfig\"E\332A\004na" + + "me\202\323\344\223\0028\0226/v1/{name=projects/*/locations" + + "/*/vpcFlowLogsConfigs/*}\022\323\002\n\027CreateVpcFl" + + "owLogsConfig\022A.google.cloud.networkmanag" + + "ement.v1.CreateVpcFlowLogsConfigRequest\032" + + "\035.google.longrunning.Operation\"\325\001\312AH\n\021Vp" + + "cFlowLogsConfig\0223google.cloud.networkman" + + "agement.v1.OperationMetadata\332A3parent,vp" + + "c_flow_logs_config,vpc_flow_logs_config_" + + "id\202\323\344\223\002N\"6/v1/{parent=projects/*/locatio" + + "ns/*}/vpcFlowLogsConfigs:\024vpc_flow_logs_" + + "config\022\325\002\n\027UpdateVpcFlowLogsConfig\022A.goo" + + "gle.cloud.networkmanagement.v1.UpdateVpc" + + "FlowLogsConfigRequest\032\035.google.longrunni" + + "ng.Operation\"\327\001\312AH\n\021VpcFlowLogsConfig\0223g" + + "oogle.cloud.networkmanagement.v1.Operati" + + "onMetadata\332A vpc_flow_logs_config,update" + + "_mask\202\323\344\223\002c2K/v1/{vpc_flow_logs_config.n" + + "ame=projects/*/locations/*/vpcFlowLogsCo" + + "nfigs/*}:\024vpc_flow_logs_config\022\222\002\n\027Delet" + + "eVpcFlowLogsConfig\022A.google.cloud.networ" + + "kmanagement.v1.DeleteVpcFlowLogsConfigRe" + + "quest\032\035.google.longrunning.Operation\"\224\001\312" + + "AL\n\025google.protobuf.Empty\0223google.cloud." + + "networkmanagement.v1.OperationMetadata\332A" + + "\004name\202\323\344\223\0028*6/v1/{name=projects/*/locati" + + "ons/*/vpcFlowLogsConfigs/*}\032T\312A networkm" + + "anagement.googleapis.com\322A.https://www.g" + + "oogleapis.com/auth/cloud-platformB\377\001\n%co" + + "m.google.cloud.networkmanagement.v1B\020Vpc" + + "FlowLogsProtoP\001ZScloud.google.com/go/net" + + "workmanagement/apiv1/networkmanagementpb" + + ";networkmanagementpb\252\002!Google.Cloud.Netw" + + "orkManagement.V1\312\002!Google\\Cloud\\NetworkM" + + "anagement\\V1\352\002$Google::Cloud::NetworkMan" + + "agement::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.networkmanagement.v1.ReachabilityServiceProto.getDescriptor(), + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_networkmanagement_v1_ListVpcFlowLogsConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_networkmanagement_v1_ListVpcFlowLogsConfigsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkmanagement_v1_ListVpcFlowLogsConfigsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_networkmanagement_v1_ListVpcFlowLogsConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_networkmanagement_v1_ListVpcFlowLogsConfigsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkmanagement_v1_ListVpcFlowLogsConfigsResponse_descriptor, + new java.lang.String[] { + "VpcFlowLogsConfigs", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_networkmanagement_v1_GetVpcFlowLogsConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_networkmanagement_v1_GetVpcFlowLogsConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkmanagement_v1_GetVpcFlowLogsConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_networkmanagement_v1_CreateVpcFlowLogsConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_networkmanagement_v1_CreateVpcFlowLogsConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkmanagement_v1_CreateVpcFlowLogsConfigRequest_descriptor, + new java.lang.String[] { + "Parent", "VpcFlowLogsConfigId", "VpcFlowLogsConfig", + }); + internal_static_google_cloud_networkmanagement_v1_UpdateVpcFlowLogsConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_networkmanagement_v1_UpdateVpcFlowLogsConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkmanagement_v1_UpdateVpcFlowLogsConfigRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "VpcFlowLogsConfig", + }); + internal_static_google_cloud_networkmanagement_v1_DeleteVpcFlowLogsConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_networkmanagement_v1_DeleteVpcFlowLogsConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkmanagement_v1_DeleteVpcFlowLogsConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + 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.networkmanagement.v1.ReachabilityServiceProto.getDescriptor(); + com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/vpc_flow_logs.proto b/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/vpc_flow_logs.proto new file mode 100644 index 000000000000..b1e60bfff0d8 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/vpc_flow_logs.proto @@ -0,0 +1,231 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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.networkmanagement.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/networkmanagement/v1/reachability.proto"; +import "google/cloud/networkmanagement/v1/vpc_flow_logs_config.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Cloud.NetworkManagement.V1"; +option go_package = "cloud.google.com/go/networkmanagement/apiv1/networkmanagementpb;networkmanagementpb"; +option java_multiple_files = true; +option java_outer_classname = "VpcFlowLogsProto"; +option java_package = "com.google.cloud.networkmanagement.v1"; +option php_namespace = "Google\\Cloud\\NetworkManagement\\V1"; +option ruby_package = "Google::Cloud::NetworkManagement::V1"; + +// The VPC Flow Logs service in the Google Cloud Network Management API provides +// configurations that generate Flow Logs. The service and the configuration +// resources created using this service are global. +service VpcFlowLogsService { + option (google.api.default_host) = "networkmanagement.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Lists all `VpcFlowLogsConfigs` in a given project. + rpc ListVpcFlowLogsConfigs(ListVpcFlowLogsConfigsRequest) + returns (ListVpcFlowLogsConfigsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/vpcFlowLogsConfigs" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets the details of a specific `VpcFlowLogsConfig`. + rpc GetVpcFlowLogsConfig(GetVpcFlowLogsConfigRequest) + returns (VpcFlowLogsConfig) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/vpcFlowLogsConfigs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new `VpcFlowLogsConfig`. + // If a configuration with the exact same settings already exists (even if the + // ID is different), the creation fails. + // Notes: + // + // 1. Creating a configuration with state=DISABLED will fail + // 2. The following fields are not considered as `settings` for the purpose + // of the check mentioned above, therefore - creating another configuration + // with the same fields but different values for the following fields will + // fail as well: + // * name + // * create_time + // * update_time + // * labels + // * description + rpc CreateVpcFlowLogsConfig(CreateVpcFlowLogsConfigRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/vpcFlowLogsConfigs" + body: "vpc_flow_logs_config" + }; + option (google.api.method_signature) = + "parent,vpc_flow_logs_config,vpc_flow_logs_config_id"; + option (google.longrunning.operation_info) = { + response_type: "VpcFlowLogsConfig" + metadata_type: "google.cloud.networkmanagement.v1.OperationMetadata" + }; + } + + // Updates an existing `VpcFlowLogsConfig`. + // If a configuration with the exact same settings already exists (even if the + // ID is different), the creation fails. + // Notes: + // + // 1. Updating a configuration with state=DISABLED will fail. + // 2. The following fields are not considered as `settings` for the purpose + // of the check mentioned above, therefore - updating another configuration + // with the same fields but different values for the following fields will + // fail as well: + // * name + // * create_time + // * update_time + // * labels + // * description + rpc UpdateVpcFlowLogsConfig(UpdateVpcFlowLogsConfigRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{vpc_flow_logs_config.name=projects/*/locations/*/vpcFlowLogsConfigs/*}" + body: "vpc_flow_logs_config" + }; + option (google.api.method_signature) = "vpc_flow_logs_config,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "VpcFlowLogsConfig" + metadata_type: "google.cloud.networkmanagement.v1.OperationMetadata" + }; + } + + // Deletes a specific `VpcFlowLogsConfig`. + rpc DeleteVpcFlowLogsConfig(DeleteVpcFlowLogsConfigRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/vpcFlowLogsConfigs/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.cloud.networkmanagement.v1.OperationMetadata" + }; + } +} + +// Request for the `ListVpcFlowLogsConfigs` method. +message ListVpcFlowLogsConfigsRequest { + // Required. The parent resource of the VpcFlowLogsConfig: + // `projects/{project_id}/locations/global` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networkmanagement.googleapis.com/VpcFlowLogsConfig" + } + ]; + + // Optional. Number of `VpcFlowLogsConfigs` to return. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Page token from an earlier query, as returned in + // `next_page_token`. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression. + // A filter expression must use the supported [CEL logic operators] + // (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators). + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Field to use to sort the list. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response for the `ListVpcFlowLogsConfigs` method. +message ListVpcFlowLogsConfigsResponse { + // List of VPC Flow Log configurations. + repeated VpcFlowLogsConfig vpc_flow_logs_configs = 1; + + // Page token to fetch the next set of configurations. + string next_page_token = 2; + + // Locations that could not be reached (when querying all locations with `-`). + repeated string unreachable = 3; +} + +// Request for the `GetVpcFlowLogsConfig` method. +message GetVpcFlowLogsConfigRequest { + // Required. `VpcFlowLogsConfig` resource name using the form: + // `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networkmanagement.googleapis.com/VpcFlowLogsConfig" + } + ]; +} + +// Request for the `CreateVpcFlowLogsConfig` method. +message CreateVpcFlowLogsConfigRequest { + // Required. The parent resource of the VPC Flow Logs configuration to create: + // `projects/{project_id}/locations/global` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networkmanagement.googleapis.com/VpcFlowLogsConfig" + } + ]; + + // Required. ID of the `VpcFlowLogsConfig`. + string vpc_flow_logs_config_id = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networkmanagement.googleapis.com/VpcFlowLogsConfig" + } + ]; + + // Required. A `VpcFlowLogsConfig` resource + VpcFlowLogsConfig vpc_flow_logs_config = 3 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request for the `UpdateVpcFlowLogsConfig` method. +message UpdateVpcFlowLogsConfigRequest { + // Required. Mask of fields to update. At least one path must be supplied in + // this field. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Only fields specified in update_mask are updated. + VpcFlowLogsConfig vpc_flow_logs_config = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request for the `DeleteVpcFlowLogsConfig` method. +message DeleteVpcFlowLogsConfigRequest { + // Required. `VpcFlowLogsConfig` resource name using the form: + // `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networkmanagement.googleapis.com/VpcFlowLogsConfig" + } + ]; +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/vpc_flow_logs_config.proto b/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/vpc_flow_logs_config.proto new file mode 100644 index 000000000000..77cc33c26c2f --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/vpc_flow_logs_config.proto @@ -0,0 +1,170 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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.networkmanagement.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.NetworkManagement.V1"; +option go_package = "cloud.google.com/go/networkmanagement/apiv1/networkmanagementpb;networkmanagementpb"; +option java_multiple_files = true; +option java_outer_classname = "VpcFlowLogsConfigProto"; +option java_package = "com.google.cloud.networkmanagement.v1"; +option php_namespace = "Google\\Cloud\\NetworkManagement\\V1"; +option ruby_package = "Google::Cloud::NetworkManagement::V1"; + +// A configuration to generate VPC Flow Logs. +message VpcFlowLogsConfig { + option (google.api.resource) = { + type: "networkmanagement.googleapis.com/VpcFlowLogsConfig" + pattern: "projects/{project}/locations/{location}/vpcFlowLogsConfigs/{vpc_flow_logs_config}" + plural: "vpcFlowLogsConfigs" + singular: "vpcFlowLogsConfig" + }; + + // Determines whether this configuration will be generating logs. + // Setting state=DISABLED will pause the log generation for this config. + enum State { + // If not specified, will default to ENABLED. + STATE_UNSPECIFIED = 0; + + // When ENABLED, this configuration will generate logs. + ENABLED = 1; + + // When DISABLED, this configuration will not generate logs. + DISABLED = 2; + } + + // Toggles the aggregation interval for collecting flow logs by 5-tuple. + enum AggregationInterval { + // If not specified, will default to INTERVAL_5_SEC. + AGGREGATION_INTERVAL_UNSPECIFIED = 0; + + // Aggregate logs in 5s intervals. + INTERVAL_5_SEC = 1; + + // Aggregate logs in 30s intervals. + INTERVAL_30_SEC = 2; + + // Aggregate logs in 1m intervals. + INTERVAL_1_MIN = 3; + + // Aggregate logs in 5m intervals. + INTERVAL_5_MIN = 4; + + // Aggregate logs in 10m intervals. + INTERVAL_10_MIN = 5; + + // Aggregate logs in 15m intervals. + INTERVAL_15_MIN = 6; + } + + // Configures which log fields would be included. + enum Metadata { + // If not specified, will default to INCLUDE_ALL_METADATA. + METADATA_UNSPECIFIED = 0; + + // Include all metadata fields. + INCLUDE_ALL_METADATA = 1; + + // Exclude all metadata fields. + EXCLUDE_ALL_METADATA = 2; + + // Include only custom fields (specified in metadata_fields). + CUSTOM_METADATA = 3; + } + + // Optional states of the target resource that are used as part of the + // diagnostic bit. + enum TargetResourceState { + // Unspecified target resource state. + TARGET_RESOURCE_STATE_UNSPECIFIED = 0; + + // Indicates that the target resource exists. + TARGET_RESOURCE_EXISTS = 1; + + // Indicates that the target resource does not exist. + TARGET_RESOURCE_DOES_NOT_EXIST = 2; + } + + // Identifier. Unique name of the configuration using the form: + // `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. The user-supplied description of the VPC Flow Logs configuration. + // Maximum of 512 characters. + optional string description = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The state of the VPC Flow Log configuration. Default value is + // ENABLED. When creating a new configuration, it must be enabled. + optional State state = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The aggregation interval for the logs. Default value is + // INTERVAL_5_SEC. + optional AggregationInterval aggregation_interval = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The value of the field must be in (0, 1]. The sampling rate of + // VPC Flow Logs where 1.0 means all collected logs are reported. Setting the + // sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs, + // use the state field instead. Default value is 1.0. + optional float flow_sampling = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configures whether all, none or a subset of metadata fields + // should be added to the reported VPC flow logs. Default value is + // INCLUDE_ALL_METADATA. + optional Metadata metadata = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Custom metadata fields to include in the reported VPC flow logs. + // Can only be specified if "metadata" was set to CUSTOM_METADATA. + repeated string metadata_fields = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Export filter used to define which VPC Flow Logs should be + // logged. + optional string filter_expr = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. A diagnostic bit - describes the state of the configured + // target resource for diagnostic purposes. + optional TargetResourceState target_resource_state = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Reference to the resource of the config scope. That is, the scope from + // which traffic is logged. The target resource must belong to the same + // project as the configuration. + oneof target_resource { + // Traffic will be logged from the Interconnect Attachment. + // Format: + // projects/{project_id}/regions/{region}/interconnectAttachments/{name} + string interconnect_attachment = 102; + + // Traffic will be logged from the VPN Tunnel. + // Format: projects/{project_id}/regions/{region}/vpnTunnels/{name} + string vpn_tunnel = 103; + } + + // Optional. Resource labels to represent user-provided metadata. + map labels = 11 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The time the config was created. + google.protobuf.Timestamp create_time = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time the config was updated. + google.protobuf.Timestamp update_time = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/stub/vpcflowlogsservicestubsettings/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/stub/vpcflowlogsservicestubsettings/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfig.java new file mode 100644 index 000000000000..5c2361b5f42d --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/stub/vpcflowlogsservicestubsettings/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfig.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.stub.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsServiceStubSettings_CreateVpcFlowLogsConfig_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.networkmanagement.v1.stub.VpcFlowLogsServiceStubSettings; +import java.time.Duration; + +public class SyncCreateVpcFlowLogsConfig { + + public static void main(String[] args) throws Exception { + syncCreateVpcFlowLogsConfig(); + } + + public static void syncCreateVpcFlowLogsConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + VpcFlowLogsServiceStubSettings.Builder vpcFlowLogsServiceSettingsBuilder = + VpcFlowLogsServiceStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + vpcFlowLogsServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsServiceStubSettings_CreateVpcFlowLogsConfig_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/stub/vpcflowlogsservicestubsettings/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/stub/vpcflowlogsservicestubsettings/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfig.java new file mode 100644 index 000000000000..85c8acb49cfc --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/stub/vpcflowlogsservicestubsettings/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfig.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.stub.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsServiceStubSettings_GetVpcFlowLogsConfig_sync] +import com.google.cloud.networkmanagement.v1.stub.VpcFlowLogsServiceStubSettings; +import java.time.Duration; + +public class SyncGetVpcFlowLogsConfig { + + public static void main(String[] args) throws Exception { + syncGetVpcFlowLogsConfig(); + } + + public static void syncGetVpcFlowLogsConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + VpcFlowLogsServiceStubSettings.Builder vpcFlowLogsServiceSettingsBuilder = + VpcFlowLogsServiceStubSettings.newBuilder(); + vpcFlowLogsServiceSettingsBuilder + .getVpcFlowLogsConfigSettings() + .setRetrySettings( + vpcFlowLogsServiceSettingsBuilder + .getVpcFlowLogsConfigSettings() + .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()); + VpcFlowLogsServiceStubSettings vpcFlowLogsServiceSettings = + vpcFlowLogsServiceSettingsBuilder.build(); + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsServiceStubSettings_GetVpcFlowLogsConfig_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/create/SyncCreateSetCredentialsProvider.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..b035e366c565 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceSettings; +import com.google.cloud.networkmanagement.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 + VpcFlowLogsServiceSettings vpcFlowLogsServiceSettings = + VpcFlowLogsServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + VpcFlowLogsServiceClient vpcFlowLogsServiceClient = + VpcFlowLogsServiceClient.create(vpcFlowLogsServiceSettings); + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_Create_SetCredentialsProvider_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/create/SyncCreateSetEndpoint.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..d2b348608591 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_Create_SetEndpoint_sync] +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceSettings; +import com.google.cloud.networkmanagement.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 + VpcFlowLogsServiceSettings vpcFlowLogsServiceSettings = + VpcFlowLogsServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + VpcFlowLogsServiceClient vpcFlowLogsServiceClient = + VpcFlowLogsServiceClient.create(vpcFlowLogsServiceSettings); + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_Create_SetEndpoint_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/create/SyncCreateUseHttpJsonTransport.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..c6e166b1c943 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + VpcFlowLogsServiceSettings vpcFlowLogsServiceSettings = + VpcFlowLogsServiceSettings.newHttpJsonBuilder().build(); + VpcFlowLogsServiceClient vpcFlowLogsServiceClient = + VpcFlowLogsServiceClient.create(vpcFlowLogsServiceSettings); + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_Create_UseHttpJsonTransport_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/AsyncCreateVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/AsyncCreateVpcFlowLogsConfig.java new file mode 100644 index 000000000000..6758fb769118 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/AsyncCreateVpcFlowLogsConfig.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_CreateVpcFlowLogsConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.LocationName; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigName; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; +import com.google.longrunning.Operation; + +public class AsyncCreateVpcFlowLogsConfig { + + public static void main(String[] args) throws Exception { + asyncCreateVpcFlowLogsConfig(); + } + + public static void asyncCreateVpcFlowLogsConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + CreateVpcFlowLogsConfigRequest request = + CreateVpcFlowLogsConfigRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setVpcFlowLogsConfigId( + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build()) + .build(); + ApiFuture future = + vpcFlowLogsServiceClient.createVpcFlowLogsConfigCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_CreateVpcFlowLogsConfig_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/AsyncCreateVpcFlowLogsConfigLRO.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/AsyncCreateVpcFlowLogsConfigLRO.java new file mode 100644 index 000000000000..0a7788d846d0 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/AsyncCreateVpcFlowLogsConfigLRO.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_CreateVpcFlowLogsConfig_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.LocationName; +import com.google.cloud.networkmanagement.v1.OperationMetadata; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigName; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; + +public class AsyncCreateVpcFlowLogsConfigLRO { + + public static void main(String[] args) throws Exception { + asyncCreateVpcFlowLogsConfigLRO(); + } + + public static void asyncCreateVpcFlowLogsConfigLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + CreateVpcFlowLogsConfigRequest request = + CreateVpcFlowLogsConfigRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setVpcFlowLogsConfigId( + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build()) + .build(); + OperationFuture future = + vpcFlowLogsServiceClient.createVpcFlowLogsConfigOperationCallable().futureCall(request); + // Do something. + VpcFlowLogsConfig response = future.get(); + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_CreateVpcFlowLogsConfig_LRO_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfig.java new file mode 100644 index 000000000000..6009d7e0d8d1 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfig.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_CreateVpcFlowLogsConfig_sync] +import com.google.cloud.networkmanagement.v1.CreateVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.LocationName; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigName; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; + +public class SyncCreateVpcFlowLogsConfig { + + public static void main(String[] args) throws Exception { + syncCreateVpcFlowLogsConfig(); + } + + public static void syncCreateVpcFlowLogsConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + CreateVpcFlowLogsConfigRequest request = + CreateVpcFlowLogsConfigRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setVpcFlowLogsConfigId( + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build()) + .build(); + VpcFlowLogsConfig response = + vpcFlowLogsServiceClient.createVpcFlowLogsConfigAsync(request).get(); + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_CreateVpcFlowLogsConfig_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigString.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigString.java new file mode 100644 index 000000000000..00e7f9e3ecc2 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigString.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_CreateVpcFlowLogsConfig_LocationnameVpcflowlogsconfigString_sync] +import com.google.cloud.networkmanagement.v1.LocationName; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigName; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; + +public class SyncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigString { + + public static void main(String[] args) throws Exception { + syncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigString(); + } + + public static void syncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]").toString(); + VpcFlowLogsConfig response = + vpcFlowLogsServiceClient + .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId) + .get(); + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_CreateVpcFlowLogsConfig_LocationnameVpcflowlogsconfigString_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigVpcflowlogsconfigname.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigVpcflowlogsconfigname.java new file mode 100644 index 000000000000..febf9014f3b5 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigVpcflowlogsconfigname.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_CreateVpcFlowLogsConfig_LocationnameVpcflowlogsconfigVpcflowlogsconfigname_sync] +import com.google.cloud.networkmanagement.v1.LocationName; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigName; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; + +public class SyncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigVpcflowlogsconfigname { + + public static void main(String[] args) throws Exception { + syncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigVpcflowlogsconfigname(); + } + + public static void syncCreateVpcFlowLogsConfigLocationnameVpcflowlogsconfigVpcflowlogsconfigname() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfig response = + vpcFlowLogsServiceClient + .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId) + .get(); + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_CreateVpcFlowLogsConfig_LocationnameVpcflowlogsconfigVpcflowlogsconfigname_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigStringVpcflowlogsconfigString.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigStringVpcflowlogsconfigString.java new file mode 100644 index 000000000000..ea6712279ba1 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigStringVpcflowlogsconfigString.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_CreateVpcFlowLogsConfig_StringVpcflowlogsconfigString_sync] +import com.google.cloud.networkmanagement.v1.LocationName; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigName; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; + +public class SyncCreateVpcFlowLogsConfigStringVpcflowlogsconfigString { + + public static void main(String[] args) throws Exception { + syncCreateVpcFlowLogsConfigStringVpcflowlogsconfigString(); + } + + public static void syncCreateVpcFlowLogsConfigStringVpcflowlogsconfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + String vpcFlowLogsConfigId = + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]").toString(); + VpcFlowLogsConfig response = + vpcFlowLogsServiceClient + .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId) + .get(); + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_CreateVpcFlowLogsConfig_StringVpcflowlogsconfigString_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigStringVpcflowlogsconfigVpcflowlogsconfigname.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigStringVpcflowlogsconfigVpcflowlogsconfigname.java new file mode 100644 index 000000000000..00673fa06ae2 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfigStringVpcflowlogsconfigVpcflowlogsconfigname.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_CreateVpcFlowLogsConfig_StringVpcflowlogsconfigVpcflowlogsconfigname_sync] +import com.google.cloud.networkmanagement.v1.LocationName; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigName; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; + +public class SyncCreateVpcFlowLogsConfigStringVpcflowlogsconfigVpcflowlogsconfigname { + + public static void main(String[] args) throws Exception { + syncCreateVpcFlowLogsConfigStringVpcflowlogsconfigVpcflowlogsconfigname(); + } + + public static void syncCreateVpcFlowLogsConfigStringVpcflowlogsconfigVpcflowlogsconfigname() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + VpcFlowLogsConfigName vpcFlowLogsConfigId = + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfig response = + vpcFlowLogsServiceClient + .createVpcFlowLogsConfigAsync(parent, vpcFlowLogsConfig, vpcFlowLogsConfigId) + .get(); + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_CreateVpcFlowLogsConfig_StringVpcflowlogsconfigVpcflowlogsconfigname_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/deletevpcflowlogsconfig/AsyncDeleteVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/deletevpcflowlogsconfig/AsyncDeleteVpcFlowLogsConfig.java new file mode 100644 index 000000000000..0aed7aef30f8 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/deletevpcflowlogsconfig/AsyncDeleteVpcFlowLogsConfig.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_DeleteVpcFlowLogsConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigName; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteVpcFlowLogsConfig { + + public static void main(String[] args) throws Exception { + asyncDeleteVpcFlowLogsConfig(); + } + + public static void asyncDeleteVpcFlowLogsConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + DeleteVpcFlowLogsConfigRequest request = + DeleteVpcFlowLogsConfigRequest.newBuilder() + .setName( + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .build(); + ApiFuture future = + vpcFlowLogsServiceClient.deleteVpcFlowLogsConfigCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_DeleteVpcFlowLogsConfig_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/deletevpcflowlogsconfig/AsyncDeleteVpcFlowLogsConfigLRO.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/deletevpcflowlogsconfig/AsyncDeleteVpcFlowLogsConfigLRO.java new file mode 100644 index 000000000000..e75bd4ec66a4 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/deletevpcflowlogsconfig/AsyncDeleteVpcFlowLogsConfigLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_DeleteVpcFlowLogsConfig_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.OperationMetadata; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigName; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteVpcFlowLogsConfigLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteVpcFlowLogsConfigLRO(); + } + + public static void asyncDeleteVpcFlowLogsConfigLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + DeleteVpcFlowLogsConfigRequest request = + DeleteVpcFlowLogsConfigRequest.newBuilder() + .setName( + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .build(); + OperationFuture future = + vpcFlowLogsServiceClient.deleteVpcFlowLogsConfigOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_DeleteVpcFlowLogsConfig_LRO_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfig.java new file mode 100644 index 000000000000..19cd4b51fffb --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfig.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_DeleteVpcFlowLogsConfig_sync] +import com.google.cloud.networkmanagement.v1.DeleteVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigName; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteVpcFlowLogsConfig { + + public static void main(String[] args) throws Exception { + syncDeleteVpcFlowLogsConfig(); + } + + public static void syncDeleteVpcFlowLogsConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + DeleteVpcFlowLogsConfigRequest request = + DeleteVpcFlowLogsConfigRequest.newBuilder() + .setName( + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .build(); + vpcFlowLogsServiceClient.deleteVpcFlowLogsConfigAsync(request).get(); + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_DeleteVpcFlowLogsConfig_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfigString.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfigString.java new file mode 100644 index 000000000000..0f90db852020 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfigString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_DeleteVpcFlowLogsConfig_String_sync] +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigName; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteVpcFlowLogsConfigString { + + public static void main(String[] args) throws Exception { + syncDeleteVpcFlowLogsConfigString(); + } + + public static void syncDeleteVpcFlowLogsConfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + String name = + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]").toString(); + vpcFlowLogsServiceClient.deleteVpcFlowLogsConfigAsync(name).get(); + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_DeleteVpcFlowLogsConfig_String_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfigVpcflowlogsconfigname.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfigVpcflowlogsconfigname.java new file mode 100644 index 000000000000..7a8f588b3a71 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/deletevpcflowlogsconfig/SyncDeleteVpcFlowLogsConfigVpcflowlogsconfigname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_DeleteVpcFlowLogsConfig_Vpcflowlogsconfigname_sync] +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigName; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteVpcFlowLogsConfigVpcflowlogsconfigname { + + public static void main(String[] args) throws Exception { + syncDeleteVpcFlowLogsConfigVpcflowlogsconfigname(); + } + + public static void syncDeleteVpcFlowLogsConfigVpcflowlogsconfigname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + VpcFlowLogsConfigName name = + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + vpcFlowLogsServiceClient.deleteVpcFlowLogsConfigAsync(name).get(); + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_DeleteVpcFlowLogsConfig_Vpcflowlogsconfigname_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/getiampolicy/AsyncGetIamPolicy.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 000000000000..9571e4992c73 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_GetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkmanagement.v1.ConnectivityTestName; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; +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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = + vpcFlowLogsServiceClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_GetIamPolicy_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/getiampolicy/SyncGetIamPolicy.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 000000000000..a8075489870d --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_GetIamPolicy_sync] +import com.google.cloud.networkmanagement.v1.ConnectivityTestName; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; +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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = vpcFlowLogsServiceClient.getIamPolicy(request); + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_GetIamPolicy_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/getlocation/AsyncGetLocation.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..dc5fbf523170 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/getlocation/AsyncGetLocation.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; + +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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = + vpcFlowLogsServiceClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_GetLocation_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/getlocation/SyncGetLocation.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..4ba80fe960b5 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/getlocation/SyncGetLocation.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_GetLocation_sync] +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; + +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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = vpcFlowLogsServiceClient.getLocation(request); + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_GetLocation_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/getvpcflowlogsconfig/AsyncGetVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/getvpcflowlogsconfig/AsyncGetVpcFlowLogsConfig.java new file mode 100644 index 000000000000..6a590c82c9a4 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/getvpcflowlogsconfig/AsyncGetVpcFlowLogsConfig.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_GetVpcFlowLogsConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigName; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; + +public class AsyncGetVpcFlowLogsConfig { + + public static void main(String[] args) throws Exception { + asyncGetVpcFlowLogsConfig(); + } + + public static void asyncGetVpcFlowLogsConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + GetVpcFlowLogsConfigRequest request = + GetVpcFlowLogsConfigRequest.newBuilder() + .setName( + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .build(); + ApiFuture future = + vpcFlowLogsServiceClient.getVpcFlowLogsConfigCallable().futureCall(request); + // Do something. + VpcFlowLogsConfig response = future.get(); + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_GetVpcFlowLogsConfig_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfig.java new file mode 100644 index 000000000000..d86501ffda15 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfig.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_GetVpcFlowLogsConfig_sync] +import com.google.cloud.networkmanagement.v1.GetVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigName; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; + +public class SyncGetVpcFlowLogsConfig { + + public static void main(String[] args) throws Exception { + syncGetVpcFlowLogsConfig(); + } + + public static void syncGetVpcFlowLogsConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + GetVpcFlowLogsConfigRequest request = + GetVpcFlowLogsConfigRequest.newBuilder() + .setName( + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]") + .toString()) + .build(); + VpcFlowLogsConfig response = vpcFlowLogsServiceClient.getVpcFlowLogsConfig(request); + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_GetVpcFlowLogsConfig_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfigString.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfigString.java new file mode 100644 index 000000000000..e5839ce840b5 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfigString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_GetVpcFlowLogsConfig_String_sync] +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigName; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; + +public class SyncGetVpcFlowLogsConfigString { + + public static void main(String[] args) throws Exception { + syncGetVpcFlowLogsConfigString(); + } + + public static void syncGetVpcFlowLogsConfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + String name = + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]").toString(); + VpcFlowLogsConfig response = vpcFlowLogsServiceClient.getVpcFlowLogsConfig(name); + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_GetVpcFlowLogsConfig_String_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfigVpcflowlogsconfigname.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfigVpcflowlogsconfigname.java new file mode 100644 index 000000000000..4fe4c659a5e9 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfigVpcflowlogsconfigname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_GetVpcFlowLogsConfig_Vpcflowlogsconfigname_sync] +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfigName; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; + +public class SyncGetVpcFlowLogsConfigVpcflowlogsconfigname { + + public static void main(String[] args) throws Exception { + syncGetVpcFlowLogsConfigVpcflowlogsconfigname(); + } + + public static void syncGetVpcFlowLogsConfigVpcflowlogsconfigname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + VpcFlowLogsConfigName name = + VpcFlowLogsConfigName.of("[PROJECT]", "[LOCATION]", "[VPC_FLOW_LOGS_CONFIG]"); + VpcFlowLogsConfig response = vpcFlowLogsServiceClient.getVpcFlowLogsConfig(name); + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_GetVpcFlowLogsConfig_Vpcflowlogsconfigname_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/listlocations/AsyncListLocations.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..78e7b0dc62e1 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/listlocations/AsyncListLocations.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; + +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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + vpcFlowLogsServiceClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_ListLocations_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/listlocations/AsyncListLocationsPaged.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..ce22f7e0dc21 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_ListLocations_Paged_async] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; +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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = + vpcFlowLogsServiceClient.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 networkmanagement_v1_generated_VpcFlowLogsService_ListLocations_Paged_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/listlocations/SyncListLocations.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..775557a4c480 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/listlocations/SyncListLocations.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_ListLocations_sync] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; + +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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : vpcFlowLogsServiceClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_ListLocations_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/listvpcflowlogsconfigs/AsyncListVpcFlowLogsConfigs.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/listvpcflowlogsconfigs/AsyncListVpcFlowLogsConfigs.java new file mode 100644 index 000000000000..91cb00a8312a --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/listvpcflowlogsconfigs/AsyncListVpcFlowLogsConfigs.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_ListVpcFlowLogsConfigs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1.LocationName; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; + +public class AsyncListVpcFlowLogsConfigs { + + public static void main(String[] args) throws Exception { + asyncListVpcFlowLogsConfigs(); + } + + public static void asyncListVpcFlowLogsConfigs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + ListVpcFlowLogsConfigsRequest request = + ListVpcFlowLogsConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + vpcFlowLogsServiceClient.listVpcFlowLogsConfigsPagedCallable().futureCall(request); + // Do something. + for (VpcFlowLogsConfig element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_ListVpcFlowLogsConfigs_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/listvpcflowlogsconfigs/AsyncListVpcFlowLogsConfigsPaged.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/listvpcflowlogsconfigs/AsyncListVpcFlowLogsConfigsPaged.java new file mode 100644 index 000000000000..f5b4b1401ae3 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/listvpcflowlogsconfigs/AsyncListVpcFlowLogsConfigsPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_ListVpcFlowLogsConfigs_Paged_async] +import com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse; +import com.google.cloud.networkmanagement.v1.LocationName; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; +import com.google.common.base.Strings; + +public class AsyncListVpcFlowLogsConfigsPaged { + + public static void main(String[] args) throws Exception { + asyncListVpcFlowLogsConfigsPaged(); + } + + public static void asyncListVpcFlowLogsConfigsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + ListVpcFlowLogsConfigsRequest request = + ListVpcFlowLogsConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListVpcFlowLogsConfigsResponse response = + vpcFlowLogsServiceClient.listVpcFlowLogsConfigsCallable().call(request); + for (VpcFlowLogsConfig element : response.getVpcFlowLogsConfigsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_ListVpcFlowLogsConfigs_Paged_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/listvpcflowlogsconfigs/SyncListVpcFlowLogsConfigs.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/listvpcflowlogsconfigs/SyncListVpcFlowLogsConfigs.java new file mode 100644 index 000000000000..1fa60dc057ea --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/listvpcflowlogsconfigs/SyncListVpcFlowLogsConfigs.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_ListVpcFlowLogsConfigs_sync] +import com.google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsRequest; +import com.google.cloud.networkmanagement.v1.LocationName; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; + +public class SyncListVpcFlowLogsConfigs { + + public static void main(String[] args) throws Exception { + syncListVpcFlowLogsConfigs(); + } + + public static void syncListVpcFlowLogsConfigs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + ListVpcFlowLogsConfigsRequest request = + ListVpcFlowLogsConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (VpcFlowLogsConfig element : + vpcFlowLogsServiceClient.listVpcFlowLogsConfigs(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_ListVpcFlowLogsConfigs_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/listvpcflowlogsconfigs/SyncListVpcFlowLogsConfigsLocationname.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/listvpcflowlogsconfigs/SyncListVpcFlowLogsConfigsLocationname.java new file mode 100644 index 000000000000..4af543d3d3a9 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/listvpcflowlogsconfigs/SyncListVpcFlowLogsConfigsLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_ListVpcFlowLogsConfigs_Locationname_sync] +import com.google.cloud.networkmanagement.v1.LocationName; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; + +public class SyncListVpcFlowLogsConfigsLocationname { + + public static void main(String[] args) throws Exception { + syncListVpcFlowLogsConfigsLocationname(); + } + + public static void syncListVpcFlowLogsConfigsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (VpcFlowLogsConfig element : + vpcFlowLogsServiceClient.listVpcFlowLogsConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_ListVpcFlowLogsConfigs_Locationname_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/listvpcflowlogsconfigs/SyncListVpcFlowLogsConfigsString.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/listvpcflowlogsconfigs/SyncListVpcFlowLogsConfigsString.java new file mode 100644 index 000000000000..58935678eaba --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/listvpcflowlogsconfigs/SyncListVpcFlowLogsConfigsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_ListVpcFlowLogsConfigs_String_sync] +import com.google.cloud.networkmanagement.v1.LocationName; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; + +public class SyncListVpcFlowLogsConfigsString { + + public static void main(String[] args) throws Exception { + syncListVpcFlowLogsConfigsString(); + } + + public static void syncListVpcFlowLogsConfigsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (VpcFlowLogsConfig element : + vpcFlowLogsServiceClient.listVpcFlowLogsConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_ListVpcFlowLogsConfigs_String_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/setiampolicy/AsyncSetIamPolicy.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 000000000000..0adb7444aa3f --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/setiampolicy/AsyncSetIamPolicy.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_SetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkmanagement.v1.ConnectivityTestName; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; +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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + vpcFlowLogsServiceClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_SetIamPolicy_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/setiampolicy/SyncSetIamPolicy.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 000000000000..c58d6cd2e673 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/setiampolicy/SyncSetIamPolicy.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_SetIamPolicy_sync] +import com.google.cloud.networkmanagement.v1.ConnectivityTestName; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; +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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = vpcFlowLogsServiceClient.setIamPolicy(request); + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_SetIamPolicy_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/testiampermissions/AsyncTestIamPermissions.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 000000000000..61f3c7b89b91 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/testiampermissions/AsyncTestIamPermissions.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_TestIamPermissions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkmanagement.v1.ConnectivityTestName; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; +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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + vpcFlowLogsServiceClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_TestIamPermissions_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/testiampermissions/SyncTestIamPermissions.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 000000000000..93d5203fe9ec --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/testiampermissions/SyncTestIamPermissions.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_TestIamPermissions_sync] +import com.google.cloud.networkmanagement.v1.ConnectivityTestName; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; +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 (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(ConnectivityTestName.of("[PROJECT]", "[TEST]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = vpcFlowLogsServiceClient.testIamPermissions(request); + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_TestIamPermissions_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/updatevpcflowlogsconfig/AsyncUpdateVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/updatevpcflowlogsconfig/AsyncUpdateVpcFlowLogsConfig.java new file mode 100644 index 000000000000..4496fb40399c --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/updatevpcflowlogsconfig/AsyncUpdateVpcFlowLogsConfig.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_UpdateVpcFlowLogsConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateVpcFlowLogsConfig { + + public static void main(String[] args) throws Exception { + asyncUpdateVpcFlowLogsConfig(); + } + + public static void asyncUpdateVpcFlowLogsConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + UpdateVpcFlowLogsConfigRequest request = + UpdateVpcFlowLogsConfigRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build()) + .build(); + ApiFuture future = + vpcFlowLogsServiceClient.updateVpcFlowLogsConfigCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_UpdateVpcFlowLogsConfig_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/updatevpcflowlogsconfig/AsyncUpdateVpcFlowLogsConfigLRO.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/updatevpcflowlogsconfig/AsyncUpdateVpcFlowLogsConfigLRO.java new file mode 100644 index 000000000000..f14fc43609f9 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/updatevpcflowlogsconfig/AsyncUpdateVpcFlowLogsConfigLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_UpdateVpcFlowLogsConfig_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networkmanagement.v1.OperationMetadata; +import com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateVpcFlowLogsConfigLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateVpcFlowLogsConfigLRO(); + } + + public static void asyncUpdateVpcFlowLogsConfigLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + UpdateVpcFlowLogsConfigRequest request = + UpdateVpcFlowLogsConfigRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build()) + .build(); + OperationFuture future = + vpcFlowLogsServiceClient.updateVpcFlowLogsConfigOperationCallable().futureCall(request); + // Do something. + VpcFlowLogsConfig response = future.get(); + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_UpdateVpcFlowLogsConfig_LRO_async] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/updatevpcflowlogsconfig/SyncUpdateVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/updatevpcflowlogsconfig/SyncUpdateVpcFlowLogsConfig.java new file mode 100644 index 000000000000..1dfe4b50eda5 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/updatevpcflowlogsconfig/SyncUpdateVpcFlowLogsConfig.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_UpdateVpcFlowLogsConfig_sync] +import com.google.cloud.networkmanagement.v1.UpdateVpcFlowLogsConfigRequest; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateVpcFlowLogsConfig { + + public static void main(String[] args) throws Exception { + syncUpdateVpcFlowLogsConfig(); + } + + public static void syncUpdateVpcFlowLogsConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + UpdateVpcFlowLogsConfigRequest request = + UpdateVpcFlowLogsConfigRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setVpcFlowLogsConfig(VpcFlowLogsConfig.newBuilder().build()) + .build(); + VpcFlowLogsConfig response = + vpcFlowLogsServiceClient.updateVpcFlowLogsConfigAsync(request).get(); + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_UpdateVpcFlowLogsConfig_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/updatevpcflowlogsconfig/SyncUpdateVpcFlowLogsConfigVpcflowlogsconfigFieldmask.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/updatevpcflowlogsconfig/SyncUpdateVpcFlowLogsConfigVpcflowlogsconfigFieldmask.java new file mode 100644 index 000000000000..a656b7e2f45d --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservice/updatevpcflowlogsconfig/SyncUpdateVpcFlowLogsConfigVpcflowlogsconfigFieldmask.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsService_UpdateVpcFlowLogsConfig_VpcflowlogsconfigFieldmask_sync] +import com.google.cloud.networkmanagement.v1.VpcFlowLogsConfig; +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateVpcFlowLogsConfigVpcflowlogsconfigFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateVpcFlowLogsConfigVpcflowlogsconfigFieldmask(); + } + + public static void syncUpdateVpcFlowLogsConfigVpcflowlogsconfigFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (VpcFlowLogsServiceClient vpcFlowLogsServiceClient = VpcFlowLogsServiceClient.create()) { + VpcFlowLogsConfig vpcFlowLogsConfig = VpcFlowLogsConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + VpcFlowLogsConfig response = + vpcFlowLogsServiceClient + .updateVpcFlowLogsConfigAsync(vpcFlowLogsConfig, updateMask) + .get(); + } + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsService_UpdateVpcFlowLogsConfig_VpcflowlogsconfigFieldmask_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservicesettings/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservicesettings/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfig.java new file mode 100644 index 000000000000..05925fb5af9e --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservicesettings/createvpcflowlogsconfig/SyncCreateVpcFlowLogsConfig.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsServiceSettings_CreateVpcFlowLogsConfig_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.networkmanagement.v1.VpcFlowLogsServiceSettings; +import java.time.Duration; + +public class SyncCreateVpcFlowLogsConfig { + + public static void main(String[] args) throws Exception { + syncCreateVpcFlowLogsConfig(); + } + + public static void syncCreateVpcFlowLogsConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + VpcFlowLogsServiceSettings.Builder vpcFlowLogsServiceSettingsBuilder = + VpcFlowLogsServiceSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + vpcFlowLogsServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsServiceSettings_CreateVpcFlowLogsConfig_sync] diff --git a/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservicesettings/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfig.java b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservicesettings/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfig.java new file mode 100644 index 000000000000..d1e0b21c4125 --- /dev/null +++ b/java-network-management/samples/snippets/generated/com/google/cloud/networkmanagement/v1/vpcflowlogsservicesettings/getvpcflowlogsconfig/SyncGetVpcFlowLogsConfig.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkmanagement.v1.samples; + +// [START networkmanagement_v1_generated_VpcFlowLogsServiceSettings_GetVpcFlowLogsConfig_sync] +import com.google.cloud.networkmanagement.v1.VpcFlowLogsServiceSettings; +import java.time.Duration; + +public class SyncGetVpcFlowLogsConfig { + + public static void main(String[] args) throws Exception { + syncGetVpcFlowLogsConfig(); + } + + public static void syncGetVpcFlowLogsConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + VpcFlowLogsServiceSettings.Builder vpcFlowLogsServiceSettingsBuilder = + VpcFlowLogsServiceSettings.newBuilder(); + vpcFlowLogsServiceSettingsBuilder + .getVpcFlowLogsConfigSettings() + .setRetrySettings( + vpcFlowLogsServiceSettingsBuilder + .getVpcFlowLogsConfigSettings() + .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()); + VpcFlowLogsServiceSettings vpcFlowLogsServiceSettings = + vpcFlowLogsServiceSettingsBuilder.build(); + } +} +// [END networkmanagement_v1_generated_VpcFlowLogsServiceSettings_GetVpcFlowLogsConfig_sync] diff --git a/java-network-security/README.md b/java-network-security/README.md index 8b028a58057c..fe1c2109e4bc 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.52.0 + 26.53.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.58.0 + 0.59.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-network-security:0.58.0' +implementation 'com.google.cloud:google-cloud-network-security:0.59.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-network-security" % "0.58.0" +libraryDependencies += "com.google.cloud" % "google-cloud-network-security" % "0.59.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.58.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-security/0.59.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 2d004b306ace..d58c00e60967 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.52.0 + 26.53.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.54.0 + 1.55.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-networkconnectivity:1.54.0' +implementation 'com.google.cloud:google-cloud-networkconnectivity:1.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-networkconnectivity" % "1.54.0" +libraryDependencies += "com.google.cloud" % "google-cloud-networkconnectivity" % "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-networkconnectivity.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkconnectivity/1.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkconnectivity/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-networkservices/README.md b/java-networkservices/README.md index 3b6defaa1474..dbd6bd950a5b 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.52.0 + 26.53.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.11.0 + 0.12.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-networkservices:0.11.0' +implementation 'com.google.cloud:google-cloud-networkservices:0.12.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-networkservices" % "0.11.0" +libraryDependencies += "com.google.cloud" % "google-cloud-networkservices" % "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.cloud/google-cloud-networkservices.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkservices/0.11.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkservices/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-notebooks/README.md b/java-notebooks/README.md index bb5d763b4173..d20e7f87344b 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.52.0 + 26.53.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.53.0 + 1.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-notebooks:1.53.0' +implementation 'com.google.cloud:google-cloud-notebooks:1.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-notebooks" % "1.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-notebooks" % "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-notebooks.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-notebooks/1.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-notebooks/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-optimization/README.md b/java-optimization/README.md index b875f98a0042..43c513f9e549 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.52.0 + 26.53.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.53.0 + 1.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-optimization:1.53.0' +implementation 'com.google.cloud:google-cloud-optimization:1.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-optimization" % "1.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-optimization" % "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-optimization.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-optimization/1.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-optimization/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-oracledatabase/README.md b/java-oracledatabase/README.md index 77f83d61e61a..420872ef7fba 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.52.0 + 26.53.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.4.0 + 0.5.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-oracledatabase:0.4.0' +implementation 'com.google.cloud:google-cloud-oracledatabase:0.5.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-oracledatabase" % "0.4.0" +libraryDependencies += "com.google.cloud" % "google-cloud-oracledatabase" % "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.cloud/google-cloud-oracledatabase.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-oracledatabase/0.4.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-oracledatabase/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-orchestration-airflow/README.md b/java-orchestration-airflow/README.md index 319053d29368..4598fed16f39 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.52.0 + 26.53.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.55.0 + 1.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-orchestration-airflow:1.55.0' +implementation 'com.google.cloud:google-cloud-orchestration-airflow:1.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-orchestration-airflow" % "1.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-orchestration-airflow" % "1.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-orchestration-airflow.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orchestration-airflow/1.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orchestration-airflow/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-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentsClient.java b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentsClient.java index c962ea726fb1..5dc8e744bad1 100644 --- a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentsClient.java +++ b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentsClient.java @@ -207,7 +207,7 @@ * *

ListWorkloads *

Lists workloads in a Cloud Composer environment. Workload is a unit that runs a single Composer component. - *

This method is supported for Cloud Composer environments in versions composer-3.*.*-airflow-*.*.* and newer. + *

This method is supported for Cloud Composer environments in versions composer-2.*.*-airflow-*.*.* and newer. * *

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

*
    @@ -1476,7 +1476,7 @@ public final PollAirflowCommandResponse pollAirflowCommand(PollAirflowCommandReq * component. * *

    This method is supported for Cloud Composer environments in versions - * composer-3.*.*-airflow-*.*.* and newer. + * composer-2.*.*-airflow-*.*.* and newer. * *

    Sample code: * @@ -1513,7 +1513,7 @@ public final ListWorkloadsPagedResponse listWorkloads(EnvironmentName parent) { * component. * *

    This method is supported for Cloud Composer environments in versions - * composer-3.*.*-airflow-*.*.* and newer. + * composer-2.*.*-airflow-*.*.* and newer. * *

    Sample code: * @@ -1547,7 +1547,7 @@ public final ListWorkloadsPagedResponse listWorkloads(String parent) { * component. * *

    This method is supported for Cloud Composer environments in versions - * composer-3.*.*-airflow-*.*.* and newer. + * composer-2.*.*-airflow-*.*.* and newer. * *

    Sample code: * @@ -1585,7 +1585,7 @@ public final ListWorkloadsPagedResponse listWorkloads(ListWorkloadsRequest reque * component. * *

    This method is supported for Cloud Composer environments in versions - * composer-3.*.*-airflow-*.*.* and newer. + * composer-2.*.*-airflow-*.*.* and newer. * *

    Sample code: * @@ -1623,7 +1623,7 @@ public final ListWorkloadsPagedResponse listWorkloads(ListWorkloadsRequest reque * component. * *

    This method is supported for Cloud Composer environments in versions - * composer-3.*.*-airflow-*.*.* and newer. + * composer-2.*.*-airflow-*.*.* and newer. * *

    Sample code: * diff --git a/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentsGrpc.java b/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentsGrpc.java index f38a65dccccb..7ea8ba235fa5 100644 --- a/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentsGrpc.java +++ b/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1/src/main/java/com/google/cloud/orchestration/airflow/service/v1/EnvironmentsGrpc.java @@ -1426,7 +1426,7 @@ default void pollAirflowCommand( * Lists workloads in a Cloud Composer environment. Workload is a unit that * runs a single Composer component. * This method is supported for Cloud Composer environments in versions - * composer-3.*.*-airflow-*.*.* and newer. + * composer-2.*.*-airflow-*.*.* and newer. * */ default void listWorkloads( @@ -1876,7 +1876,7 @@ public void pollAirflowCommand( * Lists workloads in a Cloud Composer environment. Workload is a unit that * runs a single Composer component. * This method is supported for Cloud Composer environments in versions - * composer-3.*.*-airflow-*.*.* and newer. + * composer-2.*.*-airflow-*.*.* and newer. * */ public void listWorkloads( @@ -2315,7 +2315,7 @@ public com.google.longrunning.Operation deleteEnvironment( * Lists workloads in a Cloud Composer environment. Workload is a unit that * runs a single Composer component. * This method is supported for Cloud Composer environments in versions - * composer-3.*.*-airflow-*.*.* and newer. + * composer-2.*.*-airflow-*.*.* and newer. * */ public com.google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse listWorkloads( @@ -2710,7 +2710,7 @@ protected EnvironmentsFutureStub build( * Lists workloads in a Cloud Composer environment. Workload is a unit that * runs a single Composer component. * This method is supported for Cloud Composer environments in versions - * composer-3.*.*-airflow-*.*.* and newer. + * composer-2.*.*-airflow-*.*.* and newer. * */ public com.google.common.util.concurrent.ListenableFuture< 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 d27cb6be08f4..cb1303aa1c6c 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 @@ -125,7 +125,7 @@ service Environments { // runs a single Composer component. // // This method is supported for Cloud Composer environments in versions - // composer-3.*.*-airflow-*.*.* and newer. + // composer-2.*.*-airflow-*.*.* and newer. rpc ListWorkloads(ListWorkloadsRequest) returns (ListWorkloadsResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*/environments/*}/workloads" diff --git a/java-orgpolicy/README.md b/java-orgpolicy/README.md index 3ec2048551f3..fb51ba2040ac 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.52.0 + 26.53.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.55.0 + 2.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-orgpolicy:2.55.0' +implementation 'com.google.cloud:google-cloud-orgpolicy:2.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-orgpolicy" % "2.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-orgpolicy" % "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-orgpolicy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orgpolicy/2.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orgpolicy/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-config/README.md b/java-os-config/README.md index 014b050ea060..1b079b07dfdd 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.52.0 + 26.53.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.57.0 + 2.58.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-os-config:2.57.0' +implementation 'com.google.cloud:google-cloud-os-config:2.58.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-os-config" % "2.57.0" +libraryDependencies += "com.google.cloud" % "google-cloud-os-config" % "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-os-config.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-config/2.57.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-config/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-os-login/README.md b/java-os-login/README.md index d4308d35f14e..103b841ad028 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.52.0 + 26.53.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.54.0 + 2.55.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-os-login:2.54.0' +implementation 'com.google.cloud:google-cloud-os-login:2.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-os-login" % "2.54.0" +libraryDependencies += "com.google.cloud" % "google-cloud-os-login" % "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-os-login.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-login/2.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-login/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-parallelstore/README.md b/java-parallelstore/README.md index b79f4266405e..cc8b65c95410 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.52.0 + 26.53.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.18.0 + 0.19.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-parallelstore:0.18.0' +implementation 'com.google.cloud:google-cloud-parallelstore:0.19.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-parallelstore" % "0.18.0" +libraryDependencies += "com.google.cloud" % "google-cloud-parallelstore" % "0.19.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.18.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-parallelstore/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-phishingprotection/README.md b/java-phishingprotection/README.md index c8fdf6db2a4c..bcee2c835b2d 100644 --- a/java-phishingprotection/README.md +++ b/java-phishingprotection/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.52.0 + 26.53.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.86.0 + 0.87.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-phishingprotection:0.86.0' +implementation 'com.google.cloud:google-cloud-phishingprotection:0.87.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-phishingprotection" % "0.86.0" +libraryDependencies += "com.google.cloud" % "google-cloud-phishingprotection" % "0.87.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.86.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-phishingprotection/0.87.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 7b3bf46aca58..fcace60a4eca 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.52.0 + 26.53.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.54.0 + 1.55.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-policy-troubleshooter:1.54.0' +implementation 'com.google.cloud:google-cloud-policy-troubleshooter:1.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-policy-troubleshooter" % "1.54.0" +libraryDependencies += "com.google.cloud" % "google-cloud-policy-troubleshooter" % "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-policy-troubleshooter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policy-troubleshooter/1.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policy-troubleshooter/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-policysimulator/README.md b/java-policysimulator/README.md index 14150dc514a2..115fc4c68e9b 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.52.0 + 26.53.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.34.0 + 0.35.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-policysimulator:0.34.0' +implementation 'com.google.cloud:google-cloud-policysimulator:0.35.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-policysimulator" % "0.34.0" +libraryDependencies += "com.google.cloud" % "google-cloud-policysimulator" % "0.35.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.34.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policysimulator/0.35.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 b99fde5dea3d..2441596b9048 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.52.0 + 26.53.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.57.0 + 0.58.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-private-catalog:0.57.0' +implementation 'com.google.cloud:google-cloud-private-catalog:0.58.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-private-catalog" % "0.57.0" +libraryDependencies += "com.google.cloud" % "google-cloud-private-catalog" % "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-private-catalog.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-private-catalog/0.57.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-private-catalog/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-privilegedaccessmanager/README.md b/java-privilegedaccessmanager/README.md index dbc2cd1882d0..d0ca4d8d0c98 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.52.0 + 26.53.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.9.0 + 0.10.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-privilegedaccessmanager:0.9.0' +implementation 'com.google.cloud:google-cloud-privilegedaccessmanager:0.10.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-privilegedaccessmanager" % "0.9.0" +libraryDependencies += "com.google.cloud" % "google-cloud-privilegedaccessmanager" % "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-privilegedaccessmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-privilegedaccessmanager/0.9.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-privilegedaccessmanager/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-profiler/README.md b/java-profiler/README.md index 3bb41ee9f531..2c56bfa4765b 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.52.0 + 26.53.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.55.0 + 2.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-profiler:2.55.0' +implementation 'com.google.cloud:google-cloud-profiler:2.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-profiler" % "2.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-profiler" % "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-profiler.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-profiler/2.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-profiler/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-publicca/README.md b/java-publicca/README.md index ee0669bf1365..171d2a410a0e 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.52.0 + 26.53.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.52.0 + 0.53.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-publicca:0.52.0' +implementation 'com.google.cloud:google-cloud-publicca:0.53.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-publicca" % "0.52.0" +libraryDependencies += "com.google.cloud" % "google-cloud-publicca" % "0.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-publicca.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-publicca/0.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-publicca/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-rapidmigrationassessment/README.md b/java-rapidmigrationassessment/README.md index b951667ce1a5..fb40068bba65 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.52.0 + 26.53.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.38.0 + 0.39.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-rapidmigrationassessment:0.38.0' +implementation 'com.google.cloud:google-cloud-rapidmigrationassessment:0.39.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-rapidmigrationassessment" % "0.38.0" +libraryDependencies += "com.google.cloud" % "google-cloud-rapidmigrationassessment" % "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-rapidmigrationassessment.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-rapidmigrationassessment/0.38.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-rapidmigrationassessment/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-recaptchaenterprise/README.md b/java-recaptchaenterprise/README.md index 8138f4020d89..9e96a7fd0241 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.52.0 + 26.53.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.52.0 + 3.53.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-recaptchaenterprise:3.52.0' +implementation 'com.google.cloud:google-cloud-recaptchaenterprise:3.53.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-recaptchaenterprise" % "3.52.0" +libraryDependencies += "com.google.cloud" % "google-cloud-recaptchaenterprise" % "3.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-recaptchaenterprise.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recaptchaenterprise/3.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recaptchaenterprise/3.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-recommendations-ai/README.md b/java-recommendations-ai/README.md index de0dc67781fc..0081a7bf424d 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.52.0 + 26.53.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.62.0 + 0.63.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-recommendations-ai:0.62.0' +implementation 'com.google.cloud:google-cloud-recommendations-ai:0.63.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-recommendations-ai" % "0.62.0" +libraryDependencies += "com.google.cloud" % "google-cloud-recommendations-ai" % "0.63.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.62.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommendations-ai/0.63.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 c99418e487ee..64ed6c024da8 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.52.0 + 26.53.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.57.0 + 2.58.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-recommender:2.57.0' +implementation 'com.google.cloud:google-cloud-recommender:2.58.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-recommender" % "2.57.0" +libraryDependencies += "com.google.cloud" % "google-cloud-recommender" % "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-recommender.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommender/2.57.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommender/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-redis-cluster/README.md b/java-redis-cluster/README.md index c82ff49fcc71..ed8fa72816f6 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.52.0 + 26.53.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.27.0 + 0.28.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-redis-cluster:0.27.0' +implementation 'com.google.cloud:google-cloud-redis-cluster:0.28.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-redis-cluster" % "0.27.0" +libraryDependencies += "com.google.cloud" % "google-cloud-redis-cluster" % "0.28.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.27.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis-cluster/0.28.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/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterClient.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterClient.java index 24fd4b8b824b..8c472e3021d5 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterClient.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterClient.java @@ -39,6 +39,7 @@ import com.google.protobuf.Any; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -67,15 +68,6 @@ *

  • `projects/redpepper-1290/locations/us-central1/clusters/my-redis` *
* - *

We use API version selector for Flex APIs - * - *

    - *
  • The versioning strategy is release-based versioning - *
  • Our backend CLH only deals with the superset version (called v1main) - *
  • Existing backend for Redis Gen1 and MRR is not touched. - *
  • More details in go/redis-flex-api-versioning - *
- * *

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: * @@ -227,6 +219,160 @@ * * * + *

RescheduleClusterMaintenance + *

Reschedules upcoming maintenance event. + * + *

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

+ *
    + *
  • rescheduleClusterMaintenanceAsync(RescheduleClusterMaintenanceRequest request) + *

+ *

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

+ *
    + *
  • rescheduleClusterMaintenanceAsync(ClusterName name, RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType, Timestamp scheduleTime) + *

  • rescheduleClusterMaintenanceAsync(String name, RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType, Timestamp scheduleTime) + *

+ *

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

+ *
    + *
  • rescheduleClusterMaintenanceOperationCallable() + *

  • rescheduleClusterMaintenanceCallable() + *

+ * + * + * + *

ListBackupCollections + *

Lists all backup collections owned by a consumer project in either the specified location (region) or all locations. + *

If `location_id` is specified as `-` (wildcard), then all regions available to the project are queried, and the results are aggregated. + * + *

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

+ *
    + *
  • listBackupCollections(ListBackupCollectionsRequest request) + *

+ *

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

+ *
    + *
  • listBackupCollections(LocationName parent) + *

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

+ *
    + *
  • listBackupCollectionsPagedCallable() + *

  • listBackupCollectionsCallable() + *

+ * + * + * + *

GetBackupCollection + *

Get a backup collection. + * + *

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

+ *
    + *
  • getBackupCollection(GetBackupCollectionRequest request) + *

+ *

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

+ *
    + *
  • getBackupCollection(BackupCollectionName name) + *

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

+ *
    + *
  • getBackupCollectionCallable() + *

+ * + * + * + *

ListBackups + *

Lists all backups owned by a backup collection. + * + *

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

+ *
    + *
  • listBackups(ListBackupsRequest request) + *

+ *

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

+ *
    + *
  • listBackups(BackupCollectionName parent) + *

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

+ *
    + *
  • listBackupsPagedCallable() + *

  • listBackupsCallable() + *

+ * + * + * + *

GetBackup + *

Gets the details of a specific backup. + * + *

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

+ *
    + *
  • getBackup(GetBackupRequest request) + *

+ *

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

+ *
    + *
  • getBackup(BackupName name) + *

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

+ *
    + *
  • getBackupCallable() + *

+ * + * + * + *

DeleteBackup + *

Deletes a specific backup. + * + *

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

+ *
    + *
  • deleteBackupAsync(DeleteBackupRequest request) + *

+ *

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

+ *
    + *
  • deleteBackupAsync(BackupName name) + *

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

+ *
    + *
  • deleteBackupOperationCallable() + *

  • deleteBackupCallable() + *

+ * + * + * + *

ExportBackup + *

Exports a specific backup to a customer target Cloud Storage URI. + * + *

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

+ *
    + *
  • exportBackupAsync(ExportBackupRequest request) + *

+ *

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

+ *
    + *
  • exportBackupOperationCallable() + *

  • exportBackupCallable() + *

+ * + * + * + *

BackupCluster + *

Backup Redis Cluster. If this is the first time a backup is being created, a backup collection will be created at the backend, and this backup belongs to this collection. Both collection and backup will have a resource name. Backup will be executed for each shard. A replica (primary if nonHA) will be selected to perform the execution. Backup call will be rejected if there is an ongoing backup or update operation. Be aware that during preview, if the cluster's internal software version is too old, critical update will be performed before actual backup. Once the internal software version is updated to the minimum version required by the backup feature, subsequent backups will not require critical update. After preview, there will be no critical update needed for backup. + * + *

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

+ *
    + *
  • backupClusterAsync(BackupClusterRequest request) + *

+ *

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

+ *
    + *
  • backupClusterAsync(ClusterName name) + *

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

+ *
    + *
  • backupClusterOperationCallable() + *

  • backupClusterCallable() + *

+ * + * + * *

ListLocations *

Lists information about the supported locations for this service. * @@ -1342,7 +1488,7 @@ public final CertificateAuthority getClusterCertificateAuthority( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Reschedules upcoming maintenance event. * *

Sample code: * @@ -1353,29 +1499,118 @@ public final CertificateAuthority getClusterCertificateAuthority( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * ListLocationsRequest request = - * ListLocationsRequest.newBuilder() - * .setName("name3373707") - * .setFilter("filter-1274492040") - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + * RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType = + * RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0); + * Timestamp scheduleTime = Timestamp.newBuilder().build(); + * Cluster response = + * cloudRedisClusterClient + * .rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime) + * .get(); + * } + * } + * + * @param name Required. Redis Cluster instance resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` + * refers to a GCP region. + * @param rescheduleType Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time + * as well. + * @param scheduleTime Optional. Timestamp when the maintenance shall be rescheduled to if + * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for example `2012-11-15T16:19:00.094Z`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture rescheduleClusterMaintenanceAsync( + ClusterName name, + RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType, + Timestamp scheduleTime) { + RescheduleClusterMaintenanceRequest request = + RescheduleClusterMaintenanceRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setRescheduleType(rescheduleType) + .setScheduleTime(scheduleTime) + .build(); + return rescheduleClusterMaintenanceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Reschedules upcoming maintenance event. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   String name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString();
+   *   RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType =
+   *       RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0);
+   *   Timestamp scheduleTime = Timestamp.newBuilder().build();
+   *   Cluster response =
+   *       cloudRedisClusterClient
+   *           .rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime)
+   *           .get();
+   * }
+   * }
+ * + * @param name Required. Redis Cluster instance resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` + * refers to a GCP region. + * @param rescheduleType Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time + * as well. + * @param scheduleTime Optional. Timestamp when the maintenance shall be rescheduled to if + * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for example `2012-11-15T16:19:00.094Z`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture rescheduleClusterMaintenanceAsync( + String name, + RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType, + Timestamp scheduleTime) { + RescheduleClusterMaintenanceRequest request = + RescheduleClusterMaintenanceRequest.newBuilder() + .setName(name) + .setRescheduleType(rescheduleType) + .setScheduleTime(scheduleTime) + .build(); + return rescheduleClusterMaintenanceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Reschedules upcoming maintenance event. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   RescheduleClusterMaintenanceRequest request =
+   *       RescheduleClusterMaintenanceRequest.newBuilder()
+   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
+   *           .setScheduleTime(Timestamp.newBuilder().build())
    *           .build();
-   *   for (Location element : cloudRedisClusterClient.listLocations(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
+   *   Cluster response = cloudRedisClusterClient.rescheduleClusterMaintenanceAsync(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 ListLocationsPagedResponse listLocations(ListLocationsRequest request) { - return listLocationsPagedCallable().call(request); + public final OperationFuture rescheduleClusterMaintenanceAsync( + RescheduleClusterMaintenanceRequest request) { + return rescheduleClusterMaintenanceOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Reschedules upcoming maintenance event. * *

Sample code: * @@ -1386,30 +1621,28 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * ListLocationsRequest request = - * ListLocationsRequest.newBuilder() - * .setName("name3373707") - * .setFilter("filter-1274492040") - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * RescheduleClusterMaintenanceRequest request = + * RescheduleClusterMaintenanceRequest.newBuilder() + * .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + * .setScheduleTime(Timestamp.newBuilder().build()) * .build(); - * ApiFuture future = - * cloudRedisClusterClient.listLocationsPagedCallable().futureCall(request); + * OperationFuture future = + * cloudRedisClusterClient + * .rescheduleClusterMaintenanceOperationCallable() + * .futureCall(request); * // Do something. - * for (Location element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * Cluster response = future.get(); * } * } */ - public final UnaryCallable - listLocationsPagedCallable() { - return stub.listLocationsPagedCallable(); + public final OperationCallable + rescheduleClusterMaintenanceOperationCallable() { + return stub.rescheduleClusterMaintenanceOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Reschedules upcoming maintenance event. * *

Sample code: * @@ -1420,36 +1653,30 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * ListLocationsRequest request = - * ListLocationsRequest.newBuilder() - * .setName("name3373707") - * .setFilter("filter-1274492040") - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * RescheduleClusterMaintenanceRequest request = + * RescheduleClusterMaintenanceRequest.newBuilder() + * .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + * .setScheduleTime(Timestamp.newBuilder().build()) * .build(); - * while (true) { - * ListLocationsResponse response = - * cloudRedisClusterClient.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; - * } - * } + * ApiFuture future = + * cloudRedisClusterClient.rescheduleClusterMaintenanceCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); * } * } */ - public final UnaryCallable listLocationsCallable() { - return stub.listLocationsCallable(); + public final UnaryCallable + rescheduleClusterMaintenanceCallable() { + return stub.rescheduleClusterMaintenanceCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets information about a location. + * Lists all backup collections owned by a consumer project in either the specified location + * (region) or all locations. + * + *

If `location_id` is specified as `-` (wildcard), then all regions available to the project + * are queried, and the results are aggregated. * *

Sample code: * @@ -1460,21 +1687,33 @@ public final UnaryCallable listLoca * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); - * Location response = cloudRedisClusterClient.getLocation(request); + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * for (BackupCollection element : + * cloudRedisClusterClient.listBackupCollections(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The resource name of the backupCollection location using the form: + * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Location getLocation(GetLocationRequest request) { - return getLocationCallable().call(request); + public final ListBackupCollectionsPagedResponse listBackupCollections(LocationName parent) { + ListBackupCollectionsRequest request = + ListBackupCollectionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listBackupCollections(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets information about a location. + * Lists all backup collections owned by a consumer project in either the specified location + * (region) or all locations. + * + *

If `location_id` is specified as `-` (wildcard), then all regions available to the project + * are queried, and the results are aggregated. * *

Sample code: * @@ -1485,30 +1724,1149 @@ public final Location getLocation(GetLocationRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); - * ApiFuture future = - * cloudRedisClusterClient.getLocationCallable().futureCall(request); - * // Do something. - * Location response = future.get(); + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * for (BackupCollection element : + * cloudRedisClusterClient.listBackupCollections(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } + * + * @param parent Required. The resource name of the backupCollection location using the form: + * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable getLocationCallable() { - return stub.getLocationCallable(); - } - - @Override - public final void close() { - stub.close(); - } - - @Override - public void shutdown() { - stub.shutdown(); + public final ListBackupCollectionsPagedResponse listBackupCollections(String parent) { + ListBackupCollectionsRequest request = + ListBackupCollectionsRequest.newBuilder().setParent(parent).build(); + return listBackupCollections(request); } - @Override - public boolean isShutdown() { + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all backup collections owned by a consumer project in either the specified location + * (region) or all locations. + * + *

If `location_id` is specified as `-` (wildcard), then all regions available to the project + * are queried, and the results are aggregated. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   ListBackupCollectionsRequest request =
+   *       ListBackupCollectionsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (BackupCollection element :
+   *       cloudRedisClusterClient.listBackupCollections(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 ListBackupCollectionsPagedResponse listBackupCollections( + ListBackupCollectionsRequest request) { + return listBackupCollectionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all backup collections owned by a consumer project in either the specified location + * (region) or all locations. + * + *

If `location_id` is specified as `-` (wildcard), then all regions available to the project + * are queried, and the results are aggregated. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   ListBackupCollectionsRequest request =
+   *       ListBackupCollectionsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       cloudRedisClusterClient.listBackupCollectionsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (BackupCollection element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listBackupCollectionsPagedCallable() { + return stub.listBackupCollectionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all backup collections owned by a consumer project in either the specified location + * (region) or all locations. + * + *

If `location_id` is specified as `-` (wildcard), then all regions available to the project + * are queried, and the results are aggregated. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   ListBackupCollectionsRequest request =
+   *       ListBackupCollectionsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListBackupCollectionsResponse response =
+   *         cloudRedisClusterClient.listBackupCollectionsCallable().call(request);
+   *     for (BackupCollection element : response.getBackupCollectionsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listBackupCollectionsCallable() { + return stub.listBackupCollectionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get a backup collection. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   BackupCollectionName name =
+   *       BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]");
+   *   BackupCollection response = cloudRedisClusterClient.getBackupCollection(name);
+   * }
+   * }
+ * + * @param name Required. Redis backupCollection resource name using the form: + * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}` + * where `location_id` refers to a GCP region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BackupCollection getBackupCollection(BackupCollectionName name) { + GetBackupCollectionRequest request = + GetBackupCollectionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getBackupCollection(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get a backup collection. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   String name =
+   *       BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]").toString();
+   *   BackupCollection response = cloudRedisClusterClient.getBackupCollection(name);
+   * }
+   * }
+ * + * @param name Required. Redis backupCollection resource name using the form: + * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}` + * where `location_id` refers to a GCP region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BackupCollection getBackupCollection(String name) { + GetBackupCollectionRequest request = + GetBackupCollectionRequest.newBuilder().setName(name).build(); + return getBackupCollection(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get a backup collection. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   GetBackupCollectionRequest request =
+   *       GetBackupCollectionRequest.newBuilder()
+   *           .setName(
+   *               BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
+   *                   .toString())
+   *           .build();
+   *   BackupCollection response = cloudRedisClusterClient.getBackupCollection(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 BackupCollection getBackupCollection(GetBackupCollectionRequest request) { + return getBackupCollectionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get a backup collection. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   GetBackupCollectionRequest request =
+   *       GetBackupCollectionRequest.newBuilder()
+   *           .setName(
+   *               BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       cloudRedisClusterClient.getBackupCollectionCallable().futureCall(request);
+   *   // Do something.
+   *   BackupCollection response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getBackupCollectionCallable() { + return stub.getBackupCollectionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all backups owned by a backup collection. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   BackupCollectionName parent =
+   *       BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]");
+   *   for (Backup element : cloudRedisClusterClient.listBackups(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the backupCollection using the form: + * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBackupsPagedResponse listBackups(BackupCollectionName parent) { + ListBackupsRequest request = + ListBackupsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listBackups(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all backups owned by a backup collection. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   String parent =
+   *       BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]").toString();
+   *   for (Backup element : cloudRedisClusterClient.listBackups(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the backupCollection using the form: + * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBackupsPagedResponse listBackups(String parent) { + ListBackupsRequest request = ListBackupsRequest.newBuilder().setParent(parent).build(); + return listBackups(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all backups owned by a backup collection. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   ListBackupsRequest request =
+   *       ListBackupsRequest.newBuilder()
+   *           .setParent(
+   *               BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Backup element : cloudRedisClusterClient.listBackups(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 ListBackupsPagedResponse listBackups(ListBackupsRequest request) { + return listBackupsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all backups owned by a backup collection. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   ListBackupsRequest request =
+   *       ListBackupsRequest.newBuilder()
+   *           .setParent(
+   *               BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       cloudRedisClusterClient.listBackupsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Backup element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listBackupsPagedCallable() { + return stub.listBackupsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all backups owned by a backup collection. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   ListBackupsRequest request =
+   *       ListBackupsRequest.newBuilder()
+   *           .setParent(
+   *               BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListBackupsResponse response = cloudRedisClusterClient.listBackupsCallable().call(request);
+   *     for (Backup element : response.getBackupsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listBackupsCallable() { + return stub.listBackupsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]");
+   *   Backup response = cloudRedisClusterClient.getBackup(name);
+   * }
+   * }
+ * + * @param name Required. Redis backup resource name using the form: + * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Backup getBackup(BackupName name) { + GetBackupRequest request = + GetBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getBackup(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   String name =
+   *       BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]").toString();
+   *   Backup response = cloudRedisClusterClient.getBackup(name);
+   * }
+   * }
+ * + * @param name Required. Redis backup resource name using the form: + * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Backup getBackup(String name) { + GetBackupRequest request = GetBackupRequest.newBuilder().setName(name).build(); + return getBackup(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   GetBackupRequest request =
+   *       GetBackupRequest.newBuilder()
+   *           .setName(
+   *               BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
+   *                   .toString())
+   *           .build();
+   *   Backup response = cloudRedisClusterClient.getBackup(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 Backup getBackup(GetBackupRequest request) { + return getBackupCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   GetBackupRequest request =
+   *       GetBackupRequest.newBuilder()
+   *           .setName(
+   *               BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future = cloudRedisClusterClient.getBackupCallable().futureCall(request);
+   *   // Do something.
+   *   Backup response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getBackupCallable() { + return stub.getBackupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]");
+   *   cloudRedisClusterClient.deleteBackupAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. Redis backup resource name using the form: + * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteBackupAsync(BackupName name) { + DeleteBackupRequest request = + DeleteBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteBackupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   String name =
+   *       BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]").toString();
+   *   cloudRedisClusterClient.deleteBackupAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. Redis backup resource name using the form: + * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteBackupAsync(String name) { + DeleteBackupRequest request = DeleteBackupRequest.newBuilder().setName(name).build(); + return deleteBackupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   DeleteBackupRequest request =
+   *       DeleteBackupRequest.newBuilder()
+   *           .setName(
+   *               BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   cloudRedisClusterClient.deleteBackupAsync(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 deleteBackupAsync(DeleteBackupRequest request) { + return deleteBackupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   DeleteBackupRequest request =
+   *       DeleteBackupRequest.newBuilder()
+   *           .setName(
+   *               BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       cloudRedisClusterClient.deleteBackupOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable deleteBackupOperationCallable() { + return stub.deleteBackupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   DeleteBackupRequest request =
+   *       DeleteBackupRequest.newBuilder()
+   *           .setName(
+   *               BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       cloudRedisClusterClient.deleteBackupCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteBackupCallable() { + return stub.deleteBackupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports a specific backup to a customer target Cloud Storage URI. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   ExportBackupRequest request =
+   *       ExportBackupRequest.newBuilder()
+   *           .setName(
+   *               BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
+   *                   .toString())
+   *           .build();
+   *   Backup response = cloudRedisClusterClient.exportBackupAsync(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 exportBackupAsync(ExportBackupRequest request) { + return exportBackupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports a specific backup to a customer target Cloud Storage URI. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   ExportBackupRequest request =
+   *       ExportBackupRequest.newBuilder()
+   *           .setName(
+   *               BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
+   *                   .toString())
+   *           .build();
+   *   OperationFuture future =
+   *       cloudRedisClusterClient.exportBackupOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Backup response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable exportBackupOperationCallable() { + return stub.exportBackupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports a specific backup to a customer target Cloud Storage URI. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   ExportBackupRequest request =
+   *       ExportBackupRequest.newBuilder()
+   *           .setName(
+   *               BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       cloudRedisClusterClient.exportBackupCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable exportBackupCallable() { + return stub.exportBackupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Backup Redis Cluster. If this is the first time a backup is being created, a backup collection + * will be created at the backend, and this backup belongs to this collection. Both collection and + * backup will have a resource name. Backup will be executed for each shard. A replica (primary if + * nonHA) will be selected to perform the execution. Backup call will be rejected if there is an + * ongoing backup or update operation. Be aware that during preview, if the cluster's internal + * software version is too old, critical update will be performed before actual backup. Once the + * internal software version is updated to the minimum version required by the backup feature, + * subsequent backups will not require critical update. After preview, there will be no critical + * update needed for backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]");
+   *   Cluster response = cloudRedisClusterClient.backupClusterAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. Redis cluster resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` + * refers to a GCP region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture backupClusterAsync(ClusterName name) { + BackupClusterRequest request = + BackupClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return backupClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Backup Redis Cluster. If this is the first time a backup is being created, a backup collection + * will be created at the backend, and this backup belongs to this collection. Both collection and + * backup will have a resource name. Backup will be executed for each shard. A replica (primary if + * nonHA) will be selected to perform the execution. Backup call will be rejected if there is an + * ongoing backup or update operation. Be aware that during preview, if the cluster's internal + * software version is too old, critical update will be performed before actual backup. Once the + * internal software version is updated to the minimum version required by the backup feature, + * subsequent backups will not require critical update. After preview, there will be no critical + * update needed for backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   String name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString();
+   *   Cluster response = cloudRedisClusterClient.backupClusterAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. Redis cluster resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` + * refers to a GCP region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture backupClusterAsync(String name) { + BackupClusterRequest request = BackupClusterRequest.newBuilder().setName(name).build(); + return backupClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Backup Redis Cluster. If this is the first time a backup is being created, a backup collection + * will be created at the backend, and this backup belongs to this collection. Both collection and + * backup will have a resource name. Backup will be executed for each shard. A replica (primary if + * nonHA) will be selected to perform the execution. Backup call will be rejected if there is an + * ongoing backup or update operation. Be aware that during preview, if the cluster's internal + * software version is too old, critical update will be performed before actual backup. Once the + * internal software version is updated to the minimum version required by the backup feature, + * subsequent backups will not require critical update. After preview, there will be no critical + * update needed for backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   BackupClusterRequest request =
+   *       BackupClusterRequest.newBuilder()
+   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
+   *           .setTtl(Duration.newBuilder().build())
+   *           .setBackupId("backupId2121930365")
+   *           .build();
+   *   Cluster response = cloudRedisClusterClient.backupClusterAsync(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 backupClusterAsync(BackupClusterRequest request) { + return backupClusterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Backup Redis Cluster. If this is the first time a backup is being created, a backup collection + * will be created at the backend, and this backup belongs to this collection. Both collection and + * backup will have a resource name. Backup will be executed for each shard. A replica (primary if + * nonHA) will be selected to perform the execution. Backup call will be rejected if there is an + * ongoing backup or update operation. Be aware that during preview, if the cluster's internal + * software version is too old, critical update will be performed before actual backup. Once the + * internal software version is updated to the minimum version required by the backup feature, + * subsequent backups will not require critical update. After preview, there will be no critical + * update needed for backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   BackupClusterRequest request =
+   *       BackupClusterRequest.newBuilder()
+   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
+   *           .setTtl(Duration.newBuilder().build())
+   *           .setBackupId("backupId2121930365")
+   *           .build();
+   *   OperationFuture future =
+   *       cloudRedisClusterClient.backupClusterOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Cluster response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + backupClusterOperationCallable() { + return stub.backupClusterOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Backup Redis Cluster. If this is the first time a backup is being created, a backup collection + * will be created at the backend, and this backup belongs to this collection. Both collection and + * backup will have a resource name. Backup will be executed for each shard. A replica (primary if + * nonHA) will be selected to perform the execution. Backup call will be rejected if there is an + * ongoing backup or update operation. Be aware that during preview, if the cluster's internal + * software version is too old, critical update will be performed before actual backup. Once the + * internal software version is updated to the minimum version required by the backup feature, + * subsequent backups will not require critical update. After preview, there will be no critical + * update needed for backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   BackupClusterRequest request =
+   *       BackupClusterRequest.newBuilder()
+   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
+   *           .setTtl(Duration.newBuilder().build())
+   *           .setBackupId("backupId2121930365")
+   *           .build();
+   *   ApiFuture future =
+   *       cloudRedisClusterClient.backupClusterCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable backupClusterCallable() { + return stub.backupClusterCallable(); + } + + // 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : cloudRedisClusterClient.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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       cloudRedisClusterClient.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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         cloudRedisClusterClient.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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = cloudRedisClusterClient.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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future =
+   *       cloudRedisClusterClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { return stub.isShutdown(); } @@ -1602,6 +2960,163 @@ protected ListClustersFixedSizeCollection createCollection( } } + public static class ListBackupCollectionsPagedResponse + extends AbstractPagedListResponse< + ListBackupCollectionsRequest, + ListBackupCollectionsResponse, + BackupCollection, + ListBackupCollectionsPage, + ListBackupCollectionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListBackupCollectionsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListBackupCollectionsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListBackupCollectionsPagedResponse(ListBackupCollectionsPage page) { + super(page, ListBackupCollectionsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListBackupCollectionsPage + extends AbstractPage< + ListBackupCollectionsRequest, + ListBackupCollectionsResponse, + BackupCollection, + ListBackupCollectionsPage> { + + private ListBackupCollectionsPage( + PageContext + context, + ListBackupCollectionsResponse response) { + super(context, response); + } + + private static ListBackupCollectionsPage createEmptyPage() { + return new ListBackupCollectionsPage(null, null); + } + + @Override + protected ListBackupCollectionsPage createPage( + PageContext + context, + ListBackupCollectionsResponse response) { + return new ListBackupCollectionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListBackupCollectionsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListBackupCollectionsRequest, + ListBackupCollectionsResponse, + BackupCollection, + ListBackupCollectionsPage, + ListBackupCollectionsFixedSizeCollection> { + + private ListBackupCollectionsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListBackupCollectionsFixedSizeCollection createEmptyCollection() { + return new ListBackupCollectionsFixedSizeCollection(null, 0); + } + + @Override + protected ListBackupCollectionsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListBackupCollectionsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListBackupsPagedResponse + extends AbstractPagedListResponse< + ListBackupsRequest, + ListBackupsResponse, + Backup, + ListBackupsPage, + ListBackupsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListBackupsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListBackupsPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListBackupsPagedResponse(ListBackupsPage page) { + super(page, ListBackupsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListBackupsPage + extends AbstractPage { + + private ListBackupsPage( + PageContext context, + ListBackupsResponse response) { + super(context, response); + } + + private static ListBackupsPage createEmptyPage() { + return new ListBackupsPage(null, null); + } + + @Override + protected ListBackupsPage createPage( + PageContext context, + ListBackupsResponse response) { + return new ListBackupsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListBackupsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListBackupsRequest, + ListBackupsResponse, + Backup, + ListBackupsPage, + ListBackupsFixedSizeCollection> { + + private ListBackupsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListBackupsFixedSizeCollection createEmptyCollection() { + return new ListBackupsFixedSizeCollection(null, 0); + } + + @Override + protected ListBackupsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListBackupsFixedSizeCollection(pages, collectionSize); + } + } + public static class ListLocationsPagedResponse extends AbstractPagedListResponse< ListLocationsRequest, diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterSettings.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterSettings.java index 7a258634f622..0839828d3bdb 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterSettings.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterSettings.java @@ -16,6 +16,8 @@ package com.google.cloud.redis.cluster.v1; +import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListBackupCollectionsPagedResponse; +import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListBackupsPagedResponse; import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListClustersPagedResponse; import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListLocationsPagedResponse; @@ -173,6 +175,77 @@ public UnaryCallSettings createClusterSettings( .getClusterCertificateAuthoritySettings(); } + /** Returns the object with the settings used for calls to rescheduleClusterMaintenance. */ + public UnaryCallSettings + rescheduleClusterMaintenanceSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()) + .rescheduleClusterMaintenanceSettings(); + } + + /** Returns the object with the settings used for calls to rescheduleClusterMaintenance. */ + public OperationCallSettings + rescheduleClusterMaintenanceOperationSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()) + .rescheduleClusterMaintenanceOperationSettings(); + } + + /** Returns the object with the settings used for calls to listBackupCollections. */ + public PagedCallSettings< + ListBackupCollectionsRequest, + ListBackupCollectionsResponse, + ListBackupCollectionsPagedResponse> + listBackupCollectionsSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).listBackupCollectionsSettings(); + } + + /** Returns the object with the settings used for calls to getBackupCollection. */ + public UnaryCallSettings + getBackupCollectionSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).getBackupCollectionSettings(); + } + + /** Returns the object with the settings used for calls to listBackups. */ + public PagedCallSettings + listBackupsSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).listBackupsSettings(); + } + + /** Returns the object with the settings used for calls to getBackup. */ + public UnaryCallSettings getBackupSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).getBackupSettings(); + } + + /** Returns the object with the settings used for calls to deleteBackup. */ + public UnaryCallSettings deleteBackupSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).deleteBackupSettings(); + } + + /** Returns the object with the settings used for calls to deleteBackup. */ + public OperationCallSettings deleteBackupOperationSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).deleteBackupOperationSettings(); + } + + /** Returns the object with the settings used for calls to exportBackup. */ + public UnaryCallSettings exportBackupSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).exportBackupSettings(); + } + + /** Returns the object with the settings used for calls to exportBackup. */ + public OperationCallSettings exportBackupOperationSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).exportBackupOperationSettings(); + } + + /** Returns the object with the settings used for calls to backupCluster. */ + public UnaryCallSettings backupClusterSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).backupClusterSettings(); + } + + /** Returns the object with the settings used for calls to backupCluster. */ + public OperationCallSettings + backupClusterOperationSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).backupClusterOperationSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -347,6 +420,78 @@ public UnaryCallSettings.Builder createClusterS return getStubSettingsBuilder().getClusterCertificateAuthoritySettings(); } + /** Returns the builder for the settings used for calls to rescheduleClusterMaintenance. */ + public UnaryCallSettings.Builder + rescheduleClusterMaintenanceSettings() { + return getStubSettingsBuilder().rescheduleClusterMaintenanceSettings(); + } + + /** Returns the builder for the settings used for calls to rescheduleClusterMaintenance. */ + public OperationCallSettings.Builder + rescheduleClusterMaintenanceOperationSettings() { + return getStubSettingsBuilder().rescheduleClusterMaintenanceOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listBackupCollections. */ + public PagedCallSettings.Builder< + ListBackupCollectionsRequest, + ListBackupCollectionsResponse, + ListBackupCollectionsPagedResponse> + listBackupCollectionsSettings() { + return getStubSettingsBuilder().listBackupCollectionsSettings(); + } + + /** Returns the builder for the settings used for calls to getBackupCollection. */ + public UnaryCallSettings.Builder + getBackupCollectionSettings() { + return getStubSettingsBuilder().getBackupCollectionSettings(); + } + + /** Returns the builder for the settings used for calls to listBackups. */ + public PagedCallSettings.Builder< + ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse> + listBackupsSettings() { + return getStubSettingsBuilder().listBackupsSettings(); + } + + /** Returns the builder for the settings used for calls to getBackup. */ + public UnaryCallSettings.Builder getBackupSettings() { + return getStubSettingsBuilder().getBackupSettings(); + } + + /** Returns the builder for the settings used for calls to deleteBackup. */ + public UnaryCallSettings.Builder deleteBackupSettings() { + return getStubSettingsBuilder().deleteBackupSettings(); + } + + /** Returns the builder for the settings used for calls to deleteBackup. */ + public OperationCallSettings.Builder + deleteBackupOperationSettings() { + return getStubSettingsBuilder().deleteBackupOperationSettings(); + } + + /** Returns the builder for the settings used for calls to exportBackup. */ + public UnaryCallSettings.Builder exportBackupSettings() { + return getStubSettingsBuilder().exportBackupSettings(); + } + + /** Returns the builder for the settings used for calls to exportBackup. */ + public OperationCallSettings.Builder + exportBackupOperationSettings() { + return getStubSettingsBuilder().exportBackupOperationSettings(); + } + + /** Returns the builder for the settings used for calls to backupCluster. */ + public UnaryCallSettings.Builder backupClusterSettings() { + return getStubSettingsBuilder().backupClusterSettings(); + } + + /** Returns the builder for the settings used for calls to backupCluster. */ + public OperationCallSettings.Builder + backupClusterOperationSettings() { + return getStubSettingsBuilder().backupClusterOperationSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/gapic_metadata.json b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/gapic_metadata.json index 1655578413e0..bb254857efda 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/gapic_metadata.json +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/gapic_metadata.json @@ -10,12 +10,27 @@ "grpc": { "libraryClient": "CloudRedisClusterClient", "rpcs": { + "BackupCluster": { + "methods": ["backupClusterAsync", "backupClusterAsync", "backupClusterAsync", "backupClusterOperationCallable", "backupClusterCallable"] + }, "CreateCluster": { "methods": ["createClusterAsync", "createClusterAsync", "createClusterAsync", "createClusterOperationCallable", "createClusterCallable"] }, + "DeleteBackup": { + "methods": ["deleteBackupAsync", "deleteBackupAsync", "deleteBackupAsync", "deleteBackupOperationCallable", "deleteBackupCallable"] + }, "DeleteCluster": { "methods": ["deleteClusterAsync", "deleteClusterAsync", "deleteClusterAsync", "deleteClusterOperationCallable", "deleteClusterCallable"] }, + "ExportBackup": { + "methods": ["exportBackupAsync", "exportBackupOperationCallable", "exportBackupCallable"] + }, + "GetBackup": { + "methods": ["getBackup", "getBackup", "getBackup", "getBackupCallable"] + }, + "GetBackupCollection": { + "methods": ["getBackupCollection", "getBackupCollection", "getBackupCollection", "getBackupCollectionCallable"] + }, "GetCluster": { "methods": ["getCluster", "getCluster", "getCluster", "getClusterCallable"] }, @@ -25,12 +40,21 @@ "GetLocation": { "methods": ["getLocation", "getLocationCallable"] }, + "ListBackupCollections": { + "methods": ["listBackupCollections", "listBackupCollections", "listBackupCollections", "listBackupCollectionsPagedCallable", "listBackupCollectionsCallable"] + }, + "ListBackups": { + "methods": ["listBackups", "listBackups", "listBackups", "listBackupsPagedCallable", "listBackupsCallable"] + }, "ListClusters": { "methods": ["listClusters", "listClusters", "listClusters", "listClustersPagedCallable", "listClustersCallable"] }, "ListLocations": { "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] }, + "RescheduleClusterMaintenance": { + "methods": ["rescheduleClusterMaintenanceAsync", "rescheduleClusterMaintenanceAsync", "rescheduleClusterMaintenanceAsync", "rescheduleClusterMaintenanceOperationCallable", "rescheduleClusterMaintenanceCallable"] + }, "UpdateCluster": { "methods": ["updateClusterAsync", "updateClusterAsync", "updateClusterOperationCallable", "updateClusterCallable"] } diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/package-info.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/package-info.java index a3425d7ee496..35bb56f86deb 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/package-info.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/package-info.java @@ -42,15 +42,6 @@ *
  • `projects/redpepper-1290/locations/us-central1/clusters/my-redis` * * - *

    We use API version selector for Flex APIs - * - *

      - *
    • The versioning strategy is release-based versioning - *
    • Our backend CLH only deals with the superset version (called v1main) - *
    • Existing backend for Redis Gen1 and MRR is not touched. - *
    • More details in go/redis-flex-api-versioning - *
    - * *

    Sample for CloudRedisClusterClient: * *

    {@code
    diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/CloudRedisClusterStub.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/CloudRedisClusterStub.java
    index 422f9833f5d4..1846f9224723 100644
    --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/CloudRedisClusterStub.java
    +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/CloudRedisClusterStub.java
    @@ -16,6 +16,8 @@
     
     package com.google.cloud.redis.cluster.v1.stub;
     
    +import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListBackupCollectionsPagedResponse;
    +import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListBackupsPagedResponse;
     import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListClustersPagedResponse;
     import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListLocationsPagedResponse;
     
    @@ -26,14 +28,26 @@
     import com.google.cloud.location.ListLocationsRequest;
     import com.google.cloud.location.ListLocationsResponse;
     import com.google.cloud.location.Location;
    +import com.google.cloud.redis.cluster.v1.Backup;
    +import com.google.cloud.redis.cluster.v1.BackupClusterRequest;
    +import com.google.cloud.redis.cluster.v1.BackupCollection;
     import com.google.cloud.redis.cluster.v1.CertificateAuthority;
     import com.google.cloud.redis.cluster.v1.Cluster;
     import com.google.cloud.redis.cluster.v1.CreateClusterRequest;
    +import com.google.cloud.redis.cluster.v1.DeleteBackupRequest;
     import com.google.cloud.redis.cluster.v1.DeleteClusterRequest;
    +import com.google.cloud.redis.cluster.v1.ExportBackupRequest;
    +import com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest;
    +import com.google.cloud.redis.cluster.v1.GetBackupRequest;
     import com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest;
     import com.google.cloud.redis.cluster.v1.GetClusterRequest;
    +import com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest;
    +import com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse;
    +import com.google.cloud.redis.cluster.v1.ListBackupsRequest;
    +import com.google.cloud.redis.cluster.v1.ListBackupsResponse;
     import com.google.cloud.redis.cluster.v1.ListClustersRequest;
     import com.google.cloud.redis.cluster.v1.ListClustersResponse;
    +import com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest;
     import com.google.cloud.redis.cluster.v1.UpdateClusterRequest;
     import com.google.longrunning.Operation;
     import com.google.longrunning.stub.OperationsStub;
    @@ -100,6 +114,69 @@ public UnaryCallable createClusterCallable() {
             "Not implemented: getClusterCertificateAuthorityCallable()");
       }
     
    +  public OperationCallable
    +      rescheduleClusterMaintenanceOperationCallable() {
    +    throw new UnsupportedOperationException(
    +        "Not implemented: rescheduleClusterMaintenanceOperationCallable()");
    +  }
    +
    +  public UnaryCallable
    +      rescheduleClusterMaintenanceCallable() {
    +    throw new UnsupportedOperationException(
    +        "Not implemented: rescheduleClusterMaintenanceCallable()");
    +  }
    +
    +  public UnaryCallable
    +      listBackupCollectionsPagedCallable() {
    +    throw new UnsupportedOperationException(
    +        "Not implemented: listBackupCollectionsPagedCallable()");
    +  }
    +
    +  public UnaryCallable
    +      listBackupCollectionsCallable() {
    +    throw new UnsupportedOperationException("Not implemented: listBackupCollectionsCallable()");
    +  }
    +
    +  public UnaryCallable getBackupCollectionCallable() {
    +    throw new UnsupportedOperationException("Not implemented: getBackupCollectionCallable()");
    +  }
    +
    +  public UnaryCallable listBackupsPagedCallable() {
    +    throw new UnsupportedOperationException("Not implemented: listBackupsPagedCallable()");
    +  }
    +
    +  public UnaryCallable listBackupsCallable() {
    +    throw new UnsupportedOperationException("Not implemented: listBackupsCallable()");
    +  }
    +
    +  public UnaryCallable getBackupCallable() {
    +    throw new UnsupportedOperationException("Not implemented: getBackupCallable()");
    +  }
    +
    +  public OperationCallable deleteBackupOperationCallable() {
    +    throw new UnsupportedOperationException("Not implemented: deleteBackupOperationCallable()");
    +  }
    +
    +  public UnaryCallable deleteBackupCallable() {
    +    throw new UnsupportedOperationException("Not implemented: deleteBackupCallable()");
    +  }
    +
    +  public OperationCallable exportBackupOperationCallable() {
    +    throw new UnsupportedOperationException("Not implemented: exportBackupOperationCallable()");
    +  }
    +
    +  public UnaryCallable exportBackupCallable() {
    +    throw new UnsupportedOperationException("Not implemented: exportBackupCallable()");
    +  }
    +
    +  public OperationCallable backupClusterOperationCallable() {
    +    throw new UnsupportedOperationException("Not implemented: backupClusterOperationCallable()");
    +  }
    +
    +  public UnaryCallable backupClusterCallable() {
    +    throw new UnsupportedOperationException("Not implemented: backupClusterCallable()");
    +  }
    +
       public UnaryCallable
           listLocationsPagedCallable() {
         throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
    diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/CloudRedisClusterStubSettings.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/CloudRedisClusterStubSettings.java
    index e94558697bf4..b82ed059ae70 100644
    --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/CloudRedisClusterStubSettings.java
    +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/CloudRedisClusterStubSettings.java
    @@ -16,6 +16,8 @@
     
     package com.google.cloud.redis.cluster.v1.stub;
     
    +import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListBackupCollectionsPagedResponse;
    +import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListBackupsPagedResponse;
     import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListClustersPagedResponse;
     import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListLocationsPagedResponse;
     
    @@ -53,14 +55,26 @@
     import com.google.cloud.location.ListLocationsRequest;
     import com.google.cloud.location.ListLocationsResponse;
     import com.google.cloud.location.Location;
    +import com.google.cloud.redis.cluster.v1.Backup;
    +import com.google.cloud.redis.cluster.v1.BackupClusterRequest;
    +import com.google.cloud.redis.cluster.v1.BackupCollection;
     import com.google.cloud.redis.cluster.v1.CertificateAuthority;
     import com.google.cloud.redis.cluster.v1.Cluster;
     import com.google.cloud.redis.cluster.v1.CreateClusterRequest;
    +import com.google.cloud.redis.cluster.v1.DeleteBackupRequest;
     import com.google.cloud.redis.cluster.v1.DeleteClusterRequest;
    +import com.google.cloud.redis.cluster.v1.ExportBackupRequest;
    +import com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest;
    +import com.google.cloud.redis.cluster.v1.GetBackupRequest;
     import com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest;
     import com.google.cloud.redis.cluster.v1.GetClusterRequest;
    +import com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest;
    +import com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse;
    +import com.google.cloud.redis.cluster.v1.ListBackupsRequest;
    +import com.google.cloud.redis.cluster.v1.ListBackupsResponse;
     import com.google.cloud.redis.cluster.v1.ListClustersRequest;
     import com.google.cloud.redis.cluster.v1.ListClustersResponse;
    +import com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest;
     import com.google.cloud.redis.cluster.v1.UpdateClusterRequest;
     import com.google.common.collect.ImmutableList;
     import com.google.common.collect.ImmutableMap;
    @@ -172,6 +186,29 @@ public class CloudRedisClusterStubSettings extends StubSettings
           getClusterCertificateAuthoritySettings;
    +  private final UnaryCallSettings
    +      rescheduleClusterMaintenanceSettings;
    +  private final OperationCallSettings
    +      rescheduleClusterMaintenanceOperationSettings;
    +  private final PagedCallSettings<
    +          ListBackupCollectionsRequest,
    +          ListBackupCollectionsResponse,
    +          ListBackupCollectionsPagedResponse>
    +      listBackupCollectionsSettings;
    +  private final UnaryCallSettings
    +      getBackupCollectionSettings;
    +  private final PagedCallSettings
    +      listBackupsSettings;
    +  private final UnaryCallSettings getBackupSettings;
    +  private final UnaryCallSettings deleteBackupSettings;
    +  private final OperationCallSettings
    +      deleteBackupOperationSettings;
    +  private final UnaryCallSettings exportBackupSettings;
    +  private final OperationCallSettings
    +      exportBackupOperationSettings;
    +  private final UnaryCallSettings backupClusterSettings;
    +  private final OperationCallSettings
    +      backupClusterOperationSettings;
       private final PagedCallSettings<
               ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
           listLocationsSettings;
    @@ -211,6 +248,79 @@ public Iterable extractResources(ListClustersResponse payload) {
                 }
               };
     
    +  private static final PagedListDescriptor<
    +          ListBackupCollectionsRequest, ListBackupCollectionsResponse, BackupCollection>
    +      LIST_BACKUP_COLLECTIONS_PAGE_STR_DESC =
    +          new PagedListDescriptor<
    +              ListBackupCollectionsRequest, ListBackupCollectionsResponse, BackupCollection>() {
    +            @Override
    +            public String emptyToken() {
    +              return "";
    +            }
    +
    +            @Override
    +            public ListBackupCollectionsRequest injectToken(
    +                ListBackupCollectionsRequest payload, String token) {
    +              return ListBackupCollectionsRequest.newBuilder(payload).setPageToken(token).build();
    +            }
    +
    +            @Override
    +            public ListBackupCollectionsRequest injectPageSize(
    +                ListBackupCollectionsRequest payload, int pageSize) {
    +              return ListBackupCollectionsRequest.newBuilder(payload).setPageSize(pageSize).build();
    +            }
    +
    +            @Override
    +            public Integer extractPageSize(ListBackupCollectionsRequest payload) {
    +              return payload.getPageSize();
    +            }
    +
    +            @Override
    +            public String extractNextToken(ListBackupCollectionsResponse payload) {
    +              return payload.getNextPageToken();
    +            }
    +
    +            @Override
    +            public Iterable extractResources(
    +                ListBackupCollectionsResponse payload) {
    +              return payload.getBackupCollectionsList();
    +            }
    +          };
    +
    +  private static final PagedListDescriptor
    +      LIST_BACKUPS_PAGE_STR_DESC =
    +          new PagedListDescriptor() {
    +            @Override
    +            public String emptyToken() {
    +              return "";
    +            }
    +
    +            @Override
    +            public ListBackupsRequest injectToken(ListBackupsRequest payload, String token) {
    +              return ListBackupsRequest.newBuilder(payload).setPageToken(token).build();
    +            }
    +
    +            @Override
    +            public ListBackupsRequest injectPageSize(ListBackupsRequest payload, int pageSize) {
    +              return ListBackupsRequest.newBuilder(payload).setPageSize(pageSize).build();
    +            }
    +
    +            @Override
    +            public Integer extractPageSize(ListBackupsRequest payload) {
    +              return payload.getPageSize();
    +            }
    +
    +            @Override
    +            public String extractNextToken(ListBackupsResponse payload) {
    +              return payload.getNextPageToken();
    +            }
    +
    +            @Override
    +            public Iterable extractResources(ListBackupsResponse payload) {
    +              return payload.getBackupsList();
    +            }
    +          };
    +
       private static final PagedListDescriptor
           LIST_LOCATIONS_PAGE_STR_DESC =
               new PagedListDescriptor() {
    @@ -262,6 +372,47 @@ public ApiFuture getFuturePagedResponse(
                 }
               };
     
    +  private static final PagedListResponseFactory<
    +          ListBackupCollectionsRequest,
    +          ListBackupCollectionsResponse,
    +          ListBackupCollectionsPagedResponse>
    +      LIST_BACKUP_COLLECTIONS_PAGE_STR_FACT =
    +          new PagedListResponseFactory<
    +              ListBackupCollectionsRequest,
    +              ListBackupCollectionsResponse,
    +              ListBackupCollectionsPagedResponse>() {
    +            @Override
    +            public ApiFuture getFuturePagedResponse(
    +                UnaryCallable callable,
    +                ListBackupCollectionsRequest request,
    +                ApiCallContext context,
    +                ApiFuture futureResponse) {
    +              PageContext<
    +                      ListBackupCollectionsRequest, ListBackupCollectionsResponse, BackupCollection>
    +                  pageContext =
    +                      PageContext.create(
    +                          callable, LIST_BACKUP_COLLECTIONS_PAGE_STR_DESC, request, context);
    +              return ListBackupCollectionsPagedResponse.createAsync(pageContext, futureResponse);
    +            }
    +          };
    +
    +  private static final PagedListResponseFactory<
    +          ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse>
    +      LIST_BACKUPS_PAGE_STR_FACT =
    +          new PagedListResponseFactory<
    +              ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse>() {
    +            @Override
    +            public ApiFuture getFuturePagedResponse(
    +                UnaryCallable callable,
    +                ListBackupsRequest request,
    +                ApiCallContext context,
    +                ApiFuture futureResponse) {
    +              PageContext pageContext =
    +                  PageContext.create(callable, LIST_BACKUPS_PAGE_STR_DESC, request, context);
    +              return ListBackupsPagedResponse.createAsync(pageContext, futureResponse);
    +            }
    +          };
    +
       private static final PagedListResponseFactory<
               ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
           LIST_LOCATIONS_PAGE_STR_FACT =
    @@ -328,6 +479,75 @@ public UnaryCallSettings createClusterSettings(
         return getClusterCertificateAuthoritySettings;
       }
     
    +  /** Returns the object with the settings used for calls to rescheduleClusterMaintenance. */
    +  public UnaryCallSettings
    +      rescheduleClusterMaintenanceSettings() {
    +    return rescheduleClusterMaintenanceSettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to rescheduleClusterMaintenance. */
    +  public OperationCallSettings
    +      rescheduleClusterMaintenanceOperationSettings() {
    +    return rescheduleClusterMaintenanceOperationSettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to listBackupCollections. */
    +  public PagedCallSettings<
    +          ListBackupCollectionsRequest,
    +          ListBackupCollectionsResponse,
    +          ListBackupCollectionsPagedResponse>
    +      listBackupCollectionsSettings() {
    +    return listBackupCollectionsSettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to getBackupCollection. */
    +  public UnaryCallSettings
    +      getBackupCollectionSettings() {
    +    return getBackupCollectionSettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to listBackups. */
    +  public PagedCallSettings
    +      listBackupsSettings() {
    +    return listBackupsSettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to getBackup. */
    +  public UnaryCallSettings getBackupSettings() {
    +    return getBackupSettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to deleteBackup. */
    +  public UnaryCallSettings deleteBackupSettings() {
    +    return deleteBackupSettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to deleteBackup. */
    +  public OperationCallSettings deleteBackupOperationSettings() {
    +    return deleteBackupOperationSettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to exportBackup. */
    +  public UnaryCallSettings exportBackupSettings() {
    +    return exportBackupSettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to exportBackup. */
    +  public OperationCallSettings exportBackupOperationSettings() {
    +    return exportBackupOperationSettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to backupCluster. */
    +  public UnaryCallSettings backupClusterSettings() {
    +    return backupClusterSettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to backupCluster. */
    +  public OperationCallSettings
    +      backupClusterOperationSettings() {
    +    return backupClusterOperationSettings;
    +  }
    +
       /** Returns the object with the settings used for calls to listLocations. */
       public PagedCallSettings
           listLocationsSettings() {
    @@ -460,6 +680,20 @@ protected CloudRedisClusterStubSettings(Builder settingsBuilder) throws IOExcept
         createClusterOperationSettings = settingsBuilder.createClusterOperationSettings().build();
         getClusterCertificateAuthoritySettings =
             settingsBuilder.getClusterCertificateAuthoritySettings().build();
    +    rescheduleClusterMaintenanceSettings =
    +        settingsBuilder.rescheduleClusterMaintenanceSettings().build();
    +    rescheduleClusterMaintenanceOperationSettings =
    +        settingsBuilder.rescheduleClusterMaintenanceOperationSettings().build();
    +    listBackupCollectionsSettings = settingsBuilder.listBackupCollectionsSettings().build();
    +    getBackupCollectionSettings = settingsBuilder.getBackupCollectionSettings().build();
    +    listBackupsSettings = settingsBuilder.listBackupsSettings().build();
    +    getBackupSettings = settingsBuilder.getBackupSettings().build();
    +    deleteBackupSettings = settingsBuilder.deleteBackupSettings().build();
    +    deleteBackupOperationSettings = settingsBuilder.deleteBackupOperationSettings().build();
    +    exportBackupSettings = settingsBuilder.exportBackupSettings().build();
    +    exportBackupOperationSettings = settingsBuilder.exportBackupOperationSettings().build();
    +    backupClusterSettings = settingsBuilder.backupClusterSettings().build();
    +    backupClusterOperationSettings = settingsBuilder.backupClusterOperationSettings().build();
         listLocationsSettings = settingsBuilder.listLocationsSettings().build();
         getLocationSettings = settingsBuilder.getLocationSettings().build();
       }
    @@ -483,6 +717,30 @@ public static class Builder extends StubSettings.Builder
             getClusterCertificateAuthoritySettings;
    +    private final UnaryCallSettings.Builder
    +        rescheduleClusterMaintenanceSettings;
    +    private final OperationCallSettings.Builder
    +        rescheduleClusterMaintenanceOperationSettings;
    +    private final PagedCallSettings.Builder<
    +            ListBackupCollectionsRequest,
    +            ListBackupCollectionsResponse,
    +            ListBackupCollectionsPagedResponse>
    +        listBackupCollectionsSettings;
    +    private final UnaryCallSettings.Builder
    +        getBackupCollectionSettings;
    +    private final PagedCallSettings.Builder<
    +            ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse>
    +        listBackupsSettings;
    +    private final UnaryCallSettings.Builder getBackupSettings;
    +    private final UnaryCallSettings.Builder deleteBackupSettings;
    +    private final OperationCallSettings.Builder
    +        deleteBackupOperationSettings;
    +    private final UnaryCallSettings.Builder exportBackupSettings;
    +    private final OperationCallSettings.Builder
    +        exportBackupOperationSettings;
    +    private final UnaryCallSettings.Builder backupClusterSettings;
    +    private final OperationCallSettings.Builder
    +        backupClusterOperationSettings;
         private final PagedCallSettings.Builder<
                 ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
             listLocationsSettings;
    @@ -533,6 +791,19 @@ protected Builder(ClientContext clientContext) {
           createClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
           createClusterOperationSettings = OperationCallSettings.newBuilder();
           getClusterCertificateAuthoritySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
    +      rescheduleClusterMaintenanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
    +      rescheduleClusterMaintenanceOperationSettings = OperationCallSettings.newBuilder();
    +      listBackupCollectionsSettings =
    +          PagedCallSettings.newBuilder(LIST_BACKUP_COLLECTIONS_PAGE_STR_FACT);
    +      getBackupCollectionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
    +      listBackupsSettings = PagedCallSettings.newBuilder(LIST_BACKUPS_PAGE_STR_FACT);
    +      getBackupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
    +      deleteBackupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
    +      deleteBackupOperationSettings = OperationCallSettings.newBuilder();
    +      exportBackupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
    +      exportBackupOperationSettings = OperationCallSettings.newBuilder();
    +      backupClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
    +      backupClusterOperationSettings = OperationCallSettings.newBuilder();
           listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
           getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
     
    @@ -544,6 +815,14 @@ protected Builder(ClientContext clientContext) {
                   deleteClusterSettings,
                   createClusterSettings,
                   getClusterCertificateAuthoritySettings,
    +              rescheduleClusterMaintenanceSettings,
    +              listBackupCollectionsSettings,
    +              getBackupCollectionSettings,
    +              listBackupsSettings,
    +              getBackupSettings,
    +              deleteBackupSettings,
    +              exportBackupSettings,
    +              backupClusterSettings,
                   listLocationsSettings,
                   getLocationSettings);
           initDefaults(this);
    @@ -562,6 +841,20 @@ protected Builder(CloudRedisClusterStubSettings settings) {
           createClusterOperationSettings = settings.createClusterOperationSettings.toBuilder();
           getClusterCertificateAuthoritySettings =
               settings.getClusterCertificateAuthoritySettings.toBuilder();
    +      rescheduleClusterMaintenanceSettings =
    +          settings.rescheduleClusterMaintenanceSettings.toBuilder();
    +      rescheduleClusterMaintenanceOperationSettings =
    +          settings.rescheduleClusterMaintenanceOperationSettings.toBuilder();
    +      listBackupCollectionsSettings = settings.listBackupCollectionsSettings.toBuilder();
    +      getBackupCollectionSettings = settings.getBackupCollectionSettings.toBuilder();
    +      listBackupsSettings = settings.listBackupsSettings.toBuilder();
    +      getBackupSettings = settings.getBackupSettings.toBuilder();
    +      deleteBackupSettings = settings.deleteBackupSettings.toBuilder();
    +      deleteBackupOperationSettings = settings.deleteBackupOperationSettings.toBuilder();
    +      exportBackupSettings = settings.exportBackupSettings.toBuilder();
    +      exportBackupOperationSettings = settings.exportBackupOperationSettings.toBuilder();
    +      backupClusterSettings = settings.backupClusterSettings.toBuilder();
    +      backupClusterOperationSettings = settings.backupClusterOperationSettings.toBuilder();
           listLocationsSettings = settings.listLocationsSettings.toBuilder();
           getLocationSettings = settings.getLocationSettings.toBuilder();
     
    @@ -573,6 +866,14 @@ protected Builder(CloudRedisClusterStubSettings settings) {
                   deleteClusterSettings,
                   createClusterSettings,
                   getClusterCertificateAuthoritySettings,
    +              rescheduleClusterMaintenanceSettings,
    +              listBackupCollectionsSettings,
    +              getBackupCollectionSettings,
    +              listBackupsSettings,
    +              getBackupSettings,
    +              deleteBackupSettings,
    +              exportBackupSettings,
    +              backupClusterSettings,
                   listLocationsSettings,
                   getLocationSettings);
         }
    @@ -632,6 +933,46 @@ 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
    +          .rescheduleClusterMaintenanceSettings()
    +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
    +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
    +
    +      builder
    +          .listBackupCollectionsSettings()
    +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
    +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
    +
    +      builder
    +          .getBackupCollectionSettings()
    +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
    +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
    +
    +      builder
    +          .listBackupsSettings()
    +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
    +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
    +
    +      builder
    +          .getBackupSettings()
    +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
    +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
    +
    +      builder
    +          .deleteBackupSettings()
    +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
    +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
    +
    +      builder
    +          .exportBackupSettings()
    +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
    +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
    +
    +      builder
    +          .backupClusterSettings()
    +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
    +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
    +
           builder
               .listLocationsSettings()
               .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
    @@ -711,6 +1052,99 @@ private static Builder initDefaults(Builder builder) {
                           .setTotalTimeoutDuration(Duration.ofMillis(7200000L))
                           .build()));
     
    +      builder
    +          .rescheduleClusterMaintenanceOperationSettings()
    +          .setInitialCallSettings(
    +              UnaryCallSettings
    +                  .
    +                      newUnaryCallSettingsBuilder()
    +                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
    +                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"))
    +                  .build())
    +          .setResponseTransformer(
    +              ProtoOperationTransformers.ResponseTransformer.create(Cluster.class))
    +          .setMetadataTransformer(ProtoOperationTransformers.MetadataTransformer.create(Any.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
    +          .deleteBackupOperationSettings()
    +          .setInitialCallSettings(
    +              UnaryCallSettings
    +                  .newUnaryCallSettingsBuilder()
    +                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
    +                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"))
    +                  .build())
    +          .setResponseTransformer(
    +              ProtoOperationTransformers.ResponseTransformer.create(Empty.class))
    +          .setMetadataTransformer(ProtoOperationTransformers.MetadataTransformer.create(Any.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
    +          .exportBackupOperationSettings()
    +          .setInitialCallSettings(
    +              UnaryCallSettings
    +                  .newUnaryCallSettingsBuilder()
    +                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
    +                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"))
    +                  .build())
    +          .setResponseTransformer(
    +              ProtoOperationTransformers.ResponseTransformer.create(Backup.class))
    +          .setMetadataTransformer(ProtoOperationTransformers.MetadataTransformer.create(Any.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
    +          .backupClusterOperationSettings()
    +          .setInitialCallSettings(
    +              UnaryCallSettings
    +                  .newUnaryCallSettingsBuilder()
    +                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
    +                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"))
    +                  .build())
    +          .setResponseTransformer(
    +              ProtoOperationTransformers.ResponseTransformer.create(Cluster.class))
    +          .setMetadataTransformer(ProtoOperationTransformers.MetadataTransformer.create(Any.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;
         }
     
    @@ -780,6 +1214,78 @@ public UnaryCallSettings.Builder createClusterS
           return getClusterCertificateAuthoritySettings;
         }
     
    +    /** Returns the builder for the settings used for calls to rescheduleClusterMaintenance. */
    +    public UnaryCallSettings.Builder
    +        rescheduleClusterMaintenanceSettings() {
    +      return rescheduleClusterMaintenanceSettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to rescheduleClusterMaintenance. */
    +    public OperationCallSettings.Builder
    +        rescheduleClusterMaintenanceOperationSettings() {
    +      return rescheduleClusterMaintenanceOperationSettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to listBackupCollections. */
    +    public PagedCallSettings.Builder<
    +            ListBackupCollectionsRequest,
    +            ListBackupCollectionsResponse,
    +            ListBackupCollectionsPagedResponse>
    +        listBackupCollectionsSettings() {
    +      return listBackupCollectionsSettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to getBackupCollection. */
    +    public UnaryCallSettings.Builder
    +        getBackupCollectionSettings() {
    +      return getBackupCollectionSettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to listBackups. */
    +    public PagedCallSettings.Builder<
    +            ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse>
    +        listBackupsSettings() {
    +      return listBackupsSettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to getBackup. */
    +    public UnaryCallSettings.Builder getBackupSettings() {
    +      return getBackupSettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to deleteBackup. */
    +    public UnaryCallSettings.Builder deleteBackupSettings() {
    +      return deleteBackupSettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to deleteBackup. */
    +    public OperationCallSettings.Builder
    +        deleteBackupOperationSettings() {
    +      return deleteBackupOperationSettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to exportBackup. */
    +    public UnaryCallSettings.Builder exportBackupSettings() {
    +      return exportBackupSettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to exportBackup. */
    +    public OperationCallSettings.Builder
    +        exportBackupOperationSettings() {
    +      return exportBackupOperationSettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to backupCluster. */
    +    public UnaryCallSettings.Builder backupClusterSettings() {
    +      return backupClusterSettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to backupCluster. */
    +    public OperationCallSettings.Builder
    +        backupClusterOperationSettings() {
    +      return backupClusterOperationSettings;
    +    }
    +
         /** Returns the builder for the settings used for calls to listLocations. */
         public PagedCallSettings.Builder<
                 ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
    diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/GrpcCloudRedisClusterStub.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/GrpcCloudRedisClusterStub.java
    index f7118478b831..ea5acb694ce5 100644
    --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/GrpcCloudRedisClusterStub.java
    +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/GrpcCloudRedisClusterStub.java
    @@ -16,6 +16,8 @@
     
     package com.google.cloud.redis.cluster.v1.stub;
     
    +import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListBackupCollectionsPagedResponse;
    +import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListBackupsPagedResponse;
     import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListClustersPagedResponse;
     import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListLocationsPagedResponse;
     
    @@ -31,14 +33,26 @@
     import com.google.cloud.location.ListLocationsRequest;
     import com.google.cloud.location.ListLocationsResponse;
     import com.google.cloud.location.Location;
    +import com.google.cloud.redis.cluster.v1.Backup;
    +import com.google.cloud.redis.cluster.v1.BackupClusterRequest;
    +import com.google.cloud.redis.cluster.v1.BackupCollection;
     import com.google.cloud.redis.cluster.v1.CertificateAuthority;
     import com.google.cloud.redis.cluster.v1.Cluster;
     import com.google.cloud.redis.cluster.v1.CreateClusterRequest;
    +import com.google.cloud.redis.cluster.v1.DeleteBackupRequest;
     import com.google.cloud.redis.cluster.v1.DeleteClusterRequest;
    +import com.google.cloud.redis.cluster.v1.ExportBackupRequest;
    +import com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest;
    +import com.google.cloud.redis.cluster.v1.GetBackupRequest;
     import com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest;
     import com.google.cloud.redis.cluster.v1.GetClusterRequest;
    +import com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest;
    +import com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse;
    +import com.google.cloud.redis.cluster.v1.ListBackupsRequest;
    +import com.google.cloud.redis.cluster.v1.ListBackupsResponse;
     import com.google.cloud.redis.cluster.v1.ListClustersRequest;
     import com.google.cloud.redis.cluster.v1.ListClustersResponse;
    +import com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest;
     import com.google.cloud.redis.cluster.v1.UpdateClusterRequest;
     import com.google.longrunning.Operation;
     import com.google.longrunning.stub.GrpcOperationsStub;
    @@ -118,6 +132,86 @@ public class GrpcCloudRedisClusterStub extends CloudRedisClusterStub {
                       ProtoUtils.marshaller(CertificateAuthority.getDefaultInstance()))
                   .build();
     
    +  private static final MethodDescriptor
    +      rescheduleClusterMaintenanceMethodDescriptor =
    +          MethodDescriptor.newBuilder()
    +              .setType(MethodDescriptor.MethodType.UNARY)
    +              .setFullMethodName(
    +                  "google.cloud.redis.cluster.v1.CloudRedisCluster/RescheduleClusterMaintenance")
    +              .setRequestMarshaller(
    +                  ProtoUtils.marshaller(RescheduleClusterMaintenanceRequest.getDefaultInstance()))
    +              .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
    +              .build();
    +
    +  private static final MethodDescriptor
    +      listBackupCollectionsMethodDescriptor =
    +          MethodDescriptor.newBuilder()
    +              .setType(MethodDescriptor.MethodType.UNARY)
    +              .setFullMethodName(
    +                  "google.cloud.redis.cluster.v1.CloudRedisCluster/ListBackupCollections")
    +              .setRequestMarshaller(
    +                  ProtoUtils.marshaller(ListBackupCollectionsRequest.getDefaultInstance()))
    +              .setResponseMarshaller(
    +                  ProtoUtils.marshaller(ListBackupCollectionsResponse.getDefaultInstance()))
    +              .build();
    +
    +  private static final MethodDescriptor
    +      getBackupCollectionMethodDescriptor =
    +          MethodDescriptor.newBuilder()
    +              .setType(MethodDescriptor.MethodType.UNARY)
    +              .setFullMethodName(
    +                  "google.cloud.redis.cluster.v1.CloudRedisCluster/GetBackupCollection")
    +              .setRequestMarshaller(
    +                  ProtoUtils.marshaller(GetBackupCollectionRequest.getDefaultInstance()))
    +              .setResponseMarshaller(ProtoUtils.marshaller(BackupCollection.getDefaultInstance()))
    +              .build();
    +
    +  private static final MethodDescriptor
    +      listBackupsMethodDescriptor =
    +          MethodDescriptor.newBuilder()
    +              .setType(MethodDescriptor.MethodType.UNARY)
    +              .setFullMethodName("google.cloud.redis.cluster.v1.CloudRedisCluster/ListBackups")
    +              .setRequestMarshaller(ProtoUtils.marshaller(ListBackupsRequest.getDefaultInstance()))
    +              .setResponseMarshaller(
    +                  ProtoUtils.marshaller(ListBackupsResponse.getDefaultInstance()))
    +              .build();
    +
    +  private static final MethodDescriptor getBackupMethodDescriptor =
    +      MethodDescriptor.newBuilder()
    +          .setType(MethodDescriptor.MethodType.UNARY)
    +          .setFullMethodName("google.cloud.redis.cluster.v1.CloudRedisCluster/GetBackup")
    +          .setRequestMarshaller(ProtoUtils.marshaller(GetBackupRequest.getDefaultInstance()))
    +          .setResponseMarshaller(ProtoUtils.marshaller(Backup.getDefaultInstance()))
    +          .build();
    +
    +  private static final MethodDescriptor
    +      deleteBackupMethodDescriptor =
    +          MethodDescriptor.newBuilder()
    +              .setType(MethodDescriptor.MethodType.UNARY)
    +              .setFullMethodName("google.cloud.redis.cluster.v1.CloudRedisCluster/DeleteBackup")
    +              .setRequestMarshaller(ProtoUtils.marshaller(DeleteBackupRequest.getDefaultInstance()))
    +              .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
    +              .build();
    +
    +  private static final MethodDescriptor
    +      exportBackupMethodDescriptor =
    +          MethodDescriptor.newBuilder()
    +              .setType(MethodDescriptor.MethodType.UNARY)
    +              .setFullMethodName("google.cloud.redis.cluster.v1.CloudRedisCluster/ExportBackup")
    +              .setRequestMarshaller(ProtoUtils.marshaller(ExportBackupRequest.getDefaultInstance()))
    +              .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
    +              .build();
    +
    +  private static final MethodDescriptor
    +      backupClusterMethodDescriptor =
    +          MethodDescriptor.newBuilder()
    +              .setType(MethodDescriptor.MethodType.UNARY)
    +              .setFullMethodName("google.cloud.redis.cluster.v1.CloudRedisCluster/BackupCluster")
    +              .setRequestMarshaller(
    +                  ProtoUtils.marshaller(BackupClusterRequest.getDefaultInstance()))
    +              .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
    +              .build();
    +
       private static final MethodDescriptor
           listLocationsMethodDescriptor =
               MethodDescriptor.newBuilder()
    @@ -151,6 +245,27 @@ public class GrpcCloudRedisClusterStub extends CloudRedisClusterStub {
           createClusterOperationCallable;
       private final UnaryCallable
           getClusterCertificateAuthorityCallable;
    +  private final UnaryCallable
    +      rescheduleClusterMaintenanceCallable;
    +  private final OperationCallable
    +      rescheduleClusterMaintenanceOperationCallable;
    +  private final UnaryCallable
    +      listBackupCollectionsCallable;
    +  private final UnaryCallable
    +      listBackupCollectionsPagedCallable;
    +  private final UnaryCallable
    +      getBackupCollectionCallable;
    +  private final UnaryCallable listBackupsCallable;
    +  private final UnaryCallable
    +      listBackupsPagedCallable;
    +  private final UnaryCallable getBackupCallable;
    +  private final UnaryCallable deleteBackupCallable;
    +  private final OperationCallable deleteBackupOperationCallable;
    +  private final UnaryCallable exportBackupCallable;
    +  private final OperationCallable exportBackupOperationCallable;
    +  private final UnaryCallable backupClusterCallable;
    +  private final OperationCallable
    +      backupClusterOperationCallable;
       private final UnaryCallable listLocationsCallable;
       private final UnaryCallable
           listLocationsPagedCallable;
    @@ -262,6 +377,90 @@ protected GrpcCloudRedisClusterStub(
                           return builder.build();
                         })
                     .build();
    +    GrpcCallSettings
    +        rescheduleClusterMaintenanceTransportSettings =
    +            GrpcCallSettings.newBuilder()
    +                .setMethodDescriptor(rescheduleClusterMaintenanceMethodDescriptor)
    +                .setParamsExtractor(
    +                    request -> {
    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                      builder.add("name", String.valueOf(request.getName()));
    +                      return builder.build();
    +                    })
    +                .build();
    +    GrpcCallSettings
    +        listBackupCollectionsTransportSettings =
    +            GrpcCallSettings
    +                .newBuilder()
    +                .setMethodDescriptor(listBackupCollectionsMethodDescriptor)
    +                .setParamsExtractor(
    +                    request -> {
    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                      builder.add("parent", String.valueOf(request.getParent()));
    +                      return builder.build();
    +                    })
    +                .build();
    +    GrpcCallSettings
    +        getBackupCollectionTransportSettings =
    +            GrpcCallSettings.newBuilder()
    +                .setMethodDescriptor(getBackupCollectionMethodDescriptor)
    +                .setParamsExtractor(
    +                    request -> {
    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                      builder.add("name", String.valueOf(request.getName()));
    +                      return builder.build();
    +                    })
    +                .build();
    +    GrpcCallSettings listBackupsTransportSettings =
    +        GrpcCallSettings.newBuilder()
    +            .setMethodDescriptor(listBackupsMethodDescriptor)
    +            .setParamsExtractor(
    +                request -> {
    +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                  builder.add("parent", String.valueOf(request.getParent()));
    +                  return builder.build();
    +                })
    +            .build();
    +    GrpcCallSettings getBackupTransportSettings =
    +        GrpcCallSettings.newBuilder()
    +            .setMethodDescriptor(getBackupMethodDescriptor)
    +            .setParamsExtractor(
    +                request -> {
    +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                  builder.add("name", String.valueOf(request.getName()));
    +                  return builder.build();
    +                })
    +            .build();
    +    GrpcCallSettings deleteBackupTransportSettings =
    +        GrpcCallSettings.newBuilder()
    +            .setMethodDescriptor(deleteBackupMethodDescriptor)
    +            .setParamsExtractor(
    +                request -> {
    +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                  builder.add("name", String.valueOf(request.getName()));
    +                  return builder.build();
    +                })
    +            .build();
    +    GrpcCallSettings exportBackupTransportSettings =
    +        GrpcCallSettings.newBuilder()
    +            .setMethodDescriptor(exportBackupMethodDescriptor)
    +            .setParamsExtractor(
    +                request -> {
    +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                  builder.add("name", String.valueOf(request.getName()));
    +                  return builder.build();
    +                })
    +            .build();
    +    GrpcCallSettings backupClusterTransportSettings =
    +        GrpcCallSettings.newBuilder()
    +            .setMethodDescriptor(backupClusterMethodDescriptor)
    +            .setParamsExtractor(
    +                request -> {
    +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                  builder.add("name", String.valueOf(request.getName()));
    +                  return builder.build();
    +                })
    +            .build();
         GrpcCallSettings listLocationsTransportSettings =
             GrpcCallSettings.newBuilder()
                 .setMethodDescriptor(listLocationsMethodDescriptor)
    @@ -324,6 +523,68 @@ protected GrpcCloudRedisClusterStub(
                 getClusterCertificateAuthorityTransportSettings,
                 settings.getClusterCertificateAuthoritySettings(),
                 clientContext);
    +    this.rescheduleClusterMaintenanceCallable =
    +        callableFactory.createUnaryCallable(
    +            rescheduleClusterMaintenanceTransportSettings,
    +            settings.rescheduleClusterMaintenanceSettings(),
    +            clientContext);
    +    this.rescheduleClusterMaintenanceOperationCallable =
    +        callableFactory.createOperationCallable(
    +            rescheduleClusterMaintenanceTransportSettings,
    +            settings.rescheduleClusterMaintenanceOperationSettings(),
    +            clientContext,
    +            operationsStub);
    +    this.listBackupCollectionsCallable =
    +        callableFactory.createUnaryCallable(
    +            listBackupCollectionsTransportSettings,
    +            settings.listBackupCollectionsSettings(),
    +            clientContext);
    +    this.listBackupCollectionsPagedCallable =
    +        callableFactory.createPagedCallable(
    +            listBackupCollectionsTransportSettings,
    +            settings.listBackupCollectionsSettings(),
    +            clientContext);
    +    this.getBackupCollectionCallable =
    +        callableFactory.createUnaryCallable(
    +            getBackupCollectionTransportSettings,
    +            settings.getBackupCollectionSettings(),
    +            clientContext);
    +    this.listBackupsCallable =
    +        callableFactory.createUnaryCallable(
    +            listBackupsTransportSettings, settings.listBackupsSettings(), clientContext);
    +    this.listBackupsPagedCallable =
    +        callableFactory.createPagedCallable(
    +            listBackupsTransportSettings, settings.listBackupsSettings(), clientContext);
    +    this.getBackupCallable =
    +        callableFactory.createUnaryCallable(
    +            getBackupTransportSettings, settings.getBackupSettings(), clientContext);
    +    this.deleteBackupCallable =
    +        callableFactory.createUnaryCallable(
    +            deleteBackupTransportSettings, settings.deleteBackupSettings(), clientContext);
    +    this.deleteBackupOperationCallable =
    +        callableFactory.createOperationCallable(
    +            deleteBackupTransportSettings,
    +            settings.deleteBackupOperationSettings(),
    +            clientContext,
    +            operationsStub);
    +    this.exportBackupCallable =
    +        callableFactory.createUnaryCallable(
    +            exportBackupTransportSettings, settings.exportBackupSettings(), clientContext);
    +    this.exportBackupOperationCallable =
    +        callableFactory.createOperationCallable(
    +            exportBackupTransportSettings,
    +            settings.exportBackupOperationSettings(),
    +            clientContext,
    +            operationsStub);
    +    this.backupClusterCallable =
    +        callableFactory.createUnaryCallable(
    +            backupClusterTransportSettings, settings.backupClusterSettings(), clientContext);
    +    this.backupClusterOperationCallable =
    +        callableFactory.createOperationCallable(
    +            backupClusterTransportSettings,
    +            settings.backupClusterOperationSettings(),
    +            clientContext,
    +            operationsStub);
         this.listLocationsCallable =
             callableFactory.createUnaryCallable(
                 listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
    @@ -393,6 +654,80 @@ public OperationCallable createClusterOperat
         return getClusterCertificateAuthorityCallable;
       }
     
    +  @Override
    +  public UnaryCallable
    +      rescheduleClusterMaintenanceCallable() {
    +    return rescheduleClusterMaintenanceCallable;
    +  }
    +
    +  @Override
    +  public OperationCallable
    +      rescheduleClusterMaintenanceOperationCallable() {
    +    return rescheduleClusterMaintenanceOperationCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable
    +      listBackupCollectionsCallable() {
    +    return listBackupCollectionsCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable
    +      listBackupCollectionsPagedCallable() {
    +    return listBackupCollectionsPagedCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable getBackupCollectionCallable() {
    +    return getBackupCollectionCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable listBackupsCallable() {
    +    return listBackupsCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable listBackupsPagedCallable() {
    +    return listBackupsPagedCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable getBackupCallable() {
    +    return getBackupCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable deleteBackupCallable() {
    +    return deleteBackupCallable;
    +  }
    +
    +  @Override
    +  public OperationCallable deleteBackupOperationCallable() {
    +    return deleteBackupOperationCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable exportBackupCallable() {
    +    return exportBackupCallable;
    +  }
    +
    +  @Override
    +  public OperationCallable exportBackupOperationCallable() {
    +    return exportBackupOperationCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable backupClusterCallable() {
    +    return backupClusterCallable;
    +  }
    +
    +  @Override
    +  public OperationCallable backupClusterOperationCallable() {
    +    return backupClusterOperationCallable;
    +  }
    +
       @Override
       public UnaryCallable listLocationsCallable() {
         return listLocationsCallable;
    diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/HttpJsonCloudRedisClusterStub.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/HttpJsonCloudRedisClusterStub.java
    index 994d9aaac0c0..02712535b4f9 100644
    --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/HttpJsonCloudRedisClusterStub.java
    +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/HttpJsonCloudRedisClusterStub.java
    @@ -16,6 +16,8 @@
     
     package com.google.cloud.redis.cluster.v1.stub;
     
    +import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListBackupCollectionsPagedResponse;
    +import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListBackupsPagedResponse;
     import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListClustersPagedResponse;
     import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListLocationsPagedResponse;
     
    @@ -39,14 +41,26 @@
     import com.google.cloud.location.ListLocationsRequest;
     import com.google.cloud.location.ListLocationsResponse;
     import com.google.cloud.location.Location;
    +import com.google.cloud.redis.cluster.v1.Backup;
    +import com.google.cloud.redis.cluster.v1.BackupClusterRequest;
    +import com.google.cloud.redis.cluster.v1.BackupCollection;
     import com.google.cloud.redis.cluster.v1.CertificateAuthority;
     import com.google.cloud.redis.cluster.v1.Cluster;
     import com.google.cloud.redis.cluster.v1.CreateClusterRequest;
    +import com.google.cloud.redis.cluster.v1.DeleteBackupRequest;
     import com.google.cloud.redis.cluster.v1.DeleteClusterRequest;
    +import com.google.cloud.redis.cluster.v1.ExportBackupRequest;
    +import com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest;
    +import com.google.cloud.redis.cluster.v1.GetBackupRequest;
     import com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest;
     import com.google.cloud.redis.cluster.v1.GetClusterRequest;
    +import com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest;
    +import com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse;
    +import com.google.cloud.redis.cluster.v1.ListBackupsRequest;
    +import com.google.cloud.redis.cluster.v1.ListBackupsResponse;
     import com.google.cloud.redis.cluster.v1.ListClustersRequest;
     import com.google.cloud.redis.cluster.v1.ListClustersResponse;
    +import com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest;
     import com.google.cloud.redis.cluster.v1.UpdateClusterRequest;
     import com.google.common.collect.ImmutableMap;
     import com.google.longrunning.Operation;
    @@ -74,6 +88,7 @@ public class HttpJsonCloudRedisClusterStub extends CloudRedisClusterStub {
               .add(Empty.getDescriptor())
               .add(Cluster.getDescriptor())
               .add(Any.getDescriptor())
    +          .add(Backup.getDescriptor())
               .build();
     
       private static final ApiMethodDescriptor
    @@ -305,6 +320,308 @@ public class HttpJsonCloudRedisClusterStub extends CloudRedisClusterStub {
                           .build())
                   .build();
     
    +  private static final ApiMethodDescriptor
    +      rescheduleClusterMaintenanceMethodDescriptor =
    +          ApiMethodDescriptor.newBuilder()
    +              .setFullMethodName(
    +                  "google.cloud.redis.cluster.v1.CloudRedisCluster/RescheduleClusterMaintenance")
    +              .setHttpMethod("POST")
    +              .setType(ApiMethodDescriptor.MethodType.UNARY)
    +              .setRequestFormatter(
    +                  ProtoMessageRequestFormatter.newBuilder()
    +                      .setPath(
    +                          "/v1/{name=projects/*/locations/*/clusters/*}:rescheduleClusterMaintenance",
    +                          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(
    +                  (RescheduleClusterMaintenanceRequest request, Operation response) ->
    +                      HttpJsonOperationSnapshot.create(response))
    +              .build();
    +
    +  private static final ApiMethodDescriptor<
    +          ListBackupCollectionsRequest, ListBackupCollectionsResponse>
    +      listBackupCollectionsMethodDescriptor =
    +          ApiMethodDescriptor
    +              .newBuilder()
    +              .setFullMethodName(
    +                  "google.cloud.redis.cluster.v1.CloudRedisCluster/ListBackupCollections")
    +              .setHttpMethod("GET")
    +              .setType(ApiMethodDescriptor.MethodType.UNARY)
    +              .setRequestFormatter(
    +                  ProtoMessageRequestFormatter.newBuilder()
    +                      .setPath(
    +                          "/v1/{parent=projects/*/locations/*}/backupCollections",
    +                          request -> {
    +                            Map fields = new HashMap<>();
    +                            ProtoRestSerializer serializer =
    +                                ProtoRestSerializer.create();
    +                            serializer.putPathParam(fields, "parent", request.getParent());
    +                            return fields;
    +                          })
    +                      .setQueryParamsExtractor(
    +                          request -> {
    +                            Map> fields = new HashMap<>();
    +                            ProtoRestSerializer serializer =
    +                                ProtoRestSerializer.create();
    +                            serializer.putQueryParam(fields, "pageSize", request.getPageSize());
    +                            serializer.putQueryParam(fields, "pageToken", request.getPageToken());
    +                            serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
    +                            return fields;
    +                          })
    +                      .setRequestBodyExtractor(request -> null)
    +                      .build())
    +              .setResponseParser(
    +                  ProtoMessageResponseParser.newBuilder()
    +                      .setDefaultInstance(ListBackupCollectionsResponse.getDefaultInstance())
    +                      .setDefaultTypeRegistry(typeRegistry)
    +                      .build())
    +              .build();
    +
    +  private static final ApiMethodDescriptor
    +      getBackupCollectionMethodDescriptor =
    +          ApiMethodDescriptor.newBuilder()
    +              .setFullMethodName(
    +                  "google.cloud.redis.cluster.v1.CloudRedisCluster/GetBackupCollection")
    +              .setHttpMethod("GET")
    +              .setType(ApiMethodDescriptor.MethodType.UNARY)
    +              .setRequestFormatter(
    +                  ProtoMessageRequestFormatter.newBuilder()
    +                      .setPath(
    +                          "/v1/{name=projects/*/locations/*/backupCollections/*}",
    +                          request -> {
    +                            Map fields = new HashMap<>();
    +                            ProtoRestSerializer serializer =
    +                                ProtoRestSerializer.create();
    +                            serializer.putPathParam(fields, "name", request.getName());
    +                            return fields;
    +                          })
    +                      .setQueryParamsExtractor(
    +                          request -> {
    +                            Map> fields = new HashMap<>();
    +                            ProtoRestSerializer serializer =
    +                                ProtoRestSerializer.create();
    +                            serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
    +                            return fields;
    +                          })
    +                      .setRequestBodyExtractor(request -> null)
    +                      .build())
    +              .setResponseParser(
    +                  ProtoMessageResponseParser.newBuilder()
    +                      .setDefaultInstance(BackupCollection.getDefaultInstance())
    +                      .setDefaultTypeRegistry(typeRegistry)
    +                      .build())
    +              .build();
    +
    +  private static final ApiMethodDescriptor
    +      listBackupsMethodDescriptor =
    +          ApiMethodDescriptor.newBuilder()
    +              .setFullMethodName("google.cloud.redis.cluster.v1.CloudRedisCluster/ListBackups")
    +              .setHttpMethod("GET")
    +              .setType(ApiMethodDescriptor.MethodType.UNARY)
    +              .setRequestFormatter(
    +                  ProtoMessageRequestFormatter.newBuilder()
    +                      .setPath(
    +                          "/v1/{parent=projects/*/locations/*/backupCollections/*}/backups",
    +                          request -> {
    +                            Map fields = new HashMap<>();
    +                            ProtoRestSerializer serializer =
    +                                ProtoRestSerializer.create();
    +                            serializer.putPathParam(fields, "parent", request.getParent());
    +                            return fields;
    +                          })
    +                      .setQueryParamsExtractor(
    +                          request -> {
    +                            Map> fields = new HashMap<>();
    +                            ProtoRestSerializer serializer =
    +                                ProtoRestSerializer.create();
    +                            serializer.putQueryParam(fields, "pageSize", request.getPageSize());
    +                            serializer.putQueryParam(fields, "pageToken", request.getPageToken());
    +                            serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
    +                            return fields;
    +                          })
    +                      .setRequestBodyExtractor(request -> null)
    +                      .build())
    +              .setResponseParser(
    +                  ProtoMessageResponseParser.newBuilder()
    +                      .setDefaultInstance(ListBackupsResponse.getDefaultInstance())
    +                      .setDefaultTypeRegistry(typeRegistry)
    +                      .build())
    +              .build();
    +
    +  private static final ApiMethodDescriptor getBackupMethodDescriptor =
    +      ApiMethodDescriptor.newBuilder()
    +          .setFullMethodName("google.cloud.redis.cluster.v1.CloudRedisCluster/GetBackup")
    +          .setHttpMethod("GET")
    +          .setType(ApiMethodDescriptor.MethodType.UNARY)
    +          .setRequestFormatter(
    +              ProtoMessageRequestFormatter.newBuilder()
    +                  .setPath(
    +                      "/v1/{name=projects/*/locations/*/backupCollections/*/backups/*}",
    +                      request -> {
    +                        Map fields = new HashMap<>();
    +                        ProtoRestSerializer serializer =
    +                            ProtoRestSerializer.create();
    +                        serializer.putPathParam(fields, "name", request.getName());
    +                        return fields;
    +                      })
    +                  .setQueryParamsExtractor(
    +                      request -> {
    +                        Map> fields = new HashMap<>();
    +                        ProtoRestSerializer serializer =
    +                            ProtoRestSerializer.create();
    +                        serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
    +                        return fields;
    +                      })
    +                  .setRequestBodyExtractor(request -> null)
    +                  .build())
    +          .setResponseParser(
    +              ProtoMessageResponseParser.newBuilder()
    +                  .setDefaultInstance(Backup.getDefaultInstance())
    +                  .setDefaultTypeRegistry(typeRegistry)
    +                  .build())
    +          .build();
    +
    +  private static final ApiMethodDescriptor
    +      deleteBackupMethodDescriptor =
    +          ApiMethodDescriptor.newBuilder()
    +              .setFullMethodName("google.cloud.redis.cluster.v1.CloudRedisCluster/DeleteBackup")
    +              .setHttpMethod("DELETE")
    +              .setType(ApiMethodDescriptor.MethodType.UNARY)
    +              .setRequestFormatter(
    +                  ProtoMessageRequestFormatter.newBuilder()
    +                      .setPath(
    +                          "/v1/{name=projects/*/locations/*/backupCollections/*/backups/*}",
    +                          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, "requestId", request.getRequestId());
    +                            serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
    +                            return fields;
    +                          })
    +                      .setRequestBodyExtractor(request -> null)
    +                      .build())
    +              .setResponseParser(
    +                  ProtoMessageResponseParser.newBuilder()
    +                      .setDefaultInstance(Operation.getDefaultInstance())
    +                      .setDefaultTypeRegistry(typeRegistry)
    +                      .build())
    +              .setOperationSnapshotFactory(
    +                  (DeleteBackupRequest request, Operation response) ->
    +                      HttpJsonOperationSnapshot.create(response))
    +              .build();
    +
    +  private static final ApiMethodDescriptor
    +      exportBackupMethodDescriptor =
    +          ApiMethodDescriptor.newBuilder()
    +              .setFullMethodName("google.cloud.redis.cluster.v1.CloudRedisCluster/ExportBackup")
    +              .setHttpMethod("POST")
    +              .setType(ApiMethodDescriptor.MethodType.UNARY)
    +              .setRequestFormatter(
    +                  ProtoMessageRequestFormatter.newBuilder()
    +                      .setPath(
    +                          "/v1/{name=projects/*/locations/*/backupCollections/*/backups/*}:export",
    +                          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(
    +                  (ExportBackupRequest request, Operation response) ->
    +                      HttpJsonOperationSnapshot.create(response))
    +              .build();
    +
    +  private static final ApiMethodDescriptor
    +      backupClusterMethodDescriptor =
    +          ApiMethodDescriptor.newBuilder()
    +              .setFullMethodName("google.cloud.redis.cluster.v1.CloudRedisCluster/BackupCluster")
    +              .setHttpMethod("POST")
    +              .setType(ApiMethodDescriptor.MethodType.UNARY)
    +              .setRequestFormatter(
    +                  ProtoMessageRequestFormatter.newBuilder()
    +                      .setPath(
    +                          "/v1/{name=projects/*/locations/*/clusters/*}:backup",
    +                          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(
    +                  (BackupClusterRequest request, Operation response) ->
    +                      HttpJsonOperationSnapshot.create(response))
    +              .build();
    +
       private static final ApiMethodDescriptor
           listLocationsMethodDescriptor =
               ApiMethodDescriptor.newBuilder()
    @@ -387,6 +704,27 @@ public class HttpJsonCloudRedisClusterStub extends CloudRedisClusterStub {
           createClusterOperationCallable;
       private final UnaryCallable
           getClusterCertificateAuthorityCallable;
    +  private final UnaryCallable
    +      rescheduleClusterMaintenanceCallable;
    +  private final OperationCallable
    +      rescheduleClusterMaintenanceOperationCallable;
    +  private final UnaryCallable
    +      listBackupCollectionsCallable;
    +  private final UnaryCallable
    +      listBackupCollectionsPagedCallable;
    +  private final UnaryCallable
    +      getBackupCollectionCallable;
    +  private final UnaryCallable listBackupsCallable;
    +  private final UnaryCallable
    +      listBackupsPagedCallable;
    +  private final UnaryCallable getBackupCallable;
    +  private final UnaryCallable deleteBackupCallable;
    +  private final OperationCallable deleteBackupOperationCallable;
    +  private final UnaryCallable exportBackupCallable;
    +  private final OperationCallable exportBackupOperationCallable;
    +  private final UnaryCallable backupClusterCallable;
    +  private final OperationCallable
    +      backupClusterOperationCallable;
       private final UnaryCallable listLocationsCallable;
       private final UnaryCallable
           listLocationsPagedCallable;
    @@ -530,6 +868,98 @@ protected HttpJsonCloudRedisClusterStub(
                           return builder.build();
                         })
                     .build();
    +    HttpJsonCallSettings
    +        rescheduleClusterMaintenanceTransportSettings =
    +            HttpJsonCallSettings.newBuilder()
    +                .setMethodDescriptor(rescheduleClusterMaintenanceMethodDescriptor)
    +                .setTypeRegistry(typeRegistry)
    +                .setParamsExtractor(
    +                    request -> {
    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                      builder.add("name", String.valueOf(request.getName()));
    +                      return builder.build();
    +                    })
    +                .build();
    +    HttpJsonCallSettings
    +        listBackupCollectionsTransportSettings =
    +            HttpJsonCallSettings
    +                .newBuilder()
    +                .setMethodDescriptor(listBackupCollectionsMethodDescriptor)
    +                .setTypeRegistry(typeRegistry)
    +                .setParamsExtractor(
    +                    request -> {
    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                      builder.add("parent", String.valueOf(request.getParent()));
    +                      return builder.build();
    +                    })
    +                .build();
    +    HttpJsonCallSettings
    +        getBackupCollectionTransportSettings =
    +            HttpJsonCallSettings.newBuilder()
    +                .setMethodDescriptor(getBackupCollectionMethodDescriptor)
    +                .setTypeRegistry(typeRegistry)
    +                .setParamsExtractor(
    +                    request -> {
    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                      builder.add("name", String.valueOf(request.getName()));
    +                      return builder.build();
    +                    })
    +                .build();
    +    HttpJsonCallSettings listBackupsTransportSettings =
    +        HttpJsonCallSettings.newBuilder()
    +            .setMethodDescriptor(listBackupsMethodDescriptor)
    +            .setTypeRegistry(typeRegistry)
    +            .setParamsExtractor(
    +                request -> {
    +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                  builder.add("parent", String.valueOf(request.getParent()));
    +                  return builder.build();
    +                })
    +            .build();
    +    HttpJsonCallSettings getBackupTransportSettings =
    +        HttpJsonCallSettings.newBuilder()
    +            .setMethodDescriptor(getBackupMethodDescriptor)
    +            .setTypeRegistry(typeRegistry)
    +            .setParamsExtractor(
    +                request -> {
    +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                  builder.add("name", String.valueOf(request.getName()));
    +                  return builder.build();
    +                })
    +            .build();
    +    HttpJsonCallSettings deleteBackupTransportSettings =
    +        HttpJsonCallSettings.newBuilder()
    +            .setMethodDescriptor(deleteBackupMethodDescriptor)
    +            .setTypeRegistry(typeRegistry)
    +            .setParamsExtractor(
    +                request -> {
    +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                  builder.add("name", String.valueOf(request.getName()));
    +                  return builder.build();
    +                })
    +            .build();
    +    HttpJsonCallSettings exportBackupTransportSettings =
    +        HttpJsonCallSettings.newBuilder()
    +            .setMethodDescriptor(exportBackupMethodDescriptor)
    +            .setTypeRegistry(typeRegistry)
    +            .setParamsExtractor(
    +                request -> {
    +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                  builder.add("name", String.valueOf(request.getName()));
    +                  return builder.build();
    +                })
    +            .build();
    +    HttpJsonCallSettings backupClusterTransportSettings =
    +        HttpJsonCallSettings.newBuilder()
    +            .setMethodDescriptor(backupClusterMethodDescriptor)
    +            .setTypeRegistry(typeRegistry)
    +            .setParamsExtractor(
    +                request -> {
    +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                  builder.add("name", String.valueOf(request.getName()));
    +                  return builder.build();
    +                })
    +            .build();
         HttpJsonCallSettings
             listLocationsTransportSettings =
                 HttpJsonCallSettings.newBuilder()
    @@ -595,6 +1025,68 @@ protected HttpJsonCloudRedisClusterStub(
                 getClusterCertificateAuthorityTransportSettings,
                 settings.getClusterCertificateAuthoritySettings(),
                 clientContext);
    +    this.rescheduleClusterMaintenanceCallable =
    +        callableFactory.createUnaryCallable(
    +            rescheduleClusterMaintenanceTransportSettings,
    +            settings.rescheduleClusterMaintenanceSettings(),
    +            clientContext);
    +    this.rescheduleClusterMaintenanceOperationCallable =
    +        callableFactory.createOperationCallable(
    +            rescheduleClusterMaintenanceTransportSettings,
    +            settings.rescheduleClusterMaintenanceOperationSettings(),
    +            clientContext,
    +            httpJsonOperationsStub);
    +    this.listBackupCollectionsCallable =
    +        callableFactory.createUnaryCallable(
    +            listBackupCollectionsTransportSettings,
    +            settings.listBackupCollectionsSettings(),
    +            clientContext);
    +    this.listBackupCollectionsPagedCallable =
    +        callableFactory.createPagedCallable(
    +            listBackupCollectionsTransportSettings,
    +            settings.listBackupCollectionsSettings(),
    +            clientContext);
    +    this.getBackupCollectionCallable =
    +        callableFactory.createUnaryCallable(
    +            getBackupCollectionTransportSettings,
    +            settings.getBackupCollectionSettings(),
    +            clientContext);
    +    this.listBackupsCallable =
    +        callableFactory.createUnaryCallable(
    +            listBackupsTransportSettings, settings.listBackupsSettings(), clientContext);
    +    this.listBackupsPagedCallable =
    +        callableFactory.createPagedCallable(
    +            listBackupsTransportSettings, settings.listBackupsSettings(), clientContext);
    +    this.getBackupCallable =
    +        callableFactory.createUnaryCallable(
    +            getBackupTransportSettings, settings.getBackupSettings(), clientContext);
    +    this.deleteBackupCallable =
    +        callableFactory.createUnaryCallable(
    +            deleteBackupTransportSettings, settings.deleteBackupSettings(), clientContext);
    +    this.deleteBackupOperationCallable =
    +        callableFactory.createOperationCallable(
    +            deleteBackupTransportSettings,
    +            settings.deleteBackupOperationSettings(),
    +            clientContext,
    +            httpJsonOperationsStub);
    +    this.exportBackupCallable =
    +        callableFactory.createUnaryCallable(
    +            exportBackupTransportSettings, settings.exportBackupSettings(), clientContext);
    +    this.exportBackupOperationCallable =
    +        callableFactory.createOperationCallable(
    +            exportBackupTransportSettings,
    +            settings.exportBackupOperationSettings(),
    +            clientContext,
    +            httpJsonOperationsStub);
    +    this.backupClusterCallable =
    +        callableFactory.createUnaryCallable(
    +            backupClusterTransportSettings, settings.backupClusterSettings(), clientContext);
    +    this.backupClusterOperationCallable =
    +        callableFactory.createOperationCallable(
    +            backupClusterTransportSettings,
    +            settings.backupClusterOperationSettings(),
    +            clientContext,
    +            httpJsonOperationsStub);
         this.listLocationsCallable =
             callableFactory.createUnaryCallable(
                 listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
    @@ -618,6 +1110,14 @@ public static List getMethodDescriptors() {
         methodDescriptors.add(deleteClusterMethodDescriptor);
         methodDescriptors.add(createClusterMethodDescriptor);
         methodDescriptors.add(getClusterCertificateAuthorityMethodDescriptor);
    +    methodDescriptors.add(rescheduleClusterMaintenanceMethodDescriptor);
    +    methodDescriptors.add(listBackupCollectionsMethodDescriptor);
    +    methodDescriptors.add(getBackupCollectionMethodDescriptor);
    +    methodDescriptors.add(listBackupsMethodDescriptor);
    +    methodDescriptors.add(getBackupMethodDescriptor);
    +    methodDescriptors.add(deleteBackupMethodDescriptor);
    +    methodDescriptors.add(exportBackupMethodDescriptor);
    +    methodDescriptors.add(backupClusterMethodDescriptor);
         methodDescriptors.add(listLocationsMethodDescriptor);
         methodDescriptors.add(getLocationMethodDescriptor);
         return methodDescriptors;
    @@ -678,6 +1178,80 @@ public OperationCallable createClusterOperat
         return getClusterCertificateAuthorityCallable;
       }
     
    +  @Override
    +  public UnaryCallable
    +      rescheduleClusterMaintenanceCallable() {
    +    return rescheduleClusterMaintenanceCallable;
    +  }
    +
    +  @Override
    +  public OperationCallable
    +      rescheduleClusterMaintenanceOperationCallable() {
    +    return rescheduleClusterMaintenanceOperationCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable
    +      listBackupCollectionsCallable() {
    +    return listBackupCollectionsCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable
    +      listBackupCollectionsPagedCallable() {
    +    return listBackupCollectionsPagedCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable getBackupCollectionCallable() {
    +    return getBackupCollectionCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable listBackupsCallable() {
    +    return listBackupsCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable listBackupsPagedCallable() {
    +    return listBackupsPagedCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable getBackupCallable() {
    +    return getBackupCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable deleteBackupCallable() {
    +    return deleteBackupCallable;
    +  }
    +
    +  @Override
    +  public OperationCallable deleteBackupOperationCallable() {
    +    return deleteBackupOperationCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable exportBackupCallable() {
    +    return exportBackupCallable;
    +  }
    +
    +  @Override
    +  public OperationCallable exportBackupOperationCallable() {
    +    return exportBackupOperationCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable backupClusterCallable() {
    +    return backupClusterCallable;
    +  }
    +
    +  @Override
    +  public OperationCallable backupClusterOperationCallable() {
    +    return backupClusterOperationCallable;
    +  }
    +
       @Override
       public UnaryCallable listLocationsCallable() {
         return listLocationsCallable;
    diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterClient.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterClient.java
    index d1d609fab3b7..318bf7f29fac 100644
    --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterClient.java
    +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterClient.java
    @@ -39,6 +39,7 @@
     import com.google.protobuf.Any;
     import com.google.protobuf.Empty;
     import com.google.protobuf.FieldMask;
    +import com.google.protobuf.Timestamp;
     import java.io.IOException;
     import java.util.List;
     import java.util.concurrent.TimeUnit;
    @@ -67,15 +68,6 @@
      *   
  • `projects/redpepper-1290/locations/us-central1/clusters/my-redis` * * - *

    We use API version selector for Flex APIs - * - *

      - *
    • The versioning strategy is release-based versioning - *
    • Our backend CLH only deals with the superset version (called v1main) - *
    • Existing backend for Redis Gen1 and MRR is not touched. - *
    • More details in go/redis-flex-api-versioning - *
    - * *

    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: * @@ -227,6 +219,160 @@ * * * + *

    RescheduleClusterMaintenance + *

    Reschedules upcoming maintenance event. + * + *

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

    + *
      + *
    • rescheduleClusterMaintenanceAsync(RescheduleClusterMaintenanceRequest request) + *

    + *

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

    + *
      + *
    • rescheduleClusterMaintenanceAsync(ClusterName name, RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType, Timestamp scheduleTime) + *

    • rescheduleClusterMaintenanceAsync(String name, RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType, Timestamp scheduleTime) + *

    + *

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

    + *
      + *
    • rescheduleClusterMaintenanceOperationCallable() + *

    • rescheduleClusterMaintenanceCallable() + *

    + * + * + * + *

    ListBackupCollections + *

    Lists all backup collections owned by a consumer project in either the specified location (region) or all locations. + *

    If `location_id` is specified as `-` (wildcard), then all regions available to the project are queried, and the results are aggregated. + * + *

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

    + *
      + *
    • listBackupCollections(ListBackupCollectionsRequest request) + *

    + *

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

    + *
      + *
    • listBackupCollections(LocationName parent) + *

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

    + *
      + *
    • listBackupCollectionsPagedCallable() + *

    • listBackupCollectionsCallable() + *

    + * + * + * + *

    GetBackupCollection + *

    Get a backup collection. + * + *

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

    + *
      + *
    • getBackupCollection(GetBackupCollectionRequest request) + *

    + *

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

    + *
      + *
    • getBackupCollection(BackupCollectionName name) + *

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

    + *
      + *
    • getBackupCollectionCallable() + *

    + * + * + * + *

    ListBackups + *

    Lists all backups owned by a backup collection. + * + *

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

    + *
      + *
    • listBackups(ListBackupsRequest request) + *

    + *

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

    + *
      + *
    • listBackups(BackupCollectionName parent) + *

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

    + *
      + *
    • listBackupsPagedCallable() + *

    • listBackupsCallable() + *

    + * + * + * + *

    GetBackup + *

    Gets the details of a specific backup. + * + *

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

    + *
      + *
    • getBackup(GetBackupRequest request) + *

    + *

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

    + *
      + *
    • getBackup(BackupName name) + *

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

    + *
      + *
    • getBackupCallable() + *

    + * + * + * + *

    DeleteBackup + *

    Deletes a specific backup. + * + *

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

    + *
      + *
    • deleteBackupAsync(DeleteBackupRequest request) + *

    + *

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

    + *
      + *
    • deleteBackupAsync(BackupName name) + *

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

    + *
      + *
    • deleteBackupOperationCallable() + *

    • deleteBackupCallable() + *

    + * + * + * + *

    ExportBackup + *

    Exports a specific backup to a customer target Cloud Storage URI. + * + *

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

    + *
      + *
    • exportBackupAsync(ExportBackupRequest request) + *

    + *

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

    + *
      + *
    • exportBackupOperationCallable() + *

    • exportBackupCallable() + *

    + * + * + * + *

    BackupCluster + *

    Backup Redis Cluster. If this is the first time a backup is being created, a backup collection will be created at the backend, and this backup belongs to this collection. Both collection and backup will have a resource name. Backup will be executed for each shard. A replica (primary if nonHA) will be selected to perform the execution. Backup call will be rejected if there is an ongoing backup or update operation. Be aware that during preview, if the cluster's internal software version is too old, critical update will be performed before actual backup. Once the internal software version is updated to the minimum version required by the backup feature, subsequent backups will not require critical update. After preview, there will be no critical update needed for backup. + * + *

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

    + *
      + *
    • backupClusterAsync(BackupClusterRequest request) + *

    + *

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

    + *
      + *
    • backupClusterAsync(ClusterName name) + *

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

    + *
      + *
    • backupClusterOperationCallable() + *

    • backupClusterCallable() + *

    + * + * + * *

    ListLocations *

    Lists information about the supported locations for this service. * @@ -1343,7 +1489,7 @@ public final CertificateAuthority getClusterCertificateAuthority( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Reschedules upcoming maintenance event. * *

    Sample code: * @@ -1354,29 +1500,118 @@ public final CertificateAuthority getClusterCertificateAuthority( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * ListLocationsRequest request = - * ListLocationsRequest.newBuilder() - * .setName("name3373707") - * .setFilter("filter-1274492040") - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + * RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType = + * RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0); + * Timestamp scheduleTime = Timestamp.newBuilder().build(); + * Cluster response = + * cloudRedisClusterClient + * .rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime) + * .get(); + * } + * }

  • + * + * @param name Required. Redis Cluster instance resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` + * refers to a GCP region. + * @param rescheduleType Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time + * as well. + * @param scheduleTime Optional. Timestamp when the maintenance shall be rescheduled to if + * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for example `2012-11-15T16:19:00.094Z`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture rescheduleClusterMaintenanceAsync( + ClusterName name, + RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType, + Timestamp scheduleTime) { + RescheduleClusterMaintenanceRequest request = + RescheduleClusterMaintenanceRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setRescheduleType(rescheduleType) + .setScheduleTime(scheduleTime) + .build(); + return rescheduleClusterMaintenanceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Reschedules upcoming maintenance event. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
    +   *   String name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString();
    +   *   RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType =
    +   *       RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0);
    +   *   Timestamp scheduleTime = Timestamp.newBuilder().build();
    +   *   Cluster response =
    +   *       cloudRedisClusterClient
    +   *           .rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime)
    +   *           .get();
    +   * }
    +   * }
    + * + * @param name Required. Redis Cluster instance resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` + * refers to a GCP region. + * @param rescheduleType Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time + * as well. + * @param scheduleTime Optional. Timestamp when the maintenance shall be rescheduled to if + * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for example `2012-11-15T16:19:00.094Z`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture rescheduleClusterMaintenanceAsync( + String name, + RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType, + Timestamp scheduleTime) { + RescheduleClusterMaintenanceRequest request = + RescheduleClusterMaintenanceRequest.newBuilder() + .setName(name) + .setRescheduleType(rescheduleType) + .setScheduleTime(scheduleTime) + .build(); + return rescheduleClusterMaintenanceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Reschedules upcoming maintenance event. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
    +   *   RescheduleClusterMaintenanceRequest request =
    +   *       RescheduleClusterMaintenanceRequest.newBuilder()
    +   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
    +   *           .setScheduleTime(Timestamp.newBuilder().build())
        *           .build();
    -   *   for (Location element : cloudRedisClusterClient.listLocations(request).iterateAll()) {
    -   *     // doThingsWith(element);
    -   *   }
    +   *   Cluster response = cloudRedisClusterClient.rescheduleClusterMaintenanceAsync(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 ListLocationsPagedResponse listLocations(ListLocationsRequest request) { - return listLocationsPagedCallable().call(request); + public final OperationFuture rescheduleClusterMaintenanceAsync( + RescheduleClusterMaintenanceRequest request) { + return rescheduleClusterMaintenanceOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Reschedules upcoming maintenance event. * *

    Sample code: * @@ -1387,30 +1622,28 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * ListLocationsRequest request = - * ListLocationsRequest.newBuilder() - * .setName("name3373707") - * .setFilter("filter-1274492040") - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * RescheduleClusterMaintenanceRequest request = + * RescheduleClusterMaintenanceRequest.newBuilder() + * .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + * .setScheduleTime(Timestamp.newBuilder().build()) * .build(); - * ApiFuture future = - * cloudRedisClusterClient.listLocationsPagedCallable().futureCall(request); + * OperationFuture future = + * cloudRedisClusterClient + * .rescheduleClusterMaintenanceOperationCallable() + * .futureCall(request); * // Do something. - * for (Location element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * Cluster response = future.get(); * } * } */ - public final UnaryCallable - listLocationsPagedCallable() { - return stub.listLocationsPagedCallable(); + public final OperationCallable + rescheduleClusterMaintenanceOperationCallable() { + return stub.rescheduleClusterMaintenanceOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Reschedules upcoming maintenance event. * *

    Sample code: * @@ -1421,36 +1654,30 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * ListLocationsRequest request = - * ListLocationsRequest.newBuilder() - * .setName("name3373707") - * .setFilter("filter-1274492040") - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * RescheduleClusterMaintenanceRequest request = + * RescheduleClusterMaintenanceRequest.newBuilder() + * .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + * .setScheduleTime(Timestamp.newBuilder().build()) * .build(); - * while (true) { - * ListLocationsResponse response = - * cloudRedisClusterClient.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; - * } - * } + * ApiFuture future = + * cloudRedisClusterClient.rescheduleClusterMaintenanceCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); * } * } */ - public final UnaryCallable listLocationsCallable() { - return stub.listLocationsCallable(); + public final UnaryCallable + rescheduleClusterMaintenanceCallable() { + return stub.rescheduleClusterMaintenanceCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets information about a location. + * Lists all backup collections owned by a consumer project in either the specified location + * (region) or all locations. + * + *

    If `location_id` is specified as `-` (wildcard), then all regions available to the project + * are queried, and the results are aggregated. * *

    Sample code: * @@ -1461,21 +1688,33 @@ public final UnaryCallable listLoca * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); - * Location response = cloudRedisClusterClient.getLocation(request); + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * for (BackupCollection element : + * cloudRedisClusterClient.listBackupCollections(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The resource name of the backupCollection location using the form: + * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Location getLocation(GetLocationRequest request) { - return getLocationCallable().call(request); + public final ListBackupCollectionsPagedResponse listBackupCollections(LocationName parent) { + ListBackupCollectionsRequest request = + ListBackupCollectionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listBackupCollections(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets information about a location. + * Lists all backup collections owned by a consumer project in either the specified location + * (region) or all locations. + * + *

    If `location_id` is specified as `-` (wildcard), then all regions available to the project + * are queried, and the results are aggregated. * *

    Sample code: * @@ -1486,30 +1725,1149 @@ public final Location getLocation(GetLocationRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { - * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); - * ApiFuture future = - * cloudRedisClusterClient.getLocationCallable().futureCall(request); - * // Do something. - * Location response = future.get(); + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * for (BackupCollection element : + * cloudRedisClusterClient.listBackupCollections(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } + * + * @param parent Required. The resource name of the backupCollection location using the form: + * `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable getLocationCallable() { - return stub.getLocationCallable(); - } - - @Override - public final void close() { - stub.close(); - } - - @Override - public void shutdown() { - stub.shutdown(); + public final ListBackupCollectionsPagedResponse listBackupCollections(String parent) { + ListBackupCollectionsRequest request = + ListBackupCollectionsRequest.newBuilder().setParent(parent).build(); + return listBackupCollections(request); } - @Override - public boolean isShutdown() { + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all backup collections owned by a consumer project in either the specified location + * (region) or all locations. + * + *

    If `location_id` is specified as `-` (wildcard), then all regions available to the project + * are queried, and the results are aggregated. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
    +   *   ListBackupCollectionsRequest request =
    +   *       ListBackupCollectionsRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   for (BackupCollection element :
    +   *       cloudRedisClusterClient.listBackupCollections(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 ListBackupCollectionsPagedResponse listBackupCollections( + ListBackupCollectionsRequest request) { + return listBackupCollectionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all backup collections owned by a consumer project in either the specified location + * (region) or all locations. + * + *

    If `location_id` is specified as `-` (wildcard), then all regions available to the project + * are queried, and the results are aggregated. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
    +   *   ListBackupCollectionsRequest request =
    +   *       ListBackupCollectionsRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       cloudRedisClusterClient.listBackupCollectionsPagedCallable().futureCall(request);
    +   *   // Do something.
    +   *   for (BackupCollection element : future.get().iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable + listBackupCollectionsPagedCallable() { + return stub.listBackupCollectionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all backup collections owned by a consumer project in either the specified location + * (region) or all locations. + * + *

    If `location_id` is specified as `-` (wildcard), then all regions available to the project + * are queried, and the results are aggregated. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
    +   *   ListBackupCollectionsRequest request =
    +   *       ListBackupCollectionsRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   while (true) {
    +   *     ListBackupCollectionsResponse response =
    +   *         cloudRedisClusterClient.listBackupCollectionsCallable().call(request);
    +   *     for (BackupCollection element : response.getBackupCollectionsList()) {
    +   *       // doThingsWith(element);
    +   *     }
    +   *     String nextPageToken = response.getNextPageToken();
    +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
    +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
    +   *     } else {
    +   *       break;
    +   *     }
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable + listBackupCollectionsCallable() { + return stub.listBackupCollectionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get a backup collection. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
    +   *   BackupCollectionName name =
    +   *       BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]");
    +   *   BackupCollection response = cloudRedisClusterClient.getBackupCollection(name);
    +   * }
    +   * }
    + * + * @param name Required. Redis backupCollection resource name using the form: + * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}` + * where `location_id` refers to a GCP region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BackupCollection getBackupCollection(BackupCollectionName name) { + GetBackupCollectionRequest request = + GetBackupCollectionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getBackupCollection(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get a backup collection. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
    +   *   String name =
    +   *       BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]").toString();
    +   *   BackupCollection response = cloudRedisClusterClient.getBackupCollection(name);
    +   * }
    +   * }
    + * + * @param name Required. Redis backupCollection resource name using the form: + * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}` + * where `location_id` refers to a GCP region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BackupCollection getBackupCollection(String name) { + GetBackupCollectionRequest request = + GetBackupCollectionRequest.newBuilder().setName(name).build(); + return getBackupCollection(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get a backup collection. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
    +   *   GetBackupCollectionRequest request =
    +   *       GetBackupCollectionRequest.newBuilder()
    +   *           .setName(
    +   *               BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +   *                   .toString())
    +   *           .build();
    +   *   BackupCollection response = cloudRedisClusterClient.getBackupCollection(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 BackupCollection getBackupCollection(GetBackupCollectionRequest request) { + return getBackupCollectionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get a backup collection. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
    +   *   GetBackupCollectionRequest request =
    +   *       GetBackupCollectionRequest.newBuilder()
    +   *           .setName(
    +   *               BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +   *                   .toString())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       cloudRedisClusterClient.getBackupCollectionCallable().futureCall(request);
    +   *   // Do something.
    +   *   BackupCollection response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable + getBackupCollectionCallable() { + return stub.getBackupCollectionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all backups owned by a backup collection. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
    +   *   BackupCollectionName parent =
    +   *       BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]");
    +   *   for (Backup element : cloudRedisClusterClient.listBackups(parent).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param parent Required. The resource name of the backupCollection using the form: + * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBackupsPagedResponse listBackups(BackupCollectionName parent) { + ListBackupsRequest request = + ListBackupsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listBackups(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all backups owned by a backup collection. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
    +   *   String parent =
    +   *       BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]").toString();
    +   *   for (Backup element : cloudRedisClusterClient.listBackups(parent).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param parent Required. The resource name of the backupCollection using the form: + * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBackupsPagedResponse listBackups(String parent) { + ListBackupsRequest request = ListBackupsRequest.newBuilder().setParent(parent).build(); + return listBackups(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all backups owned by a backup collection. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
    +   *   ListBackupsRequest request =
    +   *       ListBackupsRequest.newBuilder()
    +   *           .setParent(
    +   *               BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +   *                   .toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   for (Backup element : cloudRedisClusterClient.listBackups(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 ListBackupsPagedResponse listBackups(ListBackupsRequest request) { + return listBackupsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all backups owned by a backup collection. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
    +   *   ListBackupsRequest request =
    +   *       ListBackupsRequest.newBuilder()
    +   *           .setParent(
    +   *               BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +   *                   .toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       cloudRedisClusterClient.listBackupsPagedCallable().futureCall(request);
    +   *   // Do something.
    +   *   for (Backup element : future.get().iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable + listBackupsPagedCallable() { + return stub.listBackupsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all backups owned by a backup collection. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
    +   *   ListBackupsRequest request =
    +   *       ListBackupsRequest.newBuilder()
    +   *           .setParent(
    +   *               BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +   *                   .toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   while (true) {
    +   *     ListBackupsResponse response = cloudRedisClusterClient.listBackupsCallable().call(request);
    +   *     for (Backup element : response.getBackupsList()) {
    +   *       // doThingsWith(element);
    +   *     }
    +   *     String nextPageToken = response.getNextPageToken();
    +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
    +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
    +   *     } else {
    +   *       break;
    +   *     }
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable listBackupsCallable() { + return stub.listBackupsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific backup. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
    +   *   BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]");
    +   *   Backup response = cloudRedisClusterClient.getBackup(name);
    +   * }
    +   * }
    + * + * @param name Required. Redis backup resource name using the form: + * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Backup getBackup(BackupName name) { + GetBackupRequest request = + GetBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getBackup(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific backup. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
    +   *   String name =
    +   *       BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]").toString();
    +   *   Backup response = cloudRedisClusterClient.getBackup(name);
    +   * }
    +   * }
    + * + * @param name Required. Redis backup resource name using the form: + * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Backup getBackup(String name) { + GetBackupRequest request = GetBackupRequest.newBuilder().setName(name).build(); + return getBackup(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific backup. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
    +   *   GetBackupRequest request =
    +   *       GetBackupRequest.newBuilder()
    +   *           .setName(
    +   *               BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
    +   *                   .toString())
    +   *           .build();
    +   *   Backup response = cloudRedisClusterClient.getBackup(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 Backup getBackup(GetBackupRequest request) { + return getBackupCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific backup. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
    +   *   GetBackupRequest request =
    +   *       GetBackupRequest.newBuilder()
    +   *           .setName(
    +   *               BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
    +   *                   .toString())
    +   *           .build();
    +   *   ApiFuture future = cloudRedisClusterClient.getBackupCallable().futureCall(request);
    +   *   // Do something.
    +   *   Backup response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable getBackupCallable() { + return stub.getBackupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific backup. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
    +   *   BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]");
    +   *   cloudRedisClusterClient.deleteBackupAsync(name).get();
    +   * }
    +   * }
    + * + * @param name Required. Redis backup resource name using the form: + * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteBackupAsync(BackupName name) { + DeleteBackupRequest request = + DeleteBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteBackupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific backup. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
    +   *   String name =
    +   *       BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]").toString();
    +   *   cloudRedisClusterClient.deleteBackupAsync(name).get();
    +   * }
    +   * }
    + * + * @param name Required. Redis backup resource name using the form: + * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteBackupAsync(String name) { + DeleteBackupRequest request = DeleteBackupRequest.newBuilder().setName(name).build(); + return deleteBackupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific backup. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
    +   *   DeleteBackupRequest request =
    +   *       DeleteBackupRequest.newBuilder()
    +   *           .setName(
    +   *               BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
    +   *                   .toString())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   cloudRedisClusterClient.deleteBackupAsync(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 deleteBackupAsync(DeleteBackupRequest request) { + return deleteBackupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific backup. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
    +   *   DeleteBackupRequest request =
    +   *       DeleteBackupRequest.newBuilder()
    +   *           .setName(
    +   *               BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
    +   *                   .toString())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   OperationFuture future =
    +   *       cloudRedisClusterClient.deleteBackupOperationCallable().futureCall(request);
    +   *   // Do something.
    +   *   future.get();
    +   * }
    +   * }
    + */ + public final OperationCallable deleteBackupOperationCallable() { + return stub.deleteBackupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific backup. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
    +   *   DeleteBackupRequest request =
    +   *       DeleteBackupRequest.newBuilder()
    +   *           .setName(
    +   *               BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
    +   *                   .toString())
    +   *           .setRequestId("requestId693933066")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       cloudRedisClusterClient.deleteBackupCallable().futureCall(request);
    +   *   // Do something.
    +   *   future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable deleteBackupCallable() { + return stub.deleteBackupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports a specific backup to a customer target Cloud Storage URI. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
    +   *   ExportBackupRequest request =
    +   *       ExportBackupRequest.newBuilder()
    +   *           .setName(
    +   *               BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
    +   *                   .toString())
    +   *           .build();
    +   *   Backup response = cloudRedisClusterClient.exportBackupAsync(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 exportBackupAsync(ExportBackupRequest request) { + return exportBackupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports a specific backup to a customer target Cloud Storage URI. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
    +   *   ExportBackupRequest request =
    +   *       ExportBackupRequest.newBuilder()
    +   *           .setName(
    +   *               BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
    +   *                   .toString())
    +   *           .build();
    +   *   OperationFuture future =
    +   *       cloudRedisClusterClient.exportBackupOperationCallable().futureCall(request);
    +   *   // Do something.
    +   *   Backup response = future.get();
    +   * }
    +   * }
    + */ + public final OperationCallable exportBackupOperationCallable() { + return stub.exportBackupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports a specific backup to a customer target Cloud Storage URI. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
    +   *   ExportBackupRequest request =
    +   *       ExportBackupRequest.newBuilder()
    +   *           .setName(
    +   *               BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
    +   *                   .toString())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       cloudRedisClusterClient.exportBackupCallable().futureCall(request);
    +   *   // Do something.
    +   *   Operation response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable exportBackupCallable() { + return stub.exportBackupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Backup Redis Cluster. If this is the first time a backup is being created, a backup collection + * will be created at the backend, and this backup belongs to this collection. Both collection and + * backup will have a resource name. Backup will be executed for each shard. A replica (primary if + * nonHA) will be selected to perform the execution. Backup call will be rejected if there is an + * ongoing backup or update operation. Be aware that during preview, if the cluster's internal + * software version is too old, critical update will be performed before actual backup. Once the + * internal software version is updated to the minimum version required by the backup feature, + * subsequent backups will not require critical update. After preview, there will be no critical + * update needed for backup. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
    +   *   ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    +   *   Cluster response = cloudRedisClusterClient.backupClusterAsync(name).get();
    +   * }
    +   * }
    + * + * @param name Required. Redis cluster resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` + * refers to a GCP region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture backupClusterAsync(ClusterName name) { + BackupClusterRequest request = + BackupClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return backupClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Backup Redis Cluster. If this is the first time a backup is being created, a backup collection + * will be created at the backend, and this backup belongs to this collection. Both collection and + * backup will have a resource name. Backup will be executed for each shard. A replica (primary if + * nonHA) will be selected to perform the execution. Backup call will be rejected if there is an + * ongoing backup or update operation. Be aware that during preview, if the cluster's internal + * software version is too old, critical update will be performed before actual backup. Once the + * internal software version is updated to the minimum version required by the backup feature, + * subsequent backups will not require critical update. After preview, there will be no critical + * update needed for backup. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
    +   *   String name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString();
    +   *   Cluster response = cloudRedisClusterClient.backupClusterAsync(name).get();
    +   * }
    +   * }
    + * + * @param name Required. Redis cluster resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` + * refers to a GCP region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture backupClusterAsync(String name) { + BackupClusterRequest request = BackupClusterRequest.newBuilder().setName(name).build(); + return backupClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Backup Redis Cluster. If this is the first time a backup is being created, a backup collection + * will be created at the backend, and this backup belongs to this collection. Both collection and + * backup will have a resource name. Backup will be executed for each shard. A replica (primary if + * nonHA) will be selected to perform the execution. Backup call will be rejected if there is an + * ongoing backup or update operation. Be aware that during preview, if the cluster's internal + * software version is too old, critical update will be performed before actual backup. Once the + * internal software version is updated to the minimum version required by the backup feature, + * subsequent backups will not require critical update. After preview, there will be no critical + * update needed for backup. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
    +   *   BackupClusterRequest request =
    +   *       BackupClusterRequest.newBuilder()
    +   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
    +   *           .setTtl(Duration.newBuilder().build())
    +   *           .setBackupId("backupId2121930365")
    +   *           .build();
    +   *   Cluster response = cloudRedisClusterClient.backupClusterAsync(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 backupClusterAsync(BackupClusterRequest request) { + return backupClusterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Backup Redis Cluster. If this is the first time a backup is being created, a backup collection + * will be created at the backend, and this backup belongs to this collection. Both collection and + * backup will have a resource name. Backup will be executed for each shard. A replica (primary if + * nonHA) will be selected to perform the execution. Backup call will be rejected if there is an + * ongoing backup or update operation. Be aware that during preview, if the cluster's internal + * software version is too old, critical update will be performed before actual backup. Once the + * internal software version is updated to the minimum version required by the backup feature, + * subsequent backups will not require critical update. After preview, there will be no critical + * update needed for backup. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
    +   *   BackupClusterRequest request =
    +   *       BackupClusterRequest.newBuilder()
    +   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
    +   *           .setTtl(Duration.newBuilder().build())
    +   *           .setBackupId("backupId2121930365")
    +   *           .build();
    +   *   OperationFuture future =
    +   *       cloudRedisClusterClient.backupClusterOperationCallable().futureCall(request);
    +   *   // Do something.
    +   *   Cluster response = future.get();
    +   * }
    +   * }
    + */ + public final OperationCallable + backupClusterOperationCallable() { + return stub.backupClusterOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Backup Redis Cluster. If this is the first time a backup is being created, a backup collection + * will be created at the backend, and this backup belongs to this collection. Both collection and + * backup will have a resource name. Backup will be executed for each shard. A replica (primary if + * nonHA) will be selected to perform the execution. Backup call will be rejected if there is an + * ongoing backup or update operation. Be aware that during preview, if the cluster's internal + * software version is too old, critical update will be performed before actual backup. Once the + * internal software version is updated to the minimum version required by the backup feature, + * subsequent backups will not require critical update. After preview, there will be no critical + * update needed for backup. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
    +   *   BackupClusterRequest request =
    +   *       BackupClusterRequest.newBuilder()
    +   *           .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
    +   *           .setTtl(Duration.newBuilder().build())
    +   *           .setBackupId("backupId2121930365")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       cloudRedisClusterClient.backupClusterCallable().futureCall(request);
    +   *   // Do something.
    +   *   Operation response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable backupClusterCallable() { + return stub.backupClusterCallable(); + } + + // 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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
    +   *   ListLocationsRequest request =
    +   *       ListLocationsRequest.newBuilder()
    +   *           .setName("name3373707")
    +   *           .setFilter("filter-1274492040")
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   for (Location element : cloudRedisClusterClient.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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
    +   *   ListLocationsRequest request =
    +   *       ListLocationsRequest.newBuilder()
    +   *           .setName("name3373707")
    +   *           .setFilter("filter-1274492040")
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       cloudRedisClusterClient.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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
    +   *   ListLocationsRequest request =
    +   *       ListLocationsRequest.newBuilder()
    +   *           .setName("name3373707")
    +   *           .setFilter("filter-1274492040")
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   while (true) {
    +   *     ListLocationsResponse response =
    +   *         cloudRedisClusterClient.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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
    +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
    +   *   Location response = cloudRedisClusterClient.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 (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
    +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
    +   *   ApiFuture future =
    +   *       cloudRedisClusterClient.getLocationCallable().futureCall(request);
    +   *   // Do something.
    +   *   Location response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { return stub.isShutdown(); } @@ -1603,6 +2961,163 @@ protected ListClustersFixedSizeCollection createCollection( } } + public static class ListBackupCollectionsPagedResponse + extends AbstractPagedListResponse< + ListBackupCollectionsRequest, + ListBackupCollectionsResponse, + BackupCollection, + ListBackupCollectionsPage, + ListBackupCollectionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListBackupCollectionsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListBackupCollectionsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListBackupCollectionsPagedResponse(ListBackupCollectionsPage page) { + super(page, ListBackupCollectionsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListBackupCollectionsPage + extends AbstractPage< + ListBackupCollectionsRequest, + ListBackupCollectionsResponse, + BackupCollection, + ListBackupCollectionsPage> { + + private ListBackupCollectionsPage( + PageContext + context, + ListBackupCollectionsResponse response) { + super(context, response); + } + + private static ListBackupCollectionsPage createEmptyPage() { + return new ListBackupCollectionsPage(null, null); + } + + @Override + protected ListBackupCollectionsPage createPage( + PageContext + context, + ListBackupCollectionsResponse response) { + return new ListBackupCollectionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListBackupCollectionsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListBackupCollectionsRequest, + ListBackupCollectionsResponse, + BackupCollection, + ListBackupCollectionsPage, + ListBackupCollectionsFixedSizeCollection> { + + private ListBackupCollectionsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListBackupCollectionsFixedSizeCollection createEmptyCollection() { + return new ListBackupCollectionsFixedSizeCollection(null, 0); + } + + @Override + protected ListBackupCollectionsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListBackupCollectionsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListBackupsPagedResponse + extends AbstractPagedListResponse< + ListBackupsRequest, + ListBackupsResponse, + Backup, + ListBackupsPage, + ListBackupsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListBackupsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListBackupsPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListBackupsPagedResponse(ListBackupsPage page) { + super(page, ListBackupsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListBackupsPage + extends AbstractPage { + + private ListBackupsPage( + PageContext context, + ListBackupsResponse response) { + super(context, response); + } + + private static ListBackupsPage createEmptyPage() { + return new ListBackupsPage(null, null); + } + + @Override + protected ListBackupsPage createPage( + PageContext context, + ListBackupsResponse response) { + return new ListBackupsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListBackupsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListBackupsRequest, + ListBackupsResponse, + Backup, + ListBackupsPage, + ListBackupsFixedSizeCollection> { + + private ListBackupsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListBackupsFixedSizeCollection createEmptyCollection() { + return new ListBackupsFixedSizeCollection(null, 0); + } + + @Override + protected ListBackupsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListBackupsFixedSizeCollection(pages, collectionSize); + } + } + public static class ListLocationsPagedResponse extends AbstractPagedListResponse< ListLocationsRequest, diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterSettings.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterSettings.java index 8cf1764c573a..7463c07c9470 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterSettings.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterSettings.java @@ -16,6 +16,8 @@ package com.google.cloud.redis.cluster.v1beta1; +import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListBackupCollectionsPagedResponse; +import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListBackupsPagedResponse; import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListClustersPagedResponse; import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListLocationsPagedResponse; @@ -174,6 +176,77 @@ public UnaryCallSettings createClusterSettings( .getClusterCertificateAuthoritySettings(); } + /** Returns the object with the settings used for calls to rescheduleClusterMaintenance. */ + public UnaryCallSettings + rescheduleClusterMaintenanceSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()) + .rescheduleClusterMaintenanceSettings(); + } + + /** Returns the object with the settings used for calls to rescheduleClusterMaintenance. */ + public OperationCallSettings + rescheduleClusterMaintenanceOperationSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()) + .rescheduleClusterMaintenanceOperationSettings(); + } + + /** Returns the object with the settings used for calls to listBackupCollections. */ + public PagedCallSettings< + ListBackupCollectionsRequest, + ListBackupCollectionsResponse, + ListBackupCollectionsPagedResponse> + listBackupCollectionsSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).listBackupCollectionsSettings(); + } + + /** Returns the object with the settings used for calls to getBackupCollection. */ + public UnaryCallSettings + getBackupCollectionSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).getBackupCollectionSettings(); + } + + /** Returns the object with the settings used for calls to listBackups. */ + public PagedCallSettings + listBackupsSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).listBackupsSettings(); + } + + /** Returns the object with the settings used for calls to getBackup. */ + public UnaryCallSettings getBackupSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).getBackupSettings(); + } + + /** Returns the object with the settings used for calls to deleteBackup. */ + public UnaryCallSettings deleteBackupSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).deleteBackupSettings(); + } + + /** Returns the object with the settings used for calls to deleteBackup. */ + public OperationCallSettings deleteBackupOperationSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).deleteBackupOperationSettings(); + } + + /** Returns the object with the settings used for calls to exportBackup. */ + public UnaryCallSettings exportBackupSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).exportBackupSettings(); + } + + /** Returns the object with the settings used for calls to exportBackup. */ + public OperationCallSettings exportBackupOperationSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).exportBackupOperationSettings(); + } + + /** Returns the object with the settings used for calls to backupCluster. */ + public UnaryCallSettings backupClusterSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).backupClusterSettings(); + } + + /** Returns the object with the settings used for calls to backupCluster. */ + public OperationCallSettings + backupClusterOperationSettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()).backupClusterOperationSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -348,6 +421,78 @@ public UnaryCallSettings.Builder createClusterS return getStubSettingsBuilder().getClusterCertificateAuthoritySettings(); } + /** Returns the builder for the settings used for calls to rescheduleClusterMaintenance. */ + public UnaryCallSettings.Builder + rescheduleClusterMaintenanceSettings() { + return getStubSettingsBuilder().rescheduleClusterMaintenanceSettings(); + } + + /** Returns the builder for the settings used for calls to rescheduleClusterMaintenance. */ + public OperationCallSettings.Builder + rescheduleClusterMaintenanceOperationSettings() { + return getStubSettingsBuilder().rescheduleClusterMaintenanceOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listBackupCollections. */ + public PagedCallSettings.Builder< + ListBackupCollectionsRequest, + ListBackupCollectionsResponse, + ListBackupCollectionsPagedResponse> + listBackupCollectionsSettings() { + return getStubSettingsBuilder().listBackupCollectionsSettings(); + } + + /** Returns the builder for the settings used for calls to getBackupCollection. */ + public UnaryCallSettings.Builder + getBackupCollectionSettings() { + return getStubSettingsBuilder().getBackupCollectionSettings(); + } + + /** Returns the builder for the settings used for calls to listBackups. */ + public PagedCallSettings.Builder< + ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse> + listBackupsSettings() { + return getStubSettingsBuilder().listBackupsSettings(); + } + + /** Returns the builder for the settings used for calls to getBackup. */ + public UnaryCallSettings.Builder getBackupSettings() { + return getStubSettingsBuilder().getBackupSettings(); + } + + /** Returns the builder for the settings used for calls to deleteBackup. */ + public UnaryCallSettings.Builder deleteBackupSettings() { + return getStubSettingsBuilder().deleteBackupSettings(); + } + + /** Returns the builder for the settings used for calls to deleteBackup. */ + public OperationCallSettings.Builder + deleteBackupOperationSettings() { + return getStubSettingsBuilder().deleteBackupOperationSettings(); + } + + /** Returns the builder for the settings used for calls to exportBackup. */ + public UnaryCallSettings.Builder exportBackupSettings() { + return getStubSettingsBuilder().exportBackupSettings(); + } + + /** Returns the builder for the settings used for calls to exportBackup. */ + public OperationCallSettings.Builder + exportBackupOperationSettings() { + return getStubSettingsBuilder().exportBackupOperationSettings(); + } + + /** Returns the builder for the settings used for calls to backupCluster. */ + public UnaryCallSettings.Builder backupClusterSettings() { + return getStubSettingsBuilder().backupClusterSettings(); + } + + /** Returns the builder for the settings used for calls to backupCluster. */ + public OperationCallSettings.Builder + backupClusterOperationSettings() { + return getStubSettingsBuilder().backupClusterOperationSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/gapic_metadata.json b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/gapic_metadata.json index 6910347d8402..4e462090a586 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/gapic_metadata.json +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/gapic_metadata.json @@ -10,12 +10,27 @@ "grpc": { "libraryClient": "CloudRedisClusterClient", "rpcs": { + "BackupCluster": { + "methods": ["backupClusterAsync", "backupClusterAsync", "backupClusterAsync", "backupClusterOperationCallable", "backupClusterCallable"] + }, "CreateCluster": { "methods": ["createClusterAsync", "createClusterAsync", "createClusterAsync", "createClusterOperationCallable", "createClusterCallable"] }, + "DeleteBackup": { + "methods": ["deleteBackupAsync", "deleteBackupAsync", "deleteBackupAsync", "deleteBackupOperationCallable", "deleteBackupCallable"] + }, "DeleteCluster": { "methods": ["deleteClusterAsync", "deleteClusterAsync", "deleteClusterAsync", "deleteClusterOperationCallable", "deleteClusterCallable"] }, + "ExportBackup": { + "methods": ["exportBackupAsync", "exportBackupOperationCallable", "exportBackupCallable"] + }, + "GetBackup": { + "methods": ["getBackup", "getBackup", "getBackup", "getBackupCallable"] + }, + "GetBackupCollection": { + "methods": ["getBackupCollection", "getBackupCollection", "getBackupCollection", "getBackupCollectionCallable"] + }, "GetCluster": { "methods": ["getCluster", "getCluster", "getCluster", "getClusterCallable"] }, @@ -25,12 +40,21 @@ "GetLocation": { "methods": ["getLocation", "getLocationCallable"] }, + "ListBackupCollections": { + "methods": ["listBackupCollections", "listBackupCollections", "listBackupCollections", "listBackupCollectionsPagedCallable", "listBackupCollectionsCallable"] + }, + "ListBackups": { + "methods": ["listBackups", "listBackups", "listBackups", "listBackupsPagedCallable", "listBackupsCallable"] + }, "ListClusters": { "methods": ["listClusters", "listClusters", "listClusters", "listClustersPagedCallable", "listClustersCallable"] }, "ListLocations": { "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] }, + "RescheduleClusterMaintenance": { + "methods": ["rescheduleClusterMaintenanceAsync", "rescheduleClusterMaintenanceAsync", "rescheduleClusterMaintenanceAsync", "rescheduleClusterMaintenanceOperationCallable", "rescheduleClusterMaintenanceCallable"] + }, "UpdateCluster": { "methods": ["updateClusterAsync", "updateClusterAsync", "updateClusterOperationCallable", "updateClusterCallable"] } diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/package-info.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/package-info.java index 9d24ef45a213..72fea05dd1b9 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/package-info.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/package-info.java @@ -42,15 +42,6 @@ *
  • `projects/redpepper-1290/locations/us-central1/clusters/my-redis` * * - *

    We use API version selector for Flex APIs - * - *

      - *
    • The versioning strategy is release-based versioning - *
    • Our backend CLH only deals with the superset version (called v1main) - *
    • Existing backend for Redis Gen1 and MRR is not touched. - *
    • More details in go/redis-flex-api-versioning - *
    - * *

    Sample for CloudRedisClusterClient: * *

    {@code
    diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/CloudRedisClusterStub.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/CloudRedisClusterStub.java
    index c136737abe0c..3311664a7ec8 100644
    --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/CloudRedisClusterStub.java
    +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/CloudRedisClusterStub.java
    @@ -16,6 +16,8 @@
     
     package com.google.cloud.redis.cluster.v1beta1.stub;
     
    +import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListBackupCollectionsPagedResponse;
    +import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListBackupsPagedResponse;
     import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListClustersPagedResponse;
     import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListLocationsPagedResponse;
     
    @@ -27,14 +29,26 @@
     import com.google.cloud.location.ListLocationsRequest;
     import com.google.cloud.location.ListLocationsResponse;
     import com.google.cloud.location.Location;
    +import com.google.cloud.redis.cluster.v1beta1.Backup;
    +import com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest;
    +import com.google.cloud.redis.cluster.v1beta1.BackupCollection;
     import com.google.cloud.redis.cluster.v1beta1.CertificateAuthority;
     import com.google.cloud.redis.cluster.v1beta1.Cluster;
     import com.google.cloud.redis.cluster.v1beta1.CreateClusterRequest;
    +import com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest;
     import com.google.cloud.redis.cluster.v1beta1.DeleteClusterRequest;
    +import com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest;
    +import com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest;
    +import com.google.cloud.redis.cluster.v1beta1.GetBackupRequest;
     import com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest;
     import com.google.cloud.redis.cluster.v1beta1.GetClusterRequest;
    +import com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest;
    +import com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse;
    +import com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest;
    +import com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse;
     import com.google.cloud.redis.cluster.v1beta1.ListClustersRequest;
     import com.google.cloud.redis.cluster.v1beta1.ListClustersResponse;
    +import com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest;
     import com.google.cloud.redis.cluster.v1beta1.UpdateClusterRequest;
     import com.google.longrunning.Operation;
     import com.google.longrunning.stub.OperationsStub;
    @@ -102,6 +116,69 @@ public UnaryCallable createClusterCallable() {
             "Not implemented: getClusterCertificateAuthorityCallable()");
       }
     
    +  public OperationCallable
    +      rescheduleClusterMaintenanceOperationCallable() {
    +    throw new UnsupportedOperationException(
    +        "Not implemented: rescheduleClusterMaintenanceOperationCallable()");
    +  }
    +
    +  public UnaryCallable
    +      rescheduleClusterMaintenanceCallable() {
    +    throw new UnsupportedOperationException(
    +        "Not implemented: rescheduleClusterMaintenanceCallable()");
    +  }
    +
    +  public UnaryCallable
    +      listBackupCollectionsPagedCallable() {
    +    throw new UnsupportedOperationException(
    +        "Not implemented: listBackupCollectionsPagedCallable()");
    +  }
    +
    +  public UnaryCallable
    +      listBackupCollectionsCallable() {
    +    throw new UnsupportedOperationException("Not implemented: listBackupCollectionsCallable()");
    +  }
    +
    +  public UnaryCallable getBackupCollectionCallable() {
    +    throw new UnsupportedOperationException("Not implemented: getBackupCollectionCallable()");
    +  }
    +
    +  public UnaryCallable listBackupsPagedCallable() {
    +    throw new UnsupportedOperationException("Not implemented: listBackupsPagedCallable()");
    +  }
    +
    +  public UnaryCallable listBackupsCallable() {
    +    throw new UnsupportedOperationException("Not implemented: listBackupsCallable()");
    +  }
    +
    +  public UnaryCallable getBackupCallable() {
    +    throw new UnsupportedOperationException("Not implemented: getBackupCallable()");
    +  }
    +
    +  public OperationCallable deleteBackupOperationCallable() {
    +    throw new UnsupportedOperationException("Not implemented: deleteBackupOperationCallable()");
    +  }
    +
    +  public UnaryCallable deleteBackupCallable() {
    +    throw new UnsupportedOperationException("Not implemented: deleteBackupCallable()");
    +  }
    +
    +  public OperationCallable exportBackupOperationCallable() {
    +    throw new UnsupportedOperationException("Not implemented: exportBackupOperationCallable()");
    +  }
    +
    +  public UnaryCallable exportBackupCallable() {
    +    throw new UnsupportedOperationException("Not implemented: exportBackupCallable()");
    +  }
    +
    +  public OperationCallable backupClusterOperationCallable() {
    +    throw new UnsupportedOperationException("Not implemented: backupClusterOperationCallable()");
    +  }
    +
    +  public UnaryCallable backupClusterCallable() {
    +    throw new UnsupportedOperationException("Not implemented: backupClusterCallable()");
    +  }
    +
       public UnaryCallable
           listLocationsPagedCallable() {
         throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
    diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/CloudRedisClusterStubSettings.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/CloudRedisClusterStubSettings.java
    index e5c3e5943c20..ccd92c17af26 100644
    --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/CloudRedisClusterStubSettings.java
    +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/CloudRedisClusterStubSettings.java
    @@ -16,6 +16,8 @@
     
     package com.google.cloud.redis.cluster.v1beta1.stub;
     
    +import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListBackupCollectionsPagedResponse;
    +import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListBackupsPagedResponse;
     import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListClustersPagedResponse;
     import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListLocationsPagedResponse;
     
    @@ -53,14 +55,26 @@
     import com.google.cloud.location.ListLocationsRequest;
     import com.google.cloud.location.ListLocationsResponse;
     import com.google.cloud.location.Location;
    +import com.google.cloud.redis.cluster.v1beta1.Backup;
    +import com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest;
    +import com.google.cloud.redis.cluster.v1beta1.BackupCollection;
     import com.google.cloud.redis.cluster.v1beta1.CertificateAuthority;
     import com.google.cloud.redis.cluster.v1beta1.Cluster;
     import com.google.cloud.redis.cluster.v1beta1.CreateClusterRequest;
    +import com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest;
     import com.google.cloud.redis.cluster.v1beta1.DeleteClusterRequest;
    +import com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest;
    +import com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest;
    +import com.google.cloud.redis.cluster.v1beta1.GetBackupRequest;
     import com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest;
     import com.google.cloud.redis.cluster.v1beta1.GetClusterRequest;
    +import com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest;
    +import com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse;
    +import com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest;
    +import com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse;
     import com.google.cloud.redis.cluster.v1beta1.ListClustersRequest;
     import com.google.cloud.redis.cluster.v1beta1.ListClustersResponse;
    +import com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest;
     import com.google.cloud.redis.cluster.v1beta1.UpdateClusterRequest;
     import com.google.common.collect.ImmutableList;
     import com.google.common.collect.ImmutableMap;
    @@ -173,6 +187,29 @@ public class CloudRedisClusterStubSettings extends StubSettings
           getClusterCertificateAuthoritySettings;
    +  private final UnaryCallSettings
    +      rescheduleClusterMaintenanceSettings;
    +  private final OperationCallSettings
    +      rescheduleClusterMaintenanceOperationSettings;
    +  private final PagedCallSettings<
    +          ListBackupCollectionsRequest,
    +          ListBackupCollectionsResponse,
    +          ListBackupCollectionsPagedResponse>
    +      listBackupCollectionsSettings;
    +  private final UnaryCallSettings
    +      getBackupCollectionSettings;
    +  private final PagedCallSettings
    +      listBackupsSettings;
    +  private final UnaryCallSettings getBackupSettings;
    +  private final UnaryCallSettings deleteBackupSettings;
    +  private final OperationCallSettings
    +      deleteBackupOperationSettings;
    +  private final UnaryCallSettings exportBackupSettings;
    +  private final OperationCallSettings
    +      exportBackupOperationSettings;
    +  private final UnaryCallSettings backupClusterSettings;
    +  private final OperationCallSettings
    +      backupClusterOperationSettings;
       private final PagedCallSettings<
               ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
           listLocationsSettings;
    @@ -212,6 +249,79 @@ public Iterable extractResources(ListClustersResponse payload) {
                 }
               };
     
    +  private static final PagedListDescriptor<
    +          ListBackupCollectionsRequest, ListBackupCollectionsResponse, BackupCollection>
    +      LIST_BACKUP_COLLECTIONS_PAGE_STR_DESC =
    +          new PagedListDescriptor<
    +              ListBackupCollectionsRequest, ListBackupCollectionsResponse, BackupCollection>() {
    +            @Override
    +            public String emptyToken() {
    +              return "";
    +            }
    +
    +            @Override
    +            public ListBackupCollectionsRequest injectToken(
    +                ListBackupCollectionsRequest payload, String token) {
    +              return ListBackupCollectionsRequest.newBuilder(payload).setPageToken(token).build();
    +            }
    +
    +            @Override
    +            public ListBackupCollectionsRequest injectPageSize(
    +                ListBackupCollectionsRequest payload, int pageSize) {
    +              return ListBackupCollectionsRequest.newBuilder(payload).setPageSize(pageSize).build();
    +            }
    +
    +            @Override
    +            public Integer extractPageSize(ListBackupCollectionsRequest payload) {
    +              return payload.getPageSize();
    +            }
    +
    +            @Override
    +            public String extractNextToken(ListBackupCollectionsResponse payload) {
    +              return payload.getNextPageToken();
    +            }
    +
    +            @Override
    +            public Iterable extractResources(
    +                ListBackupCollectionsResponse payload) {
    +              return payload.getBackupCollectionsList();
    +            }
    +          };
    +
    +  private static final PagedListDescriptor
    +      LIST_BACKUPS_PAGE_STR_DESC =
    +          new PagedListDescriptor() {
    +            @Override
    +            public String emptyToken() {
    +              return "";
    +            }
    +
    +            @Override
    +            public ListBackupsRequest injectToken(ListBackupsRequest payload, String token) {
    +              return ListBackupsRequest.newBuilder(payload).setPageToken(token).build();
    +            }
    +
    +            @Override
    +            public ListBackupsRequest injectPageSize(ListBackupsRequest payload, int pageSize) {
    +              return ListBackupsRequest.newBuilder(payload).setPageSize(pageSize).build();
    +            }
    +
    +            @Override
    +            public Integer extractPageSize(ListBackupsRequest payload) {
    +              return payload.getPageSize();
    +            }
    +
    +            @Override
    +            public String extractNextToken(ListBackupsResponse payload) {
    +              return payload.getNextPageToken();
    +            }
    +
    +            @Override
    +            public Iterable extractResources(ListBackupsResponse payload) {
    +              return payload.getBackupsList();
    +            }
    +          };
    +
       private static final PagedListDescriptor
           LIST_LOCATIONS_PAGE_STR_DESC =
               new PagedListDescriptor() {
    @@ -263,6 +373,47 @@ public ApiFuture getFuturePagedResponse(
                 }
               };
     
    +  private static final PagedListResponseFactory<
    +          ListBackupCollectionsRequest,
    +          ListBackupCollectionsResponse,
    +          ListBackupCollectionsPagedResponse>
    +      LIST_BACKUP_COLLECTIONS_PAGE_STR_FACT =
    +          new PagedListResponseFactory<
    +              ListBackupCollectionsRequest,
    +              ListBackupCollectionsResponse,
    +              ListBackupCollectionsPagedResponse>() {
    +            @Override
    +            public ApiFuture getFuturePagedResponse(
    +                UnaryCallable callable,
    +                ListBackupCollectionsRequest request,
    +                ApiCallContext context,
    +                ApiFuture futureResponse) {
    +              PageContext<
    +                      ListBackupCollectionsRequest, ListBackupCollectionsResponse, BackupCollection>
    +                  pageContext =
    +                      PageContext.create(
    +                          callable, LIST_BACKUP_COLLECTIONS_PAGE_STR_DESC, request, context);
    +              return ListBackupCollectionsPagedResponse.createAsync(pageContext, futureResponse);
    +            }
    +          };
    +
    +  private static final PagedListResponseFactory<
    +          ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse>
    +      LIST_BACKUPS_PAGE_STR_FACT =
    +          new PagedListResponseFactory<
    +              ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse>() {
    +            @Override
    +            public ApiFuture getFuturePagedResponse(
    +                UnaryCallable callable,
    +                ListBackupsRequest request,
    +                ApiCallContext context,
    +                ApiFuture futureResponse) {
    +              PageContext pageContext =
    +                  PageContext.create(callable, LIST_BACKUPS_PAGE_STR_DESC, request, context);
    +              return ListBackupsPagedResponse.createAsync(pageContext, futureResponse);
    +            }
    +          };
    +
       private static final PagedListResponseFactory<
               ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
           LIST_LOCATIONS_PAGE_STR_FACT =
    @@ -329,6 +480,75 @@ public UnaryCallSettings createClusterSettings(
         return getClusterCertificateAuthoritySettings;
       }
     
    +  /** Returns the object with the settings used for calls to rescheduleClusterMaintenance. */
    +  public UnaryCallSettings
    +      rescheduleClusterMaintenanceSettings() {
    +    return rescheduleClusterMaintenanceSettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to rescheduleClusterMaintenance. */
    +  public OperationCallSettings
    +      rescheduleClusterMaintenanceOperationSettings() {
    +    return rescheduleClusterMaintenanceOperationSettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to listBackupCollections. */
    +  public PagedCallSettings<
    +          ListBackupCollectionsRequest,
    +          ListBackupCollectionsResponse,
    +          ListBackupCollectionsPagedResponse>
    +      listBackupCollectionsSettings() {
    +    return listBackupCollectionsSettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to getBackupCollection. */
    +  public UnaryCallSettings
    +      getBackupCollectionSettings() {
    +    return getBackupCollectionSettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to listBackups. */
    +  public PagedCallSettings
    +      listBackupsSettings() {
    +    return listBackupsSettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to getBackup. */
    +  public UnaryCallSettings getBackupSettings() {
    +    return getBackupSettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to deleteBackup. */
    +  public UnaryCallSettings deleteBackupSettings() {
    +    return deleteBackupSettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to deleteBackup. */
    +  public OperationCallSettings deleteBackupOperationSettings() {
    +    return deleteBackupOperationSettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to exportBackup. */
    +  public UnaryCallSettings exportBackupSettings() {
    +    return exportBackupSettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to exportBackup. */
    +  public OperationCallSettings exportBackupOperationSettings() {
    +    return exportBackupOperationSettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to backupCluster. */
    +  public UnaryCallSettings backupClusterSettings() {
    +    return backupClusterSettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to backupCluster. */
    +  public OperationCallSettings
    +      backupClusterOperationSettings() {
    +    return backupClusterOperationSettings;
    +  }
    +
       /** Returns the object with the settings used for calls to listLocations. */
       public PagedCallSettings
           listLocationsSettings() {
    @@ -461,6 +681,20 @@ protected CloudRedisClusterStubSettings(Builder settingsBuilder) throws IOExcept
         createClusterOperationSettings = settingsBuilder.createClusterOperationSettings().build();
         getClusterCertificateAuthoritySettings =
             settingsBuilder.getClusterCertificateAuthoritySettings().build();
    +    rescheduleClusterMaintenanceSettings =
    +        settingsBuilder.rescheduleClusterMaintenanceSettings().build();
    +    rescheduleClusterMaintenanceOperationSettings =
    +        settingsBuilder.rescheduleClusterMaintenanceOperationSettings().build();
    +    listBackupCollectionsSettings = settingsBuilder.listBackupCollectionsSettings().build();
    +    getBackupCollectionSettings = settingsBuilder.getBackupCollectionSettings().build();
    +    listBackupsSettings = settingsBuilder.listBackupsSettings().build();
    +    getBackupSettings = settingsBuilder.getBackupSettings().build();
    +    deleteBackupSettings = settingsBuilder.deleteBackupSettings().build();
    +    deleteBackupOperationSettings = settingsBuilder.deleteBackupOperationSettings().build();
    +    exportBackupSettings = settingsBuilder.exportBackupSettings().build();
    +    exportBackupOperationSettings = settingsBuilder.exportBackupOperationSettings().build();
    +    backupClusterSettings = settingsBuilder.backupClusterSettings().build();
    +    backupClusterOperationSettings = settingsBuilder.backupClusterOperationSettings().build();
         listLocationsSettings = settingsBuilder.listLocationsSettings().build();
         getLocationSettings = settingsBuilder.getLocationSettings().build();
       }
    @@ -484,6 +718,30 @@ public static class Builder extends StubSettings.Builder
             getClusterCertificateAuthoritySettings;
    +    private final UnaryCallSettings.Builder
    +        rescheduleClusterMaintenanceSettings;
    +    private final OperationCallSettings.Builder
    +        rescheduleClusterMaintenanceOperationSettings;
    +    private final PagedCallSettings.Builder<
    +            ListBackupCollectionsRequest,
    +            ListBackupCollectionsResponse,
    +            ListBackupCollectionsPagedResponse>
    +        listBackupCollectionsSettings;
    +    private final UnaryCallSettings.Builder
    +        getBackupCollectionSettings;
    +    private final PagedCallSettings.Builder<
    +            ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse>
    +        listBackupsSettings;
    +    private final UnaryCallSettings.Builder getBackupSettings;
    +    private final UnaryCallSettings.Builder deleteBackupSettings;
    +    private final OperationCallSettings.Builder
    +        deleteBackupOperationSettings;
    +    private final UnaryCallSettings.Builder exportBackupSettings;
    +    private final OperationCallSettings.Builder
    +        exportBackupOperationSettings;
    +    private final UnaryCallSettings.Builder backupClusterSettings;
    +    private final OperationCallSettings.Builder
    +        backupClusterOperationSettings;
         private final PagedCallSettings.Builder<
                 ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
             listLocationsSettings;
    @@ -534,6 +792,19 @@ protected Builder(ClientContext clientContext) {
           createClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
           createClusterOperationSettings = OperationCallSettings.newBuilder();
           getClusterCertificateAuthoritySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
    +      rescheduleClusterMaintenanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
    +      rescheduleClusterMaintenanceOperationSettings = OperationCallSettings.newBuilder();
    +      listBackupCollectionsSettings =
    +          PagedCallSettings.newBuilder(LIST_BACKUP_COLLECTIONS_PAGE_STR_FACT);
    +      getBackupCollectionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
    +      listBackupsSettings = PagedCallSettings.newBuilder(LIST_BACKUPS_PAGE_STR_FACT);
    +      getBackupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
    +      deleteBackupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
    +      deleteBackupOperationSettings = OperationCallSettings.newBuilder();
    +      exportBackupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
    +      exportBackupOperationSettings = OperationCallSettings.newBuilder();
    +      backupClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
    +      backupClusterOperationSettings = OperationCallSettings.newBuilder();
           listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
           getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
     
    @@ -545,6 +816,14 @@ protected Builder(ClientContext clientContext) {
                   deleteClusterSettings,
                   createClusterSettings,
                   getClusterCertificateAuthoritySettings,
    +              rescheduleClusterMaintenanceSettings,
    +              listBackupCollectionsSettings,
    +              getBackupCollectionSettings,
    +              listBackupsSettings,
    +              getBackupSettings,
    +              deleteBackupSettings,
    +              exportBackupSettings,
    +              backupClusterSettings,
                   listLocationsSettings,
                   getLocationSettings);
           initDefaults(this);
    @@ -563,6 +842,20 @@ protected Builder(CloudRedisClusterStubSettings settings) {
           createClusterOperationSettings = settings.createClusterOperationSettings.toBuilder();
           getClusterCertificateAuthoritySettings =
               settings.getClusterCertificateAuthoritySettings.toBuilder();
    +      rescheduleClusterMaintenanceSettings =
    +          settings.rescheduleClusterMaintenanceSettings.toBuilder();
    +      rescheduleClusterMaintenanceOperationSettings =
    +          settings.rescheduleClusterMaintenanceOperationSettings.toBuilder();
    +      listBackupCollectionsSettings = settings.listBackupCollectionsSettings.toBuilder();
    +      getBackupCollectionSettings = settings.getBackupCollectionSettings.toBuilder();
    +      listBackupsSettings = settings.listBackupsSettings.toBuilder();
    +      getBackupSettings = settings.getBackupSettings.toBuilder();
    +      deleteBackupSettings = settings.deleteBackupSettings.toBuilder();
    +      deleteBackupOperationSettings = settings.deleteBackupOperationSettings.toBuilder();
    +      exportBackupSettings = settings.exportBackupSettings.toBuilder();
    +      exportBackupOperationSettings = settings.exportBackupOperationSettings.toBuilder();
    +      backupClusterSettings = settings.backupClusterSettings.toBuilder();
    +      backupClusterOperationSettings = settings.backupClusterOperationSettings.toBuilder();
           listLocationsSettings = settings.listLocationsSettings.toBuilder();
           getLocationSettings = settings.getLocationSettings.toBuilder();
     
    @@ -574,6 +867,14 @@ protected Builder(CloudRedisClusterStubSettings settings) {
                   deleteClusterSettings,
                   createClusterSettings,
                   getClusterCertificateAuthoritySettings,
    +              rescheduleClusterMaintenanceSettings,
    +              listBackupCollectionsSettings,
    +              getBackupCollectionSettings,
    +              listBackupsSettings,
    +              getBackupSettings,
    +              deleteBackupSettings,
    +              exportBackupSettings,
    +              backupClusterSettings,
                   listLocationsSettings,
                   getLocationSettings);
         }
    @@ -633,6 +934,46 @@ 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
    +          .rescheduleClusterMaintenanceSettings()
    +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
    +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
    +
    +      builder
    +          .listBackupCollectionsSettings()
    +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
    +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
    +
    +      builder
    +          .getBackupCollectionSettings()
    +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
    +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
    +
    +      builder
    +          .listBackupsSettings()
    +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
    +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
    +
    +      builder
    +          .getBackupSettings()
    +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
    +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
    +
    +      builder
    +          .deleteBackupSettings()
    +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
    +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
    +
    +      builder
    +          .exportBackupSettings()
    +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
    +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
    +
    +      builder
    +          .backupClusterSettings()
    +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
    +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
    +
           builder
               .listLocationsSettings()
               .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
    @@ -712,6 +1053,99 @@ private static Builder initDefaults(Builder builder) {
                           .setTotalTimeoutDuration(Duration.ofMillis(7200000L))
                           .build()));
     
    +      builder
    +          .rescheduleClusterMaintenanceOperationSettings()
    +          .setInitialCallSettings(
    +              UnaryCallSettings
    +                  .
    +                      newUnaryCallSettingsBuilder()
    +                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
    +                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"))
    +                  .build())
    +          .setResponseTransformer(
    +              ProtoOperationTransformers.ResponseTransformer.create(Cluster.class))
    +          .setMetadataTransformer(ProtoOperationTransformers.MetadataTransformer.create(Any.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
    +          .deleteBackupOperationSettings()
    +          .setInitialCallSettings(
    +              UnaryCallSettings
    +                  .newUnaryCallSettingsBuilder()
    +                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
    +                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"))
    +                  .build())
    +          .setResponseTransformer(
    +              ProtoOperationTransformers.ResponseTransformer.create(Empty.class))
    +          .setMetadataTransformer(ProtoOperationTransformers.MetadataTransformer.create(Any.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
    +          .exportBackupOperationSettings()
    +          .setInitialCallSettings(
    +              UnaryCallSettings
    +                  .newUnaryCallSettingsBuilder()
    +                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
    +                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"))
    +                  .build())
    +          .setResponseTransformer(
    +              ProtoOperationTransformers.ResponseTransformer.create(Backup.class))
    +          .setMetadataTransformer(ProtoOperationTransformers.MetadataTransformer.create(Any.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
    +          .backupClusterOperationSettings()
    +          .setInitialCallSettings(
    +              UnaryCallSettings
    +                  .newUnaryCallSettingsBuilder()
    +                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
    +                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"))
    +                  .build())
    +          .setResponseTransformer(
    +              ProtoOperationTransformers.ResponseTransformer.create(Cluster.class))
    +          .setMetadataTransformer(ProtoOperationTransformers.MetadataTransformer.create(Any.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;
         }
     
    @@ -781,6 +1215,78 @@ public UnaryCallSettings.Builder createClusterS
           return getClusterCertificateAuthoritySettings;
         }
     
    +    /** Returns the builder for the settings used for calls to rescheduleClusterMaintenance. */
    +    public UnaryCallSettings.Builder
    +        rescheduleClusterMaintenanceSettings() {
    +      return rescheduleClusterMaintenanceSettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to rescheduleClusterMaintenance. */
    +    public OperationCallSettings.Builder
    +        rescheduleClusterMaintenanceOperationSettings() {
    +      return rescheduleClusterMaintenanceOperationSettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to listBackupCollections. */
    +    public PagedCallSettings.Builder<
    +            ListBackupCollectionsRequest,
    +            ListBackupCollectionsResponse,
    +            ListBackupCollectionsPagedResponse>
    +        listBackupCollectionsSettings() {
    +      return listBackupCollectionsSettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to getBackupCollection. */
    +    public UnaryCallSettings.Builder
    +        getBackupCollectionSettings() {
    +      return getBackupCollectionSettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to listBackups. */
    +    public PagedCallSettings.Builder<
    +            ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse>
    +        listBackupsSettings() {
    +      return listBackupsSettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to getBackup. */
    +    public UnaryCallSettings.Builder getBackupSettings() {
    +      return getBackupSettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to deleteBackup. */
    +    public UnaryCallSettings.Builder deleteBackupSettings() {
    +      return deleteBackupSettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to deleteBackup. */
    +    public OperationCallSettings.Builder
    +        deleteBackupOperationSettings() {
    +      return deleteBackupOperationSettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to exportBackup. */
    +    public UnaryCallSettings.Builder exportBackupSettings() {
    +      return exportBackupSettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to exportBackup. */
    +    public OperationCallSettings.Builder
    +        exportBackupOperationSettings() {
    +      return exportBackupOperationSettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to backupCluster. */
    +    public UnaryCallSettings.Builder backupClusterSettings() {
    +      return backupClusterSettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to backupCluster. */
    +    public OperationCallSettings.Builder
    +        backupClusterOperationSettings() {
    +      return backupClusterOperationSettings;
    +    }
    +
         /** Returns the builder for the settings used for calls to listLocations. */
         public PagedCallSettings.Builder<
                 ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
    diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/GrpcCloudRedisClusterStub.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/GrpcCloudRedisClusterStub.java
    index bb75e63741cd..4d6d81dfa22f 100644
    --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/GrpcCloudRedisClusterStub.java
    +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/GrpcCloudRedisClusterStub.java
    @@ -16,6 +16,8 @@
     
     package com.google.cloud.redis.cluster.v1beta1.stub;
     
    +import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListBackupCollectionsPagedResponse;
    +import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListBackupsPagedResponse;
     import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListClustersPagedResponse;
     import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListLocationsPagedResponse;
     
    @@ -32,14 +34,26 @@
     import com.google.cloud.location.ListLocationsRequest;
     import com.google.cloud.location.ListLocationsResponse;
     import com.google.cloud.location.Location;
    +import com.google.cloud.redis.cluster.v1beta1.Backup;
    +import com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest;
    +import com.google.cloud.redis.cluster.v1beta1.BackupCollection;
     import com.google.cloud.redis.cluster.v1beta1.CertificateAuthority;
     import com.google.cloud.redis.cluster.v1beta1.Cluster;
     import com.google.cloud.redis.cluster.v1beta1.CreateClusterRequest;
    +import com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest;
     import com.google.cloud.redis.cluster.v1beta1.DeleteClusterRequest;
    +import com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest;
    +import com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest;
    +import com.google.cloud.redis.cluster.v1beta1.GetBackupRequest;
     import com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest;
     import com.google.cloud.redis.cluster.v1beta1.GetClusterRequest;
    +import com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest;
    +import com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse;
    +import com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest;
    +import com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse;
     import com.google.cloud.redis.cluster.v1beta1.ListClustersRequest;
     import com.google.cloud.redis.cluster.v1beta1.ListClustersResponse;
    +import com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest;
     import com.google.cloud.redis.cluster.v1beta1.UpdateClusterRequest;
     import com.google.longrunning.Operation;
     import com.google.longrunning.stub.GrpcOperationsStub;
    @@ -124,6 +138,89 @@ public class GrpcCloudRedisClusterStub extends CloudRedisClusterStub {
                       ProtoUtils.marshaller(CertificateAuthority.getDefaultInstance()))
                   .build();
     
    +  private static final MethodDescriptor
    +      rescheduleClusterMaintenanceMethodDescriptor =
    +          MethodDescriptor.newBuilder()
    +              .setType(MethodDescriptor.MethodType.UNARY)
    +              .setFullMethodName(
    +                  "google.cloud.redis.cluster.v1beta1.CloudRedisCluster/RescheduleClusterMaintenance")
    +              .setRequestMarshaller(
    +                  ProtoUtils.marshaller(RescheduleClusterMaintenanceRequest.getDefaultInstance()))
    +              .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
    +              .build();
    +
    +  private static final MethodDescriptor
    +      listBackupCollectionsMethodDescriptor =
    +          MethodDescriptor.newBuilder()
    +              .setType(MethodDescriptor.MethodType.UNARY)
    +              .setFullMethodName(
    +                  "google.cloud.redis.cluster.v1beta1.CloudRedisCluster/ListBackupCollections")
    +              .setRequestMarshaller(
    +                  ProtoUtils.marshaller(ListBackupCollectionsRequest.getDefaultInstance()))
    +              .setResponseMarshaller(
    +                  ProtoUtils.marshaller(ListBackupCollectionsResponse.getDefaultInstance()))
    +              .build();
    +
    +  private static final MethodDescriptor
    +      getBackupCollectionMethodDescriptor =
    +          MethodDescriptor.newBuilder()
    +              .setType(MethodDescriptor.MethodType.UNARY)
    +              .setFullMethodName(
    +                  "google.cloud.redis.cluster.v1beta1.CloudRedisCluster/GetBackupCollection")
    +              .setRequestMarshaller(
    +                  ProtoUtils.marshaller(GetBackupCollectionRequest.getDefaultInstance()))
    +              .setResponseMarshaller(ProtoUtils.marshaller(BackupCollection.getDefaultInstance()))
    +              .build();
    +
    +  private static final MethodDescriptor
    +      listBackupsMethodDescriptor =
    +          MethodDescriptor.newBuilder()
    +              .setType(MethodDescriptor.MethodType.UNARY)
    +              .setFullMethodName("google.cloud.redis.cluster.v1beta1.CloudRedisCluster/ListBackups")
    +              .setRequestMarshaller(ProtoUtils.marshaller(ListBackupsRequest.getDefaultInstance()))
    +              .setResponseMarshaller(
    +                  ProtoUtils.marshaller(ListBackupsResponse.getDefaultInstance()))
    +              .build();
    +
    +  private static final MethodDescriptor getBackupMethodDescriptor =
    +      MethodDescriptor.newBuilder()
    +          .setType(MethodDescriptor.MethodType.UNARY)
    +          .setFullMethodName("google.cloud.redis.cluster.v1beta1.CloudRedisCluster/GetBackup")
    +          .setRequestMarshaller(ProtoUtils.marshaller(GetBackupRequest.getDefaultInstance()))
    +          .setResponseMarshaller(ProtoUtils.marshaller(Backup.getDefaultInstance()))
    +          .build();
    +
    +  private static final MethodDescriptor
    +      deleteBackupMethodDescriptor =
    +          MethodDescriptor.newBuilder()
    +              .setType(MethodDescriptor.MethodType.UNARY)
    +              .setFullMethodName(
    +                  "google.cloud.redis.cluster.v1beta1.CloudRedisCluster/DeleteBackup")
    +              .setRequestMarshaller(ProtoUtils.marshaller(DeleteBackupRequest.getDefaultInstance()))
    +              .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
    +              .build();
    +
    +  private static final MethodDescriptor
    +      exportBackupMethodDescriptor =
    +          MethodDescriptor.newBuilder()
    +              .setType(MethodDescriptor.MethodType.UNARY)
    +              .setFullMethodName(
    +                  "google.cloud.redis.cluster.v1beta1.CloudRedisCluster/ExportBackup")
    +              .setRequestMarshaller(ProtoUtils.marshaller(ExportBackupRequest.getDefaultInstance()))
    +              .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
    +              .build();
    +
    +  private static final MethodDescriptor
    +      backupClusterMethodDescriptor =
    +          MethodDescriptor.newBuilder()
    +              .setType(MethodDescriptor.MethodType.UNARY)
    +              .setFullMethodName(
    +                  "google.cloud.redis.cluster.v1beta1.CloudRedisCluster/BackupCluster")
    +              .setRequestMarshaller(
    +                  ProtoUtils.marshaller(BackupClusterRequest.getDefaultInstance()))
    +              .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
    +              .build();
    +
       private static final MethodDescriptor
           listLocationsMethodDescriptor =
               MethodDescriptor.newBuilder()
    @@ -157,6 +254,27 @@ public class GrpcCloudRedisClusterStub extends CloudRedisClusterStub {
           createClusterOperationCallable;
       private final UnaryCallable
           getClusterCertificateAuthorityCallable;
    +  private final UnaryCallable
    +      rescheduleClusterMaintenanceCallable;
    +  private final OperationCallable
    +      rescheduleClusterMaintenanceOperationCallable;
    +  private final UnaryCallable
    +      listBackupCollectionsCallable;
    +  private final UnaryCallable
    +      listBackupCollectionsPagedCallable;
    +  private final UnaryCallable
    +      getBackupCollectionCallable;
    +  private final UnaryCallable listBackupsCallable;
    +  private final UnaryCallable
    +      listBackupsPagedCallable;
    +  private final UnaryCallable getBackupCallable;
    +  private final UnaryCallable deleteBackupCallable;
    +  private final OperationCallable deleteBackupOperationCallable;
    +  private final UnaryCallable exportBackupCallable;
    +  private final OperationCallable exportBackupOperationCallable;
    +  private final UnaryCallable backupClusterCallable;
    +  private final OperationCallable
    +      backupClusterOperationCallable;
       private final UnaryCallable listLocationsCallable;
       private final UnaryCallable
           listLocationsPagedCallable;
    @@ -268,6 +386,90 @@ protected GrpcCloudRedisClusterStub(
                           return builder.build();
                         })
                     .build();
    +    GrpcCallSettings
    +        rescheduleClusterMaintenanceTransportSettings =
    +            GrpcCallSettings.newBuilder()
    +                .setMethodDescriptor(rescheduleClusterMaintenanceMethodDescriptor)
    +                .setParamsExtractor(
    +                    request -> {
    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                      builder.add("name", String.valueOf(request.getName()));
    +                      return builder.build();
    +                    })
    +                .build();
    +    GrpcCallSettings
    +        listBackupCollectionsTransportSettings =
    +            GrpcCallSettings
    +                .newBuilder()
    +                .setMethodDescriptor(listBackupCollectionsMethodDescriptor)
    +                .setParamsExtractor(
    +                    request -> {
    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                      builder.add("parent", String.valueOf(request.getParent()));
    +                      return builder.build();
    +                    })
    +                .build();
    +    GrpcCallSettings
    +        getBackupCollectionTransportSettings =
    +            GrpcCallSettings.newBuilder()
    +                .setMethodDescriptor(getBackupCollectionMethodDescriptor)
    +                .setParamsExtractor(
    +                    request -> {
    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                      builder.add("name", String.valueOf(request.getName()));
    +                      return builder.build();
    +                    })
    +                .build();
    +    GrpcCallSettings listBackupsTransportSettings =
    +        GrpcCallSettings.newBuilder()
    +            .setMethodDescriptor(listBackupsMethodDescriptor)
    +            .setParamsExtractor(
    +                request -> {
    +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                  builder.add("parent", String.valueOf(request.getParent()));
    +                  return builder.build();
    +                })
    +            .build();
    +    GrpcCallSettings getBackupTransportSettings =
    +        GrpcCallSettings.newBuilder()
    +            .setMethodDescriptor(getBackupMethodDescriptor)
    +            .setParamsExtractor(
    +                request -> {
    +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                  builder.add("name", String.valueOf(request.getName()));
    +                  return builder.build();
    +                })
    +            .build();
    +    GrpcCallSettings deleteBackupTransportSettings =
    +        GrpcCallSettings.newBuilder()
    +            .setMethodDescriptor(deleteBackupMethodDescriptor)
    +            .setParamsExtractor(
    +                request -> {
    +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                  builder.add("name", String.valueOf(request.getName()));
    +                  return builder.build();
    +                })
    +            .build();
    +    GrpcCallSettings exportBackupTransportSettings =
    +        GrpcCallSettings.newBuilder()
    +            .setMethodDescriptor(exportBackupMethodDescriptor)
    +            .setParamsExtractor(
    +                request -> {
    +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                  builder.add("name", String.valueOf(request.getName()));
    +                  return builder.build();
    +                })
    +            .build();
    +    GrpcCallSettings backupClusterTransportSettings =
    +        GrpcCallSettings.newBuilder()
    +            .setMethodDescriptor(backupClusterMethodDescriptor)
    +            .setParamsExtractor(
    +                request -> {
    +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                  builder.add("name", String.valueOf(request.getName()));
    +                  return builder.build();
    +                })
    +            .build();
         GrpcCallSettings listLocationsTransportSettings =
             GrpcCallSettings.newBuilder()
                 .setMethodDescriptor(listLocationsMethodDescriptor)
    @@ -330,6 +532,68 @@ protected GrpcCloudRedisClusterStub(
                 getClusterCertificateAuthorityTransportSettings,
                 settings.getClusterCertificateAuthoritySettings(),
                 clientContext);
    +    this.rescheduleClusterMaintenanceCallable =
    +        callableFactory.createUnaryCallable(
    +            rescheduleClusterMaintenanceTransportSettings,
    +            settings.rescheduleClusterMaintenanceSettings(),
    +            clientContext);
    +    this.rescheduleClusterMaintenanceOperationCallable =
    +        callableFactory.createOperationCallable(
    +            rescheduleClusterMaintenanceTransportSettings,
    +            settings.rescheduleClusterMaintenanceOperationSettings(),
    +            clientContext,
    +            operationsStub);
    +    this.listBackupCollectionsCallable =
    +        callableFactory.createUnaryCallable(
    +            listBackupCollectionsTransportSettings,
    +            settings.listBackupCollectionsSettings(),
    +            clientContext);
    +    this.listBackupCollectionsPagedCallable =
    +        callableFactory.createPagedCallable(
    +            listBackupCollectionsTransportSettings,
    +            settings.listBackupCollectionsSettings(),
    +            clientContext);
    +    this.getBackupCollectionCallable =
    +        callableFactory.createUnaryCallable(
    +            getBackupCollectionTransportSettings,
    +            settings.getBackupCollectionSettings(),
    +            clientContext);
    +    this.listBackupsCallable =
    +        callableFactory.createUnaryCallable(
    +            listBackupsTransportSettings, settings.listBackupsSettings(), clientContext);
    +    this.listBackupsPagedCallable =
    +        callableFactory.createPagedCallable(
    +            listBackupsTransportSettings, settings.listBackupsSettings(), clientContext);
    +    this.getBackupCallable =
    +        callableFactory.createUnaryCallable(
    +            getBackupTransportSettings, settings.getBackupSettings(), clientContext);
    +    this.deleteBackupCallable =
    +        callableFactory.createUnaryCallable(
    +            deleteBackupTransportSettings, settings.deleteBackupSettings(), clientContext);
    +    this.deleteBackupOperationCallable =
    +        callableFactory.createOperationCallable(
    +            deleteBackupTransportSettings,
    +            settings.deleteBackupOperationSettings(),
    +            clientContext,
    +            operationsStub);
    +    this.exportBackupCallable =
    +        callableFactory.createUnaryCallable(
    +            exportBackupTransportSettings, settings.exportBackupSettings(), clientContext);
    +    this.exportBackupOperationCallable =
    +        callableFactory.createOperationCallable(
    +            exportBackupTransportSettings,
    +            settings.exportBackupOperationSettings(),
    +            clientContext,
    +            operationsStub);
    +    this.backupClusterCallable =
    +        callableFactory.createUnaryCallable(
    +            backupClusterTransportSettings, settings.backupClusterSettings(), clientContext);
    +    this.backupClusterOperationCallable =
    +        callableFactory.createOperationCallable(
    +            backupClusterTransportSettings,
    +            settings.backupClusterOperationSettings(),
    +            clientContext,
    +            operationsStub);
         this.listLocationsCallable =
             callableFactory.createUnaryCallable(
                 listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
    @@ -399,6 +663,80 @@ public OperationCallable createClusterOperat
         return getClusterCertificateAuthorityCallable;
       }
     
    +  @Override
    +  public UnaryCallable
    +      rescheduleClusterMaintenanceCallable() {
    +    return rescheduleClusterMaintenanceCallable;
    +  }
    +
    +  @Override
    +  public OperationCallable
    +      rescheduleClusterMaintenanceOperationCallable() {
    +    return rescheduleClusterMaintenanceOperationCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable
    +      listBackupCollectionsCallable() {
    +    return listBackupCollectionsCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable
    +      listBackupCollectionsPagedCallable() {
    +    return listBackupCollectionsPagedCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable getBackupCollectionCallable() {
    +    return getBackupCollectionCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable listBackupsCallable() {
    +    return listBackupsCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable listBackupsPagedCallable() {
    +    return listBackupsPagedCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable getBackupCallable() {
    +    return getBackupCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable deleteBackupCallable() {
    +    return deleteBackupCallable;
    +  }
    +
    +  @Override
    +  public OperationCallable deleteBackupOperationCallable() {
    +    return deleteBackupOperationCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable exportBackupCallable() {
    +    return exportBackupCallable;
    +  }
    +
    +  @Override
    +  public OperationCallable exportBackupOperationCallable() {
    +    return exportBackupOperationCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable backupClusterCallable() {
    +    return backupClusterCallable;
    +  }
    +
    +  @Override
    +  public OperationCallable backupClusterOperationCallable() {
    +    return backupClusterOperationCallable;
    +  }
    +
       @Override
       public UnaryCallable listLocationsCallable() {
         return listLocationsCallable;
    diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/HttpJsonCloudRedisClusterStub.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/HttpJsonCloudRedisClusterStub.java
    index 5de3ce0ff607..303973435456 100644
    --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/HttpJsonCloudRedisClusterStub.java
    +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/HttpJsonCloudRedisClusterStub.java
    @@ -16,6 +16,8 @@
     
     package com.google.cloud.redis.cluster.v1beta1.stub;
     
    +import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListBackupCollectionsPagedResponse;
    +import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListBackupsPagedResponse;
     import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListClustersPagedResponse;
     import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListLocationsPagedResponse;
     
    @@ -40,14 +42,26 @@
     import com.google.cloud.location.ListLocationsRequest;
     import com.google.cloud.location.ListLocationsResponse;
     import com.google.cloud.location.Location;
    +import com.google.cloud.redis.cluster.v1beta1.Backup;
    +import com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest;
    +import com.google.cloud.redis.cluster.v1beta1.BackupCollection;
     import com.google.cloud.redis.cluster.v1beta1.CertificateAuthority;
     import com.google.cloud.redis.cluster.v1beta1.Cluster;
     import com.google.cloud.redis.cluster.v1beta1.CreateClusterRequest;
    +import com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest;
     import com.google.cloud.redis.cluster.v1beta1.DeleteClusterRequest;
    +import com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest;
    +import com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest;
    +import com.google.cloud.redis.cluster.v1beta1.GetBackupRequest;
     import com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest;
     import com.google.cloud.redis.cluster.v1beta1.GetClusterRequest;
    +import com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest;
    +import com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse;
    +import com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest;
    +import com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse;
     import com.google.cloud.redis.cluster.v1beta1.ListClustersRequest;
     import com.google.cloud.redis.cluster.v1beta1.ListClustersResponse;
    +import com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest;
     import com.google.cloud.redis.cluster.v1beta1.UpdateClusterRequest;
     import com.google.common.collect.ImmutableMap;
     import com.google.longrunning.Operation;
    @@ -76,6 +90,7 @@ public class HttpJsonCloudRedisClusterStub extends CloudRedisClusterStub {
               .add(Empty.getDescriptor())
               .add(Cluster.getDescriptor())
               .add(Any.getDescriptor())
    +          .add(Backup.getDescriptor())
               .build();
     
       private static final ApiMethodDescriptor
    @@ -311,6 +326,311 @@ public class HttpJsonCloudRedisClusterStub extends CloudRedisClusterStub {
                           .build())
                   .build();
     
    +  private static final ApiMethodDescriptor
    +      rescheduleClusterMaintenanceMethodDescriptor =
    +          ApiMethodDescriptor.newBuilder()
    +              .setFullMethodName(
    +                  "google.cloud.redis.cluster.v1beta1.CloudRedisCluster/RescheduleClusterMaintenance")
    +              .setHttpMethod("POST")
    +              .setType(ApiMethodDescriptor.MethodType.UNARY)
    +              .setRequestFormatter(
    +                  ProtoMessageRequestFormatter.newBuilder()
    +                      .setPath(
    +                          "/v1beta1/{name=projects/*/locations/*/clusters/*}:rescheduleClusterMaintenance",
    +                          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(
    +                  (RescheduleClusterMaintenanceRequest request, Operation response) ->
    +                      HttpJsonOperationSnapshot.create(response))
    +              .build();
    +
    +  private static final ApiMethodDescriptor<
    +          ListBackupCollectionsRequest, ListBackupCollectionsResponse>
    +      listBackupCollectionsMethodDescriptor =
    +          ApiMethodDescriptor
    +              .newBuilder()
    +              .setFullMethodName(
    +                  "google.cloud.redis.cluster.v1beta1.CloudRedisCluster/ListBackupCollections")
    +              .setHttpMethod("GET")
    +              .setType(ApiMethodDescriptor.MethodType.UNARY)
    +              .setRequestFormatter(
    +                  ProtoMessageRequestFormatter.newBuilder()
    +                      .setPath(
    +                          "/v1beta1/{parent=projects/*/locations/*}/backupCollections",
    +                          request -> {
    +                            Map fields = new HashMap<>();
    +                            ProtoRestSerializer serializer =
    +                                ProtoRestSerializer.create();
    +                            serializer.putPathParam(fields, "parent", request.getParent());
    +                            return fields;
    +                          })
    +                      .setQueryParamsExtractor(
    +                          request -> {
    +                            Map> fields = new HashMap<>();
    +                            ProtoRestSerializer serializer =
    +                                ProtoRestSerializer.create();
    +                            serializer.putQueryParam(fields, "pageSize", request.getPageSize());
    +                            serializer.putQueryParam(fields, "pageToken", request.getPageToken());
    +                            serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
    +                            return fields;
    +                          })
    +                      .setRequestBodyExtractor(request -> null)
    +                      .build())
    +              .setResponseParser(
    +                  ProtoMessageResponseParser.newBuilder()
    +                      .setDefaultInstance(ListBackupCollectionsResponse.getDefaultInstance())
    +                      .setDefaultTypeRegistry(typeRegistry)
    +                      .build())
    +              .build();
    +
    +  private static final ApiMethodDescriptor
    +      getBackupCollectionMethodDescriptor =
    +          ApiMethodDescriptor.newBuilder()
    +              .setFullMethodName(
    +                  "google.cloud.redis.cluster.v1beta1.CloudRedisCluster/GetBackupCollection")
    +              .setHttpMethod("GET")
    +              .setType(ApiMethodDescriptor.MethodType.UNARY)
    +              .setRequestFormatter(
    +                  ProtoMessageRequestFormatter.newBuilder()
    +                      .setPath(
    +                          "/v1beta1/{name=projects/*/locations/*/backupCollections/*}",
    +                          request -> {
    +                            Map fields = new HashMap<>();
    +                            ProtoRestSerializer serializer =
    +                                ProtoRestSerializer.create();
    +                            serializer.putPathParam(fields, "name", request.getName());
    +                            return fields;
    +                          })
    +                      .setQueryParamsExtractor(
    +                          request -> {
    +                            Map> fields = new HashMap<>();
    +                            ProtoRestSerializer serializer =
    +                                ProtoRestSerializer.create();
    +                            serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
    +                            return fields;
    +                          })
    +                      .setRequestBodyExtractor(request -> null)
    +                      .build())
    +              .setResponseParser(
    +                  ProtoMessageResponseParser.newBuilder()
    +                      .setDefaultInstance(BackupCollection.getDefaultInstance())
    +                      .setDefaultTypeRegistry(typeRegistry)
    +                      .build())
    +              .build();
    +
    +  private static final ApiMethodDescriptor
    +      listBackupsMethodDescriptor =
    +          ApiMethodDescriptor.newBuilder()
    +              .setFullMethodName("google.cloud.redis.cluster.v1beta1.CloudRedisCluster/ListBackups")
    +              .setHttpMethod("GET")
    +              .setType(ApiMethodDescriptor.MethodType.UNARY)
    +              .setRequestFormatter(
    +                  ProtoMessageRequestFormatter.newBuilder()
    +                      .setPath(
    +                          "/v1beta1/{parent=projects/*/locations/*/backupCollections/*}/backups",
    +                          request -> {
    +                            Map fields = new HashMap<>();
    +                            ProtoRestSerializer serializer =
    +                                ProtoRestSerializer.create();
    +                            serializer.putPathParam(fields, "parent", request.getParent());
    +                            return fields;
    +                          })
    +                      .setQueryParamsExtractor(
    +                          request -> {
    +                            Map> fields = new HashMap<>();
    +                            ProtoRestSerializer serializer =
    +                                ProtoRestSerializer.create();
    +                            serializer.putQueryParam(fields, "pageSize", request.getPageSize());
    +                            serializer.putQueryParam(fields, "pageToken", request.getPageToken());
    +                            serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
    +                            return fields;
    +                          })
    +                      .setRequestBodyExtractor(request -> null)
    +                      .build())
    +              .setResponseParser(
    +                  ProtoMessageResponseParser.newBuilder()
    +                      .setDefaultInstance(ListBackupsResponse.getDefaultInstance())
    +                      .setDefaultTypeRegistry(typeRegistry)
    +                      .build())
    +              .build();
    +
    +  private static final ApiMethodDescriptor getBackupMethodDescriptor =
    +      ApiMethodDescriptor.newBuilder()
    +          .setFullMethodName("google.cloud.redis.cluster.v1beta1.CloudRedisCluster/GetBackup")
    +          .setHttpMethod("GET")
    +          .setType(ApiMethodDescriptor.MethodType.UNARY)
    +          .setRequestFormatter(
    +              ProtoMessageRequestFormatter.newBuilder()
    +                  .setPath(
    +                      "/v1beta1/{name=projects/*/locations/*/backupCollections/*/backups/*}",
    +                      request -> {
    +                        Map fields = new HashMap<>();
    +                        ProtoRestSerializer serializer =
    +                            ProtoRestSerializer.create();
    +                        serializer.putPathParam(fields, "name", request.getName());
    +                        return fields;
    +                      })
    +                  .setQueryParamsExtractor(
    +                      request -> {
    +                        Map> fields = new HashMap<>();
    +                        ProtoRestSerializer serializer =
    +                            ProtoRestSerializer.create();
    +                        serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
    +                        return fields;
    +                      })
    +                  .setRequestBodyExtractor(request -> null)
    +                  .build())
    +          .setResponseParser(
    +              ProtoMessageResponseParser.newBuilder()
    +                  .setDefaultInstance(Backup.getDefaultInstance())
    +                  .setDefaultTypeRegistry(typeRegistry)
    +                  .build())
    +          .build();
    +
    +  private static final ApiMethodDescriptor
    +      deleteBackupMethodDescriptor =
    +          ApiMethodDescriptor.newBuilder()
    +              .setFullMethodName(
    +                  "google.cloud.redis.cluster.v1beta1.CloudRedisCluster/DeleteBackup")
    +              .setHttpMethod("DELETE")
    +              .setType(ApiMethodDescriptor.MethodType.UNARY)
    +              .setRequestFormatter(
    +                  ProtoMessageRequestFormatter.newBuilder()
    +                      .setPath(
    +                          "/v1beta1/{name=projects/*/locations/*/backupCollections/*/backups/*}",
    +                          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, "requestId", request.getRequestId());
    +                            serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
    +                            return fields;
    +                          })
    +                      .setRequestBodyExtractor(request -> null)
    +                      .build())
    +              .setResponseParser(
    +                  ProtoMessageResponseParser.newBuilder()
    +                      .setDefaultInstance(Operation.getDefaultInstance())
    +                      .setDefaultTypeRegistry(typeRegistry)
    +                      .build())
    +              .setOperationSnapshotFactory(
    +                  (DeleteBackupRequest request, Operation response) ->
    +                      HttpJsonOperationSnapshot.create(response))
    +              .build();
    +
    +  private static final ApiMethodDescriptor
    +      exportBackupMethodDescriptor =
    +          ApiMethodDescriptor.newBuilder()
    +              .setFullMethodName(
    +                  "google.cloud.redis.cluster.v1beta1.CloudRedisCluster/ExportBackup")
    +              .setHttpMethod("POST")
    +              .setType(ApiMethodDescriptor.MethodType.UNARY)
    +              .setRequestFormatter(
    +                  ProtoMessageRequestFormatter.newBuilder()
    +                      .setPath(
    +                          "/v1beta1/{name=projects/*/locations/*/backupCollections/*/backups/*}:export",
    +                          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(
    +                  (ExportBackupRequest request, Operation response) ->
    +                      HttpJsonOperationSnapshot.create(response))
    +              .build();
    +
    +  private static final ApiMethodDescriptor
    +      backupClusterMethodDescriptor =
    +          ApiMethodDescriptor.newBuilder()
    +              .setFullMethodName(
    +                  "google.cloud.redis.cluster.v1beta1.CloudRedisCluster/BackupCluster")
    +              .setHttpMethod("POST")
    +              .setType(ApiMethodDescriptor.MethodType.UNARY)
    +              .setRequestFormatter(
    +                  ProtoMessageRequestFormatter.newBuilder()
    +                      .setPath(
    +                          "/v1beta1/{name=projects/*/locations/*/clusters/*}:backup",
    +                          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(
    +                  (BackupClusterRequest request, Operation response) ->
    +                      HttpJsonOperationSnapshot.create(response))
    +              .build();
    +
       private static final ApiMethodDescriptor
           listLocationsMethodDescriptor =
               ApiMethodDescriptor.newBuilder()
    @@ -393,6 +713,27 @@ public class HttpJsonCloudRedisClusterStub extends CloudRedisClusterStub {
           createClusterOperationCallable;
       private final UnaryCallable
           getClusterCertificateAuthorityCallable;
    +  private final UnaryCallable
    +      rescheduleClusterMaintenanceCallable;
    +  private final OperationCallable
    +      rescheduleClusterMaintenanceOperationCallable;
    +  private final UnaryCallable
    +      listBackupCollectionsCallable;
    +  private final UnaryCallable
    +      listBackupCollectionsPagedCallable;
    +  private final UnaryCallable
    +      getBackupCollectionCallable;
    +  private final UnaryCallable listBackupsCallable;
    +  private final UnaryCallable
    +      listBackupsPagedCallable;
    +  private final UnaryCallable getBackupCallable;
    +  private final UnaryCallable deleteBackupCallable;
    +  private final OperationCallable deleteBackupOperationCallable;
    +  private final UnaryCallable exportBackupCallable;
    +  private final OperationCallable exportBackupOperationCallable;
    +  private final UnaryCallable backupClusterCallable;
    +  private final OperationCallable
    +      backupClusterOperationCallable;
       private final UnaryCallable listLocationsCallable;
       private final UnaryCallable
           listLocationsPagedCallable;
    @@ -536,6 +877,98 @@ protected HttpJsonCloudRedisClusterStub(
                           return builder.build();
                         })
                     .build();
    +    HttpJsonCallSettings
    +        rescheduleClusterMaintenanceTransportSettings =
    +            HttpJsonCallSettings.newBuilder()
    +                .setMethodDescriptor(rescheduleClusterMaintenanceMethodDescriptor)
    +                .setTypeRegistry(typeRegistry)
    +                .setParamsExtractor(
    +                    request -> {
    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                      builder.add("name", String.valueOf(request.getName()));
    +                      return builder.build();
    +                    })
    +                .build();
    +    HttpJsonCallSettings
    +        listBackupCollectionsTransportSettings =
    +            HttpJsonCallSettings
    +                .newBuilder()
    +                .setMethodDescriptor(listBackupCollectionsMethodDescriptor)
    +                .setTypeRegistry(typeRegistry)
    +                .setParamsExtractor(
    +                    request -> {
    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                      builder.add("parent", String.valueOf(request.getParent()));
    +                      return builder.build();
    +                    })
    +                .build();
    +    HttpJsonCallSettings
    +        getBackupCollectionTransportSettings =
    +            HttpJsonCallSettings.newBuilder()
    +                .setMethodDescriptor(getBackupCollectionMethodDescriptor)
    +                .setTypeRegistry(typeRegistry)
    +                .setParamsExtractor(
    +                    request -> {
    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                      builder.add("name", String.valueOf(request.getName()));
    +                      return builder.build();
    +                    })
    +                .build();
    +    HttpJsonCallSettings listBackupsTransportSettings =
    +        HttpJsonCallSettings.newBuilder()
    +            .setMethodDescriptor(listBackupsMethodDescriptor)
    +            .setTypeRegistry(typeRegistry)
    +            .setParamsExtractor(
    +                request -> {
    +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                  builder.add("parent", String.valueOf(request.getParent()));
    +                  return builder.build();
    +                })
    +            .build();
    +    HttpJsonCallSettings getBackupTransportSettings =
    +        HttpJsonCallSettings.newBuilder()
    +            .setMethodDescriptor(getBackupMethodDescriptor)
    +            .setTypeRegistry(typeRegistry)
    +            .setParamsExtractor(
    +                request -> {
    +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                  builder.add("name", String.valueOf(request.getName()));
    +                  return builder.build();
    +                })
    +            .build();
    +    HttpJsonCallSettings deleteBackupTransportSettings =
    +        HttpJsonCallSettings.newBuilder()
    +            .setMethodDescriptor(deleteBackupMethodDescriptor)
    +            .setTypeRegistry(typeRegistry)
    +            .setParamsExtractor(
    +                request -> {
    +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                  builder.add("name", String.valueOf(request.getName()));
    +                  return builder.build();
    +                })
    +            .build();
    +    HttpJsonCallSettings exportBackupTransportSettings =
    +        HttpJsonCallSettings.newBuilder()
    +            .setMethodDescriptor(exportBackupMethodDescriptor)
    +            .setTypeRegistry(typeRegistry)
    +            .setParamsExtractor(
    +                request -> {
    +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                  builder.add("name", String.valueOf(request.getName()));
    +                  return builder.build();
    +                })
    +            .build();
    +    HttpJsonCallSettings backupClusterTransportSettings =
    +        HttpJsonCallSettings.newBuilder()
    +            .setMethodDescriptor(backupClusterMethodDescriptor)
    +            .setTypeRegistry(typeRegistry)
    +            .setParamsExtractor(
    +                request -> {
    +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                  builder.add("name", String.valueOf(request.getName()));
    +                  return builder.build();
    +                })
    +            .build();
         HttpJsonCallSettings
             listLocationsTransportSettings =
                 HttpJsonCallSettings.newBuilder()
    @@ -601,6 +1034,68 @@ protected HttpJsonCloudRedisClusterStub(
                 getClusterCertificateAuthorityTransportSettings,
                 settings.getClusterCertificateAuthoritySettings(),
                 clientContext);
    +    this.rescheduleClusterMaintenanceCallable =
    +        callableFactory.createUnaryCallable(
    +            rescheduleClusterMaintenanceTransportSettings,
    +            settings.rescheduleClusterMaintenanceSettings(),
    +            clientContext);
    +    this.rescheduleClusterMaintenanceOperationCallable =
    +        callableFactory.createOperationCallable(
    +            rescheduleClusterMaintenanceTransportSettings,
    +            settings.rescheduleClusterMaintenanceOperationSettings(),
    +            clientContext,
    +            httpJsonOperationsStub);
    +    this.listBackupCollectionsCallable =
    +        callableFactory.createUnaryCallable(
    +            listBackupCollectionsTransportSettings,
    +            settings.listBackupCollectionsSettings(),
    +            clientContext);
    +    this.listBackupCollectionsPagedCallable =
    +        callableFactory.createPagedCallable(
    +            listBackupCollectionsTransportSettings,
    +            settings.listBackupCollectionsSettings(),
    +            clientContext);
    +    this.getBackupCollectionCallable =
    +        callableFactory.createUnaryCallable(
    +            getBackupCollectionTransportSettings,
    +            settings.getBackupCollectionSettings(),
    +            clientContext);
    +    this.listBackupsCallable =
    +        callableFactory.createUnaryCallable(
    +            listBackupsTransportSettings, settings.listBackupsSettings(), clientContext);
    +    this.listBackupsPagedCallable =
    +        callableFactory.createPagedCallable(
    +            listBackupsTransportSettings, settings.listBackupsSettings(), clientContext);
    +    this.getBackupCallable =
    +        callableFactory.createUnaryCallable(
    +            getBackupTransportSettings, settings.getBackupSettings(), clientContext);
    +    this.deleteBackupCallable =
    +        callableFactory.createUnaryCallable(
    +            deleteBackupTransportSettings, settings.deleteBackupSettings(), clientContext);
    +    this.deleteBackupOperationCallable =
    +        callableFactory.createOperationCallable(
    +            deleteBackupTransportSettings,
    +            settings.deleteBackupOperationSettings(),
    +            clientContext,
    +            httpJsonOperationsStub);
    +    this.exportBackupCallable =
    +        callableFactory.createUnaryCallable(
    +            exportBackupTransportSettings, settings.exportBackupSettings(), clientContext);
    +    this.exportBackupOperationCallable =
    +        callableFactory.createOperationCallable(
    +            exportBackupTransportSettings,
    +            settings.exportBackupOperationSettings(),
    +            clientContext,
    +            httpJsonOperationsStub);
    +    this.backupClusterCallable =
    +        callableFactory.createUnaryCallable(
    +            backupClusterTransportSettings, settings.backupClusterSettings(), clientContext);
    +    this.backupClusterOperationCallable =
    +        callableFactory.createOperationCallable(
    +            backupClusterTransportSettings,
    +            settings.backupClusterOperationSettings(),
    +            clientContext,
    +            httpJsonOperationsStub);
         this.listLocationsCallable =
             callableFactory.createUnaryCallable(
                 listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
    @@ -624,6 +1119,14 @@ public static List getMethodDescriptors() {
         methodDescriptors.add(deleteClusterMethodDescriptor);
         methodDescriptors.add(createClusterMethodDescriptor);
         methodDescriptors.add(getClusterCertificateAuthorityMethodDescriptor);
    +    methodDescriptors.add(rescheduleClusterMaintenanceMethodDescriptor);
    +    methodDescriptors.add(listBackupCollectionsMethodDescriptor);
    +    methodDescriptors.add(getBackupCollectionMethodDescriptor);
    +    methodDescriptors.add(listBackupsMethodDescriptor);
    +    methodDescriptors.add(getBackupMethodDescriptor);
    +    methodDescriptors.add(deleteBackupMethodDescriptor);
    +    methodDescriptors.add(exportBackupMethodDescriptor);
    +    methodDescriptors.add(backupClusterMethodDescriptor);
         methodDescriptors.add(listLocationsMethodDescriptor);
         methodDescriptors.add(getLocationMethodDescriptor);
         return methodDescriptors;
    @@ -684,6 +1187,80 @@ public OperationCallable createClusterOperat
         return getClusterCertificateAuthorityCallable;
       }
     
    +  @Override
    +  public UnaryCallable
    +      rescheduleClusterMaintenanceCallable() {
    +    return rescheduleClusterMaintenanceCallable;
    +  }
    +
    +  @Override
    +  public OperationCallable
    +      rescheduleClusterMaintenanceOperationCallable() {
    +    return rescheduleClusterMaintenanceOperationCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable
    +      listBackupCollectionsCallable() {
    +    return listBackupCollectionsCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable
    +      listBackupCollectionsPagedCallable() {
    +    return listBackupCollectionsPagedCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable getBackupCollectionCallable() {
    +    return getBackupCollectionCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable listBackupsCallable() {
    +    return listBackupsCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable listBackupsPagedCallable() {
    +    return listBackupsPagedCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable getBackupCallable() {
    +    return getBackupCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable deleteBackupCallable() {
    +    return deleteBackupCallable;
    +  }
    +
    +  @Override
    +  public OperationCallable deleteBackupOperationCallable() {
    +    return deleteBackupOperationCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable exportBackupCallable() {
    +    return exportBackupCallable;
    +  }
    +
    +  @Override
    +  public OperationCallable exportBackupOperationCallable() {
    +    return exportBackupOperationCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable backupClusterCallable() {
    +    return backupClusterCallable;
    +  }
    +
    +  @Override
    +  public OperationCallable backupClusterOperationCallable() {
    +    return backupClusterOperationCallable;
    +  }
    +
       @Override
       public UnaryCallable listLocationsCallable() {
         return listLocationsCallable;
    diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/resources/META-INF/native-image/com.google.cloud.redis.cluster.v1/reflect-config.json b/java-redis-cluster/google-cloud-redis-cluster/src/main/resources/META-INF/native-image/com.google.cloud.redis.cluster.v1/reflect-config.json
    index 8d392a4568a7..9aa1abbb1615 100644
    --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/resources/META-INF/native-image/com.google.cloud.redis.cluster.v1/reflect-config.json
    +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/resources/META-INF/native-image/com.google.cloud.redis.cluster.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,
    @@ -126,7 +153,466 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.GoSettings$Builder",
    +    "name": "com.google.api.GoSettings$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.Http",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.Http$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.HttpRule",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.HttpRule$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.JavaSettings",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.JavaSettings$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.LaunchStage",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.MethodSettings",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.MethodSettings$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.MethodSettings$LongRunning",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.MethodSettings$LongRunning$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.NodeSettings",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.NodeSettings$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.PhpSettings",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.PhpSettings$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.Publishing",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.Publishing$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.PythonSettings",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.PythonSettings$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.PythonSettings$ExperimentalFeatures",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.PythonSettings$ExperimentalFeatures$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.ResourceDescriptor",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.ResourceDescriptor$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.ResourceDescriptor$History",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.ResourceDescriptor$Style",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.ResourceReference",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.ResourceReference$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.RubySettings",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.RubySettings$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.SelectiveGapicGeneration",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.SelectiveGapicGeneration$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "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,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.location.GetLocationRequest$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.location.ListLocationsRequest",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.location.ListLocationsRequest$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.location.ListLocationsResponse",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.location.ListLocationsResponse$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.location.Location",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.location.Location$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1.AuthorizationMode",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1.AutomatedBackupConfig",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1.AutomatedBackupConfig$AutomatedBackupMode",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1.AutomatedBackupConfig$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1.AutomatedBackupConfig$FixedFrequencySchedule",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1.AutomatedBackupConfig$FixedFrequencySchedule$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1.Backup",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1.Backup$BackupType",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1.Backup$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1.Backup$State",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -135,7 +621,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.Http",
    +    "name": "com.google.cloud.redis.cluster.v1.BackupClusterRequest",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -144,7 +630,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.Http$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1.BackupClusterRequest$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -153,7 +639,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.HttpRule",
    +    "name": "com.google.cloud.redis.cluster.v1.BackupCollection",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -162,7 +648,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.HttpRule$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1.BackupCollection$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -171,7 +657,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.JavaSettings",
    +    "name": "com.google.cloud.redis.cluster.v1.BackupFile",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -180,7 +666,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.JavaSettings$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1.BackupFile$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -189,7 +675,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.LaunchStage",
    +    "name": "com.google.cloud.redis.cluster.v1.CertificateAuthority",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -198,7 +684,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.MethodSettings",
    +    "name": "com.google.cloud.redis.cluster.v1.CertificateAuthority$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -207,7 +693,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.MethodSettings$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1.CertificateAuthority$ManagedCertificateAuthority",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -216,7 +702,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.MethodSettings$LongRunning",
    +    "name": "com.google.cloud.redis.cluster.v1.CertificateAuthority$ManagedCertificateAuthority$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -225,7 +711,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.MethodSettings$LongRunning$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1.CertificateAuthority$ManagedCertificateAuthority$CertChain",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -234,7 +720,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.NodeSettings",
    +    "name": "com.google.cloud.redis.cluster.v1.CertificateAuthority$ManagedCertificateAuthority$CertChain$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -243,7 +729,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.NodeSettings$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1.Cluster",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -252,7 +738,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.PhpSettings",
    +    "name": "com.google.cloud.redis.cluster.v1.Cluster$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -261,7 +747,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.PhpSettings$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1.Cluster$GcsBackupSource",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -270,7 +756,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.Publishing",
    +    "name": "com.google.cloud.redis.cluster.v1.Cluster$GcsBackupSource$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -279,7 +765,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.Publishing$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1.Cluster$ManagedBackupSource",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -288,7 +774,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.PythonSettings",
    +    "name": "com.google.cloud.redis.cluster.v1.Cluster$ManagedBackupSource$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -297,7 +783,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.PythonSettings$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1.Cluster$State",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -306,7 +792,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.PythonSettings$ExperimentalFeatures",
    +    "name": "com.google.cloud.redis.cluster.v1.Cluster$StateInfo",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -315,7 +801,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.PythonSettings$ExperimentalFeatures$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1.Cluster$StateInfo$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -324,7 +810,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.ResourceDescriptor",
    +    "name": "com.google.cloud.redis.cluster.v1.Cluster$StateInfo$UpdateInfo",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -333,7 +819,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.ResourceDescriptor$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1.Cluster$StateInfo$UpdateInfo$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -342,7 +828,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.ResourceDescriptor$History",
    +    "name": "com.google.cloud.redis.cluster.v1.ClusterEndpoint",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -351,7 +837,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.ResourceDescriptor$Style",
    +    "name": "com.google.cloud.redis.cluster.v1.ClusterEndpoint$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -360,7 +846,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.ResourceReference",
    +    "name": "com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -369,7 +855,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.ResourceReference$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -378,7 +864,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.RubySettings",
    +    "name": "com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -387,7 +873,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.RubySettings$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -396,7 +882,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.SelectiveGapicGeneration",
    +    "name": "com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -405,7 +891,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.SelectiveGapicGeneration$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig$AOFConfig",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -414,7 +900,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.location.GetLocationRequest",
    +    "name": "com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig$AOFConfig$AppendFsync",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -423,7 +909,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.location.GetLocationRequest$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig$AOFConfig$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -432,7 +918,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.location.ListLocationsRequest",
    +    "name": "com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -441,7 +927,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.location.ListLocationsRequest$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig$PersistenceMode",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -450,7 +936,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.location.ListLocationsResponse",
    +    "name": "com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig$RDBConfig",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -459,7 +945,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.location.ListLocationsResponse$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig$RDBConfig$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -468,7 +954,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.location.Location",
    +    "name": "com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig$RDBConfig$SnapshotPeriod",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -477,7 +963,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.location.Location$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -486,7 +972,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1.AuthorizationMode",
    +    "name": "com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -495,7 +981,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1.CertificateAuthority",
    +    "name": "com.google.cloud.redis.cluster.v1.ConnectionDetail",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -504,7 +990,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1.CertificateAuthority$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1.ConnectionDetail$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -513,7 +999,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1.CertificateAuthority$ManagedCertificateAuthority",
    +    "name": "com.google.cloud.redis.cluster.v1.ConnectionType",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -522,7 +1008,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1.CertificateAuthority$ManagedCertificateAuthority$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1.CreateClusterRequest",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -531,7 +1017,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1.CertificateAuthority$ManagedCertificateAuthority$CertChain",
    +    "name": "com.google.cloud.redis.cluster.v1.CreateClusterRequest$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -540,7 +1026,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1.CertificateAuthority$ManagedCertificateAuthority$CertChain$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -549,7 +1035,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1.Cluster",
    +    "name": "com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -558,7 +1044,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1.Cluster$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig$ClusterRole",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -567,7 +1053,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1.Cluster$State",
    +    "name": "com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig$Membership",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -576,7 +1062,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1.Cluster$StateInfo",
    +    "name": "com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig$Membership$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -585,7 +1071,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1.Cluster$StateInfo$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig$RemoteCluster",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -594,7 +1080,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1.Cluster$StateInfo$UpdateInfo",
    +    "name": "com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig$RemoteCluster$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -603,7 +1089,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1.Cluster$StateInfo$UpdateInfo$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1.DeleteBackupRequest",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -612,7 +1098,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig",
    +    "name": "com.google.cloud.redis.cluster.v1.DeleteBackupRequest$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -621,7 +1107,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig$AOFConfig",
    +    "name": "com.google.cloud.redis.cluster.v1.DeleteClusterRequest",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -630,7 +1116,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig$AOFConfig$AppendFsync",
    +    "name": "com.google.cloud.redis.cluster.v1.DeleteClusterRequest$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -639,7 +1125,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig$AOFConfig$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1.DiscoveryEndpoint",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -648,7 +1134,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1.DiscoveryEndpoint$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -657,7 +1143,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig$PersistenceMode",
    +    "name": "com.google.cloud.redis.cluster.v1.EncryptionInfo",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -666,7 +1152,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig$RDBConfig",
    +    "name": "com.google.cloud.redis.cluster.v1.EncryptionInfo$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -675,7 +1161,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig$RDBConfig$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1.EncryptionInfo$KmsKeyState",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -684,7 +1170,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig$RDBConfig$SnapshotPeriod",
    +    "name": "com.google.cloud.redis.cluster.v1.EncryptionInfo$Type",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -693,7 +1179,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1.CreateClusterRequest",
    +    "name": "com.google.cloud.redis.cluster.v1.ExportBackupRequest",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -702,7 +1188,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1.CreateClusterRequest$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1.ExportBackupRequest$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -711,7 +1197,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1.DeleteClusterRequest",
    +    "name": "com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -720,7 +1206,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1.DeleteClusterRequest$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -729,7 +1215,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1.DiscoveryEndpoint",
    +    "name": "com.google.cloud.redis.cluster.v1.GetBackupRequest",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -738,7 +1224,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1.DiscoveryEndpoint$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1.GetBackupRequest$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -782,6 +1268,78 @@
         "allDeclaredClasses": true,
         "allPublicClasses": true
       },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1.ListBackupsRequest",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1.ListBackupsRequest$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1.ListBackupsResponse",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1.ListBackupsResponse$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
       {
         "name": "com.google.cloud.redis.cluster.v1.ListClustersRequest",
         "queryAllDeclaredConstructors": true,
    @@ -845,6 +1403,24 @@
         "allDeclaredClasses": true,
         "allPublicClasses": true
       },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1.PscAutoConnection",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1.PscAutoConnection$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
       {
         "name": "com.google.cloud.redis.cluster.v1.PscConfig",
         "queryAllDeclaredConstructors": true,
    @@ -881,6 +1457,60 @@
         "allDeclaredClasses": true,
         "allPublicClasses": true
       },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1.PscConnectionStatus",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1.PscServiceAttachment",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1.PscServiceAttachment$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest$RescheduleType",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
       {
         "name": "com.google.cloud.redis.cluster.v1.TransitEncryptionMode",
         "queryAllDeclaredConstructors": true,
    @@ -1915,5 +2545,32 @@
         "allPublicMethods": true,
         "allDeclaredClasses": true,
         "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.type.DayOfWeek",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.type.TimeOfDay",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.type.TimeOfDay$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
       }
     ]
    \ No newline at end of file
    diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/resources/META-INF/native-image/com.google.cloud.redis.cluster.v1beta1/reflect-config.json b/java-redis-cluster/google-cloud-redis-cluster/src/main/resources/META-INF/native-image/com.google.cloud.redis.cluster.v1beta1/reflect-config.json
    index 587fb56e0af4..d03bc6cfb17a 100644
    --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/resources/META-INF/native-image/com.google.cloud.redis.cluster.v1beta1/reflect-config.json
    +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/resources/META-INF/native-image/com.google.cloud.redis.cluster.v1beta1/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,
    @@ -126,7 +153,466 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.GoSettings$Builder",
    +    "name": "com.google.api.GoSettings$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.Http",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.Http$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.HttpRule",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.HttpRule$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.JavaSettings",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.JavaSettings$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.LaunchStage",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.MethodSettings",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.MethodSettings$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.MethodSettings$LongRunning",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.MethodSettings$LongRunning$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.NodeSettings",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.NodeSettings$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.PhpSettings",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.PhpSettings$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.Publishing",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.Publishing$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.PythonSettings",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.PythonSettings$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.PythonSettings$ExperimentalFeatures",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.PythonSettings$ExperimentalFeatures$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.ResourceDescriptor",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.ResourceDescriptor$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.ResourceDescriptor$History",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.ResourceDescriptor$Style",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.ResourceReference",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.ResourceReference$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.RubySettings",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.RubySettings$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.SelectiveGapicGeneration",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.api.SelectiveGapicGeneration$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "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,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.location.GetLocationRequest$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.location.ListLocationsRequest",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.location.ListLocationsRequest$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.location.ListLocationsResponse",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.location.ListLocationsResponse$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.location.Location",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.location.Location$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1beta1.AuthorizationMode",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig$AutomatedBackupMode",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig$FixedFrequencySchedule",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig$FixedFrequencySchedule$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1beta1.Backup",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1beta1.Backup$BackupType",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1beta1.Backup$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1beta1.Backup$State",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -135,7 +621,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.Http",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -144,7 +630,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.Http$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -153,7 +639,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.HttpRule",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.BackupCollection",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -162,7 +648,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.HttpRule$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.BackupCollection$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -171,7 +657,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.JavaSettings",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.BackupFile",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -180,7 +666,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.JavaSettings$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.BackupFile$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -189,7 +675,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.LaunchStage",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.CertificateAuthority",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -198,7 +684,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.MethodSettings",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.CertificateAuthority$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -207,7 +693,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.MethodSettings$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.CertificateAuthority$ManagedCertificateAuthority",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -216,7 +702,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.MethodSettings$LongRunning",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.CertificateAuthority$ManagedCertificateAuthority$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -225,7 +711,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.MethodSettings$LongRunning$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.CertificateAuthority$ManagedCertificateAuthority$CertChain",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -234,7 +720,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.NodeSettings",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.CertificateAuthority$ManagedCertificateAuthority$CertChain$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -243,7 +729,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.NodeSettings$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.Cluster",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -252,7 +738,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.PhpSettings",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.Cluster$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -261,7 +747,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.PhpSettings$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.Cluster$GcsBackupSource",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -270,7 +756,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.Publishing",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.Cluster$GcsBackupSource$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -279,7 +765,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.Publishing$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.Cluster$ManagedBackupSource",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -288,7 +774,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.PythonSettings",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.Cluster$ManagedBackupSource$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -297,7 +783,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.PythonSettings$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.Cluster$State",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -306,7 +792,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.PythonSettings$ExperimentalFeatures",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.Cluster$StateInfo",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -315,7 +801,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.PythonSettings$ExperimentalFeatures$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.Cluster$StateInfo$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -324,7 +810,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.ResourceDescriptor",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.Cluster$StateInfo$UpdateInfo",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -333,7 +819,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.ResourceDescriptor$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.Cluster$StateInfo$UpdateInfo$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -342,7 +828,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.ResourceDescriptor$History",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -351,7 +837,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.ResourceDescriptor$Style",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -360,7 +846,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.ResourceReference",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -369,7 +855,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.ResourceReference$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -378,7 +864,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.RubySettings",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -387,7 +873,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.RubySettings$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -396,7 +882,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.SelectiveGapicGeneration",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -405,7 +891,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.api.SelectiveGapicGeneration$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig$AOFConfig",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -414,7 +900,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.location.GetLocationRequest",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig$AOFConfig$AppendFsync",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -423,7 +909,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.location.GetLocationRequest$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig$AOFConfig$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -432,7 +918,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.location.ListLocationsRequest",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -441,7 +927,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.location.ListLocationsRequest$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig$PersistenceMode",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -450,7 +936,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.location.ListLocationsResponse",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig$RDBConfig",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -459,7 +945,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.location.ListLocationsResponse$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig$RDBConfig$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -468,7 +954,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.location.Location",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig$RDBConfig$SnapshotPeriod",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -477,7 +963,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.location.Location$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -486,7 +972,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1beta1.AuthorizationMode",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -495,7 +981,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1beta1.CertificateAuthority",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.ConnectionDetail",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -504,7 +990,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1beta1.CertificateAuthority$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.ConnectionDetail$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -513,7 +999,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1beta1.CertificateAuthority$ManagedCertificateAuthority",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.ConnectionType",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -522,7 +1008,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1beta1.CertificateAuthority$ManagedCertificateAuthority$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.CreateClusterRequest",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -531,7 +1017,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1beta1.CertificateAuthority$ManagedCertificateAuthority$CertChain",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.CreateClusterRequest$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -540,7 +1026,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1beta1.CertificateAuthority$ManagedCertificateAuthority$CertChain$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -549,7 +1035,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1beta1.Cluster",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -558,7 +1044,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1beta1.Cluster$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig$ClusterRole",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -567,7 +1053,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1beta1.Cluster$State",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig$Membership",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -576,7 +1062,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1beta1.Cluster$StateInfo",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig$Membership$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -585,7 +1071,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1beta1.Cluster$StateInfo$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig$RemoteCluster",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -594,7 +1080,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1beta1.Cluster$StateInfo$UpdateInfo",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig$RemoteCluster$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -603,7 +1089,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1beta1.Cluster$StateInfo$UpdateInfo$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -612,7 +1098,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -621,7 +1107,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig$AOFConfig",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.DeleteClusterRequest",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -630,7 +1116,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig$AOFConfig$AppendFsync",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.DeleteClusterRequest$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -639,7 +1125,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig$AOFConfig$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -648,7 +1134,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -657,7 +1143,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig$PersistenceMode",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.EncryptionInfo",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -666,7 +1152,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig$RDBConfig",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.EncryptionInfo$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -675,7 +1161,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig$RDBConfig$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.EncryptionInfo$KmsKeyState",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -684,7 +1170,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig$RDBConfig$SnapshotPeriod",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.EncryptionInfo$Type",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -693,7 +1179,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1beta1.CreateClusterRequest",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -702,7 +1188,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1beta1.CreateClusterRequest$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -711,7 +1197,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1beta1.DeleteClusterRequest",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -720,7 +1206,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1beta1.DeleteClusterRequest$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -729,7 +1215,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.GetBackupRequest",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -738,7 +1224,7 @@
         "allPublicClasses": true
       },
       {
    -    "name": "com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint$Builder",
    +    "name": "com.google.cloud.redis.cluster.v1beta1.GetBackupRequest$Builder",
         "queryAllDeclaredConstructors": true,
         "queryAllPublicConstructors": true,
         "queryAllDeclaredMethods": true,
    @@ -782,6 +1268,78 @@
         "allDeclaredClasses": true,
         "allPublicClasses": true
       },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
       {
         "name": "com.google.cloud.redis.cluster.v1beta1.ListClustersRequest",
         "queryAllDeclaredConstructors": true,
    @@ -845,6 +1403,24 @@
         "allDeclaredClasses": true,
         "allPublicClasses": true
       },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1beta1.PscAutoConnection",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1beta1.PscAutoConnection$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
       {
         "name": "com.google.cloud.redis.cluster.v1beta1.PscConfig",
         "queryAllDeclaredConstructors": true,
    @@ -881,6 +1457,60 @@
         "allDeclaredClasses": true,
         "allPublicClasses": true
       },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1beta1.PscConnectionStatus",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest$RescheduleType",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
       {
         "name": "com.google.cloud.redis.cluster.v1beta1.TransitEncryptionMode",
         "queryAllDeclaredConstructors": true,
    @@ -1915,5 +2545,32 @@
         "allPublicMethods": true,
         "allDeclaredClasses": true,
         "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.type.DayOfWeek",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.type.TimeOfDay",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
    +  },
    +  {
    +    "name": "com.google.type.TimeOfDay$Builder",
    +    "queryAllDeclaredConstructors": true,
    +    "queryAllPublicConstructors": true,
    +    "queryAllDeclaredMethods": true,
    +    "allPublicMethods": true,
    +    "allDeclaredClasses": true,
    +    "allPublicClasses": true
       }
     ]
    \ No newline at end of file
    diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterClientHttpJsonTest.java b/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterClientHttpJsonTest.java
    index 9ded64f5de9b..653e6cbadefe 100644
    --- a/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterClientHttpJsonTest.java
    +++ b/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterClientHttpJsonTest.java
    @@ -16,6 +16,8 @@
     
     package com.google.cloud.redis.cluster.v1;
     
    +import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListBackupCollectionsPagedResponse;
    +import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListBackupsPagedResponse;
     import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListClustersPagedResponse;
     import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListLocationsPagedResponse;
     
    @@ -209,7 +211,18 @@ public void getClusterTest() throws Exception {
                 .putAllRedisConfigs(new HashMap())
                 .setPreciseSizeGb(1342268405)
                 .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
    +            .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build())
                 .setDeletionProtectionEnabled(true)
    +            .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build())
    +            .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build())
    +            .addAllPscServiceAttachments(new ArrayList())
    +            .addAllClusterEndpoints(new ArrayList())
    +            .setBackupCollection(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
                 .build();
         mockService.addResponse(expectedResponse);
     
    @@ -270,7 +283,18 @@ public void getClusterTest2() throws Exception {
                 .putAllRedisConfigs(new HashMap())
                 .setPreciseSizeGb(1342268405)
                 .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
    +            .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build())
                 .setDeletionProtectionEnabled(true)
    +            .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build())
    +            .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build())
    +            .addAllPscServiceAttachments(new ArrayList())
    +            .addAllClusterEndpoints(new ArrayList())
    +            .setBackupCollection(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
                 .build();
         mockService.addResponse(expectedResponse);
     
    @@ -331,7 +355,18 @@ public void updateClusterTest() throws Exception {
                 .putAllRedisConfigs(new HashMap())
                 .setPreciseSizeGb(1342268405)
                 .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
    +            .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build())
                 .setDeletionProtectionEnabled(true)
    +            .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build())
    +            .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build())
    +            .addAllPscServiceAttachments(new ArrayList())
    +            .addAllClusterEndpoints(new ArrayList())
    +            .setBackupCollection(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
                 .build();
         Operation resultOperation =
             Operation.newBuilder()
    @@ -360,7 +395,18 @@ public void updateClusterTest() throws Exception {
                 .putAllRedisConfigs(new HashMap())
                 .setPreciseSizeGb(1342268405)
                 .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
    +            .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build())
                 .setDeletionProtectionEnabled(true)
    +            .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build())
    +            .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build())
    +            .addAllPscServiceAttachments(new ArrayList())
    +            .addAllClusterEndpoints(new ArrayList())
    +            .setBackupCollection(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
                 .build();
         FieldMask updateMask = FieldMask.newBuilder().build();
     
    @@ -409,7 +455,18 @@ public void updateClusterExceptionTest() throws Exception {
                   .putAllRedisConfigs(new HashMap())
                   .setPreciseSizeGb(1342268405)
                   .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
    +              .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build())
                   .setDeletionProtectionEnabled(true)
    +              .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build())
    +              .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build())
    +              .addAllPscServiceAttachments(new ArrayList())
    +              .addAllClusterEndpoints(new ArrayList())
    +              .setBackupCollection(
    +                  BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                      .toString())
    +              .setKmsKey("kmsKey-1127483058")
    +              .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
    +              .setEncryptionInfo(EncryptionInfo.newBuilder().build())
                   .build();
           FieldMask updateMask = FieldMask.newBuilder().build();
           client.updateClusterAsync(cluster, updateMask).get();
    @@ -529,7 +586,18 @@ public void createClusterTest() throws Exception {
                 .putAllRedisConfigs(new HashMap())
                 .setPreciseSizeGb(1342268405)
                 .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
    +            .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build())
                 .setDeletionProtectionEnabled(true)
    +            .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build())
    +            .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build())
    +            .addAllPscServiceAttachments(new ArrayList())
    +            .addAllClusterEndpoints(new ArrayList())
    +            .setBackupCollection(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
                 .build();
         Operation resultOperation =
             Operation.newBuilder()
    @@ -599,7 +667,18 @@ public void createClusterTest2() throws Exception {
                 .putAllRedisConfigs(new HashMap())
                 .setPreciseSizeGb(1342268405)
                 .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
    +            .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build())
                 .setDeletionProtectionEnabled(true)
    +            .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build())
    +            .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build())
    +            .addAllPscServiceAttachments(new ArrayList())
    +            .addAllClusterEndpoints(new ArrayList())
    +            .setBackupCollection(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
                 .build();
         Operation resultOperation =
             Operation.newBuilder()
    @@ -740,6 +819,919 @@ public void getClusterCertificateAuthorityExceptionTest2() throws Exception {
         }
       }
     
    +  @Test
    +  public void rescheduleClusterMaintenanceTest() throws Exception {
    +    Cluster expectedResponse =
    +        Cluster.newBuilder()
    +            .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setUid("uid115792")
    +            .setReplicaCount(564075208)
    +            .setAuthorizationMode(AuthorizationMode.forNumber(0))
    +            .setTransitEncryptionMode(TransitEncryptionMode.forNumber(0))
    +            .setSizeGb(2105542105)
    +            .setShardCount(-495377042)
    +            .addAllPscConfigs(new ArrayList())
    +            .addAllDiscoveryEndpoints(new ArrayList())
    +            .addAllPscConnections(new ArrayList())
    +            .setStateInfo(Cluster.StateInfo.newBuilder().build())
    +            .setNodeType(NodeType.forNumber(0))
    +            .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build())
    +            .putAllRedisConfigs(new HashMap())
    +            .setPreciseSizeGb(1342268405)
    +            .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
    +            .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build())
    +            .setDeletionProtectionEnabled(true)
    +            .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build())
    +            .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build())
    +            .addAllPscServiceAttachments(new ArrayList())
    +            .addAllClusterEndpoints(new ArrayList())
    +            .setBackupCollection(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
    +            .build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("rescheduleClusterMaintenanceTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockService.addResponse(resultOperation);
    +
    +    ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    +    RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType =
    +        RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0);
    +    Timestamp scheduleTime = Timestamp.newBuilder().build();
    +
    +    Cluster actualResponse =
    +        client.rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime).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 rescheduleClusterMaintenanceExceptionTest() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    +      RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType =
    +          RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0);
    +      Timestamp scheduleTime = Timestamp.newBuilder().build();
    +      client.rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime).get();
    +      Assert.fail("No exception raised");
    +    } catch (ExecutionException e) {
    +    }
    +  }
    +
    +  @Test
    +  public void rescheduleClusterMaintenanceTest2() throws Exception {
    +    Cluster expectedResponse =
    +        Cluster.newBuilder()
    +            .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setUid("uid115792")
    +            .setReplicaCount(564075208)
    +            .setAuthorizationMode(AuthorizationMode.forNumber(0))
    +            .setTransitEncryptionMode(TransitEncryptionMode.forNumber(0))
    +            .setSizeGb(2105542105)
    +            .setShardCount(-495377042)
    +            .addAllPscConfigs(new ArrayList())
    +            .addAllDiscoveryEndpoints(new ArrayList())
    +            .addAllPscConnections(new ArrayList())
    +            .setStateInfo(Cluster.StateInfo.newBuilder().build())
    +            .setNodeType(NodeType.forNumber(0))
    +            .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build())
    +            .putAllRedisConfigs(new HashMap())
    +            .setPreciseSizeGb(1342268405)
    +            .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
    +            .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build())
    +            .setDeletionProtectionEnabled(true)
    +            .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build())
    +            .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build())
    +            .addAllPscServiceAttachments(new ArrayList())
    +            .addAllClusterEndpoints(new ArrayList())
    +            .setBackupCollection(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
    +            .build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("rescheduleClusterMaintenanceTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockService.addResponse(resultOperation);
    +
    +    String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537";
    +    RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType =
    +        RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0);
    +    Timestamp scheduleTime = Timestamp.newBuilder().build();
    +
    +    Cluster actualResponse =
    +        client.rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime).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 rescheduleClusterMaintenanceExceptionTest2() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537";
    +      RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType =
    +          RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0);
    +      Timestamp scheduleTime = Timestamp.newBuilder().build();
    +      client.rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime).get();
    +      Assert.fail("No exception raised");
    +    } catch (ExecutionException e) {
    +    }
    +  }
    +
    +  @Test
    +  public void listBackupCollectionsTest() throws Exception {
    +    BackupCollection responsesElement = BackupCollection.newBuilder().build();
    +    ListBackupCollectionsResponse expectedResponse =
    +        ListBackupCollectionsResponse.newBuilder()
    +            .setNextPageToken("")
    +            .addAllBackupCollections(Arrays.asList(responsesElement))
    +            .build();
    +    mockService.addResponse(expectedResponse);
    +
    +    LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    +
    +    ListBackupCollectionsPagedResponse pagedListResponse = client.listBackupCollections(parent);
    +
    +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
    +
    +    Assert.assertEquals(1, resources.size());
    +    Assert.assertEquals(expectedResponse.getBackupCollectionsList().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 listBackupCollectionsExceptionTest() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    +      client.listBackupCollections(parent);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void listBackupCollectionsTest2() throws Exception {
    +    BackupCollection responsesElement = BackupCollection.newBuilder().build();
    +    ListBackupCollectionsResponse expectedResponse =
    +        ListBackupCollectionsResponse.newBuilder()
    +            .setNextPageToken("")
    +            .addAllBackupCollections(Arrays.asList(responsesElement))
    +            .build();
    +    mockService.addResponse(expectedResponse);
    +
    +    String parent = "projects/project-5833/locations/location-5833";
    +
    +    ListBackupCollectionsPagedResponse pagedListResponse = client.listBackupCollections(parent);
    +
    +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
    +
    +    Assert.assertEquals(1, resources.size());
    +    Assert.assertEquals(expectedResponse.getBackupCollectionsList().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 listBackupCollectionsExceptionTest2() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      String parent = "projects/project-5833/locations/location-5833";
    +      client.listBackupCollections(parent);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void getBackupCollectionTest() throws Exception {
    +    BackupCollection expectedResponse =
    +        BackupCollection.newBuilder()
    +            .setName(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setClusterUid("clusterUid240271350")
    +            .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setUid("uid115792")
    +            .build();
    +    mockService.addResponse(expectedResponse);
    +
    +    BackupCollectionName name =
    +        BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]");
    +
    +    BackupCollection actualResponse = client.getBackupCollection(name);
    +    Assert.assertEquals(expectedResponse, actualResponse);
    +
    +    List actualRequests = mockService.getRequestPaths();
    +    Assert.assertEquals(1, actualRequests.size());
    +
    +    String apiClientHeaderKey =
    +        mockService
    +            .getRequestHeaders()
    +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
    +            .iterator()
    +            .next();
    +    Assert.assertTrue(
    +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
    +            .matcher(apiClientHeaderKey)
    +            .matches());
    +  }
    +
    +  @Test
    +  public void getBackupCollectionExceptionTest() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      BackupCollectionName name =
    +          BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]");
    +      client.getBackupCollection(name);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void getBackupCollectionTest2() throws Exception {
    +    BackupCollection expectedResponse =
    +        BackupCollection.newBuilder()
    +            .setName(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setClusterUid("clusterUid240271350")
    +            .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setUid("uid115792")
    +            .build();
    +    mockService.addResponse(expectedResponse);
    +
    +    String name =
    +        "projects/project-9529/locations/location-9529/backupCollections/backupCollection-9529";
    +
    +    BackupCollection actualResponse = client.getBackupCollection(name);
    +    Assert.assertEquals(expectedResponse, actualResponse);
    +
    +    List actualRequests = mockService.getRequestPaths();
    +    Assert.assertEquals(1, actualRequests.size());
    +
    +    String apiClientHeaderKey =
    +        mockService
    +            .getRequestHeaders()
    +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
    +            .iterator()
    +            .next();
    +    Assert.assertTrue(
    +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
    +            .matcher(apiClientHeaderKey)
    +            .matches());
    +  }
    +
    +  @Test
    +  public void getBackupCollectionExceptionTest2() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      String name =
    +          "projects/project-9529/locations/location-9529/backupCollections/backupCollection-9529";
    +      client.getBackupCollection(name);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void listBackupsTest() throws Exception {
    +    Backup responsesElement = Backup.newBuilder().build();
    +    ListBackupsResponse expectedResponse =
    +        ListBackupsResponse.newBuilder()
    +            .setNextPageToken("")
    +            .addAllBackups(Arrays.asList(responsesElement))
    +            .build();
    +    mockService.addResponse(expectedResponse);
    +
    +    BackupCollectionName parent =
    +        BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]");
    +
    +    ListBackupsPagedResponse pagedListResponse = client.listBackups(parent);
    +
    +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
    +
    +    Assert.assertEquals(1, resources.size());
    +    Assert.assertEquals(expectedResponse.getBackupsList().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 listBackupsExceptionTest() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      BackupCollectionName parent =
    +          BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]");
    +      client.listBackups(parent);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void listBackupsTest2() throws Exception {
    +    Backup responsesElement = Backup.newBuilder().build();
    +    ListBackupsResponse expectedResponse =
    +        ListBackupsResponse.newBuilder()
    +            .setNextPageToken("")
    +            .addAllBackups(Arrays.asList(responsesElement))
    +            .build();
    +    mockService.addResponse(expectedResponse);
    +
    +    String parent =
    +        "projects/project-2584/locations/location-2584/backupCollections/backupCollection-2584";
    +
    +    ListBackupsPagedResponse pagedListResponse = client.listBackups(parent);
    +
    +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
    +
    +    Assert.assertEquals(1, resources.size());
    +    Assert.assertEquals(expectedResponse.getBackupsList().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 listBackupsExceptionTest2() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      String parent =
    +          "projects/project-2584/locations/location-2584/backupCollections/backupCollection-2584";
    +      client.listBackups(parent);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void getBackupTest() throws Exception {
    +    Backup expectedResponse =
    +        Backup.newBuilder()
    +            .setName(
    +                BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
    +                    .toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
    +            .setClusterUid("clusterUid240271350")
    +            .setTotalSizeBytes(-115423608)
    +            .setExpireTime(Timestamp.newBuilder().build())
    +            .setEngineVersion("engineVersion-1416229834")
    +            .addAllBackupFiles(new ArrayList())
    +            .setNodeType(NodeType.forNumber(0))
    +            .setReplicaCount(564075208)
    +            .setShardCount(-495377042)
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
    +            .setUid("uid115792")
    +            .build();
    +    mockService.addResponse(expectedResponse);
    +
    +    BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]");
    +
    +    Backup actualResponse = client.getBackup(name);
    +    Assert.assertEquals(expectedResponse, actualResponse);
    +
    +    List actualRequests = mockService.getRequestPaths();
    +    Assert.assertEquals(1, actualRequests.size());
    +
    +    String apiClientHeaderKey =
    +        mockService
    +            .getRequestHeaders()
    +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
    +            .iterator()
    +            .next();
    +    Assert.assertTrue(
    +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
    +            .matcher(apiClientHeaderKey)
    +            .matches());
    +  }
    +
    +  @Test
    +  public void getBackupExceptionTest() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]");
    +      client.getBackup(name);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void getBackupTest2() throws Exception {
    +    Backup expectedResponse =
    +        Backup.newBuilder()
    +            .setName(
    +                BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
    +                    .toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
    +            .setClusterUid("clusterUid240271350")
    +            .setTotalSizeBytes(-115423608)
    +            .setExpireTime(Timestamp.newBuilder().build())
    +            .setEngineVersion("engineVersion-1416229834")
    +            .addAllBackupFiles(new ArrayList())
    +            .setNodeType(NodeType.forNumber(0))
    +            .setReplicaCount(564075208)
    +            .setShardCount(-495377042)
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
    +            .setUid("uid115792")
    +            .build();
    +    mockService.addResponse(expectedResponse);
    +
    +    String name =
    +        "projects/project-3318/locations/location-3318/backupCollections/backupCollection-3318/backups/backup-3318";
    +
    +    Backup actualResponse = client.getBackup(name);
    +    Assert.assertEquals(expectedResponse, actualResponse);
    +
    +    List actualRequests = mockService.getRequestPaths();
    +    Assert.assertEquals(1, actualRequests.size());
    +
    +    String apiClientHeaderKey =
    +        mockService
    +            .getRequestHeaders()
    +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
    +            .iterator()
    +            .next();
    +    Assert.assertTrue(
    +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
    +            .matcher(apiClientHeaderKey)
    +            .matches());
    +  }
    +
    +  @Test
    +  public void getBackupExceptionTest2() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      String name =
    +          "projects/project-3318/locations/location-3318/backupCollections/backupCollection-3318/backups/backup-3318";
    +      client.getBackup(name);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void deleteBackupTest() throws Exception {
    +    Empty expectedResponse = Empty.newBuilder().build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("deleteBackupTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockService.addResponse(resultOperation);
    +
    +    BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]");
    +
    +    client.deleteBackupAsync(name).get();
    +
    +    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 deleteBackupExceptionTest() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]");
    +      client.deleteBackupAsync(name).get();
    +      Assert.fail("No exception raised");
    +    } catch (ExecutionException e) {
    +    }
    +  }
    +
    +  @Test
    +  public void deleteBackupTest2() throws Exception {
    +    Empty expectedResponse = Empty.newBuilder().build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("deleteBackupTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockService.addResponse(resultOperation);
    +
    +    String name =
    +        "projects/project-3318/locations/location-3318/backupCollections/backupCollection-3318/backups/backup-3318";
    +
    +    client.deleteBackupAsync(name).get();
    +
    +    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 deleteBackupExceptionTest2() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      String name =
    +          "projects/project-3318/locations/location-3318/backupCollections/backupCollection-3318/backups/backup-3318";
    +      client.deleteBackupAsync(name).get();
    +      Assert.fail("No exception raised");
    +    } catch (ExecutionException e) {
    +    }
    +  }
    +
    +  @Test
    +  public void exportBackupTest() throws Exception {
    +    Backup expectedResponse =
    +        Backup.newBuilder()
    +            .setName(
    +                BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
    +                    .toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
    +            .setClusterUid("clusterUid240271350")
    +            .setTotalSizeBytes(-115423608)
    +            .setExpireTime(Timestamp.newBuilder().build())
    +            .setEngineVersion("engineVersion-1416229834")
    +            .addAllBackupFiles(new ArrayList())
    +            .setNodeType(NodeType.forNumber(0))
    +            .setReplicaCount(564075208)
    +            .setShardCount(-495377042)
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
    +            .setUid("uid115792")
    +            .build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("exportBackupTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockService.addResponse(resultOperation);
    +
    +    ExportBackupRequest request =
    +        ExportBackupRequest.newBuilder()
    +            .setName(
    +                BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
    +                    .toString())
    +            .build();
    +
    +    Backup actualResponse = client.exportBackupAsync(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 exportBackupExceptionTest() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      ExportBackupRequest request =
    +          ExportBackupRequest.newBuilder()
    +              .setName(
    +                  BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
    +                      .toString())
    +              .build();
    +      client.exportBackupAsync(request).get();
    +      Assert.fail("No exception raised");
    +    } catch (ExecutionException e) {
    +    }
    +  }
    +
    +  @Test
    +  public void backupClusterTest() throws Exception {
    +    Cluster expectedResponse =
    +        Cluster.newBuilder()
    +            .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setUid("uid115792")
    +            .setReplicaCount(564075208)
    +            .setAuthorizationMode(AuthorizationMode.forNumber(0))
    +            .setTransitEncryptionMode(TransitEncryptionMode.forNumber(0))
    +            .setSizeGb(2105542105)
    +            .setShardCount(-495377042)
    +            .addAllPscConfigs(new ArrayList())
    +            .addAllDiscoveryEndpoints(new ArrayList())
    +            .addAllPscConnections(new ArrayList())
    +            .setStateInfo(Cluster.StateInfo.newBuilder().build())
    +            .setNodeType(NodeType.forNumber(0))
    +            .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build())
    +            .putAllRedisConfigs(new HashMap())
    +            .setPreciseSizeGb(1342268405)
    +            .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
    +            .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build())
    +            .setDeletionProtectionEnabled(true)
    +            .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build())
    +            .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build())
    +            .addAllPscServiceAttachments(new ArrayList())
    +            .addAllClusterEndpoints(new ArrayList())
    +            .setBackupCollection(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
    +            .build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("backupClusterTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockService.addResponse(resultOperation);
    +
    +    ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    +
    +    Cluster actualResponse = client.backupClusterAsync(name).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 backupClusterExceptionTest() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    +      client.backupClusterAsync(name).get();
    +      Assert.fail("No exception raised");
    +    } catch (ExecutionException e) {
    +    }
    +  }
    +
    +  @Test
    +  public void backupClusterTest2() throws Exception {
    +    Cluster expectedResponse =
    +        Cluster.newBuilder()
    +            .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setUid("uid115792")
    +            .setReplicaCount(564075208)
    +            .setAuthorizationMode(AuthorizationMode.forNumber(0))
    +            .setTransitEncryptionMode(TransitEncryptionMode.forNumber(0))
    +            .setSizeGb(2105542105)
    +            .setShardCount(-495377042)
    +            .addAllPscConfigs(new ArrayList())
    +            .addAllDiscoveryEndpoints(new ArrayList())
    +            .addAllPscConnections(new ArrayList())
    +            .setStateInfo(Cluster.StateInfo.newBuilder().build())
    +            .setNodeType(NodeType.forNumber(0))
    +            .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build())
    +            .putAllRedisConfigs(new HashMap())
    +            .setPreciseSizeGb(1342268405)
    +            .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
    +            .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build())
    +            .setDeletionProtectionEnabled(true)
    +            .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build())
    +            .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build())
    +            .addAllPscServiceAttachments(new ArrayList())
    +            .addAllClusterEndpoints(new ArrayList())
    +            .setBackupCollection(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
    +            .build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("backupClusterTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockService.addResponse(resultOperation);
    +
    +    String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537";
    +
    +    Cluster actualResponse = client.backupClusterAsync(name).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 backupClusterExceptionTest2() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537";
    +      client.backupClusterAsync(name).get();
    +      Assert.fail("No exception raised");
    +    } catch (ExecutionException e) {
    +    }
    +  }
    +
       @Test
       public void listLocationsTest() throws Exception {
         Location responsesElement = Location.newBuilder().build();
    diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterClientTest.java b/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterClientTest.java
    index 5bf8963ffcea..0343f2b82fa7 100644
    --- a/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterClientTest.java
    +++ b/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterClientTest.java
    @@ -16,6 +16,8 @@
     
     package com.google.cloud.redis.cluster.v1;
     
    +import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListBackupCollectionsPagedResponse;
    +import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListBackupsPagedResponse;
     import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListClustersPagedResponse;
     import static com.google.cloud.redis.cluster.v1.CloudRedisClusterClient.ListLocationsPagedResponse;
     
    @@ -204,7 +206,18 @@ public void getClusterTest() throws Exception {
                 .putAllRedisConfigs(new HashMap())
                 .setPreciseSizeGb(1342268405)
                 .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
    +            .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build())
                 .setDeletionProtectionEnabled(true)
    +            .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build())
    +            .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build())
    +            .addAllPscServiceAttachments(new ArrayList())
    +            .addAllClusterEndpoints(new ArrayList())
    +            .setBackupCollection(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
                 .build();
         mockCloudRedisCluster.addResponse(expectedResponse);
     
    @@ -259,7 +272,18 @@ public void getClusterTest2() throws Exception {
                 .putAllRedisConfigs(new HashMap())
                 .setPreciseSizeGb(1342268405)
                 .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
    +            .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build())
                 .setDeletionProtectionEnabled(true)
    +            .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build())
    +            .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build())
    +            .addAllPscServiceAttachments(new ArrayList())
    +            .addAllClusterEndpoints(new ArrayList())
    +            .setBackupCollection(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
                 .build();
         mockCloudRedisCluster.addResponse(expectedResponse);
     
    @@ -314,7 +338,18 @@ public void updateClusterTest() throws Exception {
                 .putAllRedisConfigs(new HashMap())
                 .setPreciseSizeGb(1342268405)
                 .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
    +            .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build())
                 .setDeletionProtectionEnabled(true)
    +            .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build())
    +            .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build())
    +            .addAllPscServiceAttachments(new ArrayList())
    +            .addAllClusterEndpoints(new ArrayList())
    +            .setBackupCollection(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
                 .build();
         Operation resultOperation =
             Operation.newBuilder()
    @@ -464,7 +499,18 @@ public void createClusterTest() throws Exception {
                 .putAllRedisConfigs(new HashMap())
                 .setPreciseSizeGb(1342268405)
                 .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
    +            .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build())
                 .setDeletionProtectionEnabled(true)
    +            .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build())
    +            .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build())
    +            .addAllPscServiceAttachments(new ArrayList())
    +            .addAllClusterEndpoints(new ArrayList())
    +            .setBackupCollection(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
                 .build();
         Operation resultOperation =
             Operation.newBuilder()
    @@ -533,7 +579,18 @@ public void createClusterTest2() throws Exception {
                 .putAllRedisConfigs(new HashMap())
                 .setPreciseSizeGb(1342268405)
                 .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
    +            .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build())
                 .setDeletionProtectionEnabled(true)
    +            .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build())
    +            .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build())
    +            .addAllPscServiceAttachments(new ArrayList())
    +            .addAllClusterEndpoints(new ArrayList())
    +            .setBackupCollection(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
                 .build();
         Operation resultOperation =
             Operation.newBuilder()
    @@ -661,6 +718,851 @@ public void getClusterCertificateAuthorityExceptionTest2() throws Exception {
         }
       }
     
    +  @Test
    +  public void rescheduleClusterMaintenanceTest() throws Exception {
    +    Cluster expectedResponse =
    +        Cluster.newBuilder()
    +            .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setUid("uid115792")
    +            .setReplicaCount(564075208)
    +            .setAuthorizationMode(AuthorizationMode.forNumber(0))
    +            .setTransitEncryptionMode(TransitEncryptionMode.forNumber(0))
    +            .setSizeGb(2105542105)
    +            .setShardCount(-495377042)
    +            .addAllPscConfigs(new ArrayList())
    +            .addAllDiscoveryEndpoints(new ArrayList())
    +            .addAllPscConnections(new ArrayList())
    +            .setStateInfo(Cluster.StateInfo.newBuilder().build())
    +            .setNodeType(NodeType.forNumber(0))
    +            .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build())
    +            .putAllRedisConfigs(new HashMap())
    +            .setPreciseSizeGb(1342268405)
    +            .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
    +            .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build())
    +            .setDeletionProtectionEnabled(true)
    +            .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build())
    +            .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build())
    +            .addAllPscServiceAttachments(new ArrayList())
    +            .addAllClusterEndpoints(new ArrayList())
    +            .setBackupCollection(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
    +            .build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("rescheduleClusterMaintenanceTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockCloudRedisCluster.addResponse(resultOperation);
    +
    +    ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    +    RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType =
    +        RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0);
    +    Timestamp scheduleTime = Timestamp.newBuilder().build();
    +
    +    Cluster actualResponse =
    +        client.rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime).get();
    +    Assert.assertEquals(expectedResponse, actualResponse);
    +
    +    List actualRequests = mockCloudRedisCluster.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    RescheduleClusterMaintenanceRequest actualRequest =
    +        ((RescheduleClusterMaintenanceRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(name.toString(), actualRequest.getName());
    +    Assert.assertEquals(rescheduleType, actualRequest.getRescheduleType());
    +    Assert.assertEquals(scheduleTime, actualRequest.getScheduleTime());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void rescheduleClusterMaintenanceExceptionTest() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockCloudRedisCluster.addException(exception);
    +
    +    try {
    +      ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    +      RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType =
    +          RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0);
    +      Timestamp scheduleTime = Timestamp.newBuilder().build();
    +      client.rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime).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 rescheduleClusterMaintenanceTest2() throws Exception {
    +    Cluster expectedResponse =
    +        Cluster.newBuilder()
    +            .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setUid("uid115792")
    +            .setReplicaCount(564075208)
    +            .setAuthorizationMode(AuthorizationMode.forNumber(0))
    +            .setTransitEncryptionMode(TransitEncryptionMode.forNumber(0))
    +            .setSizeGb(2105542105)
    +            .setShardCount(-495377042)
    +            .addAllPscConfigs(new ArrayList())
    +            .addAllDiscoveryEndpoints(new ArrayList())
    +            .addAllPscConnections(new ArrayList())
    +            .setStateInfo(Cluster.StateInfo.newBuilder().build())
    +            .setNodeType(NodeType.forNumber(0))
    +            .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build())
    +            .putAllRedisConfigs(new HashMap())
    +            .setPreciseSizeGb(1342268405)
    +            .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
    +            .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build())
    +            .setDeletionProtectionEnabled(true)
    +            .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build())
    +            .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build())
    +            .addAllPscServiceAttachments(new ArrayList())
    +            .addAllClusterEndpoints(new ArrayList())
    +            .setBackupCollection(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
    +            .build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("rescheduleClusterMaintenanceTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockCloudRedisCluster.addResponse(resultOperation);
    +
    +    String name = "name3373707";
    +    RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType =
    +        RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0);
    +    Timestamp scheduleTime = Timestamp.newBuilder().build();
    +
    +    Cluster actualResponse =
    +        client.rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime).get();
    +    Assert.assertEquals(expectedResponse, actualResponse);
    +
    +    List actualRequests = mockCloudRedisCluster.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    RescheduleClusterMaintenanceRequest actualRequest =
    +        ((RescheduleClusterMaintenanceRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(name, actualRequest.getName());
    +    Assert.assertEquals(rescheduleType, actualRequest.getRescheduleType());
    +    Assert.assertEquals(scheduleTime, actualRequest.getScheduleTime());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void rescheduleClusterMaintenanceExceptionTest2() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockCloudRedisCluster.addException(exception);
    +
    +    try {
    +      String name = "name3373707";
    +      RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType =
    +          RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0);
    +      Timestamp scheduleTime = Timestamp.newBuilder().build();
    +      client.rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime).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 listBackupCollectionsTest() throws Exception {
    +    BackupCollection responsesElement = BackupCollection.newBuilder().build();
    +    ListBackupCollectionsResponse expectedResponse =
    +        ListBackupCollectionsResponse.newBuilder()
    +            .setNextPageToken("")
    +            .addAllBackupCollections(Arrays.asList(responsesElement))
    +            .build();
    +    mockCloudRedisCluster.addResponse(expectedResponse);
    +
    +    LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    +
    +    ListBackupCollectionsPagedResponse pagedListResponse = client.listBackupCollections(parent);
    +
    +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
    +
    +    Assert.assertEquals(1, resources.size());
    +    Assert.assertEquals(expectedResponse.getBackupCollectionsList().get(0), resources.get(0));
    +
    +    List actualRequests = mockCloudRedisCluster.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    ListBackupCollectionsRequest actualRequest =
    +        ((ListBackupCollectionsRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(parent.toString(), actualRequest.getParent());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void listBackupCollectionsExceptionTest() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockCloudRedisCluster.addException(exception);
    +
    +    try {
    +      LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    +      client.listBackupCollections(parent);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void listBackupCollectionsTest2() throws Exception {
    +    BackupCollection responsesElement = BackupCollection.newBuilder().build();
    +    ListBackupCollectionsResponse expectedResponse =
    +        ListBackupCollectionsResponse.newBuilder()
    +            .setNextPageToken("")
    +            .addAllBackupCollections(Arrays.asList(responsesElement))
    +            .build();
    +    mockCloudRedisCluster.addResponse(expectedResponse);
    +
    +    String parent = "parent-995424086";
    +
    +    ListBackupCollectionsPagedResponse pagedListResponse = client.listBackupCollections(parent);
    +
    +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
    +
    +    Assert.assertEquals(1, resources.size());
    +    Assert.assertEquals(expectedResponse.getBackupCollectionsList().get(0), resources.get(0));
    +
    +    List actualRequests = mockCloudRedisCluster.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    ListBackupCollectionsRequest actualRequest =
    +        ((ListBackupCollectionsRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(parent, actualRequest.getParent());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void listBackupCollectionsExceptionTest2() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockCloudRedisCluster.addException(exception);
    +
    +    try {
    +      String parent = "parent-995424086";
    +      client.listBackupCollections(parent);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void getBackupCollectionTest() throws Exception {
    +    BackupCollection expectedResponse =
    +        BackupCollection.newBuilder()
    +            .setName(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setClusterUid("clusterUid240271350")
    +            .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setUid("uid115792")
    +            .build();
    +    mockCloudRedisCluster.addResponse(expectedResponse);
    +
    +    BackupCollectionName name =
    +        BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]");
    +
    +    BackupCollection actualResponse = client.getBackupCollection(name);
    +    Assert.assertEquals(expectedResponse, actualResponse);
    +
    +    List actualRequests = mockCloudRedisCluster.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    GetBackupCollectionRequest actualRequest = ((GetBackupCollectionRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(name.toString(), actualRequest.getName());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void getBackupCollectionExceptionTest() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockCloudRedisCluster.addException(exception);
    +
    +    try {
    +      BackupCollectionName name =
    +          BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]");
    +      client.getBackupCollection(name);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void getBackupCollectionTest2() throws Exception {
    +    BackupCollection expectedResponse =
    +        BackupCollection.newBuilder()
    +            .setName(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setClusterUid("clusterUid240271350")
    +            .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setUid("uid115792")
    +            .build();
    +    mockCloudRedisCluster.addResponse(expectedResponse);
    +
    +    String name = "name3373707";
    +
    +    BackupCollection actualResponse = client.getBackupCollection(name);
    +    Assert.assertEquals(expectedResponse, actualResponse);
    +
    +    List actualRequests = mockCloudRedisCluster.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    GetBackupCollectionRequest actualRequest = ((GetBackupCollectionRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(name, actualRequest.getName());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void getBackupCollectionExceptionTest2() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockCloudRedisCluster.addException(exception);
    +
    +    try {
    +      String name = "name3373707";
    +      client.getBackupCollection(name);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void listBackupsTest() throws Exception {
    +    Backup responsesElement = Backup.newBuilder().build();
    +    ListBackupsResponse expectedResponse =
    +        ListBackupsResponse.newBuilder()
    +            .setNextPageToken("")
    +            .addAllBackups(Arrays.asList(responsesElement))
    +            .build();
    +    mockCloudRedisCluster.addResponse(expectedResponse);
    +
    +    BackupCollectionName parent =
    +        BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]");
    +
    +    ListBackupsPagedResponse pagedListResponse = client.listBackups(parent);
    +
    +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
    +
    +    Assert.assertEquals(1, resources.size());
    +    Assert.assertEquals(expectedResponse.getBackupsList().get(0), resources.get(0));
    +
    +    List actualRequests = mockCloudRedisCluster.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    ListBackupsRequest actualRequest = ((ListBackupsRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(parent.toString(), actualRequest.getParent());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void listBackupsExceptionTest() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockCloudRedisCluster.addException(exception);
    +
    +    try {
    +      BackupCollectionName parent =
    +          BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]");
    +      client.listBackups(parent);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void listBackupsTest2() throws Exception {
    +    Backup responsesElement = Backup.newBuilder().build();
    +    ListBackupsResponse expectedResponse =
    +        ListBackupsResponse.newBuilder()
    +            .setNextPageToken("")
    +            .addAllBackups(Arrays.asList(responsesElement))
    +            .build();
    +    mockCloudRedisCluster.addResponse(expectedResponse);
    +
    +    String parent = "parent-995424086";
    +
    +    ListBackupsPagedResponse pagedListResponse = client.listBackups(parent);
    +
    +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
    +
    +    Assert.assertEquals(1, resources.size());
    +    Assert.assertEquals(expectedResponse.getBackupsList().get(0), resources.get(0));
    +
    +    List actualRequests = mockCloudRedisCluster.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    ListBackupsRequest actualRequest = ((ListBackupsRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(parent, actualRequest.getParent());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void listBackupsExceptionTest2() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockCloudRedisCluster.addException(exception);
    +
    +    try {
    +      String parent = "parent-995424086";
    +      client.listBackups(parent);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void getBackupTest() throws Exception {
    +    Backup expectedResponse =
    +        Backup.newBuilder()
    +            .setName(
    +                BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
    +                    .toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
    +            .setClusterUid("clusterUid240271350")
    +            .setTotalSizeBytes(-115423608)
    +            .setExpireTime(Timestamp.newBuilder().build())
    +            .setEngineVersion("engineVersion-1416229834")
    +            .addAllBackupFiles(new ArrayList())
    +            .setNodeType(NodeType.forNumber(0))
    +            .setReplicaCount(564075208)
    +            .setShardCount(-495377042)
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
    +            .setUid("uid115792")
    +            .build();
    +    mockCloudRedisCluster.addResponse(expectedResponse);
    +
    +    BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]");
    +
    +    Backup actualResponse = client.getBackup(name);
    +    Assert.assertEquals(expectedResponse, actualResponse);
    +
    +    List actualRequests = mockCloudRedisCluster.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    GetBackupRequest actualRequest = ((GetBackupRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(name.toString(), actualRequest.getName());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void getBackupExceptionTest() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockCloudRedisCluster.addException(exception);
    +
    +    try {
    +      BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]");
    +      client.getBackup(name);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void getBackupTest2() throws Exception {
    +    Backup expectedResponse =
    +        Backup.newBuilder()
    +            .setName(
    +                BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
    +                    .toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
    +            .setClusterUid("clusterUid240271350")
    +            .setTotalSizeBytes(-115423608)
    +            .setExpireTime(Timestamp.newBuilder().build())
    +            .setEngineVersion("engineVersion-1416229834")
    +            .addAllBackupFiles(new ArrayList())
    +            .setNodeType(NodeType.forNumber(0))
    +            .setReplicaCount(564075208)
    +            .setShardCount(-495377042)
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
    +            .setUid("uid115792")
    +            .build();
    +    mockCloudRedisCluster.addResponse(expectedResponse);
    +
    +    String name = "name3373707";
    +
    +    Backup actualResponse = client.getBackup(name);
    +    Assert.assertEquals(expectedResponse, actualResponse);
    +
    +    List actualRequests = mockCloudRedisCluster.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    GetBackupRequest actualRequest = ((GetBackupRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(name, actualRequest.getName());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void getBackupExceptionTest2() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockCloudRedisCluster.addException(exception);
    +
    +    try {
    +      String name = "name3373707";
    +      client.getBackup(name);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void deleteBackupTest() throws Exception {
    +    Empty expectedResponse = Empty.newBuilder().build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("deleteBackupTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockCloudRedisCluster.addResponse(resultOperation);
    +
    +    BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]");
    +
    +    client.deleteBackupAsync(name).get();
    +
    +    List actualRequests = mockCloudRedisCluster.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    DeleteBackupRequest actualRequest = ((DeleteBackupRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(name.toString(), actualRequest.getName());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void deleteBackupExceptionTest() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockCloudRedisCluster.addException(exception);
    +
    +    try {
    +      BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]");
    +      client.deleteBackupAsync(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 deleteBackupTest2() throws Exception {
    +    Empty expectedResponse = Empty.newBuilder().build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("deleteBackupTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockCloudRedisCluster.addResponse(resultOperation);
    +
    +    String name = "name3373707";
    +
    +    client.deleteBackupAsync(name).get();
    +
    +    List actualRequests = mockCloudRedisCluster.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    DeleteBackupRequest actualRequest = ((DeleteBackupRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(name, actualRequest.getName());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void deleteBackupExceptionTest2() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockCloudRedisCluster.addException(exception);
    +
    +    try {
    +      String name = "name3373707";
    +      client.deleteBackupAsync(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 exportBackupTest() throws Exception {
    +    Backup expectedResponse =
    +        Backup.newBuilder()
    +            .setName(
    +                BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
    +                    .toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
    +            .setClusterUid("clusterUid240271350")
    +            .setTotalSizeBytes(-115423608)
    +            .setExpireTime(Timestamp.newBuilder().build())
    +            .setEngineVersion("engineVersion-1416229834")
    +            .addAllBackupFiles(new ArrayList())
    +            .setNodeType(NodeType.forNumber(0))
    +            .setReplicaCount(564075208)
    +            .setShardCount(-495377042)
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
    +            .setUid("uid115792")
    +            .build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("exportBackupTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockCloudRedisCluster.addResponse(resultOperation);
    +
    +    ExportBackupRequest request =
    +        ExportBackupRequest.newBuilder()
    +            .setName(
    +                BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
    +                    .toString())
    +            .build();
    +
    +    Backup actualResponse = client.exportBackupAsync(request).get();
    +    Assert.assertEquals(expectedResponse, actualResponse);
    +
    +    List actualRequests = mockCloudRedisCluster.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    ExportBackupRequest actualRequest = ((ExportBackupRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(request.getGcsBucket(), actualRequest.getGcsBucket());
    +    Assert.assertEquals(request.getName(), actualRequest.getName());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void exportBackupExceptionTest() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockCloudRedisCluster.addException(exception);
    +
    +    try {
    +      ExportBackupRequest request =
    +          ExportBackupRequest.newBuilder()
    +              .setName(
    +                  BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
    +                      .toString())
    +              .build();
    +      client.exportBackupAsync(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 backupClusterTest() throws Exception {
    +    Cluster expectedResponse =
    +        Cluster.newBuilder()
    +            .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setUid("uid115792")
    +            .setReplicaCount(564075208)
    +            .setAuthorizationMode(AuthorizationMode.forNumber(0))
    +            .setTransitEncryptionMode(TransitEncryptionMode.forNumber(0))
    +            .setSizeGb(2105542105)
    +            .setShardCount(-495377042)
    +            .addAllPscConfigs(new ArrayList())
    +            .addAllDiscoveryEndpoints(new ArrayList())
    +            .addAllPscConnections(new ArrayList())
    +            .setStateInfo(Cluster.StateInfo.newBuilder().build())
    +            .setNodeType(NodeType.forNumber(0))
    +            .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build())
    +            .putAllRedisConfigs(new HashMap())
    +            .setPreciseSizeGb(1342268405)
    +            .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
    +            .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build())
    +            .setDeletionProtectionEnabled(true)
    +            .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build())
    +            .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build())
    +            .addAllPscServiceAttachments(new ArrayList())
    +            .addAllClusterEndpoints(new ArrayList())
    +            .setBackupCollection(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
    +            .build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("backupClusterTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockCloudRedisCluster.addResponse(resultOperation);
    +
    +    ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    +
    +    Cluster actualResponse = client.backupClusterAsync(name).get();
    +    Assert.assertEquals(expectedResponse, actualResponse);
    +
    +    List actualRequests = mockCloudRedisCluster.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    BackupClusterRequest actualRequest = ((BackupClusterRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(name.toString(), actualRequest.getName());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void backupClusterExceptionTest() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockCloudRedisCluster.addException(exception);
    +
    +    try {
    +      ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    +      client.backupClusterAsync(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 backupClusterTest2() throws Exception {
    +    Cluster expectedResponse =
    +        Cluster.newBuilder()
    +            .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setUid("uid115792")
    +            .setReplicaCount(564075208)
    +            .setAuthorizationMode(AuthorizationMode.forNumber(0))
    +            .setTransitEncryptionMode(TransitEncryptionMode.forNumber(0))
    +            .setSizeGb(2105542105)
    +            .setShardCount(-495377042)
    +            .addAllPscConfigs(new ArrayList())
    +            .addAllDiscoveryEndpoints(new ArrayList())
    +            .addAllPscConnections(new ArrayList())
    +            .setStateInfo(Cluster.StateInfo.newBuilder().build())
    +            .setNodeType(NodeType.forNumber(0))
    +            .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build())
    +            .putAllRedisConfigs(new HashMap())
    +            .setPreciseSizeGb(1342268405)
    +            .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
    +            .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build())
    +            .setDeletionProtectionEnabled(true)
    +            .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build())
    +            .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build())
    +            .addAllPscServiceAttachments(new ArrayList())
    +            .addAllClusterEndpoints(new ArrayList())
    +            .setBackupCollection(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
    +            .build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("backupClusterTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockCloudRedisCluster.addResponse(resultOperation);
    +
    +    String name = "name3373707";
    +
    +    Cluster actualResponse = client.backupClusterAsync(name).get();
    +    Assert.assertEquals(expectedResponse, actualResponse);
    +
    +    List actualRequests = mockCloudRedisCluster.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    BackupClusterRequest actualRequest = ((BackupClusterRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(name, actualRequest.getName());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void backupClusterExceptionTest2() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockCloudRedisCluster.addException(exception);
    +
    +    try {
    +      String name = "name3373707";
    +      client.backupClusterAsync(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();
    diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1/MockCloudRedisClusterImpl.java b/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1/MockCloudRedisClusterImpl.java
    index 3a0ee4da29b0..0e1219f2ad84 100644
    --- a/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1/MockCloudRedisClusterImpl.java
    +++ b/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1/MockCloudRedisClusterImpl.java
    @@ -184,4 +184,172 @@ public void getClusterCertificateAuthority(
                       Exception.class.getName())));
         }
       }
    +
    +  @Override
    +  public void rescheduleClusterMaintenance(
    +      RescheduleClusterMaintenanceRequest 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 RescheduleClusterMaintenance, expected %s or %s",
    +                  response == null ? "null" : response.getClass().getName(),
    +                  Operation.class.getName(),
    +                  Exception.class.getName())));
    +    }
    +  }
    +
    +  @Override
    +  public void listBackupCollections(
    +      ListBackupCollectionsRequest request,
    +      StreamObserver responseObserver) {
    +    Object response = responses.poll();
    +    if (response instanceof ListBackupCollectionsResponse) {
    +      requests.add(request);
    +      responseObserver.onNext(((ListBackupCollectionsResponse) 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 ListBackupCollections, expected %s or %s",
    +                  response == null ? "null" : response.getClass().getName(),
    +                  ListBackupCollectionsResponse.class.getName(),
    +                  Exception.class.getName())));
    +    }
    +  }
    +
    +  @Override
    +  public void getBackupCollection(
    +      GetBackupCollectionRequest request, StreamObserver responseObserver) {
    +    Object response = responses.poll();
    +    if (response instanceof BackupCollection) {
    +      requests.add(request);
    +      responseObserver.onNext(((BackupCollection) 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 GetBackupCollection, expected %s or %s",
    +                  response == null ? "null" : response.getClass().getName(),
    +                  BackupCollection.class.getName(),
    +                  Exception.class.getName())));
    +    }
    +  }
    +
    +  @Override
    +  public void listBackups(
    +      ListBackupsRequest request, StreamObserver responseObserver) {
    +    Object response = responses.poll();
    +    if (response instanceof ListBackupsResponse) {
    +      requests.add(request);
    +      responseObserver.onNext(((ListBackupsResponse) 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 ListBackups, expected %s or %s",
    +                  response == null ? "null" : response.getClass().getName(),
    +                  ListBackupsResponse.class.getName(),
    +                  Exception.class.getName())));
    +    }
    +  }
    +
    +  @Override
    +  public void getBackup(GetBackupRequest request, StreamObserver responseObserver) {
    +    Object response = responses.poll();
    +    if (response instanceof Backup) {
    +      requests.add(request);
    +      responseObserver.onNext(((Backup) 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 GetBackup, expected %s or %s",
    +                  response == null ? "null" : response.getClass().getName(),
    +                  Backup.class.getName(),
    +                  Exception.class.getName())));
    +    }
    +  }
    +
    +  @Override
    +  public void deleteBackup(
    +      DeleteBackupRequest 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 DeleteBackup, expected %s or %s",
    +                  response == null ? "null" : response.getClass().getName(),
    +                  Operation.class.getName(),
    +                  Exception.class.getName())));
    +    }
    +  }
    +
    +  @Override
    +  public void exportBackup(
    +      ExportBackupRequest 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 ExportBackup, expected %s or %s",
    +                  response == null ? "null" : response.getClass().getName(),
    +                  Operation.class.getName(),
    +                  Exception.class.getName())));
    +    }
    +  }
    +
    +  @Override
    +  public void backupCluster(
    +      BackupClusterRequest 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 BackupCluster, expected %s or %s",
    +                  response == null ? "null" : response.getClass().getName(),
    +                  Operation.class.getName(),
    +                  Exception.class.getName())));
    +    }
    +  }
     }
    diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterClientHttpJsonTest.java b/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterClientHttpJsonTest.java
    index ae85fa520025..c39710081141 100644
    --- a/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterClientHttpJsonTest.java
    +++ b/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterClientHttpJsonTest.java
    @@ -16,6 +16,8 @@
     
     package com.google.cloud.redis.cluster.v1beta1;
     
    +import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListBackupCollectionsPagedResponse;
    +import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListBackupsPagedResponse;
     import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListClustersPagedResponse;
     import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListLocationsPagedResponse;
     
    @@ -209,7 +211,18 @@ public void getClusterTest() throws Exception {
                 .putAllRedisConfigs(new HashMap())
                 .setPreciseSizeGb(1342268405)
                 .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
    +            .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build())
                 .setDeletionProtectionEnabled(true)
    +            .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build())
    +            .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build())
    +            .addAllPscServiceAttachments(new ArrayList())
    +            .addAllClusterEndpoints(new ArrayList())
    +            .setBackupCollection(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
                 .build();
         mockService.addResponse(expectedResponse);
     
    @@ -270,7 +283,18 @@ public void getClusterTest2() throws Exception {
                 .putAllRedisConfigs(new HashMap())
                 .setPreciseSizeGb(1342268405)
                 .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
    +            .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build())
                 .setDeletionProtectionEnabled(true)
    +            .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build())
    +            .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build())
    +            .addAllPscServiceAttachments(new ArrayList())
    +            .addAllClusterEndpoints(new ArrayList())
    +            .setBackupCollection(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
                 .build();
         mockService.addResponse(expectedResponse);
     
    @@ -331,7 +355,18 @@ public void updateClusterTest() throws Exception {
                 .putAllRedisConfigs(new HashMap())
                 .setPreciseSizeGb(1342268405)
                 .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
    +            .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build())
                 .setDeletionProtectionEnabled(true)
    +            .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build())
    +            .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build())
    +            .addAllPscServiceAttachments(new ArrayList())
    +            .addAllClusterEndpoints(new ArrayList())
    +            .setBackupCollection(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
                 .build();
         Operation resultOperation =
             Operation.newBuilder()
    @@ -360,7 +395,18 @@ public void updateClusterTest() throws Exception {
                 .putAllRedisConfigs(new HashMap())
                 .setPreciseSizeGb(1342268405)
                 .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
    +            .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build())
                 .setDeletionProtectionEnabled(true)
    +            .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build())
    +            .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build())
    +            .addAllPscServiceAttachments(new ArrayList())
    +            .addAllClusterEndpoints(new ArrayList())
    +            .setBackupCollection(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
                 .build();
         FieldMask updateMask = FieldMask.newBuilder().build();
     
    @@ -409,7 +455,18 @@ public void updateClusterExceptionTest() throws Exception {
                   .putAllRedisConfigs(new HashMap())
                   .setPreciseSizeGb(1342268405)
                   .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
    +              .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build())
                   .setDeletionProtectionEnabled(true)
    +              .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build())
    +              .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build())
    +              .addAllPscServiceAttachments(new ArrayList())
    +              .addAllClusterEndpoints(new ArrayList())
    +              .setBackupCollection(
    +                  BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                      .toString())
    +              .setKmsKey("kmsKey-1127483058")
    +              .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
    +              .setEncryptionInfo(EncryptionInfo.newBuilder().build())
                   .build();
           FieldMask updateMask = FieldMask.newBuilder().build();
           client.updateClusterAsync(cluster, updateMask).get();
    @@ -529,7 +586,18 @@ public void createClusterTest() throws Exception {
                 .putAllRedisConfigs(new HashMap())
                 .setPreciseSizeGb(1342268405)
                 .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
    +            .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build())
                 .setDeletionProtectionEnabled(true)
    +            .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build())
    +            .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build())
    +            .addAllPscServiceAttachments(new ArrayList())
    +            .addAllClusterEndpoints(new ArrayList())
    +            .setBackupCollection(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
                 .build();
         Operation resultOperation =
             Operation.newBuilder()
    @@ -599,7 +667,18 @@ public void createClusterTest2() throws Exception {
                 .putAllRedisConfigs(new HashMap())
                 .setPreciseSizeGb(1342268405)
                 .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
    +            .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build())
                 .setDeletionProtectionEnabled(true)
    +            .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build())
    +            .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build())
    +            .addAllPscServiceAttachments(new ArrayList())
    +            .addAllClusterEndpoints(new ArrayList())
    +            .setBackupCollection(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
                 .build();
         Operation resultOperation =
             Operation.newBuilder()
    @@ -740,6 +819,919 @@ public void getClusterCertificateAuthorityExceptionTest2() throws Exception {
         }
       }
     
    +  @Test
    +  public void rescheduleClusterMaintenanceTest() throws Exception {
    +    Cluster expectedResponse =
    +        Cluster.newBuilder()
    +            .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setUid("uid115792")
    +            .setReplicaCount(564075208)
    +            .setAuthorizationMode(AuthorizationMode.forNumber(0))
    +            .setTransitEncryptionMode(TransitEncryptionMode.forNumber(0))
    +            .setSizeGb(2105542105)
    +            .setShardCount(-495377042)
    +            .addAllPscConfigs(new ArrayList())
    +            .addAllDiscoveryEndpoints(new ArrayList())
    +            .addAllPscConnections(new ArrayList())
    +            .setStateInfo(Cluster.StateInfo.newBuilder().build())
    +            .setNodeType(NodeType.forNumber(0))
    +            .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build())
    +            .putAllRedisConfigs(new HashMap())
    +            .setPreciseSizeGb(1342268405)
    +            .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
    +            .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build())
    +            .setDeletionProtectionEnabled(true)
    +            .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build())
    +            .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build())
    +            .addAllPscServiceAttachments(new ArrayList())
    +            .addAllClusterEndpoints(new ArrayList())
    +            .setBackupCollection(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
    +            .build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("rescheduleClusterMaintenanceTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockService.addResponse(resultOperation);
    +
    +    ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    +    RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType =
    +        RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0);
    +    Timestamp scheduleTime = Timestamp.newBuilder().build();
    +
    +    Cluster actualResponse =
    +        client.rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime).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 rescheduleClusterMaintenanceExceptionTest() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    +      RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType =
    +          RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0);
    +      Timestamp scheduleTime = Timestamp.newBuilder().build();
    +      client.rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime).get();
    +      Assert.fail("No exception raised");
    +    } catch (ExecutionException e) {
    +    }
    +  }
    +
    +  @Test
    +  public void rescheduleClusterMaintenanceTest2() throws Exception {
    +    Cluster expectedResponse =
    +        Cluster.newBuilder()
    +            .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setUid("uid115792")
    +            .setReplicaCount(564075208)
    +            .setAuthorizationMode(AuthorizationMode.forNumber(0))
    +            .setTransitEncryptionMode(TransitEncryptionMode.forNumber(0))
    +            .setSizeGb(2105542105)
    +            .setShardCount(-495377042)
    +            .addAllPscConfigs(new ArrayList())
    +            .addAllDiscoveryEndpoints(new ArrayList())
    +            .addAllPscConnections(new ArrayList())
    +            .setStateInfo(Cluster.StateInfo.newBuilder().build())
    +            .setNodeType(NodeType.forNumber(0))
    +            .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build())
    +            .putAllRedisConfigs(new HashMap())
    +            .setPreciseSizeGb(1342268405)
    +            .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
    +            .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build())
    +            .setDeletionProtectionEnabled(true)
    +            .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build())
    +            .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build())
    +            .addAllPscServiceAttachments(new ArrayList())
    +            .addAllClusterEndpoints(new ArrayList())
    +            .setBackupCollection(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
    +            .build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("rescheduleClusterMaintenanceTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockService.addResponse(resultOperation);
    +
    +    String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537";
    +    RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType =
    +        RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0);
    +    Timestamp scheduleTime = Timestamp.newBuilder().build();
    +
    +    Cluster actualResponse =
    +        client.rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime).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 rescheduleClusterMaintenanceExceptionTest2() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537";
    +      RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType =
    +          RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0);
    +      Timestamp scheduleTime = Timestamp.newBuilder().build();
    +      client.rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime).get();
    +      Assert.fail("No exception raised");
    +    } catch (ExecutionException e) {
    +    }
    +  }
    +
    +  @Test
    +  public void listBackupCollectionsTest() throws Exception {
    +    BackupCollection responsesElement = BackupCollection.newBuilder().build();
    +    ListBackupCollectionsResponse expectedResponse =
    +        ListBackupCollectionsResponse.newBuilder()
    +            .setNextPageToken("")
    +            .addAllBackupCollections(Arrays.asList(responsesElement))
    +            .build();
    +    mockService.addResponse(expectedResponse);
    +
    +    LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    +
    +    ListBackupCollectionsPagedResponse pagedListResponse = client.listBackupCollections(parent);
    +
    +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
    +
    +    Assert.assertEquals(1, resources.size());
    +    Assert.assertEquals(expectedResponse.getBackupCollectionsList().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 listBackupCollectionsExceptionTest() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    +      client.listBackupCollections(parent);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void listBackupCollectionsTest2() throws Exception {
    +    BackupCollection responsesElement = BackupCollection.newBuilder().build();
    +    ListBackupCollectionsResponse expectedResponse =
    +        ListBackupCollectionsResponse.newBuilder()
    +            .setNextPageToken("")
    +            .addAllBackupCollections(Arrays.asList(responsesElement))
    +            .build();
    +    mockService.addResponse(expectedResponse);
    +
    +    String parent = "projects/project-5833/locations/location-5833";
    +
    +    ListBackupCollectionsPagedResponse pagedListResponse = client.listBackupCollections(parent);
    +
    +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
    +
    +    Assert.assertEquals(1, resources.size());
    +    Assert.assertEquals(expectedResponse.getBackupCollectionsList().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 listBackupCollectionsExceptionTest2() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      String parent = "projects/project-5833/locations/location-5833";
    +      client.listBackupCollections(parent);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void getBackupCollectionTest() throws Exception {
    +    BackupCollection expectedResponse =
    +        BackupCollection.newBuilder()
    +            .setName(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setClusterUid("clusterUid240271350")
    +            .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setUid("uid115792")
    +            .build();
    +    mockService.addResponse(expectedResponse);
    +
    +    BackupCollectionName name =
    +        BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]");
    +
    +    BackupCollection actualResponse = client.getBackupCollection(name);
    +    Assert.assertEquals(expectedResponse, actualResponse);
    +
    +    List actualRequests = mockService.getRequestPaths();
    +    Assert.assertEquals(1, actualRequests.size());
    +
    +    String apiClientHeaderKey =
    +        mockService
    +            .getRequestHeaders()
    +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
    +            .iterator()
    +            .next();
    +    Assert.assertTrue(
    +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
    +            .matcher(apiClientHeaderKey)
    +            .matches());
    +  }
    +
    +  @Test
    +  public void getBackupCollectionExceptionTest() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      BackupCollectionName name =
    +          BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]");
    +      client.getBackupCollection(name);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void getBackupCollectionTest2() throws Exception {
    +    BackupCollection expectedResponse =
    +        BackupCollection.newBuilder()
    +            .setName(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setClusterUid("clusterUid240271350")
    +            .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setUid("uid115792")
    +            .build();
    +    mockService.addResponse(expectedResponse);
    +
    +    String name =
    +        "projects/project-9529/locations/location-9529/backupCollections/backupCollection-9529";
    +
    +    BackupCollection actualResponse = client.getBackupCollection(name);
    +    Assert.assertEquals(expectedResponse, actualResponse);
    +
    +    List actualRequests = mockService.getRequestPaths();
    +    Assert.assertEquals(1, actualRequests.size());
    +
    +    String apiClientHeaderKey =
    +        mockService
    +            .getRequestHeaders()
    +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
    +            .iterator()
    +            .next();
    +    Assert.assertTrue(
    +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
    +            .matcher(apiClientHeaderKey)
    +            .matches());
    +  }
    +
    +  @Test
    +  public void getBackupCollectionExceptionTest2() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      String name =
    +          "projects/project-9529/locations/location-9529/backupCollections/backupCollection-9529";
    +      client.getBackupCollection(name);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void listBackupsTest() throws Exception {
    +    Backup responsesElement = Backup.newBuilder().build();
    +    ListBackupsResponse expectedResponse =
    +        ListBackupsResponse.newBuilder()
    +            .setNextPageToken("")
    +            .addAllBackups(Arrays.asList(responsesElement))
    +            .build();
    +    mockService.addResponse(expectedResponse);
    +
    +    BackupCollectionName parent =
    +        BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]");
    +
    +    ListBackupsPagedResponse pagedListResponse = client.listBackups(parent);
    +
    +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
    +
    +    Assert.assertEquals(1, resources.size());
    +    Assert.assertEquals(expectedResponse.getBackupsList().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 listBackupsExceptionTest() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      BackupCollectionName parent =
    +          BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]");
    +      client.listBackups(parent);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void listBackupsTest2() throws Exception {
    +    Backup responsesElement = Backup.newBuilder().build();
    +    ListBackupsResponse expectedResponse =
    +        ListBackupsResponse.newBuilder()
    +            .setNextPageToken("")
    +            .addAllBackups(Arrays.asList(responsesElement))
    +            .build();
    +    mockService.addResponse(expectedResponse);
    +
    +    String parent =
    +        "projects/project-2584/locations/location-2584/backupCollections/backupCollection-2584";
    +
    +    ListBackupsPagedResponse pagedListResponse = client.listBackups(parent);
    +
    +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
    +
    +    Assert.assertEquals(1, resources.size());
    +    Assert.assertEquals(expectedResponse.getBackupsList().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 listBackupsExceptionTest2() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      String parent =
    +          "projects/project-2584/locations/location-2584/backupCollections/backupCollection-2584";
    +      client.listBackups(parent);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void getBackupTest() throws Exception {
    +    Backup expectedResponse =
    +        Backup.newBuilder()
    +            .setName(
    +                BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
    +                    .toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
    +            .setClusterUid("clusterUid240271350")
    +            .setTotalSizeBytes(-115423608)
    +            .setExpireTime(Timestamp.newBuilder().build())
    +            .setEngineVersion("engineVersion-1416229834")
    +            .addAllBackupFiles(new ArrayList())
    +            .setNodeType(NodeType.forNumber(0))
    +            .setReplicaCount(564075208)
    +            .setShardCount(-495377042)
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
    +            .setUid("uid115792")
    +            .build();
    +    mockService.addResponse(expectedResponse);
    +
    +    BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]");
    +
    +    Backup actualResponse = client.getBackup(name);
    +    Assert.assertEquals(expectedResponse, actualResponse);
    +
    +    List actualRequests = mockService.getRequestPaths();
    +    Assert.assertEquals(1, actualRequests.size());
    +
    +    String apiClientHeaderKey =
    +        mockService
    +            .getRequestHeaders()
    +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
    +            .iterator()
    +            .next();
    +    Assert.assertTrue(
    +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
    +            .matcher(apiClientHeaderKey)
    +            .matches());
    +  }
    +
    +  @Test
    +  public void getBackupExceptionTest() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]");
    +      client.getBackup(name);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void getBackupTest2() throws Exception {
    +    Backup expectedResponse =
    +        Backup.newBuilder()
    +            .setName(
    +                BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
    +                    .toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
    +            .setClusterUid("clusterUid240271350")
    +            .setTotalSizeBytes(-115423608)
    +            .setExpireTime(Timestamp.newBuilder().build())
    +            .setEngineVersion("engineVersion-1416229834")
    +            .addAllBackupFiles(new ArrayList())
    +            .setNodeType(NodeType.forNumber(0))
    +            .setReplicaCount(564075208)
    +            .setShardCount(-495377042)
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
    +            .setUid("uid115792")
    +            .build();
    +    mockService.addResponse(expectedResponse);
    +
    +    String name =
    +        "projects/project-3318/locations/location-3318/backupCollections/backupCollection-3318/backups/backup-3318";
    +
    +    Backup actualResponse = client.getBackup(name);
    +    Assert.assertEquals(expectedResponse, actualResponse);
    +
    +    List actualRequests = mockService.getRequestPaths();
    +    Assert.assertEquals(1, actualRequests.size());
    +
    +    String apiClientHeaderKey =
    +        mockService
    +            .getRequestHeaders()
    +            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
    +            .iterator()
    +            .next();
    +    Assert.assertTrue(
    +        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
    +            .matcher(apiClientHeaderKey)
    +            .matches());
    +  }
    +
    +  @Test
    +  public void getBackupExceptionTest2() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      String name =
    +          "projects/project-3318/locations/location-3318/backupCollections/backupCollection-3318/backups/backup-3318";
    +      client.getBackup(name);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void deleteBackupTest() throws Exception {
    +    Empty expectedResponse = Empty.newBuilder().build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("deleteBackupTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockService.addResponse(resultOperation);
    +
    +    BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]");
    +
    +    client.deleteBackupAsync(name).get();
    +
    +    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 deleteBackupExceptionTest() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]");
    +      client.deleteBackupAsync(name).get();
    +      Assert.fail("No exception raised");
    +    } catch (ExecutionException e) {
    +    }
    +  }
    +
    +  @Test
    +  public void deleteBackupTest2() throws Exception {
    +    Empty expectedResponse = Empty.newBuilder().build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("deleteBackupTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockService.addResponse(resultOperation);
    +
    +    String name =
    +        "projects/project-3318/locations/location-3318/backupCollections/backupCollection-3318/backups/backup-3318";
    +
    +    client.deleteBackupAsync(name).get();
    +
    +    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 deleteBackupExceptionTest2() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      String name =
    +          "projects/project-3318/locations/location-3318/backupCollections/backupCollection-3318/backups/backup-3318";
    +      client.deleteBackupAsync(name).get();
    +      Assert.fail("No exception raised");
    +    } catch (ExecutionException e) {
    +    }
    +  }
    +
    +  @Test
    +  public void exportBackupTest() throws Exception {
    +    Backup expectedResponse =
    +        Backup.newBuilder()
    +            .setName(
    +                BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
    +                    .toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
    +            .setClusterUid("clusterUid240271350")
    +            .setTotalSizeBytes(-115423608)
    +            .setExpireTime(Timestamp.newBuilder().build())
    +            .setEngineVersion("engineVersion-1416229834")
    +            .addAllBackupFiles(new ArrayList())
    +            .setNodeType(NodeType.forNumber(0))
    +            .setReplicaCount(564075208)
    +            .setShardCount(-495377042)
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
    +            .setUid("uid115792")
    +            .build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("exportBackupTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockService.addResponse(resultOperation);
    +
    +    ExportBackupRequest request =
    +        ExportBackupRequest.newBuilder()
    +            .setName(
    +                BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
    +                    .toString())
    +            .build();
    +
    +    Backup actualResponse = client.exportBackupAsync(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 exportBackupExceptionTest() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      ExportBackupRequest request =
    +          ExportBackupRequest.newBuilder()
    +              .setName(
    +                  BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
    +                      .toString())
    +              .build();
    +      client.exportBackupAsync(request).get();
    +      Assert.fail("No exception raised");
    +    } catch (ExecutionException e) {
    +    }
    +  }
    +
    +  @Test
    +  public void backupClusterTest() throws Exception {
    +    Cluster expectedResponse =
    +        Cluster.newBuilder()
    +            .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setUid("uid115792")
    +            .setReplicaCount(564075208)
    +            .setAuthorizationMode(AuthorizationMode.forNumber(0))
    +            .setTransitEncryptionMode(TransitEncryptionMode.forNumber(0))
    +            .setSizeGb(2105542105)
    +            .setShardCount(-495377042)
    +            .addAllPscConfigs(new ArrayList())
    +            .addAllDiscoveryEndpoints(new ArrayList())
    +            .addAllPscConnections(new ArrayList())
    +            .setStateInfo(Cluster.StateInfo.newBuilder().build())
    +            .setNodeType(NodeType.forNumber(0))
    +            .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build())
    +            .putAllRedisConfigs(new HashMap())
    +            .setPreciseSizeGb(1342268405)
    +            .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
    +            .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build())
    +            .setDeletionProtectionEnabled(true)
    +            .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build())
    +            .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build())
    +            .addAllPscServiceAttachments(new ArrayList())
    +            .addAllClusterEndpoints(new ArrayList())
    +            .setBackupCollection(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
    +            .build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("backupClusterTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockService.addResponse(resultOperation);
    +
    +    ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    +
    +    Cluster actualResponse = client.backupClusterAsync(name).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 backupClusterExceptionTest() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    +      client.backupClusterAsync(name).get();
    +      Assert.fail("No exception raised");
    +    } catch (ExecutionException e) {
    +    }
    +  }
    +
    +  @Test
    +  public void backupClusterTest2() throws Exception {
    +    Cluster expectedResponse =
    +        Cluster.newBuilder()
    +            .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setUid("uid115792")
    +            .setReplicaCount(564075208)
    +            .setAuthorizationMode(AuthorizationMode.forNumber(0))
    +            .setTransitEncryptionMode(TransitEncryptionMode.forNumber(0))
    +            .setSizeGb(2105542105)
    +            .setShardCount(-495377042)
    +            .addAllPscConfigs(new ArrayList())
    +            .addAllDiscoveryEndpoints(new ArrayList())
    +            .addAllPscConnections(new ArrayList())
    +            .setStateInfo(Cluster.StateInfo.newBuilder().build())
    +            .setNodeType(NodeType.forNumber(0))
    +            .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build())
    +            .putAllRedisConfigs(new HashMap())
    +            .setPreciseSizeGb(1342268405)
    +            .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
    +            .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build())
    +            .setDeletionProtectionEnabled(true)
    +            .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build())
    +            .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build())
    +            .addAllPscServiceAttachments(new ArrayList())
    +            .addAllClusterEndpoints(new ArrayList())
    +            .setBackupCollection(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
    +            .build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("backupClusterTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockService.addResponse(resultOperation);
    +
    +    String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537";
    +
    +    Cluster actualResponse = client.backupClusterAsync(name).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 backupClusterExceptionTest2() throws Exception {
    +    ApiException exception =
    +        ApiExceptionFactory.createException(
    +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
    +    mockService.addException(exception);
    +
    +    try {
    +      String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537";
    +      client.backupClusterAsync(name).get();
    +      Assert.fail("No exception raised");
    +    } catch (ExecutionException e) {
    +    }
    +  }
    +
       @Test
       public void listLocationsTest() throws Exception {
         Location responsesElement = Location.newBuilder().build();
    diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterClientTest.java b/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterClientTest.java
    index 57bc6f06ba44..fa6ef1c4340f 100644
    --- a/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterClientTest.java
    +++ b/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterClientTest.java
    @@ -16,6 +16,8 @@
     
     package com.google.cloud.redis.cluster.v1beta1;
     
    +import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListBackupCollectionsPagedResponse;
    +import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListBackupsPagedResponse;
     import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListClustersPagedResponse;
     import static com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient.ListLocationsPagedResponse;
     
    @@ -204,7 +206,18 @@ public void getClusterTest() throws Exception {
                 .putAllRedisConfigs(new HashMap())
                 .setPreciseSizeGb(1342268405)
                 .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
    +            .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build())
                 .setDeletionProtectionEnabled(true)
    +            .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build())
    +            .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build())
    +            .addAllPscServiceAttachments(new ArrayList())
    +            .addAllClusterEndpoints(new ArrayList())
    +            .setBackupCollection(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
                 .build();
         mockCloudRedisCluster.addResponse(expectedResponse);
     
    @@ -259,7 +272,18 @@ public void getClusterTest2() throws Exception {
                 .putAllRedisConfigs(new HashMap())
                 .setPreciseSizeGb(1342268405)
                 .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
    +            .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build())
                 .setDeletionProtectionEnabled(true)
    +            .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build())
    +            .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build())
    +            .addAllPscServiceAttachments(new ArrayList())
    +            .addAllClusterEndpoints(new ArrayList())
    +            .setBackupCollection(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
                 .build();
         mockCloudRedisCluster.addResponse(expectedResponse);
     
    @@ -314,7 +338,18 @@ public void updateClusterTest() throws Exception {
                 .putAllRedisConfigs(new HashMap())
                 .setPreciseSizeGb(1342268405)
                 .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
    +            .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build())
                 .setDeletionProtectionEnabled(true)
    +            .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build())
    +            .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build())
    +            .addAllPscServiceAttachments(new ArrayList())
    +            .addAllClusterEndpoints(new ArrayList())
    +            .setBackupCollection(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
                 .build();
         Operation resultOperation =
             Operation.newBuilder()
    @@ -464,7 +499,18 @@ public void createClusterTest() throws Exception {
                 .putAllRedisConfigs(new HashMap())
                 .setPreciseSizeGb(1342268405)
                 .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
    +            .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build())
                 .setDeletionProtectionEnabled(true)
    +            .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build())
    +            .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build())
    +            .addAllPscServiceAttachments(new ArrayList())
    +            .addAllClusterEndpoints(new ArrayList())
    +            .setBackupCollection(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
                 .build();
         Operation resultOperation =
             Operation.newBuilder()
    @@ -533,7 +579,18 @@ public void createClusterTest2() throws Exception {
                 .putAllRedisConfigs(new HashMap())
                 .setPreciseSizeGb(1342268405)
                 .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
    +            .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build())
                 .setDeletionProtectionEnabled(true)
    +            .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build())
    +            .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build())
    +            .addAllPscServiceAttachments(new ArrayList())
    +            .addAllClusterEndpoints(new ArrayList())
    +            .setBackupCollection(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
                 .build();
         Operation resultOperation =
             Operation.newBuilder()
    @@ -661,6 +718,851 @@ public void getClusterCertificateAuthorityExceptionTest2() throws Exception {
         }
       }
     
    +  @Test
    +  public void rescheduleClusterMaintenanceTest() throws Exception {
    +    Cluster expectedResponse =
    +        Cluster.newBuilder()
    +            .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setUid("uid115792")
    +            .setReplicaCount(564075208)
    +            .setAuthorizationMode(AuthorizationMode.forNumber(0))
    +            .setTransitEncryptionMode(TransitEncryptionMode.forNumber(0))
    +            .setSizeGb(2105542105)
    +            .setShardCount(-495377042)
    +            .addAllPscConfigs(new ArrayList())
    +            .addAllDiscoveryEndpoints(new ArrayList())
    +            .addAllPscConnections(new ArrayList())
    +            .setStateInfo(Cluster.StateInfo.newBuilder().build())
    +            .setNodeType(NodeType.forNumber(0))
    +            .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build())
    +            .putAllRedisConfigs(new HashMap())
    +            .setPreciseSizeGb(1342268405)
    +            .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
    +            .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build())
    +            .setDeletionProtectionEnabled(true)
    +            .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build())
    +            .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build())
    +            .addAllPscServiceAttachments(new ArrayList())
    +            .addAllClusterEndpoints(new ArrayList())
    +            .setBackupCollection(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
    +            .build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("rescheduleClusterMaintenanceTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockCloudRedisCluster.addResponse(resultOperation);
    +
    +    ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    +    RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType =
    +        RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0);
    +    Timestamp scheduleTime = Timestamp.newBuilder().build();
    +
    +    Cluster actualResponse =
    +        client.rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime).get();
    +    Assert.assertEquals(expectedResponse, actualResponse);
    +
    +    List actualRequests = mockCloudRedisCluster.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    RescheduleClusterMaintenanceRequest actualRequest =
    +        ((RescheduleClusterMaintenanceRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(name.toString(), actualRequest.getName());
    +    Assert.assertEquals(rescheduleType, actualRequest.getRescheduleType());
    +    Assert.assertEquals(scheduleTime, actualRequest.getScheduleTime());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void rescheduleClusterMaintenanceExceptionTest() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockCloudRedisCluster.addException(exception);
    +
    +    try {
    +      ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    +      RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType =
    +          RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0);
    +      Timestamp scheduleTime = Timestamp.newBuilder().build();
    +      client.rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime).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 rescheduleClusterMaintenanceTest2() throws Exception {
    +    Cluster expectedResponse =
    +        Cluster.newBuilder()
    +            .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setUid("uid115792")
    +            .setReplicaCount(564075208)
    +            .setAuthorizationMode(AuthorizationMode.forNumber(0))
    +            .setTransitEncryptionMode(TransitEncryptionMode.forNumber(0))
    +            .setSizeGb(2105542105)
    +            .setShardCount(-495377042)
    +            .addAllPscConfigs(new ArrayList())
    +            .addAllDiscoveryEndpoints(new ArrayList())
    +            .addAllPscConnections(new ArrayList())
    +            .setStateInfo(Cluster.StateInfo.newBuilder().build())
    +            .setNodeType(NodeType.forNumber(0))
    +            .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build())
    +            .putAllRedisConfigs(new HashMap())
    +            .setPreciseSizeGb(1342268405)
    +            .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
    +            .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build())
    +            .setDeletionProtectionEnabled(true)
    +            .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build())
    +            .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build())
    +            .addAllPscServiceAttachments(new ArrayList())
    +            .addAllClusterEndpoints(new ArrayList())
    +            .setBackupCollection(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
    +            .build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("rescheduleClusterMaintenanceTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockCloudRedisCluster.addResponse(resultOperation);
    +
    +    String name = "name3373707";
    +    RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType =
    +        RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0);
    +    Timestamp scheduleTime = Timestamp.newBuilder().build();
    +
    +    Cluster actualResponse =
    +        client.rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime).get();
    +    Assert.assertEquals(expectedResponse, actualResponse);
    +
    +    List actualRequests = mockCloudRedisCluster.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    RescheduleClusterMaintenanceRequest actualRequest =
    +        ((RescheduleClusterMaintenanceRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(name, actualRequest.getName());
    +    Assert.assertEquals(rescheduleType, actualRequest.getRescheduleType());
    +    Assert.assertEquals(scheduleTime, actualRequest.getScheduleTime());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void rescheduleClusterMaintenanceExceptionTest2() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockCloudRedisCluster.addException(exception);
    +
    +    try {
    +      String name = "name3373707";
    +      RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType =
    +          RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0);
    +      Timestamp scheduleTime = Timestamp.newBuilder().build();
    +      client.rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime).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 listBackupCollectionsTest() throws Exception {
    +    BackupCollection responsesElement = BackupCollection.newBuilder().build();
    +    ListBackupCollectionsResponse expectedResponse =
    +        ListBackupCollectionsResponse.newBuilder()
    +            .setNextPageToken("")
    +            .addAllBackupCollections(Arrays.asList(responsesElement))
    +            .build();
    +    mockCloudRedisCluster.addResponse(expectedResponse);
    +
    +    LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    +
    +    ListBackupCollectionsPagedResponse pagedListResponse = client.listBackupCollections(parent);
    +
    +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
    +
    +    Assert.assertEquals(1, resources.size());
    +    Assert.assertEquals(expectedResponse.getBackupCollectionsList().get(0), resources.get(0));
    +
    +    List actualRequests = mockCloudRedisCluster.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    ListBackupCollectionsRequest actualRequest =
    +        ((ListBackupCollectionsRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(parent.toString(), actualRequest.getParent());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void listBackupCollectionsExceptionTest() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockCloudRedisCluster.addException(exception);
    +
    +    try {
    +      LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    +      client.listBackupCollections(parent);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void listBackupCollectionsTest2() throws Exception {
    +    BackupCollection responsesElement = BackupCollection.newBuilder().build();
    +    ListBackupCollectionsResponse expectedResponse =
    +        ListBackupCollectionsResponse.newBuilder()
    +            .setNextPageToken("")
    +            .addAllBackupCollections(Arrays.asList(responsesElement))
    +            .build();
    +    mockCloudRedisCluster.addResponse(expectedResponse);
    +
    +    String parent = "parent-995424086";
    +
    +    ListBackupCollectionsPagedResponse pagedListResponse = client.listBackupCollections(parent);
    +
    +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
    +
    +    Assert.assertEquals(1, resources.size());
    +    Assert.assertEquals(expectedResponse.getBackupCollectionsList().get(0), resources.get(0));
    +
    +    List actualRequests = mockCloudRedisCluster.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    ListBackupCollectionsRequest actualRequest =
    +        ((ListBackupCollectionsRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(parent, actualRequest.getParent());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void listBackupCollectionsExceptionTest2() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockCloudRedisCluster.addException(exception);
    +
    +    try {
    +      String parent = "parent-995424086";
    +      client.listBackupCollections(parent);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void getBackupCollectionTest() throws Exception {
    +    BackupCollection expectedResponse =
    +        BackupCollection.newBuilder()
    +            .setName(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setClusterUid("clusterUid240271350")
    +            .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setUid("uid115792")
    +            .build();
    +    mockCloudRedisCluster.addResponse(expectedResponse);
    +
    +    BackupCollectionName name =
    +        BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]");
    +
    +    BackupCollection actualResponse = client.getBackupCollection(name);
    +    Assert.assertEquals(expectedResponse, actualResponse);
    +
    +    List actualRequests = mockCloudRedisCluster.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    GetBackupCollectionRequest actualRequest = ((GetBackupCollectionRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(name.toString(), actualRequest.getName());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void getBackupCollectionExceptionTest() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockCloudRedisCluster.addException(exception);
    +
    +    try {
    +      BackupCollectionName name =
    +          BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]");
    +      client.getBackupCollection(name);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void getBackupCollectionTest2() throws Exception {
    +    BackupCollection expectedResponse =
    +        BackupCollection.newBuilder()
    +            .setName(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setClusterUid("clusterUid240271350")
    +            .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setUid("uid115792")
    +            .build();
    +    mockCloudRedisCluster.addResponse(expectedResponse);
    +
    +    String name = "name3373707";
    +
    +    BackupCollection actualResponse = client.getBackupCollection(name);
    +    Assert.assertEquals(expectedResponse, actualResponse);
    +
    +    List actualRequests = mockCloudRedisCluster.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    GetBackupCollectionRequest actualRequest = ((GetBackupCollectionRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(name, actualRequest.getName());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void getBackupCollectionExceptionTest2() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockCloudRedisCluster.addException(exception);
    +
    +    try {
    +      String name = "name3373707";
    +      client.getBackupCollection(name);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void listBackupsTest() throws Exception {
    +    Backup responsesElement = Backup.newBuilder().build();
    +    ListBackupsResponse expectedResponse =
    +        ListBackupsResponse.newBuilder()
    +            .setNextPageToken("")
    +            .addAllBackups(Arrays.asList(responsesElement))
    +            .build();
    +    mockCloudRedisCluster.addResponse(expectedResponse);
    +
    +    BackupCollectionName parent =
    +        BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]");
    +
    +    ListBackupsPagedResponse pagedListResponse = client.listBackups(parent);
    +
    +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
    +
    +    Assert.assertEquals(1, resources.size());
    +    Assert.assertEquals(expectedResponse.getBackupsList().get(0), resources.get(0));
    +
    +    List actualRequests = mockCloudRedisCluster.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    ListBackupsRequest actualRequest = ((ListBackupsRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(parent.toString(), actualRequest.getParent());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void listBackupsExceptionTest() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockCloudRedisCluster.addException(exception);
    +
    +    try {
    +      BackupCollectionName parent =
    +          BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]");
    +      client.listBackups(parent);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void listBackupsTest2() throws Exception {
    +    Backup responsesElement = Backup.newBuilder().build();
    +    ListBackupsResponse expectedResponse =
    +        ListBackupsResponse.newBuilder()
    +            .setNextPageToken("")
    +            .addAllBackups(Arrays.asList(responsesElement))
    +            .build();
    +    mockCloudRedisCluster.addResponse(expectedResponse);
    +
    +    String parent = "parent-995424086";
    +
    +    ListBackupsPagedResponse pagedListResponse = client.listBackups(parent);
    +
    +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
    +
    +    Assert.assertEquals(1, resources.size());
    +    Assert.assertEquals(expectedResponse.getBackupsList().get(0), resources.get(0));
    +
    +    List actualRequests = mockCloudRedisCluster.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    ListBackupsRequest actualRequest = ((ListBackupsRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(parent, actualRequest.getParent());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void listBackupsExceptionTest2() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockCloudRedisCluster.addException(exception);
    +
    +    try {
    +      String parent = "parent-995424086";
    +      client.listBackups(parent);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void getBackupTest() throws Exception {
    +    Backup expectedResponse =
    +        Backup.newBuilder()
    +            .setName(
    +                BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
    +                    .toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
    +            .setClusterUid("clusterUid240271350")
    +            .setTotalSizeBytes(-115423608)
    +            .setExpireTime(Timestamp.newBuilder().build())
    +            .setEngineVersion("engineVersion-1416229834")
    +            .addAllBackupFiles(new ArrayList())
    +            .setNodeType(NodeType.forNumber(0))
    +            .setReplicaCount(564075208)
    +            .setShardCount(-495377042)
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
    +            .setUid("uid115792")
    +            .build();
    +    mockCloudRedisCluster.addResponse(expectedResponse);
    +
    +    BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]");
    +
    +    Backup actualResponse = client.getBackup(name);
    +    Assert.assertEquals(expectedResponse, actualResponse);
    +
    +    List actualRequests = mockCloudRedisCluster.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    GetBackupRequest actualRequest = ((GetBackupRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(name.toString(), actualRequest.getName());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void getBackupExceptionTest() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockCloudRedisCluster.addException(exception);
    +
    +    try {
    +      BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]");
    +      client.getBackup(name);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void getBackupTest2() throws Exception {
    +    Backup expectedResponse =
    +        Backup.newBuilder()
    +            .setName(
    +                BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
    +                    .toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
    +            .setClusterUid("clusterUid240271350")
    +            .setTotalSizeBytes(-115423608)
    +            .setExpireTime(Timestamp.newBuilder().build())
    +            .setEngineVersion("engineVersion-1416229834")
    +            .addAllBackupFiles(new ArrayList())
    +            .setNodeType(NodeType.forNumber(0))
    +            .setReplicaCount(564075208)
    +            .setShardCount(-495377042)
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
    +            .setUid("uid115792")
    +            .build();
    +    mockCloudRedisCluster.addResponse(expectedResponse);
    +
    +    String name = "name3373707";
    +
    +    Backup actualResponse = client.getBackup(name);
    +    Assert.assertEquals(expectedResponse, actualResponse);
    +
    +    List actualRequests = mockCloudRedisCluster.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    GetBackupRequest actualRequest = ((GetBackupRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(name, actualRequest.getName());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void getBackupExceptionTest2() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockCloudRedisCluster.addException(exception);
    +
    +    try {
    +      String name = "name3373707";
    +      client.getBackup(name);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void deleteBackupTest() throws Exception {
    +    Empty expectedResponse = Empty.newBuilder().build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("deleteBackupTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockCloudRedisCluster.addResponse(resultOperation);
    +
    +    BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]");
    +
    +    client.deleteBackupAsync(name).get();
    +
    +    List actualRequests = mockCloudRedisCluster.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    DeleteBackupRequest actualRequest = ((DeleteBackupRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(name.toString(), actualRequest.getName());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void deleteBackupExceptionTest() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockCloudRedisCluster.addException(exception);
    +
    +    try {
    +      BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]");
    +      client.deleteBackupAsync(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 deleteBackupTest2() throws Exception {
    +    Empty expectedResponse = Empty.newBuilder().build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("deleteBackupTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockCloudRedisCluster.addResponse(resultOperation);
    +
    +    String name = "name3373707";
    +
    +    client.deleteBackupAsync(name).get();
    +
    +    List actualRequests = mockCloudRedisCluster.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    DeleteBackupRequest actualRequest = ((DeleteBackupRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(name, actualRequest.getName());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void deleteBackupExceptionTest2() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockCloudRedisCluster.addException(exception);
    +
    +    try {
    +      String name = "name3373707";
    +      client.deleteBackupAsync(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 exportBackupTest() throws Exception {
    +    Backup expectedResponse =
    +        Backup.newBuilder()
    +            .setName(
    +                BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
    +                    .toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setCluster(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
    +            .setClusterUid("clusterUid240271350")
    +            .setTotalSizeBytes(-115423608)
    +            .setExpireTime(Timestamp.newBuilder().build())
    +            .setEngineVersion("engineVersion-1416229834")
    +            .addAllBackupFiles(new ArrayList())
    +            .setNodeType(NodeType.forNumber(0))
    +            .setReplicaCount(564075208)
    +            .setShardCount(-495377042)
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
    +            .setUid("uid115792")
    +            .build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("exportBackupTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockCloudRedisCluster.addResponse(resultOperation);
    +
    +    ExportBackupRequest request =
    +        ExportBackupRequest.newBuilder()
    +            .setName(
    +                BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
    +                    .toString())
    +            .build();
    +
    +    Backup actualResponse = client.exportBackupAsync(request).get();
    +    Assert.assertEquals(expectedResponse, actualResponse);
    +
    +    List actualRequests = mockCloudRedisCluster.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    ExportBackupRequest actualRequest = ((ExportBackupRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(request.getGcsBucket(), actualRequest.getGcsBucket());
    +    Assert.assertEquals(request.getName(), actualRequest.getName());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void exportBackupExceptionTest() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockCloudRedisCluster.addException(exception);
    +
    +    try {
    +      ExportBackupRequest request =
    +          ExportBackupRequest.newBuilder()
    +              .setName(
    +                  BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]")
    +                      .toString())
    +              .build();
    +      client.exportBackupAsync(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 backupClusterTest() throws Exception {
    +    Cluster expectedResponse =
    +        Cluster.newBuilder()
    +            .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setUid("uid115792")
    +            .setReplicaCount(564075208)
    +            .setAuthorizationMode(AuthorizationMode.forNumber(0))
    +            .setTransitEncryptionMode(TransitEncryptionMode.forNumber(0))
    +            .setSizeGb(2105542105)
    +            .setShardCount(-495377042)
    +            .addAllPscConfigs(new ArrayList())
    +            .addAllDiscoveryEndpoints(new ArrayList())
    +            .addAllPscConnections(new ArrayList())
    +            .setStateInfo(Cluster.StateInfo.newBuilder().build())
    +            .setNodeType(NodeType.forNumber(0))
    +            .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build())
    +            .putAllRedisConfigs(new HashMap())
    +            .setPreciseSizeGb(1342268405)
    +            .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
    +            .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build())
    +            .setDeletionProtectionEnabled(true)
    +            .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build())
    +            .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build())
    +            .addAllPscServiceAttachments(new ArrayList())
    +            .addAllClusterEndpoints(new ArrayList())
    +            .setBackupCollection(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
    +            .build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("backupClusterTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockCloudRedisCluster.addResponse(resultOperation);
    +
    +    ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    +
    +    Cluster actualResponse = client.backupClusterAsync(name).get();
    +    Assert.assertEquals(expectedResponse, actualResponse);
    +
    +    List actualRequests = mockCloudRedisCluster.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    BackupClusterRequest actualRequest = ((BackupClusterRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(name.toString(), actualRequest.getName());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void backupClusterExceptionTest() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockCloudRedisCluster.addException(exception);
    +
    +    try {
    +      ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]");
    +      client.backupClusterAsync(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 backupClusterTest2() throws Exception {
    +    Cluster expectedResponse =
    +        Cluster.newBuilder()
    +            .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
    +            .setCreateTime(Timestamp.newBuilder().build())
    +            .setUid("uid115792")
    +            .setReplicaCount(564075208)
    +            .setAuthorizationMode(AuthorizationMode.forNumber(0))
    +            .setTransitEncryptionMode(TransitEncryptionMode.forNumber(0))
    +            .setSizeGb(2105542105)
    +            .setShardCount(-495377042)
    +            .addAllPscConfigs(new ArrayList())
    +            .addAllDiscoveryEndpoints(new ArrayList())
    +            .addAllPscConnections(new ArrayList())
    +            .setStateInfo(Cluster.StateInfo.newBuilder().build())
    +            .setNodeType(NodeType.forNumber(0))
    +            .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build())
    +            .putAllRedisConfigs(new HashMap())
    +            .setPreciseSizeGb(1342268405)
    +            .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build())
    +            .setCrossClusterReplicationConfig(CrossClusterReplicationConfig.newBuilder().build())
    +            .setDeletionProtectionEnabled(true)
    +            .setMaintenancePolicy(ClusterMaintenancePolicy.newBuilder().build())
    +            .setMaintenanceSchedule(ClusterMaintenanceSchedule.newBuilder().build())
    +            .addAllPscServiceAttachments(new ArrayList())
    +            .addAllClusterEndpoints(new ArrayList())
    +            .setBackupCollection(
    +                BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]")
    +                    .toString())
    +            .setKmsKey("kmsKey-1127483058")
    +            .setAutomatedBackupConfig(AutomatedBackupConfig.newBuilder().build())
    +            .setEncryptionInfo(EncryptionInfo.newBuilder().build())
    +            .build();
    +    Operation resultOperation =
    +        Operation.newBuilder()
    +            .setName("backupClusterTest")
    +            .setDone(true)
    +            .setResponse(Any.pack(expectedResponse))
    +            .build();
    +    mockCloudRedisCluster.addResponse(resultOperation);
    +
    +    String name = "name3373707";
    +
    +    Cluster actualResponse = client.backupClusterAsync(name).get();
    +    Assert.assertEquals(expectedResponse, actualResponse);
    +
    +    List actualRequests = mockCloudRedisCluster.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    BackupClusterRequest actualRequest = ((BackupClusterRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(name, actualRequest.getName());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void backupClusterExceptionTest2() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockCloudRedisCluster.addException(exception);
    +
    +    try {
    +      String name = "name3373707";
    +      client.backupClusterAsync(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();
    diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1beta1/MockCloudRedisClusterImpl.java b/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1beta1/MockCloudRedisClusterImpl.java
    index 6bf613dc29a7..d1a9da48c8a2 100644
    --- a/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1beta1/MockCloudRedisClusterImpl.java
    +++ b/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1beta1/MockCloudRedisClusterImpl.java
    @@ -184,4 +184,172 @@ public void getClusterCertificateAuthority(
                       Exception.class.getName())));
         }
       }
    +
    +  @Override
    +  public void rescheduleClusterMaintenance(
    +      RescheduleClusterMaintenanceRequest 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 RescheduleClusterMaintenance, expected %s or %s",
    +                  response == null ? "null" : response.getClass().getName(),
    +                  Operation.class.getName(),
    +                  Exception.class.getName())));
    +    }
    +  }
    +
    +  @Override
    +  public void listBackupCollections(
    +      ListBackupCollectionsRequest request,
    +      StreamObserver responseObserver) {
    +    Object response = responses.poll();
    +    if (response instanceof ListBackupCollectionsResponse) {
    +      requests.add(request);
    +      responseObserver.onNext(((ListBackupCollectionsResponse) 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 ListBackupCollections, expected %s or %s",
    +                  response == null ? "null" : response.getClass().getName(),
    +                  ListBackupCollectionsResponse.class.getName(),
    +                  Exception.class.getName())));
    +    }
    +  }
    +
    +  @Override
    +  public void getBackupCollection(
    +      GetBackupCollectionRequest request, StreamObserver responseObserver) {
    +    Object response = responses.poll();
    +    if (response instanceof BackupCollection) {
    +      requests.add(request);
    +      responseObserver.onNext(((BackupCollection) 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 GetBackupCollection, expected %s or %s",
    +                  response == null ? "null" : response.getClass().getName(),
    +                  BackupCollection.class.getName(),
    +                  Exception.class.getName())));
    +    }
    +  }
    +
    +  @Override
    +  public void listBackups(
    +      ListBackupsRequest request, StreamObserver responseObserver) {
    +    Object response = responses.poll();
    +    if (response instanceof ListBackupsResponse) {
    +      requests.add(request);
    +      responseObserver.onNext(((ListBackupsResponse) 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 ListBackups, expected %s or %s",
    +                  response == null ? "null" : response.getClass().getName(),
    +                  ListBackupsResponse.class.getName(),
    +                  Exception.class.getName())));
    +    }
    +  }
    +
    +  @Override
    +  public void getBackup(GetBackupRequest request, StreamObserver responseObserver) {
    +    Object response = responses.poll();
    +    if (response instanceof Backup) {
    +      requests.add(request);
    +      responseObserver.onNext(((Backup) 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 GetBackup, expected %s or %s",
    +                  response == null ? "null" : response.getClass().getName(),
    +                  Backup.class.getName(),
    +                  Exception.class.getName())));
    +    }
    +  }
    +
    +  @Override
    +  public void deleteBackup(
    +      DeleteBackupRequest 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 DeleteBackup, expected %s or %s",
    +                  response == null ? "null" : response.getClass().getName(),
    +                  Operation.class.getName(),
    +                  Exception.class.getName())));
    +    }
    +  }
    +
    +  @Override
    +  public void exportBackup(
    +      ExportBackupRequest 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 ExportBackup, expected %s or %s",
    +                  response == null ? "null" : response.getClass().getName(),
    +                  Operation.class.getName(),
    +                  Exception.class.getName())));
    +    }
    +  }
    +
    +  @Override
    +  public void backupCluster(
    +      BackupClusterRequest 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 BackupCluster, expected %s or %s",
    +                  response == null ? "null" : response.getClass().getName(),
    +                  Operation.class.getName(),
    +                  Exception.class.getName())));
    +    }
    +  }
     }
    diff --git a/java-redis-cluster/grpc-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterGrpc.java b/java-redis-cluster/grpc-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterGrpc.java
    index 8631c7de44ce..c485f98566ad 100644
    --- a/java-redis-cluster/grpc-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterGrpc.java
    +++ b/java-redis-cluster/grpc-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterGrpc.java
    @@ -33,11 +33,6 @@
      *   `/projects/{project_id}/locations/{location_id}/clusters/{instance_id}`
      * Note that location_id must be a GCP `region`; for example:
      * * `projects/redpepper-1290/locations/us-central1/clusters/my-redis`
    - * We use API version selector for Flex APIs
    - * * The versioning strategy is release-based versioning
    - * * Our backend CLH only deals with the superset version (called v1main)
    - * * Existing backend for Redis Gen1 and MRR is not touched.
    - * * More details in go/redis-flex-api-versioning
      * 
    */ @javax.annotation.Generated( @@ -330,6 +325,381 @@ private CloudRedisClusterGrpc() {} return getGetClusterCertificateAuthorityMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest, + com.google.longrunning.Operation> + getRescheduleClusterMaintenanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RescheduleClusterMaintenance", + requestType = com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest, + com.google.longrunning.Operation> + getRescheduleClusterMaintenanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest, + com.google.longrunning.Operation> + getRescheduleClusterMaintenanceMethod; + if ((getRescheduleClusterMaintenanceMethod = + CloudRedisClusterGrpc.getRescheduleClusterMaintenanceMethod) + == null) { + synchronized (CloudRedisClusterGrpc.class) { + if ((getRescheduleClusterMaintenanceMethod = + CloudRedisClusterGrpc.getRescheduleClusterMaintenanceMethod) + == null) { + CloudRedisClusterGrpc.getRescheduleClusterMaintenanceMethod = + getRescheduleClusterMaintenanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "RescheduleClusterMaintenance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudRedisClusterMethodDescriptorSupplier( + "RescheduleClusterMaintenance")) + .build(); + } + } + } + return getRescheduleClusterMaintenanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest, + com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse> + getListBackupCollectionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListBackupCollections", + requestType = com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest.class, + responseType = com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest, + com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse> + getListBackupCollectionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest, + com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse> + getListBackupCollectionsMethod; + if ((getListBackupCollectionsMethod = CloudRedisClusterGrpc.getListBackupCollectionsMethod) + == null) { + synchronized (CloudRedisClusterGrpc.class) { + if ((getListBackupCollectionsMethod = CloudRedisClusterGrpc.getListBackupCollectionsMethod) + == null) { + CloudRedisClusterGrpc.getListBackupCollectionsMethod = + getListBackupCollectionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListBackupCollections")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new CloudRedisClusterMethodDescriptorSupplier("ListBackupCollections")) + .build(); + } + } + } + return getListBackupCollectionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest, + com.google.cloud.redis.cluster.v1.BackupCollection> + getGetBackupCollectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetBackupCollection", + requestType = com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest.class, + responseType = com.google.cloud.redis.cluster.v1.BackupCollection.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest, + com.google.cloud.redis.cluster.v1.BackupCollection> + getGetBackupCollectionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest, + com.google.cloud.redis.cluster.v1.BackupCollection> + getGetBackupCollectionMethod; + if ((getGetBackupCollectionMethod = CloudRedisClusterGrpc.getGetBackupCollectionMethod) + == null) { + synchronized (CloudRedisClusterGrpc.class) { + if ((getGetBackupCollectionMethod = CloudRedisClusterGrpc.getGetBackupCollectionMethod) + == null) { + CloudRedisClusterGrpc.getGetBackupCollectionMethod = + getGetBackupCollectionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetBackupCollection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1.BackupCollection + .getDefaultInstance())) + .setSchemaDescriptor( + new CloudRedisClusterMethodDescriptorSupplier("GetBackupCollection")) + .build(); + } + } + } + return getGetBackupCollectionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.ListBackupsRequest, + com.google.cloud.redis.cluster.v1.ListBackupsResponse> + getListBackupsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListBackups", + requestType = com.google.cloud.redis.cluster.v1.ListBackupsRequest.class, + responseType = com.google.cloud.redis.cluster.v1.ListBackupsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.ListBackupsRequest, + com.google.cloud.redis.cluster.v1.ListBackupsResponse> + getListBackupsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.ListBackupsRequest, + com.google.cloud.redis.cluster.v1.ListBackupsResponse> + getListBackupsMethod; + if ((getListBackupsMethod = CloudRedisClusterGrpc.getListBackupsMethod) == null) { + synchronized (CloudRedisClusterGrpc.class) { + if ((getListBackupsMethod = CloudRedisClusterGrpc.getListBackupsMethod) == null) { + CloudRedisClusterGrpc.getListBackupsMethod = + getListBackupsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBackups")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1.ListBackupsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1.ListBackupsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new CloudRedisClusterMethodDescriptorSupplier("ListBackups")) + .build(); + } + } + } + return getListBackupsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.GetBackupRequest, + com.google.cloud.redis.cluster.v1.Backup> + getGetBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetBackup", + requestType = com.google.cloud.redis.cluster.v1.GetBackupRequest.class, + responseType = com.google.cloud.redis.cluster.v1.Backup.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.GetBackupRequest, + com.google.cloud.redis.cluster.v1.Backup> + getGetBackupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.GetBackupRequest, + com.google.cloud.redis.cluster.v1.Backup> + getGetBackupMethod; + if ((getGetBackupMethod = CloudRedisClusterGrpc.getGetBackupMethod) == null) { + synchronized (CloudRedisClusterGrpc.class) { + if ((getGetBackupMethod = CloudRedisClusterGrpc.getGetBackupMethod) == null) { + CloudRedisClusterGrpc.getGetBackupMethod = + getGetBackupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBackup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1.GetBackupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1.Backup.getDefaultInstance())) + .setSchemaDescriptor( + new CloudRedisClusterMethodDescriptorSupplier("GetBackup")) + .build(); + } + } + } + return getGetBackupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.DeleteBackupRequest, com.google.longrunning.Operation> + getDeleteBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteBackup", + requestType = com.google.cloud.redis.cluster.v1.DeleteBackupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.DeleteBackupRequest, com.google.longrunning.Operation> + getDeleteBackupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.DeleteBackupRequest, com.google.longrunning.Operation> + getDeleteBackupMethod; + if ((getDeleteBackupMethod = CloudRedisClusterGrpc.getDeleteBackupMethod) == null) { + synchronized (CloudRedisClusterGrpc.class) { + if ((getDeleteBackupMethod = CloudRedisClusterGrpc.getDeleteBackupMethod) == null) { + CloudRedisClusterGrpc.getDeleteBackupMethod = + getDeleteBackupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBackup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1.DeleteBackupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudRedisClusterMethodDescriptorSupplier("DeleteBackup")) + .build(); + } + } + } + return getDeleteBackupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.ExportBackupRequest, com.google.longrunning.Operation> + getExportBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ExportBackup", + requestType = com.google.cloud.redis.cluster.v1.ExportBackupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.ExportBackupRequest, com.google.longrunning.Operation> + getExportBackupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.ExportBackupRequest, com.google.longrunning.Operation> + getExportBackupMethod; + if ((getExportBackupMethod = CloudRedisClusterGrpc.getExportBackupMethod) == null) { + synchronized (CloudRedisClusterGrpc.class) { + if ((getExportBackupMethod = CloudRedisClusterGrpc.getExportBackupMethod) == null) { + CloudRedisClusterGrpc.getExportBackupMethod = + getExportBackupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportBackup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1.ExportBackupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudRedisClusterMethodDescriptorSupplier("ExportBackup")) + .build(); + } + } + } + return getExportBackupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.BackupClusterRequest, com.google.longrunning.Operation> + getBackupClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BackupCluster", + requestType = com.google.cloud.redis.cluster.v1.BackupClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.BackupClusterRequest, com.google.longrunning.Operation> + getBackupClusterMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.BackupClusterRequest, + com.google.longrunning.Operation> + getBackupClusterMethod; + if ((getBackupClusterMethod = CloudRedisClusterGrpc.getBackupClusterMethod) == null) { + synchronized (CloudRedisClusterGrpc.class) { + if ((getBackupClusterMethod = CloudRedisClusterGrpc.getBackupClusterMethod) == null) { + CloudRedisClusterGrpc.getBackupClusterMethod = + getBackupClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BackupCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1.BackupClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudRedisClusterMethodDescriptorSupplier("BackupCluster")) + .build(); + } + } + } + return getBackupClusterMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static CloudRedisClusterStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -387,11 +757,6 @@ public CloudRedisClusterFutureStub newStub( * `/projects/{project_id}/locations/{location_id}/clusters/{instance_id}` * Note that location_id must be a GCP `region`; for example: * * `projects/redpepper-1290/locations/us-central1/clusters/my-redis` - * We use API version selector for Flex APIs - * * The versioning strategy is release-based versioning - * * Our backend CLH only deals with the superset version (called v1main) - * * Existing backend for Redis Gen1 and MRR is not touched. - * * More details in go/redis-flex-api-versioning * */ public interface AsyncService { @@ -495,6 +860,134 @@ default void getClusterCertificateAuthority( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getGetClusterCertificateAuthorityMethod(), responseObserver); } + + /** + * + * + *
    +     * Reschedules upcoming maintenance event.
    +     * 
    + */ + default void rescheduleClusterMaintenance( + com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRescheduleClusterMaintenanceMethod(), responseObserver); + } + + /** + * + * + *
    +     * Lists all backup collections owned by a consumer project in either the
    +     * specified location (region) or all locations.
    +     * If `location_id` is specified as `-` (wildcard), then all regions
    +     * available to the project are queried, and the results are aggregated.
    +     * 
    + */ + default void listBackupCollections( + com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListBackupCollectionsMethod(), responseObserver); + } + + /** + * + * + *
    +     * Get a backup collection.
    +     * 
    + */ + default void getBackupCollection( + com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetBackupCollectionMethod(), responseObserver); + } + + /** + * + * + *
    +     * Lists all backups owned by a backup collection.
    +     * 
    + */ + default void listBackups( + com.google.cloud.redis.cluster.v1.ListBackupsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListBackupsMethod(), responseObserver); + } + + /** + * + * + *
    +     * Gets the details of a specific backup.
    +     * 
    + */ + default void getBackup( + com.google.cloud.redis.cluster.v1.GetBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBackupMethod(), responseObserver); + } + + /** + * + * + *
    +     * Deletes a specific backup.
    +     * 
    + */ + default void deleteBackup( + com.google.cloud.redis.cluster.v1.DeleteBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteBackupMethod(), responseObserver); + } + + /** + * + * + *
    +     * Exports a specific backup to a customer target Cloud Storage URI.
    +     * 
    + */ + default void exportBackup( + com.google.cloud.redis.cluster.v1.ExportBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getExportBackupMethod(), responseObserver); + } + + /** + * + * + *
    +     * Backup Redis Cluster.
    +     * If this is the first time a backup is being created, a backup collection
    +     * will be created at the backend, and this backup belongs to this collection.
    +     * Both collection and backup will have a resource name. Backup will be
    +     * executed for each shard. A replica (primary if nonHA) will be selected to
    +     * perform the execution. Backup call will be rejected if there is an ongoing
    +     * backup or update operation. Be aware that during preview, if the cluster's
    +     * internal software version is too old, critical update will be performed
    +     * before actual backup. Once the internal software version is updated to the
    +     * minimum version required by the backup feature, subsequent backups will not
    +     * require critical update. After preview, there will be no critical update
    +     * needed for backup.
    +     * 
    + */ + default void backupCluster( + com.google.cloud.redis.cluster.v1.BackupClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBackupClusterMethod(), responseObserver); + } } /** @@ -513,11 +1006,6 @@ default void getClusterCertificateAuthority( * `/projects/{project_id}/locations/{location_id}/clusters/{instance_id}` * Note that location_id must be a GCP `region`; for example: * * `projects/redpepper-1290/locations/us-central1/clusters/my-redis` - * We use API version selector for Flex APIs - * * The versioning strategy is release-based versioning - * * Our backend CLH only deals with the superset version (called v1main) - * * Existing backend for Redis Gen1 and MRR is not touched. - * * More details in go/redis-flex-api-versioning * */ public abstract static class CloudRedisClusterImplBase @@ -545,11 +1033,6 @@ public final io.grpc.ServerServiceDefinition bindService() { * `/projects/{project_id}/locations/{location_id}/clusters/{instance_id}` * Note that location_id must be a GCP `region`; for example: * * `projects/redpepper-1290/locations/us-central1/clusters/my-redis` - * We use API version selector for Flex APIs - * * The versioning strategy is release-based versioning - * * Our backend CLH only deals with the superset version (called v1main) - * * Existing backend for Redis Gen1 and MRR is not touched. - * * More details in go/redis-flex-api-versioning * */ public static final class CloudRedisClusterStub @@ -568,20 +1051,145 @@ protected CloudRedisClusterStub build( * * *
    -     * Lists all Redis clusters owned by a project in either the specified
    -     * location (region) or all locations.
    -     * The location should have the following format:
    -     * * `projects/{project_id}/locations/{location_id}`
    +     * Lists all Redis clusters owned by a project in either the specified
    +     * location (region) or all locations.
    +     * The location should have the following format:
    +     * * `projects/{project_id}/locations/{location_id}`
    +     * If `location_id` is specified as `-` (wildcard), then all regions
    +     * available to the project are queried, and the results are aggregated.
    +     * 
    + */ + public void listClusters( + com.google.cloud.redis.cluster.v1.ListClustersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListClustersMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Gets the details of a specific Redis cluster.
    +     * 
    + */ + public void getCluster( + com.google.cloud.redis.cluster.v1.GetClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetClusterMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
    +     * Updates the metadata and configuration of a specific Redis cluster.
    +     * Completed longrunning.Operation will contain the new cluster object
    +     * in the response field. The returned operation is automatically deleted
    +     * after a few hours, so there is no need to call DeleteOperation.
    +     * 
    + */ + public void updateCluster( + com.google.cloud.redis.cluster.v1.UpdateClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Deletes a specific Redis cluster. Cluster stops serving and data is
    +     * deleted.
    +     * 
    + */ + public void deleteCluster( + com.google.cloud.redis.cluster.v1.DeleteClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Creates a Redis cluster based on the specified properties.
    +     * The creation is executed asynchronously and callers may check the returned
    +     * operation to track its progress. Once the operation is completed the Redis
    +     * cluster will be fully functional. The completed longrunning.Operation will
    +     * contain the new cluster object in the response field.
    +     * The returned operation is automatically deleted after a few hours, so there
    +     * is no need to call DeleteOperation.
    +     * 
    + */ + public void createCluster( + com.google.cloud.redis.cluster.v1.CreateClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Gets the details of certificate authority information for Redis cluster.
    +     * 
    + */ + public void getClusterCertificateAuthority( + com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetClusterCertificateAuthorityMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Reschedules upcoming maintenance event.
    +     * 
    + */ + public void rescheduleClusterMaintenance( + com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRescheduleClusterMaintenanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Lists all backup collections owned by a consumer project in either the
    +     * specified location (region) or all locations.
          * If `location_id` is specified as `-` (wildcard), then all regions
          * available to the project are queried, and the results are aggregated.
          * 
    */ - public void listClusters( - com.google.cloud.redis.cluster.v1.ListClustersRequest request, - io.grpc.stub.StreamObserver + public void listBackupCollections( + com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListClustersMethod(), getCallOptions()), + getChannel().newCall(getListBackupCollectionsMethod(), getCallOptions()), request, responseObserver); } @@ -590,31 +1198,32 @@ public void listClusters( * * *
    -     * Gets the details of a specific Redis cluster.
    +     * Get a backup collection.
          * 
    */ - public void getCluster( - com.google.cloud.redis.cluster.v1.GetClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void getBackupCollection( + com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetClusterMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetBackupCollectionMethod(), getCallOptions()), + request, + responseObserver); } /** * * *
    -     * Updates the metadata and configuration of a specific Redis cluster.
    -     * Completed longrunning.Operation will contain the new cluster object
    -     * in the response field. The returned operation is automatically deleted
    -     * after a few hours, so there is no need to call DeleteOperation.
    +     * Lists all backups owned by a backup collection.
          * 
    */ - public void updateCluster( - com.google.cloud.redis.cluster.v1.UpdateClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listBackups( + com.google.cloud.redis.cluster.v1.ListBackupsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateClusterMethod(), getCallOptions()), + getChannel().newCall(getListBackupsMethod(), getCallOptions()), request, responseObserver); } @@ -623,15 +1232,28 @@ public void updateCluster( * * *
    -     * Deletes a specific Redis cluster. Cluster stops serving and data is
    -     * deleted.
    +     * Gets the details of a specific backup.
          * 
    */ - public void deleteCluster( - com.google.cloud.redis.cluster.v1.DeleteClusterRequest request, + public void getBackup( + com.google.cloud.redis.cluster.v1.GetBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetBackupMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
    +     * Deletes a specific backup.
    +     * 
    + */ + public void deleteBackup( + com.google.cloud.redis.cluster.v1.DeleteBackupRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteClusterMethod(), getCallOptions()), + getChannel().newCall(getDeleteBackupMethod(), getCallOptions()), request, responseObserver); } @@ -640,20 +1262,14 @@ public void deleteCluster( * * *
    -     * Creates a Redis cluster based on the specified properties.
    -     * The creation is executed asynchronously and callers may check the returned
    -     * operation to track its progress. Once the operation is completed the Redis
    -     * cluster will be fully functional. The completed longrunning.Operation will
    -     * contain the new cluster object in the response field.
    -     * The returned operation is automatically deleted after a few hours, so there
    -     * is no need to call DeleteOperation.
    +     * Exports a specific backup to a customer target Cloud Storage URI.
          * 
    */ - public void createCluster( - com.google.cloud.redis.cluster.v1.CreateClusterRequest request, + public void exportBackup( + com.google.cloud.redis.cluster.v1.ExportBackupRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateClusterMethod(), getCallOptions()), + getChannel().newCall(getExportBackupMethod(), getCallOptions()), request, responseObserver); } @@ -662,15 +1278,25 @@ public void createCluster( * * *
    -     * Gets the details of certificate authority information for Redis cluster.
    +     * Backup Redis Cluster.
    +     * If this is the first time a backup is being created, a backup collection
    +     * will be created at the backend, and this backup belongs to this collection.
    +     * Both collection and backup will have a resource name. Backup will be
    +     * executed for each shard. A replica (primary if nonHA) will be selected to
    +     * perform the execution. Backup call will be rejected if there is an ongoing
    +     * backup or update operation. Be aware that during preview, if the cluster's
    +     * internal software version is too old, critical update will be performed
    +     * before actual backup. Once the internal software version is updated to the
    +     * minimum version required by the backup feature, subsequent backups will not
    +     * require critical update. After preview, there will be no critical update
    +     * needed for backup.
          * 
    */ - public void getClusterCertificateAuthority( - com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void backupCluster( + com.google.cloud.redis.cluster.v1.BackupClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetClusterCertificateAuthorityMethod(), getCallOptions()), + getChannel().newCall(getBackupClusterMethod(), getCallOptions()), request, responseObserver); } @@ -692,11 +1318,6 @@ public void getClusterCertificateAuthority( * `/projects/{project_id}/locations/{location_id}/clusters/{instance_id}` * Note that location_id must be a GCP `region`; for example: * * `projects/redpepper-1290/locations/us-central1/clusters/my-redis` - * We use API version selector for Flex APIs - * * The versioning strategy is release-based versioning - * * Our backend CLH only deals with the superset version (called v1main) - * * Existing backend for Redis Gen1 and MRR is not touched. - * * More details in go/redis-flex-api-versioning * */ public static final class CloudRedisClusterBlockingStub @@ -804,6 +1425,124 @@ public com.google.cloud.redis.cluster.v1.CertificateAuthority getClusterCertific return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetClusterCertificateAuthorityMethod(), getCallOptions(), request); } + + /** + * + * + *
    +     * Reschedules upcoming maintenance event.
    +     * 
    + */ + public com.google.longrunning.Operation rescheduleClusterMaintenance( + com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRescheduleClusterMaintenanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Lists all backup collections owned by a consumer project in either the
    +     * specified location (region) or all locations.
    +     * If `location_id` is specified as `-` (wildcard), then all regions
    +     * available to the project are queried, and the results are aggregated.
    +     * 
    + */ + public com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse listBackupCollections( + com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListBackupCollectionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Get a backup collection.
    +     * 
    + */ + public com.google.cloud.redis.cluster.v1.BackupCollection getBackupCollection( + com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetBackupCollectionMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Lists all backups owned by a backup collection.
    +     * 
    + */ + public com.google.cloud.redis.cluster.v1.ListBackupsResponse listBackups( + com.google.cloud.redis.cluster.v1.ListBackupsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListBackupsMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Gets the details of a specific backup.
    +     * 
    + */ + public com.google.cloud.redis.cluster.v1.Backup getBackup( + com.google.cloud.redis.cluster.v1.GetBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetBackupMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Deletes a specific backup.
    +     * 
    + */ + public com.google.longrunning.Operation deleteBackup( + com.google.cloud.redis.cluster.v1.DeleteBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteBackupMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Exports a specific backup to a customer target Cloud Storage URI.
    +     * 
    + */ + public com.google.longrunning.Operation exportBackup( + com.google.cloud.redis.cluster.v1.ExportBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportBackupMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Backup Redis Cluster.
    +     * If this is the first time a backup is being created, a backup collection
    +     * will be created at the backend, and this backup belongs to this collection.
    +     * Both collection and backup will have a resource name. Backup will be
    +     * executed for each shard. A replica (primary if nonHA) will be selected to
    +     * perform the execution. Backup call will be rejected if there is an ongoing
    +     * backup or update operation. Be aware that during preview, if the cluster's
    +     * internal software version is too old, critical update will be performed
    +     * before actual backup. Once the internal software version is updated to the
    +     * minimum version required by the backup feature, subsequent backups will not
    +     * require critical update. After preview, there will be no critical update
    +     * needed for backup.
    +     * 
    + */ + public com.google.longrunning.Operation backupCluster( + com.google.cloud.redis.cluster.v1.BackupClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBackupClusterMethod(), getCallOptions(), request); + } } /** @@ -822,11 +1561,6 @@ public com.google.cloud.redis.cluster.v1.CertificateAuthority getClusterCertific * `/projects/{project_id}/locations/{location_id}/clusters/{instance_id}` * Note that location_id must be a GCP `region`; for example: * * `projects/redpepper-1290/locations/us-central1/clusters/my-redis` - * We use API version selector for Flex APIs - * * The versioning strategy is release-based versioning - * * Our backend CLH only deals with the superset version (called v1main) - * * Existing backend for Redis Gen1 and MRR is not touched. - * * More details in go/redis-flex-api-versioning * */ public static final class CloudRedisClusterFutureStub @@ -938,6 +1672,130 @@ protected CloudRedisClusterFutureStub build( getChannel().newCall(getGetClusterCertificateAuthorityMethod(), getCallOptions()), request); } + + /** + * + * + *
    +     * Reschedules upcoming maintenance event.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + rescheduleClusterMaintenance( + com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRescheduleClusterMaintenanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Lists all backup collections owned by a consumer project in either the
    +     * specified location (region) or all locations.
    +     * If `location_id` is specified as `-` (wildcard), then all regions
    +     * available to the project are queried, and the results are aggregated.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse> + listBackupCollections( + com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListBackupCollectionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Get a backup collection.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.redis.cluster.v1.BackupCollection> + getBackupCollection(com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetBackupCollectionMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Lists all backups owned by a backup collection.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.redis.cluster.v1.ListBackupsResponse> + listBackups(com.google.cloud.redis.cluster.v1.ListBackupsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListBackupsMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Gets the details of a specific backup.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.redis.cluster.v1.Backup> + getBackup(com.google.cloud.redis.cluster.v1.GetBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetBackupMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Deletes a specific backup.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + deleteBackup(com.google.cloud.redis.cluster.v1.DeleteBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteBackupMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Exports a specific backup to a customer target Cloud Storage URI.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + exportBackup(com.google.cloud.redis.cluster.v1.ExportBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getExportBackupMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Backup Redis Cluster.
    +     * If this is the first time a backup is being created, a backup collection
    +     * will be created at the backend, and this backup belongs to this collection.
    +     * Both collection and backup will have a resource name. Backup will be
    +     * executed for each shard. A replica (primary if nonHA) will be selected to
    +     * perform the execution. Backup call will be rejected if there is an ongoing
    +     * backup or update operation. Be aware that during preview, if the cluster's
    +     * internal software version is too old, critical update will be performed
    +     * before actual backup. Once the internal software version is updated to the
    +     * minimum version required by the backup feature, subsequent backups will not
    +     * require critical update. After preview, there will be no critical update
    +     * needed for backup.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + backupCluster(com.google.cloud.redis.cluster.v1.BackupClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBackupClusterMethod(), getCallOptions()), request); + } } private static final int METHODID_LIST_CLUSTERS = 0; @@ -946,6 +1804,14 @@ protected CloudRedisClusterFutureStub build( private static final int METHODID_DELETE_CLUSTER = 3; private static final int METHODID_CREATE_CLUSTER = 4; private static final int METHODID_GET_CLUSTER_CERTIFICATE_AUTHORITY = 5; + private static final int METHODID_RESCHEDULE_CLUSTER_MAINTENANCE = 6; + private static final int METHODID_LIST_BACKUP_COLLECTIONS = 7; + private static final int METHODID_GET_BACKUP_COLLECTION = 8; + private static final int METHODID_LIST_BACKUPS = 9; + private static final int METHODID_GET_BACKUP = 10; + private static final int METHODID_DELETE_BACKUP = 11; + private static final int METHODID_EXPORT_BACKUP = 12; + private static final int METHODID_BACKUP_CLUSTER = 13; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -997,6 +1863,51 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_RESCHEDULE_CLUSTER_MAINTENANCE: + serviceImpl.rescheduleClusterMaintenance( + (com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_BACKUP_COLLECTIONS: + serviceImpl.listBackupCollections( + (com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse>) + responseObserver); + break; + case METHODID_GET_BACKUP_COLLECTION: + serviceImpl.getBackupCollection( + (com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_BACKUPS: + serviceImpl.listBackups( + (com.google.cloud.redis.cluster.v1.ListBackupsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_BACKUP: + serviceImpl.getBackup( + (com.google.cloud.redis.cluster.v1.GetBackupRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_BACKUP: + serviceImpl.deleteBackup( + (com.google.cloud.redis.cluster.v1.DeleteBackupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_EXPORT_BACKUP: + serviceImpl.exportBackup( + (com.google.cloud.redis.cluster.v1.ExportBackupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_BACKUP_CLUSTER: + serviceImpl.backupCluster( + (com.google.cloud.redis.cluster.v1.BackupClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -1053,6 +1964,58 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest, com.google.cloud.redis.cluster.v1.CertificateAuthority>( service, METHODID_GET_CLUSTER_CERTIFICATE_AUTHORITY))) + .addMethod( + getRescheduleClusterMaintenanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest, + com.google.longrunning.Operation>( + service, METHODID_RESCHEDULE_CLUSTER_MAINTENANCE))) + .addMethod( + getListBackupCollectionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest, + com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse>( + service, METHODID_LIST_BACKUP_COLLECTIONS))) + .addMethod( + getGetBackupCollectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest, + com.google.cloud.redis.cluster.v1.BackupCollection>( + service, METHODID_GET_BACKUP_COLLECTION))) + .addMethod( + getListBackupsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.cluster.v1.ListBackupsRequest, + com.google.cloud.redis.cluster.v1.ListBackupsResponse>( + service, METHODID_LIST_BACKUPS))) + .addMethod( + getGetBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.cluster.v1.GetBackupRequest, + com.google.cloud.redis.cluster.v1.Backup>(service, METHODID_GET_BACKUP))) + .addMethod( + getDeleteBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.cluster.v1.DeleteBackupRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_BACKUP))) + .addMethod( + getExportBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.cluster.v1.ExportBackupRequest, + com.google.longrunning.Operation>(service, METHODID_EXPORT_BACKUP))) + .addMethod( + getBackupClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.cluster.v1.BackupClusterRequest, + com.google.longrunning.Operation>(service, METHODID_BACKUP_CLUSTER))) .build(); } @@ -1110,6 +2073,14 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getDeleteClusterMethod()) .addMethod(getCreateClusterMethod()) .addMethod(getGetClusterCertificateAuthorityMethod()) + .addMethod(getRescheduleClusterMaintenanceMethod()) + .addMethod(getListBackupCollectionsMethod()) + .addMethod(getGetBackupCollectionMethod()) + .addMethod(getListBackupsMethod()) + .addMethod(getGetBackupMethod()) + .addMethod(getDeleteBackupMethod()) + .addMethod(getExportBackupMethod()) + .addMethod(getBackupClusterMethod()) .build(); } } diff --git a/java-redis-cluster/grpc-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterGrpc.java b/java-redis-cluster/grpc-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterGrpc.java index 536659a08285..2cc784c3cb58 100644 --- a/java-redis-cluster/grpc-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterGrpc.java +++ b/java-redis-cluster/grpc-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterGrpc.java @@ -33,11 +33,6 @@ * `/projects/{project_id}/locations/{location_id}/clusters/{instance_id}` * Note that location_id must be a GCP `region`; for example: * * `projects/redpepper-1290/locations/us-central1/clusters/my-redis` - * We use API version selector for Flex APIs - * * The versioning strategy is release-based versioning - * * Our backend CLH only deals with the superset version (called v1main) - * * Existing backend for Redis Gen1 and MRR is not touched. - * * More details in go/redis-flex-api-versioning * */ @javax.annotation.Generated( @@ -338,6 +333,390 @@ private CloudRedisClusterGrpc() {} return getGetClusterCertificateAuthorityMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest, + com.google.longrunning.Operation> + getRescheduleClusterMaintenanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RescheduleClusterMaintenance", + requestType = + com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest, + com.google.longrunning.Operation> + getRescheduleClusterMaintenanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest, + com.google.longrunning.Operation> + getRescheduleClusterMaintenanceMethod; + if ((getRescheduleClusterMaintenanceMethod = + CloudRedisClusterGrpc.getRescheduleClusterMaintenanceMethod) + == null) { + synchronized (CloudRedisClusterGrpc.class) { + if ((getRescheduleClusterMaintenanceMethod = + CloudRedisClusterGrpc.getRescheduleClusterMaintenanceMethod) + == null) { + CloudRedisClusterGrpc.getRescheduleClusterMaintenanceMethod = + getRescheduleClusterMaintenanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "RescheduleClusterMaintenance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1beta1 + .RescheduleClusterMaintenanceRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudRedisClusterMethodDescriptorSupplier( + "RescheduleClusterMaintenance")) + .build(); + } + } + } + return getRescheduleClusterMaintenanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest, + com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse> + getListBackupCollectionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListBackupCollections", + requestType = com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest.class, + responseType = com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest, + com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse> + getListBackupCollectionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest, + com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse> + getListBackupCollectionsMethod; + if ((getListBackupCollectionsMethod = CloudRedisClusterGrpc.getListBackupCollectionsMethod) + == null) { + synchronized (CloudRedisClusterGrpc.class) { + if ((getListBackupCollectionsMethod = CloudRedisClusterGrpc.getListBackupCollectionsMethod) + == null) { + CloudRedisClusterGrpc.getListBackupCollectionsMethod = + getListBackupCollectionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListBackupCollections")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new CloudRedisClusterMethodDescriptorSupplier("ListBackupCollections")) + .build(); + } + } + } + return getListBackupCollectionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest, + com.google.cloud.redis.cluster.v1beta1.BackupCollection> + getGetBackupCollectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetBackupCollection", + requestType = com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest.class, + responseType = com.google.cloud.redis.cluster.v1beta1.BackupCollection.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest, + com.google.cloud.redis.cluster.v1beta1.BackupCollection> + getGetBackupCollectionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest, + com.google.cloud.redis.cluster.v1beta1.BackupCollection> + getGetBackupCollectionMethod; + if ((getGetBackupCollectionMethod = CloudRedisClusterGrpc.getGetBackupCollectionMethod) + == null) { + synchronized (CloudRedisClusterGrpc.class) { + if ((getGetBackupCollectionMethod = CloudRedisClusterGrpc.getGetBackupCollectionMethod) + == null) { + CloudRedisClusterGrpc.getGetBackupCollectionMethod = + getGetBackupCollectionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetBackupCollection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1beta1.BackupCollection + .getDefaultInstance())) + .setSchemaDescriptor( + new CloudRedisClusterMethodDescriptorSupplier("GetBackupCollection")) + .build(); + } + } + } + return getGetBackupCollectionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest, + com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse> + getListBackupsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListBackups", + requestType = com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest.class, + responseType = com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest, + com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse> + getListBackupsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest, + com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse> + getListBackupsMethod; + if ((getListBackupsMethod = CloudRedisClusterGrpc.getListBackupsMethod) == null) { + synchronized (CloudRedisClusterGrpc.class) { + if ((getListBackupsMethod = CloudRedisClusterGrpc.getListBackupsMethod) == null) { + CloudRedisClusterGrpc.getListBackupsMethod = + getListBackupsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBackups")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new CloudRedisClusterMethodDescriptorSupplier("ListBackups")) + .build(); + } + } + } + return getListBackupsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.GetBackupRequest, + com.google.cloud.redis.cluster.v1beta1.Backup> + getGetBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetBackup", + requestType = com.google.cloud.redis.cluster.v1beta1.GetBackupRequest.class, + responseType = com.google.cloud.redis.cluster.v1beta1.Backup.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.GetBackupRequest, + com.google.cloud.redis.cluster.v1beta1.Backup> + getGetBackupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.GetBackupRequest, + com.google.cloud.redis.cluster.v1beta1.Backup> + getGetBackupMethod; + if ((getGetBackupMethod = CloudRedisClusterGrpc.getGetBackupMethod) == null) { + synchronized (CloudRedisClusterGrpc.class) { + if ((getGetBackupMethod = CloudRedisClusterGrpc.getGetBackupMethod) == null) { + CloudRedisClusterGrpc.getGetBackupMethod = + getGetBackupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBackup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1beta1.GetBackupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1beta1.Backup.getDefaultInstance())) + .setSchemaDescriptor( + new CloudRedisClusterMethodDescriptorSupplier("GetBackup")) + .build(); + } + } + } + return getGetBackupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest, + com.google.longrunning.Operation> + getDeleteBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteBackup", + requestType = com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest, + com.google.longrunning.Operation> + getDeleteBackupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest, + com.google.longrunning.Operation> + getDeleteBackupMethod; + if ((getDeleteBackupMethod = CloudRedisClusterGrpc.getDeleteBackupMethod) == null) { + synchronized (CloudRedisClusterGrpc.class) { + if ((getDeleteBackupMethod = CloudRedisClusterGrpc.getDeleteBackupMethod) == null) { + CloudRedisClusterGrpc.getDeleteBackupMethod = + getDeleteBackupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBackup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudRedisClusterMethodDescriptorSupplier("DeleteBackup")) + .build(); + } + } + } + return getDeleteBackupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest, + com.google.longrunning.Operation> + getExportBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ExportBackup", + requestType = com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest, + com.google.longrunning.Operation> + getExportBackupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest, + com.google.longrunning.Operation> + getExportBackupMethod; + if ((getExportBackupMethod = CloudRedisClusterGrpc.getExportBackupMethod) == null) { + synchronized (CloudRedisClusterGrpc.class) { + if ((getExportBackupMethod = CloudRedisClusterGrpc.getExportBackupMethod) == null) { + CloudRedisClusterGrpc.getExportBackupMethod = + getExportBackupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportBackup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudRedisClusterMethodDescriptorSupplier("ExportBackup")) + .build(); + } + } + } + return getExportBackupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest, + com.google.longrunning.Operation> + getBackupClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BackupCluster", + requestType = com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest, + com.google.longrunning.Operation> + getBackupClusterMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest, + com.google.longrunning.Operation> + getBackupClusterMethod; + if ((getBackupClusterMethod = CloudRedisClusterGrpc.getBackupClusterMethod) == null) { + synchronized (CloudRedisClusterGrpc.class) { + if ((getBackupClusterMethod = CloudRedisClusterGrpc.getBackupClusterMethod) == null) { + CloudRedisClusterGrpc.getBackupClusterMethod = + getBackupClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BackupCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudRedisClusterMethodDescriptorSupplier("BackupCluster")) + .build(); + } + } + } + return getBackupClusterMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static CloudRedisClusterStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -395,11 +774,6 @@ public CloudRedisClusterFutureStub newStub( * `/projects/{project_id}/locations/{location_id}/clusters/{instance_id}` * Note that location_id must be a GCP `region`; for example: * * `projects/redpepper-1290/locations/us-central1/clusters/my-redis` - * We use API version selector for Flex APIs - * * The versioning strategy is release-based versioning - * * Our backend CLH only deals with the superset version (called v1main) - * * Existing backend for Redis Gen1 and MRR is not touched. - * * More details in go/redis-flex-api-versioning * */ public interface AsyncService { @@ -504,6 +878,136 @@ default void getClusterCertificateAuthority( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getGetClusterCertificateAuthorityMethod(), responseObserver); } + + /** + * + * + *
    +     * Reschedules upcoming maintenance event.
    +     * 
    + */ + default void rescheduleClusterMaintenance( + com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRescheduleClusterMaintenanceMethod(), responseObserver); + } + + /** + * + * + *
    +     * Lists all backup collections owned by a consumer project in either the
    +     * specified location (region) or all locations.
    +     * If `location_id` is specified as `-` (wildcard), then all regions
    +     * available to the project are queried, and the results are aggregated.
    +     * 
    + */ + default void listBackupCollections( + com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListBackupCollectionsMethod(), responseObserver); + } + + /** + * + * + *
    +     * Get a backup collection.
    +     * 
    + */ + default void getBackupCollection( + com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetBackupCollectionMethod(), responseObserver); + } + + /** + * + * + *
    +     * Lists all backups owned by a backup collection.
    +     * 
    + */ + default void listBackups( + com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListBackupsMethod(), responseObserver); + } + + /** + * + * + *
    +     * Gets the details of a specific backup.
    +     * 
    + */ + default void getBackup( + com.google.cloud.redis.cluster.v1beta1.GetBackupRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBackupMethod(), responseObserver); + } + + /** + * + * + *
    +     * Deletes a specific backup.
    +     * 
    + */ + default void deleteBackup( + com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteBackupMethod(), responseObserver); + } + + /** + * + * + *
    +     * Exports a specific backup to a customer target Cloud Storage URI.
    +     * 
    + */ + default void exportBackup( + com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getExportBackupMethod(), responseObserver); + } + + /** + * + * + *
    +     * Backup Redis Cluster.
    +     * If this is the first time a backup is being created, a backup collection
    +     * will be created at the backend, and this backup belongs to this collection.
    +     * Both collection and backup will have a resource name. Backup will be
    +     * executed for each shard. A replica (primary if nonHA) will be selected to
    +     * perform the execution. Backup call will be rejected if there is an ongoing
    +     * backup or update operation. Be aware that during preview, if the cluster's
    +     * internal software version is too old, critical update will be performed
    +     * before actual backup. Once the internal software version is updated to the
    +     * minimum version required by the backup feature, subsequent backups will not
    +     * require critical update. After preview, there will be no critical update
    +     * needed for backup.
    +     * 
    + */ + default void backupCluster( + com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBackupClusterMethod(), responseObserver); + } } /** @@ -522,11 +1026,6 @@ default void getClusterCertificateAuthority( * `/projects/{project_id}/locations/{location_id}/clusters/{instance_id}` * Note that location_id must be a GCP `region`; for example: * * `projects/redpepper-1290/locations/us-central1/clusters/my-redis` - * We use API version selector for Flex APIs - * * The versioning strategy is release-based versioning - * * Our backend CLH only deals with the superset version (called v1main) - * * Existing backend for Redis Gen1 and MRR is not touched. - * * More details in go/redis-flex-api-versioning * */ public abstract static class CloudRedisClusterImplBase @@ -554,11 +1053,6 @@ public final io.grpc.ServerServiceDefinition bindService() { * `/projects/{project_id}/locations/{location_id}/clusters/{instance_id}` * Note that location_id must be a GCP `region`; for example: * * `projects/redpepper-1290/locations/us-central1/clusters/my-redis` - * We use API version selector for Flex APIs - * * The versioning strategy is release-based versioning - * * Our backend CLH only deals with the superset version (called v1main) - * * Existing backend for Redis Gen1 and MRR is not touched. - * * More details in go/redis-flex-api-versioning * */ public static final class CloudRedisClusterStub @@ -577,20 +1071,147 @@ protected CloudRedisClusterStub build( * * *
    -     * Lists all Redis clusters owned by a project in either the specified
    -     * location (region) or all locations.
    -     * The location should have the following format:
    -     * * `projects/{project_id}/locations/{location_id}`
    +     * Lists all Redis clusters owned by a project in either the specified
    +     * location (region) or all locations.
    +     * The location should have the following format:
    +     * * `projects/{project_id}/locations/{location_id}`
    +     * If `location_id` is specified as `-` (wildcard), then all regions
    +     * available to the project are queried, and the results are aggregated.
    +     * 
    + */ + public void listClusters( + com.google.cloud.redis.cluster.v1beta1.ListClustersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListClustersMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Gets the details of a specific Redis cluster.
    +     * 
    + */ + public void getCluster( + com.google.cloud.redis.cluster.v1beta1.GetClusterRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetClusterMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
    +     * Updates the metadata and configuration of a specific Redis cluster.
    +     * Completed longrunning.Operation will contain the new cluster object
    +     * in the response field. The returned operation is automatically deleted
    +     * after a few hours, so there is no need to call DeleteOperation.
    +     * 
    + */ + public void updateCluster( + com.google.cloud.redis.cluster.v1beta1.UpdateClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Deletes a specific Redis cluster. Cluster stops serving and data is
    +     * deleted.
    +     * 
    + */ + public void deleteCluster( + com.google.cloud.redis.cluster.v1beta1.DeleteClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Creates a Redis cluster based on the specified properties.
    +     * The creation is executed asynchronously and callers may check the returned
    +     * operation to track its progress. Once the operation is completed the Redis
    +     * cluster will be fully functional. The completed longrunning.Operation will
    +     * contain the new cluster object in the response field.
    +     * The returned operation is automatically deleted after a few hours, so there
    +     * is no need to call DeleteOperation.
    +     * 
    + */ + public void createCluster( + com.google.cloud.redis.cluster.v1beta1.CreateClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Gets the details of certificate authority information for Redis cluster.
    +     * 
    + */ + public void getClusterCertificateAuthority( + com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetClusterCertificateAuthorityMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Reschedules upcoming maintenance event.
    +     * 
    + */ + public void rescheduleClusterMaintenance( + com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRescheduleClusterMaintenanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Lists all backup collections owned by a consumer project in either the
    +     * specified location (region) or all locations.
          * If `location_id` is specified as `-` (wildcard), then all regions
          * available to the project are queried, and the results are aggregated.
          * 
    */ - public void listClusters( - com.google.cloud.redis.cluster.v1beta1.ListClustersRequest request, - io.grpc.stub.StreamObserver + public void listBackupCollections( + com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListClustersMethod(), getCallOptions()), + getChannel().newCall(getListBackupCollectionsMethod(), getCallOptions()), request, responseObserver); } @@ -599,32 +1220,32 @@ public void listClusters( * * *
    -     * Gets the details of a specific Redis cluster.
    +     * Get a backup collection.
          * 
    */ - public void getCluster( - com.google.cloud.redis.cluster.v1beta1.GetClusterRequest request, - io.grpc.stub.StreamObserver + public void getBackupCollection( + com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetClusterMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetBackupCollectionMethod(), getCallOptions()), + request, + responseObserver); } /** * * *
    -     * Updates the metadata and configuration of a specific Redis cluster.
    -     * Completed longrunning.Operation will contain the new cluster object
    -     * in the response field. The returned operation is automatically deleted
    -     * after a few hours, so there is no need to call DeleteOperation.
    +     * Lists all backups owned by a backup collection.
          * 
    */ - public void updateCluster( - com.google.cloud.redis.cluster.v1beta1.UpdateClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listBackups( + com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateClusterMethod(), getCallOptions()), + getChannel().newCall(getListBackupsMethod(), getCallOptions()), request, responseObserver); } @@ -633,15 +1254,29 @@ public void updateCluster( * * *
    -     * Deletes a specific Redis cluster. Cluster stops serving and data is
    -     * deleted.
    +     * Gets the details of a specific backup.
          * 
    */ - public void deleteCluster( - com.google.cloud.redis.cluster.v1beta1.DeleteClusterRequest request, + public void getBackup( + com.google.cloud.redis.cluster.v1beta1.GetBackupRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetBackupMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
    +     * Deletes a specific backup.
    +     * 
    + */ + public void deleteBackup( + com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteClusterMethod(), getCallOptions()), + getChannel().newCall(getDeleteBackupMethod(), getCallOptions()), request, responseObserver); } @@ -650,20 +1285,14 @@ public void deleteCluster( * * *
    -     * Creates a Redis cluster based on the specified properties.
    -     * The creation is executed asynchronously and callers may check the returned
    -     * operation to track its progress. Once the operation is completed the Redis
    -     * cluster will be fully functional. The completed longrunning.Operation will
    -     * contain the new cluster object in the response field.
    -     * The returned operation is automatically deleted after a few hours, so there
    -     * is no need to call DeleteOperation.
    +     * Exports a specific backup to a customer target Cloud Storage URI.
          * 
    */ - public void createCluster( - com.google.cloud.redis.cluster.v1beta1.CreateClusterRequest request, + public void exportBackup( + com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateClusterMethod(), getCallOptions()), + getChannel().newCall(getExportBackupMethod(), getCallOptions()), request, responseObserver); } @@ -672,15 +1301,25 @@ public void createCluster( * * *
    -     * Gets the details of certificate authority information for Redis cluster.
    +     * Backup Redis Cluster.
    +     * If this is the first time a backup is being created, a backup collection
    +     * will be created at the backend, and this backup belongs to this collection.
    +     * Both collection and backup will have a resource name. Backup will be
    +     * executed for each shard. A replica (primary if nonHA) will be selected to
    +     * perform the execution. Backup call will be rejected if there is an ongoing
    +     * backup or update operation. Be aware that during preview, if the cluster's
    +     * internal software version is too old, critical update will be performed
    +     * before actual backup. Once the internal software version is updated to the
    +     * minimum version required by the backup feature, subsequent backups will not
    +     * require critical update. After preview, there will be no critical update
    +     * needed for backup.
          * 
    */ - public void getClusterCertificateAuthority( - com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void backupCluster( + com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetClusterCertificateAuthorityMethod(), getCallOptions()), + getChannel().newCall(getBackupClusterMethod(), getCallOptions()), request, responseObserver); } @@ -702,11 +1341,6 @@ public void getClusterCertificateAuthority( * `/projects/{project_id}/locations/{location_id}/clusters/{instance_id}` * Note that location_id must be a GCP `region`; for example: * * `projects/redpepper-1290/locations/us-central1/clusters/my-redis` - * We use API version selector for Flex APIs - * * The versioning strategy is release-based versioning - * * Our backend CLH only deals with the superset version (called v1main) - * * Existing backend for Redis Gen1 and MRR is not touched. - * * More details in go/redis-flex-api-versioning * */ public static final class CloudRedisClusterBlockingStub @@ -815,6 +1449,125 @@ public com.google.longrunning.Operation createCluster( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetClusterCertificateAuthorityMethod(), getCallOptions(), request); } + + /** + * + * + *
    +     * Reschedules upcoming maintenance event.
    +     * 
    + */ + public com.google.longrunning.Operation rescheduleClusterMaintenance( + com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRescheduleClusterMaintenanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Lists all backup collections owned by a consumer project in either the
    +     * specified location (region) or all locations.
    +     * If `location_id` is specified as `-` (wildcard), then all regions
    +     * available to the project are queried, and the results are aggregated.
    +     * 
    + */ + public com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse + listBackupCollections( + com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListBackupCollectionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Get a backup collection.
    +     * 
    + */ + public com.google.cloud.redis.cluster.v1beta1.BackupCollection getBackupCollection( + com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetBackupCollectionMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Lists all backups owned by a backup collection.
    +     * 
    + */ + public com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse listBackups( + com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListBackupsMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Gets the details of a specific backup.
    +     * 
    + */ + public com.google.cloud.redis.cluster.v1beta1.Backup getBackup( + com.google.cloud.redis.cluster.v1beta1.GetBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetBackupMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Deletes a specific backup.
    +     * 
    + */ + public com.google.longrunning.Operation deleteBackup( + com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteBackupMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Exports a specific backup to a customer target Cloud Storage URI.
    +     * 
    + */ + public com.google.longrunning.Operation exportBackup( + com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportBackupMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Backup Redis Cluster.
    +     * If this is the first time a backup is being created, a backup collection
    +     * will be created at the backend, and this backup belongs to this collection.
    +     * Both collection and backup will have a resource name. Backup will be
    +     * executed for each shard. A replica (primary if nonHA) will be selected to
    +     * perform the execution. Backup call will be rejected if there is an ongoing
    +     * backup or update operation. Be aware that during preview, if the cluster's
    +     * internal software version is too old, critical update will be performed
    +     * before actual backup. Once the internal software version is updated to the
    +     * minimum version required by the backup feature, subsequent backups will not
    +     * require critical update. After preview, there will be no critical update
    +     * needed for backup.
    +     * 
    + */ + public com.google.longrunning.Operation backupCluster( + com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBackupClusterMethod(), getCallOptions(), request); + } } /** @@ -833,11 +1586,6 @@ public com.google.longrunning.Operation createCluster( * `/projects/{project_id}/locations/{location_id}/clusters/{instance_id}` * Note that location_id must be a GCP `region`; for example: * * `projects/redpepper-1290/locations/us-central1/clusters/my-redis` - * We use API version selector for Flex APIs - * * The versioning strategy is release-based versioning - * * Our backend CLH only deals with the superset version (called v1main) - * * Existing backend for Redis Gen1 and MRR is not touched. - * * More details in go/redis-flex-api-versioning * */ public static final class CloudRedisClusterFutureStub @@ -949,6 +1697,131 @@ protected CloudRedisClusterFutureStub build( getChannel().newCall(getGetClusterCertificateAuthorityMethod(), getCallOptions()), request); } + + /** + * + * + *
    +     * Reschedules upcoming maintenance event.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + rescheduleClusterMaintenance( + com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRescheduleClusterMaintenanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Lists all backup collections owned by a consumer project in either the
    +     * specified location (region) or all locations.
    +     * If `location_id` is specified as `-` (wildcard), then all regions
    +     * available to the project are queried, and the results are aggregated.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse> + listBackupCollections( + com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListBackupCollectionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Get a backup collection.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.redis.cluster.v1beta1.BackupCollection> + getBackupCollection( + com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetBackupCollectionMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Lists all backups owned by a backup collection.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse> + listBackups(com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListBackupsMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Gets the details of a specific backup.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.redis.cluster.v1beta1.Backup> + getBackup(com.google.cloud.redis.cluster.v1beta1.GetBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetBackupMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Deletes a specific backup.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + deleteBackup(com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteBackupMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Exports a specific backup to a customer target Cloud Storage URI.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + exportBackup(com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getExportBackupMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Backup Redis Cluster.
    +     * If this is the first time a backup is being created, a backup collection
    +     * will be created at the backend, and this backup belongs to this collection.
    +     * Both collection and backup will have a resource name. Backup will be
    +     * executed for each shard. A replica (primary if nonHA) will be selected to
    +     * perform the execution. Backup call will be rejected if there is an ongoing
    +     * backup or update operation. Be aware that during preview, if the cluster's
    +     * internal software version is too old, critical update will be performed
    +     * before actual backup. Once the internal software version is updated to the
    +     * minimum version required by the backup feature, subsequent backups will not
    +     * require critical update. After preview, there will be no critical update
    +     * needed for backup.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + backupCluster(com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBackupClusterMethod(), getCallOptions()), request); + } } private static final int METHODID_LIST_CLUSTERS = 0; @@ -957,6 +1830,14 @@ protected CloudRedisClusterFutureStub build( private static final int METHODID_DELETE_CLUSTER = 3; private static final int METHODID_CREATE_CLUSTER = 4; private static final int METHODID_GET_CLUSTER_CERTIFICATE_AUTHORITY = 5; + private static final int METHODID_RESCHEDULE_CLUSTER_MAINTENANCE = 6; + private static final int METHODID_LIST_BACKUP_COLLECTIONS = 7; + private static final int METHODID_GET_BACKUP_COLLECTION = 8; + private static final int METHODID_LIST_BACKUPS = 9; + private static final int METHODID_GET_BACKUP = 10; + private static final int METHODID_DELETE_BACKUP = 11; + private static final int METHODID_EXPORT_BACKUP = 12; + private static final int METHODID_BACKUP_CLUSTER = 13; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1011,6 +1892,52 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.redis.cluster.v1beta1.CertificateAuthority>) responseObserver); break; + case METHODID_RESCHEDULE_CLUSTER_MAINTENANCE: + serviceImpl.rescheduleClusterMaintenance( + (com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_BACKUP_COLLECTIONS: + serviceImpl.listBackupCollections( + (com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse>) + responseObserver); + break; + case METHODID_GET_BACKUP_COLLECTION: + serviceImpl.getBackupCollection( + (com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_BACKUPS: + serviceImpl.listBackups( + (com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse>) + responseObserver); + break; + case METHODID_GET_BACKUP: + serviceImpl.getBackup( + (com.google.cloud.redis.cluster.v1beta1.GetBackupRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_BACKUP: + serviceImpl.deleteBackup( + (com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_EXPORT_BACKUP: + serviceImpl.exportBackup( + (com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_BACKUP_CLUSTER: + serviceImpl.backupCluster( + (com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -1067,6 +1994,58 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest, com.google.cloud.redis.cluster.v1beta1.CertificateAuthority>( service, METHODID_GET_CLUSTER_CERTIFICATE_AUTHORITY))) + .addMethod( + getRescheduleClusterMaintenanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest, + com.google.longrunning.Operation>( + service, METHODID_RESCHEDULE_CLUSTER_MAINTENANCE))) + .addMethod( + getListBackupCollectionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest, + com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse>( + service, METHODID_LIST_BACKUP_COLLECTIONS))) + .addMethod( + getGetBackupCollectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest, + com.google.cloud.redis.cluster.v1beta1.BackupCollection>( + service, METHODID_GET_BACKUP_COLLECTION))) + .addMethod( + getListBackupsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest, + com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse>( + service, METHODID_LIST_BACKUPS))) + .addMethod( + getGetBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.cluster.v1beta1.GetBackupRequest, + com.google.cloud.redis.cluster.v1beta1.Backup>(service, METHODID_GET_BACKUP))) + .addMethod( + getDeleteBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_BACKUP))) + .addMethod( + getExportBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest, + com.google.longrunning.Operation>(service, METHODID_EXPORT_BACKUP))) + .addMethod( + getBackupClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest, + com.google.longrunning.Operation>(service, METHODID_BACKUP_CLUSTER))) .build(); } @@ -1124,6 +2103,14 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getDeleteClusterMethod()) .addMethod(getCreateClusterMethod()) .addMethod(getGetClusterCertificateAuthorityMethod()) + .addMethod(getRescheduleClusterMaintenanceMethod()) + .addMethod(getListBackupCollectionsMethod()) + .addMethod(getGetBackupCollectionMethod()) + .addMethod(getListBackupsMethod()) + .addMethod(getGetBackupMethod()) + .addMethod(getDeleteBackupMethod()) + .addMethod(getExportBackupMethod()) + .addMethod(getBackupClusterMethod()) .build(); } } diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AuthorizationMode.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AuthorizationMode.java index 049369bdc3ae..f8574fb6aeca 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AuthorizationMode.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AuthorizationMode.java @@ -155,7 +155,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto.getDescriptor() .getEnumTypes() - .get(0); + .get(1); } private static final AuthorizationMode[] VALUES = values(); diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AutomatedBackupConfig.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AutomatedBackupConfig.java new file mode 100644 index 000000000000..963471c2958c --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AutomatedBackupConfig.java @@ -0,0 +1,2361 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
    + * The automated backup config for a cluster.
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.AutomatedBackupConfig} + */ +public final class AutomatedBackupConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.AutomatedBackupConfig) + AutomatedBackupConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use AutomatedBackupConfig.newBuilder() to construct. + private AutomatedBackupConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AutomatedBackupConfig() { + automatedBackupMode_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AutomatedBackupConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AutomatedBackupConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AutomatedBackupConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.class, + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.Builder.class); + } + + /** + * + * + *
    +   * The automated backup mode.
    +   * 
    + * + * Protobuf enum {@code google.cloud.redis.cluster.v1.AutomatedBackupConfig.AutomatedBackupMode} + */ + public enum AutomatedBackupMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Default value. Automated backup config is not specified.
    +     * 
    + * + * AUTOMATED_BACKUP_MODE_UNSPECIFIED = 0; + */ + AUTOMATED_BACKUP_MODE_UNSPECIFIED(0), + /** + * + * + *
    +     * Automated backup config disabled.
    +     * 
    + * + * DISABLED = 1; + */ + DISABLED(1), + /** + * + * + *
    +     * Automated backup config enabled.
    +     * 
    + * + * ENABLED = 2; + */ + ENABLED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Default value. Automated backup config is not specified.
    +     * 
    + * + * AUTOMATED_BACKUP_MODE_UNSPECIFIED = 0; + */ + public static final int AUTOMATED_BACKUP_MODE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +     * Automated backup config disabled.
    +     * 
    + * + * DISABLED = 1; + */ + public static final int DISABLED_VALUE = 1; + /** + * + * + *
    +     * Automated backup config enabled.
    +     * 
    + * + * ENABLED = 2; + */ + public static final int ENABLED_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 AutomatedBackupMode 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 AutomatedBackupMode forNumber(int value) { + switch (value) { + case 0: + return AUTOMATED_BACKUP_MODE_UNSPECIFIED; + case 1: + return DISABLED; + case 2: + return ENABLED; + 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 AutomatedBackupMode findValueByNumber(int number) { + return AutomatedBackupMode.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.redis.cluster.v1.AutomatedBackupConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final AutomatedBackupMode[] VALUES = values(); + + public static AutomatedBackupMode 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 AutomatedBackupMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.redis.cluster.v1.AutomatedBackupConfig.AutomatedBackupMode) + } + + public interface FixedFrequencyScheduleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Required. The start time of every automated backup in UTC. It must be set
    +     * to the start of an hour. This field is required.
    +     * 
    + * + * + * optional .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
    +     * Required. The start time of every automated backup in UTC. It must be set
    +     * to the start of an hour. This field is required.
    +     * 
    + * + * + * optional .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The startTime. + */ + com.google.type.TimeOfDay getStartTime(); + /** + * + * + *
    +     * Required. The start time of every automated backup in UTC. It must be set
    +     * to the start of an hour. This field is required.
    +     * 
    + * + * + * optional .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder(); + } + /** + * + * + *
    +   * This schedule allows the backup to be triggered at a fixed frequency
    +   * (currently only daily is supported).
    +   * 
    + * + * Protobuf type {@code + * google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule} + */ + public static final class FixedFrequencySchedule extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule) + FixedFrequencyScheduleOrBuilder { + private static final long serialVersionUID = 0L; + // Use FixedFrequencySchedule.newBuilder() to construct. + private FixedFrequencySchedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FixedFrequencySchedule() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FixedFrequencySchedule(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AutomatedBackupConfig_FixedFrequencySchedule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AutomatedBackupConfig_FixedFrequencySchedule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule.class, + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule.Builder + .class); + } + + private int bitField0_; + public static final int START_TIME_FIELD_NUMBER = 2; + private com.google.type.TimeOfDay startTime_; + /** + * + * + *
    +     * Required. The start time of every automated backup in UTC. It must be set
    +     * to the start of an hour. This field is required.
    +     * 
    + * + * + * optional .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +     * Required. The start time of every automated backup in UTC. It must be set
    +     * to the start of an hour. This field is required.
    +     * 
    + * + * + * optional .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The startTime. + */ + @java.lang.Override + public com.google.type.TimeOfDay getStartTime() { + return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; + } + /** + * + * + *
    +     * Required. The start time of every automated backup in UTC. It must be set
    +     * to the start of an hour. This field is required.
    +     * 
    + * + * + * optional .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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(2, getStartTime()); + } + 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(2, getStartTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule other = + (com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule) obj; + + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (!getUnknownFields().equals(other.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 (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +     * This schedule allows the backup to be triggered at a fixed frequency
    +     * (currently only daily is supported).
    +     * 
    + * + * Protobuf type {@code + * google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule) + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencyScheduleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AutomatedBackupConfig_FixedFrequencySchedule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AutomatedBackupConfig_FixedFrequencySchedule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule + .class, + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule + .Builder.class); + } + + // Construct using + // com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule.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(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AutomatedBackupConfig_FixedFrequencySchedule_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule + build() { + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule + buildPartial() { + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule result = + new com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.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.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule) { + return mergeFrom( + (com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule other) { + if (other + == com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule + .getDefaultInstance()) return this; + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + 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.type.TimeOfDay startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder> + startTimeBuilder_; + /** + * + * + *
    +       * Required. The start time of every automated backup in UTC. It must be set
    +       * to the start of an hour. This field is required.
    +       * 
    + * + * + * optional .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +       * Required. The start time of every automated backup in UTC. It must be set
    +       * to the start of an hour. This field is required.
    +       * 
    + * + * + * optional .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The startTime. + */ + public com.google.type.TimeOfDay getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
    +       * Required. The start time of every automated backup in UTC. It must be set
    +       * to the start of an hour. This field is required.
    +       * 
    + * + * + * optional .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setStartTime(com.google.type.TimeOfDay value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +       * Required. The start time of every automated backup in UTC. It must be set
    +       * to the start of an hour. This field is required.
    +       * 
    + * + * + * optional .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setStartTime(com.google.type.TimeOfDay.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +       * Required. The start time of every automated backup in UTC. It must be set
    +       * to the start of an hour. This field is required.
    +       * 
    + * + * + * optional .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeStartTime(com.google.type.TimeOfDay value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && startTime_ != null + && startTime_ != com.google.type.TimeOfDay.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
    +       * Required. The start time of every automated backup in UTC. It must be set
    +       * to the start of an hour. This field is required.
    +       * 
    + * + * + * optional .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000001); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +       * Required. The start time of every automated backup in UTC. It must be set
    +       * to the start of an hour. This field is required.
    +       * 
    + * + * + * optional .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.type.TimeOfDay.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
    +       * Required. The start time of every automated backup in UTC. It must be set
    +       * to the start of an hour. This field is required.
    +       * 
    + * + * + * optional .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
    +       * Required. The start time of every automated backup in UTC. It must be set
    +       * to the start of an hour. This field is required.
    +       * 
    + * + * + * optional .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule) + private static final com.google.cloud.redis.cluster.v1.AutomatedBackupConfig + .FixedFrequencySchedule + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule(); + } + + public static com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FixedFrequencySchedule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int scheduleCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object schedule_; + + public enum ScheduleCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + FIXED_FREQUENCY_SCHEDULE(2), + SCHEDULE_NOT_SET(0); + private final int value; + + private ScheduleCase(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 ScheduleCase valueOf(int value) { + return forNumber(value); + } + + public static ScheduleCase forNumber(int value) { + switch (value) { + case 2: + return FIXED_FREQUENCY_SCHEDULE; + case 0: + return SCHEDULE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ScheduleCase getScheduleCase() { + return ScheduleCase.forNumber(scheduleCase_); + } + + public static final int FIXED_FREQUENCY_SCHEDULE_FIELD_NUMBER = 2; + /** + * + * + *
    +   * Optional. Trigger automated backups at a fixed frequency.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the fixedFrequencySchedule field is set. + */ + @java.lang.Override + public boolean hasFixedFrequencySchedule() { + return scheduleCase_ == 2; + } + /** + * + * + *
    +   * Optional. Trigger automated backups at a fixed frequency.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fixedFrequencySchedule. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule + getFixedFrequencySchedule() { + if (scheduleCase_ == 2) { + return (com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule) + schedule_; + } + return com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule + .getDefaultInstance(); + } + /** + * + * + *
    +   * Optional. Trigger automated backups at a fixed frequency.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencyScheduleOrBuilder + getFixedFrequencyScheduleOrBuilder() { + if (scheduleCase_ == 2) { + return (com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule) + schedule_; + } + return com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule + .getDefaultInstance(); + } + + public static final int AUTOMATED_BACKUP_MODE_FIELD_NUMBER = 1; + private int automatedBackupMode_ = 0; + /** + * + * + *
    +   * Optional. The automated backup mode. If the mode is disabled, the other
    +   * fields will be ignored.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.AutomatedBackupConfig.AutomatedBackupMode automated_backup_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for automatedBackupMode. + */ + @java.lang.Override + public int getAutomatedBackupModeValue() { + return automatedBackupMode_; + } + /** + * + * + *
    +   * Optional. The automated backup mode. If the mode is disabled, the other
    +   * fields will be ignored.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.AutomatedBackupConfig.AutomatedBackupMode automated_backup_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The automatedBackupMode. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.AutomatedBackupMode + getAutomatedBackupMode() { + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.AutomatedBackupMode result = + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.AutomatedBackupMode.forNumber( + automatedBackupMode_); + return result == null + ? com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.AutomatedBackupMode.UNRECOGNIZED + : result; + } + + public static final int RETENTION_FIELD_NUMBER = 3; + private com.google.protobuf.Duration retention_; + /** + * + * + *
    +   * Optional. How long to keep automated backups before the backups are
    +   * deleted. The value should be between 1 day and 365 days. If not specified,
    +   * the default value is 35 days.
    +   * 
    + * + * + * optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the retention field is set. + */ + @java.lang.Override + public boolean hasRetention() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * Optional. How long to keep automated backups before the backups are
    +   * deleted. The value should be between 1 day and 365 days. If not specified,
    +   * the default value is 35 days.
    +   * 
    + * + * + * optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The retention. + */ + @java.lang.Override + public com.google.protobuf.Duration getRetention() { + return retention_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retention_; + } + /** + * + * + *
    +   * Optional. How long to keep automated backups before the backups are
    +   * deleted. The value should be between 1 day and 365 days. If not specified,
    +   * the default value is 35 days.
    +   * 
    + * + * + * optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getRetentionOrBuilder() { + return retention_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retention_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (automatedBackupMode_ + != com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.AutomatedBackupMode + .AUTOMATED_BACKUP_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, automatedBackupMode_); + } + if (scheduleCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule) + schedule_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getRetention()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (automatedBackupMode_ + != com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.AutomatedBackupMode + .AUTOMATED_BACKUP_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, automatedBackupMode_); + } + if (scheduleCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule) + schedule_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRetention()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1.AutomatedBackupConfig)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig other = + (com.google.cloud.redis.cluster.v1.AutomatedBackupConfig) obj; + + if (automatedBackupMode_ != other.automatedBackupMode_) return false; + if (hasRetention() != other.hasRetention()) return false; + if (hasRetention()) { + if (!getRetention().equals(other.getRetention())) return false; + } + if (!getScheduleCase().equals(other.getScheduleCase())) return false; + switch (scheduleCase_) { + case 2: + if (!getFixedFrequencySchedule().equals(other.getFixedFrequencySchedule())) 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) + AUTOMATED_BACKUP_MODE_FIELD_NUMBER; + hash = (53 * hash) + automatedBackupMode_; + if (hasRetention()) { + hash = (37 * hash) + RETENTION_FIELD_NUMBER; + hash = (53 * hash) + getRetention().hashCode(); + } + switch (scheduleCase_) { + case 2: + hash = (37 * hash) + FIXED_FREQUENCY_SCHEDULE_FIELD_NUMBER; + hash = (53 * hash) + getFixedFrequencySchedule().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.AutomatedBackupConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.AutomatedBackupConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.AutomatedBackupConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.AutomatedBackupConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.AutomatedBackupConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.AutomatedBackupConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.AutomatedBackupConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.AutomatedBackupConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.AutomatedBackupConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.AutomatedBackupConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.AutomatedBackupConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.AutomatedBackupConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 automated backup config for a cluster.
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.AutomatedBackupConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.AutomatedBackupConfig) + com.google.cloud.redis.cluster.v1.AutomatedBackupConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AutomatedBackupConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AutomatedBackupConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.class, + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRetentionFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (fixedFrequencyScheduleBuilder_ != null) { + fixedFrequencyScheduleBuilder_.clear(); + } + automatedBackupMode_ = 0; + retention_ = null; + if (retentionBuilder_ != null) { + retentionBuilder_.dispose(); + retentionBuilder_ = null; + } + scheduleCase_ = 0; + schedule_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_AutomatedBackupConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AutomatedBackupConfig getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AutomatedBackupConfig build() { + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AutomatedBackupConfig buildPartial() { + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig result = + new com.google.cloud.redis.cluster.v1.AutomatedBackupConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1.AutomatedBackupConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.automatedBackupMode_ = automatedBackupMode_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.retention_ = retentionBuilder_ == null ? retention_ : retentionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig result) { + result.scheduleCase_ = scheduleCase_; + result.schedule_ = this.schedule_; + if (scheduleCase_ == 2 && fixedFrequencyScheduleBuilder_ != null) { + result.schedule_ = fixedFrequencyScheduleBuilder_.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.redis.cluster.v1.AutomatedBackupConfig) { + return mergeFrom((com.google.cloud.redis.cluster.v1.AutomatedBackupConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.AutomatedBackupConfig other) { + if (other == com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.getDefaultInstance()) + return this; + if (other.automatedBackupMode_ != 0) { + setAutomatedBackupModeValue(other.getAutomatedBackupModeValue()); + } + if (other.hasRetention()) { + mergeRetention(other.getRetention()); + } + switch (other.getScheduleCase()) { + case FIXED_FREQUENCY_SCHEDULE: + { + mergeFixedFrequencySchedule(other.getFixedFrequencySchedule()); + break; + } + case SCHEDULE_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: + { + automatedBackupMode_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 8 + case 18: + { + input.readMessage( + getFixedFrequencyScheduleFieldBuilder().getBuilder(), extensionRegistry); + scheduleCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getRetentionFieldBuilder().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 scheduleCase_ = 0; + private java.lang.Object schedule_; + + public ScheduleCase getScheduleCase() { + return ScheduleCase.forNumber(scheduleCase_); + } + + public Builder clearSchedule() { + scheduleCase_ = 0; + schedule_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule, + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule.Builder, + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencyScheduleOrBuilder> + fixedFrequencyScheduleBuilder_; + /** + * + * + *
    +     * Optional. Trigger automated backups at a fixed frequency.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the fixedFrequencySchedule field is set. + */ + @java.lang.Override + public boolean hasFixedFrequencySchedule() { + return scheduleCase_ == 2; + } + /** + * + * + *
    +     * Optional. Trigger automated backups at a fixed frequency.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fixedFrequencySchedule. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule + getFixedFrequencySchedule() { + if (fixedFrequencyScheduleBuilder_ == null) { + if (scheduleCase_ == 2) { + return (com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule) + schedule_; + } + return com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule + .getDefaultInstance(); + } else { + if (scheduleCase_ == 2) { + return fixedFrequencyScheduleBuilder_.getMessage(); + } + return com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule + .getDefaultInstance(); + } + } + /** + * + * + *
    +     * Optional. Trigger automated backups at a fixed frequency.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFixedFrequencySchedule( + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule value) { + if (fixedFrequencyScheduleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + schedule_ = value; + onChanged(); + } else { + fixedFrequencyScheduleBuilder_.setMessage(value); + } + scheduleCase_ = 2; + return this; + } + /** + * + * + *
    +     * Optional. Trigger automated backups at a fixed frequency.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFixedFrequencySchedule( + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule.Builder + builderForValue) { + if (fixedFrequencyScheduleBuilder_ == null) { + schedule_ = builderForValue.build(); + onChanged(); + } else { + fixedFrequencyScheduleBuilder_.setMessage(builderForValue.build()); + } + scheduleCase_ = 2; + return this; + } + /** + * + * + *
    +     * Optional. Trigger automated backups at a fixed frequency.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeFixedFrequencySchedule( + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule value) { + if (fixedFrequencyScheduleBuilder_ == null) { + if (scheduleCase_ == 2 + && schedule_ + != com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule + .getDefaultInstance()) { + schedule_ = + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule + .newBuilder( + (com.google.cloud.redis.cluster.v1.AutomatedBackupConfig + .FixedFrequencySchedule) + schedule_) + .mergeFrom(value) + .buildPartial(); + } else { + schedule_ = value; + } + onChanged(); + } else { + if (scheduleCase_ == 2) { + fixedFrequencyScheduleBuilder_.mergeFrom(value); + } else { + fixedFrequencyScheduleBuilder_.setMessage(value); + } + } + scheduleCase_ = 2; + return this; + } + /** + * + * + *
    +     * Optional. Trigger automated backups at a fixed frequency.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFixedFrequencySchedule() { + if (fixedFrequencyScheduleBuilder_ == null) { + if (scheduleCase_ == 2) { + scheduleCase_ = 0; + schedule_ = null; + onChanged(); + } + } else { + if (scheduleCase_ == 2) { + scheduleCase_ = 0; + schedule_ = null; + } + fixedFrequencyScheduleBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * Optional. Trigger automated backups at a fixed frequency.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule.Builder + getFixedFrequencyScheduleBuilder() { + return getFixedFrequencyScheduleFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Optional. Trigger automated backups at a fixed frequency.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencyScheduleOrBuilder + getFixedFrequencyScheduleOrBuilder() { + if ((scheduleCase_ == 2) && (fixedFrequencyScheduleBuilder_ != null)) { + return fixedFrequencyScheduleBuilder_.getMessageOrBuilder(); + } else { + if (scheduleCase_ == 2) { + return (com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule) + schedule_; + } + return com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule + .getDefaultInstance(); + } + } + /** + * + * + *
    +     * Optional. Trigger automated backups at a fixed frequency.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule, + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule.Builder, + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencyScheduleOrBuilder> + getFixedFrequencyScheduleFieldBuilder() { + if (fixedFrequencyScheduleBuilder_ == null) { + if (!(scheduleCase_ == 2)) { + schedule_ = + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule + .getDefaultInstance(); + } + fixedFrequencyScheduleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule, + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule + .Builder, + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig + .FixedFrequencyScheduleOrBuilder>( + (com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule) + schedule_, + getParentForChildren(), + isClean()); + schedule_ = null; + } + scheduleCase_ = 2; + onChanged(); + return fixedFrequencyScheduleBuilder_; + } + + private int automatedBackupMode_ = 0; + /** + * + * + *
    +     * Optional. The automated backup mode. If the mode is disabled, the other
    +     * fields will be ignored.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.AutomatedBackupConfig.AutomatedBackupMode automated_backup_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for automatedBackupMode. + */ + @java.lang.Override + public int getAutomatedBackupModeValue() { + return automatedBackupMode_; + } + /** + * + * + *
    +     * Optional. The automated backup mode. If the mode is disabled, the other
    +     * fields will be ignored.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.AutomatedBackupConfig.AutomatedBackupMode automated_backup_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for automatedBackupMode to set. + * @return This builder for chaining. + */ + public Builder setAutomatedBackupModeValue(int value) { + automatedBackupMode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The automated backup mode. If the mode is disabled, the other
    +     * fields will be ignored.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.AutomatedBackupConfig.AutomatedBackupMode automated_backup_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The automatedBackupMode. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.AutomatedBackupMode + getAutomatedBackupMode() { + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.AutomatedBackupMode result = + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.AutomatedBackupMode.forNumber( + automatedBackupMode_); + return result == null + ? com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.AutomatedBackupMode.UNRECOGNIZED + : result; + } + /** + * + * + *
    +     * Optional. The automated backup mode. If the mode is disabled, the other
    +     * fields will be ignored.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.AutomatedBackupConfig.AutomatedBackupMode automated_backup_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The automatedBackupMode to set. + * @return This builder for chaining. + */ + public Builder setAutomatedBackupMode( + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.AutomatedBackupMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + automatedBackupMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The automated backup mode. If the mode is disabled, the other
    +     * fields will be ignored.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.AutomatedBackupConfig.AutomatedBackupMode automated_backup_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAutomatedBackupMode() { + bitField0_ = (bitField0_ & ~0x00000002); + automatedBackupMode_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Duration retention_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + retentionBuilder_; + /** + * + * + *
    +     * Optional. How long to keep automated backups before the backups are
    +     * deleted. The value should be between 1 day and 365 days. If not specified,
    +     * the default value is 35 days.
    +     * 
    + * + * + * optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the retention field is set. + */ + public boolean hasRetention() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +     * Optional. How long to keep automated backups before the backups are
    +     * deleted. The value should be between 1 day and 365 days. If not specified,
    +     * the default value is 35 days.
    +     * 
    + * + * + * optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The retention. + */ + public com.google.protobuf.Duration getRetention() { + if (retentionBuilder_ == null) { + return retention_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retention_; + } else { + return retentionBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Optional. How long to keep automated backups before the backups are
    +     * deleted. The value should be between 1 day and 365 days. If not specified,
    +     * the default value is 35 days.
    +     * 
    + * + * + * optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRetention(com.google.protobuf.Duration value) { + if (retentionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + retention_ = value; + } else { + retentionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. How long to keep automated backups before the backups are
    +     * deleted. The value should be between 1 day and 365 days. If not specified,
    +     * the default value is 35 days.
    +     * 
    + * + * + * optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRetention(com.google.protobuf.Duration.Builder builderForValue) { + if (retentionBuilder_ == null) { + retention_ = builderForValue.build(); + } else { + retentionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. How long to keep automated backups before the backups are
    +     * deleted. The value should be between 1 day and 365 days. If not specified,
    +     * the default value is 35 days.
    +     * 
    + * + * + * optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRetention(com.google.protobuf.Duration value) { + if (retentionBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && retention_ != null + && retention_ != com.google.protobuf.Duration.getDefaultInstance()) { + getRetentionBuilder().mergeFrom(value); + } else { + retention_ = value; + } + } else { + retentionBuilder_.mergeFrom(value); + } + if (retention_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Optional. How long to keep automated backups before the backups are
    +     * deleted. The value should be between 1 day and 365 days. If not specified,
    +     * the default value is 35 days.
    +     * 
    + * + * + * optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRetention() { + bitField0_ = (bitField0_ & ~0x00000004); + retention_ = null; + if (retentionBuilder_ != null) { + retentionBuilder_.dispose(); + retentionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. How long to keep automated backups before the backups are
    +     * deleted. The value should be between 1 day and 365 days. If not specified,
    +     * the default value is 35 days.
    +     * 
    + * + * + * optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Duration.Builder getRetentionBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getRetentionFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Optional. How long to keep automated backups before the backups are
    +     * deleted. The value should be between 1 day and 365 days. If not specified,
    +     * the default value is 35 days.
    +     * 
    + * + * + * optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.DurationOrBuilder getRetentionOrBuilder() { + if (retentionBuilder_ != null) { + return retentionBuilder_.getMessageOrBuilder(); + } else { + return retention_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retention_; + } + } + /** + * + * + *
    +     * Optional. How long to keep automated backups before the backups are
    +     * deleted. The value should be between 1 day and 365 days. If not specified,
    +     * the default value is 35 days.
    +     * 
    + * + * + * optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getRetentionFieldBuilder() { + if (retentionBuilder_ == null) { + retentionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getRetention(), getParentForChildren(), isClean()); + retention_ = null; + } + return retentionBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.AutomatedBackupConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.AutomatedBackupConfig) + private static final com.google.cloud.redis.cluster.v1.AutomatedBackupConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.AutomatedBackupConfig(); + } + + public static com.google.cloud.redis.cluster.v1.AutomatedBackupConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AutomatedBackupConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AutomatedBackupConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AutomatedBackupConfigOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AutomatedBackupConfigOrBuilder.java new file mode 100644 index 000000000000..c5786e75dcba --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/AutomatedBackupConfigOrBuilder.java @@ -0,0 +1,150 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +public interface AutomatedBackupConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.AutomatedBackupConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Optional. Trigger automated backups at a fixed frequency.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the fixedFrequencySchedule field is set. + */ + boolean hasFixedFrequencySchedule(); + /** + * + * + *
    +   * Optional. Trigger automated backups at a fixed frequency.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fixedFrequencySchedule. + */ + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule + getFixedFrequencySchedule(); + /** + * + * + *
    +   * Optional. Trigger automated backups at a fixed frequency.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.FixedFrequencyScheduleOrBuilder + getFixedFrequencyScheduleOrBuilder(); + + /** + * + * + *
    +   * Optional. The automated backup mode. If the mode is disabled, the other
    +   * fields will be ignored.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.AutomatedBackupConfig.AutomatedBackupMode automated_backup_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for automatedBackupMode. + */ + int getAutomatedBackupModeValue(); + /** + * + * + *
    +   * Optional. The automated backup mode. If the mode is disabled, the other
    +   * fields will be ignored.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.AutomatedBackupConfig.AutomatedBackupMode automated_backup_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The automatedBackupMode. + */ + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.AutomatedBackupMode + getAutomatedBackupMode(); + + /** + * + * + *
    +   * Optional. How long to keep automated backups before the backups are
    +   * deleted. The value should be between 1 day and 365 days. If not specified,
    +   * the default value is 35 days.
    +   * 
    + * + * + * optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the retention field is set. + */ + boolean hasRetention(); + /** + * + * + *
    +   * Optional. How long to keep automated backups before the backups are
    +   * deleted. The value should be between 1 day and 365 days. If not specified,
    +   * the default value is 35 days.
    +   * 
    + * + * + * optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The retention. + */ + com.google.protobuf.Duration getRetention(); + /** + * + * + *
    +   * Optional. How long to keep automated backups before the backups are
    +   * deleted. The value should be between 1 day and 365 days. If not specified,
    +   * the default value is 35 days.
    +   * 
    + * + * + * optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.DurationOrBuilder getRetentionOrBuilder(); + + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.ScheduleCase getScheduleCase(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/Backup.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/Backup.java new file mode 100644 index 000000000000..8fec0a1ad1c2 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/Backup.java @@ -0,0 +1,3965 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
    + * Backup of a cluster.
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.Backup} + */ +public final class Backup extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.Backup) + BackupOrBuilder { + private static final long serialVersionUID = 0L; + // Use Backup.newBuilder() to construct. + private Backup(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Backup() { + name_ = ""; + cluster_ = ""; + clusterUid_ = ""; + engineVersion_ = ""; + backupFiles_ = java.util.Collections.emptyList(); + nodeType_ = 0; + backupType_ = 0; + state_ = 0; + uid_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Backup(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_Backup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_Backup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.Backup.class, + com.google.cloud.redis.cluster.v1.Backup.Builder.class); + } + + /** + * + * + *
    +   * Type of the backup.
    +   * 
    + * + * Protobuf enum {@code google.cloud.redis.cluster.v1.Backup.BackupType} + */ + public enum BackupType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * The default value, not set.
    +     * 
    + * + * BACKUP_TYPE_UNSPECIFIED = 0; + */ + BACKUP_TYPE_UNSPECIFIED(0), + /** + * + * + *
    +     * On-demand backup.
    +     * 
    + * + * ON_DEMAND = 1; + */ + ON_DEMAND(1), + /** + * + * + *
    +     * Automated backup.
    +     * 
    + * + * AUTOMATED = 2; + */ + AUTOMATED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * The default value, not set.
    +     * 
    + * + * BACKUP_TYPE_UNSPECIFIED = 0; + */ + public static final int BACKUP_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +     * On-demand backup.
    +     * 
    + * + * ON_DEMAND = 1; + */ + public static final int ON_DEMAND_VALUE = 1; + /** + * + * + *
    +     * Automated backup.
    +     * 
    + * + * AUTOMATED = 2; + */ + public static final int AUTOMATED_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 BackupType 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 BackupType forNumber(int value) { + switch (value) { + case 0: + return BACKUP_TYPE_UNSPECIFIED; + case 1: + return ON_DEMAND; + case 2: + return AUTOMATED; + 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 BackupType findValueByNumber(int number) { + return BackupType.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.redis.cluster.v1.Backup.getDescriptor().getEnumTypes().get(0); + } + + private static final BackupType[] VALUES = values(); + + public static BackupType 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 BackupType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.redis.cluster.v1.Backup.BackupType) + } + + /** + * + * + *
    +   * State of the backup.
    +   * 
    + * + * Protobuf enum {@code google.cloud.redis.cluster.v1.Backup.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * The default value, not set.
    +     * 
    + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
    +     * The backup is being created.
    +     * 
    + * + * CREATING = 1; + */ + CREATING(1), + /** + * + * + *
    +     * The backup is active to be used.
    +     * 
    + * + * ACTIVE = 2; + */ + ACTIVE(2), + /** + * + * + *
    +     * The backup is being deleted.
    +     * 
    + * + * DELETING = 3; + */ + DELETING(3), + /** + * + * + *
    +     * The backup is currently suspended due to reasons like project deletion,
    +     * billing account closure, etc.
    +     * 
    + * + * SUSPENDED = 4; + */ + SUSPENDED(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * The default value, not set.
    +     * 
    + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +     * The backup is being created.
    +     * 
    + * + * CREATING = 1; + */ + public static final int CREATING_VALUE = 1; + /** + * + * + *
    +     * The backup is active to be used.
    +     * 
    + * + * ACTIVE = 2; + */ + public static final int ACTIVE_VALUE = 2; + /** + * + * + *
    +     * The backup is being deleted.
    +     * 
    + * + * DELETING = 3; + */ + public static final int DELETING_VALUE = 3; + /** + * + * + *
    +     * The backup is currently suspended due to reasons like project deletion,
    +     * billing account closure, etc.
    +     * 
    + * + * SUSPENDED = 4; + */ + public static final int SUSPENDED_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static 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 CREATING; + case 2: + return ACTIVE; + case 3: + return DELETING; + case 4: + return SUSPENDED; + 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.redis.cluster.v1.Backup.getDescriptor().getEnumTypes().get(1); + } + + 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.redis.cluster.v1.Backup.State) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Identifier. Full resource path of the backup. the last part of the name is
    +   * the backup id with the following format: [YYYYMMDDHHMMSS]_[Shorted Cluster
    +   * UID] OR customer specified while backup cluster. Example:
    +   * 20240515123000_1234
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + /** + * + * + *
    +   * Identifier. Full resource path of the backup. the last part of the name is
    +   * the backup id with the following format: [YYYYMMDDHHMMSS]_[Shorted Cluster
    +   * UID] OR customer specified while backup cluster. Example:
    +   * 20240515123000_1234
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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 CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
    +   * Output only. The time when the backup was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 2 [(.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. The time when the backup was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 2 [(.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. The time when the backup was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 2 [(.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 CLUSTER_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object cluster_ = ""; + /** + * + * + *
    +   * Output only. Cluster resource path of this backup.
    +   * 
    + * + * + * string cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The cluster. + */ + @java.lang.Override + public java.lang.String getCluster() { + java.lang.Object ref = cluster_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cluster_ = s; + return s; + } + } + /** + * + * + *
    +   * Output only. Cluster resource path of this backup.
    +   * 
    + * + * + * string cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cluster. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterBytes() { + java.lang.Object ref = cluster_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_UID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object clusterUid_ = ""; + /** + * + * + *
    +   * Output only. Cluster uid of this backup.
    +   * 
    + * + * + * string cluster_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The clusterUid. + */ + @java.lang.Override + public java.lang.String getClusterUid() { + java.lang.Object ref = clusterUid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterUid_ = s; + return s; + } + } + /** + * + * + *
    +   * Output only. Cluster uid of this backup.
    +   * 
    + * + * + * string cluster_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for clusterUid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterUidBytes() { + java.lang.Object ref = clusterUid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterUid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOTAL_SIZE_BYTES_FIELD_NUMBER = 5; + private long totalSizeBytes_ = 0L; + /** + * + * + *
    +   * Output only. Total size of the backup in bytes.
    +   * 
    + * + * int64 total_size_bytes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The totalSizeBytes. + */ + @java.lang.Override + public long getTotalSizeBytes() { + return totalSizeBytes_; + } + + public static final int EXPIRE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp expireTime_; + /** + * + * + *
    +   * Output only. The time when the backup will expire.
    +   * 
    + * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the expireTime field is set. + */ + @java.lang.Override + public boolean hasExpireTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +   * Output only. The time when the backup will expire.
    +   * 
    + * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The expireTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getExpireTime() { + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + } + /** + * + * + *
    +   * Output only. The time when the backup will expire.
    +   * 
    + * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + } + + public static final int ENGINE_VERSION_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object engineVersion_ = ""; + /** + * + * + *
    +   * Output only. redis-7.2, valkey-7.5
    +   * 
    + * + * string engine_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The engineVersion. + */ + @java.lang.Override + public java.lang.String getEngineVersion() { + java.lang.Object ref = engineVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + engineVersion_ = s; + return s; + } + } + /** + * + * + *
    +   * Output only. redis-7.2, valkey-7.5
    +   * 
    + * + * string engine_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for engineVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEngineVersionBytes() { + java.lang.Object ref = engineVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + engineVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BACKUP_FILES_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List backupFiles_; + /** + * + * + *
    +   * Output only. List of backup files of the backup.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getBackupFilesList() { + return backupFiles_; + } + /** + * + * + *
    +   * Output only. List of backup files of the backup.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getBackupFilesOrBuilderList() { + return backupFiles_; + } + /** + * + * + *
    +   * Output only. List of backup files of the backup.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getBackupFilesCount() { + return backupFiles_.size(); + } + /** + * + * + *
    +   * Output only. List of backup files of the backup.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.BackupFile getBackupFiles(int index) { + return backupFiles_.get(index); + } + /** + * + * + *
    +   * Output only. List of backup files of the backup.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.BackupFileOrBuilder getBackupFilesOrBuilder(int index) { + return backupFiles_.get(index); + } + + public static final int NODE_TYPE_FIELD_NUMBER = 9; + private int nodeType_ = 0; + /** + * + * + *
    +   * Output only. Node type of the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.NodeType node_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for nodeType. + */ + @java.lang.Override + public int getNodeTypeValue() { + return nodeType_; + } + /** + * + * + *
    +   * Output only. Node type of the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.NodeType node_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The nodeType. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.NodeType getNodeType() { + com.google.cloud.redis.cluster.v1.NodeType result = + com.google.cloud.redis.cluster.v1.NodeType.forNumber(nodeType_); + return result == null ? com.google.cloud.redis.cluster.v1.NodeType.UNRECOGNIZED : result; + } + + public static final int REPLICA_COUNT_FIELD_NUMBER = 10; + private int replicaCount_ = 0; + /** + * + * + *
    +   * Output only. Number of replicas for the cluster.
    +   * 
    + * + * int32 replica_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The replicaCount. + */ + @java.lang.Override + public int getReplicaCount() { + return replicaCount_; + } + + public static final int SHARD_COUNT_FIELD_NUMBER = 11; + private int shardCount_ = 0; + /** + * + * + *
    +   * Output only. Number of shards for the cluster.
    +   * 
    + * + * int32 shard_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The shardCount. + */ + @java.lang.Override + public int getShardCount() { + return shardCount_; + } + + public static final int BACKUP_TYPE_FIELD_NUMBER = 12; + private int backupType_ = 0; + /** + * + * + *
    +   * Output only. Type of the backup.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.Backup.BackupType backup_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for backupType. + */ + @java.lang.Override + public int getBackupTypeValue() { + return backupType_; + } + /** + * + * + *
    +   * Output only. Type of the backup.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.Backup.BackupType backup_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The backupType. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.Backup.BackupType getBackupType() { + com.google.cloud.redis.cluster.v1.Backup.BackupType result = + com.google.cloud.redis.cluster.v1.Backup.BackupType.forNumber(backupType_); + return result == null + ? com.google.cloud.redis.cluster.v1.Backup.BackupType.UNRECOGNIZED + : result; + } + + public static final int STATE_FIELD_NUMBER = 13; + private int state_ = 0; + /** + * + * + *
    +   * Output only. State of the backup.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.Backup.State state = 13 [(.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. State of the backup.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.Backup.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.Backup.State getState() { + com.google.cloud.redis.cluster.v1.Backup.State result = + com.google.cloud.redis.cluster.v1.Backup.State.forNumber(state_); + return result == null ? com.google.cloud.redis.cluster.v1.Backup.State.UNRECOGNIZED : result; + } + + public static final int ENCRYPTION_INFO_FIELD_NUMBER = 14; + private com.google.cloud.redis.cluster.v1.EncryptionInfo encryptionInfo_; + /** + * + * + *
    +   * Output only. Encryption information of the backup.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the encryptionInfo field is set. + */ + @java.lang.Override + public boolean hasEncryptionInfo() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +   * Output only. Encryption information of the backup.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The encryptionInfo. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.EncryptionInfo getEncryptionInfo() { + return encryptionInfo_ == null + ? com.google.cloud.redis.cluster.v1.EncryptionInfo.getDefaultInstance() + : encryptionInfo_; + } + /** + * + * + *
    +   * Output only. Encryption information of the backup.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.EncryptionInfoOrBuilder getEncryptionInfoOrBuilder() { + return encryptionInfo_ == null + ? com.google.cloud.redis.cluster.v1.EncryptionInfo.getDefaultInstance() + : encryptionInfo_; + } + + public static final int UID_FIELD_NUMBER = 15; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + /** + * + * + *
    +   * Output only. System assigned unique identifier of the backup.
    +   * 
    + * + * + * string uid = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } + } + /** + * + * + *
    +   * Output only. System assigned unique identifier of the backup.
    +   * 
    + * + * + * string uid = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = 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, getCreateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cluster_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cluster_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterUid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, clusterUid_); + } + if (totalSizeBytes_ != 0L) { + output.writeInt64(5, totalSizeBytes_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getExpireTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(engineVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, engineVersion_); + } + for (int i = 0; i < backupFiles_.size(); i++) { + output.writeMessage(8, backupFiles_.get(i)); + } + if (nodeType_ != com.google.cloud.redis.cluster.v1.NodeType.NODE_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(9, nodeType_); + } + if (replicaCount_ != 0) { + output.writeInt32(10, replicaCount_); + } + if (shardCount_ != 0) { + output.writeInt32(11, shardCount_); + } + if (backupType_ + != com.google.cloud.redis.cluster.v1.Backup.BackupType.BACKUP_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(12, backupType_); + } + if (state_ != com.google.cloud.redis.cluster.v1.Backup.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(13, state_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(14, getEncryptionInfo()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, uid_); + } + 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, getCreateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cluster_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, cluster_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterUid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, clusterUid_); + } + if (totalSizeBytes_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, totalSizeBytes_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getExpireTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(engineVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, engineVersion_); + } + for (int i = 0; i < backupFiles_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, backupFiles_.get(i)); + } + if (nodeType_ != com.google.cloud.redis.cluster.v1.NodeType.NODE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, nodeType_); + } + if (replicaCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(10, replicaCount_); + } + if (shardCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(11, shardCount_); + } + if (backupType_ + != com.google.cloud.redis.cluster.v1.Backup.BackupType.BACKUP_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, backupType_); + } + if (state_ != com.google.cloud.redis.cluster.v1.Backup.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, state_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getEncryptionInfo()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, uid_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1.Backup)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.Backup other = (com.google.cloud.redis.cluster.v1.Backup) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (!getCluster().equals(other.getCluster())) return false; + if (!getClusterUid().equals(other.getClusterUid())) return false; + if (getTotalSizeBytes() != other.getTotalSizeBytes()) return false; + if (hasExpireTime() != other.hasExpireTime()) return false; + if (hasExpireTime()) { + if (!getExpireTime().equals(other.getExpireTime())) return false; + } + if (!getEngineVersion().equals(other.getEngineVersion())) return false; + if (!getBackupFilesList().equals(other.getBackupFilesList())) return false; + if (nodeType_ != other.nodeType_) return false; + if (getReplicaCount() != other.getReplicaCount()) return false; + if (getShardCount() != other.getShardCount()) return false; + if (backupType_ != other.backupType_) return false; + if (state_ != other.state_) return false; + if (hasEncryptionInfo() != other.hasEncryptionInfo()) return false; + if (hasEncryptionInfo()) { + if (!getEncryptionInfo().equals(other.getEncryptionInfo())) return false; + } + if (!getUid().equals(other.getUid())) return false; + if (!getUnknownFields().equals(other.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 (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (37 * hash) + CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getCluster().hashCode(); + hash = (37 * hash) + CLUSTER_UID_FIELD_NUMBER; + hash = (53 * hash) + getClusterUid().hashCode(); + hash = (37 * hash) + TOTAL_SIZE_BYTES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalSizeBytes()); + if (hasExpireTime()) { + hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getExpireTime().hashCode(); + } + hash = (37 * hash) + ENGINE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getEngineVersion().hashCode(); + if (getBackupFilesCount() > 0) { + hash = (37 * hash) + BACKUP_FILES_FIELD_NUMBER; + hash = (53 * hash) + getBackupFilesList().hashCode(); + } + hash = (37 * hash) + NODE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + nodeType_; + hash = (37 * hash) + REPLICA_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getReplicaCount(); + hash = (37 * hash) + SHARD_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getShardCount(); + hash = (37 * hash) + BACKUP_TYPE_FIELD_NUMBER; + hash = (53 * hash) + backupType_; + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasEncryptionInfo()) { + hash = (37 * hash) + ENCRYPTION_INFO_FIELD_NUMBER; + hash = (53 * hash) + getEncryptionInfo().hashCode(); + } + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.Backup parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.Backup parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.Backup parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.Backup parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.Backup parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.Backup parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.Backup parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.Backup parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.Backup parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.Backup parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.Backup parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.Backup parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.redis.cluster.v1.Backup prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Backup of a cluster.
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.Backup} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.Backup) + com.google.cloud.redis.cluster.v1.BackupOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_Backup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_Backup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.Backup.class, + com.google.cloud.redis.cluster.v1.Backup.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.Backup.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(); + getExpireTimeFieldBuilder(); + getBackupFilesFieldBuilder(); + getEncryptionInfoFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + cluster_ = ""; + clusterUid_ = ""; + totalSizeBytes_ = 0L; + expireTime_ = null; + if (expireTimeBuilder_ != null) { + expireTimeBuilder_.dispose(); + expireTimeBuilder_ = null; + } + engineVersion_ = ""; + if (backupFilesBuilder_ == null) { + backupFiles_ = java.util.Collections.emptyList(); + } else { + backupFiles_ = null; + backupFilesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + nodeType_ = 0; + replicaCount_ = 0; + shardCount_ = 0; + backupType_ = 0; + state_ = 0; + encryptionInfo_ = null; + if (encryptionInfoBuilder_ != null) { + encryptionInfoBuilder_.dispose(); + encryptionInfoBuilder_ = null; + } + uid_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_Backup_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.Backup getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.Backup.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.Backup build() { + com.google.cloud.redis.cluster.v1.Backup result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.Backup buildPartial() { + com.google.cloud.redis.cluster.v1.Backup result = + new com.google.cloud.redis.cluster.v1.Backup(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.redis.cluster.v1.Backup result) { + if (backupFilesBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + backupFiles_ = java.util.Collections.unmodifiableList(backupFiles_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.backupFiles_ = backupFiles_; + } else { + result.backupFiles_ = backupFilesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1.Backup result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.cluster_ = cluster_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.clusterUid_ = clusterUid_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.totalSizeBytes_ = totalSizeBytes_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.engineVersion_ = engineVersion_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.nodeType_ = nodeType_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.replicaCount_ = replicaCount_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.shardCount_ = shardCount_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.backupType_ = backupType_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.encryptionInfo_ = + encryptionInfoBuilder_ == null ? encryptionInfo_ : encryptionInfoBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.uid_ = uid_; + } + 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.redis.cluster.v1.Backup) { + return mergeFrom((com.google.cloud.redis.cluster.v1.Backup) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.Backup other) { + if (other == com.google.cloud.redis.cluster.v1.Backup.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (!other.getCluster().isEmpty()) { + cluster_ = other.cluster_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getClusterUid().isEmpty()) { + clusterUid_ = other.clusterUid_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.getTotalSizeBytes() != 0L) { + setTotalSizeBytes(other.getTotalSizeBytes()); + } + if (other.hasExpireTime()) { + mergeExpireTime(other.getExpireTime()); + } + if (!other.getEngineVersion().isEmpty()) { + engineVersion_ = other.engineVersion_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (backupFilesBuilder_ == null) { + if (!other.backupFiles_.isEmpty()) { + if (backupFiles_.isEmpty()) { + backupFiles_ = other.backupFiles_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureBackupFilesIsMutable(); + backupFiles_.addAll(other.backupFiles_); + } + onChanged(); + } + } else { + if (!other.backupFiles_.isEmpty()) { + if (backupFilesBuilder_.isEmpty()) { + backupFilesBuilder_.dispose(); + backupFilesBuilder_ = null; + backupFiles_ = other.backupFiles_; + bitField0_ = (bitField0_ & ~0x00000080); + backupFilesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBackupFilesFieldBuilder() + : null; + } else { + backupFilesBuilder_.addAllMessages(other.backupFiles_); + } + } + } + if (other.nodeType_ != 0) { + setNodeTypeValue(other.getNodeTypeValue()); + } + if (other.getReplicaCount() != 0) { + setReplicaCount(other.getReplicaCount()); + } + if (other.getShardCount() != 0) { + setShardCount(other.getShardCount()); + } + if (other.backupType_ != 0) { + setBackupTypeValue(other.getBackupTypeValue()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasEncryptionInfo()) { + mergeEncryptionInfo(other.getEncryptionInfo()); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00004000; + 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(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + cluster_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + clusterUid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + totalSizeBytes_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + engineVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + com.google.cloud.redis.cluster.v1.BackupFile m = + input.readMessage( + com.google.cloud.redis.cluster.v1.BackupFile.parser(), extensionRegistry); + if (backupFilesBuilder_ == null) { + ensureBackupFilesIsMutable(); + backupFiles_.add(m); + } else { + backupFilesBuilder_.addMessage(m); + } + break; + } // case 66 + case 72: + { + nodeType_ = input.readEnum(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 80: + { + replicaCount_ = input.readInt32(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 88: + { + shardCount_ = input.readInt32(); + bitField0_ |= 0x00000400; + break; + } // case 88 + case 96: + { + backupType_ = input.readEnum(); + bitField0_ |= 0x00000800; + break; + } // case 96 + case 104: + { + state_ = input.readEnum(); + bitField0_ |= 0x00001000; + break; + } // case 104 + case 114: + { + input.readMessage(getEncryptionInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 114 + case 122: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00004000; + break; + } // case 122 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + 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_ = ""; + /** + * + * + *
    +     * Identifier. Full resource path of the backup. the last part of the name is
    +     * the backup id with the following format: [YYYYMMDDHHMMSS]_[Shorted Cluster
    +     * UID] OR customer specified while backup cluster. Example:
    +     * 20240515123000_1234
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + /** + * + * + *
    +     * Identifier. Full resource path of the backup. the last part of the name is
    +     * the backup id with the following format: [YYYYMMDDHHMMSS]_[Shorted Cluster
    +     * UID] OR customer specified while backup cluster. Example:
    +     * 20240515123000_1234
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + /** + * + * + *
    +     * Identifier. Full resource path of the backup. the last part of the name is
    +     * the backup id with the following format: [YYYYMMDDHHMMSS]_[Shorted Cluster
    +     * UID] OR customer specified while backup cluster. Example:
    +     * 20240515123000_1234
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + /** + * + * + *
    +     * Identifier. Full resource path of the backup. the last part of the name is
    +     * the backup id with the following format: [YYYYMMDDHHMMSS]_[Shorted Cluster
    +     * UID] OR customer specified while backup cluster. Example:
    +     * 20240515123000_1234
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * Identifier. Full resource path of the backup. the last part of the name is
    +     * the backup id with the following format: [YYYYMMDDHHMMSS]_[Shorted Cluster
    +     * UID] OR customer specified while backup cluster. Example:
    +     * 20240515123000_1234
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
    +     * Output only. The time when the backup was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * Output only. The time when the backup was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.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. The time when the backup was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The time when the backup was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The time when the backup was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Output only. The time when the backup was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The time when the backup was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Output only. The time when the backup was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.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. The time when the backup was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_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> + 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 java.lang.Object cluster_ = ""; + /** + * + * + *
    +     * Output only. Cluster resource path of this backup.
    +     * 
    + * + * + * string cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The cluster. + */ + public java.lang.String getCluster() { + java.lang.Object ref = cluster_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cluster_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Output only. Cluster resource path of this backup.
    +     * 
    + * + * + * string cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cluster. + */ + public com.google.protobuf.ByteString getClusterBytes() { + java.lang.Object ref = cluster_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Output only. Cluster resource path of this backup.
    +     * 
    + * + * + * string cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The cluster to set. + * @return This builder for chaining. + */ + public Builder setCluster(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cluster_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Cluster resource path of this backup.
    +     * 
    + * + * + * string cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCluster() { + cluster_ = getDefaultInstance().getCluster(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Cluster resource path of this backup.
    +     * 
    + * + * + * string cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for cluster to set. + * @return This builder for chaining. + */ + public Builder setClusterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cluster_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object clusterUid_ = ""; + /** + * + * + *
    +     * Output only. Cluster uid of this backup.
    +     * 
    + * + * + * string cluster_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The clusterUid. + */ + public java.lang.String getClusterUid() { + java.lang.Object ref = clusterUid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterUid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Output only. Cluster uid of this backup.
    +     * 
    + * + * + * string cluster_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for clusterUid. + */ + public com.google.protobuf.ByteString getClusterUidBytes() { + java.lang.Object ref = clusterUid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterUid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Output only. Cluster uid of this backup.
    +     * 
    + * + * + * string cluster_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The clusterUid to set. + * @return This builder for chaining. + */ + public Builder setClusterUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clusterUid_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Cluster uid of this backup.
    +     * 
    + * + * + * string cluster_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearClusterUid() { + clusterUid_ = getDefaultInstance().getClusterUid(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Cluster uid of this backup.
    +     * 
    + * + * + * string cluster_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for clusterUid to set. + * @return This builder for chaining. + */ + public Builder setClusterUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterUid_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private long totalSizeBytes_; + /** + * + * + *
    +     * Output only. Total size of the backup in bytes.
    +     * 
    + * + * int64 total_size_bytes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The totalSizeBytes. + */ + @java.lang.Override + public long getTotalSizeBytes() { + return totalSizeBytes_; + } + /** + * + * + *
    +     * Output only. Total size of the backup in bytes.
    +     * 
    + * + * int64 total_size_bytes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The totalSizeBytes to set. + * @return This builder for chaining. + */ + public Builder setTotalSizeBytes(long value) { + + totalSizeBytes_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Total size of the backup in bytes.
    +     * 
    + * + * int64 total_size_bytes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTotalSizeBytes() { + bitField0_ = (bitField0_ & ~0x00000010); + totalSizeBytes_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp expireTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; + /** + * + * + *
    +     * Output only. The time when the backup will expire.
    +     * 
    + * + * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the expireTime field is set. + */ + public boolean hasExpireTime() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
    +     * Output only. The time when the backup will expire.
    +     * 
    + * + * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The expireTime. + */ + public com.google.protobuf.Timestamp getExpireTime() { + if (expireTimeBuilder_ == null) { + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; + } else { + return expireTimeBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Output only. The time when the backup will expire.
    +     * 
    + * + * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expireTime_ = value; + } else { + expireTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The time when the backup will expire.
    +     * 
    + * + * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (expireTimeBuilder_ == null) { + expireTime_ = builderForValue.build(); + } else { + expireTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The time when the backup will expire.
    +     * 
    + * + * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && expireTime_ != null + && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getExpireTimeBuilder().mergeFrom(value); + } else { + expireTime_ = value; + } + } else { + expireTimeBuilder_.mergeFrom(value); + } + if (expireTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Output only. The time when the backup will expire.
    +     * 
    + * + * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearExpireTime() { + bitField0_ = (bitField0_ & ~0x00000020); + expireTime_ = null; + if (expireTimeBuilder_ != null) { + expireTimeBuilder_.dispose(); + expireTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The time when the backup will expire.
    +     * 
    + * + * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getExpireTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Output only. The time when the backup will expire.
    +     * 
    + * + * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + if (expireTimeBuilder_ != null) { + return expireTimeBuilder_.getMessageOrBuilder(); + } else { + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; + } + } + /** + * + * + *
    +     * Output only. The time when the backup will expire.
    +     * 
    + * + * + * .google.protobuf.Timestamp expire_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> + getExpireTimeFieldBuilder() { + if (expireTimeBuilder_ == null) { + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), getParentForChildren(), isClean()); + expireTime_ = null; + } + return expireTimeBuilder_; + } + + private java.lang.Object engineVersion_ = ""; + /** + * + * + *
    +     * Output only. redis-7.2, valkey-7.5
    +     * 
    + * + * string engine_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The engineVersion. + */ + public java.lang.String getEngineVersion() { + java.lang.Object ref = engineVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + engineVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Output only. redis-7.2, valkey-7.5
    +     * 
    + * + * string engine_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for engineVersion. + */ + public com.google.protobuf.ByteString getEngineVersionBytes() { + java.lang.Object ref = engineVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + engineVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Output only. redis-7.2, valkey-7.5
    +     * 
    + * + * string engine_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The engineVersion to set. + * @return This builder for chaining. + */ + public Builder setEngineVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + engineVersion_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. redis-7.2, valkey-7.5
    +     * 
    + * + * string engine_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEngineVersion() { + engineVersion_ = getDefaultInstance().getEngineVersion(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. redis-7.2, valkey-7.5
    +     * 
    + * + * string engine_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for engineVersion to set. + * @return This builder for chaining. + */ + public Builder setEngineVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + engineVersion_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.util.List backupFiles_ = + java.util.Collections.emptyList(); + + private void ensureBackupFilesIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + backupFiles_ = + new java.util.ArrayList(backupFiles_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1.BackupFile, + com.google.cloud.redis.cluster.v1.BackupFile.Builder, + com.google.cloud.redis.cluster.v1.BackupFileOrBuilder> + backupFilesBuilder_; + + /** + * + * + *
    +     * Output only. List of backup files of the backup.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getBackupFilesList() { + if (backupFilesBuilder_ == null) { + return java.util.Collections.unmodifiableList(backupFiles_); + } else { + return backupFilesBuilder_.getMessageList(); + } + } + /** + * + * + *
    +     * Output only. List of backup files of the backup.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getBackupFilesCount() { + if (backupFilesBuilder_ == null) { + return backupFiles_.size(); + } else { + return backupFilesBuilder_.getCount(); + } + } + /** + * + * + *
    +     * Output only. List of backup files of the backup.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.BackupFile getBackupFiles(int index) { + if (backupFilesBuilder_ == null) { + return backupFiles_.get(index); + } else { + return backupFilesBuilder_.getMessage(index); + } + } + /** + * + * + *
    +     * Output only. List of backup files of the backup.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setBackupFiles(int index, com.google.cloud.redis.cluster.v1.BackupFile value) { + if (backupFilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackupFilesIsMutable(); + backupFiles_.set(index, value); + onChanged(); + } else { + backupFilesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * Output only. List of backup files of the backup.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setBackupFiles( + int index, com.google.cloud.redis.cluster.v1.BackupFile.Builder builderForValue) { + if (backupFilesBuilder_ == null) { + ensureBackupFilesIsMutable(); + backupFiles_.set(index, builderForValue.build()); + onChanged(); + } else { + backupFilesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * Output only. List of backup files of the backup.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addBackupFiles(com.google.cloud.redis.cluster.v1.BackupFile value) { + if (backupFilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackupFilesIsMutable(); + backupFiles_.add(value); + onChanged(); + } else { + backupFilesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
    +     * Output only. List of backup files of the backup.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addBackupFiles(int index, com.google.cloud.redis.cluster.v1.BackupFile value) { + if (backupFilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackupFilesIsMutable(); + backupFiles_.add(index, value); + onChanged(); + } else { + backupFilesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * Output only. List of backup files of the backup.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addBackupFiles( + com.google.cloud.redis.cluster.v1.BackupFile.Builder builderForValue) { + if (backupFilesBuilder_ == null) { + ensureBackupFilesIsMutable(); + backupFiles_.add(builderForValue.build()); + onChanged(); + } else { + backupFilesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * Output only. List of backup files of the backup.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addBackupFiles( + int index, com.google.cloud.redis.cluster.v1.BackupFile.Builder builderForValue) { + if (backupFilesBuilder_ == null) { + ensureBackupFilesIsMutable(); + backupFiles_.add(index, builderForValue.build()); + onChanged(); + } else { + backupFilesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * Output only. List of backup files of the backup.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllBackupFiles( + java.lang.Iterable values) { + if (backupFilesBuilder_ == null) { + ensureBackupFilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, backupFiles_); + onChanged(); + } else { + backupFilesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
    +     * Output only. List of backup files of the backup.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearBackupFiles() { + if (backupFilesBuilder_ == null) { + backupFiles_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + backupFilesBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * Output only. List of backup files of the backup.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeBackupFiles(int index) { + if (backupFilesBuilder_ == null) { + ensureBackupFilesIsMutable(); + backupFiles_.remove(index); + onChanged(); + } else { + backupFilesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
    +     * Output only. List of backup files of the backup.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.BackupFile.Builder getBackupFilesBuilder(int index) { + return getBackupFilesFieldBuilder().getBuilder(index); + } + /** + * + * + *
    +     * Output only. List of backup files of the backup.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.BackupFileOrBuilder getBackupFilesOrBuilder( + int index) { + if (backupFilesBuilder_ == null) { + return backupFiles_.get(index); + } else { + return backupFilesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
    +     * Output only. List of backup files of the backup.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getBackupFilesOrBuilderList() { + if (backupFilesBuilder_ != null) { + return backupFilesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(backupFiles_); + } + } + /** + * + * + *
    +     * Output only. List of backup files of the backup.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.BackupFile.Builder addBackupFilesBuilder() { + return getBackupFilesFieldBuilder() + .addBuilder(com.google.cloud.redis.cluster.v1.BackupFile.getDefaultInstance()); + } + /** + * + * + *
    +     * Output only. List of backup files of the backup.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.BackupFile.Builder addBackupFilesBuilder(int index) { + return getBackupFilesFieldBuilder() + .addBuilder(index, com.google.cloud.redis.cluster.v1.BackupFile.getDefaultInstance()); + } + /** + * + * + *
    +     * Output only. List of backup files of the backup.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getBackupFilesBuilderList() { + return getBackupFilesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1.BackupFile, + com.google.cloud.redis.cluster.v1.BackupFile.Builder, + com.google.cloud.redis.cluster.v1.BackupFileOrBuilder> + getBackupFilesFieldBuilder() { + if (backupFilesBuilder_ == null) { + backupFilesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1.BackupFile, + com.google.cloud.redis.cluster.v1.BackupFile.Builder, + com.google.cloud.redis.cluster.v1.BackupFileOrBuilder>( + backupFiles_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); + backupFiles_ = null; + } + return backupFilesBuilder_; + } + + private int nodeType_ = 0; + /** + * + * + *
    +     * Output only. Node type of the cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.NodeType node_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for nodeType. + */ + @java.lang.Override + public int getNodeTypeValue() { + return nodeType_; + } + /** + * + * + *
    +     * Output only. Node type of the cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.NodeType node_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for nodeType to set. + * @return This builder for chaining. + */ + public Builder setNodeTypeValue(int value) { + nodeType_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Node type of the cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.NodeType node_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The nodeType. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.NodeType getNodeType() { + com.google.cloud.redis.cluster.v1.NodeType result = + com.google.cloud.redis.cluster.v1.NodeType.forNumber(nodeType_); + return result == null ? com.google.cloud.redis.cluster.v1.NodeType.UNRECOGNIZED : result; + } + /** + * + * + *
    +     * Output only. Node type of the cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.NodeType node_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The nodeType to set. + * @return This builder for chaining. + */ + public Builder setNodeType(com.google.cloud.redis.cluster.v1.NodeType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; + nodeType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Node type of the cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.NodeType node_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearNodeType() { + bitField0_ = (bitField0_ & ~0x00000100); + nodeType_ = 0; + onChanged(); + return this; + } + + private int replicaCount_; + /** + * + * + *
    +     * Output only. Number of replicas for the cluster.
    +     * 
    + * + * int32 replica_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The replicaCount. + */ + @java.lang.Override + public int getReplicaCount() { + return replicaCount_; + } + /** + * + * + *
    +     * Output only. Number of replicas for the cluster.
    +     * 
    + * + * int32 replica_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The replicaCount to set. + * @return This builder for chaining. + */ + public Builder setReplicaCount(int value) { + + replicaCount_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Number of replicas for the cluster.
    +     * 
    + * + * int32 replica_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearReplicaCount() { + bitField0_ = (bitField0_ & ~0x00000200); + replicaCount_ = 0; + onChanged(); + return this; + } + + private int shardCount_; + /** + * + * + *
    +     * Output only. Number of shards for the cluster.
    +     * 
    + * + * int32 shard_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The shardCount. + */ + @java.lang.Override + public int getShardCount() { + return shardCount_; + } + /** + * + * + *
    +     * Output only. Number of shards for the cluster.
    +     * 
    + * + * int32 shard_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The shardCount to set. + * @return This builder for chaining. + */ + public Builder setShardCount(int value) { + + shardCount_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Number of shards for the cluster.
    +     * 
    + * + * int32 shard_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearShardCount() { + bitField0_ = (bitField0_ & ~0x00000400); + shardCount_ = 0; + onChanged(); + return this; + } + + private int backupType_ = 0; + /** + * + * + *
    +     * Output only. Type of the backup.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.Backup.BackupType backup_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for backupType. + */ + @java.lang.Override + public int getBackupTypeValue() { + return backupType_; + } + /** + * + * + *
    +     * Output only. Type of the backup.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.Backup.BackupType backup_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for backupType to set. + * @return This builder for chaining. + */ + public Builder setBackupTypeValue(int value) { + backupType_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Type of the backup.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.Backup.BackupType backup_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The backupType. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.Backup.BackupType getBackupType() { + com.google.cloud.redis.cluster.v1.Backup.BackupType result = + com.google.cloud.redis.cluster.v1.Backup.BackupType.forNumber(backupType_); + return result == null + ? com.google.cloud.redis.cluster.v1.Backup.BackupType.UNRECOGNIZED + : result; + } + /** + * + * + *
    +     * Output only. Type of the backup.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.Backup.BackupType backup_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The backupType to set. + * @return This builder for chaining. + */ + public Builder setBackupType(com.google.cloud.redis.cluster.v1.Backup.BackupType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000800; + backupType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Type of the backup.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.Backup.BackupType backup_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearBackupType() { + bitField0_ = (bitField0_ & ~0x00000800); + backupType_ = 0; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
    +     * Output only. State of the backup.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.Backup.State state = 13 [(.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. State of the backup.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.Backup.State state = 13 [(.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_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. State of the backup.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.Backup.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.Backup.State getState() { + com.google.cloud.redis.cluster.v1.Backup.State result = + com.google.cloud.redis.cluster.v1.Backup.State.forNumber(state_); + return result == null ? com.google.cloud.redis.cluster.v1.Backup.State.UNRECOGNIZED : result; + } + /** + * + * + *
    +     * Output only. State of the backup.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.Backup.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.redis.cluster.v1.Backup.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00001000; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. State of the backup.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.Backup.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00001000); + state_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.redis.cluster.v1.EncryptionInfo encryptionInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.EncryptionInfo, + com.google.cloud.redis.cluster.v1.EncryptionInfo.Builder, + com.google.cloud.redis.cluster.v1.EncryptionInfoOrBuilder> + encryptionInfoBuilder_; + /** + * + * + *
    +     * Output only. Encryption information of the backup.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the encryptionInfo field is set. + */ + public boolean hasEncryptionInfo() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + * + * + *
    +     * Output only. Encryption information of the backup.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The encryptionInfo. + */ + public com.google.cloud.redis.cluster.v1.EncryptionInfo getEncryptionInfo() { + if (encryptionInfoBuilder_ == null) { + return encryptionInfo_ == null + ? com.google.cloud.redis.cluster.v1.EncryptionInfo.getDefaultInstance() + : encryptionInfo_; + } else { + return encryptionInfoBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Output only. Encryption information of the backup.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEncryptionInfo(com.google.cloud.redis.cluster.v1.EncryptionInfo value) { + if (encryptionInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encryptionInfo_ = value; + } else { + encryptionInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Encryption information of the backup.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEncryptionInfo( + com.google.cloud.redis.cluster.v1.EncryptionInfo.Builder builderForValue) { + if (encryptionInfoBuilder_ == null) { + encryptionInfo_ = builderForValue.build(); + } else { + encryptionInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Encryption information of the backup.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEncryptionInfo(com.google.cloud.redis.cluster.v1.EncryptionInfo value) { + if (encryptionInfoBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) + && encryptionInfo_ != null + && encryptionInfo_ + != com.google.cloud.redis.cluster.v1.EncryptionInfo.getDefaultInstance()) { + getEncryptionInfoBuilder().mergeFrom(value); + } else { + encryptionInfo_ = value; + } + } else { + encryptionInfoBuilder_.mergeFrom(value); + } + if (encryptionInfo_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Output only. Encryption information of the backup.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEncryptionInfo() { + bitField0_ = (bitField0_ & ~0x00002000); + encryptionInfo_ = null; + if (encryptionInfoBuilder_ != null) { + encryptionInfoBuilder_.dispose(); + encryptionInfoBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Encryption information of the backup.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.EncryptionInfo.Builder getEncryptionInfoBuilder() { + bitField0_ |= 0x00002000; + onChanged(); + return getEncryptionInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Output only. Encryption information of the backup.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.EncryptionInfoOrBuilder getEncryptionInfoOrBuilder() { + if (encryptionInfoBuilder_ != null) { + return encryptionInfoBuilder_.getMessageOrBuilder(); + } else { + return encryptionInfo_ == null + ? com.google.cloud.redis.cluster.v1.EncryptionInfo.getDefaultInstance() + : encryptionInfo_; + } + } + /** + * + * + *
    +     * Output only. Encryption information of the backup.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.EncryptionInfo, + com.google.cloud.redis.cluster.v1.EncryptionInfo.Builder, + com.google.cloud.redis.cluster.v1.EncryptionInfoOrBuilder> + getEncryptionInfoFieldBuilder() { + if (encryptionInfoBuilder_ == null) { + encryptionInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.EncryptionInfo, + com.google.cloud.redis.cluster.v1.EncryptionInfo.Builder, + com.google.cloud.redis.cluster.v1.EncryptionInfoOrBuilder>( + getEncryptionInfo(), getParentForChildren(), isClean()); + encryptionInfo_ = null; + } + return encryptionInfoBuilder_; + } + + private java.lang.Object uid_ = ""; + /** + * + * + *
    +     * Output only. System assigned unique identifier of the backup.
    +     * 
    + * + * + * string uid = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Output only. System assigned unique identifier of the backup.
    +     * 
    + * + * + * string uid = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Output only. System assigned unique identifier of the backup.
    +     * 
    + * + * + * string uid = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uid_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. System assigned unique identifier of the backup.
    +     * 
    + * + * + * string uid = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. System assigned unique identifier of the backup.
    +     * 
    + * + * + * string uid = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; + bitField0_ |= 0x00004000; + 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.redis.cluster.v1.Backup) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.Backup) + private static final com.google.cloud.redis.cluster.v1.Backup DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.Backup(); + } + + public static com.google.cloud.redis.cluster.v1.Backup getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Backup parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.Backup getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/BackupClusterRequest.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/BackupClusterRequest.java new file mode 100644 index 000000000000..42983b82eb3b --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/BackupClusterRequest.java @@ -0,0 +1,1162 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
    + * Request for [BackupCluster].
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.BackupClusterRequest} + */ +public final class BackupClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.BackupClusterRequest) + BackupClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use BackupClusterRequest.newBuilder() to construct. + private BackupClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BackupClusterRequest() { + name_ = ""; + backupId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BackupClusterRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_BackupClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_BackupClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.BackupClusterRequest.class, + com.google.cloud.redis.cluster.v1.BackupClusterRequest.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Required. Redis cluster resource name using the form:
    +   *  `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +   * where `location_id` refers to a GCP region.
    +   * 
    + * + * + * 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. Redis cluster resource name using the form:
    +   *  `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +   * where `location_id` refers to a GCP region.
    +   * 
    + * + * + * 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 TTL_FIELD_NUMBER = 2; + private com.google.protobuf.Duration ttl_; + /** + * + * + *
    +   * Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
    +   * If not specified, the default value is 100 years.
    +   * 
    + * + * .google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the ttl field is set. + */ + @java.lang.Override + public boolean hasTtl() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
    +   * If not specified, the default value is 100 years.
    +   * 
    + * + * .google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ttl. + */ + @java.lang.Override + public com.google.protobuf.Duration getTtl() { + return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_; + } + /** + * + * + *
    +   * Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
    +   * If not specified, the default value is 100 years.
    +   * 
    + * + * .google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { + return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_; + } + + public static final int BACKUP_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object backupId_ = ""; + /** + * + * + *
    +   * Optional. The id of the backup to be created. If not specified, the
    +   * default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.
    +   * 
    + * + * optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the backupId field is set. + */ + @java.lang.Override + public boolean hasBackupId() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +   * Optional. The id of the backup to be created. If not specified, the
    +   * default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.
    +   * 
    + * + * optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The backupId. + */ + @java.lang.Override + public java.lang.String getBackupId() { + java.lang.Object ref = backupId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backupId_ = s; + return s; + } + } + /** + * + * + *
    +   * Optional. The id of the backup to be created. If not specified, the
    +   * default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.
    +   * 
    + * + * optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for backupId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBackupIdBytes() { + java.lang.Object ref = backupId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backupId_ = 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, getTtl()); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, backupId_); + } + 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, getTtl()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, backupId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1.BackupClusterRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.BackupClusterRequest other = + (com.google.cloud.redis.cluster.v1.BackupClusterRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (hasTtl() != other.hasTtl()) return false; + if (hasTtl()) { + if (!getTtl().equals(other.getTtl())) return false; + } + if (hasBackupId() != other.hasBackupId()) return false; + if (hasBackupId()) { + if (!getBackupId().equals(other.getBackupId())) return false; + } + if (!getUnknownFields().equals(other.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 (hasTtl()) { + hash = (37 * hash) + TTL_FIELD_NUMBER; + hash = (53 * hash) + getTtl().hashCode(); + } + if (hasBackupId()) { + hash = (37 * hash) + BACKUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getBackupId().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.BackupClusterRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.BackupClusterRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.BackupClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.BackupClusterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.BackupClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.BackupClusterRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.BackupClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.BackupClusterRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.BackupClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.BackupClusterRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.BackupClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.BackupClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1.BackupClusterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 [BackupCluster].
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.BackupClusterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.BackupClusterRequest) + com.google.cloud.redis.cluster.v1.BackupClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_BackupClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_BackupClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.BackupClusterRequest.class, + com.google.cloud.redis.cluster.v1.BackupClusterRequest.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.BackupClusterRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTtlFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + ttl_ = null; + if (ttlBuilder_ != null) { + ttlBuilder_.dispose(); + ttlBuilder_ = null; + } + backupId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_BackupClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.BackupClusterRequest getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.BackupClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.BackupClusterRequest build() { + com.google.cloud.redis.cluster.v1.BackupClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.BackupClusterRequest buildPartial() { + com.google.cloud.redis.cluster.v1.BackupClusterRequest result = + new com.google.cloud.redis.cluster.v1.BackupClusterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1.BackupClusterRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.ttl_ = ttlBuilder_ == null ? ttl_ : ttlBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.backupId_ = backupId_; + 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.redis.cluster.v1.BackupClusterRequest) { + return mergeFrom((com.google.cloud.redis.cluster.v1.BackupClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.BackupClusterRequest other) { + if (other == com.google.cloud.redis.cluster.v1.BackupClusterRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasTtl()) { + mergeTtl(other.getTtl()); + } + if (other.hasBackupId()) { + backupId_ = other.backupId_; + 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(getTtlFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + backupId_ = 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. Redis cluster resource name using the form:
    +     *  `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +     * where `location_id` refers to a GCP region.
    +     * 
    + * + * + * 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. Redis cluster resource name using the form:
    +     *  `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +     * where `location_id` refers to a GCP region.
    +     * 
    + * + * + * 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. Redis cluster resource name using the form:
    +     *  `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +     * where `location_id` refers to a GCP region.
    +     * 
    + * + * + * 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. Redis cluster resource name using the form:
    +     *  `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +     * where `location_id` refers to a GCP region.
    +     * 
    + * + * + * 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. Redis cluster resource name using the form:
    +     *  `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +     * where `location_id` refers to a GCP region.
    +     * 
    + * + * + * 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.Duration ttl_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + ttlBuilder_; + /** + * + * + *
    +     * Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
    +     * If not specified, the default value is 100 years.
    +     * 
    + * + * .google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the ttl field is set. + */ + public boolean hasTtl() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
    +     * If not specified, the default value is 100 years.
    +     * 
    + * + * .google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ttl. + */ + public com.google.protobuf.Duration getTtl() { + if (ttlBuilder_ == null) { + return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_; + } else { + return ttlBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
    +     * If not specified, the default value is 100 years.
    +     * 
    + * + * .google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setTtl(com.google.protobuf.Duration value) { + if (ttlBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ttl_ = value; + } else { + ttlBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
    +     * If not specified, the default value is 100 years.
    +     * 
    + * + * .google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) { + if (ttlBuilder_ == null) { + ttl_ = builderForValue.build(); + } else { + ttlBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
    +     * If not specified, the default value is 100 years.
    +     * 
    + * + * .google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeTtl(com.google.protobuf.Duration value) { + if (ttlBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && ttl_ != null + && ttl_ != com.google.protobuf.Duration.getDefaultInstance()) { + getTtlBuilder().mergeFrom(value); + } else { + ttl_ = value; + } + } else { + ttlBuilder_.mergeFrom(value); + } + if (ttl_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
    +     * If not specified, the default value is 100 years.
    +     * 
    + * + * .google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearTtl() { + bitField0_ = (bitField0_ & ~0x00000002); + ttl_ = null; + if (ttlBuilder_ != null) { + ttlBuilder_.dispose(); + ttlBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
    +     * If not specified, the default value is 100 years.
    +     * 
    + * + * .google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.Duration.Builder getTtlBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getTtlFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
    +     * If not specified, the default value is 100 years.
    +     * 
    + * + * .google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { + if (ttlBuilder_ != null) { + return ttlBuilder_.getMessageOrBuilder(); + } else { + return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_; + } + } + /** + * + * + *
    +     * Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
    +     * If not specified, the default value is 100 years.
    +     * 
    + * + * .google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getTtlFieldBuilder() { + if (ttlBuilder_ == null) { + ttlBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>(getTtl(), getParentForChildren(), isClean()); + ttl_ = null; + } + return ttlBuilder_; + } + + private java.lang.Object backupId_ = ""; + /** + * + * + *
    +     * Optional. The id of the backup to be created. If not specified, the
    +     * default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.
    +     * 
    + * + * optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the backupId field is set. + */ + public boolean hasBackupId() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +     * Optional. The id of the backup to be created. If not specified, the
    +     * default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.
    +     * 
    + * + * optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The backupId. + */ + public java.lang.String getBackupId() { + java.lang.Object ref = backupId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backupId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Optional. The id of the backup to be created. If not specified, the
    +     * default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.
    +     * 
    + * + * optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for backupId. + */ + public com.google.protobuf.ByteString getBackupIdBytes() { + java.lang.Object ref = backupId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Optional. The id of the backup to be created. If not specified, the
    +     * default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.
    +     * 
    + * + * optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The backupId to set. + * @return This builder for chaining. + */ + public Builder setBackupId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + backupId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The id of the backup to be created. If not specified, the
    +     * default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.
    +     * 
    + * + * optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearBackupId() { + backupId_ = getDefaultInstance().getBackupId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The id of the backup to be created. If not specified, the
    +     * default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.
    +     * 
    + * + * optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for backupId to set. + * @return This builder for chaining. + */ + public Builder setBackupIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + backupId_ = 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.redis.cluster.v1.BackupClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.BackupClusterRequest) + private static final com.google.cloud.redis.cluster.v1.BackupClusterRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.BackupClusterRequest(); + } + + public static com.google.cloud.redis.cluster.v1.BackupClusterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BackupClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.BackupClusterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/BackupClusterRequestOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/BackupClusterRequestOrBuilder.java new file mode 100644 index 000000000000..2fd73c24ebba --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/BackupClusterRequestOrBuilder.java @@ -0,0 +1,137 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +public interface BackupClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.BackupClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Redis cluster resource name using the form:
    +   *  `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +   * where `location_id` refers to a GCP region.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Required. Redis cluster resource name using the form:
    +   *  `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +   * where `location_id` refers to a GCP region.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
    +   * If not specified, the default value is 100 years.
    +   * 
    + * + * .google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the ttl field is set. + */ + boolean hasTtl(); + /** + * + * + *
    +   * Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
    +   * If not specified, the default value is 100 years.
    +   * 
    + * + * .google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ttl. + */ + com.google.protobuf.Duration getTtl(); + /** + * + * + *
    +   * Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
    +   * If not specified, the default value is 100 years.
    +   * 
    + * + * .google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.DurationOrBuilder getTtlOrBuilder(); + + /** + * + * + *
    +   * Optional. The id of the backup to be created. If not specified, the
    +   * default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.
    +   * 
    + * + * optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the backupId field is set. + */ + boolean hasBackupId(); + /** + * + * + *
    +   * Optional. The id of the backup to be created. If not specified, the
    +   * default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.
    +   * 
    + * + * optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The backupId. + */ + java.lang.String getBackupId(); + /** + * + * + *
    +   * Optional. The id of the backup to be created. If not specified, the
    +   * default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.
    +   * 
    + * + * optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for backupId. + */ + com.google.protobuf.ByteString getBackupIdBytes(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/BackupCollection.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/BackupCollection.java new file mode 100644 index 000000000000..1e1236dc73c0 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/BackupCollection.java @@ -0,0 +1,1430 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
    + * BackupCollection of a cluster.
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.BackupCollection} + */ +public final class BackupCollection extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.BackupCollection) + BackupCollectionOrBuilder { + private static final long serialVersionUID = 0L; + // Use BackupCollection.newBuilder() to construct. + private BackupCollection(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BackupCollection() { + name_ = ""; + clusterUid_ = ""; + cluster_ = ""; + kmsKey_ = ""; + uid_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BackupCollection(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_BackupCollection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_BackupCollection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.BackupCollection.class, + com.google.cloud.redis.cluster.v1.BackupCollection.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Identifier. Full resource path of the backup collection.
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + /** + * + * + *
    +   * Identifier. Full resource path of the backup collection.
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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 CLUSTER_UID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object clusterUid_ = ""; + /** + * + * + *
    +   * Output only. The cluster uid of the backup collection.
    +   * 
    + * + * + * string cluster_uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The clusterUid. + */ + @java.lang.Override + public java.lang.String getClusterUid() { + java.lang.Object ref = clusterUid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterUid_ = s; + return s; + } + } + /** + * + * + *
    +   * Output only. The cluster uid of the backup collection.
    +   * 
    + * + * + * string cluster_uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for clusterUid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterUidBytes() { + java.lang.Object ref = clusterUid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterUid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object cluster_ = ""; + /** + * + * + *
    +   * Output only. The full resource path of the cluster the backup collection
    +   * belongs to. Example:
    +   * projects/{project}/locations/{location}/clusters/{cluster}
    +   * 
    + * + * + * string cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The cluster. + */ + @java.lang.Override + public java.lang.String getCluster() { + java.lang.Object ref = cluster_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cluster_ = s; + return s; + } + } + /** + * + * + *
    +   * Output only. The full resource path of the cluster the backup collection
    +   * belongs to. Example:
    +   * projects/{project}/locations/{location}/clusters/{cluster}
    +   * 
    + * + * + * string cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cluster. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterBytes() { + java.lang.Object ref = cluster_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KMS_KEY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object kmsKey_ = ""; + /** + * + * + *
    +   * Output only. The KMS key used to encrypt the backups under this backup
    +   * collection.
    +   * 
    + * + * + * string kms_key = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The kmsKey. + */ + @java.lang.Override + public java.lang.String getKmsKey() { + java.lang.Object ref = kmsKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKey_ = s; + return s; + } + } + /** + * + * + *
    +   * Output only. The KMS key used to encrypt the backups under this backup
    +   * collection.
    +   * 
    + * + * + * string kms_key = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for kmsKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKmsKeyBytes() { + java.lang.Object ref = kmsKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UID_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + /** + * + * + *
    +   * Output only. System assigned unique identifier of the backup collection.
    +   * 
    + * + * + * string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } + } + /** + * + * + *
    +   * Output only. System assigned unique identifier of the backup collection.
    +   * 
    + * + * + * string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = 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(clusterUid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterUid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cluster_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, cluster_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, kmsKey_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, uid_); + } + 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(clusterUid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterUid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cluster_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, cluster_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKey_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, kmsKey_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, uid_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1.BackupCollection)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.BackupCollection other = + (com.google.cloud.redis.cluster.v1.BackupCollection) obj; + + if (!getName().equals(other.getName())) return false; + if (!getClusterUid().equals(other.getClusterUid())) return false; + if (!getCluster().equals(other.getCluster())) return false; + if (!getKmsKey().equals(other.getKmsKey())) return false; + if (!getUid().equals(other.getUid())) return false; + if (!getUnknownFields().equals(other.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) + CLUSTER_UID_FIELD_NUMBER; + hash = (53 * hash) + getClusterUid().hashCode(); + hash = (37 * hash) + CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getCluster().hashCode(); + hash = (37 * hash) + KMS_KEY_FIELD_NUMBER; + hash = (53 * hash) + getKmsKey().hashCode(); + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.BackupCollection parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.BackupCollection parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.BackupCollection parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.BackupCollection parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.BackupCollection parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.BackupCollection parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.BackupCollection parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.BackupCollection parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.BackupCollection parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.BackupCollection parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.BackupCollection parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.BackupCollection parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.redis.cluster.v1.BackupCollection prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * BackupCollection of a cluster.
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.BackupCollection} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.BackupCollection) + com.google.cloud.redis.cluster.v1.BackupCollectionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_BackupCollection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_BackupCollection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.BackupCollection.class, + com.google.cloud.redis.cluster.v1.BackupCollection.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.BackupCollection.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + clusterUid_ = ""; + cluster_ = ""; + kmsKey_ = ""; + uid_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_BackupCollection_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.BackupCollection getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.BackupCollection.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.BackupCollection build() { + com.google.cloud.redis.cluster.v1.BackupCollection result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.BackupCollection buildPartial() { + com.google.cloud.redis.cluster.v1.BackupCollection result = + new com.google.cloud.redis.cluster.v1.BackupCollection(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1.BackupCollection result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.clusterUid_ = clusterUid_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.cluster_ = cluster_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.kmsKey_ = kmsKey_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.uid_ = uid_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.BackupCollection) { + return mergeFrom((com.google.cloud.redis.cluster.v1.BackupCollection) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.BackupCollection other) { + if (other == com.google.cloud.redis.cluster.v1.BackupCollection.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getClusterUid().isEmpty()) { + clusterUid_ = other.clusterUid_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getCluster().isEmpty()) { + cluster_ = other.cluster_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getKmsKey().isEmpty()) { + kmsKey_ = other.kmsKey_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + 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 26: + { + clusterUid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 34: + { + cluster_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + kmsKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + 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_ = ""; + /** + * + * + *
    +     * Identifier. Full resource path of the backup collection.
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + /** + * + * + *
    +     * Identifier. Full resource path of the backup collection.
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + /** + * + * + *
    +     * Identifier. Full resource path of the backup collection.
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + /** + * + * + *
    +     * Identifier. Full resource path of the backup collection.
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * Identifier. Full resource path of the backup collection.
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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 clusterUid_ = ""; + /** + * + * + *
    +     * Output only. The cluster uid of the backup collection.
    +     * 
    + * + * + * string cluster_uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The clusterUid. + */ + public java.lang.String getClusterUid() { + java.lang.Object ref = clusterUid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterUid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Output only. The cluster uid of the backup collection.
    +     * 
    + * + * + * string cluster_uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for clusterUid. + */ + public com.google.protobuf.ByteString getClusterUidBytes() { + java.lang.Object ref = clusterUid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterUid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Output only. The cluster uid of the backup collection.
    +     * 
    + * + * + * string cluster_uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The clusterUid to set. + * @return This builder for chaining. + */ + public Builder setClusterUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clusterUid_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The cluster uid of the backup collection.
    +     * 
    + * + * + * string cluster_uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearClusterUid() { + clusterUid_ = getDefaultInstance().getClusterUid(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The cluster uid of the backup collection.
    +     * 
    + * + * + * string cluster_uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for clusterUid to set. + * @return This builder for chaining. + */ + public Builder setClusterUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterUid_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object cluster_ = ""; + /** + * + * + *
    +     * Output only. The full resource path of the cluster the backup collection
    +     * belongs to. Example:
    +     * projects/{project}/locations/{location}/clusters/{cluster}
    +     * 
    + * + * + * string cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The cluster. + */ + public java.lang.String getCluster() { + java.lang.Object ref = cluster_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cluster_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Output only. The full resource path of the cluster the backup collection
    +     * belongs to. Example:
    +     * projects/{project}/locations/{location}/clusters/{cluster}
    +     * 
    + * + * + * string cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cluster. + */ + public com.google.protobuf.ByteString getClusterBytes() { + java.lang.Object ref = cluster_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Output only. The full resource path of the cluster the backup collection
    +     * belongs to. Example:
    +     * projects/{project}/locations/{location}/clusters/{cluster}
    +     * 
    + * + * + * string cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The cluster to set. + * @return This builder for chaining. + */ + public Builder setCluster(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cluster_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The full resource path of the cluster the backup collection
    +     * belongs to. Example:
    +     * projects/{project}/locations/{location}/clusters/{cluster}
    +     * 
    + * + * + * string cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCluster() { + cluster_ = getDefaultInstance().getCluster(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The full resource path of the cluster the backup collection
    +     * belongs to. Example:
    +     * projects/{project}/locations/{location}/clusters/{cluster}
    +     * 
    + * + * + * string cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for cluster to set. + * @return This builder for chaining. + */ + public Builder setClusterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cluster_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object kmsKey_ = ""; + /** + * + * + *
    +     * Output only. The KMS key used to encrypt the backups under this backup
    +     * collection.
    +     * 
    + * + * + * string kms_key = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The kmsKey. + */ + public java.lang.String getKmsKey() { + java.lang.Object ref = kmsKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Output only. The KMS key used to encrypt the backups under this backup
    +     * collection.
    +     * 
    + * + * + * string kms_key = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for kmsKey. + */ + public com.google.protobuf.ByteString getKmsKeyBytes() { + java.lang.Object ref = kmsKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Output only. The KMS key used to encrypt the backups under this backup
    +     * collection.
    +     * 
    + * + * + * string kms_key = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The kmsKey to set. + * @return This builder for chaining. + */ + public Builder setKmsKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kmsKey_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The KMS key used to encrypt the backups under this backup
    +     * collection.
    +     * 
    + * + * + * string kms_key = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearKmsKey() { + kmsKey_ = getDefaultInstance().getKmsKey(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The KMS key used to encrypt the backups under this backup
    +     * collection.
    +     * 
    + * + * + * string kms_key = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for kmsKey to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKey_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object uid_ = ""; + /** + * + * + *
    +     * Output only. System assigned unique identifier of the backup collection.
    +     * 
    + * + * + * string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Output only. System assigned unique identifier of the backup collection.
    +     * 
    + * + * + * string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Output only. System assigned unique identifier of the backup collection.
    +     * 
    + * + * + * string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uid_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. System assigned unique identifier of the backup collection.
    +     * 
    + * + * + * string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. System assigned unique identifier of the backup collection.
    +     * 
    + * + * + * string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = 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.redis.cluster.v1.BackupCollection) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.BackupCollection) + private static final com.google.cloud.redis.cluster.v1.BackupCollection DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.BackupCollection(); + } + + public static com.google.cloud.redis.cluster.v1.BackupCollection getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BackupCollection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.BackupCollection getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/BackupCollectionName.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/BackupCollectionName.java new file mode 100644 index 000000000000..938910a77cfb --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/BackupCollectionName.java @@ -0,0 +1,227 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.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 BackupCollectionName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_BACKUP_COLLECTION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/backupCollections/{backup_collection}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String backupCollection; + + @Deprecated + protected BackupCollectionName() { + project = null; + location = null; + backupCollection = null; + } + + private BackupCollectionName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + backupCollection = Preconditions.checkNotNull(builder.getBackupCollection()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getBackupCollection() { + return backupCollection; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static BackupCollectionName of(String project, String location, String backupCollection) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setBackupCollection(backupCollection) + .build(); + } + + public static String format(String project, String location, String backupCollection) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setBackupCollection(backupCollection) + .build() + .toString(); + } + + public static BackupCollectionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_BACKUP_COLLECTION.validatedMatch( + formattedString, "BackupCollectionName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("backup_collection")); + } + + 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 (BackupCollectionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_BACKUP_COLLECTION.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 (backupCollection != null) { + fieldMapBuilder.put("backup_collection", backupCollection); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_BACKUP_COLLECTION.instantiate( + "project", project, "location", location, "backup_collection", backupCollection); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + BackupCollectionName that = ((BackupCollectionName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.backupCollection, that.backupCollection); + } + 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(backupCollection); + return h; + } + + /** Builder for projects/{project}/locations/{location}/backupCollections/{backup_collection}. */ + public static class Builder { + private String project; + private String location; + private String backupCollection; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getBackupCollection() { + return backupCollection; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setBackupCollection(String backupCollection) { + this.backupCollection = backupCollection; + return this; + } + + private Builder(BackupCollectionName backupCollectionName) { + this.project = backupCollectionName.project; + this.location = backupCollectionName.location; + this.backupCollection = backupCollectionName.backupCollection; + } + + public BackupCollectionName build() { + return new BackupCollectionName(this); + } + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/BackupCollectionOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/BackupCollectionOrBuilder.java new file mode 100644 index 000000000000..f51a7e5c6320 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/BackupCollectionOrBuilder.java @@ -0,0 +1,173 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +public interface BackupCollectionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.BackupCollection) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Identifier. Full resource path of the backup collection.
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Identifier. Full resource path of the backup collection.
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Output only. The cluster uid of the backup collection.
    +   * 
    + * + * + * string cluster_uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The clusterUid. + */ + java.lang.String getClusterUid(); + /** + * + * + *
    +   * Output only. The cluster uid of the backup collection.
    +   * 
    + * + * + * string cluster_uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for clusterUid. + */ + com.google.protobuf.ByteString getClusterUidBytes(); + + /** + * + * + *
    +   * Output only. The full resource path of the cluster the backup collection
    +   * belongs to. Example:
    +   * projects/{project}/locations/{location}/clusters/{cluster}
    +   * 
    + * + * + * string cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The cluster. + */ + java.lang.String getCluster(); + /** + * + * + *
    +   * Output only. The full resource path of the cluster the backup collection
    +   * belongs to. Example:
    +   * projects/{project}/locations/{location}/clusters/{cluster}
    +   * 
    + * + * + * string cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cluster. + */ + com.google.protobuf.ByteString getClusterBytes(); + + /** + * + * + *
    +   * Output only. The KMS key used to encrypt the backups under this backup
    +   * collection.
    +   * 
    + * + * + * string kms_key = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The kmsKey. + */ + java.lang.String getKmsKey(); + /** + * + * + *
    +   * Output only. The KMS key used to encrypt the backups under this backup
    +   * collection.
    +   * 
    + * + * + * string kms_key = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for kmsKey. + */ + com.google.protobuf.ByteString getKmsKeyBytes(); + + /** + * + * + *
    +   * Output only. System assigned unique identifier of the backup collection.
    +   * 
    + * + * + * string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + java.lang.String getUid(); + /** + * + * + *
    +   * Output only. System assigned unique identifier of the backup collection.
    +   * 
    + * + * + * string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/BackupFile.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/BackupFile.java new file mode 100644 index 000000000000..7b771689f593 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/BackupFile.java @@ -0,0 +1,1013 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
    + * Backup is consisted of multiple backup files.
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.BackupFile} + */ +public final class BackupFile extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.BackupFile) + BackupFileOrBuilder { + private static final long serialVersionUID = 0L; + // Use BackupFile.newBuilder() to construct. + private BackupFile(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BackupFile() { + fileName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BackupFile(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_BackupFile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_BackupFile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.BackupFile.class, + com.google.cloud.redis.cluster.v1.BackupFile.Builder.class); + } + + private int bitField0_; + public static final int FILE_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object fileName_ = ""; + /** + * + * + *
    +   * Output only. e.g: <shard-id>.rdb
    +   * 
    + * + * string file_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The fileName. + */ + @java.lang.Override + public java.lang.String getFileName() { + java.lang.Object ref = fileName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fileName_ = s; + return s; + } + } + /** + * + * + *
    +   * Output only. e.g: <shard-id>.rdb
    +   * 
    + * + * string file_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for fileName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFileNameBytes() { + java.lang.Object ref = fileName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fileName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SIZE_BYTES_FIELD_NUMBER = 2; + private long sizeBytes_ = 0L; + /** + * + * + *
    +   * Output only. Size of the backup file in bytes.
    +   * 
    + * + * int64 size_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sizeBytes. + */ + @java.lang.Override + public long getSizeBytes() { + return sizeBytes_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
    +   * Output only. The time when the backup file was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 3 [(.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. The time when the backup file was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 3 [(.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. The time when the backup file was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fileName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fileName_); + } + if (sizeBytes_ != 0L) { + output.writeInt64(2, sizeBytes_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + 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(fileName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fileName_); + } + if (sizeBytes_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, sizeBytes_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1.BackupFile)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.BackupFile other = + (com.google.cloud.redis.cluster.v1.BackupFile) obj; + + if (!getFileName().equals(other.getFileName())) return false; + if (getSizeBytes() != other.getSizeBytes()) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FILE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFileName().hashCode(); + hash = (37 * hash) + SIZE_BYTES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSizeBytes()); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.BackupFile parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.BackupFile parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.BackupFile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.BackupFile parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.BackupFile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.BackupFile parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.BackupFile parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.BackupFile parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.BackupFile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.BackupFile parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.BackupFile parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.BackupFile parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.redis.cluster.v1.BackupFile prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Backup is consisted of multiple backup files.
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.BackupFile} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.BackupFile) + com.google.cloud.redis.cluster.v1.BackupFileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_BackupFile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_BackupFile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.BackupFile.class, + com.google.cloud.redis.cluster.v1.BackupFile.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.BackupFile.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + fileName_ = ""; + sizeBytes_ = 0L; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_BackupFile_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.BackupFile getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.BackupFile.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.BackupFile build() { + com.google.cloud.redis.cluster.v1.BackupFile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.BackupFile buildPartial() { + com.google.cloud.redis.cluster.v1.BackupFile result = + new com.google.cloud.redis.cluster.v1.BackupFile(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1.BackupFile result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.fileName_ = fileName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sizeBytes_ = sizeBytes_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.BackupFile) { + return mergeFrom((com.google.cloud.redis.cluster.v1.BackupFile) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.BackupFile other) { + if (other == com.google.cloud.redis.cluster.v1.BackupFile.getDefaultInstance()) return this; + if (!other.getFileName().isEmpty()) { + fileName_ = other.fileName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getSizeBytes() != 0L) { + setSizeBytes(other.getSizeBytes()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + fileName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + sizeBytes_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage(getCreateTimeFieldBuilder().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 fileName_ = ""; + /** + * + * + *
    +     * Output only. e.g: <shard-id>.rdb
    +     * 
    + * + * string file_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The fileName. + */ + public java.lang.String getFileName() { + java.lang.Object ref = fileName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fileName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Output only. e.g: <shard-id>.rdb
    +     * 
    + * + * string file_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for fileName. + */ + public com.google.protobuf.ByteString getFileNameBytes() { + java.lang.Object ref = fileName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fileName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Output only. e.g: <shard-id>.rdb
    +     * 
    + * + * string file_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The fileName to set. + * @return This builder for chaining. + */ + public Builder setFileName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + fileName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. e.g: <shard-id>.rdb
    +     * 
    + * + * string file_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearFileName() { + fileName_ = getDefaultInstance().getFileName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. e.g: <shard-id>.rdb
    +     * 
    + * + * string file_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for fileName to set. + * @return This builder for chaining. + */ + public Builder setFileNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fileName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private long sizeBytes_; + /** + * + * + *
    +     * Output only. Size of the backup file in bytes.
    +     * 
    + * + * int64 size_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sizeBytes. + */ + @java.lang.Override + public long getSizeBytes() { + return sizeBytes_; + } + /** + * + * + *
    +     * Output only. Size of the backup file in bytes.
    +     * 
    + * + * int64 size_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The sizeBytes to set. + * @return This builder for chaining. + */ + public Builder setSizeBytes(long value) { + + sizeBytes_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Size of the backup file in bytes.
    +     * 
    + * + * int64 size_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSizeBytes() { + bitField0_ = (bitField0_ & ~0x00000002); + sizeBytes_ = 0L; + 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. The time when the backup file was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +     * Output only. The time when the backup file was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.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. The time when the backup file was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.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_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The time when the backup file was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.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_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The time when the backup file was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Output only. The time when the backup file was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The time when the backup file was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Output only. The time when the backup file was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.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. The time when the backup file was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.BackupFile) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.BackupFile) + private static final com.google.cloud.redis.cluster.v1.BackupFile DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.BackupFile(); + } + + public static com.google.cloud.redis.cluster.v1.BackupFile getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BackupFile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.BackupFile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/BackupFileOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/BackupFileOrBuilder.java new file mode 100644 index 000000000000..7d38fa2b0336 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/BackupFileOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +public interface BackupFileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.BackupFile) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Output only. e.g: <shard-id>.rdb
    +   * 
    + * + * string file_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The fileName. + */ + java.lang.String getFileName(); + /** + * + * + *
    +   * Output only. e.g: <shard-id>.rdb
    +   * 
    + * + * string file_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for fileName. + */ + com.google.protobuf.ByteString getFileNameBytes(); + + /** + * + * + *
    +   * Output only. Size of the backup file in bytes.
    +   * 
    + * + * int64 size_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sizeBytes. + */ + long getSizeBytes(); + + /** + * + * + *
    +   * Output only. The time when the backup file was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
    +   * Output only. The time when the backup file was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
    +   * Output only. The time when the backup file was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/BackupName.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/BackupName.java new file mode 100644 index 000000000000..3fa09e296a3f --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/BackupName.java @@ -0,0 +1,269 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.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 BackupName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_BACKUP_COLLECTION_BACKUP = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/backupCollections/{backup_collection}/backups/{backup}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String backupCollection; + private final String backup; + + @Deprecated + protected BackupName() { + project = null; + location = null; + backupCollection = null; + backup = null; + } + + private BackupName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + backupCollection = Preconditions.checkNotNull(builder.getBackupCollection()); + backup = Preconditions.checkNotNull(builder.getBackup()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getBackupCollection() { + return backupCollection; + } + + public String getBackup() { + return backup; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static BackupName of( + String project, String location, String backupCollection, String backup) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setBackupCollection(backupCollection) + .setBackup(backup) + .build(); + } + + public static String format( + String project, String location, String backupCollection, String backup) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setBackupCollection(backupCollection) + .setBackup(backup) + .build() + .toString(); + } + + public static BackupName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_BACKUP_COLLECTION_BACKUP.validatedMatch( + formattedString, "BackupName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("backup_collection"), + matchMap.get("backup")); + } + + 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 (BackupName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_BACKUP_COLLECTION_BACKUP.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 (backupCollection != null) { + fieldMapBuilder.put("backup_collection", backupCollection); + } + if (backup != null) { + fieldMapBuilder.put("backup", backup); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_BACKUP_COLLECTION_BACKUP.instantiate( + "project", + project, + "location", + location, + "backup_collection", + backupCollection, + "backup", + backup); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + BackupName that = ((BackupName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.backupCollection, that.backupCollection) + && Objects.equals(this.backup, that.backup); + } + 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(backupCollection); + h *= 1000003; + h ^= Objects.hashCode(backup); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/backupCollections/{backup_collection}/backups/{backup}. + */ + public static class Builder { + private String project; + private String location; + private String backupCollection; + private String backup; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getBackupCollection() { + return backupCollection; + } + + public String getBackup() { + return backup; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setBackupCollection(String backupCollection) { + this.backupCollection = backupCollection; + return this; + } + + public Builder setBackup(String backup) { + this.backup = backup; + return this; + } + + private Builder(BackupName backupName) { + this.project = backupName.project; + this.location = backupName.location; + this.backupCollection = backupName.backupCollection; + this.backup = backupName.backup; + } + + public BackupName build() { + return new BackupName(this); + } + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/BackupOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/BackupOrBuilder.java new file mode 100644 index 000000000000..0b126b4d846a --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/BackupOrBuilder.java @@ -0,0 +1,474 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +public interface BackupOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.Backup) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Identifier. Full resource path of the backup. the last part of the name is
    +   * the backup id with the following format: [YYYYMMDDHHMMSS]_[Shorted Cluster
    +   * UID] OR customer specified while backup cluster. Example:
    +   * 20240515123000_1234
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Identifier. Full resource path of the backup. the last part of the name is
    +   * the backup id with the following format: [YYYYMMDDHHMMSS]_[Shorted Cluster
    +   * UID] OR customer specified while backup cluster. Example:
    +   * 20240515123000_1234
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Output only. The time when the backup was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
    +   * Output only. The time when the backup was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
    +   * Output only. The time when the backup was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
    +   * Output only. Cluster resource path of this backup.
    +   * 
    + * + * + * string cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The cluster. + */ + java.lang.String getCluster(); + /** + * + * + *
    +   * Output only. Cluster resource path of this backup.
    +   * 
    + * + * + * string cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cluster. + */ + com.google.protobuf.ByteString getClusterBytes(); + + /** + * + * + *
    +   * Output only. Cluster uid of this backup.
    +   * 
    + * + * + * string cluster_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The clusterUid. + */ + java.lang.String getClusterUid(); + /** + * + * + *
    +   * Output only. Cluster uid of this backup.
    +   * 
    + * + * + * string cluster_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for clusterUid. + */ + com.google.protobuf.ByteString getClusterUidBytes(); + + /** + * + * + *
    +   * Output only. Total size of the backup in bytes.
    +   * 
    + * + * int64 total_size_bytes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The totalSizeBytes. + */ + long getTotalSizeBytes(); + + /** + * + * + *
    +   * Output only. The time when the backup will expire.
    +   * 
    + * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the expireTime field is set. + */ + boolean hasExpireTime(); + /** + * + * + *
    +   * Output only. The time when the backup will expire.
    +   * 
    + * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The expireTime. + */ + com.google.protobuf.Timestamp getExpireTime(); + /** + * + * + *
    +   * Output only. The time when the backup will expire.
    +   * 
    + * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); + + /** + * + * + *
    +   * Output only. redis-7.2, valkey-7.5
    +   * 
    + * + * string engine_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The engineVersion. + */ + java.lang.String getEngineVersion(); + /** + * + * + *
    +   * Output only. redis-7.2, valkey-7.5
    +   * 
    + * + * string engine_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for engineVersion. + */ + com.google.protobuf.ByteString getEngineVersionBytes(); + + /** + * + * + *
    +   * Output only. List of backup files of the backup.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getBackupFilesList(); + /** + * + * + *
    +   * Output only. List of backup files of the backup.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.redis.cluster.v1.BackupFile getBackupFiles(int index); + /** + * + * + *
    +   * Output only. List of backup files of the backup.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getBackupFilesCount(); + /** + * + * + *
    +   * Output only. List of backup files of the backup.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getBackupFilesOrBuilderList(); + /** + * + * + *
    +   * Output only. List of backup files of the backup.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.redis.cluster.v1.BackupFileOrBuilder getBackupFilesOrBuilder(int index); + + /** + * + * + *
    +   * Output only. Node type of the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.NodeType node_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for nodeType. + */ + int getNodeTypeValue(); + /** + * + * + *
    +   * Output only. Node type of the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.NodeType node_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The nodeType. + */ + com.google.cloud.redis.cluster.v1.NodeType getNodeType(); + + /** + * + * + *
    +   * Output only. Number of replicas for the cluster.
    +   * 
    + * + * int32 replica_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The replicaCount. + */ + int getReplicaCount(); + + /** + * + * + *
    +   * Output only. Number of shards for the cluster.
    +   * 
    + * + * int32 shard_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The shardCount. + */ + int getShardCount(); + + /** + * + * + *
    +   * Output only. Type of the backup.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.Backup.BackupType backup_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for backupType. + */ + int getBackupTypeValue(); + /** + * + * + *
    +   * Output only. Type of the backup.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.Backup.BackupType backup_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The backupType. + */ + com.google.cloud.redis.cluster.v1.Backup.BackupType getBackupType(); + + /** + * + * + *
    +   * Output only. State of the backup.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.Backup.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
    +   * Output only. State of the backup.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.Backup.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.redis.cluster.v1.Backup.State getState(); + + /** + * + * + *
    +   * Output only. Encryption information of the backup.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the encryptionInfo field is set. + */ + boolean hasEncryptionInfo(); + /** + * + * + *
    +   * Output only. Encryption information of the backup.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The encryptionInfo. + */ + com.google.cloud.redis.cluster.v1.EncryptionInfo getEncryptionInfo(); + /** + * + * + *
    +   * Output only. Encryption information of the backup.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.redis.cluster.v1.EncryptionInfoOrBuilder getEncryptionInfoOrBuilder(); + + /** + * + * + *
    +   * Output only. System assigned unique identifier of the backup.
    +   * 
    + * + * + * string uid = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + java.lang.String getUid(); + /** + * + * + *
    +   * Output only. System assigned unique identifier of the backup.
    +   * 
    + * + * + * string uid = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterProto.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterProto.java index f278cf15688f..ccce6789db86 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterProto.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterProto.java @@ -56,6 +56,42 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_redis_cluster_v1_GetClusterCertificateAuthorityRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_redis_cluster_v1_GetClusterCertificateAuthorityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_ListBackupCollectionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_ListBackupCollectionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_ListBackupCollectionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_ListBackupCollectionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_GetBackupCollectionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_GetBackupCollectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_ListBackupsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_ListBackupsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_ListBackupsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_ListBackupsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_GetBackupRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_GetBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_DeleteBackupRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_DeleteBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_ExportBackupRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_ExportBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_BackupClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_BackupClusterRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_redis_cluster_v1_Cluster_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -68,10 +104,66 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_redis_cluster_v1_Cluster_StateInfo_UpdateInfo_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_redis_cluster_v1_Cluster_StateInfo_UpdateInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_Cluster_GcsBackupSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_Cluster_GcsBackupSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_Cluster_ManagedBackupSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_Cluster_ManagedBackupSource_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_redis_cluster_v1_Cluster_RedisConfigsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_redis_cluster_v1_Cluster_RedisConfigsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_AutomatedBackupConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_AutomatedBackupConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_AutomatedBackupConfig_FixedFrequencySchedule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_AutomatedBackupConfig_FixedFrequencySchedule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_BackupCollection_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_BackupCollection_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_Backup_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_Backup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_BackupFile_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_BackupFile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_PscServiceAttachment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_PscServiceAttachment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_CrossClusterReplicationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_CrossClusterReplicationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_CrossClusterReplicationConfig_RemoteCluster_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_CrossClusterReplicationConfig_RemoteCluster_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_CrossClusterReplicationConfig_Membership_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_CrossClusterReplicationConfig_Membership_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_ClusterMaintenancePolicy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_ClusterMaintenancePolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_ClusterWeeklyMaintenanceWindow_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_ClusterWeeklyMaintenanceWindow_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_ClusterMaintenanceSchedule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_ClusterMaintenanceSchedule_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_redis_cluster_v1_PscConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -84,6 +176,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_redis_cluster_v1_PscConnection_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_redis_cluster_v1_PscConnection_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_ClusterEndpoint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_ClusterEndpoint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_ConnectionDetail_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_ConnectionDetail_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_PscAutoConnection_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_PscAutoConnection_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_redis_cluster_v1_OperationMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -116,6 +220,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_redis_cluster_v1_ZoneDistributionConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_redis_cluster_v1_ZoneDistributionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_RescheduleClusterMaintenanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_RescheduleClusterMaintenanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_EncryptionInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_EncryptionInfo_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -129,179 +241,446 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "dis_cluster.proto\022\035google.cloud.redis.cl" + "uster.v1\032\034google/api/annotations.proto\032\027" + "google/api/client.proto\032\037google/api/fiel" - + "d_behavior.proto\032\031google/api/resource.pr" - + "oto\032#google/longrunning/operations.proto" - + "\032\031google/protobuf/any.proto\032\033google/prot" - + "obuf/empty.proto\032 google/protobuf/field_" - + "mask.proto\032\037google/protobuf/timestamp.pr" - + "oto\"\274\001\n\024CreateClusterRequest\0229\n\006parent\030\001" - + " \001(\tB)\340A\002\372A#\n!locations.googleapis.com/L" - + "ocation\022\027\n\ncluster_id\030\002 \001(\tB\003\340A\002\022<\n\007clus" - + "ter\030\003 \001(\0132&.google.cloud.redis.cluster.v" - + "1.ClusterB\003\340A\002\022\022\n\nrequest_id\030\004 \001(\t\"w\n\023Li" - + "stClustersRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A" - + "#\n!locations.googleapis.com/Location\022\021\n\t" - + "page_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"~\n\024L" - + "istClustersResponse\0228\n\010clusters\030\001 \003(\0132&." - + "google.cloud.redis.cluster.v1.Cluster\022\027\n" - + "\017next_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 " - + "\003(\t\"\236\001\n\024UpdateClusterRequest\0224\n\013update_m" - + "ask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340" - + "A\002\022<\n\007cluster\030\002 \001(\0132&.google.cloud.redis" - + ".cluster.v1.ClusterB\003\340A\002\022\022\n\nrequest_id\030\003" - + " \001(\t\"G\n\021GetClusterRequest\0222\n\004name\030\001 \001(\tB" - + "$\340A\002\372A\036\n\034redis.googleapis.com/Cluster\"^\n" - + "\024DeleteClusterRequest\0222\n\004name\030\001 \001(\tB$\340A\002" - + "\372A\036\n\034redis.googleapis.com/Cluster\022\022\n\nreq" - + "uest_id\030\002 \001(\t\"h\n%GetClusterCertificateAu" - + "thorityRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)re" - + "dis.googleapis.com/CertificateAuthority\"" - + "\271\r\n\007Cluster\022\021\n\004name\030\001 \001(\tB\003\340A\002\0224\n\013create" - + "_time\030\003 \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\003\022@\n\005state\030\004 \001(\0162,.google.cloud.redis" - + ".cluster.v1.Cluster.StateB\003\340A\003\022\020\n\003uid\030\005 " - + "\001(\tB\003\340A\003\022\037\n\rreplica_count\030\010 \001(\005B\003\340A\001H\000\210\001" - + "\001\022Q\n\022authorization_mode\030\013 \001(\01620.google.c" - + "loud.redis.cluster.v1.AuthorizationModeB" - + "\003\340A\001\022Z\n\027transit_encryption_mode\030\014 \001(\01624." - + "google.cloud.redis.cluster.v1.TransitEnc" - + "ryptionModeB\003\340A\001\022\031\n\007size_gb\030\r \001(\005B\003\340A\003H\001" - + "\210\001\001\022\035\n\013shard_count\030\016 \001(\005B\003\340A\002H\002\210\001\001\022B\n\013ps" - + "c_configs\030\017 \003(\0132(.google.cloud.redis.clu" - + "ster.v1.PscConfigB\003\340A\002\022R\n\023discovery_endp" - + "oints\030\020 \003(\01320.google.cloud.redis.cluster" - + ".v1.DiscoveryEndpointB\003\340A\003\022J\n\017psc_connec" - + "tions\030\021 \003(\0132,.google.cloud.redis.cluster" - + ".v1.PscConnectionB\003\340A\003\022I\n\nstate_info\030\022 \001" - + "(\01320.google.cloud.redis.cluster.v1.Clust" - + "er.StateInfoB\003\340A\003\022?\n\tnode_type\030\023 \001(\0162\'.g" - + "oogle.cloud.redis.cluster.v1.NodeTypeB\003\340" - + "A\001\022X\n\022persistence_config\030\024 \001(\01327.google." - + "cloud.redis.cluster.v1.ClusterPersistenc" - + "eConfigB\003\340A\001\022T\n\rredis_configs\030\025 \003(\01328.go" - + "ogle.cloud.redis.cluster.v1.Cluster.Redi" - + "sConfigsEntryB\003\340A\001\022!\n\017precise_size_gb\030\026 " - + "\001(\001B\003\340A\003H\003\210\001\001\022\\\n\030zone_distribution_confi" - + "g\030\027 \001(\01325.google.cloud.redis.cluster.v1." - + "ZoneDistributionConfigB\003\340A\001\022-\n\033deletion_" - + "protection_enabled\030\031 \001(\010B\003\340A\001H\004\210\001\001\032\352\001\n\tS" - + "tateInfo\022R\n\013update_info\030\001 \001(\0132;.google.c" - + "loud.redis.cluster.v1.Cluster.StateInfo." - + "UpdateInfoH\000\032\200\001\n\nUpdateInfo\022\037\n\022target_sh" - + "ard_count\030\001 \001(\005H\000\210\001\001\022!\n\024target_replica_c" - + "ount\030\002 \001(\005H\001\210\001\001B\025\n\023_target_shard_countB\027" - + "\n\025_target_replica_countB\006\n\004info\0323\n\021Redis" - + "ConfigsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" - + ":\0028\001\"T\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010" - + "CREATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010UPDATING\020\003\022\014\n\010" - + "DELETING\020\004:]\352AZ\n\034redis.googleapis.com/Cl" - + "uster\022:projects/{project}/locations/{loc" - + "ation}/clusters/{cluster}B\020\n\016_replica_co" - + "untB\n\n\010_size_gbB\016\n\014_shard_countB\022\n\020_prec" - + "ise_size_gbB\036\n\034_deletion_protection_enab" - + "led\"!\n\tPscConfig\022\024\n\007network\030\002 \001(\tB\003\340A\002\"\177" - + "\n\021DiscoveryEndpoint\022\024\n\007address\030\001 \001(\tB\003\340A" - + "\003\022\021\n\004port\030\002 \001(\005B\003\340A\003\022A\n\npsc_config\030\003 \001(\013" - + "2(.google.cloud.redis.cluster.v1.PscConf" - + "igB\003\340A\003\"\215\001\n\rPscConnection\022\036\n\021psc_connect" - + "ion_id\030\001 \001(\tB\003\340A\003\022\024\n\007address\030\002 \001(\tB\003\340A\003\022" - + "\034\n\017forwarding_rule\030\003 \001(\tB\003\340A\003\022\027\n\nproject" - + "_id\030\004 \001(\tB\003\340A\003\022\017\n\007network\030\005 \001(\t\"\200\002\n\021Oper" - + "ationMetadata\0224\n\013create_time\030\001 \001(\0132\032.goo" - + "gle.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\026requested" - + "_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030" - + "\007 \001(\tB\003\340A\003\"\325\003\n\024CertificateAuthority\022l\n\021m" - + "anaged_server_ca\030\001 \001(\0132O.google.cloud.re" - + "dis.cluster.v1.CertificateAuthority.Mana" - + "gedCertificateAuthorityH\000\022\021\n\004name\030\002 \001(\tB" - + "\003\340A\010\032\255\001\n\033ManagedCertificateAuthority\022k\n\010" - + "ca_certs\030\001 \003(\0132Y.google.cloud.redis.clus" - + "ter.v1.CertificateAuthority.ManagedCerti" - + "ficateAuthority.CertChain\032!\n\tCertChain\022\024" - + "\n\014certificates\030\001 \003(\t:\177\352A|\n)redis.googlea" - + "pis.com/CertificateAuthority\022Oprojects/{" - + "project}/locations/{location}/clusters/{" - + "cluster}/certificateAuthorityB\013\n\tserver_" - + "ca\"\207\007\n\030ClusterPersistenceConfig\022Z\n\004mode\030" - + "\001 \001(\0162G.google.cloud.redis.cluster.v1.Cl" - + "usterPersistenceConfig.PersistenceModeB\003" - + "\340A\001\022Z\n\nrdb_config\030\002 \001(\0132A.google.cloud.r" - + "edis.cluster.v1.ClusterPersistenceConfig" - + ".RDBConfigB\003\340A\001\022Z\n\naof_config\030\003 \001(\0132A.go" - + "ogle.cloud.redis.cluster.v1.ClusterPersi" - + "stenceConfig.AOFConfigB\003\340A\001\032\272\002\n\tRDBConfi" - + "g\022r\n\023rdb_snapshot_period\030\001 \001(\0162P.google." - + "cloud.redis.cluster.v1.ClusterPersistenc" - + "eConfig.RDBConfig.SnapshotPeriodB\003\340A\001\022@\n" - + "\027rdb_snapshot_start_time\030\002 \001(\0132\032.google." - + "protobuf.TimestampB\003\340A\001\"w\n\016SnapshotPerio" - + "d\022\037\n\033SNAPSHOT_PERIOD_UNSPECIFIED\020\000\022\014\n\010ON" - + "E_HOUR\020\001\022\r\n\tSIX_HOURS\020\002\022\020\n\014TWELVE_HOURS\020" - + "\003\022\025\n\021TWENTY_FOUR_HOURS\020\004\032\304\001\n\tAOFConfig\022h" - + "\n\014append_fsync\030\001 \001(\0162M.google.cloud.redi" - + "s.cluster.v1.ClusterPersistenceConfig.AO" - + "FConfig.AppendFsyncB\003\340A\001\"M\n\013AppendFsync\022" - + "\034\n\030APPEND_FSYNC_UNSPECIFIED\020\000\022\006\n\002NO\020\001\022\014\n" - + "\010EVERYSEC\020\002\022\n\n\006ALWAYS\020\003\"S\n\017PersistenceMo" - + "de\022 \n\034PERSISTENCE_MODE_UNSPECIFIED\020\000\022\014\n\010" - + "DISABLED\020\001\022\007\n\003RDB\020\002\022\007\n\003AOF\020\003\"\353\001\n\026ZoneDis" - + "tributionConfig\022]\n\004mode\030\001 \001(\0162J.google.c" - + "loud.redis.cluster.v1.ZoneDistributionCo" - + "nfig.ZoneDistributionModeB\003\340A\001\022\021\n\004zone\030\002" - + " \001(\tB\003\340A\001\"_\n\024ZoneDistributionMode\022&\n\"ZON" - + "E_DISTRIBUTION_MODE_UNSPECIFIED\020\000\022\016\n\nMUL" - + "TI_ZONE\020\001\022\017\n\013SINGLE_ZONE\020\002*^\n\021Authorizat" - + "ionMode\022\031\n\025AUTH_MODE_UNSPECIFIED\020\000\022\026\n\022AU" - + "TH_MODE_IAM_AUTH\020\001\022\026\n\022AUTH_MODE_DISABLED" - + "\020\002*\217\001\n\010NodeType\022\031\n\025NODE_TYPE_UNSPECIFIED" - + "\020\000\022\032\n\026REDIS_SHARED_CORE_NANO\020\001\022\030\n\024REDIS_" - + "HIGHMEM_MEDIUM\020\002\022\030\n\024REDIS_HIGHMEM_XLARGE" - + "\020\003\022\030\n\024REDIS_STANDARD_SMALL\020\004*\231\001\n\025Transit" - + "EncryptionMode\022\'\n#TRANSIT_ENCRYPTION_MOD" - + "E_UNSPECIFIED\020\000\022$\n TRANSIT_ENCRYPTION_MO" - + "DE_DISABLED\020\001\0221\n-TRANSIT_ENCRYPTION_MODE" - + "_SERVER_AUTHENTICATION\020\0022\304\n\n\021CloudRedisC" - + "luster\022\266\001\n\014ListClusters\0222.google.cloud.r" - + "edis.cluster.v1.ListClustersRequest\0323.go" - + "ogle.cloud.redis.cluster.v1.ListClusters" - + "Response\"=\332A\006parent\202\323\344\223\002.\022,/v1/{parent=p" - + "rojects/*/locations/*}/clusters\022\243\001\n\nGetC" - + "luster\0220.google.cloud.redis.cluster.v1.G" - + "etClusterRequest\032&.google.cloud.redis.cl" - + "uster.v1.Cluster\";\332A\004name\202\323\344\223\002.\022,/v1/{na" - + "me=projects/*/locations/*/clusters/*}\022\341\001" - + "\n\rUpdateCluster\0223.google.cloud.redis.clu" - + "ster.v1.UpdateClusterRequest\032\035.google.lo" - + "ngrunning.Operation\"|\312A\036\n\007Cluster\022\023googl" - + "e.protobuf.Any\332A\023cluster,update_mask\202\323\344\223" - + "\002?24/v1/{cluster.name=projects/*/locatio" - + "ns/*/clusters/*}:\007cluster\022\317\001\n\rDeleteClus" - + "ter\0223.google.cloud.redis.cluster.v1.Dele" - + "teClusterRequest\032\035.google.longrunning.Op" - + "eration\"j\312A,\n\025google.protobuf.Empty\022\023goo" - + "gle.protobuf.Any\332A\004name\202\323\344\223\002.*,/v1/{name" - + "=projects/*/locations/*/clusters/*}\022\337\001\n\r" - + "CreateCluster\0223.google.cloud.redis.clust" - + "er.v1.CreateClusterRequest\032\035.google.long" - + "running.Operation\"z\312A\036\n\007Cluster\022\023google." - + "protobuf.Any\332A\031parent,cluster,cluster_id" - + "\202\323\344\223\0027\",/v1/{parent=projects/*/locations" - + "/*}/clusters:\007cluster\022\355\001\n\036GetClusterCert" - + "ificateAuthority\022D.google.cloud.redis.cl" - + "uster.v1.GetClusterCertificateAuthorityR" - + "equest\0323.google.cloud.redis.cluster.v1.C" - + "ertificateAuthority\"P\332A\004name\202\323\344\223\002C\022A/v1/" - + "{name=projects/*/locations/*/clusters/*/" - + "certificateAuthority}\032H\312A\024redis.googleap" - + "is.com\322A.https://www.googleapis.com/auth" - + "/cloud-platformB\236\001\n!com.google.cloud.red" - + "is.cluster.v1B\026CloudRedisClusterProtoP\001Z" - + ";cloud.google.com/go/redis/cluster/apiv1" - + "/clusterpb;clusterpb\352\002!Google::Cloud::Re" - + "dis::Cluster::V1b\006proto3" + + "d_behavior.proto\032\033google/api/field_info." + + "proto\032\031google/api/resource.proto\032#google" + + "/longrunning/operations.proto\032\031google/pr" + + "otobuf/any.proto\032\036google/protobuf/durati" + + "on.proto\032\033google/protobuf/empty.proto\032 g" + + "oogle/protobuf/field_mask.proto\032\037google/" + + "protobuf/timestamp.proto\032\033google/type/da" + + "yofweek.proto\032\033google/type/timeofday.pro" + + "to\"\274\001\n\024CreateClusterRequest\0229\n\006parent\030\001 " + + "\001(\tB)\340A\002\372A#\n!locations.googleapis.com/Lo" + + "cation\022\027\n\ncluster_id\030\002 \001(\tB\003\340A\002\022<\n\007clust" + + "er\030\003 \001(\0132&.google.cloud.redis.cluster.v1" + + ".ClusterB\003\340A\002\022\022\n\nrequest_id\030\004 \001(\t\"w\n\023Lis" + + "tClustersRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#" + + "\n!locations.googleapis.com/Location\022\021\n\tp" + + "age_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"~\n\024Li" + + "stClustersResponse\0228\n\010clusters\030\001 \003(\0132&.g" + + "oogle.cloud.redis.cluster.v1.Cluster\022\027\n\017" + + "next_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003" + + "(\t\"\236\001\n\024UpdateClusterRequest\0224\n\013update_ma" + + "sk\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A" + + "\002\022<\n\007cluster\030\002 \001(\0132&.google.cloud.redis." + + "cluster.v1.ClusterB\003\340A\002\022\022\n\nrequest_id\030\003 " + + "\001(\t\"G\n\021GetClusterRequest\0222\n\004name\030\001 \001(\tB$" + + "\340A\002\372A\036\n\034redis.googleapis.com/Cluster\"^\n\024" + + "DeleteClusterRequest\0222\n\004name\030\001 \001(\tB$\340A\002\372" + + "A\036\n\034redis.googleapis.com/Cluster\022\022\n\nrequ" + + "est_id\030\002 \001(\t\"h\n%GetClusterCertificateAut" + + "horityRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)red" + + "is.googleapis.com/CertificateAuthority\"\216" + + "\001\n\034ListBackupCollectionsRequest\022=\n\006paren" + + "t\030\001 \001(\tB-\340A\002\372A\'\022%redis.googleapis.com/Ba" + + "ckupCollection\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027" + + "\n\npage_token\030\003 \001(\tB\003\340A\001\"\232\001\n\035ListBackupCo" + + "llectionsResponse\022K\n\022backup_collections\030" + + "\001 \003(\0132/.google.cloud.redis.cluster.v1.Ba" + + "ckupCollection\022\027\n\017next_page_token\030\002 \001(\t\022" + + "\023\n\013unreachable\030\003 \003(\t\"Y\n\032GetBackupCollect" + + "ionRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%redis." + + "googleapis.com/BackupCollection\"z\n\022ListB" + + "ackupsRequest\0223\n\006parent\030\001 \001(\tB#\340A\002\372A\035\022\033r" + + "edis.googleapis.com/Backup\022\026\n\tpage_size\030" + + "\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"{\n\023L" + + "istBackupsResponse\0226\n\007backups\030\001 \003(\0132%.go" + + "ogle.cloud.redis.cluster.v1.Backup\022\027\n\017ne" + + "xt_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t" + + "\"E\n\020GetBackupRequest\0221\n\004name\030\001 \001(\tB#\340A\002\372" + + "A\035\n\033redis.googleapis.com/Backup\"i\n\023Delet" + + "eBackupRequest\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033re" + + "dis.googleapis.com/Backup\022\037\n\nrequest_id\030" + + "\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"m\n\023ExportBackupReques" + + "t\022\024\n\ngcs_bucket\030\003 \001(\tH\000\0221\n\004name\030\001 \001(\tB#\340" + + "A\002\372A\035\n\033redis.googleapis.com/BackupB\r\n\013de" + + "stination\"\242\001\n\024BackupClusterRequest\0222\n\004na" + + "me\030\001 \001(\tB$\340A\002\372A\036\n\034redis.googleapis.com/C" + + "luster\022+\n\003ttl\030\002 \001(\0132\031.google.protobuf.Du" + + "rationB\003\340A\001\022\033\n\tbackup_id\030\003 \001(\tB\003\340A\001H\000\210\001\001" + + "B\014\n\n_backup_id\"\320\026\n\007Cluster\022Q\n\ngcs_source" + + "\030\" \001(\01326.google.cloud.redis.cluster.v1.C" + + "luster.GcsBackupSourceB\003\340A\001H\000\022`\n\025managed" + + "_backup_source\030# \001(\0132:.google.cloud.redi" + + "s.cluster.v1.Cluster.ManagedBackupSource" + + "B\003\340A\001H\000\022\024\n\004name\030\001 \001(\tB\006\340A\002\340A\010\0224\n\013create_" + + "time\030\003 \001(\0132\032.google.protobuf.TimestampB\003" + + "\340A\003\022@\n\005state\030\004 \001(\0162,.google.cloud.redis." + + "cluster.v1.Cluster.StateB\003\340A\003\022\020\n\003uid\030\005 \001" + + "(\tB\003\340A\003\022\037\n\rreplica_count\030\010 \001(\005B\003\340A\001H\001\210\001\001" + + "\022Q\n\022authorization_mode\030\013 \001(\01620.google.cl" + + "oud.redis.cluster.v1.AuthorizationModeB\003" + + "\340A\001\022Z\n\027transit_encryption_mode\030\014 \001(\01624.g" + + "oogle.cloud.redis.cluster.v1.TransitEncr" + + "yptionModeB\003\340A\001\022\031\n\007size_gb\030\r \001(\005B\003\340A\003H\002\210" + + "\001\001\022\035\n\013shard_count\030\016 \001(\005B\003\340A\001H\003\210\001\001\022B\n\013psc" + + "_configs\030\017 \003(\0132(.google.cloud.redis.clus" + + "ter.v1.PscConfigB\003\340A\001\022R\n\023discovery_endpo" + + "ints\030\020 \003(\01320.google.cloud.redis.cluster." + + "v1.DiscoveryEndpointB\003\340A\003\022J\n\017psc_connect" + + "ions\030\021 \003(\0132,.google.cloud.redis.cluster." + + "v1.PscConnectionB\003\340A\003\022I\n\nstate_info\030\022 \001(" + + "\01320.google.cloud.redis.cluster.v1.Cluste" + + "r.StateInfoB\003\340A\003\022?\n\tnode_type\030\023 \001(\0162\'.go" + + "ogle.cloud.redis.cluster.v1.NodeTypeB\003\340A" + + "\001\022X\n\022persistence_config\030\024 \001(\01327.google.c" + + "loud.redis.cluster.v1.ClusterPersistence" + + "ConfigB\003\340A\001\022T\n\rredis_configs\030\025 \003(\01328.goo" + + "gle.cloud.redis.cluster.v1.Cluster.Redis" + + "ConfigsEntryB\003\340A\001\022!\n\017precise_size_gb\030\026 \001" + + "(\001B\003\340A\003H\004\210\001\001\022\\\n\030zone_distribution_config" + + "\030\027 \001(\01325.google.cloud.redis.cluster.v1.Z" + + "oneDistributionConfigB\003\340A\001\022k\n cross_clus" + + "ter_replication_config\030\030 \001(\0132<.google.cl" + + "oud.redis.cluster.v1.CrossClusterReplica" + + "tionConfigB\003\340A\001\022-\n\033deletion_protection_e" + + "nabled\030\031 \001(\010B\003\340A\001H\005\210\001\001\022]\n\022maintenance_po" + + "licy\030\032 \001(\01327.google.cloud.redis.cluster." + + "v1.ClusterMaintenancePolicyB\003\340A\001H\006\210\001\001\022a\n" + + "\024maintenance_schedule\030\033 \001(\01329.google.clo" + + "ud.redis.cluster.v1.ClusterMaintenanceSc" + + "heduleB\003\340A\003H\007\210\001\001\022Y\n\027psc_service_attachme" + + "nts\030\036 \003(\01323.google.cloud.redis.cluster.v" + + "1.PscServiceAttachmentB\003\340A\003\022N\n\021cluster_e" + + "ndpoints\030$ \003(\0132..google.cloud.redis.clus" + + "ter.v1.ClusterEndpointB\003\340A\001\022P\n\021backup_co" + + "llection\030\' \001(\tB0\340A\001\340A\003\372A\'\n%redis.googlea" + + "pis.com/BackupCollectionH\010\210\001\001\022?\n\007kms_key" + + "\030( \001(\tB)\340A\001\372A#\n!cloudkms.googleapis.com/" + + "CryptoKeyH\t\210\001\001\022Z\n\027automated_backup_confi" + + "g\030* \001(\01324.google.cloud.redis.cluster.v1." + + "AutomatedBackupConfigB\003\340A\001\022K\n\017encryption" + + "_info\030+ \001(\0132-.google.cloud.redis.cluster" + + ".v1.EncryptionInfoB\003\340A\003\032\352\001\n\tStateInfo\022R\n" + + "\013update_info\030\001 \001(\0132;.google.cloud.redis." + + "cluster.v1.Cluster.StateInfo.UpdateInfoH" + + "\000\032\200\001\n\nUpdateInfo\022\037\n\022target_shard_count\030\001" + + " \001(\005H\000\210\001\001\022!\n\024target_replica_count\030\002 \001(\005H" + + "\001\210\001\001B\025\n\023_target_shard_countB\027\n\025_target_r" + + "eplica_countB\006\n\004info\032$\n\017GcsBackupSource\022" + + "\021\n\004uris\030\001 \003(\tB\003\340A\001\032*\n\023ManagedBackupSourc" + + "e\022\023\n\006backup\030\001 \001(\tB\003\340A\001\0323\n\021RedisConfigsEn" + + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"T\n\005S" + + "tate\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020" + + "\001\022\n\n\006ACTIVE\020\002\022\014\n\010UPDATING\020\003\022\014\n\010DELETING\020" + + "\004:p\352Am\n\034redis.googleapis.com/Cluster\022:pr" + + "ojects/{project}/locations/{location}/cl" + + "usters/{cluster}*\010clusters2\007clusterB\020\n\016i" + + "mport_sourcesB\020\n\016_replica_countB\n\n\010_size" + + "_gbB\016\n\014_shard_countB\022\n\020_precise_size_gbB" + + "\036\n\034_deletion_protection_enabledB\025\n\023_main" + + "tenance_policyB\027\n\025_maintenance_scheduleB" + + "\024\n\022_backup_collectionB\n\n\010_kms_key\"\205\004\n\025Au" + + "tomatedBackupConfig\022t\n\030fixed_frequency_s" + + "chedule\030\002 \001(\0132K.google.cloud.redis.clust" + + "er.v1.AutomatedBackupConfig.FixedFrequen" + + "cyScheduleB\003\340A\001H\000\022l\n\025automated_backup_mo" + + "de\030\001 \001(\0162H.google.cloud.redis.cluster.v1" + + ".AutomatedBackupConfig.AutomatedBackupMo" + + "deB\003\340A\001\0226\n\tretention\030\003 \001(\0132\031.google.prot" + + "obuf.DurationB\003\340A\001H\001\210\001\001\032]\n\026FixedFrequenc" + + "ySchedule\0224\n\nstart_time\030\002 \001(\0132\026.google.t" + + "ype.TimeOfDayB\003\340A\002H\000\210\001\001B\r\n\013_start_time\"W" + + "\n\023AutomatedBackupMode\022%\n!AUTOMATED_BACKU" + + "P_MODE_UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\013\n\007EN" + + "ABLED\020\002B\n\n\010scheduleB\014\n\n_retention\"\366\002\n\020Ba" + + "ckupCollection\022\021\n\004name\030\001 \001(\tB\003\340A\010\022 \n\013clu" + + "ster_uid\030\003 \001(\tB\013\340A\003\342\214\317\327\010\002\010\001\0225\n\007cluster\030\004" + + " \001(\tB$\340A\003\372A\036\n\034redis.googleapis.com/Clust" + + "er\022:\n\007kms_key\030\005 \001(\tB)\340A\003\372A#\n!cloudkms.go" + + "ogleapis.com/CryptoKey\022\030\n\003uid\030\006 \001(\tB\013\340A\003" + + "\342\214\317\327\010\002\010\001:\237\001\352A\233\001\n%redis.googleapis.com/Ba" + + "ckupCollection\022Mprojects/{project}/locat" + + "ions/{location}/backupCollections/{backu" + + "p_collection}*\021backupCollections2\020backup" + + "Collection\"\202\010\n\006Backup\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\0225\n\007cluster\030\003 \001(\tB$\340A\003\372A\036\n" + + "\034redis.googleapis.com/Cluster\022 \n\013cluster" + + "_uid\030\004 \001(\tB\013\340A\003\342\214\317\327\010\002\010\001\022\035\n\020total_size_by" + + "tes\030\005 \001(\003B\003\340A\003\0224\n\013expire_time\030\006 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\022\033\n\016engine_v" + + "ersion\030\007 \001(\tB\003\340A\003\022D\n\014backup_files\030\010 \003(\0132" + + ").google.cloud.redis.cluster.v1.BackupFi" + + "leB\003\340A\003\022?\n\tnode_type\030\t \001(\0162\'.google.clou" + + "d.redis.cluster.v1.NodeTypeB\003\340A\003\022\032\n\rrepl" + + "ica_count\030\n \001(\005B\003\340A\003\022\030\n\013shard_count\030\013 \001(" + + "\005B\003\340A\003\022J\n\013backup_type\030\014 \001(\01620.google.clo" + + "ud.redis.cluster.v1.Backup.BackupTypeB\003\340" + + "A\003\022?\n\005state\030\r \001(\0162+.google.cloud.redis.c" + + "luster.v1.Backup.StateB\003\340A\003\022K\n\017encryptio" + + "n_info\030\016 \001(\0132-.google.cloud.redis.cluste" + + "r.v1.EncryptionInfoB\003\340A\003\022\030\n\003uid\030\017 \001(\tB\013\340" + + "A\003\342\214\317\327\010\002\010\001\"G\n\nBackupType\022\033\n\027BACKUP_TYPE_" + + "UNSPECIFIED\020\000\022\r\n\tON_DEMAND\020\001\022\r\n\tAUTOMATE" + + "D\020\002\"U\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010C" + + "REATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010DELETING\020\003\022\r\n\tS" + + "USPENDED\020\004:\222\001\352A\216\001\n\033redis.googleapis.com/" + + "Backup\022^projects/{project}/locations/{lo" + + "cation}/backupCollections/{backup_collec" + + "tion}/backups/{backup}*\007backups2\006backup\"" + + "s\n\nBackupFile\022\026\n\tfile_name\030\001 \001(\tB\003\340A\003\022\027\n" + + "\nsize_bytes\030\002 \001(\003B\003\340A\003\0224\n\013create_time\030\003 " + + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\"\204\001\n" + + "\024PscServiceAttachment\022\037\n\022service_attachm" + + "ent\030\001 \001(\tB\003\340A\003\022K\n\017connection_type\030\003 \001(\0162" + + "-.google.cloud.redis.cluster.v1.Connecti" + + "onTypeB\003\340A\003\"\364\006\n\035CrossClusterReplicationC" + + "onfig\022^\n\014cluster_role\030\001 \001(\0162H.google.clo" + + "ud.redis.cluster.v1.CrossClusterReplicat" + + "ionConfig.ClusterRole\022c\n\017primary_cluster" + + "\030\002 \001(\0132J.google.cloud.redis.cluster.v1.C" + + "rossClusterReplicationConfig.RemoteClust" + + "er\022f\n\022secondary_clusters\030\003 \003(\0132J.google." + + "cloud.redis.cluster.v1.CrossClusterRepli" + + "cationConfig.RemoteCluster\0224\n\013update_tim" + + "e\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\022`\n\nmembership\030\005 \001(\0132G.google.cloud.redi" + + "s.cluster.v1.CrossClusterReplicationConf" + + "ig.MembershipB\003\340A\003\032U\n\rRemoteCluster\0222\n\007c" + + "luster\030\001 \001(\tB!\372A\036\n\034redis.googleapis.com/" + + "Cluster\022\020\n\003uid\030\002 \001(\tB\003\340A\003\032\343\001\n\nMembership" + + "\022h\n\017primary_cluster\030\001 \001(\0132J.google.cloud" + + ".redis.cluster.v1.CrossClusterReplicatio" + + "nConfig.RemoteClusterB\003\340A\003\022k\n\022secondary_" + + "clusters\030\002 \003(\0132J.google.cloud.redis.clus" + + "ter.v1.CrossClusterReplicationConfig.Rem" + + "oteClusterB\003\340A\003\"Q\n\013ClusterRole\022\034\n\030CLUSTE" + + "R_ROLE_UNSPECIFIED\020\000\022\010\n\004NONE\020\001\022\013\n\007PRIMAR" + + "Y\020\002\022\r\n\tSECONDARY\020\003\"\350\001\n\030ClusterMaintenanc" + + "ePolicy\0224\n\013create_time\030\001 \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\003\0224\n\013update_time\030\002 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022`\n\031w" + + "eekly_maintenance_window\030\003 \003(\0132=.google." + + "cloud.redis.cluster.v1.ClusterWeeklyMain" + + "tenanceWindow\"q\n\036ClusterWeeklyMaintenanc" + + "eWindow\022#\n\003day\030\001 \001(\0162\026.google.type.DayOf" + + "Week\022*\n\nstart_time\030\002 \001(\0132\026.google.type.T" + + "imeOfDay\"\204\001\n\032ClusterMaintenanceSchedule\022" + + "3\n\nstart_time\030\001 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\"!\n\tPscConfig\022\024\n\007" + + "network\030\002 \001(\tB\003\340A\002\"\177\n\021DiscoveryEndpoint\022" + + "\024\n\007address\030\001 \001(\tB\003\340A\003\022\021\n\004port\030\002 \001(\005B\003\340A\003" + + "\022A\n\npsc_config\030\003 \001(\0132(.google.cloud.redi" + + "s.cluster.v1.PscConfigB\003\340A\003\"\332\003\n\rPscConne" + + "ction\022\036\n\021psc_connection_id\030\001 \001(\tB\003\340A\002\022\034\n" + + "\007address\030\002 \001(\tB\013\340A\002\342\214\317\327\010\002\010\002\022F\n\017forwardin" + + "g_rule\030\003 \001(\tB-\340A\002\372A\'\n%compute.googleapis" + + ".com/ForwardingRule\022\027\n\nproject_id\030\004 \001(\tB" + + "\003\340A\001\0227\n\007network\030\005 \001(\tB&\340A\002\372A \n\036compute.g" + + "oogleapis.com/Network\022L\n\022service_attachm" + + "ent\030\006 \001(\tB0\340A\002\372A*\n(compute.googleapis.co" + + "m/ServiceAttachment\022V\n\025psc_connection_st" + + "atus\030\010 \001(\01622.google.cloud.redis.cluster." + + "v1.PscConnectionStatusB\003\340A\003\022K\n\017connectio" + + "n_type\030\n \001(\0162-.google.cloud.redis.cluste" + + "r.v1.ConnectionTypeB\003\340A\003\"W\n\017ClusterEndpo" + + "int\022D\n\013connections\030\001 \003(\0132/.google.cloud." + + "redis.cluster.v1.ConnectionDetail\"\271\001\n\020Co" + + "nnectionDetail\022O\n\023psc_auto_connection\030\001 " + + "\001(\01320.google.cloud.redis.cluster.v1.PscA" + + "utoConnectionH\000\022F\n\016psc_connection\030\002 \001(\0132" + + ",.google.cloud.redis.cluster.v1.PscConne" + + "ctionH\000B\014\n\nconnection\"\336\003\n\021PscAutoConnect" + + "ion\022\036\n\021psc_connection_id\030\001 \001(\tB\003\340A\003\022\034\n\007a" + + "ddress\030\002 \001(\tB\013\340A\003\342\214\317\327\010\002\010\002\022F\n\017forwarding_" + + "rule\030\003 \001(\tB-\340A\003\372A\'\n%compute.googleapis.c" + + "om/ForwardingRule\022\027\n\nproject_id\030\004 \001(\tB\003\340" + + "A\002\0227\n\007network\030\005 \001(\tB&\340A\002\372A \n\036compute.goo" + + "gleapis.com/Network\022L\n\022service_attachmen" + + "t\030\006 \001(\tB0\340A\003\372A*\n(compute.googleapis.com/" + + "ServiceAttachment\022V\n\025psc_connection_stat" + + "us\030\010 \001(\01622.google.cloud.redis.cluster.v1" + + ".PscConnectionStatusB\003\340A\003\022K\n\017connection_" + + "type\030\t \001(\0162-.google.cloud.redis.cluster." + + "v1.ConnectionTypeB\003\340A\003\"\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" + + "\003\"\205\004\n\024CertificateAuthority\022l\n\021managed_se" + + "rver_ca\030\001 \001(\0132O.google.cloud.redis.clust" + + "er.v1.CertificateAuthority.ManagedCertif" + + "icateAuthorityH\000\022\021\n\004name\030\002 \001(\tB\003\340A\010\032\255\001\n\033" + + "ManagedCertificateAuthority\022k\n\010ca_certs\030" + + "\001 \003(\0132Y.google.cloud.redis.cluster.v1.Ce" + + "rtificateAuthority.ManagedCertificateAut" + + "hority.CertChain\032!\n\tCertChain\022\024\n\014certifi" + + "cates\030\001 \003(\t:\256\001\352A\252\001\n)redis.googleapis.com" + + "/CertificateAuthority\022Oprojects/{project" + + "}/locations/{location}/clusters/{cluster" + + "}/certificateAuthority*\026certificateAutho" + + "rities2\024certificateAuthorityB\013\n\tserver_c" + + "a\"\207\007\n\030ClusterPersistenceConfig\022Z\n\004mode\030\001" + + " \001(\0162G.google.cloud.redis.cluster.v1.Clu" + + "sterPersistenceConfig.PersistenceModeB\003\340" + + "A\001\022Z\n\nrdb_config\030\002 \001(\0132A.google.cloud.re" + + "dis.cluster.v1.ClusterPersistenceConfig." + + "RDBConfigB\003\340A\001\022Z\n\naof_config\030\003 \001(\0132A.goo" + + "gle.cloud.redis.cluster.v1.ClusterPersis" + + "tenceConfig.AOFConfigB\003\340A\001\032\272\002\n\tRDBConfig" + + "\022r\n\023rdb_snapshot_period\030\001 \001(\0162P.google.c" + + "loud.redis.cluster.v1.ClusterPersistence" + + "Config.RDBConfig.SnapshotPeriodB\003\340A\001\022@\n\027" + + "rdb_snapshot_start_time\030\002 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\001\"w\n\016SnapshotPeriod" + + "\022\037\n\033SNAPSHOT_PERIOD_UNSPECIFIED\020\000\022\014\n\010ONE" + + "_HOUR\020\001\022\r\n\tSIX_HOURS\020\002\022\020\n\014TWELVE_HOURS\020\003" + + "\022\025\n\021TWENTY_FOUR_HOURS\020\004\032\304\001\n\tAOFConfig\022h\n" + + "\014append_fsync\030\001 \001(\0162M.google.cloud.redis" + + ".cluster.v1.ClusterPersistenceConfig.AOF" + + "Config.AppendFsyncB\003\340A\001\"M\n\013AppendFsync\022\034" + + "\n\030APPEND_FSYNC_UNSPECIFIED\020\000\022\006\n\002NO\020\001\022\014\n\010" + + "EVERYSEC\020\002\022\n\n\006ALWAYS\020\003\"S\n\017PersistenceMod" + + "e\022 \n\034PERSISTENCE_MODE_UNSPECIFIED\020\000\022\014\n\010D" + + "ISABLED\020\001\022\007\n\003RDB\020\002\022\007\n\003AOF\020\003\"\353\001\n\026ZoneDist" + + "ributionConfig\022]\n\004mode\030\001 \001(\0162J.google.cl" + + "oud.redis.cluster.v1.ZoneDistributionCon" + + "fig.ZoneDistributionModeB\003\340A\001\022\021\n\004zone\030\002 " + + "\001(\tB\003\340A\001\"_\n\024ZoneDistributionMode\022&\n\"ZONE" + + "_DISTRIBUTION_MODE_UNSPECIFIED\020\000\022\016\n\nMULT" + + "I_ZONE\020\001\022\017\n\013SINGLE_ZONE\020\002\"\327\002\n#Reschedule" + + "ClusterMaintenanceRequest\0222\n\004name\030\001 \001(\tB" + + "$\340A\002\372A\036\n\034redis.googleapis.com/Cluster\022o\n" + + "\017reschedule_type\030\002 \001(\0162Q.google.cloud.re" + + "dis.cluster.v1.RescheduleClusterMaintena" + + "nceRequest.RescheduleTypeB\003\340A\002\0226\n\rschedu" + + "le_time\030\003 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\001\"S\n\016RescheduleType\022\037\n\033RESCHEDULE_T" + + "YPE_UNSPECIFIED\020\000\022\r\n\tIMMEDIATE\020\001\022\021\n\rSPEC" + + "IFIC_TIME\020\003\"\372\004\n\016EncryptionInfo\022P\n\017encryp" + + "tion_type\030\001 \001(\01622.google.cloud.redis.clu" + + "ster.v1.EncryptionInfo.TypeB\003\340A\003\022J\n\020kms_" + + "key_versions\030\002 \003(\tB0\340A\003\372A*\n(cloudkms.goo" + + "gleapis.com/CryptoKeyVersion\022]\n\025kms_key_" + + "primary_state\030\003 \001(\01629.google.cloud.redis" + + ".cluster.v1.EncryptionInfo.KmsKeyStateB\003" + + "\340A\003\0229\n\020last_update_time\030\004 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\"\\\n\004Type\022\024\n\020TYPE_U" + + "NSPECIFIED\020\000\022\035\n\031GOOGLE_DEFAULT_ENCRYPTIO" + + "N\020\001\022\037\n\033CUSTOMER_MANAGED_ENCRYPTION\020\002\"\321\001\n" + + "\013KmsKeyState\022\035\n\031KMS_KEY_STATE_UNSPECIFIE" + + "D\020\000\022\013\n\007ENABLED\020\001\022\025\n\021PERMISSION_DENIED\020\002\022" + + "\014\n\010DISABLED\020\003\022\r\n\tDESTROYED\020\004\022\025\n\021DESTROY_" + + "SCHEDULED\020\005\022 \n\034EKM_KEY_UNREACHABLE_DETEC" + + "TED\020\006\022\024\n\020BILLING_DISABLED\020\007\022\023\n\017UNKNOWN_F" + + "AILURE\020\010*\203\001\n\023PscConnectionStatus\022%\n!PSC_" + + "CONNECTION_STATUS_UNSPECIFIED\020\000\022 \n\034PSC_C" + + "ONNECTION_STATUS_ACTIVE\020\001\022#\n\037PSC_CONNECT" + + "ION_STATUS_NOT_FOUND\020\002*^\n\021AuthorizationM" + + "ode\022\031\n\025AUTH_MODE_UNSPECIFIED\020\000\022\026\n\022AUTH_M" + + "ODE_IAM_AUTH\020\001\022\026\n\022AUTH_MODE_DISABLED\020\002*\217" + + "\001\n\010NodeType\022\031\n\025NODE_TYPE_UNSPECIFIED\020\000\022\032" + + "\n\026REDIS_SHARED_CORE_NANO\020\001\022\030\n\024REDIS_HIGH" + + "MEM_MEDIUM\020\002\022\030\n\024REDIS_HIGHMEM_XLARGE\020\003\022\030" + + "\n\024REDIS_STANDARD_SMALL\020\004*\231\001\n\025TransitEncr" + + "yptionMode\022\'\n#TRANSIT_ENCRYPTION_MODE_UN" + + "SPECIFIED\020\000\022$\n TRANSIT_ENCRYPTION_MODE_D" + + "ISABLED\020\001\0221\n-TRANSIT_ENCRYPTION_MODE_SER" + + "VER_AUTHENTICATION\020\002*\211\001\n\016ConnectionType\022" + + "\037\n\033CONNECTION_TYPE_UNSPECIFIED\020\000\022\035\n\031CONN" + + "ECTION_TYPE_DISCOVERY\020\001\022\033\n\027CONNECTION_TY" + + "PE_PRIMARY\020\002\022\032\n\026CONNECTION_TYPE_READER\020\003" + + "2\223\030\n\021CloudRedisCluster\022\266\001\n\014ListClusters\022" + + "2.google.cloud.redis.cluster.v1.ListClus" + + "tersRequest\0323.google.cloud.redis.cluster" + + ".v1.ListClustersResponse\"=\332A\006parent\202\323\344\223\002" + + ".\022,/v1/{parent=projects/*/locations/*}/c" + + "lusters\022\243\001\n\nGetCluster\0220.google.cloud.re" + + "dis.cluster.v1.GetClusterRequest\032&.googl" + + "e.cloud.redis.cluster.v1.Cluster\";\332A\004nam" + + "e\202\323\344\223\002.\022,/v1/{name=projects/*/locations/" + + "*/clusters/*}\022\341\001\n\rUpdateCluster\0223.google" + + ".cloud.redis.cluster.v1.UpdateClusterReq" + + "uest\032\035.google.longrunning.Operation\"|\312A\036" + + "\n\007Cluster\022\023google.protobuf.Any\332A\023cluster" + + ",update_mask\202\323\344\223\002?24/v1/{cluster.name=pr" + + "ojects/*/locations/*/clusters/*}:\007cluste" + + "r\022\317\001\n\rDeleteCluster\0223.google.cloud.redis" + + ".cluster.v1.DeleteClusterRequest\032\035.googl" + + "e.longrunning.Operation\"j\312A,\n\025google.pro" + + "tobuf.Empty\022\023google.protobuf.Any\332A\004name\202" + + "\323\344\223\002.*,/v1/{name=projects/*/locations/*/" + + "clusters/*}\022\337\001\n\rCreateCluster\0223.google.c" + + "loud.redis.cluster.v1.CreateClusterReque" + + "st\032\035.google.longrunning.Operation\"z\312A\036\n\007" + + "Cluster\022\023google.protobuf.Any\332A\031parent,cl" + + "uster,cluster_id\202\323\344\223\0027\",/v1/{parent=proj" + + "ects/*/locations/*}/clusters:\007cluster\022\355\001" + + "\n\036GetClusterCertificateAuthority\022D.googl" + + "e.cloud.redis.cluster.v1.GetClusterCerti" + + "ficateAuthorityRequest\0323.google.cloud.re" + + "dis.cluster.v1.CertificateAuthority\"P\332A\004" + + "name\202\323\344\223\002C\022A/v1/{name=projects/*/locatio" + + "ns/*/clusters/*/certificateAuthority}\022\236\002" + + "\n\034RescheduleClusterMaintenance\022B.google." + + "cloud.redis.cluster.v1.RescheduleCluster" + + "MaintenanceRequest\032\035.google.longrunning." + + "Operation\"\232\001\312A\036\n\007Cluster\022\023google.protobu" + + "f.Any\332A\"name,reschedule_type,schedule_ti" + + "me\202\323\344\223\002N\"I/v1/{name=projects/*/locations" + + "/*/clusters/*}:rescheduleClusterMaintena" + + "nce:\001*\022\332\001\n\025ListBackupCollections\022;.googl" + + "e.cloud.redis.cluster.v1.ListBackupColle" + + "ctionsRequest\032<.google.cloud.redis.clust" + + "er.v1.ListBackupCollectionsResponse\"F\332A\006" + + "parent\202\323\344\223\0027\0225/v1/{parent=projects/*/loc" + + "ations/*}/backupCollections\022\307\001\n\023GetBacku" + + "pCollection\0229.google.cloud.redis.cluster" + + ".v1.GetBackupCollectionRequest\032/.google." + + "cloud.redis.cluster.v1.BackupCollection\"" + + "D\332A\004name\202\323\344\223\0027\0225/v1/{name=projects/*/loc" + + "ations/*/backupCollections/*}\022\306\001\n\013ListBa" + + "ckups\0221.google.cloud.redis.cluster.v1.Li" + + "stBackupsRequest\0322.google.cloud.redis.cl" + + "uster.v1.ListBackupsResponse\"P\332A\006parent\202", + "\323\344\223\002A\022?/v1/{parent=projects/*/locations/" + + "*/backupCollections/*}/backups\022\263\001\n\tGetBa" + + "ckup\022/.google.cloud.redis.cluster.v1.Get" + + "BackupRequest\032%.google.cloud.redis.clust" + + "er.v1.Backup\"N\332A\004name\202\323\344\223\002A\022?/v1/{name=p" + + "rojects/*/locations/*/backupCollections/" + + "*/backups/*}\022\340\001\n\014DeleteBackup\0222.google.c" + + "loud.redis.cluster.v1.DeleteBackupReques" + + "t\032\035.google.longrunning.Operation\"}\312A,\n\025g" + + "oogle.protobuf.Empty\022\023google.protobuf.An" + + "y\332A\004name\202\323\344\223\002A*?/v1/{name=projects/*/loc" + + "ations/*/backupCollections/*/backups/*}\022" + + "\324\001\n\014ExportBackup\0222.google.cloud.redis.cl" + + "uster.v1.ExportBackupRequest\032\035.google.lo" + + "ngrunning.Operation\"q\312A\035\n\006Backup\022\023google" + + ".protobuf.Any\202\323\344\223\002K\"F/v1/{name=projects/" + + "*/locations/*/backupCollections/*/backup" + + "s/*}:export:\001*\022\313\001\n\rBackupCluster\0223.googl" + + "e.cloud.redis.cluster.v1.BackupClusterRe" + + "quest\032\035.google.longrunning.Operation\"f\312A" + + "\036\n\007Cluster\022\023google.protobuf.Any\332A\004name\202\323" + + "\344\223\0028\"3/v1/{name=projects/*/locations/*/c" + + "lusters/*}:backup:\001*\032H\312A\024redis.googleapi" + + "s.com\322A.https://www.googleapis.com/auth/" + + "cloud-platformB\377\005\n!com.google.cloud.redi" + + "s.cluster.v1B\026CloudRedisClusterProtoP\001Z;" + + "cloud.google.com/go/redis/cluster/apiv1/" + + "clusterpb;clusterpb\352\002!Google::Cloud::Red" + + "is::Cluster::V1\352An\n%compute.googleapis.c" + + "om/ForwardingRule\022Eprojects/{project}/re" + + "gions/{region}/forwardingRules/{forwardi" + + "ng_rule}\352AN\n\036compute.googleapis.com/Netw" + + "ork\022,projects/{project}/global/networks/" + + "{network}\352Aw\n(compute.googleapis.com/Ser" + + "viceAttachment\022Kprojects/{project}/regio" + + "ns/{region}/serviceAttachments/{service_" + + "attachment}\352Ax\n!cloudkms.googleapis.com/" + + "CryptoKey\022Sprojects/{project}/locations/" + + "{location}/keyRings/{key_ring}/cryptoKey" + + "s/{crypto_key}\352A\246\001\n(cloudkms.googleapis." + + "com/CryptoKeyVersion\022zprojects/{project}" + + "/locations/{location}/keyRings/{key_ring" + + "}/cryptoKeys/{crypto_key}/cryptoKeyVersi" + + "ons/{crypto_key_version}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -310,12 +689,16 @@ 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.FieldInfoProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.AnyProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), + com.google.type.DayOfWeekProto.getDescriptor(), + com.google.type.TimeOfDayProto.getDescriptor(), }); internal_static_google_cloud_redis_cluster_v1_CreateClusterRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -373,12 +756,86 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", }); - internal_static_google_cloud_redis_cluster_v1_Cluster_descriptor = + internal_static_google_cloud_redis_cluster_v1_ListBackupCollectionsRequest_descriptor = getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_redis_cluster_v1_ListBackupCollectionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_ListBackupCollectionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_redis_cluster_v1_ListBackupCollectionsResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_redis_cluster_v1_ListBackupCollectionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_ListBackupCollectionsResponse_descriptor, + new java.lang.String[] { + "BackupCollections", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_redis_cluster_v1_GetBackupCollectionRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_redis_cluster_v1_GetBackupCollectionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_GetBackupCollectionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_redis_cluster_v1_ListBackupsRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_redis_cluster_v1_ListBackupsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_ListBackupsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_redis_cluster_v1_ListBackupsResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_redis_cluster_v1_ListBackupsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_ListBackupsResponse_descriptor, + new java.lang.String[] { + "Backups", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_redis_cluster_v1_GetBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_redis_cluster_v1_GetBackupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_GetBackupRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_redis_cluster_v1_DeleteBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_redis_cluster_v1_DeleteBackupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_DeleteBackupRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_redis_cluster_v1_ExportBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_redis_cluster_v1_ExportBackupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_ExportBackupRequest_descriptor, + new java.lang.String[] { + "GcsBucket", "Name", "Destination", + }); + internal_static_google_cloud_redis_cluster_v1_BackupClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_redis_cluster_v1_BackupClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_BackupClusterRequest_descriptor, + new java.lang.String[] { + "Name", "Ttl", "BackupId", + }); + internal_static_google_cloud_redis_cluster_v1_Cluster_descriptor = + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_redis_cluster_v1_Cluster_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_Cluster_descriptor, new java.lang.String[] { + "GcsSource", + "ManagedBackupSource", "Name", "CreateTime", "State", @@ -397,7 +854,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RedisConfigs", "PreciseSizeGb", "ZoneDistributionConfig", + "CrossClusterReplicationConfig", "DeletionProtectionEnabled", + "MaintenancePolicy", + "MaintenanceSchedule", + "PscServiceAttachments", + "ClusterEndpoints", + "BackupCollection", + "KmsKey", + "AutomatedBackupConfig", + "EncryptionInfo", + "ImportSources", }); internal_static_google_cloud_redis_cluster_v1_Cluster_StateInfo_descriptor = internal_static_google_cloud_redis_cluster_v1_Cluster_descriptor.getNestedTypes().get(0); @@ -417,16 +884,148 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "TargetShardCount", "TargetReplicaCount", }); - internal_static_google_cloud_redis_cluster_v1_Cluster_RedisConfigsEntry_descriptor = + internal_static_google_cloud_redis_cluster_v1_Cluster_GcsBackupSource_descriptor = internal_static_google_cloud_redis_cluster_v1_Cluster_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_redis_cluster_v1_Cluster_GcsBackupSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_Cluster_GcsBackupSource_descriptor, + new java.lang.String[] { + "Uris", + }); + internal_static_google_cloud_redis_cluster_v1_Cluster_ManagedBackupSource_descriptor = + internal_static_google_cloud_redis_cluster_v1_Cluster_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_redis_cluster_v1_Cluster_ManagedBackupSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_Cluster_ManagedBackupSource_descriptor, + new java.lang.String[] { + "Backup", + }); + internal_static_google_cloud_redis_cluster_v1_Cluster_RedisConfigsEntry_descriptor = + internal_static_google_cloud_redis_cluster_v1_Cluster_descriptor.getNestedTypes().get(3); internal_static_google_cloud_redis_cluster_v1_Cluster_RedisConfigsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_Cluster_RedisConfigsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_redis_cluster_v1_AutomatedBackupConfig_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_redis_cluster_v1_AutomatedBackupConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_AutomatedBackupConfig_descriptor, + new java.lang.String[] { + "FixedFrequencySchedule", "AutomatedBackupMode", "Retention", "Schedule", + }); + internal_static_google_cloud_redis_cluster_v1_AutomatedBackupConfig_FixedFrequencySchedule_descriptor = + internal_static_google_cloud_redis_cluster_v1_AutomatedBackupConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_redis_cluster_v1_AutomatedBackupConfig_FixedFrequencySchedule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_AutomatedBackupConfig_FixedFrequencySchedule_descriptor, + new java.lang.String[] { + "StartTime", + }); + internal_static_google_cloud_redis_cluster_v1_BackupCollection_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_redis_cluster_v1_BackupCollection_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_BackupCollection_descriptor, + new java.lang.String[] { + "Name", "ClusterUid", "Cluster", "KmsKey", "Uid", + }); + internal_static_google_cloud_redis_cluster_v1_Backup_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_redis_cluster_v1_Backup_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_Backup_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "Cluster", + "ClusterUid", + "TotalSizeBytes", + "ExpireTime", + "EngineVersion", + "BackupFiles", + "NodeType", + "ReplicaCount", + "ShardCount", + "BackupType", + "State", + "EncryptionInfo", + "Uid", + }); + internal_static_google_cloud_redis_cluster_v1_BackupFile_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_redis_cluster_v1_BackupFile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_BackupFile_descriptor, + new java.lang.String[] { + "FileName", "SizeBytes", "CreateTime", + }); + internal_static_google_cloud_redis_cluster_v1_PscServiceAttachment_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_redis_cluster_v1_PscServiceAttachment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_PscServiceAttachment_descriptor, + new java.lang.String[] { + "ServiceAttachment", "ConnectionType", + }); + internal_static_google_cloud_redis_cluster_v1_CrossClusterReplicationConfig_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_redis_cluster_v1_CrossClusterReplicationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_CrossClusterReplicationConfig_descriptor, + new java.lang.String[] { + "ClusterRole", "PrimaryCluster", "SecondaryClusters", "UpdateTime", "Membership", + }); + internal_static_google_cloud_redis_cluster_v1_CrossClusterReplicationConfig_RemoteCluster_descriptor = + internal_static_google_cloud_redis_cluster_v1_CrossClusterReplicationConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_redis_cluster_v1_CrossClusterReplicationConfig_RemoteCluster_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_CrossClusterReplicationConfig_RemoteCluster_descriptor, + new java.lang.String[] { + "Cluster", "Uid", + }); + internal_static_google_cloud_redis_cluster_v1_CrossClusterReplicationConfig_Membership_descriptor = + internal_static_google_cloud_redis_cluster_v1_CrossClusterReplicationConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_redis_cluster_v1_CrossClusterReplicationConfig_Membership_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_CrossClusterReplicationConfig_Membership_descriptor, + new java.lang.String[] { + "PrimaryCluster", "SecondaryClusters", + }); + internal_static_google_cloud_redis_cluster_v1_ClusterMaintenancePolicy_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_redis_cluster_v1_ClusterMaintenancePolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_ClusterMaintenancePolicy_descriptor, + new java.lang.String[] { + "CreateTime", "UpdateTime", "WeeklyMaintenanceWindow", + }); + internal_static_google_cloud_redis_cluster_v1_ClusterWeeklyMaintenanceWindow_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_redis_cluster_v1_ClusterWeeklyMaintenanceWindow_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_ClusterWeeklyMaintenanceWindow_descriptor, + new java.lang.String[] { + "Day", "StartTime", + }); + internal_static_google_cloud_redis_cluster_v1_ClusterMaintenanceSchedule_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_redis_cluster_v1_ClusterMaintenanceSchedule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_ClusterMaintenanceSchedule_descriptor, + new java.lang.String[] { + "StartTime", "EndTime", + }); internal_static_google_cloud_redis_cluster_v1_PscConfig_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_redis_cluster_v1_PscConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_PscConfig_descriptor, @@ -434,7 +1033,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Network", }); internal_static_google_cloud_redis_cluster_v1_DiscoveryEndpoint_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_redis_cluster_v1_DiscoveryEndpoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_DiscoveryEndpoint_descriptor, @@ -442,15 +1041,53 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Address", "Port", "PscConfig", }); internal_static_google_cloud_redis_cluster_v1_PscConnection_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_redis_cluster_v1_PscConnection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_PscConnection_descriptor, new java.lang.String[] { - "PscConnectionId", "Address", "ForwardingRule", "ProjectId", "Network", + "PscConnectionId", + "Address", + "ForwardingRule", + "ProjectId", + "Network", + "ServiceAttachment", + "PscConnectionStatus", + "ConnectionType", + }); + internal_static_google_cloud_redis_cluster_v1_ClusterEndpoint_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_redis_cluster_v1_ClusterEndpoint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_ClusterEndpoint_descriptor, + new java.lang.String[] { + "Connections", + }); + internal_static_google_cloud_redis_cluster_v1_ConnectionDetail_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_redis_cluster_v1_ConnectionDetail_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_ConnectionDetail_descriptor, + new java.lang.String[] { + "PscAutoConnection", "PscConnection", "Connection", + }); + internal_static_google_cloud_redis_cluster_v1_PscAutoConnection_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_redis_cluster_v1_PscAutoConnection_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_PscAutoConnection_descriptor, + new java.lang.String[] { + "PscConnectionId", + "Address", + "ForwardingRule", + "ProjectId", + "Network", + "ServiceAttachment", + "PscConnectionStatus", + "ConnectionType", }); internal_static_google_cloud_redis_cluster_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_redis_cluster_v1_OperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_OperationMetadata_descriptor, @@ -464,7 +1101,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ApiVersion", }); internal_static_google_cloud_redis_cluster_v1_CertificateAuthority_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_redis_cluster_v1_CertificateAuthority_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_CertificateAuthority_descriptor, @@ -492,7 +1129,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Certificates", }); internal_static_google_cloud_redis_cluster_v1_ClusterPersistenceConfig_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(34); internal_static_google_cloud_redis_cluster_v1_ClusterPersistenceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_ClusterPersistenceConfig_descriptor, @@ -520,21 +1157,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AppendFsync", }); internal_static_google_cloud_redis_cluster_v1_ZoneDistributionConfig_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(35); internal_static_google_cloud_redis_cluster_v1_ZoneDistributionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_ZoneDistributionConfig_descriptor, new java.lang.String[] { "Mode", "Zone", }); + internal_static_google_cloud_redis_cluster_v1_RescheduleClusterMaintenanceRequest_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_cloud_redis_cluster_v1_RescheduleClusterMaintenanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_RescheduleClusterMaintenanceRequest_descriptor, + new java.lang.String[] { + "Name", "RescheduleType", "ScheduleTime", + }); + internal_static_google_cloud_redis_cluster_v1_EncryptionInfo_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_cloud_redis_cluster_v1_EncryptionInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_EncryptionInfo_descriptor, + new java.lang.String[] { + "EncryptionType", "KmsKeyVersions", "KmsKeyPrimaryState", "LastUpdateTime", + }); 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.FieldInfoProto.fieldInfo); 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.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); registry.add(com.google.api.ResourceProto.resourceReference); registry.add(com.google.longrunning.OperationsProto.operationInfo); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( @@ -542,12 +1197,16 @@ 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.FieldInfoProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.AnyProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); + com.google.type.DayOfWeekProto.getDescriptor(); + com.google.type.TimeOfDayProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/Cluster.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/Cluster.java index 07002b285e11..a9e09455980d 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/Cluster.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/Cluster.java @@ -48,6 +48,10 @@ private Cluster() { discoveryEndpoints_ = java.util.Collections.emptyList(); pscConnections_ = java.util.Collections.emptyList(); nodeType_ = 0; + pscServiceAttachments_ = java.util.Collections.emptyList(); + clusterEndpoints_ = java.util.Collections.emptyList(); + backupCollection_ = ""; + kmsKey_ = ""; } @java.lang.Override @@ -1900,2254 +1904,7602 @@ public com.google.cloud.redis.cluster.v1.Cluster.StateInfo getDefaultInstanceFor } } - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; + public interface GcsBackupSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.Cluster.GcsBackupSource) + com.google.protobuf.MessageOrBuilder { - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
    -   * Required. Unique name of the resource in this scope including project and
    -   * location using the form:
    -   *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    -   * 
    - * - * 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; - } + /** + * + * + *
    +     * Optional. URIs of the GCS objects to import.
    +     * Example: gs://bucket1/object1, gs://bucket2/folder2/object2
    +     * 
    + * + * repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the uris. + */ + java.util.List getUrisList(); + /** + * + * + *
    +     * Optional. URIs of the GCS objects to import.
    +     * Example: gs://bucket1/object1, gs://bucket2/folder2/object2
    +     * 
    + * + * repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of uris. + */ + int getUrisCount(); + /** + * + * + *
    +     * Optional. URIs of the GCS objects to import.
    +     * Example: gs://bucket1/object1, gs://bucket2/folder2/object2
    +     * 
    + * + * repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The uris at the given index. + */ + java.lang.String getUris(int index); + /** + * + * + *
    +     * Optional. URIs of the GCS objects to import.
    +     * Example: gs://bucket1/object1, gs://bucket2/folder2/object2
    +     * 
    + * + * repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the uris at the given index. + */ + com.google.protobuf.ByteString getUrisBytes(int index); } /** * * *
    -   * Required. Unique name of the resource in this scope including project and
    -   * location using the form:
    -   *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +   * Backups stored in Cloud Storage buckets.
    +   * The Cloud Storage buckets need to be the same region as the clusters.
        * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for name. + * Protobuf type {@code google.cloud.redis.cluster.v1.Cluster.GcsBackupSource} */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public static final class GcsBackupSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.Cluster.GcsBackupSource) + GcsBackupSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use GcsBackupSource.newBuilder() to construct. + private GcsBackupSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - } - - public static final int CREATE_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp createTime_; - /** - * - * - *
    -   * Output only. The timestamp associated with the cluster creation request.
    -   * 
    - * - * .google.protobuf.Timestamp create_time = 3 [(.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. The timestamp associated with the cluster creation request.
    -   * 
    - * - * .google.protobuf.Timestamp create_time = 3 [(.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. The timestamp associated with the cluster creation request.
    -   * 
    - * - * .google.protobuf.Timestamp create_time = 3 [(.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 STATE_FIELD_NUMBER = 4; - private int state_ = 0; - /** - * - * - *
    -   * Output only. The current state of this cluster.
    -   * Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
    -   * 
    - * - * - * .google.cloud.redis.cluster.v1.Cluster.State state = 4 [(.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. The current state of this cluster.
    -   * Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
    -   * 
    - * - * - * .google.cloud.redis.cluster.v1.Cluster.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.redis.cluster.v1.Cluster.State getState() { - com.google.cloud.redis.cluster.v1.Cluster.State result = - com.google.cloud.redis.cluster.v1.Cluster.State.forNumber(state_); - return result == null ? com.google.cloud.redis.cluster.v1.Cluster.State.UNRECOGNIZED : result; - } + private GcsBackupSource() { + uris_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } - public static final int UID_FIELD_NUMBER = 5; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GcsBackupSource(); + } - @SuppressWarnings("serial") - private volatile java.lang.Object uid_ = ""; - /** - * - * - *
    -   * Output only. System assigned, unique identifier for the cluster.
    -   * 
    - * - * string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The uid. - */ - @java.lang.Override - public java.lang.String getUid() { - java.lang.Object ref = uid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uid_ = s; - return s; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_Cluster_GcsBackupSource_descriptor; } - } - /** - * - * - *
    -   * Output only. System assigned, unique identifier for the cluster.
    -   * 
    - * - * string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for uid. - */ - @java.lang.Override - public com.google.protobuf.ByteString getUidBytes() { - java.lang.Object ref = uid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - uid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_Cluster_GcsBackupSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource.class, + com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource.Builder.class); } - } - public static final int REPLICA_COUNT_FIELD_NUMBER = 8; - private int replicaCount_ = 0; - /** - * - * - *
    -   * Optional. The number of replica nodes per shard.
    -   * 
    - * - * optional int32 replica_count = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the replicaCount field is set. - */ - @java.lang.Override - public boolean hasReplicaCount() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
    -   * Optional. The number of replica nodes per shard.
    -   * 
    - * - * optional int32 replica_count = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The replicaCount. - */ - @java.lang.Override - public int getReplicaCount() { - return replicaCount_; - } + public static final int URIS_FIELD_NUMBER = 1; - public static final int AUTHORIZATION_MODE_FIELD_NUMBER = 11; - private int authorizationMode_ = 0; - /** - * - * - *
    -   * Optional. The authorization mode of the Redis cluster.
    -   * If not provided, auth feature is disabled for the cluster.
    -   * 
    - * - * - * .google.cloud.redis.cluster.v1.AuthorizationMode authorization_mode = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for authorizationMode. - */ - @java.lang.Override - public int getAuthorizationModeValue() { - return authorizationMode_; - } - /** - * - * - *
    -   * Optional. The authorization mode of the Redis cluster.
    -   * If not provided, auth feature is disabled for the cluster.
    -   * 
    - * - * - * .google.cloud.redis.cluster.v1.AuthorizationMode authorization_mode = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The authorizationMode. - */ - @java.lang.Override - public com.google.cloud.redis.cluster.v1.AuthorizationMode getAuthorizationMode() { - com.google.cloud.redis.cluster.v1.AuthorizationMode result = - com.google.cloud.redis.cluster.v1.AuthorizationMode.forNumber(authorizationMode_); - return result == null - ? com.google.cloud.redis.cluster.v1.AuthorizationMode.UNRECOGNIZED - : result; - } + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList uris_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
    +     * Optional. URIs of the GCS objects to import.
    +     * Example: gs://bucket1/object1, gs://bucket2/folder2/object2
    +     * 
    + * + * repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the uris. + */ + public com.google.protobuf.ProtocolStringList getUrisList() { + return uris_; + } + /** + * + * + *
    +     * Optional. URIs of the GCS objects to import.
    +     * Example: gs://bucket1/object1, gs://bucket2/folder2/object2
    +     * 
    + * + * repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of uris. + */ + public int getUrisCount() { + return uris_.size(); + } + /** + * + * + *
    +     * Optional. URIs of the GCS objects to import.
    +     * Example: gs://bucket1/object1, gs://bucket2/folder2/object2
    +     * 
    + * + * repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The uris at the given index. + */ + public java.lang.String getUris(int index) { + return uris_.get(index); + } + /** + * + * + *
    +     * Optional. URIs of the GCS objects to import.
    +     * Example: gs://bucket1/object1, gs://bucket2/folder2/object2
    +     * 
    + * + * repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the uris at the given index. + */ + public com.google.protobuf.ByteString getUrisBytes(int index) { + return uris_.getByteString(index); + } - public static final int TRANSIT_ENCRYPTION_MODE_FIELD_NUMBER = 12; - private int transitEncryptionMode_ = 0; - /** - * - * - *
    -   * Optional. The in-transit encryption for the Redis cluster.
    -   * If not provided, encryption  is disabled for the cluster.
    -   * 
    - * - * - * .google.cloud.redis.cluster.v1.TransitEncryptionMode transit_encryption_mode = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for transitEncryptionMode. - */ - @java.lang.Override - public int getTransitEncryptionModeValue() { - return transitEncryptionMode_; - } - /** - * - * - *
    -   * Optional. The in-transit encryption for the Redis cluster.
    -   * If not provided, encryption  is disabled for the cluster.
    -   * 
    - * - * - * .google.cloud.redis.cluster.v1.TransitEncryptionMode transit_encryption_mode = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The transitEncryptionMode. - */ - @java.lang.Override - public com.google.cloud.redis.cluster.v1.TransitEncryptionMode getTransitEncryptionMode() { - com.google.cloud.redis.cluster.v1.TransitEncryptionMode result = - com.google.cloud.redis.cluster.v1.TransitEncryptionMode.forNumber(transitEncryptionMode_); - return result == null - ? com.google.cloud.redis.cluster.v1.TransitEncryptionMode.UNRECOGNIZED - : result; - } + private byte memoizedIsInitialized = -1; - public static final int SIZE_GB_FIELD_NUMBER = 13; - private int sizeGb_ = 0; - /** - * - * - *
    -   * Output only. Redis memory size in GB for the entire cluster rounded up to
    -   * the next integer.
    -   * 
    - * - * optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return Whether the sizeGb field is set. - */ - @java.lang.Override - public boolean hasSizeGb() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
    -   * Output only. Redis memory size in GB for the entire cluster rounded up to
    -   * the next integer.
    -   * 
    - * - * optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The sizeGb. - */ - @java.lang.Override - public int getSizeGb() { - return sizeGb_; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static final int SHARD_COUNT_FIELD_NUMBER = 14; - private int shardCount_ = 0; - /** - * - * - *
    -   * Required. Number of shards for the Redis cluster.
    -   * 
    - * - * optional int32 shard_count = 14 [(.google.api.field_behavior) = REQUIRED]; - * - * @return Whether the shardCount field is set. - */ - @java.lang.Override - public boolean hasShardCount() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
    -   * Required. Number of shards for the Redis cluster.
    -   * 
    - * - * optional int32 shard_count = 14 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The shardCount. - */ - @java.lang.Override - public int getShardCount() { - return shardCount_; - } + memoizedIsInitialized = 1; + return true; + } - public static final int PSC_CONFIGS_FIELD_NUMBER = 15; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < uris_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uris_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } - @SuppressWarnings("serial") - private java.util.List pscConfigs_; - /** - * - * - *
    -   * Required. Each PscConfig configures the consumer network where IPs will
    -   * be designated to the cluster for client access through Private Service
    -   * Connect Automation. Currently, only one PscConfig is supported.
    -   * 
    - * - * - * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.List getPscConfigsList() { - return pscConfigs_; - } - /** - * - * - *
    -   * Required. Each PscConfig configures the consumer network where IPs will
    -   * be designated to the cluster for client access through Private Service
    -   * Connect Automation. Currently, only one PscConfig is supported.
    -   * 
    - * - * - * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.List - getPscConfigsOrBuilderList() { - return pscConfigs_; - } - /** - * - * - *
    -   * Required. Each PscConfig configures the consumer network where IPs will
    -   * be designated to the cluster for client access through Private Service
    -   * Connect Automation. Currently, only one PscConfig is supported.
    -   * 
    - * - * - * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public int getPscConfigsCount() { - return pscConfigs_.size(); - } - /** - * - * - *
    -   * Required. Each PscConfig configures the consumer network where IPs will
    -   * be designated to the cluster for client access through Private Service
    -   * Connect Automation. Currently, only one PscConfig is supported.
    -   * 
    - * - * - * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.redis.cluster.v1.PscConfig getPscConfigs(int index) { - return pscConfigs_.get(index); - } - /** - * - * - *
    -   * Required. Each PscConfig configures the consumer network where IPs will
    -   * be designated to the cluster for client access through Private Service
    -   * Connect Automation. Currently, only one PscConfig is supported.
    -   * 
    - * - * - * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.redis.cluster.v1.PscConfigOrBuilder getPscConfigsOrBuilder(int index) { - return pscConfigs_.get(index); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static final int DISCOVERY_ENDPOINTS_FIELD_NUMBER = 16; + size = 0; + { + int dataSize = 0; + for (int i = 0; i < uris_.size(); i++) { + dataSize += computeStringSizeNoTag(uris_.getRaw(i)); + } + size += dataSize; + size += 1 * getUrisList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - @SuppressWarnings("serial") - private java.util.List discoveryEndpoints_; - /** - * - * - *
    -   * Output only. Endpoints created on each given network, for Redis clients to
    -   * connect to the cluster. Currently only one discovery endpoint is supported.
    -   * 
    - * - * - * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getDiscoveryEndpointsList() { - return discoveryEndpoints_; - } - /** - * - * - *
    -   * Output only. Endpoints created on each given network, for Redis clients to
    -   * connect to the cluster. Currently only one discovery endpoint is supported.
    -   * 
    - * - * - * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getDiscoveryEndpointsOrBuilderList() { - return discoveryEndpoints_; - } - /** - * - * - *
    -   * Output only. Endpoints created on each given network, for Redis clients to
    -   * connect to the cluster. Currently only one discovery endpoint is supported.
    -   * 
    - * - * - * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public int getDiscoveryEndpointsCount() { - return discoveryEndpoints_.size(); - } - /** - * - * - *
    -   * Output only. Endpoints created on each given network, for Redis clients to
    -   * connect to the cluster. Currently only one discovery endpoint is supported.
    -   * 
    - * - * - * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.redis.cluster.v1.DiscoveryEndpoint getDiscoveryEndpoints(int index) { - return discoveryEndpoints_.get(index); - } - /** - * - * - *
    -   * Output only. Endpoints created on each given network, for Redis clients to
    -   * connect to the cluster. Currently only one discovery endpoint is supported.
    -   * 
    - * - * - * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.redis.cluster.v1.DiscoveryEndpointOrBuilder - getDiscoveryEndpointsOrBuilder(int index) { - return discoveryEndpoints_.get(index); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource other = + (com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource) obj; - public static final int PSC_CONNECTIONS_FIELD_NUMBER = 17; + if (!getUrisList().equals(other.getUrisList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - @SuppressWarnings("serial") - private java.util.List pscConnections_; - /** - * - * - *
    -   * Output only. PSC connections for discovery of the cluster topology and
    -   * accessing the cluster.
    -   * 
    - * - * - * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List getPscConnectionsList() { - return pscConnections_; - } - /** - * - * - *
    -   * Output only. PSC connections for discovery of the cluster topology and
    -   * accessing the cluster.
    -   * 
    - * - * - * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getPscConnectionsOrBuilderList() { - return pscConnections_; - } - /** - * - * - *
    -   * Output only. PSC connections for discovery of the cluster topology and
    -   * accessing the cluster.
    -   * 
    - * - * - * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public int getPscConnectionsCount() { - return pscConnections_.size(); - } - /** - * - * - *
    -   * Output only. PSC connections for discovery of the cluster topology and
    -   * accessing the cluster.
    -   * 
    - * - * - * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.redis.cluster.v1.PscConnection getPscConnections(int index) { - return pscConnections_.get(index); - } - /** - * - * - *
    -   * Output only. PSC connections for discovery of the cluster topology and
    -   * accessing the cluster.
    -   * 
    - * - * - * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.redis.cluster.v1.PscConnectionOrBuilder getPscConnectionsOrBuilder( - int index) { - return pscConnections_.get(index); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getUrisCount() > 0) { + hash = (37 * hash) + URIS_FIELD_NUMBER; + hash = (53 * hash) + getUrisList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - public static final int STATE_INFO_FIELD_NUMBER = 18; - private com.google.cloud.redis.cluster.v1.Cluster.StateInfo stateInfo_; - /** - * - * - *
    -   * Output only. Additional information about the current state of the cluster.
    -   * 
    - * - * - * .google.cloud.redis.cluster.v1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the stateInfo field is set. - */ - @java.lang.Override - public boolean hasStateInfo() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
    -   * Output only. Additional information about the current state of the cluster.
    -   * 
    - * - * - * .google.cloud.redis.cluster.v1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The stateInfo. - */ - @java.lang.Override - public com.google.cloud.redis.cluster.v1.Cluster.StateInfo getStateInfo() { - return stateInfo_ == null - ? com.google.cloud.redis.cluster.v1.Cluster.StateInfo.getDefaultInstance() - : stateInfo_; - } - /** - * - * - *
    -   * Output only. Additional information about the current state of the cluster.
    -   * 
    - * - * - * .google.cloud.redis.cluster.v1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.redis.cluster.v1.Cluster.StateInfoOrBuilder getStateInfoOrBuilder() { - return stateInfo_ == null - ? com.google.cloud.redis.cluster.v1.Cluster.StateInfo.getDefaultInstance() - : stateInfo_; - } + public static com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int NODE_TYPE_FIELD_NUMBER = 19; - private int nodeType_ = 0; - /** - * - * - *
    -   * Optional. The type of a redis node in the cluster. NodeType determines the
    -   * underlying machine-type of a redis node.
    -   * 
    - * - * - * .google.cloud.redis.cluster.v1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for nodeType. - */ - @java.lang.Override - public int getNodeTypeValue() { - return nodeType_; - } - /** - * - * - *
    -   * Optional. The type of a redis node in the cluster. NodeType determines the
    -   * underlying machine-type of a redis node.
    -   * 
    - * - * - * .google.cloud.redis.cluster.v1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The nodeType. - */ - @java.lang.Override - public com.google.cloud.redis.cluster.v1.NodeType getNodeType() { - com.google.cloud.redis.cluster.v1.NodeType result = - com.google.cloud.redis.cluster.v1.NodeType.forNumber(nodeType_); - return result == null ? com.google.cloud.redis.cluster.v1.NodeType.UNRECOGNIZED : result; - } + public static com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int PERSISTENCE_CONFIG_FIELD_NUMBER = 20; - private com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistenceConfig_; - /** - * - * - *
    -   * Optional. Persistence config (RDB, AOF) for the cluster.
    -   * 
    - * - * - * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the persistenceConfig field is set. - */ - @java.lang.Override - public boolean hasPersistenceConfig() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * - * - *
    -   * Optional. Persistence config (RDB, AOF) for the cluster.
    -   * 
    - * - * - * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The persistenceConfig. - */ - @java.lang.Override - public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig getPersistenceConfig() { - return persistenceConfig_ == null - ? com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.getDefaultInstance() - : persistenceConfig_; - } - /** - * - * - *
    -   * Optional. Persistence config (RDB, AOF) for the cluster.
    -   * 
    - * - * - * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfigOrBuilder - getPersistenceConfigOrBuilder() { - return persistenceConfig_ == null - ? com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.getDefaultInstance() - : persistenceConfig_; - } + public static com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int REDIS_CONFIGS_FIELD_NUMBER = 21; + public static com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private static final class RedisConfigsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.redis.cluster.v1.CloudRedisClusterProto - .internal_static_google_cloud_redis_cluster_v1_Cluster_RedisConfigsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } + public static com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @SuppressWarnings("serial") - private com.google.protobuf.MapField redisConfigs_; + public static com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private com.google.protobuf.MapField - internalGetRedisConfigs() { - if (redisConfigs_ == null) { - return com.google.protobuf.MapField.emptyMapField( - RedisConfigsDefaultEntryHolder.defaultEntry); + public static com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - return redisConfigs_; - } - public int getRedisConfigsCount() { - return internalGetRedisConfigs().getMap().size(); - } - /** - * - * - *
    -   * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
    -   * 
    - * - * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsRedisConfigs(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public static com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - return internalGetRedisConfigs().getMap().containsKey(key); - } - /** Use {@link #getRedisConfigsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getRedisConfigs() { - return getRedisConfigsMap(); - } - /** - * - * - *
    -   * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
    -   * 
    - * - * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getRedisConfigsMap() { - return internalGetRedisConfigs().getMap(); - } - /** - * - * - *
    -   * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
    -   * 
    - * - * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public /* nullable */ java.lang.String getRedisConfigsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); + + public static com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - java.util.Map map = internalGetRedisConfigs().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
    -   * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
    -   * 
    - * - * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getRedisConfigsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + + public static com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - java.util.Map map = internalGetRedisConfigs().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + + public static com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - return map.get(key); - } - public static final int PRECISE_SIZE_GB_FIELD_NUMBER = 22; - private double preciseSizeGb_ = 0D; - /** - * - * - *
    -   * Output only. Precise value of redis memory size in GB for the entire
    -   * cluster.
    -   * 
    - * - * optional double precise_size_gb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return Whether the preciseSizeGb field is set. - */ - @java.lang.Override - public boolean hasPreciseSizeGb() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * - * - *
    -   * Output only. Precise value of redis memory size in GB for the entire
    -   * cluster.
    -   * 
    - * - * optional double precise_size_gb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The preciseSizeGb. - */ - @java.lang.Override - public double getPreciseSizeGb() { - return preciseSizeGb_; - } + public static com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static final int ZONE_DISTRIBUTION_CONFIG_FIELD_NUMBER = 23; - private com.google.cloud.redis.cluster.v1.ZoneDistributionConfig zoneDistributionConfig_; - /** - * - * - *
    -   * Optional. This config will be used to determine how the customer wants us
    -   * to distribute cluster resources within the region.
    -   * 
    - * - * - * .google.cloud.redis.cluster.v1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the zoneDistributionConfig field is set. - */ - @java.lang.Override - public boolean hasZoneDistributionConfig() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * - * - *
    -   * Optional. This config will be used to determine how the customer wants us
    -   * to distribute cluster resources within the region.
    -   * 
    - * - * - * .google.cloud.redis.cluster.v1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The zoneDistributionConfig. - */ - @java.lang.Override - public com.google.cloud.redis.cluster.v1.ZoneDistributionConfig getZoneDistributionConfig() { - return zoneDistributionConfig_ == null - ? com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.getDefaultInstance() - : zoneDistributionConfig_; - } - /** - * - * - *
    -   * Optional. This config will be used to determine how the customer wants us
    -   * to distribute cluster resources within the region.
    -   * 
    - * - * - * .google.cloud.redis.cluster.v1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.redis.cluster.v1.ZoneDistributionConfigOrBuilder - getZoneDistributionConfigOrBuilder() { - return zoneDistributionConfig_ == null - ? com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.getDefaultInstance() - : zoneDistributionConfig_; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public static final int DELETION_PROTECTION_ENABLED_FIELD_NUMBER = 25; - private boolean deletionProtectionEnabled_ = false; - /** - * - * - *
    -   * Optional. The delete operation will fail when the value is set to true.
    -   * 
    - * - * optional bool deletion_protection_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the deletionProtectionEnabled field is set. - */ - @java.lang.Override - public boolean hasDeletionProtectionEnabled() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * - * - *
    -   * Optional. The delete operation will fail when the value is set to true.
    -   * 
    - * - * optional bool deletion_protection_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The deletionProtectionEnabled. - */ - @java.lang.Override - public boolean getDeletionProtectionEnabled() { - return deletionProtectionEnabled_; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - private byte memoizedIsInitialized = -1; + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +     * Backups stored in Cloud Storage buckets.
    +     * The Cloud Storage buckets need to be the same region as the clusters.
    +     * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.Cluster.GcsBackupSource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.Cluster.GcsBackupSource) + com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_Cluster_GcsBackupSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_Cluster_GcsBackupSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource.class, + com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uris_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_Cluster_GcsBackupSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource build() { + com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource buildPartial() { + com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource result = + new com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + uris_.makeImmutable(); + result.uris_ = uris_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource) { + return mergeFrom((com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource other) { + if (other == com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource.getDefaultInstance()) + return this; + if (!other.uris_.isEmpty()) { + if (uris_.isEmpty()) { + uris_ = other.uris_; + bitField0_ |= 0x00000001; + } else { + ensureUrisIsMutable(); + uris_.addAll(other.uris_); + } + 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(); + ensureUrisIsMutable(); + uris_.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 uris_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUrisIsMutable() { + if (!uris_.isModifiable()) { + uris_ = new com.google.protobuf.LazyStringArrayList(uris_); + } + bitField0_ |= 0x00000001; + } + /** + * + * + *
    +       * Optional. URIs of the GCS objects to import.
    +       * Example: gs://bucket1/object1, gs://bucket2/folder2/object2
    +       * 
    + * + * repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the uris. + */ + public com.google.protobuf.ProtocolStringList getUrisList() { + uris_.makeImmutable(); + return uris_; + } + /** + * + * + *
    +       * Optional. URIs of the GCS objects to import.
    +       * Example: gs://bucket1/object1, gs://bucket2/folder2/object2
    +       * 
    + * + * repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of uris. + */ + public int getUrisCount() { + return uris_.size(); + } + /** + * + * + *
    +       * Optional. URIs of the GCS objects to import.
    +       * Example: gs://bucket1/object1, gs://bucket2/folder2/object2
    +       * 
    + * + * repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The uris at the given index. + */ + public java.lang.String getUris(int index) { + return uris_.get(index); + } + /** + * + * + *
    +       * Optional. URIs of the GCS objects to import.
    +       * Example: gs://bucket1/object1, gs://bucket2/folder2/object2
    +       * 
    + * + * repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the uris at the given index. + */ + public com.google.protobuf.ByteString getUrisBytes(int index) { + return uris_.getByteString(index); + } + /** + * + * + *
    +       * Optional. URIs of the GCS objects to import.
    +       * Example: gs://bucket1/object1, gs://bucket2/folder2/object2
    +       * 
    + * + * repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The uris to set. + * @return This builder for chaining. + */ + public Builder setUris(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUrisIsMutable(); + uris_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. URIs of the GCS objects to import.
    +       * Example: gs://bucket1/object1, gs://bucket2/folder2/object2
    +       * 
    + * + * repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The uris to add. + * @return This builder for chaining. + */ + public Builder addUris(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUrisIsMutable(); + uris_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. URIs of the GCS objects to import.
    +       * Example: gs://bucket1/object1, gs://bucket2/folder2/object2
    +       * 
    + * + * repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The uris to add. + * @return This builder for chaining. + */ + public Builder addAllUris(java.lang.Iterable values) { + ensureUrisIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, uris_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. URIs of the GCS objects to import.
    +       * Example: gs://bucket1/object1, gs://bucket2/folder2/object2
    +       * 
    + * + * repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearUris() { + uris_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. URIs of the GCS objects to import.
    +       * Example: gs://bucket1/object1, gs://bucket2/folder2/object2
    +       * 
    + * + * repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the uris to add. + * @return This builder for chaining. + */ + public Builder addUrisBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUrisIsMutable(); + uris_.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.redis.cluster.v1.Cluster.GcsBackupSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.Cluster.GcsBackupSource) + private static final com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource(); + } + + public static com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsBackupSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ManagedBackupSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Optional. Example:
    +     * //redis.googleapis.com/projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup}
    +     * A shorter version (without the prefix) of the backup name is also
    +     * supported, like
    +     * projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup_id}
    +     * In this case, it assumes the backup is under redis.googleapis.com.
    +     * 
    + * + * string backup = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The backup. + */ + java.lang.String getBackup(); + /** + * + * + *
    +     * Optional. Example:
    +     * //redis.googleapis.com/projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup}
    +     * A shorter version (without the prefix) of the backup name is also
    +     * supported, like
    +     * projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup_id}
    +     * In this case, it assumes the backup is under redis.googleapis.com.
    +     * 
    + * + * string backup = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for backup. + */ + com.google.protobuf.ByteString getBackupBytes(); + } + /** + * + * + *
    +   * Backups that generated and managed by memorystore.
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource} + */ + public static final class ManagedBackupSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource) + ManagedBackupSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use ManagedBackupSource.newBuilder() to construct. + private ManagedBackupSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ManagedBackupSource() { + backup_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ManagedBackupSource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_Cluster_ManagedBackupSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_Cluster_ManagedBackupSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource.class, + com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource.Builder.class); + } + + public static final int BACKUP_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object backup_ = ""; + /** + * + * + *
    +     * Optional. Example:
    +     * //redis.googleapis.com/projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup}
    +     * A shorter version (without the prefix) of the backup name is also
    +     * supported, like
    +     * projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup_id}
    +     * In this case, it assumes the backup is under redis.googleapis.com.
    +     * 
    + * + * string backup = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The backup. + */ + @java.lang.Override + public java.lang.String getBackup() { + java.lang.Object ref = backup_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backup_ = s; + return s; + } + } + /** + * + * + *
    +     * Optional. Example:
    +     * //redis.googleapis.com/projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup}
    +     * A shorter version (without the prefix) of the backup name is also
    +     * supported, like
    +     * projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup_id}
    +     * In this case, it assumes the backup is under redis.googleapis.com.
    +     * 
    + * + * string backup = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for backup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBackupBytes() { + java.lang.Object ref = backup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backup_ = 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(backup_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, backup_); + } + 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(backup_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, backup_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource other = + (com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource) obj; + + if (!getBackup().equals(other.getBackup())) return false; + if (!getUnknownFields().equals(other.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) + BACKUP_FIELD_NUMBER; + hash = (53 * hash) + getBackup().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +     * Backups that generated and managed by memorystore.
    +     * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource) + com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_Cluster_ManagedBackupSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_Cluster_ManagedBackupSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource.class, + com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + backup_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_Cluster_ManagedBackupSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource build() { + com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource buildPartial() { + com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource result = + new com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.backup_ = backup_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource) { + return mergeFrom((com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource other) { + if (other + == com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource.getDefaultInstance()) + return this; + if (!other.getBackup().isEmpty()) { + backup_ = other.backup_; + 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: + { + backup_ = 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 backup_ = ""; + /** + * + * + *
    +       * Optional. Example:
    +       * //redis.googleapis.com/projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup}
    +       * A shorter version (without the prefix) of the backup name is also
    +       * supported, like
    +       * projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup_id}
    +       * In this case, it assumes the backup is under redis.googleapis.com.
    +       * 
    + * + * string backup = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The backup. + */ + public java.lang.String getBackup() { + java.lang.Object ref = backup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * Optional. Example:
    +       * //redis.googleapis.com/projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup}
    +       * A shorter version (without the prefix) of the backup name is also
    +       * supported, like
    +       * projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup_id}
    +       * In this case, it assumes the backup is under redis.googleapis.com.
    +       * 
    + * + * string backup = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for backup. + */ + public com.google.protobuf.ByteString getBackupBytes() { + java.lang.Object ref = backup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * Optional. Example:
    +       * //redis.googleapis.com/projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup}
    +       * A shorter version (without the prefix) of the backup name is also
    +       * supported, like
    +       * projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup_id}
    +       * In this case, it assumes the backup is under redis.googleapis.com.
    +       * 
    + * + * string backup = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The backup to set. + * @return This builder for chaining. + */ + public Builder setBackup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + backup_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. Example:
    +       * //redis.googleapis.com/projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup}
    +       * A shorter version (without the prefix) of the backup name is also
    +       * supported, like
    +       * projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup_id}
    +       * In this case, it assumes the backup is under redis.googleapis.com.
    +       * 
    + * + * string backup = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearBackup() { + backup_ = getDefaultInstance().getBackup(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. Example:
    +       * //redis.googleapis.com/projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup}
    +       * A shorter version (without the prefix) of the backup name is also
    +       * supported, like
    +       * projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup_id}
    +       * In this case, it assumes the backup is under redis.googleapis.com.
    +       * 
    + * + * string backup = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for backup to set. + * @return This builder for chaining. + */ + public Builder setBackupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + backup_ = 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.redis.cluster.v1.Cluster.ManagedBackupSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource) + private static final com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource(); + } + + public static com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ManagedBackupSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int importSourcesCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object importSources_; + + public enum ImportSourcesCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GCS_SOURCE(34), + MANAGED_BACKUP_SOURCE(35), + IMPORTSOURCES_NOT_SET(0); + private final int value; + + private ImportSourcesCase(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 ImportSourcesCase valueOf(int value) { + return forNumber(value); + } + + public static ImportSourcesCase forNumber(int value) { + switch (value) { + case 34: + return GCS_SOURCE; + case 35: + return MANAGED_BACKUP_SOURCE; + case 0: + return IMPORTSOURCES_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ImportSourcesCase getImportSourcesCase() { + return ImportSourcesCase.forNumber(importSourcesCase_); + } + + public static final int GCS_SOURCE_FIELD_NUMBER = 34; + /** + * + * + *
    +   * Optional. Backups stored in Cloud Storage buckets.
    +   * The Cloud Storage buckets need to be the same region as the clusters.
    +   * Read permission is required to import from the provided Cloud Storage
    +   * objects.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.Cluster.GcsBackupSource gcs_source = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gcsSource field is set. + */ + @java.lang.Override + public boolean hasGcsSource() { + return importSourcesCase_ == 34; + } + /** + * + * + *
    +   * Optional. Backups stored in Cloud Storage buckets.
    +   * The Cloud Storage buckets need to be the same region as the clusters.
    +   * Read permission is required to import from the provided Cloud Storage
    +   * objects.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.Cluster.GcsBackupSource gcs_source = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gcsSource. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource getGcsSource() { + if (importSourcesCase_ == 34) { + return (com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource) importSources_; + } + return com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource.getDefaultInstance(); + } + /** + * + * + *
    +   * Optional. Backups stored in Cloud Storage buckets.
    +   * The Cloud Storage buckets need to be the same region as the clusters.
    +   * Read permission is required to import from the provided Cloud Storage
    +   * objects.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.Cluster.GcsBackupSource gcs_source = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSourceOrBuilder + getGcsSourceOrBuilder() { + if (importSourcesCase_ == 34) { + return (com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource) importSources_; + } + return com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource.getDefaultInstance(); + } + + public static final int MANAGED_BACKUP_SOURCE_FIELD_NUMBER = 35; + /** + * + * + *
    +   * Optional. Backups generated and managed by memorystore service.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource managed_backup_source = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the managedBackupSource field is set. + */ + @java.lang.Override + public boolean hasManagedBackupSource() { + return importSourcesCase_ == 35; + } + /** + * + * + *
    +   * Optional. Backups generated and managed by memorystore service.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource managed_backup_source = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The managedBackupSource. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource getManagedBackupSource() { + if (importSourcesCase_ == 35) { + return (com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource) importSources_; + } + return com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource.getDefaultInstance(); + } + /** + * + * + *
    +   * Optional. Backups generated and managed by memorystore service.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource managed_backup_source = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSourceOrBuilder + getManagedBackupSourceOrBuilder() { + if (importSourcesCase_ == 35) { + return (com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource) importSources_; + } + return com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Required. Identifier. Unique name of the resource in this scope including
    +   * project and location using the form:
    +   *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @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. Identifier. Unique name of the resource in this scope including
    +   * project and location using the form:
    +   *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @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 CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
    +   * Output only. The timestamp associated with the cluster creation request.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 3 [(.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. The timestamp associated with the cluster creation request.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 3 [(.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. The timestamp associated with the cluster creation request.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 3 [(.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 STATE_FIELD_NUMBER = 4; + private int state_ = 0; + /** + * + * + *
    +   * Output only. The current state of this cluster.
    +   * Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.Cluster.State state = 4 [(.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. The current state of this cluster.
    +   * Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.Cluster.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.Cluster.State getState() { + com.google.cloud.redis.cluster.v1.Cluster.State result = + com.google.cloud.redis.cluster.v1.Cluster.State.forNumber(state_); + return result == null ? com.google.cloud.redis.cluster.v1.Cluster.State.UNRECOGNIZED : result; + } + + public static final int UID_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + /** + * + * + *
    +   * Output only. System assigned, unique identifier for the cluster.
    +   * 
    + * + * string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } + } + /** + * + * + *
    +   * Output only. System assigned, unique identifier for the cluster.
    +   * 
    + * + * string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REPLICA_COUNT_FIELD_NUMBER = 8; + private int replicaCount_ = 0; + /** + * + * + *
    +   * Optional. The number of replica nodes per shard.
    +   * 
    + * + * optional int32 replica_count = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the replicaCount field is set. + */ + @java.lang.Override + public boolean hasReplicaCount() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +   * Optional. The number of replica nodes per shard.
    +   * 
    + * + * optional int32 replica_count = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The replicaCount. + */ + @java.lang.Override + public int getReplicaCount() { + return replicaCount_; + } + + public static final int AUTHORIZATION_MODE_FIELD_NUMBER = 11; + private int authorizationMode_ = 0; + /** + * + * + *
    +   * Optional. The authorization mode of the Redis cluster.
    +   * If not provided, auth feature is disabled for the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.AuthorizationMode authorization_mode = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for authorizationMode. + */ + @java.lang.Override + public int getAuthorizationModeValue() { + return authorizationMode_; + } + /** + * + * + *
    +   * Optional. The authorization mode of the Redis cluster.
    +   * If not provided, auth feature is disabled for the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.AuthorizationMode authorization_mode = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The authorizationMode. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AuthorizationMode getAuthorizationMode() { + com.google.cloud.redis.cluster.v1.AuthorizationMode result = + com.google.cloud.redis.cluster.v1.AuthorizationMode.forNumber(authorizationMode_); + return result == null + ? com.google.cloud.redis.cluster.v1.AuthorizationMode.UNRECOGNIZED + : result; + } + + public static final int TRANSIT_ENCRYPTION_MODE_FIELD_NUMBER = 12; + private int transitEncryptionMode_ = 0; + /** + * + * + *
    +   * Optional. The in-transit encryption for the Redis cluster.
    +   * If not provided, encryption  is disabled for the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.TransitEncryptionMode transit_encryption_mode = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for transitEncryptionMode. + */ + @java.lang.Override + public int getTransitEncryptionModeValue() { + return transitEncryptionMode_; + } + /** + * + * + *
    +   * Optional. The in-transit encryption for the Redis cluster.
    +   * If not provided, encryption  is disabled for the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.TransitEncryptionMode transit_encryption_mode = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The transitEncryptionMode. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.TransitEncryptionMode getTransitEncryptionMode() { + com.google.cloud.redis.cluster.v1.TransitEncryptionMode result = + com.google.cloud.redis.cluster.v1.TransitEncryptionMode.forNumber(transitEncryptionMode_); + return result == null + ? com.google.cloud.redis.cluster.v1.TransitEncryptionMode.UNRECOGNIZED + : result; + } + + public static final int SIZE_GB_FIELD_NUMBER = 13; + private int sizeGb_ = 0; + /** + * + * + *
    +   * Output only. Redis memory size in GB for the entire cluster rounded up to
    +   * the next integer.
    +   * 
    + * + * optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the sizeGb field is set. + */ + @java.lang.Override + public boolean hasSizeGb() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +   * Output only. Redis memory size in GB for the entire cluster rounded up to
    +   * the next integer.
    +   * 
    + * + * optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sizeGb. + */ + @java.lang.Override + public int getSizeGb() { + return sizeGb_; + } + + public static final int SHARD_COUNT_FIELD_NUMBER = 14; + private int shardCount_ = 0; + /** + * + * + *
    +   * Optional. Number of shards for the Redis cluster.
    +   * 
    + * + * optional int32 shard_count = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the shardCount field is set. + */ + @java.lang.Override + public boolean hasShardCount() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
    +   * Optional. Number of shards for the Redis cluster.
    +   * 
    + * + * optional int32 shard_count = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The shardCount. + */ + @java.lang.Override + public int getShardCount() { + return shardCount_; + } + + public static final int PSC_CONFIGS_FIELD_NUMBER = 15; + + @SuppressWarnings("serial") + private java.util.List pscConfigs_; + /** + * + * + *
    +   * Optional. Each PscConfig configures the consumer network where IPs will
    +   * be designated to the cluster for client access through Private Service
    +   * Connect Automation. Currently, only one PscConfig is supported.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getPscConfigsList() { + return pscConfigs_; + } + /** + * + * + *
    +   * Optional. Each PscConfig configures the consumer network where IPs will
    +   * be designated to the cluster for client access through Private Service
    +   * Connect Automation. Currently, only one PscConfig is supported.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getPscConfigsOrBuilderList() { + return pscConfigs_; + } + /** + * + * + *
    +   * Optional. Each PscConfig configures the consumer network where IPs will
    +   * be designated to the cluster for client access through Private Service
    +   * Connect Automation. Currently, only one PscConfig is supported.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getPscConfigsCount() { + return pscConfigs_.size(); + } + /** + * + * + *
    +   * Optional. Each PscConfig configures the consumer network where IPs will
    +   * be designated to the cluster for client access through Private Service
    +   * Connect Automation. Currently, only one PscConfig is supported.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.PscConfig getPscConfigs(int index) { + return pscConfigs_.get(index); + } + /** + * + * + *
    +   * Optional. Each PscConfig configures the consumer network where IPs will
    +   * be designated to the cluster for client access through Private Service
    +   * Connect Automation. Currently, only one PscConfig is supported.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.PscConfigOrBuilder getPscConfigsOrBuilder(int index) { + return pscConfigs_.get(index); + } + + public static final int DISCOVERY_ENDPOINTS_FIELD_NUMBER = 16; + + @SuppressWarnings("serial") + private java.util.List discoveryEndpoints_; + /** + * + * + *
    +   * Output only. Endpoints created on each given network, for Redis clients to
    +   * connect to the cluster. Currently only one discovery endpoint is supported.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getDiscoveryEndpointsList() { + return discoveryEndpoints_; + } + /** + * + * + *
    +   * Output only. Endpoints created on each given network, for Redis clients to
    +   * connect to the cluster. Currently only one discovery endpoint is supported.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getDiscoveryEndpointsOrBuilderList() { + return discoveryEndpoints_; + } + /** + * + * + *
    +   * Output only. Endpoints created on each given network, for Redis clients to
    +   * connect to the cluster. Currently only one discovery endpoint is supported.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getDiscoveryEndpointsCount() { + return discoveryEndpoints_.size(); + } + /** + * + * + *
    +   * Output only. Endpoints created on each given network, for Redis clients to
    +   * connect to the cluster. Currently only one discovery endpoint is supported.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.DiscoveryEndpoint getDiscoveryEndpoints(int index) { + return discoveryEndpoints_.get(index); + } + /** + * + * + *
    +   * Output only. Endpoints created on each given network, for Redis clients to
    +   * connect to the cluster. Currently only one discovery endpoint is supported.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.DiscoveryEndpointOrBuilder + getDiscoveryEndpointsOrBuilder(int index) { + return discoveryEndpoints_.get(index); + } + + public static final int PSC_CONNECTIONS_FIELD_NUMBER = 17; + + @SuppressWarnings("serial") + private java.util.List pscConnections_; + /** + * + * + *
    +   * Output only. The list of PSC connections that are auto-created through
    +   * service connectivity automation.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getPscConnectionsList() { + return pscConnections_; + } + /** + * + * + *
    +   * Output only. The list of PSC connections that are auto-created through
    +   * service connectivity automation.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getPscConnectionsOrBuilderList() { + return pscConnections_; + } + /** + * + * + *
    +   * Output only. The list of PSC connections that are auto-created through
    +   * service connectivity automation.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getPscConnectionsCount() { + return pscConnections_.size(); + } + /** + * + * + *
    +   * Output only. The list of PSC connections that are auto-created through
    +   * service connectivity automation.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.PscConnection getPscConnections(int index) { + return pscConnections_.get(index); + } + /** + * + * + *
    +   * Output only. The list of PSC connections that are auto-created through
    +   * service connectivity automation.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.PscConnectionOrBuilder getPscConnectionsOrBuilder( + int index) { + return pscConnections_.get(index); + } + + public static final int STATE_INFO_FIELD_NUMBER = 18; + private com.google.cloud.redis.cluster.v1.Cluster.StateInfo stateInfo_; + /** + * + * + *
    +   * Output only. Additional information about the current state of the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the stateInfo field is set. + */ + @java.lang.Override + public boolean hasStateInfo() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
    +   * Output only. Additional information about the current state of the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The stateInfo. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.Cluster.StateInfo getStateInfo() { + return stateInfo_ == null + ? com.google.cloud.redis.cluster.v1.Cluster.StateInfo.getDefaultInstance() + : stateInfo_; + } + /** + * + * + *
    +   * Output only. Additional information about the current state of the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.Cluster.StateInfoOrBuilder getStateInfoOrBuilder() { + return stateInfo_ == null + ? com.google.cloud.redis.cluster.v1.Cluster.StateInfo.getDefaultInstance() + : stateInfo_; + } + + public static final int NODE_TYPE_FIELD_NUMBER = 19; + private int nodeType_ = 0; + /** + * + * + *
    +   * Optional. The type of a redis node in the cluster. NodeType determines the
    +   * underlying machine-type of a redis node.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for nodeType. + */ + @java.lang.Override + public int getNodeTypeValue() { + return nodeType_; + } + /** + * + * + *
    +   * Optional. The type of a redis node in the cluster. NodeType determines the
    +   * underlying machine-type of a redis node.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The nodeType. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.NodeType getNodeType() { + com.google.cloud.redis.cluster.v1.NodeType result = + com.google.cloud.redis.cluster.v1.NodeType.forNumber(nodeType_); + return result == null ? com.google.cloud.redis.cluster.v1.NodeType.UNRECOGNIZED : result; + } + + public static final int PERSISTENCE_CONFIG_FIELD_NUMBER = 20; + private com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistenceConfig_; + /** + * + * + *
    +   * Optional. Persistence config (RDB, AOF) for the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the persistenceConfig field is set. + */ + @java.lang.Override + public boolean hasPersistenceConfig() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
    +   * Optional. Persistence config (RDB, AOF) for the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The persistenceConfig. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig getPersistenceConfig() { + return persistenceConfig_ == null + ? com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.getDefaultInstance() + : persistenceConfig_; + } + /** + * + * + *
    +   * Optional. Persistence config (RDB, AOF) for the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfigOrBuilder + getPersistenceConfigOrBuilder() { + return persistenceConfig_ == null + ? com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.getDefaultInstance() + : persistenceConfig_; + } + + public static final int REDIS_CONFIGS_FIELD_NUMBER = 21; + + private static final class RedisConfigsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_Cluster_RedisConfigsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField redisConfigs_; + + private com.google.protobuf.MapField + internalGetRedisConfigs() { + if (redisConfigs_ == null) { + return com.google.protobuf.MapField.emptyMapField( + RedisConfigsDefaultEntryHolder.defaultEntry); + } + return redisConfigs_; + } + + public int getRedisConfigsCount() { + return internalGetRedisConfigs().getMap().size(); + } + /** + * + * + *
    +   * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
    +   * 
    + * + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsRedisConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetRedisConfigs().getMap().containsKey(key); + } + /** Use {@link #getRedisConfigsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getRedisConfigs() { + return getRedisConfigsMap(); + } + /** + * + * + *
    +   * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
    +   * 
    + * + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getRedisConfigsMap() { + return internalGetRedisConfigs().getMap(); + } + /** + * + * + *
    +   * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
    +   * 
    + * + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getRedisConfigsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetRedisConfigs().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
    +   * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
    +   * 
    + * + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getRedisConfigsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetRedisConfigs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int PRECISE_SIZE_GB_FIELD_NUMBER = 22; + private double preciseSizeGb_ = 0D; + /** + * + * + *
    +   * Output only. Precise value of redis memory size in GB for the entire
    +   * cluster.
    +   * 
    + * + * optional double precise_size_gb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the preciseSizeGb field is set. + */ + @java.lang.Override + public boolean hasPreciseSizeGb() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
    +   * Output only. Precise value of redis memory size in GB for the entire
    +   * cluster.
    +   * 
    + * + * optional double precise_size_gb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The preciseSizeGb. + */ + @java.lang.Override + public double getPreciseSizeGb() { + return preciseSizeGb_; + } + + public static final int ZONE_DISTRIBUTION_CONFIG_FIELD_NUMBER = 23; + private com.google.cloud.redis.cluster.v1.ZoneDistributionConfig zoneDistributionConfig_; + /** + * + * + *
    +   * Optional. This config will be used to determine how the customer wants us
    +   * to distribute cluster resources within the region.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the zoneDistributionConfig field is set. + */ + @java.lang.Override + public boolean hasZoneDistributionConfig() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
    +   * Optional. This config will be used to determine how the customer wants us
    +   * to distribute cluster resources within the region.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The zoneDistributionConfig. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ZoneDistributionConfig getZoneDistributionConfig() { + return zoneDistributionConfig_ == null + ? com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.getDefaultInstance() + : zoneDistributionConfig_; + } + /** + * + * + *
    +   * Optional. This config will be used to determine how the customer wants us
    +   * to distribute cluster resources within the region.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ZoneDistributionConfigOrBuilder + getZoneDistributionConfigOrBuilder() { + return zoneDistributionConfig_ == null + ? com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.getDefaultInstance() + : zoneDistributionConfig_; + } + + public static final int CROSS_CLUSTER_REPLICATION_CONFIG_FIELD_NUMBER = 24; + private com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig + crossClusterReplicationConfig_; + /** + * + * + *
    +   * Optional. Cross cluster replication config.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig cross_cluster_replication_config = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the crossClusterReplicationConfig field is set. + */ + @java.lang.Override + public boolean hasCrossClusterReplicationConfig() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * + * + *
    +   * Optional. Cross cluster replication config.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig cross_cluster_replication_config = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The crossClusterReplicationConfig. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig + getCrossClusterReplicationConfig() { + return crossClusterReplicationConfig_ == null + ? com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.getDefaultInstance() + : crossClusterReplicationConfig_; + } + /** + * + * + *
    +   * Optional. Cross cluster replication config.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig cross_cluster_replication_config = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfigOrBuilder + getCrossClusterReplicationConfigOrBuilder() { + return crossClusterReplicationConfig_ == null + ? com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.getDefaultInstance() + : crossClusterReplicationConfig_; + } + + public static final int DELETION_PROTECTION_ENABLED_FIELD_NUMBER = 25; + private boolean deletionProtectionEnabled_ = false; + /** + * + * + *
    +   * Optional. The delete operation will fail when the value is set to true.
    +   * 
    + * + * optional bool deletion_protection_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the deletionProtectionEnabled field is set. + */ + @java.lang.Override + public boolean hasDeletionProtectionEnabled() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * + * + *
    +   * Optional. The delete operation will fail when the value is set to true.
    +   * 
    + * + * optional bool deletion_protection_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deletionProtectionEnabled. + */ + @java.lang.Override + public boolean getDeletionProtectionEnabled() { + return deletionProtectionEnabled_; + } + + public static final int MAINTENANCE_POLICY_FIELD_NUMBER = 26; + private com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy maintenancePolicy_; + /** + * + * + *
    +   * Optional. ClusterMaintenancePolicy determines when to allow or deny
    +   * updates.
    +   * 
    + * + * + * optional .google.cloud.redis.cluster.v1.ClusterMaintenancePolicy maintenance_policy = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the maintenancePolicy field is set. + */ + @java.lang.Override + public boolean hasMaintenancePolicy() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * + * + *
    +   * Optional. ClusterMaintenancePolicy determines when to allow or deny
    +   * updates.
    +   * 
    + * + * + * optional .google.cloud.redis.cluster.v1.ClusterMaintenancePolicy maintenance_policy = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maintenancePolicy. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy getMaintenancePolicy() { + return maintenancePolicy_ == null + ? com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy.getDefaultInstance() + : maintenancePolicy_; + } + /** + * + * + *
    +   * Optional. ClusterMaintenancePolicy determines when to allow or deny
    +   * updates.
    +   * 
    + * + * + * optional .google.cloud.redis.cluster.v1.ClusterMaintenancePolicy maintenance_policy = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicyOrBuilder + getMaintenancePolicyOrBuilder() { + return maintenancePolicy_ == null + ? com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy.getDefaultInstance() + : maintenancePolicy_; + } + + public static final int MAINTENANCE_SCHEDULE_FIELD_NUMBER = 27; + private com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule maintenanceSchedule_; + /** + * + * + *
    +   * Output only. ClusterMaintenanceSchedule Output only Published maintenance
    +   * schedule.
    +   * 
    + * + * + * optional .google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule maintenance_schedule = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the maintenanceSchedule field is set. + */ + @java.lang.Override + public boolean hasMaintenanceSchedule() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + * + * + *
    +   * Output only. ClusterMaintenanceSchedule Output only Published maintenance
    +   * schedule.
    +   * 
    + * + * + * optional .google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule maintenance_schedule = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The maintenanceSchedule. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule getMaintenanceSchedule() { + return maintenanceSchedule_ == null + ? com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule.getDefaultInstance() + : maintenanceSchedule_; + } + /** + * + * + *
    +   * Output only. ClusterMaintenanceSchedule Output only Published maintenance
    +   * schedule.
    +   * 
    + * + * + * optional .google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule maintenance_schedule = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterMaintenanceScheduleOrBuilder + getMaintenanceScheduleOrBuilder() { + return maintenanceSchedule_ == null + ? com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule.getDefaultInstance() + : maintenanceSchedule_; + } + + public static final int PSC_SERVICE_ATTACHMENTS_FIELD_NUMBER = 30; + + @SuppressWarnings("serial") + private java.util.List + pscServiceAttachments_; + /** + * + * + *
    +   * Output only. Service attachment details to configure Psc connections
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getPscServiceAttachmentsList() { + return pscServiceAttachments_; + } + /** + * + * + *
    +   * Output only. Service attachment details to configure Psc connections
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getPscServiceAttachmentsOrBuilderList() { + return pscServiceAttachments_; + } + /** + * + * + *
    +   * Output only. Service attachment details to configure Psc connections
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getPscServiceAttachmentsCount() { + return pscServiceAttachments_.size(); + } + /** + * + * + *
    +   * Output only. Service attachment details to configure Psc connections
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.PscServiceAttachment getPscServiceAttachments( + int index) { + return pscServiceAttachments_.get(index); + } + /** + * + * + *
    +   * Output only. Service attachment details to configure Psc connections
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.PscServiceAttachmentOrBuilder + getPscServiceAttachmentsOrBuilder(int index) { + return pscServiceAttachments_.get(index); + } + + public static final int CLUSTER_ENDPOINTS_FIELD_NUMBER = 36; + + @SuppressWarnings("serial") + private java.util.List clusterEndpoints_; + /** + * + * + *
    +   * Optional. A list of cluster enpoints.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getClusterEndpointsList() { + return clusterEndpoints_; + } + /** + * + * + *
    +   * Optional. A list of cluster enpoints.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getClusterEndpointsOrBuilderList() { + return clusterEndpoints_; + } + /** + * + * + *
    +   * Optional. A list of cluster enpoints.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getClusterEndpointsCount() { + return clusterEndpoints_.size(); + } + /** + * + * + *
    +   * Optional. A list of cluster enpoints.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterEndpoint getClusterEndpoints(int index) { + return clusterEndpoints_.get(index); + } + /** + * + * + *
    +   * Optional. A list of cluster enpoints.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterEndpointOrBuilder getClusterEndpointsOrBuilder( + int index) { + return clusterEndpoints_.get(index); + } + + public static final int BACKUP_COLLECTION_FIELD_NUMBER = 39; + + @SuppressWarnings("serial") + private volatile java.lang.Object backupCollection_ = ""; + /** + * + * + *
    +   * Optional. Output only. The backup collection full resource name. Example:
    +   * projects/{project}/locations/{location}/backupCollections/{collection}
    +   * 
    + * + * + * optional string backup_collection = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the backupCollection field is set. + */ + @java.lang.Override + public boolean hasBackupCollection() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * + * + *
    +   * Optional. Output only. The backup collection full resource name. Example:
    +   * projects/{project}/locations/{location}/backupCollections/{collection}
    +   * 
    + * + * + * optional string backup_collection = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The backupCollection. + */ + @java.lang.Override + public java.lang.String getBackupCollection() { + java.lang.Object ref = backupCollection_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backupCollection_ = s; + return s; + } + } + /** + * + * + *
    +   * Optional. Output only. The backup collection full resource name. Example:
    +   * projects/{project}/locations/{location}/backupCollections/{collection}
    +   * 
    + * + * + * optional string backup_collection = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for backupCollection. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBackupCollectionBytes() { + java.lang.Object ref = backupCollection_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backupCollection_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KMS_KEY_FIELD_NUMBER = 40; + + @SuppressWarnings("serial") + private volatile java.lang.Object kmsKey_ = ""; + /** + * + * + *
    +   * Optional. The KMS key used to encrypt the at-rest data of the cluster.
    +   * 
    + * + * + * optional string kms_key = 40 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the kmsKey field is set. + */ + @java.lang.Override + public boolean hasKmsKey() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + * + * + *
    +   * Optional. The KMS key used to encrypt the at-rest data of the cluster.
    +   * 
    + * + * + * optional string kms_key = 40 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The kmsKey. + */ + @java.lang.Override + public java.lang.String getKmsKey() { + java.lang.Object ref = kmsKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKey_ = s; + return s; + } + } + /** + * + * + *
    +   * Optional. The KMS key used to encrypt the at-rest data of the cluster.
    +   * 
    + * + * + * optional string kms_key = 40 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for kmsKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKmsKeyBytes() { + java.lang.Object ref = kmsKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTOMATED_BACKUP_CONFIG_FIELD_NUMBER = 42; + private com.google.cloud.redis.cluster.v1.AutomatedBackupConfig automatedBackupConfig_; + /** + * + * + *
    +   * Optional. The automated backup config for the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.AutomatedBackupConfig automated_backup_config = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the automatedBackupConfig field is set. + */ + @java.lang.Override + public boolean hasAutomatedBackupConfig() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + * + * + *
    +   * Optional. The automated backup config for the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.AutomatedBackupConfig automated_backup_config = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The automatedBackupConfig. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AutomatedBackupConfig getAutomatedBackupConfig() { + return automatedBackupConfig_ == null + ? com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.getDefaultInstance() + : automatedBackupConfig_; + } + /** + * + * + *
    +   * Optional. The automated backup config for the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.AutomatedBackupConfig automated_backup_config = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AutomatedBackupConfigOrBuilder + getAutomatedBackupConfigOrBuilder() { + return automatedBackupConfig_ == null + ? com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.getDefaultInstance() + : automatedBackupConfig_; + } + + public static final int ENCRYPTION_INFO_FIELD_NUMBER = 43; + private com.google.cloud.redis.cluster.v1.EncryptionInfo encryptionInfo_; + /** + * + * + *
    +   * Output only. Encryption information of the data at rest of the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo encryption_info = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the encryptionInfo field is set. + */ + @java.lang.Override + public boolean hasEncryptionInfo() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + * + * + *
    +   * Output only. Encryption information of the data at rest of the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo encryption_info = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The encryptionInfo. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.EncryptionInfo getEncryptionInfo() { + return encryptionInfo_ == null + ? com.google.cloud.redis.cluster.v1.EncryptionInfo.getDefaultInstance() + : encryptionInfo_; + } + /** + * + * + *
    +   * Output only. Encryption information of the data at rest of the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo encryption_info = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.EncryptionInfoOrBuilder getEncryptionInfoOrBuilder() { + return encryptionInfo_ == null + ? com.google.cloud.redis.cluster.v1.EncryptionInfo.getDefaultInstance() + : encryptionInfo_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + if (state_ != com.google.cloud.redis.cluster.v1.Cluster.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(4, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, uid_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt32(8, replicaCount_); + } + if (authorizationMode_ + != com.google.cloud.redis.cluster.v1.AuthorizationMode.AUTH_MODE_UNSPECIFIED.getNumber()) { + output.writeEnum(11, authorizationMode_); + } + if (transitEncryptionMode_ + != com.google.cloud.redis.cluster.v1.TransitEncryptionMode + .TRANSIT_ENCRYPTION_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(12, transitEncryptionMode_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt32(13, sizeGb_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeInt32(14, shardCount_); + } + for (int i = 0; i < pscConfigs_.size(); i++) { + output.writeMessage(15, pscConfigs_.get(i)); + } + for (int i = 0; i < discoveryEndpoints_.size(); i++) { + output.writeMessage(16, discoveryEndpoints_.get(i)); + } + for (int i = 0; i < pscConnections_.size(); i++) { + output.writeMessage(17, pscConnections_.get(i)); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(18, getStateInfo()); + } + if (nodeType_ != com.google.cloud.redis.cluster.v1.NodeType.NODE_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(19, nodeType_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(20, getPersistenceConfig()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetRedisConfigs(), RedisConfigsDefaultEntryHolder.defaultEntry, 21); + if (((bitField0_ & 0x00000040) != 0)) { + output.writeDouble(22, preciseSizeGb_); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(23, getZoneDistributionConfig()); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(24, getCrossClusterReplicationConfig()); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeBool(25, deletionProtectionEnabled_); + } + if (((bitField0_ & 0x00000400) != 0)) { + output.writeMessage(26, getMaintenancePolicy()); + } + if (((bitField0_ & 0x00000800) != 0)) { + output.writeMessage(27, getMaintenanceSchedule()); + } + for (int i = 0; i < pscServiceAttachments_.size(); i++) { + output.writeMessage(30, pscServiceAttachments_.get(i)); + } + if (importSourcesCase_ == 34) { + output.writeMessage( + 34, (com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource) importSources_); + } + if (importSourcesCase_ == 35) { + output.writeMessage( + 35, (com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource) importSources_); + } + for (int i = 0; i < clusterEndpoints_.size(); i++) { + output.writeMessage(36, clusterEndpoints_.get(i)); + } + if (((bitField0_ & 0x00001000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 39, backupCollection_); + } + if (((bitField0_ & 0x00002000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 40, kmsKey_); + } + if (((bitField0_ & 0x00004000) != 0)) { + output.writeMessage(42, getAutomatedBackupConfig()); + } + if (((bitField0_ & 0x00008000) != 0)) { + output.writeMessage(43, getEncryptionInfo()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (state_ != com.google.cloud.redis.cluster.v1.Cluster.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, uid_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, replicaCount_); + } + if (authorizationMode_ + != com.google.cloud.redis.cluster.v1.AuthorizationMode.AUTH_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, authorizationMode_); + } + if (transitEncryptionMode_ + != com.google.cloud.redis.cluster.v1.TransitEncryptionMode + .TRANSIT_ENCRYPTION_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, transitEncryptionMode_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(13, sizeGb_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(14, shardCount_); + } + for (int i = 0; i < pscConfigs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, pscConfigs_.get(i)); + } + for (int i = 0; i < discoveryEndpoints_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(16, discoveryEndpoints_.get(i)); + } + for (int i = 0; i < pscConnections_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, pscConnections_.get(i)); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getStateInfo()); + } + if (nodeType_ != com.google.cloud.redis.cluster.v1.NodeType.NODE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(19, nodeType_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getPersistenceConfig()); + } + for (java.util.Map.Entry entry : + internalGetRedisConfigs().getMap().entrySet()) { + com.google.protobuf.MapEntry redisConfigs__ = + RedisConfigsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, redisConfigs__); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(22, preciseSizeGb_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(23, getZoneDistributionConfig()); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 24, getCrossClusterReplicationConfig()); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(25, deletionProtectionEnabled_); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, getMaintenancePolicy()); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(27, getMaintenanceSchedule()); + } + for (int i = 0; i < pscServiceAttachments_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 30, pscServiceAttachments_.get(i)); + } + if (importSourcesCase_ == 34) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 34, (com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource) importSources_); + } + if (importSourcesCase_ == 35) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 35, (com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource) importSources_); + } + for (int i = 0; i < clusterEndpoints_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(36, clusterEndpoints_.get(i)); + } + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(39, backupCollection_); + } + if (((bitField0_ & 0x00002000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(40, kmsKey_); + } + if (((bitField0_ & 0x00004000) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(42, getAutomatedBackupConfig()); + } + if (((bitField0_ & 0x00008000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(43, getEncryptionInfo()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1.Cluster)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.Cluster other = + (com.google.cloud.redis.cluster.v1.Cluster) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (state_ != other.state_) return false; + if (!getUid().equals(other.getUid())) return false; + if (hasReplicaCount() != other.hasReplicaCount()) return false; + if (hasReplicaCount()) { + if (getReplicaCount() != other.getReplicaCount()) return false; + } + if (authorizationMode_ != other.authorizationMode_) return false; + if (transitEncryptionMode_ != other.transitEncryptionMode_) return false; + if (hasSizeGb() != other.hasSizeGb()) return false; + if (hasSizeGb()) { + if (getSizeGb() != other.getSizeGb()) return false; + } + if (hasShardCount() != other.hasShardCount()) return false; + if (hasShardCount()) { + if (getShardCount() != other.getShardCount()) return false; + } + if (!getPscConfigsList().equals(other.getPscConfigsList())) return false; + if (!getDiscoveryEndpointsList().equals(other.getDiscoveryEndpointsList())) return false; + if (!getPscConnectionsList().equals(other.getPscConnectionsList())) return false; + if (hasStateInfo() != other.hasStateInfo()) return false; + if (hasStateInfo()) { + if (!getStateInfo().equals(other.getStateInfo())) return false; + } + if (nodeType_ != other.nodeType_) return false; + if (hasPersistenceConfig() != other.hasPersistenceConfig()) return false; + if (hasPersistenceConfig()) { + if (!getPersistenceConfig().equals(other.getPersistenceConfig())) return false; + } + if (!internalGetRedisConfigs().equals(other.internalGetRedisConfigs())) return false; + if (hasPreciseSizeGb() != other.hasPreciseSizeGb()) return false; + if (hasPreciseSizeGb()) { + if (java.lang.Double.doubleToLongBits(getPreciseSizeGb()) + != java.lang.Double.doubleToLongBits(other.getPreciseSizeGb())) return false; + } + if (hasZoneDistributionConfig() != other.hasZoneDistributionConfig()) return false; + if (hasZoneDistributionConfig()) { + if (!getZoneDistributionConfig().equals(other.getZoneDistributionConfig())) return false; + } + if (hasCrossClusterReplicationConfig() != other.hasCrossClusterReplicationConfig()) + return false; + if (hasCrossClusterReplicationConfig()) { + if (!getCrossClusterReplicationConfig().equals(other.getCrossClusterReplicationConfig())) + return false; + } + if (hasDeletionProtectionEnabled() != other.hasDeletionProtectionEnabled()) return false; + if (hasDeletionProtectionEnabled()) { + if (getDeletionProtectionEnabled() != other.getDeletionProtectionEnabled()) return false; + } + if (hasMaintenancePolicy() != other.hasMaintenancePolicy()) return false; + if (hasMaintenancePolicy()) { + if (!getMaintenancePolicy().equals(other.getMaintenancePolicy())) return false; + } + if (hasMaintenanceSchedule() != other.hasMaintenanceSchedule()) return false; + if (hasMaintenanceSchedule()) { + if (!getMaintenanceSchedule().equals(other.getMaintenanceSchedule())) return false; + } + if (!getPscServiceAttachmentsList().equals(other.getPscServiceAttachmentsList())) return false; + if (!getClusterEndpointsList().equals(other.getClusterEndpointsList())) return false; + if (hasBackupCollection() != other.hasBackupCollection()) return false; + if (hasBackupCollection()) { + if (!getBackupCollection().equals(other.getBackupCollection())) return false; + } + if (hasKmsKey() != other.hasKmsKey()) return false; + if (hasKmsKey()) { + if (!getKmsKey().equals(other.getKmsKey())) return false; + } + if (hasAutomatedBackupConfig() != other.hasAutomatedBackupConfig()) return false; + if (hasAutomatedBackupConfig()) { + if (!getAutomatedBackupConfig().equals(other.getAutomatedBackupConfig())) return false; + } + if (hasEncryptionInfo() != other.hasEncryptionInfo()) return false; + if (hasEncryptionInfo()) { + if (!getEncryptionInfo().equals(other.getEncryptionInfo())) return false; + } + if (!getImportSourcesCase().equals(other.getImportSourcesCase())) return false; + switch (importSourcesCase_) { + case 34: + if (!getGcsSource().equals(other.getGcsSource())) return false; + break; + case 35: + if (!getManagedBackupSource().equals(other.getManagedBackupSource())) 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(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + if (hasReplicaCount()) { + hash = (37 * hash) + REPLICA_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getReplicaCount(); + } + hash = (37 * hash) + AUTHORIZATION_MODE_FIELD_NUMBER; + hash = (53 * hash) + authorizationMode_; + hash = (37 * hash) + TRANSIT_ENCRYPTION_MODE_FIELD_NUMBER; + hash = (53 * hash) + transitEncryptionMode_; + if (hasSizeGb()) { + hash = (37 * hash) + SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + getSizeGb(); + } + if (hasShardCount()) { + hash = (37 * hash) + SHARD_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getShardCount(); + } + if (getPscConfigsCount() > 0) { + hash = (37 * hash) + PSC_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getPscConfigsList().hashCode(); + } + if (getDiscoveryEndpointsCount() > 0) { + hash = (37 * hash) + DISCOVERY_ENDPOINTS_FIELD_NUMBER; + hash = (53 * hash) + getDiscoveryEndpointsList().hashCode(); + } + if (getPscConnectionsCount() > 0) { + hash = (37 * hash) + PSC_CONNECTIONS_FIELD_NUMBER; + hash = (53 * hash) + getPscConnectionsList().hashCode(); + } + if (hasStateInfo()) { + hash = (37 * hash) + STATE_INFO_FIELD_NUMBER; + hash = (53 * hash) + getStateInfo().hashCode(); + } + hash = (37 * hash) + NODE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + nodeType_; + if (hasPersistenceConfig()) { + hash = (37 * hash) + PERSISTENCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getPersistenceConfig().hashCode(); + } + if (!internalGetRedisConfigs().getMap().isEmpty()) { + hash = (37 * hash) + REDIS_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetRedisConfigs().hashCode(); + } + if (hasPreciseSizeGb()) { + hash = (37 * hash) + PRECISE_SIZE_GB_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getPreciseSizeGb())); + } + if (hasZoneDistributionConfig()) { + hash = (37 * hash) + ZONE_DISTRIBUTION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getZoneDistributionConfig().hashCode(); + } + if (hasCrossClusterReplicationConfig()) { + hash = (37 * hash) + CROSS_CLUSTER_REPLICATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getCrossClusterReplicationConfig().hashCode(); + } + if (hasDeletionProtectionEnabled()) { + hash = (37 * hash) + DELETION_PROTECTION_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeletionProtectionEnabled()); + } + if (hasMaintenancePolicy()) { + hash = (37 * hash) + MAINTENANCE_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getMaintenancePolicy().hashCode(); + } + if (hasMaintenanceSchedule()) { + hash = (37 * hash) + MAINTENANCE_SCHEDULE_FIELD_NUMBER; + hash = (53 * hash) + getMaintenanceSchedule().hashCode(); + } + if (getPscServiceAttachmentsCount() > 0) { + hash = (37 * hash) + PSC_SERVICE_ATTACHMENTS_FIELD_NUMBER; + hash = (53 * hash) + getPscServiceAttachmentsList().hashCode(); + } + if (getClusterEndpointsCount() > 0) { + hash = (37 * hash) + CLUSTER_ENDPOINTS_FIELD_NUMBER; + hash = (53 * hash) + getClusterEndpointsList().hashCode(); + } + if (hasBackupCollection()) { + hash = (37 * hash) + BACKUP_COLLECTION_FIELD_NUMBER; + hash = (53 * hash) + getBackupCollection().hashCode(); + } + if (hasKmsKey()) { + hash = (37 * hash) + KMS_KEY_FIELD_NUMBER; + hash = (53 * hash) + getKmsKey().hashCode(); + } + if (hasAutomatedBackupConfig()) { + hash = (37 * hash) + AUTOMATED_BACKUP_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAutomatedBackupConfig().hashCode(); + } + if (hasEncryptionInfo()) { + hash = (37 * hash) + ENCRYPTION_INFO_FIELD_NUMBER; + hash = (53 * hash) + getEncryptionInfo().hashCode(); + } + switch (importSourcesCase_) { + case 34: + hash = (37 * hash) + GCS_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getGcsSource().hashCode(); + break; + case 35: + hash = (37 * hash) + MANAGED_BACKUP_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getManagedBackupSource().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.Cluster parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.Cluster parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.Cluster parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.Cluster parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.Cluster parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.Cluster parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.Cluster parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.Cluster parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.Cluster parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.Cluster parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.Cluster parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.Cluster parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.redis.cluster.v1.Cluster prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 cluster instance.
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.Cluster} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.Cluster) + com.google.cloud.redis.cluster.v1.ClusterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_Cluster_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 21: + return internalGetRedisConfigs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 21: + return internalGetMutableRedisConfigs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_Cluster_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.Cluster.class, + com.google.cloud.redis.cluster.v1.Cluster.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.Cluster.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(); + getPscConfigsFieldBuilder(); + getDiscoveryEndpointsFieldBuilder(); + getPscConnectionsFieldBuilder(); + getStateInfoFieldBuilder(); + getPersistenceConfigFieldBuilder(); + getZoneDistributionConfigFieldBuilder(); + getCrossClusterReplicationConfigFieldBuilder(); + getMaintenancePolicyFieldBuilder(); + getMaintenanceScheduleFieldBuilder(); + getPscServiceAttachmentsFieldBuilder(); + getClusterEndpointsFieldBuilder(); + getAutomatedBackupConfigFieldBuilder(); + getEncryptionInfoFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (gcsSourceBuilder_ != null) { + gcsSourceBuilder_.clear(); + } + if (managedBackupSourceBuilder_ != null) { + managedBackupSourceBuilder_.clear(); + } + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + state_ = 0; + uid_ = ""; + replicaCount_ = 0; + authorizationMode_ = 0; + transitEncryptionMode_ = 0; + sizeGb_ = 0; + shardCount_ = 0; + if (pscConfigsBuilder_ == null) { + pscConfigs_ = java.util.Collections.emptyList(); + } else { + pscConfigs_ = null; + pscConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000800); + if (discoveryEndpointsBuilder_ == null) { + discoveryEndpoints_ = java.util.Collections.emptyList(); + } else { + discoveryEndpoints_ = null; + discoveryEndpointsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00001000); + if (pscConnectionsBuilder_ == null) { + pscConnections_ = java.util.Collections.emptyList(); + } else { + pscConnections_ = null; + pscConnectionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00002000); + stateInfo_ = null; + if (stateInfoBuilder_ != null) { + stateInfoBuilder_.dispose(); + stateInfoBuilder_ = null; + } + nodeType_ = 0; + persistenceConfig_ = null; + if (persistenceConfigBuilder_ != null) { + persistenceConfigBuilder_.dispose(); + persistenceConfigBuilder_ = null; + } + internalGetMutableRedisConfigs().clear(); + preciseSizeGb_ = 0D; + zoneDistributionConfig_ = null; + if (zoneDistributionConfigBuilder_ != null) { + zoneDistributionConfigBuilder_.dispose(); + zoneDistributionConfigBuilder_ = null; + } + crossClusterReplicationConfig_ = null; + if (crossClusterReplicationConfigBuilder_ != null) { + crossClusterReplicationConfigBuilder_.dispose(); + crossClusterReplicationConfigBuilder_ = null; + } + deletionProtectionEnabled_ = false; + maintenancePolicy_ = null; + if (maintenancePolicyBuilder_ != null) { + maintenancePolicyBuilder_.dispose(); + maintenancePolicyBuilder_ = null; + } + maintenanceSchedule_ = null; + if (maintenanceScheduleBuilder_ != null) { + maintenanceScheduleBuilder_.dispose(); + maintenanceScheduleBuilder_ = null; + } + if (pscServiceAttachmentsBuilder_ == null) { + pscServiceAttachments_ = java.util.Collections.emptyList(); + } else { + pscServiceAttachments_ = null; + pscServiceAttachmentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x01000000); + if (clusterEndpointsBuilder_ == null) { + clusterEndpoints_ = java.util.Collections.emptyList(); + } else { + clusterEndpoints_ = null; + clusterEndpointsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x02000000); + backupCollection_ = ""; + kmsKey_ = ""; + automatedBackupConfig_ = null; + if (automatedBackupConfigBuilder_ != null) { + automatedBackupConfigBuilder_.dispose(); + automatedBackupConfigBuilder_ = null; + } + encryptionInfo_ = null; + if (encryptionInfoBuilder_ != null) { + encryptionInfoBuilder_.dispose(); + encryptionInfoBuilder_ = null; + } + importSourcesCase_ = 0; + importSources_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_Cluster_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.Cluster getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.Cluster.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.Cluster build() { + com.google.cloud.redis.cluster.v1.Cluster result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.Cluster buildPartial() { + com.google.cloud.redis.cluster.v1.Cluster result = + new com.google.cloud.redis.cluster.v1.Cluster(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.redis.cluster.v1.Cluster result) { + if (pscConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0)) { + pscConfigs_ = java.util.Collections.unmodifiableList(pscConfigs_); + bitField0_ = (bitField0_ & ~0x00000800); + } + result.pscConfigs_ = pscConfigs_; + } else { + result.pscConfigs_ = pscConfigsBuilder_.build(); + } + if (discoveryEndpointsBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0)) { + discoveryEndpoints_ = java.util.Collections.unmodifiableList(discoveryEndpoints_); + bitField0_ = (bitField0_ & ~0x00001000); + } + result.discoveryEndpoints_ = discoveryEndpoints_; + } else { + result.discoveryEndpoints_ = discoveryEndpointsBuilder_.build(); + } + if (pscConnectionsBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0)) { + pscConnections_ = java.util.Collections.unmodifiableList(pscConnections_); + bitField0_ = (bitField0_ & ~0x00002000); + } + result.pscConnections_ = pscConnections_; + } else { + result.pscConnections_ = pscConnectionsBuilder_.build(); + } + if (pscServiceAttachmentsBuilder_ == null) { + if (((bitField0_ & 0x01000000) != 0)) { + pscServiceAttachments_ = java.util.Collections.unmodifiableList(pscServiceAttachments_); + bitField0_ = (bitField0_ & ~0x01000000); + } + result.pscServiceAttachments_ = pscServiceAttachments_; + } else { + result.pscServiceAttachments_ = pscServiceAttachmentsBuilder_.build(); + } + if (clusterEndpointsBuilder_ == null) { + if (((bitField0_ & 0x02000000) != 0)) { + clusterEndpoints_ = java.util.Collections.unmodifiableList(clusterEndpoints_); + bitField0_ = (bitField0_ & ~0x02000000); + } + result.clusterEndpoints_ = clusterEndpoints_; + } else { + result.clusterEndpoints_ = clusterEndpointsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1.Cluster result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.name_ = name_; + } + 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.state_ = state_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.uid_ = uid_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.replicaCount_ = replicaCount_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.authorizationMode_ = authorizationMode_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.transitEncryptionMode_ = transitEncryptionMode_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.sizeGb_ = sizeGb_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.shardCount_ = shardCount_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.stateInfo_ = stateInfoBuilder_ == null ? stateInfo_ : stateInfoBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.nodeType_ = nodeType_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.persistenceConfig_ = + persistenceConfigBuilder_ == null + ? persistenceConfig_ + : persistenceConfigBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.redisConfigs_ = internalGetRedisConfigs(); + result.redisConfigs_.makeImmutable(); + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.preciseSizeGb_ = preciseSizeGb_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.zoneDistributionConfig_ = + zoneDistributionConfigBuilder_ == null + ? zoneDistributionConfig_ + : zoneDistributionConfigBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.crossClusterReplicationConfig_ = + crossClusterReplicationConfigBuilder_ == null + ? crossClusterReplicationConfig_ + : crossClusterReplicationConfigBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.deletionProtectionEnabled_ = deletionProtectionEnabled_; + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.maintenancePolicy_ = + maintenancePolicyBuilder_ == null + ? maintenancePolicy_ + : maintenancePolicyBuilder_.build(); + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.maintenanceSchedule_ = + maintenanceScheduleBuilder_ == null + ? maintenanceSchedule_ + : maintenanceScheduleBuilder_.build(); + to_bitField0_ |= 0x00000800; + } + if (((from_bitField0_ & 0x04000000) != 0)) { + result.backupCollection_ = backupCollection_; + to_bitField0_ |= 0x00001000; + } + if (((from_bitField0_ & 0x08000000) != 0)) { + result.kmsKey_ = kmsKey_; + to_bitField0_ |= 0x00002000; + } + if (((from_bitField0_ & 0x10000000) != 0)) { + result.automatedBackupConfig_ = + automatedBackupConfigBuilder_ == null + ? automatedBackupConfig_ + : automatedBackupConfigBuilder_.build(); + to_bitField0_ |= 0x00004000; + } + if (((from_bitField0_ & 0x20000000) != 0)) { + result.encryptionInfo_ = + encryptionInfoBuilder_ == null ? encryptionInfo_ : encryptionInfoBuilder_.build(); + to_bitField0_ |= 0x00008000; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.redis.cluster.v1.Cluster result) { + result.importSourcesCase_ = importSourcesCase_; + result.importSources_ = this.importSources_; + if (importSourcesCase_ == 34 && gcsSourceBuilder_ != null) { + result.importSources_ = gcsSourceBuilder_.build(); + } + if (importSourcesCase_ == 35 && managedBackupSourceBuilder_ != null) { + result.importSources_ = managedBackupSourceBuilder_.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.redis.cluster.v1.Cluster) { + return mergeFrom((com.google.cloud.redis.cluster.v1.Cluster) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.Cluster other) { + if (other == com.google.cloud.redis.cluster.v1.Cluster.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasReplicaCount()) { + setReplicaCount(other.getReplicaCount()); + } + if (other.authorizationMode_ != 0) { + setAuthorizationModeValue(other.getAuthorizationModeValue()); + } + if (other.transitEncryptionMode_ != 0) { + setTransitEncryptionModeValue(other.getTransitEncryptionModeValue()); + } + if (other.hasSizeGb()) { + setSizeGb(other.getSizeGb()); + } + if (other.hasShardCount()) { + setShardCount(other.getShardCount()); + } + if (pscConfigsBuilder_ == null) { + if (!other.pscConfigs_.isEmpty()) { + if (pscConfigs_.isEmpty()) { + pscConfigs_ = other.pscConfigs_; + bitField0_ = (bitField0_ & ~0x00000800); + } else { + ensurePscConfigsIsMutable(); + pscConfigs_.addAll(other.pscConfigs_); + } + onChanged(); + } + } else { + if (!other.pscConfigs_.isEmpty()) { + if (pscConfigsBuilder_.isEmpty()) { + pscConfigsBuilder_.dispose(); + pscConfigsBuilder_ = null; + pscConfigs_ = other.pscConfigs_; + bitField0_ = (bitField0_ & ~0x00000800); + pscConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPscConfigsFieldBuilder() + : null; + } else { + pscConfigsBuilder_.addAllMessages(other.pscConfigs_); + } + } + } + if (discoveryEndpointsBuilder_ == null) { + if (!other.discoveryEndpoints_.isEmpty()) { + if (discoveryEndpoints_.isEmpty()) { + discoveryEndpoints_ = other.discoveryEndpoints_; + bitField0_ = (bitField0_ & ~0x00001000); + } else { + ensureDiscoveryEndpointsIsMutable(); + discoveryEndpoints_.addAll(other.discoveryEndpoints_); + } + onChanged(); + } + } else { + if (!other.discoveryEndpoints_.isEmpty()) { + if (discoveryEndpointsBuilder_.isEmpty()) { + discoveryEndpointsBuilder_.dispose(); + discoveryEndpointsBuilder_ = null; + discoveryEndpoints_ = other.discoveryEndpoints_; + bitField0_ = (bitField0_ & ~0x00001000); + discoveryEndpointsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDiscoveryEndpointsFieldBuilder() + : null; + } else { + discoveryEndpointsBuilder_.addAllMessages(other.discoveryEndpoints_); + } + } + } + if (pscConnectionsBuilder_ == null) { + if (!other.pscConnections_.isEmpty()) { + if (pscConnections_.isEmpty()) { + pscConnections_ = other.pscConnections_; + bitField0_ = (bitField0_ & ~0x00002000); + } else { + ensurePscConnectionsIsMutable(); + pscConnections_.addAll(other.pscConnections_); + } + onChanged(); + } + } else { + if (!other.pscConnections_.isEmpty()) { + if (pscConnectionsBuilder_.isEmpty()) { + pscConnectionsBuilder_.dispose(); + pscConnectionsBuilder_ = null; + pscConnections_ = other.pscConnections_; + bitField0_ = (bitField0_ & ~0x00002000); + pscConnectionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPscConnectionsFieldBuilder() + : null; + } else { + pscConnectionsBuilder_.addAllMessages(other.pscConnections_); + } + } + } + if (other.hasStateInfo()) { + mergeStateInfo(other.getStateInfo()); + } + if (other.nodeType_ != 0) { + setNodeTypeValue(other.getNodeTypeValue()); + } + if (other.hasPersistenceConfig()) { + mergePersistenceConfig(other.getPersistenceConfig()); + } + internalGetMutableRedisConfigs().mergeFrom(other.internalGetRedisConfigs()); + bitField0_ |= 0x00020000; + if (other.hasPreciseSizeGb()) { + setPreciseSizeGb(other.getPreciseSizeGb()); + } + if (other.hasZoneDistributionConfig()) { + mergeZoneDistributionConfig(other.getZoneDistributionConfig()); + } + if (other.hasCrossClusterReplicationConfig()) { + mergeCrossClusterReplicationConfig(other.getCrossClusterReplicationConfig()); + } + if (other.hasDeletionProtectionEnabled()) { + setDeletionProtectionEnabled(other.getDeletionProtectionEnabled()); + } + if (other.hasMaintenancePolicy()) { + mergeMaintenancePolicy(other.getMaintenancePolicy()); + } + if (other.hasMaintenanceSchedule()) { + mergeMaintenanceSchedule(other.getMaintenanceSchedule()); + } + if (pscServiceAttachmentsBuilder_ == null) { + if (!other.pscServiceAttachments_.isEmpty()) { + if (pscServiceAttachments_.isEmpty()) { + pscServiceAttachments_ = other.pscServiceAttachments_; + bitField0_ = (bitField0_ & ~0x01000000); + } else { + ensurePscServiceAttachmentsIsMutable(); + pscServiceAttachments_.addAll(other.pscServiceAttachments_); + } + onChanged(); + } + } else { + if (!other.pscServiceAttachments_.isEmpty()) { + if (pscServiceAttachmentsBuilder_.isEmpty()) { + pscServiceAttachmentsBuilder_.dispose(); + pscServiceAttachmentsBuilder_ = null; + pscServiceAttachments_ = other.pscServiceAttachments_; + bitField0_ = (bitField0_ & ~0x01000000); + pscServiceAttachmentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPscServiceAttachmentsFieldBuilder() + : null; + } else { + pscServiceAttachmentsBuilder_.addAllMessages(other.pscServiceAttachments_); + } + } + } + if (clusterEndpointsBuilder_ == null) { + if (!other.clusterEndpoints_.isEmpty()) { + if (clusterEndpoints_.isEmpty()) { + clusterEndpoints_ = other.clusterEndpoints_; + bitField0_ = (bitField0_ & ~0x02000000); + } else { + ensureClusterEndpointsIsMutable(); + clusterEndpoints_.addAll(other.clusterEndpoints_); + } + onChanged(); + } + } else { + if (!other.clusterEndpoints_.isEmpty()) { + if (clusterEndpointsBuilder_.isEmpty()) { + clusterEndpointsBuilder_.dispose(); + clusterEndpointsBuilder_ = null; + clusterEndpoints_ = other.clusterEndpoints_; + bitField0_ = (bitField0_ & ~0x02000000); + clusterEndpointsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getClusterEndpointsFieldBuilder() + : null; + } else { + clusterEndpointsBuilder_.addAllMessages(other.clusterEndpoints_); + } + } + } + if (other.hasBackupCollection()) { + backupCollection_ = other.backupCollection_; + bitField0_ |= 0x04000000; + onChanged(); + } + if (other.hasKmsKey()) { + kmsKey_ = other.kmsKey_; + bitField0_ |= 0x08000000; + onChanged(); + } + if (other.hasAutomatedBackupConfig()) { + mergeAutomatedBackupConfig(other.getAutomatedBackupConfig()); + } + if (other.hasEncryptionInfo()) { + mergeEncryptionInfo(other.getEncryptionInfo()); + } + switch (other.getImportSourcesCase()) { + case GCS_SOURCE: + { + mergeGcsSource(other.getGcsSource()); + break; + } + case MANAGED_BACKUP_SOURCE: + { + mergeManagedBackupSource(other.getManagedBackupSource()); + break; + } + case IMPORTSOURCES_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 26: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 32: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 32 + case 42: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 64: + { + replicaCount_ = input.readInt32(); + bitField0_ |= 0x00000040; + break; + } // case 64 + case 88: + { + authorizationMode_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 88 + case 96: + { + transitEncryptionMode_ = input.readEnum(); + bitField0_ |= 0x00000100; + break; + } // case 96 + case 104: + { + sizeGb_ = input.readInt32(); + bitField0_ |= 0x00000200; + break; + } // case 104 + case 112: + { + shardCount_ = input.readInt32(); + bitField0_ |= 0x00000400; + break; + } // case 112 + case 122: + { + com.google.cloud.redis.cluster.v1.PscConfig m = + input.readMessage( + com.google.cloud.redis.cluster.v1.PscConfig.parser(), extensionRegistry); + if (pscConfigsBuilder_ == null) { + ensurePscConfigsIsMutable(); + pscConfigs_.add(m); + } else { + pscConfigsBuilder_.addMessage(m); + } + break; + } // case 122 + case 130: + { + com.google.cloud.redis.cluster.v1.DiscoveryEndpoint m = + input.readMessage( + com.google.cloud.redis.cluster.v1.DiscoveryEndpoint.parser(), + extensionRegistry); + if (discoveryEndpointsBuilder_ == null) { + ensureDiscoveryEndpointsIsMutable(); + discoveryEndpoints_.add(m); + } else { + discoveryEndpointsBuilder_.addMessage(m); + } + break; + } // case 130 + case 138: + { + com.google.cloud.redis.cluster.v1.PscConnection m = + input.readMessage( + com.google.cloud.redis.cluster.v1.PscConnection.parser(), + extensionRegistry); + if (pscConnectionsBuilder_ == null) { + ensurePscConnectionsIsMutable(); + pscConnections_.add(m); + } else { + pscConnectionsBuilder_.addMessage(m); + } + break; + } // case 138 + case 146: + { + input.readMessage(getStateInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 146 + case 152: + { + nodeType_ = input.readEnum(); + bitField0_ |= 0x00008000; + break; + } // case 152 + case 162: + { + input.readMessage( + getPersistenceConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 162 + case 170: + { + com.google.protobuf.MapEntry redisConfigs__ = + input.readMessage( + RedisConfigsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableRedisConfigs() + .getMutableMap() + .put(redisConfigs__.getKey(), redisConfigs__.getValue()); + bitField0_ |= 0x00020000; + break; + } // case 170 + case 177: + { + preciseSizeGb_ = input.readDouble(); + bitField0_ |= 0x00040000; + break; + } // case 177 + case 186: + { + input.readMessage( + getZoneDistributionConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00080000; + break; + } // case 186 + case 194: + { + input.readMessage( + getCrossClusterReplicationConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00100000; + break; + } // case 194 + case 200: + { + deletionProtectionEnabled_ = input.readBool(); + bitField0_ |= 0x00200000; + break; + } // case 200 + case 210: + { + input.readMessage( + getMaintenancePolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00400000; + break; + } // case 210 + case 218: + { + input.readMessage( + getMaintenanceScheduleFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00800000; + break; + } // case 218 + case 242: + { + com.google.cloud.redis.cluster.v1.PscServiceAttachment m = + input.readMessage( + com.google.cloud.redis.cluster.v1.PscServiceAttachment.parser(), + extensionRegistry); + if (pscServiceAttachmentsBuilder_ == null) { + ensurePscServiceAttachmentsIsMutable(); + pscServiceAttachments_.add(m); + } else { + pscServiceAttachmentsBuilder_.addMessage(m); + } + break; + } // case 242 + case 274: + { + input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); + importSourcesCase_ = 34; + break; + } // case 274 + case 282: + { + input.readMessage( + getManagedBackupSourceFieldBuilder().getBuilder(), extensionRegistry); + importSourcesCase_ = 35; + break; + } // case 282 + case 290: + { + com.google.cloud.redis.cluster.v1.ClusterEndpoint m = + input.readMessage( + com.google.cloud.redis.cluster.v1.ClusterEndpoint.parser(), + extensionRegistry); + if (clusterEndpointsBuilder_ == null) { + ensureClusterEndpointsIsMutable(); + clusterEndpoints_.add(m); + } else { + clusterEndpointsBuilder_.addMessage(m); + } + break; + } // case 290 + case 314: + { + backupCollection_ = input.readStringRequireUtf8(); + bitField0_ |= 0x04000000; + break; + } // case 314 + case 322: + { + kmsKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x08000000; + break; + } // case 322 + case 338: + { + input.readMessage( + getAutomatedBackupConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x10000000; + break; + } // case 338 + case 346: + { + input.readMessage(getEncryptionInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x20000000; + break; + } // case 346 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int importSourcesCase_ = 0; + private java.lang.Object importSources_; + + public ImportSourcesCase getImportSourcesCase() { + return ImportSourcesCase.forNumber(importSourcesCase_); + } + + public Builder clearImportSources() { + importSourcesCase_ = 0; + importSources_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource, + com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource.Builder, + com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSourceOrBuilder> + gcsSourceBuilder_; + /** + * + * + *
    +     * Optional. Backups stored in Cloud Storage buckets.
    +     * The Cloud Storage buckets need to be the same region as the clusters.
    +     * Read permission is required to import from the provided Cloud Storage
    +     * objects.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.Cluster.GcsBackupSource gcs_source = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gcsSource field is set. + */ + @java.lang.Override + public boolean hasGcsSource() { + return importSourcesCase_ == 34; + } + /** + * + * + *
    +     * Optional. Backups stored in Cloud Storage buckets.
    +     * The Cloud Storage buckets need to be the same region as the clusters.
    +     * Read permission is required to import from the provided Cloud Storage
    +     * objects.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.Cluster.GcsBackupSource gcs_source = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gcsSource. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource getGcsSource() { + if (gcsSourceBuilder_ == null) { + if (importSourcesCase_ == 34) { + return (com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource) importSources_; + } + return com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource.getDefaultInstance(); + } else { + if (importSourcesCase_ == 34) { + return gcsSourceBuilder_.getMessage(); + } + return com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Optional. Backups stored in Cloud Storage buckets.
    +     * The Cloud Storage buckets need to be the same region as the clusters.
    +     * Read permission is required to import from the provided Cloud Storage
    +     * objects.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.Cluster.GcsBackupSource gcs_source = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGcsSource(com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource value) { + if (gcsSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + importSources_ = value; + onChanged(); + } else { + gcsSourceBuilder_.setMessage(value); + } + importSourcesCase_ = 34; + return this; + } + /** + * + * + *
    +     * Optional. Backups stored in Cloud Storage buckets.
    +     * The Cloud Storage buckets need to be the same region as the clusters.
    +     * Read permission is required to import from the provided Cloud Storage
    +     * objects.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.Cluster.GcsBackupSource gcs_source = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGcsSource( + com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource.Builder builderForValue) { + if (gcsSourceBuilder_ == null) { + importSources_ = builderForValue.build(); + onChanged(); + } else { + gcsSourceBuilder_.setMessage(builderForValue.build()); + } + importSourcesCase_ = 34; + return this; + } + /** + * + * + *
    +     * Optional. Backups stored in Cloud Storage buckets.
    +     * The Cloud Storage buckets need to be the same region as the clusters.
    +     * Read permission is required to import from the provided Cloud Storage
    +     * objects.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.Cluster.GcsBackupSource gcs_source = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeGcsSource(com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource value) { + if (gcsSourceBuilder_ == null) { + if (importSourcesCase_ == 34 + && importSources_ + != com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource.getDefaultInstance()) { + importSources_ = + com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource.newBuilder( + (com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource) importSources_) + .mergeFrom(value) + .buildPartial(); + } else { + importSources_ = value; + } + onChanged(); + } else { + if (importSourcesCase_ == 34) { + gcsSourceBuilder_.mergeFrom(value); + } else { + gcsSourceBuilder_.setMessage(value); + } + } + importSourcesCase_ = 34; + return this; + } + /** + * + * + *
    +     * Optional. Backups stored in Cloud Storage buckets.
    +     * The Cloud Storage buckets need to be the same region as the clusters.
    +     * Read permission is required to import from the provided Cloud Storage
    +     * objects.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.Cluster.GcsBackupSource gcs_source = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGcsSource() { + if (gcsSourceBuilder_ == null) { + if (importSourcesCase_ == 34) { + importSourcesCase_ = 0; + importSources_ = null; + onChanged(); + } + } else { + if (importSourcesCase_ == 34) { + importSourcesCase_ = 0; + importSources_ = null; + } + gcsSourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * Optional. Backups stored in Cloud Storage buckets.
    +     * The Cloud Storage buckets need to be the same region as the clusters.
    +     * Read permission is required to import from the provided Cloud Storage
    +     * objects.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.Cluster.GcsBackupSource gcs_source = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource.Builder getGcsSourceBuilder() { + return getGcsSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Optional. Backups stored in Cloud Storage buckets.
    +     * The Cloud Storage buckets need to be the same region as the clusters.
    +     * Read permission is required to import from the provided Cloud Storage
    +     * objects.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.Cluster.GcsBackupSource gcs_source = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSourceOrBuilder + getGcsSourceOrBuilder() { + if ((importSourcesCase_ == 34) && (gcsSourceBuilder_ != null)) { + return gcsSourceBuilder_.getMessageOrBuilder(); + } else { + if (importSourcesCase_ == 34) { + return (com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource) importSources_; + } + return com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Optional. Backups stored in Cloud Storage buckets.
    +     * The Cloud Storage buckets need to be the same region as the clusters.
    +     * Read permission is required to import from the provided Cloud Storage
    +     * objects.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.Cluster.GcsBackupSource gcs_source = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource, + com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource.Builder, + com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSourceOrBuilder> + getGcsSourceFieldBuilder() { + if (gcsSourceBuilder_ == null) { + if (!(importSourcesCase_ == 34)) { + importSources_ = + com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource.getDefaultInstance(); + } + gcsSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource, + com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource.Builder, + com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSourceOrBuilder>( + (com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource) importSources_, + getParentForChildren(), + isClean()); + importSources_ = null; + } + importSourcesCase_ = 34; + onChanged(); + return gcsSourceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource, + com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource.Builder, + com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSourceOrBuilder> + managedBackupSourceBuilder_; + /** + * + * + *
    +     * Optional. Backups generated and managed by memorystore service.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource managed_backup_source = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the managedBackupSource field is set. + */ + @java.lang.Override + public boolean hasManagedBackupSource() { + return importSourcesCase_ == 35; + } + /** + * + * + *
    +     * Optional. Backups generated and managed by memorystore service.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource managed_backup_source = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The managedBackupSource. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource getManagedBackupSource() { + if (managedBackupSourceBuilder_ == null) { + if (importSourcesCase_ == 35) { + return (com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource) importSources_; + } + return com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource.getDefaultInstance(); + } else { + if (importSourcesCase_ == 35) { + return managedBackupSourceBuilder_.getMessage(); + } + return com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Optional. Backups generated and managed by memorystore service.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource managed_backup_source = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setManagedBackupSource( + com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource value) { + if (managedBackupSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + importSources_ = value; + onChanged(); + } else { + managedBackupSourceBuilder_.setMessage(value); + } + importSourcesCase_ = 35; + return this; + } + /** + * + * + *
    +     * Optional. Backups generated and managed by memorystore service.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource managed_backup_source = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setManagedBackupSource( + com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource.Builder builderForValue) { + if (managedBackupSourceBuilder_ == null) { + importSources_ = builderForValue.build(); + onChanged(); + } else { + managedBackupSourceBuilder_.setMessage(builderForValue.build()); + } + importSourcesCase_ = 35; + return this; + } + /** + * + * + *
    +     * Optional. Backups generated and managed by memorystore service.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource managed_backup_source = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeManagedBackupSource( + com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource value) { + if (managedBackupSourceBuilder_ == null) { + if (importSourcesCase_ == 35 + && importSources_ + != com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource + .getDefaultInstance()) { + importSources_ = + com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource.newBuilder( + (com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource) + importSources_) + .mergeFrom(value) + .buildPartial(); + } else { + importSources_ = value; + } + onChanged(); + } else { + if (importSourcesCase_ == 35) { + managedBackupSourceBuilder_.mergeFrom(value); + } else { + managedBackupSourceBuilder_.setMessage(value); + } + } + importSourcesCase_ = 35; + return this; + } + /** + * + * + *
    +     * Optional. Backups generated and managed by memorystore service.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource managed_backup_source = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearManagedBackupSource() { + if (managedBackupSourceBuilder_ == null) { + if (importSourcesCase_ == 35) { + importSourcesCase_ = 0; + importSources_ = null; + onChanged(); + } + } else { + if (importSourcesCase_ == 35) { + importSourcesCase_ = 0; + importSources_ = null; + } + managedBackupSourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * Optional. Backups generated and managed by memorystore service.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource managed_backup_source = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource.Builder + getManagedBackupSourceBuilder() { + return getManagedBackupSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Optional. Backups generated and managed by memorystore service.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource managed_backup_source = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSourceOrBuilder + getManagedBackupSourceOrBuilder() { + if ((importSourcesCase_ == 35) && (managedBackupSourceBuilder_ != null)) { + return managedBackupSourceBuilder_.getMessageOrBuilder(); + } else { + if (importSourcesCase_ == 35) { + return (com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource) importSources_; + } + return com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Optional. Backups generated and managed by memorystore service.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource managed_backup_source = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource, + com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource.Builder, + com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSourceOrBuilder> + getManagedBackupSourceFieldBuilder() { + if (managedBackupSourceBuilder_ == null) { + if (!(importSourcesCase_ == 35)) { + importSources_ = + com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource.getDefaultInstance(); + } + managedBackupSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource, + com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource.Builder, + com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSourceOrBuilder>( + (com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource) importSources_, + getParentForChildren(), + isClean()); + importSources_ = null; + } + importSourcesCase_ = 35; + onChanged(); + return managedBackupSourceBuilder_; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
    +     * Required. Identifier. Unique name of the resource in this scope including
    +     * project and location using the form:
    +     *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @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. Identifier. Unique name of the resource in this scope including
    +     * project and location using the form:
    +     *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @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. Identifier. Unique name of the resource in this scope including
    +     * project and location using the form:
    +     *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Identifier. Unique name of the resource in this scope including
    +     * project and location using the form:
    +     *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Identifier. Unique name of the resource in this scope including
    +     * project and location using the form:
    +     *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } - @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_); + 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. The timestamp associated with the cluster creation request.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000008) != 0); } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getCreateTime()); + /** + * + * + *
    +     * Output only. The timestamp associated with the cluster creation request.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.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(); + } } - if (state_ != com.google.cloud.redis.cluster.v1.Cluster.State.STATE_UNSPECIFIED.getNumber()) { - output.writeEnum(4, state_); + /** + * + * + *
    +     * Output only. The timestamp associated with the cluster creation request.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.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; } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, uid_); + /** + * + * + *
    +     * Output only. The timestamp associated with the cluster creation request.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.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; } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeInt32(8, replicaCount_); + /** + * + * + *
    +     * Output only. The timestamp associated with the cluster creation request.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.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; } - if (authorizationMode_ - != com.google.cloud.redis.cluster.v1.AuthorizationMode.AUTH_MODE_UNSPECIFIED.getNumber()) { - output.writeEnum(11, authorizationMode_); + /** + * + * + *
    +     * Output only. The timestamp associated with the cluster creation request.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; } - if (transitEncryptionMode_ - != com.google.cloud.redis.cluster.v1.TransitEncryptionMode - .TRANSIT_ENCRYPTION_MODE_UNSPECIFIED - .getNumber()) { - output.writeEnum(12, transitEncryptionMode_); + /** + * + * + *
    +     * Output only. The timestamp associated with the cluster creation request.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeInt32(13, sizeGb_); + /** + * + * + *
    +     * Output only. The timestamp associated with the cluster creation request.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.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_; + } } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeInt32(14, shardCount_); + /** + * + * + *
    +     * Output only. The timestamp associated with the cluster creation request.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.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 int state_ = 0; + /** + * + * + *
    +     * Output only. The current state of this cluster.
    +     * Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.Cluster.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; } - for (int i = 0; i < pscConfigs_.size(); i++) { - output.writeMessage(15, pscConfigs_.get(i)); + /** + * + * + *
    +     * Output only. The current state of this cluster.
    +     * Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.Cluster.State state = 4 [(.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_ |= 0x00000010; + onChanged(); + return this; } - for (int i = 0; i < discoveryEndpoints_.size(); i++) { - output.writeMessage(16, discoveryEndpoints_.get(i)); + /** + * + * + *
    +     * Output only. The current state of this cluster.
    +     * Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.Cluster.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.Cluster.State getState() { + com.google.cloud.redis.cluster.v1.Cluster.State result = + com.google.cloud.redis.cluster.v1.Cluster.State.forNumber(state_); + return result == null ? com.google.cloud.redis.cluster.v1.Cluster.State.UNRECOGNIZED : result; } - for (int i = 0; i < pscConnections_.size(); i++) { - output.writeMessage(17, pscConnections_.get(i)); + /** + * + * + *
    +     * Output only. The current state of this cluster.
    +     * Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.Cluster.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.redis.cluster.v1.Cluster.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + state_ = value.getNumber(); + onChanged(); + return this; } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeMessage(18, getStateInfo()); + /** + * + * + *
    +     * Output only. The current state of this cluster.
    +     * Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.Cluster.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000010); + state_ = 0; + onChanged(); + return this; } - if (nodeType_ != com.google.cloud.redis.cluster.v1.NodeType.NODE_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(19, nodeType_); + + private java.lang.Object uid_ = ""; + /** + * + * + *
    +     * Output only. System assigned, unique identifier for the cluster.
    +     * 
    + * + * string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeMessage(20, getPersistenceConfig()); + /** + * + * + *
    +     * Output only. System assigned, unique identifier for the cluster.
    +     * 
    + * + * string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetRedisConfigs(), RedisConfigsDefaultEntryHolder.defaultEntry, 21); - if (((bitField0_ & 0x00000040) != 0)) { - output.writeDouble(22, preciseSizeGb_); + /** + * + * + *
    +     * Output only. System assigned, unique identifier for the cluster.
    +     * 
    + * + * string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uid_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; } - if (((bitField0_ & 0x00000080) != 0)) { - output.writeMessage(23, getZoneDistributionConfig()); + /** + * + * + *
    +     * Output only. System assigned, unique identifier for the cluster.
    +     * 
    + * + * string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; } - if (((bitField0_ & 0x00000100) != 0)) { - output.writeBool(25, deletionProtectionEnabled_); + /** + * + * + *
    +     * Output only. System assigned, unique identifier for the cluster.
    +     * 
    + * + * string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); - } - if (state_ != com.google.cloud.redis.cluster.v1.Cluster.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, uid_); + private int replicaCount_; + /** + * + * + *
    +     * Optional. The number of replica nodes per shard.
    +     * 
    + * + * optional int32 replica_count = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the replicaCount field is set. + */ + @java.lang.Override + public boolean hasReplicaCount() { + return ((bitField0_ & 0x00000040) != 0); } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, replicaCount_); + /** + * + * + *
    +     * Optional. The number of replica nodes per shard.
    +     * 
    + * + * optional int32 replica_count = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The replicaCount. + */ + @java.lang.Override + public int getReplicaCount() { + return replicaCount_; } - if (authorizationMode_ - != com.google.cloud.redis.cluster.v1.AuthorizationMode.AUTH_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, authorizationMode_); + /** + * + * + *
    +     * Optional. The number of replica nodes per shard.
    +     * 
    + * + * optional int32 replica_count = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The replicaCount to set. + * @return This builder for chaining. + */ + public Builder setReplicaCount(int value) { + + replicaCount_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; } - if (transitEncryptionMode_ - != com.google.cloud.redis.cluster.v1.TransitEncryptionMode - .TRANSIT_ENCRYPTION_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, transitEncryptionMode_); + /** + * + * + *
    +     * Optional. The number of replica nodes per shard.
    +     * 
    + * + * optional int32 replica_count = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearReplicaCount() { + bitField0_ = (bitField0_ & ~0x00000040); + replicaCount_ = 0; + onChanged(); + return this; } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(13, sizeGb_); + + private int authorizationMode_ = 0; + /** + * + * + *
    +     * Optional. The authorization mode of the Redis cluster.
    +     * If not provided, auth feature is disabled for the cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.AuthorizationMode authorization_mode = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for authorizationMode. + */ + @java.lang.Override + public int getAuthorizationModeValue() { + return authorizationMode_; } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(14, shardCount_); + /** + * + * + *
    +     * Optional. The authorization mode of the Redis cluster.
    +     * If not provided, auth feature is disabled for the cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.AuthorizationMode authorization_mode = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for authorizationMode to set. + * @return This builder for chaining. + */ + public Builder setAuthorizationModeValue(int value) { + authorizationMode_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; } - for (int i = 0; i < pscConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, pscConfigs_.get(i)); + /** + * + * + *
    +     * Optional. The authorization mode of the Redis cluster.
    +     * If not provided, auth feature is disabled for the cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.AuthorizationMode authorization_mode = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The authorizationMode. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.AuthorizationMode getAuthorizationMode() { + com.google.cloud.redis.cluster.v1.AuthorizationMode result = + com.google.cloud.redis.cluster.v1.AuthorizationMode.forNumber(authorizationMode_); + return result == null + ? com.google.cloud.redis.cluster.v1.AuthorizationMode.UNRECOGNIZED + : result; } - for (int i = 0; i < discoveryEndpoints_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(16, discoveryEndpoints_.get(i)); + /** + * + * + *
    +     * Optional. The authorization mode of the Redis cluster.
    +     * If not provided, auth feature is disabled for the cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.AuthorizationMode authorization_mode = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The authorizationMode to set. + * @return This builder for chaining. + */ + public Builder setAuthorizationMode(com.google.cloud.redis.cluster.v1.AuthorizationMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + authorizationMode_ = value.getNumber(); + onChanged(); + return this; } - for (int i = 0; i < pscConnections_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, pscConnections_.get(i)); + /** + * + * + *
    +     * Optional. The authorization mode of the Redis cluster.
    +     * If not provided, auth feature is disabled for the cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.AuthorizationMode authorization_mode = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAuthorizationMode() { + bitField0_ = (bitField0_ & ~0x00000080); + authorizationMode_ = 0; + onChanged(); + return this; } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getStateInfo()); + + private int transitEncryptionMode_ = 0; + /** + * + * + *
    +     * Optional. The in-transit encryption for the Redis cluster.
    +     * If not provided, encryption  is disabled for the cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.TransitEncryptionMode transit_encryption_mode = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for transitEncryptionMode. + */ + @java.lang.Override + public int getTransitEncryptionModeValue() { + return transitEncryptionMode_; } - if (nodeType_ != com.google.cloud.redis.cluster.v1.NodeType.NODE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(19, nodeType_); + /** + * + * + *
    +     * Optional. The in-transit encryption for the Redis cluster.
    +     * If not provided, encryption  is disabled for the cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.TransitEncryptionMode transit_encryption_mode = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for transitEncryptionMode to set. + * @return This builder for chaining. + */ + public Builder setTransitEncryptionModeValue(int value) { + transitEncryptionMode_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getPersistenceConfig()); + /** + * + * + *
    +     * Optional. The in-transit encryption for the Redis cluster.
    +     * If not provided, encryption  is disabled for the cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.TransitEncryptionMode transit_encryption_mode = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The transitEncryptionMode. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.TransitEncryptionMode getTransitEncryptionMode() { + com.google.cloud.redis.cluster.v1.TransitEncryptionMode result = + com.google.cloud.redis.cluster.v1.TransitEncryptionMode.forNumber(transitEncryptionMode_); + return result == null + ? com.google.cloud.redis.cluster.v1.TransitEncryptionMode.UNRECOGNIZED + : result; } - for (java.util.Map.Entry entry : - internalGetRedisConfigs().getMap().entrySet()) { - com.google.protobuf.MapEntry redisConfigs__ = - RedisConfigsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, redisConfigs__); + /** + * + * + *
    +     * Optional. The in-transit encryption for the Redis cluster.
    +     * If not provided, encryption  is disabled for the cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.TransitEncryptionMode transit_encryption_mode = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The transitEncryptionMode to set. + * @return This builder for chaining. + */ + public Builder setTransitEncryptionMode( + com.google.cloud.redis.cluster.v1.TransitEncryptionMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; + transitEncryptionMode_ = value.getNumber(); + onChanged(); + return this; } - if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(22, preciseSizeGb_); + /** + * + * + *
    +     * Optional. The in-transit encryption for the Redis cluster.
    +     * If not provided, encryption  is disabled for the cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.TransitEncryptionMode transit_encryption_mode = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearTransitEncryptionMode() { + bitField0_ = (bitField0_ & ~0x00000100); + transitEncryptionMode_ = 0; + onChanged(); + return this; } - if (((bitField0_ & 0x00000080) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(23, getZoneDistributionConfig()); + + private int sizeGb_; + /** + * + * + *
    +     * Output only. Redis memory size in GB for the entire cluster rounded up to
    +     * the next integer.
    +     * 
    + * + * optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the sizeGb field is set. + */ + @java.lang.Override + public boolean hasSizeGb() { + return ((bitField0_ & 0x00000200) != 0); } - if (((bitField0_ & 0x00000100) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(25, deletionProtectionEnabled_); + /** + * + * + *
    +     * Output only. Redis memory size in GB for the entire cluster rounded up to
    +     * the next integer.
    +     * 
    + * + * optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sizeGb. + */ + @java.lang.Override + public int getSizeGb() { + return sizeGb_; } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * + * + *
    +     * Output only. Redis memory size in GB for the entire cluster rounded up to
    +     * the next integer.
    +     * 
    + * + * optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The sizeGb to set. + * @return This builder for chaining. + */ + public Builder setSizeGb(int value) { - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + sizeGb_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; } - if (!(obj instanceof com.google.cloud.redis.cluster.v1.Cluster)) { - return super.equals(obj); + /** + * + * + *
    +     * Output only. Redis memory size in GB for the entire cluster rounded up to
    +     * the next integer.
    +     * 
    + * + * optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSizeGb() { + bitField0_ = (bitField0_ & ~0x00000200); + sizeGb_ = 0; + onChanged(); + return this; } - com.google.cloud.redis.cluster.v1.Cluster other = - (com.google.cloud.redis.cluster.v1.Cluster) obj; - if (!getName().equals(other.getName())) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + private int shardCount_; + /** + * + * + *
    +     * Optional. Number of shards for the Redis cluster.
    +     * 
    + * + * optional int32 shard_count = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the shardCount field is set. + */ + @java.lang.Override + public boolean hasShardCount() { + return ((bitField0_ & 0x00000400) != 0); } - if (state_ != other.state_) return false; - if (!getUid().equals(other.getUid())) return false; - if (hasReplicaCount() != other.hasReplicaCount()) return false; - if (hasReplicaCount()) { - if (getReplicaCount() != other.getReplicaCount()) return false; + /** + * + * + *
    +     * Optional. Number of shards for the Redis cluster.
    +     * 
    + * + * optional int32 shard_count = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The shardCount. + */ + @java.lang.Override + public int getShardCount() { + return shardCount_; } - if (authorizationMode_ != other.authorizationMode_) return false; - if (transitEncryptionMode_ != other.transitEncryptionMode_) return false; - if (hasSizeGb() != other.hasSizeGb()) return false; - if (hasSizeGb()) { - if (getSizeGb() != other.getSizeGb()) return false; + /** + * + * + *
    +     * Optional. Number of shards for the Redis cluster.
    +     * 
    + * + * optional int32 shard_count = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The shardCount to set. + * @return This builder for chaining. + */ + public Builder setShardCount(int value) { + + shardCount_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; } - if (hasShardCount() != other.hasShardCount()) return false; - if (hasShardCount()) { - if (getShardCount() != other.getShardCount()) return false; + /** + * + * + *
    +     * Optional. Number of shards for the Redis cluster.
    +     * 
    + * + * optional int32 shard_count = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearShardCount() { + bitField0_ = (bitField0_ & ~0x00000400); + shardCount_ = 0; + onChanged(); + return this; } - if (!getPscConfigsList().equals(other.getPscConfigsList())) return false; - if (!getDiscoveryEndpointsList().equals(other.getDiscoveryEndpointsList())) return false; - if (!getPscConnectionsList().equals(other.getPscConnectionsList())) return false; - if (hasStateInfo() != other.hasStateInfo()) return false; - if (hasStateInfo()) { - if (!getStateInfo().equals(other.getStateInfo())) return false; + + private java.util.List pscConfigs_ = + java.util.Collections.emptyList(); + + private void ensurePscConfigsIsMutable() { + if (!((bitField0_ & 0x00000800) != 0)) { + pscConfigs_ = + new java.util.ArrayList(pscConfigs_); + bitField0_ |= 0x00000800; + } } - if (nodeType_ != other.nodeType_) return false; - if (hasPersistenceConfig() != other.hasPersistenceConfig()) return false; - if (hasPersistenceConfig()) { - if (!getPersistenceConfig().equals(other.getPersistenceConfig())) return false; + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1.PscConfig, + com.google.cloud.redis.cluster.v1.PscConfig.Builder, + com.google.cloud.redis.cluster.v1.PscConfigOrBuilder> + pscConfigsBuilder_; + + /** + * + * + *
    +     * Optional. Each PscConfig configures the consumer network where IPs will
    +     * be designated to the cluster for client access through Private Service
    +     * Connect Automation. Currently, only one PscConfig is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getPscConfigsList() { + if (pscConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(pscConfigs_); + } else { + return pscConfigsBuilder_.getMessageList(); + } } - if (!internalGetRedisConfigs().equals(other.internalGetRedisConfigs())) return false; - if (hasPreciseSizeGb() != other.hasPreciseSizeGb()) return false; - if (hasPreciseSizeGb()) { - if (java.lang.Double.doubleToLongBits(getPreciseSizeGb()) - != java.lang.Double.doubleToLongBits(other.getPreciseSizeGb())) return false; + /** + * + * + *
    +     * Optional. Each PscConfig configures the consumer network where IPs will
    +     * be designated to the cluster for client access through Private Service
    +     * Connect Automation. Currently, only one PscConfig is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getPscConfigsCount() { + if (pscConfigsBuilder_ == null) { + return pscConfigs_.size(); + } else { + return pscConfigsBuilder_.getCount(); + } } - if (hasZoneDistributionConfig() != other.hasZoneDistributionConfig()) return false; - if (hasZoneDistributionConfig()) { - if (!getZoneDistributionConfig().equals(other.getZoneDistributionConfig())) return false; + /** + * + * + *
    +     * Optional. Each PscConfig configures the consumer network where IPs will
    +     * be designated to the cluster for client access through Private Service
    +     * Connect Automation. Currently, only one PscConfig is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.redis.cluster.v1.PscConfig getPscConfigs(int index) { + if (pscConfigsBuilder_ == null) { + return pscConfigs_.get(index); + } else { + return pscConfigsBuilder_.getMessage(index); + } } - if (hasDeletionProtectionEnabled() != other.hasDeletionProtectionEnabled()) return false; - if (hasDeletionProtectionEnabled()) { - if (getDeletionProtectionEnabled() != other.getDeletionProtectionEnabled()) return false; + /** + * + * + *
    +     * Optional. Each PscConfig configures the consumer network where IPs will
    +     * be designated to the cluster for client access through Private Service
    +     * Connect Automation. Currently, only one PscConfig is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPscConfigs(int index, com.google.cloud.redis.cluster.v1.PscConfig value) { + if (pscConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePscConfigsIsMutable(); + pscConfigs_.set(index, value); + onChanged(); + } else { + pscConfigsBuilder_.setMessage(index, value); + } + return this; } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + /** + * + * + *
    +     * Optional. Each PscConfig configures the consumer network where IPs will
    +     * be designated to the cluster for client access through Private Service
    +     * Connect Automation. Currently, only one PscConfig is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPscConfigs( + int index, com.google.cloud.redis.cluster.v1.PscConfig.Builder builderForValue) { + if (pscConfigsBuilder_ == null) { + ensurePscConfigsIsMutable(); + pscConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + pscConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); + /** + * + * + *
    +     * Optional. Each PscConfig configures the consumer network where IPs will
    +     * be designated to the cluster for client access through Private Service
    +     * Connect Automation. Currently, only one PscConfig is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPscConfigs(com.google.cloud.redis.cluster.v1.PscConfig value) { + if (pscConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePscConfigsIsMutable(); + pscConfigs_.add(value); + onChanged(); + } else { + pscConfigsBuilder_.addMessage(value); + } + return this; } - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (37 * hash) + UID_FIELD_NUMBER; - hash = (53 * hash) + getUid().hashCode(); - if (hasReplicaCount()) { - hash = (37 * hash) + REPLICA_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getReplicaCount(); + /** + * + * + *
    +     * Optional. Each PscConfig configures the consumer network where IPs will
    +     * be designated to the cluster for client access through Private Service
    +     * Connect Automation. Currently, only one PscConfig is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPscConfigs(int index, com.google.cloud.redis.cluster.v1.PscConfig value) { + if (pscConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePscConfigsIsMutable(); + pscConfigs_.add(index, value); + onChanged(); + } else { + pscConfigsBuilder_.addMessage(index, value); + } + return this; } - hash = (37 * hash) + AUTHORIZATION_MODE_FIELD_NUMBER; - hash = (53 * hash) + authorizationMode_; - hash = (37 * hash) + TRANSIT_ENCRYPTION_MODE_FIELD_NUMBER; - hash = (53 * hash) + transitEncryptionMode_; - if (hasSizeGb()) { - hash = (37 * hash) + SIZE_GB_FIELD_NUMBER; - hash = (53 * hash) + getSizeGb(); + /** + * + * + *
    +     * Optional. Each PscConfig configures the consumer network where IPs will
    +     * be designated to the cluster for client access through Private Service
    +     * Connect Automation. Currently, only one PscConfig is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPscConfigs( + com.google.cloud.redis.cluster.v1.PscConfig.Builder builderForValue) { + if (pscConfigsBuilder_ == null) { + ensurePscConfigsIsMutable(); + pscConfigs_.add(builderForValue.build()); + onChanged(); + } else { + pscConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; } - if (hasShardCount()) { - hash = (37 * hash) + SHARD_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getShardCount(); + /** + * + * + *
    +     * Optional. Each PscConfig configures the consumer network where IPs will
    +     * be designated to the cluster for client access through Private Service
    +     * Connect Automation. Currently, only one PscConfig is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPscConfigs( + int index, com.google.cloud.redis.cluster.v1.PscConfig.Builder builderForValue) { + if (pscConfigsBuilder_ == null) { + ensurePscConfigsIsMutable(); + pscConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + pscConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; } - if (getPscConfigsCount() > 0) { - hash = (37 * hash) + PSC_CONFIGS_FIELD_NUMBER; - hash = (53 * hash) + getPscConfigsList().hashCode(); + /** + * + * + *
    +     * Optional. Each PscConfig configures the consumer network where IPs will
    +     * be designated to the cluster for client access through Private Service
    +     * Connect Automation. Currently, only one PscConfig is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllPscConfigs( + java.lang.Iterable values) { + if (pscConfigsBuilder_ == null) { + ensurePscConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pscConfigs_); + onChanged(); + } else { + pscConfigsBuilder_.addAllMessages(values); + } + return this; } - if (getDiscoveryEndpointsCount() > 0) { - hash = (37 * hash) + DISCOVERY_ENDPOINTS_FIELD_NUMBER; - hash = (53 * hash) + getDiscoveryEndpointsList().hashCode(); + /** + * + * + *
    +     * Optional. Each PscConfig configures the consumer network where IPs will
    +     * be designated to the cluster for client access through Private Service
    +     * Connect Automation. Currently, only one PscConfig is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPscConfigs() { + if (pscConfigsBuilder_ == null) { + pscConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + } else { + pscConfigsBuilder_.clear(); + } + return this; } - if (getPscConnectionsCount() > 0) { - hash = (37 * hash) + PSC_CONNECTIONS_FIELD_NUMBER; - hash = (53 * hash) + getPscConnectionsList().hashCode(); + /** + * + * + *
    +     * Optional. Each PscConfig configures the consumer network where IPs will
    +     * be designated to the cluster for client access through Private Service
    +     * Connect Automation. Currently, only one PscConfig is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removePscConfigs(int index) { + if (pscConfigsBuilder_ == null) { + ensurePscConfigsIsMutable(); + pscConfigs_.remove(index); + onChanged(); + } else { + pscConfigsBuilder_.remove(index); + } + return this; } - if (hasStateInfo()) { - hash = (37 * hash) + STATE_INFO_FIELD_NUMBER; - hash = (53 * hash) + getStateInfo().hashCode(); + /** + * + * + *
    +     * Optional. Each PscConfig configures the consumer network where IPs will
    +     * be designated to the cluster for client access through Private Service
    +     * Connect Automation. Currently, only one PscConfig is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.redis.cluster.v1.PscConfig.Builder getPscConfigsBuilder(int index) { + return getPscConfigsFieldBuilder().getBuilder(index); } - hash = (37 * hash) + NODE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + nodeType_; - if (hasPersistenceConfig()) { - hash = (37 * hash) + PERSISTENCE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getPersistenceConfig().hashCode(); + /** + * + * + *
    +     * Optional. Each PscConfig configures the consumer network where IPs will
    +     * be designated to the cluster for client access through Private Service
    +     * Connect Automation. Currently, only one PscConfig is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.redis.cluster.v1.PscConfigOrBuilder getPscConfigsOrBuilder(int index) { + if (pscConfigsBuilder_ == null) { + return pscConfigs_.get(index); + } else { + return pscConfigsBuilder_.getMessageOrBuilder(index); + } } - if (!internalGetRedisConfigs().getMap().isEmpty()) { - hash = (37 * hash) + REDIS_CONFIGS_FIELD_NUMBER; - hash = (53 * hash) + internalGetRedisConfigs().hashCode(); + /** + * + * + *
    +     * Optional. Each PscConfig configures the consumer network where IPs will
    +     * be designated to the cluster for client access through Private Service
    +     * Connect Automation. Currently, only one PscConfig is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getPscConfigsOrBuilderList() { + if (pscConfigsBuilder_ != null) { + return pscConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(pscConfigs_); + } } - if (hasPreciseSizeGb()) { - hash = (37 * hash) + PRECISE_SIZE_GB_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getPreciseSizeGb())); + /** + * + * + *
    +     * Optional. Each PscConfig configures the consumer network where IPs will
    +     * be designated to the cluster for client access through Private Service
    +     * Connect Automation. Currently, only one PscConfig is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.redis.cluster.v1.PscConfig.Builder addPscConfigsBuilder() { + return getPscConfigsFieldBuilder() + .addBuilder(com.google.cloud.redis.cluster.v1.PscConfig.getDefaultInstance()); } - if (hasZoneDistributionConfig()) { - hash = (37 * hash) + ZONE_DISTRIBUTION_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getZoneDistributionConfig().hashCode(); + /** + * + * + *
    +     * Optional. Each PscConfig configures the consumer network where IPs will
    +     * be designated to the cluster for client access through Private Service
    +     * Connect Automation. Currently, only one PscConfig is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.redis.cluster.v1.PscConfig.Builder addPscConfigsBuilder(int index) { + return getPscConfigsFieldBuilder() + .addBuilder(index, com.google.cloud.redis.cluster.v1.PscConfig.getDefaultInstance()); } - if (hasDeletionProtectionEnabled()) { - hash = (37 * hash) + DELETION_PROTECTION_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeletionProtectionEnabled()); + /** + * + * + *
    +     * Optional. Each PscConfig configures the consumer network where IPs will
    +     * be designated to the cluster for client access through Private Service
    +     * Connect Automation. Currently, only one PscConfig is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getPscConfigsBuilderList() { + return getPscConfigsFieldBuilder().getBuilderList(); } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.redis.cluster.v1.Cluster parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.redis.cluster.v1.Cluster parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.redis.cluster.v1.Cluster parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.redis.cluster.v1.Cluster parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.redis.cluster.v1.Cluster parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.redis.cluster.v1.Cluster parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.redis.cluster.v1.Cluster parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.redis.cluster.v1.Cluster parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.redis.cluster.v1.Cluster parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.redis.cluster.v1.Cluster parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.redis.cluster.v1.Cluster parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.redis.cluster.v1.Cluster parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1.PscConfig, + com.google.cloud.redis.cluster.v1.PscConfig.Builder, + com.google.cloud.redis.cluster.v1.PscConfigOrBuilder> + getPscConfigsFieldBuilder() { + if (pscConfigsBuilder_ == null) { + pscConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1.PscConfig, + com.google.cloud.redis.cluster.v1.PscConfig.Builder, + com.google.cloud.redis.cluster.v1.PscConfigOrBuilder>( + pscConfigs_, ((bitField0_ & 0x00000800) != 0), getParentForChildren(), isClean()); + pscConfigs_ = null; + } + return pscConfigsBuilder_; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + private java.util.List + discoveryEndpoints_ = java.util.Collections.emptyList(); - public static Builder newBuilder(com.google.cloud.redis.cluster.v1.Cluster prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + private void ensureDiscoveryEndpointsIsMutable() { + if (!((bitField0_ & 0x00001000) != 0)) { + discoveryEndpoints_ = + new java.util.ArrayList( + discoveryEndpoints_); + bitField0_ |= 0x00001000; + } + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1.DiscoveryEndpoint, + com.google.cloud.redis.cluster.v1.DiscoveryEndpoint.Builder, + com.google.cloud.redis.cluster.v1.DiscoveryEndpointOrBuilder> + discoveryEndpointsBuilder_; - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
    -   * A cluster instance.
    -   * 
    - * - * Protobuf type {@code google.cloud.redis.cluster.v1.Cluster} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.Cluster) - com.google.cloud.redis.cluster.v1.ClusterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto - .internal_static_google_cloud_redis_cluster_v1_Cluster_descriptor; + /** + * + * + *
    +     * Output only. Endpoints created on each given network, for Redis clients to
    +     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getDiscoveryEndpointsList() { + if (discoveryEndpointsBuilder_ == null) { + return java.util.Collections.unmodifiableList(discoveryEndpoints_); + } else { + return discoveryEndpointsBuilder_.getMessageList(); + } } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 21: - return internalGetRedisConfigs(); - default: - throw new RuntimeException("Invalid map field number: " + number); + /** + * + * + *
    +     * Output only. Endpoints created on each given network, for Redis clients to
    +     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getDiscoveryEndpointsCount() { + if (discoveryEndpointsBuilder_ == null) { + return discoveryEndpoints_.size(); + } else { + return discoveryEndpointsBuilder_.getCount(); } } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 21: - return internalGetMutableRedisConfigs(); - default: - throw new RuntimeException("Invalid map field number: " + number); + /** + * + * + *
    +     * Output only. Endpoints created on each given network, for Redis clients to
    +     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.DiscoveryEndpoint getDiscoveryEndpoints(int index) { + if (discoveryEndpointsBuilder_ == null) { + return discoveryEndpoints_.get(index); + } else { + return discoveryEndpointsBuilder_.getMessage(index); } } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto - .internal_static_google_cloud_redis_cluster_v1_Cluster_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.redis.cluster.v1.Cluster.class, - com.google.cloud.redis.cluster.v1.Cluster.Builder.class); + /** + * + * + *
    +     * Output only. Endpoints created on each given network, for Redis clients to
    +     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDiscoveryEndpoints( + int index, com.google.cloud.redis.cluster.v1.DiscoveryEndpoint value) { + if (discoveryEndpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDiscoveryEndpointsIsMutable(); + discoveryEndpoints_.set(index, value); + onChanged(); + } else { + discoveryEndpointsBuilder_.setMessage(index, value); + } + return this; } - - // Construct using com.google.cloud.redis.cluster.v1.Cluster.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + /** + * + * + *
    +     * Output only. Endpoints created on each given network, for Redis clients to
    +     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDiscoveryEndpoints( + int index, com.google.cloud.redis.cluster.v1.DiscoveryEndpoint.Builder builderForValue) { + if (discoveryEndpointsBuilder_ == null) { + ensureDiscoveryEndpointsIsMutable(); + discoveryEndpoints_.set(index, builderForValue.build()); + onChanged(); + } else { + discoveryEndpointsBuilder_.setMessage(index, builderForValue.build()); + } + return this; } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + /** + * + * + *
    +     * Output only. Endpoints created on each given network, for Redis clients to
    +     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDiscoveryEndpoints( + com.google.cloud.redis.cluster.v1.DiscoveryEndpoint value) { + if (discoveryEndpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDiscoveryEndpointsIsMutable(); + discoveryEndpoints_.add(value); + onChanged(); + } else { + discoveryEndpointsBuilder_.addMessage(value); + } + return this; } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getCreateTimeFieldBuilder(); - getPscConfigsFieldBuilder(); - getDiscoveryEndpointsFieldBuilder(); - getPscConnectionsFieldBuilder(); - getStateInfoFieldBuilder(); - getPersistenceConfigFieldBuilder(); - getZoneDistributionConfigFieldBuilder(); + /** + * + * + *
    +     * Output only. Endpoints created on each given network, for Redis clients to
    +     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDiscoveryEndpoints( + int index, com.google.cloud.redis.cluster.v1.DiscoveryEndpoint value) { + if (discoveryEndpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDiscoveryEndpointsIsMutable(); + discoveryEndpoints_.add(index, value); + onChanged(); + } else { + discoveryEndpointsBuilder_.addMessage(index, value); } + return this; } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; + /** + * + * + *
    +     * Output only. Endpoints created on each given network, for Redis clients to
    +     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDiscoveryEndpoints( + com.google.cloud.redis.cluster.v1.DiscoveryEndpoint.Builder builderForValue) { + if (discoveryEndpointsBuilder_ == null) { + ensureDiscoveryEndpointsIsMutable(); + discoveryEndpoints_.add(builderForValue.build()); + onChanged(); + } else { + discoveryEndpointsBuilder_.addMessage(builderForValue.build()); } - state_ = 0; - uid_ = ""; - replicaCount_ = 0; - authorizationMode_ = 0; - transitEncryptionMode_ = 0; - sizeGb_ = 0; - shardCount_ = 0; - if (pscConfigsBuilder_ == null) { - pscConfigs_ = java.util.Collections.emptyList(); + return this; + } + /** + * + * + *
    +     * Output only. Endpoints created on each given network, for Redis clients to
    +     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDiscoveryEndpoints( + int index, com.google.cloud.redis.cluster.v1.DiscoveryEndpoint.Builder builderForValue) { + if (discoveryEndpointsBuilder_ == null) { + ensureDiscoveryEndpointsIsMutable(); + discoveryEndpoints_.add(index, builderForValue.build()); + onChanged(); + } else { + discoveryEndpointsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * Output only. Endpoints created on each given network, for Redis clients to
    +     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllDiscoveryEndpoints( + java.lang.Iterable values) { + if (discoveryEndpointsBuilder_ == null) { + ensureDiscoveryEndpointsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, discoveryEndpoints_); + onChanged(); } else { - pscConfigs_ = null; - pscConfigsBuilder_.clear(); + discoveryEndpointsBuilder_.addAllMessages(values); } - bitField0_ = (bitField0_ & ~0x00000200); + return this; + } + /** + * + * + *
    +     * Output only. Endpoints created on each given network, for Redis clients to
    +     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDiscoveryEndpoints() { if (discoveryEndpointsBuilder_ == null) { discoveryEndpoints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); } else { - discoveryEndpoints_ = null; discoveryEndpointsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000400); - if (pscConnectionsBuilder_ == null) { - pscConnections_ = java.util.Collections.emptyList(); - } else { - pscConnections_ = null; - pscConnectionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000800); - stateInfo_ = null; - if (stateInfoBuilder_ != null) { - stateInfoBuilder_.dispose(); - stateInfoBuilder_ = null; - } - nodeType_ = 0; - persistenceConfig_ = null; - if (persistenceConfigBuilder_ != null) { - persistenceConfigBuilder_.dispose(); - persistenceConfigBuilder_ = null; - } - internalGetMutableRedisConfigs().clear(); - preciseSizeGb_ = 0D; - zoneDistributionConfig_ = null; - if (zoneDistributionConfigBuilder_ != null) { - zoneDistributionConfigBuilder_.dispose(); - zoneDistributionConfigBuilder_ = null; - } - deletionProtectionEnabled_ = false; return this; } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto - .internal_static_google_cloud_redis_cluster_v1_Cluster_descriptor; - } - - @java.lang.Override - public com.google.cloud.redis.cluster.v1.Cluster getDefaultInstanceForType() { - return com.google.cloud.redis.cluster.v1.Cluster.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.redis.cluster.v1.Cluster build() { - com.google.cloud.redis.cluster.v1.Cluster result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + /** + * + * + *
    +     * Output only. Endpoints created on each given network, for Redis clients to
    +     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeDiscoveryEndpoints(int index) { + if (discoveryEndpointsBuilder_ == null) { + ensureDiscoveryEndpointsIsMutable(); + discoveryEndpoints_.remove(index); + onChanged(); + } else { + discoveryEndpointsBuilder_.remove(index); } - return result; + return this; } - - @java.lang.Override - public com.google.cloud.redis.cluster.v1.Cluster buildPartial() { - com.google.cloud.redis.cluster.v1.Cluster result = - new com.google.cloud.redis.cluster.v1.Cluster(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; + /** + * + * + *
    +     * Output only. Endpoints created on each given network, for Redis clients to
    +     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.DiscoveryEndpoint.Builder getDiscoveryEndpointsBuilder( + int index) { + return getDiscoveryEndpointsFieldBuilder().getBuilder(index); } - - private void buildPartialRepeatedFields(com.google.cloud.redis.cluster.v1.Cluster result) { - if (pscConfigsBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0)) { - pscConfigs_ = java.util.Collections.unmodifiableList(pscConfigs_); - bitField0_ = (bitField0_ & ~0x00000200); - } - result.pscConfigs_ = pscConfigs_; - } else { - result.pscConfigs_ = pscConfigsBuilder_.build(); - } + /** + * + * + *
    +     * Output only. Endpoints created on each given network, for Redis clients to
    +     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.DiscoveryEndpointOrBuilder + getDiscoveryEndpointsOrBuilder(int index) { if (discoveryEndpointsBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0)) { - discoveryEndpoints_ = java.util.Collections.unmodifiableList(discoveryEndpoints_); - bitField0_ = (bitField0_ & ~0x00000400); - } - result.discoveryEndpoints_ = discoveryEndpoints_; + return discoveryEndpoints_.get(index); } else { - result.discoveryEndpoints_ = discoveryEndpointsBuilder_.build(); + return discoveryEndpointsBuilder_.getMessageOrBuilder(index); } - if (pscConnectionsBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0)) { - pscConnections_ = java.util.Collections.unmodifiableList(pscConnections_); - bitField0_ = (bitField0_ & ~0x00000800); - } - result.pscConnections_ = pscConnections_; + } + /** + * + * + *
    +     * Output only. Endpoints created on each given network, for Redis clients to
    +     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getDiscoveryEndpointsOrBuilderList() { + if (discoveryEndpointsBuilder_ != null) { + return discoveryEndpointsBuilder_.getMessageOrBuilderList(); } else { - result.pscConnections_ = pscConnectionsBuilder_.build(); + return java.util.Collections.unmodifiableList(discoveryEndpoints_); } } - - private void buildPartial0(com.google.cloud.redis.cluster.v1.Cluster result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.state_ = state_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.uid_ = uid_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.replicaCount_ = replicaCount_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.authorizationMode_ = authorizationMode_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.transitEncryptionMode_ = transitEncryptionMode_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.sizeGb_ = sizeGb_; - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.shardCount_ = shardCount_; - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.stateInfo_ = stateInfoBuilder_ == null ? stateInfo_ : stateInfoBuilder_.build(); - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.nodeType_ = nodeType_; - } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.persistenceConfig_ = - persistenceConfigBuilder_ == null - ? persistenceConfig_ - : persistenceConfigBuilder_.build(); - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00008000) != 0)) { - result.redisConfigs_ = internalGetRedisConfigs(); - result.redisConfigs_.makeImmutable(); - } - if (((from_bitField0_ & 0x00010000) != 0)) { - result.preciseSizeGb_ = preciseSizeGb_; - to_bitField0_ |= 0x00000040; - } - if (((from_bitField0_ & 0x00020000) != 0)) { - result.zoneDistributionConfig_ = - zoneDistributionConfigBuilder_ == null - ? zoneDistributionConfig_ - : zoneDistributionConfigBuilder_.build(); - to_bitField0_ |= 0x00000080; - } - if (((from_bitField0_ & 0x00040000) != 0)) { - result.deletionProtectionEnabled_ = deletionProtectionEnabled_; - to_bitField0_ |= 0x00000100; - } - result.bitField0_ |= to_bitField0_; + /** + * + * + *
    +     * Output only. Endpoints created on each given network, for Redis clients to
    +     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.DiscoveryEndpoint.Builder + addDiscoveryEndpointsBuilder() { + return getDiscoveryEndpointsFieldBuilder() + .addBuilder(com.google.cloud.redis.cluster.v1.DiscoveryEndpoint.getDefaultInstance()); } - - @java.lang.Override - public Builder clone() { - return super.clone(); + /** + * + * + *
    +     * Output only. Endpoints created on each given network, for Redis clients to
    +     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.DiscoveryEndpoint.Builder addDiscoveryEndpointsBuilder( + int index) { + return getDiscoveryEndpointsFieldBuilder() + .addBuilder( + index, com.google.cloud.redis.cluster.v1.DiscoveryEndpoint.getDefaultInstance()); } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); + /** + * + * + *
    +     * Output only. Endpoints created on each given network, for Redis clients to
    +     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getDiscoveryEndpointsBuilderList() { + return getDiscoveryEndpointsFieldBuilder().getBuilderList(); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1.DiscoveryEndpoint, + com.google.cloud.redis.cluster.v1.DiscoveryEndpoint.Builder, + com.google.cloud.redis.cluster.v1.DiscoveryEndpointOrBuilder> + getDiscoveryEndpointsFieldBuilder() { + if (discoveryEndpointsBuilder_ == null) { + discoveryEndpointsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1.DiscoveryEndpoint, + com.google.cloud.redis.cluster.v1.DiscoveryEndpoint.Builder, + com.google.cloud.redis.cluster.v1.DiscoveryEndpointOrBuilder>( + discoveryEndpoints_, + ((bitField0_ & 0x00001000) != 0), + getParentForChildren(), + isClean()); + discoveryEndpoints_ = null; + } + return discoveryEndpointsBuilder_; } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } + private java.util.List pscConnections_ = + java.util.Collections.emptyList(); - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + private void ensurePscConnectionsIsMutable() { + if (!((bitField0_ & 0x00002000) != 0)) { + pscConnections_ = + new java.util.ArrayList( + pscConnections_); + bitField0_ |= 0x00002000; + } } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1.PscConnection, + com.google.cloud.redis.cluster.v1.PscConnection.Builder, + com.google.cloud.redis.cluster.v1.PscConnectionOrBuilder> + pscConnectionsBuilder_; - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.redis.cluster.v1.Cluster) { - return mergeFrom((com.google.cloud.redis.cluster.v1.Cluster) other); + /** + * + * + *
    +     * Output only. The list of PSC connections that are auto-created through
    +     * service connectivity automation.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getPscConnectionsList() { + if (pscConnectionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(pscConnections_); } else { - super.mergeFrom(other); - return this; + return pscConnectionsBuilder_.getMessageList(); } } - - public Builder mergeFrom(com.google.cloud.redis.cluster.v1.Cluster other) { - if (other == com.google.cloud.redis.cluster.v1.Cluster.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (!other.getUid().isEmpty()) { - uid_ = other.uid_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (other.hasReplicaCount()) { - setReplicaCount(other.getReplicaCount()); - } - if (other.authorizationMode_ != 0) { - setAuthorizationModeValue(other.getAuthorizationModeValue()); - } - if (other.transitEncryptionMode_ != 0) { - setTransitEncryptionModeValue(other.getTransitEncryptionModeValue()); - } - if (other.hasSizeGb()) { - setSizeGb(other.getSizeGb()); + /** + * + * + *
    +     * Output only. The list of PSC connections that are auto-created through
    +     * service connectivity automation.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getPscConnectionsCount() { + if (pscConnectionsBuilder_ == null) { + return pscConnections_.size(); + } else { + return pscConnectionsBuilder_.getCount(); } - if (other.hasShardCount()) { - setShardCount(other.getShardCount()); + } + /** + * + * + *
    +     * Output only. The list of PSC connections that are auto-created through
    +     * service connectivity automation.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.PscConnection getPscConnections(int index) { + if (pscConnectionsBuilder_ == null) { + return pscConnections_.get(index); + } else { + return pscConnectionsBuilder_.getMessage(index); } - if (pscConfigsBuilder_ == null) { - if (!other.pscConfigs_.isEmpty()) { - if (pscConfigs_.isEmpty()) { - pscConfigs_ = other.pscConfigs_; - bitField0_ = (bitField0_ & ~0x00000200); - } else { - ensurePscConfigsIsMutable(); - pscConfigs_.addAll(other.pscConfigs_); - } - onChanged(); + } + /** + * + * + *
    +     * Output only. The list of PSC connections that are auto-created through
    +     * service connectivity automation.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPscConnections( + int index, com.google.cloud.redis.cluster.v1.PscConnection value) { + if (pscConnectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + ensurePscConnectionsIsMutable(); + pscConnections_.set(index, value); + onChanged(); } else { - if (!other.pscConfigs_.isEmpty()) { - if (pscConfigsBuilder_.isEmpty()) { - pscConfigsBuilder_.dispose(); - pscConfigsBuilder_ = null; - pscConfigs_ = other.pscConfigs_; - bitField0_ = (bitField0_ & ~0x00000200); - pscConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPscConfigsFieldBuilder() - : null; - } else { - pscConfigsBuilder_.addAllMessages(other.pscConfigs_); - } - } + pscConnectionsBuilder_.setMessage(index, value); } - if (discoveryEndpointsBuilder_ == null) { - if (!other.discoveryEndpoints_.isEmpty()) { - if (discoveryEndpoints_.isEmpty()) { - discoveryEndpoints_ = other.discoveryEndpoints_; - bitField0_ = (bitField0_ & ~0x00000400); - } else { - ensureDiscoveryEndpointsIsMutable(); - discoveryEndpoints_.addAll(other.discoveryEndpoints_); - } - onChanged(); - } + return this; + } + /** + * + * + *
    +     * Output only. The list of PSC connections that are auto-created through
    +     * service connectivity automation.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPscConnections( + int index, com.google.cloud.redis.cluster.v1.PscConnection.Builder builderForValue) { + if (pscConnectionsBuilder_ == null) { + ensurePscConnectionsIsMutable(); + pscConnections_.set(index, builderForValue.build()); + onChanged(); } else { - if (!other.discoveryEndpoints_.isEmpty()) { - if (discoveryEndpointsBuilder_.isEmpty()) { - discoveryEndpointsBuilder_.dispose(); - discoveryEndpointsBuilder_ = null; - discoveryEndpoints_ = other.discoveryEndpoints_; - bitField0_ = (bitField0_ & ~0x00000400); - discoveryEndpointsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDiscoveryEndpointsFieldBuilder() - : null; - } else { - discoveryEndpointsBuilder_.addAllMessages(other.discoveryEndpoints_); - } + pscConnectionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * Output only. The list of PSC connections that are auto-created through
    +     * service connectivity automation.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPscConnections(com.google.cloud.redis.cluster.v1.PscConnection value) { + if (pscConnectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + ensurePscConnectionsIsMutable(); + pscConnections_.add(value); + onChanged(); + } else { + pscConnectionsBuilder_.addMessage(value); } + return this; + } + /** + * + * + *
    +     * Output only. The list of PSC connections that are auto-created through
    +     * service connectivity automation.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPscConnections( + int index, com.google.cloud.redis.cluster.v1.PscConnection value) { if (pscConnectionsBuilder_ == null) { - if (!other.pscConnections_.isEmpty()) { - if (pscConnections_.isEmpty()) { - pscConnections_ = other.pscConnections_; - bitField0_ = (bitField0_ & ~0x00000800); - } else { - ensurePscConnectionsIsMutable(); - pscConnections_.addAll(other.pscConnections_); - } - onChanged(); + if (value == null) { + throw new NullPointerException(); } + ensurePscConnectionsIsMutable(); + pscConnections_.add(index, value); + onChanged(); } else { - if (!other.pscConnections_.isEmpty()) { - if (pscConnectionsBuilder_.isEmpty()) { - pscConnectionsBuilder_.dispose(); - pscConnectionsBuilder_ = null; - pscConnections_ = other.pscConnections_; - bitField0_ = (bitField0_ & ~0x00000800); - pscConnectionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPscConnectionsFieldBuilder() - : null; - } else { - pscConnectionsBuilder_.addAllMessages(other.pscConnections_); - } - } - } - if (other.hasStateInfo()) { - mergeStateInfo(other.getStateInfo()); - } - if (other.nodeType_ != 0) { - setNodeTypeValue(other.getNodeTypeValue()); - } - if (other.hasPersistenceConfig()) { - mergePersistenceConfig(other.getPersistenceConfig()); - } - internalGetMutableRedisConfigs().mergeFrom(other.internalGetRedisConfigs()); - bitField0_ |= 0x00008000; - if (other.hasPreciseSizeGb()) { - setPreciseSizeGb(other.getPreciseSizeGb()); - } - if (other.hasZoneDistributionConfig()) { - mergeZoneDistributionConfig(other.getZoneDistributionConfig()); - } - if (other.hasDeletionProtectionEnabled()) { - setDeletionProtectionEnabled(other.getDeletionProtectionEnabled()); + pscConnectionsBuilder_.addMessage(index, value); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); return this; } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 26 - case 32: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 32 - case 42: - { - uid_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 64: - { - replicaCount_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 64 - case 88: - { - authorizationMode_ = input.readEnum(); - bitField0_ |= 0x00000020; - break; - } // case 88 - case 96: - { - transitEncryptionMode_ = input.readEnum(); - bitField0_ |= 0x00000040; - break; - } // case 96 - case 104: - { - sizeGb_ = input.readInt32(); - bitField0_ |= 0x00000080; - break; - } // case 104 - case 112: - { - shardCount_ = input.readInt32(); - bitField0_ |= 0x00000100; - break; - } // case 112 - case 122: - { - com.google.cloud.redis.cluster.v1.PscConfig m = - input.readMessage( - com.google.cloud.redis.cluster.v1.PscConfig.parser(), extensionRegistry); - if (pscConfigsBuilder_ == null) { - ensurePscConfigsIsMutable(); - pscConfigs_.add(m); - } else { - pscConfigsBuilder_.addMessage(m); - } - break; - } // case 122 - case 130: - { - com.google.cloud.redis.cluster.v1.DiscoveryEndpoint m = - input.readMessage( - com.google.cloud.redis.cluster.v1.DiscoveryEndpoint.parser(), - extensionRegistry); - if (discoveryEndpointsBuilder_ == null) { - ensureDiscoveryEndpointsIsMutable(); - discoveryEndpoints_.add(m); - } else { - discoveryEndpointsBuilder_.addMessage(m); - } - break; - } // case 130 - case 138: - { - com.google.cloud.redis.cluster.v1.PscConnection m = - input.readMessage( - com.google.cloud.redis.cluster.v1.PscConnection.parser(), - extensionRegistry); - if (pscConnectionsBuilder_ == null) { - ensurePscConnectionsIsMutable(); - pscConnections_.add(m); - } else { - pscConnectionsBuilder_.addMessage(m); - } - break; - } // case 138 - case 146: - { - input.readMessage(getStateInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; - break; - } // case 146 - case 152: - { - nodeType_ = input.readEnum(); - bitField0_ |= 0x00002000; - break; - } // case 152 - case 162: - { - input.readMessage( - getPersistenceConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; - break; - } // case 162 - case 170: - { - com.google.protobuf.MapEntry redisConfigs__ = - input.readMessage( - RedisConfigsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableRedisConfigs() - .getMutableMap() - .put(redisConfigs__.getKey(), redisConfigs__.getValue()); - bitField0_ |= 0x00008000; - break; - } // case 170 - case 177: - { - preciseSizeGb_ = input.readDouble(); - bitField0_ |= 0x00010000; - break; - } // case 177 - case 186: - { - input.readMessage( - getZoneDistributionConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00020000; - break; - } // case 186 - case 200: - { - deletionProtectionEnabled_ = input.readBool(); - bitField0_ |= 0x00040000; - break; - } // case 200 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { + /** + * + * + *
    +     * Output only. The list of PSC connections that are auto-created through
    +     * service connectivity automation.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPscConnections( + com.google.cloud.redis.cluster.v1.PscConnection.Builder builderForValue) { + if (pscConnectionsBuilder_ == null) { + ensurePscConnectionsIsMutable(); + pscConnections_.add(builderForValue.build()); onChanged(); - } // finally + } else { + pscConnectionsBuilder_.addMessage(builderForValue.build()); + } return this; } - - private int bitField0_; - - private java.lang.Object name_ = ""; /** * * *
    -     * Required. Unique name of the resource in this scope including project and
    -     * location using the form:
    -     *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +     * Output only. The list of PSC connections that are auto-created through
    +     * service connectivity automation.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPscConnections( + int index, com.google.cloud.redis.cluster.v1.PscConnection.Builder builderForValue) { + if (pscConnectionsBuilder_ == null) { + ensurePscConnectionsIsMutable(); + pscConnections_.add(index, builderForValue.build()); + onChanged(); + } else { + pscConnectionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * * - * @return The name. + *
    +     * Output only. The list of PSC connections that are auto-created through
    +     * service connectivity automation.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - 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; + public Builder addAllPscConnections( + java.lang.Iterable values) { + if (pscConnectionsBuilder_ == null) { + ensurePscConnectionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pscConnections_); + onChanged(); } else { - return (java.lang.String) ref; + pscConnectionsBuilder_.addAllMessages(values); } + return this; } /** * * *
    -     * Required. Unique name of the resource in this scope including project and
    -     * location using the form:
    -     *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +     * Output only. The list of PSC connections that are auto-created through
    +     * service connectivity automation.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPscConnections() { + if (pscConnectionsBuilder_ == null) { + pscConnections_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + } else { + pscConnectionsBuilder_.clear(); + } + return this; + } + /** + * * - * @return The bytes for name. + *
    +     * Output only. The list of PSC connections that are auto-created through
    +     * service connectivity automation.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - 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; + public Builder removePscConnections(int index) { + if (pscConnectionsBuilder_ == null) { + ensurePscConnectionsIsMutable(); + pscConnections_.remove(index); + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + pscConnectionsBuilder_.remove(index); } + return this; } /** * * *
    -     * Required. Unique name of the resource in this scope including project and
    -     * location using the form:
    -     *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +     * Output only. The list of PSC connections that are auto-created through
    +     * service connectivity automation.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.PscConnection.Builder getPscConnectionsBuilder( + int index) { + return getPscConnectionsFieldBuilder().getBuilder(index); + } + /** + * * - * @param value The name to set. - * @return This builder for chaining. + *
    +     * Output only. The list of PSC connections that are auto-created through
    +     * service connectivity automation.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public com.google.cloud.redis.cluster.v1.PscConnectionOrBuilder getPscConnectionsOrBuilder( + int index) { + if (pscConnectionsBuilder_ == null) { + return pscConnections_.get(index); + } else { + return pscConnectionsBuilder_.getMessageOrBuilder(index); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; } /** * * *
    -     * Required. Unique name of the resource in this scope including project and
    -     * location using the form:
    -     *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +     * Output only. The list of PSC connections that are auto-created through
    +     * service connectivity automation.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getPscConnectionsOrBuilderList() { + if (pscConnectionsBuilder_ != null) { + return pscConnectionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(pscConnections_); + } + } + /** * - * @return This builder for chaining. + * + *
    +     * Output only. The list of PSC connections that are auto-created through
    +     * service connectivity automation.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; + public com.google.cloud.redis.cluster.v1.PscConnection.Builder addPscConnectionsBuilder() { + return getPscConnectionsFieldBuilder() + .addBuilder(com.google.cloud.redis.cluster.v1.PscConnection.getDefaultInstance()); } /** * * *
    -     * Required. Unique name of the resource in this scope including project and
    -     * location using the form:
    -     *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +     * Output only. The list of PSC connections that are auto-created through
    +     * service connectivity automation.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.PscConnection.Builder addPscConnectionsBuilder( + int index) { + return getPscConnectionsFieldBuilder() + .addBuilder(index, com.google.cloud.redis.cluster.v1.PscConnection.getDefaultInstance()); + } + /** + * * - * @param value The bytes for name to set. - * @return This builder for chaining. + *
    +     * Output only. The list of PSC connections that are auto-created through
    +     * service connectivity automation.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public java.util.List + getPscConnectionsBuilderList() { + return getPscConnectionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1.PscConnection, + com.google.cloud.redis.cluster.v1.PscConnection.Builder, + com.google.cloud.redis.cluster.v1.PscConnectionOrBuilder> + getPscConnectionsFieldBuilder() { + if (pscConnectionsBuilder_ == null) { + pscConnectionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1.PscConnection, + com.google.cloud.redis.cluster.v1.PscConnection.Builder, + com.google.cloud.redis.cluster.v1.PscConnectionOrBuilder>( + pscConnections_, + ((bitField0_ & 0x00002000) != 0), + getParentForChildren(), + isClean()); + pscConnections_ = null; } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + return pscConnectionsBuilder_; } - private com.google.protobuf.Timestamp createTime_; + private com.google.cloud.redis.cluster.v1.Cluster.StateInfo stateInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.cloud.redis.cluster.v1.Cluster.StateInfo, + com.google.cloud.redis.cluster.v1.Cluster.StateInfo.Builder, + com.google.cloud.redis.cluster.v1.Cluster.StateInfoOrBuilder> + stateInfoBuilder_; /** * * *
    -     * Output only. The timestamp associated with the cluster creation request.
    +     * Output only. Additional information about the current state of the cluster.
          * 
    * * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.redis.cluster.v1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return Whether the createTime field is set. + * @return Whether the stateInfo field is set. */ - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000002) != 0); + public boolean hasStateInfo() { + return ((bitField0_ & 0x00004000) != 0); } /** * * *
    -     * Output only. The timestamp associated with the cluster creation request.
    +     * Output only. Additional information about the current state of the cluster.
          * 
    * * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.redis.cluster.v1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The createTime. + * @return The stateInfo. */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + public com.google.cloud.redis.cluster.v1.Cluster.StateInfo getStateInfo() { + if (stateInfoBuilder_ == null) { + return stateInfo_ == null + ? com.google.cloud.redis.cluster.v1.Cluster.StateInfo.getDefaultInstance() + : stateInfo_; } else { - return createTimeBuilder_.getMessage(); + return stateInfoBuilder_.getMessage(); } } /** * * *
    -     * Output only. The timestamp associated with the cluster creation request.
    +     * Output only. Additional information about the current state of the cluster.
          * 
    * * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.redis.cluster.v1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { + public Builder setStateInfo(com.google.cloud.redis.cluster.v1.Cluster.StateInfo value) { + if (stateInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - createTime_ = value; + stateInfo_ = value; } else { - createTimeBuilder_.setMessage(value); + stateInfoBuilder_.setMessage(value); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4155,20 +9507,21 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { * * *
    -     * Output only. The timestamp associated with the cluster creation request.
    +     * Output only. Additional information about the current state of the cluster.
          * 
    * * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.redis.cluster.v1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); + public Builder setStateInfo( + com.google.cloud.redis.cluster.v1.Cluster.StateInfo.Builder builderForValue) { + if (stateInfoBuilder_ == null) { + stateInfo_ = builderForValue.build(); } else { - createTimeBuilder_.setMessage(builderForValue.build()); + stateInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4176,27 +9529,28 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
    -     * Output only. The timestamp associated with the cluster creation request.
    +     * Output only. Additional information about the current state of the cluster.
          * 
    * * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.redis.cluster.v1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getCreateTimeBuilder().mergeFrom(value); + public Builder mergeStateInfo(com.google.cloud.redis.cluster.v1.Cluster.StateInfo value) { + if (stateInfoBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) + && stateInfo_ != null + && stateInfo_ + != com.google.cloud.redis.cluster.v1.Cluster.StateInfo.getDefaultInstance()) { + getStateInfoBuilder().mergeFrom(value); } else { - createTime_ = value; + stateInfo_ = value; } } else { - createTimeBuilder_.mergeFrom(value); + stateInfoBuilder_.mergeFrom(value); } - if (createTime_ != null) { - bitField0_ |= 0x00000002; + if (stateInfo_ != null) { + bitField0_ |= 0x00004000; onChanged(); } return this; @@ -4205,19 +9559,19 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * * *
    -     * Output only. The timestamp associated with the cluster creation request.
    +     * Output only. Additional information about the current state of the cluster.
          * 
    * * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.redis.cluster.v1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000002); - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; + public Builder clearStateInfo() { + bitField0_ = (bitField0_ & ~0x00004000); + stateInfo_ = null; + if (stateInfoBuilder_ != null) { + stateInfoBuilder_.dispose(); + stateInfoBuilder_ = null; } onChanged(); return this; @@ -4226,103 +9580,103 @@ public Builder clearCreateTime() { * * *
    -     * Output only. The timestamp associated with the cluster creation request.
    +     * Output only. Additional information about the current state of the cluster.
          * 
    * * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.redis.cluster.v1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000002; + public com.google.cloud.redis.cluster.v1.Cluster.StateInfo.Builder getStateInfoBuilder() { + bitField0_ |= 0x00004000; onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); + return getStateInfoFieldBuilder().getBuilder(); } /** * * *
    -     * Output only. The timestamp associated with the cluster creation request.
    +     * Output only. Additional information about the current state of the cluster.
          * 
    * * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.redis.cluster.v1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); + public com.google.cloud.redis.cluster.v1.Cluster.StateInfoOrBuilder getStateInfoOrBuilder() { + if (stateInfoBuilder_ != null) { + return stateInfoBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return stateInfo_ == null + ? com.google.cloud.redis.cluster.v1.Cluster.StateInfo.getDefaultInstance() + : stateInfo_; } } /** * * *
    -     * Output only. The timestamp associated with the cluster creation request.
    +     * Output only. Additional information about the current state of the cluster.
          * 
    * * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.redis.cluster.v1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = + com.google.cloud.redis.cluster.v1.Cluster.StateInfo, + com.google.cloud.redis.cluster.v1.Cluster.StateInfo.Builder, + com.google.cloud.redis.cluster.v1.Cluster.StateInfoOrBuilder> + getStateInfoFieldBuilder() { + if (stateInfoBuilder_ == null) { + stateInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; + com.google.cloud.redis.cluster.v1.Cluster.StateInfo, + com.google.cloud.redis.cluster.v1.Cluster.StateInfo.Builder, + com.google.cloud.redis.cluster.v1.Cluster.StateInfoOrBuilder>( + getStateInfo(), getParentForChildren(), isClean()); + stateInfo_ = null; } - return createTimeBuilder_; + return stateInfoBuilder_; } - private int state_ = 0; + private int nodeType_ = 0; /** * * *
    -     * Output only. The current state of this cluster.
    -     * Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
    +     * Optional. The type of a redis node in the cluster. NodeType determines the
    +     * underlying machine-type of a redis node.
          * 
    * * - * .google.cloud.redis.cluster.v1.Cluster.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.redis.cluster.v1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The enum numeric value on the wire for state. + * @return The enum numeric value on the wire for nodeType. */ @java.lang.Override - public int getStateValue() { - return state_; + public int getNodeTypeValue() { + return nodeType_; } /** * * *
    -     * Output only. The current state of this cluster.
    -     * Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
    +     * Optional. The type of a redis node in the cluster. NodeType determines the
    +     * underlying machine-type of a redis node.
          * 
    * * - * .google.cloud.redis.cluster.v1.Cluster.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.redis.cluster.v1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; * * - * @param value The enum numeric value on the wire for state to set. + * @param value The enum numeric value on the wire for nodeType to set. * @return This builder for chaining. */ - public Builder setStateValue(int value) { - state_ = value; - bitField0_ |= 0x00000004; + public Builder setNodeTypeValue(int value) { + nodeType_ = value; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -4330,147 +9684,43 @@ public Builder setStateValue(int value) { * * *
    -     * Output only. The current state of this cluster.
    -     * Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
    +     * Optional. The type of a redis node in the cluster. NodeType determines the
    +     * underlying machine-type of a redis node.
          * 
    * * - * .google.cloud.redis.cluster.v1.Cluster.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.redis.cluster.v1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The state. + * @return The nodeType. */ @java.lang.Override - public com.google.cloud.redis.cluster.v1.Cluster.State getState() { - com.google.cloud.redis.cluster.v1.Cluster.State result = - com.google.cloud.redis.cluster.v1.Cluster.State.forNumber(state_); - return result == null ? com.google.cloud.redis.cluster.v1.Cluster.State.UNRECOGNIZED : result; - } - /** - * - * - *
    -     * Output only. The current state of this cluster.
    -     * Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
    -     * 
    - * - * - * .google.cloud.redis.cluster.v1.Cluster.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState(com.google.cloud.redis.cluster.v1.Cluster.State value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
    -     * Output only. The current state of this cluster.
    -     * Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
    -     * 
    - * - * - * .google.cloud.redis.cluster.v1.Cluster.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000004); - state_ = 0; - onChanged(); - return this; - } - - private java.lang.Object uid_ = ""; - /** - * - * - *
    -     * Output only. System assigned, unique identifier for the cluster.
    -     * 
    - * - * string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The uid. - */ - public java.lang.String getUid() { - java.lang.Object ref = uid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
    -     * Output only. System assigned, unique identifier for the cluster.
    -     * 
    - * - * string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for uid. - */ - public com.google.protobuf.ByteString getUidBytes() { - java.lang.Object ref = uid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - uid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
    -     * Output only. System assigned, unique identifier for the cluster.
    -     * 
    - * - * string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The uid to set. - * @return This builder for chaining. - */ - public Builder setUid(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - uid_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; + public com.google.cloud.redis.cluster.v1.NodeType getNodeType() { + com.google.cloud.redis.cluster.v1.NodeType result = + com.google.cloud.redis.cluster.v1.NodeType.forNumber(nodeType_); + return result == null ? com.google.cloud.redis.cluster.v1.NodeType.UNRECOGNIZED : result; } /** * * *
    -     * Output only. System assigned, unique identifier for the cluster.
    +     * Optional. The type of a redis node in the cluster. NodeType determines the
    +     * underlying machine-type of a redis node.
          * 
    * - * string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.cluster.v1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * * + * @param value The nodeType to set. * @return This builder for chaining. */ - public Builder clearUid() { - uid_ = getDefaultInstance().getUid(); - bitField0_ = (bitField0_ & ~0x00000008); + public Builder setNodeType(com.google.cloud.redis.cluster.v1.NodeType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00008000; + nodeType_ = value.getNumber(); onChanged(); return this; } @@ -4478,72 +9728,89 @@ public Builder clearUid() { * * *
    -     * Output only. System assigned, unique identifier for the cluster.
    +     * Optional. The type of a redis node in the cluster. NodeType determines the
    +     * underlying machine-type of a redis node.
          * 
    * - * string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.cluster.v1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - uid_ = value; - bitField0_ |= 0x00000008; + public Builder clearNodeType() { + bitField0_ = (bitField0_ & ~0x00008000); + nodeType_ = 0; onChanged(); return this; } - private int replicaCount_; + private com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistenceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig, + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.Builder, + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfigOrBuilder> + persistenceConfigBuilder_; /** * * *
    -     * Optional. The number of replica nodes per shard.
    +     * Optional. Persistence config (RDB, AOF) for the cluster.
          * 
    * - * optional int32 replica_count = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return Whether the replicaCount field is set. + * @return Whether the persistenceConfig field is set. */ - @java.lang.Override - public boolean hasReplicaCount() { - return ((bitField0_ & 0x00000010) != 0); + public boolean hasPersistenceConfig() { + return ((bitField0_ & 0x00010000) != 0); } /** * * *
    -     * Optional. The number of replica nodes per shard.
    +     * Optional. Persistence config (RDB, AOF) for the cluster.
          * 
    * - * optional int32 replica_count = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The replicaCount. + * @return The persistenceConfig. */ - @java.lang.Override - public int getReplicaCount() { - return replicaCount_; + public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig getPersistenceConfig() { + if (persistenceConfigBuilder_ == null) { + return persistenceConfig_ == null + ? com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.getDefaultInstance() + : persistenceConfig_; + } else { + return persistenceConfigBuilder_.getMessage(); + } } /** * * *
    -     * Optional. The number of replica nodes per shard.
    +     * Optional. Persistence config (RDB, AOF) for the cluster.
          * 
    * - * optional int32 replica_count = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The replicaCount to set. - * @return This builder for chaining. + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setReplicaCount(int value) { - - replicaCount_ = value; - bitField0_ |= 0x00000010; + public Builder setPersistenceConfig( + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig value) { + if (persistenceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + persistenceConfig_ = value; + } else { + persistenceConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -4551,57 +9818,74 @@ public Builder setReplicaCount(int value) { * * *
    -     * Optional. The number of replica nodes per shard.
    +     * Optional. Persistence config (RDB, AOF) for the cluster.
          * 
    * - * optional int32 replica_count = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearReplicaCount() { - bitField0_ = (bitField0_ & ~0x00000010); - replicaCount_ = 0; + public Builder setPersistenceConfig( + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.Builder builderForValue) { + if (persistenceConfigBuilder_ == null) { + persistenceConfig_ = builderForValue.build(); + } else { + persistenceConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00010000; onChanged(); return this; } - - private int authorizationMode_ = 0; /** * * *
    -     * Optional. The authorization mode of the Redis cluster.
    -     * If not provided, auth feature is disabled for the cluster.
    +     * Optional. Persistence config (RDB, AOF) for the cluster.
          * 
    * * - * .google.cloud.redis.cluster.v1.AuthorizationMode authorization_mode = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The enum numeric value on the wire for authorizationMode. */ - @java.lang.Override - public int getAuthorizationModeValue() { - return authorizationMode_; + public Builder mergePersistenceConfig( + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig value) { + if (persistenceConfigBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0) + && persistenceConfig_ != null + && persistenceConfig_ + != com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig + .getDefaultInstance()) { + getPersistenceConfigBuilder().mergeFrom(value); + } else { + persistenceConfig_ = value; + } + } else { + persistenceConfigBuilder_.mergeFrom(value); + } + if (persistenceConfig_ != null) { + bitField0_ |= 0x00010000; + onChanged(); + } + return this; } /** * * *
    -     * Optional. The authorization mode of the Redis cluster.
    -     * If not provided, auth feature is disabled for the cluster.
    +     * Optional. Persistence config (RDB, AOF) for the cluster.
          * 
    * * - * .google.cloud.redis.cluster.v1.AuthorizationMode authorization_mode = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param value The enum numeric value on the wire for authorizationMode to set. - * @return This builder for chaining. */ - public Builder setAuthorizationModeValue(int value) { - authorizationMode_ = value; - bitField0_ |= 0x00000020; + public Builder clearPersistenceConfig() { + bitField0_ = (bitField0_ & ~0x00010000); + persistenceConfig_ = null; + if (persistenceConfigBuilder_ != null) { + persistenceConfigBuilder_.dispose(); + persistenceConfigBuilder_ = null; + } onChanged(); return this; } @@ -4609,493 +9893,441 @@ public Builder setAuthorizationModeValue(int value) { * * *
    -     * Optional. The authorization mode of the Redis cluster.
    -     * If not provided, auth feature is disabled for the cluster.
    +     * Optional. Persistence config (RDB, AOF) for the cluster.
          * 
    * * - * .google.cloud.redis.cluster.v1.AuthorizationMode authorization_mode = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The authorizationMode. */ - @java.lang.Override - public com.google.cloud.redis.cluster.v1.AuthorizationMode getAuthorizationMode() { - com.google.cloud.redis.cluster.v1.AuthorizationMode result = - com.google.cloud.redis.cluster.v1.AuthorizationMode.forNumber(authorizationMode_); - return result == null - ? com.google.cloud.redis.cluster.v1.AuthorizationMode.UNRECOGNIZED - : result; + public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.Builder + getPersistenceConfigBuilder() { + bitField0_ |= 0x00010000; + onChanged(); + return getPersistenceConfigFieldBuilder().getBuilder(); } /** * * *
    -     * Optional. The authorization mode of the Redis cluster.
    -     * If not provided, auth feature is disabled for the cluster.
    +     * Optional. Persistence config (RDB, AOF) for the cluster.
          * 
    * * - * .google.cloud.redis.cluster.v1.AuthorizationMode authorization_mode = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param value The authorizationMode to set. - * @return This builder for chaining. */ - public Builder setAuthorizationMode(com.google.cloud.redis.cluster.v1.AuthorizationMode value) { - if (value == null) { - throw new NullPointerException(); + public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfigOrBuilder + getPersistenceConfigOrBuilder() { + if (persistenceConfigBuilder_ != null) { + return persistenceConfigBuilder_.getMessageOrBuilder(); + } else { + return persistenceConfig_ == null + ? com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.getDefaultInstance() + : persistenceConfig_; } - bitField0_ |= 0x00000020; - authorizationMode_ = value.getNumber(); - onChanged(); - return this; } /** * * *
    -     * Optional. The authorization mode of the Redis cluster.
    -     * If not provided, auth feature is disabled for the cluster.
    +     * Optional. Persistence config (RDB, AOF) for the cluster.
          * 
    * * - * .google.cloud.redis.cluster.v1.AuthorizationMode authorization_mode = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return This builder for chaining. */ - public Builder clearAuthorizationMode() { - bitField0_ = (bitField0_ & ~0x00000020); - authorizationMode_ = 0; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig, + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.Builder, + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfigOrBuilder> + getPersistenceConfigFieldBuilder() { + if (persistenceConfigBuilder_ == null) { + persistenceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig, + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.Builder, + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfigOrBuilder>( + getPersistenceConfig(), getParentForChildren(), isClean()); + persistenceConfig_ = null; + } + return persistenceConfigBuilder_; + } + + private com.google.protobuf.MapField redisConfigs_; + + private com.google.protobuf.MapField + internalGetRedisConfigs() { + if (redisConfigs_ == null) { + return com.google.protobuf.MapField.emptyMapField( + RedisConfigsDefaultEntryHolder.defaultEntry); + } + return redisConfigs_; + } + + private com.google.protobuf.MapField + internalGetMutableRedisConfigs() { + if (redisConfigs_ == null) { + redisConfigs_ = + com.google.protobuf.MapField.newMapField(RedisConfigsDefaultEntryHolder.defaultEntry); + } + if (!redisConfigs_.isMutable()) { + redisConfigs_ = redisConfigs_.copy(); + } + bitField0_ |= 0x00020000; onChanged(); - return this; + return redisConfigs_; } - private int transitEncryptionMode_ = 0; + public int getRedisConfigsCount() { + return internalGetRedisConfigs().getMap().size(); + } /** * * *
    -     * Optional. The in-transit encryption for the Redis cluster.
    -     * If not provided, encryption  is disabled for the cluster.
    +     * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
          * 
    * - * - * .google.cloud.redis.cluster.v1.TransitEncryptionMode transit_encryption_mode = 12 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The enum numeric value on the wire for transitEncryptionMode. */ @java.lang.Override - public int getTransitEncryptionModeValue() { - return transitEncryptionMode_; + public boolean containsRedisConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetRedisConfigs().getMap().containsKey(key); + } + /** Use {@link #getRedisConfigsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getRedisConfigs() { + return getRedisConfigsMap(); } /** * * *
    -     * Optional. The in-transit encryption for the Redis cluster.
    -     * If not provided, encryption  is disabled for the cluster.
    +     * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
          * 
    * - * - * .google.cloud.redis.cluster.v1.TransitEncryptionMode transit_encryption_mode = 12 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param value The enum numeric value on the wire for transitEncryptionMode to set. - * @return This builder for chaining. */ - public Builder setTransitEncryptionModeValue(int value) { - transitEncryptionMode_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; + @java.lang.Override + public java.util.Map getRedisConfigsMap() { + return internalGetRedisConfigs().getMap(); } /** * * *
    -     * Optional. The in-transit encryption for the Redis cluster.
    -     * If not provided, encryption  is disabled for the cluster.
    +     * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
          * 
    * - * - * .google.cloud.redis.cluster.v1.TransitEncryptionMode transit_encryption_mode = 12 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The transitEncryptionMode. */ @java.lang.Override - public com.google.cloud.redis.cluster.v1.TransitEncryptionMode getTransitEncryptionMode() { - com.google.cloud.redis.cluster.v1.TransitEncryptionMode result = - com.google.cloud.redis.cluster.v1.TransitEncryptionMode.forNumber(transitEncryptionMode_); - return result == null - ? com.google.cloud.redis.cluster.v1.TransitEncryptionMode.UNRECOGNIZED - : result; + public /* nullable */ java.lang.String getRedisConfigsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetRedisConfigs().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
    -     * Optional. The in-transit encryption for the Redis cluster.
    -     * If not provided, encryption  is disabled for the cluster.
    +     * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
          * 
    * - * - * .google.cloud.redis.cluster.v1.TransitEncryptionMode transit_encryption_mode = 12 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param value The transitEncryptionMode to set. - * @return This builder for chaining. */ - public Builder setTransitEncryptionMode( - com.google.cloud.redis.cluster.v1.TransitEncryptionMode value) { - if (value == null) { - throw new NullPointerException(); + @java.lang.Override + public java.lang.String getRedisConfigsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - bitField0_ |= 0x00000040; - transitEncryptionMode_ = value.getNumber(); - onChanged(); + java.util.Map map = internalGetRedisConfigs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearRedisConfigs() { + bitField0_ = (bitField0_ & ~0x00020000); + internalGetMutableRedisConfigs().getMutableMap().clear(); return this; } /** * * *
    -     * Optional. The in-transit encryption for the Redis cluster.
    -     * If not provided, encryption  is disabled for the cluster.
    +     * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
          * 
    * - * - * .google.cloud.redis.cluster.v1.TransitEncryptionMode transit_encryption_mode = 12 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return This builder for chaining. */ - public Builder clearTransitEncryptionMode() { - bitField0_ = (bitField0_ & ~0x00000040); - transitEncryptionMode_ = 0; - onChanged(); + public Builder removeRedisConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableRedisConfigs().getMutableMap().remove(key); return this; } - - private int sizeGb_; - /** - * - * - *
    -     * Output only. Redis memory size in GB for the entire cluster rounded up to
    -     * the next integer.
    -     * 
    - * - * optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return Whether the sizeGb field is set. - */ - @java.lang.Override - public boolean hasSizeGb() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * - * - *
    -     * Output only. Redis memory size in GB for the entire cluster rounded up to
    -     * the next integer.
    -     * 
    - * - * optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The sizeGb. - */ - @java.lang.Override - public int getSizeGb() { - return sizeGb_; + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableRedisConfigs() { + bitField0_ |= 0x00020000; + return internalGetMutableRedisConfigs().getMutableMap(); } /** * * *
    -     * Output only. Redis memory size in GB for the entire cluster rounded up to
    -     * the next integer.
    +     * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
          * 
    * - * optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The sizeGb to set. - * @return This builder for chaining. + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setSizeGb(int value) { - - sizeGb_ = value; - bitField0_ |= 0x00000080; - onChanged(); + public Builder putRedisConfigs(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableRedisConfigs().getMutableMap().put(key, value); + bitField0_ |= 0x00020000; return this; } /** * * *
    -     * Output only. Redis memory size in GB for the entire cluster rounded up to
    -     * the next integer.
    +     * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
          * 
    * - * optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearSizeGb() { - bitField0_ = (bitField0_ & ~0x00000080); - sizeGb_ = 0; - onChanged(); + public Builder putAllRedisConfigs(java.util.Map values) { + internalGetMutableRedisConfigs().getMutableMap().putAll(values); + bitField0_ |= 0x00020000; return this; } - private int shardCount_; + private double preciseSizeGb_; /** * * *
    -     * Required. Number of shards for the Redis cluster.
    +     * Output only. Precise value of redis memory size in GB for the entire
    +     * cluster.
          * 
    * - * optional int32 shard_count = 14 [(.google.api.field_behavior) = REQUIRED]; + * optional double precise_size_gb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return Whether the shardCount field is set. + * @return Whether the preciseSizeGb field is set. */ @java.lang.Override - public boolean hasShardCount() { - return ((bitField0_ & 0x00000100) != 0); + public boolean hasPreciseSizeGb() { + return ((bitField0_ & 0x00040000) != 0); } /** * * *
    -     * Required. Number of shards for the Redis cluster.
    +     * Output only. Precise value of redis memory size in GB for the entire
    +     * cluster.
          * 
    * - * optional int32 shard_count = 14 [(.google.api.field_behavior) = REQUIRED]; + * optional double precise_size_gb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The shardCount. + * @return The preciseSizeGb. */ @java.lang.Override - public int getShardCount() { - return shardCount_; - } - /** - * - * - *
    -     * Required. Number of shards for the Redis cluster.
    -     * 
    - * - * optional int32 shard_count = 14 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The shardCount to set. - * @return This builder for chaining. - */ - public Builder setShardCount(int value) { - - shardCount_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; + public double getPreciseSizeGb() { + return preciseSizeGb_; } /** * * *
    -     * Required. Number of shards for the Redis cluster.
    +     * Output only. Precise value of redis memory size in GB for the entire
    +     * cluster.
          * 
    * - * optional int32 shard_count = 14 [(.google.api.field_behavior) = REQUIRED]; + * optional double precise_size_gb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * + * @param value The preciseSizeGb to set. * @return This builder for chaining. - */ - public Builder clearShardCount() { - bitField0_ = (bitField0_ & ~0x00000100); - shardCount_ = 0; - onChanged(); - return this; - } - - private java.util.List pscConfigs_ = - java.util.Collections.emptyList(); - - private void ensurePscConfigsIsMutable() { - if (!((bitField0_ & 0x00000200) != 0)) { - pscConfigs_ = - new java.util.ArrayList(pscConfigs_); - bitField0_ |= 0x00000200; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.cluster.v1.PscConfig, - com.google.cloud.redis.cluster.v1.PscConfig.Builder, - com.google.cloud.redis.cluster.v1.PscConfigOrBuilder> - pscConfigsBuilder_; + */ + public Builder setPreciseSizeGb(double value) { + preciseSizeGb_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } /** * * *
    -     * Required. Each PscConfig configures the consumer network where IPs will
    -     * be designated to the cluster for client access through Private Service
    -     * Connect Automation. Currently, only one PscConfig is supported.
    +     * Output only. Precise value of redis memory size in GB for the entire
    +     * cluster.
          * 
    * - * - * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * optional double precise_size_gb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return This builder for chaining. */ - public java.util.List getPscConfigsList() { - if (pscConfigsBuilder_ == null) { - return java.util.Collections.unmodifiableList(pscConfigs_); - } else { - return pscConfigsBuilder_.getMessageList(); - } + public Builder clearPreciseSizeGb() { + bitField0_ = (bitField0_ & ~0x00040000); + preciseSizeGb_ = 0D; + onChanged(); + return this; } + + private com.google.cloud.redis.cluster.v1.ZoneDistributionConfig zoneDistributionConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.ZoneDistributionConfig, + com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.Builder, + com.google.cloud.redis.cluster.v1.ZoneDistributionConfigOrBuilder> + zoneDistributionConfigBuilder_; /** * * *
    -     * Required. Each PscConfig configures the consumer network where IPs will
    -     * be designated to the cluster for client access through Private Service
    -     * Connect Automation. Currently, only one PscConfig is supported.
    +     * Optional. This config will be used to determine how the customer wants us
    +     * to distribute cluster resources within the region.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.cluster.v1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return Whether the zoneDistributionConfig field is set. */ - public int getPscConfigsCount() { - if (pscConfigsBuilder_ == null) { - return pscConfigs_.size(); - } else { - return pscConfigsBuilder_.getCount(); - } + public boolean hasZoneDistributionConfig() { + return ((bitField0_ & 0x00080000) != 0); } /** * * *
    -     * Required. Each PscConfig configures the consumer network where IPs will
    -     * be designated to the cluster for client access through Private Service
    -     * Connect Automation. Currently, only one PscConfig is supported.
    +     * Optional. This config will be used to determine how the customer wants us
    +     * to distribute cluster resources within the region.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.cluster.v1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The zoneDistributionConfig. */ - public com.google.cloud.redis.cluster.v1.PscConfig getPscConfigs(int index) { - if (pscConfigsBuilder_ == null) { - return pscConfigs_.get(index); + public com.google.cloud.redis.cluster.v1.ZoneDistributionConfig getZoneDistributionConfig() { + if (zoneDistributionConfigBuilder_ == null) { + return zoneDistributionConfig_ == null + ? com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.getDefaultInstance() + : zoneDistributionConfig_; } else { - return pscConfigsBuilder_.getMessage(index); + return zoneDistributionConfigBuilder_.getMessage(); } } /** * * *
    -     * Required. Each PscConfig configures the consumer network where IPs will
    -     * be designated to the cluster for client access through Private Service
    -     * Connect Automation. Currently, only one PscConfig is supported.
    +     * Optional. This config will be used to determine how the customer wants us
    +     * to distribute cluster resources within the region.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.cluster.v1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setPscConfigs(int index, com.google.cloud.redis.cluster.v1.PscConfig value) { - if (pscConfigsBuilder_ == null) { + public Builder setZoneDistributionConfig( + com.google.cloud.redis.cluster.v1.ZoneDistributionConfig value) { + if (zoneDistributionConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensurePscConfigsIsMutable(); - pscConfigs_.set(index, value); - onChanged(); + zoneDistributionConfig_ = value; } else { - pscConfigsBuilder_.setMessage(index, value); + zoneDistributionConfigBuilder_.setMessage(value); } + bitField0_ |= 0x00080000; + onChanged(); return this; } /** * * *
    -     * Required. Each PscConfig configures the consumer network where IPs will
    -     * be designated to the cluster for client access through Private Service
    -     * Connect Automation. Currently, only one PscConfig is supported.
    +     * Optional. This config will be used to determine how the customer wants us
    +     * to distribute cluster resources within the region.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.cluster.v1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setPscConfigs( - int index, com.google.cloud.redis.cluster.v1.PscConfig.Builder builderForValue) { - if (pscConfigsBuilder_ == null) { - ensurePscConfigsIsMutable(); - pscConfigs_.set(index, builderForValue.build()); - onChanged(); + public Builder setZoneDistributionConfig( + com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.Builder builderForValue) { + if (zoneDistributionConfigBuilder_ == null) { + zoneDistributionConfig_ = builderForValue.build(); } else { - pscConfigsBuilder_.setMessage(index, builderForValue.build()); + zoneDistributionConfigBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00080000; + onChanged(); return this; } /** * * *
    -     * Required. Each PscConfig configures the consumer network where IPs will
    -     * be designated to the cluster for client access through Private Service
    -     * Connect Automation. Currently, only one PscConfig is supported.
    +     * Optional. This config will be used to determine how the customer wants us
    +     * to distribute cluster resources within the region.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.cluster.v1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addPscConfigs(com.google.cloud.redis.cluster.v1.PscConfig value) { - if (pscConfigsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); + public Builder mergeZoneDistributionConfig( + com.google.cloud.redis.cluster.v1.ZoneDistributionConfig value) { + if (zoneDistributionConfigBuilder_ == null) { + if (((bitField0_ & 0x00080000) != 0) + && zoneDistributionConfig_ != null + && zoneDistributionConfig_ + != com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.getDefaultInstance()) { + getZoneDistributionConfigBuilder().mergeFrom(value); + } else { + zoneDistributionConfig_ = value; } - ensurePscConfigsIsMutable(); - pscConfigs_.add(value); - onChanged(); } else { - pscConfigsBuilder_.addMessage(value); + zoneDistributionConfigBuilder_.mergeFrom(value); } - return this; - } - /** - * - * - *
    -     * Required. Each PscConfig configures the consumer network where IPs will
    -     * be designated to the cluster for client access through Private Service
    -     * Connect Automation. Currently, only one PscConfig is supported.
    -     * 
    - * - * - * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addPscConfigs(int index, com.google.cloud.redis.cluster.v1.PscConfig value) { - if (pscConfigsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePscConfigsIsMutable(); - pscConfigs_.add(index, value); + if (zoneDistributionConfig_ != null) { + bitField0_ |= 0x00080000; onChanged(); - } else { - pscConfigsBuilder_.addMessage(index, value); } return this; } @@ -5103,511 +10335,506 @@ public Builder addPscConfigs(int index, com.google.cloud.redis.cluster.v1.PscCon * * *
    -     * Required. Each PscConfig configures the consumer network where IPs will
    -     * be designated to the cluster for client access through Private Service
    -     * Connect Automation. Currently, only one PscConfig is supported.
    +     * Optional. This config will be used to determine how the customer wants us
    +     * to distribute cluster resources within the region.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.cluster.v1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addPscConfigs( - com.google.cloud.redis.cluster.v1.PscConfig.Builder builderForValue) { - if (pscConfigsBuilder_ == null) { - ensurePscConfigsIsMutable(); - pscConfigs_.add(builderForValue.build()); - onChanged(); - } else { - pscConfigsBuilder_.addMessage(builderForValue.build()); + public Builder clearZoneDistributionConfig() { + bitField0_ = (bitField0_ & ~0x00080000); + zoneDistributionConfig_ = null; + if (zoneDistributionConfigBuilder_ != null) { + zoneDistributionConfigBuilder_.dispose(); + zoneDistributionConfigBuilder_ = null; } + onChanged(); return this; } /** * * *
    -     * Required. Each PscConfig configures the consumer network where IPs will
    -     * be designated to the cluster for client access through Private Service
    -     * Connect Automation. Currently, only one PscConfig is supported.
    +     * Optional. This config will be used to determine how the customer wants us
    +     * to distribute cluster resources within the region.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.cluster.v1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addPscConfigs( - int index, com.google.cloud.redis.cluster.v1.PscConfig.Builder builderForValue) { - if (pscConfigsBuilder_ == null) { - ensurePscConfigsIsMutable(); - pscConfigs_.add(index, builderForValue.build()); - onChanged(); - } else { - pscConfigsBuilder_.addMessage(index, builderForValue.build()); - } - return this; + public com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.Builder + getZoneDistributionConfigBuilder() { + bitField0_ |= 0x00080000; + onChanged(); + return getZoneDistributionConfigFieldBuilder().getBuilder(); } /** * * *
    -     * Required. Each PscConfig configures the consumer network where IPs will
    -     * be designated to the cluster for client access through Private Service
    -     * Connect Automation. Currently, only one PscConfig is supported.
    +     * Optional. This config will be used to determine how the customer wants us
    +     * to distribute cluster resources within the region.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.cluster.v1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addAllPscConfigs( - java.lang.Iterable values) { - if (pscConfigsBuilder_ == null) { - ensurePscConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pscConfigs_); - onChanged(); + public com.google.cloud.redis.cluster.v1.ZoneDistributionConfigOrBuilder + getZoneDistributionConfigOrBuilder() { + if (zoneDistributionConfigBuilder_ != null) { + return zoneDistributionConfigBuilder_.getMessageOrBuilder(); } else { - pscConfigsBuilder_.addAllMessages(values); + return zoneDistributionConfig_ == null + ? com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.getDefaultInstance() + : zoneDistributionConfig_; } - return this; } /** * * *
    -     * Required. Each PscConfig configures the consumer network where IPs will
    -     * be designated to the cluster for client access through Private Service
    -     * Connect Automation. Currently, only one PscConfig is supported.
    +     * Optional. This config will be used to determine how the customer wants us
    +     * to distribute cluster resources within the region.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.cluster.v1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearPscConfigs() { - if (pscConfigsBuilder_ == null) { - pscConfigs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); - onChanged(); - } else { - pscConfigsBuilder_.clear(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.ZoneDistributionConfig, + com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.Builder, + com.google.cloud.redis.cluster.v1.ZoneDistributionConfigOrBuilder> + getZoneDistributionConfigFieldBuilder() { + if (zoneDistributionConfigBuilder_ == null) { + zoneDistributionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.ZoneDistributionConfig, + com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.Builder, + com.google.cloud.redis.cluster.v1.ZoneDistributionConfigOrBuilder>( + getZoneDistributionConfig(), getParentForChildren(), isClean()); + zoneDistributionConfig_ = null; } - return this; + return zoneDistributionConfigBuilder_; } + + private com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig + crossClusterReplicationConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Builder, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfigOrBuilder> + crossClusterReplicationConfigBuilder_; /** * * *
    -     * Required. Each PscConfig configures the consumer network where IPs will
    -     * be designated to the cluster for client access through Private Service
    -     * Connect Automation. Currently, only one PscConfig is supported.
    +     * Optional. Cross cluster replication config.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig cross_cluster_replication_config = 24 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return Whether the crossClusterReplicationConfig field is set. */ - public Builder removePscConfigs(int index) { - if (pscConfigsBuilder_ == null) { - ensurePscConfigsIsMutable(); - pscConfigs_.remove(index); - onChanged(); - } else { - pscConfigsBuilder_.remove(index); - } - return this; + public boolean hasCrossClusterReplicationConfig() { + return ((bitField0_ & 0x00100000) != 0); } /** * * *
    -     * Required. Each PscConfig configures the consumer network where IPs will
    -     * be designated to the cluster for client access through Private Service
    -     * Connect Automation. Currently, only one PscConfig is supported.
    +     * Optional. Cross cluster replication config.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig cross_cluster_replication_config = 24 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The crossClusterReplicationConfig. */ - public com.google.cloud.redis.cluster.v1.PscConfig.Builder getPscConfigsBuilder(int index) { - return getPscConfigsFieldBuilder().getBuilder(index); + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig + getCrossClusterReplicationConfig() { + if (crossClusterReplicationConfigBuilder_ == null) { + return crossClusterReplicationConfig_ == null + ? com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.getDefaultInstance() + : crossClusterReplicationConfig_; + } else { + return crossClusterReplicationConfigBuilder_.getMessage(); + } } /** * * *
    -     * Required. Each PscConfig configures the consumer network where IPs will
    -     * be designated to the cluster for client access through Private Service
    -     * Connect Automation. Currently, only one PscConfig is supported.
    +     * Optional. Cross cluster replication config.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig cross_cluster_replication_config = 24 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.redis.cluster.v1.PscConfigOrBuilder getPscConfigsOrBuilder(int index) { - if (pscConfigsBuilder_ == null) { - return pscConfigs_.get(index); + public Builder setCrossClusterReplicationConfig( + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig value) { + if (crossClusterReplicationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + crossClusterReplicationConfig_ = value; } else { - return pscConfigsBuilder_.getMessageOrBuilder(index); + crossClusterReplicationConfigBuilder_.setMessage(value); } + bitField0_ |= 0x00100000; + onChanged(); + return this; } /** * * *
    -     * Required. Each PscConfig configures the consumer network where IPs will
    -     * be designated to the cluster for client access through Private Service
    -     * Connect Automation. Currently, only one PscConfig is supported.
    +     * Optional. Cross cluster replication config.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig cross_cluster_replication_config = 24 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List - getPscConfigsOrBuilderList() { - if (pscConfigsBuilder_ != null) { - return pscConfigsBuilder_.getMessageOrBuilderList(); + public Builder setCrossClusterReplicationConfig( + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Builder builderForValue) { + if (crossClusterReplicationConfigBuilder_ == null) { + crossClusterReplicationConfig_ = builderForValue.build(); } else { - return java.util.Collections.unmodifiableList(pscConfigs_); + crossClusterReplicationConfigBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00100000; + onChanged(); + return this; } /** * * *
    -     * Required. Each PscConfig configures the consumer network where IPs will
    -     * be designated to the cluster for client access through Private Service
    -     * Connect Automation. Currently, only one PscConfig is supported.
    +     * Optional. Cross cluster replication config.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig cross_cluster_replication_config = 24 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.redis.cluster.v1.PscConfig.Builder addPscConfigsBuilder() { - return getPscConfigsFieldBuilder() - .addBuilder(com.google.cloud.redis.cluster.v1.PscConfig.getDefaultInstance()); + public Builder mergeCrossClusterReplicationConfig( + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig value) { + if (crossClusterReplicationConfigBuilder_ == null) { + if (((bitField0_ & 0x00100000) != 0) + && crossClusterReplicationConfig_ != null + && crossClusterReplicationConfig_ + != com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig + .getDefaultInstance()) { + getCrossClusterReplicationConfigBuilder().mergeFrom(value); + } else { + crossClusterReplicationConfig_ = value; + } + } else { + crossClusterReplicationConfigBuilder_.mergeFrom(value); + } + if (crossClusterReplicationConfig_ != null) { + bitField0_ |= 0x00100000; + onChanged(); + } + return this; } /** * * *
    -     * Required. Each PscConfig configures the consumer network where IPs will
    -     * be designated to the cluster for client access through Private Service
    -     * Connect Automation. Currently, only one PscConfig is supported.
    +     * Optional. Cross cluster replication config.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig cross_cluster_replication_config = 24 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.redis.cluster.v1.PscConfig.Builder addPscConfigsBuilder(int index) { - return getPscConfigsFieldBuilder() - .addBuilder(index, com.google.cloud.redis.cluster.v1.PscConfig.getDefaultInstance()); + public Builder clearCrossClusterReplicationConfig() { + bitField0_ = (bitField0_ & ~0x00100000); + crossClusterReplicationConfig_ = null; + if (crossClusterReplicationConfigBuilder_ != null) { + crossClusterReplicationConfigBuilder_.dispose(); + crossClusterReplicationConfigBuilder_ = null; + } + onChanged(); + return this; } /** * * *
    -     * Required. Each PscConfig configures the consumer network where IPs will
    -     * be designated to the cluster for client access through Private Service
    -     * Connect Automation. Currently, only one PscConfig is supported.
    +     * Optional. Cross cluster replication config.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig cross_cluster_replication_config = 24 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List - getPscConfigsBuilderList() { - return getPscConfigsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.cluster.v1.PscConfig, - com.google.cloud.redis.cluster.v1.PscConfig.Builder, - com.google.cloud.redis.cluster.v1.PscConfigOrBuilder> - getPscConfigsFieldBuilder() { - if (pscConfigsBuilder_ == null) { - pscConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.cluster.v1.PscConfig, - com.google.cloud.redis.cluster.v1.PscConfig.Builder, - com.google.cloud.redis.cluster.v1.PscConfigOrBuilder>( - pscConfigs_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); - pscConfigs_ = null; - } - return pscConfigsBuilder_; - } - - private java.util.List - discoveryEndpoints_ = java.util.Collections.emptyList(); - - private void ensureDiscoveryEndpointsIsMutable() { - if (!((bitField0_ & 0x00000400) != 0)) { - discoveryEndpoints_ = - new java.util.ArrayList( - discoveryEndpoints_); - bitField0_ |= 0x00000400; - } + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Builder + getCrossClusterReplicationConfigBuilder() { + bitField0_ |= 0x00100000; + onChanged(); + return getCrossClusterReplicationConfigFieldBuilder().getBuilder(); } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.cluster.v1.DiscoveryEndpoint, - com.google.cloud.redis.cluster.v1.DiscoveryEndpoint.Builder, - com.google.cloud.redis.cluster.v1.DiscoveryEndpointOrBuilder> - discoveryEndpointsBuilder_; - /** * * *
    -     * Output only. Endpoints created on each given network, for Redis clients to
    -     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * Optional. Cross cluster replication config.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig cross_cluster_replication_config = 24 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List - getDiscoveryEndpointsList() { - if (discoveryEndpointsBuilder_ == null) { - return java.util.Collections.unmodifiableList(discoveryEndpoints_); + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfigOrBuilder + getCrossClusterReplicationConfigOrBuilder() { + if (crossClusterReplicationConfigBuilder_ != null) { + return crossClusterReplicationConfigBuilder_.getMessageOrBuilder(); } else { - return discoveryEndpointsBuilder_.getMessageList(); + return crossClusterReplicationConfig_ == null + ? com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.getDefaultInstance() + : crossClusterReplicationConfig_; } } /** * * *
    -     * Output only. Endpoints created on each given network, for Redis clients to
    -     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * Optional. Cross cluster replication config.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig cross_cluster_replication_config = 24 [(.google.api.field_behavior) = OPTIONAL]; * */ - public int getDiscoveryEndpointsCount() { - if (discoveryEndpointsBuilder_ == null) { - return discoveryEndpoints_.size(); - } else { - return discoveryEndpointsBuilder_.getCount(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Builder, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfigOrBuilder> + getCrossClusterReplicationConfigFieldBuilder() { + if (crossClusterReplicationConfigBuilder_ == null) { + crossClusterReplicationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Builder, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfigOrBuilder>( + getCrossClusterReplicationConfig(), getParentForChildren(), isClean()); + crossClusterReplicationConfig_ = null; } + return crossClusterReplicationConfigBuilder_; } + + private boolean deletionProtectionEnabled_; /** * * *
    -     * Output only. Endpoints created on each given network, for Redis clients to
    -     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * Optional. The delete operation will fail when the value is set to true.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool deletion_protection_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return Whether the deletionProtectionEnabled field is set. */ - public com.google.cloud.redis.cluster.v1.DiscoveryEndpoint getDiscoveryEndpoints(int index) { - if (discoveryEndpointsBuilder_ == null) { - return discoveryEndpoints_.get(index); - } else { - return discoveryEndpointsBuilder_.getMessage(index); - } + @java.lang.Override + public boolean hasDeletionProtectionEnabled() { + return ((bitField0_ & 0x00200000) != 0); } /** * * *
    -     * Output only. Endpoints created on each given network, for Redis clients to
    -     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * Optional. The delete operation will fail when the value is set to true.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool deletion_protection_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The deletionProtectionEnabled. */ - public Builder setDiscoveryEndpoints( - int index, com.google.cloud.redis.cluster.v1.DiscoveryEndpoint value) { - if (discoveryEndpointsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDiscoveryEndpointsIsMutable(); - discoveryEndpoints_.set(index, value); - onChanged(); - } else { - discoveryEndpointsBuilder_.setMessage(index, value); - } - return this; + @java.lang.Override + public boolean getDeletionProtectionEnabled() { + return deletionProtectionEnabled_; } /** * * *
    -     * Output only. Endpoints created on each given network, for Redis clients to
    -     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * Optional. The delete operation will fail when the value is set to true.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool deletion_protection_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @param value The deletionProtectionEnabled to set. + * @return This builder for chaining. */ - public Builder setDiscoveryEndpoints( - int index, com.google.cloud.redis.cluster.v1.DiscoveryEndpoint.Builder builderForValue) { - if (discoveryEndpointsBuilder_ == null) { - ensureDiscoveryEndpointsIsMutable(); - discoveryEndpoints_.set(index, builderForValue.build()); - onChanged(); - } else { - discoveryEndpointsBuilder_.setMessage(index, builderForValue.build()); - } + public Builder setDeletionProtectionEnabled(boolean value) { + + deletionProtectionEnabled_ = value; + bitField0_ |= 0x00200000; + onChanged(); return this; } /** * * *
    -     * Output only. Endpoints created on each given network, for Redis clients to
    -     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * Optional. The delete operation will fail when the value is set to true.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool deletion_protection_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return This builder for chaining. */ - public Builder addDiscoveryEndpoints( - com.google.cloud.redis.cluster.v1.DiscoveryEndpoint value) { - if (discoveryEndpointsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDiscoveryEndpointsIsMutable(); - discoveryEndpoints_.add(value); - onChanged(); - } else { - discoveryEndpointsBuilder_.addMessage(value); - } + public Builder clearDeletionProtectionEnabled() { + bitField0_ = (bitField0_ & ~0x00200000); + deletionProtectionEnabled_ = false; + onChanged(); return this; } + + private com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy maintenancePolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy, + com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy.Builder, + com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicyOrBuilder> + maintenancePolicyBuilder_; /** * * *
    -     * Output only. Endpoints created on each given network, for Redis clients to
    -     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * Optional. ClusterMaintenancePolicy determines when to allow or deny
    +     * updates.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.cloud.redis.cluster.v1.ClusterMaintenancePolicy maintenance_policy = 26 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return Whether the maintenancePolicy field is set. */ - public Builder addDiscoveryEndpoints( - int index, com.google.cloud.redis.cluster.v1.DiscoveryEndpoint value) { - if (discoveryEndpointsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDiscoveryEndpointsIsMutable(); - discoveryEndpoints_.add(index, value); - onChanged(); - } else { - discoveryEndpointsBuilder_.addMessage(index, value); - } - return this; + public boolean hasMaintenancePolicy() { + return ((bitField0_ & 0x00400000) != 0); } /** * * *
    -     * Output only. Endpoints created on each given network, for Redis clients to
    -     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * Optional. ClusterMaintenancePolicy determines when to allow or deny
    +     * updates.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.cloud.redis.cluster.v1.ClusterMaintenancePolicy maintenance_policy = 26 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The maintenancePolicy. */ - public Builder addDiscoveryEndpoints( - com.google.cloud.redis.cluster.v1.DiscoveryEndpoint.Builder builderForValue) { - if (discoveryEndpointsBuilder_ == null) { - ensureDiscoveryEndpointsIsMutable(); - discoveryEndpoints_.add(builderForValue.build()); - onChanged(); + public com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy getMaintenancePolicy() { + if (maintenancePolicyBuilder_ == null) { + return maintenancePolicy_ == null + ? com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy.getDefaultInstance() + : maintenancePolicy_; } else { - discoveryEndpointsBuilder_.addMessage(builderForValue.build()); + return maintenancePolicyBuilder_.getMessage(); } - return this; } /** * * *
    -     * Output only. Endpoints created on each given network, for Redis clients to
    -     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * Optional. ClusterMaintenancePolicy determines when to allow or deny
    +     * updates.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.cloud.redis.cluster.v1.ClusterMaintenancePolicy maintenance_policy = 26 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addDiscoveryEndpoints( - int index, com.google.cloud.redis.cluster.v1.DiscoveryEndpoint.Builder builderForValue) { - if (discoveryEndpointsBuilder_ == null) { - ensureDiscoveryEndpointsIsMutable(); - discoveryEndpoints_.add(index, builderForValue.build()); - onChanged(); + public Builder setMaintenancePolicy( + com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy value) { + if (maintenancePolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maintenancePolicy_ = value; } else { - discoveryEndpointsBuilder_.addMessage(index, builderForValue.build()); + maintenancePolicyBuilder_.setMessage(value); } + bitField0_ |= 0x00400000; + onChanged(); return this; } /** * * *
    -     * Output only. Endpoints created on each given network, for Redis clients to
    -     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * Optional. ClusterMaintenancePolicy determines when to allow or deny
    +     * updates.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.cloud.redis.cluster.v1.ClusterMaintenancePolicy maintenance_policy = 26 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addAllDiscoveryEndpoints( - java.lang.Iterable values) { - if (discoveryEndpointsBuilder_ == null) { - ensureDiscoveryEndpointsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, discoveryEndpoints_); - onChanged(); + public Builder setMaintenancePolicy( + com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy.Builder builderForValue) { + if (maintenancePolicyBuilder_ == null) { + maintenancePolicy_ = builderForValue.build(); } else { - discoveryEndpointsBuilder_.addAllMessages(values); + maintenancePolicyBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00400000; + onChanged(); return this; } /** * * *
    -     * Output only. Endpoints created on each given network, for Redis clients to
    -     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * Optional. ClusterMaintenancePolicy determines when to allow or deny
    +     * updates.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.cloud.redis.cluster.v1.ClusterMaintenancePolicy maintenance_policy = 26 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearDiscoveryEndpoints() { - if (discoveryEndpointsBuilder_ == null) { - discoveryEndpoints_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); - onChanged(); + public Builder mergeMaintenancePolicy( + com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy value) { + if (maintenancePolicyBuilder_ == null) { + if (((bitField0_ & 0x00400000) != 0) + && maintenancePolicy_ != null + && maintenancePolicy_ + != com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy + .getDefaultInstance()) { + getMaintenancePolicyBuilder().mergeFrom(value); + } else { + maintenancePolicy_ = value; + } } else { - discoveryEndpointsBuilder_.clear(); + maintenancePolicyBuilder_.mergeFrom(value); + } + if (maintenancePolicy_ != null) { + bitField0_ |= 0x00400000; + onChanged(); } return this; } @@ -5615,370 +10842,408 @@ public Builder clearDiscoveryEndpoints() { * * *
    -     * Output only. Endpoints created on each given network, for Redis clients to
    -     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * Optional. ClusterMaintenancePolicy determines when to allow or deny
    +     * updates.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder removeDiscoveryEndpoints(int index) { - if (discoveryEndpointsBuilder_ == null) { - ensureDiscoveryEndpointsIsMutable(); - discoveryEndpoints_.remove(index); - onChanged(); - } else { - discoveryEndpointsBuilder_.remove(index); + * optional .google.cloud.redis.cluster.v1.ClusterMaintenancePolicy maintenance_policy = 26 [(.google.api.field_behavior) = OPTIONAL]; + *
    + */ + public Builder clearMaintenancePolicy() { + bitField0_ = (bitField0_ & ~0x00400000); + maintenancePolicy_ = null; + if (maintenancePolicyBuilder_ != null) { + maintenancePolicyBuilder_.dispose(); + maintenancePolicyBuilder_ = null; } + onChanged(); return this; } /** * * *
    -     * Output only. Endpoints created on each given network, for Redis clients to
    -     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * Optional. ClusterMaintenancePolicy determines when to allow or deny
    +     * updates.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.cloud.redis.cluster.v1.ClusterMaintenancePolicy maintenance_policy = 26 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.redis.cluster.v1.DiscoveryEndpoint.Builder getDiscoveryEndpointsBuilder( - int index) { - return getDiscoveryEndpointsFieldBuilder().getBuilder(index); + public com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy.Builder + getMaintenancePolicyBuilder() { + bitField0_ |= 0x00400000; + onChanged(); + return getMaintenancePolicyFieldBuilder().getBuilder(); } /** * * *
    -     * Output only. Endpoints created on each given network, for Redis clients to
    -     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * Optional. ClusterMaintenancePolicy determines when to allow or deny
    +     * updates.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.cloud.redis.cluster.v1.ClusterMaintenancePolicy maintenance_policy = 26 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.redis.cluster.v1.DiscoveryEndpointOrBuilder - getDiscoveryEndpointsOrBuilder(int index) { - if (discoveryEndpointsBuilder_ == null) { - return discoveryEndpoints_.get(index); + public com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicyOrBuilder + getMaintenancePolicyOrBuilder() { + if (maintenancePolicyBuilder_ != null) { + return maintenancePolicyBuilder_.getMessageOrBuilder(); } else { - return discoveryEndpointsBuilder_.getMessageOrBuilder(index); + return maintenancePolicy_ == null + ? com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy.getDefaultInstance() + : maintenancePolicy_; } } /** * * *
    -     * Output only. Endpoints created on each given network, for Redis clients to
    -     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * Optional. ClusterMaintenancePolicy determines when to allow or deny
    +     * updates.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.cloud.redis.cluster.v1.ClusterMaintenancePolicy maintenance_policy = 26 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List - getDiscoveryEndpointsOrBuilderList() { - if (discoveryEndpointsBuilder_ != null) { - return discoveryEndpointsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(discoveryEndpoints_); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy, + com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy.Builder, + com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicyOrBuilder> + getMaintenancePolicyFieldBuilder() { + if (maintenancePolicyBuilder_ == null) { + maintenancePolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy, + com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy.Builder, + com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicyOrBuilder>( + getMaintenancePolicy(), getParentForChildren(), isClean()); + maintenancePolicy_ = null; } + return maintenancePolicyBuilder_; } + + private com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule maintenanceSchedule_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule, + com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule.Builder, + com.google.cloud.redis.cluster.v1.ClusterMaintenanceScheduleOrBuilder> + maintenanceScheduleBuilder_; /** * * *
    -     * Output only. Endpoints created on each given network, for Redis clients to
    -     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * Output only. ClusterMaintenanceSchedule Output only Published maintenance
    +     * schedule.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule maintenance_schedule = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return Whether the maintenanceSchedule field is set. */ - public com.google.cloud.redis.cluster.v1.DiscoveryEndpoint.Builder - addDiscoveryEndpointsBuilder() { - return getDiscoveryEndpointsFieldBuilder() - .addBuilder(com.google.cloud.redis.cluster.v1.DiscoveryEndpoint.getDefaultInstance()); + public boolean hasMaintenanceSchedule() { + return ((bitField0_ & 0x00800000) != 0); } /** * * *
    -     * Output only. Endpoints created on each given network, for Redis clients to
    -     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * Output only. ClusterMaintenanceSchedule Output only Published maintenance
    +     * schedule.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule maintenance_schedule = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The maintenanceSchedule. */ - public com.google.cloud.redis.cluster.v1.DiscoveryEndpoint.Builder addDiscoveryEndpointsBuilder( - int index) { - return getDiscoveryEndpointsFieldBuilder() - .addBuilder( - index, com.google.cloud.redis.cluster.v1.DiscoveryEndpoint.getDefaultInstance()); + public com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule getMaintenanceSchedule() { + if (maintenanceScheduleBuilder_ == null) { + return maintenanceSchedule_ == null + ? com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule.getDefaultInstance() + : maintenanceSchedule_; + } else { + return maintenanceScheduleBuilder_.getMessage(); + } } /** * * *
    -     * Output only. Endpoints created on each given network, for Redis clients to
    -     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * Output only. ClusterMaintenanceSchedule Output only Published maintenance
    +     * schedule.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule maintenance_schedule = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public java.util.List - getDiscoveryEndpointsBuilderList() { - return getDiscoveryEndpointsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.cluster.v1.DiscoveryEndpoint, - com.google.cloud.redis.cluster.v1.DiscoveryEndpoint.Builder, - com.google.cloud.redis.cluster.v1.DiscoveryEndpointOrBuilder> - getDiscoveryEndpointsFieldBuilder() { - if (discoveryEndpointsBuilder_ == null) { - discoveryEndpointsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.cluster.v1.DiscoveryEndpoint, - com.google.cloud.redis.cluster.v1.DiscoveryEndpoint.Builder, - com.google.cloud.redis.cluster.v1.DiscoveryEndpointOrBuilder>( - discoveryEndpoints_, - ((bitField0_ & 0x00000400) != 0), - getParentForChildren(), - isClean()); - discoveryEndpoints_ = null; - } - return discoveryEndpointsBuilder_; - } - - private java.util.List pscConnections_ = - java.util.Collections.emptyList(); - - private void ensurePscConnectionsIsMutable() { - if (!((bitField0_ & 0x00000800) != 0)) { - pscConnections_ = - new java.util.ArrayList( - pscConnections_); - bitField0_ |= 0x00000800; + public Builder setMaintenanceSchedule( + com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule value) { + if (maintenanceScheduleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maintenanceSchedule_ = value; + } else { + maintenanceScheduleBuilder_.setMessage(value); } + bitField0_ |= 0x00800000; + onChanged(); + return this; } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.cluster.v1.PscConnection, - com.google.cloud.redis.cluster.v1.PscConnection.Builder, - com.google.cloud.redis.cluster.v1.PscConnectionOrBuilder> - pscConnectionsBuilder_; - /** * * *
    -     * Output only. PSC connections for discovery of the cluster topology and
    -     * accessing the cluster.
    +     * Output only. ClusterMaintenanceSchedule Output only Published maintenance
    +     * schedule.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule maintenance_schedule = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public java.util.List getPscConnectionsList() { - if (pscConnectionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(pscConnections_); + public Builder setMaintenanceSchedule( + com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule.Builder builderForValue) { + if (maintenanceScheduleBuilder_ == null) { + maintenanceSchedule_ = builderForValue.build(); } else { - return pscConnectionsBuilder_.getMessageList(); + maintenanceScheduleBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00800000; + onChanged(); + return this; } /** * * *
    -     * Output only. PSC connections for discovery of the cluster topology and
    -     * accessing the cluster.
    +     * Output only. ClusterMaintenanceSchedule Output only Published maintenance
    +     * schedule.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule maintenance_schedule = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public int getPscConnectionsCount() { - if (pscConnectionsBuilder_ == null) { - return pscConnections_.size(); + public Builder mergeMaintenanceSchedule( + com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule value) { + if (maintenanceScheduleBuilder_ == null) { + if (((bitField0_ & 0x00800000) != 0) + && maintenanceSchedule_ != null + && maintenanceSchedule_ + != com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule + .getDefaultInstance()) { + getMaintenanceScheduleBuilder().mergeFrom(value); + } else { + maintenanceSchedule_ = value; + } } else { - return pscConnectionsBuilder_.getCount(); + maintenanceScheduleBuilder_.mergeFrom(value); + } + if (maintenanceSchedule_ != null) { + bitField0_ |= 0x00800000; + onChanged(); } + return this; } /** * * *
    -     * Output only. PSC connections for discovery of the cluster topology and
    -     * accessing the cluster.
    +     * Output only. ClusterMaintenanceSchedule Output only Published maintenance
    +     * schedule.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule maintenance_schedule = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.redis.cluster.v1.PscConnection getPscConnections(int index) { - if (pscConnectionsBuilder_ == null) { - return pscConnections_.get(index); - } else { - return pscConnectionsBuilder_.getMessage(index); + public Builder clearMaintenanceSchedule() { + bitField0_ = (bitField0_ & ~0x00800000); + maintenanceSchedule_ = null; + if (maintenanceScheduleBuilder_ != null) { + maintenanceScheduleBuilder_.dispose(); + maintenanceScheduleBuilder_ = null; } + onChanged(); + return this; } /** * * *
    -     * Output only. PSC connections for discovery of the cluster topology and
    -     * accessing the cluster.
    +     * Output only. ClusterMaintenanceSchedule Output only Published maintenance
    +     * schedule.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule maintenance_schedule = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setPscConnections( - int index, com.google.cloud.redis.cluster.v1.PscConnection value) { - if (pscConnectionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePscConnectionsIsMutable(); - pscConnections_.set(index, value); - onChanged(); + public com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule.Builder + getMaintenanceScheduleBuilder() { + bitField0_ |= 0x00800000; + onChanged(); + return getMaintenanceScheduleFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Output only. ClusterMaintenanceSchedule Output only Published maintenance
    +     * schedule.
    +     * 
    + * + * + * optional .google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule maintenance_schedule = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.ClusterMaintenanceScheduleOrBuilder + getMaintenanceScheduleOrBuilder() { + if (maintenanceScheduleBuilder_ != null) { + return maintenanceScheduleBuilder_.getMessageOrBuilder(); } else { - pscConnectionsBuilder_.setMessage(index, value); + return maintenanceSchedule_ == null + ? com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule.getDefaultInstance() + : maintenanceSchedule_; } - return this; } /** * * *
    -     * Output only. PSC connections for discovery of the cluster topology and
    -     * accessing the cluster.
    +     * Output only. ClusterMaintenanceSchedule Output only Published maintenance
    +     * schedule.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule maintenance_schedule = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setPscConnections( - int index, com.google.cloud.redis.cluster.v1.PscConnection.Builder builderForValue) { - if (pscConnectionsBuilder_ == null) { - ensurePscConnectionsIsMutable(); - pscConnections_.set(index, builderForValue.build()); - onChanged(); - } else { - pscConnectionsBuilder_.setMessage(index, builderForValue.build()); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule, + com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule.Builder, + com.google.cloud.redis.cluster.v1.ClusterMaintenanceScheduleOrBuilder> + getMaintenanceScheduleFieldBuilder() { + if (maintenanceScheduleBuilder_ == null) { + maintenanceScheduleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule, + com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule.Builder, + com.google.cloud.redis.cluster.v1.ClusterMaintenanceScheduleOrBuilder>( + getMaintenanceSchedule(), getParentForChildren(), isClean()); + maintenanceSchedule_ = null; } - return this; + return maintenanceScheduleBuilder_; } + + private java.util.List + pscServiceAttachments_ = java.util.Collections.emptyList(); + + private void ensurePscServiceAttachmentsIsMutable() { + if (!((bitField0_ & 0x01000000) != 0)) { + pscServiceAttachments_ = + new java.util.ArrayList( + pscServiceAttachments_); + bitField0_ |= 0x01000000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1.PscServiceAttachment, + com.google.cloud.redis.cluster.v1.PscServiceAttachment.Builder, + com.google.cloud.redis.cluster.v1.PscServiceAttachmentOrBuilder> + pscServiceAttachmentsBuilder_; + /** * * *
    -     * Output only. PSC connections for discovery of the cluster topology and
    -     * accessing the cluster.
    +     * Output only. Service attachment details to configure Psc connections
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder addPscConnections(com.google.cloud.redis.cluster.v1.PscConnection value) { - if (pscConnectionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePscConnectionsIsMutable(); - pscConnections_.add(value); - onChanged(); + public java.util.List + getPscServiceAttachmentsList() { + if (pscServiceAttachmentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(pscServiceAttachments_); } else { - pscConnectionsBuilder_.addMessage(value); + return pscServiceAttachmentsBuilder_.getMessageList(); } - return this; } /** * * *
    -     * Output only. PSC connections for discovery of the cluster topology and
    -     * accessing the cluster.
    +     * Output only. Service attachment details to configure Psc connections
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder addPscConnections( - int index, com.google.cloud.redis.cluster.v1.PscConnection value) { - if (pscConnectionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePscConnectionsIsMutable(); - pscConnections_.add(index, value); - onChanged(); + public int getPscServiceAttachmentsCount() { + if (pscServiceAttachmentsBuilder_ == null) { + return pscServiceAttachments_.size(); } else { - pscConnectionsBuilder_.addMessage(index, value); + return pscServiceAttachmentsBuilder_.getCount(); } - return this; } /** * * *
    -     * Output only. PSC connections for discovery of the cluster topology and
    -     * accessing the cluster.
    +     * Output only. Service attachment details to configure Psc connections
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder addPscConnections( - com.google.cloud.redis.cluster.v1.PscConnection.Builder builderForValue) { - if (pscConnectionsBuilder_ == null) { - ensurePscConnectionsIsMutable(); - pscConnections_.add(builderForValue.build()); - onChanged(); + public com.google.cloud.redis.cluster.v1.PscServiceAttachment getPscServiceAttachments( + int index) { + if (pscServiceAttachmentsBuilder_ == null) { + return pscServiceAttachments_.get(index); } else { - pscConnectionsBuilder_.addMessage(builderForValue.build()); + return pscServiceAttachmentsBuilder_.getMessage(index); } - return this; } /** * * *
    -     * Output only. PSC connections for discovery of the cluster topology and
    -     * accessing the cluster.
    +     * Output only. Service attachment details to configure Psc connections
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder addPscConnections( - int index, com.google.cloud.redis.cluster.v1.PscConnection.Builder builderForValue) { - if (pscConnectionsBuilder_ == null) { - ensurePscConnectionsIsMutable(); - pscConnections_.add(index, builderForValue.build()); + public Builder setPscServiceAttachments( + int index, com.google.cloud.redis.cluster.v1.PscServiceAttachment value) { + if (pscServiceAttachmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePscServiceAttachmentsIsMutable(); + pscServiceAttachments_.set(index, value); onChanged(); } else { - pscConnectionsBuilder_.addMessage(index, builderForValue.build()); + pscServiceAttachmentsBuilder_.setMessage(index, value); } return this; } @@ -5986,22 +11251,21 @@ public Builder addPscConnections( * * *
    -     * Output only. PSC connections for discovery of the cluster topology and
    -     * accessing the cluster.
    +     * Output only. Service attachment details to configure Psc connections
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder addAllPscConnections( - java.lang.Iterable values) { - if (pscConnectionsBuilder_ == null) { - ensurePscConnectionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pscConnections_); + public Builder setPscServiceAttachments( + int index, com.google.cloud.redis.cluster.v1.PscServiceAttachment.Builder builderForValue) { + if (pscServiceAttachmentsBuilder_ == null) { + ensurePscServiceAttachmentsIsMutable(); + pscServiceAttachments_.set(index, builderForValue.build()); onChanged(); } else { - pscConnectionsBuilder_.addAllMessages(values); + pscServiceAttachmentsBuilder_.setMessage(index, builderForValue.build()); } return this; } @@ -6009,21 +11273,24 @@ public Builder addAllPscConnections( * * *
    -     * Output only. PSC connections for discovery of the cluster topology and
    -     * accessing the cluster.
    +     * Output only. Service attachment details to configure Psc connections
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearPscConnections() { - if (pscConnectionsBuilder_ == null) { - pscConnections_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); + public Builder addPscServiceAttachments( + com.google.cloud.redis.cluster.v1.PscServiceAttachment value) { + if (pscServiceAttachmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePscServiceAttachmentsIsMutable(); + pscServiceAttachments_.add(value); onChanged(); } else { - pscConnectionsBuilder_.clear(); + pscServiceAttachmentsBuilder_.addMessage(value); } return this; } @@ -6031,21 +11298,24 @@ public Builder clearPscConnections() { * * *
    -     * Output only. PSC connections for discovery of the cluster topology and
    -     * accessing the cluster.
    +     * Output only. Service attachment details to configure Psc connections
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder removePscConnections(int index) { - if (pscConnectionsBuilder_ == null) { - ensurePscConnectionsIsMutable(); - pscConnections_.remove(index); + public Builder addPscServiceAttachments( + int index, com.google.cloud.redis.cluster.v1.PscServiceAttachment value) { + if (pscServiceAttachmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePscServiceAttachmentsIsMutable(); + pscServiceAttachments_.add(index, value); onChanged(); } else { - pscConnectionsBuilder_.remove(index); + pscServiceAttachmentsBuilder_.addMessage(index, value); } return this; } @@ -6053,874 +11323,873 @@ public Builder removePscConnections(int index) { * * *
    -     * Output only. PSC connections for discovery of the cluster topology and
    -     * accessing the cluster.
    +     * Output only. Service attachment details to configure Psc connections
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.redis.cluster.v1.PscConnection.Builder getPscConnectionsBuilder( - int index) { - return getPscConnectionsFieldBuilder().getBuilder(index); + public Builder addPscServiceAttachments( + com.google.cloud.redis.cluster.v1.PscServiceAttachment.Builder builderForValue) { + if (pscServiceAttachmentsBuilder_ == null) { + ensurePscServiceAttachmentsIsMutable(); + pscServiceAttachments_.add(builderForValue.build()); + onChanged(); + } else { + pscServiceAttachmentsBuilder_.addMessage(builderForValue.build()); + } + return this; } /** * * *
    -     * Output only. PSC connections for discovery of the cluster topology and
    -     * accessing the cluster.
    +     * Output only. Service attachment details to configure Psc connections
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.redis.cluster.v1.PscConnectionOrBuilder getPscConnectionsOrBuilder( - int index) { - if (pscConnectionsBuilder_ == null) { - return pscConnections_.get(index); + public Builder addPscServiceAttachments( + int index, com.google.cloud.redis.cluster.v1.PscServiceAttachment.Builder builderForValue) { + if (pscServiceAttachmentsBuilder_ == null) { + ensurePscServiceAttachmentsIsMutable(); + pscServiceAttachments_.add(index, builderForValue.build()); + onChanged(); } else { - return pscConnectionsBuilder_.getMessageOrBuilder(index); + pscServiceAttachmentsBuilder_.addMessage(index, builderForValue.build()); } + return this; } /** * * *
    -     * Output only. PSC connections for discovery of the cluster topology and
    -     * accessing the cluster.
    +     * Output only. Service attachment details to configure Psc connections
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public java.util.List - getPscConnectionsOrBuilderList() { - if (pscConnectionsBuilder_ != null) { - return pscConnectionsBuilder_.getMessageOrBuilderList(); + public Builder addAllPscServiceAttachments( + java.lang.Iterable + values) { + if (pscServiceAttachmentsBuilder_ == null) { + ensurePscServiceAttachmentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pscServiceAttachments_); + onChanged(); } else { - return java.util.Collections.unmodifiableList(pscConnections_); + pscServiceAttachmentsBuilder_.addAllMessages(values); } + return this; } /** * * *
    -     * Output only. PSC connections for discovery of the cluster topology and
    -     * accessing the cluster.
    +     * Output only. Service attachment details to configure Psc connections
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.redis.cluster.v1.PscConnection.Builder addPscConnectionsBuilder() { - return getPscConnectionsFieldBuilder() - .addBuilder(com.google.cloud.redis.cluster.v1.PscConnection.getDefaultInstance()); + public Builder clearPscServiceAttachments() { + if (pscServiceAttachmentsBuilder_ == null) { + pscServiceAttachments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x01000000); + onChanged(); + } else { + pscServiceAttachmentsBuilder_.clear(); + } + return this; } /** * * *
    -     * Output only. PSC connections for discovery of the cluster topology and
    -     * accessing the cluster.
    +     * Output only. Service attachment details to configure Psc connections
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.redis.cluster.v1.PscConnection.Builder addPscConnectionsBuilder( - int index) { - return getPscConnectionsFieldBuilder() - .addBuilder(index, com.google.cloud.redis.cluster.v1.PscConnection.getDefaultInstance()); + public Builder removePscServiceAttachments(int index) { + if (pscServiceAttachmentsBuilder_ == null) { + ensurePscServiceAttachmentsIsMutable(); + pscServiceAttachments_.remove(index); + onChanged(); + } else { + pscServiceAttachmentsBuilder_.remove(index); + } + return this; } /** * * *
    -     * Output only. PSC connections for discovery of the cluster topology and
    -     * accessing the cluster.
    +     * Output only. Service attachment details to configure Psc connections
          * 
    * * - * repeated .google.cloud.redis.cluster.v1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public java.util.List - getPscConnectionsBuilderList() { - return getPscConnectionsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.cluster.v1.PscConnection, - com.google.cloud.redis.cluster.v1.PscConnection.Builder, - com.google.cloud.redis.cluster.v1.PscConnectionOrBuilder> - getPscConnectionsFieldBuilder() { - if (pscConnectionsBuilder_ == null) { - pscConnectionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.cluster.v1.PscConnection, - com.google.cloud.redis.cluster.v1.PscConnection.Builder, - com.google.cloud.redis.cluster.v1.PscConnectionOrBuilder>( - pscConnections_, - ((bitField0_ & 0x00000800) != 0), - getParentForChildren(), - isClean()); - pscConnections_ = null; - } - return pscConnectionsBuilder_; + public com.google.cloud.redis.cluster.v1.PscServiceAttachment.Builder + getPscServiceAttachmentsBuilder(int index) { + return getPscServiceAttachmentsFieldBuilder().getBuilder(index); } - - private com.google.cloud.redis.cluster.v1.Cluster.StateInfo stateInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.cluster.v1.Cluster.StateInfo, - com.google.cloud.redis.cluster.v1.Cluster.StateInfo.Builder, - com.google.cloud.redis.cluster.v1.Cluster.StateInfoOrBuilder> - stateInfoBuilder_; /** * * *
    -     * Output only. Additional information about the current state of the cluster.
    +     * Output only. Service attachment details to configure Psc connections
          * 
    * * - * .google.cloud.redis.cluster.v1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return Whether the stateInfo field is set. */ - public boolean hasStateInfo() { - return ((bitField0_ & 0x00001000) != 0); + public com.google.cloud.redis.cluster.v1.PscServiceAttachmentOrBuilder + getPscServiceAttachmentsOrBuilder(int index) { + if (pscServiceAttachmentsBuilder_ == null) { + return pscServiceAttachments_.get(index); + } else { + return pscServiceAttachmentsBuilder_.getMessageOrBuilder(index); + } } /** * * *
    -     * Output only. Additional information about the current state of the cluster.
    +     * Output only. Service attachment details to configure Psc connections
          * 
    * * - * .google.cloud.redis.cluster.v1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The stateInfo. */ - public com.google.cloud.redis.cluster.v1.Cluster.StateInfo getStateInfo() { - if (stateInfoBuilder_ == null) { - return stateInfo_ == null - ? com.google.cloud.redis.cluster.v1.Cluster.StateInfo.getDefaultInstance() - : stateInfo_; + public java.util.List + getPscServiceAttachmentsOrBuilderList() { + if (pscServiceAttachmentsBuilder_ != null) { + return pscServiceAttachmentsBuilder_.getMessageOrBuilderList(); } else { - return stateInfoBuilder_.getMessage(); + return java.util.Collections.unmodifiableList(pscServiceAttachments_); } } /** * * *
    -     * Output only. Additional information about the current state of the cluster.
    +     * Output only. Service attachment details to configure Psc connections
          * 
    * * - * .google.cloud.redis.cluster.v1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setStateInfo(com.google.cloud.redis.cluster.v1.Cluster.StateInfo value) { - if (stateInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - stateInfo_ = value; - } else { - stateInfoBuilder_.setMessage(value); - } - bitField0_ |= 0x00001000; - onChanged(); - return this; + public com.google.cloud.redis.cluster.v1.PscServiceAttachment.Builder + addPscServiceAttachmentsBuilder() { + return getPscServiceAttachmentsFieldBuilder() + .addBuilder(com.google.cloud.redis.cluster.v1.PscServiceAttachment.getDefaultInstance()); } /** * * *
    -     * Output only. Additional information about the current state of the cluster.
    +     * Output only. Service attachment details to configure Psc connections
          * 
    * * - * .google.cloud.redis.cluster.v1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setStateInfo( - com.google.cloud.redis.cluster.v1.Cluster.StateInfo.Builder builderForValue) { - if (stateInfoBuilder_ == null) { - stateInfo_ = builderForValue.build(); - } else { - stateInfoBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00001000; - onChanged(); - return this; + public com.google.cloud.redis.cluster.v1.PscServiceAttachment.Builder + addPscServiceAttachmentsBuilder(int index) { + return getPscServiceAttachmentsFieldBuilder() + .addBuilder( + index, com.google.cloud.redis.cluster.v1.PscServiceAttachment.getDefaultInstance()); } /** * * *
    -     * Output only. Additional information about the current state of the cluster.
    +     * Output only. Service attachment details to configure Psc connections
          * 
    * * - * .google.cloud.redis.cluster.v1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeStateInfo(com.google.cloud.redis.cluster.v1.Cluster.StateInfo value) { - if (stateInfoBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) - && stateInfo_ != null - && stateInfo_ - != com.google.cloud.redis.cluster.v1.Cluster.StateInfo.getDefaultInstance()) { - getStateInfoBuilder().mergeFrom(value); - } else { - stateInfo_ = value; - } - } else { - stateInfoBuilder_.mergeFrom(value); + public java.util.List + getPscServiceAttachmentsBuilderList() { + return getPscServiceAttachmentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1.PscServiceAttachment, + com.google.cloud.redis.cluster.v1.PscServiceAttachment.Builder, + com.google.cloud.redis.cluster.v1.PscServiceAttachmentOrBuilder> + getPscServiceAttachmentsFieldBuilder() { + if (pscServiceAttachmentsBuilder_ == null) { + pscServiceAttachmentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1.PscServiceAttachment, + com.google.cloud.redis.cluster.v1.PscServiceAttachment.Builder, + com.google.cloud.redis.cluster.v1.PscServiceAttachmentOrBuilder>( + pscServiceAttachments_, + ((bitField0_ & 0x01000000) != 0), + getParentForChildren(), + isClean()); + pscServiceAttachments_ = null; } - if (stateInfo_ != null) { - bitField0_ |= 0x00001000; - onChanged(); + return pscServiceAttachmentsBuilder_; + } + + private java.util.List clusterEndpoints_ = + java.util.Collections.emptyList(); + + private void ensureClusterEndpointsIsMutable() { + if (!((bitField0_ & 0x02000000) != 0)) { + clusterEndpoints_ = + new java.util.ArrayList( + clusterEndpoints_); + bitField0_ |= 0x02000000; } - return this; } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1.ClusterEndpoint, + com.google.cloud.redis.cluster.v1.ClusterEndpoint.Builder, + com.google.cloud.redis.cluster.v1.ClusterEndpointOrBuilder> + clusterEndpointsBuilder_; + /** * * *
    -     * Output only. Additional information about the current state of the cluster.
    +     * Optional. A list of cluster enpoints.
          * 
    * * - * .google.cloud.redis.cluster.v1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearStateInfo() { - bitField0_ = (bitField0_ & ~0x00001000); - stateInfo_ = null; - if (stateInfoBuilder_ != null) { - stateInfoBuilder_.dispose(); - stateInfoBuilder_ = null; + public java.util.List + getClusterEndpointsList() { + if (clusterEndpointsBuilder_ == null) { + return java.util.Collections.unmodifiableList(clusterEndpoints_); + } else { + return clusterEndpointsBuilder_.getMessageList(); } - onChanged(); - return this; } /** * * *
    -     * Output only. Additional information about the current state of the cluster.
    +     * Optional. A list of cluster enpoints.
          * 
    * * - * .google.cloud.redis.cluster.v1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.redis.cluster.v1.Cluster.StateInfo.Builder getStateInfoBuilder() { - bitField0_ |= 0x00001000; - onChanged(); - return getStateInfoFieldBuilder().getBuilder(); + public int getClusterEndpointsCount() { + if (clusterEndpointsBuilder_ == null) { + return clusterEndpoints_.size(); + } else { + return clusterEndpointsBuilder_.getCount(); + } } /** * * *
    -     * Output only. Additional information about the current state of the cluster.
    +     * Optional. A list of cluster enpoints.
          * 
    * * - * .google.cloud.redis.cluster.v1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.redis.cluster.v1.Cluster.StateInfoOrBuilder getStateInfoOrBuilder() { - if (stateInfoBuilder_ != null) { - return stateInfoBuilder_.getMessageOrBuilder(); + public com.google.cloud.redis.cluster.v1.ClusterEndpoint getClusterEndpoints(int index) { + if (clusterEndpointsBuilder_ == null) { + return clusterEndpoints_.get(index); } else { - return stateInfo_ == null - ? com.google.cloud.redis.cluster.v1.Cluster.StateInfo.getDefaultInstance() - : stateInfo_; + return clusterEndpointsBuilder_.getMessage(index); } } /** * * *
    -     * Output only. Additional information about the current state of the cluster.
    +     * Optional. A list of cluster enpoints.
          * 
    * * - * .google.cloud.redis.cluster.v1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.cluster.v1.Cluster.StateInfo, - com.google.cloud.redis.cluster.v1.Cluster.StateInfo.Builder, - com.google.cloud.redis.cluster.v1.Cluster.StateInfoOrBuilder> - getStateInfoFieldBuilder() { - if (stateInfoBuilder_ == null) { - stateInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.cluster.v1.Cluster.StateInfo, - com.google.cloud.redis.cluster.v1.Cluster.StateInfo.Builder, - com.google.cloud.redis.cluster.v1.Cluster.StateInfoOrBuilder>( - getStateInfo(), getParentForChildren(), isClean()); - stateInfo_ = null; + public Builder setClusterEndpoints( + int index, com.google.cloud.redis.cluster.v1.ClusterEndpoint value) { + if (clusterEndpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClusterEndpointsIsMutable(); + clusterEndpoints_.set(index, value); + onChanged(); + } else { + clusterEndpointsBuilder_.setMessage(index, value); } - return stateInfoBuilder_; + return this; } - - private int nodeType_ = 0; /** * * *
    -     * Optional. The type of a redis node in the cluster. NodeType determines the
    -     * underlying machine-type of a redis node.
    +     * Optional. A list of cluster enpoints.
          * 
    * * - * .google.cloud.redis.cluster.v1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.redis.cluster.v1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The enum numeric value on the wire for nodeType. */ - @java.lang.Override - public int getNodeTypeValue() { - return nodeType_; + public Builder setClusterEndpoints( + int index, com.google.cloud.redis.cluster.v1.ClusterEndpoint.Builder builderForValue) { + if (clusterEndpointsBuilder_ == null) { + ensureClusterEndpointsIsMutable(); + clusterEndpoints_.set(index, builderForValue.build()); + onChanged(); + } else { + clusterEndpointsBuilder_.setMessage(index, builderForValue.build()); + } + return this; } /** * * *
    -     * Optional. The type of a redis node in the cluster. NodeType determines the
    -     * underlying machine-type of a redis node.
    +     * Optional. A list of cluster enpoints.
          * 
    * * - * .google.cloud.redis.cluster.v1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.redis.cluster.v1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param value The enum numeric value on the wire for nodeType to set. - * @return This builder for chaining. */ - public Builder setNodeTypeValue(int value) { - nodeType_ = value; - bitField0_ |= 0x00002000; - onChanged(); + public Builder addClusterEndpoints(com.google.cloud.redis.cluster.v1.ClusterEndpoint value) { + if (clusterEndpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClusterEndpointsIsMutable(); + clusterEndpoints_.add(value); + onChanged(); + } else { + clusterEndpointsBuilder_.addMessage(value); + } return this; } /** * * *
    -     * Optional. The type of a redis node in the cluster. NodeType determines the
    -     * underlying machine-type of a redis node.
    +     * Optional. A list of cluster enpoints.
          * 
    * * - * .google.cloud.redis.cluster.v1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.redis.cluster.v1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The nodeType. */ - @java.lang.Override - public com.google.cloud.redis.cluster.v1.NodeType getNodeType() { - com.google.cloud.redis.cluster.v1.NodeType result = - com.google.cloud.redis.cluster.v1.NodeType.forNumber(nodeType_); - return result == null ? com.google.cloud.redis.cluster.v1.NodeType.UNRECOGNIZED : result; + public Builder addClusterEndpoints( + int index, com.google.cloud.redis.cluster.v1.ClusterEndpoint value) { + if (clusterEndpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClusterEndpointsIsMutable(); + clusterEndpoints_.add(index, value); + onChanged(); + } else { + clusterEndpointsBuilder_.addMessage(index, value); + } + return this; } /** * * *
    -     * Optional. The type of a redis node in the cluster. NodeType determines the
    -     * underlying machine-type of a redis node.
    +     * Optional. A list of cluster enpoints.
          * 
    * * - * .google.cloud.redis.cluster.v1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.redis.cluster.v1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param value The nodeType to set. - * @return This builder for chaining. */ - public Builder setNodeType(com.google.cloud.redis.cluster.v1.NodeType value) { - if (value == null) { - throw new NullPointerException(); + public Builder addClusterEndpoints( + com.google.cloud.redis.cluster.v1.ClusterEndpoint.Builder builderForValue) { + if (clusterEndpointsBuilder_ == null) { + ensureClusterEndpointsIsMutable(); + clusterEndpoints_.add(builderForValue.build()); + onChanged(); + } else { + clusterEndpointsBuilder_.addMessage(builderForValue.build()); } - bitField0_ |= 0x00002000; - nodeType_ = value.getNumber(); - onChanged(); return this; } /** * * *
    -     * Optional. The type of a redis node in the cluster. NodeType determines the
    -     * underlying machine-type of a redis node.
    +     * Optional. A list of cluster enpoints.
          * 
    * * - * .google.cloud.redis.cluster.v1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.redis.cluster.v1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return This builder for chaining. */ - public Builder clearNodeType() { - bitField0_ = (bitField0_ & ~0x00002000); - nodeType_ = 0; - onChanged(); + public Builder addClusterEndpoints( + int index, com.google.cloud.redis.cluster.v1.ClusterEndpoint.Builder builderForValue) { + if (clusterEndpointsBuilder_ == null) { + ensureClusterEndpointsIsMutable(); + clusterEndpoints_.add(index, builderForValue.build()); + onChanged(); + } else { + clusterEndpointsBuilder_.addMessage(index, builderForValue.build()); + } return this; } - - private com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistenceConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig, - com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.Builder, - com.google.cloud.redis.cluster.v1.ClusterPersistenceConfigOrBuilder> - persistenceConfigBuilder_; /** * * *
    -     * Optional. Persistence config (RDB, AOF) for the cluster.
    +     * Optional. A list of cluster enpoints.
          * 
    * * - * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.redis.cluster.v1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return Whether the persistenceConfig field is set. */ - public boolean hasPersistenceConfig() { - return ((bitField0_ & 0x00004000) != 0); + public Builder addAllClusterEndpoints( + java.lang.Iterable values) { + if (clusterEndpointsBuilder_ == null) { + ensureClusterEndpointsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, clusterEndpoints_); + onChanged(); + } else { + clusterEndpointsBuilder_.addAllMessages(values); + } + return this; } /** * * *
    -     * Optional. Persistence config (RDB, AOF) for the cluster.
    +     * Optional. A list of cluster enpoints.
          * 
    * * - * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.redis.cluster.v1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The persistenceConfig. */ - public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig getPersistenceConfig() { - if (persistenceConfigBuilder_ == null) { - return persistenceConfig_ == null - ? com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.getDefaultInstance() - : persistenceConfig_; + public Builder clearClusterEndpoints() { + if (clusterEndpointsBuilder_ == null) { + clusterEndpoints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x02000000); + onChanged(); } else { - return persistenceConfigBuilder_.getMessage(); + clusterEndpointsBuilder_.clear(); } + return this; } /** * * *
    -     * Optional. Persistence config (RDB, AOF) for the cluster.
    +     * Optional. A list of cluster enpoints.
          * 
    * * - * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.redis.cluster.v1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setPersistenceConfig( - com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig value) { - if (persistenceConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - persistenceConfig_ = value; + public Builder removeClusterEndpoints(int index) { + if (clusterEndpointsBuilder_ == null) { + ensureClusterEndpointsIsMutable(); + clusterEndpoints_.remove(index); + onChanged(); } else { - persistenceConfigBuilder_.setMessage(value); + clusterEndpointsBuilder_.remove(index); } - bitField0_ |= 0x00004000; - onChanged(); return this; } /** * * *
    -     * Optional. Persistence config (RDB, AOF) for the cluster.
    +     * Optional. A list of cluster enpoints.
          * 
    * * - * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.redis.cluster.v1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setPersistenceConfig( - com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.Builder builderForValue) { - if (persistenceConfigBuilder_ == null) { - persistenceConfig_ = builderForValue.build(); - } else { - persistenceConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00004000; - onChanged(); - return this; + public com.google.cloud.redis.cluster.v1.ClusterEndpoint.Builder getClusterEndpointsBuilder( + int index) { + return getClusterEndpointsFieldBuilder().getBuilder(index); } /** * * *
    -     * Optional. Persistence config (RDB, AOF) for the cluster.
    +     * Optional. A list of cluster enpoints.
          * 
    * * - * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.redis.cluster.v1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergePersistenceConfig( - com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig value) { - if (persistenceConfigBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) - && persistenceConfig_ != null - && persistenceConfig_ - != com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig - .getDefaultInstance()) { - getPersistenceConfigBuilder().mergeFrom(value); - } else { - persistenceConfig_ = value; - } + public com.google.cloud.redis.cluster.v1.ClusterEndpointOrBuilder getClusterEndpointsOrBuilder( + int index) { + if (clusterEndpointsBuilder_ == null) { + return clusterEndpoints_.get(index); } else { - persistenceConfigBuilder_.mergeFrom(value); + return clusterEndpointsBuilder_.getMessageOrBuilder(index); } - if (persistenceConfig_ != null) { - bitField0_ |= 0x00004000; - onChanged(); - } - return this; } /** * * *
    -     * Optional. Persistence config (RDB, AOF) for the cluster.
    +     * Optional. A list of cluster enpoints.
          * 
    * * - * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.redis.cluster.v1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearPersistenceConfig() { - bitField0_ = (bitField0_ & ~0x00004000); - persistenceConfig_ = null; - if (persistenceConfigBuilder_ != null) { - persistenceConfigBuilder_.dispose(); - persistenceConfigBuilder_ = null; + public java.util.List + getClusterEndpointsOrBuilderList() { + if (clusterEndpointsBuilder_ != null) { + return clusterEndpointsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(clusterEndpoints_); } - onChanged(); - return this; } /** * * *
    -     * Optional. Persistence config (RDB, AOF) for the cluster.
    +     * Optional. A list of cluster enpoints.
          * 
    * * - * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.redis.cluster.v1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.Builder - getPersistenceConfigBuilder() { - bitField0_ |= 0x00004000; - onChanged(); - return getPersistenceConfigFieldBuilder().getBuilder(); + public com.google.cloud.redis.cluster.v1.ClusterEndpoint.Builder addClusterEndpointsBuilder() { + return getClusterEndpointsFieldBuilder() + .addBuilder(com.google.cloud.redis.cluster.v1.ClusterEndpoint.getDefaultInstance()); } /** * * *
    -     * Optional. Persistence config (RDB, AOF) for the cluster.
    +     * Optional. A list of cluster enpoints.
          * 
    * * - * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.redis.cluster.v1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfigOrBuilder - getPersistenceConfigOrBuilder() { - if (persistenceConfigBuilder_ != null) { - return persistenceConfigBuilder_.getMessageOrBuilder(); - } else { - return persistenceConfig_ == null - ? com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.getDefaultInstance() - : persistenceConfig_; - } + public com.google.cloud.redis.cluster.v1.ClusterEndpoint.Builder addClusterEndpointsBuilder( + int index) { + return getClusterEndpointsFieldBuilder() + .addBuilder( + index, com.google.cloud.redis.cluster.v1.ClusterEndpoint.getDefaultInstance()); } /** * * *
    -     * Optional. Persistence config (RDB, AOF) for the cluster.
    +     * Optional. A list of cluster enpoints.
          * 
    * * - * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.redis.cluster.v1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig, - com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.Builder, - com.google.cloud.redis.cluster.v1.ClusterPersistenceConfigOrBuilder> - getPersistenceConfigFieldBuilder() { - if (persistenceConfigBuilder_ == null) { - persistenceConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig, - com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.Builder, - com.google.cloud.redis.cluster.v1.ClusterPersistenceConfigOrBuilder>( - getPersistenceConfig(), getParentForChildren(), isClean()); - persistenceConfig_ = null; - } - return persistenceConfigBuilder_; - } - - private com.google.protobuf.MapField redisConfigs_; - - private com.google.protobuf.MapField - internalGetRedisConfigs() { - if (redisConfigs_ == null) { - return com.google.protobuf.MapField.emptyMapField( - RedisConfigsDefaultEntryHolder.defaultEntry); - } - return redisConfigs_; + public java.util.List + getClusterEndpointsBuilderList() { + return getClusterEndpointsFieldBuilder().getBuilderList(); } - private com.google.protobuf.MapField - internalGetMutableRedisConfigs() { - if (redisConfigs_ == null) { - redisConfigs_ = - com.google.protobuf.MapField.newMapField(RedisConfigsDefaultEntryHolder.defaultEntry); - } - if (!redisConfigs_.isMutable()) { - redisConfigs_ = redisConfigs_.copy(); + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1.ClusterEndpoint, + com.google.cloud.redis.cluster.v1.ClusterEndpoint.Builder, + com.google.cloud.redis.cluster.v1.ClusterEndpointOrBuilder> + getClusterEndpointsFieldBuilder() { + if (clusterEndpointsBuilder_ == null) { + clusterEndpointsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1.ClusterEndpoint, + com.google.cloud.redis.cluster.v1.ClusterEndpoint.Builder, + com.google.cloud.redis.cluster.v1.ClusterEndpointOrBuilder>( + clusterEndpoints_, + ((bitField0_ & 0x02000000) != 0), + getParentForChildren(), + isClean()); + clusterEndpoints_ = null; } - bitField0_ |= 0x00008000; - onChanged(); - return redisConfigs_; + return clusterEndpointsBuilder_; } - public int getRedisConfigsCount() { - return internalGetRedisConfigs().getMap().size(); - } + private java.lang.Object backupCollection_ = ""; /** * * *
    -     * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
    +     * Optional. Output only. The backup collection full resource name. Example:
    +     * projects/{project}/locations/{location}/backupCollections/{collection}
          * 
    * - * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional string backup_collection = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * + * + * @return Whether the backupCollection field is set. */ - @java.lang.Override - public boolean containsRedisConfigs(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetRedisConfigs().getMap().containsKey(key); - } - /** Use {@link #getRedisConfigsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getRedisConfigs() { - return getRedisConfigsMap(); + public boolean hasBackupCollection() { + return ((bitField0_ & 0x04000000) != 0); } /** * * *
    -     * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
    +     * Optional. Output only. The backup collection full resource name. Example:
    +     * projects/{project}/locations/{location}/backupCollections/{collection}
          * 
    * - * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional string backup_collection = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * + * + * @return The backupCollection. */ - @java.lang.Override - public java.util.Map getRedisConfigsMap() { - return internalGetRedisConfigs().getMap(); + public java.lang.String getBackupCollection() { + java.lang.Object ref = backupCollection_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backupCollection_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** * * *
    -     * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
    +     * Optional. Output only. The backup collection full resource name. Example:
    +     * projects/{project}/locations/{location}/backupCollections/{collection}
          * 
    * - * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional string backup_collection = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * + * + * @return The bytes for backupCollection. */ - @java.lang.Override - public /* nullable */ java.lang.String getRedisConfigsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); + public com.google.protobuf.ByteString getBackupCollectionBytes() { + java.lang.Object ref = backupCollection_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backupCollection_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - java.util.Map map = internalGetRedisConfigs().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
    -     * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
    +     * Optional. Output only. The backup collection full resource name. Example:
    +     * projects/{project}/locations/{location}/backupCollections/{collection}
          * 
    * - * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional string backup_collection = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * + * + * @param value The backupCollection to set. + * @return This builder for chaining. */ - @java.lang.Override - public java.lang.String getRedisConfigsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetRedisConfigs().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + public Builder setBackupCollection(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - return map.get(key); - } - - public Builder clearRedisConfigs() { - bitField0_ = (bitField0_ & ~0x00008000); - internalGetMutableRedisConfigs().getMutableMap().clear(); + backupCollection_ = value; + bitField0_ |= 0x04000000; + onChanged(); return this; } /** * * *
    -     * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
    +     * Optional. Output only. The backup collection full resource name. Example:
    +     * projects/{project}/locations/{location}/backupCollections/{collection}
          * 
    * - * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional string backup_collection = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * + * + * @return This builder for chaining. */ - public Builder removeRedisConfigs(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableRedisConfigs().getMutableMap().remove(key); + public Builder clearBackupCollection() { + backupCollection_ = getDefaultInstance().getBackupCollection(); + bitField0_ = (bitField0_ & ~0x04000000); + onChanged(); return this; } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableRedisConfigs() { - bitField0_ |= 0x00008000; - return internalGetMutableRedisConfigs().getMutableMap(); - } /** * * *
    -     * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
    +     * Optional. Output only. The backup collection full resource name. Example:
    +     * projects/{project}/locations/{location}/backupCollections/{collection}
          * 
    * - * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional string backup_collection = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * + * + * @param value The bytes for backupCollection to set. + * @return This builder for chaining. */ - public Builder putRedisConfigs(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder setBackupCollectionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException("map value"); + throw new NullPointerException(); } - internalGetMutableRedisConfigs().getMutableMap().put(key, value); - bitField0_ |= 0x00008000; + checkByteStringIsUtf8(value); + backupCollection_ = value; + bitField0_ |= 0x04000000; + onChanged(); return this; } + + private java.lang.Object kmsKey_ = ""; /** * * *
    -     * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
    +     * Optional. The KMS key used to encrypt the at-rest data of the cluster.
          * 
    * - * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional string kms_key = 40 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the kmsKey field is set. + */ + public boolean hasKmsKey() { + return ((bitField0_ & 0x08000000) != 0); + } + /** + * + * + *
    +     * Optional. The KMS key used to encrypt the at-rest data of the cluster.
    +     * 
    + * + * + * optional string kms_key = 40 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * + * + * @return The kmsKey. */ - public Builder putAllRedisConfigs(java.util.Map values) { - internalGetMutableRedisConfigs().getMutableMap().putAll(values); - bitField0_ |= 0x00008000; - return this; + public java.lang.String getKmsKey() { + java.lang.Object ref = kmsKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - - private double preciseSizeGb_; /** * * *
    -     * Output only. Precise value of redis memory size in GB for the entire
    -     * cluster.
    +     * Optional. The KMS key used to encrypt the at-rest data of the cluster.
          * 
    * - * optional double precise_size_gb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional string kms_key = 40 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * - * @return Whether the preciseSizeGb field is set. + * @return The bytes for kmsKey. */ - @java.lang.Override - public boolean hasPreciseSizeGb() { - return ((bitField0_ & 0x00010000) != 0); + public com.google.protobuf.ByteString getKmsKeyBytes() { + java.lang.Object ref = kmsKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** * * *
    -     * Output only. Precise value of redis memory size in GB for the entire
    -     * cluster.
    +     * Optional. The KMS key used to encrypt the at-rest data of the cluster.
          * 
    * - * optional double precise_size_gb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional string kms_key = 40 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * - * @return The preciseSizeGb. + * @param value The kmsKey to set. + * @return This builder for chaining. */ - @java.lang.Override - public double getPreciseSizeGb() { - return preciseSizeGb_; + public Builder setKmsKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kmsKey_ = value; + bitField0_ |= 0x08000000; + onChanged(); + return this; } /** * * *
    -     * Output only. Precise value of redis memory size in GB for the entire
    -     * cluster.
    +     * Optional. The KMS key used to encrypt the at-rest data of the cluster.
          * 
    * - * optional double precise_size_gb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional string kms_key = 40 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * - * @param value The preciseSizeGb to set. * @return This builder for chaining. */ - public Builder setPreciseSizeGb(double value) { - - preciseSizeGb_ = value; - bitField0_ |= 0x00010000; + public Builder clearKmsKey() { + kmsKey_ = getDefaultInstance().getKmsKey(); + bitField0_ = (bitField0_ & ~0x08000000); onChanged(); return this; } @@ -6928,91 +12197,93 @@ public Builder setPreciseSizeGb(double value) { * * *
    -     * Output only. Precise value of redis memory size in GB for the entire
    -     * cluster.
    +     * Optional. The KMS key used to encrypt the at-rest data of the cluster.
          * 
    * - * optional double precise_size_gb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional string kms_key = 40 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * + * @param value The bytes for kmsKey to set. * @return This builder for chaining. */ - public Builder clearPreciseSizeGb() { - bitField0_ = (bitField0_ & ~0x00010000); - preciseSizeGb_ = 0D; + public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKey_ = value; + bitField0_ |= 0x08000000; onChanged(); return this; } - private com.google.cloud.redis.cluster.v1.ZoneDistributionConfig zoneDistributionConfig_; + private com.google.cloud.redis.cluster.v1.AutomatedBackupConfig automatedBackupConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.cluster.v1.ZoneDistributionConfig, - com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.Builder, - com.google.cloud.redis.cluster.v1.ZoneDistributionConfigOrBuilder> - zoneDistributionConfigBuilder_; + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig, + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.Builder, + com.google.cloud.redis.cluster.v1.AutomatedBackupConfigOrBuilder> + automatedBackupConfigBuilder_; /** * * *
    -     * Optional. This config will be used to determine how the customer wants us
    -     * to distribute cluster resources within the region.
    +     * Optional. The automated backup config for the cluster.
          * 
    * * - * .google.cloud.redis.cluster.v1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.redis.cluster.v1.AutomatedBackupConfig automated_backup_config = 42 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the zoneDistributionConfig field is set. + * @return Whether the automatedBackupConfig field is set. */ - public boolean hasZoneDistributionConfig() { - return ((bitField0_ & 0x00020000) != 0); + public boolean hasAutomatedBackupConfig() { + return ((bitField0_ & 0x10000000) != 0); } /** * * *
    -     * Optional. This config will be used to determine how the customer wants us
    -     * to distribute cluster resources within the region.
    +     * Optional. The automated backup config for the cluster.
          * 
    * * - * .google.cloud.redis.cluster.v1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.redis.cluster.v1.AutomatedBackupConfig automated_backup_config = 42 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The zoneDistributionConfig. + * @return The automatedBackupConfig. */ - public com.google.cloud.redis.cluster.v1.ZoneDistributionConfig getZoneDistributionConfig() { - if (zoneDistributionConfigBuilder_ == null) { - return zoneDistributionConfig_ == null - ? com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.getDefaultInstance() - : zoneDistributionConfig_; + public com.google.cloud.redis.cluster.v1.AutomatedBackupConfig getAutomatedBackupConfig() { + if (automatedBackupConfigBuilder_ == null) { + return automatedBackupConfig_ == null + ? com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.getDefaultInstance() + : automatedBackupConfig_; } else { - return zoneDistributionConfigBuilder_.getMessage(); + return automatedBackupConfigBuilder_.getMessage(); } } /** * * *
    -     * Optional. This config will be used to determine how the customer wants us
    -     * to distribute cluster resources within the region.
    +     * Optional. The automated backup config for the cluster.
          * 
    * * - * .google.cloud.redis.cluster.v1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.redis.cluster.v1.AutomatedBackupConfig automated_backup_config = 42 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setZoneDistributionConfig( - com.google.cloud.redis.cluster.v1.ZoneDistributionConfig value) { - if (zoneDistributionConfigBuilder_ == null) { + public Builder setAutomatedBackupConfig( + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig value) { + if (automatedBackupConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - zoneDistributionConfig_ = value; + automatedBackupConfig_ = value; } else { - zoneDistributionConfigBuilder_.setMessage(value); + automatedBackupConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -7020,22 +12291,21 @@ public Builder setZoneDistributionConfig( * * *
    -     * Optional. This config will be used to determine how the customer wants us
    -     * to distribute cluster resources within the region.
    +     * Optional. The automated backup config for the cluster.
          * 
    * * - * .google.cloud.redis.cluster.v1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.redis.cluster.v1.AutomatedBackupConfig automated_backup_config = 42 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setZoneDistributionConfig( - com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.Builder builderForValue) { - if (zoneDistributionConfigBuilder_ == null) { - zoneDistributionConfig_ = builderForValue.build(); + public Builder setAutomatedBackupConfig( + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.Builder builderForValue) { + if (automatedBackupConfigBuilder_ == null) { + automatedBackupConfig_ = builderForValue.build(); } else { - zoneDistributionConfigBuilder_.setMessage(builderForValue.build()); + automatedBackupConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -7043,30 +12313,29 @@ public Builder setZoneDistributionConfig( * * *
    -     * Optional. This config will be used to determine how the customer wants us
    -     * to distribute cluster resources within the region.
    +     * Optional. The automated backup config for the cluster.
          * 
    * * - * .google.cloud.redis.cluster.v1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.redis.cluster.v1.AutomatedBackupConfig automated_backup_config = 42 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeZoneDistributionConfig( - com.google.cloud.redis.cluster.v1.ZoneDistributionConfig value) { - if (zoneDistributionConfigBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) - && zoneDistributionConfig_ != null - && zoneDistributionConfig_ - != com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.getDefaultInstance()) { - getZoneDistributionConfigBuilder().mergeFrom(value); + public Builder mergeAutomatedBackupConfig( + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig value) { + if (automatedBackupConfigBuilder_ == null) { + if (((bitField0_ & 0x10000000) != 0) + && automatedBackupConfig_ != null + && automatedBackupConfig_ + != com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.getDefaultInstance()) { + getAutomatedBackupConfigBuilder().mergeFrom(value); } else { - zoneDistributionConfig_ = value; + automatedBackupConfig_ = value; } } else { - zoneDistributionConfigBuilder_.mergeFrom(value); + automatedBackupConfigBuilder_.mergeFrom(value); } - if (zoneDistributionConfig_ != null) { - bitField0_ |= 0x00020000; + if (automatedBackupConfig_ != null) { + bitField0_ |= 0x10000000; onChanged(); } return this; @@ -7075,20 +12344,19 @@ public Builder mergeZoneDistributionConfig( * * *
    -     * Optional. This config will be used to determine how the customer wants us
    -     * to distribute cluster resources within the region.
    +     * Optional. The automated backup config for the cluster.
          * 
    * * - * .google.cloud.redis.cluster.v1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.redis.cluster.v1.AutomatedBackupConfig automated_backup_config = 42 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearZoneDistributionConfig() { - bitField0_ = (bitField0_ & ~0x00020000); - zoneDistributionConfig_ = null; - if (zoneDistributionConfigBuilder_ != null) { - zoneDistributionConfigBuilder_.dispose(); - zoneDistributionConfigBuilder_ = null; + public Builder clearAutomatedBackupConfig() { + bitField0_ = (bitField0_ & ~0x10000000); + automatedBackupConfig_ = null; + if (automatedBackupConfigBuilder_ != null) { + automatedBackupConfigBuilder_.dispose(); + automatedBackupConfigBuilder_ = null; } onChanged(); return this; @@ -7097,124 +12365,155 @@ public Builder clearZoneDistributionConfig() { * * *
    -     * Optional. This config will be used to determine how the customer wants us
    -     * to distribute cluster resources within the region.
    +     * Optional. The automated backup config for the cluster.
          * 
    * * - * .google.cloud.redis.cluster.v1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.redis.cluster.v1.AutomatedBackupConfig automated_backup_config = 42 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.Builder - getZoneDistributionConfigBuilder() { - bitField0_ |= 0x00020000; + public com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.Builder + getAutomatedBackupConfigBuilder() { + bitField0_ |= 0x10000000; onChanged(); - return getZoneDistributionConfigFieldBuilder().getBuilder(); + return getAutomatedBackupConfigFieldBuilder().getBuilder(); } /** * * *
    -     * Optional. This config will be used to determine how the customer wants us
    -     * to distribute cluster resources within the region.
    +     * Optional. The automated backup config for the cluster.
          * 
    * * - * .google.cloud.redis.cluster.v1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.redis.cluster.v1.AutomatedBackupConfig automated_backup_config = 42 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.redis.cluster.v1.ZoneDistributionConfigOrBuilder - getZoneDistributionConfigOrBuilder() { - if (zoneDistributionConfigBuilder_ != null) { - return zoneDistributionConfigBuilder_.getMessageOrBuilder(); + public com.google.cloud.redis.cluster.v1.AutomatedBackupConfigOrBuilder + getAutomatedBackupConfigOrBuilder() { + if (automatedBackupConfigBuilder_ != null) { + return automatedBackupConfigBuilder_.getMessageOrBuilder(); } else { - return zoneDistributionConfig_ == null - ? com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.getDefaultInstance() - : zoneDistributionConfig_; + return automatedBackupConfig_ == null + ? com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.getDefaultInstance() + : automatedBackupConfig_; } } /** * * *
    -     * Optional. This config will be used to determine how the customer wants us
    -     * to distribute cluster resources within the region.
    +     * Optional. The automated backup config for the cluster.
          * 
    * * - * .google.cloud.redis.cluster.v1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.redis.cluster.v1.AutomatedBackupConfig automated_backup_config = 42 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.cluster.v1.ZoneDistributionConfig, - com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.Builder, - com.google.cloud.redis.cluster.v1.ZoneDistributionConfigOrBuilder> - getZoneDistributionConfigFieldBuilder() { - if (zoneDistributionConfigBuilder_ == null) { - zoneDistributionConfigBuilder_ = + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig, + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.Builder, + com.google.cloud.redis.cluster.v1.AutomatedBackupConfigOrBuilder> + getAutomatedBackupConfigFieldBuilder() { + if (automatedBackupConfigBuilder_ == null) { + automatedBackupConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.cluster.v1.ZoneDistributionConfig, - com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.Builder, - com.google.cloud.redis.cluster.v1.ZoneDistributionConfigOrBuilder>( - getZoneDistributionConfig(), getParentForChildren(), isClean()); - zoneDistributionConfig_ = null; + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig, + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig.Builder, + com.google.cloud.redis.cluster.v1.AutomatedBackupConfigOrBuilder>( + getAutomatedBackupConfig(), getParentForChildren(), isClean()); + automatedBackupConfig_ = null; } - return zoneDistributionConfigBuilder_; + return automatedBackupConfigBuilder_; } - private boolean deletionProtectionEnabled_; + private com.google.cloud.redis.cluster.v1.EncryptionInfo encryptionInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.EncryptionInfo, + com.google.cloud.redis.cluster.v1.EncryptionInfo.Builder, + com.google.cloud.redis.cluster.v1.EncryptionInfoOrBuilder> + encryptionInfoBuilder_; /** * * *
    -     * Optional. The delete operation will fail when the value is set to true.
    +     * Output only. Encryption information of the data at rest of the cluster.
          * 
    * * - * optional bool deletion_protection_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.redis.cluster.v1.EncryptionInfo encryption_info = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return Whether the deletionProtectionEnabled field is set. + * @return Whether the encryptionInfo field is set. */ - @java.lang.Override - public boolean hasDeletionProtectionEnabled() { - return ((bitField0_ & 0x00040000) != 0); + public boolean hasEncryptionInfo() { + return ((bitField0_ & 0x20000000) != 0); } /** * * *
    -     * Optional. The delete operation will fail when the value is set to true.
    +     * Output only. Encryption information of the data at rest of the cluster.
          * 
    * * - * optional bool deletion_protection_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.redis.cluster.v1.EncryptionInfo encryption_info = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The deletionProtectionEnabled. + * @return The encryptionInfo. */ - @java.lang.Override - public boolean getDeletionProtectionEnabled() { - return deletionProtectionEnabled_; + public com.google.cloud.redis.cluster.v1.EncryptionInfo getEncryptionInfo() { + if (encryptionInfoBuilder_ == null) { + return encryptionInfo_ == null + ? com.google.cloud.redis.cluster.v1.EncryptionInfo.getDefaultInstance() + : encryptionInfo_; + } else { + return encryptionInfoBuilder_.getMessage(); + } } /** * * *
    -     * Optional. The delete operation will fail when the value is set to true.
    +     * Output only. Encryption information of the data at rest of the cluster.
          * 
    * * - * optional bool deletion_protection_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.redis.cluster.v1.EncryptionInfo encryption_info = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + */ + public Builder setEncryptionInfo(com.google.cloud.redis.cluster.v1.EncryptionInfo value) { + if (encryptionInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encryptionInfo_ = value; + } else { + encryptionInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x20000000; + onChanged(); + return this; + } + /** * - * @param value The deletionProtectionEnabled to set. - * @return This builder for chaining. + * + *
    +     * Output only. Encryption information of the data at rest of the cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo encryption_info = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDeletionProtectionEnabled(boolean value) { - - deletionProtectionEnabled_ = value; - bitField0_ |= 0x00040000; + public Builder setEncryptionInfo( + com.google.cloud.redis.cluster.v1.EncryptionInfo.Builder builderForValue) { + if (encryptionInfoBuilder_ == null) { + encryptionInfo_ = builderForValue.build(); + } else { + encryptionInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x20000000; onChanged(); return this; } @@ -7222,21 +12521,116 @@ public Builder setDeletionProtectionEnabled(boolean value) { * * *
    -     * Optional. The delete operation will fail when the value is set to true.
    +     * Output only. Encryption information of the data at rest of the cluster.
          * 
    * * - * optional bool deletion_protection_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.redis.cluster.v1.EncryptionInfo encryption_info = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + */ + public Builder mergeEncryptionInfo(com.google.cloud.redis.cluster.v1.EncryptionInfo value) { + if (encryptionInfoBuilder_ == null) { + if (((bitField0_ & 0x20000000) != 0) + && encryptionInfo_ != null + && encryptionInfo_ + != com.google.cloud.redis.cluster.v1.EncryptionInfo.getDefaultInstance()) { + getEncryptionInfoBuilder().mergeFrom(value); + } else { + encryptionInfo_ = value; + } + } else { + encryptionInfoBuilder_.mergeFrom(value); + } + if (encryptionInfo_ != null) { + bitField0_ |= 0x20000000; + onChanged(); + } + return this; + } + /** * - * @return This builder for chaining. + * + *
    +     * Output only. Encryption information of the data at rest of the cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo encryption_info = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearDeletionProtectionEnabled() { - bitField0_ = (bitField0_ & ~0x00040000); - deletionProtectionEnabled_ = false; + public Builder clearEncryptionInfo() { + bitField0_ = (bitField0_ & ~0x20000000); + encryptionInfo_ = null; + if (encryptionInfoBuilder_ != null) { + encryptionInfoBuilder_.dispose(); + encryptionInfoBuilder_ = null; + } onChanged(); return this; } + /** + * + * + *
    +     * Output only. Encryption information of the data at rest of the cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo encryption_info = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.EncryptionInfo.Builder getEncryptionInfoBuilder() { + bitField0_ |= 0x20000000; + onChanged(); + return getEncryptionInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Output only. Encryption information of the data at rest of the cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo encryption_info = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.EncryptionInfoOrBuilder getEncryptionInfoOrBuilder() { + if (encryptionInfoBuilder_ != null) { + return encryptionInfoBuilder_.getMessageOrBuilder(); + } else { + return encryptionInfo_ == null + ? com.google.cloud.redis.cluster.v1.EncryptionInfo.getDefaultInstance() + : encryptionInfo_; + } + } + /** + * + * + *
    +     * Output only. Encryption information of the data at rest of the cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo encryption_info = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.EncryptionInfo, + com.google.cloud.redis.cluster.v1.EncryptionInfo.Builder, + com.google.cloud.redis.cluster.v1.EncryptionInfoOrBuilder> + getEncryptionInfoFieldBuilder() { + if (encryptionInfoBuilder_ == null) { + encryptionInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.EncryptionInfo, + com.google.cloud.redis.cluster.v1.EncryptionInfo.Builder, + com.google.cloud.redis.cluster.v1.EncryptionInfoOrBuilder>( + getEncryptionInfo(), getParentForChildren(), isClean()); + encryptionInfo_ = null; + } + return encryptionInfoBuilder_; + } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterEndpoint.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterEndpoint.java new file mode 100644 index 000000000000..19b003f6ab48 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterEndpoint.java @@ -0,0 +1,974 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
    + * ClusterEndpoint consists of PSC connections that are created
    + * as a group in each VPC network for accessing the cluster. In each group,
    + * there shall be one connection for each service attachment in the cluster.
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.ClusterEndpoint} + */ +public final class ClusterEndpoint extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.ClusterEndpoint) + ClusterEndpointOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClusterEndpoint.newBuilder() to construct. + private ClusterEndpoint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ClusterEndpoint() { + connections_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ClusterEndpoint(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ClusterEndpoint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ClusterEndpoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ClusterEndpoint.class, + com.google.cloud.redis.cluster.v1.ClusterEndpoint.Builder.class); + } + + public static final int CONNECTIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List connections_; + /** + * + * + *
    +   * A group of PSC connections. They are created in the same VPC network, one
    +   * for each service attachment in the cluster.
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1; + */ + @java.lang.Override + public java.util.List getConnectionsList() { + return connections_; + } + /** + * + * + *
    +   * A group of PSC connections. They are created in the same VPC network, one
    +   * for each service attachment in the cluster.
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1; + */ + @java.lang.Override + public java.util.List + getConnectionsOrBuilderList() { + return connections_; + } + /** + * + * + *
    +   * A group of PSC connections. They are created in the same VPC network, one
    +   * for each service attachment in the cluster.
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1; + */ + @java.lang.Override + public int getConnectionsCount() { + return connections_.size(); + } + /** + * + * + *
    +   * A group of PSC connections. They are created in the same VPC network, one
    +   * for each service attachment in the cluster.
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1; + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ConnectionDetail getConnections(int index) { + return connections_.get(index); + } + /** + * + * + *
    +   * A group of PSC connections. They are created in the same VPC network, one
    +   * for each service attachment in the cluster.
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1; + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ConnectionDetailOrBuilder getConnectionsOrBuilder( + int index) { + return connections_.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 < connections_.size(); i++) { + output.writeMessage(1, connections_.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 < connections_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, connections_.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.redis.cluster.v1.ClusterEndpoint)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.ClusterEndpoint other = + (com.google.cloud.redis.cluster.v1.ClusterEndpoint) obj; + + if (!getConnectionsList().equals(other.getConnectionsList())) return false; + if (!getUnknownFields().equals(other.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 (getConnectionsCount() > 0) { + hash = (37 * hash) + CONNECTIONS_FIELD_NUMBER; + hash = (53 * hash) + getConnectionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.ClusterEndpoint parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ClusterEndpoint parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ClusterEndpoint parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ClusterEndpoint parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ClusterEndpoint parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ClusterEndpoint parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ClusterEndpoint parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ClusterEndpoint parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ClusterEndpoint parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ClusterEndpoint parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ClusterEndpoint parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ClusterEndpoint parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.redis.cluster.v1.ClusterEndpoint prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * ClusterEndpoint consists of PSC connections that are created
    +   * as a group in each VPC network for accessing the cluster. In each group,
    +   * there shall be one connection for each service attachment in the cluster.
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.ClusterEndpoint} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.ClusterEndpoint) + com.google.cloud.redis.cluster.v1.ClusterEndpointOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ClusterEndpoint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ClusterEndpoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ClusterEndpoint.class, + com.google.cloud.redis.cluster.v1.ClusterEndpoint.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.ClusterEndpoint.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (connectionsBuilder_ == null) { + connections_ = java.util.Collections.emptyList(); + } else { + connections_ = null; + connectionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ClusterEndpoint_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterEndpoint getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.ClusterEndpoint.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterEndpoint build() { + com.google.cloud.redis.cluster.v1.ClusterEndpoint result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterEndpoint buildPartial() { + com.google.cloud.redis.cluster.v1.ClusterEndpoint result = + new com.google.cloud.redis.cluster.v1.ClusterEndpoint(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.redis.cluster.v1.ClusterEndpoint result) { + if (connectionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + connections_ = java.util.Collections.unmodifiableList(connections_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.connections_ = connections_; + } else { + result.connections_ = connectionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1.ClusterEndpoint 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.redis.cluster.v1.ClusterEndpoint) { + return mergeFrom((com.google.cloud.redis.cluster.v1.ClusterEndpoint) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.ClusterEndpoint other) { + if (other == com.google.cloud.redis.cluster.v1.ClusterEndpoint.getDefaultInstance()) + return this; + if (connectionsBuilder_ == null) { + if (!other.connections_.isEmpty()) { + if (connections_.isEmpty()) { + connections_ = other.connections_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureConnectionsIsMutable(); + connections_.addAll(other.connections_); + } + onChanged(); + } + } else { + if (!other.connections_.isEmpty()) { + if (connectionsBuilder_.isEmpty()) { + connectionsBuilder_.dispose(); + connectionsBuilder_ = null; + connections_ = other.connections_; + bitField0_ = (bitField0_ & ~0x00000001); + connectionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getConnectionsFieldBuilder() + : null; + } else { + connectionsBuilder_.addAllMessages(other.connections_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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.redis.cluster.v1.ConnectionDetail m = + input.readMessage( + com.google.cloud.redis.cluster.v1.ConnectionDetail.parser(), + extensionRegistry); + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.add(m); + } else { + connectionsBuilder_.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 connections_ = + java.util.Collections.emptyList(); + + private void ensureConnectionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + connections_ = + new java.util.ArrayList( + connections_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1.ConnectionDetail, + com.google.cloud.redis.cluster.v1.ConnectionDetail.Builder, + com.google.cloud.redis.cluster.v1.ConnectionDetailOrBuilder> + connectionsBuilder_; + + /** + * + * + *
    +     * A group of PSC connections. They are created in the same VPC network, one
    +     * for each service attachment in the cluster.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1; + */ + public java.util.List getConnectionsList() { + if (connectionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(connections_); + } else { + return connectionsBuilder_.getMessageList(); + } + } + /** + * + * + *
    +     * A group of PSC connections. They are created in the same VPC network, one
    +     * for each service attachment in the cluster.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1; + */ + public int getConnectionsCount() { + if (connectionsBuilder_ == null) { + return connections_.size(); + } else { + return connectionsBuilder_.getCount(); + } + } + /** + * + * + *
    +     * A group of PSC connections. They are created in the same VPC network, one
    +     * for each service attachment in the cluster.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1; + */ + public com.google.cloud.redis.cluster.v1.ConnectionDetail getConnections(int index) { + if (connectionsBuilder_ == null) { + return connections_.get(index); + } else { + return connectionsBuilder_.getMessage(index); + } + } + /** + * + * + *
    +     * A group of PSC connections. They are created in the same VPC network, one
    +     * for each service attachment in the cluster.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1; + */ + public Builder setConnections( + int index, com.google.cloud.redis.cluster.v1.ConnectionDetail value) { + if (connectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionsIsMutable(); + connections_.set(index, value); + onChanged(); + } else { + connectionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * A group of PSC connections. They are created in the same VPC network, one
    +     * for each service attachment in the cluster.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1; + */ + public Builder setConnections( + int index, com.google.cloud.redis.cluster.v1.ConnectionDetail.Builder builderForValue) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.set(index, builderForValue.build()); + onChanged(); + } else { + connectionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * A group of PSC connections. They are created in the same VPC network, one
    +     * for each service attachment in the cluster.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1; + */ + public Builder addConnections(com.google.cloud.redis.cluster.v1.ConnectionDetail value) { + if (connectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionsIsMutable(); + connections_.add(value); + onChanged(); + } else { + connectionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
    +     * A group of PSC connections. They are created in the same VPC network, one
    +     * for each service attachment in the cluster.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1; + */ + public Builder addConnections( + int index, com.google.cloud.redis.cluster.v1.ConnectionDetail value) { + if (connectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionsIsMutable(); + connections_.add(index, value); + onChanged(); + } else { + connectionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * A group of PSC connections. They are created in the same VPC network, one
    +     * for each service attachment in the cluster.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1; + */ + public Builder addConnections( + com.google.cloud.redis.cluster.v1.ConnectionDetail.Builder builderForValue) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.add(builderForValue.build()); + onChanged(); + } else { + connectionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * A group of PSC connections. They are created in the same VPC network, one
    +     * for each service attachment in the cluster.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1; + */ + public Builder addConnections( + int index, com.google.cloud.redis.cluster.v1.ConnectionDetail.Builder builderForValue) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.add(index, builderForValue.build()); + onChanged(); + } else { + connectionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * A group of PSC connections. They are created in the same VPC network, one
    +     * for each service attachment in the cluster.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1; + */ + public Builder addAllConnections( + java.lang.Iterable values) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connections_); + onChanged(); + } else { + connectionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
    +     * A group of PSC connections. They are created in the same VPC network, one
    +     * for each service attachment in the cluster.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1; + */ + public Builder clearConnections() { + if (connectionsBuilder_ == null) { + connections_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + connectionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * A group of PSC connections. They are created in the same VPC network, one
    +     * for each service attachment in the cluster.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1; + */ + public Builder removeConnections(int index) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.remove(index); + onChanged(); + } else { + connectionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
    +     * A group of PSC connections. They are created in the same VPC network, one
    +     * for each service attachment in the cluster.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1; + */ + public com.google.cloud.redis.cluster.v1.ConnectionDetail.Builder getConnectionsBuilder( + int index) { + return getConnectionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
    +     * A group of PSC connections. They are created in the same VPC network, one
    +     * for each service attachment in the cluster.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1; + */ + public com.google.cloud.redis.cluster.v1.ConnectionDetailOrBuilder getConnectionsOrBuilder( + int index) { + if (connectionsBuilder_ == null) { + return connections_.get(index); + } else { + return connectionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
    +     * A group of PSC connections. They are created in the same VPC network, one
    +     * for each service attachment in the cluster.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1; + */ + public java.util.List + getConnectionsOrBuilderList() { + if (connectionsBuilder_ != null) { + return connectionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(connections_); + } + } + /** + * + * + *
    +     * A group of PSC connections. They are created in the same VPC network, one
    +     * for each service attachment in the cluster.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1; + */ + public com.google.cloud.redis.cluster.v1.ConnectionDetail.Builder addConnectionsBuilder() { + return getConnectionsFieldBuilder() + .addBuilder(com.google.cloud.redis.cluster.v1.ConnectionDetail.getDefaultInstance()); + } + /** + * + * + *
    +     * A group of PSC connections. They are created in the same VPC network, one
    +     * for each service attachment in the cluster.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1; + */ + public com.google.cloud.redis.cluster.v1.ConnectionDetail.Builder addConnectionsBuilder( + int index) { + return getConnectionsFieldBuilder() + .addBuilder( + index, com.google.cloud.redis.cluster.v1.ConnectionDetail.getDefaultInstance()); + } + /** + * + * + *
    +     * A group of PSC connections. They are created in the same VPC network, one
    +     * for each service attachment in the cluster.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1; + */ + public java.util.List + getConnectionsBuilderList() { + return getConnectionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1.ConnectionDetail, + com.google.cloud.redis.cluster.v1.ConnectionDetail.Builder, + com.google.cloud.redis.cluster.v1.ConnectionDetailOrBuilder> + getConnectionsFieldBuilder() { + if (connectionsBuilder_ == null) { + connectionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1.ConnectionDetail, + com.google.cloud.redis.cluster.v1.ConnectionDetail.Builder, + com.google.cloud.redis.cluster.v1.ConnectionDetailOrBuilder>( + connections_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + connections_ = null; + } + return connectionsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.ClusterEndpoint) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.ClusterEndpoint) + private static final com.google.cloud.redis.cluster.v1.ClusterEndpoint DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.ClusterEndpoint(); + } + + public static com.google.cloud.redis.cluster.v1.ClusterEndpoint getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterEndpoint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterEndpoint getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterEndpointOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterEndpointOrBuilder.java new file mode 100644 index 000000000000..f785ebffb8e5 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterEndpointOrBuilder.java @@ -0,0 +1,83 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +public interface ClusterEndpointOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.ClusterEndpoint) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * A group of PSC connections. They are created in the same VPC network, one
    +   * for each service attachment in the cluster.
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1; + */ + java.util.List getConnectionsList(); + /** + * + * + *
    +   * A group of PSC connections. They are created in the same VPC network, one
    +   * for each service attachment in the cluster.
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1; + */ + com.google.cloud.redis.cluster.v1.ConnectionDetail getConnections(int index); + /** + * + * + *
    +   * A group of PSC connections. They are created in the same VPC network, one
    +   * for each service attachment in the cluster.
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1; + */ + int getConnectionsCount(); + /** + * + * + *
    +   * A group of PSC connections. They are created in the same VPC network, one
    +   * for each service attachment in the cluster.
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1; + */ + java.util.List + getConnectionsOrBuilderList(); + /** + * + * + *
    +   * A group of PSC connections. They are created in the same VPC network, one
    +   * for each service attachment in the cluster.
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1.ConnectionDetail connections = 1; + */ + com.google.cloud.redis.cluster.v1.ConnectionDetailOrBuilder getConnectionsOrBuilder(int index); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterMaintenancePolicy.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterMaintenancePolicy.java new file mode 100644 index 000000000000..3b9dfb086abe --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterMaintenancePolicy.java @@ -0,0 +1,1671 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
    + * Maintenance policy per cluster.
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.ClusterMaintenancePolicy} + */ +public final class ClusterMaintenancePolicy extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.ClusterMaintenancePolicy) + ClusterMaintenancePolicyOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClusterMaintenancePolicy.newBuilder() to construct. + private ClusterMaintenancePolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ClusterMaintenancePolicy() { + weeklyMaintenanceWindow_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ClusterMaintenancePolicy(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ClusterMaintenancePolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ClusterMaintenancePolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy.class, + com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy.Builder.class); + } + + private int bitField0_; + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
    +   * Output only. The time when the policy was created i.e. Maintenance Window
    +   * or Deny Period was assigned.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 1 [(.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. The time when the policy was created i.e. Maintenance Window
    +   * or Deny Period was assigned.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 1 [(.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. The time when the policy was created i.e. Maintenance Window
    +   * or Deny Period was assigned.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 1 [(.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 = 2; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
    +   * Output only. The time when the policy was updated i.e. Maintenance Window
    +   * or Deny Period was updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 2 [(.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. The time when the policy was updated i.e. Maintenance Window
    +   * or Deny Period was updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 2 [(.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. The time when the policy was updated i.e. Maintenance Window
    +   * or Deny Period was updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 2 [(.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 WEEKLY_MAINTENANCE_WINDOW_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List + weeklyMaintenanceWindow_; + /** + * + * + *
    +   * Optional. Maintenance window that is applied to resources covered by this
    +   * policy. Minimum 1. For the current version, the maximum number of
    +   * weekly_maintenance_window is expected to be one.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + @java.lang.Override + public java.util.List + getWeeklyMaintenanceWindowList() { + return weeklyMaintenanceWindow_; + } + /** + * + * + *
    +   * Optional. Maintenance window that is applied to resources covered by this
    +   * policy. Minimum 1. For the current version, the maximum number of
    +   * weekly_maintenance_window is expected to be one.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindowOrBuilder> + getWeeklyMaintenanceWindowOrBuilderList() { + return weeklyMaintenanceWindow_; + } + /** + * + * + *
    +   * Optional. Maintenance window that is applied to resources covered by this
    +   * policy. Minimum 1. For the current version, the maximum number of
    +   * weekly_maintenance_window is expected to be one.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + @java.lang.Override + public int getWeeklyMaintenanceWindowCount() { + return weeklyMaintenanceWindow_.size(); + } + /** + * + * + *
    +   * Optional. Maintenance window that is applied to resources covered by this
    +   * policy. Minimum 1. For the current version, the maximum number of
    +   * weekly_maintenance_window is expected to be one.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow + getWeeklyMaintenanceWindow(int index) { + return weeklyMaintenanceWindow_.get(index); + } + /** + * + * + *
    +   * Optional. Maintenance window that is applied to resources covered by this
    +   * policy. Minimum 1. For the current version, the maximum number of
    +   * weekly_maintenance_window is expected to be one.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindowOrBuilder + getWeeklyMaintenanceWindowOrBuilder(int index) { + return weeklyMaintenanceWindow_.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, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateTime()); + } + for (int i = 0; i < weeklyMaintenanceWindow_.size(); i++) { + output.writeMessage(3, weeklyMaintenanceWindow_.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, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime()); + } + for (int i = 0; i < weeklyMaintenanceWindow_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, weeklyMaintenanceWindow_.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.redis.cluster.v1.ClusterMaintenancePolicy)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy other = + (com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getWeeklyMaintenanceWindowList().equals(other.getWeeklyMaintenanceWindowList())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (getWeeklyMaintenanceWindowCount() > 0) { + hash = (37 * hash) + WEEKLY_MAINTENANCE_WINDOW_FIELD_NUMBER; + hash = (53 * hash) + getWeeklyMaintenanceWindowList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Maintenance policy per cluster.
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.ClusterMaintenancePolicy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.ClusterMaintenancePolicy) + com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ClusterMaintenancePolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ClusterMaintenancePolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy.class, + com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy.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(); + getWeeklyMaintenanceWindowFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + if (weeklyMaintenanceWindowBuilder_ == null) { + weeklyMaintenanceWindow_ = java.util.Collections.emptyList(); + } else { + weeklyMaintenanceWindow_ = null; + weeklyMaintenanceWindowBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ClusterMaintenancePolicy_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy build() { + com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy buildPartial() { + com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy result = + new com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy result) { + if (weeklyMaintenanceWindowBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + weeklyMaintenanceWindow_ = + java.util.Collections.unmodifiableList(weeklyMaintenanceWindow_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.weeklyMaintenanceWindow_ = weeklyMaintenanceWindow_; + } else { + result.weeklyMaintenanceWindow_ = weeklyMaintenanceWindowBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy) { + return mergeFrom((com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy other) { + if (other == com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy.getDefaultInstance()) + return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (weeklyMaintenanceWindowBuilder_ == null) { + if (!other.weeklyMaintenanceWindow_.isEmpty()) { + if (weeklyMaintenanceWindow_.isEmpty()) { + weeklyMaintenanceWindow_ = other.weeklyMaintenanceWindow_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureWeeklyMaintenanceWindowIsMutable(); + weeklyMaintenanceWindow_.addAll(other.weeklyMaintenanceWindow_); + } + onChanged(); + } + } else { + if (!other.weeklyMaintenanceWindow_.isEmpty()) { + if (weeklyMaintenanceWindowBuilder_.isEmpty()) { + weeklyMaintenanceWindowBuilder_.dispose(); + weeklyMaintenanceWindowBuilder_ = null; + weeklyMaintenanceWindow_ = other.weeklyMaintenanceWindow_; + bitField0_ = (bitField0_ & ~0x00000004); + weeklyMaintenanceWindowBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWeeklyMaintenanceWindowFieldBuilder() + : null; + } else { + weeklyMaintenanceWindowBuilder_.addAllMessages(other.weeklyMaintenanceWindow_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow m = + input.readMessage( + com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow.parser(), + extensionRegistry); + if (weeklyMaintenanceWindowBuilder_ == null) { + ensureWeeklyMaintenanceWindowIsMutable(); + weeklyMaintenanceWindow_.add(m); + } else { + weeklyMaintenanceWindowBuilder_.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 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. The time when the policy was created i.e. Maintenance Window
    +     * or Deny Period was assigned.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +     * Output only. The time when the policy was created i.e. Maintenance Window
    +     * or Deny Period was assigned.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 1 [(.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. The time when the policy was created i.e. Maintenance Window
    +     * or Deny Period was assigned.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 1 [(.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_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The time when the policy was created i.e. Maintenance Window
    +     * or Deny Period was assigned.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 1 [(.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_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The time when the policy was created i.e. Maintenance Window
    +     * or Deny Period was assigned.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Output only. The time when the policy was created i.e. Maintenance Window
    +     * or Deny Period was assigned.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The time when the policy was created i.e. Maintenance Window
    +     * or Deny Period was assigned.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Output only. The time when the policy was created i.e. Maintenance Window
    +     * or Deny Period was assigned.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 1 [(.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. The time when the policy was created i.e. Maintenance Window
    +     * or Deny Period was assigned.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 1 [(.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. The time when the policy was updated i.e. Maintenance Window
    +     * or Deny Period was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * Output only. The time when the policy was updated i.e. Maintenance Window
    +     * or Deny Period was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 2 [(.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. The time when the policy was updated i.e. Maintenance Window
    +     * or Deny Period was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The time when the policy was updated i.e. Maintenance Window
    +     * or Deny Period was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The time when the policy was updated i.e. Maintenance Window
    +     * or Deny Period was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Output only. The time when the policy was updated i.e. Maintenance Window
    +     * or Deny Period was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The time when the policy was updated i.e. Maintenance Window
    +     * or Deny Period was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Output only. The time when the policy was updated i.e. Maintenance Window
    +     * or Deny Period was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 2 [(.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. The time when the policy was updated i.e. Maintenance Window
    +     * or Deny Period was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp 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> + 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 java.util.List + weeklyMaintenanceWindow_ = java.util.Collections.emptyList(); + + private void ensureWeeklyMaintenanceWindowIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + weeklyMaintenanceWindow_ = + new java.util.ArrayList< + com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow>( + weeklyMaintenanceWindow_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow, + com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow.Builder, + com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindowOrBuilder> + weeklyMaintenanceWindowBuilder_; + + /** + * + * + *
    +     * Optional. Maintenance window that is applied to resources covered by this
    +     * policy. Minimum 1. For the current version, the maximum number of
    +     * weekly_maintenance_window is expected to be one.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + public java.util.List + getWeeklyMaintenanceWindowList() { + if (weeklyMaintenanceWindowBuilder_ == null) { + return java.util.Collections.unmodifiableList(weeklyMaintenanceWindow_); + } else { + return weeklyMaintenanceWindowBuilder_.getMessageList(); + } + } + /** + * + * + *
    +     * Optional. Maintenance window that is applied to resources covered by this
    +     * policy. Minimum 1. For the current version, the maximum number of
    +     * weekly_maintenance_window is expected to be one.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + public int getWeeklyMaintenanceWindowCount() { + if (weeklyMaintenanceWindowBuilder_ == null) { + return weeklyMaintenanceWindow_.size(); + } else { + return weeklyMaintenanceWindowBuilder_.getCount(); + } + } + /** + * + * + *
    +     * Optional. Maintenance window that is applied to resources covered by this
    +     * policy. Minimum 1. For the current version, the maximum number of
    +     * weekly_maintenance_window is expected to be one.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + public com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow + getWeeklyMaintenanceWindow(int index) { + if (weeklyMaintenanceWindowBuilder_ == null) { + return weeklyMaintenanceWindow_.get(index); + } else { + return weeklyMaintenanceWindowBuilder_.getMessage(index); + } + } + /** + * + * + *
    +     * Optional. Maintenance window that is applied to resources covered by this
    +     * policy. Minimum 1. For the current version, the maximum number of
    +     * weekly_maintenance_window is expected to be one.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + public Builder setWeeklyMaintenanceWindow( + int index, com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow value) { + if (weeklyMaintenanceWindowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWeeklyMaintenanceWindowIsMutable(); + weeklyMaintenanceWindow_.set(index, value); + onChanged(); + } else { + weeklyMaintenanceWindowBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * Optional. Maintenance window that is applied to resources covered by this
    +     * policy. Minimum 1. For the current version, the maximum number of
    +     * weekly_maintenance_window is expected to be one.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + public Builder setWeeklyMaintenanceWindow( + int index, + com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow.Builder builderForValue) { + if (weeklyMaintenanceWindowBuilder_ == null) { + ensureWeeklyMaintenanceWindowIsMutable(); + weeklyMaintenanceWindow_.set(index, builderForValue.build()); + onChanged(); + } else { + weeklyMaintenanceWindowBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * Optional. Maintenance window that is applied to resources covered by this
    +     * policy. Minimum 1. For the current version, the maximum number of
    +     * weekly_maintenance_window is expected to be one.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + public Builder addWeeklyMaintenanceWindow( + com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow value) { + if (weeklyMaintenanceWindowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWeeklyMaintenanceWindowIsMutable(); + weeklyMaintenanceWindow_.add(value); + onChanged(); + } else { + weeklyMaintenanceWindowBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
    +     * Optional. Maintenance window that is applied to resources covered by this
    +     * policy. Minimum 1. For the current version, the maximum number of
    +     * weekly_maintenance_window is expected to be one.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + public Builder addWeeklyMaintenanceWindow( + int index, com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow value) { + if (weeklyMaintenanceWindowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWeeklyMaintenanceWindowIsMutable(); + weeklyMaintenanceWindow_.add(index, value); + onChanged(); + } else { + weeklyMaintenanceWindowBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * Optional. Maintenance window that is applied to resources covered by this
    +     * policy. Minimum 1. For the current version, the maximum number of
    +     * weekly_maintenance_window is expected to be one.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + public Builder addWeeklyMaintenanceWindow( + com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow.Builder builderForValue) { + if (weeklyMaintenanceWindowBuilder_ == null) { + ensureWeeklyMaintenanceWindowIsMutable(); + weeklyMaintenanceWindow_.add(builderForValue.build()); + onChanged(); + } else { + weeklyMaintenanceWindowBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * Optional. Maintenance window that is applied to resources covered by this
    +     * policy. Minimum 1. For the current version, the maximum number of
    +     * weekly_maintenance_window is expected to be one.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + public Builder addWeeklyMaintenanceWindow( + int index, + com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow.Builder builderForValue) { + if (weeklyMaintenanceWindowBuilder_ == null) { + ensureWeeklyMaintenanceWindowIsMutable(); + weeklyMaintenanceWindow_.add(index, builderForValue.build()); + onChanged(); + } else { + weeklyMaintenanceWindowBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * Optional. Maintenance window that is applied to resources covered by this
    +     * policy. Minimum 1. For the current version, the maximum number of
    +     * weekly_maintenance_window is expected to be one.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + public Builder addAllWeeklyMaintenanceWindow( + java.lang.Iterable< + ? extends com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow> + values) { + if (weeklyMaintenanceWindowBuilder_ == null) { + ensureWeeklyMaintenanceWindowIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, weeklyMaintenanceWindow_); + onChanged(); + } else { + weeklyMaintenanceWindowBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
    +     * Optional. Maintenance window that is applied to resources covered by this
    +     * policy. Minimum 1. For the current version, the maximum number of
    +     * weekly_maintenance_window is expected to be one.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + public Builder clearWeeklyMaintenanceWindow() { + if (weeklyMaintenanceWindowBuilder_ == null) { + weeklyMaintenanceWindow_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + weeklyMaintenanceWindowBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * Optional. Maintenance window that is applied to resources covered by this
    +     * policy. Minimum 1. For the current version, the maximum number of
    +     * weekly_maintenance_window is expected to be one.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + public Builder removeWeeklyMaintenanceWindow(int index) { + if (weeklyMaintenanceWindowBuilder_ == null) { + ensureWeeklyMaintenanceWindowIsMutable(); + weeklyMaintenanceWindow_.remove(index); + onChanged(); + } else { + weeklyMaintenanceWindowBuilder_.remove(index); + } + return this; + } + /** + * + * + *
    +     * Optional. Maintenance window that is applied to resources covered by this
    +     * policy. Minimum 1. For the current version, the maximum number of
    +     * weekly_maintenance_window is expected to be one.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + public com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow.Builder + getWeeklyMaintenanceWindowBuilder(int index) { + return getWeeklyMaintenanceWindowFieldBuilder().getBuilder(index); + } + /** + * + * + *
    +     * Optional. Maintenance window that is applied to resources covered by this
    +     * policy. Minimum 1. For the current version, the maximum number of
    +     * weekly_maintenance_window is expected to be one.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + public com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindowOrBuilder + getWeeklyMaintenanceWindowOrBuilder(int index) { + if (weeklyMaintenanceWindowBuilder_ == null) { + return weeklyMaintenanceWindow_.get(index); + } else { + return weeklyMaintenanceWindowBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
    +     * Optional. Maintenance window that is applied to resources covered by this
    +     * policy. Minimum 1. For the current version, the maximum number of
    +     * weekly_maintenance_window is expected to be one.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + public java.util.List< + ? extends com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindowOrBuilder> + getWeeklyMaintenanceWindowOrBuilderList() { + if (weeklyMaintenanceWindowBuilder_ != null) { + return weeklyMaintenanceWindowBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(weeklyMaintenanceWindow_); + } + } + /** + * + * + *
    +     * Optional. Maintenance window that is applied to resources covered by this
    +     * policy. Minimum 1. For the current version, the maximum number of
    +     * weekly_maintenance_window is expected to be one.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + public com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow.Builder + addWeeklyMaintenanceWindowBuilder() { + return getWeeklyMaintenanceWindowFieldBuilder() + .addBuilder( + com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow + .getDefaultInstance()); + } + /** + * + * + *
    +     * Optional. Maintenance window that is applied to resources covered by this
    +     * policy. Minimum 1. For the current version, the maximum number of
    +     * weekly_maintenance_window is expected to be one.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + public com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow.Builder + addWeeklyMaintenanceWindowBuilder(int index) { + return getWeeklyMaintenanceWindowFieldBuilder() + .addBuilder( + index, + com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow + .getDefaultInstance()); + } + /** + * + * + *
    +     * Optional. Maintenance window that is applied to resources covered by this
    +     * policy. Minimum 1. For the current version, the maximum number of
    +     * weekly_maintenance_window is expected to be one.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + public java.util.List + getWeeklyMaintenanceWindowBuilderList() { + return getWeeklyMaintenanceWindowFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow, + com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow.Builder, + com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindowOrBuilder> + getWeeklyMaintenanceWindowFieldBuilder() { + if (weeklyMaintenanceWindowBuilder_ == null) { + weeklyMaintenanceWindowBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow, + com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow.Builder, + com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindowOrBuilder>( + weeklyMaintenanceWindow_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + weeklyMaintenanceWindow_ = null; + } + return weeklyMaintenanceWindowBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.ClusterMaintenancePolicy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.ClusterMaintenancePolicy) + private static final com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy(); + } + + public static com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterMaintenancePolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterMaintenancePolicyOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterMaintenancePolicyOrBuilder.java new file mode 100644 index 000000000000..a7f77c40da6a --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterMaintenancePolicyOrBuilder.java @@ -0,0 +1,184 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +public interface ClusterMaintenancePolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.ClusterMaintenancePolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Output only. The time when the policy was created i.e. Maintenance Window
    +   * or Deny Period was assigned.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
    +   * Output only. The time when the policy was created i.e. Maintenance Window
    +   * or Deny Period was assigned.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
    +   * Output only. The time when the policy was created i.e. Maintenance Window
    +   * or Deny Period was assigned.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
    +   * Output only. The time when the policy was updated i.e. Maintenance Window
    +   * or Deny Period was updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
    +   * Output only. The time when the policy was updated i.e. Maintenance Window
    +   * or Deny Period was updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
    +   * Output only. The time when the policy was updated i.e. Maintenance Window
    +   * or Deny Period was updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
    +   * Optional. Maintenance window that is applied to resources covered by this
    +   * policy. Minimum 1. For the current version, the maximum number of
    +   * weekly_maintenance_window is expected to be one.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + java.util.List + getWeeklyMaintenanceWindowList(); + /** + * + * + *
    +   * Optional. Maintenance window that is applied to resources covered by this
    +   * policy. Minimum 1. For the current version, the maximum number of
    +   * weekly_maintenance_window is expected to be one.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow getWeeklyMaintenanceWindow( + int index); + /** + * + * + *
    +   * Optional. Maintenance window that is applied to resources covered by this
    +   * policy. Minimum 1. For the current version, the maximum number of
    +   * weekly_maintenance_window is expected to be one.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + int getWeeklyMaintenanceWindowCount(); + /** + * + * + *
    +   * Optional. Maintenance window that is applied to resources covered by this
    +   * policy. Minimum 1. For the current version, the maximum number of
    +   * weekly_maintenance_window is expected to be one.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + java.util.List< + ? extends com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindowOrBuilder> + getWeeklyMaintenanceWindowOrBuilderList(); + /** + * + * + *
    +   * Optional. Maintenance window that is applied to resources covered by this
    +   * policy. Minimum 1. For the current version, the maximum number of
    +   * weekly_maintenance_window is expected to be one.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindowOrBuilder + getWeeklyMaintenanceWindowOrBuilder(int index); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterMaintenanceSchedule.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterMaintenanceSchedule.java new file mode 100644 index 000000000000..f426f5225081 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterMaintenanceSchedule.java @@ -0,0 +1,1026 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
    + * Upcoming maitenance schedule.
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule} + */ +public final class ClusterMaintenanceSchedule extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule) + ClusterMaintenanceScheduleOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClusterMaintenanceSchedule.newBuilder() to construct. + private ClusterMaintenanceSchedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ClusterMaintenanceSchedule() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ClusterMaintenanceSchedule(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ClusterMaintenanceSchedule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ClusterMaintenanceSchedule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule.class, + com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule.Builder.class); + } + + private int bitField0_; + public static final int START_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
    +   * Output only. The start time of any upcoming scheduled maintenance for this
    +   * instance.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * Output only. The start time of any upcoming scheduled maintenance for this
    +   * instance.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
    +   * Output only. The start time of any upcoming scheduled maintenance for this
    +   * instance.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @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 = 2; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
    +   * Output only. The end time of any upcoming scheduled maintenance for this
    +   * instance.
    +   * 
    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +   * Output only. The end time of any upcoming scheduled maintenance for this
    +   * instance.
    +   * 
    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
    +   * Output only. The end time of any upcoming scheduled maintenance for this
    +   * instance.
    +   * 
    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getEndTime()); + } + 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, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, 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.redis.cluster.v1.ClusterMaintenanceSchedule)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule other = + (com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule) obj; + + 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(); + 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.redis.cluster.v1.ClusterMaintenanceSchedule parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Upcoming maitenance schedule.
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule) + com.google.cloud.redis.cluster.v1.ClusterMaintenanceScheduleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ClusterMaintenanceSchedule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ClusterMaintenanceSchedule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule.class, + com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule.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; + 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.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ClusterMaintenanceSchedule_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule build() { + com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule buildPartial() { + com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule result = + new com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 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.redis.cluster.v1.ClusterMaintenanceSchedule) { + return mergeFrom((com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule other) { + if (other + == com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule.getDefaultInstance()) + return this; + 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: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
    +     * Output only. The start time of any upcoming scheduled maintenance for this
    +     * instance.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +     * Output only. The start time of any upcoming scheduled maintenance for this
    +     * instance.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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(); + } + } + /** + * + * + *
    +     * Output only. The start time of any upcoming scheduled maintenance for this
    +     * instance.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The start time of any upcoming scheduled maintenance for this
    +     * instance.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The start time of any upcoming scheduled maintenance for this
    +     * instance.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Output only. The start time of any upcoming scheduled maintenance for this
    +     * instance.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000001); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The start time of any upcoming scheduled maintenance for this
    +     * instance.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Output only. The start time of any upcoming scheduled maintenance for this
    +     * instance.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
    +     * Output only. The start time of any upcoming scheduled maintenance for this
    +     * instance.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + 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_; + /** + * + * + *
    +     * Output only. The end time of any upcoming scheduled maintenance for this
    +     * instance.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * Output only. The end time of any upcoming scheduled maintenance for this
    +     * instance.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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(); + } + } + /** + * + * + *
    +     * Output only. The end time of any upcoming scheduled maintenance for this
    +     * instance.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The end time of any upcoming scheduled maintenance for this
    +     * instance.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The end time of any upcoming scheduled maintenance for this
    +     * instance.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Output only. The end time of any upcoming scheduled maintenance for this
    +     * instance.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000002); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The end time of any upcoming scheduled maintenance for this
    +     * instance.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Output only. The end time of any upcoming scheduled maintenance for this
    +     * instance.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
    +     * Output only. The end time of any upcoming scheduled maintenance for this
    +     * instance.
    +     * 
    + * + * .google.protobuf.Timestamp end_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> + 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.redis.cluster.v1.ClusterMaintenanceSchedule) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule) + private static final com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule(); + } + + public static com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterMaintenanceSchedule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterMaintenanceScheduleOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterMaintenanceScheduleOrBuilder.java new file mode 100644 index 000000000000..767f75944573 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterMaintenanceScheduleOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +public interface ClusterMaintenanceScheduleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Output only. The start time of any upcoming scheduled maintenance for this
    +   * instance.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
    +   * Output only. The start time of any upcoming scheduled maintenance for this
    +   * instance.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
    +   * Output only. The start time of any upcoming scheduled maintenance for this
    +   * instance.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
    +   * Output only. The end time of any upcoming scheduled maintenance for this
    +   * instance.
    +   * 
    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * + * + *
    +   * Output only. The end time of any upcoming scheduled maintenance for this
    +   * instance.
    +   * 
    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
    +   * Output only. The end time of any upcoming scheduled maintenance for this
    +   * instance.
    +   * 
    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterOrBuilder.java index 35d5ee99cde2..420806a6ac40 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterOrBuilder.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterOrBuilder.java @@ -28,12 +28,106 @@ public interface ClusterOrBuilder * * *
    -   * Required. Unique name of the resource in this scope including project and
    -   * location using the form:
    +   * Optional. Backups stored in Cloud Storage buckets.
    +   * The Cloud Storage buckets need to be the same region as the clusters.
    +   * Read permission is required to import from the provided Cloud Storage
    +   * objects.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.Cluster.GcsBackupSource gcs_source = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gcsSource field is set. + */ + boolean hasGcsSource(); + /** + * + * + *
    +   * Optional. Backups stored in Cloud Storage buckets.
    +   * The Cloud Storage buckets need to be the same region as the clusters.
    +   * Read permission is required to import from the provided Cloud Storage
    +   * objects.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.Cluster.GcsBackupSource gcs_source = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gcsSource. + */ + com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSource getGcsSource(); + /** + * + * + *
    +   * Optional. Backups stored in Cloud Storage buckets.
    +   * The Cloud Storage buckets need to be the same region as the clusters.
    +   * Read permission is required to import from the provided Cloud Storage
    +   * objects.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.Cluster.GcsBackupSource gcs_source = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.redis.cluster.v1.Cluster.GcsBackupSourceOrBuilder getGcsSourceOrBuilder(); + + /** + * + * + *
    +   * Optional. Backups generated and managed by memorystore service.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource managed_backup_source = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the managedBackupSource field is set. + */ + boolean hasManagedBackupSource(); + /** + * + * + *
    +   * Optional. Backups generated and managed by memorystore service.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource managed_backup_source = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The managedBackupSource. + */ + com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource getManagedBackupSource(); + /** + * + * + *
    +   * Optional. Backups generated and managed by memorystore service.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.Cluster.ManagedBackupSource managed_backup_source = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.redis.cluster.v1.Cluster.ManagedBackupSourceOrBuilder + getManagedBackupSourceOrBuilder(); + + /** + * + * + *
    +   * Required. Identifier. Unique name of the resource in this scope including
    +   * project and location using the form:
        *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
        * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The name. */ @@ -42,12 +136,14 @@ public interface ClusterOrBuilder * * *
    -   * Required. Unique name of the resource in this scope including project and
    -   * location using the form:
    +   * Required. Identifier. Unique name of the resource in this scope including
    +   * project and location using the form:
        *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
        * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The bytes for name. */ @@ -265,10 +361,10 @@ public interface ClusterOrBuilder * * *
    -   * Required. Number of shards for the Redis cluster.
    +   * Optional. Number of shards for the Redis cluster.
        * 
    * - * optional int32 shard_count = 14 [(.google.api.field_behavior) = REQUIRED]; + * optional int32 shard_count = 14 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the shardCount field is set. */ @@ -277,10 +373,10 @@ public interface ClusterOrBuilder * * *
    -   * Required. Number of shards for the Redis cluster.
    +   * Optional. Number of shards for the Redis cluster.
        * 
    * - * optional int32 shard_count = 14 [(.google.api.field_behavior) = REQUIRED]; + * optional int32 shard_count = 14 [(.google.api.field_behavior) = OPTIONAL]; * * @return The shardCount. */ @@ -290,13 +386,13 @@ public interface ClusterOrBuilder * * *
    -   * Required. Each PscConfig configures the consumer network where IPs will
    +   * Optional. Each PscConfig configures the consumer network where IPs will
        * be designated to the cluster for client access through Private Service
        * Connect Automation. Currently, only one PscConfig is supported.
        * 
    * * - * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ java.util.List getPscConfigsList(); @@ -304,13 +400,13 @@ public interface ClusterOrBuilder * * *
    -   * Required. Each PscConfig configures the consumer network where IPs will
    +   * Optional. Each PscConfig configures the consumer network where IPs will
        * be designated to the cluster for client access through Private Service
        * Connect Automation. Currently, only one PscConfig is supported.
        * 
    * * - * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.cloud.redis.cluster.v1.PscConfig getPscConfigs(int index); @@ -318,13 +414,13 @@ public interface ClusterOrBuilder * * *
    -   * Required. Each PscConfig configures the consumer network where IPs will
    +   * Optional. Each PscConfig configures the consumer network where IPs will
        * be designated to the cluster for client access through Private Service
        * Connect Automation. Currently, only one PscConfig is supported.
        * 
    * * - * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ int getPscConfigsCount(); @@ -332,13 +428,13 @@ public interface ClusterOrBuilder * * *
    -   * Required. Each PscConfig configures the consumer network where IPs will
    +   * Optional. Each PscConfig configures the consumer network where IPs will
        * be designated to the cluster for client access through Private Service
        * Connect Automation. Currently, only one PscConfig is supported.
        * 
    * * - * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ java.util.List @@ -347,13 +443,13 @@ public interface ClusterOrBuilder * * *
    -   * Required. Each PscConfig configures the consumer network where IPs will
    +   * Optional. Each PscConfig configures the consumer network where IPs will
        * be designated to the cluster for client access through Private Service
        * Connect Automation. Currently, only one PscConfig is supported.
        * 
    * * - * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.redis.cluster.v1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.cloud.redis.cluster.v1.PscConfigOrBuilder getPscConfigsOrBuilder(int index); @@ -430,8 +526,8 @@ com.google.cloud.redis.cluster.v1.DiscoveryEndpointOrBuilder getDiscoveryEndpoin * * *
    -   * Output only. PSC connections for discovery of the cluster topology and
    -   * accessing the cluster.
    +   * Output only. The list of PSC connections that are auto-created through
    +   * service connectivity automation.
        * 
    * * @@ -443,8 +539,8 @@ com.google.cloud.redis.cluster.v1.DiscoveryEndpointOrBuilder getDiscoveryEndpoin * * *
    -   * Output only. PSC connections for discovery of the cluster topology and
    -   * accessing the cluster.
    +   * Output only. The list of PSC connections that are auto-created through
    +   * service connectivity automation.
        * 
    * * @@ -456,8 +552,8 @@ com.google.cloud.redis.cluster.v1.DiscoveryEndpointOrBuilder getDiscoveryEndpoin * * *
    -   * Output only. PSC connections for discovery of the cluster topology and
    -   * accessing the cluster.
    +   * Output only. The list of PSC connections that are auto-created through
    +   * service connectivity automation.
        * 
    * * @@ -469,8 +565,8 @@ com.google.cloud.redis.cluster.v1.DiscoveryEndpointOrBuilder getDiscoveryEndpoin * * *
    -   * Output only. PSC connections for discovery of the cluster topology and
    -   * accessing the cluster.
    +   * Output only. The list of PSC connections that are auto-created through
    +   * service connectivity automation.
        * 
    * * @@ -483,8 +579,8 @@ com.google.cloud.redis.cluster.v1.DiscoveryEndpointOrBuilder getDiscoveryEndpoin * * *
    -   * Output only. PSC connections for discovery of the cluster topology and
    -   * accessing the cluster.
    +   * Output only. The list of PSC connections that are auto-created through
    +   * service connectivity automation.
        * 
    * * @@ -742,6 +838,49 @@ java.lang.String getRedisConfigsOrDefault( com.google.cloud.redis.cluster.v1.ZoneDistributionConfigOrBuilder getZoneDistributionConfigOrBuilder(); + /** + * + * + *
    +   * Optional. Cross cluster replication config.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig cross_cluster_replication_config = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the crossClusterReplicationConfig field is set. + */ + boolean hasCrossClusterReplicationConfig(); + /** + * + * + *
    +   * Optional. Cross cluster replication config.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig cross_cluster_replication_config = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The crossClusterReplicationConfig. + */ + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig + getCrossClusterReplicationConfig(); + /** + * + * + *
    +   * Optional. Cross cluster replication config.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig cross_cluster_replication_config = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfigOrBuilder + getCrossClusterReplicationConfigOrBuilder(); + /** * * @@ -768,4 +907,395 @@ java.lang.String getRedisConfigsOrDefault( * @return The deletionProtectionEnabled. */ boolean getDeletionProtectionEnabled(); + + /** + * + * + *
    +   * Optional. ClusterMaintenancePolicy determines when to allow or deny
    +   * updates.
    +   * 
    + * + * + * optional .google.cloud.redis.cluster.v1.ClusterMaintenancePolicy maintenance_policy = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the maintenancePolicy field is set. + */ + boolean hasMaintenancePolicy(); + /** + * + * + *
    +   * Optional. ClusterMaintenancePolicy determines when to allow or deny
    +   * updates.
    +   * 
    + * + * + * optional .google.cloud.redis.cluster.v1.ClusterMaintenancePolicy maintenance_policy = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maintenancePolicy. + */ + com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicy getMaintenancePolicy(); + /** + * + * + *
    +   * Optional. ClusterMaintenancePolicy determines when to allow or deny
    +   * updates.
    +   * 
    + * + * + * optional .google.cloud.redis.cluster.v1.ClusterMaintenancePolicy maintenance_policy = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.redis.cluster.v1.ClusterMaintenancePolicyOrBuilder + getMaintenancePolicyOrBuilder(); + + /** + * + * + *
    +   * Output only. ClusterMaintenanceSchedule Output only Published maintenance
    +   * schedule.
    +   * 
    + * + * + * optional .google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule maintenance_schedule = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the maintenanceSchedule field is set. + */ + boolean hasMaintenanceSchedule(); + /** + * + * + *
    +   * Output only. ClusterMaintenanceSchedule Output only Published maintenance
    +   * schedule.
    +   * 
    + * + * + * optional .google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule maintenance_schedule = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The maintenanceSchedule. + */ + com.google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule getMaintenanceSchedule(); + /** + * + * + *
    +   * Output only. ClusterMaintenanceSchedule Output only Published maintenance
    +   * schedule.
    +   * 
    + * + * + * optional .google.cloud.redis.cluster.v1.ClusterMaintenanceSchedule maintenance_schedule = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.redis.cluster.v1.ClusterMaintenanceScheduleOrBuilder + getMaintenanceScheduleOrBuilder(); + + /** + * + * + *
    +   * Output only. Service attachment details to configure Psc connections
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getPscServiceAttachmentsList(); + /** + * + * + *
    +   * Output only. Service attachment details to configure Psc connections
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.redis.cluster.v1.PscServiceAttachment getPscServiceAttachments(int index); + /** + * + * + *
    +   * Output only. Service attachment details to configure Psc connections
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getPscServiceAttachmentsCount(); + /** + * + * + *
    +   * Output only. Service attachment details to configure Psc connections
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getPscServiceAttachmentsOrBuilderList(); + /** + * + * + *
    +   * Output only. Service attachment details to configure Psc connections
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.redis.cluster.v1.PscServiceAttachmentOrBuilder getPscServiceAttachmentsOrBuilder( + int index); + + /** + * + * + *
    +   * Optional. A list of cluster enpoints.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getClusterEndpointsList(); + /** + * + * + *
    +   * Optional. A list of cluster enpoints.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.redis.cluster.v1.ClusterEndpoint getClusterEndpoints(int index); + /** + * + * + *
    +   * Optional. A list of cluster enpoints.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getClusterEndpointsCount(); + /** + * + * + *
    +   * Optional. A list of cluster enpoints.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getClusterEndpointsOrBuilderList(); + /** + * + * + *
    +   * Optional. A list of cluster enpoints.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.redis.cluster.v1.ClusterEndpointOrBuilder getClusterEndpointsOrBuilder( + int index); + + /** + * + * + *
    +   * Optional. Output only. The backup collection full resource name. Example:
    +   * projects/{project}/locations/{location}/backupCollections/{collection}
    +   * 
    + * + * + * optional string backup_collection = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the backupCollection field is set. + */ + boolean hasBackupCollection(); + /** + * + * + *
    +   * Optional. Output only. The backup collection full resource name. Example:
    +   * projects/{project}/locations/{location}/backupCollections/{collection}
    +   * 
    + * + * + * optional string backup_collection = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The backupCollection. + */ + java.lang.String getBackupCollection(); + /** + * + * + *
    +   * Optional. Output only. The backup collection full resource name. Example:
    +   * projects/{project}/locations/{location}/backupCollections/{collection}
    +   * 
    + * + * + * optional string backup_collection = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for backupCollection. + */ + com.google.protobuf.ByteString getBackupCollectionBytes(); + + /** + * + * + *
    +   * Optional. The KMS key used to encrypt the at-rest data of the cluster.
    +   * 
    + * + * + * optional string kms_key = 40 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the kmsKey field is set. + */ + boolean hasKmsKey(); + /** + * + * + *
    +   * Optional. The KMS key used to encrypt the at-rest data of the cluster.
    +   * 
    + * + * + * optional string kms_key = 40 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The kmsKey. + */ + java.lang.String getKmsKey(); + /** + * + * + *
    +   * Optional. The KMS key used to encrypt the at-rest data of the cluster.
    +   * 
    + * + * + * optional string kms_key = 40 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for kmsKey. + */ + com.google.protobuf.ByteString getKmsKeyBytes(); + + /** + * + * + *
    +   * Optional. The automated backup config for the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.AutomatedBackupConfig automated_backup_config = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the automatedBackupConfig field is set. + */ + boolean hasAutomatedBackupConfig(); + /** + * + * + *
    +   * Optional. The automated backup config for the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.AutomatedBackupConfig automated_backup_config = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The automatedBackupConfig. + */ + com.google.cloud.redis.cluster.v1.AutomatedBackupConfig getAutomatedBackupConfig(); + /** + * + * + *
    +   * Optional. The automated backup config for the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.AutomatedBackupConfig automated_backup_config = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.redis.cluster.v1.AutomatedBackupConfigOrBuilder + getAutomatedBackupConfigOrBuilder(); + + /** + * + * + *
    +   * Output only. Encryption information of the data at rest of the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo encryption_info = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the encryptionInfo field is set. + */ + boolean hasEncryptionInfo(); + /** + * + * + *
    +   * Output only. Encryption information of the data at rest of the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo encryption_info = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The encryptionInfo. + */ + com.google.cloud.redis.cluster.v1.EncryptionInfo getEncryptionInfo(); + /** + * + * + *
    +   * Output only. Encryption information of the data at rest of the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo encryption_info = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.redis.cluster.v1.EncryptionInfoOrBuilder getEncryptionInfoOrBuilder(); + + com.google.cloud.redis.cluster.v1.Cluster.ImportSourcesCase getImportSourcesCase(); } diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterPersistenceConfig.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterPersistenceConfig.java index c4138469da21..965fa4e05fe0 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterPersistenceConfig.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterPersistenceConfig.java @@ -1615,8 +1615,8 @@ public enum AppendFsync implements com.google.protobuf.ProtocolMessageEnum { * * *
    -       * fsync every time new commands are appended to the AOF. It has the best
    -       * data loss protection at the cost of performance
    +       * fsync every time new write commands are appended to the AOF. It has the
    +       * best data loss protection at the cost of performance
            * 
    * * ALWAYS = 3; @@ -1661,8 +1661,8 @@ public enum AppendFsync implements com.google.protobuf.ProtocolMessageEnum { * * *
    -       * fsync every time new commands are appended to the AOF. It has the best
    -       * data loss protection at the cost of performance
    +       * fsync every time new write commands are appended to the AOF. It has the
    +       * best data loss protection at the cost of performance
            * 
    * * ALWAYS = 3; diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterWeeklyMaintenanceWindow.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterWeeklyMaintenanceWindow.java new file mode 100644 index 000000000000..65d6e835064b --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterWeeklyMaintenanceWindow.java @@ -0,0 +1,869 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
    + * Time window specified for weekly operations.
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow} + */ +public final class ClusterWeeklyMaintenanceWindow extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow) + ClusterWeeklyMaintenanceWindowOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClusterWeeklyMaintenanceWindow.newBuilder() to construct. + private ClusterWeeklyMaintenanceWindow( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ClusterWeeklyMaintenanceWindow() { + day_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ClusterWeeklyMaintenanceWindow(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ClusterWeeklyMaintenanceWindow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ClusterWeeklyMaintenanceWindow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow.class, + com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow.Builder.class); + } + + private int bitField0_; + public static final int DAY_FIELD_NUMBER = 1; + private int day_ = 0; + /** + * + * + *
    +   * Allows to define schedule that runs specified day of the week.
    +   * 
    + * + * .google.type.DayOfWeek day = 1; + * + * @return The enum numeric value on the wire for day. + */ + @java.lang.Override + public int getDayValue() { + return day_; + } + /** + * + * + *
    +   * Allows to define schedule that runs specified day of the week.
    +   * 
    + * + * .google.type.DayOfWeek day = 1; + * + * @return The day. + */ + @java.lang.Override + public com.google.type.DayOfWeek getDay() { + com.google.type.DayOfWeek result = com.google.type.DayOfWeek.forNumber(day_); + return result == null ? com.google.type.DayOfWeek.UNRECOGNIZED : result; + } + + public static final int START_TIME_FIELD_NUMBER = 2; + private com.google.type.TimeOfDay startTime_; + /** + * + * + *
    +   * Start time of the window in UTC.
    +   * 
    + * + * .google.type.TimeOfDay start_time = 2; + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * Start time of the window in UTC.
    +   * 
    + * + * .google.type.TimeOfDay start_time = 2; + * + * @return The startTime. + */ + @java.lang.Override + public com.google.type.TimeOfDay getStartTime() { + return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; + } + /** + * + * + *
    +   * Start time of the window in UTC.
    +   * 
    + * + * .google.type.TimeOfDay start_time = 2; + */ + @java.lang.Override + public com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (day_ != com.google.type.DayOfWeek.DAY_OF_WEEK_UNSPECIFIED.getNumber()) { + output.writeEnum(1, day_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getStartTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (day_ != com.google.type.DayOfWeek.DAY_OF_WEEK_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, day_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow other = + (com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow) obj; + + if (day_ != other.day_) return false; + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (!getUnknownFields().equals(other.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) + DAY_FIELD_NUMBER; + hash = (53 * hash) + day_; + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Time window specified for weekly operations.
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow) + com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ClusterWeeklyMaintenanceWindow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ClusterWeeklyMaintenanceWindow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow.class, + com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow.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(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + day_ = 0; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ClusterWeeklyMaintenanceWindow_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow build() { + com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow buildPartial() { + com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow result = + new com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.day_ = day_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.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.redis.cluster.v1.ClusterWeeklyMaintenanceWindow) { + return mergeFrom((com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow other) { + if (other + == com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow.getDefaultInstance()) + return this; + if (other.day_ != 0) { + setDayValue(other.getDayValue()); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + day_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage(getStartTimeFieldBuilder().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 day_ = 0; + /** + * + * + *
    +     * Allows to define schedule that runs specified day of the week.
    +     * 
    + * + * .google.type.DayOfWeek day = 1; + * + * @return The enum numeric value on the wire for day. + */ + @java.lang.Override + public int getDayValue() { + return day_; + } + /** + * + * + *
    +     * Allows to define schedule that runs specified day of the week.
    +     * 
    + * + * .google.type.DayOfWeek day = 1; + * + * @param value The enum numeric value on the wire for day to set. + * @return This builder for chaining. + */ + public Builder setDayValue(int value) { + day_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Allows to define schedule that runs specified day of the week.
    +     * 
    + * + * .google.type.DayOfWeek day = 1; + * + * @return The day. + */ + @java.lang.Override + public com.google.type.DayOfWeek getDay() { + com.google.type.DayOfWeek result = com.google.type.DayOfWeek.forNumber(day_); + return result == null ? com.google.type.DayOfWeek.UNRECOGNIZED : result; + } + /** + * + * + *
    +     * Allows to define schedule that runs specified day of the week.
    +     * 
    + * + * .google.type.DayOfWeek day = 1; + * + * @param value The day to set. + * @return This builder for chaining. + */ + public Builder setDay(com.google.type.DayOfWeek value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + day_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Allows to define schedule that runs specified day of the week.
    +     * 
    + * + * .google.type.DayOfWeek day = 1; + * + * @return This builder for chaining. + */ + public Builder clearDay() { + bitField0_ = (bitField0_ & ~0x00000001); + day_ = 0; + onChanged(); + return this; + } + + private com.google.type.TimeOfDay startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder> + startTimeBuilder_; + /** + * + * + *
    +     * Start time of the window in UTC.
    +     * 
    + * + * .google.type.TimeOfDay start_time = 2; + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * Start time of the window in UTC.
    +     * 
    + * + * .google.type.TimeOfDay start_time = 2; + * + * @return The startTime. + */ + public com.google.type.TimeOfDay getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Start time of the window in UTC.
    +     * 
    + * + * .google.type.TimeOfDay start_time = 2; + */ + public Builder setStartTime(com.google.type.TimeOfDay value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Start time of the window in UTC.
    +     * 
    + * + * .google.type.TimeOfDay start_time = 2; + */ + public Builder setStartTime(com.google.type.TimeOfDay.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Start time of the window in UTC.
    +     * 
    + * + * .google.type.TimeOfDay start_time = 2; + */ + public Builder mergeStartTime(com.google.type.TimeOfDay value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && startTime_ != null + && startTime_ != com.google.type.TimeOfDay.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Start time of the window in UTC.
    +     * 
    + * + * .google.type.TimeOfDay start_time = 2; + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000002); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Start time of the window in UTC.
    +     * 
    + * + * .google.type.TimeOfDay start_time = 2; + */ + public com.google.type.TimeOfDay.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Start time of the window in UTC.
    +     * 
    + * + * .google.type.TimeOfDay start_time = 2; + */ + public com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
    +     * Start time of the window in UTC.
    +     * 
    + * + * .google.type.TimeOfDay start_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow) + private static final com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow(); + } + + public static com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterWeeklyMaintenanceWindow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterWeeklyMaintenanceWindowOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterWeeklyMaintenanceWindowOrBuilder.java new file mode 100644 index 000000000000..c441ed91746d --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterWeeklyMaintenanceWindowOrBuilder.java @@ -0,0 +1,86 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +public interface ClusterWeeklyMaintenanceWindowOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.ClusterWeeklyMaintenanceWindow) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Allows to define schedule that runs specified day of the week.
    +   * 
    + * + * .google.type.DayOfWeek day = 1; + * + * @return The enum numeric value on the wire for day. + */ + int getDayValue(); + /** + * + * + *
    +   * Allows to define schedule that runs specified day of the week.
    +   * 
    + * + * .google.type.DayOfWeek day = 1; + * + * @return The day. + */ + com.google.type.DayOfWeek getDay(); + + /** + * + * + *
    +   * Start time of the window in UTC.
    +   * 
    + * + * .google.type.TimeOfDay start_time = 2; + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
    +   * Start time of the window in UTC.
    +   * 
    + * + * .google.type.TimeOfDay start_time = 2; + * + * @return The startTime. + */ + com.google.type.TimeOfDay getStartTime(); + /** + * + * + *
    +   * Start time of the window in UTC.
    +   * 
    + * + * .google.type.TimeOfDay start_time = 2; + */ + com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ConnectionDetail.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ConnectionDetail.java new file mode 100644 index 000000000000..08a94930f218 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ConnectionDetail.java @@ -0,0 +1,1143 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
    + * Detailed information of each PSC connection.
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.ConnectionDetail} + */ +public final class ConnectionDetail extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.ConnectionDetail) + ConnectionDetailOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConnectionDetail.newBuilder() to construct. + private ConnectionDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConnectionDetail() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConnectionDetail(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ConnectionDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ConnectionDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ConnectionDetail.class, + com.google.cloud.redis.cluster.v1.ConnectionDetail.Builder.class); + } + + private int connectionCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object connection_; + + public enum ConnectionCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PSC_AUTO_CONNECTION(1), + PSC_CONNECTION(2), + CONNECTION_NOT_SET(0); + private final int value; + + private ConnectionCase(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 ConnectionCase valueOf(int value) { + return forNumber(value); + } + + public static ConnectionCase forNumber(int value) { + switch (value) { + case 1: + return PSC_AUTO_CONNECTION; + case 2: + return PSC_CONNECTION; + case 0: + return CONNECTION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ConnectionCase getConnectionCase() { + return ConnectionCase.forNumber(connectionCase_); + } + + public static final int PSC_AUTO_CONNECTION_FIELD_NUMBER = 1; + /** + * + * + *
    +   * Detailed information of a PSC connection that is created through
    +   * service connectivity automation.
    +   * 
    + * + * .google.cloud.redis.cluster.v1.PscAutoConnection psc_auto_connection = 1; + * + * @return Whether the pscAutoConnection field is set. + */ + @java.lang.Override + public boolean hasPscAutoConnection() { + return connectionCase_ == 1; + } + /** + * + * + *
    +   * Detailed information of a PSC connection that is created through
    +   * service connectivity automation.
    +   * 
    + * + * .google.cloud.redis.cluster.v1.PscAutoConnection psc_auto_connection = 1; + * + * @return The pscAutoConnection. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.PscAutoConnection getPscAutoConnection() { + if (connectionCase_ == 1) { + return (com.google.cloud.redis.cluster.v1.PscAutoConnection) connection_; + } + return com.google.cloud.redis.cluster.v1.PscAutoConnection.getDefaultInstance(); + } + /** + * + * + *
    +   * Detailed information of a PSC connection that is created through
    +   * service connectivity automation.
    +   * 
    + * + * .google.cloud.redis.cluster.v1.PscAutoConnection psc_auto_connection = 1; + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.PscAutoConnectionOrBuilder + getPscAutoConnectionOrBuilder() { + if (connectionCase_ == 1) { + return (com.google.cloud.redis.cluster.v1.PscAutoConnection) connection_; + } + return com.google.cloud.redis.cluster.v1.PscAutoConnection.getDefaultInstance(); + } + + public static final int PSC_CONNECTION_FIELD_NUMBER = 2; + /** + * + * + *
    +   * Detailed information of a PSC connection that is created by the customer
    +   * who owns the cluster.
    +   * 
    + * + * .google.cloud.redis.cluster.v1.PscConnection psc_connection = 2; + * + * @return Whether the pscConnection field is set. + */ + @java.lang.Override + public boolean hasPscConnection() { + return connectionCase_ == 2; + } + /** + * + * + *
    +   * Detailed information of a PSC connection that is created by the customer
    +   * who owns the cluster.
    +   * 
    + * + * .google.cloud.redis.cluster.v1.PscConnection psc_connection = 2; + * + * @return The pscConnection. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.PscConnection getPscConnection() { + if (connectionCase_ == 2) { + return (com.google.cloud.redis.cluster.v1.PscConnection) connection_; + } + return com.google.cloud.redis.cluster.v1.PscConnection.getDefaultInstance(); + } + /** + * + * + *
    +   * Detailed information of a PSC connection that is created by the customer
    +   * who owns the cluster.
    +   * 
    + * + * .google.cloud.redis.cluster.v1.PscConnection psc_connection = 2; + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.PscConnectionOrBuilder getPscConnectionOrBuilder() { + if (connectionCase_ == 2) { + return (com.google.cloud.redis.cluster.v1.PscConnection) connection_; + } + return com.google.cloud.redis.cluster.v1.PscConnection.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 (connectionCase_ == 1) { + output.writeMessage(1, (com.google.cloud.redis.cluster.v1.PscAutoConnection) connection_); + } + if (connectionCase_ == 2) { + output.writeMessage(2, (com.google.cloud.redis.cluster.v1.PscConnection) connection_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (connectionCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.redis.cluster.v1.PscAutoConnection) connection_); + } + if (connectionCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.redis.cluster.v1.PscConnection) connection_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1.ConnectionDetail)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.ConnectionDetail other = + (com.google.cloud.redis.cluster.v1.ConnectionDetail) obj; + + if (!getConnectionCase().equals(other.getConnectionCase())) return false; + switch (connectionCase_) { + case 1: + if (!getPscAutoConnection().equals(other.getPscAutoConnection())) return false; + break; + case 2: + if (!getPscConnection().equals(other.getPscConnection())) 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 (connectionCase_) { + case 1: + hash = (37 * hash) + PSC_AUTO_CONNECTION_FIELD_NUMBER; + hash = (53 * hash) + getPscAutoConnection().hashCode(); + break; + case 2: + hash = (37 * hash) + PSC_CONNECTION_FIELD_NUMBER; + hash = (53 * hash) + getPscConnection().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.ConnectionDetail parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ConnectionDetail parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ConnectionDetail parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ConnectionDetail parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ConnectionDetail parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ConnectionDetail parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ConnectionDetail parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ConnectionDetail parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ConnectionDetail parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ConnectionDetail parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ConnectionDetail parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ConnectionDetail parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.redis.cluster.v1.ConnectionDetail prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Detailed information of each PSC connection.
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.ConnectionDetail} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.ConnectionDetail) + com.google.cloud.redis.cluster.v1.ConnectionDetailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ConnectionDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ConnectionDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ConnectionDetail.class, + com.google.cloud.redis.cluster.v1.ConnectionDetail.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.ConnectionDetail.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (pscAutoConnectionBuilder_ != null) { + pscAutoConnectionBuilder_.clear(); + } + if (pscConnectionBuilder_ != null) { + pscConnectionBuilder_.clear(); + } + connectionCase_ = 0; + connection_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ConnectionDetail_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ConnectionDetail getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.ConnectionDetail.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ConnectionDetail build() { + com.google.cloud.redis.cluster.v1.ConnectionDetail result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ConnectionDetail buildPartial() { + com.google.cloud.redis.cluster.v1.ConnectionDetail result = + new com.google.cloud.redis.cluster.v1.ConnectionDetail(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1.ConnectionDetail result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.redis.cluster.v1.ConnectionDetail result) { + result.connectionCase_ = connectionCase_; + result.connection_ = this.connection_; + if (connectionCase_ == 1 && pscAutoConnectionBuilder_ != null) { + result.connection_ = pscAutoConnectionBuilder_.build(); + } + if (connectionCase_ == 2 && pscConnectionBuilder_ != null) { + result.connection_ = pscConnectionBuilder_.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.redis.cluster.v1.ConnectionDetail) { + return mergeFrom((com.google.cloud.redis.cluster.v1.ConnectionDetail) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.ConnectionDetail other) { + if (other == com.google.cloud.redis.cluster.v1.ConnectionDetail.getDefaultInstance()) + return this; + switch (other.getConnectionCase()) { + case PSC_AUTO_CONNECTION: + { + mergePscAutoConnection(other.getPscAutoConnection()); + break; + } + case PSC_CONNECTION: + { + mergePscConnection(other.getPscConnection()); + break; + } + case CONNECTION_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( + getPscAutoConnectionFieldBuilder().getBuilder(), extensionRegistry); + connectionCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getPscConnectionFieldBuilder().getBuilder(), extensionRegistry); + connectionCase_ = 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 connectionCase_ = 0; + private java.lang.Object connection_; + + public ConnectionCase getConnectionCase() { + return ConnectionCase.forNumber(connectionCase_); + } + + public Builder clearConnection() { + connectionCase_ = 0; + connection_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.PscAutoConnection, + com.google.cloud.redis.cluster.v1.PscAutoConnection.Builder, + com.google.cloud.redis.cluster.v1.PscAutoConnectionOrBuilder> + pscAutoConnectionBuilder_; + /** + * + * + *
    +     * Detailed information of a PSC connection that is created through
    +     * service connectivity automation.
    +     * 
    + * + * .google.cloud.redis.cluster.v1.PscAutoConnection psc_auto_connection = 1; + * + * @return Whether the pscAutoConnection field is set. + */ + @java.lang.Override + public boolean hasPscAutoConnection() { + return connectionCase_ == 1; + } + /** + * + * + *
    +     * Detailed information of a PSC connection that is created through
    +     * service connectivity automation.
    +     * 
    + * + * .google.cloud.redis.cluster.v1.PscAutoConnection psc_auto_connection = 1; + * + * @return The pscAutoConnection. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.PscAutoConnection getPscAutoConnection() { + if (pscAutoConnectionBuilder_ == null) { + if (connectionCase_ == 1) { + return (com.google.cloud.redis.cluster.v1.PscAutoConnection) connection_; + } + return com.google.cloud.redis.cluster.v1.PscAutoConnection.getDefaultInstance(); + } else { + if (connectionCase_ == 1) { + return pscAutoConnectionBuilder_.getMessage(); + } + return com.google.cloud.redis.cluster.v1.PscAutoConnection.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Detailed information of a PSC connection that is created through
    +     * service connectivity automation.
    +     * 
    + * + * .google.cloud.redis.cluster.v1.PscAutoConnection psc_auto_connection = 1; + */ + public Builder setPscAutoConnection(com.google.cloud.redis.cluster.v1.PscAutoConnection value) { + if (pscAutoConnectionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connection_ = value; + onChanged(); + } else { + pscAutoConnectionBuilder_.setMessage(value); + } + connectionCase_ = 1; + return this; + } + /** + * + * + *
    +     * Detailed information of a PSC connection that is created through
    +     * service connectivity automation.
    +     * 
    + * + * .google.cloud.redis.cluster.v1.PscAutoConnection psc_auto_connection = 1; + */ + public Builder setPscAutoConnection( + com.google.cloud.redis.cluster.v1.PscAutoConnection.Builder builderForValue) { + if (pscAutoConnectionBuilder_ == null) { + connection_ = builderForValue.build(); + onChanged(); + } else { + pscAutoConnectionBuilder_.setMessage(builderForValue.build()); + } + connectionCase_ = 1; + return this; + } + /** + * + * + *
    +     * Detailed information of a PSC connection that is created through
    +     * service connectivity automation.
    +     * 
    + * + * .google.cloud.redis.cluster.v1.PscAutoConnection psc_auto_connection = 1; + */ + public Builder mergePscAutoConnection( + com.google.cloud.redis.cluster.v1.PscAutoConnection value) { + if (pscAutoConnectionBuilder_ == null) { + if (connectionCase_ == 1 + && connection_ + != com.google.cloud.redis.cluster.v1.PscAutoConnection.getDefaultInstance()) { + connection_ = + com.google.cloud.redis.cluster.v1.PscAutoConnection.newBuilder( + (com.google.cloud.redis.cluster.v1.PscAutoConnection) connection_) + .mergeFrom(value) + .buildPartial(); + } else { + connection_ = value; + } + onChanged(); + } else { + if (connectionCase_ == 1) { + pscAutoConnectionBuilder_.mergeFrom(value); + } else { + pscAutoConnectionBuilder_.setMessage(value); + } + } + connectionCase_ = 1; + return this; + } + /** + * + * + *
    +     * Detailed information of a PSC connection that is created through
    +     * service connectivity automation.
    +     * 
    + * + * .google.cloud.redis.cluster.v1.PscAutoConnection psc_auto_connection = 1; + */ + public Builder clearPscAutoConnection() { + if (pscAutoConnectionBuilder_ == null) { + if (connectionCase_ == 1) { + connectionCase_ = 0; + connection_ = null; + onChanged(); + } + } else { + if (connectionCase_ == 1) { + connectionCase_ = 0; + connection_ = null; + } + pscAutoConnectionBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * Detailed information of a PSC connection that is created through
    +     * service connectivity automation.
    +     * 
    + * + * .google.cloud.redis.cluster.v1.PscAutoConnection psc_auto_connection = 1; + */ + public com.google.cloud.redis.cluster.v1.PscAutoConnection.Builder + getPscAutoConnectionBuilder() { + return getPscAutoConnectionFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Detailed information of a PSC connection that is created through
    +     * service connectivity automation.
    +     * 
    + * + * .google.cloud.redis.cluster.v1.PscAutoConnection psc_auto_connection = 1; + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.PscAutoConnectionOrBuilder + getPscAutoConnectionOrBuilder() { + if ((connectionCase_ == 1) && (pscAutoConnectionBuilder_ != null)) { + return pscAutoConnectionBuilder_.getMessageOrBuilder(); + } else { + if (connectionCase_ == 1) { + return (com.google.cloud.redis.cluster.v1.PscAutoConnection) connection_; + } + return com.google.cloud.redis.cluster.v1.PscAutoConnection.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Detailed information of a PSC connection that is created through
    +     * service connectivity automation.
    +     * 
    + * + * .google.cloud.redis.cluster.v1.PscAutoConnection psc_auto_connection = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.PscAutoConnection, + com.google.cloud.redis.cluster.v1.PscAutoConnection.Builder, + com.google.cloud.redis.cluster.v1.PscAutoConnectionOrBuilder> + getPscAutoConnectionFieldBuilder() { + if (pscAutoConnectionBuilder_ == null) { + if (!(connectionCase_ == 1)) { + connection_ = com.google.cloud.redis.cluster.v1.PscAutoConnection.getDefaultInstance(); + } + pscAutoConnectionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.PscAutoConnection, + com.google.cloud.redis.cluster.v1.PscAutoConnection.Builder, + com.google.cloud.redis.cluster.v1.PscAutoConnectionOrBuilder>( + (com.google.cloud.redis.cluster.v1.PscAutoConnection) connection_, + getParentForChildren(), + isClean()); + connection_ = null; + } + connectionCase_ = 1; + onChanged(); + return pscAutoConnectionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.PscConnection, + com.google.cloud.redis.cluster.v1.PscConnection.Builder, + com.google.cloud.redis.cluster.v1.PscConnectionOrBuilder> + pscConnectionBuilder_; + /** + * + * + *
    +     * Detailed information of a PSC connection that is created by the customer
    +     * who owns the cluster.
    +     * 
    + * + * .google.cloud.redis.cluster.v1.PscConnection psc_connection = 2; + * + * @return Whether the pscConnection field is set. + */ + @java.lang.Override + public boolean hasPscConnection() { + return connectionCase_ == 2; + } + /** + * + * + *
    +     * Detailed information of a PSC connection that is created by the customer
    +     * who owns the cluster.
    +     * 
    + * + * .google.cloud.redis.cluster.v1.PscConnection psc_connection = 2; + * + * @return The pscConnection. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.PscConnection getPscConnection() { + if (pscConnectionBuilder_ == null) { + if (connectionCase_ == 2) { + return (com.google.cloud.redis.cluster.v1.PscConnection) connection_; + } + return com.google.cloud.redis.cluster.v1.PscConnection.getDefaultInstance(); + } else { + if (connectionCase_ == 2) { + return pscConnectionBuilder_.getMessage(); + } + return com.google.cloud.redis.cluster.v1.PscConnection.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Detailed information of a PSC connection that is created by the customer
    +     * who owns the cluster.
    +     * 
    + * + * .google.cloud.redis.cluster.v1.PscConnection psc_connection = 2; + */ + public Builder setPscConnection(com.google.cloud.redis.cluster.v1.PscConnection value) { + if (pscConnectionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connection_ = value; + onChanged(); + } else { + pscConnectionBuilder_.setMessage(value); + } + connectionCase_ = 2; + return this; + } + /** + * + * + *
    +     * Detailed information of a PSC connection that is created by the customer
    +     * who owns the cluster.
    +     * 
    + * + * .google.cloud.redis.cluster.v1.PscConnection psc_connection = 2; + */ + public Builder setPscConnection( + com.google.cloud.redis.cluster.v1.PscConnection.Builder builderForValue) { + if (pscConnectionBuilder_ == null) { + connection_ = builderForValue.build(); + onChanged(); + } else { + pscConnectionBuilder_.setMessage(builderForValue.build()); + } + connectionCase_ = 2; + return this; + } + /** + * + * + *
    +     * Detailed information of a PSC connection that is created by the customer
    +     * who owns the cluster.
    +     * 
    + * + * .google.cloud.redis.cluster.v1.PscConnection psc_connection = 2; + */ + public Builder mergePscConnection(com.google.cloud.redis.cluster.v1.PscConnection value) { + if (pscConnectionBuilder_ == null) { + if (connectionCase_ == 2 + && connection_ + != com.google.cloud.redis.cluster.v1.PscConnection.getDefaultInstance()) { + connection_ = + com.google.cloud.redis.cluster.v1.PscConnection.newBuilder( + (com.google.cloud.redis.cluster.v1.PscConnection) connection_) + .mergeFrom(value) + .buildPartial(); + } else { + connection_ = value; + } + onChanged(); + } else { + if (connectionCase_ == 2) { + pscConnectionBuilder_.mergeFrom(value); + } else { + pscConnectionBuilder_.setMessage(value); + } + } + connectionCase_ = 2; + return this; + } + /** + * + * + *
    +     * Detailed information of a PSC connection that is created by the customer
    +     * who owns the cluster.
    +     * 
    + * + * .google.cloud.redis.cluster.v1.PscConnection psc_connection = 2; + */ + public Builder clearPscConnection() { + if (pscConnectionBuilder_ == null) { + if (connectionCase_ == 2) { + connectionCase_ = 0; + connection_ = null; + onChanged(); + } + } else { + if (connectionCase_ == 2) { + connectionCase_ = 0; + connection_ = null; + } + pscConnectionBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * Detailed information of a PSC connection that is created by the customer
    +     * who owns the cluster.
    +     * 
    + * + * .google.cloud.redis.cluster.v1.PscConnection psc_connection = 2; + */ + public com.google.cloud.redis.cluster.v1.PscConnection.Builder getPscConnectionBuilder() { + return getPscConnectionFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Detailed information of a PSC connection that is created by the customer
    +     * who owns the cluster.
    +     * 
    + * + * .google.cloud.redis.cluster.v1.PscConnection psc_connection = 2; + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.PscConnectionOrBuilder getPscConnectionOrBuilder() { + if ((connectionCase_ == 2) && (pscConnectionBuilder_ != null)) { + return pscConnectionBuilder_.getMessageOrBuilder(); + } else { + if (connectionCase_ == 2) { + return (com.google.cloud.redis.cluster.v1.PscConnection) connection_; + } + return com.google.cloud.redis.cluster.v1.PscConnection.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Detailed information of a PSC connection that is created by the customer
    +     * who owns the cluster.
    +     * 
    + * + * .google.cloud.redis.cluster.v1.PscConnection psc_connection = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.PscConnection, + com.google.cloud.redis.cluster.v1.PscConnection.Builder, + com.google.cloud.redis.cluster.v1.PscConnectionOrBuilder> + getPscConnectionFieldBuilder() { + if (pscConnectionBuilder_ == null) { + if (!(connectionCase_ == 2)) { + connection_ = com.google.cloud.redis.cluster.v1.PscConnection.getDefaultInstance(); + } + pscConnectionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.PscConnection, + com.google.cloud.redis.cluster.v1.PscConnection.Builder, + com.google.cloud.redis.cluster.v1.PscConnectionOrBuilder>( + (com.google.cloud.redis.cluster.v1.PscConnection) connection_, + getParentForChildren(), + isClean()); + connection_ = null; + } + connectionCase_ = 2; + onChanged(); + return pscConnectionBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.ConnectionDetail) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.ConnectionDetail) + private static final com.google.cloud.redis.cluster.v1.ConnectionDetail DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.ConnectionDetail(); + } + + public static com.google.cloud.redis.cluster.v1.ConnectionDetail getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectionDetail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ConnectionDetail getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ConnectionDetailOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ConnectionDetailOrBuilder.java new file mode 100644 index 000000000000..fcb7733be55b --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ConnectionDetailOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +public interface ConnectionDetailOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.ConnectionDetail) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Detailed information of a PSC connection that is created through
    +   * service connectivity automation.
    +   * 
    + * + * .google.cloud.redis.cluster.v1.PscAutoConnection psc_auto_connection = 1; + * + * @return Whether the pscAutoConnection field is set. + */ + boolean hasPscAutoConnection(); + /** + * + * + *
    +   * Detailed information of a PSC connection that is created through
    +   * service connectivity automation.
    +   * 
    + * + * .google.cloud.redis.cluster.v1.PscAutoConnection psc_auto_connection = 1; + * + * @return The pscAutoConnection. + */ + com.google.cloud.redis.cluster.v1.PscAutoConnection getPscAutoConnection(); + /** + * + * + *
    +   * Detailed information of a PSC connection that is created through
    +   * service connectivity automation.
    +   * 
    + * + * .google.cloud.redis.cluster.v1.PscAutoConnection psc_auto_connection = 1; + */ + com.google.cloud.redis.cluster.v1.PscAutoConnectionOrBuilder getPscAutoConnectionOrBuilder(); + + /** + * + * + *
    +   * Detailed information of a PSC connection that is created by the customer
    +   * who owns the cluster.
    +   * 
    + * + * .google.cloud.redis.cluster.v1.PscConnection psc_connection = 2; + * + * @return Whether the pscConnection field is set. + */ + boolean hasPscConnection(); + /** + * + * + *
    +   * Detailed information of a PSC connection that is created by the customer
    +   * who owns the cluster.
    +   * 
    + * + * .google.cloud.redis.cluster.v1.PscConnection psc_connection = 2; + * + * @return The pscConnection. + */ + com.google.cloud.redis.cluster.v1.PscConnection getPscConnection(); + /** + * + * + *
    +   * Detailed information of a PSC connection that is created by the customer
    +   * who owns the cluster.
    +   * 
    + * + * .google.cloud.redis.cluster.v1.PscConnection psc_connection = 2; + */ + com.google.cloud.redis.cluster.v1.PscConnectionOrBuilder getPscConnectionOrBuilder(); + + com.google.cloud.redis.cluster.v1.ConnectionDetail.ConnectionCase getConnectionCase(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ConnectionType.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ConnectionType.java new file mode 100644 index 000000000000..455f395abeed --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ConnectionType.java @@ -0,0 +1,201 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
    + * Type of a PSC connection, for cluster access purpose.
    + * 
    + * + * Protobuf enum {@code google.cloud.redis.cluster.v1.ConnectionType} + */ +public enum ConnectionType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +   * Cluster endpoint Type is not set
    +   * 
    + * + * CONNECTION_TYPE_UNSPECIFIED = 0; + */ + CONNECTION_TYPE_UNSPECIFIED(0), + /** + * + * + *
    +   * Cluster endpoint that will be used as for cluster topology discovery.
    +   * 
    + * + * CONNECTION_TYPE_DISCOVERY = 1; + */ + CONNECTION_TYPE_DISCOVERY(1), + /** + * + * + *
    +   * Cluster endpoint that will be used as primary endpoint to access primary.
    +   * 
    + * + * CONNECTION_TYPE_PRIMARY = 2; + */ + CONNECTION_TYPE_PRIMARY(2), + /** + * + * + *
    +   * Cluster endpoint that will be used as reader endpoint to access replicas.
    +   * 
    + * + * CONNECTION_TYPE_READER = 3; + */ + CONNECTION_TYPE_READER(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +   * Cluster endpoint Type is not set
    +   * 
    + * + * CONNECTION_TYPE_UNSPECIFIED = 0; + */ + public static final int CONNECTION_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +   * Cluster endpoint that will be used as for cluster topology discovery.
    +   * 
    + * + * CONNECTION_TYPE_DISCOVERY = 1; + */ + public static final int CONNECTION_TYPE_DISCOVERY_VALUE = 1; + /** + * + * + *
    +   * Cluster endpoint that will be used as primary endpoint to access primary.
    +   * 
    + * + * CONNECTION_TYPE_PRIMARY = 2; + */ + public static final int CONNECTION_TYPE_PRIMARY_VALUE = 2; + /** + * + * + *
    +   * Cluster endpoint that will be used as reader endpoint to access replicas.
    +   * 
    + * + * CONNECTION_TYPE_READER = 3; + */ + public static final int CONNECTION_TYPE_READER_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 ConnectionType 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 ConnectionType forNumber(int value) { + switch (value) { + case 0: + return CONNECTION_TYPE_UNSPECIFIED; + case 1: + return CONNECTION_TYPE_DISCOVERY; + case 2: + return CONNECTION_TYPE_PRIMARY; + case 3: + return CONNECTION_TYPE_READER; + 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 ConnectionType findValueByNumber(int number) { + return ConnectionType.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.redis.cluster.v1.CloudRedisClusterProto.getDescriptor() + .getEnumTypes() + .get(4); + } + + private static final ConnectionType[] VALUES = values(); + + public static ConnectionType 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 ConnectionType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.redis.cluster.v1.ConnectionType) +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CrossClusterReplicationConfig.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CrossClusterReplicationConfig.java new file mode 100644 index 000000000000..aa23da412b20 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CrossClusterReplicationConfig.java @@ -0,0 +1,4934 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
    + * Cross cluster replication config.
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.CrossClusterReplicationConfig} + */ +public final class CrossClusterReplicationConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.CrossClusterReplicationConfig) + CrossClusterReplicationConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use CrossClusterReplicationConfig.newBuilder() to construct. + private CrossClusterReplicationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CrossClusterReplicationConfig() { + clusterRole_ = 0; + secondaryClusters_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CrossClusterReplicationConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_CrossClusterReplicationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_CrossClusterReplicationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.class, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Builder.class); + } + + /** + * + * + *
    +   * The role of the cluster in cross cluster replication.
    +   * 
    + * + * Protobuf enum {@code google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.ClusterRole} + */ + public enum ClusterRole implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Cluster role is not set.
    +     * The behavior is equivalent to NONE.
    +     * 
    + * + * CLUSTER_ROLE_UNSPECIFIED = 0; + */ + CLUSTER_ROLE_UNSPECIFIED(0), + /** + * + * + *
    +     * This cluster does not participate in cross cluster replication. It is an
    +     * independent cluster and does not replicate to or from any other clusters.
    +     * 
    + * + * NONE = 1; + */ + NONE(1), + /** + * + * + *
    +     * A cluster that allows both reads and writes. Any data written to this
    +     * cluster is also replicated to the attached secondary clusters.
    +     * 
    + * + * PRIMARY = 2; + */ + PRIMARY(2), + /** + * + * + *
    +     * A cluster that allows only reads and replicates data from a primary
    +     * cluster.
    +     * 
    + * + * SECONDARY = 3; + */ + SECONDARY(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Cluster role is not set.
    +     * The behavior is equivalent to NONE.
    +     * 
    + * + * CLUSTER_ROLE_UNSPECIFIED = 0; + */ + public static final int CLUSTER_ROLE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +     * This cluster does not participate in cross cluster replication. It is an
    +     * independent cluster and does not replicate to or from any other clusters.
    +     * 
    + * + * NONE = 1; + */ + public static final int NONE_VALUE = 1; + /** + * + * + *
    +     * A cluster that allows both reads and writes. Any data written to this
    +     * cluster is also replicated to the attached secondary clusters.
    +     * 
    + * + * PRIMARY = 2; + */ + public static final int PRIMARY_VALUE = 2; + /** + * + * + *
    +     * A cluster that allows only reads and replicates data from a primary
    +     * cluster.
    +     * 
    + * + * SECONDARY = 3; + */ + public static final int SECONDARY_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 ClusterRole 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 ClusterRole forNumber(int value) { + switch (value) { + case 0: + return CLUSTER_ROLE_UNSPECIFIED; + case 1: + return NONE; + case 2: + return PRIMARY; + case 3: + return SECONDARY; + 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 ClusterRole findValueByNumber(int number) { + return ClusterRole.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.redis.cluster.v1.CrossClusterReplicationConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ClusterRole[] VALUES = values(); + + public static ClusterRole 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 ClusterRole(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.ClusterRole) + } + + public interface RemoteClusterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * The full resource path of the remote cluster in
    +     * the format: projects/<project>/locations/<region>/clusters/<cluster-id>
    +     * 
    + * + * string cluster = 1 [(.google.api.resource_reference) = { ... } + * + * @return The cluster. + */ + java.lang.String getCluster(); + /** + * + * + *
    +     * The full resource path of the remote cluster in
    +     * the format: projects/<project>/locations/<region>/clusters/<cluster-id>
    +     * 
    + * + * string cluster = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for cluster. + */ + com.google.protobuf.ByteString getClusterBytes(); + + /** + * + * + *
    +     * Output only. The unique identifier of the remote cluster.
    +     * 
    + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + java.lang.String getUid(); + /** + * + * + *
    +     * Output only. The unique identifier of the remote cluster.
    +     * 
    + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); + } + /** + * + * + *
    +   * Details of the remote cluster associated with this cluster in a cross
    +   * cluster replication setup.
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster} + */ + public static final class RemoteCluster extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster) + RemoteClusterOrBuilder { + private static final long serialVersionUID = 0L; + // Use RemoteCluster.newBuilder() to construct. + private RemoteCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RemoteCluster() { + cluster_ = ""; + uid_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RemoteCluster(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_CrossClusterReplicationConfig_RemoteCluster_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_CrossClusterReplicationConfig_RemoteCluster_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster.class, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster.Builder + .class); + } + + public static final int CLUSTER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object cluster_ = ""; + /** + * + * + *
    +     * The full resource path of the remote cluster in
    +     * the format: projects/<project>/locations/<region>/clusters/<cluster-id>
    +     * 
    + * + * string cluster = 1 [(.google.api.resource_reference) = { ... } + * + * @return The cluster. + */ + @java.lang.Override + public java.lang.String getCluster() { + java.lang.Object ref = cluster_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cluster_ = s; + return s; + } + } + /** + * + * + *
    +     * The full resource path of the remote cluster in
    +     * the format: projects/<project>/locations/<region>/clusters/<cluster-id>
    +     * 
    + * + * string cluster = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for cluster. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterBytes() { + java.lang.Object ref = cluster_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + /** + * + * + *
    +     * Output only. The unique identifier of the remote cluster.
    +     * 
    + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } + } + /** + * + * + *
    +     * Output only. The unique identifier of the remote cluster.
    +     * 
    + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = 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(cluster_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cluster_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uid_); + } + 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(cluster_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cluster_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uid_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster other = + (com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster) obj; + + if (!getCluster().equals(other.getCluster())) return false; + if (!getUid().equals(other.getUid())) return false; + if (!getUnknownFields().equals(other.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) + CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getCluster().hashCode(); + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 of the remote cluster associated with this cluster in a cross
    +     * cluster replication setup.
    +     * 
    + * + * Protobuf type {@code + * google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster) + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteClusterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_CrossClusterReplicationConfig_RemoteCluster_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_CrossClusterReplicationConfig_RemoteCluster_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster.class, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + .Builder.class); + } + + // Construct using + // com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + cluster_ = ""; + uid_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_CrossClusterReplicationConfig_RemoteCluster_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster build() { + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + buildPartial() { + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster result = + new com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.cluster_ = cluster_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.uid_ = uid_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster) { + return mergeFrom( + (com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster other) { + if (other + == com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + .getDefaultInstance()) return this; + if (!other.getCluster().isEmpty()) { + cluster_ = other.cluster_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + 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: + { + cluster_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + uid_ = 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 cluster_ = ""; + /** + * + * + *
    +       * The full resource path of the remote cluster in
    +       * the format: projects/<project>/locations/<region>/clusters/<cluster-id>
    +       * 
    + * + * string cluster = 1 [(.google.api.resource_reference) = { ... } + * + * @return The cluster. + */ + public java.lang.String getCluster() { + java.lang.Object ref = cluster_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cluster_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * The full resource path of the remote cluster in
    +       * the format: projects/<project>/locations/<region>/clusters/<cluster-id>
    +       * 
    + * + * string cluster = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for cluster. + */ + public com.google.protobuf.ByteString getClusterBytes() { + java.lang.Object ref = cluster_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * The full resource path of the remote cluster in
    +       * the format: projects/<project>/locations/<region>/clusters/<cluster-id>
    +       * 
    + * + * string cluster = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The cluster to set. + * @return This builder for chaining. + */ + public Builder setCluster(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cluster_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +       * The full resource path of the remote cluster in
    +       * the format: projects/<project>/locations/<region>/clusters/<cluster-id>
    +       * 
    + * + * string cluster = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearCluster() { + cluster_ = getDefaultInstance().getCluster(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +       * The full resource path of the remote cluster in
    +       * the format: projects/<project>/locations/<region>/clusters/<cluster-id>
    +       * 
    + * + * string cluster = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for cluster to set. + * @return This builder for chaining. + */ + public Builder setClusterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cluster_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object uid_ = ""; + /** + * + * + *
    +       * Output only. The unique identifier of the remote cluster.
    +       * 
    + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * Output only. The unique identifier of the remote cluster.
    +       * 
    + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * Output only. The unique identifier of the remote cluster.
    +       * 
    + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uid_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +       * Output only. The unique identifier of the remote cluster.
    +       * 
    + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +       * Output only. The unique identifier of the remote cluster.
    +       * 
    + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = 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.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster) + private static final com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig + .RemoteCluster + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster(); + } + + public static com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RemoteCluster parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface MembershipOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Output only. The primary cluster that acts as the source of replication
    +     * for the secondary clusters.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the primaryCluster field is set. + */ + boolean hasPrimaryCluster(); + /** + * + * + *
    +     * Output only. The primary cluster that acts as the source of replication
    +     * for the secondary clusters.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The primaryCluster. + */ + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + getPrimaryCluster(); + /** + * + * + *
    +     * Output only. The primary cluster that acts as the source of replication
    +     * for the secondary clusters.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteClusterOrBuilder + getPrimaryClusterOrBuilder(); + + /** + * + * + *
    +     * Output only. The list of secondary clusters replicating from the primary
    +     * cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getSecondaryClustersList(); + /** + * + * + *
    +     * Output only. The list of secondary clusters replicating from the primary
    +     * cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + getSecondaryClusters(int index); + /** + * + * + *
    +     * Output only. The list of secondary clusters replicating from the primary
    +     * cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getSecondaryClustersCount(); + /** + * + * + *
    +     * Output only. The list of secondary clusters replicating from the primary
    +     * cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig + .RemoteClusterOrBuilder> + getSecondaryClustersOrBuilderList(); + /** + * + * + *
    +     * Output only. The list of secondary clusters replicating from the primary
    +     * cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteClusterOrBuilder + getSecondaryClustersOrBuilder(int index); + } + /** + * + * + *
    +   * An output only view of all the member clusters participating in the cross
    +   * cluster replication.
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership} + */ + public static final class Membership extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership) + MembershipOrBuilder { + private static final long serialVersionUID = 0L; + // Use Membership.newBuilder() to construct. + private Membership(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Membership() { + secondaryClusters_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Membership(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_CrossClusterReplicationConfig_Membership_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_CrossClusterReplicationConfig_Membership_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership.class, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership.Builder + .class); + } + + private int bitField0_; + public static final int PRIMARY_CLUSTER_FIELD_NUMBER = 1; + private com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + primaryCluster_; + /** + * + * + *
    +     * Output only. The primary cluster that acts as the source of replication
    +     * for the secondary clusters.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the primaryCluster field is set. + */ + @java.lang.Override + public boolean hasPrimaryCluster() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +     * Output only. The primary cluster that acts as the source of replication
    +     * for the secondary clusters.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The primaryCluster. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + getPrimaryCluster() { + return primaryCluster_ == null + ? com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + .getDefaultInstance() + : primaryCluster_; + } + /** + * + * + *
    +     * Output only. The primary cluster that acts as the source of replication
    +     * for the secondary clusters.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteClusterOrBuilder + getPrimaryClusterOrBuilder() { + return primaryCluster_ == null + ? com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + .getDefaultInstance() + : primaryCluster_; + } + + public static final int SECONDARY_CLUSTERS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster> + secondaryClusters_; + /** + * + * + *
    +     * Output only. The list of secondary clusters replicating from the primary
    +     * cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster> + getSecondaryClustersList() { + return secondaryClusters_; + } + /** + * + * + *
    +     * Output only. The list of secondary clusters replicating from the primary
    +     * cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig + .RemoteClusterOrBuilder> + getSecondaryClustersOrBuilderList() { + return secondaryClusters_; + } + /** + * + * + *
    +     * Output only. The list of secondary clusters replicating from the primary
    +     * cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getSecondaryClustersCount() { + return secondaryClusters_.size(); + } + /** + * + * + *
    +     * Output only. The list of secondary clusters replicating from the primary
    +     * cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + getSecondaryClusters(int index) { + return secondaryClusters_.get(index); + } + /** + * + * + *
    +     * Output only. The list of secondary clusters replicating from the primary
    +     * cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteClusterOrBuilder + getSecondaryClustersOrBuilder(int index) { + return secondaryClusters_.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, getPrimaryCluster()); + } + for (int i = 0; i < secondaryClusters_.size(); i++) { + output.writeMessage(2, secondaryClusters_.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, getPrimaryCluster()); + } + for (int i = 0; i < secondaryClusters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, secondaryClusters_.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.redis.cluster.v1.CrossClusterReplicationConfig.Membership)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership other = + (com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership) obj; + + if (hasPrimaryCluster() != other.hasPrimaryCluster()) return false; + if (hasPrimaryCluster()) { + if (!getPrimaryCluster().equals(other.getPrimaryCluster())) return false; + } + if (!getSecondaryClustersList().equals(other.getSecondaryClustersList())) return false; + if (!getUnknownFields().equals(other.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 (hasPrimaryCluster()) { + hash = (37 * hash) + PRIMARY_CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getPrimaryCluster().hashCode(); + } + if (getSecondaryClustersCount() > 0) { + hash = (37 * hash) + SECONDARY_CLUSTERS_FIELD_NUMBER; + hash = (53 * hash) + getSecondaryClustersList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 output only view of all the member clusters participating in the cross
    +     * cluster replication.
    +     * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership) + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.MembershipOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_CrossClusterReplicationConfig_Membership_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_CrossClusterReplicationConfig_Membership_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership.class, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership.Builder + .class); + } + + // Construct using + // com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPrimaryClusterFieldBuilder(); + getSecondaryClustersFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + primaryCluster_ = null; + if (primaryClusterBuilder_ != null) { + primaryClusterBuilder_.dispose(); + primaryClusterBuilder_ = null; + } + if (secondaryClustersBuilder_ == null) { + secondaryClusters_ = java.util.Collections.emptyList(); + } else { + secondaryClusters_ = null; + secondaryClustersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_CrossClusterReplicationConfig_Membership_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership build() { + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership + buildPartial() { + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership result = + new com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership result) { + if (secondaryClustersBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + secondaryClusters_ = java.util.Collections.unmodifiableList(secondaryClusters_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.secondaryClusters_ = secondaryClusters_; + } else { + result.secondaryClusters_ = secondaryClustersBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.primaryCluster_ = + primaryClusterBuilder_ == null ? primaryCluster_ : primaryClusterBuilder_.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.redis.cluster.v1.CrossClusterReplicationConfig.Membership) { + return mergeFrom( + (com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership other) { + if (other + == com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership + .getDefaultInstance()) return this; + if (other.hasPrimaryCluster()) { + mergePrimaryCluster(other.getPrimaryCluster()); + } + if (secondaryClustersBuilder_ == null) { + if (!other.secondaryClusters_.isEmpty()) { + if (secondaryClusters_.isEmpty()) { + secondaryClusters_ = other.secondaryClusters_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSecondaryClustersIsMutable(); + secondaryClusters_.addAll(other.secondaryClusters_); + } + onChanged(); + } + } else { + if (!other.secondaryClusters_.isEmpty()) { + if (secondaryClustersBuilder_.isEmpty()) { + secondaryClustersBuilder_.dispose(); + secondaryClustersBuilder_ = null; + secondaryClusters_ = other.secondaryClusters_; + bitField0_ = (bitField0_ & ~0x00000002); + secondaryClustersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSecondaryClustersFieldBuilder() + : null; + } else { + secondaryClustersBuilder_.addAllMessages(other.secondaryClusters_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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( + getPrimaryClusterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster m = + input.readMessage( + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig + .RemoteCluster.parser(), + extensionRegistry); + if (secondaryClustersBuilder_ == null) { + ensureSecondaryClustersIsMutable(); + secondaryClusters_.add(m); + } else { + secondaryClustersBuilder_.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.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + primaryCluster_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster.Builder, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig + .RemoteClusterOrBuilder> + primaryClusterBuilder_; + /** + * + * + *
    +       * Output only. The primary cluster that acts as the source of replication
    +       * for the secondary clusters.
    +       * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the primaryCluster field is set. + */ + public boolean hasPrimaryCluster() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +       * Output only. The primary cluster that acts as the source of replication
    +       * for the secondary clusters.
    +       * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The primaryCluster. + */ + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + getPrimaryCluster() { + if (primaryClusterBuilder_ == null) { + return primaryCluster_ == null + ? com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + .getDefaultInstance() + : primaryCluster_; + } else { + return primaryClusterBuilder_.getMessage(); + } + } + /** + * + * + *
    +       * Output only. The primary cluster that acts as the source of replication
    +       * for the secondary clusters.
    +       * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPrimaryCluster( + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster value) { + if (primaryClusterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + primaryCluster_ = value; + } else { + primaryClusterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +       * Output only. The primary cluster that acts as the source of replication
    +       * for the secondary clusters.
    +       * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPrimaryCluster( + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster.Builder + builderForValue) { + if (primaryClusterBuilder_ == null) { + primaryCluster_ = builderForValue.build(); + } else { + primaryClusterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +       * Output only. The primary cluster that acts as the source of replication
    +       * for the secondary clusters.
    +       * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergePrimaryCluster( + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster value) { + if (primaryClusterBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && primaryCluster_ != null + && primaryCluster_ + != com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + .getDefaultInstance()) { + getPrimaryClusterBuilder().mergeFrom(value); + } else { + primaryCluster_ = value; + } + } else { + primaryClusterBuilder_.mergeFrom(value); + } + if (primaryCluster_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
    +       * Output only. The primary cluster that acts as the source of replication
    +       * for the secondary clusters.
    +       * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPrimaryCluster() { + bitField0_ = (bitField0_ & ~0x00000001); + primaryCluster_ = null; + if (primaryClusterBuilder_ != null) { + primaryClusterBuilder_.dispose(); + primaryClusterBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +       * Output only. The primary cluster that acts as the source of replication
    +       * for the secondary clusters.
    +       * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster.Builder + getPrimaryClusterBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPrimaryClusterFieldBuilder().getBuilder(); + } + /** + * + * + *
    +       * Output only. The primary cluster that acts as the source of replication
    +       * for the secondary clusters.
    +       * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteClusterOrBuilder + getPrimaryClusterOrBuilder() { + if (primaryClusterBuilder_ != null) { + return primaryClusterBuilder_.getMessageOrBuilder(); + } else { + return primaryCluster_ == null + ? com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + .getDefaultInstance() + : primaryCluster_; + } + } + /** + * + * + *
    +       * Output only. The primary cluster that acts as the source of replication
    +       * for the secondary clusters.
    +       * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster.Builder, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig + .RemoteClusterOrBuilder> + getPrimaryClusterFieldBuilder() { + if (primaryClusterBuilder_ == null) { + primaryClusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + .Builder, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig + .RemoteClusterOrBuilder>( + getPrimaryCluster(), getParentForChildren(), isClean()); + primaryCluster_ = null; + } + return primaryClusterBuilder_; + } + + private java.util.List< + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster> + secondaryClusters_ = java.util.Collections.emptyList(); + + private void ensureSecondaryClustersIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + secondaryClusters_ = + new java.util.ArrayList< + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster>( + secondaryClusters_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster.Builder, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig + .RemoteClusterOrBuilder> + secondaryClustersBuilder_; + + /** + * + * + *
    +       * Output only. The list of secondary clusters replicating from the primary
    +       * cluster.
    +       * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster> + getSecondaryClustersList() { + if (secondaryClustersBuilder_ == null) { + return java.util.Collections.unmodifiableList(secondaryClusters_); + } else { + return secondaryClustersBuilder_.getMessageList(); + } + } + /** + * + * + *
    +       * Output only. The list of secondary clusters replicating from the primary
    +       * cluster.
    +       * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getSecondaryClustersCount() { + if (secondaryClustersBuilder_ == null) { + return secondaryClusters_.size(); + } else { + return secondaryClustersBuilder_.getCount(); + } + } + /** + * + * + *
    +       * Output only. The list of secondary clusters replicating from the primary
    +       * cluster.
    +       * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + getSecondaryClusters(int index) { + if (secondaryClustersBuilder_ == null) { + return secondaryClusters_.get(index); + } else { + return secondaryClustersBuilder_.getMessage(index); + } + } + /** + * + * + *
    +       * Output only. The list of secondary clusters replicating from the primary
    +       * cluster.
    +       * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSecondaryClusters( + int index, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster value) { + if (secondaryClustersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecondaryClustersIsMutable(); + secondaryClusters_.set(index, value); + onChanged(); + } else { + secondaryClustersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
    +       * Output only. The list of secondary clusters replicating from the primary
    +       * cluster.
    +       * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSecondaryClusters( + int index, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster.Builder + builderForValue) { + if (secondaryClustersBuilder_ == null) { + ensureSecondaryClustersIsMutable(); + secondaryClusters_.set(index, builderForValue.build()); + onChanged(); + } else { + secondaryClustersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +       * Output only. The list of secondary clusters replicating from the primary
    +       * cluster.
    +       * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSecondaryClusters( + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster value) { + if (secondaryClustersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecondaryClustersIsMutable(); + secondaryClusters_.add(value); + onChanged(); + } else { + secondaryClustersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
    +       * Output only. The list of secondary clusters replicating from the primary
    +       * cluster.
    +       * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSecondaryClusters( + int index, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster value) { + if (secondaryClustersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecondaryClustersIsMutable(); + secondaryClusters_.add(index, value); + onChanged(); + } else { + secondaryClustersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
    +       * Output only. The list of secondary clusters replicating from the primary
    +       * cluster.
    +       * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSecondaryClusters( + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster.Builder + builderForValue) { + if (secondaryClustersBuilder_ == null) { + ensureSecondaryClustersIsMutable(); + secondaryClusters_.add(builderForValue.build()); + onChanged(); + } else { + secondaryClustersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
    +       * Output only. The list of secondary clusters replicating from the primary
    +       * cluster.
    +       * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSecondaryClusters( + int index, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster.Builder + builderForValue) { + if (secondaryClustersBuilder_ == null) { + ensureSecondaryClustersIsMutable(); + secondaryClusters_.add(index, builderForValue.build()); + onChanged(); + } else { + secondaryClustersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +       * Output only. The list of secondary clusters replicating from the primary
    +       * cluster.
    +       * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllSecondaryClusters( + java.lang.Iterable< + ? extends + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster> + values) { + if (secondaryClustersBuilder_ == null) { + ensureSecondaryClustersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, secondaryClusters_); + onChanged(); + } else { + secondaryClustersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
    +       * Output only. The list of secondary clusters replicating from the primary
    +       * cluster.
    +       * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSecondaryClusters() { + if (secondaryClustersBuilder_ == null) { + secondaryClusters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + secondaryClustersBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +       * Output only. The list of secondary clusters replicating from the primary
    +       * cluster.
    +       * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeSecondaryClusters(int index) { + if (secondaryClustersBuilder_ == null) { + ensureSecondaryClustersIsMutable(); + secondaryClusters_.remove(index); + onChanged(); + } else { + secondaryClustersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
    +       * Output only. The list of secondary clusters replicating from the primary
    +       * cluster.
    +       * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster.Builder + getSecondaryClustersBuilder(int index) { + return getSecondaryClustersFieldBuilder().getBuilder(index); + } + /** + * + * + *
    +       * Output only. The list of secondary clusters replicating from the primary
    +       * cluster.
    +       * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteClusterOrBuilder + getSecondaryClustersOrBuilder(int index) { + if (secondaryClustersBuilder_ == null) { + return secondaryClusters_.get(index); + } else { + return secondaryClustersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
    +       * Output only. The list of secondary clusters replicating from the primary
    +       * cluster.
    +       * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig + .RemoteClusterOrBuilder> + getSecondaryClustersOrBuilderList() { + if (secondaryClustersBuilder_ != null) { + return secondaryClustersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(secondaryClusters_); + } + } + /** + * + * + *
    +       * Output only. The list of secondary clusters replicating from the primary
    +       * cluster.
    +       * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster.Builder + addSecondaryClustersBuilder() { + return getSecondaryClustersFieldBuilder() + .addBuilder( + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + .getDefaultInstance()); + } + /** + * + * + *
    +       * Output only. The list of secondary clusters replicating from the primary
    +       * cluster.
    +       * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster.Builder + addSecondaryClustersBuilder(int index) { + return getSecondaryClustersFieldBuilder() + .addBuilder( + index, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + .getDefaultInstance()); + } + /** + * + * + *
    +       * Output only. The list of secondary clusters replicating from the primary
    +       * cluster.
    +       * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster.Builder> + getSecondaryClustersBuilderList() { + return getSecondaryClustersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster.Builder, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig + .RemoteClusterOrBuilder> + getSecondaryClustersFieldBuilder() { + if (secondaryClustersBuilder_ == null) { + secondaryClustersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + .Builder, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig + .RemoteClusterOrBuilder>( + secondaryClusters_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + secondaryClusters_ = null; + } + return secondaryClustersBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership) + private static final com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership(); + } + + public static com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Membership parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int CLUSTER_ROLE_FIELD_NUMBER = 1; + private int clusterRole_ = 0; + /** + * + * + *
    +   * The role of the cluster in cross cluster replication.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.ClusterRole cluster_role = 1; + * + * + * @return The enum numeric value on the wire for clusterRole. + */ + @java.lang.Override + public int getClusterRoleValue() { + return clusterRole_; + } + /** + * + * + *
    +   * The role of the cluster in cross cluster replication.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.ClusterRole cluster_role = 1; + * + * + * @return The clusterRole. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.ClusterRole + getClusterRole() { + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.ClusterRole result = + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.ClusterRole.forNumber( + clusterRole_); + return result == null + ? com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.ClusterRole.UNRECOGNIZED + : result; + } + + public static final int PRIMARY_CLUSTER_FIELD_NUMBER = 2; + private com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + primaryCluster_; + /** + * + * + *
    +   * Details of the primary cluster that is used as the replication source for
    +   * this secondary cluster.
    +   *
    +   * This field is only set for a secondary cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 2; + * + * + * @return Whether the primaryCluster field is set. + */ + @java.lang.Override + public boolean hasPrimaryCluster() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * Details of the primary cluster that is used as the replication source for
    +   * this secondary cluster.
    +   *
    +   * This field is only set for a secondary cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 2; + * + * + * @return The primaryCluster. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + getPrimaryCluster() { + return primaryCluster_ == null + ? com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + .getDefaultInstance() + : primaryCluster_; + } + /** + * + * + *
    +   * Details of the primary cluster that is used as the replication source for
    +   * this secondary cluster.
    +   *
    +   * This field is only set for a secondary cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 2; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteClusterOrBuilder + getPrimaryClusterOrBuilder() { + return primaryCluster_ == null + ? com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + .getDefaultInstance() + : primaryCluster_; + } + + public static final int SECONDARY_CLUSTERS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster> + secondaryClusters_; + /** + * + * + *
    +   * List of secondary clusters that are replicating from this primary cluster.
    +   *
    +   * This field is only set for a primary cluster.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster> + getSecondaryClustersList() { + return secondaryClusters_; + } + /** + * + * + *
    +   * List of secondary clusters that are replicating from this primary cluster.
    +   *
    +   * This field is only set for a primary cluster.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig + .RemoteClusterOrBuilder> + getSecondaryClustersOrBuilderList() { + return secondaryClusters_; + } + /** + * + * + *
    +   * List of secondary clusters that are replicating from this primary cluster.
    +   *
    +   * This field is only set for a primary cluster.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + @java.lang.Override + public int getSecondaryClustersCount() { + return secondaryClusters_.size(); + } + /** + * + * + *
    +   * List of secondary clusters that are replicating from this primary cluster.
    +   *
    +   * This field is only set for a primary cluster.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + getSecondaryClusters(int index) { + return secondaryClusters_.get(index); + } + /** + * + * + *
    +   * List of secondary clusters that are replicating from this primary cluster.
    +   *
    +   * This field is only set for a primary cluster.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteClusterOrBuilder + getSecondaryClustersOrBuilder(int index) { + return secondaryClusters_.get(index); + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
    +   * Output only. The last time cross cluster replication config was updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 4 [(.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. The last time cross cluster replication config was updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 4 [(.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. The last time cross cluster replication config was updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 4 [(.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 MEMBERSHIP_FIELD_NUMBER = 5; + private com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership membership_; + /** + * + * + *
    +   * Output only. An output only view of all the member clusters participating
    +   * in the cross cluster replication. This view will be provided by every
    +   * member cluster irrespective of its cluster role(primary or secondary).
    +   *
    +   * A primary cluster can provide information about all the secondary clusters
    +   * replicating from it. However, a secondary cluster only knows about the
    +   * primary cluster from which it is replicating. However, for scenarios, where
    +   * the primary cluster is unavailable(e.g. regional outage), a GetCluster
    +   * request can be sent to any other member cluster and this field will list
    +   * all the member clusters participating in cross cluster replication.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership membership = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the membership field is set. + */ + @java.lang.Override + public boolean hasMembership() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +   * Output only. An output only view of all the member clusters participating
    +   * in the cross cluster replication. This view will be provided by every
    +   * member cluster irrespective of its cluster role(primary or secondary).
    +   *
    +   * A primary cluster can provide information about all the secondary clusters
    +   * replicating from it. However, a secondary cluster only knows about the
    +   * primary cluster from which it is replicating. However, for scenarios, where
    +   * the primary cluster is unavailable(e.g. regional outage), a GetCluster
    +   * request can be sent to any other member cluster and this field will list
    +   * all the member clusters participating in cross cluster replication.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership membership = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The membership. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership + getMembership() { + return membership_ == null + ? com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership + .getDefaultInstance() + : membership_; + } + /** + * + * + *
    +   * Output only. An output only view of all the member clusters participating
    +   * in the cross cluster replication. This view will be provided by every
    +   * member cluster irrespective of its cluster role(primary or secondary).
    +   *
    +   * A primary cluster can provide information about all the secondary clusters
    +   * replicating from it. However, a secondary cluster only knows about the
    +   * primary cluster from which it is replicating. However, for scenarios, where
    +   * the primary cluster is unavailable(e.g. regional outage), a GetCluster
    +   * request can be sent to any other member cluster and this field will list
    +   * all the member clusters participating in cross cluster replication.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership membership = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.MembershipOrBuilder + getMembershipOrBuilder() { + return membership_ == null + ? com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership + .getDefaultInstance() + : membership_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (clusterRole_ + != com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.ClusterRole + .CLUSTER_ROLE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, clusterRole_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getPrimaryCluster()); + } + for (int i = 0; i < secondaryClusters_.size(); i++) { + output.writeMessage(3, secondaryClusters_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getMembership()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (clusterRole_ + != com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.ClusterRole + .CLUSTER_ROLE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, clusterRole_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPrimaryCluster()); + } + for (int i = 0; i < secondaryClusters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, secondaryClusters_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getMembership()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig other = + (com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig) obj; + + if (clusterRole_ != other.clusterRole_) return false; + if (hasPrimaryCluster() != other.hasPrimaryCluster()) return false; + if (hasPrimaryCluster()) { + if (!getPrimaryCluster().equals(other.getPrimaryCluster())) return false; + } + if (!getSecondaryClustersList().equals(other.getSecondaryClustersList())) return false; + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (hasMembership() != other.hasMembership()) return false; + if (hasMembership()) { + if (!getMembership().equals(other.getMembership())) return false; + } + if (!getUnknownFields().equals(other.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) + CLUSTER_ROLE_FIELD_NUMBER; + hash = (53 * hash) + clusterRole_; + if (hasPrimaryCluster()) { + hash = (37 * hash) + PRIMARY_CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getPrimaryCluster().hashCode(); + } + if (getSecondaryClustersCount() > 0) { + hash = (37 * hash) + SECONDARY_CLUSTERS_FIELD_NUMBER; + hash = (53 * hash) + getSecondaryClustersList().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (hasMembership()) { + hash = (37 * hash) + MEMBERSHIP_FIELD_NUMBER; + hash = (53 * hash) + getMembership().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Cross cluster replication config.
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.CrossClusterReplicationConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.CrossClusterReplicationConfig) + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_CrossClusterReplicationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_CrossClusterReplicationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.class, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPrimaryClusterFieldBuilder(); + getSecondaryClustersFieldBuilder(); + getUpdateTimeFieldBuilder(); + getMembershipFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + clusterRole_ = 0; + primaryCluster_ = null; + if (primaryClusterBuilder_ != null) { + primaryClusterBuilder_.dispose(); + primaryClusterBuilder_ = null; + } + if (secondaryClustersBuilder_ == null) { + secondaryClusters_ = java.util.Collections.emptyList(); + } else { + secondaryClusters_ = null; + secondaryClustersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + membership_ = null; + if (membershipBuilder_ != null) { + membershipBuilder_.dispose(); + membershipBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_CrossClusterReplicationConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig build() { + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig buildPartial() { + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig result = + new com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig result) { + if (secondaryClustersBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + secondaryClusters_ = java.util.Collections.unmodifiableList(secondaryClusters_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.secondaryClusters_ = secondaryClusters_; + } else { + result.secondaryClusters_ = secondaryClustersBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.clusterRole_ = clusterRole_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.primaryCluster_ = + primaryClusterBuilder_ == null ? primaryCluster_ : primaryClusterBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.membership_ = membershipBuilder_ == null ? membership_ : membershipBuilder_.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.redis.cluster.v1.CrossClusterReplicationConfig) { + return mergeFrom((com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig other) { + if (other + == com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.getDefaultInstance()) + return this; + if (other.clusterRole_ != 0) { + setClusterRoleValue(other.getClusterRoleValue()); + } + if (other.hasPrimaryCluster()) { + mergePrimaryCluster(other.getPrimaryCluster()); + } + if (secondaryClustersBuilder_ == null) { + if (!other.secondaryClusters_.isEmpty()) { + if (secondaryClusters_.isEmpty()) { + secondaryClusters_ = other.secondaryClusters_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureSecondaryClustersIsMutable(); + secondaryClusters_.addAll(other.secondaryClusters_); + } + onChanged(); + } + } else { + if (!other.secondaryClusters_.isEmpty()) { + if (secondaryClustersBuilder_.isEmpty()) { + secondaryClustersBuilder_.dispose(); + secondaryClustersBuilder_ = null; + secondaryClusters_ = other.secondaryClusters_; + bitField0_ = (bitField0_ & ~0x00000004); + secondaryClustersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSecondaryClustersFieldBuilder() + : null; + } else { + secondaryClustersBuilder_.addAllMessages(other.secondaryClusters_); + } + } + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasMembership()) { + mergeMembership(other.getMembership()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + clusterRole_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage(getPrimaryClusterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster m = + input.readMessage( + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig + .RemoteCluster.parser(), + extensionRegistry); + if (secondaryClustersBuilder_ == null) { + ensureSecondaryClustersIsMutable(); + secondaryClusters_.add(m); + } else { + secondaryClustersBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getMembershipFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int clusterRole_ = 0; + /** + * + * + *
    +     * The role of the cluster in cross cluster replication.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.ClusterRole cluster_role = 1; + * + * + * @return The enum numeric value on the wire for clusterRole. + */ + @java.lang.Override + public int getClusterRoleValue() { + return clusterRole_; + } + /** + * + * + *
    +     * The role of the cluster in cross cluster replication.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.ClusterRole cluster_role = 1; + * + * + * @param value The enum numeric value on the wire for clusterRole to set. + * @return This builder for chaining. + */ + public Builder setClusterRoleValue(int value) { + clusterRole_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * The role of the cluster in cross cluster replication.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.ClusterRole cluster_role = 1; + * + * + * @return The clusterRole. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.ClusterRole + getClusterRole() { + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.ClusterRole result = + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.ClusterRole.forNumber( + clusterRole_); + return result == null + ? com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.ClusterRole.UNRECOGNIZED + : result; + } + /** + * + * + *
    +     * The role of the cluster in cross cluster replication.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.ClusterRole cluster_role = 1; + * + * + * @param value The clusterRole to set. + * @return This builder for chaining. + */ + public Builder setClusterRole( + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.ClusterRole value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + clusterRole_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * The role of the cluster in cross cluster replication.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.ClusterRole cluster_role = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearClusterRole() { + bitField0_ = (bitField0_ & ~0x00000001); + clusterRole_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + primaryCluster_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster.Builder, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteClusterOrBuilder> + primaryClusterBuilder_; + /** + * + * + *
    +     * Details of the primary cluster that is used as the replication source for
    +     * this secondary cluster.
    +     *
    +     * This field is only set for a secondary cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 2; + * + * + * @return Whether the primaryCluster field is set. + */ + public boolean hasPrimaryCluster() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * Details of the primary cluster that is used as the replication source for
    +     * this secondary cluster.
    +     *
    +     * This field is only set for a secondary cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 2; + * + * + * @return The primaryCluster. + */ + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + getPrimaryCluster() { + if (primaryClusterBuilder_ == null) { + return primaryCluster_ == null + ? com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + .getDefaultInstance() + : primaryCluster_; + } else { + return primaryClusterBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Details of the primary cluster that is used as the replication source for
    +     * this secondary cluster.
    +     *
    +     * This field is only set for a secondary cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 2; + * + */ + public Builder setPrimaryCluster( + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster value) { + if (primaryClusterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + primaryCluster_ = value; + } else { + primaryClusterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Details of the primary cluster that is used as the replication source for
    +     * this secondary cluster.
    +     *
    +     * This field is only set for a secondary cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 2; + * + */ + public Builder setPrimaryCluster( + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster.Builder + builderForValue) { + if (primaryClusterBuilder_ == null) { + primaryCluster_ = builderForValue.build(); + } else { + primaryClusterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Details of the primary cluster that is used as the replication source for
    +     * this secondary cluster.
    +     *
    +     * This field is only set for a secondary cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 2; + * + */ + public Builder mergePrimaryCluster( + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster value) { + if (primaryClusterBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && primaryCluster_ != null + && primaryCluster_ + != com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + .getDefaultInstance()) { + getPrimaryClusterBuilder().mergeFrom(value); + } else { + primaryCluster_ = value; + } + } else { + primaryClusterBuilder_.mergeFrom(value); + } + if (primaryCluster_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Details of the primary cluster that is used as the replication source for
    +     * this secondary cluster.
    +     *
    +     * This field is only set for a secondary cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 2; + * + */ + public Builder clearPrimaryCluster() { + bitField0_ = (bitField0_ & ~0x00000002); + primaryCluster_ = null; + if (primaryClusterBuilder_ != null) { + primaryClusterBuilder_.dispose(); + primaryClusterBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Details of the primary cluster that is used as the replication source for
    +     * this secondary cluster.
    +     *
    +     * This field is only set for a secondary cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 2; + * + */ + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster.Builder + getPrimaryClusterBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPrimaryClusterFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Details of the primary cluster that is used as the replication source for
    +     * this secondary cluster.
    +     *
    +     * This field is only set for a secondary cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 2; + * + */ + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteClusterOrBuilder + getPrimaryClusterOrBuilder() { + if (primaryClusterBuilder_ != null) { + return primaryClusterBuilder_.getMessageOrBuilder(); + } else { + return primaryCluster_ == null + ? com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + .getDefaultInstance() + : primaryCluster_; + } + } + /** + * + * + *
    +     * Details of the primary cluster that is used as the replication source for
    +     * this secondary cluster.
    +     *
    +     * This field is only set for a secondary cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster.Builder, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteClusterOrBuilder> + getPrimaryClusterFieldBuilder() { + if (primaryClusterBuilder_ == null) { + primaryClusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + .Builder, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig + .RemoteClusterOrBuilder>( + getPrimaryCluster(), getParentForChildren(), isClean()); + primaryCluster_ = null; + } + return primaryClusterBuilder_; + } + + private java.util.List< + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster> + secondaryClusters_ = java.util.Collections.emptyList(); + + private void ensureSecondaryClustersIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + secondaryClusters_ = + new java.util.ArrayList< + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster>( + secondaryClusters_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster.Builder, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteClusterOrBuilder> + secondaryClustersBuilder_; + + /** + * + * + *
    +     * List of secondary clusters that are replicating from this primary cluster.
    +     *
    +     * This field is only set for a primary cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + public java.util.List< + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster> + getSecondaryClustersList() { + if (secondaryClustersBuilder_ == null) { + return java.util.Collections.unmodifiableList(secondaryClusters_); + } else { + return secondaryClustersBuilder_.getMessageList(); + } + } + /** + * + * + *
    +     * List of secondary clusters that are replicating from this primary cluster.
    +     *
    +     * This field is only set for a primary cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + public int getSecondaryClustersCount() { + if (secondaryClustersBuilder_ == null) { + return secondaryClusters_.size(); + } else { + return secondaryClustersBuilder_.getCount(); + } + } + /** + * + * + *
    +     * List of secondary clusters that are replicating from this primary cluster.
    +     *
    +     * This field is only set for a primary cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + getSecondaryClusters(int index) { + if (secondaryClustersBuilder_ == null) { + return secondaryClusters_.get(index); + } else { + return secondaryClustersBuilder_.getMessage(index); + } + } + /** + * + * + *
    +     * List of secondary clusters that are replicating from this primary cluster.
    +     *
    +     * This field is only set for a primary cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + public Builder setSecondaryClusters( + int index, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster value) { + if (secondaryClustersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecondaryClustersIsMutable(); + secondaryClusters_.set(index, value); + onChanged(); + } else { + secondaryClustersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * List of secondary clusters that are replicating from this primary cluster.
    +     *
    +     * This field is only set for a primary cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + public Builder setSecondaryClusters( + int index, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster.Builder + builderForValue) { + if (secondaryClustersBuilder_ == null) { + ensureSecondaryClustersIsMutable(); + secondaryClusters_.set(index, builderForValue.build()); + onChanged(); + } else { + secondaryClustersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * List of secondary clusters that are replicating from this primary cluster.
    +     *
    +     * This field is only set for a primary cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + public Builder addSecondaryClusters( + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster value) { + if (secondaryClustersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecondaryClustersIsMutable(); + secondaryClusters_.add(value); + onChanged(); + } else { + secondaryClustersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
    +     * List of secondary clusters that are replicating from this primary cluster.
    +     *
    +     * This field is only set for a primary cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + public Builder addSecondaryClusters( + int index, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster value) { + if (secondaryClustersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecondaryClustersIsMutable(); + secondaryClusters_.add(index, value); + onChanged(); + } else { + secondaryClustersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * List of secondary clusters that are replicating from this primary cluster.
    +     *
    +     * This field is only set for a primary cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + public Builder addSecondaryClusters( + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster.Builder + builderForValue) { + if (secondaryClustersBuilder_ == null) { + ensureSecondaryClustersIsMutable(); + secondaryClusters_.add(builderForValue.build()); + onChanged(); + } else { + secondaryClustersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * List of secondary clusters that are replicating from this primary cluster.
    +     *
    +     * This field is only set for a primary cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + public Builder addSecondaryClusters( + int index, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster.Builder + builderForValue) { + if (secondaryClustersBuilder_ == null) { + ensureSecondaryClustersIsMutable(); + secondaryClusters_.add(index, builderForValue.build()); + onChanged(); + } else { + secondaryClustersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * List of secondary clusters that are replicating from this primary cluster.
    +     *
    +     * This field is only set for a primary cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + public Builder addAllSecondaryClusters( + java.lang.Iterable< + ? extends + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster> + values) { + if (secondaryClustersBuilder_ == null) { + ensureSecondaryClustersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, secondaryClusters_); + onChanged(); + } else { + secondaryClustersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
    +     * List of secondary clusters that are replicating from this primary cluster.
    +     *
    +     * This field is only set for a primary cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + public Builder clearSecondaryClusters() { + if (secondaryClustersBuilder_ == null) { + secondaryClusters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + secondaryClustersBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * List of secondary clusters that are replicating from this primary cluster.
    +     *
    +     * This field is only set for a primary cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + public Builder removeSecondaryClusters(int index) { + if (secondaryClustersBuilder_ == null) { + ensureSecondaryClustersIsMutable(); + secondaryClusters_.remove(index); + onChanged(); + } else { + secondaryClustersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
    +     * List of secondary clusters that are replicating from this primary cluster.
    +     *
    +     * This field is only set for a primary cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster.Builder + getSecondaryClustersBuilder(int index) { + return getSecondaryClustersFieldBuilder().getBuilder(index); + } + /** + * + * + *
    +     * List of secondary clusters that are replicating from this primary cluster.
    +     *
    +     * This field is only set for a primary cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteClusterOrBuilder + getSecondaryClustersOrBuilder(int index) { + if (secondaryClustersBuilder_ == null) { + return secondaryClusters_.get(index); + } else { + return secondaryClustersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
    +     * List of secondary clusters that are replicating from this primary cluster.
    +     *
    +     * This field is only set for a primary cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + public java.util.List< + ? extends + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig + .RemoteClusterOrBuilder> + getSecondaryClustersOrBuilderList() { + if (secondaryClustersBuilder_ != null) { + return secondaryClustersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(secondaryClusters_); + } + } + /** + * + * + *
    +     * List of secondary clusters that are replicating from this primary cluster.
    +     *
    +     * This field is only set for a primary cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster.Builder + addSecondaryClustersBuilder() { + return getSecondaryClustersFieldBuilder() + .addBuilder( + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + .getDefaultInstance()); + } + /** + * + * + *
    +     * List of secondary clusters that are replicating from this primary cluster.
    +     *
    +     * This field is only set for a primary cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster.Builder + addSecondaryClustersBuilder(int index) { + return getSecondaryClustersFieldBuilder() + .addBuilder( + index, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + .getDefaultInstance()); + } + /** + * + * + *
    +     * List of secondary clusters that are replicating from this primary cluster.
    +     *
    +     * This field is only set for a primary cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + public java.util.List< + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster.Builder> + getSecondaryClustersBuilderList() { + return getSecondaryClustersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster.Builder, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteClusterOrBuilder> + getSecondaryClustersFieldBuilder() { + if (secondaryClustersBuilder_ == null) { + secondaryClustersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + .Builder, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig + .RemoteClusterOrBuilder>( + secondaryClusters_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + secondaryClusters_ = null; + } + return secondaryClustersBuilder_; + } + + 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. The last time cross cluster replication config was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
    +     * Output only. The last time cross cluster replication config was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 4 [(.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. The last time cross cluster replication config was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The last time cross cluster replication config was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The last time cross cluster replication config was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Output only. The last time cross cluster replication config was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The last time cross cluster replication config was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Output only. The last time cross cluster replication config was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 4 [(.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. The last time cross cluster replication config was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_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> + 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.redis.cluster.v1.CrossClusterReplicationConfig.Membership membership_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership.Builder, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.MembershipOrBuilder> + membershipBuilder_; + /** + * + * + *
    +     * Output only. An output only view of all the member clusters participating
    +     * in the cross cluster replication. This view will be provided by every
    +     * member cluster irrespective of its cluster role(primary or secondary).
    +     *
    +     * A primary cluster can provide information about all the secondary clusters
    +     * replicating from it. However, a secondary cluster only knows about the
    +     * primary cluster from which it is replicating. However, for scenarios, where
    +     * the primary cluster is unavailable(e.g. regional outage), a GetCluster
    +     * request can be sent to any other member cluster and this field will list
    +     * all the member clusters participating in cross cluster replication.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership membership = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the membership field is set. + */ + public boolean hasMembership() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
    +     * Output only. An output only view of all the member clusters participating
    +     * in the cross cluster replication. This view will be provided by every
    +     * member cluster irrespective of its cluster role(primary or secondary).
    +     *
    +     * A primary cluster can provide information about all the secondary clusters
    +     * replicating from it. However, a secondary cluster only knows about the
    +     * primary cluster from which it is replicating. However, for scenarios, where
    +     * the primary cluster is unavailable(e.g. regional outage), a GetCluster
    +     * request can be sent to any other member cluster and this field will list
    +     * all the member clusters participating in cross cluster replication.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership membership = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The membership. + */ + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership + getMembership() { + if (membershipBuilder_ == null) { + return membership_ == null + ? com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership + .getDefaultInstance() + : membership_; + } else { + return membershipBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Output only. An output only view of all the member clusters participating
    +     * in the cross cluster replication. This view will be provided by every
    +     * member cluster irrespective of its cluster role(primary or secondary).
    +     *
    +     * A primary cluster can provide information about all the secondary clusters
    +     * replicating from it. However, a secondary cluster only knows about the
    +     * primary cluster from which it is replicating. However, for scenarios, where
    +     * the primary cluster is unavailable(e.g. regional outage), a GetCluster
    +     * request can be sent to any other member cluster and this field will list
    +     * all the member clusters participating in cross cluster replication.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership membership = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setMembership( + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership value) { + if (membershipBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + membership_ = value; + } else { + membershipBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. An output only view of all the member clusters participating
    +     * in the cross cluster replication. This view will be provided by every
    +     * member cluster irrespective of its cluster role(primary or secondary).
    +     *
    +     * A primary cluster can provide information about all the secondary clusters
    +     * replicating from it. However, a secondary cluster only knows about the
    +     * primary cluster from which it is replicating. However, for scenarios, where
    +     * the primary cluster is unavailable(e.g. regional outage), a GetCluster
    +     * request can be sent to any other member cluster and this field will list
    +     * all the member clusters participating in cross cluster replication.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership membership = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setMembership( + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership.Builder + builderForValue) { + if (membershipBuilder_ == null) { + membership_ = builderForValue.build(); + } else { + membershipBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. An output only view of all the member clusters participating
    +     * in the cross cluster replication. This view will be provided by every
    +     * member cluster irrespective of its cluster role(primary or secondary).
    +     *
    +     * A primary cluster can provide information about all the secondary clusters
    +     * replicating from it. However, a secondary cluster only knows about the
    +     * primary cluster from which it is replicating. However, for scenarios, where
    +     * the primary cluster is unavailable(e.g. regional outage), a GetCluster
    +     * request can be sent to any other member cluster and this field will list
    +     * all the member clusters participating in cross cluster replication.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership membership = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeMembership( + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership value) { + if (membershipBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && membership_ != null + && membership_ + != com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership + .getDefaultInstance()) { + getMembershipBuilder().mergeFrom(value); + } else { + membership_ = value; + } + } else { + membershipBuilder_.mergeFrom(value); + } + if (membership_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Output only. An output only view of all the member clusters participating
    +     * in the cross cluster replication. This view will be provided by every
    +     * member cluster irrespective of its cluster role(primary or secondary).
    +     *
    +     * A primary cluster can provide information about all the secondary clusters
    +     * replicating from it. However, a secondary cluster only knows about the
    +     * primary cluster from which it is replicating. However, for scenarios, where
    +     * the primary cluster is unavailable(e.g. regional outage), a GetCluster
    +     * request can be sent to any other member cluster and this field will list
    +     * all the member clusters participating in cross cluster replication.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership membership = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearMembership() { + bitField0_ = (bitField0_ & ~0x00000010); + membership_ = null; + if (membershipBuilder_ != null) { + membershipBuilder_.dispose(); + membershipBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. An output only view of all the member clusters participating
    +     * in the cross cluster replication. This view will be provided by every
    +     * member cluster irrespective of its cluster role(primary or secondary).
    +     *
    +     * A primary cluster can provide information about all the secondary clusters
    +     * replicating from it. However, a secondary cluster only knows about the
    +     * primary cluster from which it is replicating. However, for scenarios, where
    +     * the primary cluster is unavailable(e.g. regional outage), a GetCluster
    +     * request can be sent to any other member cluster and this field will list
    +     * all the member clusters participating in cross cluster replication.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership membership = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership.Builder + getMembershipBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getMembershipFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Output only. An output only view of all the member clusters participating
    +     * in the cross cluster replication. This view will be provided by every
    +     * member cluster irrespective of its cluster role(primary or secondary).
    +     *
    +     * A primary cluster can provide information about all the secondary clusters
    +     * replicating from it. However, a secondary cluster only knows about the
    +     * primary cluster from which it is replicating. However, for scenarios, where
    +     * the primary cluster is unavailable(e.g. regional outage), a GetCluster
    +     * request can be sent to any other member cluster and this field will list
    +     * all the member clusters participating in cross cluster replication.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership membership = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.MembershipOrBuilder + getMembershipOrBuilder() { + if (membershipBuilder_ != null) { + return membershipBuilder_.getMessageOrBuilder(); + } else { + return membership_ == null + ? com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership + .getDefaultInstance() + : membership_; + } + } + /** + * + * + *
    +     * Output only. An output only view of all the member clusters participating
    +     * in the cross cluster replication. This view will be provided by every
    +     * member cluster irrespective of its cluster role(primary or secondary).
    +     *
    +     * A primary cluster can provide information about all the secondary clusters
    +     * replicating from it. However, a secondary cluster only knows about the
    +     * primary cluster from which it is replicating. However, for scenarios, where
    +     * the primary cluster is unavailable(e.g. regional outage), a GetCluster
    +     * request can be sent to any other member cluster and this field will list
    +     * all the member clusters participating in cross cluster replication.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership membership = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership.Builder, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.MembershipOrBuilder> + getMembershipFieldBuilder() { + if (membershipBuilder_ == null) { + membershipBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership.Builder, + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig + .MembershipOrBuilder>(getMembership(), getParentForChildren(), isClean()); + membership_ = null; + } + return membershipBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.CrossClusterReplicationConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.CrossClusterReplicationConfig) + private static final com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig(); + } + + public static com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CrossClusterReplicationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CrossClusterReplicationConfigOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CrossClusterReplicationConfigOrBuilder.java new file mode 100644 index 000000000000..1f2828d4e88d --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CrossClusterReplicationConfigOrBuilder.java @@ -0,0 +1,291 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +public interface CrossClusterReplicationConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.CrossClusterReplicationConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The role of the cluster in cross cluster replication.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.ClusterRole cluster_role = 1; + * + * + * @return The enum numeric value on the wire for clusterRole. + */ + int getClusterRoleValue(); + /** + * + * + *
    +   * The role of the cluster in cross cluster replication.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.ClusterRole cluster_role = 1; + * + * + * @return The clusterRole. + */ + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.ClusterRole getClusterRole(); + + /** + * + * + *
    +   * Details of the primary cluster that is used as the replication source for
    +   * this secondary cluster.
    +   *
    +   * This field is only set for a secondary cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 2; + * + * + * @return Whether the primaryCluster field is set. + */ + boolean hasPrimaryCluster(); + /** + * + * + *
    +   * Details of the primary cluster that is used as the replication source for
    +   * this secondary cluster.
    +   *
    +   * This field is only set for a secondary cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 2; + * + * + * @return The primaryCluster. + */ + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster getPrimaryCluster(); + /** + * + * + *
    +   * Details of the primary cluster that is used as the replication source for
    +   * this secondary cluster.
    +   *
    +   * This field is only set for a secondary cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 2; + * + */ + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteClusterOrBuilder + getPrimaryClusterOrBuilder(); + + /** + * + * + *
    +   * List of secondary clusters that are replicating from this primary cluster.
    +   *
    +   * This field is only set for a primary cluster.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + java.util.List + getSecondaryClustersList(); + /** + * + * + *
    +   * List of secondary clusters that are replicating from this primary cluster.
    +   *
    +   * This field is only set for a primary cluster.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster + getSecondaryClusters(int index); + /** + * + * + *
    +   * List of secondary clusters that are replicating from this primary cluster.
    +   *
    +   * This field is only set for a primary cluster.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + int getSecondaryClustersCount(); + /** + * + * + *
    +   * List of secondary clusters that are replicating from this primary cluster.
    +   *
    +   * This field is only set for a primary cluster.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + java.util.List< + ? extends + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig + .RemoteClusterOrBuilder> + getSecondaryClustersOrBuilderList(); + /** + * + * + *
    +   * List of secondary clusters that are replicating from this primary cluster.
    +   *
    +   * This field is only set for a primary cluster.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.RemoteClusterOrBuilder + getSecondaryClustersOrBuilder(int index); + + /** + * + * + *
    +   * Output only. The last time cross cluster replication config was updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
    +   * Output only. The last time cross cluster replication config was updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
    +   * Output only. The last time cross cluster replication config was updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
    +   * Output only. An output only view of all the member clusters participating
    +   * in the cross cluster replication. This view will be provided by every
    +   * member cluster irrespective of its cluster role(primary or secondary).
    +   *
    +   * A primary cluster can provide information about all the secondary clusters
    +   * replicating from it. However, a secondary cluster only knows about the
    +   * primary cluster from which it is replicating. However, for scenarios, where
    +   * the primary cluster is unavailable(e.g. regional outage), a GetCluster
    +   * request can be sent to any other member cluster and this field will list
    +   * all the member clusters participating in cross cluster replication.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership membership = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the membership field is set. + */ + boolean hasMembership(); + /** + * + * + *
    +   * Output only. An output only view of all the member clusters participating
    +   * in the cross cluster replication. This view will be provided by every
    +   * member cluster irrespective of its cluster role(primary or secondary).
    +   *
    +   * A primary cluster can provide information about all the secondary clusters
    +   * replicating from it. However, a secondary cluster only knows about the
    +   * primary cluster from which it is replicating. However, for scenarios, where
    +   * the primary cluster is unavailable(e.g. regional outage), a GetCluster
    +   * request can be sent to any other member cluster and this field will list
    +   * all the member clusters participating in cross cluster replication.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership membership = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The membership. + */ + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership getMembership(); + /** + * + * + *
    +   * Output only. An output only view of all the member clusters participating
    +   * in the cross cluster replication. This view will be provided by every
    +   * member cluster irrespective of its cluster role(primary or secondary).
    +   *
    +   * A primary cluster can provide information about all the secondary clusters
    +   * replicating from it. However, a secondary cluster only knows about the
    +   * primary cluster from which it is replicating. However, for scenarios, where
    +   * the primary cluster is unavailable(e.g. regional outage), a GetCluster
    +   * request can be sent to any other member cluster and this field will list
    +   * all the member clusters participating in cross cluster replication.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.Membership membership = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.redis.cluster.v1.CrossClusterReplicationConfig.MembershipOrBuilder + getMembershipOrBuilder(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/DeleteBackupRequest.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/DeleteBackupRequest.java new file mode 100644 index 000000000000..a14812db3351 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/DeleteBackupRequest.java @@ -0,0 +1,843 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
    + * Request for [DeleteBackup].
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.DeleteBackupRequest} + */ +public final class DeleteBackupRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.DeleteBackupRequest) + DeleteBackupRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteBackupRequest.newBuilder() to construct. + private DeleteBackupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteBackupRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteBackupRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_DeleteBackupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_DeleteBackupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.DeleteBackupRequest.class, + com.google.cloud.redis.cluster.v1.DeleteBackupRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Required. Redis backup resource name using the form:
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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. Redis backup resource name using the form:
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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 REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
    +   * Optional. Idempotent request UUID.
    +   * 
    + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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. Idempotent request UUID.
    +   * 
    + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + 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(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, 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.redis.cluster.v1.DeleteBackupRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.DeleteBackupRequest other = + (com.google.cloud.redis.cluster.v1.DeleteBackupRequest) obj; + + if (!getName().equals(other.getName())) 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(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().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.redis.cluster.v1.DeleteBackupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.DeleteBackupRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.DeleteBackupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.DeleteBackupRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.DeleteBackupRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.DeleteBackupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.DeleteBackupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.DeleteBackupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.DeleteBackupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.DeleteBackupRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.DeleteBackupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.DeleteBackupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1.DeleteBackupRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 [DeleteBackup].
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.DeleteBackupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.DeleteBackupRequest) + com.google.cloud.redis.cluster.v1.DeleteBackupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_DeleteBackupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_DeleteBackupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.DeleteBackupRequest.class, + com.google.cloud.redis.cluster.v1.DeleteBackupRequest.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.DeleteBackupRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_DeleteBackupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.DeleteBackupRequest getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.DeleteBackupRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.DeleteBackupRequest build() { + com.google.cloud.redis.cluster.v1.DeleteBackupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.DeleteBackupRequest buildPartial() { + com.google.cloud.redis.cluster.v1.DeleteBackupRequest result = + new com.google.cloud.redis.cluster.v1.DeleteBackupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1.DeleteBackupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.DeleteBackupRequest) { + return mergeFrom((com.google.cloud.redis.cluster.v1.DeleteBackupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.DeleteBackupRequest other) { + if (other == com.google.cloud.redis.cluster.v1.DeleteBackupRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = 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 name_ = ""; + /** + * + * + *
    +     * Required. Redis backup resource name using the form:
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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. Redis backup resource name using the form:
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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. Redis backup resource name using the form:
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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. Redis backup resource name using the form:
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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. Redis backup resource name using the form:
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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 requestId_ = ""; + /** + * + * + *
    +     * Optional. Idempotent request UUID.
    +     * 
    + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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. Idempotent request UUID.
    +     * 
    + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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. Idempotent request UUID.
    +     * 
    + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. Idempotent request UUID.
    +     * 
    + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. Idempotent request UUID.
    +     * 
    + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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_ |= 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.redis.cluster.v1.DeleteBackupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.DeleteBackupRequest) + private static final com.google.cloud.redis.cluster.v1.DeleteBackupRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.DeleteBackupRequest(); + } + + public static com.google.cloud.redis.cluster.v1.DeleteBackupRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteBackupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.DeleteBackupRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/DeleteBackupRequestOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/DeleteBackupRequestOrBuilder.java new file mode 100644 index 000000000000..014d05c988ad --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/DeleteBackupRequestOrBuilder.java @@ -0,0 +1,86 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +public interface DeleteBackupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.DeleteBackupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Redis backup resource name using the form:
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Required. Redis backup resource name using the form:
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Optional. Idempotent request UUID.
    +   * 
    + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
    +   * Optional. Idempotent request UUID.
    +   * 
    + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/EncryptionInfo.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/EncryptionInfo.java new file mode 100644 index 000000000000..18f499187ef5 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/EncryptionInfo.java @@ -0,0 +1,1861 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
    + * EncryptionInfo describes the encryption information of a cluster or a backup.
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.EncryptionInfo} + */ +public final class EncryptionInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.EncryptionInfo) + EncryptionInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use EncryptionInfo.newBuilder() to construct. + private EncryptionInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EncryptionInfo() { + encryptionType_ = 0; + kmsKeyVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + kmsKeyPrimaryState_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EncryptionInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_EncryptionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_EncryptionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.EncryptionInfo.class, + com.google.cloud.redis.cluster.v1.EncryptionInfo.Builder.class); + } + + /** + * + * + *
    +   * Possible encryption types.
    +   * 
    + * + * Protobuf enum {@code google.cloud.redis.cluster.v1.EncryptionInfo.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Encryption type not specified. Defaults to GOOGLE_DEFAULT_ENCRYPTION.
    +     * 
    + * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
    +     * The data is encrypted at rest with a key that is fully managed by Google.
    +     * No key version will be populated. This is the default state.
    +     * 
    + * + * GOOGLE_DEFAULT_ENCRYPTION = 1; + */ + GOOGLE_DEFAULT_ENCRYPTION(1), + /** + * + * + *
    +     * The data is encrypted at rest with a key that is managed by the customer.
    +     * KMS key versions will be populated.
    +     * 
    + * + * CUSTOMER_MANAGED_ENCRYPTION = 2; + */ + CUSTOMER_MANAGED_ENCRYPTION(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Encryption type not specified. Defaults to GOOGLE_DEFAULT_ENCRYPTION.
    +     * 
    + * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +     * The data is encrypted at rest with a key that is fully managed by Google.
    +     * No key version will be populated. This is the default state.
    +     * 
    + * + * GOOGLE_DEFAULT_ENCRYPTION = 1; + */ + public static final int GOOGLE_DEFAULT_ENCRYPTION_VALUE = 1; + /** + * + * + *
    +     * The data is encrypted at rest with a key that is managed by the customer.
    +     * KMS key versions will be populated.
    +     * 
    + * + * CUSTOMER_MANAGED_ENCRYPTION = 2; + */ + public static final int CUSTOMER_MANAGED_ENCRYPTION_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 Type valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Type forNumber(int value) { + switch (value) { + case 0: + return TYPE_UNSPECIFIED; + case 1: + return GOOGLE_DEFAULT_ENCRYPTION; + case 2: + return CUSTOMER_MANAGED_ENCRYPTION; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.EncryptionInfo.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.redis.cluster.v1.EncryptionInfo.Type) + } + + /** + * + * + *
    +   * The state of the KMS key perceived by the system. Refer to the public
    +   * documentation for the impact of each state.
    +   * 
    + * + * Protobuf enum {@code google.cloud.redis.cluster.v1.EncryptionInfo.KmsKeyState} + */ + public enum KmsKeyState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * The default value. This value is unused.
    +     * 
    + * + * KMS_KEY_STATE_UNSPECIFIED = 0; + */ + KMS_KEY_STATE_UNSPECIFIED(0), + /** + * + * + *
    +     * The KMS key is enabled and correctly configured.
    +     * 
    + * + * ENABLED = 1; + */ + ENABLED(1), + /** + * + * + *
    +     * Permission denied on the KMS key.
    +     * 
    + * + * PERMISSION_DENIED = 2; + */ + PERMISSION_DENIED(2), + /** + * + * + *
    +     * The KMS key is disabled.
    +     * 
    + * + * DISABLED = 3; + */ + DISABLED(3), + /** + * + * + *
    +     * The KMS key is destroyed.
    +     * 
    + * + * DESTROYED = 4; + */ + DESTROYED(4), + /** + * + * + *
    +     * The KMS key is scheduled to be destroyed.
    +     * 
    + * + * DESTROY_SCHEDULED = 5; + */ + DESTROY_SCHEDULED(5), + /** + * + * + *
    +     * The EKM key is unreachable.
    +     * 
    + * + * EKM_KEY_UNREACHABLE_DETECTED = 6; + */ + EKM_KEY_UNREACHABLE_DETECTED(6), + /** + * + * + *
    +     * Billing is disabled for the project.
    +     * 
    + * + * BILLING_DISABLED = 7; + */ + BILLING_DISABLED(7), + /** + * + * + *
    +     * All other unknown failures.
    +     * 
    + * + * UNKNOWN_FAILURE = 8; + */ + UNKNOWN_FAILURE(8), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * The default value. This value is unused.
    +     * 
    + * + * KMS_KEY_STATE_UNSPECIFIED = 0; + */ + public static final int KMS_KEY_STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +     * The KMS key is enabled and correctly configured.
    +     * 
    + * + * ENABLED = 1; + */ + public static final int ENABLED_VALUE = 1; + /** + * + * + *
    +     * Permission denied on the KMS key.
    +     * 
    + * + * PERMISSION_DENIED = 2; + */ + public static final int PERMISSION_DENIED_VALUE = 2; + /** + * + * + *
    +     * The KMS key is disabled.
    +     * 
    + * + * DISABLED = 3; + */ + public static final int DISABLED_VALUE = 3; + /** + * + * + *
    +     * The KMS key is destroyed.
    +     * 
    + * + * DESTROYED = 4; + */ + public static final int DESTROYED_VALUE = 4; + /** + * + * + *
    +     * The KMS key is scheduled to be destroyed.
    +     * 
    + * + * DESTROY_SCHEDULED = 5; + */ + public static final int DESTROY_SCHEDULED_VALUE = 5; + /** + * + * + *
    +     * The EKM key is unreachable.
    +     * 
    + * + * EKM_KEY_UNREACHABLE_DETECTED = 6; + */ + public static final int EKM_KEY_UNREACHABLE_DETECTED_VALUE = 6; + /** + * + * + *
    +     * Billing is disabled for the project.
    +     * 
    + * + * BILLING_DISABLED = 7; + */ + public static final int BILLING_DISABLED_VALUE = 7; + /** + * + * + *
    +     * All other unknown failures.
    +     * 
    + * + * UNKNOWN_FAILURE = 8; + */ + public static final int UNKNOWN_FAILURE_VALUE = 8; + + 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 KmsKeyState 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 KmsKeyState forNumber(int value) { + switch (value) { + case 0: + return KMS_KEY_STATE_UNSPECIFIED; + case 1: + return ENABLED; + case 2: + return PERMISSION_DENIED; + case 3: + return DISABLED; + case 4: + return DESTROYED; + case 5: + return DESTROY_SCHEDULED; + case 6: + return EKM_KEY_UNREACHABLE_DETECTED; + case 7: + return BILLING_DISABLED; + case 8: + return UNKNOWN_FAILURE; + 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 KmsKeyState findValueByNumber(int number) { + return KmsKeyState.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.redis.cluster.v1.EncryptionInfo.getDescriptor().getEnumTypes().get(1); + } + + private static final KmsKeyState[] VALUES = values(); + + public static KmsKeyState 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 KmsKeyState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.redis.cluster.v1.EncryptionInfo.KmsKeyState) + } + + private int bitField0_; + public static final int ENCRYPTION_TYPE_FIELD_NUMBER = 1; + private int encryptionType_ = 0; + /** + * + * + *
    +   * Output only. Type of encryption.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo.Type encryption_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for encryptionType. + */ + @java.lang.Override + public int getEncryptionTypeValue() { + return encryptionType_; + } + /** + * + * + *
    +   * Output only. Type of encryption.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo.Type encryption_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The encryptionType. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.EncryptionInfo.Type getEncryptionType() { + com.google.cloud.redis.cluster.v1.EncryptionInfo.Type result = + com.google.cloud.redis.cluster.v1.EncryptionInfo.Type.forNumber(encryptionType_); + return result == null + ? com.google.cloud.redis.cluster.v1.EncryptionInfo.Type.UNRECOGNIZED + : result; + } + + public static final int KMS_KEY_VERSIONS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList kmsKeyVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
    +   * Output only. KMS key versions that are being used to protect the data
    +   * at-rest.
    +   * 
    + * + * + * repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the kmsKeyVersions. + */ + public com.google.protobuf.ProtocolStringList getKmsKeyVersionsList() { + return kmsKeyVersions_; + } + /** + * + * + *
    +   * Output only. KMS key versions that are being used to protect the data
    +   * at-rest.
    +   * 
    + * + * + * repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of kmsKeyVersions. + */ + public int getKmsKeyVersionsCount() { + return kmsKeyVersions_.size(); + } + /** + * + * + *
    +   * Output only. KMS key versions that are being used to protect the data
    +   * at-rest.
    +   * 
    + * + * + * repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The kmsKeyVersions at the given index. + */ + public java.lang.String getKmsKeyVersions(int index) { + return kmsKeyVersions_.get(index); + } + /** + * + * + *
    +   * Output only. KMS key versions that are being used to protect the data
    +   * at-rest.
    +   * 
    + * + * + * repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the kmsKeyVersions at the given index. + */ + public com.google.protobuf.ByteString getKmsKeyVersionsBytes(int index) { + return kmsKeyVersions_.getByteString(index); + } + + public static final int KMS_KEY_PRIMARY_STATE_FIELD_NUMBER = 3; + private int kmsKeyPrimaryState_ = 0; + /** + * + * + *
    +   * Output only. The state of the primary version of the KMS key perceived by
    +   * the system. This field is not populated in backups.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo.KmsKeyState kms_key_primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for kmsKeyPrimaryState. + */ + @java.lang.Override + public int getKmsKeyPrimaryStateValue() { + return kmsKeyPrimaryState_; + } + /** + * + * + *
    +   * Output only. The state of the primary version of the KMS key perceived by
    +   * the system. This field is not populated in backups.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo.KmsKeyState kms_key_primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The kmsKeyPrimaryState. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.EncryptionInfo.KmsKeyState getKmsKeyPrimaryState() { + com.google.cloud.redis.cluster.v1.EncryptionInfo.KmsKeyState result = + com.google.cloud.redis.cluster.v1.EncryptionInfo.KmsKeyState.forNumber(kmsKeyPrimaryState_); + return result == null + ? com.google.cloud.redis.cluster.v1.EncryptionInfo.KmsKeyState.UNRECOGNIZED + : result; + } + + public static final int LAST_UPDATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp lastUpdateTime_; + /** + * + * + *
    +   * Output only. The most recent time when the encryption info was updated.
    +   * 
    + * + * + * .google.protobuf.Timestamp last_update_time = 4 [(.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 most recent time when the encryption info was updated.
    +   * 
    + * + * + * .google.protobuf.Timestamp last_update_time = 4 [(.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 most recent time when the encryption info was updated.
    +   * 
    + * + * + * .google.protobuf.Timestamp last_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (encryptionType_ + != com.google.cloud.redis.cluster.v1.EncryptionInfo.Type.TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, encryptionType_); + } + for (int i = 0; i < kmsKeyVersions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kmsKeyVersions_.getRaw(i)); + } + if (kmsKeyPrimaryState_ + != com.google.cloud.redis.cluster.v1.EncryptionInfo.KmsKeyState.KMS_KEY_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, kmsKeyPrimaryState_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getLastUpdateTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (encryptionType_ + != com.google.cloud.redis.cluster.v1.EncryptionInfo.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, encryptionType_); + } + { + int dataSize = 0; + for (int i = 0; i < kmsKeyVersions_.size(); i++) { + dataSize += computeStringSizeNoTag(kmsKeyVersions_.getRaw(i)); + } + size += dataSize; + size += 1 * getKmsKeyVersionsList().size(); + } + if (kmsKeyPrimaryState_ + != com.google.cloud.redis.cluster.v1.EncryptionInfo.KmsKeyState.KMS_KEY_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, kmsKeyPrimaryState_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getLastUpdateTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1.EncryptionInfo)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.EncryptionInfo other = + (com.google.cloud.redis.cluster.v1.EncryptionInfo) obj; + + if (encryptionType_ != other.encryptionType_) return false; + if (!getKmsKeyVersionsList().equals(other.getKmsKeyVersionsList())) return false; + if (kmsKeyPrimaryState_ != other.kmsKeyPrimaryState_) return false; + if (hasLastUpdateTime() != other.hasLastUpdateTime()) return false; + if (hasLastUpdateTime()) { + if (!getLastUpdateTime().equals(other.getLastUpdateTime())) return false; + } + if (!getUnknownFields().equals(other.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) + ENCRYPTION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + encryptionType_; + if (getKmsKeyVersionsCount() > 0) { + hash = (37 * hash) + KMS_KEY_VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getKmsKeyVersionsList().hashCode(); + } + hash = (37 * hash) + KMS_KEY_PRIMARY_STATE_FIELD_NUMBER; + hash = (53 * hash) + kmsKeyPrimaryState_; + if (hasLastUpdateTime()) { + hash = (37 * hash) + LAST_UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getLastUpdateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.EncryptionInfo parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.EncryptionInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.EncryptionInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.EncryptionInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.EncryptionInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.EncryptionInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.EncryptionInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.EncryptionInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.EncryptionInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.EncryptionInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.EncryptionInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.EncryptionInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.redis.cluster.v1.EncryptionInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * EncryptionInfo describes the encryption information of a cluster or a backup.
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.EncryptionInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.EncryptionInfo) + com.google.cloud.redis.cluster.v1.EncryptionInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_EncryptionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_EncryptionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.EncryptionInfo.class, + com.google.cloud.redis.cluster.v1.EncryptionInfo.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.EncryptionInfo.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; + encryptionType_ = 0; + kmsKeyVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + kmsKeyPrimaryState_ = 0; + lastUpdateTime_ = null; + if (lastUpdateTimeBuilder_ != null) { + lastUpdateTimeBuilder_.dispose(); + lastUpdateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_EncryptionInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.EncryptionInfo getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.EncryptionInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.EncryptionInfo build() { + com.google.cloud.redis.cluster.v1.EncryptionInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.EncryptionInfo buildPartial() { + com.google.cloud.redis.cluster.v1.EncryptionInfo result = + new com.google.cloud.redis.cluster.v1.EncryptionInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1.EncryptionInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.encryptionType_ = encryptionType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + kmsKeyVersions_.makeImmutable(); + result.kmsKeyVersions_ = kmsKeyVersions_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.kmsKeyPrimaryState_ = kmsKeyPrimaryState_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.lastUpdateTime_ = + lastUpdateTimeBuilder_ == null ? lastUpdateTime_ : lastUpdateTimeBuilder_.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.redis.cluster.v1.EncryptionInfo) { + return mergeFrom((com.google.cloud.redis.cluster.v1.EncryptionInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.EncryptionInfo other) { + if (other == com.google.cloud.redis.cluster.v1.EncryptionInfo.getDefaultInstance()) + return this; + if (other.encryptionType_ != 0) { + setEncryptionTypeValue(other.getEncryptionTypeValue()); + } + if (!other.kmsKeyVersions_.isEmpty()) { + if (kmsKeyVersions_.isEmpty()) { + kmsKeyVersions_ = other.kmsKeyVersions_; + bitField0_ |= 0x00000002; + } else { + ensureKmsKeyVersionsIsMutable(); + kmsKeyVersions_.addAll(other.kmsKeyVersions_); + } + onChanged(); + } + if (other.kmsKeyPrimaryState_ != 0) { + setKmsKeyPrimaryStateValue(other.getKmsKeyPrimaryStateValue()); + } + if (other.hasLastUpdateTime()) { + mergeLastUpdateTime(other.getLastUpdateTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + encryptionType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureKmsKeyVersionsIsMutable(); + kmsKeyVersions_.add(s); + break; + } // case 18 + case 24: + { + kmsKeyPrimaryState_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage(getLastUpdateTimeFieldBuilder().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 encryptionType_ = 0; + /** + * + * + *
    +     * Output only. Type of encryption.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo.Type encryption_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for encryptionType. + */ + @java.lang.Override + public int getEncryptionTypeValue() { + return encryptionType_; + } + /** + * + * + *
    +     * Output only. Type of encryption.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo.Type encryption_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for encryptionType to set. + * @return This builder for chaining. + */ + public Builder setEncryptionTypeValue(int value) { + encryptionType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Type of encryption.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo.Type encryption_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The encryptionType. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.EncryptionInfo.Type getEncryptionType() { + com.google.cloud.redis.cluster.v1.EncryptionInfo.Type result = + com.google.cloud.redis.cluster.v1.EncryptionInfo.Type.forNumber(encryptionType_); + return result == null + ? com.google.cloud.redis.cluster.v1.EncryptionInfo.Type.UNRECOGNIZED + : result; + } + /** + * + * + *
    +     * Output only. Type of encryption.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo.Type encryption_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The encryptionType to set. + * @return This builder for chaining. + */ + public Builder setEncryptionType(com.google.cloud.redis.cluster.v1.EncryptionInfo.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + encryptionType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Type of encryption.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo.Type encryption_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearEncryptionType() { + bitField0_ = (bitField0_ & ~0x00000001); + encryptionType_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList kmsKeyVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureKmsKeyVersionsIsMutable() { + if (!kmsKeyVersions_.isModifiable()) { + kmsKeyVersions_ = new com.google.protobuf.LazyStringArrayList(kmsKeyVersions_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
    +     * Output only. KMS key versions that are being used to protect the data
    +     * at-rest.
    +     * 
    + * + * + * repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the kmsKeyVersions. + */ + public com.google.protobuf.ProtocolStringList getKmsKeyVersionsList() { + kmsKeyVersions_.makeImmutable(); + return kmsKeyVersions_; + } + /** + * + * + *
    +     * Output only. KMS key versions that are being used to protect the data
    +     * at-rest.
    +     * 
    + * + * + * repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of kmsKeyVersions. + */ + public int getKmsKeyVersionsCount() { + return kmsKeyVersions_.size(); + } + /** + * + * + *
    +     * Output only. KMS key versions that are being used to protect the data
    +     * at-rest.
    +     * 
    + * + * + * repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The kmsKeyVersions at the given index. + */ + public java.lang.String getKmsKeyVersions(int index) { + return kmsKeyVersions_.get(index); + } + /** + * + * + *
    +     * Output only. KMS key versions that are being used to protect the data
    +     * at-rest.
    +     * 
    + * + * + * repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the kmsKeyVersions at the given index. + */ + public com.google.protobuf.ByteString getKmsKeyVersionsBytes(int index) { + return kmsKeyVersions_.getByteString(index); + } + /** + * + * + *
    +     * Output only. KMS key versions that are being used to protect the data
    +     * at-rest.
    +     * 
    + * + * + * repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The kmsKeyVersions to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyVersions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureKmsKeyVersionsIsMutable(); + kmsKeyVersions_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. KMS key versions that are being used to protect the data
    +     * at-rest.
    +     * 
    + * + * + * repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The kmsKeyVersions to add. + * @return This builder for chaining. + */ + public Builder addKmsKeyVersions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureKmsKeyVersionsIsMutable(); + kmsKeyVersions_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. KMS key versions that are being used to protect the data
    +     * at-rest.
    +     * 
    + * + * + * repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param values The kmsKeyVersions to add. + * @return This builder for chaining. + */ + public Builder addAllKmsKeyVersions(java.lang.Iterable values) { + ensureKmsKeyVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, kmsKeyVersions_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. KMS key versions that are being used to protect the data
    +     * at-rest.
    +     * 
    + * + * + * repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearKmsKeyVersions() { + kmsKeyVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. KMS key versions that are being used to protect the data
    +     * at-rest.
    +     * 
    + * + * + * repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the kmsKeyVersions to add. + * @return This builder for chaining. + */ + public Builder addKmsKeyVersionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureKmsKeyVersionsIsMutable(); + kmsKeyVersions_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int kmsKeyPrimaryState_ = 0; + /** + * + * + *
    +     * Output only. The state of the primary version of the KMS key perceived by
    +     * the system. This field is not populated in backups.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo.KmsKeyState kms_key_primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for kmsKeyPrimaryState. + */ + @java.lang.Override + public int getKmsKeyPrimaryStateValue() { + return kmsKeyPrimaryState_; + } + /** + * + * + *
    +     * Output only. The state of the primary version of the KMS key perceived by
    +     * the system. This field is not populated in backups.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo.KmsKeyState kms_key_primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for kmsKeyPrimaryState to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyPrimaryStateValue(int value) { + kmsKeyPrimaryState_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The state of the primary version of the KMS key perceived by
    +     * the system. This field is not populated in backups.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo.KmsKeyState kms_key_primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The kmsKeyPrimaryState. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.EncryptionInfo.KmsKeyState getKmsKeyPrimaryState() { + com.google.cloud.redis.cluster.v1.EncryptionInfo.KmsKeyState result = + com.google.cloud.redis.cluster.v1.EncryptionInfo.KmsKeyState.forNumber( + kmsKeyPrimaryState_); + return result == null + ? com.google.cloud.redis.cluster.v1.EncryptionInfo.KmsKeyState.UNRECOGNIZED + : result; + } + /** + * + * + *
    +     * Output only. The state of the primary version of the KMS key perceived by
    +     * the system. This field is not populated in backups.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo.KmsKeyState kms_key_primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The kmsKeyPrimaryState to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyPrimaryState( + com.google.cloud.redis.cluster.v1.EncryptionInfo.KmsKeyState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + kmsKeyPrimaryState_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The state of the primary version of the KMS key perceived by
    +     * the system. This field is not populated in backups.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo.KmsKeyState kms_key_primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearKmsKeyPrimaryState() { + bitField0_ = (bitField0_ & ~0x00000004); + kmsKeyPrimaryState_ = 0; + 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 most recent time when the encryption info was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp last_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastUpdateTime field is set. + */ + public boolean hasLastUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
    +     * Output only. The most recent time when the encryption info was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp last_update_time = 4 [(.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 most recent time when the encryption info was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp last_update_time = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The most recent time when the encryption info was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp last_update_time = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The most recent time when the encryption info was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp last_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { + if (lastUpdateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && lastUpdateTime_ != null + && lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getLastUpdateTimeBuilder().mergeFrom(value); + } else { + lastUpdateTime_ = value; + } + } else { + lastUpdateTimeBuilder_.mergeFrom(value); + } + if (lastUpdateTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Output only. The most recent time when the encryption info was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp last_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearLastUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + lastUpdateTime_ = null; + if (lastUpdateTimeBuilder_ != null) { + lastUpdateTimeBuilder_.dispose(); + lastUpdateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The most recent time when the encryption info was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp last_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getLastUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Output only. The most recent time when the encryption info was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp last_update_time = 4 [(.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 most recent time when the encryption info was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp last_update_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> + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.EncryptionInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.EncryptionInfo) + private static final com.google.cloud.redis.cluster.v1.EncryptionInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.EncryptionInfo(); + } + + public static com.google.cloud.redis.cluster.v1.EncryptionInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EncryptionInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.EncryptionInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/EncryptionInfoOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/EncryptionInfoOrBuilder.java new file mode 100644 index 000000000000..492602ac7098 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/EncryptionInfoOrBuilder.java @@ -0,0 +1,190 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +public interface EncryptionInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.EncryptionInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Output only. Type of encryption.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo.Type encryption_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for encryptionType. + */ + int getEncryptionTypeValue(); + /** + * + * + *
    +   * Output only. Type of encryption.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo.Type encryption_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The encryptionType. + */ + com.google.cloud.redis.cluster.v1.EncryptionInfo.Type getEncryptionType(); + + /** + * + * + *
    +   * Output only. KMS key versions that are being used to protect the data
    +   * at-rest.
    +   * 
    + * + * + * repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the kmsKeyVersions. + */ + java.util.List getKmsKeyVersionsList(); + /** + * + * + *
    +   * Output only. KMS key versions that are being used to protect the data
    +   * at-rest.
    +   * 
    + * + * + * repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of kmsKeyVersions. + */ + int getKmsKeyVersionsCount(); + /** + * + * + *
    +   * Output only. KMS key versions that are being used to protect the data
    +   * at-rest.
    +   * 
    + * + * + * repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The kmsKeyVersions at the given index. + */ + java.lang.String getKmsKeyVersions(int index); + /** + * + * + *
    +   * Output only. KMS key versions that are being used to protect the data
    +   * at-rest.
    +   * 
    + * + * + * repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the kmsKeyVersions at the given index. + */ + com.google.protobuf.ByteString getKmsKeyVersionsBytes(int index); + + /** + * + * + *
    +   * Output only. The state of the primary version of the KMS key perceived by
    +   * the system. This field is not populated in backups.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo.KmsKeyState kms_key_primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for kmsKeyPrimaryState. + */ + int getKmsKeyPrimaryStateValue(); + /** + * + * + *
    +   * Output only. The state of the primary version of the KMS key perceived by
    +   * the system. This field is not populated in backups.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.EncryptionInfo.KmsKeyState kms_key_primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The kmsKeyPrimaryState. + */ + com.google.cloud.redis.cluster.v1.EncryptionInfo.KmsKeyState getKmsKeyPrimaryState(); + + /** + * + * + *
    +   * Output only. The most recent time when the encryption info was updated.
    +   * 
    + * + * + * .google.protobuf.Timestamp last_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastUpdateTime field is set. + */ + boolean hasLastUpdateTime(); + /** + * + * + *
    +   * Output only. The most recent time when the encryption info was updated.
    +   * 
    + * + * + * .google.protobuf.Timestamp last_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastUpdateTime. + */ + com.google.protobuf.Timestamp getLastUpdateTime(); + /** + * + * + *
    +   * Output only. The most recent time when the encryption info was updated.
    +   * 
    + * + * + * .google.protobuf.Timestamp last_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ExportBackupRequest.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ExportBackupRequest.java new file mode 100644 index 000000000000..b344a8fbbd64 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ExportBackupRequest.java @@ -0,0 +1,961 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
    + * Request for [ExportBackup].
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.ExportBackupRequest} + */ +public final class ExportBackupRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.ExportBackupRequest) + ExportBackupRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExportBackupRequest.newBuilder() to construct. + private ExportBackupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExportBackupRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExportBackupRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ExportBackupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ExportBackupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ExportBackupRequest.class, + com.google.cloud.redis.cluster.v1.ExportBackupRequest.Builder.class); + } + + private int destinationCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object destination_; + + public enum DestinationCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GCS_BUCKET(3), + DESTINATION_NOT_SET(0); + private final int value; + + private DestinationCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DestinationCase valueOf(int value) { + return forNumber(value); + } + + public static DestinationCase forNumber(int value) { + switch (value) { + case 3: + return GCS_BUCKET; + case 0: + return DESTINATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); + } + + public static final int GCS_BUCKET_FIELD_NUMBER = 3; + /** + * + * + *
    +   * Google Cloud Storage bucket, like "my-bucket".
    +   * 
    + * + * string gcs_bucket = 3; + * + * @return Whether the gcsBucket field is set. + */ + public boolean hasGcsBucket() { + return destinationCase_ == 3; + } + /** + * + * + *
    +   * Google Cloud Storage bucket, like "my-bucket".
    +   * 
    + * + * string gcs_bucket = 3; + * + * @return The gcsBucket. + */ + public java.lang.String getGcsBucket() { + java.lang.Object ref = ""; + if (destinationCase_ == 3) { + ref = destination_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (destinationCase_ == 3) { + destination_ = s; + } + return s; + } + } + /** + * + * + *
    +   * Google Cloud Storage bucket, like "my-bucket".
    +   * 
    + * + * string gcs_bucket = 3; + * + * @return The bytes for gcsBucket. + */ + public com.google.protobuf.ByteString getGcsBucketBytes() { + java.lang.Object ref = ""; + if (destinationCase_ == 3) { + ref = destination_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (destinationCase_ == 3) { + destination_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Required. Redis backup resource name using the form:
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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. Redis backup resource name using the form:
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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_); + } + if (destinationCase_ == 3) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, destination_); + } + 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 (destinationCase_ == 3) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, destination_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1.ExportBackupRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.ExportBackupRequest other = + (com.google.cloud.redis.cluster.v1.ExportBackupRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDestinationCase().equals(other.getDestinationCase())) return false; + switch (destinationCase_) { + case 3: + if (!getGcsBucket().equals(other.getGcsBucket())) 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 (destinationCase_) { + case 3: + hash = (37 * hash) + GCS_BUCKET_FIELD_NUMBER; + hash = (53 * hash) + getGcsBucket().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.ExportBackupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ExportBackupRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ExportBackupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ExportBackupRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ExportBackupRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ExportBackupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ExportBackupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ExportBackupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ExportBackupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ExportBackupRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ExportBackupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ExportBackupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1.ExportBackupRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 [ExportBackup].
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.ExportBackupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.ExportBackupRequest) + com.google.cloud.redis.cluster.v1.ExportBackupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ExportBackupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ExportBackupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ExportBackupRequest.class, + com.google.cloud.redis.cluster.v1.ExportBackupRequest.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.ExportBackupRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + destinationCase_ = 0; + destination_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ExportBackupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ExportBackupRequest getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.ExportBackupRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ExportBackupRequest build() { + com.google.cloud.redis.cluster.v1.ExportBackupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ExportBackupRequest buildPartial() { + com.google.cloud.redis.cluster.v1.ExportBackupRequest result = + new com.google.cloud.redis.cluster.v1.ExportBackupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1.ExportBackupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + } + + private void buildPartialOneofs(com.google.cloud.redis.cluster.v1.ExportBackupRequest result) { + result.destinationCase_ = destinationCase_; + result.destination_ = this.destination_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.ExportBackupRequest) { + return mergeFrom((com.google.cloud.redis.cluster.v1.ExportBackupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.ExportBackupRequest other) { + if (other == com.google.cloud.redis.cluster.v1.ExportBackupRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + switch (other.getDestinationCase()) { + case GCS_BUCKET: + { + destinationCase_ = 3; + destination_ = other.destination_; + onChanged(); + break; + } + case DESTINATION_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + destinationCase_ = 3; + destination_ = s; + 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 destinationCase_ = 0; + private java.lang.Object destination_; + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); + } + + public Builder clearDestination() { + destinationCase_ = 0; + destination_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
    +     * Google Cloud Storage bucket, like "my-bucket".
    +     * 
    + * + * string gcs_bucket = 3; + * + * @return Whether the gcsBucket field is set. + */ + @java.lang.Override + public boolean hasGcsBucket() { + return destinationCase_ == 3; + } + /** + * + * + *
    +     * Google Cloud Storage bucket, like "my-bucket".
    +     * 
    + * + * string gcs_bucket = 3; + * + * @return The gcsBucket. + */ + @java.lang.Override + public java.lang.String getGcsBucket() { + java.lang.Object ref = ""; + if (destinationCase_ == 3) { + ref = destination_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (destinationCase_ == 3) { + destination_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Google Cloud Storage bucket, like "my-bucket".
    +     * 
    + * + * string gcs_bucket = 3; + * + * @return The bytes for gcsBucket. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcsBucketBytes() { + java.lang.Object ref = ""; + if (destinationCase_ == 3) { + ref = destination_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (destinationCase_ == 3) { + destination_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Google Cloud Storage bucket, like "my-bucket".
    +     * 
    + * + * string gcs_bucket = 3; + * + * @param value The gcsBucket to set. + * @return This builder for chaining. + */ + public Builder setGcsBucket(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + destinationCase_ = 3; + destination_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * Google Cloud Storage bucket, like "my-bucket".
    +     * 
    + * + * string gcs_bucket = 3; + * + * @return This builder for chaining. + */ + public Builder clearGcsBucket() { + if (destinationCase_ == 3) { + destinationCase_ = 0; + destination_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Google Cloud Storage bucket, like "my-bucket".
    +     * 
    + * + * string gcs_bucket = 3; + * + * @param value The bytes for gcsBucket to set. + * @return This builder for chaining. + */ + public Builder setGcsBucketBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destinationCase_ = 3; + destination_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
    +     * Required. Redis backup resource name using the form:
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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. Redis backup resource name using the form:
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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. Redis backup resource name using the form:
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Redis backup resource name using the form:
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Redis backup resource name using the form:
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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_ |= 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.redis.cluster.v1.ExportBackupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.ExportBackupRequest) + private static final com.google.cloud.redis.cluster.v1.ExportBackupRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.ExportBackupRequest(); + } + + public static com.google.cloud.redis.cluster.v1.ExportBackupRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportBackupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ExportBackupRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ExportBackupRequestOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ExportBackupRequestOrBuilder.java new file mode 100644 index 000000000000..be2090fdf51f --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ExportBackupRequestOrBuilder.java @@ -0,0 +1,96 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +public interface ExportBackupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.ExportBackupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Google Cloud Storage bucket, like "my-bucket".
    +   * 
    + * + * string gcs_bucket = 3; + * + * @return Whether the gcsBucket field is set. + */ + boolean hasGcsBucket(); + /** + * + * + *
    +   * Google Cloud Storage bucket, like "my-bucket".
    +   * 
    + * + * string gcs_bucket = 3; + * + * @return The gcsBucket. + */ + java.lang.String getGcsBucket(); + /** + * + * + *
    +   * Google Cloud Storage bucket, like "my-bucket".
    +   * 
    + * + * string gcs_bucket = 3; + * + * @return The bytes for gcsBucket. + */ + com.google.protobuf.ByteString getGcsBucketBytes(); + + /** + * + * + *
    +   * Required. Redis backup resource name using the form:
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Required. Redis backup resource name using the form:
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + com.google.cloud.redis.cluster.v1.ExportBackupRequest.DestinationCase getDestinationCase(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetBackupCollectionRequest.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetBackupCollectionRequest.java new file mode 100644 index 000000000000..ee61e464ae79 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetBackupCollectionRequest.java @@ -0,0 +1,658 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
    + * Request for [GetBackupCollection].
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.GetBackupCollectionRequest} + */ +public final class GetBackupCollectionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.GetBackupCollectionRequest) + GetBackupCollectionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetBackupCollectionRequest.newBuilder() to construct. + private GetBackupCollectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetBackupCollectionRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetBackupCollectionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_GetBackupCollectionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_GetBackupCollectionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest.class, + com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Required. Redis backupCollection resource name using the form:
    +   *     `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
    +   * where `location_id` refers to a GCP region.
    +   * 
    + * + * + * 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. Redis backupCollection resource name using the form:
    +   *     `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
    +   * where `location_id` refers to a GCP region.
    +   * 
    + * + * + * 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.redis.cluster.v1.GetBackupCollectionRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest other = + (com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest) 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.redis.cluster.v1.GetBackupCollectionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 [GetBackupCollection].
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.GetBackupCollectionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.GetBackupCollectionRequest) + com.google.cloud.redis.cluster.v1.GetBackupCollectionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_GetBackupCollectionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_GetBackupCollectionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest.class, + com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest.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.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_GetBackupCollectionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest build() { + com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest buildPartial() { + com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest result = + new com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest 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.redis.cluster.v1.GetBackupCollectionRequest) { + return mergeFrom((com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest other) { + if (other + == com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest.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. Redis backupCollection resource name using the form:
    +     *     `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
    +     * where `location_id` refers to a GCP region.
    +     * 
    + * + * + * 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. Redis backupCollection resource name using the form:
    +     *     `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
    +     * where `location_id` refers to a GCP region.
    +     * 
    + * + * + * 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. Redis backupCollection resource name using the form:
    +     *     `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
    +     * where `location_id` refers to a GCP region.
    +     * 
    + * + * + * 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. Redis backupCollection resource name using the form:
    +     *     `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
    +     * where `location_id` refers to a GCP region.
    +     * 
    + * + * + * 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. Redis backupCollection resource name using the form:
    +     *     `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
    +     * where `location_id` refers to a GCP region.
    +     * 
    + * + * + * 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.redis.cluster.v1.GetBackupCollectionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.GetBackupCollectionRequest) + private static final com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest(); + } + + public static com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBackupCollectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetBackupCollectionRequestOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetBackupCollectionRequestOrBuilder.java new file mode 100644 index 000000000000..d1cf3c1886c9 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetBackupCollectionRequestOrBuilder.java @@ -0,0 +1,59 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +public interface GetBackupCollectionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.GetBackupCollectionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Redis backupCollection resource name using the form:
    +   *     `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
    +   * where `location_id` refers to a GCP region.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Required. Redis backupCollection resource name using the form:
    +   *     `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
    +   * where `location_id` refers to a GCP region.
    +   * 
    + * + * + * 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-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetBackupRequest.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetBackupRequest.java new file mode 100644 index 000000000000..95967c4ba74b --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetBackupRequest.java @@ -0,0 +1,646 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
    + * Request for [GetBackup].
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.GetBackupRequest} + */ +public final class GetBackupRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.GetBackupRequest) + GetBackupRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetBackupRequest.newBuilder() to construct. + private GetBackupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetBackupRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetBackupRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_GetBackupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_GetBackupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.GetBackupRequest.class, + com.google.cloud.redis.cluster.v1.GetBackupRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Required. Redis backup resource name using the form:
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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. Redis backup resource name using the form:
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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.redis.cluster.v1.GetBackupRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.GetBackupRequest other = + (com.google.cloud.redis.cluster.v1.GetBackupRequest) 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.redis.cluster.v1.GetBackupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.GetBackupRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.GetBackupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.GetBackupRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.GetBackupRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.GetBackupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.GetBackupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.GetBackupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.GetBackupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.GetBackupRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.GetBackupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.GetBackupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.redis.cluster.v1.GetBackupRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 [GetBackup].
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.GetBackupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.GetBackupRequest) + com.google.cloud.redis.cluster.v1.GetBackupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_GetBackupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_GetBackupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.GetBackupRequest.class, + com.google.cloud.redis.cluster.v1.GetBackupRequest.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.GetBackupRequest.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.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_GetBackupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.GetBackupRequest getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.GetBackupRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.GetBackupRequest build() { + com.google.cloud.redis.cluster.v1.GetBackupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.GetBackupRequest buildPartial() { + com.google.cloud.redis.cluster.v1.GetBackupRequest result = + new com.google.cloud.redis.cluster.v1.GetBackupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1.GetBackupRequest 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.redis.cluster.v1.GetBackupRequest) { + return mergeFrom((com.google.cloud.redis.cluster.v1.GetBackupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.GetBackupRequest other) { + if (other == com.google.cloud.redis.cluster.v1.GetBackupRequest.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. Redis backup resource name using the form:
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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. Redis backup resource name using the form:
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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. Redis backup resource name using the form:
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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. Redis backup resource name using the form:
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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. Redis backup resource name using the form:
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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.redis.cluster.v1.GetBackupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.GetBackupRequest) + private static final com.google.cloud.redis.cluster.v1.GetBackupRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.GetBackupRequest(); + } + + public static com.google.cloud.redis.cluster.v1.GetBackupRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBackupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.GetBackupRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetBackupRequestOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetBackupRequestOrBuilder.java new file mode 100644 index 000000000000..a2ca3524703e --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetBackupRequestOrBuilder.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +public interface GetBackupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.GetBackupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Redis backup resource name using the form:
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Required. Redis backup resource name using the form:
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListBackupCollectionsRequest.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListBackupCollectionsRequest.java new file mode 100644 index 000000000000..10525fccae54 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListBackupCollectionsRequest.java @@ -0,0 +1,973 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
    + * Request for [ListBackupCollections]
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.ListBackupCollectionsRequest} + */ +public final class ListBackupCollectionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.ListBackupCollectionsRequest) + ListBackupCollectionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListBackupCollectionsRequest.newBuilder() to construct. + private ListBackupCollectionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListBackupCollectionsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListBackupCollectionsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListBackupCollectionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListBackupCollectionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest.class, + com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
    +   * Required. The resource name of the backupCollection location using the
    +   * form:
    +   *     `projects/{project_id}/locations/{location_id}`
    +   * where `location_id` refers to a GCP region.
    +   * 
    + * + * + * 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 backupCollection location using the
    +   * form:
    +   *     `projects/{project_id}/locations/{location_id}`
    +   * where `location_id` refers to a GCP region.
    +   * 
    + * + * + * 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 maximum number of items to return.
    +   *
    +   * If not specified, a default value of 1000 will be used by the service.
    +   * Regardless of the page_size value, the response may include a partial list
    +   * and a caller should only rely on response's
    +   * [`next_page_token`][google.cloud.redis.cluster.v1.ListBackupCollectionsResponse.next_page_token]
    +   * to determine if there are more clusters left to be queried.
    +   * 
    + * + * 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 `next_page_token` value returned from a previous
    +   * [ListBackupCollections] request, if any.
    +   * 
    + * + * 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 `next_page_token` value returned from a previous
    +   * [ListBackupCollections] request, if any.
    +   * 
    + * + * 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.redis.cluster.v1.ListBackupCollectionsRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest other = + (com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest) 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.redis.cluster.v1.ListBackupCollectionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 [ListBackupCollections]
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.ListBackupCollectionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.ListBackupCollectionsRequest) + com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListBackupCollectionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListBackupCollectionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest.class, + com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest.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.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListBackupCollectionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest build() { + com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest buildPartial() { + com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest result = + new com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest 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.redis.cluster.v1.ListBackupCollectionsRequest) { + return mergeFrom((com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest other) { + if (other + == com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest.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 backupCollection location using the
    +     * form:
    +     *     `projects/{project_id}/locations/{location_id}`
    +     * where `location_id` refers to a GCP region.
    +     * 
    + * + * + * 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 backupCollection location using the
    +     * form:
    +     *     `projects/{project_id}/locations/{location_id}`
    +     * where `location_id` refers to a GCP region.
    +     * 
    + * + * + * 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 backupCollection location using the
    +     * form:
    +     *     `projects/{project_id}/locations/{location_id}`
    +     * where `location_id` refers to a GCP region.
    +     * 
    + * + * + * 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 backupCollection location using the
    +     * form:
    +     *     `projects/{project_id}/locations/{location_id}`
    +     * where `location_id` refers to a GCP region.
    +     * 
    + * + * + * 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 backupCollection location using the
    +     * form:
    +     *     `projects/{project_id}/locations/{location_id}`
    +     * where `location_id` refers to a GCP region.
    +     * 
    + * + * + * 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 maximum number of items to return.
    +     *
    +     * If not specified, a default value of 1000 will be used by the service.
    +     * Regardless of the page_size value, the response may include a partial list
    +     * and a caller should only rely on response's
    +     * [`next_page_token`][google.cloud.redis.cluster.v1.ListBackupCollectionsResponse.next_page_token]
    +     * to determine if there are more clusters left to be queried.
    +     * 
    + * + * 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 items to return.
    +     *
    +     * If not specified, a default value of 1000 will be used by the service.
    +     * Regardless of the page_size value, the response may include a partial list
    +     * and a caller should only rely on response's
    +     * [`next_page_token`][google.cloud.redis.cluster.v1.ListBackupCollectionsResponse.next_page_token]
    +     * to determine if there are more clusters left to be queried.
    +     * 
    + * + * 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 items to return.
    +     *
    +     * If not specified, a default value of 1000 will be used by the service.
    +     * Regardless of the page_size value, the response may include a partial list
    +     * and a caller should only rely on response's
    +     * [`next_page_token`][google.cloud.redis.cluster.v1.ListBackupCollectionsResponse.next_page_token]
    +     * to determine if there are more clusters left to be queried.
    +     * 
    + * + * 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 `next_page_token` value returned from a previous
    +     * [ListBackupCollections] request, if any.
    +     * 
    + * + * 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 `next_page_token` value returned from a previous
    +     * [ListBackupCollections] request, if any.
    +     * 
    + * + * 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 `next_page_token` value returned from a previous
    +     * [ListBackupCollections] request, if any.
    +     * 
    + * + * 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 `next_page_token` value returned from a previous
    +     * [ListBackupCollections] request, if any.
    +     * 
    + * + * 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 `next_page_token` value returned from a previous
    +     * [ListBackupCollections] request, if any.
    +     * 
    + * + * 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.redis.cluster.v1.ListBackupCollectionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.ListBackupCollectionsRequest) + private static final com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest(); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBackupCollectionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListBackupCollectionsRequestOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListBackupCollectionsRequestOrBuilder.java new file mode 100644 index 000000000000..1c6ae86950dd --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListBackupCollectionsRequestOrBuilder.java @@ -0,0 +1,107 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +public interface ListBackupCollectionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.ListBackupCollectionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the backupCollection location using the
    +   * form:
    +   *     `projects/{project_id}/locations/{location_id}`
    +   * where `location_id` refers to a GCP region.
    +   * 
    + * + * + * 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 backupCollection location using the
    +   * form:
    +   *     `projects/{project_id}/locations/{location_id}`
    +   * where `location_id` refers to a GCP region.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Optional. The maximum number of items to return.
    +   *
    +   * If not specified, a default value of 1000 will be used by the service.
    +   * Regardless of the page_size value, the response may include a partial list
    +   * and a caller should only rely on response's
    +   * [`next_page_token`][google.cloud.redis.cluster.v1.ListBackupCollectionsResponse.next_page_token]
    +   * to determine if there are more clusters left to be queried.
    +   * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
    +   * Optional. The `next_page_token` value returned from a previous
    +   * [ListBackupCollections] request, if any.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
    +   * Optional. The `next_page_token` value returned from a previous
    +   * [ListBackupCollections] request, if any.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListBackupCollectionsResponse.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListBackupCollectionsResponse.java new file mode 100644 index 000000000000..c5d6939c6a45 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListBackupCollectionsResponse.java @@ -0,0 +1,1635 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
    + * Response for [ListBackupCollections].
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.ListBackupCollectionsResponse} + */ +public final class ListBackupCollectionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.ListBackupCollectionsResponse) + ListBackupCollectionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListBackupCollectionsResponse.newBuilder() to construct. + private ListBackupCollectionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListBackupCollectionsResponse() { + backupCollections_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListBackupCollectionsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListBackupCollectionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListBackupCollectionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse.class, + com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse.Builder.class); + } + + public static final int BACKUP_COLLECTIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List backupCollections_; + /** + * + * + *
    +   * A list of backupCollections in the project.
    +   *
    +   * If the `location_id` in the parent field of the request is "-", all regions
    +   * available to the project are queried, and the results aggregated.
    +   * If in such an aggregated query a location is unavailable, a placeholder
    +   * backupCollection entry is included in the response with the `name` field
    +   * set to a value of the form
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +   * `status` field set to ERROR and `status_message` field set to "location not
    +   * available for ListBackupCollections".
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1; + */ + @java.lang.Override + public java.util.List + getBackupCollectionsList() { + return backupCollections_; + } + /** + * + * + *
    +   * A list of backupCollections in the project.
    +   *
    +   * If the `location_id` in the parent field of the request is "-", all regions
    +   * available to the project are queried, and the results aggregated.
    +   * If in such an aggregated query a location is unavailable, a placeholder
    +   * backupCollection entry is included in the response with the `name` field
    +   * set to a value of the form
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +   * `status` field set to ERROR and `status_message` field set to "location not
    +   * available for ListBackupCollections".
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1; + */ + @java.lang.Override + public java.util.List + getBackupCollectionsOrBuilderList() { + return backupCollections_; + } + /** + * + * + *
    +   * A list of backupCollections in the project.
    +   *
    +   * If the `location_id` in the parent field of the request is "-", all regions
    +   * available to the project are queried, and the results aggregated.
    +   * If in such an aggregated query a location is unavailable, a placeholder
    +   * backupCollection entry is included in the response with the `name` field
    +   * set to a value of the form
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +   * `status` field set to ERROR and `status_message` field set to "location not
    +   * available for ListBackupCollections".
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1; + */ + @java.lang.Override + public int getBackupCollectionsCount() { + return backupCollections_.size(); + } + /** + * + * + *
    +   * A list of backupCollections in the project.
    +   *
    +   * If the `location_id` in the parent field of the request is "-", all regions
    +   * available to the project are queried, and the results aggregated.
    +   * If in such an aggregated query a location is unavailable, a placeholder
    +   * backupCollection entry is included in the response with the `name` field
    +   * set to a value of the form
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +   * `status` field set to ERROR and `status_message` field set to "location not
    +   * available for ListBackupCollections".
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1; + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.BackupCollection getBackupCollections(int index) { + return backupCollections_.get(index); + } + /** + * + * + *
    +   * A list of backupCollections in the project.
    +   *
    +   * If the `location_id` in the parent field of the request is "-", all regions
    +   * available to the project are queried, and the results aggregated.
    +   * If in such an aggregated query a location is unavailable, a placeholder
    +   * backupCollection entry is included in the response with the `name` field
    +   * set to a value of the form
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +   * `status` field set to ERROR and `status_message` field set to "location not
    +   * available for ListBackupCollections".
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1; + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.BackupCollectionOrBuilder getBackupCollectionsOrBuilder( + int index) { + return backupCollections_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
    +   * Token to retrieve the next page of results, or empty if there are no more
    +   * results in the list.
    +   * 
    + * + * 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; + } + } + /** + * + * + *
    +   * Token to retrieve the next page of results, or empty if there are no more
    +   * results in the list.
    +   * 
    + * + * 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; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.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 < backupCollections_.size(); i++) { + output.writeMessage(1, backupCollections_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(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 < backupCollections_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, backupCollections_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().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.redis.cluster.v1.ListBackupCollectionsResponse)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse other = + (com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse) obj; + + if (!getBackupCollectionsList().equals(other.getBackupCollectionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.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 (getBackupCollectionsCount() > 0) { + hash = (37 * hash) + BACKUP_COLLECTIONS_FIELD_NUMBER; + hash = (53 * hash) + getBackupCollectionsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Response for [ListBackupCollections].
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.ListBackupCollectionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.ListBackupCollectionsResponse) + com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListBackupCollectionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListBackupCollectionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse.class, + com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (backupCollectionsBuilder_ == null) { + backupCollections_ = java.util.Collections.emptyList(); + } else { + backupCollections_ = null; + backupCollectionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListBackupCollectionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse build() { + com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse buildPartial() { + com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse result = + new com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse result) { + if (backupCollectionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + backupCollections_ = java.util.Collections.unmodifiableList(backupCollections_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.backupCollections_ = backupCollections_; + } else { + result.backupCollections_ = backupCollectionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse) { + return mergeFrom((com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse other) { + if (other + == com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse.getDefaultInstance()) + return this; + if (backupCollectionsBuilder_ == null) { + if (!other.backupCollections_.isEmpty()) { + if (backupCollections_.isEmpty()) { + backupCollections_ = other.backupCollections_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBackupCollectionsIsMutable(); + backupCollections_.addAll(other.backupCollections_); + } + onChanged(); + } + } else { + if (!other.backupCollections_.isEmpty()) { + if (backupCollectionsBuilder_.isEmpty()) { + backupCollectionsBuilder_.dispose(); + backupCollectionsBuilder_ = null; + backupCollections_ = other.backupCollections_; + bitField0_ = (bitField0_ & ~0x00000001); + backupCollectionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBackupCollectionsFieldBuilder() + : null; + } else { + backupCollectionsBuilder_.addAllMessages(other.backupCollections_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + 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.redis.cluster.v1.BackupCollection m = + input.readMessage( + com.google.cloud.redis.cluster.v1.BackupCollection.parser(), + extensionRegistry); + if (backupCollectionsBuilder_ == null) { + ensureBackupCollectionsIsMutable(); + backupCollections_.add(m); + } else { + backupCollectionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + 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 backupCollections_ = + java.util.Collections.emptyList(); + + private void ensureBackupCollectionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + backupCollections_ = + new java.util.ArrayList( + backupCollections_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1.BackupCollection, + com.google.cloud.redis.cluster.v1.BackupCollection.Builder, + com.google.cloud.redis.cluster.v1.BackupCollectionOrBuilder> + backupCollectionsBuilder_; + + /** + * + * + *
    +     * A list of backupCollections in the project.
    +     *
    +     * If the `location_id` in the parent field of the request is "-", all regions
    +     * available to the project are queried, and the results aggregated.
    +     * If in such an aggregated query a location is unavailable, a placeholder
    +     * backupCollection entry is included in the response with the `name` field
    +     * set to a value of the form
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +     * `status` field set to ERROR and `status_message` field set to "location not
    +     * available for ListBackupCollections".
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1; + */ + public java.util.List + getBackupCollectionsList() { + if (backupCollectionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(backupCollections_); + } else { + return backupCollectionsBuilder_.getMessageList(); + } + } + /** + * + * + *
    +     * A list of backupCollections in the project.
    +     *
    +     * If the `location_id` in the parent field of the request is "-", all regions
    +     * available to the project are queried, and the results aggregated.
    +     * If in such an aggregated query a location is unavailable, a placeholder
    +     * backupCollection entry is included in the response with the `name` field
    +     * set to a value of the form
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +     * `status` field set to ERROR and `status_message` field set to "location not
    +     * available for ListBackupCollections".
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1; + */ + public int getBackupCollectionsCount() { + if (backupCollectionsBuilder_ == null) { + return backupCollections_.size(); + } else { + return backupCollectionsBuilder_.getCount(); + } + } + /** + * + * + *
    +     * A list of backupCollections in the project.
    +     *
    +     * If the `location_id` in the parent field of the request is "-", all regions
    +     * available to the project are queried, and the results aggregated.
    +     * If in such an aggregated query a location is unavailable, a placeholder
    +     * backupCollection entry is included in the response with the `name` field
    +     * set to a value of the form
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +     * `status` field set to ERROR and `status_message` field set to "location not
    +     * available for ListBackupCollections".
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1; + */ + public com.google.cloud.redis.cluster.v1.BackupCollection getBackupCollections(int index) { + if (backupCollectionsBuilder_ == null) { + return backupCollections_.get(index); + } else { + return backupCollectionsBuilder_.getMessage(index); + } + } + /** + * + * + *
    +     * A list of backupCollections in the project.
    +     *
    +     * If the `location_id` in the parent field of the request is "-", all regions
    +     * available to the project are queried, and the results aggregated.
    +     * If in such an aggregated query a location is unavailable, a placeholder
    +     * backupCollection entry is included in the response with the `name` field
    +     * set to a value of the form
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +     * `status` field set to ERROR and `status_message` field set to "location not
    +     * available for ListBackupCollections".
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1; + */ + public Builder setBackupCollections( + int index, com.google.cloud.redis.cluster.v1.BackupCollection value) { + if (backupCollectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackupCollectionsIsMutable(); + backupCollections_.set(index, value); + onChanged(); + } else { + backupCollectionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * A list of backupCollections in the project.
    +     *
    +     * If the `location_id` in the parent field of the request is "-", all regions
    +     * available to the project are queried, and the results aggregated.
    +     * If in such an aggregated query a location is unavailable, a placeholder
    +     * backupCollection entry is included in the response with the `name` field
    +     * set to a value of the form
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +     * `status` field set to ERROR and `status_message` field set to "location not
    +     * available for ListBackupCollections".
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1; + */ + public Builder setBackupCollections( + int index, com.google.cloud.redis.cluster.v1.BackupCollection.Builder builderForValue) { + if (backupCollectionsBuilder_ == null) { + ensureBackupCollectionsIsMutable(); + backupCollections_.set(index, builderForValue.build()); + onChanged(); + } else { + backupCollectionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * A list of backupCollections in the project.
    +     *
    +     * If the `location_id` in the parent field of the request is "-", all regions
    +     * available to the project are queried, and the results aggregated.
    +     * If in such an aggregated query a location is unavailable, a placeholder
    +     * backupCollection entry is included in the response with the `name` field
    +     * set to a value of the form
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +     * `status` field set to ERROR and `status_message` field set to "location not
    +     * available for ListBackupCollections".
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1; + */ + public Builder addBackupCollections(com.google.cloud.redis.cluster.v1.BackupCollection value) { + if (backupCollectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackupCollectionsIsMutable(); + backupCollections_.add(value); + onChanged(); + } else { + backupCollectionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
    +     * A list of backupCollections in the project.
    +     *
    +     * If the `location_id` in the parent field of the request is "-", all regions
    +     * available to the project are queried, and the results aggregated.
    +     * If in such an aggregated query a location is unavailable, a placeholder
    +     * backupCollection entry is included in the response with the `name` field
    +     * set to a value of the form
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +     * `status` field set to ERROR and `status_message` field set to "location not
    +     * available for ListBackupCollections".
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1; + */ + public Builder addBackupCollections( + int index, com.google.cloud.redis.cluster.v1.BackupCollection value) { + if (backupCollectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackupCollectionsIsMutable(); + backupCollections_.add(index, value); + onChanged(); + } else { + backupCollectionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * A list of backupCollections in the project.
    +     *
    +     * If the `location_id` in the parent field of the request is "-", all regions
    +     * available to the project are queried, and the results aggregated.
    +     * If in such an aggregated query a location is unavailable, a placeholder
    +     * backupCollection entry is included in the response with the `name` field
    +     * set to a value of the form
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +     * `status` field set to ERROR and `status_message` field set to "location not
    +     * available for ListBackupCollections".
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1; + */ + public Builder addBackupCollections( + com.google.cloud.redis.cluster.v1.BackupCollection.Builder builderForValue) { + if (backupCollectionsBuilder_ == null) { + ensureBackupCollectionsIsMutable(); + backupCollections_.add(builderForValue.build()); + onChanged(); + } else { + backupCollectionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * A list of backupCollections in the project.
    +     *
    +     * If the `location_id` in the parent field of the request is "-", all regions
    +     * available to the project are queried, and the results aggregated.
    +     * If in such an aggregated query a location is unavailable, a placeholder
    +     * backupCollection entry is included in the response with the `name` field
    +     * set to a value of the form
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +     * `status` field set to ERROR and `status_message` field set to "location not
    +     * available for ListBackupCollections".
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1; + */ + public Builder addBackupCollections( + int index, com.google.cloud.redis.cluster.v1.BackupCollection.Builder builderForValue) { + if (backupCollectionsBuilder_ == null) { + ensureBackupCollectionsIsMutable(); + backupCollections_.add(index, builderForValue.build()); + onChanged(); + } else { + backupCollectionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * A list of backupCollections in the project.
    +     *
    +     * If the `location_id` in the parent field of the request is "-", all regions
    +     * available to the project are queried, and the results aggregated.
    +     * If in such an aggregated query a location is unavailable, a placeholder
    +     * backupCollection entry is included in the response with the `name` field
    +     * set to a value of the form
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +     * `status` field set to ERROR and `status_message` field set to "location not
    +     * available for ListBackupCollections".
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1; + */ + public Builder addAllBackupCollections( + java.lang.Iterable values) { + if (backupCollectionsBuilder_ == null) { + ensureBackupCollectionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, backupCollections_); + onChanged(); + } else { + backupCollectionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
    +     * A list of backupCollections in the project.
    +     *
    +     * If the `location_id` in the parent field of the request is "-", all regions
    +     * available to the project are queried, and the results aggregated.
    +     * If in such an aggregated query a location is unavailable, a placeholder
    +     * backupCollection entry is included in the response with the `name` field
    +     * set to a value of the form
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +     * `status` field set to ERROR and `status_message` field set to "location not
    +     * available for ListBackupCollections".
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1; + */ + public Builder clearBackupCollections() { + if (backupCollectionsBuilder_ == null) { + backupCollections_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + backupCollectionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * A list of backupCollections in the project.
    +     *
    +     * If the `location_id` in the parent field of the request is "-", all regions
    +     * available to the project are queried, and the results aggregated.
    +     * If in such an aggregated query a location is unavailable, a placeholder
    +     * backupCollection entry is included in the response with the `name` field
    +     * set to a value of the form
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +     * `status` field set to ERROR and `status_message` field set to "location not
    +     * available for ListBackupCollections".
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1; + */ + public Builder removeBackupCollections(int index) { + if (backupCollectionsBuilder_ == null) { + ensureBackupCollectionsIsMutable(); + backupCollections_.remove(index); + onChanged(); + } else { + backupCollectionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
    +     * A list of backupCollections in the project.
    +     *
    +     * If the `location_id` in the parent field of the request is "-", all regions
    +     * available to the project are queried, and the results aggregated.
    +     * If in such an aggregated query a location is unavailable, a placeholder
    +     * backupCollection entry is included in the response with the `name` field
    +     * set to a value of the form
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +     * `status` field set to ERROR and `status_message` field set to "location not
    +     * available for ListBackupCollections".
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1; + */ + public com.google.cloud.redis.cluster.v1.BackupCollection.Builder getBackupCollectionsBuilder( + int index) { + return getBackupCollectionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
    +     * A list of backupCollections in the project.
    +     *
    +     * If the `location_id` in the parent field of the request is "-", all regions
    +     * available to the project are queried, and the results aggregated.
    +     * If in such an aggregated query a location is unavailable, a placeholder
    +     * backupCollection entry is included in the response with the `name` field
    +     * set to a value of the form
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +     * `status` field set to ERROR and `status_message` field set to "location not
    +     * available for ListBackupCollections".
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1; + */ + public com.google.cloud.redis.cluster.v1.BackupCollectionOrBuilder + getBackupCollectionsOrBuilder(int index) { + if (backupCollectionsBuilder_ == null) { + return backupCollections_.get(index); + } else { + return backupCollectionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
    +     * A list of backupCollections in the project.
    +     *
    +     * If the `location_id` in the parent field of the request is "-", all regions
    +     * available to the project are queried, and the results aggregated.
    +     * If in such an aggregated query a location is unavailable, a placeholder
    +     * backupCollection entry is included in the response with the `name` field
    +     * set to a value of the form
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +     * `status` field set to ERROR and `status_message` field set to "location not
    +     * available for ListBackupCollections".
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1; + */ + public java.util.List + getBackupCollectionsOrBuilderList() { + if (backupCollectionsBuilder_ != null) { + return backupCollectionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(backupCollections_); + } + } + /** + * + * + *
    +     * A list of backupCollections in the project.
    +     *
    +     * If the `location_id` in the parent field of the request is "-", all regions
    +     * available to the project are queried, and the results aggregated.
    +     * If in such an aggregated query a location is unavailable, a placeholder
    +     * backupCollection entry is included in the response with the `name` field
    +     * set to a value of the form
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +     * `status` field set to ERROR and `status_message` field set to "location not
    +     * available for ListBackupCollections".
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1; + */ + public com.google.cloud.redis.cluster.v1.BackupCollection.Builder + addBackupCollectionsBuilder() { + return getBackupCollectionsFieldBuilder() + .addBuilder(com.google.cloud.redis.cluster.v1.BackupCollection.getDefaultInstance()); + } + /** + * + * + *
    +     * A list of backupCollections in the project.
    +     *
    +     * If the `location_id` in the parent field of the request is "-", all regions
    +     * available to the project are queried, and the results aggregated.
    +     * If in such an aggregated query a location is unavailable, a placeholder
    +     * backupCollection entry is included in the response with the `name` field
    +     * set to a value of the form
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +     * `status` field set to ERROR and `status_message` field set to "location not
    +     * available for ListBackupCollections".
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1; + */ + public com.google.cloud.redis.cluster.v1.BackupCollection.Builder addBackupCollectionsBuilder( + int index) { + return getBackupCollectionsFieldBuilder() + .addBuilder( + index, com.google.cloud.redis.cluster.v1.BackupCollection.getDefaultInstance()); + } + /** + * + * + *
    +     * A list of backupCollections in the project.
    +     *
    +     * If the `location_id` in the parent field of the request is "-", all regions
    +     * available to the project are queried, and the results aggregated.
    +     * If in such an aggregated query a location is unavailable, a placeholder
    +     * backupCollection entry is included in the response with the `name` field
    +     * set to a value of the form
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +     * `status` field set to ERROR and `status_message` field set to "location not
    +     * available for ListBackupCollections".
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1; + */ + public java.util.List + getBackupCollectionsBuilderList() { + return getBackupCollectionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1.BackupCollection, + com.google.cloud.redis.cluster.v1.BackupCollection.Builder, + com.google.cloud.redis.cluster.v1.BackupCollectionOrBuilder> + getBackupCollectionsFieldBuilder() { + if (backupCollectionsBuilder_ == null) { + backupCollectionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1.BackupCollection, + com.google.cloud.redis.cluster.v1.BackupCollection.Builder, + com.google.cloud.redis.cluster.v1.BackupCollectionOrBuilder>( + backupCollections_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + backupCollections_ = null; + } + return backupCollectionsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
    +     * Token to retrieve the next page of results, or empty if there are no more
    +     * results in the list.
    +     * 
    + * + * 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; + } + } + /** + * + * + *
    +     * Token to retrieve the next page of results, or empty if there are no more
    +     * results in the list.
    +     * 
    + * + * 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; + } + } + /** + * + * + *
    +     * Token to retrieve the next page of results, or empty if there are no more
    +     * results in the list.
    +     * 
    + * + * 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; + } + /** + * + * + *
    +     * Token to retrieve the next page of results, or empty if there are no more
    +     * results in the list.
    +     * 
    + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * Token to retrieve the next page of results, or empty if there are no more
    +     * results in the list.
    +     * 
    + * + * 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; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(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.redis.cluster.v1.ListBackupCollectionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.ListBackupCollectionsResponse) + private static final com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse(); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBackupCollectionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListBackupCollectionsResponseOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListBackupCollectionsResponseOrBuilder.java new file mode 100644 index 000000000000..7a5e8c3f6c9e --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListBackupCollectionsResponseOrBuilder.java @@ -0,0 +1,202 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +public interface ListBackupCollectionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.ListBackupCollectionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * A list of backupCollections in the project.
    +   *
    +   * If the `location_id` in the parent field of the request is "-", all regions
    +   * available to the project are queried, and the results aggregated.
    +   * If in such an aggregated query a location is unavailable, a placeholder
    +   * backupCollection entry is included in the response with the `name` field
    +   * set to a value of the form
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +   * `status` field set to ERROR and `status_message` field set to "location not
    +   * available for ListBackupCollections".
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1; + */ + java.util.List getBackupCollectionsList(); + /** + * + * + *
    +   * A list of backupCollections in the project.
    +   *
    +   * If the `location_id` in the parent field of the request is "-", all regions
    +   * available to the project are queried, and the results aggregated.
    +   * If in such an aggregated query a location is unavailable, a placeholder
    +   * backupCollection entry is included in the response with the `name` field
    +   * set to a value of the form
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +   * `status` field set to ERROR and `status_message` field set to "location not
    +   * available for ListBackupCollections".
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1; + */ + com.google.cloud.redis.cluster.v1.BackupCollection getBackupCollections(int index); + /** + * + * + *
    +   * A list of backupCollections in the project.
    +   *
    +   * If the `location_id` in the parent field of the request is "-", all regions
    +   * available to the project are queried, and the results aggregated.
    +   * If in such an aggregated query a location is unavailable, a placeholder
    +   * backupCollection entry is included in the response with the `name` field
    +   * set to a value of the form
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +   * `status` field set to ERROR and `status_message` field set to "location not
    +   * available for ListBackupCollections".
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1; + */ + int getBackupCollectionsCount(); + /** + * + * + *
    +   * A list of backupCollections in the project.
    +   *
    +   * If the `location_id` in the parent field of the request is "-", all regions
    +   * available to the project are queried, and the results aggregated.
    +   * If in such an aggregated query a location is unavailable, a placeholder
    +   * backupCollection entry is included in the response with the `name` field
    +   * set to a value of the form
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +   * `status` field set to ERROR and `status_message` field set to "location not
    +   * available for ListBackupCollections".
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1; + */ + java.util.List + getBackupCollectionsOrBuilderList(); + /** + * + * + *
    +   * A list of backupCollections in the project.
    +   *
    +   * If the `location_id` in the parent field of the request is "-", all regions
    +   * available to the project are queried, and the results aggregated.
    +   * If in such an aggregated query a location is unavailable, a placeholder
    +   * backupCollection entry is included in the response with the `name` field
    +   * set to a value of the form
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +   * `status` field set to ERROR and `status_message` field set to "location not
    +   * available for ListBackupCollections".
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1.BackupCollection backup_collections = 1; + */ + com.google.cloud.redis.cluster.v1.BackupCollectionOrBuilder getBackupCollectionsOrBuilder( + int index); + + /** + * + * + *
    +   * Token to retrieve the next page of results, or empty if there are no more
    +   * results in the list.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
    +   * Token to retrieve the next page of results, or empty if there are no more
    +   * results in the list.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListBackupsRequest.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListBackupsRequest.java new file mode 100644 index 000000000000..20910a73cbdb --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListBackupsRequest.java @@ -0,0 +1,952 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
    + * Request for [ListBackups].
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.ListBackupsRequest} + */ +public final class ListBackupsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.ListBackupsRequest) + ListBackupsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListBackupsRequest.newBuilder() to construct. + private ListBackupsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListBackupsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListBackupsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListBackupsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListBackupsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ListBackupsRequest.class, + com.google.cloud.redis.cluster.v1.ListBackupsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
    +   * Required. The resource name of the backupCollection using the form:
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. The resource name of the backupCollection using the form:
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
    +   * Optional. The maximum number of items to return.
    +   *
    +   * If not specified, a default value of 1000 will be used by the service.
    +   * Regardless of the page_size value, the response may include a partial list
    +   * and a caller should only rely on response's
    +   * [`next_page_token`][google.cloud.redis.cluster.v1.ListBackupsResponse.next_page_token]
    +   * to determine if there are more clusters left to be queried.
    +   * 
    + * + * 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 `next_page_token` value returned from a previous
    +   * [ListBackupCollections] request, if any.
    +   * 
    + * + * 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 `next_page_token` value returned from a previous
    +   * [ListBackupCollections] request, if any.
    +   * 
    + * + * 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.redis.cluster.v1.ListBackupsRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.ListBackupsRequest other = + (com.google.cloud.redis.cluster.v1.ListBackupsRequest) 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.redis.cluster.v1.ListBackupsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.redis.cluster.v1.ListBackupsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 [ListBackups].
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.ListBackupsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.ListBackupsRequest) + com.google.cloud.redis.cluster.v1.ListBackupsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListBackupsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListBackupsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ListBackupsRequest.class, + com.google.cloud.redis.cluster.v1.ListBackupsRequest.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.ListBackupsRequest.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.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListBackupsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ListBackupsRequest getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.ListBackupsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ListBackupsRequest build() { + com.google.cloud.redis.cluster.v1.ListBackupsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ListBackupsRequest buildPartial() { + com.google.cloud.redis.cluster.v1.ListBackupsRequest result = + new com.google.cloud.redis.cluster.v1.ListBackupsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1.ListBackupsRequest 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.redis.cluster.v1.ListBackupsRequest) { + return mergeFrom((com.google.cloud.redis.cluster.v1.ListBackupsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.ListBackupsRequest other) { + if (other == com.google.cloud.redis.cluster.v1.ListBackupsRequest.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 backupCollection using the form:
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. The resource name of the backupCollection using the form:
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. The resource name of the backupCollection using the form:
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The resource name of the backupCollection using the form:
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The resource name of the backupCollection using the form:
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
    +     * Optional. The maximum number of items to return.
    +     *
    +     * If not specified, a default value of 1000 will be used by the service.
    +     * Regardless of the page_size value, the response may include a partial list
    +     * and a caller should only rely on response's
    +     * [`next_page_token`][google.cloud.redis.cluster.v1.ListBackupsResponse.next_page_token]
    +     * to determine if there are more clusters left to be queried.
    +     * 
    + * + * 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 items to return.
    +     *
    +     * If not specified, a default value of 1000 will be used by the service.
    +     * Regardless of the page_size value, the response may include a partial list
    +     * and a caller should only rely on response's
    +     * [`next_page_token`][google.cloud.redis.cluster.v1.ListBackupsResponse.next_page_token]
    +     * to determine if there are more clusters left to be queried.
    +     * 
    + * + * 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 items to return.
    +     *
    +     * If not specified, a default value of 1000 will be used by the service.
    +     * Regardless of the page_size value, the response may include a partial list
    +     * and a caller should only rely on response's
    +     * [`next_page_token`][google.cloud.redis.cluster.v1.ListBackupsResponse.next_page_token]
    +     * to determine if there are more clusters left to be queried.
    +     * 
    + * + * 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 `next_page_token` value returned from a previous
    +     * [ListBackupCollections] request, if any.
    +     * 
    + * + * 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 `next_page_token` value returned from a previous
    +     * [ListBackupCollections] request, if any.
    +     * 
    + * + * 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 `next_page_token` value returned from a previous
    +     * [ListBackupCollections] request, if any.
    +     * 
    + * + * 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 `next_page_token` value returned from a previous
    +     * [ListBackupCollections] request, if any.
    +     * 
    + * + * 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 `next_page_token` value returned from a previous
    +     * [ListBackupCollections] request, if any.
    +     * 
    + * + * 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.redis.cluster.v1.ListBackupsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.ListBackupsRequest) + private static final com.google.cloud.redis.cluster.v1.ListBackupsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.ListBackupsRequest(); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBackupsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ListBackupsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListBackupsRequestOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListBackupsRequestOrBuilder.java new file mode 100644 index 000000000000..a327689b824a --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListBackupsRequestOrBuilder.java @@ -0,0 +1,103 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +public interface ListBackupsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.ListBackupsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the backupCollection using the form:
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
    +   * 
    + * + * + * 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 backupCollection using the form:
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Optional. The maximum number of items to return.
    +   *
    +   * If not specified, a default value of 1000 will be used by the service.
    +   * Regardless of the page_size value, the response may include a partial list
    +   * and a caller should only rely on response's
    +   * [`next_page_token`][google.cloud.redis.cluster.v1.ListBackupsResponse.next_page_token]
    +   * to determine if there are more clusters left to be queried.
    +   * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
    +   * Optional. The `next_page_token` value returned from a previous
    +   * [ListBackupCollections] request, if any.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
    +   * Optional. The `next_page_token` value returned from a previous
    +   * [ListBackupCollections] request, if any.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListBackupsResponse.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListBackupsResponse.java new file mode 100644 index 000000000000..88d5bce2a4b6 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListBackupsResponse.java @@ -0,0 +1,1403 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
    + * Response for [ListBackups].
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.ListBackupsResponse} + */ +public final class ListBackupsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.ListBackupsResponse) + ListBackupsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListBackupsResponse.newBuilder() to construct. + private ListBackupsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListBackupsResponse() { + backups_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListBackupsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListBackupsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListBackupsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ListBackupsResponse.class, + com.google.cloud.redis.cluster.v1.ListBackupsResponse.Builder.class); + } + + public static final int BACKUPS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List backups_; + /** + * + * + *
    +   * A list of backups in the project.
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1.Backup backups = 1; + */ + @java.lang.Override + public java.util.List getBackupsList() { + return backups_; + } + /** + * + * + *
    +   * A list of backups in the project.
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1.Backup backups = 1; + */ + @java.lang.Override + public java.util.List + getBackupsOrBuilderList() { + return backups_; + } + /** + * + * + *
    +   * A list of backups in the project.
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1.Backup backups = 1; + */ + @java.lang.Override + public int getBackupsCount() { + return backups_.size(); + } + /** + * + * + *
    +   * A list of backups in the project.
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1.Backup backups = 1; + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.Backup getBackups(int index) { + return backups_.get(index); + } + /** + * + * + *
    +   * A list of backups in the project.
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1.Backup backups = 1; + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.BackupOrBuilder getBackupsOrBuilder(int index) { + return backups_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
    +   * Token to retrieve the next page of results, or empty if there are no more
    +   * results in the list.
    +   * 
    + * + * 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; + } + } + /** + * + * + *
    +   * Token to retrieve the next page of results, or empty if there are no more
    +   * results in the list.
    +   * 
    + * + * 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; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
    +   * Backups that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + /** + * + * + *
    +   * Backups that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
    +   * Backups that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
    +   * Backups that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.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 < backups_.size(); i++) { + output.writeMessage(1, backups_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(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 < backups_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, backups_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().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.redis.cluster.v1.ListBackupsResponse)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.ListBackupsResponse other = + (com.google.cloud.redis.cluster.v1.ListBackupsResponse) obj; + + if (!getBackupsList().equals(other.getBackupsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.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 (getBackupsCount() > 0) { + hash = (37 * hash) + BACKUPS_FIELD_NUMBER; + hash = (53 * hash) + getBackupsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.ListBackupsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1.ListBackupsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Response for [ListBackups].
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.ListBackupsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.ListBackupsResponse) + com.google.cloud.redis.cluster.v1.ListBackupsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListBackupsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListBackupsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ListBackupsResponse.class, + com.google.cloud.redis.cluster.v1.ListBackupsResponse.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.ListBackupsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (backupsBuilder_ == null) { + backups_ = java.util.Collections.emptyList(); + } else { + backups_ = null; + backupsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ListBackupsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ListBackupsResponse getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.ListBackupsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ListBackupsResponse build() { + com.google.cloud.redis.cluster.v1.ListBackupsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ListBackupsResponse buildPartial() { + com.google.cloud.redis.cluster.v1.ListBackupsResponse result = + new com.google.cloud.redis.cluster.v1.ListBackupsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.redis.cluster.v1.ListBackupsResponse result) { + if (backupsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + backups_ = java.util.Collections.unmodifiableList(backups_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.backups_ = backups_; + } else { + result.backups_ = backupsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1.ListBackupsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.ListBackupsResponse) { + return mergeFrom((com.google.cloud.redis.cluster.v1.ListBackupsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.ListBackupsResponse other) { + if (other == com.google.cloud.redis.cluster.v1.ListBackupsResponse.getDefaultInstance()) + return this; + if (backupsBuilder_ == null) { + if (!other.backups_.isEmpty()) { + if (backups_.isEmpty()) { + backups_ = other.backups_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBackupsIsMutable(); + backups_.addAll(other.backups_); + } + onChanged(); + } + } else { + if (!other.backups_.isEmpty()) { + if (backupsBuilder_.isEmpty()) { + backupsBuilder_.dispose(); + backupsBuilder_ = null; + backups_ = other.backups_; + bitField0_ = (bitField0_ & ~0x00000001); + backupsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBackupsFieldBuilder() + : null; + } else { + backupsBuilder_.addAllMessages(other.backups_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + 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.redis.cluster.v1.Backup m = + input.readMessage( + com.google.cloud.redis.cluster.v1.Backup.parser(), extensionRegistry); + if (backupsBuilder_ == null) { + ensureBackupsIsMutable(); + backups_.add(m); + } else { + backupsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + 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 backups_ = + java.util.Collections.emptyList(); + + private void ensureBackupsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + backups_ = new java.util.ArrayList(backups_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1.Backup, + com.google.cloud.redis.cluster.v1.Backup.Builder, + com.google.cloud.redis.cluster.v1.BackupOrBuilder> + backupsBuilder_; + + /** + * + * + *
    +     * A list of backups in the project.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.Backup backups = 1; + */ + public java.util.List getBackupsList() { + if (backupsBuilder_ == null) { + return java.util.Collections.unmodifiableList(backups_); + } else { + return backupsBuilder_.getMessageList(); + } + } + /** + * + * + *
    +     * A list of backups in the project.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.Backup backups = 1; + */ + public int getBackupsCount() { + if (backupsBuilder_ == null) { + return backups_.size(); + } else { + return backupsBuilder_.getCount(); + } + } + /** + * + * + *
    +     * A list of backups in the project.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.Backup backups = 1; + */ + public com.google.cloud.redis.cluster.v1.Backup getBackups(int index) { + if (backupsBuilder_ == null) { + return backups_.get(index); + } else { + return backupsBuilder_.getMessage(index); + } + } + /** + * + * + *
    +     * A list of backups in the project.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.Backup backups = 1; + */ + public Builder setBackups(int index, com.google.cloud.redis.cluster.v1.Backup value) { + if (backupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackupsIsMutable(); + backups_.set(index, value); + onChanged(); + } else { + backupsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * A list of backups in the project.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.Backup backups = 1; + */ + public Builder setBackups( + int index, com.google.cloud.redis.cluster.v1.Backup.Builder builderForValue) { + if (backupsBuilder_ == null) { + ensureBackupsIsMutable(); + backups_.set(index, builderForValue.build()); + onChanged(); + } else { + backupsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * A list of backups in the project.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.Backup backups = 1; + */ + public Builder addBackups(com.google.cloud.redis.cluster.v1.Backup value) { + if (backupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackupsIsMutable(); + backups_.add(value); + onChanged(); + } else { + backupsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
    +     * A list of backups in the project.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.Backup backups = 1; + */ + public Builder addBackups(int index, com.google.cloud.redis.cluster.v1.Backup value) { + if (backupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackupsIsMutable(); + backups_.add(index, value); + onChanged(); + } else { + backupsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * A list of backups in the project.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.Backup backups = 1; + */ + public Builder addBackups(com.google.cloud.redis.cluster.v1.Backup.Builder builderForValue) { + if (backupsBuilder_ == null) { + ensureBackupsIsMutable(); + backups_.add(builderForValue.build()); + onChanged(); + } else { + backupsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * A list of backups in the project.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.Backup backups = 1; + */ + public Builder addBackups( + int index, com.google.cloud.redis.cluster.v1.Backup.Builder builderForValue) { + if (backupsBuilder_ == null) { + ensureBackupsIsMutable(); + backups_.add(index, builderForValue.build()); + onChanged(); + } else { + backupsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * A list of backups in the project.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.Backup backups = 1; + */ + public Builder addAllBackups( + java.lang.Iterable values) { + if (backupsBuilder_ == null) { + ensureBackupsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, backups_); + onChanged(); + } else { + backupsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
    +     * A list of backups in the project.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.Backup backups = 1; + */ + public Builder clearBackups() { + if (backupsBuilder_ == null) { + backups_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + backupsBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * A list of backups in the project.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.Backup backups = 1; + */ + public Builder removeBackups(int index) { + if (backupsBuilder_ == null) { + ensureBackupsIsMutable(); + backups_.remove(index); + onChanged(); + } else { + backupsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
    +     * A list of backups in the project.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.Backup backups = 1; + */ + public com.google.cloud.redis.cluster.v1.Backup.Builder getBackupsBuilder(int index) { + return getBackupsFieldBuilder().getBuilder(index); + } + /** + * + * + *
    +     * A list of backups in the project.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.Backup backups = 1; + */ + public com.google.cloud.redis.cluster.v1.BackupOrBuilder getBackupsOrBuilder(int index) { + if (backupsBuilder_ == null) { + return backups_.get(index); + } else { + return backupsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
    +     * A list of backups in the project.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.Backup backups = 1; + */ + public java.util.List + getBackupsOrBuilderList() { + if (backupsBuilder_ != null) { + return backupsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(backups_); + } + } + /** + * + * + *
    +     * A list of backups in the project.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.Backup backups = 1; + */ + public com.google.cloud.redis.cluster.v1.Backup.Builder addBackupsBuilder() { + return getBackupsFieldBuilder() + .addBuilder(com.google.cloud.redis.cluster.v1.Backup.getDefaultInstance()); + } + /** + * + * + *
    +     * A list of backups in the project.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.Backup backups = 1; + */ + public com.google.cloud.redis.cluster.v1.Backup.Builder addBackupsBuilder(int index) { + return getBackupsFieldBuilder() + .addBuilder(index, com.google.cloud.redis.cluster.v1.Backup.getDefaultInstance()); + } + /** + * + * + *
    +     * A list of backups in the project.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1.Backup backups = 1; + */ + public java.util.List + getBackupsBuilderList() { + return getBackupsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1.Backup, + com.google.cloud.redis.cluster.v1.Backup.Builder, + com.google.cloud.redis.cluster.v1.BackupOrBuilder> + getBackupsFieldBuilder() { + if (backupsBuilder_ == null) { + backupsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1.Backup, + com.google.cloud.redis.cluster.v1.Backup.Builder, + com.google.cloud.redis.cluster.v1.BackupOrBuilder>( + backups_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + backups_ = null; + } + return backupsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
    +     * Token to retrieve the next page of results, or empty if there are no more
    +     * results in the list.
    +     * 
    + * + * 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; + } + } + /** + * + * + *
    +     * Token to retrieve the next page of results, or empty if there are no more
    +     * results in the list.
    +     * 
    + * + * 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; + } + } + /** + * + * + *
    +     * Token to retrieve the next page of results, or empty if there are no more
    +     * results in the list.
    +     * 
    + * + * 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; + } + /** + * + * + *
    +     * Token to retrieve the next page of results, or empty if there are no more
    +     * results in the list.
    +     * 
    + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * Token to retrieve the next page of results, or empty if there are no more
    +     * results in the list.
    +     * 
    + * + * 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; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + /** + * + * + *
    +     * Backups that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + /** + * + * + *
    +     * Backups that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
    +     * Backups that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
    +     * Backups that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + * + * + *
    +     * Backups that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Backups that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Backups that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Backups that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + /** + * + * + *
    +     * Backups that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(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.redis.cluster.v1.ListBackupsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.ListBackupsResponse) + private static final com.google.cloud.redis.cluster.v1.ListBackupsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.ListBackupsResponse(); + } + + public static com.google.cloud.redis.cluster.v1.ListBackupsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBackupsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ListBackupsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListBackupsResponseOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListBackupsResponseOrBuilder.java new file mode 100644 index 000000000000..a0f571834f00 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ListBackupsResponseOrBuilder.java @@ -0,0 +1,156 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +public interface ListBackupsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.ListBackupsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * A list of backups in the project.
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1.Backup backups = 1; + */ + java.util.List getBackupsList(); + /** + * + * + *
    +   * A list of backups in the project.
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1.Backup backups = 1; + */ + com.google.cloud.redis.cluster.v1.Backup getBackups(int index); + /** + * + * + *
    +   * A list of backups in the project.
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1.Backup backups = 1; + */ + int getBackupsCount(); + /** + * + * + *
    +   * A list of backups in the project.
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1.Backup backups = 1; + */ + java.util.List + getBackupsOrBuilderList(); + /** + * + * + *
    +   * A list of backups in the project.
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1.Backup backups = 1; + */ + com.google.cloud.redis.cluster.v1.BackupOrBuilder getBackupsOrBuilder(int index); + + /** + * + * + *
    +   * Token to retrieve the next page of results, or empty if there are no more
    +   * results in the list.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
    +   * Token to retrieve the next page of results, or empty if there are no more
    +   * results in the list.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
    +   * Backups that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + /** + * + * + *
    +   * Backups that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + * + * + *
    +   * Backups that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + * + * + *
    +   * Backups that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/NodeType.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/NodeType.java index 397185feb99d..0c6cfd016446 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/NodeType.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/NodeType.java @@ -29,7 +29,15 @@ * Protobuf enum {@code google.cloud.redis.cluster.v1.NodeType} */ public enum NodeType implements com.google.protobuf.ProtocolMessageEnum { - /** NODE_TYPE_UNSPECIFIED = 0; */ + /** + * + * + *
    +   * Node type unspecified
    +   * 
    + * + * NODE_TYPE_UNSPECIFIED = 0; + */ NODE_TYPE_UNSPECIFIED(0), /** * @@ -74,7 +82,15 @@ public enum NodeType implements com.google.protobuf.ProtocolMessageEnum { UNRECOGNIZED(-1), ; - /** NODE_TYPE_UNSPECIFIED = 0; */ + /** + * + * + *
    +   * Node type unspecified
    +   * 
    + * + * NODE_TYPE_UNSPECIFIED = 0; + */ public static final int NODE_TYPE_UNSPECIFIED_VALUE = 0; /** * @@ -182,7 +198,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto.getDescriptor() .getEnumTypes() - .get(1); + .get(2); } private static final NodeType[] VALUES = values(); diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/PscAutoConnection.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/PscAutoConnection.java new file mode 100644 index 000000000000..7f8ff2b516a9 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/PscAutoConnection.java @@ -0,0 +1,2002 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
    + * Details of consumer resources in a PSC connection that is created through
    + * Service Connectivity Automation.
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.PscAutoConnection} + */ +public final class PscAutoConnection extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.PscAutoConnection) + PscAutoConnectionOrBuilder { + private static final long serialVersionUID = 0L; + // Use PscAutoConnection.newBuilder() to construct. + private PscAutoConnection(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PscAutoConnection() { + pscConnectionId_ = ""; + address_ = ""; + forwardingRule_ = ""; + projectId_ = ""; + network_ = ""; + serviceAttachment_ = ""; + pscConnectionStatus_ = 0; + connectionType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PscAutoConnection(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_PscAutoConnection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_PscAutoConnection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.PscAutoConnection.class, + com.google.cloud.redis.cluster.v1.PscAutoConnection.Builder.class); + } + + public static final int PSC_CONNECTION_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object pscConnectionId_ = ""; + /** + * + * + *
    +   * Output only. The PSC connection id of the forwarding rule connected to the
    +   * service attachment.
    +   * 
    + * + * string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The pscConnectionId. + */ + @java.lang.Override + public java.lang.String getPscConnectionId() { + java.lang.Object ref = pscConnectionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pscConnectionId_ = s; + return s; + } + } + /** + * + * + *
    +   * Output only. The PSC connection id of the forwarding rule connected to the
    +   * service attachment.
    +   * 
    + * + * string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for pscConnectionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPscConnectionIdBytes() { + java.lang.Object ref = pscConnectionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pscConnectionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADDRESS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object address_ = ""; + /** + * + * + *
    +   * Output only. The IP allocated on the consumer network for the PSC
    +   * forwarding rule.
    +   * 
    + * + * + * string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The address. + */ + @java.lang.Override + public java.lang.String getAddress() { + java.lang.Object ref = address_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + address_ = s; + return s; + } + } + /** + * + * + *
    +   * Output only. The IP allocated on the consumer network for the PSC
    +   * forwarding rule.
    +   * 
    + * + * + * string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for address. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddressBytes() { + java.lang.Object ref = address_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + address_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FORWARDING_RULE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object forwardingRule_ = ""; + /** + * + * + *
    +   * Output only. The URI of the consumer side forwarding rule.
    +   * Example:
    +   * projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
    +   * 
    + * + * + * string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The forwardingRule. + */ + @java.lang.Override + public java.lang.String getForwardingRule() { + java.lang.Object ref = forwardingRule_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + forwardingRule_ = s; + return s; + } + } + /** + * + * + *
    +   * Output only. The URI of the consumer side forwarding rule.
    +   * Example:
    +   * projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
    +   * 
    + * + * + * string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for forwardingRule. + */ + @java.lang.Override + public com.google.protobuf.ByteString getForwardingRuleBytes() { + java.lang.Object ref = forwardingRule_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + forwardingRule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + * + * + *
    +   * Required. The consumer project_id where the forwarding rule is created
    +   * from.
    +   * 
    + * + * string project_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The projectId. + */ + @java.lang.Override + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. The consumer project_id where the forwarding rule is created
    +   * from.
    +   * 
    + * + * string project_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for projectId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object network_ = ""; + /** + * + * + *
    +   * Required. The consumer network where the IP address resides, in the form of
    +   * projects/{project_id}/global/networks/{network_id}.
    +   * 
    + * + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + /** + * + * + *
    +   * Required. The consumer network where the IP address resides, in the form of
    +   * projects/{project_id}/global/networks/{network_id}.
    +   * 
    + * + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.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_ATTACHMENT_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAttachment_ = ""; + /** + * + * + *
    +   * Output only. The service attachment which is the target of the PSC
    +   * connection, in the form of
    +   * projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
    +   * 
    + * + * + * string service_attachment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The serviceAttachment. + */ + @java.lang.Override + public java.lang.String getServiceAttachment() { + java.lang.Object ref = serviceAttachment_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAttachment_ = s; + return s; + } + } + /** + * + * + *
    +   * Output only. The service attachment which is the target of the PSC
    +   * connection, in the form of
    +   * projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
    +   * 
    + * + * + * string service_attachment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for serviceAttachment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAttachmentBytes() { + java.lang.Object ref = serviceAttachment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAttachment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PSC_CONNECTION_STATUS_FIELD_NUMBER = 8; + private int pscConnectionStatus_ = 0; + /** + * + * + *
    +   * Output only. The status of the PSC connection.
    +   * Please note that this value is updated periodically.
    +   * Please use Private Service Connect APIs for the latest status.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for pscConnectionStatus. + */ + @java.lang.Override + public int getPscConnectionStatusValue() { + return pscConnectionStatus_; + } + /** + * + * + *
    +   * Output only. The status of the PSC connection.
    +   * Please note that this value is updated periodically.
    +   * Please use Private Service Connect APIs for the latest status.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pscConnectionStatus. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.PscConnectionStatus getPscConnectionStatus() { + com.google.cloud.redis.cluster.v1.PscConnectionStatus result = + com.google.cloud.redis.cluster.v1.PscConnectionStatus.forNumber(pscConnectionStatus_); + return result == null + ? com.google.cloud.redis.cluster.v1.PscConnectionStatus.UNRECOGNIZED + : result; + } + + public static final int CONNECTION_TYPE_FIELD_NUMBER = 9; + private int connectionType_ = 0; + /** + * + * + *
    +   * Output only. Type of the PSC connection.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.ConnectionType connection_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for connectionType. + */ + @java.lang.Override + public int getConnectionTypeValue() { + return connectionType_; + } + /** + * + * + *
    +   * Output only. Type of the PSC connection.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.ConnectionType connection_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The connectionType. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ConnectionType getConnectionType() { + com.google.cloud.redis.cluster.v1.ConnectionType result = + com.google.cloud.redis.cluster.v1.ConnectionType.forNumber(connectionType_); + return result == null ? com.google.cloud.redis.cluster.v1.ConnectionType.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(pscConnectionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pscConnectionId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, address_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(forwardingRule_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, forwardingRule_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAttachment_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, serviceAttachment_); + } + if (pscConnectionStatus_ + != com.google.cloud.redis.cluster.v1.PscConnectionStatus.PSC_CONNECTION_STATUS_UNSPECIFIED + .getNumber()) { + output.writeEnum(8, pscConnectionStatus_); + } + if (connectionType_ + != com.google.cloud.redis.cluster.v1.ConnectionType.CONNECTION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(9, connectionType_); + } + 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(pscConnectionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, pscConnectionId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, address_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(forwardingRule_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, forwardingRule_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAttachment_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, serviceAttachment_); + } + if (pscConnectionStatus_ + != com.google.cloud.redis.cluster.v1.PscConnectionStatus.PSC_CONNECTION_STATUS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, pscConnectionStatus_); + } + if (connectionType_ + != com.google.cloud.redis.cluster.v1.ConnectionType.CONNECTION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, connectionType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1.PscAutoConnection)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.PscAutoConnection other = + (com.google.cloud.redis.cluster.v1.PscAutoConnection) obj; + + if (!getPscConnectionId().equals(other.getPscConnectionId())) return false; + if (!getAddress().equals(other.getAddress())) return false; + if (!getForwardingRule().equals(other.getForwardingRule())) return false; + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getNetwork().equals(other.getNetwork())) return false; + if (!getServiceAttachment().equals(other.getServiceAttachment())) return false; + if (pscConnectionStatus_ != other.pscConnectionStatus_) return false; + if (connectionType_ != other.connectionType_) return false; + if (!getUnknownFields().equals(other.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) + PSC_CONNECTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getPscConnectionId().hashCode(); + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + hash = (37 * hash) + FORWARDING_RULE_FIELD_NUMBER; + hash = (53 * hash) + getForwardingRule().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + hash = (37 * hash) + SERVICE_ATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getServiceAttachment().hashCode(); + hash = (37 * hash) + PSC_CONNECTION_STATUS_FIELD_NUMBER; + hash = (53 * hash) + pscConnectionStatus_; + hash = (37 * hash) + CONNECTION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + connectionType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.PscAutoConnection parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.PscAutoConnection parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.PscAutoConnection parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.PscAutoConnection parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.PscAutoConnection parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.PscAutoConnection parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.PscAutoConnection parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.PscAutoConnection parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.PscAutoConnection parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.PscAutoConnection parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.PscAutoConnection parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.PscAutoConnection parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.redis.cluster.v1.PscAutoConnection prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 of consumer resources in a PSC connection that is created through
    +   * Service Connectivity Automation.
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.PscAutoConnection} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.PscAutoConnection) + com.google.cloud.redis.cluster.v1.PscAutoConnectionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_PscAutoConnection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_PscAutoConnection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.PscAutoConnection.class, + com.google.cloud.redis.cluster.v1.PscAutoConnection.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.PscAutoConnection.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pscConnectionId_ = ""; + address_ = ""; + forwardingRule_ = ""; + projectId_ = ""; + network_ = ""; + serviceAttachment_ = ""; + pscConnectionStatus_ = 0; + connectionType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_PscAutoConnection_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.PscAutoConnection getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.PscAutoConnection.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.PscAutoConnection build() { + com.google.cloud.redis.cluster.v1.PscAutoConnection result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.PscAutoConnection buildPartial() { + com.google.cloud.redis.cluster.v1.PscAutoConnection result = + new com.google.cloud.redis.cluster.v1.PscAutoConnection(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1.PscAutoConnection result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pscConnectionId_ = pscConnectionId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.address_ = address_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.forwardingRule_ = forwardingRule_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.network_ = network_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.serviceAttachment_ = serviceAttachment_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.pscConnectionStatus_ = pscConnectionStatus_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.connectionType_ = connectionType_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.PscAutoConnection) { + return mergeFrom((com.google.cloud.redis.cluster.v1.PscAutoConnection) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.PscAutoConnection other) { + if (other == com.google.cloud.redis.cluster.v1.PscAutoConnection.getDefaultInstance()) + return this; + if (!other.getPscConnectionId().isEmpty()) { + pscConnectionId_ = other.pscConnectionId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAddress().isEmpty()) { + address_ = other.address_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getForwardingRule().isEmpty()) { + forwardingRule_ = other.forwardingRule_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getServiceAttachment().isEmpty()) { + serviceAttachment_ = other.serviceAttachment_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.pscConnectionStatus_ != 0) { + setPscConnectionStatusValue(other.getPscConnectionStatusValue()); + } + if (other.connectionType_ != 0) { + setConnectionTypeValue(other.getConnectionTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + pscConnectionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + address_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + forwardingRule_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + network_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + serviceAttachment_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 64: + { + pscConnectionStatus_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 64 + case 72: + { + connectionType_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 72 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + 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 pscConnectionId_ = ""; + /** + * + * + *
    +     * Output only. The PSC connection id of the forwarding rule connected to the
    +     * service attachment.
    +     * 
    + * + * string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The pscConnectionId. + */ + public java.lang.String getPscConnectionId() { + java.lang.Object ref = pscConnectionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pscConnectionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Output only. The PSC connection id of the forwarding rule connected to the
    +     * service attachment.
    +     * 
    + * + * string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for pscConnectionId. + */ + public com.google.protobuf.ByteString getPscConnectionIdBytes() { + java.lang.Object ref = pscConnectionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pscConnectionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Output only. The PSC connection id of the forwarding rule connected to the
    +     * service attachment.
    +     * 
    + * + * string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The pscConnectionId to set. + * @return This builder for chaining. + */ + public Builder setPscConnectionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pscConnectionId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The PSC connection id of the forwarding rule connected to the
    +     * service attachment.
    +     * 
    + * + * string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPscConnectionId() { + pscConnectionId_ = getDefaultInstance().getPscConnectionId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The PSC connection id of the forwarding rule connected to the
    +     * service attachment.
    +     * 
    + * + * string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for pscConnectionId to set. + * @return This builder for chaining. + */ + public Builder setPscConnectionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pscConnectionId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object address_ = ""; + /** + * + * + *
    +     * Output only. The IP allocated on the consumer network for the PSC
    +     * forwarding rule.
    +     * 
    + * + * + * string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The address. + */ + public java.lang.String getAddress() { + java.lang.Object ref = address_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + address_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Output only. The IP allocated on the consumer network for the PSC
    +     * forwarding rule.
    +     * 
    + * + * + * string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for address. + */ + public com.google.protobuf.ByteString getAddressBytes() { + java.lang.Object ref = address_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + address_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Output only. The IP allocated on the consumer network for the PSC
    +     * forwarding rule.
    +     * 
    + * + * + * string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The address to set. + * @return This builder for chaining. + */ + public Builder setAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + address_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The IP allocated on the consumer network for the PSC
    +     * forwarding rule.
    +     * 
    + * + * + * string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAddress() { + address_ = getDefaultInstance().getAddress(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The IP allocated on the consumer network for the PSC
    +     * forwarding rule.
    +     * 
    + * + * + * string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for address to set. + * @return This builder for chaining. + */ + public Builder setAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + address_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object forwardingRule_ = ""; + /** + * + * + *
    +     * Output only. The URI of the consumer side forwarding rule.
    +     * Example:
    +     * projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
    +     * 
    + * + * + * string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The forwardingRule. + */ + public java.lang.String getForwardingRule() { + java.lang.Object ref = forwardingRule_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + forwardingRule_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Output only. The URI of the consumer side forwarding rule.
    +     * Example:
    +     * projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
    +     * 
    + * + * + * string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for forwardingRule. + */ + public com.google.protobuf.ByteString getForwardingRuleBytes() { + java.lang.Object ref = forwardingRule_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + forwardingRule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Output only. The URI of the consumer side forwarding rule.
    +     * Example:
    +     * projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
    +     * 
    + * + * + * string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The forwardingRule to set. + * @return This builder for chaining. + */ + public Builder setForwardingRule(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + forwardingRule_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The URI of the consumer side forwarding rule.
    +     * Example:
    +     * projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
    +     * 
    + * + * + * string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearForwardingRule() { + forwardingRule_ = getDefaultInstance().getForwardingRule(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The URI of the consumer side forwarding rule.
    +     * Example:
    +     * projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
    +     * 
    + * + * + * string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for forwardingRule to set. + * @return This builder for chaining. + */ + public Builder setForwardingRuleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + forwardingRule_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object projectId_ = ""; + /** + * + * + *
    +     * Required. The consumer project_id where the forwarding rule is created
    +     * from.
    +     * 
    + * + * string project_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The projectId. + */ + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. The consumer project_id where the forwarding rule is created
    +     * from.
    +     * 
    + * + * string project_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for projectId. + */ + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. The consumer project_id where the forwarding rule is created
    +     * from.
    +     * 
    + * + * string project_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + projectId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The consumer project_id where the forwarding rule is created
    +     * from.
    +     * 
    + * + * string project_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The consumer project_id where the forwarding rule is created
    +     * from.
    +     * 
    + * + * string project_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object network_ = ""; + /** + * + * + *
    +     * Required. The consumer network where the IP address resides, in the form of
    +     * projects/{project_id}/global/networks/{network_id}.
    +     * 
    + * + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + /** + * + * + *
    +     * Required. The consumer network where the IP address resides, in the form of
    +     * projects/{project_id}/global/networks/{network_id}.
    +     * 
    + * + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + /** + * + * + *
    +     * Required. The consumer network where the IP address resides, in the form of
    +     * projects/{project_id}/global/networks/{network_id}.
    +     * 
    + * + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.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_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The consumer network where the IP address resides, in the form of
    +     * projects/{project_id}/global/networks/{network_id}.
    +     * 
    + * + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNetwork() { + network_ = getDefaultInstance().getNetwork(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The consumer network where the IP address resides, in the form of
    +     * projects/{project_id}/global/networks/{network_id}.
    +     * 
    + * + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.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_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object serviceAttachment_ = ""; + /** + * + * + *
    +     * Output only. The service attachment which is the target of the PSC
    +     * connection, in the form of
    +     * projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
    +     * 
    + * + * + * string service_attachment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The serviceAttachment. + */ + public java.lang.String getServiceAttachment() { + java.lang.Object ref = serviceAttachment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAttachment_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Output only. The service attachment which is the target of the PSC
    +     * connection, in the form of
    +     * projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
    +     * 
    + * + * + * string service_attachment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for serviceAttachment. + */ + public com.google.protobuf.ByteString getServiceAttachmentBytes() { + java.lang.Object ref = serviceAttachment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAttachment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Output only. The service attachment which is the target of the PSC
    +     * connection, in the form of
    +     * projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
    +     * 
    + * + * + * string service_attachment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The serviceAttachment to set. + * @return This builder for chaining. + */ + public Builder setServiceAttachment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceAttachment_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The service attachment which is the target of the PSC
    +     * connection, in the form of
    +     * projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
    +     * 
    + * + * + * string service_attachment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearServiceAttachment() { + serviceAttachment_ = getDefaultInstance().getServiceAttachment(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The service attachment which is the target of the PSC
    +     * connection, in the form of
    +     * projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
    +     * 
    + * + * + * string service_attachment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for serviceAttachment to set. + * @return This builder for chaining. + */ + public Builder setServiceAttachmentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAttachment_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private int pscConnectionStatus_ = 0; + /** + * + * + *
    +     * Output only. The status of the PSC connection.
    +     * Please note that this value is updated periodically.
    +     * Please use Private Service Connect APIs for the latest status.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for pscConnectionStatus. + */ + @java.lang.Override + public int getPscConnectionStatusValue() { + return pscConnectionStatus_; + } + /** + * + * + *
    +     * Output only. The status of the PSC connection.
    +     * Please note that this value is updated periodically.
    +     * Please use Private Service Connect APIs for the latest status.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for pscConnectionStatus to set. + * @return This builder for chaining. + */ + public Builder setPscConnectionStatusValue(int value) { + pscConnectionStatus_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The status of the PSC connection.
    +     * Please note that this value is updated periodically.
    +     * Please use Private Service Connect APIs for the latest status.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pscConnectionStatus. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.PscConnectionStatus getPscConnectionStatus() { + com.google.cloud.redis.cluster.v1.PscConnectionStatus result = + com.google.cloud.redis.cluster.v1.PscConnectionStatus.forNumber(pscConnectionStatus_); + return result == null + ? com.google.cloud.redis.cluster.v1.PscConnectionStatus.UNRECOGNIZED + : result; + } + /** + * + * + *
    +     * Output only. The status of the PSC connection.
    +     * Please note that this value is updated periodically.
    +     * Please use Private Service Connect APIs for the latest status.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The pscConnectionStatus to set. + * @return This builder for chaining. + */ + public Builder setPscConnectionStatus( + com.google.cloud.redis.cluster.v1.PscConnectionStatus value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + pscConnectionStatus_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The status of the PSC connection.
    +     * Please note that this value is updated periodically.
    +     * Please use Private Service Connect APIs for the latest status.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearPscConnectionStatus() { + bitField0_ = (bitField0_ & ~0x00000040); + pscConnectionStatus_ = 0; + onChanged(); + return this; + } + + private int connectionType_ = 0; + /** + * + * + *
    +     * Output only. Type of the PSC connection.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.ConnectionType connection_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for connectionType. + */ + @java.lang.Override + public int getConnectionTypeValue() { + return connectionType_; + } + /** + * + * + *
    +     * Output only. Type of the PSC connection.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.ConnectionType connection_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for connectionType to set. + * @return This builder for chaining. + */ + public Builder setConnectionTypeValue(int value) { + connectionType_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Type of the PSC connection.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.ConnectionType connection_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The connectionType. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ConnectionType getConnectionType() { + com.google.cloud.redis.cluster.v1.ConnectionType result = + com.google.cloud.redis.cluster.v1.ConnectionType.forNumber(connectionType_); + return result == null + ? com.google.cloud.redis.cluster.v1.ConnectionType.UNRECOGNIZED + : result; + } + /** + * + * + *
    +     * Output only. Type of the PSC connection.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.ConnectionType connection_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The connectionType to set. + * @return This builder for chaining. + */ + public Builder setConnectionType(com.google.cloud.redis.cluster.v1.ConnectionType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + connectionType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Type of the PSC connection.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.ConnectionType connection_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearConnectionType() { + bitField0_ = (bitField0_ & ~0x00000080); + connectionType_ = 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.redis.cluster.v1.PscAutoConnection) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.PscAutoConnection) + private static final com.google.cloud.redis.cluster.v1.PscAutoConnection DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.PscAutoConnection(); + } + + public static com.google.cloud.redis.cluster.v1.PscAutoConnection getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PscAutoConnection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.PscAutoConnection getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/PscAutoConnectionOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/PscAutoConnectionOrBuilder.java new file mode 100644 index 000000000000..df78e22e32ef --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/PscAutoConnectionOrBuilder.java @@ -0,0 +1,270 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +public interface PscAutoConnectionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.PscAutoConnection) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Output only. The PSC connection id of the forwarding rule connected to the
    +   * service attachment.
    +   * 
    + * + * string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The pscConnectionId. + */ + java.lang.String getPscConnectionId(); + /** + * + * + *
    +   * Output only. The PSC connection id of the forwarding rule connected to the
    +   * service attachment.
    +   * 
    + * + * string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for pscConnectionId. + */ + com.google.protobuf.ByteString getPscConnectionIdBytes(); + + /** + * + * + *
    +   * Output only. The IP allocated on the consumer network for the PSC
    +   * forwarding rule.
    +   * 
    + * + * + * string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The address. + */ + java.lang.String getAddress(); + /** + * + * + *
    +   * Output only. The IP allocated on the consumer network for the PSC
    +   * forwarding rule.
    +   * 
    + * + * + * string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for address. + */ + com.google.protobuf.ByteString getAddressBytes(); + + /** + * + * + *
    +   * Output only. The URI of the consumer side forwarding rule.
    +   * Example:
    +   * projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
    +   * 
    + * + * + * string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The forwardingRule. + */ + java.lang.String getForwardingRule(); + /** + * + * + *
    +   * Output only. The URI of the consumer side forwarding rule.
    +   * Example:
    +   * projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
    +   * 
    + * + * + * string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for forwardingRule. + */ + com.google.protobuf.ByteString getForwardingRuleBytes(); + + /** + * + * + *
    +   * Required. The consumer project_id where the forwarding rule is created
    +   * from.
    +   * 
    + * + * string project_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The projectId. + */ + java.lang.String getProjectId(); + /** + * + * + *
    +   * Required. The consumer project_id where the forwarding rule is created
    +   * from.
    +   * 
    + * + * string project_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for projectId. + */ + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
    +   * Required. The consumer network where the IP address resides, in the form of
    +   * projects/{project_id}/global/networks/{network_id}.
    +   * 
    + * + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The network. + */ + java.lang.String getNetwork(); + /** + * + * + *
    +   * Required. The consumer network where the IP address resides, in the form of
    +   * projects/{project_id}/global/networks/{network_id}.
    +   * 
    + * + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for network. + */ + com.google.protobuf.ByteString getNetworkBytes(); + + /** + * + * + *
    +   * Output only. The service attachment which is the target of the PSC
    +   * connection, in the form of
    +   * projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
    +   * 
    + * + * + * string service_attachment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The serviceAttachment. + */ + java.lang.String getServiceAttachment(); + /** + * + * + *
    +   * Output only. The service attachment which is the target of the PSC
    +   * connection, in the form of
    +   * projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
    +   * 
    + * + * + * string service_attachment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for serviceAttachment. + */ + com.google.protobuf.ByteString getServiceAttachmentBytes(); + + /** + * + * + *
    +   * Output only. The status of the PSC connection.
    +   * Please note that this value is updated periodically.
    +   * Please use Private Service Connect APIs for the latest status.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for pscConnectionStatus. + */ + int getPscConnectionStatusValue(); + /** + * + * + *
    +   * Output only. The status of the PSC connection.
    +   * Please note that this value is updated periodically.
    +   * Please use Private Service Connect APIs for the latest status.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pscConnectionStatus. + */ + com.google.cloud.redis.cluster.v1.PscConnectionStatus getPscConnectionStatus(); + + /** + * + * + *
    +   * Output only. Type of the PSC connection.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.ConnectionType connection_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for connectionType. + */ + int getConnectionTypeValue(); + /** + * + * + *
    +   * Output only. Type of the PSC connection.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.ConnectionType connection_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The connectionType. + */ + com.google.cloud.redis.cluster.v1.ConnectionType getConnectionType(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/PscConnection.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/PscConnection.java index d309b1768afa..1851b6e0370b 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/PscConnection.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/PscConnection.java @@ -44,6 +44,9 @@ private PscConnection() { forwardingRule_ = ""; projectId_ = ""; network_ = ""; + serviceAttachment_ = ""; + pscConnectionStatus_ = 0; + connectionType_ = 0; } @java.lang.Override @@ -75,11 +78,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Output only. The PSC connection id of the forwarding rule connected to the
    +   * Required. The PSC connection id of the forwarding rule connected to the
        * service attachment.
        * 
    * - * string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string psc_connection_id = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The pscConnectionId. */ @@ -99,11 +102,11 @@ public java.lang.String getPscConnectionId() { * * *
    -   * Output only. The PSC connection id of the forwarding rule connected to the
    +   * Required. The PSC connection id of the forwarding rule connected to the
        * service attachment.
        * 
    * - * string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string psc_connection_id = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for pscConnectionId. */ @@ -128,11 +131,13 @@ public com.google.protobuf.ByteString getPscConnectionIdBytes() { * * *
    -   * Output only. The IP allocated on the consumer network for the PSC
    -   * forwarding rule.
    +   * Required. The IP allocated on the consumer network for the PSC forwarding
    +   * rule.
        * 
    * - * string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * * * @return The address. */ @@ -152,11 +157,13 @@ public java.lang.String getAddress() { * * *
    -   * Output only. The IP allocated on the consumer network for the PSC
    -   * forwarding rule.
    +   * Required. The IP allocated on the consumer network for the PSC forwarding
    +   * rule.
        * 
    * - * string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * * * @return The bytes for address. */ @@ -181,12 +188,14 @@ public com.google.protobuf.ByteString getAddressBytes() { * * *
    -   * Output only. The URI of the consumer side forwarding rule.
    +   * Required. The URI of the consumer side forwarding rule.
        * Example:
        * projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
        * 
    * - * string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string forwarding_rule = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The forwardingRule. */ @@ -206,12 +215,14 @@ public java.lang.String getForwardingRule() { * * *
    -   * Output only. The URI of the consumer side forwarding rule.
    +   * Required. The URI of the consumer side forwarding rule.
        * Example:
        * projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
        * 
    * - * string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string forwarding_rule = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for forwardingRule. */ @@ -236,11 +247,11 @@ public com.google.protobuf.ByteString getForwardingRuleBytes() { * * *
    -   * Output only. The consumer project_id where the forwarding rule is created
    -   * from.
    +   * Optional. Project ID of the consumer project where the forwarding rule is
    +   * created in.
        * 
    * - * string project_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string project_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The projectId. */ @@ -260,11 +271,11 @@ public java.lang.String getProjectId() { * * *
    -   * Output only. The consumer project_id where the forwarding rule is created
    -   * from.
    +   * Optional. Project ID of the consumer project where the forwarding rule is
    +   * created in.
        * 
    * - * string project_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string project_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for projectId. */ @@ -289,11 +300,13 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
    -   * The consumer network where the IP address resides, in the form of
    +   * Required. The consumer network where the IP address resides, in the form of
        * projects/{project_id}/global/networks/{network_id}.
        * 
    * - * string network = 5; + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The network. */ @@ -313,11 +326,13 @@ public java.lang.String getNetwork() { * * *
    -   * The consumer network where the IP address resides, in the form of
    +   * Required. The consumer network where the IP address resides, in the form of
        * projects/{project_id}/global/networks/{network_id}.
        * 
    * - * string network = 5; + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for network. */ @@ -334,6 +349,151 @@ public com.google.protobuf.ByteString getNetworkBytes() { } } + public static final int SERVICE_ATTACHMENT_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAttachment_ = ""; + /** + * + * + *
    +   * Required. The service attachment which is the target of the PSC connection,
    +   * in the form of
    +   * projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
    +   * 
    + * + * + * string service_attachment = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The serviceAttachment. + */ + @java.lang.Override + public java.lang.String getServiceAttachment() { + java.lang.Object ref = serviceAttachment_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAttachment_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. The service attachment which is the target of the PSC connection,
    +   * in the form of
    +   * projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
    +   * 
    + * + * + * string service_attachment = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for serviceAttachment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAttachmentBytes() { + java.lang.Object ref = serviceAttachment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAttachment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PSC_CONNECTION_STATUS_FIELD_NUMBER = 8; + private int pscConnectionStatus_ = 0; + /** + * + * + *
    +   * Output only. The status of the PSC connection.
    +   * Please note that this value is updated periodically.
    +   * To get the latest status of a PSC connection, follow
    +   * https://cloud.google.com/vpc/docs/configure-private-service-connect-services#endpoint-details.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for pscConnectionStatus. + */ + @java.lang.Override + public int getPscConnectionStatusValue() { + return pscConnectionStatus_; + } + /** + * + * + *
    +   * Output only. The status of the PSC connection.
    +   * Please note that this value is updated periodically.
    +   * To get the latest status of a PSC connection, follow
    +   * https://cloud.google.com/vpc/docs/configure-private-service-connect-services#endpoint-details.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pscConnectionStatus. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.PscConnectionStatus getPscConnectionStatus() { + com.google.cloud.redis.cluster.v1.PscConnectionStatus result = + com.google.cloud.redis.cluster.v1.PscConnectionStatus.forNumber(pscConnectionStatus_); + return result == null + ? com.google.cloud.redis.cluster.v1.PscConnectionStatus.UNRECOGNIZED + : result; + } + + public static final int CONNECTION_TYPE_FIELD_NUMBER = 10; + private int connectionType_ = 0; + /** + * + * + *
    +   * Output only. Type of the PSC connection.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.ConnectionType connection_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for connectionType. + */ + @java.lang.Override + public int getConnectionTypeValue() { + return connectionType_; + } + /** + * + * + *
    +   * Output only. Type of the PSC connection.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.ConnectionType connection_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The connectionType. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ConnectionType getConnectionType() { + com.google.cloud.redis.cluster.v1.ConnectionType result = + com.google.cloud.redis.cluster.v1.ConnectionType.forNumber(connectionType_); + return result == null ? com.google.cloud.redis.cluster.v1.ConnectionType.UNRECOGNIZED : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -363,6 +523,19 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, network_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAttachment_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, serviceAttachment_); + } + if (pscConnectionStatus_ + != com.google.cloud.redis.cluster.v1.PscConnectionStatus.PSC_CONNECTION_STATUS_UNSPECIFIED + .getNumber()) { + output.writeEnum(8, pscConnectionStatus_); + } + if (connectionType_ + != com.google.cloud.redis.cluster.v1.ConnectionType.CONNECTION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(10, connectionType_); + } getUnknownFields().writeTo(output); } @@ -387,6 +560,19 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, network_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAttachment_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, serviceAttachment_); + } + if (pscConnectionStatus_ + != com.google.cloud.redis.cluster.v1.PscConnectionStatus.PSC_CONNECTION_STATUS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, pscConnectionStatus_); + } + if (connectionType_ + != com.google.cloud.redis.cluster.v1.ConnectionType.CONNECTION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, connectionType_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -408,6 +594,9 @@ public boolean equals(final java.lang.Object obj) { if (!getForwardingRule().equals(other.getForwardingRule())) return false; if (!getProjectId().equals(other.getProjectId())) return false; if (!getNetwork().equals(other.getNetwork())) return false; + if (!getServiceAttachment().equals(other.getServiceAttachment())) return false; + if (pscConnectionStatus_ != other.pscConnectionStatus_) return false; + if (connectionType_ != other.connectionType_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -429,6 +618,12 @@ public int hashCode() { hash = (53 * hash) + getProjectId().hashCode(); hash = (37 * hash) + NETWORK_FIELD_NUMBER; hash = (53 * hash) + getNetwork().hashCode(); + hash = (37 * hash) + SERVICE_ATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getServiceAttachment().hashCode(); + hash = (37 * hash) + PSC_CONNECTION_STATUS_FIELD_NUMBER; + hash = (53 * hash) + pscConnectionStatus_; + hash = (37 * hash) + CONNECTION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + connectionType_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -573,6 +768,9 @@ public Builder clear() { forwardingRule_ = ""; projectId_ = ""; network_ = ""; + serviceAttachment_ = ""; + pscConnectionStatus_ = 0; + connectionType_ = 0; return this; } @@ -624,6 +822,15 @@ private void buildPartial0(com.google.cloud.redis.cluster.v1.PscConnection resul if (((from_bitField0_ & 0x00000010) != 0)) { result.network_ = network_; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.serviceAttachment_ = serviceAttachment_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.pscConnectionStatus_ = pscConnectionStatus_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.connectionType_ = connectionType_; + } } @java.lang.Override @@ -697,6 +904,17 @@ public Builder mergeFrom(com.google.cloud.redis.cluster.v1.PscConnection other) bitField0_ |= 0x00000010; onChanged(); } + if (!other.getServiceAttachment().isEmpty()) { + serviceAttachment_ = other.serviceAttachment_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.pscConnectionStatus_ != 0) { + setPscConnectionStatusValue(other.getPscConnectionStatusValue()); + } + if (other.connectionType_ != 0) { + setConnectionTypeValue(other.getConnectionTypeValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -753,6 +971,24 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 42 + case 50: + { + serviceAttachment_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 64: + { + pscConnectionStatus_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 64 + case 80: + { + connectionType_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 80 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -777,11 +1013,11 @@ public Builder mergeFrom( * * *
    -     * Output only. The PSC connection id of the forwarding rule connected to the
    +     * Required. The PSC connection id of the forwarding rule connected to the
          * service attachment.
          * 
    * - * string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string psc_connection_id = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The pscConnectionId. */ @@ -800,11 +1036,11 @@ public java.lang.String getPscConnectionId() { * * *
    -     * Output only. The PSC connection id of the forwarding rule connected to the
    +     * Required. The PSC connection id of the forwarding rule connected to the
          * service attachment.
          * 
    * - * string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string psc_connection_id = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for pscConnectionId. */ @@ -823,11 +1059,11 @@ public com.google.protobuf.ByteString getPscConnectionIdBytes() { * * *
    -     * Output only. The PSC connection id of the forwarding rule connected to the
    +     * Required. The PSC connection id of the forwarding rule connected to the
          * service attachment.
          * 
    * - * string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string psc_connection_id = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The pscConnectionId to set. * @return This builder for chaining. @@ -845,11 +1081,11 @@ public Builder setPscConnectionId(java.lang.String value) { * * *
    -     * Output only. The PSC connection id of the forwarding rule connected to the
    +     * Required. The PSC connection id of the forwarding rule connected to the
          * service attachment.
          * 
    * - * string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string psc_connection_id = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -863,11 +1099,11 @@ public Builder clearPscConnectionId() { * * *
    -     * Output only. The PSC connection id of the forwarding rule connected to the
    +     * Required. The PSC connection id of the forwarding rule connected to the
          * service attachment.
          * 
    * - * string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string psc_connection_id = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for pscConnectionId to set. * @return This builder for chaining. @@ -888,11 +1124,13 @@ public Builder setPscConnectionIdBytes(com.google.protobuf.ByteString value) { * * *
    -     * Output only. The IP allocated on the consumer network for the PSC
    -     * forwarding rule.
    +     * Required. The IP allocated on the consumer network for the PSC forwarding
    +     * rule.
          * 
    * - * string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * * * @return The address. */ @@ -911,11 +1149,13 @@ public java.lang.String getAddress() { * * *
    -     * Output only. The IP allocated on the consumer network for the PSC
    -     * forwarding rule.
    +     * Required. The IP allocated on the consumer network for the PSC forwarding
    +     * rule.
          * 
    * - * string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * * * @return The bytes for address. */ @@ -934,11 +1174,13 @@ public com.google.protobuf.ByteString getAddressBytes() { * * *
    -     * Output only. The IP allocated on the consumer network for the PSC
    -     * forwarding rule.
    +     * Required. The IP allocated on the consumer network for the PSC forwarding
    +     * rule.
          * 
    * - * string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * * * @param value The address to set. * @return This builder for chaining. @@ -956,11 +1198,13 @@ public Builder setAddress(java.lang.String value) { * * *
    -     * Output only. The IP allocated on the consumer network for the PSC
    -     * forwarding rule.
    +     * Required. The IP allocated on the consumer network for the PSC forwarding
    +     * rule.
          * 
    * - * string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * * * @return This builder for chaining. */ @@ -974,11 +1218,13 @@ public Builder clearAddress() { * * *
    -     * Output only. The IP allocated on the consumer network for the PSC
    -     * forwarding rule.
    +     * Required. The IP allocated on the consumer network for the PSC forwarding
    +     * rule.
          * 
    * - * string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * * * @param value The bytes for address to set. * @return This builder for chaining. @@ -999,12 +1245,14 @@ public Builder setAddressBytes(com.google.protobuf.ByteString value) { * * *
    -     * Output only. The URI of the consumer side forwarding rule.
    +     * Required. The URI of the consumer side forwarding rule.
          * Example:
          * projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
          * 
    * - * string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string forwarding_rule = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The forwardingRule. */ @@ -1023,12 +1271,14 @@ public java.lang.String getForwardingRule() { * * *
    -     * Output only. The URI of the consumer side forwarding rule.
    +     * Required. The URI of the consumer side forwarding rule.
          * Example:
          * projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
          * 
    * - * string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string forwarding_rule = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for forwardingRule. */ @@ -1047,12 +1297,14 @@ public com.google.protobuf.ByteString getForwardingRuleBytes() { * * *
    -     * Output only. The URI of the consumer side forwarding rule.
    +     * Required. The URI of the consumer side forwarding rule.
          * Example:
          * projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
          * 
    * - * string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string forwarding_rule = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The forwardingRule to set. * @return This builder for chaining. @@ -1070,12 +1322,14 @@ public Builder setForwardingRule(java.lang.String value) { * * *
    -     * Output only. The URI of the consumer side forwarding rule.
    +     * Required. The URI of the consumer side forwarding rule.
          * Example:
          * projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
          * 
    * - * string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string forwarding_rule = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -1089,12 +1343,14 @@ public Builder clearForwardingRule() { * * *
    -     * Output only. The URI of the consumer side forwarding rule.
    +     * Required. The URI of the consumer side forwarding rule.
          * Example:
          * projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
          * 
    * - * string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string forwarding_rule = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for forwardingRule to set. * @return This builder for chaining. @@ -1115,11 +1371,11 @@ public Builder setForwardingRuleBytes(com.google.protobuf.ByteString value) { * * *
    -     * Output only. The consumer project_id where the forwarding rule is created
    -     * from.
    +     * Optional. Project ID of the consumer project where the forwarding rule is
    +     * created in.
          * 
    * - * string project_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string project_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The projectId. */ @@ -1138,11 +1394,11 @@ public java.lang.String getProjectId() { * * *
    -     * Output only. The consumer project_id where the forwarding rule is created
    -     * from.
    +     * Optional. Project ID of the consumer project where the forwarding rule is
    +     * created in.
          * 
    * - * string project_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string project_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for projectId. */ @@ -1161,11 +1417,11 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
    -     * Output only. The consumer project_id where the forwarding rule is created
    -     * from.
    +     * Optional. Project ID of the consumer project where the forwarding rule is
    +     * created in.
          * 
    * - * string project_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string project_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The projectId to set. * @return This builder for chaining. @@ -1183,11 +1439,11 @@ public Builder setProjectId(java.lang.String value) { * * *
    -     * Output only. The consumer project_id where the forwarding rule is created
    -     * from.
    +     * Optional. Project ID of the consumer project where the forwarding rule is
    +     * created in.
          * 
    * - * string project_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string project_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1201,11 +1457,11 @@ public Builder clearProjectId() { * * *
    -     * Output only. The consumer project_id where the forwarding rule is created
    -     * from.
    +     * Optional. Project ID of the consumer project where the forwarding rule is
    +     * created in.
          * 
    * - * string project_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string project_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for projectId to set. * @return This builder for chaining. @@ -1226,11 +1482,13 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * * *
    -     * The consumer network where the IP address resides, in the form of
    +     * Required. The consumer network where the IP address resides, in the form of
          * projects/{project_id}/global/networks/{network_id}.
          * 
    * - * string network = 5; + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The network. */ @@ -1249,11 +1507,13 @@ public java.lang.String getNetwork() { * * *
    -     * The consumer network where the IP address resides, in the form of
    +     * Required. The consumer network where the IP address resides, in the form of
          * projects/{project_id}/global/networks/{network_id}.
          * 
    * - * string network = 5; + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for network. */ @@ -1272,11 +1532,13 @@ public com.google.protobuf.ByteString getNetworkBytes() { * * *
    -     * The consumer network where the IP address resides, in the form of
    +     * Required. The consumer network where the IP address resides, in the form of
          * projects/{project_id}/global/networks/{network_id}.
          * 
    * - * string network = 5; + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The network to set. * @return This builder for chaining. @@ -1294,11 +1556,13 @@ public Builder setNetwork(java.lang.String value) { * * *
    -     * The consumer network where the IP address resides, in the form of
    +     * Required. The consumer network where the IP address resides, in the form of
          * projects/{project_id}/global/networks/{network_id}.
          * 
    * - * string network = 5; + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -1312,11 +1576,13 @@ public Builder clearNetwork() { * * *
    -     * The consumer network where the IP address resides, in the form of
    +     * Required. The consumer network where the IP address resides, in the form of
          * projects/{project_id}/global/networks/{network_id}.
          * 
    * - * string network = 5; + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for network to set. * @return This builder for chaining. @@ -1332,6 +1598,352 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object serviceAttachment_ = ""; + /** + * + * + *
    +     * Required. The service attachment which is the target of the PSC connection,
    +     * in the form of
    +     * projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
    +     * 
    + * + * + * string service_attachment = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The serviceAttachment. + */ + public java.lang.String getServiceAttachment() { + java.lang.Object ref = serviceAttachment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAttachment_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. The service attachment which is the target of the PSC connection,
    +     * in the form of
    +     * projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
    +     * 
    + * + * + * string service_attachment = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for serviceAttachment. + */ + public com.google.protobuf.ByteString getServiceAttachmentBytes() { + java.lang.Object ref = serviceAttachment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAttachment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. The service attachment which is the target of the PSC connection,
    +     * in the form of
    +     * projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
    +     * 
    + * + * + * string service_attachment = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The serviceAttachment to set. + * @return This builder for chaining. + */ + public Builder setServiceAttachment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceAttachment_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The service attachment which is the target of the PSC connection,
    +     * in the form of
    +     * projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
    +     * 
    + * + * + * string service_attachment = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearServiceAttachment() { + serviceAttachment_ = getDefaultInstance().getServiceAttachment(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The service attachment which is the target of the PSC connection,
    +     * in the form of
    +     * projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
    +     * 
    + * + * + * string service_attachment = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for serviceAttachment to set. + * @return This builder for chaining. + */ + public Builder setServiceAttachmentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAttachment_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private int pscConnectionStatus_ = 0; + /** + * + * + *
    +     * Output only. The status of the PSC connection.
    +     * Please note that this value is updated periodically.
    +     * To get the latest status of a PSC connection, follow
    +     * https://cloud.google.com/vpc/docs/configure-private-service-connect-services#endpoint-details.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for pscConnectionStatus. + */ + @java.lang.Override + public int getPscConnectionStatusValue() { + return pscConnectionStatus_; + } + /** + * + * + *
    +     * Output only. The status of the PSC connection.
    +     * Please note that this value is updated periodically.
    +     * To get the latest status of a PSC connection, follow
    +     * https://cloud.google.com/vpc/docs/configure-private-service-connect-services#endpoint-details.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for pscConnectionStatus to set. + * @return This builder for chaining. + */ + public Builder setPscConnectionStatusValue(int value) { + pscConnectionStatus_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The status of the PSC connection.
    +     * Please note that this value is updated periodically.
    +     * To get the latest status of a PSC connection, follow
    +     * https://cloud.google.com/vpc/docs/configure-private-service-connect-services#endpoint-details.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pscConnectionStatus. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.PscConnectionStatus getPscConnectionStatus() { + com.google.cloud.redis.cluster.v1.PscConnectionStatus result = + com.google.cloud.redis.cluster.v1.PscConnectionStatus.forNumber(pscConnectionStatus_); + return result == null + ? com.google.cloud.redis.cluster.v1.PscConnectionStatus.UNRECOGNIZED + : result; + } + /** + * + * + *
    +     * Output only. The status of the PSC connection.
    +     * Please note that this value is updated periodically.
    +     * To get the latest status of a PSC connection, follow
    +     * https://cloud.google.com/vpc/docs/configure-private-service-connect-services#endpoint-details.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The pscConnectionStatus to set. + * @return This builder for chaining. + */ + public Builder setPscConnectionStatus( + com.google.cloud.redis.cluster.v1.PscConnectionStatus value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + pscConnectionStatus_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The status of the PSC connection.
    +     * Please note that this value is updated periodically.
    +     * To get the latest status of a PSC connection, follow
    +     * https://cloud.google.com/vpc/docs/configure-private-service-connect-services#endpoint-details.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearPscConnectionStatus() { + bitField0_ = (bitField0_ & ~0x00000040); + pscConnectionStatus_ = 0; + onChanged(); + return this; + } + + private int connectionType_ = 0; + /** + * + * + *
    +     * Output only. Type of the PSC connection.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.ConnectionType connection_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for connectionType. + */ + @java.lang.Override + public int getConnectionTypeValue() { + return connectionType_; + } + /** + * + * + *
    +     * Output only. Type of the PSC connection.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.ConnectionType connection_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for connectionType to set. + * @return This builder for chaining. + */ + public Builder setConnectionTypeValue(int value) { + connectionType_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Type of the PSC connection.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.ConnectionType connection_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The connectionType. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ConnectionType getConnectionType() { + com.google.cloud.redis.cluster.v1.ConnectionType result = + com.google.cloud.redis.cluster.v1.ConnectionType.forNumber(connectionType_); + return result == null + ? com.google.cloud.redis.cluster.v1.ConnectionType.UNRECOGNIZED + : result; + } + /** + * + * + *
    +     * Output only. Type of the PSC connection.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.ConnectionType connection_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The connectionType to set. + * @return This builder for chaining. + */ + public Builder setConnectionType(com.google.cloud.redis.cluster.v1.ConnectionType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + connectionType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Type of the PSC connection.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.ConnectionType connection_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearConnectionType() { + bitField0_ = (bitField0_ & ~0x00000080); + connectionType_ = 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-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/PscConnectionOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/PscConnectionOrBuilder.java index 7c178f3344d7..5c0442309916 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/PscConnectionOrBuilder.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/PscConnectionOrBuilder.java @@ -28,11 +28,11 @@ public interface PscConnectionOrBuilder * * *
    -   * Output only. The PSC connection id of the forwarding rule connected to the
    +   * Required. The PSC connection id of the forwarding rule connected to the
        * service attachment.
        * 
    * - * string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string psc_connection_id = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The pscConnectionId. */ @@ -41,11 +41,11 @@ public interface PscConnectionOrBuilder * * *
    -   * Output only. The PSC connection id of the forwarding rule connected to the
    +   * Required. The PSC connection id of the forwarding rule connected to the
        * service attachment.
        * 
    * - * string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string psc_connection_id = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for pscConnectionId. */ @@ -55,11 +55,13 @@ public interface PscConnectionOrBuilder * * *
    -   * Output only. The IP allocated on the consumer network for the PSC
    -   * forwarding rule.
    +   * Required. The IP allocated on the consumer network for the PSC forwarding
    +   * rule.
        * 
    * - * string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * * * @return The address. */ @@ -68,11 +70,13 @@ public interface PscConnectionOrBuilder * * *
    -   * Output only. The IP allocated on the consumer network for the PSC
    -   * forwarding rule.
    +   * Required. The IP allocated on the consumer network for the PSC forwarding
    +   * rule.
        * 
    * - * string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * * * @return The bytes for address. */ @@ -82,12 +86,14 @@ public interface PscConnectionOrBuilder * * *
    -   * Output only. The URI of the consumer side forwarding rule.
    +   * Required. The URI of the consumer side forwarding rule.
        * Example:
        * projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
        * 
    * - * string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string forwarding_rule = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The forwardingRule. */ @@ -96,12 +102,14 @@ public interface PscConnectionOrBuilder * * *
    -   * Output only. The URI of the consumer side forwarding rule.
    +   * Required. The URI of the consumer side forwarding rule.
        * Example:
        * projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
        * 
    * - * string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string forwarding_rule = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for forwardingRule. */ @@ -111,11 +119,11 @@ public interface PscConnectionOrBuilder * * *
    -   * Output only. The consumer project_id where the forwarding rule is created
    -   * from.
    +   * Optional. Project ID of the consumer project where the forwarding rule is
    +   * created in.
        * 
    * - * string project_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string project_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The projectId. */ @@ -124,11 +132,11 @@ public interface PscConnectionOrBuilder * * *
    -   * Output only. The consumer project_id where the forwarding rule is created
    -   * from.
    +   * Optional. Project ID of the consumer project where the forwarding rule is
    +   * created in.
        * 
    * - * string project_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string project_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for projectId. */ @@ -138,11 +146,13 @@ public interface PscConnectionOrBuilder * * *
    -   * The consumer network where the IP address resides, in the form of
    +   * Required. The consumer network where the IP address resides, in the form of
        * projects/{project_id}/global/networks/{network_id}.
        * 
    * - * string network = 5; + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The network. */ @@ -151,13 +161,112 @@ public interface PscConnectionOrBuilder * * *
    -   * The consumer network where the IP address resides, in the form of
    +   * Required. The consumer network where the IP address resides, in the form of
        * projects/{project_id}/global/networks/{network_id}.
        * 
    * - * string network = 5; + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for network. */ com.google.protobuf.ByteString getNetworkBytes(); + + /** + * + * + *
    +   * Required. The service attachment which is the target of the PSC connection,
    +   * in the form of
    +   * projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
    +   * 
    + * + * + * string service_attachment = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The serviceAttachment. + */ + java.lang.String getServiceAttachment(); + /** + * + * + *
    +   * Required. The service attachment which is the target of the PSC connection,
    +   * in the form of
    +   * projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
    +   * 
    + * + * + * string service_attachment = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for serviceAttachment. + */ + com.google.protobuf.ByteString getServiceAttachmentBytes(); + + /** + * + * + *
    +   * Output only. The status of the PSC connection.
    +   * Please note that this value is updated periodically.
    +   * To get the latest status of a PSC connection, follow
    +   * https://cloud.google.com/vpc/docs/configure-private-service-connect-services#endpoint-details.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for pscConnectionStatus. + */ + int getPscConnectionStatusValue(); + /** + * + * + *
    +   * Output only. The status of the PSC connection.
    +   * Please note that this value is updated periodically.
    +   * To get the latest status of a PSC connection, follow
    +   * https://cloud.google.com/vpc/docs/configure-private-service-connect-services#endpoint-details.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pscConnectionStatus. + */ + com.google.cloud.redis.cluster.v1.PscConnectionStatus getPscConnectionStatus(); + + /** + * + * + *
    +   * Output only. Type of the PSC connection.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.ConnectionType connection_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for connectionType. + */ + int getConnectionTypeValue(); + /** + * + * + *
    +   * Output only. Type of the PSC connection.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.ConnectionType connection_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The connectionType. + */ + com.google.cloud.redis.cluster.v1.ConnectionType getConnectionType(); } diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/PscConnectionStatus.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/PscConnectionStatus.java new file mode 100644 index 000000000000..b6a9f2a2e8af --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/PscConnectionStatus.java @@ -0,0 +1,182 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
    + * Status of the PSC connection.
    + * 
    + * + * Protobuf enum {@code google.cloud.redis.cluster.v1.PscConnectionStatus} + */ +public enum PscConnectionStatus implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +   * PSC connection status is not specified.
    +   * 
    + * + * PSC_CONNECTION_STATUS_UNSPECIFIED = 0; + */ + PSC_CONNECTION_STATUS_UNSPECIFIED(0), + /** + * + * + *
    +   * The connection is active
    +   * 
    + * + * PSC_CONNECTION_STATUS_ACTIVE = 1; + */ + PSC_CONNECTION_STATUS_ACTIVE(1), + /** + * + * + *
    +   * Connection not found
    +   * 
    + * + * PSC_CONNECTION_STATUS_NOT_FOUND = 2; + */ + PSC_CONNECTION_STATUS_NOT_FOUND(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +   * PSC connection status is not specified.
    +   * 
    + * + * PSC_CONNECTION_STATUS_UNSPECIFIED = 0; + */ + public static final int PSC_CONNECTION_STATUS_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +   * The connection is active
    +   * 
    + * + * PSC_CONNECTION_STATUS_ACTIVE = 1; + */ + public static final int PSC_CONNECTION_STATUS_ACTIVE_VALUE = 1; + /** + * + * + *
    +   * Connection not found
    +   * 
    + * + * PSC_CONNECTION_STATUS_NOT_FOUND = 2; + */ + public static final int PSC_CONNECTION_STATUS_NOT_FOUND_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 PscConnectionStatus 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 PscConnectionStatus forNumber(int value) { + switch (value) { + case 0: + return PSC_CONNECTION_STATUS_UNSPECIFIED; + case 1: + return PSC_CONNECTION_STATUS_ACTIVE; + case 2: + return PSC_CONNECTION_STATUS_NOT_FOUND; + 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 PscConnectionStatus findValueByNumber(int number) { + return PscConnectionStatus.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.redis.cluster.v1.CloudRedisClusterProto.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final PscConnectionStatus[] VALUES = values(); + + public static PscConnectionStatus 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 PscConnectionStatus(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.redis.cluster.v1.PscConnectionStatus) +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/PscServiceAttachment.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/PscServiceAttachment.java new file mode 100644 index 000000000000..95108558e8aa --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/PscServiceAttachment.java @@ -0,0 +1,803 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
    + * Configuration of a service attachment of the cluster, for creating PSC
    + * connections.
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.PscServiceAttachment} + */ +public final class PscServiceAttachment extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.PscServiceAttachment) + PscServiceAttachmentOrBuilder { + private static final long serialVersionUID = 0L; + // Use PscServiceAttachment.newBuilder() to construct. + private PscServiceAttachment(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PscServiceAttachment() { + serviceAttachment_ = ""; + connectionType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PscServiceAttachment(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_PscServiceAttachment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_PscServiceAttachment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.PscServiceAttachment.class, + com.google.cloud.redis.cluster.v1.PscServiceAttachment.Builder.class); + } + + public static final int SERVICE_ATTACHMENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAttachment_ = ""; + /** + * + * + *
    +   * Output only. Service attachment URI which your self-created PscConnection
    +   * should use as target
    +   * 
    + * + * string service_attachment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serviceAttachment. + */ + @java.lang.Override + public java.lang.String getServiceAttachment() { + java.lang.Object ref = serviceAttachment_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAttachment_ = s; + return s; + } + } + /** + * + * + *
    +   * Output only. Service attachment URI which your self-created PscConnection
    +   * should use as target
    +   * 
    + * + * string service_attachment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serviceAttachment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAttachmentBytes() { + java.lang.Object ref = serviceAttachment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAttachment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONNECTION_TYPE_FIELD_NUMBER = 3; + private int connectionType_ = 0; + /** + * + * + *
    +   * Output only. Type of a PSC connection targeting this service attachment.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.ConnectionType connection_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for connectionType. + */ + @java.lang.Override + public int getConnectionTypeValue() { + return connectionType_; + } + /** + * + * + *
    +   * Output only. Type of a PSC connection targeting this service attachment.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.ConnectionType connection_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The connectionType. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ConnectionType getConnectionType() { + com.google.cloud.redis.cluster.v1.ConnectionType result = + com.google.cloud.redis.cluster.v1.ConnectionType.forNumber(connectionType_); + return result == null ? com.google.cloud.redis.cluster.v1.ConnectionType.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(serviceAttachment_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceAttachment_); + } + if (connectionType_ + != com.google.cloud.redis.cluster.v1.ConnectionType.CONNECTION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, connectionType_); + } + 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(serviceAttachment_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceAttachment_); + } + if (connectionType_ + != com.google.cloud.redis.cluster.v1.ConnectionType.CONNECTION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, connectionType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1.PscServiceAttachment)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.PscServiceAttachment other = + (com.google.cloud.redis.cluster.v1.PscServiceAttachment) obj; + + if (!getServiceAttachment().equals(other.getServiceAttachment())) return false; + if (connectionType_ != other.connectionType_) return false; + if (!getUnknownFields().equals(other.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_ATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getServiceAttachment().hashCode(); + hash = (37 * hash) + CONNECTION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + connectionType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.PscServiceAttachment parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.PscServiceAttachment parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.PscServiceAttachment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.PscServiceAttachment parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.PscServiceAttachment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.PscServiceAttachment parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.PscServiceAttachment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.PscServiceAttachment parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.PscServiceAttachment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.PscServiceAttachment parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.PscServiceAttachment parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.PscServiceAttachment parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1.PscServiceAttachment prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Configuration of a service attachment of the cluster, for creating PSC
    +   * connections.
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.PscServiceAttachment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.PscServiceAttachment) + com.google.cloud.redis.cluster.v1.PscServiceAttachmentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_PscServiceAttachment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_PscServiceAttachment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.PscServiceAttachment.class, + com.google.cloud.redis.cluster.v1.PscServiceAttachment.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.PscServiceAttachment.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + serviceAttachment_ = ""; + connectionType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_PscServiceAttachment_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.PscServiceAttachment getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.PscServiceAttachment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.PscServiceAttachment build() { + com.google.cloud.redis.cluster.v1.PscServiceAttachment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.PscServiceAttachment buildPartial() { + com.google.cloud.redis.cluster.v1.PscServiceAttachment result = + new com.google.cloud.redis.cluster.v1.PscServiceAttachment(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1.PscServiceAttachment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.serviceAttachment_ = serviceAttachment_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.connectionType_ = connectionType_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.PscServiceAttachment) { + return mergeFrom((com.google.cloud.redis.cluster.v1.PscServiceAttachment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.PscServiceAttachment other) { + if (other == com.google.cloud.redis.cluster.v1.PscServiceAttachment.getDefaultInstance()) + return this; + if (!other.getServiceAttachment().isEmpty()) { + serviceAttachment_ = other.serviceAttachment_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.connectionType_ != 0) { + setConnectionTypeValue(other.getConnectionTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + serviceAttachment_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 24: + { + connectionType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object serviceAttachment_ = ""; + /** + * + * + *
    +     * Output only. Service attachment URI which your self-created PscConnection
    +     * should use as target
    +     * 
    + * + * string service_attachment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serviceAttachment. + */ + public java.lang.String getServiceAttachment() { + java.lang.Object ref = serviceAttachment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAttachment_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Output only. Service attachment URI which your self-created PscConnection
    +     * should use as target
    +     * 
    + * + * string service_attachment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serviceAttachment. + */ + public com.google.protobuf.ByteString getServiceAttachmentBytes() { + java.lang.Object ref = serviceAttachment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAttachment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Output only. Service attachment URI which your self-created PscConnection
    +     * should use as target
    +     * 
    + * + * string service_attachment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The serviceAttachment to set. + * @return This builder for chaining. + */ + public Builder setServiceAttachment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceAttachment_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Service attachment URI which your self-created PscConnection
    +     * should use as target
    +     * 
    + * + * string service_attachment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearServiceAttachment() { + serviceAttachment_ = getDefaultInstance().getServiceAttachment(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Service attachment URI which your self-created PscConnection
    +     * should use as target
    +     * 
    + * + * string service_attachment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for serviceAttachment to set. + * @return This builder for chaining. + */ + public Builder setServiceAttachmentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAttachment_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int connectionType_ = 0; + /** + * + * + *
    +     * Output only. Type of a PSC connection targeting this service attachment.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.ConnectionType connection_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for connectionType. + */ + @java.lang.Override + public int getConnectionTypeValue() { + return connectionType_; + } + /** + * + * + *
    +     * Output only. Type of a PSC connection targeting this service attachment.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.ConnectionType connection_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for connectionType to set. + * @return This builder for chaining. + */ + public Builder setConnectionTypeValue(int value) { + connectionType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Type of a PSC connection targeting this service attachment.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.ConnectionType connection_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The connectionType. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ConnectionType getConnectionType() { + com.google.cloud.redis.cluster.v1.ConnectionType result = + com.google.cloud.redis.cluster.v1.ConnectionType.forNumber(connectionType_); + return result == null + ? com.google.cloud.redis.cluster.v1.ConnectionType.UNRECOGNIZED + : result; + } + /** + * + * + *
    +     * Output only. Type of a PSC connection targeting this service attachment.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.ConnectionType connection_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The connectionType to set. + * @return This builder for chaining. + */ + public Builder setConnectionType(com.google.cloud.redis.cluster.v1.ConnectionType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + connectionType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Type of a PSC connection targeting this service attachment.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.ConnectionType connection_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearConnectionType() { + bitField0_ = (bitField0_ & ~0x00000002); + connectionType_ = 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.redis.cluster.v1.PscServiceAttachment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.PscServiceAttachment) + private static final com.google.cloud.redis.cluster.v1.PscServiceAttachment DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.PscServiceAttachment(); + } + + public static com.google.cloud.redis.cluster.v1.PscServiceAttachment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PscServiceAttachment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.PscServiceAttachment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/PscServiceAttachmentOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/PscServiceAttachmentOrBuilder.java new file mode 100644 index 000000000000..db977cc9bb66 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/PscServiceAttachmentOrBuilder.java @@ -0,0 +1,82 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +public interface PscServiceAttachmentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.PscServiceAttachment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Output only. Service attachment URI which your self-created PscConnection
    +   * should use as target
    +   * 
    + * + * string service_attachment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serviceAttachment. + */ + java.lang.String getServiceAttachment(); + /** + * + * + *
    +   * Output only. Service attachment URI which your self-created PscConnection
    +   * should use as target
    +   * 
    + * + * string service_attachment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serviceAttachment. + */ + com.google.protobuf.ByteString getServiceAttachmentBytes(); + + /** + * + * + *
    +   * Output only. Type of a PSC connection targeting this service attachment.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.ConnectionType connection_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for connectionType. + */ + int getConnectionTypeValue(); + /** + * + * + *
    +   * Output only. Type of a PSC connection targeting this service attachment.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.ConnectionType connection_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The connectionType. + */ + com.google.cloud.redis.cluster.v1.ConnectionType getConnectionType(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/RescheduleClusterMaintenanceRequest.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/RescheduleClusterMaintenanceRequest.java new file mode 100644 index 000000000000..39fa800486ae --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/RescheduleClusterMaintenanceRequest.java @@ -0,0 +1,1330 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
    + * Request for rescheduling a cluster maintenance.
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest} + */ +public final class RescheduleClusterMaintenanceRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest) + RescheduleClusterMaintenanceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use RescheduleClusterMaintenanceRequest.newBuilder() to construct. + private RescheduleClusterMaintenanceRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RescheduleClusterMaintenanceRequest() { + name_ = ""; + rescheduleType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RescheduleClusterMaintenanceRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_RescheduleClusterMaintenanceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_RescheduleClusterMaintenanceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest.class, + com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest.Builder.class); + } + + /** + * + * + *
    +   * Reschedule options.
    +   * 
    + * + * Protobuf enum {@code + * google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest.RescheduleType} + */ + public enum RescheduleType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Not set.
    +     * 
    + * + * RESCHEDULE_TYPE_UNSPECIFIED = 0; + */ + RESCHEDULE_TYPE_UNSPECIFIED(0), + /** + * + * + *
    +     * If the user wants to schedule the maintenance to happen now.
    +     * 
    + * + * IMMEDIATE = 1; + */ + IMMEDIATE(1), + /** + * + * + *
    +     * If the user wants to reschedule the maintenance to a specific time.
    +     * 
    + * + * SPECIFIC_TIME = 3; + */ + SPECIFIC_TIME(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Not set.
    +     * 
    + * + * RESCHEDULE_TYPE_UNSPECIFIED = 0; + */ + public static final int RESCHEDULE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +     * If the user wants to schedule the maintenance to happen now.
    +     * 
    + * + * IMMEDIATE = 1; + */ + public static final int IMMEDIATE_VALUE = 1; + /** + * + * + *
    +     * If the user wants to reschedule the maintenance to a specific time.
    +     * 
    + * + * SPECIFIC_TIME = 3; + */ + public static final int SPECIFIC_TIME_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 RescheduleType 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 RescheduleType forNumber(int value) { + switch (value) { + case 0: + return RESCHEDULE_TYPE_UNSPECIFIED; + case 1: + return IMMEDIATE; + case 3: + return SPECIFIC_TIME; + 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 RescheduleType findValueByNumber(int number) { + return RescheduleType.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.redis.cluster.v1.RescheduleClusterMaintenanceRequest.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final RescheduleType[] VALUES = values(); + + public static RescheduleType 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 RescheduleType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest.RescheduleType) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Required. Redis Cluster instance resource name using the form:
    +   *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +   * where `location_id` refers to a GCP region.
    +   * 
    + * + * + * 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. Redis Cluster instance resource name using the form:
    +   *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +   * where `location_id` refers to a GCP region.
    +   * 
    + * + * + * 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 RESCHEDULE_TYPE_FIELD_NUMBER = 2; + private int rescheduleType_ = 0; + /** + * + * + *
    +   * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as
    +   * well.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for rescheduleType. + */ + @java.lang.Override + public int getRescheduleTypeValue() { + return rescheduleType_; + } + /** + * + * + *
    +   * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as
    +   * well.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rescheduleType. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest.RescheduleType + getRescheduleType() { + com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest.RescheduleType result = + com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest.RescheduleType + .forNumber(rescheduleType_); + return result == null + ? com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest.RescheduleType + .UNRECOGNIZED + : result; + } + + public static final int SCHEDULE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp scheduleTime_; + /** + * + * + *
    +   * Optional. Timestamp when the maintenance shall be rescheduled to if
    +   * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    +   * example `2012-11-15T16:19:00.094Z`.
    +   * 
    + * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the scheduleTime field is set. + */ + @java.lang.Override + public boolean hasScheduleTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * Optional. Timestamp when the maintenance shall be rescheduled to if
    +   * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    +   * example `2012-11-15T16:19:00.094Z`.
    +   * 
    + * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The scheduleTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getScheduleTime() { + return scheduleTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : scheduleTime_; + } + /** + * + * + *
    +   * Optional. Timestamp when the maintenance shall be rescheduled to if
    +   * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    +   * example `2012-11-15T16:19:00.094Z`.
    +   * 
    + * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { + return scheduleTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : scheduleTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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 (rescheduleType_ + != com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest.RescheduleType + .RESCHEDULE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, rescheduleType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getScheduleTime()); + } + 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 (rescheduleType_ + != com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest.RescheduleType + .RESCHEDULE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, rescheduleType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getScheduleTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest other = + (com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (rescheduleType_ != other.rescheduleType_) return false; + if (hasScheduleTime() != other.hasScheduleTime()) return false; + if (hasScheduleTime()) { + if (!getScheduleTime().equals(other.getScheduleTime())) return false; + } + if (!getUnknownFields().equals(other.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) + RESCHEDULE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + rescheduleType_; + if (hasScheduleTime()) { + hash = (37 * hash) + SCHEDULE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getScheduleTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 rescheduling a cluster maintenance.
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest) + com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_RescheduleClusterMaintenanceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_RescheduleClusterMaintenanceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest.class, + com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest.Builder.class); + } + + // Construct using + // com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getScheduleTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + rescheduleType_ = 0; + scheduleTime_ = null; + if (scheduleTimeBuilder_ != null) { + scheduleTimeBuilder_.dispose(); + scheduleTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_RescheduleClusterMaintenanceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest build() { + com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest buildPartial() { + com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest result = + new com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rescheduleType_ = rescheduleType_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.scheduleTime_ = + scheduleTimeBuilder_ == null ? scheduleTime_ : scheduleTimeBuilder_.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.redis.cluster.v1.RescheduleClusterMaintenanceRequest) { + return mergeFrom( + (com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest other) { + if (other + == com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.rescheduleType_ != 0) { + setRescheduleTypeValue(other.getRescheduleTypeValue()); + } + if (other.hasScheduleTime()) { + mergeScheduleTime(other.getScheduleTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + rescheduleType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage(getScheduleTimeFieldBuilder().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 name_ = ""; + /** + * + * + *
    +     * Required. Redis Cluster instance resource name using the form:
    +     *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +     * where `location_id` refers to a GCP region.
    +     * 
    + * + * + * 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. Redis Cluster instance resource name using the form:
    +     *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +     * where `location_id` refers to a GCP region.
    +     * 
    + * + * + * 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. Redis Cluster instance resource name using the form:
    +     *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +     * where `location_id` refers to a GCP region.
    +     * 
    + * + * + * 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. Redis Cluster instance resource name using the form:
    +     *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +     * where `location_id` refers to a GCP region.
    +     * 
    + * + * + * 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. Redis Cluster instance resource name using the form:
    +     *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +     * where `location_id` refers to a GCP region.
    +     * 
    + * + * + * 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 rescheduleType_ = 0; + /** + * + * + *
    +     * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as
    +     * well.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for rescheduleType. + */ + @java.lang.Override + public int getRescheduleTypeValue() { + return rescheduleType_; + } + /** + * + * + *
    +     * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as
    +     * well.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for rescheduleType to set. + * @return This builder for chaining. + */ + public Builder setRescheduleTypeValue(int value) { + rescheduleType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as
    +     * well.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rescheduleType. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest.RescheduleType + getRescheduleType() { + com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest.RescheduleType result = + com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest.RescheduleType + .forNumber(rescheduleType_); + return result == null + ? com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest.RescheduleType + .UNRECOGNIZED + : result; + } + /** + * + * + *
    +     * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as
    +     * well.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The rescheduleType to set. + * @return This builder for chaining. + */ + public Builder setRescheduleType( + com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest.RescheduleType + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + rescheduleType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as
    +     * well.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearRescheduleType() { + bitField0_ = (bitField0_ & ~0x00000002); + rescheduleType_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp scheduleTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + scheduleTimeBuilder_; + /** + * + * + *
    +     * Optional. Timestamp when the maintenance shall be rescheduled to if
    +     * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    +     * example `2012-11-15T16:19:00.094Z`.
    +     * 
    + * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the scheduleTime field is set. + */ + public boolean hasScheduleTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +     * Optional. Timestamp when the maintenance shall be rescheduled to if
    +     * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    +     * example `2012-11-15T16:19:00.094Z`.
    +     * 
    + * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The scheduleTime. + */ + public com.google.protobuf.Timestamp getScheduleTime() { + if (scheduleTimeBuilder_ == null) { + return scheduleTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : scheduleTime_; + } else { + return scheduleTimeBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Optional. Timestamp when the maintenance shall be rescheduled to if
    +     * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    +     * example `2012-11-15T16:19:00.094Z`.
    +     * 
    + * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setScheduleTime(com.google.protobuf.Timestamp value) { + if (scheduleTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + scheduleTime_ = value; + } else { + scheduleTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. Timestamp when the maintenance shall be rescheduled to if
    +     * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    +     * example `2012-11-15T16:19:00.094Z`.
    +     * 
    + * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (scheduleTimeBuilder_ == null) { + scheduleTime_ = builderForValue.build(); + } else { + scheduleTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. Timestamp when the maintenance shall be rescheduled to if
    +     * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    +     * example `2012-11-15T16:19:00.094Z`.
    +     * 
    + * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) { + if (scheduleTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && scheduleTime_ != null + && scheduleTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getScheduleTimeBuilder().mergeFrom(value); + } else { + scheduleTime_ = value; + } + } else { + scheduleTimeBuilder_.mergeFrom(value); + } + if (scheduleTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Optional. Timestamp when the maintenance shall be rescheduled to if
    +     * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    +     * example `2012-11-15T16:19:00.094Z`.
    +     * 
    + * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearScheduleTime() { + bitField0_ = (bitField0_ & ~0x00000004); + scheduleTime_ = null; + if (scheduleTimeBuilder_ != null) { + scheduleTimeBuilder_.dispose(); + scheduleTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. Timestamp when the maintenance shall be rescheduled to if
    +     * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    +     * example `2012-11-15T16:19:00.094Z`.
    +     * 
    + * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getScheduleTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getScheduleTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Optional. Timestamp when the maintenance shall be rescheduled to if
    +     * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    +     * example `2012-11-15T16:19:00.094Z`.
    +     * 
    + * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { + if (scheduleTimeBuilder_ != null) { + return scheduleTimeBuilder_.getMessageOrBuilder(); + } else { + return scheduleTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : scheduleTime_; + } + } + /** + * + * + *
    +     * Optional. Timestamp when the maintenance shall be rescheduled to if
    +     * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    +     * example `2012-11-15T16:19:00.094Z`.
    +     * 
    + * + * .google.protobuf.Timestamp schedule_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> + getScheduleTimeFieldBuilder() { + if (scheduleTimeBuilder_ == null) { + scheduleTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getScheduleTime(), getParentForChildren(), isClean()); + scheduleTime_ = null; + } + return scheduleTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest) + private static final com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest(); + } + + public static com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RescheduleClusterMaintenanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/RescheduleClusterMaintenanceRequestOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/RescheduleClusterMaintenanceRequestOrBuilder.java new file mode 100644 index 000000000000..16a2f5e9469f --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/RescheduleClusterMaintenanceRequestOrBuilder.java @@ -0,0 +1,135 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1; + +public interface RescheduleClusterMaintenanceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Redis Cluster instance resource name using the form:
    +   *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +   * where `location_id` refers to a GCP region.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Required. Redis Cluster instance resource name using the form:
    +   *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +   * where `location_id` refers to a GCP region.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as
    +   * well.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for rescheduleType. + */ + int getRescheduleTypeValue(); + /** + * + * + *
    +   * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as
    +   * well.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rescheduleType. + */ + com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest.RescheduleType + getRescheduleType(); + + /** + * + * + *
    +   * Optional. Timestamp when the maintenance shall be rescheduled to if
    +   * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    +   * example `2012-11-15T16:19:00.094Z`.
    +   * 
    + * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the scheduleTime field is set. + */ + boolean hasScheduleTime(); + /** + * + * + *
    +   * Optional. Timestamp when the maintenance shall be rescheduled to if
    +   * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    +   * example `2012-11-15T16:19:00.094Z`.
    +   * 
    + * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The scheduleTime. + */ + com.google.protobuf.Timestamp getScheduleTime(); + /** + * + * + *
    +   * Optional. Timestamp when the maintenance shall be rescheduled to if
    +   * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    +   * example `2012-11-15T16:19:00.094Z`.
    +   * 
    + * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/TransitEncryptionMode.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/TransitEncryptionMode.java index 68b81f4b415d..572162e63162 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/TransitEncryptionMode.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/TransitEncryptionMode.java @@ -156,7 +156,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto.getDescriptor() .getEnumTypes() - .get(2); + .get(3); } private static final TransitEncryptionMode[] VALUES = values(); diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ZoneDistributionConfig.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ZoneDistributionConfig.java index fdc71b23da7c..e9eb6ebdc38e 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ZoneDistributionConfig.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ZoneDistributionConfig.java @@ -69,9 +69,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
        * Defines various modes of zone distribution.
    -   * Currently supports two modes, can be expanded in future to support more
    -   * types of distribution modes.
    -   * design doc: go/same-zone-cluster
        * 
    * * Protobuf enum {@code google.cloud.redis.cluster.v1.ZoneDistributionConfig.ZoneDistributionMode} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/proto/google/cloud/redis/cluster/v1/cloud_redis_cluster.proto b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/proto/google/cloud/redis/cluster/v1/cloud_redis_cluster.proto index b89fe889eb87..d73fef42055c 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/proto/google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/proto/google/cloud/redis/cluster/v1/cloud_redis_cluster.proto @@ -19,18 +19,42 @@ package google.cloud.redis.cluster.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/longrunning/operations.proto"; import "google/protobuf/any.proto"; +import "google/protobuf/duration.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; +import "google/type/dayofweek.proto"; +import "google/type/timeofday.proto"; option go_package = "cloud.google.com/go/redis/cluster/apiv1/clusterpb;clusterpb"; option java_multiple_files = true; option java_outer_classname = "CloudRedisClusterProto"; option java_package = "com.google.cloud.redis.cluster.v1"; option ruby_package = "Google::Cloud::Redis::Cluster::V1"; +option (google.api.resource_definition) = { + type: "compute.googleapis.com/ForwardingRule" + pattern: "projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}" +}; +option (google.api.resource_definition) = { + type: "compute.googleapis.com/Network" + pattern: "projects/{project}/global/networks/{network}" +}; +option (google.api.resource_definition) = { + type: "compute.googleapis.com/ServiceAttachment" + pattern: "projects/{project}/regions/{region}/serviceAttachments/{service_attachment}" +}; +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: "cloudkms.googleapis.com/CryptoKeyVersion" + pattern: "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}" +}; // Configures and manages Cloud Memorystore for Redis clusters // @@ -47,12 +71,6 @@ option ruby_package = "Google::Cloud::Redis::Cluster::V1"; // // Note that location_id must be a GCP `region`; for example: // * `projects/redpepper-1290/locations/us-central1/clusters/my-redis` -// -// We use API version selector for Flex APIs -// * The versioning strategy is release-based versioning -// * Our backend CLH only deals with the superset version (called v1main) -// * Existing backend for Redis Gen1 and MRR is not touched. -// * More details in go/redis-flex-api-versioning service CloudRedisCluster { option (google.api.default_host) = "redis.googleapis.com"; option (google.api.oauth_scopes) = @@ -143,6 +161,119 @@ service CloudRedisCluster { }; option (google.api.method_signature) = "name"; } + + // Reschedules upcoming maintenance event. + rpc RescheduleClusterMaintenance(RescheduleClusterMaintenanceRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/clusters/*}:rescheduleClusterMaintenance" + body: "*" + }; + option (google.api.method_signature) = "name,reschedule_type,schedule_time"; + option (google.longrunning.operation_info) = { + response_type: "Cluster" + metadata_type: "google.protobuf.Any" + }; + } + + // Lists all backup collections owned by a consumer project in either the + // specified location (region) or all locations. + // + // If `location_id` is specified as `-` (wildcard), then all regions + // available to the project are queried, and the results are aggregated. + rpc ListBackupCollections(ListBackupCollectionsRequest) + returns (ListBackupCollectionsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/backupCollections" + }; + option (google.api.method_signature) = "parent"; + } + + // Get a backup collection. + rpc GetBackupCollection(GetBackupCollectionRequest) + returns (BackupCollection) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/backupCollections/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists all backups owned by a backup collection. + rpc ListBackups(ListBackupsRequest) returns (ListBackupsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/backupCollections/*}/backups" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets the details of a specific backup. + rpc GetBackup(GetBackupRequest) returns (Backup) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/backupCollections/*/backups/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Deletes a specific backup. + rpc DeleteBackup(DeleteBackupRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/backupCollections/*/backups/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.protobuf.Any" + }; + } + + // Exports a specific backup to a customer target Cloud Storage URI. + rpc ExportBackup(ExportBackupRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/backupCollections/*/backups/*}:export" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "Backup" + metadata_type: "google.protobuf.Any" + }; + } + + // Backup Redis Cluster. + // If this is the first time a backup is being created, a backup collection + // will be created at the backend, and this backup belongs to this collection. + // Both collection and backup will have a resource name. Backup will be + // executed for each shard. A replica (primary if nonHA) will be selected to + // perform the execution. Backup call will be rejected if there is an ongoing + // backup or update operation. Be aware that during preview, if the cluster's + // internal software version is too old, critical update will be performed + // before actual backup. Once the internal software version is updated to the + // minimum version required by the backup feature, subsequent backups will not + // require critical update. After preview, there will be no critical update + // needed for backup. + rpc BackupCluster(BackupClusterRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/clusters/*}:backup" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "Cluster" + metadata_type: "google.protobuf.Any" + }; + } +} + +// Status of the PSC connection. +enum PscConnectionStatus { + // PSC connection status is not specified. + PSC_CONNECTION_STATUS_UNSPECIFIED = 0; + + // The connection is active + PSC_CONNECTION_STATUS_ACTIVE = 1; + + // Connection not found + PSC_CONNECTION_STATUS_NOT_FOUND = 2; } // Available authorization mode of a Redis cluster. @@ -159,6 +290,7 @@ enum AuthorizationMode { // NodeType of a redis cluster node, enum NodeType { + // Node type unspecified NODE_TYPE_UNSPECIFIED = 0; // Redis shared core nano node_type. @@ -186,6 +318,21 @@ enum TransitEncryptionMode { TRANSIT_ENCRYPTION_MODE_SERVER_AUTHENTICATION = 2; } +// Type of a PSC connection, for cluster access purpose. +enum ConnectionType { + // Cluster endpoint Type is not set + CONNECTION_TYPE_UNSPECIFIED = 0; + + // Cluster endpoint that will be used as for cluster topology discovery. + CONNECTION_TYPE_DISCOVERY = 1; + + // Cluster endpoint that will be used as primary endpoint to access primary. + CONNECTION_TYPE_PRIMARY = 2; + + // Cluster endpoint that will be used as reader endpoint to access replicas. + CONNECTION_TYPE_READER = 3; +} + // Request for [CreateCluster][CloudRedis.CreateCluster]. message CreateClusterRequest { // Required. The resource name of the cluster location using the form: @@ -322,11 +469,174 @@ message GetClusterCertificateAuthorityRequest { ]; } +// Request for [ListBackupCollections] +message ListBackupCollectionsRequest { + // Required. The resource name of the backupCollection location using the + // form: + // `projects/{project_id}/locations/{location_id}` + // where `location_id` refers to a GCP region. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "redis.googleapis.com/BackupCollection" + } + ]; + + // Optional. The maximum number of items to return. + // + // If not specified, a default value of 1000 will be used by the service. + // Regardless of the page_size value, the response may include a partial list + // and a caller should only rely on response's + // [`next_page_token`][google.cloud.redis.cluster.v1.ListBackupCollectionsResponse.next_page_token] + // to determine if there are more clusters left to be queried. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The `next_page_token` value returned from a previous + // [ListBackupCollections] request, if any. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response for [ListBackupCollections]. +message ListBackupCollectionsResponse { + // A list of backupCollections in the project. + // + // If the `location_id` in the parent field of the request is "-", all regions + // available to the project are queried, and the results aggregated. + // If in such an aggregated query a location is unavailable, a placeholder + // backupCollection entry is included in the response with the `name` field + // set to a value of the form + // `projects/{project_id}/locations/{location_id}/backupCollections/`- and the + // `status` field set to ERROR and `status_message` field set to "location not + // available for ListBackupCollections". + repeated BackupCollection backup_collections = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Request for [GetBackupCollection]. +message GetBackupCollectionRequest { + // Required. Redis backupCollection resource name using the form: + // `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}` + // where `location_id` refers to a GCP region. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "redis.googleapis.com/BackupCollection" + } + ]; +} + +// Request for [ListBackups]. +message ListBackupsRequest { + // Required. The resource name of the backupCollection using the form: + // `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "redis.googleapis.com/Backup" + } + ]; + + // Optional. The maximum number of items to return. + // + // If not specified, a default value of 1000 will be used by the service. + // Regardless of the page_size value, the response may include a partial list + // and a caller should only rely on response's + // [`next_page_token`][google.cloud.redis.cluster.v1.ListBackupsResponse.next_page_token] + // to determine if there are more clusters left to be queried. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The `next_page_token` value returned from a previous + // [ListBackupCollections] request, if any. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response for [ListBackups]. +message ListBackupsResponse { + // A list of backups in the project. + repeated Backup backups = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; + + // Backups that could not be reached. + repeated string unreachable = 3; +} + +// Request for [GetBackup]. +message GetBackupRequest { + // Required. Redis backup resource name using the form: + // `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "redis.googleapis.com/Backup" } + ]; +} + +// Request for [DeleteBackup]. +message DeleteBackupRequest { + // Required. Redis backup resource name using the form: + // `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "redis.googleapis.com/Backup" } + ]; + + // Optional. Idempotent request UUID. + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Request for [ExportBackup]. +message ExportBackupRequest { + // Required. Specify destination to export a backup. + oneof destination { + // Google Cloud Storage bucket, like "my-bucket". + string gcs_bucket = 3; + } + + // Required. Redis backup resource name using the form: + // `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "redis.googleapis.com/Backup" } + ]; +} + +// Request for [BackupCluster]. +message BackupClusterRequest { + // Required. Redis cluster resource name using the form: + // `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` + // where `location_id` refers to a GCP region. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "redis.googleapis.com/Cluster" } + ]; + + // Optional. TTL for the backup to expire. Value range is 1 day to 100 years. + // If not specified, the default value is 100 years. + google.protobuf.Duration ttl = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The id of the backup to be created. If not specified, the + // default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used. + optional string backup_id = 3 [(google.api.field_behavior) = OPTIONAL]; +} + // A cluster instance. message Cluster { option (google.api.resource) = { type: "redis.googleapis.com/Cluster" pattern: "projects/{project}/locations/{location}/clusters/{cluster}" + plural: "clusters" + singular: "cluster" }; // Represents additional information about the state of the cluster. @@ -346,6 +656,25 @@ message Cluster { } } + // Backups stored in Cloud Storage buckets. + // The Cloud Storage buckets need to be the same region as the clusters. + message GcsBackupSource { + // Optional. URIs of the GCS objects to import. + // Example: gs://bucket1/object1, gs://bucket2/folder2/object2 + repeated string uris = 1 [(google.api.field_behavior) = OPTIONAL]; + } + + // Backups that generated and managed by memorystore. + message ManagedBackupSource { + // Optional. Example: + // //redis.googleapis.com/projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup} + // A shorter version (without the prefix) of the backup name is also + // supported, like + // projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup_id} + // In this case, it assumes the backup is under redis.googleapis.com. + string backup = 1 [(google.api.field_behavior) = OPTIONAL]; + } + // Represents the different states of a Redis cluster. enum State { // Not set. @@ -364,10 +693,26 @@ message Cluster { DELETING = 4; } - // Required. Unique name of the resource in this scope including project and - // location using the form: + // The source to import from. + oneof import_sources { + // Optional. Backups stored in Cloud Storage buckets. + // The Cloud Storage buckets need to be the same region as the clusters. + // Read permission is required to import from the provided Cloud Storage + // objects. + GcsBackupSource gcs_source = 34 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Backups generated and managed by memorystore service. + ManagedBackupSource managed_backup_source = 35 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. Identifier. Unique name of the resource in this scope including + // project and location using the form: // `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` - string name = 1 [(google.api.field_behavior) = REQUIRED]; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IDENTIFIER + ]; // Output only. The timestamp associated with the cluster creation request. google.protobuf.Timestamp create_time = 3 @@ -397,21 +742,21 @@ message Cluster { // the next integer. optional int32 size_gb = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Required. Number of shards for the Redis cluster. - optional int32 shard_count = 14 [(google.api.field_behavior) = REQUIRED]; + // Optional. Number of shards for the Redis cluster. + optional int32 shard_count = 14 [(google.api.field_behavior) = OPTIONAL]; - // Required. Each PscConfig configures the consumer network where IPs will + // Optional. Each PscConfig configures the consumer network where IPs will // be designated to the cluster for client access through Private Service // Connect Automation. Currently, only one PscConfig is supported. - repeated PscConfig psc_configs = 15 [(google.api.field_behavior) = REQUIRED]; + repeated PscConfig psc_configs = 15 [(google.api.field_behavior) = OPTIONAL]; // Output only. Endpoints created on each given network, for Redis clients to // connect to the cluster. Currently only one discovery endpoint is supported. repeated DiscoveryEndpoint discovery_endpoints = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. PSC connections for discovery of the cluster topology and - // accessing the cluster. + // Output only. The list of PSC connections that are auto-created through + // service connectivity automation. repeated PscConnection psc_connections = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -440,9 +785,387 @@ message Cluster { ZoneDistributionConfig zone_distribution_config = 23 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Cross cluster replication config. + CrossClusterReplicationConfig cross_cluster_replication_config = 24 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. The delete operation will fail when the value is set to true. optional bool deletion_protection_enabled = 25 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. ClusterMaintenancePolicy determines when to allow or deny + // updates. + optional ClusterMaintenancePolicy maintenance_policy = 26 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. ClusterMaintenanceSchedule Output only Published maintenance + // schedule. + optional ClusterMaintenanceSchedule maintenance_schedule = 27 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Service attachment details to configure Psc connections + repeated PscServiceAttachment psc_service_attachments = 30 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. A list of cluster enpoints. + repeated ClusterEndpoint cluster_endpoints = 36 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Output only. The backup collection full resource name. Example: + // projects/{project}/locations/{location}/backupCollections/{collection} + optional string backup_collection = 39 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "redis.googleapis.com/BackupCollection" + } + ]; + + // Optional. The KMS key used to encrypt the at-rest data of the cluster. + optional string kms_key = 40 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKey" + } + ]; + + // Optional. The automated backup config for the cluster. + AutomatedBackupConfig automated_backup_config = 42 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Encryption information of the data at rest of the cluster. + EncryptionInfo encryption_info = 43 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The automated backup config for a cluster. +message AutomatedBackupConfig { + // This schedule allows the backup to be triggered at a fixed frequency + // (currently only daily is supported). + message FixedFrequencySchedule { + // Required. The start time of every automated backup in UTC. It must be set + // to the start of an hour. This field is required. + optional google.type.TimeOfDay start_time = 2 + [(google.api.field_behavior) = REQUIRED]; + } + + // The automated backup mode. + enum AutomatedBackupMode { + // Default value. Automated backup config is not specified. + AUTOMATED_BACKUP_MODE_UNSPECIFIED = 0; + + // Automated backup config disabled. + DISABLED = 1; + + // Automated backup config enabled. + ENABLED = 2; + } + + // The schedule of automated backups. + oneof schedule { + // Optional. Trigger automated backups at a fixed frequency. + FixedFrequencySchedule fixed_frequency_schedule = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. The automated backup mode. If the mode is disabled, the other + // fields will be ignored. + AutomatedBackupMode automated_backup_mode = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. How long to keep automated backups before the backups are + // deleted. The value should be between 1 day and 365 days. If not specified, + // the default value is 35 days. + optional google.protobuf.Duration retention = 3 + [(google.api.field_behavior) = OPTIONAL]; +} + +// BackupCollection of a cluster. +message BackupCollection { + option (google.api.resource) = { + type: "redis.googleapis.com/BackupCollection" + pattern: "projects/{project}/locations/{location}/backupCollections/{backup_collection}" + plural: "backupCollections" + singular: "backupCollection" + }; + + // Identifier. Full resource path of the backup collection. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. The cluster uid of the backup collection. + string cluster_uid = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Output only. The full resource path of the cluster the backup collection + // belongs to. Example: + // projects/{project}/locations/{location}/clusters/{cluster} + string cluster = 4 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { type: "redis.googleapis.com/Cluster" } + ]; + + // Output only. The KMS key used to encrypt the backups under this backup + // collection. + string kms_key = 5 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKey" + } + ]; + + // Output only. System assigned unique identifier of the backup collection. + string uid = 6 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OUTPUT_ONLY + ]; +} + +// Backup of a cluster. +message Backup { + option (google.api.resource) = { + type: "redis.googleapis.com/Backup" + pattern: "projects/{project}/locations/{location}/backupCollections/{backup_collection}/backups/{backup}" + plural: "backups" + singular: "backup" + }; + + // Type of the backup. + enum BackupType { + // The default value, not set. + BACKUP_TYPE_UNSPECIFIED = 0; + + // On-demand backup. + ON_DEMAND = 1; + + // Automated backup. + AUTOMATED = 2; + } + + // State of the backup. + enum State { + // The default value, not set. + STATE_UNSPECIFIED = 0; + + // The backup is being created. + CREATING = 1; + + // The backup is active to be used. + ACTIVE = 2; + + // The backup is being deleted. + DELETING = 3; + + // The backup is currently suspended due to reasons like project deletion, + // billing account closure, etc. + SUSPENDED = 4; + } + + // Identifier. Full resource path of the backup. the last part of the name is + // the backup id with the following format: [YYYYMMDDHHMMSS]_[Shorted Cluster + // UID] OR customer specified while backup cluster. Example: + // 20240515123000_1234 + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. The time when the backup was created. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Cluster resource path of this backup. + string cluster = 3 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { type: "redis.googleapis.com/Cluster" } + ]; + + // Output only. Cluster uid of this backup. + string cluster_uid = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Output only. Total size of the backup in bytes. + int64 total_size_bytes = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time when the backup will expire. + google.protobuf.Timestamp expire_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. redis-7.2, valkey-7.5 + string engine_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of backup files of the backup. + repeated BackupFile backup_files = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Node type of the cluster. + NodeType node_type = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Number of replicas for the cluster. + int32 replica_count = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Number of shards for the cluster. + int32 shard_count = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Type of the backup. + BackupType backup_type = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. State of the backup. + State state = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Encryption information of the backup. + EncryptionInfo encryption_info = 14 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. System assigned unique identifier of the backup. + string uid = 15 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OUTPUT_ONLY + ]; +} + +// Backup is consisted of multiple backup files. +message BackupFile { + // Output only. e.g: .rdb + string file_name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Size of the backup file in bytes. + int64 size_bytes = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time when the backup file was created. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Configuration of a service attachment of the cluster, for creating PSC +// connections. +message PscServiceAttachment { + // Output only. Service attachment URI which your self-created PscConnection + // should use as target + string service_attachment = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Type of a PSC connection targeting this service attachment. + ConnectionType connection_type = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Cross cluster replication config. +message CrossClusterReplicationConfig { + // Details of the remote cluster associated with this cluster in a cross + // cluster replication setup. + message RemoteCluster { + // The full resource path of the remote cluster in + // the format: projects//locations//clusters/ + string cluster = 1 [ + (google.api.resource_reference) = { type: "redis.googleapis.com/Cluster" } + ]; + + // Output only. The unique identifier of the remote cluster. + string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // An output only view of all the member clusters participating in the cross + // cluster replication. + message Membership { + // Output only. The primary cluster that acts as the source of replication + // for the secondary clusters. + RemoteCluster primary_cluster = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The list of secondary clusters replicating from the primary + // cluster. + repeated RemoteCluster secondary_clusters = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The role of the cluster in cross cluster replication. + enum ClusterRole { + // Cluster role is not set. + // The behavior is equivalent to NONE. + CLUSTER_ROLE_UNSPECIFIED = 0; + + // This cluster does not participate in cross cluster replication. It is an + // independent cluster and does not replicate to or from any other clusters. + NONE = 1; + + // A cluster that allows both reads and writes. Any data written to this + // cluster is also replicated to the attached secondary clusters. + PRIMARY = 2; + + // A cluster that allows only reads and replicates data from a primary + // cluster. + SECONDARY = 3; + } + + // The role of the cluster in cross cluster replication. + ClusterRole cluster_role = 1; + + // Details of the primary cluster that is used as the replication source for + // this secondary cluster. + // + // This field is only set for a secondary cluster. + RemoteCluster primary_cluster = 2; + + // List of secondary clusters that are replicating from this primary cluster. + // + // This field is only set for a primary cluster. + repeated RemoteCluster secondary_clusters = 3; + + // Output only. The last time cross cluster replication config was updated. + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. An output only view of all the member clusters participating + // in the cross cluster replication. This view will be provided by every + // member cluster irrespective of its cluster role(primary or secondary). + // + // A primary cluster can provide information about all the secondary clusters + // replicating from it. However, a secondary cluster only knows about the + // primary cluster from which it is replicating. However, for scenarios, where + // the primary cluster is unavailable(e.g. regional outage), a GetCluster + // request can be sent to any other member cluster and this field will list + // all the member clusters participating in cross cluster replication. + Membership membership = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Maintenance policy per cluster. +message ClusterMaintenancePolicy { + // Output only. The time when the policy was created i.e. Maintenance Window + // or Deny Period was assigned. + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time when the policy was updated i.e. Maintenance Window + // or Deny Period was updated. + google.protobuf.Timestamp update_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Maintenance window that is applied to resources covered by this + // policy. Minimum 1. For the current version, the maximum number of + // weekly_maintenance_window is expected to be one. + repeated ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; +} + +// Time window specified for weekly operations. +message ClusterWeeklyMaintenanceWindow { + // Allows to define schedule that runs specified day of the week. + google.type.DayOfWeek day = 1; + + // Start time of the window in UTC. + google.type.TimeOfDay start_time = 2; +} + +// Upcoming maitenance schedule. +message ClusterMaintenanceSchedule { + // Output only. The start time of any upcoming scheduled maintenance for this + // instance. + google.protobuf.Timestamp start_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The end time of any upcoming scheduled maintenance for this + // instance. + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; } message PscConfig { @@ -468,26 +1191,140 @@ message DiscoveryEndpoint { // Details of consumer resources in a PSC connection. message PscConnection { + // Required. The PSC connection id of the forwarding rule connected to the + // service attachment. + string psc_connection_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The IP allocated on the consumer network for the PSC forwarding + // rule. + string address = 2 [ + (google.api.field_info).format = IPV4, + (google.api.field_behavior) = REQUIRED + ]; + + // Required. The URI of the consumer side forwarding rule. + // Example: + // projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}. + string forwarding_rule = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "compute.googleapis.com/ForwardingRule" + } + ]; + + // Optional. Project ID of the consumer project where the forwarding rule is + // created in. + string project_id = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The consumer network where the IP address resides, in the form of + // projects/{project_id}/global/networks/{network_id}. + string network = 5 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } + ]; + + // Required. The service attachment which is the target of the PSC connection, + // in the form of + // projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}. + string service_attachment = 6 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "compute.googleapis.com/ServiceAttachment" + } + ]; + + // Output only. The status of the PSC connection. + // Please note that this value is updated periodically. + // To get the latest status of a PSC connection, follow + // https://cloud.google.com/vpc/docs/configure-private-service-connect-services#endpoint-details. + PscConnectionStatus psc_connection_status = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Type of the PSC connection. + ConnectionType connection_type = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// ClusterEndpoint consists of PSC connections that are created +// as a group in each VPC network for accessing the cluster. In each group, +// there shall be one connection for each service attachment in the cluster. +message ClusterEndpoint { + // A group of PSC connections. They are created in the same VPC network, one + // for each service attachment in the cluster. + repeated ConnectionDetail connections = 1; +} + +// Detailed information of each PSC connection. +message ConnectionDetail { + // A PSC connection to a cluster could either be created through Service + // Connectivity Automation (auto-registered connection) during the cluster + // creation, or it could be created by customer themselves (user-registered + // connection). + oneof connection { + // Detailed information of a PSC connection that is created through + // service connectivity automation. + PscAutoConnection psc_auto_connection = 1; + + // Detailed information of a PSC connection that is created by the customer + // who owns the cluster. + PscConnection psc_connection = 2; + } +} + +// Details of consumer resources in a PSC connection that is created through +// Service Connectivity Automation. +message PscAutoConnection { // Output only. The PSC connection id of the forwarding rule connected to the // service attachment. string psc_connection_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The IP allocated on the consumer network for the PSC // forwarding rule. - string address = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + string address = 2 [ + (google.api.field_info).format = IPV4, + (google.api.field_behavior) = OUTPUT_ONLY + ]; // Output only. The URI of the consumer side forwarding rule. // Example: // projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}. - string forwarding_rule = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + string forwarding_rule = 3 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "compute.googleapis.com/ForwardingRule" + } + ]; - // Output only. The consumer project_id where the forwarding rule is created + // Required. The consumer project_id where the forwarding rule is created // from. - string project_id = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + string project_id = 4 [(google.api.field_behavior) = REQUIRED]; - // The consumer network where the IP address resides, in the form of + // Required. The consumer network where the IP address resides, in the form of // projects/{project_id}/global/networks/{network_id}. - string network = 5; + string network = 5 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } + ]; + + // Output only. The service attachment which is the target of the PSC + // connection, in the form of + // projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}. + string service_attachment = 6 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "compute.googleapis.com/ServiceAttachment" + } + ]; + + // Output only. The status of the PSC connection. + // Please note that this value is updated periodically. + // Please use Private Service Connect APIs for the latest status. + PscConnectionStatus psc_connection_status = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Type of the PSC connection. + ConnectionType connection_type = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Pre-defined metadata fields. @@ -525,6 +1362,8 @@ message CertificateAuthority { option (google.api.resource) = { type: "redis.googleapis.com/CertificateAuthority" pattern: "projects/{project}/locations/{location}/clusters/{cluster}/certificateAuthority" + plural: "certificateAuthorities" + singular: "certificateAuthority" }; message ManagedCertificateAuthority { @@ -597,8 +1436,8 @@ message ClusterPersistenceConfig { // there is a disaster EVERYSEC = 2; - // fsync every time new commands are appended to the AOF. It has the best - // data loss protection at the cost of performance + // fsync every time new write commands are appended to the AOF. It has the + // best data loss protection at the cost of performance ALWAYS = 3; } @@ -634,9 +1473,6 @@ message ClusterPersistenceConfig { // Zone distribution config for allocation of cluster resources. message ZoneDistributionConfig { // Defines various modes of zone distribution. - // Currently supports two modes, can be expanded in future to support more - // types of distribution modes. - // design doc: go/same-zone-cluster enum ZoneDistributionMode { // Not Set. Default: MULTI_ZONE ZONE_DISTRIBUTION_MODE_UNSPECIFIED = 0; @@ -659,3 +1495,105 @@ message ZoneDistributionConfig { // MULTI_ZONE, and would be ignored for MULTI_ZONE clusters. string zone = 2 [(google.api.field_behavior) = OPTIONAL]; } + +// Request for rescheduling a cluster maintenance. +message RescheduleClusterMaintenanceRequest { + // Reschedule options. + enum RescheduleType { + // Not set. + RESCHEDULE_TYPE_UNSPECIFIED = 0; + + // If the user wants to schedule the maintenance to happen now. + IMMEDIATE = 1; + + // If the user wants to reschedule the maintenance to a specific time. + SPECIFIC_TIME = 3; + } + + // Required. Redis Cluster instance resource name using the form: + // `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` + // where `location_id` refers to a GCP region. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "redis.googleapis.com/Cluster" } + ]; + + // Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as + // well. + RescheduleType reschedule_type = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Timestamp when the maintenance shall be rescheduled to if + // reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for + // example `2012-11-15T16:19:00.094Z`. + google.protobuf.Timestamp schedule_time = 3 + [(google.api.field_behavior) = OPTIONAL]; +} + +// EncryptionInfo describes the encryption information of a cluster or a backup. +message EncryptionInfo { + // Possible encryption types. + enum Type { + // Encryption type not specified. Defaults to GOOGLE_DEFAULT_ENCRYPTION. + TYPE_UNSPECIFIED = 0; + + // The data is encrypted at rest with a key that is fully managed by Google. + // No key version will be populated. This is the default state. + GOOGLE_DEFAULT_ENCRYPTION = 1; + + // The data is encrypted at rest with a key that is managed by the customer. + // KMS key versions will be populated. + CUSTOMER_MANAGED_ENCRYPTION = 2; + } + + // The state of the KMS key perceived by the system. Refer to the public + // documentation for the impact of each state. + enum KmsKeyState { + // The default value. This value is unused. + KMS_KEY_STATE_UNSPECIFIED = 0; + + // The KMS key is enabled and correctly configured. + ENABLED = 1; + + // Permission denied on the KMS key. + PERMISSION_DENIED = 2; + + // The KMS key is disabled. + DISABLED = 3; + + // The KMS key is destroyed. + DESTROYED = 4; + + // The KMS key is scheduled to be destroyed. + DESTROY_SCHEDULED = 5; + + // The EKM key is unreachable. + EKM_KEY_UNREACHABLE_DETECTED = 6; + + // Billing is disabled for the project. + BILLING_DISABLED = 7; + + // All other unknown failures. + UNKNOWN_FAILURE = 8; + } + + // Output only. Type of encryption. + Type encryption_type = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. KMS key versions that are being used to protect the data + // at-rest. + repeated string kms_key_versions = 2 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKeyVersion" + } + ]; + + // Output only. The state of the primary version of the KMS key perceived by + // the system. This field is not populated in backups. + KmsKeyState kms_key_primary_state = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The most recent time when the encryption info was updated. + google.protobuf.Timestamp last_update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AuthorizationMode.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AuthorizationMode.java index 899728934f05..d7be7d791c12 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AuthorizationMode.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AuthorizationMode.java @@ -155,7 +155,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto.getDescriptor() .getEnumTypes() - .get(0); + .get(1); } private static final AuthorizationMode[] VALUES = values(); diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AutomatedBackupConfig.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AutomatedBackupConfig.java new file mode 100644 index 000000000000..4fa490bfde94 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AutomatedBackupConfig.java @@ -0,0 +1,2396 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
    + * The automated backup config for a cluster.
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig} + */ +public final class AutomatedBackupConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig) + AutomatedBackupConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use AutomatedBackupConfig.newBuilder() to construct. + private AutomatedBackupConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AutomatedBackupConfig() { + automatedBackupMode_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AutomatedBackupConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_AutomatedBackupConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_AutomatedBackupConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.class, + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.Builder.class); + } + + /** + * + * + *
    +   * The automated backup mode.
    +   * 
    + * + * Protobuf enum {@code + * google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.AutomatedBackupMode} + */ + public enum AutomatedBackupMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Default value. Automated backup config is not specified.
    +     * 
    + * + * AUTOMATED_BACKUP_MODE_UNSPECIFIED = 0; + */ + AUTOMATED_BACKUP_MODE_UNSPECIFIED(0), + /** + * + * + *
    +     * Automated backup config disabled.
    +     * 
    + * + * DISABLED = 1; + */ + DISABLED(1), + /** + * + * + *
    +     * Automated backup config enabled.
    +     * 
    + * + * ENABLED = 2; + */ + ENABLED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Default value. Automated backup config is not specified.
    +     * 
    + * + * AUTOMATED_BACKUP_MODE_UNSPECIFIED = 0; + */ + public static final int AUTOMATED_BACKUP_MODE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +     * Automated backup config disabled.
    +     * 
    + * + * DISABLED = 1; + */ + public static final int DISABLED_VALUE = 1; + /** + * + * + *
    +     * Automated backup config enabled.
    +     * 
    + * + * ENABLED = 2; + */ + public static final int ENABLED_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 AutomatedBackupMode 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 AutomatedBackupMode forNumber(int value) { + switch (value) { + case 0: + return AUTOMATED_BACKUP_MODE_UNSPECIFIED; + case 1: + return DISABLED; + case 2: + return ENABLED; + 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 AutomatedBackupMode findValueByNumber(int number) { + return AutomatedBackupMode.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.redis.cluster.v1beta1.AutomatedBackupConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final AutomatedBackupMode[] VALUES = values(); + + public static AutomatedBackupMode 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 AutomatedBackupMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.AutomatedBackupMode) + } + + public interface FixedFrequencyScheduleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Required. The start time of every automated backup in UTC. It must be set
    +     * to the start of an hour. This field is required.
    +     * 
    + * + * + * optional .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
    +     * Required. The start time of every automated backup in UTC. It must be set
    +     * to the start of an hour. This field is required.
    +     * 
    + * + * + * optional .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The startTime. + */ + com.google.type.TimeOfDay getStartTime(); + /** + * + * + *
    +     * Required. The start time of every automated backup in UTC. It must be set
    +     * to the start of an hour. This field is required.
    +     * 
    + * + * + * optional .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder(); + } + /** + * + * + *
    +   * This schedule allows the backup to be triggered at a fixed frequency
    +   * (currently only daily is supported).
    +   * 
    + * + * Protobuf type {@code + * google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule} + */ + public static final class FixedFrequencySchedule extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule) + FixedFrequencyScheduleOrBuilder { + private static final long serialVersionUID = 0L; + // Use FixedFrequencySchedule.newBuilder() to construct. + private FixedFrequencySchedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FixedFrequencySchedule() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FixedFrequencySchedule(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_AutomatedBackupConfig_FixedFrequencySchedule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_AutomatedBackupConfig_FixedFrequencySchedule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule + .class, + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule + .Builder.class); + } + + private int bitField0_; + public static final int START_TIME_FIELD_NUMBER = 2; + private com.google.type.TimeOfDay startTime_; + /** + * + * + *
    +     * Required. The start time of every automated backup in UTC. It must be set
    +     * to the start of an hour. This field is required.
    +     * 
    + * + * + * optional .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +     * Required. The start time of every automated backup in UTC. It must be set
    +     * to the start of an hour. This field is required.
    +     * 
    + * + * + * optional .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The startTime. + */ + @java.lang.Override + public com.google.type.TimeOfDay getStartTime() { + return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; + } + /** + * + * + *
    +     * Required. The start time of every automated backup in UTC. It must be set
    +     * to the start of an hour. This field is required.
    +     * 
    + * + * + * optional .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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(2, getStartTime()); + } + 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(2, getStartTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule other = + (com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule) obj; + + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (!getUnknownFields().equals(other.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 (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig + .FixedFrequencySchedule + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig + .FixedFrequencySchedule + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig + .FixedFrequencySchedule + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig + .FixedFrequencySchedule + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig + .FixedFrequencySchedule + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig + .FixedFrequencySchedule + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig + .FixedFrequencySchedule + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig + .FixedFrequencySchedule + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig + .FixedFrequencySchedule + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig + .FixedFrequencySchedule + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig + .FixedFrequencySchedule + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig + .FixedFrequencySchedule + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +     * This schedule allows the backup to be triggered at a fixed frequency
    +     * (currently only daily is supported).
    +     * 
    + * + * Protobuf type {@code + * google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule) + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig + .FixedFrequencyScheduleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_AutomatedBackupConfig_FixedFrequencySchedule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_AutomatedBackupConfig_FixedFrequencySchedule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule + .class, + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule + .Builder.class); + } + + // Construct using + // com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule.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(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_AutomatedBackupConfig_FixedFrequencySchedule_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule + build() { + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule + buildPartial() { + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule result = + new com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.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.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule) { + return mergeFrom( + (com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule + other) { + if (other + == com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule + .getDefaultInstance()) return this; + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + 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.type.TimeOfDay startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder> + startTimeBuilder_; + /** + * + * + *
    +       * Required. The start time of every automated backup in UTC. It must be set
    +       * to the start of an hour. This field is required.
    +       * 
    + * + * + * optional .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +       * Required. The start time of every automated backup in UTC. It must be set
    +       * to the start of an hour. This field is required.
    +       * 
    + * + * + * optional .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The startTime. + */ + public com.google.type.TimeOfDay getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
    +       * Required. The start time of every automated backup in UTC. It must be set
    +       * to the start of an hour. This field is required.
    +       * 
    + * + * + * optional .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setStartTime(com.google.type.TimeOfDay value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +       * Required. The start time of every automated backup in UTC. It must be set
    +       * to the start of an hour. This field is required.
    +       * 
    + * + * + * optional .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setStartTime(com.google.type.TimeOfDay.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +       * Required. The start time of every automated backup in UTC. It must be set
    +       * to the start of an hour. This field is required.
    +       * 
    + * + * + * optional .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeStartTime(com.google.type.TimeOfDay value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && startTime_ != null + && startTime_ != com.google.type.TimeOfDay.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
    +       * Required. The start time of every automated backup in UTC. It must be set
    +       * to the start of an hour. This field is required.
    +       * 
    + * + * + * optional .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000001); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +       * Required. The start time of every automated backup in UTC. It must be set
    +       * to the start of an hour. This field is required.
    +       * 
    + * + * + * optional .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.type.TimeOfDay.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
    +       * Required. The start time of every automated backup in UTC. It must be set
    +       * to the start of an hour. This field is required.
    +       * 
    + * + * + * optional .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
    +       * Required. The start time of every automated backup in UTC. It must be set
    +       * to the start of an hour. This field is required.
    +       * 
    + * + * + * optional .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule) + private static final com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig + .FixedFrequencySchedule + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule(); + } + + public static com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig + .FixedFrequencySchedule + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FixedFrequencySchedule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int scheduleCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object schedule_; + + public enum ScheduleCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + FIXED_FREQUENCY_SCHEDULE(2), + SCHEDULE_NOT_SET(0); + private final int value; + + private ScheduleCase(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 ScheduleCase valueOf(int value) { + return forNumber(value); + } + + public static ScheduleCase forNumber(int value) { + switch (value) { + case 2: + return FIXED_FREQUENCY_SCHEDULE; + case 0: + return SCHEDULE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ScheduleCase getScheduleCase() { + return ScheduleCase.forNumber(scheduleCase_); + } + + public static final int FIXED_FREQUENCY_SCHEDULE_FIELD_NUMBER = 2; + /** + * + * + *
    +   * Optional. Trigger automated backups at a fixed frequency.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the fixedFrequencySchedule field is set. + */ + @java.lang.Override + public boolean hasFixedFrequencySchedule() { + return scheduleCase_ == 2; + } + /** + * + * + *
    +   * Optional. Trigger automated backups at a fixed frequency.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fixedFrequencySchedule. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule + getFixedFrequencySchedule() { + if (scheduleCase_ == 2) { + return (com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule) + schedule_; + } + return com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule + .getDefaultInstance(); + } + /** + * + * + *
    +   * Optional. Trigger automated backups at a fixed frequency.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig + .FixedFrequencyScheduleOrBuilder + getFixedFrequencyScheduleOrBuilder() { + if (scheduleCase_ == 2) { + return (com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule) + schedule_; + } + return com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule + .getDefaultInstance(); + } + + public static final int AUTOMATED_BACKUP_MODE_FIELD_NUMBER = 1; + private int automatedBackupMode_ = 0; + /** + * + * + *
    +   * Optional. The automated backup mode. If the mode is disabled, the other
    +   * fields will be ignored.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.AutomatedBackupMode automated_backup_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for automatedBackupMode. + */ + @java.lang.Override + public int getAutomatedBackupModeValue() { + return automatedBackupMode_; + } + /** + * + * + *
    +   * Optional. The automated backup mode. If the mode is disabled, the other
    +   * fields will be ignored.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.AutomatedBackupMode automated_backup_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The automatedBackupMode. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.AutomatedBackupMode + getAutomatedBackupMode() { + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.AutomatedBackupMode result = + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.AutomatedBackupMode.forNumber( + automatedBackupMode_); + return result == null + ? com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.AutomatedBackupMode + .UNRECOGNIZED + : result; + } + + public static final int RETENTION_FIELD_NUMBER = 3; + private com.google.protobuf.Duration retention_; + /** + * + * + *
    +   * Optional. How long to keep automated backups before the backups are
    +   * deleted. The value should be between 1 day and 365 days. If not specified,
    +   * the default value is 35 days.
    +   * 
    + * + * + * optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the retention field is set. + */ + @java.lang.Override + public boolean hasRetention() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * Optional. How long to keep automated backups before the backups are
    +   * deleted. The value should be between 1 day and 365 days. If not specified,
    +   * the default value is 35 days.
    +   * 
    + * + * + * optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The retention. + */ + @java.lang.Override + public com.google.protobuf.Duration getRetention() { + return retention_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retention_; + } + /** + * + * + *
    +   * Optional. How long to keep automated backups before the backups are
    +   * deleted. The value should be between 1 day and 365 days. If not specified,
    +   * the default value is 35 days.
    +   * 
    + * + * + * optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getRetentionOrBuilder() { + return retention_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retention_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (automatedBackupMode_ + != com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.AutomatedBackupMode + .AUTOMATED_BACKUP_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, automatedBackupMode_); + } + if (scheduleCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule) + schedule_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getRetention()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (automatedBackupMode_ + != com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.AutomatedBackupMode + .AUTOMATED_BACKUP_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, automatedBackupMode_); + } + if (scheduleCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule) + schedule_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRetention()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig other = + (com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig) obj; + + if (automatedBackupMode_ != other.automatedBackupMode_) return false; + if (hasRetention() != other.hasRetention()) return false; + if (hasRetention()) { + if (!getRetention().equals(other.getRetention())) return false; + } + if (!getScheduleCase().equals(other.getScheduleCase())) return false; + switch (scheduleCase_) { + case 2: + if (!getFixedFrequencySchedule().equals(other.getFixedFrequencySchedule())) 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) + AUTOMATED_BACKUP_MODE_FIELD_NUMBER; + hash = (53 * hash) + automatedBackupMode_; + if (hasRetention()) { + hash = (37 * hash) + RETENTION_FIELD_NUMBER; + hash = (53 * hash) + getRetention().hashCode(); + } + switch (scheduleCase_) { + case 2: + hash = (37 * hash) + FIXED_FREQUENCY_SCHEDULE_FIELD_NUMBER; + hash = (53 * hash) + getFixedFrequencySchedule().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 automated backup config for a cluster.
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig) + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_AutomatedBackupConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_AutomatedBackupConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.class, + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRetentionFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (fixedFrequencyScheduleBuilder_ != null) { + fixedFrequencyScheduleBuilder_.clear(); + } + automatedBackupMode_ = 0; + retention_ = null; + if (retentionBuilder_ != null) { + retentionBuilder_.dispose(); + retentionBuilder_ = null; + } + scheduleCase_ = 0; + schedule_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_AutomatedBackupConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig build() { + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig buildPartial() { + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig result = + new com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.automatedBackupMode_ = automatedBackupMode_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.retention_ = retentionBuilder_ == null ? retention_ : retentionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig result) { + result.scheduleCase_ = scheduleCase_; + result.schedule_ = this.schedule_; + if (scheduleCase_ == 2 && fixedFrequencyScheduleBuilder_ != null) { + result.schedule_ = fixedFrequencyScheduleBuilder_.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.redis.cluster.v1beta1.AutomatedBackupConfig) { + return mergeFrom((com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig other) { + if (other + == com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.getDefaultInstance()) + return this; + if (other.automatedBackupMode_ != 0) { + setAutomatedBackupModeValue(other.getAutomatedBackupModeValue()); + } + if (other.hasRetention()) { + mergeRetention(other.getRetention()); + } + switch (other.getScheduleCase()) { + case FIXED_FREQUENCY_SCHEDULE: + { + mergeFixedFrequencySchedule(other.getFixedFrequencySchedule()); + break; + } + case SCHEDULE_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: + { + automatedBackupMode_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 8 + case 18: + { + input.readMessage( + getFixedFrequencyScheduleFieldBuilder().getBuilder(), extensionRegistry); + scheduleCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getRetentionFieldBuilder().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 scheduleCase_ = 0; + private java.lang.Object schedule_; + + public ScheduleCase getScheduleCase() { + return ScheduleCase.forNumber(scheduleCase_); + } + + public Builder clearSchedule() { + scheduleCase_ = 0; + schedule_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule, + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule + .Builder, + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig + .FixedFrequencyScheduleOrBuilder> + fixedFrequencyScheduleBuilder_; + /** + * + * + *
    +     * Optional. Trigger automated backups at a fixed frequency.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the fixedFrequencySchedule field is set. + */ + @java.lang.Override + public boolean hasFixedFrequencySchedule() { + return scheduleCase_ == 2; + } + /** + * + * + *
    +     * Optional. Trigger automated backups at a fixed frequency.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fixedFrequencySchedule. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule + getFixedFrequencySchedule() { + if (fixedFrequencyScheduleBuilder_ == null) { + if (scheduleCase_ == 2) { + return (com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig + .FixedFrequencySchedule) + schedule_; + } + return com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule + .getDefaultInstance(); + } else { + if (scheduleCase_ == 2) { + return fixedFrequencyScheduleBuilder_.getMessage(); + } + return com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule + .getDefaultInstance(); + } + } + /** + * + * + *
    +     * Optional. Trigger automated backups at a fixed frequency.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFixedFrequencySchedule( + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule value) { + if (fixedFrequencyScheduleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + schedule_ = value; + onChanged(); + } else { + fixedFrequencyScheduleBuilder_.setMessage(value); + } + scheduleCase_ = 2; + return this; + } + /** + * + * + *
    +     * Optional. Trigger automated backups at a fixed frequency.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFixedFrequencySchedule( + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule.Builder + builderForValue) { + if (fixedFrequencyScheduleBuilder_ == null) { + schedule_ = builderForValue.build(); + onChanged(); + } else { + fixedFrequencyScheduleBuilder_.setMessage(builderForValue.build()); + } + scheduleCase_ = 2; + return this; + } + /** + * + * + *
    +     * Optional. Trigger automated backups at a fixed frequency.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeFixedFrequencySchedule( + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule value) { + if (fixedFrequencyScheduleBuilder_ == null) { + if (scheduleCase_ == 2 + && schedule_ + != com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig + .FixedFrequencySchedule.getDefaultInstance()) { + schedule_ = + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule + .newBuilder( + (com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig + .FixedFrequencySchedule) + schedule_) + .mergeFrom(value) + .buildPartial(); + } else { + schedule_ = value; + } + onChanged(); + } else { + if (scheduleCase_ == 2) { + fixedFrequencyScheduleBuilder_.mergeFrom(value); + } else { + fixedFrequencyScheduleBuilder_.setMessage(value); + } + } + scheduleCase_ = 2; + return this; + } + /** + * + * + *
    +     * Optional. Trigger automated backups at a fixed frequency.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFixedFrequencySchedule() { + if (fixedFrequencyScheduleBuilder_ == null) { + if (scheduleCase_ == 2) { + scheduleCase_ = 0; + schedule_ = null; + onChanged(); + } + } else { + if (scheduleCase_ == 2) { + scheduleCase_ = 0; + schedule_ = null; + } + fixedFrequencyScheduleBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * Optional. Trigger automated backups at a fixed frequency.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule + .Builder + getFixedFrequencyScheduleBuilder() { + return getFixedFrequencyScheduleFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Optional. Trigger automated backups at a fixed frequency.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig + .FixedFrequencyScheduleOrBuilder + getFixedFrequencyScheduleOrBuilder() { + if ((scheduleCase_ == 2) && (fixedFrequencyScheduleBuilder_ != null)) { + return fixedFrequencyScheduleBuilder_.getMessageOrBuilder(); + } else { + if (scheduleCase_ == 2) { + return (com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig + .FixedFrequencySchedule) + schedule_; + } + return com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule + .getDefaultInstance(); + } + } + /** + * + * + *
    +     * Optional. Trigger automated backups at a fixed frequency.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule, + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule + .Builder, + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig + .FixedFrequencyScheduleOrBuilder> + getFixedFrequencyScheduleFieldBuilder() { + if (fixedFrequencyScheduleBuilder_ == null) { + if (!(scheduleCase_ == 2)) { + schedule_ = + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule + .getDefaultInstance(); + } + fixedFrequencyScheduleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule, + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule + .Builder, + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig + .FixedFrequencyScheduleOrBuilder>( + (com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig + .FixedFrequencySchedule) + schedule_, + getParentForChildren(), + isClean()); + schedule_ = null; + } + scheduleCase_ = 2; + onChanged(); + return fixedFrequencyScheduleBuilder_; + } + + private int automatedBackupMode_ = 0; + /** + * + * + *
    +     * Optional. The automated backup mode. If the mode is disabled, the other
    +     * fields will be ignored.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.AutomatedBackupMode automated_backup_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for automatedBackupMode. + */ + @java.lang.Override + public int getAutomatedBackupModeValue() { + return automatedBackupMode_; + } + /** + * + * + *
    +     * Optional. The automated backup mode. If the mode is disabled, the other
    +     * fields will be ignored.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.AutomatedBackupMode automated_backup_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for automatedBackupMode to set. + * @return This builder for chaining. + */ + public Builder setAutomatedBackupModeValue(int value) { + automatedBackupMode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The automated backup mode. If the mode is disabled, the other
    +     * fields will be ignored.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.AutomatedBackupMode automated_backup_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The automatedBackupMode. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.AutomatedBackupMode + getAutomatedBackupMode() { + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.AutomatedBackupMode result = + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.AutomatedBackupMode + .forNumber(automatedBackupMode_); + return result == null + ? com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.AutomatedBackupMode + .UNRECOGNIZED + : result; + } + /** + * + * + *
    +     * Optional. The automated backup mode. If the mode is disabled, the other
    +     * fields will be ignored.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.AutomatedBackupMode automated_backup_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The automatedBackupMode to set. + * @return This builder for chaining. + */ + public Builder setAutomatedBackupMode( + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.AutomatedBackupMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + automatedBackupMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The automated backup mode. If the mode is disabled, the other
    +     * fields will be ignored.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.AutomatedBackupMode automated_backup_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAutomatedBackupMode() { + bitField0_ = (bitField0_ & ~0x00000002); + automatedBackupMode_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Duration retention_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + retentionBuilder_; + /** + * + * + *
    +     * Optional. How long to keep automated backups before the backups are
    +     * deleted. The value should be between 1 day and 365 days. If not specified,
    +     * the default value is 35 days.
    +     * 
    + * + * + * optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the retention field is set. + */ + public boolean hasRetention() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +     * Optional. How long to keep automated backups before the backups are
    +     * deleted. The value should be between 1 day and 365 days. If not specified,
    +     * the default value is 35 days.
    +     * 
    + * + * + * optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The retention. + */ + public com.google.protobuf.Duration getRetention() { + if (retentionBuilder_ == null) { + return retention_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retention_; + } else { + return retentionBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Optional. How long to keep automated backups before the backups are
    +     * deleted. The value should be between 1 day and 365 days. If not specified,
    +     * the default value is 35 days.
    +     * 
    + * + * + * optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRetention(com.google.protobuf.Duration value) { + if (retentionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + retention_ = value; + } else { + retentionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. How long to keep automated backups before the backups are
    +     * deleted. The value should be between 1 day and 365 days. If not specified,
    +     * the default value is 35 days.
    +     * 
    + * + * + * optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRetention(com.google.protobuf.Duration.Builder builderForValue) { + if (retentionBuilder_ == null) { + retention_ = builderForValue.build(); + } else { + retentionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. How long to keep automated backups before the backups are
    +     * deleted. The value should be between 1 day and 365 days. If not specified,
    +     * the default value is 35 days.
    +     * 
    + * + * + * optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRetention(com.google.protobuf.Duration value) { + if (retentionBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && retention_ != null + && retention_ != com.google.protobuf.Duration.getDefaultInstance()) { + getRetentionBuilder().mergeFrom(value); + } else { + retention_ = value; + } + } else { + retentionBuilder_.mergeFrom(value); + } + if (retention_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Optional. How long to keep automated backups before the backups are
    +     * deleted. The value should be between 1 day and 365 days. If not specified,
    +     * the default value is 35 days.
    +     * 
    + * + * + * optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRetention() { + bitField0_ = (bitField0_ & ~0x00000004); + retention_ = null; + if (retentionBuilder_ != null) { + retentionBuilder_.dispose(); + retentionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. How long to keep automated backups before the backups are
    +     * deleted. The value should be between 1 day and 365 days. If not specified,
    +     * the default value is 35 days.
    +     * 
    + * + * + * optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Duration.Builder getRetentionBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getRetentionFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Optional. How long to keep automated backups before the backups are
    +     * deleted. The value should be between 1 day and 365 days. If not specified,
    +     * the default value is 35 days.
    +     * 
    + * + * + * optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.DurationOrBuilder getRetentionOrBuilder() { + if (retentionBuilder_ != null) { + return retentionBuilder_.getMessageOrBuilder(); + } else { + return retention_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retention_; + } + } + /** + * + * + *
    +     * Optional. How long to keep automated backups before the backups are
    +     * deleted. The value should be between 1 day and 365 days. If not specified,
    +     * the default value is 35 days.
    +     * 
    + * + * + * optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getRetentionFieldBuilder() { + if (retentionBuilder_ == null) { + retentionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getRetention(), getParentForChildren(), isClean()); + retention_ = null; + } + return retentionBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig) + private static final com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig(); + } + + public static com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AutomatedBackupConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AutomatedBackupConfigOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AutomatedBackupConfigOrBuilder.java new file mode 100644 index 000000000000..060439d64828 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/AutomatedBackupConfigOrBuilder.java @@ -0,0 +1,150 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +public interface AutomatedBackupConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Optional. Trigger automated backups at a fixed frequency.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the fixedFrequencySchedule field is set. + */ + boolean hasFixedFrequencySchedule(); + /** + * + * + *
    +   * Optional. Trigger automated backups at a fixed frequency.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fixedFrequencySchedule. + */ + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule + getFixedFrequencySchedule(); + /** + * + * + *
    +   * Optional. Trigger automated backups at a fixed frequency.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.FixedFrequencyScheduleOrBuilder + getFixedFrequencyScheduleOrBuilder(); + + /** + * + * + *
    +   * Optional. The automated backup mode. If the mode is disabled, the other
    +   * fields will be ignored.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.AutomatedBackupMode automated_backup_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for automatedBackupMode. + */ + int getAutomatedBackupModeValue(); + /** + * + * + *
    +   * Optional. The automated backup mode. If the mode is disabled, the other
    +   * fields will be ignored.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.AutomatedBackupMode automated_backup_mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The automatedBackupMode. + */ + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.AutomatedBackupMode + getAutomatedBackupMode(); + + /** + * + * + *
    +   * Optional. How long to keep automated backups before the backups are
    +   * deleted. The value should be between 1 day and 365 days. If not specified,
    +   * the default value is 35 days.
    +   * 
    + * + * + * optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the retention field is set. + */ + boolean hasRetention(); + /** + * + * + *
    +   * Optional. How long to keep automated backups before the backups are
    +   * deleted. The value should be between 1 day and 365 days. If not specified,
    +   * the default value is 35 days.
    +   * 
    + * + * + * optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The retention. + */ + com.google.protobuf.Duration getRetention(); + /** + * + * + *
    +   * Optional. How long to keep automated backups before the backups are
    +   * deleted. The value should be between 1 day and 365 days. If not specified,
    +   * the default value is 35 days.
    +   * 
    + * + * + * optional .google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.DurationOrBuilder getRetentionOrBuilder(); + + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.ScheduleCase getScheduleCase(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/Backup.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/Backup.java new file mode 100644 index 000000000000..37b98928e025 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/Backup.java @@ -0,0 +1,3986 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
    + * Backup of a cluster.
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.Backup} + */ +public final class Backup extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.Backup) + BackupOrBuilder { + private static final long serialVersionUID = 0L; + // Use Backup.newBuilder() to construct. + private Backup(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Backup() { + name_ = ""; + cluster_ = ""; + clusterUid_ = ""; + engineVersion_ = ""; + backupFiles_ = java.util.Collections.emptyList(); + nodeType_ = 0; + backupType_ = 0; + state_ = 0; + uid_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Backup(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_Backup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_Backup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.Backup.class, + com.google.cloud.redis.cluster.v1beta1.Backup.Builder.class); + } + + /** + * + * + *
    +   * Type of the backup.
    +   * 
    + * + * Protobuf enum {@code google.cloud.redis.cluster.v1beta1.Backup.BackupType} + */ + public enum BackupType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * The default value, not set.
    +     * 
    + * + * BACKUP_TYPE_UNSPECIFIED = 0; + */ + BACKUP_TYPE_UNSPECIFIED(0), + /** + * + * + *
    +     * On-demand backup.
    +     * 
    + * + * ON_DEMAND = 1; + */ + ON_DEMAND(1), + /** + * + * + *
    +     * Automated backup.
    +     * 
    + * + * AUTOMATED = 2; + */ + AUTOMATED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * The default value, not set.
    +     * 
    + * + * BACKUP_TYPE_UNSPECIFIED = 0; + */ + public static final int BACKUP_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +     * On-demand backup.
    +     * 
    + * + * ON_DEMAND = 1; + */ + public static final int ON_DEMAND_VALUE = 1; + /** + * + * + *
    +     * Automated backup.
    +     * 
    + * + * AUTOMATED = 2; + */ + public static final int AUTOMATED_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 BackupType 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 BackupType forNumber(int value) { + switch (value) { + case 0: + return BACKUP_TYPE_UNSPECIFIED; + case 1: + return ON_DEMAND; + case 2: + return AUTOMATED; + 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 BackupType findValueByNumber(int number) { + return BackupType.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.redis.cluster.v1beta1.Backup.getDescriptor().getEnumTypes().get(0); + } + + private static final BackupType[] VALUES = values(); + + public static BackupType 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 BackupType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.redis.cluster.v1beta1.Backup.BackupType) + } + + /** + * + * + *
    +   * State of the backup.
    +   * 
    + * + * Protobuf enum {@code google.cloud.redis.cluster.v1beta1.Backup.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * The default value, not set.
    +     * 
    + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
    +     * The backup is being created.
    +     * 
    + * + * CREATING = 1; + */ + CREATING(1), + /** + * + * + *
    +     * The backup is active to be used.
    +     * 
    + * + * ACTIVE = 2; + */ + ACTIVE(2), + /** + * + * + *
    +     * The backup is being deleted.
    +     * 
    + * + * DELETING = 3; + */ + DELETING(3), + /** + * + * + *
    +     * The backup is currently suspended due to reasons like project deletion,
    +     * billing account closure, etc.
    +     * 
    + * + * SUSPENDED = 4; + */ + SUSPENDED(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * The default value, not set.
    +     * 
    + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +     * The backup is being created.
    +     * 
    + * + * CREATING = 1; + */ + public static final int CREATING_VALUE = 1; + /** + * + * + *
    +     * The backup is active to be used.
    +     * 
    + * + * ACTIVE = 2; + */ + public static final int ACTIVE_VALUE = 2; + /** + * + * + *
    +     * The backup is being deleted.
    +     * 
    + * + * DELETING = 3; + */ + public static final int DELETING_VALUE = 3; + /** + * + * + *
    +     * The backup is currently suspended due to reasons like project deletion,
    +     * billing account closure, etc.
    +     * 
    + * + * SUSPENDED = 4; + */ + public static final int SUSPENDED_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static 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 CREATING; + case 2: + return ACTIVE; + case 3: + return DELETING; + case 4: + return SUSPENDED; + 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.redis.cluster.v1beta1.Backup.getDescriptor().getEnumTypes().get(1); + } + + 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.redis.cluster.v1beta1.Backup.State) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Identifier. Full resource path of the backup. the last part of the name is
    +   * the backup id with the following format: [YYYYMMDDHHMMSS]_[Shorted Cluster
    +   * UID] OR customer specified while backup cluster. Example:
    +   * 20240515123000_1234
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + /** + * + * + *
    +   * Identifier. Full resource path of the backup. the last part of the name is
    +   * the backup id with the following format: [YYYYMMDDHHMMSS]_[Shorted Cluster
    +   * UID] OR customer specified while backup cluster. Example:
    +   * 20240515123000_1234
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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 CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
    +   * Output only. The time when the backup was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 2 [(.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. The time when the backup was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 2 [(.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. The time when the backup was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 2 [(.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 CLUSTER_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object cluster_ = ""; + /** + * + * + *
    +   * Output only. Cluster resource path of this backup.
    +   * 
    + * + * + * string cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The cluster. + */ + @java.lang.Override + public java.lang.String getCluster() { + java.lang.Object ref = cluster_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cluster_ = s; + return s; + } + } + /** + * + * + *
    +   * Output only. Cluster resource path of this backup.
    +   * 
    + * + * + * string cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cluster. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterBytes() { + java.lang.Object ref = cluster_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_UID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object clusterUid_ = ""; + /** + * + * + *
    +   * Output only. Cluster uid of this backup.
    +   * 
    + * + * + * string cluster_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The clusterUid. + */ + @java.lang.Override + public java.lang.String getClusterUid() { + java.lang.Object ref = clusterUid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterUid_ = s; + return s; + } + } + /** + * + * + *
    +   * Output only. Cluster uid of this backup.
    +   * 
    + * + * + * string cluster_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for clusterUid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterUidBytes() { + java.lang.Object ref = clusterUid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterUid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOTAL_SIZE_BYTES_FIELD_NUMBER = 5; + private long totalSizeBytes_ = 0L; + /** + * + * + *
    +   * Output only. Total size of the backup in bytes.
    +   * 
    + * + * int64 total_size_bytes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The totalSizeBytes. + */ + @java.lang.Override + public long getTotalSizeBytes() { + return totalSizeBytes_; + } + + public static final int EXPIRE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp expireTime_; + /** + * + * + *
    +   * Output only. The time when the backup will expire.
    +   * 
    + * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the expireTime field is set. + */ + @java.lang.Override + public boolean hasExpireTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +   * Output only. The time when the backup will expire.
    +   * 
    + * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The expireTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getExpireTime() { + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + } + /** + * + * + *
    +   * Output only. The time when the backup will expire.
    +   * 
    + * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + } + + public static final int ENGINE_VERSION_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object engineVersion_ = ""; + /** + * + * + *
    +   * Output only. redis-7.2, valkey-7.5
    +   * 
    + * + * string engine_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The engineVersion. + */ + @java.lang.Override + public java.lang.String getEngineVersion() { + java.lang.Object ref = engineVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + engineVersion_ = s; + return s; + } + } + /** + * + * + *
    +   * Output only. redis-7.2, valkey-7.5
    +   * 
    + * + * string engine_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for engineVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEngineVersionBytes() { + java.lang.Object ref = engineVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + engineVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BACKUP_FILES_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List backupFiles_; + /** + * + * + *
    +   * Output only. List of backup files of the backup.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getBackupFilesList() { + return backupFiles_; + } + /** + * + * + *
    +   * Output only. List of backup files of the backup.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getBackupFilesOrBuilderList() { + return backupFiles_; + } + /** + * + * + *
    +   * Output only. List of backup files of the backup.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getBackupFilesCount() { + return backupFiles_.size(); + } + /** + * + * + *
    +   * Output only. List of backup files of the backup.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.BackupFile getBackupFiles(int index) { + return backupFiles_.get(index); + } + /** + * + * + *
    +   * Output only. List of backup files of the backup.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.BackupFileOrBuilder getBackupFilesOrBuilder( + int index) { + return backupFiles_.get(index); + } + + public static final int NODE_TYPE_FIELD_NUMBER = 9; + private int nodeType_ = 0; + /** + * + * + *
    +   * Output only. Node type of the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.NodeType node_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for nodeType. + */ + @java.lang.Override + public int getNodeTypeValue() { + return nodeType_; + } + /** + * + * + *
    +   * Output only. Node type of the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.NodeType node_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The nodeType. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.NodeType getNodeType() { + com.google.cloud.redis.cluster.v1beta1.NodeType result = + com.google.cloud.redis.cluster.v1beta1.NodeType.forNumber(nodeType_); + return result == null ? com.google.cloud.redis.cluster.v1beta1.NodeType.UNRECOGNIZED : result; + } + + public static final int REPLICA_COUNT_FIELD_NUMBER = 10; + private int replicaCount_ = 0; + /** + * + * + *
    +   * Output only. Number of replicas for the cluster.
    +   * 
    + * + * int32 replica_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The replicaCount. + */ + @java.lang.Override + public int getReplicaCount() { + return replicaCount_; + } + + public static final int SHARD_COUNT_FIELD_NUMBER = 11; + private int shardCount_ = 0; + /** + * + * + *
    +   * Output only. Number of shards for the cluster.
    +   * 
    + * + * int32 shard_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The shardCount. + */ + @java.lang.Override + public int getShardCount() { + return shardCount_; + } + + public static final int BACKUP_TYPE_FIELD_NUMBER = 12; + private int backupType_ = 0; + /** + * + * + *
    +   * Output only. Type of the backup.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Backup.BackupType backup_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for backupType. + */ + @java.lang.Override + public int getBackupTypeValue() { + return backupType_; + } + /** + * + * + *
    +   * Output only. Type of the backup.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Backup.BackupType backup_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The backupType. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.Backup.BackupType getBackupType() { + com.google.cloud.redis.cluster.v1beta1.Backup.BackupType result = + com.google.cloud.redis.cluster.v1beta1.Backup.BackupType.forNumber(backupType_); + return result == null + ? com.google.cloud.redis.cluster.v1beta1.Backup.BackupType.UNRECOGNIZED + : result; + } + + public static final int STATE_FIELD_NUMBER = 13; + private int state_ = 0; + /** + * + * + *
    +   * Output only. State of the backup.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Backup.State state = 13 [(.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. State of the backup.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Backup.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.Backup.State getState() { + com.google.cloud.redis.cluster.v1beta1.Backup.State result = + com.google.cloud.redis.cluster.v1beta1.Backup.State.forNumber(state_); + return result == null + ? com.google.cloud.redis.cluster.v1beta1.Backup.State.UNRECOGNIZED + : result; + } + + public static final int ENCRYPTION_INFO_FIELD_NUMBER = 14; + private com.google.cloud.redis.cluster.v1beta1.EncryptionInfo encryptionInfo_; + /** + * + * + *
    +   * Output only. Encryption information of the backup.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the encryptionInfo field is set. + */ + @java.lang.Override + public boolean hasEncryptionInfo() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +   * Output only. Encryption information of the backup.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The encryptionInfo. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.EncryptionInfo getEncryptionInfo() { + return encryptionInfo_ == null + ? com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.getDefaultInstance() + : encryptionInfo_; + } + /** + * + * + *
    +   * Output only. Encryption information of the backup.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.EncryptionInfoOrBuilder + getEncryptionInfoOrBuilder() { + return encryptionInfo_ == null + ? com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.getDefaultInstance() + : encryptionInfo_; + } + + public static final int UID_FIELD_NUMBER = 15; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + /** + * + * + *
    +   * Output only. System assigned unique identifier of the backup.
    +   * 
    + * + * + * string uid = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } + } + /** + * + * + *
    +   * Output only. System assigned unique identifier of the backup.
    +   * 
    + * + * + * string uid = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = 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, getCreateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cluster_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cluster_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterUid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, clusterUid_); + } + if (totalSizeBytes_ != 0L) { + output.writeInt64(5, totalSizeBytes_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getExpireTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(engineVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, engineVersion_); + } + for (int i = 0; i < backupFiles_.size(); i++) { + output.writeMessage(8, backupFiles_.get(i)); + } + if (nodeType_ + != com.google.cloud.redis.cluster.v1beta1.NodeType.NODE_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(9, nodeType_); + } + if (replicaCount_ != 0) { + output.writeInt32(10, replicaCount_); + } + if (shardCount_ != 0) { + output.writeInt32(11, shardCount_); + } + if (backupType_ + != com.google.cloud.redis.cluster.v1beta1.Backup.BackupType.BACKUP_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(12, backupType_); + } + if (state_ + != com.google.cloud.redis.cluster.v1beta1.Backup.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(13, state_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(14, getEncryptionInfo()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, uid_); + } + 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, getCreateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cluster_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, cluster_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterUid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, clusterUid_); + } + if (totalSizeBytes_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, totalSizeBytes_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getExpireTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(engineVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, engineVersion_); + } + for (int i = 0; i < backupFiles_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, backupFiles_.get(i)); + } + if (nodeType_ + != com.google.cloud.redis.cluster.v1beta1.NodeType.NODE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, nodeType_); + } + if (replicaCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(10, replicaCount_); + } + if (shardCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(11, shardCount_); + } + if (backupType_ + != com.google.cloud.redis.cluster.v1beta1.Backup.BackupType.BACKUP_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, backupType_); + } + if (state_ + != com.google.cloud.redis.cluster.v1beta1.Backup.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, state_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getEncryptionInfo()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, uid_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1beta1.Backup)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.Backup other = + (com.google.cloud.redis.cluster.v1beta1.Backup) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (!getCluster().equals(other.getCluster())) return false; + if (!getClusterUid().equals(other.getClusterUid())) return false; + if (getTotalSizeBytes() != other.getTotalSizeBytes()) return false; + if (hasExpireTime() != other.hasExpireTime()) return false; + if (hasExpireTime()) { + if (!getExpireTime().equals(other.getExpireTime())) return false; + } + if (!getEngineVersion().equals(other.getEngineVersion())) return false; + if (!getBackupFilesList().equals(other.getBackupFilesList())) return false; + if (nodeType_ != other.nodeType_) return false; + if (getReplicaCount() != other.getReplicaCount()) return false; + if (getShardCount() != other.getShardCount()) return false; + if (backupType_ != other.backupType_) return false; + if (state_ != other.state_) return false; + if (hasEncryptionInfo() != other.hasEncryptionInfo()) return false; + if (hasEncryptionInfo()) { + if (!getEncryptionInfo().equals(other.getEncryptionInfo())) return false; + } + if (!getUid().equals(other.getUid())) return false; + if (!getUnknownFields().equals(other.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 (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (37 * hash) + CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getCluster().hashCode(); + hash = (37 * hash) + CLUSTER_UID_FIELD_NUMBER; + hash = (53 * hash) + getClusterUid().hashCode(); + hash = (37 * hash) + TOTAL_SIZE_BYTES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalSizeBytes()); + if (hasExpireTime()) { + hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getExpireTime().hashCode(); + } + hash = (37 * hash) + ENGINE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getEngineVersion().hashCode(); + if (getBackupFilesCount() > 0) { + hash = (37 * hash) + BACKUP_FILES_FIELD_NUMBER; + hash = (53 * hash) + getBackupFilesList().hashCode(); + } + hash = (37 * hash) + NODE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + nodeType_; + hash = (37 * hash) + REPLICA_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getReplicaCount(); + hash = (37 * hash) + SHARD_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getShardCount(); + hash = (37 * hash) + BACKUP_TYPE_FIELD_NUMBER; + hash = (53 * hash) + backupType_; + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasEncryptionInfo()) { + hash = (37 * hash) + ENCRYPTION_INFO_FIELD_NUMBER; + hash = (53 * hash) + getEncryptionInfo().hashCode(); + } + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.Backup parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.Backup parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.Backup parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.Backup parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.Backup parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.Backup parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.Backup parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.Backup parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.Backup parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.Backup parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.Backup parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.Backup parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.redis.cluster.v1beta1.Backup prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Backup of a cluster.
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.Backup} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.Backup) + com.google.cloud.redis.cluster.v1beta1.BackupOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_Backup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_Backup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.Backup.class, + com.google.cloud.redis.cluster.v1beta1.Backup.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1beta1.Backup.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(); + getExpireTimeFieldBuilder(); + getBackupFilesFieldBuilder(); + getEncryptionInfoFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + cluster_ = ""; + clusterUid_ = ""; + totalSizeBytes_ = 0L; + expireTime_ = null; + if (expireTimeBuilder_ != null) { + expireTimeBuilder_.dispose(); + expireTimeBuilder_ = null; + } + engineVersion_ = ""; + if (backupFilesBuilder_ == null) { + backupFiles_ = java.util.Collections.emptyList(); + } else { + backupFiles_ = null; + backupFilesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + nodeType_ = 0; + replicaCount_ = 0; + shardCount_ = 0; + backupType_ = 0; + state_ = 0; + encryptionInfo_ = null; + if (encryptionInfoBuilder_ != null) { + encryptionInfoBuilder_.dispose(); + encryptionInfoBuilder_ = null; + } + uid_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_Backup_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.Backup getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.Backup.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.Backup build() { + com.google.cloud.redis.cluster.v1beta1.Backup result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.Backup buildPartial() { + com.google.cloud.redis.cluster.v1beta1.Backup result = + new com.google.cloud.redis.cluster.v1beta1.Backup(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.redis.cluster.v1beta1.Backup result) { + if (backupFilesBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + backupFiles_ = java.util.Collections.unmodifiableList(backupFiles_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.backupFiles_ = backupFiles_; + } else { + result.backupFiles_ = backupFilesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1beta1.Backup result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.cluster_ = cluster_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.clusterUid_ = clusterUid_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.totalSizeBytes_ = totalSizeBytes_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.engineVersion_ = engineVersion_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.nodeType_ = nodeType_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.replicaCount_ = replicaCount_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.shardCount_ = shardCount_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.backupType_ = backupType_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.encryptionInfo_ = + encryptionInfoBuilder_ == null ? encryptionInfo_ : encryptionInfoBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.uid_ = uid_; + } + 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.redis.cluster.v1beta1.Backup) { + return mergeFrom((com.google.cloud.redis.cluster.v1beta1.Backup) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1beta1.Backup other) { + if (other == com.google.cloud.redis.cluster.v1beta1.Backup.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (!other.getCluster().isEmpty()) { + cluster_ = other.cluster_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getClusterUid().isEmpty()) { + clusterUid_ = other.clusterUid_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.getTotalSizeBytes() != 0L) { + setTotalSizeBytes(other.getTotalSizeBytes()); + } + if (other.hasExpireTime()) { + mergeExpireTime(other.getExpireTime()); + } + if (!other.getEngineVersion().isEmpty()) { + engineVersion_ = other.engineVersion_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (backupFilesBuilder_ == null) { + if (!other.backupFiles_.isEmpty()) { + if (backupFiles_.isEmpty()) { + backupFiles_ = other.backupFiles_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureBackupFilesIsMutable(); + backupFiles_.addAll(other.backupFiles_); + } + onChanged(); + } + } else { + if (!other.backupFiles_.isEmpty()) { + if (backupFilesBuilder_.isEmpty()) { + backupFilesBuilder_.dispose(); + backupFilesBuilder_ = null; + backupFiles_ = other.backupFiles_; + bitField0_ = (bitField0_ & ~0x00000080); + backupFilesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBackupFilesFieldBuilder() + : null; + } else { + backupFilesBuilder_.addAllMessages(other.backupFiles_); + } + } + } + if (other.nodeType_ != 0) { + setNodeTypeValue(other.getNodeTypeValue()); + } + if (other.getReplicaCount() != 0) { + setReplicaCount(other.getReplicaCount()); + } + if (other.getShardCount() != 0) { + setShardCount(other.getShardCount()); + } + if (other.backupType_ != 0) { + setBackupTypeValue(other.getBackupTypeValue()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasEncryptionInfo()) { + mergeEncryptionInfo(other.getEncryptionInfo()); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00004000; + 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(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + cluster_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + clusterUid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + totalSizeBytes_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + engineVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + com.google.cloud.redis.cluster.v1beta1.BackupFile m = + input.readMessage( + com.google.cloud.redis.cluster.v1beta1.BackupFile.parser(), + extensionRegistry); + if (backupFilesBuilder_ == null) { + ensureBackupFilesIsMutable(); + backupFiles_.add(m); + } else { + backupFilesBuilder_.addMessage(m); + } + break; + } // case 66 + case 72: + { + nodeType_ = input.readEnum(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 80: + { + replicaCount_ = input.readInt32(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 88: + { + shardCount_ = input.readInt32(); + bitField0_ |= 0x00000400; + break; + } // case 88 + case 96: + { + backupType_ = input.readEnum(); + bitField0_ |= 0x00000800; + break; + } // case 96 + case 104: + { + state_ = input.readEnum(); + bitField0_ |= 0x00001000; + break; + } // case 104 + case 114: + { + input.readMessage(getEncryptionInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 114 + case 122: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00004000; + break; + } // case 122 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + 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_ = ""; + /** + * + * + *
    +     * Identifier. Full resource path of the backup. the last part of the name is
    +     * the backup id with the following format: [YYYYMMDDHHMMSS]_[Shorted Cluster
    +     * UID] OR customer specified while backup cluster. Example:
    +     * 20240515123000_1234
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + /** + * + * + *
    +     * Identifier. Full resource path of the backup. the last part of the name is
    +     * the backup id with the following format: [YYYYMMDDHHMMSS]_[Shorted Cluster
    +     * UID] OR customer specified while backup cluster. Example:
    +     * 20240515123000_1234
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + /** + * + * + *
    +     * Identifier. Full resource path of the backup. the last part of the name is
    +     * the backup id with the following format: [YYYYMMDDHHMMSS]_[Shorted Cluster
    +     * UID] OR customer specified while backup cluster. Example:
    +     * 20240515123000_1234
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + /** + * + * + *
    +     * Identifier. Full resource path of the backup. the last part of the name is
    +     * the backup id with the following format: [YYYYMMDDHHMMSS]_[Shorted Cluster
    +     * UID] OR customer specified while backup cluster. Example:
    +     * 20240515123000_1234
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * Identifier. Full resource path of the backup. the last part of the name is
    +     * the backup id with the following format: [YYYYMMDDHHMMSS]_[Shorted Cluster
    +     * UID] OR customer specified while backup cluster. Example:
    +     * 20240515123000_1234
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
    +     * Output only. The time when the backup was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * Output only. The time when the backup was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.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. The time when the backup was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The time when the backup was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The time when the backup was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Output only. The time when the backup was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The time when the backup was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Output only. The time when the backup was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 2 [(.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. The time when the backup was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_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> + 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 java.lang.Object cluster_ = ""; + /** + * + * + *
    +     * Output only. Cluster resource path of this backup.
    +     * 
    + * + * + * string cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The cluster. + */ + public java.lang.String getCluster() { + java.lang.Object ref = cluster_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cluster_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Output only. Cluster resource path of this backup.
    +     * 
    + * + * + * string cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cluster. + */ + public com.google.protobuf.ByteString getClusterBytes() { + java.lang.Object ref = cluster_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Output only. Cluster resource path of this backup.
    +     * 
    + * + * + * string cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The cluster to set. + * @return This builder for chaining. + */ + public Builder setCluster(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cluster_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Cluster resource path of this backup.
    +     * 
    + * + * + * string cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCluster() { + cluster_ = getDefaultInstance().getCluster(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Cluster resource path of this backup.
    +     * 
    + * + * + * string cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for cluster to set. + * @return This builder for chaining. + */ + public Builder setClusterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cluster_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object clusterUid_ = ""; + /** + * + * + *
    +     * Output only. Cluster uid of this backup.
    +     * 
    + * + * + * string cluster_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The clusterUid. + */ + public java.lang.String getClusterUid() { + java.lang.Object ref = clusterUid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterUid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Output only. Cluster uid of this backup.
    +     * 
    + * + * + * string cluster_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for clusterUid. + */ + public com.google.protobuf.ByteString getClusterUidBytes() { + java.lang.Object ref = clusterUid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterUid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Output only. Cluster uid of this backup.
    +     * 
    + * + * + * string cluster_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The clusterUid to set. + * @return This builder for chaining. + */ + public Builder setClusterUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clusterUid_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Cluster uid of this backup.
    +     * 
    + * + * + * string cluster_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearClusterUid() { + clusterUid_ = getDefaultInstance().getClusterUid(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Cluster uid of this backup.
    +     * 
    + * + * + * string cluster_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for clusterUid to set. + * @return This builder for chaining. + */ + public Builder setClusterUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterUid_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private long totalSizeBytes_; + /** + * + * + *
    +     * Output only. Total size of the backup in bytes.
    +     * 
    + * + * int64 total_size_bytes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The totalSizeBytes. + */ + @java.lang.Override + public long getTotalSizeBytes() { + return totalSizeBytes_; + } + /** + * + * + *
    +     * Output only. Total size of the backup in bytes.
    +     * 
    + * + * int64 total_size_bytes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The totalSizeBytes to set. + * @return This builder for chaining. + */ + public Builder setTotalSizeBytes(long value) { + + totalSizeBytes_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Total size of the backup in bytes.
    +     * 
    + * + * int64 total_size_bytes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTotalSizeBytes() { + bitField0_ = (bitField0_ & ~0x00000010); + totalSizeBytes_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp expireTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; + /** + * + * + *
    +     * Output only. The time when the backup will expire.
    +     * 
    + * + * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the expireTime field is set. + */ + public boolean hasExpireTime() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
    +     * Output only. The time when the backup will expire.
    +     * 
    + * + * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The expireTime. + */ + public com.google.protobuf.Timestamp getExpireTime() { + if (expireTimeBuilder_ == null) { + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; + } else { + return expireTimeBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Output only. The time when the backup will expire.
    +     * 
    + * + * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expireTime_ = value; + } else { + expireTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The time when the backup will expire.
    +     * 
    + * + * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (expireTimeBuilder_ == null) { + expireTime_ = builderForValue.build(); + } else { + expireTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The time when the backup will expire.
    +     * 
    + * + * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && expireTime_ != null + && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getExpireTimeBuilder().mergeFrom(value); + } else { + expireTime_ = value; + } + } else { + expireTimeBuilder_.mergeFrom(value); + } + if (expireTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Output only. The time when the backup will expire.
    +     * 
    + * + * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearExpireTime() { + bitField0_ = (bitField0_ & ~0x00000020); + expireTime_ = null; + if (expireTimeBuilder_ != null) { + expireTimeBuilder_.dispose(); + expireTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The time when the backup will expire.
    +     * 
    + * + * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getExpireTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Output only. The time when the backup will expire.
    +     * 
    + * + * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + if (expireTimeBuilder_ != null) { + return expireTimeBuilder_.getMessageOrBuilder(); + } else { + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; + } + } + /** + * + * + *
    +     * Output only. The time when the backup will expire.
    +     * 
    + * + * + * .google.protobuf.Timestamp expire_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> + getExpireTimeFieldBuilder() { + if (expireTimeBuilder_ == null) { + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), getParentForChildren(), isClean()); + expireTime_ = null; + } + return expireTimeBuilder_; + } + + private java.lang.Object engineVersion_ = ""; + /** + * + * + *
    +     * Output only. redis-7.2, valkey-7.5
    +     * 
    + * + * string engine_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The engineVersion. + */ + public java.lang.String getEngineVersion() { + java.lang.Object ref = engineVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + engineVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Output only. redis-7.2, valkey-7.5
    +     * 
    + * + * string engine_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for engineVersion. + */ + public com.google.protobuf.ByteString getEngineVersionBytes() { + java.lang.Object ref = engineVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + engineVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Output only. redis-7.2, valkey-7.5
    +     * 
    + * + * string engine_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The engineVersion to set. + * @return This builder for chaining. + */ + public Builder setEngineVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + engineVersion_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. redis-7.2, valkey-7.5
    +     * 
    + * + * string engine_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEngineVersion() { + engineVersion_ = getDefaultInstance().getEngineVersion(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. redis-7.2, valkey-7.5
    +     * 
    + * + * string engine_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for engineVersion to set. + * @return This builder for chaining. + */ + public Builder setEngineVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + engineVersion_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.util.List backupFiles_ = + java.util.Collections.emptyList(); + + private void ensureBackupFilesIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + backupFiles_ = + new java.util.ArrayList( + backupFiles_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.BackupFile, + com.google.cloud.redis.cluster.v1beta1.BackupFile.Builder, + com.google.cloud.redis.cluster.v1beta1.BackupFileOrBuilder> + backupFilesBuilder_; + + /** + * + * + *
    +     * Output only. List of backup files of the backup.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getBackupFilesList() { + if (backupFilesBuilder_ == null) { + return java.util.Collections.unmodifiableList(backupFiles_); + } else { + return backupFilesBuilder_.getMessageList(); + } + } + /** + * + * + *
    +     * Output only. List of backup files of the backup.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getBackupFilesCount() { + if (backupFilesBuilder_ == null) { + return backupFiles_.size(); + } else { + return backupFilesBuilder_.getCount(); + } + } + /** + * + * + *
    +     * Output only. List of backup files of the backup.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.BackupFile getBackupFiles(int index) { + if (backupFilesBuilder_ == null) { + return backupFiles_.get(index); + } else { + return backupFilesBuilder_.getMessage(index); + } + } + /** + * + * + *
    +     * Output only. List of backup files of the backup.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setBackupFiles( + int index, com.google.cloud.redis.cluster.v1beta1.BackupFile value) { + if (backupFilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackupFilesIsMutable(); + backupFiles_.set(index, value); + onChanged(); + } else { + backupFilesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * Output only. List of backup files of the backup.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setBackupFiles( + int index, com.google.cloud.redis.cluster.v1beta1.BackupFile.Builder builderForValue) { + if (backupFilesBuilder_ == null) { + ensureBackupFilesIsMutable(); + backupFiles_.set(index, builderForValue.build()); + onChanged(); + } else { + backupFilesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * Output only. List of backup files of the backup.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addBackupFiles(com.google.cloud.redis.cluster.v1beta1.BackupFile value) { + if (backupFilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackupFilesIsMutable(); + backupFiles_.add(value); + onChanged(); + } else { + backupFilesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
    +     * Output only. List of backup files of the backup.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addBackupFiles( + int index, com.google.cloud.redis.cluster.v1beta1.BackupFile value) { + if (backupFilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackupFilesIsMutable(); + backupFiles_.add(index, value); + onChanged(); + } else { + backupFilesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * Output only. List of backup files of the backup.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addBackupFiles( + com.google.cloud.redis.cluster.v1beta1.BackupFile.Builder builderForValue) { + if (backupFilesBuilder_ == null) { + ensureBackupFilesIsMutable(); + backupFiles_.add(builderForValue.build()); + onChanged(); + } else { + backupFilesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * Output only. List of backup files of the backup.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addBackupFiles( + int index, com.google.cloud.redis.cluster.v1beta1.BackupFile.Builder builderForValue) { + if (backupFilesBuilder_ == null) { + ensureBackupFilesIsMutable(); + backupFiles_.add(index, builderForValue.build()); + onChanged(); + } else { + backupFilesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * Output only. List of backup files of the backup.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllBackupFiles( + java.lang.Iterable values) { + if (backupFilesBuilder_ == null) { + ensureBackupFilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, backupFiles_); + onChanged(); + } else { + backupFilesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
    +     * Output only. List of backup files of the backup.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearBackupFiles() { + if (backupFilesBuilder_ == null) { + backupFiles_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + backupFilesBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * Output only. List of backup files of the backup.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeBackupFiles(int index) { + if (backupFilesBuilder_ == null) { + ensureBackupFilesIsMutable(); + backupFiles_.remove(index); + onChanged(); + } else { + backupFilesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
    +     * Output only. List of backup files of the backup.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.BackupFile.Builder getBackupFilesBuilder( + int index) { + return getBackupFilesFieldBuilder().getBuilder(index); + } + /** + * + * + *
    +     * Output only. List of backup files of the backup.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.BackupFileOrBuilder getBackupFilesOrBuilder( + int index) { + if (backupFilesBuilder_ == null) { + return backupFiles_.get(index); + } else { + return backupFilesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
    +     * Output only. List of backup files of the backup.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getBackupFilesOrBuilderList() { + if (backupFilesBuilder_ != null) { + return backupFilesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(backupFiles_); + } + } + /** + * + * + *
    +     * Output only. List of backup files of the backup.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.BackupFile.Builder addBackupFilesBuilder() { + return getBackupFilesFieldBuilder() + .addBuilder(com.google.cloud.redis.cluster.v1beta1.BackupFile.getDefaultInstance()); + } + /** + * + * + *
    +     * Output only. List of backup files of the backup.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.BackupFile.Builder addBackupFilesBuilder( + int index) { + return getBackupFilesFieldBuilder() + .addBuilder( + index, com.google.cloud.redis.cluster.v1beta1.BackupFile.getDefaultInstance()); + } + /** + * + * + *
    +     * Output only. List of backup files of the backup.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getBackupFilesBuilderList() { + return getBackupFilesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.BackupFile, + com.google.cloud.redis.cluster.v1beta1.BackupFile.Builder, + com.google.cloud.redis.cluster.v1beta1.BackupFileOrBuilder> + getBackupFilesFieldBuilder() { + if (backupFilesBuilder_ == null) { + backupFilesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.BackupFile, + com.google.cloud.redis.cluster.v1beta1.BackupFile.Builder, + com.google.cloud.redis.cluster.v1beta1.BackupFileOrBuilder>( + backupFiles_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); + backupFiles_ = null; + } + return backupFilesBuilder_; + } + + private int nodeType_ = 0; + /** + * + * + *
    +     * Output only. Node type of the cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.NodeType node_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for nodeType. + */ + @java.lang.Override + public int getNodeTypeValue() { + return nodeType_; + } + /** + * + * + *
    +     * Output only. Node type of the cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.NodeType node_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for nodeType to set. + * @return This builder for chaining. + */ + public Builder setNodeTypeValue(int value) { + nodeType_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Node type of the cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.NodeType node_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The nodeType. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.NodeType getNodeType() { + com.google.cloud.redis.cluster.v1beta1.NodeType result = + com.google.cloud.redis.cluster.v1beta1.NodeType.forNumber(nodeType_); + return result == null ? com.google.cloud.redis.cluster.v1beta1.NodeType.UNRECOGNIZED : result; + } + /** + * + * + *
    +     * Output only. Node type of the cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.NodeType node_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The nodeType to set. + * @return This builder for chaining. + */ + public Builder setNodeType(com.google.cloud.redis.cluster.v1beta1.NodeType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; + nodeType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Node type of the cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.NodeType node_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearNodeType() { + bitField0_ = (bitField0_ & ~0x00000100); + nodeType_ = 0; + onChanged(); + return this; + } + + private int replicaCount_; + /** + * + * + *
    +     * Output only. Number of replicas for the cluster.
    +     * 
    + * + * int32 replica_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The replicaCount. + */ + @java.lang.Override + public int getReplicaCount() { + return replicaCount_; + } + /** + * + * + *
    +     * Output only. Number of replicas for the cluster.
    +     * 
    + * + * int32 replica_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The replicaCount to set. + * @return This builder for chaining. + */ + public Builder setReplicaCount(int value) { + + replicaCount_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Number of replicas for the cluster.
    +     * 
    + * + * int32 replica_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearReplicaCount() { + bitField0_ = (bitField0_ & ~0x00000200); + replicaCount_ = 0; + onChanged(); + return this; + } + + private int shardCount_; + /** + * + * + *
    +     * Output only. Number of shards for the cluster.
    +     * 
    + * + * int32 shard_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The shardCount. + */ + @java.lang.Override + public int getShardCount() { + return shardCount_; + } + /** + * + * + *
    +     * Output only. Number of shards for the cluster.
    +     * 
    + * + * int32 shard_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The shardCount to set. + * @return This builder for chaining. + */ + public Builder setShardCount(int value) { + + shardCount_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Number of shards for the cluster.
    +     * 
    + * + * int32 shard_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearShardCount() { + bitField0_ = (bitField0_ & ~0x00000400); + shardCount_ = 0; + onChanged(); + return this; + } + + private int backupType_ = 0; + /** + * + * + *
    +     * Output only. Type of the backup.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Backup.BackupType backup_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for backupType. + */ + @java.lang.Override + public int getBackupTypeValue() { + return backupType_; + } + /** + * + * + *
    +     * Output only. Type of the backup.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Backup.BackupType backup_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for backupType to set. + * @return This builder for chaining. + */ + public Builder setBackupTypeValue(int value) { + backupType_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Type of the backup.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Backup.BackupType backup_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The backupType. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.Backup.BackupType getBackupType() { + com.google.cloud.redis.cluster.v1beta1.Backup.BackupType result = + com.google.cloud.redis.cluster.v1beta1.Backup.BackupType.forNumber(backupType_); + return result == null + ? com.google.cloud.redis.cluster.v1beta1.Backup.BackupType.UNRECOGNIZED + : result; + } + /** + * + * + *
    +     * Output only. Type of the backup.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Backup.BackupType backup_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The backupType to set. + * @return This builder for chaining. + */ + public Builder setBackupType(com.google.cloud.redis.cluster.v1beta1.Backup.BackupType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000800; + backupType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Type of the backup.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Backup.BackupType backup_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearBackupType() { + bitField0_ = (bitField0_ & ~0x00000800); + backupType_ = 0; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
    +     * Output only. State of the backup.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Backup.State state = 13 [(.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. State of the backup.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Backup.State state = 13 [(.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_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. State of the backup.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Backup.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.Backup.State getState() { + com.google.cloud.redis.cluster.v1beta1.Backup.State result = + com.google.cloud.redis.cluster.v1beta1.Backup.State.forNumber(state_); + return result == null + ? com.google.cloud.redis.cluster.v1beta1.Backup.State.UNRECOGNIZED + : result; + } + /** + * + * + *
    +     * Output only. State of the backup.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Backup.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.redis.cluster.v1beta1.Backup.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00001000; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. State of the backup.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Backup.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00001000); + state_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.redis.cluster.v1beta1.EncryptionInfo encryptionInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.EncryptionInfo, + com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.Builder, + com.google.cloud.redis.cluster.v1beta1.EncryptionInfoOrBuilder> + encryptionInfoBuilder_; + /** + * + * + *
    +     * Output only. Encryption information of the backup.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the encryptionInfo field is set. + */ + public boolean hasEncryptionInfo() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + * + * + *
    +     * Output only. Encryption information of the backup.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The encryptionInfo. + */ + public com.google.cloud.redis.cluster.v1beta1.EncryptionInfo getEncryptionInfo() { + if (encryptionInfoBuilder_ == null) { + return encryptionInfo_ == null + ? com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.getDefaultInstance() + : encryptionInfo_; + } else { + return encryptionInfoBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Output only. Encryption information of the backup.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEncryptionInfo(com.google.cloud.redis.cluster.v1beta1.EncryptionInfo value) { + if (encryptionInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encryptionInfo_ = value; + } else { + encryptionInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Encryption information of the backup.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEncryptionInfo( + com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.Builder builderForValue) { + if (encryptionInfoBuilder_ == null) { + encryptionInfo_ = builderForValue.build(); + } else { + encryptionInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Encryption information of the backup.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEncryptionInfo( + com.google.cloud.redis.cluster.v1beta1.EncryptionInfo value) { + if (encryptionInfoBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) + && encryptionInfo_ != null + && encryptionInfo_ + != com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.getDefaultInstance()) { + getEncryptionInfoBuilder().mergeFrom(value); + } else { + encryptionInfo_ = value; + } + } else { + encryptionInfoBuilder_.mergeFrom(value); + } + if (encryptionInfo_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Output only. Encryption information of the backup.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEncryptionInfo() { + bitField0_ = (bitField0_ & ~0x00002000); + encryptionInfo_ = null; + if (encryptionInfoBuilder_ != null) { + encryptionInfoBuilder_.dispose(); + encryptionInfoBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Encryption information of the backup.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.Builder + getEncryptionInfoBuilder() { + bitField0_ |= 0x00002000; + onChanged(); + return getEncryptionInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Output only. Encryption information of the backup.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.EncryptionInfoOrBuilder + getEncryptionInfoOrBuilder() { + if (encryptionInfoBuilder_ != null) { + return encryptionInfoBuilder_.getMessageOrBuilder(); + } else { + return encryptionInfo_ == null + ? com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.getDefaultInstance() + : encryptionInfo_; + } + } + /** + * + * + *
    +     * Output only. Encryption information of the backup.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.EncryptionInfo, + com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.Builder, + com.google.cloud.redis.cluster.v1beta1.EncryptionInfoOrBuilder> + getEncryptionInfoFieldBuilder() { + if (encryptionInfoBuilder_ == null) { + encryptionInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.EncryptionInfo, + com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.Builder, + com.google.cloud.redis.cluster.v1beta1.EncryptionInfoOrBuilder>( + getEncryptionInfo(), getParentForChildren(), isClean()); + encryptionInfo_ = null; + } + return encryptionInfoBuilder_; + } + + private java.lang.Object uid_ = ""; + /** + * + * + *
    +     * Output only. System assigned unique identifier of the backup.
    +     * 
    + * + * + * string uid = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Output only. System assigned unique identifier of the backup.
    +     * 
    + * + * + * string uid = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Output only. System assigned unique identifier of the backup.
    +     * 
    + * + * + * string uid = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uid_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. System assigned unique identifier of the backup.
    +     * 
    + * + * + * string uid = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. System assigned unique identifier of the backup.
    +     * 
    + * + * + * string uid = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; + bitField0_ |= 0x00004000; + 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.redis.cluster.v1beta1.Backup) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.Backup) + private static final com.google.cloud.redis.cluster.v1beta1.Backup DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1beta1.Backup(); + } + + public static com.google.cloud.redis.cluster.v1beta1.Backup getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Backup parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.Backup getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/BackupClusterRequest.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/BackupClusterRequest.java new file mode 100644 index 000000000000..799fc87d2155 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/BackupClusterRequest.java @@ -0,0 +1,1162 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
    + * Request for [BackupCluster].
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.BackupClusterRequest} + */ +public final class BackupClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.BackupClusterRequest) + BackupClusterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use BackupClusterRequest.newBuilder() to construct. + private BackupClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BackupClusterRequest() { + name_ = ""; + backupId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BackupClusterRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_BackupClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_BackupClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest.class, + com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Required. Redis cluster resource name using the form:
    +   *  `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +   * where `location_id` refers to a GCP region.
    +   * 
    + * + * + * 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. Redis cluster resource name using the form:
    +   *  `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +   * where `location_id` refers to a GCP region.
    +   * 
    + * + * + * 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 TTL_FIELD_NUMBER = 2; + private com.google.protobuf.Duration ttl_; + /** + * + * + *
    +   * Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
    +   * If not specified, the default value is 100 years.
    +   * 
    + * + * .google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the ttl field is set. + */ + @java.lang.Override + public boolean hasTtl() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
    +   * If not specified, the default value is 100 years.
    +   * 
    + * + * .google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ttl. + */ + @java.lang.Override + public com.google.protobuf.Duration getTtl() { + return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_; + } + /** + * + * + *
    +   * Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
    +   * If not specified, the default value is 100 years.
    +   * 
    + * + * .google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { + return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_; + } + + public static final int BACKUP_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object backupId_ = ""; + /** + * + * + *
    +   * Optional. The id of the backup to be created. If not specified, the
    +   * default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.
    +   * 
    + * + * optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the backupId field is set. + */ + @java.lang.Override + public boolean hasBackupId() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +   * Optional. The id of the backup to be created. If not specified, the
    +   * default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.
    +   * 
    + * + * optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The backupId. + */ + @java.lang.Override + public java.lang.String getBackupId() { + java.lang.Object ref = backupId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backupId_ = s; + return s; + } + } + /** + * + * + *
    +   * Optional. The id of the backup to be created. If not specified, the
    +   * default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.
    +   * 
    + * + * optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for backupId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBackupIdBytes() { + java.lang.Object ref = backupId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backupId_ = 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, getTtl()); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, backupId_); + } + 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, getTtl()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, backupId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest other = + (com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (hasTtl() != other.hasTtl()) return false; + if (hasTtl()) { + if (!getTtl().equals(other.getTtl())) return false; + } + if (hasBackupId() != other.hasBackupId()) return false; + if (hasBackupId()) { + if (!getBackupId().equals(other.getBackupId())) return false; + } + if (!getUnknownFields().equals(other.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 (hasTtl()) { + hash = (37 * hash) + TTL_FIELD_NUMBER; + hash = (53 * hash) + getTtl().hashCode(); + } + if (hasBackupId()) { + hash = (37 * hash) + BACKUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getBackupId().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 [BackupCluster].
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.BackupClusterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.BackupClusterRequest) + com.google.cloud.redis.cluster.v1beta1.BackupClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_BackupClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_BackupClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest.class, + com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTtlFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + ttl_ = null; + if (ttlBuilder_ != null) { + ttlBuilder_.dispose(); + ttlBuilder_ = null; + } + backupId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_BackupClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest build() { + com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest buildPartial() { + com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest result = + new com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.ttl_ = ttlBuilder_ == null ? ttl_ : ttlBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.backupId_ = backupId_; + 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.redis.cluster.v1beta1.BackupClusterRequest) { + return mergeFrom((com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest other) { + if (other == com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasTtl()) { + mergeTtl(other.getTtl()); + } + if (other.hasBackupId()) { + backupId_ = other.backupId_; + 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(getTtlFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + backupId_ = 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. Redis cluster resource name using the form:
    +     *  `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +     * where `location_id` refers to a GCP region.
    +     * 
    + * + * + * 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. Redis cluster resource name using the form:
    +     *  `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +     * where `location_id` refers to a GCP region.
    +     * 
    + * + * + * 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. Redis cluster resource name using the form:
    +     *  `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +     * where `location_id` refers to a GCP region.
    +     * 
    + * + * + * 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. Redis cluster resource name using the form:
    +     *  `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +     * where `location_id` refers to a GCP region.
    +     * 
    + * + * + * 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. Redis cluster resource name using the form:
    +     *  `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +     * where `location_id` refers to a GCP region.
    +     * 
    + * + * + * 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.Duration ttl_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + ttlBuilder_; + /** + * + * + *
    +     * Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
    +     * If not specified, the default value is 100 years.
    +     * 
    + * + * .google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the ttl field is set. + */ + public boolean hasTtl() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
    +     * If not specified, the default value is 100 years.
    +     * 
    + * + * .google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ttl. + */ + public com.google.protobuf.Duration getTtl() { + if (ttlBuilder_ == null) { + return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_; + } else { + return ttlBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
    +     * If not specified, the default value is 100 years.
    +     * 
    + * + * .google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setTtl(com.google.protobuf.Duration value) { + if (ttlBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ttl_ = value; + } else { + ttlBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
    +     * If not specified, the default value is 100 years.
    +     * 
    + * + * .google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) { + if (ttlBuilder_ == null) { + ttl_ = builderForValue.build(); + } else { + ttlBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
    +     * If not specified, the default value is 100 years.
    +     * 
    + * + * .google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeTtl(com.google.protobuf.Duration value) { + if (ttlBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && ttl_ != null + && ttl_ != com.google.protobuf.Duration.getDefaultInstance()) { + getTtlBuilder().mergeFrom(value); + } else { + ttl_ = value; + } + } else { + ttlBuilder_.mergeFrom(value); + } + if (ttl_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
    +     * If not specified, the default value is 100 years.
    +     * 
    + * + * .google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearTtl() { + bitField0_ = (bitField0_ & ~0x00000002); + ttl_ = null; + if (ttlBuilder_ != null) { + ttlBuilder_.dispose(); + ttlBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
    +     * If not specified, the default value is 100 years.
    +     * 
    + * + * .google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.Duration.Builder getTtlBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getTtlFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
    +     * If not specified, the default value is 100 years.
    +     * 
    + * + * .google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { + if (ttlBuilder_ != null) { + return ttlBuilder_.getMessageOrBuilder(); + } else { + return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_; + } + } + /** + * + * + *
    +     * Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
    +     * If not specified, the default value is 100 years.
    +     * 
    + * + * .google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getTtlFieldBuilder() { + if (ttlBuilder_ == null) { + ttlBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>(getTtl(), getParentForChildren(), isClean()); + ttl_ = null; + } + return ttlBuilder_; + } + + private java.lang.Object backupId_ = ""; + /** + * + * + *
    +     * Optional. The id of the backup to be created. If not specified, the
    +     * default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.
    +     * 
    + * + * optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the backupId field is set. + */ + public boolean hasBackupId() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +     * Optional. The id of the backup to be created. If not specified, the
    +     * default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.
    +     * 
    + * + * optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The backupId. + */ + public java.lang.String getBackupId() { + java.lang.Object ref = backupId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backupId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Optional. The id of the backup to be created. If not specified, the
    +     * default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.
    +     * 
    + * + * optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for backupId. + */ + public com.google.protobuf.ByteString getBackupIdBytes() { + java.lang.Object ref = backupId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Optional. The id of the backup to be created. If not specified, the
    +     * default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.
    +     * 
    + * + * optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The backupId to set. + * @return This builder for chaining. + */ + public Builder setBackupId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + backupId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The id of the backup to be created. If not specified, the
    +     * default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.
    +     * 
    + * + * optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearBackupId() { + backupId_ = getDefaultInstance().getBackupId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The id of the backup to be created. If not specified, the
    +     * default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.
    +     * 
    + * + * optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for backupId to set. + * @return This builder for chaining. + */ + public Builder setBackupIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + backupId_ = 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.redis.cluster.v1beta1.BackupClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.BackupClusterRequest) + private static final com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest(); + } + + public static com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BackupClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/BackupClusterRequestOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/BackupClusterRequestOrBuilder.java new file mode 100644 index 000000000000..b750d4901f67 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/BackupClusterRequestOrBuilder.java @@ -0,0 +1,137 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +public interface BackupClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.BackupClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Redis cluster resource name using the form:
    +   *  `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +   * where `location_id` refers to a GCP region.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Required. Redis cluster resource name using the form:
    +   *  `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +   * where `location_id` refers to a GCP region.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
    +   * If not specified, the default value is 100 years.
    +   * 
    + * + * .google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the ttl field is set. + */ + boolean hasTtl(); + /** + * + * + *
    +   * Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
    +   * If not specified, the default value is 100 years.
    +   * 
    + * + * .google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ttl. + */ + com.google.protobuf.Duration getTtl(); + /** + * + * + *
    +   * Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
    +   * If not specified, the default value is 100 years.
    +   * 
    + * + * .google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.DurationOrBuilder getTtlOrBuilder(); + + /** + * + * + *
    +   * Optional. The id of the backup to be created. If not specified, the
    +   * default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.
    +   * 
    + * + * optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the backupId field is set. + */ + boolean hasBackupId(); + /** + * + * + *
    +   * Optional. The id of the backup to be created. If not specified, the
    +   * default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.
    +   * 
    + * + * optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The backupId. + */ + java.lang.String getBackupId(); + /** + * + * + *
    +   * Optional. The id of the backup to be created. If not specified, the
    +   * default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.
    +   * 
    + * + * optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for backupId. + */ + com.google.protobuf.ByteString getBackupIdBytes(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/BackupCollection.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/BackupCollection.java new file mode 100644 index 000000000000..baa3398305b6 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/BackupCollection.java @@ -0,0 +1,1431 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
    + * BackupCollection of a cluster.
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.BackupCollection} + */ +public final class BackupCollection extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.BackupCollection) + BackupCollectionOrBuilder { + private static final long serialVersionUID = 0L; + // Use BackupCollection.newBuilder() to construct. + private BackupCollection(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BackupCollection() { + name_ = ""; + clusterUid_ = ""; + cluster_ = ""; + kmsKey_ = ""; + uid_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BackupCollection(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_BackupCollection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_BackupCollection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.BackupCollection.class, + com.google.cloud.redis.cluster.v1beta1.BackupCollection.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Identifier. Full resource path of the backup collection.
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + /** + * + * + *
    +   * Identifier. Full resource path of the backup collection.
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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 CLUSTER_UID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object clusterUid_ = ""; + /** + * + * + *
    +   * Output only. The cluster uid of the backup collection.
    +   * 
    + * + * + * string cluster_uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The clusterUid. + */ + @java.lang.Override + public java.lang.String getClusterUid() { + java.lang.Object ref = clusterUid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterUid_ = s; + return s; + } + } + /** + * + * + *
    +   * Output only. The cluster uid of the backup collection.
    +   * 
    + * + * + * string cluster_uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for clusterUid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterUidBytes() { + java.lang.Object ref = clusterUid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterUid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object cluster_ = ""; + /** + * + * + *
    +   * Output only. The full resource path of the cluster the backup collection
    +   * belongs to. Example:
    +   * projects/{project}/locations/{location}/clusters/{cluster}
    +   * 
    + * + * + * string cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The cluster. + */ + @java.lang.Override + public java.lang.String getCluster() { + java.lang.Object ref = cluster_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cluster_ = s; + return s; + } + } + /** + * + * + *
    +   * Output only. The full resource path of the cluster the backup collection
    +   * belongs to. Example:
    +   * projects/{project}/locations/{location}/clusters/{cluster}
    +   * 
    + * + * + * string cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cluster. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterBytes() { + java.lang.Object ref = cluster_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KMS_KEY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object kmsKey_ = ""; + /** + * + * + *
    +   * Output only. The KMS key used to encrypt the backups under this backup
    +   * collection.
    +   * 
    + * + * + * string kms_key = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The kmsKey. + */ + @java.lang.Override + public java.lang.String getKmsKey() { + java.lang.Object ref = kmsKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKey_ = s; + return s; + } + } + /** + * + * + *
    +   * Output only. The KMS key used to encrypt the backups under this backup
    +   * collection.
    +   * 
    + * + * + * string kms_key = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for kmsKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKmsKeyBytes() { + java.lang.Object ref = kmsKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UID_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + /** + * + * + *
    +   * Output only. System assigned unique identifier of the backup collection.
    +   * 
    + * + * + * string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } + } + /** + * + * + *
    +   * Output only. System assigned unique identifier of the backup collection.
    +   * 
    + * + * + * string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = 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(clusterUid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterUid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cluster_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, cluster_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, kmsKey_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, uid_); + } + 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(clusterUid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterUid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cluster_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, cluster_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKey_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, kmsKey_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, uid_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1beta1.BackupCollection)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.BackupCollection other = + (com.google.cloud.redis.cluster.v1beta1.BackupCollection) obj; + + if (!getName().equals(other.getName())) return false; + if (!getClusterUid().equals(other.getClusterUid())) return false; + if (!getCluster().equals(other.getCluster())) return false; + if (!getKmsKey().equals(other.getKmsKey())) return false; + if (!getUid().equals(other.getUid())) return false; + if (!getUnknownFields().equals(other.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) + CLUSTER_UID_FIELD_NUMBER; + hash = (53 * hash) + getClusterUid().hashCode(); + hash = (37 * hash) + CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getCluster().hashCode(); + hash = (37 * hash) + KMS_KEY_FIELD_NUMBER; + hash = (53 * hash) + getKmsKey().hashCode(); + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.BackupCollection parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.BackupCollection parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.BackupCollection parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.BackupCollection parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.BackupCollection parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.BackupCollection parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.BackupCollection parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.BackupCollection parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.BackupCollection parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.BackupCollection parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.BackupCollection parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.BackupCollection parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1beta1.BackupCollection prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * BackupCollection of a cluster.
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.BackupCollection} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.BackupCollection) + com.google.cloud.redis.cluster.v1beta1.BackupCollectionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_BackupCollection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_BackupCollection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.BackupCollection.class, + com.google.cloud.redis.cluster.v1beta1.BackupCollection.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1beta1.BackupCollection.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + clusterUid_ = ""; + cluster_ = ""; + kmsKey_ = ""; + uid_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_BackupCollection_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.BackupCollection getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.BackupCollection.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.BackupCollection build() { + com.google.cloud.redis.cluster.v1beta1.BackupCollection result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.BackupCollection buildPartial() { + com.google.cloud.redis.cluster.v1beta1.BackupCollection result = + new com.google.cloud.redis.cluster.v1beta1.BackupCollection(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1beta1.BackupCollection result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.clusterUid_ = clusterUid_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.cluster_ = cluster_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.kmsKey_ = kmsKey_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.uid_ = uid_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1beta1.BackupCollection) { + return mergeFrom((com.google.cloud.redis.cluster.v1beta1.BackupCollection) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1beta1.BackupCollection other) { + if (other == com.google.cloud.redis.cluster.v1beta1.BackupCollection.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getClusterUid().isEmpty()) { + clusterUid_ = other.clusterUid_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getCluster().isEmpty()) { + cluster_ = other.cluster_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getKmsKey().isEmpty()) { + kmsKey_ = other.kmsKey_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + 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 26: + { + clusterUid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 34: + { + cluster_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + kmsKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + 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_ = ""; + /** + * + * + *
    +     * Identifier. Full resource path of the backup collection.
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + /** + * + * + *
    +     * Identifier. Full resource path of the backup collection.
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + /** + * + * + *
    +     * Identifier. Full resource path of the backup collection.
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + /** + * + * + *
    +     * Identifier. Full resource path of the backup collection.
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * Identifier. Full resource path of the backup collection.
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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 clusterUid_ = ""; + /** + * + * + *
    +     * Output only. The cluster uid of the backup collection.
    +     * 
    + * + * + * string cluster_uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The clusterUid. + */ + public java.lang.String getClusterUid() { + java.lang.Object ref = clusterUid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterUid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Output only. The cluster uid of the backup collection.
    +     * 
    + * + * + * string cluster_uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for clusterUid. + */ + public com.google.protobuf.ByteString getClusterUidBytes() { + java.lang.Object ref = clusterUid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterUid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Output only. The cluster uid of the backup collection.
    +     * 
    + * + * + * string cluster_uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The clusterUid to set. + * @return This builder for chaining. + */ + public Builder setClusterUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clusterUid_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The cluster uid of the backup collection.
    +     * 
    + * + * + * string cluster_uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearClusterUid() { + clusterUid_ = getDefaultInstance().getClusterUid(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The cluster uid of the backup collection.
    +     * 
    + * + * + * string cluster_uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for clusterUid to set. + * @return This builder for chaining. + */ + public Builder setClusterUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterUid_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object cluster_ = ""; + /** + * + * + *
    +     * Output only. The full resource path of the cluster the backup collection
    +     * belongs to. Example:
    +     * projects/{project}/locations/{location}/clusters/{cluster}
    +     * 
    + * + * + * string cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The cluster. + */ + public java.lang.String getCluster() { + java.lang.Object ref = cluster_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cluster_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Output only. The full resource path of the cluster the backup collection
    +     * belongs to. Example:
    +     * projects/{project}/locations/{location}/clusters/{cluster}
    +     * 
    + * + * + * string cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cluster. + */ + public com.google.protobuf.ByteString getClusterBytes() { + java.lang.Object ref = cluster_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Output only. The full resource path of the cluster the backup collection
    +     * belongs to. Example:
    +     * projects/{project}/locations/{location}/clusters/{cluster}
    +     * 
    + * + * + * string cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The cluster to set. + * @return This builder for chaining. + */ + public Builder setCluster(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cluster_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The full resource path of the cluster the backup collection
    +     * belongs to. Example:
    +     * projects/{project}/locations/{location}/clusters/{cluster}
    +     * 
    + * + * + * string cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCluster() { + cluster_ = getDefaultInstance().getCluster(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The full resource path of the cluster the backup collection
    +     * belongs to. Example:
    +     * projects/{project}/locations/{location}/clusters/{cluster}
    +     * 
    + * + * + * string cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for cluster to set. + * @return This builder for chaining. + */ + public Builder setClusterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cluster_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object kmsKey_ = ""; + /** + * + * + *
    +     * Output only. The KMS key used to encrypt the backups under this backup
    +     * collection.
    +     * 
    + * + * + * string kms_key = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The kmsKey. + */ + public java.lang.String getKmsKey() { + java.lang.Object ref = kmsKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Output only. The KMS key used to encrypt the backups under this backup
    +     * collection.
    +     * 
    + * + * + * string kms_key = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for kmsKey. + */ + public com.google.protobuf.ByteString getKmsKeyBytes() { + java.lang.Object ref = kmsKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Output only. The KMS key used to encrypt the backups under this backup
    +     * collection.
    +     * 
    + * + * + * string kms_key = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The kmsKey to set. + * @return This builder for chaining. + */ + public Builder setKmsKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kmsKey_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The KMS key used to encrypt the backups under this backup
    +     * collection.
    +     * 
    + * + * + * string kms_key = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearKmsKey() { + kmsKey_ = getDefaultInstance().getKmsKey(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The KMS key used to encrypt the backups under this backup
    +     * collection.
    +     * 
    + * + * + * string kms_key = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for kmsKey to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKey_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object uid_ = ""; + /** + * + * + *
    +     * Output only. System assigned unique identifier of the backup collection.
    +     * 
    + * + * + * string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Output only. System assigned unique identifier of the backup collection.
    +     * 
    + * + * + * string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Output only. System assigned unique identifier of the backup collection.
    +     * 
    + * + * + * string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uid_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. System assigned unique identifier of the backup collection.
    +     * 
    + * + * + * string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. System assigned unique identifier of the backup collection.
    +     * 
    + * + * + * string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = 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.redis.cluster.v1beta1.BackupCollection) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.BackupCollection) + private static final com.google.cloud.redis.cluster.v1beta1.BackupCollection DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1beta1.BackupCollection(); + } + + public static com.google.cloud.redis.cluster.v1beta1.BackupCollection getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BackupCollection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.BackupCollection getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/BackupCollectionName.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/BackupCollectionName.java new file mode 100644 index 000000000000..000d368ca128 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/BackupCollectionName.java @@ -0,0 +1,227 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1; + +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 BackupCollectionName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_BACKUP_COLLECTION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/backupCollections/{backup_collection}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String backupCollection; + + @Deprecated + protected BackupCollectionName() { + project = null; + location = null; + backupCollection = null; + } + + private BackupCollectionName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + backupCollection = Preconditions.checkNotNull(builder.getBackupCollection()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getBackupCollection() { + return backupCollection; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static BackupCollectionName of(String project, String location, String backupCollection) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setBackupCollection(backupCollection) + .build(); + } + + public static String format(String project, String location, String backupCollection) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setBackupCollection(backupCollection) + .build() + .toString(); + } + + public static BackupCollectionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_BACKUP_COLLECTION.validatedMatch( + formattedString, "BackupCollectionName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("backup_collection")); + } + + 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 (BackupCollectionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_BACKUP_COLLECTION.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 (backupCollection != null) { + fieldMapBuilder.put("backup_collection", backupCollection); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_BACKUP_COLLECTION.instantiate( + "project", project, "location", location, "backup_collection", backupCollection); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + BackupCollectionName that = ((BackupCollectionName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.backupCollection, that.backupCollection); + } + 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(backupCollection); + return h; + } + + /** Builder for projects/{project}/locations/{location}/backupCollections/{backup_collection}. */ + public static class Builder { + private String project; + private String location; + private String backupCollection; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getBackupCollection() { + return backupCollection; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setBackupCollection(String backupCollection) { + this.backupCollection = backupCollection; + return this; + } + + private Builder(BackupCollectionName backupCollectionName) { + this.project = backupCollectionName.project; + this.location = backupCollectionName.location; + this.backupCollection = backupCollectionName.backupCollection; + } + + public BackupCollectionName build() { + return new BackupCollectionName(this); + } + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/BackupCollectionOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/BackupCollectionOrBuilder.java new file mode 100644 index 000000000000..e635cd73bb6a --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/BackupCollectionOrBuilder.java @@ -0,0 +1,173 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +public interface BackupCollectionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.BackupCollection) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Identifier. Full resource path of the backup collection.
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Identifier. Full resource path of the backup collection.
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Output only. The cluster uid of the backup collection.
    +   * 
    + * + * + * string cluster_uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The clusterUid. + */ + java.lang.String getClusterUid(); + /** + * + * + *
    +   * Output only. The cluster uid of the backup collection.
    +   * 
    + * + * + * string cluster_uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for clusterUid. + */ + com.google.protobuf.ByteString getClusterUidBytes(); + + /** + * + * + *
    +   * Output only. The full resource path of the cluster the backup collection
    +   * belongs to. Example:
    +   * projects/{project}/locations/{location}/clusters/{cluster}
    +   * 
    + * + * + * string cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The cluster. + */ + java.lang.String getCluster(); + /** + * + * + *
    +   * Output only. The full resource path of the cluster the backup collection
    +   * belongs to. Example:
    +   * projects/{project}/locations/{location}/clusters/{cluster}
    +   * 
    + * + * + * string cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cluster. + */ + com.google.protobuf.ByteString getClusterBytes(); + + /** + * + * + *
    +   * Output only. The KMS key used to encrypt the backups under this backup
    +   * collection.
    +   * 
    + * + * + * string kms_key = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The kmsKey. + */ + java.lang.String getKmsKey(); + /** + * + * + *
    +   * Output only. The KMS key used to encrypt the backups under this backup
    +   * collection.
    +   * 
    + * + * + * string kms_key = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for kmsKey. + */ + com.google.protobuf.ByteString getKmsKeyBytes(); + + /** + * + * + *
    +   * Output only. System assigned unique identifier of the backup collection.
    +   * 
    + * + * + * string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + java.lang.String getUid(); + /** + * + * + *
    +   * Output only. System assigned unique identifier of the backup collection.
    +   * 
    + * + * + * string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/BackupFile.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/BackupFile.java new file mode 100644 index 000000000000..c3c9954f857c --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/BackupFile.java @@ -0,0 +1,1014 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
    + * Backup is consisted of multiple backup files.
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.BackupFile} + */ +public final class BackupFile extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.BackupFile) + BackupFileOrBuilder { + private static final long serialVersionUID = 0L; + // Use BackupFile.newBuilder() to construct. + private BackupFile(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BackupFile() { + fileName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BackupFile(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_BackupFile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_BackupFile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.BackupFile.class, + com.google.cloud.redis.cluster.v1beta1.BackupFile.Builder.class); + } + + private int bitField0_; + public static final int FILE_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object fileName_ = ""; + /** + * + * + *
    +   * Output only. e.g: <shard-id>.rdb
    +   * 
    + * + * string file_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The fileName. + */ + @java.lang.Override + public java.lang.String getFileName() { + java.lang.Object ref = fileName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fileName_ = s; + return s; + } + } + /** + * + * + *
    +   * Output only. e.g: <shard-id>.rdb
    +   * 
    + * + * string file_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for fileName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFileNameBytes() { + java.lang.Object ref = fileName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fileName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SIZE_BYTES_FIELD_NUMBER = 2; + private long sizeBytes_ = 0L; + /** + * + * + *
    +   * Output only. Size of the backup file in bytes.
    +   * 
    + * + * int64 size_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sizeBytes. + */ + @java.lang.Override + public long getSizeBytes() { + return sizeBytes_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
    +   * Output only. The time when the backup file was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 3 [(.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. The time when the backup file was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 3 [(.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. The time when the backup file was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fileName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fileName_); + } + if (sizeBytes_ != 0L) { + output.writeInt64(2, sizeBytes_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + 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(fileName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fileName_); + } + if (sizeBytes_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, sizeBytes_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1beta1.BackupFile)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.BackupFile other = + (com.google.cloud.redis.cluster.v1beta1.BackupFile) obj; + + if (!getFileName().equals(other.getFileName())) return false; + if (getSizeBytes() != other.getSizeBytes()) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FILE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFileName().hashCode(); + hash = (37 * hash) + SIZE_BYTES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSizeBytes()); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.BackupFile parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.BackupFile parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.BackupFile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.BackupFile parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.BackupFile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.BackupFile parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.BackupFile parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.BackupFile parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.BackupFile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.BackupFile parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.BackupFile parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.BackupFile parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.redis.cluster.v1beta1.BackupFile prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Backup is consisted of multiple backup files.
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.BackupFile} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.BackupFile) + com.google.cloud.redis.cluster.v1beta1.BackupFileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_BackupFile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_BackupFile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.BackupFile.class, + com.google.cloud.redis.cluster.v1beta1.BackupFile.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1beta1.BackupFile.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + fileName_ = ""; + sizeBytes_ = 0L; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_BackupFile_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.BackupFile getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.BackupFile.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.BackupFile build() { + com.google.cloud.redis.cluster.v1beta1.BackupFile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.BackupFile buildPartial() { + com.google.cloud.redis.cluster.v1beta1.BackupFile result = + new com.google.cloud.redis.cluster.v1beta1.BackupFile(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1beta1.BackupFile result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.fileName_ = fileName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sizeBytes_ = sizeBytes_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1beta1.BackupFile) { + return mergeFrom((com.google.cloud.redis.cluster.v1beta1.BackupFile) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1beta1.BackupFile other) { + if (other == com.google.cloud.redis.cluster.v1beta1.BackupFile.getDefaultInstance()) + return this; + if (!other.getFileName().isEmpty()) { + fileName_ = other.fileName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getSizeBytes() != 0L) { + setSizeBytes(other.getSizeBytes()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + fileName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + sizeBytes_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage(getCreateTimeFieldBuilder().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 fileName_ = ""; + /** + * + * + *
    +     * Output only. e.g: <shard-id>.rdb
    +     * 
    + * + * string file_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The fileName. + */ + public java.lang.String getFileName() { + java.lang.Object ref = fileName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fileName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Output only. e.g: <shard-id>.rdb
    +     * 
    + * + * string file_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for fileName. + */ + public com.google.protobuf.ByteString getFileNameBytes() { + java.lang.Object ref = fileName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fileName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Output only. e.g: <shard-id>.rdb
    +     * 
    + * + * string file_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The fileName to set. + * @return This builder for chaining. + */ + public Builder setFileName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + fileName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. e.g: <shard-id>.rdb
    +     * 
    + * + * string file_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearFileName() { + fileName_ = getDefaultInstance().getFileName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. e.g: <shard-id>.rdb
    +     * 
    + * + * string file_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for fileName to set. + * @return This builder for chaining. + */ + public Builder setFileNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fileName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private long sizeBytes_; + /** + * + * + *
    +     * Output only. Size of the backup file in bytes.
    +     * 
    + * + * int64 size_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sizeBytes. + */ + @java.lang.Override + public long getSizeBytes() { + return sizeBytes_; + } + /** + * + * + *
    +     * Output only. Size of the backup file in bytes.
    +     * 
    + * + * int64 size_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The sizeBytes to set. + * @return This builder for chaining. + */ + public Builder setSizeBytes(long value) { + + sizeBytes_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Size of the backup file in bytes.
    +     * 
    + * + * int64 size_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSizeBytes() { + bitField0_ = (bitField0_ & ~0x00000002); + sizeBytes_ = 0L; + 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. The time when the backup file was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +     * Output only. The time when the backup file was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.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. The time when the backup file was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.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_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The time when the backup file was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.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_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The time when the backup file was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Output only. The time when the backup file was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The time when the backup file was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Output only. The time when the backup file was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.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. The time when the backup file was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1beta1.BackupFile) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.BackupFile) + private static final com.google.cloud.redis.cluster.v1beta1.BackupFile DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1beta1.BackupFile(); + } + + public static com.google.cloud.redis.cluster.v1beta1.BackupFile getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BackupFile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.BackupFile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/BackupFileOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/BackupFileOrBuilder.java new file mode 100644 index 000000000000..476455729a57 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/BackupFileOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +public interface BackupFileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.BackupFile) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Output only. e.g: <shard-id>.rdb
    +   * 
    + * + * string file_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The fileName. + */ + java.lang.String getFileName(); + /** + * + * + *
    +   * Output only. e.g: <shard-id>.rdb
    +   * 
    + * + * string file_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for fileName. + */ + com.google.protobuf.ByteString getFileNameBytes(); + + /** + * + * + *
    +   * Output only. Size of the backup file in bytes.
    +   * 
    + * + * int64 size_bytes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sizeBytes. + */ + long getSizeBytes(); + + /** + * + * + *
    +   * Output only. The time when the backup file was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
    +   * Output only. The time when the backup file was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
    +   * Output only. The time when the backup file was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/BackupName.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/BackupName.java new file mode 100644 index 000000000000..734c66b5307d --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/BackupName.java @@ -0,0 +1,269 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1; + +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 BackupName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_BACKUP_COLLECTION_BACKUP = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/backupCollections/{backup_collection}/backups/{backup}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String backupCollection; + private final String backup; + + @Deprecated + protected BackupName() { + project = null; + location = null; + backupCollection = null; + backup = null; + } + + private BackupName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + backupCollection = Preconditions.checkNotNull(builder.getBackupCollection()); + backup = Preconditions.checkNotNull(builder.getBackup()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getBackupCollection() { + return backupCollection; + } + + public String getBackup() { + return backup; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static BackupName of( + String project, String location, String backupCollection, String backup) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setBackupCollection(backupCollection) + .setBackup(backup) + .build(); + } + + public static String format( + String project, String location, String backupCollection, String backup) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setBackupCollection(backupCollection) + .setBackup(backup) + .build() + .toString(); + } + + public static BackupName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_BACKUP_COLLECTION_BACKUP.validatedMatch( + formattedString, "BackupName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("backup_collection"), + matchMap.get("backup")); + } + + 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 (BackupName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_BACKUP_COLLECTION_BACKUP.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 (backupCollection != null) { + fieldMapBuilder.put("backup_collection", backupCollection); + } + if (backup != null) { + fieldMapBuilder.put("backup", backup); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_BACKUP_COLLECTION_BACKUP.instantiate( + "project", + project, + "location", + location, + "backup_collection", + backupCollection, + "backup", + backup); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + BackupName that = ((BackupName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.backupCollection, that.backupCollection) + && Objects.equals(this.backup, that.backup); + } + 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(backupCollection); + h *= 1000003; + h ^= Objects.hashCode(backup); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/backupCollections/{backup_collection}/backups/{backup}. + */ + public static class Builder { + private String project; + private String location; + private String backupCollection; + private String backup; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getBackupCollection() { + return backupCollection; + } + + public String getBackup() { + return backup; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setBackupCollection(String backupCollection) { + this.backupCollection = backupCollection; + return this; + } + + public Builder setBackup(String backup) { + this.backup = backup; + return this; + } + + private Builder(BackupName backupName) { + this.project = backupName.project; + this.location = backupName.location; + this.backupCollection = backupName.backupCollection; + this.backup = backupName.backup; + } + + public BackupName build() { + return new BackupName(this); + } + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/BackupOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/BackupOrBuilder.java new file mode 100644 index 000000000000..7424e9e5fd01 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/BackupOrBuilder.java @@ -0,0 +1,474 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +public interface BackupOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.Backup) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Identifier. Full resource path of the backup. the last part of the name is
    +   * the backup id with the following format: [YYYYMMDDHHMMSS]_[Shorted Cluster
    +   * UID] OR customer specified while backup cluster. Example:
    +   * 20240515123000_1234
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Identifier. Full resource path of the backup. the last part of the name is
    +   * the backup id with the following format: [YYYYMMDDHHMMSS]_[Shorted Cluster
    +   * UID] OR customer specified while backup cluster. Example:
    +   * 20240515123000_1234
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Output only. The time when the backup was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
    +   * Output only. The time when the backup was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
    +   * Output only. The time when the backup was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
    +   * Output only. Cluster resource path of this backup.
    +   * 
    + * + * + * string cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The cluster. + */ + java.lang.String getCluster(); + /** + * + * + *
    +   * Output only. Cluster resource path of this backup.
    +   * 
    + * + * + * string cluster = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cluster. + */ + com.google.protobuf.ByteString getClusterBytes(); + + /** + * + * + *
    +   * Output only. Cluster uid of this backup.
    +   * 
    + * + * + * string cluster_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The clusterUid. + */ + java.lang.String getClusterUid(); + /** + * + * + *
    +   * Output only. Cluster uid of this backup.
    +   * 
    + * + * + * string cluster_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for clusterUid. + */ + com.google.protobuf.ByteString getClusterUidBytes(); + + /** + * + * + *
    +   * Output only. Total size of the backup in bytes.
    +   * 
    + * + * int64 total_size_bytes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The totalSizeBytes. + */ + long getTotalSizeBytes(); + + /** + * + * + *
    +   * Output only. The time when the backup will expire.
    +   * 
    + * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the expireTime field is set. + */ + boolean hasExpireTime(); + /** + * + * + *
    +   * Output only. The time when the backup will expire.
    +   * 
    + * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The expireTime. + */ + com.google.protobuf.Timestamp getExpireTime(); + /** + * + * + *
    +   * Output only. The time when the backup will expire.
    +   * 
    + * + * .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); + + /** + * + * + *
    +   * Output only. redis-7.2, valkey-7.5
    +   * 
    + * + * string engine_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The engineVersion. + */ + java.lang.String getEngineVersion(); + /** + * + * + *
    +   * Output only. redis-7.2, valkey-7.5
    +   * 
    + * + * string engine_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for engineVersion. + */ + com.google.protobuf.ByteString getEngineVersionBytes(); + + /** + * + * + *
    +   * Output only. List of backup files of the backup.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getBackupFilesList(); + /** + * + * + *
    +   * Output only. List of backup files of the backup.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.redis.cluster.v1beta1.BackupFile getBackupFiles(int index); + /** + * + * + *
    +   * Output only. List of backup files of the backup.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getBackupFilesCount(); + /** + * + * + *
    +   * Output only. List of backup files of the backup.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getBackupFilesOrBuilderList(); + /** + * + * + *
    +   * Output only. List of backup files of the backup.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupFile backup_files = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.redis.cluster.v1beta1.BackupFileOrBuilder getBackupFilesOrBuilder(int index); + + /** + * + * + *
    +   * Output only. Node type of the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.NodeType node_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for nodeType. + */ + int getNodeTypeValue(); + /** + * + * + *
    +   * Output only. Node type of the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.NodeType node_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The nodeType. + */ + com.google.cloud.redis.cluster.v1beta1.NodeType getNodeType(); + + /** + * + * + *
    +   * Output only. Number of replicas for the cluster.
    +   * 
    + * + * int32 replica_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The replicaCount. + */ + int getReplicaCount(); + + /** + * + * + *
    +   * Output only. Number of shards for the cluster.
    +   * 
    + * + * int32 shard_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The shardCount. + */ + int getShardCount(); + + /** + * + * + *
    +   * Output only. Type of the backup.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Backup.BackupType backup_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for backupType. + */ + int getBackupTypeValue(); + /** + * + * + *
    +   * Output only. Type of the backup.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Backup.BackupType backup_type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The backupType. + */ + com.google.cloud.redis.cluster.v1beta1.Backup.BackupType getBackupType(); + + /** + * + * + *
    +   * Output only. State of the backup.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Backup.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
    +   * Output only. State of the backup.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Backup.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.redis.cluster.v1beta1.Backup.State getState(); + + /** + * + * + *
    +   * Output only. Encryption information of the backup.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the encryptionInfo field is set. + */ + boolean hasEncryptionInfo(); + /** + * + * + *
    +   * Output only. Encryption information of the backup.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The encryptionInfo. + */ + com.google.cloud.redis.cluster.v1beta1.EncryptionInfo getEncryptionInfo(); + /** + * + * + *
    +   * Output only. Encryption information of the backup.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo encryption_info = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.redis.cluster.v1beta1.EncryptionInfoOrBuilder getEncryptionInfoOrBuilder(); + + /** + * + * + *
    +   * Output only. System assigned unique identifier of the backup.
    +   * 
    + * + * + * string uid = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + java.lang.String getUid(); + /** + * + * + *
    +   * Output only. System assigned unique identifier of the backup.
    +   * 
    + * + * + * string uid = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterProto.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterProto.java index 6bc2f17700fc..dcd785b90093 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterProto.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterProto.java @@ -56,6 +56,42 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_redis_cluster_v1beta1_GetClusterCertificateAuthorityRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_redis_cluster_v1beta1_GetClusterCertificateAuthorityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_ListBackupCollectionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_ListBackupCollectionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_ListBackupCollectionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_ListBackupCollectionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_GetBackupCollectionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_GetBackupCollectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_ListBackupsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_ListBackupsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_ListBackupsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_ListBackupsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_GetBackupRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_GetBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_DeleteBackupRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_DeleteBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_ExportBackupRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_ExportBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_BackupClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_BackupClusterRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_redis_cluster_v1beta1_Cluster_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -68,10 +104,66 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_redis_cluster_v1beta1_Cluster_StateInfo_UpdateInfo_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_redis_cluster_v1beta1_Cluster_StateInfo_UpdateInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_Cluster_GcsBackupSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_Cluster_GcsBackupSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_Cluster_ManagedBackupSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_Cluster_ManagedBackupSource_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_redis_cluster_v1beta1_Cluster_RedisConfigsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_redis_cluster_v1beta1_Cluster_RedisConfigsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_AutomatedBackupConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_AutomatedBackupConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_AutomatedBackupConfig_FixedFrequencySchedule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_AutomatedBackupConfig_FixedFrequencySchedule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_BackupCollection_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_BackupCollection_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_Backup_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_Backup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_BackupFile_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_BackupFile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_PscServiceAttachment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_PscServiceAttachment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_CrossClusterReplicationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_CrossClusterReplicationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_CrossClusterReplicationConfig_RemoteCluster_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_CrossClusterReplicationConfig_RemoteCluster_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_CrossClusterReplicationConfig_Membership_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_CrossClusterReplicationConfig_Membership_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_ClusterMaintenancePolicy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_ClusterMaintenancePolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_ClusterWeeklyMaintenanceWindow_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_ClusterWeeklyMaintenanceWindow_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_ClusterMaintenanceSchedule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_ClusterMaintenanceSchedule_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_redis_cluster_v1beta1_PscConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -84,6 +176,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_redis_cluster_v1beta1_PscConnection_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_redis_cluster_v1beta1_PscConnection_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_ClusterEndpoint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_ClusterEndpoint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_ConnectionDetail_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_ConnectionDetail_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_PscAutoConnection_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_PscAutoConnection_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_redis_cluster_v1beta1_OperationMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -116,6 +220,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_redis_cluster_v1beta1_ZoneDistributionConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_redis_cluster_v1beta1_ZoneDistributionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_RescheduleClusterMaintenanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_RescheduleClusterMaintenanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_EncryptionInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_EncryptionInfo_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -129,185 +241,459 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ud_redis_cluster.proto\022\"google.cloud.red" + "is.cluster.v1beta1\032\034google/api/annotatio" + "ns.proto\032\027google/api/client.proto\032\037googl" - + "e/api/field_behavior.proto\032\031google/api/r" - + "esource.proto\032#google/longrunning/operat" - + "ions.proto\032\031google/protobuf/any.proto\032\033g" - + "oogle/protobuf/empty.proto\032 google/proto" - + "buf/field_mask.proto\032\037google/protobuf/ti" - + "mestamp.proto\"\301\001\n\024CreateClusterRequest\0229" - + "\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.google" - + "apis.com/Location\022\027\n\ncluster_id\030\002 \001(\tB\003\340" - + "A\002\022A\n\007cluster\030\003 \001(\0132+.google.cloud.redis" - + ".cluster.v1beta1.ClusterB\003\340A\002\022\022\n\nrequest" - + "_id\030\004 \001(\t\"w\n\023ListClustersRequest\0229\n\006pare" - + "nt\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.c" - + "om/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" - + "oken\030\003 \001(\t\"\203\001\n\024ListClustersResponse\022=\n\010c" - + "lusters\030\001 \003(\0132+.google.cloud.redis.clust" - + "er.v1beta1.Cluster\022\027\n\017next_page_token\030\002 " - + "\001(\t\022\023\n\013unreachable\030\003 \003(\t\"\243\001\n\024UpdateClust" - + "erRequest\0224\n\013update_mask\030\001 \001(\0132\032.google." - + "protobuf.FieldMaskB\003\340A\002\022A\n\007cluster\030\002 \001(\013" - + "2+.google.cloud.redis.cluster.v1beta1.Cl" - + "usterB\003\340A\002\022\022\n\nrequest_id\030\003 \001(\t\"G\n\021GetClu" - + "sterRequest\0222\n\004name\030\001 \001(\tB$\340A\002\372A\036\n\034redis" - + ".googleapis.com/Cluster\"^\n\024DeleteCluster" - + "Request\0222\n\004name\030\001 \001(\tB$\340A\002\372A\036\n\034redis.goo" - + "gleapis.com/Cluster\022\022\n\nrequest_id\030\002 \001(\t\"" - + "h\n%GetClusterCertificateAuthorityRequest" - + "\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)redis.googleapis" - + ".com/CertificateAuthority\"\365\r\n\007Cluster\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\002\0224\n\013create_time\030\003 \001(\0132\032." - + "google.protobuf.TimestampB\003\340A\003\022E\n\005state\030" - + "\004 \001(\01621.google.cloud.redis.cluster.v1bet" - + "a1.Cluster.StateB\003\340A\003\022\020\n\003uid\030\005 \001(\tB\003\340A\003\022" - + "\037\n\rreplica_count\030\010 \001(\005B\003\340A\001H\000\210\001\001\022V\n\022auth" - + "orization_mode\030\013 \001(\01625.google.cloud.redi" - + "s.cluster.v1beta1.AuthorizationModeB\003\340A\001" - + "\022_\n\027transit_encryption_mode\030\014 \001(\01629.goog" - + "le.cloud.redis.cluster.v1beta1.TransitEn" - + "cryptionModeB\003\340A\001\022\031\n\007size_gb\030\r \001(\005B\003\340A\003H" - + "\001\210\001\001\022\035\n\013shard_count\030\016 \001(\005B\003\340A\002H\002\210\001\001\022G\n\013p" - + "sc_configs\030\017 \003(\0132-.google.cloud.redis.cl" - + "uster.v1beta1.PscConfigB\003\340A\002\022W\n\023discover" - + "y_endpoints\030\020 \003(\01325.google.cloud.redis.c" - + "luster.v1beta1.DiscoveryEndpointB\003\340A\003\022O\n" - + "\017psc_connections\030\021 \003(\01321.google.cloud.re" - + "dis.cluster.v1beta1.PscConnectionB\003\340A\003\022N" - + "\n\nstate_info\030\022 \001(\01325.google.cloud.redis." - + "cluster.v1beta1.Cluster.StateInfoB\003\340A\003\022D" - + "\n\tnode_type\030\023 \001(\0162,.google.cloud.redis.c" - + "luster.v1beta1.NodeTypeB\003\340A\001\022]\n\022persiste" - + "nce_config\030\024 \001(\0132<.google.cloud.redis.cl" - + "uster.v1beta1.ClusterPersistenceConfigB\003" - + "\340A\001\022Y\n\rredis_configs\030\025 \003(\0132=.google.clou" - + "d.redis.cluster.v1beta1.Cluster.RedisCon" - + "figsEntryB\003\340A\001\022!\n\017precise_size_gb\030\026 \001(\001B" - + "\003\340A\003H\003\210\001\001\022a\n\030zone_distribution_config\030\027 " - + "\001(\0132:.google.cloud.redis.cluster.v1beta1" - + ".ZoneDistributionConfigB\003\340A\001\022-\n\033deletion" - + "_protection_enabled\030\031 \001(\010B\003\340A\001H\004\210\001\001\032\357\001\n\t" - + "StateInfo\022W\n\013update_info\030\001 \001(\0132@.google." - + "cloud.redis.cluster.v1beta1.Cluster.Stat" - + "eInfo.UpdateInfoH\000\032\200\001\n\nUpdateInfo\022\037\n\022tar" - + "get_shard_count\030\001 \001(\005H\000\210\001\001\022!\n\024target_rep" - + "lica_count\030\002 \001(\005H\001\210\001\001B\025\n\023_target_shard_c" - + "ountB\027\n\025_target_replica_countB\006\n\004info\0323\n" - + "\021RedisConfigsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" - + "\030\002 \001(\t:\0028\001\"T\n\005State\022\025\n\021STATE_UNSPECIFIED" - + "\020\000\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010UPDATING" - + "\020\003\022\014\n\010DELETING\020\004:]\352AZ\n\034redis.googleapis." - + "com/Cluster\022:projects/{project}/location" - + "s/{location}/clusters/{cluster}B\020\n\016_repl" - + "ica_countB\n\n\010_size_gbB\016\n\014_shard_countB\022\n" - + "\020_precise_size_gbB\036\n\034_deletion_protectio" - + "n_enabled\"!\n\tPscConfig\022\024\n\007network\030\002 \001(\tB" - + "\003\340A\002\"\204\001\n\021DiscoveryEndpoint\022\024\n\007address\030\001 " - + "\001(\tB\003\340A\003\022\021\n\004port\030\002 \001(\005B\003\340A\003\022F\n\npsc_confi" - + "g\030\003 \001(\0132-.google.cloud.redis.cluster.v1b" - + "eta1.PscConfigB\003\340A\003\"\215\001\n\rPscConnection\022\036\n" - + "\021psc_connection_id\030\001 \001(\tB\003\340A\003\022\024\n\007address" - + "\030\002 \001(\tB\003\340A\003\022\034\n\017forwarding_rule\030\003 \001(\tB\003\340A" - + "\003\022\027\n\nproject_id\030\004 \001(\tB\003\340A\003\022\017\n\007network\030\005 " - + "\001(\t\"\200\002\n\021OperationMetadata\0224\n\013create_time" - + "\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" - + "1\n\010end_time\030\002 \001(\0132\032.google.protobuf.Time" - + "stampB\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\013" - + "api_version\030\007 \001(\tB\003\340A\003\"\337\003\n\024CertificateAu" - + "thority\022q\n\021managed_server_ca\030\001 \001(\0132T.goo" - + "gle.cloud.redis.cluster.v1beta1.Certific" - + "ateAuthority.ManagedCertificateAuthority" - + "H\000\022\021\n\004name\030\002 \001(\tB\003\340A\010\032\262\001\n\033ManagedCertifi" - + "cateAuthority\022p\n\010ca_certs\030\001 \003(\0132^.google" + + "e/api/field_behavior.proto\032\033google/api/f" + + "ield_info.proto\032\031google/api/resource.pro" + + "to\032#google/longrunning/operations.proto\032" + + "\031google/protobuf/any.proto\032\036google/proto" + + "buf/duration.proto\032\033google/protobuf/empt" + + "y.proto\032 google/protobuf/field_mask.prot" + + "o\032\037google/protobuf/timestamp.proto\032\033goog" + + "le/type/dayofweek.proto\032\033google/type/tim" + + "eofday.proto\"\301\001\n\024CreateClusterRequest\0229\n" + + "\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googlea" + + "pis.com/Location\022\027\n\ncluster_id\030\002 \001(\tB\003\340A" + + "\002\022A\n\007cluster\030\003 \001(\0132+.google.cloud.redis." + + "cluster.v1beta1.ClusterB\003\340A\002\022\022\n\nrequest_" + + "id\030\004 \001(\t\"w\n\023ListClustersRequest\0229\n\006paren" + + "t\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.co" + + "m/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" + + "ken\030\003 \001(\t\"\203\001\n\024ListClustersResponse\022=\n\010cl" + + "usters\030\001 \003(\0132+.google.cloud.redis.cluste" + + "r.v1beta1.Cluster\022\027\n\017next_page_token\030\002 \001" + + "(\t\022\023\n\013unreachable\030\003 \003(\t\"\243\001\n\024UpdateCluste" + + "rRequest\0224\n\013update_mask\030\001 \001(\0132\032.google.p" + + "rotobuf.FieldMaskB\003\340A\002\022A\n\007cluster\030\002 \001(\0132" + + "+.google.cloud.redis.cluster.v1beta1.Clu" + + "sterB\003\340A\002\022\022\n\nrequest_id\030\003 \001(\t\"G\n\021GetClus" + + "terRequest\0222\n\004name\030\001 \001(\tB$\340A\002\372A\036\n\034redis." + + "googleapis.com/Cluster\"^\n\024DeleteClusterR" + + "equest\0222\n\004name\030\001 \001(\tB$\340A\002\372A\036\n\034redis.goog" + + "leapis.com/Cluster\022\022\n\nrequest_id\030\002 \001(\t\"h" + + "\n%GetClusterCertificateAuthorityRequest\022" + + "?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)redis.googleapis." + + "com/CertificateAuthority\"\216\001\n\034ListBackupC" + + "ollectionsRequest\022=\n\006parent\030\001 \001(\tB-\340A\002\372A" + + "\'\022%redis.googleapis.com/BackupCollection" + + "\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003" + + " \001(\tB\003\340A\001\"\237\001\n\035ListBackupCollectionsRespo" + + "nse\022P\n\022backup_collections\030\001 \003(\01324.google" + + ".cloud.redis.cluster.v1beta1.BackupColle" + + "ction\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreac" + + "hable\030\003 \003(\t\"Y\n\032GetBackupCollectionReques" + + "t\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%redis.googleapi" + + "s.com/BackupCollection\"z\n\022ListBackupsReq" + + "uest\0223\n\006parent\030\001 \001(\tB#\340A\002\372A\035\022\033redis.goog" + + "leapis.com/Backup\022\026\n\tpage_size\030\002 \001(\005B\003\340A" + + "\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"\200\001\n\023ListBacku" + + "psResponse\022;\n\007backups\030\001 \003(\0132*.google.clo" + + "ud.redis.cluster.v1beta1.Backup\022\027\n\017next_" + + "page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"E\n" + + "\020GetBackupRequest\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n" + + "\033redis.googleapis.com/Backup\"i\n\023DeleteBa" + + "ckupRequest\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033redis" + + ".googleapis.com/Backup\022\037\n\nrequest_id\030\002 \001" + + "(\tB\013\340A\001\342\214\317\327\010\002\010\001\"m\n\023ExportBackupRequest\022\024" + + "\n\ngcs_bucket\030\003 \001(\tH\000\0221\n\004name\030\001 \001(\tB#\340A\002\372" + + "A\035\n\033redis.googleapis.com/BackupB\r\n\013desti" + + "nation\"\242\001\n\024BackupClusterRequest\0222\n\004name\030" + + "\001 \001(\tB$\340A\002\372A\036\n\034redis.googleapis.com/Clus" + + "ter\022+\n\003ttl\030\002 \001(\0132\031.google.protobuf.Durat" + + "ionB\003\340A\001\022\033\n\tbackup_id\030\003 \001(\tB\003\340A\001H\000\210\001\001B\014\n" + + "\n_backup_id\"\271\027\n\007Cluster\022V\n\ngcs_source\030\" " + + "\001(\0132;.google.cloud.redis.cluster.v1beta1" + + ".Cluster.GcsBackupSourceB\003\340A\001H\000\022e\n\025manag" + + "ed_backup_source\030# \001(\0132?.google.cloud.re" + + "dis.cluster.v1beta1.Cluster.ManagedBacku" + + "pSourceB\003\340A\001H\000\022\024\n\004name\030\001 \001(\tB\006\340A\002\340A\010\0224\n\013" + + "create_time\030\003 \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\022E\n\005state\030\004 \001(\01621.google.cloud" + + ".redis.cluster.v1beta1.Cluster.StateB\003\340A" + + "\003\022\020\n\003uid\030\005 \001(\tB\003\340A\003\022\037\n\rreplica_count\030\010 \001" + + "(\005B\003\340A\001H\001\210\001\001\022V\n\022authorization_mode\030\013 \001(\016" + + "25.google.cloud.redis.cluster.v1beta1.Au" + + "thorizationModeB\003\340A\001\022_\n\027transit_encrypti" + + "on_mode\030\014 \001(\01629.google.cloud.redis.clust" + + "er.v1beta1.TransitEncryptionModeB\003\340A\001\022\031\n" + + "\007size_gb\030\r \001(\005B\003\340A\003H\002\210\001\001\022\035\n\013shard_count\030" + + "\016 \001(\005B\003\340A\001H\003\210\001\001\022G\n\013psc_configs\030\017 \003(\0132-.g" + + "oogle.cloud.redis.cluster.v1beta1.PscCon" + + "figB\003\340A\001\022W\n\023discovery_endpoints\030\020 \003(\01325." + + "google.cloud.redis.cluster.v1beta1.Disco" + + "veryEndpointB\003\340A\003\022O\n\017psc_connections\030\021 \003" + + "(\01321.google.cloud.redis.cluster.v1beta1." + + "PscConnectionB\003\340A\003\022N\n\nstate_info\030\022 \001(\01325" + + ".google.cloud.redis.cluster.v1beta1.Clus" + + "ter.StateInfoB\003\340A\003\022D\n\tnode_type\030\023 \001(\0162,." + + "google.cloud.redis.cluster.v1beta1.NodeT" + + "ypeB\003\340A\001\022]\n\022persistence_config\030\024 \001(\0132<.g" + + "oogle.cloud.redis.cluster.v1beta1.Cluste" + + "rPersistenceConfigB\003\340A\001\022Y\n\rredis_configs" + + "\030\025 \003(\0132=.google.cloud.redis.cluster.v1be" + + "ta1.Cluster.RedisConfigsEntryB\003\340A\001\022!\n\017pr" + + "ecise_size_gb\030\026 \001(\001B\003\340A\003H\004\210\001\001\022a\n\030zone_di" + + "stribution_config\030\027 \001(\0132:.google.cloud.r" + + "edis.cluster.v1beta1.ZoneDistributionCon" + + "figB\003\340A\001\022p\n cross_cluster_replication_co" + + "nfig\030\030 \001(\0132A.google.cloud.redis.cluster." + + "v1beta1.CrossClusterReplicationConfigB\003\340" + + "A\001\022-\n\033deletion_protection_enabled\030\031 \001(\010B" + + "\003\340A\001H\005\210\001\001\022b\n\022maintenance_policy\030\032 \001(\0132<." + + "google.cloud.redis.cluster.v1beta1.Clust" + + "erMaintenancePolicyB\003\340A\001H\006\210\001\001\022f\n\024mainten" + + "ance_schedule\030\033 \001(\0132>.google.cloud.redis" + + ".cluster.v1beta1.ClusterMaintenanceSched" + + "uleB\003\340A\003H\007\210\001\001\022^\n\027psc_service_attachments" + + "\030\036 \003(\01328.google.cloud.redis.cluster.v1be" + + "ta1.PscServiceAttachmentB\003\340A\003\022S\n\021cluster" + + "_endpoints\030$ \003(\01323.google.cloud.redis.cl" + + "uster.v1beta1.ClusterEndpointB\003\340A\001\022P\n\021ba" + + "ckup_collection\030\' \001(\tB0\340A\001\340A\003\372A\'\n%redis." + + "googleapis.com/BackupCollectionH\010\210\001\001\022?\n\007" + + "kms_key\030( \001(\tB)\340A\001\372A#\n!cloudkms.googleap" + + "is.com/CryptoKeyH\t\210\001\001\022_\n\027automated_backu" + + "p_config\030* \001(\01329.google.cloud.redis.clus" + + "ter.v1beta1.AutomatedBackupConfigB\003\340A\001\022P" + + "\n\017encryption_info\030+ \001(\01322.google.cloud.r" + + "edis.cluster.v1beta1.EncryptionInfoB\003\340A\003" + + "\032\357\001\n\tStateInfo\022W\n\013update_info\030\001 \001(\0132@.go" + + "ogle.cloud.redis.cluster.v1beta1.Cluster" + + ".StateInfo.UpdateInfoH\000\032\200\001\n\nUpdateInfo\022\037" + + "\n\022target_shard_count\030\001 \001(\005H\000\210\001\001\022!\n\024targe" + + "t_replica_count\030\002 \001(\005H\001\210\001\001B\025\n\023_target_sh" + + "ard_countB\027\n\025_target_replica_countB\006\n\004in" + + "fo\032$\n\017GcsBackupSource\022\021\n\004uris\030\001 \003(\tB\003\340A\001" + + "\032*\n\023ManagedBackupSource\022\023\n\006backup\030\001 \001(\tB" + + "\003\340A\001\0323\n\021RedisConfigsEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\t:\0028\001\"T\n\005State\022\025\n\021STATE_UNSP" + + "ECIFIED\020\000\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010U" + + "PDATING\020\003\022\014\n\010DELETING\020\004:p\352Am\n\034redis.goog" + + "leapis.com/Cluster\022:projects/{project}/l" + + "ocations/{location}/clusters/{cluster}*\010" + + "clusters2\007clusterB\020\n\016import_sourcesB\020\n\016_" + + "replica_countB\n\n\010_size_gbB\016\n\014_shard_coun" + + "tB\022\n\020_precise_size_gbB\036\n\034_deletion_prote" + + "ction_enabledB\025\n\023_maintenance_policyB\027\n\025" + + "_maintenance_scheduleB\024\n\022_backup_collect" + + "ionB\n\n\010_kms_key\"\217\004\n\025AutomatedBackupConfi" + + "g\022y\n\030fixed_frequency_schedule\030\002 \001(\0132P.go" + + "ogle.cloud.redis.cluster.v1beta1.Automat" + + "edBackupConfig.FixedFrequencyScheduleB\003\340" + + "A\001H\000\022q\n\025automated_backup_mode\030\001 \001(\0162M.go" + + "ogle.cloud.redis.cluster.v1beta1.Automat" + + "edBackupConfig.AutomatedBackupModeB\003\340A\001\022" + + "6\n\tretention\030\003 \001(\0132\031.google.protobuf.Dur" + + "ationB\003\340A\001H\001\210\001\001\032]\n\026FixedFrequencySchedul" + + "e\0224\n\nstart_time\030\002 \001(\0132\026.google.type.Time" + + "OfDayB\003\340A\002H\000\210\001\001B\r\n\013_start_time\"W\n\023Automa" + + "tedBackupMode\022%\n!AUTOMATED_BACKUP_MODE_U" + + "NSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\013\n\007ENABLED\020\002B" + + "\n\n\010scheduleB\014\n\n_retention\"\366\002\n\020BackupColl" + + "ection\022\021\n\004name\030\001 \001(\tB\003\340A\010\022 \n\013cluster_uid" + + "\030\003 \001(\tB\013\340A\003\342\214\317\327\010\002\010\001\0225\n\007cluster\030\004 \001(\tB$\340A" + + "\003\372A\036\n\034redis.googleapis.com/Cluster\022:\n\007km" + + "s_key\030\005 \001(\tB)\340A\003\372A#\n!cloudkms.googleapis" + + ".com/CryptoKey\022\030\n\003uid\030\006 \001(\tB\013\340A\003\342\214\317\327\010\002\010\001" + + ":\237\001\352A\233\001\n%redis.googleapis.com/BackupColl" + + "ection\022Mprojects/{project}/locations/{lo" + + "cation}/backupCollections/{backup_collec" + + "tion}*\021backupCollections2\020backupCollecti" + + "on\"\233\010\n\006Backup\022\021\n\004name\030\001 \001(\tB\003\340A\010\0224\n\013crea" + + "te_time\030\002 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003\0225\n\007cluster\030\003 \001(\tB$\340A\003\372A\036\n\034redis.g" + + "oogleapis.com/Cluster\022 \n\013cluster_uid\030\004 \001" + + "(\tB\013\340A\003\342\214\317\327\010\002\010\001\022\035\n\020total_size_bytes\030\005 \001(" + + "\003B\003\340A\003\0224\n\013expire_time\030\006 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\022\033\n\016engine_version\030\007" + + " \001(\tB\003\340A\003\022I\n\014backup_files\030\010 \003(\0132..google" + + ".cloud.redis.cluster.v1beta1.BackupFileB" + + "\003\340A\003\022D\n\tnode_type\030\t \001(\0162,.google.cloud.r" + + "edis.cluster.v1beta1.NodeTypeB\003\340A\003\022\032\n\rre" + + "plica_count\030\n \001(\005B\003\340A\003\022\030\n\013shard_count\030\013 " + + "\001(\005B\003\340A\003\022O\n\013backup_type\030\014 \001(\01625.google.c" + + "loud.redis.cluster.v1beta1.Backup.Backup" + + "TypeB\003\340A\003\022D\n\005state\030\r \001(\01620.google.cloud." + + "redis.cluster.v1beta1.Backup.StateB\003\340A\003\022" + + "P\n\017encryption_info\030\016 \001(\01322.google.cloud." + + "redis.cluster.v1beta1.EncryptionInfoB\003\340A" + + "\003\022\030\n\003uid\030\017 \001(\tB\013\340A\003\342\214\317\327\010\002\010\001\"G\n\nBackupTyp" + + "e\022\033\n\027BACKUP_TYPE_UNSPECIFIED\020\000\022\r\n\tON_DEM" + + "AND\020\001\022\r\n\tAUTOMATED\020\002\"U\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\022\r\n\tSUSPENDED\020\004:\222\001\352A\216\001\n\033redi" + + "s.googleapis.com/Backup\022^projects/{proje" + + "ct}/locations/{location}/backupCollectio" + + "ns/{backup_collection}/backups/{backup}*" + + "\007backups2\006backup\"s\n\nBackupFile\022\026\n\tfile_n" + + "ame\030\001 \001(\tB\003\340A\003\022\027\n\nsize_bytes\030\002 \001(\003B\003\340A\003\022" + + "4\n\013create_time\030\003 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\"\211\001\n\024PscServiceAttachment\022\037" + + "\n\022service_attachment\030\001 \001(\tB\003\340A\003\022P\n\017conne" + + "ction_type\030\003 \001(\01622.google.cloud.redis.cl" + + "uster.v1beta1.ConnectionTypeB\003\340A\003\"\222\007\n\035Cr" + + "ossClusterReplicationConfig\022c\n\014cluster_r" + + "ole\030\001 \001(\0162M.google.cloud.redis.cluster.v" + + "1beta1.CrossClusterReplicationConfig.Clu" + + "sterRole\022h\n\017primary_cluster\030\002 \001(\0132O.goog" + + "le.cloud.redis.cluster.v1beta1.CrossClus" + + "terReplicationConfig.RemoteCluster\022k\n\022se" + + "condary_clusters\030\003 \003(\0132O.google.cloud.re" + + "dis.cluster.v1beta1.CrossClusterReplicat" + + "ionConfig.RemoteCluster\0224\n\013update_time\030\004" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022e\n" + + "\nmembership\030\005 \001(\0132L.google.cloud.redis.c" + + "luster.v1beta1.CrossClusterReplicationCo" + + "nfig.MembershipB\003\340A\003\032U\n\rRemoteCluster\0222\n" + + "\007cluster\030\001 \001(\tB!\372A\036\n\034redis.googleapis.co" + + "m/Cluster\022\020\n\003uid\030\002 \001(\tB\003\340A\003\032\355\001\n\nMembersh" + + "ip\022m\n\017primary_cluster\030\001 \001(\0132O.google.clo" + + "ud.redis.cluster.v1beta1.CrossClusterRep" + + "licationConfig.RemoteClusterB\003\340A\003\022p\n\022sec" + + "ondary_clusters\030\002 \003(\0132O.google.cloud.red" + + "is.cluster.v1beta1.CrossClusterReplicati" + + "onConfig.RemoteClusterB\003\340A\003\"Q\n\013ClusterRo" + + "le\022\034\n\030CLUSTER_ROLE_UNSPECIFIED\020\000\022\010\n\004NONE" + + "\020\001\022\013\n\007PRIMARY\020\002\022\r\n\tSECONDARY\020\003\"\355\001\n\030Clust" + + "erMaintenancePolicy\0224\n\013create_time\030\001 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\0224\n\013upd" + + "ate_time\030\002 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\022e\n\031weekly_maintenance_window\030\003 \003" + + "(\0132B.google.cloud.redis.cluster.v1beta1." + + "ClusterWeeklyMaintenanceWindow\"q\n\036Cluste" + + "rWeeklyMaintenanceWindow\022#\n\003day\030\001 \001(\0162\026." + + "google.type.DayOfWeek\022*\n\nstart_time\030\002 \001(" + + "\0132\026.google.type.TimeOfDay\"\204\001\n\032ClusterMai" + + "ntenanceSchedule\0223\n\nstart_time\030\001 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\0221\n\010end_tim" + + "e\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\"!\n\tPscConfig\022\024\n\007network\030\002 \001(\tB\003\340A\002\"\204\001\n\021" + + "DiscoveryEndpoint\022\024\n\007address\030\001 \001(\tB\003\340A\003\022" + + "\021\n\004port\030\002 \001(\005B\003\340A\003\022F\n\npsc_config\030\003 \001(\0132-" + + ".google.cloud.redis.cluster.v1beta1.PscC" + + "onfigB\003\340A\003\"\344\003\n\rPscConnection\022\036\n\021psc_conn" + + "ection_id\030\001 \001(\tB\003\340A\002\022\034\n\007address\030\002 \001(\tB\013\340" + + "A\002\342\214\317\327\010\002\010\002\022F\n\017forwarding_rule\030\003 \001(\tB-\340A\002" + + "\372A\'\n%compute.googleapis.com/ForwardingRu" + + "le\022\027\n\nproject_id\030\004 \001(\tB\003\340A\001\0227\n\007network\030\005" + + " \001(\tB&\340A\002\372A \n\036compute.googleapis.com/Net" + + "work\022L\n\022service_attachment\030\006 \001(\tB0\340A\002\372A*" + + "\n(compute.googleapis.com/ServiceAttachme" + + "nt\022[\n\025psc_connection_status\030\010 \001(\01627.goog" + + "le.cloud.redis.cluster.v1beta1.PscConnec" + + "tionStatusB\003\340A\003\022P\n\017connection_type\030\n \001(\016" + + "22.google.cloud.redis.cluster.v1beta1.Co" + + "nnectionTypeB\003\340A\003\"\\\n\017ClusterEndpoint\022I\n\013" + + "connections\030\001 \003(\01324.google.cloud.redis.c" + + "luster.v1beta1.ConnectionDetail\"\303\001\n\020Conn" + + "ectionDetail\022T\n\023psc_auto_connection\030\001 \001(" + + "\01325.google.cloud.redis.cluster.v1beta1.P" + + "scAutoConnectionH\000\022K\n\016psc_connection\030\002 \001" + + "(\01321.google.cloud.redis.cluster.v1beta1." + + "PscConnectionH\000B\014\n\nconnection\"\350\003\n\021PscAut" + + "oConnection\022\036\n\021psc_connection_id\030\001 \001(\tB\003" + + "\340A\003\022\034\n\007address\030\002 \001(\tB\013\340A\003\342\214\317\327\010\002\010\002\022F\n\017for" + + "warding_rule\030\003 \001(\tB-\340A\003\372A\'\n%compute.goog" + + "leapis.com/ForwardingRule\022\027\n\nproject_id\030" + + "\004 \001(\tB\003\340A\002\0227\n\007network\030\005 \001(\tB&\340A\002\372A \n\036com" + + "pute.googleapis.com/Network\022L\n\022service_a" + + "ttachment\030\006 \001(\tB0\340A\003\372A*\n(compute.googlea" + + "pis.com/ServiceAttachment\022[\n\025psc_connect" + + "ion_status\030\010 \001(\01627.google.cloud.redis.cl" + + "uster.v1beta1.PscConnectionStatusB\003\340A\003\022P" + + "\n\017connection_type\030\t \001(\01622.google.cloud.r" + + "edis.cluster.v1beta1.ConnectionTypeB\003\340A\003" + + "\"\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\"\217\004\n\024CertificateAutho" + + "rity\022q\n\021managed_server_ca\030\001 \001(\0132T.google" + ".cloud.redis.cluster.v1beta1.Certificate" - + "Authority.ManagedCertificateAuthority.Ce" - + "rtChain\032!\n\tCertChain\022\024\n\014certificates\030\001 \003" - + "(\t:\177\352A|\n)redis.googleapis.com/Certificat" - + "eAuthority\022Oprojects/{project}/locations" - + "/{location}/clusters/{cluster}/certifica" - + "teAuthorityB\013\n\tserver_ca\"\240\007\n\030ClusterPers" - + "istenceConfig\022_\n\004mode\030\001 \001(\0162L.google.clo" - + "ud.redis.cluster.v1beta1.ClusterPersiste" - + "nceConfig.PersistenceModeB\003\340A\001\022_\n\nrdb_co" - + "nfig\030\002 \001(\0132F.google.cloud.redis.cluster." - + "v1beta1.ClusterPersistenceConfig.RDBConf" - + "igB\003\340A\001\022_\n\naof_config\030\003 \001(\0132F.google.clo" - + "ud.redis.cluster.v1beta1.ClusterPersiste" - + "nceConfig.AOFConfigB\003\340A\001\032\277\002\n\tRDBConfig\022w" - + "\n\023rdb_snapshot_period\030\001 \001(\0162U.google.clo" + + "Authority.ManagedCertificateAuthorityH\000\022" + + "\021\n\004name\030\002 \001(\tB\003\340A\010\032\262\001\n\033ManagedCertificat" + + "eAuthority\022p\n\010ca_certs\030\001 \003(\0132^.google.cl" + + "oud.redis.cluster.v1beta1.CertificateAut" + + "hority.ManagedCertificateAuthority.CertC" + + "hain\032!\n\tCertChain\022\024\n\014certificates\030\001 \003(\t:" + + "\256\001\352A\252\001\n)redis.googleapis.com/Certificate" + + "Authority\022Oprojects/{project}/locations/" + + "{location}/clusters/{cluster}/certificat" + + "eAuthority*\026certificateAuthorities2\024cert" + + "ificateAuthorityB\013\n\tserver_ca\"\240\007\n\030Cluste" + + "rPersistenceConfig\022_\n\004mode\030\001 \001(\0162L.googl" + + "e.cloud.redis.cluster.v1beta1.ClusterPer" + + "sistenceConfig.PersistenceModeB\003\340A\001\022_\n\nr" + + "db_config\030\002 \001(\0132F.google.cloud.redis.clu" + + "ster.v1beta1.ClusterPersistenceConfig.RD" + + "BConfigB\003\340A\001\022_\n\naof_config\030\003 \001(\0132F.googl" + + "e.cloud.redis.cluster.v1beta1.ClusterPer" + + "sistenceConfig.AOFConfigB\003\340A\001\032\277\002\n\tRDBCon" + + "fig\022w\n\023rdb_snapshot_period\030\001 \001(\0162U.googl" + + "e.cloud.redis.cluster.v1beta1.ClusterPer" + + "sistenceConfig.RDBConfig.SnapshotPeriodB" + + "\003\340A\001\022@\n\027rdb_snapshot_start_time\030\002 \001(\0132\032." + + "google.protobuf.TimestampB\003\340A\001\"w\n\016Snapsh" + + "otPeriod\022\037\n\033SNAPSHOT_PERIOD_UNSPECIFIED\020" + + "\000\022\014\n\010ONE_HOUR\020\001\022\r\n\tSIX_HOURS\020\002\022\020\n\014TWELVE" + + "_HOURS\020\003\022\025\n\021TWENTY_FOUR_HOURS\020\004\032\311\001\n\tAOFC" + + "onfig\022m\n\014append_fsync\030\001 \001(\0162R.google.clo" + "ud.redis.cluster.v1beta1.ClusterPersiste" - + "nceConfig.RDBConfig.SnapshotPeriodB\003\340A\001\022" - + "@\n\027rdb_snapshot_start_time\030\002 \001(\0132\032.googl" - + "e.protobuf.TimestampB\003\340A\001\"w\n\016SnapshotPer" - + "iod\022\037\n\033SNAPSHOT_PERIOD_UNSPECIFIED\020\000\022\014\n\010" - + "ONE_HOUR\020\001\022\r\n\tSIX_HOURS\020\002\022\020\n\014TWELVE_HOUR" - + "S\020\003\022\025\n\021TWENTY_FOUR_HOURS\020\004\032\311\001\n\tAOFConfig" - + "\022m\n\014append_fsync\030\001 \001(\0162R.google.cloud.re" - + "dis.cluster.v1beta1.ClusterPersistenceCo" - + "nfig.AOFConfig.AppendFsyncB\003\340A\001\"M\n\013Appen" - + "dFsync\022\034\n\030APPEND_FSYNC_UNSPECIFIED\020\000\022\006\n\002" - + "NO\020\001\022\014\n\010EVERYSEC\020\002\022\n\n\006ALWAYS\020\003\"S\n\017Persis" - + "tenceMode\022 \n\034PERSISTENCE_MODE_UNSPECIFIE" - + "D\020\000\022\014\n\010DISABLED\020\001\022\007\n\003RDB\020\002\022\007\n\003AOF\020\003\"\360\001\n\026" - + "ZoneDistributionConfig\022b\n\004mode\030\001 \001(\0162O.g" - + "oogle.cloud.redis.cluster.v1beta1.ZoneDi" - + "stributionConfig.ZoneDistributionModeB\003\340" - + "A\001\022\021\n\004zone\030\002 \001(\tB\003\340A\001\"_\n\024ZoneDistributio" - + "nMode\022&\n\"ZONE_DISTRIBUTION_MODE_UNSPECIF" - + "IED\020\000\022\016\n\nMULTI_ZONE\020\001\022\017\n\013SINGLE_ZONE\020\002*^" - + "\n\021AuthorizationMode\022\031\n\025AUTH_MODE_UNSPECI" - + "FIED\020\000\022\026\n\022AUTH_MODE_IAM_AUTH\020\001\022\026\n\022AUTH_M" - + "ODE_DISABLED\020\002*\217\001\n\010NodeType\022\031\n\025NODE_TYPE" - + "_UNSPECIFIED\020\000\022\032\n\026REDIS_SHARED_CORE_NANO" - + "\020\001\022\030\n\024REDIS_HIGHMEM_MEDIUM\020\002\022\030\n\024REDIS_HI" - + "GHMEM_XLARGE\020\003\022\030\n\024REDIS_STANDARD_SMALL\020\004" - + "*\231\001\n\025TransitEncryptionMode\022\'\n#TRANSIT_EN" - + "CRYPTION_MODE_UNSPECIFIED\020\000\022$\n TRANSIT_E" - + "NCRYPTION_MODE_DISABLED\020\001\0221\n-TRANSIT_ENC" - + "RYPTION_MODE_SERVER_AUTHENTICATION\020\0022\220\013\n" - + "\021CloudRedisCluster\022\305\001\n\014ListClusters\0227.go" - + "ogle.cloud.redis.cluster.v1beta1.ListClu" - + "stersRequest\0328.google.cloud.redis.cluste" - + "r.v1beta1.ListClustersResponse\"B\332A\006paren" - + "t\202\323\344\223\0023\0221/v1beta1/{parent=projects/*/loc" - + "ations/*}/clusters\022\262\001\n\nGetCluster\0225.goog" - + "le.cloud.redis.cluster.v1beta1.GetCluste" - + "rRequest\032+.google.cloud.redis.cluster.v1" - + "beta1.Cluster\"@\332A\004name\202\323\344\223\0023\0221/v1beta1/{" - + "name=projects/*/locations/*/clusters/*}\022" - + "\354\001\n\rUpdateCluster\0228.google.cloud.redis.c" - + "luster.v1beta1.UpdateClusterRequest\032\035.go" - + "ogle.longrunning.Operation\"\201\001\312A\036\n\007Cluste" - + "r\022\023google.protobuf.Any\332A\023cluster,update_" - + "mask\202\323\344\223\002D29/v1beta1/{cluster.name=proje" - + "cts/*/locations/*/clusters/*}:\007cluster\022\331" - + "\001\n\rDeleteCluster\0228.google.cloud.redis.cl" - + "uster.v1beta1.DeleteClusterRequest\032\035.goo" - + "gle.longrunning.Operation\"o\312A,\n\025google.p" - + "rotobuf.Empty\022\023google.protobuf.Any\332A\004nam" - + "e\202\323\344\223\0023*1/v1beta1/{name=projects/*/locat" - + "ions/*/clusters/*}\022\351\001\n\rCreateCluster\0228.g" - + "oogle.cloud.redis.cluster.v1beta1.Create" - + "ClusterRequest\032\035.google.longrunning.Oper" - + "ation\"\177\312A\036\n\007Cluster\022\023google.protobuf.Any" - + "\332A\031parent,cluster,cluster_id\202\323\344\223\002<\"1/v1b" - + "eta1/{parent=projects/*/locations/*}/clu" - + "sters:\007cluster\022\374\001\n\036GetClusterCertificate" - + "Authority\022I.google.cloud.redis.cluster.v" - + "1beta1.GetClusterCertificateAuthorityReq" - + "uest\0328.google.cloud.redis.cluster.v1beta" - + "1.CertificateAuthority\"U\332A\004name\202\323\344\223\002H\022F/" - + "v1beta1/{name=projects/*/locations/*/clu" - + "sters/*/certificateAuthority}\032H\312A\024redis." - + "googleapis.com\322A.https://www.googleapis." - + "com/auth/cloud-platformB\255\001\n&com.google.c" - + "loud.redis.cluster.v1beta1B\026CloudRedisCl" - + "usterProtoP\001Z@cloud.google.com/go/redis/" - + "cluster/apiv1beta1/clusterpb;clusterpb\352\002" - + "&Google::Cloud::Redis::Cluster::V1beta1b" - + "\006proto3" + + "nceConfig.AOFConfig.AppendFsyncB\003\340A\001\"M\n\013" + + "AppendFsync\022\034\n\030APPEND_FSYNC_UNSPECIFIED\020" + + "\000\022\006\n\002NO\020\001\022\014\n\010EVERYSEC\020\002\022\n\n\006ALWAYS\020\003\"S\n\017P" + + "ersistenceMode\022 \n\034PERSISTENCE_MODE_UNSPE" + + "CIFIED\020\000\022\014\n\010DISABLED\020\001\022\007\n\003RDB\020\002\022\007\n\003AOF\020\003" + + "\"\360\001\n\026ZoneDistributionConfig\022b\n\004mode\030\001 \001(" + + "\0162O.google.cloud.redis.cluster.v1beta1.Z" + + "oneDistributionConfig.ZoneDistributionMo" + + "deB\003\340A\001\022\021\n\004zone\030\002 \001(\tB\003\340A\001\"_\n\024ZoneDistri" + + "butionMode\022&\n\"ZONE_DISTRIBUTION_MODE_UNS" + + "PECIFIED\020\000\022\016\n\nMULTI_ZONE\020\001\022\017\n\013SINGLE_ZON" + + "E\020\002\"\334\002\n#RescheduleClusterMaintenanceRequ" + + "est\0222\n\004name\030\001 \001(\tB$\340A\002\372A\036\n\034redis.googlea" + + "pis.com/Cluster\022t\n\017reschedule_type\030\002 \001(\016" + + "2V.google.cloud.redis.cluster.v1beta1.Re" + + "scheduleClusterMaintenanceRequest.Resche" + + "duleTypeB\003\340A\002\0226\n\rschedule_time\030\003 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\001\"S\n\016Resched" + + "uleType\022\037\n\033RESCHEDULE_TYPE_UNSPECIFIED\020\000" + + "\022\r\n\tIMMEDIATE\020\001\022\021\n\rSPECIFIC_TIME\020\003\"\204\005\n\016E" + + "ncryptionInfo\022U\n\017encryption_type\030\001 \001(\01627" + + ".google.cloud.redis.cluster.v1beta1.Encr" + + "yptionInfo.TypeB\003\340A\003\022J\n\020kms_key_versions" + + "\030\002 \003(\tB0\340A\003\372A*\n(cloudkms.googleapis.com/" + + "CryptoKeyVersion\022b\n\025kms_key_primary_stat" + + "e\030\003 \001(\0162>.google.cloud.redis.cluster.v1b" + + "eta1.EncryptionInfo.KmsKeyStateB\003\340A\003\0229\n\020" + + "last_update_time\030\004 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\"\\\n\004Type\022\024\n\020TYPE_UNSPECIF" + + "IED\020\000\022\035\n\031GOOGLE_DEFAULT_ENCRYPTION\020\001\022\037\n\033" + + "CUSTOMER_MANAGED_ENCRYPTION\020\002\"\321\001\n\013KmsKey" + + "State\022\035\n\031KMS_KEY_STATE_UNSPECIFIED\020\000\022\013\n\007" + + "ENABLED\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\014\n\010DISA" + + "BLED\020\003\022\r\n\tDESTROYED\020\004\022\025\n\021DESTROY_SCHEDUL" + + "ED\020\005\022 \n\034EKM_KEY_UNREACHABLE_DETECTED\020\006\022\024" + + "\n\020BILLING_DISABLED\020\007\022\023\n\017UNKNOWN_FAILURE\020" + + "\010*\203\001\n\023PscConnectionStatus\022%\n!PSC_CONNECT" + + "ION_STATUS_UNSPECIFIED\020\000\022 \n\034PSC_CONNECTI" + + "ON_STATUS_ACTIVE\020\001\022#\n\037PSC_CONNECTION_STA" + + "TUS_NOT_FOUND\020\002*^\n\021AuthorizationMode\022\031\n\025" + + "AUTH_MODE_UNSPECIFIED\020\000\022\026\n\022AUTH_MODE_IAM" + + "_AUTH\020\001\022\026\n\022AUTH_MODE_DISABLED\020\002*\217\001\n\010Node" + + "Type\022\031\n\025NODE_TYPE_UNSPECIFIED\020\000\022\032\n\026REDIS" + + "_SHARED_CORE_NANO\020\001\022\030\n\024REDIS_HIGHMEM_MED" + + "IUM\020\002\022\030\n\024REDIS_HIGHMEM_XLARGE\020\003\022\030\n\024REDIS" + + "_STANDARD_SMALL\020\004*\231\001\n\025TransitEncryptionM" + + "ode\022\'\n#TRANSIT_ENCRYPTION_MODE_UNSPECIFI" + + "ED\020\000\022$\n TRANSIT_ENCRYPTION_MODE_DISABLED" + + "\020\001\0221\n-TRANSIT_ENCRYPTION_MODE_SERVER_AUT" + + "HENTICATION\020\002*\211\001\n\016ConnectionType\022\037\n\033CONN" + + "ECTION_TYPE_UNSPECIFIED\020\000\022\035\n\031CONNECTION_" + + "TYPE_DISCOVERY\020\001\022\033\n\027CONNECTION_TYPE_PRIM" + + "ARY\020\002\022\032\n\026CONNECTION_TYPE_READER\020\0032\304\031\n\021Cl" + + "oudRedisCluster\022\305\001\n\014ListClusters\0227.googl" + + "e.cloud.redis.cluster.v1beta1.ListCluste" + + "rsRequest\0328.google.cloud.redis.cluster.v" + + "1beta1.ListClustersResponse\"B\332A\006parent\202\323" + + "\344\223\0023\0221/v1beta1/{parent=projects/*/locati" + + "ons/*}/clusters\022\262\001\n\nGetCluster\0225.google." + + "cloud.redis.cluster.v1beta1.GetClusterRe" + + "quest\032+.google.cloud.redis.cluster.v1bet" + + "a1.Cluster\"@\332A\004name\202\323\344\223\0023\0221/v1beta1/{nam" + + "e=projects/*/locations/*/clusters/*}\022\354\001\n" + + "\rUpdateCluster\0228.google.cloud.redis.clus" + + "ter.v1beta1.UpdateClusterRequest\032\035.googl" + + "e.longrunning.Operation\"\201\001\312A\036\n\007Cluster\022\023" + + "google.protobuf.Any\332A\023cluster,update_mas" + + "k\202\323\344\223\002D29/v1beta1/{cluster.name=projects" + + "/*/locations/*/clusters/*}:\007cluster\022\331\001\n\r" + + "DeleteCluster\0228.google.cloud.redis.clust" + + "er.v1beta1.DeleteClusterRequest\032\035.google" + + ".longrunning.Operation\"o\312A,\n\025google.prot" + + "obuf.Empty\022\023google.protobuf.Any\332A\004name\202\323" + + "\344\223\0023*1/v1beta1/{name=projects/*/location" + + "s/*/clusters/*}\022\351\001\n\rCreateCluster\0228.goog" + + "le.cloud.redis.cluster.v1beta1.CreateClu" + + "sterRequest\032\035.google.longrunning.Operati" + + "on\"\177\312A\036\n\007Cluster\022\023google.protobuf.Any\332A\031" + + "parent,cluster,cluster_id\202\323\344\223\002<\"1/v1beta" + + "1/{parent=projects/*/locations/*}/cluste" + + "rs:\007cluster\022\374\001\n\036GetClusterCertificateAut" + + "hority\022I.google.cloud.redis.cluster.v1be" + + "ta1.GetClusterCertificateAuthorityReques" + + "t\0328.google.cloud.redis.cluster.v1beta1.C" + + "ertificateAuthority\"U\332A\004name\202\323\344\223\002H\022F/v1b" + + "eta1/{name=projects/*/locations/*/cluste" + + "rs/*/certificateAuthority}\022\250\002\n\034Reschedul" + + "eClusterMaintenance\022G.google.cloud.redis" + + ".cluster.v1beta1.RescheduleClusterMainte" + + "nanceRequest\032\035.google.longrunning.Operat" + + "ion\"\237\001\312A\036\n\007Cluster\022\023google.protobuf.Any\332" + + "A\"name,reschedule_type,schedule_time\202\323\344\223" + + "\002S\"N/v1beta1/{name=projects/*/locations/" + + "*/clusters/*}:rescheduleClusterMaintenan" + + "ce:\001*\022\351\001\n\025ListBackupCollections\022@.google" + + ".cloud.redis.cluster.v1beta1.ListBackupC" + + "ollectionsRequest\032A.google.cloud.redis.c" + + "luster.v1beta1.ListBackupCollectionsResp", + "onse\"K\332A\006parent\202\323\344\223\002<\022:/v1beta1/{parent=" + + "projects/*/locations/*}/backupCollection" + + "s\022\326\001\n\023GetBackupCollection\022>.google.cloud" + + ".redis.cluster.v1beta1.GetBackupCollecti" + + "onRequest\0324.google.cloud.redis.cluster.v" + + "1beta1.BackupCollection\"I\332A\004name\202\323\344\223\002<\022:" + + "/v1beta1/{name=projects/*/locations/*/ba" + + "ckupCollections/*}\022\325\001\n\013ListBackups\0226.goo" + + "gle.cloud.redis.cluster.v1beta1.ListBack" + + "upsRequest\0327.google.cloud.redis.cluster." + + "v1beta1.ListBackupsResponse\"U\332A\006parent\202\323" + + "\344\223\002F\022D/v1beta1/{parent=projects/*/locati" + + "ons/*/backupCollections/*}/backups\022\302\001\n\tG" + + "etBackup\0224.google.cloud.redis.cluster.v1" + + "beta1.GetBackupRequest\032*.google.cloud.re" + + "dis.cluster.v1beta1.Backup\"S\332A\004name\202\323\344\223\002" + + "F\022D/v1beta1/{name=projects/*/locations/*" + + "/backupCollections/*/backups/*}\022\353\001\n\014Dele" + + "teBackup\0227.google.cloud.redis.cluster.v1" + + "beta1.DeleteBackupRequest\032\035.google.longr" + + "unning.Operation\"\202\001\312A,\n\025google.protobuf." + + "Empty\022\023google.protobuf.Any\332A\004name\202\323\344\223\002F*" + + "D/v1beta1/{name=projects/*/locations/*/b" + + "ackupCollections/*/backups/*}\022\336\001\n\014Export" + + "Backup\0227.google.cloud.redis.cluster.v1be" + + "ta1.ExportBackupRequest\032\035.google.longrun" + + "ning.Operation\"v\312A\035\n\006Backup\022\023google.prot" + + "obuf.Any\202\323\344\223\002P\"K/v1beta1/{name=projects/" + + "*/locations/*/backupCollections/*/backup" + + "s/*}:export:\001*\022\325\001\n\rBackupCluster\0228.googl" + + "e.cloud.redis.cluster.v1beta1.BackupClus" + + "terRequest\032\035.google.longrunning.Operatio" + + "n\"k\312A\036\n\007Cluster\022\023google.protobuf.Any\332A\004n" + + "ame\202\323\344\223\002=\"8/v1beta1/{name=projects/*/loc" + + "ations/*/clusters/*}:backup:\001*\032H\312A\024redis" + + ".googleapis.com\322A.https://www.googleapis" + + ".com/auth/cloud-platformB\216\006\n&com.google." + + "cloud.redis.cluster.v1beta1B\026CloudRedisC" + + "lusterProtoP\001Z@cloud.google.com/go/redis" + + "/cluster/apiv1beta1/clusterpb;clusterpb\352" + + "\002&Google::Cloud::Redis::Cluster::V1beta1" + + "\352An\n%compute.googleapis.com/ForwardingRu" + + "le\022Eprojects/{project}/regions/{region}/" + + "forwardingRules/{forwarding_rule}\352AN\n\036co" + + "mpute.googleapis.com/Network\022,projects/{" + + "project}/global/networks/{network}\352Aw\n(c" + + "ompute.googleapis.com/ServiceAttachment\022" + + "Kprojects/{project}/regions/{region}/ser" + + "viceAttachments/{service_attachment}\352Ax\n" + + "!cloudkms.googleapis.com/CryptoKey\022Sproj" + + "ects/{project}/locations/{location}/keyR" + + "ings/{key_ring}/cryptoKeys/{crypto_key}\352" + + "A\246\001\n(cloudkms.googleapis.com/CryptoKeyVe" + + "rsion\022zprojects/{project}/locations/{loc" + + "ation}/keyRings/{key_ring}/cryptoKeys/{c" + + "rypto_key}/cryptoKeyVersions/{crypto_key" + + "_version}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -316,12 +702,16 @@ 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.FieldInfoProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.AnyProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), + com.google.type.DayOfWeekProto.getDescriptor(), + com.google.type.TimeOfDayProto.getDescriptor(), }); internal_static_google_cloud_redis_cluster_v1beta1_CreateClusterRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -379,12 +769,86 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", }); - internal_static_google_cloud_redis_cluster_v1beta1_Cluster_descriptor = + internal_static_google_cloud_redis_cluster_v1beta1_ListBackupCollectionsRequest_descriptor = getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_redis_cluster_v1beta1_ListBackupCollectionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_ListBackupCollectionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_redis_cluster_v1beta1_ListBackupCollectionsResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_redis_cluster_v1beta1_ListBackupCollectionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_ListBackupCollectionsResponse_descriptor, + new java.lang.String[] { + "BackupCollections", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_redis_cluster_v1beta1_GetBackupCollectionRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_redis_cluster_v1beta1_GetBackupCollectionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_GetBackupCollectionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_redis_cluster_v1beta1_ListBackupsRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_redis_cluster_v1beta1_ListBackupsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_ListBackupsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_redis_cluster_v1beta1_ListBackupsResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_redis_cluster_v1beta1_ListBackupsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_ListBackupsResponse_descriptor, + new java.lang.String[] { + "Backups", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_redis_cluster_v1beta1_GetBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_redis_cluster_v1beta1_GetBackupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_GetBackupRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_redis_cluster_v1beta1_DeleteBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_redis_cluster_v1beta1_DeleteBackupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_DeleteBackupRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_redis_cluster_v1beta1_ExportBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_redis_cluster_v1beta1_ExportBackupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_ExportBackupRequest_descriptor, + new java.lang.String[] { + "GcsBucket", "Name", "Destination", + }); + internal_static_google_cloud_redis_cluster_v1beta1_BackupClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_redis_cluster_v1beta1_BackupClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_BackupClusterRequest_descriptor, + new java.lang.String[] { + "Name", "Ttl", "BackupId", + }); + internal_static_google_cloud_redis_cluster_v1beta1_Cluster_descriptor = + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_redis_cluster_v1beta1_Cluster_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_Cluster_descriptor, new java.lang.String[] { + "GcsSource", + "ManagedBackupSource", "Name", "CreateTime", "State", @@ -403,7 +867,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RedisConfigs", "PreciseSizeGb", "ZoneDistributionConfig", + "CrossClusterReplicationConfig", "DeletionProtectionEnabled", + "MaintenancePolicy", + "MaintenanceSchedule", + "PscServiceAttachments", + "ClusterEndpoints", + "BackupCollection", + "KmsKey", + "AutomatedBackupConfig", + "EncryptionInfo", + "ImportSources", }); internal_static_google_cloud_redis_cluster_v1beta1_Cluster_StateInfo_descriptor = internal_static_google_cloud_redis_cluster_v1beta1_Cluster_descriptor @@ -425,18 +899,154 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "TargetShardCount", "TargetReplicaCount", }); - internal_static_google_cloud_redis_cluster_v1beta1_Cluster_RedisConfigsEntry_descriptor = + internal_static_google_cloud_redis_cluster_v1beta1_Cluster_GcsBackupSource_descriptor = internal_static_google_cloud_redis_cluster_v1beta1_Cluster_descriptor .getNestedTypes() .get(1); + internal_static_google_cloud_redis_cluster_v1beta1_Cluster_GcsBackupSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_Cluster_GcsBackupSource_descriptor, + new java.lang.String[] { + "Uris", + }); + internal_static_google_cloud_redis_cluster_v1beta1_Cluster_ManagedBackupSource_descriptor = + internal_static_google_cloud_redis_cluster_v1beta1_Cluster_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_redis_cluster_v1beta1_Cluster_ManagedBackupSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_Cluster_ManagedBackupSource_descriptor, + new java.lang.String[] { + "Backup", + }); + internal_static_google_cloud_redis_cluster_v1beta1_Cluster_RedisConfigsEntry_descriptor = + internal_static_google_cloud_redis_cluster_v1beta1_Cluster_descriptor + .getNestedTypes() + .get(3); internal_static_google_cloud_redis_cluster_v1beta1_Cluster_RedisConfigsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_Cluster_RedisConfigsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_redis_cluster_v1beta1_AutomatedBackupConfig_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_redis_cluster_v1beta1_AutomatedBackupConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_AutomatedBackupConfig_descriptor, + new java.lang.String[] { + "FixedFrequencySchedule", "AutomatedBackupMode", "Retention", "Schedule", + }); + internal_static_google_cloud_redis_cluster_v1beta1_AutomatedBackupConfig_FixedFrequencySchedule_descriptor = + internal_static_google_cloud_redis_cluster_v1beta1_AutomatedBackupConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_redis_cluster_v1beta1_AutomatedBackupConfig_FixedFrequencySchedule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_AutomatedBackupConfig_FixedFrequencySchedule_descriptor, + new java.lang.String[] { + "StartTime", + }); + internal_static_google_cloud_redis_cluster_v1beta1_BackupCollection_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_redis_cluster_v1beta1_BackupCollection_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_BackupCollection_descriptor, + new java.lang.String[] { + "Name", "ClusterUid", "Cluster", "KmsKey", "Uid", + }); + internal_static_google_cloud_redis_cluster_v1beta1_Backup_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_redis_cluster_v1beta1_Backup_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_Backup_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "Cluster", + "ClusterUid", + "TotalSizeBytes", + "ExpireTime", + "EngineVersion", + "BackupFiles", + "NodeType", + "ReplicaCount", + "ShardCount", + "BackupType", + "State", + "EncryptionInfo", + "Uid", + }); + internal_static_google_cloud_redis_cluster_v1beta1_BackupFile_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_redis_cluster_v1beta1_BackupFile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_BackupFile_descriptor, + new java.lang.String[] { + "FileName", "SizeBytes", "CreateTime", + }); + internal_static_google_cloud_redis_cluster_v1beta1_PscServiceAttachment_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_redis_cluster_v1beta1_PscServiceAttachment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_PscServiceAttachment_descriptor, + new java.lang.String[] { + "ServiceAttachment", "ConnectionType", + }); + internal_static_google_cloud_redis_cluster_v1beta1_CrossClusterReplicationConfig_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_redis_cluster_v1beta1_CrossClusterReplicationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_CrossClusterReplicationConfig_descriptor, + new java.lang.String[] { + "ClusterRole", "PrimaryCluster", "SecondaryClusters", "UpdateTime", "Membership", + }); + internal_static_google_cloud_redis_cluster_v1beta1_CrossClusterReplicationConfig_RemoteCluster_descriptor = + internal_static_google_cloud_redis_cluster_v1beta1_CrossClusterReplicationConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_redis_cluster_v1beta1_CrossClusterReplicationConfig_RemoteCluster_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_CrossClusterReplicationConfig_RemoteCluster_descriptor, + new java.lang.String[] { + "Cluster", "Uid", + }); + internal_static_google_cloud_redis_cluster_v1beta1_CrossClusterReplicationConfig_Membership_descriptor = + internal_static_google_cloud_redis_cluster_v1beta1_CrossClusterReplicationConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_redis_cluster_v1beta1_CrossClusterReplicationConfig_Membership_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_CrossClusterReplicationConfig_Membership_descriptor, + new java.lang.String[] { + "PrimaryCluster", "SecondaryClusters", + }); + internal_static_google_cloud_redis_cluster_v1beta1_ClusterMaintenancePolicy_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_redis_cluster_v1beta1_ClusterMaintenancePolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_ClusterMaintenancePolicy_descriptor, + new java.lang.String[] { + "CreateTime", "UpdateTime", "WeeklyMaintenanceWindow", + }); + internal_static_google_cloud_redis_cluster_v1beta1_ClusterWeeklyMaintenanceWindow_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_redis_cluster_v1beta1_ClusterWeeklyMaintenanceWindow_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_ClusterWeeklyMaintenanceWindow_descriptor, + new java.lang.String[] { + "Day", "StartTime", + }); + internal_static_google_cloud_redis_cluster_v1beta1_ClusterMaintenanceSchedule_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_redis_cluster_v1beta1_ClusterMaintenanceSchedule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_ClusterMaintenanceSchedule_descriptor, + new java.lang.String[] { + "StartTime", "EndTime", + }); internal_static_google_cloud_redis_cluster_v1beta1_PscConfig_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_redis_cluster_v1beta1_PscConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_PscConfig_descriptor, @@ -444,7 +1054,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Network", }); internal_static_google_cloud_redis_cluster_v1beta1_DiscoveryEndpoint_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_redis_cluster_v1beta1_DiscoveryEndpoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_DiscoveryEndpoint_descriptor, @@ -452,15 +1062,53 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Address", "Port", "PscConfig", }); internal_static_google_cloud_redis_cluster_v1beta1_PscConnection_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_redis_cluster_v1beta1_PscConnection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_PscConnection_descriptor, new java.lang.String[] { - "PscConnectionId", "Address", "ForwardingRule", "ProjectId", "Network", + "PscConnectionId", + "Address", + "ForwardingRule", + "ProjectId", + "Network", + "ServiceAttachment", + "PscConnectionStatus", + "ConnectionType", + }); + internal_static_google_cloud_redis_cluster_v1beta1_ClusterEndpoint_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_redis_cluster_v1beta1_ClusterEndpoint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_ClusterEndpoint_descriptor, + new java.lang.String[] { + "Connections", + }); + internal_static_google_cloud_redis_cluster_v1beta1_ConnectionDetail_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_redis_cluster_v1beta1_ConnectionDetail_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_ConnectionDetail_descriptor, + new java.lang.String[] { + "PscAutoConnection", "PscConnection", "Connection", + }); + internal_static_google_cloud_redis_cluster_v1beta1_PscAutoConnection_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_redis_cluster_v1beta1_PscAutoConnection_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_PscAutoConnection_descriptor, + new java.lang.String[] { + "PscConnectionId", + "Address", + "ForwardingRule", + "ProjectId", + "Network", + "ServiceAttachment", + "PscConnectionStatus", + "ConnectionType", }); internal_static_google_cloud_redis_cluster_v1beta1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_redis_cluster_v1beta1_OperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_OperationMetadata_descriptor, @@ -474,7 +1122,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ApiVersion", }); internal_static_google_cloud_redis_cluster_v1beta1_CertificateAuthority_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_redis_cluster_v1beta1_CertificateAuthority_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_CertificateAuthority_descriptor, @@ -502,7 +1150,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Certificates", }); internal_static_google_cloud_redis_cluster_v1beta1_ClusterPersistenceConfig_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(34); internal_static_google_cloud_redis_cluster_v1beta1_ClusterPersistenceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_ClusterPersistenceConfig_descriptor, @@ -530,21 +1178,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AppendFsync", }); internal_static_google_cloud_redis_cluster_v1beta1_ZoneDistributionConfig_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(35); internal_static_google_cloud_redis_cluster_v1beta1_ZoneDistributionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_ZoneDistributionConfig_descriptor, new java.lang.String[] { "Mode", "Zone", }); + internal_static_google_cloud_redis_cluster_v1beta1_RescheduleClusterMaintenanceRequest_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_cloud_redis_cluster_v1beta1_RescheduleClusterMaintenanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_RescheduleClusterMaintenanceRequest_descriptor, + new java.lang.String[] { + "Name", "RescheduleType", "ScheduleTime", + }); + internal_static_google_cloud_redis_cluster_v1beta1_EncryptionInfo_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_cloud_redis_cluster_v1beta1_EncryptionInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_EncryptionInfo_descriptor, + new java.lang.String[] { + "EncryptionType", "KmsKeyVersions", "KmsKeyPrimaryState", "LastUpdateTime", + }); 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.FieldInfoProto.fieldInfo); 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.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); registry.add(com.google.api.ResourceProto.resourceReference); registry.add(com.google.longrunning.OperationsProto.operationInfo); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( @@ -552,12 +1218,16 @@ 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.FieldInfoProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.AnyProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); + com.google.type.DayOfWeekProto.getDescriptor(); + com.google.type.TimeOfDayProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/Cluster.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/Cluster.java index ec2914160fd3..e5bb0e75831f 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/Cluster.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/Cluster.java @@ -48,6 +48,10 @@ private Cluster() { discoveryEndpoints_ = java.util.Collections.emptyList(); pscConnections_ = java.util.Collections.emptyList(); nodeType_ = 0; + pscServiceAttachments_ = java.util.Collections.emptyList(); + clusterEndpoints_ = java.util.Collections.emptyList(); + backupCollection_ = ""; + kmsKey_ = ""; } @java.lang.Override @@ -1924,2442 +1928,7734 @@ public com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo getDefaultInstan } } - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; + public interface GcsBackupSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource) + com.google.protobuf.MessageOrBuilder { - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
    -   * Required. Unique name of the resource in this scope including project and
    -   * location using the form:
    -   *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    -   * 
    - * - * 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; - } + /** + * + * + *
    +     * Optional. URIs of the GCS objects to import.
    +     * Example: gs://bucket1/object1, gs://bucket2/folder2/object2
    +     * 
    + * + * repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the uris. + */ + java.util.List getUrisList(); + /** + * + * + *
    +     * Optional. URIs of the GCS objects to import.
    +     * Example: gs://bucket1/object1, gs://bucket2/folder2/object2
    +     * 
    + * + * repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of uris. + */ + int getUrisCount(); + /** + * + * + *
    +     * Optional. URIs of the GCS objects to import.
    +     * Example: gs://bucket1/object1, gs://bucket2/folder2/object2
    +     * 
    + * + * repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The uris at the given index. + */ + java.lang.String getUris(int index); + /** + * + * + *
    +     * Optional. URIs of the GCS objects to import.
    +     * Example: gs://bucket1/object1, gs://bucket2/folder2/object2
    +     * 
    + * + * repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the uris at the given index. + */ + com.google.protobuf.ByteString getUrisBytes(int index); } /** * * *
    -   * Required. Unique name of the resource in this scope including project and
    -   * location using the form:
    -   *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +   * Backups stored in Cloud Storage buckets.
    +   * The Cloud Storage buckets need to be the same region as the clusters.
        * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for name. + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource} */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public static final class GcsBackupSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource) + GcsBackupSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use GcsBackupSource.newBuilder() to construct. + private GcsBackupSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - } - - public static final int CREATE_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp createTime_; - /** - * - * - *
    -   * Output only. The timestamp associated with the cluster creation request.
    -   * 
    - * - * .google.protobuf.Timestamp create_time = 3 [(.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. The timestamp associated with the cluster creation request.
    -   * 
    - * - * .google.protobuf.Timestamp create_time = 3 [(.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. The timestamp associated with the cluster creation request.
    -   * 
    - * - * .google.protobuf.Timestamp create_time = 3 [(.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 STATE_FIELD_NUMBER = 4; - private int state_ = 0; - /** - * - * - *
    -   * Output only. The current state of this cluster.
    -   * Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
    -   * 
    - * - * - * .google.cloud.redis.cluster.v1beta1.Cluster.State state = 4 [(.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. The current state of this cluster.
    -   * Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
    -   * 
    - * - * - * .google.cloud.redis.cluster.v1beta1.Cluster.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.redis.cluster.v1beta1.Cluster.State getState() { - com.google.cloud.redis.cluster.v1beta1.Cluster.State result = - com.google.cloud.redis.cluster.v1beta1.Cluster.State.forNumber(state_); - return result == null - ? com.google.cloud.redis.cluster.v1beta1.Cluster.State.UNRECOGNIZED - : result; - } + private GcsBackupSource() { + uris_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } - public static final int UID_FIELD_NUMBER = 5; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GcsBackupSource(); + } - @SuppressWarnings("serial") - private volatile java.lang.Object uid_ = ""; - /** - * - * - *
    -   * Output only. System assigned, unique identifier for the cluster.
    -   * 
    - * - * string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The uid. - */ - @java.lang.Override - public java.lang.String getUid() { - java.lang.Object ref = uid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uid_ = s; - return s; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_Cluster_GcsBackupSource_descriptor; } - } - /** - * - * - *
    -   * Output only. System assigned, unique identifier for the cluster.
    -   * 
    - * - * string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for uid. - */ - @java.lang.Override - public com.google.protobuf.ByteString getUidBytes() { - java.lang.Object ref = uid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - uid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_Cluster_GcsBackupSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource.class, + com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource.Builder.class); } - } - public static final int REPLICA_COUNT_FIELD_NUMBER = 8; - private int replicaCount_ = 0; - /** - * - * - *
    -   * Optional. The number of replica nodes per shard.
    -   * 
    - * - * optional int32 replica_count = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the replicaCount field is set. - */ - @java.lang.Override - public boolean hasReplicaCount() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
    -   * Optional. The number of replica nodes per shard.
    -   * 
    - * - * optional int32 replica_count = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The replicaCount. - */ - @java.lang.Override - public int getReplicaCount() { - return replicaCount_; - } + public static final int URIS_FIELD_NUMBER = 1; - public static final int AUTHORIZATION_MODE_FIELD_NUMBER = 11; - private int authorizationMode_ = 0; - /** - * - * - *
    -   * Optional. The authorization mode of the Redis cluster.
    -   * If not provided, auth feature is disabled for the cluster.
    -   * 
    - * - * - * .google.cloud.redis.cluster.v1beta1.AuthorizationMode authorization_mode = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for authorizationMode. - */ - @java.lang.Override - public int getAuthorizationModeValue() { - return authorizationMode_; - } - /** - * - * - *
    -   * Optional. The authorization mode of the Redis cluster.
    -   * If not provided, auth feature is disabled for the cluster.
    -   * 
    - * - * - * .google.cloud.redis.cluster.v1beta1.AuthorizationMode authorization_mode = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The authorizationMode. - */ - @java.lang.Override - public com.google.cloud.redis.cluster.v1beta1.AuthorizationMode getAuthorizationMode() { - com.google.cloud.redis.cluster.v1beta1.AuthorizationMode result = - com.google.cloud.redis.cluster.v1beta1.AuthorizationMode.forNumber(authorizationMode_); - return result == null - ? com.google.cloud.redis.cluster.v1beta1.AuthorizationMode.UNRECOGNIZED - : result; - } + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList uris_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
    +     * Optional. URIs of the GCS objects to import.
    +     * Example: gs://bucket1/object1, gs://bucket2/folder2/object2
    +     * 
    + * + * repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the uris. + */ + public com.google.protobuf.ProtocolStringList getUrisList() { + return uris_; + } + /** + * + * + *
    +     * Optional. URIs of the GCS objects to import.
    +     * Example: gs://bucket1/object1, gs://bucket2/folder2/object2
    +     * 
    + * + * repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of uris. + */ + public int getUrisCount() { + return uris_.size(); + } + /** + * + * + *
    +     * Optional. URIs of the GCS objects to import.
    +     * Example: gs://bucket1/object1, gs://bucket2/folder2/object2
    +     * 
    + * + * repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The uris at the given index. + */ + public java.lang.String getUris(int index) { + return uris_.get(index); + } + /** + * + * + *
    +     * Optional. URIs of the GCS objects to import.
    +     * Example: gs://bucket1/object1, gs://bucket2/folder2/object2
    +     * 
    + * + * repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the uris at the given index. + */ + public com.google.protobuf.ByteString getUrisBytes(int index) { + return uris_.getByteString(index); + } - public static final int TRANSIT_ENCRYPTION_MODE_FIELD_NUMBER = 12; - private int transitEncryptionMode_ = 0; - /** - * - * - *
    -   * Optional. The in-transit encryption for the Redis cluster.
    -   * If not provided, encryption  is disabled for the cluster.
    -   * 
    - * - * - * .google.cloud.redis.cluster.v1beta1.TransitEncryptionMode transit_encryption_mode = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for transitEncryptionMode. - */ - @java.lang.Override - public int getTransitEncryptionModeValue() { - return transitEncryptionMode_; - } - /** - * - * - *
    -   * Optional. The in-transit encryption for the Redis cluster.
    -   * If not provided, encryption  is disabled for the cluster.
    -   * 
    - * - * - * .google.cloud.redis.cluster.v1beta1.TransitEncryptionMode transit_encryption_mode = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The transitEncryptionMode. - */ - @java.lang.Override - public com.google.cloud.redis.cluster.v1beta1.TransitEncryptionMode getTransitEncryptionMode() { - com.google.cloud.redis.cluster.v1beta1.TransitEncryptionMode result = - com.google.cloud.redis.cluster.v1beta1.TransitEncryptionMode.forNumber( - transitEncryptionMode_); - return result == null - ? com.google.cloud.redis.cluster.v1beta1.TransitEncryptionMode.UNRECOGNIZED - : result; - } + private byte memoizedIsInitialized = -1; - public static final int SIZE_GB_FIELD_NUMBER = 13; - private int sizeGb_ = 0; - /** - * - * - *
    -   * Output only. Redis memory size in GB for the entire cluster rounded up to
    -   * the next integer.
    -   * 
    - * - * optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return Whether the sizeGb field is set. - */ - @java.lang.Override - public boolean hasSizeGb() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
    -   * Output only. Redis memory size in GB for the entire cluster rounded up to
    -   * the next integer.
    -   * 
    - * - * optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The sizeGb. - */ - @java.lang.Override - public int getSizeGb() { - return sizeGb_; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static final int SHARD_COUNT_FIELD_NUMBER = 14; - private int shardCount_ = 0; - /** - * - * - *
    -   * Required. Number of shards for the Redis cluster.
    -   * 
    - * - * optional int32 shard_count = 14 [(.google.api.field_behavior) = REQUIRED]; - * - * @return Whether the shardCount field is set. - */ - @java.lang.Override - public boolean hasShardCount() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
    -   * Required. Number of shards for the Redis cluster.
    -   * 
    - * - * optional int32 shard_count = 14 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The shardCount. - */ - @java.lang.Override - public int getShardCount() { - return shardCount_; - } + memoizedIsInitialized = 1; + return true; + } - public static final int PSC_CONFIGS_FIELD_NUMBER = 15; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < uris_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uris_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } - @SuppressWarnings("serial") - private java.util.List pscConfigs_; - /** - * - * - *
    -   * Required. Each PscConfig configures the consumer network where IPs will
    -   * be designated to the cluster for client access through Private Service
    -   * Connect Automation. Currently, only one PscConfig is supported.
    -   * 
    - * - * - * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.List getPscConfigsList() { - return pscConfigs_; - } - /** - * - * - *
    -   * Required. Each PscConfig configures the consumer network where IPs will
    -   * be designated to the cluster for client access through Private Service
    -   * Connect Automation. Currently, only one PscConfig is supported.
    -   * 
    - * - * - * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.List - getPscConfigsOrBuilderList() { - return pscConfigs_; - } - /** - * - * - *
    -   * Required. Each PscConfig configures the consumer network where IPs will
    -   * be designated to the cluster for client access through Private Service
    -   * Connect Automation. Currently, only one PscConfig is supported.
    -   * 
    - * - * - * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public int getPscConfigsCount() { - return pscConfigs_.size(); - } - /** - * - * - *
    -   * Required. Each PscConfig configures the consumer network where IPs will
    -   * be designated to the cluster for client access through Private Service
    -   * Connect Automation. Currently, only one PscConfig is supported.
    -   * 
    - * - * - * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.redis.cluster.v1beta1.PscConfig getPscConfigs(int index) { - return pscConfigs_.get(index); - } - /** - * - * - *
    -   * Required. Each PscConfig configures the consumer network where IPs will
    -   * be designated to the cluster for client access through Private Service
    -   * Connect Automation. Currently, only one PscConfig is supported.
    -   * 
    - * - * - * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.redis.cluster.v1beta1.PscConfigOrBuilder getPscConfigsOrBuilder( - int index) { - return pscConfigs_.get(index); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static final int DISCOVERY_ENDPOINTS_FIELD_NUMBER = 16; + size = 0; + { + int dataSize = 0; + for (int i = 0; i < uris_.size(); i++) { + dataSize += computeStringSizeNoTag(uris_.getRaw(i)); + } + size += dataSize; + size += 1 * getUrisList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - @SuppressWarnings("serial") - private java.util.List - discoveryEndpoints_; - /** - * - * - *
    -   * Output only. Endpoints created on each given network, for Redis clients to
    -   * connect to the cluster. Currently only one discovery endpoint is supported.
    -   * 
    - * - * - * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getDiscoveryEndpointsList() { - return discoveryEndpoints_; - } - /** - * - * - *
    -   * Output only. Endpoints created on each given network, for Redis clients to
    -   * connect to the cluster. Currently only one discovery endpoint is supported.
    -   * 
    - * - * - * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getDiscoveryEndpointsOrBuilderList() { - return discoveryEndpoints_; - } - /** - * - * - *
    -   * Output only. Endpoints created on each given network, for Redis clients to
    -   * connect to the cluster. Currently only one discovery endpoint is supported.
    -   * 
    - * - * - * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public int getDiscoveryEndpointsCount() { - return discoveryEndpoints_.size(); - } - /** - * - * - *
    -   * Output only. Endpoints created on each given network, for Redis clients to
    -   * connect to the cluster. Currently only one discovery endpoint is supported.
    -   * 
    - * - * - * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint getDiscoveryEndpoints(int index) { - return discoveryEndpoints_.get(index); - } - /** - * - * - *
    -   * Output only. Endpoints created on each given network, for Redis clients to
    -   * connect to the cluster. Currently only one discovery endpoint is supported.
    -   * 
    - * - * - * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpointOrBuilder - getDiscoveryEndpointsOrBuilder(int index) { - return discoveryEndpoints_.get(index); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource other = + (com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource) obj; - public static final int PSC_CONNECTIONS_FIELD_NUMBER = 17; + if (!getUrisList().equals(other.getUrisList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - @SuppressWarnings("serial") - private java.util.List pscConnections_; - /** - * - * - *
    -   * Output only. PSC connections for discovery of the cluster topology and
    -   * accessing the cluster.
    -   * 
    - * - * - * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getPscConnectionsList() { - return pscConnections_; - } - /** - * - * - *
    -   * Output only. PSC connections for discovery of the cluster topology and
    -   * accessing the cluster.
    -   * 
    - * - * - * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getPscConnectionsOrBuilderList() { - return pscConnections_; - } - /** - * - * - *
    -   * Output only. PSC connections for discovery of the cluster topology and
    -   * accessing the cluster.
    -   * 
    - * - * - * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public int getPscConnectionsCount() { - return pscConnections_.size(); - } - /** - * - * - *
    -   * Output only. PSC connections for discovery of the cluster topology and
    -   * accessing the cluster.
    -   * 
    - * - * - * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.redis.cluster.v1beta1.PscConnection getPscConnections(int index) { - return pscConnections_.get(index); - } - /** - * - * - *
    -   * Output only. PSC connections for discovery of the cluster topology and
    -   * accessing the cluster.
    -   * 
    - * - * - * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.redis.cluster.v1beta1.PscConnectionOrBuilder getPscConnectionsOrBuilder( - int index) { - return pscConnections_.get(index); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getUrisCount() > 0) { + hash = (37 * hash) + URIS_FIELD_NUMBER; + hash = (53 * hash) + getUrisList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - public static final int STATE_INFO_FIELD_NUMBER = 18; - private com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo stateInfo_; - /** - * - * - *
    -   * Output only. Additional information about the current state of the cluster.
    -   * 
    - * - * - * .google.cloud.redis.cluster.v1beta1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the stateInfo field is set. - */ - @java.lang.Override - public boolean hasStateInfo() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
    -   * Output only. Additional information about the current state of the cluster.
    -   * 
    - * - * - * .google.cloud.redis.cluster.v1beta1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The stateInfo. - */ - @java.lang.Override - public com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo getStateInfo() { - return stateInfo_ == null - ? com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo.getDefaultInstance() - : stateInfo_; - } - /** - * - * - *
    -   * Output only. Additional information about the current state of the cluster.
    -   * 
    - * - * - * .google.cloud.redis.cluster.v1beta1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfoOrBuilder getStateInfoOrBuilder() { - return stateInfo_ == null - ? com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo.getDefaultInstance() - : stateInfo_; - } + public static com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int NODE_TYPE_FIELD_NUMBER = 19; - private int nodeType_ = 0; - /** - * - * - *
    -   * Optional. The type of a redis node in the cluster. NodeType determines the
    -   * underlying machine-type of a redis node.
    -   * 
    - * - * - * .google.cloud.redis.cluster.v1beta1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for nodeType. - */ - @java.lang.Override - public int getNodeTypeValue() { - return nodeType_; - } - /** - * - * - *
    -   * Optional. The type of a redis node in the cluster. NodeType determines the
    -   * underlying machine-type of a redis node.
    -   * 
    - * - * - * .google.cloud.redis.cluster.v1beta1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The nodeType. - */ - @java.lang.Override - public com.google.cloud.redis.cluster.v1beta1.NodeType getNodeType() { - com.google.cloud.redis.cluster.v1beta1.NodeType result = - com.google.cloud.redis.cluster.v1beta1.NodeType.forNumber(nodeType_); - return result == null ? com.google.cloud.redis.cluster.v1beta1.NodeType.UNRECOGNIZED : result; - } + public static com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int PERSISTENCE_CONFIG_FIELD_NUMBER = 20; - private com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistenceConfig_; - /** - * - * - *
    -   * Optional. Persistence config (RDB, AOF) for the cluster.
    -   * 
    - * - * - * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the persistenceConfig field is set. - */ - @java.lang.Override - public boolean hasPersistenceConfig() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * - * - *
    -   * Optional. Persistence config (RDB, AOF) for the cluster.
    -   * 
    - * - * - * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The persistenceConfig. - */ - @java.lang.Override - public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig getPersistenceConfig() { - return persistenceConfig_ == null - ? com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.getDefaultInstance() - : persistenceConfig_; - } - /** - * - * - *
    -   * Optional. Persistence config (RDB, AOF) for the cluster.
    -   * 
    - * - * - * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfigOrBuilder - getPersistenceConfigOrBuilder() { - return persistenceConfig_ == null - ? com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.getDefaultInstance() - : persistenceConfig_; - } + public static com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int REDIS_CONFIGS_FIELD_NUMBER = 21; + public static com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private static final class RedisConfigsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto - .internal_static_google_cloud_redis_cluster_v1beta1_Cluster_RedisConfigsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } + public static com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @SuppressWarnings("serial") - private com.google.protobuf.MapField redisConfigs_; + public static com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private com.google.protobuf.MapField - internalGetRedisConfigs() { - if (redisConfigs_ == null) { - return com.google.protobuf.MapField.emptyMapField( - RedisConfigsDefaultEntryHolder.defaultEntry); + public static com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - return redisConfigs_; - } - public int getRedisConfigsCount() { - return internalGetRedisConfigs().getMap().size(); - } - /** - * - * - *
    -   * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
    -   * 
    - * - * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsRedisConfigs(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public static com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - return internalGetRedisConfigs().getMap().containsKey(key); - } - /** Use {@link #getRedisConfigsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getRedisConfigs() { - return getRedisConfigsMap(); - } - /** - * - * - *
    -   * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
    -   * 
    - * - * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getRedisConfigsMap() { - return internalGetRedisConfigs().getMap(); - } - /** - * - * - *
    -   * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
    -   * 
    - * - * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public /* nullable */ java.lang.String getRedisConfigsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); + + public static com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - java.util.Map map = internalGetRedisConfigs().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
    -   * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
    -   * 
    - * - * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getRedisConfigsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + + public static com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - java.util.Map map = internalGetRedisConfigs().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + + public static com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - return map.get(key); - } - public static final int PRECISE_SIZE_GB_FIELD_NUMBER = 22; - private double preciseSizeGb_ = 0D; - /** - * - * - *
    -   * Output only. Precise value of redis memory size in GB for the entire
    -   * cluster.
    -   * 
    - * - * optional double precise_size_gb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return Whether the preciseSizeGb field is set. - */ - @java.lang.Override - public boolean hasPreciseSizeGb() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * - * - *
    -   * Output only. Precise value of redis memory size in GB for the entire
    -   * cluster.
    -   * 
    - * - * optional double precise_size_gb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The preciseSizeGb. - */ - @java.lang.Override - public double getPreciseSizeGb() { - return preciseSizeGb_; - } + public static com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static final int ZONE_DISTRIBUTION_CONFIG_FIELD_NUMBER = 23; - private com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zoneDistributionConfig_; - /** - * - * - *
    -   * Optional. This config will be used to determine how the customer wants us
    -   * to distribute cluster resources within the region.
    -   * 
    - * - * - * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the zoneDistributionConfig field is set. - */ - @java.lang.Override - public boolean hasZoneDistributionConfig() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * - * - *
    -   * Optional. This config will be used to determine how the customer wants us
    -   * to distribute cluster resources within the region.
    -   * 
    - * - * - * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The zoneDistributionConfig. - */ - @java.lang.Override - public com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig getZoneDistributionConfig() { - return zoneDistributionConfig_ == null - ? com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.getDefaultInstance() - : zoneDistributionConfig_; - } - /** - * - * - *
    -   * Optional. This config will be used to determine how the customer wants us
    -   * to distribute cluster resources within the region.
    -   * 
    - * - * - * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfigOrBuilder - getZoneDistributionConfigOrBuilder() { - return zoneDistributionConfig_ == null - ? com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.getDefaultInstance() - : zoneDistributionConfig_; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public static final int DELETION_PROTECTION_ENABLED_FIELD_NUMBER = 25; - private boolean deletionProtectionEnabled_ = false; - /** - * - * - *
    -   * Optional. The delete operation will fail when the value is set to true.
    -   * 
    - * - * optional bool deletion_protection_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the deletionProtectionEnabled field is set. - */ - @java.lang.Override - public boolean hasDeletionProtectionEnabled() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * - * - *
    -   * Optional. The delete operation will fail when the value is set to true.
    -   * 
    - * - * optional bool deletion_protection_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The deletionProtectionEnabled. - */ - @java.lang.Override - public boolean getDeletionProtectionEnabled() { - return deletionProtectionEnabled_; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - private byte memoizedIsInitialized = -1; + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +     * Backups stored in Cloud Storage buckets.
    +     * The Cloud Storage buckets need to be the same region as the clusters.
    +     * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource) + com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_Cluster_GcsBackupSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_Cluster_GcsBackupSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource.class, + com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uris_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_Cluster_GcsBackupSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource build() { + com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource buildPartial() { + com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource result = + new com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + uris_.makeImmutable(); + result.uris_ = uris_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource) { + return mergeFrom((com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource other) { + if (other + == com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource.getDefaultInstance()) + return this; + if (!other.uris_.isEmpty()) { + if (uris_.isEmpty()) { + uris_ = other.uris_; + bitField0_ |= 0x00000001; + } else { + ensureUrisIsMutable(); + uris_.addAll(other.uris_); + } + 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(); + ensureUrisIsMutable(); + uris_.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 uris_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUrisIsMutable() { + if (!uris_.isModifiable()) { + uris_ = new com.google.protobuf.LazyStringArrayList(uris_); + } + bitField0_ |= 0x00000001; + } + /** + * + * + *
    +       * Optional. URIs of the GCS objects to import.
    +       * Example: gs://bucket1/object1, gs://bucket2/folder2/object2
    +       * 
    + * + * repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the uris. + */ + public com.google.protobuf.ProtocolStringList getUrisList() { + uris_.makeImmutable(); + return uris_; + } + /** + * + * + *
    +       * Optional. URIs of the GCS objects to import.
    +       * Example: gs://bucket1/object1, gs://bucket2/folder2/object2
    +       * 
    + * + * repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of uris. + */ + public int getUrisCount() { + return uris_.size(); + } + /** + * + * + *
    +       * Optional. URIs of the GCS objects to import.
    +       * Example: gs://bucket1/object1, gs://bucket2/folder2/object2
    +       * 
    + * + * repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The uris at the given index. + */ + public java.lang.String getUris(int index) { + return uris_.get(index); + } + /** + * + * + *
    +       * Optional. URIs of the GCS objects to import.
    +       * Example: gs://bucket1/object1, gs://bucket2/folder2/object2
    +       * 
    + * + * repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the uris at the given index. + */ + public com.google.protobuf.ByteString getUrisBytes(int index) { + return uris_.getByteString(index); + } + /** + * + * + *
    +       * Optional. URIs of the GCS objects to import.
    +       * Example: gs://bucket1/object1, gs://bucket2/folder2/object2
    +       * 
    + * + * repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The uris to set. + * @return This builder for chaining. + */ + public Builder setUris(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUrisIsMutable(); + uris_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. URIs of the GCS objects to import.
    +       * Example: gs://bucket1/object1, gs://bucket2/folder2/object2
    +       * 
    + * + * repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The uris to add. + * @return This builder for chaining. + */ + public Builder addUris(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUrisIsMutable(); + uris_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. URIs of the GCS objects to import.
    +       * Example: gs://bucket1/object1, gs://bucket2/folder2/object2
    +       * 
    + * + * repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The uris to add. + * @return This builder for chaining. + */ + public Builder addAllUris(java.lang.Iterable values) { + ensureUrisIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, uris_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. URIs of the GCS objects to import.
    +       * Example: gs://bucket1/object1, gs://bucket2/folder2/object2
    +       * 
    + * + * repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearUris() { + uris_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. URIs of the GCS objects to import.
    +       * Example: gs://bucket1/object1, gs://bucket2/folder2/object2
    +       * 
    + * + * repeated string uris = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the uris to add. + * @return This builder for chaining. + */ + public Builder addUrisBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUrisIsMutable(); + uris_.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.redis.cluster.v1beta1.Cluster.GcsBackupSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource) + private static final com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource(); + } + + public static com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsBackupSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ManagedBackupSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Optional. Example:
    +     * //redis.googleapis.com/projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup}
    +     * A shorter version (without the prefix) of the backup name is also
    +     * supported, like
    +     * projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup_id}
    +     * In this case, it assumes the backup is under redis.googleapis.com.
    +     * 
    + * + * string backup = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The backup. + */ + java.lang.String getBackup(); + /** + * + * + *
    +     * Optional. Example:
    +     * //redis.googleapis.com/projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup}
    +     * A shorter version (without the prefix) of the backup name is also
    +     * supported, like
    +     * projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup_id}
    +     * In this case, it assumes the backup is under redis.googleapis.com.
    +     * 
    + * + * string backup = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for backup. + */ + com.google.protobuf.ByteString getBackupBytes(); + } + /** + * + * + *
    +   * Backups that generated and managed by memorystore.
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource} + */ + public static final class ManagedBackupSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource) + ManagedBackupSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use ManagedBackupSource.newBuilder() to construct. + private ManagedBackupSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ManagedBackupSource() { + backup_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ManagedBackupSource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_Cluster_ManagedBackupSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_Cluster_ManagedBackupSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource.class, + com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource.Builder.class); + } + + public static final int BACKUP_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object backup_ = ""; + /** + * + * + *
    +     * Optional. Example:
    +     * //redis.googleapis.com/projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup}
    +     * A shorter version (without the prefix) of the backup name is also
    +     * supported, like
    +     * projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup_id}
    +     * In this case, it assumes the backup is under redis.googleapis.com.
    +     * 
    + * + * string backup = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The backup. + */ + @java.lang.Override + public java.lang.String getBackup() { + java.lang.Object ref = backup_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backup_ = s; + return s; + } + } + /** + * + * + *
    +     * Optional. Example:
    +     * //redis.googleapis.com/projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup}
    +     * A shorter version (without the prefix) of the backup name is also
    +     * supported, like
    +     * projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup_id}
    +     * In this case, it assumes the backup is under redis.googleapis.com.
    +     * 
    + * + * string backup = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for backup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBackupBytes() { + java.lang.Object ref = backup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backup_ = 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(backup_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, backup_); + } + 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(backup_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, backup_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource other = + (com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource) obj; + + if (!getBackup().equals(other.getBackup())) return false; + if (!getUnknownFields().equals(other.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) + BACKUP_FIELD_NUMBER; + hash = (53 * hash) + getBackup().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +     * Backups that generated and managed by memorystore.
    +     * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource) + com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_Cluster_ManagedBackupSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_Cluster_ManagedBackupSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource.class, + com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource.Builder.class); + } + + // Construct using + // com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + backup_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_Cluster_ManagedBackupSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource build() { + com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource buildPartial() { + com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource result = + new com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.backup_ = backup_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource) { + return mergeFrom( + (com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource other) { + if (other + == com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource + .getDefaultInstance()) return this; + if (!other.getBackup().isEmpty()) { + backup_ = other.backup_; + 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: + { + backup_ = 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 backup_ = ""; + /** + * + * + *
    +       * Optional. Example:
    +       * //redis.googleapis.com/projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup}
    +       * A shorter version (without the prefix) of the backup name is also
    +       * supported, like
    +       * projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup_id}
    +       * In this case, it assumes the backup is under redis.googleapis.com.
    +       * 
    + * + * string backup = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The backup. + */ + public java.lang.String getBackup() { + java.lang.Object ref = backup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * Optional. Example:
    +       * //redis.googleapis.com/projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup}
    +       * A shorter version (without the prefix) of the backup name is also
    +       * supported, like
    +       * projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup_id}
    +       * In this case, it assumes the backup is under redis.googleapis.com.
    +       * 
    + * + * string backup = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for backup. + */ + public com.google.protobuf.ByteString getBackupBytes() { + java.lang.Object ref = backup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * Optional. Example:
    +       * //redis.googleapis.com/projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup}
    +       * A shorter version (without the prefix) of the backup name is also
    +       * supported, like
    +       * projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup_id}
    +       * In this case, it assumes the backup is under redis.googleapis.com.
    +       * 
    + * + * string backup = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The backup to set. + * @return This builder for chaining. + */ + public Builder setBackup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + backup_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. Example:
    +       * //redis.googleapis.com/projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup}
    +       * A shorter version (without the prefix) of the backup name is also
    +       * supported, like
    +       * projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup_id}
    +       * In this case, it assumes the backup is under redis.googleapis.com.
    +       * 
    + * + * string backup = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearBackup() { + backup_ = getDefaultInstance().getBackup(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. Example:
    +       * //redis.googleapis.com/projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup}
    +       * A shorter version (without the prefix) of the backup name is also
    +       * supported, like
    +       * projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup_id}
    +       * In this case, it assumes the backup is under redis.googleapis.com.
    +       * 
    + * + * string backup = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for backup to set. + * @return This builder for chaining. + */ + public Builder setBackupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + backup_ = 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.redis.cluster.v1beta1.Cluster.ManagedBackupSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource) + private static final com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource(); + } + + public static com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ManagedBackupSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int importSourcesCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object importSources_; + + public enum ImportSourcesCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GCS_SOURCE(34), + MANAGED_BACKUP_SOURCE(35), + IMPORTSOURCES_NOT_SET(0); + private final int value; + + private ImportSourcesCase(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 ImportSourcesCase valueOf(int value) { + return forNumber(value); + } + + public static ImportSourcesCase forNumber(int value) { + switch (value) { + case 34: + return GCS_SOURCE; + case 35: + return MANAGED_BACKUP_SOURCE; + case 0: + return IMPORTSOURCES_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ImportSourcesCase getImportSourcesCase() { + return ImportSourcesCase.forNumber(importSourcesCase_); + } + + public static final int GCS_SOURCE_FIELD_NUMBER = 34; + /** + * + * + *
    +   * Optional. Backups stored in Cloud Storage buckets.
    +   * The Cloud Storage buckets need to be the same region as the clusters.
    +   * Read permission is required to import from the provided Cloud Storage
    +   * objects.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource gcs_source = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gcsSource field is set. + */ + @java.lang.Override + public boolean hasGcsSource() { + return importSourcesCase_ == 34; + } + /** + * + * + *
    +   * Optional. Backups stored in Cloud Storage buckets.
    +   * The Cloud Storage buckets need to be the same region as the clusters.
    +   * Read permission is required to import from the provided Cloud Storage
    +   * objects.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource gcs_source = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gcsSource. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource getGcsSource() { + if (importSourcesCase_ == 34) { + return (com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource) importSources_; + } + return com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource.getDefaultInstance(); + } + /** + * + * + *
    +   * Optional. Backups stored in Cloud Storage buckets.
    +   * The Cloud Storage buckets need to be the same region as the clusters.
    +   * Read permission is required to import from the provided Cloud Storage
    +   * objects.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource gcs_source = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSourceOrBuilder + getGcsSourceOrBuilder() { + if (importSourcesCase_ == 34) { + return (com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource) importSources_; + } + return com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource.getDefaultInstance(); + } + + public static final int MANAGED_BACKUP_SOURCE_FIELD_NUMBER = 35; + /** + * + * + *
    +   * Optional. Backups generated and managed by memorystore service.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource managed_backup_source = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the managedBackupSource field is set. + */ + @java.lang.Override + public boolean hasManagedBackupSource() { + return importSourcesCase_ == 35; + } + /** + * + * + *
    +   * Optional. Backups generated and managed by memorystore service.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource managed_backup_source = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The managedBackupSource. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource + getManagedBackupSource() { + if (importSourcesCase_ == 35) { + return (com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource) importSources_; + } + return com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource.getDefaultInstance(); + } + /** + * + * + *
    +   * Optional. Backups generated and managed by memorystore service.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource managed_backup_source = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSourceOrBuilder + getManagedBackupSourceOrBuilder() { + if (importSourcesCase_ == 35) { + return (com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource) importSources_; + } + return com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Required. Identifier. Unique name of the resource in this scope including
    +   * project and location using the form:
    +   *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @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. Identifier. Unique name of the resource in this scope including
    +   * project and location using the form:
    +   *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @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 CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
    +   * Output only. The timestamp associated with the cluster creation request.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 3 [(.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. The timestamp associated with the cluster creation request.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 3 [(.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. The timestamp associated with the cluster creation request.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 3 [(.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 STATE_FIELD_NUMBER = 4; + private int state_ = 0; + /** + * + * + *
    +   * Output only. The current state of this cluster.
    +   * Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Cluster.State state = 4 [(.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. The current state of this cluster.
    +   * Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Cluster.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.Cluster.State getState() { + com.google.cloud.redis.cluster.v1beta1.Cluster.State result = + com.google.cloud.redis.cluster.v1beta1.Cluster.State.forNumber(state_); + return result == null + ? com.google.cloud.redis.cluster.v1beta1.Cluster.State.UNRECOGNIZED + : result; + } + + public static final int UID_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + /** + * + * + *
    +   * Output only. System assigned, unique identifier for the cluster.
    +   * 
    + * + * string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } + } + /** + * + * + *
    +   * Output only. System assigned, unique identifier for the cluster.
    +   * 
    + * + * string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REPLICA_COUNT_FIELD_NUMBER = 8; + private int replicaCount_ = 0; + /** + * + * + *
    +   * Optional. The number of replica nodes per shard.
    +   * 
    + * + * optional int32 replica_count = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the replicaCount field is set. + */ + @java.lang.Override + public boolean hasReplicaCount() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +   * Optional. The number of replica nodes per shard.
    +   * 
    + * + * optional int32 replica_count = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The replicaCount. + */ + @java.lang.Override + public int getReplicaCount() { + return replicaCount_; + } + + public static final int AUTHORIZATION_MODE_FIELD_NUMBER = 11; + private int authorizationMode_ = 0; + /** + * + * + *
    +   * Optional. The authorization mode of the Redis cluster.
    +   * If not provided, auth feature is disabled for the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.AuthorizationMode authorization_mode = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for authorizationMode. + */ + @java.lang.Override + public int getAuthorizationModeValue() { + return authorizationMode_; + } + /** + * + * + *
    +   * Optional. The authorization mode of the Redis cluster.
    +   * If not provided, auth feature is disabled for the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.AuthorizationMode authorization_mode = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The authorizationMode. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AuthorizationMode getAuthorizationMode() { + com.google.cloud.redis.cluster.v1beta1.AuthorizationMode result = + com.google.cloud.redis.cluster.v1beta1.AuthorizationMode.forNumber(authorizationMode_); + return result == null + ? com.google.cloud.redis.cluster.v1beta1.AuthorizationMode.UNRECOGNIZED + : result; + } + + public static final int TRANSIT_ENCRYPTION_MODE_FIELD_NUMBER = 12; + private int transitEncryptionMode_ = 0; + /** + * + * + *
    +   * Optional. The in-transit encryption for the Redis cluster.
    +   * If not provided, encryption  is disabled for the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.TransitEncryptionMode transit_encryption_mode = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for transitEncryptionMode. + */ + @java.lang.Override + public int getTransitEncryptionModeValue() { + return transitEncryptionMode_; + } + /** + * + * + *
    +   * Optional. The in-transit encryption for the Redis cluster.
    +   * If not provided, encryption  is disabled for the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.TransitEncryptionMode transit_encryption_mode = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The transitEncryptionMode. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.TransitEncryptionMode getTransitEncryptionMode() { + com.google.cloud.redis.cluster.v1beta1.TransitEncryptionMode result = + com.google.cloud.redis.cluster.v1beta1.TransitEncryptionMode.forNumber( + transitEncryptionMode_); + return result == null + ? com.google.cloud.redis.cluster.v1beta1.TransitEncryptionMode.UNRECOGNIZED + : result; + } + + public static final int SIZE_GB_FIELD_NUMBER = 13; + private int sizeGb_ = 0; + /** + * + * + *
    +   * Output only. Redis memory size in GB for the entire cluster rounded up to
    +   * the next integer.
    +   * 
    + * + * optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the sizeGb field is set. + */ + @java.lang.Override + public boolean hasSizeGb() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +   * Output only. Redis memory size in GB for the entire cluster rounded up to
    +   * the next integer.
    +   * 
    + * + * optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sizeGb. + */ + @java.lang.Override + public int getSizeGb() { + return sizeGb_; + } + + public static final int SHARD_COUNT_FIELD_NUMBER = 14; + private int shardCount_ = 0; + /** + * + * + *
    +   * Optional. Number of shards for the Redis cluster.
    +   * 
    + * + * optional int32 shard_count = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the shardCount field is set. + */ + @java.lang.Override + public boolean hasShardCount() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
    +   * Optional. Number of shards for the Redis cluster.
    +   * 
    + * + * optional int32 shard_count = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The shardCount. + */ + @java.lang.Override + public int getShardCount() { + return shardCount_; + } + + public static final int PSC_CONFIGS_FIELD_NUMBER = 15; + + @SuppressWarnings("serial") + private java.util.List pscConfigs_; + /** + * + * + *
    +   * Optional. Each PscConfig configures the consumer network where IPs will
    +   * be designated to the cluster for client access through Private Service
    +   * Connect Automation. Currently, only one PscConfig is supported.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getPscConfigsList() { + return pscConfigs_; + } + /** + * + * + *
    +   * Optional. Each PscConfig configures the consumer network where IPs will
    +   * be designated to the cluster for client access through Private Service
    +   * Connect Automation. Currently, only one PscConfig is supported.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getPscConfigsOrBuilderList() { + return pscConfigs_; + } + /** + * + * + *
    +   * Optional. Each PscConfig configures the consumer network where IPs will
    +   * be designated to the cluster for client access through Private Service
    +   * Connect Automation. Currently, only one PscConfig is supported.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getPscConfigsCount() { + return pscConfigs_.size(); + } + /** + * + * + *
    +   * Optional. Each PscConfig configures the consumer network where IPs will
    +   * be designated to the cluster for client access through Private Service
    +   * Connect Automation. Currently, only one PscConfig is supported.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.PscConfig getPscConfigs(int index) { + return pscConfigs_.get(index); + } + /** + * + * + *
    +   * Optional. Each PscConfig configures the consumer network where IPs will
    +   * be designated to the cluster for client access through Private Service
    +   * Connect Automation. Currently, only one PscConfig is supported.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.PscConfigOrBuilder getPscConfigsOrBuilder( + int index) { + return pscConfigs_.get(index); + } + + public static final int DISCOVERY_ENDPOINTS_FIELD_NUMBER = 16; + + @SuppressWarnings("serial") + private java.util.List + discoveryEndpoints_; + /** + * + * + *
    +   * Output only. Endpoints created on each given network, for Redis clients to
    +   * connect to the cluster. Currently only one discovery endpoint is supported.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getDiscoveryEndpointsList() { + return discoveryEndpoints_; + } + /** + * + * + *
    +   * Output only. Endpoints created on each given network, for Redis clients to
    +   * connect to the cluster. Currently only one discovery endpoint is supported.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getDiscoveryEndpointsOrBuilderList() { + return discoveryEndpoints_; + } + /** + * + * + *
    +   * Output only. Endpoints created on each given network, for Redis clients to
    +   * connect to the cluster. Currently only one discovery endpoint is supported.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getDiscoveryEndpointsCount() { + return discoveryEndpoints_.size(); + } + /** + * + * + *
    +   * Output only. Endpoints created on each given network, for Redis clients to
    +   * connect to the cluster. Currently only one discovery endpoint is supported.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint getDiscoveryEndpoints(int index) { + return discoveryEndpoints_.get(index); + } + /** + * + * + *
    +   * Output only. Endpoints created on each given network, for Redis clients to
    +   * connect to the cluster. Currently only one discovery endpoint is supported.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpointOrBuilder + getDiscoveryEndpointsOrBuilder(int index) { + return discoveryEndpoints_.get(index); + } + + public static final int PSC_CONNECTIONS_FIELD_NUMBER = 17; + + @SuppressWarnings("serial") + private java.util.List pscConnections_; + /** + * + * + *
    +   * Output only. The list of PSC connections that are auto-created through
    +   * service connectivity automation.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getPscConnectionsList() { + return pscConnections_; + } + /** + * + * + *
    +   * Output only. The list of PSC connections that are auto-created through
    +   * service connectivity automation.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getPscConnectionsOrBuilderList() { + return pscConnections_; + } + /** + * + * + *
    +   * Output only. The list of PSC connections that are auto-created through
    +   * service connectivity automation.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getPscConnectionsCount() { + return pscConnections_.size(); + } + /** + * + * + *
    +   * Output only. The list of PSC connections that are auto-created through
    +   * service connectivity automation.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.PscConnection getPscConnections(int index) { + return pscConnections_.get(index); + } + /** + * + * + *
    +   * Output only. The list of PSC connections that are auto-created through
    +   * service connectivity automation.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.PscConnectionOrBuilder getPscConnectionsOrBuilder( + int index) { + return pscConnections_.get(index); + } + + public static final int STATE_INFO_FIELD_NUMBER = 18; + private com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo stateInfo_; + /** + * + * + *
    +   * Output only. Additional information about the current state of the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the stateInfo field is set. + */ + @java.lang.Override + public boolean hasStateInfo() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
    +   * Output only. Additional information about the current state of the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The stateInfo. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo getStateInfo() { + return stateInfo_ == null + ? com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo.getDefaultInstance() + : stateInfo_; + } + /** + * + * + *
    +   * Output only. Additional information about the current state of the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfoOrBuilder getStateInfoOrBuilder() { + return stateInfo_ == null + ? com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo.getDefaultInstance() + : stateInfo_; + } + + public static final int NODE_TYPE_FIELD_NUMBER = 19; + private int nodeType_ = 0; + /** + * + * + *
    +   * Optional. The type of a redis node in the cluster. NodeType determines the
    +   * underlying machine-type of a redis node.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for nodeType. + */ + @java.lang.Override + public int getNodeTypeValue() { + return nodeType_; + } + /** + * + * + *
    +   * Optional. The type of a redis node in the cluster. NodeType determines the
    +   * underlying machine-type of a redis node.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The nodeType. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.NodeType getNodeType() { + com.google.cloud.redis.cluster.v1beta1.NodeType result = + com.google.cloud.redis.cluster.v1beta1.NodeType.forNumber(nodeType_); + return result == null ? com.google.cloud.redis.cluster.v1beta1.NodeType.UNRECOGNIZED : result; + } + + public static final int PERSISTENCE_CONFIG_FIELD_NUMBER = 20; + private com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistenceConfig_; + /** + * + * + *
    +   * Optional. Persistence config (RDB, AOF) for the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the persistenceConfig field is set. + */ + @java.lang.Override + public boolean hasPersistenceConfig() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
    +   * Optional. Persistence config (RDB, AOF) for the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The persistenceConfig. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig getPersistenceConfig() { + return persistenceConfig_ == null + ? com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.getDefaultInstance() + : persistenceConfig_; + } + /** + * + * + *
    +   * Optional. Persistence config (RDB, AOF) for the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfigOrBuilder + getPersistenceConfigOrBuilder() { + return persistenceConfig_ == null + ? com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.getDefaultInstance() + : persistenceConfig_; + } + + public static final int REDIS_CONFIGS_FIELD_NUMBER = 21; + + private static final class RedisConfigsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_Cluster_RedisConfigsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField redisConfigs_; + + private com.google.protobuf.MapField + internalGetRedisConfigs() { + if (redisConfigs_ == null) { + return com.google.protobuf.MapField.emptyMapField( + RedisConfigsDefaultEntryHolder.defaultEntry); + } + return redisConfigs_; + } + + public int getRedisConfigsCount() { + return internalGetRedisConfigs().getMap().size(); + } + /** + * + * + *
    +   * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
    +   * 
    + * + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsRedisConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetRedisConfigs().getMap().containsKey(key); + } + /** Use {@link #getRedisConfigsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getRedisConfigs() { + return getRedisConfigsMap(); + } + /** + * + * + *
    +   * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
    +   * 
    + * + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getRedisConfigsMap() { + return internalGetRedisConfigs().getMap(); + } + /** + * + * + *
    +   * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
    +   * 
    + * + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getRedisConfigsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetRedisConfigs().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
    +   * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
    +   * 
    + * + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getRedisConfigsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetRedisConfigs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int PRECISE_SIZE_GB_FIELD_NUMBER = 22; + private double preciseSizeGb_ = 0D; + /** + * + * + *
    +   * Output only. Precise value of redis memory size in GB for the entire
    +   * cluster.
    +   * 
    + * + * optional double precise_size_gb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the preciseSizeGb field is set. + */ + @java.lang.Override + public boolean hasPreciseSizeGb() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
    +   * Output only. Precise value of redis memory size in GB for the entire
    +   * cluster.
    +   * 
    + * + * optional double precise_size_gb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The preciseSizeGb. + */ + @java.lang.Override + public double getPreciseSizeGb() { + return preciseSizeGb_; + } + + public static final int ZONE_DISTRIBUTION_CONFIG_FIELD_NUMBER = 23; + private com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zoneDistributionConfig_; + /** + * + * + *
    +   * Optional. This config will be used to determine how the customer wants us
    +   * to distribute cluster resources within the region.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the zoneDistributionConfig field is set. + */ + @java.lang.Override + public boolean hasZoneDistributionConfig() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
    +   * Optional. This config will be used to determine how the customer wants us
    +   * to distribute cluster resources within the region.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The zoneDistributionConfig. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig getZoneDistributionConfig() { + return zoneDistributionConfig_ == null + ? com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.getDefaultInstance() + : zoneDistributionConfig_; + } + /** + * + * + *
    +   * Optional. This config will be used to determine how the customer wants us
    +   * to distribute cluster resources within the region.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfigOrBuilder + getZoneDistributionConfigOrBuilder() { + return zoneDistributionConfig_ == null + ? com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.getDefaultInstance() + : zoneDistributionConfig_; + } + + public static final int CROSS_CLUSTER_REPLICATION_CONFIG_FIELD_NUMBER = 24; + private com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + crossClusterReplicationConfig_; + /** + * + * + *
    +   * Optional. Cross cluster replication config.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig cross_cluster_replication_config = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the crossClusterReplicationConfig field is set. + */ + @java.lang.Override + public boolean hasCrossClusterReplicationConfig() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * + * + *
    +   * Optional. Cross cluster replication config.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig cross_cluster_replication_config = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The crossClusterReplicationConfig. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + getCrossClusterReplicationConfig() { + return crossClusterReplicationConfig_ == null + ? com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.getDefaultInstance() + : crossClusterReplicationConfig_; + } + /** + * + * + *
    +   * Optional. Cross cluster replication config.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig cross_cluster_replication_config = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfigOrBuilder + getCrossClusterReplicationConfigOrBuilder() { + return crossClusterReplicationConfig_ == null + ? com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.getDefaultInstance() + : crossClusterReplicationConfig_; + } + + public static final int DELETION_PROTECTION_ENABLED_FIELD_NUMBER = 25; + private boolean deletionProtectionEnabled_ = false; + /** + * + * + *
    +   * Optional. The delete operation will fail when the value is set to true.
    +   * 
    + * + * optional bool deletion_protection_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the deletionProtectionEnabled field is set. + */ + @java.lang.Override + public boolean hasDeletionProtectionEnabled() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * + * + *
    +   * Optional. The delete operation will fail when the value is set to true.
    +   * 
    + * + * optional bool deletion_protection_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deletionProtectionEnabled. + */ + @java.lang.Override + public boolean getDeletionProtectionEnabled() { + return deletionProtectionEnabled_; + } + + public static final int MAINTENANCE_POLICY_FIELD_NUMBER = 26; + private com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy maintenancePolicy_; + /** + * + * + *
    +   * Optional. ClusterMaintenancePolicy determines when to allow or deny
    +   * updates.
    +   * 
    + * + * + * optional .google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy maintenance_policy = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the maintenancePolicy field is set. + */ + @java.lang.Override + public boolean hasMaintenancePolicy() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * + * + *
    +   * Optional. ClusterMaintenancePolicy determines when to allow or deny
    +   * updates.
    +   * 
    + * + * + * optional .google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy maintenance_policy = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maintenancePolicy. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy getMaintenancePolicy() { + return maintenancePolicy_ == null + ? com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy.getDefaultInstance() + : maintenancePolicy_; + } + /** + * + * + *
    +   * Optional. ClusterMaintenancePolicy determines when to allow or deny
    +   * updates.
    +   * 
    + * + * + * optional .google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy maintenance_policy = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicyOrBuilder + getMaintenancePolicyOrBuilder() { + return maintenancePolicy_ == null + ? com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy.getDefaultInstance() + : maintenancePolicy_; + } + + public static final int MAINTENANCE_SCHEDULE_FIELD_NUMBER = 27; + private com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule maintenanceSchedule_; + /** + * + * + *
    +   * Output only. ClusterMaintenanceSchedule Output only Published maintenance
    +   * schedule.
    +   * 
    + * + * + * optional .google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule maintenance_schedule = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the maintenanceSchedule field is set. + */ + @java.lang.Override + public boolean hasMaintenanceSchedule() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + * + * + *
    +   * Output only. ClusterMaintenanceSchedule Output only Published maintenance
    +   * schedule.
    +   * 
    + * + * + * optional .google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule maintenance_schedule = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The maintenanceSchedule. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule + getMaintenanceSchedule() { + return maintenanceSchedule_ == null + ? com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule.getDefaultInstance() + : maintenanceSchedule_; + } + /** + * + * + *
    +   * Output only. ClusterMaintenanceSchedule Output only Published maintenance
    +   * schedule.
    +   * 
    + * + * + * optional .google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule maintenance_schedule = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceScheduleOrBuilder + getMaintenanceScheduleOrBuilder() { + return maintenanceSchedule_ == null + ? com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule.getDefaultInstance() + : maintenanceSchedule_; + } + + public static final int PSC_SERVICE_ATTACHMENTS_FIELD_NUMBER = 30; + + @SuppressWarnings("serial") + private java.util.List + pscServiceAttachments_; + /** + * + * + *
    +   * Output only. Service attachment details to configure Psc connections
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getPscServiceAttachmentsList() { + return pscServiceAttachments_; + } + /** + * + * + *
    +   * Output only. Service attachment details to configure Psc connections
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.redis.cluster.v1beta1.PscServiceAttachmentOrBuilder> + getPscServiceAttachmentsOrBuilderList() { + return pscServiceAttachments_; + } + /** + * + * + *
    +   * Output only. Service attachment details to configure Psc connections
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getPscServiceAttachmentsCount() { + return pscServiceAttachments_.size(); + } + /** + * + * + *
    +   * Output only. Service attachment details to configure Psc connections
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment getPscServiceAttachments( + int index) { + return pscServiceAttachments_.get(index); + } + /** + * + * + *
    +   * Output only. Service attachment details to configure Psc connections
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.PscServiceAttachmentOrBuilder + getPscServiceAttachmentsOrBuilder(int index) { + return pscServiceAttachments_.get(index); + } + + public static final int CLUSTER_ENDPOINTS_FIELD_NUMBER = 36; + + @SuppressWarnings("serial") + private java.util.List clusterEndpoints_; + /** + * + * + *
    +   * Optional. A list of cluster enpoints.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getClusterEndpointsList() { + return clusterEndpoints_; + } + /** + * + * + *
    +   * Optional. A list of cluster enpoints.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getClusterEndpointsOrBuilderList() { + return clusterEndpoints_; + } + /** + * + * + *
    +   * Optional. A list of cluster enpoints.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getClusterEndpointsCount() { + return clusterEndpoints_.size(); + } + /** + * + * + *
    +   * Optional. A list of cluster enpoints.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint getClusterEndpoints(int index) { + return clusterEndpoints_.get(index); + } + /** + * + * + *
    +   * Optional. A list of cluster enpoints.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterEndpointOrBuilder + getClusterEndpointsOrBuilder(int index) { + return clusterEndpoints_.get(index); + } + + public static final int BACKUP_COLLECTION_FIELD_NUMBER = 39; + + @SuppressWarnings("serial") + private volatile java.lang.Object backupCollection_ = ""; + /** + * + * + *
    +   * Optional. Output only. The backup collection full resource name. Example:
    +   * projects/{project}/locations/{location}/backupCollections/{collection}
    +   * 
    + * + * + * optional string backup_collection = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the backupCollection field is set. + */ + @java.lang.Override + public boolean hasBackupCollection() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * + * + *
    +   * Optional. Output only. The backup collection full resource name. Example:
    +   * projects/{project}/locations/{location}/backupCollections/{collection}
    +   * 
    + * + * + * optional string backup_collection = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The backupCollection. + */ + @java.lang.Override + public java.lang.String getBackupCollection() { + java.lang.Object ref = backupCollection_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backupCollection_ = s; + return s; + } + } + /** + * + * + *
    +   * Optional. Output only. The backup collection full resource name. Example:
    +   * projects/{project}/locations/{location}/backupCollections/{collection}
    +   * 
    + * + * + * optional string backup_collection = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for backupCollection. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBackupCollectionBytes() { + java.lang.Object ref = backupCollection_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backupCollection_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KMS_KEY_FIELD_NUMBER = 40; + + @SuppressWarnings("serial") + private volatile java.lang.Object kmsKey_ = ""; + /** + * + * + *
    +   * Optional. The KMS key used to encrypt the at-rest data of the cluster.
    +   * 
    + * + * + * optional string kms_key = 40 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the kmsKey field is set. + */ + @java.lang.Override + public boolean hasKmsKey() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + * + * + *
    +   * Optional. The KMS key used to encrypt the at-rest data of the cluster.
    +   * 
    + * + * + * optional string kms_key = 40 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The kmsKey. + */ + @java.lang.Override + public java.lang.String getKmsKey() { + java.lang.Object ref = kmsKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKey_ = s; + return s; + } + } + /** + * + * + *
    +   * Optional. The KMS key used to encrypt the at-rest data of the cluster.
    +   * 
    + * + * + * optional string kms_key = 40 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for kmsKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKmsKeyBytes() { + java.lang.Object ref = kmsKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTOMATED_BACKUP_CONFIG_FIELD_NUMBER = 42; + private com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig automatedBackupConfig_; + /** + * + * + *
    +   * Optional. The automated backup config for the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig automated_backup_config = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the automatedBackupConfig field is set. + */ + @java.lang.Override + public boolean hasAutomatedBackupConfig() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + * + * + *
    +   * Optional. The automated backup config for the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig automated_backup_config = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The automatedBackupConfig. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig getAutomatedBackupConfig() { + return automatedBackupConfig_ == null + ? com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.getDefaultInstance() + : automatedBackupConfig_; + } + /** + * + * + *
    +   * Optional. The automated backup config for the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig automated_backup_config = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfigOrBuilder + getAutomatedBackupConfigOrBuilder() { + return automatedBackupConfig_ == null + ? com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.getDefaultInstance() + : automatedBackupConfig_; + } + + public static final int ENCRYPTION_INFO_FIELD_NUMBER = 43; + private com.google.cloud.redis.cluster.v1beta1.EncryptionInfo encryptionInfo_; + /** + * + * + *
    +   * Output only. Encryption information of the data at rest of the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo encryption_info = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the encryptionInfo field is set. + */ + @java.lang.Override + public boolean hasEncryptionInfo() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + * + * + *
    +   * Output only. Encryption information of the data at rest of the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo encryption_info = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The encryptionInfo. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.EncryptionInfo getEncryptionInfo() { + return encryptionInfo_ == null + ? com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.getDefaultInstance() + : encryptionInfo_; + } + /** + * + * + *
    +   * Output only. Encryption information of the data at rest of the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo encryption_info = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.EncryptionInfoOrBuilder + getEncryptionInfoOrBuilder() { + return encryptionInfo_ == null + ? com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.getDefaultInstance() + : encryptionInfo_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + if (state_ + != com.google.cloud.redis.cluster.v1beta1.Cluster.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(4, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, uid_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt32(8, replicaCount_); + } + if (authorizationMode_ + != com.google.cloud.redis.cluster.v1beta1.AuthorizationMode.AUTH_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(11, authorizationMode_); + } + if (transitEncryptionMode_ + != com.google.cloud.redis.cluster.v1beta1.TransitEncryptionMode + .TRANSIT_ENCRYPTION_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(12, transitEncryptionMode_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt32(13, sizeGb_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeInt32(14, shardCount_); + } + for (int i = 0; i < pscConfigs_.size(); i++) { + output.writeMessage(15, pscConfigs_.get(i)); + } + for (int i = 0; i < discoveryEndpoints_.size(); i++) { + output.writeMessage(16, discoveryEndpoints_.get(i)); + } + for (int i = 0; i < pscConnections_.size(); i++) { + output.writeMessage(17, pscConnections_.get(i)); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(18, getStateInfo()); + } + if (nodeType_ + != com.google.cloud.redis.cluster.v1beta1.NodeType.NODE_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(19, nodeType_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(20, getPersistenceConfig()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetRedisConfigs(), RedisConfigsDefaultEntryHolder.defaultEntry, 21); + if (((bitField0_ & 0x00000040) != 0)) { + output.writeDouble(22, preciseSizeGb_); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(23, getZoneDistributionConfig()); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(24, getCrossClusterReplicationConfig()); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeBool(25, deletionProtectionEnabled_); + } + if (((bitField0_ & 0x00000400) != 0)) { + output.writeMessage(26, getMaintenancePolicy()); + } + if (((bitField0_ & 0x00000800) != 0)) { + output.writeMessage(27, getMaintenanceSchedule()); + } + for (int i = 0; i < pscServiceAttachments_.size(); i++) { + output.writeMessage(30, pscServiceAttachments_.get(i)); + } + if (importSourcesCase_ == 34) { + output.writeMessage( + 34, (com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource) importSources_); + } + if (importSourcesCase_ == 35) { + output.writeMessage( + 35, (com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource) importSources_); + } + for (int i = 0; i < clusterEndpoints_.size(); i++) { + output.writeMessage(36, clusterEndpoints_.get(i)); + } + if (((bitField0_ & 0x00001000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 39, backupCollection_); + } + if (((bitField0_ & 0x00002000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 40, kmsKey_); + } + if (((bitField0_ & 0x00004000) != 0)) { + output.writeMessage(42, getAutomatedBackupConfig()); + } + if (((bitField0_ & 0x00008000) != 0)) { + output.writeMessage(43, getEncryptionInfo()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (state_ + != com.google.cloud.redis.cluster.v1beta1.Cluster.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, uid_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, replicaCount_); + } + if (authorizationMode_ + != com.google.cloud.redis.cluster.v1beta1.AuthorizationMode.AUTH_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, authorizationMode_); + } + if (transitEncryptionMode_ + != com.google.cloud.redis.cluster.v1beta1.TransitEncryptionMode + .TRANSIT_ENCRYPTION_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, transitEncryptionMode_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(13, sizeGb_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(14, shardCount_); + } + for (int i = 0; i < pscConfigs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, pscConfigs_.get(i)); + } + for (int i = 0; i < discoveryEndpoints_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(16, discoveryEndpoints_.get(i)); + } + for (int i = 0; i < pscConnections_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, pscConnections_.get(i)); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getStateInfo()); + } + if (nodeType_ + != com.google.cloud.redis.cluster.v1beta1.NodeType.NODE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(19, nodeType_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getPersistenceConfig()); + } + for (java.util.Map.Entry entry : + internalGetRedisConfigs().getMap().entrySet()) { + com.google.protobuf.MapEntry redisConfigs__ = + RedisConfigsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, redisConfigs__); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(22, preciseSizeGb_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(23, getZoneDistributionConfig()); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 24, getCrossClusterReplicationConfig()); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(25, deletionProtectionEnabled_); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, getMaintenancePolicy()); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(27, getMaintenanceSchedule()); + } + for (int i = 0; i < pscServiceAttachments_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 30, pscServiceAttachments_.get(i)); + } + if (importSourcesCase_ == 34) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 34, (com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource) importSources_); + } + if (importSourcesCase_ == 35) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 35, + (com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource) importSources_); + } + for (int i = 0; i < clusterEndpoints_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(36, clusterEndpoints_.get(i)); + } + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(39, backupCollection_); + } + if (((bitField0_ & 0x00002000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(40, kmsKey_); + } + if (((bitField0_ & 0x00004000) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(42, getAutomatedBackupConfig()); + } + if (((bitField0_ & 0x00008000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(43, getEncryptionInfo()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1beta1.Cluster)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.Cluster other = + (com.google.cloud.redis.cluster.v1beta1.Cluster) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (state_ != other.state_) return false; + if (!getUid().equals(other.getUid())) return false; + if (hasReplicaCount() != other.hasReplicaCount()) return false; + if (hasReplicaCount()) { + if (getReplicaCount() != other.getReplicaCount()) return false; + } + if (authorizationMode_ != other.authorizationMode_) return false; + if (transitEncryptionMode_ != other.transitEncryptionMode_) return false; + if (hasSizeGb() != other.hasSizeGb()) return false; + if (hasSizeGb()) { + if (getSizeGb() != other.getSizeGb()) return false; + } + if (hasShardCount() != other.hasShardCount()) return false; + if (hasShardCount()) { + if (getShardCount() != other.getShardCount()) return false; + } + if (!getPscConfigsList().equals(other.getPscConfigsList())) return false; + if (!getDiscoveryEndpointsList().equals(other.getDiscoveryEndpointsList())) return false; + if (!getPscConnectionsList().equals(other.getPscConnectionsList())) return false; + if (hasStateInfo() != other.hasStateInfo()) return false; + if (hasStateInfo()) { + if (!getStateInfo().equals(other.getStateInfo())) return false; + } + if (nodeType_ != other.nodeType_) return false; + if (hasPersistenceConfig() != other.hasPersistenceConfig()) return false; + if (hasPersistenceConfig()) { + if (!getPersistenceConfig().equals(other.getPersistenceConfig())) return false; + } + if (!internalGetRedisConfigs().equals(other.internalGetRedisConfigs())) return false; + if (hasPreciseSizeGb() != other.hasPreciseSizeGb()) return false; + if (hasPreciseSizeGb()) { + if (java.lang.Double.doubleToLongBits(getPreciseSizeGb()) + != java.lang.Double.doubleToLongBits(other.getPreciseSizeGb())) return false; + } + if (hasZoneDistributionConfig() != other.hasZoneDistributionConfig()) return false; + if (hasZoneDistributionConfig()) { + if (!getZoneDistributionConfig().equals(other.getZoneDistributionConfig())) return false; + } + if (hasCrossClusterReplicationConfig() != other.hasCrossClusterReplicationConfig()) + return false; + if (hasCrossClusterReplicationConfig()) { + if (!getCrossClusterReplicationConfig().equals(other.getCrossClusterReplicationConfig())) + return false; + } + if (hasDeletionProtectionEnabled() != other.hasDeletionProtectionEnabled()) return false; + if (hasDeletionProtectionEnabled()) { + if (getDeletionProtectionEnabled() != other.getDeletionProtectionEnabled()) return false; + } + if (hasMaintenancePolicy() != other.hasMaintenancePolicy()) return false; + if (hasMaintenancePolicy()) { + if (!getMaintenancePolicy().equals(other.getMaintenancePolicy())) return false; + } + if (hasMaintenanceSchedule() != other.hasMaintenanceSchedule()) return false; + if (hasMaintenanceSchedule()) { + if (!getMaintenanceSchedule().equals(other.getMaintenanceSchedule())) return false; + } + if (!getPscServiceAttachmentsList().equals(other.getPscServiceAttachmentsList())) return false; + if (!getClusterEndpointsList().equals(other.getClusterEndpointsList())) return false; + if (hasBackupCollection() != other.hasBackupCollection()) return false; + if (hasBackupCollection()) { + if (!getBackupCollection().equals(other.getBackupCollection())) return false; + } + if (hasKmsKey() != other.hasKmsKey()) return false; + if (hasKmsKey()) { + if (!getKmsKey().equals(other.getKmsKey())) return false; + } + if (hasAutomatedBackupConfig() != other.hasAutomatedBackupConfig()) return false; + if (hasAutomatedBackupConfig()) { + if (!getAutomatedBackupConfig().equals(other.getAutomatedBackupConfig())) return false; + } + if (hasEncryptionInfo() != other.hasEncryptionInfo()) return false; + if (hasEncryptionInfo()) { + if (!getEncryptionInfo().equals(other.getEncryptionInfo())) return false; + } + if (!getImportSourcesCase().equals(other.getImportSourcesCase())) return false; + switch (importSourcesCase_) { + case 34: + if (!getGcsSource().equals(other.getGcsSource())) return false; + break; + case 35: + if (!getManagedBackupSource().equals(other.getManagedBackupSource())) 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(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + if (hasReplicaCount()) { + hash = (37 * hash) + REPLICA_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getReplicaCount(); + } + hash = (37 * hash) + AUTHORIZATION_MODE_FIELD_NUMBER; + hash = (53 * hash) + authorizationMode_; + hash = (37 * hash) + TRANSIT_ENCRYPTION_MODE_FIELD_NUMBER; + hash = (53 * hash) + transitEncryptionMode_; + if (hasSizeGb()) { + hash = (37 * hash) + SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + getSizeGb(); + } + if (hasShardCount()) { + hash = (37 * hash) + SHARD_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getShardCount(); + } + if (getPscConfigsCount() > 0) { + hash = (37 * hash) + PSC_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getPscConfigsList().hashCode(); + } + if (getDiscoveryEndpointsCount() > 0) { + hash = (37 * hash) + DISCOVERY_ENDPOINTS_FIELD_NUMBER; + hash = (53 * hash) + getDiscoveryEndpointsList().hashCode(); + } + if (getPscConnectionsCount() > 0) { + hash = (37 * hash) + PSC_CONNECTIONS_FIELD_NUMBER; + hash = (53 * hash) + getPscConnectionsList().hashCode(); + } + if (hasStateInfo()) { + hash = (37 * hash) + STATE_INFO_FIELD_NUMBER; + hash = (53 * hash) + getStateInfo().hashCode(); + } + hash = (37 * hash) + NODE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + nodeType_; + if (hasPersistenceConfig()) { + hash = (37 * hash) + PERSISTENCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getPersistenceConfig().hashCode(); + } + if (!internalGetRedisConfigs().getMap().isEmpty()) { + hash = (37 * hash) + REDIS_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetRedisConfigs().hashCode(); + } + if (hasPreciseSizeGb()) { + hash = (37 * hash) + PRECISE_SIZE_GB_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getPreciseSizeGb())); + } + if (hasZoneDistributionConfig()) { + hash = (37 * hash) + ZONE_DISTRIBUTION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getZoneDistributionConfig().hashCode(); + } + if (hasCrossClusterReplicationConfig()) { + hash = (37 * hash) + CROSS_CLUSTER_REPLICATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getCrossClusterReplicationConfig().hashCode(); + } + if (hasDeletionProtectionEnabled()) { + hash = (37 * hash) + DELETION_PROTECTION_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeletionProtectionEnabled()); + } + if (hasMaintenancePolicy()) { + hash = (37 * hash) + MAINTENANCE_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getMaintenancePolicy().hashCode(); + } + if (hasMaintenanceSchedule()) { + hash = (37 * hash) + MAINTENANCE_SCHEDULE_FIELD_NUMBER; + hash = (53 * hash) + getMaintenanceSchedule().hashCode(); + } + if (getPscServiceAttachmentsCount() > 0) { + hash = (37 * hash) + PSC_SERVICE_ATTACHMENTS_FIELD_NUMBER; + hash = (53 * hash) + getPscServiceAttachmentsList().hashCode(); + } + if (getClusterEndpointsCount() > 0) { + hash = (37 * hash) + CLUSTER_ENDPOINTS_FIELD_NUMBER; + hash = (53 * hash) + getClusterEndpointsList().hashCode(); + } + if (hasBackupCollection()) { + hash = (37 * hash) + BACKUP_COLLECTION_FIELD_NUMBER; + hash = (53 * hash) + getBackupCollection().hashCode(); + } + if (hasKmsKey()) { + hash = (37 * hash) + KMS_KEY_FIELD_NUMBER; + hash = (53 * hash) + getKmsKey().hashCode(); + } + if (hasAutomatedBackupConfig()) { + hash = (37 * hash) + AUTOMATED_BACKUP_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAutomatedBackupConfig().hashCode(); + } + if (hasEncryptionInfo()) { + hash = (37 * hash) + ENCRYPTION_INFO_FIELD_NUMBER; + hash = (53 * hash) + getEncryptionInfo().hashCode(); + } + switch (importSourcesCase_) { + case 34: + hash = (37 * hash) + GCS_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getGcsSource().hashCode(); + break; + case 35: + hash = (37 * hash) + MANAGED_BACKUP_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getManagedBackupSource().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.Cluster parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.Cluster parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.Cluster parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.Cluster parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.Cluster parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.Cluster parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.Cluster parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.Cluster parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.Cluster parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.Cluster parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.Cluster parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.Cluster parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.redis.cluster.v1beta1.Cluster prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 cluster instance.
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.Cluster} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.Cluster) + com.google.cloud.redis.cluster.v1beta1.ClusterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_Cluster_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 21: + return internalGetRedisConfigs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 21: + return internalGetMutableRedisConfigs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_Cluster_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.Cluster.class, + com.google.cloud.redis.cluster.v1beta1.Cluster.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1beta1.Cluster.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(); + getPscConfigsFieldBuilder(); + getDiscoveryEndpointsFieldBuilder(); + getPscConnectionsFieldBuilder(); + getStateInfoFieldBuilder(); + getPersistenceConfigFieldBuilder(); + getZoneDistributionConfigFieldBuilder(); + getCrossClusterReplicationConfigFieldBuilder(); + getMaintenancePolicyFieldBuilder(); + getMaintenanceScheduleFieldBuilder(); + getPscServiceAttachmentsFieldBuilder(); + getClusterEndpointsFieldBuilder(); + getAutomatedBackupConfigFieldBuilder(); + getEncryptionInfoFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (gcsSourceBuilder_ != null) { + gcsSourceBuilder_.clear(); + } + if (managedBackupSourceBuilder_ != null) { + managedBackupSourceBuilder_.clear(); + } + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + state_ = 0; + uid_ = ""; + replicaCount_ = 0; + authorizationMode_ = 0; + transitEncryptionMode_ = 0; + sizeGb_ = 0; + shardCount_ = 0; + if (pscConfigsBuilder_ == null) { + pscConfigs_ = java.util.Collections.emptyList(); + } else { + pscConfigs_ = null; + pscConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000800); + if (discoveryEndpointsBuilder_ == null) { + discoveryEndpoints_ = java.util.Collections.emptyList(); + } else { + discoveryEndpoints_ = null; + discoveryEndpointsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00001000); + if (pscConnectionsBuilder_ == null) { + pscConnections_ = java.util.Collections.emptyList(); + } else { + pscConnections_ = null; + pscConnectionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00002000); + stateInfo_ = null; + if (stateInfoBuilder_ != null) { + stateInfoBuilder_.dispose(); + stateInfoBuilder_ = null; + } + nodeType_ = 0; + persistenceConfig_ = null; + if (persistenceConfigBuilder_ != null) { + persistenceConfigBuilder_.dispose(); + persistenceConfigBuilder_ = null; + } + internalGetMutableRedisConfigs().clear(); + preciseSizeGb_ = 0D; + zoneDistributionConfig_ = null; + if (zoneDistributionConfigBuilder_ != null) { + zoneDistributionConfigBuilder_.dispose(); + zoneDistributionConfigBuilder_ = null; + } + crossClusterReplicationConfig_ = null; + if (crossClusterReplicationConfigBuilder_ != null) { + crossClusterReplicationConfigBuilder_.dispose(); + crossClusterReplicationConfigBuilder_ = null; + } + deletionProtectionEnabled_ = false; + maintenancePolicy_ = null; + if (maintenancePolicyBuilder_ != null) { + maintenancePolicyBuilder_.dispose(); + maintenancePolicyBuilder_ = null; + } + maintenanceSchedule_ = null; + if (maintenanceScheduleBuilder_ != null) { + maintenanceScheduleBuilder_.dispose(); + maintenanceScheduleBuilder_ = null; + } + if (pscServiceAttachmentsBuilder_ == null) { + pscServiceAttachments_ = java.util.Collections.emptyList(); + } else { + pscServiceAttachments_ = null; + pscServiceAttachmentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x01000000); + if (clusterEndpointsBuilder_ == null) { + clusterEndpoints_ = java.util.Collections.emptyList(); + } else { + clusterEndpoints_ = null; + clusterEndpointsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x02000000); + backupCollection_ = ""; + kmsKey_ = ""; + automatedBackupConfig_ = null; + if (automatedBackupConfigBuilder_ != null) { + automatedBackupConfigBuilder_.dispose(); + automatedBackupConfigBuilder_ = null; + } + encryptionInfo_ = null; + if (encryptionInfoBuilder_ != null) { + encryptionInfoBuilder_.dispose(); + encryptionInfoBuilder_ = null; + } + importSourcesCase_ = 0; + importSources_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_Cluster_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.Cluster getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.Cluster.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.Cluster build() { + com.google.cloud.redis.cluster.v1beta1.Cluster result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.Cluster buildPartial() { + com.google.cloud.redis.cluster.v1beta1.Cluster result = + new com.google.cloud.redis.cluster.v1beta1.Cluster(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.redis.cluster.v1beta1.Cluster result) { + if (pscConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0)) { + pscConfigs_ = java.util.Collections.unmodifiableList(pscConfigs_); + bitField0_ = (bitField0_ & ~0x00000800); + } + result.pscConfigs_ = pscConfigs_; + } else { + result.pscConfigs_ = pscConfigsBuilder_.build(); + } + if (discoveryEndpointsBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0)) { + discoveryEndpoints_ = java.util.Collections.unmodifiableList(discoveryEndpoints_); + bitField0_ = (bitField0_ & ~0x00001000); + } + result.discoveryEndpoints_ = discoveryEndpoints_; + } else { + result.discoveryEndpoints_ = discoveryEndpointsBuilder_.build(); + } + if (pscConnectionsBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0)) { + pscConnections_ = java.util.Collections.unmodifiableList(pscConnections_); + bitField0_ = (bitField0_ & ~0x00002000); + } + result.pscConnections_ = pscConnections_; + } else { + result.pscConnections_ = pscConnectionsBuilder_.build(); + } + if (pscServiceAttachmentsBuilder_ == null) { + if (((bitField0_ & 0x01000000) != 0)) { + pscServiceAttachments_ = java.util.Collections.unmodifiableList(pscServiceAttachments_); + bitField0_ = (bitField0_ & ~0x01000000); + } + result.pscServiceAttachments_ = pscServiceAttachments_; + } else { + result.pscServiceAttachments_ = pscServiceAttachmentsBuilder_.build(); + } + if (clusterEndpointsBuilder_ == null) { + if (((bitField0_ & 0x02000000) != 0)) { + clusterEndpoints_ = java.util.Collections.unmodifiableList(clusterEndpoints_); + bitField0_ = (bitField0_ & ~0x02000000); + } + result.clusterEndpoints_ = clusterEndpoints_; + } else { + result.clusterEndpoints_ = clusterEndpointsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1beta1.Cluster result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.name_ = name_; + } + 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.state_ = state_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.uid_ = uid_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.replicaCount_ = replicaCount_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.authorizationMode_ = authorizationMode_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.transitEncryptionMode_ = transitEncryptionMode_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.sizeGb_ = sizeGb_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.shardCount_ = shardCount_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.stateInfo_ = stateInfoBuilder_ == null ? stateInfo_ : stateInfoBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.nodeType_ = nodeType_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.persistenceConfig_ = + persistenceConfigBuilder_ == null + ? persistenceConfig_ + : persistenceConfigBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.redisConfigs_ = internalGetRedisConfigs(); + result.redisConfigs_.makeImmutable(); + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.preciseSizeGb_ = preciseSizeGb_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.zoneDistributionConfig_ = + zoneDistributionConfigBuilder_ == null + ? zoneDistributionConfig_ + : zoneDistributionConfigBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.crossClusterReplicationConfig_ = + crossClusterReplicationConfigBuilder_ == null + ? crossClusterReplicationConfig_ + : crossClusterReplicationConfigBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.deletionProtectionEnabled_ = deletionProtectionEnabled_; + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.maintenancePolicy_ = + maintenancePolicyBuilder_ == null + ? maintenancePolicy_ + : maintenancePolicyBuilder_.build(); + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.maintenanceSchedule_ = + maintenanceScheduleBuilder_ == null + ? maintenanceSchedule_ + : maintenanceScheduleBuilder_.build(); + to_bitField0_ |= 0x00000800; + } + if (((from_bitField0_ & 0x04000000) != 0)) { + result.backupCollection_ = backupCollection_; + to_bitField0_ |= 0x00001000; + } + if (((from_bitField0_ & 0x08000000) != 0)) { + result.kmsKey_ = kmsKey_; + to_bitField0_ |= 0x00002000; + } + if (((from_bitField0_ & 0x10000000) != 0)) { + result.automatedBackupConfig_ = + automatedBackupConfigBuilder_ == null + ? automatedBackupConfig_ + : automatedBackupConfigBuilder_.build(); + to_bitField0_ |= 0x00004000; + } + if (((from_bitField0_ & 0x20000000) != 0)) { + result.encryptionInfo_ = + encryptionInfoBuilder_ == null ? encryptionInfo_ : encryptionInfoBuilder_.build(); + to_bitField0_ |= 0x00008000; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.redis.cluster.v1beta1.Cluster result) { + result.importSourcesCase_ = importSourcesCase_; + result.importSources_ = this.importSources_; + if (importSourcesCase_ == 34 && gcsSourceBuilder_ != null) { + result.importSources_ = gcsSourceBuilder_.build(); + } + if (importSourcesCase_ == 35 && managedBackupSourceBuilder_ != null) { + result.importSources_ = managedBackupSourceBuilder_.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.redis.cluster.v1beta1.Cluster) { + return mergeFrom((com.google.cloud.redis.cluster.v1beta1.Cluster) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1beta1.Cluster other) { + if (other == com.google.cloud.redis.cluster.v1beta1.Cluster.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasReplicaCount()) { + setReplicaCount(other.getReplicaCount()); + } + if (other.authorizationMode_ != 0) { + setAuthorizationModeValue(other.getAuthorizationModeValue()); + } + if (other.transitEncryptionMode_ != 0) { + setTransitEncryptionModeValue(other.getTransitEncryptionModeValue()); + } + if (other.hasSizeGb()) { + setSizeGb(other.getSizeGb()); + } + if (other.hasShardCount()) { + setShardCount(other.getShardCount()); + } + if (pscConfigsBuilder_ == null) { + if (!other.pscConfigs_.isEmpty()) { + if (pscConfigs_.isEmpty()) { + pscConfigs_ = other.pscConfigs_; + bitField0_ = (bitField0_ & ~0x00000800); + } else { + ensurePscConfigsIsMutable(); + pscConfigs_.addAll(other.pscConfigs_); + } + onChanged(); + } + } else { + if (!other.pscConfigs_.isEmpty()) { + if (pscConfigsBuilder_.isEmpty()) { + pscConfigsBuilder_.dispose(); + pscConfigsBuilder_ = null; + pscConfigs_ = other.pscConfigs_; + bitField0_ = (bitField0_ & ~0x00000800); + pscConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPscConfigsFieldBuilder() + : null; + } else { + pscConfigsBuilder_.addAllMessages(other.pscConfigs_); + } + } + } + if (discoveryEndpointsBuilder_ == null) { + if (!other.discoveryEndpoints_.isEmpty()) { + if (discoveryEndpoints_.isEmpty()) { + discoveryEndpoints_ = other.discoveryEndpoints_; + bitField0_ = (bitField0_ & ~0x00001000); + } else { + ensureDiscoveryEndpointsIsMutable(); + discoveryEndpoints_.addAll(other.discoveryEndpoints_); + } + onChanged(); + } + } else { + if (!other.discoveryEndpoints_.isEmpty()) { + if (discoveryEndpointsBuilder_.isEmpty()) { + discoveryEndpointsBuilder_.dispose(); + discoveryEndpointsBuilder_ = null; + discoveryEndpoints_ = other.discoveryEndpoints_; + bitField0_ = (bitField0_ & ~0x00001000); + discoveryEndpointsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDiscoveryEndpointsFieldBuilder() + : null; + } else { + discoveryEndpointsBuilder_.addAllMessages(other.discoveryEndpoints_); + } + } + } + if (pscConnectionsBuilder_ == null) { + if (!other.pscConnections_.isEmpty()) { + if (pscConnections_.isEmpty()) { + pscConnections_ = other.pscConnections_; + bitField0_ = (bitField0_ & ~0x00002000); + } else { + ensurePscConnectionsIsMutable(); + pscConnections_.addAll(other.pscConnections_); + } + onChanged(); + } + } else { + if (!other.pscConnections_.isEmpty()) { + if (pscConnectionsBuilder_.isEmpty()) { + pscConnectionsBuilder_.dispose(); + pscConnectionsBuilder_ = null; + pscConnections_ = other.pscConnections_; + bitField0_ = (bitField0_ & ~0x00002000); + pscConnectionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPscConnectionsFieldBuilder() + : null; + } else { + pscConnectionsBuilder_.addAllMessages(other.pscConnections_); + } + } + } + if (other.hasStateInfo()) { + mergeStateInfo(other.getStateInfo()); + } + if (other.nodeType_ != 0) { + setNodeTypeValue(other.getNodeTypeValue()); + } + if (other.hasPersistenceConfig()) { + mergePersistenceConfig(other.getPersistenceConfig()); + } + internalGetMutableRedisConfigs().mergeFrom(other.internalGetRedisConfigs()); + bitField0_ |= 0x00020000; + if (other.hasPreciseSizeGb()) { + setPreciseSizeGb(other.getPreciseSizeGb()); + } + if (other.hasZoneDistributionConfig()) { + mergeZoneDistributionConfig(other.getZoneDistributionConfig()); + } + if (other.hasCrossClusterReplicationConfig()) { + mergeCrossClusterReplicationConfig(other.getCrossClusterReplicationConfig()); + } + if (other.hasDeletionProtectionEnabled()) { + setDeletionProtectionEnabled(other.getDeletionProtectionEnabled()); + } + if (other.hasMaintenancePolicy()) { + mergeMaintenancePolicy(other.getMaintenancePolicy()); + } + if (other.hasMaintenanceSchedule()) { + mergeMaintenanceSchedule(other.getMaintenanceSchedule()); + } + if (pscServiceAttachmentsBuilder_ == null) { + if (!other.pscServiceAttachments_.isEmpty()) { + if (pscServiceAttachments_.isEmpty()) { + pscServiceAttachments_ = other.pscServiceAttachments_; + bitField0_ = (bitField0_ & ~0x01000000); + } else { + ensurePscServiceAttachmentsIsMutable(); + pscServiceAttachments_.addAll(other.pscServiceAttachments_); + } + onChanged(); + } + } else { + if (!other.pscServiceAttachments_.isEmpty()) { + if (pscServiceAttachmentsBuilder_.isEmpty()) { + pscServiceAttachmentsBuilder_.dispose(); + pscServiceAttachmentsBuilder_ = null; + pscServiceAttachments_ = other.pscServiceAttachments_; + bitField0_ = (bitField0_ & ~0x01000000); + pscServiceAttachmentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPscServiceAttachmentsFieldBuilder() + : null; + } else { + pscServiceAttachmentsBuilder_.addAllMessages(other.pscServiceAttachments_); + } + } + } + if (clusterEndpointsBuilder_ == null) { + if (!other.clusterEndpoints_.isEmpty()) { + if (clusterEndpoints_.isEmpty()) { + clusterEndpoints_ = other.clusterEndpoints_; + bitField0_ = (bitField0_ & ~0x02000000); + } else { + ensureClusterEndpointsIsMutable(); + clusterEndpoints_.addAll(other.clusterEndpoints_); + } + onChanged(); + } + } else { + if (!other.clusterEndpoints_.isEmpty()) { + if (clusterEndpointsBuilder_.isEmpty()) { + clusterEndpointsBuilder_.dispose(); + clusterEndpointsBuilder_ = null; + clusterEndpoints_ = other.clusterEndpoints_; + bitField0_ = (bitField0_ & ~0x02000000); + clusterEndpointsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getClusterEndpointsFieldBuilder() + : null; + } else { + clusterEndpointsBuilder_.addAllMessages(other.clusterEndpoints_); + } + } + } + if (other.hasBackupCollection()) { + backupCollection_ = other.backupCollection_; + bitField0_ |= 0x04000000; + onChanged(); + } + if (other.hasKmsKey()) { + kmsKey_ = other.kmsKey_; + bitField0_ |= 0x08000000; + onChanged(); + } + if (other.hasAutomatedBackupConfig()) { + mergeAutomatedBackupConfig(other.getAutomatedBackupConfig()); + } + if (other.hasEncryptionInfo()) { + mergeEncryptionInfo(other.getEncryptionInfo()); + } + switch (other.getImportSourcesCase()) { + case GCS_SOURCE: + { + mergeGcsSource(other.getGcsSource()); + break; + } + case MANAGED_BACKUP_SOURCE: + { + mergeManagedBackupSource(other.getManagedBackupSource()); + break; + } + case IMPORTSOURCES_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 26: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 32: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 32 + case 42: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 64: + { + replicaCount_ = input.readInt32(); + bitField0_ |= 0x00000040; + break; + } // case 64 + case 88: + { + authorizationMode_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 88 + case 96: + { + transitEncryptionMode_ = input.readEnum(); + bitField0_ |= 0x00000100; + break; + } // case 96 + case 104: + { + sizeGb_ = input.readInt32(); + bitField0_ |= 0x00000200; + break; + } // case 104 + case 112: + { + shardCount_ = input.readInt32(); + bitField0_ |= 0x00000400; + break; + } // case 112 + case 122: + { + com.google.cloud.redis.cluster.v1beta1.PscConfig m = + input.readMessage( + com.google.cloud.redis.cluster.v1beta1.PscConfig.parser(), + extensionRegistry); + if (pscConfigsBuilder_ == null) { + ensurePscConfigsIsMutable(); + pscConfigs_.add(m); + } else { + pscConfigsBuilder_.addMessage(m); + } + break; + } // case 122 + case 130: + { + com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint m = + input.readMessage( + com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint.parser(), + extensionRegistry); + if (discoveryEndpointsBuilder_ == null) { + ensureDiscoveryEndpointsIsMutable(); + discoveryEndpoints_.add(m); + } else { + discoveryEndpointsBuilder_.addMessage(m); + } + break; + } // case 130 + case 138: + { + com.google.cloud.redis.cluster.v1beta1.PscConnection m = + input.readMessage( + com.google.cloud.redis.cluster.v1beta1.PscConnection.parser(), + extensionRegistry); + if (pscConnectionsBuilder_ == null) { + ensurePscConnectionsIsMutable(); + pscConnections_.add(m); + } else { + pscConnectionsBuilder_.addMessage(m); + } + break; + } // case 138 + case 146: + { + input.readMessage(getStateInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 146 + case 152: + { + nodeType_ = input.readEnum(); + bitField0_ |= 0x00008000; + break; + } // case 152 + case 162: + { + input.readMessage( + getPersistenceConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 162 + case 170: + { + com.google.protobuf.MapEntry redisConfigs__ = + input.readMessage( + RedisConfigsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableRedisConfigs() + .getMutableMap() + .put(redisConfigs__.getKey(), redisConfigs__.getValue()); + bitField0_ |= 0x00020000; + break; + } // case 170 + case 177: + { + preciseSizeGb_ = input.readDouble(); + bitField0_ |= 0x00040000; + break; + } // case 177 + case 186: + { + input.readMessage( + getZoneDistributionConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00080000; + break; + } // case 186 + case 194: + { + input.readMessage( + getCrossClusterReplicationConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00100000; + break; + } // case 194 + case 200: + { + deletionProtectionEnabled_ = input.readBool(); + bitField0_ |= 0x00200000; + break; + } // case 200 + case 210: + { + input.readMessage( + getMaintenancePolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00400000; + break; + } // case 210 + case 218: + { + input.readMessage( + getMaintenanceScheduleFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00800000; + break; + } // case 218 + case 242: + { + com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment m = + input.readMessage( + com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment.parser(), + extensionRegistry); + if (pscServiceAttachmentsBuilder_ == null) { + ensurePscServiceAttachmentsIsMutable(); + pscServiceAttachments_.add(m); + } else { + pscServiceAttachmentsBuilder_.addMessage(m); + } + break; + } // case 242 + case 274: + { + input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); + importSourcesCase_ = 34; + break; + } // case 274 + case 282: + { + input.readMessage( + getManagedBackupSourceFieldBuilder().getBuilder(), extensionRegistry); + importSourcesCase_ = 35; + break; + } // case 282 + case 290: + { + com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint m = + input.readMessage( + com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint.parser(), + extensionRegistry); + if (clusterEndpointsBuilder_ == null) { + ensureClusterEndpointsIsMutable(); + clusterEndpoints_.add(m); + } else { + clusterEndpointsBuilder_.addMessage(m); + } + break; + } // case 290 + case 314: + { + backupCollection_ = input.readStringRequireUtf8(); + bitField0_ |= 0x04000000; + break; + } // case 314 + case 322: + { + kmsKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x08000000; + break; + } // case 322 + case 338: + { + input.readMessage( + getAutomatedBackupConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x10000000; + break; + } // case 338 + case 346: + { + input.readMessage(getEncryptionInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x20000000; + break; + } // case 346 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int importSourcesCase_ = 0; + private java.lang.Object importSources_; + + public ImportSourcesCase getImportSourcesCase() { + return ImportSourcesCase.forNumber(importSourcesCase_); + } + + public Builder clearImportSources() { + importSourcesCase_ = 0; + importSources_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource, + com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource.Builder, + com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSourceOrBuilder> + gcsSourceBuilder_; + /** + * + * + *
    +     * Optional. Backups stored in Cloud Storage buckets.
    +     * The Cloud Storage buckets need to be the same region as the clusters.
    +     * Read permission is required to import from the provided Cloud Storage
    +     * objects.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource gcs_source = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gcsSource field is set. + */ + @java.lang.Override + public boolean hasGcsSource() { + return importSourcesCase_ == 34; + } + /** + * + * + *
    +     * Optional. Backups stored in Cloud Storage buckets.
    +     * The Cloud Storage buckets need to be the same region as the clusters.
    +     * Read permission is required to import from the provided Cloud Storage
    +     * objects.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource gcs_source = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gcsSource. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource getGcsSource() { + if (gcsSourceBuilder_ == null) { + if (importSourcesCase_ == 34) { + return (com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource) importSources_; + } + return com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource.getDefaultInstance(); + } else { + if (importSourcesCase_ == 34) { + return gcsSourceBuilder_.getMessage(); + } + return com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Optional. Backups stored in Cloud Storage buckets.
    +     * The Cloud Storage buckets need to be the same region as the clusters.
    +     * Read permission is required to import from the provided Cloud Storage
    +     * objects.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource gcs_source = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGcsSource( + com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource value) { + if (gcsSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + importSources_ = value; + onChanged(); + } else { + gcsSourceBuilder_.setMessage(value); + } + importSourcesCase_ = 34; + return this; + } + /** + * + * + *
    +     * Optional. Backups stored in Cloud Storage buckets.
    +     * The Cloud Storage buckets need to be the same region as the clusters.
    +     * Read permission is required to import from the provided Cloud Storage
    +     * objects.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource gcs_source = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGcsSource( + com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource.Builder builderForValue) { + if (gcsSourceBuilder_ == null) { + importSources_ = builderForValue.build(); + onChanged(); + } else { + gcsSourceBuilder_.setMessage(builderForValue.build()); + } + importSourcesCase_ = 34; + return this; + } + /** + * + * + *
    +     * Optional. Backups stored in Cloud Storage buckets.
    +     * The Cloud Storage buckets need to be the same region as the clusters.
    +     * Read permission is required to import from the provided Cloud Storage
    +     * objects.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource gcs_source = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeGcsSource( + com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource value) { + if (gcsSourceBuilder_ == null) { + if (importSourcesCase_ == 34 + && importSources_ + != com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource + .getDefaultInstance()) { + importSources_ = + com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource.newBuilder( + (com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource) + importSources_) + .mergeFrom(value) + .buildPartial(); + } else { + importSources_ = value; + } + onChanged(); + } else { + if (importSourcesCase_ == 34) { + gcsSourceBuilder_.mergeFrom(value); + } else { + gcsSourceBuilder_.setMessage(value); + } + } + importSourcesCase_ = 34; + return this; + } + /** + * + * + *
    +     * Optional. Backups stored in Cloud Storage buckets.
    +     * The Cloud Storage buckets need to be the same region as the clusters.
    +     * Read permission is required to import from the provided Cloud Storage
    +     * objects.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource gcs_source = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGcsSource() { + if (gcsSourceBuilder_ == null) { + if (importSourcesCase_ == 34) { + importSourcesCase_ = 0; + importSources_ = null; + onChanged(); + } + } else { + if (importSourcesCase_ == 34) { + importSourcesCase_ = 0; + importSources_ = null; + } + gcsSourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * Optional. Backups stored in Cloud Storage buckets.
    +     * The Cloud Storage buckets need to be the same region as the clusters.
    +     * Read permission is required to import from the provided Cloud Storage
    +     * objects.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource gcs_source = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource.Builder + getGcsSourceBuilder() { + return getGcsSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Optional. Backups stored in Cloud Storage buckets.
    +     * The Cloud Storage buckets need to be the same region as the clusters.
    +     * Read permission is required to import from the provided Cloud Storage
    +     * objects.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource gcs_source = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSourceOrBuilder + getGcsSourceOrBuilder() { + if ((importSourcesCase_ == 34) && (gcsSourceBuilder_ != null)) { + return gcsSourceBuilder_.getMessageOrBuilder(); + } else { + if (importSourcesCase_ == 34) { + return (com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource) importSources_; + } + return com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Optional. Backups stored in Cloud Storage buckets.
    +     * The Cloud Storage buckets need to be the same region as the clusters.
    +     * Read permission is required to import from the provided Cloud Storage
    +     * objects.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource gcs_source = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource, + com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource.Builder, + com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSourceOrBuilder> + getGcsSourceFieldBuilder() { + if (gcsSourceBuilder_ == null) { + if (!(importSourcesCase_ == 34)) { + importSources_ = + com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource.getDefaultInstance(); + } + gcsSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource, + com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource.Builder, + com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSourceOrBuilder>( + (com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource) importSources_, + getParentForChildren(), + isClean()); + importSources_ = null; + } + importSourcesCase_ = 34; + onChanged(); + return gcsSourceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource, + com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource.Builder, + com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSourceOrBuilder> + managedBackupSourceBuilder_; + /** + * + * + *
    +     * Optional. Backups generated and managed by memorystore service.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource managed_backup_source = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the managedBackupSource field is set. + */ + @java.lang.Override + public boolean hasManagedBackupSource() { + return importSourcesCase_ == 35; + } + /** + * + * + *
    +     * Optional. Backups generated and managed by memorystore service.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource managed_backup_source = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The managedBackupSource. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource + getManagedBackupSource() { + if (managedBackupSourceBuilder_ == null) { + if (importSourcesCase_ == 35) { + return (com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource) + importSources_; + } + return com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource + .getDefaultInstance(); + } else { + if (importSourcesCase_ == 35) { + return managedBackupSourceBuilder_.getMessage(); + } + return com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource + .getDefaultInstance(); + } + } + /** + * + * + *
    +     * Optional. Backups generated and managed by memorystore service.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource managed_backup_source = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setManagedBackupSource( + com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource value) { + if (managedBackupSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + importSources_ = value; + onChanged(); + } else { + managedBackupSourceBuilder_.setMessage(value); + } + importSourcesCase_ = 35; + return this; + } + /** + * + * + *
    +     * Optional. Backups generated and managed by memorystore service.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource managed_backup_source = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setManagedBackupSource( + com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource.Builder + builderForValue) { + if (managedBackupSourceBuilder_ == null) { + importSources_ = builderForValue.build(); + onChanged(); + } else { + managedBackupSourceBuilder_.setMessage(builderForValue.build()); + } + importSourcesCase_ = 35; + return this; + } + /** + * + * + *
    +     * Optional. Backups generated and managed by memorystore service.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource managed_backup_source = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeManagedBackupSource( + com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource value) { + if (managedBackupSourceBuilder_ == null) { + if (importSourcesCase_ == 35 + && importSources_ + != com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource + .getDefaultInstance()) { + importSources_ = + com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource.newBuilder( + (com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource) + importSources_) + .mergeFrom(value) + .buildPartial(); + } else { + importSources_ = value; + } + onChanged(); + } else { + if (importSourcesCase_ == 35) { + managedBackupSourceBuilder_.mergeFrom(value); + } else { + managedBackupSourceBuilder_.setMessage(value); + } + } + importSourcesCase_ = 35; + return this; + } + /** + * + * + *
    +     * Optional. Backups generated and managed by memorystore service.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource managed_backup_source = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearManagedBackupSource() { + if (managedBackupSourceBuilder_ == null) { + if (importSourcesCase_ == 35) { + importSourcesCase_ = 0; + importSources_ = null; + onChanged(); + } + } else { + if (importSourcesCase_ == 35) { + importSourcesCase_ = 0; + importSources_ = null; + } + managedBackupSourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * Optional. Backups generated and managed by memorystore service.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource managed_backup_source = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource.Builder + getManagedBackupSourceBuilder() { + return getManagedBackupSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Optional. Backups generated and managed by memorystore service.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource managed_backup_source = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSourceOrBuilder + getManagedBackupSourceOrBuilder() { + if ((importSourcesCase_ == 35) && (managedBackupSourceBuilder_ != null)) { + return managedBackupSourceBuilder_.getMessageOrBuilder(); + } else { + if (importSourcesCase_ == 35) { + return (com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource) + importSources_; + } + return com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource + .getDefaultInstance(); + } + } + /** + * + * + *
    +     * Optional. Backups generated and managed by memorystore service.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource managed_backup_source = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource, + com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource.Builder, + com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSourceOrBuilder> + getManagedBackupSourceFieldBuilder() { + if (managedBackupSourceBuilder_ == null) { + if (!(importSourcesCase_ == 35)) { + importSources_ = + com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource + .getDefaultInstance(); + } + managedBackupSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource, + com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource.Builder, + com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSourceOrBuilder>( + (com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource) importSources_, + getParentForChildren(), + isClean()); + importSources_ = null; + } + importSourcesCase_ = 35; + onChanged(); + return managedBackupSourceBuilder_; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
    +     * Required. Identifier. Unique name of the resource in this scope including
    +     * project and location using the form:
    +     *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @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. Identifier. Unique name of the resource in this scope including
    +     * project and location using the form:
    +     *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @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. Identifier. Unique name of the resource in this scope including
    +     * project and location using the form:
    +     *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Identifier. Unique name of the resource in this scope including
    +     * project and location using the form:
    +     *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Identifier. Unique name of the resource in this scope including
    +     * project and location using the form:
    +     *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } - @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_); + 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. The timestamp associated with the cluster creation request.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000008) != 0); } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getCreateTime()); + /** + * + * + *
    +     * Output only. The timestamp associated with the cluster creation request.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.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(); + } } - if (state_ - != com.google.cloud.redis.cluster.v1beta1.Cluster.State.STATE_UNSPECIFIED.getNumber()) { - output.writeEnum(4, state_); + /** + * + * + *
    +     * Output only. The timestamp associated with the cluster creation request.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.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; } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, uid_); + /** + * + * + *
    +     * Output only. The timestamp associated with the cluster creation request.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.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; } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeInt32(8, replicaCount_); + /** + * + * + *
    +     * Output only. The timestamp associated with the cluster creation request.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.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; } - if (authorizationMode_ - != com.google.cloud.redis.cluster.v1beta1.AuthorizationMode.AUTH_MODE_UNSPECIFIED - .getNumber()) { - output.writeEnum(11, authorizationMode_); + /** + * + * + *
    +     * Output only. The timestamp associated with the cluster creation request.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; } - if (transitEncryptionMode_ - != com.google.cloud.redis.cluster.v1beta1.TransitEncryptionMode - .TRANSIT_ENCRYPTION_MODE_UNSPECIFIED - .getNumber()) { - output.writeEnum(12, transitEncryptionMode_); + /** + * + * + *
    +     * Output only. The timestamp associated with the cluster creation request.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeInt32(13, sizeGb_); + /** + * + * + *
    +     * Output only. The timestamp associated with the cluster creation request.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.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_; + } } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeInt32(14, shardCount_); + /** + * + * + *
    +     * Output only. The timestamp associated with the cluster creation request.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 3 [(.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 int state_ = 0; + /** + * + * + *
    +     * Output only. The current state of this cluster.
    +     * Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Cluster.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; } - for (int i = 0; i < pscConfigs_.size(); i++) { - output.writeMessage(15, pscConfigs_.get(i)); + /** + * + * + *
    +     * Output only. The current state of this cluster.
    +     * Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Cluster.State state = 4 [(.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_ |= 0x00000010; + onChanged(); + return this; } - for (int i = 0; i < discoveryEndpoints_.size(); i++) { - output.writeMessage(16, discoveryEndpoints_.get(i)); + /** + * + * + *
    +     * Output only. The current state of this cluster.
    +     * Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Cluster.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.Cluster.State getState() { + com.google.cloud.redis.cluster.v1beta1.Cluster.State result = + com.google.cloud.redis.cluster.v1beta1.Cluster.State.forNumber(state_); + return result == null + ? com.google.cloud.redis.cluster.v1beta1.Cluster.State.UNRECOGNIZED + : result; } - for (int i = 0; i < pscConnections_.size(); i++) { - output.writeMessage(17, pscConnections_.get(i)); + /** + * + * + *
    +     * Output only. The current state of this cluster.
    +     * Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Cluster.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.redis.cluster.v1beta1.Cluster.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + state_ = value.getNumber(); + onChanged(); + return this; } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeMessage(18, getStateInfo()); + /** + * + * + *
    +     * Output only. The current state of this cluster.
    +     * Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Cluster.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000010); + state_ = 0; + onChanged(); + return this; } - if (nodeType_ - != com.google.cloud.redis.cluster.v1beta1.NodeType.NODE_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(19, nodeType_); + + private java.lang.Object uid_ = ""; + /** + * + * + *
    +     * Output only. System assigned, unique identifier for the cluster.
    +     * 
    + * + * string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeMessage(20, getPersistenceConfig()); + /** + * + * + *
    +     * Output only. System assigned, unique identifier for the cluster.
    +     * 
    + * + * string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetRedisConfigs(), RedisConfigsDefaultEntryHolder.defaultEntry, 21); - if (((bitField0_ & 0x00000040) != 0)) { - output.writeDouble(22, preciseSizeGb_); + /** + * + * + *
    +     * Output only. System assigned, unique identifier for the cluster.
    +     * 
    + * + * string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uid_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; } - if (((bitField0_ & 0x00000080) != 0)) { - output.writeMessage(23, getZoneDistributionConfig()); + /** + * + * + *
    +     * Output only. System assigned, unique identifier for the cluster.
    +     * 
    + * + * string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; } - if (((bitField0_ & 0x00000100) != 0)) { - output.writeBool(25, deletionProtectionEnabled_); + /** + * + * + *
    +     * Output only. System assigned, unique identifier for the cluster.
    +     * 
    + * + * string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); - } - if (state_ - != com.google.cloud.redis.cluster.v1beta1.Cluster.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, uid_); + private int replicaCount_; + /** + * + * + *
    +     * Optional. The number of replica nodes per shard.
    +     * 
    + * + * optional int32 replica_count = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the replicaCount field is set. + */ + @java.lang.Override + public boolean hasReplicaCount() { + return ((bitField0_ & 0x00000040) != 0); } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, replicaCount_); + /** + * + * + *
    +     * Optional. The number of replica nodes per shard.
    +     * 
    + * + * optional int32 replica_count = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The replicaCount. + */ + @java.lang.Override + public int getReplicaCount() { + return replicaCount_; } - if (authorizationMode_ - != com.google.cloud.redis.cluster.v1beta1.AuthorizationMode.AUTH_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, authorizationMode_); + /** + * + * + *
    +     * Optional. The number of replica nodes per shard.
    +     * 
    + * + * optional int32 replica_count = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The replicaCount to set. + * @return This builder for chaining. + */ + public Builder setReplicaCount(int value) { + + replicaCount_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; } - if (transitEncryptionMode_ - != com.google.cloud.redis.cluster.v1beta1.TransitEncryptionMode - .TRANSIT_ENCRYPTION_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, transitEncryptionMode_); + /** + * + * + *
    +     * Optional. The number of replica nodes per shard.
    +     * 
    + * + * optional int32 replica_count = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearReplicaCount() { + bitField0_ = (bitField0_ & ~0x00000040); + replicaCount_ = 0; + onChanged(); + return this; } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(13, sizeGb_); + + private int authorizationMode_ = 0; + /** + * + * + *
    +     * Optional. The authorization mode of the Redis cluster.
    +     * If not provided, auth feature is disabled for the cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.AuthorizationMode authorization_mode = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for authorizationMode. + */ + @java.lang.Override + public int getAuthorizationModeValue() { + return authorizationMode_; } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(14, shardCount_); + /** + * + * + *
    +     * Optional. The authorization mode of the Redis cluster.
    +     * If not provided, auth feature is disabled for the cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.AuthorizationMode authorization_mode = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for authorizationMode to set. + * @return This builder for chaining. + */ + public Builder setAuthorizationModeValue(int value) { + authorizationMode_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; } - for (int i = 0; i < pscConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, pscConfigs_.get(i)); + /** + * + * + *
    +     * Optional. The authorization mode of the Redis cluster.
    +     * If not provided, auth feature is disabled for the cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.AuthorizationMode authorization_mode = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The authorizationMode. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.AuthorizationMode getAuthorizationMode() { + com.google.cloud.redis.cluster.v1beta1.AuthorizationMode result = + com.google.cloud.redis.cluster.v1beta1.AuthorizationMode.forNumber(authorizationMode_); + return result == null + ? com.google.cloud.redis.cluster.v1beta1.AuthorizationMode.UNRECOGNIZED + : result; } - for (int i = 0; i < discoveryEndpoints_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(16, discoveryEndpoints_.get(i)); + /** + * + * + *
    +     * Optional. The authorization mode of the Redis cluster.
    +     * If not provided, auth feature is disabled for the cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.AuthorizationMode authorization_mode = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The authorizationMode to set. + * @return This builder for chaining. + */ + public Builder setAuthorizationMode( + com.google.cloud.redis.cluster.v1beta1.AuthorizationMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + authorizationMode_ = value.getNumber(); + onChanged(); + return this; } - for (int i = 0; i < pscConnections_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, pscConnections_.get(i)); + /** + * + * + *
    +     * Optional. The authorization mode of the Redis cluster.
    +     * If not provided, auth feature is disabled for the cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.AuthorizationMode authorization_mode = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAuthorizationMode() { + bitField0_ = (bitField0_ & ~0x00000080); + authorizationMode_ = 0; + onChanged(); + return this; } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getStateInfo()); + + private int transitEncryptionMode_ = 0; + /** + * + * + *
    +     * Optional. The in-transit encryption for the Redis cluster.
    +     * If not provided, encryption  is disabled for the cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.TransitEncryptionMode transit_encryption_mode = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for transitEncryptionMode. + */ + @java.lang.Override + public int getTransitEncryptionModeValue() { + return transitEncryptionMode_; } - if (nodeType_ - != com.google.cloud.redis.cluster.v1beta1.NodeType.NODE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(19, nodeType_); + /** + * + * + *
    +     * Optional. The in-transit encryption for the Redis cluster.
    +     * If not provided, encryption  is disabled for the cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.TransitEncryptionMode transit_encryption_mode = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for transitEncryptionMode to set. + * @return This builder for chaining. + */ + public Builder setTransitEncryptionModeValue(int value) { + transitEncryptionMode_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getPersistenceConfig()); + /** + * + * + *
    +     * Optional. The in-transit encryption for the Redis cluster.
    +     * If not provided, encryption  is disabled for the cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.TransitEncryptionMode transit_encryption_mode = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The transitEncryptionMode. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.TransitEncryptionMode getTransitEncryptionMode() { + com.google.cloud.redis.cluster.v1beta1.TransitEncryptionMode result = + com.google.cloud.redis.cluster.v1beta1.TransitEncryptionMode.forNumber( + transitEncryptionMode_); + return result == null + ? com.google.cloud.redis.cluster.v1beta1.TransitEncryptionMode.UNRECOGNIZED + : result; } - for (java.util.Map.Entry entry : - internalGetRedisConfigs().getMap().entrySet()) { - com.google.protobuf.MapEntry redisConfigs__ = - RedisConfigsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, redisConfigs__); + /** + * + * + *
    +     * Optional. The in-transit encryption for the Redis cluster.
    +     * If not provided, encryption  is disabled for the cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.TransitEncryptionMode transit_encryption_mode = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The transitEncryptionMode to set. + * @return This builder for chaining. + */ + public Builder setTransitEncryptionMode( + com.google.cloud.redis.cluster.v1beta1.TransitEncryptionMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; + transitEncryptionMode_ = value.getNumber(); + onChanged(); + return this; } - if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(22, preciseSizeGb_); + /** + * + * + *
    +     * Optional. The in-transit encryption for the Redis cluster.
    +     * If not provided, encryption  is disabled for the cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.TransitEncryptionMode transit_encryption_mode = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearTransitEncryptionMode() { + bitField0_ = (bitField0_ & ~0x00000100); + transitEncryptionMode_ = 0; + onChanged(); + return this; } - if (((bitField0_ & 0x00000080) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(23, getZoneDistributionConfig()); + + private int sizeGb_; + /** + * + * + *
    +     * Output only. Redis memory size in GB for the entire cluster rounded up to
    +     * the next integer.
    +     * 
    + * + * optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the sizeGb field is set. + */ + @java.lang.Override + public boolean hasSizeGb() { + return ((bitField0_ & 0x00000200) != 0); } - if (((bitField0_ & 0x00000100) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(25, deletionProtectionEnabled_); + /** + * + * + *
    +     * Output only. Redis memory size in GB for the entire cluster rounded up to
    +     * the next integer.
    +     * 
    + * + * optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sizeGb. + */ + @java.lang.Override + public int getSizeGb() { + return sizeGb_; } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * + * + *
    +     * Output only. Redis memory size in GB for the entire cluster rounded up to
    +     * the next integer.
    +     * 
    + * + * optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The sizeGb to set. + * @return This builder for chaining. + */ + public Builder setSizeGb(int value) { - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + sizeGb_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; } - if (!(obj instanceof com.google.cloud.redis.cluster.v1beta1.Cluster)) { - return super.equals(obj); + /** + * + * + *
    +     * Output only. Redis memory size in GB for the entire cluster rounded up to
    +     * the next integer.
    +     * 
    + * + * optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSizeGb() { + bitField0_ = (bitField0_ & ~0x00000200); + sizeGb_ = 0; + onChanged(); + return this; } - com.google.cloud.redis.cluster.v1beta1.Cluster other = - (com.google.cloud.redis.cluster.v1beta1.Cluster) obj; - if (!getName().equals(other.getName())) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + private int shardCount_; + /** + * + * + *
    +     * Optional. Number of shards for the Redis cluster.
    +     * 
    + * + * optional int32 shard_count = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the shardCount field is set. + */ + @java.lang.Override + public boolean hasShardCount() { + return ((bitField0_ & 0x00000400) != 0); } - if (state_ != other.state_) return false; - if (!getUid().equals(other.getUid())) return false; - if (hasReplicaCount() != other.hasReplicaCount()) return false; - if (hasReplicaCount()) { - if (getReplicaCount() != other.getReplicaCount()) return false; + /** + * + * + *
    +     * Optional. Number of shards for the Redis cluster.
    +     * 
    + * + * optional int32 shard_count = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The shardCount. + */ + @java.lang.Override + public int getShardCount() { + return shardCount_; } - if (authorizationMode_ != other.authorizationMode_) return false; - if (transitEncryptionMode_ != other.transitEncryptionMode_) return false; - if (hasSizeGb() != other.hasSizeGb()) return false; - if (hasSizeGb()) { - if (getSizeGb() != other.getSizeGb()) return false; + /** + * + * + *
    +     * Optional. Number of shards for the Redis cluster.
    +     * 
    + * + * optional int32 shard_count = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The shardCount to set. + * @return This builder for chaining. + */ + public Builder setShardCount(int value) { + + shardCount_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; } - if (hasShardCount() != other.hasShardCount()) return false; - if (hasShardCount()) { - if (getShardCount() != other.getShardCount()) return false; + /** + * + * + *
    +     * Optional. Number of shards for the Redis cluster.
    +     * 
    + * + * optional int32 shard_count = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearShardCount() { + bitField0_ = (bitField0_ & ~0x00000400); + shardCount_ = 0; + onChanged(); + return this; } - if (!getPscConfigsList().equals(other.getPscConfigsList())) return false; - if (!getDiscoveryEndpointsList().equals(other.getDiscoveryEndpointsList())) return false; - if (!getPscConnectionsList().equals(other.getPscConnectionsList())) return false; - if (hasStateInfo() != other.hasStateInfo()) return false; - if (hasStateInfo()) { - if (!getStateInfo().equals(other.getStateInfo())) return false; + + private java.util.List pscConfigs_ = + java.util.Collections.emptyList(); + + private void ensurePscConfigsIsMutable() { + if (!((bitField0_ & 0x00000800) != 0)) { + pscConfigs_ = + new java.util.ArrayList(pscConfigs_); + bitField0_ |= 0x00000800; + } } - if (nodeType_ != other.nodeType_) return false; - if (hasPersistenceConfig() != other.hasPersistenceConfig()) return false; - if (hasPersistenceConfig()) { - if (!getPersistenceConfig().equals(other.getPersistenceConfig())) return false; + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.PscConfig, + com.google.cloud.redis.cluster.v1beta1.PscConfig.Builder, + com.google.cloud.redis.cluster.v1beta1.PscConfigOrBuilder> + pscConfigsBuilder_; + + /** + * + * + *
    +     * Optional. Each PscConfig configures the consumer network where IPs will
    +     * be designated to the cluster for client access through Private Service
    +     * Connect Automation. Currently, only one PscConfig is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getPscConfigsList() { + if (pscConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(pscConfigs_); + } else { + return pscConfigsBuilder_.getMessageList(); + } } - if (!internalGetRedisConfigs().equals(other.internalGetRedisConfigs())) return false; - if (hasPreciseSizeGb() != other.hasPreciseSizeGb()) return false; - if (hasPreciseSizeGb()) { - if (java.lang.Double.doubleToLongBits(getPreciseSizeGb()) - != java.lang.Double.doubleToLongBits(other.getPreciseSizeGb())) return false; + /** + * + * + *
    +     * Optional. Each PscConfig configures the consumer network where IPs will
    +     * be designated to the cluster for client access through Private Service
    +     * Connect Automation. Currently, only one PscConfig is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getPscConfigsCount() { + if (pscConfigsBuilder_ == null) { + return pscConfigs_.size(); + } else { + return pscConfigsBuilder_.getCount(); + } } - if (hasZoneDistributionConfig() != other.hasZoneDistributionConfig()) return false; - if (hasZoneDistributionConfig()) { - if (!getZoneDistributionConfig().equals(other.getZoneDistributionConfig())) return false; + /** + * + * + *
    +     * Optional. Each PscConfig configures the consumer network where IPs will
    +     * be designated to the cluster for client access through Private Service
    +     * Connect Automation. Currently, only one PscConfig is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.PscConfig getPscConfigs(int index) { + if (pscConfigsBuilder_ == null) { + return pscConfigs_.get(index); + } else { + return pscConfigsBuilder_.getMessage(index); + } } - if (hasDeletionProtectionEnabled() != other.hasDeletionProtectionEnabled()) return false; - if (hasDeletionProtectionEnabled()) { - if (getDeletionProtectionEnabled() != other.getDeletionProtectionEnabled()) return false; + /** + * + * + *
    +     * Optional. Each PscConfig configures the consumer network where IPs will
    +     * be designated to the cluster for client access through Private Service
    +     * Connect Automation. Currently, only one PscConfig is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPscConfigs( + int index, com.google.cloud.redis.cluster.v1beta1.PscConfig value) { + if (pscConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePscConfigsIsMutable(); + pscConfigs_.set(index, value); + onChanged(); + } else { + pscConfigsBuilder_.setMessage(index, value); + } + return this; } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + /** + * + * + *
    +     * Optional. Each PscConfig configures the consumer network where IPs will
    +     * be designated to the cluster for client access through Private Service
    +     * Connect Automation. Currently, only one PscConfig is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPscConfigs( + int index, com.google.cloud.redis.cluster.v1beta1.PscConfig.Builder builderForValue) { + if (pscConfigsBuilder_ == null) { + ensurePscConfigsIsMutable(); + pscConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + pscConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); + /** + * + * + *
    +     * Optional. Each PscConfig configures the consumer network where IPs will
    +     * be designated to the cluster for client access through Private Service
    +     * Connect Automation. Currently, only one PscConfig is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPscConfigs(com.google.cloud.redis.cluster.v1beta1.PscConfig value) { + if (pscConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePscConfigsIsMutable(); + pscConfigs_.add(value); + onChanged(); + } else { + pscConfigsBuilder_.addMessage(value); + } + return this; } - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (37 * hash) + UID_FIELD_NUMBER; - hash = (53 * hash) + getUid().hashCode(); - if (hasReplicaCount()) { - hash = (37 * hash) + REPLICA_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getReplicaCount(); + /** + * + * + *
    +     * Optional. Each PscConfig configures the consumer network where IPs will
    +     * be designated to the cluster for client access through Private Service
    +     * Connect Automation. Currently, only one PscConfig is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPscConfigs( + int index, com.google.cloud.redis.cluster.v1beta1.PscConfig value) { + if (pscConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePscConfigsIsMutable(); + pscConfigs_.add(index, value); + onChanged(); + } else { + pscConfigsBuilder_.addMessage(index, value); + } + return this; } - hash = (37 * hash) + AUTHORIZATION_MODE_FIELD_NUMBER; - hash = (53 * hash) + authorizationMode_; - hash = (37 * hash) + TRANSIT_ENCRYPTION_MODE_FIELD_NUMBER; - hash = (53 * hash) + transitEncryptionMode_; - if (hasSizeGb()) { - hash = (37 * hash) + SIZE_GB_FIELD_NUMBER; - hash = (53 * hash) + getSizeGb(); + /** + * + * + *
    +     * Optional. Each PscConfig configures the consumer network where IPs will
    +     * be designated to the cluster for client access through Private Service
    +     * Connect Automation. Currently, only one PscConfig is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPscConfigs( + com.google.cloud.redis.cluster.v1beta1.PscConfig.Builder builderForValue) { + if (pscConfigsBuilder_ == null) { + ensurePscConfigsIsMutable(); + pscConfigs_.add(builderForValue.build()); + onChanged(); + } else { + pscConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; } - if (hasShardCount()) { - hash = (37 * hash) + SHARD_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getShardCount(); + /** + * + * + *
    +     * Optional. Each PscConfig configures the consumer network where IPs will
    +     * be designated to the cluster for client access through Private Service
    +     * Connect Automation. Currently, only one PscConfig is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPscConfigs( + int index, com.google.cloud.redis.cluster.v1beta1.PscConfig.Builder builderForValue) { + if (pscConfigsBuilder_ == null) { + ensurePscConfigsIsMutable(); + pscConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + pscConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; } - if (getPscConfigsCount() > 0) { - hash = (37 * hash) + PSC_CONFIGS_FIELD_NUMBER; - hash = (53 * hash) + getPscConfigsList().hashCode(); + /** + * + * + *
    +     * Optional. Each PscConfig configures the consumer network where IPs will
    +     * be designated to the cluster for client access through Private Service
    +     * Connect Automation. Currently, only one PscConfig is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllPscConfigs( + java.lang.Iterable values) { + if (pscConfigsBuilder_ == null) { + ensurePscConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pscConfigs_); + onChanged(); + } else { + pscConfigsBuilder_.addAllMessages(values); + } + return this; } - if (getDiscoveryEndpointsCount() > 0) { - hash = (37 * hash) + DISCOVERY_ENDPOINTS_FIELD_NUMBER; - hash = (53 * hash) + getDiscoveryEndpointsList().hashCode(); + /** + * + * + *
    +     * Optional. Each PscConfig configures the consumer network where IPs will
    +     * be designated to the cluster for client access through Private Service
    +     * Connect Automation. Currently, only one PscConfig is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPscConfigs() { + if (pscConfigsBuilder_ == null) { + pscConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + } else { + pscConfigsBuilder_.clear(); + } + return this; } - if (getPscConnectionsCount() > 0) { - hash = (37 * hash) + PSC_CONNECTIONS_FIELD_NUMBER; - hash = (53 * hash) + getPscConnectionsList().hashCode(); + /** + * + * + *
    +     * Optional. Each PscConfig configures the consumer network where IPs will
    +     * be designated to the cluster for client access through Private Service
    +     * Connect Automation. Currently, only one PscConfig is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removePscConfigs(int index) { + if (pscConfigsBuilder_ == null) { + ensurePscConfigsIsMutable(); + pscConfigs_.remove(index); + onChanged(); + } else { + pscConfigsBuilder_.remove(index); + } + return this; } - if (hasStateInfo()) { - hash = (37 * hash) + STATE_INFO_FIELD_NUMBER; - hash = (53 * hash) + getStateInfo().hashCode(); + /** + * + * + *
    +     * Optional. Each PscConfig configures the consumer network where IPs will
    +     * be designated to the cluster for client access through Private Service
    +     * Connect Automation. Currently, only one PscConfig is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.PscConfig.Builder getPscConfigsBuilder( + int index) { + return getPscConfigsFieldBuilder().getBuilder(index); } - hash = (37 * hash) + NODE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + nodeType_; - if (hasPersistenceConfig()) { - hash = (37 * hash) + PERSISTENCE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getPersistenceConfig().hashCode(); + /** + * + * + *
    +     * Optional. Each PscConfig configures the consumer network where IPs will
    +     * be designated to the cluster for client access through Private Service
    +     * Connect Automation. Currently, only one PscConfig is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.PscConfigOrBuilder getPscConfigsOrBuilder( + int index) { + if (pscConfigsBuilder_ == null) { + return pscConfigs_.get(index); + } else { + return pscConfigsBuilder_.getMessageOrBuilder(index); + } } - if (!internalGetRedisConfigs().getMap().isEmpty()) { - hash = (37 * hash) + REDIS_CONFIGS_FIELD_NUMBER; - hash = (53 * hash) + internalGetRedisConfigs().hashCode(); + /** + * + * + *
    +     * Optional. Each PscConfig configures the consumer network where IPs will
    +     * be designated to the cluster for client access through Private Service
    +     * Connect Automation. Currently, only one PscConfig is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getPscConfigsOrBuilderList() { + if (pscConfigsBuilder_ != null) { + return pscConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(pscConfigs_); + } } - if (hasPreciseSizeGb()) { - hash = (37 * hash) + PRECISE_SIZE_GB_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getPreciseSizeGb())); + /** + * + * + *
    +     * Optional. Each PscConfig configures the consumer network where IPs will
    +     * be designated to the cluster for client access through Private Service
    +     * Connect Automation. Currently, only one PscConfig is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.PscConfig.Builder addPscConfigsBuilder() { + return getPscConfigsFieldBuilder() + .addBuilder(com.google.cloud.redis.cluster.v1beta1.PscConfig.getDefaultInstance()); } - if (hasZoneDistributionConfig()) { - hash = (37 * hash) + ZONE_DISTRIBUTION_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getZoneDistributionConfig().hashCode(); + /** + * + * + *
    +     * Optional. Each PscConfig configures the consumer network where IPs will
    +     * be designated to the cluster for client access through Private Service
    +     * Connect Automation. Currently, only one PscConfig is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.PscConfig.Builder addPscConfigsBuilder( + int index) { + return getPscConfigsFieldBuilder() + .addBuilder(index, com.google.cloud.redis.cluster.v1beta1.PscConfig.getDefaultInstance()); } - if (hasDeletionProtectionEnabled()) { - hash = (37 * hash) + DELETION_PROTECTION_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeletionProtectionEnabled()); + /** + * + * + *
    +     * Optional. Each PscConfig configures the consumer network where IPs will
    +     * be designated to the cluster for client access through Private Service
    +     * Connect Automation. Currently, only one PscConfig is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getPscConfigsBuilderList() { + return getPscConfigsFieldBuilder().getBuilderList(); } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.redis.cluster.v1beta1.Cluster parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.redis.cluster.v1beta1.Cluster parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.redis.cluster.v1beta1.Cluster parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.redis.cluster.v1beta1.Cluster parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.redis.cluster.v1beta1.Cluster parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.redis.cluster.v1beta1.Cluster parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.redis.cluster.v1beta1.Cluster parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.redis.cluster.v1beta1.Cluster parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.redis.cluster.v1beta1.Cluster parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.redis.cluster.v1beta1.Cluster parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.redis.cluster.v1beta1.Cluster parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.redis.cluster.v1beta1.Cluster parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.PscConfig, + com.google.cloud.redis.cluster.v1beta1.PscConfig.Builder, + com.google.cloud.redis.cluster.v1beta1.PscConfigOrBuilder> + getPscConfigsFieldBuilder() { + if (pscConfigsBuilder_ == null) { + pscConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.PscConfig, + com.google.cloud.redis.cluster.v1beta1.PscConfig.Builder, + com.google.cloud.redis.cluster.v1beta1.PscConfigOrBuilder>( + pscConfigs_, ((bitField0_ & 0x00000800) != 0), getParentForChildren(), isClean()); + pscConfigs_ = null; + } + return pscConfigsBuilder_; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + private java.util.List + discoveryEndpoints_ = java.util.Collections.emptyList(); - public static Builder newBuilder(com.google.cloud.redis.cluster.v1beta1.Cluster prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + private void ensureDiscoveryEndpointsIsMutable() { + if (!((bitField0_ & 0x00001000) != 0)) { + discoveryEndpoints_ = + new java.util.ArrayList( + discoveryEndpoints_); + bitField0_ |= 0x00001000; + } + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint, + com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint.Builder, + com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpointOrBuilder> + discoveryEndpointsBuilder_; - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
    -   * A cluster instance.
    -   * 
    - * - * Protobuf type {@code google.cloud.redis.cluster.v1beta1.Cluster} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.Cluster) - com.google.cloud.redis.cluster.v1beta1.ClusterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto - .internal_static_google_cloud_redis_cluster_v1beta1_Cluster_descriptor; + /** + * + * + *
    +     * Output only. Endpoints created on each given network, for Redis clients to
    +     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getDiscoveryEndpointsList() { + if (discoveryEndpointsBuilder_ == null) { + return java.util.Collections.unmodifiableList(discoveryEndpoints_); + } else { + return discoveryEndpointsBuilder_.getMessageList(); + } } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 21: - return internalGetRedisConfigs(); - default: - throw new RuntimeException("Invalid map field number: " + number); + /** + * + * + *
    +     * Output only. Endpoints created on each given network, for Redis clients to
    +     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getDiscoveryEndpointsCount() { + if (discoveryEndpointsBuilder_ == null) { + return discoveryEndpoints_.size(); + } else { + return discoveryEndpointsBuilder_.getCount(); } } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 21: - return internalGetMutableRedisConfigs(); - default: - throw new RuntimeException("Invalid map field number: " + number); + /** + * + * + *
    +     * Output only. Endpoints created on each given network, for Redis clients to
    +     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint getDiscoveryEndpoints( + int index) { + if (discoveryEndpointsBuilder_ == null) { + return discoveryEndpoints_.get(index); + } else { + return discoveryEndpointsBuilder_.getMessage(index); } } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto - .internal_static_google_cloud_redis_cluster_v1beta1_Cluster_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.redis.cluster.v1beta1.Cluster.class, - com.google.cloud.redis.cluster.v1beta1.Cluster.Builder.class); + /** + * + * + *
    +     * Output only. Endpoints created on each given network, for Redis clients to
    +     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDiscoveryEndpoints( + int index, com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint value) { + if (discoveryEndpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDiscoveryEndpointsIsMutable(); + discoveryEndpoints_.set(index, value); + onChanged(); + } else { + discoveryEndpointsBuilder_.setMessage(index, value); + } + return this; } - - // Construct using com.google.cloud.redis.cluster.v1beta1.Cluster.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + /** + * + * + *
    +     * Output only. Endpoints created on each given network, for Redis clients to
    +     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDiscoveryEndpoints( + int index, + com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint.Builder builderForValue) { + if (discoveryEndpointsBuilder_ == null) { + ensureDiscoveryEndpointsIsMutable(); + discoveryEndpoints_.set(index, builderForValue.build()); + onChanged(); + } else { + discoveryEndpointsBuilder_.setMessage(index, builderForValue.build()); + } + return this; } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + /** + * + * + *
    +     * Output only. Endpoints created on each given network, for Redis clients to
    +     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDiscoveryEndpoints( + com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint value) { + if (discoveryEndpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDiscoveryEndpointsIsMutable(); + discoveryEndpoints_.add(value); + onChanged(); + } else { + discoveryEndpointsBuilder_.addMessage(value); + } + return this; } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getCreateTimeFieldBuilder(); - getPscConfigsFieldBuilder(); - getDiscoveryEndpointsFieldBuilder(); - getPscConnectionsFieldBuilder(); - getStateInfoFieldBuilder(); - getPersistenceConfigFieldBuilder(); - getZoneDistributionConfigFieldBuilder(); + /** + * + * + *
    +     * Output only. Endpoints created on each given network, for Redis clients to
    +     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDiscoveryEndpoints( + int index, com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint value) { + if (discoveryEndpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDiscoveryEndpointsIsMutable(); + discoveryEndpoints_.add(index, value); + onChanged(); + } else { + discoveryEndpointsBuilder_.addMessage(index, value); } + return this; } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; + /** + * + * + *
    +     * Output only. Endpoints created on each given network, for Redis clients to
    +     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDiscoveryEndpoints( + com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint.Builder builderForValue) { + if (discoveryEndpointsBuilder_ == null) { + ensureDiscoveryEndpointsIsMutable(); + discoveryEndpoints_.add(builderForValue.build()); + onChanged(); + } else { + discoveryEndpointsBuilder_.addMessage(builderForValue.build()); } - state_ = 0; - uid_ = ""; - replicaCount_ = 0; - authorizationMode_ = 0; - transitEncryptionMode_ = 0; - sizeGb_ = 0; - shardCount_ = 0; - if (pscConfigsBuilder_ == null) { - pscConfigs_ = java.util.Collections.emptyList(); + return this; + } + /** + * + * + *
    +     * Output only. Endpoints created on each given network, for Redis clients to
    +     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDiscoveryEndpoints( + int index, + com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint.Builder builderForValue) { + if (discoveryEndpointsBuilder_ == null) { + ensureDiscoveryEndpointsIsMutable(); + discoveryEndpoints_.add(index, builderForValue.build()); + onChanged(); + } else { + discoveryEndpointsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * Output only. Endpoints created on each given network, for Redis clients to
    +     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllDiscoveryEndpoints( + java.lang.Iterable + values) { + if (discoveryEndpointsBuilder_ == null) { + ensureDiscoveryEndpointsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, discoveryEndpoints_); + onChanged(); } else { - pscConfigs_ = null; - pscConfigsBuilder_.clear(); + discoveryEndpointsBuilder_.addAllMessages(values); } - bitField0_ = (bitField0_ & ~0x00000200); + return this; + } + /** + * + * + *
    +     * Output only. Endpoints created on each given network, for Redis clients to
    +     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDiscoveryEndpoints() { if (discoveryEndpointsBuilder_ == null) { discoveryEndpoints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); } else { - discoveryEndpoints_ = null; discoveryEndpointsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000400); - if (pscConnectionsBuilder_ == null) { - pscConnections_ = java.util.Collections.emptyList(); - } else { - pscConnections_ = null; - pscConnectionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000800); - stateInfo_ = null; - if (stateInfoBuilder_ != null) { - stateInfoBuilder_.dispose(); - stateInfoBuilder_ = null; - } - nodeType_ = 0; - persistenceConfig_ = null; - if (persistenceConfigBuilder_ != null) { - persistenceConfigBuilder_.dispose(); - persistenceConfigBuilder_ = null; - } - internalGetMutableRedisConfigs().clear(); - preciseSizeGb_ = 0D; - zoneDistributionConfig_ = null; - if (zoneDistributionConfigBuilder_ != null) { - zoneDistributionConfigBuilder_.dispose(); - zoneDistributionConfigBuilder_ = null; - } - deletionProtectionEnabled_ = false; return this; } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto - .internal_static_google_cloud_redis_cluster_v1beta1_Cluster_descriptor; - } - - @java.lang.Override - public com.google.cloud.redis.cluster.v1beta1.Cluster getDefaultInstanceForType() { - return com.google.cloud.redis.cluster.v1beta1.Cluster.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.redis.cluster.v1beta1.Cluster build() { - com.google.cloud.redis.cluster.v1beta1.Cluster result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + /** + * + * + *
    +     * Output only. Endpoints created on each given network, for Redis clients to
    +     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeDiscoveryEndpoints(int index) { + if (discoveryEndpointsBuilder_ == null) { + ensureDiscoveryEndpointsIsMutable(); + discoveryEndpoints_.remove(index); + onChanged(); + } else { + discoveryEndpointsBuilder_.remove(index); } - return result; + return this; } - - @java.lang.Override - public com.google.cloud.redis.cluster.v1beta1.Cluster buildPartial() { - com.google.cloud.redis.cluster.v1beta1.Cluster result = - new com.google.cloud.redis.cluster.v1beta1.Cluster(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; + /** + * + * + *
    +     * Output only. Endpoints created on each given network, for Redis clients to
    +     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint.Builder + getDiscoveryEndpointsBuilder(int index) { + return getDiscoveryEndpointsFieldBuilder().getBuilder(index); } - - private void buildPartialRepeatedFields(com.google.cloud.redis.cluster.v1beta1.Cluster result) { - if (pscConfigsBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0)) { - pscConfigs_ = java.util.Collections.unmodifiableList(pscConfigs_); - bitField0_ = (bitField0_ & ~0x00000200); - } - result.pscConfigs_ = pscConfigs_; - } else { - result.pscConfigs_ = pscConfigsBuilder_.build(); - } + /** + * + * + *
    +     * Output only. Endpoints created on each given network, for Redis clients to
    +     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpointOrBuilder + getDiscoveryEndpointsOrBuilder(int index) { if (discoveryEndpointsBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0)) { - discoveryEndpoints_ = java.util.Collections.unmodifiableList(discoveryEndpoints_); - bitField0_ = (bitField0_ & ~0x00000400); - } - result.discoveryEndpoints_ = discoveryEndpoints_; + return discoveryEndpoints_.get(index); } else { - result.discoveryEndpoints_ = discoveryEndpointsBuilder_.build(); + return discoveryEndpointsBuilder_.getMessageOrBuilder(index); } - if (pscConnectionsBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0)) { - pscConnections_ = java.util.Collections.unmodifiableList(pscConnections_); - bitField0_ = (bitField0_ & ~0x00000800); - } - result.pscConnections_ = pscConnections_; + } + /** + * + * + *
    +     * Output only. Endpoints created on each given network, for Redis clients to
    +     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpointOrBuilder> + getDiscoveryEndpointsOrBuilderList() { + if (discoveryEndpointsBuilder_ != null) { + return discoveryEndpointsBuilder_.getMessageOrBuilderList(); } else { - result.pscConnections_ = pscConnectionsBuilder_.build(); + return java.util.Collections.unmodifiableList(discoveryEndpoints_); } } - - private void buildPartial0(com.google.cloud.redis.cluster.v1beta1.Cluster result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.state_ = state_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.uid_ = uid_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.replicaCount_ = replicaCount_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.authorizationMode_ = authorizationMode_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.transitEncryptionMode_ = transitEncryptionMode_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.sizeGb_ = sizeGb_; - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.shardCount_ = shardCount_; - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.stateInfo_ = stateInfoBuilder_ == null ? stateInfo_ : stateInfoBuilder_.build(); - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.nodeType_ = nodeType_; - } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.persistenceConfig_ = - persistenceConfigBuilder_ == null - ? persistenceConfig_ - : persistenceConfigBuilder_.build(); - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00008000) != 0)) { - result.redisConfigs_ = internalGetRedisConfigs(); - result.redisConfigs_.makeImmutable(); - } - if (((from_bitField0_ & 0x00010000) != 0)) { - result.preciseSizeGb_ = preciseSizeGb_; - to_bitField0_ |= 0x00000040; - } - if (((from_bitField0_ & 0x00020000) != 0)) { - result.zoneDistributionConfig_ = - zoneDistributionConfigBuilder_ == null - ? zoneDistributionConfig_ - : zoneDistributionConfigBuilder_.build(); - to_bitField0_ |= 0x00000080; - } - if (((from_bitField0_ & 0x00040000) != 0)) { - result.deletionProtectionEnabled_ = deletionProtectionEnabled_; - to_bitField0_ |= 0x00000100; - } - result.bitField0_ |= to_bitField0_; + /** + * + * + *
    +     * Output only. Endpoints created on each given network, for Redis clients to
    +     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint.Builder + addDiscoveryEndpointsBuilder() { + return getDiscoveryEndpointsFieldBuilder() + .addBuilder( + com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint.getDefaultInstance()); } - - @java.lang.Override - public Builder clone() { - return super.clone(); + /** + * + * + *
    +     * Output only. Endpoints created on each given network, for Redis clients to
    +     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint.Builder + addDiscoveryEndpointsBuilder(int index) { + return getDiscoveryEndpointsFieldBuilder() + .addBuilder( + index, com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint.getDefaultInstance()); } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); + /** + * + * + *
    +     * Output only. Endpoints created on each given network, for Redis clients to
    +     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getDiscoveryEndpointsBuilderList() { + return getDiscoveryEndpointsFieldBuilder().getBuilderList(); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint, + com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint.Builder, + com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpointOrBuilder> + getDiscoveryEndpointsFieldBuilder() { + if (discoveryEndpointsBuilder_ == null) { + discoveryEndpointsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint, + com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint.Builder, + com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpointOrBuilder>( + discoveryEndpoints_, + ((bitField0_ & 0x00001000) != 0), + getParentForChildren(), + isClean()); + discoveryEndpoints_ = null; + } + return discoveryEndpointsBuilder_; } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } + private java.util.List pscConnections_ = + java.util.Collections.emptyList(); - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + private void ensurePscConnectionsIsMutable() { + if (!((bitField0_ & 0x00002000) != 0)) { + pscConnections_ = + new java.util.ArrayList( + pscConnections_); + bitField0_ |= 0x00002000; + } } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.PscConnection, + com.google.cloud.redis.cluster.v1beta1.PscConnection.Builder, + com.google.cloud.redis.cluster.v1beta1.PscConnectionOrBuilder> + pscConnectionsBuilder_; - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.redis.cluster.v1beta1.Cluster) { - return mergeFrom((com.google.cloud.redis.cluster.v1beta1.Cluster) other); + /** + * + * + *
    +     * Output only. The list of PSC connections that are auto-created through
    +     * service connectivity automation.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getPscConnectionsList() { + if (pscConnectionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(pscConnections_); } else { - super.mergeFrom(other); - return this; + return pscConnectionsBuilder_.getMessageList(); } } - - public Builder mergeFrom(com.google.cloud.redis.cluster.v1beta1.Cluster other) { - if (other == com.google.cloud.redis.cluster.v1beta1.Cluster.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (!other.getUid().isEmpty()) { - uid_ = other.uid_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (other.hasReplicaCount()) { - setReplicaCount(other.getReplicaCount()); - } - if (other.authorizationMode_ != 0) { - setAuthorizationModeValue(other.getAuthorizationModeValue()); - } - if (other.transitEncryptionMode_ != 0) { - setTransitEncryptionModeValue(other.getTransitEncryptionModeValue()); - } - if (other.hasSizeGb()) { - setSizeGb(other.getSizeGb()); - } - if (other.hasShardCount()) { - setShardCount(other.getShardCount()); + /** + * + * + *
    +     * Output only. The list of PSC connections that are auto-created through
    +     * service connectivity automation.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getPscConnectionsCount() { + if (pscConnectionsBuilder_ == null) { + return pscConnections_.size(); + } else { + return pscConnectionsBuilder_.getCount(); } - if (pscConfigsBuilder_ == null) { - if (!other.pscConfigs_.isEmpty()) { - if (pscConfigs_.isEmpty()) { - pscConfigs_ = other.pscConfigs_; - bitField0_ = (bitField0_ & ~0x00000200); - } else { - ensurePscConfigsIsMutable(); - pscConfigs_.addAll(other.pscConfigs_); - } - onChanged(); - } + } + /** + * + * + *
    +     * Output only. The list of PSC connections that are auto-created through
    +     * service connectivity automation.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.PscConnection getPscConnections(int index) { + if (pscConnectionsBuilder_ == null) { + return pscConnections_.get(index); } else { - if (!other.pscConfigs_.isEmpty()) { - if (pscConfigsBuilder_.isEmpty()) { - pscConfigsBuilder_.dispose(); - pscConfigsBuilder_ = null; - pscConfigs_ = other.pscConfigs_; - bitField0_ = (bitField0_ & ~0x00000200); - pscConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPscConfigsFieldBuilder() - : null; - } else { - pscConfigsBuilder_.addAllMessages(other.pscConfigs_); - } - } + return pscConnectionsBuilder_.getMessage(index); } - if (discoveryEndpointsBuilder_ == null) { - if (!other.discoveryEndpoints_.isEmpty()) { - if (discoveryEndpoints_.isEmpty()) { - discoveryEndpoints_ = other.discoveryEndpoints_; - bitField0_ = (bitField0_ & ~0x00000400); - } else { - ensureDiscoveryEndpointsIsMutable(); - discoveryEndpoints_.addAll(other.discoveryEndpoints_); - } - onChanged(); + } + /** + * + * + *
    +     * Output only. The list of PSC connections that are auto-created through
    +     * service connectivity automation.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPscConnections( + int index, com.google.cloud.redis.cluster.v1beta1.PscConnection value) { + if (pscConnectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + ensurePscConnectionsIsMutable(); + pscConnections_.set(index, value); + onChanged(); } else { - if (!other.discoveryEndpoints_.isEmpty()) { - if (discoveryEndpointsBuilder_.isEmpty()) { - discoveryEndpointsBuilder_.dispose(); - discoveryEndpointsBuilder_ = null; - discoveryEndpoints_ = other.discoveryEndpoints_; - bitField0_ = (bitField0_ & ~0x00000400); - discoveryEndpointsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDiscoveryEndpointsFieldBuilder() - : null; - } else { - discoveryEndpointsBuilder_.addAllMessages(other.discoveryEndpoints_); - } - } + pscConnectionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * Output only. The list of PSC connections that are auto-created through
    +     * service connectivity automation.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPscConnections( + int index, com.google.cloud.redis.cluster.v1beta1.PscConnection.Builder builderForValue) { + if (pscConnectionsBuilder_ == null) { + ensurePscConnectionsIsMutable(); + pscConnections_.set(index, builderForValue.build()); + onChanged(); + } else { + pscConnectionsBuilder_.setMessage(index, builderForValue.build()); } + return this; + } + /** + * + * + *
    +     * Output only. The list of PSC connections that are auto-created through
    +     * service connectivity automation.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPscConnections(com.google.cloud.redis.cluster.v1beta1.PscConnection value) { if (pscConnectionsBuilder_ == null) { - if (!other.pscConnections_.isEmpty()) { - if (pscConnections_.isEmpty()) { - pscConnections_ = other.pscConnections_; - bitField0_ = (bitField0_ & ~0x00000800); - } else { - ensurePscConnectionsIsMutable(); - pscConnections_.addAll(other.pscConnections_); - } - onChanged(); + if (value == null) { + throw new NullPointerException(); } + ensurePscConnectionsIsMutable(); + pscConnections_.add(value); + onChanged(); } else { - if (!other.pscConnections_.isEmpty()) { - if (pscConnectionsBuilder_.isEmpty()) { - pscConnectionsBuilder_.dispose(); - pscConnectionsBuilder_ = null; - pscConnections_ = other.pscConnections_; - bitField0_ = (bitField0_ & ~0x00000800); - pscConnectionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPscConnectionsFieldBuilder() - : null; - } else { - pscConnectionsBuilder_.addAllMessages(other.pscConnections_); - } - } - } - if (other.hasStateInfo()) { - mergeStateInfo(other.getStateInfo()); - } - if (other.nodeType_ != 0) { - setNodeTypeValue(other.getNodeTypeValue()); - } - if (other.hasPersistenceConfig()) { - mergePersistenceConfig(other.getPersistenceConfig()); - } - internalGetMutableRedisConfigs().mergeFrom(other.internalGetRedisConfigs()); - bitField0_ |= 0x00008000; - if (other.hasPreciseSizeGb()) { - setPreciseSizeGb(other.getPreciseSizeGb()); - } - if (other.hasZoneDistributionConfig()) { - mergeZoneDistributionConfig(other.getZoneDistributionConfig()); - } - if (other.hasDeletionProtectionEnabled()) { - setDeletionProtectionEnabled(other.getDeletionProtectionEnabled()); + pscConnectionsBuilder_.addMessage(value); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); return this; } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 26 - case 32: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 32 - case 42: - { - uid_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 64: - { - replicaCount_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 64 - case 88: - { - authorizationMode_ = input.readEnum(); - bitField0_ |= 0x00000020; - break; - } // case 88 - case 96: - { - transitEncryptionMode_ = input.readEnum(); - bitField0_ |= 0x00000040; - break; - } // case 96 - case 104: - { - sizeGb_ = input.readInt32(); - bitField0_ |= 0x00000080; - break; - } // case 104 - case 112: - { - shardCount_ = input.readInt32(); - bitField0_ |= 0x00000100; - break; - } // case 112 - case 122: - { - com.google.cloud.redis.cluster.v1beta1.PscConfig m = - input.readMessage( - com.google.cloud.redis.cluster.v1beta1.PscConfig.parser(), - extensionRegistry); - if (pscConfigsBuilder_ == null) { - ensurePscConfigsIsMutable(); - pscConfigs_.add(m); - } else { - pscConfigsBuilder_.addMessage(m); - } - break; - } // case 122 - case 130: - { - com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint m = - input.readMessage( - com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint.parser(), - extensionRegistry); - if (discoveryEndpointsBuilder_ == null) { - ensureDiscoveryEndpointsIsMutable(); - discoveryEndpoints_.add(m); - } else { - discoveryEndpointsBuilder_.addMessage(m); - } - break; - } // case 130 - case 138: - { - com.google.cloud.redis.cluster.v1beta1.PscConnection m = - input.readMessage( - com.google.cloud.redis.cluster.v1beta1.PscConnection.parser(), - extensionRegistry); - if (pscConnectionsBuilder_ == null) { - ensurePscConnectionsIsMutable(); - pscConnections_.add(m); - } else { - pscConnectionsBuilder_.addMessage(m); - } - break; - } // case 138 - case 146: - { - input.readMessage(getStateInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; - break; - } // case 146 - case 152: - { - nodeType_ = input.readEnum(); - bitField0_ |= 0x00002000; - break; - } // case 152 - case 162: - { - input.readMessage( - getPersistenceConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; - break; - } // case 162 - case 170: - { - com.google.protobuf.MapEntry redisConfigs__ = - input.readMessage( - RedisConfigsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableRedisConfigs() - .getMutableMap() - .put(redisConfigs__.getKey(), redisConfigs__.getValue()); - bitField0_ |= 0x00008000; - break; - } // case 170 - case 177: - { - preciseSizeGb_ = input.readDouble(); - bitField0_ |= 0x00010000; - break; - } // case 177 - case 186: - { - input.readMessage( - getZoneDistributionConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00020000; - break; - } // case 186 - case 200: - { - deletionProtectionEnabled_ = input.readBool(); - bitField0_ |= 0x00040000; - break; - } // case 200 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { + /** + * + * + *
    +     * Output only. The list of PSC connections that are auto-created through
    +     * service connectivity automation.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPscConnections( + int index, com.google.cloud.redis.cluster.v1beta1.PscConnection value) { + if (pscConnectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePscConnectionsIsMutable(); + pscConnections_.add(index, value); onChanged(); - } // finally + } else { + pscConnectionsBuilder_.addMessage(index, value); + } return this; } - - private int bitField0_; - - private java.lang.Object name_ = ""; /** * * *
    -     * Required. Unique name of the resource in this scope including project and
    -     * location using the form:
    -     *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +     * Output only. The list of PSC connections that are auto-created through
    +     * service connectivity automation.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The name. + * + * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - 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; + public Builder addPscConnections( + com.google.cloud.redis.cluster.v1beta1.PscConnection.Builder builderForValue) { + if (pscConnectionsBuilder_ == null) { + ensurePscConnectionsIsMutable(); + pscConnections_.add(builderForValue.build()); + onChanged(); } else { - return (java.lang.String) ref; + pscConnectionsBuilder_.addMessage(builderForValue.build()); } + return this; } /** * * *
    -     * Required. Unique name of the resource in this scope including project and
    -     * location using the form:
    -     *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +     * Output only. The list of PSC connections that are auto-created through
    +     * service connectivity automation.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for name. + * + * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - 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; + public Builder addPscConnections( + int index, com.google.cloud.redis.cluster.v1beta1.PscConnection.Builder builderForValue) { + if (pscConnectionsBuilder_ == null) { + ensurePscConnectionsIsMutable(); + pscConnections_.add(index, builderForValue.build()); + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + pscConnectionsBuilder_.addMessage(index, builderForValue.build()); } + return this; } /** * * *
    -     * Required. Unique name of the resource in this scope including project and
    -     * location using the form:
    -     *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +     * Output only. The list of PSC connections that are auto-created through
    +     * service connectivity automation.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The name to set. - * @return This builder for chaining. + * + * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder addAllPscConnections( + java.lang.Iterable values) { + if (pscConnectionsBuilder_ == null) { + ensurePscConnectionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pscConnections_); + onChanged(); + } else { + pscConnectionsBuilder_.addAllMessages(values); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); return this; } /** * * *
    -     * Required. Unique name of the resource in this scope including project and
    -     * location using the form:
    -     *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +     * Output only. The list of PSC connections that are auto-created through
    +     * service connectivity automation.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. + * + * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); + public Builder clearPscConnections() { + if (pscConnectionsBuilder_ == null) { + pscConnections_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + } else { + pscConnectionsBuilder_.clear(); + } return this; } /** * * *
    -     * Required. Unique name of the resource in this scope including project and
    -     * location using the form:
    -     *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +     * Output only. The list of PSC connections that are auto-created through
    +     * service connectivity automation.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for name to set. - * @return This builder for chaining. + * + * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder removePscConnections(int index) { + if (pscConnectionsBuilder_ == null) { + ensurePscConnectionsIsMutable(); + pscConnections_.remove(index); + onChanged(); + } else { + pscConnectionsBuilder_.remove(index); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - 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. The timestamp associated with the cluster creation request.
    +     * Output only. The list of PSC connections that are auto-created through
    +     * service connectivity automation.
          * 
    * * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return Whether the createTime field is set. */ - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000002) != 0); + public com.google.cloud.redis.cluster.v1beta1.PscConnection.Builder getPscConnectionsBuilder( + int index) { + return getPscConnectionsFieldBuilder().getBuilder(index); } /** * * *
    -     * Output only. The timestamp associated with the cluster creation request.
    +     * Output only. The list of PSC connections that are auto-created through
    +     * service connectivity automation.
          * 
    * * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.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_; + public com.google.cloud.redis.cluster.v1beta1.PscConnectionOrBuilder getPscConnectionsOrBuilder( + int index) { + if (pscConnectionsBuilder_ == null) { + return pscConnections_.get(index); } else { - return createTimeBuilder_.getMessage(); + return pscConnectionsBuilder_.getMessageOrBuilder(index); } } /** * * *
    -     * Output only. The timestamp associated with the cluster creation request.
    +     * Output only. The list of PSC connections that are auto-created through
    +     * service connectivity automation.
          * 
    * * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.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; + public java.util.List + getPscConnectionsOrBuilderList() { + if (pscConnectionsBuilder_ != null) { + return pscConnectionsBuilder_.getMessageOrBuilderList(); } else { - createTimeBuilder_.setMessage(value); + return java.util.Collections.unmodifiableList(pscConnections_); } - bitField0_ |= 0x00000002; - onChanged(); - return this; } /** * * *
    -     * Output only. The timestamp associated with the cluster creation request.
    +     * Output only. The list of PSC connections that are auto-created through
    +     * service connectivity automation.
          * 
    * * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.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_ |= 0x00000002; - onChanged(); - return this; + public com.google.cloud.redis.cluster.v1beta1.PscConnection.Builder addPscConnectionsBuilder() { + return getPscConnectionsFieldBuilder() + .addBuilder(com.google.cloud.redis.cluster.v1beta1.PscConnection.getDefaultInstance()); } /** * * *
    -     * Output only. The timestamp associated with the cluster creation request.
    +     * Output only. The list of PSC connections that are auto-created through
    +     * service connectivity automation.
          * 
    * * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getCreateTimeBuilder().mergeFrom(value); - } else { - createTime_ = value; - } - } else { - createTimeBuilder_.mergeFrom(value); - } - if (createTime_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; + public com.google.cloud.redis.cluster.v1beta1.PscConnection.Builder addPscConnectionsBuilder( + int index) { + return getPscConnectionsFieldBuilder() + .addBuilder( + index, com.google.cloud.redis.cluster.v1beta1.PscConnection.getDefaultInstance()); } /** * * *
    -     * Output only. The timestamp associated with the cluster creation request.
    +     * Output only. The list of PSC connections that are auto-created through
    +     * service connectivity automation.
          * 
    * * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000002); - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; + public java.util.List + getPscConnectionsBuilderList() { + return getPscConnectionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.PscConnection, + com.google.cloud.redis.cluster.v1beta1.PscConnection.Builder, + com.google.cloud.redis.cluster.v1beta1.PscConnectionOrBuilder> + getPscConnectionsFieldBuilder() { + if (pscConnectionsBuilder_ == null) { + pscConnectionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.PscConnection, + com.google.cloud.redis.cluster.v1beta1.PscConnection.Builder, + com.google.cloud.redis.cluster.v1beta1.PscConnectionOrBuilder>( + pscConnections_, + ((bitField0_ & 0x00002000) != 0), + getParentForChildren(), + isClean()); + pscConnections_ = null; } - onChanged(); - return this; + return pscConnectionsBuilder_; + } + + private com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo stateInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo, + com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo.Builder, + com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfoOrBuilder> + stateInfoBuilder_; + /** + * + * + *
    +     * Output only. Additional information about the current state of the cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the stateInfo field is set. + */ + public boolean hasStateInfo() { + return ((bitField0_ & 0x00004000) != 0); } /** * * *
    -     * Output only. The timestamp associated with the cluster creation request.
    +     * Output only. Additional information about the current state of the cluster.
          * 
    * * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.redis.cluster.v1beta1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The stateInfo. */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); + public com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo getStateInfo() { + if (stateInfoBuilder_ == null) { + return stateInfo_ == null + ? com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo.getDefaultInstance() + : stateInfo_; + } else { + return stateInfoBuilder_.getMessage(); + } } /** * * *
    -     * Output only. The timestamp associated with the cluster creation request.
    +     * Output only. Additional information about the current state of the cluster.
          * 
    * * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.redis.cluster.v1beta1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); + public Builder setStateInfo(com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo value) { + if (stateInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stateInfo_ = value; } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + stateInfoBuilder_.setMessage(value); } + bitField0_ |= 0x00004000; + onChanged(); + return this; } /** * * *
    -     * Output only. The timestamp associated with the cluster creation request.
    +     * Output only. Additional information about the current state of the cluster.
          * 
    * * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.redis.cluster.v1beta1.Cluster.StateInfo state_info = 18 [(.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; + public Builder setStateInfo( + com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo.Builder builderForValue) { + if (stateInfoBuilder_ == null) { + stateInfo_ = builderForValue.build(); + } else { + stateInfoBuilder_.setMessage(builderForValue.build()); } - return createTimeBuilder_; + bitField0_ |= 0x00004000; + onChanged(); + return this; } - - private int state_ = 0; /** * * *
    -     * Output only. The current state of this cluster.
    -     * Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
    +     * Output only. Additional information about the current state of the cluster.
          * 
    * * - * .google.cloud.redis.cluster.v1beta1.Cluster.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.redis.cluster.v1beta1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { - return state_; + public Builder mergeStateInfo(com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo value) { + if (stateInfoBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) + && stateInfo_ != null + && stateInfo_ + != com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo.getDefaultInstance()) { + getStateInfoBuilder().mergeFrom(value); + } else { + stateInfo_ = value; + } + } else { + stateInfoBuilder_.mergeFrom(value); + } + if (stateInfo_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } + return this; } /** * * *
    -     * Output only. The current state of this cluster.
    -     * Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
    +     * Output only. Additional information about the current state of the cluster.
          * 
    * * - * .google.cloud.redis.cluster.v1beta1.Cluster.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.redis.cluster.v1beta1.Cluster.StateInfo state_info = 18 [(.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_ |= 0x00000004; + public Builder clearStateInfo() { + bitField0_ = (bitField0_ & ~0x00004000); + stateInfo_ = null; + if (stateInfoBuilder_ != null) { + stateInfoBuilder_.dispose(); + stateInfoBuilder_ = null; + } onChanged(); return this; } @@ -4367,149 +9663,148 @@ public Builder setStateValue(int value) { * * *
    -     * Output only. The current state of this cluster.
    -     * Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
    +     * Output only. Additional information about the current state of the cluster.
          * 
    * * - * .google.cloud.redis.cluster.v1beta1.Cluster.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.redis.cluster.v1beta1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The state. */ - @java.lang.Override - public com.google.cloud.redis.cluster.v1beta1.Cluster.State getState() { - com.google.cloud.redis.cluster.v1beta1.Cluster.State result = - com.google.cloud.redis.cluster.v1beta1.Cluster.State.forNumber(state_); - return result == null - ? com.google.cloud.redis.cluster.v1beta1.Cluster.State.UNRECOGNIZED - : result; + public com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo.Builder getStateInfoBuilder() { + bitField0_ |= 0x00004000; + onChanged(); + return getStateInfoFieldBuilder().getBuilder(); } /** * * *
    -     * Output only. The current state of this cluster.
    -     * Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
    +     * Output only. Additional information about the current state of the cluster.
          * 
    * * - * .google.cloud.redis.cluster.v1beta1.Cluster.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.redis.cluster.v1beta1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @param value The state to set. - * @return This builder for chaining. */ - public Builder setState(com.google.cloud.redis.cluster.v1beta1.Cluster.State value) { - if (value == null) { - throw new NullPointerException(); + public com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfoOrBuilder + getStateInfoOrBuilder() { + if (stateInfoBuilder_ != null) { + return stateInfoBuilder_.getMessageOrBuilder(); + } else { + return stateInfo_ == null + ? com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo.getDefaultInstance() + : stateInfo_; } - bitField0_ |= 0x00000004; - state_ = value.getNumber(); - onChanged(); - return this; } /** * * *
    -     * Output only. The current state of this cluster.
    -     * Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
    +     * Output only. Additional information about the current state of the cluster.
          * 
    * * - * .google.cloud.redis.cluster.v1beta1.Cluster.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.redis.cluster.v1beta1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return This builder for chaining. */ - public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000004); - state_ = 0; - onChanged(); - return this; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo, + com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo.Builder, + com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfoOrBuilder> + getStateInfoFieldBuilder() { + if (stateInfoBuilder_ == null) { + stateInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo, + com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo.Builder, + com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfoOrBuilder>( + getStateInfo(), getParentForChildren(), isClean()); + stateInfo_ = null; + } + return stateInfoBuilder_; } - private java.lang.Object uid_ = ""; + private int nodeType_ = 0; /** * * *
    -     * Output only. System assigned, unique identifier for the cluster.
    +     * Optional. The type of a redis node in the cluster. NodeType determines the
    +     * underlying machine-type of a redis node.
          * 
    * - * string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.cluster.v1beta1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The uid. + * @return The enum numeric value on the wire for nodeType. */ - public java.lang.String getUid() { - java.lang.Object ref = uid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uid_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public int getNodeTypeValue() { + return nodeType_; } /** * * *
    -     * Output only. System assigned, unique identifier for the cluster.
    +     * Optional. The type of a redis node in the cluster. NodeType determines the
    +     * underlying machine-type of a redis node.
          * 
    * - * string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.cluster.v1beta1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The bytes for uid. + * @param value The enum numeric value on the wire for nodeType to set. + * @return This builder for chaining. */ - public com.google.protobuf.ByteString getUidBytes() { - java.lang.Object ref = uid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - uid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public Builder setNodeTypeValue(int value) { + nodeType_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; } /** * * *
    -     * Output only. System assigned, unique identifier for the cluster.
    +     * Optional. The type of a redis node in the cluster. NodeType determines the
    +     * underlying machine-type of a redis node.
          * 
    * - * string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.cluster.v1beta1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @param value The uid to set. - * @return This builder for chaining. + * @return The nodeType. */ - public Builder setUid(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - uid_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.NodeType getNodeType() { + com.google.cloud.redis.cluster.v1beta1.NodeType result = + com.google.cloud.redis.cluster.v1beta1.NodeType.forNumber(nodeType_); + return result == null ? com.google.cloud.redis.cluster.v1beta1.NodeType.UNRECOGNIZED : result; } /** * * *
    -     * Output only. System assigned, unique identifier for the cluster.
    +     * Optional. The type of a redis node in the cluster. NodeType determines the
    +     * underlying machine-type of a redis node.
          * 
    * - * string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.cluster.v1beta1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * * + * @param value The nodeType to set. * @return This builder for chaining. */ - public Builder clearUid() { - uid_ = getDefaultInstance().getUid(); - bitField0_ = (bitField0_ & ~0x00000008); + public Builder setNodeType(com.google.cloud.redis.cluster.v1beta1.NodeType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00008000; + nodeType_ = value.getNumber(); onChanged(); return this; } @@ -4517,72 +9812,89 @@ public Builder clearUid() { * * *
    -     * Output only. System assigned, unique identifier for the cluster.
    +     * Optional. The type of a redis node in the cluster. NodeType determines the
    +     * underlying machine-type of a redis node.
          * 
    * - * string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.redis.cluster.v1beta1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - uid_ = value; - bitField0_ |= 0x00000008; + public Builder clearNodeType() { + bitField0_ = (bitField0_ & ~0x00008000); + nodeType_ = 0; onChanged(); return this; } - private int replicaCount_; + private com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistenceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig, + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.Builder, + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfigOrBuilder> + persistenceConfigBuilder_; /** * * *
    -     * Optional. The number of replica nodes per shard.
    +     * Optional. Persistence config (RDB, AOF) for the cluster.
          * 
    * - * optional int32 replica_count = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return Whether the replicaCount field is set. + * @return Whether the persistenceConfig field is set. */ - @java.lang.Override - public boolean hasReplicaCount() { - return ((bitField0_ & 0x00000010) != 0); + public boolean hasPersistenceConfig() { + return ((bitField0_ & 0x00010000) != 0); } /** * * *
    -     * Optional. The number of replica nodes per shard.
    +     * Optional. Persistence config (RDB, AOF) for the cluster.
          * 
    * - * optional int32 replica_count = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The replicaCount. + * @return The persistenceConfig. */ - @java.lang.Override - public int getReplicaCount() { - return replicaCount_; + public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig getPersistenceConfig() { + if (persistenceConfigBuilder_ == null) { + return persistenceConfig_ == null + ? com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.getDefaultInstance() + : persistenceConfig_; + } else { + return persistenceConfigBuilder_.getMessage(); + } } /** * * *
    -     * Optional. The number of replica nodes per shard.
    +     * Optional. Persistence config (RDB, AOF) for the cluster.
          * 
    * - * optional int32 replica_count = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The replicaCount to set. - * @return This builder for chaining. + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setReplicaCount(int value) { - - replicaCount_ = value; - bitField0_ |= 0x00000010; + public Builder setPersistenceConfig( + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig value) { + if (persistenceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + persistenceConfig_ = value; + } else { + persistenceConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -4590,57 +9902,74 @@ public Builder setReplicaCount(int value) { * * *
    -     * Optional. The number of replica nodes per shard.
    +     * Optional. Persistence config (RDB, AOF) for the cluster.
          * 
    * - * optional int32 replica_count = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearReplicaCount() { - bitField0_ = (bitField0_ & ~0x00000010); - replicaCount_ = 0; + public Builder setPersistenceConfig( + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.Builder builderForValue) { + if (persistenceConfigBuilder_ == null) { + persistenceConfig_ = builderForValue.build(); + } else { + persistenceConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00010000; onChanged(); return this; } - - private int authorizationMode_ = 0; /** * * *
    -     * Optional. The authorization mode of the Redis cluster.
    -     * If not provided, auth feature is disabled for the cluster.
    +     * Optional. Persistence config (RDB, AOF) for the cluster.
          * 
    * * - * .google.cloud.redis.cluster.v1beta1.AuthorizationMode authorization_mode = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The enum numeric value on the wire for authorizationMode. */ - @java.lang.Override - public int getAuthorizationModeValue() { - return authorizationMode_; + public Builder mergePersistenceConfig( + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig value) { + if (persistenceConfigBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0) + && persistenceConfig_ != null + && persistenceConfig_ + != com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig + .getDefaultInstance()) { + getPersistenceConfigBuilder().mergeFrom(value); + } else { + persistenceConfig_ = value; + } + } else { + persistenceConfigBuilder_.mergeFrom(value); + } + if (persistenceConfig_ != null) { + bitField0_ |= 0x00010000; + onChanged(); + } + return this; } /** * * *
    -     * Optional. The authorization mode of the Redis cluster.
    -     * If not provided, auth feature is disabled for the cluster.
    +     * Optional. Persistence config (RDB, AOF) for the cluster.
          * 
    * * - * .google.cloud.redis.cluster.v1beta1.AuthorizationMode authorization_mode = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param value The enum numeric value on the wire for authorizationMode to set. - * @return This builder for chaining. */ - public Builder setAuthorizationModeValue(int value) { - authorizationMode_ = value; - bitField0_ |= 0x00000020; + public Builder clearPersistenceConfig() { + bitField0_ = (bitField0_ & ~0x00010000); + persistenceConfig_ = null; + if (persistenceConfigBuilder_ != null) { + persistenceConfigBuilder_.dispose(); + persistenceConfigBuilder_ = null; + } onChanged(); return this; } @@ -4648,470 +9977,443 @@ public Builder setAuthorizationModeValue(int value) { * * *
    -     * Optional. The authorization mode of the Redis cluster.
    -     * If not provided, auth feature is disabled for the cluster.
    +     * Optional. Persistence config (RDB, AOF) for the cluster.
          * 
    * * - * .google.cloud.redis.cluster.v1beta1.AuthorizationMode authorization_mode = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The authorizationMode. */ - @java.lang.Override - public com.google.cloud.redis.cluster.v1beta1.AuthorizationMode getAuthorizationMode() { - com.google.cloud.redis.cluster.v1beta1.AuthorizationMode result = - com.google.cloud.redis.cluster.v1beta1.AuthorizationMode.forNumber(authorizationMode_); - return result == null - ? com.google.cloud.redis.cluster.v1beta1.AuthorizationMode.UNRECOGNIZED - : result; + public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.Builder + getPersistenceConfigBuilder() { + bitField0_ |= 0x00010000; + onChanged(); + return getPersistenceConfigFieldBuilder().getBuilder(); } /** * * *
    -     * Optional. The authorization mode of the Redis cluster.
    -     * If not provided, auth feature is disabled for the cluster.
    +     * Optional. Persistence config (RDB, AOF) for the cluster.
          * 
    * * - * .google.cloud.redis.cluster.v1beta1.AuthorizationMode authorization_mode = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param value The authorizationMode to set. - * @return This builder for chaining. */ - public Builder setAuthorizationMode( - com.google.cloud.redis.cluster.v1beta1.AuthorizationMode value) { - if (value == null) { - throw new NullPointerException(); + public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfigOrBuilder + getPersistenceConfigOrBuilder() { + if (persistenceConfigBuilder_ != null) { + return persistenceConfigBuilder_.getMessageOrBuilder(); + } else { + return persistenceConfig_ == null + ? com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.getDefaultInstance() + : persistenceConfig_; } - bitField0_ |= 0x00000020; - authorizationMode_ = value.getNumber(); - onChanged(); - return this; } /** * * *
    -     * Optional. The authorization mode of the Redis cluster.
    -     * If not provided, auth feature is disabled for the cluster.
    +     * Optional. Persistence config (RDB, AOF) for the cluster.
          * 
    * * - * .google.cloud.redis.cluster.v1beta1.AuthorizationMode authorization_mode = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return This builder for chaining. */ - public Builder clearAuthorizationMode() { - bitField0_ = (bitField0_ & ~0x00000020); - authorizationMode_ = 0; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig, + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.Builder, + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfigOrBuilder> + getPersistenceConfigFieldBuilder() { + if (persistenceConfigBuilder_ == null) { + persistenceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig, + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.Builder, + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfigOrBuilder>( + getPersistenceConfig(), getParentForChildren(), isClean()); + persistenceConfig_ = null; + } + return persistenceConfigBuilder_; + } + + private com.google.protobuf.MapField redisConfigs_; + + private com.google.protobuf.MapField + internalGetRedisConfigs() { + if (redisConfigs_ == null) { + return com.google.protobuf.MapField.emptyMapField( + RedisConfigsDefaultEntryHolder.defaultEntry); + } + return redisConfigs_; + } + + private com.google.protobuf.MapField + internalGetMutableRedisConfigs() { + if (redisConfigs_ == null) { + redisConfigs_ = + com.google.protobuf.MapField.newMapField(RedisConfigsDefaultEntryHolder.defaultEntry); + } + if (!redisConfigs_.isMutable()) { + redisConfigs_ = redisConfigs_.copy(); + } + bitField0_ |= 0x00020000; onChanged(); - return this; + return redisConfigs_; } - private int transitEncryptionMode_ = 0; + public int getRedisConfigsCount() { + return internalGetRedisConfigs().getMap().size(); + } /** * * *
    -     * Optional. The in-transit encryption for the Redis cluster.
    -     * If not provided, encryption  is disabled for the cluster.
    +     * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
          * 
    * - * - * .google.cloud.redis.cluster.v1beta1.TransitEncryptionMode transit_encryption_mode = 12 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The enum numeric value on the wire for transitEncryptionMode. */ @java.lang.Override - public int getTransitEncryptionModeValue() { - return transitEncryptionMode_; + public boolean containsRedisConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetRedisConfigs().getMap().containsKey(key); + } + /** Use {@link #getRedisConfigsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getRedisConfigs() { + return getRedisConfigsMap(); } /** * * *
    -     * Optional. The in-transit encryption for the Redis cluster.
    -     * If not provided, encryption  is disabled for the cluster.
    +     * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
          * 
    * - * - * .google.cloud.redis.cluster.v1beta1.TransitEncryptionMode transit_encryption_mode = 12 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param value The enum numeric value on the wire for transitEncryptionMode to set. - * @return This builder for chaining. */ - public Builder setTransitEncryptionModeValue(int value) { - transitEncryptionMode_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; + @java.lang.Override + public java.util.Map getRedisConfigsMap() { + return internalGetRedisConfigs().getMap(); } /** * * *
    -     * Optional. The in-transit encryption for the Redis cluster.
    -     * If not provided, encryption  is disabled for the cluster.
    +     * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
          * 
    * - * - * .google.cloud.redis.cluster.v1beta1.TransitEncryptionMode transit_encryption_mode = 12 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The transitEncryptionMode. */ @java.lang.Override - public com.google.cloud.redis.cluster.v1beta1.TransitEncryptionMode getTransitEncryptionMode() { - com.google.cloud.redis.cluster.v1beta1.TransitEncryptionMode result = - com.google.cloud.redis.cluster.v1beta1.TransitEncryptionMode.forNumber( - transitEncryptionMode_); - return result == null - ? com.google.cloud.redis.cluster.v1beta1.TransitEncryptionMode.UNRECOGNIZED - : result; + public /* nullable */ java.lang.String getRedisConfigsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetRedisConfigs().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
    -     * Optional. The in-transit encryption for the Redis cluster.
    -     * If not provided, encryption  is disabled for the cluster.
    +     * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
          * 
    * - * - * .google.cloud.redis.cluster.v1beta1.TransitEncryptionMode transit_encryption_mode = 12 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param value The transitEncryptionMode to set. - * @return This builder for chaining. */ - public Builder setTransitEncryptionMode( - com.google.cloud.redis.cluster.v1beta1.TransitEncryptionMode value) { - if (value == null) { - throw new NullPointerException(); + @java.lang.Override + public java.lang.String getRedisConfigsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - bitField0_ |= 0x00000040; - transitEncryptionMode_ = value.getNumber(); - onChanged(); + java.util.Map map = internalGetRedisConfigs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearRedisConfigs() { + bitField0_ = (bitField0_ & ~0x00020000); + internalGetMutableRedisConfigs().getMutableMap().clear(); return this; } /** * * *
    -     * Optional. The in-transit encryption for the Redis cluster.
    -     * If not provided, encryption  is disabled for the cluster.
    +     * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
          * 
    * - * - * .google.cloud.redis.cluster.v1beta1.TransitEncryptionMode transit_encryption_mode = 12 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return This builder for chaining. */ - public Builder clearTransitEncryptionMode() { - bitField0_ = (bitField0_ & ~0x00000040); - transitEncryptionMode_ = 0; - onChanged(); + public Builder removeRedisConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableRedisConfigs().getMutableMap().remove(key); return this; } - - private int sizeGb_; - /** - * - * - *
    -     * Output only. Redis memory size in GB for the entire cluster rounded up to
    -     * the next integer.
    -     * 
    - * - * optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return Whether the sizeGb field is set. - */ - @java.lang.Override - public boolean hasSizeGb() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * - * - *
    -     * Output only. Redis memory size in GB for the entire cluster rounded up to
    -     * the next integer.
    -     * 
    - * - * optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The sizeGb. - */ - @java.lang.Override - public int getSizeGb() { - return sizeGb_; + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableRedisConfigs() { + bitField0_ |= 0x00020000; + return internalGetMutableRedisConfigs().getMutableMap(); } /** * * *
    -     * Output only. Redis memory size in GB for the entire cluster rounded up to
    -     * the next integer.
    +     * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
          * 
    * - * optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The sizeGb to set. - * @return This builder for chaining. + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setSizeGb(int value) { - - sizeGb_ = value; - bitField0_ |= 0x00000080; - onChanged(); + public Builder putRedisConfigs(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableRedisConfigs().getMutableMap().put(key, value); + bitField0_ |= 0x00020000; return this; } /** * * *
    -     * Output only. Redis memory size in GB for the entire cluster rounded up to
    -     * the next integer.
    +     * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
          * 
    * - * optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearSizeGb() { - bitField0_ = (bitField0_ & ~0x00000080); - sizeGb_ = 0; - onChanged(); + public Builder putAllRedisConfigs(java.util.Map values) { + internalGetMutableRedisConfigs().getMutableMap().putAll(values); + bitField0_ |= 0x00020000; return this; } - private int shardCount_; + private double preciseSizeGb_; /** * * *
    -     * Required. Number of shards for the Redis cluster.
    +     * Output only. Precise value of redis memory size in GB for the entire
    +     * cluster.
          * 
    * - * optional int32 shard_count = 14 [(.google.api.field_behavior) = REQUIRED]; + * optional double precise_size_gb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return Whether the shardCount field is set. + * @return Whether the preciseSizeGb field is set. */ @java.lang.Override - public boolean hasShardCount() { - return ((bitField0_ & 0x00000100) != 0); + public boolean hasPreciseSizeGb() { + return ((bitField0_ & 0x00040000) != 0); } /** * * *
    -     * Required. Number of shards for the Redis cluster.
    +     * Output only. Precise value of redis memory size in GB for the entire
    +     * cluster.
          * 
    * - * optional int32 shard_count = 14 [(.google.api.field_behavior) = REQUIRED]; + * optional double precise_size_gb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The shardCount. + * @return The preciseSizeGb. */ @java.lang.Override - public int getShardCount() { - return shardCount_; + public double getPreciseSizeGb() { + return preciseSizeGb_; } /** * * *
    -     * Required. Number of shards for the Redis cluster.
    +     * Output only. Precise value of redis memory size in GB for the entire
    +     * cluster.
          * 
    * - * optional int32 shard_count = 14 [(.google.api.field_behavior) = REQUIRED]; + * optional double precise_size_gb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @param value The shardCount to set. + * @param value The preciseSizeGb to set. * @return This builder for chaining. */ - public Builder setShardCount(int value) { + public Builder setPreciseSizeGb(double value) { - shardCount_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * - * - *
    -     * Required. Number of shards for the Redis cluster.
    -     * 
    - * - * optional int32 shard_count = 14 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearShardCount() { - bitField0_ = (bitField0_ & ~0x00000100); - shardCount_ = 0; + preciseSizeGb_ = value; + bitField0_ |= 0x00040000; onChanged(); - return this; - } - - private java.util.List pscConfigs_ = - java.util.Collections.emptyList(); - - private void ensurePscConfigsIsMutable() { - if (!((bitField0_ & 0x00000200) != 0)) { - pscConfigs_ = - new java.util.ArrayList(pscConfigs_); - bitField0_ |= 0x00000200; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.cluster.v1beta1.PscConfig, - com.google.cloud.redis.cluster.v1beta1.PscConfig.Builder, - com.google.cloud.redis.cluster.v1beta1.PscConfigOrBuilder> - pscConfigsBuilder_; - + return this; + } /** * * *
    -     * Required. Each PscConfig configures the consumer network where IPs will
    -     * be designated to the cluster for client access through Private Service
    -     * Connect Automation. Currently, only one PscConfig is supported.
    +     * Output only. Precise value of redis memory size in GB for the entire
    +     * cluster.
          * 
    * - * - * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * optional double precise_size_gb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return This builder for chaining. */ - public java.util.List getPscConfigsList() { - if (pscConfigsBuilder_ == null) { - return java.util.Collections.unmodifiableList(pscConfigs_); - } else { - return pscConfigsBuilder_.getMessageList(); - } + public Builder clearPreciseSizeGb() { + bitField0_ = (bitField0_ & ~0x00040000); + preciseSizeGb_ = 0D; + onChanged(); + return this; } + + private com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zoneDistributionConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig, + com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.Builder, + com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfigOrBuilder> + zoneDistributionConfigBuilder_; /** * * *
    -     * Required. Each PscConfig configures the consumer network where IPs will
    -     * be designated to the cluster for client access through Private Service
    -     * Connect Automation. Currently, only one PscConfig is supported.
    +     * Optional. This config will be used to determine how the customer wants us
    +     * to distribute cluster resources within the region.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return Whether the zoneDistributionConfig field is set. */ - public int getPscConfigsCount() { - if (pscConfigsBuilder_ == null) { - return pscConfigs_.size(); - } else { - return pscConfigsBuilder_.getCount(); - } + public boolean hasZoneDistributionConfig() { + return ((bitField0_ & 0x00080000) != 0); } /** * * *
    -     * Required. Each PscConfig configures the consumer network where IPs will
    -     * be designated to the cluster for client access through Private Service
    -     * Connect Automation. Currently, only one PscConfig is supported.
    +     * Optional. This config will be used to determine how the customer wants us
    +     * to distribute cluster resources within the region.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The zoneDistributionConfig. */ - public com.google.cloud.redis.cluster.v1beta1.PscConfig getPscConfigs(int index) { - if (pscConfigsBuilder_ == null) { - return pscConfigs_.get(index); + public com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig + getZoneDistributionConfig() { + if (zoneDistributionConfigBuilder_ == null) { + return zoneDistributionConfig_ == null + ? com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.getDefaultInstance() + : zoneDistributionConfig_; } else { - return pscConfigsBuilder_.getMessage(index); + return zoneDistributionConfigBuilder_.getMessage(); } } /** * * *
    -     * Required. Each PscConfig configures the consumer network where IPs will
    -     * be designated to the cluster for client access through Private Service
    -     * Connect Automation. Currently, only one PscConfig is supported.
    +     * Optional. This config will be used to determine how the customer wants us
    +     * to distribute cluster resources within the region.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setPscConfigs( - int index, com.google.cloud.redis.cluster.v1beta1.PscConfig value) { - if (pscConfigsBuilder_ == null) { + public Builder setZoneDistributionConfig( + com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig value) { + if (zoneDistributionConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensurePscConfigsIsMutable(); - pscConfigs_.set(index, value); - onChanged(); + zoneDistributionConfig_ = value; } else { - pscConfigsBuilder_.setMessage(index, value); + zoneDistributionConfigBuilder_.setMessage(value); } + bitField0_ |= 0x00080000; + onChanged(); return this; } /** * * *
    -     * Required. Each PscConfig configures the consumer network where IPs will
    -     * be designated to the cluster for client access through Private Service
    -     * Connect Automation. Currently, only one PscConfig is supported.
    +     * Optional. This config will be used to determine how the customer wants us
    +     * to distribute cluster resources within the region.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setPscConfigs( - int index, com.google.cloud.redis.cluster.v1beta1.PscConfig.Builder builderForValue) { - if (pscConfigsBuilder_ == null) { - ensurePscConfigsIsMutable(); - pscConfigs_.set(index, builderForValue.build()); - onChanged(); + public Builder setZoneDistributionConfig( + com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.Builder builderForValue) { + if (zoneDistributionConfigBuilder_ == null) { + zoneDistributionConfig_ = builderForValue.build(); } else { - pscConfigsBuilder_.setMessage(index, builderForValue.build()); + zoneDistributionConfigBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00080000; + onChanged(); return this; } /** * * *
    -     * Required. Each PscConfig configures the consumer network where IPs will
    -     * be designated to the cluster for client access through Private Service
    -     * Connect Automation. Currently, only one PscConfig is supported.
    +     * Optional. This config will be used to determine how the customer wants us
    +     * to distribute cluster resources within the region.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addPscConfigs(com.google.cloud.redis.cluster.v1beta1.PscConfig value) { - if (pscConfigsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); + public Builder mergeZoneDistributionConfig( + com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig value) { + if (zoneDistributionConfigBuilder_ == null) { + if (((bitField0_ & 0x00080000) != 0) + && zoneDistributionConfig_ != null + && zoneDistributionConfig_ + != com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig + .getDefaultInstance()) { + getZoneDistributionConfigBuilder().mergeFrom(value); + } else { + zoneDistributionConfig_ = value; } - ensurePscConfigsIsMutable(); - pscConfigs_.add(value); - onChanged(); } else { - pscConfigsBuilder_.addMessage(value); + zoneDistributionConfigBuilder_.mergeFrom(value); + } + if (zoneDistributionConfig_ != null) { + bitField0_ |= 0x00080000; + onChanged(); } return this; } @@ -5119,523 +10421,509 @@ public Builder addPscConfigs(com.google.cloud.redis.cluster.v1beta1.PscConfig va * * *
    -     * Required. Each PscConfig configures the consumer network where IPs will
    -     * be designated to the cluster for client access through Private Service
    -     * Connect Automation. Currently, only one PscConfig is supported.
    +     * Optional. This config will be used to determine how the customer wants us
    +     * to distribute cluster resources within the region.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addPscConfigs( - int index, com.google.cloud.redis.cluster.v1beta1.PscConfig value) { - if (pscConfigsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePscConfigsIsMutable(); - pscConfigs_.add(index, value); - onChanged(); - } else { - pscConfigsBuilder_.addMessage(index, value); + public Builder clearZoneDistributionConfig() { + bitField0_ = (bitField0_ & ~0x00080000); + zoneDistributionConfig_ = null; + if (zoneDistributionConfigBuilder_ != null) { + zoneDistributionConfigBuilder_.dispose(); + zoneDistributionConfigBuilder_ = null; } + onChanged(); return this; } /** * * *
    -     * Required. Each PscConfig configures the consumer network where IPs will
    -     * be designated to the cluster for client access through Private Service
    -     * Connect Automation. Currently, only one PscConfig is supported.
    +     * Optional. This config will be used to determine how the customer wants us
    +     * to distribute cluster resources within the region.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addPscConfigs( - com.google.cloud.redis.cluster.v1beta1.PscConfig.Builder builderForValue) { - if (pscConfigsBuilder_ == null) { - ensurePscConfigsIsMutable(); - pscConfigs_.add(builderForValue.build()); - onChanged(); - } else { - pscConfigsBuilder_.addMessage(builderForValue.build()); - } - return this; + public com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.Builder + getZoneDistributionConfigBuilder() { + bitField0_ |= 0x00080000; + onChanged(); + return getZoneDistributionConfigFieldBuilder().getBuilder(); } /** * * *
    -     * Required. Each PscConfig configures the consumer network where IPs will
    -     * be designated to the cluster for client access through Private Service
    -     * Connect Automation. Currently, only one PscConfig is supported.
    +     * Optional. This config will be used to determine how the customer wants us
    +     * to distribute cluster resources within the region.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addPscConfigs( - int index, com.google.cloud.redis.cluster.v1beta1.PscConfig.Builder builderForValue) { - if (pscConfigsBuilder_ == null) { - ensurePscConfigsIsMutable(); - pscConfigs_.add(index, builderForValue.build()); - onChanged(); + public com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfigOrBuilder + getZoneDistributionConfigOrBuilder() { + if (zoneDistributionConfigBuilder_ != null) { + return zoneDistributionConfigBuilder_.getMessageOrBuilder(); } else { - pscConfigsBuilder_.addMessage(index, builderForValue.build()); + return zoneDistributionConfig_ == null + ? com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.getDefaultInstance() + : zoneDistributionConfig_; } - return this; } /** * * *
    -     * Required. Each PscConfig configures the consumer network where IPs will
    -     * be designated to the cluster for client access through Private Service
    -     * Connect Automation. Currently, only one PscConfig is supported.
    +     * Optional. This config will be used to determine how the customer wants us
    +     * to distribute cluster resources within the region.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addAllPscConfigs( - java.lang.Iterable values) { - if (pscConfigsBuilder_ == null) { - ensurePscConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pscConfigs_); - onChanged(); - } else { - pscConfigsBuilder_.addAllMessages(values); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig, + com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.Builder, + com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfigOrBuilder> + getZoneDistributionConfigFieldBuilder() { + if (zoneDistributionConfigBuilder_ == null) { + zoneDistributionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig, + com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.Builder, + com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfigOrBuilder>( + getZoneDistributionConfig(), getParentForChildren(), isClean()); + zoneDistributionConfig_ = null; } - return this; + return zoneDistributionConfigBuilder_; } + + private com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + crossClusterReplicationConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Builder, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfigOrBuilder> + crossClusterReplicationConfigBuilder_; /** * * *
    -     * Required. Each PscConfig configures the consumer network where IPs will
    -     * be designated to the cluster for client access through Private Service
    -     * Connect Automation. Currently, only one PscConfig is supported.
    +     * Optional. Cross cluster replication config.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig cross_cluster_replication_config = 24 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return Whether the crossClusterReplicationConfig field is set. */ - public Builder clearPscConfigs() { - if (pscConfigsBuilder_ == null) { - pscConfigs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); - onChanged(); - } else { - pscConfigsBuilder_.clear(); - } - return this; + public boolean hasCrossClusterReplicationConfig() { + return ((bitField0_ & 0x00100000) != 0); } /** * * *
    -     * Required. Each PscConfig configures the consumer network where IPs will
    -     * be designated to the cluster for client access through Private Service
    -     * Connect Automation. Currently, only one PscConfig is supported.
    +     * Optional. Cross cluster replication config.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig cross_cluster_replication_config = 24 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The crossClusterReplicationConfig. */ - public Builder removePscConfigs(int index) { - if (pscConfigsBuilder_ == null) { - ensurePscConfigsIsMutable(); - pscConfigs_.remove(index); - onChanged(); + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + getCrossClusterReplicationConfig() { + if (crossClusterReplicationConfigBuilder_ == null) { + return crossClusterReplicationConfig_ == null + ? com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .getDefaultInstance() + : crossClusterReplicationConfig_; } else { - pscConfigsBuilder_.remove(index); + return crossClusterReplicationConfigBuilder_.getMessage(); } - return this; } /** * * *
    -     * Required. Each PscConfig configures the consumer network where IPs will
    -     * be designated to the cluster for client access through Private Service
    -     * Connect Automation. Currently, only one PscConfig is supported.
    +     * Optional. Cross cluster replication config.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig cross_cluster_replication_config = 24 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.redis.cluster.v1beta1.PscConfig.Builder getPscConfigsBuilder( - int index) { - return getPscConfigsFieldBuilder().getBuilder(index); + public Builder setCrossClusterReplicationConfig( + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig value) { + if (crossClusterReplicationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + crossClusterReplicationConfig_ = value; + } else { + crossClusterReplicationConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00100000; + onChanged(); + return this; } /** * * *
    -     * Required. Each PscConfig configures the consumer network where IPs will
    -     * be designated to the cluster for client access through Private Service
    -     * Connect Automation. Currently, only one PscConfig is supported.
    +     * Optional. Cross cluster replication config.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig cross_cluster_replication_config = 24 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.redis.cluster.v1beta1.PscConfigOrBuilder getPscConfigsOrBuilder( - int index) { - if (pscConfigsBuilder_ == null) { - return pscConfigs_.get(index); + public Builder setCrossClusterReplicationConfig( + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Builder + builderForValue) { + if (crossClusterReplicationConfigBuilder_ == null) { + crossClusterReplicationConfig_ = builderForValue.build(); } else { - return pscConfigsBuilder_.getMessageOrBuilder(index); + crossClusterReplicationConfigBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00100000; + onChanged(); + return this; } /** * * *
    -     * Required. Each PscConfig configures the consumer network where IPs will
    -     * be designated to the cluster for client access through Private Service
    -     * Connect Automation. Currently, only one PscConfig is supported.
    +     * Optional. Cross cluster replication config.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig cross_cluster_replication_config = 24 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List - getPscConfigsOrBuilderList() { - if (pscConfigsBuilder_ != null) { - return pscConfigsBuilder_.getMessageOrBuilderList(); + public Builder mergeCrossClusterReplicationConfig( + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig value) { + if (crossClusterReplicationConfigBuilder_ == null) { + if (((bitField0_ & 0x00100000) != 0) + && crossClusterReplicationConfig_ != null + && crossClusterReplicationConfig_ + != com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .getDefaultInstance()) { + getCrossClusterReplicationConfigBuilder().mergeFrom(value); + } else { + crossClusterReplicationConfig_ = value; + } } else { - return java.util.Collections.unmodifiableList(pscConfigs_); + crossClusterReplicationConfigBuilder_.mergeFrom(value); + } + if (crossClusterReplicationConfig_ != null) { + bitField0_ |= 0x00100000; + onChanged(); } + return this; } /** * * *
    -     * Required. Each PscConfig configures the consumer network where IPs will
    -     * be designated to the cluster for client access through Private Service
    -     * Connect Automation. Currently, only one PscConfig is supported.
    +     * Optional. Cross cluster replication config.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig cross_cluster_replication_config = 24 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.redis.cluster.v1beta1.PscConfig.Builder addPscConfigsBuilder() { - return getPscConfigsFieldBuilder() - .addBuilder(com.google.cloud.redis.cluster.v1beta1.PscConfig.getDefaultInstance()); + public Builder clearCrossClusterReplicationConfig() { + bitField0_ = (bitField0_ & ~0x00100000); + crossClusterReplicationConfig_ = null; + if (crossClusterReplicationConfigBuilder_ != null) { + crossClusterReplicationConfigBuilder_.dispose(); + crossClusterReplicationConfigBuilder_ = null; + } + onChanged(); + return this; } /** * * *
    -     * Required. Each PscConfig configures the consumer network where IPs will
    -     * be designated to the cluster for client access through Private Service
    -     * Connect Automation. Currently, only one PscConfig is supported.
    +     * Optional. Cross cluster replication config.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig cross_cluster_replication_config = 24 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.redis.cluster.v1beta1.PscConfig.Builder addPscConfigsBuilder( - int index) { - return getPscConfigsFieldBuilder() - .addBuilder(index, com.google.cloud.redis.cluster.v1beta1.PscConfig.getDefaultInstance()); + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Builder + getCrossClusterReplicationConfigBuilder() { + bitField0_ |= 0x00100000; + onChanged(); + return getCrossClusterReplicationConfigFieldBuilder().getBuilder(); } /** * * *
    -     * Required. Each PscConfig configures the consumer network where IPs will
    -     * be designated to the cluster for client access through Private Service
    -     * Connect Automation. Currently, only one PscConfig is supported.
    +     * Optional. Cross cluster replication config.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig cross_cluster_replication_config = 24 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List - getPscConfigsBuilderList() { - return getPscConfigsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.cluster.v1beta1.PscConfig, - com.google.cloud.redis.cluster.v1beta1.PscConfig.Builder, - com.google.cloud.redis.cluster.v1beta1.PscConfigOrBuilder> - getPscConfigsFieldBuilder() { - if (pscConfigsBuilder_ == null) { - pscConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.cluster.v1beta1.PscConfig, - com.google.cloud.redis.cluster.v1beta1.PscConfig.Builder, - com.google.cloud.redis.cluster.v1beta1.PscConfigOrBuilder>( - pscConfigs_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); - pscConfigs_ = null; - } - return pscConfigsBuilder_; - } - - private java.util.List - discoveryEndpoints_ = java.util.Collections.emptyList(); - - private void ensureDiscoveryEndpointsIsMutable() { - if (!((bitField0_ & 0x00000400) != 0)) { - discoveryEndpoints_ = - new java.util.ArrayList( - discoveryEndpoints_); - bitField0_ |= 0x00000400; + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfigOrBuilder + getCrossClusterReplicationConfigOrBuilder() { + if (crossClusterReplicationConfigBuilder_ != null) { + return crossClusterReplicationConfigBuilder_.getMessageOrBuilder(); + } else { + return crossClusterReplicationConfig_ == null + ? com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .getDefaultInstance() + : crossClusterReplicationConfig_; } } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint, - com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint.Builder, - com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpointOrBuilder> - discoveryEndpointsBuilder_; - /** * * *
    -     * Output only. Endpoints created on each given network, for Redis clients to
    -     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * Optional. Cross cluster replication config.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig cross_cluster_replication_config = 24 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List - getDiscoveryEndpointsList() { - if (discoveryEndpointsBuilder_ == null) { - return java.util.Collections.unmodifiableList(discoveryEndpoints_); - } else { - return discoveryEndpointsBuilder_.getMessageList(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Builder, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfigOrBuilder> + getCrossClusterReplicationConfigFieldBuilder() { + if (crossClusterReplicationConfigBuilder_ == null) { + crossClusterReplicationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Builder, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfigOrBuilder>( + getCrossClusterReplicationConfig(), getParentForChildren(), isClean()); + crossClusterReplicationConfig_ = null; } + return crossClusterReplicationConfigBuilder_; } + + private boolean deletionProtectionEnabled_; /** * * *
    -     * Output only. Endpoints created on each given network, for Redis clients to
    -     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * Optional. The delete operation will fail when the value is set to true.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool deletion_protection_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return Whether the deletionProtectionEnabled field is set. */ - public int getDiscoveryEndpointsCount() { - if (discoveryEndpointsBuilder_ == null) { - return discoveryEndpoints_.size(); - } else { - return discoveryEndpointsBuilder_.getCount(); - } + @java.lang.Override + public boolean hasDeletionProtectionEnabled() { + return ((bitField0_ & 0x00200000) != 0); } /** * * *
    -     * Output only. Endpoints created on each given network, for Redis clients to
    -     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * Optional. The delete operation will fail when the value is set to true.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool deletion_protection_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The deletionProtectionEnabled. */ - public com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint getDiscoveryEndpoints( - int index) { - if (discoveryEndpointsBuilder_ == null) { - return discoveryEndpoints_.get(index); - } else { - return discoveryEndpointsBuilder_.getMessage(index); - } + @java.lang.Override + public boolean getDeletionProtectionEnabled() { + return deletionProtectionEnabled_; } /** * * *
    -     * Output only. Endpoints created on each given network, for Redis clients to
    -     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * Optional. The delete operation will fail when the value is set to true.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool deletion_protection_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @param value The deletionProtectionEnabled to set. + * @return This builder for chaining. */ - public Builder setDiscoveryEndpoints( - int index, com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint value) { - if (discoveryEndpointsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDiscoveryEndpointsIsMutable(); - discoveryEndpoints_.set(index, value); - onChanged(); - } else { - discoveryEndpointsBuilder_.setMessage(index, value); - } + public Builder setDeletionProtectionEnabled(boolean value) { + + deletionProtectionEnabled_ = value; + bitField0_ |= 0x00200000; + onChanged(); return this; } /** * * *
    -     * Output only. Endpoints created on each given network, for Redis clients to
    -     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * Optional. The delete operation will fail when the value is set to true.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool deletion_protection_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return This builder for chaining. */ - public Builder setDiscoveryEndpoints( - int index, - com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint.Builder builderForValue) { - if (discoveryEndpointsBuilder_ == null) { - ensureDiscoveryEndpointsIsMutable(); - discoveryEndpoints_.set(index, builderForValue.build()); - onChanged(); - } else { - discoveryEndpointsBuilder_.setMessage(index, builderForValue.build()); - } + public Builder clearDeletionProtectionEnabled() { + bitField0_ = (bitField0_ & ~0x00200000); + deletionProtectionEnabled_ = false; + onChanged(); return this; } + + private com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy maintenancePolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy, + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy.Builder, + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicyOrBuilder> + maintenancePolicyBuilder_; /** * * *
    -     * Output only. Endpoints created on each given network, for Redis clients to
    -     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * Optional. ClusterMaintenancePolicy determines when to allow or deny
    +     * updates.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy maintenance_policy = 26 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return Whether the maintenancePolicy field is set. */ - public Builder addDiscoveryEndpoints( - com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint value) { - if (discoveryEndpointsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDiscoveryEndpointsIsMutable(); - discoveryEndpoints_.add(value); - onChanged(); - } else { - discoveryEndpointsBuilder_.addMessage(value); - } - return this; + public boolean hasMaintenancePolicy() { + return ((bitField0_ & 0x00400000) != 0); } /** * * *
    -     * Output only. Endpoints created on each given network, for Redis clients to
    -     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * Optional. ClusterMaintenancePolicy determines when to allow or deny
    +     * updates.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy maintenance_policy = 26 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The maintenancePolicy. */ - public Builder addDiscoveryEndpoints( - int index, com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint value) { - if (discoveryEndpointsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDiscoveryEndpointsIsMutable(); - discoveryEndpoints_.add(index, value); - onChanged(); + public com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy getMaintenancePolicy() { + if (maintenancePolicyBuilder_ == null) { + return maintenancePolicy_ == null + ? com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy.getDefaultInstance() + : maintenancePolicy_; } else { - discoveryEndpointsBuilder_.addMessage(index, value); + return maintenancePolicyBuilder_.getMessage(); } - return this; } /** * * *
    -     * Output only. Endpoints created on each given network, for Redis clients to
    -     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * Optional. ClusterMaintenancePolicy determines when to allow or deny
    +     * updates.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy maintenance_policy = 26 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addDiscoveryEndpoints( - com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint.Builder builderForValue) { - if (discoveryEndpointsBuilder_ == null) { - ensureDiscoveryEndpointsIsMutable(); - discoveryEndpoints_.add(builderForValue.build()); - onChanged(); + public Builder setMaintenancePolicy( + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy value) { + if (maintenancePolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maintenancePolicy_ = value; } else { - discoveryEndpointsBuilder_.addMessage(builderForValue.build()); + maintenancePolicyBuilder_.setMessage(value); } + bitField0_ |= 0x00400000; + onChanged(); return this; } /** * * *
    -     * Output only. Endpoints created on each given network, for Redis clients to
    -     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * Optional. ClusterMaintenancePolicy determines when to allow or deny
    +     * updates.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy maintenance_policy = 26 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addDiscoveryEndpoints( - int index, - com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint.Builder builderForValue) { - if (discoveryEndpointsBuilder_ == null) { - ensureDiscoveryEndpointsIsMutable(); - discoveryEndpoints_.add(index, builderForValue.build()); - onChanged(); + public Builder setMaintenancePolicy( + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy.Builder builderForValue) { + if (maintenancePolicyBuilder_ == null) { + maintenancePolicy_ = builderForValue.build(); } else { - discoveryEndpointsBuilder_.addMessage(index, builderForValue.build()); + maintenancePolicyBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00400000; + onChanged(); return this; } /** * * *
    -     * Output only. Endpoints created on each given network, for Redis clients to
    -     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * Optional. ClusterMaintenancePolicy determines when to allow or deny
    +     * updates.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy maintenance_policy = 26 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addAllDiscoveryEndpoints( - java.lang.Iterable - values) { - if (discoveryEndpointsBuilder_ == null) { - ensureDiscoveryEndpointsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, discoveryEndpoints_); - onChanged(); + public Builder mergeMaintenancePolicy( + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy value) { + if (maintenancePolicyBuilder_ == null) { + if (((bitField0_ & 0x00400000) != 0) + && maintenancePolicy_ != null + && maintenancePolicy_ + != com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy + .getDefaultInstance()) { + getMaintenancePolicyBuilder().mergeFrom(value); + } else { + maintenancePolicy_ = value; + } } else { - discoveryEndpointsBuilder_.addAllMessages(values); + maintenancePolicyBuilder_.mergeFrom(value); + } + if (maintenancePolicy_ != null) { + bitField0_ |= 0x00400000; + onChanged(); } return this; } @@ -5643,395 +10931,409 @@ public Builder addAllDiscoveryEndpoints( * * *
    -     * Output only. Endpoints created on each given network, for Redis clients to
    -     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * Optional. ClusterMaintenancePolicy determines when to allow or deny
    +     * updates.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy maintenance_policy = 26 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearDiscoveryEndpoints() { - if (discoveryEndpointsBuilder_ == null) { - discoveryEndpoints_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); - onChanged(); - } else { - discoveryEndpointsBuilder_.clear(); + public Builder clearMaintenancePolicy() { + bitField0_ = (bitField0_ & ~0x00400000); + maintenancePolicy_ = null; + if (maintenancePolicyBuilder_ != null) { + maintenancePolicyBuilder_.dispose(); + maintenancePolicyBuilder_ = null; } + onChanged(); return this; } /** * * *
    -     * Output only. Endpoints created on each given network, for Redis clients to
    -     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * Optional. ClusterMaintenancePolicy determines when to allow or deny
    +     * updates.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy maintenance_policy = 26 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder removeDiscoveryEndpoints(int index) { - if (discoveryEndpointsBuilder_ == null) { - ensureDiscoveryEndpointsIsMutable(); - discoveryEndpoints_.remove(index); - onChanged(); - } else { - discoveryEndpointsBuilder_.remove(index); - } - return this; + public com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy.Builder + getMaintenancePolicyBuilder() { + bitField0_ |= 0x00400000; + onChanged(); + return getMaintenancePolicyFieldBuilder().getBuilder(); } /** * * *
    -     * Output only. Endpoints created on each given network, for Redis clients to
    -     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * Optional. ClusterMaintenancePolicy determines when to allow or deny
    +     * updates.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy maintenance_policy = 26 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint.Builder - getDiscoveryEndpointsBuilder(int index) { - return getDiscoveryEndpointsFieldBuilder().getBuilder(index); + public com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicyOrBuilder + getMaintenancePolicyOrBuilder() { + if (maintenancePolicyBuilder_ != null) { + return maintenancePolicyBuilder_.getMessageOrBuilder(); + } else { + return maintenancePolicy_ == null + ? com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy.getDefaultInstance() + : maintenancePolicy_; + } } /** * * *
    -     * Output only. Endpoints created on each given network, for Redis clients to
    -     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * Optional. ClusterMaintenancePolicy determines when to allow or deny
    +     * updates.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy maintenance_policy = 26 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpointOrBuilder - getDiscoveryEndpointsOrBuilder(int index) { - if (discoveryEndpointsBuilder_ == null) { - return discoveryEndpoints_.get(index); - } else { - return discoveryEndpointsBuilder_.getMessageOrBuilder(index); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy, + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy.Builder, + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicyOrBuilder> + getMaintenancePolicyFieldBuilder() { + if (maintenancePolicyBuilder_ == null) { + maintenancePolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy, + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy.Builder, + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicyOrBuilder>( + getMaintenancePolicy(), getParentForChildren(), isClean()); + maintenancePolicy_ = null; } + return maintenancePolicyBuilder_; } + + private com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule maintenanceSchedule_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule, + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule.Builder, + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceScheduleOrBuilder> + maintenanceScheduleBuilder_; /** * * *
    -     * Output only. Endpoints created on each given network, for Redis clients to
    -     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * Output only. ClusterMaintenanceSchedule Output only Published maintenance
    +     * schedule.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule maintenance_schedule = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return Whether the maintenanceSchedule field is set. */ - public java.util.List< - ? extends com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpointOrBuilder> - getDiscoveryEndpointsOrBuilderList() { - if (discoveryEndpointsBuilder_ != null) { - return discoveryEndpointsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(discoveryEndpoints_); - } + public boolean hasMaintenanceSchedule() { + return ((bitField0_ & 0x00800000) != 0); } /** * * *
    -     * Output only. Endpoints created on each given network, for Redis clients to
    -     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * Output only. ClusterMaintenanceSchedule Output only Published maintenance
    +     * schedule.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule maintenance_schedule = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The maintenanceSchedule. */ - public com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint.Builder - addDiscoveryEndpointsBuilder() { - return getDiscoveryEndpointsFieldBuilder() - .addBuilder( - com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint.getDefaultInstance()); + public com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule + getMaintenanceSchedule() { + if (maintenanceScheduleBuilder_ == null) { + return maintenanceSchedule_ == null + ? com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule.getDefaultInstance() + : maintenanceSchedule_; + } else { + return maintenanceScheduleBuilder_.getMessage(); + } } /** * * *
    -     * Output only. Endpoints created on each given network, for Redis clients to
    -     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * Output only. ClusterMaintenanceSchedule Output only Published maintenance
    +     * schedule.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule maintenance_schedule = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint.Builder - addDiscoveryEndpointsBuilder(int index) { - return getDiscoveryEndpointsFieldBuilder() - .addBuilder( - index, com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint.getDefaultInstance()); + public Builder setMaintenanceSchedule( + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule value) { + if (maintenanceScheduleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maintenanceSchedule_ = value; + } else { + maintenanceScheduleBuilder_.setMessage(value); + } + bitField0_ |= 0x00800000; + onChanged(); + return this; } /** * * *
    -     * Output only. Endpoints created on each given network, for Redis clients to
    -     * connect to the cluster. Currently only one discovery endpoint is supported.
    +     * Output only. ClusterMaintenanceSchedule Output only Published maintenance
    +     * schedule.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint discovery_endpoints = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule maintenance_schedule = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public java.util.List - getDiscoveryEndpointsBuilderList() { - return getDiscoveryEndpointsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint, - com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint.Builder, - com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpointOrBuilder> - getDiscoveryEndpointsFieldBuilder() { - if (discoveryEndpointsBuilder_ == null) { - discoveryEndpointsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint, - com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpoint.Builder, - com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpointOrBuilder>( - discoveryEndpoints_, - ((bitField0_ & 0x00000400) != 0), - getParentForChildren(), - isClean()); - discoveryEndpoints_ = null; - } - return discoveryEndpointsBuilder_; - } - - private java.util.List pscConnections_ = - java.util.Collections.emptyList(); - - private void ensurePscConnectionsIsMutable() { - if (!((bitField0_ & 0x00000800) != 0)) { - pscConnections_ = - new java.util.ArrayList( - pscConnections_); - bitField0_ |= 0x00000800; + public Builder setMaintenanceSchedule( + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule.Builder builderForValue) { + if (maintenanceScheduleBuilder_ == null) { + maintenanceSchedule_ = builderForValue.build(); + } else { + maintenanceScheduleBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00800000; + onChanged(); + return this; } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.cluster.v1beta1.PscConnection, - com.google.cloud.redis.cluster.v1beta1.PscConnection.Builder, - com.google.cloud.redis.cluster.v1beta1.PscConnectionOrBuilder> - pscConnectionsBuilder_; - /** * * *
    -     * Output only. PSC connections for discovery of the cluster topology and
    -     * accessing the cluster.
    +     * Output only. ClusterMaintenanceSchedule Output only Published maintenance
    +     * schedule.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule maintenance_schedule = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public java.util.List - getPscConnectionsList() { - if (pscConnectionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(pscConnections_); + public Builder mergeMaintenanceSchedule( + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule value) { + if (maintenanceScheduleBuilder_ == null) { + if (((bitField0_ & 0x00800000) != 0) + && maintenanceSchedule_ != null + && maintenanceSchedule_ + != com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule + .getDefaultInstance()) { + getMaintenanceScheduleBuilder().mergeFrom(value); + } else { + maintenanceSchedule_ = value; + } } else { - return pscConnectionsBuilder_.getMessageList(); + maintenanceScheduleBuilder_.mergeFrom(value); } + if (maintenanceSchedule_ != null) { + bitField0_ |= 0x00800000; + onChanged(); + } + return this; } /** * * *
    -     * Output only. PSC connections for discovery of the cluster topology and
    -     * accessing the cluster.
    +     * Output only. ClusterMaintenanceSchedule Output only Published maintenance
    +     * schedule.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule maintenance_schedule = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public int getPscConnectionsCount() { - if (pscConnectionsBuilder_ == null) { - return pscConnections_.size(); - } else { - return pscConnectionsBuilder_.getCount(); + public Builder clearMaintenanceSchedule() { + bitField0_ = (bitField0_ & ~0x00800000); + maintenanceSchedule_ = null; + if (maintenanceScheduleBuilder_ != null) { + maintenanceScheduleBuilder_.dispose(); + maintenanceScheduleBuilder_ = null; } + onChanged(); + return this; } /** * * *
    -     * Output only. PSC connections for discovery of the cluster topology and
    -     * accessing the cluster.
    +     * Output only. ClusterMaintenanceSchedule Output only Published maintenance
    +     * schedule.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule maintenance_schedule = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.redis.cluster.v1beta1.PscConnection getPscConnections(int index) { - if (pscConnectionsBuilder_ == null) { - return pscConnections_.get(index); - } else { - return pscConnectionsBuilder_.getMessage(index); - } + public com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule.Builder + getMaintenanceScheduleBuilder() { + bitField0_ |= 0x00800000; + onChanged(); + return getMaintenanceScheduleFieldBuilder().getBuilder(); } /** * * *
    -     * Output only. PSC connections for discovery of the cluster topology and
    -     * accessing the cluster.
    +     * Output only. ClusterMaintenanceSchedule Output only Published maintenance
    +     * schedule.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule maintenance_schedule = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setPscConnections( - int index, com.google.cloud.redis.cluster.v1beta1.PscConnection value) { - if (pscConnectionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePscConnectionsIsMutable(); - pscConnections_.set(index, value); - onChanged(); + public com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceScheduleOrBuilder + getMaintenanceScheduleOrBuilder() { + if (maintenanceScheduleBuilder_ != null) { + return maintenanceScheduleBuilder_.getMessageOrBuilder(); } else { - pscConnectionsBuilder_.setMessage(index, value); + return maintenanceSchedule_ == null + ? com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule.getDefaultInstance() + : maintenanceSchedule_; } - return this; } /** * * *
    -     * Output only. PSC connections for discovery of the cluster topology and
    -     * accessing the cluster.
    +     * Output only. ClusterMaintenanceSchedule Output only Published maintenance
    +     * schedule.
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional .google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule maintenance_schedule = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setPscConnections( - int index, com.google.cloud.redis.cluster.v1beta1.PscConnection.Builder builderForValue) { - if (pscConnectionsBuilder_ == null) { - ensurePscConnectionsIsMutable(); - pscConnections_.set(index, builderForValue.build()); - onChanged(); - } else { - pscConnectionsBuilder_.setMessage(index, builderForValue.build()); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule, + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule.Builder, + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceScheduleOrBuilder> + getMaintenanceScheduleFieldBuilder() { + if (maintenanceScheduleBuilder_ == null) { + maintenanceScheduleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule, + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule.Builder, + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceScheduleOrBuilder>( + getMaintenanceSchedule(), getParentForChildren(), isClean()); + maintenanceSchedule_ = null; + } + return maintenanceScheduleBuilder_; + } + + private java.util.List + pscServiceAttachments_ = java.util.Collections.emptyList(); + + private void ensurePscServiceAttachmentsIsMutable() { + if (!((bitField0_ & 0x01000000) != 0)) { + pscServiceAttachments_ = + new java.util.ArrayList( + pscServiceAttachments_); + bitField0_ |= 0x01000000; } - return this; } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment, + com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment.Builder, + com.google.cloud.redis.cluster.v1beta1.PscServiceAttachmentOrBuilder> + pscServiceAttachmentsBuilder_; + /** * * *
    -     * Output only. PSC connections for discovery of the cluster topology and
    -     * accessing the cluster.
    +     * Output only. Service attachment details to configure Psc connections
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1beta1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder addPscConnections(com.google.cloud.redis.cluster.v1beta1.PscConnection value) { - if (pscConnectionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePscConnectionsIsMutable(); - pscConnections_.add(value); - onChanged(); + public java.util.List + getPscServiceAttachmentsList() { + if (pscServiceAttachmentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(pscServiceAttachments_); } else { - pscConnectionsBuilder_.addMessage(value); + return pscServiceAttachmentsBuilder_.getMessageList(); } - return this; } /** * * *
    -     * Output only. PSC connections for discovery of the cluster topology and
    -     * accessing the cluster.
    +     * Output only. Service attachment details to configure Psc connections
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1beta1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder addPscConnections( - int index, com.google.cloud.redis.cluster.v1beta1.PscConnection value) { - if (pscConnectionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePscConnectionsIsMutable(); - pscConnections_.add(index, value); - onChanged(); + public int getPscServiceAttachmentsCount() { + if (pscServiceAttachmentsBuilder_ == null) { + return pscServiceAttachments_.size(); } else { - pscConnectionsBuilder_.addMessage(index, value); + return pscServiceAttachmentsBuilder_.getCount(); } - return this; } /** * * *
    -     * Output only. PSC connections for discovery of the cluster topology and
    -     * accessing the cluster.
    +     * Output only. Service attachment details to configure Psc connections
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1beta1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder addPscConnections( - com.google.cloud.redis.cluster.v1beta1.PscConnection.Builder builderForValue) { - if (pscConnectionsBuilder_ == null) { - ensurePscConnectionsIsMutable(); - pscConnections_.add(builderForValue.build()); - onChanged(); + public com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment getPscServiceAttachments( + int index) { + if (pscServiceAttachmentsBuilder_ == null) { + return pscServiceAttachments_.get(index); } else { - pscConnectionsBuilder_.addMessage(builderForValue.build()); + return pscServiceAttachmentsBuilder_.getMessage(index); } - return this; } /** * * *
    -     * Output only. PSC connections for discovery of the cluster topology and
    -     * accessing the cluster.
    +     * Output only. Service attachment details to configure Psc connections
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1beta1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder addPscConnections( - int index, com.google.cloud.redis.cluster.v1beta1.PscConnection.Builder builderForValue) { - if (pscConnectionsBuilder_ == null) { - ensurePscConnectionsIsMutable(); - pscConnections_.add(index, builderForValue.build()); + public Builder setPscServiceAttachments( + int index, com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment value) { + if (pscServiceAttachmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePscServiceAttachmentsIsMutable(); + pscServiceAttachments_.set(index, value); onChanged(); } else { - pscConnectionsBuilder_.addMessage(index, builderForValue.build()); + pscServiceAttachmentsBuilder_.setMessage(index, value); } return this; } @@ -6039,22 +11341,22 @@ public Builder addPscConnections( * * *
    -     * Output only. PSC connections for discovery of the cluster topology and
    -     * accessing the cluster.
    +     * Output only. Service attachment details to configure Psc connections
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1beta1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder addAllPscConnections( - java.lang.Iterable values) { - if (pscConnectionsBuilder_ == null) { - ensurePscConnectionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pscConnections_); + public Builder setPscServiceAttachments( + int index, + com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment.Builder builderForValue) { + if (pscServiceAttachmentsBuilder_ == null) { + ensurePscServiceAttachmentsIsMutable(); + pscServiceAttachments_.set(index, builderForValue.build()); onChanged(); } else { - pscConnectionsBuilder_.addAllMessages(values); + pscServiceAttachmentsBuilder_.setMessage(index, builderForValue.build()); } return this; } @@ -6062,21 +11364,24 @@ public Builder addAllPscConnections( * * *
    -     * Output only. PSC connections for discovery of the cluster topology and
    -     * accessing the cluster.
    +     * Output only. Service attachment details to configure Psc connections
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1beta1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearPscConnections() { - if (pscConnectionsBuilder_ == null) { - pscConnections_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); + public Builder addPscServiceAttachments( + com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment value) { + if (pscServiceAttachmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePscServiceAttachmentsIsMutable(); + pscServiceAttachments_.add(value); onChanged(); } else { - pscConnectionsBuilder_.clear(); + pscServiceAttachmentsBuilder_.addMessage(value); } return this; } @@ -6084,21 +11389,24 @@ public Builder clearPscConnections() { * * *
    -     * Output only. PSC connections for discovery of the cluster topology and
    -     * accessing the cluster.
    +     * Output only. Service attachment details to configure Psc connections
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1beta1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder removePscConnections(int index) { - if (pscConnectionsBuilder_ == null) { - ensurePscConnectionsIsMutable(); - pscConnections_.remove(index); + public Builder addPscServiceAttachments( + int index, com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment value) { + if (pscServiceAttachmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePscServiceAttachmentsIsMutable(); + pscServiceAttachments_.add(index, value); onChanged(); } else { - pscConnectionsBuilder_.remove(index); + pscServiceAttachmentsBuilder_.addMessage(index, value); } return this; } @@ -6106,876 +11414,880 @@ public Builder removePscConnections(int index) { * * *
    -     * Output only. PSC connections for discovery of the cluster topology and
    -     * accessing the cluster.
    +     * Output only. Service attachment details to configure Psc connections
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1beta1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.redis.cluster.v1beta1.PscConnection.Builder getPscConnectionsBuilder( - int index) { - return getPscConnectionsFieldBuilder().getBuilder(index); + public Builder addPscServiceAttachments( + com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment.Builder builderForValue) { + if (pscServiceAttachmentsBuilder_ == null) { + ensurePscServiceAttachmentsIsMutable(); + pscServiceAttachments_.add(builderForValue.build()); + onChanged(); + } else { + pscServiceAttachmentsBuilder_.addMessage(builderForValue.build()); + } + return this; } /** * * *
    -     * Output only. PSC connections for discovery of the cluster topology and
    -     * accessing the cluster.
    +     * Output only. Service attachment details to configure Psc connections
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1beta1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.redis.cluster.v1beta1.PscConnectionOrBuilder getPscConnectionsOrBuilder( - int index) { - if (pscConnectionsBuilder_ == null) { - return pscConnections_.get(index); + public Builder addPscServiceAttachments( + int index, + com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment.Builder builderForValue) { + if (pscServiceAttachmentsBuilder_ == null) { + ensurePscServiceAttachmentsIsMutable(); + pscServiceAttachments_.add(index, builderForValue.build()); + onChanged(); } else { - return pscConnectionsBuilder_.getMessageOrBuilder(index); + pscServiceAttachmentsBuilder_.addMessage(index, builderForValue.build()); } + return this; } /** * * *
    -     * Output only. PSC connections for discovery of the cluster topology and
    -     * accessing the cluster.
    +     * Output only. Service attachment details to configure Psc connections
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1beta1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public java.util.List - getPscConnectionsOrBuilderList() { - if (pscConnectionsBuilder_ != null) { - return pscConnectionsBuilder_.getMessageOrBuilderList(); + public Builder addAllPscServiceAttachments( + java.lang.Iterable + values) { + if (pscServiceAttachmentsBuilder_ == null) { + ensurePscServiceAttachmentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pscServiceAttachments_); + onChanged(); } else { - return java.util.Collections.unmodifiableList(pscConnections_); + pscServiceAttachmentsBuilder_.addAllMessages(values); } + return this; } /** * * *
    -     * Output only. PSC connections for discovery of the cluster topology and
    -     * accessing the cluster.
    +     * Output only. Service attachment details to configure Psc connections
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1beta1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.redis.cluster.v1beta1.PscConnection.Builder addPscConnectionsBuilder() { - return getPscConnectionsFieldBuilder() - .addBuilder(com.google.cloud.redis.cluster.v1beta1.PscConnection.getDefaultInstance()); + public Builder clearPscServiceAttachments() { + if (pscServiceAttachmentsBuilder_ == null) { + pscServiceAttachments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x01000000); + onChanged(); + } else { + pscServiceAttachmentsBuilder_.clear(); + } + return this; } /** * * *
    -     * Output only. PSC connections for discovery of the cluster topology and
    -     * accessing the cluster.
    +     * Output only. Service attachment details to configure Psc connections
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1beta1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.redis.cluster.v1beta1.PscConnection.Builder addPscConnectionsBuilder( - int index) { - return getPscConnectionsFieldBuilder() - .addBuilder( - index, com.google.cloud.redis.cluster.v1beta1.PscConnection.getDefaultInstance()); + public Builder removePscServiceAttachments(int index) { + if (pscServiceAttachmentsBuilder_ == null) { + ensurePscServiceAttachmentsIsMutable(); + pscServiceAttachments_.remove(index); + onChanged(); + } else { + pscServiceAttachmentsBuilder_.remove(index); + } + return this; } /** * * *
    -     * Output only. PSC connections for discovery of the cluster topology and
    -     * accessing the cluster.
    +     * Output only. Service attachment details to configure Psc connections
          * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.PscConnection psc_connections = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1beta1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public java.util.List - getPscConnectionsBuilderList() { - return getPscConnectionsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.cluster.v1beta1.PscConnection, - com.google.cloud.redis.cluster.v1beta1.PscConnection.Builder, - com.google.cloud.redis.cluster.v1beta1.PscConnectionOrBuilder> - getPscConnectionsFieldBuilder() { - if (pscConnectionsBuilder_ == null) { - pscConnectionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.redis.cluster.v1beta1.PscConnection, - com.google.cloud.redis.cluster.v1beta1.PscConnection.Builder, - com.google.cloud.redis.cluster.v1beta1.PscConnectionOrBuilder>( - pscConnections_, - ((bitField0_ & 0x00000800) != 0), - getParentForChildren(), - isClean()); - pscConnections_ = null; - } - return pscConnectionsBuilder_; + public com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment.Builder + getPscServiceAttachmentsBuilder(int index) { + return getPscServiceAttachmentsFieldBuilder().getBuilder(index); } - - private com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo stateInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo, - com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo.Builder, - com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfoOrBuilder> - stateInfoBuilder_; /** * * *
    -     * Output only. Additional information about the current state of the cluster.
    +     * Output only. Service attachment details to configure Psc connections
          * 
    * * - * .google.cloud.redis.cluster.v1beta1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1beta1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return Whether the stateInfo field is set. */ - public boolean hasStateInfo() { - return ((bitField0_ & 0x00001000) != 0); + public com.google.cloud.redis.cluster.v1beta1.PscServiceAttachmentOrBuilder + getPscServiceAttachmentsOrBuilder(int index) { + if (pscServiceAttachmentsBuilder_ == null) { + return pscServiceAttachments_.get(index); + } else { + return pscServiceAttachmentsBuilder_.getMessageOrBuilder(index); + } } /** * * *
    -     * Output only. Additional information about the current state of the cluster.
    +     * Output only. Service attachment details to configure Psc connections
          * 
    * * - * .google.cloud.redis.cluster.v1beta1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1beta1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The stateInfo. */ - public com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo getStateInfo() { - if (stateInfoBuilder_ == null) { - return stateInfo_ == null - ? com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo.getDefaultInstance() - : stateInfo_; + public java.util.List< + ? extends com.google.cloud.redis.cluster.v1beta1.PscServiceAttachmentOrBuilder> + getPscServiceAttachmentsOrBuilderList() { + if (pscServiceAttachmentsBuilder_ != null) { + return pscServiceAttachmentsBuilder_.getMessageOrBuilderList(); } else { - return stateInfoBuilder_.getMessage(); + return java.util.Collections.unmodifiableList(pscServiceAttachments_); } } /** * * *
    -     * Output only. Additional information about the current state of the cluster.
    +     * Output only. Service attachment details to configure Psc connections
          * 
    * * - * .google.cloud.redis.cluster.v1beta1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1beta1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setStateInfo(com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo value) { - if (stateInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - stateInfo_ = value; - } else { - stateInfoBuilder_.setMessage(value); - } - bitField0_ |= 0x00001000; - onChanged(); - return this; + public com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment.Builder + addPscServiceAttachmentsBuilder() { + return getPscServiceAttachmentsFieldBuilder() + .addBuilder( + com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment.getDefaultInstance()); } /** * * *
    -     * Output only. Additional information about the current state of the cluster.
    +     * Output only. Service attachment details to configure Psc connections
          * 
    * * - * .google.cloud.redis.cluster.v1beta1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1beta1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setStateInfo( - com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo.Builder builderForValue) { - if (stateInfoBuilder_ == null) { - stateInfo_ = builderForValue.build(); - } else { - stateInfoBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00001000; - onChanged(); - return this; + public com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment.Builder + addPscServiceAttachmentsBuilder(int index) { + return getPscServiceAttachmentsFieldBuilder() + .addBuilder( + index, + com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment.getDefaultInstance()); } /** * * *
    -     * Output only. Additional information about the current state of the cluster.
    +     * Output only. Service attachment details to configure Psc connections
          * 
    * * - * .google.cloud.redis.cluster.v1beta1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1beta1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeStateInfo(com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo value) { - if (stateInfoBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) - && stateInfo_ != null - && stateInfo_ - != com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo.getDefaultInstance()) { - getStateInfoBuilder().mergeFrom(value); - } else { - stateInfo_ = value; - } - } else { - stateInfoBuilder_.mergeFrom(value); + public java.util.List + getPscServiceAttachmentsBuilderList() { + return getPscServiceAttachmentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment, + com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment.Builder, + com.google.cloud.redis.cluster.v1beta1.PscServiceAttachmentOrBuilder> + getPscServiceAttachmentsFieldBuilder() { + if (pscServiceAttachmentsBuilder_ == null) { + pscServiceAttachmentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment, + com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment.Builder, + com.google.cloud.redis.cluster.v1beta1.PscServiceAttachmentOrBuilder>( + pscServiceAttachments_, + ((bitField0_ & 0x01000000) != 0), + getParentForChildren(), + isClean()); + pscServiceAttachments_ = null; } - if (stateInfo_ != null) { - bitField0_ |= 0x00001000; - onChanged(); + return pscServiceAttachmentsBuilder_; + } + + private java.util.List + clusterEndpoints_ = java.util.Collections.emptyList(); + + private void ensureClusterEndpointsIsMutable() { + if (!((bitField0_ & 0x02000000) != 0)) { + clusterEndpoints_ = + new java.util.ArrayList( + clusterEndpoints_); + bitField0_ |= 0x02000000; } - return this; } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint, + com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint.Builder, + com.google.cloud.redis.cluster.v1beta1.ClusterEndpointOrBuilder> + clusterEndpointsBuilder_; + /** * * *
    -     * Output only. Additional information about the current state of the cluster.
    +     * Optional. A list of cluster enpoints.
          * 
    * * - * .google.cloud.redis.cluster.v1beta1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1beta1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearStateInfo() { - bitField0_ = (bitField0_ & ~0x00001000); - stateInfo_ = null; - if (stateInfoBuilder_ != null) { - stateInfoBuilder_.dispose(); - stateInfoBuilder_ = null; + public java.util.List + getClusterEndpointsList() { + if (clusterEndpointsBuilder_ == null) { + return java.util.Collections.unmodifiableList(clusterEndpoints_); + } else { + return clusterEndpointsBuilder_.getMessageList(); } - onChanged(); - return this; } /** * * *
    -     * Output only. Additional information about the current state of the cluster.
    +     * Optional. A list of cluster enpoints.
          * 
    * * - * .google.cloud.redis.cluster.v1beta1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1beta1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo.Builder getStateInfoBuilder() { - bitField0_ |= 0x00001000; - onChanged(); - return getStateInfoFieldBuilder().getBuilder(); + public int getClusterEndpointsCount() { + if (clusterEndpointsBuilder_ == null) { + return clusterEndpoints_.size(); + } else { + return clusterEndpointsBuilder_.getCount(); + } } /** * * *
    -     * Output only. Additional information about the current state of the cluster.
    +     * Optional. A list of cluster enpoints.
          * 
    * * - * .google.cloud.redis.cluster.v1beta1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1beta1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfoOrBuilder - getStateInfoOrBuilder() { - if (stateInfoBuilder_ != null) { - return stateInfoBuilder_.getMessageOrBuilder(); + public com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint getClusterEndpoints(int index) { + if (clusterEndpointsBuilder_ == null) { + return clusterEndpoints_.get(index); } else { - return stateInfo_ == null - ? com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo.getDefaultInstance() - : stateInfo_; + return clusterEndpointsBuilder_.getMessage(index); } } /** * * *
    -     * Output only. Additional information about the current state of the cluster.
    +     * Optional. A list of cluster enpoints.
          * 
    * * - * .google.cloud.redis.cluster.v1beta1.Cluster.StateInfo state_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.redis.cluster.v1beta1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo, - com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo.Builder, - com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfoOrBuilder> - getStateInfoFieldBuilder() { - if (stateInfoBuilder_ == null) { - stateInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo, - com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo.Builder, - com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfoOrBuilder>( - getStateInfo(), getParentForChildren(), isClean()); - stateInfo_ = null; + public Builder setClusterEndpoints( + int index, com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint value) { + if (clusterEndpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClusterEndpointsIsMutable(); + clusterEndpoints_.set(index, value); + onChanged(); + } else { + clusterEndpointsBuilder_.setMessage(index, value); } - return stateInfoBuilder_; + return this; } - - private int nodeType_ = 0; /** * * *
    -     * Optional. The type of a redis node in the cluster. NodeType determines the
    -     * underlying machine-type of a redis node.
    +     * Optional. A list of cluster enpoints.
          * 
    * * - * .google.cloud.redis.cluster.v1beta1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.redis.cluster.v1beta1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The enum numeric value on the wire for nodeType. */ - @java.lang.Override - public int getNodeTypeValue() { - return nodeType_; + public Builder setClusterEndpoints( + int index, com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint.Builder builderForValue) { + if (clusterEndpointsBuilder_ == null) { + ensureClusterEndpointsIsMutable(); + clusterEndpoints_.set(index, builderForValue.build()); + onChanged(); + } else { + clusterEndpointsBuilder_.setMessage(index, builderForValue.build()); + } + return this; } /** * * *
    -     * Optional. The type of a redis node in the cluster. NodeType determines the
    -     * underlying machine-type of a redis node.
    +     * Optional. A list of cluster enpoints.
          * 
    * * - * .google.cloud.redis.cluster.v1beta1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.redis.cluster.v1beta1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param value The enum numeric value on the wire for nodeType to set. - * @return This builder for chaining. */ - public Builder setNodeTypeValue(int value) { - nodeType_ = value; - bitField0_ |= 0x00002000; - onChanged(); + public Builder addClusterEndpoints( + com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint value) { + if (clusterEndpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClusterEndpointsIsMutable(); + clusterEndpoints_.add(value); + onChanged(); + } else { + clusterEndpointsBuilder_.addMessage(value); + } return this; } /** * * *
    -     * Optional. The type of a redis node in the cluster. NodeType determines the
    -     * underlying machine-type of a redis node.
    +     * Optional. A list of cluster enpoints.
          * 
    * * - * .google.cloud.redis.cluster.v1beta1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.redis.cluster.v1beta1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The nodeType. */ - @java.lang.Override - public com.google.cloud.redis.cluster.v1beta1.NodeType getNodeType() { - com.google.cloud.redis.cluster.v1beta1.NodeType result = - com.google.cloud.redis.cluster.v1beta1.NodeType.forNumber(nodeType_); - return result == null ? com.google.cloud.redis.cluster.v1beta1.NodeType.UNRECOGNIZED : result; + public Builder addClusterEndpoints( + int index, com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint value) { + if (clusterEndpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureClusterEndpointsIsMutable(); + clusterEndpoints_.add(index, value); + onChanged(); + } else { + clusterEndpointsBuilder_.addMessage(index, value); + } + return this; } /** * * *
    -     * Optional. The type of a redis node in the cluster. NodeType determines the
    -     * underlying machine-type of a redis node.
    +     * Optional. A list of cluster enpoints.
          * 
    * * - * .google.cloud.redis.cluster.v1beta1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.redis.cluster.v1beta1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param value The nodeType to set. - * @return This builder for chaining. */ - public Builder setNodeType(com.google.cloud.redis.cluster.v1beta1.NodeType value) { - if (value == null) { - throw new NullPointerException(); + public Builder addClusterEndpoints( + com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint.Builder builderForValue) { + if (clusterEndpointsBuilder_ == null) { + ensureClusterEndpointsIsMutable(); + clusterEndpoints_.add(builderForValue.build()); + onChanged(); + } else { + clusterEndpointsBuilder_.addMessage(builderForValue.build()); } - bitField0_ |= 0x00002000; - nodeType_ = value.getNumber(); - onChanged(); return this; } /** * * *
    -     * Optional. The type of a redis node in the cluster. NodeType determines the
    -     * underlying machine-type of a redis node.
    +     * Optional. A list of cluster enpoints.
          * 
    * * - * .google.cloud.redis.cluster.v1beta1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.redis.cluster.v1beta1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return This builder for chaining. */ - public Builder clearNodeType() { - bitField0_ = (bitField0_ & ~0x00002000); - nodeType_ = 0; - onChanged(); + public Builder addClusterEndpoints( + int index, com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint.Builder builderForValue) { + if (clusterEndpointsBuilder_ == null) { + ensureClusterEndpointsIsMutable(); + clusterEndpoints_.add(index, builderForValue.build()); + onChanged(); + } else { + clusterEndpointsBuilder_.addMessage(index, builderForValue.build()); + } return this; } - - private com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistenceConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig, - com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.Builder, - com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfigOrBuilder> - persistenceConfigBuilder_; /** * * *
    -     * Optional. Persistence config (RDB, AOF) for the cluster.
    +     * Optional. A list of cluster enpoints.
          * 
    * * - * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.redis.cluster.v1beta1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return Whether the persistenceConfig field is set. */ - public boolean hasPersistenceConfig() { - return ((bitField0_ & 0x00004000) != 0); + public Builder addAllClusterEndpoints( + java.lang.Iterable + values) { + if (clusterEndpointsBuilder_ == null) { + ensureClusterEndpointsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, clusterEndpoints_); + onChanged(); + } else { + clusterEndpointsBuilder_.addAllMessages(values); + } + return this; } /** * * *
    -     * Optional. Persistence config (RDB, AOF) for the cluster.
    +     * Optional. A list of cluster enpoints.
          * 
    * * - * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.redis.cluster.v1beta1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The persistenceConfig. */ - public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig getPersistenceConfig() { - if (persistenceConfigBuilder_ == null) { - return persistenceConfig_ == null - ? com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.getDefaultInstance() - : persistenceConfig_; + public Builder clearClusterEndpoints() { + if (clusterEndpointsBuilder_ == null) { + clusterEndpoints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x02000000); + onChanged(); } else { - return persistenceConfigBuilder_.getMessage(); + clusterEndpointsBuilder_.clear(); } + return this; } /** * * *
    -     * Optional. Persistence config (RDB, AOF) for the cluster.
    +     * Optional. A list of cluster enpoints.
          * 
    * * - * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.redis.cluster.v1beta1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setPersistenceConfig( - com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig value) { - if (persistenceConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - persistenceConfig_ = value; + public Builder removeClusterEndpoints(int index) { + if (clusterEndpointsBuilder_ == null) { + ensureClusterEndpointsIsMutable(); + clusterEndpoints_.remove(index); + onChanged(); } else { - persistenceConfigBuilder_.setMessage(value); + clusterEndpointsBuilder_.remove(index); } - bitField0_ |= 0x00004000; - onChanged(); return this; } /** * * *
    -     * Optional. Persistence config (RDB, AOF) for the cluster.
    +     * Optional. A list of cluster enpoints.
          * 
    * * - * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.redis.cluster.v1beta1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setPersistenceConfig( - com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.Builder builderForValue) { - if (persistenceConfigBuilder_ == null) { - persistenceConfig_ = builderForValue.build(); - } else { - persistenceConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00004000; - onChanged(); - return this; + public com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint.Builder + getClusterEndpointsBuilder(int index) { + return getClusterEndpointsFieldBuilder().getBuilder(index); } /** * * *
    -     * Optional. Persistence config (RDB, AOF) for the cluster.
    +     * Optional. A list of cluster enpoints.
          * 
    * * - * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.redis.cluster.v1beta1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergePersistenceConfig( - com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig value) { - if (persistenceConfigBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) - && persistenceConfig_ != null - && persistenceConfig_ - != com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig - .getDefaultInstance()) { - getPersistenceConfigBuilder().mergeFrom(value); - } else { - persistenceConfig_ = value; - } + public com.google.cloud.redis.cluster.v1beta1.ClusterEndpointOrBuilder + getClusterEndpointsOrBuilder(int index) { + if (clusterEndpointsBuilder_ == null) { + return clusterEndpoints_.get(index); } else { - persistenceConfigBuilder_.mergeFrom(value); + return clusterEndpointsBuilder_.getMessageOrBuilder(index); } - if (persistenceConfig_ != null) { - bitField0_ |= 0x00004000; - onChanged(); - } - return this; } /** * * *
    -     * Optional. Persistence config (RDB, AOF) for the cluster.
    +     * Optional. A list of cluster enpoints.
          * 
    * * - * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.redis.cluster.v1beta1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearPersistenceConfig() { - bitField0_ = (bitField0_ & ~0x00004000); - persistenceConfig_ = null; - if (persistenceConfigBuilder_ != null) { - persistenceConfigBuilder_.dispose(); - persistenceConfigBuilder_ = null; + public java.util.List + getClusterEndpointsOrBuilderList() { + if (clusterEndpointsBuilder_ != null) { + return clusterEndpointsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(clusterEndpoints_); } - onChanged(); - return this; } /** * * *
    -     * Optional. Persistence config (RDB, AOF) for the cluster.
    +     * Optional. A list of cluster enpoints.
          * 
    * * - * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.redis.cluster.v1beta1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.Builder - getPersistenceConfigBuilder() { - bitField0_ |= 0x00004000; - onChanged(); - return getPersistenceConfigFieldBuilder().getBuilder(); + public com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint.Builder + addClusterEndpointsBuilder() { + return getClusterEndpointsFieldBuilder() + .addBuilder(com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint.getDefaultInstance()); } /** * * *
    -     * Optional. Persistence config (RDB, AOF) for the cluster.
    +     * Optional. A list of cluster enpoints.
          * 
    * * - * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.redis.cluster.v1beta1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfigOrBuilder - getPersistenceConfigOrBuilder() { - if (persistenceConfigBuilder_ != null) { - return persistenceConfigBuilder_.getMessageOrBuilder(); - } else { - return persistenceConfig_ == null - ? com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.getDefaultInstance() - : persistenceConfig_; - } + public com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint.Builder + addClusterEndpointsBuilder(int index) { + return getClusterEndpointsFieldBuilder() + .addBuilder( + index, com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint.getDefaultInstance()); } /** * * *
    -     * Optional. Persistence config (RDB, AOF) for the cluster.
    +     * Optional. A list of cluster enpoints.
          * 
    * * - * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.redis.cluster.v1beta1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig, - com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.Builder, - com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfigOrBuilder> - getPersistenceConfigFieldBuilder() { - if (persistenceConfigBuilder_ == null) { - persistenceConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig, - com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.Builder, - com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfigOrBuilder>( - getPersistenceConfig(), getParentForChildren(), isClean()); - persistenceConfig_ = null; - } - return persistenceConfigBuilder_; - } - - private com.google.protobuf.MapField redisConfigs_; - - private com.google.protobuf.MapField - internalGetRedisConfigs() { - if (redisConfigs_ == null) { - return com.google.protobuf.MapField.emptyMapField( - RedisConfigsDefaultEntryHolder.defaultEntry); - } - return redisConfigs_; + public java.util.List + getClusterEndpointsBuilderList() { + return getClusterEndpointsFieldBuilder().getBuilderList(); } - private com.google.protobuf.MapField - internalGetMutableRedisConfigs() { - if (redisConfigs_ == null) { - redisConfigs_ = - com.google.protobuf.MapField.newMapField(RedisConfigsDefaultEntryHolder.defaultEntry); - } - if (!redisConfigs_.isMutable()) { - redisConfigs_ = redisConfigs_.copy(); + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint, + com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint.Builder, + com.google.cloud.redis.cluster.v1beta1.ClusterEndpointOrBuilder> + getClusterEndpointsFieldBuilder() { + if (clusterEndpointsBuilder_ == null) { + clusterEndpointsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint, + com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint.Builder, + com.google.cloud.redis.cluster.v1beta1.ClusterEndpointOrBuilder>( + clusterEndpoints_, + ((bitField0_ & 0x02000000) != 0), + getParentForChildren(), + isClean()); + clusterEndpoints_ = null; } - bitField0_ |= 0x00008000; - onChanged(); - return redisConfigs_; + return clusterEndpointsBuilder_; } - public int getRedisConfigsCount() { - return internalGetRedisConfigs().getMap().size(); - } + private java.lang.Object backupCollection_ = ""; /** * * *
    -     * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
    +     * Optional. Output only. The backup collection full resource name. Example:
    +     * projects/{project}/locations/{location}/backupCollections/{collection}
          * 
    * - * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional string backup_collection = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * + * + * @return Whether the backupCollection field is set. */ - @java.lang.Override - public boolean containsRedisConfigs(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetRedisConfigs().getMap().containsKey(key); - } - /** Use {@link #getRedisConfigsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getRedisConfigs() { - return getRedisConfigsMap(); + public boolean hasBackupCollection() { + return ((bitField0_ & 0x04000000) != 0); } /** * * *
    -     * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
    +     * Optional. Output only. The backup collection full resource name. Example:
    +     * projects/{project}/locations/{location}/backupCollections/{collection}
          * 
    * - * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional string backup_collection = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * + * + * @return The backupCollection. */ - @java.lang.Override - public java.util.Map getRedisConfigsMap() { - return internalGetRedisConfigs().getMap(); + public java.lang.String getBackupCollection() { + java.lang.Object ref = backupCollection_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backupCollection_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** * * *
    -     * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
    +     * Optional. Output only. The backup collection full resource name. Example:
    +     * projects/{project}/locations/{location}/backupCollections/{collection}
          * 
    * - * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional string backup_collection = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * + * + * @return The bytes for backupCollection. */ - @java.lang.Override - public /* nullable */ java.lang.String getRedisConfigsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); + public com.google.protobuf.ByteString getBackupCollectionBytes() { + java.lang.Object ref = backupCollection_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backupCollection_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - java.util.Map map = internalGetRedisConfigs().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
    -     * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
    +     * Optional. Output only. The backup collection full resource name. Example:
    +     * projects/{project}/locations/{location}/backupCollections/{collection}
          * 
    * - * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional string backup_collection = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * + * + * @param value The backupCollection to set. + * @return This builder for chaining. */ - @java.lang.Override - public java.lang.String getRedisConfigsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetRedisConfigs().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + public Builder setBackupCollection(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - return map.get(key); - } - - public Builder clearRedisConfigs() { - bitField0_ = (bitField0_ & ~0x00008000); - internalGetMutableRedisConfigs().getMutableMap().clear(); + backupCollection_ = value; + bitField0_ |= 0x04000000; + onChanged(); return this; } /** * * *
    -     * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
    +     * Optional. Output only. The backup collection full resource name. Example:
    +     * projects/{project}/locations/{location}/backupCollections/{collection}
          * 
    * - * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional string backup_collection = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * + * + * @return This builder for chaining. */ - public Builder removeRedisConfigs(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableRedisConfigs().getMutableMap().remove(key); + public Builder clearBackupCollection() { + backupCollection_ = getDefaultInstance().getBackupCollection(); + bitField0_ = (bitField0_ & ~0x04000000); + onChanged(); return this; } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableRedisConfigs() { - bitField0_ |= 0x00008000; - return internalGetMutableRedisConfigs().getMutableMap(); - } /** * * *
    -     * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
    +     * Optional. Output only. The backup collection full resource name. Example:
    +     * projects/{project}/locations/{location}/backupCollections/{collection}
          * 
    * - * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional string backup_collection = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * + * + * @param value The bytes for backupCollection to set. + * @return This builder for chaining. */ - public Builder putRedisConfigs(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder setBackupCollectionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException("map value"); + throw new NullPointerException(); } - internalGetMutableRedisConfigs().getMutableMap().put(key, value); - bitField0_ |= 0x00008000; + checkByteStringIsUtf8(value); + backupCollection_ = value; + bitField0_ |= 0x04000000; + onChanged(); return this; } + + private java.lang.Object kmsKey_ = ""; /** * * *
    -     * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
    +     * Optional. The KMS key used to encrypt the at-rest data of the cluster.
          * 
    * - * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional string kms_key = 40 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the kmsKey field is set. + */ + public boolean hasKmsKey() { + return ((bitField0_ & 0x08000000) != 0); + } + /** + * + * + *
    +     * Optional. The KMS key used to encrypt the at-rest data of the cluster.
    +     * 
    + * + * + * optional string kms_key = 40 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * + * + * @return The kmsKey. */ - public Builder putAllRedisConfigs(java.util.Map values) { - internalGetMutableRedisConfigs().getMutableMap().putAll(values); - bitField0_ |= 0x00008000; - return this; + public java.lang.String getKmsKey() { + java.lang.Object ref = kmsKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - - private double preciseSizeGb_; /** * * *
    -     * Output only. Precise value of redis memory size in GB for the entire
    -     * cluster.
    +     * Optional. The KMS key used to encrypt the at-rest data of the cluster.
          * 
    * - * optional double precise_size_gb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional string kms_key = 40 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * - * @return Whether the preciseSizeGb field is set. + * @return The bytes for kmsKey. */ - @java.lang.Override - public boolean hasPreciseSizeGb() { - return ((bitField0_ & 0x00010000) != 0); + public com.google.protobuf.ByteString getKmsKeyBytes() { + java.lang.Object ref = kmsKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** * * *
    -     * Output only. Precise value of redis memory size in GB for the entire
    -     * cluster.
    +     * Optional. The KMS key used to encrypt the at-rest data of the cluster.
          * 
    * - * optional double precise_size_gb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional string kms_key = 40 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * - * @return The preciseSizeGb. + * @param value The kmsKey to set. + * @return This builder for chaining. */ - @java.lang.Override - public double getPreciseSizeGb() { - return preciseSizeGb_; + public Builder setKmsKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kmsKey_ = value; + bitField0_ |= 0x08000000; + onChanged(); + return this; } /** * * *
    -     * Output only. Precise value of redis memory size in GB for the entire
    -     * cluster.
    +     * Optional. The KMS key used to encrypt the at-rest data of the cluster.
          * 
    * - * optional double precise_size_gb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional string kms_key = 40 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * - * @param value The preciseSizeGb to set. * @return This builder for chaining. */ - public Builder setPreciseSizeGb(double value) { - - preciseSizeGb_ = value; - bitField0_ |= 0x00010000; + public Builder clearKmsKey() { + kmsKey_ = getDefaultInstance().getKmsKey(); + bitField0_ = (bitField0_ & ~0x08000000); onChanged(); return this; } @@ -6983,92 +12295,93 @@ public Builder setPreciseSizeGb(double value) { * * *
    -     * Output only. Precise value of redis memory size in GB for the entire
    -     * cluster.
    +     * Optional. The KMS key used to encrypt the at-rest data of the cluster.
          * 
    * - * optional double precise_size_gb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional string kms_key = 40 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * + * @param value The bytes for kmsKey to set. * @return This builder for chaining. */ - public Builder clearPreciseSizeGb() { - bitField0_ = (bitField0_ & ~0x00010000); - preciseSizeGb_ = 0D; + public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKey_ = value; + bitField0_ |= 0x08000000; onChanged(); return this; } - private com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zoneDistributionConfig_; + private com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig automatedBackupConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig, - com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.Builder, - com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfigOrBuilder> - zoneDistributionConfigBuilder_; + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig, + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.Builder, + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfigOrBuilder> + automatedBackupConfigBuilder_; /** * * *
    -     * Optional. This config will be used to determine how the customer wants us
    -     * to distribute cluster resources within the region.
    +     * Optional. The automated backup config for the cluster.
          * 
    * * - * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig automated_backup_config = 42 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the zoneDistributionConfig field is set. + * @return Whether the automatedBackupConfig field is set. */ - public boolean hasZoneDistributionConfig() { - return ((bitField0_ & 0x00020000) != 0); + public boolean hasAutomatedBackupConfig() { + return ((bitField0_ & 0x10000000) != 0); } /** * * *
    -     * Optional. This config will be used to determine how the customer wants us
    -     * to distribute cluster resources within the region.
    +     * Optional. The automated backup config for the cluster.
          * 
    * * - * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig automated_backup_config = 42 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The zoneDistributionConfig. + * @return The automatedBackupConfig. */ - public com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig - getZoneDistributionConfig() { - if (zoneDistributionConfigBuilder_ == null) { - return zoneDistributionConfig_ == null - ? com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.getDefaultInstance() - : zoneDistributionConfig_; + public com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig getAutomatedBackupConfig() { + if (automatedBackupConfigBuilder_ == null) { + return automatedBackupConfig_ == null + ? com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.getDefaultInstance() + : automatedBackupConfig_; } else { - return zoneDistributionConfigBuilder_.getMessage(); + return automatedBackupConfigBuilder_.getMessage(); } } /** * * *
    -     * Optional. This config will be used to determine how the customer wants us
    -     * to distribute cluster resources within the region.
    +     * Optional. The automated backup config for the cluster.
          * 
    * * - * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig automated_backup_config = 42 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setZoneDistributionConfig( - com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig value) { - if (zoneDistributionConfigBuilder_ == null) { + public Builder setAutomatedBackupConfig( + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig value) { + if (automatedBackupConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - zoneDistributionConfig_ = value; + automatedBackupConfig_ = value; } else { - zoneDistributionConfigBuilder_.setMessage(value); + automatedBackupConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -7076,22 +12389,21 @@ public Builder setZoneDistributionConfig( * * *
    -     * Optional. This config will be used to determine how the customer wants us
    -     * to distribute cluster resources within the region.
    +     * Optional. The automated backup config for the cluster.
          * 
    * * - * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig automated_backup_config = 42 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setZoneDistributionConfig( - com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.Builder builderForValue) { - if (zoneDistributionConfigBuilder_ == null) { - zoneDistributionConfig_ = builderForValue.build(); + public Builder setAutomatedBackupConfig( + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.Builder builderForValue) { + if (automatedBackupConfigBuilder_ == null) { + automatedBackupConfig_ = builderForValue.build(); } else { - zoneDistributionConfigBuilder_.setMessage(builderForValue.build()); + automatedBackupConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -7099,31 +12411,30 @@ public Builder setZoneDistributionConfig( * * *
    -     * Optional. This config will be used to determine how the customer wants us
    -     * to distribute cluster resources within the region.
    +     * Optional. The automated backup config for the cluster.
          * 
    * * - * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig automated_backup_config = 42 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeZoneDistributionConfig( - com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig value) { - if (zoneDistributionConfigBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) - && zoneDistributionConfig_ != null - && zoneDistributionConfig_ - != com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig + public Builder mergeAutomatedBackupConfig( + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig value) { + if (automatedBackupConfigBuilder_ == null) { + if (((bitField0_ & 0x10000000) != 0) + && automatedBackupConfig_ != null + && automatedBackupConfig_ + != com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig .getDefaultInstance()) { - getZoneDistributionConfigBuilder().mergeFrom(value); + getAutomatedBackupConfigBuilder().mergeFrom(value); } else { - zoneDistributionConfig_ = value; + automatedBackupConfig_ = value; } } else { - zoneDistributionConfigBuilder_.mergeFrom(value); + automatedBackupConfigBuilder_.mergeFrom(value); } - if (zoneDistributionConfig_ != null) { - bitField0_ |= 0x00020000; + if (automatedBackupConfig_ != null) { + bitField0_ |= 0x10000000; onChanged(); } return this; @@ -7132,20 +12443,19 @@ public Builder mergeZoneDistributionConfig( * * *
    -     * Optional. This config will be used to determine how the customer wants us
    -     * to distribute cluster resources within the region.
    +     * Optional. The automated backup config for the cluster.
          * 
    * * - * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig automated_backup_config = 42 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearZoneDistributionConfig() { - bitField0_ = (bitField0_ & ~0x00020000); - zoneDistributionConfig_ = null; - if (zoneDistributionConfigBuilder_ != null) { - zoneDistributionConfigBuilder_.dispose(); - zoneDistributionConfigBuilder_ = null; + public Builder clearAutomatedBackupConfig() { + bitField0_ = (bitField0_ & ~0x10000000); + automatedBackupConfig_ = null; + if (automatedBackupConfigBuilder_ != null) { + automatedBackupConfigBuilder_.dispose(); + automatedBackupConfigBuilder_ = null; } onChanged(); return this; @@ -7154,124 +12464,155 @@ public Builder clearZoneDistributionConfig() { * * *
    -     * Optional. This config will be used to determine how the customer wants us
    -     * to distribute cluster resources within the region.
    +     * Optional. The automated backup config for the cluster.
          * 
    * * - * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig automated_backup_config = 42 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.Builder - getZoneDistributionConfigBuilder() { - bitField0_ |= 0x00020000; + public com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.Builder + getAutomatedBackupConfigBuilder() { + bitField0_ |= 0x10000000; onChanged(); - return getZoneDistributionConfigFieldBuilder().getBuilder(); + return getAutomatedBackupConfigFieldBuilder().getBuilder(); } /** * * *
    -     * Optional. This config will be used to determine how the customer wants us
    -     * to distribute cluster resources within the region.
    +     * Optional. The automated backup config for the cluster.
          * 
    * * - * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig automated_backup_config = 42 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfigOrBuilder - getZoneDistributionConfigOrBuilder() { - if (zoneDistributionConfigBuilder_ != null) { - return zoneDistributionConfigBuilder_.getMessageOrBuilder(); + public com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfigOrBuilder + getAutomatedBackupConfigOrBuilder() { + if (automatedBackupConfigBuilder_ != null) { + return automatedBackupConfigBuilder_.getMessageOrBuilder(); } else { - return zoneDistributionConfig_ == null - ? com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.getDefaultInstance() - : zoneDistributionConfig_; + return automatedBackupConfig_ == null + ? com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.getDefaultInstance() + : automatedBackupConfig_; } } /** * * *
    -     * Optional. This config will be used to determine how the customer wants us
    -     * to distribute cluster resources within the region.
    +     * Optional. The automated backup config for the cluster.
          * 
    * * - * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig automated_backup_config = 42 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig, - com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.Builder, - com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfigOrBuilder> - getZoneDistributionConfigFieldBuilder() { - if (zoneDistributionConfigBuilder_ == null) { - zoneDistributionConfigBuilder_ = + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig, + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.Builder, + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfigOrBuilder> + getAutomatedBackupConfigFieldBuilder() { + if (automatedBackupConfigBuilder_ == null) { + automatedBackupConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig, - com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.Builder, - com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfigOrBuilder>( - getZoneDistributionConfig(), getParentForChildren(), isClean()); - zoneDistributionConfig_ = null; + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig, + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig.Builder, + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfigOrBuilder>( + getAutomatedBackupConfig(), getParentForChildren(), isClean()); + automatedBackupConfig_ = null; } - return zoneDistributionConfigBuilder_; + return automatedBackupConfigBuilder_; } - private boolean deletionProtectionEnabled_; + private com.google.cloud.redis.cluster.v1beta1.EncryptionInfo encryptionInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.EncryptionInfo, + com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.Builder, + com.google.cloud.redis.cluster.v1beta1.EncryptionInfoOrBuilder> + encryptionInfoBuilder_; /** * * *
    -     * Optional. The delete operation will fail when the value is set to true.
    +     * Output only. Encryption information of the data at rest of the cluster.
          * 
    * * - * optional bool deletion_protection_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo encryption_info = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return Whether the deletionProtectionEnabled field is set. + * @return Whether the encryptionInfo field is set. */ - @java.lang.Override - public boolean hasDeletionProtectionEnabled() { - return ((bitField0_ & 0x00040000) != 0); + public boolean hasEncryptionInfo() { + return ((bitField0_ & 0x20000000) != 0); } /** * * *
    -     * Optional. The delete operation will fail when the value is set to true.
    +     * Output only. Encryption information of the data at rest of the cluster.
          * 
    * * - * optional bool deletion_protection_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo encryption_info = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The deletionProtectionEnabled. + * @return The encryptionInfo. */ - @java.lang.Override - public boolean getDeletionProtectionEnabled() { - return deletionProtectionEnabled_; + public com.google.cloud.redis.cluster.v1beta1.EncryptionInfo getEncryptionInfo() { + if (encryptionInfoBuilder_ == null) { + return encryptionInfo_ == null + ? com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.getDefaultInstance() + : encryptionInfo_; + } else { + return encryptionInfoBuilder_.getMessage(); + } } /** * * *
    -     * Optional. The delete operation will fail when the value is set to true.
    +     * Output only. Encryption information of the data at rest of the cluster.
          * 
    * * - * optional bool deletion_protection_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo encryption_info = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + */ + public Builder setEncryptionInfo(com.google.cloud.redis.cluster.v1beta1.EncryptionInfo value) { + if (encryptionInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encryptionInfo_ = value; + } else { + encryptionInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x20000000; + onChanged(); + return this; + } + /** * - * @param value The deletionProtectionEnabled to set. - * @return This builder for chaining. + * + *
    +     * Output only. Encryption information of the data at rest of the cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo encryption_info = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDeletionProtectionEnabled(boolean value) { - - deletionProtectionEnabled_ = value; - bitField0_ |= 0x00040000; + public Builder setEncryptionInfo( + com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.Builder builderForValue) { + if (encryptionInfoBuilder_ == null) { + encryptionInfo_ = builderForValue.build(); + } else { + encryptionInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x20000000; onChanged(); return this; } @@ -7279,21 +12620,119 @@ public Builder setDeletionProtectionEnabled(boolean value) { * * *
    -     * Optional. The delete operation will fail when the value is set to true.
    +     * Output only. Encryption information of the data at rest of the cluster.
          * 
    * * - * optional bool deletion_protection_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo encryption_info = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + */ + public Builder mergeEncryptionInfo( + com.google.cloud.redis.cluster.v1beta1.EncryptionInfo value) { + if (encryptionInfoBuilder_ == null) { + if (((bitField0_ & 0x20000000) != 0) + && encryptionInfo_ != null + && encryptionInfo_ + != com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.getDefaultInstance()) { + getEncryptionInfoBuilder().mergeFrom(value); + } else { + encryptionInfo_ = value; + } + } else { + encryptionInfoBuilder_.mergeFrom(value); + } + if (encryptionInfo_ != null) { + bitField0_ |= 0x20000000; + onChanged(); + } + return this; + } + /** * - * @return This builder for chaining. + * + *
    +     * Output only. Encryption information of the data at rest of the cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo encryption_info = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearDeletionProtectionEnabled() { - bitField0_ = (bitField0_ & ~0x00040000); - deletionProtectionEnabled_ = false; + public Builder clearEncryptionInfo() { + bitField0_ = (bitField0_ & ~0x20000000); + encryptionInfo_ = null; + if (encryptionInfoBuilder_ != null) { + encryptionInfoBuilder_.dispose(); + encryptionInfoBuilder_ = null; + } onChanged(); return this; } + /** + * + * + *
    +     * Output only. Encryption information of the data at rest of the cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo encryption_info = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.Builder + getEncryptionInfoBuilder() { + bitField0_ |= 0x20000000; + onChanged(); + return getEncryptionInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Output only. Encryption information of the data at rest of the cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo encryption_info = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.EncryptionInfoOrBuilder + getEncryptionInfoOrBuilder() { + if (encryptionInfoBuilder_ != null) { + return encryptionInfoBuilder_.getMessageOrBuilder(); + } else { + return encryptionInfo_ == null + ? com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.getDefaultInstance() + : encryptionInfo_; + } + } + /** + * + * + *
    +     * Output only. Encryption information of the data at rest of the cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo encryption_info = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.EncryptionInfo, + com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.Builder, + com.google.cloud.redis.cluster.v1beta1.EncryptionInfoOrBuilder> + getEncryptionInfoFieldBuilder() { + if (encryptionInfoBuilder_ == null) { + encryptionInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.EncryptionInfo, + com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.Builder, + com.google.cloud.redis.cluster.v1beta1.EncryptionInfoOrBuilder>( + getEncryptionInfo(), getParentForChildren(), isClean()); + encryptionInfo_ = null; + } + return encryptionInfoBuilder_; + } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterEndpoint.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterEndpoint.java new file mode 100644 index 000000000000..d2e264af47fb --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterEndpoint.java @@ -0,0 +1,981 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
    + * ClusterEndpoint consists of PSC connections that are created
    + * as a group in each VPC network for accessing the cluster. In each group,
    + * there shall be one connection for each service attachment in the cluster.
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.ClusterEndpoint} + */ +public final class ClusterEndpoint extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.ClusterEndpoint) + ClusterEndpointOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClusterEndpoint.newBuilder() to construct. + private ClusterEndpoint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ClusterEndpoint() { + connections_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ClusterEndpoint(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ClusterEndpoint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ClusterEndpoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint.class, + com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint.Builder.class); + } + + public static final int CONNECTIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List connections_; + /** + * + * + *
    +   * A group of PSC connections. They are created in the same VPC network, one
    +   * for each service attachment in the cluster.
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.ConnectionDetail connections = 1; + */ + @java.lang.Override + public java.util.List + getConnectionsList() { + return connections_; + } + /** + * + * + *
    +   * A group of PSC connections. They are created in the same VPC network, one
    +   * for each service attachment in the cluster.
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.ConnectionDetail connections = 1; + */ + @java.lang.Override + public java.util.List + getConnectionsOrBuilderList() { + return connections_; + } + /** + * + * + *
    +   * A group of PSC connections. They are created in the same VPC network, one
    +   * for each service attachment in the cluster.
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.ConnectionDetail connections = 1; + */ + @java.lang.Override + public int getConnectionsCount() { + return connections_.size(); + } + /** + * + * + *
    +   * A group of PSC connections. They are created in the same VPC network, one
    +   * for each service attachment in the cluster.
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.ConnectionDetail connections = 1; + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ConnectionDetail getConnections(int index) { + return connections_.get(index); + } + /** + * + * + *
    +   * A group of PSC connections. They are created in the same VPC network, one
    +   * for each service attachment in the cluster.
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.ConnectionDetail connections = 1; + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ConnectionDetailOrBuilder getConnectionsOrBuilder( + int index) { + return connections_.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 < connections_.size(); i++) { + output.writeMessage(1, connections_.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 < connections_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, connections_.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.redis.cluster.v1beta1.ClusterEndpoint)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint other = + (com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint) obj; + + if (!getConnectionsList().equals(other.getConnectionsList())) return false; + if (!getUnknownFields().equals(other.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 (getConnectionsCount() > 0) { + hash = (37 * hash) + CONNECTIONS_FIELD_NUMBER; + hash = (53 * hash) + getConnectionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * ClusterEndpoint consists of PSC connections that are created
    +   * as a group in each VPC network for accessing the cluster. In each group,
    +   * there shall be one connection for each service attachment in the cluster.
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.ClusterEndpoint} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.ClusterEndpoint) + com.google.cloud.redis.cluster.v1beta1.ClusterEndpointOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ClusterEndpoint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ClusterEndpoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint.class, + com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (connectionsBuilder_ == null) { + connections_ = java.util.Collections.emptyList(); + } else { + connections_ = null; + connectionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ClusterEndpoint_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint build() { + com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint buildPartial() { + com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint result = + new com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint result) { + if (connectionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + connections_ = java.util.Collections.unmodifiableList(connections_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.connections_ = connections_; + } else { + result.connections_ = connectionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint 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.redis.cluster.v1beta1.ClusterEndpoint) { + return mergeFrom((com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint other) { + if (other == com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint.getDefaultInstance()) + return this; + if (connectionsBuilder_ == null) { + if (!other.connections_.isEmpty()) { + if (connections_.isEmpty()) { + connections_ = other.connections_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureConnectionsIsMutable(); + connections_.addAll(other.connections_); + } + onChanged(); + } + } else { + if (!other.connections_.isEmpty()) { + if (connectionsBuilder_.isEmpty()) { + connectionsBuilder_.dispose(); + connectionsBuilder_ = null; + connections_ = other.connections_; + bitField0_ = (bitField0_ & ~0x00000001); + connectionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getConnectionsFieldBuilder() + : null; + } else { + connectionsBuilder_.addAllMessages(other.connections_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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.redis.cluster.v1beta1.ConnectionDetail m = + input.readMessage( + com.google.cloud.redis.cluster.v1beta1.ConnectionDetail.parser(), + extensionRegistry); + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.add(m); + } else { + connectionsBuilder_.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 connections_ = + java.util.Collections.emptyList(); + + private void ensureConnectionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + connections_ = + new java.util.ArrayList( + connections_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.ConnectionDetail, + com.google.cloud.redis.cluster.v1beta1.ConnectionDetail.Builder, + com.google.cloud.redis.cluster.v1beta1.ConnectionDetailOrBuilder> + connectionsBuilder_; + + /** + * + * + *
    +     * A group of PSC connections. They are created in the same VPC network, one
    +     * for each service attachment in the cluster.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.ConnectionDetail connections = 1; + */ + public java.util.List + getConnectionsList() { + if (connectionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(connections_); + } else { + return connectionsBuilder_.getMessageList(); + } + } + /** + * + * + *
    +     * A group of PSC connections. They are created in the same VPC network, one
    +     * for each service attachment in the cluster.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.ConnectionDetail connections = 1; + */ + public int getConnectionsCount() { + if (connectionsBuilder_ == null) { + return connections_.size(); + } else { + return connectionsBuilder_.getCount(); + } + } + /** + * + * + *
    +     * A group of PSC connections. They are created in the same VPC network, one
    +     * for each service attachment in the cluster.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.ConnectionDetail connections = 1; + */ + public com.google.cloud.redis.cluster.v1beta1.ConnectionDetail getConnections(int index) { + if (connectionsBuilder_ == null) { + return connections_.get(index); + } else { + return connectionsBuilder_.getMessage(index); + } + } + /** + * + * + *
    +     * A group of PSC connections. They are created in the same VPC network, one
    +     * for each service attachment in the cluster.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.ConnectionDetail connections = 1; + */ + public Builder setConnections( + int index, com.google.cloud.redis.cluster.v1beta1.ConnectionDetail value) { + if (connectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionsIsMutable(); + connections_.set(index, value); + onChanged(); + } else { + connectionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * A group of PSC connections. They are created in the same VPC network, one
    +     * for each service attachment in the cluster.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.ConnectionDetail connections = 1; + */ + public Builder setConnections( + int index, + com.google.cloud.redis.cluster.v1beta1.ConnectionDetail.Builder builderForValue) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.set(index, builderForValue.build()); + onChanged(); + } else { + connectionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * A group of PSC connections. They are created in the same VPC network, one
    +     * for each service attachment in the cluster.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.ConnectionDetail connections = 1; + */ + public Builder addConnections(com.google.cloud.redis.cluster.v1beta1.ConnectionDetail value) { + if (connectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionsIsMutable(); + connections_.add(value); + onChanged(); + } else { + connectionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
    +     * A group of PSC connections. They are created in the same VPC network, one
    +     * for each service attachment in the cluster.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.ConnectionDetail connections = 1; + */ + public Builder addConnections( + int index, com.google.cloud.redis.cluster.v1beta1.ConnectionDetail value) { + if (connectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionsIsMutable(); + connections_.add(index, value); + onChanged(); + } else { + connectionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * A group of PSC connections. They are created in the same VPC network, one
    +     * for each service attachment in the cluster.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.ConnectionDetail connections = 1; + */ + public Builder addConnections( + com.google.cloud.redis.cluster.v1beta1.ConnectionDetail.Builder builderForValue) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.add(builderForValue.build()); + onChanged(); + } else { + connectionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * A group of PSC connections. They are created in the same VPC network, one
    +     * for each service attachment in the cluster.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.ConnectionDetail connections = 1; + */ + public Builder addConnections( + int index, + com.google.cloud.redis.cluster.v1beta1.ConnectionDetail.Builder builderForValue) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.add(index, builderForValue.build()); + onChanged(); + } else { + connectionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * A group of PSC connections. They are created in the same VPC network, one
    +     * for each service attachment in the cluster.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.ConnectionDetail connections = 1; + */ + public Builder addAllConnections( + java.lang.Iterable + values) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connections_); + onChanged(); + } else { + connectionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
    +     * A group of PSC connections. They are created in the same VPC network, one
    +     * for each service attachment in the cluster.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.ConnectionDetail connections = 1; + */ + public Builder clearConnections() { + if (connectionsBuilder_ == null) { + connections_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + connectionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * A group of PSC connections. They are created in the same VPC network, one
    +     * for each service attachment in the cluster.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.ConnectionDetail connections = 1; + */ + public Builder removeConnections(int index) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.remove(index); + onChanged(); + } else { + connectionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
    +     * A group of PSC connections. They are created in the same VPC network, one
    +     * for each service attachment in the cluster.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.ConnectionDetail connections = 1; + */ + public com.google.cloud.redis.cluster.v1beta1.ConnectionDetail.Builder getConnectionsBuilder( + int index) { + return getConnectionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
    +     * A group of PSC connections. They are created in the same VPC network, one
    +     * for each service attachment in the cluster.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.ConnectionDetail connections = 1; + */ + public com.google.cloud.redis.cluster.v1beta1.ConnectionDetailOrBuilder getConnectionsOrBuilder( + int index) { + if (connectionsBuilder_ == null) { + return connections_.get(index); + } else { + return connectionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
    +     * A group of PSC connections. They are created in the same VPC network, one
    +     * for each service attachment in the cluster.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.ConnectionDetail connections = 1; + */ + public java.util.List< + ? extends com.google.cloud.redis.cluster.v1beta1.ConnectionDetailOrBuilder> + getConnectionsOrBuilderList() { + if (connectionsBuilder_ != null) { + return connectionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(connections_); + } + } + /** + * + * + *
    +     * A group of PSC connections. They are created in the same VPC network, one
    +     * for each service attachment in the cluster.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.ConnectionDetail connections = 1; + */ + public com.google.cloud.redis.cluster.v1beta1.ConnectionDetail.Builder addConnectionsBuilder() { + return getConnectionsFieldBuilder() + .addBuilder(com.google.cloud.redis.cluster.v1beta1.ConnectionDetail.getDefaultInstance()); + } + /** + * + * + *
    +     * A group of PSC connections. They are created in the same VPC network, one
    +     * for each service attachment in the cluster.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.ConnectionDetail connections = 1; + */ + public com.google.cloud.redis.cluster.v1beta1.ConnectionDetail.Builder addConnectionsBuilder( + int index) { + return getConnectionsFieldBuilder() + .addBuilder( + index, com.google.cloud.redis.cluster.v1beta1.ConnectionDetail.getDefaultInstance()); + } + /** + * + * + *
    +     * A group of PSC connections. They are created in the same VPC network, one
    +     * for each service attachment in the cluster.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.ConnectionDetail connections = 1; + */ + public java.util.List + getConnectionsBuilderList() { + return getConnectionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.ConnectionDetail, + com.google.cloud.redis.cluster.v1beta1.ConnectionDetail.Builder, + com.google.cloud.redis.cluster.v1beta1.ConnectionDetailOrBuilder> + getConnectionsFieldBuilder() { + if (connectionsBuilder_ == null) { + connectionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.ConnectionDetail, + com.google.cloud.redis.cluster.v1beta1.ConnectionDetail.Builder, + com.google.cloud.redis.cluster.v1beta1.ConnectionDetailOrBuilder>( + connections_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + connections_ = null; + } + return connectionsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1beta1.ClusterEndpoint) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.ClusterEndpoint) + private static final com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint(); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterEndpoint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterEndpointOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterEndpointOrBuilder.java new file mode 100644 index 000000000000..b01fe4b9fc8b --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterEndpointOrBuilder.java @@ -0,0 +1,84 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +public interface ClusterEndpointOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.ClusterEndpoint) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * A group of PSC connections. They are created in the same VPC network, one
    +   * for each service attachment in the cluster.
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.ConnectionDetail connections = 1; + */ + java.util.List getConnectionsList(); + /** + * + * + *
    +   * A group of PSC connections. They are created in the same VPC network, one
    +   * for each service attachment in the cluster.
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.ConnectionDetail connections = 1; + */ + com.google.cloud.redis.cluster.v1beta1.ConnectionDetail getConnections(int index); + /** + * + * + *
    +   * A group of PSC connections. They are created in the same VPC network, one
    +   * for each service attachment in the cluster.
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.ConnectionDetail connections = 1; + */ + int getConnectionsCount(); + /** + * + * + *
    +   * A group of PSC connections. They are created in the same VPC network, one
    +   * for each service attachment in the cluster.
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.ConnectionDetail connections = 1; + */ + java.util.List + getConnectionsOrBuilderList(); + /** + * + * + *
    +   * A group of PSC connections. They are created in the same VPC network, one
    +   * for each service attachment in the cluster.
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.ConnectionDetail connections = 1; + */ + com.google.cloud.redis.cluster.v1beta1.ConnectionDetailOrBuilder getConnectionsOrBuilder( + int index); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterMaintenancePolicy.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterMaintenancePolicy.java new file mode 100644 index 000000000000..24be099030c3 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterMaintenancePolicy.java @@ -0,0 +1,1684 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
    + * Maintenance policy per cluster.
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy} + */ +public final class ClusterMaintenancePolicy extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy) + ClusterMaintenancePolicyOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClusterMaintenancePolicy.newBuilder() to construct. + private ClusterMaintenancePolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ClusterMaintenancePolicy() { + weeklyMaintenanceWindow_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ClusterMaintenancePolicy(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ClusterMaintenancePolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ClusterMaintenancePolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy.class, + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy.Builder.class); + } + + private int bitField0_; + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
    +   * Output only. The time when the policy was created i.e. Maintenance Window
    +   * or Deny Period was assigned.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 1 [(.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. The time when the policy was created i.e. Maintenance Window
    +   * or Deny Period was assigned.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 1 [(.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. The time when the policy was created i.e. Maintenance Window
    +   * or Deny Period was assigned.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 1 [(.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 = 2; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
    +   * Output only. The time when the policy was updated i.e. Maintenance Window
    +   * or Deny Period was updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 2 [(.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. The time when the policy was updated i.e. Maintenance Window
    +   * or Deny Period was updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 2 [(.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. The time when the policy was updated i.e. Maintenance Window
    +   * or Deny Period was updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 2 [(.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 WEEKLY_MAINTENANCE_WINDOW_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List + weeklyMaintenanceWindow_; + /** + * + * + *
    +   * Optional. Maintenance window that is applied to resources covered by this
    +   * policy. Minimum 1. For the current version, the maximum number of
    +   * weekly_maintenance_window is expected to be one.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + @java.lang.Override + public java.util.List + getWeeklyMaintenanceWindowList() { + return weeklyMaintenanceWindow_; + } + /** + * + * + *
    +   * Optional. Maintenance window that is applied to resources covered by this
    +   * policy. Minimum 1. For the current version, the maximum number of
    +   * weekly_maintenance_window is expected to be one.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindowOrBuilder> + getWeeklyMaintenanceWindowOrBuilderList() { + return weeklyMaintenanceWindow_; + } + /** + * + * + *
    +   * Optional. Maintenance window that is applied to resources covered by this
    +   * policy. Minimum 1. For the current version, the maximum number of
    +   * weekly_maintenance_window is expected to be one.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + @java.lang.Override + public int getWeeklyMaintenanceWindowCount() { + return weeklyMaintenanceWindow_.size(); + } + /** + * + * + *
    +   * Optional. Maintenance window that is applied to resources covered by this
    +   * policy. Minimum 1. For the current version, the maximum number of
    +   * weekly_maintenance_window is expected to be one.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow + getWeeklyMaintenanceWindow(int index) { + return weeklyMaintenanceWindow_.get(index); + } + /** + * + * + *
    +   * Optional. Maintenance window that is applied to resources covered by this
    +   * policy. Minimum 1. For the current version, the maximum number of
    +   * weekly_maintenance_window is expected to be one.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindowOrBuilder + getWeeklyMaintenanceWindowOrBuilder(int index) { + return weeklyMaintenanceWindow_.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, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateTime()); + } + for (int i = 0; i < weeklyMaintenanceWindow_.size(); i++) { + output.writeMessage(3, weeklyMaintenanceWindow_.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, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime()); + } + for (int i = 0; i < weeklyMaintenanceWindow_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, weeklyMaintenanceWindow_.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.redis.cluster.v1beta1.ClusterMaintenancePolicy)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy other = + (com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getWeeklyMaintenanceWindowList().equals(other.getWeeklyMaintenanceWindowList())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (getWeeklyMaintenanceWindowCount() > 0) { + hash = (37 * hash) + WEEKLY_MAINTENANCE_WINDOW_FIELD_NUMBER; + hash = (53 * hash) + getWeeklyMaintenanceWindowList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Maintenance policy per cluster.
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy) + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ClusterMaintenancePolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ClusterMaintenancePolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy.class, + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy.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(); + getWeeklyMaintenanceWindowFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + if (weeklyMaintenanceWindowBuilder_ == null) { + weeklyMaintenanceWindow_ = java.util.Collections.emptyList(); + } else { + weeklyMaintenanceWindow_ = null; + weeklyMaintenanceWindowBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ClusterMaintenancePolicy_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy build() { + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy buildPartial() { + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy result = + new com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy result) { + if (weeklyMaintenanceWindowBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + weeklyMaintenanceWindow_ = + java.util.Collections.unmodifiableList(weeklyMaintenanceWindow_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.weeklyMaintenanceWindow_ = weeklyMaintenanceWindow_; + } else { + result.weeklyMaintenanceWindow_ = weeklyMaintenanceWindowBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy) { + return mergeFrom((com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy other) { + if (other + == com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy.getDefaultInstance()) + return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (weeklyMaintenanceWindowBuilder_ == null) { + if (!other.weeklyMaintenanceWindow_.isEmpty()) { + if (weeklyMaintenanceWindow_.isEmpty()) { + weeklyMaintenanceWindow_ = other.weeklyMaintenanceWindow_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureWeeklyMaintenanceWindowIsMutable(); + weeklyMaintenanceWindow_.addAll(other.weeklyMaintenanceWindow_); + } + onChanged(); + } + } else { + if (!other.weeklyMaintenanceWindow_.isEmpty()) { + if (weeklyMaintenanceWindowBuilder_.isEmpty()) { + weeklyMaintenanceWindowBuilder_.dispose(); + weeklyMaintenanceWindowBuilder_ = null; + weeklyMaintenanceWindow_ = other.weeklyMaintenanceWindow_; + bitField0_ = (bitField0_ & ~0x00000004); + weeklyMaintenanceWindowBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWeeklyMaintenanceWindowFieldBuilder() + : null; + } else { + weeklyMaintenanceWindowBuilder_.addAllMessages(other.weeklyMaintenanceWindow_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow m = + input.readMessage( + com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow + .parser(), + extensionRegistry); + if (weeklyMaintenanceWindowBuilder_ == null) { + ensureWeeklyMaintenanceWindowIsMutable(); + weeklyMaintenanceWindow_.add(m); + } else { + weeklyMaintenanceWindowBuilder_.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 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. The time when the policy was created i.e. Maintenance Window
    +     * or Deny Period was assigned.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +     * Output only. The time when the policy was created i.e. Maintenance Window
    +     * or Deny Period was assigned.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 1 [(.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. The time when the policy was created i.e. Maintenance Window
    +     * or Deny Period was assigned.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 1 [(.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_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The time when the policy was created i.e. Maintenance Window
    +     * or Deny Period was assigned.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 1 [(.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_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The time when the policy was created i.e. Maintenance Window
    +     * or Deny Period was assigned.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Output only. The time when the policy was created i.e. Maintenance Window
    +     * or Deny Period was assigned.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The time when the policy was created i.e. Maintenance Window
    +     * or Deny Period was assigned.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Output only. The time when the policy was created i.e. Maintenance Window
    +     * or Deny Period was assigned.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 1 [(.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. The time when the policy was created i.e. Maintenance Window
    +     * or Deny Period was assigned.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 1 [(.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. The time when the policy was updated i.e. Maintenance Window
    +     * or Deny Period was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * Output only. The time when the policy was updated i.e. Maintenance Window
    +     * or Deny Period was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 2 [(.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. The time when the policy was updated i.e. Maintenance Window
    +     * or Deny Period was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The time when the policy was updated i.e. Maintenance Window
    +     * or Deny Period was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The time when the policy was updated i.e. Maintenance Window
    +     * or Deny Period was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Output only. The time when the policy was updated i.e. Maintenance Window
    +     * or Deny Period was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The time when the policy was updated i.e. Maintenance Window
    +     * or Deny Period was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Output only. The time when the policy was updated i.e. Maintenance Window
    +     * or Deny Period was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 2 [(.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. The time when the policy was updated i.e. Maintenance Window
    +     * or Deny Period was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp 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> + 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 java.util.List + weeklyMaintenanceWindow_ = java.util.Collections.emptyList(); + + private void ensureWeeklyMaintenanceWindowIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + weeklyMaintenanceWindow_ = + new java.util.ArrayList< + com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow>( + weeklyMaintenanceWindow_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow, + com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow.Builder, + com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindowOrBuilder> + weeklyMaintenanceWindowBuilder_; + + /** + * + * + *
    +     * Optional. Maintenance window that is applied to resources covered by this
    +     * policy. Minimum 1. For the current version, the maximum number of
    +     * weekly_maintenance_window is expected to be one.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + public java.util.List + getWeeklyMaintenanceWindowList() { + if (weeklyMaintenanceWindowBuilder_ == null) { + return java.util.Collections.unmodifiableList(weeklyMaintenanceWindow_); + } else { + return weeklyMaintenanceWindowBuilder_.getMessageList(); + } + } + /** + * + * + *
    +     * Optional. Maintenance window that is applied to resources covered by this
    +     * policy. Minimum 1. For the current version, the maximum number of
    +     * weekly_maintenance_window is expected to be one.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + public int getWeeklyMaintenanceWindowCount() { + if (weeklyMaintenanceWindowBuilder_ == null) { + return weeklyMaintenanceWindow_.size(); + } else { + return weeklyMaintenanceWindowBuilder_.getCount(); + } + } + /** + * + * + *
    +     * Optional. Maintenance window that is applied to resources covered by this
    +     * policy. Minimum 1. For the current version, the maximum number of
    +     * weekly_maintenance_window is expected to be one.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + public com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow + getWeeklyMaintenanceWindow(int index) { + if (weeklyMaintenanceWindowBuilder_ == null) { + return weeklyMaintenanceWindow_.get(index); + } else { + return weeklyMaintenanceWindowBuilder_.getMessage(index); + } + } + /** + * + * + *
    +     * Optional. Maintenance window that is applied to resources covered by this
    +     * policy. Minimum 1. For the current version, the maximum number of
    +     * weekly_maintenance_window is expected to be one.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + public Builder setWeeklyMaintenanceWindow( + int index, com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow value) { + if (weeklyMaintenanceWindowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWeeklyMaintenanceWindowIsMutable(); + weeklyMaintenanceWindow_.set(index, value); + onChanged(); + } else { + weeklyMaintenanceWindowBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * Optional. Maintenance window that is applied to resources covered by this
    +     * policy. Minimum 1. For the current version, the maximum number of
    +     * weekly_maintenance_window is expected to be one.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + public Builder setWeeklyMaintenanceWindow( + int index, + com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow.Builder + builderForValue) { + if (weeklyMaintenanceWindowBuilder_ == null) { + ensureWeeklyMaintenanceWindowIsMutable(); + weeklyMaintenanceWindow_.set(index, builderForValue.build()); + onChanged(); + } else { + weeklyMaintenanceWindowBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * Optional. Maintenance window that is applied to resources covered by this
    +     * policy. Minimum 1. For the current version, the maximum number of
    +     * weekly_maintenance_window is expected to be one.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + public Builder addWeeklyMaintenanceWindow( + com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow value) { + if (weeklyMaintenanceWindowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWeeklyMaintenanceWindowIsMutable(); + weeklyMaintenanceWindow_.add(value); + onChanged(); + } else { + weeklyMaintenanceWindowBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
    +     * Optional. Maintenance window that is applied to resources covered by this
    +     * policy. Minimum 1. For the current version, the maximum number of
    +     * weekly_maintenance_window is expected to be one.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + public Builder addWeeklyMaintenanceWindow( + int index, com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow value) { + if (weeklyMaintenanceWindowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWeeklyMaintenanceWindowIsMutable(); + weeklyMaintenanceWindow_.add(index, value); + onChanged(); + } else { + weeklyMaintenanceWindowBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * Optional. Maintenance window that is applied to resources covered by this
    +     * policy. Minimum 1. For the current version, the maximum number of
    +     * weekly_maintenance_window is expected to be one.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + public Builder addWeeklyMaintenanceWindow( + com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow.Builder + builderForValue) { + if (weeklyMaintenanceWindowBuilder_ == null) { + ensureWeeklyMaintenanceWindowIsMutable(); + weeklyMaintenanceWindow_.add(builderForValue.build()); + onChanged(); + } else { + weeklyMaintenanceWindowBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * Optional. Maintenance window that is applied to resources covered by this
    +     * policy. Minimum 1. For the current version, the maximum number of
    +     * weekly_maintenance_window is expected to be one.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + public Builder addWeeklyMaintenanceWindow( + int index, + com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow.Builder + builderForValue) { + if (weeklyMaintenanceWindowBuilder_ == null) { + ensureWeeklyMaintenanceWindowIsMutable(); + weeklyMaintenanceWindow_.add(index, builderForValue.build()); + onChanged(); + } else { + weeklyMaintenanceWindowBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * Optional. Maintenance window that is applied to resources covered by this
    +     * policy. Minimum 1. For the current version, the maximum number of
    +     * weekly_maintenance_window is expected to be one.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + public Builder addAllWeeklyMaintenanceWindow( + java.lang.Iterable< + ? extends com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow> + values) { + if (weeklyMaintenanceWindowBuilder_ == null) { + ensureWeeklyMaintenanceWindowIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, weeklyMaintenanceWindow_); + onChanged(); + } else { + weeklyMaintenanceWindowBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
    +     * Optional. Maintenance window that is applied to resources covered by this
    +     * policy. Minimum 1. For the current version, the maximum number of
    +     * weekly_maintenance_window is expected to be one.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + public Builder clearWeeklyMaintenanceWindow() { + if (weeklyMaintenanceWindowBuilder_ == null) { + weeklyMaintenanceWindow_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + weeklyMaintenanceWindowBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * Optional. Maintenance window that is applied to resources covered by this
    +     * policy. Minimum 1. For the current version, the maximum number of
    +     * weekly_maintenance_window is expected to be one.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + public Builder removeWeeklyMaintenanceWindow(int index) { + if (weeklyMaintenanceWindowBuilder_ == null) { + ensureWeeklyMaintenanceWindowIsMutable(); + weeklyMaintenanceWindow_.remove(index); + onChanged(); + } else { + weeklyMaintenanceWindowBuilder_.remove(index); + } + return this; + } + /** + * + * + *
    +     * Optional. Maintenance window that is applied to resources covered by this
    +     * policy. Minimum 1. For the current version, the maximum number of
    +     * weekly_maintenance_window is expected to be one.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + public com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow.Builder + getWeeklyMaintenanceWindowBuilder(int index) { + return getWeeklyMaintenanceWindowFieldBuilder().getBuilder(index); + } + /** + * + * + *
    +     * Optional. Maintenance window that is applied to resources covered by this
    +     * policy. Minimum 1. For the current version, the maximum number of
    +     * weekly_maintenance_window is expected to be one.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + public com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindowOrBuilder + getWeeklyMaintenanceWindowOrBuilder(int index) { + if (weeklyMaintenanceWindowBuilder_ == null) { + return weeklyMaintenanceWindow_.get(index); + } else { + return weeklyMaintenanceWindowBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
    +     * Optional. Maintenance window that is applied to resources covered by this
    +     * policy. Minimum 1. For the current version, the maximum number of
    +     * weekly_maintenance_window is expected to be one.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + public java.util.List< + ? extends + com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindowOrBuilder> + getWeeklyMaintenanceWindowOrBuilderList() { + if (weeklyMaintenanceWindowBuilder_ != null) { + return weeklyMaintenanceWindowBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(weeklyMaintenanceWindow_); + } + } + /** + * + * + *
    +     * Optional. Maintenance window that is applied to resources covered by this
    +     * policy. Minimum 1. For the current version, the maximum number of
    +     * weekly_maintenance_window is expected to be one.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + public com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow.Builder + addWeeklyMaintenanceWindowBuilder() { + return getWeeklyMaintenanceWindowFieldBuilder() + .addBuilder( + com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow + .getDefaultInstance()); + } + /** + * + * + *
    +     * Optional. Maintenance window that is applied to resources covered by this
    +     * policy. Minimum 1. For the current version, the maximum number of
    +     * weekly_maintenance_window is expected to be one.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + public com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow.Builder + addWeeklyMaintenanceWindowBuilder(int index) { + return getWeeklyMaintenanceWindowFieldBuilder() + .addBuilder( + index, + com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow + .getDefaultInstance()); + } + /** + * + * + *
    +     * Optional. Maintenance window that is applied to resources covered by this
    +     * policy. Minimum 1. For the current version, the maximum number of
    +     * weekly_maintenance_window is expected to be one.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + public java.util.List< + com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow.Builder> + getWeeklyMaintenanceWindowBuilderList() { + return getWeeklyMaintenanceWindowFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow, + com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow.Builder, + com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindowOrBuilder> + getWeeklyMaintenanceWindowFieldBuilder() { + if (weeklyMaintenanceWindowBuilder_ == null) { + weeklyMaintenanceWindowBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow, + com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow.Builder, + com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindowOrBuilder>( + weeklyMaintenanceWindow_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + weeklyMaintenanceWindow_ = null; + } + return weeklyMaintenanceWindowBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy) + private static final com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy(); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterMaintenancePolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterMaintenancePolicyOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterMaintenancePolicyOrBuilder.java new file mode 100644 index 000000000000..75bc639da755 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterMaintenancePolicyOrBuilder.java @@ -0,0 +1,184 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +public interface ClusterMaintenancePolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Output only. The time when the policy was created i.e. Maintenance Window
    +   * or Deny Period was assigned.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
    +   * Output only. The time when the policy was created i.e. Maintenance Window
    +   * or Deny Period was assigned.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
    +   * Output only. The time when the policy was created i.e. Maintenance Window
    +   * or Deny Period was assigned.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
    +   * Output only. The time when the policy was updated i.e. Maintenance Window
    +   * or Deny Period was updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
    +   * Output only. The time when the policy was updated i.e. Maintenance Window
    +   * or Deny Period was updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
    +   * Output only. The time when the policy was updated i.e. Maintenance Window
    +   * or Deny Period was updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
    +   * Optional. Maintenance window that is applied to resources covered by this
    +   * policy. Minimum 1. For the current version, the maximum number of
    +   * weekly_maintenance_window is expected to be one.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + java.util.List + getWeeklyMaintenanceWindowList(); + /** + * + * + *
    +   * Optional. Maintenance window that is applied to resources covered by this
    +   * policy. Minimum 1. For the current version, the maximum number of
    +   * weekly_maintenance_window is expected to be one.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow getWeeklyMaintenanceWindow( + int index); + /** + * + * + *
    +   * Optional. Maintenance window that is applied to resources covered by this
    +   * policy. Minimum 1. For the current version, the maximum number of
    +   * weekly_maintenance_window is expected to be one.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + int getWeeklyMaintenanceWindowCount(); + /** + * + * + *
    +   * Optional. Maintenance window that is applied to resources covered by this
    +   * policy. Minimum 1. For the current version, the maximum number of
    +   * weekly_maintenance_window is expected to be one.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + java.util.List< + ? extends com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindowOrBuilder> + getWeeklyMaintenanceWindowOrBuilderList(); + /** + * + * + *
    +   * Optional. Maintenance window that is applied to resources covered by this
    +   * policy. Minimum 1. For the current version, the maximum number of
    +   * weekly_maintenance_window is expected to be one.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; + * + */ + com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindowOrBuilder + getWeeklyMaintenanceWindowOrBuilder(int index); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterMaintenanceSchedule.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterMaintenanceSchedule.java new file mode 100644 index 000000000000..1661c9d5af50 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterMaintenanceSchedule.java @@ -0,0 +1,1031 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
    + * Upcoming maitenance schedule.
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule} + */ +public final class ClusterMaintenanceSchedule extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule) + ClusterMaintenanceScheduleOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClusterMaintenanceSchedule.newBuilder() to construct. + private ClusterMaintenanceSchedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ClusterMaintenanceSchedule() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ClusterMaintenanceSchedule(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ClusterMaintenanceSchedule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ClusterMaintenanceSchedule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule.class, + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule.Builder.class); + } + + private int bitField0_; + public static final int START_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
    +   * Output only. The start time of any upcoming scheduled maintenance for this
    +   * instance.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * Output only. The start time of any upcoming scheduled maintenance for this
    +   * instance.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
    +   * Output only. The start time of any upcoming scheduled maintenance for this
    +   * instance.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @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 = 2; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
    +   * Output only. The end time of any upcoming scheduled maintenance for this
    +   * instance.
    +   * 
    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +   * Output only. The end time of any upcoming scheduled maintenance for this
    +   * instance.
    +   * 
    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
    +   * Output only. The end time of any upcoming scheduled maintenance for this
    +   * instance.
    +   * 
    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getEndTime()); + } + 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, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, 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.redis.cluster.v1beta1.ClusterMaintenanceSchedule)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule other = + (com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule) obj; + + 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(); + 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.redis.cluster.v1beta1.ClusterMaintenanceSchedule parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Upcoming maitenance schedule.
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule) + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceScheduleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ClusterMaintenanceSchedule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ClusterMaintenanceSchedule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule.class, + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule.Builder.class); + } + + // Construct using + // com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule.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; + 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.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ClusterMaintenanceSchedule_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule build() { + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule buildPartial() { + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule result = + new com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 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.redis.cluster.v1beta1.ClusterMaintenanceSchedule) { + return mergeFrom((com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule other) { + if (other + == com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule.getDefaultInstance()) + return this; + 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: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
    +     * Output only. The start time of any upcoming scheduled maintenance for this
    +     * instance.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +     * Output only. The start time of any upcoming scheduled maintenance for this
    +     * instance.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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(); + } + } + /** + * + * + *
    +     * Output only. The start time of any upcoming scheduled maintenance for this
    +     * instance.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The start time of any upcoming scheduled maintenance for this
    +     * instance.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The start time of any upcoming scheduled maintenance for this
    +     * instance.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Output only. The start time of any upcoming scheduled maintenance for this
    +     * instance.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000001); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The start time of any upcoming scheduled maintenance for this
    +     * instance.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Output only. The start time of any upcoming scheduled maintenance for this
    +     * instance.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
    +     * Output only. The start time of any upcoming scheduled maintenance for this
    +     * instance.
    +     * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + 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_; + /** + * + * + *
    +     * Output only. The end time of any upcoming scheduled maintenance for this
    +     * instance.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * Output only. The end time of any upcoming scheduled maintenance for this
    +     * instance.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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(); + } + } + /** + * + * + *
    +     * Output only. The end time of any upcoming scheduled maintenance for this
    +     * instance.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The end time of any upcoming scheduled maintenance for this
    +     * instance.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The end time of any upcoming scheduled maintenance for this
    +     * instance.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Output only. The end time of any upcoming scheduled maintenance for this
    +     * instance.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000002); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The end time of any upcoming scheduled maintenance for this
    +     * instance.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Output only. The end time of any upcoming scheduled maintenance for this
    +     * instance.
    +     * 
    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
    +     * Output only. The end time of any upcoming scheduled maintenance for this
    +     * instance.
    +     * 
    + * + * .google.protobuf.Timestamp end_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> + 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.redis.cluster.v1beta1.ClusterMaintenanceSchedule) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule) + private static final com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule(); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterMaintenanceSchedule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterMaintenanceScheduleOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterMaintenanceScheduleOrBuilder.java new file mode 100644 index 000000000000..41dd28ffda68 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterMaintenanceScheduleOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +public interface ClusterMaintenanceScheduleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Output only. The start time of any upcoming scheduled maintenance for this
    +   * instance.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
    +   * Output only. The start time of any upcoming scheduled maintenance for this
    +   * instance.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
    +   * Output only. The start time of any upcoming scheduled maintenance for this
    +   * instance.
    +   * 
    + * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
    +   * Output only. The end time of any upcoming scheduled maintenance for this
    +   * instance.
    +   * 
    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * + * + *
    +   * Output only. The end time of any upcoming scheduled maintenance for this
    +   * instance.
    +   * 
    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
    +   * Output only. The end time of any upcoming scheduled maintenance for this
    +   * instance.
    +   * 
    + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterOrBuilder.java index 93b9533e5980..30a4d1c99dc6 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterOrBuilder.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterOrBuilder.java @@ -28,12 +28,106 @@ public interface ClusterOrBuilder * * *
    -   * Required. Unique name of the resource in this scope including project and
    -   * location using the form:
    +   * Optional. Backups stored in Cloud Storage buckets.
    +   * The Cloud Storage buckets need to be the same region as the clusters.
    +   * Read permission is required to import from the provided Cloud Storage
    +   * objects.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource gcs_source = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gcsSource field is set. + */ + boolean hasGcsSource(); + /** + * + * + *
    +   * Optional. Backups stored in Cloud Storage buckets.
    +   * The Cloud Storage buckets need to be the same region as the clusters.
    +   * Read permission is required to import from the provided Cloud Storage
    +   * objects.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource gcs_source = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gcsSource. + */ + com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource getGcsSource(); + /** + * + * + *
    +   * Optional. Backups stored in Cloud Storage buckets.
    +   * The Cloud Storage buckets need to be the same region as the clusters.
    +   * Read permission is required to import from the provided Cloud Storage
    +   * objects.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSource gcs_source = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.redis.cluster.v1beta1.Cluster.GcsBackupSourceOrBuilder getGcsSourceOrBuilder(); + + /** + * + * + *
    +   * Optional. Backups generated and managed by memorystore service.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource managed_backup_source = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the managedBackupSource field is set. + */ + boolean hasManagedBackupSource(); + /** + * + * + *
    +   * Optional. Backups generated and managed by memorystore service.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource managed_backup_source = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The managedBackupSource. + */ + com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource getManagedBackupSource(); + /** + * + * + *
    +   * Optional. Backups generated and managed by memorystore service.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource managed_backup_source = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSourceOrBuilder + getManagedBackupSourceOrBuilder(); + + /** + * + * + *
    +   * Required. Identifier. Unique name of the resource in this scope including
    +   * project and location using the form:
        *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
        * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The name. */ @@ -42,12 +136,14 @@ public interface ClusterOrBuilder * * *
    -   * Required. Unique name of the resource in this scope including project and
    -   * location using the form:
    +   * Required. Identifier. Unique name of the resource in this scope including
    +   * project and location using the form:
        *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
        * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The bytes for name. */ @@ -265,10 +361,10 @@ public interface ClusterOrBuilder * * *
    -   * Required. Number of shards for the Redis cluster.
    +   * Optional. Number of shards for the Redis cluster.
        * 
    * - * optional int32 shard_count = 14 [(.google.api.field_behavior) = REQUIRED]; + * optional int32 shard_count = 14 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the shardCount field is set. */ @@ -277,10 +373,10 @@ public interface ClusterOrBuilder * * *
    -   * Required. Number of shards for the Redis cluster.
    +   * Optional. Number of shards for the Redis cluster.
        * 
    * - * optional int32 shard_count = 14 [(.google.api.field_behavior) = REQUIRED]; + * optional int32 shard_count = 14 [(.google.api.field_behavior) = OPTIONAL]; * * @return The shardCount. */ @@ -290,13 +386,13 @@ public interface ClusterOrBuilder * * *
    -   * Required. Each PscConfig configures the consumer network where IPs will
    +   * Optional. Each PscConfig configures the consumer network where IPs will
        * be designated to the cluster for client access through Private Service
        * Connect Automation. Currently, only one PscConfig is supported.
        * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ java.util.List getPscConfigsList(); @@ -304,13 +400,13 @@ public interface ClusterOrBuilder * * *
    -   * Required. Each PscConfig configures the consumer network where IPs will
    +   * Optional. Each PscConfig configures the consumer network where IPs will
        * be designated to the cluster for client access through Private Service
        * Connect Automation. Currently, only one PscConfig is supported.
        * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.cloud.redis.cluster.v1beta1.PscConfig getPscConfigs(int index); @@ -318,13 +414,13 @@ public interface ClusterOrBuilder * * *
    -   * Required. Each PscConfig configures the consumer network where IPs will
    +   * Optional. Each PscConfig configures the consumer network where IPs will
        * be designated to the cluster for client access through Private Service
        * Connect Automation. Currently, only one PscConfig is supported.
        * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ int getPscConfigsCount(); @@ -332,13 +428,13 @@ public interface ClusterOrBuilder * * *
    -   * Required. Each PscConfig configures the consumer network where IPs will
    +   * Optional. Each PscConfig configures the consumer network where IPs will
        * be designated to the cluster for client access through Private Service
        * Connect Automation. Currently, only one PscConfig is supported.
        * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ java.util.List @@ -347,13 +443,13 @@ public interface ClusterOrBuilder * * *
    -   * Required. Each PscConfig configures the consumer network where IPs will
    +   * Optional. Each PscConfig configures the consumer network where IPs will
        * be designated to the cluster for client access through Private Service
        * Connect Automation. Currently, only one PscConfig is supported.
        * 
    * * - * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = REQUIRED]; + * repeated .google.cloud.redis.cluster.v1beta1.PscConfig psc_configs = 15 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.cloud.redis.cluster.v1beta1.PscConfigOrBuilder getPscConfigsOrBuilder(int index); @@ -431,8 +527,8 @@ com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpointOrBuilder getDiscoveryEn * * *
    -   * Output only. PSC connections for discovery of the cluster topology and
    -   * accessing the cluster.
    +   * Output only. The list of PSC connections that are auto-created through
    +   * service connectivity automation.
        * 
    * * @@ -444,8 +540,8 @@ com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpointOrBuilder getDiscoveryEn * * *
    -   * Output only. PSC connections for discovery of the cluster topology and
    -   * accessing the cluster.
    +   * Output only. The list of PSC connections that are auto-created through
    +   * service connectivity automation.
        * 
    * * @@ -457,8 +553,8 @@ com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpointOrBuilder getDiscoveryEn * * *
    -   * Output only. PSC connections for discovery of the cluster topology and
    -   * accessing the cluster.
    +   * Output only. The list of PSC connections that are auto-created through
    +   * service connectivity automation.
        * 
    * * @@ -470,8 +566,8 @@ com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpointOrBuilder getDiscoveryEn * * *
    -   * Output only. PSC connections for discovery of the cluster topology and
    -   * accessing the cluster.
    +   * Output only. The list of PSC connections that are auto-created through
    +   * service connectivity automation.
        * 
    * * @@ -484,8 +580,8 @@ com.google.cloud.redis.cluster.v1beta1.DiscoveryEndpointOrBuilder getDiscoveryEn * * *
    -   * Output only. PSC connections for discovery of the cluster topology and
    -   * accessing the cluster.
    +   * Output only. The list of PSC connections that are auto-created through
    +   * service connectivity automation.
        * 
    * * @@ -744,6 +840,49 @@ java.lang.String getRedisConfigsOrDefault( com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfigOrBuilder getZoneDistributionConfigOrBuilder(); + /** + * + * + *
    +   * Optional. Cross cluster replication config.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig cross_cluster_replication_config = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the crossClusterReplicationConfig field is set. + */ + boolean hasCrossClusterReplicationConfig(); + /** + * + * + *
    +   * Optional. Cross cluster replication config.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig cross_cluster_replication_config = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The crossClusterReplicationConfig. + */ + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + getCrossClusterReplicationConfig(); + /** + * + * + *
    +   * Optional. Cross cluster replication config.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig cross_cluster_replication_config = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfigOrBuilder + getCrossClusterReplicationConfigOrBuilder(); + /** * * @@ -770,4 +909,395 @@ java.lang.String getRedisConfigsOrDefault( * @return The deletionProtectionEnabled. */ boolean getDeletionProtectionEnabled(); + + /** + * + * + *
    +   * Optional. ClusterMaintenancePolicy determines when to allow or deny
    +   * updates.
    +   * 
    + * + * + * optional .google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy maintenance_policy = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the maintenancePolicy field is set. + */ + boolean hasMaintenancePolicy(); + /** + * + * + *
    +   * Optional. ClusterMaintenancePolicy determines when to allow or deny
    +   * updates.
    +   * 
    + * + * + * optional .google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy maintenance_policy = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maintenancePolicy. + */ + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy getMaintenancePolicy(); + /** + * + * + *
    +   * Optional. ClusterMaintenancePolicy determines when to allow or deny
    +   * updates.
    +   * 
    + * + * + * optional .google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicy maintenance_policy = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenancePolicyOrBuilder + getMaintenancePolicyOrBuilder(); + + /** + * + * + *
    +   * Output only. ClusterMaintenanceSchedule Output only Published maintenance
    +   * schedule.
    +   * 
    + * + * + * optional .google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule maintenance_schedule = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the maintenanceSchedule field is set. + */ + boolean hasMaintenanceSchedule(); + /** + * + * + *
    +   * Output only. ClusterMaintenanceSchedule Output only Published maintenance
    +   * schedule.
    +   * 
    + * + * + * optional .google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule maintenance_schedule = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The maintenanceSchedule. + */ + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule getMaintenanceSchedule(); + /** + * + * + *
    +   * Output only. ClusterMaintenanceSchedule Output only Published maintenance
    +   * schedule.
    +   * 
    + * + * + * optional .google.cloud.redis.cluster.v1beta1.ClusterMaintenanceSchedule maintenance_schedule = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.redis.cluster.v1beta1.ClusterMaintenanceScheduleOrBuilder + getMaintenanceScheduleOrBuilder(); + + /** + * + * + *
    +   * Output only. Service attachment details to configure Psc connections
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getPscServiceAttachmentsList(); + /** + * + * + *
    +   * Output only. Service attachment details to configure Psc connections
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment getPscServiceAttachments(int index); + /** + * + * + *
    +   * Output only. Service attachment details to configure Psc connections
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getPscServiceAttachmentsCount(); + /** + * + * + *
    +   * Output only. Service attachment details to configure Psc connections
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getPscServiceAttachmentsOrBuilderList(); + /** + * + * + *
    +   * Output only. Service attachment details to configure Psc connections
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.PscServiceAttachment psc_service_attachments = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.redis.cluster.v1beta1.PscServiceAttachmentOrBuilder + getPscServiceAttachmentsOrBuilder(int index); + + /** + * + * + *
    +   * Optional. A list of cluster enpoints.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getClusterEndpointsList(); + /** + * + * + *
    +   * Optional. A list of cluster enpoints.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.redis.cluster.v1beta1.ClusterEndpoint getClusterEndpoints(int index); + /** + * + * + *
    +   * Optional. A list of cluster enpoints.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getClusterEndpointsCount(); + /** + * + * + *
    +   * Optional. A list of cluster enpoints.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getClusterEndpointsOrBuilderList(); + /** + * + * + *
    +   * Optional. A list of cluster enpoints.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.ClusterEndpoint cluster_endpoints = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.redis.cluster.v1beta1.ClusterEndpointOrBuilder getClusterEndpointsOrBuilder( + int index); + + /** + * + * + *
    +   * Optional. Output only. The backup collection full resource name. Example:
    +   * projects/{project}/locations/{location}/backupCollections/{collection}
    +   * 
    + * + * + * optional string backup_collection = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the backupCollection field is set. + */ + boolean hasBackupCollection(); + /** + * + * + *
    +   * Optional. Output only. The backup collection full resource name. Example:
    +   * projects/{project}/locations/{location}/backupCollections/{collection}
    +   * 
    + * + * + * optional string backup_collection = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The backupCollection. + */ + java.lang.String getBackupCollection(); + /** + * + * + *
    +   * Optional. Output only. The backup collection full resource name. Example:
    +   * projects/{project}/locations/{location}/backupCollections/{collection}
    +   * 
    + * + * + * optional string backup_collection = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for backupCollection. + */ + com.google.protobuf.ByteString getBackupCollectionBytes(); + + /** + * + * + *
    +   * Optional. The KMS key used to encrypt the at-rest data of the cluster.
    +   * 
    + * + * + * optional string kms_key = 40 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the kmsKey field is set. + */ + boolean hasKmsKey(); + /** + * + * + *
    +   * Optional. The KMS key used to encrypt the at-rest data of the cluster.
    +   * 
    + * + * + * optional string kms_key = 40 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The kmsKey. + */ + java.lang.String getKmsKey(); + /** + * + * + *
    +   * Optional. The KMS key used to encrypt the at-rest data of the cluster.
    +   * 
    + * + * + * optional string kms_key = 40 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for kmsKey. + */ + com.google.protobuf.ByteString getKmsKeyBytes(); + + /** + * + * + *
    +   * Optional. The automated backup config for the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig automated_backup_config = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the automatedBackupConfig field is set. + */ + boolean hasAutomatedBackupConfig(); + /** + * + * + *
    +   * Optional. The automated backup config for the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig automated_backup_config = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The automatedBackupConfig. + */ + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig getAutomatedBackupConfig(); + /** + * + * + *
    +   * Optional. The automated backup config for the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.AutomatedBackupConfig automated_backup_config = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.redis.cluster.v1beta1.AutomatedBackupConfigOrBuilder + getAutomatedBackupConfigOrBuilder(); + + /** + * + * + *
    +   * Output only. Encryption information of the data at rest of the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo encryption_info = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the encryptionInfo field is set. + */ + boolean hasEncryptionInfo(); + /** + * + * + *
    +   * Output only. Encryption information of the data at rest of the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo encryption_info = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The encryptionInfo. + */ + com.google.cloud.redis.cluster.v1beta1.EncryptionInfo getEncryptionInfo(); + /** + * + * + *
    +   * Output only. Encryption information of the data at rest of the cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo encryption_info = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.redis.cluster.v1beta1.EncryptionInfoOrBuilder getEncryptionInfoOrBuilder(); + + com.google.cloud.redis.cluster.v1beta1.Cluster.ImportSourcesCase getImportSourcesCase(); } diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterPersistenceConfig.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterPersistenceConfig.java index 7e9f444b6ad9..845db865d37a 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterPersistenceConfig.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterPersistenceConfig.java @@ -1632,8 +1632,8 @@ public enum AppendFsync implements com.google.protobuf.ProtocolMessageEnum { * * *
    -       * fsync every time new commands are appended to the AOF. It has the best
    -       * data loss protection at the cost of performance
    +       * fsync every time new write commands are appended to the AOF. It has the
    +       * best data loss protection at the cost of performance
            * 
    * * ALWAYS = 3; @@ -1678,8 +1678,8 @@ public enum AppendFsync implements com.google.protobuf.ProtocolMessageEnum { * * *
    -       * fsync every time new commands are appended to the AOF. It has the best
    -       * data loss protection at the cost of performance
    +       * fsync every time new write commands are appended to the AOF. It has the
    +       * best data loss protection at the cost of performance
            * 
    * * ALWAYS = 3; diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterWeeklyMaintenanceWindow.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterWeeklyMaintenanceWindow.java new file mode 100644 index 000000000000..10f6cea720a2 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterWeeklyMaintenanceWindow.java @@ -0,0 +1,873 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
    + * Time window specified for weekly operations.
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow} + */ +public final class ClusterWeeklyMaintenanceWindow extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow) + ClusterWeeklyMaintenanceWindowOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClusterWeeklyMaintenanceWindow.newBuilder() to construct. + private ClusterWeeklyMaintenanceWindow( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ClusterWeeklyMaintenanceWindow() { + day_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ClusterWeeklyMaintenanceWindow(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ClusterWeeklyMaintenanceWindow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ClusterWeeklyMaintenanceWindow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow.class, + com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow.Builder.class); + } + + private int bitField0_; + public static final int DAY_FIELD_NUMBER = 1; + private int day_ = 0; + /** + * + * + *
    +   * Allows to define schedule that runs specified day of the week.
    +   * 
    + * + * .google.type.DayOfWeek day = 1; + * + * @return The enum numeric value on the wire for day. + */ + @java.lang.Override + public int getDayValue() { + return day_; + } + /** + * + * + *
    +   * Allows to define schedule that runs specified day of the week.
    +   * 
    + * + * .google.type.DayOfWeek day = 1; + * + * @return The day. + */ + @java.lang.Override + public com.google.type.DayOfWeek getDay() { + com.google.type.DayOfWeek result = com.google.type.DayOfWeek.forNumber(day_); + return result == null ? com.google.type.DayOfWeek.UNRECOGNIZED : result; + } + + public static final int START_TIME_FIELD_NUMBER = 2; + private com.google.type.TimeOfDay startTime_; + /** + * + * + *
    +   * Start time of the window in UTC.
    +   * 
    + * + * .google.type.TimeOfDay start_time = 2; + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * Start time of the window in UTC.
    +   * 
    + * + * .google.type.TimeOfDay start_time = 2; + * + * @return The startTime. + */ + @java.lang.Override + public com.google.type.TimeOfDay getStartTime() { + return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; + } + /** + * + * + *
    +   * Start time of the window in UTC.
    +   * 
    + * + * .google.type.TimeOfDay start_time = 2; + */ + @java.lang.Override + public com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (day_ != com.google.type.DayOfWeek.DAY_OF_WEEK_UNSPECIFIED.getNumber()) { + output.writeEnum(1, day_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getStartTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (day_ != com.google.type.DayOfWeek.DAY_OF_WEEK_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, day_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow other = + (com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow) obj; + + if (day_ != other.day_) return false; + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (!getUnknownFields().equals(other.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) + DAY_FIELD_NUMBER; + hash = (53 * hash) + day_; + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Time window specified for weekly operations.
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow) + com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ClusterWeeklyMaintenanceWindow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ClusterWeeklyMaintenanceWindow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow.class, + com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow.Builder.class); + } + + // Construct using + // com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow.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(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + day_ = 0; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ClusterWeeklyMaintenanceWindow_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow build() { + com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow buildPartial() { + com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow result = + new com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.day_ = day_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.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.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow) { + return mergeFrom( + (com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow other) { + if (other + == com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow + .getDefaultInstance()) return this; + if (other.day_ != 0) { + setDayValue(other.getDayValue()); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + day_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage(getStartTimeFieldBuilder().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 day_ = 0; + /** + * + * + *
    +     * Allows to define schedule that runs specified day of the week.
    +     * 
    + * + * .google.type.DayOfWeek day = 1; + * + * @return The enum numeric value on the wire for day. + */ + @java.lang.Override + public int getDayValue() { + return day_; + } + /** + * + * + *
    +     * Allows to define schedule that runs specified day of the week.
    +     * 
    + * + * .google.type.DayOfWeek day = 1; + * + * @param value The enum numeric value on the wire for day to set. + * @return This builder for chaining. + */ + public Builder setDayValue(int value) { + day_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Allows to define schedule that runs specified day of the week.
    +     * 
    + * + * .google.type.DayOfWeek day = 1; + * + * @return The day. + */ + @java.lang.Override + public com.google.type.DayOfWeek getDay() { + com.google.type.DayOfWeek result = com.google.type.DayOfWeek.forNumber(day_); + return result == null ? com.google.type.DayOfWeek.UNRECOGNIZED : result; + } + /** + * + * + *
    +     * Allows to define schedule that runs specified day of the week.
    +     * 
    + * + * .google.type.DayOfWeek day = 1; + * + * @param value The day to set. + * @return This builder for chaining. + */ + public Builder setDay(com.google.type.DayOfWeek value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + day_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Allows to define schedule that runs specified day of the week.
    +     * 
    + * + * .google.type.DayOfWeek day = 1; + * + * @return This builder for chaining. + */ + public Builder clearDay() { + bitField0_ = (bitField0_ & ~0x00000001); + day_ = 0; + onChanged(); + return this; + } + + private com.google.type.TimeOfDay startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder> + startTimeBuilder_; + /** + * + * + *
    +     * Start time of the window in UTC.
    +     * 
    + * + * .google.type.TimeOfDay start_time = 2; + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * Start time of the window in UTC.
    +     * 
    + * + * .google.type.TimeOfDay start_time = 2; + * + * @return The startTime. + */ + public com.google.type.TimeOfDay getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Start time of the window in UTC.
    +     * 
    + * + * .google.type.TimeOfDay start_time = 2; + */ + public Builder setStartTime(com.google.type.TimeOfDay value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Start time of the window in UTC.
    +     * 
    + * + * .google.type.TimeOfDay start_time = 2; + */ + public Builder setStartTime(com.google.type.TimeOfDay.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Start time of the window in UTC.
    +     * 
    + * + * .google.type.TimeOfDay start_time = 2; + */ + public Builder mergeStartTime(com.google.type.TimeOfDay value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && startTime_ != null + && startTime_ != com.google.type.TimeOfDay.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Start time of the window in UTC.
    +     * 
    + * + * .google.type.TimeOfDay start_time = 2; + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000002); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Start time of the window in UTC.
    +     * 
    + * + * .google.type.TimeOfDay start_time = 2; + */ + public com.google.type.TimeOfDay.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Start time of the window in UTC.
    +     * 
    + * + * .google.type.TimeOfDay start_time = 2; + */ + public com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
    +     * Start time of the window in UTC.
    +     * 
    + * + * .google.type.TimeOfDay start_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow) + private static final com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow(); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterWeeklyMaintenanceWindow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterWeeklyMaintenanceWindowOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterWeeklyMaintenanceWindowOrBuilder.java new file mode 100644 index 000000000000..c2d4b461506e --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterWeeklyMaintenanceWindowOrBuilder.java @@ -0,0 +1,86 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +public interface ClusterWeeklyMaintenanceWindowOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.ClusterWeeklyMaintenanceWindow) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Allows to define schedule that runs specified day of the week.
    +   * 
    + * + * .google.type.DayOfWeek day = 1; + * + * @return The enum numeric value on the wire for day. + */ + int getDayValue(); + /** + * + * + *
    +   * Allows to define schedule that runs specified day of the week.
    +   * 
    + * + * .google.type.DayOfWeek day = 1; + * + * @return The day. + */ + com.google.type.DayOfWeek getDay(); + + /** + * + * + *
    +   * Start time of the window in UTC.
    +   * 
    + * + * .google.type.TimeOfDay start_time = 2; + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
    +   * Start time of the window in UTC.
    +   * 
    + * + * .google.type.TimeOfDay start_time = 2; + * + * @return The startTime. + */ + com.google.type.TimeOfDay getStartTime(); + /** + * + * + *
    +   * Start time of the window in UTC.
    +   * 
    + * + * .google.type.TimeOfDay start_time = 2; + */ + com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ConnectionDetail.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ConnectionDetail.java new file mode 100644 index 000000000000..2a7d78e08e84 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ConnectionDetail.java @@ -0,0 +1,1149 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
    + * Detailed information of each PSC connection.
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.ConnectionDetail} + */ +public final class ConnectionDetail extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.ConnectionDetail) + ConnectionDetailOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConnectionDetail.newBuilder() to construct. + private ConnectionDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConnectionDetail() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConnectionDetail(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ConnectionDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ConnectionDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.ConnectionDetail.class, + com.google.cloud.redis.cluster.v1beta1.ConnectionDetail.Builder.class); + } + + private int connectionCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object connection_; + + public enum ConnectionCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PSC_AUTO_CONNECTION(1), + PSC_CONNECTION(2), + CONNECTION_NOT_SET(0); + private final int value; + + private ConnectionCase(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 ConnectionCase valueOf(int value) { + return forNumber(value); + } + + public static ConnectionCase forNumber(int value) { + switch (value) { + case 1: + return PSC_AUTO_CONNECTION; + case 2: + return PSC_CONNECTION; + case 0: + return CONNECTION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ConnectionCase getConnectionCase() { + return ConnectionCase.forNumber(connectionCase_); + } + + public static final int PSC_AUTO_CONNECTION_FIELD_NUMBER = 1; + /** + * + * + *
    +   * Detailed information of a PSC connection that is created through
    +   * service connectivity automation.
    +   * 
    + * + * .google.cloud.redis.cluster.v1beta1.PscAutoConnection psc_auto_connection = 1; + * + * @return Whether the pscAutoConnection field is set. + */ + @java.lang.Override + public boolean hasPscAutoConnection() { + return connectionCase_ == 1; + } + /** + * + * + *
    +   * Detailed information of a PSC connection that is created through
    +   * service connectivity automation.
    +   * 
    + * + * .google.cloud.redis.cluster.v1beta1.PscAutoConnection psc_auto_connection = 1; + * + * @return The pscAutoConnection. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.PscAutoConnection getPscAutoConnection() { + if (connectionCase_ == 1) { + return (com.google.cloud.redis.cluster.v1beta1.PscAutoConnection) connection_; + } + return com.google.cloud.redis.cluster.v1beta1.PscAutoConnection.getDefaultInstance(); + } + /** + * + * + *
    +   * Detailed information of a PSC connection that is created through
    +   * service connectivity automation.
    +   * 
    + * + * .google.cloud.redis.cluster.v1beta1.PscAutoConnection psc_auto_connection = 1; + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.PscAutoConnectionOrBuilder + getPscAutoConnectionOrBuilder() { + if (connectionCase_ == 1) { + return (com.google.cloud.redis.cluster.v1beta1.PscAutoConnection) connection_; + } + return com.google.cloud.redis.cluster.v1beta1.PscAutoConnection.getDefaultInstance(); + } + + public static final int PSC_CONNECTION_FIELD_NUMBER = 2; + /** + * + * + *
    +   * Detailed information of a PSC connection that is created by the customer
    +   * who owns the cluster.
    +   * 
    + * + * .google.cloud.redis.cluster.v1beta1.PscConnection psc_connection = 2; + * + * @return Whether the pscConnection field is set. + */ + @java.lang.Override + public boolean hasPscConnection() { + return connectionCase_ == 2; + } + /** + * + * + *
    +   * Detailed information of a PSC connection that is created by the customer
    +   * who owns the cluster.
    +   * 
    + * + * .google.cloud.redis.cluster.v1beta1.PscConnection psc_connection = 2; + * + * @return The pscConnection. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.PscConnection getPscConnection() { + if (connectionCase_ == 2) { + return (com.google.cloud.redis.cluster.v1beta1.PscConnection) connection_; + } + return com.google.cloud.redis.cluster.v1beta1.PscConnection.getDefaultInstance(); + } + /** + * + * + *
    +   * Detailed information of a PSC connection that is created by the customer
    +   * who owns the cluster.
    +   * 
    + * + * .google.cloud.redis.cluster.v1beta1.PscConnection psc_connection = 2; + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.PscConnectionOrBuilder getPscConnectionOrBuilder() { + if (connectionCase_ == 2) { + return (com.google.cloud.redis.cluster.v1beta1.PscConnection) connection_; + } + return com.google.cloud.redis.cluster.v1beta1.PscConnection.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 (connectionCase_ == 1) { + output.writeMessage( + 1, (com.google.cloud.redis.cluster.v1beta1.PscAutoConnection) connection_); + } + if (connectionCase_ == 2) { + output.writeMessage(2, (com.google.cloud.redis.cluster.v1beta1.PscConnection) connection_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (connectionCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.redis.cluster.v1beta1.PscAutoConnection) connection_); + } + if (connectionCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.redis.cluster.v1beta1.PscConnection) connection_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1beta1.ConnectionDetail)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.ConnectionDetail other = + (com.google.cloud.redis.cluster.v1beta1.ConnectionDetail) obj; + + if (!getConnectionCase().equals(other.getConnectionCase())) return false; + switch (connectionCase_) { + case 1: + if (!getPscAutoConnection().equals(other.getPscAutoConnection())) return false; + break; + case 2: + if (!getPscConnection().equals(other.getPscConnection())) 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 (connectionCase_) { + case 1: + hash = (37 * hash) + PSC_AUTO_CONNECTION_FIELD_NUMBER; + hash = (53 * hash) + getPscAutoConnection().hashCode(); + break; + case 2: + hash = (37 * hash) + PSC_CONNECTION_FIELD_NUMBER; + hash = (53 * hash) + getPscConnection().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.ConnectionDetail parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ConnectionDetail parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ConnectionDetail parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ConnectionDetail parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ConnectionDetail parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ConnectionDetail parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ConnectionDetail parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ConnectionDetail parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ConnectionDetail parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ConnectionDetail parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ConnectionDetail parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ConnectionDetail parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1beta1.ConnectionDetail prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Detailed information of each PSC connection.
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.ConnectionDetail} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.ConnectionDetail) + com.google.cloud.redis.cluster.v1beta1.ConnectionDetailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ConnectionDetail_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ConnectionDetail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.ConnectionDetail.class, + com.google.cloud.redis.cluster.v1beta1.ConnectionDetail.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1beta1.ConnectionDetail.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (pscAutoConnectionBuilder_ != null) { + pscAutoConnectionBuilder_.clear(); + } + if (pscConnectionBuilder_ != null) { + pscConnectionBuilder_.clear(); + } + connectionCase_ = 0; + connection_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ConnectionDetail_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ConnectionDetail getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.ConnectionDetail.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ConnectionDetail build() { + com.google.cloud.redis.cluster.v1beta1.ConnectionDetail result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ConnectionDetail buildPartial() { + com.google.cloud.redis.cluster.v1beta1.ConnectionDetail result = + new com.google.cloud.redis.cluster.v1beta1.ConnectionDetail(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1beta1.ConnectionDetail result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.redis.cluster.v1beta1.ConnectionDetail result) { + result.connectionCase_ = connectionCase_; + result.connection_ = this.connection_; + if (connectionCase_ == 1 && pscAutoConnectionBuilder_ != null) { + result.connection_ = pscAutoConnectionBuilder_.build(); + } + if (connectionCase_ == 2 && pscConnectionBuilder_ != null) { + result.connection_ = pscConnectionBuilder_.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.redis.cluster.v1beta1.ConnectionDetail) { + return mergeFrom((com.google.cloud.redis.cluster.v1beta1.ConnectionDetail) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1beta1.ConnectionDetail other) { + if (other == com.google.cloud.redis.cluster.v1beta1.ConnectionDetail.getDefaultInstance()) + return this; + switch (other.getConnectionCase()) { + case PSC_AUTO_CONNECTION: + { + mergePscAutoConnection(other.getPscAutoConnection()); + break; + } + case PSC_CONNECTION: + { + mergePscConnection(other.getPscConnection()); + break; + } + case CONNECTION_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( + getPscAutoConnectionFieldBuilder().getBuilder(), extensionRegistry); + connectionCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getPscConnectionFieldBuilder().getBuilder(), extensionRegistry); + connectionCase_ = 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 connectionCase_ = 0; + private java.lang.Object connection_; + + public ConnectionCase getConnectionCase() { + return ConnectionCase.forNumber(connectionCase_); + } + + public Builder clearConnection() { + connectionCase_ = 0; + connection_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.PscAutoConnection, + com.google.cloud.redis.cluster.v1beta1.PscAutoConnection.Builder, + com.google.cloud.redis.cluster.v1beta1.PscAutoConnectionOrBuilder> + pscAutoConnectionBuilder_; + /** + * + * + *
    +     * Detailed information of a PSC connection that is created through
    +     * service connectivity automation.
    +     * 
    + * + * .google.cloud.redis.cluster.v1beta1.PscAutoConnection psc_auto_connection = 1; + * + * @return Whether the pscAutoConnection field is set. + */ + @java.lang.Override + public boolean hasPscAutoConnection() { + return connectionCase_ == 1; + } + /** + * + * + *
    +     * Detailed information of a PSC connection that is created through
    +     * service connectivity automation.
    +     * 
    + * + * .google.cloud.redis.cluster.v1beta1.PscAutoConnection psc_auto_connection = 1; + * + * @return The pscAutoConnection. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.PscAutoConnection getPscAutoConnection() { + if (pscAutoConnectionBuilder_ == null) { + if (connectionCase_ == 1) { + return (com.google.cloud.redis.cluster.v1beta1.PscAutoConnection) connection_; + } + return com.google.cloud.redis.cluster.v1beta1.PscAutoConnection.getDefaultInstance(); + } else { + if (connectionCase_ == 1) { + return pscAutoConnectionBuilder_.getMessage(); + } + return com.google.cloud.redis.cluster.v1beta1.PscAutoConnection.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Detailed information of a PSC connection that is created through
    +     * service connectivity automation.
    +     * 
    + * + * .google.cloud.redis.cluster.v1beta1.PscAutoConnection psc_auto_connection = 1; + */ + public Builder setPscAutoConnection( + com.google.cloud.redis.cluster.v1beta1.PscAutoConnection value) { + if (pscAutoConnectionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connection_ = value; + onChanged(); + } else { + pscAutoConnectionBuilder_.setMessage(value); + } + connectionCase_ = 1; + return this; + } + /** + * + * + *
    +     * Detailed information of a PSC connection that is created through
    +     * service connectivity automation.
    +     * 
    + * + * .google.cloud.redis.cluster.v1beta1.PscAutoConnection psc_auto_connection = 1; + */ + public Builder setPscAutoConnection( + com.google.cloud.redis.cluster.v1beta1.PscAutoConnection.Builder builderForValue) { + if (pscAutoConnectionBuilder_ == null) { + connection_ = builderForValue.build(); + onChanged(); + } else { + pscAutoConnectionBuilder_.setMessage(builderForValue.build()); + } + connectionCase_ = 1; + return this; + } + /** + * + * + *
    +     * Detailed information of a PSC connection that is created through
    +     * service connectivity automation.
    +     * 
    + * + * .google.cloud.redis.cluster.v1beta1.PscAutoConnection psc_auto_connection = 1; + */ + public Builder mergePscAutoConnection( + com.google.cloud.redis.cluster.v1beta1.PscAutoConnection value) { + if (pscAutoConnectionBuilder_ == null) { + if (connectionCase_ == 1 + && connection_ + != com.google.cloud.redis.cluster.v1beta1.PscAutoConnection.getDefaultInstance()) { + connection_ = + com.google.cloud.redis.cluster.v1beta1.PscAutoConnection.newBuilder( + (com.google.cloud.redis.cluster.v1beta1.PscAutoConnection) connection_) + .mergeFrom(value) + .buildPartial(); + } else { + connection_ = value; + } + onChanged(); + } else { + if (connectionCase_ == 1) { + pscAutoConnectionBuilder_.mergeFrom(value); + } else { + pscAutoConnectionBuilder_.setMessage(value); + } + } + connectionCase_ = 1; + return this; + } + /** + * + * + *
    +     * Detailed information of a PSC connection that is created through
    +     * service connectivity automation.
    +     * 
    + * + * .google.cloud.redis.cluster.v1beta1.PscAutoConnection psc_auto_connection = 1; + */ + public Builder clearPscAutoConnection() { + if (pscAutoConnectionBuilder_ == null) { + if (connectionCase_ == 1) { + connectionCase_ = 0; + connection_ = null; + onChanged(); + } + } else { + if (connectionCase_ == 1) { + connectionCase_ = 0; + connection_ = null; + } + pscAutoConnectionBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * Detailed information of a PSC connection that is created through
    +     * service connectivity automation.
    +     * 
    + * + * .google.cloud.redis.cluster.v1beta1.PscAutoConnection psc_auto_connection = 1; + */ + public com.google.cloud.redis.cluster.v1beta1.PscAutoConnection.Builder + getPscAutoConnectionBuilder() { + return getPscAutoConnectionFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Detailed information of a PSC connection that is created through
    +     * service connectivity automation.
    +     * 
    + * + * .google.cloud.redis.cluster.v1beta1.PscAutoConnection psc_auto_connection = 1; + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.PscAutoConnectionOrBuilder + getPscAutoConnectionOrBuilder() { + if ((connectionCase_ == 1) && (pscAutoConnectionBuilder_ != null)) { + return pscAutoConnectionBuilder_.getMessageOrBuilder(); + } else { + if (connectionCase_ == 1) { + return (com.google.cloud.redis.cluster.v1beta1.PscAutoConnection) connection_; + } + return com.google.cloud.redis.cluster.v1beta1.PscAutoConnection.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Detailed information of a PSC connection that is created through
    +     * service connectivity automation.
    +     * 
    + * + * .google.cloud.redis.cluster.v1beta1.PscAutoConnection psc_auto_connection = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.PscAutoConnection, + com.google.cloud.redis.cluster.v1beta1.PscAutoConnection.Builder, + com.google.cloud.redis.cluster.v1beta1.PscAutoConnectionOrBuilder> + getPscAutoConnectionFieldBuilder() { + if (pscAutoConnectionBuilder_ == null) { + if (!(connectionCase_ == 1)) { + connection_ = + com.google.cloud.redis.cluster.v1beta1.PscAutoConnection.getDefaultInstance(); + } + pscAutoConnectionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.PscAutoConnection, + com.google.cloud.redis.cluster.v1beta1.PscAutoConnection.Builder, + com.google.cloud.redis.cluster.v1beta1.PscAutoConnectionOrBuilder>( + (com.google.cloud.redis.cluster.v1beta1.PscAutoConnection) connection_, + getParentForChildren(), + isClean()); + connection_ = null; + } + connectionCase_ = 1; + onChanged(); + return pscAutoConnectionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.PscConnection, + com.google.cloud.redis.cluster.v1beta1.PscConnection.Builder, + com.google.cloud.redis.cluster.v1beta1.PscConnectionOrBuilder> + pscConnectionBuilder_; + /** + * + * + *
    +     * Detailed information of a PSC connection that is created by the customer
    +     * who owns the cluster.
    +     * 
    + * + * .google.cloud.redis.cluster.v1beta1.PscConnection psc_connection = 2; + * + * @return Whether the pscConnection field is set. + */ + @java.lang.Override + public boolean hasPscConnection() { + return connectionCase_ == 2; + } + /** + * + * + *
    +     * Detailed information of a PSC connection that is created by the customer
    +     * who owns the cluster.
    +     * 
    + * + * .google.cloud.redis.cluster.v1beta1.PscConnection psc_connection = 2; + * + * @return The pscConnection. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.PscConnection getPscConnection() { + if (pscConnectionBuilder_ == null) { + if (connectionCase_ == 2) { + return (com.google.cloud.redis.cluster.v1beta1.PscConnection) connection_; + } + return com.google.cloud.redis.cluster.v1beta1.PscConnection.getDefaultInstance(); + } else { + if (connectionCase_ == 2) { + return pscConnectionBuilder_.getMessage(); + } + return com.google.cloud.redis.cluster.v1beta1.PscConnection.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Detailed information of a PSC connection that is created by the customer
    +     * who owns the cluster.
    +     * 
    + * + * .google.cloud.redis.cluster.v1beta1.PscConnection psc_connection = 2; + */ + public Builder setPscConnection(com.google.cloud.redis.cluster.v1beta1.PscConnection value) { + if (pscConnectionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connection_ = value; + onChanged(); + } else { + pscConnectionBuilder_.setMessage(value); + } + connectionCase_ = 2; + return this; + } + /** + * + * + *
    +     * Detailed information of a PSC connection that is created by the customer
    +     * who owns the cluster.
    +     * 
    + * + * .google.cloud.redis.cluster.v1beta1.PscConnection psc_connection = 2; + */ + public Builder setPscConnection( + com.google.cloud.redis.cluster.v1beta1.PscConnection.Builder builderForValue) { + if (pscConnectionBuilder_ == null) { + connection_ = builderForValue.build(); + onChanged(); + } else { + pscConnectionBuilder_.setMessage(builderForValue.build()); + } + connectionCase_ = 2; + return this; + } + /** + * + * + *
    +     * Detailed information of a PSC connection that is created by the customer
    +     * who owns the cluster.
    +     * 
    + * + * .google.cloud.redis.cluster.v1beta1.PscConnection psc_connection = 2; + */ + public Builder mergePscConnection(com.google.cloud.redis.cluster.v1beta1.PscConnection value) { + if (pscConnectionBuilder_ == null) { + if (connectionCase_ == 2 + && connection_ + != com.google.cloud.redis.cluster.v1beta1.PscConnection.getDefaultInstance()) { + connection_ = + com.google.cloud.redis.cluster.v1beta1.PscConnection.newBuilder( + (com.google.cloud.redis.cluster.v1beta1.PscConnection) connection_) + .mergeFrom(value) + .buildPartial(); + } else { + connection_ = value; + } + onChanged(); + } else { + if (connectionCase_ == 2) { + pscConnectionBuilder_.mergeFrom(value); + } else { + pscConnectionBuilder_.setMessage(value); + } + } + connectionCase_ = 2; + return this; + } + /** + * + * + *
    +     * Detailed information of a PSC connection that is created by the customer
    +     * who owns the cluster.
    +     * 
    + * + * .google.cloud.redis.cluster.v1beta1.PscConnection psc_connection = 2; + */ + public Builder clearPscConnection() { + if (pscConnectionBuilder_ == null) { + if (connectionCase_ == 2) { + connectionCase_ = 0; + connection_ = null; + onChanged(); + } + } else { + if (connectionCase_ == 2) { + connectionCase_ = 0; + connection_ = null; + } + pscConnectionBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * Detailed information of a PSC connection that is created by the customer
    +     * who owns the cluster.
    +     * 
    + * + * .google.cloud.redis.cluster.v1beta1.PscConnection psc_connection = 2; + */ + public com.google.cloud.redis.cluster.v1beta1.PscConnection.Builder getPscConnectionBuilder() { + return getPscConnectionFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Detailed information of a PSC connection that is created by the customer
    +     * who owns the cluster.
    +     * 
    + * + * .google.cloud.redis.cluster.v1beta1.PscConnection psc_connection = 2; + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.PscConnectionOrBuilder + getPscConnectionOrBuilder() { + if ((connectionCase_ == 2) && (pscConnectionBuilder_ != null)) { + return pscConnectionBuilder_.getMessageOrBuilder(); + } else { + if (connectionCase_ == 2) { + return (com.google.cloud.redis.cluster.v1beta1.PscConnection) connection_; + } + return com.google.cloud.redis.cluster.v1beta1.PscConnection.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Detailed information of a PSC connection that is created by the customer
    +     * who owns the cluster.
    +     * 
    + * + * .google.cloud.redis.cluster.v1beta1.PscConnection psc_connection = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.PscConnection, + com.google.cloud.redis.cluster.v1beta1.PscConnection.Builder, + com.google.cloud.redis.cluster.v1beta1.PscConnectionOrBuilder> + getPscConnectionFieldBuilder() { + if (pscConnectionBuilder_ == null) { + if (!(connectionCase_ == 2)) { + connection_ = com.google.cloud.redis.cluster.v1beta1.PscConnection.getDefaultInstance(); + } + pscConnectionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.PscConnection, + com.google.cloud.redis.cluster.v1beta1.PscConnection.Builder, + com.google.cloud.redis.cluster.v1beta1.PscConnectionOrBuilder>( + (com.google.cloud.redis.cluster.v1beta1.PscConnection) connection_, + getParentForChildren(), + isClean()); + connection_ = null; + } + connectionCase_ = 2; + onChanged(); + return pscConnectionBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1beta1.ConnectionDetail) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.ConnectionDetail) + private static final com.google.cloud.redis.cluster.v1beta1.ConnectionDetail DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1beta1.ConnectionDetail(); + } + + public static com.google.cloud.redis.cluster.v1beta1.ConnectionDetail getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectionDetail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ConnectionDetail getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ConnectionDetailOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ConnectionDetailOrBuilder.java new file mode 100644 index 000000000000..d8e19b34fa68 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ConnectionDetailOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +public interface ConnectionDetailOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.ConnectionDetail) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Detailed information of a PSC connection that is created through
    +   * service connectivity automation.
    +   * 
    + * + * .google.cloud.redis.cluster.v1beta1.PscAutoConnection psc_auto_connection = 1; + * + * @return Whether the pscAutoConnection field is set. + */ + boolean hasPscAutoConnection(); + /** + * + * + *
    +   * Detailed information of a PSC connection that is created through
    +   * service connectivity automation.
    +   * 
    + * + * .google.cloud.redis.cluster.v1beta1.PscAutoConnection psc_auto_connection = 1; + * + * @return The pscAutoConnection. + */ + com.google.cloud.redis.cluster.v1beta1.PscAutoConnection getPscAutoConnection(); + /** + * + * + *
    +   * Detailed information of a PSC connection that is created through
    +   * service connectivity automation.
    +   * 
    + * + * .google.cloud.redis.cluster.v1beta1.PscAutoConnection psc_auto_connection = 1; + */ + com.google.cloud.redis.cluster.v1beta1.PscAutoConnectionOrBuilder getPscAutoConnectionOrBuilder(); + + /** + * + * + *
    +   * Detailed information of a PSC connection that is created by the customer
    +   * who owns the cluster.
    +   * 
    + * + * .google.cloud.redis.cluster.v1beta1.PscConnection psc_connection = 2; + * + * @return Whether the pscConnection field is set. + */ + boolean hasPscConnection(); + /** + * + * + *
    +   * Detailed information of a PSC connection that is created by the customer
    +   * who owns the cluster.
    +   * 
    + * + * .google.cloud.redis.cluster.v1beta1.PscConnection psc_connection = 2; + * + * @return The pscConnection. + */ + com.google.cloud.redis.cluster.v1beta1.PscConnection getPscConnection(); + /** + * + * + *
    +   * Detailed information of a PSC connection that is created by the customer
    +   * who owns the cluster.
    +   * 
    + * + * .google.cloud.redis.cluster.v1beta1.PscConnection psc_connection = 2; + */ + com.google.cloud.redis.cluster.v1beta1.PscConnectionOrBuilder getPscConnectionOrBuilder(); + + com.google.cloud.redis.cluster.v1beta1.ConnectionDetail.ConnectionCase getConnectionCase(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ConnectionType.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ConnectionType.java new file mode 100644 index 000000000000..61ec1d065550 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ConnectionType.java @@ -0,0 +1,201 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
    + * Type of a PSC connection, for cluster access purpose.
    + * 
    + * + * Protobuf enum {@code google.cloud.redis.cluster.v1beta1.ConnectionType} + */ +public enum ConnectionType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +   * Cluster endpoint Type is not set
    +   * 
    + * + * CONNECTION_TYPE_UNSPECIFIED = 0; + */ + CONNECTION_TYPE_UNSPECIFIED(0), + /** + * + * + *
    +   * Cluster endpoint that will be used as for cluster topology discovery.
    +   * 
    + * + * CONNECTION_TYPE_DISCOVERY = 1; + */ + CONNECTION_TYPE_DISCOVERY(1), + /** + * + * + *
    +   * Cluster endpoint that will be used as primary endpoint to access primary.
    +   * 
    + * + * CONNECTION_TYPE_PRIMARY = 2; + */ + CONNECTION_TYPE_PRIMARY(2), + /** + * + * + *
    +   * Cluster endpoint that will be used as reader endpoint to access replicas.
    +   * 
    + * + * CONNECTION_TYPE_READER = 3; + */ + CONNECTION_TYPE_READER(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +   * Cluster endpoint Type is not set
    +   * 
    + * + * CONNECTION_TYPE_UNSPECIFIED = 0; + */ + public static final int CONNECTION_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +   * Cluster endpoint that will be used as for cluster topology discovery.
    +   * 
    + * + * CONNECTION_TYPE_DISCOVERY = 1; + */ + public static final int CONNECTION_TYPE_DISCOVERY_VALUE = 1; + /** + * + * + *
    +   * Cluster endpoint that will be used as primary endpoint to access primary.
    +   * 
    + * + * CONNECTION_TYPE_PRIMARY = 2; + */ + public static final int CONNECTION_TYPE_PRIMARY_VALUE = 2; + /** + * + * + *
    +   * Cluster endpoint that will be used as reader endpoint to access replicas.
    +   * 
    + * + * CONNECTION_TYPE_READER = 3; + */ + public static final int CONNECTION_TYPE_READER_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 ConnectionType 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 ConnectionType forNumber(int value) { + switch (value) { + case 0: + return CONNECTION_TYPE_UNSPECIFIED; + case 1: + return CONNECTION_TYPE_DISCOVERY; + case 2: + return CONNECTION_TYPE_PRIMARY; + case 3: + return CONNECTION_TYPE_READER; + 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 ConnectionType findValueByNumber(int number) { + return ConnectionType.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.redis.cluster.v1beta1.CloudRedisClusterProto.getDescriptor() + .getEnumTypes() + .get(4); + } + + private static final ConnectionType[] VALUES = values(); + + public static ConnectionType 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 ConnectionType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.redis.cluster.v1beta1.ConnectionType) +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CrossClusterReplicationConfig.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CrossClusterReplicationConfig.java new file mode 100644 index 000000000000..aabe4040fafa --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CrossClusterReplicationConfig.java @@ -0,0 +1,5004 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
    + * Cross cluster replication config.
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig} + */ +public final class CrossClusterReplicationConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig) + CrossClusterReplicationConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use CrossClusterReplicationConfig.newBuilder() to construct. + private CrossClusterReplicationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CrossClusterReplicationConfig() { + clusterRole_ = 0; + secondaryClusters_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CrossClusterReplicationConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_CrossClusterReplicationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_CrossClusterReplicationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.class, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Builder.class); + } + + /** + * + * + *
    +   * The role of the cluster in cross cluster replication.
    +   * 
    + * + * Protobuf enum {@code + * google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.ClusterRole} + */ + public enum ClusterRole implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Cluster role is not set.
    +     * The behavior is equivalent to NONE.
    +     * 
    + * + * CLUSTER_ROLE_UNSPECIFIED = 0; + */ + CLUSTER_ROLE_UNSPECIFIED(0), + /** + * + * + *
    +     * This cluster does not participate in cross cluster replication. It is an
    +     * independent cluster and does not replicate to or from any other clusters.
    +     * 
    + * + * NONE = 1; + */ + NONE(1), + /** + * + * + *
    +     * A cluster that allows both reads and writes. Any data written to this
    +     * cluster is also replicated to the attached secondary clusters.
    +     * 
    + * + * PRIMARY = 2; + */ + PRIMARY(2), + /** + * + * + *
    +     * A cluster that allows only reads and replicates data from a primary
    +     * cluster.
    +     * 
    + * + * SECONDARY = 3; + */ + SECONDARY(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Cluster role is not set.
    +     * The behavior is equivalent to NONE.
    +     * 
    + * + * CLUSTER_ROLE_UNSPECIFIED = 0; + */ + public static final int CLUSTER_ROLE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +     * This cluster does not participate in cross cluster replication. It is an
    +     * independent cluster and does not replicate to or from any other clusters.
    +     * 
    + * + * NONE = 1; + */ + public static final int NONE_VALUE = 1; + /** + * + * + *
    +     * A cluster that allows both reads and writes. Any data written to this
    +     * cluster is also replicated to the attached secondary clusters.
    +     * 
    + * + * PRIMARY = 2; + */ + public static final int PRIMARY_VALUE = 2; + /** + * + * + *
    +     * A cluster that allows only reads and replicates data from a primary
    +     * cluster.
    +     * 
    + * + * SECONDARY = 3; + */ + public static final int SECONDARY_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 ClusterRole 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 ClusterRole forNumber(int value) { + switch (value) { + case 0: + return CLUSTER_ROLE_UNSPECIFIED; + case 1: + return NONE; + case 2: + return PRIMARY; + case 3: + return SECONDARY; + 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 ClusterRole findValueByNumber(int number) { + return ClusterRole.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.redis.cluster.v1beta1.CrossClusterReplicationConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ClusterRole[] VALUES = values(); + + public static ClusterRole 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 ClusterRole(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.ClusterRole) + } + + public interface RemoteClusterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * The full resource path of the remote cluster in
    +     * the format: projects/<project>/locations/<region>/clusters/<cluster-id>
    +     * 
    + * + * string cluster = 1 [(.google.api.resource_reference) = { ... } + * + * @return The cluster. + */ + java.lang.String getCluster(); + /** + * + * + *
    +     * The full resource path of the remote cluster in
    +     * the format: projects/<project>/locations/<region>/clusters/<cluster-id>
    +     * 
    + * + * string cluster = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for cluster. + */ + com.google.protobuf.ByteString getClusterBytes(); + + /** + * + * + *
    +     * Output only. The unique identifier of the remote cluster.
    +     * 
    + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + java.lang.String getUid(); + /** + * + * + *
    +     * Output only. The unique identifier of the remote cluster.
    +     * 
    + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); + } + /** + * + * + *
    +   * Details of the remote cluster associated with this cluster in a cross
    +   * cluster replication setup.
    +   * 
    + * + * Protobuf type {@code + * google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster} + */ + public static final class RemoteCluster extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster) + RemoteClusterOrBuilder { + private static final long serialVersionUID = 0L; + // Use RemoteCluster.newBuilder() to construct. + private RemoteCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RemoteCluster() { + cluster_ = ""; + uid_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RemoteCluster(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_CrossClusterReplicationConfig_RemoteCluster_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_CrossClusterReplicationConfig_RemoteCluster_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + .class, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + .Builder.class); + } + + public static final int CLUSTER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object cluster_ = ""; + /** + * + * + *
    +     * The full resource path of the remote cluster in
    +     * the format: projects/<project>/locations/<region>/clusters/<cluster-id>
    +     * 
    + * + * string cluster = 1 [(.google.api.resource_reference) = { ... } + * + * @return The cluster. + */ + @java.lang.Override + public java.lang.String getCluster() { + java.lang.Object ref = cluster_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cluster_ = s; + return s; + } + } + /** + * + * + *
    +     * The full resource path of the remote cluster in
    +     * the format: projects/<project>/locations/<region>/clusters/<cluster-id>
    +     * 
    + * + * string cluster = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for cluster. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterBytes() { + java.lang.Object ref = cluster_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + /** + * + * + *
    +     * Output only. The unique identifier of the remote cluster.
    +     * 
    + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } + } + /** + * + * + *
    +     * Output only. The unique identifier of the remote cluster.
    +     * 
    + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = 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(cluster_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cluster_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uid_); + } + 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(cluster_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cluster_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uid_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster other = + (com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster) obj; + + if (!getCluster().equals(other.getCluster())) return false; + if (!getUid().equals(other.getUid())) return false; + if (!getUnknownFields().equals(other.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) + CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getCluster().hashCode(); + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 of the remote cluster associated with this cluster in a cross
    +     * cluster replication setup.
    +     * 
    + * + * Protobuf type {@code + * google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster) + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .RemoteClusterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_CrossClusterReplicationConfig_RemoteCluster_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_CrossClusterReplicationConfig_RemoteCluster_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + .class, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + .Builder.class); + } + + // Construct using + // com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + cluster_ = ""; + uid_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_CrossClusterReplicationConfig_RemoteCluster_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + build() { + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + buildPartial() { + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster result = + new com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.cluster_ = cluster_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.uid_ = uid_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster) { + return mergeFrom( + (com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + other) { + if (other + == com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + .getDefaultInstance()) return this; + if (!other.getCluster().isEmpty()) { + cluster_ = other.cluster_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + 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: + { + cluster_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + uid_ = 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 cluster_ = ""; + /** + * + * + *
    +       * The full resource path of the remote cluster in
    +       * the format: projects/<project>/locations/<region>/clusters/<cluster-id>
    +       * 
    + * + * string cluster = 1 [(.google.api.resource_reference) = { ... } + * + * @return The cluster. + */ + public java.lang.String getCluster() { + java.lang.Object ref = cluster_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cluster_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * The full resource path of the remote cluster in
    +       * the format: projects/<project>/locations/<region>/clusters/<cluster-id>
    +       * 
    + * + * string cluster = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for cluster. + */ + public com.google.protobuf.ByteString getClusterBytes() { + java.lang.Object ref = cluster_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * The full resource path of the remote cluster in
    +       * the format: projects/<project>/locations/<region>/clusters/<cluster-id>
    +       * 
    + * + * string cluster = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The cluster to set. + * @return This builder for chaining. + */ + public Builder setCluster(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cluster_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +       * The full resource path of the remote cluster in
    +       * the format: projects/<project>/locations/<region>/clusters/<cluster-id>
    +       * 
    + * + * string cluster = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearCluster() { + cluster_ = getDefaultInstance().getCluster(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +       * The full resource path of the remote cluster in
    +       * the format: projects/<project>/locations/<region>/clusters/<cluster-id>
    +       * 
    + * + * string cluster = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for cluster to set. + * @return This builder for chaining. + */ + public Builder setClusterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cluster_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object uid_ = ""; + /** + * + * + *
    +       * Output only. The unique identifier of the remote cluster.
    +       * 
    + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * Output only. The unique identifier of the remote cluster.
    +       * 
    + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * Output only. The unique identifier of the remote cluster.
    +       * 
    + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uid_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +       * Output only. The unique identifier of the remote cluster.
    +       * 
    + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +       * Output only. The unique identifier of the remote cluster.
    +       * 
    + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = 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.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster) + private static final com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .RemoteCluster + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster(); + } + + public static com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RemoteCluster parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface MembershipOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Output only. The primary cluster that acts as the source of replication
    +     * for the secondary clusters.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the primaryCluster field is set. + */ + boolean hasPrimaryCluster(); + /** + * + * + *
    +     * Output only. The primary cluster that acts as the source of replication
    +     * for the secondary clusters.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The primaryCluster. + */ + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + getPrimaryCluster(); + /** + * + * + *
    +     * Output only. The primary cluster that acts as the source of replication
    +     * for the secondary clusters.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteClusterOrBuilder + getPrimaryClusterOrBuilder(); + + /** + * + * + *
    +     * Output only. The list of secondary clusters replicating from the primary
    +     * cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster> + getSecondaryClustersList(); + /** + * + * + *
    +     * Output only. The list of secondary clusters replicating from the primary
    +     * cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + getSecondaryClusters(int index); + /** + * + * + *
    +     * Output only. The list of secondary clusters replicating from the primary
    +     * cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getSecondaryClustersCount(); + /** + * + * + *
    +     * Output only. The list of secondary clusters replicating from the primary
    +     * cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .RemoteClusterOrBuilder> + getSecondaryClustersOrBuilderList(); + /** + * + * + *
    +     * Output only. The list of secondary clusters replicating from the primary
    +     * cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteClusterOrBuilder + getSecondaryClustersOrBuilder(int index); + } + /** + * + * + *
    +   * An output only view of all the member clusters participating in the cross
    +   * cluster replication.
    +   * 
    + * + * Protobuf type {@code + * google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership} + */ + public static final class Membership extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership) + MembershipOrBuilder { + private static final long serialVersionUID = 0L; + // Use Membership.newBuilder() to construct. + private Membership(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Membership() { + secondaryClusters_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Membership(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_CrossClusterReplicationConfig_Membership_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_CrossClusterReplicationConfig_Membership_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership.class, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership + .Builder.class); + } + + private int bitField0_; + public static final int PRIMARY_CLUSTER_FIELD_NUMBER = 1; + private com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + primaryCluster_; + /** + * + * + *
    +     * Output only. The primary cluster that acts as the source of replication
    +     * for the secondary clusters.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the primaryCluster field is set. + */ + @java.lang.Override + public boolean hasPrimaryCluster() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +     * Output only. The primary cluster that acts as the source of replication
    +     * for the secondary clusters.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The primaryCluster. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + getPrimaryCluster() { + return primaryCluster_ == null + ? com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + .getDefaultInstance() + : primaryCluster_; + } + /** + * + * + *
    +     * Output only. The primary cluster that acts as the source of replication
    +     * for the secondary clusters.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .RemoteClusterOrBuilder + getPrimaryClusterOrBuilder() { + return primaryCluster_ == null + ? com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + .getDefaultInstance() + : primaryCluster_; + } + + public static final int SECONDARY_CLUSTERS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster> + secondaryClusters_; + /** + * + * + *
    +     * Output only. The list of secondary clusters replicating from the primary
    +     * cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster> + getSecondaryClustersList() { + return secondaryClusters_; + } + /** + * + * + *
    +     * Output only. The list of secondary clusters replicating from the primary
    +     * cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .RemoteClusterOrBuilder> + getSecondaryClustersOrBuilderList() { + return secondaryClusters_; + } + /** + * + * + *
    +     * Output only. The list of secondary clusters replicating from the primary
    +     * cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getSecondaryClustersCount() { + return secondaryClusters_.size(); + } + /** + * + * + *
    +     * Output only. The list of secondary clusters replicating from the primary
    +     * cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + getSecondaryClusters(int index) { + return secondaryClusters_.get(index); + } + /** + * + * + *
    +     * Output only. The list of secondary clusters replicating from the primary
    +     * cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .RemoteClusterOrBuilder + getSecondaryClustersOrBuilder(int index) { + return secondaryClusters_.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, getPrimaryCluster()); + } + for (int i = 0; i < secondaryClusters_.size(); i++) { + output.writeMessage(2, secondaryClusters_.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, getPrimaryCluster()); + } + for (int i = 0; i < secondaryClusters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, secondaryClusters_.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.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership other = + (com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership) obj; + + if (hasPrimaryCluster() != other.hasPrimaryCluster()) return false; + if (hasPrimaryCluster()) { + if (!getPrimaryCluster().equals(other.getPrimaryCluster())) return false; + } + if (!getSecondaryClustersList().equals(other.getSecondaryClustersList())) return false; + if (!getUnknownFields().equals(other.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 (hasPrimaryCluster()) { + hash = (37 * hash) + PRIMARY_CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getPrimaryCluster().hashCode(); + } + if (getSecondaryClustersCount() > 0) { + hash = (37 * hash) + SECONDARY_CLUSTERS_FIELD_NUMBER; + hash = (53 * hash) + getSecondaryClustersList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 output only view of all the member clusters participating in the cross
    +     * cluster replication.
    +     * 
    + * + * Protobuf type {@code + * google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership) + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.MembershipOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_CrossClusterReplicationConfig_Membership_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_CrossClusterReplicationConfig_Membership_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership + .class, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership + .Builder.class); + } + + // Construct using + // com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPrimaryClusterFieldBuilder(); + getSecondaryClustersFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + primaryCluster_ = null; + if (primaryClusterBuilder_ != null) { + primaryClusterBuilder_.dispose(); + primaryClusterBuilder_ = null; + } + if (secondaryClustersBuilder_ == null) { + secondaryClusters_ = java.util.Collections.emptyList(); + } else { + secondaryClusters_ = null; + secondaryClustersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_CrossClusterReplicationConfig_Membership_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership + build() { + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership + buildPartial() { + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership result = + new com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership result) { + if (secondaryClustersBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + secondaryClusters_ = java.util.Collections.unmodifiableList(secondaryClusters_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.secondaryClusters_ = secondaryClusters_; + } else { + result.secondaryClusters_ = secondaryClustersBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.primaryCluster_ = + primaryClusterBuilder_ == null ? primaryCluster_ : primaryClusterBuilder_.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.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership) { + return mergeFrom( + (com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership other) { + if (other + == com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership + .getDefaultInstance()) return this; + if (other.hasPrimaryCluster()) { + mergePrimaryCluster(other.getPrimaryCluster()); + } + if (secondaryClustersBuilder_ == null) { + if (!other.secondaryClusters_.isEmpty()) { + if (secondaryClusters_.isEmpty()) { + secondaryClusters_ = other.secondaryClusters_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSecondaryClustersIsMutable(); + secondaryClusters_.addAll(other.secondaryClusters_); + } + onChanged(); + } + } else { + if (!other.secondaryClusters_.isEmpty()) { + if (secondaryClustersBuilder_.isEmpty()) { + secondaryClustersBuilder_.dispose(); + secondaryClustersBuilder_ = null; + secondaryClusters_ = other.secondaryClusters_; + bitField0_ = (bitField0_ & ~0x00000002); + secondaryClustersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSecondaryClustersFieldBuilder() + : null; + } else { + secondaryClustersBuilder_.addAllMessages(other.secondaryClusters_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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( + getPrimaryClusterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + m = + input.readMessage( + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .RemoteCluster.parser(), + extensionRegistry); + if (secondaryClustersBuilder_ == null) { + ensureSecondaryClustersIsMutable(); + secondaryClusters_.add(m); + } else { + secondaryClustersBuilder_.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.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + primaryCluster_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + .Builder, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .RemoteClusterOrBuilder> + primaryClusterBuilder_; + /** + * + * + *
    +       * Output only. The primary cluster that acts as the source of replication
    +       * for the secondary clusters.
    +       * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the primaryCluster field is set. + */ + public boolean hasPrimaryCluster() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +       * Output only. The primary cluster that acts as the source of replication
    +       * for the secondary clusters.
    +       * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The primaryCluster. + */ + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + getPrimaryCluster() { + if (primaryClusterBuilder_ == null) { + return primaryCluster_ == null + ? com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + .getDefaultInstance() + : primaryCluster_; + } else { + return primaryClusterBuilder_.getMessage(); + } + } + /** + * + * + *
    +       * Output only. The primary cluster that acts as the source of replication
    +       * for the secondary clusters.
    +       * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPrimaryCluster( + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + value) { + if (primaryClusterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + primaryCluster_ = value; + } else { + primaryClusterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +       * Output only. The primary cluster that acts as the source of replication
    +       * for the secondary clusters.
    +       * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPrimaryCluster( + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster.Builder + builderForValue) { + if (primaryClusterBuilder_ == null) { + primaryCluster_ = builderForValue.build(); + } else { + primaryClusterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +       * Output only. The primary cluster that acts as the source of replication
    +       * for the secondary clusters.
    +       * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergePrimaryCluster( + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + value) { + if (primaryClusterBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && primaryCluster_ != null + && primaryCluster_ + != com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .RemoteCluster.getDefaultInstance()) { + getPrimaryClusterBuilder().mergeFrom(value); + } else { + primaryCluster_ = value; + } + } else { + primaryClusterBuilder_.mergeFrom(value); + } + if (primaryCluster_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
    +       * Output only. The primary cluster that acts as the source of replication
    +       * for the secondary clusters.
    +       * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPrimaryCluster() { + bitField0_ = (bitField0_ & ~0x00000001); + primaryCluster_ = null; + if (primaryClusterBuilder_ != null) { + primaryClusterBuilder_.dispose(); + primaryClusterBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +       * Output only. The primary cluster that acts as the source of replication
    +       * for the secondary clusters.
    +       * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + .Builder + getPrimaryClusterBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPrimaryClusterFieldBuilder().getBuilder(); + } + /** + * + * + *
    +       * Output only. The primary cluster that acts as the source of replication
    +       * for the secondary clusters.
    +       * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .RemoteClusterOrBuilder + getPrimaryClusterOrBuilder() { + if (primaryClusterBuilder_ != null) { + return primaryClusterBuilder_.getMessageOrBuilder(); + } else { + return primaryCluster_ == null + ? com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + .getDefaultInstance() + : primaryCluster_; + } + } + /** + * + * + *
    +       * Output only. The primary cluster that acts as the source of replication
    +       * for the secondary clusters.
    +       * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + .Builder, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .RemoteClusterOrBuilder> + getPrimaryClusterFieldBuilder() { + if (primaryClusterBuilder_ == null) { + primaryClusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .RemoteCluster, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + .Builder, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .RemoteClusterOrBuilder>( + getPrimaryCluster(), getParentForChildren(), isClean()); + primaryCluster_ = null; + } + return primaryClusterBuilder_; + } + + private java.util.List< + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster> + secondaryClusters_ = java.util.Collections.emptyList(); + + private void ensureSecondaryClustersIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + secondaryClusters_ = + new java.util.ArrayList< + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .RemoteCluster>(secondaryClusters_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + .Builder, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .RemoteClusterOrBuilder> + secondaryClustersBuilder_; + + /** + * + * + *
    +       * Output only. The list of secondary clusters replicating from the primary
    +       * cluster.
    +       * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster> + getSecondaryClustersList() { + if (secondaryClustersBuilder_ == null) { + return java.util.Collections.unmodifiableList(secondaryClusters_); + } else { + return secondaryClustersBuilder_.getMessageList(); + } + } + /** + * + * + *
    +       * Output only. The list of secondary clusters replicating from the primary
    +       * cluster.
    +       * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getSecondaryClustersCount() { + if (secondaryClustersBuilder_ == null) { + return secondaryClusters_.size(); + } else { + return secondaryClustersBuilder_.getCount(); + } + } + /** + * + * + *
    +       * Output only. The list of secondary clusters replicating from the primary
    +       * cluster.
    +       * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + getSecondaryClusters(int index) { + if (secondaryClustersBuilder_ == null) { + return secondaryClusters_.get(index); + } else { + return secondaryClustersBuilder_.getMessage(index); + } + } + /** + * + * + *
    +       * Output only. The list of secondary clusters replicating from the primary
    +       * cluster.
    +       * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSecondaryClusters( + int index, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + value) { + if (secondaryClustersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecondaryClustersIsMutable(); + secondaryClusters_.set(index, value); + onChanged(); + } else { + secondaryClustersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
    +       * Output only. The list of secondary clusters replicating from the primary
    +       * cluster.
    +       * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSecondaryClusters( + int index, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster.Builder + builderForValue) { + if (secondaryClustersBuilder_ == null) { + ensureSecondaryClustersIsMutable(); + secondaryClusters_.set(index, builderForValue.build()); + onChanged(); + } else { + secondaryClustersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +       * Output only. The list of secondary clusters replicating from the primary
    +       * cluster.
    +       * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSecondaryClusters( + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + value) { + if (secondaryClustersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecondaryClustersIsMutable(); + secondaryClusters_.add(value); + onChanged(); + } else { + secondaryClustersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
    +       * Output only. The list of secondary clusters replicating from the primary
    +       * cluster.
    +       * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSecondaryClusters( + int index, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + value) { + if (secondaryClustersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecondaryClustersIsMutable(); + secondaryClusters_.add(index, value); + onChanged(); + } else { + secondaryClustersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
    +       * Output only. The list of secondary clusters replicating from the primary
    +       * cluster.
    +       * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSecondaryClusters( + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster.Builder + builderForValue) { + if (secondaryClustersBuilder_ == null) { + ensureSecondaryClustersIsMutable(); + secondaryClusters_.add(builderForValue.build()); + onChanged(); + } else { + secondaryClustersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
    +       * Output only. The list of secondary clusters replicating from the primary
    +       * cluster.
    +       * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSecondaryClusters( + int index, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster.Builder + builderForValue) { + if (secondaryClustersBuilder_ == null) { + ensureSecondaryClustersIsMutable(); + secondaryClusters_.add(index, builderForValue.build()); + onChanged(); + } else { + secondaryClustersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +       * Output only. The list of secondary clusters replicating from the primary
    +       * cluster.
    +       * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllSecondaryClusters( + java.lang.Iterable< + ? extends + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .RemoteCluster> + values) { + if (secondaryClustersBuilder_ == null) { + ensureSecondaryClustersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, secondaryClusters_); + onChanged(); + } else { + secondaryClustersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
    +       * Output only. The list of secondary clusters replicating from the primary
    +       * cluster.
    +       * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSecondaryClusters() { + if (secondaryClustersBuilder_ == null) { + secondaryClusters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + secondaryClustersBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +       * Output only. The list of secondary clusters replicating from the primary
    +       * cluster.
    +       * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeSecondaryClusters(int index) { + if (secondaryClustersBuilder_ == null) { + ensureSecondaryClustersIsMutable(); + secondaryClusters_.remove(index); + onChanged(); + } else { + secondaryClustersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
    +       * Output only. The list of secondary clusters replicating from the primary
    +       * cluster.
    +       * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + .Builder + getSecondaryClustersBuilder(int index) { + return getSecondaryClustersFieldBuilder().getBuilder(index); + } + /** + * + * + *
    +       * Output only. The list of secondary clusters replicating from the primary
    +       * cluster.
    +       * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .RemoteClusterOrBuilder + getSecondaryClustersOrBuilder(int index) { + if (secondaryClustersBuilder_ == null) { + return secondaryClusters_.get(index); + } else { + return secondaryClustersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
    +       * Output only. The list of secondary clusters replicating from the primary
    +       * cluster.
    +       * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .RemoteClusterOrBuilder> + getSecondaryClustersOrBuilderList() { + if (secondaryClustersBuilder_ != null) { + return secondaryClustersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(secondaryClusters_); + } + } + /** + * + * + *
    +       * Output only. The list of secondary clusters replicating from the primary
    +       * cluster.
    +       * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + .Builder + addSecondaryClustersBuilder() { + return getSecondaryClustersFieldBuilder() + .addBuilder( + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + .getDefaultInstance()); + } + /** + * + * + *
    +       * Output only. The list of secondary clusters replicating from the primary
    +       * cluster.
    +       * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + .Builder + addSecondaryClustersBuilder(int index) { + return getSecondaryClustersFieldBuilder() + .addBuilder( + index, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + .getDefaultInstance()); + } + /** + * + * + *
    +       * Output only. The list of secondary clusters replicating from the primary
    +       * cluster.
    +       * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + .Builder> + getSecondaryClustersBuilderList() { + return getSecondaryClustersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + .Builder, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .RemoteClusterOrBuilder> + getSecondaryClustersFieldBuilder() { + if (secondaryClustersBuilder_ == null) { + secondaryClustersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .RemoteCluster, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + .Builder, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .RemoteClusterOrBuilder>( + secondaryClusters_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + secondaryClusters_ = null; + } + return secondaryClustersBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership) + private static final com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .Membership + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership(); + } + + public static com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Membership parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int CLUSTER_ROLE_FIELD_NUMBER = 1; + private int clusterRole_ = 0; + /** + * + * + *
    +   * The role of the cluster in cross cluster replication.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.ClusterRole cluster_role = 1; + * + * + * @return The enum numeric value on the wire for clusterRole. + */ + @java.lang.Override + public int getClusterRoleValue() { + return clusterRole_; + } + /** + * + * + *
    +   * The role of the cluster in cross cluster replication.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.ClusterRole cluster_role = 1; + * + * + * @return The clusterRole. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.ClusterRole + getClusterRole() { + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.ClusterRole result = + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.ClusterRole.forNumber( + clusterRole_); + return result == null + ? com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.ClusterRole + .UNRECOGNIZED + : result; + } + + public static final int PRIMARY_CLUSTER_FIELD_NUMBER = 2; + private com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + primaryCluster_; + /** + * + * + *
    +   * Details of the primary cluster that is used as the replication source for
    +   * this secondary cluster.
    +   *
    +   * This field is only set for a secondary cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 2; + * + * + * @return Whether the primaryCluster field is set. + */ + @java.lang.Override + public boolean hasPrimaryCluster() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * Details of the primary cluster that is used as the replication source for
    +   * this secondary cluster.
    +   *
    +   * This field is only set for a secondary cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 2; + * + * + * @return The primaryCluster. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + getPrimaryCluster() { + return primaryCluster_ == null + ? com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + .getDefaultInstance() + : primaryCluster_; + } + /** + * + * + *
    +   * Details of the primary cluster that is used as the replication source for
    +   * this secondary cluster.
    +   *
    +   * This field is only set for a secondary cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 2; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteClusterOrBuilder + getPrimaryClusterOrBuilder() { + return primaryCluster_ == null + ? com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + .getDefaultInstance() + : primaryCluster_; + } + + public static final int SECONDARY_CLUSTERS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster> + secondaryClusters_; + /** + * + * + *
    +   * List of secondary clusters that are replicating from this primary cluster.
    +   *
    +   * This field is only set for a primary cluster.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster> + getSecondaryClustersList() { + return secondaryClusters_; + } + /** + * + * + *
    +   * List of secondary clusters that are replicating from this primary cluster.
    +   *
    +   * This field is only set for a primary cluster.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .RemoteClusterOrBuilder> + getSecondaryClustersOrBuilderList() { + return secondaryClusters_; + } + /** + * + * + *
    +   * List of secondary clusters that are replicating from this primary cluster.
    +   *
    +   * This field is only set for a primary cluster.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + @java.lang.Override + public int getSecondaryClustersCount() { + return secondaryClusters_.size(); + } + /** + * + * + *
    +   * List of secondary clusters that are replicating from this primary cluster.
    +   *
    +   * This field is only set for a primary cluster.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + getSecondaryClusters(int index) { + return secondaryClusters_.get(index); + } + /** + * + * + *
    +   * List of secondary clusters that are replicating from this primary cluster.
    +   *
    +   * This field is only set for a primary cluster.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteClusterOrBuilder + getSecondaryClustersOrBuilder(int index) { + return secondaryClusters_.get(index); + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
    +   * Output only. The last time cross cluster replication config was updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 4 [(.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. The last time cross cluster replication config was updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 4 [(.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. The last time cross cluster replication config was updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 4 [(.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 MEMBERSHIP_FIELD_NUMBER = 5; + private com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership + membership_; + /** + * + * + *
    +   * Output only. An output only view of all the member clusters participating
    +   * in the cross cluster replication. This view will be provided by every
    +   * member cluster irrespective of its cluster role(primary or secondary).
    +   *
    +   * A primary cluster can provide information about all the secondary clusters
    +   * replicating from it. However, a secondary cluster only knows about the
    +   * primary cluster from which it is replicating. However, for scenarios, where
    +   * the primary cluster is unavailable(e.g. regional outage), a GetCluster
    +   * request can be sent to any other member cluster and this field will list
    +   * all the member clusters participating in cross cluster replication.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership membership = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the membership field is set. + */ + @java.lang.Override + public boolean hasMembership() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +   * Output only. An output only view of all the member clusters participating
    +   * in the cross cluster replication. This view will be provided by every
    +   * member cluster irrespective of its cluster role(primary or secondary).
    +   *
    +   * A primary cluster can provide information about all the secondary clusters
    +   * replicating from it. However, a secondary cluster only knows about the
    +   * primary cluster from which it is replicating. However, for scenarios, where
    +   * the primary cluster is unavailable(e.g. regional outage), a GetCluster
    +   * request can be sent to any other member cluster and this field will list
    +   * all the member clusters participating in cross cluster replication.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership membership = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The membership. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership + getMembership() { + return membership_ == null + ? com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership + .getDefaultInstance() + : membership_; + } + /** + * + * + *
    +   * Output only. An output only view of all the member clusters participating
    +   * in the cross cluster replication. This view will be provided by every
    +   * member cluster irrespective of its cluster role(primary or secondary).
    +   *
    +   * A primary cluster can provide information about all the secondary clusters
    +   * replicating from it. However, a secondary cluster only knows about the
    +   * primary cluster from which it is replicating. However, for scenarios, where
    +   * the primary cluster is unavailable(e.g. regional outage), a GetCluster
    +   * request can be sent to any other member cluster and this field will list
    +   * all the member clusters participating in cross cluster replication.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership membership = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.MembershipOrBuilder + getMembershipOrBuilder() { + return membership_ == null + ? com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership + .getDefaultInstance() + : membership_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (clusterRole_ + != com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.ClusterRole + .CLUSTER_ROLE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, clusterRole_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getPrimaryCluster()); + } + for (int i = 0; i < secondaryClusters_.size(); i++) { + output.writeMessage(3, secondaryClusters_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getMembership()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (clusterRole_ + != com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.ClusterRole + .CLUSTER_ROLE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, clusterRole_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPrimaryCluster()); + } + for (int i = 0; i < secondaryClusters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, secondaryClusters_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getMembership()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig other = + (com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig) obj; + + if (clusterRole_ != other.clusterRole_) return false; + if (hasPrimaryCluster() != other.hasPrimaryCluster()) return false; + if (hasPrimaryCluster()) { + if (!getPrimaryCluster().equals(other.getPrimaryCluster())) return false; + } + if (!getSecondaryClustersList().equals(other.getSecondaryClustersList())) return false; + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (hasMembership() != other.hasMembership()) return false; + if (hasMembership()) { + if (!getMembership().equals(other.getMembership())) return false; + } + if (!getUnknownFields().equals(other.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) + CLUSTER_ROLE_FIELD_NUMBER; + hash = (53 * hash) + clusterRole_; + if (hasPrimaryCluster()) { + hash = (37 * hash) + PRIMARY_CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getPrimaryCluster().hashCode(); + } + if (getSecondaryClustersCount() > 0) { + hash = (37 * hash) + SECONDARY_CLUSTERS_FIELD_NUMBER; + hash = (53 * hash) + getSecondaryClustersList().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (hasMembership()) { + hash = (37 * hash) + MEMBERSHIP_FIELD_NUMBER; + hash = (53 * hash) + getMembership().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Cross cluster replication config.
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig) + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_CrossClusterReplicationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_CrossClusterReplicationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.class, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Builder.class); + } + + // Construct using + // com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPrimaryClusterFieldBuilder(); + getSecondaryClustersFieldBuilder(); + getUpdateTimeFieldBuilder(); + getMembershipFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + clusterRole_ = 0; + primaryCluster_ = null; + if (primaryClusterBuilder_ != null) { + primaryClusterBuilder_.dispose(); + primaryClusterBuilder_ = null; + } + if (secondaryClustersBuilder_ == null) { + secondaryClusters_ = java.util.Collections.emptyList(); + } else { + secondaryClusters_ = null; + secondaryClustersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + membership_ = null; + if (membershipBuilder_ != null) { + membershipBuilder_.dispose(); + membershipBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_CrossClusterReplicationConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig build() { + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig buildPartial() { + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig result = + new com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig result) { + if (secondaryClustersBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + secondaryClusters_ = java.util.Collections.unmodifiableList(secondaryClusters_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.secondaryClusters_ = secondaryClusters_; + } else { + result.secondaryClusters_ = secondaryClustersBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.clusterRole_ = clusterRole_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.primaryCluster_ = + primaryClusterBuilder_ == null ? primaryCluster_ : primaryClusterBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.membership_ = membershipBuilder_ == null ? membership_ : membershipBuilder_.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.redis.cluster.v1beta1.CrossClusterReplicationConfig) { + return mergeFrom( + (com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig other) { + if (other + == com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .getDefaultInstance()) return this; + if (other.clusterRole_ != 0) { + setClusterRoleValue(other.getClusterRoleValue()); + } + if (other.hasPrimaryCluster()) { + mergePrimaryCluster(other.getPrimaryCluster()); + } + if (secondaryClustersBuilder_ == null) { + if (!other.secondaryClusters_.isEmpty()) { + if (secondaryClusters_.isEmpty()) { + secondaryClusters_ = other.secondaryClusters_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureSecondaryClustersIsMutable(); + secondaryClusters_.addAll(other.secondaryClusters_); + } + onChanged(); + } + } else { + if (!other.secondaryClusters_.isEmpty()) { + if (secondaryClustersBuilder_.isEmpty()) { + secondaryClustersBuilder_.dispose(); + secondaryClustersBuilder_ = null; + secondaryClusters_ = other.secondaryClusters_; + bitField0_ = (bitField0_ & ~0x00000004); + secondaryClustersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSecondaryClustersFieldBuilder() + : null; + } else { + secondaryClustersBuilder_.addAllMessages(other.secondaryClusters_); + } + } + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasMembership()) { + mergeMembership(other.getMembership()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + clusterRole_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage(getPrimaryClusterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + m = + input.readMessage( + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .RemoteCluster.parser(), + extensionRegistry); + if (secondaryClustersBuilder_ == null) { + ensureSecondaryClustersIsMutable(); + secondaryClusters_.add(m); + } else { + secondaryClustersBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getMembershipFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int clusterRole_ = 0; + /** + * + * + *
    +     * The role of the cluster in cross cluster replication.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.ClusterRole cluster_role = 1; + * + * + * @return The enum numeric value on the wire for clusterRole. + */ + @java.lang.Override + public int getClusterRoleValue() { + return clusterRole_; + } + /** + * + * + *
    +     * The role of the cluster in cross cluster replication.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.ClusterRole cluster_role = 1; + * + * + * @param value The enum numeric value on the wire for clusterRole to set. + * @return This builder for chaining. + */ + public Builder setClusterRoleValue(int value) { + clusterRole_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * The role of the cluster in cross cluster replication.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.ClusterRole cluster_role = 1; + * + * + * @return The clusterRole. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.ClusterRole + getClusterRole() { + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.ClusterRole result = + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.ClusterRole + .forNumber(clusterRole_); + return result == null + ? com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.ClusterRole + .UNRECOGNIZED + : result; + } + /** + * + * + *
    +     * The role of the cluster in cross cluster replication.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.ClusterRole cluster_role = 1; + * + * + * @param value The clusterRole to set. + * @return This builder for chaining. + */ + public Builder setClusterRole( + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.ClusterRole value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + clusterRole_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * The role of the cluster in cross cluster replication.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.ClusterRole cluster_role = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearClusterRole() { + bitField0_ = (bitField0_ & ~0x00000001); + clusterRole_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + primaryCluster_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + .Builder, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .RemoteClusterOrBuilder> + primaryClusterBuilder_; + /** + * + * + *
    +     * Details of the primary cluster that is used as the replication source for
    +     * this secondary cluster.
    +     *
    +     * This field is only set for a secondary cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 2; + * + * + * @return Whether the primaryCluster field is set. + */ + public boolean hasPrimaryCluster() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * Details of the primary cluster that is used as the replication source for
    +     * this secondary cluster.
    +     *
    +     * This field is only set for a secondary cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 2; + * + * + * @return The primaryCluster. + */ + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + getPrimaryCluster() { + if (primaryClusterBuilder_ == null) { + return primaryCluster_ == null + ? com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + .getDefaultInstance() + : primaryCluster_; + } else { + return primaryClusterBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Details of the primary cluster that is used as the replication source for
    +     * this secondary cluster.
    +     *
    +     * This field is only set for a secondary cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 2; + * + */ + public Builder setPrimaryCluster( + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster value) { + if (primaryClusterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + primaryCluster_ = value; + } else { + primaryClusterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Details of the primary cluster that is used as the replication source for
    +     * this secondary cluster.
    +     *
    +     * This field is only set for a secondary cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 2; + * + */ + public Builder setPrimaryCluster( + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster.Builder + builderForValue) { + if (primaryClusterBuilder_ == null) { + primaryCluster_ = builderForValue.build(); + } else { + primaryClusterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Details of the primary cluster that is used as the replication source for
    +     * this secondary cluster.
    +     *
    +     * This field is only set for a secondary cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 2; + * + */ + public Builder mergePrimaryCluster( + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster value) { + if (primaryClusterBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && primaryCluster_ != null + && primaryCluster_ + != com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .RemoteCluster.getDefaultInstance()) { + getPrimaryClusterBuilder().mergeFrom(value); + } else { + primaryCluster_ = value; + } + } else { + primaryClusterBuilder_.mergeFrom(value); + } + if (primaryCluster_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Details of the primary cluster that is used as the replication source for
    +     * this secondary cluster.
    +     *
    +     * This field is only set for a secondary cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 2; + * + */ + public Builder clearPrimaryCluster() { + bitField0_ = (bitField0_ & ~0x00000002); + primaryCluster_ = null; + if (primaryClusterBuilder_ != null) { + primaryClusterBuilder_.dispose(); + primaryClusterBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Details of the primary cluster that is used as the replication source for
    +     * this secondary cluster.
    +     *
    +     * This field is only set for a secondary cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 2; + * + */ + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + .Builder + getPrimaryClusterBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPrimaryClusterFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Details of the primary cluster that is used as the replication source for
    +     * this secondary cluster.
    +     *
    +     * This field is only set for a secondary cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 2; + * + */ + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .RemoteClusterOrBuilder + getPrimaryClusterOrBuilder() { + if (primaryClusterBuilder_ != null) { + return primaryClusterBuilder_.getMessageOrBuilder(); + } else { + return primaryCluster_ == null + ? com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + .getDefaultInstance() + : primaryCluster_; + } + } + /** + * + * + *
    +     * Details of the primary cluster that is used as the replication source for
    +     * this secondary cluster.
    +     *
    +     * This field is only set for a secondary cluster.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + .Builder, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .RemoteClusterOrBuilder> + getPrimaryClusterFieldBuilder() { + if (primaryClusterBuilder_ == null) { + primaryClusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + .Builder, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .RemoteClusterOrBuilder>( + getPrimaryCluster(), getParentForChildren(), isClean()); + primaryCluster_ = null; + } + return primaryClusterBuilder_; + } + + private java.util.List< + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster> + secondaryClusters_ = java.util.Collections.emptyList(); + + private void ensureSecondaryClustersIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + secondaryClusters_ = + new java.util.ArrayList< + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster>( + secondaryClusters_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + .Builder, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .RemoteClusterOrBuilder> + secondaryClustersBuilder_; + + /** + * + * + *
    +     * List of secondary clusters that are replicating from this primary cluster.
    +     *
    +     * This field is only set for a primary cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + public java.util.List< + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster> + getSecondaryClustersList() { + if (secondaryClustersBuilder_ == null) { + return java.util.Collections.unmodifiableList(secondaryClusters_); + } else { + return secondaryClustersBuilder_.getMessageList(); + } + } + /** + * + * + *
    +     * List of secondary clusters that are replicating from this primary cluster.
    +     *
    +     * This field is only set for a primary cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + public int getSecondaryClustersCount() { + if (secondaryClustersBuilder_ == null) { + return secondaryClusters_.size(); + } else { + return secondaryClustersBuilder_.getCount(); + } + } + /** + * + * + *
    +     * List of secondary clusters that are replicating from this primary cluster.
    +     *
    +     * This field is only set for a primary cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + getSecondaryClusters(int index) { + if (secondaryClustersBuilder_ == null) { + return secondaryClusters_.get(index); + } else { + return secondaryClustersBuilder_.getMessage(index); + } + } + /** + * + * + *
    +     * List of secondary clusters that are replicating from this primary cluster.
    +     *
    +     * This field is only set for a primary cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + public Builder setSecondaryClusters( + int index, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster value) { + if (secondaryClustersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecondaryClustersIsMutable(); + secondaryClusters_.set(index, value); + onChanged(); + } else { + secondaryClustersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * List of secondary clusters that are replicating from this primary cluster.
    +     *
    +     * This field is only set for a primary cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + public Builder setSecondaryClusters( + int index, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster.Builder + builderForValue) { + if (secondaryClustersBuilder_ == null) { + ensureSecondaryClustersIsMutable(); + secondaryClusters_.set(index, builderForValue.build()); + onChanged(); + } else { + secondaryClustersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * List of secondary clusters that are replicating from this primary cluster.
    +     *
    +     * This field is only set for a primary cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + public Builder addSecondaryClusters( + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster value) { + if (secondaryClustersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecondaryClustersIsMutable(); + secondaryClusters_.add(value); + onChanged(); + } else { + secondaryClustersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
    +     * List of secondary clusters that are replicating from this primary cluster.
    +     *
    +     * This field is only set for a primary cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + public Builder addSecondaryClusters( + int index, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster value) { + if (secondaryClustersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecondaryClustersIsMutable(); + secondaryClusters_.add(index, value); + onChanged(); + } else { + secondaryClustersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * List of secondary clusters that are replicating from this primary cluster.
    +     *
    +     * This field is only set for a primary cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + public Builder addSecondaryClusters( + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster.Builder + builderForValue) { + if (secondaryClustersBuilder_ == null) { + ensureSecondaryClustersIsMutable(); + secondaryClusters_.add(builderForValue.build()); + onChanged(); + } else { + secondaryClustersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * List of secondary clusters that are replicating from this primary cluster.
    +     *
    +     * This field is only set for a primary cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + public Builder addSecondaryClusters( + int index, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster.Builder + builderForValue) { + if (secondaryClustersBuilder_ == null) { + ensureSecondaryClustersIsMutable(); + secondaryClusters_.add(index, builderForValue.build()); + onChanged(); + } else { + secondaryClustersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * List of secondary clusters that are replicating from this primary cluster.
    +     *
    +     * This field is only set for a primary cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + public Builder addAllSecondaryClusters( + java.lang.Iterable< + ? extends + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .RemoteCluster> + values) { + if (secondaryClustersBuilder_ == null) { + ensureSecondaryClustersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, secondaryClusters_); + onChanged(); + } else { + secondaryClustersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
    +     * List of secondary clusters that are replicating from this primary cluster.
    +     *
    +     * This field is only set for a primary cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + public Builder clearSecondaryClusters() { + if (secondaryClustersBuilder_ == null) { + secondaryClusters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + secondaryClustersBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * List of secondary clusters that are replicating from this primary cluster.
    +     *
    +     * This field is only set for a primary cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + public Builder removeSecondaryClusters(int index) { + if (secondaryClustersBuilder_ == null) { + ensureSecondaryClustersIsMutable(); + secondaryClusters_.remove(index); + onChanged(); + } else { + secondaryClustersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
    +     * List of secondary clusters that are replicating from this primary cluster.
    +     *
    +     * This field is only set for a primary cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + .Builder + getSecondaryClustersBuilder(int index) { + return getSecondaryClustersFieldBuilder().getBuilder(index); + } + /** + * + * + *
    +     * List of secondary clusters that are replicating from this primary cluster.
    +     *
    +     * This field is only set for a primary cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .RemoteClusterOrBuilder + getSecondaryClustersOrBuilder(int index) { + if (secondaryClustersBuilder_ == null) { + return secondaryClusters_.get(index); + } else { + return secondaryClustersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
    +     * List of secondary clusters that are replicating from this primary cluster.
    +     *
    +     * This field is only set for a primary cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + public java.util.List< + ? extends + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .RemoteClusterOrBuilder> + getSecondaryClustersOrBuilderList() { + if (secondaryClustersBuilder_ != null) { + return secondaryClustersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(secondaryClusters_); + } + } + /** + * + * + *
    +     * List of secondary clusters that are replicating from this primary cluster.
    +     *
    +     * This field is only set for a primary cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + .Builder + addSecondaryClustersBuilder() { + return getSecondaryClustersFieldBuilder() + .addBuilder( + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + .getDefaultInstance()); + } + /** + * + * + *
    +     * List of secondary clusters that are replicating from this primary cluster.
    +     *
    +     * This field is only set for a primary cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + .Builder + addSecondaryClustersBuilder(int index) { + return getSecondaryClustersFieldBuilder() + .addBuilder( + index, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + .getDefaultInstance()); + } + /** + * + * + *
    +     * List of secondary clusters that are replicating from this primary cluster.
    +     *
    +     * This field is only set for a primary cluster.
    +     * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + public java.util.List< + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + .Builder> + getSecondaryClustersBuilderList() { + return getSecondaryClustersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + .Builder, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .RemoteClusterOrBuilder> + getSecondaryClustersFieldBuilder() { + if (secondaryClustersBuilder_ == null) { + secondaryClustersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + .Builder, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .RemoteClusterOrBuilder>( + secondaryClusters_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + secondaryClusters_ = null; + } + return secondaryClustersBuilder_; + } + + 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. The last time cross cluster replication config was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
    +     * Output only. The last time cross cluster replication config was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 4 [(.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. The last time cross cluster replication config was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The last time cross cluster replication config was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The last time cross cluster replication config was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Output only. The last time cross cluster replication config was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The last time cross cluster replication config was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Output only. The last time cross cluster replication config was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_time = 4 [(.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. The last time cross cluster replication config was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp update_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> + 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.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership + membership_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership.Builder, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .MembershipOrBuilder> + membershipBuilder_; + /** + * + * + *
    +     * Output only. An output only view of all the member clusters participating
    +     * in the cross cluster replication. This view will be provided by every
    +     * member cluster irrespective of its cluster role(primary or secondary).
    +     *
    +     * A primary cluster can provide information about all the secondary clusters
    +     * replicating from it. However, a secondary cluster only knows about the
    +     * primary cluster from which it is replicating. However, for scenarios, where
    +     * the primary cluster is unavailable(e.g. regional outage), a GetCluster
    +     * request can be sent to any other member cluster and this field will list
    +     * all the member clusters participating in cross cluster replication.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership membership = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the membership field is set. + */ + public boolean hasMembership() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
    +     * Output only. An output only view of all the member clusters participating
    +     * in the cross cluster replication. This view will be provided by every
    +     * member cluster irrespective of its cluster role(primary or secondary).
    +     *
    +     * A primary cluster can provide information about all the secondary clusters
    +     * replicating from it. However, a secondary cluster only knows about the
    +     * primary cluster from which it is replicating. However, for scenarios, where
    +     * the primary cluster is unavailable(e.g. regional outage), a GetCluster
    +     * request can be sent to any other member cluster and this field will list
    +     * all the member clusters participating in cross cluster replication.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership membership = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The membership. + */ + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership + getMembership() { + if (membershipBuilder_ == null) { + return membership_ == null + ? com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership + .getDefaultInstance() + : membership_; + } else { + return membershipBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Output only. An output only view of all the member clusters participating
    +     * in the cross cluster replication. This view will be provided by every
    +     * member cluster irrespective of its cluster role(primary or secondary).
    +     *
    +     * A primary cluster can provide information about all the secondary clusters
    +     * replicating from it. However, a secondary cluster only knows about the
    +     * primary cluster from which it is replicating. However, for scenarios, where
    +     * the primary cluster is unavailable(e.g. regional outage), a GetCluster
    +     * request can be sent to any other member cluster and this field will list
    +     * all the member clusters participating in cross cluster replication.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership membership = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setMembership( + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership value) { + if (membershipBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + membership_ = value; + } else { + membershipBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. An output only view of all the member clusters participating
    +     * in the cross cluster replication. This view will be provided by every
    +     * member cluster irrespective of its cluster role(primary or secondary).
    +     *
    +     * A primary cluster can provide information about all the secondary clusters
    +     * replicating from it. However, a secondary cluster only knows about the
    +     * primary cluster from which it is replicating. However, for scenarios, where
    +     * the primary cluster is unavailable(e.g. regional outage), a GetCluster
    +     * request can be sent to any other member cluster and this field will list
    +     * all the member clusters participating in cross cluster replication.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership membership = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setMembership( + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership.Builder + builderForValue) { + if (membershipBuilder_ == null) { + membership_ = builderForValue.build(); + } else { + membershipBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. An output only view of all the member clusters participating
    +     * in the cross cluster replication. This view will be provided by every
    +     * member cluster irrespective of its cluster role(primary or secondary).
    +     *
    +     * A primary cluster can provide information about all the secondary clusters
    +     * replicating from it. However, a secondary cluster only knows about the
    +     * primary cluster from which it is replicating. However, for scenarios, where
    +     * the primary cluster is unavailable(e.g. regional outage), a GetCluster
    +     * request can be sent to any other member cluster and this field will list
    +     * all the member clusters participating in cross cluster replication.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership membership = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeMembership( + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership value) { + if (membershipBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && membership_ != null + && membership_ + != com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership + .getDefaultInstance()) { + getMembershipBuilder().mergeFrom(value); + } else { + membership_ = value; + } + } else { + membershipBuilder_.mergeFrom(value); + } + if (membership_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Output only. An output only view of all the member clusters participating
    +     * in the cross cluster replication. This view will be provided by every
    +     * member cluster irrespective of its cluster role(primary or secondary).
    +     *
    +     * A primary cluster can provide information about all the secondary clusters
    +     * replicating from it. However, a secondary cluster only knows about the
    +     * primary cluster from which it is replicating. However, for scenarios, where
    +     * the primary cluster is unavailable(e.g. regional outage), a GetCluster
    +     * request can be sent to any other member cluster and this field will list
    +     * all the member clusters participating in cross cluster replication.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership membership = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearMembership() { + bitField0_ = (bitField0_ & ~0x00000010); + membership_ = null; + if (membershipBuilder_ != null) { + membershipBuilder_.dispose(); + membershipBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. An output only view of all the member clusters participating
    +     * in the cross cluster replication. This view will be provided by every
    +     * member cluster irrespective of its cluster role(primary or secondary).
    +     *
    +     * A primary cluster can provide information about all the secondary clusters
    +     * replicating from it. However, a secondary cluster only knows about the
    +     * primary cluster from which it is replicating. However, for scenarios, where
    +     * the primary cluster is unavailable(e.g. regional outage), a GetCluster
    +     * request can be sent to any other member cluster and this field will list
    +     * all the member clusters participating in cross cluster replication.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership membership = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership.Builder + getMembershipBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getMembershipFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Output only. An output only view of all the member clusters participating
    +     * in the cross cluster replication. This view will be provided by every
    +     * member cluster irrespective of its cluster role(primary or secondary).
    +     *
    +     * A primary cluster can provide information about all the secondary clusters
    +     * replicating from it. However, a secondary cluster only knows about the
    +     * primary cluster from which it is replicating. However, for scenarios, where
    +     * the primary cluster is unavailable(e.g. regional outage), a GetCluster
    +     * request can be sent to any other member cluster and this field will list
    +     * all the member clusters participating in cross cluster replication.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership membership = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.MembershipOrBuilder + getMembershipOrBuilder() { + if (membershipBuilder_ != null) { + return membershipBuilder_.getMessageOrBuilder(); + } else { + return membership_ == null + ? com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership + .getDefaultInstance() + : membership_; + } + } + /** + * + * + *
    +     * Output only. An output only view of all the member clusters participating
    +     * in the cross cluster replication. This view will be provided by every
    +     * member cluster irrespective of its cluster role(primary or secondary).
    +     *
    +     * A primary cluster can provide information about all the secondary clusters
    +     * replicating from it. However, a secondary cluster only knows about the
    +     * primary cluster from which it is replicating. However, for scenarios, where
    +     * the primary cluster is unavailable(e.g. regional outage), a GetCluster
    +     * request can be sent to any other member cluster and this field will list
    +     * all the member clusters participating in cross cluster replication.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership membership = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership.Builder, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .MembershipOrBuilder> + getMembershipFieldBuilder() { + if (membershipBuilder_ == null) { + membershipBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership + .Builder, + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .MembershipOrBuilder>(getMembership(), getParentForChildren(), isClean()); + membership_ = null; + } + return membershipBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig) + private static final com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig(); + } + + public static com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CrossClusterReplicationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CrossClusterReplicationConfigOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CrossClusterReplicationConfigOrBuilder.java new file mode 100644 index 000000000000..9f8ea6ff0f2b --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CrossClusterReplicationConfigOrBuilder.java @@ -0,0 +1,292 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +public interface CrossClusterReplicationConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The role of the cluster in cross cluster replication.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.ClusterRole cluster_role = 1; + * + * + * @return The enum numeric value on the wire for clusterRole. + */ + int getClusterRoleValue(); + /** + * + * + *
    +   * The role of the cluster in cross cluster replication.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.ClusterRole cluster_role = 1; + * + * + * @return The clusterRole. + */ + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.ClusterRole getClusterRole(); + + /** + * + * + *
    +   * Details of the primary cluster that is used as the replication source for
    +   * this secondary cluster.
    +   *
    +   * This field is only set for a secondary cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 2; + * + * + * @return Whether the primaryCluster field is set. + */ + boolean hasPrimaryCluster(); + /** + * + * + *
    +   * Details of the primary cluster that is used as the replication source for
    +   * this secondary cluster.
    +   *
    +   * This field is only set for a secondary cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 2; + * + * + * @return The primaryCluster. + */ + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + getPrimaryCluster(); + /** + * + * + *
    +   * Details of the primary cluster that is used as the replication source for
    +   * this secondary cluster.
    +   *
    +   * This field is only set for a secondary cluster.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster primary_cluster = 2; + * + */ + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteClusterOrBuilder + getPrimaryClusterOrBuilder(); + + /** + * + * + *
    +   * List of secondary clusters that are replicating from this primary cluster.
    +   *
    +   * This field is only set for a primary cluster.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + java.util.List + getSecondaryClustersList(); + /** + * + * + *
    +   * List of secondary clusters that are replicating from this primary cluster.
    +   *
    +   * This field is only set for a primary cluster.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster + getSecondaryClusters(int index); + /** + * + * + *
    +   * List of secondary clusters that are replicating from this primary cluster.
    +   *
    +   * This field is only set for a primary cluster.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + int getSecondaryClustersCount(); + /** + * + * + *
    +   * List of secondary clusters that are replicating from this primary cluster.
    +   *
    +   * This field is only set for a primary cluster.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + java.util.List< + ? extends + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig + .RemoteClusterOrBuilder> + getSecondaryClustersOrBuilderList(); + /** + * + * + *
    +   * List of secondary clusters that are replicating from this primary cluster.
    +   *
    +   * This field is only set for a primary cluster.
    +   * 
    + * + * + * repeated .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteCluster secondary_clusters = 3; + * + */ + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.RemoteClusterOrBuilder + getSecondaryClustersOrBuilder(int index); + + /** + * + * + *
    +   * Output only. The last time cross cluster replication config was updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
    +   * Output only. The last time cross cluster replication config was updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
    +   * Output only. The last time cross cluster replication config was updated.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
    +   * Output only. An output only view of all the member clusters participating
    +   * in the cross cluster replication. This view will be provided by every
    +   * member cluster irrespective of its cluster role(primary or secondary).
    +   *
    +   * A primary cluster can provide information about all the secondary clusters
    +   * replicating from it. However, a secondary cluster only knows about the
    +   * primary cluster from which it is replicating. However, for scenarios, where
    +   * the primary cluster is unavailable(e.g. regional outage), a GetCluster
    +   * request can be sent to any other member cluster and this field will list
    +   * all the member clusters participating in cross cluster replication.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership membership = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the membership field is set. + */ + boolean hasMembership(); + /** + * + * + *
    +   * Output only. An output only view of all the member clusters participating
    +   * in the cross cluster replication. This view will be provided by every
    +   * member cluster irrespective of its cluster role(primary or secondary).
    +   *
    +   * A primary cluster can provide information about all the secondary clusters
    +   * replicating from it. However, a secondary cluster only knows about the
    +   * primary cluster from which it is replicating. However, for scenarios, where
    +   * the primary cluster is unavailable(e.g. regional outage), a GetCluster
    +   * request can be sent to any other member cluster and this field will list
    +   * all the member clusters participating in cross cluster replication.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership membership = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The membership. + */ + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership getMembership(); + /** + * + * + *
    +   * Output only. An output only view of all the member clusters participating
    +   * in the cross cluster replication. This view will be provided by every
    +   * member cluster irrespective of its cluster role(primary or secondary).
    +   *
    +   * A primary cluster can provide information about all the secondary clusters
    +   * replicating from it. However, a secondary cluster only knows about the
    +   * primary cluster from which it is replicating. However, for scenarios, where
    +   * the primary cluster is unavailable(e.g. regional outage), a GetCluster
    +   * request can be sent to any other member cluster and this field will list
    +   * all the member clusters participating in cross cluster replication.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.Membership membership = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.redis.cluster.v1beta1.CrossClusterReplicationConfig.MembershipOrBuilder + getMembershipOrBuilder(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/DeleteBackupRequest.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/DeleteBackupRequest.java new file mode 100644 index 000000000000..1ca47897d147 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/DeleteBackupRequest.java @@ -0,0 +1,843 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
    + * Request for [DeleteBackup].
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.DeleteBackupRequest} + */ +public final class DeleteBackupRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.DeleteBackupRequest) + DeleteBackupRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteBackupRequest.newBuilder() to construct. + private DeleteBackupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteBackupRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteBackupRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_DeleteBackupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_DeleteBackupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest.class, + com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Required. Redis backup resource name using the form:
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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. Redis backup resource name using the form:
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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 REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
    +   * Optional. Idempotent request UUID.
    +   * 
    + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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. Idempotent request UUID.
    +   * 
    + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + 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(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, 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.redis.cluster.v1beta1.DeleteBackupRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest other = + (com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest) obj; + + if (!getName().equals(other.getName())) 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(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().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.redis.cluster.v1beta1.DeleteBackupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 [DeleteBackup].
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.DeleteBackupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.DeleteBackupRequest) + com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_DeleteBackupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_DeleteBackupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest.class, + com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_DeleteBackupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest build() { + com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest buildPartial() { + com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest result = + new com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest) { + return mergeFrom((com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest other) { + if (other == com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = 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 name_ = ""; + /** + * + * + *
    +     * Required. Redis backup resource name using the form:
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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. Redis backup resource name using the form:
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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. Redis backup resource name using the form:
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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. Redis backup resource name using the form:
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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. Redis backup resource name using the form:
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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 requestId_ = ""; + /** + * + * + *
    +     * Optional. Idempotent request UUID.
    +     * 
    + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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. Idempotent request UUID.
    +     * 
    + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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. Idempotent request UUID.
    +     * 
    + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. Idempotent request UUID.
    +     * 
    + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. Idempotent request UUID.
    +     * 
    + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @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_ |= 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.redis.cluster.v1beta1.DeleteBackupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.DeleteBackupRequest) + private static final com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest(); + } + + public static com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteBackupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/DeleteBackupRequestOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/DeleteBackupRequestOrBuilder.java new file mode 100644 index 000000000000..7a2f8517ceb7 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/DeleteBackupRequestOrBuilder.java @@ -0,0 +1,86 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +public interface DeleteBackupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.DeleteBackupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Redis backup resource name using the form:
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Required. Redis backup resource name using the form:
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Optional. Idempotent request UUID.
    +   * 
    + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
    +   * Optional. Idempotent request UUID.
    +   * 
    + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/EncryptionInfo.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/EncryptionInfo.java new file mode 100644 index 000000000000..03d4333d089e --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/EncryptionInfo.java @@ -0,0 +1,1873 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
    + * EncryptionInfo describes the encryption information of a cluster or a backup.
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.EncryptionInfo} + */ +public final class EncryptionInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.EncryptionInfo) + EncryptionInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use EncryptionInfo.newBuilder() to construct. + private EncryptionInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EncryptionInfo() { + encryptionType_ = 0; + kmsKeyVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + kmsKeyPrimaryState_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EncryptionInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_EncryptionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_EncryptionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.class, + com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.Builder.class); + } + + /** + * + * + *
    +   * Possible encryption types.
    +   * 
    + * + * Protobuf enum {@code google.cloud.redis.cluster.v1beta1.EncryptionInfo.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Encryption type not specified. Defaults to GOOGLE_DEFAULT_ENCRYPTION.
    +     * 
    + * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
    +     * The data is encrypted at rest with a key that is fully managed by Google.
    +     * No key version will be populated. This is the default state.
    +     * 
    + * + * GOOGLE_DEFAULT_ENCRYPTION = 1; + */ + GOOGLE_DEFAULT_ENCRYPTION(1), + /** + * + * + *
    +     * The data is encrypted at rest with a key that is managed by the customer.
    +     * KMS key versions will be populated.
    +     * 
    + * + * CUSTOMER_MANAGED_ENCRYPTION = 2; + */ + CUSTOMER_MANAGED_ENCRYPTION(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Encryption type not specified. Defaults to GOOGLE_DEFAULT_ENCRYPTION.
    +     * 
    + * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +     * The data is encrypted at rest with a key that is fully managed by Google.
    +     * No key version will be populated. This is the default state.
    +     * 
    + * + * GOOGLE_DEFAULT_ENCRYPTION = 1; + */ + public static final int GOOGLE_DEFAULT_ENCRYPTION_VALUE = 1; + /** + * + * + *
    +     * The data is encrypted at rest with a key that is managed by the customer.
    +     * KMS key versions will be populated.
    +     * 
    + * + * CUSTOMER_MANAGED_ENCRYPTION = 2; + */ + public static final int CUSTOMER_MANAGED_ENCRYPTION_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 Type valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Type forNumber(int value) { + switch (value) { + case 0: + return TYPE_UNSPECIFIED; + case 1: + return GOOGLE_DEFAULT_ENCRYPTION; + case 2: + return CUSTOMER_MANAGED_ENCRYPTION; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.redis.cluster.v1beta1.EncryptionInfo.Type) + } + + /** + * + * + *
    +   * The state of the KMS key perceived by the system. Refer to the public
    +   * documentation for the impact of each state.
    +   * 
    + * + * Protobuf enum {@code google.cloud.redis.cluster.v1beta1.EncryptionInfo.KmsKeyState} + */ + public enum KmsKeyState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * The default value. This value is unused.
    +     * 
    + * + * KMS_KEY_STATE_UNSPECIFIED = 0; + */ + KMS_KEY_STATE_UNSPECIFIED(0), + /** + * + * + *
    +     * The KMS key is enabled and correctly configured.
    +     * 
    + * + * ENABLED = 1; + */ + ENABLED(1), + /** + * + * + *
    +     * Permission denied on the KMS key.
    +     * 
    + * + * PERMISSION_DENIED = 2; + */ + PERMISSION_DENIED(2), + /** + * + * + *
    +     * The KMS key is disabled.
    +     * 
    + * + * DISABLED = 3; + */ + DISABLED(3), + /** + * + * + *
    +     * The KMS key is destroyed.
    +     * 
    + * + * DESTROYED = 4; + */ + DESTROYED(4), + /** + * + * + *
    +     * The KMS key is scheduled to be destroyed.
    +     * 
    + * + * DESTROY_SCHEDULED = 5; + */ + DESTROY_SCHEDULED(5), + /** + * + * + *
    +     * The EKM key is unreachable.
    +     * 
    + * + * EKM_KEY_UNREACHABLE_DETECTED = 6; + */ + EKM_KEY_UNREACHABLE_DETECTED(6), + /** + * + * + *
    +     * Billing is disabled for the project.
    +     * 
    + * + * BILLING_DISABLED = 7; + */ + BILLING_DISABLED(7), + /** + * + * + *
    +     * All other unknown failures.
    +     * 
    + * + * UNKNOWN_FAILURE = 8; + */ + UNKNOWN_FAILURE(8), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * The default value. This value is unused.
    +     * 
    + * + * KMS_KEY_STATE_UNSPECIFIED = 0; + */ + public static final int KMS_KEY_STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +     * The KMS key is enabled and correctly configured.
    +     * 
    + * + * ENABLED = 1; + */ + public static final int ENABLED_VALUE = 1; + /** + * + * + *
    +     * Permission denied on the KMS key.
    +     * 
    + * + * PERMISSION_DENIED = 2; + */ + public static final int PERMISSION_DENIED_VALUE = 2; + /** + * + * + *
    +     * The KMS key is disabled.
    +     * 
    + * + * DISABLED = 3; + */ + public static final int DISABLED_VALUE = 3; + /** + * + * + *
    +     * The KMS key is destroyed.
    +     * 
    + * + * DESTROYED = 4; + */ + public static final int DESTROYED_VALUE = 4; + /** + * + * + *
    +     * The KMS key is scheduled to be destroyed.
    +     * 
    + * + * DESTROY_SCHEDULED = 5; + */ + public static final int DESTROY_SCHEDULED_VALUE = 5; + /** + * + * + *
    +     * The EKM key is unreachable.
    +     * 
    + * + * EKM_KEY_UNREACHABLE_DETECTED = 6; + */ + public static final int EKM_KEY_UNREACHABLE_DETECTED_VALUE = 6; + /** + * + * + *
    +     * Billing is disabled for the project.
    +     * 
    + * + * BILLING_DISABLED = 7; + */ + public static final int BILLING_DISABLED_VALUE = 7; + /** + * + * + *
    +     * All other unknown failures.
    +     * 
    + * + * UNKNOWN_FAILURE = 8; + */ + public static final int UNKNOWN_FAILURE_VALUE = 8; + + 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 KmsKeyState 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 KmsKeyState forNumber(int value) { + switch (value) { + case 0: + return KMS_KEY_STATE_UNSPECIFIED; + case 1: + return ENABLED; + case 2: + return PERMISSION_DENIED; + case 3: + return DISABLED; + case 4: + return DESTROYED; + case 5: + return DESTROY_SCHEDULED; + case 6: + return EKM_KEY_UNREACHABLE_DETECTED; + case 7: + return BILLING_DISABLED; + case 8: + return UNKNOWN_FAILURE; + 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 KmsKeyState findValueByNumber(int number) { + return KmsKeyState.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.redis.cluster.v1beta1.EncryptionInfo.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final KmsKeyState[] VALUES = values(); + + public static KmsKeyState 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 KmsKeyState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.redis.cluster.v1beta1.EncryptionInfo.KmsKeyState) + } + + private int bitField0_; + public static final int ENCRYPTION_TYPE_FIELD_NUMBER = 1; + private int encryptionType_ = 0; + /** + * + * + *
    +   * Output only. Type of encryption.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo.Type encryption_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for encryptionType. + */ + @java.lang.Override + public int getEncryptionTypeValue() { + return encryptionType_; + } + /** + * + * + *
    +   * Output only. Type of encryption.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo.Type encryption_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The encryptionType. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.Type getEncryptionType() { + com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.Type result = + com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.Type.forNumber(encryptionType_); + return result == null + ? com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.Type.UNRECOGNIZED + : result; + } + + public static final int KMS_KEY_VERSIONS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList kmsKeyVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
    +   * Output only. KMS key versions that are being used to protect the data
    +   * at-rest.
    +   * 
    + * + * + * repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the kmsKeyVersions. + */ + public com.google.protobuf.ProtocolStringList getKmsKeyVersionsList() { + return kmsKeyVersions_; + } + /** + * + * + *
    +   * Output only. KMS key versions that are being used to protect the data
    +   * at-rest.
    +   * 
    + * + * + * repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of kmsKeyVersions. + */ + public int getKmsKeyVersionsCount() { + return kmsKeyVersions_.size(); + } + /** + * + * + *
    +   * Output only. KMS key versions that are being used to protect the data
    +   * at-rest.
    +   * 
    + * + * + * repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The kmsKeyVersions at the given index. + */ + public java.lang.String getKmsKeyVersions(int index) { + return kmsKeyVersions_.get(index); + } + /** + * + * + *
    +   * Output only. KMS key versions that are being used to protect the data
    +   * at-rest.
    +   * 
    + * + * + * repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the kmsKeyVersions at the given index. + */ + public com.google.protobuf.ByteString getKmsKeyVersionsBytes(int index) { + return kmsKeyVersions_.getByteString(index); + } + + public static final int KMS_KEY_PRIMARY_STATE_FIELD_NUMBER = 3; + private int kmsKeyPrimaryState_ = 0; + /** + * + * + *
    +   * Output only. The state of the primary version of the KMS key perceived by
    +   * the system. This field is not populated in backups.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo.KmsKeyState kms_key_primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for kmsKeyPrimaryState. + */ + @java.lang.Override + public int getKmsKeyPrimaryStateValue() { + return kmsKeyPrimaryState_; + } + /** + * + * + *
    +   * Output only. The state of the primary version of the KMS key perceived by
    +   * the system. This field is not populated in backups.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo.KmsKeyState kms_key_primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The kmsKeyPrimaryState. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.KmsKeyState getKmsKeyPrimaryState() { + com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.KmsKeyState result = + com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.KmsKeyState.forNumber( + kmsKeyPrimaryState_); + return result == null + ? com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.KmsKeyState.UNRECOGNIZED + : result; + } + + public static final int LAST_UPDATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp lastUpdateTime_; + /** + * + * + *
    +   * Output only. The most recent time when the encryption info was updated.
    +   * 
    + * + * + * .google.protobuf.Timestamp last_update_time = 4 [(.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 most recent time when the encryption info was updated.
    +   * 
    + * + * + * .google.protobuf.Timestamp last_update_time = 4 [(.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 most recent time when the encryption info was updated.
    +   * 
    + * + * + * .google.protobuf.Timestamp last_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (encryptionType_ + != com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.Type.TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, encryptionType_); + } + for (int i = 0; i < kmsKeyVersions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kmsKeyVersions_.getRaw(i)); + } + if (kmsKeyPrimaryState_ + != com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.KmsKeyState + .KMS_KEY_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, kmsKeyPrimaryState_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getLastUpdateTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (encryptionType_ + != com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.Type.TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, encryptionType_); + } + { + int dataSize = 0; + for (int i = 0; i < kmsKeyVersions_.size(); i++) { + dataSize += computeStringSizeNoTag(kmsKeyVersions_.getRaw(i)); + } + size += dataSize; + size += 1 * getKmsKeyVersionsList().size(); + } + if (kmsKeyPrimaryState_ + != com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.KmsKeyState + .KMS_KEY_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, kmsKeyPrimaryState_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getLastUpdateTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1beta1.EncryptionInfo)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.EncryptionInfo other = + (com.google.cloud.redis.cluster.v1beta1.EncryptionInfo) obj; + + if (encryptionType_ != other.encryptionType_) return false; + if (!getKmsKeyVersionsList().equals(other.getKmsKeyVersionsList())) return false; + if (kmsKeyPrimaryState_ != other.kmsKeyPrimaryState_) return false; + if (hasLastUpdateTime() != other.hasLastUpdateTime()) return false; + if (hasLastUpdateTime()) { + if (!getLastUpdateTime().equals(other.getLastUpdateTime())) return false; + } + if (!getUnknownFields().equals(other.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) + ENCRYPTION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + encryptionType_; + if (getKmsKeyVersionsCount() > 0) { + hash = (37 * hash) + KMS_KEY_VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getKmsKeyVersionsList().hashCode(); + } + hash = (37 * hash) + KMS_KEY_PRIMARY_STATE_FIELD_NUMBER; + hash = (53 * hash) + kmsKeyPrimaryState_; + if (hasLastUpdateTime()) { + hash = (37 * hash) + LAST_UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getLastUpdateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.EncryptionInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.EncryptionInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.EncryptionInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.EncryptionInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.EncryptionInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.EncryptionInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.EncryptionInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.EncryptionInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.EncryptionInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.EncryptionInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.EncryptionInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.EncryptionInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1beta1.EncryptionInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * EncryptionInfo describes the encryption information of a cluster or a backup.
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.EncryptionInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.EncryptionInfo) + com.google.cloud.redis.cluster.v1beta1.EncryptionInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_EncryptionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_EncryptionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.class, + com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.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; + encryptionType_ = 0; + kmsKeyVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + kmsKeyPrimaryState_ = 0; + lastUpdateTime_ = null; + if (lastUpdateTimeBuilder_ != null) { + lastUpdateTimeBuilder_.dispose(); + lastUpdateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_EncryptionInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.EncryptionInfo getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.EncryptionInfo build() { + com.google.cloud.redis.cluster.v1beta1.EncryptionInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.EncryptionInfo buildPartial() { + com.google.cloud.redis.cluster.v1beta1.EncryptionInfo result = + new com.google.cloud.redis.cluster.v1beta1.EncryptionInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1beta1.EncryptionInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.encryptionType_ = encryptionType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + kmsKeyVersions_.makeImmutable(); + result.kmsKeyVersions_ = kmsKeyVersions_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.kmsKeyPrimaryState_ = kmsKeyPrimaryState_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.lastUpdateTime_ = + lastUpdateTimeBuilder_ == null ? lastUpdateTime_ : lastUpdateTimeBuilder_.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.redis.cluster.v1beta1.EncryptionInfo) { + return mergeFrom((com.google.cloud.redis.cluster.v1beta1.EncryptionInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1beta1.EncryptionInfo other) { + if (other == com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.getDefaultInstance()) + return this; + if (other.encryptionType_ != 0) { + setEncryptionTypeValue(other.getEncryptionTypeValue()); + } + if (!other.kmsKeyVersions_.isEmpty()) { + if (kmsKeyVersions_.isEmpty()) { + kmsKeyVersions_ = other.kmsKeyVersions_; + bitField0_ |= 0x00000002; + } else { + ensureKmsKeyVersionsIsMutable(); + kmsKeyVersions_.addAll(other.kmsKeyVersions_); + } + onChanged(); + } + if (other.kmsKeyPrimaryState_ != 0) { + setKmsKeyPrimaryStateValue(other.getKmsKeyPrimaryStateValue()); + } + if (other.hasLastUpdateTime()) { + mergeLastUpdateTime(other.getLastUpdateTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + encryptionType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureKmsKeyVersionsIsMutable(); + kmsKeyVersions_.add(s); + break; + } // case 18 + case 24: + { + kmsKeyPrimaryState_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage(getLastUpdateTimeFieldBuilder().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 encryptionType_ = 0; + /** + * + * + *
    +     * Output only. Type of encryption.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo.Type encryption_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for encryptionType. + */ + @java.lang.Override + public int getEncryptionTypeValue() { + return encryptionType_; + } + /** + * + * + *
    +     * Output only. Type of encryption.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo.Type encryption_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for encryptionType to set. + * @return This builder for chaining. + */ + public Builder setEncryptionTypeValue(int value) { + encryptionType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Type of encryption.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo.Type encryption_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The encryptionType. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.Type getEncryptionType() { + com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.Type result = + com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.Type.forNumber(encryptionType_); + return result == null + ? com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.Type.UNRECOGNIZED + : result; + } + /** + * + * + *
    +     * Output only. Type of encryption.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo.Type encryption_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The encryptionType to set. + * @return This builder for chaining. + */ + public Builder setEncryptionType( + com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + encryptionType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Type of encryption.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo.Type encryption_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearEncryptionType() { + bitField0_ = (bitField0_ & ~0x00000001); + encryptionType_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList kmsKeyVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureKmsKeyVersionsIsMutable() { + if (!kmsKeyVersions_.isModifiable()) { + kmsKeyVersions_ = new com.google.protobuf.LazyStringArrayList(kmsKeyVersions_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
    +     * Output only. KMS key versions that are being used to protect the data
    +     * at-rest.
    +     * 
    + * + * + * repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the kmsKeyVersions. + */ + public com.google.protobuf.ProtocolStringList getKmsKeyVersionsList() { + kmsKeyVersions_.makeImmutable(); + return kmsKeyVersions_; + } + /** + * + * + *
    +     * Output only. KMS key versions that are being used to protect the data
    +     * at-rest.
    +     * 
    + * + * + * repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of kmsKeyVersions. + */ + public int getKmsKeyVersionsCount() { + return kmsKeyVersions_.size(); + } + /** + * + * + *
    +     * Output only. KMS key versions that are being used to protect the data
    +     * at-rest.
    +     * 
    + * + * + * repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The kmsKeyVersions at the given index. + */ + public java.lang.String getKmsKeyVersions(int index) { + return kmsKeyVersions_.get(index); + } + /** + * + * + *
    +     * Output only. KMS key versions that are being used to protect the data
    +     * at-rest.
    +     * 
    + * + * + * repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the kmsKeyVersions at the given index. + */ + public com.google.protobuf.ByteString getKmsKeyVersionsBytes(int index) { + return kmsKeyVersions_.getByteString(index); + } + /** + * + * + *
    +     * Output only. KMS key versions that are being used to protect the data
    +     * at-rest.
    +     * 
    + * + * + * repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The kmsKeyVersions to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyVersions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureKmsKeyVersionsIsMutable(); + kmsKeyVersions_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. KMS key versions that are being used to protect the data
    +     * at-rest.
    +     * 
    + * + * + * repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The kmsKeyVersions to add. + * @return This builder for chaining. + */ + public Builder addKmsKeyVersions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureKmsKeyVersionsIsMutable(); + kmsKeyVersions_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. KMS key versions that are being used to protect the data
    +     * at-rest.
    +     * 
    + * + * + * repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param values The kmsKeyVersions to add. + * @return This builder for chaining. + */ + public Builder addAllKmsKeyVersions(java.lang.Iterable values) { + ensureKmsKeyVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, kmsKeyVersions_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. KMS key versions that are being used to protect the data
    +     * at-rest.
    +     * 
    + * + * + * repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearKmsKeyVersions() { + kmsKeyVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. KMS key versions that are being used to protect the data
    +     * at-rest.
    +     * 
    + * + * + * repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the kmsKeyVersions to add. + * @return This builder for chaining. + */ + public Builder addKmsKeyVersionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureKmsKeyVersionsIsMutable(); + kmsKeyVersions_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int kmsKeyPrimaryState_ = 0; + /** + * + * + *
    +     * Output only. The state of the primary version of the KMS key perceived by
    +     * the system. This field is not populated in backups.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo.KmsKeyState kms_key_primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for kmsKeyPrimaryState. + */ + @java.lang.Override + public int getKmsKeyPrimaryStateValue() { + return kmsKeyPrimaryState_; + } + /** + * + * + *
    +     * Output only. The state of the primary version of the KMS key perceived by
    +     * the system. This field is not populated in backups.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo.KmsKeyState kms_key_primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for kmsKeyPrimaryState to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyPrimaryStateValue(int value) { + kmsKeyPrimaryState_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The state of the primary version of the KMS key perceived by
    +     * the system. This field is not populated in backups.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo.KmsKeyState kms_key_primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The kmsKeyPrimaryState. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.KmsKeyState + getKmsKeyPrimaryState() { + com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.KmsKeyState result = + com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.KmsKeyState.forNumber( + kmsKeyPrimaryState_); + return result == null + ? com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.KmsKeyState.UNRECOGNIZED + : result; + } + /** + * + * + *
    +     * Output only. The state of the primary version of the KMS key perceived by
    +     * the system. This field is not populated in backups.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo.KmsKeyState kms_key_primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The kmsKeyPrimaryState to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyPrimaryState( + com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.KmsKeyState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + kmsKeyPrimaryState_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The state of the primary version of the KMS key perceived by
    +     * the system. This field is not populated in backups.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo.KmsKeyState kms_key_primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearKmsKeyPrimaryState() { + bitField0_ = (bitField0_ & ~0x00000004); + kmsKeyPrimaryState_ = 0; + 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 most recent time when the encryption info was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp last_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastUpdateTime field is set. + */ + public boolean hasLastUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
    +     * Output only. The most recent time when the encryption info was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp last_update_time = 4 [(.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 most recent time when the encryption info was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp last_update_time = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The most recent time when the encryption info was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp last_update_time = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The most recent time when the encryption info was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp last_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { + if (lastUpdateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && lastUpdateTime_ != null + && lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getLastUpdateTimeBuilder().mergeFrom(value); + } else { + lastUpdateTime_ = value; + } + } else { + lastUpdateTimeBuilder_.mergeFrom(value); + } + if (lastUpdateTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Output only. The most recent time when the encryption info was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp last_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearLastUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + lastUpdateTime_ = null; + if (lastUpdateTimeBuilder_ != null) { + lastUpdateTimeBuilder_.dispose(); + lastUpdateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The most recent time when the encryption info was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp last_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getLastUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Output only. The most recent time when the encryption info was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp last_update_time = 4 [(.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 most recent time when the encryption info was updated.
    +     * 
    + * + * + * .google.protobuf.Timestamp last_update_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> + 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_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1beta1.EncryptionInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.EncryptionInfo) + private static final com.google.cloud.redis.cluster.v1beta1.EncryptionInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1beta1.EncryptionInfo(); + } + + public static com.google.cloud.redis.cluster.v1beta1.EncryptionInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EncryptionInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.EncryptionInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/EncryptionInfoOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/EncryptionInfoOrBuilder.java new file mode 100644 index 000000000000..c46f3a652d78 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/EncryptionInfoOrBuilder.java @@ -0,0 +1,190 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +public interface EncryptionInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.EncryptionInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Output only. Type of encryption.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo.Type encryption_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for encryptionType. + */ + int getEncryptionTypeValue(); + /** + * + * + *
    +   * Output only. Type of encryption.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo.Type encryption_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The encryptionType. + */ + com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.Type getEncryptionType(); + + /** + * + * + *
    +   * Output only. KMS key versions that are being used to protect the data
    +   * at-rest.
    +   * 
    + * + * + * repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the kmsKeyVersions. + */ + java.util.List getKmsKeyVersionsList(); + /** + * + * + *
    +   * Output only. KMS key versions that are being used to protect the data
    +   * at-rest.
    +   * 
    + * + * + * repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of kmsKeyVersions. + */ + int getKmsKeyVersionsCount(); + /** + * + * + *
    +   * Output only. KMS key versions that are being used to protect the data
    +   * at-rest.
    +   * 
    + * + * + * repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The kmsKeyVersions at the given index. + */ + java.lang.String getKmsKeyVersions(int index); + /** + * + * + *
    +   * Output only. KMS key versions that are being used to protect the data
    +   * at-rest.
    +   * 
    + * + * + * repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the kmsKeyVersions at the given index. + */ + com.google.protobuf.ByteString getKmsKeyVersionsBytes(int index); + + /** + * + * + *
    +   * Output only. The state of the primary version of the KMS key perceived by
    +   * the system. This field is not populated in backups.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo.KmsKeyState kms_key_primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for kmsKeyPrimaryState. + */ + int getKmsKeyPrimaryStateValue(); + /** + * + * + *
    +   * Output only. The state of the primary version of the KMS key perceived by
    +   * the system. This field is not populated in backups.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.EncryptionInfo.KmsKeyState kms_key_primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The kmsKeyPrimaryState. + */ + com.google.cloud.redis.cluster.v1beta1.EncryptionInfo.KmsKeyState getKmsKeyPrimaryState(); + + /** + * + * + *
    +   * Output only. The most recent time when the encryption info was updated.
    +   * 
    + * + * + * .google.protobuf.Timestamp last_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastUpdateTime field is set. + */ + boolean hasLastUpdateTime(); + /** + * + * + *
    +   * Output only. The most recent time when the encryption info was updated.
    +   * 
    + * + * + * .google.protobuf.Timestamp last_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastUpdateTime. + */ + com.google.protobuf.Timestamp getLastUpdateTime(); + /** + * + * + *
    +   * Output only. The most recent time when the encryption info was updated.
    +   * 
    + * + * + * .google.protobuf.Timestamp last_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ExportBackupRequest.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ExportBackupRequest.java new file mode 100644 index 000000000000..2b283fb47cac --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ExportBackupRequest.java @@ -0,0 +1,962 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
    + * Request for [ExportBackup].
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.ExportBackupRequest} + */ +public final class ExportBackupRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.ExportBackupRequest) + ExportBackupRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExportBackupRequest.newBuilder() to construct. + private ExportBackupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExportBackupRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExportBackupRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ExportBackupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ExportBackupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest.class, + com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest.Builder.class); + } + + private int destinationCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object destination_; + + public enum DestinationCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GCS_BUCKET(3), + DESTINATION_NOT_SET(0); + private final int value; + + private DestinationCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DestinationCase valueOf(int value) { + return forNumber(value); + } + + public static DestinationCase forNumber(int value) { + switch (value) { + case 3: + return GCS_BUCKET; + case 0: + return DESTINATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); + } + + public static final int GCS_BUCKET_FIELD_NUMBER = 3; + /** + * + * + *
    +   * Google Cloud Storage bucket, like "my-bucket".
    +   * 
    + * + * string gcs_bucket = 3; + * + * @return Whether the gcsBucket field is set. + */ + public boolean hasGcsBucket() { + return destinationCase_ == 3; + } + /** + * + * + *
    +   * Google Cloud Storage bucket, like "my-bucket".
    +   * 
    + * + * string gcs_bucket = 3; + * + * @return The gcsBucket. + */ + public java.lang.String getGcsBucket() { + java.lang.Object ref = ""; + if (destinationCase_ == 3) { + ref = destination_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (destinationCase_ == 3) { + destination_ = s; + } + return s; + } + } + /** + * + * + *
    +   * Google Cloud Storage bucket, like "my-bucket".
    +   * 
    + * + * string gcs_bucket = 3; + * + * @return The bytes for gcsBucket. + */ + public com.google.protobuf.ByteString getGcsBucketBytes() { + java.lang.Object ref = ""; + if (destinationCase_ == 3) { + ref = destination_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (destinationCase_ == 3) { + destination_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Required. Redis backup resource name using the form:
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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. Redis backup resource name using the form:
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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_); + } + if (destinationCase_ == 3) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, destination_); + } + 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 (destinationCase_ == 3) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, destination_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest other = + (com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDestinationCase().equals(other.getDestinationCase())) return false; + switch (destinationCase_) { + case 3: + if (!getGcsBucket().equals(other.getGcsBucket())) 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 (destinationCase_) { + case 3: + hash = (37 * hash) + GCS_BUCKET_FIELD_NUMBER; + hash = (53 * hash) + getGcsBucket().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 [ExportBackup].
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.ExportBackupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.ExportBackupRequest) + com.google.cloud.redis.cluster.v1beta1.ExportBackupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ExportBackupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ExportBackupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest.class, + com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + destinationCase_ = 0; + destination_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ExportBackupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest build() { + com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest buildPartial() { + com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest result = + new com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + } + + private void buildPartialOneofs( + com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest result) { + result.destinationCase_ = destinationCase_; + result.destination_ = this.destination_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest) { + return mergeFrom((com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest other) { + if (other == com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + switch (other.getDestinationCase()) { + case GCS_BUCKET: + { + destinationCase_ = 3; + destination_ = other.destination_; + onChanged(); + break; + } + case DESTINATION_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + destinationCase_ = 3; + destination_ = s; + 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 destinationCase_ = 0; + private java.lang.Object destination_; + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); + } + + public Builder clearDestination() { + destinationCase_ = 0; + destination_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
    +     * Google Cloud Storage bucket, like "my-bucket".
    +     * 
    + * + * string gcs_bucket = 3; + * + * @return Whether the gcsBucket field is set. + */ + @java.lang.Override + public boolean hasGcsBucket() { + return destinationCase_ == 3; + } + /** + * + * + *
    +     * Google Cloud Storage bucket, like "my-bucket".
    +     * 
    + * + * string gcs_bucket = 3; + * + * @return The gcsBucket. + */ + @java.lang.Override + public java.lang.String getGcsBucket() { + java.lang.Object ref = ""; + if (destinationCase_ == 3) { + ref = destination_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (destinationCase_ == 3) { + destination_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Google Cloud Storage bucket, like "my-bucket".
    +     * 
    + * + * string gcs_bucket = 3; + * + * @return The bytes for gcsBucket. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcsBucketBytes() { + java.lang.Object ref = ""; + if (destinationCase_ == 3) { + ref = destination_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (destinationCase_ == 3) { + destination_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Google Cloud Storage bucket, like "my-bucket".
    +     * 
    + * + * string gcs_bucket = 3; + * + * @param value The gcsBucket to set. + * @return This builder for chaining. + */ + public Builder setGcsBucket(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + destinationCase_ = 3; + destination_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * Google Cloud Storage bucket, like "my-bucket".
    +     * 
    + * + * string gcs_bucket = 3; + * + * @return This builder for chaining. + */ + public Builder clearGcsBucket() { + if (destinationCase_ == 3) { + destinationCase_ = 0; + destination_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Google Cloud Storage bucket, like "my-bucket".
    +     * 
    + * + * string gcs_bucket = 3; + * + * @param value The bytes for gcsBucket to set. + * @return This builder for chaining. + */ + public Builder setGcsBucketBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destinationCase_ = 3; + destination_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
    +     * Required. Redis backup resource name using the form:
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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. Redis backup resource name using the form:
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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. Redis backup resource name using the form:
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Redis backup resource name using the form:
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Redis backup resource name using the form:
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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_ |= 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.redis.cluster.v1beta1.ExportBackupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.ExportBackupRequest) + private static final com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest(); + } + + public static com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportBackupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ExportBackupRequestOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ExportBackupRequestOrBuilder.java new file mode 100644 index 000000000000..ee40eb4eceb3 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ExportBackupRequestOrBuilder.java @@ -0,0 +1,96 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +public interface ExportBackupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.ExportBackupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Google Cloud Storage bucket, like "my-bucket".
    +   * 
    + * + * string gcs_bucket = 3; + * + * @return Whether the gcsBucket field is set. + */ + boolean hasGcsBucket(); + /** + * + * + *
    +   * Google Cloud Storage bucket, like "my-bucket".
    +   * 
    + * + * string gcs_bucket = 3; + * + * @return The gcsBucket. + */ + java.lang.String getGcsBucket(); + /** + * + * + *
    +   * Google Cloud Storage bucket, like "my-bucket".
    +   * 
    + * + * string gcs_bucket = 3; + * + * @return The bytes for gcsBucket. + */ + com.google.protobuf.ByteString getGcsBucketBytes(); + + /** + * + * + *
    +   * Required. Redis backup resource name using the form:
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Required. Redis backup resource name using the form:
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest.DestinationCase getDestinationCase(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/GetBackupCollectionRequest.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/GetBackupCollectionRequest.java new file mode 100644 index 000000000000..1369d294e243 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/GetBackupCollectionRequest.java @@ -0,0 +1,663 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
    + * Request for [GetBackupCollection].
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest} + */ +public final class GetBackupCollectionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest) + GetBackupCollectionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetBackupCollectionRequest.newBuilder() to construct. + private GetBackupCollectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetBackupCollectionRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetBackupCollectionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_GetBackupCollectionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_GetBackupCollectionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest.class, + com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Required. Redis backupCollection resource name using the form:
    +   *     `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
    +   * where `location_id` refers to a GCP region.
    +   * 
    + * + * + * 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. Redis backupCollection resource name using the form:
    +   *     `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
    +   * where `location_id` refers to a GCP region.
    +   * 
    + * + * + * 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.redis.cluster.v1beta1.GetBackupCollectionRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest other = + (com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest) 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.redis.cluster.v1beta1.GetBackupCollectionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 [GetBackupCollection].
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest) + com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_GetBackupCollectionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_GetBackupCollectionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest.class, + com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest.Builder.class); + } + + // Construct using + // com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest.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.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_GetBackupCollectionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest build() { + com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest buildPartial() { + com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest result = + new com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest 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.redis.cluster.v1beta1.GetBackupCollectionRequest) { + return mergeFrom((com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest other) { + if (other + == com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest.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. Redis backupCollection resource name using the form:
    +     *     `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
    +     * where `location_id` refers to a GCP region.
    +     * 
    + * + * + * 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. Redis backupCollection resource name using the form:
    +     *     `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
    +     * where `location_id` refers to a GCP region.
    +     * 
    + * + * + * 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. Redis backupCollection resource name using the form:
    +     *     `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
    +     * where `location_id` refers to a GCP region.
    +     * 
    + * + * + * 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. Redis backupCollection resource name using the form:
    +     *     `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
    +     * where `location_id` refers to a GCP region.
    +     * 
    + * + * + * 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. Redis backupCollection resource name using the form:
    +     *     `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
    +     * where `location_id` refers to a GCP region.
    +     * 
    + * + * + * 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.redis.cluster.v1beta1.GetBackupCollectionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest) + private static final com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest(); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBackupCollectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/GetBackupCollectionRequestOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/GetBackupCollectionRequestOrBuilder.java new file mode 100644 index 000000000000..bcd3dc3b11a7 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/GetBackupCollectionRequestOrBuilder.java @@ -0,0 +1,59 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +public interface GetBackupCollectionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Redis backupCollection resource name using the form:
    +   *     `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
    +   * where `location_id` refers to a GCP region.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Required. Redis backupCollection resource name using the form:
    +   *     `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
    +   * where `location_id` refers to a GCP region.
    +   * 
    + * + * + * 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-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/GetBackupRequest.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/GetBackupRequest.java new file mode 100644 index 000000000000..bb871939e14f --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/GetBackupRequest.java @@ -0,0 +1,647 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
    + * Request for [GetBackup].
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.GetBackupRequest} + */ +public final class GetBackupRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.GetBackupRequest) + GetBackupRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetBackupRequest.newBuilder() to construct. + private GetBackupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetBackupRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetBackupRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_GetBackupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_GetBackupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.GetBackupRequest.class, + com.google.cloud.redis.cluster.v1beta1.GetBackupRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Required. Redis backup resource name using the form:
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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. Redis backup resource name using the form:
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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.redis.cluster.v1beta1.GetBackupRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.GetBackupRequest other = + (com.google.cloud.redis.cluster.v1beta1.GetBackupRequest) 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.redis.cluster.v1beta1.GetBackupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetBackupRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetBackupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetBackupRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetBackupRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetBackupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetBackupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetBackupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetBackupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetBackupRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetBackupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetBackupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1beta1.GetBackupRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 [GetBackup].
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.GetBackupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.GetBackupRequest) + com.google.cloud.redis.cluster.v1beta1.GetBackupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_GetBackupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_GetBackupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.GetBackupRequest.class, + com.google.cloud.redis.cluster.v1beta1.GetBackupRequest.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1beta1.GetBackupRequest.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.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_GetBackupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.GetBackupRequest getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.GetBackupRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.GetBackupRequest build() { + com.google.cloud.redis.cluster.v1beta1.GetBackupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.GetBackupRequest buildPartial() { + com.google.cloud.redis.cluster.v1beta1.GetBackupRequest result = + new com.google.cloud.redis.cluster.v1beta1.GetBackupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1beta1.GetBackupRequest 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.redis.cluster.v1beta1.GetBackupRequest) { + return mergeFrom((com.google.cloud.redis.cluster.v1beta1.GetBackupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1beta1.GetBackupRequest other) { + if (other == com.google.cloud.redis.cluster.v1beta1.GetBackupRequest.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. Redis backup resource name using the form:
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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. Redis backup resource name using the form:
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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. Redis backup resource name using the form:
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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. Redis backup resource name using the form:
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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. Redis backup resource name using the form:
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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.redis.cluster.v1beta1.GetBackupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.GetBackupRequest) + private static final com.google.cloud.redis.cluster.v1beta1.GetBackupRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1beta1.GetBackupRequest(); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetBackupRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBackupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.GetBackupRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/GetBackupRequestOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/GetBackupRequestOrBuilder.java new file mode 100644 index 000000000000..813d026c90f9 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/GetBackupRequestOrBuilder.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +public interface GetBackupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.GetBackupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Redis backup resource name using the form:
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Required. Redis backup resource name using the form:
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_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-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListBackupCollectionsRequest.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListBackupCollectionsRequest.java new file mode 100644 index 000000000000..ed15b01a02f3 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListBackupCollectionsRequest.java @@ -0,0 +1,978 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
    + * Request for [ListBackupCollections]
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest} + */ +public final class ListBackupCollectionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest) + ListBackupCollectionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListBackupCollectionsRequest.newBuilder() to construct. + private ListBackupCollectionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListBackupCollectionsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListBackupCollectionsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ListBackupCollectionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ListBackupCollectionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest.class, + com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
    +   * Required. The resource name of the backupCollection location using the
    +   * form:
    +   *     `projects/{project_id}/locations/{location_id}`
    +   * where `location_id` refers to a GCP region.
    +   * 
    + * + * + * 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 backupCollection location using the
    +   * form:
    +   *     `projects/{project_id}/locations/{location_id}`
    +   * where `location_id` refers to a GCP region.
    +   * 
    + * + * + * 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 maximum number of items to return.
    +   *
    +   * If not specified, a default value of 1000 will be used by the service.
    +   * Regardless of the page_size value, the response may include a partial list
    +   * and a caller should only rely on response's
    +   * [`next_page_token`][google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse.next_page_token]
    +   * to determine if there are more clusters left to be queried.
    +   * 
    + * + * 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 `next_page_token` value returned from a previous
    +   * [ListBackupCollections] request, if any.
    +   * 
    + * + * 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 `next_page_token` value returned from a previous
    +   * [ListBackupCollections] request, if any.
    +   * 
    + * + * 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.redis.cluster.v1beta1.ListBackupCollectionsRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest other = + (com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest) 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.redis.cluster.v1beta1.ListBackupCollectionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 [ListBackupCollections]
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest) + com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ListBackupCollectionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ListBackupCollectionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest.class, + com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest.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.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ListBackupCollectionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest build() { + com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest buildPartial() { + com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest result = + new com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest 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.redis.cluster.v1beta1.ListBackupCollectionsRequest) { + return mergeFrom( + (com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest other) { + if (other + == com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest + .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 backupCollection location using the
    +     * form:
    +     *     `projects/{project_id}/locations/{location_id}`
    +     * where `location_id` refers to a GCP region.
    +     * 
    + * + * + * 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 backupCollection location using the
    +     * form:
    +     *     `projects/{project_id}/locations/{location_id}`
    +     * where `location_id` refers to a GCP region.
    +     * 
    + * + * + * 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 backupCollection location using the
    +     * form:
    +     *     `projects/{project_id}/locations/{location_id}`
    +     * where `location_id` refers to a GCP region.
    +     * 
    + * + * + * 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 backupCollection location using the
    +     * form:
    +     *     `projects/{project_id}/locations/{location_id}`
    +     * where `location_id` refers to a GCP region.
    +     * 
    + * + * + * 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 backupCollection location using the
    +     * form:
    +     *     `projects/{project_id}/locations/{location_id}`
    +     * where `location_id` refers to a GCP region.
    +     * 
    + * + * + * 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 maximum number of items to return.
    +     *
    +     * If not specified, a default value of 1000 will be used by the service.
    +     * Regardless of the page_size value, the response may include a partial list
    +     * and a caller should only rely on response's
    +     * [`next_page_token`][google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse.next_page_token]
    +     * to determine if there are more clusters left to be queried.
    +     * 
    + * + * 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 items to return.
    +     *
    +     * If not specified, a default value of 1000 will be used by the service.
    +     * Regardless of the page_size value, the response may include a partial list
    +     * and a caller should only rely on response's
    +     * [`next_page_token`][google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse.next_page_token]
    +     * to determine if there are more clusters left to be queried.
    +     * 
    + * + * 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 items to return.
    +     *
    +     * If not specified, a default value of 1000 will be used by the service.
    +     * Regardless of the page_size value, the response may include a partial list
    +     * and a caller should only rely on response's
    +     * [`next_page_token`][google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse.next_page_token]
    +     * to determine if there are more clusters left to be queried.
    +     * 
    + * + * 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 `next_page_token` value returned from a previous
    +     * [ListBackupCollections] request, if any.
    +     * 
    + * + * 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 `next_page_token` value returned from a previous
    +     * [ListBackupCollections] request, if any.
    +     * 
    + * + * 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 `next_page_token` value returned from a previous
    +     * [ListBackupCollections] request, if any.
    +     * 
    + * + * 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 `next_page_token` value returned from a previous
    +     * [ListBackupCollections] request, if any.
    +     * 
    + * + * 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 `next_page_token` value returned from a previous
    +     * [ListBackupCollections] request, if any.
    +     * 
    + * + * 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.redis.cluster.v1beta1.ListBackupCollectionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest) + private static final com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest(); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBackupCollectionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListBackupCollectionsRequestOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListBackupCollectionsRequestOrBuilder.java new file mode 100644 index 000000000000..6725ab1334e8 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListBackupCollectionsRequestOrBuilder.java @@ -0,0 +1,107 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +public interface ListBackupCollectionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the backupCollection location using the
    +   * form:
    +   *     `projects/{project_id}/locations/{location_id}`
    +   * where `location_id` refers to a GCP region.
    +   * 
    + * + * + * 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 backupCollection location using the
    +   * form:
    +   *     `projects/{project_id}/locations/{location_id}`
    +   * where `location_id` refers to a GCP region.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Optional. The maximum number of items to return.
    +   *
    +   * If not specified, a default value of 1000 will be used by the service.
    +   * Regardless of the page_size value, the response may include a partial list
    +   * and a caller should only rely on response's
    +   * [`next_page_token`][google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse.next_page_token]
    +   * to determine if there are more clusters left to be queried.
    +   * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
    +   * Optional. The `next_page_token` value returned from a previous
    +   * [ListBackupCollections] request, if any.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
    +   * Optional. The `next_page_token` value returned from a previous
    +   * [ListBackupCollections] request, if any.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListBackupCollectionsResponse.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListBackupCollectionsResponse.java new file mode 100644 index 000000000000..552c23a15414 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListBackupCollectionsResponse.java @@ -0,0 +1,1668 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
    + * Response for [ListBackupCollections].
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse} + */ +public final class ListBackupCollectionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse) + ListBackupCollectionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListBackupCollectionsResponse.newBuilder() to construct. + private ListBackupCollectionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListBackupCollectionsResponse() { + backupCollections_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListBackupCollectionsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ListBackupCollectionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ListBackupCollectionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse.class, + com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse.Builder.class); + } + + public static final int BACKUP_COLLECTIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + backupCollections_; + /** + * + * + *
    +   * A list of backupCollections in the project.
    +   *
    +   * If the `location_id` in the parent field of the request is "-", all regions
    +   * available to the project are queried, and the results aggregated.
    +   * If in such an aggregated query a location is unavailable, a placeholder
    +   * backupCollection entry is included in the response with the `name` field
    +   * set to a value of the form
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +   * `status` field set to ERROR and `status_message` field set to "location not
    +   * available for ListBackupCollections".
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1; + * + */ + @java.lang.Override + public java.util.List + getBackupCollectionsList() { + return backupCollections_; + } + /** + * + * + *
    +   * A list of backupCollections in the project.
    +   *
    +   * If the `location_id` in the parent field of the request is "-", all regions
    +   * available to the project are queried, and the results aggregated.
    +   * If in such an aggregated query a location is unavailable, a placeholder
    +   * backupCollection entry is included in the response with the `name` field
    +   * set to a value of the form
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +   * `status` field set to ERROR and `status_message` field set to "location not
    +   * available for ListBackupCollections".
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1; + * + */ + @java.lang.Override + public java.util.List + getBackupCollectionsOrBuilderList() { + return backupCollections_; + } + /** + * + * + *
    +   * A list of backupCollections in the project.
    +   *
    +   * If the `location_id` in the parent field of the request is "-", all regions
    +   * available to the project are queried, and the results aggregated.
    +   * If in such an aggregated query a location is unavailable, a placeholder
    +   * backupCollection entry is included in the response with the `name` field
    +   * set to a value of the form
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +   * `status` field set to ERROR and `status_message` field set to "location not
    +   * available for ListBackupCollections".
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1; + * + */ + @java.lang.Override + public int getBackupCollectionsCount() { + return backupCollections_.size(); + } + /** + * + * + *
    +   * A list of backupCollections in the project.
    +   *
    +   * If the `location_id` in the parent field of the request is "-", all regions
    +   * available to the project are queried, and the results aggregated.
    +   * If in such an aggregated query a location is unavailable, a placeholder
    +   * backupCollection entry is included in the response with the `name` field
    +   * set to a value of the form
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +   * `status` field set to ERROR and `status_message` field set to "location not
    +   * available for ListBackupCollections".
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.BackupCollection getBackupCollections(int index) { + return backupCollections_.get(index); + } + /** + * + * + *
    +   * A list of backupCollections in the project.
    +   *
    +   * If the `location_id` in the parent field of the request is "-", all regions
    +   * available to the project are queried, and the results aggregated.
    +   * If in such an aggregated query a location is unavailable, a placeholder
    +   * backupCollection entry is included in the response with the `name` field
    +   * set to a value of the form
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +   * `status` field set to ERROR and `status_message` field set to "location not
    +   * available for ListBackupCollections".
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.BackupCollectionOrBuilder + getBackupCollectionsOrBuilder(int index) { + return backupCollections_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
    +   * Token to retrieve the next page of results, or empty if there are no more
    +   * results in the list.
    +   * 
    + * + * 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; + } + } + /** + * + * + *
    +   * Token to retrieve the next page of results, or empty if there are no more
    +   * results in the list.
    +   * 
    + * + * 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; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.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 < backupCollections_.size(); i++) { + output.writeMessage(1, backupCollections_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(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 < backupCollections_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, backupCollections_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().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.redis.cluster.v1beta1.ListBackupCollectionsResponse)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse other = + (com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse) obj; + + if (!getBackupCollectionsList().equals(other.getBackupCollectionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.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 (getBackupCollectionsCount() > 0) { + hash = (37 * hash) + BACKUP_COLLECTIONS_FIELD_NUMBER; + hash = (53 * hash) + getBackupCollectionsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Response for [ListBackupCollections].
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse) + com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ListBackupCollectionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ListBackupCollectionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse.class, + com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (backupCollectionsBuilder_ == null) { + backupCollections_ = java.util.Collections.emptyList(); + } else { + backupCollections_ = null; + backupCollectionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ListBackupCollectionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse build() { + com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse buildPartial() { + com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse result = + new com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse result) { + if (backupCollectionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + backupCollections_ = java.util.Collections.unmodifiableList(backupCollections_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.backupCollections_ = backupCollections_; + } else { + result.backupCollections_ = backupCollectionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse) { + return mergeFrom( + (com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse other) { + if (other + == com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse + .getDefaultInstance()) return this; + if (backupCollectionsBuilder_ == null) { + if (!other.backupCollections_.isEmpty()) { + if (backupCollections_.isEmpty()) { + backupCollections_ = other.backupCollections_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBackupCollectionsIsMutable(); + backupCollections_.addAll(other.backupCollections_); + } + onChanged(); + } + } else { + if (!other.backupCollections_.isEmpty()) { + if (backupCollectionsBuilder_.isEmpty()) { + backupCollectionsBuilder_.dispose(); + backupCollectionsBuilder_ = null; + backupCollections_ = other.backupCollections_; + bitField0_ = (bitField0_ & ~0x00000001); + backupCollectionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBackupCollectionsFieldBuilder() + : null; + } else { + backupCollectionsBuilder_.addAllMessages(other.backupCollections_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + 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.redis.cluster.v1beta1.BackupCollection m = + input.readMessage( + com.google.cloud.redis.cluster.v1beta1.BackupCollection.parser(), + extensionRegistry); + if (backupCollectionsBuilder_ == null) { + ensureBackupCollectionsIsMutable(); + backupCollections_.add(m); + } else { + backupCollectionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + 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 + backupCollections_ = java.util.Collections.emptyList(); + + private void ensureBackupCollectionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + backupCollections_ = + new java.util.ArrayList( + backupCollections_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.BackupCollection, + com.google.cloud.redis.cluster.v1beta1.BackupCollection.Builder, + com.google.cloud.redis.cluster.v1beta1.BackupCollectionOrBuilder> + backupCollectionsBuilder_; + + /** + * + * + *
    +     * A list of backupCollections in the project.
    +     *
    +     * If the `location_id` in the parent field of the request is "-", all regions
    +     * available to the project are queried, and the results aggregated.
    +     * If in such an aggregated query a location is unavailable, a placeholder
    +     * backupCollection entry is included in the response with the `name` field
    +     * set to a value of the form
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +     * `status` field set to ERROR and `status_message` field set to "location not
    +     * available for ListBackupCollections".
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1; + * + */ + public java.util.List + getBackupCollectionsList() { + if (backupCollectionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(backupCollections_); + } else { + return backupCollectionsBuilder_.getMessageList(); + } + } + /** + * + * + *
    +     * A list of backupCollections in the project.
    +     *
    +     * If the `location_id` in the parent field of the request is "-", all regions
    +     * available to the project are queried, and the results aggregated.
    +     * If in such an aggregated query a location is unavailable, a placeholder
    +     * backupCollection entry is included in the response with the `name` field
    +     * set to a value of the form
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +     * `status` field set to ERROR and `status_message` field set to "location not
    +     * available for ListBackupCollections".
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1; + * + */ + public int getBackupCollectionsCount() { + if (backupCollectionsBuilder_ == null) { + return backupCollections_.size(); + } else { + return backupCollectionsBuilder_.getCount(); + } + } + /** + * + * + *
    +     * A list of backupCollections in the project.
    +     *
    +     * If the `location_id` in the parent field of the request is "-", all regions
    +     * available to the project are queried, and the results aggregated.
    +     * If in such an aggregated query a location is unavailable, a placeholder
    +     * backupCollection entry is included in the response with the `name` field
    +     * set to a value of the form
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +     * `status` field set to ERROR and `status_message` field set to "location not
    +     * available for ListBackupCollections".
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1; + * + */ + public com.google.cloud.redis.cluster.v1beta1.BackupCollection getBackupCollections(int index) { + if (backupCollectionsBuilder_ == null) { + return backupCollections_.get(index); + } else { + return backupCollectionsBuilder_.getMessage(index); + } + } + /** + * + * + *
    +     * A list of backupCollections in the project.
    +     *
    +     * If the `location_id` in the parent field of the request is "-", all regions
    +     * available to the project are queried, and the results aggregated.
    +     * If in such an aggregated query a location is unavailable, a placeholder
    +     * backupCollection entry is included in the response with the `name` field
    +     * set to a value of the form
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +     * `status` field set to ERROR and `status_message` field set to "location not
    +     * available for ListBackupCollections".
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1; + * + */ + public Builder setBackupCollections( + int index, com.google.cloud.redis.cluster.v1beta1.BackupCollection value) { + if (backupCollectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackupCollectionsIsMutable(); + backupCollections_.set(index, value); + onChanged(); + } else { + backupCollectionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * A list of backupCollections in the project.
    +     *
    +     * If the `location_id` in the parent field of the request is "-", all regions
    +     * available to the project are queried, and the results aggregated.
    +     * If in such an aggregated query a location is unavailable, a placeholder
    +     * backupCollection entry is included in the response with the `name` field
    +     * set to a value of the form
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +     * `status` field set to ERROR and `status_message` field set to "location not
    +     * available for ListBackupCollections".
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1; + * + */ + public Builder setBackupCollections( + int index, + com.google.cloud.redis.cluster.v1beta1.BackupCollection.Builder builderForValue) { + if (backupCollectionsBuilder_ == null) { + ensureBackupCollectionsIsMutable(); + backupCollections_.set(index, builderForValue.build()); + onChanged(); + } else { + backupCollectionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * A list of backupCollections in the project.
    +     *
    +     * If the `location_id` in the parent field of the request is "-", all regions
    +     * available to the project are queried, and the results aggregated.
    +     * If in such an aggregated query a location is unavailable, a placeholder
    +     * backupCollection entry is included in the response with the `name` field
    +     * set to a value of the form
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +     * `status` field set to ERROR and `status_message` field set to "location not
    +     * available for ListBackupCollections".
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1; + * + */ + public Builder addBackupCollections( + com.google.cloud.redis.cluster.v1beta1.BackupCollection value) { + if (backupCollectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackupCollectionsIsMutable(); + backupCollections_.add(value); + onChanged(); + } else { + backupCollectionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
    +     * A list of backupCollections in the project.
    +     *
    +     * If the `location_id` in the parent field of the request is "-", all regions
    +     * available to the project are queried, and the results aggregated.
    +     * If in such an aggregated query a location is unavailable, a placeholder
    +     * backupCollection entry is included in the response with the `name` field
    +     * set to a value of the form
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +     * `status` field set to ERROR and `status_message` field set to "location not
    +     * available for ListBackupCollections".
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1; + * + */ + public Builder addBackupCollections( + int index, com.google.cloud.redis.cluster.v1beta1.BackupCollection value) { + if (backupCollectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackupCollectionsIsMutable(); + backupCollections_.add(index, value); + onChanged(); + } else { + backupCollectionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * A list of backupCollections in the project.
    +     *
    +     * If the `location_id` in the parent field of the request is "-", all regions
    +     * available to the project are queried, and the results aggregated.
    +     * If in such an aggregated query a location is unavailable, a placeholder
    +     * backupCollection entry is included in the response with the `name` field
    +     * set to a value of the form
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +     * `status` field set to ERROR and `status_message` field set to "location not
    +     * available for ListBackupCollections".
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1; + * + */ + public Builder addBackupCollections( + com.google.cloud.redis.cluster.v1beta1.BackupCollection.Builder builderForValue) { + if (backupCollectionsBuilder_ == null) { + ensureBackupCollectionsIsMutable(); + backupCollections_.add(builderForValue.build()); + onChanged(); + } else { + backupCollectionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * A list of backupCollections in the project.
    +     *
    +     * If the `location_id` in the parent field of the request is "-", all regions
    +     * available to the project are queried, and the results aggregated.
    +     * If in such an aggregated query a location is unavailable, a placeholder
    +     * backupCollection entry is included in the response with the `name` field
    +     * set to a value of the form
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +     * `status` field set to ERROR and `status_message` field set to "location not
    +     * available for ListBackupCollections".
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1; + * + */ + public Builder addBackupCollections( + int index, + com.google.cloud.redis.cluster.v1beta1.BackupCollection.Builder builderForValue) { + if (backupCollectionsBuilder_ == null) { + ensureBackupCollectionsIsMutable(); + backupCollections_.add(index, builderForValue.build()); + onChanged(); + } else { + backupCollectionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * A list of backupCollections in the project.
    +     *
    +     * If the `location_id` in the parent field of the request is "-", all regions
    +     * available to the project are queried, and the results aggregated.
    +     * If in such an aggregated query a location is unavailable, a placeholder
    +     * backupCollection entry is included in the response with the `name` field
    +     * set to a value of the form
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +     * `status` field set to ERROR and `status_message` field set to "location not
    +     * available for ListBackupCollections".
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1; + * + */ + public Builder addAllBackupCollections( + java.lang.Iterable + values) { + if (backupCollectionsBuilder_ == null) { + ensureBackupCollectionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, backupCollections_); + onChanged(); + } else { + backupCollectionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
    +     * A list of backupCollections in the project.
    +     *
    +     * If the `location_id` in the parent field of the request is "-", all regions
    +     * available to the project are queried, and the results aggregated.
    +     * If in such an aggregated query a location is unavailable, a placeholder
    +     * backupCollection entry is included in the response with the `name` field
    +     * set to a value of the form
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +     * `status` field set to ERROR and `status_message` field set to "location not
    +     * available for ListBackupCollections".
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1; + * + */ + public Builder clearBackupCollections() { + if (backupCollectionsBuilder_ == null) { + backupCollections_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + backupCollectionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * A list of backupCollections in the project.
    +     *
    +     * If the `location_id` in the parent field of the request is "-", all regions
    +     * available to the project are queried, and the results aggregated.
    +     * If in such an aggregated query a location is unavailable, a placeholder
    +     * backupCollection entry is included in the response with the `name` field
    +     * set to a value of the form
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +     * `status` field set to ERROR and `status_message` field set to "location not
    +     * available for ListBackupCollections".
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1; + * + */ + public Builder removeBackupCollections(int index) { + if (backupCollectionsBuilder_ == null) { + ensureBackupCollectionsIsMutable(); + backupCollections_.remove(index); + onChanged(); + } else { + backupCollectionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
    +     * A list of backupCollections in the project.
    +     *
    +     * If the `location_id` in the parent field of the request is "-", all regions
    +     * available to the project are queried, and the results aggregated.
    +     * If in such an aggregated query a location is unavailable, a placeholder
    +     * backupCollection entry is included in the response with the `name` field
    +     * set to a value of the form
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +     * `status` field set to ERROR and `status_message` field set to "location not
    +     * available for ListBackupCollections".
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1; + * + */ + public com.google.cloud.redis.cluster.v1beta1.BackupCollection.Builder + getBackupCollectionsBuilder(int index) { + return getBackupCollectionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
    +     * A list of backupCollections in the project.
    +     *
    +     * If the `location_id` in the parent field of the request is "-", all regions
    +     * available to the project are queried, and the results aggregated.
    +     * If in such an aggregated query a location is unavailable, a placeholder
    +     * backupCollection entry is included in the response with the `name` field
    +     * set to a value of the form
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +     * `status` field set to ERROR and `status_message` field set to "location not
    +     * available for ListBackupCollections".
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1; + * + */ + public com.google.cloud.redis.cluster.v1beta1.BackupCollectionOrBuilder + getBackupCollectionsOrBuilder(int index) { + if (backupCollectionsBuilder_ == null) { + return backupCollections_.get(index); + } else { + return backupCollectionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
    +     * A list of backupCollections in the project.
    +     *
    +     * If the `location_id` in the parent field of the request is "-", all regions
    +     * available to the project are queried, and the results aggregated.
    +     * If in such an aggregated query a location is unavailable, a placeholder
    +     * backupCollection entry is included in the response with the `name` field
    +     * set to a value of the form
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +     * `status` field set to ERROR and `status_message` field set to "location not
    +     * available for ListBackupCollections".
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.redis.cluster.v1beta1.BackupCollectionOrBuilder> + getBackupCollectionsOrBuilderList() { + if (backupCollectionsBuilder_ != null) { + return backupCollectionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(backupCollections_); + } + } + /** + * + * + *
    +     * A list of backupCollections in the project.
    +     *
    +     * If the `location_id` in the parent field of the request is "-", all regions
    +     * available to the project are queried, and the results aggregated.
    +     * If in such an aggregated query a location is unavailable, a placeholder
    +     * backupCollection entry is included in the response with the `name` field
    +     * set to a value of the form
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +     * `status` field set to ERROR and `status_message` field set to "location not
    +     * available for ListBackupCollections".
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1; + * + */ + public com.google.cloud.redis.cluster.v1beta1.BackupCollection.Builder + addBackupCollectionsBuilder() { + return getBackupCollectionsFieldBuilder() + .addBuilder(com.google.cloud.redis.cluster.v1beta1.BackupCollection.getDefaultInstance()); + } + /** + * + * + *
    +     * A list of backupCollections in the project.
    +     *
    +     * If the `location_id` in the parent field of the request is "-", all regions
    +     * available to the project are queried, and the results aggregated.
    +     * If in such an aggregated query a location is unavailable, a placeholder
    +     * backupCollection entry is included in the response with the `name` field
    +     * set to a value of the form
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +     * `status` field set to ERROR and `status_message` field set to "location not
    +     * available for ListBackupCollections".
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1; + * + */ + public com.google.cloud.redis.cluster.v1beta1.BackupCollection.Builder + addBackupCollectionsBuilder(int index) { + return getBackupCollectionsFieldBuilder() + .addBuilder( + index, com.google.cloud.redis.cluster.v1beta1.BackupCollection.getDefaultInstance()); + } + /** + * + * + *
    +     * A list of backupCollections in the project.
    +     *
    +     * If the `location_id` in the parent field of the request is "-", all regions
    +     * available to the project are queried, and the results aggregated.
    +     * If in such an aggregated query a location is unavailable, a placeholder
    +     * backupCollection entry is included in the response with the `name` field
    +     * set to a value of the form
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +     * `status` field set to ERROR and `status_message` field set to "location not
    +     * available for ListBackupCollections".
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1; + * + */ + public java.util.List + getBackupCollectionsBuilderList() { + return getBackupCollectionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.BackupCollection, + com.google.cloud.redis.cluster.v1beta1.BackupCollection.Builder, + com.google.cloud.redis.cluster.v1beta1.BackupCollectionOrBuilder> + getBackupCollectionsFieldBuilder() { + if (backupCollectionsBuilder_ == null) { + backupCollectionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.BackupCollection, + com.google.cloud.redis.cluster.v1beta1.BackupCollection.Builder, + com.google.cloud.redis.cluster.v1beta1.BackupCollectionOrBuilder>( + backupCollections_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + backupCollections_ = null; + } + return backupCollectionsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
    +     * Token to retrieve the next page of results, or empty if there are no more
    +     * results in the list.
    +     * 
    + * + * 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; + } + } + /** + * + * + *
    +     * Token to retrieve the next page of results, or empty if there are no more
    +     * results in the list.
    +     * 
    + * + * 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; + } + } + /** + * + * + *
    +     * Token to retrieve the next page of results, or empty if there are no more
    +     * results in the list.
    +     * 
    + * + * 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; + } + /** + * + * + *
    +     * Token to retrieve the next page of results, or empty if there are no more
    +     * results in the list.
    +     * 
    + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * Token to retrieve the next page of results, or empty if there are no more
    +     * results in the list.
    +     * 
    + * + * 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; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(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.redis.cluster.v1beta1.ListBackupCollectionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse) + private static final com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse(); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBackupCollectionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListBackupCollectionsResponseOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListBackupCollectionsResponseOrBuilder.java new file mode 100644 index 000000000000..2397878333fe --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListBackupCollectionsResponseOrBuilder.java @@ -0,0 +1,208 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +public interface ListBackupCollectionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * A list of backupCollections in the project.
    +   *
    +   * If the `location_id` in the parent field of the request is "-", all regions
    +   * available to the project are queried, and the results aggregated.
    +   * If in such an aggregated query a location is unavailable, a placeholder
    +   * backupCollection entry is included in the response with the `name` field
    +   * set to a value of the form
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +   * `status` field set to ERROR and `status_message` field set to "location not
    +   * available for ListBackupCollections".
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1; + * + */ + java.util.List + getBackupCollectionsList(); + /** + * + * + *
    +   * A list of backupCollections in the project.
    +   *
    +   * If the `location_id` in the parent field of the request is "-", all regions
    +   * available to the project are queried, and the results aggregated.
    +   * If in such an aggregated query a location is unavailable, a placeholder
    +   * backupCollection entry is included in the response with the `name` field
    +   * set to a value of the form
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +   * `status` field set to ERROR and `status_message` field set to "location not
    +   * available for ListBackupCollections".
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1; + * + */ + com.google.cloud.redis.cluster.v1beta1.BackupCollection getBackupCollections(int index); + /** + * + * + *
    +   * A list of backupCollections in the project.
    +   *
    +   * If the `location_id` in the parent field of the request is "-", all regions
    +   * available to the project are queried, and the results aggregated.
    +   * If in such an aggregated query a location is unavailable, a placeholder
    +   * backupCollection entry is included in the response with the `name` field
    +   * set to a value of the form
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +   * `status` field set to ERROR and `status_message` field set to "location not
    +   * available for ListBackupCollections".
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1; + * + */ + int getBackupCollectionsCount(); + /** + * + * + *
    +   * A list of backupCollections in the project.
    +   *
    +   * If the `location_id` in the parent field of the request is "-", all regions
    +   * available to the project are queried, and the results aggregated.
    +   * If in such an aggregated query a location is unavailable, a placeholder
    +   * backupCollection entry is included in the response with the `name` field
    +   * set to a value of the form
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +   * `status` field set to ERROR and `status_message` field set to "location not
    +   * available for ListBackupCollections".
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1; + * + */ + java.util.List + getBackupCollectionsOrBuilderList(); + /** + * + * + *
    +   * A list of backupCollections in the project.
    +   *
    +   * If the `location_id` in the parent field of the request is "-", all regions
    +   * available to the project are queried, and the results aggregated.
    +   * If in such an aggregated query a location is unavailable, a placeholder
    +   * backupCollection entry is included in the response with the `name` field
    +   * set to a value of the form
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/`- and the
    +   * `status` field set to ERROR and `status_message` field set to "location not
    +   * available for ListBackupCollections".
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.BackupCollection backup_collections = 1; + * + */ + com.google.cloud.redis.cluster.v1beta1.BackupCollectionOrBuilder getBackupCollectionsOrBuilder( + int index); + + /** + * + * + *
    +   * Token to retrieve the next page of results, or empty if there are no more
    +   * results in the list.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
    +   * Token to retrieve the next page of results, or empty if there are no more
    +   * results in the list.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListBackupsRequest.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListBackupsRequest.java new file mode 100644 index 000000000000..0547e8143681 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListBackupsRequest.java @@ -0,0 +1,953 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
    + * Request for [ListBackups].
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.ListBackupsRequest} + */ +public final class ListBackupsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.ListBackupsRequest) + ListBackupsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListBackupsRequest.newBuilder() to construct. + private ListBackupsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListBackupsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListBackupsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ListBackupsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ListBackupsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest.class, + com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
    +   * Required. The resource name of the backupCollection using the form:
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. The resource name of the backupCollection using the form:
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
    +   * Optional. The maximum number of items to return.
    +   *
    +   * If not specified, a default value of 1000 will be used by the service.
    +   * Regardless of the page_size value, the response may include a partial list
    +   * and a caller should only rely on response's
    +   * [`next_page_token`][google.cloud.redis.cluster.v1beta1.ListBackupsResponse.next_page_token]
    +   * to determine if there are more clusters left to be queried.
    +   * 
    + * + * 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 `next_page_token` value returned from a previous
    +   * [ListBackupCollections] request, if any.
    +   * 
    + * + * 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 `next_page_token` value returned from a previous
    +   * [ListBackupCollections] request, if any.
    +   * 
    + * + * 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.redis.cluster.v1beta1.ListBackupsRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest other = + (com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest) 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.redis.cluster.v1beta1.ListBackupsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 [ListBackups].
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.ListBackupsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.ListBackupsRequest) + com.google.cloud.redis.cluster.v1beta1.ListBackupsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ListBackupsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ListBackupsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest.class, + com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest.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.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ListBackupsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest build() { + com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest buildPartial() { + com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest result = + new com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest 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.redis.cluster.v1beta1.ListBackupsRequest) { + return mergeFrom((com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest other) { + if (other == com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest.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 backupCollection using the form:
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. The resource name of the backupCollection using the form:
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. The resource name of the backupCollection using the form:
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The resource name of the backupCollection using the form:
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The resource name of the backupCollection using the form:
    +     * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
    +     * Optional. The maximum number of items to return.
    +     *
    +     * If not specified, a default value of 1000 will be used by the service.
    +     * Regardless of the page_size value, the response may include a partial list
    +     * and a caller should only rely on response's
    +     * [`next_page_token`][google.cloud.redis.cluster.v1beta1.ListBackupsResponse.next_page_token]
    +     * to determine if there are more clusters left to be queried.
    +     * 
    + * + * 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 items to return.
    +     *
    +     * If not specified, a default value of 1000 will be used by the service.
    +     * Regardless of the page_size value, the response may include a partial list
    +     * and a caller should only rely on response's
    +     * [`next_page_token`][google.cloud.redis.cluster.v1beta1.ListBackupsResponse.next_page_token]
    +     * to determine if there are more clusters left to be queried.
    +     * 
    + * + * 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 items to return.
    +     *
    +     * If not specified, a default value of 1000 will be used by the service.
    +     * Regardless of the page_size value, the response may include a partial list
    +     * and a caller should only rely on response's
    +     * [`next_page_token`][google.cloud.redis.cluster.v1beta1.ListBackupsResponse.next_page_token]
    +     * to determine if there are more clusters left to be queried.
    +     * 
    + * + * 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 `next_page_token` value returned from a previous
    +     * [ListBackupCollections] request, if any.
    +     * 
    + * + * 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 `next_page_token` value returned from a previous
    +     * [ListBackupCollections] request, if any.
    +     * 
    + * + * 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 `next_page_token` value returned from a previous
    +     * [ListBackupCollections] request, if any.
    +     * 
    + * + * 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 `next_page_token` value returned from a previous
    +     * [ListBackupCollections] request, if any.
    +     * 
    + * + * 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 `next_page_token` value returned from a previous
    +     * [ListBackupCollections] request, if any.
    +     * 
    + * + * 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.redis.cluster.v1beta1.ListBackupsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.ListBackupsRequest) + private static final com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest(); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBackupsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListBackupsRequestOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListBackupsRequestOrBuilder.java new file mode 100644 index 000000000000..2c8e1d8e2a46 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListBackupsRequestOrBuilder.java @@ -0,0 +1,103 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +public interface ListBackupsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.ListBackupsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name of the backupCollection using the form:
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
    +   * 
    + * + * + * 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 backupCollection using the form:
    +   * `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}`
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Optional. The maximum number of items to return.
    +   *
    +   * If not specified, a default value of 1000 will be used by the service.
    +   * Regardless of the page_size value, the response may include a partial list
    +   * and a caller should only rely on response's
    +   * [`next_page_token`][google.cloud.redis.cluster.v1beta1.ListBackupsResponse.next_page_token]
    +   * to determine if there are more clusters left to be queried.
    +   * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
    +   * Optional. The `next_page_token` value returned from a previous
    +   * [ListBackupCollections] request, if any.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
    +   * Optional. The `next_page_token` value returned from a previous
    +   * [ListBackupCollections] request, if any.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListBackupsResponse.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListBackupsResponse.java new file mode 100644 index 000000000000..2c44ea047382 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListBackupsResponse.java @@ -0,0 +1,1404 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
    + * Response for [ListBackups].
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.ListBackupsResponse} + */ +public final class ListBackupsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.ListBackupsResponse) + ListBackupsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListBackupsResponse.newBuilder() to construct. + private ListBackupsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListBackupsResponse() { + backups_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListBackupsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ListBackupsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ListBackupsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse.class, + com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse.Builder.class); + } + + public static final int BACKUPS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List backups_; + /** + * + * + *
    +   * A list of backups in the project.
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.Backup backups = 1; + */ + @java.lang.Override + public java.util.List getBackupsList() { + return backups_; + } + /** + * + * + *
    +   * A list of backups in the project.
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.Backup backups = 1; + */ + @java.lang.Override + public java.util.List + getBackupsOrBuilderList() { + return backups_; + } + /** + * + * + *
    +   * A list of backups in the project.
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.Backup backups = 1; + */ + @java.lang.Override + public int getBackupsCount() { + return backups_.size(); + } + /** + * + * + *
    +   * A list of backups in the project.
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.Backup backups = 1; + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.Backup getBackups(int index) { + return backups_.get(index); + } + /** + * + * + *
    +   * A list of backups in the project.
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.Backup backups = 1; + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.BackupOrBuilder getBackupsOrBuilder(int index) { + return backups_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
    +   * Token to retrieve the next page of results, or empty if there are no more
    +   * results in the list.
    +   * 
    + * + * 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; + } + } + /** + * + * + *
    +   * Token to retrieve the next page of results, or empty if there are no more
    +   * results in the list.
    +   * 
    + * + * 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; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
    +   * Backups that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + /** + * + * + *
    +   * Backups that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
    +   * Backups that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
    +   * Backups that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.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 < backups_.size(); i++) { + output.writeMessage(1, backups_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(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 < backups_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, backups_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().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.redis.cluster.v1beta1.ListBackupsResponse)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse other = + (com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse) obj; + + if (!getBackupsList().equals(other.getBackupsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.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 (getBackupsCount() > 0) { + hash = (37 * hash) + BACKUPS_FIELD_NUMBER; + hash = (53 * hash) + getBackupsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Response for [ListBackups].
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.ListBackupsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.ListBackupsResponse) + com.google.cloud.redis.cluster.v1beta1.ListBackupsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ListBackupsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ListBackupsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse.class, + com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (backupsBuilder_ == null) { + backups_ = java.util.Collections.emptyList(); + } else { + backups_ = null; + backupsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ListBackupsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse build() { + com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse buildPartial() { + com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse result = + new com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse result) { + if (backupsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + backups_ = java.util.Collections.unmodifiableList(backups_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.backups_ = backups_; + } else { + result.backups_ = backupsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse) { + return mergeFrom((com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse other) { + if (other == com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse.getDefaultInstance()) + return this; + if (backupsBuilder_ == null) { + if (!other.backups_.isEmpty()) { + if (backups_.isEmpty()) { + backups_ = other.backups_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBackupsIsMutable(); + backups_.addAll(other.backups_); + } + onChanged(); + } + } else { + if (!other.backups_.isEmpty()) { + if (backupsBuilder_.isEmpty()) { + backupsBuilder_.dispose(); + backupsBuilder_ = null; + backups_ = other.backups_; + bitField0_ = (bitField0_ & ~0x00000001); + backupsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBackupsFieldBuilder() + : null; + } else { + backupsBuilder_.addAllMessages(other.backups_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + 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.redis.cluster.v1beta1.Backup m = + input.readMessage( + com.google.cloud.redis.cluster.v1beta1.Backup.parser(), extensionRegistry); + if (backupsBuilder_ == null) { + ensureBackupsIsMutable(); + backups_.add(m); + } else { + backupsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + 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 backups_ = + java.util.Collections.emptyList(); + + private void ensureBackupsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + backups_ = new java.util.ArrayList(backups_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.Backup, + com.google.cloud.redis.cluster.v1beta1.Backup.Builder, + com.google.cloud.redis.cluster.v1beta1.BackupOrBuilder> + backupsBuilder_; + + /** + * + * + *
    +     * A list of backups in the project.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.Backup backups = 1; + */ + public java.util.List getBackupsList() { + if (backupsBuilder_ == null) { + return java.util.Collections.unmodifiableList(backups_); + } else { + return backupsBuilder_.getMessageList(); + } + } + /** + * + * + *
    +     * A list of backups in the project.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.Backup backups = 1; + */ + public int getBackupsCount() { + if (backupsBuilder_ == null) { + return backups_.size(); + } else { + return backupsBuilder_.getCount(); + } + } + /** + * + * + *
    +     * A list of backups in the project.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.Backup backups = 1; + */ + public com.google.cloud.redis.cluster.v1beta1.Backup getBackups(int index) { + if (backupsBuilder_ == null) { + return backups_.get(index); + } else { + return backupsBuilder_.getMessage(index); + } + } + /** + * + * + *
    +     * A list of backups in the project.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.Backup backups = 1; + */ + public Builder setBackups(int index, com.google.cloud.redis.cluster.v1beta1.Backup value) { + if (backupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackupsIsMutable(); + backups_.set(index, value); + onChanged(); + } else { + backupsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * A list of backups in the project.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.Backup backups = 1; + */ + public Builder setBackups( + int index, com.google.cloud.redis.cluster.v1beta1.Backup.Builder builderForValue) { + if (backupsBuilder_ == null) { + ensureBackupsIsMutable(); + backups_.set(index, builderForValue.build()); + onChanged(); + } else { + backupsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * A list of backups in the project.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.Backup backups = 1; + */ + public Builder addBackups(com.google.cloud.redis.cluster.v1beta1.Backup value) { + if (backupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackupsIsMutable(); + backups_.add(value); + onChanged(); + } else { + backupsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
    +     * A list of backups in the project.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.Backup backups = 1; + */ + public Builder addBackups(int index, com.google.cloud.redis.cluster.v1beta1.Backup value) { + if (backupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackupsIsMutable(); + backups_.add(index, value); + onChanged(); + } else { + backupsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * A list of backups in the project.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.Backup backups = 1; + */ + public Builder addBackups( + com.google.cloud.redis.cluster.v1beta1.Backup.Builder builderForValue) { + if (backupsBuilder_ == null) { + ensureBackupsIsMutable(); + backups_.add(builderForValue.build()); + onChanged(); + } else { + backupsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * A list of backups in the project.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.Backup backups = 1; + */ + public Builder addBackups( + int index, com.google.cloud.redis.cluster.v1beta1.Backup.Builder builderForValue) { + if (backupsBuilder_ == null) { + ensureBackupsIsMutable(); + backups_.add(index, builderForValue.build()); + onChanged(); + } else { + backupsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * A list of backups in the project.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.Backup backups = 1; + */ + public Builder addAllBackups( + java.lang.Iterable values) { + if (backupsBuilder_ == null) { + ensureBackupsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, backups_); + onChanged(); + } else { + backupsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
    +     * A list of backups in the project.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.Backup backups = 1; + */ + public Builder clearBackups() { + if (backupsBuilder_ == null) { + backups_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + backupsBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * A list of backups in the project.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.Backup backups = 1; + */ + public Builder removeBackups(int index) { + if (backupsBuilder_ == null) { + ensureBackupsIsMutable(); + backups_.remove(index); + onChanged(); + } else { + backupsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
    +     * A list of backups in the project.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.Backup backups = 1; + */ + public com.google.cloud.redis.cluster.v1beta1.Backup.Builder getBackupsBuilder(int index) { + return getBackupsFieldBuilder().getBuilder(index); + } + /** + * + * + *
    +     * A list of backups in the project.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.Backup backups = 1; + */ + public com.google.cloud.redis.cluster.v1beta1.BackupOrBuilder getBackupsOrBuilder(int index) { + if (backupsBuilder_ == null) { + return backups_.get(index); + } else { + return backupsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
    +     * A list of backups in the project.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.Backup backups = 1; + */ + public java.util.List + getBackupsOrBuilderList() { + if (backupsBuilder_ != null) { + return backupsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(backups_); + } + } + /** + * + * + *
    +     * A list of backups in the project.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.Backup backups = 1; + */ + public com.google.cloud.redis.cluster.v1beta1.Backup.Builder addBackupsBuilder() { + return getBackupsFieldBuilder() + .addBuilder(com.google.cloud.redis.cluster.v1beta1.Backup.getDefaultInstance()); + } + /** + * + * + *
    +     * A list of backups in the project.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.Backup backups = 1; + */ + public com.google.cloud.redis.cluster.v1beta1.Backup.Builder addBackupsBuilder(int index) { + return getBackupsFieldBuilder() + .addBuilder(index, com.google.cloud.redis.cluster.v1beta1.Backup.getDefaultInstance()); + } + /** + * + * + *
    +     * A list of backups in the project.
    +     * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.Backup backups = 1; + */ + public java.util.List + getBackupsBuilderList() { + return getBackupsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.Backup, + com.google.cloud.redis.cluster.v1beta1.Backup.Builder, + com.google.cloud.redis.cluster.v1beta1.BackupOrBuilder> + getBackupsFieldBuilder() { + if (backupsBuilder_ == null) { + backupsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.Backup, + com.google.cloud.redis.cluster.v1beta1.Backup.Builder, + com.google.cloud.redis.cluster.v1beta1.BackupOrBuilder>( + backups_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + backups_ = null; + } + return backupsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
    +     * Token to retrieve the next page of results, or empty if there are no more
    +     * results in the list.
    +     * 
    + * + * 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; + } + } + /** + * + * + *
    +     * Token to retrieve the next page of results, or empty if there are no more
    +     * results in the list.
    +     * 
    + * + * 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; + } + } + /** + * + * + *
    +     * Token to retrieve the next page of results, or empty if there are no more
    +     * results in the list.
    +     * 
    + * + * 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; + } + /** + * + * + *
    +     * Token to retrieve the next page of results, or empty if there are no more
    +     * results in the list.
    +     * 
    + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * Token to retrieve the next page of results, or empty if there are no more
    +     * results in the list.
    +     * 
    + * + * 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; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + /** + * + * + *
    +     * Backups that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + /** + * + * + *
    +     * Backups that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
    +     * Backups that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
    +     * Backups that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + * + * + *
    +     * Backups that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Backups that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Backups that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Backups that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + /** + * + * + *
    +     * Backups that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(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.redis.cluster.v1beta1.ListBackupsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.ListBackupsResponse) + private static final com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse(); + } + + public static com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBackupsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListBackupsResponseOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListBackupsResponseOrBuilder.java new file mode 100644 index 000000000000..0475710ab43a --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ListBackupsResponseOrBuilder.java @@ -0,0 +1,156 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +public interface ListBackupsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.ListBackupsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * A list of backups in the project.
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.Backup backups = 1; + */ + java.util.List getBackupsList(); + /** + * + * + *
    +   * A list of backups in the project.
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.Backup backups = 1; + */ + com.google.cloud.redis.cluster.v1beta1.Backup getBackups(int index); + /** + * + * + *
    +   * A list of backups in the project.
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.Backup backups = 1; + */ + int getBackupsCount(); + /** + * + * + *
    +   * A list of backups in the project.
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.Backup backups = 1; + */ + java.util.List + getBackupsOrBuilderList(); + /** + * + * + *
    +   * A list of backups in the project.
    +   * 
    + * + * repeated .google.cloud.redis.cluster.v1beta1.Backup backups = 1; + */ + com.google.cloud.redis.cluster.v1beta1.BackupOrBuilder getBackupsOrBuilder(int index); + + /** + * + * + *
    +   * Token to retrieve the next page of results, or empty if there are no more
    +   * results in the list.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
    +   * Token to retrieve the next page of results, or empty if there are no more
    +   * results in the list.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
    +   * Backups that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + /** + * + * + *
    +   * Backups that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + * + * + *
    +   * Backups that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + * + * + *
    +   * Backups that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/NodeType.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/NodeType.java index e5e2ae8cde98..8d1988c9c2eb 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/NodeType.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/NodeType.java @@ -29,7 +29,15 @@ * Protobuf enum {@code google.cloud.redis.cluster.v1beta1.NodeType} */ public enum NodeType implements com.google.protobuf.ProtocolMessageEnum { - /** NODE_TYPE_UNSPECIFIED = 0; */ + /** + * + * + *
    +   * Node type unspecified
    +   * 
    + * + * NODE_TYPE_UNSPECIFIED = 0; + */ NODE_TYPE_UNSPECIFIED(0), /** * @@ -74,7 +82,15 @@ public enum NodeType implements com.google.protobuf.ProtocolMessageEnum { UNRECOGNIZED(-1), ; - /** NODE_TYPE_UNSPECIFIED = 0; */ + /** + * + * + *
    +   * Node type unspecified
    +   * 
    + * + * NODE_TYPE_UNSPECIFIED = 0; + */ public static final int NODE_TYPE_UNSPECIFIED_VALUE = 0; /** * @@ -182,7 +198,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto.getDescriptor() .getEnumTypes() - .get(1); + .get(2); } private static final NodeType[] VALUES = values(); diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/PscAutoConnection.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/PscAutoConnection.java new file mode 100644 index 000000000000..0316ea5517d1 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/PscAutoConnection.java @@ -0,0 +1,2008 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
    + * Details of consumer resources in a PSC connection that is created through
    + * Service Connectivity Automation.
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.PscAutoConnection} + */ +public final class PscAutoConnection extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.PscAutoConnection) + PscAutoConnectionOrBuilder { + private static final long serialVersionUID = 0L; + // Use PscAutoConnection.newBuilder() to construct. + private PscAutoConnection(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PscAutoConnection() { + pscConnectionId_ = ""; + address_ = ""; + forwardingRule_ = ""; + projectId_ = ""; + network_ = ""; + serviceAttachment_ = ""; + pscConnectionStatus_ = 0; + connectionType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PscAutoConnection(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_PscAutoConnection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_PscAutoConnection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.PscAutoConnection.class, + com.google.cloud.redis.cluster.v1beta1.PscAutoConnection.Builder.class); + } + + public static final int PSC_CONNECTION_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object pscConnectionId_ = ""; + /** + * + * + *
    +   * Output only. The PSC connection id of the forwarding rule connected to the
    +   * service attachment.
    +   * 
    + * + * string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The pscConnectionId. + */ + @java.lang.Override + public java.lang.String getPscConnectionId() { + java.lang.Object ref = pscConnectionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pscConnectionId_ = s; + return s; + } + } + /** + * + * + *
    +   * Output only. The PSC connection id of the forwarding rule connected to the
    +   * service attachment.
    +   * 
    + * + * string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for pscConnectionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPscConnectionIdBytes() { + java.lang.Object ref = pscConnectionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pscConnectionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADDRESS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object address_ = ""; + /** + * + * + *
    +   * Output only. The IP allocated on the consumer network for the PSC
    +   * forwarding rule.
    +   * 
    + * + * + * string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The address. + */ + @java.lang.Override + public java.lang.String getAddress() { + java.lang.Object ref = address_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + address_ = s; + return s; + } + } + /** + * + * + *
    +   * Output only. The IP allocated on the consumer network for the PSC
    +   * forwarding rule.
    +   * 
    + * + * + * string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for address. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddressBytes() { + java.lang.Object ref = address_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + address_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FORWARDING_RULE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object forwardingRule_ = ""; + /** + * + * + *
    +   * Output only. The URI of the consumer side forwarding rule.
    +   * Example:
    +   * projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
    +   * 
    + * + * + * string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The forwardingRule. + */ + @java.lang.Override + public java.lang.String getForwardingRule() { + java.lang.Object ref = forwardingRule_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + forwardingRule_ = s; + return s; + } + } + /** + * + * + *
    +   * Output only. The URI of the consumer side forwarding rule.
    +   * Example:
    +   * projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
    +   * 
    + * + * + * string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for forwardingRule. + */ + @java.lang.Override + public com.google.protobuf.ByteString getForwardingRuleBytes() { + java.lang.Object ref = forwardingRule_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + forwardingRule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + * + * + *
    +   * Required. The consumer project_id where the forwarding rule is created
    +   * from.
    +   * 
    + * + * string project_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The projectId. + */ + @java.lang.Override + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. The consumer project_id where the forwarding rule is created
    +   * from.
    +   * 
    + * + * string project_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for projectId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object network_ = ""; + /** + * + * + *
    +   * Required. The consumer network where the IP address resides, in the form of
    +   * projects/{project_id}/global/networks/{network_id}.
    +   * 
    + * + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + /** + * + * + *
    +   * Required. The consumer network where the IP address resides, in the form of
    +   * projects/{project_id}/global/networks/{network_id}.
    +   * 
    + * + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.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_ATTACHMENT_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAttachment_ = ""; + /** + * + * + *
    +   * Output only. The service attachment which is the target of the PSC
    +   * connection, in the form of
    +   * projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
    +   * 
    + * + * + * string service_attachment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The serviceAttachment. + */ + @java.lang.Override + public java.lang.String getServiceAttachment() { + java.lang.Object ref = serviceAttachment_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAttachment_ = s; + return s; + } + } + /** + * + * + *
    +   * Output only. The service attachment which is the target of the PSC
    +   * connection, in the form of
    +   * projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
    +   * 
    + * + * + * string service_attachment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for serviceAttachment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAttachmentBytes() { + java.lang.Object ref = serviceAttachment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAttachment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PSC_CONNECTION_STATUS_FIELD_NUMBER = 8; + private int pscConnectionStatus_ = 0; + /** + * + * + *
    +   * Output only. The status of the PSC connection.
    +   * Please note that this value is updated periodically.
    +   * Please use Private Service Connect APIs for the latest status.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for pscConnectionStatus. + */ + @java.lang.Override + public int getPscConnectionStatusValue() { + return pscConnectionStatus_; + } + /** + * + * + *
    +   * Output only. The status of the PSC connection.
    +   * Please note that this value is updated periodically.
    +   * Please use Private Service Connect APIs for the latest status.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pscConnectionStatus. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.PscConnectionStatus getPscConnectionStatus() { + com.google.cloud.redis.cluster.v1beta1.PscConnectionStatus result = + com.google.cloud.redis.cluster.v1beta1.PscConnectionStatus.forNumber(pscConnectionStatus_); + return result == null + ? com.google.cloud.redis.cluster.v1beta1.PscConnectionStatus.UNRECOGNIZED + : result; + } + + public static final int CONNECTION_TYPE_FIELD_NUMBER = 9; + private int connectionType_ = 0; + /** + * + * + *
    +   * Output only. Type of the PSC connection.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for connectionType. + */ + @java.lang.Override + public int getConnectionTypeValue() { + return connectionType_; + } + /** + * + * + *
    +   * Output only. Type of the PSC connection.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The connectionType. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ConnectionType getConnectionType() { + com.google.cloud.redis.cluster.v1beta1.ConnectionType result = + com.google.cloud.redis.cluster.v1beta1.ConnectionType.forNumber(connectionType_); + return result == null + ? com.google.cloud.redis.cluster.v1beta1.ConnectionType.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(pscConnectionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pscConnectionId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, address_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(forwardingRule_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, forwardingRule_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAttachment_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, serviceAttachment_); + } + if (pscConnectionStatus_ + != com.google.cloud.redis.cluster.v1beta1.PscConnectionStatus + .PSC_CONNECTION_STATUS_UNSPECIFIED + .getNumber()) { + output.writeEnum(8, pscConnectionStatus_); + } + if (connectionType_ + != com.google.cloud.redis.cluster.v1beta1.ConnectionType.CONNECTION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(9, connectionType_); + } + 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(pscConnectionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, pscConnectionId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, address_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(forwardingRule_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, forwardingRule_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAttachment_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, serviceAttachment_); + } + if (pscConnectionStatus_ + != com.google.cloud.redis.cluster.v1beta1.PscConnectionStatus + .PSC_CONNECTION_STATUS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, pscConnectionStatus_); + } + if (connectionType_ + != com.google.cloud.redis.cluster.v1beta1.ConnectionType.CONNECTION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, connectionType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1beta1.PscAutoConnection)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.PscAutoConnection other = + (com.google.cloud.redis.cluster.v1beta1.PscAutoConnection) obj; + + if (!getPscConnectionId().equals(other.getPscConnectionId())) return false; + if (!getAddress().equals(other.getAddress())) return false; + if (!getForwardingRule().equals(other.getForwardingRule())) return false; + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getNetwork().equals(other.getNetwork())) return false; + if (!getServiceAttachment().equals(other.getServiceAttachment())) return false; + if (pscConnectionStatus_ != other.pscConnectionStatus_) return false; + if (connectionType_ != other.connectionType_) return false; + if (!getUnknownFields().equals(other.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) + PSC_CONNECTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getPscConnectionId().hashCode(); + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + hash = (37 * hash) + FORWARDING_RULE_FIELD_NUMBER; + hash = (53 * hash) + getForwardingRule().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + hash = (37 * hash) + SERVICE_ATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getServiceAttachment().hashCode(); + hash = (37 * hash) + PSC_CONNECTION_STATUS_FIELD_NUMBER; + hash = (53 * hash) + pscConnectionStatus_; + hash = (37 * hash) + CONNECTION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + connectionType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.PscAutoConnection parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.PscAutoConnection parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.PscAutoConnection parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.PscAutoConnection parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.PscAutoConnection parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.PscAutoConnection parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.PscAutoConnection parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.PscAutoConnection parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.PscAutoConnection parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.PscAutoConnection parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.PscAutoConnection parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.PscAutoConnection parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1beta1.PscAutoConnection prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 of consumer resources in a PSC connection that is created through
    +   * Service Connectivity Automation.
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.PscAutoConnection} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.PscAutoConnection) + com.google.cloud.redis.cluster.v1beta1.PscAutoConnectionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_PscAutoConnection_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_PscAutoConnection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.PscAutoConnection.class, + com.google.cloud.redis.cluster.v1beta1.PscAutoConnection.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1beta1.PscAutoConnection.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pscConnectionId_ = ""; + address_ = ""; + forwardingRule_ = ""; + projectId_ = ""; + network_ = ""; + serviceAttachment_ = ""; + pscConnectionStatus_ = 0; + connectionType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_PscAutoConnection_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.PscAutoConnection getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.PscAutoConnection.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.PscAutoConnection build() { + com.google.cloud.redis.cluster.v1beta1.PscAutoConnection result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.PscAutoConnection buildPartial() { + com.google.cloud.redis.cluster.v1beta1.PscAutoConnection result = + new com.google.cloud.redis.cluster.v1beta1.PscAutoConnection(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1beta1.PscAutoConnection result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pscConnectionId_ = pscConnectionId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.address_ = address_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.forwardingRule_ = forwardingRule_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.network_ = network_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.serviceAttachment_ = serviceAttachment_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.pscConnectionStatus_ = pscConnectionStatus_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.connectionType_ = connectionType_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1beta1.PscAutoConnection) { + return mergeFrom((com.google.cloud.redis.cluster.v1beta1.PscAutoConnection) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1beta1.PscAutoConnection other) { + if (other == com.google.cloud.redis.cluster.v1beta1.PscAutoConnection.getDefaultInstance()) + return this; + if (!other.getPscConnectionId().isEmpty()) { + pscConnectionId_ = other.pscConnectionId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAddress().isEmpty()) { + address_ = other.address_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getForwardingRule().isEmpty()) { + forwardingRule_ = other.forwardingRule_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getServiceAttachment().isEmpty()) { + serviceAttachment_ = other.serviceAttachment_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.pscConnectionStatus_ != 0) { + setPscConnectionStatusValue(other.getPscConnectionStatusValue()); + } + if (other.connectionType_ != 0) { + setConnectionTypeValue(other.getConnectionTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + pscConnectionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + address_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + forwardingRule_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + network_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + serviceAttachment_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 64: + { + pscConnectionStatus_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 64 + case 72: + { + connectionType_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 72 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + 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 pscConnectionId_ = ""; + /** + * + * + *
    +     * Output only. The PSC connection id of the forwarding rule connected to the
    +     * service attachment.
    +     * 
    + * + * string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The pscConnectionId. + */ + public java.lang.String getPscConnectionId() { + java.lang.Object ref = pscConnectionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pscConnectionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Output only. The PSC connection id of the forwarding rule connected to the
    +     * service attachment.
    +     * 
    + * + * string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for pscConnectionId. + */ + public com.google.protobuf.ByteString getPscConnectionIdBytes() { + java.lang.Object ref = pscConnectionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pscConnectionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Output only. The PSC connection id of the forwarding rule connected to the
    +     * service attachment.
    +     * 
    + * + * string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The pscConnectionId to set. + * @return This builder for chaining. + */ + public Builder setPscConnectionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pscConnectionId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The PSC connection id of the forwarding rule connected to the
    +     * service attachment.
    +     * 
    + * + * string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPscConnectionId() { + pscConnectionId_ = getDefaultInstance().getPscConnectionId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The PSC connection id of the forwarding rule connected to the
    +     * service attachment.
    +     * 
    + * + * string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for pscConnectionId to set. + * @return This builder for chaining. + */ + public Builder setPscConnectionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pscConnectionId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object address_ = ""; + /** + * + * + *
    +     * Output only. The IP allocated on the consumer network for the PSC
    +     * forwarding rule.
    +     * 
    + * + * + * string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The address. + */ + public java.lang.String getAddress() { + java.lang.Object ref = address_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + address_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Output only. The IP allocated on the consumer network for the PSC
    +     * forwarding rule.
    +     * 
    + * + * + * string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for address. + */ + public com.google.protobuf.ByteString getAddressBytes() { + java.lang.Object ref = address_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + address_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Output only. The IP allocated on the consumer network for the PSC
    +     * forwarding rule.
    +     * 
    + * + * + * string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The address to set. + * @return This builder for chaining. + */ + public Builder setAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + address_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The IP allocated on the consumer network for the PSC
    +     * forwarding rule.
    +     * 
    + * + * + * string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAddress() { + address_ = getDefaultInstance().getAddress(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The IP allocated on the consumer network for the PSC
    +     * forwarding rule.
    +     * 
    + * + * + * string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for address to set. + * @return This builder for chaining. + */ + public Builder setAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + address_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object forwardingRule_ = ""; + /** + * + * + *
    +     * Output only. The URI of the consumer side forwarding rule.
    +     * Example:
    +     * projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
    +     * 
    + * + * + * string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The forwardingRule. + */ + public java.lang.String getForwardingRule() { + java.lang.Object ref = forwardingRule_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + forwardingRule_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Output only. The URI of the consumer side forwarding rule.
    +     * Example:
    +     * projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
    +     * 
    + * + * + * string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for forwardingRule. + */ + public com.google.protobuf.ByteString getForwardingRuleBytes() { + java.lang.Object ref = forwardingRule_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + forwardingRule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Output only. The URI of the consumer side forwarding rule.
    +     * Example:
    +     * projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
    +     * 
    + * + * + * string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The forwardingRule to set. + * @return This builder for chaining. + */ + public Builder setForwardingRule(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + forwardingRule_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The URI of the consumer side forwarding rule.
    +     * Example:
    +     * projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
    +     * 
    + * + * + * string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearForwardingRule() { + forwardingRule_ = getDefaultInstance().getForwardingRule(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The URI of the consumer side forwarding rule.
    +     * Example:
    +     * projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
    +     * 
    + * + * + * string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for forwardingRule to set. + * @return This builder for chaining. + */ + public Builder setForwardingRuleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + forwardingRule_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object projectId_ = ""; + /** + * + * + *
    +     * Required. The consumer project_id where the forwarding rule is created
    +     * from.
    +     * 
    + * + * string project_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The projectId. + */ + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. The consumer project_id where the forwarding rule is created
    +     * from.
    +     * 
    + * + * string project_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for projectId. + */ + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. The consumer project_id where the forwarding rule is created
    +     * from.
    +     * 
    + * + * string project_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + projectId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The consumer project_id where the forwarding rule is created
    +     * from.
    +     * 
    + * + * string project_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The consumer project_id where the forwarding rule is created
    +     * from.
    +     * 
    + * + * string project_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object network_ = ""; + /** + * + * + *
    +     * Required. The consumer network where the IP address resides, in the form of
    +     * projects/{project_id}/global/networks/{network_id}.
    +     * 
    + * + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + /** + * + * + *
    +     * Required. The consumer network where the IP address resides, in the form of
    +     * projects/{project_id}/global/networks/{network_id}.
    +     * 
    + * + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + /** + * + * + *
    +     * Required. The consumer network where the IP address resides, in the form of
    +     * projects/{project_id}/global/networks/{network_id}.
    +     * 
    + * + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.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_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The consumer network where the IP address resides, in the form of
    +     * projects/{project_id}/global/networks/{network_id}.
    +     * 
    + * + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNetwork() { + network_ = getDefaultInstance().getNetwork(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The consumer network where the IP address resides, in the form of
    +     * projects/{project_id}/global/networks/{network_id}.
    +     * 
    + * + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.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_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object serviceAttachment_ = ""; + /** + * + * + *
    +     * Output only. The service attachment which is the target of the PSC
    +     * connection, in the form of
    +     * projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
    +     * 
    + * + * + * string service_attachment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The serviceAttachment. + */ + public java.lang.String getServiceAttachment() { + java.lang.Object ref = serviceAttachment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAttachment_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Output only. The service attachment which is the target of the PSC
    +     * connection, in the form of
    +     * projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
    +     * 
    + * + * + * string service_attachment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for serviceAttachment. + */ + public com.google.protobuf.ByteString getServiceAttachmentBytes() { + java.lang.Object ref = serviceAttachment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAttachment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Output only. The service attachment which is the target of the PSC
    +     * connection, in the form of
    +     * projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
    +     * 
    + * + * + * string service_attachment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The serviceAttachment to set. + * @return This builder for chaining. + */ + public Builder setServiceAttachment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceAttachment_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The service attachment which is the target of the PSC
    +     * connection, in the form of
    +     * projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
    +     * 
    + * + * + * string service_attachment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearServiceAttachment() { + serviceAttachment_ = getDefaultInstance().getServiceAttachment(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The service attachment which is the target of the PSC
    +     * connection, in the form of
    +     * projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
    +     * 
    + * + * + * string service_attachment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for serviceAttachment to set. + * @return This builder for chaining. + */ + public Builder setServiceAttachmentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAttachment_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private int pscConnectionStatus_ = 0; + /** + * + * + *
    +     * Output only. The status of the PSC connection.
    +     * Please note that this value is updated periodically.
    +     * Please use Private Service Connect APIs for the latest status.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for pscConnectionStatus. + */ + @java.lang.Override + public int getPscConnectionStatusValue() { + return pscConnectionStatus_; + } + /** + * + * + *
    +     * Output only. The status of the PSC connection.
    +     * Please note that this value is updated periodically.
    +     * Please use Private Service Connect APIs for the latest status.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for pscConnectionStatus to set. + * @return This builder for chaining. + */ + public Builder setPscConnectionStatusValue(int value) { + pscConnectionStatus_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The status of the PSC connection.
    +     * Please note that this value is updated periodically.
    +     * Please use Private Service Connect APIs for the latest status.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pscConnectionStatus. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.PscConnectionStatus getPscConnectionStatus() { + com.google.cloud.redis.cluster.v1beta1.PscConnectionStatus result = + com.google.cloud.redis.cluster.v1beta1.PscConnectionStatus.forNumber( + pscConnectionStatus_); + return result == null + ? com.google.cloud.redis.cluster.v1beta1.PscConnectionStatus.UNRECOGNIZED + : result; + } + /** + * + * + *
    +     * Output only. The status of the PSC connection.
    +     * Please note that this value is updated periodically.
    +     * Please use Private Service Connect APIs for the latest status.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The pscConnectionStatus to set. + * @return This builder for chaining. + */ + public Builder setPscConnectionStatus( + com.google.cloud.redis.cluster.v1beta1.PscConnectionStatus value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + pscConnectionStatus_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The status of the PSC connection.
    +     * Please note that this value is updated periodically.
    +     * Please use Private Service Connect APIs for the latest status.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearPscConnectionStatus() { + bitField0_ = (bitField0_ & ~0x00000040); + pscConnectionStatus_ = 0; + onChanged(); + return this; + } + + private int connectionType_ = 0; + /** + * + * + *
    +     * Output only. Type of the PSC connection.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for connectionType. + */ + @java.lang.Override + public int getConnectionTypeValue() { + return connectionType_; + } + /** + * + * + *
    +     * Output only. Type of the PSC connection.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for connectionType to set. + * @return This builder for chaining. + */ + public Builder setConnectionTypeValue(int value) { + connectionType_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Type of the PSC connection.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The connectionType. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ConnectionType getConnectionType() { + com.google.cloud.redis.cluster.v1beta1.ConnectionType result = + com.google.cloud.redis.cluster.v1beta1.ConnectionType.forNumber(connectionType_); + return result == null + ? com.google.cloud.redis.cluster.v1beta1.ConnectionType.UNRECOGNIZED + : result; + } + /** + * + * + *
    +     * Output only. Type of the PSC connection.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The connectionType to set. + * @return This builder for chaining. + */ + public Builder setConnectionType(com.google.cloud.redis.cluster.v1beta1.ConnectionType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + connectionType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Type of the PSC connection.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearConnectionType() { + bitField0_ = (bitField0_ & ~0x00000080); + connectionType_ = 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.redis.cluster.v1beta1.PscAutoConnection) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.PscAutoConnection) + private static final com.google.cloud.redis.cluster.v1beta1.PscAutoConnection DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1beta1.PscAutoConnection(); + } + + public static com.google.cloud.redis.cluster.v1beta1.PscAutoConnection getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PscAutoConnection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.PscAutoConnection getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/PscAutoConnectionOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/PscAutoConnectionOrBuilder.java new file mode 100644 index 000000000000..3d3309bcbc84 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/PscAutoConnectionOrBuilder.java @@ -0,0 +1,270 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +public interface PscAutoConnectionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.PscAutoConnection) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Output only. The PSC connection id of the forwarding rule connected to the
    +   * service attachment.
    +   * 
    + * + * string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The pscConnectionId. + */ + java.lang.String getPscConnectionId(); + /** + * + * + *
    +   * Output only. The PSC connection id of the forwarding rule connected to the
    +   * service attachment.
    +   * 
    + * + * string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for pscConnectionId. + */ + com.google.protobuf.ByteString getPscConnectionIdBytes(); + + /** + * + * + *
    +   * Output only. The IP allocated on the consumer network for the PSC
    +   * forwarding rule.
    +   * 
    + * + * + * string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The address. + */ + java.lang.String getAddress(); + /** + * + * + *
    +   * Output only. The IP allocated on the consumer network for the PSC
    +   * forwarding rule.
    +   * 
    + * + * + * string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for address. + */ + com.google.protobuf.ByteString getAddressBytes(); + + /** + * + * + *
    +   * Output only. The URI of the consumer side forwarding rule.
    +   * Example:
    +   * projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
    +   * 
    + * + * + * string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The forwardingRule. + */ + java.lang.String getForwardingRule(); + /** + * + * + *
    +   * Output only. The URI of the consumer side forwarding rule.
    +   * Example:
    +   * projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
    +   * 
    + * + * + * string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for forwardingRule. + */ + com.google.protobuf.ByteString getForwardingRuleBytes(); + + /** + * + * + *
    +   * Required. The consumer project_id where the forwarding rule is created
    +   * from.
    +   * 
    + * + * string project_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The projectId. + */ + java.lang.String getProjectId(); + /** + * + * + *
    +   * Required. The consumer project_id where the forwarding rule is created
    +   * from.
    +   * 
    + * + * string project_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for projectId. + */ + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
    +   * Required. The consumer network where the IP address resides, in the form of
    +   * projects/{project_id}/global/networks/{network_id}.
    +   * 
    + * + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The network. + */ + java.lang.String getNetwork(); + /** + * + * + *
    +   * Required. The consumer network where the IP address resides, in the form of
    +   * projects/{project_id}/global/networks/{network_id}.
    +   * 
    + * + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for network. + */ + com.google.protobuf.ByteString getNetworkBytes(); + + /** + * + * + *
    +   * Output only. The service attachment which is the target of the PSC
    +   * connection, in the form of
    +   * projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
    +   * 
    + * + * + * string service_attachment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The serviceAttachment. + */ + java.lang.String getServiceAttachment(); + /** + * + * + *
    +   * Output only. The service attachment which is the target of the PSC
    +   * connection, in the form of
    +   * projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
    +   * 
    + * + * + * string service_attachment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for serviceAttachment. + */ + com.google.protobuf.ByteString getServiceAttachmentBytes(); + + /** + * + * + *
    +   * Output only. The status of the PSC connection.
    +   * Please note that this value is updated periodically.
    +   * Please use Private Service Connect APIs for the latest status.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for pscConnectionStatus. + */ + int getPscConnectionStatusValue(); + /** + * + * + *
    +   * Output only. The status of the PSC connection.
    +   * Please note that this value is updated periodically.
    +   * Please use Private Service Connect APIs for the latest status.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pscConnectionStatus. + */ + com.google.cloud.redis.cluster.v1beta1.PscConnectionStatus getPscConnectionStatus(); + + /** + * + * + *
    +   * Output only. Type of the PSC connection.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for connectionType. + */ + int getConnectionTypeValue(); + /** + * + * + *
    +   * Output only. Type of the PSC connection.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The connectionType. + */ + com.google.cloud.redis.cluster.v1beta1.ConnectionType getConnectionType(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/PscConnection.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/PscConnection.java index bec6d67405d4..e7d45c2ec9b1 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/PscConnection.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/PscConnection.java @@ -44,6 +44,9 @@ private PscConnection() { forwardingRule_ = ""; projectId_ = ""; network_ = ""; + serviceAttachment_ = ""; + pscConnectionStatus_ = 0; + connectionType_ = 0; } @java.lang.Override @@ -75,11 +78,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Output only. The PSC connection id of the forwarding rule connected to the
    +   * Required. The PSC connection id of the forwarding rule connected to the
        * service attachment.
        * 
    * - * string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string psc_connection_id = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The pscConnectionId. */ @@ -99,11 +102,11 @@ public java.lang.String getPscConnectionId() { * * *
    -   * Output only. The PSC connection id of the forwarding rule connected to the
    +   * Required. The PSC connection id of the forwarding rule connected to the
        * service attachment.
        * 
    * - * string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string psc_connection_id = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for pscConnectionId. */ @@ -128,11 +131,13 @@ public com.google.protobuf.ByteString getPscConnectionIdBytes() { * * *
    -   * Output only. The IP allocated on the consumer network for the PSC
    -   * forwarding rule.
    +   * Required. The IP allocated on the consumer network for the PSC forwarding
    +   * rule.
        * 
    * - * string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * * * @return The address. */ @@ -152,11 +157,13 @@ public java.lang.String getAddress() { * * *
    -   * Output only. The IP allocated on the consumer network for the PSC
    -   * forwarding rule.
    +   * Required. The IP allocated on the consumer network for the PSC forwarding
    +   * rule.
        * 
    * - * string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * * * @return The bytes for address. */ @@ -181,12 +188,14 @@ public com.google.protobuf.ByteString getAddressBytes() { * * *
    -   * Output only. The URI of the consumer side forwarding rule.
    +   * Required. The URI of the consumer side forwarding rule.
        * Example:
        * projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
        * 
    * - * string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string forwarding_rule = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The forwardingRule. */ @@ -206,12 +215,14 @@ public java.lang.String getForwardingRule() { * * *
    -   * Output only. The URI of the consumer side forwarding rule.
    +   * Required. The URI of the consumer side forwarding rule.
        * Example:
        * projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
        * 
    * - * string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string forwarding_rule = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for forwardingRule. */ @@ -236,11 +247,11 @@ public com.google.protobuf.ByteString getForwardingRuleBytes() { * * *
    -   * Output only. The consumer project_id where the forwarding rule is created
    -   * from.
    +   * Optional. Project ID of the consumer project where the forwarding rule is
    +   * created in.
        * 
    * - * string project_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string project_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The projectId. */ @@ -260,11 +271,11 @@ public java.lang.String getProjectId() { * * *
    -   * Output only. The consumer project_id where the forwarding rule is created
    -   * from.
    +   * Optional. Project ID of the consumer project where the forwarding rule is
    +   * created in.
        * 
    * - * string project_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string project_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for projectId. */ @@ -289,11 +300,13 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
    -   * The consumer network where the IP address resides, in the form of
    +   * Required. The consumer network where the IP address resides, in the form of
        * projects/{project_id}/global/networks/{network_id}.
        * 
    * - * string network = 5; + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The network. */ @@ -313,11 +326,13 @@ public java.lang.String getNetwork() { * * *
    -   * The consumer network where the IP address resides, in the form of
    +   * Required. The consumer network where the IP address resides, in the form of
        * projects/{project_id}/global/networks/{network_id}.
        * 
    * - * string network = 5; + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for network. */ @@ -334,6 +349,153 @@ public com.google.protobuf.ByteString getNetworkBytes() { } } + public static final int SERVICE_ATTACHMENT_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAttachment_ = ""; + /** + * + * + *
    +   * Required. The service attachment which is the target of the PSC connection,
    +   * in the form of
    +   * projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
    +   * 
    + * + * + * string service_attachment = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The serviceAttachment. + */ + @java.lang.Override + public java.lang.String getServiceAttachment() { + java.lang.Object ref = serviceAttachment_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAttachment_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. The service attachment which is the target of the PSC connection,
    +   * in the form of
    +   * projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
    +   * 
    + * + * + * string service_attachment = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for serviceAttachment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAttachmentBytes() { + java.lang.Object ref = serviceAttachment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAttachment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PSC_CONNECTION_STATUS_FIELD_NUMBER = 8; + private int pscConnectionStatus_ = 0; + /** + * + * + *
    +   * Output only. The status of the PSC connection.
    +   * Please note that this value is updated periodically.
    +   * To get the latest status of a PSC connection, follow
    +   * https://cloud.google.com/vpc/docs/configure-private-service-connect-services#endpoint-details.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for pscConnectionStatus. + */ + @java.lang.Override + public int getPscConnectionStatusValue() { + return pscConnectionStatus_; + } + /** + * + * + *
    +   * Output only. The status of the PSC connection.
    +   * Please note that this value is updated periodically.
    +   * To get the latest status of a PSC connection, follow
    +   * https://cloud.google.com/vpc/docs/configure-private-service-connect-services#endpoint-details.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pscConnectionStatus. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.PscConnectionStatus getPscConnectionStatus() { + com.google.cloud.redis.cluster.v1beta1.PscConnectionStatus result = + com.google.cloud.redis.cluster.v1beta1.PscConnectionStatus.forNumber(pscConnectionStatus_); + return result == null + ? com.google.cloud.redis.cluster.v1beta1.PscConnectionStatus.UNRECOGNIZED + : result; + } + + public static final int CONNECTION_TYPE_FIELD_NUMBER = 10; + private int connectionType_ = 0; + /** + * + * + *
    +   * Output only. Type of the PSC connection.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for connectionType. + */ + @java.lang.Override + public int getConnectionTypeValue() { + return connectionType_; + } + /** + * + * + *
    +   * Output only. Type of the PSC connection.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The connectionType. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ConnectionType getConnectionType() { + com.google.cloud.redis.cluster.v1beta1.ConnectionType result = + com.google.cloud.redis.cluster.v1beta1.ConnectionType.forNumber(connectionType_); + return result == null + ? com.google.cloud.redis.cluster.v1beta1.ConnectionType.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -363,6 +525,20 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, network_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAttachment_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, serviceAttachment_); + } + if (pscConnectionStatus_ + != com.google.cloud.redis.cluster.v1beta1.PscConnectionStatus + .PSC_CONNECTION_STATUS_UNSPECIFIED + .getNumber()) { + output.writeEnum(8, pscConnectionStatus_); + } + if (connectionType_ + != com.google.cloud.redis.cluster.v1beta1.ConnectionType.CONNECTION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(10, connectionType_); + } getUnknownFields().writeTo(output); } @@ -387,6 +563,20 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, network_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAttachment_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, serviceAttachment_); + } + if (pscConnectionStatus_ + != com.google.cloud.redis.cluster.v1beta1.PscConnectionStatus + .PSC_CONNECTION_STATUS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, pscConnectionStatus_); + } + if (connectionType_ + != com.google.cloud.redis.cluster.v1beta1.ConnectionType.CONNECTION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, connectionType_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -408,6 +598,9 @@ public boolean equals(final java.lang.Object obj) { if (!getForwardingRule().equals(other.getForwardingRule())) return false; if (!getProjectId().equals(other.getProjectId())) return false; if (!getNetwork().equals(other.getNetwork())) return false; + if (!getServiceAttachment().equals(other.getServiceAttachment())) return false; + if (pscConnectionStatus_ != other.pscConnectionStatus_) return false; + if (connectionType_ != other.connectionType_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -429,6 +622,12 @@ public int hashCode() { hash = (53 * hash) + getProjectId().hashCode(); hash = (37 * hash) + NETWORK_FIELD_NUMBER; hash = (53 * hash) + getNetwork().hashCode(); + hash = (37 * hash) + SERVICE_ATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getServiceAttachment().hashCode(); + hash = (37 * hash) + PSC_CONNECTION_STATUS_FIELD_NUMBER; + hash = (53 * hash) + pscConnectionStatus_; + hash = (37 * hash) + CONNECTION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + connectionType_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -573,6 +772,9 @@ public Builder clear() { forwardingRule_ = ""; projectId_ = ""; network_ = ""; + serviceAttachment_ = ""; + pscConnectionStatus_ = 0; + connectionType_ = 0; return this; } @@ -624,6 +826,15 @@ private void buildPartial0(com.google.cloud.redis.cluster.v1beta1.PscConnection if (((from_bitField0_ & 0x00000010) != 0)) { result.network_ = network_; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.serviceAttachment_ = serviceAttachment_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.pscConnectionStatus_ = pscConnectionStatus_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.connectionType_ = connectionType_; + } } @java.lang.Override @@ -697,6 +908,17 @@ public Builder mergeFrom(com.google.cloud.redis.cluster.v1beta1.PscConnection ot bitField0_ |= 0x00000010; onChanged(); } + if (!other.getServiceAttachment().isEmpty()) { + serviceAttachment_ = other.serviceAttachment_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.pscConnectionStatus_ != 0) { + setPscConnectionStatusValue(other.getPscConnectionStatusValue()); + } + if (other.connectionType_ != 0) { + setConnectionTypeValue(other.getConnectionTypeValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -753,6 +975,24 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 42 + case 50: + { + serviceAttachment_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 64: + { + pscConnectionStatus_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 64 + case 80: + { + connectionType_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 80 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -777,11 +1017,11 @@ public Builder mergeFrom( * * *
    -     * Output only. The PSC connection id of the forwarding rule connected to the
    +     * Required. The PSC connection id of the forwarding rule connected to the
          * service attachment.
          * 
    * - * string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string psc_connection_id = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The pscConnectionId. */ @@ -800,11 +1040,11 @@ public java.lang.String getPscConnectionId() { * * *
    -     * Output only. The PSC connection id of the forwarding rule connected to the
    +     * Required. The PSC connection id of the forwarding rule connected to the
          * service attachment.
          * 
    * - * string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string psc_connection_id = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for pscConnectionId. */ @@ -823,11 +1063,11 @@ public com.google.protobuf.ByteString getPscConnectionIdBytes() { * * *
    -     * Output only. The PSC connection id of the forwarding rule connected to the
    +     * Required. The PSC connection id of the forwarding rule connected to the
          * service attachment.
          * 
    * - * string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string psc_connection_id = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The pscConnectionId to set. * @return This builder for chaining. @@ -845,11 +1085,11 @@ public Builder setPscConnectionId(java.lang.String value) { * * *
    -     * Output only. The PSC connection id of the forwarding rule connected to the
    +     * Required. The PSC connection id of the forwarding rule connected to the
          * service attachment.
          * 
    * - * string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string psc_connection_id = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -863,11 +1103,11 @@ public Builder clearPscConnectionId() { * * *
    -     * Output only. The PSC connection id of the forwarding rule connected to the
    +     * Required. The PSC connection id of the forwarding rule connected to the
          * service attachment.
          * 
    * - * string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string psc_connection_id = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for pscConnectionId to set. * @return This builder for chaining. @@ -888,11 +1128,13 @@ public Builder setPscConnectionIdBytes(com.google.protobuf.ByteString value) { * * *
    -     * Output only. The IP allocated on the consumer network for the PSC
    -     * forwarding rule.
    +     * Required. The IP allocated on the consumer network for the PSC forwarding
    +     * rule.
          * 
    * - * string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * * * @return The address. */ @@ -911,11 +1153,13 @@ public java.lang.String getAddress() { * * *
    -     * Output only. The IP allocated on the consumer network for the PSC
    -     * forwarding rule.
    +     * Required. The IP allocated on the consumer network for the PSC forwarding
    +     * rule.
          * 
    * - * string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * * * @return The bytes for address. */ @@ -934,11 +1178,13 @@ public com.google.protobuf.ByteString getAddressBytes() { * * *
    -     * Output only. The IP allocated on the consumer network for the PSC
    -     * forwarding rule.
    +     * Required. The IP allocated on the consumer network for the PSC forwarding
    +     * rule.
          * 
    * - * string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * * * @param value The address to set. * @return This builder for chaining. @@ -956,11 +1202,13 @@ public Builder setAddress(java.lang.String value) { * * *
    -     * Output only. The IP allocated on the consumer network for the PSC
    -     * forwarding rule.
    +     * Required. The IP allocated on the consumer network for the PSC forwarding
    +     * rule.
          * 
    * - * string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * * * @return This builder for chaining. */ @@ -974,11 +1222,13 @@ public Builder clearAddress() { * * *
    -     * Output only. The IP allocated on the consumer network for the PSC
    -     * forwarding rule.
    +     * Required. The IP allocated on the consumer network for the PSC forwarding
    +     * rule.
          * 
    * - * string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * * * @param value The bytes for address to set. * @return This builder for chaining. @@ -999,12 +1249,14 @@ public Builder setAddressBytes(com.google.protobuf.ByteString value) { * * *
    -     * Output only. The URI of the consumer side forwarding rule.
    +     * Required. The URI of the consumer side forwarding rule.
          * Example:
          * projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
          * 
    * - * string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string forwarding_rule = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The forwardingRule. */ @@ -1023,12 +1275,14 @@ public java.lang.String getForwardingRule() { * * *
    -     * Output only. The URI of the consumer side forwarding rule.
    +     * Required. The URI of the consumer side forwarding rule.
          * Example:
          * projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
          * 
    * - * string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string forwarding_rule = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for forwardingRule. */ @@ -1047,12 +1301,14 @@ public com.google.protobuf.ByteString getForwardingRuleBytes() { * * *
    -     * Output only. The URI of the consumer side forwarding rule.
    +     * Required. The URI of the consumer side forwarding rule.
          * Example:
          * projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
          * 
    * - * string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string forwarding_rule = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The forwardingRule to set. * @return This builder for chaining. @@ -1070,12 +1326,14 @@ public Builder setForwardingRule(java.lang.String value) { * * *
    -     * Output only. The URI of the consumer side forwarding rule.
    +     * Required. The URI of the consumer side forwarding rule.
          * Example:
          * projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
          * 
    * - * string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string forwarding_rule = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -1089,12 +1347,14 @@ public Builder clearForwardingRule() { * * *
    -     * Output only. The URI of the consumer side forwarding rule.
    +     * Required. The URI of the consumer side forwarding rule.
          * Example:
          * projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
          * 
    * - * string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string forwarding_rule = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for forwardingRule to set. * @return This builder for chaining. @@ -1115,11 +1375,11 @@ public Builder setForwardingRuleBytes(com.google.protobuf.ByteString value) { * * *
    -     * Output only. The consumer project_id where the forwarding rule is created
    -     * from.
    +     * Optional. Project ID of the consumer project where the forwarding rule is
    +     * created in.
          * 
    * - * string project_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string project_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The projectId. */ @@ -1138,11 +1398,11 @@ public java.lang.String getProjectId() { * * *
    -     * Output only. The consumer project_id where the forwarding rule is created
    -     * from.
    +     * Optional. Project ID of the consumer project where the forwarding rule is
    +     * created in.
          * 
    * - * string project_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string project_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for projectId. */ @@ -1161,11 +1421,11 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
    -     * Output only. The consumer project_id where the forwarding rule is created
    -     * from.
    +     * Optional. Project ID of the consumer project where the forwarding rule is
    +     * created in.
          * 
    * - * string project_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string project_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The projectId to set. * @return This builder for chaining. @@ -1183,11 +1443,11 @@ public Builder setProjectId(java.lang.String value) { * * *
    -     * Output only. The consumer project_id where the forwarding rule is created
    -     * from.
    +     * Optional. Project ID of the consumer project where the forwarding rule is
    +     * created in.
          * 
    * - * string project_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string project_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1201,11 +1461,11 @@ public Builder clearProjectId() { * * *
    -     * Output only. The consumer project_id where the forwarding rule is created
    -     * from.
    +     * Optional. Project ID of the consumer project where the forwarding rule is
    +     * created in.
          * 
    * - * string project_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string project_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for projectId to set. * @return This builder for chaining. @@ -1226,11 +1486,13 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * * *
    -     * The consumer network where the IP address resides, in the form of
    +     * Required. The consumer network where the IP address resides, in the form of
          * projects/{project_id}/global/networks/{network_id}.
          * 
    * - * string network = 5; + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The network. */ @@ -1249,11 +1511,13 @@ public java.lang.String getNetwork() { * * *
    -     * The consumer network where the IP address resides, in the form of
    +     * Required. The consumer network where the IP address resides, in the form of
          * projects/{project_id}/global/networks/{network_id}.
          * 
    * - * string network = 5; + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for network. */ @@ -1272,11 +1536,13 @@ public com.google.protobuf.ByteString getNetworkBytes() { * * *
    -     * The consumer network where the IP address resides, in the form of
    +     * Required. The consumer network where the IP address resides, in the form of
          * projects/{project_id}/global/networks/{network_id}.
          * 
    * - * string network = 5; + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The network to set. * @return This builder for chaining. @@ -1294,11 +1560,13 @@ public Builder setNetwork(java.lang.String value) { * * *
    -     * The consumer network where the IP address resides, in the form of
    +     * Required. The consumer network where the IP address resides, in the form of
          * projects/{project_id}/global/networks/{network_id}.
          * 
    * - * string network = 5; + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -1312,11 +1580,13 @@ public Builder clearNetwork() { * * *
    -     * The consumer network where the IP address resides, in the form of
    +     * Required. The consumer network where the IP address resides, in the form of
          * projects/{project_id}/global/networks/{network_id}.
          * 
    * - * string network = 5; + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for network to set. * @return This builder for chaining. @@ -1332,6 +1602,353 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object serviceAttachment_ = ""; + /** + * + * + *
    +     * Required. The service attachment which is the target of the PSC connection,
    +     * in the form of
    +     * projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
    +     * 
    + * + * + * string service_attachment = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The serviceAttachment. + */ + public java.lang.String getServiceAttachment() { + java.lang.Object ref = serviceAttachment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAttachment_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. The service attachment which is the target of the PSC connection,
    +     * in the form of
    +     * projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
    +     * 
    + * + * + * string service_attachment = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for serviceAttachment. + */ + public com.google.protobuf.ByteString getServiceAttachmentBytes() { + java.lang.Object ref = serviceAttachment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAttachment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. The service attachment which is the target of the PSC connection,
    +     * in the form of
    +     * projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
    +     * 
    + * + * + * string service_attachment = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The serviceAttachment to set. + * @return This builder for chaining. + */ + public Builder setServiceAttachment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceAttachment_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The service attachment which is the target of the PSC connection,
    +     * in the form of
    +     * projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
    +     * 
    + * + * + * string service_attachment = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearServiceAttachment() { + serviceAttachment_ = getDefaultInstance().getServiceAttachment(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The service attachment which is the target of the PSC connection,
    +     * in the form of
    +     * projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
    +     * 
    + * + * + * string service_attachment = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for serviceAttachment to set. + * @return This builder for chaining. + */ + public Builder setServiceAttachmentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAttachment_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private int pscConnectionStatus_ = 0; + /** + * + * + *
    +     * Output only. The status of the PSC connection.
    +     * Please note that this value is updated periodically.
    +     * To get the latest status of a PSC connection, follow
    +     * https://cloud.google.com/vpc/docs/configure-private-service-connect-services#endpoint-details.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for pscConnectionStatus. + */ + @java.lang.Override + public int getPscConnectionStatusValue() { + return pscConnectionStatus_; + } + /** + * + * + *
    +     * Output only. The status of the PSC connection.
    +     * Please note that this value is updated periodically.
    +     * To get the latest status of a PSC connection, follow
    +     * https://cloud.google.com/vpc/docs/configure-private-service-connect-services#endpoint-details.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for pscConnectionStatus to set. + * @return This builder for chaining. + */ + public Builder setPscConnectionStatusValue(int value) { + pscConnectionStatus_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The status of the PSC connection.
    +     * Please note that this value is updated periodically.
    +     * To get the latest status of a PSC connection, follow
    +     * https://cloud.google.com/vpc/docs/configure-private-service-connect-services#endpoint-details.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pscConnectionStatus. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.PscConnectionStatus getPscConnectionStatus() { + com.google.cloud.redis.cluster.v1beta1.PscConnectionStatus result = + com.google.cloud.redis.cluster.v1beta1.PscConnectionStatus.forNumber( + pscConnectionStatus_); + return result == null + ? com.google.cloud.redis.cluster.v1beta1.PscConnectionStatus.UNRECOGNIZED + : result; + } + /** + * + * + *
    +     * Output only. The status of the PSC connection.
    +     * Please note that this value is updated periodically.
    +     * To get the latest status of a PSC connection, follow
    +     * https://cloud.google.com/vpc/docs/configure-private-service-connect-services#endpoint-details.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The pscConnectionStatus to set. + * @return This builder for chaining. + */ + public Builder setPscConnectionStatus( + com.google.cloud.redis.cluster.v1beta1.PscConnectionStatus value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + pscConnectionStatus_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The status of the PSC connection.
    +     * Please note that this value is updated periodically.
    +     * To get the latest status of a PSC connection, follow
    +     * https://cloud.google.com/vpc/docs/configure-private-service-connect-services#endpoint-details.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearPscConnectionStatus() { + bitField0_ = (bitField0_ & ~0x00000040); + pscConnectionStatus_ = 0; + onChanged(); + return this; + } + + private int connectionType_ = 0; + /** + * + * + *
    +     * Output only. Type of the PSC connection.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for connectionType. + */ + @java.lang.Override + public int getConnectionTypeValue() { + return connectionType_; + } + /** + * + * + *
    +     * Output only. Type of the PSC connection.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for connectionType to set. + * @return This builder for chaining. + */ + public Builder setConnectionTypeValue(int value) { + connectionType_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Type of the PSC connection.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The connectionType. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ConnectionType getConnectionType() { + com.google.cloud.redis.cluster.v1beta1.ConnectionType result = + com.google.cloud.redis.cluster.v1beta1.ConnectionType.forNumber(connectionType_); + return result == null + ? com.google.cloud.redis.cluster.v1beta1.ConnectionType.UNRECOGNIZED + : result; + } + /** + * + * + *
    +     * Output only. Type of the PSC connection.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The connectionType to set. + * @return This builder for chaining. + */ + public Builder setConnectionType(com.google.cloud.redis.cluster.v1beta1.ConnectionType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + connectionType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Type of the PSC connection.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearConnectionType() { + bitField0_ = (bitField0_ & ~0x00000080); + connectionType_ = 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-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/PscConnectionOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/PscConnectionOrBuilder.java index 24dd70f3c513..7a581a048bfa 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/PscConnectionOrBuilder.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/PscConnectionOrBuilder.java @@ -28,11 +28,11 @@ public interface PscConnectionOrBuilder * * *
    -   * Output only. The PSC connection id of the forwarding rule connected to the
    +   * Required. The PSC connection id of the forwarding rule connected to the
        * service attachment.
        * 
    * - * string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string psc_connection_id = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The pscConnectionId. */ @@ -41,11 +41,11 @@ public interface PscConnectionOrBuilder * * *
    -   * Output only. The PSC connection id of the forwarding rule connected to the
    +   * Required. The PSC connection id of the forwarding rule connected to the
        * service attachment.
        * 
    * - * string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string psc_connection_id = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for pscConnectionId. */ @@ -55,11 +55,13 @@ public interface PscConnectionOrBuilder * * *
    -   * Output only. The IP allocated on the consumer network for the PSC
    -   * forwarding rule.
    +   * Required. The IP allocated on the consumer network for the PSC forwarding
    +   * rule.
        * 
    * - * string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * * * @return The address. */ @@ -68,11 +70,13 @@ public interface PscConnectionOrBuilder * * *
    -   * Output only. The IP allocated on the consumer network for the PSC
    -   * forwarding rule.
    +   * Required. The IP allocated on the consumer network for the PSC forwarding
    +   * rule.
        * 
    * - * string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * * * @return The bytes for address. */ @@ -82,12 +86,14 @@ public interface PscConnectionOrBuilder * * *
    -   * Output only. The URI of the consumer side forwarding rule.
    +   * Required. The URI of the consumer side forwarding rule.
        * Example:
        * projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
        * 
    * - * string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string forwarding_rule = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The forwardingRule. */ @@ -96,12 +102,14 @@ public interface PscConnectionOrBuilder * * *
    -   * Output only. The URI of the consumer side forwarding rule.
    +   * Required. The URI of the consumer side forwarding rule.
        * Example:
        * projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
        * 
    * - * string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * string forwarding_rule = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for forwardingRule. */ @@ -111,11 +119,11 @@ public interface PscConnectionOrBuilder * * *
    -   * Output only. The consumer project_id where the forwarding rule is created
    -   * from.
    +   * Optional. Project ID of the consumer project where the forwarding rule is
    +   * created in.
        * 
    * - * string project_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string project_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The projectId. */ @@ -124,11 +132,11 @@ public interface PscConnectionOrBuilder * * *
    -   * Output only. The consumer project_id where the forwarding rule is created
    -   * from.
    +   * Optional. Project ID of the consumer project where the forwarding rule is
    +   * created in.
        * 
    * - * string project_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string project_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for projectId. */ @@ -138,11 +146,13 @@ public interface PscConnectionOrBuilder * * *
    -   * The consumer network where the IP address resides, in the form of
    +   * Required. The consumer network where the IP address resides, in the form of
        * projects/{project_id}/global/networks/{network_id}.
        * 
    * - * string network = 5; + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The network. */ @@ -151,13 +161,112 @@ public interface PscConnectionOrBuilder * * *
    -   * The consumer network where the IP address resides, in the form of
    +   * Required. The consumer network where the IP address resides, in the form of
        * projects/{project_id}/global/networks/{network_id}.
        * 
    * - * string network = 5; + * + * string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for network. */ com.google.protobuf.ByteString getNetworkBytes(); + + /** + * + * + *
    +   * Required. The service attachment which is the target of the PSC connection,
    +   * in the form of
    +   * projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
    +   * 
    + * + * + * string service_attachment = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The serviceAttachment. + */ + java.lang.String getServiceAttachment(); + /** + * + * + *
    +   * Required. The service attachment which is the target of the PSC connection,
    +   * in the form of
    +   * projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
    +   * 
    + * + * + * string service_attachment = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for serviceAttachment. + */ + com.google.protobuf.ByteString getServiceAttachmentBytes(); + + /** + * + * + *
    +   * Output only. The status of the PSC connection.
    +   * Please note that this value is updated periodically.
    +   * To get the latest status of a PSC connection, follow
    +   * https://cloud.google.com/vpc/docs/configure-private-service-connect-services#endpoint-details.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for pscConnectionStatus. + */ + int getPscConnectionStatusValue(); + /** + * + * + *
    +   * Output only. The status of the PSC connection.
    +   * Please note that this value is updated periodically.
    +   * To get the latest status of a PSC connection, follow
    +   * https://cloud.google.com/vpc/docs/configure-private-service-connect-services#endpoint-details.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pscConnectionStatus. + */ + com.google.cloud.redis.cluster.v1beta1.PscConnectionStatus getPscConnectionStatus(); + + /** + * + * + *
    +   * Output only. Type of the PSC connection.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for connectionType. + */ + int getConnectionTypeValue(); + /** + * + * + *
    +   * Output only. Type of the PSC connection.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The connectionType. + */ + com.google.cloud.redis.cluster.v1beta1.ConnectionType getConnectionType(); } diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/PscConnectionStatus.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/PscConnectionStatus.java new file mode 100644 index 000000000000..161f6ee6d79a --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/PscConnectionStatus.java @@ -0,0 +1,182 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
    + * Status of the PSC connection.
    + * 
    + * + * Protobuf enum {@code google.cloud.redis.cluster.v1beta1.PscConnectionStatus} + */ +public enum PscConnectionStatus implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +   * PSC connection status is not specified.
    +   * 
    + * + * PSC_CONNECTION_STATUS_UNSPECIFIED = 0; + */ + PSC_CONNECTION_STATUS_UNSPECIFIED(0), + /** + * + * + *
    +   * The connection is active
    +   * 
    + * + * PSC_CONNECTION_STATUS_ACTIVE = 1; + */ + PSC_CONNECTION_STATUS_ACTIVE(1), + /** + * + * + *
    +   * Connection not found
    +   * 
    + * + * PSC_CONNECTION_STATUS_NOT_FOUND = 2; + */ + PSC_CONNECTION_STATUS_NOT_FOUND(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +   * PSC connection status is not specified.
    +   * 
    + * + * PSC_CONNECTION_STATUS_UNSPECIFIED = 0; + */ + public static final int PSC_CONNECTION_STATUS_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +   * The connection is active
    +   * 
    + * + * PSC_CONNECTION_STATUS_ACTIVE = 1; + */ + public static final int PSC_CONNECTION_STATUS_ACTIVE_VALUE = 1; + /** + * + * + *
    +   * Connection not found
    +   * 
    + * + * PSC_CONNECTION_STATUS_NOT_FOUND = 2; + */ + public static final int PSC_CONNECTION_STATUS_NOT_FOUND_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 PscConnectionStatus 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 PscConnectionStatus forNumber(int value) { + switch (value) { + case 0: + return PSC_CONNECTION_STATUS_UNSPECIFIED; + case 1: + return PSC_CONNECTION_STATUS_ACTIVE; + case 2: + return PSC_CONNECTION_STATUS_NOT_FOUND; + 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 PscConnectionStatus findValueByNumber(int number) { + return PscConnectionStatus.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.redis.cluster.v1beta1.CloudRedisClusterProto.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final PscConnectionStatus[] VALUES = values(); + + public static PscConnectionStatus 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 PscConnectionStatus(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.redis.cluster.v1beta1.PscConnectionStatus) +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/PscServiceAttachment.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/PscServiceAttachment.java new file mode 100644 index 000000000000..9cdafb4a2b06 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/PscServiceAttachment.java @@ -0,0 +1,805 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
    + * Configuration of a service attachment of the cluster, for creating PSC
    + * connections.
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.PscServiceAttachment} + */ +public final class PscServiceAttachment extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.PscServiceAttachment) + PscServiceAttachmentOrBuilder { + private static final long serialVersionUID = 0L; + // Use PscServiceAttachment.newBuilder() to construct. + private PscServiceAttachment(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PscServiceAttachment() { + serviceAttachment_ = ""; + connectionType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PscServiceAttachment(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_PscServiceAttachment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_PscServiceAttachment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment.class, + com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment.Builder.class); + } + + public static final int SERVICE_ATTACHMENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAttachment_ = ""; + /** + * + * + *
    +   * Output only. Service attachment URI which your self-created PscConnection
    +   * should use as target
    +   * 
    + * + * string service_attachment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serviceAttachment. + */ + @java.lang.Override + public java.lang.String getServiceAttachment() { + java.lang.Object ref = serviceAttachment_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAttachment_ = s; + return s; + } + } + /** + * + * + *
    +   * Output only. Service attachment URI which your self-created PscConnection
    +   * should use as target
    +   * 
    + * + * string service_attachment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serviceAttachment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAttachmentBytes() { + java.lang.Object ref = serviceAttachment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAttachment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONNECTION_TYPE_FIELD_NUMBER = 3; + private int connectionType_ = 0; + /** + * + * + *
    +   * Output only. Type of a PSC connection targeting this service attachment.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for connectionType. + */ + @java.lang.Override + public int getConnectionTypeValue() { + return connectionType_; + } + /** + * + * + *
    +   * Output only. Type of a PSC connection targeting this service attachment.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The connectionType. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ConnectionType getConnectionType() { + com.google.cloud.redis.cluster.v1beta1.ConnectionType result = + com.google.cloud.redis.cluster.v1beta1.ConnectionType.forNumber(connectionType_); + return result == null + ? com.google.cloud.redis.cluster.v1beta1.ConnectionType.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(serviceAttachment_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceAttachment_); + } + if (connectionType_ + != com.google.cloud.redis.cluster.v1beta1.ConnectionType.CONNECTION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, connectionType_); + } + 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(serviceAttachment_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceAttachment_); + } + if (connectionType_ + != com.google.cloud.redis.cluster.v1beta1.ConnectionType.CONNECTION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, connectionType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment other = + (com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment) obj; + + if (!getServiceAttachment().equals(other.getServiceAttachment())) return false; + if (connectionType_ != other.connectionType_) return false; + if (!getUnknownFields().equals(other.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_ATTACHMENT_FIELD_NUMBER; + hash = (53 * hash) + getServiceAttachment().hashCode(); + hash = (37 * hash) + CONNECTION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + connectionType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Configuration of a service attachment of the cluster, for creating PSC
    +   * connections.
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.PscServiceAttachment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.PscServiceAttachment) + com.google.cloud.redis.cluster.v1beta1.PscServiceAttachmentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_PscServiceAttachment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_PscServiceAttachment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment.class, + com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + serviceAttachment_ = ""; + connectionType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_PscServiceAttachment_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment build() { + com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment buildPartial() { + com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment result = + new com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.serviceAttachment_ = serviceAttachment_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.connectionType_ = connectionType_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment) { + return mergeFrom((com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment other) { + if (other == com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment.getDefaultInstance()) + return this; + if (!other.getServiceAttachment().isEmpty()) { + serviceAttachment_ = other.serviceAttachment_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.connectionType_ != 0) { + setConnectionTypeValue(other.getConnectionTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + serviceAttachment_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 24: + { + connectionType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object serviceAttachment_ = ""; + /** + * + * + *
    +     * Output only. Service attachment URI which your self-created PscConnection
    +     * should use as target
    +     * 
    + * + * string service_attachment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serviceAttachment. + */ + public java.lang.String getServiceAttachment() { + java.lang.Object ref = serviceAttachment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAttachment_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Output only. Service attachment URI which your self-created PscConnection
    +     * should use as target
    +     * 
    + * + * string service_attachment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serviceAttachment. + */ + public com.google.protobuf.ByteString getServiceAttachmentBytes() { + java.lang.Object ref = serviceAttachment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAttachment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Output only. Service attachment URI which your self-created PscConnection
    +     * should use as target
    +     * 
    + * + * string service_attachment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The serviceAttachment to set. + * @return This builder for chaining. + */ + public Builder setServiceAttachment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceAttachment_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Service attachment URI which your self-created PscConnection
    +     * should use as target
    +     * 
    + * + * string service_attachment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearServiceAttachment() { + serviceAttachment_ = getDefaultInstance().getServiceAttachment(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Service attachment URI which your self-created PscConnection
    +     * should use as target
    +     * 
    + * + * string service_attachment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for serviceAttachment to set. + * @return This builder for chaining. + */ + public Builder setServiceAttachmentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAttachment_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int connectionType_ = 0; + /** + * + * + *
    +     * Output only. Type of a PSC connection targeting this service attachment.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for connectionType. + */ + @java.lang.Override + public int getConnectionTypeValue() { + return connectionType_; + } + /** + * + * + *
    +     * Output only. Type of a PSC connection targeting this service attachment.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for connectionType to set. + * @return This builder for chaining. + */ + public Builder setConnectionTypeValue(int value) { + connectionType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Type of a PSC connection targeting this service attachment.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The connectionType. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ConnectionType getConnectionType() { + com.google.cloud.redis.cluster.v1beta1.ConnectionType result = + com.google.cloud.redis.cluster.v1beta1.ConnectionType.forNumber(connectionType_); + return result == null + ? com.google.cloud.redis.cluster.v1beta1.ConnectionType.UNRECOGNIZED + : result; + } + /** + * + * + *
    +     * Output only. Type of a PSC connection targeting this service attachment.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The connectionType to set. + * @return This builder for chaining. + */ + public Builder setConnectionType(com.google.cloud.redis.cluster.v1beta1.ConnectionType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + connectionType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Type of a PSC connection targeting this service attachment.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearConnectionType() { + bitField0_ = (bitField0_ & ~0x00000002); + connectionType_ = 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.redis.cluster.v1beta1.PscServiceAttachment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.PscServiceAttachment) + private static final com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment(); + } + + public static com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PscServiceAttachment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.PscServiceAttachment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/PscServiceAttachmentOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/PscServiceAttachmentOrBuilder.java new file mode 100644 index 000000000000..ef71ff49de5a --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/PscServiceAttachmentOrBuilder.java @@ -0,0 +1,82 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +public interface PscServiceAttachmentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.PscServiceAttachment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Output only. Service attachment URI which your self-created PscConnection
    +   * should use as target
    +   * 
    + * + * string service_attachment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The serviceAttachment. + */ + java.lang.String getServiceAttachment(); + /** + * + * + *
    +   * Output only. Service attachment URI which your self-created PscConnection
    +   * should use as target
    +   * 
    + * + * string service_attachment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for serviceAttachment. + */ + com.google.protobuf.ByteString getServiceAttachmentBytes(); + + /** + * + * + *
    +   * Output only. Type of a PSC connection targeting this service attachment.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for connectionType. + */ + int getConnectionTypeValue(); + /** + * + * + *
    +   * Output only. Type of a PSC connection targeting this service attachment.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The connectionType. + */ + com.google.cloud.redis.cluster.v1beta1.ConnectionType getConnectionType(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/RescheduleClusterMaintenanceRequest.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/RescheduleClusterMaintenanceRequest.java new file mode 100644 index 000000000000..a57885c4a378 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/RescheduleClusterMaintenanceRequest.java @@ -0,0 +1,1345 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
    + * Request for rescheduling a cluster maintenance.
    + * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest} + */ +public final class RescheduleClusterMaintenanceRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest) + RescheduleClusterMaintenanceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use RescheduleClusterMaintenanceRequest.newBuilder() to construct. + private RescheduleClusterMaintenanceRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RescheduleClusterMaintenanceRequest() { + name_ = ""; + rescheduleType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RescheduleClusterMaintenanceRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_RescheduleClusterMaintenanceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_RescheduleClusterMaintenanceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest.class, + com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest.Builder + .class); + } + + /** + * + * + *
    +   * Reschedule options.
    +   * 
    + * + * Protobuf enum {@code + * google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest.RescheduleType} + */ + public enum RescheduleType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Not set.
    +     * 
    + * + * RESCHEDULE_TYPE_UNSPECIFIED = 0; + */ + RESCHEDULE_TYPE_UNSPECIFIED(0), + /** + * + * + *
    +     * If the user wants to schedule the maintenance to happen now.
    +     * 
    + * + * IMMEDIATE = 1; + */ + IMMEDIATE(1), + /** + * + * + *
    +     * If the user wants to reschedule the maintenance to a specific time.
    +     * 
    + * + * SPECIFIC_TIME = 3; + */ + SPECIFIC_TIME(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Not set.
    +     * 
    + * + * RESCHEDULE_TYPE_UNSPECIFIED = 0; + */ + public static final int RESCHEDULE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +     * If the user wants to schedule the maintenance to happen now.
    +     * 
    + * + * IMMEDIATE = 1; + */ + public static final int IMMEDIATE_VALUE = 1; + /** + * + * + *
    +     * If the user wants to reschedule the maintenance to a specific time.
    +     * 
    + * + * SPECIFIC_TIME = 3; + */ + public static final int SPECIFIC_TIME_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 RescheduleType 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 RescheduleType forNumber(int value) { + switch (value) { + case 0: + return RESCHEDULE_TYPE_UNSPECIFIED; + case 1: + return IMMEDIATE; + case 3: + return SPECIFIC_TIME; + 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 RescheduleType findValueByNumber(int number) { + return RescheduleType.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.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final RescheduleType[] VALUES = values(); + + public static RescheduleType 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 RescheduleType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest.RescheduleType) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Required. Redis Cluster instance resource name using the form:
    +   *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +   * where `location_id` refers to a GCP region.
    +   * 
    + * + * + * 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. Redis Cluster instance resource name using the form:
    +   *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +   * where `location_id` refers to a GCP region.
    +   * 
    + * + * + * 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 RESCHEDULE_TYPE_FIELD_NUMBER = 2; + private int rescheduleType_ = 0; + /** + * + * + *
    +   * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as
    +   * well.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for rescheduleType. + */ + @java.lang.Override + public int getRescheduleTypeValue() { + return rescheduleType_; + } + /** + * + * + *
    +   * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as
    +   * well.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rescheduleType. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest.RescheduleType + getRescheduleType() { + com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest.RescheduleType + result = + com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest + .RescheduleType.forNumber(rescheduleType_); + return result == null + ? com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest.RescheduleType + .UNRECOGNIZED + : result; + } + + public static final int SCHEDULE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp scheduleTime_; + /** + * + * + *
    +   * Optional. Timestamp when the maintenance shall be rescheduled to if
    +   * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    +   * example `2012-11-15T16:19:00.094Z`.
    +   * 
    + * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the scheduleTime field is set. + */ + @java.lang.Override + public boolean hasScheduleTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * Optional. Timestamp when the maintenance shall be rescheduled to if
    +   * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    +   * example `2012-11-15T16:19:00.094Z`.
    +   * 
    + * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The scheduleTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getScheduleTime() { + return scheduleTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : scheduleTime_; + } + /** + * + * + *
    +   * Optional. Timestamp when the maintenance shall be rescheduled to if
    +   * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    +   * example `2012-11-15T16:19:00.094Z`.
    +   * 
    + * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { + return scheduleTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : scheduleTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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 (rescheduleType_ + != com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest.RescheduleType + .RESCHEDULE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, rescheduleType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getScheduleTime()); + } + 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 (rescheduleType_ + != com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest.RescheduleType + .RESCHEDULE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, rescheduleType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getScheduleTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest other = + (com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (rescheduleType_ != other.rescheduleType_) return false; + if (hasScheduleTime() != other.hasScheduleTime()) return false; + if (hasScheduleTime()) { + if (!getScheduleTime().equals(other.getScheduleTime())) return false; + } + if (!getUnknownFields().equals(other.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) + RESCHEDULE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + rescheduleType_; + if (hasScheduleTime()) { + hash = (37 * hash) + SCHEDULE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getScheduleTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 rescheduling a cluster maintenance.
    +   * 
    + * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest) + com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_RescheduleClusterMaintenanceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_RescheduleClusterMaintenanceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest.class, + com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getScheduleTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + rescheduleType_ = 0; + scheduleTime_ = null; + if (scheduleTimeBuilder_ != null) { + scheduleTimeBuilder_.dispose(); + scheduleTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_RescheduleClusterMaintenanceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest build() { + com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest + buildPartial() { + com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest result = + new com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rescheduleType_ = rescheduleType_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.scheduleTime_ = + scheduleTimeBuilder_ == null ? scheduleTime_ : scheduleTimeBuilder_.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.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest) { + return mergeFrom( + (com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest other) { + if (other + == com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.rescheduleType_ != 0) { + setRescheduleTypeValue(other.getRescheduleTypeValue()); + } + if (other.hasScheduleTime()) { + mergeScheduleTime(other.getScheduleTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + rescheduleType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage(getScheduleTimeFieldBuilder().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 name_ = ""; + /** + * + * + *
    +     * Required. Redis Cluster instance resource name using the form:
    +     *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +     * where `location_id` refers to a GCP region.
    +     * 
    + * + * + * 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. Redis Cluster instance resource name using the form:
    +     *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +     * where `location_id` refers to a GCP region.
    +     * 
    + * + * + * 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. Redis Cluster instance resource name using the form:
    +     *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +     * where `location_id` refers to a GCP region.
    +     * 
    + * + * + * 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. Redis Cluster instance resource name using the form:
    +     *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +     * where `location_id` refers to a GCP region.
    +     * 
    + * + * + * 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. Redis Cluster instance resource name using the form:
    +     *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +     * where `location_id` refers to a GCP region.
    +     * 
    + * + * + * 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 rescheduleType_ = 0; + /** + * + * + *
    +     * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as
    +     * well.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for rescheduleType. + */ + @java.lang.Override + public int getRescheduleTypeValue() { + return rescheduleType_; + } + /** + * + * + *
    +     * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as
    +     * well.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for rescheduleType to set. + * @return This builder for chaining. + */ + public Builder setRescheduleTypeValue(int value) { + rescheduleType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as
    +     * well.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rescheduleType. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest.RescheduleType + getRescheduleType() { + com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest.RescheduleType + result = + com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest + .RescheduleType.forNumber(rescheduleType_); + return result == null + ? com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest + .RescheduleType.UNRECOGNIZED + : result; + } + /** + * + * + *
    +     * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as
    +     * well.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The rescheduleType to set. + * @return This builder for chaining. + */ + public Builder setRescheduleType( + com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest.RescheduleType + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + rescheduleType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as
    +     * well.
    +     * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearRescheduleType() { + bitField0_ = (bitField0_ & ~0x00000002); + rescheduleType_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp scheduleTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + scheduleTimeBuilder_; + /** + * + * + *
    +     * Optional. Timestamp when the maintenance shall be rescheduled to if
    +     * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    +     * example `2012-11-15T16:19:00.094Z`.
    +     * 
    + * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the scheduleTime field is set. + */ + public boolean hasScheduleTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +     * Optional. Timestamp when the maintenance shall be rescheduled to if
    +     * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    +     * example `2012-11-15T16:19:00.094Z`.
    +     * 
    + * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The scheduleTime. + */ + public com.google.protobuf.Timestamp getScheduleTime() { + if (scheduleTimeBuilder_ == null) { + return scheduleTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : scheduleTime_; + } else { + return scheduleTimeBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Optional. Timestamp when the maintenance shall be rescheduled to if
    +     * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    +     * example `2012-11-15T16:19:00.094Z`.
    +     * 
    + * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setScheduleTime(com.google.protobuf.Timestamp value) { + if (scheduleTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + scheduleTime_ = value; + } else { + scheduleTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. Timestamp when the maintenance shall be rescheduled to if
    +     * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    +     * example `2012-11-15T16:19:00.094Z`.
    +     * 
    + * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (scheduleTimeBuilder_ == null) { + scheduleTime_ = builderForValue.build(); + } else { + scheduleTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. Timestamp when the maintenance shall be rescheduled to if
    +     * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    +     * example `2012-11-15T16:19:00.094Z`.
    +     * 
    + * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) { + if (scheduleTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && scheduleTime_ != null + && scheduleTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getScheduleTimeBuilder().mergeFrom(value); + } else { + scheduleTime_ = value; + } + } else { + scheduleTimeBuilder_.mergeFrom(value); + } + if (scheduleTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Optional. Timestamp when the maintenance shall be rescheduled to if
    +     * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    +     * example `2012-11-15T16:19:00.094Z`.
    +     * 
    + * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearScheduleTime() { + bitField0_ = (bitField0_ & ~0x00000004); + scheduleTime_ = null; + if (scheduleTimeBuilder_ != null) { + scheduleTimeBuilder_.dispose(); + scheduleTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. Timestamp when the maintenance shall be rescheduled to if
    +     * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    +     * example `2012-11-15T16:19:00.094Z`.
    +     * 
    + * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getScheduleTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getScheduleTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Optional. Timestamp when the maintenance shall be rescheduled to if
    +     * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    +     * example `2012-11-15T16:19:00.094Z`.
    +     * 
    + * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { + if (scheduleTimeBuilder_ != null) { + return scheduleTimeBuilder_.getMessageOrBuilder(); + } else { + return scheduleTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : scheduleTime_; + } + } + /** + * + * + *
    +     * Optional. Timestamp when the maintenance shall be rescheduled to if
    +     * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    +     * example `2012-11-15T16:19:00.094Z`.
    +     * 
    + * + * .google.protobuf.Timestamp schedule_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> + getScheduleTimeFieldBuilder() { + if (scheduleTimeBuilder_ == null) { + scheduleTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getScheduleTime(), getParentForChildren(), isClean()); + scheduleTime_ = null; + } + return scheduleTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest) + private static final com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest(); + } + + public static com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RescheduleClusterMaintenanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/RescheduleClusterMaintenanceRequestOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/RescheduleClusterMaintenanceRequestOrBuilder.java new file mode 100644 index 000000000000..1629c9545e3e --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/RescheduleClusterMaintenanceRequestOrBuilder.java @@ -0,0 +1,135 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.redis.cluster.v1beta1; + +public interface RescheduleClusterMaintenanceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Redis Cluster instance resource name using the form:
    +   *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +   * where `location_id` refers to a GCP region.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Required. Redis Cluster instance resource name using the form:
    +   *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
    +   * where `location_id` refers to a GCP region.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as
    +   * well.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for rescheduleType. + */ + int getRescheduleTypeValue(); + /** + * + * + *
    +   * Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as
    +   * well.
    +   * 
    + * + * + * .google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest.RescheduleType reschedule_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rescheduleType. + */ + com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest.RescheduleType + getRescheduleType(); + + /** + * + * + *
    +   * Optional. Timestamp when the maintenance shall be rescheduled to if
    +   * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    +   * example `2012-11-15T16:19:00.094Z`.
    +   * 
    + * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the scheduleTime field is set. + */ + boolean hasScheduleTime(); + /** + * + * + *
    +   * Optional. Timestamp when the maintenance shall be rescheduled to if
    +   * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    +   * example `2012-11-15T16:19:00.094Z`.
    +   * 
    + * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The scheduleTime. + */ + com.google.protobuf.Timestamp getScheduleTime(); + /** + * + * + *
    +   * Optional. Timestamp when the maintenance shall be rescheduled to if
    +   * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for
    +   * example `2012-11-15T16:19:00.094Z`.
    +   * 
    + * + * .google.protobuf.Timestamp schedule_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/TransitEncryptionMode.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/TransitEncryptionMode.java index 0f6b1cc64cd4..d4551433d7cb 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/TransitEncryptionMode.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/TransitEncryptionMode.java @@ -156,7 +156,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto.getDescriptor() .getEnumTypes() - .get(2); + .get(3); } private static final TransitEncryptionMode[] VALUES = values(); diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ZoneDistributionConfig.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ZoneDistributionConfig.java index f406d3b28388..12cfb4d726fb 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ZoneDistributionConfig.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ZoneDistributionConfig.java @@ -69,9 +69,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
        * Defines various modes of zone distribution.
    -   * Currently supports two modes, can be expanded in future to support more
    -   * types of distribution modes.
    -   * design doc: go/same-zone-cluster
        * 
    * * Protobuf enum {@code diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/proto/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/proto/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto index 8114ac016064..16767bab268a 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/proto/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/proto/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto @@ -19,18 +19,42 @@ package google.cloud.redis.cluster.v1beta1; 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/longrunning/operations.proto"; import "google/protobuf/any.proto"; +import "google/protobuf/duration.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; +import "google/type/dayofweek.proto"; +import "google/type/timeofday.proto"; option go_package = "cloud.google.com/go/redis/cluster/apiv1beta1/clusterpb;clusterpb"; option java_multiple_files = true; option java_outer_classname = "CloudRedisClusterProto"; option java_package = "com.google.cloud.redis.cluster.v1beta1"; option ruby_package = "Google::Cloud::Redis::Cluster::V1beta1"; +option (google.api.resource_definition) = { + type: "compute.googleapis.com/ForwardingRule" + pattern: "projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}" +}; +option (google.api.resource_definition) = { + type: "compute.googleapis.com/Network" + pattern: "projects/{project}/global/networks/{network}" +}; +option (google.api.resource_definition) = { + type: "compute.googleapis.com/ServiceAttachment" + pattern: "projects/{project}/regions/{region}/serviceAttachments/{service_attachment}" +}; +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: "cloudkms.googleapis.com/CryptoKeyVersion" + pattern: "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}" +}; // Configures and manages Cloud Memorystore for Redis clusters // @@ -47,12 +71,6 @@ option ruby_package = "Google::Cloud::Redis::Cluster::V1beta1"; // // Note that location_id must be a GCP `region`; for example: // * `projects/redpepper-1290/locations/us-central1/clusters/my-redis` -// -// We use API version selector for Flex APIs -// * The versioning strategy is release-based versioning -// * Our backend CLH only deals with the superset version (called v1main) -// * Existing backend for Redis Gen1 and MRR is not touched. -// * More details in go/redis-flex-api-versioning service CloudRedisCluster { option (google.api.default_host) = "redis.googleapis.com"; option (google.api.oauth_scopes) = @@ -143,6 +161,119 @@ service CloudRedisCluster { }; option (google.api.method_signature) = "name"; } + + // Reschedules upcoming maintenance event. + rpc RescheduleClusterMaintenance(RescheduleClusterMaintenanceRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/clusters/*}:rescheduleClusterMaintenance" + body: "*" + }; + option (google.api.method_signature) = "name,reschedule_type,schedule_time"; + option (google.longrunning.operation_info) = { + response_type: "Cluster" + metadata_type: "google.protobuf.Any" + }; + } + + // Lists all backup collections owned by a consumer project in either the + // specified location (region) or all locations. + // + // If `location_id` is specified as `-` (wildcard), then all regions + // available to the project are queried, and the results are aggregated. + rpc ListBackupCollections(ListBackupCollectionsRequest) + returns (ListBackupCollectionsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*}/backupCollections" + }; + option (google.api.method_signature) = "parent"; + } + + // Get a backup collection. + rpc GetBackupCollection(GetBackupCollectionRequest) + returns (BackupCollection) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/backupCollections/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists all backups owned by a backup collection. + rpc ListBackups(ListBackupsRequest) returns (ListBackupsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*/backupCollections/*}/backups" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets the details of a specific backup. + rpc GetBackup(GetBackupRequest) returns (Backup) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/backupCollections/*/backups/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Deletes a specific backup. + rpc DeleteBackup(DeleteBackupRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/backupCollections/*/backups/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.protobuf.Any" + }; + } + + // Exports a specific backup to a customer target Cloud Storage URI. + rpc ExportBackup(ExportBackupRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/backupCollections/*/backups/*}:export" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "Backup" + metadata_type: "google.protobuf.Any" + }; + } + + // Backup Redis Cluster. + // If this is the first time a backup is being created, a backup collection + // will be created at the backend, and this backup belongs to this collection. + // Both collection and backup will have a resource name. Backup will be + // executed for each shard. A replica (primary if nonHA) will be selected to + // perform the execution. Backup call will be rejected if there is an ongoing + // backup or update operation. Be aware that during preview, if the cluster's + // internal software version is too old, critical update will be performed + // before actual backup. Once the internal software version is updated to the + // minimum version required by the backup feature, subsequent backups will not + // require critical update. After preview, there will be no critical update + // needed for backup. + rpc BackupCluster(BackupClusterRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/clusters/*}:backup" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "Cluster" + metadata_type: "google.protobuf.Any" + }; + } +} + +// Status of the PSC connection. +enum PscConnectionStatus { + // PSC connection status is not specified. + PSC_CONNECTION_STATUS_UNSPECIFIED = 0; + + // The connection is active + PSC_CONNECTION_STATUS_ACTIVE = 1; + + // Connection not found + PSC_CONNECTION_STATUS_NOT_FOUND = 2; } // Available authorization mode of a Redis cluster. @@ -159,6 +290,7 @@ enum AuthorizationMode { // NodeType of a redis cluster node, enum NodeType { + // Node type unspecified NODE_TYPE_UNSPECIFIED = 0; // Redis shared core nano node_type. @@ -186,6 +318,21 @@ enum TransitEncryptionMode { TRANSIT_ENCRYPTION_MODE_SERVER_AUTHENTICATION = 2; } +// Type of a PSC connection, for cluster access purpose. +enum ConnectionType { + // Cluster endpoint Type is not set + CONNECTION_TYPE_UNSPECIFIED = 0; + + // Cluster endpoint that will be used as for cluster topology discovery. + CONNECTION_TYPE_DISCOVERY = 1; + + // Cluster endpoint that will be used as primary endpoint to access primary. + CONNECTION_TYPE_PRIMARY = 2; + + // Cluster endpoint that will be used as reader endpoint to access replicas. + CONNECTION_TYPE_READER = 3; +} + // Request for [CreateCluster][CloudRedis.CreateCluster]. message CreateClusterRequest { // Required. The resource name of the cluster location using the form: @@ -322,11 +469,174 @@ message GetClusterCertificateAuthorityRequest { ]; } +// Request for [ListBackupCollections] +message ListBackupCollectionsRequest { + // Required. The resource name of the backupCollection location using the + // form: + // `projects/{project_id}/locations/{location_id}` + // where `location_id` refers to a GCP region. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "redis.googleapis.com/BackupCollection" + } + ]; + + // Optional. The maximum number of items to return. + // + // If not specified, a default value of 1000 will be used by the service. + // Regardless of the page_size value, the response may include a partial list + // and a caller should only rely on response's + // [`next_page_token`][google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse.next_page_token] + // to determine if there are more clusters left to be queried. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The `next_page_token` value returned from a previous + // [ListBackupCollections] request, if any. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response for [ListBackupCollections]. +message ListBackupCollectionsResponse { + // A list of backupCollections in the project. + // + // If the `location_id` in the parent field of the request is "-", all regions + // available to the project are queried, and the results aggregated. + // If in such an aggregated query a location is unavailable, a placeholder + // backupCollection entry is included in the response with the `name` field + // set to a value of the form + // `projects/{project_id}/locations/{location_id}/backupCollections/`- and the + // `status` field set to ERROR and `status_message` field set to "location not + // available for ListBackupCollections". + repeated BackupCollection backup_collections = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Request for [GetBackupCollection]. +message GetBackupCollectionRequest { + // Required. Redis backupCollection resource name using the form: + // `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}` + // where `location_id` refers to a GCP region. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "redis.googleapis.com/BackupCollection" + } + ]; +} + +// Request for [ListBackups]. +message ListBackupsRequest { + // Required. The resource name of the backupCollection using the form: + // `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "redis.googleapis.com/Backup" + } + ]; + + // Optional. The maximum number of items to return. + // + // If not specified, a default value of 1000 will be used by the service. + // Regardless of the page_size value, the response may include a partial list + // and a caller should only rely on response's + // [`next_page_token`][google.cloud.redis.cluster.v1beta1.ListBackupsResponse.next_page_token] + // to determine if there are more clusters left to be queried. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The `next_page_token` value returned from a previous + // [ListBackupCollections] request, if any. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response for [ListBackups]. +message ListBackupsResponse { + // A list of backups in the project. + repeated Backup backups = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; + + // Backups that could not be reached. + repeated string unreachable = 3; +} + +// Request for [GetBackup]. +message GetBackupRequest { + // Required. Redis backup resource name using the form: + // `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "redis.googleapis.com/Backup" } + ]; +} + +// Request for [DeleteBackup]. +message DeleteBackupRequest { + // Required. Redis backup resource name using the form: + // `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "redis.googleapis.com/Backup" } + ]; + + // Optional. Idempotent request UUID. + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Request for [ExportBackup]. +message ExportBackupRequest { + // Required. Specify destination to export a backup. + oneof destination { + // Google Cloud Storage bucket, like "my-bucket". + string gcs_bucket = 3; + } + + // Required. Redis backup resource name using the form: + // `projects/{project_id}/locations/{location_id}/backupCollections/{backup_collection_id}/backups/{backup_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "redis.googleapis.com/Backup" } + ]; +} + +// Request for [BackupCluster]. +message BackupClusterRequest { + // Required. Redis cluster resource name using the form: + // `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` + // where `location_id` refers to a GCP region. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "redis.googleapis.com/Cluster" } + ]; + + // Optional. TTL for the backup to expire. Value range is 1 day to 100 years. + // If not specified, the default value is 100 years. + google.protobuf.Duration ttl = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The id of the backup to be created. If not specified, the + // default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used. + optional string backup_id = 3 [(google.api.field_behavior) = OPTIONAL]; +} + // A cluster instance. message Cluster { option (google.api.resource) = { type: "redis.googleapis.com/Cluster" pattern: "projects/{project}/locations/{location}/clusters/{cluster}" + plural: "clusters" + singular: "cluster" }; // Represents additional information about the state of the cluster. @@ -346,6 +656,25 @@ message Cluster { } } + // Backups stored in Cloud Storage buckets. + // The Cloud Storage buckets need to be the same region as the clusters. + message GcsBackupSource { + // Optional. URIs of the GCS objects to import. + // Example: gs://bucket1/object1, gs://bucket2/folder2/object2 + repeated string uris = 1 [(google.api.field_behavior) = OPTIONAL]; + } + + // Backups that generated and managed by memorystore. + message ManagedBackupSource { + // Optional. Example: + // //redis.googleapis.com/projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup} + // A shorter version (without the prefix) of the backup name is also + // supported, like + // projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup_id} + // In this case, it assumes the backup is under redis.googleapis.com. + string backup = 1 [(google.api.field_behavior) = OPTIONAL]; + } + // Represents the different states of a Redis cluster. enum State { // Not set. @@ -364,10 +693,26 @@ message Cluster { DELETING = 4; } - // Required. Unique name of the resource in this scope including project and - // location using the form: + // The source to import from. + oneof import_sources { + // Optional. Backups stored in Cloud Storage buckets. + // The Cloud Storage buckets need to be the same region as the clusters. + // Read permission is required to import from the provided Cloud Storage + // objects. + GcsBackupSource gcs_source = 34 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Backups generated and managed by memorystore service. + ManagedBackupSource managed_backup_source = 35 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. Identifier. Unique name of the resource in this scope including + // project and location using the form: // `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` - string name = 1 [(google.api.field_behavior) = REQUIRED]; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IDENTIFIER + ]; // Output only. The timestamp associated with the cluster creation request. google.protobuf.Timestamp create_time = 3 @@ -397,21 +742,21 @@ message Cluster { // the next integer. optional int32 size_gb = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Required. Number of shards for the Redis cluster. - optional int32 shard_count = 14 [(google.api.field_behavior) = REQUIRED]; + // Optional. Number of shards for the Redis cluster. + optional int32 shard_count = 14 [(google.api.field_behavior) = OPTIONAL]; - // Required. Each PscConfig configures the consumer network where IPs will + // Optional. Each PscConfig configures the consumer network where IPs will // be designated to the cluster for client access through Private Service // Connect Automation. Currently, only one PscConfig is supported. - repeated PscConfig psc_configs = 15 [(google.api.field_behavior) = REQUIRED]; + repeated PscConfig psc_configs = 15 [(google.api.field_behavior) = OPTIONAL]; // Output only. Endpoints created on each given network, for Redis clients to // connect to the cluster. Currently only one discovery endpoint is supported. repeated DiscoveryEndpoint discovery_endpoints = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. PSC connections for discovery of the cluster topology and - // accessing the cluster. + // Output only. The list of PSC connections that are auto-created through + // service connectivity automation. repeated PscConnection psc_connections = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -440,9 +785,387 @@ message Cluster { ZoneDistributionConfig zone_distribution_config = 23 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Cross cluster replication config. + CrossClusterReplicationConfig cross_cluster_replication_config = 24 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. The delete operation will fail when the value is set to true. optional bool deletion_protection_enabled = 25 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. ClusterMaintenancePolicy determines when to allow or deny + // updates. + optional ClusterMaintenancePolicy maintenance_policy = 26 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. ClusterMaintenanceSchedule Output only Published maintenance + // schedule. + optional ClusterMaintenanceSchedule maintenance_schedule = 27 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Service attachment details to configure Psc connections + repeated PscServiceAttachment psc_service_attachments = 30 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. A list of cluster enpoints. + repeated ClusterEndpoint cluster_endpoints = 36 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Output only. The backup collection full resource name. Example: + // projects/{project}/locations/{location}/backupCollections/{collection} + optional string backup_collection = 39 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "redis.googleapis.com/BackupCollection" + } + ]; + + // Optional. The KMS key used to encrypt the at-rest data of the cluster. + optional string kms_key = 40 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKey" + } + ]; + + // Optional. The automated backup config for the cluster. + AutomatedBackupConfig automated_backup_config = 42 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Encryption information of the data at rest of the cluster. + EncryptionInfo encryption_info = 43 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The automated backup config for a cluster. +message AutomatedBackupConfig { + // This schedule allows the backup to be triggered at a fixed frequency + // (currently only daily is supported). + message FixedFrequencySchedule { + // Required. The start time of every automated backup in UTC. It must be set + // to the start of an hour. This field is required. + optional google.type.TimeOfDay start_time = 2 + [(google.api.field_behavior) = REQUIRED]; + } + + // The automated backup mode. + enum AutomatedBackupMode { + // Default value. Automated backup config is not specified. + AUTOMATED_BACKUP_MODE_UNSPECIFIED = 0; + + // Automated backup config disabled. + DISABLED = 1; + + // Automated backup config enabled. + ENABLED = 2; + } + + // The schedule of automated backups. + oneof schedule { + // Optional. Trigger automated backups at a fixed frequency. + FixedFrequencySchedule fixed_frequency_schedule = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. The automated backup mode. If the mode is disabled, the other + // fields will be ignored. + AutomatedBackupMode automated_backup_mode = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. How long to keep automated backups before the backups are + // deleted. The value should be between 1 day and 365 days. If not specified, + // the default value is 35 days. + optional google.protobuf.Duration retention = 3 + [(google.api.field_behavior) = OPTIONAL]; +} + +// BackupCollection of a cluster. +message BackupCollection { + option (google.api.resource) = { + type: "redis.googleapis.com/BackupCollection" + pattern: "projects/{project}/locations/{location}/backupCollections/{backup_collection}" + plural: "backupCollections" + singular: "backupCollection" + }; + + // Identifier. Full resource path of the backup collection. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. The cluster uid of the backup collection. + string cluster_uid = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Output only. The full resource path of the cluster the backup collection + // belongs to. Example: + // projects/{project}/locations/{location}/clusters/{cluster} + string cluster = 4 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { type: "redis.googleapis.com/Cluster" } + ]; + + // Output only. The KMS key used to encrypt the backups under this backup + // collection. + string kms_key = 5 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKey" + } + ]; + + // Output only. System assigned unique identifier of the backup collection. + string uid = 6 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OUTPUT_ONLY + ]; +} + +// Backup of a cluster. +message Backup { + option (google.api.resource) = { + type: "redis.googleapis.com/Backup" + pattern: "projects/{project}/locations/{location}/backupCollections/{backup_collection}/backups/{backup}" + plural: "backups" + singular: "backup" + }; + + // Type of the backup. + enum BackupType { + // The default value, not set. + BACKUP_TYPE_UNSPECIFIED = 0; + + // On-demand backup. + ON_DEMAND = 1; + + // Automated backup. + AUTOMATED = 2; + } + + // State of the backup. + enum State { + // The default value, not set. + STATE_UNSPECIFIED = 0; + + // The backup is being created. + CREATING = 1; + + // The backup is active to be used. + ACTIVE = 2; + + // The backup is being deleted. + DELETING = 3; + + // The backup is currently suspended due to reasons like project deletion, + // billing account closure, etc. + SUSPENDED = 4; + } + + // Identifier. Full resource path of the backup. the last part of the name is + // the backup id with the following format: [YYYYMMDDHHMMSS]_[Shorted Cluster + // UID] OR customer specified while backup cluster. Example: + // 20240515123000_1234 + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. The time when the backup was created. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Cluster resource path of this backup. + string cluster = 3 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { type: "redis.googleapis.com/Cluster" } + ]; + + // Output only. Cluster uid of this backup. + string cluster_uid = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Output only. Total size of the backup in bytes. + int64 total_size_bytes = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time when the backup will expire. + google.protobuf.Timestamp expire_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. redis-7.2, valkey-7.5 + string engine_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of backup files of the backup. + repeated BackupFile backup_files = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Node type of the cluster. + NodeType node_type = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Number of replicas for the cluster. + int32 replica_count = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Number of shards for the cluster. + int32 shard_count = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Type of the backup. + BackupType backup_type = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. State of the backup. + State state = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Encryption information of the backup. + EncryptionInfo encryption_info = 14 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. System assigned unique identifier of the backup. + string uid = 15 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OUTPUT_ONLY + ]; +} + +// Backup is consisted of multiple backup files. +message BackupFile { + // Output only. e.g: .rdb + string file_name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Size of the backup file in bytes. + int64 size_bytes = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time when the backup file was created. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Configuration of a service attachment of the cluster, for creating PSC +// connections. +message PscServiceAttachment { + // Output only. Service attachment URI which your self-created PscConnection + // should use as target + string service_attachment = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Type of a PSC connection targeting this service attachment. + ConnectionType connection_type = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Cross cluster replication config. +message CrossClusterReplicationConfig { + // Details of the remote cluster associated with this cluster in a cross + // cluster replication setup. + message RemoteCluster { + // The full resource path of the remote cluster in + // the format: projects//locations//clusters/ + string cluster = 1 [ + (google.api.resource_reference) = { type: "redis.googleapis.com/Cluster" } + ]; + + // Output only. The unique identifier of the remote cluster. + string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // An output only view of all the member clusters participating in the cross + // cluster replication. + message Membership { + // Output only. The primary cluster that acts as the source of replication + // for the secondary clusters. + RemoteCluster primary_cluster = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The list of secondary clusters replicating from the primary + // cluster. + repeated RemoteCluster secondary_clusters = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The role of the cluster in cross cluster replication. + enum ClusterRole { + // Cluster role is not set. + // The behavior is equivalent to NONE. + CLUSTER_ROLE_UNSPECIFIED = 0; + + // This cluster does not participate in cross cluster replication. It is an + // independent cluster and does not replicate to or from any other clusters. + NONE = 1; + + // A cluster that allows both reads and writes. Any data written to this + // cluster is also replicated to the attached secondary clusters. + PRIMARY = 2; + + // A cluster that allows only reads and replicates data from a primary + // cluster. + SECONDARY = 3; + } + + // The role of the cluster in cross cluster replication. + ClusterRole cluster_role = 1; + + // Details of the primary cluster that is used as the replication source for + // this secondary cluster. + // + // This field is only set for a secondary cluster. + RemoteCluster primary_cluster = 2; + + // List of secondary clusters that are replicating from this primary cluster. + // + // This field is only set for a primary cluster. + repeated RemoteCluster secondary_clusters = 3; + + // Output only. The last time cross cluster replication config was updated. + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. An output only view of all the member clusters participating + // in the cross cluster replication. This view will be provided by every + // member cluster irrespective of its cluster role(primary or secondary). + // + // A primary cluster can provide information about all the secondary clusters + // replicating from it. However, a secondary cluster only knows about the + // primary cluster from which it is replicating. However, for scenarios, where + // the primary cluster is unavailable(e.g. regional outage), a GetCluster + // request can be sent to any other member cluster and this field will list + // all the member clusters participating in cross cluster replication. + Membership membership = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Maintenance policy per cluster. +message ClusterMaintenancePolicy { + // Output only. The time when the policy was created i.e. Maintenance Window + // or Deny Period was assigned. + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time when the policy was updated i.e. Maintenance Window + // or Deny Period was updated. + google.protobuf.Timestamp update_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Maintenance window that is applied to resources covered by this + // policy. Minimum 1. For the current version, the maximum number of + // weekly_maintenance_window is expected to be one. + repeated ClusterWeeklyMaintenanceWindow weekly_maintenance_window = 3; +} + +// Time window specified for weekly operations. +message ClusterWeeklyMaintenanceWindow { + // Allows to define schedule that runs specified day of the week. + google.type.DayOfWeek day = 1; + + // Start time of the window in UTC. + google.type.TimeOfDay start_time = 2; +} + +// Upcoming maitenance schedule. +message ClusterMaintenanceSchedule { + // Output only. The start time of any upcoming scheduled maintenance for this + // instance. + google.protobuf.Timestamp start_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The end time of any upcoming scheduled maintenance for this + // instance. + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; } message PscConfig { @@ -468,26 +1191,140 @@ message DiscoveryEndpoint { // Details of consumer resources in a PSC connection. message PscConnection { + // Required. The PSC connection id of the forwarding rule connected to the + // service attachment. + string psc_connection_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The IP allocated on the consumer network for the PSC forwarding + // rule. + string address = 2 [ + (google.api.field_info).format = IPV4, + (google.api.field_behavior) = REQUIRED + ]; + + // Required. The URI of the consumer side forwarding rule. + // Example: + // projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}. + string forwarding_rule = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "compute.googleapis.com/ForwardingRule" + } + ]; + + // Optional. Project ID of the consumer project where the forwarding rule is + // created in. + string project_id = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The consumer network where the IP address resides, in the form of + // projects/{project_id}/global/networks/{network_id}. + string network = 5 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } + ]; + + // Required. The service attachment which is the target of the PSC connection, + // in the form of + // projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}. + string service_attachment = 6 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "compute.googleapis.com/ServiceAttachment" + } + ]; + + // Output only. The status of the PSC connection. + // Please note that this value is updated periodically. + // To get the latest status of a PSC connection, follow + // https://cloud.google.com/vpc/docs/configure-private-service-connect-services#endpoint-details. + PscConnectionStatus psc_connection_status = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Type of the PSC connection. + ConnectionType connection_type = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// ClusterEndpoint consists of PSC connections that are created +// as a group in each VPC network for accessing the cluster. In each group, +// there shall be one connection for each service attachment in the cluster. +message ClusterEndpoint { + // A group of PSC connections. They are created in the same VPC network, one + // for each service attachment in the cluster. + repeated ConnectionDetail connections = 1; +} + +// Detailed information of each PSC connection. +message ConnectionDetail { + // A PSC connection to a cluster could either be created through Service + // Connectivity Automation (auto-registered connection) during the cluster + // creation, or it could be created by customer themselves (user-registered + // connection). + oneof connection { + // Detailed information of a PSC connection that is created through + // service connectivity automation. + PscAutoConnection psc_auto_connection = 1; + + // Detailed information of a PSC connection that is created by the customer + // who owns the cluster. + PscConnection psc_connection = 2; + } +} + +// Details of consumer resources in a PSC connection that is created through +// Service Connectivity Automation. +message PscAutoConnection { // Output only. The PSC connection id of the forwarding rule connected to the // service attachment. string psc_connection_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The IP allocated on the consumer network for the PSC // forwarding rule. - string address = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + string address = 2 [ + (google.api.field_info).format = IPV4, + (google.api.field_behavior) = OUTPUT_ONLY + ]; // Output only. The URI of the consumer side forwarding rule. // Example: // projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}. - string forwarding_rule = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + string forwarding_rule = 3 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "compute.googleapis.com/ForwardingRule" + } + ]; - // Output only. The consumer project_id where the forwarding rule is created + // Required. The consumer project_id where the forwarding rule is created // from. - string project_id = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + string project_id = 4 [(google.api.field_behavior) = REQUIRED]; - // The consumer network where the IP address resides, in the form of + // Required. The consumer network where the IP address resides, in the form of // projects/{project_id}/global/networks/{network_id}. - string network = 5; + string network = 5 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } + ]; + + // Output only. The service attachment which is the target of the PSC + // connection, in the form of + // projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}. + string service_attachment = 6 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "compute.googleapis.com/ServiceAttachment" + } + ]; + + // Output only. The status of the PSC connection. + // Please note that this value is updated periodically. + // Please use Private Service Connect APIs for the latest status. + PscConnectionStatus psc_connection_status = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Type of the PSC connection. + ConnectionType connection_type = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Pre-defined metadata fields. @@ -525,6 +1362,8 @@ message CertificateAuthority { option (google.api.resource) = { type: "redis.googleapis.com/CertificateAuthority" pattern: "projects/{project}/locations/{location}/clusters/{cluster}/certificateAuthority" + plural: "certificateAuthorities" + singular: "certificateAuthority" }; message ManagedCertificateAuthority { @@ -597,8 +1436,8 @@ message ClusterPersistenceConfig { // there is a disaster EVERYSEC = 2; - // fsync every time new commands are appended to the AOF. It has the best - // data loss protection at the cost of performance + // fsync every time new write commands are appended to the AOF. It has the + // best data loss protection at the cost of performance ALWAYS = 3; } @@ -634,9 +1473,6 @@ message ClusterPersistenceConfig { // Zone distribution config for allocation of cluster resources. message ZoneDistributionConfig { // Defines various modes of zone distribution. - // Currently supports two modes, can be expanded in future to support more - // types of distribution modes. - // design doc: go/same-zone-cluster enum ZoneDistributionMode { // Not Set. Default: MULTI_ZONE ZONE_DISTRIBUTION_MODE_UNSPECIFIED = 0; @@ -659,3 +1495,105 @@ message ZoneDistributionConfig { // MULTI_ZONE, and would be ignored for MULTI_ZONE clusters. string zone = 2 [(google.api.field_behavior) = OPTIONAL]; } + +// Request for rescheduling a cluster maintenance. +message RescheduleClusterMaintenanceRequest { + // Reschedule options. + enum RescheduleType { + // Not set. + RESCHEDULE_TYPE_UNSPECIFIED = 0; + + // If the user wants to schedule the maintenance to happen now. + IMMEDIATE = 1; + + // If the user wants to reschedule the maintenance to a specific time. + SPECIFIC_TIME = 3; + } + + // Required. Redis Cluster instance resource name using the form: + // `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` + // where `location_id` refers to a GCP region. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "redis.googleapis.com/Cluster" } + ]; + + // Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time as + // well. + RescheduleType reschedule_type = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Timestamp when the maintenance shall be rescheduled to if + // reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for + // example `2012-11-15T16:19:00.094Z`. + google.protobuf.Timestamp schedule_time = 3 + [(google.api.field_behavior) = OPTIONAL]; +} + +// EncryptionInfo describes the encryption information of a cluster or a backup. +message EncryptionInfo { + // Possible encryption types. + enum Type { + // Encryption type not specified. Defaults to GOOGLE_DEFAULT_ENCRYPTION. + TYPE_UNSPECIFIED = 0; + + // The data is encrypted at rest with a key that is fully managed by Google. + // No key version will be populated. This is the default state. + GOOGLE_DEFAULT_ENCRYPTION = 1; + + // The data is encrypted at rest with a key that is managed by the customer. + // KMS key versions will be populated. + CUSTOMER_MANAGED_ENCRYPTION = 2; + } + + // The state of the KMS key perceived by the system. Refer to the public + // documentation for the impact of each state. + enum KmsKeyState { + // The default value. This value is unused. + KMS_KEY_STATE_UNSPECIFIED = 0; + + // The KMS key is enabled and correctly configured. + ENABLED = 1; + + // Permission denied on the KMS key. + PERMISSION_DENIED = 2; + + // The KMS key is disabled. + DISABLED = 3; + + // The KMS key is destroyed. + DESTROYED = 4; + + // The KMS key is scheduled to be destroyed. + DESTROY_SCHEDULED = 5; + + // The EKM key is unreachable. + EKM_KEY_UNREACHABLE_DETECTED = 6; + + // Billing is disabled for the project. + BILLING_DISABLED = 7; + + // All other unknown failures. + UNKNOWN_FAILURE = 8; + } + + // Output only. Type of encryption. + Type encryption_type = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. KMS key versions that are being used to protect the data + // at-rest. + repeated string kms_key_versions = 2 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKeyVersion" + } + ]; + + // Output only. The state of the primary version of the KMS key perceived by + // the system. This field is not populated in backups. + KmsKeyState kms_key_primary_state = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The most recent time when the encryption info was updated. + google.protobuf.Timestamp last_update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/backupcluster/AsyncBackupCluster.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/backupcluster/AsyncBackupCluster.java new file mode 100644 index 000000000000..21394f9644e0 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/backupcluster/AsyncBackupCluster.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_BackupCluster_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.cluster.v1.BackupClusterRequest; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.ClusterName; +import com.google.longrunning.Operation; +import com.google.protobuf.Duration; + +public class AsyncBackupCluster { + + public static void main(String[] args) throws Exception { + asyncBackupCluster(); + } + + public static void asyncBackupCluster() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + BackupClusterRequest request = + BackupClusterRequest.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setTtl(Duration.newBuilder().build()) + .setBackupId("backupId2121930365") + .build(); + ApiFuture future = + cloudRedisClusterClient.backupClusterCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_BackupCluster_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/backupcluster/AsyncBackupClusterLRO.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/backupcluster/AsyncBackupClusterLRO.java new file mode 100644 index 000000000000..b38b544ea8b9 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/backupcluster/AsyncBackupClusterLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_BackupCluster_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.redis.cluster.v1.BackupClusterRequest; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.Cluster; +import com.google.cloud.redis.cluster.v1.ClusterName; +import com.google.protobuf.Any; +import com.google.protobuf.Duration; + +public class AsyncBackupClusterLRO { + + public static void main(String[] args) throws Exception { + asyncBackupClusterLRO(); + } + + public static void asyncBackupClusterLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + BackupClusterRequest request = + BackupClusterRequest.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setTtl(Duration.newBuilder().build()) + .setBackupId("backupId2121930365") + .build(); + OperationFuture future = + cloudRedisClusterClient.backupClusterOperationCallable().futureCall(request); + // Do something. + Cluster response = future.get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_BackupCluster_LRO_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/backupcluster/SyncBackupCluster.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/backupcluster/SyncBackupCluster.java new file mode 100644 index 000000000000..f8626fe5d897 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/backupcluster/SyncBackupCluster.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_BackupCluster_sync] +import com.google.cloud.redis.cluster.v1.BackupClusterRequest; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.Cluster; +import com.google.cloud.redis.cluster.v1.ClusterName; +import com.google.protobuf.Duration; + +public class SyncBackupCluster { + + public static void main(String[] args) throws Exception { + syncBackupCluster(); + } + + public static void syncBackupCluster() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + BackupClusterRequest request = + BackupClusterRequest.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setTtl(Duration.newBuilder().build()) + .setBackupId("backupId2121930365") + .build(); + Cluster response = cloudRedisClusterClient.backupClusterAsync(request).get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_BackupCluster_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/backupcluster/SyncBackupClusterClustername.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/backupcluster/SyncBackupClusterClustername.java new file mode 100644 index 000000000000..8450262164e6 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/backupcluster/SyncBackupClusterClustername.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_BackupCluster_Clustername_sync] +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.Cluster; +import com.google.cloud.redis.cluster.v1.ClusterName; + +public class SyncBackupClusterClustername { + + public static void main(String[] args) throws Exception { + syncBackupClusterClustername(); + } + + public static void syncBackupClusterClustername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + Cluster response = cloudRedisClusterClient.backupClusterAsync(name).get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_BackupCluster_Clustername_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/backupcluster/SyncBackupClusterString.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/backupcluster/SyncBackupClusterString.java new file mode 100644 index 000000000000..f5f4ed1c1e42 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/backupcluster/SyncBackupClusterString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_BackupCluster_String_sync] +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.Cluster; +import com.google.cloud.redis.cluster.v1.ClusterName; + +public class SyncBackupClusterString { + + public static void main(String[] args) throws Exception { + syncBackupClusterString(); + } + + public static void syncBackupClusterString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + String name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString(); + Cluster response = cloudRedisClusterClient.backupClusterAsync(name).get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_BackupCluster_String_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deletebackup/AsyncDeleteBackup.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deletebackup/AsyncDeleteBackup.java new file mode 100644 index 000000000000..b2612542d099 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deletebackup/AsyncDeleteBackup.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_DeleteBackup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.cluster.v1.BackupName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.DeleteBackupRequest; +import com.google.longrunning.Operation; + +public class AsyncDeleteBackup { + + public static void main(String[] args) throws Exception { + asyncDeleteBackup(); + } + + public static void asyncDeleteBackup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + DeleteBackupRequest request = + DeleteBackupRequest.newBuilder() + .setName( + BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + cloudRedisClusterClient.deleteBackupCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_DeleteBackup_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deletebackup/AsyncDeleteBackupLRO.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deletebackup/AsyncDeleteBackupLRO.java new file mode 100644 index 000000000000..87c136bcc21d --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deletebackup/AsyncDeleteBackupLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_DeleteBackup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.redis.cluster.v1.BackupName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.DeleteBackupRequest; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; + +public class AsyncDeleteBackupLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteBackupLRO(); + } + + public static void asyncDeleteBackupLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + DeleteBackupRequest request = + DeleteBackupRequest.newBuilder() + .setName( + BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + cloudRedisClusterClient.deleteBackupOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_DeleteBackup_LRO_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deletebackup/SyncDeleteBackup.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deletebackup/SyncDeleteBackup.java new file mode 100644 index 000000000000..2f705de57a51 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deletebackup/SyncDeleteBackup.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_DeleteBackup_sync] +import com.google.cloud.redis.cluster.v1.BackupName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.DeleteBackupRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteBackup { + + public static void main(String[] args) throws Exception { + syncDeleteBackup(); + } + + public static void syncDeleteBackup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + DeleteBackupRequest request = + DeleteBackupRequest.newBuilder() + .setName( + BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") + .toString()) + .setRequestId("requestId693933066") + .build(); + cloudRedisClusterClient.deleteBackupAsync(request).get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_DeleteBackup_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deletebackup/SyncDeleteBackupBackupname.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deletebackup/SyncDeleteBackupBackupname.java new file mode 100644 index 000000000000..48c3744e3ed6 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deletebackup/SyncDeleteBackupBackupname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_DeleteBackup_Backupname_sync] +import com.google.cloud.redis.cluster.v1.BackupName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.protobuf.Empty; + +public class SyncDeleteBackupBackupname { + + public static void main(String[] args) throws Exception { + syncDeleteBackupBackupname(); + } + + public static void syncDeleteBackupBackupname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]"); + cloudRedisClusterClient.deleteBackupAsync(name).get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_DeleteBackup_Backupname_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deletebackup/SyncDeleteBackupString.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deletebackup/SyncDeleteBackupString.java new file mode 100644 index 000000000000..2bd938caef6f --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/deletebackup/SyncDeleteBackupString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_DeleteBackup_String_sync] +import com.google.cloud.redis.cluster.v1.BackupName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.protobuf.Empty; + +public class SyncDeleteBackupString { + + public static void main(String[] args) throws Exception { + syncDeleteBackupString(); + } + + public static void syncDeleteBackupString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + String name = + BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]").toString(); + cloudRedisClusterClient.deleteBackupAsync(name).get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_DeleteBackup_String_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/exportbackup/AsyncExportBackup.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/exportbackup/AsyncExportBackup.java new file mode 100644 index 000000000000..254f2a5444b9 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/exportbackup/AsyncExportBackup.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_ExportBackup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.cluster.v1.BackupName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.ExportBackupRequest; +import com.google.longrunning.Operation; + +public class AsyncExportBackup { + + public static void main(String[] args) throws Exception { + asyncExportBackup(); + } + + public static void asyncExportBackup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ExportBackupRequest request = + ExportBackupRequest.newBuilder() + .setName( + BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") + .toString()) + .build(); + ApiFuture future = + cloudRedisClusterClient.exportBackupCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_ExportBackup_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/exportbackup/AsyncExportBackupLRO.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/exportbackup/AsyncExportBackupLRO.java new file mode 100644 index 000000000000..993f4afe0a75 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/exportbackup/AsyncExportBackupLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_ExportBackup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.redis.cluster.v1.Backup; +import com.google.cloud.redis.cluster.v1.BackupName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.ExportBackupRequest; +import com.google.protobuf.Any; + +public class AsyncExportBackupLRO { + + public static void main(String[] args) throws Exception { + asyncExportBackupLRO(); + } + + public static void asyncExportBackupLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ExportBackupRequest request = + ExportBackupRequest.newBuilder() + .setName( + BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") + .toString()) + .build(); + OperationFuture future = + cloudRedisClusterClient.exportBackupOperationCallable().futureCall(request); + // Do something. + Backup response = future.get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_ExportBackup_LRO_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/exportbackup/SyncExportBackup.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/exportbackup/SyncExportBackup.java new file mode 100644 index 000000000000..20f9cd925209 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/exportbackup/SyncExportBackup.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_ExportBackup_sync] +import com.google.cloud.redis.cluster.v1.Backup; +import com.google.cloud.redis.cluster.v1.BackupName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.ExportBackupRequest; + +public class SyncExportBackup { + + public static void main(String[] args) throws Exception { + syncExportBackup(); + } + + public static void syncExportBackup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ExportBackupRequest request = + ExportBackupRequest.newBuilder() + .setName( + BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") + .toString()) + .build(); + Backup response = cloudRedisClusterClient.exportBackupAsync(request).get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_ExportBackup_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getbackup/AsyncGetBackup.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getbackup/AsyncGetBackup.java new file mode 100644 index 000000000000..191bd94dfbee --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getbackup/AsyncGetBackup.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_GetBackup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.cluster.v1.Backup; +import com.google.cloud.redis.cluster.v1.BackupName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.GetBackupRequest; + +public class AsyncGetBackup { + + public static void main(String[] args) throws Exception { + asyncGetBackup(); + } + + public static void asyncGetBackup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + GetBackupRequest request = + GetBackupRequest.newBuilder() + .setName( + BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") + .toString()) + .build(); + ApiFuture future = cloudRedisClusterClient.getBackupCallable().futureCall(request); + // Do something. + Backup response = future.get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_GetBackup_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getbackup/SyncGetBackup.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getbackup/SyncGetBackup.java new file mode 100644 index 000000000000..bf748766717e --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getbackup/SyncGetBackup.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_GetBackup_sync] +import com.google.cloud.redis.cluster.v1.Backup; +import com.google.cloud.redis.cluster.v1.BackupName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.GetBackupRequest; + +public class SyncGetBackup { + + public static void main(String[] args) throws Exception { + syncGetBackup(); + } + + public static void syncGetBackup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + GetBackupRequest request = + GetBackupRequest.newBuilder() + .setName( + BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") + .toString()) + .build(); + Backup response = cloudRedisClusterClient.getBackup(request); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_GetBackup_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getbackup/SyncGetBackupBackupname.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getbackup/SyncGetBackupBackupname.java new file mode 100644 index 000000000000..dfdb902f1fdc --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getbackup/SyncGetBackupBackupname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_GetBackup_Backupname_sync] +import com.google.cloud.redis.cluster.v1.Backup; +import com.google.cloud.redis.cluster.v1.BackupName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; + +public class SyncGetBackupBackupname { + + public static void main(String[] args) throws Exception { + syncGetBackupBackupname(); + } + + public static void syncGetBackupBackupname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]"); + Backup response = cloudRedisClusterClient.getBackup(name); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_GetBackup_Backupname_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getbackup/SyncGetBackupString.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getbackup/SyncGetBackupString.java new file mode 100644 index 000000000000..3a9882ab39e7 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getbackup/SyncGetBackupString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_GetBackup_String_sync] +import com.google.cloud.redis.cluster.v1.Backup; +import com.google.cloud.redis.cluster.v1.BackupName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; + +public class SyncGetBackupString { + + public static void main(String[] args) throws Exception { + syncGetBackupString(); + } + + public static void syncGetBackupString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + String name = + BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]").toString(); + Backup response = cloudRedisClusterClient.getBackup(name); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_GetBackup_String_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getbackupcollection/AsyncGetBackupCollection.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getbackupcollection/AsyncGetBackupCollection.java new file mode 100644 index 000000000000..b47b26de996d --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getbackupcollection/AsyncGetBackupCollection.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_GetBackupCollection_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.cluster.v1.BackupCollection; +import com.google.cloud.redis.cluster.v1.BackupCollectionName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest; + +public class AsyncGetBackupCollection { + + public static void main(String[] args) throws Exception { + asyncGetBackupCollection(); + } + + public static void asyncGetBackupCollection() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + GetBackupCollectionRequest request = + GetBackupCollectionRequest.newBuilder() + .setName( + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") + .toString()) + .build(); + ApiFuture future = + cloudRedisClusterClient.getBackupCollectionCallable().futureCall(request); + // Do something. + BackupCollection response = future.get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_GetBackupCollection_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getbackupcollection/SyncGetBackupCollection.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getbackupcollection/SyncGetBackupCollection.java new file mode 100644 index 000000000000..95366e762cd7 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getbackupcollection/SyncGetBackupCollection.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_GetBackupCollection_sync] +import com.google.cloud.redis.cluster.v1.BackupCollection; +import com.google.cloud.redis.cluster.v1.BackupCollectionName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.GetBackupCollectionRequest; + +public class SyncGetBackupCollection { + + public static void main(String[] args) throws Exception { + syncGetBackupCollection(); + } + + public static void syncGetBackupCollection() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + GetBackupCollectionRequest request = + GetBackupCollectionRequest.newBuilder() + .setName( + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") + .toString()) + .build(); + BackupCollection response = cloudRedisClusterClient.getBackupCollection(request); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_GetBackupCollection_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getbackupcollection/SyncGetBackupCollectionBackupcollectionname.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getbackupcollection/SyncGetBackupCollectionBackupcollectionname.java new file mode 100644 index 000000000000..a9965de82409 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getbackupcollection/SyncGetBackupCollectionBackupcollectionname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_GetBackupCollection_Backupcollectionname_sync] +import com.google.cloud.redis.cluster.v1.BackupCollection; +import com.google.cloud.redis.cluster.v1.BackupCollectionName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; + +public class SyncGetBackupCollectionBackupcollectionname { + + public static void main(String[] args) throws Exception { + syncGetBackupCollectionBackupcollectionname(); + } + + public static void syncGetBackupCollectionBackupcollectionname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + BackupCollectionName name = + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]"); + BackupCollection response = cloudRedisClusterClient.getBackupCollection(name); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_GetBackupCollection_Backupcollectionname_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getbackupcollection/SyncGetBackupCollectionString.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getbackupcollection/SyncGetBackupCollectionString.java new file mode 100644 index 000000000000..6a2efcb2e6c7 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getbackupcollection/SyncGetBackupCollectionString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_GetBackupCollection_String_sync] +import com.google.cloud.redis.cluster.v1.BackupCollection; +import com.google.cloud.redis.cluster.v1.BackupCollectionName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; + +public class SyncGetBackupCollectionString { + + public static void main(String[] args) throws Exception { + syncGetBackupCollectionString(); + } + + public static void syncGetBackupCollectionString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + String name = + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]").toString(); + BackupCollection response = cloudRedisClusterClient.getBackupCollection(name); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_GetBackupCollection_String_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listbackupcollections/AsyncListBackupCollections.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listbackupcollections/AsyncListBackupCollections.java new file mode 100644 index 000000000000..79ac84b2eaea --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listbackupcollections/AsyncListBackupCollections.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_ListBackupCollections_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.cluster.v1.BackupCollection; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest; +import com.google.cloud.redis.cluster.v1.LocationName; + +public class AsyncListBackupCollections { + + public static void main(String[] args) throws Exception { + asyncListBackupCollections(); + } + + public static void asyncListBackupCollections() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ListBackupCollectionsRequest request = + ListBackupCollectionsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + cloudRedisClusterClient.listBackupCollectionsPagedCallable().futureCall(request); + // Do something. + for (BackupCollection element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1_generated_CloudRedisCluster_ListBackupCollections_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listbackupcollections/AsyncListBackupCollectionsPaged.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listbackupcollections/AsyncListBackupCollectionsPaged.java new file mode 100644 index 000000000000..700689b7394e --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listbackupcollections/AsyncListBackupCollectionsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_ListBackupCollections_Paged_async] +import com.google.cloud.redis.cluster.v1.BackupCollection; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest; +import com.google.cloud.redis.cluster.v1.ListBackupCollectionsResponse; +import com.google.cloud.redis.cluster.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListBackupCollectionsPaged { + + public static void main(String[] args) throws Exception { + asyncListBackupCollectionsPaged(); + } + + public static void asyncListBackupCollectionsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ListBackupCollectionsRequest request = + ListBackupCollectionsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListBackupCollectionsResponse response = + cloudRedisClusterClient.listBackupCollectionsCallable().call(request); + for (BackupCollection element : response.getBackupCollectionsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END redis_v1_generated_CloudRedisCluster_ListBackupCollections_Paged_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listbackupcollections/SyncListBackupCollections.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listbackupcollections/SyncListBackupCollections.java new file mode 100644 index 000000000000..1ace19c2e65a --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listbackupcollections/SyncListBackupCollections.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_ListBackupCollections_sync] +import com.google.cloud.redis.cluster.v1.BackupCollection; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.ListBackupCollectionsRequest; +import com.google.cloud.redis.cluster.v1.LocationName; + +public class SyncListBackupCollections { + + public static void main(String[] args) throws Exception { + syncListBackupCollections(); + } + + public static void syncListBackupCollections() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ListBackupCollectionsRequest request = + ListBackupCollectionsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (BackupCollection element : + cloudRedisClusterClient.listBackupCollections(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1_generated_CloudRedisCluster_ListBackupCollections_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listbackupcollections/SyncListBackupCollectionsLocationname.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listbackupcollections/SyncListBackupCollectionsLocationname.java new file mode 100644 index 000000000000..3c67da3ee059 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listbackupcollections/SyncListBackupCollectionsLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_ListBackupCollections_Locationname_sync] +import com.google.cloud.redis.cluster.v1.BackupCollection; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.LocationName; + +public class SyncListBackupCollectionsLocationname { + + public static void main(String[] args) throws Exception { + syncListBackupCollectionsLocationname(); + } + + public static void syncListBackupCollectionsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (BackupCollection element : + cloudRedisClusterClient.listBackupCollections(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1_generated_CloudRedisCluster_ListBackupCollections_Locationname_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listbackupcollections/SyncListBackupCollectionsString.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listbackupcollections/SyncListBackupCollectionsString.java new file mode 100644 index 000000000000..ea4263a729f9 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listbackupcollections/SyncListBackupCollectionsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_ListBackupCollections_String_sync] +import com.google.cloud.redis.cluster.v1.BackupCollection; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.LocationName; + +public class SyncListBackupCollectionsString { + + public static void main(String[] args) throws Exception { + syncListBackupCollectionsString(); + } + + public static void syncListBackupCollectionsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (BackupCollection element : + cloudRedisClusterClient.listBackupCollections(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1_generated_CloudRedisCluster_ListBackupCollections_String_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listbackups/AsyncListBackups.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listbackups/AsyncListBackups.java new file mode 100644 index 000000000000..d9974eb79910 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listbackups/AsyncListBackups.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_ListBackups_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.cluster.v1.Backup; +import com.google.cloud.redis.cluster.v1.BackupCollectionName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.ListBackupsRequest; + +public class AsyncListBackups { + + public static void main(String[] args) throws Exception { + asyncListBackups(); + } + + public static void asyncListBackups() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ListBackupsRequest request = + ListBackupsRequest.newBuilder() + .setParent( + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + cloudRedisClusterClient.listBackupsPagedCallable().futureCall(request); + // Do something. + for (Backup element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1_generated_CloudRedisCluster_ListBackups_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listbackups/AsyncListBackupsPaged.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listbackups/AsyncListBackupsPaged.java new file mode 100644 index 000000000000..8d2f10908412 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listbackups/AsyncListBackupsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_ListBackups_Paged_async] +import com.google.cloud.redis.cluster.v1.Backup; +import com.google.cloud.redis.cluster.v1.BackupCollectionName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.ListBackupsRequest; +import com.google.cloud.redis.cluster.v1.ListBackupsResponse; +import com.google.common.base.Strings; + +public class AsyncListBackupsPaged { + + public static void main(String[] args) throws Exception { + asyncListBackupsPaged(); + } + + public static void asyncListBackupsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ListBackupsRequest request = + ListBackupsRequest.newBuilder() + .setParent( + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListBackupsResponse response = cloudRedisClusterClient.listBackupsCallable().call(request); + for (Backup element : response.getBackupsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END redis_v1_generated_CloudRedisCluster_ListBackups_Paged_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listbackups/SyncListBackups.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listbackups/SyncListBackups.java new file mode 100644 index 000000000000..2d009846eb18 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listbackups/SyncListBackups.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_ListBackups_sync] +import com.google.cloud.redis.cluster.v1.Backup; +import com.google.cloud.redis.cluster.v1.BackupCollectionName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.ListBackupsRequest; + +public class SyncListBackups { + + public static void main(String[] args) throws Exception { + syncListBackups(); + } + + public static void syncListBackups() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ListBackupsRequest request = + ListBackupsRequest.newBuilder() + .setParent( + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Backup element : cloudRedisClusterClient.listBackups(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1_generated_CloudRedisCluster_ListBackups_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listbackups/SyncListBackupsBackupcollectionname.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listbackups/SyncListBackupsBackupcollectionname.java new file mode 100644 index 000000000000..fc51db86fabb --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listbackups/SyncListBackupsBackupcollectionname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_ListBackups_Backupcollectionname_sync] +import com.google.cloud.redis.cluster.v1.Backup; +import com.google.cloud.redis.cluster.v1.BackupCollectionName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; + +public class SyncListBackupsBackupcollectionname { + + public static void main(String[] args) throws Exception { + syncListBackupsBackupcollectionname(); + } + + public static void syncListBackupsBackupcollectionname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + BackupCollectionName parent = + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]"); + for (Backup element : cloudRedisClusterClient.listBackups(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1_generated_CloudRedisCluster_ListBackups_Backupcollectionname_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listbackups/SyncListBackupsString.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listbackups/SyncListBackupsString.java new file mode 100644 index 000000000000..c89eab4e974c --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/listbackups/SyncListBackupsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_ListBackups_String_sync] +import com.google.cloud.redis.cluster.v1.Backup; +import com.google.cloud.redis.cluster.v1.BackupCollectionName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; + +public class SyncListBackupsString { + + public static void main(String[] args) throws Exception { + syncListBackupsString(); + } + + public static void syncListBackupsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + String parent = + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]").toString(); + for (Backup element : cloudRedisClusterClient.listBackups(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1_generated_CloudRedisCluster_ListBackups_String_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/rescheduleclustermaintenance/AsyncRescheduleClusterMaintenance.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/rescheduleclustermaintenance/AsyncRescheduleClusterMaintenance.java new file mode 100644 index 000000000000..6b4361c4f0ba --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/rescheduleclustermaintenance/AsyncRescheduleClusterMaintenance.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_RescheduleClusterMaintenance_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.ClusterName; +import com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.Timestamp; + +public class AsyncRescheduleClusterMaintenance { + + public static void main(String[] args) throws Exception { + asyncRescheduleClusterMaintenance(); + } + + public static void asyncRescheduleClusterMaintenance() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + RescheduleClusterMaintenanceRequest request = + RescheduleClusterMaintenanceRequest.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setScheduleTime(Timestamp.newBuilder().build()) + .build(); + ApiFuture future = + cloudRedisClusterClient.rescheduleClusterMaintenanceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_RescheduleClusterMaintenance_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/rescheduleclustermaintenance/AsyncRescheduleClusterMaintenanceLRO.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/rescheduleclustermaintenance/AsyncRescheduleClusterMaintenanceLRO.java new file mode 100644 index 000000000000..cd442bdfb70e --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/rescheduleclustermaintenance/AsyncRescheduleClusterMaintenanceLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_RescheduleClusterMaintenance_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.Cluster; +import com.google.cloud.redis.cluster.v1.ClusterName; +import com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest; +import com.google.protobuf.Any; +import com.google.protobuf.Timestamp; + +public class AsyncRescheduleClusterMaintenanceLRO { + + public static void main(String[] args) throws Exception { + asyncRescheduleClusterMaintenanceLRO(); + } + + public static void asyncRescheduleClusterMaintenanceLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + RescheduleClusterMaintenanceRequest request = + RescheduleClusterMaintenanceRequest.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setScheduleTime(Timestamp.newBuilder().build()) + .build(); + OperationFuture future = + cloudRedisClusterClient + .rescheduleClusterMaintenanceOperationCallable() + .futureCall(request); + // Do something. + Cluster response = future.get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_RescheduleClusterMaintenance_LRO_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/rescheduleclustermaintenance/SyncRescheduleClusterMaintenance.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/rescheduleclustermaintenance/SyncRescheduleClusterMaintenance.java new file mode 100644 index 000000000000..4da0891328a9 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/rescheduleclustermaintenance/SyncRescheduleClusterMaintenance.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_RescheduleClusterMaintenance_sync] +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.Cluster; +import com.google.cloud.redis.cluster.v1.ClusterName; +import com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest; +import com.google.protobuf.Timestamp; + +public class SyncRescheduleClusterMaintenance { + + public static void main(String[] args) throws Exception { + syncRescheduleClusterMaintenance(); + } + + public static void syncRescheduleClusterMaintenance() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + RescheduleClusterMaintenanceRequest request = + RescheduleClusterMaintenanceRequest.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setScheduleTime(Timestamp.newBuilder().build()) + .build(); + Cluster response = cloudRedisClusterClient.rescheduleClusterMaintenanceAsync(request).get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_RescheduleClusterMaintenance_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/rescheduleclustermaintenance/SyncRescheduleClusterMaintenanceClusternameRescheduleclustermaintenancerequestrescheduletypeTimestamp.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/rescheduleclustermaintenance/SyncRescheduleClusterMaintenanceClusternameRescheduleclustermaintenancerequestrescheduletypeTimestamp.java new file mode 100644 index 000000000000..0b01b22ee416 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/rescheduleclustermaintenance/SyncRescheduleClusterMaintenanceClusternameRescheduleclustermaintenancerequestrescheduletypeTimestamp.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_RescheduleClusterMaintenance_ClusternameRescheduleclustermaintenancerequestrescheduletypeTimestamp_sync] +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.Cluster; +import com.google.cloud.redis.cluster.v1.ClusterName; +import com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest; +import com.google.protobuf.Timestamp; + +public +class SyncRescheduleClusterMaintenanceClusternameRescheduleclustermaintenancerequestrescheduletypeTimestamp { + + public static void main(String[] args) throws Exception { + syncRescheduleClusterMaintenanceClusternameRescheduleclustermaintenancerequestrescheduletypeTimestamp(); + } + + public static void + syncRescheduleClusterMaintenanceClusternameRescheduleclustermaintenancerequestrescheduletypeTimestamp() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType = + RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0); + Timestamp scheduleTime = Timestamp.newBuilder().build(); + Cluster response = + cloudRedisClusterClient + .rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime) + .get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_RescheduleClusterMaintenance_ClusternameRescheduleclustermaintenancerequestrescheduletypeTimestamp_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/rescheduleclustermaintenance/SyncRescheduleClusterMaintenanceStringRescheduleclustermaintenancerequestrescheduletypeTimestamp.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/rescheduleclustermaintenance/SyncRescheduleClusterMaintenanceStringRescheduleclustermaintenancerequestrescheduletypeTimestamp.java new file mode 100644 index 000000000000..19dbfc99b7b3 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/rescheduleclustermaintenance/SyncRescheduleClusterMaintenanceStringRescheduleclustermaintenancerequestrescheduletypeTimestamp.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_RescheduleClusterMaintenance_StringRescheduleclustermaintenancerequestrescheduletypeTimestamp_sync] +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.Cluster; +import com.google.cloud.redis.cluster.v1.ClusterName; +import com.google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest; +import com.google.protobuf.Timestamp; + +public +class SyncRescheduleClusterMaintenanceStringRescheduleclustermaintenancerequestrescheduletypeTimestamp { + + public static void main(String[] args) throws Exception { + syncRescheduleClusterMaintenanceStringRescheduleclustermaintenancerequestrescheduletypeTimestamp(); + } + + public static void + syncRescheduleClusterMaintenanceStringRescheduleclustermaintenancerequestrescheduletypeTimestamp() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + String name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString(); + RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType = + RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0); + Timestamp scheduleTime = Timestamp.newBuilder().build(); + Cluster response = + cloudRedisClusterClient + .rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime) + .get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_RescheduleClusterMaintenance_StringRescheduleclustermaintenancerequestrescheduletypeTimestamp_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/backupcluster/AsyncBackupCluster.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/backupcluster/AsyncBackupCluster.java new file mode 100644 index 000000000000..ddecc27434ac --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/backupcluster/AsyncBackupCluster.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_BackupCluster_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.ClusterName; +import com.google.longrunning.Operation; +import com.google.protobuf.Duration; + +public class AsyncBackupCluster { + + public static void main(String[] args) throws Exception { + asyncBackupCluster(); + } + + public static void asyncBackupCluster() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + BackupClusterRequest request = + BackupClusterRequest.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setTtl(Duration.newBuilder().build()) + .setBackupId("backupId2121930365") + .build(); + ApiFuture future = + cloudRedisClusterClient.backupClusterCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_BackupCluster_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/backupcluster/AsyncBackupClusterLRO.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/backupcluster/AsyncBackupClusterLRO.java new file mode 100644 index 000000000000..3ab21d62940b --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/backupcluster/AsyncBackupClusterLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_BackupCluster_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.Cluster; +import com.google.cloud.redis.cluster.v1beta1.ClusterName; +import com.google.protobuf.Any; +import com.google.protobuf.Duration; + +public class AsyncBackupClusterLRO { + + public static void main(String[] args) throws Exception { + asyncBackupClusterLRO(); + } + + public static void asyncBackupClusterLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + BackupClusterRequest request = + BackupClusterRequest.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setTtl(Duration.newBuilder().build()) + .setBackupId("backupId2121930365") + .build(); + OperationFuture future = + cloudRedisClusterClient.backupClusterOperationCallable().futureCall(request); + // Do something. + Cluster response = future.get(); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_BackupCluster_LRO_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/backupcluster/SyncBackupCluster.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/backupcluster/SyncBackupCluster.java new file mode 100644 index 000000000000..90aacc1b4513 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/backupcluster/SyncBackupCluster.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_BackupCluster_sync] +import com.google.cloud.redis.cluster.v1beta1.BackupClusterRequest; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.Cluster; +import com.google.cloud.redis.cluster.v1beta1.ClusterName; +import com.google.protobuf.Duration; + +public class SyncBackupCluster { + + public static void main(String[] args) throws Exception { + syncBackupCluster(); + } + + public static void syncBackupCluster() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + BackupClusterRequest request = + BackupClusterRequest.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setTtl(Duration.newBuilder().build()) + .setBackupId("backupId2121930365") + .build(); + Cluster response = cloudRedisClusterClient.backupClusterAsync(request).get(); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_BackupCluster_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/backupcluster/SyncBackupClusterClustername.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/backupcluster/SyncBackupClusterClustername.java new file mode 100644 index 000000000000..1bdb8f002f66 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/backupcluster/SyncBackupClusterClustername.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_BackupCluster_Clustername_sync] +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.Cluster; +import com.google.cloud.redis.cluster.v1beta1.ClusterName; + +public class SyncBackupClusterClustername { + + public static void main(String[] args) throws Exception { + syncBackupClusterClustername(); + } + + public static void syncBackupClusterClustername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + Cluster response = cloudRedisClusterClient.backupClusterAsync(name).get(); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_BackupCluster_Clustername_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/backupcluster/SyncBackupClusterString.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/backupcluster/SyncBackupClusterString.java new file mode 100644 index 000000000000..34b7dfaa6b43 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/backupcluster/SyncBackupClusterString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_BackupCluster_String_sync] +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.Cluster; +import com.google.cloud.redis.cluster.v1beta1.ClusterName; + +public class SyncBackupClusterString { + + public static void main(String[] args) throws Exception { + syncBackupClusterString(); + } + + public static void syncBackupClusterString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + String name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString(); + Cluster response = cloudRedisClusterClient.backupClusterAsync(name).get(); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_BackupCluster_String_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/deletebackup/AsyncDeleteBackup.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/deletebackup/AsyncDeleteBackup.java new file mode 100644 index 000000000000..7d06adc66f84 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/deletebackup/AsyncDeleteBackup.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_DeleteBackup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.cluster.v1beta1.BackupName; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest; +import com.google.longrunning.Operation; + +public class AsyncDeleteBackup { + + public static void main(String[] args) throws Exception { + asyncDeleteBackup(); + } + + public static void asyncDeleteBackup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + DeleteBackupRequest request = + DeleteBackupRequest.newBuilder() + .setName( + BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + cloudRedisClusterClient.deleteBackupCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_DeleteBackup_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/deletebackup/AsyncDeleteBackupLRO.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/deletebackup/AsyncDeleteBackupLRO.java new file mode 100644 index 000000000000..63dfb840188e --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/deletebackup/AsyncDeleteBackupLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_DeleteBackup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.redis.cluster.v1beta1.BackupName; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; + +public class AsyncDeleteBackupLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteBackupLRO(); + } + + public static void asyncDeleteBackupLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + DeleteBackupRequest request = + DeleteBackupRequest.newBuilder() + .setName( + BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + cloudRedisClusterClient.deleteBackupOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_DeleteBackup_LRO_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/deletebackup/SyncDeleteBackup.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/deletebackup/SyncDeleteBackup.java new file mode 100644 index 000000000000..21e01d8b44a6 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/deletebackup/SyncDeleteBackup.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_DeleteBackup_sync] +import com.google.cloud.redis.cluster.v1beta1.BackupName; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.DeleteBackupRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteBackup { + + public static void main(String[] args) throws Exception { + syncDeleteBackup(); + } + + public static void syncDeleteBackup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + DeleteBackupRequest request = + DeleteBackupRequest.newBuilder() + .setName( + BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") + .toString()) + .setRequestId("requestId693933066") + .build(); + cloudRedisClusterClient.deleteBackupAsync(request).get(); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_DeleteBackup_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/deletebackup/SyncDeleteBackupBackupname.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/deletebackup/SyncDeleteBackupBackupname.java new file mode 100644 index 000000000000..a258b970c8b1 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/deletebackup/SyncDeleteBackupBackupname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_DeleteBackup_Backupname_sync] +import com.google.cloud.redis.cluster.v1beta1.BackupName; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.protobuf.Empty; + +public class SyncDeleteBackupBackupname { + + public static void main(String[] args) throws Exception { + syncDeleteBackupBackupname(); + } + + public static void syncDeleteBackupBackupname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]"); + cloudRedisClusterClient.deleteBackupAsync(name).get(); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_DeleteBackup_Backupname_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/deletebackup/SyncDeleteBackupString.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/deletebackup/SyncDeleteBackupString.java new file mode 100644 index 000000000000..06f67945b69b --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/deletebackup/SyncDeleteBackupString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_DeleteBackup_String_sync] +import com.google.cloud.redis.cluster.v1beta1.BackupName; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.protobuf.Empty; + +public class SyncDeleteBackupString { + + public static void main(String[] args) throws Exception { + syncDeleteBackupString(); + } + + public static void syncDeleteBackupString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + String name = + BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]").toString(); + cloudRedisClusterClient.deleteBackupAsync(name).get(); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_DeleteBackup_String_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/exportbackup/AsyncExportBackup.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/exportbackup/AsyncExportBackup.java new file mode 100644 index 000000000000..b3c1e052378b --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/exportbackup/AsyncExportBackup.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_ExportBackup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.cluster.v1beta1.BackupName; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest; +import com.google.longrunning.Operation; + +public class AsyncExportBackup { + + public static void main(String[] args) throws Exception { + asyncExportBackup(); + } + + public static void asyncExportBackup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ExportBackupRequest request = + ExportBackupRequest.newBuilder() + .setName( + BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") + .toString()) + .build(); + ApiFuture future = + cloudRedisClusterClient.exportBackupCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_ExportBackup_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/exportbackup/AsyncExportBackupLRO.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/exportbackup/AsyncExportBackupLRO.java new file mode 100644 index 000000000000..41255b7e00b9 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/exportbackup/AsyncExportBackupLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_ExportBackup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.redis.cluster.v1beta1.Backup; +import com.google.cloud.redis.cluster.v1beta1.BackupName; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest; +import com.google.protobuf.Any; + +public class AsyncExportBackupLRO { + + public static void main(String[] args) throws Exception { + asyncExportBackupLRO(); + } + + public static void asyncExportBackupLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ExportBackupRequest request = + ExportBackupRequest.newBuilder() + .setName( + BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") + .toString()) + .build(); + OperationFuture future = + cloudRedisClusterClient.exportBackupOperationCallable().futureCall(request); + // Do something. + Backup response = future.get(); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_ExportBackup_LRO_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/exportbackup/SyncExportBackup.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/exportbackup/SyncExportBackup.java new file mode 100644 index 000000000000..b4219fd3ed50 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/exportbackup/SyncExportBackup.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_ExportBackup_sync] +import com.google.cloud.redis.cluster.v1beta1.Backup; +import com.google.cloud.redis.cluster.v1beta1.BackupName; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.ExportBackupRequest; + +public class SyncExportBackup { + + public static void main(String[] args) throws Exception { + syncExportBackup(); + } + + public static void syncExportBackup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ExportBackupRequest request = + ExportBackupRequest.newBuilder() + .setName( + BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") + .toString()) + .build(); + Backup response = cloudRedisClusterClient.exportBackupAsync(request).get(); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_ExportBackup_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getbackup/AsyncGetBackup.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getbackup/AsyncGetBackup.java new file mode 100644 index 000000000000..0fe274ce9cf0 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getbackup/AsyncGetBackup.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_GetBackup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.cluster.v1beta1.Backup; +import com.google.cloud.redis.cluster.v1beta1.BackupName; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.GetBackupRequest; + +public class AsyncGetBackup { + + public static void main(String[] args) throws Exception { + asyncGetBackup(); + } + + public static void asyncGetBackup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + GetBackupRequest request = + GetBackupRequest.newBuilder() + .setName( + BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") + .toString()) + .build(); + ApiFuture future = cloudRedisClusterClient.getBackupCallable().futureCall(request); + // Do something. + Backup response = future.get(); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_GetBackup_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getbackup/SyncGetBackup.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getbackup/SyncGetBackup.java new file mode 100644 index 000000000000..df8b55ce883a --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getbackup/SyncGetBackup.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_GetBackup_sync] +import com.google.cloud.redis.cluster.v1beta1.Backup; +import com.google.cloud.redis.cluster.v1beta1.BackupName; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.GetBackupRequest; + +public class SyncGetBackup { + + public static void main(String[] args) throws Exception { + syncGetBackup(); + } + + public static void syncGetBackup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + GetBackupRequest request = + GetBackupRequest.newBuilder() + .setName( + BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]") + .toString()) + .build(); + Backup response = cloudRedisClusterClient.getBackup(request); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_GetBackup_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getbackup/SyncGetBackupBackupname.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getbackup/SyncGetBackupBackupname.java new file mode 100644 index 000000000000..eccc5956c69f --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getbackup/SyncGetBackupBackupname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_GetBackup_Backupname_sync] +import com.google.cloud.redis.cluster.v1beta1.Backup; +import com.google.cloud.redis.cluster.v1beta1.BackupName; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; + +public class SyncGetBackupBackupname { + + public static void main(String[] args) throws Exception { + syncGetBackupBackupname(); + } + + public static void syncGetBackupBackupname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]"); + Backup response = cloudRedisClusterClient.getBackup(name); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_GetBackup_Backupname_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getbackup/SyncGetBackupString.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getbackup/SyncGetBackupString.java new file mode 100644 index 000000000000..e31dea872d9c --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getbackup/SyncGetBackupString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_GetBackup_String_sync] +import com.google.cloud.redis.cluster.v1beta1.Backup; +import com.google.cloud.redis.cluster.v1beta1.BackupName; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; + +public class SyncGetBackupString { + + public static void main(String[] args) throws Exception { + syncGetBackupString(); + } + + public static void syncGetBackupString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + String name = + BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]", "[BACKUP]").toString(); + Backup response = cloudRedisClusterClient.getBackup(name); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_GetBackup_String_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getbackupcollection/AsyncGetBackupCollection.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getbackupcollection/AsyncGetBackupCollection.java new file mode 100644 index 000000000000..9ea087e3a593 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getbackupcollection/AsyncGetBackupCollection.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_GetBackupCollection_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.cluster.v1beta1.BackupCollection; +import com.google.cloud.redis.cluster.v1beta1.BackupCollectionName; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest; + +public class AsyncGetBackupCollection { + + public static void main(String[] args) throws Exception { + asyncGetBackupCollection(); + } + + public static void asyncGetBackupCollection() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + GetBackupCollectionRequest request = + GetBackupCollectionRequest.newBuilder() + .setName( + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") + .toString()) + .build(); + ApiFuture future = + cloudRedisClusterClient.getBackupCollectionCallable().futureCall(request); + // Do something. + BackupCollection response = future.get(); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_GetBackupCollection_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getbackupcollection/SyncGetBackupCollection.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getbackupcollection/SyncGetBackupCollection.java new file mode 100644 index 000000000000..b89601a11863 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getbackupcollection/SyncGetBackupCollection.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_GetBackupCollection_sync] +import com.google.cloud.redis.cluster.v1beta1.BackupCollection; +import com.google.cloud.redis.cluster.v1beta1.BackupCollectionName; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.GetBackupCollectionRequest; + +public class SyncGetBackupCollection { + + public static void main(String[] args) throws Exception { + syncGetBackupCollection(); + } + + public static void syncGetBackupCollection() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + GetBackupCollectionRequest request = + GetBackupCollectionRequest.newBuilder() + .setName( + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") + .toString()) + .build(); + BackupCollection response = cloudRedisClusterClient.getBackupCollection(request); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_GetBackupCollection_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getbackupcollection/SyncGetBackupCollectionBackupcollectionname.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getbackupcollection/SyncGetBackupCollectionBackupcollectionname.java new file mode 100644 index 000000000000..7021ba8f4fb7 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getbackupcollection/SyncGetBackupCollectionBackupcollectionname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_GetBackupCollection_Backupcollectionname_sync] +import com.google.cloud.redis.cluster.v1beta1.BackupCollection; +import com.google.cloud.redis.cluster.v1beta1.BackupCollectionName; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; + +public class SyncGetBackupCollectionBackupcollectionname { + + public static void main(String[] args) throws Exception { + syncGetBackupCollectionBackupcollectionname(); + } + + public static void syncGetBackupCollectionBackupcollectionname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + BackupCollectionName name = + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]"); + BackupCollection response = cloudRedisClusterClient.getBackupCollection(name); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_GetBackupCollection_Backupcollectionname_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getbackupcollection/SyncGetBackupCollectionString.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getbackupcollection/SyncGetBackupCollectionString.java new file mode 100644 index 000000000000..8165ba23bb0f --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getbackupcollection/SyncGetBackupCollectionString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_GetBackupCollection_String_sync] +import com.google.cloud.redis.cluster.v1beta1.BackupCollection; +import com.google.cloud.redis.cluster.v1beta1.BackupCollectionName; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; + +public class SyncGetBackupCollectionString { + + public static void main(String[] args) throws Exception { + syncGetBackupCollectionString(); + } + + public static void syncGetBackupCollectionString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + String name = + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]").toString(); + BackupCollection response = cloudRedisClusterClient.getBackupCollection(name); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_GetBackupCollection_String_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listbackupcollections/AsyncListBackupCollections.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listbackupcollections/AsyncListBackupCollections.java new file mode 100644 index 000000000000..5e948a5c67c1 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listbackupcollections/AsyncListBackupCollections.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_ListBackupCollections_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.cluster.v1beta1.BackupCollection; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest; +import com.google.cloud.redis.cluster.v1beta1.LocationName; + +public class AsyncListBackupCollections { + + public static void main(String[] args) throws Exception { + asyncListBackupCollections(); + } + + public static void asyncListBackupCollections() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ListBackupCollectionsRequest request = + ListBackupCollectionsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + cloudRedisClusterClient.listBackupCollectionsPagedCallable().futureCall(request); + // Do something. + for (BackupCollection element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_ListBackupCollections_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listbackupcollections/AsyncListBackupCollectionsPaged.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listbackupcollections/AsyncListBackupCollectionsPaged.java new file mode 100644 index 000000000000..dfcab7092abb --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listbackupcollections/AsyncListBackupCollectionsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_ListBackupCollections_Paged_async] +import com.google.cloud.redis.cluster.v1beta1.BackupCollection; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest; +import com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse; +import com.google.cloud.redis.cluster.v1beta1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListBackupCollectionsPaged { + + public static void main(String[] args) throws Exception { + asyncListBackupCollectionsPaged(); + } + + public static void asyncListBackupCollectionsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ListBackupCollectionsRequest request = + ListBackupCollectionsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListBackupCollectionsResponse response = + cloudRedisClusterClient.listBackupCollectionsCallable().call(request); + for (BackupCollection element : response.getBackupCollectionsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_ListBackupCollections_Paged_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listbackupcollections/SyncListBackupCollections.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listbackupcollections/SyncListBackupCollections.java new file mode 100644 index 000000000000..0c041b7e15fd --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listbackupcollections/SyncListBackupCollections.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_ListBackupCollections_sync] +import com.google.cloud.redis.cluster.v1beta1.BackupCollection; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.ListBackupCollectionsRequest; +import com.google.cloud.redis.cluster.v1beta1.LocationName; + +public class SyncListBackupCollections { + + public static void main(String[] args) throws Exception { + syncListBackupCollections(); + } + + public static void syncListBackupCollections() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ListBackupCollectionsRequest request = + ListBackupCollectionsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (BackupCollection element : + cloudRedisClusterClient.listBackupCollections(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_ListBackupCollections_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listbackupcollections/SyncListBackupCollectionsLocationname.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listbackupcollections/SyncListBackupCollectionsLocationname.java new file mode 100644 index 000000000000..dfdbfeb84359 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listbackupcollections/SyncListBackupCollectionsLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_ListBackupCollections_Locationname_sync] +import com.google.cloud.redis.cluster.v1beta1.BackupCollection; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.LocationName; + +public class SyncListBackupCollectionsLocationname { + + public static void main(String[] args) throws Exception { + syncListBackupCollectionsLocationname(); + } + + public static void syncListBackupCollectionsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (BackupCollection element : + cloudRedisClusterClient.listBackupCollections(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_ListBackupCollections_Locationname_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listbackupcollections/SyncListBackupCollectionsString.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listbackupcollections/SyncListBackupCollectionsString.java new file mode 100644 index 000000000000..e471297ce0f1 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listbackupcollections/SyncListBackupCollectionsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_ListBackupCollections_String_sync] +import com.google.cloud.redis.cluster.v1beta1.BackupCollection; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.LocationName; + +public class SyncListBackupCollectionsString { + + public static void main(String[] args) throws Exception { + syncListBackupCollectionsString(); + } + + public static void syncListBackupCollectionsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (BackupCollection element : + cloudRedisClusterClient.listBackupCollections(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_ListBackupCollections_String_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listbackups/AsyncListBackups.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listbackups/AsyncListBackups.java new file mode 100644 index 000000000000..e270bf340b9d --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listbackups/AsyncListBackups.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_ListBackups_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.cluster.v1beta1.Backup; +import com.google.cloud.redis.cluster.v1beta1.BackupCollectionName; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest; + +public class AsyncListBackups { + + public static void main(String[] args) throws Exception { + asyncListBackups(); + } + + public static void asyncListBackups() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ListBackupsRequest request = + ListBackupsRequest.newBuilder() + .setParent( + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + cloudRedisClusterClient.listBackupsPagedCallable().futureCall(request); + // Do something. + for (Backup element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_ListBackups_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listbackups/AsyncListBackupsPaged.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listbackups/AsyncListBackupsPaged.java new file mode 100644 index 000000000000..a93c12dfdcd6 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listbackups/AsyncListBackupsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_ListBackups_Paged_async] +import com.google.cloud.redis.cluster.v1beta1.Backup; +import com.google.cloud.redis.cluster.v1beta1.BackupCollectionName; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest; +import com.google.cloud.redis.cluster.v1beta1.ListBackupsResponse; +import com.google.common.base.Strings; + +public class AsyncListBackupsPaged { + + public static void main(String[] args) throws Exception { + asyncListBackupsPaged(); + } + + public static void asyncListBackupsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ListBackupsRequest request = + ListBackupsRequest.newBuilder() + .setParent( + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListBackupsResponse response = cloudRedisClusterClient.listBackupsCallable().call(request); + for (Backup element : response.getBackupsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_ListBackups_Paged_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listbackups/SyncListBackups.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listbackups/SyncListBackups.java new file mode 100644 index 000000000000..606ee7d87f61 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listbackups/SyncListBackups.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_ListBackups_sync] +import com.google.cloud.redis.cluster.v1beta1.Backup; +import com.google.cloud.redis.cluster.v1beta1.BackupCollectionName; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.ListBackupsRequest; + +public class SyncListBackups { + + public static void main(String[] args) throws Exception { + syncListBackups(); + } + + public static void syncListBackups() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ListBackupsRequest request = + ListBackupsRequest.newBuilder() + .setParent( + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Backup element : cloudRedisClusterClient.listBackups(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_ListBackups_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listbackups/SyncListBackupsBackupcollectionname.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listbackups/SyncListBackupsBackupcollectionname.java new file mode 100644 index 000000000000..b2301ca31c6b --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listbackups/SyncListBackupsBackupcollectionname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_ListBackups_Backupcollectionname_sync] +import com.google.cloud.redis.cluster.v1beta1.Backup; +import com.google.cloud.redis.cluster.v1beta1.BackupCollectionName; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; + +public class SyncListBackupsBackupcollectionname { + + public static void main(String[] args) throws Exception { + syncListBackupsBackupcollectionname(); + } + + public static void syncListBackupsBackupcollectionname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + BackupCollectionName parent = + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]"); + for (Backup element : cloudRedisClusterClient.listBackups(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_ListBackups_Backupcollectionname_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listbackups/SyncListBackupsString.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listbackups/SyncListBackupsString.java new file mode 100644 index 000000000000..ed473716e522 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/listbackups/SyncListBackupsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_ListBackups_String_sync] +import com.google.cloud.redis.cluster.v1beta1.Backup; +import com.google.cloud.redis.cluster.v1beta1.BackupCollectionName; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; + +public class SyncListBackupsString { + + public static void main(String[] args) throws Exception { + syncListBackupsString(); + } + + public static void syncListBackupsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + String parent = + BackupCollectionName.of("[PROJECT]", "[LOCATION]", "[BACKUP_COLLECTION]").toString(); + for (Backup element : cloudRedisClusterClient.listBackups(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_ListBackups_String_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/rescheduleclustermaintenance/AsyncRescheduleClusterMaintenance.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/rescheduleclustermaintenance/AsyncRescheduleClusterMaintenance.java new file mode 100644 index 000000000000..29251c5f891e --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/rescheduleclustermaintenance/AsyncRescheduleClusterMaintenance.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_RescheduleClusterMaintenance_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.ClusterName; +import com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.Timestamp; + +public class AsyncRescheduleClusterMaintenance { + + public static void main(String[] args) throws Exception { + asyncRescheduleClusterMaintenance(); + } + + public static void asyncRescheduleClusterMaintenance() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + RescheduleClusterMaintenanceRequest request = + RescheduleClusterMaintenanceRequest.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setScheduleTime(Timestamp.newBuilder().build()) + .build(); + ApiFuture future = + cloudRedisClusterClient.rescheduleClusterMaintenanceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_RescheduleClusterMaintenance_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/rescheduleclustermaintenance/AsyncRescheduleClusterMaintenanceLRO.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/rescheduleclustermaintenance/AsyncRescheduleClusterMaintenanceLRO.java new file mode 100644 index 000000000000..b08923856541 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/rescheduleclustermaintenance/AsyncRescheduleClusterMaintenanceLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_RescheduleClusterMaintenance_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.Cluster; +import com.google.cloud.redis.cluster.v1beta1.ClusterName; +import com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest; +import com.google.protobuf.Any; +import com.google.protobuf.Timestamp; + +public class AsyncRescheduleClusterMaintenanceLRO { + + public static void main(String[] args) throws Exception { + asyncRescheduleClusterMaintenanceLRO(); + } + + public static void asyncRescheduleClusterMaintenanceLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + RescheduleClusterMaintenanceRequest request = + RescheduleClusterMaintenanceRequest.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setScheduleTime(Timestamp.newBuilder().build()) + .build(); + OperationFuture future = + cloudRedisClusterClient + .rescheduleClusterMaintenanceOperationCallable() + .futureCall(request); + // Do something. + Cluster response = future.get(); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_RescheduleClusterMaintenance_LRO_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/rescheduleclustermaintenance/SyncRescheduleClusterMaintenance.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/rescheduleclustermaintenance/SyncRescheduleClusterMaintenance.java new file mode 100644 index 000000000000..83ccef964b2e --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/rescheduleclustermaintenance/SyncRescheduleClusterMaintenance.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_RescheduleClusterMaintenance_sync] +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.Cluster; +import com.google.cloud.redis.cluster.v1beta1.ClusterName; +import com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest; +import com.google.protobuf.Timestamp; + +public class SyncRescheduleClusterMaintenance { + + public static void main(String[] args) throws Exception { + syncRescheduleClusterMaintenance(); + } + + public static void syncRescheduleClusterMaintenance() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + RescheduleClusterMaintenanceRequest request = + RescheduleClusterMaintenanceRequest.newBuilder() + .setName(ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .setScheduleTime(Timestamp.newBuilder().build()) + .build(); + Cluster response = cloudRedisClusterClient.rescheduleClusterMaintenanceAsync(request).get(); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_RescheduleClusterMaintenance_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/rescheduleclustermaintenance/SyncRescheduleClusterMaintenanceClusternameRescheduleclustermaintenancerequestrescheduletypeTimestamp.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/rescheduleclustermaintenance/SyncRescheduleClusterMaintenanceClusternameRescheduleclustermaintenancerequestrescheduletypeTimestamp.java new file mode 100644 index 000000000000..587bbbf440e9 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/rescheduleclustermaintenance/SyncRescheduleClusterMaintenanceClusternameRescheduleclustermaintenancerequestrescheduletypeTimestamp.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_RescheduleClusterMaintenance_ClusternameRescheduleclustermaintenancerequestrescheduletypeTimestamp_sync] +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.Cluster; +import com.google.cloud.redis.cluster.v1beta1.ClusterName; +import com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest; +import com.google.protobuf.Timestamp; + +public +class SyncRescheduleClusterMaintenanceClusternameRescheduleclustermaintenancerequestrescheduletypeTimestamp { + + public static void main(String[] args) throws Exception { + syncRescheduleClusterMaintenanceClusternameRescheduleclustermaintenancerequestrescheduletypeTimestamp(); + } + + public static void + syncRescheduleClusterMaintenanceClusternameRescheduleclustermaintenancerequestrescheduletypeTimestamp() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + ClusterName name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType = + RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0); + Timestamp scheduleTime = Timestamp.newBuilder().build(); + Cluster response = + cloudRedisClusterClient + .rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime) + .get(); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_RescheduleClusterMaintenance_ClusternameRescheduleclustermaintenancerequestrescheduletypeTimestamp_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/rescheduleclustermaintenance/SyncRescheduleClusterMaintenanceStringRescheduleclustermaintenancerequestrescheduletypeTimestamp.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/rescheduleclustermaintenance/SyncRescheduleClusterMaintenanceStringRescheduleclustermaintenancerequestrescheduletypeTimestamp.java new file mode 100644 index 000000000000..1cf722a2b393 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/rescheduleclustermaintenance/SyncRescheduleClusterMaintenanceStringRescheduleclustermaintenancerequestrescheduletypeTimestamp.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.redis.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_RescheduleClusterMaintenance_StringRescheduleclustermaintenancerequestrescheduletypeTimestamp_sync] +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.Cluster; +import com.google.cloud.redis.cluster.v1beta1.ClusterName; +import com.google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest; +import com.google.protobuf.Timestamp; + +public +class SyncRescheduleClusterMaintenanceStringRescheduleclustermaintenancerequestrescheduletypeTimestamp { + + public static void main(String[] args) throws Exception { + syncRescheduleClusterMaintenanceStringRescheduleclustermaintenancerequestrescheduletypeTimestamp(); + } + + public static void + syncRescheduleClusterMaintenanceStringRescheduleclustermaintenancerequestrescheduletypeTimestamp() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + String name = ClusterName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString(); + RescheduleClusterMaintenanceRequest.RescheduleType rescheduleType = + RescheduleClusterMaintenanceRequest.RescheduleType.forNumber(0); + Timestamp scheduleTime = Timestamp.newBuilder().build(); + Cluster response = + cloudRedisClusterClient + .rescheduleClusterMaintenanceAsync(name, rescheduleType, scheduleTime) + .get(); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_RescheduleClusterMaintenance_StringRescheduleclustermaintenancerequestrescheduletypeTimestamp_sync] diff --git a/java-redis/README.md b/java-redis/README.md index 5cf0cdeff017..3bbac1fafe1c 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.52.0 + 26.53.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.58.0 + 2.59.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-redis:2.58.0' +implementation 'com.google.cloud:google-cloud-redis:2.59.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-redis" % "2.58.0" +libraryDependencies += "com.google.cloud" % "google-cloud-redis" % "2.59.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.58.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis/2.59.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 93bcc639c4c0..d8057e0dad2a 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.52.0 + 26.53.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.55.0 + 1.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-resource-settings:1.55.0' +implementation 'com.google.cloud:google-cloud-resource-settings:1.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-resource-settings" % "1.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-resource-settings" % "1.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-resource-settings.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-resource-settings/1.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-resource-settings/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-resourcemanager/README.md b/java-resourcemanager/README.md index 31099191f74b..2fa4dc022783 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.52.0 + 26.53.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.57.0 + 1.58.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-resourcemanager:1.57.0' +implementation 'com.google.cloud:google-cloud-resourcemanager:1.58.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-resourcemanager" % "1.57.0" +libraryDependencies += "com.google.cloud" % "google-cloud-resourcemanager" % "1.58.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.57.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-resourcemanager/1.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-retail/README.md b/java-retail/README.md index 9eb3d4ee7d15..9448ef5fb5d5 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.52.0 + 26.53.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.57.0 + 2.58.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-retail:2.57.0' +implementation 'com.google.cloud:google-cloud-retail:2.58.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-retail" % "2.57.0" +libraryDependencies += "com.google.cloud" % "google-cloud-retail" % "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-retail.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-retail/2.57.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-retail/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-run/README.md b/java-run/README.md index 670a4b6afd0e..f868c2a6bf07 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.52.0 + 26.53.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.55.0 + 0.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-run:0.55.0' +implementation 'com.google.cloud:google-cloud-run:0.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-run" % "0.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-run" % "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-run.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-run/0.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-run/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-scheduler/README.md b/java-scheduler/README.md index a54a66d3795a..5e8e12d34eae 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.52.0 + 26.53.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.55.0 + 2.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-scheduler:2.55.0' +implementation 'com.google.cloud:google-cloud-scheduler:2.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-scheduler" % "2.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-scheduler" % "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-scheduler.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-scheduler/2.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-scheduler/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-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/AppEngineHttpTarget.java b/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/AppEngineHttpTarget.java index feca85c68431..62d03d0ea1fb 100644 --- a/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/AppEngineHttpTarget.java +++ b/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/AppEngineHttpTarget.java @@ -283,20 +283,18 @@ public int getHeadersCount() { * the unix-cron format, this header will contain the job schedule as an * offset of UTC parsed according to RFC3339. * - * If the job has an - * [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler - * sets the following headers: - * - * * `Content-Type`: By default, the `Content-Type` header is set to - * `"application/octet-stream"`. The default can be overridden by explictly - * setting `Content-Type` to a particular media type when the job is - * created. - * For example, `Content-Type` can be set to `"application/json"`. - * * `Content-Length`: This is computed by Cloud Scheduler. This value is - * output only. It cannot be changed. + * If the job has a [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body] + * and the following headers are not set by the user, Cloud Scheduler sets + * default values: + * + * * `Content-Type`: This will be set to `"application/octet-stream"`. You + * can override this default by explicitly setting `Content-Type` to a + * particular media type when creating the job. For example, you can set + * `Content-Type` to `"application/json"`. * * The headers below are output only. They cannot be set or overridden: * + * * `Content-Length`: This is computed by Cloud Scheduler. * * `X-Google-*`: For Google internal use only. * * `X-AppEngine-*`: For Google internal use only. * @@ -341,20 +339,18 @@ public java.util.Map getHeaders() { * the unix-cron format, this header will contain the job schedule as an * offset of UTC parsed according to RFC3339. * - * If the job has an - * [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler - * sets the following headers: + * If the job has a [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body] + * and the following headers are not set by the user, Cloud Scheduler sets + * default values: * - * * `Content-Type`: By default, the `Content-Type` header is set to - * `"application/octet-stream"`. The default can be overridden by explictly - * setting `Content-Type` to a particular media type when the job is - * created. - * For example, `Content-Type` can be set to `"application/json"`. - * * `Content-Length`: This is computed by Cloud Scheduler. This value is - * output only. It cannot be changed. + * * `Content-Type`: This will be set to `"application/octet-stream"`. You + * can override this default by explicitly setting `Content-Type` to a + * particular media type when creating the job. For example, you can set + * `Content-Type` to `"application/json"`. * * The headers below are output only. They cannot be set or overridden: * + * * `Content-Length`: This is computed by Cloud Scheduler. * * `X-Google-*`: For Google internal use only. * * `X-AppEngine-*`: For Google internal use only. * @@ -390,20 +386,18 @@ public java.util.Map getHeadersMap() { * the unix-cron format, this header will contain the job schedule as an * offset of UTC parsed according to RFC3339. * - * If the job has an - * [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler - * sets the following headers: + * If the job has a [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body] + * and the following headers are not set by the user, Cloud Scheduler sets + * default values: * - * * `Content-Type`: By default, the `Content-Type` header is set to - * `"application/octet-stream"`. The default can be overridden by explictly - * setting `Content-Type` to a particular media type when the job is - * created. - * For example, `Content-Type` can be set to `"application/json"`. - * * `Content-Length`: This is computed by Cloud Scheduler. This value is - * output only. It cannot be changed. + * * `Content-Type`: This will be set to `"application/octet-stream"`. You + * can override this default by explicitly setting `Content-Type` to a + * particular media type when creating the job. For example, you can set + * `Content-Type` to `"application/json"`. * * The headers below are output only. They cannot be set or overridden: * + * * `Content-Length`: This is computed by Cloud Scheduler. * * `X-Google-*`: For Google internal use only. * * `X-AppEngine-*`: For Google internal use only. * @@ -446,20 +440,18 @@ public java.util.Map getHeadersMap() { * the unix-cron format, this header will contain the job schedule as an * offset of UTC parsed according to RFC3339. * - * If the job has an - * [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler - * sets the following headers: + * If the job has a [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body] + * and the following headers are not set by the user, Cloud Scheduler sets + * default values: * - * * `Content-Type`: By default, the `Content-Type` header is set to - * `"application/octet-stream"`. The default can be overridden by explictly - * setting `Content-Type` to a particular media type when the job is - * created. - * For example, `Content-Type` can be set to `"application/json"`. - * * `Content-Length`: This is computed by Cloud Scheduler. This value is - * output only. It cannot be changed. + * * `Content-Type`: This will be set to `"application/octet-stream"`. You + * can override this default by explicitly setting `Content-Type` to a + * particular media type when creating the job. For example, you can set + * `Content-Type` to `"application/json"`. * * The headers below are output only. They cannot be set or overridden: * + * * `Content-Length`: This is computed by Cloud Scheduler. * * `X-Google-*`: For Google internal use only. * * `X-AppEngine-*`: For Google internal use only. * @@ -1464,20 +1456,18 @@ public int getHeadersCount() { * the unix-cron format, this header will contain the job schedule as an * offset of UTC parsed according to RFC3339. * - * If the job has an - * [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler - * sets the following headers: + * If the job has a [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body] + * and the following headers are not set by the user, Cloud Scheduler sets + * default values: * - * * `Content-Type`: By default, the `Content-Type` header is set to - * `"application/octet-stream"`. The default can be overridden by explictly - * setting `Content-Type` to a particular media type when the job is - * created. - * For example, `Content-Type` can be set to `"application/json"`. - * * `Content-Length`: This is computed by Cloud Scheduler. This value is - * output only. It cannot be changed. + * * `Content-Type`: This will be set to `"application/octet-stream"`. You + * can override this default by explicitly setting `Content-Type` to a + * particular media type when creating the job. For example, you can set + * `Content-Type` to `"application/json"`. * * The headers below are output only. They cannot be set or overridden: * + * * `Content-Length`: This is computed by Cloud Scheduler. * * `X-Google-*`: For Google internal use only. * * `X-AppEngine-*`: For Google internal use only. * @@ -1522,20 +1512,18 @@ public java.util.Map getHeaders() { * the unix-cron format, this header will contain the job schedule as an * offset of UTC parsed according to RFC3339. * - * If the job has an - * [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler - * sets the following headers: + * If the job has a [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body] + * and the following headers are not set by the user, Cloud Scheduler sets + * default values: * - * * `Content-Type`: By default, the `Content-Type` header is set to - * `"application/octet-stream"`. The default can be overridden by explictly - * setting `Content-Type` to a particular media type when the job is - * created. - * For example, `Content-Type` can be set to `"application/json"`. - * * `Content-Length`: This is computed by Cloud Scheduler. This value is - * output only. It cannot be changed. + * * `Content-Type`: This will be set to `"application/octet-stream"`. You + * can override this default by explicitly setting `Content-Type` to a + * particular media type when creating the job. For example, you can set + * `Content-Type` to `"application/json"`. * * The headers below are output only. They cannot be set or overridden: * + * * `Content-Length`: This is computed by Cloud Scheduler. * * `X-Google-*`: For Google internal use only. * * `X-AppEngine-*`: For Google internal use only. * @@ -1571,20 +1559,18 @@ public java.util.Map getHeadersMap() { * the unix-cron format, this header will contain the job schedule as an * offset of UTC parsed according to RFC3339. * - * If the job has an - * [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler - * sets the following headers: + * If the job has a [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body] + * and the following headers are not set by the user, Cloud Scheduler sets + * default values: * - * * `Content-Type`: By default, the `Content-Type` header is set to - * `"application/octet-stream"`. The default can be overridden by explictly - * setting `Content-Type` to a particular media type when the job is - * created. - * For example, `Content-Type` can be set to `"application/json"`. - * * `Content-Length`: This is computed by Cloud Scheduler. This value is - * output only. It cannot be changed. + * * `Content-Type`: This will be set to `"application/octet-stream"`. You + * can override this default by explicitly setting `Content-Type` to a + * particular media type when creating the job. For example, you can set + * `Content-Type` to `"application/json"`. * * The headers below are output only. They cannot be set or overridden: * + * * `Content-Length`: This is computed by Cloud Scheduler. * * `X-Google-*`: For Google internal use only. * * `X-AppEngine-*`: For Google internal use only. * @@ -1627,20 +1613,18 @@ public java.util.Map getHeadersMap() { * the unix-cron format, this header will contain the job schedule as an * offset of UTC parsed according to RFC3339. * - * If the job has an - * [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler - * sets the following headers: + * If the job has a [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body] + * and the following headers are not set by the user, Cloud Scheduler sets + * default values: * - * * `Content-Type`: By default, the `Content-Type` header is set to - * `"application/octet-stream"`. The default can be overridden by explictly - * setting `Content-Type` to a particular media type when the job is - * created. - * For example, `Content-Type` can be set to `"application/json"`. - * * `Content-Length`: This is computed by Cloud Scheduler. This value is - * output only. It cannot be changed. + * * `Content-Type`: This will be set to `"application/octet-stream"`. You + * can override this default by explicitly setting `Content-Type` to a + * particular media type when creating the job. For example, you can set + * `Content-Type` to `"application/json"`. * * The headers below are output only. They cannot be set or overridden: * + * * `Content-Length`: This is computed by Cloud Scheduler. * * `X-Google-*`: For Google internal use only. * * `X-AppEngine-*`: For Google internal use only. * @@ -1689,20 +1673,18 @@ public Builder clearHeaders() { * the unix-cron format, this header will contain the job schedule as an * offset of UTC parsed according to RFC3339. * - * If the job has an - * [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler - * sets the following headers: + * If the job has a [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body] + * and the following headers are not set by the user, Cloud Scheduler sets + * default values: * - * * `Content-Type`: By default, the `Content-Type` header is set to - * `"application/octet-stream"`. The default can be overridden by explictly - * setting `Content-Type` to a particular media type when the job is - * created. - * For example, `Content-Type` can be set to `"application/json"`. - * * `Content-Length`: This is computed by Cloud Scheduler. This value is - * output only. It cannot be changed. + * * `Content-Type`: This will be set to `"application/octet-stream"`. You + * can override this default by explicitly setting `Content-Type` to a + * particular media type when creating the job. For example, you can set + * `Content-Type` to `"application/json"`. * * The headers below are output only. They cannot be set or overridden: * + * * `Content-Length`: This is computed by Cloud Scheduler. * * `X-Google-*`: For Google internal use only. * * `X-AppEngine-*`: For Google internal use only. * @@ -1747,20 +1729,18 @@ public java.util.Map getMutableHeaders() { * the unix-cron format, this header will contain the job schedule as an * offset of UTC parsed according to RFC3339. * - * If the job has an - * [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler - * sets the following headers: + * If the job has a [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body] + * and the following headers are not set by the user, Cloud Scheduler sets + * default values: * - * * `Content-Type`: By default, the `Content-Type` header is set to - * `"application/octet-stream"`. The default can be overridden by explictly - * setting `Content-Type` to a particular media type when the job is - * created. - * For example, `Content-Type` can be set to `"application/json"`. - * * `Content-Length`: This is computed by Cloud Scheduler. This value is - * output only. It cannot be changed. + * * `Content-Type`: This will be set to `"application/octet-stream"`. You + * can override this default by explicitly setting `Content-Type` to a + * particular media type when creating the job. For example, you can set + * `Content-Type` to `"application/json"`. * * The headers below are output only. They cannot be set or overridden: * + * * `Content-Length`: This is computed by Cloud Scheduler. * * `X-Google-*`: For Google internal use only. * * `X-AppEngine-*`: For Google internal use only. * @@ -1803,20 +1783,18 @@ public Builder putHeaders(java.lang.String key, java.lang.String value) { * the unix-cron format, this header will contain the job schedule as an * offset of UTC parsed according to RFC3339. * - * If the job has an - * [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler - * sets the following headers: + * If the job has a [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body] + * and the following headers are not set by the user, Cloud Scheduler sets + * default values: * - * * `Content-Type`: By default, the `Content-Type` header is set to - * `"application/octet-stream"`. The default can be overridden by explictly - * setting `Content-Type` to a particular media type when the job is - * created. - * For example, `Content-Type` can be set to `"application/json"`. - * * `Content-Length`: This is computed by Cloud Scheduler. This value is - * output only. It cannot be changed. + * * `Content-Type`: This will be set to `"application/octet-stream"`. You + * can override this default by explicitly setting `Content-Type` to a + * particular media type when creating the job. For example, you can set + * `Content-Type` to `"application/json"`. * * The headers below are output only. They cannot be set or overridden: * + * * `Content-Length`: This is computed by Cloud Scheduler. * * `X-Google-*`: For Google internal use only. * * `X-AppEngine-*`: For Google internal use only. * diff --git a/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/AppEngineHttpTargetOrBuilder.java b/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/AppEngineHttpTargetOrBuilder.java index d8f8e244d076..89514df39ab0 100644 --- a/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/AppEngineHttpTargetOrBuilder.java +++ b/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/AppEngineHttpTargetOrBuilder.java @@ -143,20 +143,18 @@ public interface AppEngineHttpTargetOrBuilder * the unix-cron format, this header will contain the job schedule as an * offset of UTC parsed according to RFC3339. * - * If the job has an - * [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler - * sets the following headers: - * - * * `Content-Type`: By default, the `Content-Type` header is set to - * `"application/octet-stream"`. The default can be overridden by explictly - * setting `Content-Type` to a particular media type when the job is - * created. - * For example, `Content-Type` can be set to `"application/json"`. - * * `Content-Length`: This is computed by Cloud Scheduler. This value is - * output only. It cannot be changed. + * If the job has a [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body] + * and the following headers are not set by the user, Cloud Scheduler sets + * default values: + * + * * `Content-Type`: This will be set to `"application/octet-stream"`. You + * can override this default by explicitly setting `Content-Type` to a + * particular media type when creating the job. For example, you can set + * `Content-Type` to `"application/json"`. * * The headers below are output only. They cannot be set or overridden: * + * * `Content-Length`: This is computed by Cloud Scheduler. * * `X-Google-*`: For Google internal use only. * * `X-AppEngine-*`: For Google internal use only. * @@ -189,20 +187,18 @@ public interface AppEngineHttpTargetOrBuilder * the unix-cron format, this header will contain the job schedule as an * offset of UTC parsed according to RFC3339. * - * If the job has an - * [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler - * sets the following headers: + * If the job has a [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body] + * and the following headers are not set by the user, Cloud Scheduler sets + * default values: * - * * `Content-Type`: By default, the `Content-Type` header is set to - * `"application/octet-stream"`. The default can be overridden by explictly - * setting `Content-Type` to a particular media type when the job is - * created. - * For example, `Content-Type` can be set to `"application/json"`. - * * `Content-Length`: This is computed by Cloud Scheduler. This value is - * output only. It cannot be changed. + * * `Content-Type`: This will be set to `"application/octet-stream"`. You + * can override this default by explicitly setting `Content-Type` to a + * particular media type when creating the job. For example, you can set + * `Content-Type` to `"application/json"`. * * The headers below are output only. They cannot be set or overridden: * + * * `Content-Length`: This is computed by Cloud Scheduler. * * `X-Google-*`: For Google internal use only. * * `X-AppEngine-*`: For Google internal use only. * @@ -238,20 +234,18 @@ public interface AppEngineHttpTargetOrBuilder * the unix-cron format, this header will contain the job schedule as an * offset of UTC parsed according to RFC3339. * - * If the job has an - * [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler - * sets the following headers: + * If the job has a [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body] + * and the following headers are not set by the user, Cloud Scheduler sets + * default values: * - * * `Content-Type`: By default, the `Content-Type` header is set to - * `"application/octet-stream"`. The default can be overridden by explictly - * setting `Content-Type` to a particular media type when the job is - * created. - * For example, `Content-Type` can be set to `"application/json"`. - * * `Content-Length`: This is computed by Cloud Scheduler. This value is - * output only. It cannot be changed. + * * `Content-Type`: This will be set to `"application/octet-stream"`. You + * can override this default by explicitly setting `Content-Type` to a + * particular media type when creating the job. For example, you can set + * `Content-Type` to `"application/json"`. * * The headers below are output only. They cannot be set or overridden: * + * * `Content-Length`: This is computed by Cloud Scheduler. * * `X-Google-*`: For Google internal use only. * * `X-AppEngine-*`: For Google internal use only. * @@ -284,20 +278,18 @@ public interface AppEngineHttpTargetOrBuilder * the unix-cron format, this header will contain the job schedule as an * offset of UTC parsed according to RFC3339. * - * If the job has an - * [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler - * sets the following headers: + * If the job has a [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body] + * and the following headers are not set by the user, Cloud Scheduler sets + * default values: * - * * `Content-Type`: By default, the `Content-Type` header is set to - * `"application/octet-stream"`. The default can be overridden by explictly - * setting `Content-Type` to a particular media type when the job is - * created. - * For example, `Content-Type` can be set to `"application/json"`. - * * `Content-Length`: This is computed by Cloud Scheduler. This value is - * output only. It cannot be changed. + * * `Content-Type`: This will be set to `"application/octet-stream"`. You + * can override this default by explicitly setting `Content-Type` to a + * particular media type when creating the job. For example, you can set + * `Content-Type` to `"application/json"`. * * The headers below are output only. They cannot be set or overridden: * + * * `Content-Length`: This is computed by Cloud Scheduler. * * `X-Google-*`: For Google internal use only. * * `X-AppEngine-*`: For Google internal use only. * @@ -334,20 +326,18 @@ java.lang.String getHeadersOrDefault( * the unix-cron format, this header will contain the job schedule as an * offset of UTC parsed according to RFC3339. * - * If the job has an - * [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler - * sets the following headers: + * If the job has a [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body] + * and the following headers are not set by the user, Cloud Scheduler sets + * default values: * - * * `Content-Type`: By default, the `Content-Type` header is set to - * `"application/octet-stream"`. The default can be overridden by explictly - * setting `Content-Type` to a particular media type when the job is - * created. - * For example, `Content-Type` can be set to `"application/json"`. - * * `Content-Length`: This is computed by Cloud Scheduler. This value is - * output only. It cannot be changed. + * * `Content-Type`: This will be set to `"application/octet-stream"`. You + * can override this default by explicitly setting `Content-Type` to a + * particular media type when creating the job. For example, you can set + * `Content-Type` to `"application/json"`. * * The headers below are output only. They cannot be set or overridden: * + * * `Content-Length`: This is computed by Cloud Scheduler. * * `X-Google-*`: For Google internal use only. * * `X-AppEngine-*`: For Google internal use only. * diff --git a/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/HttpTarget.java b/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/HttpTarget.java index c2bffacf7b8d..86c3d519f3d1 100644 --- a/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/HttpTarget.java +++ b/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/HttpTarget.java @@ -258,14 +258,20 @@ public int getHeadersCount() { * * *
    +   * HTTP request headers.
    +   *
    +   * This map contains the header field names and values.
    +   *
        * The user can specify HTTP request headers to send with the job's
    -   * HTTP request. This map contains the header field names and
    -   * values. Repeated headers are not supported, but a header value can
    -   * contain commas. These headers represent a subset of the headers
    -   * that will accompany the job's HTTP request. Some HTTP request
    -   * headers will be ignored or replaced. A partial list of headers that
    -   * will be ignored or replaced is below:
    -   * - Host: This will be computed by Cloud Scheduler and derived from
    +   * HTTP request. Repeated headers are not supported, but a header value can
    +   * contain commas.
    +   *
    +   * The following headers represent a subset of the headers
    +   * that accompany the job's HTTP request. Some HTTP request
    +   * headers are ignored or replaced. A partial list of headers that
    +   * are ignored or replaced is below:
    +   *
    +   * * Host: This will be computed by Cloud Scheduler and derived from
        * [uri][google.cloud.scheduler.v1.HttpTarget.uri].
        * * `Content-Length`: This will be computed by Cloud Scheduler.
        * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`.
    @@ -277,6 +283,15 @@ public int getHeadersCount() {
        * the unix-cron format, this header will contain the job schedule as an
        * offset of UTC parsed according to RFC3339.
        *
    +   * If the job has a [body][google.cloud.scheduler.v1.HttpTarget.body] and the
    +   * following headers are not set by the user, Cloud Scheduler sets default
    +   * values:
    +   *
    +   * * `Content-Type`: This will be set to `"application/octet-stream"`. You
    +   *   can override this default by explicitly setting `Content-Type` to a
    +   *   particular media type when creating the job. For example, you can set
    +   *   `Content-Type` to `"application/json"`.
    +   *
        * The total size of headers must be less than 80KB.
        * 
    * @@ -299,14 +314,20 @@ public java.util.Map getHeaders() { * * *
    +   * HTTP request headers.
    +   *
    +   * This map contains the header field names and values.
    +   *
        * The user can specify HTTP request headers to send with the job's
    -   * HTTP request. This map contains the header field names and
    -   * values. Repeated headers are not supported, but a header value can
    -   * contain commas. These headers represent a subset of the headers
    -   * that will accompany the job's HTTP request. Some HTTP request
    -   * headers will be ignored or replaced. A partial list of headers that
    -   * will be ignored or replaced is below:
    -   * - Host: This will be computed by Cloud Scheduler and derived from
    +   * HTTP request. Repeated headers are not supported, but a header value can
    +   * contain commas.
    +   *
    +   * The following headers represent a subset of the headers
    +   * that accompany the job's HTTP request. Some HTTP request
    +   * headers are ignored or replaced. A partial list of headers that
    +   * are ignored or replaced is below:
    +   *
    +   * * Host: This will be computed by Cloud Scheduler and derived from
        * [uri][google.cloud.scheduler.v1.HttpTarget.uri].
        * * `Content-Length`: This will be computed by Cloud Scheduler.
        * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`.
    @@ -318,6 +339,15 @@ public java.util.Map getHeaders() {
        * the unix-cron format, this header will contain the job schedule as an
        * offset of UTC parsed according to RFC3339.
        *
    +   * If the job has a [body][google.cloud.scheduler.v1.HttpTarget.body] and the
    +   * following headers are not set by the user, Cloud Scheduler sets default
    +   * values:
    +   *
    +   * * `Content-Type`: This will be set to `"application/octet-stream"`. You
    +   *   can override this default by explicitly setting `Content-Type` to a
    +   *   particular media type when creating the job. For example, you can set
    +   *   `Content-Type` to `"application/json"`.
    +   *
        * The total size of headers must be less than 80KB.
        * 
    * @@ -331,14 +361,20 @@ public java.util.Map getHeadersMap() { * * *
    +   * HTTP request headers.
    +   *
    +   * This map contains the header field names and values.
    +   *
        * The user can specify HTTP request headers to send with the job's
    -   * HTTP request. This map contains the header field names and
    -   * values. Repeated headers are not supported, but a header value can
    -   * contain commas. These headers represent a subset of the headers
    -   * that will accompany the job's HTTP request. Some HTTP request
    -   * headers will be ignored or replaced. A partial list of headers that
    -   * will be ignored or replaced is below:
    -   * - Host: This will be computed by Cloud Scheduler and derived from
    +   * HTTP request. Repeated headers are not supported, but a header value can
    +   * contain commas.
    +   *
    +   * The following headers represent a subset of the headers
    +   * that accompany the job's HTTP request. Some HTTP request
    +   * headers are ignored or replaced. A partial list of headers that
    +   * are ignored or replaced is below:
    +   *
    +   * * Host: This will be computed by Cloud Scheduler and derived from
        * [uri][google.cloud.scheduler.v1.HttpTarget.uri].
        * * `Content-Length`: This will be computed by Cloud Scheduler.
        * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`.
    @@ -350,6 +386,15 @@ public java.util.Map getHeadersMap() {
        * the unix-cron format, this header will contain the job schedule as an
        * offset of UTC parsed according to RFC3339.
        *
    +   * If the job has a [body][google.cloud.scheduler.v1.HttpTarget.body] and the
    +   * following headers are not set by the user, Cloud Scheduler sets default
    +   * values:
    +   *
    +   * * `Content-Type`: This will be set to `"application/octet-stream"`. You
    +   *   can override this default by explicitly setting `Content-Type` to a
    +   *   particular media type when creating the job. For example, you can set
    +   *   `Content-Type` to `"application/json"`.
    +   *
        * The total size of headers must be less than 80KB.
        * 
    * @@ -370,14 +415,20 @@ public java.util.Map getHeadersMap() { * * *
    +   * HTTP request headers.
    +   *
    +   * This map contains the header field names and values.
    +   *
        * The user can specify HTTP request headers to send with the job's
    -   * HTTP request. This map contains the header field names and
    -   * values. Repeated headers are not supported, but a header value can
    -   * contain commas. These headers represent a subset of the headers
    -   * that will accompany the job's HTTP request. Some HTTP request
    -   * headers will be ignored or replaced. A partial list of headers that
    -   * will be ignored or replaced is below:
    -   * - Host: This will be computed by Cloud Scheduler and derived from
    +   * HTTP request. Repeated headers are not supported, but a header value can
    +   * contain commas.
    +   *
    +   * The following headers represent a subset of the headers
    +   * that accompany the job's HTTP request. Some HTTP request
    +   * headers are ignored or replaced. A partial list of headers that
    +   * are ignored or replaced is below:
    +   *
    +   * * Host: This will be computed by Cloud Scheduler and derived from
        * [uri][google.cloud.scheduler.v1.HttpTarget.uri].
        * * `Content-Length`: This will be computed by Cloud Scheduler.
        * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`.
    @@ -389,6 +440,15 @@ public java.util.Map getHeadersMap() {
        * the unix-cron format, this header will contain the job schedule as an
        * offset of UTC parsed according to RFC3339.
        *
    +   * If the job has a [body][google.cloud.scheduler.v1.HttpTarget.body] and the
    +   * following headers are not set by the user, Cloud Scheduler sets default
    +   * values:
    +   *
    +   * * `Content-Type`: This will be set to `"application/octet-stream"`. You
    +   *   can override this default by explicitly setting `Content-Type` to a
    +   *   particular media type when creating the job. For example, you can set
    +   *   `Content-Type` to `"application/json"`.
    +   *
        * The total size of headers must be less than 80KB.
        * 
    * @@ -1368,14 +1428,20 @@ public int getHeadersCount() { * * *
    +     * HTTP request headers.
    +     *
    +     * This map contains the header field names and values.
    +     *
          * The user can specify HTTP request headers to send with the job's
    -     * HTTP request. This map contains the header field names and
    -     * values. Repeated headers are not supported, but a header value can
    -     * contain commas. These headers represent a subset of the headers
    -     * that will accompany the job's HTTP request. Some HTTP request
    -     * headers will be ignored or replaced. A partial list of headers that
    -     * will be ignored or replaced is below:
    -     * - Host: This will be computed by Cloud Scheduler and derived from
    +     * HTTP request. Repeated headers are not supported, but a header value can
    +     * contain commas.
    +     *
    +     * The following headers represent a subset of the headers
    +     * that accompany the job's HTTP request. Some HTTP request
    +     * headers are ignored or replaced. A partial list of headers that
    +     * are ignored or replaced is below:
    +     *
    +     * * Host: This will be computed by Cloud Scheduler and derived from
          * [uri][google.cloud.scheduler.v1.HttpTarget.uri].
          * * `Content-Length`: This will be computed by Cloud Scheduler.
          * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`.
    @@ -1387,6 +1453,15 @@ public int getHeadersCount() {
          * the unix-cron format, this header will contain the job schedule as an
          * offset of UTC parsed according to RFC3339.
          *
    +     * If the job has a [body][google.cloud.scheduler.v1.HttpTarget.body] and the
    +     * following headers are not set by the user, Cloud Scheduler sets default
    +     * values:
    +     *
    +     * * `Content-Type`: This will be set to `"application/octet-stream"`. You
    +     *   can override this default by explicitly setting `Content-Type` to a
    +     *   particular media type when creating the job. For example, you can set
    +     *   `Content-Type` to `"application/json"`.
    +     *
          * The total size of headers must be less than 80KB.
          * 
    * @@ -1409,14 +1484,20 @@ public java.util.Map getHeaders() { * * *
    +     * HTTP request headers.
    +     *
    +     * This map contains the header field names and values.
    +     *
          * The user can specify HTTP request headers to send with the job's
    -     * HTTP request. This map contains the header field names and
    -     * values. Repeated headers are not supported, but a header value can
    -     * contain commas. These headers represent a subset of the headers
    -     * that will accompany the job's HTTP request. Some HTTP request
    -     * headers will be ignored or replaced. A partial list of headers that
    -     * will be ignored or replaced is below:
    -     * - Host: This will be computed by Cloud Scheduler and derived from
    +     * HTTP request. Repeated headers are not supported, but a header value can
    +     * contain commas.
    +     *
    +     * The following headers represent a subset of the headers
    +     * that accompany the job's HTTP request. Some HTTP request
    +     * headers are ignored or replaced. A partial list of headers that
    +     * are ignored or replaced is below:
    +     *
    +     * * Host: This will be computed by Cloud Scheduler and derived from
          * [uri][google.cloud.scheduler.v1.HttpTarget.uri].
          * * `Content-Length`: This will be computed by Cloud Scheduler.
          * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`.
    @@ -1428,6 +1509,15 @@ public java.util.Map getHeaders() {
          * the unix-cron format, this header will contain the job schedule as an
          * offset of UTC parsed according to RFC3339.
          *
    +     * If the job has a [body][google.cloud.scheduler.v1.HttpTarget.body] and the
    +     * following headers are not set by the user, Cloud Scheduler sets default
    +     * values:
    +     *
    +     * * `Content-Type`: This will be set to `"application/octet-stream"`. You
    +     *   can override this default by explicitly setting `Content-Type` to a
    +     *   particular media type when creating the job. For example, you can set
    +     *   `Content-Type` to `"application/json"`.
    +     *
          * The total size of headers must be less than 80KB.
          * 
    * @@ -1441,14 +1531,20 @@ public java.util.Map getHeadersMap() { * * *
    +     * HTTP request headers.
    +     *
    +     * This map contains the header field names and values.
    +     *
          * The user can specify HTTP request headers to send with the job's
    -     * HTTP request. This map contains the header field names and
    -     * values. Repeated headers are not supported, but a header value can
    -     * contain commas. These headers represent a subset of the headers
    -     * that will accompany the job's HTTP request. Some HTTP request
    -     * headers will be ignored or replaced. A partial list of headers that
    -     * will be ignored or replaced is below:
    -     * - Host: This will be computed by Cloud Scheduler and derived from
    +     * HTTP request. Repeated headers are not supported, but a header value can
    +     * contain commas.
    +     *
    +     * The following headers represent a subset of the headers
    +     * that accompany the job's HTTP request. Some HTTP request
    +     * headers are ignored or replaced. A partial list of headers that
    +     * are ignored or replaced is below:
    +     *
    +     * * Host: This will be computed by Cloud Scheduler and derived from
          * [uri][google.cloud.scheduler.v1.HttpTarget.uri].
          * * `Content-Length`: This will be computed by Cloud Scheduler.
          * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`.
    @@ -1460,6 +1556,15 @@ public java.util.Map getHeadersMap() {
          * the unix-cron format, this header will contain the job schedule as an
          * offset of UTC parsed according to RFC3339.
          *
    +     * If the job has a [body][google.cloud.scheduler.v1.HttpTarget.body] and the
    +     * following headers are not set by the user, Cloud Scheduler sets default
    +     * values:
    +     *
    +     * * `Content-Type`: This will be set to `"application/octet-stream"`. You
    +     *   can override this default by explicitly setting `Content-Type` to a
    +     *   particular media type when creating the job. For example, you can set
    +     *   `Content-Type` to `"application/json"`.
    +     *
          * The total size of headers must be less than 80KB.
          * 
    * @@ -1480,14 +1585,20 @@ public java.util.Map getHeadersMap() { * * *
    +     * HTTP request headers.
    +     *
    +     * This map contains the header field names and values.
    +     *
          * The user can specify HTTP request headers to send with the job's
    -     * HTTP request. This map contains the header field names and
    -     * values. Repeated headers are not supported, but a header value can
    -     * contain commas. These headers represent a subset of the headers
    -     * that will accompany the job's HTTP request. Some HTTP request
    -     * headers will be ignored or replaced. A partial list of headers that
    -     * will be ignored or replaced is below:
    -     * - Host: This will be computed by Cloud Scheduler and derived from
    +     * HTTP request. Repeated headers are not supported, but a header value can
    +     * contain commas.
    +     *
    +     * The following headers represent a subset of the headers
    +     * that accompany the job's HTTP request. Some HTTP request
    +     * headers are ignored or replaced. A partial list of headers that
    +     * are ignored or replaced is below:
    +     *
    +     * * Host: This will be computed by Cloud Scheduler and derived from
          * [uri][google.cloud.scheduler.v1.HttpTarget.uri].
          * * `Content-Length`: This will be computed by Cloud Scheduler.
          * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`.
    @@ -1499,6 +1610,15 @@ public java.util.Map getHeadersMap() {
          * the unix-cron format, this header will contain the job schedule as an
          * offset of UTC parsed according to RFC3339.
          *
    +     * If the job has a [body][google.cloud.scheduler.v1.HttpTarget.body] and the
    +     * following headers are not set by the user, Cloud Scheduler sets default
    +     * values:
    +     *
    +     * * `Content-Type`: This will be set to `"application/octet-stream"`. You
    +     *   can override this default by explicitly setting `Content-Type` to a
    +     *   particular media type when creating the job. For example, you can set
    +     *   `Content-Type` to `"application/json"`.
    +     *
          * The total size of headers must be less than 80KB.
          * 
    * @@ -1525,14 +1645,20 @@ public Builder clearHeaders() { * * *
    +     * HTTP request headers.
    +     *
    +     * This map contains the header field names and values.
    +     *
          * The user can specify HTTP request headers to send with the job's
    -     * HTTP request. This map contains the header field names and
    -     * values. Repeated headers are not supported, but a header value can
    -     * contain commas. These headers represent a subset of the headers
    -     * that will accompany the job's HTTP request. Some HTTP request
    -     * headers will be ignored or replaced. A partial list of headers that
    -     * will be ignored or replaced is below:
    -     * - Host: This will be computed by Cloud Scheduler and derived from
    +     * HTTP request. Repeated headers are not supported, but a header value can
    +     * contain commas.
    +     *
    +     * The following headers represent a subset of the headers
    +     * that accompany the job's HTTP request. Some HTTP request
    +     * headers are ignored or replaced. A partial list of headers that
    +     * are ignored or replaced is below:
    +     *
    +     * * Host: This will be computed by Cloud Scheduler and derived from
          * [uri][google.cloud.scheduler.v1.HttpTarget.uri].
          * * `Content-Length`: This will be computed by Cloud Scheduler.
          * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`.
    @@ -1544,6 +1670,15 @@ public Builder clearHeaders() {
          * the unix-cron format, this header will contain the job schedule as an
          * offset of UTC parsed according to RFC3339.
          *
    +     * If the job has a [body][google.cloud.scheduler.v1.HttpTarget.body] and the
    +     * following headers are not set by the user, Cloud Scheduler sets default
    +     * values:
    +     *
    +     * * `Content-Type`: This will be set to `"application/octet-stream"`. You
    +     *   can override this default by explicitly setting `Content-Type` to a
    +     *   particular media type when creating the job. For example, you can set
    +     *   `Content-Type` to `"application/json"`.
    +     *
          * The total size of headers must be less than 80KB.
          * 
    * @@ -1566,14 +1701,20 @@ public java.util.Map getMutableHeaders() { * * *
    +     * HTTP request headers.
    +     *
    +     * This map contains the header field names and values.
    +     *
          * The user can specify HTTP request headers to send with the job's
    -     * HTTP request. This map contains the header field names and
    -     * values. Repeated headers are not supported, but a header value can
    -     * contain commas. These headers represent a subset of the headers
    -     * that will accompany the job's HTTP request. Some HTTP request
    -     * headers will be ignored or replaced. A partial list of headers that
    -     * will be ignored or replaced is below:
    -     * - Host: This will be computed by Cloud Scheduler and derived from
    +     * HTTP request. Repeated headers are not supported, but a header value can
    +     * contain commas.
    +     *
    +     * The following headers represent a subset of the headers
    +     * that accompany the job's HTTP request. Some HTTP request
    +     * headers are ignored or replaced. A partial list of headers that
    +     * are ignored or replaced is below:
    +     *
    +     * * Host: This will be computed by Cloud Scheduler and derived from
          * [uri][google.cloud.scheduler.v1.HttpTarget.uri].
          * * `Content-Length`: This will be computed by Cloud Scheduler.
          * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`.
    @@ -1585,6 +1726,15 @@ public java.util.Map getMutableHeaders() {
          * the unix-cron format, this header will contain the job schedule as an
          * offset of UTC parsed according to RFC3339.
          *
    +     * If the job has a [body][google.cloud.scheduler.v1.HttpTarget.body] and the
    +     * following headers are not set by the user, Cloud Scheduler sets default
    +     * values:
    +     *
    +     * * `Content-Type`: This will be set to `"application/octet-stream"`. You
    +     *   can override this default by explicitly setting `Content-Type` to a
    +     *   particular media type when creating the job. For example, you can set
    +     *   `Content-Type` to `"application/json"`.
    +     *
          * The total size of headers must be less than 80KB.
          * 
    * @@ -1605,14 +1755,20 @@ public Builder putHeaders(java.lang.String key, java.lang.String value) { * * *
    +     * HTTP request headers.
    +     *
    +     * This map contains the header field names and values.
    +     *
          * The user can specify HTTP request headers to send with the job's
    -     * HTTP request. This map contains the header field names and
    -     * values. Repeated headers are not supported, but a header value can
    -     * contain commas. These headers represent a subset of the headers
    -     * that will accompany the job's HTTP request. Some HTTP request
    -     * headers will be ignored or replaced. A partial list of headers that
    -     * will be ignored or replaced is below:
    -     * - Host: This will be computed by Cloud Scheduler and derived from
    +     * HTTP request. Repeated headers are not supported, but a header value can
    +     * contain commas.
    +     *
    +     * The following headers represent a subset of the headers
    +     * that accompany the job's HTTP request. Some HTTP request
    +     * headers are ignored or replaced. A partial list of headers that
    +     * are ignored or replaced is below:
    +     *
    +     * * Host: This will be computed by Cloud Scheduler and derived from
          * [uri][google.cloud.scheduler.v1.HttpTarget.uri].
          * * `Content-Length`: This will be computed by Cloud Scheduler.
          * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`.
    @@ -1624,6 +1780,15 @@ public Builder putHeaders(java.lang.String key, java.lang.String value) {
          * the unix-cron format, this header will contain the job schedule as an
          * offset of UTC parsed according to RFC3339.
          *
    +     * If the job has a [body][google.cloud.scheduler.v1.HttpTarget.body] and the
    +     * following headers are not set by the user, Cloud Scheduler sets default
    +     * values:
    +     *
    +     * * `Content-Type`: This will be set to `"application/octet-stream"`. You
    +     *   can override this default by explicitly setting `Content-Type` to a
    +     *   particular media type when creating the job. For example, you can set
    +     *   `Content-Type` to `"application/json"`.
    +     *
          * The total size of headers must be less than 80KB.
          * 
    * diff --git a/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/HttpTargetOrBuilder.java b/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/HttpTargetOrBuilder.java index 0e8799c064fd..a3be9bafee0a 100644 --- a/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/HttpTargetOrBuilder.java +++ b/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/HttpTargetOrBuilder.java @@ -88,14 +88,20 @@ public interface HttpTargetOrBuilder * * *
    +   * HTTP request headers.
    +   *
    +   * This map contains the header field names and values.
    +   *
        * The user can specify HTTP request headers to send with the job's
    -   * HTTP request. This map contains the header field names and
    -   * values. Repeated headers are not supported, but a header value can
    -   * contain commas. These headers represent a subset of the headers
    -   * that will accompany the job's HTTP request. Some HTTP request
    -   * headers will be ignored or replaced. A partial list of headers that
    -   * will be ignored or replaced is below:
    -   * - Host: This will be computed by Cloud Scheduler and derived from
    +   * HTTP request. Repeated headers are not supported, but a header value can
    +   * contain commas.
    +   *
    +   * The following headers represent a subset of the headers
    +   * that accompany the job's HTTP request. Some HTTP request
    +   * headers are ignored or replaced. A partial list of headers that
    +   * are ignored or replaced is below:
    +   *
    +   * * Host: This will be computed by Cloud Scheduler and derived from
        * [uri][google.cloud.scheduler.v1.HttpTarget.uri].
        * * `Content-Length`: This will be computed by Cloud Scheduler.
        * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`.
    @@ -107,6 +113,15 @@ public interface HttpTargetOrBuilder
        * the unix-cron format, this header will contain the job schedule as an
        * offset of UTC parsed according to RFC3339.
        *
    +   * If the job has a [body][google.cloud.scheduler.v1.HttpTarget.body] and the
    +   * following headers are not set by the user, Cloud Scheduler sets default
    +   * values:
    +   *
    +   * * `Content-Type`: This will be set to `"application/octet-stream"`. You
    +   *   can override this default by explicitly setting `Content-Type` to a
    +   *   particular media type when creating the job. For example, you can set
    +   *   `Content-Type` to `"application/json"`.
    +   *
        * The total size of headers must be less than 80KB.
        * 
    * @@ -117,14 +132,20 @@ public interface HttpTargetOrBuilder * * *
    +   * HTTP request headers.
    +   *
    +   * This map contains the header field names and values.
    +   *
        * The user can specify HTTP request headers to send with the job's
    -   * HTTP request. This map contains the header field names and
    -   * values. Repeated headers are not supported, but a header value can
    -   * contain commas. These headers represent a subset of the headers
    -   * that will accompany the job's HTTP request. Some HTTP request
    -   * headers will be ignored or replaced. A partial list of headers that
    -   * will be ignored or replaced is below:
    -   * - Host: This will be computed by Cloud Scheduler and derived from
    +   * HTTP request. Repeated headers are not supported, but a header value can
    +   * contain commas.
    +   *
    +   * The following headers represent a subset of the headers
    +   * that accompany the job's HTTP request. Some HTTP request
    +   * headers are ignored or replaced. A partial list of headers that
    +   * are ignored or replaced is below:
    +   *
    +   * * Host: This will be computed by Cloud Scheduler and derived from
        * [uri][google.cloud.scheduler.v1.HttpTarget.uri].
        * * `Content-Length`: This will be computed by Cloud Scheduler.
        * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`.
    @@ -136,6 +157,15 @@ public interface HttpTargetOrBuilder
        * the unix-cron format, this header will contain the job schedule as an
        * offset of UTC parsed according to RFC3339.
        *
    +   * If the job has a [body][google.cloud.scheduler.v1.HttpTarget.body] and the
    +   * following headers are not set by the user, Cloud Scheduler sets default
    +   * values:
    +   *
    +   * * `Content-Type`: This will be set to `"application/octet-stream"`. You
    +   *   can override this default by explicitly setting `Content-Type` to a
    +   *   particular media type when creating the job. For example, you can set
    +   *   `Content-Type` to `"application/json"`.
    +   *
        * The total size of headers must be less than 80KB.
        * 
    * @@ -149,14 +179,20 @@ public interface HttpTargetOrBuilder * * *
    +   * HTTP request headers.
    +   *
    +   * This map contains the header field names and values.
    +   *
        * The user can specify HTTP request headers to send with the job's
    -   * HTTP request. This map contains the header field names and
    -   * values. Repeated headers are not supported, but a header value can
    -   * contain commas. These headers represent a subset of the headers
    -   * that will accompany the job's HTTP request. Some HTTP request
    -   * headers will be ignored or replaced. A partial list of headers that
    -   * will be ignored or replaced is below:
    -   * - Host: This will be computed by Cloud Scheduler and derived from
    +   * HTTP request. Repeated headers are not supported, but a header value can
    +   * contain commas.
    +   *
    +   * The following headers represent a subset of the headers
    +   * that accompany the job's HTTP request. Some HTTP request
    +   * headers are ignored or replaced. A partial list of headers that
    +   * are ignored or replaced is below:
    +   *
    +   * * Host: This will be computed by Cloud Scheduler and derived from
        * [uri][google.cloud.scheduler.v1.HttpTarget.uri].
        * * `Content-Length`: This will be computed by Cloud Scheduler.
        * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`.
    @@ -168,6 +204,15 @@ public interface HttpTargetOrBuilder
        * the unix-cron format, this header will contain the job schedule as an
        * offset of UTC parsed according to RFC3339.
        *
    +   * If the job has a [body][google.cloud.scheduler.v1.HttpTarget.body] and the
    +   * following headers are not set by the user, Cloud Scheduler sets default
    +   * values:
    +   *
    +   * * `Content-Type`: This will be set to `"application/octet-stream"`. You
    +   *   can override this default by explicitly setting `Content-Type` to a
    +   *   particular media type when creating the job. For example, you can set
    +   *   `Content-Type` to `"application/json"`.
    +   *
        * The total size of headers must be less than 80KB.
        * 
    * @@ -178,14 +223,20 @@ public interface HttpTargetOrBuilder * * *
    +   * HTTP request headers.
    +   *
    +   * This map contains the header field names and values.
    +   *
        * The user can specify HTTP request headers to send with the job's
    -   * HTTP request. This map contains the header field names and
    -   * values. Repeated headers are not supported, but a header value can
    -   * contain commas. These headers represent a subset of the headers
    -   * that will accompany the job's HTTP request. Some HTTP request
    -   * headers will be ignored or replaced. A partial list of headers that
    -   * will be ignored or replaced is below:
    -   * - Host: This will be computed by Cloud Scheduler and derived from
    +   * HTTP request. Repeated headers are not supported, but a header value can
    +   * contain commas.
    +   *
    +   * The following headers represent a subset of the headers
    +   * that accompany the job's HTTP request. Some HTTP request
    +   * headers are ignored or replaced. A partial list of headers that
    +   * are ignored or replaced is below:
    +   *
    +   * * Host: This will be computed by Cloud Scheduler and derived from
        * [uri][google.cloud.scheduler.v1.HttpTarget.uri].
        * * `Content-Length`: This will be computed by Cloud Scheduler.
        * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`.
    @@ -197,6 +248,15 @@ public interface HttpTargetOrBuilder
        * the unix-cron format, this header will contain the job schedule as an
        * offset of UTC parsed according to RFC3339.
        *
    +   * If the job has a [body][google.cloud.scheduler.v1.HttpTarget.body] and the
    +   * following headers are not set by the user, Cloud Scheduler sets default
    +   * values:
    +   *
    +   * * `Content-Type`: This will be set to `"application/octet-stream"`. You
    +   *   can override this default by explicitly setting `Content-Type` to a
    +   *   particular media type when creating the job. For example, you can set
    +   *   `Content-Type` to `"application/json"`.
    +   *
        * The total size of headers must be less than 80KB.
        * 
    * @@ -211,14 +271,20 @@ java.lang.String getHeadersOrDefault( * * *
    +   * HTTP request headers.
    +   *
    +   * This map contains the header field names and values.
    +   *
        * The user can specify HTTP request headers to send with the job's
    -   * HTTP request. This map contains the header field names and
    -   * values. Repeated headers are not supported, but a header value can
    -   * contain commas. These headers represent a subset of the headers
    -   * that will accompany the job's HTTP request. Some HTTP request
    -   * headers will be ignored or replaced. A partial list of headers that
    -   * will be ignored or replaced is below:
    -   * - Host: This will be computed by Cloud Scheduler and derived from
    +   * HTTP request. Repeated headers are not supported, but a header value can
    +   * contain commas.
    +   *
    +   * The following headers represent a subset of the headers
    +   * that accompany the job's HTTP request. Some HTTP request
    +   * headers are ignored or replaced. A partial list of headers that
    +   * are ignored or replaced is below:
    +   *
    +   * * Host: This will be computed by Cloud Scheduler and derived from
        * [uri][google.cloud.scheduler.v1.HttpTarget.uri].
        * * `Content-Length`: This will be computed by Cloud Scheduler.
        * * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`.
    @@ -230,6 +296,15 @@ java.lang.String getHeadersOrDefault(
        * the unix-cron format, this header will contain the job schedule as an
        * offset of UTC parsed according to RFC3339.
        *
    +   * If the job has a [body][google.cloud.scheduler.v1.HttpTarget.body] and the
    +   * following headers are not set by the user, Cloud Scheduler sets default
    +   * values:
    +   *
    +   * * `Content-Type`: This will be set to `"application/octet-stream"`. You
    +   *   can override this default by explicitly setting `Content-Type` to a
    +   *   particular media type when creating the job. For example, you can set
    +   *   `Content-Type` to `"application/json"`.
    +   *
        * The total size of headers must be less than 80KB.
        * 
    * diff --git a/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/Job.java b/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/Job.java index 523cf31033db..fcd8d5909faa 100644 --- a/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/Job.java +++ b/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/Job.java @@ -667,7 +667,11 @@ public com.google.cloud.scheduler.v1.HttpTargetOrBuilder getHttpTargetOrBuilder( * If [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] > 0 and * a job attempt fails, the job will be tried a total of * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] times, - * with exponential backoff, until the next scheduled start time. + * with exponential backoff, until the next scheduled start time. If + * retry_count is 0, a job attempt will not be retried if it fails. Instead + * the Cloud Scheduler system will wait for the next scheduled execution time. + * Setting retry_count to 0 does not prevent failed jobs from running + * according to schedule after the failure. * * * string schedule = 20; @@ -713,7 +717,11 @@ public java.lang.String getSchedule() { * If [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] > 0 and * a job attempt fails, the job will be tried a total of * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] times, - * with exponential backoff, until the next scheduled start time. + * with exponential backoff, until the next scheduled start time. If + * retry_count is 0, a job attempt will not be retried if it fails. Instead + * the Cloud Scheduler system will wait for the next scheduled execution time. + * Setting retry_count to 0 does not prevent failed jobs from running + * according to schedule after the failure. * * * string schedule = 20; @@ -811,7 +819,9 @@ public com.google.protobuf.ByteString getTimeZoneBytes() { * Output only. The creation time of the job. * * - * .google.protobuf.Timestamp user_update_time = 9; + * + * .google.protobuf.Timestamp user_update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the userUpdateTime field is set. */ @@ -826,7 +836,9 @@ public boolean hasUserUpdateTime() { * Output only. The creation time of the job. * * - * .google.protobuf.Timestamp user_update_time = 9; + * + * .google.protobuf.Timestamp user_update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The userUpdateTime. */ @@ -843,7 +855,9 @@ public com.google.protobuf.Timestamp getUserUpdateTime() { * Output only. The creation time of the job. * * - * .google.protobuf.Timestamp user_update_time = 9; + * + * .google.protobuf.Timestamp user_update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUserUpdateTimeOrBuilder() { @@ -861,7 +875,9 @@ public com.google.protobuf.TimestampOrBuilder getUserUpdateTimeOrBuilder() { * Output only. State of the job. * * - * .google.cloud.scheduler.v1.Job.State state = 10; + * + * .google.cloud.scheduler.v1.Job.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for state. */ @@ -876,7 +892,9 @@ public int getStateValue() { * Output only. State of the job. * * - * .google.cloud.scheduler.v1.Job.State state = 10; + * + * .google.cloud.scheduler.v1.Job.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The state. */ @@ -896,7 +914,7 @@ public com.google.cloud.scheduler.v1.Job.State getState() { * Output only. The response from the target for the last attempted execution. * * - * .google.rpc.Status status = 11; + * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the status field is set. */ @@ -911,7 +929,7 @@ public boolean hasStatus() { * Output only. The response from the target for the last attempted execution. * * - * .google.rpc.Status status = 11; + * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The status. */ @@ -926,7 +944,7 @@ public com.google.rpc.Status getStatus() { * Output only. The response from the target for the last attempted execution. * * - * .google.rpc.Status status = 11; + * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { @@ -944,7 +962,9 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { * according to the schedule. * * - * .google.protobuf.Timestamp schedule_time = 17; + * + * .google.protobuf.Timestamp schedule_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the scheduleTime field is set. */ @@ -961,7 +981,9 @@ public boolean hasScheduleTime() { * according to the schedule. * * - * .google.protobuf.Timestamp schedule_time = 17; + * + * .google.protobuf.Timestamp schedule_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The scheduleTime. */ @@ -980,7 +1002,9 @@ public com.google.protobuf.Timestamp getScheduleTime() { * according to the schedule. * * - * .google.protobuf.Timestamp schedule_time = 17; + * + * .google.protobuf.Timestamp schedule_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { @@ -998,7 +1022,9 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { * Output only. The time the last job attempt started. * * - * .google.protobuf.Timestamp last_attempt_time = 18; + * + * .google.protobuf.Timestamp last_attempt_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the lastAttemptTime field is set. */ @@ -1013,7 +1039,9 @@ public boolean hasLastAttemptTime() { * Output only. The time the last job attempt started. * * - * .google.protobuf.Timestamp last_attempt_time = 18; + * + * .google.protobuf.Timestamp last_attempt_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The lastAttemptTime. */ @@ -1030,7 +1058,9 @@ public com.google.protobuf.Timestamp getLastAttemptTime() { * Output only. The time the last job attempt started. * * - * .google.protobuf.Timestamp last_attempt_time = 18; + * + * .google.protobuf.Timestamp last_attempt_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastAttemptTimeOrBuilder() { @@ -2961,7 +2991,11 @@ public com.google.cloud.scheduler.v1.HttpTargetOrBuilder getHttpTargetOrBuilder( * If [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] > 0 and * a job attempt fails, the job will be tried a total of * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] times, - * with exponential backoff, until the next scheduled start time. + * with exponential backoff, until the next scheduled start time. If + * retry_count is 0, a job attempt will not be retried if it fails. Instead + * the Cloud Scheduler system will wait for the next scheduled execution time. + * Setting retry_count to 0 does not prevent failed jobs from running + * according to schedule after the failure. * * * string schedule = 20; @@ -3006,7 +3040,11 @@ public java.lang.String getSchedule() { * If [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] > 0 and * a job attempt fails, the job will be tried a total of * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] times, - * with exponential backoff, until the next scheduled start time. + * with exponential backoff, until the next scheduled start time. If + * retry_count is 0, a job attempt will not be retried if it fails. Instead + * the Cloud Scheduler system will wait for the next scheduled execution time. + * Setting retry_count to 0 does not prevent failed jobs from running + * according to schedule after the failure. * * * string schedule = 20; @@ -3051,7 +3089,11 @@ public com.google.protobuf.ByteString getScheduleBytes() { * If [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] > 0 and * a job attempt fails, the job will be tried a total of * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] times, - * with exponential backoff, until the next scheduled start time. + * with exponential backoff, until the next scheduled start time. If + * retry_count is 0, a job attempt will not be retried if it fails. Instead + * the Cloud Scheduler system will wait for the next scheduled execution time. + * Setting retry_count to 0 does not prevent failed jobs from running + * according to schedule after the failure. * * * string schedule = 20; @@ -3095,7 +3137,11 @@ public Builder setSchedule(java.lang.String value) { * If [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] > 0 and * a job attempt fails, the job will be tried a total of * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] times, - * with exponential backoff, until the next scheduled start time. + * with exponential backoff, until the next scheduled start time. If + * retry_count is 0, a job attempt will not be retried if it fails. Instead + * the Cloud Scheduler system will wait for the next scheduled execution time. + * Setting retry_count to 0 does not prevent failed jobs from running + * according to schedule after the failure. * * * string schedule = 20; @@ -3135,7 +3181,11 @@ public Builder clearSchedule() { * If [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] > 0 and * a job attempt fails, the job will be tried a total of * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] times, - * with exponential backoff, until the next scheduled start time. + * with exponential backoff, until the next scheduled start time. If + * retry_count is 0, a job attempt will not be retried if it fails. Instead + * the Cloud Scheduler system will wait for the next scheduled execution time. + * Setting retry_count to 0 does not prevent failed jobs from running + * according to schedule after the failure. * * * string schedule = 20; @@ -3318,7 +3368,9 @@ public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { * Output only. The creation time of the job. * * - * .google.protobuf.Timestamp user_update_time = 9; + * + * .google.protobuf.Timestamp user_update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the userUpdateTime field is set. */ @@ -3332,7 +3384,9 @@ public boolean hasUserUpdateTime() { * Output only. The creation time of the job. * * - * .google.protobuf.Timestamp user_update_time = 9; + * + * .google.protobuf.Timestamp user_update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The userUpdateTime. */ @@ -3352,7 +3406,9 @@ public com.google.protobuf.Timestamp getUserUpdateTime() { * Output only. The creation time of the job. * * - * .google.protobuf.Timestamp user_update_time = 9; + * + * .google.protobuf.Timestamp user_update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUserUpdateTime(com.google.protobuf.Timestamp value) { if (userUpdateTimeBuilder_ == null) { @@ -3374,7 +3430,9 @@ public Builder setUserUpdateTime(com.google.protobuf.Timestamp value) { * Output only. The creation time of the job. * * - * .google.protobuf.Timestamp user_update_time = 9; + * + * .google.protobuf.Timestamp user_update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUserUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (userUpdateTimeBuilder_ == null) { @@ -3393,7 +3451,9 @@ public Builder setUserUpdateTime(com.google.protobuf.Timestamp.Builder builderFo * Output only. The creation time of the job. * * - * .google.protobuf.Timestamp user_update_time = 9; + * + * .google.protobuf.Timestamp user_update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUserUpdateTime(com.google.protobuf.Timestamp value) { if (userUpdateTimeBuilder_ == null) { @@ -3420,7 +3480,9 @@ public Builder mergeUserUpdateTime(com.google.protobuf.Timestamp value) { * Output only. The creation time of the job. * * - * .google.protobuf.Timestamp user_update_time = 9; + * + * .google.protobuf.Timestamp user_update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUserUpdateTime() { bitField0_ = (bitField0_ & ~0x00000080); @@ -3439,7 +3501,9 @@ public Builder clearUserUpdateTime() { * Output only. The creation time of the job. * * - * .google.protobuf.Timestamp user_update_time = 9; + * + * .google.protobuf.Timestamp user_update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUserUpdateTimeBuilder() { bitField0_ |= 0x00000080; @@ -3453,7 +3517,9 @@ public com.google.protobuf.Timestamp.Builder getUserUpdateTimeBuilder() { * Output only. The creation time of the job. * * - * .google.protobuf.Timestamp user_update_time = 9; + * + * .google.protobuf.Timestamp user_update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUserUpdateTimeOrBuilder() { if (userUpdateTimeBuilder_ != null) { @@ -3471,7 +3537,9 @@ public com.google.protobuf.TimestampOrBuilder getUserUpdateTimeOrBuilder() { * Output only. The creation time of the job. * * - * .google.protobuf.Timestamp user_update_time = 9; + * + * .google.protobuf.Timestamp user_update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -3498,7 +3566,9 @@ public com.google.protobuf.TimestampOrBuilder getUserUpdateTimeOrBuilder() { * Output only. State of the job. * * - * .google.cloud.scheduler.v1.Job.State state = 10; + * + * .google.cloud.scheduler.v1.Job.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for state. */ @@ -3513,7 +3583,9 @@ public int getStateValue() { * Output only. State of the job. * * - * .google.cloud.scheduler.v1.Job.State state = 10; + * + * .google.cloud.scheduler.v1.Job.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. @@ -3531,7 +3603,9 @@ public Builder setStateValue(int value) { * Output only. State of the job. * * - * .google.cloud.scheduler.v1.Job.State state = 10; + * + * .google.cloud.scheduler.v1.Job.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The state. */ @@ -3548,7 +3622,9 @@ public com.google.cloud.scheduler.v1.Job.State getState() { * Output only. State of the job. * * - * .google.cloud.scheduler.v1.Job.State state = 10; + * + * .google.cloud.scheduler.v1.Job.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The state to set. * @return This builder for chaining. @@ -3569,7 +3645,9 @@ public Builder setState(com.google.cloud.scheduler.v1.Job.State value) { * Output only. State of the job. * * - * .google.cloud.scheduler.v1.Job.State state = 10; + * + * .google.cloud.scheduler.v1.Job.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ @@ -3591,7 +3669,7 @@ public Builder clearState() { * Output only. The response from the target for the last attempted execution. * * - * .google.rpc.Status status = 11; + * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the status field is set. */ @@ -3605,7 +3683,7 @@ public boolean hasStatus() { * Output only. The response from the target for the last attempted execution. * * - * .google.rpc.Status status = 11; + * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The status. */ @@ -3623,7 +3701,7 @@ public com.google.rpc.Status getStatus() { * Output only. The response from the target for the last attempted execution. * * - * .google.rpc.Status status = 11; + * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStatus(com.google.rpc.Status value) { if (statusBuilder_ == null) { @@ -3645,7 +3723,7 @@ public Builder setStatus(com.google.rpc.Status value) { * Output only. The response from the target for the last attempted execution. * * - * .google.rpc.Status status = 11; + * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { if (statusBuilder_ == null) { @@ -3664,7 +3742,7 @@ public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { * Output only. The response from the target for the last attempted execution. * * - * .google.rpc.Status status = 11; + * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeStatus(com.google.rpc.Status value) { if (statusBuilder_ == null) { @@ -3691,7 +3769,7 @@ public Builder mergeStatus(com.google.rpc.Status value) { * Output only. The response from the target for the last attempted execution. * * - * .google.rpc.Status status = 11; + * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000200); @@ -3710,7 +3788,7 @@ public Builder clearStatus() { * Output only. The response from the target for the last attempted execution. * * - * .google.rpc.Status status = 11; + * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder getStatusBuilder() { bitField0_ |= 0x00000200; @@ -3724,7 +3802,7 @@ public com.google.rpc.Status.Builder getStatusBuilder() { * Output only. The response from the target for the last attempted execution. * * - * .google.rpc.Status status = 11; + * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { @@ -3740,7 +3818,7 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { * Output only. The response from the target for the last attempted execution. * * - * .google.rpc.Status status = 11; + * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> @@ -3771,7 +3849,9 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { * according to the schedule. * * - * .google.protobuf.Timestamp schedule_time = 17; + * + * .google.protobuf.Timestamp schedule_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the scheduleTime field is set. */ @@ -3787,7 +3867,9 @@ public boolean hasScheduleTime() { * according to the schedule. * * - * .google.protobuf.Timestamp schedule_time = 17; + * + * .google.protobuf.Timestamp schedule_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The scheduleTime. */ @@ -3809,7 +3891,9 @@ public com.google.protobuf.Timestamp getScheduleTime() { * according to the schedule. * * - * .google.protobuf.Timestamp schedule_time = 17; + * + * .google.protobuf.Timestamp schedule_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setScheduleTime(com.google.protobuf.Timestamp value) { if (scheduleTimeBuilder_ == null) { @@ -3833,7 +3917,9 @@ public Builder setScheduleTime(com.google.protobuf.Timestamp value) { * according to the schedule. * * - * .google.protobuf.Timestamp schedule_time = 17; + * + * .google.protobuf.Timestamp schedule_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (scheduleTimeBuilder_ == null) { @@ -3854,7 +3940,9 @@ public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForV * according to the schedule. * * - * .google.protobuf.Timestamp schedule_time = 17; + * + * .google.protobuf.Timestamp schedule_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) { if (scheduleTimeBuilder_ == null) { @@ -3883,7 +3971,9 @@ public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) { * according to the schedule. * * - * .google.protobuf.Timestamp schedule_time = 17; + * + * .google.protobuf.Timestamp schedule_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearScheduleTime() { bitField0_ = (bitField0_ & ~0x00000400); @@ -3904,7 +3994,9 @@ public Builder clearScheduleTime() { * according to the schedule. * * - * .google.protobuf.Timestamp schedule_time = 17; + * + * .google.protobuf.Timestamp schedule_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getScheduleTimeBuilder() { bitField0_ |= 0x00000400; @@ -3920,7 +4012,9 @@ public com.google.protobuf.Timestamp.Builder getScheduleTimeBuilder() { * according to the schedule. * * - * .google.protobuf.Timestamp schedule_time = 17; + * + * .google.protobuf.Timestamp schedule_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { if (scheduleTimeBuilder_ != null) { @@ -3940,7 +4034,9 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { * according to the schedule. * * - * .google.protobuf.Timestamp schedule_time = 17; + * + * .google.protobuf.Timestamp schedule_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -3972,7 +4068,9 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { * Output only. The time the last job attempt started. * * - * .google.protobuf.Timestamp last_attempt_time = 18; + * + * .google.protobuf.Timestamp last_attempt_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the lastAttemptTime field is set. */ @@ -3986,7 +4084,9 @@ public boolean hasLastAttemptTime() { * Output only. The time the last job attempt started. * * - * .google.protobuf.Timestamp last_attempt_time = 18; + * + * .google.protobuf.Timestamp last_attempt_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The lastAttemptTime. */ @@ -4006,7 +4106,9 @@ public com.google.protobuf.Timestamp getLastAttemptTime() { * Output only. The time the last job attempt started. * * - * .google.protobuf.Timestamp last_attempt_time = 18; + * + * .google.protobuf.Timestamp last_attempt_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setLastAttemptTime(com.google.protobuf.Timestamp value) { if (lastAttemptTimeBuilder_ == null) { @@ -4028,7 +4130,9 @@ public Builder setLastAttemptTime(com.google.protobuf.Timestamp value) { * Output only. The time the last job attempt started. * * - * .google.protobuf.Timestamp last_attempt_time = 18; + * + * .google.protobuf.Timestamp last_attempt_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setLastAttemptTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (lastAttemptTimeBuilder_ == null) { @@ -4047,7 +4151,9 @@ public Builder setLastAttemptTime(com.google.protobuf.Timestamp.Builder builderF * Output only. The time the last job attempt started. * * - * .google.protobuf.Timestamp last_attempt_time = 18; + * + * .google.protobuf.Timestamp last_attempt_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeLastAttemptTime(com.google.protobuf.Timestamp value) { if (lastAttemptTimeBuilder_ == null) { @@ -4074,7 +4180,9 @@ public Builder mergeLastAttemptTime(com.google.protobuf.Timestamp value) { * Output only. The time the last job attempt started. * * - * .google.protobuf.Timestamp last_attempt_time = 18; + * + * .google.protobuf.Timestamp last_attempt_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearLastAttemptTime() { bitField0_ = (bitField0_ & ~0x00000800); @@ -4093,7 +4201,9 @@ public Builder clearLastAttemptTime() { * Output only. The time the last job attempt started. * * - * .google.protobuf.Timestamp last_attempt_time = 18; + * + * .google.protobuf.Timestamp last_attempt_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getLastAttemptTimeBuilder() { bitField0_ |= 0x00000800; @@ -4107,7 +4217,9 @@ public com.google.protobuf.Timestamp.Builder getLastAttemptTimeBuilder() { * Output only. The time the last job attempt started. * * - * .google.protobuf.Timestamp last_attempt_time = 18; + * + * .google.protobuf.Timestamp last_attempt_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getLastAttemptTimeOrBuilder() { if (lastAttemptTimeBuilder_ != null) { @@ -4125,7 +4237,9 @@ public com.google.protobuf.TimestampOrBuilder getLastAttemptTimeOrBuilder() { * Output only. The time the last job attempt started. * * - * .google.protobuf.Timestamp last_attempt_time = 18; + * + * .google.protobuf.Timestamp last_attempt_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, diff --git a/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/JobOrBuilder.java b/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/JobOrBuilder.java index 70210d05837e..de4de785f51d 100644 --- a/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/JobOrBuilder.java +++ b/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/JobOrBuilder.java @@ -250,7 +250,11 @@ public interface JobOrBuilder * If [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] > 0 and * a job attempt fails, the job will be tried a total of * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] times, - * with exponential backoff, until the next scheduled start time. + * with exponential backoff, until the next scheduled start time. If + * retry_count is 0, a job attempt will not be retried if it fails. Instead + * the Cloud Scheduler system will wait for the next scheduled execution time. + * Setting retry_count to 0 does not prevent failed jobs from running + * according to schedule after the failure. * * * string schedule = 20; @@ -285,7 +289,11 @@ public interface JobOrBuilder * If [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] > 0 and * a job attempt fails, the job will be tried a total of * [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] times, - * with exponential backoff, until the next scheduled start time. + * with exponential backoff, until the next scheduled start time. If + * retry_count is 0, a job attempt will not be retried if it fails. Instead + * the Cloud Scheduler system will wait for the next scheduled execution time. + * Setting retry_count to 0 does not prevent failed jobs from running + * according to schedule after the failure. * * * string schedule = 20; @@ -344,7 +352,9 @@ public interface JobOrBuilder * Output only. The creation time of the job. * * - * .google.protobuf.Timestamp user_update_time = 9; + * + * .google.protobuf.Timestamp user_update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the userUpdateTime field is set. */ @@ -356,7 +366,9 @@ public interface JobOrBuilder * Output only. The creation time of the job. * * - * .google.protobuf.Timestamp user_update_time = 9; + * + * .google.protobuf.Timestamp user_update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The userUpdateTime. */ @@ -368,7 +380,9 @@ public interface JobOrBuilder * Output only. The creation time of the job. * * - * .google.protobuf.Timestamp user_update_time = 9; + * + * .google.protobuf.Timestamp user_update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUserUpdateTimeOrBuilder(); @@ -379,7 +393,9 @@ public interface JobOrBuilder * Output only. State of the job. * * - * .google.cloud.scheduler.v1.Job.State state = 10; + * + * .google.cloud.scheduler.v1.Job.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for state. */ @@ -391,7 +407,9 @@ public interface JobOrBuilder * Output only. State of the job. * * - * .google.cloud.scheduler.v1.Job.State state = 10; + * + * .google.cloud.scheduler.v1.Job.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The state. */ @@ -404,7 +422,7 @@ public interface JobOrBuilder * Output only. The response from the target for the last attempted execution. * * - * .google.rpc.Status status = 11; + * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return Whether the status field is set. */ @@ -416,7 +434,7 @@ public interface JobOrBuilder * Output only. The response from the target for the last attempted execution. * * - * .google.rpc.Status status = 11; + * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The status. */ @@ -428,7 +446,7 @@ public interface JobOrBuilder * Output only. The response from the target for the last attempted execution. * * - * .google.rpc.Status status = 11; + * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.rpc.StatusOrBuilder getStatusOrBuilder(); @@ -441,7 +459,9 @@ public interface JobOrBuilder * according to the schedule. * * - * .google.protobuf.Timestamp schedule_time = 17; + * + * .google.protobuf.Timestamp schedule_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the scheduleTime field is set. */ @@ -455,7 +475,9 @@ public interface JobOrBuilder * according to the schedule. * * - * .google.protobuf.Timestamp schedule_time = 17; + * + * .google.protobuf.Timestamp schedule_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The scheduleTime. */ @@ -469,7 +491,9 @@ public interface JobOrBuilder * according to the schedule. * * - * .google.protobuf.Timestamp schedule_time = 17; + * + * .google.protobuf.Timestamp schedule_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder(); @@ -480,7 +504,9 @@ public interface JobOrBuilder * Output only. The time the last job attempt started. * * - * .google.protobuf.Timestamp last_attempt_time = 18; + * + * .google.protobuf.Timestamp last_attempt_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the lastAttemptTime field is set. */ @@ -492,7 +518,9 @@ public interface JobOrBuilder * Output only. The time the last job attempt started. * * - * .google.protobuf.Timestamp last_attempt_time = 18; + * + * .google.protobuf.Timestamp last_attempt_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The lastAttemptTime. */ @@ -504,7 +532,9 @@ public interface JobOrBuilder * Output only. The time the last job attempt started. * * - * .google.protobuf.Timestamp last_attempt_time = 18; + * + * .google.protobuf.Timestamp last_attempt_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getLastAttemptTimeOrBuilder(); diff --git a/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/JobProto.java b/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/JobProto.java index 386f08267c33..9fc02399fdad 100644 --- a/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/JobProto.java +++ b/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/JobProto.java @@ -46,46 +46,48 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n#google/cloud/scheduler/v1/job.proto\022\031g" - + "oogle.cloud.scheduler.v1\032\031google/api/res" - + "ource.proto\032&google/cloud/scheduler/v1/t" - + "arget.proto\032\036google/protobuf/duration.pr" - + "oto\032\037google/protobuf/timestamp.proto\032\027go" - + "ogle/rpc/status.proto\"\313\006\n\003Job\022\014\n\004name\030\001 " - + "\001(\t\022\023\n\013description\030\002 \001(\t\022@\n\rpubsub_targe" - + "t\030\004 \001(\0132\'.google.cloud.scheduler.v1.Pubs" - + "ubTargetH\000\022P\n\026app_engine_http_target\030\005 \001" - + "(\0132..google.cloud.scheduler.v1.AppEngine" - + "HttpTargetH\000\022<\n\013http_target\030\006 \001(\0132%.goog" - + "le.cloud.scheduler.v1.HttpTargetH\000\022\020\n\010sc" - + "hedule\030\024 \001(\t\022\021\n\ttime_zone\030\025 \001(\t\0224\n\020user_" - + "update_time\030\t \001(\0132\032.google.protobuf.Time" - + "stamp\0223\n\005state\030\n \001(\0162$.google.cloud.sche" - + "duler.v1.Job.State\022\"\n\006status\030\013 \001(\0132\022.goo" - + "gle.rpc.Status\0221\n\rschedule_time\030\021 \001(\0132\032." - + "google.protobuf.Timestamp\0225\n\021last_attemp" - + "t_time\030\022 \001(\0132\032.google.protobuf.Timestamp" - + "\022<\n\014retry_config\030\023 \001(\0132&.google.cloud.sc" - + "heduler.v1.RetryConfig\0223\n\020attempt_deadli" - + "ne\030\026 \001(\0132\031.google.protobuf.Duration\"X\n\005S" - + "tate\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001" - + "\022\n\n\006PAUSED\020\002\022\014\n\010DISABLED\020\003\022\021\n\rUPDATE_FAI" - + "LED\020\004:Z\352AW\n!cloudscheduler.googleapis.co" - + "m/Job\0222projects/{project}/locations/{loc" - + "ation}/jobs/{job}B\010\n\006target\"\342\001\n\013RetryCon" - + "fig\022\023\n\013retry_count\030\001 \001(\005\0225\n\022max_retry_du" - + "ration\030\002 \001(\0132\031.google.protobuf.Duration\022" - + "7\n\024min_backoff_duration\030\003 \001(\0132\031.google.p" - + "rotobuf.Duration\0227\n\024max_backoff_duration" - + "\030\004 \001(\0132\031.google.protobuf.Duration\022\025\n\rmax" - + "_doublings\030\005 \001(\005Bh\n\035com.google.cloud.sch" - + "eduler.v1B\010JobProtoP\001Z;cloud.google.com/" - + "go/scheduler/apiv1/schedulerpb;scheduler" - + "pbb\006proto3" + + "oogle.cloud.scheduler.v1\032\037google/api/fie" + + "ld_behavior.proto\032\031google/api/resource.p" + + "roto\032&google/cloud/scheduler/v1/target.p" + + "roto\032\036google/protobuf/duration.proto\032\037go" + + "ogle/protobuf/timestamp.proto\032\027google/rp" + + "c/status.proto\"\357\006\n\003Job\022\014\n\004name\030\001 \001(\t\022\023\n\013" + + "description\030\002 \001(\t\022@\n\rpubsub_target\030\004 \001(\013" + + "2\'.google.cloud.scheduler.v1.PubsubTarge" + + "tH\000\022P\n\026app_engine_http_target\030\005 \001(\0132..go" + + "ogle.cloud.scheduler.v1.AppEngineHttpTar" + + "getH\000\022<\n\013http_target\030\006 \001(\0132%.google.clou" + + "d.scheduler.v1.HttpTargetH\000\022\020\n\010schedule\030" + + "\024 \001(\t\022\021\n\ttime_zone\030\025 \001(\t\0229\n\020user_update_" + + "time\030\t \001(\0132\032.google.protobuf.TimestampB\003" + + "\340A\003\0228\n\005state\030\n \001(\0162$.google.cloud.schedu" + + "ler.v1.Job.StateB\003\340A\003\022\'\n\006status\030\013 \001(\0132\022." + + "google.rpc.StatusB\003\340A\003\0226\n\rschedule_time\030" + + "\021 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022:" + + "\n\021last_attempt_time\030\022 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\022<\n\014retry_config\030\023 \001(\013" + + "2&.google.cloud.scheduler.v1.RetryConfig" + + "\0223\n\020attempt_deadline\030\026 \001(\0132\031.google.prot" + + "obuf.Duration\"X\n\005State\022\025\n\021STATE_UNSPECIF" + + "IED\020\000\022\013\n\007ENABLED\020\001\022\n\n\006PAUSED\020\002\022\014\n\010DISABL" + + "ED\020\003\022\021\n\rUPDATE_FAILED\020\004:e\352Ab\n!cloudsched" + + "uler.googleapis.com/Job\0222projects/{proje" + + "ct}/locations/{location}/jobs/{job}*\004job" + + "s2\003jobB\010\n\006target\"\342\001\n\013RetryConfig\022\023\n\013retr" + + "y_count\030\001 \001(\005\0225\n\022max_retry_duration\030\002 \001(" + + "\0132\031.google.protobuf.Duration\0227\n\024min_back" + + "off_duration\030\003 \001(\0132\031.google.protobuf.Dur" + + "ation\0227\n\024max_backoff_duration\030\004 \001(\0132\031.go" + + "ogle.protobuf.Duration\022\025\n\rmax_doublings\030" + + "\005 \001(\005Bh\n\035com.google.cloud.scheduler.v1B\010" + + "JobProtoP\001Z;cloud.google.com/go/schedule" + + "r/apiv1/schedulerpb;schedulerpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.scheduler.v1.TargetProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), @@ -128,9 +130,11 @@ 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.ResourceProto.resource); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.scheduler.v1.TargetProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); diff --git a/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ListJobsRequest.java b/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ListJobsRequest.java index 4f9d0bea907b..f52c7763e352 100644 --- a/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ListJobsRequest.java +++ b/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ListJobsRequest.java @@ -158,11 +158,7 @@ public int getPageSize() { * request the next page of results, page_token must be the value of * [next_page_token][google.cloud.scheduler.v1.ListJobsResponse.next_page_token] * returned from the previous call to - * [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. It is an - * error to switch the value of - * [filter][google.cloud.scheduler.v1.ListJobsRequest.filter] or - * [order_by][google.cloud.scheduler.v1.ListJobsRequest.order_by] while - * iterating through pages. + * [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. * * * string page_token = 6; @@ -190,11 +186,7 @@ public java.lang.String getPageToken() { * request the next page of results, page_token must be the value of * [next_page_token][google.cloud.scheduler.v1.ListJobsResponse.next_page_token] * returned from the previous call to - * [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. It is an - * error to switch the value of - * [filter][google.cloud.scheduler.v1.ListJobsRequest.filter] or - * [order_by][google.cloud.scheduler.v1.ListJobsRequest.order_by] while - * iterating through pages. + * [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. * * * string page_token = 6; @@ -801,11 +793,7 @@ public Builder clearPageSize() { * request the next page of results, page_token must be the value of * [next_page_token][google.cloud.scheduler.v1.ListJobsResponse.next_page_token] * returned from the previous call to - * [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. It is an - * error to switch the value of - * [filter][google.cloud.scheduler.v1.ListJobsRequest.filter] or - * [order_by][google.cloud.scheduler.v1.ListJobsRequest.order_by] while - * iterating through pages. + * [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. * * * string page_token = 6; @@ -832,11 +820,7 @@ public java.lang.String getPageToken() { * request the next page of results, page_token must be the value of * [next_page_token][google.cloud.scheduler.v1.ListJobsResponse.next_page_token] * returned from the previous call to - * [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. It is an - * error to switch the value of - * [filter][google.cloud.scheduler.v1.ListJobsRequest.filter] or - * [order_by][google.cloud.scheduler.v1.ListJobsRequest.order_by] while - * iterating through pages. + * [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. * * * string page_token = 6; @@ -863,11 +847,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * request the next page of results, page_token must be the value of * [next_page_token][google.cloud.scheduler.v1.ListJobsResponse.next_page_token] * returned from the previous call to - * [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. It is an - * error to switch the value of - * [filter][google.cloud.scheduler.v1.ListJobsRequest.filter] or - * [order_by][google.cloud.scheduler.v1.ListJobsRequest.order_by] while - * iterating through pages. + * [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. * * * string page_token = 6; @@ -893,11 +873,7 @@ public Builder setPageToken(java.lang.String value) { * request the next page of results, page_token must be the value of * [next_page_token][google.cloud.scheduler.v1.ListJobsResponse.next_page_token] * returned from the previous call to - * [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. It is an - * error to switch the value of - * [filter][google.cloud.scheduler.v1.ListJobsRequest.filter] or - * [order_by][google.cloud.scheduler.v1.ListJobsRequest.order_by] while - * iterating through pages. + * [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. * * * string page_token = 6; @@ -919,11 +895,7 @@ public Builder clearPageToken() { * request the next page of results, page_token must be the value of * [next_page_token][google.cloud.scheduler.v1.ListJobsResponse.next_page_token] * returned from the previous call to - * [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. It is an - * error to switch the value of - * [filter][google.cloud.scheduler.v1.ListJobsRequest.filter] or - * [order_by][google.cloud.scheduler.v1.ListJobsRequest.order_by] while - * iterating through pages. + * [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. * * * string page_token = 6; diff --git a/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ListJobsRequestOrBuilder.java b/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ListJobsRequestOrBuilder.java index 5fe5036d959c..457c37292027 100644 --- a/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ListJobsRequestOrBuilder.java +++ b/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ListJobsRequestOrBuilder.java @@ -82,11 +82,7 @@ public interface ListJobsRequestOrBuilder * request the next page of results, page_token must be the value of * [next_page_token][google.cloud.scheduler.v1.ListJobsResponse.next_page_token] * returned from the previous call to - * [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. It is an - * error to switch the value of - * [filter][google.cloud.scheduler.v1.ListJobsRequest.filter] or - * [order_by][google.cloud.scheduler.v1.ListJobsRequest.order_by] while - * iterating through pages. + * [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. * * * string page_token = 6; @@ -103,11 +99,7 @@ public interface ListJobsRequestOrBuilder * request the next page of results, page_token must be the value of * [next_page_token][google.cloud.scheduler.v1.ListJobsResponse.next_page_token] * returned from the previous call to - * [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. It is an - * error to switch the value of - * [filter][google.cloud.scheduler.v1.ListJobsRequest.filter] or - * [order_by][google.cloud.scheduler.v1.ListJobsRequest.order_by] while - * iterating through pages. + * [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. * * * string page_token = 6; diff --git a/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/RetryConfig.java b/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/RetryConfig.java index 11a955fd9b56..638e2024e013 100644 --- a/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/RetryConfig.java +++ b/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/RetryConfig.java @@ -79,9 +79,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * The default value of retry_count is zero. * - * If retry_count is zero, a job attempt will *not* be retried if + * If retry_count is 0, a job attempt will not be retried if * it fails. Instead the Cloud Scheduler system will wait for the - * next scheduled execution time. + * next scheduled execution time. Setting retry_count to 0 does not prevent + * failed jobs from running according to schedule after the failure. * * If retry_count is set to a non-zero number then Cloud Scheduler * will retry failed attempts, using exponential backoff, @@ -306,7 +307,7 @@ public com.google.protobuf.DurationOrBuilder getMaxBackoffDurationOrBuilder() { * [min_backoff_duration][google.cloud.scheduler.v1.RetryConfig.min_backoff_duration] * is 10s, * [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] - * is 300s, and `max_doublings` is 3, then the a job will first be retried in + * is 300s, and `max_doublings` is 3, then the job will first be retried in * 10s. The retry interval will double three times, and then increase linearly * by 2^3 * 10s. Finally, the job will retry at intervals of * [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] @@ -823,9 +824,10 @@ public Builder mergeFrom( * * The default value of retry_count is zero. * - * If retry_count is zero, a job attempt will *not* be retried if + * If retry_count is 0, a job attempt will not be retried if * it fails. Instead the Cloud Scheduler system will wait for the - * next scheduled execution time. + * next scheduled execution time. Setting retry_count to 0 does not prevent + * failed jobs from running according to schedule after the failure. * * If retry_count is set to a non-zero number then Cloud Scheduler * will retry failed attempts, using exponential backoff, @@ -853,9 +855,10 @@ public int getRetryCount() { * * The default value of retry_count is zero. * - * If retry_count is zero, a job attempt will *not* be retried if + * If retry_count is 0, a job attempt will not be retried if * it fails. Instead the Cloud Scheduler system will wait for the - * next scheduled execution time. + * next scheduled execution time. Setting retry_count to 0 does not prevent + * failed jobs from running according to schedule after the failure. * * If retry_count is set to a non-zero number then Cloud Scheduler * will retry failed attempts, using exponential backoff, @@ -887,9 +890,10 @@ public Builder setRetryCount(int value) { * * The default value of retry_count is zero. * - * If retry_count is zero, a job attempt will *not* be retried if + * If retry_count is 0, a job attempt will not be retried if * it fails. Instead the Cloud Scheduler system will wait for the - * next scheduled execution time. + * next scheduled execution time. Setting retry_count to 0 does not prevent + * failed jobs from running according to schedule after the failure. * * If retry_count is set to a non-zero number then Cloud Scheduler * will retry failed attempts, using exponential backoff, @@ -1592,7 +1596,7 @@ public com.google.protobuf.DurationOrBuilder getMaxBackoffDurationOrBuilder() { * [min_backoff_duration][google.cloud.scheduler.v1.RetryConfig.min_backoff_duration] * is 10s, * [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] - * is 300s, and `max_doublings` is 3, then the a job will first be retried in + * is 300s, and `max_doublings` is 3, then the job will first be retried in * 10s. The retry interval will double three times, and then increase linearly * by 2^3 * 10s. Finally, the job will retry at intervals of * [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] @@ -1630,7 +1634,7 @@ public int getMaxDoublings() { * [min_backoff_duration][google.cloud.scheduler.v1.RetryConfig.min_backoff_duration] * is 10s, * [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] - * is 300s, and `max_doublings` is 3, then the a job will first be retried in + * is 300s, and `max_doublings` is 3, then the job will first be retried in * 10s. The retry interval will double three times, and then increase linearly * by 2^3 * 10s. Finally, the job will retry at intervals of * [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] @@ -1672,7 +1676,7 @@ public Builder setMaxDoublings(int value) { * [min_backoff_duration][google.cloud.scheduler.v1.RetryConfig.min_backoff_duration] * is 10s, * [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] - * is 300s, and `max_doublings` is 3, then the a job will first be retried in + * is 300s, and `max_doublings` is 3, then the job will first be retried in * 10s. The retry interval will double three times, and then increase linearly * by 2^3 * 10s. Finally, the job will retry at intervals of * [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] diff --git a/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/RetryConfigOrBuilder.java b/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/RetryConfigOrBuilder.java index 395542b8ee05..dbcb75b81722 100644 --- a/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/RetryConfigOrBuilder.java +++ b/java-scheduler/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/RetryConfigOrBuilder.java @@ -34,9 +34,10 @@ public interface RetryConfigOrBuilder * * The default value of retry_count is zero. * - * If retry_count is zero, a job attempt will *not* be retried if + * If retry_count is 0, a job attempt will not be retried if * it fails. Instead the Cloud Scheduler system will wait for the - * next scheduled execution time. + * next scheduled execution time. Setting retry_count to 0 does not prevent + * failed jobs from running according to schedule after the failure. * * If retry_count is set to a non-zero number then Cloud Scheduler * will retry failed attempts, using exponential backoff, @@ -211,7 +212,7 @@ public interface RetryConfigOrBuilder * [min_backoff_duration][google.cloud.scheduler.v1.RetryConfig.min_backoff_duration] * is 10s, * [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] - * is 300s, and `max_doublings` is 3, then the a job will first be retried in + * is 300s, and `max_doublings` is 3, then the job will first be retried in * 10s. The retry interval will double three times, and then increase linearly * by 2^3 * 10s. Finally, the job will retry at intervals of * [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] diff --git a/java-scheduler/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/cloudscheduler.proto b/java-scheduler/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/cloudscheduler.proto index 0c201c5193b1..967cb2847c27 100644 --- a/java-scheduler/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/cloudscheduler.proto +++ b/java-scheduler/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/cloudscheduler.proto @@ -161,11 +161,7 @@ message ListJobsRequest { // request the next page of results, page_token must be the value of // [next_page_token][google.cloud.scheduler.v1.ListJobsResponse.next_page_token] // returned from the previous call to - // [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. It is an - // error to switch the value of - // [filter][google.cloud.scheduler.v1.ListJobsRequest.filter] or - // [order_by][google.cloud.scheduler.v1.ListJobsRequest.order_by] while - // iterating through pages. + // [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. string page_token = 6; } diff --git a/java-scheduler/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/job.proto b/java-scheduler/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/job.proto index 45258827164a..09172875af17 100644 --- a/java-scheduler/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/job.proto +++ b/java-scheduler/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/job.proto @@ -16,6 +16,7 @@ syntax = "proto3"; package google.cloud.scheduler.v1; +import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/scheduler/v1/target.proto"; import "google/protobuf/duration.proto"; @@ -33,6 +34,8 @@ message Job { option (google.api.resource) = { type: "cloudscheduler.googleapis.com/Job" pattern: "projects/{project}/locations/{location}/jobs/{job}" + plural: "jobs" + singular: "job" }; // State of the job. @@ -125,7 +128,11 @@ message Job { // If [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] > 0 and // a job attempt fails, the job will be tried a total of // [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] times, - // with exponential backoff, until the next scheduled start time. + // with exponential backoff, until the next scheduled start time. If + // retry_count is 0, a job attempt will not be retried if it fails. Instead + // the Cloud Scheduler system will wait for the next scheduled execution time. + // Setting retry_count to 0 does not prevent failed jobs from running + // according to schedule after the failure. string schedule = 20; // Specifies the time zone to be used in interpreting @@ -141,21 +148,24 @@ message Job { string time_zone = 21; // Output only. The creation time of the job. - google.protobuf.Timestamp user_update_time = 9; + google.protobuf.Timestamp user_update_time = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. State of the job. - State state = 10; + State state = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The response from the target for the last attempted execution. - google.rpc.Status status = 11; + google.rpc.Status status = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The next time the job is scheduled. Note that this may be a // retry of a previously failed attempt or the next execution time // according to the schedule. - google.protobuf.Timestamp schedule_time = 17; + google.protobuf.Timestamp schedule_time = 17 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time the last job attempt started. - google.protobuf.Timestamp last_attempt_time = 18; + google.protobuf.Timestamp last_attempt_time = 18 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Settings that determine the retry behavior. RetryConfig retry_config = 19; @@ -198,9 +208,10 @@ message RetryConfig { // // The default value of retry_count is zero. // - // If retry_count is zero, a job attempt will *not* be retried if + // If retry_count is 0, a job attempt will not be retried if // it fails. Instead the Cloud Scheduler system will wait for the - // next scheduled execution time. + // next scheduled execution time. Setting retry_count to 0 does not prevent + // failed jobs from running according to schedule after the failure. // // If retry_count is set to a non-zero number then Cloud Scheduler // will retry failed attempts, using exponential backoff, @@ -245,7 +256,7 @@ message RetryConfig { // [min_backoff_duration][google.cloud.scheduler.v1.RetryConfig.min_backoff_duration] // is 10s, // [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] - // is 300s, and `max_doublings` is 3, then the a job will first be retried in + // is 300s, and `max_doublings` is 3, then the job will first be retried in // 10s. The retry interval will double three times, and then increase linearly // by 2^3 * 10s. Finally, the job will retry at intervals of // [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] diff --git a/java-scheduler/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/target.proto b/java-scheduler/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/target.proto index 6b899e7d9623..7311d901bceb 100644 --- a/java-scheduler/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/target.proto +++ b/java-scheduler/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/target.proto @@ -46,14 +46,20 @@ message HttpTarget { // Which HTTP method to use for the request. HttpMethod http_method = 2; + // HTTP request headers. + // + // This map contains the header field names and values. + // // The user can specify HTTP request headers to send with the job's - // HTTP request. This map contains the header field names and - // values. Repeated headers are not supported, but a header value can - // contain commas. These headers represent a subset of the headers - // that will accompany the job's HTTP request. Some HTTP request - // headers will be ignored or replaced. A partial list of headers that - // will be ignored or replaced is below: - // - Host: This will be computed by Cloud Scheduler and derived from + // HTTP request. Repeated headers are not supported, but a header value can + // contain commas. + // + // The following headers represent a subset of the headers + // that accompany the job's HTTP request. Some HTTP request + // headers are ignored or replaced. A partial list of headers that + // are ignored or replaced is below: + // + // * Host: This will be computed by Cloud Scheduler and derived from // [uri][google.cloud.scheduler.v1.HttpTarget.uri]. // * `Content-Length`: This will be computed by Cloud Scheduler. // * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`. @@ -65,6 +71,15 @@ message HttpTarget { // the unix-cron format, this header will contain the job schedule as an // offset of UTC parsed according to RFC3339. // + // If the job has a [body][google.cloud.scheduler.v1.HttpTarget.body] and the + // following headers are not set by the user, Cloud Scheduler sets default + // values: + // + // * `Content-Type`: This will be set to `"application/octet-stream"`. You + // can override this default by explicitly setting `Content-Type` to a + // particular media type when creating the job. For example, you can set + // `Content-Type` to `"application/json"`. + // // The total size of headers must be less than 80KB. map headers = 3; @@ -144,20 +159,18 @@ message AppEngineHttpTarget { // the unix-cron format, this header will contain the job schedule as an // offset of UTC parsed according to RFC3339. // - // If the job has an - // [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler - // sets the following headers: + // If the job has a [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body] + // and the following headers are not set by the user, Cloud Scheduler sets + // default values: // - // * `Content-Type`: By default, the `Content-Type` header is set to - // `"application/octet-stream"`. The default can be overridden by explictly - // setting `Content-Type` to a particular media type when the job is - // created. - // For example, `Content-Type` can be set to `"application/json"`. - // * `Content-Length`: This is computed by Cloud Scheduler. This value is - // output only. It cannot be changed. + // * `Content-Type`: This will be set to `"application/octet-stream"`. You + // can override this default by explicitly setting `Content-Type` to a + // particular media type when creating the job. For example, you can set + // `Content-Type` to `"application/json"`. // // The headers below are output only. They cannot be set or overridden: // + // * `Content-Length`: This is computed by Cloud Scheduler. // * `X-Google-*`: For Google internal use only. // * `X-AppEngine-*`: For Google internal use only. // diff --git a/java-secretmanager/README.md b/java-secretmanager/README.md index 79d16f613a76..61d769f03f6d 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.52.0 + 26.53.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.55.0 + 2.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-secretmanager:2.55.0' +implementation 'com.google.cloud:google-cloud-secretmanager:2.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-secretmanager" % "2.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-secretmanager" % "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-secretmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-secretmanager/2.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-secretmanager/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-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Replication.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Replication.java index e3dc9d2c10b4..0c7a3eca09df 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Replication.java +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Replication.java @@ -1073,7 +1073,8 @@ com.google.cloud.secretmanager.v1.Replication.UserManaged.ReplicaOrBuilder getRe *
        * A replication policy that replicates the
        * [Secret][google.cloud.secretmanager.v1.Secret] payload into the locations
    -   * specified in [Secret.replication.user_managed.replicas][]
    +   * specified in
    +   * [Replication.UserManaged.replicas][google.cloud.secretmanager.v1.Replication.UserManaged.replicas]
        * 
    * * Protobuf type {@code google.cloud.secretmanager.v1.Replication.UserManaged} @@ -2532,7 +2533,8 @@ protected Builder newBuilderForType( *
          * A replication policy that replicates the
          * [Secret][google.cloud.secretmanager.v1.Secret] payload into the locations
    -     * specified in [Secret.replication.user_managed.replicas][]
    +     * specified in
    +     * [Replication.UserManaged.replicas][google.cloud.secretmanager.v1.Replication.UserManaged.replicas]
          * 
    * * Protobuf type {@code google.cloud.secretmanager.v1.Replication.UserManaged} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ResourcesProto.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ResourcesProto.java index 2919d79f5990..0a93e277d265 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ResourcesProto.java +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ResourcesProto.java @@ -195,20 +195,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "omerManagedEncryptionStatusB\003\340A\003B\024\n\022repl" + "ication_status\"D\n\037CustomerManagedEncrypt" + "ionStatus\022!\n\024kms_key_version_name\030\001 \001(\tB" - + "\003\340A\002\"_\n\005Topic\022\021\n\004name\030\001 \001(\tB\003\340A\002:C\352A@\n\033p" + + "\003\340A\002\"_\n\005Topic\022\021\n\004name\030\001 \001(\tB\003\340A\010:C\352A@\n\033p" + "ubsub.googleapis.com/Topic\022!projects/{pr" + "oject}/topics/{topic}\"\200\001\n\010Rotation\022;\n\022ne" + "xt_rotation_time\030\001 \001(\0132\032.google.protobuf" + ".TimestampB\003\340A\001\0227\n\017rotation_period\030\002 \001(\013" + "2\031.google.protobuf.DurationB\003\340A\004\"L\n\rSecr" + "etPayload\022\014\n\004data\030\001 \001(\014\022\035\n\013data_crc32c\030\002" - + " \001(\003B\003\340A\001H\000\210\001\001B\016\n\014_data_crc32cB\352\001\n!com.g" + + " \001(\003B\003\340A\001H\000\210\001\001B\016\n\014_data_crc32cB\347\001\n!com.g" + "oogle.cloud.secretmanager.v1B\016ResourcesP" + "rotoP\001ZGcloud.google.com/go/secretmanage" - + "r/apiv1/secretmanagerpb;secretmanagerpb\370" - + "\001\001\242\002\003GSM\252\002\035Google.Cloud.SecretManager.V1" - + "\312\002\035Google\\Cloud\\SecretManager\\V1\352\002 Googl" - + "e::Cloud::SecretManager::V1b\006proto3" + + "r/apiv1/secretmanagerpb;secretmanagerpb\242" + + "\002\003GSM\252\002\035Google.Cloud.SecretManager.V1\312\002\035" + + "Google\\Cloud\\SecretManager\\V1\352\002 Google::" + + "Cloud::SecretManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Secret.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Secret.java index 4c8ce9f89535..c29c120c733a 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Secret.java +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Secret.java @@ -1138,8 +1138,8 @@ public com.google.protobuf.DurationOrBuilder getVersionDestroyTtlOrBuilder() { * * *
    -   * Optional. The customer-managed encryption configuration of the Regionalised
    -   * Secrets. If no configuration is provided, Google-managed default encryption
    +   * Optional. The customer-managed encryption configuration of the regionalized
    +   * secrets. If no configuration is provided, Google-managed default encryption
        * is used.
        *
        * Updates to the [Secret][google.cloud.secretmanager.v1.Secret] encryption
    @@ -1163,8 +1163,8 @@ public boolean hasCustomerManagedEncryption() {
        *
        *
        * 
    -   * Optional. The customer-managed encryption configuration of the Regionalised
    -   * Secrets. If no configuration is provided, Google-managed default encryption
    +   * Optional. The customer-managed encryption configuration of the regionalized
    +   * secrets. If no configuration is provided, Google-managed default encryption
        * is used.
        *
        * Updates to the [Secret][google.cloud.secretmanager.v1.Secret] encryption
    @@ -1191,8 +1191,8 @@ public boolean hasCustomerManagedEncryption() {
        *
        *
        * 
    -   * Optional. The customer-managed encryption configuration of the Regionalised
    -   * Secrets. If no configuration is provided, Google-managed default encryption
    +   * Optional. The customer-managed encryption configuration of the regionalized
    +   * secrets. If no configuration is provided, Google-managed default encryption
        * is used.
        *
        * Updates to the [Secret][google.cloud.secretmanager.v1.Secret] encryption
    @@ -4806,8 +4806,8 @@ public com.google.protobuf.DurationOrBuilder getVersionDestroyTtlOrBuilder() {
          *
          *
          * 
    -     * Optional. The customer-managed encryption configuration of the Regionalised
    -     * Secrets. If no configuration is provided, Google-managed default encryption
    +     * Optional. The customer-managed encryption configuration of the regionalized
    +     * secrets. If no configuration is provided, Google-managed default encryption
          * is used.
          *
          * Updates to the [Secret][google.cloud.secretmanager.v1.Secret] encryption
    @@ -4830,8 +4830,8 @@ public boolean hasCustomerManagedEncryption() {
          *
          *
          * 
    -     * Optional. The customer-managed encryption configuration of the Regionalised
    -     * Secrets. If no configuration is provided, Google-managed default encryption
    +     * Optional. The customer-managed encryption configuration of the regionalized
    +     * secrets. If no configuration is provided, Google-managed default encryption
          * is used.
          *
          * Updates to the [Secret][google.cloud.secretmanager.v1.Secret] encryption
    @@ -4861,8 +4861,8 @@ public boolean hasCustomerManagedEncryption() {
          *
          *
          * 
    -     * Optional. The customer-managed encryption configuration of the Regionalised
    -     * Secrets. If no configuration is provided, Google-managed default encryption
    +     * Optional. The customer-managed encryption configuration of the regionalized
    +     * secrets. If no configuration is provided, Google-managed default encryption
          * is used.
          *
          * Updates to the [Secret][google.cloud.secretmanager.v1.Secret] encryption
    @@ -4894,8 +4894,8 @@ public Builder setCustomerManagedEncryption(
          *
          *
          * 
    -     * Optional. The customer-managed encryption configuration of the Regionalised
    -     * Secrets. If no configuration is provided, Google-managed default encryption
    +     * Optional. The customer-managed encryption configuration of the regionalized
    +     * secrets. If no configuration is provided, Google-managed default encryption
          * is used.
          *
          * Updates to the [Secret][google.cloud.secretmanager.v1.Secret] encryption
    @@ -4924,8 +4924,8 @@ public Builder setCustomerManagedEncryption(
          *
          *
          * 
    -     * Optional. The customer-managed encryption configuration of the Regionalised
    -     * Secrets. If no configuration is provided, Google-managed default encryption
    +     * Optional. The customer-managed encryption configuration of the regionalized
    +     * secrets. If no configuration is provided, Google-managed default encryption
          * is used.
          *
          * Updates to the [Secret][google.cloud.secretmanager.v1.Secret] encryption
    @@ -4964,8 +4964,8 @@ public Builder mergeCustomerManagedEncryption(
          *
          *
          * 
    -     * Optional. The customer-managed encryption configuration of the Regionalised
    -     * Secrets. If no configuration is provided, Google-managed default encryption
    +     * Optional. The customer-managed encryption configuration of the regionalized
    +     * secrets. If no configuration is provided, Google-managed default encryption
          * is used.
          *
          * Updates to the [Secret][google.cloud.secretmanager.v1.Secret] encryption
    @@ -4993,8 +4993,8 @@ public Builder clearCustomerManagedEncryption() {
          *
          *
          * 
    -     * Optional. The customer-managed encryption configuration of the Regionalised
    -     * Secrets. If no configuration is provided, Google-managed default encryption
    +     * Optional. The customer-managed encryption configuration of the regionalized
    +     * secrets. If no configuration is provided, Google-managed default encryption
          * is used.
          *
          * Updates to the [Secret][google.cloud.secretmanager.v1.Secret] encryption
    @@ -5018,8 +5018,8 @@ public Builder clearCustomerManagedEncryption() {
          *
          *
          * 
    -     * Optional. The customer-managed encryption configuration of the Regionalised
    -     * Secrets. If no configuration is provided, Google-managed default encryption
    +     * Optional. The customer-managed encryption configuration of the regionalized
    +     * secrets. If no configuration is provided, Google-managed default encryption
          * is used.
          *
          * Updates to the [Secret][google.cloud.secretmanager.v1.Secret] encryption
    @@ -5047,8 +5047,8 @@ public Builder clearCustomerManagedEncryption() {
          *
          *
          * 
    -     * Optional. The customer-managed encryption configuration of the Regionalised
    -     * Secrets. If no configuration is provided, Google-managed default encryption
    +     * Optional. The customer-managed encryption configuration of the regionalized
    +     * secrets. If no configuration is provided, Google-managed default encryption
          * is used.
          *
          * Updates to the [Secret][google.cloud.secretmanager.v1.Secret] encryption
    diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretOrBuilder.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretOrBuilder.java
    index f5b9afa97e9d..3e1378f1aafe 100644
    --- a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretOrBuilder.java
    +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretOrBuilder.java
    @@ -762,8 +762,8 @@ java.lang.String getAnnotationsOrDefault(
        *
        *
        * 
    -   * Optional. The customer-managed encryption configuration of the Regionalised
    -   * Secrets. If no configuration is provided, Google-managed default encryption
    +   * Optional. The customer-managed encryption configuration of the regionalized
    +   * secrets. If no configuration is provided, Google-managed default encryption
        * is used.
        *
        * Updates to the [Secret][google.cloud.secretmanager.v1.Secret] encryption
    @@ -784,8 +784,8 @@ java.lang.String getAnnotationsOrDefault(
        *
        *
        * 
    -   * Optional. The customer-managed encryption configuration of the Regionalised
    -   * Secrets. If no configuration is provided, Google-managed default encryption
    +   * Optional. The customer-managed encryption configuration of the regionalized
    +   * secrets. If no configuration is provided, Google-managed default encryption
        * is used.
        *
        * Updates to the [Secret][google.cloud.secretmanager.v1.Secret] encryption
    @@ -806,8 +806,8 @@ java.lang.String getAnnotationsOrDefault(
        *
        *
        * 
    -   * Optional. The customer-managed encryption configuration of the Regionalised
    -   * Secrets. If no configuration is provided, Google-managed default encryption
    +   * Optional. The customer-managed encryption configuration of the regionalized
    +   * secrets. If no configuration is provided, Google-managed default encryption
        * is used.
        *
        * Updates to the [Secret][google.cloud.secretmanager.v1.Secret] encryption
    diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersion.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersion.java
    index 9cdcccf6459b..a64f499779c2 100644
    --- a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersion.java
    +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersion.java
    @@ -620,9 +620,8 @@ public boolean getClientSpecifiedPayloadChecksum() {
        * Optional. Output only. Scheduled destroy time for secret version.
        * This is a part of the Delayed secret version destroy feature. For a
        * Secret with a valid version destroy TTL, when a secert version is
    -   * destroyed, the version is moved to disabled state and it is scheduled for
    -   * destruction. The version is destroyed only after the
    -   * `scheduled_destroy_time`.
    +   * destroyed, version is moved to disabled state and it is scheduled for
    +   * destruction Version is destroyed only after the scheduled_destroy_time.
        * 
    * * @@ -642,9 +641,8 @@ public boolean hasScheduledDestroyTime() { * Optional. Output only. Scheduled destroy time for secret version. * This is a part of the Delayed secret version destroy feature. For a * Secret with a valid version destroy TTL, when a secert version is - * destroyed, the version is moved to disabled state and it is scheduled for - * destruction. The version is destroyed only after the - * `scheduled_destroy_time`. + * destroyed, version is moved to disabled state and it is scheduled for + * destruction Version is destroyed only after the scheduled_destroy_time. *
    * * @@ -666,9 +664,8 @@ public com.google.protobuf.Timestamp getScheduledDestroyTime() { * Optional. Output only. Scheduled destroy time for secret version. * This is a part of the Delayed secret version destroy feature. For a * Secret with a valid version destroy TTL, when a secert version is - * destroyed, the version is moved to disabled state and it is scheduled for - * destruction. The version is destroyed only after the - * `scheduled_destroy_time`. + * destroyed, version is moved to disabled state and it is scheduled for + * destruction Version is destroyed only after the scheduled_destroy_time. *
    * * @@ -692,7 +689,7 @@ public com.google.protobuf.TimestampOrBuilder getScheduledDestroyTimeOrBuilder() * Output only. The customer-managed encryption status of the * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only * populated if customer-managed encryption is used and - * [Secret][google.cloud.secretmanager.v1.Secret] is a Regionalised Secret. + * [Secret][google.cloud.secretmanager.v1.Secret] is a regionalized secret. *
    * * @@ -712,7 +709,7 @@ public boolean hasCustomerManagedEncryption() { * Output only. The customer-managed encryption status of the * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only * populated if customer-managed encryption is used and - * [Secret][google.cloud.secretmanager.v1.Secret] is a Regionalised Secret. + * [Secret][google.cloud.secretmanager.v1.Secret] is a regionalized secret. *
    * * @@ -735,7 +732,7 @@ public boolean hasCustomerManagedEncryption() { * Output only. The customer-managed encryption status of the * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only * populated if customer-managed encryption is used and - * [Secret][google.cloud.secretmanager.v1.Secret] is a Regionalised Secret. + * [Secret][google.cloud.secretmanager.v1.Secret] is a regionalized secret. *
    * * @@ -2448,9 +2445,8 @@ public Builder clearClientSpecifiedPayloadChecksum() { * Optional. Output only. Scheduled destroy time for secret version. * This is a part of the Delayed secret version destroy feature. For a * Secret with a valid version destroy TTL, when a secert version is - * destroyed, the version is moved to disabled state and it is scheduled for - * destruction. The version is destroyed only after the - * `scheduled_destroy_time`. + * destroyed, version is moved to disabled state and it is scheduled for + * destruction Version is destroyed only after the scheduled_destroy_time. *
    * * @@ -2469,9 +2465,8 @@ public boolean hasScheduledDestroyTime() { * Optional. Output only. Scheduled destroy time for secret version. * This is a part of the Delayed secret version destroy feature. For a * Secret with a valid version destroy TTL, when a secert version is - * destroyed, the version is moved to disabled state and it is scheduled for - * destruction. The version is destroyed only after the - * `scheduled_destroy_time`. + * destroyed, version is moved to disabled state and it is scheduled for + * destruction Version is destroyed only after the scheduled_destroy_time. *
    * * @@ -2496,9 +2491,8 @@ public com.google.protobuf.Timestamp getScheduledDestroyTime() { * Optional. Output only. Scheduled destroy time for secret version. * This is a part of the Delayed secret version destroy feature. For a * Secret with a valid version destroy TTL, when a secert version is - * destroyed, the version is moved to disabled state and it is scheduled for - * destruction. The version is destroyed only after the - * `scheduled_destroy_time`. + * destroyed, version is moved to disabled state and it is scheduled for + * destruction Version is destroyed only after the scheduled_destroy_time. *
    * * @@ -2525,9 +2519,8 @@ public Builder setScheduledDestroyTime(com.google.protobuf.Timestamp value) { * Optional. Output only. Scheduled destroy time for secret version. * This is a part of the Delayed secret version destroy feature. For a * Secret with a valid version destroy TTL, when a secert version is - * destroyed, the version is moved to disabled state and it is scheduled for - * destruction. The version is destroyed only after the - * `scheduled_destroy_time`. + * destroyed, version is moved to disabled state and it is scheduled for + * destruction Version is destroyed only after the scheduled_destroy_time. *
    * * @@ -2551,9 +2544,8 @@ public Builder setScheduledDestroyTime(com.google.protobuf.Timestamp.Builder bui * Optional. Output only. Scheduled destroy time for secret version. * This is a part of the Delayed secret version destroy feature. For a * Secret with a valid version destroy TTL, when a secert version is - * destroyed, the version is moved to disabled state and it is scheduled for - * destruction. The version is destroyed only after the - * `scheduled_destroy_time`. + * destroyed, version is moved to disabled state and it is scheduled for + * destruction Version is destroyed only after the scheduled_destroy_time. *
    * * @@ -2585,9 +2577,8 @@ public Builder mergeScheduledDestroyTime(com.google.protobuf.Timestamp value) { * Optional. Output only. Scheduled destroy time for secret version. * This is a part of the Delayed secret version destroy feature. For a * Secret with a valid version destroy TTL, when a secert version is - * destroyed, the version is moved to disabled state and it is scheduled for - * destruction. The version is destroyed only after the - * `scheduled_destroy_time`. + * destroyed, version is moved to disabled state and it is scheduled for + * destruction Version is destroyed only after the scheduled_destroy_time. *
    * * @@ -2611,9 +2602,8 @@ public Builder clearScheduledDestroyTime() { * Optional. Output only. Scheduled destroy time for secret version. * This is a part of the Delayed secret version destroy feature. For a * Secret with a valid version destroy TTL, when a secert version is - * destroyed, the version is moved to disabled state and it is scheduled for - * destruction. The version is destroyed only after the - * `scheduled_destroy_time`. + * destroyed, version is moved to disabled state and it is scheduled for + * destruction Version is destroyed only after the scheduled_destroy_time. *
    * * @@ -2632,9 +2622,8 @@ public com.google.protobuf.Timestamp.Builder getScheduledDestroyTimeBuilder() { * Optional. Output only. Scheduled destroy time for secret version. * This is a part of the Delayed secret version destroy feature. For a * Secret with a valid version destroy TTL, when a secert version is - * destroyed, the version is moved to disabled state and it is scheduled for - * destruction. The version is destroyed only after the - * `scheduled_destroy_time`. + * destroyed, version is moved to disabled state and it is scheduled for + * destruction Version is destroyed only after the scheduled_destroy_time. *
    * * @@ -2657,9 +2646,8 @@ public com.google.protobuf.TimestampOrBuilder getScheduledDestroyTimeOrBuilder() * Optional. Output only. Scheduled destroy time for secret version. * This is a part of the Delayed secret version destroy feature. For a * Secret with a valid version destroy TTL, when a secert version is - * destroyed, the version is moved to disabled state and it is scheduled for - * destruction. The version is destroyed only after the - * `scheduled_destroy_time`. + * destroyed, version is moved to disabled state and it is scheduled for + * destruction Version is destroyed only after the scheduled_destroy_time. *
    * * @@ -2697,7 +2685,7 @@ public com.google.protobuf.TimestampOrBuilder getScheduledDestroyTimeOrBuilder() * Output only. The customer-managed encryption status of the * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only * populated if customer-managed encryption is used and - * [Secret][google.cloud.secretmanager.v1.Secret] is a Regionalised Secret. + * [Secret][google.cloud.secretmanager.v1.Secret] is a regionalized secret. * * * @@ -2716,7 +2704,7 @@ public boolean hasCustomerManagedEncryption() { * Output only. The customer-managed encryption status of the * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only * populated if customer-managed encryption is used and - * [Secret][google.cloud.secretmanager.v1.Secret] is a Regionalised Secret. + * [Secret][google.cloud.secretmanager.v1.Secret] is a regionalized secret. * * * @@ -2742,7 +2730,7 @@ public boolean hasCustomerManagedEncryption() { * Output only. The customer-managed encryption status of the * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only * populated if customer-managed encryption is used and - * [Secret][google.cloud.secretmanager.v1.Secret] is a Regionalised Secret. + * [Secret][google.cloud.secretmanager.v1.Secret] is a regionalized secret. * * * @@ -2770,7 +2758,7 @@ public Builder setCustomerManagedEncryption( * Output only. The customer-managed encryption status of the * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only * populated if customer-managed encryption is used and - * [Secret][google.cloud.secretmanager.v1.Secret] is a Regionalised Secret. + * [Secret][google.cloud.secretmanager.v1.Secret] is a regionalized secret. * * * @@ -2795,7 +2783,7 @@ public Builder setCustomerManagedEncryption( * Output only. The customer-managed encryption status of the * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only * populated if customer-managed encryption is used and - * [Secret][google.cloud.secretmanager.v1.Secret] is a Regionalised Secret. + * [Secret][google.cloud.secretmanager.v1.Secret] is a regionalized secret. * * * @@ -2830,7 +2818,7 @@ public Builder mergeCustomerManagedEncryption( * Output only. The customer-managed encryption status of the * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only * populated if customer-managed encryption is used and - * [Secret][google.cloud.secretmanager.v1.Secret] is a Regionalised Secret. + * [Secret][google.cloud.secretmanager.v1.Secret] is a regionalized secret. * * * @@ -2854,7 +2842,7 @@ public Builder clearCustomerManagedEncryption() { * Output only. The customer-managed encryption status of the * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only * populated if customer-managed encryption is used and - * [Secret][google.cloud.secretmanager.v1.Secret] is a Regionalised Secret. + * [Secret][google.cloud.secretmanager.v1.Secret] is a regionalized secret. * * * @@ -2874,7 +2862,7 @@ public Builder clearCustomerManagedEncryption() { * Output only. The customer-managed encryption status of the * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only * populated if customer-managed encryption is used and - * [Secret][google.cloud.secretmanager.v1.Secret] is a Regionalised Secret. + * [Secret][google.cloud.secretmanager.v1.Secret] is a regionalized secret. * * * @@ -2898,7 +2886,7 @@ public Builder clearCustomerManagedEncryption() { * Output only. The customer-managed encryption status of the * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only * populated if customer-managed encryption is used and - * [Secret][google.cloud.secretmanager.v1.Secret] is a Regionalised Secret. + * [Secret][google.cloud.secretmanager.v1.Secret] is a regionalized secret. * * * diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersionOrBuilder.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersionOrBuilder.java index 56b63c167d96..53ad12a00e80 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersionOrBuilder.java +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretVersionOrBuilder.java @@ -274,9 +274,8 @@ public interface SecretVersionOrBuilder * Optional. Output only. Scheduled destroy time for secret version. * This is a part of the Delayed secret version destroy feature. For a * Secret with a valid version destroy TTL, when a secert version is - * destroyed, the version is moved to disabled state and it is scheduled for - * destruction. The version is destroyed only after the - * `scheduled_destroy_time`. + * destroyed, version is moved to disabled state and it is scheduled for + * destruction Version is destroyed only after the scheduled_destroy_time. * * * @@ -293,9 +292,8 @@ public interface SecretVersionOrBuilder * Optional. Output only. Scheduled destroy time for secret version. * This is a part of the Delayed secret version destroy feature. For a * Secret with a valid version destroy TTL, when a secert version is - * destroyed, the version is moved to disabled state and it is scheduled for - * destruction. The version is destroyed only after the - * `scheduled_destroy_time`. + * destroyed, version is moved to disabled state and it is scheduled for + * destruction Version is destroyed only after the scheduled_destroy_time. * * * @@ -312,9 +310,8 @@ public interface SecretVersionOrBuilder * Optional. Output only. Scheduled destroy time for secret version. * This is a part of the Delayed secret version destroy feature. For a * Secret with a valid version destroy TTL, when a secert version is - * destroyed, the version is moved to disabled state and it is scheduled for - * destruction. The version is destroyed only after the - * `scheduled_destroy_time`. + * destroyed, version is moved to disabled state and it is scheduled for + * destruction Version is destroyed only after the scheduled_destroy_time. * * * @@ -330,7 +327,7 @@ public interface SecretVersionOrBuilder * Output only. The customer-managed encryption status of the * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only * populated if customer-managed encryption is used and - * [Secret][google.cloud.secretmanager.v1.Secret] is a Regionalised Secret. + * [Secret][google.cloud.secretmanager.v1.Secret] is a regionalized secret. * * * @@ -347,7 +344,7 @@ public interface SecretVersionOrBuilder * Output only. The customer-managed encryption status of the * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only * populated if customer-managed encryption is used and - * [Secret][google.cloud.secretmanager.v1.Secret] is a Regionalised Secret. + * [Secret][google.cloud.secretmanager.v1.Secret] is a regionalized secret. * * * @@ -364,7 +361,7 @@ public interface SecretVersionOrBuilder * Output only. The customer-managed encryption status of the * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only * populated if customer-managed encryption is used and - * [Secret][google.cloud.secretmanager.v1.Secret] is a Regionalised Secret. + * [Secret][google.cloud.secretmanager.v1.Secret] is a regionalized secret. * * * diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ServiceProto.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ServiceProto.java index 023c3b3cda51..bcb4f2cf8991 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ServiceProto.java +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ServiceProto.java @@ -246,13 +246,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/*/locations/*/secrets/*}:testIamPermiss" + "ions:\001*\032P\312A\034secretmanager.googleapis.com" + "\322A.https://www.googleapis.com/auth/cloud" - + "-platformB\350\001\n!com.google.cloud.secretman" + + "-platformB\345\001\n!com.google.cloud.secretman" + "ager.v1B\014ServiceProtoP\001ZGcloud.google.co" + "m/go/secretmanager/apiv1/secretmanagerpb" - + ";secretmanagerpb\370\001\001\242\002\003GSM\252\002\035Google.Cloud" - + ".SecretManager.V1\312\002\035Google\\Cloud\\SecretM" - + "anager\\V1\352\002 Google::Cloud::SecretManager" - + "::V1b\006proto3" + + ";secretmanagerpb\242\002\003GSM\252\002\035Google.Cloud.Se" + + "cretManager.V1\312\002\035Google\\Cloud\\SecretMana" + + "ger\\V1\352\002 Google::Cloud::SecretManager::V" + + "1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Topic.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Topic.java index 7e5bf8eddbb4..dd4663a87739 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Topic.java +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Topic.java @@ -72,14 +72,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Required. The resource name of the Pub/Sub topic that will be published to,
    -   * in the following format: `projects/*/topics/*`. For publication to succeed,
    -   * the Secret Manager service agent must have the `pubsub.topic.publish`
    -   * permission on the topic. The Pub/Sub Publisher role
    +   * Identifier. The resource name of the Pub/Sub topic that will be published
    +   * to, in the following format: `projects/*/topics/*`. For publication to
    +   * succeed, the Secret Manager service agent must have the
    +   * `pubsub.topic.publish` permission on the topic. The Pub/Sub Publisher role
        * (`roles/pubsub.publisher`) includes this permission.
        * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -99,14 +99,14 @@ public java.lang.String getName() { * * *
    -   * Required. The resource name of the Pub/Sub topic that will be published to,
    -   * in the following format: `projects/*/topics/*`. For publication to succeed,
    -   * the Secret Manager service agent must have the `pubsub.topic.publish`
    -   * permission on the topic. The Pub/Sub Publisher role
    +   * Identifier. The resource name of the Pub/Sub topic that will be published
    +   * to, in the following format: `projects/*/topics/*`. For publication to
    +   * succeed, the Secret Manager service agent must have the
    +   * `pubsub.topic.publish` permission on the topic. The Pub/Sub Publisher role
        * (`roles/pubsub.publisher`) includes this permission.
        * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -469,14 +469,14 @@ public Builder mergeFrom( * * *
    -     * Required. The resource name of the Pub/Sub topic that will be published to,
    -     * in the following format: `projects/*/topics/*`. For publication to succeed,
    -     * the Secret Manager service agent must have the `pubsub.topic.publish`
    -     * permission on the topic. The Pub/Sub Publisher role
    +     * Identifier. The resource name of the Pub/Sub topic that will be published
    +     * to, in the following format: `projects/*/topics/*`. For publication to
    +     * succeed, the Secret Manager service agent must have the
    +     * `pubsub.topic.publish` permission on the topic. The Pub/Sub Publisher role
          * (`roles/pubsub.publisher`) includes this permission.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -495,14 +495,14 @@ public java.lang.String getName() { * * *
    -     * Required. The resource name of the Pub/Sub topic that will be published to,
    -     * in the following format: `projects/*/topics/*`. For publication to succeed,
    -     * the Secret Manager service agent must have the `pubsub.topic.publish`
    -     * permission on the topic. The Pub/Sub Publisher role
    +     * Identifier. The resource name of the Pub/Sub topic that will be published
    +     * to, in the following format: `projects/*/topics/*`. For publication to
    +     * succeed, the Secret Manager service agent must have the
    +     * `pubsub.topic.publish` permission on the topic. The Pub/Sub Publisher role
          * (`roles/pubsub.publisher`) includes this permission.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -521,14 +521,14 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
    -     * Required. The resource name of the Pub/Sub topic that will be published to,
    -     * in the following format: `projects/*/topics/*`. For publication to succeed,
    -     * the Secret Manager service agent must have the `pubsub.topic.publish`
    -     * permission on the topic. The Pub/Sub Publisher role
    +     * Identifier. The resource name of the Pub/Sub topic that will be published
    +     * to, in the following format: `projects/*/topics/*`. For publication to
    +     * succeed, the Secret Manager service agent must have the
    +     * `pubsub.topic.publish` permission on the topic. The Pub/Sub Publisher role
          * (`roles/pubsub.publisher`) includes this permission.
          * 
    * - * 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. @@ -546,14 +546,14 @@ public Builder setName(java.lang.String value) { * * *
    -     * Required. The resource name of the Pub/Sub topic that will be published to,
    -     * in the following format: `projects/*/topics/*`. For publication to succeed,
    -     * the Secret Manager service agent must have the `pubsub.topic.publish`
    -     * permission on the topic. The Pub/Sub Publisher role
    +     * Identifier. The resource name of the Pub/Sub topic that will be published
    +     * to, in the following format: `projects/*/topics/*`. For publication to
    +     * succeed, the Secret Manager service agent must have the
    +     * `pubsub.topic.publish` permission on the topic. The Pub/Sub Publisher role
          * (`roles/pubsub.publisher`) includes this permission.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -567,14 +567,14 @@ public Builder clearName() { * * *
    -     * Required. The resource name of the Pub/Sub topic that will be published to,
    -     * in the following format: `projects/*/topics/*`. For publication to succeed,
    -     * the Secret Manager service agent must have the `pubsub.topic.publish`
    -     * permission on the topic. The Pub/Sub Publisher role
    +     * Identifier. The resource name of the Pub/Sub topic that will be published
    +     * to, in the following format: `projects/*/topics/*`. For publication to
    +     * succeed, the Secret Manager service agent must have the
    +     * `pubsub.topic.publish` permission on the topic. The Pub/Sub Publisher role
          * (`roles/pubsub.publisher`) includes this permission.
          * 
    * - * 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-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/TopicOrBuilder.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/TopicOrBuilder.java index 1bc7fce79f24..49e0483e3f60 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/TopicOrBuilder.java +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/TopicOrBuilder.java @@ -28,14 +28,14 @@ public interface TopicOrBuilder * * *
    -   * Required. The resource name of the Pub/Sub topic that will be published to,
    -   * in the following format: `projects/*/topics/*`. For publication to succeed,
    -   * the Secret Manager service agent must have the `pubsub.topic.publish`
    -   * permission on the topic. The Pub/Sub Publisher role
    +   * Identifier. The resource name of the Pub/Sub topic that will be published
    +   * to, in the following format: `projects/*/topics/*`. For publication to
    +   * succeed, the Secret Manager service agent must have the
    +   * `pubsub.topic.publish` permission on the topic. The Pub/Sub Publisher role
        * (`roles/pubsub.publisher`) includes this permission.
        * 
    * - * 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 TopicOrBuilder * * *
    -   * Required. The resource name of the Pub/Sub topic that will be published to,
    -   * in the following format: `projects/*/topics/*`. For publication to succeed,
    -   * the Secret Manager service agent must have the `pubsub.topic.publish`
    -   * permission on the topic. The Pub/Sub Publisher role
    +   * Identifier. The resource name of the Pub/Sub topic that will be published
    +   * to, in the following format: `projects/*/topics/*`. For publication to
    +   * succeed, the Secret Manager service agent must have the
    +   * `pubsub.topic.publish` permission on the topic. The Pub/Sub Publisher role
        * (`roles/pubsub.publisher`) includes this permission.
        * 
    * - * 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-secretmanager/proto-google-cloud-secretmanager-v1/src/main/proto/google/cloud/secretmanager/v1/resources.proto b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/proto/google/cloud/secretmanager/v1/resources.proto index 7adce715a2b3..5cfe6d9bcbab 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/proto/google/cloud/secretmanager/v1/resources.proto +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/proto/google/cloud/secretmanager/v1/resources.proto @@ -21,7 +21,6 @@ import "google/api/resource.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.SecretManager.V1"; option go_package = "cloud.google.com/go/secretmanager/apiv1/secretmanagerpb;secretmanagerpb"; option java_multiple_files = true; @@ -151,8 +150,8 @@ message Secret { google.protobuf.Duration version_destroy_ttl = 14 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The customer-managed encryption configuration of the Regionalised - // Secrets. If no configuration is provided, Google-managed default encryption + // Optional. The customer-managed encryption configuration of the regionalized + // secrets. If no configuration is provided, Google-managed default encryption // is used. // // Updates to the [Secret][google.cloud.secretmanager.v1.Secret] encryption @@ -244,16 +243,15 @@ message SecretVersion { // Optional. Output only. Scheduled destroy time for secret version. // This is a part of the Delayed secret version destroy feature. For a // Secret with a valid version destroy TTL, when a secert version is - // destroyed, the version is moved to disabled state and it is scheduled for - // destruction. The version is destroyed only after the - // `scheduled_destroy_time`. + // destroyed, version is moved to disabled state and it is scheduled for + // destruction Version is destroyed only after the scheduled_destroy_time. google.protobuf.Timestamp scheduled_destroy_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The customer-managed encryption status of the // [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only // populated if customer-managed encryption is used and - // [Secret][google.cloud.secretmanager.v1.Secret] is a Regionalised Secret. + // [Secret][google.cloud.secretmanager.v1.Secret] is a regionalized secret. CustomerManagedEncryptionStatus customer_managed_encryption = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; } @@ -279,7 +277,8 @@ message Replication { // A replication policy that replicates the // [Secret][google.cloud.secretmanager.v1.Secret] payload into the locations - // specified in [Secret.replication.user_managed.replicas][] + // specified in + // [Replication.UserManaged.replicas][google.cloud.secretmanager.v1.Replication.UserManaged.replicas] message UserManaged { // Represents a Replica for this // [Secret][google.cloud.secretmanager.v1.Secret]. @@ -422,12 +421,12 @@ message Topic { pattern: "projects/{project}/topics/{topic}" }; - // Required. The resource name of the Pub/Sub topic that will be published to, - // in the following format: `projects/*/topics/*`. For publication to succeed, - // the Secret Manager service agent must have the `pubsub.topic.publish` - // permission on the topic. The Pub/Sub Publisher role + // Identifier. The resource name of the Pub/Sub topic that will be published + // to, in the following format: `projects/*/topics/*`. For publication to + // succeed, the Secret Manager service agent must have the + // `pubsub.topic.publish` permission on the topic. The Pub/Sub Publisher role // (`roles/pubsub.publisher`) includes this permission. - string name = 1 [(google.api.field_behavior) = REQUIRED]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; } // The rotation time and period for a diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/proto/google/cloud/secretmanager/v1/service.proto b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/proto/google/cloud/secretmanager/v1/service.proto index ad23183b079b..15e1bc3af963 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/proto/google/cloud/secretmanager/v1/service.proto +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/proto/google/cloud/secretmanager/v1/service.proto @@ -26,7 +26,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.SecretManager.V1"; option go_package = "cloud.google.com/go/secretmanager/apiv1/secretmanagerpb;secretmanagerpb"; option java_multiple_files = true; diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/src/main/java/com/google/cloud/secretmanager/v1beta2/Replication.java b/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/src/main/java/com/google/cloud/secretmanager/v1beta2/Replication.java index ceefc57e0a5a..ba85902bcade 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/src/main/java/com/google/cloud/secretmanager/v1beta2/Replication.java +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/src/main/java/com/google/cloud/secretmanager/v1beta2/Replication.java @@ -1084,7 +1084,8 @@ public interface UserManagedOrBuilder *
        * A replication policy that replicates the
        * [Secret][google.cloud.secretmanager.v1beta2.Secret] payload into the
    -   * locations specified in [Secret.replication.user_managed.replicas][]
    +   * locations specified in
    +   * [Replication.UserManaged.replicas][google.cloud.secretmanager.v1beta2.Replication.UserManaged.replicas]
        * 
    * * Protobuf type {@code google.cloud.secretmanager.v1beta2.Replication.UserManaged} @@ -2561,7 +2562,8 @@ protected Builder newBuilderForType( *
          * A replication policy that replicates the
          * [Secret][google.cloud.secretmanager.v1beta2.Secret] payload into the
    -     * locations specified in [Secret.replication.user_managed.replicas][]
    +     * locations specified in
    +     * [Replication.UserManaged.replicas][google.cloud.secretmanager.v1beta2.Replication.UserManaged.replicas]
          * 
    * * Protobuf type {@code google.cloud.secretmanager.v1beta2.Replication.UserManaged} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/src/main/java/com/google/cloud/secretmanager/v1beta2/ResourcesProto.java b/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/src/main/java/com/google/cloud/secretmanager/v1beta2/ResourcesProto.java index b689a1d80e8d..d2a615957ab9 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/src/main/java/com/google/cloud/secretmanager/v1beta2/ResourcesProto.java +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/src/main/java/com/google/cloud/secretmanager/v1beta2/ResourcesProto.java @@ -205,14 +205,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "mpB\003\340A\001\0227\n\017rotation_period\030\002 \001(\0132\031.googl" + "e.protobuf.DurationB\003\340A\004\"L\n\rSecretPayloa" + "d\022\014\n\004data\030\001 \001(\014\022\035\n\013data_crc32c\030\002 \001(\003B\003\340A" - + "\001H\000\210\001\001B\016\n\014_data_crc32cB\203\002\n&com.google.cl" + + "\001H\000\210\001\001B\016\n\014_data_crc32cB\200\002\n&com.google.cl" + "oud.secretmanager.v1beta2B\016ResourcesProt" + "oP\001ZLcloud.google.com/go/secretmanager/a" + "piv1beta2/secretmanagerpb;secretmanagerp" - + "b\370\001\001\242\002\003GSM\252\002\"Google.Cloud.SecretManager." - + "V1Beta2\312\002\"Google\\Cloud\\SecretManager\\V1b" - + "eta2\352\002%Google::Cloud::SecretManager::V1b" - + "eta2b\006proto3" + + "b\242\002\003GSM\252\002\"Google.Cloud.SecretManager.V1B" + + "eta2\312\002\"Google\\Cloud\\SecretManager\\V1beta" + + "2\352\002%Google::Cloud::SecretManager::V1beta" + + "2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/src/main/java/com/google/cloud/secretmanager/v1beta2/ServiceProto.java b/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/src/main/java/com/google/cloud/secretmanager/v1beta2/ServiceProto.java index 5b5830c11a85..3e44720778d5 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/src/main/java/com/google/cloud/secretmanager/v1beta2/ServiceProto.java +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/src/main/java/com/google/cloud/secretmanager/v1beta2/ServiceProto.java @@ -254,13 +254,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ocations/*/secrets/*}:testIamPermissions" + ":\001*\032P\312A\034secretmanager.googleapis.com\322A.h" + "ttps://www.googleapis.com/auth/cloud-pla" - + "tformB\201\002\n&com.google.cloud.secretmanager" + + "tformB\376\001\n&com.google.cloud.secretmanager" + ".v1beta2B\014ServiceProtoP\001ZLcloud.google.c" + "om/go/secretmanager/apiv1beta2/secretman" - + "agerpb;secretmanagerpb\370\001\001\242\002\003GSM\252\002\"Google" - + ".Cloud.SecretManager.V1Beta2\312\002\"Google\\Cl" - + "oud\\SecretManager\\V1beta2\352\002%Google::Clou" - + "d::SecretManager::V1beta2b\006proto3" + + "agerpb;secretmanagerpb\242\002\003GSM\252\002\"Google.Cl" + + "oud.SecretManager.V1Beta2\312\002\"Google\\Cloud" + + "\\SecretManager\\V1beta2\352\002%Google::Cloud::" + + "SecretManager::V1beta2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/src/main/proto/google/cloud/secretmanager/v1beta2/resources.proto b/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/src/main/proto/google/cloud/secretmanager/v1beta2/resources.proto index 304a141d2c26..1d355bc47145 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/src/main/proto/google/cloud/secretmanager/v1beta2/resources.proto +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/src/main/proto/google/cloud/secretmanager/v1beta2/resources.proto @@ -21,7 +21,6 @@ import "google/api/resource.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.SecretManager.V1Beta2"; option go_package = "cloud.google.com/go/secretmanager/apiv1beta2/secretmanagerpb;secretmanagerpb"; option java_multiple_files = true; @@ -281,7 +280,8 @@ message Replication { // A replication policy that replicates the // [Secret][google.cloud.secretmanager.v1beta2.Secret] payload into the - // locations specified in [Secret.replication.user_managed.replicas][] + // locations specified in + // [Replication.UserManaged.replicas][google.cloud.secretmanager.v1beta2.Replication.UserManaged.replicas] message UserManaged { // Represents a Replica for this // [Secret][google.cloud.secretmanager.v1beta2.Secret]. diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/src/main/proto/google/cloud/secretmanager/v1beta2/service.proto b/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/src/main/proto/google/cloud/secretmanager/v1beta2/service.proto index db9db3f4607d..01c32a7f69c0 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/src/main/proto/google/cloud/secretmanager/v1beta2/service.proto +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/src/main/proto/google/cloud/secretmanager/v1beta2/service.proto @@ -26,7 +26,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.SecretManager.V1Beta2"; option go_package = "cloud.google.com/go/secretmanager/apiv1beta2/secretmanagerpb;secretmanagerpb"; option java_multiple_files = true; diff --git a/java-securesourcemanager/README.md b/java-securesourcemanager/README.md index 5edb9de60f0c..3b11ced265e7 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.52.0 + 26.53.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.25.0 + 0.26.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securesourcemanager:0.25.0' +implementation 'com.google.cloud:google-cloud-securesourcemanager:0.26.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securesourcemanager" % "0.25.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securesourcemanager" % "0.26.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.25.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securesourcemanager/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-security-private-ca/README.md b/java-security-private-ca/README.md index e09e14fba21a..bca6bd0f7f2b 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.52.0 + 26.53.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.57.0 + 2.58.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-security-private-ca:2.57.0' +implementation 'com.google.cloud:google-cloud-security-private-ca:2.58.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-security-private-ca" % "2.57.0" +libraryDependencies += "com.google.cloud" % "google-cloud-security-private-ca" % "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-security-private-ca.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-security-private-ca/2.57.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-security-private-ca/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-securitycenter-settings/README.md b/java-securitycenter-settings/README.md index 4734fef7358f..f54f022299fe 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.52.0 + 26.53.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.58.0 + 0.59.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securitycenter-settings:0.58.0' +implementation 'com.google.cloud:google-cloud-securitycenter-settings:0.59.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter-settings" % "0.58.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter-settings" % "0.59.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.58.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter-settings/0.59.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 b808aad31afd..636dd0313710 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.52.0 + 26.53.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.63.0 + 2.64.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securitycenter:2.63.0' +implementation 'com.google.cloud:google-cloud-securitycenter:2.64.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "2.63.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "2.64.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.63.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter/2.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-securitycentermanagement/README.md b/java-securitycentermanagement/README.md index d2574f49c67f..6c97fb64514a 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.52.0 + 26.53.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.23.0 + 0.24.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securitycentermanagement:0.23.0' +implementation 'com.google.cloud:google-cloud-securitycentermanagement:0.24.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycentermanagement" % "0.23.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycentermanagement" % "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-securitycentermanagement.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycentermanagement/0.23.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycentermanagement/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-securityposture/README.md b/java-securityposture/README.md index 3ef95fd98389..ff4657804494 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.52.0 + 26.53.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.20.0 + 0.21.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securityposture:0.20.0' +implementation 'com.google.cloud:google-cloud-securityposture:0.21.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securityposture" % "0.20.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securityposture" % "0.21.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.20.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securityposture/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-service-control/README.md b/java-service-control/README.md index 120c7314c030..0786ebec2292 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.52.0 + 26.53.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.55.0 + 1.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-service-control:1.55.0' +implementation 'com.google.cloud:google-cloud-service-control:1.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-service-control" % "1.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-service-control" % "1.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-service-control.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-control/1.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-control/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-service-management/README.md b/java-service-management/README.md index 0e8d1f759409..14638c8da127 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.52.0 + 26.53.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.53.0 + 3.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-service-management:3.53.0' +implementation 'com.google.cloud:google-cloud-service-management:3.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-service-management" % "3.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-service-management" % "3.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-management.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-management/3.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-management/3.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-usage/README.md b/java-service-usage/README.md index e3bad55fb6c4..b592be8e814f 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.52.0 + 26.53.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.55.0 + 2.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-service-usage:2.55.0' +implementation 'com.google.cloud:google-cloud-service-usage:2.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-service-usage" % "2.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-service-usage" % "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-service-usage.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-usage/2.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-usage/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-servicedirectory/README.md b/java-servicedirectory/README.md index 5bf5a0c4a1b9..d80ef05fb2c3 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.52.0 + 26.53.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.56.0 + 2.57.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-servicedirectory:2.56.0' +implementation 'com.google.cloud:google-cloud-servicedirectory:2.57.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-servicedirectory" % "2.56.0" +libraryDependencies += "com.google.cloud" % "google-cloud-servicedirectory" % "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-servicedirectory.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicedirectory/2.56.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicedirectory/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-servicehealth/README.md b/java-servicehealth/README.md index d6fd4037d877..2ad6ff4a125b 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.52.0 + 26.53.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.22.0 + 0.23.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-servicehealth:0.22.0' +implementation 'com.google.cloud:google-cloud-servicehealth:0.23.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-servicehealth" % "0.22.0" +libraryDependencies += "com.google.cloud" % "google-cloud-servicehealth" % "0.23.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.22.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicehealth/0.23.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-shell/README.md b/java-shell/README.md index 435fd9491ede..5fd759cdb38b 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.52.0 + 26.53.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.54.0 + 2.55.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-shell:2.54.0' +implementation 'com.google.cloud:google-cloud-shell:2.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-shell" % "2.54.0" +libraryDependencies += "com.google.cloud" % "google-cloud-shell" % "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-shell.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-shell/2.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-shell/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-shopping-css/README.md b/java-shopping-css/README.md index b98d9ef98863..e0122f6042df 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.52.0 + 26.53.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.23.0 + 0.24.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-css:0.23.0' +implementation 'com.google.shopping:google-shopping-css:0.24.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-css" % "0.23.0" +libraryDependencies += "com.google.shopping" % "google-shopping-css" % "0.24.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.23.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-css/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-shopping-merchant-accounts/README.md b/java-shopping-merchant-accounts/README.md index 0d55f54b1ced..e21fec227f0b 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.52.0 + 26.53.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.11.0 + 0.12.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-accounts:0.11.0' +implementation 'com.google.shopping:google-shopping-merchant-accounts:0.12.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-accounts" % "0.11.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-accounts" % "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.shopping/google-shopping-merchant-accounts.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-accounts/0.11.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-accounts/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-shopping-merchant-conversions/README.md b/java-shopping-merchant-conversions/README.md index 19c77eea7b32..74ef1f1b1c9e 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.52.0 + 26.53.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.14.0 + 0.15.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-conversions:0.14.0' +implementation 'com.google.shopping:google-shopping-merchant-conversions:0.15.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-conversions" % "0.14.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-conversions" % "0.15.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.14.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-conversions/0.15.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 4450357c026f..6e9011d2f599 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.52.0 + 26.53.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.11.0 + 0.12.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-datasources:0.11.0' +implementation 'com.google.shopping:google-shopping-merchant-datasources:0.12.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-datasources" % "0.11.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-datasources" % "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.shopping/google-shopping-merchant-datasources.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-datasources/0.11.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-datasources/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-shopping-merchant-inventories/README.md b/java-shopping-merchant-inventories/README.md index bfb91aca617f..e64122d03cd3 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.52.0 + 26.53.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.31.0 + 0.32.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-inventories:0.31.0' +implementation 'com.google.shopping:google-shopping-merchant-inventories:0.32.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-inventories" % "0.31.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-inventories" % "0.32.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.31.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-inventories/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-shopping-merchant-lfp/README.md b/java-shopping-merchant-lfp/README.md index 5608307b4b0c..78dd9111e001 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.52.0 + 26.53.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.14.0 + 0.15.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-lfp:0.14.0' +implementation 'com.google.shopping:google-shopping-merchant-lfp:0.15.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-lfp" % "0.14.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-lfp" % "0.15.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.14.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-lfp/0.15.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 3f15130befbb..14ba732edcb4 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.52.0 + 26.53.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.11.0 + 0.12.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-products:0.11.0' +implementation 'com.google.shopping:google-shopping-merchant-products:0.12.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-products" % "0.11.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-products" % "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.shopping/google-shopping-merchant-products.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-products/0.11.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-products/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-shopping-merchant-promotions/README.md b/java-shopping-merchant-promotions/README.md index e7df0e25ff7b..bb7888da792b 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.52.0 + 26.53.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.11.0 + 0.12.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-promotions:0.11.0' +implementation 'com.google.shopping:google-shopping-merchant-promotions:0.12.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-promotions" % "0.11.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-promotions" % "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.shopping/google-shopping-merchant-promotions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-promotions/0.11.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-promotions/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-shopping-merchant-quota/README.md b/java-shopping-merchant-quota/README.md index 30c77ac477fe..60af9c840165 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.52.0 + 26.53.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.18.0 + 0.19.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-quota:0.18.0' +implementation 'com.google.shopping:google-shopping-merchant-quota:0.19.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-quota" % "0.18.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-quota" % "0.19.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.18.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-quota/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-shopping-merchant-reports/README.md b/java-shopping-merchant-reports/README.md index e79ae5662473..e9ab0cefbee8 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.52.0 + 26.53.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.31.0 + 0.32.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-reports:0.31.0' +implementation 'com.google.shopping:google-shopping-merchant-reports:0.32.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reports" % "0.31.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reports" % "0.32.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.31.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reports/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-shopping-merchant-reviews/README.md b/java-shopping-merchant-reviews/README.md index 61fab893efac..1c5a843fe0a2 100644 --- a/java-shopping-merchant-reviews/README.md +++ b/java-shopping-merchant-reviews/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.52.0 + 26.53.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-reviews - 0.1.0 + 0.2.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-reviews:0.1.0' +implementation 'com.google.shopping:google-shopping-merchant-reviews:0.2.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reviews" % "0.1.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reviews" % "0.2.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-reviews.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reviews/0.1.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reviews/0.2.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 6aa1b7d18980..849d189e30c7 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.52.0 + 26.53.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.50.0 + 4.51.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-speech:4.50.0' +implementation 'com.google.cloud:google-cloud-speech:4.51.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "4.50.0" +libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "4.51.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.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-speech/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-storage-transfer/README.md b/java-storage-transfer/README.md index c78cb4e803f7..8a956473d945 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.52.0 + 26.53.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.55.0 + 1.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-storage-transfer:1.55.0' +implementation 'com.google.cloud:google-cloud-storage-transfer:1.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storage-transfer" % "1.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storage-transfer" % "1.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-storage-transfer.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage-transfer/1.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage-transfer/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-storageinsights/README.md b/java-storageinsights/README.md index 057cae0f3d4b..5e241ed239e2 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.52.0 + 26.53.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.40.0 + 0.41.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-storageinsights:0.40.0' +implementation 'com.google.cloud:google-cloud-storageinsights:0.41.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storageinsights" % "0.40.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storageinsights" % "0.41.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.40.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storageinsights/0.41.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 48736cd973f5..8b8cf5541add 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.52.0 + 26.53.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.56.0 + 2.57.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-talent:2.56.0' +implementation 'com.google.cloud:google-cloud-talent:2.57.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-talent" % "2.56.0" +libraryDependencies += "com.google.cloud" % "google-cloud-talent" % "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-talent.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-talent/2.56.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-talent/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-tasks/README.md b/java-tasks/README.md index 5e27f0d43515..c412a5b84b1a 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.52.0 + 26.53.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.55.0 + 2.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.55.0' +implementation 'com.google.cloud:google-cloud-tasks:2.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "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-tasks.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tasks/2.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tasks/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-telcoautomation/README.md b/java-telcoautomation/README.md index bf94f077164d..daaf20394ba4 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.52.0 + 26.53.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.25.0 + 0.26.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-telcoautomation:0.25.0' +implementation 'com.google.cloud:google-cloud-telcoautomation:0.26.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-telcoautomation" % "0.25.0" +libraryDependencies += "com.google.cloud" % "google-cloud-telcoautomation" % "0.26.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.25.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-telcoautomation/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-texttospeech/README.md b/java-texttospeech/README.md index 1fabae93fd58..8182b2078927 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.52.0 + 26.53.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.56.0 + 2.57.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-texttospeech:2.56.0' +implementation 'com.google.cloud:google-cloud-texttospeech:2.57.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-texttospeech" % "2.56.0" +libraryDependencies += "com.google.cloud" % "google-cloud-texttospeech" % "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-texttospeech.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-texttospeech/2.56.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-texttospeech/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-tpu/README.md b/java-tpu/README.md index a0bfb9f12799..ea5ed100bb8b 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.52.0 + 26.53.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.56.0 + 2.57.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-tpu:2.56.0' +implementation 'com.google.cloud:google-cloud-tpu:2.57.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tpu" % "2.56.0" +libraryDependencies += "com.google.cloud" % "google-cloud-tpu" % "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-tpu.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tpu/2.56.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tpu/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-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/TpuClient.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/TpuClient.java index dee3aac7814a..d9c344ee347e 100644 --- a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/TpuClient.java +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/TpuClient.java @@ -203,6 +203,105 @@ * * * + *

    ListQueuedResources + *

    Lists queued resources. + * + *

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

    + *
      + *
    • listQueuedResources(ListQueuedResourcesRequest request) + *

    + *

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

    + *
      + *
    • listQueuedResources(LocationName parent) + *

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

    + *
      + *
    • listQueuedResourcesPagedCallable() + *

    • listQueuedResourcesCallable() + *

    + * + * + * + *

    GetQueuedResource + *

    Gets details of a queued resource. + * + *

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

    + *
      + *
    • getQueuedResource(GetQueuedResourceRequest request) + *

    + *

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

    + *
      + *
    • getQueuedResource(QueuedResourceName name) + *

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

    + *
      + *
    • getQueuedResourceCallable() + *

    + * + * + * + *

    CreateQueuedResource + *

    Creates a QueuedResource TPU instance. + * + *

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

    + *
      + *
    • createQueuedResourceAsync(CreateQueuedResourceRequest request) + *

    + *

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

    + *
      + *
    • createQueuedResourceAsync(LocationName parent, QueuedResource queuedResource, String queuedResourceId) + *

    • createQueuedResourceAsync(String parent, QueuedResource queuedResource, String queuedResourceId) + *

    + *

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

    + *
      + *
    • createQueuedResourceOperationCallable() + *

    • createQueuedResourceCallable() + *

    + * + * + * + *

    DeleteQueuedResource + *

    Deletes a QueuedResource TPU instance. + * + *

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

    + *
      + *
    • deleteQueuedResourceAsync(DeleteQueuedResourceRequest request) + *

    + *

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

    + *
      + *
    • deleteQueuedResourceAsync(QueuedResourceName name) + *

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

    + *
      + *
    • deleteQueuedResourceOperationCallable() + *

    • deleteQueuedResourceCallable() + *

    + * + * + * + *

    ResetQueuedResource + *

    Resets a QueuedResource TPU instance + * + *

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

    + *
      + *
    • resetQueuedResourceAsync(ResetQueuedResourceRequest request) + *

    + *

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

    + *
      + *
    • resetQueuedResourceAsync(QueuedResourceName name) + *

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

    + *
      + *
    • resetQueuedResourceOperationCallable() + *

    • resetQueuedResourceCallable() + *

    + * + * + * *

    GenerateServiceIdentity *

    Generates the Cloud TPU service identity for the project. * @@ -1313,65 +1412,7 @@ public final UnaryCallable updateNodeCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Generates the Cloud TPU service identity for the 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 (TpuClient tpuClient = TpuClient.create()) {
    -   *   GenerateServiceIdentityRequest request =
    -   *       GenerateServiceIdentityRequest.newBuilder()
    -   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    -   *           .build();
    -   *   GenerateServiceIdentityResponse response = tpuClient.generateServiceIdentity(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 GenerateServiceIdentityResponse generateServiceIdentity( - GenerateServiceIdentityRequest request) { - return generateServiceIdentityCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Generates the Cloud TPU service identity for the 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 (TpuClient tpuClient = TpuClient.create()) {
    -   *   GenerateServiceIdentityRequest request =
    -   *       GenerateServiceIdentityRequest.newBuilder()
    -   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    -   *           .build();
    -   *   ApiFuture future =
    -   *       tpuClient.generateServiceIdentityCallable().futureCall(request);
    -   *   // Do something.
    -   *   GenerateServiceIdentityResponse response = future.get();
    -   * }
    -   * }
    - */ - public final UnaryCallable - generateServiceIdentityCallable() { - return stub.generateServiceIdentityCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists accelerator types supported by this API. + * Lists queued resources. * *

    Sample code: * @@ -1383,7 +1424,7 @@ public final GenerateServiceIdentityResponse generateServiceIdentity( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (TpuClient tpuClient = TpuClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * for (AcceleratorType element : tpuClient.listAcceleratorTypes(parent).iterateAll()) { + * for (QueuedResource element : tpuClient.listQueuedResources(parent).iterateAll()) { * // doThingsWith(element); * } * } @@ -1392,17 +1433,17 @@ public final GenerateServiceIdentityResponse generateServiceIdentity( * @param parent Required. The parent resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAcceleratorTypesPagedResponse listAcceleratorTypes(LocationName parent) { - ListAcceleratorTypesRequest request = - ListAcceleratorTypesRequest.newBuilder() + public final ListQueuedResourcesPagedResponse listQueuedResources(LocationName parent) { + ListQueuedResourcesRequest request = + ListQueuedResourcesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); - return listAcceleratorTypes(request); + return listQueuedResources(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists accelerator types supported by this API. + * Lists queued resources. * *

    Sample code: * @@ -1414,7 +1455,7 @@ public final ListAcceleratorTypesPagedResponse listAcceleratorTypes(LocationName * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (TpuClient tpuClient = TpuClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * for (AcceleratorType element : tpuClient.listAcceleratorTypes(parent).iterateAll()) { + * for (QueuedResource element : tpuClient.listQueuedResources(parent).iterateAll()) { * // doThingsWith(element); * } * } @@ -1423,15 +1464,15 @@ public final ListAcceleratorTypesPagedResponse listAcceleratorTypes(LocationName * @param parent Required. The parent resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAcceleratorTypesPagedResponse listAcceleratorTypes(String parent) { - ListAcceleratorTypesRequest request = - ListAcceleratorTypesRequest.newBuilder().setParent(parent).build(); - return listAcceleratorTypes(request); + public final ListQueuedResourcesPagedResponse listQueuedResources(String parent) { + ListQueuedResourcesRequest request = + ListQueuedResourcesRequest.newBuilder().setParent(parent).build(); + return listQueuedResources(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists accelerator types supported by this API. + * Lists queued resources. * *

    Sample code: * @@ -1442,15 +1483,13 @@ public final ListAcceleratorTypesPagedResponse listAcceleratorTypes(String paren * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (TpuClient tpuClient = TpuClient.create()) { - * ListAcceleratorTypesRequest request = - * ListAcceleratorTypesRequest.newBuilder() + * ListQueuedResourcesRequest request = + * ListQueuedResourcesRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .setOrderBy("orderBy-1207110587") * .build(); - * for (AcceleratorType element : tpuClient.listAcceleratorTypes(request).iterateAll()) { + * for (QueuedResource element : tpuClient.listQueuedResources(request).iterateAll()) { * // doThingsWith(element); * } * } @@ -1459,14 +1498,14 @@ public final ListAcceleratorTypesPagedResponse listAcceleratorTypes(String paren * @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 ListAcceleratorTypesPagedResponse listAcceleratorTypes( - ListAcceleratorTypesRequest request) { - return listAcceleratorTypesPagedCallable().call(request); + public final ListQueuedResourcesPagedResponse listQueuedResources( + ListQueuedResourcesRequest request) { + return listQueuedResourcesPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists accelerator types supported by this API. + * Lists queued resources. * *

    Sample code: * @@ -1477,31 +1516,29 @@ public final ListAcceleratorTypesPagedResponse listAcceleratorTypes( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (TpuClient tpuClient = TpuClient.create()) { - * ListAcceleratorTypesRequest request = - * ListAcceleratorTypesRequest.newBuilder() + * ListQueuedResourcesRequest request = + * ListQueuedResourcesRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .setOrderBy("orderBy-1207110587") * .build(); - * ApiFuture future = - * tpuClient.listAcceleratorTypesPagedCallable().futureCall(request); + * ApiFuture future = + * tpuClient.listQueuedResourcesPagedCallable().futureCall(request); * // Do something. - * for (AcceleratorType element : future.get().iterateAll()) { + * for (QueuedResource element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * } */ - public final UnaryCallable - listAcceleratorTypesPagedCallable() { - return stub.listAcceleratorTypesPagedCallable(); + public final UnaryCallable + listQueuedResourcesPagedCallable() { + return stub.listQueuedResourcesPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists accelerator types supported by this API. + * Lists queued resources. * *

    Sample code: * @@ -1512,18 +1549,16 @@ public final ListAcceleratorTypesPagedResponse listAcceleratorTypes( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (TpuClient tpuClient = TpuClient.create()) { - * ListAcceleratorTypesRequest request = - * ListAcceleratorTypesRequest.newBuilder() + * ListQueuedResourcesRequest request = + * ListQueuedResourcesRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .setOrderBy("orderBy-1207110587") * .build(); * while (true) { - * ListAcceleratorTypesResponse response = - * tpuClient.listAcceleratorTypesCallable().call(request); - * for (AcceleratorType element : response.getAcceleratorTypesList()) { + * ListQueuedResourcesResponse response = + * tpuClient.listQueuedResourcesCallable().call(request); + * for (QueuedResource element : response.getQueuedResourcesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -1536,14 +1571,14 @@ public final ListAcceleratorTypesPagedResponse listAcceleratorTypes( * } * } */ - public final UnaryCallable - listAcceleratorTypesCallable() { - return stub.listAcceleratorTypesCallable(); + public final UnaryCallable + listQueuedResourcesCallable() { + return stub.listQueuedResourcesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets AcceleratorType. + * Gets details of a queued resource. * *

    Sample code: * @@ -1554,26 +1589,26 @@ public final ListAcceleratorTypesPagedResponse listAcceleratorTypes( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (TpuClient tpuClient = TpuClient.create()) { - * AcceleratorTypeName name = - * AcceleratorTypeName.of("[PROJECT]", "[LOCATION]", "[ACCELERATOR_TYPE]"); - * AcceleratorType response = tpuClient.getAcceleratorType(name); + * QueuedResourceName name = + * QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]"); + * QueuedResource response = tpuClient.getQueuedResource(name); * } * } * * @param name Required. The resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AcceleratorType getAcceleratorType(AcceleratorTypeName name) { - GetAcceleratorTypeRequest request = - GetAcceleratorTypeRequest.newBuilder() + public final QueuedResource getQueuedResource(QueuedResourceName name) { + GetQueuedResourceRequest request = + GetQueuedResourceRequest.newBuilder() .setName(name == null ? null : name.toString()) .build(); - return getAcceleratorType(request); + return getQueuedResource(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets AcceleratorType. + * Gets details of a queued resource. * *

    Sample code: * @@ -1585,23 +1620,22 @@ public final AcceleratorType getAcceleratorType(AcceleratorTypeName name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (TpuClient tpuClient = TpuClient.create()) { * String name = - * AcceleratorTypeName.of("[PROJECT]", "[LOCATION]", "[ACCELERATOR_TYPE]").toString(); - * AcceleratorType response = tpuClient.getAcceleratorType(name); + * QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString(); + * QueuedResource response = tpuClient.getQueuedResource(name); * } * } * * @param name Required. The resource name. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AcceleratorType getAcceleratorType(String name) { - GetAcceleratorTypeRequest request = - GetAcceleratorTypeRequest.newBuilder().setName(name).build(); - return getAcceleratorType(request); + public final QueuedResource getQueuedResource(String name) { + GetQueuedResourceRequest request = GetQueuedResourceRequest.newBuilder().setName(name).build(); + return getQueuedResource(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets AcceleratorType. + * Gets details of a queued resource. * *

    Sample code: * @@ -1612,26 +1646,25 @@ public final AcceleratorType getAcceleratorType(String name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (TpuClient tpuClient = TpuClient.create()) { - * GetAcceleratorTypeRequest request = - * GetAcceleratorTypeRequest.newBuilder() + * GetQueuedResourceRequest request = + * GetQueuedResourceRequest.newBuilder() * .setName( - * AcceleratorTypeName.of("[PROJECT]", "[LOCATION]", "[ACCELERATOR_TYPE]") - * .toString()) + * QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString()) * .build(); - * AcceleratorType response = tpuClient.getAcceleratorType(request); + * QueuedResource response = tpuClient.getQueuedResource(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 AcceleratorType getAcceleratorType(GetAcceleratorTypeRequest request) { - return getAcceleratorTypeCallable().call(request); + public final QueuedResource getQueuedResource(GetQueuedResourceRequest request) { + return getQueuedResourceCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets AcceleratorType. + * Gets details of a queued resource. * *

    Sample code: * @@ -1642,27 +1675,24 @@ public final AcceleratorType getAcceleratorType(GetAcceleratorTypeRequest reques * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (TpuClient tpuClient = TpuClient.create()) { - * GetAcceleratorTypeRequest request = - * GetAcceleratorTypeRequest.newBuilder() + * GetQueuedResourceRequest request = + * GetQueuedResourceRequest.newBuilder() * .setName( - * AcceleratorTypeName.of("[PROJECT]", "[LOCATION]", "[ACCELERATOR_TYPE]") - * .toString()) + * QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString()) * .build(); - * ApiFuture future = - * tpuClient.getAcceleratorTypeCallable().futureCall(request); + * ApiFuture future = tpuClient.getQueuedResourceCallable().futureCall(request); * // Do something. - * AcceleratorType response = future.get(); + * QueuedResource response = future.get(); * } * } */ - public final UnaryCallable - getAcceleratorTypeCallable() { - return stub.getAcceleratorTypeCallable(); + public final UnaryCallable getQueuedResourceCallable() { + return stub.getQueuedResourceCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists runtime versions supported by this API. + * Creates a QueuedResource TPU instance. * *

    Sample code: * @@ -1674,26 +1704,33 @@ public final AcceleratorType getAcceleratorType(GetAcceleratorTypeRequest reques * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (TpuClient tpuClient = TpuClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * for (RuntimeVersion element : tpuClient.listRuntimeVersions(parent).iterateAll()) { - * // doThingsWith(element); - * } + * QueuedResource queuedResource = QueuedResource.newBuilder().build(); + * String queuedResourceId = "queuedResourceId437646236"; + * QueuedResource response = + * tpuClient.createQueuedResourceAsync(parent, queuedResource, queuedResourceId).get(); * } * } * * @param parent Required. The parent resource name. + * @param queuedResource Required. The queued resource. + * @param queuedResourceId Optional. The unqualified resource name. Should follow the + * `^[A-Za-z0-9_.~+%-]+$` regex format. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRuntimeVersionsPagedResponse listRuntimeVersions(LocationName parent) { - ListRuntimeVersionsRequest request = - ListRuntimeVersionsRequest.newBuilder() + public final OperationFuture createQueuedResourceAsync( + LocationName parent, QueuedResource queuedResource, String queuedResourceId) { + CreateQueuedResourceRequest request = + CreateQueuedResourceRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) + .setQueuedResource(queuedResource) + .setQueuedResourceId(queuedResourceId) .build(); - return listRuntimeVersions(request); + return createQueuedResourceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists runtime versions supported by this API. + * Creates a QueuedResource TPU instance. * *

    Sample code: * @@ -1705,24 +1742,33 @@ public final ListRuntimeVersionsPagedResponse listRuntimeVersions(LocationName p * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (TpuClient tpuClient = TpuClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * for (RuntimeVersion element : tpuClient.listRuntimeVersions(parent).iterateAll()) { - * // doThingsWith(element); - * } + * QueuedResource queuedResource = QueuedResource.newBuilder().build(); + * String queuedResourceId = "queuedResourceId437646236"; + * QueuedResource response = + * tpuClient.createQueuedResourceAsync(parent, queuedResource, queuedResourceId).get(); * } * } * * @param parent Required. The parent resource name. + * @param queuedResource Required. The queued resource. + * @param queuedResourceId Optional. The unqualified resource name. Should follow the + * `^[A-Za-z0-9_.~+%-]+$` regex format. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListRuntimeVersionsPagedResponse listRuntimeVersions(String parent) { - ListRuntimeVersionsRequest request = - ListRuntimeVersionsRequest.newBuilder().setParent(parent).build(); - return listRuntimeVersions(request); + public final OperationFuture createQueuedResourceAsync( + String parent, QueuedResource queuedResource, String queuedResourceId) { + CreateQueuedResourceRequest request = + CreateQueuedResourceRequest.newBuilder() + .setParent(parent) + .setQueuedResource(queuedResource) + .setQueuedResourceId(queuedResourceId) + .build(); + return createQueuedResourceAsync(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists runtime versions supported by this API. + * Creates a QueuedResource TPU instance. * *

    Sample code: * @@ -1733,31 +1779,28 @@ public final ListRuntimeVersionsPagedResponse listRuntimeVersions(String parent) * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (TpuClient tpuClient = TpuClient.create()) { - * ListRuntimeVersionsRequest request = - * ListRuntimeVersionsRequest.newBuilder() + * CreateQueuedResourceRequest request = + * CreateQueuedResourceRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .setOrderBy("orderBy-1207110587") + * .setQueuedResourceId("queuedResourceId437646236") + * .setQueuedResource(QueuedResource.newBuilder().build()) + * .setRequestId("requestId693933066") * .build(); - * for (RuntimeVersion element : tpuClient.listRuntimeVersions(request).iterateAll()) { - * // doThingsWith(element); - * } + * QueuedResource response = tpuClient.createQueuedResourceAsync(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 ListRuntimeVersionsPagedResponse listRuntimeVersions( - ListRuntimeVersionsRequest request) { - return listRuntimeVersionsPagedCallable().call(request); + public final OperationFuture createQueuedResourceAsync( + CreateQueuedResourceRequest request) { + return createQueuedResourceOperationCallable().futureCall(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists runtime versions supported by this API. + * Creates a QueuedResource TPU instance. * *

    Sample code: * @@ -1768,31 +1811,28 @@ public final ListRuntimeVersionsPagedResponse listRuntimeVersions( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (TpuClient tpuClient = TpuClient.create()) { - * ListRuntimeVersionsRequest request = - * ListRuntimeVersionsRequest.newBuilder() + * CreateQueuedResourceRequest request = + * CreateQueuedResourceRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .setOrderBy("orderBy-1207110587") + * .setQueuedResourceId("queuedResourceId437646236") + * .setQueuedResource(QueuedResource.newBuilder().build()) + * .setRequestId("requestId693933066") * .build(); - * ApiFuture future = - * tpuClient.listRuntimeVersionsPagedCallable().futureCall(request); + * OperationFuture future = + * tpuClient.createQueuedResourceOperationCallable().futureCall(request); * // Do something. - * for (RuntimeVersion element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * QueuedResource response = future.get(); * } * } */ - public final UnaryCallable - listRuntimeVersionsPagedCallable() { - return stub.listRuntimeVersionsPagedCallable(); + public final OperationCallable + createQueuedResourceOperationCallable() { + return stub.createQueuedResourceOperationCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists runtime versions supported by this API. + * Creates a QueuedResource TPU instance. * *

    Sample code: * @@ -1803,18 +1843,830 @@ public final ListRuntimeVersionsPagedResponse listRuntimeVersions( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (TpuClient tpuClient = TpuClient.create()) { - * ListRuntimeVersionsRequest request = - * ListRuntimeVersionsRequest.newBuilder() + * CreateQueuedResourceRequest request = + * CreateQueuedResourceRequest.newBuilder() * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .setFilter("filter-1274492040") - * .setOrderBy("orderBy-1207110587") + * .setQueuedResourceId("queuedResourceId437646236") + * .setQueuedResource(QueuedResource.newBuilder().build()) + * .setRequestId("requestId693933066") * .build(); - * while (true) { - * ListRuntimeVersionsResponse response = - * tpuClient.listRuntimeVersionsCallable().call(request); - * for (RuntimeVersion element : response.getRuntimeVersionsList()) { + * ApiFuture future = tpuClient.createQueuedResourceCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); + * } + * } + */ + public final UnaryCallable + createQueuedResourceCallable() { + return stub.createQueuedResourceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a QueuedResource TPU instance. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (TpuClient tpuClient = TpuClient.create()) {
    +   *   QueuedResourceName name =
    +   *       QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]");
    +   *   tpuClient.deleteQueuedResourceAsync(name).get();
    +   * }
    +   * }
    + * + * @param name Required. The resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteQueuedResourceAsync( + QueuedResourceName name) { + DeleteQueuedResourceRequest request = + DeleteQueuedResourceRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteQueuedResourceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a QueuedResource TPU instance. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (TpuClient tpuClient = TpuClient.create()) {
    +   *   String name =
    +   *       QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString();
    +   *   tpuClient.deleteQueuedResourceAsync(name).get();
    +   * }
    +   * }
    + * + * @param name Required. The resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteQueuedResourceAsync(String name) { + DeleteQueuedResourceRequest request = + DeleteQueuedResourceRequest.newBuilder().setName(name).build(); + return deleteQueuedResourceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a QueuedResource TPU instance. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (TpuClient tpuClient = TpuClient.create()) {
    +   *   DeleteQueuedResourceRequest request =
    +   *       DeleteQueuedResourceRequest.newBuilder()
    +   *           .setName(
    +   *               QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString())
    +   *           .setRequestId("requestId693933066")
    +   *           .setForce(true)
    +   *           .build();
    +   *   tpuClient.deleteQueuedResourceAsync(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 deleteQueuedResourceAsync( + DeleteQueuedResourceRequest request) { + return deleteQueuedResourceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a QueuedResource TPU instance. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (TpuClient tpuClient = TpuClient.create()) {
    +   *   DeleteQueuedResourceRequest request =
    +   *       DeleteQueuedResourceRequest.newBuilder()
    +   *           .setName(
    +   *               QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString())
    +   *           .setRequestId("requestId693933066")
    +   *           .setForce(true)
    +   *           .build();
    +   *   OperationFuture future =
    +   *       tpuClient.deleteQueuedResourceOperationCallable().futureCall(request);
    +   *   // Do something.
    +   *   future.get();
    +   * }
    +   * }
    + */ + public final OperationCallable + deleteQueuedResourceOperationCallable() { + return stub.deleteQueuedResourceOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a QueuedResource TPU instance. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (TpuClient tpuClient = TpuClient.create()) {
    +   *   DeleteQueuedResourceRequest request =
    +   *       DeleteQueuedResourceRequest.newBuilder()
    +   *           .setName(
    +   *               QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString())
    +   *           .setRequestId("requestId693933066")
    +   *           .setForce(true)
    +   *           .build();
    +   *   ApiFuture future = tpuClient.deleteQueuedResourceCallable().futureCall(request);
    +   *   // Do something.
    +   *   future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable + deleteQueuedResourceCallable() { + return stub.deleteQueuedResourceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Resets a QueuedResource TPU instance + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (TpuClient tpuClient = TpuClient.create()) {
    +   *   QueuedResourceName name =
    +   *       QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]");
    +   *   QueuedResource response = tpuClient.resetQueuedResourceAsync(name).get();
    +   * }
    +   * }
    + * + * @param name Required. The name of the queued resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture resetQueuedResourceAsync( + QueuedResourceName name) { + ResetQueuedResourceRequest request = + ResetQueuedResourceRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return resetQueuedResourceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Resets a QueuedResource TPU instance + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (TpuClient tpuClient = TpuClient.create()) {
    +   *   String name =
    +   *       QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString();
    +   *   QueuedResource response = tpuClient.resetQueuedResourceAsync(name).get();
    +   * }
    +   * }
    + * + * @param name Required. The name of the queued resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture resetQueuedResourceAsync( + String name) { + ResetQueuedResourceRequest request = + ResetQueuedResourceRequest.newBuilder().setName(name).build(); + return resetQueuedResourceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Resets a QueuedResource TPU instance + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (TpuClient tpuClient = TpuClient.create()) {
    +   *   ResetQueuedResourceRequest request =
    +   *       ResetQueuedResourceRequest.newBuilder()
    +   *           .setName(
    +   *               QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString())
    +   *           .build();
    +   *   QueuedResource response = tpuClient.resetQueuedResourceAsync(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 resetQueuedResourceAsync( + ResetQueuedResourceRequest request) { + return resetQueuedResourceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Resets a QueuedResource TPU instance + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (TpuClient tpuClient = TpuClient.create()) {
    +   *   ResetQueuedResourceRequest request =
    +   *       ResetQueuedResourceRequest.newBuilder()
    +   *           .setName(
    +   *               QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString())
    +   *           .build();
    +   *   OperationFuture future =
    +   *       tpuClient.resetQueuedResourceOperationCallable().futureCall(request);
    +   *   // Do something.
    +   *   QueuedResource response = future.get();
    +   * }
    +   * }
    + */ + public final OperationCallable + resetQueuedResourceOperationCallable() { + return stub.resetQueuedResourceOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Resets a QueuedResource TPU instance + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (TpuClient tpuClient = TpuClient.create()) {
    +   *   ResetQueuedResourceRequest request =
    +   *       ResetQueuedResourceRequest.newBuilder()
    +   *           .setName(
    +   *               QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString())
    +   *           .build();
    +   *   ApiFuture future = tpuClient.resetQueuedResourceCallable().futureCall(request);
    +   *   // Do something.
    +   *   Operation response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable resetQueuedResourceCallable() { + return stub.resetQueuedResourceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates the Cloud TPU service identity for the 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 (TpuClient tpuClient = TpuClient.create()) {
    +   *   GenerateServiceIdentityRequest request =
    +   *       GenerateServiceIdentityRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .build();
    +   *   GenerateServiceIdentityResponse response = tpuClient.generateServiceIdentity(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 GenerateServiceIdentityResponse generateServiceIdentity( + GenerateServiceIdentityRequest request) { + return generateServiceIdentityCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates the Cloud TPU service identity for the 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 (TpuClient tpuClient = TpuClient.create()) {
    +   *   GenerateServiceIdentityRequest request =
    +   *       GenerateServiceIdentityRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       tpuClient.generateServiceIdentityCallable().futureCall(request);
    +   *   // Do something.
    +   *   GenerateServiceIdentityResponse response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable + generateServiceIdentityCallable() { + return stub.generateServiceIdentityCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists accelerator types supported by this API. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (TpuClient tpuClient = TpuClient.create()) {
    +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    +   *   for (AcceleratorType element : tpuClient.listAcceleratorTypes(parent).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param parent Required. The parent resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAcceleratorTypesPagedResponse listAcceleratorTypes(LocationName parent) { + ListAcceleratorTypesRequest request = + ListAcceleratorTypesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAcceleratorTypes(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists accelerator types supported by this API. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (TpuClient tpuClient = TpuClient.create()) {
    +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    +   *   for (AcceleratorType element : tpuClient.listAcceleratorTypes(parent).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param parent Required. The parent resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAcceleratorTypesPagedResponse listAcceleratorTypes(String parent) { + ListAcceleratorTypesRequest request = + ListAcceleratorTypesRequest.newBuilder().setParent(parent).build(); + return listAcceleratorTypes(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists accelerator types supported by this API. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (TpuClient tpuClient = TpuClient.create()) {
    +   *   ListAcceleratorTypesRequest request =
    +   *       ListAcceleratorTypesRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .setFilter("filter-1274492040")
    +   *           .setOrderBy("orderBy-1207110587")
    +   *           .build();
    +   *   for (AcceleratorType element : tpuClient.listAcceleratorTypes(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 ListAcceleratorTypesPagedResponse listAcceleratorTypes( + ListAcceleratorTypesRequest request) { + return listAcceleratorTypesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists accelerator types supported by this API. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (TpuClient tpuClient = TpuClient.create()) {
    +   *   ListAcceleratorTypesRequest request =
    +   *       ListAcceleratorTypesRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .setFilter("filter-1274492040")
    +   *           .setOrderBy("orderBy-1207110587")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       tpuClient.listAcceleratorTypesPagedCallable().futureCall(request);
    +   *   // Do something.
    +   *   for (AcceleratorType element : future.get().iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable + listAcceleratorTypesPagedCallable() { + return stub.listAcceleratorTypesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists accelerator types supported by this API. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (TpuClient tpuClient = TpuClient.create()) {
    +   *   ListAcceleratorTypesRequest request =
    +   *       ListAcceleratorTypesRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .setFilter("filter-1274492040")
    +   *           .setOrderBy("orderBy-1207110587")
    +   *           .build();
    +   *   while (true) {
    +   *     ListAcceleratorTypesResponse response =
    +   *         tpuClient.listAcceleratorTypesCallable().call(request);
    +   *     for (AcceleratorType element : response.getAcceleratorTypesList()) {
    +   *       // doThingsWith(element);
    +   *     }
    +   *     String nextPageToken = response.getNextPageToken();
    +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
    +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
    +   *     } else {
    +   *       break;
    +   *     }
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable + listAcceleratorTypesCallable() { + return stub.listAcceleratorTypesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets AcceleratorType. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (TpuClient tpuClient = TpuClient.create()) {
    +   *   AcceleratorTypeName name =
    +   *       AcceleratorTypeName.of("[PROJECT]", "[LOCATION]", "[ACCELERATOR_TYPE]");
    +   *   AcceleratorType response = tpuClient.getAcceleratorType(name);
    +   * }
    +   * }
    + * + * @param name Required. The resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AcceleratorType getAcceleratorType(AcceleratorTypeName name) { + GetAcceleratorTypeRequest request = + GetAcceleratorTypeRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getAcceleratorType(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets AcceleratorType. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (TpuClient tpuClient = TpuClient.create()) {
    +   *   String name =
    +   *       AcceleratorTypeName.of("[PROJECT]", "[LOCATION]", "[ACCELERATOR_TYPE]").toString();
    +   *   AcceleratorType response = tpuClient.getAcceleratorType(name);
    +   * }
    +   * }
    + * + * @param name Required. The resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AcceleratorType getAcceleratorType(String name) { + GetAcceleratorTypeRequest request = + GetAcceleratorTypeRequest.newBuilder().setName(name).build(); + return getAcceleratorType(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets AcceleratorType. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (TpuClient tpuClient = TpuClient.create()) {
    +   *   GetAcceleratorTypeRequest request =
    +   *       GetAcceleratorTypeRequest.newBuilder()
    +   *           .setName(
    +   *               AcceleratorTypeName.of("[PROJECT]", "[LOCATION]", "[ACCELERATOR_TYPE]")
    +   *                   .toString())
    +   *           .build();
    +   *   AcceleratorType response = tpuClient.getAcceleratorType(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 AcceleratorType getAcceleratorType(GetAcceleratorTypeRequest request) { + return getAcceleratorTypeCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets AcceleratorType. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (TpuClient tpuClient = TpuClient.create()) {
    +   *   GetAcceleratorTypeRequest request =
    +   *       GetAcceleratorTypeRequest.newBuilder()
    +   *           .setName(
    +   *               AcceleratorTypeName.of("[PROJECT]", "[LOCATION]", "[ACCELERATOR_TYPE]")
    +   *                   .toString())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       tpuClient.getAcceleratorTypeCallable().futureCall(request);
    +   *   // Do something.
    +   *   AcceleratorType response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable + getAcceleratorTypeCallable() { + return stub.getAcceleratorTypeCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists runtime versions supported by this API. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (TpuClient tpuClient = TpuClient.create()) {
    +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    +   *   for (RuntimeVersion element : tpuClient.listRuntimeVersions(parent).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param parent Required. The parent resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListRuntimeVersionsPagedResponse listRuntimeVersions(LocationName parent) { + ListRuntimeVersionsRequest request = + ListRuntimeVersionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listRuntimeVersions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists runtime versions supported by this API. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (TpuClient tpuClient = TpuClient.create()) {
    +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    +   *   for (RuntimeVersion element : tpuClient.listRuntimeVersions(parent).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param parent Required. The parent resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListRuntimeVersionsPagedResponse listRuntimeVersions(String parent) { + ListRuntimeVersionsRequest request = + ListRuntimeVersionsRequest.newBuilder().setParent(parent).build(); + return listRuntimeVersions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists runtime versions supported by this API. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (TpuClient tpuClient = TpuClient.create()) {
    +   *   ListRuntimeVersionsRequest request =
    +   *       ListRuntimeVersionsRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .setFilter("filter-1274492040")
    +   *           .setOrderBy("orderBy-1207110587")
    +   *           .build();
    +   *   for (RuntimeVersion element : tpuClient.listRuntimeVersions(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 ListRuntimeVersionsPagedResponse listRuntimeVersions( + ListRuntimeVersionsRequest request) { + return listRuntimeVersionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists runtime versions supported by this API. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (TpuClient tpuClient = TpuClient.create()) {
    +   *   ListRuntimeVersionsRequest request =
    +   *       ListRuntimeVersionsRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .setFilter("filter-1274492040")
    +   *           .setOrderBy("orderBy-1207110587")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       tpuClient.listRuntimeVersionsPagedCallable().futureCall(request);
    +   *   // Do something.
    +   *   for (RuntimeVersion element : future.get().iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable + listRuntimeVersionsPagedCallable() { + return stub.listRuntimeVersionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists runtime versions supported by this API. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (TpuClient tpuClient = TpuClient.create()) {
    +   *   ListRuntimeVersionsRequest request =
    +   *       ListRuntimeVersionsRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .setFilter("filter-1274492040")
    +   *           .setOrderBy("orderBy-1207110587")
    +   *           .build();
    +   *   while (true) {
    +   *     ListRuntimeVersionsResponse response =
    +   *         tpuClient.listRuntimeVersionsCallable().call(request);
    +   *     for (RuntimeVersion element : response.getRuntimeVersionsList()) {
        *       // doThingsWith(element);
        *     }
        *     String nextPageToken = response.getNextPageToken();
    @@ -2256,6 +3108,90 @@ protected ListNodesFixedSizeCollection createCollection(
         }
       }
     
    +  public static class ListQueuedResourcesPagedResponse
    +      extends AbstractPagedListResponse<
    +          ListQueuedResourcesRequest,
    +          ListQueuedResourcesResponse,
    +          QueuedResource,
    +          ListQueuedResourcesPage,
    +          ListQueuedResourcesFixedSizeCollection> {
    +
    +    public static ApiFuture createAsync(
    +        PageContext
    +            context,
    +        ApiFuture futureResponse) {
    +      ApiFuture futurePage =
    +          ListQueuedResourcesPage.createEmptyPage().createPageAsync(context, futureResponse);
    +      return ApiFutures.transform(
    +          futurePage,
    +          input -> new ListQueuedResourcesPagedResponse(input),
    +          MoreExecutors.directExecutor());
    +    }
    +
    +    private ListQueuedResourcesPagedResponse(ListQueuedResourcesPage page) {
    +      super(page, ListQueuedResourcesFixedSizeCollection.createEmptyCollection());
    +    }
    +  }
    +
    +  public static class ListQueuedResourcesPage
    +      extends AbstractPage<
    +          ListQueuedResourcesRequest,
    +          ListQueuedResourcesResponse,
    +          QueuedResource,
    +          ListQueuedResourcesPage> {
    +
    +    private ListQueuedResourcesPage(
    +        PageContext
    +            context,
    +        ListQueuedResourcesResponse response) {
    +      super(context, response);
    +    }
    +
    +    private static ListQueuedResourcesPage createEmptyPage() {
    +      return new ListQueuedResourcesPage(null, null);
    +    }
    +
    +    @Override
    +    protected ListQueuedResourcesPage createPage(
    +        PageContext
    +            context,
    +        ListQueuedResourcesResponse response) {
    +      return new ListQueuedResourcesPage(context, response);
    +    }
    +
    +    @Override
    +    public ApiFuture createPageAsync(
    +        PageContext
    +            context,
    +        ApiFuture futureResponse) {
    +      return super.createPageAsync(context, futureResponse);
    +    }
    +  }
    +
    +  public static class ListQueuedResourcesFixedSizeCollection
    +      extends AbstractFixedSizeCollection<
    +          ListQueuedResourcesRequest,
    +          ListQueuedResourcesResponse,
    +          QueuedResource,
    +          ListQueuedResourcesPage,
    +          ListQueuedResourcesFixedSizeCollection> {
    +
    +    private ListQueuedResourcesFixedSizeCollection(
    +        List pages, int collectionSize) {
    +      super(pages, collectionSize);
    +    }
    +
    +    private static ListQueuedResourcesFixedSizeCollection createEmptyCollection() {
    +      return new ListQueuedResourcesFixedSizeCollection(null, 0);
    +    }
    +
    +    @Override
    +    protected ListQueuedResourcesFixedSizeCollection createCollection(
    +        List pages, int collectionSize) {
    +      return new ListQueuedResourcesFixedSizeCollection(pages, collectionSize);
    +    }
    +  }
    +
       public static class ListAcceleratorTypesPagedResponse
           extends AbstractPagedListResponse<
               ListAcceleratorTypesRequest,
    diff --git a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/TpuSettings.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/TpuSettings.java
    index 0decfb4a3703..28da841f589c 100644
    --- a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/TpuSettings.java
    +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/TpuSettings.java
    @@ -19,6 +19,7 @@
     import static com.google.cloud.tpu.v2.TpuClient.ListAcceleratorTypesPagedResponse;
     import static com.google.cloud.tpu.v2.TpuClient.ListLocationsPagedResponse;
     import static com.google.cloud.tpu.v2.TpuClient.ListNodesPagedResponse;
    +import static com.google.cloud.tpu.v2.TpuClient.ListQueuedResourcesPagedResponse;
     import static com.google.cloud.tpu.v2.TpuClient.ListRuntimeVersionsPagedResponse;
     
     import com.google.api.core.ApiFunction;
    @@ -188,6 +189,51 @@ public UnaryCallSettings updateNodeSettings() {
         return ((TpuStubSettings) getStubSettings()).updateNodeOperationSettings();
       }
     
    +  /** Returns the object with the settings used for calls to listQueuedResources. */
    +  public PagedCallSettings<
    +          ListQueuedResourcesRequest, ListQueuedResourcesResponse, ListQueuedResourcesPagedResponse>
    +      listQueuedResourcesSettings() {
    +    return ((TpuStubSettings) getStubSettings()).listQueuedResourcesSettings();
    +  }
    +
    +  /** Returns the object with the settings used for calls to getQueuedResource. */
    +  public UnaryCallSettings getQueuedResourceSettings() {
    +    return ((TpuStubSettings) getStubSettings()).getQueuedResourceSettings();
    +  }
    +
    +  /** Returns the object with the settings used for calls to createQueuedResource. */
    +  public UnaryCallSettings createQueuedResourceSettings() {
    +    return ((TpuStubSettings) getStubSettings()).createQueuedResourceSettings();
    +  }
    +
    +  /** Returns the object with the settings used for calls to createQueuedResource. */
    +  public OperationCallSettings
    +      createQueuedResourceOperationSettings() {
    +    return ((TpuStubSettings) getStubSettings()).createQueuedResourceOperationSettings();
    +  }
    +
    +  /** Returns the object with the settings used for calls to deleteQueuedResource. */
    +  public UnaryCallSettings deleteQueuedResourceSettings() {
    +    return ((TpuStubSettings) getStubSettings()).deleteQueuedResourceSettings();
    +  }
    +
    +  /** Returns the object with the settings used for calls to deleteQueuedResource. */
    +  public OperationCallSettings
    +      deleteQueuedResourceOperationSettings() {
    +    return ((TpuStubSettings) getStubSettings()).deleteQueuedResourceOperationSettings();
    +  }
    +
    +  /** Returns the object with the settings used for calls to resetQueuedResource. */
    +  public UnaryCallSettings resetQueuedResourceSettings() {
    +    return ((TpuStubSettings) getStubSettings()).resetQueuedResourceSettings();
    +  }
    +
    +  /** Returns the object with the settings used for calls to resetQueuedResource. */
    +  public OperationCallSettings
    +      resetQueuedResourceOperationSettings() {
    +    return ((TpuStubSettings) getStubSettings()).resetQueuedResourceOperationSettings();
    +  }
    +
       /** Returns the object with the settings used for calls to generateServiceIdentity. */
       public UnaryCallSettings
           generateServiceIdentitySettings() {
    @@ -415,6 +461,59 @@ public UnaryCallSettings.Builder updateNodeSetting
           return getStubSettingsBuilder().updateNodeOperationSettings();
         }
     
    +    /** Returns the builder for the settings used for calls to listQueuedResources. */
    +    public PagedCallSettings.Builder<
    +            ListQueuedResourcesRequest,
    +            ListQueuedResourcesResponse,
    +            ListQueuedResourcesPagedResponse>
    +        listQueuedResourcesSettings() {
    +      return getStubSettingsBuilder().listQueuedResourcesSettings();
    +    }
    +
    +    /** Returns the builder for the settings used for calls to getQueuedResource. */
    +    public UnaryCallSettings.Builder
    +        getQueuedResourceSettings() {
    +      return getStubSettingsBuilder().getQueuedResourceSettings();
    +    }
    +
    +    /** Returns the builder for the settings used for calls to createQueuedResource. */
    +    public UnaryCallSettings.Builder
    +        createQueuedResourceSettings() {
    +      return getStubSettingsBuilder().createQueuedResourceSettings();
    +    }
    +
    +    /** Returns the builder for the settings used for calls to createQueuedResource. */
    +    public OperationCallSettings.Builder<
    +            CreateQueuedResourceRequest, QueuedResource, OperationMetadata>
    +        createQueuedResourceOperationSettings() {
    +      return getStubSettingsBuilder().createQueuedResourceOperationSettings();
    +    }
    +
    +    /** Returns the builder for the settings used for calls to deleteQueuedResource. */
    +    public UnaryCallSettings.Builder
    +        deleteQueuedResourceSettings() {
    +      return getStubSettingsBuilder().deleteQueuedResourceSettings();
    +    }
    +
    +    /** Returns the builder for the settings used for calls to deleteQueuedResource. */
    +    public OperationCallSettings.Builder
    +        deleteQueuedResourceOperationSettings() {
    +      return getStubSettingsBuilder().deleteQueuedResourceOperationSettings();
    +    }
    +
    +    /** Returns the builder for the settings used for calls to resetQueuedResource. */
    +    public UnaryCallSettings.Builder
    +        resetQueuedResourceSettings() {
    +      return getStubSettingsBuilder().resetQueuedResourceSettings();
    +    }
    +
    +    /** Returns the builder for the settings used for calls to resetQueuedResource. */
    +    public OperationCallSettings.Builder<
    +            ResetQueuedResourceRequest, QueuedResource, OperationMetadata>
    +        resetQueuedResourceOperationSettings() {
    +      return getStubSettingsBuilder().resetQueuedResourceOperationSettings();
    +    }
    +
         /** Returns the builder for the settings used for calls to generateServiceIdentity. */
         public UnaryCallSettings.Builder<
                 GenerateServiceIdentityRequest, GenerateServiceIdentityResponse>
    diff --git a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/gapic_metadata.json b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/gapic_metadata.json
    index fe300048387b..a88ff86f3670 100644
    --- a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/gapic_metadata.json
    +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/gapic_metadata.json
    @@ -13,9 +13,15 @@
                 "CreateNode": {
                   "methods": ["createNodeAsync", "createNodeAsync", "createNodeAsync", "createNodeOperationCallable", "createNodeCallable"]
                 },
    +            "CreateQueuedResource": {
    +              "methods": ["createQueuedResourceAsync", "createQueuedResourceAsync", "createQueuedResourceAsync", "createQueuedResourceOperationCallable", "createQueuedResourceCallable"]
    +            },
                 "DeleteNode": {
                   "methods": ["deleteNodeAsync", "deleteNodeAsync", "deleteNodeAsync", "deleteNodeOperationCallable", "deleteNodeCallable"]
                 },
    +            "DeleteQueuedResource": {
    +              "methods": ["deleteQueuedResourceAsync", "deleteQueuedResourceAsync", "deleteQueuedResourceAsync", "deleteQueuedResourceOperationCallable", "deleteQueuedResourceCallable"]
    +            },
                 "GenerateServiceIdentity": {
                   "methods": ["generateServiceIdentity", "generateServiceIdentityCallable"]
                 },
    @@ -31,6 +37,9 @@
                 "GetNode": {
                   "methods": ["getNode", "getNode", "getNode", "getNodeCallable"]
                 },
    +            "GetQueuedResource": {
    +              "methods": ["getQueuedResource", "getQueuedResource", "getQueuedResource", "getQueuedResourceCallable"]
    +            },
                 "GetRuntimeVersion": {
                   "methods": ["getRuntimeVersion", "getRuntimeVersion", "getRuntimeVersion", "getRuntimeVersionCallable"]
                 },
    @@ -43,9 +52,15 @@
                 "ListNodes": {
                   "methods": ["listNodes", "listNodes", "listNodes", "listNodesPagedCallable", "listNodesCallable"]
                 },
    +            "ListQueuedResources": {
    +              "methods": ["listQueuedResources", "listQueuedResources", "listQueuedResources", "listQueuedResourcesPagedCallable", "listQueuedResourcesCallable"]
    +            },
                 "ListRuntimeVersions": {
                   "methods": ["listRuntimeVersions", "listRuntimeVersions", "listRuntimeVersions", "listRuntimeVersionsPagedCallable", "listRuntimeVersionsCallable"]
                 },
    +            "ResetQueuedResource": {
    +              "methods": ["resetQueuedResourceAsync", "resetQueuedResourceAsync", "resetQueuedResourceAsync", "resetQueuedResourceOperationCallable", "resetQueuedResourceCallable"]
    +            },
                 "StartNode": {
                   "methods": ["startNodeAsync", "startNodeOperationCallable", "startNodeCallable"]
                 },
    diff --git a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/GrpcTpuStub.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/GrpcTpuStub.java
    index 538b5dfe3bbd..a10870feafd2 100644
    --- a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/GrpcTpuStub.java
    +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/GrpcTpuStub.java
    @@ -19,6 +19,7 @@
     import static com.google.cloud.tpu.v2.TpuClient.ListAcceleratorTypesPagedResponse;
     import static com.google.cloud.tpu.v2.TpuClient.ListLocationsPagedResponse;
     import static com.google.cloud.tpu.v2.TpuClient.ListNodesPagedResponse;
    +import static com.google.cloud.tpu.v2.TpuClient.ListQueuedResourcesPagedResponse;
     import static com.google.cloud.tpu.v2.TpuClient.ListRuntimeVersionsPagedResponse;
     
     import com.google.api.gax.core.BackgroundResource;
    @@ -35,22 +36,29 @@
     import com.google.cloud.location.Location;
     import com.google.cloud.tpu.v2.AcceleratorType;
     import com.google.cloud.tpu.v2.CreateNodeRequest;
    +import com.google.cloud.tpu.v2.CreateQueuedResourceRequest;
     import com.google.cloud.tpu.v2.DeleteNodeRequest;
    +import com.google.cloud.tpu.v2.DeleteQueuedResourceRequest;
     import com.google.cloud.tpu.v2.GenerateServiceIdentityRequest;
     import com.google.cloud.tpu.v2.GenerateServiceIdentityResponse;
     import com.google.cloud.tpu.v2.GetAcceleratorTypeRequest;
     import com.google.cloud.tpu.v2.GetGuestAttributesRequest;
     import com.google.cloud.tpu.v2.GetGuestAttributesResponse;
     import com.google.cloud.tpu.v2.GetNodeRequest;
    +import com.google.cloud.tpu.v2.GetQueuedResourceRequest;
     import com.google.cloud.tpu.v2.GetRuntimeVersionRequest;
     import com.google.cloud.tpu.v2.ListAcceleratorTypesRequest;
     import com.google.cloud.tpu.v2.ListAcceleratorTypesResponse;
     import com.google.cloud.tpu.v2.ListNodesRequest;
     import com.google.cloud.tpu.v2.ListNodesResponse;
    +import com.google.cloud.tpu.v2.ListQueuedResourcesRequest;
    +import com.google.cloud.tpu.v2.ListQueuedResourcesResponse;
     import com.google.cloud.tpu.v2.ListRuntimeVersionsRequest;
     import com.google.cloud.tpu.v2.ListRuntimeVersionsResponse;
     import com.google.cloud.tpu.v2.Node;
     import com.google.cloud.tpu.v2.OperationMetadata;
    +import com.google.cloud.tpu.v2.QueuedResource;
    +import com.google.cloud.tpu.v2.ResetQueuedResourceRequest;
     import com.google.cloud.tpu.v2.RuntimeVersion;
     import com.google.cloud.tpu.v2.StartNodeRequest;
     import com.google.cloud.tpu.v2.StopNodeRequest;
    @@ -129,6 +137,57 @@ public class GrpcTpuStub extends TpuStub {
               .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
               .build();
     
    +  private static final MethodDescriptor
    +      listQueuedResourcesMethodDescriptor =
    +          MethodDescriptor.newBuilder()
    +              .setType(MethodDescriptor.MethodType.UNARY)
    +              .setFullMethodName("google.cloud.tpu.v2.Tpu/ListQueuedResources")
    +              .setRequestMarshaller(
    +                  ProtoUtils.marshaller(ListQueuedResourcesRequest.getDefaultInstance()))
    +              .setResponseMarshaller(
    +                  ProtoUtils.marshaller(ListQueuedResourcesResponse.getDefaultInstance()))
    +              .build();
    +
    +  private static final MethodDescriptor
    +      getQueuedResourceMethodDescriptor =
    +          MethodDescriptor.newBuilder()
    +              .setType(MethodDescriptor.MethodType.UNARY)
    +              .setFullMethodName("google.cloud.tpu.v2.Tpu/GetQueuedResource")
    +              .setRequestMarshaller(
    +                  ProtoUtils.marshaller(GetQueuedResourceRequest.getDefaultInstance()))
    +              .setResponseMarshaller(ProtoUtils.marshaller(QueuedResource.getDefaultInstance()))
    +              .build();
    +
    +  private static final MethodDescriptor
    +      createQueuedResourceMethodDescriptor =
    +          MethodDescriptor.newBuilder()
    +              .setType(MethodDescriptor.MethodType.UNARY)
    +              .setFullMethodName("google.cloud.tpu.v2.Tpu/CreateQueuedResource")
    +              .setRequestMarshaller(
    +                  ProtoUtils.marshaller(CreateQueuedResourceRequest.getDefaultInstance()))
    +              .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
    +              .build();
    +
    +  private static final MethodDescriptor
    +      deleteQueuedResourceMethodDescriptor =
    +          MethodDescriptor.newBuilder()
    +              .setType(MethodDescriptor.MethodType.UNARY)
    +              .setFullMethodName("google.cloud.tpu.v2.Tpu/DeleteQueuedResource")
    +              .setRequestMarshaller(
    +                  ProtoUtils.marshaller(DeleteQueuedResourceRequest.getDefaultInstance()))
    +              .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
    +              .build();
    +
    +  private static final MethodDescriptor
    +      resetQueuedResourceMethodDescriptor =
    +          MethodDescriptor.newBuilder()
    +              .setType(MethodDescriptor.MethodType.UNARY)
    +              .setFullMethodName("google.cloud.tpu.v2.Tpu/ResetQueuedResource")
    +              .setRequestMarshaller(
    +                  ProtoUtils.marshaller(ResetQueuedResourceRequest.getDefaultInstance()))
    +              .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
    +              .build();
    +
       private static final MethodDescriptor<
               GenerateServiceIdentityRequest, GenerateServiceIdentityResponse>
           generateServiceIdentityMethodDescriptor =
    @@ -232,6 +291,20 @@ public class GrpcTpuStub extends TpuStub {
       private final UnaryCallable updateNodeCallable;
       private final OperationCallable
           updateNodeOperationCallable;
    +  private final UnaryCallable
    +      listQueuedResourcesCallable;
    +  private final UnaryCallable
    +      listQueuedResourcesPagedCallable;
    +  private final UnaryCallable getQueuedResourceCallable;
    +  private final UnaryCallable createQueuedResourceCallable;
    +  private final OperationCallable
    +      createQueuedResourceOperationCallable;
    +  private final UnaryCallable deleteQueuedResourceCallable;
    +  private final OperationCallable
    +      deleteQueuedResourceOperationCallable;
    +  private final UnaryCallable resetQueuedResourceCallable;
    +  private final OperationCallable
    +      resetQueuedResourceOperationCallable;
       private final UnaryCallable
           generateServiceIdentityCallable;
       private final UnaryCallable
    @@ -359,6 +432,57 @@ protected GrpcTpuStub(
                       return builder.build();
                     })
                 .build();
    +    GrpcCallSettings
    +        listQueuedResourcesTransportSettings =
    +            GrpcCallSettings.newBuilder()
    +                .setMethodDescriptor(listQueuedResourcesMethodDescriptor)
    +                .setParamsExtractor(
    +                    request -> {
    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                      builder.add("parent", String.valueOf(request.getParent()));
    +                      return builder.build();
    +                    })
    +                .build();
    +    GrpcCallSettings getQueuedResourceTransportSettings =
    +        GrpcCallSettings.newBuilder()
    +            .setMethodDescriptor(getQueuedResourceMethodDescriptor)
    +            .setParamsExtractor(
    +                request -> {
    +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                  builder.add("name", String.valueOf(request.getName()));
    +                  return builder.build();
    +                })
    +            .build();
    +    GrpcCallSettings createQueuedResourceTransportSettings =
    +        GrpcCallSettings.newBuilder()
    +            .setMethodDescriptor(createQueuedResourceMethodDescriptor)
    +            .setParamsExtractor(
    +                request -> {
    +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                  builder.add("parent", String.valueOf(request.getParent()));
    +                  return builder.build();
    +                })
    +            .build();
    +    GrpcCallSettings deleteQueuedResourceTransportSettings =
    +        GrpcCallSettings.newBuilder()
    +            .setMethodDescriptor(deleteQueuedResourceMethodDescriptor)
    +            .setParamsExtractor(
    +                request -> {
    +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                  builder.add("name", String.valueOf(request.getName()));
    +                  return builder.build();
    +                })
    +            .build();
    +    GrpcCallSettings resetQueuedResourceTransportSettings =
    +        GrpcCallSettings.newBuilder()
    +            .setMethodDescriptor(resetQueuedResourceMethodDescriptor)
    +            .setParamsExtractor(
    +                request -> {
    +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                  builder.add("name", String.valueOf(request.getName()));
    +                  return builder.build();
    +                })
    +            .build();
         GrpcCallSettings
             generateServiceIdentityTransportSettings =
                 GrpcCallSettings
    @@ -500,6 +624,54 @@ protected GrpcTpuStub(
                 settings.updateNodeOperationSettings(),
                 clientContext,
                 operationsStub);
    +    this.listQueuedResourcesCallable =
    +        callableFactory.createUnaryCallable(
    +            listQueuedResourcesTransportSettings,
    +            settings.listQueuedResourcesSettings(),
    +            clientContext);
    +    this.listQueuedResourcesPagedCallable =
    +        callableFactory.createPagedCallable(
    +            listQueuedResourcesTransportSettings,
    +            settings.listQueuedResourcesSettings(),
    +            clientContext);
    +    this.getQueuedResourceCallable =
    +        callableFactory.createUnaryCallable(
    +            getQueuedResourceTransportSettings,
    +            settings.getQueuedResourceSettings(),
    +            clientContext);
    +    this.createQueuedResourceCallable =
    +        callableFactory.createUnaryCallable(
    +            createQueuedResourceTransportSettings,
    +            settings.createQueuedResourceSettings(),
    +            clientContext);
    +    this.createQueuedResourceOperationCallable =
    +        callableFactory.createOperationCallable(
    +            createQueuedResourceTransportSettings,
    +            settings.createQueuedResourceOperationSettings(),
    +            clientContext,
    +            operationsStub);
    +    this.deleteQueuedResourceCallable =
    +        callableFactory.createUnaryCallable(
    +            deleteQueuedResourceTransportSettings,
    +            settings.deleteQueuedResourceSettings(),
    +            clientContext);
    +    this.deleteQueuedResourceOperationCallable =
    +        callableFactory.createOperationCallable(
    +            deleteQueuedResourceTransportSettings,
    +            settings.deleteQueuedResourceOperationSettings(),
    +            clientContext,
    +            operationsStub);
    +    this.resetQueuedResourceCallable =
    +        callableFactory.createUnaryCallable(
    +            resetQueuedResourceTransportSettings,
    +            settings.resetQueuedResourceSettings(),
    +            clientContext);
    +    this.resetQueuedResourceOperationCallable =
    +        callableFactory.createOperationCallable(
    +            resetQueuedResourceTransportSettings,
    +            settings.resetQueuedResourceOperationSettings(),
    +            clientContext,
    +            operationsStub);
         this.generateServiceIdentityCallable =
             callableFactory.createUnaryCallable(
                 generateServiceIdentityTransportSettings,
    @@ -626,6 +798,56 @@ public UnaryCallable updateNodeCallable() {
         return updateNodeOperationCallable;
       }
     
    +  @Override
    +  public UnaryCallable
    +      listQueuedResourcesCallable() {
    +    return listQueuedResourcesCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable
    +      listQueuedResourcesPagedCallable() {
    +    return listQueuedResourcesPagedCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable getQueuedResourceCallable() {
    +    return getQueuedResourceCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable createQueuedResourceCallable() {
    +    return createQueuedResourceCallable;
    +  }
    +
    +  @Override
    +  public OperationCallable
    +      createQueuedResourceOperationCallable() {
    +    return createQueuedResourceOperationCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable deleteQueuedResourceCallable() {
    +    return deleteQueuedResourceCallable;
    +  }
    +
    +  @Override
    +  public OperationCallable
    +      deleteQueuedResourceOperationCallable() {
    +    return deleteQueuedResourceOperationCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable resetQueuedResourceCallable() {
    +    return resetQueuedResourceCallable;
    +  }
    +
    +  @Override
    +  public OperationCallable
    +      resetQueuedResourceOperationCallable() {
    +    return resetQueuedResourceOperationCallable;
    +  }
    +
       @Override
       public UnaryCallable
           generateServiceIdentityCallable() {
    diff --git a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/HttpJsonTpuStub.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/HttpJsonTpuStub.java
    index eb2619986fcc..d7b6299b7862 100644
    --- a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/HttpJsonTpuStub.java
    +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/HttpJsonTpuStub.java
    @@ -19,6 +19,7 @@
     import static com.google.cloud.tpu.v2.TpuClient.ListAcceleratorTypesPagedResponse;
     import static com.google.cloud.tpu.v2.TpuClient.ListLocationsPagedResponse;
     import static com.google.cloud.tpu.v2.TpuClient.ListNodesPagedResponse;
    +import static com.google.cloud.tpu.v2.TpuClient.ListQueuedResourcesPagedResponse;
     import static com.google.cloud.tpu.v2.TpuClient.ListRuntimeVersionsPagedResponse;
     
     import com.google.api.HttpRule;
    @@ -43,22 +44,29 @@
     import com.google.cloud.location.Location;
     import com.google.cloud.tpu.v2.AcceleratorType;
     import com.google.cloud.tpu.v2.CreateNodeRequest;
    +import com.google.cloud.tpu.v2.CreateQueuedResourceRequest;
     import com.google.cloud.tpu.v2.DeleteNodeRequest;
    +import com.google.cloud.tpu.v2.DeleteQueuedResourceRequest;
     import com.google.cloud.tpu.v2.GenerateServiceIdentityRequest;
     import com.google.cloud.tpu.v2.GenerateServiceIdentityResponse;
     import com.google.cloud.tpu.v2.GetAcceleratorTypeRequest;
     import com.google.cloud.tpu.v2.GetGuestAttributesRequest;
     import com.google.cloud.tpu.v2.GetGuestAttributesResponse;
     import com.google.cloud.tpu.v2.GetNodeRequest;
    +import com.google.cloud.tpu.v2.GetQueuedResourceRequest;
     import com.google.cloud.tpu.v2.GetRuntimeVersionRequest;
     import com.google.cloud.tpu.v2.ListAcceleratorTypesRequest;
     import com.google.cloud.tpu.v2.ListAcceleratorTypesResponse;
     import com.google.cloud.tpu.v2.ListNodesRequest;
     import com.google.cloud.tpu.v2.ListNodesResponse;
    +import com.google.cloud.tpu.v2.ListQueuedResourcesRequest;
    +import com.google.cloud.tpu.v2.ListQueuedResourcesResponse;
     import com.google.cloud.tpu.v2.ListRuntimeVersionsRequest;
     import com.google.cloud.tpu.v2.ListRuntimeVersionsResponse;
     import com.google.cloud.tpu.v2.Node;
     import com.google.cloud.tpu.v2.OperationMetadata;
    +import com.google.cloud.tpu.v2.QueuedResource;
    +import com.google.cloud.tpu.v2.ResetQueuedResourceRequest;
     import com.google.cloud.tpu.v2.RuntimeVersion;
     import com.google.cloud.tpu.v2.StartNodeRequest;
     import com.google.cloud.tpu.v2.StopNodeRequest;
    @@ -86,6 +94,7 @@ public class HttpJsonTpuStub extends TpuStub {
       private static final TypeRegistry typeRegistry =
           TypeRegistry.newBuilder()
               .add(Empty.getDescriptor())
    +          .add(QueuedResource.getDescriptor())
               .add(OperationMetadata.getDescriptor())
               .add(Node.getDescriptor())
               .build();
    @@ -355,6 +364,198 @@ public class HttpJsonTpuStub extends TpuStub {
                           HttpJsonOperationSnapshot.create(response))
                   .build();
     
    +  private static final ApiMethodDescriptor
    +      listQueuedResourcesMethodDescriptor =
    +          ApiMethodDescriptor.newBuilder()
    +              .setFullMethodName("google.cloud.tpu.v2.Tpu/ListQueuedResources")
    +              .setHttpMethod("GET")
    +              .setType(ApiMethodDescriptor.MethodType.UNARY)
    +              .setRequestFormatter(
    +                  ProtoMessageRequestFormatter.newBuilder()
    +                      .setPath(
    +                          "/v2/{parent=projects/*/locations/*}/queuedResources",
    +                          request -> {
    +                            Map fields = new HashMap<>();
    +                            ProtoRestSerializer serializer =
    +                                ProtoRestSerializer.create();
    +                            serializer.putPathParam(fields, "parent", request.getParent());
    +                            return fields;
    +                          })
    +                      .setQueryParamsExtractor(
    +                          request -> {
    +                            Map> fields = new HashMap<>();
    +                            ProtoRestSerializer serializer =
    +                                ProtoRestSerializer.create();
    +                            serializer.putQueryParam(fields, "pageSize", request.getPageSize());
    +                            serializer.putQueryParam(fields, "pageToken", request.getPageToken());
    +                            serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
    +                            return fields;
    +                          })
    +                      .setRequestBodyExtractor(request -> null)
    +                      .build())
    +              .setResponseParser(
    +                  ProtoMessageResponseParser.newBuilder()
    +                      .setDefaultInstance(ListQueuedResourcesResponse.getDefaultInstance())
    +                      .setDefaultTypeRegistry(typeRegistry)
    +                      .build())
    +              .build();
    +
    +  private static final ApiMethodDescriptor
    +      getQueuedResourceMethodDescriptor =
    +          ApiMethodDescriptor.newBuilder()
    +              .setFullMethodName("google.cloud.tpu.v2.Tpu/GetQueuedResource")
    +              .setHttpMethod("GET")
    +              .setType(ApiMethodDescriptor.MethodType.UNARY)
    +              .setRequestFormatter(
    +                  ProtoMessageRequestFormatter.newBuilder()
    +                      .setPath(
    +                          "/v2/{name=projects/*/locations/*/queuedResources/*}",
    +                          request -> {
    +                            Map fields = new HashMap<>();
    +                            ProtoRestSerializer serializer =
    +                                ProtoRestSerializer.create();
    +                            serializer.putPathParam(fields, "name", request.getName());
    +                            return fields;
    +                          })
    +                      .setQueryParamsExtractor(
    +                          request -> {
    +                            Map> fields = new HashMap<>();
    +                            ProtoRestSerializer serializer =
    +                                ProtoRestSerializer.create();
    +                            serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
    +                            return fields;
    +                          })
    +                      .setRequestBodyExtractor(request -> null)
    +                      .build())
    +              .setResponseParser(
    +                  ProtoMessageResponseParser.newBuilder()
    +                      .setDefaultInstance(QueuedResource.getDefaultInstance())
    +                      .setDefaultTypeRegistry(typeRegistry)
    +                      .build())
    +              .build();
    +
    +  private static final ApiMethodDescriptor
    +      createQueuedResourceMethodDescriptor =
    +          ApiMethodDescriptor.newBuilder()
    +              .setFullMethodName("google.cloud.tpu.v2.Tpu/CreateQueuedResource")
    +              .setHttpMethod("POST")
    +              .setType(ApiMethodDescriptor.MethodType.UNARY)
    +              .setRequestFormatter(
    +                  ProtoMessageRequestFormatter.newBuilder()
    +                      .setPath(
    +                          "/v2/{parent=projects/*/locations/*}/queuedResources",
    +                          request -> {
    +                            Map fields = new HashMap<>();
    +                            ProtoRestSerializer serializer =
    +                                ProtoRestSerializer.create();
    +                            serializer.putPathParam(fields, "parent", request.getParent());
    +                            return fields;
    +                          })
    +                      .setQueryParamsExtractor(
    +                          request -> {
    +                            Map> fields = new HashMap<>();
    +                            ProtoRestSerializer serializer =
    +                                ProtoRestSerializer.create();
    +                            serializer.putQueryParam(
    +                                fields, "queuedResourceId", request.getQueuedResourceId());
    +                            serializer.putQueryParam(fields, "requestId", request.getRequestId());
    +                            serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
    +                            return fields;
    +                          })
    +                      .setRequestBodyExtractor(
    +                          request ->
    +                              ProtoRestSerializer.create()
    +                                  .toBody("queuedResource", request.getQueuedResource(), true))
    +                      .build())
    +              .setResponseParser(
    +                  ProtoMessageResponseParser.newBuilder()
    +                      .setDefaultInstance(Operation.getDefaultInstance())
    +                      .setDefaultTypeRegistry(typeRegistry)
    +                      .build())
    +              .setOperationSnapshotFactory(
    +                  (CreateQueuedResourceRequest request, Operation response) ->
    +                      HttpJsonOperationSnapshot.create(response))
    +              .build();
    +
    +  private static final ApiMethodDescriptor
    +      deleteQueuedResourceMethodDescriptor =
    +          ApiMethodDescriptor.newBuilder()
    +              .setFullMethodName("google.cloud.tpu.v2.Tpu/DeleteQueuedResource")
    +              .setHttpMethod("DELETE")
    +              .setType(ApiMethodDescriptor.MethodType.UNARY)
    +              .setRequestFormatter(
    +                  ProtoMessageRequestFormatter.newBuilder()
    +                      .setPath(
    +                          "/v2/{name=projects/*/locations/*/queuedResources/*}",
    +                          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, "force", request.getForce());
    +                            serializer.putQueryParam(fields, "requestId", request.getRequestId());
    +                            serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
    +                            return fields;
    +                          })
    +                      .setRequestBodyExtractor(request -> null)
    +                      .build())
    +              .setResponseParser(
    +                  ProtoMessageResponseParser.newBuilder()
    +                      .setDefaultInstance(Operation.getDefaultInstance())
    +                      .setDefaultTypeRegistry(typeRegistry)
    +                      .build())
    +              .setOperationSnapshotFactory(
    +                  (DeleteQueuedResourceRequest request, Operation response) ->
    +                      HttpJsonOperationSnapshot.create(response))
    +              .build();
    +
    +  private static final ApiMethodDescriptor
    +      resetQueuedResourceMethodDescriptor =
    +          ApiMethodDescriptor.newBuilder()
    +              .setFullMethodName("google.cloud.tpu.v2.Tpu/ResetQueuedResource")
    +              .setHttpMethod("POST")
    +              .setType(ApiMethodDescriptor.MethodType.UNARY)
    +              .setRequestFormatter(
    +                  ProtoMessageRequestFormatter.newBuilder()
    +                      .setPath(
    +                          "/v2/{name=projects/*/locations/*/queuedResources/*}:reset",
    +                          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(
    +                  (ResetQueuedResourceRequest request, Operation response) ->
    +                      HttpJsonOperationSnapshot.create(response))
    +              .build();
    +
       private static final ApiMethodDescriptor<
               GenerateServiceIdentityRequest, GenerateServiceIdentityResponse>
           generateServiceIdentityMethodDescriptor =
    @@ -663,6 +864,20 @@ public class HttpJsonTpuStub extends TpuStub {
       private final UnaryCallable updateNodeCallable;
       private final OperationCallable
           updateNodeOperationCallable;
    +  private final UnaryCallable
    +      listQueuedResourcesCallable;
    +  private final UnaryCallable
    +      listQueuedResourcesPagedCallable;
    +  private final UnaryCallable getQueuedResourceCallable;
    +  private final UnaryCallable createQueuedResourceCallable;
    +  private final OperationCallable
    +      createQueuedResourceOperationCallable;
    +  private final UnaryCallable deleteQueuedResourceCallable;
    +  private final OperationCallable
    +      deleteQueuedResourceOperationCallable;
    +  private final UnaryCallable resetQueuedResourceCallable;
    +  private final OperationCallable
    +      resetQueuedResourceOperationCallable;
       private final UnaryCallable
           generateServiceIdentityCallable;
       private final UnaryCallable
    @@ -825,6 +1040,67 @@ protected HttpJsonTpuStub(
                       return builder.build();
                     })
                 .build();
    +    HttpJsonCallSettings
    +        listQueuedResourcesTransportSettings =
    +            HttpJsonCallSettings
    +                .newBuilder()
    +                .setMethodDescriptor(listQueuedResourcesMethodDescriptor)
    +                .setTypeRegistry(typeRegistry)
    +                .setParamsExtractor(
    +                    request -> {
    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                      builder.add("parent", String.valueOf(request.getParent()));
    +                      return builder.build();
    +                    })
    +                .build();
    +    HttpJsonCallSettings
    +        getQueuedResourceTransportSettings =
    +            HttpJsonCallSettings.newBuilder()
    +                .setMethodDescriptor(getQueuedResourceMethodDescriptor)
    +                .setTypeRegistry(typeRegistry)
    +                .setParamsExtractor(
    +                    request -> {
    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                      builder.add("name", String.valueOf(request.getName()));
    +                      return builder.build();
    +                    })
    +                .build();
    +    HttpJsonCallSettings
    +        createQueuedResourceTransportSettings =
    +            HttpJsonCallSettings.newBuilder()
    +                .setMethodDescriptor(createQueuedResourceMethodDescriptor)
    +                .setTypeRegistry(typeRegistry)
    +                .setParamsExtractor(
    +                    request -> {
    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                      builder.add("parent", String.valueOf(request.getParent()));
    +                      return builder.build();
    +                    })
    +                .build();
    +    HttpJsonCallSettings
    +        deleteQueuedResourceTransportSettings =
    +            HttpJsonCallSettings.newBuilder()
    +                .setMethodDescriptor(deleteQueuedResourceMethodDescriptor)
    +                .setTypeRegistry(typeRegistry)
    +                .setParamsExtractor(
    +                    request -> {
    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                      builder.add("name", String.valueOf(request.getName()));
    +                      return builder.build();
    +                    })
    +                .build();
    +    HttpJsonCallSettings
    +        resetQueuedResourceTransportSettings =
    +            HttpJsonCallSettings.newBuilder()
    +                .setMethodDescriptor(resetQueuedResourceMethodDescriptor)
    +                .setTypeRegistry(typeRegistry)
    +                .setParamsExtractor(
    +                    request -> {
    +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
    +                      builder.add("name", String.valueOf(request.getName()));
    +                      return builder.build();
    +                    })
    +                .build();
         HttpJsonCallSettings
             generateServiceIdentityTransportSettings =
                 HttpJsonCallSettings
    @@ -978,6 +1254,54 @@ protected HttpJsonTpuStub(
                 settings.updateNodeOperationSettings(),
                 clientContext,
                 httpJsonOperationsStub);
    +    this.listQueuedResourcesCallable =
    +        callableFactory.createUnaryCallable(
    +            listQueuedResourcesTransportSettings,
    +            settings.listQueuedResourcesSettings(),
    +            clientContext);
    +    this.listQueuedResourcesPagedCallable =
    +        callableFactory.createPagedCallable(
    +            listQueuedResourcesTransportSettings,
    +            settings.listQueuedResourcesSettings(),
    +            clientContext);
    +    this.getQueuedResourceCallable =
    +        callableFactory.createUnaryCallable(
    +            getQueuedResourceTransportSettings,
    +            settings.getQueuedResourceSettings(),
    +            clientContext);
    +    this.createQueuedResourceCallable =
    +        callableFactory.createUnaryCallable(
    +            createQueuedResourceTransportSettings,
    +            settings.createQueuedResourceSettings(),
    +            clientContext);
    +    this.createQueuedResourceOperationCallable =
    +        callableFactory.createOperationCallable(
    +            createQueuedResourceTransportSettings,
    +            settings.createQueuedResourceOperationSettings(),
    +            clientContext,
    +            httpJsonOperationsStub);
    +    this.deleteQueuedResourceCallable =
    +        callableFactory.createUnaryCallable(
    +            deleteQueuedResourceTransportSettings,
    +            settings.deleteQueuedResourceSettings(),
    +            clientContext);
    +    this.deleteQueuedResourceOperationCallable =
    +        callableFactory.createOperationCallable(
    +            deleteQueuedResourceTransportSettings,
    +            settings.deleteQueuedResourceOperationSettings(),
    +            clientContext,
    +            httpJsonOperationsStub);
    +    this.resetQueuedResourceCallable =
    +        callableFactory.createUnaryCallable(
    +            resetQueuedResourceTransportSettings,
    +            settings.resetQueuedResourceSettings(),
    +            clientContext);
    +    this.resetQueuedResourceOperationCallable =
    +        callableFactory.createOperationCallable(
    +            resetQueuedResourceTransportSettings,
    +            settings.resetQueuedResourceOperationSettings(),
    +            clientContext,
    +            httpJsonOperationsStub);
         this.generateServiceIdentityCallable =
             callableFactory.createUnaryCallable(
                 generateServiceIdentityTransportSettings,
    @@ -1042,6 +1366,11 @@ public static List getMethodDescriptors() {
         methodDescriptors.add(stopNodeMethodDescriptor);
         methodDescriptors.add(startNodeMethodDescriptor);
         methodDescriptors.add(updateNodeMethodDescriptor);
    +    methodDescriptors.add(listQueuedResourcesMethodDescriptor);
    +    methodDescriptors.add(getQueuedResourceMethodDescriptor);
    +    methodDescriptors.add(createQueuedResourceMethodDescriptor);
    +    methodDescriptors.add(deleteQueuedResourceMethodDescriptor);
    +    methodDescriptors.add(resetQueuedResourceMethodDescriptor);
         methodDescriptors.add(generateServiceIdentityMethodDescriptor);
         methodDescriptors.add(listAcceleratorTypesMethodDescriptor);
         methodDescriptors.add(getAcceleratorTypeMethodDescriptor);
    @@ -1125,6 +1454,56 @@ public UnaryCallable updateNodeCallable() {
         return updateNodeOperationCallable;
       }
     
    +  @Override
    +  public UnaryCallable
    +      listQueuedResourcesCallable() {
    +    return listQueuedResourcesCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable
    +      listQueuedResourcesPagedCallable() {
    +    return listQueuedResourcesPagedCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable getQueuedResourceCallable() {
    +    return getQueuedResourceCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable createQueuedResourceCallable() {
    +    return createQueuedResourceCallable;
    +  }
    +
    +  @Override
    +  public OperationCallable
    +      createQueuedResourceOperationCallable() {
    +    return createQueuedResourceOperationCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable deleteQueuedResourceCallable() {
    +    return deleteQueuedResourceCallable;
    +  }
    +
    +  @Override
    +  public OperationCallable
    +      deleteQueuedResourceOperationCallable() {
    +    return deleteQueuedResourceOperationCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable resetQueuedResourceCallable() {
    +    return resetQueuedResourceCallable;
    +  }
    +
    +  @Override
    +  public OperationCallable
    +      resetQueuedResourceOperationCallable() {
    +    return resetQueuedResourceOperationCallable;
    +  }
    +
       @Override
       public UnaryCallable
           generateServiceIdentityCallable() {
    diff --git a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/TpuStub.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/TpuStub.java
    index 6e590ece90c0..8d04482d20b2 100644
    --- a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/TpuStub.java
    +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/TpuStub.java
    @@ -19,6 +19,7 @@
     import static com.google.cloud.tpu.v2.TpuClient.ListAcceleratorTypesPagedResponse;
     import static com.google.cloud.tpu.v2.TpuClient.ListLocationsPagedResponse;
     import static com.google.cloud.tpu.v2.TpuClient.ListNodesPagedResponse;
    +import static com.google.cloud.tpu.v2.TpuClient.ListQueuedResourcesPagedResponse;
     import static com.google.cloud.tpu.v2.TpuClient.ListRuntimeVersionsPagedResponse;
     
     import com.google.api.gax.core.BackgroundResource;
    @@ -30,22 +31,29 @@
     import com.google.cloud.location.Location;
     import com.google.cloud.tpu.v2.AcceleratorType;
     import com.google.cloud.tpu.v2.CreateNodeRequest;
    +import com.google.cloud.tpu.v2.CreateQueuedResourceRequest;
     import com.google.cloud.tpu.v2.DeleteNodeRequest;
    +import com.google.cloud.tpu.v2.DeleteQueuedResourceRequest;
     import com.google.cloud.tpu.v2.GenerateServiceIdentityRequest;
     import com.google.cloud.tpu.v2.GenerateServiceIdentityResponse;
     import com.google.cloud.tpu.v2.GetAcceleratorTypeRequest;
     import com.google.cloud.tpu.v2.GetGuestAttributesRequest;
     import com.google.cloud.tpu.v2.GetGuestAttributesResponse;
     import com.google.cloud.tpu.v2.GetNodeRequest;
    +import com.google.cloud.tpu.v2.GetQueuedResourceRequest;
     import com.google.cloud.tpu.v2.GetRuntimeVersionRequest;
     import com.google.cloud.tpu.v2.ListAcceleratorTypesRequest;
     import com.google.cloud.tpu.v2.ListAcceleratorTypesResponse;
     import com.google.cloud.tpu.v2.ListNodesRequest;
     import com.google.cloud.tpu.v2.ListNodesResponse;
    +import com.google.cloud.tpu.v2.ListQueuedResourcesRequest;
    +import com.google.cloud.tpu.v2.ListQueuedResourcesResponse;
     import com.google.cloud.tpu.v2.ListRuntimeVersionsRequest;
     import com.google.cloud.tpu.v2.ListRuntimeVersionsResponse;
     import com.google.cloud.tpu.v2.Node;
     import com.google.cloud.tpu.v2.OperationMetadata;
    +import com.google.cloud.tpu.v2.QueuedResource;
    +import com.google.cloud.tpu.v2.ResetQueuedResourceRequest;
     import com.google.cloud.tpu.v2.RuntimeVersion;
     import com.google.cloud.tpu.v2.StartNodeRequest;
     import com.google.cloud.tpu.v2.StopNodeRequest;
    @@ -127,6 +135,50 @@ public UnaryCallable updateNodeCallable() {
         throw new UnsupportedOperationException("Not implemented: updateNodeCallable()");
       }
     
    +  public UnaryCallable
    +      listQueuedResourcesPagedCallable() {
    +    throw new UnsupportedOperationException("Not implemented: listQueuedResourcesPagedCallable()");
    +  }
    +
    +  public UnaryCallable
    +      listQueuedResourcesCallable() {
    +    throw new UnsupportedOperationException("Not implemented: listQueuedResourcesCallable()");
    +  }
    +
    +  public UnaryCallable getQueuedResourceCallable() {
    +    throw new UnsupportedOperationException("Not implemented: getQueuedResourceCallable()");
    +  }
    +
    +  public OperationCallable
    +      createQueuedResourceOperationCallable() {
    +    throw new UnsupportedOperationException(
    +        "Not implemented: createQueuedResourceOperationCallable()");
    +  }
    +
    +  public UnaryCallable createQueuedResourceCallable() {
    +    throw new UnsupportedOperationException("Not implemented: createQueuedResourceCallable()");
    +  }
    +
    +  public OperationCallable
    +      deleteQueuedResourceOperationCallable() {
    +    throw new UnsupportedOperationException(
    +        "Not implemented: deleteQueuedResourceOperationCallable()");
    +  }
    +
    +  public UnaryCallable deleteQueuedResourceCallable() {
    +    throw new UnsupportedOperationException("Not implemented: deleteQueuedResourceCallable()");
    +  }
    +
    +  public OperationCallable
    +      resetQueuedResourceOperationCallable() {
    +    throw new UnsupportedOperationException(
    +        "Not implemented: resetQueuedResourceOperationCallable()");
    +  }
    +
    +  public UnaryCallable resetQueuedResourceCallable() {
    +    throw new UnsupportedOperationException("Not implemented: resetQueuedResourceCallable()");
    +  }
    +
       public UnaryCallable
           generateServiceIdentityCallable() {
         throw new UnsupportedOperationException("Not implemented: generateServiceIdentityCallable()");
    diff --git a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/TpuStubSettings.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/TpuStubSettings.java
    index df2c5ec5220d..528beaa03c28 100644
    --- a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/TpuStubSettings.java
    +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/TpuStubSettings.java
    @@ -19,6 +19,7 @@
     import static com.google.cloud.tpu.v2.TpuClient.ListAcceleratorTypesPagedResponse;
     import static com.google.cloud.tpu.v2.TpuClient.ListLocationsPagedResponse;
     import static com.google.cloud.tpu.v2.TpuClient.ListNodesPagedResponse;
    +import static com.google.cloud.tpu.v2.TpuClient.ListQueuedResourcesPagedResponse;
     import static com.google.cloud.tpu.v2.TpuClient.ListRuntimeVersionsPagedResponse;
     
     import com.google.api.core.ApiFunction;
    @@ -57,22 +58,29 @@
     import com.google.cloud.location.Location;
     import com.google.cloud.tpu.v2.AcceleratorType;
     import com.google.cloud.tpu.v2.CreateNodeRequest;
    +import com.google.cloud.tpu.v2.CreateQueuedResourceRequest;
     import com.google.cloud.tpu.v2.DeleteNodeRequest;
    +import com.google.cloud.tpu.v2.DeleteQueuedResourceRequest;
     import com.google.cloud.tpu.v2.GenerateServiceIdentityRequest;
     import com.google.cloud.tpu.v2.GenerateServiceIdentityResponse;
     import com.google.cloud.tpu.v2.GetAcceleratorTypeRequest;
     import com.google.cloud.tpu.v2.GetGuestAttributesRequest;
     import com.google.cloud.tpu.v2.GetGuestAttributesResponse;
     import com.google.cloud.tpu.v2.GetNodeRequest;
    +import com.google.cloud.tpu.v2.GetQueuedResourceRequest;
     import com.google.cloud.tpu.v2.GetRuntimeVersionRequest;
     import com.google.cloud.tpu.v2.ListAcceleratorTypesRequest;
     import com.google.cloud.tpu.v2.ListAcceleratorTypesResponse;
     import com.google.cloud.tpu.v2.ListNodesRequest;
     import com.google.cloud.tpu.v2.ListNodesResponse;
    +import com.google.cloud.tpu.v2.ListQueuedResourcesRequest;
    +import com.google.cloud.tpu.v2.ListQueuedResourcesResponse;
     import com.google.cloud.tpu.v2.ListRuntimeVersionsRequest;
     import com.google.cloud.tpu.v2.ListRuntimeVersionsResponse;
     import com.google.cloud.tpu.v2.Node;
     import com.google.cloud.tpu.v2.OperationMetadata;
    +import com.google.cloud.tpu.v2.QueuedResource;
    +import com.google.cloud.tpu.v2.ResetQueuedResourceRequest;
     import com.google.cloud.tpu.v2.RuntimeVersion;
     import com.google.cloud.tpu.v2.StartNodeRequest;
     import com.google.cloud.tpu.v2.StopNodeRequest;
    @@ -186,6 +194,24 @@ public class TpuStubSettings extends StubSettings {
       private final UnaryCallSettings updateNodeSettings;
       private final OperationCallSettings
           updateNodeOperationSettings;
    +  private final PagedCallSettings<
    +          ListQueuedResourcesRequest, ListQueuedResourcesResponse, ListQueuedResourcesPagedResponse>
    +      listQueuedResourcesSettings;
    +  private final UnaryCallSettings
    +      getQueuedResourceSettings;
    +  private final UnaryCallSettings
    +      createQueuedResourceSettings;
    +  private final OperationCallSettings<
    +          CreateQueuedResourceRequest, QueuedResource, OperationMetadata>
    +      createQueuedResourceOperationSettings;
    +  private final UnaryCallSettings
    +      deleteQueuedResourceSettings;
    +  private final OperationCallSettings
    +      deleteQueuedResourceOperationSettings;
    +  private final UnaryCallSettings
    +      resetQueuedResourceSettings;
    +  private final OperationCallSettings
    +      resetQueuedResourceOperationSettings;
       private final UnaryCallSettings
           generateServiceIdentitySettings;
       private final PagedCallSettings<
    @@ -241,6 +267,44 @@ public Iterable extractResources(ListNodesResponse payload) {
                 }
               };
     
    +  private static final PagedListDescriptor<
    +          ListQueuedResourcesRequest, ListQueuedResourcesResponse, QueuedResource>
    +      LIST_QUEUED_RESOURCES_PAGE_STR_DESC =
    +          new PagedListDescriptor<
    +              ListQueuedResourcesRequest, ListQueuedResourcesResponse, QueuedResource>() {
    +            @Override
    +            public String emptyToken() {
    +              return "";
    +            }
    +
    +            @Override
    +            public ListQueuedResourcesRequest injectToken(
    +                ListQueuedResourcesRequest payload, String token) {
    +              return ListQueuedResourcesRequest.newBuilder(payload).setPageToken(token).build();
    +            }
    +
    +            @Override
    +            public ListQueuedResourcesRequest injectPageSize(
    +                ListQueuedResourcesRequest payload, int pageSize) {
    +              return ListQueuedResourcesRequest.newBuilder(payload).setPageSize(pageSize).build();
    +            }
    +
    +            @Override
    +            public Integer extractPageSize(ListQueuedResourcesRequest payload) {
    +              return payload.getPageSize();
    +            }
    +
    +            @Override
    +            public String extractNextToken(ListQueuedResourcesResponse payload) {
    +              return payload.getNextPageToken();
    +            }
    +
    +            @Override
    +            public Iterable extractResources(ListQueuedResourcesResponse payload) {
    +              return payload.getQueuedResourcesList();
    +            }
    +          };
    +
       private static final PagedListDescriptor<
               ListAcceleratorTypesRequest, ListAcceleratorTypesResponse, AcceleratorType>
           LIST_ACCELERATOR_TYPES_PAGE_STR_DESC =
    @@ -369,6 +433,27 @@ public ApiFuture getFuturePagedResponse(
                 }
               };
     
    +  private static final PagedListResponseFactory<
    +          ListQueuedResourcesRequest, ListQueuedResourcesResponse, ListQueuedResourcesPagedResponse>
    +      LIST_QUEUED_RESOURCES_PAGE_STR_FACT =
    +          new PagedListResponseFactory<
    +              ListQueuedResourcesRequest,
    +              ListQueuedResourcesResponse,
    +              ListQueuedResourcesPagedResponse>() {
    +            @Override
    +            public ApiFuture getFuturePagedResponse(
    +                UnaryCallable callable,
    +                ListQueuedResourcesRequest request,
    +                ApiCallContext context,
    +                ApiFuture futureResponse) {
    +              PageContext
    +                  pageContext =
    +                      PageContext.create(
    +                          callable, LIST_QUEUED_RESOURCES_PAGE_STR_DESC, request, context);
    +              return ListQueuedResourcesPagedResponse.createAsync(pageContext, futureResponse);
    +            }
    +          };
    +
       private static final PagedListResponseFactory<
               ListAcceleratorTypesRequest,
               ListAcceleratorTypesResponse,
    @@ -497,6 +582,51 @@ public UnaryCallSettings updateNodeSettings() {
         return updateNodeOperationSettings;
       }
     
    +  /** Returns the object with the settings used for calls to listQueuedResources. */
    +  public PagedCallSettings<
    +          ListQueuedResourcesRequest, ListQueuedResourcesResponse, ListQueuedResourcesPagedResponse>
    +      listQueuedResourcesSettings() {
    +    return listQueuedResourcesSettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to getQueuedResource. */
    +  public UnaryCallSettings getQueuedResourceSettings() {
    +    return getQueuedResourceSettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to createQueuedResource. */
    +  public UnaryCallSettings createQueuedResourceSettings() {
    +    return createQueuedResourceSettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to createQueuedResource. */
    +  public OperationCallSettings
    +      createQueuedResourceOperationSettings() {
    +    return createQueuedResourceOperationSettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to deleteQueuedResource. */
    +  public UnaryCallSettings deleteQueuedResourceSettings() {
    +    return deleteQueuedResourceSettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to deleteQueuedResource. */
    +  public OperationCallSettings
    +      deleteQueuedResourceOperationSettings() {
    +    return deleteQueuedResourceOperationSettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to resetQueuedResource. */
    +  public UnaryCallSettings resetQueuedResourceSettings() {
    +    return resetQueuedResourceSettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to resetQueuedResource. */
    +  public OperationCallSettings
    +      resetQueuedResourceOperationSettings() {
    +    return resetQueuedResourceOperationSettings;
    +  }
    +
       /** Returns the object with the settings used for calls to generateServiceIdentity. */
       public UnaryCallSettings
           generateServiceIdentitySettings() {
    @@ -668,6 +798,17 @@ protected TpuStubSettings(Builder settingsBuilder) throws IOException {
         startNodeOperationSettings = settingsBuilder.startNodeOperationSettings().build();
         updateNodeSettings = settingsBuilder.updateNodeSettings().build();
         updateNodeOperationSettings = settingsBuilder.updateNodeOperationSettings().build();
    +    listQueuedResourcesSettings = settingsBuilder.listQueuedResourcesSettings().build();
    +    getQueuedResourceSettings = settingsBuilder.getQueuedResourceSettings().build();
    +    createQueuedResourceSettings = settingsBuilder.createQueuedResourceSettings().build();
    +    createQueuedResourceOperationSettings =
    +        settingsBuilder.createQueuedResourceOperationSettings().build();
    +    deleteQueuedResourceSettings = settingsBuilder.deleteQueuedResourceSettings().build();
    +    deleteQueuedResourceOperationSettings =
    +        settingsBuilder.deleteQueuedResourceOperationSettings().build();
    +    resetQueuedResourceSettings = settingsBuilder.resetQueuedResourceSettings().build();
    +    resetQueuedResourceOperationSettings =
    +        settingsBuilder.resetQueuedResourceOperationSettings().build();
         generateServiceIdentitySettings = settingsBuilder.generateServiceIdentitySettings().build();
         listAcceleratorTypesSettings = settingsBuilder.listAcceleratorTypesSettings().build();
         getAcceleratorTypeSettings = settingsBuilder.getAcceleratorTypeSettings().build();
    @@ -700,6 +841,28 @@ public static class Builder extends StubSettings.Builder updateNodeSettings;
         private final OperationCallSettings.Builder
             updateNodeOperationSettings;
    +    private final PagedCallSettings.Builder<
    +            ListQueuedResourcesRequest,
    +            ListQueuedResourcesResponse,
    +            ListQueuedResourcesPagedResponse>
    +        listQueuedResourcesSettings;
    +    private final UnaryCallSettings.Builder
    +        getQueuedResourceSettings;
    +    private final UnaryCallSettings.Builder
    +        createQueuedResourceSettings;
    +    private final OperationCallSettings.Builder<
    +            CreateQueuedResourceRequest, QueuedResource, OperationMetadata>
    +        createQueuedResourceOperationSettings;
    +    private final UnaryCallSettings.Builder
    +        deleteQueuedResourceSettings;
    +    private final OperationCallSettings.Builder<
    +            DeleteQueuedResourceRequest, Empty, OperationMetadata>
    +        deleteQueuedResourceOperationSettings;
    +    private final UnaryCallSettings.Builder
    +        resetQueuedResourceSettings;
    +    private final OperationCallSettings.Builder<
    +            ResetQueuedResourceRequest, QueuedResource, OperationMetadata>
    +        resetQueuedResourceOperationSettings;
         private final UnaryCallSettings.Builder<
                 GenerateServiceIdentityRequest, GenerateServiceIdentityResponse>
             generateServiceIdentitySettings;
    @@ -769,6 +932,15 @@ protected Builder(ClientContext clientContext) {
           startNodeOperationSettings = OperationCallSettings.newBuilder();
           updateNodeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
           updateNodeOperationSettings = OperationCallSettings.newBuilder();
    +      listQueuedResourcesSettings =
    +          PagedCallSettings.newBuilder(LIST_QUEUED_RESOURCES_PAGE_STR_FACT);
    +      getQueuedResourceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
    +      createQueuedResourceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
    +      createQueuedResourceOperationSettings = OperationCallSettings.newBuilder();
    +      deleteQueuedResourceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
    +      deleteQueuedResourceOperationSettings = OperationCallSettings.newBuilder();
    +      resetQueuedResourceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
    +      resetQueuedResourceOperationSettings = OperationCallSettings.newBuilder();
           generateServiceIdentitySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
           listAcceleratorTypesSettings =
               PagedCallSettings.newBuilder(LIST_ACCELERATOR_TYPES_PAGE_STR_FACT);
    @@ -789,6 +961,11 @@ protected Builder(ClientContext clientContext) {
                   stopNodeSettings,
                   startNodeSettings,
                   updateNodeSettings,
    +              listQueuedResourcesSettings,
    +              getQueuedResourceSettings,
    +              createQueuedResourceSettings,
    +              deleteQueuedResourceSettings,
    +              resetQueuedResourceSettings,
                   generateServiceIdentitySettings,
                   listAcceleratorTypesSettings,
                   getAcceleratorTypeSettings,
    @@ -815,6 +992,17 @@ protected Builder(TpuStubSettings settings) {
           startNodeOperationSettings = settings.startNodeOperationSettings.toBuilder();
           updateNodeSettings = settings.updateNodeSettings.toBuilder();
           updateNodeOperationSettings = settings.updateNodeOperationSettings.toBuilder();
    +      listQueuedResourcesSettings = settings.listQueuedResourcesSettings.toBuilder();
    +      getQueuedResourceSettings = settings.getQueuedResourceSettings.toBuilder();
    +      createQueuedResourceSettings = settings.createQueuedResourceSettings.toBuilder();
    +      createQueuedResourceOperationSettings =
    +          settings.createQueuedResourceOperationSettings.toBuilder();
    +      deleteQueuedResourceSettings = settings.deleteQueuedResourceSettings.toBuilder();
    +      deleteQueuedResourceOperationSettings =
    +          settings.deleteQueuedResourceOperationSettings.toBuilder();
    +      resetQueuedResourceSettings = settings.resetQueuedResourceSettings.toBuilder();
    +      resetQueuedResourceOperationSettings =
    +          settings.resetQueuedResourceOperationSettings.toBuilder();
           generateServiceIdentitySettings = settings.generateServiceIdentitySettings.toBuilder();
           listAcceleratorTypesSettings = settings.listAcceleratorTypesSettings.toBuilder();
           getAcceleratorTypeSettings = settings.getAcceleratorTypeSettings.toBuilder();
    @@ -833,6 +1021,11 @@ protected Builder(TpuStubSettings settings) {
                   stopNodeSettings,
                   startNodeSettings,
                   updateNodeSettings,
    +              listQueuedResourcesSettings,
    +              getQueuedResourceSettings,
    +              createQueuedResourceSettings,
    +              deleteQueuedResourceSettings,
    +              resetQueuedResourceSettings,
                   generateServiceIdentitySettings,
                   listAcceleratorTypesSettings,
                   getAcceleratorTypeSettings,
    @@ -903,6 +1096,31 @@ 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
    +          .listQueuedResourcesSettings()
    +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
    +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
    +
    +      builder
    +          .getQueuedResourceSettings()
    +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
    +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
    +
    +      builder
    +          .createQueuedResourceSettings()
    +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
    +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
    +
    +      builder
    +          .deleteQueuedResourceSettings()
    +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
    +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
    +
    +      builder
    +          .resetQueuedResourceSettings()
    +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
    +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
    +
           builder
               .generateServiceIdentitySettings()
               .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
    @@ -1054,6 +1272,78 @@ private static Builder initDefaults(Builder builder) {
                           .setTotalTimeoutDuration(Duration.ofMillis(300000L))
                           .build()));
     
    +      builder
    +          .createQueuedResourceOperationSettings()
    +          .setInitialCallSettings(
    +              UnaryCallSettings
    +                  .newUnaryCallSettingsBuilder()
    +                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
    +                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"))
    +                  .build())
    +          .setResponseTransformer(
    +              ProtoOperationTransformers.ResponseTransformer.create(QueuedResource.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
    +          .deleteQueuedResourceOperationSettings()
    +          .setInitialCallSettings(
    +              UnaryCallSettings
    +                  .newUnaryCallSettingsBuilder()
    +                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
    +                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"))
    +                  .build())
    +          .setResponseTransformer(
    +              ProtoOperationTransformers.ResponseTransformer.create(Empty.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
    +          .resetQueuedResourceOperationSettings()
    +          .setInitialCallSettings(
    +              UnaryCallSettings
    +                  .newUnaryCallSettingsBuilder()
    +                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
    +                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"))
    +                  .build())
    +          .setResponseTransformer(
    +              ProtoOperationTransformers.ResponseTransformer.create(QueuedResource.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;
         }
     
    @@ -1138,6 +1428,59 @@ public UnaryCallSettings.Builder updateNodeSetting
           return updateNodeOperationSettings;
         }
     
    +    /** Returns the builder for the settings used for calls to listQueuedResources. */
    +    public PagedCallSettings.Builder<
    +            ListQueuedResourcesRequest,
    +            ListQueuedResourcesResponse,
    +            ListQueuedResourcesPagedResponse>
    +        listQueuedResourcesSettings() {
    +      return listQueuedResourcesSettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to getQueuedResource. */
    +    public UnaryCallSettings.Builder
    +        getQueuedResourceSettings() {
    +      return getQueuedResourceSettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to createQueuedResource. */
    +    public UnaryCallSettings.Builder
    +        createQueuedResourceSettings() {
    +      return createQueuedResourceSettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to createQueuedResource. */
    +    public OperationCallSettings.Builder<
    +            CreateQueuedResourceRequest, QueuedResource, OperationMetadata>
    +        createQueuedResourceOperationSettings() {
    +      return createQueuedResourceOperationSettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to deleteQueuedResource. */
    +    public UnaryCallSettings.Builder
    +        deleteQueuedResourceSettings() {
    +      return deleteQueuedResourceSettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to deleteQueuedResource. */
    +    public OperationCallSettings.Builder
    +        deleteQueuedResourceOperationSettings() {
    +      return deleteQueuedResourceOperationSettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to resetQueuedResource. */
    +    public UnaryCallSettings.Builder
    +        resetQueuedResourceSettings() {
    +      return resetQueuedResourceSettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to resetQueuedResource. */
    +    public OperationCallSettings.Builder<
    +            ResetQueuedResourceRequest, QueuedResource, OperationMetadata>
    +        resetQueuedResourceOperationSettings() {
    +      return resetQueuedResourceOperationSettings;
    +    }
    +
         /** Returns the builder for the settings used for calls to generateServiceIdentity. */
         public UnaryCallSettings.Builder<
                 GenerateServiceIdentityRequest, GenerateServiceIdentityResponse>
    diff --git a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/TpuClient.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/TpuClient.java
    index 59f189b1199c..7748b0ef23c9 100644
    --- a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/TpuClient.java
    +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/TpuClient.java
    @@ -203,6 +203,21 @@
      *       
      *    
      *    
    + *      

    PerformMaintenance + *

    Perform manual maintenance on a node. + * + *

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

    + *
      + *
    • performMaintenanceAsync(PerformMaintenanceRequest request) + *

    + *

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

    + *
      + *
    • performMaintenanceOperationCallable() + *

    • performMaintenanceCallable() + *

    + * + * + * *

    ListQueuedResources *

    Lists queued resources. * @@ -302,6 +317,21 @@ * * * + *

    PerformMaintenanceQueuedResource + *

    Perform manual maintenance on specific nodes of a QueuedResource. + * + *

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

    + *
      + *
    • performMaintenanceQueuedResourceAsync(PerformMaintenanceQueuedResourceRequest request) + *

    + *

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

    + *
      + *
    • performMaintenanceQueuedResourceOperationCallable() + *

    • performMaintenanceQueuedResourceCallable() + *

    + * + * + * *

    GenerateServiceIdentity *

    Generates the Cloud TPU service identity for the project. * @@ -408,6 +438,21 @@ * * * + *

    ListReservations + *

    Retrieves the reservations for the given project in the given location. + * + *

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

    + *
      + *
    • listReservations(ListReservationsRequest request) + *

    + *

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

    + *
      + *
    • listReservationsPagedCallable() + *

    • listReservationsCallable() + *

    + * + * + * *

    SimulateMaintenanceEvent *

    Simulates a maintenance event. * @@ -1405,6 +1450,91 @@ public final UnaryCallable updateNodeCallable() { return stub.updateNodeCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Perform manual maintenance on a node. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (TpuClient tpuClient = TpuClient.create()) {
    +   *   PerformMaintenanceRequest request =
    +   *       PerformMaintenanceRequest.newBuilder()
    +   *           .setName(NodeName.of("[PROJECT]", "[LOCATION]", "[NODE]").toString())
    +   *           .build();
    +   *   Node response = tpuClient.performMaintenanceAsync(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 performMaintenanceAsync( + PerformMaintenanceRequest request) { + return performMaintenanceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Perform manual maintenance on a node. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (TpuClient tpuClient = TpuClient.create()) {
    +   *   PerformMaintenanceRequest request =
    +   *       PerformMaintenanceRequest.newBuilder()
    +   *           .setName(NodeName.of("[PROJECT]", "[LOCATION]", "[NODE]").toString())
    +   *           .build();
    +   *   OperationFuture future =
    +   *       tpuClient.performMaintenanceOperationCallable().futureCall(request);
    +   *   // Do something.
    +   *   Node response = future.get();
    +   * }
    +   * }
    + */ + public final OperationCallable + performMaintenanceOperationCallable() { + return stub.performMaintenanceOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Perform manual maintenance on a node. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (TpuClient tpuClient = TpuClient.create()) {
    +   *   PerformMaintenanceRequest request =
    +   *       PerformMaintenanceRequest.newBuilder()
    +   *           .setName(NodeName.of("[PROJECT]", "[LOCATION]", "[NODE]").toString())
    +   *           .build();
    +   *   ApiFuture future = tpuClient.performMaintenanceCallable().futureCall(request);
    +   *   // Do something.
    +   *   Operation response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable performMaintenanceCallable() { + return stub.performMaintenanceCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists queued resources. @@ -2159,6 +2289,100 @@ public final UnaryCallable resetQueuedRes return stub.resetQueuedResourceCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Perform manual maintenance on specific nodes of a QueuedResource. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (TpuClient tpuClient = TpuClient.create()) {
    +   *   PerformMaintenanceQueuedResourceRequest request =
    +   *       PerformMaintenanceQueuedResourceRequest.newBuilder()
    +   *           .setName(
    +   *               QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString())
    +   *           .addAllNodeNames(new ArrayList())
    +   *           .build();
    +   *   QueuedResource response = tpuClient.performMaintenanceQueuedResourceAsync(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 + performMaintenanceQueuedResourceAsync(PerformMaintenanceQueuedResourceRequest request) { + return performMaintenanceQueuedResourceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Perform manual maintenance on specific nodes of a QueuedResource. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (TpuClient tpuClient = TpuClient.create()) {
    +   *   PerformMaintenanceQueuedResourceRequest request =
    +   *       PerformMaintenanceQueuedResourceRequest.newBuilder()
    +   *           .setName(
    +   *               QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString())
    +   *           .addAllNodeNames(new ArrayList())
    +   *           .build();
    +   *   OperationFuture future =
    +   *       tpuClient.performMaintenanceQueuedResourceOperationCallable().futureCall(request);
    +   *   // Do something.
    +   *   QueuedResource response = future.get();
    +   * }
    +   * }
    + */ + public final OperationCallable< + PerformMaintenanceQueuedResourceRequest, QueuedResource, OperationMetadata> + performMaintenanceQueuedResourceOperationCallable() { + return stub.performMaintenanceQueuedResourceOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Perform manual maintenance on specific nodes of a QueuedResource. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (TpuClient tpuClient = TpuClient.create()) {
    +   *   PerformMaintenanceQueuedResourceRequest request =
    +   *       PerformMaintenanceQueuedResourceRequest.newBuilder()
    +   *           .setName(
    +   *               QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString())
    +   *           .addAllNodeNames(new ArrayList())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       tpuClient.performMaintenanceQueuedResourceCallable().futureCall(request);
    +   *   // Do something.
    +   *   Operation response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable + performMaintenanceQueuedResourceCallable() { + return stub.performMaintenanceQueuedResourceCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Generates the Cloud TPU service identity for the project. @@ -2855,6 +3079,109 @@ public final GetGuestAttributesResponse getGuestAttributes(GetGuestAttributesReq return stub.getGuestAttributesCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the reservations for the given project in the given 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 (TpuClient tpuClient = TpuClient.create()) {
    +   *   ListReservationsRequest request =
    +   *       ListReservationsRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   for (Reservation element : tpuClient.listReservations(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 ListReservationsPagedResponse listReservations(ListReservationsRequest request) { + return listReservationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the reservations for the given project in the given 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 (TpuClient tpuClient = TpuClient.create()) {
    +   *   ListReservationsRequest request =
    +   *       ListReservationsRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   ApiFuture future = tpuClient.listReservationsPagedCallable().futureCall(request);
    +   *   // Do something.
    +   *   for (Reservation element : future.get().iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable + listReservationsPagedCallable() { + return stub.listReservationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves the reservations for the given project in the given 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 (TpuClient tpuClient = TpuClient.create()) {
    +   *   ListReservationsRequest request =
    +   *       ListReservationsRequest.newBuilder()
    +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   while (true) {
    +   *     ListReservationsResponse response = tpuClient.listReservationsCallable().call(request);
    +   *     for (Reservation element : response.getReservationsList()) {
    +   *       // doThingsWith(element);
    +   *     }
    +   *     String nextPageToken = response.getNextPageToken();
    +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
    +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
    +   *     } else {
    +   *       break;
    +   *     }
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable + listReservationsCallable() { + return stub.listReservationsCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Simulates a maintenance event. @@ -3446,6 +3773,83 @@ protected ListRuntimeVersionsFixedSizeCollection createCollection( } } + public static class ListReservationsPagedResponse + extends AbstractPagedListResponse< + ListReservationsRequest, + ListReservationsResponse, + Reservation, + ListReservationsPage, + ListReservationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListReservationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListReservationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListReservationsPagedResponse(ListReservationsPage page) { + super(page, ListReservationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListReservationsPage + extends AbstractPage< + ListReservationsRequest, ListReservationsResponse, Reservation, ListReservationsPage> { + + private ListReservationsPage( + PageContext context, + ListReservationsResponse response) { + super(context, response); + } + + private static ListReservationsPage createEmptyPage() { + return new ListReservationsPage(null, null); + } + + @Override + protected ListReservationsPage createPage( + PageContext context, + ListReservationsResponse response) { + return new ListReservationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListReservationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListReservationsRequest, + ListReservationsResponse, + Reservation, + ListReservationsPage, + ListReservationsFixedSizeCollection> { + + private ListReservationsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListReservationsFixedSizeCollection createEmptyCollection() { + return new ListReservationsFixedSizeCollection(null, 0); + } + + @Override + protected ListReservationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListReservationsFixedSizeCollection(pages, collectionSize); + } + } + public static class ListLocationsPagedResponse extends AbstractPagedListResponse< ListLocationsRequest, diff --git a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/TpuSettings.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/TpuSettings.java index f17acef349d7..065665d2f87d 100644 --- a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/TpuSettings.java +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/TpuSettings.java @@ -20,6 +20,7 @@ import static com.google.cloud.tpu.v2alpha1.TpuClient.ListLocationsPagedResponse; import static com.google.cloud.tpu.v2alpha1.TpuClient.ListNodesPagedResponse; import static com.google.cloud.tpu.v2alpha1.TpuClient.ListQueuedResourcesPagedResponse; +import static com.google.cloud.tpu.v2alpha1.TpuClient.ListReservationsPagedResponse; import static com.google.cloud.tpu.v2alpha1.TpuClient.ListRuntimeVersionsPagedResponse; import com.google.api.core.ApiFunction; @@ -189,6 +190,17 @@ public UnaryCallSettings updateNodeSettings() { return ((TpuStubSettings) getStubSettings()).updateNodeOperationSettings(); } + /** Returns the object with the settings used for calls to performMaintenance. */ + public UnaryCallSettings performMaintenanceSettings() { + return ((TpuStubSettings) getStubSettings()).performMaintenanceSettings(); + } + + /** Returns the object with the settings used for calls to performMaintenance. */ + public OperationCallSettings + performMaintenanceOperationSettings() { + return ((TpuStubSettings) getStubSettings()).performMaintenanceOperationSettings(); + } + /** Returns the object with the settings used for calls to listQueuedResources. */ public PagedCallSettings< ListQueuedResourcesRequest, ListQueuedResourcesResponse, ListQueuedResourcesPagedResponse> @@ -234,6 +246,20 @@ public UnaryCallSettings resetQueuedResou return ((TpuStubSettings) getStubSettings()).resetQueuedResourceOperationSettings(); } + /** Returns the object with the settings used for calls to performMaintenanceQueuedResource. */ + public UnaryCallSettings + performMaintenanceQueuedResourceSettings() { + return ((TpuStubSettings) getStubSettings()).performMaintenanceQueuedResourceSettings(); + } + + /** Returns the object with the settings used for calls to performMaintenanceQueuedResource. */ + public OperationCallSettings< + PerformMaintenanceQueuedResourceRequest, QueuedResource, OperationMetadata> + performMaintenanceQueuedResourceOperationSettings() { + return ((TpuStubSettings) getStubSettings()) + .performMaintenanceQueuedResourceOperationSettings(); + } + /** Returns the object with the settings used for calls to generateServiceIdentity. */ public UnaryCallSettings generateServiceIdentitySettings() { @@ -273,6 +299,13 @@ public UnaryCallSettings getRuntimeVer return ((TpuStubSettings) getStubSettings()).getGuestAttributesSettings(); } + /** Returns the object with the settings used for calls to listReservations. */ + public PagedCallSettings< + ListReservationsRequest, ListReservationsResponse, ListReservationsPagedResponse> + listReservationsSettings() { + return ((TpuStubSettings) getStubSettings()).listReservationsSettings(); + } + /** Returns the object with the settings used for calls to simulateMaintenanceEvent. */ public UnaryCallSettings simulateMaintenanceEventSettings() { @@ -457,6 +490,18 @@ public UnaryCallSettings.Builder updateNodeSetting return getStubSettingsBuilder().updateNodeOperationSettings(); } + /** Returns the builder for the settings used for calls to performMaintenance. */ + public UnaryCallSettings.Builder + performMaintenanceSettings() { + return getStubSettingsBuilder().performMaintenanceSettings(); + } + + /** Returns the builder for the settings used for calls to performMaintenance. */ + public OperationCallSettings.Builder + performMaintenanceOperationSettings() { + return getStubSettingsBuilder().performMaintenanceOperationSettings(); + } + /** Returns the builder for the settings used for calls to listQueuedResources. */ public PagedCallSettings.Builder< ListQueuedResourcesRequest, @@ -511,6 +556,19 @@ public UnaryCallSettings.Builder updateNodeSetting return getStubSettingsBuilder().resetQueuedResourceOperationSettings(); } + /** Returns the builder for the settings used for calls to performMaintenanceQueuedResource. */ + public UnaryCallSettings.Builder + performMaintenanceQueuedResourceSettings() { + return getStubSettingsBuilder().performMaintenanceQueuedResourceSettings(); + } + + /** Returns the builder for the settings used for calls to performMaintenanceQueuedResource. */ + public OperationCallSettings.Builder< + PerformMaintenanceQueuedResourceRequest, QueuedResource, OperationMetadata> + performMaintenanceQueuedResourceOperationSettings() { + return getStubSettingsBuilder().performMaintenanceQueuedResourceOperationSettings(); + } + /** Returns the builder for the settings used for calls to generateServiceIdentity. */ public UnaryCallSettings.Builder< GenerateServiceIdentityRequest, GenerateServiceIdentityResponse> @@ -554,6 +612,13 @@ public UnaryCallSettings.Builder updateNodeSetting return getStubSettingsBuilder().getGuestAttributesSettings(); } + /** Returns the builder for the settings used for calls to listReservations. */ + public PagedCallSettings.Builder< + ListReservationsRequest, ListReservationsResponse, ListReservationsPagedResponse> + listReservationsSettings() { + return getStubSettingsBuilder().listReservationsSettings(); + } + /** Returns the builder for the settings used for calls to simulateMaintenanceEvent. */ public UnaryCallSettings.Builder simulateMaintenanceEventSettings() { diff --git a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/gapic_metadata.json b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/gapic_metadata.json index f0df61cdf037..346c752f22a8 100644 --- a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/gapic_metadata.json +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/gapic_metadata.json @@ -55,9 +55,18 @@ "ListQueuedResources": { "methods": ["listQueuedResources", "listQueuedResources", "listQueuedResources", "listQueuedResourcesPagedCallable", "listQueuedResourcesCallable"] }, + "ListReservations": { + "methods": ["listReservations", "listReservationsPagedCallable", "listReservationsCallable"] + }, "ListRuntimeVersions": { "methods": ["listRuntimeVersions", "listRuntimeVersions", "listRuntimeVersions", "listRuntimeVersionsPagedCallable", "listRuntimeVersionsCallable"] }, + "PerformMaintenance": { + "methods": ["performMaintenanceAsync", "performMaintenanceOperationCallable", "performMaintenanceCallable"] + }, + "PerformMaintenanceQueuedResource": { + "methods": ["performMaintenanceQueuedResourceAsync", "performMaintenanceQueuedResourceOperationCallable", "performMaintenanceQueuedResourceCallable"] + }, "ResetQueuedResource": { "methods": ["resetQueuedResourceAsync", "resetQueuedResourceAsync", "resetQueuedResourceAsync", "resetQueuedResourceOperationCallable", "resetQueuedResourceCallable"] }, diff --git a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/GrpcTpuStub.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/GrpcTpuStub.java index 10cbdff67208..e4ed3d124607 100644 --- a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/GrpcTpuStub.java +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/GrpcTpuStub.java @@ -20,6 +20,7 @@ import static com.google.cloud.tpu.v2alpha1.TpuClient.ListLocationsPagedResponse; import static com.google.cloud.tpu.v2alpha1.TpuClient.ListNodesPagedResponse; import static com.google.cloud.tpu.v2alpha1.TpuClient.ListQueuedResourcesPagedResponse; +import static com.google.cloud.tpu.v2alpha1.TpuClient.ListReservationsPagedResponse; import static com.google.cloud.tpu.v2alpha1.TpuClient.ListRuntimeVersionsPagedResponse; import com.google.api.core.BetaApi; @@ -54,10 +55,14 @@ import com.google.cloud.tpu.v2alpha1.ListNodesResponse; import com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest; import com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse; +import com.google.cloud.tpu.v2alpha1.ListReservationsRequest; +import com.google.cloud.tpu.v2alpha1.ListReservationsResponse; import com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest; import com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse; import com.google.cloud.tpu.v2alpha1.Node; import com.google.cloud.tpu.v2alpha1.OperationMetadata; +import com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest; +import com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest; import com.google.cloud.tpu.v2alpha1.QueuedResource; import com.google.cloud.tpu.v2alpha1.ResetQueuedResourceRequest; import com.google.cloud.tpu.v2alpha1.RuntimeVersion; @@ -140,6 +145,16 @@ public class GrpcTpuStub extends TpuStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + performMaintenanceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.tpu.v2alpha1.Tpu/PerformMaintenance") + .setRequestMarshaller( + ProtoUtils.marshaller(PerformMaintenanceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor listQueuedResourcesMethodDescriptor = MethodDescriptor.newBuilder() @@ -191,6 +206,17 @@ public class GrpcTpuStub extends TpuStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + performMaintenanceQueuedResourceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.tpu.v2alpha1.Tpu/PerformMaintenanceQueuedResource") + .setRequestMarshaller( + ProtoUtils.marshaller( + PerformMaintenanceQueuedResourceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor< GenerateServiceIdentityRequest, GenerateServiceIdentityResponse> generateServiceIdentityMethodDescriptor = @@ -257,6 +283,17 @@ public class GrpcTpuStub extends TpuStub { ProtoUtils.marshaller(GetGuestAttributesResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor + listReservationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.tpu.v2alpha1.Tpu/ListReservations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListReservationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListReservationsResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor simulateMaintenanceEventMethodDescriptor = MethodDescriptor.newBuilder() @@ -304,6 +341,9 @@ public class GrpcTpuStub extends TpuStub { private final UnaryCallable updateNodeCallable; private final OperationCallable updateNodeOperationCallable; + private final UnaryCallable performMaintenanceCallable; + private final OperationCallable + performMaintenanceOperationCallable; private final UnaryCallable listQueuedResourcesCallable; private final UnaryCallable @@ -318,6 +358,11 @@ public class GrpcTpuStub extends TpuStub { private final UnaryCallable resetQueuedResourceCallable; private final OperationCallable resetQueuedResourceOperationCallable; + private final UnaryCallable + performMaintenanceQueuedResourceCallable; + private final OperationCallable< + PerformMaintenanceQueuedResourceRequest, QueuedResource, OperationMetadata> + performMaintenanceQueuedResourceOperationCallable; private final UnaryCallable generateServiceIdentityCallable; private final UnaryCallable @@ -333,6 +378,10 @@ public class GrpcTpuStub extends TpuStub { private final UnaryCallable getRuntimeVersionCallable; private final UnaryCallable getGuestAttributesCallable; + private final UnaryCallable + listReservationsCallable; + private final UnaryCallable + listReservationsPagedCallable; private final UnaryCallable simulateMaintenanceEventCallable; private final OperationCallable @@ -449,6 +498,16 @@ protected GrpcTpuStub( return builder.build(); }) .build(); + GrpcCallSettings performMaintenanceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(performMaintenanceMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings listQueuedResourcesTransportSettings = GrpcCallSettings.newBuilder() @@ -500,6 +559,17 @@ protected GrpcTpuStub( return builder.build(); }) .build(); + GrpcCallSettings + performMaintenanceQueuedResourceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(performMaintenanceQueuedResourceMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings generateServiceIdentityTransportSettings = GrpcCallSettings @@ -566,6 +636,17 @@ protected GrpcTpuStub( return builder.build(); }) .build(); + GrpcCallSettings + listReservationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listReservationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); GrpcCallSettings simulateMaintenanceEventTransportSettings = GrpcCallSettings.newBuilder() @@ -652,6 +733,17 @@ protected GrpcTpuStub( settings.updateNodeOperationSettings(), clientContext, operationsStub); + this.performMaintenanceCallable = + callableFactory.createUnaryCallable( + performMaintenanceTransportSettings, + settings.performMaintenanceSettings(), + clientContext); + this.performMaintenanceOperationCallable = + callableFactory.createOperationCallable( + performMaintenanceTransportSettings, + settings.performMaintenanceOperationSettings(), + clientContext, + operationsStub); this.listQueuedResourcesCallable = callableFactory.createUnaryCallable( listQueuedResourcesTransportSettings, @@ -700,6 +792,17 @@ protected GrpcTpuStub( settings.resetQueuedResourceOperationSettings(), clientContext, operationsStub); + this.performMaintenanceQueuedResourceCallable = + callableFactory.createUnaryCallable( + performMaintenanceQueuedResourceTransportSettings, + settings.performMaintenanceQueuedResourceSettings(), + clientContext); + this.performMaintenanceQueuedResourceOperationCallable = + callableFactory.createOperationCallable( + performMaintenanceQueuedResourceTransportSettings, + settings.performMaintenanceQueuedResourceOperationSettings(), + clientContext, + operationsStub); this.generateServiceIdentityCallable = callableFactory.createUnaryCallable( generateServiceIdentityTransportSettings, @@ -740,6 +843,12 @@ protected GrpcTpuStub( getGuestAttributesTransportSettings, settings.getGuestAttributesSettings(), clientContext); + this.listReservationsCallable = + callableFactory.createUnaryCallable( + listReservationsTransportSettings, settings.listReservationsSettings(), clientContext); + this.listReservationsPagedCallable = + callableFactory.createPagedCallable( + listReservationsTransportSettings, settings.listReservationsSettings(), clientContext); this.simulateMaintenanceEventCallable = callableFactory.createUnaryCallable( simulateMaintenanceEventTransportSettings, @@ -837,6 +946,17 @@ public UnaryCallable updateNodeCallable() { return updateNodeOperationCallable; } + @Override + public UnaryCallable performMaintenanceCallable() { + return performMaintenanceCallable; + } + + @Override + public OperationCallable + performMaintenanceOperationCallable() { + return performMaintenanceOperationCallable; + } + @Override public UnaryCallable listQueuedResourcesCallable() { @@ -887,6 +1007,19 @@ public UnaryCallable resetQueuedResourceC return resetQueuedResourceOperationCallable; } + @Override + public UnaryCallable + performMaintenanceQueuedResourceCallable() { + return performMaintenanceQueuedResourceCallable; + } + + @Override + public OperationCallable< + PerformMaintenanceQueuedResourceRequest, QueuedResource, OperationMetadata> + performMaintenanceQueuedResourceOperationCallable() { + return performMaintenanceQueuedResourceOperationCallable; + } + @Override public UnaryCallable generateServiceIdentityCallable() { @@ -933,6 +1066,18 @@ public UnaryCallable getRuntimeVersion return getGuestAttributesCallable; } + @Override + public UnaryCallable + listReservationsCallable() { + return listReservationsCallable; + } + + @Override + public UnaryCallable + listReservationsPagedCallable() { + return listReservationsPagedCallable; + } + @Override public UnaryCallable simulateMaintenanceEventCallable() { diff --git a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/TpuStub.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/TpuStub.java index 6c1f49c9426a..ec99d478184b 100644 --- a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/TpuStub.java +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/TpuStub.java @@ -20,6 +20,7 @@ import static com.google.cloud.tpu.v2alpha1.TpuClient.ListLocationsPagedResponse; import static com.google.cloud.tpu.v2alpha1.TpuClient.ListNodesPagedResponse; import static com.google.cloud.tpu.v2alpha1.TpuClient.ListQueuedResourcesPagedResponse; +import static com.google.cloud.tpu.v2alpha1.TpuClient.ListReservationsPagedResponse; import static com.google.cloud.tpu.v2alpha1.TpuClient.ListRuntimeVersionsPagedResponse; import com.google.api.core.BetaApi; @@ -49,10 +50,14 @@ import com.google.cloud.tpu.v2alpha1.ListNodesResponse; import com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest; import com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse; +import com.google.cloud.tpu.v2alpha1.ListReservationsRequest; +import com.google.cloud.tpu.v2alpha1.ListReservationsResponse; import com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest; import com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse; import com.google.cloud.tpu.v2alpha1.Node; import com.google.cloud.tpu.v2alpha1.OperationMetadata; +import com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest; +import com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest; import com.google.cloud.tpu.v2alpha1.QueuedResource; import com.google.cloud.tpu.v2alpha1.ResetQueuedResourceRequest; import com.google.cloud.tpu.v2alpha1.RuntimeVersion; @@ -134,6 +139,16 @@ public UnaryCallable updateNodeCallable() { throw new UnsupportedOperationException("Not implemented: updateNodeCallable()"); } + public OperationCallable + performMaintenanceOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: performMaintenanceOperationCallable()"); + } + + public UnaryCallable performMaintenanceCallable() { + throw new UnsupportedOperationException("Not implemented: performMaintenanceCallable()"); + } + public UnaryCallable listQueuedResourcesPagedCallable() { throw new UnsupportedOperationException("Not implemented: listQueuedResourcesPagedCallable()"); @@ -178,6 +193,19 @@ public UnaryCallable resetQueuedResourceC throw new UnsupportedOperationException("Not implemented: resetQueuedResourceCallable()"); } + public OperationCallable< + PerformMaintenanceQueuedResourceRequest, QueuedResource, OperationMetadata> + performMaintenanceQueuedResourceOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: performMaintenanceQueuedResourceOperationCallable()"); + } + + public UnaryCallable + performMaintenanceQueuedResourceCallable() { + throw new UnsupportedOperationException( + "Not implemented: performMaintenanceQueuedResourceCallable()"); + } + public UnaryCallable generateServiceIdentityCallable() { throw new UnsupportedOperationException("Not implemented: generateServiceIdentityCallable()"); @@ -216,6 +244,16 @@ public UnaryCallable getRuntimeVersion throw new UnsupportedOperationException("Not implemented: getGuestAttributesCallable()"); } + public UnaryCallable + listReservationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listReservationsPagedCallable()"); + } + + public UnaryCallable + listReservationsCallable() { + throw new UnsupportedOperationException("Not implemented: listReservationsCallable()"); + } + public OperationCallable simulateMaintenanceEventOperationCallable() { throw new UnsupportedOperationException( diff --git a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/TpuStubSettings.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/TpuStubSettings.java index 53f4134ab9a4..5aac8b643ee9 100644 --- a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/TpuStubSettings.java +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/TpuStubSettings.java @@ -20,6 +20,7 @@ import static com.google.cloud.tpu.v2alpha1.TpuClient.ListLocationsPagedResponse; import static com.google.cloud.tpu.v2alpha1.TpuClient.ListNodesPagedResponse; import static com.google.cloud.tpu.v2alpha1.TpuClient.ListQueuedResourcesPagedResponse; +import static com.google.cloud.tpu.v2alpha1.TpuClient.ListReservationsPagedResponse; import static com.google.cloud.tpu.v2alpha1.TpuClient.ListRuntimeVersionsPagedResponse; import com.google.api.core.ApiFunction; @@ -72,11 +73,16 @@ import com.google.cloud.tpu.v2alpha1.ListNodesResponse; import com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest; import com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse; +import com.google.cloud.tpu.v2alpha1.ListReservationsRequest; +import com.google.cloud.tpu.v2alpha1.ListReservationsResponse; import com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest; import com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse; import com.google.cloud.tpu.v2alpha1.Node; import com.google.cloud.tpu.v2alpha1.OperationMetadata; +import com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest; +import com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest; import com.google.cloud.tpu.v2alpha1.QueuedResource; +import com.google.cloud.tpu.v2alpha1.Reservation; import com.google.cloud.tpu.v2alpha1.ResetQueuedResourceRequest; import com.google.cloud.tpu.v2alpha1.RuntimeVersion; import com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest; @@ -193,6 +199,9 @@ public class TpuStubSettings extends StubSettings { private final UnaryCallSettings updateNodeSettings; private final OperationCallSettings updateNodeOperationSettings; + private final UnaryCallSettings performMaintenanceSettings; + private final OperationCallSettings + performMaintenanceOperationSettings; private final PagedCallSettings< ListQueuedResourcesRequest, ListQueuedResourcesResponse, ListQueuedResourcesPagedResponse> listQueuedResourcesSettings; @@ -212,6 +221,11 @@ public class TpuStubSettings extends StubSettings { resetQueuedResourceSettings; private final OperationCallSettings resetQueuedResourceOperationSettings; + private final UnaryCallSettings + performMaintenanceQueuedResourceSettings; + private final OperationCallSettings< + PerformMaintenanceQueuedResourceRequest, QueuedResource, OperationMetadata> + performMaintenanceQueuedResourceOperationSettings; private final UnaryCallSettings generateServiceIdentitySettings; private final PagedCallSettings< @@ -228,6 +242,9 @@ public class TpuStubSettings extends StubSettings { getRuntimeVersionSettings; private final UnaryCallSettings getGuestAttributesSettings; + private final PagedCallSettings< + ListReservationsRequest, ListReservationsResponse, ListReservationsPagedResponse> + listReservationsSettings; private final UnaryCallSettings simulateMaintenanceEventSettings; private final OperationCallSettings @@ -386,6 +403,44 @@ public Iterable extractResources(ListRuntimeVersionsResponse pay } }; + private static final PagedListDescriptor< + ListReservationsRequest, ListReservationsResponse, Reservation> + LIST_RESERVATIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListReservationsRequest, ListReservationsResponse, Reservation>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListReservationsRequest injectToken( + ListReservationsRequest payload, String token) { + return ListReservationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListReservationsRequest injectPageSize( + ListReservationsRequest payload, int pageSize) { + return ListReservationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListReservationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListReservationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListReservationsResponse payload) { + return payload.getReservationsList(); + } + }; + private static final PagedListDescriptor LIST_LOCATIONS_PAGE_STR_DESC = new PagedListDescriptor() { @@ -503,6 +558,25 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListReservationsRequest, ListReservationsResponse, ListReservationsPagedResponse> + LIST_RESERVATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListReservationsRequest, ListReservationsResponse, ListReservationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListReservationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_RESERVATIONS_PAGE_STR_DESC, request, context); + return ListReservationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> LIST_LOCATIONS_PAGE_STR_FACT = @@ -586,6 +660,17 @@ public UnaryCallSettings updateNodeSettings() { return updateNodeOperationSettings; } + /** Returns the object with the settings used for calls to performMaintenance. */ + public UnaryCallSettings performMaintenanceSettings() { + return performMaintenanceSettings; + } + + /** Returns the object with the settings used for calls to performMaintenance. */ + public OperationCallSettings + performMaintenanceOperationSettings() { + return performMaintenanceOperationSettings; + } + /** Returns the object with the settings used for calls to listQueuedResources. */ public PagedCallSettings< ListQueuedResourcesRequest, ListQueuedResourcesResponse, ListQueuedResourcesPagedResponse> @@ -631,6 +716,19 @@ public UnaryCallSettings resetQueuedResou return resetQueuedResourceOperationSettings; } + /** Returns the object with the settings used for calls to performMaintenanceQueuedResource. */ + public UnaryCallSettings + performMaintenanceQueuedResourceSettings() { + return performMaintenanceQueuedResourceSettings; + } + + /** Returns the object with the settings used for calls to performMaintenanceQueuedResource. */ + public OperationCallSettings< + PerformMaintenanceQueuedResourceRequest, QueuedResource, OperationMetadata> + performMaintenanceQueuedResourceOperationSettings() { + return performMaintenanceQueuedResourceOperationSettings; + } + /** Returns the object with the settings used for calls to generateServiceIdentity. */ public UnaryCallSettings generateServiceIdentitySettings() { @@ -670,6 +768,13 @@ public UnaryCallSettings getRuntimeVer return getGuestAttributesSettings; } + /** Returns the object with the settings used for calls to listReservations. */ + public PagedCallSettings< + ListReservationsRequest, ListReservationsResponse, ListReservationsPagedResponse> + listReservationsSettings() { + return listReservationsSettings; + } + /** Returns the object with the settings used for calls to simulateMaintenanceEvent. */ public UnaryCallSettings simulateMaintenanceEventSettings() { @@ -785,6 +890,9 @@ protected TpuStubSettings(Builder settingsBuilder) throws IOException { startNodeOperationSettings = settingsBuilder.startNodeOperationSettings().build(); updateNodeSettings = settingsBuilder.updateNodeSettings().build(); updateNodeOperationSettings = settingsBuilder.updateNodeOperationSettings().build(); + performMaintenanceSettings = settingsBuilder.performMaintenanceSettings().build(); + performMaintenanceOperationSettings = + settingsBuilder.performMaintenanceOperationSettings().build(); listQueuedResourcesSettings = settingsBuilder.listQueuedResourcesSettings().build(); getQueuedResourceSettings = settingsBuilder.getQueuedResourceSettings().build(); createQueuedResourceSettings = settingsBuilder.createQueuedResourceSettings().build(); @@ -796,12 +904,17 @@ protected TpuStubSettings(Builder settingsBuilder) throws IOException { resetQueuedResourceSettings = settingsBuilder.resetQueuedResourceSettings().build(); resetQueuedResourceOperationSettings = settingsBuilder.resetQueuedResourceOperationSettings().build(); + performMaintenanceQueuedResourceSettings = + settingsBuilder.performMaintenanceQueuedResourceSettings().build(); + performMaintenanceQueuedResourceOperationSettings = + settingsBuilder.performMaintenanceQueuedResourceOperationSettings().build(); generateServiceIdentitySettings = settingsBuilder.generateServiceIdentitySettings().build(); listAcceleratorTypesSettings = settingsBuilder.listAcceleratorTypesSettings().build(); getAcceleratorTypeSettings = settingsBuilder.getAcceleratorTypeSettings().build(); listRuntimeVersionsSettings = settingsBuilder.listRuntimeVersionsSettings().build(); getRuntimeVersionSettings = settingsBuilder.getRuntimeVersionSettings().build(); getGuestAttributesSettings = settingsBuilder.getGuestAttributesSettings().build(); + listReservationsSettings = settingsBuilder.listReservationsSettings().build(); simulateMaintenanceEventSettings = settingsBuilder.simulateMaintenanceEventSettings().build(); simulateMaintenanceEventOperationSettings = settingsBuilder.simulateMaintenanceEventOperationSettings().build(); @@ -831,6 +944,10 @@ public static class Builder extends StubSettings.Builder updateNodeSettings; private final OperationCallSettings.Builder updateNodeOperationSettings; + private final UnaryCallSettings.Builder + performMaintenanceSettings; + private final OperationCallSettings.Builder + performMaintenanceOperationSettings; private final PagedCallSettings.Builder< ListQueuedResourcesRequest, ListQueuedResourcesResponse, @@ -853,6 +970,11 @@ public static class Builder extends StubSettings.Builder resetQueuedResourceOperationSettings; + private final UnaryCallSettings.Builder + performMaintenanceQueuedResourceSettings; + private final OperationCallSettings.Builder< + PerformMaintenanceQueuedResourceRequest, QueuedResource, OperationMetadata> + performMaintenanceQueuedResourceOperationSettings; private final UnaryCallSettings.Builder< GenerateServiceIdentityRequest, GenerateServiceIdentityResponse> generateServiceIdentitySettings; @@ -872,6 +994,9 @@ public static class Builder extends StubSettings.Builder getGuestAttributesSettings; + private final PagedCallSettings.Builder< + ListReservationsRequest, ListReservationsResponse, ListReservationsPagedResponse> + listReservationsSettings; private final UnaryCallSettings.Builder simulateMaintenanceEventSettings; private final OperationCallSettings.Builder< @@ -927,6 +1052,8 @@ protected Builder(ClientContext clientContext) { startNodeOperationSettings = OperationCallSettings.newBuilder(); updateNodeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateNodeOperationSettings = OperationCallSettings.newBuilder(); + performMaintenanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + performMaintenanceOperationSettings = OperationCallSettings.newBuilder(); listQueuedResourcesSettings = PagedCallSettings.newBuilder(LIST_QUEUED_RESOURCES_PAGE_STR_FACT); getQueuedResourceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -936,6 +1063,8 @@ protected Builder(ClientContext clientContext) { deleteQueuedResourceOperationSettings = OperationCallSettings.newBuilder(); resetQueuedResourceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); resetQueuedResourceOperationSettings = OperationCallSettings.newBuilder(); + performMaintenanceQueuedResourceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + performMaintenanceQueuedResourceOperationSettings = OperationCallSettings.newBuilder(); generateServiceIdentitySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listAcceleratorTypesSettings = PagedCallSettings.newBuilder(LIST_ACCELERATOR_TYPES_PAGE_STR_FACT); @@ -944,6 +1073,7 @@ protected Builder(ClientContext clientContext) { PagedCallSettings.newBuilder(LIST_RUNTIME_VERSIONS_PAGE_STR_FACT); getRuntimeVersionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getGuestAttributesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listReservationsSettings = PagedCallSettings.newBuilder(LIST_RESERVATIONS_PAGE_STR_FACT); simulateMaintenanceEventSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); simulateMaintenanceEventOperationSettings = OperationCallSettings.newBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); @@ -958,17 +1088,20 @@ protected Builder(ClientContext clientContext) { stopNodeSettings, startNodeSettings, updateNodeSettings, + performMaintenanceSettings, listQueuedResourcesSettings, getQueuedResourceSettings, createQueuedResourceSettings, deleteQueuedResourceSettings, resetQueuedResourceSettings, + performMaintenanceQueuedResourceSettings, generateServiceIdentitySettings, listAcceleratorTypesSettings, getAcceleratorTypeSettings, listRuntimeVersionsSettings, getRuntimeVersionSettings, getGuestAttributesSettings, + listReservationsSettings, simulateMaintenanceEventSettings, listLocationsSettings, getLocationSettings); @@ -990,6 +1123,9 @@ protected Builder(TpuStubSettings settings) { startNodeOperationSettings = settings.startNodeOperationSettings.toBuilder(); updateNodeSettings = settings.updateNodeSettings.toBuilder(); updateNodeOperationSettings = settings.updateNodeOperationSettings.toBuilder(); + performMaintenanceSettings = settings.performMaintenanceSettings.toBuilder(); + performMaintenanceOperationSettings = + settings.performMaintenanceOperationSettings.toBuilder(); listQueuedResourcesSettings = settings.listQueuedResourcesSettings.toBuilder(); getQueuedResourceSettings = settings.getQueuedResourceSettings.toBuilder(); createQueuedResourceSettings = settings.createQueuedResourceSettings.toBuilder(); @@ -1001,12 +1137,17 @@ protected Builder(TpuStubSettings settings) { resetQueuedResourceSettings = settings.resetQueuedResourceSettings.toBuilder(); resetQueuedResourceOperationSettings = settings.resetQueuedResourceOperationSettings.toBuilder(); + performMaintenanceQueuedResourceSettings = + settings.performMaintenanceQueuedResourceSettings.toBuilder(); + performMaintenanceQueuedResourceOperationSettings = + settings.performMaintenanceQueuedResourceOperationSettings.toBuilder(); generateServiceIdentitySettings = settings.generateServiceIdentitySettings.toBuilder(); listAcceleratorTypesSettings = settings.listAcceleratorTypesSettings.toBuilder(); getAcceleratorTypeSettings = settings.getAcceleratorTypeSettings.toBuilder(); listRuntimeVersionsSettings = settings.listRuntimeVersionsSettings.toBuilder(); getRuntimeVersionSettings = settings.getRuntimeVersionSettings.toBuilder(); getGuestAttributesSettings = settings.getGuestAttributesSettings.toBuilder(); + listReservationsSettings = settings.listReservationsSettings.toBuilder(); simulateMaintenanceEventSettings = settings.simulateMaintenanceEventSettings.toBuilder(); simulateMaintenanceEventOperationSettings = settings.simulateMaintenanceEventOperationSettings.toBuilder(); @@ -1022,17 +1163,20 @@ protected Builder(TpuStubSettings settings) { stopNodeSettings, startNodeSettings, updateNodeSettings, + performMaintenanceSettings, listQueuedResourcesSettings, getQueuedResourceSettings, createQueuedResourceSettings, deleteQueuedResourceSettings, resetQueuedResourceSettings, + performMaintenanceQueuedResourceSettings, generateServiceIdentitySettings, listAcceleratorTypesSettings, getAcceleratorTypeSettings, listRuntimeVersionsSettings, getRuntimeVersionSettings, getGuestAttributesSettings, + listReservationsSettings, simulateMaintenanceEventSettings, listLocationsSettings, getLocationSettings); @@ -1086,6 +1230,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 + .performMaintenanceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder .listQueuedResourcesSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) @@ -1111,6 +1260,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 + .performMaintenanceQueuedResourceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder .generateServiceIdentitySettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) @@ -1141,6 +1295,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 + .listReservationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder .simulateMaintenanceEventSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) @@ -1267,6 +1426,29 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(300000L)) .build())); + builder + .performMaintenanceOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer(ProtoOperationTransformers.ResponseTransformer.create(Node.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 .createQueuedResourceOperationSettings() .setInitialCallSettings( @@ -1339,6 +1521,31 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(300000L)) .build())); + builder + .performMaintenanceQueuedResourceOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(QueuedResource.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 .simulateMaintenanceEventOperationSettings() .setInitialCallSettings( @@ -1446,6 +1653,18 @@ public UnaryCallSettings.Builder updateNodeSetting return updateNodeOperationSettings; } + /** Returns the builder for the settings used for calls to performMaintenance. */ + public UnaryCallSettings.Builder + performMaintenanceSettings() { + return performMaintenanceSettings; + } + + /** Returns the builder for the settings used for calls to performMaintenance. */ + public OperationCallSettings.Builder + performMaintenanceOperationSettings() { + return performMaintenanceOperationSettings; + } + /** Returns the builder for the settings used for calls to listQueuedResources. */ public PagedCallSettings.Builder< ListQueuedResourcesRequest, @@ -1500,6 +1719,19 @@ public UnaryCallSettings.Builder updateNodeSetting return resetQueuedResourceOperationSettings; } + /** Returns the builder for the settings used for calls to performMaintenanceQueuedResource. */ + public UnaryCallSettings.Builder + performMaintenanceQueuedResourceSettings() { + return performMaintenanceQueuedResourceSettings; + } + + /** Returns the builder for the settings used for calls to performMaintenanceQueuedResource. */ + public OperationCallSettings.Builder< + PerformMaintenanceQueuedResourceRequest, QueuedResource, OperationMetadata> + performMaintenanceQueuedResourceOperationSettings() { + return performMaintenanceQueuedResourceOperationSettings; + } + /** Returns the builder for the settings used for calls to generateServiceIdentity. */ public UnaryCallSettings.Builder< GenerateServiceIdentityRequest, GenerateServiceIdentityResponse> @@ -1543,6 +1775,13 @@ public UnaryCallSettings.Builder updateNodeSetting return getGuestAttributesSettings; } + /** Returns the builder for the settings used for calls to listReservations. */ + public PagedCallSettings.Builder< + ListReservationsRequest, ListReservationsResponse, ListReservationsPagedResponse> + listReservationsSettings() { + return listReservationsSettings; + } + /** Returns the builder for the settings used for calls to simulateMaintenanceEvent. */ public UnaryCallSettings.Builder simulateMaintenanceEventSettings() { diff --git a/java-tpu/google-cloud-tpu/src/main/resources/META-INF/native-image/com.google.cloud.tpu.v2/reflect-config.json b/java-tpu/google-cloud-tpu/src/main/resources/META-INF/native-image/com.google.cloud.tpu.v2/reflect-config.json index 636e8b91ed52..98049e51d5bd 100644 --- a/java-tpu/google-cloud-tpu/src/main/resources/META-INF/native-image/com.google.cloud.tpu.v2/reflect-config.json +++ b/java-tpu/google-cloud-tpu/src/main/resources/META-INF/native-image/com.google.cloud.tpu.v2/reflect-config.json @@ -593,6 +593,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.tpu.v2.CreateQueuedResourceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2.CreateQueuedResourceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.tpu.v2.DeleteNodeRequest", "queryAllDeclaredConstructors": true, @@ -611,6 +629,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.tpu.v2.DeleteQueuedResourceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2.DeleteQueuedResourceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.tpu.v2.GenerateServiceIdentityRequest", "queryAllDeclaredConstructors": true, @@ -719,6 +755,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.tpu.v2.GetQueuedResourceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2.GetQueuedResourceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.tpu.v2.GetRuntimeVersionRequest", "queryAllDeclaredConstructors": true, @@ -863,6 +917,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.tpu.v2.ListQueuedResourcesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2.ListQueuedResourcesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2.ListQueuedResourcesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2.ListQueuedResourcesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.tpu.v2.ListRuntimeVersionsRequest", "queryAllDeclaredConstructors": true, @@ -998,6 +1088,330 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.tpu.v2.QueuedResource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2.QueuedResource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2.QueuedResource$Guaranteed", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2.QueuedResource$Guaranteed$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2.QueuedResource$QueueingPolicy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2.QueuedResource$QueueingPolicy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2.QueuedResource$Spot", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2.QueuedResource$Spot$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2.QueuedResource$Tpu", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2.QueuedResource$Tpu$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2.QueuedResource$Tpu$NodeSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2.QueuedResource$Tpu$NodeSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2.QueuedResource$Tpu$NodeSpec$MultisliceParams", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2.QueuedResource$Tpu$NodeSpec$MultisliceParams$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2.QueuedResourceState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2.QueuedResourceState$AcceptedData", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2.QueuedResourceState$AcceptedData$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2.QueuedResourceState$ActiveData", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2.QueuedResourceState$ActiveData$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2.QueuedResourceState$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2.QueuedResourceState$CreatingData", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2.QueuedResourceState$CreatingData$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2.QueuedResourceState$DeletingData", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2.QueuedResourceState$DeletingData$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2.QueuedResourceState$FailedData", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2.QueuedResourceState$FailedData$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2.QueuedResourceState$ProvisioningData", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2.QueuedResourceState$ProvisioningData$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2.QueuedResourceState$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2.QueuedResourceState$StateInitiator", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2.QueuedResourceState$SuspendedData", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2.QueuedResourceState$SuspendedData$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2.QueuedResourceState$SuspendingData", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2.QueuedResourceState$SuspendingData$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2.ResetQueuedResourceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2.ResetQueuedResourceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.tpu.v2.RuntimeVersion", "queryAllDeclaredConstructors": true, @@ -2149,5 +2563,23 @@ "allPublicMethods": true, "allDeclaredClasses": true, "allPublicClasses": true + }, + { + "name": "com.google.type.Interval", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.Interval$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true } ] \ No newline at end of file diff --git a/java-tpu/google-cloud-tpu/src/main/resources/META-INF/native-image/com.google.cloud.tpu.v2alpha1/reflect-config.json b/java-tpu/google-cloud-tpu/src/main/resources/META-INF/native-image/com.google.cloud.tpu.v2alpha1/reflect-config.json index 72fc111577ed..325395eff362 100644 --- a/java-tpu/google-cloud-tpu/src/main/resources/META-INF/native-image/com.google.cloud.tpu.v2alpha1/reflect-config.json +++ b/java-tpu/google-cloud-tpu/src/main/resources/META-INF/native-image/com.google.cloud.tpu.v2alpha1/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, @@ -989,6 +1034,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.tpu.v2alpha1.ListReservationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2alpha1.ListReservationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2alpha1.ListReservationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2alpha1.ListReservationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.tpu.v2alpha1.ListRuntimeVersionsRequest", "queryAllDeclaredConstructors": true, @@ -1124,6 +1205,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.tpu.v2alpha1.QueuedResource", "queryAllDeclaredConstructors": true, @@ -1268,6 +1385,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.tpu.v2alpha1.QueuedResource$Tpu$NodeSpec$MultiNodeParams$WorkloadType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.tpu.v2alpha1.QueuedResourceState", "queryAllDeclaredConstructors": true, @@ -1448,6 +1574,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.tpu.v2alpha1.Reservation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2alpha1.Reservation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2alpha1.Reservation$Standard", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2alpha1.Reservation$Standard$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2alpha1.Reservation$Standard$CapacityUnits", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2alpha1.Reservation$Standard$Usage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2alpha1.Reservation$Standard$Usage$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2alpha1.Reservation$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.tpu.v2alpha1.ResetQueuedResourceRequest", "queryAllDeclaredConstructors": true, @@ -1637,6 +1835,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.tpu.v2alpha1.UpcomingMaintenance", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2alpha1.UpcomingMaintenance$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2alpha1.UpcomingMaintenance$MaintenanceStatus", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2alpha1.UpcomingMaintenance$MaintenanceType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.tpu.v2alpha1.UpdateNodeRequest", "queryAllDeclaredConstructors": true, diff --git a/java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2/MockTpuImpl.java b/java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2/MockTpuImpl.java index 33fcfc8f36cb..0b8267da81af 100644 --- a/java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2/MockTpuImpl.java +++ b/java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2/MockTpuImpl.java @@ -200,6 +200,112 @@ public void updateNode(UpdateNodeRequest request, StreamObserver resp } } + @Override + public void listQueuedResources( + ListQueuedResourcesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListQueuedResourcesResponse) { + requests.add(request); + responseObserver.onNext(((ListQueuedResourcesResponse) 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 ListQueuedResources, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListQueuedResourcesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getQueuedResource( + GetQueuedResourceRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof QueuedResource) { + requests.add(request); + responseObserver.onNext(((QueuedResource) 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 GetQueuedResource, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + QueuedResource.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createQueuedResource( + CreateQueuedResourceRequest 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 CreateQueuedResource, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteQueuedResource( + DeleteQueuedResourceRequest 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 DeleteQueuedResource, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void resetQueuedResource( + ResetQueuedResourceRequest 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 ResetQueuedResource, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void generateServiceIdentity( GenerateServiceIdentityRequest request, diff --git a/java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2/TpuClientHttpJsonTest.java b/java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2/TpuClientHttpJsonTest.java index 9d8a12e5602a..4486206d4721 100644 --- a/java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2/TpuClientHttpJsonTest.java +++ b/java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2/TpuClientHttpJsonTest.java @@ -19,6 +19,7 @@ import static com.google.cloud.tpu.v2.TpuClient.ListAcceleratorTypesPagedResponse; import static com.google.cloud.tpu.v2.TpuClient.ListLocationsPagedResponse; import static com.google.cloud.tpu.v2.TpuClient.ListNodesPagedResponse; +import static com.google.cloud.tpu.v2.TpuClient.ListQueuedResourcesPagedResponse; import static com.google.cloud.tpu.v2.TpuClient.ListRuntimeVersionsPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; @@ -199,6 +200,7 @@ public void getNodeTest() throws Exception { .setHealthDescription("healthDescription1231837184") .setRuntimeVersion("runtimeVersion602071520") .setNetworkConfig(NetworkConfig.newBuilder().build()) + .addAllNetworkConfigs(new ArrayList()) .setCidrBlock("cidrBlock1646183801") .setServiceAccount(ServiceAccount.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) @@ -263,6 +265,7 @@ public void getNodeTest2() throws Exception { .setHealthDescription("healthDescription1231837184") .setRuntimeVersion("runtimeVersion602071520") .setNetworkConfig(NetworkConfig.newBuilder().build()) + .addAllNetworkConfigs(new ArrayList()) .setCidrBlock("cidrBlock1646183801") .setServiceAccount(ServiceAccount.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) @@ -327,6 +330,7 @@ public void createNodeTest() throws Exception { .setHealthDescription("healthDescription1231837184") .setRuntimeVersion("runtimeVersion602071520") .setNetworkConfig(NetworkConfig.newBuilder().build()) + .addAllNetworkConfigs(new ArrayList()) .setCidrBlock("cidrBlock1646183801") .setServiceAccount(ServiceAccount.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) @@ -400,6 +404,7 @@ public void createNodeTest2() throws Exception { .setHealthDescription("healthDescription1231837184") .setRuntimeVersion("runtimeVersion602071520") .setNetworkConfig(NetworkConfig.newBuilder().build()) + .addAllNetworkConfigs(new ArrayList()) .setCidrBlock("cidrBlock1646183801") .setServiceAccount(ServiceAccount.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) @@ -563,6 +568,7 @@ public void stopNodeTest() throws Exception { .setHealthDescription("healthDescription1231837184") .setRuntimeVersion("runtimeVersion602071520") .setNetworkConfig(NetworkConfig.newBuilder().build()) + .addAllNetworkConfigs(new ArrayList()) .setCidrBlock("cidrBlock1646183801") .setServiceAccount(ServiceAccount.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) @@ -638,6 +644,7 @@ public void startNodeTest() throws Exception { .setHealthDescription("healthDescription1231837184") .setRuntimeVersion("runtimeVersion602071520") .setNetworkConfig(NetworkConfig.newBuilder().build()) + .addAllNetworkConfigs(new ArrayList()) .setCidrBlock("cidrBlock1646183801") .setServiceAccount(ServiceAccount.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) @@ -713,6 +720,7 @@ public void updateNodeTest() throws Exception { .setHealthDescription("healthDescription1231837184") .setRuntimeVersion("runtimeVersion602071520") .setNetworkConfig(NetworkConfig.newBuilder().build()) + .addAllNetworkConfigs(new ArrayList()) .setCidrBlock("cidrBlock1646183801") .setServiceAccount(ServiceAccount.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) @@ -745,6 +753,7 @@ public void updateNodeTest() throws Exception { .setHealthDescription("healthDescription1231837184") .setRuntimeVersion("runtimeVersion602071520") .setNetworkConfig(NetworkConfig.newBuilder().build()) + .addAllNetworkConfigs(new ArrayList()) .setCidrBlock("cidrBlock1646183801") .setServiceAccount(ServiceAccount.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) @@ -797,6 +806,7 @@ public void updateNodeExceptionTest() throws Exception { .setHealthDescription("healthDescription1231837184") .setRuntimeVersion("runtimeVersion602071520") .setNetworkConfig(NetworkConfig.newBuilder().build()) + .addAllNetworkConfigs(new ArrayList()) .setCidrBlock("cidrBlock1646183801") .setServiceAccount(ServiceAccount.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) @@ -820,6 +830,529 @@ public void updateNodeExceptionTest() throws Exception { } } + @Test + public void listQueuedResourcesTest() throws Exception { + QueuedResource responsesElement = QueuedResource.newBuilder().build(); + ListQueuedResourcesResponse expectedResponse = + ListQueuedResourcesResponse.newBuilder() + .setNextPageToken("") + .addAllQueuedResources(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListQueuedResourcesPagedResponse pagedListResponse = client.listQueuedResources(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getQueuedResourcesList().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 listQueuedResourcesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listQueuedResources(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listQueuedResourcesTest2() throws Exception { + QueuedResource responsesElement = QueuedResource.newBuilder().build(); + ListQueuedResourcesResponse expectedResponse = + ListQueuedResourcesResponse.newBuilder() + .setNextPageToken("") + .addAllQueuedResources(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListQueuedResourcesPagedResponse pagedListResponse = client.listQueuedResources(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getQueuedResourcesList().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 listQueuedResourcesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listQueuedResources(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getQueuedResourceTest() throws Exception { + QueuedResource expectedResponse = + QueuedResource.newBuilder() + .setName( + QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setQueueingPolicy(QueuedResource.QueueingPolicy.newBuilder().build()) + .setState(QueuedResourceState.newBuilder().build()) + .setReservationName("reservationName-337941385") + .build(); + mockService.addResponse(expectedResponse); + + QueuedResourceName name = QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]"); + + QueuedResource actualResponse = client.getQueuedResource(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getQueuedResourceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + QueuedResourceName name = + QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]"); + client.getQueuedResource(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getQueuedResourceTest2() throws Exception { + QueuedResource expectedResponse = + QueuedResource.newBuilder() + .setName( + QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setQueueingPolicy(QueuedResource.QueueingPolicy.newBuilder().build()) + .setState(QueuedResourceState.newBuilder().build()) + .setReservationName("reservationName-337941385") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-1976/locations/location-1976/queuedResources/queuedResource-1976"; + + QueuedResource actualResponse = client.getQueuedResource(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getQueuedResourceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-1976/locations/location-1976/queuedResources/queuedResource-1976"; + client.getQueuedResource(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createQueuedResourceTest() throws Exception { + QueuedResource expectedResponse = + QueuedResource.newBuilder() + .setName( + QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setQueueingPolicy(QueuedResource.QueueingPolicy.newBuilder().build()) + .setState(QueuedResourceState.newBuilder().build()) + .setReservationName("reservationName-337941385") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createQueuedResourceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + QueuedResource queuedResource = QueuedResource.newBuilder().build(); + String queuedResourceId = "queuedResourceId437646236"; + + QueuedResource actualResponse = + client.createQueuedResourceAsync(parent, queuedResource, queuedResourceId).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 createQueuedResourceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + QueuedResource queuedResource = QueuedResource.newBuilder().build(); + String queuedResourceId = "queuedResourceId437646236"; + client.createQueuedResourceAsync(parent, queuedResource, queuedResourceId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createQueuedResourceTest2() throws Exception { + QueuedResource expectedResponse = + QueuedResource.newBuilder() + .setName( + QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setQueueingPolicy(QueuedResource.QueueingPolicy.newBuilder().build()) + .setState(QueuedResourceState.newBuilder().build()) + .setReservationName("reservationName-337941385") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createQueuedResourceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + QueuedResource queuedResource = QueuedResource.newBuilder().build(); + String queuedResourceId = "queuedResourceId437646236"; + + QueuedResource actualResponse = + client.createQueuedResourceAsync(parent, queuedResource, queuedResourceId).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 createQueuedResourceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + QueuedResource queuedResource = QueuedResource.newBuilder().build(); + String queuedResourceId = "queuedResourceId437646236"; + client.createQueuedResourceAsync(parent, queuedResource, queuedResourceId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteQueuedResourceTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteQueuedResourceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + QueuedResourceName name = QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]"); + + client.deleteQueuedResourceAsync(name).get(); + + 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 deleteQueuedResourceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + QueuedResourceName name = + QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]"); + client.deleteQueuedResourceAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteQueuedResourceTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteQueuedResourceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-1976/locations/location-1976/queuedResources/queuedResource-1976"; + + client.deleteQueuedResourceAsync(name).get(); + + 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 deleteQueuedResourceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-1976/locations/location-1976/queuedResources/queuedResource-1976"; + client.deleteQueuedResourceAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void resetQueuedResourceTest() throws Exception { + QueuedResource expectedResponse = + QueuedResource.newBuilder() + .setName( + QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setQueueingPolicy(QueuedResource.QueueingPolicy.newBuilder().build()) + .setState(QueuedResourceState.newBuilder().build()) + .setReservationName("reservationName-337941385") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("resetQueuedResourceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + QueuedResourceName name = QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]"); + + QueuedResource actualResponse = client.resetQueuedResourceAsync(name).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 resetQueuedResourceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + QueuedResourceName name = + QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]"); + client.resetQueuedResourceAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void resetQueuedResourceTest2() throws Exception { + QueuedResource expectedResponse = + QueuedResource.newBuilder() + .setName( + QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setQueueingPolicy(QueuedResource.QueueingPolicy.newBuilder().build()) + .setState(QueuedResourceState.newBuilder().build()) + .setReservationName("reservationName-337941385") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("resetQueuedResourceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-1976/locations/location-1976/queuedResources/queuedResource-1976"; + + QueuedResource actualResponse = client.resetQueuedResourceAsync(name).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 resetQueuedResourceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-1976/locations/location-1976/queuedResources/queuedResource-1976"; + client.resetQueuedResourceAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void generateServiceIdentityTest() throws Exception { GenerateServiceIdentityResponse expectedResponse = diff --git a/java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2/TpuClientTest.java b/java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2/TpuClientTest.java index ea5ae1457dbf..78dc133851bd 100644 --- a/java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2/TpuClientTest.java +++ b/java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2/TpuClientTest.java @@ -19,6 +19,7 @@ import static com.google.cloud.tpu.v2.TpuClient.ListAcceleratorTypesPagedResponse; import static com.google.cloud.tpu.v2.TpuClient.ListLocationsPagedResponse; import static com.google.cloud.tpu.v2.TpuClient.ListNodesPagedResponse; +import static com.google.cloud.tpu.v2.TpuClient.ListQueuedResourcesPagedResponse; import static com.google.cloud.tpu.v2.TpuClient.ListRuntimeVersionsPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; @@ -194,6 +195,7 @@ public void getNodeTest() throws Exception { .setHealthDescription("healthDescription1231837184") .setRuntimeVersion("runtimeVersion602071520") .setNetworkConfig(NetworkConfig.newBuilder().build()) + .addAllNetworkConfigs(new ArrayList()) .setCidrBlock("cidrBlock1646183801") .setServiceAccount(ServiceAccount.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) @@ -252,6 +254,7 @@ public void getNodeTest2() throws Exception { .setHealthDescription("healthDescription1231837184") .setRuntimeVersion("runtimeVersion602071520") .setNetworkConfig(NetworkConfig.newBuilder().build()) + .addAllNetworkConfigs(new ArrayList()) .setCidrBlock("cidrBlock1646183801") .setServiceAccount(ServiceAccount.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) @@ -310,6 +313,7 @@ public void createNodeTest() throws Exception { .setHealthDescription("healthDescription1231837184") .setRuntimeVersion("runtimeVersion602071520") .setNetworkConfig(NetworkConfig.newBuilder().build()) + .addAllNetworkConfigs(new ArrayList()) .setCidrBlock("cidrBlock1646183801") .setServiceAccount(ServiceAccount.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) @@ -382,6 +386,7 @@ public void createNodeTest2() throws Exception { .setHealthDescription("healthDescription1231837184") .setRuntimeVersion("runtimeVersion602071520") .setNetworkConfig(NetworkConfig.newBuilder().build()) + .addAllNetworkConfigs(new ArrayList()) .setCidrBlock("cidrBlock1646183801") .setServiceAccount(ServiceAccount.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) @@ -538,6 +543,7 @@ public void stopNodeTest() throws Exception { .setHealthDescription("healthDescription1231837184") .setRuntimeVersion("runtimeVersion602071520") .setNetworkConfig(NetworkConfig.newBuilder().build()) + .addAllNetworkConfigs(new ArrayList()) .setCidrBlock("cidrBlock1646183801") .setServiceAccount(ServiceAccount.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) @@ -610,6 +616,7 @@ public void startNodeTest() throws Exception { .setHealthDescription("healthDescription1231837184") .setRuntimeVersion("runtimeVersion602071520") .setNetworkConfig(NetworkConfig.newBuilder().build()) + .addAllNetworkConfigs(new ArrayList()) .setCidrBlock("cidrBlock1646183801") .setServiceAccount(ServiceAccount.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) @@ -682,6 +689,7 @@ public void updateNodeTest() throws Exception { .setHealthDescription("healthDescription1231837184") .setRuntimeVersion("runtimeVersion602071520") .setNetworkConfig(NetworkConfig.newBuilder().build()) + .addAllNetworkConfigs(new ArrayList()) .setCidrBlock("cidrBlock1646183801") .setServiceAccount(ServiceAccount.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) @@ -741,6 +749,489 @@ public void updateNodeExceptionTest() throws Exception { } } + @Test + public void listQueuedResourcesTest() throws Exception { + QueuedResource responsesElement = QueuedResource.newBuilder().build(); + ListQueuedResourcesResponse expectedResponse = + ListQueuedResourcesResponse.newBuilder() + .setNextPageToken("") + .addAllQueuedResources(Arrays.asList(responsesElement)) + .build(); + mockTpu.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListQueuedResourcesPagedResponse pagedListResponse = client.listQueuedResources(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getQueuedResourcesList().get(0), resources.get(0)); + + List actualRequests = mockTpu.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListQueuedResourcesRequest actualRequest = ((ListQueuedResourcesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listQueuedResourcesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTpu.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listQueuedResources(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listQueuedResourcesTest2() throws Exception { + QueuedResource responsesElement = QueuedResource.newBuilder().build(); + ListQueuedResourcesResponse expectedResponse = + ListQueuedResourcesResponse.newBuilder() + .setNextPageToken("") + .addAllQueuedResources(Arrays.asList(responsesElement)) + .build(); + mockTpu.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListQueuedResourcesPagedResponse pagedListResponse = client.listQueuedResources(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getQueuedResourcesList().get(0), resources.get(0)); + + List actualRequests = mockTpu.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListQueuedResourcesRequest actualRequest = ((ListQueuedResourcesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listQueuedResourcesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTpu.addException(exception); + + try { + String parent = "parent-995424086"; + client.listQueuedResources(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getQueuedResourceTest() throws Exception { + QueuedResource expectedResponse = + QueuedResource.newBuilder() + .setName( + QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setQueueingPolicy(QueuedResource.QueueingPolicy.newBuilder().build()) + .setState(QueuedResourceState.newBuilder().build()) + .setReservationName("reservationName-337941385") + .build(); + mockTpu.addResponse(expectedResponse); + + QueuedResourceName name = QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]"); + + QueuedResource actualResponse = client.getQueuedResource(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTpu.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetQueuedResourceRequest actualRequest = ((GetQueuedResourceRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getQueuedResourceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTpu.addException(exception); + + try { + QueuedResourceName name = + QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]"); + client.getQueuedResource(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getQueuedResourceTest2() throws Exception { + QueuedResource expectedResponse = + QueuedResource.newBuilder() + .setName( + QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setQueueingPolicy(QueuedResource.QueueingPolicy.newBuilder().build()) + .setState(QueuedResourceState.newBuilder().build()) + .setReservationName("reservationName-337941385") + .build(); + mockTpu.addResponse(expectedResponse); + + String name = "name3373707"; + + QueuedResource actualResponse = client.getQueuedResource(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTpu.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetQueuedResourceRequest actualRequest = ((GetQueuedResourceRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getQueuedResourceExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTpu.addException(exception); + + try { + String name = "name3373707"; + client.getQueuedResource(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createQueuedResourceTest() throws Exception { + QueuedResource expectedResponse = + QueuedResource.newBuilder() + .setName( + QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setQueueingPolicy(QueuedResource.QueueingPolicy.newBuilder().build()) + .setState(QueuedResourceState.newBuilder().build()) + .setReservationName("reservationName-337941385") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createQueuedResourceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTpu.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + QueuedResource queuedResource = QueuedResource.newBuilder().build(); + String queuedResourceId = "queuedResourceId437646236"; + + QueuedResource actualResponse = + client.createQueuedResourceAsync(parent, queuedResource, queuedResourceId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTpu.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateQueuedResourceRequest actualRequest = + ((CreateQueuedResourceRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(queuedResource, actualRequest.getQueuedResource()); + Assert.assertEquals(queuedResourceId, actualRequest.getQueuedResourceId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createQueuedResourceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTpu.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + QueuedResource queuedResource = QueuedResource.newBuilder().build(); + String queuedResourceId = "queuedResourceId437646236"; + client.createQueuedResourceAsync(parent, queuedResource, queuedResourceId).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 createQueuedResourceTest2() throws Exception { + QueuedResource expectedResponse = + QueuedResource.newBuilder() + .setName( + QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setQueueingPolicy(QueuedResource.QueueingPolicy.newBuilder().build()) + .setState(QueuedResourceState.newBuilder().build()) + .setReservationName("reservationName-337941385") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createQueuedResourceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTpu.addResponse(resultOperation); + + String parent = "parent-995424086"; + QueuedResource queuedResource = QueuedResource.newBuilder().build(); + String queuedResourceId = "queuedResourceId437646236"; + + QueuedResource actualResponse = + client.createQueuedResourceAsync(parent, queuedResource, queuedResourceId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTpu.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateQueuedResourceRequest actualRequest = + ((CreateQueuedResourceRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(queuedResource, actualRequest.getQueuedResource()); + Assert.assertEquals(queuedResourceId, actualRequest.getQueuedResourceId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createQueuedResourceExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTpu.addException(exception); + + try { + String parent = "parent-995424086"; + QueuedResource queuedResource = QueuedResource.newBuilder().build(); + String queuedResourceId = "queuedResourceId437646236"; + client.createQueuedResourceAsync(parent, queuedResource, queuedResourceId).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 deleteQueuedResourceTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteQueuedResourceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTpu.addResponse(resultOperation); + + QueuedResourceName name = QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]"); + + client.deleteQueuedResourceAsync(name).get(); + + List actualRequests = mockTpu.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteQueuedResourceRequest actualRequest = + ((DeleteQueuedResourceRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteQueuedResourceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTpu.addException(exception); + + try { + QueuedResourceName name = + QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]"); + client.deleteQueuedResourceAsync(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 deleteQueuedResourceTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteQueuedResourceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTpu.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteQueuedResourceAsync(name).get(); + + List actualRequests = mockTpu.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteQueuedResourceRequest actualRequest = + ((DeleteQueuedResourceRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteQueuedResourceExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTpu.addException(exception); + + try { + String name = "name3373707"; + client.deleteQueuedResourceAsync(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 resetQueuedResourceTest() throws Exception { + QueuedResource expectedResponse = + QueuedResource.newBuilder() + .setName( + QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setQueueingPolicy(QueuedResource.QueueingPolicy.newBuilder().build()) + .setState(QueuedResourceState.newBuilder().build()) + .setReservationName("reservationName-337941385") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("resetQueuedResourceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTpu.addResponse(resultOperation); + + QueuedResourceName name = QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]"); + + QueuedResource actualResponse = client.resetQueuedResourceAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTpu.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ResetQueuedResourceRequest actualRequest = ((ResetQueuedResourceRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void resetQueuedResourceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTpu.addException(exception); + + try { + QueuedResourceName name = + QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]"); + client.resetQueuedResourceAsync(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 resetQueuedResourceTest2() throws Exception { + QueuedResource expectedResponse = + QueuedResource.newBuilder() + .setName( + QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setQueueingPolicy(QueuedResource.QueueingPolicy.newBuilder().build()) + .setState(QueuedResourceState.newBuilder().build()) + .setReservationName("reservationName-337941385") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("resetQueuedResourceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTpu.addResponse(resultOperation); + + String name = "name3373707"; + + QueuedResource actualResponse = client.resetQueuedResourceAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTpu.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ResetQueuedResourceRequest actualRequest = ((ResetQueuedResourceRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void resetQueuedResourceExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTpu.addException(exception); + + try { + String name = "name3373707"; + client.resetQueuedResourceAsync(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 generateServiceIdentityTest() throws Exception { GenerateServiceIdentityResponse expectedResponse = diff --git a/java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2alpha1/MockTpuImpl.java b/java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2alpha1/MockTpuImpl.java index 11c9ae8030bc..48ccfa5cb4e5 100644 --- a/java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2alpha1/MockTpuImpl.java +++ b/java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2alpha1/MockTpuImpl.java @@ -200,6 +200,27 @@ public void updateNode(UpdateNodeRequest request, StreamObserver resp } } + @Override + public void performMaintenance( + PerformMaintenanceRequest 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 PerformMaintenance, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void listQueuedResources( ListQueuedResourcesRequest request, @@ -306,6 +327,27 @@ public void resetQueuedResource( } } + @Override + public void performMaintenanceQueuedResource( + PerformMaintenanceQueuedResourceRequest 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 PerformMaintenanceQueuedResource, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void generateServiceIdentity( GenerateServiceIdentityRequest request, @@ -436,6 +478,27 @@ public void getGuestAttributes( } } + @Override + public void listReservations( + ListReservationsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListReservationsResponse) { + requests.add(request); + responseObserver.onNext(((ListReservationsResponse) 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 ListReservations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListReservationsResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void simulateMaintenanceEvent( SimulateMaintenanceEventRequest request, StreamObserver responseObserver) { diff --git a/java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2alpha1/TpuClientTest.java b/java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2alpha1/TpuClientTest.java index 1cae2aafc579..18292539ca94 100644 --- a/java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2alpha1/TpuClientTest.java +++ b/java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2alpha1/TpuClientTest.java @@ -20,6 +20,7 @@ import static com.google.cloud.tpu.v2alpha1.TpuClient.ListLocationsPagedResponse; import static com.google.cloud.tpu.v2alpha1.TpuClient.ListNodesPagedResponse; import static com.google.cloud.tpu.v2alpha1.TpuClient.ListQueuedResourcesPagedResponse; +import static com.google.cloud.tpu.v2alpha1.TpuClient.ListReservationsPagedResponse; import static com.google.cloud.tpu.v2alpha1.TpuClient.ListRuntimeVersionsPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; @@ -195,6 +196,7 @@ public void getNodeTest() throws Exception { .setHealthDescription("healthDescription1231837184") .setRuntimeVersion("runtimeVersion602071520") .setNetworkConfig(NetworkConfig.newBuilder().build()) + .addAllNetworkConfigs(new ArrayList()) .setCidrBlock("cidrBlock1646183801") .setServiceAccount(ServiceAccount.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) @@ -210,7 +212,9 @@ public void getNodeTest() throws Exception { .setAcceleratorConfig(AcceleratorConfig.newBuilder().build()) .setShieldedInstanceConfig(ShieldedInstanceConfig.newBuilder().build()) .setMultisliceNode(true) + .setAutocheckpointEnabled(true) .setBootDiskConfig(BootDiskConfig.newBuilder().build()) + .setUpcomingMaintenance(UpcomingMaintenance.newBuilder().build()) .build(); mockTpu.addResponse(expectedResponse); @@ -254,6 +258,7 @@ public void getNodeTest2() throws Exception { .setHealthDescription("healthDescription1231837184") .setRuntimeVersion("runtimeVersion602071520") .setNetworkConfig(NetworkConfig.newBuilder().build()) + .addAllNetworkConfigs(new ArrayList()) .setCidrBlock("cidrBlock1646183801") .setServiceAccount(ServiceAccount.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) @@ -269,7 +274,9 @@ public void getNodeTest2() throws Exception { .setAcceleratorConfig(AcceleratorConfig.newBuilder().build()) .setShieldedInstanceConfig(ShieldedInstanceConfig.newBuilder().build()) .setMultisliceNode(true) + .setAutocheckpointEnabled(true) .setBootDiskConfig(BootDiskConfig.newBuilder().build()) + .setUpcomingMaintenance(UpcomingMaintenance.newBuilder().build()) .build(); mockTpu.addResponse(expectedResponse); @@ -313,6 +320,7 @@ public void createNodeTest() throws Exception { .setHealthDescription("healthDescription1231837184") .setRuntimeVersion("runtimeVersion602071520") .setNetworkConfig(NetworkConfig.newBuilder().build()) + .addAllNetworkConfigs(new ArrayList()) .setCidrBlock("cidrBlock1646183801") .setServiceAccount(ServiceAccount.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) @@ -328,7 +336,9 @@ public void createNodeTest() throws Exception { .setAcceleratorConfig(AcceleratorConfig.newBuilder().build()) .setShieldedInstanceConfig(ShieldedInstanceConfig.newBuilder().build()) .setMultisliceNode(true) + .setAutocheckpointEnabled(true) .setBootDiskConfig(BootDiskConfig.newBuilder().build()) + .setUpcomingMaintenance(UpcomingMaintenance.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -386,6 +396,7 @@ public void createNodeTest2() throws Exception { .setHealthDescription("healthDescription1231837184") .setRuntimeVersion("runtimeVersion602071520") .setNetworkConfig(NetworkConfig.newBuilder().build()) + .addAllNetworkConfigs(new ArrayList()) .setCidrBlock("cidrBlock1646183801") .setServiceAccount(ServiceAccount.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) @@ -401,7 +412,9 @@ public void createNodeTest2() throws Exception { .setAcceleratorConfig(AcceleratorConfig.newBuilder().build()) .setShieldedInstanceConfig(ShieldedInstanceConfig.newBuilder().build()) .setMultisliceNode(true) + .setAutocheckpointEnabled(true) .setBootDiskConfig(BootDiskConfig.newBuilder().build()) + .setUpcomingMaintenance(UpcomingMaintenance.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -543,6 +556,7 @@ public void stopNodeTest() throws Exception { .setHealthDescription("healthDescription1231837184") .setRuntimeVersion("runtimeVersion602071520") .setNetworkConfig(NetworkConfig.newBuilder().build()) + .addAllNetworkConfigs(new ArrayList()) .setCidrBlock("cidrBlock1646183801") .setServiceAccount(ServiceAccount.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) @@ -558,7 +572,9 @@ public void stopNodeTest() throws Exception { .setAcceleratorConfig(AcceleratorConfig.newBuilder().build()) .setShieldedInstanceConfig(ShieldedInstanceConfig.newBuilder().build()) .setMultisliceNode(true) + .setAutocheckpointEnabled(true) .setBootDiskConfig(BootDiskConfig.newBuilder().build()) + .setUpcomingMaintenance(UpcomingMaintenance.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -616,6 +632,7 @@ public void startNodeTest() throws Exception { .setHealthDescription("healthDescription1231837184") .setRuntimeVersion("runtimeVersion602071520") .setNetworkConfig(NetworkConfig.newBuilder().build()) + .addAllNetworkConfigs(new ArrayList()) .setCidrBlock("cidrBlock1646183801") .setServiceAccount(ServiceAccount.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) @@ -631,7 +648,9 @@ public void startNodeTest() throws Exception { .setAcceleratorConfig(AcceleratorConfig.newBuilder().build()) .setShieldedInstanceConfig(ShieldedInstanceConfig.newBuilder().build()) .setMultisliceNode(true) + .setAutocheckpointEnabled(true) .setBootDiskConfig(BootDiskConfig.newBuilder().build()) + .setUpcomingMaintenance(UpcomingMaintenance.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -689,6 +708,7 @@ public void updateNodeTest() throws Exception { .setHealthDescription("healthDescription1231837184") .setRuntimeVersion("runtimeVersion602071520") .setNetworkConfig(NetworkConfig.newBuilder().build()) + .addAllNetworkConfigs(new ArrayList()) .setCidrBlock("cidrBlock1646183801") .setServiceAccount(ServiceAccount.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) @@ -704,7 +724,9 @@ public void updateNodeTest() throws Exception { .setAcceleratorConfig(AcceleratorConfig.newBuilder().build()) .setShieldedInstanceConfig(ShieldedInstanceConfig.newBuilder().build()) .setMultisliceNode(true) + .setAutocheckpointEnabled(true) .setBootDiskConfig(BootDiskConfig.newBuilder().build()) + .setUpcomingMaintenance(UpcomingMaintenance.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -749,6 +771,82 @@ public void updateNodeExceptionTest() throws Exception { } } + @Test + public void performMaintenanceTest() throws Exception { + Node expectedResponse = + Node.newBuilder() + .setName(NodeName.of("[PROJECT]", "[LOCATION]", "[NODE]").toString()) + .setDescription("description-1724546052") + .setAcceleratorType("acceleratorType-82462651") + .setHealthDescription("healthDescription1231837184") + .setRuntimeVersion("runtimeVersion602071520") + .setNetworkConfig(NetworkConfig.newBuilder().build()) + .addAllNetworkConfigs(new ArrayList()) + .setCidrBlock("cidrBlock1646183801") + .setServiceAccount(ServiceAccount.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setSchedulingConfig(SchedulingConfig.newBuilder().build()) + .addAllNetworkEndpoints(new ArrayList()) + .putAllLabels(new HashMap()) + .putAllMetadata(new HashMap()) + .addAllTags(new ArrayList()) + .setId(3355) + .addAllDataDisks(new ArrayList()) + .addAllSymptoms(new ArrayList()) + .setQueuedResource("queuedResource94310049") + .setAcceleratorConfig(AcceleratorConfig.newBuilder().build()) + .setShieldedInstanceConfig(ShieldedInstanceConfig.newBuilder().build()) + .setMultisliceNode(true) + .setAutocheckpointEnabled(true) + .setBootDiskConfig(BootDiskConfig.newBuilder().build()) + .setUpcomingMaintenance(UpcomingMaintenance.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("performMaintenanceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTpu.addResponse(resultOperation); + + PerformMaintenanceRequest request = + PerformMaintenanceRequest.newBuilder() + .setName(NodeName.of("[PROJECT]", "[LOCATION]", "[NODE]").toString()) + .build(); + + Node actualResponse = client.performMaintenanceAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTpu.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + PerformMaintenanceRequest actualRequest = ((PerformMaintenanceRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void performMaintenanceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTpu.addException(exception); + + try { + PerformMaintenanceRequest request = + PerformMaintenanceRequest.newBuilder() + .setName(NodeName.of("[PROJECT]", "[LOCATION]", "[NODE]").toString()) + .build(); + client.performMaintenanceAsync(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 listQueuedResourcesTest() throws Exception { QueuedResource responsesElement = QueuedResource.newBuilder().build(); @@ -843,6 +941,7 @@ public void getQueuedResourceTest() throws Exception { QueuedResource.newBuilder() .setName( QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) .setQueueingPolicy(QueuedResource.QueueingPolicy.newBuilder().build()) .setState(QueuedResourceState.newBuilder().build()) .setReservationName("reservationName-337941385") @@ -886,6 +985,7 @@ public void getQueuedResourceTest2() throws Exception { QueuedResource.newBuilder() .setName( QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) .setQueueingPolicy(QueuedResource.QueueingPolicy.newBuilder().build()) .setState(QueuedResourceState.newBuilder().build()) .setReservationName("reservationName-337941385") @@ -928,6 +1028,7 @@ public void createQueuedResourceTest() throws Exception { QueuedResource.newBuilder() .setName( QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) .setQueueingPolicy(QueuedResource.QueueingPolicy.newBuilder().build()) .setState(QueuedResourceState.newBuilder().build()) .setReservationName("reservationName-337941385") @@ -986,6 +1087,7 @@ public void createQueuedResourceTest2() throws Exception { QueuedResource.newBuilder() .setName( QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) .setQueueingPolicy(QueuedResource.QueueingPolicy.newBuilder().build()) .setState(QueuedResourceState.newBuilder().build()) .setReservationName("reservationName-337941385") @@ -1044,6 +1146,7 @@ public void deleteQueuedResourceTest() throws Exception { QueuedResource.newBuilder() .setName( QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) .setQueueingPolicy(QueuedResource.QueueingPolicy.newBuilder().build()) .setState(QueuedResourceState.newBuilder().build()) .setReservationName("reservationName-337941385") @@ -1096,6 +1199,7 @@ public void deleteQueuedResourceTest2() throws Exception { QueuedResource.newBuilder() .setName( QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) .setQueueingPolicy(QueuedResource.QueueingPolicy.newBuilder().build()) .setState(QueuedResourceState.newBuilder().build()) .setReservationName("reservationName-337941385") @@ -1147,6 +1251,7 @@ public void resetQueuedResourceTest() throws Exception { QueuedResource.newBuilder() .setName( QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) .setQueueingPolicy(QueuedResource.QueueingPolicy.newBuilder().build()) .setState(QueuedResourceState.newBuilder().build()) .setReservationName("reservationName-337941385") @@ -1198,6 +1303,7 @@ public void resetQueuedResourceTest2() throws Exception { QueuedResource.newBuilder() .setName( QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) .setQueueingPolicy(QueuedResource.QueueingPolicy.newBuilder().build()) .setState(QueuedResourceState.newBuilder().build()) .setReservationName("reservationName-337941385") @@ -1242,6 +1348,69 @@ public void resetQueuedResourceExceptionTest2() throws Exception { } } + @Test + public void performMaintenanceQueuedResourceTest() throws Exception { + QueuedResource expectedResponse = + QueuedResource.newBuilder() + .setName( + QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setQueueingPolicy(QueuedResource.QueueingPolicy.newBuilder().build()) + .setState(QueuedResourceState.newBuilder().build()) + .setReservationName("reservationName-337941385") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("performMaintenanceQueuedResourceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockTpu.addResponse(resultOperation); + + PerformMaintenanceQueuedResourceRequest request = + PerformMaintenanceQueuedResourceRequest.newBuilder() + .setName( + QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString()) + .addAllNodeNames(new ArrayList()) + .build(); + + QueuedResource actualResponse = client.performMaintenanceQueuedResourceAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTpu.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + PerformMaintenanceQueuedResourceRequest actualRequest = + ((PerformMaintenanceQueuedResourceRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getNodeNamesList(), actualRequest.getNodeNamesList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void performMaintenanceQueuedResourceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTpu.addException(exception); + + try { + PerformMaintenanceQueuedResourceRequest request = + PerformMaintenanceQueuedResourceRequest.newBuilder() + .setName( + QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString()) + .addAllNodeNames(new ArrayList()) + .build(); + client.performMaintenanceQueuedResourceAsync(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 generateServiceIdentityTest() throws Exception { GenerateServiceIdentityResponse expectedResponse = @@ -1680,6 +1849,62 @@ public void getGuestAttributesExceptionTest() throws Exception { } } + @Test + public void listReservationsTest() throws Exception { + Reservation responsesElement = Reservation.newBuilder().build(); + ListReservationsResponse expectedResponse = + ListReservationsResponse.newBuilder() + .setNextPageToken("") + .addAllReservations(Arrays.asList(responsesElement)) + .build(); + mockTpu.addResponse(expectedResponse); + + ListReservationsRequest request = + ListReservationsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListReservationsPagedResponse pagedListResponse = client.listReservations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getReservationsList().get(0), resources.get(0)); + + List actualRequests = mockTpu.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListReservationsRequest actualRequest = ((ListReservationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listReservationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTpu.addException(exception); + + try { + ListReservationsRequest request = + ListReservationsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listReservations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void simulateMaintenanceEventTest() throws Exception { Node expectedResponse = @@ -1690,6 +1915,7 @@ public void simulateMaintenanceEventTest() throws Exception { .setHealthDescription("healthDescription1231837184") .setRuntimeVersion("runtimeVersion602071520") .setNetworkConfig(NetworkConfig.newBuilder().build()) + .addAllNetworkConfigs(new ArrayList()) .setCidrBlock("cidrBlock1646183801") .setServiceAccount(ServiceAccount.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) @@ -1705,7 +1931,9 @@ public void simulateMaintenanceEventTest() throws Exception { .setAcceleratorConfig(AcceleratorConfig.newBuilder().build()) .setShieldedInstanceConfig(ShieldedInstanceConfig.newBuilder().build()) .setMultisliceNode(true) + .setAutocheckpointEnabled(true) .setBootDiskConfig(BootDiskConfig.newBuilder().build()) + .setUpcomingMaintenance(UpcomingMaintenance.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() diff --git a/java-tpu/grpc-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/TpuGrpc.java b/java-tpu/grpc-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/TpuGrpc.java index 7aba0df9f234..a1e53b95ad56 100644 --- a/java-tpu/grpc-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/TpuGrpc.java +++ b/java-tpu/grpc-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/TpuGrpc.java @@ -316,6 +316,225 @@ private TpuGrpc() {} return getUpdateNodeMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.ListQueuedResourcesRequest, + com.google.cloud.tpu.v2.ListQueuedResourcesResponse> + getListQueuedResourcesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListQueuedResources", + requestType = com.google.cloud.tpu.v2.ListQueuedResourcesRequest.class, + responseType = com.google.cloud.tpu.v2.ListQueuedResourcesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.ListQueuedResourcesRequest, + com.google.cloud.tpu.v2.ListQueuedResourcesResponse> + getListQueuedResourcesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.ListQueuedResourcesRequest, + com.google.cloud.tpu.v2.ListQueuedResourcesResponse> + getListQueuedResourcesMethod; + if ((getListQueuedResourcesMethod = TpuGrpc.getListQueuedResourcesMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getListQueuedResourcesMethod = TpuGrpc.getListQueuedResourcesMethod) == null) { + TpuGrpc.getListQueuedResourcesMethod = + getListQueuedResourcesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListQueuedResources")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2.ListQueuedResourcesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2.ListQueuedResourcesResponse + .getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("ListQueuedResources")) + .build(); + } + } + } + return getListQueuedResourcesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.GetQueuedResourceRequest, com.google.cloud.tpu.v2.QueuedResource> + getGetQueuedResourceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetQueuedResource", + requestType = com.google.cloud.tpu.v2.GetQueuedResourceRequest.class, + responseType = com.google.cloud.tpu.v2.QueuedResource.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.GetQueuedResourceRequest, com.google.cloud.tpu.v2.QueuedResource> + getGetQueuedResourceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.GetQueuedResourceRequest, + com.google.cloud.tpu.v2.QueuedResource> + getGetQueuedResourceMethod; + if ((getGetQueuedResourceMethod = TpuGrpc.getGetQueuedResourceMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getGetQueuedResourceMethod = TpuGrpc.getGetQueuedResourceMethod) == null) { + TpuGrpc.getGetQueuedResourceMethod = + getGetQueuedResourceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetQueuedResource")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2.GetQueuedResourceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2.QueuedResource.getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("GetQueuedResource")) + .build(); + } + } + } + return getGetQueuedResourceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.CreateQueuedResourceRequest, com.google.longrunning.Operation> + getCreateQueuedResourceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateQueuedResource", + requestType = com.google.cloud.tpu.v2.CreateQueuedResourceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.CreateQueuedResourceRequest, com.google.longrunning.Operation> + getCreateQueuedResourceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.CreateQueuedResourceRequest, com.google.longrunning.Operation> + getCreateQueuedResourceMethod; + if ((getCreateQueuedResourceMethod = TpuGrpc.getCreateQueuedResourceMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getCreateQueuedResourceMethod = TpuGrpc.getCreateQueuedResourceMethod) == null) { + TpuGrpc.getCreateQueuedResourceMethod = + getCreateQueuedResourceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateQueuedResource")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2.CreateQueuedResourceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("CreateQueuedResource")) + .build(); + } + } + } + return getCreateQueuedResourceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.DeleteQueuedResourceRequest, com.google.longrunning.Operation> + getDeleteQueuedResourceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteQueuedResource", + requestType = com.google.cloud.tpu.v2.DeleteQueuedResourceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.DeleteQueuedResourceRequest, com.google.longrunning.Operation> + getDeleteQueuedResourceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.DeleteQueuedResourceRequest, com.google.longrunning.Operation> + getDeleteQueuedResourceMethod; + if ((getDeleteQueuedResourceMethod = TpuGrpc.getDeleteQueuedResourceMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getDeleteQueuedResourceMethod = TpuGrpc.getDeleteQueuedResourceMethod) == null) { + TpuGrpc.getDeleteQueuedResourceMethod = + getDeleteQueuedResourceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteQueuedResource")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2.DeleteQueuedResourceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("DeleteQueuedResource")) + .build(); + } + } + } + return getDeleteQueuedResourceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.ResetQueuedResourceRequest, com.google.longrunning.Operation> + getResetQueuedResourceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ResetQueuedResource", + requestType = com.google.cloud.tpu.v2.ResetQueuedResourceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.ResetQueuedResourceRequest, com.google.longrunning.Operation> + getResetQueuedResourceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2.ResetQueuedResourceRequest, com.google.longrunning.Operation> + getResetQueuedResourceMethod; + if ((getResetQueuedResourceMethod = TpuGrpc.getResetQueuedResourceMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getResetQueuedResourceMethod = TpuGrpc.getResetQueuedResourceMethod) == null) { + TpuGrpc.getResetQueuedResourceMethod = + getResetQueuedResourceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ResetQueuedResource")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2.ResetQueuedResourceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("ResetQueuedResource")) + .build(); + } + } + } + return getResetQueuedResourceMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.tpu.v2.GenerateServiceIdentityRequest, com.google.cloud.tpu.v2.GenerateServiceIdentityResponse> @@ -731,6 +950,77 @@ default void updateNode( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateNodeMethod(), responseObserver); } + /** + * + * + *
    +     * Lists queued resources.
    +     * 
    + */ + default void listQueuedResources( + com.google.cloud.tpu.v2.ListQueuedResourcesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListQueuedResourcesMethod(), responseObserver); + } + + /** + * + * + *
    +     * Gets details of a queued resource.
    +     * 
    + */ + default void getQueuedResource( + com.google.cloud.tpu.v2.GetQueuedResourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetQueuedResourceMethod(), responseObserver); + } + + /** + * + * + *
    +     * Creates a QueuedResource TPU instance.
    +     * 
    + */ + default void createQueuedResource( + com.google.cloud.tpu.v2.CreateQueuedResourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateQueuedResourceMethod(), responseObserver); + } + + /** + * + * + *
    +     * Deletes a QueuedResource TPU instance.
    +     * 
    + */ + default void deleteQueuedResource( + com.google.cloud.tpu.v2.DeleteQueuedResourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteQueuedResourceMethod(), responseObserver); + } + + /** + * + * + *
    +     * Resets a QueuedResource TPU instance
    +     * 
    + */ + default void resetQueuedResource( + com.google.cloud.tpu.v2.ResetQueuedResourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getResetQueuedResourceMethod(), responseObserver); + } + /** * * @@ -952,6 +1242,87 @@ public void updateNode( getChannel().newCall(getUpdateNodeMethod(), getCallOptions()), request, responseObserver); } + /** + * + * + *
    +     * Lists queued resources.
    +     * 
    + */ + public void listQueuedResources( + com.google.cloud.tpu.v2.ListQueuedResourcesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListQueuedResourcesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Gets details of a queued resource.
    +     * 
    + */ + public void getQueuedResource( + com.google.cloud.tpu.v2.GetQueuedResourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetQueuedResourceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Creates a QueuedResource TPU instance.
    +     * 
    + */ + public void createQueuedResource( + com.google.cloud.tpu.v2.CreateQueuedResourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateQueuedResourceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Deletes a QueuedResource TPU instance.
    +     * 
    + */ + public void deleteQueuedResource( + com.google.cloud.tpu.v2.DeleteQueuedResourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteQueuedResourceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Resets a QueuedResource TPU instance
    +     * 
    + */ + public void resetQueuedResource( + com.google.cloud.tpu.v2.ResetQueuedResourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getResetQueuedResourceMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1162,6 +1533,71 @@ public com.google.longrunning.Operation updateNode( getChannel(), getUpdateNodeMethod(), getCallOptions(), request); } + /** + * + * + *
    +     * Lists queued resources.
    +     * 
    + */ + public com.google.cloud.tpu.v2.ListQueuedResourcesResponse listQueuedResources( + com.google.cloud.tpu.v2.ListQueuedResourcesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListQueuedResourcesMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Gets details of a queued resource.
    +     * 
    + */ + public com.google.cloud.tpu.v2.QueuedResource getQueuedResource( + com.google.cloud.tpu.v2.GetQueuedResourceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetQueuedResourceMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Creates a QueuedResource TPU instance.
    +     * 
    + */ + public com.google.longrunning.Operation createQueuedResource( + com.google.cloud.tpu.v2.CreateQueuedResourceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateQueuedResourceMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Deletes a QueuedResource TPU instance.
    +     * 
    + */ + public com.google.longrunning.Operation deleteQueuedResource( + com.google.cloud.tpu.v2.DeleteQueuedResourceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteQueuedResourceMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Resets a QueuedResource TPU instance
    +     * 
    + */ + public com.google.longrunning.Operation resetQueuedResource( + com.google.cloud.tpu.v2.ResetQueuedResourceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getResetQueuedResourceMethod(), getCallOptions(), request); + } + /** * * @@ -1351,6 +1787,73 @@ public com.google.common.util.concurrent.ListenableFuture + * Lists queued resources. + *
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.tpu.v2.ListQueuedResourcesResponse> + listQueuedResources(com.google.cloud.tpu.v2.ListQueuedResourcesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListQueuedResourcesMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Gets details of a queued resource.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.tpu.v2.QueuedResource> + getQueuedResource(com.google.cloud.tpu.v2.GetQueuedResourceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetQueuedResourceMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Creates a QueuedResource TPU instance.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + createQueuedResource(com.google.cloud.tpu.v2.CreateQueuedResourceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateQueuedResourceMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Deletes a QueuedResource TPU instance.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + deleteQueuedResource(com.google.cloud.tpu.v2.DeleteQueuedResourceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteQueuedResourceMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Resets a QueuedResource TPU instance
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + resetQueuedResource(com.google.cloud.tpu.v2.ResetQueuedResourceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getResetQueuedResourceMethod(), getCallOptions()), request); + } + /** * * @@ -1443,12 +1946,17 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1503,6 +2011,33 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.tpu.v2.UpdateNodeRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_LIST_QUEUED_RESOURCES: + serviceImpl.listQueuedResources( + (com.google.cloud.tpu.v2.ListQueuedResourcesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_QUEUED_RESOURCE: + serviceImpl.getQueuedResource( + (com.google.cloud.tpu.v2.GetQueuedResourceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_QUEUED_RESOURCE: + serviceImpl.createQueuedResource( + (com.google.cloud.tpu.v2.CreateQueuedResourceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_QUEUED_RESOURCE: + serviceImpl.deleteQueuedResource( + (com.google.cloud.tpu.v2.DeleteQueuedResourceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RESET_QUEUED_RESOURCE: + serviceImpl.resetQueuedResource( + (com.google.cloud.tpu.v2.ResetQueuedResourceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_GENERATE_SERVICE_IDENTITY: serviceImpl.generateServiceIdentity( (com.google.cloud.tpu.v2.GenerateServiceIdentityRequest) request, @@ -1599,6 +2134,37 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.tpu.v2.UpdateNodeRequest, com.google.longrunning.Operation>( service, METHODID_UPDATE_NODE))) + .addMethod( + getListQueuedResourcesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v2.ListQueuedResourcesRequest, + com.google.cloud.tpu.v2.ListQueuedResourcesResponse>( + service, METHODID_LIST_QUEUED_RESOURCES))) + .addMethod( + getGetQueuedResourceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v2.GetQueuedResourceRequest, + com.google.cloud.tpu.v2.QueuedResource>(service, METHODID_GET_QUEUED_RESOURCE))) + .addMethod( + getCreateQueuedResourceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v2.CreateQueuedResourceRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_QUEUED_RESOURCE))) + .addMethod( + getDeleteQueuedResourceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v2.DeleteQueuedResourceRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_QUEUED_RESOURCE))) + .addMethod( + getResetQueuedResourceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v2.ResetQueuedResourceRequest, + com.google.longrunning.Operation>(service, METHODID_RESET_QUEUED_RESOURCE))) .addMethod( getGenerateServiceIdentityMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -1696,6 +2262,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getStopNodeMethod()) .addMethod(getStartNodeMethod()) .addMethod(getUpdateNodeMethod()) + .addMethod(getListQueuedResourcesMethod()) + .addMethod(getGetQueuedResourceMethod()) + .addMethod(getCreateQueuedResourceMethod()) + .addMethod(getDeleteQueuedResourceMethod()) + .addMethod(getResetQueuedResourceMethod()) .addMethod(getGenerateServiceIdentityMethod()) .addMethod(getListAcceleratorTypesMethod()) .addMethod(getGetAcceleratorTypeMethod()) diff --git a/java-tpu/grpc-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/TpuGrpc.java b/java-tpu/grpc-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/TpuGrpc.java index c6919c892f80..8e54b595aac5 100644 --- a/java-tpu/grpc-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/TpuGrpc.java +++ b/java-tpu/grpc-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/TpuGrpc.java @@ -326,6 +326,49 @@ private TpuGrpc() {} return getUpdateNodeMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest, com.google.longrunning.Operation> + getPerformMaintenanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "PerformMaintenance", + requestType = com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest, com.google.longrunning.Operation> + getPerformMaintenanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest, + com.google.longrunning.Operation> + getPerformMaintenanceMethod; + if ((getPerformMaintenanceMethod = TpuGrpc.getPerformMaintenanceMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getPerformMaintenanceMethod = TpuGrpc.getPerformMaintenanceMethod) == null) { + TpuGrpc.getPerformMaintenanceMethod = + getPerformMaintenanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PerformMaintenance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("PerformMaintenance")) + .build(); + } + } + } + return getPerformMaintenanceMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest, com.google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse> @@ -556,6 +599,57 @@ private TpuGrpc() {} return getResetQueuedResourceMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest, + com.google.longrunning.Operation> + getPerformMaintenanceQueuedResourceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "PerformMaintenanceQueuedResource", + requestType = com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest, + com.google.longrunning.Operation> + getPerformMaintenanceQueuedResourceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest, + com.google.longrunning.Operation> + getPerformMaintenanceQueuedResourceMethod; + if ((getPerformMaintenanceQueuedResourceMethod = + TpuGrpc.getPerformMaintenanceQueuedResourceMethod) + == null) { + synchronized (TpuGrpc.class) { + if ((getPerformMaintenanceQueuedResourceMethod = + TpuGrpc.getPerformMaintenanceQueuedResourceMethod) + == null) { + TpuGrpc.getPerformMaintenanceQueuedResourceMethod = + getPerformMaintenanceQueuedResourceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "PerformMaintenanceQueuedResource")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new TpuMethodDescriptorSupplier("PerformMaintenanceQueuedResource")) + .build(); + } + } + } + return getPerformMaintenanceQueuedResourceMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest, com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse> @@ -834,6 +928,52 @@ private TpuGrpc() {} return getGetGuestAttributesMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.ListReservationsRequest, + com.google.cloud.tpu.v2alpha1.ListReservationsResponse> + getListReservationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListReservations", + requestType = com.google.cloud.tpu.v2alpha1.ListReservationsRequest.class, + responseType = com.google.cloud.tpu.v2alpha1.ListReservationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.ListReservationsRequest, + com.google.cloud.tpu.v2alpha1.ListReservationsResponse> + getListReservationsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.tpu.v2alpha1.ListReservationsRequest, + com.google.cloud.tpu.v2alpha1.ListReservationsResponse> + getListReservationsMethod; + if ((getListReservationsMethod = TpuGrpc.getListReservationsMethod) == null) { + synchronized (TpuGrpc.class) { + if ((getListReservationsMethod = TpuGrpc.getListReservationsMethod) == null) { + TpuGrpc.getListReservationsMethod = + getListReservationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListReservations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2alpha1.ListReservationsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.tpu.v2alpha1.ListReservationsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new TpuMethodDescriptorSupplier("ListReservations")) + .build(); + } + } + } + return getListReservationsMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest, com.google.longrunning.Operation> @@ -1022,6 +1162,20 @@ default void updateNode( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateNodeMethod(), responseObserver); } + /** + * + * + *
    +     * Perform manual maintenance on a node.
    +     * 
    + */ + default void performMaintenance( + com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getPerformMaintenanceMethod(), responseObserver); + } + /** * * @@ -1094,6 +1248,20 @@ default void resetQueuedResource( getResetQueuedResourceMethod(), responseObserver); } + /** + * + * + *
    +     * Perform manual maintenance on specific nodes of a QueuedResource.
    +     * 
    + */ + default void performMaintenanceQueuedResource( + com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getPerformMaintenanceQueuedResourceMethod(), responseObserver); + } + /** * * @@ -1184,6 +1352,21 @@ default void getGuestAttributes( getGetGuestAttributesMethod(), responseObserver); } + /** + * + * + *
    +     * Retrieves the reservations for the given project in the given location.
    +     * 
    + */ + default void listReservations( + com.google.cloud.tpu.v2alpha1.ListReservationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListReservationsMethod(), responseObserver); + } + /** * * @@ -1332,6 +1515,22 @@ public void updateNode( getChannel().newCall(getUpdateNodeMethod(), getCallOptions()), request, responseObserver); } + /** + * + * + *
    +     * Perform manual maintenance on a node.
    +     * 
    + */ + public void performMaintenance( + com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getPerformMaintenanceMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1414,6 +1613,22 @@ public void resetQueuedResource( responseObserver); } + /** + * + * + *
    +     * Perform manual maintenance on specific nodes of a QueuedResource.
    +     * 
    + */ + public void performMaintenanceQueuedResource( + com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getPerformMaintenanceQueuedResourceMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1516,6 +1731,23 @@ public void getGuestAttributes( responseObserver); } + /** + * + * + *
    +     * Retrieves the reservations for the given project in the given location.
    +     * 
    + */ + public void listReservations( + com.google.cloud.tpu.v2alpha1.ListReservationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListReservationsMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1643,6 +1875,19 @@ public com.google.longrunning.Operation updateNode( getChannel(), getUpdateNodeMethod(), getCallOptions(), request); } + /** + * + * + *
    +     * Perform manual maintenance on a node.
    +     * 
    + */ + public com.google.longrunning.Operation performMaintenance( + com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPerformMaintenanceMethod(), getCallOptions(), request); + } + /** * * @@ -1708,6 +1953,19 @@ public com.google.longrunning.Operation resetQueuedResource( getChannel(), getResetQueuedResourceMethod(), getCallOptions(), request); } + /** + * + * + *
    +     * Perform manual maintenance on specific nodes of a QueuedResource.
    +     * 
    + */ + public com.google.longrunning.Operation performMaintenanceQueuedResource( + com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPerformMaintenanceQueuedResourceMethod(), getCallOptions(), request); + } + /** * * @@ -1786,6 +2044,19 @@ public com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse getGuestAttribut getChannel(), getGetGuestAttributesMethod(), getCallOptions(), request); } + /** + * + * + *
    +     * Retrieves the reservations for the given project in the given location.
    +     * 
    + */ + public com.google.cloud.tpu.v2alpha1.ListReservationsResponse listReservations( + com.google.cloud.tpu.v2alpha1.ListReservationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListReservationsMethod(), getCallOptions(), request); + } + /** * * @@ -1910,6 +2181,19 @@ protected TpuFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callO getChannel().newCall(getUpdateNodeMethod(), getCallOptions()), request); } + /** + * + * + *
    +     * Perform manual maintenance on a node.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + performMaintenance(com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getPerformMaintenanceMethod(), getCallOptions()), request); + } + /** * * @@ -1977,6 +2261,21 @@ protected TpuFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callO getChannel().newCall(getResetQueuedResourceMethod(), getCallOptions()), request); } + /** + * + * + *
    +     * Perform manual maintenance on specific nodes of a QueuedResource.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + performMaintenanceQueuedResource( + com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getPerformMaintenanceQueuedResourceMethod(), getCallOptions()), + request); + } + /** * * @@ -2062,6 +2361,20 @@ protected TpuFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callO getChannel().newCall(getGetGuestAttributesMethod(), getCallOptions()), request); } + /** + * + * + *
    +     * Retrieves the reservations for the given project in the given location.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.tpu.v2alpha1.ListReservationsResponse> + listReservations(com.google.cloud.tpu.v2alpha1.ListReservationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListReservationsMethod(), getCallOptions()), request); + } + /** * * @@ -2084,18 +2397,21 @@ protected TpuFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callO private static final int METHODID_STOP_NODE = 4; private static final int METHODID_START_NODE = 5; private static final int METHODID_UPDATE_NODE = 6; - private static final int METHODID_LIST_QUEUED_RESOURCES = 7; - private static final int METHODID_GET_QUEUED_RESOURCE = 8; - private static final int METHODID_CREATE_QUEUED_RESOURCE = 9; - private static final int METHODID_DELETE_QUEUED_RESOURCE = 10; - private static final int METHODID_RESET_QUEUED_RESOURCE = 11; - private static final int METHODID_GENERATE_SERVICE_IDENTITY = 12; - private static final int METHODID_LIST_ACCELERATOR_TYPES = 13; - private static final int METHODID_GET_ACCELERATOR_TYPE = 14; - private static final int METHODID_LIST_RUNTIME_VERSIONS = 15; - private static final int METHODID_GET_RUNTIME_VERSION = 16; - private static final int METHODID_GET_GUEST_ATTRIBUTES = 17; - private static final int METHODID_SIMULATE_MAINTENANCE_EVENT = 18; + private static final int METHODID_PERFORM_MAINTENANCE = 7; + private static final int METHODID_LIST_QUEUED_RESOURCES = 8; + private static final int METHODID_GET_QUEUED_RESOURCE = 9; + private static final int METHODID_CREATE_QUEUED_RESOURCE = 10; + private static final int METHODID_DELETE_QUEUED_RESOURCE = 11; + private static final int METHODID_RESET_QUEUED_RESOURCE = 12; + private static final int METHODID_PERFORM_MAINTENANCE_QUEUED_RESOURCE = 13; + private static final int METHODID_GENERATE_SERVICE_IDENTITY = 14; + private static final int METHODID_LIST_ACCELERATOR_TYPES = 15; + private static final int METHODID_GET_ACCELERATOR_TYPE = 16; + private static final int METHODID_LIST_RUNTIME_VERSIONS = 17; + private static final int METHODID_GET_RUNTIME_VERSION = 18; + private static final int METHODID_GET_GUEST_ATTRIBUTES = 19; + private static final int METHODID_LIST_RESERVATIONS = 20; + private static final int METHODID_SIMULATE_MAINTENANCE_EVENT = 21; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -2150,6 +2466,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.tpu.v2alpha1.UpdateNodeRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_PERFORM_MAINTENANCE: + serviceImpl.performMaintenance( + (com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_LIST_QUEUED_RESOURCES: serviceImpl.listQueuedResources( (com.google.cloud.tpu.v2alpha1.ListQueuedResourcesRequest) request, @@ -2178,6 +2499,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.tpu.v2alpha1.ResetQueuedResourceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_PERFORM_MAINTENANCE_QUEUED_RESOURCE: + serviceImpl.performMaintenanceQueuedResource( + (com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_GENERATE_SERVICE_IDENTITY: serviceImpl.generateServiceIdentity( (com.google.cloud.tpu.v2alpha1.GenerateServiceIdentityRequest) request, @@ -2218,6 +2544,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse>) responseObserver); break; + case METHODID_LIST_RESERVATIONS: + serviceImpl.listReservations( + (com.google.cloud.tpu.v2alpha1.ListReservationsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; case METHODID_SIMULATE_MAINTENANCE_EVENT: serviceImpl.simulateMaintenanceEvent( (com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest) request, @@ -2283,6 +2615,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.tpu.v2alpha1.UpdateNodeRequest, com.google.longrunning.Operation>(service, METHODID_UPDATE_NODE))) + .addMethod( + getPerformMaintenanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest, + com.google.longrunning.Operation>(service, METHODID_PERFORM_MAINTENANCE))) .addMethod( getListQueuedResourcesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -2315,6 +2653,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.tpu.v2alpha1.ResetQueuedResourceRequest, com.google.longrunning.Operation>(service, METHODID_RESET_QUEUED_RESOURCE))) + .addMethod( + getPerformMaintenanceQueuedResourceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest, + com.google.longrunning.Operation>( + service, METHODID_PERFORM_MAINTENANCE_QUEUED_RESOURCE))) .addMethod( getGenerateServiceIdentityMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -2357,6 +2702,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.tpu.v2alpha1.GetGuestAttributesRequest, com.google.cloud.tpu.v2alpha1.GetGuestAttributesResponse>( service, METHODID_GET_GUEST_ATTRIBUTES))) + .addMethod( + getListReservationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.tpu.v2alpha1.ListReservationsRequest, + com.google.cloud.tpu.v2alpha1.ListReservationsResponse>( + service, METHODID_LIST_RESERVATIONS))) .addMethod( getSimulateMaintenanceEventMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -2420,17 +2772,20 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getStopNodeMethod()) .addMethod(getStartNodeMethod()) .addMethod(getUpdateNodeMethod()) + .addMethod(getPerformMaintenanceMethod()) .addMethod(getListQueuedResourcesMethod()) .addMethod(getGetQueuedResourceMethod()) .addMethod(getCreateQueuedResourceMethod()) .addMethod(getDeleteQueuedResourceMethod()) .addMethod(getResetQueuedResourceMethod()) + .addMethod(getPerformMaintenanceQueuedResourceMethod()) .addMethod(getGenerateServiceIdentityMethod()) .addMethod(getListAcceleratorTypesMethod()) .addMethod(getGetAcceleratorTypeMethod()) .addMethod(getListRuntimeVersionsMethod()) .addMethod(getGetRuntimeVersionMethod()) .addMethod(getGetGuestAttributesMethod()) + .addMethod(getListReservationsMethod()) .addMethod(getSimulateMaintenanceEventMethod()) .build(); } diff --git a/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/CloudTpuProto.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/CloudTpuProto.java index 649e62dc0e0f..48e9c8407159 100644 --- a/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/CloudTpuProto.java +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/CloudTpuProto.java @@ -133,7 +133,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ions.proto\032\037google/protobuf/timestamp.pr" + "oto\"9\n\020SchedulingConfig\022\023\n\013preemptible\030\001" + " \001(\010\022\020\n\010reserved\030\002 \001(\010\"3\n\017NetworkEndpoin" - + "t\022\022\n\nip_address\030\001 \001(\t\022\014\n\004port\030\002 \001(\005\"\264\n\n\004" + + "t\022\022\n\nip_address\030\001 \001(\t\022\014\n\004port\030\002 \001(\005\"\301\n\n\004" + "Node\022\024\n\004name\030\001 \001(\tB\006\340A\005\340A\003\022\023\n\013descriptio" + "n\030\003 \001(\t\022\035\n\020accelerator_type\030\005 \001(\tB\003\340A\002\022\026" + "\n\nip_address\030\010 \001(\tB\002\030\001\022\020\n\004port\030\016 \001(\tB\002\030\001" @@ -153,131 +153,132 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_version\030& \001(\0162$.google.cloud.tpu.v1.Nod" + "e.ApiVersionB\003\340A\003\0223\n\010symptoms\030\' \003(\0132\034.go" + "ogle.cloud.tpu.v1.SymptomB\003\340A\003\032-\n\013Labels" - + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\341\001" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\356\001" + "\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATI" + "NG\020\001\022\t\n\005READY\020\002\022\016\n\nRESTARTING\020\003\022\r\n\tREIMA" + "GING\020\004\022\014\n\010DELETING\020\005\022\r\n\tREPAIRING\020\006\022\013\n\007S" + "TOPPED\020\010\022\014\n\010STOPPING\020\t\022\014\n\010STARTING\020\n\022\r\n\t" + "PREEMPTED\020\013\022\016\n\nTERMINATED\020\014\022\n\n\006HIDING\020\r\022" - + "\n\n\006HIDDEN\020\016\022\014\n\010UNHIDING\020\017\"\211\001\n\006Health\022\026\n\022" - + "HEALTH_UNSPECIFIED\020\000\022\013\n\007HEALTHY\020\001\022\030\n\024DEP" - + "RECATED_UNHEALTHY\020\002\022\013\n\007TIMEOUT\020\003\022\030\n\024UNHE" - + "ALTHY_TENSORFLOW\020\004\022\031\n\025UNHEALTHY_MAINTENA" - + "NCE\020\005\"O\n\nApiVersion\022\033\n\027API_VERSION_UNSPE" - + "CIFIED\020\000\022\r\n\tV1_ALPHA1\020\001\022\006\n\002V1\020\002\022\r\n\tV2_AL" - + "PHA1\020\003:R\352AO\n\027tpu.googleapis.com/Node\0224pr" - + "ojects/{project}/locations/{location}/no" - + "des/{node}\"j\n\020ListNodesRequest\022/\n\006parent" - + "\030\001 \001(\tB\037\340A\002\372A\031\022\027tpu.googleapis.com/Node\022" - + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"k" - + "\n\021ListNodesResponse\022(\n\005nodes\030\001 \003(\0132\031.goo" - + "gle.cloud.tpu.v1.Node\022\027\n\017next_page_token" - + "\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"?\n\016GetNodeRe" - + "quest\022-\n\004name\030\001 \001(\tB\037\340A\002\372A\031\n\027tpu.googlea" - + "pis.com/Node\"\203\001\n\021CreateNodeRequest\022/\n\006pa" - + "rent\030\001 \001(\tB\037\340A\002\372A\031\022\027tpu.googleapis.com/N" - + "ode\022\017\n\007node_id\030\002 \001(\t\022,\n\004node\030\003 \001(\0132\031.goo" - + "gle.cloud.tpu.v1.NodeB\003\340A\002\"B\n\021DeleteNode" - + "Request\022-\n\004name\030\001 \001(\tB\037\340A\002\372A\031\n\027tpu.googl" - + "eapis.com/Node\">\n\022ReimageNodeRequest\022\014\n\004" - + "name\030\001 \001(\t\022\032\n\022tensorflow_version\030\002 \001(\t\"\037" - + "\n\017StopNodeRequest\022\014\n\004name\030\001 \001(\t\" \n\020Start" - + "NodeRequest\022\014\n\004name\030\001 \001(\t\"\257\001\n\021TensorFlow" - + "Version\022\014\n\004name\030\001 \001(\t\022\017\n\007version\030\002 \001(\t:{" - + "\352Ax\n$tpu.googleapis.com/TensorFlowVersio" - + "n\022Pprojects/{project}/locations/{locatio" - + "n}/tensorFlowVersions/{tensor_flow_versi" - + "on}\"Y\n\033GetTensorFlowVersionRequest\022:\n\004na" - + "me\030\001 \001(\tB,\340A\002\372A&\n$tpu.googleapis.com/Ten" - + "sorFlowVersion\"\246\001\n\035ListTensorFlowVersion" - + "sRequest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\n$tpu.go" - + "ogleapis.com/TensorFlowVersion\022\021\n\tpage_s" - + "ize\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030" - + "\005 \001(\t\022\020\n\010order_by\030\006 \001(\t\"\223\001\n\036ListTensorFl" - + "owVersionsResponse\022C\n\023tensorflow_version" - + "s\030\001 \003(\0132&.google.cloud.tpu.v1.TensorFlow" - + "Version\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unre" - + "achable\030\003 \003(\t\"\243\001\n\017AcceleratorType\022\014\n\004nam" - + "e\030\001 \001(\t\022\014\n\004type\030\002 \001(\t:t\352Aq\n\"tpu.googleap" - + "is.com/AcceleratorType\022Kprojects/{projec" - + "t}/locations/{location}/acceleratorTypes" - + "/{accelerator_type}\"U\n\031GetAcceleratorTyp" - + "eRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"tpu.goog" - + "leapis.com/AcceleratorType\"\242\001\n\033ListAccel" - + "eratorTypesRequest\022:\n\006parent\030\001 \001(\tB*\340A\002\372" - + "A$\n\"tpu.googleapis.com/AcceleratorType\022\021" - + "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n" - + "\006filter\030\005 \001(\t\022\020\n\010order_by\030\006 \001(\t\"\215\001\n\034List" - + "AcceleratorTypesResponse\022?\n\021accelerator_" - + "types\030\001 \003(\0132$.google.cloud.tpu.v1.Accele" - + "ratorType\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013un" - + "reachable\030\003 \003(\t\"\326\001\n\021OperationMetadata\022/\n" - + "\013create_time\030\001 \001(\0132\032.google.protobuf.Tim" - + "estamp\022,\n\010end_time\030\002 \001(\0132\032.google.protob" - + "uf.Timestamp\022\016\n\006target\030\003 \001(\t\022\014\n\004verb\030\004 \001" - + "(\t\022\025\n\rstatus_detail\030\005 \001(\t\022\030\n\020cancel_requ" - + "ested\030\006 \001(\010\022\023\n\013api_version\030\007 \001(\t\"\305\002\n\007Sym" - + "ptom\022/\n\013create_time\030\001 \001(\0132\032.google.proto" - + "buf.Timestamp\022>\n\014symptom_type\030\002 \001(\0162(.go" - + "ogle.cloud.tpu.v1.Symptom.SymptomType\022\017\n" - + "\007details\030\003 \001(\t\022\021\n\tworker_id\030\004 \001(\t\"\244\001\n\013Sy" - + "mptomType\022\034\n\030SYMPTOM_TYPE_UNSPECIFIED\020\000\022" - + "\016\n\nLOW_MEMORY\020\001\022\021\n\rOUT_OF_MEMORY\020\002\022\025\n\021EX" - + "ECUTE_TIMED_OUT\020\003\022\023\n\017MESH_BUILD_FAIL\020\004\022\025" - + "\n\021HBM_OUT_OF_MEMORY\020\005\022\021\n\rPROJECT_ABUSE\020\006" - + "2\336\017\n\003Tpu\022\226\001\n\tListNodes\022%.google.cloud.tp" - + "u.v1.ListNodesRequest\032&.google.cloud.tpu" - + ".v1.ListNodesResponse\":\332A\006parent\202\323\344\223\002+\022)" - + "/v1/{parent=projects/*/locations/*}/node" - + "s\022\203\001\n\007GetNode\022#.google.cloud.tpu.v1.GetN" - + "odeRequest\032\031.google.cloud.tpu.v1.Node\"8\332" - + "A\004name\202\323\344\223\002+\022)/v1/{name=projects/*/locat" - + "ions/*/nodes/*}\022\276\001\n\nCreateNode\022&.google." - + "cloud.tpu.v1.CreateNodeRequest\032\035.google." - + "longrunning.Operation\"i\312A\031\n\004Node\022\021Operat" - + "ionMetadata\332A\023parent,node,node_id\202\323\344\223\0021\"" - + ")/v1/{parent=projects/*/locations/*}/nod" - + "es:\004node\022\251\001\n\nDeleteNode\022&.google.cloud.t" - + "pu.v1.DeleteNodeRequest\032\035.google.longrun" - + "ning.Operation\"T\312A\031\n\004Node\022\021OperationMeta" - + "data\332A\004name\202\323\344\223\002+*)/v1/{name=projects/*/" - + "locations/*/nodes/*}\022\257\001\n\013ReimageNode\022\'.g" - + "oogle.cloud.tpu.v1.ReimageNodeRequest\032\035." - + "google.longrunning.Operation\"X\312A\031\n\004Node\022" - + "\021OperationMetadata\202\323\344\223\0026\"1/v1/{name=proj" - + "ects/*/locations/*/nodes/*}:reimage:\001*\022\246" - + "\001\n\010StopNode\022$.google.cloud.tpu.v1.StopNo" - + "deRequest\032\035.google.longrunning.Operation" - + "\"U\312A\031\n\004Node\022\021OperationMetadata\202\323\344\223\0023\"./v" - + "1/{name=projects/*/locations/*/nodes/*}:" - + "stop:\001*\022\251\001\n\tStartNode\022%.google.cloud.tpu" - + ".v1.StartNodeRequest\032\035.google.longrunnin" - + "g.Operation\"V\312A\031\n\004Node\022\021OperationMetadat" - + "a\202\323\344\223\0024\"//v1/{name=projects/*/locations/" - + "*/nodes/*}:start:\001*\022\312\001\n\026ListTensorFlowVe" - + "rsions\0222.google.cloud.tpu.v1.ListTensorF" - + "lowVersionsRequest\0323.google.cloud.tpu.v1" - + ".ListTensorFlowVersionsResponse\"G\332A\006pare" - + "nt\202\323\344\223\0028\0226/v1/{parent=projects/*/locatio" - + "ns/*}/tensorflowVersions\022\267\001\n\024GetTensorFl" - + "owVersion\0220.google.cloud.tpu.v1.GetTenso" - + "rFlowVersionRequest\032&.google.cloud.tpu.v" - + "1.TensorFlowVersion\"E\332A\004name\202\323\344\223\0028\0226/v1/" - + "{name=projects/*/locations/*/tensorflowV" - + "ersions/*}\022\302\001\n\024ListAcceleratorTypes\0220.go" - + "ogle.cloud.tpu.v1.ListAcceleratorTypesRe" - + "quest\0321.google.cloud.tpu.v1.ListAccelera" - + "torTypesResponse\"E\332A\006parent\202\323\344\223\0026\0224/v1/{" - + "parent=projects/*/locations/*}/accelerat" - + "orTypes\022\257\001\n\022GetAcceleratorType\022..google." - + "cloud.tpu.v1.GetAcceleratorTypeRequest\032$" - + ".google.cloud.tpu.v1.AcceleratorType\"C\332A" - + "\004name\202\323\344\223\0026\0224/v1/{name=projects/*/locati" - + "ons/*/acceleratorTypes/*}\032F\312A\022tpu.google" - + "apis.com\322A.https://www.googleapis.com/au" - + "th/cloud-platformBU\n\027com.google.cloud.tp" - + "u.v1B\rCloudTpuProtoP\001Z)cloud.google.com/" - + "go/tpu/apiv1/tpupb;tpupbb\006proto3" + + "\n\n\006HIDDEN\020\016\022\014\n\010UNHIDING\020\017\022\013\n\007UNKNOWN\020\020\"\211" + + "\001\n\006Health\022\026\n\022HEALTH_UNSPECIFIED\020\000\022\013\n\007HEA" + + "LTHY\020\001\022\030\n\024DEPRECATED_UNHEALTHY\020\002\022\013\n\007TIME" + + "OUT\020\003\022\030\n\024UNHEALTHY_TENSORFLOW\020\004\022\031\n\025UNHEA" + + "LTHY_MAINTENANCE\020\005\"O\n\nApiVersion\022\033\n\027API_" + + "VERSION_UNSPECIFIED\020\000\022\r\n\tV1_ALPHA1\020\001\022\006\n\002" + + "V1\020\002\022\r\n\tV2_ALPHA1\020\003:R\352AO\n\027tpu.googleapis" + + ".com/Node\0224projects/{project}/locations/" + + "{location}/nodes/{node}\"j\n\020ListNodesRequ" + + "est\022/\n\006parent\030\001 \001(\tB\037\340A\002\372A\031\022\027tpu.googlea" + + "pis.com/Node\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_" + + "token\030\003 \001(\t\"k\n\021ListNodesResponse\022(\n\005node" + + "s\030\001 \003(\0132\031.google.cloud.tpu.v1.Node\022\027\n\017ne" + + "xt_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t" + + "\"?\n\016GetNodeRequest\022-\n\004name\030\001 \001(\tB\037\340A\002\372A\031" + + "\n\027tpu.googleapis.com/Node\"\203\001\n\021CreateNode" + + "Request\022/\n\006parent\030\001 \001(\tB\037\340A\002\372A\031\022\027tpu.goo" + + "gleapis.com/Node\022\017\n\007node_id\030\002 \001(\t\022,\n\004nod" + + "e\030\003 \001(\0132\031.google.cloud.tpu.v1.NodeB\003\340A\002\"" + + "B\n\021DeleteNodeRequest\022-\n\004name\030\001 \001(\tB\037\340A\002\372" + + "A\031\n\027tpu.googleapis.com/Node\">\n\022ReimageNo" + + "deRequest\022\014\n\004name\030\001 \001(\t\022\032\n\022tensorflow_ve" + + "rsion\030\002 \001(\t\"\037\n\017StopNodeRequest\022\014\n\004name\030\001" + + " \001(\t\" \n\020StartNodeRequest\022\014\n\004name\030\001 \001(\t\"\257" + + "\001\n\021TensorFlowVersion\022\014\n\004name\030\001 \001(\t\022\017\n\007ve" + + "rsion\030\002 \001(\t:{\352Ax\n$tpu.googleapis.com/Ten" + + "sorFlowVersion\022Pprojects/{project}/locat" + + "ions/{location}/tensorFlowVersions/{tens" + + "or_flow_version}\"Y\n\033GetTensorFlowVersion" + + "Request\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$tpu.googl" + + "eapis.com/TensorFlowVersion\"\246\001\n\035ListTens" + + "orFlowVersionsRequest\022<\n\006parent\030\001 \001(\tB,\340" + + "A\002\372A&\n$tpu.googleapis.com/TensorFlowVers" + + "ion\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001" + + "(\t\022\016\n\006filter\030\005 \001(\t\022\020\n\010order_by\030\006 \001(\t\"\223\001\n" + + "\036ListTensorFlowVersionsResponse\022C\n\023tenso" + + "rflow_versions\030\001 \003(\0132&.google.cloud.tpu." + + "v1.TensorFlowVersion\022\027\n\017next_page_token\030" + + "\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\243\001\n\017Accelerat" + + "orType\022\014\n\004name\030\001 \001(\t\022\014\n\004type\030\002 \001(\t:t\352Aq\n" + + "\"tpu.googleapis.com/AcceleratorType\022Kpro" + + "jects/{project}/locations/{location}/acc" + + "eleratorTypes/{accelerator_type}\"U\n\031GetA" + + "cceleratorTypeRequest\0228\n\004name\030\001 \001(\tB*\340A\002" + + "\372A$\n\"tpu.googleapis.com/AcceleratorType\"" + + "\242\001\n\033ListAcceleratorTypesRequest\022:\n\006paren" + + "t\030\001 \001(\tB*\340A\002\372A$\n\"tpu.googleapis.com/Acce" + + "leratorType\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" + + "oken\030\003 \001(\t\022\016\n\006filter\030\005 \001(\t\022\020\n\010order_by\030\006" + + " \001(\t\"\215\001\n\034ListAcceleratorTypesResponse\022?\n" + + "\021accelerator_types\030\001 \003(\0132$.google.cloud." + + "tpu.v1.AcceleratorType\022\027\n\017next_page_toke" + + "n\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\326\001\n\021Operati" + + "onMetadata\022/\n\013create_time\030\001 \001(\0132\032.google" + + ".protobuf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032." + + "google.protobuf.Timestamp\022\016\n\006target\030\003 \001(" + + "\t\022\014\n\004verb\030\004 \001(\t\022\025\n\rstatus_detail\030\005 \001(\t\022\030" + + "\n\020cancel_requested\030\006 \001(\010\022\023\n\013api_version\030" + + "\007 \001(\t\"\305\002\n\007Symptom\022/\n\013create_time\030\001 \001(\0132\032" + + ".google.protobuf.Timestamp\022>\n\014symptom_ty" + + "pe\030\002 \001(\0162(.google.cloud.tpu.v1.Symptom.S" + + "ymptomType\022\017\n\007details\030\003 \001(\t\022\021\n\tworker_id" + + "\030\004 \001(\t\"\244\001\n\013SymptomType\022\034\n\030SYMPTOM_TYPE_U" + + "NSPECIFIED\020\000\022\016\n\nLOW_MEMORY\020\001\022\021\n\rOUT_OF_M" + + "EMORY\020\002\022\025\n\021EXECUTE_TIMED_OUT\020\003\022\023\n\017MESH_B" + + "UILD_FAIL\020\004\022\025\n\021HBM_OUT_OF_MEMORY\020\005\022\021\n\rPR" + + "OJECT_ABUSE\020\0062\336\017\n\003Tpu\022\226\001\n\tListNodes\022%.go" + + "ogle.cloud.tpu.v1.ListNodesRequest\032&.goo" + + "gle.cloud.tpu.v1.ListNodesResponse\":\332A\006p" + + "arent\202\323\344\223\002+\022)/v1/{parent=projects/*/loca" + + "tions/*}/nodes\022\203\001\n\007GetNode\022#.google.clou" + + "d.tpu.v1.GetNodeRequest\032\031.google.cloud.t" + + "pu.v1.Node\"8\332A\004name\202\323\344\223\002+\022)/v1/{name=pro" + + "jects/*/locations/*/nodes/*}\022\276\001\n\nCreateN" + + "ode\022&.google.cloud.tpu.v1.CreateNodeRequ" + + "est\032\035.google.longrunning.Operation\"i\312A\031\n" + + "\004Node\022\021OperationMetadata\332A\023parent,node,n" + + "ode_id\202\323\344\223\0021\")/v1/{parent=projects/*/loc" + + "ations/*}/nodes:\004node\022\251\001\n\nDeleteNode\022&.g" + + "oogle.cloud.tpu.v1.DeleteNodeRequest\032\035.g" + + "oogle.longrunning.Operation\"T\312A\031\n\004Node\022\021" + + "OperationMetadata\332A\004name\202\323\344\223\002+*)/v1/{nam" + + "e=projects/*/locations/*/nodes/*}\022\257\001\n\013Re" + + "imageNode\022\'.google.cloud.tpu.v1.ReimageN" + + "odeRequest\032\035.google.longrunning.Operatio" + + "n\"X\312A\031\n\004Node\022\021OperationMetadata\202\323\344\223\0026\"1/" + + "v1/{name=projects/*/locations/*/nodes/*}" + + ":reimage:\001*\022\246\001\n\010StopNode\022$.google.cloud." + + "tpu.v1.StopNodeRequest\032\035.google.longrunn" + + "ing.Operation\"U\312A\031\n\004Node\022\021OperationMetad" + + "ata\202\323\344\223\0023\"./v1/{name=projects/*/location" + + "s/*/nodes/*}:stop:\001*\022\251\001\n\tStartNode\022%.goo" + + "gle.cloud.tpu.v1.StartNodeRequest\032\035.goog" + + "le.longrunning.Operation\"V\312A\031\n\004Node\022\021Ope" + + "rationMetadata\202\323\344\223\0024\"//v1/{name=projects" + + "/*/locations/*/nodes/*}:start:\001*\022\312\001\n\026Lis" + + "tTensorFlowVersions\0222.google.cloud.tpu.v" + + "1.ListTensorFlowVersionsRequest\0323.google" + + ".cloud.tpu.v1.ListTensorFlowVersionsResp" + + "onse\"G\332A\006parent\202\323\344\223\0028\0226/v1/{parent=proje" + + "cts/*/locations/*}/tensorflowVersions\022\267\001" + + "\n\024GetTensorFlowVersion\0220.google.cloud.tp" + + "u.v1.GetTensorFlowVersionRequest\032&.googl" + + "e.cloud.tpu.v1.TensorFlowVersion\"E\332A\004nam" + + "e\202\323\344\223\0028\0226/v1/{name=projects/*/locations/" + + "*/tensorflowVersions/*}\022\302\001\n\024ListAccelera" + + "torTypes\0220.google.cloud.tpu.v1.ListAccel" + + "eratorTypesRequest\0321.google.cloud.tpu.v1" + + ".ListAcceleratorTypesResponse\"E\332A\006parent" + + "\202\323\344\223\0026\0224/v1/{parent=projects/*/locations" + + "/*}/acceleratorTypes\022\257\001\n\022GetAcceleratorT" + + "ype\022..google.cloud.tpu.v1.GetAccelerator" + + "TypeRequest\032$.google.cloud.tpu.v1.Accele" + + "ratorType\"C\332A\004name\202\323\344\223\0026\0224/v1/{name=proj" + + "ects/*/locations/*/acceleratorTypes/*}\032F" + + "\312A\022tpu.googleapis.com\322A.https://www.goog" + + "leapis.com/auth/cloud-platformBU\n\027com.go" + + "ogle.cloud.tpu.v1B\rCloudTpuProtoP\001Z)clou" + + "d.google.com/go/tpu/apiv1/tpupb;tpupbb\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/Node.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/Node.java index 80c6cb3a7bef..e868b5bcc4bf 100644 --- a/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/Node.java +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/Node.java @@ -250,6 +250,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * UNHIDING = 15; */ UNHIDING(15), + /** + * + * + *
    +     * TPU node has unknown state after a failed repair.
    +     * 
    + * + * UNKNOWN = 16; + */ + UNKNOWN(16), UNRECOGNIZED(-1), ; @@ -405,6 +415,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * UNHIDING = 15; */ public static final int UNHIDING_VALUE = 15; + /** + * + * + *
    +     * TPU node has unknown state after a failed repair.
    +     * 
    + * + * UNKNOWN = 16; + */ + public static final int UNKNOWN_VALUE = 16; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -460,6 +480,8 @@ public static State forNumber(int value) { return HIDDEN; case 15: return UNHIDING; + case 16: + return UNKNOWN; default: return null; } @@ -1092,7 +1114,7 @@ public com.google.protobuf.ByteString getAcceleratorTypeBytes() { * string ip_address = 8 [deprecated = true]; * * @deprecated google.cloud.tpu.v1.Node.ip_address is deprecated. See - * google/cloud/tpu/v1/cloud_tpu.proto;l=279 + * google/cloud/tpu/v1/cloud_tpu.proto;l=282 * @return The ipAddress. */ @java.lang.Override @@ -1120,7 +1142,7 @@ public java.lang.String getIpAddress() { * string ip_address = 8 [deprecated = true]; * * @deprecated google.cloud.tpu.v1.Node.ip_address is deprecated. See - * google/cloud/tpu/v1/cloud_tpu.proto;l=279 + * google/cloud/tpu/v1/cloud_tpu.proto;l=282 * @return The bytes for ipAddress. */ @java.lang.Override @@ -1152,7 +1174,7 @@ public com.google.protobuf.ByteString getIpAddressBytes() { * string port = 14 [deprecated = true]; * * @deprecated google.cloud.tpu.v1.Node.port is deprecated. See - * google/cloud/tpu/v1/cloud_tpu.proto;l=283 + * google/cloud/tpu/v1/cloud_tpu.proto;l=286 * @return The port. */ @java.lang.Override @@ -1179,7 +1201,7 @@ public java.lang.String getPort() { * string port = 14 [deprecated = true]; * * @deprecated google.cloud.tpu.v1.Node.port is deprecated. See - * google/cloud/tpu/v1/cloud_tpu.proto;l=283 + * google/cloud/tpu/v1/cloud_tpu.proto;l=286 * @return The bytes for port. */ @java.lang.Override @@ -3243,7 +3265,7 @@ public Builder setAcceleratorTypeBytes(com.google.protobuf.ByteString value) { * string ip_address = 8 [deprecated = true]; * * @deprecated google.cloud.tpu.v1.Node.ip_address is deprecated. See - * google/cloud/tpu/v1/cloud_tpu.proto;l=279 + * google/cloud/tpu/v1/cloud_tpu.proto;l=282 * @return The ipAddress. */ @java.lang.Deprecated @@ -3270,7 +3292,7 @@ public java.lang.String getIpAddress() { * string ip_address = 8 [deprecated = true]; * * @deprecated google.cloud.tpu.v1.Node.ip_address is deprecated. See - * google/cloud/tpu/v1/cloud_tpu.proto;l=279 + * google/cloud/tpu/v1/cloud_tpu.proto;l=282 * @return The bytes for ipAddress. */ @java.lang.Deprecated @@ -3297,7 +3319,7 @@ public com.google.protobuf.ByteString getIpAddressBytes() { * string ip_address = 8 [deprecated = true]; * * @deprecated google.cloud.tpu.v1.Node.ip_address is deprecated. See - * google/cloud/tpu/v1/cloud_tpu.proto;l=279 + * google/cloud/tpu/v1/cloud_tpu.proto;l=282 * @param value The ipAddress to set. * @return This builder for chaining. */ @@ -3323,7 +3345,7 @@ public Builder setIpAddress(java.lang.String value) { * string ip_address = 8 [deprecated = true]; * * @deprecated google.cloud.tpu.v1.Node.ip_address is deprecated. See - * google/cloud/tpu/v1/cloud_tpu.proto;l=279 + * google/cloud/tpu/v1/cloud_tpu.proto;l=282 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3345,7 +3367,7 @@ public Builder clearIpAddress() { * string ip_address = 8 [deprecated = true]; * * @deprecated google.cloud.tpu.v1.Node.ip_address is deprecated. See - * google/cloud/tpu/v1/cloud_tpu.proto;l=279 + * google/cloud/tpu/v1/cloud_tpu.proto;l=282 * @param value The bytes for ipAddress to set. * @return This builder for chaining. */ @@ -3373,7 +3395,7 @@ public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { * string port = 14 [deprecated = true]; * * @deprecated google.cloud.tpu.v1.Node.port is deprecated. See - * google/cloud/tpu/v1/cloud_tpu.proto;l=283 + * google/cloud/tpu/v1/cloud_tpu.proto;l=286 * @return The port. */ @java.lang.Deprecated @@ -3399,7 +3421,7 @@ public java.lang.String getPort() { * string port = 14 [deprecated = true]; * * @deprecated google.cloud.tpu.v1.Node.port is deprecated. See - * google/cloud/tpu/v1/cloud_tpu.proto;l=283 + * google/cloud/tpu/v1/cloud_tpu.proto;l=286 * @return The bytes for port. */ @java.lang.Deprecated @@ -3425,7 +3447,7 @@ public com.google.protobuf.ByteString getPortBytes() { * string port = 14 [deprecated = true]; * * @deprecated google.cloud.tpu.v1.Node.port is deprecated. See - * google/cloud/tpu/v1/cloud_tpu.proto;l=283 + * google/cloud/tpu/v1/cloud_tpu.proto;l=286 * @param value The port to set. * @return This builder for chaining. */ @@ -3450,7 +3472,7 @@ public Builder setPort(java.lang.String value) { * string port = 14 [deprecated = true]; * * @deprecated google.cloud.tpu.v1.Node.port is deprecated. See - * google/cloud/tpu/v1/cloud_tpu.proto;l=283 + * google/cloud/tpu/v1/cloud_tpu.proto;l=286 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3471,7 +3493,7 @@ public Builder clearPort() { * string port = 14 [deprecated = true]; * * @deprecated google.cloud.tpu.v1.Node.port is deprecated. See - * google/cloud/tpu/v1/cloud_tpu.proto;l=283 + * google/cloud/tpu/v1/cloud_tpu.proto;l=286 * @param value The bytes for port to set. * @return This builder for chaining. */ diff --git a/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/NodeOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/NodeOrBuilder.java index 7af52dcea6ba..bd307502f252 100644 --- a/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/NodeOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/java/com/google/cloud/tpu/v1/NodeOrBuilder.java @@ -115,7 +115,7 @@ public interface NodeOrBuilder * string ip_address = 8 [deprecated = true]; * * @deprecated google.cloud.tpu.v1.Node.ip_address is deprecated. See - * google/cloud/tpu/v1/cloud_tpu.proto;l=279 + * google/cloud/tpu/v1/cloud_tpu.proto;l=282 * @return The ipAddress. */ @java.lang.Deprecated @@ -132,7 +132,7 @@ public interface NodeOrBuilder * string ip_address = 8 [deprecated = true]; * * @deprecated google.cloud.tpu.v1.Node.ip_address is deprecated. See - * google/cloud/tpu/v1/cloud_tpu.proto;l=279 + * google/cloud/tpu/v1/cloud_tpu.proto;l=282 * @return The bytes for ipAddress. */ @java.lang.Deprecated @@ -149,7 +149,7 @@ public interface NodeOrBuilder * string port = 14 [deprecated = true]; * * @deprecated google.cloud.tpu.v1.Node.port is deprecated. See - * google/cloud/tpu/v1/cloud_tpu.proto;l=283 + * google/cloud/tpu/v1/cloud_tpu.proto;l=286 * @return The port. */ @java.lang.Deprecated @@ -165,7 +165,7 @@ public interface NodeOrBuilder * string port = 14 [deprecated = true]; * * @deprecated google.cloud.tpu.v1.Node.port is deprecated. See - * google/cloud/tpu/v1/cloud_tpu.proto;l=283 + * google/cloud/tpu/v1/cloud_tpu.proto;l=286 * @return The bytes for port. */ @java.lang.Deprecated diff --git a/java-tpu/proto-google-cloud-tpu-v1/src/main/proto/google/cloud/tpu/v1/cloud_tpu.proto b/java-tpu/proto-google-cloud-tpu-v1/src/main/proto/google/cloud/tpu/v1/cloud_tpu.proto index 3ad0bb109b37..c1d6cc630460 100644 --- a/java-tpu/proto-google-cloud-tpu-v1/src/main/proto/google/cloud/tpu/v1/cloud_tpu.proto +++ b/java-tpu/proto-google-cloud-tpu-v1/src/main/proto/google/cloud/tpu/v1/cloud_tpu.proto @@ -222,6 +222,9 @@ message Node { // TPU node is currently unhiding. UNHIDING = 15; + + // TPU node has unknown state after a failed repair. + UNKNOWN = 16; } // Health defines the status of a TPU node as reported by diff --git a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AcceleratorConfig.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AcceleratorConfig.java index 882c588ba04e..5f4d38bb67a7 100644 --- a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AcceleratorConfig.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AcceleratorConfig.java @@ -114,6 +114,36 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * V4 = 7; */ V4(7), + /** + * + * + *
    +     * TPU v5lite pod.
    +     * 
    + * + * V5LITE_POD = 9; + */ + V5LITE_POD(9), + /** + * + * + *
    +     * TPU v5p.
    +     * 
    + * + * V5P = 10; + */ + V5P(10), + /** + * + * + *
    +     * TPU v6e.
    +     * 
    + * + * V6E = 11; + */ + V6E(11), UNRECOGNIZED(-1), ; @@ -157,6 +187,36 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * V4 = 7; */ public static final int V4_VALUE = 7; + /** + * + * + *
    +     * TPU v5lite pod.
    +     * 
    + * + * V5LITE_POD = 9; + */ + public static final int V5LITE_POD_VALUE = 9; + /** + * + * + *
    +     * TPU v5p.
    +     * 
    + * + * V5P = 10; + */ + public static final int V5P_VALUE = 10; + /** + * + * + *
    +     * TPU v6e.
    +     * 
    + * + * V6E = 11; + */ + public static final int V6E_VALUE = 11; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -190,6 +250,12 @@ public static Type forNumber(int value) { return V3; case 7: return V4; + case 9: + return V5LITE_POD; + case 10: + return V5P; + case 11: + return V6E; default: return null; } diff --git a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/CloudTpuProto.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/CloudTpuProto.java index f14300d27221..1771d507f11c 100644 --- a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/CloudTpuProto.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/CloudTpuProto.java @@ -76,6 +76,70 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_tpu_v2_Node_MetadataEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_tpu_v2_Node_MetadataEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_QueuedResource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_QueuedResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_QueuedResource_Tpu_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_QueuedResource_Tpu_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_QueuedResource_Tpu_NodeSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_QueuedResource_Tpu_NodeSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_QueuedResource_Tpu_NodeSpec_MultisliceParams_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_QueuedResource_Tpu_NodeSpec_MultisliceParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_QueuedResource_Spot_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_QueuedResource_Spot_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_QueuedResource_Guaranteed_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_QueuedResource_Guaranteed_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_QueuedResource_QueueingPolicy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_QueuedResource_QueueingPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_QueuedResourceState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_QueuedResourceState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_QueuedResourceState_CreatingData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_QueuedResourceState_CreatingData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_QueuedResourceState_AcceptedData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_QueuedResourceState_AcceptedData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_QueuedResourceState_ProvisioningData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_QueuedResourceState_ProvisioningData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_QueuedResourceState_FailedData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_QueuedResourceState_FailedData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_QueuedResourceState_DeletingData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_QueuedResourceState_DeletingData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_QueuedResourceState_ActiveData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_QueuedResourceState_ActiveData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_QueuedResourceState_SuspendingData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_QueuedResourceState_SuspendingData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_QueuedResourceState_SuspendedData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_QueuedResourceState_SuspendedData_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_tpu_v2_ListNodesRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -108,6 +172,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_tpu_v2_UpdateNodeRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_tpu_v2_UpdateNodeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_ListQueuedResourcesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_ListQueuedResourcesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_ListQueuedResourcesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_ListQueuedResourcesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_GetQueuedResourceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_GetQueuedResourceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_CreateQueuedResourceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_CreateQueuedResourceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_DeleteQueuedResourceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_DeleteQueuedResourceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2_ResetQueuedResourceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2_ResetQueuedResourceRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_tpu_v2_ServiceIdentity_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -190,213 +278,335 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ns.proto\032\027google/api/client.proto\032\037googl" + "e/api/field_behavior.proto\032\031google/api/r" + "esource.proto\032#google/longrunning/operat" - + "ions.proto\032\033google/protobuf/empty.proto\032" - + " google/protobuf/field_mask.proto\032\037googl" - + "e/protobuf/timestamp.proto\"e\n\017GuestAttri" - + "butes\022\022\n\nquery_path\030\001 \001(\t\022>\n\013query_value" - + "\030\002 \001(\0132).google.cloud.tpu.v2.GuestAttrib" - + "utesValue\"P\n\024GuestAttributesValue\0228\n\005ite" - + "ms\030\001 \003(\0132).google.cloud.tpu.v2.GuestAttr" - + "ibutesEntry\"E\n\024GuestAttributesEntry\022\021\n\tn" - + "amespace\030\001 \001(\t\022\013\n\003key\030\002 \001(\t\022\r\n\005value\030\003 \001" - + "(\t\"\243\001\n\014AttachedDisk\022\023\n\013source_disk\030\003 \001(\t" - + "\0228\n\004mode\030\004 \001(\0162*.google.cloud.tpu.v2.Att" - + "achedDisk.DiskMode\"D\n\010DiskMode\022\031\n\025DISK_M" - + "ODE_UNSPECIFIED\020\000\022\016\n\nREAD_WRITE\020\001\022\r\n\tREA" - + "D_ONLY\020\002\"9\n\020SchedulingConfig\022\023\n\013preempti" - + "ble\030\001 \001(\010\022\020\n\010reserved\030\002 \001(\010\"m\n\017NetworkEn" - + "dpoint\022\022\n\nip_address\030\001 \001(\t\022\014\n\004port\030\002 \001(\005" - + "\0228\n\raccess_config\030\005 \001(\0132!.google.cloud.t" - + "pu.v2.AccessConfig\"(\n\014AccessConfig\022\030\n\013ex" - + "ternal_ip\030\001 \001(\tB\003\340A\003\"i\n\rNetworkConfig\022\017\n" - + "\007network\030\001 \001(\t\022\022\n\nsubnetwork\030\002 \001(\t\022\033\n\023en" - + "able_external_ips\030\003 \001(\010\022\026\n\016can_ip_forwar" - + "d\030\004 \001(\010\".\n\016ServiceAccount\022\r\n\005email\030\001 \001(\t" - + "\022\r\n\005scope\030\002 \003(\t\"\260\r\n\004Node\022\024\n\004name\030\001 \001(\tB\006" - + "\340A\003\340A\005\022\023\n\013description\030\003 \001(\t\022\035\n\020accelerat" - + "or_type\030\005 \001(\tB\003\340A\001\0223\n\005state\030\t \001(\0162\037.goog" - + "le.cloud.tpu.v2.Node.StateB\003\340A\003\022\037\n\022healt" - + "h_description\030\n \001(\tB\003\340A\003\022\034\n\017runtime_vers" - + "ion\030\013 \001(\tB\003\340A\002\022:\n\016network_config\030$ \001(\0132\"" - + ".google.cloud.tpu.v2.NetworkConfig\022\022\n\nci" - + "dr_block\030\r \001(\t\022<\n\017service_account\030% \001(\0132" - + "#.google.cloud.tpu.v2.ServiceAccount\0224\n\013" - + "create_time\030\020 \001(\0132\032.google.protobuf.Time" - + "stampB\003\340A\003\022@\n\021scheduling_config\030\021 \001(\0132%." - + "google.cloud.tpu.v2.SchedulingConfig\022D\n\021" - + "network_endpoints\030\025 \003(\0132$.google.cloud.t" - + "pu.v2.NetworkEndpointB\003\340A\003\0220\n\006health\030\026 \001" - + "(\0162 .google.cloud.tpu.v2.Node.Health\0225\n\006" - + "labels\030\030 \003(\0132%.google.cloud.tpu.v2.Node." - + "LabelsEntry\0229\n\010metadata\030\" \003(\0132\'.google.c" - + "loud.tpu.v2.Node.MetadataEntry\022\014\n\004tags\030(" - + " \003(\t\022\017\n\002id\030! \001(\003B\003\340A\003\0225\n\ndata_disks\030) \003(" - + "\0132!.google.cloud.tpu.v2.AttachedDisk\022>\n\013" - + "api_version\030& \001(\0162$.google.cloud.tpu.v2." - + "Node.ApiVersionB\003\340A\003\0223\n\010symptoms\030\' \003(\0132\034" - + ".google.cloud.tpu.v2.SymptomB\003\340A\003\022M\n\030shi" - + "elded_instance_config\030- \001(\0132+.google.clo" - + "ud.tpu.v2.ShieldedInstanceConfig\022B\n\022acce" - + "lerator_config\030. \001(\0132&.google.cloud.tpu." - + "v2.AcceleratorConfig\022\034\n\017queued_resource\030" - + "/ \001(\tB\003\340A\003\022\034\n\017multislice_node\0300 \001(\010B\003\340A\003" - + "\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\"\341\001\n\005State\022\025\n\021STATE_UNSP" - + "ECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY\020\002\022\016\n\nRE" - + "STARTING\020\003\022\r\n\tREIMAGING\020\004\022\014\n\010DELETING\020\005\022" - + "\r\n\tREPAIRING\020\006\022\013\n\007STOPPED\020\010\022\014\n\010STOPPING\020" - + "\t\022\014\n\010STARTING\020\n\022\r\n\tPREEMPTED\020\013\022\016\n\nTERMIN" - + "ATED\020\014\022\n\n\006HIDING\020\r\022\n\n\006HIDDEN\020\016\022\014\n\010UNHIDI" - + "NG\020\017\"o\n\006Health\022\026\n\022HEALTH_UNSPECIFIED\020\000\022\013" - + "\n\007HEALTHY\020\001\022\013\n\007TIMEOUT\020\003\022\030\n\024UNHEALTHY_TE" - + "NSORFLOW\020\004\022\031\n\025UNHEALTHY_MAINTENANCE\020\005\"W\n" - + "\nApiVersion\022\033\n\027API_VERSION_UNSPECIFIED\020\000" - + "\022\r\n\tV1_ALPHA1\020\001\022\006\n\002V1\020\002\022\r\n\tV2_ALPHA1\020\003\022\006" - + "\n\002V2\020\004:R\352AO\n\027tpu.googleapis.com/Node\0224pr" - + "ojects/{project}/locations/{location}/no" - + "des/{node}\"j\n\020ListNodesRequest\022/\n\006parent" - + "\030\001 \001(\tB\037\340A\002\372A\031\022\027tpu.googleapis.com/Node\022" - + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"k" - + "\n\021ListNodesResponse\022(\n\005nodes\030\001 \003(\0132\031.goo" - + "gle.cloud.tpu.v2.Node\022\027\n\017next_page_token" - + "\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"?\n\016GetNodeRe" - + "quest\022-\n\004name\030\001 \001(\tB\037\340A\002\372A\031\n\027tpu.googlea" - + "pis.com/Node\"\215\001\n\021CreateNodeRequest\0229\n\006pa" - + "rent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis" - + ".com/Location\022\017\n\007node_id\030\002 \001(\t\022,\n\004node\030\003" - + " \001(\0132\031.google.cloud.tpu.v2.NodeB\003\340A\002\"B\n\021" - + "DeleteNodeRequest\022-\n\004name\030\001 \001(\tB\037\340A\002\372A\031\n" - + "\027tpu.googleapis.com/Node\"@\n\017StopNodeRequ" - + "est\022-\n\004name\030\001 \001(\tB\037\340A\002\372A\031\n\027tpu.googleapi" - + "s.com/Node\"A\n\020StartNodeRequest\022-\n\004name\030\001" - + " \001(\tB\037\340A\002\372A\031\n\027tpu.googleapis.com/Node\"w\n" - + "\021UpdateNodeRequest\0224\n\013update_mask\030\001 \001(\0132" - + "\032.google.protobuf.FieldMaskB\003\340A\002\022,\n\004node" - + "\030\002 \001(\0132\031.google.cloud.tpu.v2.NodeB\003\340A\002\" " - + "\n\017ServiceIdentity\022\r\n\005email\030\001 \001(\t\"[\n\036Gene" - + "rateServiceIdentityRequest\0229\n\006parent\030\001 \001" + + "ions.proto\032\036google/protobuf/duration.pro" + + "to\032\033google/protobuf/empty.proto\032 google/" + + "protobuf/field_mask.proto\032\037google/protob" + + "uf/timestamp.proto\032\027google/rpc/status.pr" + + "oto\032\032google/type/interval.proto\"e\n\017Guest" + + "Attributes\022\022\n\nquery_path\030\001 \001(\t\022>\n\013query_" + + "value\030\002 \001(\0132).google.cloud.tpu.v2.GuestA" + + "ttributesValue\"P\n\024GuestAttributesValue\0228" + + "\n\005items\030\001 \003(\0132).google.cloud.tpu.v2.Gues" + + "tAttributesEntry\"E\n\024GuestAttributesEntry" + + "\022\021\n\tnamespace\030\001 \001(\t\022\013\n\003key\030\002 \001(\t\022\r\n\005valu" + + "e\030\003 \001(\t\"\243\001\n\014AttachedDisk\022\023\n\013source_disk\030" + + "\003 \001(\t\0228\n\004mode\030\004 \001(\0162*.google.cloud.tpu.v" + + "2.AttachedDisk.DiskMode\"D\n\010DiskMode\022\031\n\025D" + + "ISK_MODE_UNSPECIFIED\020\000\022\016\n\nREAD_WRITE\020\001\022\r" + + "\n\tREAD_ONLY\020\002\"L\n\020SchedulingConfig\022\023\n\013pre" + + "emptible\030\001 \001(\010\022\020\n\010reserved\030\002 \001(\010\022\021\n\004spot" + + "\030\003 \001(\010B\003\340A\001\"m\n\017NetworkEndpoint\022\022\n\nip_add" + + "ress\030\001 \001(\t\022\014\n\004port\030\002 \001(\005\0228\n\raccess_confi" + + "g\030\005 \001(\0132!.google.cloud.tpu.v2.AccessConf" + + "ig\"(\n\014AccessConfig\022\030\n\013external_ip\030\001 \001(\tB" + + "\003\340A\003\"\203\001\n\rNetworkConfig\022\017\n\007network\030\001 \001(\t\022" + + "\022\n\nsubnetwork\030\002 \001(\t\022\033\n\023enable_external_i" + + "ps\030\003 \001(\010\022\026\n\016can_ip_forward\030\004 \001(\010\022\030\n\013queu" + + "e_count\030\006 \001(\005B\003\340A\001\".\n\016ServiceAccount\022\r\n\005" + + "email\030\001 \001(\t\022\r\n\005scope\030\002 \003(\t\"\377\r\n\004Node\022\024\n\004n" + + "ame\030\001 \001(\tB\006\340A\003\340A\005\022\023\n\013description\030\003 \001(\t\022\035" + + "\n\020accelerator_type\030\005 \001(\tB\003\340A\001\0223\n\005state\030\t" + + " \001(\0162\037.google.cloud.tpu.v2.Node.StateB\003\340" + + "A\003\022\037\n\022health_description\030\n \001(\tB\003\340A\003\022\034\n\017r" + + "untime_version\030\013 \001(\tB\003\340A\002\022:\n\016network_con" + + "fig\030$ \001(\0132\".google.cloud.tpu.v2.NetworkC" + + "onfig\022@\n\017network_configs\0301 \003(\0132\".google." + + "cloud.tpu.v2.NetworkConfigB\003\340A\001\022\022\n\ncidr_" + + "block\030\r \001(\t\022<\n\017service_account\030% \001(\0132#.g" + + "oogle.cloud.tpu.v2.ServiceAccount\0224\n\013cre" + + "ate_time\030\020 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\022@\n\021scheduling_config\030\021 \001(\0132%.goo" + + "gle.cloud.tpu.v2.SchedulingConfig\022D\n\021net" + + "work_endpoints\030\025 \003(\0132$.google.cloud.tpu." + + "v2.NetworkEndpointB\003\340A\003\0220\n\006health\030\026 \001(\0162" + + " .google.cloud.tpu.v2.Node.Health\0225\n\006lab" + + "els\030\030 \003(\0132%.google.cloud.tpu.v2.Node.Lab" + + "elsEntry\0229\n\010metadata\030\" \003(\0132\'.google.clou" + + "d.tpu.v2.Node.MetadataEntry\022\014\n\004tags\030( \003(" + + "\t\022\017\n\002id\030! \001(\003B\003\340A\003\0225\n\ndata_disks\030) \003(\0132!" + + ".google.cloud.tpu.v2.AttachedDisk\022>\n\013api" + + "_version\030& \001(\0162$.google.cloud.tpu.v2.Nod" + + "e.ApiVersionB\003\340A\003\0223\n\010symptoms\030\' \003(\0132\034.go" + + "ogle.cloud.tpu.v2.SymptomB\003\340A\003\022M\n\030shield" + + "ed_instance_config\030- \001(\0132+.google.cloud." + + "tpu.v2.ShieldedInstanceConfig\022B\n\022acceler" + + "ator_config\030. \001(\0132&.google.cloud.tpu.v2." + + "AcceleratorConfig\022\034\n\017queued_resource\030/ \001" + + "(\tB\003\340A\003\022\034\n\017multislice_node\0300 \001(\010B\003\340A\003\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\005va" + + "lue\030\002 \001(\t:\0028\001\"\356\001\n\005State\022\025\n\021STATE_UNSPECI" + + "FIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY\020\002\022\016\n\nRESTA" + + "RTING\020\003\022\r\n\tREIMAGING\020\004\022\014\n\010DELETING\020\005\022\r\n\t" + + "REPAIRING\020\006\022\013\n\007STOPPED\020\010\022\014\n\010STOPPING\020\t\022\014" + + "\n\010STARTING\020\n\022\r\n\tPREEMPTED\020\013\022\016\n\nTERMINATE" + + "D\020\014\022\n\n\006HIDING\020\r\022\n\n\006HIDDEN\020\016\022\014\n\010UNHIDING\020" + + "\017\022\013\n\007UNKNOWN\020\020\"o\n\006Health\022\026\n\022HEALTH_UNSPE" + + "CIFIED\020\000\022\013\n\007HEALTHY\020\001\022\013\n\007TIMEOUT\020\003\022\030\n\024UN" + + "HEALTHY_TENSORFLOW\020\004\022\031\n\025UNHEALTHY_MAINTE" + + "NANCE\020\005\"W\n\nApiVersion\022\033\n\027API_VERSION_UNS" + + "PECIFIED\020\000\022\r\n\tV1_ALPHA1\020\001\022\006\n\002V1\020\002\022\r\n\tV2_" + + "ALPHA1\020\003\022\006\n\002V2\020\004:R\352AO\n\027tpu.googleapis.co" + + "m/Node\0224projects/{project}/locations/{lo" + + "cation}/nodes/{node}\"\307\013\n\016QueuedResource\022" + + "\024\n\004name\030\001 \001(\tB\006\340A\003\340A\005\0224\n\013create_time\030\013 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022;\n\003t" + + "pu\030\002 \001(\0132\'.google.cloud.tpu.v2.QueuedRes" + + "ource.TpuB\003\340A\001H\000\022=\n\004spot\030\003 \001(\0132(.google." + + "cloud.tpu.v2.QueuedResource.SpotB\003\340A\001H\001\022" + + "I\n\nguaranteed\030\004 \001(\0132..google.cloud.tpu.v" + + "2.QueuedResource.GuaranteedB\003\340A\001H\001\022P\n\017qu" + + "eueing_policy\030\005 \001(\01322.google.cloud.tpu.v" + + "2.QueuedResource.QueueingPolicyB\003\340A\001\022<\n\005" + + "state\030\006 \001(\0132(.google.cloud.tpu.v2.Queued" + + "ResourceStateB\003\340A\003\022\035\n\020reservation_name\030\007" + + " \001(\tB\003\340A\001\032\235\003\n\003Tpu\022H\n\tnode_spec\030\001 \003(\01320.g" + + "oogle.cloud.tpu.v2.QueuedResource.Tpu.No" + + "deSpecB\003\340A\001\032\313\002\n\010NodeSpec\0229\n\006parent\030\001 \001(\t" + + "B)\340A\002\372A#\n!locations.googleapis.com/Locat" + + "ion\022\026\n\007node_id\030\002 \001(\tB\003\340A\001H\000\022c\n\021multislic" + + "e_params\030\003 \001(\0132A.google.cloud.tpu.v2.Que" + + "uedResource.Tpu.NodeSpec.MultisliceParam" + + "sB\003\340A\001H\000\022,\n\004node\030\004 \001(\0132\031.google.cloud.tp" + + "u.v2.NodeB\003\340A\002\032H\n\020MultisliceParams\022\027\n\nno" + + "de_count\030\001 \001(\005B\003\340A\002\022\033\n\016node_id_prefix\030\002 " + + "\001(\tB\003\340A\001B\017\n\rname_strategy\032\006\n\004Spot\032B\n\nGua" + + "ranteed\0224\n\014min_duration\030\001 \001(\0132\031.google.p" + + "rotobuf.DurationB\003\340A\001\032\334\002\n\016QueueingPolicy" + + "\022>\n\024valid_until_duration\030\001 \001(\0132\031.google." + + "protobuf.DurationB\003\340A\001H\000\022;\n\020valid_until_" + + "time\030\002 \001(\0132\032.google.protobuf.TimestampB\003" + + "\340A\001H\000\022>\n\024valid_after_duration\030\003 \001(\0132\031.go" + + "ogle.protobuf.DurationB\003\340A\001H\000\022;\n\020valid_a" + + "fter_time\030\004 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\001H\000\0224\n\016valid_interval\030\005 \001(\0132\025.goo" + + "gle.type.IntervalB\003\340A\001H\000B\032\n\030start_timing" + + "_constraints:\223\001\352A\217\001\n!tpu.googleapis.com/" + + "QueuedResource\022Iprojects/{project}/locat" + + "ions/{location}/queuedResources/{queued_" + + "resource}*\017queuedResources2\016queuedResour" + + "ceB\n\n\010resourceB\006\n\004tier\"\220\n\n\023QueuedResourc" + + "eState\022B\n\005state\030\001 \001(\0162..google.cloud.tpu" + + ".v2.QueuedResourceState.StateB\003\340A\003\022S\n\rcr" + + "eating_data\030\002 \001(\01325.google.cloud.tpu.v2." + + "QueuedResourceState.CreatingDataB\003\340A\003H\000\022" + + "S\n\raccepted_data\030\003 \001(\01325.google.cloud.tp" + + "u.v2.QueuedResourceState.AcceptedDataB\003\340" + + "A\003H\000\022[\n\021provisioning_data\030\004 \001(\01329.google" + + ".cloud.tpu.v2.QueuedResourceState.Provis" + + "ioningDataB\003\340A\003H\000\022O\n\013failed_data\030\005 \001(\01323" + + ".google.cloud.tpu.v2.QueuedResourceState" + + ".FailedDataB\003\340A\003H\000\022S\n\rdeleting_data\030\006 \001(" + + "\01325.google.cloud.tpu.v2.QueuedResourceSt" + + "ate.DeletingDataB\003\340A\003H\000\022O\n\013active_data\030\007" + + " \001(\01323.google.cloud.tpu.v2.QueuedResourc" + + "eState.ActiveDataB\003\340A\003H\000\022W\n\017suspending_d" + + "ata\030\010 \001(\01327.google.cloud.tpu.v2.QueuedRe" + + "sourceState.SuspendingDataB\003\340A\003H\000\022U\n\016sus" + + "pended_data\030\t \001(\01326.google.cloud.tpu.v2." + + "QueuedResourceState.SuspendedDataB\003\340A\003H\000" + + "\022U\n\017state_initiator\030\n \001(\01627.google.cloud" + + ".tpu.v2.QueuedResourceState.StateInitiat" + + "orB\003\340A\003\032\016\n\014CreatingData\032\016\n\014AcceptedData\032" + + "\022\n\020ProvisioningData\0324\n\nFailedData\022&\n\005err" + + "or\030\001 \001(\0132\022.google.rpc.StatusB\003\340A\003\032\016\n\014Del" + + "etingData\032\014\n\nActiveData\032\020\n\016SuspendingDat" + + "a\032\017\n\rSuspendedData\"\254\001\n\005State\022\025\n\021STATE_UN" + + "SPECIFIED\020\000\022\014\n\010CREATING\020\001\022\014\n\010ACCEPTED\020\002\022" + + "\020\n\014PROVISIONING\020\003\022\n\n\006FAILED\020\004\022\014\n\010DELETIN" + + "G\020\005\022\n\n\006ACTIVE\020\006\022\016\n\nSUSPENDING\020\007\022\r\n\tSUSPE" + + "NDED\020\010\022\031\n\025WAITING_FOR_RESOURCES\020\t\"H\n\016Sta" + + "teInitiator\022\037\n\033STATE_INITIATOR_UNSPECIFI" + + "ED\020\000\022\010\n\004USER\020\001\022\013\n\007SERVICE\020\002B\014\n\nstate_dat" + + "a\"j\n\020ListNodesRequest\022/\n\006parent\030\001 \001(\tB\037\340" + + "A\002\372A\031\022\027tpu.googleapis.com/Node\022\021\n\tpage_s" + + "ize\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"k\n\021ListNod" + + "esResponse\022(\n\005nodes\030\001 \003(\0132\031.google.cloud" + + ".tpu.v2.Node\022\027\n\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"?\n\016GetNodeRequest\022-\n\004" + + "name\030\001 \001(\tB\037\340A\002\372A\031\n\027tpu.googleapis.com/N" + + "ode\"\215\001\n\021CreateNodeRequest\0229\n\006parent\030\001 \001(" + + "\tB)\340A\002\372A#\n!locations.googleapis.com/Loca" + + "tion\022\017\n\007node_id\030\002 \001(\t\022,\n\004node\030\003 \001(\0132\031.go" + + "ogle.cloud.tpu.v2.NodeB\003\340A\002\"B\n\021DeleteNod" + + "eRequest\022-\n\004name\030\001 \001(\tB\037\340A\002\372A\031\n\027tpu.goog" + + "leapis.com/Node\"@\n\017StopNodeRequest\022-\n\004na" + + "me\030\001 \001(\tB\037\340A\002\372A\031\n\027tpu.googleapis.com/Nod" + + "e\"A\n\020StartNodeRequest\022-\n\004name\030\001 \001(\tB\037\340A\002" + + "\372A\031\n\027tpu.googleapis.com/Node\"w\n\021UpdateNo" + + "deRequest\0224\n\013update_mask\030\001 \001(\0132\032.google." + + "protobuf.FieldMaskB\003\340A\002\022,\n\004node\030\002 \001(\0132\031." + + "google.cloud.tpu.v2.NodeB\003\340A\002\"\210\001\n\032ListQu" + + "euedResourcesRequest\0229\n\006parent\030\001 \001(\tB)\340A" + + "\002\372A#\022!tpu.googleapis.com/QueuedResource\022" + + "\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 " + + "\001(\tB\003\340A\001\"\212\001\n\033ListQueuedResourcesResponse" + + "\022=\n\020queued_resources\030\001 \003(\0132#.google.clou" + + "d.tpu.v2.QueuedResource\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"S\n\030GetQueu" + + "edResourceRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n" + + "!tpu.googleapis.com/QueuedResource\"\325\001\n\033C" + + "reateQueuedResourceRequest\0229\n\006parent\030\001 \001" + "(\tB)\340A\002\372A#\n!locations.googleapis.com/Loc" - + "ation\"Y\n\037GenerateServiceIdentityResponse" - + "\0226\n\010identity\030\001 \001(\0132$.google.cloud.tpu.v2" - + ".ServiceIdentity\"\350\001\n\017AcceleratorType\022\014\n\004" - + "name\030\001 \001(\t\022\014\n\004type\030\002 \001(\t\022C\n\023accelerator_" - + "configs\030\003 \003(\0132&.google.cloud.tpu.v2.Acce" - + "leratorConfig:t\352Aq\n\"tpu.googleapis.com/A" - + "cceleratorType\022Kprojects/{project}/locat" - + "ions/{location}/acceleratorTypes/{accele" - + "rator_type}\"U\n\031GetAcceleratorTypeRequest" - + "\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"tpu.googleapis.c" - + "om/AcceleratorType\"\242\001\n\033ListAcceleratorTy" - + "pesRequest\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\022\"tpu." - + "googleapis.com/AcceleratorType\022\021\n\tpage_s" - + "ize\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030" - + "\005 \001(\t\022\020\n\010order_by\030\006 \001(\t\"\215\001\n\034ListAccelera" - + "torTypesResponse\022?\n\021accelerator_types\030\001 " - + "\003(\0132$.google.cloud.tpu.v2.AcceleratorTyp" - + "e\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachabl" - + "e\030\003 \003(\t\"\242\001\n\016RuntimeVersion\022\014\n\004name\030\001 \001(\t" - + "\022\017\n\007version\030\002 \001(\t:q\352An\n!tpu.googleapis.c" - + "om/RuntimeVersion\022Iprojects/{project}/lo" - + "cations/{location}/runtimeVersions/{runt" - + "ime_version}\"S\n\030GetRuntimeVersionRequest" - + "\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!tpu.googleapis.c" - + "om/RuntimeVersion\"\240\001\n\032ListRuntimeVersion" - + "sRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\022!tpu.go" - + "ogleapis.com/RuntimeVersion\022\021\n\tpage_size" - + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\005 \001" - + "(\t\022\020\n\010order_by\030\006 \001(\t\"\212\001\n\033ListRuntimeVers" - + "ionsResponse\022=\n\020runtime_versions\030\001 \003(\0132#" - + ".google.cloud.tpu.v2.RuntimeVersion\022\027\n\017n" - + "ext_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(" - + "\t\"\326\001\n\021OperationMetadata\022/\n\013create_time\030\001" - + " \001(\0132\032.google.protobuf.Timestamp\022,\n\010end_" - + "time\030\002 \001(\0132\032.google.protobuf.Timestamp\022\016" - + "\n\006target\030\003 \001(\t\022\014\n\004verb\030\004 \001(\t\022\025\n\rstatus_d" - + "etail\030\005 \001(\t\022\030\n\020cancel_requested\030\006 \001(\010\022\023\n" - + "\013api_version\030\007 \001(\t\"\305\002\n\007Symptom\022/\n\013create" - + "_time\030\001 \001(\0132\032.google.protobuf.Timestamp\022" - + ">\n\014symptom_type\030\002 \001(\0162(.google.cloud.tpu" - + ".v2.Symptom.SymptomType\022\017\n\007details\030\003 \001(\t" - + "\022\021\n\tworker_id\030\004 \001(\t\"\244\001\n\013SymptomType\022\034\n\030S" - + "YMPTOM_TYPE_UNSPECIFIED\020\000\022\016\n\nLOW_MEMORY\020" - + "\001\022\021\n\rOUT_OF_MEMORY\020\002\022\025\n\021EXECUTE_TIMED_OU" - + "T\020\003\022\023\n\017MESH_BUILD_FAIL\020\004\022\025\n\021HBM_OUT_OF_M" - + "EMORY\020\005\022\021\n\rPROJECT_ABUSE\020\006\"r\n\031GetGuestAt" - + "tributesRequest\022-\n\004name\030\001 \001(\tB\037\340A\002\372A\031\n\027t" - + "pu.googleapis.com/Node\022\022\n\nquery_path\030\002 \001" - + "(\t\022\022\n\nworker_ids\030\003 \003(\t\"\\\n\032GetGuestAttrib" - + "utesResponse\022>\n\020guest_attributes\030\001 \003(\0132$" - + ".google.cloud.tpu.v2.GuestAttributes\"\240\001\n" - + "\021AcceleratorConfig\022>\n\004type\030\001 \001(\0162+.googl" - + "e.cloud.tpu.v2.AcceleratorConfig.TypeB\003\340" - + "A\002\022\025\n\010topology\030\002 \001(\tB\003\340A\002\"4\n\004Type\022\024\n\020TYP" - + "E_UNSPECIFIED\020\000\022\006\n\002V2\020\002\022\006\n\002V3\020\004\022\006\n\002V4\020\007\"" - + "4\n\026ShieldedInstanceConfig\022\032\n\022enable_secu" - + "re_boot\030\001 \001(\0102\370\022\n\003Tpu\022\226\001\n\tListNodes\022%.go" - + "ogle.cloud.tpu.v2.ListNodesRequest\032&.goo" - + "gle.cloud.tpu.v2.ListNodesResponse\":\332A\006p" - + "arent\202\323\344\223\002+\022)/v2/{parent=projects/*/loca" - + "tions/*}/nodes\022\203\001\n\007GetNode\022#.google.clou" - + "d.tpu.v2.GetNodeRequest\032\031.google.cloud.t" - + "pu.v2.Node\"8\332A\004name\202\323\344\223\002+\022)/v2/{name=pro" - + "jects/*/locations/*/nodes/*}\022\276\001\n\nCreateN" - + "ode\022&.google.cloud.tpu.v2.CreateNodeRequ" - + "est\032\035.google.longrunning.Operation\"i\312A\031\n" - + "\004Node\022\021OperationMetadata\332A\023parent,node,n" - + "ode_id\202\323\344\223\0021\")/v2/{parent=projects/*/loc" - + "ations/*}/nodes:\004node\022\272\001\n\nDeleteNode\022&.g" - + "oogle.cloud.tpu.v2.DeleteNodeRequest\032\035.g" - + "oogle.longrunning.Operation\"e\312A*\n\025google" - + ".protobuf.Empty\022\021OperationMetadata\332A\004nam" - + "e\202\323\344\223\002+*)/v2/{name=projects/*/locations/" - + "*/nodes/*}\022\246\001\n\010StopNode\022$.google.cloud.t" - + "pu.v2.StopNodeRequest\032\035.google.longrunni" - + "ng.Operation\"U\312A\031\n\004Node\022\021OperationMetada" - + "ta\202\323\344\223\0023\"./v2/{name=projects/*/locations" - + "/*/nodes/*}:stop:\001*\022\251\001\n\tStartNode\022%.goog" - + "le.cloud.tpu.v2.StartNodeRequest\032\035.googl" - + "e.longrunning.Operation\"V\312A\031\n\004Node\022\021Oper" - + "ationMetadata\202\323\344\223\0024\"//v2/{name=projects/" - + "*/locations/*/nodes/*}:start:\001*\022\300\001\n\nUpda" - + "teNode\022&.google.cloud.tpu.v2.UpdateNodeR" - + "equest\032\035.google.longrunning.Operation\"k\312" - + "A\031\n\004Node\022\021OperationMetadata\332A\020node,updat" - + "e_mask\202\323\344\223\00262./v2/{node.name=projects/*/" - + "locations/*/nodes/*}:\004node\022\314\001\n\027GenerateS" - + "erviceIdentity\0223.google.cloud.tpu.v2.Gen" - + "erateServiceIdentityRequest\0324.google.clo" - + "ud.tpu.v2.GenerateServiceIdentityRespons" - + "e\"F\202\323\344\223\002@\";/v2/{parent=projects/*/locati" - + "ons/*}:generateServiceIdentity:\001*\022\302\001\n\024Li" - + "stAcceleratorTypes\0220.google.cloud.tpu.v2" - + ".ListAcceleratorTypesRequest\0321.google.cl" - + "oud.tpu.v2.ListAcceleratorTypesResponse\"" - + "E\332A\006parent\202\323\344\223\0026\0224/v2/{parent=projects/*" - + "/locations/*}/acceleratorTypes\022\257\001\n\022GetAc" - + "celeratorType\022..google.cloud.tpu.v2.GetA" - + "cceleratorTypeRequest\032$.google.cloud.tpu" - + ".v2.AcceleratorType\"C\332A\004name\202\323\344\223\0026\0224/v2/" - + "{name=projects/*/locations/*/accelerator" - + "Types/*}\022\276\001\n\023ListRuntimeVersions\022/.googl" - + "e.cloud.tpu.v2.ListRuntimeVersionsReques" - + "t\0320.google.cloud.tpu.v2.ListRuntimeVersi" - + "onsResponse\"D\332A\006parent\202\323\344\223\0025\0223/v2/{paren" - + "t=projects/*/locations/*}/runtimeVersion" - + "s\022\253\001\n\021GetRuntimeVersion\022-.google.cloud.t" - + "pu.v2.GetRuntimeVersionRequest\032#.google." - + "cloud.tpu.v2.RuntimeVersion\"B\332A\004name\202\323\344\223" - + "\0025\0223/v2/{name=projects/*/locations/*/run" - + "timeVersions/*}\022\276\001\n\022GetGuestAttributes\022." - + ".google.cloud.tpu.v2.GetGuestAttributesR" - + "equest\032/.google.cloud.tpu.v2.GetGuestAtt" - + "ributesResponse\"G\202\323\344\223\002A\"\n\014symp" + + "tom_type\030\002 \001(\0162(.google.cloud.tpu.v2.Sym" + + "ptom.SymptomType\022\017\n\007details\030\003 \001(\t\022\021\n\twor" + + "ker_id\030\004 \001(\t\"\244\001\n\013SymptomType\022\034\n\030SYMPTOM_" + + "TYPE_UNSPECIFIED\020\000\022\016\n\nLOW_MEMORY\020\001\022\021\n\rOU" + + "T_OF_MEMORY\020\002\022\025\n\021EXECUTE_TIMED_OUT\020\003\022\023\n\017" + + "MESH_BUILD_FAIL\020\004\022\025\n\021HBM_OUT_OF_MEMORY\020\005" + + "\022\021\n\rPROJECT_ABUSE\020\006\"r\n\031GetGuestAttribute" + + "sRequest\022-\n\004name\030\001 \001(\tB\037\340A\002\372A\031\n\027tpu.goog" + + "leapis.com/Node\022\022\n\nquery_path\030\002 \001(\t\022\022\n\nw" + + "orker_ids\030\003 \003(\t\"\\\n\032GetGuestAttributesRes" + + "ponse\022>\n\020guest_attributes\030\001 \003(\0132$.google" + + ".cloud.tpu.v2.GuestAttributes\"\302\001\n\021Accele" + + "ratorConfig\022>\n\004type\030\001 \001(\0162+.google.cloud" + + ".tpu.v2.AcceleratorConfig.TypeB\003\340A\002\022\025\n\010t" + + "opology\030\002 \001(\tB\003\340A\002\"V\n\004Type\022\024\n\020TYPE_UNSPE" + + "CIFIED\020\000\022\006\n\002V2\020\002\022\006\n\002V3\020\004\022\006\n\002V4\020\007\022\016\n\nV5LI" + + "TE_POD\020\t\022\007\n\003V5P\020\n\022\007\n\003V6E\020\013\"4\n\026ShieldedIn" + + "stanceConfig\022\032\n\022enable_secure_boot\030\001 \001(\010" + + "2\250\033\n\003Tpu\022\226\001\n\tListNodes\022%.google.cloud.tp" + + "u.v2.ListNodesRequest\032&.google.cloud.tpu" + + ".v2.ListNodesResponse\":\332A\006parent\202\323\344\223\002+\022)" + + "/v2/{parent=projects/*/locations/*}/node" + + "s\022\203\001\n\007GetNode\022#.google.cloud.tpu.v2.GetN" + + "odeRequest\032\031.google.cloud.tpu.v2.Node\"8\332" + + "A\004name\202\323\344\223\002+\022)/v2/{name=projects/*/locat" + + "ions/*/nodes/*}\022\276\001\n\nCreateNode\022&.google." + + "cloud.tpu.v2.CreateNodeRequest\032\035.google." + + "longrunning.Operation\"i\312A\031\n\004Node\022\021Operat" + + "ionMetadata\332A\023parent,node,node_id\202\323\344\223\0021\"" + + ")/v2/{parent=projects/*/locations/*}/nod" + + "es:\004node\022\272\001\n\nDeleteNode\022&.google.cloud.t" + + "pu.v2.DeleteNodeRequest\032\035.google.longrun" + + "ning.Operation\"e\312A*\n\025google.protobuf.Emp" + + "ty\022\021OperationMetadata\332A\004name\202\323\344\223\002+*)/v2/" + + "{name=projects/*/locations/*/nodes/*}\022\246\001" + + "\n\010StopNode\022$.google.cloud.tpu.v2.StopNod" + + "eRequest\032\035.google.longrunning.Operation\"" + + "U\312A\031\n\004Node\022\021OperationMetadata\202\323\344\223\0023\"./v2" + + "/{name=projects/*/locations/*/nodes/*}:s" + + "top:\001*\022\251\001\n\tStartNode\022%.google.cloud.tpu." + + "v2.StartNodeRequest\032\035.google.longrunning" + + ".Operation\"V\312A\031\n\004Node\022\021OperationMetadata" + + "\202\323\344\223\0024\"//v2/{name=projects/*/locations/*" + + "/nodes/*}:start:\001*\022\300\001\n\nUpdateNode\022&.goog" + + "le.cloud.tpu.v2.UpdateNodeRequest\032\035.goog" + + "le.longrunning.Operation\"k\312A\031\n\004Node\022\021Ope" + + "rationMetadata\332A\020node,update_mask\202\323\344\223\00262" + + "./v2/{node.name=projects/*/locations/*/n" + + "odes/*}:\004node\022\276\001\n\023ListQueuedResources\022/." + + "google.cloud.tpu.v2.ListQueuedResourcesR" + + "equest\0320.google.cloud.tpu.v2.ListQueuedR" + + "esourcesResponse\"D\332A\006parent\202\323\344\223\0025\0223/v2/{" + + "parent=projects/*/locations/*}/queuedRes" + + "ources\022\253\001\n\021GetQueuedResource\022-.google.cl" + + "oud.tpu.v2.GetQueuedResourceRequest\032#.go" + + "ogle.cloud.tpu.v2.QueuedResource\"B\332A\004nam" + + "e\202\323\344\223\0025\0223/v2/{name=projects/*/locations/" + + "*/queuedResources/*}\022\210\002\n\024CreateQueuedRes" + + "ource\0220.google.cloud.tpu.v2.CreateQueued" + + "ResourceRequest\032\035.google.longrunning.Ope" + + "ration\"\236\001\312A#\n\016QueuedResource\022\021OperationM" + + "etadata\332A)parent,queued_resource,queued_" + + "resource_id\202\323\344\223\002F\"3/v2/{parent=projects/" + + "*/locations/*}/queuedResources:\017queued_r" + + "esource\022\330\001\n\024DeleteQueuedResource\0220.googl" + + "e.cloud.tpu.v2.DeleteQueuedResourceReque" + + "st\032\035.google.longrunning.Operation\"o\312A*\n\025" + + "google.protobuf.Empty\022\021OperationMetadata" + + "\332A\004name\202\323\344\223\0025*3/v2/{name=projects/*/loca" + + "tions/*/queuedResources/*}\022\330\001\n\023ResetQueu" + + "edResource\022/.google.cloud.tpu.v2.ResetQu" + + "euedResourceRequest\032\035.google.longrunning" + + ".Operation\"q\312A#\n\016QueuedResource\022\021Operati" + + "onMetadata\332A\004name\202\323\344\223\002>\"9/v2/{name=proje" + + "cts/*/locations/*/queuedResources/*}:res" + + "et:\001*\022\314\001\n\027GenerateServiceIdentity\0223.goog" + + "le.cloud.tpu.v2.GenerateServiceIdentityR" + + "equest\0324.google.cloud.tpu.v2.GenerateSer" + + "viceIdentityResponse\"F\202\323\344\223\002@\";/v2/{paren" + + "t=projects/*/locations/*}:generateServic" + + "eIdentity:\001*\022\302\001\n\024ListAcceleratorTypes\0220." + + "google.cloud.tpu.v2.ListAcceleratorTypes" + + "Request\0321.google.cloud.tpu.v2.ListAccele" + + "ratorTypesResponse\"E\332A\006parent\202\323\344\223\0026\0224/v2" + + "/{parent=projects/*/locations/*}/acceler" + + "atorTypes\022\257\001\n\022GetAcceleratorType\022..googl" + + "e.cloud.tpu.v2.GetAcceleratorTypeRequest" + + "\032$.google.cloud.tpu.v2.AcceleratorType\"C" + + "\332A\004name\202\323\344\223\0026\0224/v2/{name=projects/*/loca" + + "tions/*/acceleratorTypes/*}\022\276\001\n\023ListRunt" + + "imeVersions\022/.google.cloud.tpu.v2.ListRu" + + "ntimeVersionsRequest\0320.google.cloud.tpu." + + "v2.ListRuntimeVersionsResponse\"D\332A\006paren" + + "t\202\323\344\223\0025\0223/v2/{parent=projects/*/location" + + "s/*}/runtimeVersions\022\253\001\n\021GetRuntimeVersi" + + "on\022-.google.cloud.tpu.v2.GetRuntimeVersi" + + "onRequest\032#.google.cloud.tpu.v2.RuntimeV" + + "ersion\"B\332A\004name\202\323\344\223\0025\0223/v2/{name=project" + + "s/*/locations/*/runtimeVersions/*}\022\276\001\n\022G" + + "etGuestAttributes\022..google.cloud.tpu.v2." + + "GetGuestAttributesRequest\032/.google.cloud" + + ".tpu.v2.GetGuestAttributesResponse\"G\202\323\344\223" + + "\002A\" + * Request for + * [CreateQueuedResource][google.cloud.tpu.v2.Tpu.CreateQueuedResource]. + * + * + * Protobuf type {@code google.cloud.tpu.v2.CreateQueuedResourceRequest} + */ +public final class CreateQueuedResourceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.CreateQueuedResourceRequest) + CreateQueuedResourceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateQueuedResourceRequest.newBuilder() to construct. + private CreateQueuedResourceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateQueuedResourceRequest() { + parent_ = ""; + queuedResourceId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateQueuedResourceRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_CreateQueuedResourceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_CreateQueuedResourceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.CreateQueuedResourceRequest.class, + com.google.cloud.tpu.v2.CreateQueuedResourceRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
    +   * Required. The parent resource name.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. The parent resource name.
    +   * 
    + * + * + * 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 QUEUED_RESOURCE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object queuedResourceId_ = ""; + /** + * + * + *
    +   * Optional. The unqualified resource name. Should follow the
    +   * `^[A-Za-z0-9_.~+%-]+$` regex format.
    +   * 
    + * + * string queued_resource_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The queuedResourceId. + */ + @java.lang.Override + public java.lang.String getQueuedResourceId() { + java.lang.Object ref = queuedResourceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + queuedResourceId_ = s; + return s; + } + } + /** + * + * + *
    +   * Optional. The unqualified resource name. Should follow the
    +   * `^[A-Za-z0-9_.~+%-]+$` regex format.
    +   * 
    + * + * string queued_resource_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for queuedResourceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQueuedResourceIdBytes() { + java.lang.Object ref = queuedResourceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + queuedResourceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUEUED_RESOURCE_FIELD_NUMBER = 3; + private com.google.cloud.tpu.v2.QueuedResource queuedResource_; + /** + * + * + *
    +   * Required. The queued resource.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the queuedResource field is set. + */ + @java.lang.Override + public boolean hasQueuedResource() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * Required. The queued resource.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The queuedResource. + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource getQueuedResource() { + return queuedResource_ == null + ? com.google.cloud.tpu.v2.QueuedResource.getDefaultInstance() + : queuedResource_; + } + /** + * + * + *
    +   * Required. The queued resource.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceOrBuilder getQueuedResourceOrBuilder() { + return queuedResource_ == null + ? com.google.cloud.tpu.v2.QueuedResource.getDefaultInstance() + : queuedResource_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
    +   * Optional. Idempotent request UUID.
    +   * 
    + * + * string request_id = 4 [(.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. Idempotent request UUID.
    +   * 
    + * + * string request_id = 4 [(.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queuedResourceId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, queuedResourceId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getQueuedResource()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queuedResourceId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, queuedResourceId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getQueuedResource()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, 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.tpu.v2.CreateQueuedResourceRequest)) { + return super.equals(obj); + } + com.google.cloud.tpu.v2.CreateQueuedResourceRequest other = + (com.google.cloud.tpu.v2.CreateQueuedResourceRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getQueuedResourceId().equals(other.getQueuedResourceId())) return false; + if (hasQueuedResource() != other.hasQueuedResource()) return false; + if (hasQueuedResource()) { + if (!getQueuedResource().equals(other.getQueuedResource())) 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(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + QUEUED_RESOURCE_ID_FIELD_NUMBER; + hash = (53 * hash) + getQueuedResourceId().hashCode(); + if (hasQueuedResource()) { + hash = (37 * hash) + QUEUED_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getQueuedResource().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.tpu.v2.CreateQueuedResourceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.CreateQueuedResourceRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.CreateQueuedResourceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.CreateQueuedResourceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.CreateQueuedResourceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.CreateQueuedResourceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.CreateQueuedResourceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.CreateQueuedResourceRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.CreateQueuedResourceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.CreateQueuedResourceRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.CreateQueuedResourceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.CreateQueuedResourceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.tpu.v2.CreateQueuedResourceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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
    +   * [CreateQueuedResource][google.cloud.tpu.v2.Tpu.CreateQueuedResource].
    +   * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.CreateQueuedResourceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.CreateQueuedResourceRequest) + com.google.cloud.tpu.v2.CreateQueuedResourceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_CreateQueuedResourceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_CreateQueuedResourceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.CreateQueuedResourceRequest.class, + com.google.cloud.tpu.v2.CreateQueuedResourceRequest.Builder.class); + } + + // Construct using com.google.cloud.tpu.v2.CreateQueuedResourceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getQueuedResourceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + queuedResourceId_ = ""; + queuedResource_ = null; + if (queuedResourceBuilder_ != null) { + queuedResourceBuilder_.dispose(); + queuedResourceBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_CreateQueuedResourceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.CreateQueuedResourceRequest getDefaultInstanceForType() { + return com.google.cloud.tpu.v2.CreateQueuedResourceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.tpu.v2.CreateQueuedResourceRequest build() { + com.google.cloud.tpu.v2.CreateQueuedResourceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.CreateQueuedResourceRequest buildPartial() { + com.google.cloud.tpu.v2.CreateQueuedResourceRequest result = + new com.google.cloud.tpu.v2.CreateQueuedResourceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.tpu.v2.CreateQueuedResourceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.queuedResourceId_ = queuedResourceId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.queuedResource_ = + queuedResourceBuilder_ == null ? queuedResource_ : queuedResourceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 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.tpu.v2.CreateQueuedResourceRequest) { + return mergeFrom((com.google.cloud.tpu.v2.CreateQueuedResourceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.tpu.v2.CreateQueuedResourceRequest other) { + if (other == com.google.cloud.tpu.v2.CreateQueuedResourceRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getQueuedResourceId().isEmpty()) { + queuedResourceId_ = other.queuedResourceId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasQueuedResource()) { + mergeQueuedResource(other.getQueuedResource()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + queuedResourceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getQueuedResourceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = 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 parent_ = ""; + /** + * + * + *
    +     * Required. The parent resource name.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. The parent resource name.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. The parent resource name.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The parent resource name.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The parent resource name.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object queuedResourceId_ = ""; + /** + * + * + *
    +     * Optional. The unqualified resource name. Should follow the
    +     * `^[A-Za-z0-9_.~+%-]+$` regex format.
    +     * 
    + * + * string queued_resource_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The queuedResourceId. + */ + public java.lang.String getQueuedResourceId() { + java.lang.Object ref = queuedResourceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + queuedResourceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Optional. The unqualified resource name. Should follow the
    +     * `^[A-Za-z0-9_.~+%-]+$` regex format.
    +     * 
    + * + * string queued_resource_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for queuedResourceId. + */ + public com.google.protobuf.ByteString getQueuedResourceIdBytes() { + java.lang.Object ref = queuedResourceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + queuedResourceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Optional. The unqualified resource name. Should follow the
    +     * `^[A-Za-z0-9_.~+%-]+$` regex format.
    +     * 
    + * + * string queued_resource_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The queuedResourceId to set. + * @return This builder for chaining. + */ + public Builder setQueuedResourceId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + queuedResourceId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The unqualified resource name. Should follow the
    +     * `^[A-Za-z0-9_.~+%-]+$` regex format.
    +     * 
    + * + * string queued_resource_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearQueuedResourceId() { + queuedResourceId_ = getDefaultInstance().getQueuedResourceId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The unqualified resource name. Should follow the
    +     * `^[A-Za-z0-9_.~+%-]+$` regex format.
    +     * 
    + * + * string queued_resource_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for queuedResourceId to set. + * @return This builder for chaining. + */ + public Builder setQueuedResourceIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + queuedResourceId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.tpu.v2.QueuedResource queuedResource_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResource, + com.google.cloud.tpu.v2.QueuedResource.Builder, + com.google.cloud.tpu.v2.QueuedResourceOrBuilder> + queuedResourceBuilder_; + /** + * + * + *
    +     * Required. The queued resource.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the queuedResource field is set. + */ + public boolean hasQueuedResource() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +     * Required. The queued resource.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The queuedResource. + */ + public com.google.cloud.tpu.v2.QueuedResource getQueuedResource() { + if (queuedResourceBuilder_ == null) { + return queuedResource_ == null + ? com.google.cloud.tpu.v2.QueuedResource.getDefaultInstance() + : queuedResource_; + } else { + return queuedResourceBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Required. The queued resource.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setQueuedResource(com.google.cloud.tpu.v2.QueuedResource value) { + if (queuedResourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + queuedResource_ = value; + } else { + queuedResourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The queued resource.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setQueuedResource( + com.google.cloud.tpu.v2.QueuedResource.Builder builderForValue) { + if (queuedResourceBuilder_ == null) { + queuedResource_ = builderForValue.build(); + } else { + queuedResourceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The queued resource.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeQueuedResource(com.google.cloud.tpu.v2.QueuedResource value) { + if (queuedResourceBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && queuedResource_ != null + && queuedResource_ != com.google.cloud.tpu.v2.QueuedResource.getDefaultInstance()) { + getQueuedResourceBuilder().mergeFrom(value); + } else { + queuedResource_ = value; + } + } else { + queuedResourceBuilder_.mergeFrom(value); + } + if (queuedResource_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Required. The queued resource.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearQueuedResource() { + bitField0_ = (bitField0_ & ~0x00000004); + queuedResource_ = null; + if (queuedResourceBuilder_ != null) { + queuedResourceBuilder_.dispose(); + queuedResourceBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The queued resource.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.tpu.v2.QueuedResource.Builder getQueuedResourceBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getQueuedResourceFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Required. The queued resource.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.tpu.v2.QueuedResourceOrBuilder getQueuedResourceOrBuilder() { + if (queuedResourceBuilder_ != null) { + return queuedResourceBuilder_.getMessageOrBuilder(); + } else { + return queuedResource_ == null + ? com.google.cloud.tpu.v2.QueuedResource.getDefaultInstance() + : queuedResource_; + } + } + /** + * + * + *
    +     * Required. The queued resource.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResource, + com.google.cloud.tpu.v2.QueuedResource.Builder, + com.google.cloud.tpu.v2.QueuedResourceOrBuilder> + getQueuedResourceFieldBuilder() { + if (queuedResourceBuilder_ == null) { + queuedResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResource, + com.google.cloud.tpu.v2.QueuedResource.Builder, + com.google.cloud.tpu.v2.QueuedResourceOrBuilder>( + getQueuedResource(), getParentForChildren(), isClean()); + queuedResource_ = null; + } + return queuedResourceBuilder_; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
    +     * Optional. Idempotent request UUID.
    +     * 
    + * + * string request_id = 4 [(.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. Idempotent request UUID.
    +     * 
    + * + * string request_id = 4 [(.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. Idempotent request UUID.
    +     * 
    + * + * string request_id = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. Idempotent request UUID.
    +     * 
    + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. Idempotent request UUID.
    +     * 
    + * + * string request_id = 4 [(.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_ |= 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.tpu.v2.CreateQueuedResourceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.CreateQueuedResourceRequest) + private static final com.google.cloud.tpu.v2.CreateQueuedResourceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.CreateQueuedResourceRequest(); + } + + public static com.google.cloud.tpu.v2.CreateQueuedResourceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateQueuedResourceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.CreateQueuedResourceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/CreateQueuedResourceRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/CreateQueuedResourceRequestOrBuilder.java new file mode 100644 index 000000000000..e3eee98ef314 --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/CreateQueuedResourceRequestOrBuilder.java @@ -0,0 +1,148 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v2/cloud_tpu.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.tpu.v2; + +public interface CreateQueuedResourceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.CreateQueuedResourceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent resource name.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
    +   * Required. The parent resource name.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Optional. The unqualified resource name. Should follow the
    +   * `^[A-Za-z0-9_.~+%-]+$` regex format.
    +   * 
    + * + * string queued_resource_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The queuedResourceId. + */ + java.lang.String getQueuedResourceId(); + /** + * + * + *
    +   * Optional. The unqualified resource name. Should follow the
    +   * `^[A-Za-z0-9_.~+%-]+$` regex format.
    +   * 
    + * + * string queued_resource_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for queuedResourceId. + */ + com.google.protobuf.ByteString getQueuedResourceIdBytes(); + + /** + * + * + *
    +   * Required. The queued resource.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the queuedResource field is set. + */ + boolean hasQueuedResource(); + /** + * + * + *
    +   * Required. The queued resource.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The queuedResource. + */ + com.google.cloud.tpu.v2.QueuedResource getQueuedResource(); + /** + * + * + *
    +   * Required. The queued resource.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource queued_resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.tpu.v2.QueuedResourceOrBuilder getQueuedResourceOrBuilder(); + + /** + * + * + *
    +   * Optional. Idempotent request UUID.
    +   * 
    + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
    +   * Optional. Idempotent request UUID.
    +   * 
    + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/DeleteQueuedResourceRequest.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/DeleteQueuedResourceRequest.java new file mode 100644 index 000000000000..dcdecd308296 --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/DeleteQueuedResourceRequest.java @@ -0,0 +1,932 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v2/cloud_tpu.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.tpu.v2; + +/** + * + * + *
    + * Request for
    + * [DeleteQueuedResource][google.cloud.tpu.v2.Tpu.DeleteQueuedResource].
    + * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.DeleteQueuedResourceRequest} + */ +public final class DeleteQueuedResourceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.DeleteQueuedResourceRequest) + DeleteQueuedResourceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteQueuedResourceRequest.newBuilder() to construct. + private DeleteQueuedResourceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteQueuedResourceRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteQueuedResourceRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_DeleteQueuedResourceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_DeleteQueuedResourceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.DeleteQueuedResourceRequest.class, + com.google.cloud.tpu.v2.DeleteQueuedResourceRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Required. The resource 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. The resource 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 REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
    +   * Optional. Idempotent request UUID.
    +   * 
    + * + * string request_id = 2 [(.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. Idempotent request UUID.
    +   * 
    + * + * string request_id = 2 [(.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; + } + } + + public static final int FORCE_FIELD_NUMBER = 3; + private boolean force_ = false; + /** + * + * + *
    +   * Optional. If set to true, all running nodes belonging to this queued
    +   * resource will be deleted first and then the queued resource will be
    +   * deleted. Otherwise (i.e. force=false), the queued resource will only be
    +   * deleted if its nodes have already been deleted or the queued resource is in
    +   * the ACCEPTED, FAILED, or SUSPENDED state.
    +   * 
    + * + * 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); + } + 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.tpu.v2.DeleteQueuedResourceRequest)) { + return super.equals(obj); + } + com.google.cloud.tpu.v2.DeleteQueuedResourceRequest other = + (com.google.cloud.tpu.v2.DeleteQueuedResourceRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) 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) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().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.tpu.v2.DeleteQueuedResourceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.DeleteQueuedResourceRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.DeleteQueuedResourceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.DeleteQueuedResourceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.DeleteQueuedResourceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.DeleteQueuedResourceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.DeleteQueuedResourceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.DeleteQueuedResourceRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.DeleteQueuedResourceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.DeleteQueuedResourceRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.DeleteQueuedResourceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.DeleteQueuedResourceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.tpu.v2.DeleteQueuedResourceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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
    +   * [DeleteQueuedResource][google.cloud.tpu.v2.Tpu.DeleteQueuedResource].
    +   * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.DeleteQueuedResourceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.DeleteQueuedResourceRequest) + com.google.cloud.tpu.v2.DeleteQueuedResourceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_DeleteQueuedResourceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_DeleteQueuedResourceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.DeleteQueuedResourceRequest.class, + com.google.cloud.tpu.v2.DeleteQueuedResourceRequest.Builder.class); + } + + // Construct using com.google.cloud.tpu.v2.DeleteQueuedResourceRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + force_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_DeleteQueuedResourceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.DeleteQueuedResourceRequest getDefaultInstanceForType() { + return com.google.cloud.tpu.v2.DeleteQueuedResourceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.tpu.v2.DeleteQueuedResourceRequest build() { + com.google.cloud.tpu.v2.DeleteQueuedResourceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.DeleteQueuedResourceRequest buildPartial() { + com.google.cloud.tpu.v2.DeleteQueuedResourceRequest result = + new com.google.cloud.tpu.v2.DeleteQueuedResourceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.tpu.v2.DeleteQueuedResourceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + if (((from_bitField0_ & 0x00000004) != 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.tpu.v2.DeleteQueuedResourceRequest) { + return mergeFrom((com.google.cloud.tpu.v2.DeleteQueuedResourceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.tpu.v2.DeleteQueuedResourceRequest other) { + if (other == com.google.cloud.tpu.v2.DeleteQueuedResourceRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + 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 18: + { + requestId_ = input.readStringRequireUtf8(); + 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. The resource 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. The resource 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. The resource 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. The resource 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. The resource 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 java.lang.Object requestId_ = ""; + /** + * + * + *
    +     * Optional. Idempotent request UUID.
    +     * 
    + * + * string request_id = 2 [(.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. Idempotent request UUID.
    +     * 
    + * + * string request_id = 2 [(.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. Idempotent request UUID.
    +     * 
    + * + * string request_id = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. Idempotent request UUID.
    +     * 
    + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. Idempotent request UUID.
    +     * 
    + * + * string request_id = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean force_; + /** + * + * + *
    +     * Optional. If set to true, all running nodes belonging to this queued
    +     * resource will be deleted first and then the queued resource will be
    +     * deleted. Otherwise (i.e. force=false), the queued resource will only be
    +     * deleted if its nodes have already been deleted or the queued resource is in
    +     * the ACCEPTED, FAILED, or SUSPENDED state.
    +     * 
    + * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + /** + * + * + *
    +     * Optional. If set to true, all running nodes belonging to this queued
    +     * resource will be deleted first and then the queued resource will be
    +     * deleted. Otherwise (i.e. force=false), the queued resource will only be
    +     * deleted if its nodes have already been deleted or the queued resource is in
    +     * the ACCEPTED, FAILED, or SUSPENDED state.
    +     * 
    + * + * 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. If set to true, all running nodes belonging to this queued
    +     * resource will be deleted first and then the queued resource will be
    +     * deleted. Otherwise (i.e. force=false), the queued resource will only be
    +     * deleted if its nodes have already been deleted or the queued resource is in
    +     * the ACCEPTED, FAILED, or SUSPENDED state.
    +     * 
    + * + * 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.tpu.v2.DeleteQueuedResourceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.DeleteQueuedResourceRequest) + private static final com.google.cloud.tpu.v2.DeleteQueuedResourceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.DeleteQueuedResourceRequest(); + } + + public static com.google.cloud.tpu.v2.DeleteQueuedResourceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteQueuedResourceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.DeleteQueuedResourceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/DeleteQueuedResourceRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/DeleteQueuedResourceRequestOrBuilder.java new file mode 100644 index 000000000000..011717369c14 --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/DeleteQueuedResourceRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v2/cloud_tpu.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.tpu.v2; + +public interface DeleteQueuedResourceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.DeleteQueuedResourceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Required. The resource name.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Optional. Idempotent request UUID.
    +   * 
    + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
    +   * Optional. Idempotent request UUID.
    +   * 
    + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
    +   * Optional. If set to true, all running nodes belonging to this queued
    +   * resource will be deleted first and then the queued resource will be
    +   * deleted. Otherwise (i.e. force=false), the queued resource will only be
    +   * deleted if its nodes have already been deleted or the queued resource is in
    +   * the ACCEPTED, FAILED, or SUSPENDED state.
    +   * 
    + * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + boolean getForce(); +} diff --git a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetQueuedResourceRequest.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetQueuedResourceRequest.java new file mode 100644 index 000000000000..d1c072b08efb --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetQueuedResourceRequest.java @@ -0,0 +1,639 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v2/cloud_tpu.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.tpu.v2; + +/** + * + * + *
    + * Request for [GetQueuedResource][google.cloud.tpu.v2.Tpu.GetQueuedResource]
    + * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.GetQueuedResourceRequest} + */ +public final class GetQueuedResourceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.GetQueuedResourceRequest) + GetQueuedResourceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetQueuedResourceRequest.newBuilder() to construct. + private GetQueuedResourceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetQueuedResourceRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetQueuedResourceRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GetQueuedResourceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GetQueuedResourceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.GetQueuedResourceRequest.class, + com.google.cloud.tpu.v2.GetQueuedResourceRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Required. The resource 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. The resource 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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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.tpu.v2.GetQueuedResourceRequest)) { + return super.equals(obj); + } + com.google.cloud.tpu.v2.GetQueuedResourceRequest other = + (com.google.cloud.tpu.v2.GetQueuedResourceRequest) 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.tpu.v2.GetQueuedResourceRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.GetQueuedResourceRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.GetQueuedResourceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.GetQueuedResourceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.GetQueuedResourceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.GetQueuedResourceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.GetQueuedResourceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.GetQueuedResourceRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.GetQueuedResourceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.GetQueuedResourceRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.GetQueuedResourceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.GetQueuedResourceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.tpu.v2.GetQueuedResourceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 [GetQueuedResource][google.cloud.tpu.v2.Tpu.GetQueuedResource]
    +   * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.GetQueuedResourceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.GetQueuedResourceRequest) + com.google.cloud.tpu.v2.GetQueuedResourceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GetQueuedResourceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GetQueuedResourceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.GetQueuedResourceRequest.class, + com.google.cloud.tpu.v2.GetQueuedResourceRequest.Builder.class); + } + + // Construct using com.google.cloud.tpu.v2.GetQueuedResourceRequest.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.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_GetQueuedResourceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.GetQueuedResourceRequest getDefaultInstanceForType() { + return com.google.cloud.tpu.v2.GetQueuedResourceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.tpu.v2.GetQueuedResourceRequest build() { + com.google.cloud.tpu.v2.GetQueuedResourceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.GetQueuedResourceRequest buildPartial() { + com.google.cloud.tpu.v2.GetQueuedResourceRequest result = + new com.google.cloud.tpu.v2.GetQueuedResourceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.tpu.v2.GetQueuedResourceRequest 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.tpu.v2.GetQueuedResourceRequest) { + return mergeFrom((com.google.cloud.tpu.v2.GetQueuedResourceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.tpu.v2.GetQueuedResourceRequest other) { + if (other == com.google.cloud.tpu.v2.GetQueuedResourceRequest.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.
    +     * 
    + * + * + * 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.
    +     * 
    + * + * + * 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.
    +     * 
    + * + * + * 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.
    +     * 
    + * + * + * 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.
    +     * 
    + * + * + * 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.tpu.v2.GetQueuedResourceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.GetQueuedResourceRequest) + private static final com.google.cloud.tpu.v2.GetQueuedResourceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.GetQueuedResourceRequest(); + } + + public static com.google.cloud.tpu.v2.GetQueuedResourceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetQueuedResourceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.GetQueuedResourceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetQueuedResourceRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetQueuedResourceRequestOrBuilder.java new file mode 100644 index 000000000000..f60d5eaa579b --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/GetQueuedResourceRequestOrBuilder.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v2/cloud_tpu.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.tpu.v2; + +public interface GetQueuedResourceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.GetQueuedResourceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Required. The resource name.
    +   * 
    + * + * + * 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-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListQueuedResourcesRequest.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListQueuedResourcesRequest.java new file mode 100644 index 000000000000..037ac2ee83ab --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListQueuedResourcesRequest.java @@ -0,0 +1,923 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v2/cloud_tpu.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.tpu.v2; + +/** + * + * + *
    + * Request for
    + * [ListQueuedResources][google.cloud.tpu.v2.Tpu.ListQueuedResources].
    + * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.ListQueuedResourcesRequest} + */ +public final class ListQueuedResourcesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.ListQueuedResourcesRequest) + ListQueuedResourcesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListQueuedResourcesRequest.newBuilder() to construct. + private ListQueuedResourcesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListQueuedResourcesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListQueuedResourcesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ListQueuedResourcesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ListQueuedResourcesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.ListQueuedResourcesRequest.class, + com.google.cloud.tpu.v2.ListQueuedResourcesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
    +   * Required. The parent resource name.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. The parent resource name.
    +   * 
    + * + * + * 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 maximum number of items to return.
    +   * 
    + * + * 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 next_page_token value returned from a previous List request,
    +   * if any.
    +   * 
    + * + * 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 next_page_token value returned from a previous List request,
    +   * if any.
    +   * 
    + * + * 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.tpu.v2.ListQueuedResourcesRequest)) { + return super.equals(obj); + } + com.google.cloud.tpu.v2.ListQueuedResourcesRequest other = + (com.google.cloud.tpu.v2.ListQueuedResourcesRequest) 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.tpu.v2.ListQueuedResourcesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.ListQueuedResourcesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.ListQueuedResourcesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.ListQueuedResourcesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.ListQueuedResourcesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.ListQueuedResourcesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.ListQueuedResourcesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.ListQueuedResourcesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.ListQueuedResourcesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.ListQueuedResourcesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.ListQueuedResourcesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.ListQueuedResourcesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.tpu.v2.ListQueuedResourcesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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
    +   * [ListQueuedResources][google.cloud.tpu.v2.Tpu.ListQueuedResources].
    +   * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.ListQueuedResourcesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.ListQueuedResourcesRequest) + com.google.cloud.tpu.v2.ListQueuedResourcesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ListQueuedResourcesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ListQueuedResourcesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.ListQueuedResourcesRequest.class, + com.google.cloud.tpu.v2.ListQueuedResourcesRequest.Builder.class); + } + + // Construct using com.google.cloud.tpu.v2.ListQueuedResourcesRequest.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.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ListQueuedResourcesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.ListQueuedResourcesRequest getDefaultInstanceForType() { + return com.google.cloud.tpu.v2.ListQueuedResourcesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.tpu.v2.ListQueuedResourcesRequest build() { + com.google.cloud.tpu.v2.ListQueuedResourcesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.ListQueuedResourcesRequest buildPartial() { + com.google.cloud.tpu.v2.ListQueuedResourcesRequest result = + new com.google.cloud.tpu.v2.ListQueuedResourcesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.tpu.v2.ListQueuedResourcesRequest 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.tpu.v2.ListQueuedResourcesRequest) { + return mergeFrom((com.google.cloud.tpu.v2.ListQueuedResourcesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.tpu.v2.ListQueuedResourcesRequest other) { + if (other == com.google.cloud.tpu.v2.ListQueuedResourcesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
    +     * Required. The parent resource name.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. The parent resource name.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. The parent resource name.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The parent resource name.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The parent resource name.
    +     * 
    + * + * + * 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 maximum number of items to return.
    +     * 
    + * + * 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 items to return.
    +     * 
    + * + * 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 items to return.
    +     * 
    + * + * 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 next_page_token value returned from a previous List request,
    +     * if any.
    +     * 
    + * + * 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 next_page_token value returned from a previous List request,
    +     * if any.
    +     * 
    + * + * 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 next_page_token value returned from a previous List request,
    +     * if any.
    +     * 
    + * + * 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 next_page_token value returned from a previous List request,
    +     * if any.
    +     * 
    + * + * 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 next_page_token value returned from a previous List request,
    +     * if any.
    +     * 
    + * + * 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.tpu.v2.ListQueuedResourcesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.ListQueuedResourcesRequest) + private static final com.google.cloud.tpu.v2.ListQueuedResourcesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.ListQueuedResourcesRequest(); + } + + public static com.google.cloud.tpu.v2.ListQueuedResourcesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListQueuedResourcesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.ListQueuedResourcesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListQueuedResourcesRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListQueuedResourcesRequestOrBuilder.java new file mode 100644 index 000000000000..1be89fa17988 --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListQueuedResourcesRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v2/cloud_tpu.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.tpu.v2; + +public interface ListQueuedResourcesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.ListQueuedResourcesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent resource name.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
    +   * Required. The parent resource name.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Optional. The maximum number of items to return.
    +   * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
    +   * Optional. The next_page_token value returned from a previous List request,
    +   * if any.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
    +   * Optional. The next_page_token value returned from a previous List request,
    +   * if any.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListQueuedResourcesResponse.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListQueuedResourcesResponse.java new file mode 100644 index 000000000000..8a28cada19c8 --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListQueuedResourcesResponse.java @@ -0,0 +1,1402 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v2/cloud_tpu.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.tpu.v2; + +/** + * + * + *
    + * Response for
    + * [ListQueuedResources][google.cloud.tpu.v2.Tpu.ListQueuedResources].
    + * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.ListQueuedResourcesResponse} + */ +public final class ListQueuedResourcesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.ListQueuedResourcesResponse) + ListQueuedResourcesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListQueuedResourcesResponse.newBuilder() to construct. + private ListQueuedResourcesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListQueuedResourcesResponse() { + queuedResources_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListQueuedResourcesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ListQueuedResourcesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ListQueuedResourcesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.ListQueuedResourcesResponse.class, + com.google.cloud.tpu.v2.ListQueuedResourcesResponse.Builder.class); + } + + public static final int QUEUED_RESOURCES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List queuedResources_; + /** + * + * + *
    +   * The listed queued resources.
    +   * 
    + * + * repeated .google.cloud.tpu.v2.QueuedResource queued_resources = 1; + */ + @java.lang.Override + public java.util.List getQueuedResourcesList() { + return queuedResources_; + } + /** + * + * + *
    +   * The listed queued resources.
    +   * 
    + * + * repeated .google.cloud.tpu.v2.QueuedResource queued_resources = 1; + */ + @java.lang.Override + public java.util.List + getQueuedResourcesOrBuilderList() { + return queuedResources_; + } + /** + * + * + *
    +   * The listed queued resources.
    +   * 
    + * + * repeated .google.cloud.tpu.v2.QueuedResource queued_resources = 1; + */ + @java.lang.Override + public int getQueuedResourcesCount() { + return queuedResources_.size(); + } + /** + * + * + *
    +   * The listed queued resources.
    +   * 
    + * + * repeated .google.cloud.tpu.v2.QueuedResource queued_resources = 1; + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource getQueuedResources(int index) { + return queuedResources_.get(index); + } + /** + * + * + *
    +   * The listed queued resources.
    +   * 
    + * + * repeated .google.cloud.tpu.v2.QueuedResource queued_resources = 1; + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceOrBuilder getQueuedResourcesOrBuilder(int index) { + return queuedResources_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
    +   * The next page token or empty if none.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
    +   * The next page token or empty if none.
    +   * 
    + * + * 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; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.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 < queuedResources_.size(); i++) { + output.writeMessage(1, queuedResources_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(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 < queuedResources_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, queuedResources_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().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.tpu.v2.ListQueuedResourcesResponse)) { + return super.equals(obj); + } + com.google.cloud.tpu.v2.ListQueuedResourcesResponse other = + (com.google.cloud.tpu.v2.ListQueuedResourcesResponse) obj; + + if (!getQueuedResourcesList().equals(other.getQueuedResourcesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.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 (getQueuedResourcesCount() > 0) { + hash = (37 * hash) + QUEUED_RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getQueuedResourcesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.tpu.v2.ListQueuedResourcesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.ListQueuedResourcesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.ListQueuedResourcesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.ListQueuedResourcesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.ListQueuedResourcesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.ListQueuedResourcesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.ListQueuedResourcesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.ListQueuedResourcesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.ListQueuedResourcesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.ListQueuedResourcesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.ListQueuedResourcesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.ListQueuedResourcesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.tpu.v2.ListQueuedResourcesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Response for
    +   * [ListQueuedResources][google.cloud.tpu.v2.Tpu.ListQueuedResources].
    +   * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.ListQueuedResourcesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.ListQueuedResourcesResponse) + com.google.cloud.tpu.v2.ListQueuedResourcesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ListQueuedResourcesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ListQueuedResourcesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.ListQueuedResourcesResponse.class, + com.google.cloud.tpu.v2.ListQueuedResourcesResponse.Builder.class); + } + + // Construct using com.google.cloud.tpu.v2.ListQueuedResourcesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (queuedResourcesBuilder_ == null) { + queuedResources_ = java.util.Collections.emptyList(); + } else { + queuedResources_ = null; + queuedResourcesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ListQueuedResourcesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.ListQueuedResourcesResponse getDefaultInstanceForType() { + return com.google.cloud.tpu.v2.ListQueuedResourcesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.tpu.v2.ListQueuedResourcesResponse build() { + com.google.cloud.tpu.v2.ListQueuedResourcesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.ListQueuedResourcesResponse buildPartial() { + com.google.cloud.tpu.v2.ListQueuedResourcesResponse result = + new com.google.cloud.tpu.v2.ListQueuedResourcesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.tpu.v2.ListQueuedResourcesResponse result) { + if (queuedResourcesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + queuedResources_ = java.util.Collections.unmodifiableList(queuedResources_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.queuedResources_ = queuedResources_; + } else { + result.queuedResources_ = queuedResourcesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.tpu.v2.ListQueuedResourcesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.tpu.v2.ListQueuedResourcesResponse) { + return mergeFrom((com.google.cloud.tpu.v2.ListQueuedResourcesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.tpu.v2.ListQueuedResourcesResponse other) { + if (other == com.google.cloud.tpu.v2.ListQueuedResourcesResponse.getDefaultInstance()) + return this; + if (queuedResourcesBuilder_ == null) { + if (!other.queuedResources_.isEmpty()) { + if (queuedResources_.isEmpty()) { + queuedResources_ = other.queuedResources_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureQueuedResourcesIsMutable(); + queuedResources_.addAll(other.queuedResources_); + } + onChanged(); + } + } else { + if (!other.queuedResources_.isEmpty()) { + if (queuedResourcesBuilder_.isEmpty()) { + queuedResourcesBuilder_.dispose(); + queuedResourcesBuilder_ = null; + queuedResources_ = other.queuedResources_; + bitField0_ = (bitField0_ & ~0x00000001); + queuedResourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getQueuedResourcesFieldBuilder() + : null; + } else { + queuedResourcesBuilder_.addAllMessages(other.queuedResources_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + 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.tpu.v2.QueuedResource m = + input.readMessage( + com.google.cloud.tpu.v2.QueuedResource.parser(), extensionRegistry); + if (queuedResourcesBuilder_ == null) { + ensureQueuedResourcesIsMutable(); + queuedResources_.add(m); + } else { + queuedResourcesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + 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 queuedResources_ = + java.util.Collections.emptyList(); + + private void ensureQueuedResourcesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + queuedResources_ = + new java.util.ArrayList(queuedResources_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResource, + com.google.cloud.tpu.v2.QueuedResource.Builder, + com.google.cloud.tpu.v2.QueuedResourceOrBuilder> + queuedResourcesBuilder_; + + /** + * + * + *
    +     * The listed queued resources.
    +     * 
    + * + * repeated .google.cloud.tpu.v2.QueuedResource queued_resources = 1; + */ + public java.util.List getQueuedResourcesList() { + if (queuedResourcesBuilder_ == null) { + return java.util.Collections.unmodifiableList(queuedResources_); + } else { + return queuedResourcesBuilder_.getMessageList(); + } + } + /** + * + * + *
    +     * The listed queued resources.
    +     * 
    + * + * repeated .google.cloud.tpu.v2.QueuedResource queued_resources = 1; + */ + public int getQueuedResourcesCount() { + if (queuedResourcesBuilder_ == null) { + return queuedResources_.size(); + } else { + return queuedResourcesBuilder_.getCount(); + } + } + /** + * + * + *
    +     * The listed queued resources.
    +     * 
    + * + * repeated .google.cloud.tpu.v2.QueuedResource queued_resources = 1; + */ + public com.google.cloud.tpu.v2.QueuedResource getQueuedResources(int index) { + if (queuedResourcesBuilder_ == null) { + return queuedResources_.get(index); + } else { + return queuedResourcesBuilder_.getMessage(index); + } + } + /** + * + * + *
    +     * The listed queued resources.
    +     * 
    + * + * repeated .google.cloud.tpu.v2.QueuedResource queued_resources = 1; + */ + public Builder setQueuedResources(int index, com.google.cloud.tpu.v2.QueuedResource value) { + if (queuedResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQueuedResourcesIsMutable(); + queuedResources_.set(index, value); + onChanged(); + } else { + queuedResourcesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * The listed queued resources.
    +     * 
    + * + * repeated .google.cloud.tpu.v2.QueuedResource queued_resources = 1; + */ + public Builder setQueuedResources( + int index, com.google.cloud.tpu.v2.QueuedResource.Builder builderForValue) { + if (queuedResourcesBuilder_ == null) { + ensureQueuedResourcesIsMutable(); + queuedResources_.set(index, builderForValue.build()); + onChanged(); + } else { + queuedResourcesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * The listed queued resources.
    +     * 
    + * + * repeated .google.cloud.tpu.v2.QueuedResource queued_resources = 1; + */ + public Builder addQueuedResources(com.google.cloud.tpu.v2.QueuedResource value) { + if (queuedResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQueuedResourcesIsMutable(); + queuedResources_.add(value); + onChanged(); + } else { + queuedResourcesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
    +     * The listed queued resources.
    +     * 
    + * + * repeated .google.cloud.tpu.v2.QueuedResource queued_resources = 1; + */ + public Builder addQueuedResources(int index, com.google.cloud.tpu.v2.QueuedResource value) { + if (queuedResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQueuedResourcesIsMutable(); + queuedResources_.add(index, value); + onChanged(); + } else { + queuedResourcesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * The listed queued resources.
    +     * 
    + * + * repeated .google.cloud.tpu.v2.QueuedResource queued_resources = 1; + */ + public Builder addQueuedResources( + com.google.cloud.tpu.v2.QueuedResource.Builder builderForValue) { + if (queuedResourcesBuilder_ == null) { + ensureQueuedResourcesIsMutable(); + queuedResources_.add(builderForValue.build()); + onChanged(); + } else { + queuedResourcesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * The listed queued resources.
    +     * 
    + * + * repeated .google.cloud.tpu.v2.QueuedResource queued_resources = 1; + */ + public Builder addQueuedResources( + int index, com.google.cloud.tpu.v2.QueuedResource.Builder builderForValue) { + if (queuedResourcesBuilder_ == null) { + ensureQueuedResourcesIsMutable(); + queuedResources_.add(index, builderForValue.build()); + onChanged(); + } else { + queuedResourcesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * The listed queued resources.
    +     * 
    + * + * repeated .google.cloud.tpu.v2.QueuedResource queued_resources = 1; + */ + public Builder addAllQueuedResources( + java.lang.Iterable values) { + if (queuedResourcesBuilder_ == null) { + ensureQueuedResourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, queuedResources_); + onChanged(); + } else { + queuedResourcesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
    +     * The listed queued resources.
    +     * 
    + * + * repeated .google.cloud.tpu.v2.QueuedResource queued_resources = 1; + */ + public Builder clearQueuedResources() { + if (queuedResourcesBuilder_ == null) { + queuedResources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + queuedResourcesBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * The listed queued resources.
    +     * 
    + * + * repeated .google.cloud.tpu.v2.QueuedResource queued_resources = 1; + */ + public Builder removeQueuedResources(int index) { + if (queuedResourcesBuilder_ == null) { + ensureQueuedResourcesIsMutable(); + queuedResources_.remove(index); + onChanged(); + } else { + queuedResourcesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
    +     * The listed queued resources.
    +     * 
    + * + * repeated .google.cloud.tpu.v2.QueuedResource queued_resources = 1; + */ + public com.google.cloud.tpu.v2.QueuedResource.Builder getQueuedResourcesBuilder(int index) { + return getQueuedResourcesFieldBuilder().getBuilder(index); + } + /** + * + * + *
    +     * The listed queued resources.
    +     * 
    + * + * repeated .google.cloud.tpu.v2.QueuedResource queued_resources = 1; + */ + public com.google.cloud.tpu.v2.QueuedResourceOrBuilder getQueuedResourcesOrBuilder(int index) { + if (queuedResourcesBuilder_ == null) { + return queuedResources_.get(index); + } else { + return queuedResourcesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
    +     * The listed queued resources.
    +     * 
    + * + * repeated .google.cloud.tpu.v2.QueuedResource queued_resources = 1; + */ + public java.util.List + getQueuedResourcesOrBuilderList() { + if (queuedResourcesBuilder_ != null) { + return queuedResourcesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(queuedResources_); + } + } + /** + * + * + *
    +     * The listed queued resources.
    +     * 
    + * + * repeated .google.cloud.tpu.v2.QueuedResource queued_resources = 1; + */ + public com.google.cloud.tpu.v2.QueuedResource.Builder addQueuedResourcesBuilder() { + return getQueuedResourcesFieldBuilder() + .addBuilder(com.google.cloud.tpu.v2.QueuedResource.getDefaultInstance()); + } + /** + * + * + *
    +     * The listed queued resources.
    +     * 
    + * + * repeated .google.cloud.tpu.v2.QueuedResource queued_resources = 1; + */ + public com.google.cloud.tpu.v2.QueuedResource.Builder addQueuedResourcesBuilder(int index) { + return getQueuedResourcesFieldBuilder() + .addBuilder(index, com.google.cloud.tpu.v2.QueuedResource.getDefaultInstance()); + } + /** + * + * + *
    +     * The listed queued resources.
    +     * 
    + * + * repeated .google.cloud.tpu.v2.QueuedResource queued_resources = 1; + */ + public java.util.List + getQueuedResourcesBuilderList() { + return getQueuedResourcesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResource, + com.google.cloud.tpu.v2.QueuedResource.Builder, + com.google.cloud.tpu.v2.QueuedResourceOrBuilder> + getQueuedResourcesFieldBuilder() { + if (queuedResourcesBuilder_ == null) { + queuedResourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResource, + com.google.cloud.tpu.v2.QueuedResource.Builder, + com.google.cloud.tpu.v2.QueuedResourceOrBuilder>( + queuedResources_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + queuedResources_ = null; + } + return queuedResourcesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
    +     * The next page token or empty if none.
    +     * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * The next page token or empty if none.
    +     * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * The next page token or empty if none.
    +     * 
    + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * The next page token or empty if none.
    +     * 
    + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * The next page token or empty if none.
    +     * 
    + * + * 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; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + /** + * + * + *
    +     * Locations that could not be reached.
    +     * 
    + * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(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.tpu.v2.ListQueuedResourcesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.ListQueuedResourcesResponse) + private static final com.google.cloud.tpu.v2.ListQueuedResourcesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.ListQueuedResourcesResponse(); + } + + public static com.google.cloud.tpu.v2.ListQueuedResourcesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListQueuedResourcesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.ListQueuedResourcesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListQueuedResourcesResponseOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListQueuedResourcesResponseOrBuilder.java new file mode 100644 index 000000000000..8c2ddc17bea3 --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ListQueuedResourcesResponseOrBuilder.java @@ -0,0 +1,154 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v2/cloud_tpu.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.tpu.v2; + +public interface ListQueuedResourcesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.ListQueuedResourcesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The listed queued resources.
    +   * 
    + * + * repeated .google.cloud.tpu.v2.QueuedResource queued_resources = 1; + */ + java.util.List getQueuedResourcesList(); + /** + * + * + *
    +   * The listed queued resources.
    +   * 
    + * + * repeated .google.cloud.tpu.v2.QueuedResource queued_resources = 1; + */ + com.google.cloud.tpu.v2.QueuedResource getQueuedResources(int index); + /** + * + * + *
    +   * The listed queued resources.
    +   * 
    + * + * repeated .google.cloud.tpu.v2.QueuedResource queued_resources = 1; + */ + int getQueuedResourcesCount(); + /** + * + * + *
    +   * The listed queued resources.
    +   * 
    + * + * repeated .google.cloud.tpu.v2.QueuedResource queued_resources = 1; + */ + java.util.List + getQueuedResourcesOrBuilderList(); + /** + * + * + *
    +   * The listed queued resources.
    +   * 
    + * + * repeated .google.cloud.tpu.v2.QueuedResource queued_resources = 1; + */ + com.google.cloud.tpu.v2.QueuedResourceOrBuilder getQueuedResourcesOrBuilder(int index); + + /** + * + * + *
    +   * The next page token or empty if none.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
    +   * The next page token or empty if none.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + * + * + *
    +   * Locations that could not be reached.
    +   * 
    + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NetworkConfig.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NetworkConfig.java index 52101d00e31d..699b1525a580 100644 --- a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NetworkConfig.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NetworkConfig.java @@ -212,6 +212,25 @@ public boolean getCanIpForward() { return canIpForward_; } + public static final int QUEUE_COUNT_FIELD_NUMBER = 6; + private int queueCount_ = 0; + /** + * + * + *
    +   * Optional. Specifies networking queue count for TPU VM instance's network
    +   * interface.
    +   * 
    + * + * int32 queue_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The queueCount. + */ + @java.lang.Override + public int getQueueCount() { + return queueCount_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -238,6 +257,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (canIpForward_ != false) { output.writeBool(4, canIpForward_); } + if (queueCount_ != 0) { + output.writeInt32(6, queueCount_); + } getUnknownFields().writeTo(output); } @@ -259,6 +281,9 @@ public int getSerializedSize() { if (canIpForward_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, canIpForward_); } + if (queueCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, queueCount_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -278,6 +303,7 @@ public boolean equals(final java.lang.Object obj) { if (!getSubnetwork().equals(other.getSubnetwork())) return false; if (getEnableExternalIps() != other.getEnableExternalIps()) return false; if (getCanIpForward() != other.getCanIpForward()) return false; + if (getQueueCount() != other.getQueueCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -297,6 +323,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableExternalIps()); hash = (37 * hash) + CAN_IP_FORWARD_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCanIpForward()); + hash = (37 * hash) + QUEUE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getQueueCount(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -439,6 +467,7 @@ public Builder clear() { subnetwork_ = ""; enableExternalIps_ = false; canIpForward_ = false; + queueCount_ = 0; return this; } @@ -487,6 +516,9 @@ private void buildPartial0(com.google.cloud.tpu.v2.NetworkConfig result) { if (((from_bitField0_ & 0x00000008) != 0)) { result.canIpForward_ = canIpForward_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.queueCount_ = queueCount_; + } } @java.lang.Override @@ -550,6 +582,9 @@ public Builder mergeFrom(com.google.cloud.tpu.v2.NetworkConfig other) { if (other.getCanIpForward() != false) { setCanIpForward(other.getCanIpForward()); } + if (other.getQueueCount() != 0) { + setQueueCount(other.getQueueCount()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -600,6 +635,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 32 + case 48: + { + queueCount_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -964,6 +1005,62 @@ public Builder clearCanIpForward() { return this; } + private int queueCount_; + /** + * + * + *
    +     * Optional. Specifies networking queue count for TPU VM instance's network
    +     * interface.
    +     * 
    + * + * int32 queue_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The queueCount. + */ + @java.lang.Override + public int getQueueCount() { + return queueCount_; + } + /** + * + * + *
    +     * Optional. Specifies networking queue count for TPU VM instance's network
    +     * interface.
    +     * 
    + * + * int32 queue_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The queueCount to set. + * @return This builder for chaining. + */ + public Builder setQueueCount(int value) { + + queueCount_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. Specifies networking queue count for TPU VM instance's network
    +     * interface.
    +     * 
    + * + * int32 queue_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearQueueCount() { + bitField0_ = (bitField0_ & ~0x00000010); + queueCount_ = 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-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NetworkConfigOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NetworkConfigOrBuilder.java index 35fa3a370193..aeb9b6043803 100644 --- a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NetworkConfigOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NetworkConfigOrBuilder.java @@ -109,4 +109,18 @@ public interface NetworkConfigOrBuilder * @return The canIpForward. */ boolean getCanIpForward(); + + /** + * + * + *
    +   * Optional. Specifies networking queue count for TPU VM instance's network
    +   * interface.
    +   * 
    + * + * int32 queue_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The queueCount. + */ + int getQueueCount(); } diff --git a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/Node.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/Node.java index 45ec93fa042b..b1b84378eea1 100644 --- a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/Node.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/Node.java @@ -45,6 +45,7 @@ private Node() { state_ = 0; healthDescription_ = ""; runtimeVersion_ = ""; + networkConfigs_ = java.util.Collections.emptyList(); cidrBlock_ = ""; networkEndpoints_ = java.util.Collections.emptyList(); health_ = 0; @@ -251,6 +252,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * UNHIDING = 15; */ UNHIDING(15), + /** + * + * + *
    +     * TPU node has unknown state after a failed repair.
    +     * 
    + * + * UNKNOWN = 16; + */ + UNKNOWN(16), UNRECOGNIZED(-1), ; @@ -406,6 +417,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * UNHIDING = 15; */ public static final int UNHIDING_VALUE = 15; + /** + * + * + *
    +     * TPU node has unknown state after a failed repair.
    +     * 
    + * + * UNKNOWN = 16; + */ + public static final int UNKNOWN_VALUE = 16; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -461,6 +482,8 @@ public static State forNumber(int value) { return HIDDEN; case 15: return UNHIDING; + case 16: + return UNKNOWN; default: return null; } @@ -1224,7 +1247,9 @@ public com.google.protobuf.ByteString getRuntimeVersionBytes() { * * *
    -   * Network configurations for the TPU node.
    +   * Network configurations for the TPU node. network_config and network_configs
    +   * are mutually exclusive, you can only specify one of them. If both are
    +   * specified, an error will be returned.
        * 
    * * .google.cloud.tpu.v2.NetworkConfig network_config = 36; @@ -1239,7 +1264,9 @@ public boolean hasNetworkConfig() { * * *
    -   * Network configurations for the TPU node.
    +   * Network configurations for the TPU node. network_config and network_configs
    +   * are mutually exclusive, you can only specify one of them. If both are
    +   * specified, an error will be returned.
        * 
    * * .google.cloud.tpu.v2.NetworkConfig network_config = 36; @@ -1256,7 +1283,9 @@ public com.google.cloud.tpu.v2.NetworkConfig getNetworkConfig() { * * *
    -   * Network configurations for the TPU node.
    +   * Network configurations for the TPU node. network_config and network_configs
    +   * are mutually exclusive, you can only specify one of them. If both are
    +   * specified, an error will be returned.
        * 
    * * .google.cloud.tpu.v2.NetworkConfig network_config = 36; @@ -1268,6 +1297,102 @@ public com.google.cloud.tpu.v2.NetworkConfigOrBuilder getNetworkConfigOrBuilder( : networkConfig_; } + public static final int NETWORK_CONFIGS_FIELD_NUMBER = 49; + + @SuppressWarnings("serial") + private java.util.List networkConfigs_; + /** + * + * + *
    +   * Optional. Repeated network configurations for the TPU node. This field is
    +   * used to specify multiple networks configs for the TPU node. network_config
    +   * and network_configs are mutually exclusive, you can only specify one of
    +   * them. If both are specified, an error will be returned.
    +   * 
    + * + * + * repeated .google.cloud.tpu.v2.NetworkConfig network_configs = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getNetworkConfigsList() { + return networkConfigs_; + } + /** + * + * + *
    +   * Optional. Repeated network configurations for the TPU node. This field is
    +   * used to specify multiple networks configs for the TPU node. network_config
    +   * and network_configs are mutually exclusive, you can only specify one of
    +   * them. If both are specified, an error will be returned.
    +   * 
    + * + * + * repeated .google.cloud.tpu.v2.NetworkConfig network_configs = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getNetworkConfigsOrBuilderList() { + return networkConfigs_; + } + /** + * + * + *
    +   * Optional. Repeated network configurations for the TPU node. This field is
    +   * used to specify multiple networks configs for the TPU node. network_config
    +   * and network_configs are mutually exclusive, you can only specify one of
    +   * them. If both are specified, an error will be returned.
    +   * 
    + * + * + * repeated .google.cloud.tpu.v2.NetworkConfig network_configs = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getNetworkConfigsCount() { + return networkConfigs_.size(); + } + /** + * + * + *
    +   * Optional. Repeated network configurations for the TPU node. This field is
    +   * used to specify multiple networks configs for the TPU node. network_config
    +   * and network_configs are mutually exclusive, you can only specify one of
    +   * them. If both are specified, an error will be returned.
    +   * 
    + * + * + * repeated .google.cloud.tpu.v2.NetworkConfig network_configs = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.tpu.v2.NetworkConfig getNetworkConfigs(int index) { + return networkConfigs_.get(index); + } + /** + * + * + *
    +   * Optional. Repeated network configurations for the TPU node. This field is
    +   * used to specify multiple networks configs for the TPU node. network_config
    +   * and network_configs are mutually exclusive, you can only specify one of
    +   * them. If both are specified, an error will be returned.
    +   * 
    + * + * + * repeated .google.cloud.tpu.v2.NetworkConfig network_configs = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.tpu.v2.NetworkConfigOrBuilder getNetworkConfigsOrBuilder(int index) { + return networkConfigs_.get(index); + } + public static final int CIDR_BLOCK_FIELD_NUMBER = 13; @SuppressWarnings("serial") @@ -2353,6 +2478,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (multisliceNode_ != false) { output.writeBool(48, multisliceNode_); } + for (int i = 0; i < networkConfigs_.size(); i++) { + output.writeMessage(49, networkConfigs_.get(i)); + } getUnknownFields().writeTo(output); } @@ -2456,6 +2584,9 @@ public int getSerializedSize() { if (multisliceNode_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(48, multisliceNode_); } + for (int i = 0; i < networkConfigs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(49, networkConfigs_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2481,6 +2612,7 @@ public boolean equals(final java.lang.Object obj) { if (hasNetworkConfig()) { if (!getNetworkConfig().equals(other.getNetworkConfig())) return false; } + if (!getNetworkConfigsList().equals(other.getNetworkConfigsList())) return false; if (!getCidrBlock().equals(other.getCidrBlock())) return false; if (hasServiceAccount() != other.hasServiceAccount()) return false; if (hasServiceAccount()) { @@ -2540,6 +2672,10 @@ public int hashCode() { hash = (37 * hash) + NETWORK_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getNetworkConfig().hashCode(); } + if (getNetworkConfigsCount() > 0) { + hash = (37 * hash) + NETWORK_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getNetworkConfigsList().hashCode(); + } hash = (37 * hash) + CIDR_BLOCK_FIELD_NUMBER; hash = (53 * hash) + getCidrBlock().hashCode(); if (hasServiceAccount()) { @@ -2761,6 +2897,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getNetworkConfigFieldBuilder(); + getNetworkConfigsFieldBuilder(); getServiceAccountFieldBuilder(); getCreateTimeFieldBuilder(); getSchedulingConfigFieldBuilder(); @@ -2787,6 +2924,13 @@ public Builder clear() { networkConfigBuilder_.dispose(); networkConfigBuilder_ = null; } + if (networkConfigsBuilder_ == null) { + networkConfigs_ = java.util.Collections.emptyList(); + } else { + networkConfigs_ = null; + networkConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); cidrBlock_ = ""; serviceAccount_ = null; if (serviceAccountBuilder_ != null) { @@ -2809,7 +2953,7 @@ public Builder clear() { networkEndpoints_ = null; networkEndpointsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); health_ = 0; internalGetMutableLabels().clear(); internalGetMutableMetadata().clear(); @@ -2821,7 +2965,7 @@ public Builder clear() { dataDisks_ = null; dataDisksBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); apiVersion_ = 0; if (symptomsBuilder_ == null) { symptoms_ = java.util.Collections.emptyList(); @@ -2829,7 +2973,7 @@ public Builder clear() { symptoms_ = null; symptomsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); shieldedInstanceConfig_ = null; if (shieldedInstanceConfigBuilder_ != null) { shieldedInstanceConfigBuilder_.dispose(); @@ -2877,28 +3021,37 @@ public com.google.cloud.tpu.v2.Node buildPartial() { } private void buildPartialRepeatedFields(com.google.cloud.tpu.v2.Node result) { + if (networkConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + networkConfigs_ = java.util.Collections.unmodifiableList(networkConfigs_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.networkConfigs_ = networkConfigs_; + } else { + result.networkConfigs_ = networkConfigsBuilder_.build(); + } if (networkEndpointsBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { networkEndpoints_ = java.util.Collections.unmodifiableList(networkEndpoints_); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); } result.networkEndpoints_ = networkEndpoints_; } else { result.networkEndpoints_ = networkEndpointsBuilder_.build(); } if (dataDisksBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0)) { + if (((bitField0_ & 0x00040000) != 0)) { dataDisks_ = java.util.Collections.unmodifiableList(dataDisks_); - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); } result.dataDisks_ = dataDisks_; } else { result.dataDisks_ = dataDisksBuilder_.build(); } if (symptomsBuilder_ == null) { - if (((bitField0_ & 0x00080000) != 0)) { + if (((bitField0_ & 0x00100000) != 0)) { symptoms_ = java.util.Collections.unmodifiableList(symptoms_); - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); } result.symptoms_ = symptoms_; } else { @@ -2932,62 +3085,62 @@ private void buildPartial0(com.google.cloud.tpu.v2.Node result) { networkConfigBuilder_ == null ? networkConfig_ : networkConfigBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.cidrBlock_ = cidrBlock_; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.serviceAccount_ = serviceAccountBuilder_ == null ? serviceAccount_ : serviceAccountBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.schedulingConfig_ = schedulingConfigBuilder_ == null ? schedulingConfig_ : schedulingConfigBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.health_ = health_; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.metadata_ = internalGetMetadata(); result.metadata_.makeImmutable(); } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { tags_.makeImmutable(); result.tags_ = tags_; } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00020000) != 0)) { result.id_ = id_; } - if (((from_bitField0_ & 0x00040000) != 0)) { + if (((from_bitField0_ & 0x00080000) != 0)) { result.apiVersion_ = apiVersion_; } - if (((from_bitField0_ & 0x00100000) != 0)) { + if (((from_bitField0_ & 0x00200000) != 0)) { result.shieldedInstanceConfig_ = shieldedInstanceConfigBuilder_ == null ? shieldedInstanceConfig_ : shieldedInstanceConfigBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00200000) != 0)) { + if (((from_bitField0_ & 0x00400000) != 0)) { result.acceleratorConfig_ = acceleratorConfigBuilder_ == null ? acceleratorConfig_ : acceleratorConfigBuilder_.build(); to_bitField0_ |= 0x00000020; } - if (((from_bitField0_ & 0x00400000) != 0)) { + if (((from_bitField0_ & 0x00800000) != 0)) { result.queuedResource_ = queuedResource_; } - if (((from_bitField0_ & 0x00800000) != 0)) { + if (((from_bitField0_ & 0x01000000) != 0)) { result.multisliceNode_ = multisliceNode_; } result.bitField0_ |= to_bitField0_; @@ -3069,9 +3222,36 @@ public Builder mergeFrom(com.google.cloud.tpu.v2.Node other) { if (other.hasNetworkConfig()) { mergeNetworkConfig(other.getNetworkConfig()); } + if (networkConfigsBuilder_ == null) { + if (!other.networkConfigs_.isEmpty()) { + if (networkConfigs_.isEmpty()) { + networkConfigs_ = other.networkConfigs_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureNetworkConfigsIsMutable(); + networkConfigs_.addAll(other.networkConfigs_); + } + onChanged(); + } + } else { + if (!other.networkConfigs_.isEmpty()) { + if (networkConfigsBuilder_.isEmpty()) { + networkConfigsBuilder_.dispose(); + networkConfigsBuilder_ = null; + networkConfigs_ = other.networkConfigs_; + bitField0_ = (bitField0_ & ~0x00000080); + networkConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNetworkConfigsFieldBuilder() + : null; + } else { + networkConfigsBuilder_.addAllMessages(other.networkConfigs_); + } + } + } if (!other.getCidrBlock().isEmpty()) { cidrBlock_ = other.cidrBlock_; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } if (other.hasServiceAccount()) { @@ -3087,7 +3267,7 @@ public Builder mergeFrom(com.google.cloud.tpu.v2.Node other) { if (!other.networkEndpoints_.isEmpty()) { if (networkEndpoints_.isEmpty()) { networkEndpoints_ = other.networkEndpoints_; - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); } else { ensureNetworkEndpointsIsMutable(); networkEndpoints_.addAll(other.networkEndpoints_); @@ -3100,7 +3280,7 @@ public Builder mergeFrom(com.google.cloud.tpu.v2.Node other) { networkEndpointsBuilder_.dispose(); networkEndpointsBuilder_ = null; networkEndpoints_ = other.networkEndpoints_; - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); networkEndpointsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getNetworkEndpointsFieldBuilder() @@ -3114,13 +3294,13 @@ public Builder mergeFrom(com.google.cloud.tpu.v2.Node other) { setHealthValue(other.getHealthValue()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00002000; - internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); bitField0_ |= 0x00004000; + internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); + bitField0_ |= 0x00008000; if (!other.tags_.isEmpty()) { if (tags_.isEmpty()) { tags_ = other.tags_; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; } else { ensureTagsIsMutable(); tags_.addAll(other.tags_); @@ -3134,7 +3314,7 @@ public Builder mergeFrom(com.google.cloud.tpu.v2.Node other) { if (!other.dataDisks_.isEmpty()) { if (dataDisks_.isEmpty()) { dataDisks_ = other.dataDisks_; - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); } else { ensureDataDisksIsMutable(); dataDisks_.addAll(other.dataDisks_); @@ -3147,7 +3327,7 @@ public Builder mergeFrom(com.google.cloud.tpu.v2.Node other) { dataDisksBuilder_.dispose(); dataDisksBuilder_ = null; dataDisks_ = other.dataDisks_; - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); dataDisksBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDataDisksFieldBuilder() @@ -3164,7 +3344,7 @@ public Builder mergeFrom(com.google.cloud.tpu.v2.Node other) { if (!other.symptoms_.isEmpty()) { if (symptoms_.isEmpty()) { symptoms_ = other.symptoms_; - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); } else { ensureSymptomsIsMutable(); symptoms_.addAll(other.symptoms_); @@ -3177,7 +3357,7 @@ public Builder mergeFrom(com.google.cloud.tpu.v2.Node other) { symptomsBuilder_.dispose(); symptomsBuilder_ = null; symptoms_ = other.symptoms_; - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); symptomsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSymptomsFieldBuilder() @@ -3195,7 +3375,7 @@ public Builder mergeFrom(com.google.cloud.tpu.v2.Node other) { } if (!other.getQueuedResource().isEmpty()) { queuedResource_ = other.queuedResource_; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); } if (other.getMultisliceNode() != false) { @@ -3266,20 +3446,20 @@ public Builder mergeFrom( case 106: { cidrBlock_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 106 case 130: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 130 case 138: { input.readMessage( getSchedulingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 138 case 170: @@ -3298,7 +3478,7 @@ public Builder mergeFrom( case 176: { health_ = input.readEnum(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 176 case 194: @@ -3310,13 +3490,13 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 194 case 264: { id_ = input.readInt64(); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 264 case 274: @@ -3328,7 +3508,7 @@ public Builder mergeFrom( internalGetMutableMetadata() .getMutableMap() .put(metadata__.getKey(), metadata__.getValue()); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 274 case 290: @@ -3340,13 +3520,13 @@ public Builder mergeFrom( case 298: { input.readMessage(getServiceAccountFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 298 case 304: { apiVersion_ = input.readEnum(); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; break; } // case 304 case 314: @@ -3385,28 +3565,41 @@ public Builder mergeFrom( { input.readMessage( getShieldedInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; break; } // case 362 case 370: { input.readMessage( getAcceleratorConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; break; } // case 370 case 378: { queuedResource_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; break; } // case 378 case 384: { multisliceNode_ = input.readBool(); - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; break; } // case 384 + case 394: + { + com.google.cloud.tpu.v2.NetworkConfig m = + input.readMessage( + com.google.cloud.tpu.v2.NetworkConfig.parser(), extensionRegistry); + if (networkConfigsBuilder_ == null) { + ensureNetworkConfigsIsMutable(); + networkConfigs_.add(m); + } else { + networkConfigsBuilder_.addMessage(m); + } + break; + } // case 394 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4076,7 +4269,9 @@ public Builder setRuntimeVersionBytes(com.google.protobuf.ByteString value) { * * *
    -     * Network configurations for the TPU node.
    +     * Network configurations for the TPU node. network_config and network_configs
    +     * are mutually exclusive, you can only specify one of them. If both are
    +     * specified, an error will be returned.
          * 
    * * .google.cloud.tpu.v2.NetworkConfig network_config = 36; @@ -4090,7 +4285,9 @@ public boolean hasNetworkConfig() { * * *
    -     * Network configurations for the TPU node.
    +     * Network configurations for the TPU node. network_config and network_configs
    +     * are mutually exclusive, you can only specify one of them. If both are
    +     * specified, an error will be returned.
          * 
    * * .google.cloud.tpu.v2.NetworkConfig network_config = 36; @@ -4110,7 +4307,9 @@ public com.google.cloud.tpu.v2.NetworkConfig getNetworkConfig() { * * *
    -     * Network configurations for the TPU node.
    +     * Network configurations for the TPU node. network_config and network_configs
    +     * are mutually exclusive, you can only specify one of them. If both are
    +     * specified, an error will be returned.
          * 
    * * .google.cloud.tpu.v2.NetworkConfig network_config = 36; @@ -4132,7 +4331,9 @@ public Builder setNetworkConfig(com.google.cloud.tpu.v2.NetworkConfig value) { * * *
    -     * Network configurations for the TPU node.
    +     * Network configurations for the TPU node. network_config and network_configs
    +     * are mutually exclusive, you can only specify one of them. If both are
    +     * specified, an error will be returned.
          * 
    * * .google.cloud.tpu.v2.NetworkConfig network_config = 36; @@ -4151,7 +4352,9 @@ public Builder setNetworkConfig(com.google.cloud.tpu.v2.NetworkConfig.Builder bu * * *
    -     * Network configurations for the TPU node.
    +     * Network configurations for the TPU node. network_config and network_configs
    +     * are mutually exclusive, you can only specify one of them. If both are
    +     * specified, an error will be returned.
          * 
    * * .google.cloud.tpu.v2.NetworkConfig network_config = 36; @@ -4178,7 +4381,9 @@ public Builder mergeNetworkConfig(com.google.cloud.tpu.v2.NetworkConfig value) { * * *
    -     * Network configurations for the TPU node.
    +     * Network configurations for the TPU node. network_config and network_configs
    +     * are mutually exclusive, you can only specify one of them. If both are
    +     * specified, an error will be returned.
          * 
    * * .google.cloud.tpu.v2.NetworkConfig network_config = 36; @@ -4197,7 +4402,9 @@ public Builder clearNetworkConfig() { * * *
    -     * Network configurations for the TPU node.
    +     * Network configurations for the TPU node. network_config and network_configs
    +     * are mutually exclusive, you can only specify one of them. If both are
    +     * specified, an error will be returned.
          * 
    * * .google.cloud.tpu.v2.NetworkConfig network_config = 36; @@ -4211,7 +4418,9 @@ public com.google.cloud.tpu.v2.NetworkConfig.Builder getNetworkConfigBuilder() { * * *
    -     * Network configurations for the TPU node.
    +     * Network configurations for the TPU node. network_config and network_configs
    +     * are mutually exclusive, you can only specify one of them. If both are
    +     * specified, an error will be returned.
          * 
    * * .google.cloud.tpu.v2.NetworkConfig network_config = 36; @@ -4229,7 +4438,9 @@ public com.google.cloud.tpu.v2.NetworkConfigOrBuilder getNetworkConfigOrBuilder( * * *
    -     * Network configurations for the TPU node.
    +     * Network configurations for the TPU node. network_config and network_configs
    +     * are mutually exclusive, you can only specify one of them. If both are
    +     * specified, an error will be returned.
          * 
    * * .google.cloud.tpu.v2.NetworkConfig network_config = 36; @@ -4251,135 +4462,579 @@ public com.google.cloud.tpu.v2.NetworkConfigOrBuilder getNetworkConfigOrBuilder( return networkConfigBuilder_; } - private java.lang.Object cidrBlock_ = ""; + private java.util.List networkConfigs_ = + java.util.Collections.emptyList(); + + private void ensureNetworkConfigsIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + networkConfigs_ = + new java.util.ArrayList(networkConfigs_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.tpu.v2.NetworkConfig, + com.google.cloud.tpu.v2.NetworkConfig.Builder, + com.google.cloud.tpu.v2.NetworkConfigOrBuilder> + networkConfigsBuilder_; + /** * * *
    -     * The CIDR block that the TPU node will use when selecting an IP address.
    -     * This CIDR block must be a /29 block; the Compute Engine networks API
    -     * forbids a smaller block, and using a larger block would be wasteful (a
    -     * node can only consume one IP address). Errors will occur if the CIDR block
    -     * has already been used for a currently existing TPU node, the CIDR block
    -     * conflicts with any subnetworks in the user's provided network, or the
    -     * provided network is peered with another network that is using that CIDR
    -     * block.
    +     * Optional. Repeated network configurations for the TPU node. This field is
    +     * used to specify multiple networks configs for the TPU node. network_config
    +     * and network_configs are mutually exclusive, you can only specify one of
    +     * them. If both are specified, an error will be returned.
          * 
    * - * string cidr_block = 13; - * - * @return The cidrBlock. + * + * repeated .google.cloud.tpu.v2.NetworkConfig network_configs = 49 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.lang.String getCidrBlock() { - java.lang.Object ref = cidrBlock_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cidrBlock_ = s; - return s; + public java.util.List getNetworkConfigsList() { + if (networkConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(networkConfigs_); } else { - return (java.lang.String) ref; + return networkConfigsBuilder_.getMessageList(); } } /** * * *
    -     * The CIDR block that the TPU node will use when selecting an IP address.
    -     * This CIDR block must be a /29 block; the Compute Engine networks API
    -     * forbids a smaller block, and using a larger block would be wasteful (a
    -     * node can only consume one IP address). Errors will occur if the CIDR block
    -     * has already been used for a currently existing TPU node, the CIDR block
    -     * conflicts with any subnetworks in the user's provided network, or the
    -     * provided network is peered with another network that is using that CIDR
    -     * block.
    +     * Optional. Repeated network configurations for the TPU node. This field is
    +     * used to specify multiple networks configs for the TPU node. network_config
    +     * and network_configs are mutually exclusive, you can only specify one of
    +     * them. If both are specified, an error will be returned.
          * 
    * - * string cidr_block = 13; - * - * @return The bytes for cidrBlock. + * + * repeated .google.cloud.tpu.v2.NetworkConfig network_configs = 49 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.protobuf.ByteString getCidrBlockBytes() { - java.lang.Object ref = cidrBlock_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - cidrBlock_ = b; - return b; + public int getNetworkConfigsCount() { + if (networkConfigsBuilder_ == null) { + return networkConfigs_.size(); } else { - return (com.google.protobuf.ByteString) ref; + return networkConfigsBuilder_.getCount(); } } /** * * *
    -     * The CIDR block that the TPU node will use when selecting an IP address.
    -     * This CIDR block must be a /29 block; the Compute Engine networks API
    -     * forbids a smaller block, and using a larger block would be wasteful (a
    -     * node can only consume one IP address). Errors will occur if the CIDR block
    -     * has already been used for a currently existing TPU node, the CIDR block
    -     * conflicts with any subnetworks in the user's provided network, or the
    -     * provided network is peered with another network that is using that CIDR
    -     * block.
    +     * Optional. Repeated network configurations for the TPU node. This field is
    +     * used to specify multiple networks configs for the TPU node. network_config
    +     * and network_configs are mutually exclusive, you can only specify one of
    +     * them. If both are specified, an error will be returned.
          * 
    * - * string cidr_block = 13; - * - * @param value The cidrBlock to set. - * @return This builder for chaining. + * + * repeated .google.cloud.tpu.v2.NetworkConfig network_configs = 49 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setCidrBlock(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public com.google.cloud.tpu.v2.NetworkConfig getNetworkConfigs(int index) { + if (networkConfigsBuilder_ == null) { + return networkConfigs_.get(index); + } else { + return networkConfigsBuilder_.getMessage(index); } - cidrBlock_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; } /** * * *
    -     * The CIDR block that the TPU node will use when selecting an IP address.
    -     * This CIDR block must be a /29 block; the Compute Engine networks API
    -     * forbids a smaller block, and using a larger block would be wasteful (a
    -     * node can only consume one IP address). Errors will occur if the CIDR block
    -     * has already been used for a currently existing TPU node, the CIDR block
    -     * conflicts with any subnetworks in the user's provided network, or the
    -     * provided network is peered with another network that is using that CIDR
    -     * block.
    +     * Optional. Repeated network configurations for the TPU node. This field is
    +     * used to specify multiple networks configs for the TPU node. network_config
    +     * and network_configs are mutually exclusive, you can only specify one of
    +     * them. If both are specified, an error will be returned.
          * 
    * - * string cidr_block = 13; - * - * @return This builder for chaining. + * + * repeated .google.cloud.tpu.v2.NetworkConfig network_configs = 49 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearCidrBlock() { - cidrBlock_ = getDefaultInstance().getCidrBlock(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); + public Builder setNetworkConfigs(int index, com.google.cloud.tpu.v2.NetworkConfig value) { + if (networkConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNetworkConfigsIsMutable(); + networkConfigs_.set(index, value); + onChanged(); + } else { + networkConfigsBuilder_.setMessage(index, value); + } return this; } /** * * *
    -     * The CIDR block that the TPU node will use when selecting an IP address.
    -     * This CIDR block must be a /29 block; the Compute Engine networks API
    -     * forbids a smaller block, and using a larger block would be wasteful (a
    -     * node can only consume one IP address). Errors will occur if the CIDR block
    -     * has already been used for a currently existing TPU node, the CIDR block
    -     * conflicts with any subnetworks in the user's provided network, or the
    -     * provided network is peered with another network that is using that CIDR
    -     * block.
    +     * Optional. Repeated network configurations for the TPU node. This field is
    +     * used to specify multiple networks configs for the TPU node. network_config
    +     * and network_configs are mutually exclusive, you can only specify one of
    +     * them. If both are specified, an error will be returned.
          * 
    * - * string cidr_block = 13; - * - * @param value The bytes for cidrBlock to set. - * @return This builder for chaining. + * + * repeated .google.cloud.tpu.v2.NetworkConfig network_configs = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNetworkConfigs( + int index, com.google.cloud.tpu.v2.NetworkConfig.Builder builderForValue) { + if (networkConfigsBuilder_ == null) { + ensureNetworkConfigsIsMutable(); + networkConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + networkConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * Optional. Repeated network configurations for the TPU node. This field is
    +     * used to specify multiple networks configs for the TPU node. network_config
    +     * and network_configs are mutually exclusive, you can only specify one of
    +     * them. If both are specified, an error will be returned.
    +     * 
    + * + * + * repeated .google.cloud.tpu.v2.NetworkConfig network_configs = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addNetworkConfigs(com.google.cloud.tpu.v2.NetworkConfig value) { + if (networkConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNetworkConfigsIsMutable(); + networkConfigs_.add(value); + onChanged(); + } else { + networkConfigsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
    +     * Optional. Repeated network configurations for the TPU node. This field is
    +     * used to specify multiple networks configs for the TPU node. network_config
    +     * and network_configs are mutually exclusive, you can only specify one of
    +     * them. If both are specified, an error will be returned.
    +     * 
    + * + * + * repeated .google.cloud.tpu.v2.NetworkConfig network_configs = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addNetworkConfigs(int index, com.google.cloud.tpu.v2.NetworkConfig value) { + if (networkConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNetworkConfigsIsMutable(); + networkConfigs_.add(index, value); + onChanged(); + } else { + networkConfigsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * Optional. Repeated network configurations for the TPU node. This field is
    +     * used to specify multiple networks configs for the TPU node. network_config
    +     * and network_configs are mutually exclusive, you can only specify one of
    +     * them. If both are specified, an error will be returned.
    +     * 
    + * + * + * repeated .google.cloud.tpu.v2.NetworkConfig network_configs = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addNetworkConfigs( + com.google.cloud.tpu.v2.NetworkConfig.Builder builderForValue) { + if (networkConfigsBuilder_ == null) { + ensureNetworkConfigsIsMutable(); + networkConfigs_.add(builderForValue.build()); + onChanged(); + } else { + networkConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * Optional. Repeated network configurations for the TPU node. This field is
    +     * used to specify multiple networks configs for the TPU node. network_config
    +     * and network_configs are mutually exclusive, you can only specify one of
    +     * them. If both are specified, an error will be returned.
    +     * 
    + * + * + * repeated .google.cloud.tpu.v2.NetworkConfig network_configs = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addNetworkConfigs( + int index, com.google.cloud.tpu.v2.NetworkConfig.Builder builderForValue) { + if (networkConfigsBuilder_ == null) { + ensureNetworkConfigsIsMutable(); + networkConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + networkConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * Optional. Repeated network configurations for the TPU node. This field is
    +     * used to specify multiple networks configs for the TPU node. network_config
    +     * and network_configs are mutually exclusive, you can only specify one of
    +     * them. If both are specified, an error will be returned.
    +     * 
    + * + * + * repeated .google.cloud.tpu.v2.NetworkConfig network_configs = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllNetworkConfigs( + java.lang.Iterable values) { + if (networkConfigsBuilder_ == null) { + ensureNetworkConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networkConfigs_); + onChanged(); + } else { + networkConfigsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
    +     * Optional. Repeated network configurations for the TPU node. This field is
    +     * used to specify multiple networks configs for the TPU node. network_config
    +     * and network_configs are mutually exclusive, you can only specify one of
    +     * them. If both are specified, an error will be returned.
    +     * 
    + * + * + * repeated .google.cloud.tpu.v2.NetworkConfig network_configs = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearNetworkConfigs() { + if (networkConfigsBuilder_ == null) { + networkConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + networkConfigsBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * Optional. Repeated network configurations for the TPU node. This field is
    +     * used to specify multiple networks configs for the TPU node. network_config
    +     * and network_configs are mutually exclusive, you can only specify one of
    +     * them. If both are specified, an error will be returned.
    +     * 
    + * + * + * repeated .google.cloud.tpu.v2.NetworkConfig network_configs = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeNetworkConfigs(int index) { + if (networkConfigsBuilder_ == null) { + ensureNetworkConfigsIsMutable(); + networkConfigs_.remove(index); + onChanged(); + } else { + networkConfigsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
    +     * Optional. Repeated network configurations for the TPU node. This field is
    +     * used to specify multiple networks configs for the TPU node. network_config
    +     * and network_configs are mutually exclusive, you can only specify one of
    +     * them. If both are specified, an error will be returned.
    +     * 
    + * + * + * repeated .google.cloud.tpu.v2.NetworkConfig network_configs = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.tpu.v2.NetworkConfig.Builder getNetworkConfigsBuilder(int index) { + return getNetworkConfigsFieldBuilder().getBuilder(index); + } + /** + * + * + *
    +     * Optional. Repeated network configurations for the TPU node. This field is
    +     * used to specify multiple networks configs for the TPU node. network_config
    +     * and network_configs are mutually exclusive, you can only specify one of
    +     * them. If both are specified, an error will be returned.
    +     * 
    + * + * + * repeated .google.cloud.tpu.v2.NetworkConfig network_configs = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.tpu.v2.NetworkConfigOrBuilder getNetworkConfigsOrBuilder(int index) { + if (networkConfigsBuilder_ == null) { + return networkConfigs_.get(index); + } else { + return networkConfigsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
    +     * Optional. Repeated network configurations for the TPU node. This field is
    +     * used to specify multiple networks configs for the TPU node. network_config
    +     * and network_configs are mutually exclusive, you can only specify one of
    +     * them. If both are specified, an error will be returned.
    +     * 
    + * + * + * repeated .google.cloud.tpu.v2.NetworkConfig network_configs = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getNetworkConfigsOrBuilderList() { + if (networkConfigsBuilder_ != null) { + return networkConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(networkConfigs_); + } + } + /** + * + * + *
    +     * Optional. Repeated network configurations for the TPU node. This field is
    +     * used to specify multiple networks configs for the TPU node. network_config
    +     * and network_configs are mutually exclusive, you can only specify one of
    +     * them. If both are specified, an error will be returned.
    +     * 
    + * + * + * repeated .google.cloud.tpu.v2.NetworkConfig network_configs = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.tpu.v2.NetworkConfig.Builder addNetworkConfigsBuilder() { + return getNetworkConfigsFieldBuilder() + .addBuilder(com.google.cloud.tpu.v2.NetworkConfig.getDefaultInstance()); + } + /** + * + * + *
    +     * Optional. Repeated network configurations for the TPU node. This field is
    +     * used to specify multiple networks configs for the TPU node. network_config
    +     * and network_configs are mutually exclusive, you can only specify one of
    +     * them. If both are specified, an error will be returned.
    +     * 
    + * + * + * repeated .google.cloud.tpu.v2.NetworkConfig network_configs = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.tpu.v2.NetworkConfig.Builder addNetworkConfigsBuilder(int index) { + return getNetworkConfigsFieldBuilder() + .addBuilder(index, com.google.cloud.tpu.v2.NetworkConfig.getDefaultInstance()); + } + /** + * + * + *
    +     * Optional. Repeated network configurations for the TPU node. This field is
    +     * used to specify multiple networks configs for the TPU node. network_config
    +     * and network_configs are mutually exclusive, you can only specify one of
    +     * them. If both are specified, an error will be returned.
    +     * 
    + * + * + * repeated .google.cloud.tpu.v2.NetworkConfig network_configs = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getNetworkConfigsBuilderList() { + return getNetworkConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.tpu.v2.NetworkConfig, + com.google.cloud.tpu.v2.NetworkConfig.Builder, + com.google.cloud.tpu.v2.NetworkConfigOrBuilder> + getNetworkConfigsFieldBuilder() { + if (networkConfigsBuilder_ == null) { + networkConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.tpu.v2.NetworkConfig, + com.google.cloud.tpu.v2.NetworkConfig.Builder, + com.google.cloud.tpu.v2.NetworkConfigOrBuilder>( + networkConfigs_, + ((bitField0_ & 0x00000080) != 0), + getParentForChildren(), + isClean()); + networkConfigs_ = null; + } + return networkConfigsBuilder_; + } + + private java.lang.Object cidrBlock_ = ""; + /** + * + * + *
    +     * The CIDR block that the TPU node will use when selecting an IP address.
    +     * This CIDR block must be a /29 block; the Compute Engine networks API
    +     * forbids a smaller block, and using a larger block would be wasteful (a
    +     * node can only consume one IP address). Errors will occur if the CIDR block
    +     * has already been used for a currently existing TPU node, the CIDR block
    +     * conflicts with any subnetworks in the user's provided network, or the
    +     * provided network is peered with another network that is using that CIDR
    +     * block.
    +     * 
    + * + * string cidr_block = 13; + * + * @return The cidrBlock. + */ + public java.lang.String getCidrBlock() { + java.lang.Object ref = cidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * The CIDR block that the TPU node will use when selecting an IP address.
    +     * This CIDR block must be a /29 block; the Compute Engine networks API
    +     * forbids a smaller block, and using a larger block would be wasteful (a
    +     * node can only consume one IP address). Errors will occur if the CIDR block
    +     * has already been used for a currently existing TPU node, the CIDR block
    +     * conflicts with any subnetworks in the user's provided network, or the
    +     * provided network is peered with another network that is using that CIDR
    +     * block.
    +     * 
    + * + * string cidr_block = 13; + * + * @return The bytes for cidrBlock. + */ + public com.google.protobuf.ByteString getCidrBlockBytes() { + java.lang.Object ref = cidrBlock_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cidrBlock_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * The CIDR block that the TPU node will use when selecting an IP address.
    +     * This CIDR block must be a /29 block; the Compute Engine networks API
    +     * forbids a smaller block, and using a larger block would be wasteful (a
    +     * node can only consume one IP address). Errors will occur if the CIDR block
    +     * has already been used for a currently existing TPU node, the CIDR block
    +     * conflicts with any subnetworks in the user's provided network, or the
    +     * provided network is peered with another network that is using that CIDR
    +     * block.
    +     * 
    + * + * string cidr_block = 13; + * + * @param value The cidrBlock to set. + * @return This builder for chaining. + */ + public Builder setCidrBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cidrBlock_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
    +     * The CIDR block that the TPU node will use when selecting an IP address.
    +     * This CIDR block must be a /29 block; the Compute Engine networks API
    +     * forbids a smaller block, and using a larger block would be wasteful (a
    +     * node can only consume one IP address). Errors will occur if the CIDR block
    +     * has already been used for a currently existing TPU node, the CIDR block
    +     * conflicts with any subnetworks in the user's provided network, or the
    +     * provided network is peered with another network that is using that CIDR
    +     * block.
    +     * 
    + * + * string cidr_block = 13; + * + * @return This builder for chaining. + */ + public Builder clearCidrBlock() { + cidrBlock_ = getDefaultInstance().getCidrBlock(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * + * + *
    +     * The CIDR block that the TPU node will use when selecting an IP address.
    +     * This CIDR block must be a /29 block; the Compute Engine networks API
    +     * forbids a smaller block, and using a larger block would be wasteful (a
    +     * node can only consume one IP address). Errors will occur if the CIDR block
    +     * has already been used for a currently existing TPU node, the CIDR block
    +     * conflicts with any subnetworks in the user's provided network, or the
    +     * provided network is peered with another network that is using that CIDR
    +     * block.
    +     * 
    + * + * string cidr_block = 13; + * + * @param value The bytes for cidrBlock to set. + * @return This builder for chaining. */ public Builder setCidrBlockBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -4387,7 +5042,7 @@ public Builder setCidrBlockBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); cidrBlock_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -4411,7 +5066,7 @@ public Builder setCidrBlockBytes(com.google.protobuf.ByteString value) { * @return Whether the serviceAccount field is set. */ public boolean hasServiceAccount() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -4453,7 +5108,7 @@ public Builder setServiceAccount(com.google.cloud.tpu.v2.ServiceAccount value) { } else { serviceAccountBuilder_.setMessage(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -4474,7 +5129,7 @@ public Builder setServiceAccount( } else { serviceAccountBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -4490,7 +5145,7 @@ public Builder setServiceAccount( */ public Builder mergeServiceAccount(com.google.cloud.tpu.v2.ServiceAccount value) { if (serviceAccountBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) + if (((bitField0_ & 0x00000200) != 0) && serviceAccount_ != null && serviceAccount_ != com.google.cloud.tpu.v2.ServiceAccount.getDefaultInstance()) { getServiceAccountBuilder().mergeFrom(value); @@ -4501,7 +5156,7 @@ public Builder mergeServiceAccount(com.google.cloud.tpu.v2.ServiceAccount value) serviceAccountBuilder_.mergeFrom(value); } if (serviceAccount_ != null) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } return this; @@ -4517,7 +5172,7 @@ public Builder mergeServiceAccount(com.google.cloud.tpu.v2.ServiceAccount value) * .google.cloud.tpu.v2.ServiceAccount service_account = 37; */ public Builder clearServiceAccount() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); serviceAccount_ = null; if (serviceAccountBuilder_ != null) { serviceAccountBuilder_.dispose(); @@ -4537,7 +5192,7 @@ public Builder clearServiceAccount() { * .google.cloud.tpu.v2.ServiceAccount service_account = 37; */ public com.google.cloud.tpu.v2.ServiceAccount.Builder getServiceAccountBuilder() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return getServiceAccountFieldBuilder().getBuilder(); } @@ -4607,7 +5262,7 @@ public com.google.cloud.tpu.v2.ServiceAccountOrBuilder getServiceAccountOrBuilde * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -4651,7 +5306,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4672,7 +5327,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4689,7 +5344,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) + if (((bitField0_ & 0x00000400) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -4700,7 +5355,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); } return this; @@ -4717,7 +5372,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { *
    */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -4738,7 +5393,7 @@ public Builder clearCreateTime() { *
    */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -4808,7 +5463,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the schedulingConfig field is set. */ public boolean hasSchedulingConfig() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** * @@ -4848,7 +5503,7 @@ public Builder setSchedulingConfig(com.google.cloud.tpu.v2.SchedulingConfig valu } else { schedulingConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4868,7 +5523,7 @@ public Builder setSchedulingConfig( } else { schedulingConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4883,7 +5538,7 @@ public Builder setSchedulingConfig( */ public Builder mergeSchedulingConfig(com.google.cloud.tpu.v2.SchedulingConfig value) { if (schedulingConfigBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) + if (((bitField0_ & 0x00000800) != 0) && schedulingConfig_ != null && schedulingConfig_ != com.google.cloud.tpu.v2.SchedulingConfig.getDefaultInstance()) { getSchedulingConfigBuilder().mergeFrom(value); @@ -4894,7 +5549,7 @@ public Builder mergeSchedulingConfig(com.google.cloud.tpu.v2.SchedulingConfig va schedulingConfigBuilder_.mergeFrom(value); } if (schedulingConfig_ != null) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } return this; @@ -4909,7 +5564,7 @@ public Builder mergeSchedulingConfig(com.google.cloud.tpu.v2.SchedulingConfig va * .google.cloud.tpu.v2.SchedulingConfig scheduling_config = 17; */ public Builder clearSchedulingConfig() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); schedulingConfig_ = null; if (schedulingConfigBuilder_ != null) { schedulingConfigBuilder_.dispose(); @@ -4928,7 +5583,7 @@ public Builder clearSchedulingConfig() { * .google.cloud.tpu.v2.SchedulingConfig scheduling_config = 17; */ public com.google.cloud.tpu.v2.SchedulingConfig.Builder getSchedulingConfigBuilder() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return getSchedulingConfigFieldBuilder().getBuilder(); } @@ -4980,10 +5635,10 @@ public com.google.cloud.tpu.v2.SchedulingConfigOrBuilder getSchedulingConfigOrBu java.util.Collections.emptyList(); private void ensureNetworkEndpointsIsMutable() { - if (!((bitField0_ & 0x00000800) != 0)) { + if (!((bitField0_ & 0x00001000) != 0)) { networkEndpoints_ = new java.util.ArrayList(networkEndpoints_); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; } } @@ -5243,7 +5898,7 @@ public Builder addAllNetworkEndpoints( public Builder clearNetworkEndpoints() { if (networkEndpointsBuilder_ == null) { networkEndpoints_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); } else { networkEndpointsBuilder_.clear(); @@ -5395,7 +6050,7 @@ public com.google.cloud.tpu.v2.NetworkEndpoint.Builder addNetworkEndpointsBuilde com.google.cloud.tpu.v2.NetworkEndpoint.Builder, com.google.cloud.tpu.v2.NetworkEndpointOrBuilder>( networkEndpoints_, - ((bitField0_ & 0x00000800) != 0), + ((bitField0_ & 0x00001000) != 0), getParentForChildren(), isClean()); networkEndpoints_ = null; @@ -5433,7 +6088,7 @@ public int getHealthValue() { */ public Builder setHealthValue(int value) { health_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -5470,7 +6125,7 @@ public Builder setHealth(com.google.cloud.tpu.v2.Node.Health value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; health_ = value.getNumber(); onChanged(); return this; @@ -5487,7 +6142,7 @@ public Builder setHealth(com.google.cloud.tpu.v2.Node.Health value) { * @return This builder for chaining. */ public Builder clearHealth() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); health_ = 0; onChanged(); return this; @@ -5510,7 +6165,7 @@ private com.google.protobuf.MapField interna if (!labels_.isMutable()) { labels_ = labels_.copy(); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return labels_; } @@ -5595,7 +6250,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -5618,7 +6273,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; return internalGetMutableLabels().getMutableMap(); } /** @@ -5638,7 +6293,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; return this; } /** @@ -5652,7 +6307,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; return this; } @@ -5674,7 +6329,7 @@ private com.google.protobuf.MapField interna if (!metadata_.isMutable()) { metadata_ = metadata_.copy(); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return metadata_; } @@ -5763,7 +6418,7 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) { } public Builder clearMetadata() { - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); internalGetMutableMetadata().getMutableMap().clear(); return this; } @@ -5787,7 +6442,7 @@ public Builder removeMetadata(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMetadata() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; return internalGetMutableMetadata().getMutableMap(); } /** @@ -5808,7 +6463,7 @@ public Builder putMetadata(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableMetadata().getMutableMap().put(key, value); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; return this; } /** @@ -5823,7 +6478,7 @@ public Builder putMetadata(java.lang.String key, java.lang.String value) { */ public Builder putAllMetadata(java.util.Map values) { internalGetMutableMetadata().getMutableMap().putAll(values); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; return this; } @@ -5834,7 +6489,7 @@ private void ensureTagsIsMutable() { if (!tags_.isModifiable()) { tags_ = new com.google.protobuf.LazyStringArrayList(tags_); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; } /** * @@ -5919,7 +6574,7 @@ public Builder setTags(int index, java.lang.String value) { } ensureTagsIsMutable(); tags_.set(index, value); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -5942,7 +6597,7 @@ public Builder addTags(java.lang.String value) { } ensureTagsIsMutable(); tags_.add(value); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -5962,7 +6617,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_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -5980,7 +6635,7 @@ public Builder addAllTags(java.lang.Iterable values) { */ public Builder clearTags() { tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); ; onChanged(); return this; @@ -6005,7 +6660,7 @@ public Builder addTagsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureTagsIsMutable(); tags_.add(value); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -6041,7 +6696,7 @@ public long getId() { public Builder setId(long value) { id_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -6057,7 +6712,7 @@ public Builder setId(long value) { * @return This builder for chaining. */ public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); id_ = 0L; onChanged(); return this; @@ -6067,9 +6722,9 @@ public Builder clearId() { java.util.Collections.emptyList(); private void ensureDataDisksIsMutable() { - if (!((bitField0_ & 0x00020000) != 0)) { + if (!((bitField0_ & 0x00040000) != 0)) { dataDisks_ = new java.util.ArrayList(dataDisks_); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; } } @@ -6284,7 +6939,7 @@ public Builder addAllDataDisks( public Builder clearDataDisks() { if (dataDisksBuilder_ == null) { dataDisks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); onChanged(); } else { dataDisksBuilder_.clear(); @@ -6405,7 +7060,7 @@ public java.util.List getDataDisks com.google.cloud.tpu.v2.AttachedDisk, com.google.cloud.tpu.v2.AttachedDisk.Builder, com.google.cloud.tpu.v2.AttachedDiskOrBuilder>( - dataDisks_, ((bitField0_ & 0x00020000) != 0), getParentForChildren(), isClean()); + dataDisks_, ((bitField0_ & 0x00040000) != 0), getParentForChildren(), isClean()); dataDisks_ = null; } return dataDisksBuilder_; @@ -6445,7 +7100,7 @@ public int getApiVersionValue() { */ public Builder setApiVersionValue(int value) { apiVersion_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -6486,7 +7141,7 @@ public Builder setApiVersion(com.google.cloud.tpu.v2.Node.ApiVersion value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; apiVersion_ = value.getNumber(); onChanged(); return this; @@ -6505,7 +7160,7 @@ public Builder setApiVersion(com.google.cloud.tpu.v2.Node.ApiVersion value) { * @return This builder for chaining. */ public Builder clearApiVersion() { - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); apiVersion_ = 0; onChanged(); return this; @@ -6515,9 +7170,9 @@ public Builder clearApiVersion() { java.util.Collections.emptyList(); private void ensureSymptomsIsMutable() { - if (!((bitField0_ & 0x00080000) != 0)) { + if (!((bitField0_ & 0x00100000) != 0)) { symptoms_ = new java.util.ArrayList(symptoms_); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; } } @@ -6752,7 +7407,7 @@ public Builder addAllSymptoms( public Builder clearSymptoms() { if (symptomsBuilder_ == null) { symptoms_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); onChanged(); } else { symptomsBuilder_.clear(); @@ -6887,7 +7542,7 @@ public java.util.List getSymptomsBuilde com.google.cloud.tpu.v2.Symptom, com.google.cloud.tpu.v2.Symptom.Builder, com.google.cloud.tpu.v2.SymptomOrBuilder>( - symptoms_, ((bitField0_ & 0x00080000) != 0), getParentForChildren(), isClean()); + symptoms_, ((bitField0_ & 0x00100000) != 0), getParentForChildren(), isClean()); symptoms_ = null; } return symptomsBuilder_; @@ -6911,7 +7566,7 @@ public java.util.List getSymptomsBuilde * @return Whether the shieldedInstanceConfig field is set. */ public boolean hasShieldedInstanceConfig() { - return ((bitField0_ & 0x00100000) != 0); + return ((bitField0_ & 0x00200000) != 0); } /** * @@ -6951,7 +7606,7 @@ public Builder setShieldedInstanceConfig(com.google.cloud.tpu.v2.ShieldedInstanc } else { shieldedInstanceConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -6971,7 +7626,7 @@ public Builder setShieldedInstanceConfig( } else { shieldedInstanceConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -6987,7 +7642,7 @@ public Builder setShieldedInstanceConfig( public Builder mergeShieldedInstanceConfig( com.google.cloud.tpu.v2.ShieldedInstanceConfig value) { if (shieldedInstanceConfigBuilder_ == null) { - if (((bitField0_ & 0x00100000) != 0) + if (((bitField0_ & 0x00200000) != 0) && shieldedInstanceConfig_ != null && shieldedInstanceConfig_ != com.google.cloud.tpu.v2.ShieldedInstanceConfig.getDefaultInstance()) { @@ -6999,7 +7654,7 @@ public Builder mergeShieldedInstanceConfig( shieldedInstanceConfigBuilder_.mergeFrom(value); } if (shieldedInstanceConfig_ != null) { - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); } return this; @@ -7014,7 +7669,7 @@ public Builder mergeShieldedInstanceConfig( * .google.cloud.tpu.v2.ShieldedInstanceConfig shielded_instance_config = 45; */ public Builder clearShieldedInstanceConfig() { - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00200000); shieldedInstanceConfig_ = null; if (shieldedInstanceConfigBuilder_ != null) { shieldedInstanceConfigBuilder_.dispose(); @@ -7034,7 +7689,7 @@ public Builder clearShieldedInstanceConfig() { */ public com.google.cloud.tpu.v2.ShieldedInstanceConfig.Builder getShieldedInstanceConfigBuilder() { - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return getShieldedInstanceConfigFieldBuilder().getBuilder(); } @@ -7101,7 +7756,7 @@ public Builder clearShieldedInstanceConfig() { * @return Whether the acceleratorConfig field is set. */ public boolean hasAcceleratorConfig() { - return ((bitField0_ & 0x00200000) != 0); + return ((bitField0_ & 0x00400000) != 0); } /** * @@ -7141,7 +7796,7 @@ public Builder setAcceleratorConfig(com.google.cloud.tpu.v2.AcceleratorConfig va } else { acceleratorConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -7161,7 +7816,7 @@ public Builder setAcceleratorConfig( } else { acceleratorConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -7176,7 +7831,7 @@ public Builder setAcceleratorConfig( */ public Builder mergeAcceleratorConfig(com.google.cloud.tpu.v2.AcceleratorConfig value) { if (acceleratorConfigBuilder_ == null) { - if (((bitField0_ & 0x00200000) != 0) + if (((bitField0_ & 0x00400000) != 0) && acceleratorConfig_ != null && acceleratorConfig_ != com.google.cloud.tpu.v2.AcceleratorConfig.getDefaultInstance()) { @@ -7188,7 +7843,7 @@ public Builder mergeAcceleratorConfig(com.google.cloud.tpu.v2.AcceleratorConfig acceleratorConfigBuilder_.mergeFrom(value); } if (acceleratorConfig_ != null) { - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); } return this; @@ -7203,7 +7858,7 @@ public Builder mergeAcceleratorConfig(com.google.cloud.tpu.v2.AcceleratorConfig * .google.cloud.tpu.v2.AcceleratorConfig accelerator_config = 46; */ public Builder clearAcceleratorConfig() { - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); acceleratorConfig_ = null; if (acceleratorConfigBuilder_ != null) { acceleratorConfigBuilder_.dispose(); @@ -7222,7 +7877,7 @@ public Builder clearAcceleratorConfig() { * .google.cloud.tpu.v2.AcceleratorConfig accelerator_config = 46; */ public com.google.cloud.tpu.v2.AcceleratorConfig.Builder getAcceleratorConfigBuilder() { - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return getAcceleratorConfigFieldBuilder().getBuilder(); } @@ -7335,7 +7990,7 @@ public Builder setQueuedResource(java.lang.String value) { throw new NullPointerException(); } queuedResource_ = value; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -7353,7 +8008,7 @@ public Builder setQueuedResource(java.lang.String value) { */ public Builder clearQueuedResource() { queuedResource_ = getDefaultInstance().getQueuedResource(); - bitField0_ = (bitField0_ & ~0x00400000); + bitField0_ = (bitField0_ & ~0x00800000); onChanged(); return this; } @@ -7376,7 +8031,7 @@ public Builder setQueuedResourceBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); queuedResource_ = value; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -7412,7 +8067,7 @@ public boolean getMultisliceNode() { public Builder setMultisliceNode(boolean value) { multisliceNode_ = value; - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -7428,7 +8083,7 @@ public Builder setMultisliceNode(boolean value) { * @return This builder for chaining. */ public Builder clearMultisliceNode() { - bitField0_ = (bitField0_ & ~0x00800000); + bitField0_ = (bitField0_ & ~0x01000000); multisliceNode_ = false; onChanged(); return this; diff --git a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NodeOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NodeOrBuilder.java index 5a0fa8988097..8a503df27159 100644 --- a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NodeOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/NodeOrBuilder.java @@ -186,7 +186,9 @@ public interface NodeOrBuilder * * *
    -   * Network configurations for the TPU node.
    +   * Network configurations for the TPU node. network_config and network_configs
    +   * are mutually exclusive, you can only specify one of them. If both are
    +   * specified, an error will be returned.
        * 
    * * .google.cloud.tpu.v2.NetworkConfig network_config = 36; @@ -198,7 +200,9 @@ public interface NodeOrBuilder * * *
    -   * Network configurations for the TPU node.
    +   * Network configurations for the TPU node. network_config and network_configs
    +   * are mutually exclusive, you can only specify one of them. If both are
    +   * specified, an error will be returned.
        * 
    * * .google.cloud.tpu.v2.NetworkConfig network_config = 36; @@ -210,13 +214,92 @@ public interface NodeOrBuilder * * *
    -   * Network configurations for the TPU node.
    +   * Network configurations for the TPU node. network_config and network_configs
    +   * are mutually exclusive, you can only specify one of them. If both are
    +   * specified, an error will be returned.
        * 
    * * .google.cloud.tpu.v2.NetworkConfig network_config = 36; */ com.google.cloud.tpu.v2.NetworkConfigOrBuilder getNetworkConfigOrBuilder(); + /** + * + * + *
    +   * Optional. Repeated network configurations for the TPU node. This field is
    +   * used to specify multiple networks configs for the TPU node. network_config
    +   * and network_configs are mutually exclusive, you can only specify one of
    +   * them. If both are specified, an error will be returned.
    +   * 
    + * + * + * repeated .google.cloud.tpu.v2.NetworkConfig network_configs = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getNetworkConfigsList(); + /** + * + * + *
    +   * Optional. Repeated network configurations for the TPU node. This field is
    +   * used to specify multiple networks configs for the TPU node. network_config
    +   * and network_configs are mutually exclusive, you can only specify one of
    +   * them. If both are specified, an error will be returned.
    +   * 
    + * + * + * repeated .google.cloud.tpu.v2.NetworkConfig network_configs = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.tpu.v2.NetworkConfig getNetworkConfigs(int index); + /** + * + * + *
    +   * Optional. Repeated network configurations for the TPU node. This field is
    +   * used to specify multiple networks configs for the TPU node. network_config
    +   * and network_configs are mutually exclusive, you can only specify one of
    +   * them. If both are specified, an error will be returned.
    +   * 
    + * + * + * repeated .google.cloud.tpu.v2.NetworkConfig network_configs = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getNetworkConfigsCount(); + /** + * + * + *
    +   * Optional. Repeated network configurations for the TPU node. This field is
    +   * used to specify multiple networks configs for the TPU node. network_config
    +   * and network_configs are mutually exclusive, you can only specify one of
    +   * them. If both are specified, an error will be returned.
    +   * 
    + * + * + * repeated .google.cloud.tpu.v2.NetworkConfig network_configs = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getNetworkConfigsOrBuilderList(); + /** + * + * + *
    +   * Optional. Repeated network configurations for the TPU node. This field is
    +   * used to specify multiple networks configs for the TPU node. network_config
    +   * and network_configs are mutually exclusive, you can only specify one of
    +   * them. If both are specified, an error will be returned.
    +   * 
    + * + * + * repeated .google.cloud.tpu.v2.NetworkConfig network_configs = 49 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.tpu.v2.NetworkConfigOrBuilder getNetworkConfigsOrBuilder(int index); + /** * * diff --git a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/QueuedResource.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/QueuedResource.java new file mode 100644 index 000000000000..2d84eb8dae99 --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/QueuedResource.java @@ -0,0 +1,10054 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v2/cloud_tpu.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.tpu.v2; + +/** + * + * + *
    + * A QueuedResource represents a request for resources that will be placed
    + * in a queue and fulfilled when the necessary resources are available.
    + * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.QueuedResource} + */ +public final class QueuedResource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.QueuedResource) + QueuedResourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use QueuedResource.newBuilder() to construct. + private QueuedResource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private QueuedResource() { + name_ = ""; + reservationName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new QueuedResource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.QueuedResource.class, + com.google.cloud.tpu.v2.QueuedResource.Builder.class); + } + + public interface TpuOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.QueuedResource.Tpu) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Optional. The TPU node(s) being requested.
    +     * 
    + * + * + * repeated .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec node_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getNodeSpecList(); + /** + * + * + *
    +     * Optional. The TPU node(s) being requested.
    +     * 
    + * + * + * repeated .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec node_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec getNodeSpec(int index); + /** + * + * + *
    +     * Optional. The TPU node(s) being requested.
    +     * 
    + * + * + * repeated .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec node_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getNodeSpecCount(); + /** + * + * + *
    +     * Optional. The TPU node(s) being requested.
    +     * 
    + * + * + * repeated .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec node_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getNodeSpecOrBuilderList(); + /** + * + * + *
    +     * Optional. The TPU node(s) being requested.
    +     * 
    + * + * + * repeated .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec node_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpecOrBuilder getNodeSpecOrBuilder(int index); + } + /** + * + * + *
    +   * Details of the TPU resource(s) being requested.
    +   * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.QueuedResource.Tpu} + */ + public static final class Tpu extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.QueuedResource.Tpu) + TpuOrBuilder { + private static final long serialVersionUID = 0L; + // Use Tpu.newBuilder() to construct. + private Tpu(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Tpu() { + nodeSpec_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Tpu(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResource_Tpu_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResource_Tpu_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.QueuedResource.Tpu.class, + com.google.cloud.tpu.v2.QueuedResource.Tpu.Builder.class); + } + + public interface NodeSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +       * Required. The parent resource name.
    +       * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
    +       * Required. The parent resource name.
    +       * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +       * Optional. The unqualified resource name. Should follow the
    +       * `^[A-Za-z0-9_.~+%-]+$` regex format. This is only specified when
    +       * requesting a single node. In case of multislice requests,
    +       * multislice_params must be populated instead.
    +       * 
    + * + * string node_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the nodeId field is set. + */ + boolean hasNodeId(); + /** + * + * + *
    +       * Optional. The unqualified resource name. Should follow the
    +       * `^[A-Za-z0-9_.~+%-]+$` regex format. This is only specified when
    +       * requesting a single node. In case of multislice requests,
    +       * multislice_params must be populated instead.
    +       * 
    + * + * string node_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nodeId. + */ + java.lang.String getNodeId(); + /** + * + * + *
    +       * Optional. The unqualified resource name. Should follow the
    +       * `^[A-Za-z0-9_.~+%-]+$` regex format. This is only specified when
    +       * requesting a single node. In case of multislice requests,
    +       * multislice_params must be populated instead.
    +       * 
    + * + * string node_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for nodeId. + */ + com.google.protobuf.ByteString getNodeIdBytes(); + + /** + * + * + *
    +       * Optional. Fields to specify in case of multislice request.
    +       * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams multislice_params = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the multisliceParams field is set. + */ + boolean hasMultisliceParams(); + /** + * + * + *
    +       * Optional. Fields to specify in case of multislice request.
    +       * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams multislice_params = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The multisliceParams. + */ + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams getMultisliceParams(); + /** + * + * + *
    +       * Optional. Fields to specify in case of multislice request.
    +       * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams multislice_params = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParamsOrBuilder + getMultisliceParamsOrBuilder(); + + /** + * + * + *
    +       * Required. The node.
    +       * 
    + * + * .google.cloud.tpu.v2.Node node = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the node field is set. + */ + boolean hasNode(); + /** + * + * + *
    +       * Required. The node.
    +       * 
    + * + * .google.cloud.tpu.v2.Node node = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The node. + */ + com.google.cloud.tpu.v2.Node getNode(); + /** + * + * + *
    +       * Required. The node.
    +       * 
    + * + * .google.cloud.tpu.v2.Node node = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.tpu.v2.NodeOrBuilder getNodeOrBuilder(); + + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.NameStrategyCase getNameStrategyCase(); + } + /** + * + * + *
    +     * Details of the TPU node(s) being requested. Users can request either a
    +     * single node or multiple nodes.
    +     * NodeSpec provides the specification for node(s) to be created.
    +     * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec} + */ + public static final class NodeSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec) + NodeSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeSpec.newBuilder() to construct. + private NodeSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NodeSpec() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NodeSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResource_Tpu_NodeSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResource_Tpu_NodeSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.class, + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.Builder.class); + } + + public interface MultisliceParamsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +         * Required. Number of nodes with this spec. The system will attempt
    +         * to provision "node_count" nodes as part of the request.
    +         * This needs to be > 1.
    +         * 
    + * + * int32 node_count = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodeCount. + */ + int getNodeCount(); + + /** + * + * + *
    +         * Optional. Prefix of node_ids in case of multislice request.
    +         * Should follow the `^[A-Za-z0-9_.~+%-]+$` regex format.
    +         * If node_count = 3 and node_id_prefix = "np", node ids of nodes
    +         * created will be "np-0", "np-1", "np-2". If this field is not
    +         * provided we use queued_resource_id as the node_id_prefix.
    +         * 
    + * + * string node_id_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nodeIdPrefix. + */ + java.lang.String getNodeIdPrefix(); + /** + * + * + *
    +         * Optional. Prefix of node_ids in case of multislice request.
    +         * Should follow the `^[A-Za-z0-9_.~+%-]+$` regex format.
    +         * If node_count = 3 and node_id_prefix = "np", node ids of nodes
    +         * created will be "np-0", "np-1", "np-2". If this field is not
    +         * provided we use queued_resource_id as the node_id_prefix.
    +         * 
    + * + * string node_id_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for nodeIdPrefix. + */ + com.google.protobuf.ByteString getNodeIdPrefixBytes(); + } + /** + * + * + *
    +       * Parameters to specify for multislice QueuedResource requests. This
    +       * message must be populated in case of multislice requests instead of
    +       * node_id.
    +       * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams} + */ + public static final class MultisliceParams extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams) + MultisliceParamsOrBuilder { + private static final long serialVersionUID = 0L; + // Use MultisliceParams.newBuilder() to construct. + private MultisliceParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MultisliceParams() { + nodeIdPrefix_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MultisliceParams(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResource_Tpu_NodeSpec_MultisliceParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResource_Tpu_NodeSpec_MultisliceParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams.class, + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams.Builder + .class); + } + + public static final int NODE_COUNT_FIELD_NUMBER = 1; + private int nodeCount_ = 0; + /** + * + * + *
    +         * Required. Number of nodes with this spec. The system will attempt
    +         * to provision "node_count" nodes as part of the request.
    +         * This needs to be > 1.
    +         * 
    + * + * int32 node_count = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodeCount. + */ + @java.lang.Override + public int getNodeCount() { + return nodeCount_; + } + + public static final int NODE_ID_PREFIX_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nodeIdPrefix_ = ""; + /** + * + * + *
    +         * Optional. Prefix of node_ids in case of multislice request.
    +         * Should follow the `^[A-Za-z0-9_.~+%-]+$` regex format.
    +         * If node_count = 3 and node_id_prefix = "np", node ids of nodes
    +         * created will be "np-0", "np-1", "np-2". If this field is not
    +         * provided we use queued_resource_id as the node_id_prefix.
    +         * 
    + * + * string node_id_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nodeIdPrefix. + */ + @java.lang.Override + public java.lang.String getNodeIdPrefix() { + java.lang.Object ref = nodeIdPrefix_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeIdPrefix_ = s; + return s; + } + } + /** + * + * + *
    +         * Optional. Prefix of node_ids in case of multislice request.
    +         * Should follow the `^[A-Za-z0-9_.~+%-]+$` regex format.
    +         * If node_count = 3 and node_id_prefix = "np", node ids of nodes
    +         * created will be "np-0", "np-1", "np-2". If this field is not
    +         * provided we use queued_resource_id as the node_id_prefix.
    +         * 
    + * + * string node_id_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for nodeIdPrefix. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNodeIdPrefixBytes() { + java.lang.Object ref = nodeIdPrefix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodeIdPrefix_ = 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 (nodeCount_ != 0) { + output.writeInt32(1, nodeCount_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeIdPrefix_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nodeIdPrefix_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (nodeCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, nodeCount_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeIdPrefix_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nodeIdPrefix_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams)) { + return super.equals(obj); + } + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams other = + (com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams) obj; + + if (getNodeCount() != other.getNodeCount()) return false; + if (!getNodeIdPrefix().equals(other.getNodeIdPrefix())) return false; + if (!getUnknownFields().equals(other.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) + NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getNodeCount(); + hash = (37 * hash) + NODE_ID_PREFIX_FIELD_NUMBER; + hash = (53 * hash) + getNodeIdPrefix().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 to specify for multislice QueuedResource requests. This
    +         * message must be populated in case of multislice requests instead of
    +         * node_id.
    +         * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams) + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResource_Tpu_NodeSpec_MultisliceParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResource_Tpu_NodeSpec_MultisliceParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams.class, + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams.Builder + .class); + } + + // Construct using + // com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + nodeCount_ = 0; + nodeIdPrefix_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResource_Tpu_NodeSpec_MultisliceParams_descriptor; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams + getDefaultInstanceForType() { + return com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams build() { + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams + buildPartial() { + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams result = + new com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.nodeCount_ = nodeCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nodeIdPrefix_ = nodeIdPrefix_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams) { + return mergeFrom( + (com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams other) { + if (other + == com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams + .getDefaultInstance()) return this; + if (other.getNodeCount() != 0) { + setNodeCount(other.getNodeCount()); + } + if (!other.getNodeIdPrefix().isEmpty()) { + nodeIdPrefix_ = other.nodeIdPrefix_; + 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: + { + nodeCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + nodeIdPrefix_ = 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 nodeCount_; + /** + * + * + *
    +           * Required. Number of nodes with this spec. The system will attempt
    +           * to provision "node_count" nodes as part of the request.
    +           * This needs to be > 1.
    +           * 
    + * + * int32 node_count = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodeCount. + */ + @java.lang.Override + public int getNodeCount() { + return nodeCount_; + } + /** + * + * + *
    +           * Required. Number of nodes with this spec. The system will attempt
    +           * to provision "node_count" nodes as part of the request.
    +           * This needs to be > 1.
    +           * 
    + * + * int32 node_count = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The nodeCount to set. + * @return This builder for chaining. + */ + public Builder setNodeCount(int value) { + + nodeCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +           * Required. Number of nodes with this spec. The system will attempt
    +           * to provision "node_count" nodes as part of the request.
    +           * This needs to be > 1.
    +           * 
    + * + * int32 node_count = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearNodeCount() { + bitField0_ = (bitField0_ & ~0x00000001); + nodeCount_ = 0; + onChanged(); + return this; + } + + private java.lang.Object nodeIdPrefix_ = ""; + /** + * + * + *
    +           * Optional. Prefix of node_ids in case of multislice request.
    +           * Should follow the `^[A-Za-z0-9_.~+%-]+$` regex format.
    +           * If node_count = 3 and node_id_prefix = "np", node ids of nodes
    +           * created will be "np-0", "np-1", "np-2". If this field is not
    +           * provided we use queued_resource_id as the node_id_prefix.
    +           * 
    + * + * string node_id_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nodeIdPrefix. + */ + public java.lang.String getNodeIdPrefix() { + java.lang.Object ref = nodeIdPrefix_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeIdPrefix_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +           * Optional. Prefix of node_ids in case of multislice request.
    +           * Should follow the `^[A-Za-z0-9_.~+%-]+$` regex format.
    +           * If node_count = 3 and node_id_prefix = "np", node ids of nodes
    +           * created will be "np-0", "np-1", "np-2". If this field is not
    +           * provided we use queued_resource_id as the node_id_prefix.
    +           * 
    + * + * string node_id_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for nodeIdPrefix. + */ + public com.google.protobuf.ByteString getNodeIdPrefixBytes() { + java.lang.Object ref = nodeIdPrefix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nodeIdPrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +           * Optional. Prefix of node_ids in case of multislice request.
    +           * Should follow the `^[A-Za-z0-9_.~+%-]+$` regex format.
    +           * If node_count = 3 and node_id_prefix = "np", node ids of nodes
    +           * created will be "np-0", "np-1", "np-2". If this field is not
    +           * provided we use queued_resource_id as the node_id_prefix.
    +           * 
    + * + * string node_id_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The nodeIdPrefix to set. + * @return This builder for chaining. + */ + public Builder setNodeIdPrefix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nodeIdPrefix_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +           * Optional. Prefix of node_ids in case of multislice request.
    +           * Should follow the `^[A-Za-z0-9_.~+%-]+$` regex format.
    +           * If node_count = 3 and node_id_prefix = "np", node ids of nodes
    +           * created will be "np-0", "np-1", "np-2". If this field is not
    +           * provided we use queued_resource_id as the node_id_prefix.
    +           * 
    + * + * string node_id_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNodeIdPrefix() { + nodeIdPrefix_ = getDefaultInstance().getNodeIdPrefix(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +           * Optional. Prefix of node_ids in case of multislice request.
    +           * Should follow the `^[A-Za-z0-9_.~+%-]+$` regex format.
    +           * If node_count = 3 and node_id_prefix = "np", node ids of nodes
    +           * created will be "np-0", "np-1", "np-2". If this field is not
    +           * provided we use queued_resource_id as the node_id_prefix.
    +           * 
    + * + * string node_id_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for nodeIdPrefix to set. + * @return This builder for chaining. + */ + public Builder setNodeIdPrefixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nodeIdPrefix_ = 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.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams) + } + + // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams) + private static final com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams(); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MultisliceParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int nameStrategyCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object nameStrategy_; + + public enum NameStrategyCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + NODE_ID(2), + MULTISLICE_PARAMS(3), + NAMESTRATEGY_NOT_SET(0); + private final int value; + + private NameStrategyCase(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 NameStrategyCase valueOf(int value) { + return forNumber(value); + } + + public static NameStrategyCase forNumber(int value) { + switch (value) { + case 2: + return NODE_ID; + case 3: + return MULTISLICE_PARAMS; + case 0: + return NAMESTRATEGY_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public NameStrategyCase getNameStrategyCase() { + return NameStrategyCase.forNumber(nameStrategyCase_); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
    +       * Required. The parent resource name.
    +       * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
    +       * Required. The parent resource name.
    +       * 
    + * + * + * 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 NODE_ID_FIELD_NUMBER = 2; + /** + * + * + *
    +       * Optional. The unqualified resource name. Should follow the
    +       * `^[A-Za-z0-9_.~+%-]+$` regex format. This is only specified when
    +       * requesting a single node. In case of multislice requests,
    +       * multislice_params must be populated instead.
    +       * 
    + * + * string node_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the nodeId field is set. + */ + public boolean hasNodeId() { + return nameStrategyCase_ == 2; + } + /** + * + * + *
    +       * Optional. The unqualified resource name. Should follow the
    +       * `^[A-Za-z0-9_.~+%-]+$` regex format. This is only specified when
    +       * requesting a single node. In case of multislice requests,
    +       * multislice_params must be populated instead.
    +       * 
    + * + * string node_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nodeId. + */ + public java.lang.String getNodeId() { + java.lang.Object ref = ""; + if (nameStrategyCase_ == 2) { + ref = nameStrategy_; + } + if (ref instanceof java.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 (nameStrategyCase_ == 2) { + nameStrategy_ = s; + } + return s; + } + } + /** + * + * + *
    +       * Optional. The unqualified resource name. Should follow the
    +       * `^[A-Za-z0-9_.~+%-]+$` regex format. This is only specified when
    +       * requesting a single node. In case of multislice requests,
    +       * multislice_params must be populated instead.
    +       * 
    + * + * string node_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for nodeId. + */ + public com.google.protobuf.ByteString getNodeIdBytes() { + java.lang.Object ref = ""; + if (nameStrategyCase_ == 2) { + ref = nameStrategy_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (nameStrategyCase_ == 2) { + nameStrategy_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MULTISLICE_PARAMS_FIELD_NUMBER = 3; + /** + * + * + *
    +       * Optional. Fields to specify in case of multislice request.
    +       * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams multislice_params = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the multisliceParams field is set. + */ + @java.lang.Override + public boolean hasMultisliceParams() { + return nameStrategyCase_ == 3; + } + /** + * + * + *
    +       * Optional. Fields to specify in case of multislice request.
    +       * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams multislice_params = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The multisliceParams. + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams + getMultisliceParams() { + if (nameStrategyCase_ == 3) { + return (com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams) + nameStrategy_; + } + return com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams + .getDefaultInstance(); + } + /** + * + * + *
    +       * Optional. Fields to specify in case of multislice request.
    +       * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams multislice_params = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParamsOrBuilder + getMultisliceParamsOrBuilder() { + if (nameStrategyCase_ == 3) { + return (com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams) + nameStrategy_; + } + return com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams + .getDefaultInstance(); + } + + public static final int NODE_FIELD_NUMBER = 4; + private com.google.cloud.tpu.v2.Node node_; + /** + * + * + *
    +       * Required. The node.
    +       * 
    + * + * .google.cloud.tpu.v2.Node node = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the node field is set. + */ + @java.lang.Override + public boolean hasNode() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +       * Required. The node.
    +       * 
    + * + * .google.cloud.tpu.v2.Node node = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The node. + */ + @java.lang.Override + public com.google.cloud.tpu.v2.Node getNode() { + return node_ == null ? com.google.cloud.tpu.v2.Node.getDefaultInstance() : node_; + } + /** + * + * + *
    +       * Required. The node.
    +       * 
    + * + * .google.cloud.tpu.v2.Node node = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.tpu.v2.NodeOrBuilder getNodeOrBuilder() { + return node_ == null ? com.google.cloud.tpu.v2.Node.getDefaultInstance() : node_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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 (nameStrategyCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nameStrategy_); + } + if (nameStrategyCase_ == 3) { + output.writeMessage( + 3, + (com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams) nameStrategy_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getNode()); + } + 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 (nameStrategyCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nameStrategy_); + } + if (nameStrategyCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams) + nameStrategy_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getNode()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec)) { + return super.equals(obj); + } + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec other = + (com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasNode() != other.hasNode()) return false; + if (hasNode()) { + if (!getNode().equals(other.getNode())) return false; + } + if (!getNameStrategyCase().equals(other.getNameStrategyCase())) return false; + switch (nameStrategyCase_) { + case 2: + if (!getNodeId().equals(other.getNodeId())) return false; + break; + case 3: + if (!getMultisliceParams().equals(other.getMultisliceParams())) 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 (hasNode()) { + hash = (37 * hash) + NODE_FIELD_NUMBER; + hash = (53 * hash) + getNode().hashCode(); + } + switch (nameStrategyCase_) { + case 2: + hash = (37 * hash) + NODE_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodeId().hashCode(); + break; + case 3: + hash = (37 * hash) + MULTISLICE_PARAMS_FIELD_NUMBER; + hash = (53 * hash) + getMultisliceParams().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 of the TPU node(s) being requested. Users can request either a
    +       * single node or multiple nodes.
    +       * NodeSpec provides the specification for node(s) to be created.
    +       * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec) + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResource_Tpu_NodeSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResource_Tpu_NodeSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.class, + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.Builder.class); + } + + // Construct using com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getNodeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + if (multisliceParamsBuilder_ != null) { + multisliceParamsBuilder_.clear(); + } + node_ = null; + if (nodeBuilder_ != null) { + nodeBuilder_.dispose(); + nodeBuilder_ = null; + } + nameStrategyCase_ = 0; + nameStrategy_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResource_Tpu_NodeSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec getDefaultInstanceForType() { + return com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec build() { + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec buildPartial() { + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec result = + new com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.node_ = nodeBuilder_ == null ? node_ : nodeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec result) { + result.nameStrategyCase_ = nameStrategyCase_; + result.nameStrategy_ = this.nameStrategy_; + if (nameStrategyCase_ == 3 && multisliceParamsBuilder_ != null) { + result.nameStrategy_ = multisliceParamsBuilder_.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.tpu.v2.QueuedResource.Tpu.NodeSpec) { + return mergeFrom((com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec other) { + if (other == com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasNode()) { + mergeNode(other.getNode()); + } + switch (other.getNameStrategyCase()) { + case NODE_ID: + { + nameStrategyCase_ = 2; + nameStrategy_ = other.nameStrategy_; + onChanged(); + break; + } + case MULTISLICE_PARAMS: + { + mergeMultisliceParams(other.getMultisliceParams()); + break; + } + case NAMESTRATEGY_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_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + nameStrategyCase_ = 2; + nameStrategy_ = s; + break; + } // case 18 + case 26: + { + input.readMessage( + getMultisliceParamsFieldBuilder().getBuilder(), extensionRegistry); + nameStrategyCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getNodeFieldBuilder().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 nameStrategyCase_ = 0; + private java.lang.Object nameStrategy_; + + public NameStrategyCase getNameStrategyCase() { + return NameStrategyCase.forNumber(nameStrategyCase_); + } + + public Builder clearNameStrategy() { + nameStrategyCase_ = 0; + nameStrategy_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
    +         * Required. The parent resource name.
    +         * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +         * Required. The parent resource name.
    +         * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +         * Required. The parent resource name.
    +         * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +         * Required. The parent resource name.
    +         * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +         * Required. The parent resource name.
    +         * 
    + * + * + * 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; + } + + /** + * + * + *
    +         * Optional. The unqualified resource name. Should follow the
    +         * `^[A-Za-z0-9_.~+%-]+$` regex format. This is only specified when
    +         * requesting a single node. In case of multislice requests,
    +         * multislice_params must be populated instead.
    +         * 
    + * + * string node_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the nodeId field is set. + */ + @java.lang.Override + public boolean hasNodeId() { + return nameStrategyCase_ == 2; + } + /** + * + * + *
    +         * Optional. The unqualified resource name. Should follow the
    +         * `^[A-Za-z0-9_.~+%-]+$` regex format. This is only specified when
    +         * requesting a single node. In case of multislice requests,
    +         * multislice_params must be populated instead.
    +         * 
    + * + * string node_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nodeId. + */ + @java.lang.Override + public java.lang.String getNodeId() { + java.lang.Object ref = ""; + if (nameStrategyCase_ == 2) { + ref = nameStrategy_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (nameStrategyCase_ == 2) { + nameStrategy_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +         * Optional. The unqualified resource name. Should follow the
    +         * `^[A-Za-z0-9_.~+%-]+$` regex format. This is only specified when
    +         * requesting a single node. In case of multislice requests,
    +         * multislice_params must be populated instead.
    +         * 
    + * + * string node_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for nodeId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNodeIdBytes() { + java.lang.Object ref = ""; + if (nameStrategyCase_ == 2) { + ref = nameStrategy_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (nameStrategyCase_ == 2) { + nameStrategy_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +         * Optional. The unqualified resource name. Should follow the
    +         * `^[A-Za-z0-9_.~+%-]+$` regex format. This is only specified when
    +         * requesting a single node. In case of multislice requests,
    +         * multislice_params must be populated instead.
    +         * 
    + * + * string node_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The nodeId to set. + * @return This builder for chaining. + */ + public Builder setNodeId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nameStrategyCase_ = 2; + nameStrategy_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +         * Optional. The unqualified resource name. Should follow the
    +         * `^[A-Za-z0-9_.~+%-]+$` regex format. This is only specified when
    +         * requesting a single node. In case of multislice requests,
    +         * multislice_params must be populated instead.
    +         * 
    + * + * string node_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNodeId() { + if (nameStrategyCase_ == 2) { + nameStrategyCase_ = 0; + nameStrategy_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
    +         * Optional. The unqualified resource name. Should follow the
    +         * `^[A-Za-z0-9_.~+%-]+$` regex format. This is only specified when
    +         * requesting a single node. In case of multislice requests,
    +         * multislice_params must be populated instead.
    +         * 
    + * + * string node_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for nodeId to set. + * @return This builder for chaining. + */ + public Builder setNodeIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nameStrategyCase_ = 2; + nameStrategy_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams, + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams.Builder, + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParamsOrBuilder> + multisliceParamsBuilder_; + /** + * + * + *
    +         * Optional. Fields to specify in case of multislice request.
    +         * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams multislice_params = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the multisliceParams field is set. + */ + @java.lang.Override + public boolean hasMultisliceParams() { + return nameStrategyCase_ == 3; + } + /** + * + * + *
    +         * Optional. Fields to specify in case of multislice request.
    +         * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams multislice_params = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The multisliceParams. + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams + getMultisliceParams() { + if (multisliceParamsBuilder_ == null) { + if (nameStrategyCase_ == 3) { + return (com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams) + nameStrategy_; + } + return com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams + .getDefaultInstance(); + } else { + if (nameStrategyCase_ == 3) { + return multisliceParamsBuilder_.getMessage(); + } + return com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams + .getDefaultInstance(); + } + } + /** + * + * + *
    +         * Optional. Fields to specify in case of multislice request.
    +         * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams multislice_params = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMultisliceParams( + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams value) { + if (multisliceParamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nameStrategy_ = value; + onChanged(); + } else { + multisliceParamsBuilder_.setMessage(value); + } + nameStrategyCase_ = 3; + return this; + } + /** + * + * + *
    +         * Optional. Fields to specify in case of multislice request.
    +         * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams multislice_params = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMultisliceParams( + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams.Builder + builderForValue) { + if (multisliceParamsBuilder_ == null) { + nameStrategy_ = builderForValue.build(); + onChanged(); + } else { + multisliceParamsBuilder_.setMessage(builderForValue.build()); + } + nameStrategyCase_ = 3; + return this; + } + /** + * + * + *
    +         * Optional. Fields to specify in case of multislice request.
    +         * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams multislice_params = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMultisliceParams( + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams value) { + if (multisliceParamsBuilder_ == null) { + if (nameStrategyCase_ == 3 + && nameStrategy_ + != com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams + .getDefaultInstance()) { + nameStrategy_ = + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams.newBuilder( + (com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams) + nameStrategy_) + .mergeFrom(value) + .buildPartial(); + } else { + nameStrategy_ = value; + } + onChanged(); + } else { + if (nameStrategyCase_ == 3) { + multisliceParamsBuilder_.mergeFrom(value); + } else { + multisliceParamsBuilder_.setMessage(value); + } + } + nameStrategyCase_ = 3; + return this; + } + /** + * + * + *
    +         * Optional. Fields to specify in case of multislice request.
    +         * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams multislice_params = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMultisliceParams() { + if (multisliceParamsBuilder_ == null) { + if (nameStrategyCase_ == 3) { + nameStrategyCase_ = 0; + nameStrategy_ = null; + onChanged(); + } + } else { + if (nameStrategyCase_ == 3) { + nameStrategyCase_ = 0; + nameStrategy_ = null; + } + multisliceParamsBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +         * Optional. Fields to specify in case of multislice request.
    +         * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams multislice_params = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams.Builder + getMultisliceParamsBuilder() { + return getMultisliceParamsFieldBuilder().getBuilder(); + } + /** + * + * + *
    +         * Optional. Fields to specify in case of multislice request.
    +         * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams multislice_params = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParamsOrBuilder + getMultisliceParamsOrBuilder() { + if ((nameStrategyCase_ == 3) && (multisliceParamsBuilder_ != null)) { + return multisliceParamsBuilder_.getMessageOrBuilder(); + } else { + if (nameStrategyCase_ == 3) { + return (com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams) + nameStrategy_; + } + return com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams + .getDefaultInstance(); + } + } + /** + * + * + *
    +         * Optional. Fields to specify in case of multislice request.
    +         * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams multislice_params = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams, + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams.Builder, + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParamsOrBuilder> + getMultisliceParamsFieldBuilder() { + if (multisliceParamsBuilder_ == null) { + if (!(nameStrategyCase_ == 3)) { + nameStrategy_ = + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams + .getDefaultInstance(); + } + multisliceParamsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams, + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams.Builder, + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParamsOrBuilder>( + (com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.MultisliceParams) + nameStrategy_, + getParentForChildren(), + isClean()); + nameStrategy_ = null; + } + nameStrategyCase_ = 3; + onChanged(); + return multisliceParamsBuilder_; + } + + private com.google.cloud.tpu.v2.Node node_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.Node, + com.google.cloud.tpu.v2.Node.Builder, + com.google.cloud.tpu.v2.NodeOrBuilder> + nodeBuilder_; + /** + * + * + *
    +         * Required. The node.
    +         * 
    + * + * .google.cloud.tpu.v2.Node node = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the node field is set. + */ + public boolean hasNode() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
    +         * Required. The node.
    +         * 
    + * + * .google.cloud.tpu.v2.Node node = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The node. + */ + public com.google.cloud.tpu.v2.Node getNode() { + if (nodeBuilder_ == null) { + return node_ == null ? com.google.cloud.tpu.v2.Node.getDefaultInstance() : node_; + } else { + return nodeBuilder_.getMessage(); + } + } + /** + * + * + *
    +         * Required. The node.
    +         * 
    + * + * .google.cloud.tpu.v2.Node node = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setNode(com.google.cloud.tpu.v2.Node value) { + if (nodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + node_ = value; + } else { + nodeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +         * Required. The node.
    +         * 
    + * + * .google.cloud.tpu.v2.Node node = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setNode(com.google.cloud.tpu.v2.Node.Builder builderForValue) { + if (nodeBuilder_ == null) { + node_ = builderForValue.build(); + } else { + nodeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +         * Required. The node.
    +         * 
    + * + * .google.cloud.tpu.v2.Node node = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeNode(com.google.cloud.tpu.v2.Node value) { + if (nodeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && node_ != null + && node_ != com.google.cloud.tpu.v2.Node.getDefaultInstance()) { + getNodeBuilder().mergeFrom(value); + } else { + node_ = value; + } + } else { + nodeBuilder_.mergeFrom(value); + } + if (node_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
    +         * Required. The node.
    +         * 
    + * + * .google.cloud.tpu.v2.Node node = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearNode() { + bitField0_ = (bitField0_ & ~0x00000008); + node_ = null; + if (nodeBuilder_ != null) { + nodeBuilder_.dispose(); + nodeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +         * Required. The node.
    +         * 
    + * + * .google.cloud.tpu.v2.Node node = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.tpu.v2.Node.Builder getNodeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getNodeFieldBuilder().getBuilder(); + } + /** + * + * + *
    +         * Required. The node.
    +         * 
    + * + * .google.cloud.tpu.v2.Node node = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.tpu.v2.NodeOrBuilder getNodeOrBuilder() { + if (nodeBuilder_ != null) { + return nodeBuilder_.getMessageOrBuilder(); + } else { + return node_ == null ? com.google.cloud.tpu.v2.Node.getDefaultInstance() : node_; + } + } + /** + * + * + *
    +         * Required. The node.
    +         * 
    + * + * .google.cloud.tpu.v2.Node node = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.Node, + com.google.cloud.tpu.v2.Node.Builder, + com.google.cloud.tpu.v2.NodeOrBuilder> + getNodeFieldBuilder() { + if (nodeBuilder_ == null) { + nodeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.Node, + com.google.cloud.tpu.v2.Node.Builder, + com.google.cloud.tpu.v2.NodeOrBuilder>( + getNode(), getParentForChildren(), isClean()); + node_ = null; + } + return nodeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec) + private static final com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec(); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int NODE_SPEC_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List nodeSpec_; + /** + * + * + *
    +     * Optional. The TPU node(s) being requested.
    +     * 
    + * + * + * repeated .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec node_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getNodeSpecList() { + return nodeSpec_; + } + /** + * + * + *
    +     * Optional. The TPU node(s) being requested.
    +     * 
    + * + * + * repeated .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec node_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getNodeSpecOrBuilderList() { + return nodeSpec_; + } + /** + * + * + *
    +     * Optional. The TPU node(s) being requested.
    +     * 
    + * + * + * repeated .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec node_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getNodeSpecCount() { + return nodeSpec_.size(); + } + /** + * + * + *
    +     * Optional. The TPU node(s) being requested.
    +     * 
    + * + * + * repeated .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec node_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec getNodeSpec(int index) { + return nodeSpec_.get(index); + } + /** + * + * + *
    +     * Optional. The TPU node(s) being requested.
    +     * 
    + * + * + * repeated .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec node_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpecOrBuilder getNodeSpecOrBuilder( + int index) { + return nodeSpec_.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 < nodeSpec_.size(); i++) { + output.writeMessage(1, nodeSpec_.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 < nodeSpec_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, nodeSpec_.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.tpu.v2.QueuedResource.Tpu)) { + return super.equals(obj); + } + com.google.cloud.tpu.v2.QueuedResource.Tpu other = + (com.google.cloud.tpu.v2.QueuedResource.Tpu) obj; + + if (!getNodeSpecList().equals(other.getNodeSpecList())) return false; + if (!getUnknownFields().equals(other.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 (getNodeSpecCount() > 0) { + hash = (37 * hash) + NODE_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getNodeSpecList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.tpu.v2.QueuedResource.Tpu parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Tpu parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Tpu parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Tpu parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Tpu parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Tpu parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Tpu parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Tpu parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Tpu parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Tpu parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Tpu parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Tpu parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.tpu.v2.QueuedResource.Tpu prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 of the TPU resource(s) being requested.
    +     * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.QueuedResource.Tpu} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.QueuedResource.Tpu) + com.google.cloud.tpu.v2.QueuedResource.TpuOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResource_Tpu_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResource_Tpu_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.QueuedResource.Tpu.class, + com.google.cloud.tpu.v2.QueuedResource.Tpu.Builder.class); + } + + // Construct using com.google.cloud.tpu.v2.QueuedResource.Tpu.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (nodeSpecBuilder_ == null) { + nodeSpec_ = java.util.Collections.emptyList(); + } else { + nodeSpec_ = null; + nodeSpecBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResource_Tpu_descriptor; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.Tpu getDefaultInstanceForType() { + return com.google.cloud.tpu.v2.QueuedResource.Tpu.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.Tpu build() { + com.google.cloud.tpu.v2.QueuedResource.Tpu result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.Tpu buildPartial() { + com.google.cloud.tpu.v2.QueuedResource.Tpu result = + new com.google.cloud.tpu.v2.QueuedResource.Tpu(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.tpu.v2.QueuedResource.Tpu result) { + if (nodeSpecBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + nodeSpec_ = java.util.Collections.unmodifiableList(nodeSpec_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.nodeSpec_ = nodeSpec_; + } else { + result.nodeSpec_ = nodeSpecBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.tpu.v2.QueuedResource.Tpu 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.tpu.v2.QueuedResource.Tpu) { + return mergeFrom((com.google.cloud.tpu.v2.QueuedResource.Tpu) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.tpu.v2.QueuedResource.Tpu other) { + if (other == com.google.cloud.tpu.v2.QueuedResource.Tpu.getDefaultInstance()) return this; + if (nodeSpecBuilder_ == null) { + if (!other.nodeSpec_.isEmpty()) { + if (nodeSpec_.isEmpty()) { + nodeSpec_ = other.nodeSpec_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNodeSpecIsMutable(); + nodeSpec_.addAll(other.nodeSpec_); + } + onChanged(); + } + } else { + if (!other.nodeSpec_.isEmpty()) { + if (nodeSpecBuilder_.isEmpty()) { + nodeSpecBuilder_.dispose(); + nodeSpecBuilder_ = null; + nodeSpec_ = other.nodeSpec_; + bitField0_ = (bitField0_ & ~0x00000001); + nodeSpecBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNodeSpecFieldBuilder() + : null; + } else { + nodeSpecBuilder_.addAllMessages(other.nodeSpec_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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.tpu.v2.QueuedResource.Tpu.NodeSpec m = + input.readMessage( + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.parser(), + extensionRegistry); + if (nodeSpecBuilder_ == null) { + ensureNodeSpecIsMutable(); + nodeSpec_.add(m); + } else { + nodeSpecBuilder_.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 nodeSpec_ = + java.util.Collections.emptyList(); + + private void ensureNodeSpecIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + nodeSpec_ = + new java.util.ArrayList( + nodeSpec_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec, + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.Builder, + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpecOrBuilder> + nodeSpecBuilder_; + + /** + * + * + *
    +       * Optional. The TPU node(s) being requested.
    +       * 
    + * + * + * repeated .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec node_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getNodeSpecList() { + if (nodeSpecBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodeSpec_); + } else { + return nodeSpecBuilder_.getMessageList(); + } + } + /** + * + * + *
    +       * Optional. The TPU node(s) being requested.
    +       * 
    + * + * + * repeated .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec node_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getNodeSpecCount() { + if (nodeSpecBuilder_ == null) { + return nodeSpec_.size(); + } else { + return nodeSpecBuilder_.getCount(); + } + } + /** + * + * + *
    +       * Optional. The TPU node(s) being requested.
    +       * 
    + * + * + * repeated .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec node_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec getNodeSpec(int index) { + if (nodeSpecBuilder_ == null) { + return nodeSpec_.get(index); + } else { + return nodeSpecBuilder_.getMessage(index); + } + } + /** + * + * + *
    +       * Optional. The TPU node(s) being requested.
    +       * 
    + * + * + * repeated .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec node_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNodeSpec( + int index, com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec value) { + if (nodeSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeSpecIsMutable(); + nodeSpec_.set(index, value); + onChanged(); + } else { + nodeSpecBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
    +       * Optional. The TPU node(s) being requested.
    +       * 
    + * + * + * repeated .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec node_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNodeSpec( + int index, com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.Builder builderForValue) { + if (nodeSpecBuilder_ == null) { + ensureNodeSpecIsMutable(); + nodeSpec_.set(index, builderForValue.build()); + onChanged(); + } else { + nodeSpecBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +       * Optional. The TPU node(s) being requested.
    +       * 
    + * + * + * repeated .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec node_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addNodeSpec(com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec value) { + if (nodeSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeSpecIsMutable(); + nodeSpec_.add(value); + onChanged(); + } else { + nodeSpecBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
    +       * Optional. The TPU node(s) being requested.
    +       * 
    + * + * + * repeated .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec node_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addNodeSpec( + int index, com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec value) { + if (nodeSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeSpecIsMutable(); + nodeSpec_.add(index, value); + onChanged(); + } else { + nodeSpecBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
    +       * Optional. The TPU node(s) being requested.
    +       * 
    + * + * + * repeated .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec node_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addNodeSpec( + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.Builder builderForValue) { + if (nodeSpecBuilder_ == null) { + ensureNodeSpecIsMutable(); + nodeSpec_.add(builderForValue.build()); + onChanged(); + } else { + nodeSpecBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
    +       * Optional. The TPU node(s) being requested.
    +       * 
    + * + * + * repeated .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec node_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addNodeSpec( + int index, com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.Builder builderForValue) { + if (nodeSpecBuilder_ == null) { + ensureNodeSpecIsMutable(); + nodeSpec_.add(index, builderForValue.build()); + onChanged(); + } else { + nodeSpecBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +       * Optional. The TPU node(s) being requested.
    +       * 
    + * + * + * repeated .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec node_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllNodeSpec( + java.lang.Iterable + values) { + if (nodeSpecBuilder_ == null) { + ensureNodeSpecIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodeSpec_); + onChanged(); + } else { + nodeSpecBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
    +       * Optional. The TPU node(s) being requested.
    +       * 
    + * + * + * repeated .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec node_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearNodeSpec() { + if (nodeSpecBuilder_ == null) { + nodeSpec_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + nodeSpecBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +       * Optional. The TPU node(s) being requested.
    +       * 
    + * + * + * repeated .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec node_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeNodeSpec(int index) { + if (nodeSpecBuilder_ == null) { + ensureNodeSpecIsMutable(); + nodeSpec_.remove(index); + onChanged(); + } else { + nodeSpecBuilder_.remove(index); + } + return this; + } + /** + * + * + *
    +       * Optional. The TPU node(s) being requested.
    +       * 
    + * + * + * repeated .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec node_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.Builder getNodeSpecBuilder( + int index) { + return getNodeSpecFieldBuilder().getBuilder(index); + } + /** + * + * + *
    +       * Optional. The TPU node(s) being requested.
    +       * 
    + * + * + * repeated .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec node_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpecOrBuilder getNodeSpecOrBuilder( + int index) { + if (nodeSpecBuilder_ == null) { + return nodeSpec_.get(index); + } else { + return nodeSpecBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
    +       * Optional. The TPU node(s) being requested.
    +       * 
    + * + * + * repeated .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec node_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getNodeSpecOrBuilderList() { + if (nodeSpecBuilder_ != null) { + return nodeSpecBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nodeSpec_); + } + } + /** + * + * + *
    +       * Optional. The TPU node(s) being requested.
    +       * 
    + * + * + * repeated .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec node_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.Builder addNodeSpecBuilder() { + return getNodeSpecFieldBuilder() + .addBuilder(com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.getDefaultInstance()); + } + /** + * + * + *
    +       * Optional. The TPU node(s) being requested.
    +       * 
    + * + * + * repeated .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec node_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.Builder addNodeSpecBuilder( + int index) { + return getNodeSpecFieldBuilder() + .addBuilder( + index, com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.getDefaultInstance()); + } + /** + * + * + *
    +       * Optional. The TPU node(s) being requested.
    +       * 
    + * + * + * repeated .google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec node_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getNodeSpecBuilderList() { + return getNodeSpecFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec, + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.Builder, + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpecOrBuilder> + getNodeSpecFieldBuilder() { + if (nodeSpecBuilder_ == null) { + nodeSpecBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec, + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpec.Builder, + com.google.cloud.tpu.v2.QueuedResource.Tpu.NodeSpecOrBuilder>( + nodeSpec_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + nodeSpec_ = null; + } + return nodeSpecBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2.QueuedResource.Tpu) + } + + // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.QueuedResource.Tpu) + private static final com.google.cloud.tpu.v2.QueuedResource.Tpu DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.QueuedResource.Tpu(); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Tpu getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Tpu parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.Tpu getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SpotOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.QueuedResource.Spot) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
    +   * Spot tier definition.
    +   * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.QueuedResource.Spot} + */ + public static final class Spot extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.QueuedResource.Spot) + SpotOrBuilder { + private static final long serialVersionUID = 0L; + // Use Spot.newBuilder() to construct. + private Spot(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Spot() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Spot(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResource_Spot_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResource_Spot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.QueuedResource.Spot.class, + com.google.cloud.tpu.v2.QueuedResource.Spot.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.tpu.v2.QueuedResource.Spot)) { + return super.equals(obj); + } + com.google.cloud.tpu.v2.QueuedResource.Spot other = + (com.google.cloud.tpu.v2.QueuedResource.Spot) 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.tpu.v2.QueuedResource.Spot parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Spot parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Spot parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Spot parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Spot parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Spot parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Spot parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Spot parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Spot parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Spot parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Spot parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Spot parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.tpu.v2.QueuedResource.Spot prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +     * Spot tier definition.
    +     * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.QueuedResource.Spot} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.QueuedResource.Spot) + com.google.cloud.tpu.v2.QueuedResource.SpotOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResource_Spot_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResource_Spot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.QueuedResource.Spot.class, + com.google.cloud.tpu.v2.QueuedResource.Spot.Builder.class); + } + + // Construct using com.google.cloud.tpu.v2.QueuedResource.Spot.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.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResource_Spot_descriptor; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.Spot getDefaultInstanceForType() { + return com.google.cloud.tpu.v2.QueuedResource.Spot.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.Spot build() { + com.google.cloud.tpu.v2.QueuedResource.Spot result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.Spot buildPartial() { + com.google.cloud.tpu.v2.QueuedResource.Spot result = + new com.google.cloud.tpu.v2.QueuedResource.Spot(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.tpu.v2.QueuedResource.Spot) { + return mergeFrom((com.google.cloud.tpu.v2.QueuedResource.Spot) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.tpu.v2.QueuedResource.Spot other) { + if (other == com.google.cloud.tpu.v2.QueuedResource.Spot.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.tpu.v2.QueuedResource.Spot) + } + + // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.QueuedResource.Spot) + private static final com.google.cloud.tpu.v2.QueuedResource.Spot DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.QueuedResource.Spot(); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Spot getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Spot parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.Spot getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface GuaranteedOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.QueuedResource.Guaranteed) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Optional. Defines the minimum duration of the guarantee. If specified,
    +     * the requested resources will only be provisioned if they can be
    +     * allocated for at least the given duration.
    +     * 
    + * + * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the minDuration field is set. + */ + boolean hasMinDuration(); + /** + * + * + *
    +     * Optional. Defines the minimum duration of the guarantee. If specified,
    +     * the requested resources will only be provisioned if they can be
    +     * allocated for at least the given duration.
    +     * 
    + * + * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The minDuration. + */ + com.google.protobuf.Duration getMinDuration(); + /** + * + * + *
    +     * Optional. Defines the minimum duration of the guarantee. If specified,
    +     * the requested resources will only be provisioned if they can be
    +     * allocated for at least the given duration.
    +     * 
    + * + * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.DurationOrBuilder getMinDurationOrBuilder(); + } + /** + * + * + *
    +   * Guaranteed tier definition.
    +   * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.QueuedResource.Guaranteed} + */ + public static final class Guaranteed extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.QueuedResource.Guaranteed) + GuaranteedOrBuilder { + private static final long serialVersionUID = 0L; + // Use Guaranteed.newBuilder() to construct. + private Guaranteed(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Guaranteed() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Guaranteed(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResource_Guaranteed_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResource_Guaranteed_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.QueuedResource.Guaranteed.class, + com.google.cloud.tpu.v2.QueuedResource.Guaranteed.Builder.class); + } + + private int bitField0_; + public static final int MIN_DURATION_FIELD_NUMBER = 1; + private com.google.protobuf.Duration minDuration_; + /** + * + * + *
    +     * Optional. Defines the minimum duration of the guarantee. If specified,
    +     * the requested resources will only be provisioned if they can be
    +     * allocated for at least the given duration.
    +     * 
    + * + * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the minDuration field is set. + */ + @java.lang.Override + public boolean hasMinDuration() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +     * Optional. Defines the minimum duration of the guarantee. If specified,
    +     * the requested resources will only be provisioned if they can be
    +     * allocated for at least the given duration.
    +     * 
    + * + * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The minDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getMinDuration() { + return minDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minDuration_; + } + /** + * + * + *
    +     * Optional. Defines the minimum duration of the guarantee. If specified,
    +     * the requested resources will only be provisioned if they can be
    +     * allocated for at least the given duration.
    +     * 
    + * + * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getMinDurationOrBuilder() { + return minDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minDuration_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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, getMinDuration()); + } + 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, getMinDuration()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.tpu.v2.QueuedResource.Guaranteed)) { + return super.equals(obj); + } + com.google.cloud.tpu.v2.QueuedResource.Guaranteed other = + (com.google.cloud.tpu.v2.QueuedResource.Guaranteed) obj; + + if (hasMinDuration() != other.hasMinDuration()) return false; + if (hasMinDuration()) { + if (!getMinDuration().equals(other.getMinDuration())) return false; + } + if (!getUnknownFields().equals(other.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 (hasMinDuration()) { + hash = (37 * hash) + MIN_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getMinDuration().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.tpu.v2.QueuedResource.Guaranteed parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Guaranteed parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Guaranteed parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Guaranteed parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Guaranteed parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Guaranteed parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Guaranteed parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Guaranteed parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Guaranteed parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Guaranteed parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Guaranteed parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Guaranteed parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.tpu.v2.QueuedResource.Guaranteed prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +     * Guaranteed tier definition.
    +     * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.QueuedResource.Guaranteed} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.QueuedResource.Guaranteed) + com.google.cloud.tpu.v2.QueuedResource.GuaranteedOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResource_Guaranteed_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResource_Guaranteed_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.QueuedResource.Guaranteed.class, + com.google.cloud.tpu.v2.QueuedResource.Guaranteed.Builder.class); + } + + // Construct using com.google.cloud.tpu.v2.QueuedResource.Guaranteed.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMinDurationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + minDuration_ = null; + if (minDurationBuilder_ != null) { + minDurationBuilder_.dispose(); + minDurationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResource_Guaranteed_descriptor; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.Guaranteed getDefaultInstanceForType() { + return com.google.cloud.tpu.v2.QueuedResource.Guaranteed.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.Guaranteed build() { + com.google.cloud.tpu.v2.QueuedResource.Guaranteed result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.Guaranteed buildPartial() { + com.google.cloud.tpu.v2.QueuedResource.Guaranteed result = + new com.google.cloud.tpu.v2.QueuedResource.Guaranteed(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.tpu.v2.QueuedResource.Guaranteed result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.minDuration_ = + minDurationBuilder_ == null ? minDuration_ : minDurationBuilder_.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.tpu.v2.QueuedResource.Guaranteed) { + return mergeFrom((com.google.cloud.tpu.v2.QueuedResource.Guaranteed) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.tpu.v2.QueuedResource.Guaranteed other) { + if (other == com.google.cloud.tpu.v2.QueuedResource.Guaranteed.getDefaultInstance()) + return this; + if (other.hasMinDuration()) { + mergeMinDuration(other.getMinDuration()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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(getMinDurationFieldBuilder().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 minDuration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + minDurationBuilder_; + /** + * + * + *
    +       * Optional. Defines the minimum duration of the guarantee. If specified,
    +       * the requested resources will only be provisioned if they can be
    +       * allocated for at least the given duration.
    +       * 
    + * + * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the minDuration field is set. + */ + public boolean hasMinDuration() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +       * Optional. Defines the minimum duration of the guarantee. If specified,
    +       * the requested resources will only be provisioned if they can be
    +       * allocated for at least the given duration.
    +       * 
    + * + * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The minDuration. + */ + public com.google.protobuf.Duration getMinDuration() { + if (minDurationBuilder_ == null) { + return minDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minDuration_; + } else { + return minDurationBuilder_.getMessage(); + } + } + /** + * + * + *
    +       * Optional. Defines the minimum duration of the guarantee. If specified,
    +       * the requested resources will only be provisioned if they can be
    +       * allocated for at least the given duration.
    +       * 
    + * + * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMinDuration(com.google.protobuf.Duration value) { + if (minDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + minDuration_ = value; + } else { + minDurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. Defines the minimum duration of the guarantee. If specified,
    +       * the requested resources will only be provisioned if they can be
    +       * allocated for at least the given duration.
    +       * 
    + * + * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMinDuration(com.google.protobuf.Duration.Builder builderForValue) { + if (minDurationBuilder_ == null) { + minDuration_ = builderForValue.build(); + } else { + minDurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. Defines the minimum duration of the guarantee. If specified,
    +       * the requested resources will only be provisioned if they can be
    +       * allocated for at least the given duration.
    +       * 
    + * + * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMinDuration(com.google.protobuf.Duration value) { + if (minDurationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && minDuration_ != null + && minDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getMinDurationBuilder().mergeFrom(value); + } else { + minDuration_ = value; + } + } else { + minDurationBuilder_.mergeFrom(value); + } + if (minDuration_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
    +       * Optional. Defines the minimum duration of the guarantee. If specified,
    +       * the requested resources will only be provisioned if they can be
    +       * allocated for at least the given duration.
    +       * 
    + * + * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMinDuration() { + bitField0_ = (bitField0_ & ~0x00000001); + minDuration_ = null; + if (minDurationBuilder_ != null) { + minDurationBuilder_.dispose(); + minDurationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. Defines the minimum duration of the guarantee. If specified,
    +       * the requested resources will only be provisioned if they can be
    +       * allocated for at least the given duration.
    +       * 
    + * + * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Duration.Builder getMinDurationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMinDurationFieldBuilder().getBuilder(); + } + /** + * + * + *
    +       * Optional. Defines the minimum duration of the guarantee. If specified,
    +       * the requested resources will only be provisioned if they can be
    +       * allocated for at least the given duration.
    +       * 
    + * + * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.DurationOrBuilder getMinDurationOrBuilder() { + if (minDurationBuilder_ != null) { + return minDurationBuilder_.getMessageOrBuilder(); + } else { + return minDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minDuration_; + } + } + /** + * + * + *
    +       * Optional. Defines the minimum duration of the guarantee. If specified,
    +       * the requested resources will only be provisioned if they can be
    +       * allocated for at least the given duration.
    +       * 
    + * + * .google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getMinDurationFieldBuilder() { + if (minDurationBuilder_ == null) { + minDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMinDuration(), getParentForChildren(), isClean()); + minDuration_ = null; + } + return minDurationBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2.QueuedResource.Guaranteed) + } + + // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.QueuedResource.Guaranteed) + private static final com.google.cloud.tpu.v2.QueuedResource.Guaranteed DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.QueuedResource.Guaranteed(); + } + + public static com.google.cloud.tpu.v2.QueuedResource.Guaranteed getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Guaranteed parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.Guaranteed getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface QueueingPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.QueuedResource.QueueingPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Optional. A relative time after which resources should not be created.
    +     * If the request cannot be fulfilled by this time the request will be
    +     * failed.
    +     * 
    + * + * + * .google.protobuf.Duration valid_until_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the validUntilDuration field is set. + */ + boolean hasValidUntilDuration(); + /** + * + * + *
    +     * Optional. A relative time after which resources should not be created.
    +     * If the request cannot be fulfilled by this time the request will be
    +     * failed.
    +     * 
    + * + * + * .google.protobuf.Duration valid_until_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The validUntilDuration. + */ + com.google.protobuf.Duration getValidUntilDuration(); + /** + * + * + *
    +     * Optional. A relative time after which resources should not be created.
    +     * If the request cannot be fulfilled by this time the request will be
    +     * failed.
    +     * 
    + * + * + * .google.protobuf.Duration valid_until_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.DurationOrBuilder getValidUntilDurationOrBuilder(); + + /** + * + * + *
    +     * Optional. An absolute time after which resources should not be created.
    +     * If the request cannot be fulfilled by this time the request will be
    +     * failed.
    +     * 
    + * + * + * .google.protobuf.Timestamp valid_until_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the validUntilTime field is set. + */ + boolean hasValidUntilTime(); + /** + * + * + *
    +     * Optional. An absolute time after which resources should not be created.
    +     * If the request cannot be fulfilled by this time the request will be
    +     * failed.
    +     * 
    + * + * + * .google.protobuf.Timestamp valid_until_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The validUntilTime. + */ + com.google.protobuf.Timestamp getValidUntilTime(); + /** + * + * + *
    +     * Optional. An absolute time after which resources should not be created.
    +     * If the request cannot be fulfilled by this time the request will be
    +     * failed.
    +     * 
    + * + * + * .google.protobuf.Timestamp valid_until_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getValidUntilTimeOrBuilder(); + + /** + * + * + *
    +     * Optional. A relative time after which resources may be created.
    +     * 
    + * + * + * .google.protobuf.Duration valid_after_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the validAfterDuration field is set. + */ + boolean hasValidAfterDuration(); + /** + * + * + *
    +     * Optional. A relative time after which resources may be created.
    +     * 
    + * + * + * .google.protobuf.Duration valid_after_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The validAfterDuration. + */ + com.google.protobuf.Duration getValidAfterDuration(); + /** + * + * + *
    +     * Optional. A relative time after which resources may be created.
    +     * 
    + * + * + * .google.protobuf.Duration valid_after_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.DurationOrBuilder getValidAfterDurationOrBuilder(); + + /** + * + * + *
    +     * Optional. An absolute time after which resources may be created.
    +     * 
    + * + * + * .google.protobuf.Timestamp valid_after_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the validAfterTime field is set. + */ + boolean hasValidAfterTime(); + /** + * + * + *
    +     * Optional. An absolute time after which resources may be created.
    +     * 
    + * + * + * .google.protobuf.Timestamp valid_after_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The validAfterTime. + */ + com.google.protobuf.Timestamp getValidAfterTime(); + /** + * + * + *
    +     * Optional. An absolute time after which resources may be created.
    +     * 
    + * + * + * .google.protobuf.Timestamp valid_after_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getValidAfterTimeOrBuilder(); + + /** + * + * + *
    +     * Optional. An absolute time interval within which resources may be
    +     * created.
    +     * 
    + * + * .google.type.Interval valid_interval = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the validInterval field is set. + */ + boolean hasValidInterval(); + /** + * + * + *
    +     * Optional. An absolute time interval within which resources may be
    +     * created.
    +     * 
    + * + * .google.type.Interval valid_interval = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The validInterval. + */ + com.google.type.Interval getValidInterval(); + /** + * + * + *
    +     * Optional. An absolute time interval within which resources may be
    +     * created.
    +     * 
    + * + * .google.type.Interval valid_interval = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.type.IntervalOrBuilder getValidIntervalOrBuilder(); + + com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy.StartTimingConstraintsCase + getStartTimingConstraintsCase(); + } + /** + * + * + *
    +   * Defines the policy of the QueuedRequest.
    +   * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.QueuedResource.QueueingPolicy} + */ + public static final class QueueingPolicy extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.QueuedResource.QueueingPolicy) + QueueingPolicyOrBuilder { + private static final long serialVersionUID = 0L; + // Use QueueingPolicy.newBuilder() to construct. + private QueueingPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private QueueingPolicy() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new QueueingPolicy(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResource_QueueingPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResource_QueueingPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy.class, + com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy.Builder.class); + } + + private int startTimingConstraintsCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object startTimingConstraints_; + + public enum StartTimingConstraintsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + VALID_UNTIL_DURATION(1), + VALID_UNTIL_TIME(2), + VALID_AFTER_DURATION(3), + VALID_AFTER_TIME(4), + VALID_INTERVAL(5), + STARTTIMINGCONSTRAINTS_NOT_SET(0); + private final int value; + + private StartTimingConstraintsCase(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 StartTimingConstraintsCase valueOf(int value) { + return forNumber(value); + } + + public static StartTimingConstraintsCase forNumber(int value) { + switch (value) { + case 1: + return VALID_UNTIL_DURATION; + case 2: + return VALID_UNTIL_TIME; + case 3: + return VALID_AFTER_DURATION; + case 4: + return VALID_AFTER_TIME; + case 5: + return VALID_INTERVAL; + case 0: + return STARTTIMINGCONSTRAINTS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public StartTimingConstraintsCase getStartTimingConstraintsCase() { + return StartTimingConstraintsCase.forNumber(startTimingConstraintsCase_); + } + + public static final int VALID_UNTIL_DURATION_FIELD_NUMBER = 1; + /** + * + * + *
    +     * Optional. A relative time after which resources should not be created.
    +     * If the request cannot be fulfilled by this time the request will be
    +     * failed.
    +     * 
    + * + * + * .google.protobuf.Duration valid_until_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the validUntilDuration field is set. + */ + @java.lang.Override + public boolean hasValidUntilDuration() { + return startTimingConstraintsCase_ == 1; + } + /** + * + * + *
    +     * Optional. A relative time after which resources should not be created.
    +     * If the request cannot be fulfilled by this time the request will be
    +     * failed.
    +     * 
    + * + * + * .google.protobuf.Duration valid_until_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The validUntilDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getValidUntilDuration() { + if (startTimingConstraintsCase_ == 1) { + return (com.google.protobuf.Duration) startTimingConstraints_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + /** + * + * + *
    +     * Optional. A relative time after which resources should not be created.
    +     * If the request cannot be fulfilled by this time the request will be
    +     * failed.
    +     * 
    + * + * + * .google.protobuf.Duration valid_until_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getValidUntilDurationOrBuilder() { + if (startTimingConstraintsCase_ == 1) { + return (com.google.protobuf.Duration) startTimingConstraints_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + + public static final int VALID_UNTIL_TIME_FIELD_NUMBER = 2; + /** + * + * + *
    +     * Optional. An absolute time after which resources should not be created.
    +     * If the request cannot be fulfilled by this time the request will be
    +     * failed.
    +     * 
    + * + * + * .google.protobuf.Timestamp valid_until_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the validUntilTime field is set. + */ + @java.lang.Override + public boolean hasValidUntilTime() { + return startTimingConstraintsCase_ == 2; + } + /** + * + * + *
    +     * Optional. An absolute time after which resources should not be created.
    +     * If the request cannot be fulfilled by this time the request will be
    +     * failed.
    +     * 
    + * + * + * .google.protobuf.Timestamp valid_until_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The validUntilTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getValidUntilTime() { + if (startTimingConstraintsCase_ == 2) { + return (com.google.protobuf.Timestamp) startTimingConstraints_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + /** + * + * + *
    +     * Optional. An absolute time after which resources should not be created.
    +     * If the request cannot be fulfilled by this time the request will be
    +     * failed.
    +     * 
    + * + * + * .google.protobuf.Timestamp valid_until_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getValidUntilTimeOrBuilder() { + if (startTimingConstraintsCase_ == 2) { + return (com.google.protobuf.Timestamp) startTimingConstraints_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + + public static final int VALID_AFTER_DURATION_FIELD_NUMBER = 3; + /** + * + * + *
    +     * Optional. A relative time after which resources may be created.
    +     * 
    + * + * + * .google.protobuf.Duration valid_after_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the validAfterDuration field is set. + */ + @java.lang.Override + public boolean hasValidAfterDuration() { + return startTimingConstraintsCase_ == 3; + } + /** + * + * + *
    +     * Optional. A relative time after which resources may be created.
    +     * 
    + * + * + * .google.protobuf.Duration valid_after_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The validAfterDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getValidAfterDuration() { + if (startTimingConstraintsCase_ == 3) { + return (com.google.protobuf.Duration) startTimingConstraints_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + /** + * + * + *
    +     * Optional. A relative time after which resources may be created.
    +     * 
    + * + * + * .google.protobuf.Duration valid_after_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getValidAfterDurationOrBuilder() { + if (startTimingConstraintsCase_ == 3) { + return (com.google.protobuf.Duration) startTimingConstraints_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + + public static final int VALID_AFTER_TIME_FIELD_NUMBER = 4; + /** + * + * + *
    +     * Optional. An absolute time after which resources may be created.
    +     * 
    + * + * + * .google.protobuf.Timestamp valid_after_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the validAfterTime field is set. + */ + @java.lang.Override + public boolean hasValidAfterTime() { + return startTimingConstraintsCase_ == 4; + } + /** + * + * + *
    +     * Optional. An absolute time after which resources may be created.
    +     * 
    + * + * + * .google.protobuf.Timestamp valid_after_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The validAfterTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getValidAfterTime() { + if (startTimingConstraintsCase_ == 4) { + return (com.google.protobuf.Timestamp) startTimingConstraints_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + /** + * + * + *
    +     * Optional. An absolute time after which resources may be created.
    +     * 
    + * + * + * .google.protobuf.Timestamp valid_after_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getValidAfterTimeOrBuilder() { + if (startTimingConstraintsCase_ == 4) { + return (com.google.protobuf.Timestamp) startTimingConstraints_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + + public static final int VALID_INTERVAL_FIELD_NUMBER = 5; + /** + * + * + *
    +     * Optional. An absolute time interval within which resources may be
    +     * created.
    +     * 
    + * + * .google.type.Interval valid_interval = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the validInterval field is set. + */ + @java.lang.Override + public boolean hasValidInterval() { + return startTimingConstraintsCase_ == 5; + } + /** + * + * + *
    +     * Optional. An absolute time interval within which resources may be
    +     * created.
    +     * 
    + * + * .google.type.Interval valid_interval = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The validInterval. + */ + @java.lang.Override + public com.google.type.Interval getValidInterval() { + if (startTimingConstraintsCase_ == 5) { + return (com.google.type.Interval) startTimingConstraints_; + } + return com.google.type.Interval.getDefaultInstance(); + } + /** + * + * + *
    +     * Optional. An absolute time interval within which resources may be
    +     * created.
    +     * 
    + * + * .google.type.Interval valid_interval = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.type.IntervalOrBuilder getValidIntervalOrBuilder() { + if (startTimingConstraintsCase_ == 5) { + return (com.google.type.Interval) startTimingConstraints_; + } + return com.google.type.Interval.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 (startTimingConstraintsCase_ == 1) { + output.writeMessage(1, (com.google.protobuf.Duration) startTimingConstraints_); + } + if (startTimingConstraintsCase_ == 2) { + output.writeMessage(2, (com.google.protobuf.Timestamp) startTimingConstraints_); + } + if (startTimingConstraintsCase_ == 3) { + output.writeMessage(3, (com.google.protobuf.Duration) startTimingConstraints_); + } + if (startTimingConstraintsCase_ == 4) { + output.writeMessage(4, (com.google.protobuf.Timestamp) startTimingConstraints_); + } + if (startTimingConstraintsCase_ == 5) { + output.writeMessage(5, (com.google.type.Interval) startTimingConstraints_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (startTimingConstraintsCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.protobuf.Duration) startTimingConstraints_); + } + if (startTimingConstraintsCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.protobuf.Timestamp) startTimingConstraints_); + } + if (startTimingConstraintsCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.protobuf.Duration) startTimingConstraints_); + } + if (startTimingConstraintsCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.protobuf.Timestamp) startTimingConstraints_); + } + if (startTimingConstraintsCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.type.Interval) startTimingConstraints_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy)) { + return super.equals(obj); + } + com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy other = + (com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy) obj; + + if (!getStartTimingConstraintsCase().equals(other.getStartTimingConstraintsCase())) + return false; + switch (startTimingConstraintsCase_) { + case 1: + if (!getValidUntilDuration().equals(other.getValidUntilDuration())) return false; + break; + case 2: + if (!getValidUntilTime().equals(other.getValidUntilTime())) return false; + break; + case 3: + if (!getValidAfterDuration().equals(other.getValidAfterDuration())) return false; + break; + case 4: + if (!getValidAfterTime().equals(other.getValidAfterTime())) return false; + break; + case 5: + if (!getValidInterval().equals(other.getValidInterval())) 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 (startTimingConstraintsCase_) { + case 1: + hash = (37 * hash) + VALID_UNTIL_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getValidUntilDuration().hashCode(); + break; + case 2: + hash = (37 * hash) + VALID_UNTIL_TIME_FIELD_NUMBER; + hash = (53 * hash) + getValidUntilTime().hashCode(); + break; + case 3: + hash = (37 * hash) + VALID_AFTER_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getValidAfterDuration().hashCode(); + break; + case 4: + hash = (37 * hash) + VALID_AFTER_TIME_FIELD_NUMBER; + hash = (53 * hash) + getValidAfterTime().hashCode(); + break; + case 5: + hash = (37 * hash) + VALID_INTERVAL_FIELD_NUMBER; + hash = (53 * hash) + getValidInterval().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +     * Defines the policy of the QueuedRequest.
    +     * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.QueuedResource.QueueingPolicy} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.QueuedResource.QueueingPolicy) + com.google.cloud.tpu.v2.QueuedResource.QueueingPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResource_QueueingPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResource_QueueingPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy.class, + com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy.Builder.class); + } + + // Construct using com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (validUntilDurationBuilder_ != null) { + validUntilDurationBuilder_.clear(); + } + if (validUntilTimeBuilder_ != null) { + validUntilTimeBuilder_.clear(); + } + if (validAfterDurationBuilder_ != null) { + validAfterDurationBuilder_.clear(); + } + if (validAfterTimeBuilder_ != null) { + validAfterTimeBuilder_.clear(); + } + if (validIntervalBuilder_ != null) { + validIntervalBuilder_.clear(); + } + startTimingConstraintsCase_ = 0; + startTimingConstraints_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResource_QueueingPolicy_descriptor; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy getDefaultInstanceForType() { + return com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy build() { + com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy buildPartial() { + com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy result = + new com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy result) { + result.startTimingConstraintsCase_ = startTimingConstraintsCase_; + result.startTimingConstraints_ = this.startTimingConstraints_; + if (startTimingConstraintsCase_ == 1 && validUntilDurationBuilder_ != null) { + result.startTimingConstraints_ = validUntilDurationBuilder_.build(); + } + if (startTimingConstraintsCase_ == 2 && validUntilTimeBuilder_ != null) { + result.startTimingConstraints_ = validUntilTimeBuilder_.build(); + } + if (startTimingConstraintsCase_ == 3 && validAfterDurationBuilder_ != null) { + result.startTimingConstraints_ = validAfterDurationBuilder_.build(); + } + if (startTimingConstraintsCase_ == 4 && validAfterTimeBuilder_ != null) { + result.startTimingConstraints_ = validAfterTimeBuilder_.build(); + } + if (startTimingConstraintsCase_ == 5 && validIntervalBuilder_ != null) { + result.startTimingConstraints_ = validIntervalBuilder_.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.tpu.v2.QueuedResource.QueueingPolicy) { + return mergeFrom((com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy other) { + if (other == com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy.getDefaultInstance()) + return this; + switch (other.getStartTimingConstraintsCase()) { + case VALID_UNTIL_DURATION: + { + mergeValidUntilDuration(other.getValidUntilDuration()); + break; + } + case VALID_UNTIL_TIME: + { + mergeValidUntilTime(other.getValidUntilTime()); + break; + } + case VALID_AFTER_DURATION: + { + mergeValidAfterDuration(other.getValidAfterDuration()); + break; + } + case VALID_AFTER_TIME: + { + mergeValidAfterTime(other.getValidAfterTime()); + break; + } + case VALID_INTERVAL: + { + mergeValidInterval(other.getValidInterval()); + break; + } + case STARTTIMINGCONSTRAINTS_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( + getValidUntilDurationFieldBuilder().getBuilder(), extensionRegistry); + startTimingConstraintsCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + getValidUntilTimeFieldBuilder().getBuilder(), extensionRegistry); + startTimingConstraintsCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + getValidAfterDurationFieldBuilder().getBuilder(), extensionRegistry); + startTimingConstraintsCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + getValidAfterTimeFieldBuilder().getBuilder(), extensionRegistry); + startTimingConstraintsCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getValidIntervalFieldBuilder().getBuilder(), extensionRegistry); + startTimingConstraintsCase_ = 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 startTimingConstraintsCase_ = 0; + private java.lang.Object startTimingConstraints_; + + public StartTimingConstraintsCase getStartTimingConstraintsCase() { + return StartTimingConstraintsCase.forNumber(startTimingConstraintsCase_); + } + + public Builder clearStartTimingConstraints() { + startTimingConstraintsCase_ = 0; + startTimingConstraints_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + validUntilDurationBuilder_; + /** + * + * + *
    +       * Optional. A relative time after which resources should not be created.
    +       * If the request cannot be fulfilled by this time the request will be
    +       * failed.
    +       * 
    + * + * + * .google.protobuf.Duration valid_until_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the validUntilDuration field is set. + */ + @java.lang.Override + public boolean hasValidUntilDuration() { + return startTimingConstraintsCase_ == 1; + } + /** + * + * + *
    +       * Optional. A relative time after which resources should not be created.
    +       * If the request cannot be fulfilled by this time the request will be
    +       * failed.
    +       * 
    + * + * + * .google.protobuf.Duration valid_until_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The validUntilDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getValidUntilDuration() { + if (validUntilDurationBuilder_ == null) { + if (startTimingConstraintsCase_ == 1) { + return (com.google.protobuf.Duration) startTimingConstraints_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } else { + if (startTimingConstraintsCase_ == 1) { + return validUntilDurationBuilder_.getMessage(); + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + } + /** + * + * + *
    +       * Optional. A relative time after which resources should not be created.
    +       * If the request cannot be fulfilled by this time the request will be
    +       * failed.
    +       * 
    + * + * + * .google.protobuf.Duration valid_until_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setValidUntilDuration(com.google.protobuf.Duration value) { + if (validUntilDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTimingConstraints_ = value; + onChanged(); + } else { + validUntilDurationBuilder_.setMessage(value); + } + startTimingConstraintsCase_ = 1; + return this; + } + /** + * + * + *
    +       * Optional. A relative time after which resources should not be created.
    +       * If the request cannot be fulfilled by this time the request will be
    +       * failed.
    +       * 
    + * + * + * .google.protobuf.Duration valid_until_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setValidUntilDuration(com.google.protobuf.Duration.Builder builderForValue) { + if (validUntilDurationBuilder_ == null) { + startTimingConstraints_ = builderForValue.build(); + onChanged(); + } else { + validUntilDurationBuilder_.setMessage(builderForValue.build()); + } + startTimingConstraintsCase_ = 1; + return this; + } + /** + * + * + *
    +       * Optional. A relative time after which resources should not be created.
    +       * If the request cannot be fulfilled by this time the request will be
    +       * failed.
    +       * 
    + * + * + * .google.protobuf.Duration valid_until_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeValidUntilDuration(com.google.protobuf.Duration value) { + if (validUntilDurationBuilder_ == null) { + if (startTimingConstraintsCase_ == 1 + && startTimingConstraints_ != com.google.protobuf.Duration.getDefaultInstance()) { + startTimingConstraints_ = + com.google.protobuf.Duration.newBuilder( + (com.google.protobuf.Duration) startTimingConstraints_) + .mergeFrom(value) + .buildPartial(); + } else { + startTimingConstraints_ = value; + } + onChanged(); + } else { + if (startTimingConstraintsCase_ == 1) { + validUntilDurationBuilder_.mergeFrom(value); + } else { + validUntilDurationBuilder_.setMessage(value); + } + } + startTimingConstraintsCase_ = 1; + return this; + } + /** + * + * + *
    +       * Optional. A relative time after which resources should not be created.
    +       * If the request cannot be fulfilled by this time the request will be
    +       * failed.
    +       * 
    + * + * + * .google.protobuf.Duration valid_until_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearValidUntilDuration() { + if (validUntilDurationBuilder_ == null) { + if (startTimingConstraintsCase_ == 1) { + startTimingConstraintsCase_ = 0; + startTimingConstraints_ = null; + onChanged(); + } + } else { + if (startTimingConstraintsCase_ == 1) { + startTimingConstraintsCase_ = 0; + startTimingConstraints_ = null; + } + validUntilDurationBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +       * Optional. A relative time after which resources should not be created.
    +       * If the request cannot be fulfilled by this time the request will be
    +       * failed.
    +       * 
    + * + * + * .google.protobuf.Duration valid_until_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Duration.Builder getValidUntilDurationBuilder() { + return getValidUntilDurationFieldBuilder().getBuilder(); + } + /** + * + * + *
    +       * Optional. A relative time after which resources should not be created.
    +       * If the request cannot be fulfilled by this time the request will be
    +       * failed.
    +       * 
    + * + * + * .google.protobuf.Duration valid_until_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getValidUntilDurationOrBuilder() { + if ((startTimingConstraintsCase_ == 1) && (validUntilDurationBuilder_ != null)) { + return validUntilDurationBuilder_.getMessageOrBuilder(); + } else { + if (startTimingConstraintsCase_ == 1) { + return (com.google.protobuf.Duration) startTimingConstraints_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + } + /** + * + * + *
    +       * Optional. A relative time after which resources should not be created.
    +       * If the request cannot be fulfilled by this time the request will be
    +       * failed.
    +       * 
    + * + * + * .google.protobuf.Duration valid_until_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getValidUntilDurationFieldBuilder() { + if (validUntilDurationBuilder_ == null) { + if (!(startTimingConstraintsCase_ == 1)) { + startTimingConstraints_ = com.google.protobuf.Duration.getDefaultInstance(); + } + validUntilDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + (com.google.protobuf.Duration) startTimingConstraints_, + getParentForChildren(), + isClean()); + startTimingConstraints_ = null; + } + startTimingConstraintsCase_ = 1; + onChanged(); + return validUntilDurationBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + validUntilTimeBuilder_; + /** + * + * + *
    +       * Optional. An absolute time after which resources should not be created.
    +       * If the request cannot be fulfilled by this time the request will be
    +       * failed.
    +       * 
    + * + * + * .google.protobuf.Timestamp valid_until_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the validUntilTime field is set. + */ + @java.lang.Override + public boolean hasValidUntilTime() { + return startTimingConstraintsCase_ == 2; + } + /** + * + * + *
    +       * Optional. An absolute time after which resources should not be created.
    +       * If the request cannot be fulfilled by this time the request will be
    +       * failed.
    +       * 
    + * + * + * .google.protobuf.Timestamp valid_until_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The validUntilTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getValidUntilTime() { + if (validUntilTimeBuilder_ == null) { + if (startTimingConstraintsCase_ == 2) { + return (com.google.protobuf.Timestamp) startTimingConstraints_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } else { + if (startTimingConstraintsCase_ == 2) { + return validUntilTimeBuilder_.getMessage(); + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + } + /** + * + * + *
    +       * Optional. An absolute time after which resources should not be created.
    +       * If the request cannot be fulfilled by this time the request will be
    +       * failed.
    +       * 
    + * + * + * .google.protobuf.Timestamp valid_until_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setValidUntilTime(com.google.protobuf.Timestamp value) { + if (validUntilTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTimingConstraints_ = value; + onChanged(); + } else { + validUntilTimeBuilder_.setMessage(value); + } + startTimingConstraintsCase_ = 2; + return this; + } + /** + * + * + *
    +       * Optional. An absolute time after which resources should not be created.
    +       * If the request cannot be fulfilled by this time the request will be
    +       * failed.
    +       * 
    + * + * + * .google.protobuf.Timestamp valid_until_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setValidUntilTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (validUntilTimeBuilder_ == null) { + startTimingConstraints_ = builderForValue.build(); + onChanged(); + } else { + validUntilTimeBuilder_.setMessage(builderForValue.build()); + } + startTimingConstraintsCase_ = 2; + return this; + } + /** + * + * + *
    +       * Optional. An absolute time after which resources should not be created.
    +       * If the request cannot be fulfilled by this time the request will be
    +       * failed.
    +       * 
    + * + * + * .google.protobuf.Timestamp valid_until_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeValidUntilTime(com.google.protobuf.Timestamp value) { + if (validUntilTimeBuilder_ == null) { + if (startTimingConstraintsCase_ == 2 + && startTimingConstraints_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + startTimingConstraints_ = + com.google.protobuf.Timestamp.newBuilder( + (com.google.protobuf.Timestamp) startTimingConstraints_) + .mergeFrom(value) + .buildPartial(); + } else { + startTimingConstraints_ = value; + } + onChanged(); + } else { + if (startTimingConstraintsCase_ == 2) { + validUntilTimeBuilder_.mergeFrom(value); + } else { + validUntilTimeBuilder_.setMessage(value); + } + } + startTimingConstraintsCase_ = 2; + return this; + } + /** + * + * + *
    +       * Optional. An absolute time after which resources should not be created.
    +       * If the request cannot be fulfilled by this time the request will be
    +       * failed.
    +       * 
    + * + * + * .google.protobuf.Timestamp valid_until_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearValidUntilTime() { + if (validUntilTimeBuilder_ == null) { + if (startTimingConstraintsCase_ == 2) { + startTimingConstraintsCase_ = 0; + startTimingConstraints_ = null; + onChanged(); + } + } else { + if (startTimingConstraintsCase_ == 2) { + startTimingConstraintsCase_ = 0; + startTimingConstraints_ = null; + } + validUntilTimeBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +       * Optional. An absolute time after which resources should not be created.
    +       * If the request cannot be fulfilled by this time the request will be
    +       * failed.
    +       * 
    + * + * + * .google.protobuf.Timestamp valid_until_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getValidUntilTimeBuilder() { + return getValidUntilTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
    +       * Optional. An absolute time after which resources should not be created.
    +       * If the request cannot be fulfilled by this time the request will be
    +       * failed.
    +       * 
    + * + * + * .google.protobuf.Timestamp valid_until_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getValidUntilTimeOrBuilder() { + if ((startTimingConstraintsCase_ == 2) && (validUntilTimeBuilder_ != null)) { + return validUntilTimeBuilder_.getMessageOrBuilder(); + } else { + if (startTimingConstraintsCase_ == 2) { + return (com.google.protobuf.Timestamp) startTimingConstraints_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + } + /** + * + * + *
    +       * Optional. An absolute time after which resources should not be created.
    +       * If the request cannot be fulfilled by this time the request will be
    +       * failed.
    +       * 
    + * + * + * .google.protobuf.Timestamp valid_until_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> + getValidUntilTimeFieldBuilder() { + if (validUntilTimeBuilder_ == null) { + if (!(startTimingConstraintsCase_ == 2)) { + startTimingConstraints_ = com.google.protobuf.Timestamp.getDefaultInstance(); + } + validUntilTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + (com.google.protobuf.Timestamp) startTimingConstraints_, + getParentForChildren(), + isClean()); + startTimingConstraints_ = null; + } + startTimingConstraintsCase_ = 2; + onChanged(); + return validUntilTimeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + validAfterDurationBuilder_; + /** + * + * + *
    +       * Optional. A relative time after which resources may be created.
    +       * 
    + * + * + * .google.protobuf.Duration valid_after_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the validAfterDuration field is set. + */ + @java.lang.Override + public boolean hasValidAfterDuration() { + return startTimingConstraintsCase_ == 3; + } + /** + * + * + *
    +       * Optional. A relative time after which resources may be created.
    +       * 
    + * + * + * .google.protobuf.Duration valid_after_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The validAfterDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getValidAfterDuration() { + if (validAfterDurationBuilder_ == null) { + if (startTimingConstraintsCase_ == 3) { + return (com.google.protobuf.Duration) startTimingConstraints_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } else { + if (startTimingConstraintsCase_ == 3) { + return validAfterDurationBuilder_.getMessage(); + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + } + /** + * + * + *
    +       * Optional. A relative time after which resources may be created.
    +       * 
    + * + * + * .google.protobuf.Duration valid_after_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setValidAfterDuration(com.google.protobuf.Duration value) { + if (validAfterDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTimingConstraints_ = value; + onChanged(); + } else { + validAfterDurationBuilder_.setMessage(value); + } + startTimingConstraintsCase_ = 3; + return this; + } + /** + * + * + *
    +       * Optional. A relative time after which resources may be created.
    +       * 
    + * + * + * .google.protobuf.Duration valid_after_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setValidAfterDuration(com.google.protobuf.Duration.Builder builderForValue) { + if (validAfterDurationBuilder_ == null) { + startTimingConstraints_ = builderForValue.build(); + onChanged(); + } else { + validAfterDurationBuilder_.setMessage(builderForValue.build()); + } + startTimingConstraintsCase_ = 3; + return this; + } + /** + * + * + *
    +       * Optional. A relative time after which resources may be created.
    +       * 
    + * + * + * .google.protobuf.Duration valid_after_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeValidAfterDuration(com.google.protobuf.Duration value) { + if (validAfterDurationBuilder_ == null) { + if (startTimingConstraintsCase_ == 3 + && startTimingConstraints_ != com.google.protobuf.Duration.getDefaultInstance()) { + startTimingConstraints_ = + com.google.protobuf.Duration.newBuilder( + (com.google.protobuf.Duration) startTimingConstraints_) + .mergeFrom(value) + .buildPartial(); + } else { + startTimingConstraints_ = value; + } + onChanged(); + } else { + if (startTimingConstraintsCase_ == 3) { + validAfterDurationBuilder_.mergeFrom(value); + } else { + validAfterDurationBuilder_.setMessage(value); + } + } + startTimingConstraintsCase_ = 3; + return this; + } + /** + * + * + *
    +       * Optional. A relative time after which resources may be created.
    +       * 
    + * + * + * .google.protobuf.Duration valid_after_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearValidAfterDuration() { + if (validAfterDurationBuilder_ == null) { + if (startTimingConstraintsCase_ == 3) { + startTimingConstraintsCase_ = 0; + startTimingConstraints_ = null; + onChanged(); + } + } else { + if (startTimingConstraintsCase_ == 3) { + startTimingConstraintsCase_ = 0; + startTimingConstraints_ = null; + } + validAfterDurationBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +       * Optional. A relative time after which resources may be created.
    +       * 
    + * + * + * .google.protobuf.Duration valid_after_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Duration.Builder getValidAfterDurationBuilder() { + return getValidAfterDurationFieldBuilder().getBuilder(); + } + /** + * + * + *
    +       * Optional. A relative time after which resources may be created.
    +       * 
    + * + * + * .google.protobuf.Duration valid_after_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getValidAfterDurationOrBuilder() { + if ((startTimingConstraintsCase_ == 3) && (validAfterDurationBuilder_ != null)) { + return validAfterDurationBuilder_.getMessageOrBuilder(); + } else { + if (startTimingConstraintsCase_ == 3) { + return (com.google.protobuf.Duration) startTimingConstraints_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + } + /** + * + * + *
    +       * Optional. A relative time after which resources may be created.
    +       * 
    + * + * + * .google.protobuf.Duration valid_after_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getValidAfterDurationFieldBuilder() { + if (validAfterDurationBuilder_ == null) { + if (!(startTimingConstraintsCase_ == 3)) { + startTimingConstraints_ = com.google.protobuf.Duration.getDefaultInstance(); + } + validAfterDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + (com.google.protobuf.Duration) startTimingConstraints_, + getParentForChildren(), + isClean()); + startTimingConstraints_ = null; + } + startTimingConstraintsCase_ = 3; + onChanged(); + return validAfterDurationBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + validAfterTimeBuilder_; + /** + * + * + *
    +       * Optional. An absolute time after which resources may be created.
    +       * 
    + * + * + * .google.protobuf.Timestamp valid_after_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the validAfterTime field is set. + */ + @java.lang.Override + public boolean hasValidAfterTime() { + return startTimingConstraintsCase_ == 4; + } + /** + * + * + *
    +       * Optional. An absolute time after which resources may be created.
    +       * 
    + * + * + * .google.protobuf.Timestamp valid_after_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The validAfterTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getValidAfterTime() { + if (validAfterTimeBuilder_ == null) { + if (startTimingConstraintsCase_ == 4) { + return (com.google.protobuf.Timestamp) startTimingConstraints_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } else { + if (startTimingConstraintsCase_ == 4) { + return validAfterTimeBuilder_.getMessage(); + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + } + /** + * + * + *
    +       * Optional. An absolute time after which resources may be created.
    +       * 
    + * + * + * .google.protobuf.Timestamp valid_after_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setValidAfterTime(com.google.protobuf.Timestamp value) { + if (validAfterTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTimingConstraints_ = value; + onChanged(); + } else { + validAfterTimeBuilder_.setMessage(value); + } + startTimingConstraintsCase_ = 4; + return this; + } + /** + * + * + *
    +       * Optional. An absolute time after which resources may be created.
    +       * 
    + * + * + * .google.protobuf.Timestamp valid_after_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setValidAfterTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (validAfterTimeBuilder_ == null) { + startTimingConstraints_ = builderForValue.build(); + onChanged(); + } else { + validAfterTimeBuilder_.setMessage(builderForValue.build()); + } + startTimingConstraintsCase_ = 4; + return this; + } + /** + * + * + *
    +       * Optional. An absolute time after which resources may be created.
    +       * 
    + * + * + * .google.protobuf.Timestamp valid_after_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeValidAfterTime(com.google.protobuf.Timestamp value) { + if (validAfterTimeBuilder_ == null) { + if (startTimingConstraintsCase_ == 4 + && startTimingConstraints_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + startTimingConstraints_ = + com.google.protobuf.Timestamp.newBuilder( + (com.google.protobuf.Timestamp) startTimingConstraints_) + .mergeFrom(value) + .buildPartial(); + } else { + startTimingConstraints_ = value; + } + onChanged(); + } else { + if (startTimingConstraintsCase_ == 4) { + validAfterTimeBuilder_.mergeFrom(value); + } else { + validAfterTimeBuilder_.setMessage(value); + } + } + startTimingConstraintsCase_ = 4; + return this; + } + /** + * + * + *
    +       * Optional. An absolute time after which resources may be created.
    +       * 
    + * + * + * .google.protobuf.Timestamp valid_after_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearValidAfterTime() { + if (validAfterTimeBuilder_ == null) { + if (startTimingConstraintsCase_ == 4) { + startTimingConstraintsCase_ = 0; + startTimingConstraints_ = null; + onChanged(); + } + } else { + if (startTimingConstraintsCase_ == 4) { + startTimingConstraintsCase_ = 0; + startTimingConstraints_ = null; + } + validAfterTimeBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +       * Optional. An absolute time after which resources may be created.
    +       * 
    + * + * + * .google.protobuf.Timestamp valid_after_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getValidAfterTimeBuilder() { + return getValidAfterTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
    +       * Optional. An absolute time after which resources may be created.
    +       * 
    + * + * + * .google.protobuf.Timestamp valid_after_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getValidAfterTimeOrBuilder() { + if ((startTimingConstraintsCase_ == 4) && (validAfterTimeBuilder_ != null)) { + return validAfterTimeBuilder_.getMessageOrBuilder(); + } else { + if (startTimingConstraintsCase_ == 4) { + return (com.google.protobuf.Timestamp) startTimingConstraints_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + } + /** + * + * + *
    +       * Optional. An absolute time after which resources may be created.
    +       * 
    + * + * + * .google.protobuf.Timestamp valid_after_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getValidAfterTimeFieldBuilder() { + if (validAfterTimeBuilder_ == null) { + if (!(startTimingConstraintsCase_ == 4)) { + startTimingConstraints_ = com.google.protobuf.Timestamp.getDefaultInstance(); + } + validAfterTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + (com.google.protobuf.Timestamp) startTimingConstraints_, + getParentForChildren(), + isClean()); + startTimingConstraints_ = null; + } + startTimingConstraintsCase_ = 4; + onChanged(); + return validAfterTimeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Interval, + com.google.type.Interval.Builder, + com.google.type.IntervalOrBuilder> + validIntervalBuilder_; + /** + * + * + *
    +       * Optional. An absolute time interval within which resources may be
    +       * created.
    +       * 
    + * + * .google.type.Interval valid_interval = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the validInterval field is set. + */ + @java.lang.Override + public boolean hasValidInterval() { + return startTimingConstraintsCase_ == 5; + } + /** + * + * + *
    +       * Optional. An absolute time interval within which resources may be
    +       * created.
    +       * 
    + * + * .google.type.Interval valid_interval = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The validInterval. + */ + @java.lang.Override + public com.google.type.Interval getValidInterval() { + if (validIntervalBuilder_ == null) { + if (startTimingConstraintsCase_ == 5) { + return (com.google.type.Interval) startTimingConstraints_; + } + return com.google.type.Interval.getDefaultInstance(); + } else { + if (startTimingConstraintsCase_ == 5) { + return validIntervalBuilder_.getMessage(); + } + return com.google.type.Interval.getDefaultInstance(); + } + } + /** + * + * + *
    +       * Optional. An absolute time interval within which resources may be
    +       * created.
    +       * 
    + * + * .google.type.Interval valid_interval = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setValidInterval(com.google.type.Interval value) { + if (validIntervalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTimingConstraints_ = value; + onChanged(); + } else { + validIntervalBuilder_.setMessage(value); + } + startTimingConstraintsCase_ = 5; + return this; + } + /** + * + * + *
    +       * Optional. An absolute time interval within which resources may be
    +       * created.
    +       * 
    + * + * .google.type.Interval valid_interval = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setValidInterval(com.google.type.Interval.Builder builderForValue) { + if (validIntervalBuilder_ == null) { + startTimingConstraints_ = builderForValue.build(); + onChanged(); + } else { + validIntervalBuilder_.setMessage(builderForValue.build()); + } + startTimingConstraintsCase_ = 5; + return this; + } + /** + * + * + *
    +       * Optional. An absolute time interval within which resources may be
    +       * created.
    +       * 
    + * + * .google.type.Interval valid_interval = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeValidInterval(com.google.type.Interval value) { + if (validIntervalBuilder_ == null) { + if (startTimingConstraintsCase_ == 5 + && startTimingConstraints_ != com.google.type.Interval.getDefaultInstance()) { + startTimingConstraints_ = + com.google.type.Interval.newBuilder( + (com.google.type.Interval) startTimingConstraints_) + .mergeFrom(value) + .buildPartial(); + } else { + startTimingConstraints_ = value; + } + onChanged(); + } else { + if (startTimingConstraintsCase_ == 5) { + validIntervalBuilder_.mergeFrom(value); + } else { + validIntervalBuilder_.setMessage(value); + } + } + startTimingConstraintsCase_ = 5; + return this; + } + /** + * + * + *
    +       * Optional. An absolute time interval within which resources may be
    +       * created.
    +       * 
    + * + * .google.type.Interval valid_interval = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearValidInterval() { + if (validIntervalBuilder_ == null) { + if (startTimingConstraintsCase_ == 5) { + startTimingConstraintsCase_ = 0; + startTimingConstraints_ = null; + onChanged(); + } + } else { + if (startTimingConstraintsCase_ == 5) { + startTimingConstraintsCase_ = 0; + startTimingConstraints_ = null; + } + validIntervalBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +       * Optional. An absolute time interval within which resources may be
    +       * created.
    +       * 
    + * + * .google.type.Interval valid_interval = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.type.Interval.Builder getValidIntervalBuilder() { + return getValidIntervalFieldBuilder().getBuilder(); + } + /** + * + * + *
    +       * Optional. An absolute time interval within which resources may be
    +       * created.
    +       * 
    + * + * .google.type.Interval valid_interval = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.type.IntervalOrBuilder getValidIntervalOrBuilder() { + if ((startTimingConstraintsCase_ == 5) && (validIntervalBuilder_ != null)) { + return validIntervalBuilder_.getMessageOrBuilder(); + } else { + if (startTimingConstraintsCase_ == 5) { + return (com.google.type.Interval) startTimingConstraints_; + } + return com.google.type.Interval.getDefaultInstance(); + } + } + /** + * + * + *
    +       * Optional. An absolute time interval within which resources may be
    +       * created.
    +       * 
    + * + * .google.type.Interval valid_interval = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Interval, + com.google.type.Interval.Builder, + com.google.type.IntervalOrBuilder> + getValidIntervalFieldBuilder() { + if (validIntervalBuilder_ == null) { + if (!(startTimingConstraintsCase_ == 5)) { + startTimingConstraints_ = com.google.type.Interval.getDefaultInstance(); + } + validIntervalBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Interval, + com.google.type.Interval.Builder, + com.google.type.IntervalOrBuilder>( + (com.google.type.Interval) startTimingConstraints_, + getParentForChildren(), + isClean()); + startTimingConstraints_ = null; + } + startTimingConstraintsCase_ = 5; + onChanged(); + return validIntervalBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2.QueuedResource.QueueingPolicy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.QueuedResource.QueueingPolicy) + private static final com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy(); + } + + public static com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueueingPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int resourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object resource_; + + public enum ResourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TPU(2), + RESOURCE_NOT_SET(0); + private final int value; + + private ResourceCase(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 ResourceCase valueOf(int value) { + return forNumber(value); + } + + public static ResourceCase forNumber(int value) { + switch (value) { + case 2: + return TPU; + case 0: + return RESOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ResourceCase getResourceCase() { + return ResourceCase.forNumber(resourceCase_); + } + + private int tierCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object tier_; + + public enum TierCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SPOT(3), + GUARANTEED(4), + TIER_NOT_SET(0); + private final int value; + + private TierCase(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 TierCase valueOf(int value) { + return forNumber(value); + } + + public static TierCase forNumber(int value) { + switch (value) { + case 3: + return SPOT; + case 4: + return GUARANTEED; + case 0: + return TIER_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TierCase getTierCase() { + return TierCase.forNumber(tierCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Output only. Immutable. The name of the QueuedResource.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
    +   * Output only. Immutable. The name of the QueuedResource.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 11; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
    +   * Output only. The time when the QueuedResource was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 11 [(.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. The time when the QueuedResource was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 11 [(.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. The time when the QueuedResource was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 11 [(.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 TPU_FIELD_NUMBER = 2; + /** + * + * + *
    +   * Optional. Defines a TPU resource.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Tpu tpu = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the tpu field is set. + */ + @java.lang.Override + public boolean hasTpu() { + return resourceCase_ == 2; + } + /** + * + * + *
    +   * Optional. Defines a TPU resource.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Tpu tpu = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tpu. + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.Tpu getTpu() { + if (resourceCase_ == 2) { + return (com.google.cloud.tpu.v2.QueuedResource.Tpu) resource_; + } + return com.google.cloud.tpu.v2.QueuedResource.Tpu.getDefaultInstance(); + } + /** + * + * + *
    +   * Optional. Defines a TPU resource.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Tpu tpu = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.TpuOrBuilder getTpuOrBuilder() { + if (resourceCase_ == 2) { + return (com.google.cloud.tpu.v2.QueuedResource.Tpu) resource_; + } + return com.google.cloud.tpu.v2.QueuedResource.Tpu.getDefaultInstance(); + } + + public static final int SPOT_FIELD_NUMBER = 3; + /** + * + * + *
    +   * Optional. The Spot tier.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Spot spot = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the spot field is set. + */ + @java.lang.Override + public boolean hasSpot() { + return tierCase_ == 3; + } + /** + * + * + *
    +   * Optional. The Spot tier.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Spot spot = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The spot. + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.Spot getSpot() { + if (tierCase_ == 3) { + return (com.google.cloud.tpu.v2.QueuedResource.Spot) tier_; + } + return com.google.cloud.tpu.v2.QueuedResource.Spot.getDefaultInstance(); + } + /** + * + * + *
    +   * Optional. The Spot tier.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Spot spot = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.SpotOrBuilder getSpotOrBuilder() { + if (tierCase_ == 3) { + return (com.google.cloud.tpu.v2.QueuedResource.Spot) tier_; + } + return com.google.cloud.tpu.v2.QueuedResource.Spot.getDefaultInstance(); + } + + public static final int GUARANTEED_FIELD_NUMBER = 4; + /** + * + * + *
    +   * Optional. The Guaranteed tier
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Guaranteed guaranteed = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the guaranteed field is set. + */ + @java.lang.Override + public boolean hasGuaranteed() { + return tierCase_ == 4; + } + /** + * + * + *
    +   * Optional. The Guaranteed tier
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Guaranteed guaranteed = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The guaranteed. + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.Guaranteed getGuaranteed() { + if (tierCase_ == 4) { + return (com.google.cloud.tpu.v2.QueuedResource.Guaranteed) tier_; + } + return com.google.cloud.tpu.v2.QueuedResource.Guaranteed.getDefaultInstance(); + } + /** + * + * + *
    +   * Optional. The Guaranteed tier
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Guaranteed guaranteed = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.GuaranteedOrBuilder getGuaranteedOrBuilder() { + if (tierCase_ == 4) { + return (com.google.cloud.tpu.v2.QueuedResource.Guaranteed) tier_; + } + return com.google.cloud.tpu.v2.QueuedResource.Guaranteed.getDefaultInstance(); + } + + public static final int QUEUEING_POLICY_FIELD_NUMBER = 5; + private com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy queueingPolicy_; + /** + * + * + *
    +   * Optional. The queueing policy of the QueuedRequest.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.QueueingPolicy queueing_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the queueingPolicy field is set. + */ + @java.lang.Override + public boolean hasQueueingPolicy() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +   * Optional. The queueing policy of the QueuedRequest.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.QueueingPolicy queueing_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The queueingPolicy. + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy getQueueingPolicy() { + return queueingPolicy_ == null + ? com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy.getDefaultInstance() + : queueingPolicy_; + } + /** + * + * + *
    +   * Optional. The queueing policy of the QueuedRequest.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.QueueingPolicy queueing_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.QueueingPolicyOrBuilder + getQueueingPolicyOrBuilder() { + return queueingPolicy_ == null + ? com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy.getDefaultInstance() + : queueingPolicy_; + } + + public static final int STATE_FIELD_NUMBER = 6; + private com.google.cloud.tpu.v2.QueuedResourceState state_; + /** + * + * + *
    +   * Output only. State of the QueuedResource request.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + @java.lang.Override + public boolean hasState() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +   * Output only. State of the QueuedResource request.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState getState() { + return state_ == null + ? com.google.cloud.tpu.v2.QueuedResourceState.getDefaultInstance() + : state_; + } + /** + * + * + *
    +   * Output only. State of the QueuedResource request.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceStateOrBuilder getStateOrBuilder() { + return state_ == null + ? com.google.cloud.tpu.v2.QueuedResourceState.getDefaultInstance() + : state_; + } + + public static final int RESERVATION_NAME_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object reservationName_ = ""; + /** + * + * + *
    +   * Optional. Name of the reservation in which the resource should be
    +   * provisioned. Format:
    +   * projects/{project}/locations/{zone}/reservations/{reservation}
    +   * 
    + * + * string reservation_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The reservationName. + */ + @java.lang.Override + public java.lang.String getReservationName() { + java.lang.Object ref = reservationName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reservationName_ = s; + return s; + } + } + /** + * + * + *
    +   * Optional. Name of the reservation in which the resource should be
    +   * provisioned. Format:
    +   * projects/{project}/locations/{zone}/reservations/{reservation}
    +   * 
    + * + * string reservation_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for reservationName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReservationNameBytes() { + java.lang.Object ref = reservationName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reservationName_ = 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 (resourceCase_ == 2) { + output.writeMessage(2, (com.google.cloud.tpu.v2.QueuedResource.Tpu) resource_); + } + if (tierCase_ == 3) { + output.writeMessage(3, (com.google.cloud.tpu.v2.QueuedResource.Spot) tier_); + } + if (tierCase_ == 4) { + output.writeMessage(4, (com.google.cloud.tpu.v2.QueuedResource.Guaranteed) tier_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getQueueingPolicy()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(6, getState()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reservationName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, reservationName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(11, getCreateTime()); + } + 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 (resourceCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.tpu.v2.QueuedResource.Tpu) resource_); + } + if (tierCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.tpu.v2.QueuedResource.Spot) tier_); + } + if (tierCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.tpu.v2.QueuedResource.Guaranteed) tier_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getQueueingPolicy()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getState()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reservationName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, reservationName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getCreateTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.tpu.v2.QueuedResource)) { + return super.equals(obj); + } + com.google.cloud.tpu.v2.QueuedResource other = (com.google.cloud.tpu.v2.QueuedResource) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasQueueingPolicy() != other.hasQueueingPolicy()) return false; + if (hasQueueingPolicy()) { + if (!getQueueingPolicy().equals(other.getQueueingPolicy())) return false; + } + if (hasState() != other.hasState()) return false; + if (hasState()) { + if (!getState().equals(other.getState())) return false; + } + if (!getReservationName().equals(other.getReservationName())) return false; + if (!getResourceCase().equals(other.getResourceCase())) return false; + switch (resourceCase_) { + case 2: + if (!getTpu().equals(other.getTpu())) return false; + break; + case 0: + default: + } + if (!getTierCase().equals(other.getTierCase())) return false; + switch (tierCase_) { + case 3: + if (!getSpot().equals(other.getSpot())) return false; + break; + case 4: + if (!getGuaranteed().equals(other.getGuaranteed())) 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(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasQueueingPolicy()) { + hash = (37 * hash) + QUEUEING_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getQueueingPolicy().hashCode(); + } + if (hasState()) { + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + getState().hashCode(); + } + hash = (37 * hash) + RESERVATION_NAME_FIELD_NUMBER; + hash = (53 * hash) + getReservationName().hashCode(); + switch (resourceCase_) { + case 2: + hash = (37 * hash) + TPU_FIELD_NUMBER; + hash = (53 * hash) + getTpu().hashCode(); + break; + case 0: + default: + } + switch (tierCase_) { + case 3: + hash = (37 * hash) + SPOT_FIELD_NUMBER; + hash = (53 * hash) + getSpot().hashCode(); + break; + case 4: + hash = (37 * hash) + GUARANTEED_FIELD_NUMBER; + hash = (53 * hash) + getGuaranteed().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.tpu.v2.QueuedResource parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResource parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResource parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResource parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.tpu.v2.QueuedResource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 QueuedResource represents a request for resources that will be placed
    +   * in a queue and fulfilled when the necessary resources are available.
    +   * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.QueuedResource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.QueuedResource) + com.google.cloud.tpu.v2.QueuedResourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.QueuedResource.class, + com.google.cloud.tpu.v2.QueuedResource.Builder.class); + } + + // Construct using com.google.cloud.tpu.v2.QueuedResource.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(); + getQueueingPolicyFieldBuilder(); + getStateFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + if (tpuBuilder_ != null) { + tpuBuilder_.clear(); + } + if (spotBuilder_ != null) { + spotBuilder_.clear(); + } + if (guaranteedBuilder_ != null) { + guaranteedBuilder_.clear(); + } + queueingPolicy_ = null; + if (queueingPolicyBuilder_ != null) { + queueingPolicyBuilder_.dispose(); + queueingPolicyBuilder_ = null; + } + state_ = null; + if (stateBuilder_ != null) { + stateBuilder_.dispose(); + stateBuilder_ = null; + } + reservationName_ = ""; + resourceCase_ = 0; + resource_ = null; + tierCase_ = 0; + tier_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResource_descriptor; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource getDefaultInstanceForType() { + return com.google.cloud.tpu.v2.QueuedResource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource build() { + com.google.cloud.tpu.v2.QueuedResource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource buildPartial() { + com.google.cloud.tpu.v2.QueuedResource result = + new com.google.cloud.tpu.v2.QueuedResource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.tpu.v2.QueuedResource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.queueingPolicy_ = + queueingPolicyBuilder_ == null ? queueingPolicy_ : queueingPolicyBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.state_ = stateBuilder_ == null ? state_ : stateBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.reservationName_ = reservationName_; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.tpu.v2.QueuedResource result) { + result.resourceCase_ = resourceCase_; + result.resource_ = this.resource_; + if (resourceCase_ == 2 && tpuBuilder_ != null) { + result.resource_ = tpuBuilder_.build(); + } + result.tierCase_ = tierCase_; + result.tier_ = this.tier_; + if (tierCase_ == 3 && spotBuilder_ != null) { + result.tier_ = spotBuilder_.build(); + } + if (tierCase_ == 4 && guaranteedBuilder_ != null) { + result.tier_ = guaranteedBuilder_.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.tpu.v2.QueuedResource) { + return mergeFrom((com.google.cloud.tpu.v2.QueuedResource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.tpu.v2.QueuedResource other) { + if (other == com.google.cloud.tpu.v2.QueuedResource.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasQueueingPolicy()) { + mergeQueueingPolicy(other.getQueueingPolicy()); + } + if (other.hasState()) { + mergeState(other.getState()); + } + if (!other.getReservationName().isEmpty()) { + reservationName_ = other.reservationName_; + bitField0_ |= 0x00000080; + onChanged(); + } + switch (other.getResourceCase()) { + case TPU: + { + mergeTpu(other.getTpu()); + break; + } + case RESOURCE_NOT_SET: + { + break; + } + } + switch (other.getTierCase()) { + case SPOT: + { + mergeSpot(other.getSpot()); + break; + } + case GUARANTEED: + { + mergeGuaranteed(other.getGuaranteed()); + break; + } + case TIER_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: + { + input.readMessage(getTpuFieldBuilder().getBuilder(), extensionRegistry); + resourceCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getSpotFieldBuilder().getBuilder(), extensionRegistry); + tierCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getGuaranteedFieldBuilder().getBuilder(), extensionRegistry); + tierCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getQueueingPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 50: + { + input.readMessage(getStateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: + { + reservationName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 90: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 90 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int resourceCase_ = 0; + private java.lang.Object resource_; + + public ResourceCase getResourceCase() { + return ResourceCase.forNumber(resourceCase_); + } + + public Builder clearResource() { + resourceCase_ = 0; + resource_ = null; + onChanged(); + return this; + } + + private int tierCase_ = 0; + private java.lang.Object tier_; + + public TierCase getTierCase() { + return TierCase.forNumber(tierCase_); + } + + public Builder clearTier() { + tierCase_ = 0; + tier_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
    +     * Output only. Immutable. The name of the QueuedResource.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Output only. Immutable. The name of the QueuedResource.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Output only. Immutable. The name of the QueuedResource.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Immutable. The name of the QueuedResource.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Immutable. The name of the QueuedResource.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
    +     * Output only. The time when the QueuedResource was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * Output only. The time when the QueuedResource was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 11 [(.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. The time when the QueuedResource was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 11 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The time when the QueuedResource was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 11 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The time when the QueuedResource was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Output only. The time when the QueuedResource was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The time when the QueuedResource was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Output only. The time when the QueuedResource was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 11 [(.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. The time when the QueuedResource was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 11 [(.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.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResource.Tpu, + com.google.cloud.tpu.v2.QueuedResource.Tpu.Builder, + com.google.cloud.tpu.v2.QueuedResource.TpuOrBuilder> + tpuBuilder_; + /** + * + * + *
    +     * Optional. Defines a TPU resource.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Tpu tpu = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the tpu field is set. + */ + @java.lang.Override + public boolean hasTpu() { + return resourceCase_ == 2; + } + /** + * + * + *
    +     * Optional. Defines a TPU resource.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Tpu tpu = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tpu. + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.Tpu getTpu() { + if (tpuBuilder_ == null) { + if (resourceCase_ == 2) { + return (com.google.cloud.tpu.v2.QueuedResource.Tpu) resource_; + } + return com.google.cloud.tpu.v2.QueuedResource.Tpu.getDefaultInstance(); + } else { + if (resourceCase_ == 2) { + return tpuBuilder_.getMessage(); + } + return com.google.cloud.tpu.v2.QueuedResource.Tpu.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Optional. Defines a TPU resource.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Tpu tpu = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTpu(com.google.cloud.tpu.v2.QueuedResource.Tpu value) { + if (tpuBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + tpuBuilder_.setMessage(value); + } + resourceCase_ = 2; + return this; + } + /** + * + * + *
    +     * Optional. Defines a TPU resource.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Tpu tpu = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTpu(com.google.cloud.tpu.v2.QueuedResource.Tpu.Builder builderForValue) { + if (tpuBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + tpuBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 2; + return this; + } + /** + * + * + *
    +     * Optional. Defines a TPU resource.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Tpu tpu = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeTpu(com.google.cloud.tpu.v2.QueuedResource.Tpu value) { + if (tpuBuilder_ == null) { + if (resourceCase_ == 2 + && resource_ != com.google.cloud.tpu.v2.QueuedResource.Tpu.getDefaultInstance()) { + resource_ = + com.google.cloud.tpu.v2.QueuedResource.Tpu.newBuilder( + (com.google.cloud.tpu.v2.QueuedResource.Tpu) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 2) { + tpuBuilder_.mergeFrom(value); + } else { + tpuBuilder_.setMessage(value); + } + } + resourceCase_ = 2; + return this; + } + /** + * + * + *
    +     * Optional. Defines a TPU resource.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Tpu tpu = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTpu() { + if (tpuBuilder_ == null) { + if (resourceCase_ == 2) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 2) { + resourceCase_ = 0; + resource_ = null; + } + tpuBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * Optional. Defines a TPU resource.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Tpu tpu = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.tpu.v2.QueuedResource.Tpu.Builder getTpuBuilder() { + return getTpuFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Optional. Defines a TPU resource.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Tpu tpu = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.TpuOrBuilder getTpuOrBuilder() { + if ((resourceCase_ == 2) && (tpuBuilder_ != null)) { + return tpuBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 2) { + return (com.google.cloud.tpu.v2.QueuedResource.Tpu) resource_; + } + return com.google.cloud.tpu.v2.QueuedResource.Tpu.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Optional. Defines a TPU resource.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Tpu tpu = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResource.Tpu, + com.google.cloud.tpu.v2.QueuedResource.Tpu.Builder, + com.google.cloud.tpu.v2.QueuedResource.TpuOrBuilder> + getTpuFieldBuilder() { + if (tpuBuilder_ == null) { + if (!(resourceCase_ == 2)) { + resource_ = com.google.cloud.tpu.v2.QueuedResource.Tpu.getDefaultInstance(); + } + tpuBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResource.Tpu, + com.google.cloud.tpu.v2.QueuedResource.Tpu.Builder, + com.google.cloud.tpu.v2.QueuedResource.TpuOrBuilder>( + (com.google.cloud.tpu.v2.QueuedResource.Tpu) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 2; + onChanged(); + return tpuBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResource.Spot, + com.google.cloud.tpu.v2.QueuedResource.Spot.Builder, + com.google.cloud.tpu.v2.QueuedResource.SpotOrBuilder> + spotBuilder_; + /** + * + * + *
    +     * Optional. The Spot tier.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Spot spot = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the spot field is set. + */ + @java.lang.Override + public boolean hasSpot() { + return tierCase_ == 3; + } + /** + * + * + *
    +     * Optional. The Spot tier.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Spot spot = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The spot. + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.Spot getSpot() { + if (spotBuilder_ == null) { + if (tierCase_ == 3) { + return (com.google.cloud.tpu.v2.QueuedResource.Spot) tier_; + } + return com.google.cloud.tpu.v2.QueuedResource.Spot.getDefaultInstance(); + } else { + if (tierCase_ == 3) { + return spotBuilder_.getMessage(); + } + return com.google.cloud.tpu.v2.QueuedResource.Spot.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Optional. The Spot tier.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Spot spot = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSpot(com.google.cloud.tpu.v2.QueuedResource.Spot value) { + if (spotBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tier_ = value; + onChanged(); + } else { + spotBuilder_.setMessage(value); + } + tierCase_ = 3; + return this; + } + /** + * + * + *
    +     * Optional. The Spot tier.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Spot spot = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSpot(com.google.cloud.tpu.v2.QueuedResource.Spot.Builder builderForValue) { + if (spotBuilder_ == null) { + tier_ = builderForValue.build(); + onChanged(); + } else { + spotBuilder_.setMessage(builderForValue.build()); + } + tierCase_ = 3; + return this; + } + /** + * + * + *
    +     * Optional. The Spot tier.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Spot spot = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSpot(com.google.cloud.tpu.v2.QueuedResource.Spot value) { + if (spotBuilder_ == null) { + if (tierCase_ == 3 + && tier_ != com.google.cloud.tpu.v2.QueuedResource.Spot.getDefaultInstance()) { + tier_ = + com.google.cloud.tpu.v2.QueuedResource.Spot.newBuilder( + (com.google.cloud.tpu.v2.QueuedResource.Spot) tier_) + .mergeFrom(value) + .buildPartial(); + } else { + tier_ = value; + } + onChanged(); + } else { + if (tierCase_ == 3) { + spotBuilder_.mergeFrom(value); + } else { + spotBuilder_.setMessage(value); + } + } + tierCase_ = 3; + return this; + } + /** + * + * + *
    +     * Optional. The Spot tier.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Spot spot = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSpot() { + if (spotBuilder_ == null) { + if (tierCase_ == 3) { + tierCase_ = 0; + tier_ = null; + onChanged(); + } + } else { + if (tierCase_ == 3) { + tierCase_ = 0; + tier_ = null; + } + spotBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * Optional. The Spot tier.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Spot spot = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.tpu.v2.QueuedResource.Spot.Builder getSpotBuilder() { + return getSpotFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Optional. The Spot tier.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Spot spot = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.SpotOrBuilder getSpotOrBuilder() { + if ((tierCase_ == 3) && (spotBuilder_ != null)) { + return spotBuilder_.getMessageOrBuilder(); + } else { + if (tierCase_ == 3) { + return (com.google.cloud.tpu.v2.QueuedResource.Spot) tier_; + } + return com.google.cloud.tpu.v2.QueuedResource.Spot.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Optional. The Spot tier.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Spot spot = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResource.Spot, + com.google.cloud.tpu.v2.QueuedResource.Spot.Builder, + com.google.cloud.tpu.v2.QueuedResource.SpotOrBuilder> + getSpotFieldBuilder() { + if (spotBuilder_ == null) { + if (!(tierCase_ == 3)) { + tier_ = com.google.cloud.tpu.v2.QueuedResource.Spot.getDefaultInstance(); + } + spotBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResource.Spot, + com.google.cloud.tpu.v2.QueuedResource.Spot.Builder, + com.google.cloud.tpu.v2.QueuedResource.SpotOrBuilder>( + (com.google.cloud.tpu.v2.QueuedResource.Spot) tier_, + getParentForChildren(), + isClean()); + tier_ = null; + } + tierCase_ = 3; + onChanged(); + return spotBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResource.Guaranteed, + com.google.cloud.tpu.v2.QueuedResource.Guaranteed.Builder, + com.google.cloud.tpu.v2.QueuedResource.GuaranteedOrBuilder> + guaranteedBuilder_; + /** + * + * + *
    +     * Optional. The Guaranteed tier
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Guaranteed guaranteed = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the guaranteed field is set. + */ + @java.lang.Override + public boolean hasGuaranteed() { + return tierCase_ == 4; + } + /** + * + * + *
    +     * Optional. The Guaranteed tier
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Guaranteed guaranteed = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The guaranteed. + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.Guaranteed getGuaranteed() { + if (guaranteedBuilder_ == null) { + if (tierCase_ == 4) { + return (com.google.cloud.tpu.v2.QueuedResource.Guaranteed) tier_; + } + return com.google.cloud.tpu.v2.QueuedResource.Guaranteed.getDefaultInstance(); + } else { + if (tierCase_ == 4) { + return guaranteedBuilder_.getMessage(); + } + return com.google.cloud.tpu.v2.QueuedResource.Guaranteed.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Optional. The Guaranteed tier
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Guaranteed guaranteed = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGuaranteed(com.google.cloud.tpu.v2.QueuedResource.Guaranteed value) { + if (guaranteedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tier_ = value; + onChanged(); + } else { + guaranteedBuilder_.setMessage(value); + } + tierCase_ = 4; + return this; + } + /** + * + * + *
    +     * Optional. The Guaranteed tier
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Guaranteed guaranteed = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGuaranteed( + com.google.cloud.tpu.v2.QueuedResource.Guaranteed.Builder builderForValue) { + if (guaranteedBuilder_ == null) { + tier_ = builderForValue.build(); + onChanged(); + } else { + guaranteedBuilder_.setMessage(builderForValue.build()); + } + tierCase_ = 4; + return this; + } + /** + * + * + *
    +     * Optional. The Guaranteed tier
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Guaranteed guaranteed = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeGuaranteed(com.google.cloud.tpu.v2.QueuedResource.Guaranteed value) { + if (guaranteedBuilder_ == null) { + if (tierCase_ == 4 + && tier_ != com.google.cloud.tpu.v2.QueuedResource.Guaranteed.getDefaultInstance()) { + tier_ = + com.google.cloud.tpu.v2.QueuedResource.Guaranteed.newBuilder( + (com.google.cloud.tpu.v2.QueuedResource.Guaranteed) tier_) + .mergeFrom(value) + .buildPartial(); + } else { + tier_ = value; + } + onChanged(); + } else { + if (tierCase_ == 4) { + guaranteedBuilder_.mergeFrom(value); + } else { + guaranteedBuilder_.setMessage(value); + } + } + tierCase_ = 4; + return this; + } + /** + * + * + *
    +     * Optional. The Guaranteed tier
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Guaranteed guaranteed = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGuaranteed() { + if (guaranteedBuilder_ == null) { + if (tierCase_ == 4) { + tierCase_ = 0; + tier_ = null; + onChanged(); + } + } else { + if (tierCase_ == 4) { + tierCase_ = 0; + tier_ = null; + } + guaranteedBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * Optional. The Guaranteed tier
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Guaranteed guaranteed = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.tpu.v2.QueuedResource.Guaranteed.Builder getGuaranteedBuilder() { + return getGuaranteedFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Optional. The Guaranteed tier
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Guaranteed guaranteed = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource.GuaranteedOrBuilder getGuaranteedOrBuilder() { + if ((tierCase_ == 4) && (guaranteedBuilder_ != null)) { + return guaranteedBuilder_.getMessageOrBuilder(); + } else { + if (tierCase_ == 4) { + return (com.google.cloud.tpu.v2.QueuedResource.Guaranteed) tier_; + } + return com.google.cloud.tpu.v2.QueuedResource.Guaranteed.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Optional. The Guaranteed tier
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Guaranteed guaranteed = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResource.Guaranteed, + com.google.cloud.tpu.v2.QueuedResource.Guaranteed.Builder, + com.google.cloud.tpu.v2.QueuedResource.GuaranteedOrBuilder> + getGuaranteedFieldBuilder() { + if (guaranteedBuilder_ == null) { + if (!(tierCase_ == 4)) { + tier_ = com.google.cloud.tpu.v2.QueuedResource.Guaranteed.getDefaultInstance(); + } + guaranteedBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResource.Guaranteed, + com.google.cloud.tpu.v2.QueuedResource.Guaranteed.Builder, + com.google.cloud.tpu.v2.QueuedResource.GuaranteedOrBuilder>( + (com.google.cloud.tpu.v2.QueuedResource.Guaranteed) tier_, + getParentForChildren(), + isClean()); + tier_ = null; + } + tierCase_ = 4; + onChanged(); + return guaranteedBuilder_; + } + + private com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy queueingPolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy, + com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy.Builder, + com.google.cloud.tpu.v2.QueuedResource.QueueingPolicyOrBuilder> + queueingPolicyBuilder_; + /** + * + * + *
    +     * Optional. The queueing policy of the QueuedRequest.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.QueueingPolicy queueing_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the queueingPolicy field is set. + */ + public boolean hasQueueingPolicy() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
    +     * Optional. The queueing policy of the QueuedRequest.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.QueueingPolicy queueing_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The queueingPolicy. + */ + public com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy getQueueingPolicy() { + if (queueingPolicyBuilder_ == null) { + return queueingPolicy_ == null + ? com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy.getDefaultInstance() + : queueingPolicy_; + } else { + return queueingPolicyBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Optional. The queueing policy of the QueuedRequest.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.QueueingPolicy queueing_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setQueueingPolicy(com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy value) { + if (queueingPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + queueingPolicy_ = value; + } else { + queueingPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The queueing policy of the QueuedRequest.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.QueueingPolicy queueing_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setQueueingPolicy( + com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy.Builder builderForValue) { + if (queueingPolicyBuilder_ == null) { + queueingPolicy_ = builderForValue.build(); + } else { + queueingPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The queueing policy of the QueuedRequest.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.QueueingPolicy queueing_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeQueueingPolicy( + com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy value) { + if (queueingPolicyBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && queueingPolicy_ != null + && queueingPolicy_ + != com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy.getDefaultInstance()) { + getQueueingPolicyBuilder().mergeFrom(value); + } else { + queueingPolicy_ = value; + } + } else { + queueingPolicyBuilder_.mergeFrom(value); + } + if (queueingPolicy_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Optional. The queueing policy of the QueuedRequest.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.QueueingPolicy queueing_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearQueueingPolicy() { + bitField0_ = (bitField0_ & ~0x00000020); + queueingPolicy_ = null; + if (queueingPolicyBuilder_ != null) { + queueingPolicyBuilder_.dispose(); + queueingPolicyBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The queueing policy of the QueuedRequest.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.QueueingPolicy queueing_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy.Builder + getQueueingPolicyBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getQueueingPolicyFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Optional. The queueing policy of the QueuedRequest.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.QueueingPolicy queueing_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.tpu.v2.QueuedResource.QueueingPolicyOrBuilder + getQueueingPolicyOrBuilder() { + if (queueingPolicyBuilder_ != null) { + return queueingPolicyBuilder_.getMessageOrBuilder(); + } else { + return queueingPolicy_ == null + ? com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy.getDefaultInstance() + : queueingPolicy_; + } + } + /** + * + * + *
    +     * Optional. The queueing policy of the QueuedRequest.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.QueueingPolicy queueing_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy, + com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy.Builder, + com.google.cloud.tpu.v2.QueuedResource.QueueingPolicyOrBuilder> + getQueueingPolicyFieldBuilder() { + if (queueingPolicyBuilder_ == null) { + queueingPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy, + com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy.Builder, + com.google.cloud.tpu.v2.QueuedResource.QueueingPolicyOrBuilder>( + getQueueingPolicy(), getParentForChildren(), isClean()); + queueingPolicy_ = null; + } + return queueingPolicyBuilder_; + } + + private com.google.cloud.tpu.v2.QueuedResourceState state_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResourceState, + com.google.cloud.tpu.v2.QueuedResourceState.Builder, + com.google.cloud.tpu.v2.QueuedResourceStateOrBuilder> + stateBuilder_; + /** + * + * + *
    +     * Output only. State of the QueuedResource request.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + public boolean hasState() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
    +     * Output only. State of the QueuedResource request.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + public com.google.cloud.tpu.v2.QueuedResourceState getState() { + if (stateBuilder_ == null) { + return state_ == null + ? com.google.cloud.tpu.v2.QueuedResourceState.getDefaultInstance() + : state_; + } else { + return stateBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Output only. State of the QueuedResource request.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setState(com.google.cloud.tpu.v2.QueuedResourceState value) { + if (stateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + state_ = value; + } else { + stateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. State of the QueuedResource request.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setState(com.google.cloud.tpu.v2.QueuedResourceState.Builder builderForValue) { + if (stateBuilder_ == null) { + state_ = builderForValue.build(); + } else { + stateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. State of the QueuedResource request.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeState(com.google.cloud.tpu.v2.QueuedResourceState value) { + if (stateBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && state_ != null + && state_ != com.google.cloud.tpu.v2.QueuedResourceState.getDefaultInstance()) { + getStateBuilder().mergeFrom(value); + } else { + state_ = value; + } + } else { + stateBuilder_.mergeFrom(value); + } + if (state_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Output only. State of the QueuedResource request.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000040); + state_ = null; + if (stateBuilder_ != null) { + stateBuilder_.dispose(); + stateBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. State of the QueuedResource request.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.tpu.v2.QueuedResourceState.Builder getStateBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getStateFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Output only. State of the QueuedResource request.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.tpu.v2.QueuedResourceStateOrBuilder getStateOrBuilder() { + if (stateBuilder_ != null) { + return stateBuilder_.getMessageOrBuilder(); + } else { + return state_ == null + ? com.google.cloud.tpu.v2.QueuedResourceState.getDefaultInstance() + : state_; + } + } + /** + * + * + *
    +     * Output only. State of the QueuedResource request.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResourceState, + com.google.cloud.tpu.v2.QueuedResourceState.Builder, + com.google.cloud.tpu.v2.QueuedResourceStateOrBuilder> + getStateFieldBuilder() { + if (stateBuilder_ == null) { + stateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResourceState, + com.google.cloud.tpu.v2.QueuedResourceState.Builder, + com.google.cloud.tpu.v2.QueuedResourceStateOrBuilder>( + getState(), getParentForChildren(), isClean()); + state_ = null; + } + return stateBuilder_; + } + + private java.lang.Object reservationName_ = ""; + /** + * + * + *
    +     * Optional. Name of the reservation in which the resource should be
    +     * provisioned. Format:
    +     * projects/{project}/locations/{zone}/reservations/{reservation}
    +     * 
    + * + * string reservation_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The reservationName. + */ + public java.lang.String getReservationName() { + java.lang.Object ref = reservationName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reservationName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Optional. Name of the reservation in which the resource should be
    +     * provisioned. Format:
    +     * projects/{project}/locations/{zone}/reservations/{reservation}
    +     * 
    + * + * string reservation_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for reservationName. + */ + public com.google.protobuf.ByteString getReservationNameBytes() { + java.lang.Object ref = reservationName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reservationName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Optional. Name of the reservation in which the resource should be
    +     * provisioned. Format:
    +     * projects/{project}/locations/{zone}/reservations/{reservation}
    +     * 
    + * + * string reservation_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The reservationName to set. + * @return This builder for chaining. + */ + public Builder setReservationName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + reservationName_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. Name of the reservation in which the resource should be
    +     * provisioned. Format:
    +     * projects/{project}/locations/{zone}/reservations/{reservation}
    +     * 
    + * + * string reservation_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearReservationName() { + reservationName_ = getDefaultInstance().getReservationName(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. Name of the reservation in which the resource should be
    +     * provisioned. Format:
    +     * projects/{project}/locations/{zone}/reservations/{reservation}
    +     * 
    + * + * string reservation_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for reservationName to set. + * @return This builder for chaining. + */ + public Builder setReservationNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reservationName_ = value; + bitField0_ |= 0x00000080; + 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.tpu.v2.QueuedResource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.QueuedResource) + private static final com.google.cloud.tpu.v2.QueuedResource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.QueuedResource(); + } + + public static com.google.cloud.tpu.v2.QueuedResource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueuedResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/QueuedResourceName.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/QueuedResourceName.java new file mode 100644 index 000000000000..920052c95aa9 --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/QueuedResourceName.java @@ -0,0 +1,227 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.tpu.v2; + +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 QueuedResourceName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_QUEUED_RESOURCE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/queuedResources/{queued_resource}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String queuedResource; + + @Deprecated + protected QueuedResourceName() { + project = null; + location = null; + queuedResource = null; + } + + private QueuedResourceName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + queuedResource = Preconditions.checkNotNull(builder.getQueuedResource()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getQueuedResource() { + return queuedResource; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static QueuedResourceName of(String project, String location, String queuedResource) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setQueuedResource(queuedResource) + .build(); + } + + public static String format(String project, String location, String queuedResource) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setQueuedResource(queuedResource) + .build() + .toString(); + } + + public static QueuedResourceName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_QUEUED_RESOURCE.validatedMatch( + formattedString, "QueuedResourceName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("queued_resource")); + } + + 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 (QueuedResourceName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_QUEUED_RESOURCE.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 (queuedResource != null) { + fieldMapBuilder.put("queued_resource", queuedResource); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_QUEUED_RESOURCE.instantiate( + "project", project, "location", location, "queued_resource", queuedResource); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + QueuedResourceName that = ((QueuedResourceName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.queuedResource, that.queuedResource); + } + 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(queuedResource); + return h; + } + + /** Builder for projects/{project}/locations/{location}/queuedResources/{queued_resource}. */ + public static class Builder { + private String project; + private String location; + private String queuedResource; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getQueuedResource() { + return queuedResource; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setQueuedResource(String queuedResource) { + this.queuedResource = queuedResource; + return this; + } + + private Builder(QueuedResourceName queuedResourceName) { + this.project = queuedResourceName.project; + this.location = queuedResourceName.location; + this.queuedResource = queuedResourceName.queuedResource; + } + + public QueuedResourceName build() { + return new QueuedResourceName(this); + } + } +} diff --git a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/QueuedResourceOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/QueuedResourceOrBuilder.java new file mode 100644 index 000000000000..ebd1fc9588fd --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/QueuedResourceOrBuilder.java @@ -0,0 +1,331 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v2/cloud_tpu.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.tpu.v2; + +public interface QueuedResourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.QueuedResource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Output only. Immutable. The name of the QueuedResource.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Output only. Immutable. The name of the QueuedResource.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Output only. The time when the QueuedResource was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
    +   * Output only. The time when the QueuedResource was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
    +   * Output only. The time when the QueuedResource was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
    +   * Optional. Defines a TPU resource.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Tpu tpu = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the tpu field is set. + */ + boolean hasTpu(); + /** + * + * + *
    +   * Optional. Defines a TPU resource.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Tpu tpu = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tpu. + */ + com.google.cloud.tpu.v2.QueuedResource.Tpu getTpu(); + /** + * + * + *
    +   * Optional. Defines a TPU resource.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Tpu tpu = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.tpu.v2.QueuedResource.TpuOrBuilder getTpuOrBuilder(); + + /** + * + * + *
    +   * Optional. The Spot tier.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Spot spot = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the spot field is set. + */ + boolean hasSpot(); + /** + * + * + *
    +   * Optional. The Spot tier.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Spot spot = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The spot. + */ + com.google.cloud.tpu.v2.QueuedResource.Spot getSpot(); + /** + * + * + *
    +   * Optional. The Spot tier.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Spot spot = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.tpu.v2.QueuedResource.SpotOrBuilder getSpotOrBuilder(); + + /** + * + * + *
    +   * Optional. The Guaranteed tier
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Guaranteed guaranteed = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the guaranteed field is set. + */ + boolean hasGuaranteed(); + /** + * + * + *
    +   * Optional. The Guaranteed tier
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Guaranteed guaranteed = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The guaranteed. + */ + com.google.cloud.tpu.v2.QueuedResource.Guaranteed getGuaranteed(); + /** + * + * + *
    +   * Optional. The Guaranteed tier
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.Guaranteed guaranteed = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.tpu.v2.QueuedResource.GuaranteedOrBuilder getGuaranteedOrBuilder(); + + /** + * + * + *
    +   * Optional. The queueing policy of the QueuedRequest.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.QueueingPolicy queueing_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the queueingPolicy field is set. + */ + boolean hasQueueingPolicy(); + /** + * + * + *
    +   * Optional. The queueing policy of the QueuedRequest.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.QueueingPolicy queueing_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The queueingPolicy. + */ + com.google.cloud.tpu.v2.QueuedResource.QueueingPolicy getQueueingPolicy(); + /** + * + * + *
    +   * Optional. The queueing policy of the QueuedRequest.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResource.QueueingPolicy queueing_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.tpu.v2.QueuedResource.QueueingPolicyOrBuilder getQueueingPolicyOrBuilder(); + + /** + * + * + *
    +   * Output only. State of the QueuedResource request.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + boolean hasState(); + /** + * + * + *
    +   * Output only. State of the QueuedResource request.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.tpu.v2.QueuedResourceState getState(); + /** + * + * + *
    +   * Output only. State of the QueuedResource request.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.tpu.v2.QueuedResourceStateOrBuilder getStateOrBuilder(); + + /** + * + * + *
    +   * Optional. Name of the reservation in which the resource should be
    +   * provisioned. Format:
    +   * projects/{project}/locations/{zone}/reservations/{reservation}
    +   * 
    + * + * string reservation_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The reservationName. + */ + java.lang.String getReservationName(); + /** + * + * + *
    +   * Optional. Name of the reservation in which the resource should be
    +   * provisioned. Format:
    +   * projects/{project}/locations/{zone}/reservations/{reservation}
    +   * 
    + * + * string reservation_name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for reservationName. + */ + com.google.protobuf.ByteString getReservationNameBytes(); + + com.google.cloud.tpu.v2.QueuedResource.ResourceCase getResourceCase(); + + com.google.cloud.tpu.v2.QueuedResource.TierCase getTierCase(); +} diff --git a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/QueuedResourceState.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/QueuedResourceState.java new file mode 100644 index 000000000000..61a65baf8654 --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/QueuedResourceState.java @@ -0,0 +1,7697 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v2/cloud_tpu.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.tpu.v2; + +/** + * + * + *
    + * QueuedResourceState defines the details of the QueuedResource request.
    + * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.QueuedResourceState} + */ +public final class QueuedResourceState extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.QueuedResourceState) + QueuedResourceStateOrBuilder { + private static final long serialVersionUID = 0L; + // Use QueuedResourceState.newBuilder() to construct. + private QueuedResourceState(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private QueuedResourceState() { + state_ = 0; + stateInitiator_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new QueuedResourceState(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.QueuedResourceState.class, + com.google.cloud.tpu.v2.QueuedResourceState.Builder.class); + } + + /** + * + * + *
    +   * Output only state of the request
    +   * 
    + * + * Protobuf enum {@code google.cloud.tpu.v2.QueuedResourceState.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * State of the QueuedResource request is not known/set.
    +     * 
    + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
    +     * The QueuedResource request has been received. We're still working on
    +     * determining if we will be able to honor this request.
    +     * 
    + * + * CREATING = 1; + */ + CREATING(1), + /** + * + * + *
    +     * The QueuedResource request has passed initial validation/admission
    +     * control and has been persisted in the queue.
    +     * 
    + * + * ACCEPTED = 2; + */ + ACCEPTED(2), + /** + * + * + *
    +     * The QueuedResource request has been selected. The
    +     * associated resources are currently being provisioned (or very soon
    +     * will begin provisioning).
    +     * 
    + * + * PROVISIONING = 3; + */ + PROVISIONING(3), + /** + * + * + *
    +     * The request could not be completed. This may be due to some
    +     * late-discovered problem with the request itself, or due to
    +     * unavailability of resources within the constraints of the request
    +     * (e.g., the 'valid until' start timing constraint expired).
    +     * 
    + * + * FAILED = 4; + */ + FAILED(4), + /** + * + * + *
    +     * The QueuedResource is being deleted.
    +     * 
    + * + * DELETING = 5; + */ + DELETING(5), + /** + * + * + *
    +     * The resources specified in the QueuedResource request have been
    +     * provisioned and are ready for use by the end-user/consumer.
    +     * 
    + * + * ACTIVE = 6; + */ + ACTIVE(6), + /** + * + * + *
    +     * The resources specified in the QueuedResource request are being
    +     * deleted. This may have been initiated by the user, or
    +     * the Cloud TPU service. Inspect the state data for more details.
    +     * 
    + * + * SUSPENDING = 7; + */ + SUSPENDING(7), + /** + * + * + *
    +     * The resources specified in the QueuedResource request have been
    +     * deleted.
    +     * 
    + * + * SUSPENDED = 8; + */ + SUSPENDED(8), + /** + * + * + *
    +     * The QueuedResource request has passed initial validation and has been
    +     * persisted in the queue. It will remain in this state until there are
    +     * sufficient free resources to begin provisioning your request. Wait times
    +     * will vary significantly depending on demand levels. When demand is high,
    +     * not all requests can be immediately provisioned. If you
    +     * need more reliable obtainability of TPUs consider purchasing a
    +     * reservation. To put a limit on how long you are willing to wait, use
    +     * [timing
    +     * constraints](https://cloud.google.com/tpu/docs/queued-resources#request_a_queued_resource_before_a_specified_time).
    +     * 
    + * + * WAITING_FOR_RESOURCES = 9; + */ + WAITING_FOR_RESOURCES(9), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * State of the QueuedResource request is not known/set.
    +     * 
    + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +     * The QueuedResource request has been received. We're still working on
    +     * determining if we will be able to honor this request.
    +     * 
    + * + * CREATING = 1; + */ + public static final int CREATING_VALUE = 1; + /** + * + * + *
    +     * The QueuedResource request has passed initial validation/admission
    +     * control and has been persisted in the queue.
    +     * 
    + * + * ACCEPTED = 2; + */ + public static final int ACCEPTED_VALUE = 2; + /** + * + * + *
    +     * The QueuedResource request has been selected. The
    +     * associated resources are currently being provisioned (or very soon
    +     * will begin provisioning).
    +     * 
    + * + * PROVISIONING = 3; + */ + public static final int PROVISIONING_VALUE = 3; + /** + * + * + *
    +     * The request could not be completed. This may be due to some
    +     * late-discovered problem with the request itself, or due to
    +     * unavailability of resources within the constraints of the request
    +     * (e.g., the 'valid until' start timing constraint expired).
    +     * 
    + * + * FAILED = 4; + */ + public static final int FAILED_VALUE = 4; + /** + * + * + *
    +     * The QueuedResource is being deleted.
    +     * 
    + * + * DELETING = 5; + */ + public static final int DELETING_VALUE = 5; + /** + * + * + *
    +     * The resources specified in the QueuedResource request have been
    +     * provisioned and are ready for use by the end-user/consumer.
    +     * 
    + * + * ACTIVE = 6; + */ + public static final int ACTIVE_VALUE = 6; + /** + * + * + *
    +     * The resources specified in the QueuedResource request are being
    +     * deleted. This may have been initiated by the user, or
    +     * the Cloud TPU service. Inspect the state data for more details.
    +     * 
    + * + * SUSPENDING = 7; + */ + public static final int SUSPENDING_VALUE = 7; + /** + * + * + *
    +     * The resources specified in the QueuedResource request have been
    +     * deleted.
    +     * 
    + * + * SUSPENDED = 8; + */ + public static final int SUSPENDED_VALUE = 8; + /** + * + * + *
    +     * The QueuedResource request has passed initial validation and has been
    +     * persisted in the queue. It will remain in this state until there are
    +     * sufficient free resources to begin provisioning your request. Wait times
    +     * will vary significantly depending on demand levels. When demand is high,
    +     * not all requests can be immediately provisioned. If you
    +     * need more reliable obtainability of TPUs consider purchasing a
    +     * reservation. To put a limit on how long you are willing to wait, use
    +     * [timing
    +     * constraints](https://cloud.google.com/tpu/docs/queued-resources#request_a_queued_resource_before_a_specified_time).
    +     * 
    + * + * WAITING_FOR_RESOURCES = 9; + */ + public static final int WAITING_FOR_RESOURCES_VALUE = 9; + + 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 CREATING; + case 2: + return ACCEPTED; + case 3: + return PROVISIONING; + case 4: + return FAILED; + case 5: + return DELETING; + case 6: + return ACTIVE; + case 7: + return SUSPENDING; + case 8: + return SUSPENDED; + case 9: + return WAITING_FOR_RESOURCES; + 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.tpu.v2.QueuedResourceState.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.tpu.v2.QueuedResourceState.State) + } + + /** + * + * + *
    +   * The initiator of the QueuedResource's SUSPENDING/SUSPENDED state.
    +   * 
    + * + * Protobuf enum {@code google.cloud.tpu.v2.QueuedResourceState.StateInitiator} + */ + public enum StateInitiator implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * The state initiator is unspecified.
    +     * 
    + * + * STATE_INITIATOR_UNSPECIFIED = 0; + */ + STATE_INITIATOR_UNSPECIFIED(0), + /** + * + * + *
    +     * The current QueuedResource state was initiated by the user.
    +     * 
    + * + * USER = 1; + */ + USER(1), + /** + * + * + *
    +     * The current QueuedResource state was initiated by the service.
    +     * 
    + * + * SERVICE = 2; + */ + SERVICE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * The state initiator is unspecified.
    +     * 
    + * + * STATE_INITIATOR_UNSPECIFIED = 0; + */ + public static final int STATE_INITIATOR_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +     * The current QueuedResource state was initiated by the user.
    +     * 
    + * + * USER = 1; + */ + public static final int USER_VALUE = 1; + /** + * + * + *
    +     * The current QueuedResource state was initiated by the service.
    +     * 
    + * + * SERVICE = 2; + */ + public static final int SERVICE_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 StateInitiator 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 StateInitiator forNumber(int value) { + switch (value) { + case 0: + return STATE_INITIATOR_UNSPECIFIED; + case 1: + return USER; + case 2: + return SERVICE; + 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 StateInitiator findValueByNumber(int number) { + return StateInitiator.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.tpu.v2.QueuedResourceState.getDescriptor().getEnumTypes().get(1); + } + + private static final StateInitiator[] VALUES = values(); + + public static StateInitiator 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 StateInitiator(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.tpu.v2.QueuedResourceState.StateInitiator) + } + + public interface CreatingDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.QueuedResourceState.CreatingData) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
    +   * Further data for the creating state.
    +   * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.QueuedResourceState.CreatingData} + */ + public static final class CreatingData extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.QueuedResourceState.CreatingData) + CreatingDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreatingData.newBuilder() to construct. + private CreatingData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreatingData() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreatingData(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_CreatingData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_CreatingData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.QueuedResourceState.CreatingData.class, + com.google.cloud.tpu.v2.QueuedResourceState.CreatingData.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.tpu.v2.QueuedResourceState.CreatingData)) { + return super.equals(obj); + } + com.google.cloud.tpu.v2.QueuedResourceState.CreatingData other = + (com.google.cloud.tpu.v2.QueuedResourceState.CreatingData) 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.tpu.v2.QueuedResourceState.CreatingData parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.CreatingData parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.CreatingData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.CreatingData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.CreatingData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.CreatingData parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.CreatingData parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.CreatingData parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.CreatingData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.CreatingData parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.CreatingData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.CreatingData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.tpu.v2.QueuedResourceState.CreatingData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +     * Further data for the creating state.
    +     * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.QueuedResourceState.CreatingData} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.QueuedResourceState.CreatingData) + com.google.cloud.tpu.v2.QueuedResourceState.CreatingDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_CreatingData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_CreatingData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.QueuedResourceState.CreatingData.class, + com.google.cloud.tpu.v2.QueuedResourceState.CreatingData.Builder.class); + } + + // Construct using com.google.cloud.tpu.v2.QueuedResourceState.CreatingData.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.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_CreatingData_descriptor; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.CreatingData getDefaultInstanceForType() { + return com.google.cloud.tpu.v2.QueuedResourceState.CreatingData.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.CreatingData build() { + com.google.cloud.tpu.v2.QueuedResourceState.CreatingData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.CreatingData buildPartial() { + com.google.cloud.tpu.v2.QueuedResourceState.CreatingData result = + new com.google.cloud.tpu.v2.QueuedResourceState.CreatingData(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.tpu.v2.QueuedResourceState.CreatingData) { + return mergeFrom((com.google.cloud.tpu.v2.QueuedResourceState.CreatingData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.tpu.v2.QueuedResourceState.CreatingData other) { + if (other == com.google.cloud.tpu.v2.QueuedResourceState.CreatingData.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.tpu.v2.QueuedResourceState.CreatingData) + } + + // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.QueuedResourceState.CreatingData) + private static final com.google.cloud.tpu.v2.QueuedResourceState.CreatingData DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.QueuedResourceState.CreatingData(); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.CreatingData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreatingData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.CreatingData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AcceptedDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.QueuedResourceState.AcceptedData) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
    +   * Further data for the accepted state.
    +   * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.QueuedResourceState.AcceptedData} + */ + public static final class AcceptedData extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.QueuedResourceState.AcceptedData) + AcceptedDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use AcceptedData.newBuilder() to construct. + private AcceptedData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AcceptedData() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AcceptedData(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_AcceptedData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_AcceptedData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData.class, + com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData.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.tpu.v2.QueuedResourceState.AcceptedData)) { + return super.equals(obj); + } + com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData other = + (com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData) 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.tpu.v2.QueuedResourceState.AcceptedData parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +     * Further data for the accepted state.
    +     * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.QueuedResourceState.AcceptedData} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.QueuedResourceState.AcceptedData) + com.google.cloud.tpu.v2.QueuedResourceState.AcceptedDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_AcceptedData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_AcceptedData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData.class, + com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData.Builder.class); + } + + // Construct using com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData.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.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_AcceptedData_descriptor; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData getDefaultInstanceForType() { + return com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData build() { + com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData buildPartial() { + com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData result = + new com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData(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.tpu.v2.QueuedResourceState.AcceptedData) { + return mergeFrom((com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData other) { + if (other == com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData.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.tpu.v2.QueuedResourceState.AcceptedData) + } + + // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.QueuedResourceState.AcceptedData) + private static final com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData(); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AcceptedData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ProvisioningDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.QueuedResourceState.ProvisioningData) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
    +   * Further data for the provisioning state.
    +   * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.QueuedResourceState.ProvisioningData} + */ + public static final class ProvisioningData extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.QueuedResourceState.ProvisioningData) + ProvisioningDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProvisioningData.newBuilder() to construct. + private ProvisioningData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ProvisioningData() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ProvisioningData(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_ProvisioningData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_ProvisioningData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData.class, + com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData.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.tpu.v2.QueuedResourceState.ProvisioningData)) { + return super.equals(obj); + } + com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData other = + (com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData) 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.tpu.v2.QueuedResourceState.ProvisioningData parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +     * Further data for the provisioning state.
    +     * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.QueuedResourceState.ProvisioningData} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.QueuedResourceState.ProvisioningData) + com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_ProvisioningData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_ProvisioningData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData.class, + com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData.Builder.class); + } + + // Construct using com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData.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.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_ProvisioningData_descriptor; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData + getDefaultInstanceForType() { + return com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData build() { + com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData buildPartial() { + com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData result = + new com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData(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.tpu.v2.QueuedResourceState.ProvisioningData) { + return mergeFrom((com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData other) { + if (other + == com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData.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.tpu.v2.QueuedResourceState.ProvisioningData) + } + + // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.QueuedResourceState.ProvisioningData) + private static final com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData(); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProvisioningData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface FailedDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.QueuedResourceState.FailedData) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Output only. The error that caused the queued resource to enter the
    +     * FAILED state.
    +     * 
    + * + * .google.rpc.Status error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the error field is set. + */ + boolean hasError(); + /** + * + * + *
    +     * Output only. The error that caused the queued resource to enter the
    +     * FAILED state.
    +     * 
    + * + * .google.rpc.Status error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The error. + */ + com.google.rpc.Status getError(); + /** + * + * + *
    +     * Output only. The error that caused the queued resource to enter the
    +     * FAILED state.
    +     * 
    + * + * .google.rpc.Status error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.rpc.StatusOrBuilder getErrorOrBuilder(); + } + /** + * + * + *
    +   * Further data for the failed state.
    +   * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.QueuedResourceState.FailedData} + */ + public static final class FailedData extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.QueuedResourceState.FailedData) + FailedDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use FailedData.newBuilder() to construct. + private FailedData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FailedData() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FailedData(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_FailedData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_FailedData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.QueuedResourceState.FailedData.class, + com.google.cloud.tpu.v2.QueuedResourceState.FailedData.Builder.class); + } + + private int bitField0_; + public static final int ERROR_FIELD_NUMBER = 1; + private com.google.rpc.Status error_; + /** + * + * + *
    +     * Output only. The error that caused the queued resource to enter the
    +     * FAILED state.
    +     * 
    + * + * .google.rpc.Status error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the error field is set. + */ + @java.lang.Override + public boolean hasError() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +     * Output only. The error that caused the queued resource to enter the
    +     * FAILED state.
    +     * 
    + * + * .google.rpc.Status error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The error. + */ + @java.lang.Override + public com.google.rpc.Status getError() { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + /** + * + * + *
    +     * Output only. The error that caused the queued resource to enter the
    +     * FAILED state.
    +     * 
    + * + * .google.rpc.Status error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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, getError()); + } + 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, getError()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.tpu.v2.QueuedResourceState.FailedData)) { + return super.equals(obj); + } + com.google.cloud.tpu.v2.QueuedResourceState.FailedData other = + (com.google.cloud.tpu.v2.QueuedResourceState.FailedData) obj; + + if (hasError() != other.hasError()) return false; + if (hasError()) { + if (!getError().equals(other.getError())) return false; + } + if (!getUnknownFields().equals(other.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 (hasError()) { + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.FailedData parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.FailedData parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.FailedData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.FailedData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.FailedData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.FailedData parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.FailedData parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.FailedData parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.FailedData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.FailedData parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.FailedData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.FailedData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.tpu.v2.QueuedResourceState.FailedData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +     * Further data for the failed state.
    +     * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.QueuedResourceState.FailedData} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.QueuedResourceState.FailedData) + com.google.cloud.tpu.v2.QueuedResourceState.FailedDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_FailedData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_FailedData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.QueuedResourceState.FailedData.class, + com.google.cloud.tpu.v2.QueuedResourceState.FailedData.Builder.class); + } + + // Construct using com.google.cloud.tpu.v2.QueuedResourceState.FailedData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getErrorFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + errorBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_FailedData_descriptor; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.FailedData getDefaultInstanceForType() { + return com.google.cloud.tpu.v2.QueuedResourceState.FailedData.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.FailedData build() { + com.google.cloud.tpu.v2.QueuedResourceState.FailedData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.FailedData buildPartial() { + com.google.cloud.tpu.v2.QueuedResourceState.FailedData result = + new com.google.cloud.tpu.v2.QueuedResourceState.FailedData(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.tpu.v2.QueuedResourceState.FailedData result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.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.tpu.v2.QueuedResourceState.FailedData) { + return mergeFrom((com.google.cloud.tpu.v2.QueuedResourceState.FailedData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.tpu.v2.QueuedResourceState.FailedData other) { + if (other == com.google.cloud.tpu.v2.QueuedResourceState.FailedData.getDefaultInstance()) + return this; + if (other.hasError()) { + mergeError(other.getError()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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(getErrorFieldBuilder().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.rpc.Status error_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; + /** + * + * + *
    +       * Output only. The error that caused the queued resource to enter the
    +       * FAILED state.
    +       * 
    + * + * .google.rpc.Status error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the error field is set. + */ + public boolean hasError() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +       * Output only. The error that caused the queued resource to enter the
    +       * FAILED state.
    +       * 
    + * + * .google.rpc.Status error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The error. + */ + public com.google.rpc.Status getError() { + if (errorBuilder_ == null) { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } else { + return errorBuilder_.getMessage(); + } + } + /** + * + * + *
    +       * Output only. The error that caused the queued resource to enter the
    +       * FAILED state.
    +       * 
    + * + * .google.rpc.Status error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + error_ = value; + } else { + errorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +       * Output only. The error that caused the queued resource to enter the
    +       * FAILED state.
    +       * 
    + * + * .google.rpc.Status error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setError(com.google.rpc.Status.Builder builderForValue) { + if (errorBuilder_ == null) { + error_ = builderForValue.build(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +       * Output only. The error that caused the queued resource to enter the
    +       * FAILED state.
    +       * 
    + * + * .google.rpc.Status error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && error_ != null + && error_ != com.google.rpc.Status.getDefaultInstance()) { + getErrorBuilder().mergeFrom(value); + } else { + error_ = value; + } + } else { + errorBuilder_.mergeFrom(value); + } + if (error_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
    +       * Output only. The error that caused the queued resource to enter the
    +       * FAILED state.
    +       * 
    + * + * .google.rpc.Status error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearError() { + bitField0_ = (bitField0_ & ~0x00000001); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + errorBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +       * Output only. The error that caused the queued resource to enter the
    +       * FAILED state.
    +       * 
    + * + * .google.rpc.Status error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.rpc.Status.Builder getErrorBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getErrorFieldBuilder().getBuilder(); + } + /** + * + * + *
    +       * Output only. The error that caused the queued resource to enter the
    +       * FAILED state.
    +       * 
    + * + * .google.rpc.Status error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + if (errorBuilder_ != null) { + return errorBuilder_.getMessageOrBuilder(); + } else { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + } + /** + * + * + *
    +       * Output only. The error that caused the queued resource to enter the
    +       * FAILED state.
    +       * 
    + * + * .google.rpc.Status error = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean()); + error_ = null; + } + 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.tpu.v2.QueuedResourceState.FailedData) + } + + // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.QueuedResourceState.FailedData) + private static final com.google.cloud.tpu.v2.QueuedResourceState.FailedData DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.QueuedResourceState.FailedData(); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.FailedData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FailedData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.FailedData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DeletingDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.QueuedResourceState.DeletingData) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
    +   * Further data for the deleting state.
    +   * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.QueuedResourceState.DeletingData} + */ + public static final class DeletingData extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.QueuedResourceState.DeletingData) + DeletingDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeletingData.newBuilder() to construct. + private DeletingData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeletingData() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeletingData(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_DeletingData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_DeletingData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.QueuedResourceState.DeletingData.class, + com.google.cloud.tpu.v2.QueuedResourceState.DeletingData.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.tpu.v2.QueuedResourceState.DeletingData)) { + return super.equals(obj); + } + com.google.cloud.tpu.v2.QueuedResourceState.DeletingData other = + (com.google.cloud.tpu.v2.QueuedResourceState.DeletingData) 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.tpu.v2.QueuedResourceState.DeletingData parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.DeletingData parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.DeletingData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.DeletingData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.DeletingData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.DeletingData parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.DeletingData parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.DeletingData parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.DeletingData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.DeletingData parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.DeletingData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.DeletingData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.tpu.v2.QueuedResourceState.DeletingData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +     * Further data for the deleting state.
    +     * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.QueuedResourceState.DeletingData} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.QueuedResourceState.DeletingData) + com.google.cloud.tpu.v2.QueuedResourceState.DeletingDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_DeletingData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_DeletingData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.QueuedResourceState.DeletingData.class, + com.google.cloud.tpu.v2.QueuedResourceState.DeletingData.Builder.class); + } + + // Construct using com.google.cloud.tpu.v2.QueuedResourceState.DeletingData.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.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_DeletingData_descriptor; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.DeletingData getDefaultInstanceForType() { + return com.google.cloud.tpu.v2.QueuedResourceState.DeletingData.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.DeletingData build() { + com.google.cloud.tpu.v2.QueuedResourceState.DeletingData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.DeletingData buildPartial() { + com.google.cloud.tpu.v2.QueuedResourceState.DeletingData result = + new com.google.cloud.tpu.v2.QueuedResourceState.DeletingData(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.tpu.v2.QueuedResourceState.DeletingData) { + return mergeFrom((com.google.cloud.tpu.v2.QueuedResourceState.DeletingData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.tpu.v2.QueuedResourceState.DeletingData other) { + if (other == com.google.cloud.tpu.v2.QueuedResourceState.DeletingData.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.tpu.v2.QueuedResourceState.DeletingData) + } + + // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.QueuedResourceState.DeletingData) + private static final com.google.cloud.tpu.v2.QueuedResourceState.DeletingData DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.QueuedResourceState.DeletingData(); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.DeletingData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeletingData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.DeletingData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ActiveDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.QueuedResourceState.ActiveData) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
    +   * Further data for the active state.
    +   * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.QueuedResourceState.ActiveData} + */ + public static final class ActiveData extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.QueuedResourceState.ActiveData) + ActiveDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ActiveData.newBuilder() to construct. + private ActiveData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ActiveData() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ActiveData(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_ActiveData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_ActiveData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.QueuedResourceState.ActiveData.class, + com.google.cloud.tpu.v2.QueuedResourceState.ActiveData.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.tpu.v2.QueuedResourceState.ActiveData)) { + return super.equals(obj); + } + com.google.cloud.tpu.v2.QueuedResourceState.ActiveData other = + (com.google.cloud.tpu.v2.QueuedResourceState.ActiveData) 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.tpu.v2.QueuedResourceState.ActiveData parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.ActiveData parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.ActiveData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.ActiveData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.ActiveData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.ActiveData parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.ActiveData parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.ActiveData parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.ActiveData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.ActiveData parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.ActiveData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.ActiveData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.tpu.v2.QueuedResourceState.ActiveData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +     * Further data for the active state.
    +     * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.QueuedResourceState.ActiveData} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.QueuedResourceState.ActiveData) + com.google.cloud.tpu.v2.QueuedResourceState.ActiveDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_ActiveData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_ActiveData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.QueuedResourceState.ActiveData.class, + com.google.cloud.tpu.v2.QueuedResourceState.ActiveData.Builder.class); + } + + // Construct using com.google.cloud.tpu.v2.QueuedResourceState.ActiveData.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.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_ActiveData_descriptor; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.ActiveData getDefaultInstanceForType() { + return com.google.cloud.tpu.v2.QueuedResourceState.ActiveData.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.ActiveData build() { + com.google.cloud.tpu.v2.QueuedResourceState.ActiveData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.ActiveData buildPartial() { + com.google.cloud.tpu.v2.QueuedResourceState.ActiveData result = + new com.google.cloud.tpu.v2.QueuedResourceState.ActiveData(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.tpu.v2.QueuedResourceState.ActiveData) { + return mergeFrom((com.google.cloud.tpu.v2.QueuedResourceState.ActiveData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.tpu.v2.QueuedResourceState.ActiveData other) { + if (other == com.google.cloud.tpu.v2.QueuedResourceState.ActiveData.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.tpu.v2.QueuedResourceState.ActiveData) + } + + // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.QueuedResourceState.ActiveData) + private static final com.google.cloud.tpu.v2.QueuedResourceState.ActiveData DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.QueuedResourceState.ActiveData(); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.ActiveData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ActiveData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.ActiveData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SuspendingDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.QueuedResourceState.SuspendingData) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
    +   * Further data for the suspending state.
    +   * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.QueuedResourceState.SuspendingData} + */ + public static final class SuspendingData extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.QueuedResourceState.SuspendingData) + SuspendingDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use SuspendingData.newBuilder() to construct. + private SuspendingData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SuspendingData() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SuspendingData(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_SuspendingData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_SuspendingData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData.class, + com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData.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.tpu.v2.QueuedResourceState.SuspendingData)) { + return super.equals(obj); + } + com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData other = + (com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData) 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.tpu.v2.QueuedResourceState.SuspendingData parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +     * Further data for the suspending state.
    +     * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.QueuedResourceState.SuspendingData} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.QueuedResourceState.SuspendingData) + com.google.cloud.tpu.v2.QueuedResourceState.SuspendingDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_SuspendingData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_SuspendingData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData.class, + com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData.Builder.class); + } + + // Construct using com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData.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.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_SuspendingData_descriptor; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData + getDefaultInstanceForType() { + return com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData build() { + com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData buildPartial() { + com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData result = + new com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData(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.tpu.v2.QueuedResourceState.SuspendingData) { + return mergeFrom((com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData other) { + if (other + == com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData.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.tpu.v2.QueuedResourceState.SuspendingData) + } + + // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.QueuedResourceState.SuspendingData) + private static final com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData(); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SuspendingData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SuspendedDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.QueuedResourceState.SuspendedData) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
    +   * Further data for the suspended state.
    +   * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.QueuedResourceState.SuspendedData} + */ + public static final class SuspendedData extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.QueuedResourceState.SuspendedData) + SuspendedDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use SuspendedData.newBuilder() to construct. + private SuspendedData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SuspendedData() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SuspendedData(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_SuspendedData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_SuspendedData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData.class, + com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData.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.tpu.v2.QueuedResourceState.SuspendedData)) { + return super.equals(obj); + } + com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData other = + (com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData) 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.tpu.v2.QueuedResourceState.SuspendedData parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +     * Further data for the suspended state.
    +     * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.QueuedResourceState.SuspendedData} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.QueuedResourceState.SuspendedData) + com.google.cloud.tpu.v2.QueuedResourceState.SuspendedDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_SuspendedData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_SuspendedData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData.class, + com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData.Builder.class); + } + + // Construct using com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData.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.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_SuspendedData_descriptor; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData getDefaultInstanceForType() { + return com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData build() { + com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData buildPartial() { + com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData result = + new com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData(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.tpu.v2.QueuedResourceState.SuspendedData) { + return mergeFrom((com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData other) { + if (other == com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData.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.tpu.v2.QueuedResourceState.SuspendedData) + } + + // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.QueuedResourceState.SuspendedData) + private static final com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData(); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SuspendedData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int stateDataCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object stateData_; + + public enum StateDataCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CREATING_DATA(2), + ACCEPTED_DATA(3), + PROVISIONING_DATA(4), + FAILED_DATA(5), + DELETING_DATA(6), + ACTIVE_DATA(7), + SUSPENDING_DATA(8), + SUSPENDED_DATA(9), + STATEDATA_NOT_SET(0); + private final int value; + + private StateDataCase(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 StateDataCase valueOf(int value) { + return forNumber(value); + } + + public static StateDataCase forNumber(int value) { + switch (value) { + case 2: + return CREATING_DATA; + case 3: + return ACCEPTED_DATA; + case 4: + return PROVISIONING_DATA; + case 5: + return FAILED_DATA; + case 6: + return DELETING_DATA; + case 7: + return ACTIVE_DATA; + case 8: + return SUSPENDING_DATA; + case 9: + return SUSPENDED_DATA; + case 0: + return STATEDATA_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public StateDataCase getStateDataCase() { + return StateDataCase.forNumber(stateDataCase_); + } + + public static final int STATE_FIELD_NUMBER = 1; + private int state_ = 0; + /** + * + * + *
    +   * Output only. State of the QueuedResource request.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.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. State of the QueuedResource request.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.State getState() { + com.google.cloud.tpu.v2.QueuedResourceState.State result = + com.google.cloud.tpu.v2.QueuedResourceState.State.forNumber(state_); + return result == null ? com.google.cloud.tpu.v2.QueuedResourceState.State.UNRECOGNIZED : result; + } + + public static final int CREATING_DATA_FIELD_NUMBER = 2; + /** + * + * + *
    +   * Output only. Further data for the creating state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.CreatingData creating_data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the creatingData field is set. + */ + @java.lang.Override + public boolean hasCreatingData() { + return stateDataCase_ == 2; + } + /** + * + * + *
    +   * Output only. Further data for the creating state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.CreatingData creating_data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The creatingData. + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.CreatingData getCreatingData() { + if (stateDataCase_ == 2) { + return (com.google.cloud.tpu.v2.QueuedResourceState.CreatingData) stateData_; + } + return com.google.cloud.tpu.v2.QueuedResourceState.CreatingData.getDefaultInstance(); + } + /** + * + * + *
    +   * Output only. Further data for the creating state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.CreatingData creating_data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.CreatingDataOrBuilder + getCreatingDataOrBuilder() { + if (stateDataCase_ == 2) { + return (com.google.cloud.tpu.v2.QueuedResourceState.CreatingData) stateData_; + } + return com.google.cloud.tpu.v2.QueuedResourceState.CreatingData.getDefaultInstance(); + } + + public static final int ACCEPTED_DATA_FIELD_NUMBER = 3; + /** + * + * + *
    +   * Output only. Further data for the accepted state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.AcceptedData accepted_data = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the acceptedData field is set. + */ + @java.lang.Override + public boolean hasAcceptedData() { + return stateDataCase_ == 3; + } + /** + * + * + *
    +   * Output only. Further data for the accepted state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.AcceptedData accepted_data = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The acceptedData. + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData getAcceptedData() { + if (stateDataCase_ == 3) { + return (com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData) stateData_; + } + return com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData.getDefaultInstance(); + } + /** + * + * + *
    +   * Output only. Further data for the accepted state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.AcceptedData accepted_data = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.AcceptedDataOrBuilder + getAcceptedDataOrBuilder() { + if (stateDataCase_ == 3) { + return (com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData) stateData_; + } + return com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData.getDefaultInstance(); + } + + public static final int PROVISIONING_DATA_FIELD_NUMBER = 4; + /** + * + * + *
    +   * Output only. Further data for the provisioning state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.ProvisioningData provisioning_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the provisioningData field is set. + */ + @java.lang.Override + public boolean hasProvisioningData() { + return stateDataCase_ == 4; + } + /** + * + * + *
    +   * Output only. Further data for the provisioning state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.ProvisioningData provisioning_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The provisioningData. + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData getProvisioningData() { + if (stateDataCase_ == 4) { + return (com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData) stateData_; + } + return com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData.getDefaultInstance(); + } + /** + * + * + *
    +   * Output only. Further data for the provisioning state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.ProvisioningData provisioning_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningDataOrBuilder + getProvisioningDataOrBuilder() { + if (stateDataCase_ == 4) { + return (com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData) stateData_; + } + return com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData.getDefaultInstance(); + } + + public static final int FAILED_DATA_FIELD_NUMBER = 5; + /** + * + * + *
    +   * Output only. Further data for the failed state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.FailedData failed_data = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the failedData field is set. + */ + @java.lang.Override + public boolean hasFailedData() { + return stateDataCase_ == 5; + } + /** + * + * + *
    +   * Output only. Further data for the failed state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.FailedData failed_data = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The failedData. + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.FailedData getFailedData() { + if (stateDataCase_ == 5) { + return (com.google.cloud.tpu.v2.QueuedResourceState.FailedData) stateData_; + } + return com.google.cloud.tpu.v2.QueuedResourceState.FailedData.getDefaultInstance(); + } + /** + * + * + *
    +   * Output only. Further data for the failed state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.FailedData failed_data = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.FailedDataOrBuilder getFailedDataOrBuilder() { + if (stateDataCase_ == 5) { + return (com.google.cloud.tpu.v2.QueuedResourceState.FailedData) stateData_; + } + return com.google.cloud.tpu.v2.QueuedResourceState.FailedData.getDefaultInstance(); + } + + public static final int DELETING_DATA_FIELD_NUMBER = 6; + /** + * + * + *
    +   * Output only. Further data for the deleting state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.DeletingData deleting_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deletingData field is set. + */ + @java.lang.Override + public boolean hasDeletingData() { + return stateDataCase_ == 6; + } + /** + * + * + *
    +   * Output only. Further data for the deleting state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.DeletingData deleting_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deletingData. + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.DeletingData getDeletingData() { + if (stateDataCase_ == 6) { + return (com.google.cloud.tpu.v2.QueuedResourceState.DeletingData) stateData_; + } + return com.google.cloud.tpu.v2.QueuedResourceState.DeletingData.getDefaultInstance(); + } + /** + * + * + *
    +   * Output only. Further data for the deleting state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.DeletingData deleting_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.DeletingDataOrBuilder + getDeletingDataOrBuilder() { + if (stateDataCase_ == 6) { + return (com.google.cloud.tpu.v2.QueuedResourceState.DeletingData) stateData_; + } + return com.google.cloud.tpu.v2.QueuedResourceState.DeletingData.getDefaultInstance(); + } + + public static final int ACTIVE_DATA_FIELD_NUMBER = 7; + /** + * + * + *
    +   * Output only. Further data for the active state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.ActiveData active_data = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the activeData field is set. + */ + @java.lang.Override + public boolean hasActiveData() { + return stateDataCase_ == 7; + } + /** + * + * + *
    +   * Output only. Further data for the active state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.ActiveData active_data = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The activeData. + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.ActiveData getActiveData() { + if (stateDataCase_ == 7) { + return (com.google.cloud.tpu.v2.QueuedResourceState.ActiveData) stateData_; + } + return com.google.cloud.tpu.v2.QueuedResourceState.ActiveData.getDefaultInstance(); + } + /** + * + * + *
    +   * Output only. Further data for the active state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.ActiveData active_data = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.ActiveDataOrBuilder getActiveDataOrBuilder() { + if (stateDataCase_ == 7) { + return (com.google.cloud.tpu.v2.QueuedResourceState.ActiveData) stateData_; + } + return com.google.cloud.tpu.v2.QueuedResourceState.ActiveData.getDefaultInstance(); + } + + public static final int SUSPENDING_DATA_FIELD_NUMBER = 8; + /** + * + * + *
    +   * Output only. Further data for the suspending state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.SuspendingData suspending_data = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the suspendingData field is set. + */ + @java.lang.Override + public boolean hasSuspendingData() { + return stateDataCase_ == 8; + } + /** + * + * + *
    +   * Output only. Further data for the suspending state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.SuspendingData suspending_data = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The suspendingData. + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData getSuspendingData() { + if (stateDataCase_ == 8) { + return (com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData) stateData_; + } + return com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData.getDefaultInstance(); + } + /** + * + * + *
    +   * Output only. Further data for the suspending state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.SuspendingData suspending_data = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.SuspendingDataOrBuilder + getSuspendingDataOrBuilder() { + if (stateDataCase_ == 8) { + return (com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData) stateData_; + } + return com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData.getDefaultInstance(); + } + + public static final int SUSPENDED_DATA_FIELD_NUMBER = 9; + /** + * + * + *
    +   * Output only. Further data for the suspended state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.SuspendedData suspended_data = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the suspendedData field is set. + */ + @java.lang.Override + public boolean hasSuspendedData() { + return stateDataCase_ == 9; + } + /** + * + * + *
    +   * Output only. Further data for the suspended state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.SuspendedData suspended_data = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The suspendedData. + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData getSuspendedData() { + if (stateDataCase_ == 9) { + return (com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData) stateData_; + } + return com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData.getDefaultInstance(); + } + /** + * + * + *
    +   * Output only. Further data for the suspended state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.SuspendedData suspended_data = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.SuspendedDataOrBuilder + getSuspendedDataOrBuilder() { + if (stateDataCase_ == 9) { + return (com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData) stateData_; + } + return com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData.getDefaultInstance(); + } + + public static final int STATE_INITIATOR_FIELD_NUMBER = 10; + private int stateInitiator_ = 0; + /** + * + * + *
    +   * Output only. The initiator of the QueuedResources's current state. Used to
    +   * indicate whether the SUSPENDING/SUSPENDED state was initiated by the user
    +   * or the service.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.StateInitiator state_initiator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for stateInitiator. + */ + @java.lang.Override + public int getStateInitiatorValue() { + return stateInitiator_; + } + /** + * + * + *
    +   * Output only. The initiator of the QueuedResources's current state. Used to
    +   * indicate whether the SUSPENDING/SUSPENDED state was initiated by the user
    +   * or the service.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.StateInitiator state_initiator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The stateInitiator. + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.StateInitiator getStateInitiator() { + com.google.cloud.tpu.v2.QueuedResourceState.StateInitiator result = + com.google.cloud.tpu.v2.QueuedResourceState.StateInitiator.forNumber(stateInitiator_); + return result == null + ? com.google.cloud.tpu.v2.QueuedResourceState.StateInitiator.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 (state_ != com.google.cloud.tpu.v2.QueuedResourceState.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, state_); + } + if (stateDataCase_ == 2) { + output.writeMessage(2, (com.google.cloud.tpu.v2.QueuedResourceState.CreatingData) stateData_); + } + if (stateDataCase_ == 3) { + output.writeMessage(3, (com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData) stateData_); + } + if (stateDataCase_ == 4) { + output.writeMessage( + 4, (com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData) stateData_); + } + if (stateDataCase_ == 5) { + output.writeMessage(5, (com.google.cloud.tpu.v2.QueuedResourceState.FailedData) stateData_); + } + if (stateDataCase_ == 6) { + output.writeMessage(6, (com.google.cloud.tpu.v2.QueuedResourceState.DeletingData) stateData_); + } + if (stateDataCase_ == 7) { + output.writeMessage(7, (com.google.cloud.tpu.v2.QueuedResourceState.ActiveData) stateData_); + } + if (stateDataCase_ == 8) { + output.writeMessage( + 8, (com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData) stateData_); + } + if (stateDataCase_ == 9) { + output.writeMessage( + 9, (com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData) stateData_); + } + if (stateInitiator_ + != com.google.cloud.tpu.v2.QueuedResourceState.StateInitiator.STATE_INITIATOR_UNSPECIFIED + .getNumber()) { + output.writeEnum(10, stateInitiator_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (state_ != com.google.cloud.tpu.v2.QueuedResourceState.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + } + if (stateDataCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.tpu.v2.QueuedResourceState.CreatingData) stateData_); + } + if (stateDataCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData) stateData_); + } + if (stateDataCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData) stateData_); + } + if (stateDataCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.tpu.v2.QueuedResourceState.FailedData) stateData_); + } + if (stateDataCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.tpu.v2.QueuedResourceState.DeletingData) stateData_); + } + if (stateDataCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.cloud.tpu.v2.QueuedResourceState.ActiveData) stateData_); + } + if (stateDataCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData) stateData_); + } + if (stateDataCase_ == 9) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData) stateData_); + } + if (stateInitiator_ + != com.google.cloud.tpu.v2.QueuedResourceState.StateInitiator.STATE_INITIATOR_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, stateInitiator_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.tpu.v2.QueuedResourceState)) { + return super.equals(obj); + } + com.google.cloud.tpu.v2.QueuedResourceState other = + (com.google.cloud.tpu.v2.QueuedResourceState) obj; + + if (state_ != other.state_) return false; + if (stateInitiator_ != other.stateInitiator_) return false; + if (!getStateDataCase().equals(other.getStateDataCase())) return false; + switch (stateDataCase_) { + case 2: + if (!getCreatingData().equals(other.getCreatingData())) return false; + break; + case 3: + if (!getAcceptedData().equals(other.getAcceptedData())) return false; + break; + case 4: + if (!getProvisioningData().equals(other.getProvisioningData())) return false; + break; + case 5: + if (!getFailedData().equals(other.getFailedData())) return false; + break; + case 6: + if (!getDeletingData().equals(other.getDeletingData())) return false; + break; + case 7: + if (!getActiveData().equals(other.getActiveData())) return false; + break; + case 8: + if (!getSuspendingData().equals(other.getSuspendingData())) return false; + break; + case 9: + if (!getSuspendedData().equals(other.getSuspendedData())) 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) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + STATE_INITIATOR_FIELD_NUMBER; + hash = (53 * hash) + stateInitiator_; + switch (stateDataCase_) { + case 2: + hash = (37 * hash) + CREATING_DATA_FIELD_NUMBER; + hash = (53 * hash) + getCreatingData().hashCode(); + break; + case 3: + hash = (37 * hash) + ACCEPTED_DATA_FIELD_NUMBER; + hash = (53 * hash) + getAcceptedData().hashCode(); + break; + case 4: + hash = (37 * hash) + PROVISIONING_DATA_FIELD_NUMBER; + hash = (53 * hash) + getProvisioningData().hashCode(); + break; + case 5: + hash = (37 * hash) + FAILED_DATA_FIELD_NUMBER; + hash = (53 * hash) + getFailedData().hashCode(); + break; + case 6: + hash = (37 * hash) + DELETING_DATA_FIELD_NUMBER; + hash = (53 * hash) + getDeletingData().hashCode(); + break; + case 7: + hash = (37 * hash) + ACTIVE_DATA_FIELD_NUMBER; + hash = (53 * hash) + getActiveData().hashCode(); + break; + case 8: + hash = (37 * hash) + SUSPENDING_DATA_FIELD_NUMBER; + hash = (53 * hash) + getSuspendingData().hashCode(); + break; + case 9: + hash = (37 * hash) + SUSPENDED_DATA_FIELD_NUMBER; + hash = (53 * hash) + getSuspendedData().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.tpu.v2.QueuedResourceState parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.tpu.v2.QueuedResourceState prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * QueuedResourceState defines the details of the QueuedResource request.
    +   * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.QueuedResourceState} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.QueuedResourceState) + com.google.cloud.tpu.v2.QueuedResourceStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.QueuedResourceState.class, + com.google.cloud.tpu.v2.QueuedResourceState.Builder.class); + } + + // Construct using com.google.cloud.tpu.v2.QueuedResourceState.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; + if (creatingDataBuilder_ != null) { + creatingDataBuilder_.clear(); + } + if (acceptedDataBuilder_ != null) { + acceptedDataBuilder_.clear(); + } + if (provisioningDataBuilder_ != null) { + provisioningDataBuilder_.clear(); + } + if (failedDataBuilder_ != null) { + failedDataBuilder_.clear(); + } + if (deletingDataBuilder_ != null) { + deletingDataBuilder_.clear(); + } + if (activeDataBuilder_ != null) { + activeDataBuilder_.clear(); + } + if (suspendingDataBuilder_ != null) { + suspendingDataBuilder_.clear(); + } + if (suspendedDataBuilder_ != null) { + suspendedDataBuilder_.clear(); + } + stateInitiator_ = 0; + stateDataCase_ = 0; + stateData_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_QueuedResourceState_descriptor; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState getDefaultInstanceForType() { + return com.google.cloud.tpu.v2.QueuedResourceState.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState build() { + com.google.cloud.tpu.v2.QueuedResourceState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState buildPartial() { + com.google.cloud.tpu.v2.QueuedResourceState result = + new com.google.cloud.tpu.v2.QueuedResourceState(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.tpu.v2.QueuedResourceState result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.stateInitiator_ = stateInitiator_; + } + } + + private void buildPartialOneofs(com.google.cloud.tpu.v2.QueuedResourceState result) { + result.stateDataCase_ = stateDataCase_; + result.stateData_ = this.stateData_; + if (stateDataCase_ == 2 && creatingDataBuilder_ != null) { + result.stateData_ = creatingDataBuilder_.build(); + } + if (stateDataCase_ == 3 && acceptedDataBuilder_ != null) { + result.stateData_ = acceptedDataBuilder_.build(); + } + if (stateDataCase_ == 4 && provisioningDataBuilder_ != null) { + result.stateData_ = provisioningDataBuilder_.build(); + } + if (stateDataCase_ == 5 && failedDataBuilder_ != null) { + result.stateData_ = failedDataBuilder_.build(); + } + if (stateDataCase_ == 6 && deletingDataBuilder_ != null) { + result.stateData_ = deletingDataBuilder_.build(); + } + if (stateDataCase_ == 7 && activeDataBuilder_ != null) { + result.stateData_ = activeDataBuilder_.build(); + } + if (stateDataCase_ == 8 && suspendingDataBuilder_ != null) { + result.stateData_ = suspendingDataBuilder_.build(); + } + if (stateDataCase_ == 9 && suspendedDataBuilder_ != null) { + result.stateData_ = suspendedDataBuilder_.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.tpu.v2.QueuedResourceState) { + return mergeFrom((com.google.cloud.tpu.v2.QueuedResourceState) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.tpu.v2.QueuedResourceState other) { + if (other == com.google.cloud.tpu.v2.QueuedResourceState.getDefaultInstance()) return this; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.stateInitiator_ != 0) { + setStateInitiatorValue(other.getStateInitiatorValue()); + } + switch (other.getStateDataCase()) { + case CREATING_DATA: + { + mergeCreatingData(other.getCreatingData()); + break; + } + case ACCEPTED_DATA: + { + mergeAcceptedData(other.getAcceptedData()); + break; + } + case PROVISIONING_DATA: + { + mergeProvisioningData(other.getProvisioningData()); + break; + } + case FAILED_DATA: + { + mergeFailedData(other.getFailedData()); + break; + } + case DELETING_DATA: + { + mergeDeletingData(other.getDeletingData()); + break; + } + case ACTIVE_DATA: + { + mergeActiveData(other.getActiveData()); + break; + } + case SUSPENDING_DATA: + { + mergeSuspendingData(other.getSuspendingData()); + break; + } + case SUSPENDED_DATA: + { + mergeSuspendedData(other.getSuspendedData()); + break; + } + case STATEDATA_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: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage(getCreatingDataFieldBuilder().getBuilder(), extensionRegistry); + stateDataCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getAcceptedDataFieldBuilder().getBuilder(), extensionRegistry); + stateDataCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + getProvisioningDataFieldBuilder().getBuilder(), extensionRegistry); + stateDataCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getFailedDataFieldBuilder().getBuilder(), extensionRegistry); + stateDataCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage(getDeletingDataFieldBuilder().getBuilder(), extensionRegistry); + stateDataCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage(getActiveDataFieldBuilder().getBuilder(), extensionRegistry); + stateDataCase_ = 7; + break; + } // case 58 + case 66: + { + input.readMessage(getSuspendingDataFieldBuilder().getBuilder(), extensionRegistry); + stateDataCase_ = 8; + break; + } // case 66 + case 74: + { + input.readMessage(getSuspendedDataFieldBuilder().getBuilder(), extensionRegistry); + stateDataCase_ = 9; + break; + } // case 74 + case 80: + { + stateInitiator_ = input.readEnum(); + bitField0_ |= 0x00000200; + break; + } // case 80 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int stateDataCase_ = 0; + private java.lang.Object stateData_; + + public StateDataCase getStateDataCase() { + return StateDataCase.forNumber(stateDataCase_); + } + + public Builder clearStateData() { + stateDataCase_ = 0; + stateData_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private int state_ = 0; + /** + * + * + *
    +     * Output only. State of the QueuedResource request.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.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. State of the QueuedResource request.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.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. State of the QueuedResource request.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.State getState() { + com.google.cloud.tpu.v2.QueuedResourceState.State result = + com.google.cloud.tpu.v2.QueuedResourceState.State.forNumber(state_); + return result == null + ? com.google.cloud.tpu.v2.QueuedResourceState.State.UNRECOGNIZED + : result; + } + /** + * + * + *
    +     * Output only. State of the QueuedResource request.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.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.tpu.v2.QueuedResourceState.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. State of the QueuedResource request.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.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 com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResourceState.CreatingData, + com.google.cloud.tpu.v2.QueuedResourceState.CreatingData.Builder, + com.google.cloud.tpu.v2.QueuedResourceState.CreatingDataOrBuilder> + creatingDataBuilder_; + /** + * + * + *
    +     * Output only. Further data for the creating state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.CreatingData creating_data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the creatingData field is set. + */ + @java.lang.Override + public boolean hasCreatingData() { + return stateDataCase_ == 2; + } + /** + * + * + *
    +     * Output only. Further data for the creating state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.CreatingData creating_data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The creatingData. + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.CreatingData getCreatingData() { + if (creatingDataBuilder_ == null) { + if (stateDataCase_ == 2) { + return (com.google.cloud.tpu.v2.QueuedResourceState.CreatingData) stateData_; + } + return com.google.cloud.tpu.v2.QueuedResourceState.CreatingData.getDefaultInstance(); + } else { + if (stateDataCase_ == 2) { + return creatingDataBuilder_.getMessage(); + } + return com.google.cloud.tpu.v2.QueuedResourceState.CreatingData.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Output only. Further data for the creating state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.CreatingData creating_data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreatingData(com.google.cloud.tpu.v2.QueuedResourceState.CreatingData value) { + if (creatingDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stateData_ = value; + onChanged(); + } else { + creatingDataBuilder_.setMessage(value); + } + stateDataCase_ = 2; + return this; + } + /** + * + * + *
    +     * Output only. Further data for the creating state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.CreatingData creating_data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreatingData( + com.google.cloud.tpu.v2.QueuedResourceState.CreatingData.Builder builderForValue) { + if (creatingDataBuilder_ == null) { + stateData_ = builderForValue.build(); + onChanged(); + } else { + creatingDataBuilder_.setMessage(builderForValue.build()); + } + stateDataCase_ = 2; + return this; + } + /** + * + * + *
    +     * Output only. Further data for the creating state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.CreatingData creating_data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreatingData( + com.google.cloud.tpu.v2.QueuedResourceState.CreatingData value) { + if (creatingDataBuilder_ == null) { + if (stateDataCase_ == 2 + && stateData_ + != com.google.cloud.tpu.v2.QueuedResourceState.CreatingData.getDefaultInstance()) { + stateData_ = + com.google.cloud.tpu.v2.QueuedResourceState.CreatingData.newBuilder( + (com.google.cloud.tpu.v2.QueuedResourceState.CreatingData) stateData_) + .mergeFrom(value) + .buildPartial(); + } else { + stateData_ = value; + } + onChanged(); + } else { + if (stateDataCase_ == 2) { + creatingDataBuilder_.mergeFrom(value); + } else { + creatingDataBuilder_.setMessage(value); + } + } + stateDataCase_ = 2; + return this; + } + /** + * + * + *
    +     * Output only. Further data for the creating state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.CreatingData creating_data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreatingData() { + if (creatingDataBuilder_ == null) { + if (stateDataCase_ == 2) { + stateDataCase_ = 0; + stateData_ = null; + onChanged(); + } + } else { + if (stateDataCase_ == 2) { + stateDataCase_ = 0; + stateData_ = null; + } + creatingDataBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * Output only. Further data for the creating state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.CreatingData creating_data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.tpu.v2.QueuedResourceState.CreatingData.Builder + getCreatingDataBuilder() { + return getCreatingDataFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Output only. Further data for the creating state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.CreatingData creating_data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.CreatingDataOrBuilder + getCreatingDataOrBuilder() { + if ((stateDataCase_ == 2) && (creatingDataBuilder_ != null)) { + return creatingDataBuilder_.getMessageOrBuilder(); + } else { + if (stateDataCase_ == 2) { + return (com.google.cloud.tpu.v2.QueuedResourceState.CreatingData) stateData_; + } + return com.google.cloud.tpu.v2.QueuedResourceState.CreatingData.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Output only. Further data for the creating state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.CreatingData creating_data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResourceState.CreatingData, + com.google.cloud.tpu.v2.QueuedResourceState.CreatingData.Builder, + com.google.cloud.tpu.v2.QueuedResourceState.CreatingDataOrBuilder> + getCreatingDataFieldBuilder() { + if (creatingDataBuilder_ == null) { + if (!(stateDataCase_ == 2)) { + stateData_ = + com.google.cloud.tpu.v2.QueuedResourceState.CreatingData.getDefaultInstance(); + } + creatingDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResourceState.CreatingData, + com.google.cloud.tpu.v2.QueuedResourceState.CreatingData.Builder, + com.google.cloud.tpu.v2.QueuedResourceState.CreatingDataOrBuilder>( + (com.google.cloud.tpu.v2.QueuedResourceState.CreatingData) stateData_, + getParentForChildren(), + isClean()); + stateData_ = null; + } + stateDataCase_ = 2; + onChanged(); + return creatingDataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData, + com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData.Builder, + com.google.cloud.tpu.v2.QueuedResourceState.AcceptedDataOrBuilder> + acceptedDataBuilder_; + /** + * + * + *
    +     * Output only. Further data for the accepted state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.AcceptedData accepted_data = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the acceptedData field is set. + */ + @java.lang.Override + public boolean hasAcceptedData() { + return stateDataCase_ == 3; + } + /** + * + * + *
    +     * Output only. Further data for the accepted state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.AcceptedData accepted_data = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The acceptedData. + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData getAcceptedData() { + if (acceptedDataBuilder_ == null) { + if (stateDataCase_ == 3) { + return (com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData) stateData_; + } + return com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData.getDefaultInstance(); + } else { + if (stateDataCase_ == 3) { + return acceptedDataBuilder_.getMessage(); + } + return com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Output only. Further data for the accepted state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.AcceptedData accepted_data = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAcceptedData(com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData value) { + if (acceptedDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stateData_ = value; + onChanged(); + } else { + acceptedDataBuilder_.setMessage(value); + } + stateDataCase_ = 3; + return this; + } + /** + * + * + *
    +     * Output only. Further data for the accepted state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.AcceptedData accepted_data = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAcceptedData( + com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData.Builder builderForValue) { + if (acceptedDataBuilder_ == null) { + stateData_ = builderForValue.build(); + onChanged(); + } else { + acceptedDataBuilder_.setMessage(builderForValue.build()); + } + stateDataCase_ = 3; + return this; + } + /** + * + * + *
    +     * Output only. Further data for the accepted state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.AcceptedData accepted_data = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeAcceptedData( + com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData value) { + if (acceptedDataBuilder_ == null) { + if (stateDataCase_ == 3 + && stateData_ + != com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData.getDefaultInstance()) { + stateData_ = + com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData.newBuilder( + (com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData) stateData_) + .mergeFrom(value) + .buildPartial(); + } else { + stateData_ = value; + } + onChanged(); + } else { + if (stateDataCase_ == 3) { + acceptedDataBuilder_.mergeFrom(value); + } else { + acceptedDataBuilder_.setMessage(value); + } + } + stateDataCase_ = 3; + return this; + } + /** + * + * + *
    +     * Output only. Further data for the accepted state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.AcceptedData accepted_data = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAcceptedData() { + if (acceptedDataBuilder_ == null) { + if (stateDataCase_ == 3) { + stateDataCase_ = 0; + stateData_ = null; + onChanged(); + } + } else { + if (stateDataCase_ == 3) { + stateDataCase_ = 0; + stateData_ = null; + } + acceptedDataBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * Output only. Further data for the accepted state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.AcceptedData accepted_data = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData.Builder + getAcceptedDataBuilder() { + return getAcceptedDataFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Output only. Further data for the accepted state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.AcceptedData accepted_data = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.AcceptedDataOrBuilder + getAcceptedDataOrBuilder() { + if ((stateDataCase_ == 3) && (acceptedDataBuilder_ != null)) { + return acceptedDataBuilder_.getMessageOrBuilder(); + } else { + if (stateDataCase_ == 3) { + return (com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData) stateData_; + } + return com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Output only. Further data for the accepted state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.AcceptedData accepted_data = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData, + com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData.Builder, + com.google.cloud.tpu.v2.QueuedResourceState.AcceptedDataOrBuilder> + getAcceptedDataFieldBuilder() { + if (acceptedDataBuilder_ == null) { + if (!(stateDataCase_ == 3)) { + stateData_ = + com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData.getDefaultInstance(); + } + acceptedDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData, + com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData.Builder, + com.google.cloud.tpu.v2.QueuedResourceState.AcceptedDataOrBuilder>( + (com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData) stateData_, + getParentForChildren(), + isClean()); + stateData_ = null; + } + stateDataCase_ = 3; + onChanged(); + return acceptedDataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData, + com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData.Builder, + com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningDataOrBuilder> + provisioningDataBuilder_; + /** + * + * + *
    +     * Output only. Further data for the provisioning state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.ProvisioningData provisioning_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the provisioningData field is set. + */ + @java.lang.Override + public boolean hasProvisioningData() { + return stateDataCase_ == 4; + } + /** + * + * + *
    +     * Output only. Further data for the provisioning state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.ProvisioningData provisioning_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The provisioningData. + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData getProvisioningData() { + if (provisioningDataBuilder_ == null) { + if (stateDataCase_ == 4) { + return (com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData) stateData_; + } + return com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData.getDefaultInstance(); + } else { + if (stateDataCase_ == 4) { + return provisioningDataBuilder_.getMessage(); + } + return com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Output only. Further data for the provisioning state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.ProvisioningData provisioning_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setProvisioningData( + com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData value) { + if (provisioningDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stateData_ = value; + onChanged(); + } else { + provisioningDataBuilder_.setMessage(value); + } + stateDataCase_ = 4; + return this; + } + /** + * + * + *
    +     * Output only. Further data for the provisioning state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.ProvisioningData provisioning_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setProvisioningData( + com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData.Builder builderForValue) { + if (provisioningDataBuilder_ == null) { + stateData_ = builderForValue.build(); + onChanged(); + } else { + provisioningDataBuilder_.setMessage(builderForValue.build()); + } + stateDataCase_ = 4; + return this; + } + /** + * + * + *
    +     * Output only. Further data for the provisioning state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.ProvisioningData provisioning_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeProvisioningData( + com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData value) { + if (provisioningDataBuilder_ == null) { + if (stateDataCase_ == 4 + && stateData_ + != com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData + .getDefaultInstance()) { + stateData_ = + com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData.newBuilder( + (com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData) stateData_) + .mergeFrom(value) + .buildPartial(); + } else { + stateData_ = value; + } + onChanged(); + } else { + if (stateDataCase_ == 4) { + provisioningDataBuilder_.mergeFrom(value); + } else { + provisioningDataBuilder_.setMessage(value); + } + } + stateDataCase_ = 4; + return this; + } + /** + * + * + *
    +     * Output only. Further data for the provisioning state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.ProvisioningData provisioning_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearProvisioningData() { + if (provisioningDataBuilder_ == null) { + if (stateDataCase_ == 4) { + stateDataCase_ = 0; + stateData_ = null; + onChanged(); + } + } else { + if (stateDataCase_ == 4) { + stateDataCase_ = 0; + stateData_ = null; + } + provisioningDataBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * Output only. Further data for the provisioning state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.ProvisioningData provisioning_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData.Builder + getProvisioningDataBuilder() { + return getProvisioningDataFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Output only. Further data for the provisioning state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.ProvisioningData provisioning_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningDataOrBuilder + getProvisioningDataOrBuilder() { + if ((stateDataCase_ == 4) && (provisioningDataBuilder_ != null)) { + return provisioningDataBuilder_.getMessageOrBuilder(); + } else { + if (stateDataCase_ == 4) { + return (com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData) stateData_; + } + return com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Output only. Further data for the provisioning state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.ProvisioningData provisioning_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData, + com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData.Builder, + com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningDataOrBuilder> + getProvisioningDataFieldBuilder() { + if (provisioningDataBuilder_ == null) { + if (!(stateDataCase_ == 4)) { + stateData_ = + com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData.getDefaultInstance(); + } + provisioningDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData, + com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData.Builder, + com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningDataOrBuilder>( + (com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData) stateData_, + getParentForChildren(), + isClean()); + stateData_ = null; + } + stateDataCase_ = 4; + onChanged(); + return provisioningDataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResourceState.FailedData, + com.google.cloud.tpu.v2.QueuedResourceState.FailedData.Builder, + com.google.cloud.tpu.v2.QueuedResourceState.FailedDataOrBuilder> + failedDataBuilder_; + /** + * + * + *
    +     * Output only. Further data for the failed state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.FailedData failed_data = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the failedData field is set. + */ + @java.lang.Override + public boolean hasFailedData() { + return stateDataCase_ == 5; + } + /** + * + * + *
    +     * Output only. Further data for the failed state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.FailedData failed_data = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The failedData. + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.FailedData getFailedData() { + if (failedDataBuilder_ == null) { + if (stateDataCase_ == 5) { + return (com.google.cloud.tpu.v2.QueuedResourceState.FailedData) stateData_; + } + return com.google.cloud.tpu.v2.QueuedResourceState.FailedData.getDefaultInstance(); + } else { + if (stateDataCase_ == 5) { + return failedDataBuilder_.getMessage(); + } + return com.google.cloud.tpu.v2.QueuedResourceState.FailedData.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Output only. Further data for the failed state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.FailedData failed_data = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setFailedData(com.google.cloud.tpu.v2.QueuedResourceState.FailedData value) { + if (failedDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stateData_ = value; + onChanged(); + } else { + failedDataBuilder_.setMessage(value); + } + stateDataCase_ = 5; + return this; + } + /** + * + * + *
    +     * Output only. Further data for the failed state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.FailedData failed_data = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setFailedData( + com.google.cloud.tpu.v2.QueuedResourceState.FailedData.Builder builderForValue) { + if (failedDataBuilder_ == null) { + stateData_ = builderForValue.build(); + onChanged(); + } else { + failedDataBuilder_.setMessage(builderForValue.build()); + } + stateDataCase_ = 5; + return this; + } + /** + * + * + *
    +     * Output only. Further data for the failed state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.FailedData failed_data = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeFailedData(com.google.cloud.tpu.v2.QueuedResourceState.FailedData value) { + if (failedDataBuilder_ == null) { + if (stateDataCase_ == 5 + && stateData_ + != com.google.cloud.tpu.v2.QueuedResourceState.FailedData.getDefaultInstance()) { + stateData_ = + com.google.cloud.tpu.v2.QueuedResourceState.FailedData.newBuilder( + (com.google.cloud.tpu.v2.QueuedResourceState.FailedData) stateData_) + .mergeFrom(value) + .buildPartial(); + } else { + stateData_ = value; + } + onChanged(); + } else { + if (stateDataCase_ == 5) { + failedDataBuilder_.mergeFrom(value); + } else { + failedDataBuilder_.setMessage(value); + } + } + stateDataCase_ = 5; + return this; + } + /** + * + * + *
    +     * Output only. Further data for the failed state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.FailedData failed_data = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearFailedData() { + if (failedDataBuilder_ == null) { + if (stateDataCase_ == 5) { + stateDataCase_ = 0; + stateData_ = null; + onChanged(); + } + } else { + if (stateDataCase_ == 5) { + stateDataCase_ = 0; + stateData_ = null; + } + failedDataBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * Output only. Further data for the failed state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.FailedData failed_data = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.tpu.v2.QueuedResourceState.FailedData.Builder getFailedDataBuilder() { + return getFailedDataFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Output only. Further data for the failed state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.FailedData failed_data = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.FailedDataOrBuilder + getFailedDataOrBuilder() { + if ((stateDataCase_ == 5) && (failedDataBuilder_ != null)) { + return failedDataBuilder_.getMessageOrBuilder(); + } else { + if (stateDataCase_ == 5) { + return (com.google.cloud.tpu.v2.QueuedResourceState.FailedData) stateData_; + } + return com.google.cloud.tpu.v2.QueuedResourceState.FailedData.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Output only. Further data for the failed state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.FailedData failed_data = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResourceState.FailedData, + com.google.cloud.tpu.v2.QueuedResourceState.FailedData.Builder, + com.google.cloud.tpu.v2.QueuedResourceState.FailedDataOrBuilder> + getFailedDataFieldBuilder() { + if (failedDataBuilder_ == null) { + if (!(stateDataCase_ == 5)) { + stateData_ = com.google.cloud.tpu.v2.QueuedResourceState.FailedData.getDefaultInstance(); + } + failedDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResourceState.FailedData, + com.google.cloud.tpu.v2.QueuedResourceState.FailedData.Builder, + com.google.cloud.tpu.v2.QueuedResourceState.FailedDataOrBuilder>( + (com.google.cloud.tpu.v2.QueuedResourceState.FailedData) stateData_, + getParentForChildren(), + isClean()); + stateData_ = null; + } + stateDataCase_ = 5; + onChanged(); + return failedDataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResourceState.DeletingData, + com.google.cloud.tpu.v2.QueuedResourceState.DeletingData.Builder, + com.google.cloud.tpu.v2.QueuedResourceState.DeletingDataOrBuilder> + deletingDataBuilder_; + /** + * + * + *
    +     * Output only. Further data for the deleting state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.DeletingData deleting_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deletingData field is set. + */ + @java.lang.Override + public boolean hasDeletingData() { + return stateDataCase_ == 6; + } + /** + * + * + *
    +     * Output only. Further data for the deleting state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.DeletingData deleting_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deletingData. + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.DeletingData getDeletingData() { + if (deletingDataBuilder_ == null) { + if (stateDataCase_ == 6) { + return (com.google.cloud.tpu.v2.QueuedResourceState.DeletingData) stateData_; + } + return com.google.cloud.tpu.v2.QueuedResourceState.DeletingData.getDefaultInstance(); + } else { + if (stateDataCase_ == 6) { + return deletingDataBuilder_.getMessage(); + } + return com.google.cloud.tpu.v2.QueuedResourceState.DeletingData.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Output only. Further data for the deleting state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.DeletingData deleting_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeletingData(com.google.cloud.tpu.v2.QueuedResourceState.DeletingData value) { + if (deletingDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stateData_ = value; + onChanged(); + } else { + deletingDataBuilder_.setMessage(value); + } + stateDataCase_ = 6; + return this; + } + /** + * + * + *
    +     * Output only. Further data for the deleting state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.DeletingData deleting_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeletingData( + com.google.cloud.tpu.v2.QueuedResourceState.DeletingData.Builder builderForValue) { + if (deletingDataBuilder_ == null) { + stateData_ = builderForValue.build(); + onChanged(); + } else { + deletingDataBuilder_.setMessage(builderForValue.build()); + } + stateDataCase_ = 6; + return this; + } + /** + * + * + *
    +     * Output only. Further data for the deleting state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.DeletingData deleting_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDeletingData( + com.google.cloud.tpu.v2.QueuedResourceState.DeletingData value) { + if (deletingDataBuilder_ == null) { + if (stateDataCase_ == 6 + && stateData_ + != com.google.cloud.tpu.v2.QueuedResourceState.DeletingData.getDefaultInstance()) { + stateData_ = + com.google.cloud.tpu.v2.QueuedResourceState.DeletingData.newBuilder( + (com.google.cloud.tpu.v2.QueuedResourceState.DeletingData) stateData_) + .mergeFrom(value) + .buildPartial(); + } else { + stateData_ = value; + } + onChanged(); + } else { + if (stateDataCase_ == 6) { + deletingDataBuilder_.mergeFrom(value); + } else { + deletingDataBuilder_.setMessage(value); + } + } + stateDataCase_ = 6; + return this; + } + /** + * + * + *
    +     * Output only. Further data for the deleting state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.DeletingData deleting_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDeletingData() { + if (deletingDataBuilder_ == null) { + if (stateDataCase_ == 6) { + stateDataCase_ = 0; + stateData_ = null; + onChanged(); + } + } else { + if (stateDataCase_ == 6) { + stateDataCase_ = 0; + stateData_ = null; + } + deletingDataBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * Output only. Further data for the deleting state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.DeletingData deleting_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.tpu.v2.QueuedResourceState.DeletingData.Builder + getDeletingDataBuilder() { + return getDeletingDataFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Output only. Further data for the deleting state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.DeletingData deleting_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.DeletingDataOrBuilder + getDeletingDataOrBuilder() { + if ((stateDataCase_ == 6) && (deletingDataBuilder_ != null)) { + return deletingDataBuilder_.getMessageOrBuilder(); + } else { + if (stateDataCase_ == 6) { + return (com.google.cloud.tpu.v2.QueuedResourceState.DeletingData) stateData_; + } + return com.google.cloud.tpu.v2.QueuedResourceState.DeletingData.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Output only. Further data for the deleting state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.DeletingData deleting_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResourceState.DeletingData, + com.google.cloud.tpu.v2.QueuedResourceState.DeletingData.Builder, + com.google.cloud.tpu.v2.QueuedResourceState.DeletingDataOrBuilder> + getDeletingDataFieldBuilder() { + if (deletingDataBuilder_ == null) { + if (!(stateDataCase_ == 6)) { + stateData_ = + com.google.cloud.tpu.v2.QueuedResourceState.DeletingData.getDefaultInstance(); + } + deletingDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResourceState.DeletingData, + com.google.cloud.tpu.v2.QueuedResourceState.DeletingData.Builder, + com.google.cloud.tpu.v2.QueuedResourceState.DeletingDataOrBuilder>( + (com.google.cloud.tpu.v2.QueuedResourceState.DeletingData) stateData_, + getParentForChildren(), + isClean()); + stateData_ = null; + } + stateDataCase_ = 6; + onChanged(); + return deletingDataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResourceState.ActiveData, + com.google.cloud.tpu.v2.QueuedResourceState.ActiveData.Builder, + com.google.cloud.tpu.v2.QueuedResourceState.ActiveDataOrBuilder> + activeDataBuilder_; + /** + * + * + *
    +     * Output only. Further data for the active state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.ActiveData active_data = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the activeData field is set. + */ + @java.lang.Override + public boolean hasActiveData() { + return stateDataCase_ == 7; + } + /** + * + * + *
    +     * Output only. Further data for the active state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.ActiveData active_data = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The activeData. + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.ActiveData getActiveData() { + if (activeDataBuilder_ == null) { + if (stateDataCase_ == 7) { + return (com.google.cloud.tpu.v2.QueuedResourceState.ActiveData) stateData_; + } + return com.google.cloud.tpu.v2.QueuedResourceState.ActiveData.getDefaultInstance(); + } else { + if (stateDataCase_ == 7) { + return activeDataBuilder_.getMessage(); + } + return com.google.cloud.tpu.v2.QueuedResourceState.ActiveData.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Output only. Further data for the active state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.ActiveData active_data = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setActiveData(com.google.cloud.tpu.v2.QueuedResourceState.ActiveData value) { + if (activeDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stateData_ = value; + onChanged(); + } else { + activeDataBuilder_.setMessage(value); + } + stateDataCase_ = 7; + return this; + } + /** + * + * + *
    +     * Output only. Further data for the active state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.ActiveData active_data = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setActiveData( + com.google.cloud.tpu.v2.QueuedResourceState.ActiveData.Builder builderForValue) { + if (activeDataBuilder_ == null) { + stateData_ = builderForValue.build(); + onChanged(); + } else { + activeDataBuilder_.setMessage(builderForValue.build()); + } + stateDataCase_ = 7; + return this; + } + /** + * + * + *
    +     * Output only. Further data for the active state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.ActiveData active_data = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeActiveData(com.google.cloud.tpu.v2.QueuedResourceState.ActiveData value) { + if (activeDataBuilder_ == null) { + if (stateDataCase_ == 7 + && stateData_ + != com.google.cloud.tpu.v2.QueuedResourceState.ActiveData.getDefaultInstance()) { + stateData_ = + com.google.cloud.tpu.v2.QueuedResourceState.ActiveData.newBuilder( + (com.google.cloud.tpu.v2.QueuedResourceState.ActiveData) stateData_) + .mergeFrom(value) + .buildPartial(); + } else { + stateData_ = value; + } + onChanged(); + } else { + if (stateDataCase_ == 7) { + activeDataBuilder_.mergeFrom(value); + } else { + activeDataBuilder_.setMessage(value); + } + } + stateDataCase_ = 7; + return this; + } + /** + * + * + *
    +     * Output only. Further data for the active state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.ActiveData active_data = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearActiveData() { + if (activeDataBuilder_ == null) { + if (stateDataCase_ == 7) { + stateDataCase_ = 0; + stateData_ = null; + onChanged(); + } + } else { + if (stateDataCase_ == 7) { + stateDataCase_ = 0; + stateData_ = null; + } + activeDataBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * Output only. Further data for the active state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.ActiveData active_data = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.tpu.v2.QueuedResourceState.ActiveData.Builder getActiveDataBuilder() { + return getActiveDataFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Output only. Further data for the active state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.ActiveData active_data = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.ActiveDataOrBuilder + getActiveDataOrBuilder() { + if ((stateDataCase_ == 7) && (activeDataBuilder_ != null)) { + return activeDataBuilder_.getMessageOrBuilder(); + } else { + if (stateDataCase_ == 7) { + return (com.google.cloud.tpu.v2.QueuedResourceState.ActiveData) stateData_; + } + return com.google.cloud.tpu.v2.QueuedResourceState.ActiveData.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Output only. Further data for the active state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.ActiveData active_data = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResourceState.ActiveData, + com.google.cloud.tpu.v2.QueuedResourceState.ActiveData.Builder, + com.google.cloud.tpu.v2.QueuedResourceState.ActiveDataOrBuilder> + getActiveDataFieldBuilder() { + if (activeDataBuilder_ == null) { + if (!(stateDataCase_ == 7)) { + stateData_ = com.google.cloud.tpu.v2.QueuedResourceState.ActiveData.getDefaultInstance(); + } + activeDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResourceState.ActiveData, + com.google.cloud.tpu.v2.QueuedResourceState.ActiveData.Builder, + com.google.cloud.tpu.v2.QueuedResourceState.ActiveDataOrBuilder>( + (com.google.cloud.tpu.v2.QueuedResourceState.ActiveData) stateData_, + getParentForChildren(), + isClean()); + stateData_ = null; + } + stateDataCase_ = 7; + onChanged(); + return activeDataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData, + com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData.Builder, + com.google.cloud.tpu.v2.QueuedResourceState.SuspendingDataOrBuilder> + suspendingDataBuilder_; + /** + * + * + *
    +     * Output only. Further data for the suspending state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.SuspendingData suspending_data = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the suspendingData field is set. + */ + @java.lang.Override + public boolean hasSuspendingData() { + return stateDataCase_ == 8; + } + /** + * + * + *
    +     * Output only. Further data for the suspending state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.SuspendingData suspending_data = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The suspendingData. + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData getSuspendingData() { + if (suspendingDataBuilder_ == null) { + if (stateDataCase_ == 8) { + return (com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData) stateData_; + } + return com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData.getDefaultInstance(); + } else { + if (stateDataCase_ == 8) { + return suspendingDataBuilder_.getMessage(); + } + return com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Output only. Further data for the suspending state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.SuspendingData suspending_data = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSuspendingData( + com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData value) { + if (suspendingDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stateData_ = value; + onChanged(); + } else { + suspendingDataBuilder_.setMessage(value); + } + stateDataCase_ = 8; + return this; + } + /** + * + * + *
    +     * Output only. Further data for the suspending state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.SuspendingData suspending_data = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSuspendingData( + com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData.Builder builderForValue) { + if (suspendingDataBuilder_ == null) { + stateData_ = builderForValue.build(); + onChanged(); + } else { + suspendingDataBuilder_.setMessage(builderForValue.build()); + } + stateDataCase_ = 8; + return this; + } + /** + * + * + *
    +     * Output only. Further data for the suspending state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.SuspendingData suspending_data = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSuspendingData( + com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData value) { + if (suspendingDataBuilder_ == null) { + if (stateDataCase_ == 8 + && stateData_ + != com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData + .getDefaultInstance()) { + stateData_ = + com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData.newBuilder( + (com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData) stateData_) + .mergeFrom(value) + .buildPartial(); + } else { + stateData_ = value; + } + onChanged(); + } else { + if (stateDataCase_ == 8) { + suspendingDataBuilder_.mergeFrom(value); + } else { + suspendingDataBuilder_.setMessage(value); + } + } + stateDataCase_ = 8; + return this; + } + /** + * + * + *
    +     * Output only. Further data for the suspending state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.SuspendingData suspending_data = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSuspendingData() { + if (suspendingDataBuilder_ == null) { + if (stateDataCase_ == 8) { + stateDataCase_ = 0; + stateData_ = null; + onChanged(); + } + } else { + if (stateDataCase_ == 8) { + stateDataCase_ = 0; + stateData_ = null; + } + suspendingDataBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * Output only. Further data for the suspending state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.SuspendingData suspending_data = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData.Builder + getSuspendingDataBuilder() { + return getSuspendingDataFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Output only. Further data for the suspending state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.SuspendingData suspending_data = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.SuspendingDataOrBuilder + getSuspendingDataOrBuilder() { + if ((stateDataCase_ == 8) && (suspendingDataBuilder_ != null)) { + return suspendingDataBuilder_.getMessageOrBuilder(); + } else { + if (stateDataCase_ == 8) { + return (com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData) stateData_; + } + return com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Output only. Further data for the suspending state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.SuspendingData suspending_data = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData, + com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData.Builder, + com.google.cloud.tpu.v2.QueuedResourceState.SuspendingDataOrBuilder> + getSuspendingDataFieldBuilder() { + if (suspendingDataBuilder_ == null) { + if (!(stateDataCase_ == 8)) { + stateData_ = + com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData.getDefaultInstance(); + } + suspendingDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData, + com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData.Builder, + com.google.cloud.tpu.v2.QueuedResourceState.SuspendingDataOrBuilder>( + (com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData) stateData_, + getParentForChildren(), + isClean()); + stateData_ = null; + } + stateDataCase_ = 8; + onChanged(); + return suspendingDataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData, + com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData.Builder, + com.google.cloud.tpu.v2.QueuedResourceState.SuspendedDataOrBuilder> + suspendedDataBuilder_; + /** + * + * + *
    +     * Output only. Further data for the suspended state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.SuspendedData suspended_data = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the suspendedData field is set. + */ + @java.lang.Override + public boolean hasSuspendedData() { + return stateDataCase_ == 9; + } + /** + * + * + *
    +     * Output only. Further data for the suspended state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.SuspendedData suspended_data = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The suspendedData. + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData getSuspendedData() { + if (suspendedDataBuilder_ == null) { + if (stateDataCase_ == 9) { + return (com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData) stateData_; + } + return com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData.getDefaultInstance(); + } else { + if (stateDataCase_ == 9) { + return suspendedDataBuilder_.getMessage(); + } + return com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Output only. Further data for the suspended state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.SuspendedData suspended_data = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSuspendedData( + com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData value) { + if (suspendedDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stateData_ = value; + onChanged(); + } else { + suspendedDataBuilder_.setMessage(value); + } + stateDataCase_ = 9; + return this; + } + /** + * + * + *
    +     * Output only. Further data for the suspended state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.SuspendedData suspended_data = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSuspendedData( + com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData.Builder builderForValue) { + if (suspendedDataBuilder_ == null) { + stateData_ = builderForValue.build(); + onChanged(); + } else { + suspendedDataBuilder_.setMessage(builderForValue.build()); + } + stateDataCase_ = 9; + return this; + } + /** + * + * + *
    +     * Output only. Further data for the suspended state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.SuspendedData suspended_data = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSuspendedData( + com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData value) { + if (suspendedDataBuilder_ == null) { + if (stateDataCase_ == 9 + && stateData_ + != com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData.getDefaultInstance()) { + stateData_ = + com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData.newBuilder( + (com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData) stateData_) + .mergeFrom(value) + .buildPartial(); + } else { + stateData_ = value; + } + onChanged(); + } else { + if (stateDataCase_ == 9) { + suspendedDataBuilder_.mergeFrom(value); + } else { + suspendedDataBuilder_.setMessage(value); + } + } + stateDataCase_ = 9; + return this; + } + /** + * + * + *
    +     * Output only. Further data for the suspended state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.SuspendedData suspended_data = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSuspendedData() { + if (suspendedDataBuilder_ == null) { + if (stateDataCase_ == 9) { + stateDataCase_ = 0; + stateData_ = null; + onChanged(); + } + } else { + if (stateDataCase_ == 9) { + stateDataCase_ = 0; + stateData_ = null; + } + suspendedDataBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * Output only. Further data for the suspended state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.SuspendedData suspended_data = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData.Builder + getSuspendedDataBuilder() { + return getSuspendedDataFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Output only. Further data for the suspended state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.SuspendedData suspended_data = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.SuspendedDataOrBuilder + getSuspendedDataOrBuilder() { + if ((stateDataCase_ == 9) && (suspendedDataBuilder_ != null)) { + return suspendedDataBuilder_.getMessageOrBuilder(); + } else { + if (stateDataCase_ == 9) { + return (com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData) stateData_; + } + return com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Output only. Further data for the suspended state.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.SuspendedData suspended_data = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData, + com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData.Builder, + com.google.cloud.tpu.v2.QueuedResourceState.SuspendedDataOrBuilder> + getSuspendedDataFieldBuilder() { + if (suspendedDataBuilder_ == null) { + if (!(stateDataCase_ == 9)) { + stateData_ = + com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData.getDefaultInstance(); + } + suspendedDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData, + com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData.Builder, + com.google.cloud.tpu.v2.QueuedResourceState.SuspendedDataOrBuilder>( + (com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData) stateData_, + getParentForChildren(), + isClean()); + stateData_ = null; + } + stateDataCase_ = 9; + onChanged(); + return suspendedDataBuilder_; + } + + private int stateInitiator_ = 0; + /** + * + * + *
    +     * Output only. The initiator of the QueuedResources's current state. Used to
    +     * indicate whether the SUSPENDING/SUSPENDED state was initiated by the user
    +     * or the service.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.StateInitiator state_initiator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for stateInitiator. + */ + @java.lang.Override + public int getStateInitiatorValue() { + return stateInitiator_; + } + /** + * + * + *
    +     * Output only. The initiator of the QueuedResources's current state. Used to
    +     * indicate whether the SUSPENDING/SUSPENDED state was initiated by the user
    +     * or the service.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.StateInitiator state_initiator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for stateInitiator to set. + * @return This builder for chaining. + */ + public Builder setStateInitiatorValue(int value) { + stateInitiator_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The initiator of the QueuedResources's current state. Used to
    +     * indicate whether the SUSPENDING/SUSPENDED state was initiated by the user
    +     * or the service.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.StateInitiator state_initiator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The stateInitiator. + */ + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState.StateInitiator getStateInitiator() { + com.google.cloud.tpu.v2.QueuedResourceState.StateInitiator result = + com.google.cloud.tpu.v2.QueuedResourceState.StateInitiator.forNumber(stateInitiator_); + return result == null + ? com.google.cloud.tpu.v2.QueuedResourceState.StateInitiator.UNRECOGNIZED + : result; + } + /** + * + * + *
    +     * Output only. The initiator of the QueuedResources's current state. Used to
    +     * indicate whether the SUSPENDING/SUSPENDED state was initiated by the user
    +     * or the service.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.StateInitiator state_initiator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The stateInitiator to set. + * @return This builder for chaining. + */ + public Builder setStateInitiator( + com.google.cloud.tpu.v2.QueuedResourceState.StateInitiator value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; + stateInitiator_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The initiator of the QueuedResources's current state. Used to
    +     * indicate whether the SUSPENDING/SUSPENDED state was initiated by the user
    +     * or the service.
    +     * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.StateInitiator state_initiator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearStateInitiator() { + bitField0_ = (bitField0_ & ~0x00000200); + stateInitiator_ = 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.tpu.v2.QueuedResourceState) + } + + // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.QueuedResourceState) + private static final com.google.cloud.tpu.v2.QueuedResourceState DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.QueuedResourceState(); + } + + public static com.google.cloud.tpu.v2.QueuedResourceState getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueuedResourceState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.QueuedResourceState getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/QueuedResourceStateOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/QueuedResourceStateOrBuilder.java new file mode 100644 index 000000000000..f76e76bbfba2 --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/QueuedResourceStateOrBuilder.java @@ -0,0 +1,419 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v2/cloud_tpu.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.tpu.v2; + +public interface QueuedResourceStateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.QueuedResourceState) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Output only. State of the QueuedResource request.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
    +   * Output only. State of the QueuedResource request.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.tpu.v2.QueuedResourceState.State getState(); + + /** + * + * + *
    +   * Output only. Further data for the creating state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.CreatingData creating_data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the creatingData field is set. + */ + boolean hasCreatingData(); + /** + * + * + *
    +   * Output only. Further data for the creating state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.CreatingData creating_data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The creatingData. + */ + com.google.cloud.tpu.v2.QueuedResourceState.CreatingData getCreatingData(); + /** + * + * + *
    +   * Output only. Further data for the creating state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.CreatingData creating_data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.tpu.v2.QueuedResourceState.CreatingDataOrBuilder getCreatingDataOrBuilder(); + + /** + * + * + *
    +   * Output only. Further data for the accepted state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.AcceptedData accepted_data = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the acceptedData field is set. + */ + boolean hasAcceptedData(); + /** + * + * + *
    +   * Output only. Further data for the accepted state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.AcceptedData accepted_data = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The acceptedData. + */ + com.google.cloud.tpu.v2.QueuedResourceState.AcceptedData getAcceptedData(); + /** + * + * + *
    +   * Output only. Further data for the accepted state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.AcceptedData accepted_data = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.tpu.v2.QueuedResourceState.AcceptedDataOrBuilder getAcceptedDataOrBuilder(); + + /** + * + * + *
    +   * Output only. Further data for the provisioning state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.ProvisioningData provisioning_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the provisioningData field is set. + */ + boolean hasProvisioningData(); + /** + * + * + *
    +   * Output only. Further data for the provisioning state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.ProvisioningData provisioning_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The provisioningData. + */ + com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningData getProvisioningData(); + /** + * + * + *
    +   * Output only. Further data for the provisioning state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.ProvisioningData provisioning_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.tpu.v2.QueuedResourceState.ProvisioningDataOrBuilder + getProvisioningDataOrBuilder(); + + /** + * + * + *
    +   * Output only. Further data for the failed state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.FailedData failed_data = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the failedData field is set. + */ + boolean hasFailedData(); + /** + * + * + *
    +   * Output only. Further data for the failed state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.FailedData failed_data = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The failedData. + */ + com.google.cloud.tpu.v2.QueuedResourceState.FailedData getFailedData(); + /** + * + * + *
    +   * Output only. Further data for the failed state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.FailedData failed_data = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.tpu.v2.QueuedResourceState.FailedDataOrBuilder getFailedDataOrBuilder(); + + /** + * + * + *
    +   * Output only. Further data for the deleting state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.DeletingData deleting_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deletingData field is set. + */ + boolean hasDeletingData(); + /** + * + * + *
    +   * Output only. Further data for the deleting state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.DeletingData deleting_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deletingData. + */ + com.google.cloud.tpu.v2.QueuedResourceState.DeletingData getDeletingData(); + /** + * + * + *
    +   * Output only. Further data for the deleting state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.DeletingData deleting_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.tpu.v2.QueuedResourceState.DeletingDataOrBuilder getDeletingDataOrBuilder(); + + /** + * + * + *
    +   * Output only. Further data for the active state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.ActiveData active_data = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the activeData field is set. + */ + boolean hasActiveData(); + /** + * + * + *
    +   * Output only. Further data for the active state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.ActiveData active_data = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The activeData. + */ + com.google.cloud.tpu.v2.QueuedResourceState.ActiveData getActiveData(); + /** + * + * + *
    +   * Output only. Further data for the active state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.ActiveData active_data = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.tpu.v2.QueuedResourceState.ActiveDataOrBuilder getActiveDataOrBuilder(); + + /** + * + * + *
    +   * Output only. Further data for the suspending state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.SuspendingData suspending_data = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the suspendingData field is set. + */ + boolean hasSuspendingData(); + /** + * + * + *
    +   * Output only. Further data for the suspending state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.SuspendingData suspending_data = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The suspendingData. + */ + com.google.cloud.tpu.v2.QueuedResourceState.SuspendingData getSuspendingData(); + /** + * + * + *
    +   * Output only. Further data for the suspending state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.SuspendingData suspending_data = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.tpu.v2.QueuedResourceState.SuspendingDataOrBuilder getSuspendingDataOrBuilder(); + + /** + * + * + *
    +   * Output only. Further data for the suspended state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.SuspendedData suspended_data = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the suspendedData field is set. + */ + boolean hasSuspendedData(); + /** + * + * + *
    +   * Output only. Further data for the suspended state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.SuspendedData suspended_data = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The suspendedData. + */ + com.google.cloud.tpu.v2.QueuedResourceState.SuspendedData getSuspendedData(); + /** + * + * + *
    +   * Output only. Further data for the suspended state.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.SuspendedData suspended_data = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.tpu.v2.QueuedResourceState.SuspendedDataOrBuilder getSuspendedDataOrBuilder(); + + /** + * + * + *
    +   * Output only. The initiator of the QueuedResources's current state. Used to
    +   * indicate whether the SUSPENDING/SUSPENDED state was initiated by the user
    +   * or the service.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.StateInitiator state_initiator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for stateInitiator. + */ + int getStateInitiatorValue(); + /** + * + * + *
    +   * Output only. The initiator of the QueuedResources's current state. Used to
    +   * indicate whether the SUSPENDING/SUSPENDED state was initiated by the user
    +   * or the service.
    +   * 
    + * + * + * .google.cloud.tpu.v2.QueuedResourceState.StateInitiator state_initiator = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The stateInitiator. + */ + com.google.cloud.tpu.v2.QueuedResourceState.StateInitiator getStateInitiator(); + + com.google.cloud.tpu.v2.QueuedResourceState.StateDataCase getStateDataCase(); +} diff --git a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ResetQueuedResourceRequest.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ResetQueuedResourceRequest.java new file mode 100644 index 000000000000..9f601169c20d --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ResetQueuedResourceRequest.java @@ -0,0 +1,641 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v2/cloud_tpu.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.tpu.v2; + +/** + * + * + *
    + * Request for
    + * [ResetQueuedResource][google.cloud.tpu.v2.Tpu.ResetQueuedResource].
    + * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.ResetQueuedResourceRequest} + */ +public final class ResetQueuedResourceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2.ResetQueuedResourceRequest) + ResetQueuedResourceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResetQueuedResourceRequest.newBuilder() to construct. + private ResetQueuedResourceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ResetQueuedResourceRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ResetQueuedResourceRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ResetQueuedResourceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ResetQueuedResourceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.ResetQueuedResourceRequest.class, + com.google.cloud.tpu.v2.ResetQueuedResourceRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Required. The name of the queued resource.
    +   * 
    + * + * + * 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 queued resource.
    +   * 
    + * + * + * 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.tpu.v2.ResetQueuedResourceRequest)) { + return super.equals(obj); + } + com.google.cloud.tpu.v2.ResetQueuedResourceRequest other = + (com.google.cloud.tpu.v2.ResetQueuedResourceRequest) 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.tpu.v2.ResetQueuedResourceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.ResetQueuedResourceRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.ResetQueuedResourceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.ResetQueuedResourceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.ResetQueuedResourceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2.ResetQueuedResourceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.ResetQueuedResourceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.ResetQueuedResourceRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.ResetQueuedResourceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.ResetQueuedResourceRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2.ResetQueuedResourceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2.ResetQueuedResourceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.tpu.v2.ResetQueuedResourceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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
    +   * [ResetQueuedResource][google.cloud.tpu.v2.Tpu.ResetQueuedResource].
    +   * 
    + * + * Protobuf type {@code google.cloud.tpu.v2.ResetQueuedResourceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2.ResetQueuedResourceRequest) + com.google.cloud.tpu.v2.ResetQueuedResourceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ResetQueuedResourceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ResetQueuedResourceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2.ResetQueuedResourceRequest.class, + com.google.cloud.tpu.v2.ResetQueuedResourceRequest.Builder.class); + } + + // Construct using com.google.cloud.tpu.v2.ResetQueuedResourceRequest.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.tpu.v2.CloudTpuProto + .internal_static_google_cloud_tpu_v2_ResetQueuedResourceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.ResetQueuedResourceRequest getDefaultInstanceForType() { + return com.google.cloud.tpu.v2.ResetQueuedResourceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.tpu.v2.ResetQueuedResourceRequest build() { + com.google.cloud.tpu.v2.ResetQueuedResourceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.ResetQueuedResourceRequest buildPartial() { + com.google.cloud.tpu.v2.ResetQueuedResourceRequest result = + new com.google.cloud.tpu.v2.ResetQueuedResourceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.tpu.v2.ResetQueuedResourceRequest 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.tpu.v2.ResetQueuedResourceRequest) { + return mergeFrom((com.google.cloud.tpu.v2.ResetQueuedResourceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.tpu.v2.ResetQueuedResourceRequest other) { + if (other == com.google.cloud.tpu.v2.ResetQueuedResourceRequest.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 queued resource.
    +     * 
    + * + * + * 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 queued resource.
    +     * 
    + * + * + * 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 queued resource.
    +     * 
    + * + * + * 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 queued resource.
    +     * 
    + * + * + * 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 queued resource.
    +     * 
    + * + * + * 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.tpu.v2.ResetQueuedResourceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2.ResetQueuedResourceRequest) + private static final com.google.cloud.tpu.v2.ResetQueuedResourceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.tpu.v2.ResetQueuedResourceRequest(); + } + + public static com.google.cloud.tpu.v2.ResetQueuedResourceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResetQueuedResourceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.tpu.v2.ResetQueuedResourceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ResetQueuedResourceRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ResetQueuedResourceRequestOrBuilder.java new file mode 100644 index 000000000000..64d80e86c17c --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/ResetQueuedResourceRequestOrBuilder.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v2/cloud_tpu.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.tpu.v2; + +public interface ResetQueuedResourceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2.ResetQueuedResourceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The name of the queued resource.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Required. The name of the queued resource.
    +   * 
    + * + * + * 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-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/SchedulingConfig.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/SchedulingConfig.java index 0d9847d9b20d..8a5f8cb171d7 100644 --- a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/SchedulingConfig.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/SchedulingConfig.java @@ -97,6 +97,24 @@ public boolean getReserved() { return reserved_; } + public static final int SPOT_FIELD_NUMBER = 3; + private boolean spot_ = false; + /** + * + * + *
    +   * Optional. Defines whether the node is Spot VM.
    +   * 
    + * + * bool spot = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The spot. + */ + @java.lang.Override + public boolean getSpot() { + return spot_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -117,6 +135,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (reserved_ != false) { output.writeBool(2, reserved_); } + if (spot_ != false) { + output.writeBool(3, spot_); + } getUnknownFields().writeTo(output); } @@ -132,6 +153,9 @@ public int getSerializedSize() { if (reserved_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, reserved_); } + if (spot_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, spot_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -149,6 +173,7 @@ public boolean equals(final java.lang.Object obj) { if (getPreemptible() != other.getPreemptible()) return false; if (getReserved() != other.getReserved()) return false; + if (getSpot() != other.getSpot()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -164,6 +189,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreemptible()); hash = (37 * hash) + RESERVED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReserved()); + hash = (37 * hash) + SPOT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSpot()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -305,6 +332,7 @@ public Builder clear() { bitField0_ = 0; preemptible_ = false; reserved_ = false; + spot_ = false; return this; } @@ -347,6 +375,9 @@ private void buildPartial0(com.google.cloud.tpu.v2.SchedulingConfig result) { if (((from_bitField0_ & 0x00000002) != 0)) { result.reserved_ = reserved_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.spot_ = spot_; + } } @java.lang.Override @@ -400,6 +431,9 @@ public Builder mergeFrom(com.google.cloud.tpu.v2.SchedulingConfig other) { if (other.getReserved() != false) { setReserved(other.getReserved()); } + if (other.getSpot() != false) { + setSpot(other.getSpot()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -438,6 +472,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 16 + case 24: + { + spot_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -563,6 +603,59 @@ public Builder clearReserved() { return this; } + private boolean spot_; + /** + * + * + *
    +     * Optional. Defines whether the node is Spot VM.
    +     * 
    + * + * bool spot = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The spot. + */ + @java.lang.Override + public boolean getSpot() { + return spot_; + } + /** + * + * + *
    +     * Optional. Defines whether the node is Spot VM.
    +     * 
    + * + * bool spot = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The spot to set. + * @return This builder for chaining. + */ + public Builder setSpot(boolean value) { + + spot_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. Defines whether the node is Spot VM.
    +     * 
    + * + * bool spot = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSpot() { + bitField0_ = (bitField0_ & ~0x00000004); + spot_ = 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-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/SchedulingConfigOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/SchedulingConfigOrBuilder.java index 4503563695e6..cc126c061846 100644 --- a/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/SchedulingConfigOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/SchedulingConfigOrBuilder.java @@ -49,4 +49,17 @@ public interface SchedulingConfigOrBuilder * @return The reserved. */ boolean getReserved(); + + /** + * + * + *
    +   * Optional. Defines whether the node is Spot VM.
    +   * 
    + * + * bool spot = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The spot. + */ + boolean getSpot(); } diff --git a/java-tpu/proto-google-cloud-tpu-v2/src/main/proto/google/cloud/tpu/v2/cloud_tpu.proto b/java-tpu/proto-google-cloud-tpu-v2/src/main/proto/google/cloud/tpu/v2/cloud_tpu.proto index f95203c97300..5c2155661078 100644 --- a/java-tpu/proto-google-cloud-tpu-v2/src/main/proto/google/cloud/tpu/v2/cloud_tpu.proto +++ b/java-tpu/proto-google-cloud-tpu-v2/src/main/proto/google/cloud/tpu/v2/cloud_tpu.proto @@ -21,9 +21,12 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/longrunning/operations.proto"; +import "google/protobuf/duration.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; +import "google/type/interval.proto"; option go_package = "cloud.google.com/go/tpu/apiv2/tpupb;tpupb"; option java_multiple_files = true; @@ -116,6 +119,65 @@ service Tpu { }; } + // Lists queued resources. + rpc ListQueuedResources(ListQueuedResourcesRequest) + returns (ListQueuedResourcesResponse) { + option (google.api.http) = { + get: "/v2/{parent=projects/*/locations/*}/queuedResources" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a queued resource. + rpc GetQueuedResource(GetQueuedResourceRequest) returns (QueuedResource) { + option (google.api.http) = { + get: "/v2/{name=projects/*/locations/*/queuedResources/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a QueuedResource TPU instance. + rpc CreateQueuedResource(CreateQueuedResourceRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v2/{parent=projects/*/locations/*}/queuedResources" + body: "queued_resource" + }; + option (google.api.method_signature) = + "parent,queued_resource,queued_resource_id"; + option (google.longrunning.operation_info) = { + response_type: "QueuedResource" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a QueuedResource TPU instance. + rpc DeleteQueuedResource(DeleteQueuedResourceRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v2/{name=projects/*/locations/*/queuedResources/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Resets a QueuedResource TPU instance + rpc ResetQueuedResource(ResetQueuedResourceRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v2/{name=projects/*/locations/*/queuedResources/*}:reset" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "QueuedResource" + metadata_type: "OperationMetadata" + }; + } + // Generates the Cloud TPU service identity for the project. rpc GenerateServiceIdentity(GenerateServiceIdentityRequest) returns (GenerateServiceIdentityResponse) { @@ -232,6 +294,9 @@ message SchedulingConfig { // Whether the node is created under a reservation. bool reserved = 2; + + // Optional. Defines whether the node is Spot VM. + bool spot = 3 [(google.api.field_behavior) = OPTIONAL]; } // A network endpoint over which a TPU worker can be reached. @@ -272,6 +337,10 @@ message NetworkConfig { // destination or source IPs. This is required if you plan to use the TPU // workers to forward routes. bool can_ip_forward = 4; + + // Optional. Specifies networking queue count for TPU VM instance's network + // interface. + int32 queue_count = 6 [(google.api.field_behavior) = OPTIONAL]; } // A service account. @@ -340,6 +409,9 @@ message Node { // TPU node is currently unhiding. UNHIDING = 15; + + // TPU node has unknown state after a failed repair. + UNKNOWN = 16; } // Health defines the status of a TPU node as reported by @@ -402,9 +474,18 @@ message Node { // Required. The runtime version running in the Node. string runtime_version = 11 [(google.api.field_behavior) = REQUIRED]; - // Network configurations for the TPU node. + // Network configurations for the TPU node. network_config and network_configs + // are mutually exclusive, you can only specify one of them. If both are + // specified, an error will be returned. NetworkConfig network_config = 36; + // Optional. Repeated network configurations for the TPU node. This field is + // used to specify multiple networks configs for the TPU node. network_config + // and network_configs are mutually exclusive, you can only specify one of + // them. If both are specified, an error will be returned. + repeated NetworkConfig network_configs = 49 + [(google.api.field_behavior) = OPTIONAL]; + // The CIDR block that the TPU node will use when selecting an IP address. // This CIDR block must be a /29 block; the Compute Engine networks API // forbids a smaller block, and using a larger block would be wasteful (a @@ -472,6 +553,282 @@ message Node { bool multislice_node = 48 [(google.api.field_behavior) = OUTPUT_ONLY]; } +// A QueuedResource represents a request for resources that will be placed +// in a queue and fulfilled when the necessary resources are available. +message QueuedResource { + option (google.api.resource) = { + type: "tpu.googleapis.com/QueuedResource" + pattern: "projects/{project}/locations/{location}/queuedResources/{queued_resource}" + plural: "queuedResources" + singular: "queuedResource" + }; + + // Details of the TPU resource(s) being requested. + message Tpu { + // Details of the TPU node(s) being requested. Users can request either a + // single node or multiple nodes. + // NodeSpec provides the specification for node(s) to be created. + message NodeSpec { + // Parameters to specify for multislice QueuedResource requests. This + // message must be populated in case of multislice requests instead of + // node_id. + message MultisliceParams { + // Required. Number of nodes with this spec. The system will attempt + // to provision "node_count" nodes as part of the request. + // This needs to be > 1. + int32 node_count = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Prefix of node_ids in case of multislice request. + // Should follow the `^[A-Za-z0-9_.~+%-]+$` regex format. + // If node_count = 3 and node_id_prefix = "np", node ids of nodes + // created will be "np-0", "np-1", "np-2". If this field is not + // provided we use queued_resource_id as the node_id_prefix. + string node_id_prefix = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. The parent resource name. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Either a node_id or multislice_params. + oneof name_strategy { + // Optional. The unqualified resource name. Should follow the + // `^[A-Za-z0-9_.~+%-]+$` regex format. This is only specified when + // requesting a single node. In case of multislice requests, + // multislice_params must be populated instead. + string node_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Fields to specify in case of multislice request. + MultisliceParams multislice_params = 3 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. The node. + Node node = 4 [(google.api.field_behavior) = REQUIRED]; + } + + // Optional. The TPU node(s) being requested. + repeated NodeSpec node_spec = 1 [(google.api.field_behavior) = OPTIONAL]; + } + + // Spot tier definition. + message Spot {} + + // Guaranteed tier definition. + message Guaranteed { + // Optional. Defines the minimum duration of the guarantee. If specified, + // the requested resources will only be provisioned if they can be + // allocated for at least the given duration. + google.protobuf.Duration min_duration = 1 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Defines the policy of the QueuedRequest. + message QueueingPolicy { + // Time flexibility specification. + oneof start_timing_constraints { + // Optional. A relative time after which resources should not be created. + // If the request cannot be fulfilled by this time the request will be + // failed. + google.protobuf.Duration valid_until_duration = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An absolute time after which resources should not be created. + // If the request cannot be fulfilled by this time the request will be + // failed. + google.protobuf.Timestamp valid_until_time = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A relative time after which resources may be created. + google.protobuf.Duration valid_after_duration = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An absolute time after which resources may be created. + google.protobuf.Timestamp valid_after_time = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An absolute time interval within which resources may be + // created. + google.type.Interval valid_interval = 5 + [(google.api.field_behavior) = OPTIONAL]; + } + } + + // Output only. Immutable. The name of the QueuedResource. + string name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Output only. The time when the QueuedResource was created. + google.protobuf.Timestamp create_time = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Resource specification. + oneof resource { + // Optional. Defines a TPU resource. + Tpu tpu = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Tier specifies the required tier. + oneof tier { + // Optional. The Spot tier. + Spot spot = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Guaranteed tier + Guaranteed guaranteed = 4 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. The queueing policy of the QueuedRequest. + QueueingPolicy queueing_policy = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. State of the QueuedResource request. + QueuedResourceState state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Name of the reservation in which the resource should be + // provisioned. Format: + // projects/{project}/locations/{zone}/reservations/{reservation} + string reservation_name = 7 [(google.api.field_behavior) = OPTIONAL]; +} + +// QueuedResourceState defines the details of the QueuedResource request. +message QueuedResourceState { + // Output only state of the request + enum State { + // State of the QueuedResource request is not known/set. + STATE_UNSPECIFIED = 0; + + // The QueuedResource request has been received. We're still working on + // determining if we will be able to honor this request. + CREATING = 1; + + // The QueuedResource request has passed initial validation/admission + // control and has been persisted in the queue. + ACCEPTED = 2; + + // The QueuedResource request has been selected. The + // associated resources are currently being provisioned (or very soon + // will begin provisioning). + PROVISIONING = 3; + + // The request could not be completed. This may be due to some + // late-discovered problem with the request itself, or due to + // unavailability of resources within the constraints of the request + // (e.g., the 'valid until' start timing constraint expired). + FAILED = 4; + + // The QueuedResource is being deleted. + DELETING = 5; + + // The resources specified in the QueuedResource request have been + // provisioned and are ready for use by the end-user/consumer. + ACTIVE = 6; + + // The resources specified in the QueuedResource request are being + // deleted. This may have been initiated by the user, or + // the Cloud TPU service. Inspect the state data for more details. + SUSPENDING = 7; + + // The resources specified in the QueuedResource request have been + // deleted. + SUSPENDED = 8; + + // The QueuedResource request has passed initial validation and has been + // persisted in the queue. It will remain in this state until there are + // sufficient free resources to begin provisioning your request. Wait times + // will vary significantly depending on demand levels. When demand is high, + // not all requests can be immediately provisioned. If you + // need more reliable obtainability of TPUs consider purchasing a + // reservation. To put a limit on how long you are willing to wait, use + // [timing + // constraints](https://cloud.google.com/tpu/docs/queued-resources#request_a_queued_resource_before_a_specified_time). + WAITING_FOR_RESOURCES = 9; + } + + // Further data for the creating state. + message CreatingData {} + + // Further data for the accepted state. + message AcceptedData {} + + // Further data for the provisioning state. + message ProvisioningData {} + + // Further data for the failed state. + message FailedData { + // Output only. The error that caused the queued resource to enter the + // FAILED state. + google.rpc.Status error = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Further data for the deleting state. + message DeletingData {} + + // Further data for the active state. + message ActiveData {} + + // Further data for the suspending state. + message SuspendingData {} + + // Further data for the suspended state. + message SuspendedData {} + + // The initiator of the QueuedResource's SUSPENDING/SUSPENDED state. + enum StateInitiator { + // The state initiator is unspecified. + STATE_INITIATOR_UNSPECIFIED = 0; + + // The current QueuedResource state was initiated by the user. + USER = 1; + + // The current QueuedResource state was initiated by the service. + SERVICE = 2; + } + + // Output only. State of the QueuedResource request. + State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Further data for the state. + oneof state_data { + // Output only. Further data for the creating state. + CreatingData creating_data = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Further data for the accepted state. + AcceptedData accepted_data = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Further data for the provisioning state. + ProvisioningData provisioning_data = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Further data for the failed state. + FailedData failed_data = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Further data for the deleting state. + DeletingData deleting_data = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Further data for the active state. + ActiveData active_data = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Further data for the suspending state. + SuspendingData suspending_data = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Further data for the suspended state. + SuspendedData suspended_data = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Output only. The initiator of the QueuedResources's current state. Used to + // indicate whether the SUSPENDING/SUSPENDED state was initiated by the user + // or the service. + StateInitiator state_initiator = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // Request for [ListNodes][google.cloud.tpu.v2.Tpu.ListNodes]. message ListNodesRequest { // Required. The parent resource name. @@ -564,6 +921,105 @@ message UpdateNodeRequest { Node node = 2 [(google.api.field_behavior) = REQUIRED]; } +// Request for +// [ListQueuedResources][google.cloud.tpu.v2.Tpu.ListQueuedResources]. +message ListQueuedResourcesRequest { + // Required. The parent resource name. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "tpu.googleapis.com/QueuedResource" + } + ]; + + // Optional. The maximum number of items to return. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The next_page_token value returned from a previous List request, + // if any. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response for +// [ListQueuedResources][google.cloud.tpu.v2.Tpu.ListQueuedResources]. +message ListQueuedResourcesResponse { + // The listed queued resources. + repeated QueuedResource queued_resources = 1; + + // The next page token or empty if none. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Request for [GetQueuedResource][google.cloud.tpu.v2.Tpu.GetQueuedResource] +message GetQueuedResourceRequest { + // Required. The resource name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "tpu.googleapis.com/QueuedResource" + } + ]; +} + +// Request for +// [CreateQueuedResource][google.cloud.tpu.v2.Tpu.CreateQueuedResource]. +message CreateQueuedResourceRequest { + // Required. The parent resource name. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Optional. The unqualified resource name. Should follow the + // `^[A-Za-z0-9_.~+%-]+$` regex format. + string queued_resource_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The queued resource. + QueuedResource queued_resource = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Idempotent request UUID. + string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request for +// [DeleteQueuedResource][google.cloud.tpu.v2.Tpu.DeleteQueuedResource]. +message DeleteQueuedResourceRequest { + // Required. The resource name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "tpu.googleapis.com/QueuedResource" + } + ]; + + // Optional. Idempotent request UUID. + string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set to true, all running nodes belonging to this queued + // resource will be deleted first and then the queued resource will be + // deleted. Otherwise (i.e. force=false), the queued resource will only be + // deleted if its nodes have already been deleted or the queued resource is in + // the ACCEPTED, FAILED, or SUSPENDED state. + bool force = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request for +// [ResetQueuedResource][google.cloud.tpu.v2.Tpu.ResetQueuedResource]. +message ResetQueuedResourceRequest { + // Required. The name of the queued resource. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "tpu.googleapis.com/QueuedResource" + } + ]; +} + // The per-product per-project service identity for Cloud TPU service. message ServiceIdentity { // The email address of the service identity. @@ -820,6 +1276,15 @@ message AcceleratorConfig { // TPU v4. V4 = 7; + + // TPU v5lite pod. + V5LITE_POD = 9; + + // TPU v5p. + V5P = 10; + + // TPU v6e. + V6E = 11; } // Required. Type of TPU. diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AcceleratorConfig.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AcceleratorConfig.java index 18b3f6da2075..2080bd6ac497 100644 --- a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AcceleratorConfig.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/AcceleratorConfig.java @@ -114,6 +114,36 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * V4 = 7; */ V4(7), + /** + * + * + *
    +     * TPU v5lite pod.
    +     * 
    + * + * V5LITE_POD = 9; + */ + V5LITE_POD(9), + /** + * + * + *
    +     * TPU v5.
    +     * 
    + * + * V5P = 10; + */ + V5P(10), + /** + * + * + *
    +     * TPU v6e.
    +     * 
    + * + * V6E = 11; + */ + V6E(11), UNRECOGNIZED(-1), ; @@ -157,6 +187,36 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * V4 = 7; */ public static final int V4_VALUE = 7; + /** + * + * + *
    +     * TPU v5lite pod.
    +     * 
    + * + * V5LITE_POD = 9; + */ + public static final int V5LITE_POD_VALUE = 9; + /** + * + * + *
    +     * TPU v5.
    +     * 
    + * + * V5P = 10; + */ + public static final int V5P_VALUE = 10; + /** + * + * + *
    +     * TPU v6e.
    +     * 
    + * + * V6E = 11; + */ + public static final int V6E_VALUE = 11; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -190,6 +250,12 @@ public static Type forNumber(int value) { return V3; case 7: return V4; + case 9: + return V5LITE_POD; + case 10: + return V5P; + case 11: + return V6E; default: return null; } diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/CloudTpuProto.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/CloudTpuProto.java index dc2e4b8e6098..52a3cb6915fd 100644 --- a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/CloudTpuProto.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/CloudTpuProto.java @@ -264,6 +264,34 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_tpu_v2alpha1_SimulateMaintenanceEventRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_tpu_v2alpha1_SimulateMaintenanceEventRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_PerformMaintenanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_PerformMaintenanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_PerformMaintenanceQueuedResourceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_PerformMaintenanceQueuedResourceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_Reservation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_Reservation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_Reservation_Standard_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_Reservation_Standard_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_Reservation_Standard_Usage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_Reservation_Standard_Usage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_ListReservationsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_ListReservationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_ListReservationsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_ListReservationsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_tpu_v2alpha1_AcceleratorConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -280,6 +308,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_tpu_v2alpha1_CustomerEncryptionKey_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_tpu_v2alpha1_CustomerEncryptionKey_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_tpu_v2alpha1_UpcomingMaintenance_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_tpu_v2alpha1_UpcomingMaintenance_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -292,290 +324,354 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n)google/cloud/tpu/v2alpha1/cloud_tpu.pr" + "oto\022\031google.cloud.tpu.v2alpha1\032\034google/a" + "pi/annotations.proto\032\027google/api/client." - + "proto\032\037google/api/field_behavior.proto\032\031" - + "google/api/resource.proto\032#google/longru" - + "nning/operations.proto\032\036google/protobuf/" - + "duration.proto\032\033google/protobuf/empty.pr" - + "oto\032 google/protobuf/field_mask.proto\032\037g" - + "oogle/protobuf/timestamp.proto\032\027google/r" - + "pc/status.proto\032\032google/type/interval.pr" - + "oto\"k\n\017GuestAttributes\022\022\n\nquery_path\030\001 \001" - + "(\t\022D\n\013query_value\030\002 \001(\0132/.google.cloud.t" - + "pu.v2alpha1.GuestAttributesValue\"V\n\024Gues" - + "tAttributesValue\022>\n\005items\030\001 \003(\0132/.google" - + ".cloud.tpu.v2alpha1.GuestAttributesEntry" - + "\"E\n\024GuestAttributesEntry\022\021\n\tnamespace\030\001 " - + "\001(\t\022\013\n\003key\030\002 \001(\t\022\r\n\005value\030\003 \001(\t\"\251\001\n\014Atta" - + "chedDisk\022\023\n\013source_disk\030\003 \001(\t\022>\n\004mode\030\004 " - + "\001(\01620.google.cloud.tpu.v2alpha1.Attached" - + "Disk.DiskMode\"D\n\010DiskMode\022\031\n\025DISK_MODE_U" - + "NSPECIFIED\020\000\022\016\n\nREAD_WRITE\020\001\022\r\n\tREAD_ONL" - + "Y\020\002\"9\n\020SchedulingConfig\022\023\n\013preemptible\030\001" - + " \001(\010\022\020\n\010reserved\030\002 \001(\010\"s\n\017NetworkEndpoin" - + "t\022\022\n\nip_address\030\001 \001(\t\022\014\n\004port\030\002 \001(\005\022>\n\ra" - + "ccess_config\030\005 \001(\0132\'.google.cloud.tpu.v2" - + "alpha1.AccessConfig\"(\n\014AccessConfig\022\030\n\013e" - + "xternal_ip\030\001 \001(\tB\003\340A\003\"i\n\rNetworkConfig\022\017" - + "\n\007network\030\001 \001(\t\022\022\n\nsubnetwork\030\002 \001(\t\022\033\n\023e" - + "nable_external_ips\030\003 \001(\010\022\026\n\016can_ip_forwa" - + "rd\030\004 \001(\010\".\n\016ServiceAccount\022\r\n\005email\030\001 \001(" - + "\t\022\r\n\005scope\030\002 \003(\t\"\273\016\n\004Node\022\024\n\004name\030\001 \001(\tB" - + "\006\340A\003\340A\005\022\023\n\013description\030\003 \001(\t\022\030\n\020accelera" - + "tor_type\030\005 \001(\t\0229\n\005state\030\t \001(\0162%.google.c" - + "loud.tpu.v2alpha1.Node.StateB\003\340A\003\022\037\n\022hea" - + "lth_description\030\n \001(\tB\003\340A\003\022\034\n\017runtime_ve" - + "rsion\030\013 \001(\tB\003\340A\002\022@\n\016network_config\030$ \001(\013" - + "2(.google.cloud.tpu.v2alpha1.NetworkConf" - + "ig\022\022\n\ncidr_block\030\r \001(\t\022B\n\017service_accoun" - + "t\030% \001(\0132).google.cloud.tpu.v2alpha1.Serv" - + "iceAccount\0224\n\013create_time\030\020 \001(\0132\032.google" - + ".protobuf.TimestampB\003\340A\003\022F\n\021scheduling_c" - + "onfig\030\021 \001(\0132+.google.cloud.tpu.v2alpha1." - + "SchedulingConfig\022J\n\021network_endpoints\030\025 " - + "\003(\0132*.google.cloud.tpu.v2alpha1.NetworkE" - + "ndpointB\003\340A\003\0226\n\006health\030\026 \001(\0162&.google.cl" - + "oud.tpu.v2alpha1.Node.Health\022;\n\006labels\030\030" - + " \003(\0132+.google.cloud.tpu.v2alpha1.Node.La" - + "belsEntry\022?\n\010metadata\030\" \003(\0132-.google.clo" - + "ud.tpu.v2alpha1.Node.MetadataEntry\022\014\n\004ta" - + "gs\030( \003(\t\022\017\n\002id\030! \001(\003B\003\340A\003\022;\n\ndata_disks\030" - + ") \003(\0132\'.google.cloud.tpu.v2alpha1.Attach" - + "edDisk\022D\n\013api_version\030& \001(\0162*.google.clo" - + "ud.tpu.v2alpha1.Node.ApiVersionB\003\340A\003\0229\n\010" - + "symptoms\030\' \003(\0132\".google.cloud.tpu.v2alph" - + "a1.SymptomB\003\340A\003\022\034\n\017queued_resource\030+ \001(\t" - + "B\003\340A\003\022H\n\022accelerator_config\030, \001(\0132,.goog" - + "le.cloud.tpu.v2alpha1.AcceleratorConfig\022" - + "S\n\030shielded_instance_config\030- \001(\01321.goog" - + "le.cloud.tpu.v2alpha1.ShieldedInstanceCo" - + "nfig\022\034\n\017multislice_node\030/ \001(\010B\003\340A\003\022H\n\020bo" - + "ot_disk_config\0301 \001(\0132).google.cloud.tpu." - + "v2alpha1.BootDiskConfigB\003\340A\001\032-\n\013LabelsEn" - + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032/\n\rM" - + "etadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" - + ":\0028\001\"\341\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n" - + "\010CREATING\020\001\022\t\n\005READY\020\002\022\016\n\nRESTARTING\020\003\022\r" - + "\n\tREIMAGING\020\004\022\014\n\010DELETING\020\005\022\r\n\tREPAIRING" - + "\020\006\022\013\n\007STOPPED\020\010\022\014\n\010STOPPING\020\t\022\014\n\010STARTIN" - + "G\020\n\022\r\n\tPREEMPTED\020\013\022\016\n\nTERMINATED\020\014\022\n\n\006HI" - + "DING\020\r\022\n\n\006HIDDEN\020\016\022\014\n\010UNHIDING\020\017\"o\n\006Heal" + + "proto\032\037google/api/field_behavior.proto\032\033" + + "google/api/field_info.proto\032\031google/api/" + + "resource.proto\032#google/longrunning/opera" + + "tions.proto\032\036google/protobuf/duration.pr" + + "oto\032\033google/protobuf/empty.proto\032 google" + + "/protobuf/field_mask.proto\032\037google/proto" + + "buf/timestamp.proto\032\027google/rpc/status.p" + + "roto\032\032google/type/interval.proto\"k\n\017Gues" + + "tAttributes\022\022\n\nquery_path\030\001 \001(\t\022D\n\013query" + + "_value\030\002 \001(\0132/.google.cloud.tpu.v2alpha1" + + ".GuestAttributesValue\"V\n\024GuestAttributes" + + "Value\022>\n\005items\030\001 \003(\0132/.google.cloud.tpu." + + "v2alpha1.GuestAttributesEntry\"E\n\024GuestAt" + + "tributesEntry\022\021\n\tnamespace\030\001 \001(\t\022\013\n\003key\030" + + "\002 \001(\t\022\r\n\005value\030\003 \001(\t\"\251\001\n\014AttachedDisk\022\023\n" + + "\013source_disk\030\003 \001(\t\022>\n\004mode\030\004 \001(\01620.googl" + + "e.cloud.tpu.v2alpha1.AttachedDisk.DiskMo" + + "de\"D\n\010DiskMode\022\031\n\025DISK_MODE_UNSPECIFIED\020" + + "\000\022\016\n\nREAD_WRITE\020\001\022\r\n\tREAD_ONLY\020\002\"L\n\020Sche" + + "dulingConfig\022\023\n\013preemptible\030\001 \001(\010\022\020\n\010res" + + "erved\030\002 \001(\010\022\021\n\004spot\030\003 \001(\010B\003\340A\001\"s\n\017Networ" + + "kEndpoint\022\022\n\nip_address\030\001 \001(\t\022\014\n\004port\030\002 " + + "\001(\005\022>\n\raccess_config\030\005 \001(\0132\'.google.clou" + + "d.tpu.v2alpha1.AccessConfig\"(\n\014AccessCon" + + "fig\022\030\n\013external_ip\030\001 \001(\tB\003\340A\003\"\203\001\n\rNetwor" + + "kConfig\022\017\n\007network\030\001 \001(\t\022\022\n\nsubnetwork\030\002" + + " \001(\t\022\033\n\023enable_external_ips\030\003 \001(\010\022\026\n\016can" + + "_ip_forward\030\004 \001(\010\022\030\n\013queue_count\030\006 \001(\005B\003" + + "\340A\001\".\n\016ServiceAccount\022\r\n\005email\030\001 \001(\t\022\r\n\005" + + "scope\030\002 \003(\t\"\210\020\n\004Node\022\024\n\004name\030\001 \001(\tB\006\340A\003\340" + + "A\005\022\023\n\013description\030\003 \001(\t\022\030\n\020accelerator_t" + + "ype\030\005 \001(\t\0229\n\005state\030\t \001(\0162%.google.cloud." + + "tpu.v2alpha1.Node.StateB\003\340A\003\022\037\n\022health_d" + + "escription\030\n \001(\tB\003\340A\003\022\034\n\017runtime_version" + + "\030\013 \001(\tB\003\340A\002\022@\n\016network_config\030$ \001(\0132(.go" + + "ogle.cloud.tpu.v2alpha1.NetworkConfig\022F\n" + + "\017network_configs\0302 \003(\0132(.google.cloud.tp" + + "u.v2alpha1.NetworkConfigB\003\340A\001\022\022\n\ncidr_bl" + + "ock\030\r \001(\t\022B\n\017service_account\030% \001(\0132).goo" + + "gle.cloud.tpu.v2alpha1.ServiceAccount\0224\n" + + "\013create_time\030\020 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\022F\n\021scheduling_config\030\021 \001(\0132+" + + ".google.cloud.tpu.v2alpha1.SchedulingCon" + + "fig\022J\n\021network_endpoints\030\025 \003(\0132*.google." + + "cloud.tpu.v2alpha1.NetworkEndpointB\003\340A\003\022" + + "6\n\006health\030\026 \001(\0162&.google.cloud.tpu.v2alp" + + "ha1.Node.Health\022;\n\006labels\030\030 \003(\0132+.google" + + ".cloud.tpu.v2alpha1.Node.LabelsEntry\022?\n\010" + + "metadata\030\" \003(\0132-.google.cloud.tpu.v2alph" + + "a1.Node.MetadataEntry\022\014\n\004tags\030( \003(\t\022\017\n\002i" + + "d\030! \001(\003B\003\340A\003\022;\n\ndata_disks\030) \003(\0132\'.googl" + + "e.cloud.tpu.v2alpha1.AttachedDisk\022D\n\013api" + + "_version\030& \001(\0162*.google.cloud.tpu.v2alph" + + "a1.Node.ApiVersionB\003\340A\003\0229\n\010symptoms\030\' \003(" + + "\0132\".google.cloud.tpu.v2alpha1.SymptomB\003\340" + + "A\003\022\034\n\017queued_resource\030+ \001(\tB\003\340A\003\022H\n\022acce" + + "lerator_config\030, \001(\0132,.google.cloud.tpu." + + "v2alpha1.AcceleratorConfig\022S\n\030shielded_i" + + "nstance_config\030- \001(\01321.google.cloud.tpu." + + "v2alpha1.ShieldedInstanceConfig\022\034\n\017multi" + + "slice_node\030/ \001(\010B\003\340A\003\022#\n\026autocheckpoint_" + + "enabled\0300 \001(\010B\003\340A\001\022H\n\020boot_disk_config\0301" + + " \001(\0132).google.cloud.tpu.v2alpha1.BootDis" + + "kConfigB\003\340A\001\022Q\n\024upcoming_maintenance\0303 \001" + + "(\0132..google.cloud.tpu.v2alpha1.UpcomingM" + + "aintenanceB\003\340A\003\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\"\356\001\n\005Stat" + + "e\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t" + + "\n\005READY\020\002\022\016\n\nRESTARTING\020\003\022\r\n\tREIMAGING\020\004" + + "\022\014\n\010DELETING\020\005\022\r\n\tREPAIRING\020\006\022\013\n\007STOPPED" + + "\020\010\022\014\n\010STOPPING\020\t\022\014\n\010STARTING\020\n\022\r\n\tPREEMP" + + "TED\020\013\022\016\n\nTERMINATED\020\014\022\n\n\006HIDING\020\r\022\n\n\006HID" + + "DEN\020\016\022\014\n\010UNHIDING\020\017\022\013\n\007UNKNOWN\020\020\"o\n\006Heal" + "th\022\026\n\022HEALTH_UNSPECIFIED\020\000\022\013\n\007HEALTHY\020\001\022" + "\013\n\007TIMEOUT\020\003\022\030\n\024UNHEALTHY_TENSORFLOW\020\004\022\031" + "\n\025UNHEALTHY_MAINTENANCE\020\005\"O\n\nApiVersion\022" + "\033\n\027API_VERSION_UNSPECIFIED\020\000\022\r\n\tV1_ALPHA" + "1\020\001\022\006\n\002V1\020\002\022\r\n\tV2_ALPHA1\020\003:R\352AO\n\027tpu.goo" + "gleapis.com/Node\0224projects/{project}/loc" - + "ations/{location}/nodes/{node}\"\275\013\n\016Queue" - + "dResource\022\024\n\004name\030\001 \001(\tB\006\340A\003\340A\005\022<\n\003tpu\030\002" - + " \001(\0132-.google.cloud.tpu.v2alpha1.QueuedR" - + "esource.TpuH\000\022K\n\013best_effort\030\003 \001(\01324.goo" - + "gle.cloud.tpu.v2alpha1.QueuedResource.Be" - + "stEffortH\001\022J\n\nguaranteed\030\004 \001(\01324.google." - + "cloud.tpu.v2alpha1.QueuedResource.Guaran" - + "teedH\001\022C\n\004spot\030\t \001(\0132..google.cloud.tpu." - + "v2alpha1.QueuedResource.SpotB\003\340A\001H\001\022Q\n\017q" - + "ueueing_policy\030\005 \001(\01328.google.cloud.tpu." - + "v2alpha1.QueuedResource.QueueingPolicy\022B" - + "\n\005state\030\006 \001(\0132..google.cloud.tpu.v2alpha" - + "1.QueuedResourceStateB\003\340A\003\022\030\n\020reservatio" - + "n_name\030\010 \001(\t\032\211\003\n\003Tpu\022I\n\tnode_spec\030\001 \003(\0132" - + "6.google.cloud.tpu.v2alpha1.QueuedResour" - + "ce.Tpu.NodeSpec\032\266\002\n\010NodeSpec\0229\n\006parent\030\001" - + " \001(\tB)\340A\002\372A#\n!locations.googleapis.com/L" - + "ocation\022\017\n\007node_id\030\002 \001(\t\022f\n\021multi_node_p" - + "arams\030\006 \001(\0132F.google.cloud.tpu.v2alpha1." - + "QueuedResource.Tpu.NodeSpec.MultiNodePar" - + "amsB\003\340A\001\0222\n\004node\030\003 \001(\0132\037.google.cloud.tp" - + "u.v2alpha1.NodeB\003\340A\002\032B\n\017MultiNodeParams\022" - + "\027\n\nnode_count\030\001 \001(\005B\003\340A\002\022\026\n\016node_id_pref" - + "ix\030\002 \001(\t\032\014\n\nBestEffort\032\006\n\004Spot\032Y\n\nGuaran" - + "teed\0224\n\014min_duration\030\001 \001(\0132\031.google.prot" - + "obuf.DurationB\003\340A\001\022\025\n\010reserved\030\002 \001(\010B\003\340A" - + "\001\032\303\002\n\016QueueingPolicy\0229\n\024valid_until_dura" - + "tion\030\001 \001(\0132\031.google.protobuf.DurationH\000\022" - + "6\n\020valid_until_time\030\002 \001(\0132\032.google.proto" - + "buf.TimestampH\000\0229\n\024valid_after_duration\030" - + "\003 \001(\0132\031.google.protobuf.DurationH\000\0226\n\020va" - + "lid_after_time\030\004 \001(\0132\032.google.protobuf.T" - + "imestampH\000\022/\n\016valid_interval\030\005 \001(\0132\025.goo" - + "gle.type.IntervalH\000B\032\n\030start_timing_cons" - + "traints:q\352An\n!tpu.googleapis.com/QueuedR" - + "esource\022Iprojects/{project}/locations/{l" - + "ocation}/queuedResources/{queued_resourc" - + "e}B\n\n\010resourceB\006\n\004tier\"\232\n\n\023QueuedResourc" - + "eState\022C\n\005state\030\001 \001(\01624.google.cloud.tpu" - + ".v2alpha1.QueuedResourceState.State\022T\n\rc" - + "reating_data\030\002 \001(\0132;.google.cloud.tpu.v2" - + "alpha1.QueuedResourceState.CreatingDataH" - + "\000\022T\n\raccepted_data\030\003 \001(\0132;.google.cloud." - + "tpu.v2alpha1.QueuedResourceState.Accepte" - + "dDataH\000\022\\\n\021provisioning_data\030\004 \001(\0132?.goo" - + "gle.cloud.tpu.v2alpha1.QueuedResourceSta" - + "te.ProvisioningDataH\000\022P\n\013failed_data\030\005 \001" - + "(\01329.google.cloud.tpu.v2alpha1.QueuedRes" - + "ourceState.FailedDataH\000\022T\n\rdeleting_data" - + "\030\006 \001(\0132;.google.cloud.tpu.v2alpha1.Queue" - + "dResourceState.DeletingDataH\000\022P\n\013active_" - + "data\030\007 \001(\01329.google.cloud.tpu.v2alpha1.Q" - + "ueuedResourceState.ActiveDataH\000\022X\n\017suspe" - + "nding_data\030\010 \001(\0132=.google.cloud.tpu.v2al" - + "pha1.QueuedResourceState.SuspendingDataH" - + "\000\022V\n\016suspended_data\030\t \001(\0132<.google.cloud" - + ".tpu.v2alpha1.QueuedResourceState.Suspen" - + "dedDataH\000\022[\n\017state_initiator\030\n \001(\0162=.goo" - + "gle.cloud.tpu.v2alpha1.QueuedResourceSta" - + "te.StateInitiatorB\003\340A\003\032\016\n\014CreatingData\032\016" - + "\n\014AcceptedData\032\022\n\020ProvisioningData\032/\n\nFa" - + "iledData\022!\n\005error\030\001 \001(\0132\022.google.rpc.Sta" - + "tus\032\016\n\014DeletingData\032\014\n\nActiveData\032\020\n\016Sus" - + "pendingData\032\017\n\rSuspendedData\"\254\001\n\005State\022\025" - + "\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\014\n\010A" - + "CCEPTED\020\002\022\020\n\014PROVISIONING\020\003\022\n\n\006FAILED\020\004\022" - + "\014\n\010DELETING\020\005\022\n\n\006ACTIVE\020\006\022\016\n\nSUSPENDING\020" - + "\007\022\r\n\tSUSPENDED\020\010\022\031\n\025WAITING_FOR_RESOURCE" - + "S\020\t\"H\n\016StateInitiator\022\037\n\033STATE_INITIATOR" - + "_UNSPECIFIED\020\000\022\010\n\004USER\020\001\022\013\n\007SERVICE\020\002B\014\n" - + "\nstate_data\"j\n\020ListNodesRequest\022/\n\006paren" - + "t\030\001 \001(\tB\037\340A\002\372A\031\022\027tpu.googleapis.com/Node" - + "\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"" - + "q\n\021ListNodesResponse\022.\n\005nodes\030\001 \003(\0132\037.go" - + "ogle.cloud.tpu.v2alpha1.Node\022\027\n\017next_pag" - + "e_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"?\n\016Ge" - + "tNodeRequest\022-\n\004name\030\001 \001(\tB\037\340A\002\372A\031\n\027tpu." - + "googleapis.com/Node\"\247\001\n\021CreateNodeReques" - + "t\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goo" - + "gleapis.com/Location\022\017\n\007node_id\030\002 \001(\t\0222\n" - + "\004node\030\003 \001(\0132\037.google.cloud.tpu.v2alpha1." - + "NodeB\003\340A\002\022\022\n\nrequest_id\030\006 \001(\t\"V\n\021DeleteN" - + "odeRequest\022-\n\004name\030\001 \001(\tB\037\340A\002\372A\031\n\027tpu.go" - + "ogleapis.com/Node\022\022\n\nrequest_id\030\003 \001(\t\"@\n" - + "\017StopNodeRequest\022-\n\004name\030\001 \001(\tB\037\340A\002\372A\031\n\027" - + "tpu.googleapis.com/Node\"A\n\020StartNodeRequ" - + "est\022-\n\004name\030\001 \001(\tB\037\340A\002\372A\031\n\027tpu.googleapi" - + "s.com/Node\"}\n\021UpdateNodeRequest\0224\n\013updat" - + "e_mask\030\001 \001(\0132\032.google.protobuf.FieldMask" - + "B\003\340A\002\0222\n\004node\030\002 \001(\0132\037.google.cloud.tpu.v" - + "2alpha1.NodeB\003\340A\002\"~\n\032ListQueuedResources" - + "Request\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\022!tpu.goo" - + "gleapis.com/QueuedResource\022\021\n\tpage_size\030" - + "\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\220\001\n\033ListQueued" - + "ResourcesResponse\022C\n\020queued_resources\030\001 " - + "\003(\0132).google.cloud.tpu.v2alpha1.QueuedRe" - + "source\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unrea" - + "chable\030\003 \003(\t\"S\n\030GetQueuedResourceRequest" - + "\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!tpu.googleapis.c" - + "om/QueuedResource\"\321\001\n\033CreateQueuedResour" - + "ceRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locat" - + "ions.googleapis.com/Location\022\032\n\022queued_r" - + "esource_id\030\002 \001(\t\022G\n\017queued_resource\030\003 \001(" - + "\0132).google.cloud.tpu.v2alpha1.QueuedReso" - + "urceB\003\340A\002\022\022\n\nrequest_id\030\004 \001(\t\"y\n\033DeleteQ" - + "ueuedResourceRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372" - + "A#\n!tpu.googleapis.com/QueuedResource\022\022\n" - + "\nrequest_id\030\002 \001(\t\022\r\n\005force\030\003 \001(\010\"U\n\032Rese" - + "tQueuedResourceRequest\0227\n\004name\030\001 \001(\tB)\340A" - + "\002\372A#\n!tpu.googleapis.com/QueuedResource\"" - + " \n\017ServiceIdentity\022\r\n\005email\030\001 \001(\t\"[\n\036Gen" - + "erateServiceIdentityRequest\0229\n\006parent\030\001 " - + "\001(\tB)\340A\002\372A#\n!locations.googleapis.com/Lo" - + "cation\"_\n\037GenerateServiceIdentityRespons" - + "e\022<\n\010identity\030\001 \001(\0132*.google.cloud.tpu.v" - + "2alpha1.ServiceIdentity\"\356\001\n\017AcceleratorT" - + "ype\022\014\n\004name\030\001 \001(\t\022\014\n\004type\030\002 \001(\t\022I\n\023accel" - + "erator_configs\030\003 \003(\0132,.google.cloud.tpu." - + "v2alpha1.AcceleratorConfig:t\352Aq\n\"tpu.goo" - + "gleapis.com/AcceleratorType\022Kprojects/{p" - + "roject}/locations/{location}/accelerator" - + "Types/{accelerator_type}\"U\n\031GetAccelerat" - + "orTypeRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"tpu" - + ".googleapis.com/AcceleratorType\"\242\001\n\033List" - + "AcceleratorTypesRequest\022:\n\006parent\030\001 \001(\tB" - + "*\340A\002\372A$\022\"tpu.googleapis.com/AcceleratorT" - + "ype\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001" - + "(\t\022\016\n\006filter\030\005 \001(\t\022\020\n\010order_by\030\006 \001(\t\"\223\001\n" - + "\034ListAcceleratorTypesResponse\022E\n\021acceler" - + "ator_types\030\001 \003(\0132*.google.cloud.tpu.v2al" - + "pha1.AcceleratorType\022\027\n\017next_page_token\030" - + "\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\242\001\n\016RuntimeVe" - + "rsion\022\014\n\004name\030\001 \001(\t\022\017\n\007version\030\002 \001(\t:q\352A" - + "n\n!tpu.googleapis.com/RuntimeVersion\022Ipr" - + "ojects/{project}/locations/{location}/ru" - + "ntimeVersions/{runtime_version}\"S\n\030GetRu" - + "ntimeVersionRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A" - + "#\n!tpu.googleapis.com/RuntimeVersion\"\240\001\n" - + "\032ListRuntimeVersionsRequest\0229\n\006parent\030\001 " - + "\001(\tB)\340A\002\372A#\022!tpu.googleapis.com/RuntimeV" - + "ersion\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030" - + "\003 \001(\t\022\016\n\006filter\030\005 \001(\t\022\020\n\010order_by\030\006 \001(\t\"" - + "\220\001\n\033ListRuntimeVersionsResponse\022C\n\020runti" - + "me_versions\030\001 \003(\0132).google.cloud.tpu.v2a" - + "lpha1.RuntimeVersion\022\027\n\017next_page_token\030" - + "\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\326\001\n\021Operation" - + "Metadata\022/\n\013create_time\030\001 \001(\0132\032.google.p" - + "rotobuf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032.go" - + "ogle.protobuf.Timestamp\022\016\n\006target\030\003 \001(\t\022" - + "\014\n\004verb\030\004 \001(\t\022\025\n\rstatus_detail\030\005 \001(\t\022\030\n\020" - + "cancel_requested\030\006 \001(\010\022\023\n\013api_version\030\007 " - + "\001(\t\"\313\002\n\007Symptom\022/\n\013create_time\030\001 \001(\0132\032.g" - + "oogle.protobuf.Timestamp\022D\n\014symptom_type" - + "\030\002 \001(\0162..google.cloud.tpu.v2alpha1.Sympt" - + "om.SymptomType\022\017\n\007details\030\003 \001(\t\022\021\n\tworke" - + "r_id\030\004 \001(\t\"\244\001\n\013SymptomType\022\034\n\030SYMPTOM_TY" - + "PE_UNSPECIFIED\020\000\022\016\n\nLOW_MEMORY\020\001\022\021\n\rOUT_" - + "OF_MEMORY\020\002\022\025\n\021EXECUTE_TIMED_OUT\020\003\022\023\n\017ME" - + "SH_BUILD_FAIL\020\004\022\025\n\021HBM_OUT_OF_MEMORY\020\005\022\021" - + "\n\rPROJECT_ABUSE\020\006\"r\n\031GetGuestAttributesR" - + "equest\022-\n\004name\030\001 \001(\tB\037\340A\002\372A\031\n\027tpu.google" - + "apis.com/Node\022\022\n\nquery_path\030\002 \001(\t\022\022\n\nwor" - + "ker_ids\030\003 \003(\t\"b\n\032GetGuestAttributesRespo" - + "nse\022D\n\020guest_attributes\030\001 \003(\0132*.google.c" - + "loud.tpu.v2alpha1.GuestAttributes\"d\n\037Sim" - + "ulateMaintenanceEventRequest\022-\n\004name\030\001 \001" - + "(\tB\037\340A\002\372A\031\n\027tpu.googleapis.com/Node\022\022\n\nw" - + "orker_ids\030\002 \003(\t\"\246\001\n\021AcceleratorConfig\022D\n" - + "\004type\030\001 \001(\01621.google.cloud.tpu.v2alpha1." - + "AcceleratorConfig.TypeB\003\340A\002\022\025\n\010topology\030" - + "\002 \001(\tB\003\340A\002\"4\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000" - + "\022\006\n\002V2\020\002\022\006\n\002V3\020\004\022\006\n\002V4\020\007\"4\n\026ShieldedInst" - + "anceConfig\022\032\n\022enable_secure_boot\030\001 \001(\010\"\222" - + "\001\n\016BootDiskConfig\022V\n\027customer_encryption" - + "_key\030\001 \001(\01320.google.cloud.tpu.v2alpha1.C" - + "ustomerEncryptionKeyB\003\340A\001\022(\n\033enable_conf" - + "idential_compute\030\002 \001(\010B\003\340A\001\"6\n\025CustomerE" - + "ncryptionKey\022\026\n\014kms_key_name\030\007 \001(\tH\000B\005\n\003" - + "key2\236\037\n\003Tpu\022\250\001\n\tListNodes\022+.google.cloud" - + ".tpu.v2alpha1.ListNodesRequest\032,.google." - + "cloud.tpu.v2alpha1.ListNodesResponse\"@\332A" - + "\006parent\202\323\344\223\0021\022//v2alpha1/{parent=project" - + "s/*/locations/*}/nodes\022\225\001\n\007GetNode\022).goo" - + "gle.cloud.tpu.v2alpha1.GetNodeRequest\032\037." - + "google.cloud.tpu.v2alpha1.Node\">\332A\004name\202" - + "\323\344\223\0021\022//v2alpha1/{name=projects/*/locati" - + "ons/*/nodes/*}\022\312\001\n\nCreateNode\022,.google.c" - + "loud.tpu.v2alpha1.CreateNodeRequest\032\035.go" - + "ogle.longrunning.Operation\"o\312A\031\n\004Node\022\021O" - + "perationMetadata\332A\023parent,node,node_id\202\323" - + "\344\223\0027\"//v2alpha1/{parent=projects/*/locat" - + "ions/*}/nodes:\004node\022\306\001\n\nDeleteNode\022,.goo" - + "gle.cloud.tpu.v2alpha1.DeleteNodeRequest" - + "\032\035.google.longrunning.Operation\"k\312A*\n\025go" - + "ogle.protobuf.Empty\022\021OperationMetadata\332A" - + "\004name\202\323\344\223\0021*//v2alpha1/{name=projects/*/" - + "locations/*/nodes/*}\022\262\001\n\010StopNode\022*.goog" - + "le.cloud.tpu.v2alpha1.StopNodeRequest\032\035." - + "google.longrunning.Operation\"[\312A\031\n\004Node\022" - + "\021OperationMetadata\202\323\344\223\0029\"4/v2alpha1/{nam" - + "e=projects/*/locations/*/nodes/*}:stop:\001" - + "*\022\265\001\n\tStartNode\022+.google.cloud.tpu.v2alp" - + "ha1.StartNodeRequest\032\035.google.longrunnin" - + "g.Operation\"\\\312A\031\n\004Node\022\021OperationMetadat" - + "a\202\323\344\223\002:\"5/v2alpha1/{name=projects/*/loca" - + "tions/*/nodes/*}:start:\001*\022\314\001\n\nUpdateNode" - + "\022,.google.cloud.tpu.v2alpha1.UpdateNodeR" - + "equest\032\035.google.longrunning.Operation\"q\312" - + "A\031\n\004Node\022\021OperationMetadata\332A\020node,updat" - + "e_mask\202\323\344\223\002<24/v2alpha1/{node.name=proje" - + "cts/*/locations/*/nodes/*}:\004node\022\320\001\n\023Lis" + + "ations/{location}/nodes/{node}\"\312\r\n\016Queue" + + "dResource\022\024\n\004name\030\001 \001(\tB\006\340A\003\340A\005\0224\n\013creat" + + "e_time\030\013 \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\022<\n\003tpu\030\002 \001(\0132-.google.cloud.tpu.v2" + + "alpha1.QueuedResource.TpuH\000\022K\n\013best_effo" + + "rt\030\003 \001(\01324.google.cloud.tpu.v2alpha1.Que" + + "uedResource.BestEffortH\001\022J\n\nguaranteed\030\004" + + " \001(\01324.google.cloud.tpu.v2alpha1.QueuedR" + + "esource.GuaranteedH\001\022C\n\004spot\030\t \001(\0132..goo" + + "gle.cloud.tpu.v2alpha1.QueuedResource.Sp" + + "otB\003\340A\001H\001\022Q\n\017queueing_policy\030\005 \001(\01328.goo" + + "gle.cloud.tpu.v2alpha1.QueuedResource.Qu" + + "eueingPolicy\022B\n\005state\030\006 \001(\0132..google.clo" + + "ud.tpu.v2alpha1.QueuedResourceStateB\003\340A\003" + + "\022\030\n\020reservation_name\030\010 \001(\t\032\340\004\n\003Tpu\022I\n\tno" + + "de_spec\030\001 \003(\01326.google.cloud.tpu.v2alpha" + + "1.QueuedResource.Tpu.NodeSpec\032\215\004\n\010NodeSp" + + "ec\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.go" + + "ogleapis.com/Location\022\017\n\007node_id\030\002 \001(\t\022f" + + "\n\021multi_node_params\030\006 \001(\0132F.google.cloud" + + ".tpu.v2alpha1.QueuedResource.Tpu.NodeSpe" + + "c.MultiNodeParamsB\003\340A\001\0222\n\004node\030\003 \001(\0132\037.g" + + "oogle.cloud.tpu.v2alpha1.NodeB\003\340A\002\032\230\002\n\017M" + + "ultiNodeParams\022\027\n\nnode_count\030\001 \001(\005B\003\340A\002\022" + + "\026\n\016node_id_prefix\030\002 \001(\t\022o\n\rworkload_type" + + "\030\004 \001(\0162S.google.cloud.tpu.v2alpha1.Queue" + + "dResource.Tpu.NodeSpec.MultiNodeParams.W" + + "orkloadTypeB\003\340A\001\"c\n\014WorkloadType\022\035\n\031WORK" + + "LOAD_TYPE_UNSPECIFIED\020\000\022\030\n\024THROUGHPUT_OP" + + "TIMIZED\020\001\022\032\n\026AVAILABILITY_OPTIMIZED\020\002\032\014\n" + + "\nBestEffort\032\006\n\004Spot\032Y\n\nGuaranteed\0224\n\014min" + + "_duration\030\001 \001(\0132\031.google.protobuf.Durati" + + "onB\003\340A\001\022\025\n\010reserved\030\002 \001(\010B\003\340A\001\032\303\002\n\016Queue" + + "ingPolicy\0229\n\024valid_until_duration\030\001 \001(\0132" + + "\031.google.protobuf.DurationH\000\0226\n\020valid_un" + + "til_time\030\002 \001(\0132\032.google.protobuf.Timesta" + + "mpH\000\0229\n\024valid_after_duration\030\003 \001(\0132\031.goo" + + "gle.protobuf.DurationH\000\0226\n\020valid_after_t" + + "ime\030\004 \001(\0132\032.google.protobuf.TimestampH\000\022" + + "/\n\016valid_interval\030\005 \001(\0132\025.google.type.In" + + "tervalH\000B\032\n\030start_timing_constraints:q\352A" + + "n\n!tpu.googleapis.com/QueuedResource\022Ipr" + + "ojects/{project}/locations/{location}/qu" + + "euedResources/{queued_resource}B\n\n\010resou" + + "rceB\006\n\004tier\"\232\n\n\023QueuedResourceState\022C\n\005s" + + "tate\030\001 \001(\01624.google.cloud.tpu.v2alpha1.Q" + + "ueuedResourceState.State\022T\n\rcreating_dat" + + "a\030\002 \001(\0132;.google.cloud.tpu.v2alpha1.Queu" + + "edResourceState.CreatingDataH\000\022T\n\raccept" + + "ed_data\030\003 \001(\0132;.google.cloud.tpu.v2alpha" + + "1.QueuedResourceState.AcceptedDataH\000\022\\\n\021" + + "provisioning_data\030\004 \001(\0132?.google.cloud.t" + + "pu.v2alpha1.QueuedResourceState.Provisio" + + "ningDataH\000\022P\n\013failed_data\030\005 \001(\01329.google" + + ".cloud.tpu.v2alpha1.QueuedResourceState." + + "FailedDataH\000\022T\n\rdeleting_data\030\006 \001(\0132;.go" + + "ogle.cloud.tpu.v2alpha1.QueuedResourceSt" + + "ate.DeletingDataH\000\022P\n\013active_data\030\007 \001(\0132" + + "9.google.cloud.tpu.v2alpha1.QueuedResour" + + "ceState.ActiveDataH\000\022X\n\017suspending_data\030" + + "\010 \001(\0132=.google.cloud.tpu.v2alpha1.Queued" + + "ResourceState.SuspendingDataH\000\022V\n\016suspen" + + "ded_data\030\t \001(\0132<.google.cloud.tpu.v2alph" + + "a1.QueuedResourceState.SuspendedDataH\000\022[" + + "\n\017state_initiator\030\n \001(\0162=.google.cloud.t" + + "pu.v2alpha1.QueuedResourceState.StateIni" + + "tiatorB\003\340A\003\032\016\n\014CreatingData\032\016\n\014AcceptedD" + + "ata\032\022\n\020ProvisioningData\032/\n\nFailedData\022!\n" + + "\005error\030\001 \001(\0132\022.google.rpc.Status\032\016\n\014Dele" + + "tingData\032\014\n\nActiveData\032\020\n\016SuspendingData" + + "\032\017\n\rSuspendedData\"\254\001\n\005State\022\025\n\021STATE_UNS" + + "PECIFIED\020\000\022\014\n\010CREATING\020\001\022\014\n\010ACCEPTED\020\002\022\020" + + "\n\014PROVISIONING\020\003\022\n\n\006FAILED\020\004\022\014\n\010DELETING" + + "\020\005\022\n\n\006ACTIVE\020\006\022\016\n\nSUSPENDING\020\007\022\r\n\tSUSPEN" + + "DED\020\010\022\031\n\025WAITING_FOR_RESOURCES\020\t\"H\n\016Stat" + + "eInitiator\022\037\n\033STATE_INITIATOR_UNSPECIFIE" + + "D\020\000\022\010\n\004USER\020\001\022\013\n\007SERVICE\020\002B\014\n\nstate_data" + + "\"j\n\020ListNodesRequest\022/\n\006parent\030\001 \001(\tB\037\340A" + + "\002\372A\031\022\027tpu.googleapis.com/Node\022\021\n\tpage_si" + + "ze\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"q\n\021ListNode" + + "sResponse\022.\n\005nodes\030\001 \003(\0132\037.google.cloud." + + "tpu.v2alpha1.Node\022\027\n\017next_page_token\030\002 \001" + + "(\t\022\023\n\013unreachable\030\003 \003(\t\"?\n\016GetNodeReques" + + "t\022-\n\004name\030\001 \001(\tB\037\340A\002\372A\031\n\027tpu.googleapis." + + "com/Node\"\247\001\n\021CreateNodeRequest\0229\n\006parent" + + "\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com" + + "/Location\022\017\n\007node_id\030\002 \001(\t\0222\n\004node\030\003 \001(\013" + + "2\037.google.cloud.tpu.v2alpha1.NodeB\003\340A\002\022\022" + + "\n\nrequest_id\030\006 \001(\t\"V\n\021DeleteNodeRequest\022" + + "-\n\004name\030\001 \001(\tB\037\340A\002\372A\031\n\027tpu.googleapis.co" + + "m/Node\022\022\n\nrequest_id\030\003 \001(\t\"@\n\017StopNodeRe" + + "quest\022-\n\004name\030\001 \001(\tB\037\340A\002\372A\031\n\027tpu.googlea" + + "pis.com/Node\"A\n\020StartNodeRequest\022-\n\004name" + + "\030\001 \001(\tB\037\340A\002\372A\031\n\027tpu.googleapis.com/Node\"" + + "}\n\021UpdateNodeRequest\0224\n\013update_mask\030\001 \001(" + + "\0132\032.google.protobuf.FieldMaskB\003\340A\002\0222\n\004no" + + "de\030\002 \001(\0132\037.google.cloud.tpu.v2alpha1.Nod" + + "eB\003\340A\002\"~\n\032ListQueuedResourcesRequest\0229\n\006" + + "parent\030\001 \001(\tB)\340A\002\372A#\022!tpu.googleapis.com" + + "/QueuedResource\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npa" + + "ge_token\030\003 \001(\t\"\220\001\n\033ListQueuedResourcesRe" + + "sponse\022C\n\020queued_resources\030\001 \003(\0132).googl" + + "e.cloud.tpu.v2alpha1.QueuedResource\022\027\n\017n" + + "ext_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(" + + "\t\"S\n\030GetQueuedResourceRequest\0227\n\004name\030\001 " + + "\001(\tB)\340A\002\372A#\n!tpu.googleapis.com/QueuedRe" + + "source\"\321\001\n\033CreateQueuedResourceRequest\0229" + + "\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.google" + + "apis.com/Location\022\032\n\022queued_resource_id\030" + + "\002 \001(\t\022G\n\017queued_resource\030\003 \001(\0132).google." + + "cloud.tpu.v2alpha1.QueuedResourceB\003\340A\002\022\022" + + "\n\nrequest_id\030\004 \001(\t\"y\n\033DeleteQueuedResour" + + "ceRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!tpu.goo" + + "gleapis.com/QueuedResource\022\022\n\nrequest_id" + + "\030\002 \001(\t\022\r\n\005force\030\003 \001(\010\"U\n\032ResetQueuedReso" + + "urceRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!tpu.g" + + "oogleapis.com/QueuedResource\" \n\017ServiceI" + + "dentity\022\r\n\005email\030\001 \001(\t\"[\n\036GenerateServic" + + "eIdentityRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#" + + "\n!locations.googleapis.com/Location\"_\n\037G" + + "enerateServiceIdentityResponse\022<\n\010identi" + + "ty\030\001 \001(\0132*.google.cloud.tpu.v2alpha1.Ser" + + "viceIdentity\"\356\001\n\017AcceleratorType\022\014\n\004name" + + "\030\001 \001(\t\022\014\n\004type\030\002 \001(\t\022I\n\023accelerator_conf" + + "igs\030\003 \003(\0132,.google.cloud.tpu.v2alpha1.Ac" + + "celeratorConfig:t\352Aq\n\"tpu.googleapis.com" + + "/AcceleratorType\022Kprojects/{project}/loc" + + "ations/{location}/acceleratorTypes/{acce" + + "lerator_type}\"U\n\031GetAcceleratorTypeReque" + + "st\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"tpu.googleapis" + + ".com/AcceleratorType\"\242\001\n\033ListAccelerator" + + "TypesRequest\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\022\"tp" + + "u.googleapis.com/AcceleratorType\022\021\n\tpage" + + "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filte" + + "r\030\005 \001(\t\022\020\n\010order_by\030\006 \001(\t\"\223\001\n\034ListAccele" + + "ratorTypesResponse\022E\n\021accelerator_types\030" + + "\001 \003(\0132*.google.cloud.tpu.v2alpha1.Accele" + + "ratorType\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013un" + + "reachable\030\003 \003(\t\"\242\001\n\016RuntimeVersion\022\014\n\004na" + + "me\030\001 \001(\t\022\017\n\007version\030\002 \001(\t:q\352An\n!tpu.goog" + + "leapis.com/RuntimeVersion\022Iprojects/{pro" + + "ject}/locations/{location}/runtimeVersio" + + "ns/{runtime_version}\"S\n\030GetRuntimeVersio" + + "nRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!tpu.goog" + + "leapis.com/RuntimeVersion\"\240\001\n\032ListRuntim" + + "eVersionsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#" + + "\022!tpu.googleapis.com/RuntimeVersion\022\021\n\tp" + + "age_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006fi" + + "lter\030\005 \001(\t\022\020\n\010order_by\030\006 \001(\t\"\220\001\n\033ListRun" + + "timeVersionsResponse\022C\n\020runtime_versions" + + "\030\001 \003(\0132).google.cloud.tpu.v2alpha1.Runti" + + "meVersion\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013un" + + "reachable\030\003 \003(\t\"\326\001\n\021OperationMetadata\022/\n" + + "\013create_time\030\001 \001(\0132\032.google.protobuf.Tim" + + "estamp\022,\n\010end_time\030\002 \001(\0132\032.google.protob" + + "uf.Timestamp\022\016\n\006target\030\003 \001(\t\022\014\n\004verb\030\004 \001" + + "(\t\022\025\n\rstatus_detail\030\005 \001(\t\022\030\n\020cancel_requ" + + "ested\030\006 \001(\010\022\023\n\013api_version\030\007 \001(\t\"\313\002\n\007Sym" + + "ptom\022/\n\013create_time\030\001 \001(\0132\032.google.proto" + + "buf.Timestamp\022D\n\014symptom_type\030\002 \001(\0162..go" + + "ogle.cloud.tpu.v2alpha1.Symptom.SymptomT" + + "ype\022\017\n\007details\030\003 \001(\t\022\021\n\tworker_id\030\004 \001(\t\"" + + "\244\001\n\013SymptomType\022\034\n\030SYMPTOM_TYPE_UNSPECIF" + + "IED\020\000\022\016\n\nLOW_MEMORY\020\001\022\021\n\rOUT_OF_MEMORY\020\002" + + "\022\025\n\021EXECUTE_TIMED_OUT\020\003\022\023\n\017MESH_BUILD_FA" + + "IL\020\004\022\025\n\021HBM_OUT_OF_MEMORY\020\005\022\021\n\rPROJECT_A" + + "BUSE\020\006\"r\n\031GetGuestAttributesRequest\022-\n\004n" + + "ame\030\001 \001(\tB\037\340A\002\372A\031\n\027tpu.googleapis.com/No" + + "de\022\022\n\nquery_path\030\002 \001(\t\022\022\n\nworker_ids\030\003 \003" + + "(\t\"b\n\032GetGuestAttributesResponse\022D\n\020gues" + + "t_attributes\030\001 \003(\0132*.google.cloud.tpu.v2" + + "alpha1.GuestAttributes\"d\n\037SimulateMainte" + + "nanceEventRequest\022-\n\004name\030\001 \001(\tB\037\340A\002\372A\031\n" + + "\027tpu.googleapis.com/Node\022\022\n\nworker_ids\030\002" + + " \003(\t\"J\n\031PerformMaintenanceRequest\022-\n\004nam" + + "e\030\001 \001(\tB\037\340A\002\372A\031\n\027tpu.googleapis.com/Node" + + "\"v\n\'PerformMaintenanceQueuedResourceRequ" + + "est\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!tpu.googleapi" + + "s.com/QueuedResource\022\022\n\nnode_names\030\002 \003(\t" + + "\"\343\005\n\013Reservation\022\014\n\004name\030\001 \001(\t\022C\n\010standa" + + "rd\030\002 \001(\0132/.google.cloud.tpu.v2alpha1.Res" + + "ervation.StandardH\000\022@\n\005state\030\003 \001(\0162,.goo" + + "gle.cloud.tpu.v2alpha1.Reservation.State" + + "B\003\340A\003\032\324\002\n\010Standard\022\014\n\004size\030\001 \001(\005\022U\n\016capa" + + "city_units\030\002 \001(\0162=.google.cloud.tpu.v2al" + + "pha1.Reservation.Standard.CapacityUnits\022" + + "\025\n\rresource_type\030\003 \001(\t\022\'\n\010interval\030\004 \001(\013" + + "2\025.google.type.Interval\022D\n\005usage\030\005 \001(\01325" + + ".google.cloud.tpu.v2alpha1.Reservation.S" + + "tandard.Usage\032\026\n\005Usage\022\r\n\005total\030\001 \001(\003\"E\n" + + "\rCapacityUnits\022\036\n\032CAPACITY_UNITS_UNSPECI" + + "FIED\020\000\022\t\n\005CORES\020\001\022\t\n\005CHIPS\020\002\"w\n\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\014\n\010APPROVED\020\003\022\020\n\014PR" + + "OVISIONING\020\004\022\n\n\006ACTIVE\020\005\022\022\n\016DEPROVISIONI" + + "NG\020\006\022\013\n\007EXPIRED\020\007\022\n\n\006FAILED\020\010:g\352Ad\n\036tpu." + + "googleapis.com/Reservation\022Bprojects/{pr" + + "oject}/locations/{location}/reservations" + + "/{reservation}B\006\n\004kind\"x\n\027ListReservatio" + + "nsRequest\0226\n\006parent\030\001 \001(\tB&\340A\002\372A \022\036tpu.g" + + "oogleapis.com/Reservation\022\021\n\tpage_size\030\002" + + " \001(\005\022\022\n\npage_token\030\003 \001(\t\"q\n\030ListReservat" + + "ionsResponse\022<\n\014reservations\030\001 \003(\0132&.goo" + + "gle.cloud.tpu.v2alpha1.Reservation\022\027\n\017ne" + + "xt_page_token\030\002 \001(\t\"\310\001\n\021AcceleratorConfi" + + "g\022D\n\004type\030\001 \001(\01621.google.cloud.tpu.v2alp" + + "ha1.AcceleratorConfig.TypeB\003\340A\002\022\025\n\010topol" + + "ogy\030\002 \001(\tB\003\340A\002\"V\n\004Type\022\024\n\020TYPE_UNSPECIFI" + + "ED\020\000\022\006\n\002V2\020\002\022\006\n\002V3\020\004\022\006\n\002V4\020\007\022\016\n\nV5LITE_P" + + "OD\020\t\022\007\n\003V5P\020\n\022\007\n\003V6E\020\013\"4\n\026ShieldedInstan" + + "ceConfig\022\032\n\022enable_secure_boot\030\001 \001(\010\"\222\001\n" + + "\016BootDiskConfig\022V\n\027customer_encryption_k" + + "ey\030\001 \001(\01320.google.cloud.tpu.v2alpha1.Cus" + + "tomerEncryptionKeyB\003\340A\001\022(\n\033enable_confid" + + "ential_compute\030\002 \001(\010B\003\340A\001\"6\n\025CustomerEnc" + + "ryptionKey\022\026\n\014kms_key_name\030\007 \001(\tH\000B\005\n\003ke" + + "y\"\310\004\n\023UpcomingMaintenance\022Q\n\004type\030\001 \001(\0162" + + ">.google.cloud.tpu.v2alpha1.UpcomingMain" + + "tenance.MaintenanceTypeH\000\210\001\001\022\033\n\016can_resc" + + "hedule\030\005 \001(\010H\001\210\001\001\022\036\n\021window_start_time\030\006" + + " \001(\tH\002\210\001\001\022\034\n\017window_end_time\030\007 \001(\tH\003\210\001\001\022" + + "%\n\030latest_window_start_time\030\010 \001(\tH\004\210\001\001\022a" + + "\n\022maintenance_status\030\t \001(\0162@.google.clou" + + "d.tpu.v2alpha1.UpcomingMaintenance.Maint" + + "enanceStatusH\005\210\001\001\"C\n\017MaintenanceType\022\020\n\014" + + "UNKNOWN_TYPE\020\000\022\r\n\tSCHEDULED\020\001\022\017\n\013UNSCHED" + + "ULED\020\002\":\n\021MaintenanceStatus\022\013\n\007UNKNOWN\020\000" + + "\022\013\n\007PENDING\020\001\022\013\n\007ONGOING\020\002B\007\n\005_typeB\021\n\017_" + + "can_rescheduleB\024\n\022_window_start_timeB\022\n\020" + + "_window_end_timeB\033\n\031_latest_window_start" + + "_timeB\025\n\023_maintenance_status2\311$\n\003Tpu\022\250\001\n" + + "\tListNodes\022+.google.cloud.tpu.v2alpha1.L" + + "istNodesRequest\032,.google.cloud.tpu.v2alp" + + "ha1.ListNodesResponse\"@\332A\006parent\202\323\344\223\0021\022/" + + "/v2alpha1/{parent=projects/*/locations/*" + + "}/nodes\022\225\001\n\007GetNode\022).google.cloud.tpu.v" + + "2alpha1.GetNodeRequest\032\037.google.cloud.tp" + + "u.v2alpha1.Node\">\332A\004name\202\323\344\223\0021\022//v2alpha" + + "1/{name=projects/*/locations/*/nodes/*}\022" + + "\312\001\n\nCreateNode\022,.google.cloud.tpu.v2alph" + + "a1.CreateNodeRequest\032\035.google.longrunnin" + + "g.Operation\"o\312A\031\n\004Node\022\021OperationMetadat" + + "a\332A\023parent,node,node_id\202\323\344\223\0027\"//v2alpha1" + + "/{parent=projects/*/locations/*}/nodes:\004" + + "node\022\306\001\n\nDeleteNode\022,.google.cloud.tpu.v" + + "2alpha1.DeleteNodeRequest\032\035.google.longr" + + "unning.Operation\"k\312A*\n\025google.protobuf.E" + + "mpty\022\021OperationMetadata\332A\004name\202\323\344\223\0021*//v" + + "2alpha1/{name=projects/*/locations/*/nod" + + "es/*}\022\262\001\n\010StopNode\022*.google.cloud.tpu.v2" + + "alpha1.StopNodeRequest\032\035.google.longrunn" + + "ing.Operation\"[\312A\031\n\004Node\022\021OperationMetad" + + "ata\202\323\344\223\0029\"4/v2alpha1/{name=projects/*/lo" + + "cations/*/nodes/*}:stop:\001*\022\265\001\n\tStartNode" + + "\022+.google.cloud.tpu.v2alpha1.StartNodeRe" + + "quest\032\035.google.longrunning.Operation\"\\\312A" + + "\031\n\004Node\022\021OperationMetadata\202\323\344\223\002:\"5/v2alp" + + "ha1/{name=projects/*/locations/*/nodes/*" + + "}:start:\001*\022\314\001\n\nUpdateNode\022,.google.cloud" + + ".tpu.v2alpha1.UpdateNodeRequest\032\035.google" + + ".longrunning.Operation\"q\312A\031\n\004Node\022\021Opera" + + "tionMetadata\332A\020node,update_mask\202\323\344\223\002<24/" + + "v2alpha1/{node.name=projects/*/locations" + + "/*/nodes/*}:\004node\022\324\001\n\022PerformMaintenance" + + "\0224.google.cloud.tpu.v2alpha1.PerformMain" + + "tenanceRequest\032\035.google.longrunning.Oper" + + "ation\"i\312A\031\n\004Node\022\021OperationMetadata\202\323\344\223\002" + + "G\"B/v2alpha1/{name=projects/*/locations/" + + "*/nodes/*}:performMaintenance:\001*\022\320\001\n\023Lis" + "tQueuedResources\0225.google.cloud.tpu.v2al" + "pha1.ListQueuedResourcesRequest\0326.google" + ".cloud.tpu.v2alpha1.ListQueuedResourcesR" @@ -604,48 +700,60 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "peration\"w\312A#\n\016QueuedResource\022\021Operation" + "Metadata\332A\004name\202\323\344\223\002D\"?/v2alpha1/{name=p" + "rojects/*/locations/*/queuedResources/*}" - + ":reset:\001*\022\336\001\n\027GenerateServiceIdentity\0229." - + "google.cloud.tpu.v2alpha1.GenerateServic" - + "eIdentityRequest\032:.google.cloud.tpu.v2al" - + "pha1.GenerateServiceIdentityResponse\"L\202\323" - + "\344\223\002F\"A/v2alpha1/{parent=projects/*/locat" - + "ions/*}:generateServiceIdentity:\001*\022\324\001\n\024L" - + "istAcceleratorTypes\0226.google.cloud.tpu.v" - + "2alpha1.ListAcceleratorTypesRequest\0327.go" - + "ogle.cloud.tpu.v2alpha1.ListAcceleratorT" - + "ypesResponse\"K\332A\006parent\202\323\344\223\002<\022:/v2alpha1" - + "/{parent=projects/*/locations/*}/acceler" - + "atorTypes\022\301\001\n\022GetAcceleratorType\0224.googl" - + "e.cloud.tpu.v2alpha1.GetAcceleratorTypeR" - + "equest\032*.google.cloud.tpu.v2alpha1.Accel" - + "eratorType\"I\332A\004name\202\323\344\223\002<\022:/v2alpha1/{na" - + "me=projects/*/locations/*/acceleratorTyp" - + "es/*}\022\320\001\n\023ListRuntimeVersions\0225.google.c" - + "loud.tpu.v2alpha1.ListRuntimeVersionsReq" - + "uest\0326.google.cloud.tpu.v2alpha1.ListRun" - + "timeVersionsResponse\"J\332A\006parent\202\323\344\223\002;\0229/" - + "v2alpha1/{parent=projects/*/locations/*}" - + "/runtimeVersions\022\275\001\n\021GetRuntimeVersion\0223" - + ".google.cloud.tpu.v2alpha1.GetRuntimeVer" - + "sionRequest\032).google.cloud.tpu.v2alpha1." - + "RuntimeVersion\"H\332A\004name\202\323\344\223\002;\0229/v2alpha1" - + "/{name=projects/*/locations/*/runtimeVer" - + "sions/*}\022\320\001\n\022GetGuestAttributes\0224.google" - + ".cloud.tpu.v2alpha1.GetGuestAttributesRe" - + "quest\0325.google.cloud.tpu.v2alpha1.GetGue" - + "stAttributesResponse\"M\202\323\344\223\002G\"B/v2alpha1/" - + "{name=projects/*/locations/*/nodes/*}:ge" - + "tGuestAttributes:\001*\022\346\001\n\030SimulateMaintena" - + "nceEvent\022:.google.cloud.tpu.v2alpha1.Sim" - + "ulateMaintenanceEventRequest\032\035.google.lo" - + "ngrunning.Operation\"o\312A\031\n\004Node\022\021Operatio" - + "nMetadata\202\323\344\223\002M\"H/v2alpha1/{name=project" - + "s/*/locations/*/nodes/*}:simulateMainten" - + "anceEvent:\001*\032F\312A\022tpu.googleapis.com\322A.ht" - + "tps://www.googleapis.com/auth/cloud-plat" - + "formBa\n\035com.google.cloud.tpu.v2alpha1B\rC" - + "loudTpuProtoP\001Z/cloud.google.com/go/tpu/" - + "apiv2alpha1/tpupb;tpupbb\006proto3" + + ":reset:\001*\022\223\002\n PerformMaintenanceQueuedRe" + + "source\022B.google.cloud.tpu.v2alpha1.Perfo" + + "rmMaintenanceQueuedResourceRequest\032\035.goo" + + "gle.longrunning.Operation\"\213\001\312A#\n\016QueuedR" + + "esource\022\021OperationMetadata\202\323\344\223\002_\"Z/v2alp" + + "ha1/{name=projects/*/locations/*/queuedR" + + "esources/*}:performMaintenanceQueuedReso" + + "urce:\001*\022\336\001\n\027GenerateServiceIdentity\0229.go" + + "ogle.cloud.tpu.v2alpha1.GenerateServiceI" + + "dentityRequest\032:.google.cloud.tpu.v2alph" + + "a1.GenerateServiceIdentityResponse\"L\202\323\344\223" + + "\002F\"A/v2alpha1/{parent=projects/*/locatio" + + "ns/*}:generateServiceIdentity:\001*\022\324\001\n\024Lis" + + "tAcceleratorTypes\0226.google.cloud.tpu.v2a" + + "lpha1.ListAcceleratorTypesRequest\0327.goog" + + "le.cloud.tpu.v2alpha1.ListAcceleratorTyp" + + "esResponse\"K\332A\006parent\202\323\344\223\002<\022:/v2alpha1/{" + + "parent=projects/*/locations/*}/accelerat" + + "orTypes\022\301\001\n\022GetAcceleratorType\0224.google." + + "cloud.tpu.v2alpha1.GetAcceleratorTypeReq" + + "uest\032*.google.cloud.tpu.v2alpha1.Acceler", + "atorType\"I\332A\004name\202\323\344\223\002<\022:/v2alpha1/{name" + + "=projects/*/locations/*/acceleratorTypes" + + "/*}\022\320\001\n\023ListRuntimeVersions\0225.google.clo" + + "ud.tpu.v2alpha1.ListRuntimeVersionsReque" + + "st\0326.google.cloud.tpu.v2alpha1.ListRunti" + + "meVersionsResponse\"J\332A\006parent\202\323\344\223\002;\0229/v2" + + "alpha1/{parent=projects/*/locations/*}/r" + + "untimeVersions\022\275\001\n\021GetRuntimeVersion\0223.g" + + "oogle.cloud.tpu.v2alpha1.GetRuntimeVersi" + + "onRequest\032).google.cloud.tpu.v2alpha1.Ru" + + "ntimeVersion\"H\332A\004name\202\323\344\223\002;\0229/v2alpha1/{" + + "name=projects/*/locations/*/runtimeVersi" + + "ons/*}\022\320\001\n\022GetGuestAttributes\0224.google.c" + + "loud.tpu.v2alpha1.GetGuestAttributesRequ" + + "est\0325.google.cloud.tpu.v2alpha1.GetGuest" + + "AttributesResponse\"M\202\323\344\223\002G\"B/v2alpha1/{n" + + "ame=projects/*/locations/*/nodes/*}:getG" + + "uestAttributes:\001*\022\273\001\n\020ListReservations\0222" + + ".google.cloud.tpu.v2alpha1.ListReservati" + + "onsRequest\0323.google.cloud.tpu.v2alpha1.L" + + "istReservationsResponse\">\202\323\344\223\0028\0226/v2alph" + + "a1/{parent=projects/*/locations/*}/reser" + + "vations\022\346\001\n\030SimulateMaintenanceEvent\022:.g" + + "oogle.cloud.tpu.v2alpha1.SimulateMainten" + + "anceEventRequest\032\035.google.longrunning.Op" + + "eration\"o\312A\031\n\004Node\022\021OperationMetadata\202\323\344" + + "\223\002M\"H/v2alpha1/{name=projects/*/location" + + "s/*/nodes/*}:simulateMaintenanceEvent:\001*" + + "\032F\312A\022tpu.googleapis.com\322A.https://www.go" + + "ogleapis.com/auth/cloud-platformBa\n\035com." + + "google.cloud.tpu.v2alpha1B\rCloudTpuProto" + + "P\001Z/cloud.google.com/go/tpu/apiv2alpha1/" + + "tpupb;tpupbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -654,6 +762,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.FieldInfoProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), @@ -701,7 +810,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_tpu_v2alpha1_SchedulingConfig_descriptor, new java.lang.String[] { - "Preemptible", "Reserved", + "Preemptible", "Reserved", "Spot", }); internal_static_google_cloud_tpu_v2alpha1_NetworkEndpoint_descriptor = getDescriptor().getMessageTypes().get(5); @@ -725,7 +834,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_tpu_v2alpha1_NetworkConfig_descriptor, new java.lang.String[] { - "Network", "Subnetwork", "EnableExternalIps", "CanIpForward", + "Network", "Subnetwork", "EnableExternalIps", "CanIpForward", "QueueCount", }); internal_static_google_cloud_tpu_v2alpha1_ServiceAccount_descriptor = getDescriptor().getMessageTypes().get(8); @@ -748,6 +857,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HealthDescription", "RuntimeVersion", "NetworkConfig", + "NetworkConfigs", "CidrBlock", "ServiceAccount", "CreateTime", @@ -765,7 +875,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AcceleratorConfig", "ShieldedInstanceConfig", "MultisliceNode", + "AutocheckpointEnabled", "BootDiskConfig", + "UpcomingMaintenance", }); internal_static_google_cloud_tpu_v2alpha1_Node_LabelsEntry_descriptor = internal_static_google_cloud_tpu_v2alpha1_Node_descriptor.getNestedTypes().get(0); @@ -790,6 +902,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_tpu_v2alpha1_QueuedResource_descriptor, new java.lang.String[] { "Name", + "CreateTime", "Tpu", "BestEffort", "Guaranteed", @@ -826,7 +939,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_tpu_v2alpha1_QueuedResource_Tpu_NodeSpec_MultiNodeParams_descriptor, new java.lang.String[] { - "NodeCount", "NodeIdPrefix", + "NodeCount", "NodeIdPrefix", "WorkloadType", }); internal_static_google_cloud_tpu_v2alpha1_QueuedResource_BestEffort_descriptor = internal_static_google_cloud_tpu_v2alpha1_QueuedResource_descriptor.getNestedTypes().get(1); @@ -1191,8 +1304,66 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "WorkerIds", }); - internal_static_google_cloud_tpu_v2alpha1_AcceleratorConfig_descriptor = + internal_static_google_cloud_tpu_v2alpha1_PerformMaintenanceRequest_descriptor = getDescriptor().getMessageTypes().get(42); + internal_static_google_cloud_tpu_v2alpha1_PerformMaintenanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_tpu_v2alpha1_PerformMaintenanceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_tpu_v2alpha1_PerformMaintenanceQueuedResourceRequest_descriptor = + getDescriptor().getMessageTypes().get(43); + internal_static_google_cloud_tpu_v2alpha1_PerformMaintenanceQueuedResourceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_tpu_v2alpha1_PerformMaintenanceQueuedResourceRequest_descriptor, + new java.lang.String[] { + "Name", "NodeNames", + }); + internal_static_google_cloud_tpu_v2alpha1_Reservation_descriptor = + getDescriptor().getMessageTypes().get(44); + internal_static_google_cloud_tpu_v2alpha1_Reservation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_tpu_v2alpha1_Reservation_descriptor, + new java.lang.String[] { + "Name", "Standard", "State", "Kind", + }); + internal_static_google_cloud_tpu_v2alpha1_Reservation_Standard_descriptor = + internal_static_google_cloud_tpu_v2alpha1_Reservation_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_tpu_v2alpha1_Reservation_Standard_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_tpu_v2alpha1_Reservation_Standard_descriptor, + new java.lang.String[] { + "Size", "CapacityUnits", "ResourceType", "Interval", "Usage", + }); + internal_static_google_cloud_tpu_v2alpha1_Reservation_Standard_Usage_descriptor = + internal_static_google_cloud_tpu_v2alpha1_Reservation_Standard_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_tpu_v2alpha1_Reservation_Standard_Usage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_tpu_v2alpha1_Reservation_Standard_Usage_descriptor, + new java.lang.String[] { + "Total", + }); + internal_static_google_cloud_tpu_v2alpha1_ListReservationsRequest_descriptor = + getDescriptor().getMessageTypes().get(45); + internal_static_google_cloud_tpu_v2alpha1_ListReservationsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_tpu_v2alpha1_ListReservationsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_tpu_v2alpha1_ListReservationsResponse_descriptor = + getDescriptor().getMessageTypes().get(46); + internal_static_google_cloud_tpu_v2alpha1_ListReservationsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_tpu_v2alpha1_ListReservationsResponse_descriptor, + new java.lang.String[] { + "Reservations", "NextPageToken", + }); + internal_static_google_cloud_tpu_v2alpha1_AcceleratorConfig_descriptor = + getDescriptor().getMessageTypes().get(47); internal_static_google_cloud_tpu_v2alpha1_AcceleratorConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_tpu_v2alpha1_AcceleratorConfig_descriptor, @@ -1200,7 +1371,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Type", "Topology", }); internal_static_google_cloud_tpu_v2alpha1_ShieldedInstanceConfig_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(48); internal_static_google_cloud_tpu_v2alpha1_ShieldedInstanceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_tpu_v2alpha1_ShieldedInstanceConfig_descriptor, @@ -1208,7 +1379,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableSecureBoot", }); internal_static_google_cloud_tpu_v2alpha1_BootDiskConfig_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(49); internal_static_google_cloud_tpu_v2alpha1_BootDiskConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_tpu_v2alpha1_BootDiskConfig_descriptor, @@ -1216,13 +1387,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CustomerEncryptionKey", "EnableConfidentialCompute", }); internal_static_google_cloud_tpu_v2alpha1_CustomerEncryptionKey_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(50); internal_static_google_cloud_tpu_v2alpha1_CustomerEncryptionKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_tpu_v2alpha1_CustomerEncryptionKey_descriptor, new java.lang.String[] { "KmsKeyName", "Key", }); + internal_static_google_cloud_tpu_v2alpha1_UpcomingMaintenance_descriptor = + getDescriptor().getMessageTypes().get(51); + internal_static_google_cloud_tpu_v2alpha1_UpcomingMaintenance_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_tpu_v2alpha1_UpcomingMaintenance_descriptor, + new java.lang.String[] { + "Type", + "CanReschedule", + "WindowStartTime", + "WindowEndTime", + "LatestWindowStartTime", + "MaintenanceStatus", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); @@ -1238,6 +1422,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.FieldInfoProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListReservationsRequest.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListReservationsRequest.java new file mode 100644 index 000000000000..fcdab77ff907 --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListReservationsRequest.java @@ -0,0 +1,921 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v2alpha1/cloud_tpu.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.tpu.v2alpha1; + +/** + * + * + *
    + * Request for
    + * [ListReservations][google.cloud.tpu.v2alpha1.Tpu.ListReservations].
    + * 
    + * + * Protobuf type {@code google.cloud.tpu.v2alpha1.ListReservationsRequest} + */ +public final class ListReservationsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.ListReservationsRequest) + ListReservationsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListReservationsRequest.newBuilder() to construct. + private ListReservationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListReservationsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListReservationsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListReservationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListReservationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2alpha1.ListReservationsRequest.class, + com.google.cloud.tpu.v2alpha1.ListReservationsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
    +   * Required. The parent for reservations.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. The parent for reservations.
    +   * 
    + * + * + * 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; + /** + * + * + *
    +   * The maximum number of items to return. Defaults to 0 if not specified,
    +   * which means no limit.
    +   * 
    + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
    +   * The next_page_token value returned from a previous List request, if any.
    +   * 
    + * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
    +   * The next_page_token value returned from a previous List request, if any.
    +   * 
    + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.tpu.v2alpha1.ListReservationsRequest)) { + return super.equals(obj); + } + com.google.cloud.tpu.v2alpha1.ListReservationsRequest other = + (com.google.cloud.tpu.v2alpha1.ListReservationsRequest) 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.tpu.v2alpha1.ListReservationsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2alpha1.ListReservationsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2alpha1.ListReservationsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2alpha1.ListReservationsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2alpha1.ListReservationsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2alpha1.ListReservationsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2alpha1.ListReservationsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2alpha1.ListReservationsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2alpha1.ListReservationsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2alpha1.ListReservationsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2alpha1.ListReservationsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2alpha1.ListReservationsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.tpu.v2alpha1.ListReservationsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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
    +   * [ListReservations][google.cloud.tpu.v2alpha1.Tpu.ListReservations].
    +   * 
    + * + * Protobuf type {@code google.cloud.tpu.v2alpha1.ListReservationsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.ListReservationsRequest) + com.google.cloud.tpu.v2alpha1.ListReservationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListReservationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListReservationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2alpha1.ListReservationsRequest.class, + com.google.cloud.tpu.v2alpha1.ListReservationsRequest.Builder.class); + } + + // Construct using com.google.cloud.tpu.v2alpha1.ListReservationsRequest.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.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListReservationsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.ListReservationsRequest getDefaultInstanceForType() { + return com.google.cloud.tpu.v2alpha1.ListReservationsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.ListReservationsRequest build() { + com.google.cloud.tpu.v2alpha1.ListReservationsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.ListReservationsRequest buildPartial() { + com.google.cloud.tpu.v2alpha1.ListReservationsRequest result = + new com.google.cloud.tpu.v2alpha1.ListReservationsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.tpu.v2alpha1.ListReservationsRequest 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.tpu.v2alpha1.ListReservationsRequest) { + return mergeFrom((com.google.cloud.tpu.v2alpha1.ListReservationsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.ListReservationsRequest other) { + if (other == com.google.cloud.tpu.v2alpha1.ListReservationsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
    +     * Required. The parent for reservations.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. The parent for reservations.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. The parent for reservations.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The parent for reservations.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The parent for reservations.
    +     * 
    + * + * + * 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_; + /** + * + * + *
    +     * The maximum number of items to return. Defaults to 0 if not specified,
    +     * which means no limit.
    +     * 
    + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
    +     * The maximum number of items to return. Defaults to 0 if not specified,
    +     * which means no limit.
    +     * 
    + * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * The maximum number of items to return. Defaults to 0 if not specified,
    +     * which means no limit.
    +     * 
    + * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
    +     * The next_page_token value returned from a previous List request, if any.
    +     * 
    + * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * The next_page_token value returned from a previous List request, if any.
    +     * 
    + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * The next_page_token value returned from a previous List request, if any.
    +     * 
    + * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * The next_page_token value returned from a previous List request, if any.
    +     * 
    + * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +     * The next_page_token value returned from a previous List request, if any.
    +     * 
    + * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.ListReservationsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.ListReservationsRequest) + private static final com.google.cloud.tpu.v2alpha1.ListReservationsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.ListReservationsRequest(); + } + + public static com.google.cloud.tpu.v2alpha1.ListReservationsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListReservationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.ListReservationsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListReservationsRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListReservationsRequestOrBuilder.java new file mode 100644 index 000000000000..bc5ffd546920 --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListReservationsRequestOrBuilder.java @@ -0,0 +1,94 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v2alpha1/cloud_tpu.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.tpu.v2alpha1; + +public interface ListReservationsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.ListReservationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The parent for reservations.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
    +   * Required. The parent for reservations.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * The maximum number of items to return. Defaults to 0 if not specified,
    +   * which means no limit.
    +   * 
    + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
    +   * The next_page_token value returned from a previous List request, if any.
    +   * 
    + * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
    +   * The next_page_token value returned from a previous List request, if any.
    +   * 
    + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListReservationsResponse.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListReservationsResponse.java new file mode 100644 index 000000000000..6f1d99bd793c --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListReservationsResponse.java @@ -0,0 +1,1123 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v2alpha1/cloud_tpu.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.tpu.v2alpha1; + +/** + * + * + *
    + * Response for
    + * [ListReservations][google.cloud.tpu.v2alpha1.Tpu.ListReservations].
    + * 
    + * + * Protobuf type {@code google.cloud.tpu.v2alpha1.ListReservationsResponse} + */ +public final class ListReservationsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.ListReservationsResponse) + ListReservationsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListReservationsResponse.newBuilder() to construct. + private ListReservationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListReservationsResponse() { + reservations_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListReservationsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListReservationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListReservationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2alpha1.ListReservationsResponse.class, + com.google.cloud.tpu.v2alpha1.ListReservationsResponse.Builder.class); + } + + public static final int RESERVATIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List reservations_; + /** + * + * + *
    +   * The listed reservations.
    +   * 
    + * + * repeated .google.cloud.tpu.v2alpha1.Reservation reservations = 1; + */ + @java.lang.Override + public java.util.List getReservationsList() { + return reservations_; + } + /** + * + * + *
    +   * The listed reservations.
    +   * 
    + * + * repeated .google.cloud.tpu.v2alpha1.Reservation reservations = 1; + */ + @java.lang.Override + public java.util.List + getReservationsOrBuilderList() { + return reservations_; + } + /** + * + * + *
    +   * The listed reservations.
    +   * 
    + * + * repeated .google.cloud.tpu.v2alpha1.Reservation reservations = 1; + */ + @java.lang.Override + public int getReservationsCount() { + return reservations_.size(); + } + /** + * + * + *
    +   * The listed reservations.
    +   * 
    + * + * repeated .google.cloud.tpu.v2alpha1.Reservation reservations = 1; + */ + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.Reservation getReservations(int index) { + return reservations_.get(index); + } + /** + * + * + *
    +   * The listed reservations.
    +   * 
    + * + * repeated .google.cloud.tpu.v2alpha1.Reservation reservations = 1; + */ + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.ReservationOrBuilder getReservationsOrBuilder(int index) { + return reservations_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
    +   * The next page token or empty if none.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
    +   * The next page token or empty if none.
    +   * 
    + * + * 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 < reservations_.size(); i++) { + output.writeMessage(1, reservations_.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 < reservations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, reservations_.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.tpu.v2alpha1.ListReservationsResponse)) { + return super.equals(obj); + } + com.google.cloud.tpu.v2alpha1.ListReservationsResponse other = + (com.google.cloud.tpu.v2alpha1.ListReservationsResponse) obj; + + if (!getReservationsList().equals(other.getReservationsList())) 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 (getReservationsCount() > 0) { + hash = (37 * hash) + RESERVATIONS_FIELD_NUMBER; + hash = (53 * hash) + getReservationsList().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.tpu.v2alpha1.ListReservationsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2alpha1.ListReservationsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2alpha1.ListReservationsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2alpha1.ListReservationsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2alpha1.ListReservationsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2alpha1.ListReservationsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2alpha1.ListReservationsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2alpha1.ListReservationsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2alpha1.ListReservationsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2alpha1.ListReservationsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2alpha1.ListReservationsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2alpha1.ListReservationsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.tpu.v2alpha1.ListReservationsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Response for
    +   * [ListReservations][google.cloud.tpu.v2alpha1.Tpu.ListReservations].
    +   * 
    + * + * Protobuf type {@code google.cloud.tpu.v2alpha1.ListReservationsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.ListReservationsResponse) + com.google.cloud.tpu.v2alpha1.ListReservationsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListReservationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListReservationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2alpha1.ListReservationsResponse.class, + com.google.cloud.tpu.v2alpha1.ListReservationsResponse.Builder.class); + } + + // Construct using com.google.cloud.tpu.v2alpha1.ListReservationsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (reservationsBuilder_ == null) { + reservations_ = java.util.Collections.emptyList(); + } else { + reservations_ = null; + reservationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_ListReservationsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.ListReservationsResponse getDefaultInstanceForType() { + return com.google.cloud.tpu.v2alpha1.ListReservationsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.ListReservationsResponse build() { + com.google.cloud.tpu.v2alpha1.ListReservationsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.ListReservationsResponse buildPartial() { + com.google.cloud.tpu.v2alpha1.ListReservationsResponse result = + new com.google.cloud.tpu.v2alpha1.ListReservationsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.tpu.v2alpha1.ListReservationsResponse result) { + if (reservationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + reservations_ = java.util.Collections.unmodifiableList(reservations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.reservations_ = reservations_; + } else { + result.reservations_ = reservationsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.tpu.v2alpha1.ListReservationsResponse 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.tpu.v2alpha1.ListReservationsResponse) { + return mergeFrom((com.google.cloud.tpu.v2alpha1.ListReservationsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.ListReservationsResponse other) { + if (other == com.google.cloud.tpu.v2alpha1.ListReservationsResponse.getDefaultInstance()) + return this; + if (reservationsBuilder_ == null) { + if (!other.reservations_.isEmpty()) { + if (reservations_.isEmpty()) { + reservations_ = other.reservations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureReservationsIsMutable(); + reservations_.addAll(other.reservations_); + } + onChanged(); + } + } else { + if (!other.reservations_.isEmpty()) { + if (reservationsBuilder_.isEmpty()) { + reservationsBuilder_.dispose(); + reservationsBuilder_ = null; + reservations_ = other.reservations_; + bitField0_ = (bitField0_ & ~0x00000001); + reservationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getReservationsFieldBuilder() + : null; + } else { + reservationsBuilder_.addAllMessages(other.reservations_); + } + } + } + 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.tpu.v2alpha1.Reservation m = + input.readMessage( + com.google.cloud.tpu.v2alpha1.Reservation.parser(), extensionRegistry); + if (reservationsBuilder_ == null) { + ensureReservationsIsMutable(); + reservations_.add(m); + } else { + reservationsBuilder_.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 reservations_ = + java.util.Collections.emptyList(); + + private void ensureReservationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + reservations_ = + new java.util.ArrayList(reservations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.Reservation, + com.google.cloud.tpu.v2alpha1.Reservation.Builder, + com.google.cloud.tpu.v2alpha1.ReservationOrBuilder> + reservationsBuilder_; + + /** + * + * + *
    +     * The listed reservations.
    +     * 
    + * + * repeated .google.cloud.tpu.v2alpha1.Reservation reservations = 1; + */ + public java.util.List getReservationsList() { + if (reservationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(reservations_); + } else { + return reservationsBuilder_.getMessageList(); + } + } + /** + * + * + *
    +     * The listed reservations.
    +     * 
    + * + * repeated .google.cloud.tpu.v2alpha1.Reservation reservations = 1; + */ + public int getReservationsCount() { + if (reservationsBuilder_ == null) { + return reservations_.size(); + } else { + return reservationsBuilder_.getCount(); + } + } + /** + * + * + *
    +     * The listed reservations.
    +     * 
    + * + * repeated .google.cloud.tpu.v2alpha1.Reservation reservations = 1; + */ + public com.google.cloud.tpu.v2alpha1.Reservation getReservations(int index) { + if (reservationsBuilder_ == null) { + return reservations_.get(index); + } else { + return reservationsBuilder_.getMessage(index); + } + } + /** + * + * + *
    +     * The listed reservations.
    +     * 
    + * + * repeated .google.cloud.tpu.v2alpha1.Reservation reservations = 1; + */ + public Builder setReservations(int index, com.google.cloud.tpu.v2alpha1.Reservation value) { + if (reservationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReservationsIsMutable(); + reservations_.set(index, value); + onChanged(); + } else { + reservationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * The listed reservations.
    +     * 
    + * + * repeated .google.cloud.tpu.v2alpha1.Reservation reservations = 1; + */ + public Builder setReservations( + int index, com.google.cloud.tpu.v2alpha1.Reservation.Builder builderForValue) { + if (reservationsBuilder_ == null) { + ensureReservationsIsMutable(); + reservations_.set(index, builderForValue.build()); + onChanged(); + } else { + reservationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * The listed reservations.
    +     * 
    + * + * repeated .google.cloud.tpu.v2alpha1.Reservation reservations = 1; + */ + public Builder addReservations(com.google.cloud.tpu.v2alpha1.Reservation value) { + if (reservationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReservationsIsMutable(); + reservations_.add(value); + onChanged(); + } else { + reservationsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
    +     * The listed reservations.
    +     * 
    + * + * repeated .google.cloud.tpu.v2alpha1.Reservation reservations = 1; + */ + public Builder addReservations(int index, com.google.cloud.tpu.v2alpha1.Reservation value) { + if (reservationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReservationsIsMutable(); + reservations_.add(index, value); + onChanged(); + } else { + reservationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * The listed reservations.
    +     * 
    + * + * repeated .google.cloud.tpu.v2alpha1.Reservation reservations = 1; + */ + public Builder addReservations( + com.google.cloud.tpu.v2alpha1.Reservation.Builder builderForValue) { + if (reservationsBuilder_ == null) { + ensureReservationsIsMutable(); + reservations_.add(builderForValue.build()); + onChanged(); + } else { + reservationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * The listed reservations.
    +     * 
    + * + * repeated .google.cloud.tpu.v2alpha1.Reservation reservations = 1; + */ + public Builder addReservations( + int index, com.google.cloud.tpu.v2alpha1.Reservation.Builder builderForValue) { + if (reservationsBuilder_ == null) { + ensureReservationsIsMutable(); + reservations_.add(index, builderForValue.build()); + onChanged(); + } else { + reservationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * The listed reservations.
    +     * 
    + * + * repeated .google.cloud.tpu.v2alpha1.Reservation reservations = 1; + */ + public Builder addAllReservations( + java.lang.Iterable values) { + if (reservationsBuilder_ == null) { + ensureReservationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, reservations_); + onChanged(); + } else { + reservationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
    +     * The listed reservations.
    +     * 
    + * + * repeated .google.cloud.tpu.v2alpha1.Reservation reservations = 1; + */ + public Builder clearReservations() { + if (reservationsBuilder_ == null) { + reservations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + reservationsBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * The listed reservations.
    +     * 
    + * + * repeated .google.cloud.tpu.v2alpha1.Reservation reservations = 1; + */ + public Builder removeReservations(int index) { + if (reservationsBuilder_ == null) { + ensureReservationsIsMutable(); + reservations_.remove(index); + onChanged(); + } else { + reservationsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
    +     * The listed reservations.
    +     * 
    + * + * repeated .google.cloud.tpu.v2alpha1.Reservation reservations = 1; + */ + public com.google.cloud.tpu.v2alpha1.Reservation.Builder getReservationsBuilder(int index) { + return getReservationsFieldBuilder().getBuilder(index); + } + /** + * + * + *
    +     * The listed reservations.
    +     * 
    + * + * repeated .google.cloud.tpu.v2alpha1.Reservation reservations = 1; + */ + public com.google.cloud.tpu.v2alpha1.ReservationOrBuilder getReservationsOrBuilder(int index) { + if (reservationsBuilder_ == null) { + return reservations_.get(index); + } else { + return reservationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
    +     * The listed reservations.
    +     * 
    + * + * repeated .google.cloud.tpu.v2alpha1.Reservation reservations = 1; + */ + public java.util.List + getReservationsOrBuilderList() { + if (reservationsBuilder_ != null) { + return reservationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(reservations_); + } + } + /** + * + * + *
    +     * The listed reservations.
    +     * 
    + * + * repeated .google.cloud.tpu.v2alpha1.Reservation reservations = 1; + */ + public com.google.cloud.tpu.v2alpha1.Reservation.Builder addReservationsBuilder() { + return getReservationsFieldBuilder() + .addBuilder(com.google.cloud.tpu.v2alpha1.Reservation.getDefaultInstance()); + } + /** + * + * + *
    +     * The listed reservations.
    +     * 
    + * + * repeated .google.cloud.tpu.v2alpha1.Reservation reservations = 1; + */ + public com.google.cloud.tpu.v2alpha1.Reservation.Builder addReservationsBuilder(int index) { + return getReservationsFieldBuilder() + .addBuilder(index, com.google.cloud.tpu.v2alpha1.Reservation.getDefaultInstance()); + } + /** + * + * + *
    +     * The listed reservations.
    +     * 
    + * + * repeated .google.cloud.tpu.v2alpha1.Reservation reservations = 1; + */ + public java.util.List + getReservationsBuilderList() { + return getReservationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.Reservation, + com.google.cloud.tpu.v2alpha1.Reservation.Builder, + com.google.cloud.tpu.v2alpha1.ReservationOrBuilder> + getReservationsFieldBuilder() { + if (reservationsBuilder_ == null) { + reservationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.Reservation, + com.google.cloud.tpu.v2alpha1.Reservation.Builder, + com.google.cloud.tpu.v2alpha1.ReservationOrBuilder>( + reservations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + reservations_ = null; + } + return reservationsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
    +     * The next page token or empty if none.
    +     * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * The next page token or empty if none.
    +     * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * The next page token or empty if none.
    +     * 
    + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * The next page token or empty if none.
    +     * 
    + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * The next page token or empty if none.
    +     * 
    + * + * 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.tpu.v2alpha1.ListReservationsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.ListReservationsResponse) + private static final com.google.cloud.tpu.v2alpha1.ListReservationsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.ListReservationsResponse(); + } + + public static com.google.cloud.tpu.v2alpha1.ListReservationsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListReservationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.ListReservationsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListReservationsResponseOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListReservationsResponseOrBuilder.java new file mode 100644 index 000000000000..4c967487b31a --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ListReservationsResponseOrBuilder.java @@ -0,0 +1,103 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v2alpha1/cloud_tpu.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.tpu.v2alpha1; + +public interface ListReservationsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.ListReservationsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The listed reservations.
    +   * 
    + * + * repeated .google.cloud.tpu.v2alpha1.Reservation reservations = 1; + */ + java.util.List getReservationsList(); + /** + * + * + *
    +   * The listed reservations.
    +   * 
    + * + * repeated .google.cloud.tpu.v2alpha1.Reservation reservations = 1; + */ + com.google.cloud.tpu.v2alpha1.Reservation getReservations(int index); + /** + * + * + *
    +   * The listed reservations.
    +   * 
    + * + * repeated .google.cloud.tpu.v2alpha1.Reservation reservations = 1; + */ + int getReservationsCount(); + /** + * + * + *
    +   * The listed reservations.
    +   * 
    + * + * repeated .google.cloud.tpu.v2alpha1.Reservation reservations = 1; + */ + java.util.List + getReservationsOrBuilderList(); + /** + * + * + *
    +   * The listed reservations.
    +   * 
    + * + * repeated .google.cloud.tpu.v2alpha1.Reservation reservations = 1; + */ + com.google.cloud.tpu.v2alpha1.ReservationOrBuilder getReservationsOrBuilder(int index); + + /** + * + * + *
    +   * The next page token or empty if none.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
    +   * The next page token or empty if none.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NetworkConfig.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NetworkConfig.java index 5a980ddfef9e..07037a4e91af 100644 --- a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NetworkConfig.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NetworkConfig.java @@ -212,6 +212,25 @@ public boolean getCanIpForward() { return canIpForward_; } + public static final int QUEUE_COUNT_FIELD_NUMBER = 6; + private int queueCount_ = 0; + /** + * + * + *
    +   * Optional. Specifies networking queue count for TPU VM instance's network
    +   * interface.
    +   * 
    + * + * int32 queue_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The queueCount. + */ + @java.lang.Override + public int getQueueCount() { + return queueCount_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -238,6 +257,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (canIpForward_ != false) { output.writeBool(4, canIpForward_); } + if (queueCount_ != 0) { + output.writeInt32(6, queueCount_); + } getUnknownFields().writeTo(output); } @@ -259,6 +281,9 @@ public int getSerializedSize() { if (canIpForward_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, canIpForward_); } + if (queueCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, queueCount_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -279,6 +304,7 @@ public boolean equals(final java.lang.Object obj) { if (!getSubnetwork().equals(other.getSubnetwork())) return false; if (getEnableExternalIps() != other.getEnableExternalIps()) return false; if (getCanIpForward() != other.getCanIpForward()) return false; + if (getQueueCount() != other.getQueueCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -298,6 +324,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableExternalIps()); hash = (37 * hash) + CAN_IP_FORWARD_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCanIpForward()); + hash = (37 * hash) + QUEUE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getQueueCount(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -441,6 +469,7 @@ public Builder clear() { subnetwork_ = ""; enableExternalIps_ = false; canIpForward_ = false; + queueCount_ = 0; return this; } @@ -489,6 +518,9 @@ private void buildPartial0(com.google.cloud.tpu.v2alpha1.NetworkConfig result) { if (((from_bitField0_ & 0x00000008) != 0)) { result.canIpForward_ = canIpForward_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.queueCount_ = queueCount_; + } } @java.lang.Override @@ -552,6 +584,9 @@ public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.NetworkConfig other) { if (other.getCanIpForward() != false) { setCanIpForward(other.getCanIpForward()); } + if (other.getQueueCount() != 0) { + setQueueCount(other.getQueueCount()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -602,6 +637,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 32 + case 48: + { + queueCount_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -966,6 +1007,62 @@ public Builder clearCanIpForward() { return this; } + private int queueCount_; + /** + * + * + *
    +     * Optional. Specifies networking queue count for TPU VM instance's network
    +     * interface.
    +     * 
    + * + * int32 queue_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The queueCount. + */ + @java.lang.Override + public int getQueueCount() { + return queueCount_; + } + /** + * + * + *
    +     * Optional. Specifies networking queue count for TPU VM instance's network
    +     * interface.
    +     * 
    + * + * int32 queue_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The queueCount to set. + * @return This builder for chaining. + */ + public Builder setQueueCount(int value) { + + queueCount_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. Specifies networking queue count for TPU VM instance's network
    +     * interface.
    +     * 
    + * + * int32 queue_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearQueueCount() { + bitField0_ = (bitField0_ & ~0x00000010); + queueCount_ = 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-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NetworkConfigOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NetworkConfigOrBuilder.java index 842694d92ddc..dff25374b89a 100644 --- a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NetworkConfigOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NetworkConfigOrBuilder.java @@ -109,4 +109,18 @@ public interface NetworkConfigOrBuilder * @return The canIpForward. */ boolean getCanIpForward(); + + /** + * + * + *
    +   * Optional. Specifies networking queue count for TPU VM instance's network
    +   * interface.
    +   * 
    + * + * int32 queue_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The queueCount. + */ + int getQueueCount(); } diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/Node.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/Node.java index c8b8c2b8d51d..faac75ae8be2 100644 --- a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/Node.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/Node.java @@ -45,6 +45,7 @@ private Node() { state_ = 0; healthDescription_ = ""; runtimeVersion_ = ""; + networkConfigs_ = java.util.Collections.emptyList(); cidrBlock_ = ""; networkEndpoints_ = java.util.Collections.emptyList(); health_ = 0; @@ -252,6 +253,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * UNHIDING = 15; */ UNHIDING(15), + /** + * + * + *
    +     * TPU node has unknown state after a failed repair.
    +     * 
    + * + * UNKNOWN = 16; + */ + UNKNOWN(16), UNRECOGNIZED(-1), ; @@ -407,6 +418,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * UNHIDING = 15; */ public static final int UNHIDING_VALUE = 15; + /** + * + * + *
    +     * TPU node has unknown state after a failed repair.
    +     * 
    + * + * UNKNOWN = 16; + */ + public static final int UNKNOWN_VALUE = 16; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -462,6 +483,8 @@ public static State forNumber(int value) { return HIDDEN; case 15: return UNHIDING; + case 16: + return UNKNOWN; default: return null; } @@ -1205,7 +1228,9 @@ public com.google.protobuf.ByteString getRuntimeVersionBytes() { * * *
    -   * Network configurations for the TPU node.
    +   * Network configurations for the TPU node. network_config and network_configs
    +   * are mutually exclusive, you can only specify one of them. If both are
    +   * specified, an error will be returned.
        * 
    * * .google.cloud.tpu.v2alpha1.NetworkConfig network_config = 36; @@ -1220,7 +1245,9 @@ public boolean hasNetworkConfig() { * * *
    -   * Network configurations for the TPU node.
    +   * Network configurations for the TPU node. network_config and network_configs
    +   * are mutually exclusive, you can only specify one of them. If both are
    +   * specified, an error will be returned.
        * 
    * * .google.cloud.tpu.v2alpha1.NetworkConfig network_config = 36; @@ -1237,7 +1264,9 @@ public com.google.cloud.tpu.v2alpha1.NetworkConfig getNetworkConfig() { * * *
    -   * Network configurations for the TPU node.
    +   * Network configurations for the TPU node. network_config and network_configs
    +   * are mutually exclusive, you can only specify one of them. If both are
    +   * specified, an error will be returned.
        * 
    * * .google.cloud.tpu.v2alpha1.NetworkConfig network_config = 36; @@ -1249,6 +1278,103 @@ public com.google.cloud.tpu.v2alpha1.NetworkConfigOrBuilder getNetworkConfigOrBu : networkConfig_; } + public static final int NETWORK_CONFIGS_FIELD_NUMBER = 50; + + @SuppressWarnings("serial") + private java.util.List networkConfigs_; + /** + * + * + *
    +   * Optional. Repeated network configurations for the TPU node. This field is
    +   * used to specify multiple networks configs for the TPU node. network_config
    +   * and network_configs are mutually exclusive, you can only specify one of
    +   * them. If both are specified, an error will be returned.
    +   * 
    + * + * + * repeated .google.cloud.tpu.v2alpha1.NetworkConfig network_configs = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getNetworkConfigsList() { + return networkConfigs_; + } + /** + * + * + *
    +   * Optional. Repeated network configurations for the TPU node. This field is
    +   * used to specify multiple networks configs for the TPU node. network_config
    +   * and network_configs are mutually exclusive, you can only specify one of
    +   * them. If both are specified, an error will be returned.
    +   * 
    + * + * + * repeated .google.cloud.tpu.v2alpha1.NetworkConfig network_configs = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getNetworkConfigsOrBuilderList() { + return networkConfigs_; + } + /** + * + * + *
    +   * Optional. Repeated network configurations for the TPU node. This field is
    +   * used to specify multiple networks configs for the TPU node. network_config
    +   * and network_configs are mutually exclusive, you can only specify one of
    +   * them. If both are specified, an error will be returned.
    +   * 
    + * + * + * repeated .google.cloud.tpu.v2alpha1.NetworkConfig network_configs = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getNetworkConfigsCount() { + return networkConfigs_.size(); + } + /** + * + * + *
    +   * Optional. Repeated network configurations for the TPU node. This field is
    +   * used to specify multiple networks configs for the TPU node. network_config
    +   * and network_configs are mutually exclusive, you can only specify one of
    +   * them. If both are specified, an error will be returned.
    +   * 
    + * + * + * repeated .google.cloud.tpu.v2alpha1.NetworkConfig network_configs = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.NetworkConfig getNetworkConfigs(int index) { + return networkConfigs_.get(index); + } + /** + * + * + *
    +   * Optional. Repeated network configurations for the TPU node. This field is
    +   * used to specify multiple networks configs for the TPU node. network_config
    +   * and network_configs are mutually exclusive, you can only specify one of
    +   * them. If both are specified, an error will be returned.
    +   * 
    + * + * + * repeated .google.cloud.tpu.v2alpha1.NetworkConfig network_configs = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.NetworkConfigOrBuilder getNetworkConfigsOrBuilder( + int index) { + return networkConfigs_.get(index); + } + public static final int CIDR_BLOCK_FIELD_NUMBER = 13; @SuppressWarnings("serial") @@ -2250,6 +2376,24 @@ public boolean getMultisliceNode() { return multisliceNode_; } + public static final int AUTOCHECKPOINT_ENABLED_FIELD_NUMBER = 48; + private boolean autocheckpointEnabled_ = false; + /** + * + * + *
    +   * Optional. Whether Autocheckpoint is enabled.
    +   * 
    + * + * bool autocheckpoint_enabled = 48 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The autocheckpointEnabled. + */ + @java.lang.Override + public boolean getAutocheckpointEnabled() { + return autocheckpointEnabled_; + } + public static final int BOOT_DISK_CONFIG_FIELD_NUMBER = 49; private com.google.cloud.tpu.v2alpha1.BootDiskConfig bootDiskConfig_; /** @@ -2306,6 +2450,63 @@ public com.google.cloud.tpu.v2alpha1.BootDiskConfigOrBuilder getBootDiskConfigOr : bootDiskConfig_; } + public static final int UPCOMING_MAINTENANCE_FIELD_NUMBER = 51; + private com.google.cloud.tpu.v2alpha1.UpcomingMaintenance upcomingMaintenance_; + /** + * + * + *
    +   * Output only. Upcoming maintenance on this TPU node.
    +   * 
    + * + * + * .google.cloud.tpu.v2alpha1.UpcomingMaintenance upcoming_maintenance = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the upcomingMaintenance field is set. + */ + @java.lang.Override + public boolean hasUpcomingMaintenance() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
    +   * Output only. Upcoming maintenance on this TPU node.
    +   * 
    + * + * + * .google.cloud.tpu.v2alpha1.UpcomingMaintenance upcoming_maintenance = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The upcomingMaintenance. + */ + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.UpcomingMaintenance getUpcomingMaintenance() { + return upcomingMaintenance_ == null + ? com.google.cloud.tpu.v2alpha1.UpcomingMaintenance.getDefaultInstance() + : upcomingMaintenance_; + } + /** + * + * + *
    +   * Output only. Upcoming maintenance on this TPU node.
    +   * 
    + * + * + * .google.cloud.tpu.v2alpha1.UpcomingMaintenance upcoming_maintenance = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.UpcomingMaintenanceOrBuilder + getUpcomingMaintenanceOrBuilder() { + return upcomingMaintenance_ == null + ? com.google.cloud.tpu.v2alpha1.UpcomingMaintenance.getDefaultInstance() + : upcomingMaintenance_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2391,9 +2592,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (multisliceNode_ != false) { output.writeBool(47, multisliceNode_); } + if (autocheckpointEnabled_ != false) { + output.writeBool(48, autocheckpointEnabled_); + } if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(49, getBootDiskConfig()); } + for (int i = 0; i < networkConfigs_.size(); i++) { + output.writeMessage(50, networkConfigs_.get(i)); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(51, getUpcomingMaintenance()); + } getUnknownFields().writeTo(output); } @@ -2497,9 +2707,19 @@ public int getSerializedSize() { if (multisliceNode_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(47, multisliceNode_); } + if (autocheckpointEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(48, autocheckpointEnabled_); + } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(49, getBootDiskConfig()); } + for (int i = 0; i < networkConfigs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(50, networkConfigs_.get(i)); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(51, getUpcomingMaintenance()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2525,6 +2745,7 @@ public boolean equals(final java.lang.Object obj) { if (hasNetworkConfig()) { if (!getNetworkConfig().equals(other.getNetworkConfig())) return false; } + if (!getNetworkConfigsList().equals(other.getNetworkConfigsList())) return false; if (!getCidrBlock().equals(other.getCidrBlock())) return false; if (hasServiceAccount() != other.hasServiceAccount()) return false; if (hasServiceAccount()) { @@ -2557,10 +2778,15 @@ public boolean equals(final java.lang.Object obj) { if (!getShieldedInstanceConfig().equals(other.getShieldedInstanceConfig())) return false; } if (getMultisliceNode() != other.getMultisliceNode()) return false; + if (getAutocheckpointEnabled() != other.getAutocheckpointEnabled()) return false; if (hasBootDiskConfig() != other.hasBootDiskConfig()) return false; if (hasBootDiskConfig()) { if (!getBootDiskConfig().equals(other.getBootDiskConfig())) return false; } + if (hasUpcomingMaintenance() != other.hasUpcomingMaintenance()) return false; + if (hasUpcomingMaintenance()) { + if (!getUpcomingMaintenance().equals(other.getUpcomingMaintenance())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2588,6 +2814,10 @@ public int hashCode() { hash = (37 * hash) + NETWORK_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getNetworkConfig().hashCode(); } + if (getNetworkConfigsCount() > 0) { + hash = (37 * hash) + NETWORK_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getNetworkConfigsList().hashCode(); + } hash = (37 * hash) + CIDR_BLOCK_FIELD_NUMBER; hash = (53 * hash) + getCidrBlock().hashCode(); if (hasServiceAccount()) { @@ -2644,10 +2874,16 @@ public int hashCode() { } hash = (37 * hash) + MULTISLICE_NODE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMultisliceNode()); + hash = (37 * hash) + AUTOCHECKPOINT_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAutocheckpointEnabled()); if (hasBootDiskConfig()) { hash = (37 * hash) + BOOT_DISK_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getBootDiskConfig().hashCode(); } + if (hasUpcomingMaintenance()) { + hash = (37 * hash) + UPCOMING_MAINTENANCE_FIELD_NUMBER; + hash = (53 * hash) + getUpcomingMaintenance().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2814,6 +3050,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getNetworkConfigFieldBuilder(); + getNetworkConfigsFieldBuilder(); getServiceAccountFieldBuilder(); getCreateTimeFieldBuilder(); getSchedulingConfigFieldBuilder(); @@ -2823,6 +3060,7 @@ private void maybeForceBuilderInitialization() { getAcceleratorConfigFieldBuilder(); getShieldedInstanceConfigFieldBuilder(); getBootDiskConfigFieldBuilder(); + getUpcomingMaintenanceFieldBuilder(); } } @@ -2841,6 +3079,13 @@ public Builder clear() { networkConfigBuilder_.dispose(); networkConfigBuilder_ = null; } + if (networkConfigsBuilder_ == null) { + networkConfigs_ = java.util.Collections.emptyList(); + } else { + networkConfigs_ = null; + networkConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); cidrBlock_ = ""; serviceAccount_ = null; if (serviceAccountBuilder_ != null) { @@ -2863,7 +3108,7 @@ public Builder clear() { networkEndpoints_ = null; networkEndpointsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); health_ = 0; internalGetMutableLabels().clear(); internalGetMutableMetadata().clear(); @@ -2875,7 +3120,7 @@ public Builder clear() { dataDisks_ = null; dataDisksBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); apiVersion_ = 0; if (symptomsBuilder_ == null) { symptoms_ = java.util.Collections.emptyList(); @@ -2883,7 +3128,7 @@ public Builder clear() { symptoms_ = null; symptomsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); queuedResource_ = ""; acceleratorConfig_ = null; if (acceleratorConfigBuilder_ != null) { @@ -2896,11 +3141,17 @@ public Builder clear() { shieldedInstanceConfigBuilder_ = null; } multisliceNode_ = false; + autocheckpointEnabled_ = false; bootDiskConfig_ = null; if (bootDiskConfigBuilder_ != null) { bootDiskConfigBuilder_.dispose(); bootDiskConfigBuilder_ = null; } + upcomingMaintenance_ = null; + if (upcomingMaintenanceBuilder_ != null) { + upcomingMaintenanceBuilder_.dispose(); + upcomingMaintenanceBuilder_ = null; + } return this; } @@ -2936,28 +3187,37 @@ public com.google.cloud.tpu.v2alpha1.Node buildPartial() { } private void buildPartialRepeatedFields(com.google.cloud.tpu.v2alpha1.Node result) { + if (networkConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + networkConfigs_ = java.util.Collections.unmodifiableList(networkConfigs_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.networkConfigs_ = networkConfigs_; + } else { + result.networkConfigs_ = networkConfigsBuilder_.build(); + } if (networkEndpointsBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { networkEndpoints_ = java.util.Collections.unmodifiableList(networkEndpoints_); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); } result.networkEndpoints_ = networkEndpoints_; } else { result.networkEndpoints_ = networkEndpointsBuilder_.build(); } if (dataDisksBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0)) { + if (((bitField0_ & 0x00040000) != 0)) { dataDisks_ = java.util.Collections.unmodifiableList(dataDisks_); - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); } result.dataDisks_ = dataDisks_; } else { result.dataDisks_ = dataDisksBuilder_.build(); } if (symptomsBuilder_ == null) { - if (((bitField0_ & 0x00080000) != 0)) { + if (((bitField0_ & 0x00100000) != 0)) { symptoms_ = java.util.Collections.unmodifiableList(symptoms_); - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); } result.symptoms_ = symptoms_; } else { @@ -2991,69 +3251,79 @@ private void buildPartial0(com.google.cloud.tpu.v2alpha1.Node result) { networkConfigBuilder_ == null ? networkConfig_ : networkConfigBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.cidrBlock_ = cidrBlock_; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.serviceAccount_ = serviceAccountBuilder_ == null ? serviceAccount_ : serviceAccountBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.schedulingConfig_ = schedulingConfigBuilder_ == null ? schedulingConfig_ : schedulingConfigBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.health_ = health_; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.metadata_ = internalGetMetadata(); result.metadata_.makeImmutable(); } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { tags_.makeImmutable(); result.tags_ = tags_; } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00020000) != 0)) { result.id_ = id_; } - if (((from_bitField0_ & 0x00040000) != 0)) { + if (((from_bitField0_ & 0x00080000) != 0)) { result.apiVersion_ = apiVersion_; } - if (((from_bitField0_ & 0x00100000) != 0)) { + if (((from_bitField0_ & 0x00200000) != 0)) { result.queuedResource_ = queuedResource_; } - if (((from_bitField0_ & 0x00200000) != 0)) { + if (((from_bitField0_ & 0x00400000) != 0)) { result.acceleratorConfig_ = acceleratorConfigBuilder_ == null ? acceleratorConfig_ : acceleratorConfigBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00400000) != 0)) { + if (((from_bitField0_ & 0x00800000) != 0)) { result.shieldedInstanceConfig_ = shieldedInstanceConfigBuilder_ == null ? shieldedInstanceConfig_ : shieldedInstanceConfigBuilder_.build(); to_bitField0_ |= 0x00000020; } - if (((from_bitField0_ & 0x00800000) != 0)) { + if (((from_bitField0_ & 0x01000000) != 0)) { result.multisliceNode_ = multisliceNode_; } - if (((from_bitField0_ & 0x01000000) != 0)) { + if (((from_bitField0_ & 0x02000000) != 0)) { + result.autocheckpointEnabled_ = autocheckpointEnabled_; + } + if (((from_bitField0_ & 0x04000000) != 0)) { result.bootDiskConfig_ = bootDiskConfigBuilder_ == null ? bootDiskConfig_ : bootDiskConfigBuilder_.build(); to_bitField0_ |= 0x00000040; } + if (((from_bitField0_ & 0x08000000) != 0)) { + result.upcomingMaintenance_ = + upcomingMaintenanceBuilder_ == null + ? upcomingMaintenance_ + : upcomingMaintenanceBuilder_.build(); + to_bitField0_ |= 0x00000080; + } result.bitField0_ |= to_bitField0_; } @@ -3133,9 +3403,36 @@ public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.Node other) { if (other.hasNetworkConfig()) { mergeNetworkConfig(other.getNetworkConfig()); } + if (networkConfigsBuilder_ == null) { + if (!other.networkConfigs_.isEmpty()) { + if (networkConfigs_.isEmpty()) { + networkConfigs_ = other.networkConfigs_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureNetworkConfigsIsMutable(); + networkConfigs_.addAll(other.networkConfigs_); + } + onChanged(); + } + } else { + if (!other.networkConfigs_.isEmpty()) { + if (networkConfigsBuilder_.isEmpty()) { + networkConfigsBuilder_.dispose(); + networkConfigsBuilder_ = null; + networkConfigs_ = other.networkConfigs_; + bitField0_ = (bitField0_ & ~0x00000080); + networkConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNetworkConfigsFieldBuilder() + : null; + } else { + networkConfigsBuilder_.addAllMessages(other.networkConfigs_); + } + } + } if (!other.getCidrBlock().isEmpty()) { cidrBlock_ = other.cidrBlock_; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } if (other.hasServiceAccount()) { @@ -3151,7 +3448,7 @@ public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.Node other) { if (!other.networkEndpoints_.isEmpty()) { if (networkEndpoints_.isEmpty()) { networkEndpoints_ = other.networkEndpoints_; - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); } else { ensureNetworkEndpointsIsMutable(); networkEndpoints_.addAll(other.networkEndpoints_); @@ -3164,7 +3461,7 @@ public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.Node other) { networkEndpointsBuilder_.dispose(); networkEndpointsBuilder_ = null; networkEndpoints_ = other.networkEndpoints_; - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); networkEndpointsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getNetworkEndpointsFieldBuilder() @@ -3178,13 +3475,13 @@ public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.Node other) { setHealthValue(other.getHealthValue()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00002000; - internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); bitField0_ |= 0x00004000; + internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); + bitField0_ |= 0x00008000; if (!other.tags_.isEmpty()) { if (tags_.isEmpty()) { tags_ = other.tags_; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; } else { ensureTagsIsMutable(); tags_.addAll(other.tags_); @@ -3198,7 +3495,7 @@ public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.Node other) { if (!other.dataDisks_.isEmpty()) { if (dataDisks_.isEmpty()) { dataDisks_ = other.dataDisks_; - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); } else { ensureDataDisksIsMutable(); dataDisks_.addAll(other.dataDisks_); @@ -3211,7 +3508,7 @@ public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.Node other) { dataDisksBuilder_.dispose(); dataDisksBuilder_ = null; dataDisks_ = other.dataDisks_; - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); dataDisksBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDataDisksFieldBuilder() @@ -3228,7 +3525,7 @@ public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.Node other) { if (!other.symptoms_.isEmpty()) { if (symptoms_.isEmpty()) { symptoms_ = other.symptoms_; - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); } else { ensureSymptomsIsMutable(); symptoms_.addAll(other.symptoms_); @@ -3241,7 +3538,7 @@ public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.Node other) { symptomsBuilder_.dispose(); symptomsBuilder_ = null; symptoms_ = other.symptoms_; - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); symptomsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSymptomsFieldBuilder() @@ -3253,7 +3550,7 @@ public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.Node other) { } if (!other.getQueuedResource().isEmpty()) { queuedResource_ = other.queuedResource_; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); } if (other.hasAcceleratorConfig()) { @@ -3265,9 +3562,15 @@ public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.Node other) { if (other.getMultisliceNode() != false) { setMultisliceNode(other.getMultisliceNode()); } + if (other.getAutocheckpointEnabled() != false) { + setAutocheckpointEnabled(other.getAutocheckpointEnabled()); + } if (other.hasBootDiskConfig()) { mergeBootDiskConfig(other.getBootDiskConfig()); } + if (other.hasUpcomingMaintenance()) { + mergeUpcomingMaintenance(other.getUpcomingMaintenance()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3333,20 +3636,20 @@ public Builder mergeFrom( case 106: { cidrBlock_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 106 case 130: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 130 case 138: { input.readMessage( getSchedulingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 138 case 170: @@ -3365,7 +3668,7 @@ public Builder mergeFrom( case 176: { health_ = input.readEnum(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 176 case 194: @@ -3377,13 +3680,13 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 194 case 264: { id_ = input.readInt64(); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 264 case 274: @@ -3395,7 +3698,7 @@ public Builder mergeFrom( internalGetMutableMetadata() .getMutableMap() .put(metadata__.getKey(), metadata__.getValue()); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 274 case 290: @@ -3407,13 +3710,13 @@ public Builder mergeFrom( case 298: { input.readMessage(getServiceAccountFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 298 case 304: { apiVersion_ = input.readEnum(); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; break; } // case 304 case 314: @@ -3452,35 +3755,61 @@ public Builder mergeFrom( case 346: { queuedResource_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; break; } // case 346 case 354: { input.readMessage( getAcceleratorConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; break; } // case 354 case 362: { input.readMessage( getShieldedInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; break; } // case 362 case 376: { multisliceNode_ = input.readBool(); - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; break; } // case 376 + case 384: + { + autocheckpointEnabled_ = input.readBool(); + bitField0_ |= 0x02000000; + break; + } // case 384 case 394: { input.readMessage(getBootDiskConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; break; } // case 394 + case 402: + { + com.google.cloud.tpu.v2alpha1.NetworkConfig m = + input.readMessage( + com.google.cloud.tpu.v2alpha1.NetworkConfig.parser(), extensionRegistry); + if (networkConfigsBuilder_ == null) { + ensureNetworkConfigsIsMutable(); + networkConfigs_.add(m); + } else { + networkConfigsBuilder_.addMessage(m); + } + break; + } // case 402 + case 410: + { + input.readMessage( + getUpcomingMaintenanceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x08000000; + break; + } // case 410 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4155,7 +4484,9 @@ public Builder setRuntimeVersionBytes(com.google.protobuf.ByteString value) { * * *
    -     * Network configurations for the TPU node.
    +     * Network configurations for the TPU node. network_config and network_configs
    +     * are mutually exclusive, you can only specify one of them. If both are
    +     * specified, an error will be returned.
          * 
    * * .google.cloud.tpu.v2alpha1.NetworkConfig network_config = 36; @@ -4169,7 +4500,9 @@ public boolean hasNetworkConfig() { * * *
    -     * Network configurations for the TPU node.
    +     * Network configurations for the TPU node. network_config and network_configs
    +     * are mutually exclusive, you can only specify one of them. If both are
    +     * specified, an error will be returned.
          * 
    * * .google.cloud.tpu.v2alpha1.NetworkConfig network_config = 36; @@ -4189,7 +4522,9 @@ public com.google.cloud.tpu.v2alpha1.NetworkConfig getNetworkConfig() { * * *
    -     * Network configurations for the TPU node.
    +     * Network configurations for the TPU node. network_config and network_configs
    +     * are mutually exclusive, you can only specify one of them. If both are
    +     * specified, an error will be returned.
          * 
    * * .google.cloud.tpu.v2alpha1.NetworkConfig network_config = 36; @@ -4211,7 +4546,9 @@ public Builder setNetworkConfig(com.google.cloud.tpu.v2alpha1.NetworkConfig valu * * *
    -     * Network configurations for the TPU node.
    +     * Network configurations for the TPU node. network_config and network_configs
    +     * are mutually exclusive, you can only specify one of them. If both are
    +     * specified, an error will be returned.
          * 
    * * .google.cloud.tpu.v2alpha1.NetworkConfig network_config = 36; @@ -4231,7 +4568,9 @@ public Builder setNetworkConfig( * * *
    -     * Network configurations for the TPU node.
    +     * Network configurations for the TPU node. network_config and network_configs
    +     * are mutually exclusive, you can only specify one of them. If both are
    +     * specified, an error will be returned.
          * 
    * * .google.cloud.tpu.v2alpha1.NetworkConfig network_config = 36; @@ -4258,7 +4597,9 @@ public Builder mergeNetworkConfig(com.google.cloud.tpu.v2alpha1.NetworkConfig va * * *
    -     * Network configurations for the TPU node.
    +     * Network configurations for the TPU node. network_config and network_configs
    +     * are mutually exclusive, you can only specify one of them. If both are
    +     * specified, an error will be returned.
          * 
    * * .google.cloud.tpu.v2alpha1.NetworkConfig network_config = 36; @@ -4277,7 +4618,9 @@ public Builder clearNetworkConfig() { * * *
    -     * Network configurations for the TPU node.
    +     * Network configurations for the TPU node. network_config and network_configs
    +     * are mutually exclusive, you can only specify one of them. If both are
    +     * specified, an error will be returned.
          * 
    * * .google.cloud.tpu.v2alpha1.NetworkConfig network_config = 36; @@ -4291,7 +4634,9 @@ public com.google.cloud.tpu.v2alpha1.NetworkConfig.Builder getNetworkConfigBuild * * *
    -     * Network configurations for the TPU node.
    +     * Network configurations for the TPU node. network_config and network_configs
    +     * are mutually exclusive, you can only specify one of them. If both are
    +     * specified, an error will be returned.
          * 
    * * .google.cloud.tpu.v2alpha1.NetworkConfig network_config = 36; @@ -4309,7 +4654,9 @@ public com.google.cloud.tpu.v2alpha1.NetworkConfigOrBuilder getNetworkConfigOrBu * * *
    -     * Network configurations for the TPU node.
    +     * Network configurations for the TPU node. network_config and network_configs
    +     * are mutually exclusive, you can only specify one of them. If both are
    +     * specified, an error will be returned.
          * 
    * * .google.cloud.tpu.v2alpha1.NetworkConfig network_config = 36; @@ -4331,47 +4678,492 @@ public com.google.cloud.tpu.v2alpha1.NetworkConfigOrBuilder getNetworkConfigOrBu return networkConfigBuilder_; } - private java.lang.Object cidrBlock_ = ""; + private java.util.List networkConfigs_ = + java.util.Collections.emptyList(); + + private void ensureNetworkConfigsIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + networkConfigs_ = + new java.util.ArrayList(networkConfigs_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.NetworkConfig, + com.google.cloud.tpu.v2alpha1.NetworkConfig.Builder, + com.google.cloud.tpu.v2alpha1.NetworkConfigOrBuilder> + networkConfigsBuilder_; + /** * * *
    -     * The CIDR block that the TPU node will use when selecting an IP address.
    -     * This CIDR block must be a /29 block; the Compute Engine networks API
    -     * forbids a smaller block, and using a larger block would be wasteful (a
    -     * node can only consume one IP address). Errors will occur if the CIDR block
    -     * has already been used for a currently existing TPU node, the CIDR block
    -     * conflicts with any subnetworks in the user's provided network, or the
    -     * provided network is peered with another network that is using that CIDR
    -     * block.
    +     * Optional. Repeated network configurations for the TPU node. This field is
    +     * used to specify multiple networks configs for the TPU node. network_config
    +     * and network_configs are mutually exclusive, you can only specify one of
    +     * them. If both are specified, an error will be returned.
          * 
    * - * string cidr_block = 13; - * - * @return The cidrBlock. + * + * repeated .google.cloud.tpu.v2alpha1.NetworkConfig network_configs = 50 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.lang.String getCidrBlock() { - java.lang.Object ref = cidrBlock_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cidrBlock_ = s; - return s; + public java.util.List getNetworkConfigsList() { + if (networkConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(networkConfigs_); } else { - return (java.lang.String) ref; + return networkConfigsBuilder_.getMessageList(); } } /** * * *
    -     * The CIDR block that the TPU node will use when selecting an IP address.
    -     * This CIDR block must be a /29 block; the Compute Engine networks API
    -     * forbids a smaller block, and using a larger block would be wasteful (a
    -     * node can only consume one IP address). Errors will occur if the CIDR block
    -     * has already been used for a currently existing TPU node, the CIDR block
    -     * conflicts with any subnetworks in the user's provided network, or the
    -     * provided network is peered with another network that is using that CIDR
    +     * Optional. Repeated network configurations for the TPU node. This field is
    +     * used to specify multiple networks configs for the TPU node. network_config
    +     * and network_configs are mutually exclusive, you can only specify one of
    +     * them. If both are specified, an error will be returned.
    +     * 
    + * + * + * repeated .google.cloud.tpu.v2alpha1.NetworkConfig network_configs = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getNetworkConfigsCount() { + if (networkConfigsBuilder_ == null) { + return networkConfigs_.size(); + } else { + return networkConfigsBuilder_.getCount(); + } + } + /** + * + * + *
    +     * Optional. Repeated network configurations for the TPU node. This field is
    +     * used to specify multiple networks configs for the TPU node. network_config
    +     * and network_configs are mutually exclusive, you can only specify one of
    +     * them. If both are specified, an error will be returned.
    +     * 
    + * + * + * repeated .google.cloud.tpu.v2alpha1.NetworkConfig network_configs = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.tpu.v2alpha1.NetworkConfig getNetworkConfigs(int index) { + if (networkConfigsBuilder_ == null) { + return networkConfigs_.get(index); + } else { + return networkConfigsBuilder_.getMessage(index); + } + } + /** + * + * + *
    +     * Optional. Repeated network configurations for the TPU node. This field is
    +     * used to specify multiple networks configs for the TPU node. network_config
    +     * and network_configs are mutually exclusive, you can only specify one of
    +     * them. If both are specified, an error will be returned.
    +     * 
    + * + * + * repeated .google.cloud.tpu.v2alpha1.NetworkConfig network_configs = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNetworkConfigs(int index, com.google.cloud.tpu.v2alpha1.NetworkConfig value) { + if (networkConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNetworkConfigsIsMutable(); + networkConfigs_.set(index, value); + onChanged(); + } else { + networkConfigsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * Optional. Repeated network configurations for the TPU node. This field is
    +     * used to specify multiple networks configs for the TPU node. network_config
    +     * and network_configs are mutually exclusive, you can only specify one of
    +     * them. If both are specified, an error will be returned.
    +     * 
    + * + * + * repeated .google.cloud.tpu.v2alpha1.NetworkConfig network_configs = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNetworkConfigs( + int index, com.google.cloud.tpu.v2alpha1.NetworkConfig.Builder builderForValue) { + if (networkConfigsBuilder_ == null) { + ensureNetworkConfigsIsMutable(); + networkConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + networkConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * Optional. Repeated network configurations for the TPU node. This field is
    +     * used to specify multiple networks configs for the TPU node. network_config
    +     * and network_configs are mutually exclusive, you can only specify one of
    +     * them. If both are specified, an error will be returned.
    +     * 
    + * + * + * repeated .google.cloud.tpu.v2alpha1.NetworkConfig network_configs = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addNetworkConfigs(com.google.cloud.tpu.v2alpha1.NetworkConfig value) { + if (networkConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNetworkConfigsIsMutable(); + networkConfigs_.add(value); + onChanged(); + } else { + networkConfigsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
    +     * Optional. Repeated network configurations for the TPU node. This field is
    +     * used to specify multiple networks configs for the TPU node. network_config
    +     * and network_configs are mutually exclusive, you can only specify one of
    +     * them. If both are specified, an error will be returned.
    +     * 
    + * + * + * repeated .google.cloud.tpu.v2alpha1.NetworkConfig network_configs = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addNetworkConfigs(int index, com.google.cloud.tpu.v2alpha1.NetworkConfig value) { + if (networkConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNetworkConfigsIsMutable(); + networkConfigs_.add(index, value); + onChanged(); + } else { + networkConfigsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * Optional. Repeated network configurations for the TPU node. This field is
    +     * used to specify multiple networks configs for the TPU node. network_config
    +     * and network_configs are mutually exclusive, you can only specify one of
    +     * them. If both are specified, an error will be returned.
    +     * 
    + * + * + * repeated .google.cloud.tpu.v2alpha1.NetworkConfig network_configs = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addNetworkConfigs( + com.google.cloud.tpu.v2alpha1.NetworkConfig.Builder builderForValue) { + if (networkConfigsBuilder_ == null) { + ensureNetworkConfigsIsMutable(); + networkConfigs_.add(builderForValue.build()); + onChanged(); + } else { + networkConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * Optional. Repeated network configurations for the TPU node. This field is
    +     * used to specify multiple networks configs for the TPU node. network_config
    +     * and network_configs are mutually exclusive, you can only specify one of
    +     * them. If both are specified, an error will be returned.
    +     * 
    + * + * + * repeated .google.cloud.tpu.v2alpha1.NetworkConfig network_configs = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addNetworkConfigs( + int index, com.google.cloud.tpu.v2alpha1.NetworkConfig.Builder builderForValue) { + if (networkConfigsBuilder_ == null) { + ensureNetworkConfigsIsMutable(); + networkConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + networkConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * Optional. Repeated network configurations for the TPU node. This field is
    +     * used to specify multiple networks configs for the TPU node. network_config
    +     * and network_configs are mutually exclusive, you can only specify one of
    +     * them. If both are specified, an error will be returned.
    +     * 
    + * + * + * repeated .google.cloud.tpu.v2alpha1.NetworkConfig network_configs = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllNetworkConfigs( + java.lang.Iterable values) { + if (networkConfigsBuilder_ == null) { + ensureNetworkConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, networkConfigs_); + onChanged(); + } else { + networkConfigsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
    +     * Optional. Repeated network configurations for the TPU node. This field is
    +     * used to specify multiple networks configs for the TPU node. network_config
    +     * and network_configs are mutually exclusive, you can only specify one of
    +     * them. If both are specified, an error will be returned.
    +     * 
    + * + * + * repeated .google.cloud.tpu.v2alpha1.NetworkConfig network_configs = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearNetworkConfigs() { + if (networkConfigsBuilder_ == null) { + networkConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + networkConfigsBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * Optional. Repeated network configurations for the TPU node. This field is
    +     * used to specify multiple networks configs for the TPU node. network_config
    +     * and network_configs are mutually exclusive, you can only specify one of
    +     * them. If both are specified, an error will be returned.
    +     * 
    + * + * + * repeated .google.cloud.tpu.v2alpha1.NetworkConfig network_configs = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeNetworkConfigs(int index) { + if (networkConfigsBuilder_ == null) { + ensureNetworkConfigsIsMutable(); + networkConfigs_.remove(index); + onChanged(); + } else { + networkConfigsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
    +     * Optional. Repeated network configurations for the TPU node. This field is
    +     * used to specify multiple networks configs for the TPU node. network_config
    +     * and network_configs are mutually exclusive, you can only specify one of
    +     * them. If both are specified, an error will be returned.
    +     * 
    + * + * + * repeated .google.cloud.tpu.v2alpha1.NetworkConfig network_configs = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.tpu.v2alpha1.NetworkConfig.Builder getNetworkConfigsBuilder(int index) { + return getNetworkConfigsFieldBuilder().getBuilder(index); + } + /** + * + * + *
    +     * Optional. Repeated network configurations for the TPU node. This field is
    +     * used to specify multiple networks configs for the TPU node. network_config
    +     * and network_configs are mutually exclusive, you can only specify one of
    +     * them. If both are specified, an error will be returned.
    +     * 
    + * + * + * repeated .google.cloud.tpu.v2alpha1.NetworkConfig network_configs = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.tpu.v2alpha1.NetworkConfigOrBuilder getNetworkConfigsOrBuilder( + int index) { + if (networkConfigsBuilder_ == null) { + return networkConfigs_.get(index); + } else { + return networkConfigsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
    +     * Optional. Repeated network configurations for the TPU node. This field is
    +     * used to specify multiple networks configs for the TPU node. network_config
    +     * and network_configs are mutually exclusive, you can only specify one of
    +     * them. If both are specified, an error will be returned.
    +     * 
    + * + * + * repeated .google.cloud.tpu.v2alpha1.NetworkConfig network_configs = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getNetworkConfigsOrBuilderList() { + if (networkConfigsBuilder_ != null) { + return networkConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(networkConfigs_); + } + } + /** + * + * + *
    +     * Optional. Repeated network configurations for the TPU node. This field is
    +     * used to specify multiple networks configs for the TPU node. network_config
    +     * and network_configs are mutually exclusive, you can only specify one of
    +     * them. If both are specified, an error will be returned.
    +     * 
    + * + * + * repeated .google.cloud.tpu.v2alpha1.NetworkConfig network_configs = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.tpu.v2alpha1.NetworkConfig.Builder addNetworkConfigsBuilder() { + return getNetworkConfigsFieldBuilder() + .addBuilder(com.google.cloud.tpu.v2alpha1.NetworkConfig.getDefaultInstance()); + } + /** + * + * + *
    +     * Optional. Repeated network configurations for the TPU node. This field is
    +     * used to specify multiple networks configs for the TPU node. network_config
    +     * and network_configs are mutually exclusive, you can only specify one of
    +     * them. If both are specified, an error will be returned.
    +     * 
    + * + * + * repeated .google.cloud.tpu.v2alpha1.NetworkConfig network_configs = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.tpu.v2alpha1.NetworkConfig.Builder addNetworkConfigsBuilder(int index) { + return getNetworkConfigsFieldBuilder() + .addBuilder(index, com.google.cloud.tpu.v2alpha1.NetworkConfig.getDefaultInstance()); + } + /** + * + * + *
    +     * Optional. Repeated network configurations for the TPU node. This field is
    +     * used to specify multiple networks configs for the TPU node. network_config
    +     * and network_configs are mutually exclusive, you can only specify one of
    +     * them. If both are specified, an error will be returned.
    +     * 
    + * + * + * repeated .google.cloud.tpu.v2alpha1.NetworkConfig network_configs = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getNetworkConfigsBuilderList() { + return getNetworkConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.NetworkConfig, + com.google.cloud.tpu.v2alpha1.NetworkConfig.Builder, + com.google.cloud.tpu.v2alpha1.NetworkConfigOrBuilder> + getNetworkConfigsFieldBuilder() { + if (networkConfigsBuilder_ == null) { + networkConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.NetworkConfig, + com.google.cloud.tpu.v2alpha1.NetworkConfig.Builder, + com.google.cloud.tpu.v2alpha1.NetworkConfigOrBuilder>( + networkConfigs_, + ((bitField0_ & 0x00000080) != 0), + getParentForChildren(), + isClean()); + networkConfigs_ = null; + } + return networkConfigsBuilder_; + } + + private java.lang.Object cidrBlock_ = ""; + /** + * + * + *
    +     * The CIDR block that the TPU node will use when selecting an IP address.
    +     * This CIDR block must be a /29 block; the Compute Engine networks API
    +     * forbids a smaller block, and using a larger block would be wasteful (a
    +     * node can only consume one IP address). Errors will occur if the CIDR block
    +     * has already been used for a currently existing TPU node, the CIDR block
    +     * conflicts with any subnetworks in the user's provided network, or the
    +     * provided network is peered with another network that is using that CIDR
    +     * block.
    +     * 
    + * + * string cidr_block = 13; + * + * @return The cidrBlock. + */ + public java.lang.String getCidrBlock() { + java.lang.Object ref = cidrBlock_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cidrBlock_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * The CIDR block that the TPU node will use when selecting an IP address.
    +     * This CIDR block must be a /29 block; the Compute Engine networks API
    +     * forbids a smaller block, and using a larger block would be wasteful (a
    +     * node can only consume one IP address). Errors will occur if the CIDR block
    +     * has already been used for a currently existing TPU node, the CIDR block
    +     * conflicts with any subnetworks in the user's provided network, or the
    +     * provided network is peered with another network that is using that CIDR
          * block.
          * 
    * @@ -4414,7 +5206,7 @@ public Builder setCidrBlock(java.lang.String value) { throw new NullPointerException(); } cidrBlock_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -4438,7 +5230,7 @@ public Builder setCidrBlock(java.lang.String value) { */ public Builder clearCidrBlock() { cidrBlock_ = getDefaultInstance().getCidrBlock(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -4467,7 +5259,7 @@ public Builder setCidrBlockBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); cidrBlock_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -4491,7 +5283,7 @@ public Builder setCidrBlockBytes(com.google.protobuf.ByteString value) { * @return Whether the serviceAccount field is set. */ public boolean hasServiceAccount() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -4533,7 +5325,7 @@ public Builder setServiceAccount(com.google.cloud.tpu.v2alpha1.ServiceAccount va } else { serviceAccountBuilder_.setMessage(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -4554,7 +5346,7 @@ public Builder setServiceAccount( } else { serviceAccountBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -4570,7 +5362,7 @@ public Builder setServiceAccount( */ public Builder mergeServiceAccount(com.google.cloud.tpu.v2alpha1.ServiceAccount value) { if (serviceAccountBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) + if (((bitField0_ & 0x00000200) != 0) && serviceAccount_ != null && serviceAccount_ != com.google.cloud.tpu.v2alpha1.ServiceAccount.getDefaultInstance()) { @@ -4582,7 +5374,7 @@ public Builder mergeServiceAccount(com.google.cloud.tpu.v2alpha1.ServiceAccount serviceAccountBuilder_.mergeFrom(value); } if (serviceAccount_ != null) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } return this; @@ -4598,7 +5390,7 @@ public Builder mergeServiceAccount(com.google.cloud.tpu.v2alpha1.ServiceAccount * .google.cloud.tpu.v2alpha1.ServiceAccount service_account = 37; */ public Builder clearServiceAccount() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); serviceAccount_ = null; if (serviceAccountBuilder_ != null) { serviceAccountBuilder_.dispose(); @@ -4618,7 +5410,7 @@ public Builder clearServiceAccount() { * .google.cloud.tpu.v2alpha1.ServiceAccount service_account = 37; */ public com.google.cloud.tpu.v2alpha1.ServiceAccount.Builder getServiceAccountBuilder() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return getServiceAccountFieldBuilder().getBuilder(); } @@ -4688,7 +5480,7 @@ public com.google.cloud.tpu.v2alpha1.ServiceAccountOrBuilder getServiceAccountOr * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -4732,7 +5524,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4753,7 +5545,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4770,7 +5562,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) + if (((bitField0_ & 0x00000400) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -4781,7 +5573,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); } return this; @@ -4798,7 +5590,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -4819,7 +5611,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -4889,7 +5681,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the schedulingConfig field is set. */ public boolean hasSchedulingConfig() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** * @@ -4929,7 +5721,7 @@ public Builder setSchedulingConfig(com.google.cloud.tpu.v2alpha1.SchedulingConfi } else { schedulingConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4949,7 +5741,7 @@ public Builder setSchedulingConfig( } else { schedulingConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4964,7 +5756,7 @@ public Builder setSchedulingConfig( */ public Builder mergeSchedulingConfig(com.google.cloud.tpu.v2alpha1.SchedulingConfig value) { if (schedulingConfigBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) + if (((bitField0_ & 0x00000800) != 0) && schedulingConfig_ != null && schedulingConfig_ != com.google.cloud.tpu.v2alpha1.SchedulingConfig.getDefaultInstance()) { @@ -4976,7 +5768,7 @@ public Builder mergeSchedulingConfig(com.google.cloud.tpu.v2alpha1.SchedulingCon schedulingConfigBuilder_.mergeFrom(value); } if (schedulingConfig_ != null) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } return this; @@ -4991,7 +5783,7 @@ public Builder mergeSchedulingConfig(com.google.cloud.tpu.v2alpha1.SchedulingCon * .google.cloud.tpu.v2alpha1.SchedulingConfig scheduling_config = 17; */ public Builder clearSchedulingConfig() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); schedulingConfig_ = null; if (schedulingConfigBuilder_ != null) { schedulingConfigBuilder_.dispose(); @@ -5010,7 +5802,7 @@ public Builder clearSchedulingConfig() { * .google.cloud.tpu.v2alpha1.SchedulingConfig scheduling_config = 17; */ public com.google.cloud.tpu.v2alpha1.SchedulingConfig.Builder getSchedulingConfigBuilder() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return getSchedulingConfigFieldBuilder().getBuilder(); } @@ -5062,11 +5854,11 @@ public com.google.cloud.tpu.v2alpha1.SchedulingConfigOrBuilder getSchedulingConf java.util.Collections.emptyList(); private void ensureNetworkEndpointsIsMutable() { - if (!((bitField0_ & 0x00000800) != 0)) { + if (!((bitField0_ & 0x00001000) != 0)) { networkEndpoints_ = new java.util.ArrayList( networkEndpoints_); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; } } @@ -5328,7 +6120,7 @@ public Builder addAllNetworkEndpoints( public Builder clearNetworkEndpoints() { if (networkEndpointsBuilder_ == null) { networkEndpoints_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); } else { networkEndpointsBuilder_.clear(); @@ -5482,7 +6274,7 @@ public com.google.cloud.tpu.v2alpha1.NetworkEndpoint.Builder addNetworkEndpoints com.google.cloud.tpu.v2alpha1.NetworkEndpoint.Builder, com.google.cloud.tpu.v2alpha1.NetworkEndpointOrBuilder>( networkEndpoints_, - ((bitField0_ & 0x00000800) != 0), + ((bitField0_ & 0x00001000) != 0), getParentForChildren(), isClean()); networkEndpoints_ = null; @@ -5520,7 +6312,7 @@ public int getHealthValue() { */ public Builder setHealthValue(int value) { health_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -5557,7 +6349,7 @@ public Builder setHealth(com.google.cloud.tpu.v2alpha1.Node.Health value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; health_ = value.getNumber(); onChanged(); return this; @@ -5574,7 +6366,7 @@ public Builder setHealth(com.google.cloud.tpu.v2alpha1.Node.Health value) { * @return This builder for chaining. */ public Builder clearHealth() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); health_ = 0; onChanged(); return this; @@ -5597,7 +6389,7 @@ private com.google.protobuf.MapField interna if (!labels_.isMutable()) { labels_ = labels_.copy(); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return labels_; } @@ -5682,7 +6474,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -5705,7 +6497,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; return internalGetMutableLabels().getMutableMap(); } /** @@ -5725,7 +6517,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; return this; } /** @@ -5739,7 +6531,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; return this; } @@ -5761,7 +6553,7 @@ private com.google.protobuf.MapField interna if (!metadata_.isMutable()) { metadata_ = metadata_.copy(); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return metadata_; } @@ -5850,7 +6642,7 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) { } public Builder clearMetadata() { - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); internalGetMutableMetadata().getMutableMap().clear(); return this; } @@ -5874,7 +6666,7 @@ public Builder removeMetadata(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMetadata() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; return internalGetMutableMetadata().getMutableMap(); } /** @@ -5895,7 +6687,7 @@ public Builder putMetadata(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableMetadata().getMutableMap().put(key, value); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; return this; } /** @@ -5910,7 +6702,7 @@ public Builder putMetadata(java.lang.String key, java.lang.String value) { */ public Builder putAllMetadata(java.util.Map values) { internalGetMutableMetadata().getMutableMap().putAll(values); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; return this; } @@ -5921,7 +6713,7 @@ private void ensureTagsIsMutable() { if (!tags_.isModifiable()) { tags_ = new com.google.protobuf.LazyStringArrayList(tags_); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; } /** * @@ -6006,7 +6798,7 @@ public Builder setTags(int index, java.lang.String value) { } ensureTagsIsMutable(); tags_.set(index, value); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -6029,7 +6821,7 @@ public Builder addTags(java.lang.String value) { } ensureTagsIsMutable(); tags_.add(value); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -6049,7 +6841,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_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -6067,7 +6859,7 @@ public Builder addAllTags(java.lang.Iterable values) { */ public Builder clearTags() { tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); ; onChanged(); return this; @@ -6092,7 +6884,7 @@ public Builder addTagsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureTagsIsMutable(); tags_.add(value); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -6128,7 +6920,7 @@ public long getId() { public Builder setId(long value) { id_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -6144,7 +6936,7 @@ public Builder setId(long value) { * @return This builder for chaining. */ public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); id_ = 0L; onChanged(); return this; @@ -6154,10 +6946,10 @@ public Builder clearId() { java.util.Collections.emptyList(); private void ensureDataDisksIsMutable() { - if (!((bitField0_ & 0x00020000) != 0)) { + if (!((bitField0_ & 0x00040000) != 0)) { dataDisks_ = new java.util.ArrayList(dataDisks_); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; } } @@ -6373,7 +7165,7 @@ public Builder addAllDataDisks( public Builder clearDataDisks() { if (dataDisksBuilder_ == null) { dataDisks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); onChanged(); } else { dataDisksBuilder_.clear(); @@ -6495,7 +7287,7 @@ public com.google.cloud.tpu.v2alpha1.AttachedDisk.Builder addDataDisksBuilder(in com.google.cloud.tpu.v2alpha1.AttachedDisk, com.google.cloud.tpu.v2alpha1.AttachedDisk.Builder, com.google.cloud.tpu.v2alpha1.AttachedDiskOrBuilder>( - dataDisks_, ((bitField0_ & 0x00020000) != 0), getParentForChildren(), isClean()); + dataDisks_, ((bitField0_ & 0x00040000) != 0), getParentForChildren(), isClean()); dataDisks_ = null; } return dataDisksBuilder_; @@ -6535,7 +7327,7 @@ public int getApiVersionValue() { */ public Builder setApiVersionValue(int value) { apiVersion_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -6576,7 +7368,7 @@ public Builder setApiVersion(com.google.cloud.tpu.v2alpha1.Node.ApiVersion value if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; apiVersion_ = value.getNumber(); onChanged(); return this; @@ -6595,7 +7387,7 @@ public Builder setApiVersion(com.google.cloud.tpu.v2alpha1.Node.ApiVersion value * @return This builder for chaining. */ public Builder clearApiVersion() { - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); apiVersion_ = 0; onChanged(); return this; @@ -6605,9 +7397,9 @@ public Builder clearApiVersion() { java.util.Collections.emptyList(); private void ensureSymptomsIsMutable() { - if (!((bitField0_ & 0x00080000) != 0)) { + if (!((bitField0_ & 0x00100000) != 0)) { symptoms_ = new java.util.ArrayList(symptoms_); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; } } @@ -6844,7 +7636,7 @@ public Builder addAllSymptoms( public Builder clearSymptoms() { if (symptomsBuilder_ == null) { symptoms_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); onChanged(); } else { symptomsBuilder_.clear(); @@ -6979,7 +7771,7 @@ public java.util.List getSymptoms com.google.cloud.tpu.v2alpha1.Symptom, com.google.cloud.tpu.v2alpha1.Symptom.Builder, com.google.cloud.tpu.v2alpha1.SymptomOrBuilder>( - symptoms_, ((bitField0_ & 0x00080000) != 0), getParentForChildren(), isClean()); + symptoms_, ((bitField0_ & 0x00100000) != 0), getParentForChildren(), isClean()); symptoms_ = null; } return symptomsBuilder_; @@ -7050,7 +7842,7 @@ public Builder setQueuedResource(java.lang.String value) { throw new NullPointerException(); } queuedResource_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -7068,7 +7860,7 @@ public Builder setQueuedResource(java.lang.String value) { */ public Builder clearQueuedResource() { queuedResource_ = getDefaultInstance().getQueuedResource(); - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00200000); onChanged(); return this; } @@ -7091,7 +7883,7 @@ public Builder setQueuedResourceBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); queuedResource_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -7114,7 +7906,7 @@ public Builder setQueuedResourceBytes(com.google.protobuf.ByteString value) { * @return Whether the acceleratorConfig field is set. */ public boolean hasAcceleratorConfig() { - return ((bitField0_ & 0x00200000) != 0); + return ((bitField0_ & 0x00400000) != 0); } /** * @@ -7154,7 +7946,7 @@ public Builder setAcceleratorConfig(com.google.cloud.tpu.v2alpha1.AcceleratorCon } else { acceleratorConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -7174,7 +7966,7 @@ public Builder setAcceleratorConfig( } else { acceleratorConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -7189,7 +7981,7 @@ public Builder setAcceleratorConfig( */ public Builder mergeAcceleratorConfig(com.google.cloud.tpu.v2alpha1.AcceleratorConfig value) { if (acceleratorConfigBuilder_ == null) { - if (((bitField0_ & 0x00200000) != 0) + if (((bitField0_ & 0x00400000) != 0) && acceleratorConfig_ != null && acceleratorConfig_ != com.google.cloud.tpu.v2alpha1.AcceleratorConfig.getDefaultInstance()) { @@ -7201,7 +7993,7 @@ public Builder mergeAcceleratorConfig(com.google.cloud.tpu.v2alpha1.AcceleratorC acceleratorConfigBuilder_.mergeFrom(value); } if (acceleratorConfig_ != null) { - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); } return this; @@ -7216,7 +8008,7 @@ public Builder mergeAcceleratorConfig(com.google.cloud.tpu.v2alpha1.AcceleratorC * .google.cloud.tpu.v2alpha1.AcceleratorConfig accelerator_config = 44; */ public Builder clearAcceleratorConfig() { - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); acceleratorConfig_ = null; if (acceleratorConfigBuilder_ != null) { acceleratorConfigBuilder_.dispose(); @@ -7235,7 +8027,7 @@ public Builder clearAcceleratorConfig() { * .google.cloud.tpu.v2alpha1.AcceleratorConfig accelerator_config = 44; */ public com.google.cloud.tpu.v2alpha1.AcceleratorConfig.Builder getAcceleratorConfigBuilder() { - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return getAcceleratorConfigFieldBuilder().getBuilder(); } @@ -7302,7 +8094,7 @@ public com.google.cloud.tpu.v2alpha1.AcceleratorConfig.Builder getAcceleratorCon * @return Whether the shieldedInstanceConfig field is set. */ public boolean hasShieldedInstanceConfig() { - return ((bitField0_ & 0x00400000) != 0); + return ((bitField0_ & 0x00800000) != 0); } /** * @@ -7343,7 +8135,7 @@ public Builder setShieldedInstanceConfig( } else { shieldedInstanceConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -7363,7 +8155,7 @@ public Builder setShieldedInstanceConfig( } else { shieldedInstanceConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -7379,7 +8171,7 @@ public Builder setShieldedInstanceConfig( public Builder mergeShieldedInstanceConfig( com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig value) { if (shieldedInstanceConfigBuilder_ == null) { - if (((bitField0_ & 0x00400000) != 0) + if (((bitField0_ & 0x00800000) != 0) && shieldedInstanceConfig_ != null && shieldedInstanceConfig_ != com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig.getDefaultInstance()) { @@ -7391,7 +8183,7 @@ public Builder mergeShieldedInstanceConfig( shieldedInstanceConfigBuilder_.mergeFrom(value); } if (shieldedInstanceConfig_ != null) { - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); } return this; @@ -7406,7 +8198,7 @@ public Builder mergeShieldedInstanceConfig( * .google.cloud.tpu.v2alpha1.ShieldedInstanceConfig shielded_instance_config = 45; */ public Builder clearShieldedInstanceConfig() { - bitField0_ = (bitField0_ & ~0x00400000); + bitField0_ = (bitField0_ & ~0x00800000); shieldedInstanceConfig_ = null; if (shieldedInstanceConfigBuilder_ != null) { shieldedInstanceConfigBuilder_.dispose(); @@ -7426,7 +8218,7 @@ public Builder clearShieldedInstanceConfig() { */ public com.google.cloud.tpu.v2alpha1.ShieldedInstanceConfig.Builder getShieldedInstanceConfigBuilder() { - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return getShieldedInstanceConfigFieldBuilder().getBuilder(); } @@ -7506,7 +8298,7 @@ public boolean getMultisliceNode() { public Builder setMultisliceNode(boolean value) { multisliceNode_ = value; - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -7522,12 +8314,65 @@ public Builder setMultisliceNode(boolean value) { * @return This builder for chaining. */ public Builder clearMultisliceNode() { - bitField0_ = (bitField0_ & ~0x00800000); + bitField0_ = (bitField0_ & ~0x01000000); multisliceNode_ = false; onChanged(); return this; } + private boolean autocheckpointEnabled_; + /** + * + * + *
    +     * Optional. Whether Autocheckpoint is enabled.
    +     * 
    + * + * bool autocheckpoint_enabled = 48 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The autocheckpointEnabled. + */ + @java.lang.Override + public boolean getAutocheckpointEnabled() { + return autocheckpointEnabled_; + } + /** + * + * + *
    +     * Optional. Whether Autocheckpoint is enabled.
    +     * 
    + * + * bool autocheckpoint_enabled = 48 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The autocheckpointEnabled to set. + * @return This builder for chaining. + */ + public Builder setAutocheckpointEnabled(boolean value) { + + autocheckpointEnabled_ = value; + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. Whether Autocheckpoint is enabled.
    +     * 
    + * + * bool autocheckpoint_enabled = 48 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAutocheckpointEnabled() { + bitField0_ = (bitField0_ & ~0x02000000); + autocheckpointEnabled_ = false; + onChanged(); + return this; + } + private com.google.cloud.tpu.v2alpha1.BootDiskConfig bootDiskConfig_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.tpu.v2alpha1.BootDiskConfig, @@ -7548,7 +8393,7 @@ public Builder clearMultisliceNode() { * @return Whether the bootDiskConfig field is set. */ public boolean hasBootDiskConfig() { - return ((bitField0_ & 0x01000000) != 0); + return ((bitField0_ & 0x04000000) != 0); } /** * @@ -7592,7 +8437,7 @@ public Builder setBootDiskConfig(com.google.cloud.tpu.v2alpha1.BootDiskConfig va } else { bootDiskConfigBuilder_.setMessage(value); } - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; onChanged(); return this; } @@ -7614,7 +8459,7 @@ public Builder setBootDiskConfig( } else { bootDiskConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; onChanged(); return this; } @@ -7631,7 +8476,7 @@ public Builder setBootDiskConfig( */ public Builder mergeBootDiskConfig(com.google.cloud.tpu.v2alpha1.BootDiskConfig value) { if (bootDiskConfigBuilder_ == null) { - if (((bitField0_ & 0x01000000) != 0) + if (((bitField0_ & 0x04000000) != 0) && bootDiskConfig_ != null && bootDiskConfig_ != com.google.cloud.tpu.v2alpha1.BootDiskConfig.getDefaultInstance()) { @@ -7643,7 +8488,7 @@ public Builder mergeBootDiskConfig(com.google.cloud.tpu.v2alpha1.BootDiskConfig bootDiskConfigBuilder_.mergeFrom(value); } if (bootDiskConfig_ != null) { - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; onChanged(); } return this; @@ -7660,7 +8505,7 @@ public Builder mergeBootDiskConfig(com.google.cloud.tpu.v2alpha1.BootDiskConfig * */ public Builder clearBootDiskConfig() { - bitField0_ = (bitField0_ & ~0x01000000); + bitField0_ = (bitField0_ & ~0x04000000); bootDiskConfig_ = null; if (bootDiskConfigBuilder_ != null) { bootDiskConfigBuilder_.dispose(); @@ -7681,7 +8526,7 @@ public Builder clearBootDiskConfig() { * */ public com.google.cloud.tpu.v2alpha1.BootDiskConfig.Builder getBootDiskConfigBuilder() { - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; onChanged(); return getBootDiskConfigFieldBuilder().getBuilder(); } @@ -7733,6 +8578,214 @@ public com.google.cloud.tpu.v2alpha1.BootDiskConfigOrBuilder getBootDiskConfigOr return bootDiskConfigBuilder_; } + private com.google.cloud.tpu.v2alpha1.UpcomingMaintenance upcomingMaintenance_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.UpcomingMaintenance, + com.google.cloud.tpu.v2alpha1.UpcomingMaintenance.Builder, + com.google.cloud.tpu.v2alpha1.UpcomingMaintenanceOrBuilder> + upcomingMaintenanceBuilder_; + /** + * + * + *
    +     * Output only. Upcoming maintenance on this TPU node.
    +     * 
    + * + * + * .google.cloud.tpu.v2alpha1.UpcomingMaintenance upcoming_maintenance = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the upcomingMaintenance field is set. + */ + public boolean hasUpcomingMaintenance() { + return ((bitField0_ & 0x08000000) != 0); + } + /** + * + * + *
    +     * Output only. Upcoming maintenance on this TPU node.
    +     * 
    + * + * + * .google.cloud.tpu.v2alpha1.UpcomingMaintenance upcoming_maintenance = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The upcomingMaintenance. + */ + public com.google.cloud.tpu.v2alpha1.UpcomingMaintenance getUpcomingMaintenance() { + if (upcomingMaintenanceBuilder_ == null) { + return upcomingMaintenance_ == null + ? com.google.cloud.tpu.v2alpha1.UpcomingMaintenance.getDefaultInstance() + : upcomingMaintenance_; + } else { + return upcomingMaintenanceBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Output only. Upcoming maintenance on this TPU node.
    +     * 
    + * + * + * .google.cloud.tpu.v2alpha1.UpcomingMaintenance upcoming_maintenance = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpcomingMaintenance(com.google.cloud.tpu.v2alpha1.UpcomingMaintenance value) { + if (upcomingMaintenanceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + upcomingMaintenance_ = value; + } else { + upcomingMaintenanceBuilder_.setMessage(value); + } + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Upcoming maintenance on this TPU node.
    +     * 
    + * + * + * .google.cloud.tpu.v2alpha1.UpcomingMaintenance upcoming_maintenance = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpcomingMaintenance( + com.google.cloud.tpu.v2alpha1.UpcomingMaintenance.Builder builderForValue) { + if (upcomingMaintenanceBuilder_ == null) { + upcomingMaintenance_ = builderForValue.build(); + } else { + upcomingMaintenanceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Upcoming maintenance on this TPU node.
    +     * 
    + * + * + * .google.cloud.tpu.v2alpha1.UpcomingMaintenance upcoming_maintenance = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpcomingMaintenance( + com.google.cloud.tpu.v2alpha1.UpcomingMaintenance value) { + if (upcomingMaintenanceBuilder_ == null) { + if (((bitField0_ & 0x08000000) != 0) + && upcomingMaintenance_ != null + && upcomingMaintenance_ + != com.google.cloud.tpu.v2alpha1.UpcomingMaintenance.getDefaultInstance()) { + getUpcomingMaintenanceBuilder().mergeFrom(value); + } else { + upcomingMaintenance_ = value; + } + } else { + upcomingMaintenanceBuilder_.mergeFrom(value); + } + if (upcomingMaintenance_ != null) { + bitField0_ |= 0x08000000; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Output only. Upcoming maintenance on this TPU node.
    +     * 
    + * + * + * .google.cloud.tpu.v2alpha1.UpcomingMaintenance upcoming_maintenance = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpcomingMaintenance() { + bitField0_ = (bitField0_ & ~0x08000000); + upcomingMaintenance_ = null; + if (upcomingMaintenanceBuilder_ != null) { + upcomingMaintenanceBuilder_.dispose(); + upcomingMaintenanceBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Upcoming maintenance on this TPU node.
    +     * 
    + * + * + * .google.cloud.tpu.v2alpha1.UpcomingMaintenance upcoming_maintenance = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.tpu.v2alpha1.UpcomingMaintenance.Builder + getUpcomingMaintenanceBuilder() { + bitField0_ |= 0x08000000; + onChanged(); + return getUpcomingMaintenanceFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Output only. Upcoming maintenance on this TPU node.
    +     * 
    + * + * + * .google.cloud.tpu.v2alpha1.UpcomingMaintenance upcoming_maintenance = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.tpu.v2alpha1.UpcomingMaintenanceOrBuilder + getUpcomingMaintenanceOrBuilder() { + if (upcomingMaintenanceBuilder_ != null) { + return upcomingMaintenanceBuilder_.getMessageOrBuilder(); + } else { + return upcomingMaintenance_ == null + ? com.google.cloud.tpu.v2alpha1.UpcomingMaintenance.getDefaultInstance() + : upcomingMaintenance_; + } + } + /** + * + * + *
    +     * Output only. Upcoming maintenance on this TPU node.
    +     * 
    + * + * + * .google.cloud.tpu.v2alpha1.UpcomingMaintenance upcoming_maintenance = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.UpcomingMaintenance, + com.google.cloud.tpu.v2alpha1.UpcomingMaintenance.Builder, + com.google.cloud.tpu.v2alpha1.UpcomingMaintenanceOrBuilder> + getUpcomingMaintenanceFieldBuilder() { + if (upcomingMaintenanceBuilder_ == null) { + upcomingMaintenanceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.UpcomingMaintenance, + com.google.cloud.tpu.v2alpha1.UpcomingMaintenance.Builder, + com.google.cloud.tpu.v2alpha1.UpcomingMaintenanceOrBuilder>( + getUpcomingMaintenance(), getParentForChildren(), isClean()); + upcomingMaintenance_ = null; + } + return upcomingMaintenanceBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NodeOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NodeOrBuilder.java index bd8cb1a24332..b6fe7517e23d 100644 --- a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NodeOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NodeOrBuilder.java @@ -188,7 +188,9 @@ public interface NodeOrBuilder * * *
    -   * Network configurations for the TPU node.
    +   * Network configurations for the TPU node. network_config and network_configs
    +   * are mutually exclusive, you can only specify one of them. If both are
    +   * specified, an error will be returned.
        * 
    * * .google.cloud.tpu.v2alpha1.NetworkConfig network_config = 36; @@ -200,7 +202,9 @@ public interface NodeOrBuilder * * *
    -   * Network configurations for the TPU node.
    +   * Network configurations for the TPU node. network_config and network_configs
    +   * are mutually exclusive, you can only specify one of them. If both are
    +   * specified, an error will be returned.
        * 
    * * .google.cloud.tpu.v2alpha1.NetworkConfig network_config = 36; @@ -212,13 +216,92 @@ public interface NodeOrBuilder * * *
    -   * Network configurations for the TPU node.
    +   * Network configurations for the TPU node. network_config and network_configs
    +   * are mutually exclusive, you can only specify one of them. If both are
    +   * specified, an error will be returned.
        * 
    * * .google.cloud.tpu.v2alpha1.NetworkConfig network_config = 36; */ com.google.cloud.tpu.v2alpha1.NetworkConfigOrBuilder getNetworkConfigOrBuilder(); + /** + * + * + *
    +   * Optional. Repeated network configurations for the TPU node. This field is
    +   * used to specify multiple networks configs for the TPU node. network_config
    +   * and network_configs are mutually exclusive, you can only specify one of
    +   * them. If both are specified, an error will be returned.
    +   * 
    + * + * + * repeated .google.cloud.tpu.v2alpha1.NetworkConfig network_configs = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getNetworkConfigsList(); + /** + * + * + *
    +   * Optional. Repeated network configurations for the TPU node. This field is
    +   * used to specify multiple networks configs for the TPU node. network_config
    +   * and network_configs are mutually exclusive, you can only specify one of
    +   * them. If both are specified, an error will be returned.
    +   * 
    + * + * + * repeated .google.cloud.tpu.v2alpha1.NetworkConfig network_configs = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.tpu.v2alpha1.NetworkConfig getNetworkConfigs(int index); + /** + * + * + *
    +   * Optional. Repeated network configurations for the TPU node. This field is
    +   * used to specify multiple networks configs for the TPU node. network_config
    +   * and network_configs are mutually exclusive, you can only specify one of
    +   * them. If both are specified, an error will be returned.
    +   * 
    + * + * + * repeated .google.cloud.tpu.v2alpha1.NetworkConfig network_configs = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getNetworkConfigsCount(); + /** + * + * + *
    +   * Optional. Repeated network configurations for the TPU node. This field is
    +   * used to specify multiple networks configs for the TPU node. network_config
    +   * and network_configs are mutually exclusive, you can only specify one of
    +   * them. If both are specified, an error will be returned.
    +   * 
    + * + * + * repeated .google.cloud.tpu.v2alpha1.NetworkConfig network_configs = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getNetworkConfigsOrBuilderList(); + /** + * + * + *
    +   * Optional. Repeated network configurations for the TPU node. This field is
    +   * used to specify multiple networks configs for the TPU node. network_config
    +   * and network_configs are mutually exclusive, you can only specify one of
    +   * them. If both are specified, an error will be returned.
    +   * 
    + * + * + * repeated .google.cloud.tpu.v2alpha1.NetworkConfig network_configs = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.tpu.v2alpha1.NetworkConfigOrBuilder getNetworkConfigsOrBuilder(int index); + /** * * @@ -909,6 +992,19 @@ java.lang.String getMetadataOrDefault( */ boolean getMultisliceNode(); + /** + * + * + *
    +   * Optional. Whether Autocheckpoint is enabled.
    +   * 
    + * + * bool autocheckpoint_enabled = 48 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The autocheckpointEnabled. + */ + boolean getAutocheckpointEnabled(); + /** * * @@ -949,4 +1045,45 @@ java.lang.String getMetadataOrDefault( * */ com.google.cloud.tpu.v2alpha1.BootDiskConfigOrBuilder getBootDiskConfigOrBuilder(); + + /** + * + * + *
    +   * Output only. Upcoming maintenance on this TPU node.
    +   * 
    + * + * + * .google.cloud.tpu.v2alpha1.UpcomingMaintenance upcoming_maintenance = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the upcomingMaintenance field is set. + */ + boolean hasUpcomingMaintenance(); + /** + * + * + *
    +   * Output only. Upcoming maintenance on this TPU node.
    +   * 
    + * + * + * .google.cloud.tpu.v2alpha1.UpcomingMaintenance upcoming_maintenance = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The upcomingMaintenance. + */ + com.google.cloud.tpu.v2alpha1.UpcomingMaintenance getUpcomingMaintenance(); + /** + * + * + *
    +   * Output only. Upcoming maintenance on this TPU node.
    +   * 
    + * + * + * .google.cloud.tpu.v2alpha1.UpcomingMaintenance upcoming_maintenance = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.tpu.v2alpha1.UpcomingMaintenanceOrBuilder getUpcomingMaintenanceOrBuilder(); } diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/PerformMaintenanceQueuedResourceRequest.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/PerformMaintenanceQueuedResourceRequest.java new file mode 100644 index 000000000000..3d48aeaa5184 --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/PerformMaintenanceQueuedResourceRequest.java @@ -0,0 +1,939 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v2alpha1/cloud_tpu.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.tpu.v2alpha1; + +/** + * + * + *
    + * Request for
    + * [PerformMaintenanceQueuedResource][google.cloud.tpu.v2alpha1.Tpu.PerformMaintenanceQueuedResource].
    + * 
    + * + * Protobuf type {@code google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest} + */ +public final class PerformMaintenanceQueuedResourceRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest) + PerformMaintenanceQueuedResourceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use PerformMaintenanceQueuedResourceRequest.newBuilder() to construct. + private PerformMaintenanceQueuedResourceRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PerformMaintenanceQueuedResourceRequest() { + name_ = ""; + nodeNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PerformMaintenanceQueuedResourceRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_PerformMaintenanceQueuedResourceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_PerformMaintenanceQueuedResourceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest.class, + com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Required. The name of the QueuedResource which holds the nodes to perform
    +   * maintenance on.
    +   * 
    + * + * + * 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 QueuedResource which holds the nodes to perform
    +   * maintenance on.
    +   * 
    + * + * + * 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 NODE_NAMES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList nodeNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
    +   * The names of the nodes to perform maintenance on.
    +   * 
    + * + * repeated string node_names = 2; + * + * @return A list containing the nodeNames. + */ + public com.google.protobuf.ProtocolStringList getNodeNamesList() { + return nodeNames_; + } + /** + * + * + *
    +   * The names of the nodes to perform maintenance on.
    +   * 
    + * + * repeated string node_names = 2; + * + * @return The count of nodeNames. + */ + public int getNodeNamesCount() { + return nodeNames_.size(); + } + /** + * + * + *
    +   * The names of the nodes to perform maintenance on.
    +   * 
    + * + * repeated string node_names = 2; + * + * @param index The index of the element to return. + * @return The nodeNames at the given index. + */ + public java.lang.String getNodeNames(int index) { + return nodeNames_.get(index); + } + /** + * + * + *
    +   * The names of the nodes to perform maintenance on.
    +   * 
    + * + * repeated string node_names = 2; + * + * @param index The index of the value to return. + * @return The bytes of the nodeNames at the given index. + */ + public com.google.protobuf.ByteString getNodeNamesBytes(int index) { + return nodeNames_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + for (int i = 0; i < nodeNames_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nodeNames_.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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + { + int dataSize = 0; + for (int i = 0; i < nodeNames_.size(); i++) { + dataSize += computeStringSizeNoTag(nodeNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getNodeNamesList().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.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest)) { + return super.equals(obj); + } + com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest other = + (com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getNodeNamesList().equals(other.getNodeNamesList())) return false; + if (!getUnknownFields().equals(other.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 (getNodeNamesCount() > 0) { + hash = (37 * hash) + NODE_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getNodeNamesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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
    +   * [PerformMaintenanceQueuedResource][google.cloud.tpu.v2alpha1.Tpu.PerformMaintenanceQueuedResource].
    +   * 
    + * + * Protobuf type {@code google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest) + com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_PerformMaintenanceQueuedResourceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_PerformMaintenanceQueuedResourceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest.class, + com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest.Builder.class); + } + + // Construct using + // com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + nodeNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_PerformMaintenanceQueuedResourceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest + getDefaultInstanceForType() { + return com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest build() { + com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest buildPartial() { + com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest result = + new com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + nodeNames_.makeImmutable(); + result.nodeNames_ = nodeNames_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest) { + return mergeFrom( + (com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest other) { + if (other + == com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.nodeNames_.isEmpty()) { + if (nodeNames_.isEmpty()) { + nodeNames_ = other.nodeNames_; + bitField0_ |= 0x00000002; + } else { + ensureNodeNamesIsMutable(); + nodeNames_.addAll(other.nodeNames_); + } + 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: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNodeNamesIsMutable(); + nodeNames_.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 name_ = ""; + /** + * + * + *
    +     * Required. The name of the QueuedResource which holds the nodes to perform
    +     * maintenance on.
    +     * 
    + * + * + * 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 QueuedResource which holds the nodes to perform
    +     * maintenance on.
    +     * 
    + * + * + * 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 QueuedResource which holds the nodes to perform
    +     * maintenance on.
    +     * 
    + * + * + * 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 QueuedResource which holds the nodes to perform
    +     * maintenance on.
    +     * 
    + * + * + * 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 QueuedResource which holds the nodes to perform
    +     * maintenance on.
    +     * 
    + * + * + * 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.LazyStringArrayList nodeNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureNodeNamesIsMutable() { + if (!nodeNames_.isModifiable()) { + nodeNames_ = new com.google.protobuf.LazyStringArrayList(nodeNames_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
    +     * The names of the nodes to perform maintenance on.
    +     * 
    + * + * repeated string node_names = 2; + * + * @return A list containing the nodeNames. + */ + public com.google.protobuf.ProtocolStringList getNodeNamesList() { + nodeNames_.makeImmutable(); + return nodeNames_; + } + /** + * + * + *
    +     * The names of the nodes to perform maintenance on.
    +     * 
    + * + * repeated string node_names = 2; + * + * @return The count of nodeNames. + */ + public int getNodeNamesCount() { + return nodeNames_.size(); + } + /** + * + * + *
    +     * The names of the nodes to perform maintenance on.
    +     * 
    + * + * repeated string node_names = 2; + * + * @param index The index of the element to return. + * @return The nodeNames at the given index. + */ + public java.lang.String getNodeNames(int index) { + return nodeNames_.get(index); + } + /** + * + * + *
    +     * The names of the nodes to perform maintenance on.
    +     * 
    + * + * repeated string node_names = 2; + * + * @param index The index of the value to return. + * @return The bytes of the nodeNames at the given index. + */ + public com.google.protobuf.ByteString getNodeNamesBytes(int index) { + return nodeNames_.getByteString(index); + } + /** + * + * + *
    +     * The names of the nodes to perform maintenance on.
    +     * 
    + * + * repeated string node_names = 2; + * + * @param index The index to set the value at. + * @param value The nodeNames to set. + * @return This builder for chaining. + */ + public Builder setNodeNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeNamesIsMutable(); + nodeNames_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * The names of the nodes to perform maintenance on.
    +     * 
    + * + * repeated string node_names = 2; + * + * @param value The nodeNames to add. + * @return This builder for chaining. + */ + public Builder addNodeNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeNamesIsMutable(); + nodeNames_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * The names of the nodes to perform maintenance on.
    +     * 
    + * + * repeated string node_names = 2; + * + * @param values The nodeNames to add. + * @return This builder for chaining. + */ + public Builder addAllNodeNames(java.lang.Iterable values) { + ensureNodeNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodeNames_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * The names of the nodes to perform maintenance on.
    +     * 
    + * + * repeated string node_names = 2; + * + * @return This builder for chaining. + */ + public Builder clearNodeNames() { + nodeNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + /** + * + * + *
    +     * The names of the nodes to perform maintenance on.
    +     * 
    + * + * repeated string node_names = 2; + * + * @param value The bytes of the nodeNames to add. + * @return This builder for chaining. + */ + public Builder addNodeNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureNodeNamesIsMutable(); + nodeNames_.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.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest) + private static final com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest(); + } + + public static com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PerformMaintenanceQueuedResourceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/PerformMaintenanceQueuedResourceRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/PerformMaintenanceQueuedResourceRequestOrBuilder.java new file mode 100644 index 000000000000..83318ab4ab37 --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/PerformMaintenanceQueuedResourceRequestOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v2alpha1/cloud_tpu.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.tpu.v2alpha1; + +public interface PerformMaintenanceQueuedResourceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The name of the QueuedResource which holds the nodes to perform
    +   * maintenance on.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Required. The name of the QueuedResource which holds the nodes to perform
    +   * maintenance on.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * The names of the nodes to perform maintenance on.
    +   * 
    + * + * repeated string node_names = 2; + * + * @return A list containing the nodeNames. + */ + java.util.List getNodeNamesList(); + /** + * + * + *
    +   * The names of the nodes to perform maintenance on.
    +   * 
    + * + * repeated string node_names = 2; + * + * @return The count of nodeNames. + */ + int getNodeNamesCount(); + /** + * + * + *
    +   * The names of the nodes to perform maintenance on.
    +   * 
    + * + * repeated string node_names = 2; + * + * @param index The index of the element to return. + * @return The nodeNames at the given index. + */ + java.lang.String getNodeNames(int index); + /** + * + * + *
    +   * The names of the nodes to perform maintenance on.
    +   * 
    + * + * repeated string node_names = 2; + * + * @param index The index of the value to return. + * @return The bytes of the nodeNames at the given index. + */ + com.google.protobuf.ByteString getNodeNamesBytes(int index); +} diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/PerformMaintenanceRequest.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/PerformMaintenanceRequest.java new file mode 100644 index 000000000000..75e9f971ad1a --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/PerformMaintenanceRequest.java @@ -0,0 +1,642 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v2alpha1/cloud_tpu.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.tpu.v2alpha1; + +/** + * + * + *
    + * Request for
    + * [PerformMaintenance][google.cloud.tpu.v2alpha1.Tpu.PerformMaintenance].
    + * 
    + * + * Protobuf type {@code google.cloud.tpu.v2alpha1.PerformMaintenanceRequest} + */ +public final class PerformMaintenanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.PerformMaintenanceRequest) + PerformMaintenanceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use PerformMaintenanceRequest.newBuilder() to construct. + private PerformMaintenanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PerformMaintenanceRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PerformMaintenanceRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_PerformMaintenanceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_PerformMaintenanceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest.class, + com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * Required. The resource 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. The resource 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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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.tpu.v2alpha1.PerformMaintenanceRequest)) { + return super.equals(obj); + } + com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest other = + (com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest) 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.tpu.v2alpha1.PerformMaintenanceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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
    +   * [PerformMaintenance][google.cloud.tpu.v2alpha1.Tpu.PerformMaintenance].
    +   * 
    + * + * Protobuf type {@code google.cloud.tpu.v2alpha1.PerformMaintenanceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.PerformMaintenanceRequest) + com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_PerformMaintenanceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_PerformMaintenanceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest.class, + com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest.Builder.class); + } + + // Construct using com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest.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.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_PerformMaintenanceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest getDefaultInstanceForType() { + return com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest build() { + com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest buildPartial() { + com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest result = + new com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest 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.tpu.v2alpha1.PerformMaintenanceRequest) { + return mergeFrom((com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest other) { + if (other == com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest.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.
    +     * 
    + * + * + * 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.
    +     * 
    + * + * + * 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.
    +     * 
    + * + * + * 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.
    +     * 
    + * + * + * 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.
    +     * 
    + * + * + * 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.tpu.v2alpha1.PerformMaintenanceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.PerformMaintenanceRequest) + private static final com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest(); + } + + public static com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PerformMaintenanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/PerformMaintenanceRequestOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/PerformMaintenanceRequestOrBuilder.java new file mode 100644 index 000000000000..d0ce94d7547a --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/PerformMaintenanceRequestOrBuilder.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v2alpha1/cloud_tpu.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.tpu.v2alpha1; + +public interface PerformMaintenanceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.PerformMaintenanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The resource name.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Required. The resource name.
    +   * 
    + * + * + * 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-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResource.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResource.java index e45c8d45fa34..564676016d33 100644 --- a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResource.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResource.java @@ -412,6 +412,36 @@ public interface MultiNodeParamsOrBuilder * @return The bytes for nodeIdPrefix. */ com.google.protobuf.ByteString getNodeIdPrefixBytes(); + + /** + * + * + *
    +         * Optional. The workload type for the multi-node request.
    +         * 
    + * + * + * .google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.MultiNodeParams.WorkloadType workload_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for workloadType. + */ + int getWorkloadTypeValue(); + /** + * + * + *
    +         * Optional. The workload type for the multi-node request.
    +         * 
    + * + * + * .google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.MultiNodeParams.WorkloadType workload_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The workloadType. + */ + com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.MultiNodeParams.WorkloadType + getWorkloadType(); } /** * @@ -436,6 +466,7 @@ private MultiNodeParams(com.google.protobuf.GeneratedMessageV3.Builder builde private MultiNodeParams() { nodeIdPrefix_ = ""; + workloadType_ = 0; } @java.lang.Override @@ -460,6 +491,175 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .class); } + /** + * + * + *
    +         * The workload type for the multi-node request.
    +         * 
    + * + * Protobuf enum {@code + * google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.MultiNodeParams.WorkloadType} + */ + public enum WorkloadType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +           * Not specified.
    +           * 
    + * + * WORKLOAD_TYPE_UNSPECIFIED = 0; + */ + WORKLOAD_TYPE_UNSPECIFIED(0), + /** + * + * + *
    +           * All of the nodes are available most of the time.
    +           * Recommended for training workloads.
    +           * 
    + * + * THROUGHPUT_OPTIMIZED = 1; + */ + THROUGHPUT_OPTIMIZED(1), + /** + * + * + *
    +           * Most of the nodes are available all of the time.
    +           * Recommended for serving workloads.
    +           * 
    + * + * AVAILABILITY_OPTIMIZED = 2; + */ + AVAILABILITY_OPTIMIZED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +           * Not specified.
    +           * 
    + * + * WORKLOAD_TYPE_UNSPECIFIED = 0; + */ + public static final int WORKLOAD_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +           * All of the nodes are available most of the time.
    +           * Recommended for training workloads.
    +           * 
    + * + * THROUGHPUT_OPTIMIZED = 1; + */ + public static final int THROUGHPUT_OPTIMIZED_VALUE = 1; + /** + * + * + *
    +           * Most of the nodes are available all of the time.
    +           * Recommended for serving workloads.
    +           * 
    + * + * AVAILABILITY_OPTIMIZED = 2; + */ + public static final int AVAILABILITY_OPTIMIZED_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 WorkloadType 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 WorkloadType forNumber(int value) { + switch (value) { + case 0: + return WORKLOAD_TYPE_UNSPECIFIED; + case 1: + return THROUGHPUT_OPTIMIZED; + case 2: + return AVAILABILITY_OPTIMIZED; + 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 WorkloadType findValueByNumber(int number) { + return WorkloadType.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.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.MultiNodeParams + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final WorkloadType[] VALUES = values(); + + public static WorkloadType 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 WorkloadType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.MultiNodeParams.WorkloadType) + } + public static final int NODE_COUNT_FIELD_NUMBER = 1; private int nodeCount_ = 0; /** @@ -539,6 +739,52 @@ public com.google.protobuf.ByteString getNodeIdPrefixBytes() { } } + public static final int WORKLOAD_TYPE_FIELD_NUMBER = 4; + private int workloadType_ = 0; + /** + * + * + *
    +         * Optional. The workload type for the multi-node request.
    +         * 
    + * + * + * .google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.MultiNodeParams.WorkloadType workload_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for workloadType. + */ + @java.lang.Override + public int getWorkloadTypeValue() { + return workloadType_; + } + /** + * + * + *
    +         * Optional. The workload type for the multi-node request.
    +         * 
    + * + * + * .google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.MultiNodeParams.WorkloadType workload_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The workloadType. + */ + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.MultiNodeParams + .WorkloadType + getWorkloadType() { + com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.MultiNodeParams.WorkloadType + result = + com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.MultiNodeParams + .WorkloadType.forNumber(workloadType_); + return result == null + ? com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.MultiNodeParams + .WorkloadType.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -560,6 +806,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeIdPrefix_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nodeIdPrefix_); } + if (workloadType_ + != com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.MultiNodeParams + .WorkloadType.WORKLOAD_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, workloadType_); + } getUnknownFields().writeTo(output); } @@ -575,6 +827,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeIdPrefix_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nodeIdPrefix_); } + if (workloadType_ + != com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.MultiNodeParams + .WorkloadType.WORKLOAD_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, workloadType_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -595,6 +853,7 @@ public boolean equals(final java.lang.Object obj) { if (getNodeCount() != other.getNodeCount()) return false; if (!getNodeIdPrefix().equals(other.getNodeIdPrefix())) return false; + if (workloadType_ != other.workloadType_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -610,6 +869,8 @@ public int hashCode() { hash = (53 * hash) + getNodeCount(); hash = (37 * hash) + NODE_ID_PREFIX_FIELD_NUMBER; hash = (53 * hash) + getNodeIdPrefix().hashCode(); + hash = (37 * hash) + WORKLOAD_TYPE_FIELD_NUMBER; + hash = (53 * hash) + workloadType_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -769,6 +1030,7 @@ public Builder clear() { bitField0_ = 0; nodeCount_ = 0; nodeIdPrefix_ = ""; + workloadType_ = 0; return this; } @@ -816,6 +1078,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000002) != 0)) { result.nodeIdPrefix_ = nodeIdPrefix_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.workloadType_ = workloadType_; + } } @java.lang.Override @@ -880,6 +1145,9 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; onChanged(); } + if (other.workloadType_ != 0) { + setWorkloadTypeValue(other.getWorkloadTypeValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -918,6 +1186,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 32: + { + workloadType_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1122,6 +1396,115 @@ public Builder setNodeIdPrefixBytes(com.google.protobuf.ByteString value) { return this; } + private int workloadType_ = 0; + /** + * + * + *
    +           * Optional. The workload type for the multi-node request.
    +           * 
    + * + * + * .google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.MultiNodeParams.WorkloadType workload_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for workloadType. + */ + @java.lang.Override + public int getWorkloadTypeValue() { + return workloadType_; + } + /** + * + * + *
    +           * Optional. The workload type for the multi-node request.
    +           * 
    + * + * + * .google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.MultiNodeParams.WorkloadType workload_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for workloadType to set. + * @return This builder for chaining. + */ + public Builder setWorkloadTypeValue(int value) { + workloadType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +           * Optional. The workload type for the multi-node request.
    +           * 
    + * + * + * .google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.MultiNodeParams.WorkloadType workload_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The workloadType. + */ + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.MultiNodeParams + .WorkloadType + getWorkloadType() { + com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.MultiNodeParams.WorkloadType + result = + com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.MultiNodeParams + .WorkloadType.forNumber(workloadType_); + return result == null + ? com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.MultiNodeParams + .WorkloadType.UNRECOGNIZED + : result; + } + /** + * + * + *
    +           * Optional. The workload type for the multi-node request.
    +           * 
    + * + * + * .google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.MultiNodeParams.WorkloadType workload_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The workloadType to set. + * @return This builder for chaining. + */ + public Builder setWorkloadType( + com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.MultiNodeParams.WorkloadType + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + workloadType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +           * Optional. The workload type for the multi-node request.
    +           * 
    + * + * + * .google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec.MultiNodeParams.WorkloadType workload_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearWorkloadType() { + bitField0_ = (bitField0_ & ~0x00000004); + workloadType_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -7609,6 +7992,55 @@ public com.google.protobuf.ByteString getNameBytes() { } } + public static final int CREATE_TIME_FIELD_NUMBER = 11; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
    +   * Output only. The time when the QueuedResource was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 11 [(.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. The time when the QueuedResource was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 11 [(.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. The time when the QueuedResource was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 11 [(.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 TPU_FIELD_NUMBER = 2; /** * @@ -7834,7 +8266,7 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.SpotOrBuilder getSpotOrBuild */ @java.lang.Override public boolean hasQueueingPolicy() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -7887,7 +8319,7 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy getQueueingPo */ @java.lang.Override public boolean hasState() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -8005,10 +8437,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (tierCase_ == 4) { output.writeMessage(4, (com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed) tier_); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(5, getQueueingPolicy()); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(6, getState()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reservationName_)) { @@ -8017,6 +8449,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (tierCase_ == 9) { output.writeMessage(9, (com.google.cloud.tpu.v2alpha1.QueuedResource.Spot) tier_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(11, getCreateTime()); + } getUnknownFields().writeTo(output); } @@ -8044,10 +8479,10 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 4, (com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed) tier_); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getQueueingPolicy()); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getState()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reservationName_)) { @@ -8058,6 +8493,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 9, (com.google.cloud.tpu.v2alpha1.QueuedResource.Spot) tier_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getCreateTime()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -8075,6 +8513,10 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.tpu.v2alpha1.QueuedResource) obj; if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } if (hasQueueingPolicy() != other.hasQueueingPolicy()) return false; if (hasQueueingPolicy()) { if (!getQueueingPolicy().equals(other.getQueueingPolicy())) return false; @@ -8119,6 +8561,10 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } if (hasQueueingPolicy()) { hash = (37 * hash) + QUEUEING_POLICY_FIELD_NUMBER; hash = (53 * hash) + getQueueingPolicy().hashCode(); @@ -8294,6 +8740,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); getQueueingPolicyFieldBuilder(); getStateFieldBuilder(); } @@ -8304,6 +8751,11 @@ public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } if (tpuBuilder_ != null) { tpuBuilder_.clear(); } @@ -8372,16 +8824,20 @@ private void buildPartial0(com.google.cloud.tpu.v2alpha1.QueuedResource result) result.name_ = name_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000020) != 0)) { - result.queueingPolicy_ = - queueingPolicyBuilder_ == null ? queueingPolicy_ : queueingPolicyBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.state_ = stateBuilder_ == null ? state_ : stateBuilder_.build(); + result.queueingPolicy_ = + queueingPolicyBuilder_ == null ? queueingPolicy_ : queueingPolicyBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000080) != 0)) { + result.state_ = stateBuilder_ == null ? state_ : stateBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000100) != 0)) { result.reservationName_ = reservationName_; } result.bitField0_ |= to_bitField0_; @@ -8456,6 +8912,9 @@ public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.QueuedResource other) { bitField0_ |= 0x00000001; onChanged(); } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } if (other.hasQueueingPolicy()) { mergeQueueingPolicy(other.getQueueingPolicy()); } @@ -8464,7 +8923,7 @@ public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.QueuedResource other) { } if (!other.getReservationName().isEmpty()) { reservationName_ = other.reservationName_; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } switch (other.getResourceCase()) { @@ -8552,19 +9011,19 @@ public Builder mergeFrom( case 42: { input.readMessage(getQueueingPolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 42 case 50: { input.readMessage(getStateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 50 case 66: { reservationName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 66 case 74: @@ -8573,6 +9032,12 @@ public Builder mergeFrom( tierCase_ = 9; break; } // case 74 + case 90: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -8736,6 +9201,209 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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. The time when the QueuedResource was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * Output only. The time when the QueuedResource was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 11 [(.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. The time when the QueuedResource was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 11 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The time when the QueuedResource was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 11 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The time when the QueuedResource was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Output only. The time when the QueuedResource was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The time when the QueuedResource was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Output only. The time when the QueuedResource was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 11 [(.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. The time when the QueuedResource was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 11 [(.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.SingleFieldBuilderV3< com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu, com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.Builder, @@ -9612,7 +10280,7 @@ public com.google.cloud.tpu.v2alpha1.QueuedResource.SpotOrBuilder getSpotOrBuild * @return Whether the queueingPolicy field is set. */ public boolean hasQueueingPolicy() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -9653,7 +10321,7 @@ public Builder setQueueingPolicy( } else { queueingPolicyBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -9673,7 +10341,7 @@ public Builder setQueueingPolicy( } else { queueingPolicyBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -9689,7 +10357,7 @@ public Builder setQueueingPolicy( public Builder mergeQueueingPolicy( com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy value) { if (queueingPolicyBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000040) != 0) && queueingPolicy_ != null && queueingPolicy_ != com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy @@ -9702,7 +10370,7 @@ public Builder mergeQueueingPolicy( queueingPolicyBuilder_.mergeFrom(value); } if (queueingPolicy_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -9717,7 +10385,7 @@ public Builder mergeQueueingPolicy( * .google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy queueing_policy = 5; */ public Builder clearQueueingPolicy() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); queueingPolicy_ = null; if (queueingPolicyBuilder_ != null) { queueingPolicyBuilder_.dispose(); @@ -9737,7 +10405,7 @@ public Builder clearQueueingPolicy() { */ public com.google.cloud.tpu.v2alpha1.QueuedResource.QueueingPolicy.Builder getQueueingPolicyBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return getQueueingPolicyFieldBuilder().getBuilder(); } @@ -9806,7 +10474,7 @@ public Builder clearQueueingPolicy() { * @return Whether the state field is set. */ public boolean hasState() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -9850,7 +10518,7 @@ public Builder setState(com.google.cloud.tpu.v2alpha1.QueuedResourceState value) } else { stateBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -9872,7 +10540,7 @@ public Builder setState( } else { stateBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -9889,7 +10557,7 @@ public Builder setState( */ public Builder mergeState(com.google.cloud.tpu.v2alpha1.QueuedResourceState value) { if (stateBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) + if (((bitField0_ & 0x00000080) != 0) && state_ != null && state_ != com.google.cloud.tpu.v2alpha1.QueuedResourceState.getDefaultInstance()) { getStateBuilder().mergeFrom(value); @@ -9900,7 +10568,7 @@ public Builder mergeState(com.google.cloud.tpu.v2alpha1.QueuedResourceState valu stateBuilder_.mergeFrom(value); } if (state_ != null) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -9917,7 +10585,7 @@ public Builder mergeState(com.google.cloud.tpu.v2alpha1.QueuedResourceState valu * */ public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); state_ = null; if (stateBuilder_ != null) { stateBuilder_.dispose(); @@ -9938,7 +10606,7 @@ public Builder clearState() { * */ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.Builder getStateBuilder() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return getStateFieldBuilder().getBuilder(); } @@ -10055,7 +10723,7 @@ public Builder setReservationName(java.lang.String value) { throw new NullPointerException(); } reservationName_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -10073,7 +10741,7 @@ public Builder setReservationName(java.lang.String value) { */ public Builder clearReservationName() { reservationName_ = getDefaultInstance().getReservationName(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -10096,7 +10764,7 @@ public Builder setReservationNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); reservationName_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResourceOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResourceOrBuilder.java index 2b24ed774286..0bd17139295e 100644 --- a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResourceOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResourceOrBuilder.java @@ -53,6 +53,44 @@ public interface QueuedResourceOrBuilder */ com.google.protobuf.ByteString getNameBytes(); + /** + * + * + *
    +   * Output only. The time when the QueuedResource was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
    +   * Output only. The time when the QueuedResource was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
    +   * Output only. The time when the QueuedResource was created.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + /** * * diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResourceState.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResourceState.java index dc27dcf42894..cd7e2f005173 100644 --- a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResourceState.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResourceState.java @@ -4856,7 +4856,9 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.SuspendedData getSuspen * * *
    -   * Output only. The initiator of the QueuedResources's current state.
    +   * Output only. The initiator of the QueuedResources's current state. Used to
    +   * indicate whether the SUSPENDING/SUSPENDED state was initiated by the user
    +   * or the service.
        * 
    * * @@ -4873,7 +4875,9 @@ public int getStateInitiatorValue() { * * *
    -   * Output only. The initiator of the QueuedResources's current state.
    +   * Output only. The initiator of the QueuedResources's current state. Used to
    +   * indicate whether the SUSPENDING/SUSPENDED state was initiated by the user
    +   * or the service.
        * 
    * * @@ -7416,7 +7420,9 @@ public Builder clearSuspendedData() { * * *
    -     * Output only. The initiator of the QueuedResources's current state.
    +     * Output only. The initiator of the QueuedResources's current state. Used to
    +     * indicate whether the SUSPENDING/SUSPENDED state was initiated by the user
    +     * or the service.
          * 
    * * @@ -7433,7 +7439,9 @@ public int getStateInitiatorValue() { * * *
    -     * Output only. The initiator of the QueuedResources's current state.
    +     * Output only. The initiator of the QueuedResources's current state. Used to
    +     * indicate whether the SUSPENDING/SUSPENDED state was initiated by the user
    +     * or the service.
          * 
    * * @@ -7453,7 +7461,9 @@ public Builder setStateInitiatorValue(int value) { * * *
    -     * Output only. The initiator of the QueuedResources's current state.
    +     * Output only. The initiator of the QueuedResources's current state. Used to
    +     * indicate whether the SUSPENDING/SUSPENDED state was initiated by the user
    +     * or the service.
          * 
    * * @@ -7475,7 +7485,9 @@ public com.google.cloud.tpu.v2alpha1.QueuedResourceState.StateInitiator getState * * *
    -     * Output only. The initiator of the QueuedResources's current state.
    +     * Output only. The initiator of the QueuedResources's current state. Used to
    +     * indicate whether the SUSPENDING/SUSPENDED state was initiated by the user
    +     * or the service.
          * 
    * * @@ -7499,7 +7511,9 @@ public Builder setStateInitiator( * * *
    -     * Output only. The initiator of the QueuedResources's current state.
    +     * Output only. The initiator of the QueuedResources's current state. Used to
    +     * indicate whether the SUSPENDING/SUSPENDED state was initiated by the user
    +     * or the service.
          * 
    * * diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResourceStateOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResourceStateOrBuilder.java index 285c7b3452a7..09086158026e 100644 --- a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResourceStateOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResourceStateOrBuilder.java @@ -342,7 +342,9 @@ public interface QueuedResourceStateOrBuilder * * *
    -   * Output only. The initiator of the QueuedResources's current state.
    +   * Output only. The initiator of the QueuedResources's current state. Used to
    +   * indicate whether the SUSPENDING/SUSPENDED state was initiated by the user
    +   * or the service.
        * 
    * * @@ -356,7 +358,9 @@ public interface QueuedResourceStateOrBuilder * * *
    -   * Output only. The initiator of the QueuedResources's current state.
    +   * Output only. The initiator of the QueuedResources's current state. Used to
    +   * indicate whether the SUSPENDING/SUSPENDED state was initiated by the user
    +   * or the service.
        * 
    * * diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/Reservation.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/Reservation.java new file mode 100644 index 000000000000..57c9ee1ab88b --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/Reservation.java @@ -0,0 +1,3684 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v2alpha1/cloud_tpu.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.tpu.v2alpha1; + +/** + * + * + *
    + * A reservation describes the amount of a resource 'allotted' for a defined
    + * period of time.
    + * 
    + * + * Protobuf type {@code google.cloud.tpu.v2alpha1.Reservation} + */ +public final class Reservation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.Reservation) + ReservationOrBuilder { + private static final long serialVersionUID = 0L; + // Use Reservation.newBuilder() to construct. + private Reservation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Reservation() { + name_ = ""; + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Reservation(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_Reservation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_Reservation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2alpha1.Reservation.class, + com.google.cloud.tpu.v2alpha1.Reservation.Builder.class); + } + + /** + * + * + *
    +   * State of the Reservation.
    +   * 
    + * + * Protobuf enum {@code google.cloud.tpu.v2alpha1.Reservation.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * The Reservation state is unspecified.
    +     * 
    + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
    +     * The Reservation has been approved.
    +     * 
    + * + * APPROVED = 3; + */ + APPROVED(3), + /** + * + * + *
    +     * The Reservation is being provisioned.
    +     * 
    + * + * PROVISIONING = 4; + */ + PROVISIONING(4), + /** + * + * + *
    +     * The Reservation is active.
    +     * 
    + * + * ACTIVE = 5; + */ + ACTIVE(5), + /** + * + * + *
    +     * The Reservation is being deprovisioned.
    +     * 
    + * + * DEPROVISIONING = 6; + */ + DEPROVISIONING(6), + /** + * + * + *
    +     * The Reservation is past its end date.
    +     * 
    + * + * EXPIRED = 7; + */ + EXPIRED(7), + /** + * + * + *
    +     * The Reservation encountered a failure during mutation.
    +     * 
    + * + * FAILED = 8; + */ + FAILED(8), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * The Reservation state is unspecified.
    +     * 
    + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +     * The Reservation has been approved.
    +     * 
    + * + * APPROVED = 3; + */ + public static final int APPROVED_VALUE = 3; + /** + * + * + *
    +     * The Reservation is being provisioned.
    +     * 
    + * + * PROVISIONING = 4; + */ + public static final int PROVISIONING_VALUE = 4; + /** + * + * + *
    +     * The Reservation is active.
    +     * 
    + * + * ACTIVE = 5; + */ + public static final int ACTIVE_VALUE = 5; + /** + * + * + *
    +     * The Reservation is being deprovisioned.
    +     * 
    + * + * DEPROVISIONING = 6; + */ + public static final int DEPROVISIONING_VALUE = 6; + /** + * + * + *
    +     * The Reservation is past its end date.
    +     * 
    + * + * EXPIRED = 7; + */ + public static final int EXPIRED_VALUE = 7; + /** + * + * + *
    +     * The Reservation encountered a failure during mutation.
    +     * 
    + * + * FAILED = 8; + */ + public static final int FAILED_VALUE = 8; + + 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 3: + return APPROVED; + case 4: + return PROVISIONING; + case 5: + return ACTIVE; + case 6: + return DEPROVISIONING; + case 7: + return EXPIRED; + case 8: + return FAILED; + 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.tpu.v2alpha1.Reservation.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.tpu.v2alpha1.Reservation.State) + } + + public interface StandardOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.Reservation.Standard) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * The size of the reservation, in the units specified in the
    +     * 'capacity_units' field.
    +     * 
    + * + * int32 size = 1; + * + * @return The size. + */ + int getSize(); + + /** + * + * + *
    +     * Capacity units this reservation is measured in.
    +     * 
    + * + * .google.cloud.tpu.v2alpha1.Reservation.Standard.CapacityUnits capacity_units = 2; + * + * + * @return The enum numeric value on the wire for capacityUnits. + */ + int getCapacityUnitsValue(); + /** + * + * + *
    +     * Capacity units this reservation is measured in.
    +     * 
    + * + * .google.cloud.tpu.v2alpha1.Reservation.Standard.CapacityUnits capacity_units = 2; + * + * + * @return The capacityUnits. + */ + com.google.cloud.tpu.v2alpha1.Reservation.Standard.CapacityUnits getCapacityUnits(); + + /** + * + * + *
    +     * The resource type of the reservation.
    +     * 
    + * + * string resource_type = 3; + * + * @return The resourceType. + */ + java.lang.String getResourceType(); + /** + * + * + *
    +     * The resource type of the reservation.
    +     * 
    + * + * string resource_type = 3; + * + * @return The bytes for resourceType. + */ + com.google.protobuf.ByteString getResourceTypeBytes(); + + /** + * + * + *
    +     * The start and end time of the reservation.
    +     * 
    + * + * .google.type.Interval interval = 4; + * + * @return Whether the interval field is set. + */ + boolean hasInterval(); + /** + * + * + *
    +     * The start and end time of the reservation.
    +     * 
    + * + * .google.type.Interval interval = 4; + * + * @return The interval. + */ + com.google.type.Interval getInterval(); + /** + * + * + *
    +     * The start and end time of the reservation.
    +     * 
    + * + * .google.type.Interval interval = 4; + */ + com.google.type.IntervalOrBuilder getIntervalOrBuilder(); + + /** + * + * + *
    +     * The current usage of the reservation.
    +     * 
    + * + * .google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5; + * + * @return Whether the usage field is set. + */ + boolean hasUsage(); + /** + * + * + *
    +     * The current usage of the reservation.
    +     * 
    + * + * .google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5; + * + * @return The usage. + */ + com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage getUsage(); + /** + * + * + *
    +     * The current usage of the reservation.
    +     * 
    + * + * .google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5; + */ + com.google.cloud.tpu.v2alpha1.Reservation.Standard.UsageOrBuilder getUsageOrBuilder(); + } + /** + * + * + *
    +   * Details of a standard reservation.
    +   * 
    + * + * Protobuf type {@code google.cloud.tpu.v2alpha1.Reservation.Standard} + */ + public static final class Standard extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.Reservation.Standard) + StandardOrBuilder { + private static final long serialVersionUID = 0L; + // Use Standard.newBuilder() to construct. + private Standard(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Standard() { + capacityUnits_ = 0; + resourceType_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Standard(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_Reservation_Standard_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_Reservation_Standard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2alpha1.Reservation.Standard.class, + com.google.cloud.tpu.v2alpha1.Reservation.Standard.Builder.class); + } + + /** + * + * + *
    +     * Units in which capacity for a reservation is measured.
    +     * 
    + * + * Protobuf enum {@code google.cloud.tpu.v2alpha1.Reservation.Standard.CapacityUnits} + */ + public enum CapacityUnits implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +       * The capacity units is not known/set.
    +       * 
    + * + * CAPACITY_UNITS_UNSPECIFIED = 0; + */ + CAPACITY_UNITS_UNSPECIFIED(0), + /** + * + * + *
    +       * The capacity unit is set to CORES.
    +       * 
    + * + * CORES = 1; + */ + CORES(1), + /** + * + * + *
    +       * The capacity unit is set to CHIPS.
    +       * 
    + * + * CHIPS = 2; + */ + CHIPS(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +       * The capacity units is not known/set.
    +       * 
    + * + * CAPACITY_UNITS_UNSPECIFIED = 0; + */ + public static final int CAPACITY_UNITS_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +       * The capacity unit is set to CORES.
    +       * 
    + * + * CORES = 1; + */ + public static final int CORES_VALUE = 1; + /** + * + * + *
    +       * The capacity unit is set to CHIPS.
    +       * 
    + * + * CHIPS = 2; + */ + public static final int CHIPS_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 CapacityUnits 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 CapacityUnits forNumber(int value) { + switch (value) { + case 0: + return CAPACITY_UNITS_UNSPECIFIED; + case 1: + return CORES; + case 2: + return CHIPS; + 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 CapacityUnits findValueByNumber(int number) { + return CapacityUnits.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.tpu.v2alpha1.Reservation.Standard.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final CapacityUnits[] VALUES = values(); + + public static CapacityUnits 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 CapacityUnits(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.tpu.v2alpha1.Reservation.Standard.CapacityUnits) + } + + public interface UsageOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.Reservation.Standard.Usage) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +       * The real-time value of usage within the reservation, with the unit
    +       * specified in field capacity_units.
    +       * 
    + * + * int64 total = 1; + * + * @return The total. + */ + long getTotal(); + } + /** + * + * + *
    +     * Usage details of a reservation.
    +     * 
    + * + * Protobuf type {@code google.cloud.tpu.v2alpha1.Reservation.Standard.Usage} + */ + public static final class Usage extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.Reservation.Standard.Usage) + UsageOrBuilder { + private static final long serialVersionUID = 0L; + // Use Usage.newBuilder() to construct. + private Usage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Usage() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Usage(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_Reservation_Standard_Usage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_Reservation_Standard_Usage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage.class, + com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage.Builder.class); + } + + public static final int TOTAL_FIELD_NUMBER = 1; + private long total_ = 0L; + /** + * + * + *
    +       * The real-time value of usage within the reservation, with the unit
    +       * specified in field capacity_units.
    +       * 
    + * + * int64 total = 1; + * + * @return The total. + */ + @java.lang.Override + public long getTotal() { + return total_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (total_ != 0L) { + output.writeInt64(1, total_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (total_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, total_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage)) { + return super.equals(obj); + } + com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage other = + (com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage) obj; + + if (getTotal() != other.getTotal()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TOTAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotal()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +       * Usage details of a reservation.
    +       * 
    + * + * Protobuf type {@code google.cloud.tpu.v2alpha1.Reservation.Standard.Usage} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.Reservation.Standard.Usage) + com.google.cloud.tpu.v2alpha1.Reservation.Standard.UsageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_Reservation_Standard_Usage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_Reservation_Standard_Usage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage.class, + com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage.Builder.class); + } + + // Construct using com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + total_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_Reservation_Standard_Usage_descriptor; + } + + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage + getDefaultInstanceForType() { + return com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage build() { + com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage buildPartial() { + com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage result = + new com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.total_ = total_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage) { + return mergeFrom((com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage other) { + if (other + == com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage.getDefaultInstance()) + return this; + if (other.getTotal() != 0L) { + setTotal(other.getTotal()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + total_ = 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 total_; + /** + * + * + *
    +         * The real-time value of usage within the reservation, with the unit
    +         * specified in field capacity_units.
    +         * 
    + * + * int64 total = 1; + * + * @return The total. + */ + @java.lang.Override + public long getTotal() { + return total_; + } + /** + * + * + *
    +         * The real-time value of usage within the reservation, with the unit
    +         * specified in field capacity_units.
    +         * 
    + * + * int64 total = 1; + * + * @param value The total to set. + * @return This builder for chaining. + */ + public Builder setTotal(long value) { + + total_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +         * The real-time value of usage within the reservation, with the unit
    +         * specified in field capacity_units.
    +         * 
    + * + * int64 total = 1; + * + * @return This builder for chaining. + */ + public Builder clearTotal() { + bitField0_ = (bitField0_ & ~0x00000001); + total_ = 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.tpu.v2alpha1.Reservation.Standard.Usage) + } + + // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.Reservation.Standard.Usage) + private static final com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage(); + } + + public static com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Usage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int SIZE_FIELD_NUMBER = 1; + private int size_ = 0; + /** + * + * + *
    +     * The size of the reservation, in the units specified in the
    +     * 'capacity_units' field.
    +     * 
    + * + * int32 size = 1; + * + * @return The size. + */ + @java.lang.Override + public int getSize() { + return size_; + } + + public static final int CAPACITY_UNITS_FIELD_NUMBER = 2; + private int capacityUnits_ = 0; + /** + * + * + *
    +     * Capacity units this reservation is measured in.
    +     * 
    + * + * .google.cloud.tpu.v2alpha1.Reservation.Standard.CapacityUnits capacity_units = 2; + * + * + * @return The enum numeric value on the wire for capacityUnits. + */ + @java.lang.Override + public int getCapacityUnitsValue() { + return capacityUnits_; + } + /** + * + * + *
    +     * Capacity units this reservation is measured in.
    +     * 
    + * + * .google.cloud.tpu.v2alpha1.Reservation.Standard.CapacityUnits capacity_units = 2; + * + * + * @return The capacityUnits. + */ + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.Reservation.Standard.CapacityUnits getCapacityUnits() { + com.google.cloud.tpu.v2alpha1.Reservation.Standard.CapacityUnits result = + com.google.cloud.tpu.v2alpha1.Reservation.Standard.CapacityUnits.forNumber( + capacityUnits_); + return result == null + ? com.google.cloud.tpu.v2alpha1.Reservation.Standard.CapacityUnits.UNRECOGNIZED + : result; + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object resourceType_ = ""; + /** + * + * + *
    +     * The resource type of the reservation.
    +     * 
    + * + * string resource_type = 3; + * + * @return The resourceType. + */ + @java.lang.Override + public java.lang.String getResourceType() { + java.lang.Object ref = resourceType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceType_ = s; + return s; + } + } + /** + * + * + *
    +     * The resource type of the reservation.
    +     * 
    + * + * string resource_type = 3; + * + * @return The bytes for resourceType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceTypeBytes() { + java.lang.Object ref = resourceType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INTERVAL_FIELD_NUMBER = 4; + private com.google.type.Interval interval_; + /** + * + * + *
    +     * The start and end time of the reservation.
    +     * 
    + * + * .google.type.Interval interval = 4; + * + * @return Whether the interval field is set. + */ + @java.lang.Override + public boolean hasInterval() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +     * The start and end time of the reservation.
    +     * 
    + * + * .google.type.Interval interval = 4; + * + * @return The interval. + */ + @java.lang.Override + public com.google.type.Interval getInterval() { + return interval_ == null ? com.google.type.Interval.getDefaultInstance() : interval_; + } + /** + * + * + *
    +     * The start and end time of the reservation.
    +     * 
    + * + * .google.type.Interval interval = 4; + */ + @java.lang.Override + public com.google.type.IntervalOrBuilder getIntervalOrBuilder() { + return interval_ == null ? com.google.type.Interval.getDefaultInstance() : interval_; + } + + public static final int USAGE_FIELD_NUMBER = 5; + private com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage_; + /** + * + * + *
    +     * The current usage of the reservation.
    +     * 
    + * + * .google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5; + * + * @return Whether the usage field is set. + */ + @java.lang.Override + public boolean hasUsage() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * The current usage of the reservation.
    +     * 
    + * + * .google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5; + * + * @return The usage. + */ + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage getUsage() { + return usage_ == null + ? com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage.getDefaultInstance() + : usage_; + } + /** + * + * + *
    +     * The current usage of the reservation.
    +     * 
    + * + * .google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5; + */ + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.Reservation.Standard.UsageOrBuilder getUsageOrBuilder() { + return usage_ == null + ? com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage.getDefaultInstance() + : usage_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (size_ != 0) { + output.writeInt32(1, size_); + } + if (capacityUnits_ + != com.google.cloud.tpu.v2alpha1.Reservation.Standard.CapacityUnits + .CAPACITY_UNITS_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, capacityUnits_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, resourceType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getInterval()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getUsage()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (size_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, size_); + } + if (capacityUnits_ + != com.google.cloud.tpu.v2alpha1.Reservation.Standard.CapacityUnits + .CAPACITY_UNITS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, capacityUnits_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resourceType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getInterval()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUsage()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.tpu.v2alpha1.Reservation.Standard)) { + return super.equals(obj); + } + com.google.cloud.tpu.v2alpha1.Reservation.Standard other = + (com.google.cloud.tpu.v2alpha1.Reservation.Standard) obj; + + if (getSize() != other.getSize()) return false; + if (capacityUnits_ != other.capacityUnits_) return false; + if (!getResourceType().equals(other.getResourceType())) return false; + if (hasInterval() != other.hasInterval()) return false; + if (hasInterval()) { + if (!getInterval().equals(other.getInterval())) return false; + } + if (hasUsage() != other.hasUsage()) return false; + if (hasUsage()) { + if (!getUsage().equals(other.getUsage())) return false; + } + if (!getUnknownFields().equals(other.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) + SIZE_FIELD_NUMBER; + hash = (53 * hash) + getSize(); + hash = (37 * hash) + CAPACITY_UNITS_FIELD_NUMBER; + hash = (53 * hash) + capacityUnits_; + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getResourceType().hashCode(); + if (hasInterval()) { + hash = (37 * hash) + INTERVAL_FIELD_NUMBER; + hash = (53 * hash) + getInterval().hashCode(); + } + if (hasUsage()) { + hash = (37 * hash) + USAGE_FIELD_NUMBER; + hash = (53 * hash) + getUsage().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.tpu.v2alpha1.Reservation.Standard parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2alpha1.Reservation.Standard parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2alpha1.Reservation.Standard parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2alpha1.Reservation.Standard parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2alpha1.Reservation.Standard parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2alpha1.Reservation.Standard parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2alpha1.Reservation.Standard parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2alpha1.Reservation.Standard parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2alpha1.Reservation.Standard parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2alpha1.Reservation.Standard parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2alpha1.Reservation.Standard parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2alpha1.Reservation.Standard parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.Reservation.Standard prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 of a standard reservation.
    +     * 
    + * + * Protobuf type {@code google.cloud.tpu.v2alpha1.Reservation.Standard} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.Reservation.Standard) + com.google.cloud.tpu.v2alpha1.Reservation.StandardOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_Reservation_Standard_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_Reservation_Standard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2alpha1.Reservation.Standard.class, + com.google.cloud.tpu.v2alpha1.Reservation.Standard.Builder.class); + } + + // Construct using com.google.cloud.tpu.v2alpha1.Reservation.Standard.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getIntervalFieldBuilder(); + getUsageFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + size_ = 0; + capacityUnits_ = 0; + resourceType_ = ""; + interval_ = null; + if (intervalBuilder_ != null) { + intervalBuilder_.dispose(); + intervalBuilder_ = null; + } + usage_ = null; + if (usageBuilder_ != null) { + usageBuilder_.dispose(); + usageBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_Reservation_Standard_descriptor; + } + + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.Reservation.Standard getDefaultInstanceForType() { + return com.google.cloud.tpu.v2alpha1.Reservation.Standard.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.Reservation.Standard build() { + com.google.cloud.tpu.v2alpha1.Reservation.Standard result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.Reservation.Standard buildPartial() { + com.google.cloud.tpu.v2alpha1.Reservation.Standard result = + new com.google.cloud.tpu.v2alpha1.Reservation.Standard(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.tpu.v2alpha1.Reservation.Standard result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.size_ = size_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.capacityUnits_ = capacityUnits_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.resourceType_ = resourceType_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.interval_ = intervalBuilder_ == null ? interval_ : intervalBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.usage_ = usageBuilder_ == null ? usage_ : usageBuilder_.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.tpu.v2alpha1.Reservation.Standard) { + return mergeFrom((com.google.cloud.tpu.v2alpha1.Reservation.Standard) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.Reservation.Standard other) { + if (other == com.google.cloud.tpu.v2alpha1.Reservation.Standard.getDefaultInstance()) + return this; + if (other.getSize() != 0) { + setSize(other.getSize()); + } + if (other.capacityUnits_ != 0) { + setCapacityUnitsValue(other.getCapacityUnitsValue()); + } + if (!other.getResourceType().isEmpty()) { + resourceType_ = other.resourceType_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasInterval()) { + mergeInterval(other.getInterval()); + } + if (other.hasUsage()) { + mergeUsage(other.getUsage()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == 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: + { + size_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + capacityUnits_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + resourceType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getIntervalFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getUsageFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int size_; + /** + * + * + *
    +       * The size of the reservation, in the units specified in the
    +       * 'capacity_units' field.
    +       * 
    + * + * int32 size = 1; + * + * @return The size. + */ + @java.lang.Override + public int getSize() { + return size_; + } + /** + * + * + *
    +       * The size of the reservation, in the units specified in the
    +       * 'capacity_units' field.
    +       * 
    + * + * int32 size = 1; + * + * @param value The size to set. + * @return This builder for chaining. + */ + public Builder setSize(int value) { + + size_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +       * The size of the reservation, in the units specified in the
    +       * 'capacity_units' field.
    +       * 
    + * + * int32 size = 1; + * + * @return This builder for chaining. + */ + public Builder clearSize() { + bitField0_ = (bitField0_ & ~0x00000001); + size_ = 0; + onChanged(); + return this; + } + + private int capacityUnits_ = 0; + /** + * + * + *
    +       * Capacity units this reservation is measured in.
    +       * 
    + * + * .google.cloud.tpu.v2alpha1.Reservation.Standard.CapacityUnits capacity_units = 2; + * + * + * @return The enum numeric value on the wire for capacityUnits. + */ + @java.lang.Override + public int getCapacityUnitsValue() { + return capacityUnits_; + } + /** + * + * + *
    +       * Capacity units this reservation is measured in.
    +       * 
    + * + * .google.cloud.tpu.v2alpha1.Reservation.Standard.CapacityUnits capacity_units = 2; + * + * + * @param value The enum numeric value on the wire for capacityUnits to set. + * @return This builder for chaining. + */ + public Builder setCapacityUnitsValue(int value) { + capacityUnits_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +       * Capacity units this reservation is measured in.
    +       * 
    + * + * .google.cloud.tpu.v2alpha1.Reservation.Standard.CapacityUnits capacity_units = 2; + * + * + * @return The capacityUnits. + */ + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.Reservation.Standard.CapacityUnits getCapacityUnits() { + com.google.cloud.tpu.v2alpha1.Reservation.Standard.CapacityUnits result = + com.google.cloud.tpu.v2alpha1.Reservation.Standard.CapacityUnits.forNumber( + capacityUnits_); + return result == null + ? com.google.cloud.tpu.v2alpha1.Reservation.Standard.CapacityUnits.UNRECOGNIZED + : result; + } + /** + * + * + *
    +       * Capacity units this reservation is measured in.
    +       * 
    + * + * .google.cloud.tpu.v2alpha1.Reservation.Standard.CapacityUnits capacity_units = 2; + * + * + * @param value The capacityUnits to set. + * @return This builder for chaining. + */ + public Builder setCapacityUnits( + com.google.cloud.tpu.v2alpha1.Reservation.Standard.CapacityUnits value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + capacityUnits_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +       * Capacity units this reservation is measured in.
    +       * 
    + * + * .google.cloud.tpu.v2alpha1.Reservation.Standard.CapacityUnits capacity_units = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearCapacityUnits() { + bitField0_ = (bitField0_ & ~0x00000002); + capacityUnits_ = 0; + onChanged(); + return this; + } + + private java.lang.Object resourceType_ = ""; + /** + * + * + *
    +       * The resource type of the reservation.
    +       * 
    + * + * string resource_type = 3; + * + * @return The resourceType. + */ + public java.lang.String getResourceType() { + java.lang.Object ref = resourceType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * The resource type of the reservation.
    +       * 
    + * + * string resource_type = 3; + * + * @return The bytes for resourceType. + */ + public com.google.protobuf.ByteString getResourceTypeBytes() { + java.lang.Object ref = resourceType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * The resource type of the reservation.
    +       * 
    + * + * string resource_type = 3; + * + * @param value The resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resourceType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +       * The resource type of the reservation.
    +       * 
    + * + * string resource_type = 3; + * + * @return This builder for chaining. + */ + public Builder clearResourceType() { + resourceType_ = getDefaultInstance().getResourceType(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +       * The resource type of the reservation.
    +       * 
    + * + * string resource_type = 3; + * + * @param value The bytes for resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.type.Interval interval_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Interval, + com.google.type.Interval.Builder, + com.google.type.IntervalOrBuilder> + intervalBuilder_; + /** + * + * + *
    +       * The start and end time of the reservation.
    +       * 
    + * + * .google.type.Interval interval = 4; + * + * @return Whether the interval field is set. + */ + public boolean hasInterval() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
    +       * The start and end time of the reservation.
    +       * 
    + * + * .google.type.Interval interval = 4; + * + * @return The interval. + */ + public com.google.type.Interval getInterval() { + if (intervalBuilder_ == null) { + return interval_ == null ? com.google.type.Interval.getDefaultInstance() : interval_; + } else { + return intervalBuilder_.getMessage(); + } + } + /** + * + * + *
    +       * The start and end time of the reservation.
    +       * 
    + * + * .google.type.Interval interval = 4; + */ + public Builder setInterval(com.google.type.Interval value) { + if (intervalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + interval_ = value; + } else { + intervalBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +       * The start and end time of the reservation.
    +       * 
    + * + * .google.type.Interval interval = 4; + */ + public Builder setInterval(com.google.type.Interval.Builder builderForValue) { + if (intervalBuilder_ == null) { + interval_ = builderForValue.build(); + } else { + intervalBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +       * The start and end time of the reservation.
    +       * 
    + * + * .google.type.Interval interval = 4; + */ + public Builder mergeInterval(com.google.type.Interval value) { + if (intervalBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && interval_ != null + && interval_ != com.google.type.Interval.getDefaultInstance()) { + getIntervalBuilder().mergeFrom(value); + } else { + interval_ = value; + } + } else { + intervalBuilder_.mergeFrom(value); + } + if (interval_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
    +       * The start and end time of the reservation.
    +       * 
    + * + * .google.type.Interval interval = 4; + */ + public Builder clearInterval() { + bitField0_ = (bitField0_ & ~0x00000008); + interval_ = null; + if (intervalBuilder_ != null) { + intervalBuilder_.dispose(); + intervalBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +       * The start and end time of the reservation.
    +       * 
    + * + * .google.type.Interval interval = 4; + */ + public com.google.type.Interval.Builder getIntervalBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getIntervalFieldBuilder().getBuilder(); + } + /** + * + * + *
    +       * The start and end time of the reservation.
    +       * 
    + * + * .google.type.Interval interval = 4; + */ + public com.google.type.IntervalOrBuilder getIntervalOrBuilder() { + if (intervalBuilder_ != null) { + return intervalBuilder_.getMessageOrBuilder(); + } else { + return interval_ == null ? com.google.type.Interval.getDefaultInstance() : interval_; + } + } + /** + * + * + *
    +       * The start and end time of the reservation.
    +       * 
    + * + * .google.type.Interval interval = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Interval, + com.google.type.Interval.Builder, + com.google.type.IntervalOrBuilder> + getIntervalFieldBuilder() { + if (intervalBuilder_ == null) { + intervalBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Interval, + com.google.type.Interval.Builder, + com.google.type.IntervalOrBuilder>( + getInterval(), getParentForChildren(), isClean()); + interval_ = null; + } + return intervalBuilder_; + } + + private com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage, + com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage.Builder, + com.google.cloud.tpu.v2alpha1.Reservation.Standard.UsageOrBuilder> + usageBuilder_; + /** + * + * + *
    +       * The current usage of the reservation.
    +       * 
    + * + * .google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5; + * + * @return Whether the usage field is set. + */ + public boolean hasUsage() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
    +       * The current usage of the reservation.
    +       * 
    + * + * .google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5; + * + * @return The usage. + */ + public com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage getUsage() { + if (usageBuilder_ == null) { + return usage_ == null + ? com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage.getDefaultInstance() + : usage_; + } else { + return usageBuilder_.getMessage(); + } + } + /** + * + * + *
    +       * The current usage of the reservation.
    +       * 
    + * + * .google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5; + */ + public Builder setUsage(com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage value) { + if (usageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + usage_ = value; + } else { + usageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
    +       * The current usage of the reservation.
    +       * 
    + * + * .google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5; + */ + public Builder setUsage( + com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage.Builder builderForValue) { + if (usageBuilder_ == null) { + usage_ = builderForValue.build(); + } else { + usageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
    +       * The current usage of the reservation.
    +       * 
    + * + * .google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5; + */ + public Builder mergeUsage(com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage value) { + if (usageBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && usage_ != null + && usage_ + != com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage + .getDefaultInstance()) { + getUsageBuilder().mergeFrom(value); + } else { + usage_ = value; + } + } else { + usageBuilder_.mergeFrom(value); + } + if (usage_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
    +       * The current usage of the reservation.
    +       * 
    + * + * .google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5; + */ + public Builder clearUsage() { + bitField0_ = (bitField0_ & ~0x00000010); + usage_ = null; + if (usageBuilder_ != null) { + usageBuilder_.dispose(); + usageBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +       * The current usage of the reservation.
    +       * 
    + * + * .google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5; + */ + public com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage.Builder getUsageBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getUsageFieldBuilder().getBuilder(); + } + /** + * + * + *
    +       * The current usage of the reservation.
    +       * 
    + * + * .google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5; + */ + public com.google.cloud.tpu.v2alpha1.Reservation.Standard.UsageOrBuilder getUsageOrBuilder() { + if (usageBuilder_ != null) { + return usageBuilder_.getMessageOrBuilder(); + } else { + return usage_ == null + ? com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage.getDefaultInstance() + : usage_; + } + } + /** + * + * + *
    +       * The current usage of the reservation.
    +       * 
    + * + * .google.cloud.tpu.v2alpha1.Reservation.Standard.Usage usage = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage, + com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage.Builder, + com.google.cloud.tpu.v2alpha1.Reservation.Standard.UsageOrBuilder> + getUsageFieldBuilder() { + if (usageBuilder_ == null) { + usageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage, + com.google.cloud.tpu.v2alpha1.Reservation.Standard.Usage.Builder, + com.google.cloud.tpu.v2alpha1.Reservation.Standard.UsageOrBuilder>( + getUsage(), getParentForChildren(), isClean()); + usage_ = null; + } + return usageBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.Reservation.Standard) + } + + // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.Reservation.Standard) + private static final com.google.cloud.tpu.v2alpha1.Reservation.Standard DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.Reservation.Standard(); + } + + public static com.google.cloud.tpu.v2alpha1.Reservation.Standard getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Standard parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.Reservation.Standard getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int kindCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object kind_; + + public enum KindCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + STANDARD(2), + KIND_NOT_SET(0); + private final int value; + + private KindCase(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 KindCase valueOf(int value) { + return forNumber(value); + } + + public static KindCase forNumber(int value) { + switch (value) { + case 2: + return STANDARD; + case 0: + return KIND_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public KindCase getKindCase() { + return KindCase.forNumber(kindCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +   * The reservation name with the format:
    +   * projects/{projectID}/locations/{location}/reservations/{reservationID}
    +   * 
    + * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
    +   * The reservation name with the format:
    +   * projects/{projectID}/locations/{location}/reservations/{reservationID}
    +   * 
    + * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STANDARD_FIELD_NUMBER = 2; + /** + * + * + *
    +   * A standard reservation.
    +   * 
    + * + * .google.cloud.tpu.v2alpha1.Reservation.Standard standard = 2; + * + * @return Whether the standard field is set. + */ + @java.lang.Override + public boolean hasStandard() { + return kindCase_ == 2; + } + /** + * + * + *
    +   * A standard reservation.
    +   * 
    + * + * .google.cloud.tpu.v2alpha1.Reservation.Standard standard = 2; + * + * @return The standard. + */ + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.Reservation.Standard getStandard() { + if (kindCase_ == 2) { + return (com.google.cloud.tpu.v2alpha1.Reservation.Standard) kind_; + } + return com.google.cloud.tpu.v2alpha1.Reservation.Standard.getDefaultInstance(); + } + /** + * + * + *
    +   * A standard reservation.
    +   * 
    + * + * .google.cloud.tpu.v2alpha1.Reservation.Standard standard = 2; + */ + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.Reservation.StandardOrBuilder getStandardOrBuilder() { + if (kindCase_ == 2) { + return (com.google.cloud.tpu.v2alpha1.Reservation.Standard) kind_; + } + return com.google.cloud.tpu.v2alpha1.Reservation.Standard.getDefaultInstance(); + } + + public static final int STATE_FIELD_NUMBER = 3; + private int state_ = 0; + /** + * + * + *
    +   * Output only. The state of the Reservation.
    +   * 
    + * + * + * .google.cloud.tpu.v2alpha1.Reservation.State state = 3 [(.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. The state of the Reservation.
    +   * 
    + * + * + * .google.cloud.tpu.v2alpha1.Reservation.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.Reservation.State getState() { + com.google.cloud.tpu.v2alpha1.Reservation.State result = + com.google.cloud.tpu.v2alpha1.Reservation.State.forNumber(state_); + return result == null ? com.google.cloud.tpu.v2alpha1.Reservation.State.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 (kindCase_ == 2) { + output.writeMessage(2, (com.google.cloud.tpu.v2alpha1.Reservation.Standard) kind_); + } + if (state_ != com.google.cloud.tpu.v2alpha1.Reservation.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, state_); + } + 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 (kindCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.tpu.v2alpha1.Reservation.Standard) kind_); + } + if (state_ != com.google.cloud.tpu.v2alpha1.Reservation.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.tpu.v2alpha1.Reservation)) { + return super.equals(obj); + } + com.google.cloud.tpu.v2alpha1.Reservation other = + (com.google.cloud.tpu.v2alpha1.Reservation) obj; + + if (!getName().equals(other.getName())) return false; + if (state_ != other.state_) return false; + if (!getKindCase().equals(other.getKindCase())) return false; + switch (kindCase_) { + case 2: + if (!getStandard().equals(other.getStandard())) 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) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + switch (kindCase_) { + case 2: + hash = (37 * hash) + STANDARD_FIELD_NUMBER; + hash = (53 * hash) + getStandard().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.tpu.v2alpha1.Reservation parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2alpha1.Reservation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2alpha1.Reservation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2alpha1.Reservation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2alpha1.Reservation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2alpha1.Reservation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2alpha1.Reservation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2alpha1.Reservation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2alpha1.Reservation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2alpha1.Reservation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2alpha1.Reservation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2alpha1.Reservation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.Reservation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 reservation describes the amount of a resource 'allotted' for a defined
    +   * period of time.
    +   * 
    + * + * Protobuf type {@code google.cloud.tpu.v2alpha1.Reservation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.Reservation) + com.google.cloud.tpu.v2alpha1.ReservationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_Reservation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_Reservation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2alpha1.Reservation.class, + com.google.cloud.tpu.v2alpha1.Reservation.Builder.class); + } + + // Construct using com.google.cloud.tpu.v2alpha1.Reservation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + if (standardBuilder_ != null) { + standardBuilder_.clear(); + } + state_ = 0; + kindCase_ = 0; + kind_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_Reservation_descriptor; + } + + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.Reservation getDefaultInstanceForType() { + return com.google.cloud.tpu.v2alpha1.Reservation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.Reservation build() { + com.google.cloud.tpu.v2alpha1.Reservation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.Reservation buildPartial() { + com.google.cloud.tpu.v2alpha1.Reservation result = + new com.google.cloud.tpu.v2alpha1.Reservation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.tpu.v2alpha1.Reservation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.state_ = state_; + } + } + + private void buildPartialOneofs(com.google.cloud.tpu.v2alpha1.Reservation result) { + result.kindCase_ = kindCase_; + result.kind_ = this.kind_; + if (kindCase_ == 2 && standardBuilder_ != null) { + result.kind_ = standardBuilder_.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.tpu.v2alpha1.Reservation) { + return mergeFrom((com.google.cloud.tpu.v2alpha1.Reservation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.Reservation other) { + if (other == com.google.cloud.tpu.v2alpha1.Reservation.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + switch (other.getKindCase()) { + case STANDARD: + { + mergeStandard(other.getStandard()); + break; + } + case KIND_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: + { + input.readMessage(getStandardFieldBuilder().getBuilder(), extensionRegistry); + kindCase_ = 2; + break; + } // case 18 + case 24: + { + state_ = input.readEnum(); + 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 kindCase_ = 0; + private java.lang.Object kind_; + + public KindCase getKindCase() { + return KindCase.forNumber(kindCase_); + } + + public Builder clearKind() { + kindCase_ = 0; + kind_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
    +     * The reservation name with the format:
    +     * projects/{projectID}/locations/{location}/reservations/{reservationID}
    +     * 
    + * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * The reservation name with the format:
    +     * projects/{projectID}/locations/{location}/reservations/{reservationID}
    +     * 
    + * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * The reservation name with the format:
    +     * projects/{projectID}/locations/{location}/reservations/{reservationID}
    +     * 
    + * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * The reservation name with the format:
    +     * projects/{projectID}/locations/{location}/reservations/{reservationID}
    +     * 
    + * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * The reservation name with the format:
    +     * projects/{projectID}/locations/{location}/reservations/{reservationID}
    +     * 
    + * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.Reservation.Standard, + com.google.cloud.tpu.v2alpha1.Reservation.Standard.Builder, + com.google.cloud.tpu.v2alpha1.Reservation.StandardOrBuilder> + standardBuilder_; + /** + * + * + *
    +     * A standard reservation.
    +     * 
    + * + * .google.cloud.tpu.v2alpha1.Reservation.Standard standard = 2; + * + * @return Whether the standard field is set. + */ + @java.lang.Override + public boolean hasStandard() { + return kindCase_ == 2; + } + /** + * + * + *
    +     * A standard reservation.
    +     * 
    + * + * .google.cloud.tpu.v2alpha1.Reservation.Standard standard = 2; + * + * @return The standard. + */ + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.Reservation.Standard getStandard() { + if (standardBuilder_ == null) { + if (kindCase_ == 2) { + return (com.google.cloud.tpu.v2alpha1.Reservation.Standard) kind_; + } + return com.google.cloud.tpu.v2alpha1.Reservation.Standard.getDefaultInstance(); + } else { + if (kindCase_ == 2) { + return standardBuilder_.getMessage(); + } + return com.google.cloud.tpu.v2alpha1.Reservation.Standard.getDefaultInstance(); + } + } + /** + * + * + *
    +     * A standard reservation.
    +     * 
    + * + * .google.cloud.tpu.v2alpha1.Reservation.Standard standard = 2; + */ + public Builder setStandard(com.google.cloud.tpu.v2alpha1.Reservation.Standard value) { + if (standardBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + standardBuilder_.setMessage(value); + } + kindCase_ = 2; + return this; + } + /** + * + * + *
    +     * A standard reservation.
    +     * 
    + * + * .google.cloud.tpu.v2alpha1.Reservation.Standard standard = 2; + */ + public Builder setStandard( + com.google.cloud.tpu.v2alpha1.Reservation.Standard.Builder builderForValue) { + if (standardBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + standardBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 2; + return this; + } + /** + * + * + *
    +     * A standard reservation.
    +     * 
    + * + * .google.cloud.tpu.v2alpha1.Reservation.Standard standard = 2; + */ + public Builder mergeStandard(com.google.cloud.tpu.v2alpha1.Reservation.Standard value) { + if (standardBuilder_ == null) { + if (kindCase_ == 2 + && kind_ != com.google.cloud.tpu.v2alpha1.Reservation.Standard.getDefaultInstance()) { + kind_ = + com.google.cloud.tpu.v2alpha1.Reservation.Standard.newBuilder( + (com.google.cloud.tpu.v2alpha1.Reservation.Standard) kind_) + .mergeFrom(value) + .buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 2) { + standardBuilder_.mergeFrom(value); + } else { + standardBuilder_.setMessage(value); + } + } + kindCase_ = 2; + return this; + } + /** + * + * + *
    +     * A standard reservation.
    +     * 
    + * + * .google.cloud.tpu.v2alpha1.Reservation.Standard standard = 2; + */ + public Builder clearStandard() { + if (standardBuilder_ == null) { + if (kindCase_ == 2) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 2) { + kindCase_ = 0; + kind_ = null; + } + standardBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * A standard reservation.
    +     * 
    + * + * .google.cloud.tpu.v2alpha1.Reservation.Standard standard = 2; + */ + public com.google.cloud.tpu.v2alpha1.Reservation.Standard.Builder getStandardBuilder() { + return getStandardFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * A standard reservation.
    +     * 
    + * + * .google.cloud.tpu.v2alpha1.Reservation.Standard standard = 2; + */ + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.Reservation.StandardOrBuilder getStandardOrBuilder() { + if ((kindCase_ == 2) && (standardBuilder_ != null)) { + return standardBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 2) { + return (com.google.cloud.tpu.v2alpha1.Reservation.Standard) kind_; + } + return com.google.cloud.tpu.v2alpha1.Reservation.Standard.getDefaultInstance(); + } + } + /** + * + * + *
    +     * A standard reservation.
    +     * 
    + * + * .google.cloud.tpu.v2alpha1.Reservation.Standard standard = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.Reservation.Standard, + com.google.cloud.tpu.v2alpha1.Reservation.Standard.Builder, + com.google.cloud.tpu.v2alpha1.Reservation.StandardOrBuilder> + getStandardFieldBuilder() { + if (standardBuilder_ == null) { + if (!(kindCase_ == 2)) { + kind_ = com.google.cloud.tpu.v2alpha1.Reservation.Standard.getDefaultInstance(); + } + standardBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.tpu.v2alpha1.Reservation.Standard, + com.google.cloud.tpu.v2alpha1.Reservation.Standard.Builder, + com.google.cloud.tpu.v2alpha1.Reservation.StandardOrBuilder>( + (com.google.cloud.tpu.v2alpha1.Reservation.Standard) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 2; + onChanged(); + return standardBuilder_; + } + + private int state_ = 0; + /** + * + * + *
    +     * Output only. The state of the Reservation.
    +     * 
    + * + * + * .google.cloud.tpu.v2alpha1.Reservation.State state = 3 [(.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. The state of the Reservation.
    +     * 
    + * + * + * .google.cloud.tpu.v2alpha1.Reservation.State state = 3 [(.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_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The state of the Reservation.
    +     * 
    + * + * + * .google.cloud.tpu.v2alpha1.Reservation.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.Reservation.State getState() { + com.google.cloud.tpu.v2alpha1.Reservation.State result = + com.google.cloud.tpu.v2alpha1.Reservation.State.forNumber(state_); + return result == null ? com.google.cloud.tpu.v2alpha1.Reservation.State.UNRECOGNIZED : result; + } + /** + * + * + *
    +     * Output only. The state of the Reservation.
    +     * 
    + * + * + * .google.cloud.tpu.v2alpha1.Reservation.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.tpu.v2alpha1.Reservation.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. The state of the Reservation.
    +     * 
    + * + * + * .google.cloud.tpu.v2alpha1.Reservation.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000004); + state_ = 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.tpu.v2alpha1.Reservation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.Reservation) + private static final com.google.cloud.tpu.v2alpha1.Reservation DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.Reservation(); + } + + public static com.google.cloud.tpu.v2alpha1.Reservation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Reservation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.Reservation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ReservationName.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ReservationName.java new file mode 100644 index 000000000000..be08a2b1f52d --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ReservationName.java @@ -0,0 +1,227 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.tpu.v2alpha1; + +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 ReservationName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_RESERVATION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/reservations/{reservation}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String reservation; + + @Deprecated + protected ReservationName() { + project = null; + location = null; + reservation = null; + } + + private ReservationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + reservation = Preconditions.checkNotNull(builder.getReservation()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getReservation() { + return reservation; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ReservationName of(String project, String location, String reservation) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setReservation(reservation) + .build(); + } + + public static String format(String project, String location, String reservation) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setReservation(reservation) + .build() + .toString(); + } + + public static ReservationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_RESERVATION.validatedMatch( + formattedString, "ReservationName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("reservation")); + } + + 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 (ReservationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_RESERVATION.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 (reservation != null) { + fieldMapBuilder.put("reservation", reservation); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_RESERVATION.instantiate( + "project", project, "location", location, "reservation", reservation); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ReservationName that = ((ReservationName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.reservation, that.reservation); + } + 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(reservation); + return h; + } + + /** Builder for projects/{project}/locations/{location}/reservations/{reservation}. */ + public static class Builder { + private String project; + private String location; + private String reservation; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getReservation() { + return reservation; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setReservation(String reservation) { + this.reservation = reservation; + return this; + } + + private Builder(ReservationName reservationName) { + this.project = reservationName.project; + this.location = reservationName.location; + this.reservation = reservationName.reservation; + } + + public ReservationName build() { + return new ReservationName(this); + } + } +} diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ReservationOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ReservationOrBuilder.java new file mode 100644 index 000000000000..94cd0c5ef0a6 --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/ReservationOrBuilder.java @@ -0,0 +1,119 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v2alpha1/cloud_tpu.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.tpu.v2alpha1; + +public interface ReservationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.Reservation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The reservation name with the format:
    +   * projects/{projectID}/locations/{location}/reservations/{reservationID}
    +   * 
    + * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * The reservation name with the format:
    +   * projects/{projectID}/locations/{location}/reservations/{reservationID}
    +   * 
    + * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * A standard reservation.
    +   * 
    + * + * .google.cloud.tpu.v2alpha1.Reservation.Standard standard = 2; + * + * @return Whether the standard field is set. + */ + boolean hasStandard(); + /** + * + * + *
    +   * A standard reservation.
    +   * 
    + * + * .google.cloud.tpu.v2alpha1.Reservation.Standard standard = 2; + * + * @return The standard. + */ + com.google.cloud.tpu.v2alpha1.Reservation.Standard getStandard(); + /** + * + * + *
    +   * A standard reservation.
    +   * 
    + * + * .google.cloud.tpu.v2alpha1.Reservation.Standard standard = 2; + */ + com.google.cloud.tpu.v2alpha1.Reservation.StandardOrBuilder getStandardOrBuilder(); + + /** + * + * + *
    +   * Output only. The state of the Reservation.
    +   * 
    + * + * + * .google.cloud.tpu.v2alpha1.Reservation.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
    +   * Output only. The state of the Reservation.
    +   * 
    + * + * + * .google.cloud.tpu.v2alpha1.Reservation.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.tpu.v2alpha1.Reservation.State getState(); + + com.google.cloud.tpu.v2alpha1.Reservation.KindCase getKindCase(); +} diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/SchedulingConfig.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/SchedulingConfig.java index 77679cdc8202..8ea7f27e1b14 100644 --- a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/SchedulingConfig.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/SchedulingConfig.java @@ -97,6 +97,24 @@ public boolean getReserved() { return reserved_; } + public static final int SPOT_FIELD_NUMBER = 3; + private boolean spot_ = false; + /** + * + * + *
    +   * Optional. Defines whether the node is Spot VM.
    +   * 
    + * + * bool spot = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The spot. + */ + @java.lang.Override + public boolean getSpot() { + return spot_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -117,6 +135,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (reserved_ != false) { output.writeBool(2, reserved_); } + if (spot_ != false) { + output.writeBool(3, spot_); + } getUnknownFields().writeTo(output); } @@ -132,6 +153,9 @@ public int getSerializedSize() { if (reserved_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, reserved_); } + if (spot_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, spot_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -150,6 +174,7 @@ public boolean equals(final java.lang.Object obj) { if (getPreemptible() != other.getPreemptible()) return false; if (getReserved() != other.getReserved()) return false; + if (getSpot() != other.getSpot()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -165,6 +190,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreemptible()); hash = (37 * hash) + RESERVED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReserved()); + hash = (37 * hash) + SPOT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSpot()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -306,6 +333,7 @@ public Builder clear() { bitField0_ = 0; preemptible_ = false; reserved_ = false; + spot_ = false; return this; } @@ -348,6 +376,9 @@ private void buildPartial0(com.google.cloud.tpu.v2alpha1.SchedulingConfig result if (((from_bitField0_ & 0x00000002) != 0)) { result.reserved_ = reserved_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.spot_ = spot_; + } } @java.lang.Override @@ -401,6 +432,9 @@ public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.SchedulingConfig other) { if (other.getReserved() != false) { setReserved(other.getReserved()); } + if (other.getSpot() != false) { + setSpot(other.getSpot()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -439,6 +473,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 16 + case 24: + { + spot_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -564,6 +604,59 @@ public Builder clearReserved() { return this; } + private boolean spot_; + /** + * + * + *
    +     * Optional. Defines whether the node is Spot VM.
    +     * 
    + * + * bool spot = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The spot. + */ + @java.lang.Override + public boolean getSpot() { + return spot_; + } + /** + * + * + *
    +     * Optional. Defines whether the node is Spot VM.
    +     * 
    + * + * bool spot = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The spot to set. + * @return This builder for chaining. + */ + public Builder setSpot(boolean value) { + + spot_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. Defines whether the node is Spot VM.
    +     * 
    + * + * bool spot = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSpot() { + bitField0_ = (bitField0_ & ~0x00000004); + spot_ = 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-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/SchedulingConfigOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/SchedulingConfigOrBuilder.java index f4b00a140340..c52bf1596202 100644 --- a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/SchedulingConfigOrBuilder.java +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/SchedulingConfigOrBuilder.java @@ -49,4 +49,17 @@ public interface SchedulingConfigOrBuilder * @return The reserved. */ boolean getReserved(); + + /** + * + * + *
    +   * Optional. Defines whether the node is Spot VM.
    +   * 
    + * + * bool spot = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The spot. + */ + boolean getSpot(); } diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/UpcomingMaintenance.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/UpcomingMaintenance.java new file mode 100644 index 000000000000..a735a1e107ce --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/UpcomingMaintenance.java @@ -0,0 +1,1986 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v2alpha1/cloud_tpu.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.tpu.v2alpha1; + +/** + * + * + *
    + * Upcoming Maintenance notification information.
    + * 
    + * + * Protobuf type {@code google.cloud.tpu.v2alpha1.UpcomingMaintenance} + */ +public final class UpcomingMaintenance extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.UpcomingMaintenance) + UpcomingMaintenanceOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpcomingMaintenance.newBuilder() to construct. + private UpcomingMaintenance(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpcomingMaintenance() { + type_ = 0; + windowStartTime_ = ""; + windowEndTime_ = ""; + latestWindowStartTime_ = ""; + maintenanceStatus_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpcomingMaintenance(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_UpcomingMaintenance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_UpcomingMaintenance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2alpha1.UpcomingMaintenance.class, + com.google.cloud.tpu.v2alpha1.UpcomingMaintenance.Builder.class); + } + + /** + * + * + *
    +   * The type of maintenance for this notification.
    +   * 
    + * + * Protobuf enum {@code google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceType} + */ + public enum MaintenanceType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * No type specified. Do not use this value.
    +     * 
    + * + * UNKNOWN_TYPE = 0; + */ + UNKNOWN_TYPE(0), + /** + * + * + *
    +     * Scheduled maintenance (e.g. maintenance after uptime guarantee is
    +     * complete).
    +     * 
    + * + * SCHEDULED = 1; + */ + SCHEDULED(1), + /** + * + * + *
    +     * Unscheduled maintenance (e.g. emergency maintenance during
    +     * uptime guarantee).
    +     * 
    + * + * UNSCHEDULED = 2; + */ + UNSCHEDULED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * No type specified. Do not use this value.
    +     * 
    + * + * UNKNOWN_TYPE = 0; + */ + public static final int UNKNOWN_TYPE_VALUE = 0; + /** + * + * + *
    +     * Scheduled maintenance (e.g. maintenance after uptime guarantee is
    +     * complete).
    +     * 
    + * + * SCHEDULED = 1; + */ + public static final int SCHEDULED_VALUE = 1; + /** + * + * + *
    +     * Unscheduled maintenance (e.g. emergency maintenance during
    +     * uptime guarantee).
    +     * 
    + * + * UNSCHEDULED = 2; + */ + public static final int UNSCHEDULED_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 MaintenanceType 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 MaintenanceType forNumber(int value) { + switch (value) { + case 0: + return UNKNOWN_TYPE; + case 1: + return SCHEDULED; + case 2: + return UNSCHEDULED; + 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 MaintenanceType findValueByNumber(int number) { + return MaintenanceType.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.tpu.v2alpha1.UpcomingMaintenance.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final MaintenanceType[] VALUES = values(); + + public static MaintenanceType 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 MaintenanceType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceType) + } + + /** + * + * + *
    +   * The status of the maintenance for this notification.
    +   * 
    + * + * Protobuf enum {@code google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceStatus} + */ + public enum MaintenanceStatus implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Unknown maintenance status. Do not use this value.
    +     * 
    + * + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + * + * + *
    +     * There is pending maintenance.
    +     * 
    + * + * PENDING = 1; + */ + PENDING(1), + /** + * + * + *
    +     * There is ongoing maintenance on this VM.
    +     * 
    + * + * ONGOING = 2; + */ + ONGOING(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Unknown maintenance status. Do not use this value.
    +     * 
    + * + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + * + * + *
    +     * There is pending maintenance.
    +     * 
    + * + * PENDING = 1; + */ + public static final int PENDING_VALUE = 1; + /** + * + * + *
    +     * There is ongoing maintenance on this VM.
    +     * 
    + * + * ONGOING = 2; + */ + public static final int ONGOING_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 MaintenanceStatus 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 MaintenanceStatus forNumber(int value) { + switch (value) { + case 0: + return UNKNOWN; + case 1: + return PENDING; + case 2: + return ONGOING; + 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 MaintenanceStatus findValueByNumber(int number) { + return MaintenanceStatus.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.tpu.v2alpha1.UpcomingMaintenance.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final MaintenanceStatus[] VALUES = values(); + + public static MaintenanceStatus 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 MaintenanceStatus(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceStatus) + } + + private int bitField0_; + public static final int TYPE_FIELD_NUMBER = 1; + private int type_ = 0; + /** + * + * + *
    +   * Defines the type of maintenance.
    +   * 
    + * + * optional .google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceType type = 1; + * + * @return Whether the type field is set. + */ + @java.lang.Override + public boolean hasType() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +   * Defines the type of maintenance.
    +   * 
    + * + * optional .google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceType type = 1; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
    +   * Defines the type of maintenance.
    +   * 
    + * + * optional .google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceType type = 1; + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceType getType() { + com.google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceType result = + com.google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceType.forNumber(type_); + return result == null + ? com.google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceType.UNRECOGNIZED + : result; + } + + public static final int CAN_RESCHEDULE_FIELD_NUMBER = 5; + private boolean canReschedule_ = false; + /** + * + * + *
    +   * Indicates if the maintenance can be customer triggered.
    +   * 
    + * + * optional bool can_reschedule = 5; + * + * @return Whether the canReschedule field is set. + */ + @java.lang.Override + public boolean hasCanReschedule() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +   * Indicates if the maintenance can be customer triggered.
    +   * 
    + * + * optional bool can_reschedule = 5; + * + * @return The canReschedule. + */ + @java.lang.Override + public boolean getCanReschedule() { + return canReschedule_; + } + + public static final int WINDOW_START_TIME_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object windowStartTime_ = ""; + /** + * + * + *
    +   * The current start time of the maintenance window.
    +   * This timestamp value is in RFC3339 text format.
    +   * 
    + * + * optional string window_start_time = 6; + * + * @return Whether the windowStartTime field is set. + */ + @java.lang.Override + public boolean hasWindowStartTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +   * The current start time of the maintenance window.
    +   * This timestamp value is in RFC3339 text format.
    +   * 
    + * + * optional string window_start_time = 6; + * + * @return The windowStartTime. + */ + @java.lang.Override + public java.lang.String getWindowStartTime() { + java.lang.Object ref = windowStartTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + windowStartTime_ = s; + return s; + } + } + /** + * + * + *
    +   * The current start time of the maintenance window.
    +   * This timestamp value is in RFC3339 text format.
    +   * 
    + * + * optional string window_start_time = 6; + * + * @return The bytes for windowStartTime. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWindowStartTimeBytes() { + java.lang.Object ref = windowStartTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + windowStartTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WINDOW_END_TIME_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object windowEndTime_ = ""; + /** + * + * + *
    +   * The time by which the maintenance disruption will be completed.
    +   * This timestamp value is in RFC3339 text format.
    +   * 
    + * + * optional string window_end_time = 7; + * + * @return Whether the windowEndTime field is set. + */ + @java.lang.Override + public boolean hasWindowEndTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
    +   * The time by which the maintenance disruption will be completed.
    +   * This timestamp value is in RFC3339 text format.
    +   * 
    + * + * optional string window_end_time = 7; + * + * @return The windowEndTime. + */ + @java.lang.Override + public java.lang.String getWindowEndTime() { + java.lang.Object ref = windowEndTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + windowEndTime_ = s; + return s; + } + } + /** + * + * + *
    +   * The time by which the maintenance disruption will be completed.
    +   * This timestamp value is in RFC3339 text format.
    +   * 
    + * + * optional string window_end_time = 7; + * + * @return The bytes for windowEndTime. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWindowEndTimeBytes() { + java.lang.Object ref = windowEndTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + windowEndTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LATEST_WINDOW_START_TIME_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object latestWindowStartTime_ = ""; + /** + * + * + *
    +   * The latest time for the planned maintenance window to start.
    +   * This timestamp value is in RFC3339 text format.
    +   * 
    + * + * optional string latest_window_start_time = 8; + * + * @return Whether the latestWindowStartTime field is set. + */ + @java.lang.Override + public boolean hasLatestWindowStartTime() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
    +   * The latest time for the planned maintenance window to start.
    +   * This timestamp value is in RFC3339 text format.
    +   * 
    + * + * optional string latest_window_start_time = 8; + * + * @return The latestWindowStartTime. + */ + @java.lang.Override + public java.lang.String getLatestWindowStartTime() { + java.lang.Object ref = latestWindowStartTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + latestWindowStartTime_ = s; + return s; + } + } + /** + * + * + *
    +   * The latest time for the planned maintenance window to start.
    +   * This timestamp value is in RFC3339 text format.
    +   * 
    + * + * optional string latest_window_start_time = 8; + * + * @return The bytes for latestWindowStartTime. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLatestWindowStartTimeBytes() { + java.lang.Object ref = latestWindowStartTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + latestWindowStartTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAINTENANCE_STATUS_FIELD_NUMBER = 9; + private int maintenanceStatus_ = 0; + /** + * + * + *
    +   * The status of the maintenance.
    +   * 
    + * + * + * optional .google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceStatus maintenance_status = 9; + * + * + * @return Whether the maintenanceStatus field is set. + */ + @java.lang.Override + public boolean hasMaintenanceStatus() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
    +   * The status of the maintenance.
    +   * 
    + * + * + * optional .google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceStatus maintenance_status = 9; + * + * + * @return The enum numeric value on the wire for maintenanceStatus. + */ + @java.lang.Override + public int getMaintenanceStatusValue() { + return maintenanceStatus_; + } + /** + * + * + *
    +   * The status of the maintenance.
    +   * 
    + * + * + * optional .google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceStatus maintenance_status = 9; + * + * + * @return The maintenanceStatus. + */ + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceStatus + getMaintenanceStatus() { + com.google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceStatus result = + com.google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceStatus.forNumber( + maintenanceStatus_); + return result == null + ? com.google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceStatus.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 (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, type_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(5, canReschedule_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, windowStartTime_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, windowEndTime_); + } + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, latestWindowStartTime_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeEnum(9, maintenanceStatus_); + } + 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.computeEnumSize(1, type_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, canReschedule_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, windowStartTime_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, windowEndTime_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, latestWindowStartTime_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, maintenanceStatus_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.tpu.v2alpha1.UpcomingMaintenance)) { + return super.equals(obj); + } + com.google.cloud.tpu.v2alpha1.UpcomingMaintenance other = + (com.google.cloud.tpu.v2alpha1.UpcomingMaintenance) obj; + + if (hasType() != other.hasType()) return false; + if (hasType()) { + if (type_ != other.type_) return false; + } + if (hasCanReschedule() != other.hasCanReschedule()) return false; + if (hasCanReschedule()) { + if (getCanReschedule() != other.getCanReschedule()) return false; + } + if (hasWindowStartTime() != other.hasWindowStartTime()) return false; + if (hasWindowStartTime()) { + if (!getWindowStartTime().equals(other.getWindowStartTime())) return false; + } + if (hasWindowEndTime() != other.hasWindowEndTime()) return false; + if (hasWindowEndTime()) { + if (!getWindowEndTime().equals(other.getWindowEndTime())) return false; + } + if (hasLatestWindowStartTime() != other.hasLatestWindowStartTime()) return false; + if (hasLatestWindowStartTime()) { + if (!getLatestWindowStartTime().equals(other.getLatestWindowStartTime())) return false; + } + if (hasMaintenanceStatus() != other.hasMaintenanceStatus()) return false; + if (hasMaintenanceStatus()) { + if (maintenanceStatus_ != other.maintenanceStatus_) return false; + } + if (!getUnknownFields().equals(other.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 (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + } + if (hasCanReschedule()) { + hash = (37 * hash) + CAN_RESCHEDULE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCanReschedule()); + } + if (hasWindowStartTime()) { + hash = (37 * hash) + WINDOW_START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getWindowStartTime().hashCode(); + } + if (hasWindowEndTime()) { + hash = (37 * hash) + WINDOW_END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getWindowEndTime().hashCode(); + } + if (hasLatestWindowStartTime()) { + hash = (37 * hash) + LATEST_WINDOW_START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getLatestWindowStartTime().hashCode(); + } + if (hasMaintenanceStatus()) { + hash = (37 * hash) + MAINTENANCE_STATUS_FIELD_NUMBER; + hash = (53 * hash) + maintenanceStatus_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.tpu.v2alpha1.UpcomingMaintenance parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2alpha1.UpcomingMaintenance parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2alpha1.UpcomingMaintenance parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2alpha1.UpcomingMaintenance parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2alpha1.UpcomingMaintenance parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.tpu.v2alpha1.UpcomingMaintenance parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.tpu.v2alpha1.UpcomingMaintenance parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2alpha1.UpcomingMaintenance parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2alpha1.UpcomingMaintenance parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2alpha1.UpcomingMaintenance parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.tpu.v2alpha1.UpcomingMaintenance parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.tpu.v2alpha1.UpcomingMaintenance parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.tpu.v2alpha1.UpcomingMaintenance prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Upcoming Maintenance notification information.
    +   * 
    + * + * Protobuf type {@code google.cloud.tpu.v2alpha1.UpcomingMaintenance} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.tpu.v2alpha1.UpcomingMaintenance) + com.google.cloud.tpu.v2alpha1.UpcomingMaintenanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_UpcomingMaintenance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_UpcomingMaintenance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2alpha1.UpcomingMaintenance.class, + com.google.cloud.tpu.v2alpha1.UpcomingMaintenance.Builder.class); + } + + // Construct using com.google.cloud.tpu.v2alpha1.UpcomingMaintenance.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + type_ = 0; + canReschedule_ = false; + windowStartTime_ = ""; + windowEndTime_ = ""; + latestWindowStartTime_ = ""; + maintenanceStatus_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_UpcomingMaintenance_descriptor; + } + + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.UpcomingMaintenance getDefaultInstanceForType() { + return com.google.cloud.tpu.v2alpha1.UpcomingMaintenance.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.UpcomingMaintenance build() { + com.google.cloud.tpu.v2alpha1.UpcomingMaintenance result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.UpcomingMaintenance buildPartial() { + com.google.cloud.tpu.v2alpha1.UpcomingMaintenance result = + new com.google.cloud.tpu.v2alpha1.UpcomingMaintenance(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.tpu.v2alpha1.UpcomingMaintenance result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.canReschedule_ = canReschedule_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.windowStartTime_ = windowStartTime_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.windowEndTime_ = windowEndTime_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.latestWindowStartTime_ = latestWindowStartTime_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.maintenanceStatus_ = maintenanceStatus_; + 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.tpu.v2alpha1.UpcomingMaintenance) { + return mergeFrom((com.google.cloud.tpu.v2alpha1.UpcomingMaintenance) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.UpcomingMaintenance other) { + if (other == com.google.cloud.tpu.v2alpha1.UpcomingMaintenance.getDefaultInstance()) + return this; + if (other.hasType()) { + setType(other.getType()); + } + if (other.hasCanReschedule()) { + setCanReschedule(other.getCanReschedule()); + } + if (other.hasWindowStartTime()) { + windowStartTime_ = other.windowStartTime_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasWindowEndTime()) { + windowEndTime_ = other.windowEndTime_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasLatestWindowStartTime()) { + latestWindowStartTime_ = other.latestWindowStartTime_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasMaintenanceStatus()) { + setMaintenanceStatus(other.getMaintenanceStatus()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 40: + { + canReschedule_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 40 + case 50: + { + windowStartTime_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 50 + case 58: + { + windowEndTime_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 58 + case 66: + { + latestWindowStartTime_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 66 + case 72: + { + maintenanceStatus_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 72 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int type_ = 0; + /** + * + * + *
    +     * Defines the type of maintenance.
    +     * 
    + * + * optional .google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceType type = 1; + * + * + * @return Whether the type field is set. + */ + @java.lang.Override + public boolean hasType() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +     * Defines the type of maintenance.
    +     * 
    + * + * optional .google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceType type = 1; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
    +     * Defines the type of maintenance.
    +     * 
    + * + * optional .google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceType type = 1; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Defines the type of maintenance.
    +     * 
    + * + * optional .google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceType type = 1; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceType getType() { + com.google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceType result = + com.google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceType.forNumber(type_); + return result == null + ? com.google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceType.UNRECOGNIZED + : result; + } + /** + * + * + *
    +     * Defines the type of maintenance.
    +     * 
    + * + * optional .google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceType type = 1; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType( + com.google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Defines the type of maintenance.
    +     * 
    + * + * optional .google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceType type = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000001); + type_ = 0; + onChanged(); + return this; + } + + private boolean canReschedule_; + /** + * + * + *
    +     * Indicates if the maintenance can be customer triggered.
    +     * 
    + * + * optional bool can_reschedule = 5; + * + * @return Whether the canReschedule field is set. + */ + @java.lang.Override + public boolean hasCanReschedule() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
    +     * Indicates if the maintenance can be customer triggered.
    +     * 
    + * + * optional bool can_reschedule = 5; + * + * @return The canReschedule. + */ + @java.lang.Override + public boolean getCanReschedule() { + return canReschedule_; + } + /** + * + * + *
    +     * Indicates if the maintenance can be customer triggered.
    +     * 
    + * + * optional bool can_reschedule = 5; + * + * @param value The canReschedule to set. + * @return This builder for chaining. + */ + public Builder setCanReschedule(boolean value) { + + canReschedule_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Indicates if the maintenance can be customer triggered.
    +     * 
    + * + * optional bool can_reschedule = 5; + * + * @return This builder for chaining. + */ + public Builder clearCanReschedule() { + bitField0_ = (bitField0_ & ~0x00000002); + canReschedule_ = false; + onChanged(); + return this; + } + + private java.lang.Object windowStartTime_ = ""; + /** + * + * + *
    +     * The current start time of the maintenance window.
    +     * This timestamp value is in RFC3339 text format.
    +     * 
    + * + * optional string window_start_time = 6; + * + * @return Whether the windowStartTime field is set. + */ + public boolean hasWindowStartTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +     * The current start time of the maintenance window.
    +     * This timestamp value is in RFC3339 text format.
    +     * 
    + * + * optional string window_start_time = 6; + * + * @return The windowStartTime. + */ + public java.lang.String getWindowStartTime() { + java.lang.Object ref = windowStartTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + windowStartTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * The current start time of the maintenance window.
    +     * This timestamp value is in RFC3339 text format.
    +     * 
    + * + * optional string window_start_time = 6; + * + * @return The bytes for windowStartTime. + */ + public com.google.protobuf.ByteString getWindowStartTimeBytes() { + java.lang.Object ref = windowStartTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + windowStartTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * The current start time of the maintenance window.
    +     * This timestamp value is in RFC3339 text format.
    +     * 
    + * + * optional string window_start_time = 6; + * + * @param value The windowStartTime to set. + * @return This builder for chaining. + */ + public Builder setWindowStartTime(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + windowStartTime_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * The current start time of the maintenance window.
    +     * This timestamp value is in RFC3339 text format.
    +     * 
    + * + * optional string window_start_time = 6; + * + * @return This builder for chaining. + */ + public Builder clearWindowStartTime() { + windowStartTime_ = getDefaultInstance().getWindowStartTime(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +     * The current start time of the maintenance window.
    +     * This timestamp value is in RFC3339 text format.
    +     * 
    + * + * optional string window_start_time = 6; + * + * @param value The bytes for windowStartTime to set. + * @return This builder for chaining. + */ + public Builder setWindowStartTimeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + windowStartTime_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object windowEndTime_ = ""; + /** + * + * + *
    +     * The time by which the maintenance disruption will be completed.
    +     * This timestamp value is in RFC3339 text format.
    +     * 
    + * + * optional string window_end_time = 7; + * + * @return Whether the windowEndTime field is set. + */ + public boolean hasWindowEndTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
    +     * The time by which the maintenance disruption will be completed.
    +     * This timestamp value is in RFC3339 text format.
    +     * 
    + * + * optional string window_end_time = 7; + * + * @return The windowEndTime. + */ + public java.lang.String getWindowEndTime() { + java.lang.Object ref = windowEndTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + windowEndTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * The time by which the maintenance disruption will be completed.
    +     * This timestamp value is in RFC3339 text format.
    +     * 
    + * + * optional string window_end_time = 7; + * + * @return The bytes for windowEndTime. + */ + public com.google.protobuf.ByteString getWindowEndTimeBytes() { + java.lang.Object ref = windowEndTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + windowEndTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * The time by which the maintenance disruption will be completed.
    +     * This timestamp value is in RFC3339 text format.
    +     * 
    + * + * optional string window_end_time = 7; + * + * @param value The windowEndTime to set. + * @return This builder for chaining. + */ + public Builder setWindowEndTime(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + windowEndTime_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +     * The time by which the maintenance disruption will be completed.
    +     * This timestamp value is in RFC3339 text format.
    +     * 
    + * + * optional string window_end_time = 7; + * + * @return This builder for chaining. + */ + public Builder clearWindowEndTime() { + windowEndTime_ = getDefaultInstance().getWindowEndTime(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
    +     * The time by which the maintenance disruption will be completed.
    +     * This timestamp value is in RFC3339 text format.
    +     * 
    + * + * optional string window_end_time = 7; + * + * @param value The bytes for windowEndTime to set. + * @return This builder for chaining. + */ + public Builder setWindowEndTimeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + windowEndTime_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object latestWindowStartTime_ = ""; + /** + * + * + *
    +     * The latest time for the planned maintenance window to start.
    +     * This timestamp value is in RFC3339 text format.
    +     * 
    + * + * optional string latest_window_start_time = 8; + * + * @return Whether the latestWindowStartTime field is set. + */ + public boolean hasLatestWindowStartTime() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
    +     * The latest time for the planned maintenance window to start.
    +     * This timestamp value is in RFC3339 text format.
    +     * 
    + * + * optional string latest_window_start_time = 8; + * + * @return The latestWindowStartTime. + */ + public java.lang.String getLatestWindowStartTime() { + java.lang.Object ref = latestWindowStartTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + latestWindowStartTime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * The latest time for the planned maintenance window to start.
    +     * This timestamp value is in RFC3339 text format.
    +     * 
    + * + * optional string latest_window_start_time = 8; + * + * @return The bytes for latestWindowStartTime. + */ + public com.google.protobuf.ByteString getLatestWindowStartTimeBytes() { + java.lang.Object ref = latestWindowStartTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + latestWindowStartTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * The latest time for the planned maintenance window to start.
    +     * This timestamp value is in RFC3339 text format.
    +     * 
    + * + * optional string latest_window_start_time = 8; + * + * @param value The latestWindowStartTime to set. + * @return This builder for chaining. + */ + public Builder setLatestWindowStartTime(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + latestWindowStartTime_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
    +     * The latest time for the planned maintenance window to start.
    +     * This timestamp value is in RFC3339 text format.
    +     * 
    + * + * optional string latest_window_start_time = 8; + * + * @return This builder for chaining. + */ + public Builder clearLatestWindowStartTime() { + latestWindowStartTime_ = getDefaultInstance().getLatestWindowStartTime(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
    +     * The latest time for the planned maintenance window to start.
    +     * This timestamp value is in RFC3339 text format.
    +     * 
    + * + * optional string latest_window_start_time = 8; + * + * @param value The bytes for latestWindowStartTime to set. + * @return This builder for chaining. + */ + public Builder setLatestWindowStartTimeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + latestWindowStartTime_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int maintenanceStatus_ = 0; + /** + * + * + *
    +     * The status of the maintenance.
    +     * 
    + * + * + * optional .google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceStatus maintenance_status = 9; + * + * + * @return Whether the maintenanceStatus field is set. + */ + @java.lang.Override + public boolean hasMaintenanceStatus() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
    +     * The status of the maintenance.
    +     * 
    + * + * + * optional .google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceStatus maintenance_status = 9; + * + * + * @return The enum numeric value on the wire for maintenanceStatus. + */ + @java.lang.Override + public int getMaintenanceStatusValue() { + return maintenanceStatus_; + } + /** + * + * + *
    +     * The status of the maintenance.
    +     * 
    + * + * + * optional .google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceStatus maintenance_status = 9; + * + * + * @param value The enum numeric value on the wire for maintenanceStatus to set. + * @return This builder for chaining. + */ + public Builder setMaintenanceStatusValue(int value) { + maintenanceStatus_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
    +     * The status of the maintenance.
    +     * 
    + * + * + * optional .google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceStatus maintenance_status = 9; + * + * + * @return The maintenanceStatus. + */ + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceStatus + getMaintenanceStatus() { + com.google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceStatus result = + com.google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceStatus.forNumber( + maintenanceStatus_); + return result == null + ? com.google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceStatus.UNRECOGNIZED + : result; + } + /** + * + * + *
    +     * The status of the maintenance.
    +     * 
    + * + * + * optional .google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceStatus maintenance_status = 9; + * + * + * @param value The maintenanceStatus to set. + * @return This builder for chaining. + */ + public Builder setMaintenanceStatus( + com.google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceStatus value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + maintenanceStatus_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * The status of the maintenance.
    +     * 
    + * + * + * optional .google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceStatus maintenance_status = 9; + * + * + * @return This builder for chaining. + */ + public Builder clearMaintenanceStatus() { + bitField0_ = (bitField0_ & ~0x00000020); + maintenanceStatus_ = 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.tpu.v2alpha1.UpcomingMaintenance) + } + + // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.UpcomingMaintenance) + private static final com.google.cloud.tpu.v2alpha1.UpcomingMaintenance DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.UpcomingMaintenance(); + } + + public static com.google.cloud.tpu.v2alpha1.UpcomingMaintenance getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpcomingMaintenance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.tpu.v2alpha1.UpcomingMaintenance getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/UpcomingMaintenanceOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/UpcomingMaintenanceOrBuilder.java new file mode 100644 index 000000000000..ff93e9219fc1 --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/UpcomingMaintenanceOrBuilder.java @@ -0,0 +1,251 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v2alpha1/cloud_tpu.proto + +// Protobuf Java Version: 3.25.5 +package com.google.cloud.tpu.v2alpha1; + +public interface UpcomingMaintenanceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.tpu.v2alpha1.UpcomingMaintenance) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Defines the type of maintenance.
    +   * 
    + * + * optional .google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceType type = 1; + * + * @return Whether the type field is set. + */ + boolean hasType(); + /** + * + * + *
    +   * Defines the type of maintenance.
    +   * 
    + * + * optional .google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceType type = 1; + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * + * + *
    +   * Defines the type of maintenance.
    +   * 
    + * + * optional .google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceType type = 1; + * + * @return The type. + */ + com.google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceType getType(); + + /** + * + * + *
    +   * Indicates if the maintenance can be customer triggered.
    +   * 
    + * + * optional bool can_reschedule = 5; + * + * @return Whether the canReschedule field is set. + */ + boolean hasCanReschedule(); + /** + * + * + *
    +   * Indicates if the maintenance can be customer triggered.
    +   * 
    + * + * optional bool can_reschedule = 5; + * + * @return The canReschedule. + */ + boolean getCanReschedule(); + + /** + * + * + *
    +   * The current start time of the maintenance window.
    +   * This timestamp value is in RFC3339 text format.
    +   * 
    + * + * optional string window_start_time = 6; + * + * @return Whether the windowStartTime field is set. + */ + boolean hasWindowStartTime(); + /** + * + * + *
    +   * The current start time of the maintenance window.
    +   * This timestamp value is in RFC3339 text format.
    +   * 
    + * + * optional string window_start_time = 6; + * + * @return The windowStartTime. + */ + java.lang.String getWindowStartTime(); + /** + * + * + *
    +   * The current start time of the maintenance window.
    +   * This timestamp value is in RFC3339 text format.
    +   * 
    + * + * optional string window_start_time = 6; + * + * @return The bytes for windowStartTime. + */ + com.google.protobuf.ByteString getWindowStartTimeBytes(); + + /** + * + * + *
    +   * The time by which the maintenance disruption will be completed.
    +   * This timestamp value is in RFC3339 text format.
    +   * 
    + * + * optional string window_end_time = 7; + * + * @return Whether the windowEndTime field is set. + */ + boolean hasWindowEndTime(); + /** + * + * + *
    +   * The time by which the maintenance disruption will be completed.
    +   * This timestamp value is in RFC3339 text format.
    +   * 
    + * + * optional string window_end_time = 7; + * + * @return The windowEndTime. + */ + java.lang.String getWindowEndTime(); + /** + * + * + *
    +   * The time by which the maintenance disruption will be completed.
    +   * This timestamp value is in RFC3339 text format.
    +   * 
    + * + * optional string window_end_time = 7; + * + * @return The bytes for windowEndTime. + */ + com.google.protobuf.ByteString getWindowEndTimeBytes(); + + /** + * + * + *
    +   * The latest time for the planned maintenance window to start.
    +   * This timestamp value is in RFC3339 text format.
    +   * 
    + * + * optional string latest_window_start_time = 8; + * + * @return Whether the latestWindowStartTime field is set. + */ + boolean hasLatestWindowStartTime(); + /** + * + * + *
    +   * The latest time for the planned maintenance window to start.
    +   * This timestamp value is in RFC3339 text format.
    +   * 
    + * + * optional string latest_window_start_time = 8; + * + * @return The latestWindowStartTime. + */ + java.lang.String getLatestWindowStartTime(); + /** + * + * + *
    +   * The latest time for the planned maintenance window to start.
    +   * This timestamp value is in RFC3339 text format.
    +   * 
    + * + * optional string latest_window_start_time = 8; + * + * @return The bytes for latestWindowStartTime. + */ + com.google.protobuf.ByteString getLatestWindowStartTimeBytes(); + + /** + * + * + *
    +   * The status of the maintenance.
    +   * 
    + * + * + * optional .google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceStatus maintenance_status = 9; + * + * + * @return Whether the maintenanceStatus field is set. + */ + boolean hasMaintenanceStatus(); + /** + * + * + *
    +   * The status of the maintenance.
    +   * 
    + * + * + * optional .google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceStatus maintenance_status = 9; + * + * + * @return The enum numeric value on the wire for maintenanceStatus. + */ + int getMaintenanceStatusValue(); + /** + * + * + *
    +   * The status of the maintenance.
    +   * 
    + * + * + * optional .google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceStatus maintenance_status = 9; + * + * + * @return The maintenanceStatus. + */ + com.google.cloud.tpu.v2alpha1.UpcomingMaintenance.MaintenanceStatus getMaintenanceStatus(); +} diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/proto/google/cloud/tpu/v2alpha1/cloud_tpu.proto b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/proto/google/cloud/tpu/v2alpha1/cloud_tpu.proto index 7bddd747f2ec..657a871286bc 100644 --- a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/proto/google/cloud/tpu/v2alpha1/cloud_tpu.proto +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/proto/google/cloud/tpu/v2alpha1/cloud_tpu.proto @@ -19,6 +19,7 @@ package google.cloud.tpu.v2alpha1; 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/longrunning/operations.proto"; import "google/protobuf/duration.proto"; @@ -119,6 +120,19 @@ service Tpu { }; } + // Perform manual maintenance on a node. + rpc PerformMaintenance(PerformMaintenanceRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v2alpha1/{name=projects/*/locations/*/nodes/*}:performMaintenance" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "Node" + metadata_type: "OperationMetadata" + }; + } + // Lists queued resources. rpc ListQueuedResources(ListQueuedResourcesRequest) returns (ListQueuedResourcesResponse) { @@ -178,6 +192,19 @@ service Tpu { }; } + // Perform manual maintenance on specific nodes of a QueuedResource. + rpc PerformMaintenanceQueuedResource(PerformMaintenanceQueuedResourceRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v2alpha1/{name=projects/*/locations/*/queuedResources/*}:performMaintenanceQueuedResource" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "QueuedResource" + metadata_type: "OperationMetadata" + }; + } + // Generates the Cloud TPU service identity for the project. rpc GenerateServiceIdentity(GenerateServiceIdentityRequest) returns (GenerateServiceIdentityResponse) { @@ -230,6 +257,14 @@ service Tpu { }; } + // Retrieves the reservations for the given project in the given location. + rpc ListReservations(ListReservationsRequest) + returns (ListReservationsResponse) { + option (google.api.http) = { + get: "/v2alpha1/{parent=projects/*/locations/*}/reservations" + }; + } + // Simulates a maintenance event. rpc SimulateMaintenanceEvent(SimulateMaintenanceEventRequest) returns (google.longrunning.Operation) { @@ -307,6 +342,9 @@ message SchedulingConfig { // Whether the node is created under a reservation. bool reserved = 2; + + // Optional. Defines whether the node is Spot VM. + bool spot = 3 [(google.api.field_behavior) = OPTIONAL]; } // A network endpoint over which a TPU worker can be reached. @@ -347,6 +385,10 @@ message NetworkConfig { // destination or source IPs. This is required if you plan to use the TPU // workers to forward routes. bool can_ip_forward = 4; + + // Optional. Specifies networking queue count for TPU VM instance's network + // interface. + int32 queue_count = 6 [(google.api.field_behavior) = OPTIONAL]; } // A service account. @@ -415,6 +457,9 @@ message Node { // TPU node is currently unhiding. UNHIDING = 15; + + // TPU node has unknown state after a failed repair. + UNKNOWN = 16; } // Health defines the status of a TPU node as reported by @@ -474,9 +519,18 @@ message Node { // Required. The runtime version running in the Node. string runtime_version = 11 [(google.api.field_behavior) = REQUIRED]; - // Network configurations for the TPU node. + // Network configurations for the TPU node. network_config and network_configs + // are mutually exclusive, you can only specify one of them. If both are + // specified, an error will be returned. NetworkConfig network_config = 36; + // Optional. Repeated network configurations for the TPU node. This field is + // used to specify multiple networks configs for the TPU node. network_config + // and network_configs are mutually exclusive, you can only specify one of + // them. If both are specified, an error will be returned. + repeated NetworkConfig network_configs = 50 + [(google.api.field_behavior) = OPTIONAL]; + // The CIDR block that the TPU node will use when selecting an IP address. // This CIDR block must be a /29 block; the Compute Engine networks API // forbids a smaller block, and using a larger block would be wasteful (a @@ -543,8 +597,15 @@ message Node { // Output only. Whether the Node belongs to a Multislice group. bool multislice_node = 47 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Optional. Whether Autocheckpoint is enabled. + bool autocheckpoint_enabled = 48 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Boot disk configuration. BootDiskConfig boot_disk_config = 49 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Upcoming maintenance on this TPU node. + UpcomingMaintenance upcoming_maintenance = 51 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // A QueuedResource represents a request for resources that will be placed @@ -565,6 +626,20 @@ message QueuedResource { // field must be populated in case of multi-node requests instead of // node_id. It's an error to specify both node_id and multi_node_params. message MultiNodeParams { + // The workload type for the multi-node request. + enum WorkloadType { + // Not specified. + WORKLOAD_TYPE_UNSPECIFIED = 0; + + // All of the nodes are available most of the time. + // Recommended for training workloads. + THROUGHPUT_OPTIMIZED = 1; + + // Most of the nodes are available all of the time. + // Recommended for serving workloads. + AVAILABILITY_OPTIMIZED = 2; + } + // Required. Number of nodes with this spec. The system will attempt // to provison "node_count" nodes as part of the request. // This needs to be > 1. @@ -576,6 +651,9 @@ message QueuedResource { // created will be "np-0", "np-1", "np-2". If this field is not // provided we use queued_resource_id as the node_id_prefix. string node_id_prefix = 2; + + // Optional. The workload type for the multi-node request. + WorkloadType workload_type = 4 [(google.api.field_behavior) = OPTIONAL]; } // Required. The parent resource name. @@ -653,6 +731,10 @@ message QueuedResource { (google.api.field_behavior) = IMMUTABLE ]; + // Output only. The time when the QueuedResource was created. + google.protobuf.Timestamp create_time = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Resource specification. oneof resource { // Defines a TPU resource. @@ -805,7 +887,9 @@ message QueuedResourceState { SuspendedData suspended_data = 9; } - // Output only. The initiator of the QueuedResources's current state. + // Output only. The initiator of the QueuedResources's current state. Used to + // indicate whether the SUSPENDING/SUSPENDED state was initiated by the user + // or the service. StateInitiator state_initiator = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; } @@ -1267,6 +1351,145 @@ message SimulateMaintenanceEventRequest { repeated string worker_ids = 2; } +// Request for +// [PerformMaintenance][google.cloud.tpu.v2alpha1.Tpu.PerformMaintenance]. +message PerformMaintenanceRequest { + // Required. The resource name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "tpu.googleapis.com/Node" } + ]; +} + +// Request for +// [PerformMaintenanceQueuedResource][google.cloud.tpu.v2alpha1.Tpu.PerformMaintenanceQueuedResource]. +message PerformMaintenanceQueuedResourceRequest { + // Required. The name of the QueuedResource which holds the nodes to perform + // maintenance on. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "tpu.googleapis.com/QueuedResource" + } + ]; + + // The names of the nodes to perform maintenance on. + repeated string node_names = 2; +} + +// A reservation describes the amount of a resource 'allotted' for a defined +// period of time. +message Reservation { + option (google.api.resource) = { + type: "tpu.googleapis.com/Reservation" + pattern: "projects/{project}/locations/{location}/reservations/{reservation}" + }; + + // Details of a standard reservation. + message Standard { + // Units in which capacity for a reservation is measured. + enum CapacityUnits { + // The capacity units is not known/set. + CAPACITY_UNITS_UNSPECIFIED = 0; + + // The capacity unit is set to CORES. + CORES = 1; + + // The capacity unit is set to CHIPS. + CHIPS = 2; + } + + // Usage details of a reservation. + message Usage { + // The real-time value of usage within the reservation, with the unit + // specified in field capacity_units. + int64 total = 1; + } + + // The size of the reservation, in the units specified in the + // 'capacity_units' field. + int32 size = 1; + + // Capacity units this reservation is measured in. + CapacityUnits capacity_units = 2; + + // The resource type of the reservation. + string resource_type = 3; + + // The start and end time of the reservation. + google.type.Interval interval = 4; + + // The current usage of the reservation. + Usage usage = 5; + } + + // State of the Reservation. + enum State { + // The Reservation state is unspecified. + STATE_UNSPECIFIED = 0; + + // The Reservation has been approved. + APPROVED = 3; + + // The Reservation is being provisioned. + PROVISIONING = 4; + + // The Reservation is active. + ACTIVE = 5; + + // The Reservation is being deprovisioned. + DEPROVISIONING = 6; + + // The Reservation is past its end date. + EXPIRED = 7; + + // The Reservation encountered a failure during mutation. + FAILED = 8; + } + + // The reservation name with the format: + // projects/{projectID}/locations/{location}/reservations/{reservationID} + string name = 1; + + // The kind of reservation. + oneof kind { + // A standard reservation. + Standard standard = 2; + } + + // Output only. The state of the Reservation. + State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request for +// [ListReservations][google.cloud.tpu.v2alpha1.Tpu.ListReservations]. +message ListReservationsRequest { + // Required. The parent for reservations. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "tpu.googleapis.com/Reservation" + } + ]; + + // The maximum number of items to return. Defaults to 0 if not specified, + // which means no limit. + int32 page_size = 2; + + // The next_page_token value returned from a previous List request, if any. + string page_token = 3; +} + +// Response for +// [ListReservations][google.cloud.tpu.v2alpha1.Tpu.ListReservations]. +message ListReservationsResponse { + // The listed reservations. + repeated Reservation reservations = 1; + + // The next page token or empty if none. + string next_page_token = 2; +} + // A TPU accelerator configuration. message AcceleratorConfig { // TPU type. @@ -1282,6 +1505,15 @@ message AcceleratorConfig { // TPU v4. V4 = 7; + + // TPU v5lite pod. + V5LITE_POD = 9; + + // TPU v5. + V5P = 10; + + // TPU v6e. + V6E = 11; } // Required. Type of TPU. @@ -1328,3 +1560,53 @@ message CustomerEncryptionKey { string kms_key_name = 7; } } + +// Upcoming Maintenance notification information. +message UpcomingMaintenance { + // The type of maintenance for this notification. + enum MaintenanceType { + // No type specified. Do not use this value. + UNKNOWN_TYPE = 0; + + // Scheduled maintenance (e.g. maintenance after uptime guarantee is + // complete). + SCHEDULED = 1; + + // Unscheduled maintenance (e.g. emergency maintenance during + // uptime guarantee). + UNSCHEDULED = 2; + } + + // The status of the maintenance for this notification. + enum MaintenanceStatus { + // Unknown maintenance status. Do not use this value. + UNKNOWN = 0; + + // There is pending maintenance. + PENDING = 1; + + // There is ongoing maintenance on this VM. + ONGOING = 2; + } + + // Defines the type of maintenance. + optional MaintenanceType type = 1; + + // Indicates if the maintenance can be customer triggered. + optional bool can_reschedule = 5; + + // The current start time of the maintenance window. + // This timestamp value is in RFC3339 text format. + optional string window_start_time = 6; + + // The time by which the maintenance disruption will be completed. + // This timestamp value is in RFC3339 text format. + optional string window_end_time = 7; + + // The latest time for the planned maintenance window to start. + // This timestamp value is in RFC3339 text format. + optional string latest_window_start_time = 8; + + // The status of the maintenance. + optional MaintenanceStatus maintenance_status = 9; +} diff --git a/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/createqueuedresource/AsyncCreateQueuedResource.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/createqueuedresource/AsyncCreateQueuedResource.java new file mode 100644 index 000000000000..f7c02efd0d32 --- /dev/null +++ b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/createqueuedresource/AsyncCreateQueuedResource.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.tpu.v2.samples; + +// [START tpu_v2_generated_Tpu_CreateQueuedResource_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tpu.v2.CreateQueuedResourceRequest; +import com.google.cloud.tpu.v2.LocationName; +import com.google.cloud.tpu.v2.QueuedResource; +import com.google.cloud.tpu.v2.TpuClient; +import com.google.longrunning.Operation; + +public class AsyncCreateQueuedResource { + + public static void main(String[] args) throws Exception { + asyncCreateQueuedResource(); + } + + public static void asyncCreateQueuedResource() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TpuClient tpuClient = TpuClient.create()) { + CreateQueuedResourceRequest request = + CreateQueuedResourceRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setQueuedResourceId("queuedResourceId437646236") + .setQueuedResource(QueuedResource.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = tpuClient.createQueuedResourceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END tpu_v2_generated_Tpu_CreateQueuedResource_async] diff --git a/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/createqueuedresource/AsyncCreateQueuedResourceLRO.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/createqueuedresource/AsyncCreateQueuedResourceLRO.java new file mode 100644 index 000000000000..b5b9f6bb783f --- /dev/null +++ b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/createqueuedresource/AsyncCreateQueuedResourceLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.tpu.v2.samples; + +// [START tpu_v2_generated_Tpu_CreateQueuedResource_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.tpu.v2.CreateQueuedResourceRequest; +import com.google.cloud.tpu.v2.LocationName; +import com.google.cloud.tpu.v2.OperationMetadata; +import com.google.cloud.tpu.v2.QueuedResource; +import com.google.cloud.tpu.v2.TpuClient; + +public class AsyncCreateQueuedResourceLRO { + + public static void main(String[] args) throws Exception { + asyncCreateQueuedResourceLRO(); + } + + public static void asyncCreateQueuedResourceLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TpuClient tpuClient = TpuClient.create()) { + CreateQueuedResourceRequest request = + CreateQueuedResourceRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setQueuedResourceId("queuedResourceId437646236") + .setQueuedResource(QueuedResource.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + tpuClient.createQueuedResourceOperationCallable().futureCall(request); + // Do something. + QueuedResource response = future.get(); + } + } +} +// [END tpu_v2_generated_Tpu_CreateQueuedResource_LRO_async] diff --git a/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/createqueuedresource/SyncCreateQueuedResource.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/createqueuedresource/SyncCreateQueuedResource.java new file mode 100644 index 000000000000..da4ac39d8414 --- /dev/null +++ b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/createqueuedresource/SyncCreateQueuedResource.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.tpu.v2.samples; + +// [START tpu_v2_generated_Tpu_CreateQueuedResource_sync] +import com.google.cloud.tpu.v2.CreateQueuedResourceRequest; +import com.google.cloud.tpu.v2.LocationName; +import com.google.cloud.tpu.v2.QueuedResource; +import com.google.cloud.tpu.v2.TpuClient; + +public class SyncCreateQueuedResource { + + public static void main(String[] args) throws Exception { + syncCreateQueuedResource(); + } + + public static void syncCreateQueuedResource() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TpuClient tpuClient = TpuClient.create()) { + CreateQueuedResourceRequest request = + CreateQueuedResourceRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setQueuedResourceId("queuedResourceId437646236") + .setQueuedResource(QueuedResource.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + QueuedResource response = tpuClient.createQueuedResourceAsync(request).get(); + } + } +} +// [END tpu_v2_generated_Tpu_CreateQueuedResource_sync] diff --git a/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/createqueuedresource/SyncCreateQueuedResourceLocationnameQueuedresourceString.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/createqueuedresource/SyncCreateQueuedResourceLocationnameQueuedresourceString.java new file mode 100644 index 000000000000..9394486289e2 --- /dev/null +++ b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/createqueuedresource/SyncCreateQueuedResourceLocationnameQueuedresourceString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.tpu.v2.samples; + +// [START tpu_v2_generated_Tpu_CreateQueuedResource_LocationnameQueuedresourceString_sync] +import com.google.cloud.tpu.v2.LocationName; +import com.google.cloud.tpu.v2.QueuedResource; +import com.google.cloud.tpu.v2.TpuClient; + +public class SyncCreateQueuedResourceLocationnameQueuedresourceString { + + public static void main(String[] args) throws Exception { + syncCreateQueuedResourceLocationnameQueuedresourceString(); + } + + public static void syncCreateQueuedResourceLocationnameQueuedresourceString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TpuClient tpuClient = TpuClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + QueuedResource queuedResource = QueuedResource.newBuilder().build(); + String queuedResourceId = "queuedResourceId437646236"; + QueuedResource response = + tpuClient.createQueuedResourceAsync(parent, queuedResource, queuedResourceId).get(); + } + } +} +// [END tpu_v2_generated_Tpu_CreateQueuedResource_LocationnameQueuedresourceString_sync] diff --git a/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/createqueuedresource/SyncCreateQueuedResourceStringQueuedresourceString.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/createqueuedresource/SyncCreateQueuedResourceStringQueuedresourceString.java new file mode 100644 index 000000000000..c2efde70b48c --- /dev/null +++ b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/createqueuedresource/SyncCreateQueuedResourceStringQueuedresourceString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.tpu.v2.samples; + +// [START tpu_v2_generated_Tpu_CreateQueuedResource_StringQueuedresourceString_sync] +import com.google.cloud.tpu.v2.LocationName; +import com.google.cloud.tpu.v2.QueuedResource; +import com.google.cloud.tpu.v2.TpuClient; + +public class SyncCreateQueuedResourceStringQueuedresourceString { + + public static void main(String[] args) throws Exception { + syncCreateQueuedResourceStringQueuedresourceString(); + } + + public static void syncCreateQueuedResourceStringQueuedresourceString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TpuClient tpuClient = TpuClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + QueuedResource queuedResource = QueuedResource.newBuilder().build(); + String queuedResourceId = "queuedResourceId437646236"; + QueuedResource response = + tpuClient.createQueuedResourceAsync(parent, queuedResource, queuedResourceId).get(); + } + } +} +// [END tpu_v2_generated_Tpu_CreateQueuedResource_StringQueuedresourceString_sync] diff --git a/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/deletequeuedresource/AsyncDeleteQueuedResource.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/deletequeuedresource/AsyncDeleteQueuedResource.java new file mode 100644 index 000000000000..0c9cf853eda8 --- /dev/null +++ b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/deletequeuedresource/AsyncDeleteQueuedResource.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.tpu.v2.samples; + +// [START tpu_v2_generated_Tpu_DeleteQueuedResource_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tpu.v2.DeleteQueuedResourceRequest; +import com.google.cloud.tpu.v2.QueuedResourceName; +import com.google.cloud.tpu.v2.TpuClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteQueuedResource { + + public static void main(String[] args) throws Exception { + asyncDeleteQueuedResource(); + } + + public static void asyncDeleteQueuedResource() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TpuClient tpuClient = TpuClient.create()) { + DeleteQueuedResourceRequest request = + DeleteQueuedResourceRequest.newBuilder() + .setName( + QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString()) + .setRequestId("requestId693933066") + .setForce(true) + .build(); + ApiFuture future = tpuClient.deleteQueuedResourceCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END tpu_v2_generated_Tpu_DeleteQueuedResource_async] diff --git a/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/deletequeuedresource/AsyncDeleteQueuedResourceLRO.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/deletequeuedresource/AsyncDeleteQueuedResourceLRO.java new file mode 100644 index 000000000000..d3cf67e2b961 --- /dev/null +++ b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/deletequeuedresource/AsyncDeleteQueuedResourceLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.tpu.v2.samples; + +// [START tpu_v2_generated_Tpu_DeleteQueuedResource_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.tpu.v2.DeleteQueuedResourceRequest; +import com.google.cloud.tpu.v2.OperationMetadata; +import com.google.cloud.tpu.v2.QueuedResourceName; +import com.google.cloud.tpu.v2.TpuClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteQueuedResourceLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteQueuedResourceLRO(); + } + + public static void asyncDeleteQueuedResourceLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TpuClient tpuClient = TpuClient.create()) { + DeleteQueuedResourceRequest request = + DeleteQueuedResourceRequest.newBuilder() + .setName( + QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString()) + .setRequestId("requestId693933066") + .setForce(true) + .build(); + OperationFuture future = + tpuClient.deleteQueuedResourceOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END tpu_v2_generated_Tpu_DeleteQueuedResource_LRO_async] diff --git a/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/deletequeuedresource/SyncDeleteQueuedResource.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/deletequeuedresource/SyncDeleteQueuedResource.java new file mode 100644 index 000000000000..55f951f01a25 --- /dev/null +++ b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/deletequeuedresource/SyncDeleteQueuedResource.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.tpu.v2.samples; + +// [START tpu_v2_generated_Tpu_DeleteQueuedResource_sync] +import com.google.cloud.tpu.v2.DeleteQueuedResourceRequest; +import com.google.cloud.tpu.v2.QueuedResourceName; +import com.google.cloud.tpu.v2.TpuClient; +import com.google.protobuf.Empty; + +public class SyncDeleteQueuedResource { + + public static void main(String[] args) throws Exception { + syncDeleteQueuedResource(); + } + + public static void syncDeleteQueuedResource() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TpuClient tpuClient = TpuClient.create()) { + DeleteQueuedResourceRequest request = + DeleteQueuedResourceRequest.newBuilder() + .setName( + QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString()) + .setRequestId("requestId693933066") + .setForce(true) + .build(); + tpuClient.deleteQueuedResourceAsync(request).get(); + } + } +} +// [END tpu_v2_generated_Tpu_DeleteQueuedResource_sync] diff --git a/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/deletequeuedresource/SyncDeleteQueuedResourceQueuedresourcename.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/deletequeuedresource/SyncDeleteQueuedResourceQueuedresourcename.java new file mode 100644 index 000000000000..638b2bfe2585 --- /dev/null +++ b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/deletequeuedresource/SyncDeleteQueuedResourceQueuedresourcename.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.tpu.v2.samples; + +// [START tpu_v2_generated_Tpu_DeleteQueuedResource_Queuedresourcename_sync] +import com.google.cloud.tpu.v2.QueuedResourceName; +import com.google.cloud.tpu.v2.TpuClient; +import com.google.protobuf.Empty; + +public class SyncDeleteQueuedResourceQueuedresourcename { + + public static void main(String[] args) throws Exception { + syncDeleteQueuedResourceQueuedresourcename(); + } + + public static void syncDeleteQueuedResourceQueuedresourcename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TpuClient tpuClient = TpuClient.create()) { + QueuedResourceName name = + QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]"); + tpuClient.deleteQueuedResourceAsync(name).get(); + } + } +} +// [END tpu_v2_generated_Tpu_DeleteQueuedResource_Queuedresourcename_sync] diff --git a/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/deletequeuedresource/SyncDeleteQueuedResourceString.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/deletequeuedresource/SyncDeleteQueuedResourceString.java new file mode 100644 index 000000000000..ddd1477a7833 --- /dev/null +++ b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/deletequeuedresource/SyncDeleteQueuedResourceString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.tpu.v2.samples; + +// [START tpu_v2_generated_Tpu_DeleteQueuedResource_String_sync] +import com.google.cloud.tpu.v2.QueuedResourceName; +import com.google.cloud.tpu.v2.TpuClient; +import com.google.protobuf.Empty; + +public class SyncDeleteQueuedResourceString { + + public static void main(String[] args) throws Exception { + syncDeleteQueuedResourceString(); + } + + public static void syncDeleteQueuedResourceString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TpuClient tpuClient = TpuClient.create()) { + String name = + QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString(); + tpuClient.deleteQueuedResourceAsync(name).get(); + } + } +} +// [END tpu_v2_generated_Tpu_DeleteQueuedResource_String_sync] diff --git a/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getqueuedresource/AsyncGetQueuedResource.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getqueuedresource/AsyncGetQueuedResource.java new file mode 100644 index 000000000000..5dcaf9066c0e --- /dev/null +++ b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getqueuedresource/AsyncGetQueuedResource.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.tpu.v2.samples; + +// [START tpu_v2_generated_Tpu_GetQueuedResource_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tpu.v2.GetQueuedResourceRequest; +import com.google.cloud.tpu.v2.QueuedResource; +import com.google.cloud.tpu.v2.QueuedResourceName; +import com.google.cloud.tpu.v2.TpuClient; + +public class AsyncGetQueuedResource { + + public static void main(String[] args) throws Exception { + asyncGetQueuedResource(); + } + + public static void asyncGetQueuedResource() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TpuClient tpuClient = TpuClient.create()) { + GetQueuedResourceRequest request = + GetQueuedResourceRequest.newBuilder() + .setName( + QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString()) + .build(); + ApiFuture future = tpuClient.getQueuedResourceCallable().futureCall(request); + // Do something. + QueuedResource response = future.get(); + } + } +} +// [END tpu_v2_generated_Tpu_GetQueuedResource_async] diff --git a/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getqueuedresource/SyncGetQueuedResource.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getqueuedresource/SyncGetQueuedResource.java new file mode 100644 index 000000000000..e61b6e1f2f45 --- /dev/null +++ b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getqueuedresource/SyncGetQueuedResource.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.tpu.v2.samples; + +// [START tpu_v2_generated_Tpu_GetQueuedResource_sync] +import com.google.cloud.tpu.v2.GetQueuedResourceRequest; +import com.google.cloud.tpu.v2.QueuedResource; +import com.google.cloud.tpu.v2.QueuedResourceName; +import com.google.cloud.tpu.v2.TpuClient; + +public class SyncGetQueuedResource { + + public static void main(String[] args) throws Exception { + syncGetQueuedResource(); + } + + public static void syncGetQueuedResource() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TpuClient tpuClient = TpuClient.create()) { + GetQueuedResourceRequest request = + GetQueuedResourceRequest.newBuilder() + .setName( + QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString()) + .build(); + QueuedResource response = tpuClient.getQueuedResource(request); + } + } +} +// [END tpu_v2_generated_Tpu_GetQueuedResource_sync] diff --git a/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getqueuedresource/SyncGetQueuedResourceQueuedresourcename.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getqueuedresource/SyncGetQueuedResourceQueuedresourcename.java new file mode 100644 index 000000000000..f769ed2a555e --- /dev/null +++ b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getqueuedresource/SyncGetQueuedResourceQueuedresourcename.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.tpu.v2.samples; + +// [START tpu_v2_generated_Tpu_GetQueuedResource_Queuedresourcename_sync] +import com.google.cloud.tpu.v2.QueuedResource; +import com.google.cloud.tpu.v2.QueuedResourceName; +import com.google.cloud.tpu.v2.TpuClient; + +public class SyncGetQueuedResourceQueuedresourcename { + + public static void main(String[] args) throws Exception { + syncGetQueuedResourceQueuedresourcename(); + } + + public static void syncGetQueuedResourceQueuedresourcename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TpuClient tpuClient = TpuClient.create()) { + QueuedResourceName name = + QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]"); + QueuedResource response = tpuClient.getQueuedResource(name); + } + } +} +// [END tpu_v2_generated_Tpu_GetQueuedResource_Queuedresourcename_sync] diff --git a/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getqueuedresource/SyncGetQueuedResourceString.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getqueuedresource/SyncGetQueuedResourceString.java new file mode 100644 index 000000000000..a280b5b08e61 --- /dev/null +++ b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/getqueuedresource/SyncGetQueuedResourceString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.tpu.v2.samples; + +// [START tpu_v2_generated_Tpu_GetQueuedResource_String_sync] +import com.google.cloud.tpu.v2.QueuedResource; +import com.google.cloud.tpu.v2.QueuedResourceName; +import com.google.cloud.tpu.v2.TpuClient; + +public class SyncGetQueuedResourceString { + + public static void main(String[] args) throws Exception { + syncGetQueuedResourceString(); + } + + public static void syncGetQueuedResourceString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TpuClient tpuClient = TpuClient.create()) { + String name = + QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString(); + QueuedResource response = tpuClient.getQueuedResource(name); + } + } +} +// [END tpu_v2_generated_Tpu_GetQueuedResource_String_sync] diff --git a/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listqueuedresources/AsyncListQueuedResources.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listqueuedresources/AsyncListQueuedResources.java new file mode 100644 index 000000000000..d204f4cc670e --- /dev/null +++ b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listqueuedresources/AsyncListQueuedResources.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.tpu.v2.samples; + +// [START tpu_v2_generated_Tpu_ListQueuedResources_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tpu.v2.ListQueuedResourcesRequest; +import com.google.cloud.tpu.v2.LocationName; +import com.google.cloud.tpu.v2.QueuedResource; +import com.google.cloud.tpu.v2.TpuClient; + +public class AsyncListQueuedResources { + + public static void main(String[] args) throws Exception { + asyncListQueuedResources(); + } + + public static void asyncListQueuedResources() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TpuClient tpuClient = TpuClient.create()) { + ListQueuedResourcesRequest request = + ListQueuedResourcesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + tpuClient.listQueuedResourcesPagedCallable().futureCall(request); + // Do something. + for (QueuedResource element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END tpu_v2_generated_Tpu_ListQueuedResources_async] diff --git a/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listqueuedresources/AsyncListQueuedResourcesPaged.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listqueuedresources/AsyncListQueuedResourcesPaged.java new file mode 100644 index 000000000000..64dafcd81965 --- /dev/null +++ b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listqueuedresources/AsyncListQueuedResourcesPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.tpu.v2.samples; + +// [START tpu_v2_generated_Tpu_ListQueuedResources_Paged_async] +import com.google.cloud.tpu.v2.ListQueuedResourcesRequest; +import com.google.cloud.tpu.v2.ListQueuedResourcesResponse; +import com.google.cloud.tpu.v2.LocationName; +import com.google.cloud.tpu.v2.QueuedResource; +import com.google.cloud.tpu.v2.TpuClient; +import com.google.common.base.Strings; + +public class AsyncListQueuedResourcesPaged { + + public static void main(String[] args) throws Exception { + asyncListQueuedResourcesPaged(); + } + + public static void asyncListQueuedResourcesPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TpuClient tpuClient = TpuClient.create()) { + ListQueuedResourcesRequest request = + ListQueuedResourcesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListQueuedResourcesResponse response = + tpuClient.listQueuedResourcesCallable().call(request); + for (QueuedResource element : response.getQueuedResourcesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END tpu_v2_generated_Tpu_ListQueuedResources_Paged_async] diff --git a/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listqueuedresources/SyncListQueuedResources.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listqueuedresources/SyncListQueuedResources.java new file mode 100644 index 000000000000..edbb3dacc80e --- /dev/null +++ b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listqueuedresources/SyncListQueuedResources.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.tpu.v2.samples; + +// [START tpu_v2_generated_Tpu_ListQueuedResources_sync] +import com.google.cloud.tpu.v2.ListQueuedResourcesRequest; +import com.google.cloud.tpu.v2.LocationName; +import com.google.cloud.tpu.v2.QueuedResource; +import com.google.cloud.tpu.v2.TpuClient; + +public class SyncListQueuedResources { + + public static void main(String[] args) throws Exception { + syncListQueuedResources(); + } + + public static void syncListQueuedResources() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TpuClient tpuClient = TpuClient.create()) { + ListQueuedResourcesRequest request = + ListQueuedResourcesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (QueuedResource element : tpuClient.listQueuedResources(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END tpu_v2_generated_Tpu_ListQueuedResources_sync] diff --git a/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listqueuedresources/SyncListQueuedResourcesLocationname.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listqueuedresources/SyncListQueuedResourcesLocationname.java new file mode 100644 index 000000000000..eb12ae3d06df --- /dev/null +++ b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listqueuedresources/SyncListQueuedResourcesLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.tpu.v2.samples; + +// [START tpu_v2_generated_Tpu_ListQueuedResources_Locationname_sync] +import com.google.cloud.tpu.v2.LocationName; +import com.google.cloud.tpu.v2.QueuedResource; +import com.google.cloud.tpu.v2.TpuClient; + +public class SyncListQueuedResourcesLocationname { + + public static void main(String[] args) throws Exception { + syncListQueuedResourcesLocationname(); + } + + public static void syncListQueuedResourcesLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TpuClient tpuClient = TpuClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (QueuedResource element : tpuClient.listQueuedResources(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END tpu_v2_generated_Tpu_ListQueuedResources_Locationname_sync] diff --git a/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listqueuedresources/SyncListQueuedResourcesString.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listqueuedresources/SyncListQueuedResourcesString.java new file mode 100644 index 000000000000..1e1dc1fb226f --- /dev/null +++ b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/listqueuedresources/SyncListQueuedResourcesString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.tpu.v2.samples; + +// [START tpu_v2_generated_Tpu_ListQueuedResources_String_sync] +import com.google.cloud.tpu.v2.LocationName; +import com.google.cloud.tpu.v2.QueuedResource; +import com.google.cloud.tpu.v2.TpuClient; + +public class SyncListQueuedResourcesString { + + public static void main(String[] args) throws Exception { + syncListQueuedResourcesString(); + } + + public static void syncListQueuedResourcesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TpuClient tpuClient = TpuClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (QueuedResource element : tpuClient.listQueuedResources(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END tpu_v2_generated_Tpu_ListQueuedResources_String_sync] diff --git a/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/resetqueuedresource/AsyncResetQueuedResource.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/resetqueuedresource/AsyncResetQueuedResource.java new file mode 100644 index 000000000000..9835ced26ae9 --- /dev/null +++ b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/resetqueuedresource/AsyncResetQueuedResource.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.tpu.v2.samples; + +// [START tpu_v2_generated_Tpu_ResetQueuedResource_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tpu.v2.QueuedResourceName; +import com.google.cloud.tpu.v2.ResetQueuedResourceRequest; +import com.google.cloud.tpu.v2.TpuClient; +import com.google.longrunning.Operation; + +public class AsyncResetQueuedResource { + + public static void main(String[] args) throws Exception { + asyncResetQueuedResource(); + } + + public static void asyncResetQueuedResource() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TpuClient tpuClient = TpuClient.create()) { + ResetQueuedResourceRequest request = + ResetQueuedResourceRequest.newBuilder() + .setName( + QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString()) + .build(); + ApiFuture future = tpuClient.resetQueuedResourceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END tpu_v2_generated_Tpu_ResetQueuedResource_async] diff --git a/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/resetqueuedresource/AsyncResetQueuedResourceLRO.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/resetqueuedresource/AsyncResetQueuedResourceLRO.java new file mode 100644 index 000000000000..62400d5ac1c2 --- /dev/null +++ b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/resetqueuedresource/AsyncResetQueuedResourceLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.tpu.v2.samples; + +// [START tpu_v2_generated_Tpu_ResetQueuedResource_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.tpu.v2.OperationMetadata; +import com.google.cloud.tpu.v2.QueuedResource; +import com.google.cloud.tpu.v2.QueuedResourceName; +import com.google.cloud.tpu.v2.ResetQueuedResourceRequest; +import com.google.cloud.tpu.v2.TpuClient; + +public class AsyncResetQueuedResourceLRO { + + public static void main(String[] args) throws Exception { + asyncResetQueuedResourceLRO(); + } + + public static void asyncResetQueuedResourceLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TpuClient tpuClient = TpuClient.create()) { + ResetQueuedResourceRequest request = + ResetQueuedResourceRequest.newBuilder() + .setName( + QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString()) + .build(); + OperationFuture future = + tpuClient.resetQueuedResourceOperationCallable().futureCall(request); + // Do something. + QueuedResource response = future.get(); + } + } +} +// [END tpu_v2_generated_Tpu_ResetQueuedResource_LRO_async] diff --git a/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/resetqueuedresource/SyncResetQueuedResource.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/resetqueuedresource/SyncResetQueuedResource.java new file mode 100644 index 000000000000..6b450e5ca04e --- /dev/null +++ b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/resetqueuedresource/SyncResetQueuedResource.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.tpu.v2.samples; + +// [START tpu_v2_generated_Tpu_ResetQueuedResource_sync] +import com.google.cloud.tpu.v2.QueuedResource; +import com.google.cloud.tpu.v2.QueuedResourceName; +import com.google.cloud.tpu.v2.ResetQueuedResourceRequest; +import com.google.cloud.tpu.v2.TpuClient; + +public class SyncResetQueuedResource { + + public static void main(String[] args) throws Exception { + syncResetQueuedResource(); + } + + public static void syncResetQueuedResource() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TpuClient tpuClient = TpuClient.create()) { + ResetQueuedResourceRequest request = + ResetQueuedResourceRequest.newBuilder() + .setName( + QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString()) + .build(); + QueuedResource response = tpuClient.resetQueuedResourceAsync(request).get(); + } + } +} +// [END tpu_v2_generated_Tpu_ResetQueuedResource_sync] diff --git a/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/resetqueuedresource/SyncResetQueuedResourceQueuedresourcename.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/resetqueuedresource/SyncResetQueuedResourceQueuedresourcename.java new file mode 100644 index 000000000000..f427d49f3e90 --- /dev/null +++ b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/resetqueuedresource/SyncResetQueuedResourceQueuedresourcename.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.tpu.v2.samples; + +// [START tpu_v2_generated_Tpu_ResetQueuedResource_Queuedresourcename_sync] +import com.google.cloud.tpu.v2.QueuedResource; +import com.google.cloud.tpu.v2.QueuedResourceName; +import com.google.cloud.tpu.v2.TpuClient; + +public class SyncResetQueuedResourceQueuedresourcename { + + public static void main(String[] args) throws Exception { + syncResetQueuedResourceQueuedresourcename(); + } + + public static void syncResetQueuedResourceQueuedresourcename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TpuClient tpuClient = TpuClient.create()) { + QueuedResourceName name = + QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]"); + QueuedResource response = tpuClient.resetQueuedResourceAsync(name).get(); + } + } +} +// [END tpu_v2_generated_Tpu_ResetQueuedResource_Queuedresourcename_sync] diff --git a/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/resetqueuedresource/SyncResetQueuedResourceString.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/resetqueuedresource/SyncResetQueuedResourceString.java new file mode 100644 index 000000000000..c796404df195 --- /dev/null +++ b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2/tpu/resetqueuedresource/SyncResetQueuedResourceString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.tpu.v2.samples; + +// [START tpu_v2_generated_Tpu_ResetQueuedResource_String_sync] +import com.google.cloud.tpu.v2.QueuedResource; +import com.google.cloud.tpu.v2.QueuedResourceName; +import com.google.cloud.tpu.v2.TpuClient; + +public class SyncResetQueuedResourceString { + + public static void main(String[] args) throws Exception { + syncResetQueuedResourceString(); + } + + public static void syncResetQueuedResourceString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TpuClient tpuClient = TpuClient.create()) { + String name = + QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString(); + QueuedResource response = tpuClient.resetQueuedResourceAsync(name).get(); + } + } +} +// [END tpu_v2_generated_Tpu_ResetQueuedResource_String_sync] diff --git a/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listreservations/AsyncListReservations.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listreservations/AsyncListReservations.java new file mode 100644 index 000000000000..aead2b9025c4 --- /dev/null +++ b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listreservations/AsyncListReservations.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.tpu.v2alpha1.samples; + +// [START tpu_v2alpha1_generated_Tpu_ListReservations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tpu.v2alpha1.ListReservationsRequest; +import com.google.cloud.tpu.v2alpha1.LocationName; +import com.google.cloud.tpu.v2alpha1.Reservation; +import com.google.cloud.tpu.v2alpha1.TpuClient; + +public class AsyncListReservations { + + public static void main(String[] args) throws Exception { + asyncListReservations(); + } + + public static void asyncListReservations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TpuClient tpuClient = TpuClient.create()) { + ListReservationsRequest request = + ListReservationsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = tpuClient.listReservationsPagedCallable().futureCall(request); + // Do something. + for (Reservation element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END tpu_v2alpha1_generated_Tpu_ListReservations_async] diff --git a/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listreservations/AsyncListReservationsPaged.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listreservations/AsyncListReservationsPaged.java new file mode 100644 index 000000000000..763a46eb6894 --- /dev/null +++ b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listreservations/AsyncListReservationsPaged.java @@ -0,0 +1,61 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.tpu.v2alpha1.samples; + +// [START tpu_v2alpha1_generated_Tpu_ListReservations_Paged_async] +import com.google.cloud.tpu.v2alpha1.ListReservationsRequest; +import com.google.cloud.tpu.v2alpha1.ListReservationsResponse; +import com.google.cloud.tpu.v2alpha1.LocationName; +import com.google.cloud.tpu.v2alpha1.Reservation; +import com.google.cloud.tpu.v2alpha1.TpuClient; +import com.google.common.base.Strings; + +public class AsyncListReservationsPaged { + + public static void main(String[] args) throws Exception { + asyncListReservationsPaged(); + } + + public static void asyncListReservationsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TpuClient tpuClient = TpuClient.create()) { + ListReservationsRequest request = + ListReservationsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListReservationsResponse response = tpuClient.listReservationsCallable().call(request); + for (Reservation element : response.getReservationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END tpu_v2alpha1_generated_Tpu_ListReservations_Paged_async] diff --git a/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listreservations/SyncListReservations.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listreservations/SyncListReservations.java new file mode 100644 index 000000000000..ed332e5f33b2 --- /dev/null +++ b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/listreservations/SyncListReservations.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.tpu.v2alpha1.samples; + +// [START tpu_v2alpha1_generated_Tpu_ListReservations_sync] +import com.google.cloud.tpu.v2alpha1.ListReservationsRequest; +import com.google.cloud.tpu.v2alpha1.LocationName; +import com.google.cloud.tpu.v2alpha1.Reservation; +import com.google.cloud.tpu.v2alpha1.TpuClient; + +public class SyncListReservations { + + public static void main(String[] args) throws Exception { + syncListReservations(); + } + + public static void syncListReservations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TpuClient tpuClient = TpuClient.create()) { + ListReservationsRequest request = + ListReservationsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Reservation element : tpuClient.listReservations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END tpu_v2alpha1_generated_Tpu_ListReservations_sync] diff --git a/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/performmaintenance/AsyncPerformMaintenance.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/performmaintenance/AsyncPerformMaintenance.java new file mode 100644 index 000000000000..b7b2d9986c47 --- /dev/null +++ b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/performmaintenance/AsyncPerformMaintenance.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.tpu.v2alpha1.samples; + +// [START tpu_v2alpha1_generated_Tpu_PerformMaintenance_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tpu.v2alpha1.NodeName; +import com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest; +import com.google.cloud.tpu.v2alpha1.TpuClient; +import com.google.longrunning.Operation; + +public class AsyncPerformMaintenance { + + public static void main(String[] args) throws Exception { + asyncPerformMaintenance(); + } + + public static void asyncPerformMaintenance() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TpuClient tpuClient = TpuClient.create()) { + PerformMaintenanceRequest request = + PerformMaintenanceRequest.newBuilder() + .setName(NodeName.of("[PROJECT]", "[LOCATION]", "[NODE]").toString()) + .build(); + ApiFuture future = tpuClient.performMaintenanceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END tpu_v2alpha1_generated_Tpu_PerformMaintenance_async] diff --git a/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/performmaintenance/AsyncPerformMaintenanceLRO.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/performmaintenance/AsyncPerformMaintenanceLRO.java new file mode 100644 index 000000000000..296432ab68a5 --- /dev/null +++ b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/performmaintenance/AsyncPerformMaintenanceLRO.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.tpu.v2alpha1.samples; + +// [START tpu_v2alpha1_generated_Tpu_PerformMaintenance_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.tpu.v2alpha1.Node; +import com.google.cloud.tpu.v2alpha1.NodeName; +import com.google.cloud.tpu.v2alpha1.OperationMetadata; +import com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest; +import com.google.cloud.tpu.v2alpha1.TpuClient; + +public class AsyncPerformMaintenanceLRO { + + public static void main(String[] args) throws Exception { + asyncPerformMaintenanceLRO(); + } + + public static void asyncPerformMaintenanceLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TpuClient tpuClient = TpuClient.create()) { + PerformMaintenanceRequest request = + PerformMaintenanceRequest.newBuilder() + .setName(NodeName.of("[PROJECT]", "[LOCATION]", "[NODE]").toString()) + .build(); + OperationFuture future = + tpuClient.performMaintenanceOperationCallable().futureCall(request); + // Do something. + Node response = future.get(); + } + } +} +// [END tpu_v2alpha1_generated_Tpu_PerformMaintenance_LRO_async] diff --git a/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/performmaintenance/SyncPerformMaintenance.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/performmaintenance/SyncPerformMaintenance.java new file mode 100644 index 000000000000..dc27c636a877 --- /dev/null +++ b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/performmaintenance/SyncPerformMaintenance.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.tpu.v2alpha1.samples; + +// [START tpu_v2alpha1_generated_Tpu_PerformMaintenance_sync] +import com.google.cloud.tpu.v2alpha1.Node; +import com.google.cloud.tpu.v2alpha1.NodeName; +import com.google.cloud.tpu.v2alpha1.PerformMaintenanceRequest; +import com.google.cloud.tpu.v2alpha1.TpuClient; + +public class SyncPerformMaintenance { + + public static void main(String[] args) throws Exception { + syncPerformMaintenance(); + } + + public static void syncPerformMaintenance() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TpuClient tpuClient = TpuClient.create()) { + PerformMaintenanceRequest request = + PerformMaintenanceRequest.newBuilder() + .setName(NodeName.of("[PROJECT]", "[LOCATION]", "[NODE]").toString()) + .build(); + Node response = tpuClient.performMaintenanceAsync(request).get(); + } + } +} +// [END tpu_v2alpha1_generated_Tpu_PerformMaintenance_sync] diff --git a/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/performmaintenancequeuedresource/AsyncPerformMaintenanceQueuedResource.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/performmaintenancequeuedresource/AsyncPerformMaintenanceQueuedResource.java new file mode 100644 index 000000000000..d39b66193349 --- /dev/null +++ b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/performmaintenancequeuedresource/AsyncPerformMaintenanceQueuedResource.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.tpu.v2alpha1.samples; + +// [START tpu_v2alpha1_generated_Tpu_PerformMaintenanceQueuedResource_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest; +import com.google.cloud.tpu.v2alpha1.QueuedResourceName; +import com.google.cloud.tpu.v2alpha1.TpuClient; +import com.google.longrunning.Operation; +import java.util.ArrayList; + +public class AsyncPerformMaintenanceQueuedResource { + + public static void main(String[] args) throws Exception { + asyncPerformMaintenanceQueuedResource(); + } + + public static void asyncPerformMaintenanceQueuedResource() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TpuClient tpuClient = TpuClient.create()) { + PerformMaintenanceQueuedResourceRequest request = + PerformMaintenanceQueuedResourceRequest.newBuilder() + .setName( + QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString()) + .addAllNodeNames(new ArrayList()) + .build(); + ApiFuture future = + tpuClient.performMaintenanceQueuedResourceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END tpu_v2alpha1_generated_Tpu_PerformMaintenanceQueuedResource_async] diff --git a/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/performmaintenancequeuedresource/AsyncPerformMaintenanceQueuedResourceLRO.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/performmaintenancequeuedresource/AsyncPerformMaintenanceQueuedResourceLRO.java new file mode 100644 index 000000000000..2bdecb05eabb --- /dev/null +++ b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/performmaintenancequeuedresource/AsyncPerformMaintenanceQueuedResourceLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.tpu.v2alpha1.samples; + +// [START tpu_v2alpha1_generated_Tpu_PerformMaintenanceQueuedResource_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.tpu.v2alpha1.OperationMetadata; +import com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest; +import com.google.cloud.tpu.v2alpha1.QueuedResource; +import com.google.cloud.tpu.v2alpha1.QueuedResourceName; +import com.google.cloud.tpu.v2alpha1.TpuClient; +import java.util.ArrayList; + +public class AsyncPerformMaintenanceQueuedResourceLRO { + + public static void main(String[] args) throws Exception { + asyncPerformMaintenanceQueuedResourceLRO(); + } + + public static void asyncPerformMaintenanceQueuedResourceLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TpuClient tpuClient = TpuClient.create()) { + PerformMaintenanceQueuedResourceRequest request = + PerformMaintenanceQueuedResourceRequest.newBuilder() + .setName( + QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString()) + .addAllNodeNames(new ArrayList()) + .build(); + OperationFuture future = + tpuClient.performMaintenanceQueuedResourceOperationCallable().futureCall(request); + // Do something. + QueuedResource response = future.get(); + } + } +} +// [END tpu_v2alpha1_generated_Tpu_PerformMaintenanceQueuedResource_LRO_async] diff --git a/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/performmaintenancequeuedresource/SyncPerformMaintenanceQueuedResource.java b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/performmaintenancequeuedresource/SyncPerformMaintenanceQueuedResource.java new file mode 100644 index 000000000000..fc17bedb72cd --- /dev/null +++ b/java-tpu/samples/snippets/generated/com/google/cloud/tpu/v2alpha1/tpu/performmaintenancequeuedresource/SyncPerformMaintenanceQueuedResource.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.tpu.v2alpha1.samples; + +// [START tpu_v2alpha1_generated_Tpu_PerformMaintenanceQueuedResource_sync] +import com.google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest; +import com.google.cloud.tpu.v2alpha1.QueuedResource; +import com.google.cloud.tpu.v2alpha1.QueuedResourceName; +import com.google.cloud.tpu.v2alpha1.TpuClient; +import java.util.ArrayList; + +public class SyncPerformMaintenanceQueuedResource { + + public static void main(String[] args) throws Exception { + syncPerformMaintenanceQueuedResource(); + } + + public static void syncPerformMaintenanceQueuedResource() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (TpuClient tpuClient = TpuClient.create()) { + PerformMaintenanceQueuedResourceRequest request = + PerformMaintenanceQueuedResourceRequest.newBuilder() + .setName( + QueuedResourceName.of("[PROJECT]", "[LOCATION]", "[QUEUED_RESOURCE]").toString()) + .addAllNodeNames(new ArrayList()) + .build(); + QueuedResource response = tpuClient.performMaintenanceQueuedResourceAsync(request).get(); + } + } +} +// [END tpu_v2alpha1_generated_Tpu_PerformMaintenanceQueuedResource_sync] diff --git a/java-trace/README.md b/java-trace/README.md index 51e17c810294..32d3ecf9d2bf 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.52.0 + 26.53.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.55.0 + 2.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-trace:2.55.0' +implementation 'com.google.cloud:google-cloud-trace:2.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-trace" % "2.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-trace" % "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-trace.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-trace/2.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-trace/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-translate/README.md b/java-translate/README.md index b67412cc9f6d..ed4e0f5f3e47 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.52.0 + 26.53.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.55.0 + 2.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-translate:2.55.0' +implementation 'com.google.cloud:google-cloud-translate:2.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-translate" % "2.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-translate" % "2.56.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.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-translate/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-valkey/README.md b/java-valkey/README.md index e7758f34063c..05c12ad143bc 100644 --- a/java-valkey/README.md +++ b/java-valkey/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.52.0 + 26.53.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-valkey - 0.1.0 + 0.2.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-valkey:0.1.0' +implementation 'com.google.cloud:google-cloud-valkey:0.2.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-valkey" % "0.1.0" +libraryDependencies += "com.google.cloud" % "google-cloud-valkey" % "0.2.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-valkey.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-valkey/0.1.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-valkey/0.2.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 f4cbff1bbef9..8ce3f03e3367 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.52.0 + 26.53.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.54.0 + 2.55.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-video-intelligence:2.54.0' +implementation 'com.google.cloud:google-cloud-video-intelligence:2.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-intelligence" % "2.54.0" +libraryDependencies += "com.google.cloud" % "google-cloud-video-intelligence" % "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-video-intelligence.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-intelligence/2.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-intelligence/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-video-live-stream/README.md b/java-video-live-stream/README.md index d8899f7a452a..962dec086b93 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.52.0 + 26.53.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.57.0 + 0.58.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-live-stream:0.57.0' +implementation 'com.google.cloud:google-cloud-live-stream:0.58.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-live-stream" % "0.57.0" +libraryDependencies += "com.google.cloud" % "google-cloud-live-stream" % "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-live-stream.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-live-stream/0.57.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-live-stream/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-video-stitcher/README.md b/java-video-stitcher/README.md index 6d125e4d73b4..29ec39230162 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.52.0 + 26.53.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.55.0 + 0.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-video-stitcher:0.55.0' +implementation 'com.google.cloud:google-cloud-video-stitcher:0.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-stitcher" % "0.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-video-stitcher" % "0.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-video-stitcher.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-stitcher/0.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-stitcher/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-transcoder/README.md b/java-video-transcoder/README.md index 4deb89e594d1..989bf44b27c4 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.52.0 + 26.53.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.54.0 + 1.55.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-video-transcoder:1.54.0' +implementation 'com.google.cloud:google-cloud-video-transcoder:1.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-transcoder" % "1.54.0" +libraryDependencies += "com.google.cloud" % "google-cloud-video-transcoder" % "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-video-transcoder.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-transcoder/1.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-transcoder/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-vision/README.md b/java-vision/README.md index 197db4eaa523..9519d0bfb14e 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.52.0 + 26.53.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.53.0 + 3.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vision:3.53.0' +implementation 'com.google.cloud:google-cloud-vision:3.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "3.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "3.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-vision.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vision/3.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vision/3.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-visionai/README.md b/java-visionai/README.md index 0446d123e08e..beb8af37d52f 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.52.0 + 26.53.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.12.0 + 0.13.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-visionai:0.12.0' +implementation 'com.google.cloud:google-cloud-visionai:0.13.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-visionai" % "0.12.0" +libraryDependencies += "com.google.cloud" % "google-cloud-visionai" % "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.cloud/google-cloud-visionai.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-visionai/0.12.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-visionai/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-vmmigration/README.md b/java-vmmigration/README.md index 87a3b81c1ab0..b610f7713ceb 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.52.0 + 26.53.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.55.0 + 1.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vmmigration:1.55.0' +implementation 'com.google.cloud:google-cloud-vmmigration:1.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vmmigration" % "1.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vmmigration" % "1.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-vmmigration.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmmigration/1.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmmigration/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-vmwareengine/README.md b/java-vmwareengine/README.md index 9a3a96f1a7e0..e5874af924f2 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.52.0 + 26.53.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.49.0 + 0.50.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vmwareengine:0.49.0' +implementation 'com.google.cloud:google-cloud-vmwareengine:0.50.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vmwareengine" % "0.49.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vmwareengine" % "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-vmwareengine.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmwareengine/0.49.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmwareengine/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-vpcaccess/README.md b/java-vpcaccess/README.md index 2d74f87390b9..819b1353d858 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.52.0 + 26.53.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.56.0 + 2.57.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vpcaccess:2.56.0' +implementation 'com.google.cloud:google-cloud-vpcaccess:2.57.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vpcaccess" % "2.56.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vpcaccess" % "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-vpcaccess.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vpcaccess/2.56.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vpcaccess/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-webrisk/README.md b/java-webrisk/README.md index 334d9a1a5336..28cc41cd0985 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.52.0 + 26.53.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.54.0 + 2.55.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-webrisk:2.54.0' +implementation 'com.google.cloud:google-cloud-webrisk:2.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-webrisk" % "2.54.0" +libraryDependencies += "com.google.cloud" % "google-cloud-webrisk" % "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-webrisk.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-webrisk/2.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-webrisk/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-websecurityscanner/README.md b/java-websecurityscanner/README.md index 06e7d6288d38..dab52cdd4e0c 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.52.0 + 26.53.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.55.0 + 2.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-websecurityscanner:2.55.0' +implementation 'com.google.cloud:google-cloud-websecurityscanner:2.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "2.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "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-websecurityscanner.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-websecurityscanner/2.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-websecurityscanner/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-workflow-executions/README.md b/java-workflow-executions/README.md index d5e3bcdbafdf..0d86e712f660 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.52.0 + 26.53.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.55.0 + 2.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workflow-executions:2.55.0' +implementation 'com.google.cloud:google-cloud-workflow-executions:2.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workflow-executions" % "2.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workflow-executions" % "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-workflow-executions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflow-executions/2.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflow-executions/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-workflows/README.md b/java-workflows/README.md index e3a690c7ea82..4e61e6145d1f 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.52.0 + 26.53.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.55.0 + 2.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workflows:2.55.0' +implementation 'com.google.cloud:google-cloud-workflows:2.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workflows" % "2.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workflows" % "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-workflows.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflows/2.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflows/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-workspaceevents/README.md b/java-workspaceevents/README.md index d084974f5558..d3c1a5e48378 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.52.0 + 26.53.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.19.0 + 0.20.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workspaceevents:0.19.0' +implementation 'com.google.cloud:google-cloud-workspaceevents:0.20.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workspaceevents" % "0.19.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workspaceevents" % "0.20.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.19.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workspaceevents/0.20.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 c38b8a8dc2f3..2868e33df954 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.52.0 + 26.53.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.43.0 + 0.44.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workstations:0.43.0' +implementation 'com.google.cloud:google-cloud-workstations:0.44.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workstations" % "0.43.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workstations" % "0.44.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.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workstations/0.44.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